Skip to content

Commit

Permalink
version 1.0.4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaTeMaTuK committed Aug 23, 2021
1 parent f145183 commit 18d4c48
Show file tree
Hide file tree
Showing 19 changed files with 3,737 additions and 1,377 deletions.
31 changes: 31 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"standard",
"standard-react",
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"space-before-function-paren": 0,
"react/prop-types": 0,
"react/jsx-handler-names": 0,
"react/jsx-fragments": 0,
"react/no-unused-prop-types": 0,
"import/export": 0,
"no-unused-vars": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": "error"
}
}
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

63 changes: 33 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,39 @@ Guide with details for canvas app is [here](/Canvas%20Guide.md)

## Configuration

| Parameter Name | Description |
| :---------------------------------------------- | :-------------------------------------------------------------- |
| Title\* | Specifies name on bar and list table. |
| Start Time\* | Specifies start time display. |
| End Time\* | Specifies end time display. |
| Progress | Specifies progress display. |
| Display Color(Option) | Specifies colors by option set value color. |
| Display Color(Text) | Specifies colors by hex color value. |
| Display Mode\* | Enables or disables drag and drop feature. |
| IsSubgrid\* | Specifies gantt as subgrid control. |
| Default Duration View\* | Specifies default duration display. |
| Display Date Format\* | Specifies date and time display format. |
| Time Step\* | Specifies allowed step for move events. Sets in milliseconds. |
| Font Size\* | Specifies font size. |
| Header Height\* | Specifies header height. |
| Row Height\* | Specifies row height. |
| List`s Cell Width\* | Specifies task list width. You may set 0 value for list hiding. |
| Column Width for Quarter of Day\* | Specifies period width for Quarter of Day. |
| Column Width for Column Width for Half of Day\* | Specifies period width for Column Width for Half of Day. |
| Column Width for Column Width for Day\* | Specifies period width for Column Width for Day. |
| Column Width for Column Width for Week\* | Specifies period width for Column Width for Week. |
| Column Width for Column Width for Month\* | Specifies period width for Column Width for Month. |
| Custom Display Name | Overrides display name. |
| Custom Start Name | Overrides start time name. |
| Custom End Name | Overrides end time name. |
| Custom Progress Name | Overrides progress name. |
| Custom Progress Color | Specifies the taskbar progress fill color. |
| Custom Progress Selected Color | Specifies the taskbar progress fill color on select. |
| Custom Background Color | Specifies the taskbar background fill color. |
| Custom Background Selected Color | Specifies the taskbar background fill color on select. |
| Parameter Name | Description |
| :---------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------- |
| Title\* | Specifies name on bar and list table. |
| Start Time\* | Specifies start time display. |
| End Time\* | Specifies end time display. |
| Progress | Specifies progress display. |
| Parent Record | Specifies record dependency |
| Task Type(Option) | Specifies record type. Task, milestone, project. You are able to configure option-text mapping in Task Type Mapping parameter. |
| Display Color(Option) | Specifies colors by option set value color. |
| Display Color(Text) | Specifies colors by hex color value. |
| Display Mode\* | Enables or disables drag and drop feature. |
| IsSubgrid\* | Specifies gantt as subgrid control. |
| Default Duration View\* | Specifies default duration display. |
| Task Type Mapping | Defines task type to option value |
| Display Date Format\* | Specifies date and time display format. |
| Time Step\* | Specifies allowed step for move events. Sets in milliseconds. |
| Font Size\* | Specifies font size. |
| Header Height\* | Specifies header height. |
| Row Height\* | Specifies row height. |
| List`s Cell Width\* | Specifies task list width. You may set 0 value for list hiding. |
| Column Width for Quarter of Day\* | Specifies period width for Quarter of Day. |
| Column Width for Column Width for Half of Day\* | Specifies period width for Column Width for Half of Day. |
| Column Width for Column Width for Day\* | Specifies period width for Column Width for Day. |
| Column Width for Column Width for Week\* | Specifies period width for Column Width for Week. |
| Column Width for Column Width for Month\* | Specifies period width for Column Width for Month. |
| Custom Display Name | Overrides display name. |
| Custom Start Name | Overrides start time name. |
| Custom End Name | Overrides end time name. |
| Custom Progress Name | Overrides progress name. |
| Custom Progress Color | Specifies the taskbar progress fill color. |
| Custom Progress Selected Color | Specifies the taskbar progress fill color on select. |
| Custom Background Color | Specifies the taskbar background fill color. |
| Custom Background Selected Color | Specifies the taskbar background fill color on select. |

\*Required

Expand Down
59 changes: 48 additions & 11 deletions UniversalGanttChartComponent/ControlManifest.Input.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
<?xml version="1.0" encoding="utf-8" ?>
<manifest>
<control namespace="GanttGridComponent" constructor="UniversalGanttChartComponent" version="0.1.3" display-name-key="Universal Gantt Chart Component" description-key="Component shows tasks on a timeline. You can move them on the chart." control-type="standard">
<control namespace="UniversalGanttGridComponent" constructor="UniversalGanttChartComponent" version="0.1.4" display-name-key="Universal Gantt Chart Component" description-key="Component shows tasks on a timeline. You can move them on the chart." control-type="standard" >
<!--external-service-usage node declares whether this 3rd party PCF control is using external service or not, if yes, this control will be considered as premium and please also add the external domain it is using.
If it is not using any external service, please set the enabled="false" and DO NOT add any domain below. The "enabled" will be false by default.
Example1:
<external-service-usage enabled="true">
<domain>www.Microsoft.com</domain>
</external-service-usage>
Example2:
<external-service-usage enabled="false">
</external-service-usage>
-->
<external-service-usage enabled="false">
<!--UNCOMMENT TO ADD EXTERNAL DOMAINS
<domain></domain>
<domain></domain>
-->
</external-service-usage>
<!-- dataset node represents a set of entity records on CDS; allow more than one datasets -->
<data-set name="entityDataSet" display-name-key="Entity-Grid" cds-data-set-options="displayCommandBar:true;displayViewSelector:true;displayQuickFind:true">
<property-set name="title" display-name-key="Title" description-key="Record Name for displaying on grid" of-type="SingleLine.Text" usage="bound" required="true" />
<property-set name="startTime" display-name-key="Start" description-key="Scheduled start date and time" of-type="DateAndTime.DateAndTime" usage="bound" required="true" />
<property-set name="endTime" display-name-key="End" description-key="Scheduled end date and time" of-type="DateAndTime.DateAndTime" usage="bound" required="true" />
<property-set name="progress" display-name-key="Progress" description-key="From 0 to 100. Whole Number" of-type="Whole.None" usage="bound" required="false" />
<property-set name="displayColorOption" display-name-key="Display Color(Option)" description-key="Specifies record color by option value(hex code)" of-type="OptionSet" usage="bound" required="false" />
<property-set name="displayColorText" display-name-key="Display Color(Text)" description-key="Specifies record color by text value(hex code)" of-type="SingleLine.Text" usage="bound" required="false" />
<property-set name="parentRecord" display-name-key="Parent Record" description-key="Parent record reference" of-type="Lookup.Simple" usage="bound" required="false" />
<property-set name="taskTypeOption" display-name-key="Task Type(Option)"
description-key="Specifies record type. Task, milestone, project. You are able to configure option-text mapping in Task Type Mapping parameter." of-type="OptionSet"
usage="bound" required="false"
/>
<property-set name="displayColorOption"
display-name-key="Display Color(Option)" description-key="Specifies record color by option value(hex code)" of-type="OptionSet" usage="bound" required="false" />
<property-set name="displayColorText"
display-name-key="Display Color(Text)" description-key="Specifies record color by text value(hex code)" of-type="SingleLine.Text" usage="bound" required="false" />
</data-set>

<property name="displayMode" display-name-key="Display Mode" description-key="Parameter enables or disables progress and datetime controls" of-type="Enum" usage="input" required="true" default-value="editable">
Expand All @@ -29,13 +52,22 @@
<value name="month" display-name-key="Month">Month</value>
</property>

<property name="taskTypeMapping"
display-name-key="Task Type Mapping" description-key="Defines task type to option value"
of-type="SingleLine.Text" usage="input" required="true" default-value='{"1":"task","2":"milestone","3":"project"}'
/>

<property name="displayDateFormat" display-name-key="Display Date Format" description-key=" " of-type="Enum" usage="input" required="true" default-value="datetime">
<value name="datetime" display-name-key="Date and Time">datetime</value>
<value name="date" display-name-key="Date">date</value>
</property>

<property name="timeStep" display-name-key="Time Step" description-key="Time step for task for drag event" of-type="Whole.None" usage="input" required="true" default-value="300000"/>
<property name="fontSize" display-name-key="Font Size" description-key="Defines chart font size. Works with css style values" of-type="SingleLine.Text" usage="input" required="true" default-value="14px"/>
<property name="timeStep"
display-name-key="Time Step" description-key="Time step for task for drag event" of-type="Whole.None" usage="input" required="true" default-value="300000"/>
<property name="fontSize"
display-name-key="Font Size" description-key="Defines chart font size. Works with css style values"
of-type="SingleLine.Text" usage="input" required="true" default-value="14px"
/>

<property name="headerHeight" display-name-key="Header Height" description-key="Default header height for gantt. Unit of the measure is a pixel" of-type="Whole.None" usage="input" required="true" default-value="50"/>
<property name="rowHeight" display-name-key="Row Height" description-key="Default row height for gantt. Unit of the measure is a pixel" of-type="Whole.None" usage="input" required="true" default-value="50"/>
Expand All @@ -55,6 +87,7 @@
<property name="customBackgroundSelectedColor" display-name-key="Custom Background Selected Color" description-key="Defines Bar background color on select" of-type="SingleLine.Text" usage="input" required="false"/>
<property name="customProgressColor" display-name-key="Custom Progress Color" description-key="Defines Bar progress color" of-type="SingleLine.Text" usage="input" required="false"/>
<property name="customProgressSelectedColor" display-name-key="Custom Progress Selected Color" description-key="Defines Bar progress color on select" of-type="SingleLine.Text" usage="input" required="false"/>

<resources>
<code path="index.ts" order="1"/>
<css path="../node_modules/gantt-task-react/dist/index.css" order="1" />
Expand All @@ -63,17 +96,21 @@
<css path="./components/css/task-list-table.css" order="1"/>
<css path="./components/css/gantt-tooltip.css" order="2"/>
<css path="./components/css/universal-gantt.css" order="3"/>
<resx path="strings/UniversalGanttChartComponent.1033.resx" version="1.0.0" />
<resx path="strings/UniversalGanttChartComponent.1029.resx" version="1.0.0" />
<resx path="strings/UniversalGanttChartComponent.1031.resx" version="1.0.0" />
<resx path="strings/UniversalGanttChartComponent.1033.resx" version="1.0.0" />
<resx path="strings/UniversalGanttChartComponent.1046.resx" version="1.0.0" />
<resx path="strings/UniversalGanttChartComponent.1053.resx" version="1.0.0" />
<resx path="strings/UniversalGanttChartComponent.1058.resx" version="1.0.0" />
<resx path="strings/UniversalGanttChartComponent.3082.resx" version="1.0.0" />
</resources>

<feature-usage>
<uses-feature name="Utility" required="true" />
<uses-feature name="UserSettings" required="true" />
<uses-feature name="WebAPI" required="true" />
<uses-feature name="Navigation" required="true" />
<uses-feature name="Formatting" required="true" />
<uses-feature name="Utility" required="true"/>
<uses-feature name="UserSettings" required="true"/>
<uses-feature name="WebAPI" required="true"/>
<uses-feature name="Navigation" required="true"/>
<uses-feature name="Formatting" required="true"/>
</feature-usage>
</control>
</manifest>
Loading

0 comments on commit 18d4c48

Please sign in to comment.