@sme.up/ketchup 8.1.0 → 8.2.1
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/dist/cjs/{f-button-a5f661f2.js → f-button-76a75669.js} +2 -2
- package/dist/cjs/{f-cell-ca9e4352.js → f-cell-a440d744.js} +14 -8
- package/dist/cjs/{f-checkbox-e2c6ecef.js → f-checkbox-aa34efd5.js} +1 -1
- package/dist/cjs/{f-chip-e941fa19.js → f-chip-fe9cffed.js} +3 -3
- package/dist/cjs/{f-image-466b724f.js → f-image-47976ad7.js} +2 -2
- package/dist/cjs/{f-paginator-utils-f775ce67.js → f-paginator-utils-f13f036f.js} +3 -3
- package/dist/cjs/{f-text-field-ddb47dda.js → f-text-field-3868b623.js} +3 -3
- package/dist/cjs/{index-26fb8571.js → index-dd9f2b9b.js} +13 -1
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +38 -24
- package/dist/cjs/kup-box.cjs.entry.js +11 -16
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +126 -3
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-16b684bd.js → kup-manager-695bbbe3.js} +3 -2
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +47 -31
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/assets/data-table.js +1 -0
- package/dist/collection/assets/echart.js +318 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/kup-box/kup-box-declarations.js +0 -1
- package/dist/collection/components/kup-box/kup-box.js +3 -28
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.js +46 -1
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +2 -0
- package/dist/collection/components/kup-echart/kup-echart.js +122 -1
- package/dist/collection/components/kup-form/kup-form.js +16 -13
- package/dist/collection/components/kup-planner/kup-planner.css +2 -2
- package/dist/collection/components/kup-planner/kup-planner.js +12 -5
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +1 -0
- package/dist/collection/components/kup-text-field/kup-text-field.js +23 -0
- package/dist/collection/f-components/f-cell/f-cell.js +8 -2
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -1
- package/dist/components/kup-autocomplete2.js +42 -19
- package/dist/components/kup-box2.js +2 -8
- package/dist/components/kup-echart2.js +124 -1
- package/dist/components/kup-planner.js +44 -28
- package/dist/esm/{f-button-c6a69f75.js → f-button-c5b36ae1.js} +2 -2
- package/dist/esm/{f-cell-5822ea68.js → f-cell-d48502f1.js} +14 -8
- package/dist/esm/{f-checkbox-c15911de.js → f-checkbox-11b32f83.js} +1 -1
- package/dist/esm/{f-chip-f46a03f5.js → f-chip-038e9404.js} +3 -3
- package/dist/esm/{f-image-f57832fa.js → f-image-c356f4c5.js} +2 -2
- package/dist/esm/{f-paginator-utils-bafc463d.js → f-paginator-utils-58466d55.js} +3 -3
- package/dist/esm/{f-text-field-15850e05.js → f-text-field-7e2b397b.js} +3 -3
- package/dist/esm/{index-238342f2.js → index-b45996ce.js} +13 -1
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/kup-autocomplete_27.entry.js +38 -24
- package/dist/esm/kup-box.entry.js +11 -16
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +2 -2
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +126 -3
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/{kup-manager-89dd9137.js → kup-manager-74e46edc.js} +3 -2
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +47 -31
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +4 -4
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-f2fda43b.entry.js → p-008cde2a.entry.js} +1 -1
- package/dist/ketchup/{p-7e757c27.entry.js → p-0d533d24.entry.js} +1 -1
- package/dist/ketchup/{p-4da77173.entry.js → p-1f5eb8e6.entry.js} +1 -1
- package/dist/ketchup/{p-78cc5a2d.entry.js → p-26765429.entry.js} +1 -1
- package/dist/ketchup/p-279eab92.js +1 -0
- package/dist/ketchup/{p-799f7f10.entry.js → p-2ac7d95a.entry.js} +1 -1
- package/dist/ketchup/p-3da7e4c6.js +2 -0
- package/dist/ketchup/{p-6ec8629e.js → p-46daf529.js} +1 -1
- package/dist/ketchup/{p-785e8d74.entry.js → p-59919641.entry.js} +1 -1
- package/dist/ketchup/{p-688478e9.entry.js → p-70a6ab77.entry.js} +1 -1
- package/dist/ketchup/p-71f202aa.entry.js +1 -0
- package/dist/ketchup/{p-e59c2bc0.entry.js → p-73ab15cd.entry.js} +1 -1
- package/dist/ketchup/{p-206245c0.js → p-78eaa526.js} +1 -1
- package/dist/ketchup/{p-514dcb7d.entry.js → p-8d992de0.entry.js} +1 -1
- package/dist/ketchup/{p-54248440.js → p-90576709.js} +1 -1
- package/dist/ketchup/p-9c7b9ff2.js +1 -0
- package/dist/ketchup/p-9cc4dd44.js +1 -0
- package/dist/ketchup/{p-84d3f676.entry.js → p-a015c95b.entry.js} +1 -1
- package/dist/ketchup/p-ad9b5c06.entry.js +9 -0
- package/dist/ketchup/{p-843253dd.entry.js → p-afbd769b.entry.js} +1 -1
- package/dist/ketchup/{p-5dfa5c49.entry.js → p-b813af24.entry.js} +1 -1
- package/dist/ketchup/{p-af7202ff.entry.js → p-bb93aa7e.entry.js} +1 -1
- package/dist/ketchup/{p-6a5d95df.entry.js → p-c1c49123.entry.js} +1 -1
- package/dist/ketchup/{p-51573263.entry.js → p-cd1f9e76.entry.js} +1 -1
- package/dist/ketchup/{p-1a8a06de.js → p-d5491e4f.js} +1 -1
- package/dist/ketchup/{p-f4b6aa3f.entry.js → p-da0db0a5.entry.js} +1 -1
- package/dist/ketchup/{p-ba959bb5.entry.js → p-dfab37a3.entry.js} +1 -1
- package/dist/ketchup/{p-4bd63e97.entry.js → p-e28a3dfb.entry.js} +2 -2
- package/dist/ketchup/{p-cd8512d9.entry.js → p-e9d2a964.entry.js} +2 -2
- package/dist/ketchup/{p-01d44efe.entry.js → p-f023195c.entry.js} +1 -1
- package/dist/ketchup/{p-a5f15864.js → p-ffbd77d5.js} +1 -1
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +0 -1
- package/dist/types/components/kup-box/kup-box.d.ts +0 -5
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +9 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -1
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +1 -0
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +5 -0
- package/dist/types/components.d.ts +24 -12
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +2 -0
- package/package.json +2 -2
- package/dist/ketchup/p-673bb93e.js +0 -1
- package/dist/ketchup/p-8c1edebd.js +0 -2
- package/dist/ketchup/p-c1931214.js +0 -1
- package/dist/ketchup/p-c354c5d0.js +0 -1
- package/dist/ketchup/p-d4f86197.entry.js +0 -9
- package/dist/ketchup/p-f4f5170c.entry.js +0 -1
|
@@ -93853,6 +93853,8 @@ var KupEchartTypes;
|
|
|
93853
93853
|
KupEchartTypes["SCATTER"] = "Scatter";
|
|
93854
93854
|
KupEchartTypes["FUNNEL"] = "Funnel";
|
|
93855
93855
|
KupEchartTypes["RADAR"] = "Radar";
|
|
93856
|
+
KupEchartTypes["BUBBLE"] = "Bubble";
|
|
93857
|
+
KupEchartTypes["SANKEY"] = "Sankey";
|
|
93856
93858
|
})(KupEchartTypes || (KupEchartTypes = {}));
|
|
93857
93859
|
|
|
93858
93860
|
const kupEchartCss = ":host{display:block;height:var(--kup_echart_height, 100%);min-height:var(--kup_echart_height, 100%);min-width:var(--kup_echart_width, 100%);width:var(--kup_echart_width, 100%)}#kup-component{width:100%;height:100%;position:relative}";
|
|
@@ -93873,7 +93875,7 @@ var __classPrivateFieldSet = (undefined && undefined.__classPrivateFieldSet) ||
|
|
|
93873
93875
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
93874
93876
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
93875
93877
|
};
|
|
93876
|
-
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
93878
|
+
var _KupEchart_instances, _KupEchart_chartContainer, _KupEchart_chartEl, _KupEchart_gaussianDatasets, _KupEchart_kupManager, _KupEchart_mapObj, _KupEchart_resizeTimeout, _KupEchart_sortedDataset, _KupEchart_themeBorder, _KupEchart_themeBackground, _KupEchart_minColorHeatMap, _KupEchart_maxColorHeatMap, _KupEchart_themeFont, _KupEchart_themeText, _KupEchart_initChart, _KupEchart_createChart, _KupEchart_funnelChart, _KupEchart_radarChart, _KupEchart_bubbleChart, _KupEchart_sankeyChart, _KupEchart_createX, _KupEchart_createY, _KupEchart_setAxisColors, _KupEchart_setLegend, _KupEchart_setTitle, _KupEchart_setTooltip, _KupEchart_setVisualMap, _KupEchart_setMapOptions, _KupEchart_setPieOptions, _KupEchart_setGaussianOptions, _KupEchart_addSeries, _KupEchart_setOptions, _KupEchart_setColors, _KupEchart_checks;
|
|
93877
93879
|
const KupEchart = /*@__PURE__*/ proxyCustomElement(class KupEchart extends HTMLElement {
|
|
93878
93880
|
constructor() {
|
|
93879
93881
|
super();
|
|
@@ -94067,6 +94069,12 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
94067
94069
|
case KupEchartTypes.RADAR:
|
|
94068
94070
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_radarChart).call(this);
|
|
94069
94071
|
break;
|
|
94072
|
+
case KupEchartTypes.BUBBLE:
|
|
94073
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_bubbleChart).call(this);
|
|
94074
|
+
break;
|
|
94075
|
+
case KupEchartTypes.SANKEY:
|
|
94076
|
+
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_sankeyChart).call(this);
|
|
94077
|
+
break;
|
|
94070
94078
|
default:
|
|
94071
94079
|
options = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setOptions).call(this);
|
|
94072
94080
|
break;
|
|
@@ -94201,6 +94209,121 @@ _KupEchart_chartContainer = new WeakMap(), _KupEchart_chartEl = new WeakMap(), _
|
|
|
94201
94209
|
},
|
|
94202
94210
|
],
|
|
94203
94211
|
};
|
|
94212
|
+
}, _KupEchart_bubbleChart = function _KupEchart_bubbleChart() {
|
|
94213
|
+
const y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), data = [], temp = [], legend = {}, series = [];
|
|
94214
|
+
let year = [];
|
|
94215
|
+
const content = this.data.columns.map((data) => data.title);
|
|
94216
|
+
if (content && content.length) {
|
|
94217
|
+
for (let i = 0; i < y[content[0]].length; i++) {
|
|
94218
|
+
const arr = [];
|
|
94219
|
+
for (let j = 0; j < content.length; j++) {
|
|
94220
|
+
arr.push(y[content[j]][i]);
|
|
94221
|
+
// last value always be a year
|
|
94222
|
+
if (j === content.length - 1) {
|
|
94223
|
+
year.push(y[content[j]][i]);
|
|
94224
|
+
}
|
|
94225
|
+
}
|
|
94226
|
+
temp.push(arr);
|
|
94227
|
+
}
|
|
94228
|
+
}
|
|
94229
|
+
year = [...new Set(year)];
|
|
94230
|
+
year.forEach((e, i) => {
|
|
94231
|
+
let k = [];
|
|
94232
|
+
temp.forEach((data) => {
|
|
94233
|
+
if (data.includes(e))
|
|
94234
|
+
k.push(data);
|
|
94235
|
+
});
|
|
94236
|
+
data.push(k);
|
|
94237
|
+
legend[e] = i;
|
|
94238
|
+
});
|
|
94239
|
+
data.forEach((el, i) => {
|
|
94240
|
+
series.push({
|
|
94241
|
+
name: year[i],
|
|
94242
|
+
data: el,
|
|
94243
|
+
type: 'scatter',
|
|
94244
|
+
symbolSize: function (data) {
|
|
94245
|
+
return Math.sqrt(data[2]) / 5e2;
|
|
94246
|
+
},
|
|
94247
|
+
emphasis: {
|
|
94248
|
+
focus: 'series',
|
|
94249
|
+
label: {
|
|
94250
|
+
show: true,
|
|
94251
|
+
formatter: function (param) {
|
|
94252
|
+
return param.data[3];
|
|
94253
|
+
},
|
|
94254
|
+
position: 'top',
|
|
94255
|
+
},
|
|
94256
|
+
},
|
|
94257
|
+
});
|
|
94258
|
+
});
|
|
94259
|
+
return {
|
|
94260
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94261
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
94262
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item', formatter: (value) => {
|
|
94263
|
+
const name = value.data;
|
|
94264
|
+
const data = content.map((e, i) => {
|
|
94265
|
+
return `<li> ${e}: ${name[i]} </li>`;
|
|
94266
|
+
});
|
|
94267
|
+
let showContent = '';
|
|
94268
|
+
data.forEach((r) => {
|
|
94269
|
+
showContent += r;
|
|
94270
|
+
});
|
|
94271
|
+
return `<ul>${showContent}</ul> `;
|
|
94272
|
+
} }),
|
|
94273
|
+
xAxis: {
|
|
94274
|
+
splitLine: {
|
|
94275
|
+
lineStyle: {
|
|
94276
|
+
type: 'dashed',
|
|
94277
|
+
},
|
|
94278
|
+
},
|
|
94279
|
+
},
|
|
94280
|
+
yAxis: {
|
|
94281
|
+
splitLine: {
|
|
94282
|
+
lineStyle: {
|
|
94283
|
+
type: 'dashed',
|
|
94284
|
+
},
|
|
94285
|
+
},
|
|
94286
|
+
scale: true,
|
|
94287
|
+
},
|
|
94288
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, content.length),
|
|
94289
|
+
series: series,
|
|
94290
|
+
};
|
|
94291
|
+
}, _KupEchart_sankeyChart = function _KupEchart_sankeyChart() {
|
|
94292
|
+
const links = [], y = __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_createY).call(this), keys = Object.keys(y);
|
|
94293
|
+
// Assuming all arrays in the question object have the same length
|
|
94294
|
+
const arrayLength = y[keys[0]].length;
|
|
94295
|
+
for (let i = 0; i < arrayLength; i++) {
|
|
94296
|
+
const entry = {};
|
|
94297
|
+
entry['source'] = y[keys[0]][i];
|
|
94298
|
+
entry['target'] = y[keys[1]][i];
|
|
94299
|
+
entry['value'] = parseInt(y[keys[2]][i]);
|
|
94300
|
+
links.push(entry);
|
|
94301
|
+
}
|
|
94302
|
+
const data = Array.from(new Set([
|
|
94303
|
+
...links.map((link) => link.source),
|
|
94304
|
+
...links.map((link) => link.target),
|
|
94305
|
+
])).map((name) => ({ name }));
|
|
94306
|
+
const legend = {};
|
|
94307
|
+
data.forEach((e, i) => {
|
|
94308
|
+
legend[e.name] = i;
|
|
94309
|
+
});
|
|
94310
|
+
return {
|
|
94311
|
+
title: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTitle).call(this),
|
|
94312
|
+
legend: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setLegend).call(this, legend),
|
|
94313
|
+
color: __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setColors).call(this, arrayLength),
|
|
94314
|
+
tooltip: Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupEchart_instances, "m", _KupEchart_setTooltip).call(this)), { trigger: 'item' }),
|
|
94315
|
+
series: {
|
|
94316
|
+
type: 'sankey',
|
|
94317
|
+
layout: 'none',
|
|
94318
|
+
emphasis: {
|
|
94319
|
+
focus: 'adjacency',
|
|
94320
|
+
},
|
|
94321
|
+
data,
|
|
94322
|
+
links,
|
|
94323
|
+
right: '10%',
|
|
94324
|
+
left: '10%',
|
|
94325
|
+
},
|
|
94326
|
+
};
|
|
94204
94327
|
}, _KupEchart_createX = function _KupEchart_createX(dataset = null) {
|
|
94205
94328
|
const x = [];
|
|
94206
94329
|
if (!dataset)
|
|
@@ -10973,7 +10973,7 @@ var TaskGantt = function TaskGantt(_ref) {
|
|
|
10973
10973
|
if (verticalGanttContainerRef.current) {
|
|
10974
10974
|
verticalGanttContainerRef.current.scrollLeft = scrollX;
|
|
10975
10975
|
}
|
|
10976
|
-
}, [
|
|
10976
|
+
}, [verticalGanttContainerRef, scrollX]);
|
|
10977
10977
|
return react.createElement("div", {
|
|
10978
10978
|
className: styles$7.ganttContainer,
|
|
10979
10979
|
ref: taskGanttRef
|
|
@@ -11013,21 +11013,20 @@ var HorizontalScroll = function HorizontalScroll(_ref) {
|
|
|
11013
11013
|
taskGanttRef = _ref.taskGanttRef,
|
|
11014
11014
|
rtl = _ref.rtl,
|
|
11015
11015
|
onScroll = _ref.onScroll;
|
|
11016
|
-
var scrollRef = react.
|
|
11016
|
+
var scrollRef = react.createRef();
|
|
11017
11017
|
react.useEffect(function () {
|
|
11018
|
+
var id;
|
|
11018
11019
|
if (scrollRef.current) {
|
|
11019
11020
|
var wrap = scrollRef.current;
|
|
11020
11021
|
var setScrollLeft = function setScrollLeft() {
|
|
11021
11022
|
wrap.scrollLeft = scroll;
|
|
11022
11023
|
};
|
|
11023
|
-
setTimeout(setScrollLeft,
|
|
11024
|
+
id = setTimeout(setScrollLeft, 50);
|
|
11024
11025
|
}
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
}
|
|
11030
|
-
}, [scroll]);
|
|
11026
|
+
return function () {
|
|
11027
|
+
clearTimeout(id);
|
|
11028
|
+
};
|
|
11029
|
+
}, [scroll, scrollRef]);
|
|
11031
11030
|
var rect = (_taskGanttRef$current = taskGanttRef.current) === null || _taskGanttRef$current === void 0 ? void 0 : _taskGanttRef$current.getBoundingClientRect();
|
|
11032
11031
|
return react.createElement("div", {
|
|
11033
11032
|
dir: "ltr",
|
|
@@ -11257,9 +11256,9 @@ var Gantt = function Gantt(_ref) {
|
|
|
11257
11256
|
});
|
|
11258
11257
|
}
|
|
11259
11258
|
setBarTasks(convertToBarTasks(filteredTasks, newDates, columnWidth, rowHeight, taskHeight, projectHeight, timelineHeight, barCornerRadius, handleWidth, rtl, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, showSecondaryDates));
|
|
11260
|
-
}, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, rtl, scrollX, onExpanderClick, showSecondaryDates, projectHeight, timelineHeight, displayedStartDate, displayedEndDate]);
|
|
11259
|
+
}, [tasks, viewMode, preStepsCount, rowHeight, barCornerRadius, columnWidth, taskHeight, handleWidth, barProgressColor, barProgressSelectedColor, barBackgroundColor, barBackgroundSelectedColor, projectProgressColor, projectProgressSelectedColor, projectBackgroundColor, projectBackgroundSelectedColor, rtl, scrollX, onExpanderClick, showSecondaryDates, projectHeight, timelineHeight, displayedStartDate, displayedEndDate, dateSetup]);
|
|
11261
11260
|
react.useEffect(function () {
|
|
11262
|
-
if (viewMode === dateSetup.viewMode && viewDate) {
|
|
11261
|
+
if (viewMode === dateSetup.viewMode && viewDate && initialScrollX < 1) {
|
|
11263
11262
|
var dates = dateSetup.dates;
|
|
11264
11263
|
var index = dates.findIndex(function (d, i) {
|
|
11265
11264
|
return viewDate.valueOf() >= d.valueOf() && i + 1 !== dates.length && viewDate.valueOf() < dates[i + 1].valueOf();
|
|
@@ -11270,7 +11269,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
11270
11269
|
setIgnoreScrollEvent(true);
|
|
11271
11270
|
setScrollX(columnWidth * index);
|
|
11272
11271
|
}
|
|
11273
|
-
}, [viewDate, columnWidth, dateSetup.dates, dateSetup.viewMode, viewMode]);
|
|
11272
|
+
}, [viewDate, columnWidth, dateSetup.dates, dateSetup.viewMode, viewMode, initialScrollX]);
|
|
11274
11273
|
react.useEffect(function () {
|
|
11275
11274
|
var changedTask = ganttEvent.changedTask,
|
|
11276
11275
|
action = ganttEvent.action;
|
|
@@ -11353,6 +11352,12 @@ var Gantt = function Gantt(_ref) {
|
|
|
11353
11352
|
newScrollX = svgWidth;
|
|
11354
11353
|
}
|
|
11355
11354
|
setScrollX(newScrollX);
|
|
11355
|
+
window.dispatchEvent(new CustomEvent("gantt-sync-scroll-event", {
|
|
11356
|
+
detail: {
|
|
11357
|
+
componentId: id,
|
|
11358
|
+
scrollX: newScrollX
|
|
11359
|
+
}
|
|
11360
|
+
}));
|
|
11356
11361
|
event.preventDefault();
|
|
11357
11362
|
} else if (ganttHeight) {
|
|
11358
11363
|
var newScrollY = scrollY + event.deltaY;
|
|
@@ -12141,19 +12146,22 @@ var Planner = function Planner(props) {
|
|
|
12141
12146
|
var setCurrentDetails = function setCurrentDetails(details) {
|
|
12142
12147
|
currentDetails.current = details;
|
|
12143
12148
|
};
|
|
12144
|
-
var _useState2 = react.useState(
|
|
12145
|
-
|
|
12146
|
-
|
|
12149
|
+
var _useState2 = react.useState(props.mainGantt.initialScrollX ? props.mainGantt.initialScrollX : -1),
|
|
12150
|
+
scrollX = _useState2[0],
|
|
12151
|
+
setScrollX = _useState2[1];
|
|
12152
|
+
var _useState3 = react.useState((_props$mainGantt$show = props.mainGantt.showSecondaryDates) != null ? _props$mainGantt$show : false),
|
|
12153
|
+
mainGanttDoubleView = _useState3[0],
|
|
12154
|
+
setMainGanttDoubleView = _useState3[1];
|
|
12147
12155
|
var displayedDates = react.useRef(calculateDisplayedDateRange(currentTasks.current, timeUnit, mainGanttDoubleView, currentDetails.current, props.preStepsCount));
|
|
12148
12156
|
var setDisplayedDates = function setDisplayedDates(dates) {
|
|
12149
12157
|
displayedDates.current = dates;
|
|
12150
12158
|
};
|
|
12151
|
-
var _useState3 = react.useState(),
|
|
12152
|
-
viewDate = _useState3[0],
|
|
12153
|
-
setViewDate = _useState3[1];
|
|
12154
12159
|
var _useState4 = react.useState(),
|
|
12155
|
-
|
|
12156
|
-
|
|
12160
|
+
viewDate = _useState4[0],
|
|
12161
|
+
setViewDate = _useState4[1];
|
|
12162
|
+
var _useState5 = react.useState(),
|
|
12163
|
+
projection = _useState5[0],
|
|
12164
|
+
setProjection = _useState5[1];
|
|
12157
12165
|
var locale = "it-IT";
|
|
12158
12166
|
var handleClick = function handleClick(row, onClick) {
|
|
12159
12167
|
if (!row) {
|
|
@@ -12293,6 +12301,7 @@ var Planner = function Planner(props) {
|
|
|
12293
12301
|
(_props$onSetViewMode = props.onSetViewMode) === null || _props$onSetViewMode === void 0 ? void 0 : _props$onSetViewMode.call(props, timeUnit);
|
|
12294
12302
|
setTimeUnit(timeUnit);
|
|
12295
12303
|
setViewDate(undefined);
|
|
12304
|
+
setScrollX(-1);
|
|
12296
12305
|
}
|
|
12297
12306
|
}), react.createElement("div", {
|
|
12298
12307
|
style: {
|
|
@@ -12356,7 +12365,7 @@ var Planner = function Planner(props) {
|
|
|
12356
12365
|
},
|
|
12357
12366
|
locale: locale,
|
|
12358
12367
|
dateTimeFormatters: ganttDateTimeFormatters,
|
|
12359
|
-
initialScrollX:
|
|
12368
|
+
initialScrollX: scrollX,
|
|
12360
12369
|
initialScrollY: props.mainGantt.initialScrollY,
|
|
12361
12370
|
readOnly: props.mainGantt.readOnly,
|
|
12362
12371
|
onScrollX: props.onScrollX,
|
|
@@ -12411,7 +12420,7 @@ var Planner = function Planner(props) {
|
|
|
12411
12420
|
},
|
|
12412
12421
|
locale: locale,
|
|
12413
12422
|
dateTimeFormatters: ganttDateTimeFormatters,
|
|
12414
|
-
initialScrollX:
|
|
12423
|
+
initialScrollX: scrollX,
|
|
12415
12424
|
initialScrollY: props.secondaryGantt.initialScrollY,
|
|
12416
12425
|
readOnly: props.secondaryGantt.readOnly,
|
|
12417
12426
|
onScrollY: props.secondaryGantt.onScrollY
|
|
@@ -12487,7 +12496,7 @@ class KupPlannerState {
|
|
|
12487
12496
|
}
|
|
12488
12497
|
}
|
|
12489
12498
|
|
|
12490
|
-
const kupPlannerCss = "._3_ygE{display:table;border-bottom:#e6e4e4 1px solid;border-top:#e6e4e4 1px solid;border-left:#e6e4e4 1px solid}._1nBOt{display:table-row;list-style:none}._2eZzQ{border-right:1px solid rgb(196, 196, 196);opacity:1;margin-left:-2px}._WuQ0f{display:table-cell;vertical-align:-webkit-baseline-middle;vertical-align:middle}._3ZbQT{display:table;border-bottom:#e6e4e4 1px solid;border-left:#e6e4e4 1px solid}._34SS0{display:table-row;text-overflow:ellipsis}._34SS0:nth-of-type(even){}._3lLk3{display:table-cell;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._nI1Xw{display:flex}._2QjE6{color:rgb(86 86 86);font-size:0.6rem;padding:0.15rem 0.2rem 0 0.2rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}._2TfEi{font-size:0.6rem;padding-left:1rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3T42e{background:#fff;padding:12px;box-shadow:0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)}._29NTg{font-size:12px;margin-bottom:6px;color:#666}._25P-K{position:absolute;display:flex;flex-shrink:0;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3gVAq{visibility:hidden;position:absolute;display:flex;pointer-events:none}._1eT-t{overflow:hidden auto;width:1rem;flex-shrink:0;scrollbar-width:thin}._1eT-t::-webkit-scrollbar{width:1.1rem;height:1.1rem}._1eT-t::-webkit-scrollbar-corner{background:transparent}._1eT-t::-webkit-scrollbar-thumb{border:6px solid transparent;background:rgba(0, 0, 0, 0.2);background:var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));border-radius:10px;background-clip:padding-box}._1eT-t::-webkit-scrollbar-thumb:hover{border:4px solid transparent;background:rgba(0, 0, 0, 0.3);background:var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));background-clip:padding-box}._EvhC1{border-radius:8px;background:#efefef;margin:12px;padding:12px}._2dZTy{fill:#fff}._2dZTy:nth-child(even){}._3rUKi{stroke:transparent}._RuwuK{stroke:#e6e4e4}._9w8d5{text-anchor:middle;fill:#333;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._1rLuZ{stroke:#e6e4e4}._2q1Kt{text-anchor:middle;fill:#555;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._35nLX{fill:#ffffff;stroke:#e0e0e0;stroke-width:1.4}._KxSXS{cursor:pointer;outline:none}._KxSXS:hover ._3w_5u{visibility:visible;opacity:1}._3w_5u{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}._31ERP{-webkit-user-select:none;-moz-user-select:none;user-select:none;stroke-width:0}._3zRJQ{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._3KcaM{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._11iN9{background:#efefef;border-radius:8px;margin:12px;overflow:hidden;padding:12px}._CZjuD{overflow:hidden;font-size:0;margin:0;padding:0}._2B2zv{margin:0;padding:0;overflow:hidden}._3eULf{display:flex;padding:0;margin:0;list-style:none;outline:none;position:relative}._2k9Ys{overflow:auto;max-width:100%;scrollbar-width:thin;height:1.2rem}._2k9Ys::-webkit-scrollbar{width:1.1rem;height:1.1rem}._2k9Ys::-webkit-scrollbar-corner{background:transparent}._2k9Ys::-webkit-scrollbar-thumb{border:6px solid transparent;background:rgba(0, 0, 0, 0.2);background:var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));border-radius:10px;background-clip:padding-box}._2k9Ys::-webkit-scrollbar-thumb:hover{border:4px solid transparent;background:rgba(0, 0, 0, 0.3);background:var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));background-clip:padding-box}._19jgW{height:1px}._37E9D{display:flex;justify-content:space-around;max-width:330px;place-items:\"center\";text-align:center;align-items:center}._WrYI6{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._c53zr{max-width:-moz-max-content;max-width:max-content;padding:0 4px;text-align:right}._2eBO5{position:relative;display:inline-block;width:30px;height:17px}._hiyro{opacity:0;width:0;height:0}._hiyro:checked+._2HI58{background-color:#003b77}._hiyro:checked+._2HI58:before{transform:translateX(13px)}._hiyro:focus+._2HI58{box-shadow:0 0 1px #003b77}._2HI58{-webkit-transition:0.4s;cursor:pointer;background-color:#ccc;bottom:0;border-radius:17px;left:0;position:absolute;right:0;top:0;transition:0.4s}._2HI58:before{-webkit-transition:0.1s;background-color:white;border-radius:50%;bottom:2px;content:\"\";height:13px;left:2px;position:absolute;transition:0.1s;width:13px}._2gSdA{font-size:12px;padding:6px}._2cfRI{font-size:12px}._lEI6r{padding:0 10px;margin-right:10px}._RU6Aa{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}._RU6Aa>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}._RU6Aa ._30j6y{font-weight:700;width:100%;
|
|
12499
|
+
const kupPlannerCss = "._3_ygE{display:table;border-bottom:#e6e4e4 1px solid;border-top:#e6e4e4 1px solid;border-left:#e6e4e4 1px solid}._1nBOt{display:table-row;list-style:none}._2eZzQ{border-right:1px solid rgb(196, 196, 196);opacity:1;margin-left:-2px}._WuQ0f{display:table-cell;vertical-align:-webkit-baseline-middle;vertical-align:middle}._3ZbQT{display:table;border-bottom:#e6e4e4 1px solid;border-left:#e6e4e4 1px solid}._34SS0{display:table-row;text-overflow:ellipsis}._34SS0:nth-of-type(even){}._3lLk3{display:table-cell;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._nI1Xw{display:flex}._2QjE6{color:rgb(86 86 86);font-size:0.6rem;padding:0.15rem 0.2rem 0 0.2rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}._2TfEi{font-size:0.6rem;padding-left:1rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3T42e{background:#fff;padding:12px;box-shadow:0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23)}._29NTg{font-size:12px;margin-bottom:6px;color:#666}._25P-K{position:absolute;display:flex;flex-shrink:0;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}._3gVAq{visibility:hidden;position:absolute;display:flex;pointer-events:none}._1eT-t{overflow:hidden auto;width:1rem;flex-shrink:0;scrollbar-width:thin}._1eT-t::-webkit-scrollbar{width:1.1rem;height:1.1rem}._1eT-t::-webkit-scrollbar-corner{background:transparent}._1eT-t::-webkit-scrollbar-thumb{border:6px solid transparent;background:rgba(0, 0, 0, 0.2);background:var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));border-radius:10px;background-clip:padding-box}._1eT-t::-webkit-scrollbar-thumb:hover{border:4px solid transparent;background:rgba(0, 0, 0, 0.3);background:var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));background-clip:padding-box}._EvhC1{border-radius:8px;background:#efefef;margin:12px;padding:12px}._2dZTy{fill:#fff}._2dZTy:nth-child(even){}._3rUKi{stroke:transparent}._RuwuK{stroke:#e6e4e4}._9w8d5{text-anchor:middle;fill:#333;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._1rLuZ{stroke:#e6e4e4}._2q1Kt{text-anchor:middle;fill:#555;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._35nLX{fill:#ffffff;stroke:#e0e0e0;stroke-width:1.4}._KxSXS{cursor:pointer;outline:none}._KxSXS:hover ._3w_5u{visibility:visible;opacity:1}._3w_5u{fill:#ddd;cursor:ew-resize;opacity:0;visibility:hidden}._31ERP{-webkit-user-select:none;-moz-user-select:none;user-select:none;stroke-width:0}._3zRJQ{fill:#fff;text-anchor:middle;font-weight:lighter;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._3KcaM{fill:#555;text-anchor:start;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._11iN9{background:#efefef;border-radius:8px;margin:12px;overflow:hidden;padding:12px}._CZjuD{overflow:hidden;font-size:0;margin:0;padding:0}._2B2zv{margin:0;padding:0;overflow:hidden}._3eULf{display:flex;padding:0;margin:0;list-style:none;outline:none;position:relative}._2k9Ys{overflow:auto;max-width:100%;scrollbar-width:thin;height:1.2rem}._2k9Ys::-webkit-scrollbar{width:1.1rem;height:1.1rem}._2k9Ys::-webkit-scrollbar-corner{background:transparent}._2k9Ys::-webkit-scrollbar-thumb{border:6px solid transparent;background:rgba(0, 0, 0, 0.2);background:var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));border-radius:10px;background-clip:padding-box}._2k9Ys::-webkit-scrollbar-thumb:hover{border:4px solid transparent;background:rgba(0, 0, 0, 0.3);background:var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));background-clip:padding-box}._19jgW{height:1px}._37E9D{display:flex;justify-content:space-around;max-width:330px;place-items:\"center\";text-align:center;align-items:center}._WrYI6{font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._c53zr{max-width:-moz-max-content;max-width:max-content;padding:0 4px;text-align:right}._2eBO5{position:relative;display:inline-block;width:30px;height:17px}._hiyro{opacity:0;width:0;height:0}._hiyro:checked+._2HI58{background-color:#003b77}._hiyro:checked+._2HI58:before{transform:translateX(13px)}._hiyro:focus+._2HI58{box-shadow:0 0 1px #003b77}._2HI58{-webkit-transition:0.4s;cursor:pointer;background-color:#ccc;bottom:0;border-radius:17px;left:0;position:absolute;right:0;top:0;transition:0.4s}._2HI58:before{-webkit-transition:0.1s;background-color:white;border-radius:50%;bottom:2px;content:\"\";height:13px;left:2px;position:absolute;transition:0.1s;width:13px}._2gSdA{font-size:12px;padding:6px}._2cfRI{font-size:12px}._lEI6r{padding:0 10px;margin-right:10px}._RU6Aa{background:var(--kup-background-color, #ffffff);border:1px solid var(--kup-border-color, #acacac);border-radius:4px;box-sizing:border-box;color:var(--kup-text-color, #595959);cursor:pointer;display:grid;font-weight:400;grid-template-columns:var(--grid-project-columns, 1fr 1fr 1fr);place-items:center}._RU6Aa>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}._RU6Aa ._30j6y{font-weight:700;width:100%;padding-left:4px}._T0HQN{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#acacac;border-bottom-left-radius:4px;border-bottom-right-radius:4px;box-sizing:border-box;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#ffffff;color:#595959;font-weight:400}._T0HQN>*{font-size:12px;line-height:14px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}._T0HQN:has(+._T0HQN),._RU6Aa:has(+._T0HQN){border-bottom-left-radius:0;border-bottom-right-radius:0}._yp2DW{cursor:pointer;display:grid;border-width:1px;border-style:solid;border-color:#cbcbcb;border-radius:4px;grid-template-columns:var(--grid-fasi-columns, 1fr 1fr 1fr);place-items:center;background:#fff;color:#595959;font-weight:400;box-sizing:border-box}._yp2DW>*{font-size:14px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}._yp2DW ._30j6y{font-weight:700;width:100%;padding-left:4px}._3P0WE{display:grid;grid-auto-flow:column;grid-gap:8px;margin-left:12px;width:-moz-max-content;width:max-content}._1oXbe{background:transparent;border-color:var(--kup-primary-color, #003b77);border-radius:4px;border-width:1px;box-shadow:0 3px 1px -2px rgba(var(--kup-text-color-rgb, 51 51 51), 0.2), 0 2px 2px 0 rgba(var(--kup-text-color-rgb, 51 51 51), 0.14), 0 1px 5px 0 rgba(var(--kup-text-color-rgb, 51 51 51), 0.12);box-sizing:border-box;color:var(--kup-primary-color, #003b77);cursor:pointer;font-size:11px;height:32px;min-width:64px}._1R9mh{font-family:var(--kup-font-family, inherit);font-size:11px;letter-spacing:0.0892857143em;text-decoration:none;text-transform:uppercase;padding:0 6px}:host{display:block}.filter{margin:12px 10px 12px 0;padding:0 10px}";
|
|
12491
12500
|
|
|
12492
12501
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12493
12502
|
if (kind === "a" && !f)
|
|
@@ -12701,6 +12710,16 @@ const KupPlanner$1 = /*@__PURE__*/ proxyCustomElement(class KupPlanner extends H
|
|
|
12701
12710
|
return phase;
|
|
12702
12711
|
});
|
|
12703
12712
|
}
|
|
12713
|
+
this.plannerProps.mainGantt.initialScrollX =
|
|
12714
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollX;
|
|
12715
|
+
this.plannerProps.mainGantt.initialScrollY =
|
|
12716
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").taskInitialScrollY;
|
|
12717
|
+
if (this.plannerProps.secondaryGantt) {
|
|
12718
|
+
this.plannerProps.secondaryGantt.initialScrollX =
|
|
12719
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollX;
|
|
12720
|
+
this.plannerProps.secondaryGantt.initialScrollX =
|
|
12721
|
+
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").detailInitialScrollY;
|
|
12722
|
+
}
|
|
12704
12723
|
this.plannerProps = Object.assign({}, this.plannerProps);
|
|
12705
12724
|
}
|
|
12706
12725
|
//---- Lifecycle hooks ----
|
|
@@ -12732,7 +12751,7 @@ const KupPlanner$1 = /*@__PURE__*/ proxyCustomElement(class KupPlanner extends H
|
|
|
12732
12751
|
let scrollXTimeout;
|
|
12733
12752
|
let taskScrollYTimeout;
|
|
12734
12753
|
let detailScrollYTimeout;
|
|
12735
|
-
const scrollDelay =
|
|
12754
|
+
const scrollDelay = 500;
|
|
12736
12755
|
this.plannerProps = {
|
|
12737
12756
|
mainGantt: {
|
|
12738
12757
|
title: this.titleMess,
|
|
@@ -12905,11 +12924,8 @@ const KupPlanner$1 = /*@__PURE__*/ proxyCustomElement(class KupPlanner extends H
|
|
|
12905
12924
|
this.persistState();
|
|
12906
12925
|
}
|
|
12907
12926
|
handleOnSetViewMode(value) {
|
|
12908
|
-
var _a;
|
|
12909
12927
|
__classPrivateFieldGet(this, _KupPlanner_storedSettings, "f").viewMode = value;
|
|
12910
|
-
|
|
12911
|
-
this.plannerProps.mainGantt.viewMode = value;
|
|
12912
|
-
}
|
|
12928
|
+
this.plannerProps.viewMode = value;
|
|
12913
12929
|
this.persistState();
|
|
12914
12930
|
}
|
|
12915
12931
|
handleOnScrollX(x) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-b45996ce.js';
|
|
2
2
|
import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
|
|
3
|
-
import { F as FImage } from './f-image-
|
|
3
|
+
import { F as FImage } from './f-image-c356f4c5.js';
|
|
4
4
|
|
|
5
5
|
/*-------------------------------------------------*/
|
|
6
6
|
/* C o m p o n e n t */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a9 as editableTypes, aa as kupTypes, b as KupThemeColorValues, a6 as FCellTypes, ab as KupTagNames, ac as fullWidthFieldsComps, ad as FCellClasses, ae as autoCenterComps, af as getCellValueForDisplay, ag as FCellEvents } from './kup-manager-
|
|
2
|
-
import { h } from './index-
|
|
3
|
-
import { F as FCheckbox } from './f-checkbox-
|
|
4
|
-
import { F as FTextField } from './f-text-field-
|
|
5
|
-
import { F as FImage } from './f-image-
|
|
6
|
-
import { F as FChipType, a as FChip } from './f-chip-
|
|
1
|
+
import { a9 as editableTypes, aa as kupTypes, b as KupThemeColorValues, a6 as FCellTypes, ab as KupTagNames, ac as fullWidthFieldsComps, ad as FCellClasses, ae as autoCenterComps, af as getCellValueForDisplay, ag as FCellEvents } from './kup-manager-74e46edc.js';
|
|
2
|
+
import { h } from './index-b45996ce.js';
|
|
3
|
+
import { F as FCheckbox } from './f-checkbox-11b32f83.js';
|
|
4
|
+
import { F as FTextField } from './f-text-field-7e2b397b.js';
|
|
5
|
+
import { F as FImage } from './f-image-c356f4c5.js';
|
|
6
|
+
import { F as FChipType, a as FChip } from './f-chip-038e9404.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Props of the kup-list component.
|
|
@@ -148,7 +148,7 @@ const FCell = (props, children) => {
|
|
|
148
148
|
}
|
|
149
149
|
return (h("div", { onKeyUp: (e) => cellEvent(e, props, cellType, FCellEvents.KEYUP), class: classObj, "kup-get-cell-props": () => {
|
|
150
150
|
return props;
|
|
151
|
-
}, style: cell.style },
|
|
151
|
+
}, ref: (el) => (cell.element = el), style: cell.style },
|
|
152
152
|
h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle }, children && children.length > 0
|
|
153
153
|
? children
|
|
154
154
|
: [props.indents, infoEl, icon, content])));
|
|
@@ -278,7 +278,13 @@ function setEditableCell(cellType, classObj, cell, column, props) {
|
|
|
278
278
|
classObj[FCellClasses.C_RIGHT_ALIGNED] = true;
|
|
279
279
|
case FCellTypes.LINK:
|
|
280
280
|
case FCellTypes.STRING:
|
|
281
|
-
return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.
|
|
281
|
+
return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.data && cell.data.icon
|
|
282
|
+
? cell.data.icon
|
|
283
|
+
: cell.icon
|
|
284
|
+
? cell.icon
|
|
285
|
+
: column.icon
|
|
286
|
+
? column.icon
|
|
287
|
+
: null, value: cellType === FCellTypes.NUMBER
|
|
282
288
|
? dom.ketchup.math
|
|
283
289
|
.numberifySafe(cell.value)
|
|
284
290
|
.toString()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from './index-
|
|
2
|
-
import { F as FImage } from './f-image-
|
|
3
|
-
import { K as KupThemeIconValues, m as KupLanguageGeneric, b as KupThemeColorValues } from './kup-manager-
|
|
1
|
+
import { h } from './index-b45996ce.js';
|
|
2
|
+
import { F as FImage } from './f-image-c356f4c5.js';
|
|
3
|
+
import { K as KupThemeIconValues, m as KupLanguageGeneric, b as KupThemeColorValues } from './kup-manager-74e46edc.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Types of the f-chip component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h, a as getAssetPath } from './index-
|
|
2
|
-
import { b as KupThemeColorValues } from './kup-manager-
|
|
1
|
+
import { h, a as getAssetPath } from './index-b45996ce.js';
|
|
2
|
+
import { b as KupThemeColorValues } from './kup-manager-74e46edc.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The type of a CSS step in CSS-drawing mode.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as Filters, J as FilterInterval, H as getValueForDisplay, D as getValueForDisplay2, af as getCellValueForDisplay, v as getColumnByName, z as KupObjects, ah as KupData, ai as compareCell, N as TotalMode, h as KupDatesFormats, a2 as SortMode, aj as KupLanguagePage, r as KupLanguageRow, m as KupLanguageGeneric } from './kup-manager-
|
|
2
|
-
import { h } from './index-
|
|
3
|
-
import { F as FButton } from './f-button-
|
|
1
|
+
import { E as Filters, J as FilterInterval, H as getValueForDisplay, D as getValueForDisplay2, af as getCellValueForDisplay, v as getColumnByName, z as KupObjects, ah as KupData, ai as compareCell, N as TotalMode, h as KupDatesFormats, a2 as SortMode, aj as KupLanguagePage, r as KupLanguageRow, m as KupLanguageGeneric } from './kup-manager-74e46edc.js';
|
|
2
|
+
import { h } from './index-b45996ce.js';
|
|
3
|
+
import { F as FButton } from './f-button-c5b36ae1.js';
|
|
4
4
|
import { F as FButtonStyling } from './f-button-declarations-fd4965d1.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h, a as getAssetPath } from './index-
|
|
2
|
-
import { K as KupThemeIconValues } from './kup-manager-
|
|
1
|
+
import { h, a as getAssetPath } from './index-b45996ce.js';
|
|
2
|
+
import { K as KupThemeIconValues } from './kup-manager-74e46edc.js';
|
|
3
3
|
|
|
4
4
|
const dom = document.documentElement;
|
|
5
5
|
/*-------------------------------------------------*/
|
|
@@ -76,7 +76,7 @@ function setContent(props) {
|
|
|
76
76
|
props.textArea ? (h("span", { class: "mdc-text-field__resizer" },
|
|
77
77
|
h("textarea", { class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, maxlength: props.maxLength, value: value, onBlur: props.onBlur, onClick: props.onClick, onChange: props.onChange, onFocus: props.onFocus, onInput: props.onInput, onKeyDown: props.onKeyDown }))) : (h("input", { inputmode: props.inputMode ? props.inputMode : undefined, type: inputType, step: props.step, min: props.min, max: props.max, name: props.name, class: "mdc-text-field__input", disabled: props.disabled, readOnly: props.readOnly, placeholder: props.fullWidth && !props.outlined
|
|
78
78
|
? props.label
|
|
79
|
-
: undefined, maxlength: props.maxLength, value: value, onBlur: (e) => {
|
|
79
|
+
: undefined, maxlength: props.maxLength, size: props.size, value: value, onBlur: (e) => {
|
|
80
80
|
var _a;
|
|
81
81
|
if (persManageForNumberFormat) {
|
|
82
82
|
const options = {
|
|
@@ -1102,7 +1102,19 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1102
1102
|
* @param fn a function to enqueue
|
|
1103
1103
|
* @returns either a `Promise` or the return value of the provided function
|
|
1104
1104
|
*/
|
|
1105
|
-
const enqueue = (maybePromise, fn) => maybePromise
|
|
1105
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
1106
|
+
/**
|
|
1107
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
1108
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
1109
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
1110
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
1111
|
+
* defined and a function.
|
|
1112
|
+
*
|
|
1113
|
+
* @param maybePromise it might be a promise!
|
|
1114
|
+
* @returns whether it is or not
|
|
1115
|
+
*/
|
|
1116
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
1117
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
1106
1118
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1107
1119
|
var _a;
|
|
1108
1120
|
const elm = hostRef.$hostElement$;
|