@sme.up/ketchup 11.0.0-SNAPSHOT-20241023082921 → 11.0.0-SNAPSHOT-20241023092659
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/index-4e97f23f.js +4 -0
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +38 -38
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
- package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
- package/dist/cjs/kup-htm.cjs.entry.js +100 -0
- package/dist/cjs/kup-htm.cjs.entry.js.map +1 -0
- package/dist/cjs/kup-image-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-input-panel.cjs.entry.js +1 -1
- package/dist/cjs/kup-lazy.cjs.entry.js +11 -11
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +1 -1
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +1 -1
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/htm.js +20 -0
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/kup-htm/kup-htm-declarations.js +9 -0
- package/dist/collection/components/kup-htm/kup-htm-declarations.js.map +1 -0
- package/dist/collection/components/kup-htm/kup-htm.css +147 -0
- package/dist/collection/components/kup-htm/kup-htm.js +225 -0
- package/dist/collection/components/kup-htm/kup-htm.js.map +1 -0
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +1 -1
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +1 -1
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +2 -2
- package/dist/collection/components/kup-planner/kup-planner.js +1 -1
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +3 -3
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +5 -5
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +2 -2
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +7 -7
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +2 -2
- package/dist/collection/components/kup-probe/kup-probe.js +1 -1
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +1 -1
- package/dist/collection/components/kup-typography/kup-typography.js +1 -1
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/components/custom-task-list-header.js +2 -2
- package/dist/components/kup-autocomplete2.js +38 -38
- package/dist/components/kup-gantt-calendar2.js +2 -2
- package/dist/components/kup-gantt2.js +2 -2
- package/dist/components/kup-grid-renderer2.js +3 -3
- package/dist/components/kup-horizontal-scroll2.js +5 -5
- package/dist/components/kup-htm.d.ts +11 -0
- package/dist/components/kup-htm.js +253 -0
- package/dist/components/kup-htm.js.map +1 -0
- package/dist/components/kup-image-list.js +3 -3
- package/dist/components/kup-input-panel.js +1 -1
- package/dist/components/kup-lazy.js +11 -11
- package/dist/components/kup-magic-box.js +3 -3
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-photo-frame.js +2 -2
- package/dist/components/kup-planner-renderer2.js +2 -2
- package/dist/components/kup-planner.js +1 -1
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +1 -1
- package/dist/components/kup-switcher2.js +1 -1
- package/dist/components/kup-task-gantt2.js +2 -2
- package/dist/components/kup-task-list-header2.js +7 -7
- package/dist/components/kup-task-list-table2.js +1 -1
- package/dist/components/kup-task-list2.js +1 -1
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-typography-list.js +1 -1
- package/dist/components/kup-typography.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +2 -2
- package/dist/esm/index-191ee7cb.js +4 -0
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-autocomplete_27.entry.js +38 -38
- package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
- package/dist/esm/kup-gantt_10.entry.js +23 -23
- package/dist/esm/kup-htm.entry.js +96 -0
- package/dist/esm/kup-htm.entry.js.map +1 -0
- package/dist/esm/kup-image-list.entry.js +3 -3
- package/dist/esm/kup-input-panel.entry.js +1 -1
- package/dist/esm/kup-lazy.entry.js +11 -11
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +1 -1
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-planner-renderer.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +1 -1
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js.map +1 -1
- package/dist/ketchup/{p-b3c7cbd9.entry.js → p-20c22a22.entry.js} +2 -2
- package/dist/ketchup/{p-e921b455.entry.js → p-26efe39b.entry.js} +2 -2
- package/dist/ketchup/{p-18229ac3.entry.js → p-2c8d07af.entry.js} +2 -2
- package/dist/ketchup/{p-f4a6652e.entry.js → p-362a8b69.entry.js} +2 -2
- package/dist/ketchup/{p-45db3eae.entry.js → p-3a8f5a76.entry.js} +2 -2
- package/dist/ketchup/{p-39fa8da7.entry.js → p-3edff8e7.entry.js} +2 -2
- package/dist/ketchup/{p-9d9bb8a9.entry.js → p-422e1c5d.entry.js} +2 -2
- package/dist/ketchup/{p-9788df0b.entry.js → p-44b6390c.entry.js} +2 -2
- package/dist/ketchup/{p-fedd9482.entry.js → p-4b14b67b.entry.js} +2 -2
- package/dist/ketchup/p-5e889cbc.entry.js +2 -0
- package/dist/ketchup/p-5e889cbc.entry.js.map +1 -0
- package/dist/ketchup/{p-203cb58a.entry.js → p-94099e24.entry.js} +3 -3
- package/dist/ketchup/{p-8a77b0b2.entry.js → p-9fa6808d.entry.js} +2 -2
- package/dist/ketchup/{p-188ed514.entry.js → p-a33ea26d.entry.js} +2 -2
- package/dist/ketchup/{p-674a4d20.entry.js → p-b46a4d95.entry.js} +2 -2
- package/dist/ketchup/{p-246e4816.entry.js → p-b849ae30.entry.js} +2 -2
- package/dist/ketchup/p-bb4e26cb.entry.js +2 -0
- package/dist/ketchup/{p-e32ad7e4.entry.js.map → p-bb4e26cb.entry.js.map} +1 -1
- package/dist/ketchup/{p-7b5bef8e.entry.js → p-c7dfed3a.entry.js} +2 -2
- package/dist/ketchup/{p-992647ed.entry.js → p-ce5a86e1.entry.js} +2 -2
- package/dist/ketchup/{p-5d738584.entry.js → p-e8c292e9.entry.js} +2 -2
- package/dist/types/components/kup-htm/kup-htm-declarations.d.ts +7 -0
- package/dist/types/components/kup-htm/kup-htm.d.ts +40 -0
- package/dist/types/components.d.ts +57 -0
- package/package.json +1 -1
- package/dist/ketchup/p-e32ad7e4.entry.js +0 -2
- /package/dist/ketchup/{p-b3c7cbd9.entry.js.map → p-20c22a22.entry.js.map} +0 -0
- /package/dist/ketchup/{p-e921b455.entry.js.map → p-26efe39b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-18229ac3.entry.js.map → p-2c8d07af.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f4a6652e.entry.js.map → p-362a8b69.entry.js.map} +0 -0
- /package/dist/ketchup/{p-45db3eae.entry.js.map → p-3a8f5a76.entry.js.map} +0 -0
- /package/dist/ketchup/{p-39fa8da7.entry.js.map → p-3edff8e7.entry.js.map} +0 -0
- /package/dist/ketchup/{p-9d9bb8a9.entry.js.map → p-422e1c5d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-9788df0b.entry.js.map → p-44b6390c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-fedd9482.entry.js.map → p-4b14b67b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-203cb58a.entry.js.map → p-94099e24.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8a77b0b2.entry.js.map → p-9fa6808d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-188ed514.entry.js.map → p-a33ea26d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-674a4d20.entry.js.map → p-b46a4d95.entry.js.map} +0 -0
- /package/dist/ketchup/{p-246e4816.entry.js.map → p-b849ae30.entry.js.map} +0 -0
- /package/dist/ketchup/{p-7b5bef8e.entry.js.map → p-c7dfed3a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-992647ed.entry.js.map → p-ce5a86e1.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5d738584.entry.js.map → p-e8c292e9.entry.js.map} +0 -0
|
@@ -17,11 +17,11 @@ const KupCustomTaskListHeader = class {
|
|
|
17
17
|
this.fontSize = undefined;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: 'dfcd0fb852559b2ffcb4fb167c7639d3f7debf8b', class: "custom-task-list-wrapper", style: {
|
|
21
21
|
height: '25px',
|
|
22
22
|
fontFamily: this.fontFamily,
|
|
23
23
|
fontSize: this.fontSize,
|
|
24
|
-
} }, h("div", { key: '
|
|
24
|
+
} }, h("div", { key: '59e157d30f9573922fa456b1f6ea1132fc192089', class: "title" }, h("span", { key: '73a2095bf91d0846df1ad2bf1fb2d7425b3210f0' }, this.label)), this.setDoubleView !== undefined && (h("div", { key: 'fcc17da264378828c9494c571f24f8c072508dd0', class: "toggler" }, h("label", { key: '94edc43752e00d5b12fa516712b6eb7230720891', htmlFor: "ch2", class: "switch" }, h("input", { key: '3a0c8a9cbae7a67f93afea19013cccdd9a97c053', class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), h("span", { key: '5fd1f6bcfe2f27d73f1c84938dda32c8fdebbf67', class: "slider" })), h("span", { key: '117ddb88804955dbad7f5acc69fcfc1b4701fccb', class: "label" }, "Previsioni")))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
KupCustomTaskListHeader.style = KupCustomTaskListHeaderStyle0;
|
|
@@ -385,11 +385,11 @@ const KupGanttCalendar = class {
|
|
|
385
385
|
this.simplifiedHeader =
|
|
386
386
|
this.singleLineHeader && this.dateSetup.viewMode !== 'year';
|
|
387
387
|
const [topValues, bottomValues] = this.getTopAndBottomValues();
|
|
388
|
-
return (h("svg", { key: '
|
|
388
|
+
return (h("svg", { key: '4ad5b9ccca0df392a83070e15b28fd3f8e72e70f', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: 'da7da862b4f407c73f351fa1b8e3e4beb240db65', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: '515bd9ab381247ee55813b3f40fa453b2f366467', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
|
|
389
389
|
? topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y2Line * 2, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value))))
|
|
390
390
|
: topValues.map((topValue) => (h("g", { class: "calendarTop" }, h("line", { x1: topValue.x1Line, y1: topValue.y1Line, x2: topValue.x1Line, y2: topValue.y2Line, class: "calendarTopTick", key: topValue.value + 'line' }), h("text", { key: topValue.value + 'text', y: topValue.yText, x: topValue.xText, class: "calendarTopText" }, topValue.value)))), this.currentDateIndicator && (
|
|
391
391
|
// current date indicator
|
|
392
|
-
h("circle", { key: '
|
|
392
|
+
h("circle", { key: '609d5428fdfc27ba6ac1bdc2a2799fea5089dee7', fill: this.currentDateIndicator.color, cx: this.currentDateIndicator.x + 2.5, cy: this.headerHeight - 8, r: "8" })))));
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
KupGanttCalendar.style = KupGanttCalendarStyle0;
|
|
@@ -1445,13 +1445,13 @@ const KupGridRenderer = class {
|
|
|
1445
1445
|
// }
|
|
1446
1446
|
tickX += this.columnWidth;
|
|
1447
1447
|
}
|
|
1448
|
-
return (h("svg", { key: '
|
|
1448
|
+
return (h("svg", { key: '6e2c05f30bc3155b36dc0433a116410048042015', xmlns: "http://www.w3.org/2000/svg", width: this.gridProps.svgWidth, height: `${this.rowHeight * this.tasks.length}px`, "font-family": this.fontFamily, ref: (el) => (this.svg = el) }, h("g", { key: '0530506fe65e0b1a8e6fdb018689d094a16820a4', class: "grid" }, h("g", { key: 'd189d3654b50f9bb34dc0800faef0a67780b4525', class: "rows" }, gridRows), h("g", { key: 'd53aee95bb1542041abbbf1425b2c2d2eb0dda9d', class: "rowLines" }, rowLines), h("g", { key: '3d238c6efd1dfacc8319782d1be07eb9c9a7f596', class: "ticks" }, ticks)), h("g", { key: '72d0cc281ff3a10943d27b3b8a029379f78f6c93', class: "content" }, this.currentDateIndicator && (h("rect", { key: '519244fbac413f1bc538441e19fef3ff57e55b3d', fill: this.currentDateIndicator.color, x: this.currentDateIndicator.x + 1.5, y: "0", width: "2", height: "100%" })), this.projection && (h("rect", { key: 'a0f3fcb8e27562a64862817ba4f7056e0a0e2123', fill: this.projection.color, x: this.projection.x0, y: "0", width: this.projection.xf - this.projection.x0, height: "100%", "fill-opacity": "0.35" })), h("g", { key: 'a050c973b2219e0f2bac273c53d934da444a4024', class: "arrows", fill: this.arrowColor, stroke: this.arrowColor }, this.tasks.map((task) => {
|
|
1449
1449
|
return task.barChildren.map((child) => {
|
|
1450
1450
|
if (task.type !== 'timeline') {
|
|
1451
1451
|
this.renderKupArrow(task, child);
|
|
1452
1452
|
}
|
|
1453
1453
|
});
|
|
1454
|
-
})), h("g", { key: '
|
|
1454
|
+
})), h("g", { key: 'ad2c626a9b4a5277eba2fa154602c68d41a127a8', class: "bar", "font-family": this.fontFamily, "font-size": this.fontSize }, this.tasks.map((task) => {
|
|
1455
1455
|
const forbidResize = task.type === 'project';
|
|
1456
1456
|
return (h("g", { onKeyDown: (e) => {
|
|
1457
1457
|
switch (e.key) {
|
|
@@ -1511,7 +1511,7 @@ const KupGridRenderer = class {
|
|
|
1511
1511
|
return this.renderKupBar(task, props.isSelected, isDateResizable, isProgressChangeable);
|
|
1512
1512
|
}
|
|
1513
1513
|
})()));
|
|
1514
|
-
}), this.currentTarget && this.ganttEvent.changedTask && (h("g", { key: '
|
|
1514
|
+
}), this.currentTarget && this.ganttEvent.changedTask && (h("g", { key: '6da45035c94f4e976172186d6929ad693ba40e77', class: "task-wrapper" }, this.renderKupBar(this.ganttEvent.changedTask, false, false, false)))))));
|
|
1515
1515
|
}
|
|
1516
1516
|
static get watchers() { return {
|
|
1517
1517
|
"columnWidth": ["updateXStep"],
|
|
@@ -569,9 +569,9 @@ const KupGantt = class {
|
|
|
569
569
|
TaskListHeader: this.TaskListHeader,
|
|
570
570
|
TaskListTable: this.TaskListTable
|
|
571
571
|
};
|
|
572
|
-
return (h("div", { key: '
|
|
572
|
+
return (h("div", { key: '836af3f1012d6eb8276048866fc9a976b349775e', class: "gannt-wrapper-main" }, h("div", { key: '67654e8431be67e00d1bff668d9d90b3a7b3b21f', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ key: '2e419799a7a5ad604357225ec48b6be0b6a9353a', currentTasks: this.currentTasks, handleClick: this.handleClick, handleDblClick: this.handleDblClick, handleContextMenu: this.handleContextMenu, ganttOnClick: this.ganttOnClick, ganttOnDblClick: this.ganttOnDblClick, ganttonOnContextMenu: this.ganttonOnContextMenu, label: this.label, doubleView: this.doubleView, setDoubleView: this.setDoubleView }, tableProps, { class: "tasks", scrollableTaskList: this.scrollableTaskList, updateTaskListScrollX: this.ignoreScrollEvent, ontaskListScrollWidth: (width) => {
|
|
573
573
|
this.taskListScrollWidth = width;
|
|
574
|
-
}, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '
|
|
574
|
+
}, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '4587424ff6d24d47b471cfc28972cb34e42ba0c7', gridProps: gridProps, calendarProps: calendarProps, barProps: barProps, ganttHeight: this.ganttHeight, taskGanttRef: this.taskGanttRef, scrollY: this.scrollY, scrollX: this.scrollX, phaseDragScroll: this.handlePhaseDragScroll.bind(this), class: "ganttContainer" }), this.ganttEvent.changedTask && (h("kup-tooltip", { key: 'a2c655b425591b41492f4b77c9f8e3b1130565a4', arrowIndent: this.arrowIndent, rowHeight: this.rowHeight, svgContainerHeight: this.svgContainerHeight, svgContainerWidth: this.svgContainerWidth, fontFamily: this.fontFamily, fontSize: this.fontSize, scrollX: this.scrollX, scrollY: this.scrollY, task: this.ganttEvent.changedTask, headerHeight: this.headerHeight, taskListWidth: this.taskListWidth, TooltipContent: this.TooltipContent, rtl: this.rtl, svgWidth: this.svgWidth })), h("kup-vertical-scroll", { key: '2122835b9bf5929d76ee7cf28c60be64bc2b2a01', ganttFullHeight: this.ganttFullHeight, ganttHeight: this.ganttHeight, headerHeight: this.headerHeight, scrollNumber: this.scrollY, verticalScroll: this.handleScrollY.bind(this), rtl: this.rtl })), this.taskGanttRef && (h("kup-horizontal-scroll", { key: '167011334f0919c9df59bb91c54be5d039a8e261', svgWidth: this.svgWidth, taskListTrueRef: this.taskListTrueRef, taskListWidth: this.taskListWidth, scrollNumber: this.scrollX, rtl: this.rtl, horizontalScroll: this.handleScrollX.bind(this), horizontalTaskListScroll: this.handleTaskListScrollX.bind(this), listCellWidth: this.listCellWidth, scrollableTaskList: this.scrollableTaskList, taskListScrollWidth: this.taskListScrollWidth, taskListScrollNumber: this.taskListScrollX }))));
|
|
575
575
|
}
|
|
576
576
|
get rootElement() { return getElement(this); }
|
|
577
577
|
static get watchers() { return {
|
|
@@ -682,20 +682,20 @@ const HorizontalScroll = class {
|
|
|
682
682
|
var _a, _b;
|
|
683
683
|
const w = (_b = ((_a = this.taskListTrueRef) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width) + 24 * 1.5) !== null && _b !== void 0 ? _b : 0; // 24 * 2 is the sum of padding and margin for both list and gantt, multiplied by 1.5 cause we need to add the other half to the right
|
|
684
684
|
const width = +this.listCellWidth.replace('px', '');
|
|
685
|
-
return (h(Fragment, { key: '
|
|
686
|
-
this.taskListScrollWidth > width && (h("div", { key: '
|
|
685
|
+
return (h(Fragment, { key: '0359e34c59e8f83b91edf4ea4455f9b0b818b187' }, h("div", { key: '1f959a14bd712c24fd9247aeeba42d4702f4a647', class: "scroll-container" }, this.scrollableTaskList &&
|
|
686
|
+
this.taskListScrollWidth > width && (h("div", { key: '0c90c113ae5ad82ce41a1dd30037c14f0d3aa071', dir: "ltr", style: {
|
|
687
687
|
margin: this.rtl
|
|
688
688
|
? `0px 20px 0px 20px`
|
|
689
689
|
: `0px 20px 0px 20px`,
|
|
690
690
|
maxWidth: `${width + 20}px`,
|
|
691
691
|
minWidth: `${width + 20}px`,
|
|
692
|
-
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, h("div", { key: '
|
|
692
|
+
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, h("div", { key: '2baa4a929f17a9fb7df2a74328ad231445fd9639', style: {
|
|
693
693
|
width: `${this.taskListScrollWidth}px`,
|
|
694
|
-
}, class: "scroll" }))), h("div", { key: '
|
|
694
|
+
}, class: "scroll" }))), h("div", { key: '070aa5027e20fc0f31d3ab66672789ce29d3ad8a', dir: "ltr", style: {
|
|
695
695
|
margin: this.rtl
|
|
696
696
|
? `0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px 0px 12px`
|
|
697
697
|
: `0px 12px 0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px`,
|
|
698
|
-
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: '
|
|
698
|
+
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, h("div", { key: '509f0a35443c329e6c86bafbb1a7f93919b62f48', style: { width: `${this.svgWidth}px` }, class: "scroll" })))));
|
|
699
699
|
}
|
|
700
700
|
get rootElement() { return getElement(this); }
|
|
701
701
|
static get watchers() { return {
|
|
@@ -716,7 +716,7 @@ const StandardTooltipContent = class {
|
|
|
716
716
|
this.fontFamily = undefined;
|
|
717
717
|
}
|
|
718
718
|
render() {
|
|
719
|
-
return (h("div", { key: '
|
|
719
|
+
return (h("div", { key: '6e4baa35e22f4add6f7d9b71f472818eb81043fe', class: "tooltipDefaultContainer", style: { fontSize: this.fontSize, fontFamily: this.fontFamily } }, h("b", { key: 'c3669ef657f2f16cc0dd3789c092757c238af0ba', style: { fontSize: `${parseInt(this.fontSize) + 6}px` } }, `${this.task.name}: ${this.task.start.getDate()}-${this.task.start.getMonth() + 1}-${this.task.start.getFullYear()} - ${this.task.end.getDate()}-${this.task.end.getMonth() + 1}-${this.task.end.getFullYear()}`), this.task.end.getTime() - this.task.start.getTime() !== 0 && (h("p", { key: '919d7543791605febf24c54992eec344d69a78f9', class: "tooltipDefaultContainerParagraph" }, `Duration: ${~~((this.task.end.getTime() - this.task.start.getTime()) / (1000 * 60 * 60 * 24))} day(s)`)), h("p", { key: 'e4292000dc3eecf27db918ec1e9b78d8e9b6b6ed', class: "tooltipDefaultContainerParagraph" }, !!this.task.progress && `Progress: ${this.task.progress} %`)));
|
|
720
720
|
}
|
|
721
721
|
};
|
|
722
722
|
StandardTooltipContent.style = KupStandardTooltipStyle0;
|
|
@@ -742,7 +742,7 @@ const KupSwitcher = class {
|
|
|
742
742
|
this.activeButton = mode;
|
|
743
743
|
this.timeUnitChange(mode);
|
|
744
744
|
};
|
|
745
|
-
return (h("div", { key: '
|
|
745
|
+
return (h("div", { key: '9540112cd61ae116e61feca0d2424e3511139f25', class: "switcher" }, this.buttonLabels.map((label) => (h("button", { type: "button", class: {
|
|
746
746
|
button: true,
|
|
747
747
|
buttonActive: this.activeButton === label,
|
|
748
748
|
}, onClick: () => handleButtonClick(label) }, h("span", { class: "label" }, label.charAt(0).toUpperCase() + label.slice(1)))))));
|
|
@@ -786,12 +786,12 @@ const TaskGantt = class {
|
|
|
786
786
|
}
|
|
787
787
|
render() {
|
|
788
788
|
const newBarProps = Object.assign(Object.assign({}, this.barProps), { gridProps: this.gridProps, phaseDragScroll: this.phaseDragScroll });
|
|
789
|
-
return (h("div", { key: '
|
|
789
|
+
return (h("div", { key: '225f4d8173ff69d5ddde8d2f5ed33bdbe463c47b', class: "ganttVerticalContainer", ref: (el) => (this.verticalGanttContainerRef = el), dir: "ltr" }, h("kup-gantt-calendar", { key: 'fee606b4e38108514adcb1a7f1e5e6279ab6ff88', dateSetup: this.calendarProps.dateSetup, locale: this.calendarProps.locale, rtl: this.calendarProps.rtl, headerHeight: this.calendarProps.headerHeight, columnWidth: this.calendarProps.columnWidth, fontFamily: this.calendarProps.fontFamily, fontSize: this.calendarProps.fontSize, dateTimeFormatters: this.calendarProps.dateTimeFormatters, singleLineHeader: this.calendarProps.singleLineHeader, currentDateIndicator: this.calendarProps.currentDateIndicator, svgWidth: this.gridProps.svgWidth }), h("div", { key: '4cf70e2505d9be056ed47d36b6f7c856801e3c58', ref: (el) => (this.horizontalContainerRef = el), class: "horizontalContainer", style: this.ganttHeight
|
|
790
790
|
? {
|
|
791
791
|
height: `${this.ganttHeight}px`,
|
|
792
792
|
width: `${this.gridProps.svgWidth}px`,
|
|
793
793
|
}
|
|
794
|
-
: { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: '
|
|
794
|
+
: { width: `${this.gridProps.svgWidth}px` } }, h("kup-grid-renderer", Object.assign({ key: '27ebb2611cb6f3f432b555f1f29a0e906df4cab3' }, newBarProps)))));
|
|
795
795
|
}
|
|
796
796
|
get rootElement() { return getElement(this); }
|
|
797
797
|
static get watchers() { return {
|
|
@@ -891,7 +891,7 @@ const TaskList = class {
|
|
|
891
891
|
if (TaskListTable && TaskListTable['$attrs$']) {
|
|
892
892
|
Object.assign(TaskListTable['$attrs$'], Object.assign({}, tableProps));
|
|
893
893
|
}
|
|
894
|
-
return (h("div", { key: '
|
|
894
|
+
return (h("div", { key: 'a19dc6c19ddcf5af323857e2f3a86ad81378c5a6', ref: (el) => (this.taskListRef = el) }, TaskListHeader && TaskListHeader['$attrs$'] ? (TaskListHeader) : (h("kup-custom-task-list-header", Object.assign({ label: this.label, doubleView: (_a = this.doubleView) !== null && _a !== void 0 ? _a : false, setDoubleView: this.setDoubleView }, headerProps))), h("div", { key: '863960227bf03fef0e3db1064df6edc56386868c', class: `${this.horizontalContainerClass} ${this.scrollableTaskList ? 'horizontalContainerScrollable' : ''}`, style: this.ganttHeight
|
|
895
895
|
? { height: this.ganttHeight + 'px' }
|
|
896
896
|
: {}, ref: (el) => (this.horizontalContainerRef = el) }, TaskListTable && TaskListTable['$attrs$'] ? (TaskListTable) : (h("kup-custom-task-list-table", Object.assign({}, tableProps, { onclickTaskList: (id) => {
|
|
897
897
|
let row = getProjectById(id, this.currentTasks);
|
|
@@ -940,22 +940,22 @@ const KupTaskListHeader = class {
|
|
|
940
940
|
this.rowWidth = undefined;
|
|
941
941
|
}
|
|
942
942
|
render() {
|
|
943
|
-
return (h("div", { key: '
|
|
943
|
+
return (h("div", { key: '7c38309df79834a182510f6afc3ddf8c9ce0b46f', class: "ganttTable", style: {
|
|
944
944
|
fontFamily: this.fontFamily,
|
|
945
945
|
fontSize: this.fontSize,
|
|
946
|
-
} }, h("div", { key: '
|
|
946
|
+
} }, h("div", { key: '41f5891329b6ac17fbfad63f5a8fc89aadff5d96', class: "ganttTable_Header", style: {
|
|
947
947
|
height: `${this.headerHeight - 2}px`,
|
|
948
|
-
} }, h("div", { key: '
|
|
948
|
+
} }, h("div", { key: '9b30d5bad4ce720ca1d3efdd3e1c5df91866202d', class: "ganttTable_HeaderItem", style: {
|
|
949
949
|
minWidth: this.rowWidth,
|
|
950
|
-
} }, "\u00A0Name"), h("div", { key: '
|
|
950
|
+
} }, "\u00A0Name"), h("div", { key: '9bf3e558ee06f137809853c3da1682eded542586', class: "ganttTable_HeaderSeparator", style: {
|
|
951
951
|
height: `${this.headerHeight * 0.5}px`,
|
|
952
952
|
marginTop: `${this.headerHeight * 0.2}px`,
|
|
953
|
-
} }), h("div", { key: '
|
|
953
|
+
} }), h("div", { key: 'b57e9cb06f84f0acf420e28e1d6ee1a3c66da79d', class: "ganttTable_HeaderItem", style: {
|
|
954
954
|
minWidth: this.rowWidth,
|
|
955
|
-
} }, "\u00A0From"), h("div", { key: '
|
|
955
|
+
} }, "\u00A0From"), h("div", { key: '62dd83ffb11015bc40b8437e35eb2e2686e2d0ff', class: "ganttTable_HeaderSeparator", style: {
|
|
956
956
|
height: `${this.headerHeight * 0.5}px`,
|
|
957
957
|
marginTop: `${this.headerHeight * 0.25}px`,
|
|
958
|
-
} }), h("div", { key: '
|
|
958
|
+
} }), h("div", { key: '41790ff5c2576c41a11be2a3ef9e811d35b526ca', class: "ganttTable_HeaderItem", style: {
|
|
959
959
|
minWidth: this.rowWidth,
|
|
960
960
|
} }, "\u00A0To"))));
|
|
961
961
|
}
|
|
@@ -989,7 +989,7 @@ const TaskListTableDefault = class {
|
|
|
989
989
|
return date.toLocaleDateString(this.locale, this.dateTimeOptions);
|
|
990
990
|
}
|
|
991
991
|
render() {
|
|
992
|
-
return (h("div", { key: '
|
|
992
|
+
return (h("div", { key: '1b39b6a152899cd206287a8be18fa083d19c91a9', class: "taskListWrapper", style: {
|
|
993
993
|
fontFamily: this.fontFamily,
|
|
994
994
|
fontSize: this.fontSize,
|
|
995
995
|
} }, this.tasks.map((task) => (h("div", { class: {
|
|
@@ -1078,7 +1078,7 @@ const Tooltip = class {
|
|
|
1078
1078
|
}
|
|
1079
1079
|
}
|
|
1080
1080
|
render() {
|
|
1081
|
-
return (h("div", { key: '
|
|
1081
|
+
return (h("div", { key: '376115aa725f2be586aaa2f5000cfe35e9ed2fb8', class: this.relatedX ? 'tooltipDetailsContainer' : 'tooltipDetailsContainerHidden', style: { left: `${this.relatedX}px`, top: `${this.relatedY}px` } }, h(this.TooltipContent, { key: '3eb3daba50c63eee9b4bcdf42d9565ab633efeca', task: this.task, fontSize: this.fontSize, fontFamily: this.fontFamily })));
|
|
1082
1082
|
}
|
|
1083
1083
|
get rootElement() { return getElement(this); }
|
|
1084
1084
|
static get watchers() { return {
|
|
@@ -1132,11 +1132,11 @@ const KupVerticalScroll = class {
|
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
1134
|
render() {
|
|
1135
|
-
return (h("div", { key: '
|
|
1135
|
+
return (h("div", { key: 'ff60569ab85cb336d97223e914f1161a0ed1def5', style: {
|
|
1136
1136
|
height: `${this.ganttHeight}px`,
|
|
1137
1137
|
marginTop: `${this.headerHeight}px`,
|
|
1138
1138
|
marginLeft: this.rtl ? '' : '-1rem',
|
|
1139
|
-
}, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, h("div", { key: '
|
|
1139
|
+
}, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, h("div", { key: '0e05750fe66a56f93277bed8c3fad94c0f388abc', style: {
|
|
1140
1140
|
height: `${this.ganttFullHeight}px`,
|
|
1141
1141
|
width: '1px',
|
|
1142
1142
|
} })));
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h, F as Fragment, H as Host, d as getElement } from './index-191ee7cb.js';
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupLanguageGeneric } from './kup-manager-7f0308ee.js';
|
|
3
|
+
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
|
+
import './kup-dates-b90227c6.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Props of the kup-htm component.
|
|
8
|
+
* Used to export every prop in an object.
|
|
9
|
+
*/
|
|
10
|
+
var KupHTMProps;
|
|
11
|
+
(function (KupHTMProps) {
|
|
12
|
+
KupHTMProps["data"] = "Data of the component containing url or html";
|
|
13
|
+
})(KupHTMProps || (KupHTMProps = {}));
|
|
14
|
+
|
|
15
|
+
const kupHtmCss = ".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{height:100%;width:100%;display:block}#kup-component{height:100%}#kup-component .kup-htm.is-link{height:100%}#kup-component .kup-htm.is-link a{float:left}#kup-component .kup-htm.is-link iframe{height:100%;width:100%}";
|
|
16
|
+
const KupHtmStyle0 = kupHtmCss;
|
|
17
|
+
|
|
18
|
+
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
19
|
+
if (kind === "a" && !f)
|
|
20
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
21
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
22
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
23
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
24
|
+
};
|
|
25
|
+
var _KupHTM_kupManager;
|
|
26
|
+
const KupHTM = class {
|
|
27
|
+
constructor(hostRef) {
|
|
28
|
+
registerInstance(this, hostRef);
|
|
29
|
+
this.kupReady = createEvent(this, "kup-htm-ready", 6);
|
|
30
|
+
/*-------------------------------------------------*/
|
|
31
|
+
/* I n t e r n a l V a r i a b l e s */
|
|
32
|
+
/*-------------------------------------------------*/
|
|
33
|
+
_KupHTM_kupManager.set(this, kupManagerInstance());
|
|
34
|
+
this.data = undefined;
|
|
35
|
+
}
|
|
36
|
+
/*-------------------------------------------------*/
|
|
37
|
+
/* P u b l i c M e t h o d s */
|
|
38
|
+
/*-------------------------------------------------*/
|
|
39
|
+
/**
|
|
40
|
+
* Used to retrieve component's props values.
|
|
41
|
+
* @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.
|
|
42
|
+
* @returns {Promise<GenericObject>} List of props as object, each key will be a prop.
|
|
43
|
+
*/
|
|
44
|
+
async getProps(descriptions) {
|
|
45
|
+
return getProps(this, KupHTMProps, descriptions);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* This method is used to trigger a new render of the component.
|
|
49
|
+
*/
|
|
50
|
+
async refresh() {
|
|
51
|
+
forceUpdate(this);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Sets the props to the component.
|
|
55
|
+
* @param {GenericObject} props - Object containing props that will be set to the component.
|
|
56
|
+
*/
|
|
57
|
+
async setProps(props) {
|
|
58
|
+
setProps(this, KupHTMProps, props);
|
|
59
|
+
}
|
|
60
|
+
/*-------------------------------------------------*/
|
|
61
|
+
/* L i f e c y c l e H o o k s */
|
|
62
|
+
/*-------------------------------------------------*/
|
|
63
|
+
componentWillLoad() {
|
|
64
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").debug.logLoad(this, false);
|
|
65
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.register(this);
|
|
66
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").language.register(this);
|
|
67
|
+
}
|
|
68
|
+
componentDidLoad() {
|
|
69
|
+
this.kupReady.emit({
|
|
70
|
+
comp: this,
|
|
71
|
+
id: this.rootElement.id,
|
|
72
|
+
});
|
|
73
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").debug.logLoad(this, true);
|
|
74
|
+
}
|
|
75
|
+
componentWillRender() {
|
|
76
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").debug.logRender(this, false);
|
|
77
|
+
}
|
|
78
|
+
componentDidRender() {
|
|
79
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").debug.logRender(this, true);
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
const isLink = __classPrivateFieldGet(this, _KupHTM_kupManager, "f").objects.isLink(this.data.obj);
|
|
83
|
+
return (h(Host, { key: 'e973cfb80ddc6aba894dd2994b3be82fc93a07bc' }, h("style", { key: 'cd5f18859b77dfbaa1008cfe37183e18780b8e38' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '69a912436a0c644bbe0ca38efe2aff60c31b15e4', id: componentWrapperId }, h("div", { key: '5e057d8c92cbfd479a57c10c205e96be51475007', class: `kup-htm ${isLink ? 'is-link' : ''}` }, isLink ? (h(Fragment, null, h("a", { href: this.data.value, target: "_blank", rel: "noopener noreferrer" }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").language.translate(KupLanguageGeneric.OPEN_IN_NEW_TAB)), h("iframe", { src: this.data.value, frameBorder: "0" }))) : (h("div", { innerHTML: this.data.value }))))));
|
|
84
|
+
}
|
|
85
|
+
disconnectedCallback() {
|
|
86
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.unregister(this);
|
|
87
|
+
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").language.unregister(this);
|
|
88
|
+
}
|
|
89
|
+
get rootElement() { return getElement(this); }
|
|
90
|
+
};
|
|
91
|
+
_KupHTM_kupManager = new WeakMap();
|
|
92
|
+
KupHTM.style = KupHtmStyle0;
|
|
93
|
+
|
|
94
|
+
export { KupHTM as kup_htm };
|
|
95
|
+
|
|
96
|
+
//# sourceMappingURL=kup-htm.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"kup-htm.entry.js","mappings":";;;;;AAAA;;;;AAIA,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,oEAAqD,CAAA;AACzD,CAAC,EAFW,WAAW,KAAX,WAAW;;ACJvB,MAAM,SAAS,GAAG,wpEAAwpE,CAAC;AAC3qE,qBAAe,SAAS;;;;;;;;;;MC+BX,MAAM;;;;;;;QAoBf,6BAA0B,kBAAkB,EAAE,EAAC;;;;;;;;;;;IA2B/C,MAAM,QAAQ,CAAC,YAAsB;QACjC,OAAO,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;KACpD;;;;IAKD,MAAM,OAAO;QACT,WAAW,CAAC,IAAI,CAAC,CAAC;KACrB;;;;;IAMD,MAAM,QAAQ,CAAC,KAAoB;QAC/B,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;KACtC;;;;IAMD,iBAAiB;QACb,uBAAA,IAAI,0BAAY,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC5C,uBAAA,IAAI,0BAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtC,uBAAA,IAAI,0BAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KAC5C;IAED,gBAAgB;QACZ,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YACf,IAAI,EAAE,IAAI;YACV,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE;SAC1B,CAAC,CAAC;QACH,uBAAA,IAAI,0BAAY,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAC9C;IAED,mBAAmB;QACf,uBAAA,IAAI,0BAAY,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;KACjD;IAED,kBAAkB;QACd,uBAAA,IAAI,0BAAY,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KAChD;IAED,MAAM;QACF,MAAM,MAAM,GAAG,uBAAA,IAAI,0BAAY,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAE9D,QACI,EAAC,IAAI,uDACD,gEACK,uBAAA,IAAI,0BAAY,CAAC,KAAK,CAAC,WAAW,CAC/B,IAAI,CAAC,WAA2B,CACnC,CACG,EACR,4DAAK,EAAE,EAAE,kBAAkB,IACvB,4DAAK,KAAK,EAAE,WAAW,MAAM,GAAG,SAAS,GAAG,EAAE,EAAE,IAC3C,MAAM,IACH,EAAC,QAAQ,QACL,SACI,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EACrB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,IAExB,uBAAA,IAAI,0BAAY,CAAC,QAAQ,CAAC,SAAS,CAChC,kBAAkB,CAAC,eAAe,CACrC,CACD,EACJ,cACI,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EACpB,WAAW,EAAC,GAAG,GACT,CACH,KAEX,WAAK,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,GAAI,CACtC,CACC,CACJ,CACH,EACT;KACL;IAED,oBAAoB;QAChB,uBAAA,IAAI,0BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACxC,uBAAA,IAAI,0BAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC9C;;;;;;;;","names":[],"sources":["src/components/kup-htm/kup-htm-declarations.ts","src/components/kup-htm/kup-htm.scss?tag=kup-htm&encapsulation=shadow","src/components/kup-htm/kup-htm.tsx"],"sourcesContent":["/**\n * Props of the kup-htm component.\n * Used to export every prop in an object.\n */\nexport enum KupHTMProps {\n data = 'Data of the component containing url or html',\n}\n",":host {\n height: 100%;\n width: 100%;\n display: block;\n}\n\n#kup-component {\n height: 100%;\n .kup-htm.is-link {\n height: 100%;\n a {\n float: left;\n }\n iframe {\n height: 100%;\n width: 100%;\n }\n }\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n forceUpdate,\n h,\n Host,\n Method,\n Prop,\n Fragment,\n} from '@stencil/core';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { KupDataCell } from '../../managers/kup-data/kup-data-declarations';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport {\n GenericObject,\n KupComponent,\n KupEventPayload,\n} from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport { KupHTMProps } from './kup-htm-declarations';\nimport { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';\n\n@Component({\n tag: 'kup-htm',\n styleUrl: 'kup-htm.scss',\n shadow: true,\n})\nexport class KupHTM {\n /**\n * References the root HTML element of the component (<kup-htm>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Data containing the url or html.\n * @default null\n */\n @Prop() data: KupDataCell;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n #kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* E v e n t s */\n /*-------------------------------------------------*/\n\n /**\n * Triggered when the component is ready.\n */\n @Event({\n eventName: 'kup-htm-ready',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupReady: EventEmitter<KupEventPayload>;\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupHTMProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupHTMProps, props);\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.#kupManager.debug.logLoad(this, false);\n this.#kupManager.theme.register(this);\n this.#kupManager.language.register(this);\n }\n\n componentDidLoad() {\n this.kupReady.emit({\n comp: this,\n id: this.rootElement.id,\n });\n this.#kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.#kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.#kupManager.debug.logRender(this, true);\n }\n\n render() {\n const isLink = this.#kupManager.objects.isLink(this.data.obj);\n\n return (\n <Host>\n <style>\n {this.#kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div id={componentWrapperId}>\n <div class={`kup-htm ${isLink ? 'is-link' : ''}`}>\n {isLink ? (\n <Fragment>\n <a\n href={this.data.value}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n {this.#kupManager.language.translate(\n KupLanguageGeneric.OPEN_IN_NEW_TAB\n )}\n </a>\n <iframe\n src={this.data.value}\n frameBorder=\"0\"\n ></iframe>\n </Fragment>\n ) : (\n <div innerHTML={this.data.value} />\n )}\n </div>\n </div>\n </Host>\n );\n }\n\n disconnectedCallback() {\n this.#kupManager.theme.unregister(this);\n this.#kupManager.language.unregister(this);\n }\n}\n"],"version":3}
|
|
@@ -230,14 +230,14 @@ const KupImageList = class {
|
|
|
230
230
|
};
|
|
231
231
|
combinedGridStyle = Object.assign(Object.assign({}, combinedGridStyle), gridRowsStyle);
|
|
232
232
|
}
|
|
233
|
-
return (h(Host, { key: '
|
|
233
|
+
return (h(Host, { key: '81da022bca5cec8e7a25ae5854126fc8d1df1949' }, h("style", { key: 'e7ca04de4d67ec2bfd6b069f560c9cf5f131a235' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'bb9852654bdef8112a36d4fe096a39e4b925cd0c', id: componentWrapperId, ref: (el) => {
|
|
234
234
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
235
|
-
} }, h("div", { key: '
|
|
235
|
+
} }, h("div", { key: '3547692cbbe395329b3f9ee5f6c5a9c35171e7a6', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
236
236
|
? 'navigation-bar__wrapper--active'
|
|
237
237
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
238
238
|
this.navigationBarToggled =
|
|
239
239
|
!this.navigationBarToggled;
|
|
240
|
-
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '
|
|
240
|
+
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '60eb2ce4d81bfdaf39310d9276edfab440200ab6', class: "image-list", style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
241
241
|
}
|
|
242
242
|
disconnectedCallback() {
|
|
243
243
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|
|
@@ -227,7 +227,7 @@ const KupInputPanel = class {
|
|
|
227
227
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
228
228
|
]
|
|
229
229
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
230
|
-
return (h(Host, { key: '
|
|
230
|
+
return (h(Host, { key: '62cdea4b11e55aaf3a71231851f798bee78bf60e' }, h("style", { key: 'de02343d1c662d98d2fb9acce6222072cf61e4fb' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '76c0582d6e71eff483aa177d252eea61b7804f1b', id: componentWrapperId }, inputPanelContent)));
|
|
231
231
|
}
|
|
232
232
|
disconnectedCallback() {
|
|
233
233
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -134,39 +134,39 @@ const KupLazy = class {
|
|
|
134
134
|
switch (this.componentName) {
|
|
135
135
|
case 'kup-button':
|
|
136
136
|
//call_to_action.svg
|
|
137
|
-
resource = (h("svg", { key: '
|
|
137
|
+
resource = (h("svg", { key: '220fa65d9836c520dfed8e3dae2700c6b2b0cb9a', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '1d1e33f3ed89c32e6ee9ad2b1996fb65037cc3f2', d: "M42 6H6c-2.2 0-4 1.8-4 4v28c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zm0 32H6v-6h36v6z" })));
|
|
138
138
|
break;
|
|
139
139
|
case 'kup-card':
|
|
140
140
|
//art_track.svg
|
|
141
|
-
resource = (h("svg", { key: '
|
|
141
|
+
resource = (h("svg", { key: 'd799cc013987de74e23c34201ecd2186c57b13f1', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'de98ef94a3f714e45e56a02877d4a139a8804424', d: "M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z" })));
|
|
142
142
|
break;
|
|
143
143
|
case 'kup-checkbox':
|
|
144
144
|
//check_box_outline_blank.svg
|
|
145
|
-
resource = (h("svg", { key: '
|
|
145
|
+
resource = (h("svg", { key: '26ad78503d5c00f5b902b2bddb782a14f1a13b73', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '03ae544d551c47e0dce8f8fbaa92b1a2a1024c55', d: "M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z" })));
|
|
146
146
|
break;
|
|
147
147
|
case 'kup-chart':
|
|
148
148
|
//chart-bar.svg
|
|
149
|
-
resource = (h("svg", { key: '
|
|
149
|
+
resource = (h("svg", { key: 'cc70b61653552ff28e1b6eda65ca7bec5bbbe7d2', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: 'f63b011d43b7c6649e1392de9426b325259e9f38', d: "M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z" })));
|
|
150
150
|
break;
|
|
151
151
|
case 'kup-data-table':
|
|
152
152
|
//table-large.svg
|
|
153
|
-
resource = (h("svg", { key: '
|
|
153
|
+
resource = (h("svg", { key: '3c6218a9e78c22aa2cfdd787a77fd7575409b926', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '28aaf9eb0e27fd2ad901866bd1f93ff181eba283', d: "M4,3H20A2,2 0 0,1 22,5V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V5A2,2 0 0,1 4,3M4,7V10H8V7H4M10,7V10H14V7H10M20,10V7H16V10H20M4,12V15H8V12H4M4,20H8V17H4V20M10,12V15H14V12H10M10,20H14V17H10V20M20,20V17H16V20H20M20,12H16V15H20V12Z" })));
|
|
154
154
|
break;
|
|
155
155
|
case 'kup-image':
|
|
156
156
|
//photo.svg
|
|
157
|
-
resource = (h("svg", { key: '
|
|
157
|
+
resource = (h("svg", { key: '695002a63b98d0c090f350df167e2dec9b85c8f6', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '160f2450a206b3da182ef9514e41d0e9cfebd7dd', d: "M42 38V10c0-2.21-1.79-4-4-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4zM17 27l5 6.01L29 24l9 12H10l7-9z" })));
|
|
158
158
|
break;
|
|
159
159
|
case 'kup-progress-bar':
|
|
160
160
|
//linear_scale.svg
|
|
161
|
-
resource = (h("svg", { key: '
|
|
161
|
+
resource = (h("svg", { key: 'e7f09d307522f61e8448975f881fb435f0c585bd', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '2ad28af4bed1da877edb16db6acdc392bfbfb47b', d: "M39 19c-2.05 0-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3s-3.81 1.23-4.58 3h-5.84c-.77-1.77-2.53-3-4.58-3-2.77 0-5 2.23-5 5s2.23 5 5 5c2.05 0 3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3s3.81-1.23 4.58-3h5.84c.77 1.77 2.53 3 4.58 3 2.77 0 5-2.23 5-5s-2.23-5-5-5z" })));
|
|
162
162
|
break;
|
|
163
163
|
case 'kup-radio':
|
|
164
164
|
//radio_button_unchecked.svg
|
|
165
|
-
resource = (h("svg", { key: '
|
|
165
|
+
resource = (h("svg", { key: 'c60a5e10b12c2945bdc8d0558d1fb9c46cb4ca90', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'f016960b177263ba06c3b63c4761fef4a06a4fd3', d: "M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z" })));
|
|
166
166
|
break;
|
|
167
167
|
default:
|
|
168
168
|
//art_track.svg
|
|
169
|
-
resource = (h("svg", { key: '
|
|
169
|
+
resource = (h("svg", { key: 'f221046bcd689deebeb597f557d547292518a34a', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '8cd9ec1705efd526543348dcfe793c0705399482', d: "M44 26H28v-4h16v4zm0-12H28v4h16v-4zM28 34h16v-4H28v4zm-4-16v12c0 2.2-1.8 4-4 4H8c-2.2 0-4-1.8-4-4V18c0-2.2 1.8-4 4-4h12c2.2 0 4 1.8 4 4zm-3 12l-4.5-6-3.5 4.51-2.5-3.01L7 30h14z" })));
|
|
170
170
|
break;
|
|
171
171
|
}
|
|
172
172
|
if ((this.renderMode === KupLazyRender.VIEWPORT && this.isInViewport) ||
|
|
@@ -175,14 +175,14 @@ const KupLazy = class {
|
|
|
175
175
|
this.data &&
|
|
176
176
|
this.isInViewport)) {
|
|
177
177
|
let Tag = this.componentName;
|
|
178
|
-
content = (h(Tag, Object.assign({ key: '
|
|
178
|
+
content = (h(Tag, Object.assign({ key: 'b856e5475a8fc048cf96c0ee534f17fa2ad261fe' }, this.data, { ref: (el) => (this.lazyComponent = el) })));
|
|
179
179
|
className += ' kup-loaded';
|
|
180
180
|
}
|
|
181
181
|
else if (this.showPlaceholder) {
|
|
182
182
|
content = resource;
|
|
183
183
|
className += ' kup-to-be-loaded';
|
|
184
184
|
}
|
|
185
|
-
return (h(Host, { key: '
|
|
185
|
+
return (h(Host, { key: 'de01035df24b5d3811ca54bb3840bf232287103d', class: className }, h("style", { key: 'db6f4fe85ed90c8a17b598a4805eff35fbfc11af' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '00c41dbaa1579061edf0b9472b19e6c5c8f24eb9', id: componentWrapperId }, content)));
|
|
186
186
|
}
|
|
187
187
|
disconnectedCallback() {
|
|
188
188
|
var _a;
|
|
@@ -287,11 +287,11 @@ const KupMagicBox = class {
|
|
|
287
287
|
this.kupManager.debug.logRender(this, true);
|
|
288
288
|
}
|
|
289
289
|
render() {
|
|
290
|
-
return (h(Host, { key: '
|
|
290
|
+
return (h(Host, { key: '8f04a5029dad9d7d8f3673124a6fb954880719d5' }, h("style", { key: 'af43ffc44c345efb6982aecac7ffeb7469a1e1ab' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '4da32884b8cfaee501fe98de3ad61dbfd40644f1', id: componentWrapperId }, h("div", { key: '3ae6ee9f2ee07d1ace113fe223bf45fe907eb1d2', class: "magic-box-wrapper" }, h("div", { key: '7331459e7beeecbad1f94907c5dfc37e6fd77221', class: "actions", id: "drag-handle" }, h("kup-combobox", Object.assign({ key: 'cf49975df5a5aa923c031c64ecee9a81ae4ad0bc' }, this.comboboxProps())), h("kup-button", { key: '9268ce09ec663aa4e00a82ba0fadef493422d12f', styling: FButtonStyling.FLAT, icon: "delete", label: "Reset", "onkup-button-click": () => {
|
|
291
291
|
this.data = null;
|
|
292
|
-
} }), h("kup-button", { key: '
|
|
292
|
+
} }), h("kup-button", { key: '3724463433b93aa9ae13ae19d67be8fc39c702f6', id: "close-dialog", customStyle: `:host{${KupThemeColorValues.PRIMARY}: var(${KupThemeColorValues.TITLE});}`, icon: "clear", "onkup-button-click": () => {
|
|
293
293
|
this.kupManager.hideMagicBox();
|
|
294
|
-
} })), h("div", { key: '
|
|
294
|
+
} })), h("div", { key: '448858d039c7cd0ea8e756d9ad66af2b3baf5c52', class: "content", ref: (el) => (this.wrapperRef = el) }, this.setContent())))));
|
|
295
295
|
}
|
|
296
296
|
disconnectedCallback() {
|
|
297
297
|
this.kupManager.interact.unregister([
|
|
@@ -126,7 +126,7 @@ const KupNavBar = class {
|
|
|
126
126
|
this.kupManager.debug.logRender(this, true);
|
|
127
127
|
}
|
|
128
128
|
render() {
|
|
129
|
-
return (h(Host, { key: '
|
|
129
|
+
return (h(Host, { key: '0f66ceb53da3d4bdc00787c80ef4764a79d76af8', class: "header" }, h("style", { key: '6435752fbe5f0ae68649ea4c43fee53afeb2dbca' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '607495825d0febc2dd41dcfecf0ecc78924e4679', id: componentWrapperId }, h("header", { key: '21667d9c45e86eab6c011247e1717b757d92dfd4', class: `${navbarClass} ${navbarClass}--${this.styling.toLowerCase()} ` }, h("div", { key: 'da92e4ddd4ff70b4fa9632233b0345d4843bee60', class: `${navbarClass}__row` }, this.content())))));
|
|
130
130
|
}
|
|
131
131
|
disconnectedCallback() {
|
|
132
132
|
this.kupManager.language.unregister(this);
|
|
@@ -351,7 +351,7 @@ const KupNumericPicker = class {
|
|
|
351
351
|
this.kupManager.debug.logRender(this, true);
|
|
352
352
|
}
|
|
353
353
|
render() {
|
|
354
|
-
return (h(Host, { key: '
|
|
354
|
+
return (h(Host, { key: '60d9439b1beeca08cd1f5d7722c8c44b387f0ea6' }, h("style", { key: 'a240244c3350a93cf6411582d4ca5a6b44775328' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '8a07726204a12434f2f00fbd88fcc926b9b0de18', id: componentWrapperId }, this.prepTextfield())));
|
|
355
355
|
}
|
|
356
356
|
disconnectedCallback() {
|
|
357
357
|
this.kupManager.dates.unregister(this);
|
|
@@ -76581,7 +76581,7 @@ const KupPdf = class {
|
|
|
76581
76581
|
catch (error) { }
|
|
76582
76582
|
}
|
|
76583
76583
|
render() {
|
|
76584
|
-
return (h(Host, { key: '
|
|
76584
|
+
return (h(Host, { key: 'fee8236cc49ba230b6e0f03578a627da544d2b0f' }, h("div", { key: '7c8bd36dc5c78f67d7a210e239d9279281741d5f', id: componentWrapperId, ref: (el) => (this.wrapperRef = el) })));
|
|
76585
76585
|
}
|
|
76586
76586
|
disconnectedCallback() {
|
|
76587
76587
|
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.unregister(this);
|
|
@@ -116,9 +116,9 @@ const KupPhotoFrame = class {
|
|
|
116
116
|
if (this.isInViewport && !__classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f")) {
|
|
117
117
|
__classPrivateFieldSet(this, _KupPhotoFrame_renderResource, true, "f");
|
|
118
118
|
}
|
|
119
|
-
return (h(Host, { key: '
|
|
119
|
+
return (h(Host, { key: '1f1b2dda7b9619e04131d9dbc11291542f1c7631' }, h("style", { key: '44413efc368dbc28957c544475889f184ef1a16b' }, __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '05a0107e2d49e41242312ab842ed63eea72e2321', id: componentWrapperId, ref: (el) => {
|
|
120
120
|
__classPrivateFieldSet(this, _KupPhotoFrame_wrapperEl, el, "f");
|
|
121
|
-
} }, h("img", Object.assign({ key: '
|
|
121
|
+
} }, h("img", Object.assign({ key: '029fbad45e5aba99bbab99c52f5ba30ee74e1c1d' }, this.placeholderAttrs, { class: "placeholder", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_placeholderEl, el, "f")), onLoad: () => {
|
|
122
122
|
if (__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalWidth >
|
|
123
123
|
__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalHeight) {
|
|
124
124
|
__classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('horizontal');
|
|
@@ -226,13 +226,13 @@ const KupPlannerRenderer = class {
|
|
|
226
226
|
}
|
|
227
227
|
render() {
|
|
228
228
|
var _a, _b, _c;
|
|
229
|
-
return (h("div", { key: '
|
|
229
|
+
return (h("div", { key: '36516935d5c7bd442298edf8626770b47d67d8a1', class: "planner-render" }, h("kup-switcher", { key: '4780f53ca74985bf1744f97dc16ccfcc45c2c937', timeUnitChange: (timeUnit) => {
|
|
230
230
|
var _a, _b;
|
|
231
231
|
(_b = (_a = this.props).onSetViewMode) === null || _b === void 0 ? void 0 : _b.call(_a, timeUnit);
|
|
232
232
|
this.timeUnit = timeUnit;
|
|
233
233
|
this.viewDate = undefined;
|
|
234
234
|
this.scrollX = -1;
|
|
235
|
-
} }), this.props && (h("div", { key: '
|
|
235
|
+
} }), this.props && (h("div", { key: 'fdd8ec8f405dcb3aeb3dcb882314a2042eee6ddc', style: {
|
|
236
236
|
display: 'flex',
|
|
237
237
|
flexDirection: 'column',
|
|
238
238
|
} }, h("kup-gantt", Object.assign({ ref: (el) => (this.mainGantt = el), ganttId: KUP_PLANNER_MAIN_GANTT_ID, key: KUP_PLANNER_MAIN_GANTT_ID, filter: this.props.mainGantt.filter, hideLabel: this.props.mainGantt.hideLabel, showSecondaryDates: this.mainGanttDoubleView, hideDependencies: this.props.mainGantt.hideDependencies, ganttHeight: this.props.mainGantt.ganttHeight, displayedStartDate: this.displayedDates.displayedStartDate, displayedEndDate: this.displayedDates.displayedEndDate, viewDate: this.viewDate, tasks: this.tasks, columnWidth: columnWidthForTimeUnit(this.timeUnit), viewMode: this.timeUnit }, this.props.mainGantt.stylingOptions, { TaskListHeader: this.props.mainGantt.taskListHeaderProject, TaskListTable: this.props.mainGantt.taskListTableProject, TooltipContent: (_a = this.props.mainGantt.tooltipContent) !== null && _a !== void 0 ? _a : CustomTooltipHOC(), barClick: (task) => {
|
|
@@ -643,7 +643,7 @@ const KupPlanner = class {
|
|
|
643
643
|
if ((_b = this.plannerProps) === null || _b === void 0 ? void 0 : _b.secondaryGantt) {
|
|
644
644
|
plannerProps.secondaryGantt = Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { onScrollY: this.handleDetailGanttScrollY.bind(this) });
|
|
645
645
|
}
|
|
646
|
-
return (h(Host, { key: '
|
|
646
|
+
return (h(Host, { key: 'ec595d6944c84d1ff3419a4f9ea4b05b9daa7c8c' }, h("style", { key: '9476707409a3f42a4053432d9516fda679f96341' }, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'ebcc7405f609f4ecffee385e5c3e710e67e67493', id: componentWrapperId, style: { maxWidth: this.maxWidth } }, this.plannerProps && (h("kup-planner-renderer", { key: '9cb8c0178398029f74dded13fb14d96d5a3f3652', props: plannerProps, ref: (el) => (this.plannerRenderer = el) }))), h("div", { key: '227fba551833686254d2f9d904093fb1cd6afb31', style: { display: this.plannerProps ? 'none' : '' } }, h(FTextField, { key: '4cb494e54f8ca483dd46165b606ab1b54c5da58a', icon: KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
|
|
647
647
|
if (e.key === 'Enter') {
|
|
648
648
|
__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value);
|
|
649
649
|
}
|
|
@@ -235,7 +235,7 @@ const KupProbe = class {
|
|
|
235
235
|
if (this.features.theme) {
|
|
236
236
|
customStyle = this.kupManager.theme.setKupStyle(this.rootElement);
|
|
237
237
|
}
|
|
238
|
-
return (h(Host, { key: '
|
|
238
|
+
return (h(Host, { key: '8d7afacda7cc4439039c941af5d9150ed668d03f' }, customStyle ? h("style", null, customStyle) : null, h("div", { key: '4a15796d3c5cc632b326bddef692c640edc1c366', id: componentWrapperId }, this.content)));
|
|
239
239
|
}
|
|
240
240
|
disconnectedCallback() {
|
|
241
241
|
if (this.features.language) {
|
|
@@ -116,7 +116,7 @@ const KupQlik = class {
|
|
|
116
116
|
layoutStyle = {
|
|
117
117
|
['--lyo_obj-height']: this.defobjsize,
|
|
118
118
|
};
|
|
119
|
-
return (h("div", { key: '
|
|
119
|
+
return (h("div", { key: '3014bd82bd94053748127d5913f9ff4bda8ef3e1', class: classLayout, style: layoutStyle }, this.divlist));
|
|
120
120
|
}
|
|
121
121
|
componentDidRender() {
|
|
122
122
|
if (this.debug) {
|