@syncfusion/ej2-vue-gantt 20.4.54 → 21.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/ej2-vue-gantt.umd.min.js +2 -2
  3. package/dist/ej2-vue-gantt.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-gantt.es2015.js +462 -685
  5. package/dist/es6/ej2-vue-gantt.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-gantt.es5.js +507 -807
  7. package/dist/es6/ej2-vue-gantt.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-gantt.min.js +2 -2
  9. package/package.json +11 -10
  10. package/src/gantt/adddialogfields.directive.d.ts +2 -12
  11. package/src/gantt/adddialogfields.directive.js +22 -71
  12. package/src/gantt/columns.directive.d.ts +2 -12
  13. package/src/gantt/columns.directive.js +22 -71
  14. package/src/gantt/dayworkingtime.directive.d.ts +2 -12
  15. package/src/gantt/dayworkingtime.directive.js +22 -71
  16. package/src/gantt/editdialogfields.directive.d.ts +2 -12
  17. package/src/gantt/editdialogfields.directive.js +22 -71
  18. package/src/gantt/eventmarkers.directive.d.ts +2 -12
  19. package/src/gantt/eventmarkers.directive.js +22 -71
  20. package/src/gantt/gantt.component.d.ts +3 -100
  21. package/src/gantt/gantt.component.js +345 -376
  22. package/src/gantt/holidays.directive.d.ts +2 -12
  23. package/src/gantt/holidays.directive.js +22 -71
  24. package/styles/bootstrap-dark.css +33 -10
  25. package/styles/bootstrap.css +31 -10
  26. package/styles/bootstrap4.css +28 -7
  27. package/styles/bootstrap5-dark.css +30 -9
  28. package/styles/bootstrap5.css +30 -9
  29. package/styles/fabric-dark.css +28 -7
  30. package/styles/fabric.css +28 -7
  31. package/styles/fluent-dark.css +56 -29
  32. package/styles/fluent.css +56 -29
  33. package/styles/gantt/bootstrap-dark.css +33 -10
  34. package/styles/gantt/bootstrap.css +31 -10
  35. package/styles/gantt/bootstrap4.css +28 -7
  36. package/styles/gantt/bootstrap5-dark.css +30 -9
  37. package/styles/gantt/bootstrap5.css +30 -9
  38. package/styles/gantt/fabric-dark.css +28 -7
  39. package/styles/gantt/fabric.css +28 -7
  40. package/styles/gantt/fluent-dark.css +56 -29
  41. package/styles/gantt/fluent.css +56 -29
  42. package/styles/gantt/highcontrast-light.css +28 -9
  43. package/styles/gantt/highcontrast.css +28 -7
  44. package/styles/gantt/material-dark.css +31 -14
  45. package/styles/gantt/material.css +28 -7
  46. package/styles/gantt/tailwind-dark.css +28 -7
  47. package/styles/gantt/tailwind.css +28 -7
  48. package/styles/highcontrast-light.css +28 -9
  49. package/styles/highcontrast.css +28 -7
  50. package/styles/material-dark.css +31 -14
  51. package/styles/material.css +28 -7
  52. package/styles/tailwind-dark.css +28 -7
  53. package/styles/tailwind.css +28 -7
@@ -1,40 +1,8 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
21
- import * as Vue3 from 'vue-class-component';
1
+ import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
22
2
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
23
- import Vue from 'vue';
24
- import { Options } from 'vue-class-component';
25
- var vueImport;
26
- if (!isExecute || parseInt(allVue.version) < 3) {
27
- vueImport = Vue3.Vue;
28
- }
29
- else {
30
- vueImport = Vue;
31
- }
32
- var EventMarkersDirective = /** @class */ (function (_super) {
33
- __extends(EventMarkersDirective, _super);
34
- function EventMarkersDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- EventMarkersDirective.prototype.render = function (createElement) {
3
+ export var EventMarkersDirective = vueDefineComponent({
4
+ inject: { custom: { default: null } },
5
+ render: function (createElement) {
38
6
  if (!isExecute) {
39
7
  var h = !isExecute ? gh : createElement;
40
8
  var slots = null;
@@ -44,28 +12,18 @@ var EventMarkersDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- EventMarkersDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- EventMarkersDirective.prototype.getTag = function () {
54
- return 'e-event-markers';
55
- };
56
- EventMarkersDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], EventMarkersDirective);
66
- return EventMarkersDirective;
67
- }(vueImport));
68
- export { EventMarkersDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-event-markers';
24
+ }
25
+ }
26
+ });
69
27
  export var EventMarkersPlugin = {
70
28
  name: 'e-event-markers',
71
29
  install: function (Vue) {
@@ -83,23 +41,16 @@ export var EventMarkersPlugin = {
83
41
  * </ejs-gantt>
84
42
  * ```
85
43
  */
86
- var EventMarkerDirective = /** @class */ (function (_super) {
87
- __extends(EventMarkerDirective, _super);
88
- function EventMarkerDirective() {
89
- return _super !== null && _super.apply(this, arguments) || this;
90
- }
91
- EventMarkerDirective.prototype.render = function () {
44
+ export var EventMarkerDirective = vueDefineComponent({
45
+ render: function () {
92
46
  return;
93
- };
94
- EventMarkerDirective.prototype.getTag = function () {
95
- return 'e-event-marker';
96
- };
97
- EventMarkerDirective = __decorate([
98
- EJComponentDecorator({}, isExecute)
99
- ], EventMarkerDirective);
100
- return EventMarkerDirective;
101
- }(vueImport));
102
- export { EventMarkerDirective };
47
+ },
48
+ methods: {
49
+ getTag: function () {
50
+ return 'e-event-marker';
51
+ }
52
+ }
53
+ });
103
54
  export var EventMarkerPlugin = {
104
55
  name: 'e-event-marker',
105
56
  install: function (Vue) {
@@ -1,112 +1,15 @@
1
- import { ComponentBase } from '@syncfusion/ej2-vue-base';
2
1
  export declare const properties: string[];
3
2
  export declare const modelProps: string[];
4
3
  export declare const testProp: any;
5
- export declare const props: any;
6
- export declare const watch: any;
7
- export declare const emitProbs: any;
4
+ export declare const props: any, watch: any, emitProbs: any;
8
5
  /**
9
6
  * `ejs-gantt` represents the VueJS Gantt Component.
10
7
  * ```vue
11
8
  * <ejs-gantt :dataSource='data' allowSelection='true' allowSorting='true'></ejs-gantt>
12
9
  * ```
13
10
  */
14
- export declare class GanttComponent extends ComponentBase {
15
- ej2Instances: any;
16
- propKeys: string[];
17
- models: string[];
18
- hasChildDirective: boolean;
19
- protected hasInjectedModules: boolean;
20
- tagMapper: {
21
- [key: string]: Object;
22
- };
23
- tagNameMapper: Object;
24
- isVue3: boolean;
25
- templateCollection: any;
26
- constructor();
27
- clearTemplate(templateNames?: string[]): any;
28
- setProperties(prop: any, muteOnChange: boolean): void;
29
- trigger(eventName: string, eventProp: {
30
- [key: string]: Object;
31
- }, successHandler?: Function): void;
32
- render(createElement: any): any;
33
- custom(): void;
34
- addPredecessor(id: number | string, predecessorString: string): void;
35
- addRecord(data?: Object[] | Object | Object, rowPosition?: Object, rowIndex?: number): void;
36
- cancelEdit(): void;
37
- changeTaskMode(data: Object): void;
38
- clearFiltering(fields?: string[]): void;
39
- clearSelection(): void;
40
- clearSorting(): void;
41
- collapseAll(): void;
42
- collapseByID(id: number | string): void;
43
- collapseByIndex(index: number): void;
44
- convertToMilestone(id: string): void;
45
- csvExport(excelExportProperties?: Object, isMultipleExport?: boolean, workbook?: any, isBlob?: boolean): Object;
46
- deleteRecord(taskDetail: number | string | number[] | string[] | Object | Object[]): void;
47
- enableItems(items: string[], isEnable: boolean): void;
48
- excelExport(excelExportProperties?: Object, isMultipleExport?: boolean, workbook?: any, isBlob?: boolean): Object;
49
- expandAll(): void;
50
- expandByID(id: number | string): void;
51
- expandByIndex(index: number[] | number): void;
52
- filterByColumn(fieldName: string, filterOperator: string, filterValue: string | number | Object | boolean | number[] | string[] | Object[] | boolean[], predicate?: string, matchCase?: boolean, ignoreAccent?: boolean): void;
53
- fitToProject(): void;
54
- getCriticalTasks(): Object[];
55
- getDurationString(duration: number, durationUnit: string): string;
56
- getExpandedRecords(records: Object[]): Object[];
57
- getFormatedDate(date: Object, format?: string): string;
58
- getGanttColumns(): Object[];
59
- getGridColumns(): Object[];
60
- getRecordByID(id: string): Object;
61
- getRowByID(id: string | number): Object;
62
- getRowByIndex(index: number): Object;
63
- getTaskByUniqueID(id: string): Object;
64
- getTaskbarHeight(): number;
65
- getWorkString(work: number, workUnit: string): string;
66
- hideColumn(keys: string | string[], hideBy?: string): void;
67
- hideMaskRow(): void;
68
- hideSpinner(): void;
69
- indent(): void;
70
- keyActionHandler(e: Object): void;
71
- mergeTask(taskId: number | string, segmentIndexes: undefined[]): void;
72
- nextTimeSpan(mode?: string): void;
73
- openAddDialog(): void;
74
- openEditDialog(taskId?: number | string): void;
75
- outdent(): void;
76
- pdfExport(pdfExportProperties?: Object, isMultipleExport?: boolean, pdfDoc?: Object): Object;
77
- previousTimeSpan(mode?: string): void;
78
- removeCriticalPathStyles(): void;
79
- removePredecessor(id: number | string): void;
80
- removeSortColumn(columnName: string): void;
81
- renderTemplates(): void;
82
- reorderColumns(fromFName: string | string[], toFName: string): void;
83
- reorderRows(fromIndexes: number[], toIndex: number, position: string): void;
84
- resetTemplates(): void;
85
- scrollToDate(date: string): void;
86
- scrollToTask(taskId: string): void;
87
- search(keyVal: string): void;
88
- selectCell(cellIndex: Object, isToggle?: boolean): void;
89
- selectCells(rowCellIndexes: Object[]): void;
90
- selectRow(index: number, isToggle?: boolean): void;
91
- selectRows(records: number[]): void;
92
- setScrollTop(scrollTop: number): void;
93
- setSplitterPosition(value: string | number, type: string): void;
94
- showColumn(keys: string | string[], showBy?: string): void;
95
- showCriticalPath(isCritical: boolean): void;
96
- showMaskRow(): void;
97
- showSpinner(): void;
98
- sortColumn(columnName: string, direction: Object, isMultiSort?: boolean): void;
99
- splitTask(taskId: number | string, splitDate: Object | Object[]): void;
100
- updateChartScrollOffset(left: number, top: number): void;
101
- updateDataSource(dataSource: Object[], args: object): void;
102
- updatePredecessor(id: number | string, predecessorString: string): void;
103
- updateProjectDates(startDate: Object, endDate: Object, isTimelineRoundOff: boolean, isFrom?: string): void;
104
- updateRecordByID(data: Object): void;
105
- updateRecordByIndex(index: number, data: Object): void;
106
- updateTaskId(currentId: number | string, newId: number | string): void;
107
- zoomIn(): void;
108
- zoomOut(): void;
109
- }
11
+ export declare let GanttComponent: any;
12
+ export declare type GanttComponent = InstanceType<typeof GanttComponent>;
110
13
  export declare const GanttPlugin: {
111
14
  name: string;
112
15
  install(Vue: any): void;