@sme.up/ketchup 11.0.0-SNAPSHOT-20241125085638 → 11.0.0-SNAPSHOT-20241125095251
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/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-autocomplete_28.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-input-panel.cjs.entry.js +18 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +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-txt.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/collection-manifest.json +2 -2
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js.map +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +19 -0
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +36 -5
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +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-txt/kup-txt.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-input-panel.js +19 -6
- package/dist/components/kup-input-panel.js.map +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-txt.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/ketchup.js +1 -1
- package/dist/esm/kup-autocomplete_28.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-input-panel.entry.js +18 -6
- package/dist/esm/kup-input-panel.entry.js.map +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-txt.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-fc4885fa.entry.js → p-035fe1f8.entry.js} +2 -2
- package/dist/ketchup/{p-41144398.entry.js → p-0589de19.entry.js} +2 -2
- package/dist/ketchup/{p-ba9e8615.entry.js → p-061f9095.entry.js} +2 -2
- package/dist/ketchup/{p-8f7b7f5a.entry.js → p-119de8fb.entry.js} +2 -2
- package/dist/ketchup/{p-a2790755.entry.js → p-17cf83c5.entry.js} +2 -2
- package/dist/ketchup/{p-5e80c5b1.entry.js → p-26efe39b.entry.js} +2 -2
- package/dist/ketchup/{p-a6d83c83.entry.js → p-94099e24.entry.js} +3 -3
- package/dist/ketchup/{p-707babd4.entry.js → p-9d894c7c.entry.js} +2 -2
- package/dist/ketchup/{p-71034261.entry.js → p-9fa6808d.entry.js} +2 -2
- package/dist/ketchup/{p-1b0a93c3.entry.js → p-ae257375.entry.js} +2 -2
- package/dist/ketchup/p-b3d9beb7.entry.js +2 -0
- package/dist/ketchup/p-b3d9beb7.entry.js.map +1 -0
- package/dist/ketchup/{p-28a543b4.entry.js → p-b5fa88c3.entry.js} +2 -2
- package/dist/ketchup/{p-cd882c02.entry.js → p-bc5d76c8.entry.js} +2 -2
- package/dist/ketchup/{p-6dcf746d.entry.js → p-be1bda43.entry.js} +2 -2
- package/dist/ketchup/p-c505f058.entry.js +2 -0
- package/dist/ketchup/{p-878030b5.entry.js.map → p-c505f058.entry.js.map} +1 -1
- package/dist/ketchup/{p-4e9910f8.entry.js → p-e2b6e9f0.entry.js} +2 -2
- package/dist/ketchup/{p-f975d467.entry.js → p-edaf0cb8.entry.js} +2 -2
- package/dist/ketchup/{p-d837fe90.entry.js → p-f60a8564.entry.js} +2 -2
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +2 -1
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -0
- package/dist/types/components.d.ts +10 -0
- package/package.json +1 -1
- package/dist/ketchup/p-02f7124b.entry.js +0 -2
- package/dist/ketchup/p-02f7124b.entry.js.map +0 -1
- package/dist/ketchup/p-878030b5.entry.js +0 -2
- /package/dist/ketchup/{p-fc4885fa.entry.js.map → p-035fe1f8.entry.js.map} +0 -0
- /package/dist/ketchup/{p-41144398.entry.js.map → p-0589de19.entry.js.map} +0 -0
- /package/dist/ketchup/{p-ba9e8615.entry.js.map → p-061f9095.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8f7b7f5a.entry.js.map → p-119de8fb.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a2790755.entry.js.map → p-17cf83c5.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5e80c5b1.entry.js.map → p-26efe39b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a6d83c83.entry.js.map → p-94099e24.entry.js.map} +0 -0
- /package/dist/ketchup/{p-707babd4.entry.js.map → p-9d894c7c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-71034261.entry.js.map → p-9fa6808d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-1b0a93c3.entry.js.map → p-ae257375.entry.js.map} +0 -0
- /package/dist/ketchup/{p-28a543b4.entry.js.map → p-b5fa88c3.entry.js.map} +0 -0
- /package/dist/ketchup/{p-cd882c02.entry.js.map → p-bc5d76c8.entry.js.map} +0 -0
- /package/dist/ketchup/{p-6dcf746d.entry.js.map → p-be1bda43.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4e9910f8.entry.js.map → p-e2b6e9f0.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f975d467.entry.js.map → p-edaf0cb8.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d837fe90.entry.js.map → p-f60a8564.entry.js.map} +0 -0
|
@@ -573,9 +573,9 @@ const KupGantt = class {
|
|
|
573
573
|
TaskListHeader: this.TaskListHeader,
|
|
574
574
|
TaskListTable: this.TaskListTable
|
|
575
575
|
};
|
|
576
|
-
return (index.h("div", { key: '
|
|
576
|
+
return (index.h("div", { key: '836af3f1012d6eb8276048866fc9a976b349775e', class: "gannt-wrapper-main" }, index.h("div", { key: '67654e8431be67e00d1bff668d9d90b3a7b3b21f', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (index.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) => {
|
|
577
577
|
this.taskListScrollWidth = width;
|
|
578
|
-
}, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), index.h("kup-task-gantt", { key: '
|
|
578
|
+
}, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), index.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 && (index.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 })), index.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 && (index.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 }))));
|
|
579
579
|
}
|
|
580
580
|
get rootElement() { return index.getElement(this); }
|
|
581
581
|
static get watchers() { return {
|
|
@@ -686,20 +686,20 @@ const HorizontalScroll = class {
|
|
|
686
686
|
var _a, _b;
|
|
687
687
|
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
|
|
688
688
|
const width = +this.listCellWidth.replace('px', '');
|
|
689
|
-
return (index.h(index.Fragment, { key: '
|
|
690
|
-
this.taskListScrollWidth > width && (index.h("div", { key: '
|
|
689
|
+
return (index.h(index.Fragment, { key: '0359e34c59e8f83b91edf4ea4455f9b0b818b187' }, index.h("div", { key: '1f959a14bd712c24fd9247aeeba42d4702f4a647', class: "scroll-container" }, this.scrollableTaskList &&
|
|
690
|
+
this.taskListScrollWidth > width && (index.h("div", { key: '0c90c113ae5ad82ce41a1dd30037c14f0d3aa071', dir: "ltr", style: {
|
|
691
691
|
margin: this.rtl
|
|
692
692
|
? `0px 20px 0px 20px`
|
|
693
693
|
: `0px 20px 0px 20px`,
|
|
694
694
|
maxWidth: `${width + 20}px`,
|
|
695
695
|
minWidth: `${width + 20}px`,
|
|
696
|
-
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, index.h("div", { key: '
|
|
696
|
+
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalTaskListScroll }, index.h("div", { key: '2baa4a929f17a9fb7df2a74328ad231445fd9639', style: {
|
|
697
697
|
width: `${this.taskListScrollWidth}px`,
|
|
698
|
-
}, class: "scroll" }))), index.h("div", { key: '
|
|
698
|
+
}, class: "scroll" }))), index.h("div", { key: '070aa5027e20fc0f31d3ab66672789ce29d3ad8a', dir: "ltr", style: {
|
|
699
699
|
margin: this.rtl
|
|
700
700
|
? `0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px 0px 12px`
|
|
701
701
|
: `0px 12px 0px ${this.scrollableTaskList && this.taskListScrollWidth > width ? 40 : w}px`,
|
|
702
|
-
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, index.h("div", { key: '
|
|
702
|
+
}, class: "scrollWrapper", "data-scrollx": "true", onScroll: this.horizontalScroll }, index.h("div", { key: '509f0a35443c329e6c86bafbb1a7f93919b62f48', style: { width: `${this.svgWidth}px` }, class: "scroll" })))));
|
|
703
703
|
}
|
|
704
704
|
get rootElement() { return index.getElement(this); }
|
|
705
705
|
static get watchers() { return {
|
|
@@ -720,7 +720,7 @@ const StandardTooltipContent = class {
|
|
|
720
720
|
this.fontFamily = undefined;
|
|
721
721
|
}
|
|
722
722
|
render() {
|
|
723
|
-
return (index.h("div", { key: '
|
|
723
|
+
return (index.h("div", { key: '6e4baa35e22f4add6f7d9b71f472818eb81043fe', class: "tooltipDefaultContainer", style: { fontSize: this.fontSize, fontFamily: this.fontFamily } }, index.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 && (index.h("p", { key: '919d7543791605febf24c54992eec344d69a78f9', class: "tooltipDefaultContainerParagraph" }, `Duration: ${~~((this.task.end.getTime() - this.task.start.getTime()) / (1000 * 60 * 60 * 24))} day(s)`)), index.h("p", { key: 'e4292000dc3eecf27db918ec1e9b78d8e9b6b6ed', class: "tooltipDefaultContainerParagraph" }, !!this.task.progress && `Progress: ${this.task.progress} %`)));
|
|
724
724
|
}
|
|
725
725
|
};
|
|
726
726
|
StandardTooltipContent.style = KupStandardTooltipStyle0;
|
|
@@ -746,7 +746,7 @@ const KupSwitcher = class {
|
|
|
746
746
|
this.activeButton = mode;
|
|
747
747
|
this.timeUnitChange(mode);
|
|
748
748
|
};
|
|
749
|
-
return (index.h("div", { key: '
|
|
749
|
+
return (index.h("div", { key: '9540112cd61ae116e61feca0d2424e3511139f25', class: "switcher" }, this.buttonLabels.map((label) => (index.h("button", { type: "button", class: {
|
|
750
750
|
button: true,
|
|
751
751
|
buttonActive: this.activeButton === label,
|
|
752
752
|
}, onClick: () => handleButtonClick(label) }, index.h("span", { class: "label" }, label.charAt(0).toUpperCase() + label.slice(1)))))));
|
|
@@ -790,12 +790,12 @@ const TaskGantt = class {
|
|
|
790
790
|
}
|
|
791
791
|
render() {
|
|
792
792
|
const newBarProps = Object.assign(Object.assign({}, this.barProps), { gridProps: this.gridProps, phaseDragScroll: this.phaseDragScroll });
|
|
793
|
-
return (index.h("div", { key: '
|
|
793
|
+
return (index.h("div", { key: '225f4d8173ff69d5ddde8d2f5ed33bdbe463c47b', class: "ganttVerticalContainer", ref: (el) => (this.verticalGanttContainerRef = el), dir: "ltr" }, index.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 }), index.h("div", { key: '4cf70e2505d9be056ed47d36b6f7c856801e3c58', ref: (el) => (this.horizontalContainerRef = el), class: "horizontalContainer", style: this.ganttHeight
|
|
794
794
|
? {
|
|
795
795
|
height: `${this.ganttHeight}px`,
|
|
796
796
|
width: `${this.gridProps.svgWidth}px`,
|
|
797
797
|
}
|
|
798
|
-
: { width: `${this.gridProps.svgWidth}px` } }, index.h("kup-grid-renderer", Object.assign({ key: '
|
|
798
|
+
: { width: `${this.gridProps.svgWidth}px` } }, index.h("kup-grid-renderer", Object.assign({ key: '27ebb2611cb6f3f432b555f1f29a0e906df4cab3' }, newBarProps)))));
|
|
799
799
|
}
|
|
800
800
|
get rootElement() { return index.getElement(this); }
|
|
801
801
|
static get watchers() { return {
|
|
@@ -895,7 +895,7 @@ const TaskList = class {
|
|
|
895
895
|
if (TaskListTable && TaskListTable['$attrs$']) {
|
|
896
896
|
Object.assign(TaskListTable['$attrs$'], Object.assign({}, tableProps));
|
|
897
897
|
}
|
|
898
|
-
return (index.h("div", { key: '
|
|
898
|
+
return (index.h("div", { key: 'a19dc6c19ddcf5af323857e2f3a86ad81378c5a6', ref: (el) => (this.taskListRef = el) }, TaskListHeader && TaskListHeader['$attrs$'] ? (TaskListHeader) : (index.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))), index.h("div", { key: '863960227bf03fef0e3db1064df6edc56386868c', class: `${this.horizontalContainerClass} ${this.scrollableTaskList ? 'horizontalContainerScrollable' : ''}`, style: this.ganttHeight
|
|
899
899
|
? { height: this.ganttHeight + 'px' }
|
|
900
900
|
: {}, ref: (el) => (this.horizontalContainerRef = el) }, TaskListTable && TaskListTable['$attrs$'] ? (TaskListTable) : (index.h("kup-custom-task-list-table", Object.assign({}, tableProps, { onclickTaskList: (id) => {
|
|
901
901
|
let row = kupPlannerRendererHelper.getProjectById(id, this.currentTasks);
|
|
@@ -944,22 +944,22 @@ const KupTaskListHeader = class {
|
|
|
944
944
|
this.rowWidth = undefined;
|
|
945
945
|
}
|
|
946
946
|
render() {
|
|
947
|
-
return (index.h("div", { key: '
|
|
947
|
+
return (index.h("div", { key: '7c38309df79834a182510f6afc3ddf8c9ce0b46f', class: "ganttTable", style: {
|
|
948
948
|
fontFamily: this.fontFamily,
|
|
949
949
|
fontSize: this.fontSize,
|
|
950
|
-
} }, index.h("div", { key: '
|
|
950
|
+
} }, index.h("div", { key: '41f5891329b6ac17fbfad63f5a8fc89aadff5d96', class: "ganttTable_Header", style: {
|
|
951
951
|
height: `${this.headerHeight - 2}px`,
|
|
952
|
-
} }, index.h("div", { key: '
|
|
952
|
+
} }, index.h("div", { key: '9b30d5bad4ce720ca1d3efdd3e1c5df91866202d', class: "ganttTable_HeaderItem", style: {
|
|
953
953
|
minWidth: this.rowWidth,
|
|
954
|
-
} }, "\u00A0Name"), index.h("div", { key: '
|
|
954
|
+
} }, "\u00A0Name"), index.h("div", { key: '9bf3e558ee06f137809853c3da1682eded542586', class: "ganttTable_HeaderSeparator", style: {
|
|
955
955
|
height: `${this.headerHeight * 0.5}px`,
|
|
956
956
|
marginTop: `${this.headerHeight * 0.2}px`,
|
|
957
|
-
} }), index.h("div", { key: '
|
|
957
|
+
} }), index.h("div", { key: 'b57e9cb06f84f0acf420e28e1d6ee1a3c66da79d', class: "ganttTable_HeaderItem", style: {
|
|
958
958
|
minWidth: this.rowWidth,
|
|
959
|
-
} }, "\u00A0From"), index.h("div", { key: '
|
|
959
|
+
} }, "\u00A0From"), index.h("div", { key: '62dd83ffb11015bc40b8437e35eb2e2686e2d0ff', class: "ganttTable_HeaderSeparator", style: {
|
|
960
960
|
height: `${this.headerHeight * 0.5}px`,
|
|
961
961
|
marginTop: `${this.headerHeight * 0.25}px`,
|
|
962
|
-
} }), index.h("div", { key: '
|
|
962
|
+
} }), index.h("div", { key: '41790ff5c2576c41a11be2a3ef9e811d35b526ca', class: "ganttTable_HeaderItem", style: {
|
|
963
963
|
minWidth: this.rowWidth,
|
|
964
964
|
} }, "\u00A0To"))));
|
|
965
965
|
}
|
|
@@ -993,7 +993,7 @@ const TaskListTableDefault = class {
|
|
|
993
993
|
return date.toLocaleDateString(this.locale, this.dateTimeOptions);
|
|
994
994
|
}
|
|
995
995
|
render() {
|
|
996
|
-
return (index.h("div", { key: '
|
|
996
|
+
return (index.h("div", { key: '1b39b6a152899cd206287a8be18fa083d19c91a9', class: "taskListWrapper", style: {
|
|
997
997
|
fontFamily: this.fontFamily,
|
|
998
998
|
fontSize: this.fontSize,
|
|
999
999
|
} }, this.tasks.map((task) => (index.h("div", { class: {
|
|
@@ -1082,7 +1082,7 @@ const Tooltip = class {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
render() {
|
|
1085
|
-
return (index.h("div", { key: '
|
|
1085
|
+
return (index.h("div", { key: '376115aa725f2be586aaa2f5000cfe35e9ed2fb8', class: this.relatedX ? 'tooltipDetailsContainer' : 'tooltipDetailsContainerHidden', style: { left: `${this.relatedX}px`, top: `${this.relatedY}px` } }, index.h(this.TooltipContent, { key: '3eb3daba50c63eee9b4bcdf42d9565ab633efeca', task: this.task, fontSize: this.fontSize, fontFamily: this.fontFamily })));
|
|
1086
1086
|
}
|
|
1087
1087
|
get rootElement() { return index.getElement(this); }
|
|
1088
1088
|
static get watchers() { return {
|
|
@@ -1136,11 +1136,11 @@ const KupVerticalScroll = class {
|
|
|
1136
1136
|
};
|
|
1137
1137
|
}
|
|
1138
1138
|
render() {
|
|
1139
|
-
return (index.h("div", { key: '
|
|
1139
|
+
return (index.h("div", { key: 'ff60569ab85cb336d97223e914f1161a0ed1def5', style: {
|
|
1140
1140
|
height: `${this.ganttHeight}px`,
|
|
1141
1141
|
marginTop: `${this.headerHeight}px`,
|
|
1142
1142
|
marginLeft: this.rtl ? '' : '-1rem',
|
|
1143
|
-
}, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, index.h("div", { key: '
|
|
1143
|
+
}, class: "scroll", onScroll: this.verticalScroll, ref: (el) => (this.scrollRef = el) }, index.h("div", { key: '0e05750fe66a56f93277bed8c3fad94c0f388abc', style: {
|
|
1144
1144
|
height: `${this.ganttFullHeight}px`,
|
|
1145
1145
|
width: '1px',
|
|
1146
1146
|
} })));
|
|
@@ -28,6 +28,7 @@ var KupInputPanelProps;
|
|
|
28
28
|
KupInputPanelProps["hiddenSubmitButton"] = "Creates a hidden submit button in order to submit the form with enter.";
|
|
29
29
|
KupInputPanelProps["submitCb"] = "Sets the callback function on submit form";
|
|
30
30
|
KupInputPanelProps["optionsHandler"] = "Sets the callback function to recieve options";
|
|
31
|
+
KupInputPanelProps["buttonPosition"] = "Manage the position of the buttons related to the input panel content. It is an enumeration";
|
|
31
32
|
})(KupInputPanelProps || (KupInputPanelProps = {}));
|
|
32
33
|
|
|
33
34
|
const CHAR_WIDTH = 12;
|
|
@@ -63,7 +64,7 @@ const getAbsoluteLeft = (col) => {
|
|
|
63
64
|
return col * CHAR_WIDTH;
|
|
64
65
|
};
|
|
65
66
|
|
|
66
|
-
const kupInputPanelCss = ".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{--kup-fcell-width:fit-content;--kup_input_panel_background_color:var(\n --kup-input-panel-background-color,\n var(--kup-layer-0)\n );--kup_input_panel_color:var(\n --kup-input-panel-color,\n var(--kup-text-secondary)\n );--kup_input_panel_font_family:var(\n --kup-input-panel-font-family,\n var(--kup-font-family)\n );--kup_input_panel_font_size:var(\n --kup-input-panel-font-size,\n var(--kup-font-size)\n );--kup_input_panel_label_alignment:var(--kup-input-panel-label-alignment);--kup_input_panel_label_width:var(--kup-input-panel-label-width);--kup_input_panel_padding:var(--kup-input-panel-padding, 1em 0)}:host .input-panel{background:var(--kup_input_panel_background_color);color:var(--kup_input_panel_color);display:flex;flex-grow:1;overflow:auto;padding:var(--kup_input_panel_padding);position:relative;gap:1rem}:host .input-panel__commands{display:flex;gap:2rem}:host .input-panel--column{flex-direction:column}:host .input-panel__section_label_container{display:flex;flex-direction:column;gap:1rem}:host .input-panel__section{display:grid;min-width:0}:host .input-panel__section .f-cell__content>*{width:100%}:host .input-panel__horizontal-section{display:inline-grid}:host .input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control{height:40px;width:40px}:host .input-panel__label_container{display:flex;flex-direction:column;justify-content:center}:host .input-panel__label_container>.f-cell{flex:1}:host .input-panel__tabs_container{display:flex;flex-direction:column;justify-content:center;gap:2rem}:host .input-panel .f-cell.number-cell .f-cell__content{--kup-textfield-font-family:var(--kup_cell_font_family);font-family:var(--kup_cell_font_family)}:host .input-panel .input-panel-label{display:flex;width:100%;height:100%;align-items:center;justify-content:center}:host .input-panel--absolute{justify-content:flex-end}:host .input-panel--absolute .input-panel-label{justify-content:start}:host .input-panel--absolute .mdc-text-field{height:unset !important}";
|
|
67
|
+
const kupInputPanelCss = ".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{--kup-fcell-width:fit-content;--kup_input_panel_background_color:var(\n --kup-input-panel-background-color,\n var(--kup-layer-0)\n );--kup_input_panel_color:var(\n --kup-input-panel-color,\n var(--kup-text-secondary)\n );--kup_input_panel_font_family:var(\n --kup-input-panel-font-family,\n var(--kup-font-family)\n );--kup_input_panel_font_size:var(\n --kup-input-panel-font-size,\n var(--kup-font-size)\n );--kup_input_panel_label_alignment:var(--kup-input-panel-label-alignment);--kup_input_panel_label_width:var(--kup-input-panel-label-width);--kup_input_panel_padding:var(--kup-input-panel-padding, 1em 0);--kup_input_panel_padding--inline:var(--kup-input-panel-padding--inline, 0)}:host .input-panel{background:var(--kup_input_panel_background_color);color:var(--kup_input_panel_color);display:flex;flex-grow:1;overflow:auto;padding:var(--kup_input_panel_padding);position:relative;gap:1rem}:host .input-panel__commands{display:flex;gap:2rem}:host .input-panel__commands.input-panel__commands--right{flex-shrink:0;overflow:hidden}:host .input-panel--inline{flex:1;overflow-x:auto;white-space:nowrap;padding:var(--kup_input_panel_padding--inline)}:host .input-panel--column{flex-direction:column}:host .input-panel__section_label_container{display:flex;flex-direction:column;gap:1rem}:host .input-panel__section{display:grid;min-width:0}:host .input-panel__section .f-cell__content>*{width:100%}:host .input-panel__horizontal-section{display:inline-grid}:host .input-panel__section-inline{display:inline-block;width:max-content}:host .input-panel .f-cell .f-checkbox .checkbox .checkbox__native-control{height:40px;width:40px}:host .input-panel__label_container{display:flex;flex-direction:column;justify-content:center}:host .input-panel__label_container>.f-cell{flex:1}:host .input-panel__tabs_container{display:flex;flex-direction:column;justify-content:center;gap:2rem}:host .input-panel .f-cell.number-cell .f-cell__content{--kup-textfield-font-family:var(--kup_cell_font_family);font-family:var(--kup_cell_font_family)}:host .input-panel .input-panel-label{display:flex;width:100%;height:100%;align-items:center;justify-content:center}:host .input-panel--absolute{justify-content:flex-end}:host .input-panel--absolute .input-panel-label{justify-content:start}:host .input-panel--absolute .mdc-text-field{height:unset !important}:host .input-panel-form--inline{display:flex;align-items:end}";
|
|
67
68
|
const KupInputPanelStyle0 = kupInputPanelCss;
|
|
68
69
|
|
|
69
70
|
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
@@ -155,6 +156,7 @@ const KupInputPanel = class {
|
|
|
155
156
|
this.customStyle = '';
|
|
156
157
|
this.data = null;
|
|
157
158
|
this.hiddenSubmitButton = false;
|
|
159
|
+
this.buttonPosition = undefined;
|
|
158
160
|
this.submitCb = null;
|
|
159
161
|
this.optionsHandler = null;
|
|
160
162
|
this.customButtonClickHandler = null;
|
|
@@ -250,7 +252,7 @@ const KupInputPanel = class {
|
|
|
250
252
|
index.h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA)),
|
|
251
253
|
]
|
|
252
254
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
253
|
-
return (index.h(index.Host, { key: '
|
|
255
|
+
return (index.h(index.Host, { key: '50041632fc3d803f7b8701c1dca6dbae7a413796' }, index.h("style", { key: '7c1f478465b10c318d1bdba68f489e6907b87055' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '56c13788936dbd560b099432d204898b0e10264f', id: GenericVariables.componentWrapperId }, inputPanelContent)));
|
|
254
256
|
}
|
|
255
257
|
disconnectedCallback() {
|
|
256
258
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -307,13 +309,22 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
307
309
|
rowContent = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderGridLayout).call(this, inputPanelCell, layout);
|
|
308
310
|
}
|
|
309
311
|
}
|
|
312
|
+
const inputPanelClass = {
|
|
313
|
+
'input-panel-form': true,
|
|
314
|
+
'input-panel-form--inline': this.buttonPosition == 'RIGHT',
|
|
315
|
+
};
|
|
310
316
|
const classObj = {
|
|
311
317
|
'input-panel': true,
|
|
312
318
|
'input-panel--column': !horizontal,
|
|
313
319
|
'input-panel--absolute': layout === null || layout === void 0 ? void 0 : layout.absolute,
|
|
320
|
+
'input-panel--inline': this.buttonPosition == 'RIGHT',
|
|
321
|
+
};
|
|
322
|
+
const commandsClass = {
|
|
323
|
+
'input-panel__commands': true,
|
|
324
|
+
[`input-panel__commands--${this.buttonPosition}`]: true,
|
|
314
325
|
};
|
|
315
326
|
// We create a form for each row in data
|
|
316
|
-
return (index.h("form", { name: this.rootElement.id, id: this.rootElement.id, class:
|
|
327
|
+
return (index.h("form", { name: this.rootElement.id, id: this.rootElement.id, class: inputPanelClass, ref: (el) => (__classPrivateFieldSet(this, _KupInputPanel_formRef, el, "f")), onSubmit: (e) => {
|
|
317
328
|
e.preventDefault();
|
|
318
329
|
this.submitCb({
|
|
319
330
|
value: {
|
|
@@ -323,7 +334,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
323
334
|
});
|
|
324
335
|
}, onContextMenu: (e) => {
|
|
325
336
|
e.preventDefault();
|
|
326
|
-
} }, index.h("div", { class: classObj, style: styleObj }, rowContent), index.h("div", { class:
|
|
337
|
+
} }, index.h("div", { class: classObj, style: styleObj }, rowContent), index.h("div", { class: commandsClass }, index.h(fButton.FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.inputPanelCommands)));
|
|
327
338
|
}, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
|
|
328
339
|
if (!cell) {
|
|
329
340
|
return;
|
|
@@ -386,14 +397,15 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
386
397
|
const sectionRender = __classPrivateFieldGet(this, _KupInputPanel_sectionRenderMap, "f").get(layout.sectionsType);
|
|
387
398
|
return sectionRender
|
|
388
399
|
? sectionRender(inputPanelCell, layout.sections)
|
|
389
|
-
: layout.sections.map((section) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderSection).call(this, inputPanelCell, section));
|
|
400
|
+
: layout.sections.map((section) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderSection).call(this, inputPanelCell, section, false));
|
|
390
401
|
}, _KupInputPanel_renderAbsoluteLayout = function _KupInputPanel_renderAbsoluteLayout(inputPanelCell, layout) {
|
|
391
402
|
return layout.sections.map((section) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderAbsoluteSection).call(this, inputPanelCell, section));
|
|
392
|
-
}, _KupInputPanel_renderSection = function _KupInputPanel_renderSection(cells, section, customLabelRender = false, styleObj = {}) {
|
|
403
|
+
}, _KupInputPanel_renderSection = function _KupInputPanel_renderSection(cells, section, customLabelRender = false, styleObj = {}, layout) {
|
|
393
404
|
var _a, _b;
|
|
394
405
|
const classObj = {
|
|
395
406
|
'input-panel__section': !section.horizontal,
|
|
396
407
|
'input-panel__horizontal-section': section.horizontal,
|
|
408
|
+
'input-panel__section-inline': layout === null || layout === void 0 ? void 0 : layout.horizontal,
|
|
397
409
|
};
|
|
398
410
|
styleObj.gap = +section.gap > 0 ? `${section.gap}rem` : '1rem';
|
|
399
411
|
let content = [];
|