jsgantt-improved 2.8.10 → 3.0.0
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.
- package/.mocharc.cjs +5 -0
- package/.travis.yml +0 -2
- package/Documentation.md +1 -1
- package/dist/draw_columns.js +171 -0
- package/dist/draw_dependencies.js +97 -0
- package/dist/e2e/app.e2e-spec.js +3 -3
- package/dist/e2e/app.e2e-spec.js.map +1 -1
- package/dist/e2e/app.po.js +5 -5
- package/dist/e2e/app.po.js.map +1 -1
- package/dist/jsgantt.js +579 -472
- package/dist/json.js +200 -0
- package/dist/lang.js +1635 -0
- package/dist/options.js +219 -0
- package/dist/playwright.config.js +33 -0
- package/dist/playwright.config.js.map +1 -0
- package/dist/src/draw.js +149 -148
- package/dist/src/draw.js.map +1 -1
- package/dist/src/draw_columns.js +66 -63
- package/dist/src/draw_columns.js.map +1 -1
- package/dist/src/draw_dependencies.js +4 -2
- package/dist/src/draw_dependencies.js.map +1 -1
- package/dist/src/events.js +72 -54
- package/dist/src/events.js.map +1 -1
- package/dist/src/json.js +10 -7
- package/dist/src/json.js.map +1 -1
- package/dist/src/options.js +14 -13
- package/dist/src/options.js.map +1 -1
- package/dist/src/task.js +61 -49
- package/dist/src/task.js.map +1 -1
- package/dist/src/utils/date_utils.js +46 -15
- package/dist/src/utils/date_utils.js.map +1 -1
- package/dist/src/utils/draw_utils.js +24 -18
- package/dist/src/utils/draw_utils.js.map +1 -1
- package/dist/src/utils/general_utils.js +59 -36
- package/dist/src/utils/general_utils.js.map +1 -1
- package/dist/src/utils.js +498 -0
- package/dist/src/utils.js.map +1 -0
- package/dist/src/xml.js +74 -67
- package/dist/src/xml.js.map +1 -1
- package/dist/test/e2e/gantt.page.js +150 -0
- package/dist/test/e2e/gantt.page.js.map +1 -0
- package/dist/test/e2e/issue172-row-alignment.spec.js +198 -0
- package/dist/test/e2e/issue172-row-alignment.spec.js.map +1 -0
- package/dist/test/e2e/issue207-bar-axis-alignment.spec.js +329 -0
- package/dist/test/e2e/issue207-bar-axis-alignment.spec.js.map +1 -0
- package/dist/test/e2e/issue255-show-weekends.spec.js +102 -0
- package/dist/test/e2e/issue255-show-weekends.spec.js.map +1 -0
- package/dist/test/e2e/issue349-taskname-click-event.spec.js +270 -0
- package/dist/test/e2e/issue349-taskname-click-event.spec.js.map +1 -0
- package/dist/test/e2e/issue48-dependency-lines.spec.js +204 -0
- package/dist/test/e2e/issue48-dependency-lines.spec.js.map +1 -0
- package/dist/test/e2e/issue54-month-today.spec.js +181 -0
- package/dist/test/e2e/issue54-month-today.spec.js.map +1 -0
- package/dist/test/e2e/issue68-working-days.spec.js +243 -0
- package/dist/test/e2e/issue68-working-days.spec.js.map +1 -0
- package/dist/test/e2e/zoom-alignment.spec.js +133 -0
- package/dist/test/e2e/zoom-alignment.spec.js.map +1 -0
- package/dist/test/index.js +3 -8
- package/dist/test/index.js.map +1 -1
- package/dist/test/unit/date-utils.spec.js +180 -0
- package/dist/test/unit/date-utils.spec.js.map +1 -0
- package/dist/test/unit/draw-cols-chart.spec.js +105 -0
- package/dist/test/unit/draw-cols-chart.spec.js.map +1 -0
- package/dist/test/unit/gantt-chart-constructor.spec.js +85 -0
- package/dist/test/unit/gantt-chart-constructor.spec.js.map +1 -0
- package/dist/test/unit/helpers.js +67 -0
- package/dist/test/unit/helpers.js.map +1 -0
- package/dist/test/unit/task-item.spec.js +46 -0
- package/dist/test/unit/task-item.spec.js.map +1 -0
- package/dist/test/unit/task-management.spec.js +141 -0
- package/dist/test/unit/task-management.spec.js.map +1 -0
- package/dist/test/unit/working-days.spec.js +109 -0
- package/dist/test/unit/working-days.spec.js.map +1 -0
- package/dist/utils/draw_utils.js +169 -0
- package/dist/utils/general_utils.js +498 -0
- package/dist/xml.js +345 -0
- package/dist-e2e/gantt.page.js +79 -0
- package/dist-e2e/gantt.page.js.map +1 -0
- package/dist-e2e/issue-setMinDate-setMaxDate.spec.js +96 -0
- package/dist-e2e/issue172-row-alignment.spec.js +90 -0
- package/dist-e2e/issue172-row-alignment.spec.js.map +1 -0
- package/dist-e2e/issue207-bar-axis-alignment.spec.js +161 -0
- package/dist-e2e/issue207-bar-axis-alignment.spec.js.map +1 -0
- package/dist-e2e/issue349-taskname-click-event.spec.js +170 -0
- package/dist-e2e/issue349-taskname-click-event.spec.js.map +1 -0
- package/dist-e2e/issue375-column-visibility.spec.js +129 -0
- package/dist-e2e/issue375-column-visibility.spec.js.map +1 -0
- package/dist-e2e/issue54-month-today.spec.js +84 -0
- package/dist-e2e/issue54-month-today.spec.js.map +1 -0
- package/dist-e2e/issue68-working-days.spec.js +105 -0
- package/dist-e2e/issue68-working-days.spec.js.map +1 -0
- package/docs/index.js +5 -2
- package/docs/jsgantt.js +5749 -0
- package/jsgantt.js +5749 -0
- package/package.json +10 -18
- package/pw-e2e.config.js +13 -0
- package/test-results/.last-run.json +4 -0
- package/protractor.conf.js +0 -29
package/dist/options.js
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.includeGetSet = void 0;
|
|
4
|
+
var date_utils_1 = require("./utils/date_utils");
|
|
5
|
+
var draw_columns_1 = require("./draw_columns");
|
|
6
|
+
var includeGetSet = function () {
|
|
7
|
+
/**
|
|
8
|
+
* SETTERS
|
|
9
|
+
*/
|
|
10
|
+
this.setOptions = function (options) {
|
|
11
|
+
var keys = Object.keys(options);
|
|
12
|
+
for (var i = 0; i < keys.length; i++) {
|
|
13
|
+
var key = keys[i];
|
|
14
|
+
var val = options[key];
|
|
15
|
+
if (key === 'vResources' || key === 'vColumnOrder') {
|
|
16
|
+
// ev = `this.set${key.substr(1)}(val)`;
|
|
17
|
+
this['set' + key.substr(1)](val);
|
|
18
|
+
}
|
|
19
|
+
else if (val instanceof Array) {
|
|
20
|
+
// ev = `this.set${key.substr(1)}(...val)`;
|
|
21
|
+
this['set' + key.substr(1)].apply(this, val);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
// ev = `this.set${key.substr(1)}(val)`;
|
|
25
|
+
this['set' + key.substr(1)](val);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
this.setUseFade = function (pVal) { this.vUseFade = pVal; };
|
|
30
|
+
this.setUseMove = function (pVal) { this.vUseMove = pVal; };
|
|
31
|
+
this.setUseRowHlt = function (pVal) { this.vUseRowHlt = pVal; };
|
|
32
|
+
this.setUseToolTip = function (pVal) { this.vUseToolTip = pVal; };
|
|
33
|
+
this.setUseSort = function (pVal) { this.vUseSort = pVal; };
|
|
34
|
+
this.setUseSingleCell = function (pVal) { this.vUseSingleCell = pVal * 1; };
|
|
35
|
+
this.setFormatArr = function () {
|
|
36
|
+
var vValidFormats = 'hour day week month quarter';
|
|
37
|
+
this.vFormatArr = new Array();
|
|
38
|
+
for (var i = 0, j = 0; i < arguments.length; i++) {
|
|
39
|
+
if (vValidFormats.indexOf(arguments[i].toLowerCase()) != -1 && arguments[i].length > 1) {
|
|
40
|
+
this.vFormatArr[j++] = arguments[i].toLowerCase();
|
|
41
|
+
var vRegExp = new RegExp('(?:^|\s)' + arguments[i] + '(?!\S)', 'g');
|
|
42
|
+
vValidFormats = vValidFormats.replace(vRegExp, '');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
this.setShowRes = function (pVal) { this.vShowRes = pVal; };
|
|
47
|
+
this.setShowDur = function (pVal) { this.vShowDur = pVal; };
|
|
48
|
+
this.setShowComp = function (pVal) { this.vShowComp = pVal; };
|
|
49
|
+
this.setShowStartDate = function (pVal) { this.vShowStartDate = pVal; };
|
|
50
|
+
this.setShowEndDate = function (pVal) { this.vShowEndDate = pVal; };
|
|
51
|
+
this.setShowPlanStartDate = function (pVal) { this.vShowPlanStartDate = pVal; };
|
|
52
|
+
this.setShowPlanEndDate = function (pVal) { this.vShowPlanEndDate = pVal; };
|
|
53
|
+
this.setShowCost = function (pVal) { this.vShowCost = pVal; };
|
|
54
|
+
this.setShowAddEntries = function (pVal) { this.vShowAddEntries = pVal; };
|
|
55
|
+
this.setShowTaskInfoRes = function (pVal) { this.vShowTaskInfoRes = pVal; };
|
|
56
|
+
this.setShowTaskInfoDur = function (pVal) { this.vShowTaskInfoDur = pVal; };
|
|
57
|
+
this.setShowTaskInfoComp = function (pVal) { this.vShowTaskInfoComp = pVal; };
|
|
58
|
+
this.setShowTaskInfoStartDate = function (pVal) { this.vShowTaskInfoStartDate = pVal; };
|
|
59
|
+
this.setShowTaskInfoEndDate = function (pVal) { this.vShowTaskInfoEndDate = pVal; };
|
|
60
|
+
this.setShowTaskInfoNotes = function (pVal) { this.vShowTaskInfoNotes = pVal; };
|
|
61
|
+
this.setShowTaskInfoLink = function (pVal) { this.vShowTaskInfoLink = pVal; };
|
|
62
|
+
this.setShowEndWeekDate = function (pVal) { this.vShowEndWeekDate = pVal; };
|
|
63
|
+
this.setShowWeekends = function (pVal) { this.vShowWeekends = pVal; };
|
|
64
|
+
this.setShowSelector = function () {
|
|
65
|
+
var vValidSelectors = 'top bottom';
|
|
66
|
+
this.vShowSelector = new Array();
|
|
67
|
+
for (var i = 0, j = 0; i < arguments.length; i++) {
|
|
68
|
+
if (vValidSelectors.indexOf(arguments[i].toLowerCase()) != -1 && arguments[i].length > 1) {
|
|
69
|
+
this.vShowSelector[j++] = arguments[i].toLowerCase();
|
|
70
|
+
var vRegExp = new RegExp('(?:^|\s)' + arguments[i] + '(?!\S)', 'g');
|
|
71
|
+
vValidSelectors = vValidSelectors.replace(vRegExp, '');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
this.setShowDeps = function (pVal) { this.vShowDeps = pVal; };
|
|
76
|
+
this.setDateInputFormat = function (pVal) { this.vDateInputFormat = pVal; };
|
|
77
|
+
this.setDateTaskTableDisplayFormat = function (pVal) { this.vDateTaskTableDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
78
|
+
this.setDateTaskDisplayFormat = function (pVal) { this.vDateTaskDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
79
|
+
this.setHourMajorDateDisplayFormat = function (pVal) { this.vHourMajorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
80
|
+
this.setHourMinorDateDisplayFormat = function (pVal) { this.vHourMinorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
81
|
+
this.setDayMajorDateDisplayFormat = function (pVal) { this.vDayMajorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
82
|
+
this.setDayMinorDateDisplayFormat = function (pVal) { this.vDayMinorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
83
|
+
this.setWeekMajorDateDisplayFormat = function (pVal) { this.vWeekMajorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
84
|
+
this.setWeekMinorDateDisplayFormat = function (pVal) { this.vWeekMinorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
85
|
+
this.setMonthMajorDateDisplayFormat = function (pVal) { this.vMonthMajorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
86
|
+
this.setMonthMinorDateDisplayFormat = function (pVal) { this.vMonthMinorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
87
|
+
this.setQuarterMajorDateDisplayFormat = function (pVal) { this.vQuarterMajorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
88
|
+
this.setQuarterMinorDateDisplayFormat = function (pVal) { this.vQuarterMinorDateDisplayFormat = (0, date_utils_1.parseDateFormatStr)(pVal); };
|
|
89
|
+
this.setCaptionType = function (pType) { this.vCaptionType = pType; };
|
|
90
|
+
this.setFormat = function (pFormat) {
|
|
91
|
+
this.vFormat = pFormat;
|
|
92
|
+
this.Draw();
|
|
93
|
+
};
|
|
94
|
+
this.setWorkingDays = function (workingDays) { this.vWorkingDays = workingDays; };
|
|
95
|
+
this.setFirstDayOfWeek = function (pVal) { this.vFirstDayOfWeek = parseInt(String(pVal), 10); };
|
|
96
|
+
this.setMinGpLen = function (pMinGpLen) { this.vMinGpLen = pMinGpLen; };
|
|
97
|
+
this.setScrollTo = function (pDate) { this.vScrollTo = pDate; };
|
|
98
|
+
this.setHourColWidth = function (pWidth) { this.vHourColWidth = pWidth; };
|
|
99
|
+
this.setDayColWidth = function (pWidth) { this.vDayColWidth = pWidth; };
|
|
100
|
+
this.setWeekColWidth = function (pWidth) { this.vWeekColWidth = pWidth; };
|
|
101
|
+
this.setMonthColWidth = function (pWidth) { this.vMonthColWidth = pWidth; };
|
|
102
|
+
this.setQuarterColWidth = function (pWidth) { this.vQuarterColWidth = pWidth; };
|
|
103
|
+
this.setRowHeight = function (pHeight) { this.vRowHeight = pHeight; };
|
|
104
|
+
this.setLang = function (pLang) { if (this.vLangs[pLang])
|
|
105
|
+
this.vLang = pLang; };
|
|
106
|
+
this.setChartBody = function (pDiv) { if (typeof HTMLDivElement !== 'function' || pDiv instanceof HTMLDivElement)
|
|
107
|
+
this.vChartBody = pDiv; };
|
|
108
|
+
this.setChartHead = function (pDiv) { if (typeof HTMLDivElement !== 'function' || pDiv instanceof HTMLDivElement)
|
|
109
|
+
this.vChartHead = pDiv; };
|
|
110
|
+
this.setListBody = function (pDiv) { if (typeof HTMLDivElement !== 'function' || pDiv instanceof HTMLDivElement)
|
|
111
|
+
this.vListBody = pDiv; };
|
|
112
|
+
this.setChartTable = function (pTable) { if (typeof HTMLTableElement !== 'function' || pTable instanceof HTMLTableElement)
|
|
113
|
+
this.vChartTable = pTable; };
|
|
114
|
+
this.setLines = function (pDiv) { if (typeof HTMLDivElement !== 'function' || pDiv instanceof HTMLDivElement)
|
|
115
|
+
this.vLines = pDiv; };
|
|
116
|
+
this.setLineOptions = function (lineOptions) { this.vLineOptions = lineOptions; };
|
|
117
|
+
this.setTimer = function (pVal) { this.vTimer = pVal * 1; };
|
|
118
|
+
this.setTooltipDelay = function (pVal) { this.vTooltipDelay = pVal * 1; };
|
|
119
|
+
this.setTooltipTemplate = function (pVal) { this.vTooltipTemplate = pVal; };
|
|
120
|
+
this.setMinDate = function (pVal) { this.vMinDate = pVal; };
|
|
121
|
+
this.setMaxDate = function (pVal) { this.vMaxDate = pVal; };
|
|
122
|
+
this.addLang = function (pLang, pVals) {
|
|
123
|
+
if (!this.vLangs[pLang]) {
|
|
124
|
+
this.vLangs[pLang] = new Object();
|
|
125
|
+
for (var vKey in this.vLangs['en'])
|
|
126
|
+
this.vLangs[pLang][vKey] = (pVals[vKey]) ? document.createTextNode(pVals[vKey]).data : this.vLangs['en'][vKey];
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
this.setCustomLang = function (pVals) {
|
|
130
|
+
this.vLangs[this.vLang] = new Object();
|
|
131
|
+
for (var vKey in this.vLangs['en']) {
|
|
132
|
+
this.vLangs[this.vLang][vKey] = (pVals[vKey]) ? document.createTextNode(pVals[vKey]).data : this.vLangs['en'][vKey];
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
this.setTotalHeight = function (pVal) { this.vTotalHeight = pVal; };
|
|
136
|
+
// EVENTS
|
|
137
|
+
this.setEvents = function (pEvents) { this.vEvents = pEvents; };
|
|
138
|
+
this.setEventsChange = function (pEventsChange) { this.vEventsChange = pEventsChange; };
|
|
139
|
+
this.setEventClickRow = function (fn) { this.vEventClickRow = fn; };
|
|
140
|
+
this.setEventClickCollapse = function (fn) { this.vEventClickCollapse = fn; };
|
|
141
|
+
this.setResources = function (resources) { this.vResources = resources; };
|
|
142
|
+
this.setAdditionalHeaders = function (headers) { this.vAdditionalHeaders = headers; };
|
|
143
|
+
this.setColumnOrder = function (order) { this.vColumnOrder = order; };
|
|
144
|
+
this.setEditable = function (editable) { this.vEditable = editable; };
|
|
145
|
+
this.setDebug = function (debug) { this.vDebug = debug; };
|
|
146
|
+
/**
|
|
147
|
+
* GETTERS
|
|
148
|
+
*/
|
|
149
|
+
this.getDivId = function () { return this.vDivId; };
|
|
150
|
+
this.getUseFade = function () { return this.vUseFade; };
|
|
151
|
+
this.getUseMove = function () { return this.vUseMove; };
|
|
152
|
+
this.getUseRowHlt = function () { return this.vUseRowHlt; };
|
|
153
|
+
this.getUseToolTip = function () { return this.vUseToolTip; };
|
|
154
|
+
this.getUseSort = function () { return this.vUseSort; };
|
|
155
|
+
this.getUseSingleCell = function () { return this.vUseSingleCell; };
|
|
156
|
+
this.getFormatArr = function () { return this.vFormatArr; };
|
|
157
|
+
this.getShowRes = function () { return this.vShowRes; };
|
|
158
|
+
this.getShowDur = function () { return this.vShowDur; };
|
|
159
|
+
this.getShowComp = function () { return this.vShowComp; };
|
|
160
|
+
this.getShowStartDate = function () { return this.vShowStartDate; };
|
|
161
|
+
this.getShowEndDate = function () { return this.vShowEndDate; };
|
|
162
|
+
this.getShowPlanStartDate = function () { return this.vShowPlanStartDate; };
|
|
163
|
+
this.getShowPlanEndDate = function () { return this.vShowPlanEndDate; };
|
|
164
|
+
this.getShowCost = function () { return this.vShowCost; };
|
|
165
|
+
this.getShowAddEntries = function () { return this.vShowAddEntries; };
|
|
166
|
+
this.getShowTaskInfoRes = function () { return this.vShowTaskInfoRes; };
|
|
167
|
+
this.getShowTaskInfoDur = function () { return this.vShowTaskInfoDur; };
|
|
168
|
+
this.getShowTaskInfoComp = function () { return this.vShowTaskInfoComp; };
|
|
169
|
+
this.getShowTaskInfoStartDate = function () { return this.vShowTaskInfoStartDate; };
|
|
170
|
+
this.getShowTaskInfoEndDate = function () { return this.vShowTaskInfoEndDate; };
|
|
171
|
+
this.getShowTaskInfoNotes = function () { return this.vShowTaskInfoNotes; };
|
|
172
|
+
this.getShowTaskInfoLink = function () { return this.vShowTaskInfoLink; };
|
|
173
|
+
this.getShowEndWeekDate = function () { return this.vShowEndWeekDate; };
|
|
174
|
+
this.getShowWeekends = function () { return this.vShowWeekends; };
|
|
175
|
+
this.getFirstDayOfWeek = function () { return this.vFirstDayOfWeek; };
|
|
176
|
+
this.getShowSelector = function () { return this.vShowSelector; };
|
|
177
|
+
this.getShowDeps = function () { return this.vShowDeps; };
|
|
178
|
+
this.getDateInputFormat = function () { return this.vDateInputFormat; };
|
|
179
|
+
this.getDateTaskTableDisplayFormat = function () { return this.vDateTaskTableDisplayFormat; };
|
|
180
|
+
this.getDateTaskDisplayFormat = function () { return this.vDateTaskDisplayFormat; };
|
|
181
|
+
this.getHourMajorDateDisplayFormat = function () { return this.vHourMajorDateDisplayFormat; };
|
|
182
|
+
this.getHourMinorDateDisplayFormat = function () { return this.vHourMinorDateDisplayFormat; };
|
|
183
|
+
this.getDayMajorDateDisplayFormat = function () { return this.vDayMajorDateDisplayFormat; };
|
|
184
|
+
this.getDayMinorDateDisplayFormat = function () { return this.vDayMinorDateDisplayFormat; };
|
|
185
|
+
this.getWeekMajorDateDisplayFormat = function () { return this.vWeekMajorDateDisplayFormat; };
|
|
186
|
+
this.getWeekMinorDateDisplayFormat = function () { return this.vWeekMinorDateDisplayFormat; };
|
|
187
|
+
this.getMonthMajorDateDisplayFormat = function () { return this.vMonthMajorDateDisplayFormat; };
|
|
188
|
+
this.getMonthMinorDateDisplayFormat = function () { return this.vMonthMinorDateDisplayFormat; };
|
|
189
|
+
this.getQuarterMajorDateDisplayFormat = function () { return this.vQuarterMajorDateDisplayFormat; };
|
|
190
|
+
this.getQuarterMinorDateDisplayFormat = function () { return this.vQuarterMinorDateDisplayFormat; };
|
|
191
|
+
this.getCaptionType = function () { return this.vCaptionType; };
|
|
192
|
+
this.getMinGpLen = function () { return this.vMinGpLen; };
|
|
193
|
+
this.getScrollTo = function () { return this.vScrollTo; };
|
|
194
|
+
this.getHourColWidth = function () { return this.vHourColWidth; };
|
|
195
|
+
this.getDayColWidth = function () { return this.vDayColWidth; };
|
|
196
|
+
this.getWeekColWidth = function () { return this.vWeekColWidth; };
|
|
197
|
+
this.getMonthColWidth = function () { return this.vMonthColWidth; };
|
|
198
|
+
this.getQuarterColWidth = function () { return this.vQuarterColWidth; };
|
|
199
|
+
this.getRowHeight = function () { return this.vRowHeight; };
|
|
200
|
+
this.getChartBody = function () { return this.vChartBody; };
|
|
201
|
+
this.getChartHead = function () { return this.vChartHead; };
|
|
202
|
+
this.getListBody = function () { return this.vListBody; };
|
|
203
|
+
this.getChartTable = function () { return this.vChartTable; };
|
|
204
|
+
this.getLines = function () { return this.vLines; };
|
|
205
|
+
this.getTimer = function () { return this.vTimer; };
|
|
206
|
+
this.getMinDate = function () { return this.vMinDate; };
|
|
207
|
+
this.getMaxDate = function () { return this.vMaxDate; };
|
|
208
|
+
this.getTooltipDelay = function () { return this.vTooltipDelay; };
|
|
209
|
+
this.getList = function () { return this.vTaskList; };
|
|
210
|
+
//EVENTS
|
|
211
|
+
this.getEventsClickCell = function () { return this.vEvents; };
|
|
212
|
+
this.getEventsChange = function () { return this.vEventsChange; };
|
|
213
|
+
this.getEventClickRow = function () { return this.vEventClickRow; };
|
|
214
|
+
this.getEventClickCollapse = function () { return this.vEventClickCollapse; };
|
|
215
|
+
this.getResources = function () { return this.vResources; };
|
|
216
|
+
this.getAdditionalHeaders = function () { return this.vAdditionalHeaders; };
|
|
217
|
+
this.getColumnOrder = function () { return this.vColumnOrder || draw_columns_1.COLUMN_ORDER; };
|
|
218
|
+
};
|
|
219
|
+
exports.includeGetSet = includeGetSet;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var _a;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
var test_1 = require("@playwright/test");
|
|
16
|
+
exports.default = (0, test_1.defineConfig)({
|
|
17
|
+
testDir: './test/e2e',
|
|
18
|
+
timeout: 30000,
|
|
19
|
+
retries: 0,
|
|
20
|
+
reporter: 'list',
|
|
21
|
+
use: {
|
|
22
|
+
baseURL: (_a = process.env.JSGANTT_E2E_BASE_URL) !== null && _a !== void 0 ? _a : 'http://localhost:8080',
|
|
23
|
+
headless: true,
|
|
24
|
+
viewport: { width: 1400, height: 900 },
|
|
25
|
+
},
|
|
26
|
+
projects: [
|
|
27
|
+
{
|
|
28
|
+
name: 'chromium',
|
|
29
|
+
use: __assign({}, test_1.devices['Desktop Chrome']),
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=playwright.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playwright.config.js","sourceRoot":"","sources":["../playwright.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,yCAAyD;AAEzD,kBAAe,IAAA,mBAAY,EAAC;IAC1B,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,KAAM;IACf,OAAO,EAAE,CAAC;IACV,QAAQ,EAAE,MAAM;IAChB,GAAG,EAAE;QACH,OAAO,EAAE,MAAA,OAAO,CAAC,GAAG,CAAC,oBAAoB,mCAAI,uBAAuB;QACpE,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE;KACvC;IACD,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,UAAU;YAChB,GAAG,eAAO,cAAO,CAAC,gBAAgB,CAAC,CAAE;SACtC;KACF;CACF,CAAC,CAAC"}
|