@sme.up/ketchup 10.3.6 → 10.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-cell-e5ff9c98.js → f-cell-5c1b2c66.js} +21 -13
- package/dist/cjs/{f-chip-f35c1b42.js → f-chip-b4aebf7c.js} +1 -1
- package/dist/cjs/{f-object-field-04065abd.js → f-object-field-62195164.js} +2 -2
- package/dist/cjs/{f-paginator-utils-3ada5c71.js → f-paginator-utils-54bc1b31.js} +9 -7
- package/dist/cjs/{f-text-field-0eda27cd.js → f-text-field-03e975ad.js} +2 -5
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +131 -83
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +7 -4
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-0b79fb90.js → kup-data-table-helper-72dc3004.js} +3 -3
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +48 -6
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-gantt_10.cjs.entry.js +23 -23
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +2 -2
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +168 -28
- package/dist/cjs/kup-lazy.cjs.entry.js +12 -12
- package/dist/cjs/kup-magic-box.cjs.entry.js +4 -4
- package/dist/cjs/{kup-manager-5cdad0f5.js → kup-manager-bb0a1490.js} +6 -10
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-object-field.cjs.entry.js +4 -4
- package/dist/cjs/kup-pdf.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +2 -2
- package/dist/cjs/kup-planner.cjs.entry.js +3 -3
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/kup-txt.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/echart.js +343 -169
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -2
- package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +1 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +7 -4
- package/dist/collection/components/kup-data-table/kup-data-table.js +14 -11
- package/dist/collection/components/kup-echart/kup-echart.js +47 -5
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +3 -1
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +13 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +181 -25
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-htm/kup-htm.js +1 -1
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +182 -22
- 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-object-field/kup-object-field.js +1 -1
- package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
- 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 +2 -2
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +13 -7
- package/dist/collection/f-components/f-paginator/f-paginator.js +1 -1
- package/dist/collection/f-components/f-radio/f-radio.js +3 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js +1 -4
- package/dist/collection/utils/cell-utils.js +2 -7
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +7 -4
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-custom-task-list-header.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gantt-calendar.js +1 -1
- package/dist/components/kup-gantt.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid-renderer.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-horizontal-scroll.js +1 -1
- package/dist/components/kup-htm.js +3 -3
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +166 -26
- package/dist/components/kup-lazy.js +13 -13
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +7 -7
- package/dist/components/kup-nav-bar.js +3 -3
- package/dist/components/kup-numeric-picker.js +3 -3
- package/dist/components/kup-object-field.js +3 -3
- package/dist/components/kup-pdf.js +3 -3
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +17 -17
- package/dist/components/kup-probe.js +3 -3
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +3 -3
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +3 -3
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-standard-tooltip.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-switcher.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-task-gantt.js +1 -1
- package/dist/components/kup-task-list-header.js +1 -1
- package/dist/components/kup-task-list-table.js +1 -1
- package/dist/components/kup-task-list.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tooltip.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +3 -3
- package/dist/components/kup-typography-list.js +3 -3
- package/dist/components/kup-typography.js +4 -4
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-b45eb398.js → p-0448c650.js} +13 -13
- package/dist/components/{p-7aa9d49d.js → p-072ba014.js} +7 -7
- package/dist/components/{p-28f24feb.js → p-09e09e43.js} +15 -15
- package/dist/components/{p-af0a6cfe.js → p-47eafd24.js} +2 -2
- package/dist/components/{p-33cf89e0.js → p-57069e5c.js} +1 -1
- package/dist/components/{p-c061deb1.js → p-66800070.js} +166 -101
- package/dist/components/{p-28774fba.js → p-73b82fab.js} +4 -4
- package/dist/components/{p-57a120a5.js → p-78086e86.js} +1 -1
- package/dist/components/{p-46ec5845.js → p-7b80651f.js} +1 -1
- package/dist/components/{p-34ed7a73.js → p-7fa7072d.js} +2 -2
- package/dist/components/{p-b87bd975.js → p-96d517a7.js} +5 -5
- package/dist/components/{p-df77b97b.js → p-970526a0.js} +6 -10
- package/dist/components/{p-daa07bb7.js → p-9c59685c.js} +1 -1
- package/dist/components/{p-ae3013bd.js → p-a266fbc3.js} +2 -2
- package/dist/components/{p-5db0bb55.js → p-a6da9edf.js} +2 -2
- package/dist/components/{p-edac29ad.js → p-a70b7f3e.js} +2 -2
- package/dist/components/{p-394a36af.js → p-bba3ee8c.js} +3 -3
- package/dist/components/{p-398198d3.js → p-e8d7edaf.js} +49 -7
- package/dist/components/{p-5e31c839.js → p-eee85021.js} +2 -2
- package/dist/components/{p-d3a8c2ba.js → p-f836c3ed.js} +2 -2
- package/dist/esm/{f-cell-d72f5a9c.js → f-cell-3f9d4de0.js} +21 -13
- package/dist/esm/{f-chip-663db488.js → f-chip-28fde4c9.js} +1 -1
- package/dist/esm/{f-object-field-afe7604f.js → f-object-field-24f67438.js} +2 -2
- package/dist/esm/{f-paginator-utils-b6924c55.js → f-paginator-utils-3e2a0dcd.js} +9 -7
- package/dist/esm/{f-text-field-40f1ad00.js → f-text-field-f64cc53e.js} +2 -5
- package/dist/esm/index.js +1 -1
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_30.entry.js +131 -83
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +7 -4
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-8f020338.js → kup-data-table-helper-edbee21a.js} +3 -3
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +48 -6
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-gantt_10.entry.js +23 -23
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +168 -28
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-b367be3b.js → kup-manager-7acd779a.js} +6 -10
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-object-field.entry.js +4 -4
- package/dist/esm/kup-pdf.entry.js +2 -2
- package/dist/esm/kup-planner-renderer.entry.js +2 -2
- package/dist/esm/kup-planner.entry.js +3 -3
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +2 -2
- package/dist/esm/kup-txt.entry.js +2 -2
- package/dist/esm/kup-typography-list.entry.js +2 -2
- package/dist/esm/kup-typography.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-8bc2888a.entry.js → p-001bf9b3.entry.js} +1 -1
- package/dist/ketchup/p-003617f2.entry.js +1 -0
- package/dist/ketchup/{p-17b25b3d.entry.js → p-00e3a2c7.entry.js} +1 -1
- package/dist/ketchup/{p-ebf955a8.entry.js → p-05da127e.entry.js} +1 -1
- package/dist/ketchup/{p-4735c623.entry.js → p-0a4869d8.entry.js} +1 -1
- package/dist/ketchup/{p-fac09a35.entry.js → p-0f3e905b.entry.js} +1 -1
- package/dist/ketchup/{p-b0550f15.entry.js → p-0f78bd11.entry.js} +2 -2
- package/dist/ketchup/p-216b5deb.js +1 -0
- package/dist/ketchup/p-3823781f.entry.js +1 -0
- package/dist/ketchup/{p-def6d8b4.entry.js → p-39ab2443.entry.js} +1 -1
- package/dist/ketchup/{p-b9350213.entry.js → p-4e8d34ad.entry.js} +1 -1
- package/dist/ketchup/{p-75deebdb.entry.js → p-561db8b0.entry.js} +1 -1
- package/dist/ketchup/{p-c2531d28.entry.js → p-5c538668.entry.js} +1 -1
- package/dist/ketchup/{p-9ff4c3e5.entry.js → p-5cdbe34b.entry.js} +1 -1
- package/dist/ketchup/p-607b56b3.entry.js +8 -0
- package/dist/ketchup/{p-f2bfb53c.entry.js → p-60c3a948.entry.js} +1 -1
- package/dist/ketchup/{p-62edfd5a.entry.js → p-6429a3bc.entry.js} +1 -1
- package/dist/ketchup/{p-d696e519.js → p-84a053a8.js} +1 -1
- package/dist/ketchup/{p-c0928fec.entry.js → p-864d384f.entry.js} +1 -1
- package/dist/ketchup/{p-43bfca60.entry.js → p-90345661.entry.js} +2 -2
- package/dist/ketchup/{p-928adf93.entry.js → p-91184407.entry.js} +1 -1
- package/dist/ketchup/{p-5bf264dd.entry.js → p-92d5502a.entry.js} +1 -1
- package/dist/ketchup/{p-ec1129bf.entry.js → p-9432bc02.entry.js} +1 -1
- package/dist/ketchup/{p-6e6d3296.entry.js → p-9667a3f6.entry.js} +1 -1
- package/dist/ketchup/{p-26a20d81.entry.js → p-98865092.entry.js} +1 -1
- package/dist/ketchup/{p-4c8edfb1.entry.js → p-a5589352.entry.js} +1 -1
- package/dist/ketchup/{p-6b185239.entry.js → p-ab5dcfce.entry.js} +1 -1
- package/dist/ketchup/p-b7b54a12.js +1 -0
- package/dist/ketchup/{p-32ced542.entry.js → p-bbdc671b.entry.js} +1 -1
- package/dist/ketchup/p-c00b4f52.js +1 -0
- package/dist/ketchup/p-c38d19f9.js +1 -0
- package/dist/ketchup/{p-26206b66.entry.js → p-cb4c3ec6.entry.js} +1 -1
- package/dist/ketchup/{p-9c13c092.entry.js → p-d643a6b0.entry.js} +1 -1
- package/dist/ketchup/{p-0666ba27.entry.js → p-d7bfb6da.entry.js} +2 -2
- package/dist/ketchup/{p-51cc836a.js → p-e3098793.js} +1 -1
- package/dist/ketchup/p-ebcd12d5.js +1 -0
- package/dist/ketchup/{p-941beedb.entry.js → p-ebcf33a3.entry.js} +1 -1
- package/dist/ketchup/{p-006b5782.entry.js → p-ee752492.entry.js} +1 -1
- package/dist/ketchup/{p-4af4b7d3.entry.js → p-f446a5dd.entry.js} +1 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +2 -1
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +6 -1
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +31 -5
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +2 -1
- package/dist/types/components.d.ts +55 -11
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/utils/cell-utils.d.ts +3 -1
- package/package.json +4 -1
- package/dist/ketchup/p-058def11.entry.js +0 -1
- package/dist/ketchup/p-29c07479.entry.js +0 -8
- package/dist/ketchup/p-2e012afe.js +0 -1
- package/dist/ketchup/p-8be7a37f.js +0 -1
- package/dist/ketchup/p-b39c7a22.js +0 -1
- package/dist/ketchup/p-c109ce22.js +0 -1
- package/dist/ketchup/p-d49f1a0d.js +0 -1
- package/dist/ketchup/p-eb771c1b.entry.js +0 -1
|
@@ -408,7 +408,7 @@ export class KupForm {
|
|
|
408
408
|
render() {
|
|
409
409
|
let formContent = null;
|
|
410
410
|
if (this.data.rows.length === 0) {
|
|
411
|
-
formContent = (h("p", { key: '
|
|
411
|
+
formContent = (h("p", { key: '103de9b30f44f7958a691e5dccc8698e49ca76cf' }, this.kupManager.language.translate(KupLanguageGeneric.EMPTY_DATA)));
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
414
|
const rows = this.data.rows;
|
|
@@ -419,7 +419,7 @@ export class KupForm {
|
|
|
419
419
|
formContent.push(this.renderRow(rows[cnt++]));
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
return (h(Host, { key: '
|
|
422
|
+
return (h(Host, { key: 'cdaa7ff6add189834cc6f570d2a7cd032d3a0b3c' }, h("style", { key: 'd9eff3af01d39df16086be74e2c893b64f861e52' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'd4dd031f9dac773296738ebfe27510be56af8e5a', id: componentWrapperId }, formContent)));
|
|
423
423
|
}
|
|
424
424
|
disconnectedCallback() {
|
|
425
425
|
this.kupManager.language.unregister(this);
|
|
@@ -69,7 +69,7 @@ export class KupHTM {
|
|
|
69
69
|
render() {
|
|
70
70
|
var _a;
|
|
71
71
|
const isLink = __classPrivateFieldGet(this, _KupHTM_instances, "m", _KupHTM_isObjectCompatibleWithHTM).call(this, (_a = this === null || this === void 0 ? void 0 : this.data) === null || _a === void 0 ? void 0 : _a.obj);
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: 'd4c059a573d252c5809a77375222a78bcdee56bc' }, h("style", { key: '46ea04367aae5ad0602ab6f84dc0cb904b14e091' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '3d2ad3be208bd0cb850e66113155b70ace70983c', id: componentWrapperId }, h("div", { key: '075017b3ef686bfc5d6cee4035c3b053c11d67af', 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 }))))));
|
|
73
73
|
}
|
|
74
74
|
disconnectedCallback() {
|
|
75
75
|
__classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.unregister(this);
|
|
@@ -205,14 +205,14 @@ export class KupImageList {
|
|
|
205
205
|
}
|
|
206
206
|
const imlClass = 'image-list' +
|
|
207
207
|
(this.showFullDescription ? ' full-description' : '');
|
|
208
|
-
return (h(Host, { key: '
|
|
208
|
+
return (h(Host, { key: '4a3c80748fec9b98c9268077893643042b2c4ade' }, h("style", { key: '5fbc10ef98292d3cc1919d26cf64baa1286611e4' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '52254d30b66446960be0db63fdf486420d35a7ce', id: componentWrapperId, ref: (el) => {
|
|
209
209
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
210
|
-
} }, h("div", { key: '
|
|
210
|
+
} }, h("div", { key: '68cb3d98496d6314556ad5d777e6a67543a14ff3', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
211
211
|
? 'navigation-bar__wrapper--active'
|
|
212
212
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
213
213
|
this.navigationBarToggled =
|
|
214
214
|
!this.navigationBarToggled;
|
|
215
|
-
} }, 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), this.leadingLabel && (h("div", { key: '
|
|
215
|
+
} }, 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), this.leadingLabel && (h("div", { key: '4b808d9230730a0eb49c5eca46a8130eda1c0f51', class: "mdc-text-field__label-container" }, h("label", { key: 'c1fcdb83116da8e7591091fcb97ea6c4ecb19a27', class: "mdc-label" }, this.leadingLabel))), h("div", { key: 'f0b462e13602be5a3a8c00ffd993fd9c8b02476a', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
216
216
|
}
|
|
217
217
|
disconnectedCallback() {
|
|
218
218
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|
|
@@ -26,7 +26,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
}
|
|
27
27
|
return t;
|
|
28
28
|
};
|
|
29
|
-
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellTypesNeedingReset, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_readyPromise, _KupInputPanel_readyResolve, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderDropDownButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_extractContentIds, _KupInputPanel_renderSectionTab, _KupInputPanel_skipRenderField, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCommands, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_getOptionHandler, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_ImageListAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter,
|
|
29
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellTypesNeedingReset, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_readyPromise, _KupInputPanel_readyResolve, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderDropDownButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_extractContentIds, _KupInputPanel_renderSectionTab, _KupInputPanel_skipRenderField, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCommands, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_getOptionHandler, _KupInputPanel_isFCellEventPayload, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_ImageListAdapter, _KupInputPanel_FileUploadAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableCMBandACPOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_getTblAutocompleteEventCallback, _KupInputPanel_manageTblItemClick, _KupInputPanel_manageInputPanelCheck, _KupInputPanel_onCellUpdate, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN, _KupInputPanel_findTraversedFCell, _KupInputPanel_getEventDetails, _KupInputPanel_didLoadInteractables, _KupInputPanel_setFocusOnInputElement, _KupInputPanel_findFirstInput, _KupInputPanel_setAutoSkip, _KupInputPanel_upload;
|
|
30
30
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
31
31
|
import { FButton } from "../../f-components/f-button/f-button";
|
|
32
32
|
import { FCell } from "../../f-components/f-cell/f-cell";
|
|
@@ -58,10 +58,10 @@ export class KupInputPanel {
|
|
|
58
58
|
_KupInputPanel_formRef.set(this, void 0);
|
|
59
59
|
_KupInputPanel_optionsAdapterMap.set(this, new Map([
|
|
60
60
|
['SmeupDataTree', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_dataTreeOptionsChildrenAdapter).bind(this)],
|
|
61
|
-
['SmeupDataTable', __classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
61
|
+
['SmeupDataTable', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_tableCMBandACPOptionsAdapter).bind(this)],
|
|
62
62
|
//FIXME: deprecated
|
|
63
63
|
['SmeupTreeNode', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_treeOptionsNodeAdapter).bind(this)],
|
|
64
|
-
['SmeupTable', __classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
64
|
+
['SmeupTable', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_tableCMBandACPOptionsAdapter).bind(this)],
|
|
65
65
|
]));
|
|
66
66
|
_KupInputPanel_originalData.set(this, null);
|
|
67
67
|
_KupInputPanel_listeners.set(this, []);
|
|
@@ -249,15 +249,17 @@ export class KupInputPanel {
|
|
|
249
249
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
250
250
|
]
|
|
251
251
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
252
|
-
return (h(Host, { key: '
|
|
252
|
+
return (h(Host, { key: '41506c3d7a6888eeeda1dd5c300f36673b366510', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
|
|
253
253
|
this.tabSelected = e.detail.node.id;
|
|
254
|
-
}, "onKup-autocomplete-input": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-autocomplete-iconclick": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-combobox-iconclick": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e, true), "onKup-cell-itemclick": (e) =>
|
|
254
|
+
}, "onKup-autocomplete-input": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-autocomplete-iconclick": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-combobox-iconclick": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e, true), "onKup-cell-itemclick": (e) => {
|
|
255
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK);
|
|
256
|
+
}, "onKup-objectfield-searchpayload": (e) => {
|
|
255
257
|
this.kupInputPanelObjectFieldSearchPayload.emit(e.detail);
|
|
256
258
|
}, "onKup-objectfield-opensearchmenu": (e) => {
|
|
257
259
|
this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
|
|
258
260
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
259
261
|
this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
|
|
260
|
-
} }, h("style", { key: '
|
|
262
|
+
}, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, h("style", { key: '2b875bc91534289b075e8fac561d2eaeb5b732d1' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'ecfbac6227c007eadf2e63c2d936d72e7c132936', id: componentWrapperId }, inputPanelContent)));
|
|
261
263
|
}
|
|
262
264
|
disconnectedCallback() {
|
|
263
265
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -746,6 +748,27 @@ export class KupInputPanel {
|
|
|
746
748
|
}
|
|
747
749
|
}
|
|
748
750
|
}
|
|
751
|
+
}, {
|
|
752
|
+
"method": "kupCellUpload",
|
|
753
|
+
"name": "kup-inputpanel-upload",
|
|
754
|
+
"bubbles": true,
|
|
755
|
+
"cancelable": false,
|
|
756
|
+
"composed": true,
|
|
757
|
+
"docs": {
|
|
758
|
+
"tags": [],
|
|
759
|
+
"text": ""
|
|
760
|
+
},
|
|
761
|
+
"complexType": {
|
|
762
|
+
"original": "KupFileUploadEventPayload",
|
|
763
|
+
"resolved": "KupFileUploadEventPayload",
|
|
764
|
+
"references": {
|
|
765
|
+
"KupFileUploadEventPayload": {
|
|
766
|
+
"location": "import",
|
|
767
|
+
"path": "../../components",
|
|
768
|
+
"id": "src/components.d.ts::KupFileUploadEventPayload"
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
}
|
|
749
772
|
}];
|
|
750
773
|
}
|
|
751
774
|
static get methods() {
|
|
@@ -1030,7 +1053,36 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1030
1053
|
});
|
|
1031
1054
|
return (h("kup-editor", Object.assign({}, cell.data, { id: name, isReadOnly: !cell.isEditable, showToolbar: true })));
|
|
1032
1055
|
}, _KupInputPanel_renderDataTable = function _KupInputPanel_renderDataTable(cell, { name }) {
|
|
1033
|
-
|
|
1056
|
+
for (const row of cell.data.data.rows) {
|
|
1057
|
+
for (const cellName of Object.keys(row.cells)) {
|
|
1058
|
+
const cell = row.cells[cellName];
|
|
1059
|
+
if (cell.shape === FCellShapes.AUTOCOMPLETE) {
|
|
1060
|
+
cell.data['displayMode'] = 'CodeOnly';
|
|
1061
|
+
cell.data['selectMode'] = 'CodeOnly';
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
return (h("kup-data-table", Object.assign({ id: name, editableData: true, showGroups: true, showFilters: true }, cell.data, { "onKup-autocomplete-iconclick": (e) => {
|
|
1066
|
+
e.preventDefault();
|
|
1067
|
+
e.stopPropagation();
|
|
1068
|
+
}, "onKup-autocomplete-input": (e) => {
|
|
1069
|
+
e.preventDefault();
|
|
1070
|
+
e.stopPropagation();
|
|
1071
|
+
}, "onKup-datatable-cell-iconclick": (e) => {
|
|
1072
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e);
|
|
1073
|
+
e.preventDefault();
|
|
1074
|
+
e.stopPropagation();
|
|
1075
|
+
}, "onKup-datatable-cell-input": (e) => {
|
|
1076
|
+
if (e.detail.type === 'autocomplete') {
|
|
1077
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e);
|
|
1078
|
+
}
|
|
1079
|
+
e.preventDefault();
|
|
1080
|
+
e.stopPropagation();
|
|
1081
|
+
}, "onKup-cell-itemclick": (e) => {
|
|
1082
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageTblItemClick).call(this, e);
|
|
1083
|
+
e.preventDefault();
|
|
1084
|
+
e.stopPropagation();
|
|
1085
|
+
} })));
|
|
1034
1086
|
}, _KupInputPanel_renderLabel = function _KupInputPanel_renderLabel(cell, column, isAbsoluteLayout) {
|
|
1035
1087
|
const isNumberType = dom.ketchup.objects.isNumber(cell.obj);
|
|
1036
1088
|
const isFormattableType = isNumberType ||
|
|
@@ -1283,11 +1335,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1283
1335
|
.flat();
|
|
1284
1336
|
}, _KupInputPanel_mapCells = function _KupInputPanel_mapCells(data) {
|
|
1285
1337
|
var _a, _b, _c, _d;
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
}
|
|
1289
|
-
const layout = (_c = data === null || data === void 0 ? void 0 : data.rows[0]) === null || _c === void 0 ? void 0 : _c.layout;
|
|
1290
|
-
const inpuPanelCells = ((_d = data === null || data === void 0 ? void 0 : data.rows) === null || _d === void 0 ? void 0 : _d.length)
|
|
1338
|
+
const layout = (_a = data === null || data === void 0 ? void 0 : data.rows[0]) === null || _a === void 0 ? void 0 : _a.layout;
|
|
1339
|
+
const inpuPanelCells = ((_b = data === null || data === void 0 ? void 0 : data.rows) === null || _b === void 0 ? void 0 : _b.length)
|
|
1291
1340
|
? data.rows.reduce((inpuPanelCells, row) => {
|
|
1292
1341
|
const cells = data.columns.map((column) => {
|
|
1293
1342
|
const cell = structuredClone(row.cells[column.name]);
|
|
@@ -1311,6 +1360,9 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1311
1360
|
queryCompNeedsReset ? el === null || el === void 0 ? void 0 : el.reset() : (_a = el === null || el === void 0 ? void 0 : el.setValue) === null || _a === void 0 ? void 0 : _a.call(el, cell.value);
|
|
1312
1361
|
}));
|
|
1313
1362
|
this.inputPanelCells = inpuPanelCells;
|
|
1363
|
+
if ((_d = (_c = data.setup) === null || _c === void 0 ? void 0 : _c.commands) === null || _d === void 0 ? void 0 : _d.length) {
|
|
1364
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCommands).call(this);
|
|
1365
|
+
}
|
|
1314
1366
|
}, _KupInputPanel_setData = function _KupInputPanel_setData(cell, column, layout) {
|
|
1315
1367
|
const defaultProps = Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column, layout)), { disabled: !cell.isEditable || column.useAs === UseAsValue.KEY, id: column.name });
|
|
1316
1368
|
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
@@ -1394,6 +1446,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1394
1446
|
[FCellTypes.TABLE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_DataTableAdapter).bind(this)],
|
|
1395
1447
|
[FCellTypes.TIME, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_TimeAdapter).bind(this)],
|
|
1396
1448
|
[FCellTypes.IMAGE_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ImageListAdapter).bind(this)],
|
|
1449
|
+
[FCellTypes.FILE_UPLOAD, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_FileUploadAdapter).bind(this)],
|
|
1397
1450
|
]);
|
|
1398
1451
|
const adapter = dataAdapterMap.get(cellType);
|
|
1399
1452
|
return adapter
|
|
@@ -1431,10 +1484,21 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1431
1484
|
},
|
|
1432
1485
|
};
|
|
1433
1486
|
}, _KupInputPanel_BTNAdapter = function _KupInputPanel_BTNAdapter(_options, _fieldLabel, _currentValue, cell, id) {
|
|
1487
|
+
var _a, _b;
|
|
1434
1488
|
cell.data = cell.data || {};
|
|
1435
1489
|
cell.data.onClick = () => {
|
|
1436
1490
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getFunctionOnClickBTN).call(this, cell, id);
|
|
1437
1491
|
};
|
|
1492
|
+
if (cell.data.BtnMap) {
|
|
1493
|
+
const concurrentCommand = (_b = (_a = this.data.setup) === null || _a === void 0 ? void 0 : _a.commands) === null || _b === void 0 ? void 0 : _b.find((command) => command.obj.k === cell.data.BtnMap);
|
|
1494
|
+
if (concurrentCommand) {
|
|
1495
|
+
cell.isEditable = true;
|
|
1496
|
+
cell.data.onClick = () => {
|
|
1497
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getFunctionOnClickBTN).call(this, cell, concurrentCommand.obj.k);
|
|
1498
|
+
};
|
|
1499
|
+
this.data.setup.commands = this.data.setup.commands.filter((command) => command.obj.k !== concurrentCommand.obj.k);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1438
1502
|
return Object.assign({ label: cell.value, fun: cell.fun }, cell.data);
|
|
1439
1503
|
}, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(rawOptions, fieldLabel, currentValue, cell) {
|
|
1440
1504
|
const configCMandACP = CMBandACPAdapter(currentValue, fieldLabel, [], cell.data);
|
|
@@ -1443,15 +1507,22 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1443
1507
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, rawOptions, currentValue);
|
|
1444
1508
|
}
|
|
1445
1509
|
return configCMandACP;
|
|
1446
|
-
}, _KupInputPanel_getOptionHandler = function _KupInputPanel_getOptionHandler({ detail }, checkList = false) {
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
if (checkList) {
|
|
1450
|
-
triggerCallback = !detail.comp.data['kup-list'].data.length;
|
|
1510
|
+
}, _KupInputPanel_getOptionHandler = function _KupInputPanel_getOptionHandler({ detail, }, checkList = false) {
|
|
1511
|
+
if (__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_isFCellEventPayload).call(this, detail)) {
|
|
1512
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getTblAutocompleteEventCallback).call(this, detail);
|
|
1451
1513
|
}
|
|
1452
|
-
|
|
1453
|
-
__classPrivateFieldGet(this, _KupInputPanel_instances, "m",
|
|
1514
|
+
else {
|
|
1515
|
+
const cell = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getCell).call(this, detail.id);
|
|
1516
|
+
let triggerCallback = true;
|
|
1517
|
+
if (checkList) {
|
|
1518
|
+
triggerCallback = !detail.comp.data['kup-list'].data.length;
|
|
1519
|
+
}
|
|
1520
|
+
if (cell.fun && triggerCallback) {
|
|
1521
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getAutocompleteEventCallback).call(this, detail, cell);
|
|
1522
|
+
}
|
|
1454
1523
|
}
|
|
1524
|
+
}, _KupInputPanel_isFCellEventPayload = function _KupInputPanel_isFCellEventPayload(detail) {
|
|
1525
|
+
return detail.cell ? true : false;
|
|
1455
1526
|
}, _KupInputPanel_CHKAdapter = function _KupInputPanel_CHKAdapter(_options, fieldLabel, currentValue) {
|
|
1456
1527
|
return CHKAdapter(currentValue, fieldLabel);
|
|
1457
1528
|
}, _KupInputPanel_CLPAdapter = function _KupInputPanel_CLPAdapter(_options, fieldLabel, _currentValue) {
|
|
@@ -1475,8 +1546,28 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1475
1546
|
};
|
|
1476
1547
|
}
|
|
1477
1548
|
return data;
|
|
1478
|
-
}, _KupInputPanel_RADAdapter = function _KupInputPanel_RADAdapter(
|
|
1479
|
-
|
|
1549
|
+
}, _KupInputPanel_RADAdapter = function _KupInputPanel_RADAdapter(_options, _fieldLabel, currentValue, cell) {
|
|
1550
|
+
const getOptions = () => {
|
|
1551
|
+
var _a;
|
|
1552
|
+
if (cell.data.data) {
|
|
1553
|
+
return (_a = cell.data.data.rows) === null || _a === void 0 ? void 0 : _a.map((row) => {
|
|
1554
|
+
const cells = row.fields || row.cells;
|
|
1555
|
+
const [id, value] = Object.keys(cells);
|
|
1556
|
+
return {
|
|
1557
|
+
id: cells[id].value,
|
|
1558
|
+
label: value ? cells[value].value : cells[id].value,
|
|
1559
|
+
selected: currentValue === cells[id].value,
|
|
1560
|
+
};
|
|
1561
|
+
});
|
|
1562
|
+
}
|
|
1563
|
+
return undefined;
|
|
1564
|
+
};
|
|
1565
|
+
const options = getOptions();
|
|
1566
|
+
const newData = RADAdapter(currentValue, options);
|
|
1567
|
+
if (options) {
|
|
1568
|
+
return newData;
|
|
1569
|
+
}
|
|
1570
|
+
return cell.data;
|
|
1480
1571
|
}, _KupInputPanel_SWTAdapter = function _KupInputPanel_SWTAdapter(_options, fieldLabel, currentValue) {
|
|
1481
1572
|
return SWTAdapter(currentValue, fieldLabel);
|
|
1482
1573
|
}, _KupInputPanel_DateAdapter = function _KupInputPanel_DateAdapter(_options, fieldLabel, currentValue) {
|
|
@@ -1500,6 +1591,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1500
1591
|
leadingLabel: fieldLabel || '',
|
|
1501
1592
|
value: currentValue || '',
|
|
1502
1593
|
};
|
|
1594
|
+
}, _KupInputPanel_FileUploadAdapter = function _KupInputPanel_FileUploadAdapter(_options, _fieldLabel, currentValue, cell) {
|
|
1595
|
+
return Object.assign({ pathString: currentValue }, cell.data);
|
|
1503
1596
|
}, _KupInputPanel_TimeAdapter = function _KupInputPanel_TimeAdapter(_options, fieldLabel, currentValue) {
|
|
1504
1597
|
return {
|
|
1505
1598
|
data: {
|
|
@@ -1606,7 +1699,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1606
1699
|
: [],
|
|
1607
1700
|
});
|
|
1608
1701
|
});
|
|
1609
|
-
},
|
|
1702
|
+
}, _KupInputPanel_tableCMBandACPOptionsAdapter = function _KupInputPanel_tableCMBandACPOptionsAdapter(options, currentValue) {
|
|
1610
1703
|
return options.rows.map((row) => {
|
|
1611
1704
|
const cells = row.fields || row.cells;
|
|
1612
1705
|
const [id, value] = Object.keys(cells);
|
|
@@ -1648,6 +1741,70 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1648
1741
|
}
|
|
1649
1742
|
detail.comp.refresh();
|
|
1650
1743
|
});
|
|
1744
|
+
}, _KupInputPanel_getTblAutocompleteEventCallback = function _KupInputPanel_getTblAutocompleteEventCallback(detail) {
|
|
1745
|
+
// Destructure frequently used properties
|
|
1746
|
+
const { cell, row, column, comp, id, event } = detail;
|
|
1747
|
+
const cellValue = cell === null || cell === void 0 ? void 0 : cell.value;
|
|
1748
|
+
const autocompleteEventDetail = detail.event.detail;
|
|
1749
|
+
try {
|
|
1750
|
+
this.optionsHandler(cell['fun'], autocompleteEventDetail.inputValue, { columns: comp.data.columns, rows: [row] }, column.name).then((options) => {
|
|
1751
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1752
|
+
// Filter visible columns
|
|
1753
|
+
if (options) {
|
|
1754
|
+
const visibleColumns = ((_a = options === null || options === void 0 ? void 0 : options.columns) !== null && _a !== void 0 ? _a : [])
|
|
1755
|
+
.filter((col) => (col === null || col === void 0 ? void 0 : col.visible) !== false)
|
|
1756
|
+
.map((col) => col.name);
|
|
1757
|
+
// Filter rows to only include visible columns
|
|
1758
|
+
const filteredRows = (_c = (_b = options === null || options === void 0 ? void 0 : options.rows) === null || _b === void 0 ? void 0 : _b.map((rowData) => {
|
|
1759
|
+
const visibleCells = visibleColumns.reduce((acc, colName) => {
|
|
1760
|
+
if (rowData.cells[colName]) {
|
|
1761
|
+
acc[colName] = rowData.cells[colName];
|
|
1762
|
+
}
|
|
1763
|
+
return acc;
|
|
1764
|
+
}, {});
|
|
1765
|
+
return Object.assign(Object.assign({}, rowData), { cells: visibleCells });
|
|
1766
|
+
})) !== null && _c !== void 0 ? _c : [];
|
|
1767
|
+
// Prepare the final options with filtered data
|
|
1768
|
+
const visibleColumnsOptions = Object.assign(Object.assign({}, options), { rows: filteredRows });
|
|
1769
|
+
// Get and update table data
|
|
1770
|
+
const tableData = comp.data;
|
|
1771
|
+
const targetCell = tableData.rows[row.id].cells[column.name];
|
|
1772
|
+
// Initialize cell data structure if needed
|
|
1773
|
+
if (!((_e = (_d = targetCell.data) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e['kup-list'])) {
|
|
1774
|
+
targetCell.data = {
|
|
1775
|
+
data: {
|
|
1776
|
+
'kup-list': {},
|
|
1777
|
+
'kup-text-field': Object.assign({}, targetCell.data),
|
|
1778
|
+
},
|
|
1779
|
+
};
|
|
1780
|
+
}
|
|
1781
|
+
// Update the autocomplete list data
|
|
1782
|
+
const kupListData = targetCell.data.data['kup-list'];
|
|
1783
|
+
kupListData.data = filteredRows.length
|
|
1784
|
+
? (_f = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, visibleColumnsOptions, cellValue)) !== null && _f !== void 0 ? _f : []
|
|
1785
|
+
: [];
|
|
1786
|
+
kupListData.options = (_g = options.columns) !== null && _g !== void 0 ? _g : [];
|
|
1787
|
+
// Update the component data and refresh
|
|
1788
|
+
comp.data = tableData;
|
|
1789
|
+
this.data.rows[0].cells[id].value =
|
|
1790
|
+
JSON.stringify(tableData);
|
|
1791
|
+
// // Refresh components
|
|
1792
|
+
event.detail.comp.refresh();
|
|
1793
|
+
comp.refresh();
|
|
1794
|
+
}
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
catch (error) {
|
|
1798
|
+
console.error('Error in autocomplete callback:', error);
|
|
1799
|
+
}
|
|
1800
|
+
}, _KupInputPanel_manageTblItemClick = function _KupInputPanel_manageTblItemClick(e) {
|
|
1801
|
+
const { cell, row, column, id, comp } = e.detail;
|
|
1802
|
+
const tableData = comp.data;
|
|
1803
|
+
tableData.rows[row.id].cells[column.name] = cell;
|
|
1804
|
+
comp.data = tableData;
|
|
1805
|
+
this.data.rows[0].cells[id].value = JSON.stringify(tableData);
|
|
1806
|
+
e.detail.event.detail.comp.refresh();
|
|
1807
|
+
comp.refresh();
|
|
1651
1808
|
}, _KupInputPanel_manageInputPanelCheck = async function _KupInputPanel_manageInputPanelCheck(e, eventType) {
|
|
1652
1809
|
var _a, _b, _c, _d, _e;
|
|
1653
1810
|
const { detail: { column, cell }, } = e;
|
|
@@ -1847,4 +2004,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1847
2004
|
return;
|
|
1848
2005
|
}
|
|
1849
2006
|
(_b = inputElements[currentInputElementIndex + 1].HTMLInputElement) === null || _b === void 0 ? void 0 : _b.focus();
|
|
2007
|
+
}, _KupInputPanel_upload = function _KupInputPanel_upload(e) {
|
|
2008
|
+
e.stopPropagation();
|
|
2009
|
+
this.kupCellUpload.emit(e.detail);
|
|
1850
2010
|
};
|
|
@@ -108,39 +108,39 @@ export class KupLazy {
|
|
|
108
108
|
switch (this.componentName) {
|
|
109
109
|
case 'kup-button':
|
|
110
110
|
//call_to_action.svg
|
|
111
|
-
resource = (h("svg", { key: '
|
|
111
|
+
resource = (h("svg", { key: '82d1c572d3d994d79f682a81484c140ca6cfd512', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '5bef88d3b797414102e78e45a03c3b94c9f3255d', 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" })));
|
|
112
112
|
break;
|
|
113
113
|
case 'kup-card':
|
|
114
114
|
//art_track.svg
|
|
115
|
-
resource = (h("svg", { key: '
|
|
115
|
+
resource = (h("svg", { key: '7513b2807db3c80a1bf40c06afcc9368e6fdb294', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '5e527bd9fbcae6e3ee52e84a4fb67b476c154f10', 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" })));
|
|
116
116
|
break;
|
|
117
117
|
case 'kup-checkbox':
|
|
118
118
|
//check_box_outline_blank.svg
|
|
119
|
-
resource = (h("svg", { key: '
|
|
119
|
+
resource = (h("svg", { key: '5475f432000e828ec98dcb4eadbf7112d7c20861', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '954ddd01b7398bf0989d134a69254f448221bfb7', 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" })));
|
|
120
120
|
break;
|
|
121
121
|
case 'kup-chart':
|
|
122
122
|
//chart-bar.svg
|
|
123
|
-
resource = (h("svg", { key: '
|
|
123
|
+
resource = (h("svg", { key: 'a42af94d1f6c0c5adab4eade6af3813ad05e7b63', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: 'e296f6c9fffb236c8aad51403237745e03994e9e', d: "M22,21H2V3H4V19H6V10H10V19H12V6H16V19H18V14H22V21Z" })));
|
|
124
124
|
break;
|
|
125
125
|
case 'kup-data-table':
|
|
126
126
|
//table-large.svg
|
|
127
|
-
resource = (h("svg", { key: '
|
|
127
|
+
resource = (h("svg", { key: '6f755edd48a59c2857dc6d8935909faf648d9a03', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '6951d2f06986b335eea5bef530c7a4bf9aa311ab', 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" })));
|
|
128
128
|
break;
|
|
129
129
|
case 'kup-image':
|
|
130
130
|
//photo.svg
|
|
131
|
-
resource = (h("svg", { key: '
|
|
131
|
+
resource = (h("svg", { key: 'e4de60a5e5d48cb7726b88abf06b7bc5c889d422', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '63ffecb16ce4107ac9ffbfbad8cd655e34e900f3', 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" })));
|
|
132
132
|
break;
|
|
133
133
|
case 'kup-progress-bar':
|
|
134
134
|
//linear_scale.svg
|
|
135
|
-
resource = (h("svg", { key: '
|
|
135
|
+
resource = (h("svg", { key: 'b8e2b4a9382a3e9483da1f0efbbef9566b8f39ab', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '339f3815ac768a03ad3b8ba78d6bce5c6879402d', 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" })));
|
|
136
136
|
break;
|
|
137
137
|
case 'kup-radio':
|
|
138
138
|
//radio_button_unchecked.svg
|
|
139
|
-
resource = (h("svg", { key: '
|
|
139
|
+
resource = (h("svg", { key: '15c32aad0b8ff81e43a869c14de3872ab4a608ff', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'd4388b9681629f14c0c4c385448ed4765cc92a9e', 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" })));
|
|
140
140
|
break;
|
|
141
141
|
default:
|
|
142
142
|
//art_track.svg
|
|
143
|
-
resource = (h("svg", { key: '
|
|
143
|
+
resource = (h("svg", { key: '132ad10f47b212eac81a40954eb7b5f0fe46ff85', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '45015c39db68faa73d2ee7398f55137880277146', 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" })));
|
|
144
144
|
break;
|
|
145
145
|
}
|
|
146
146
|
if ((this.renderMode === KupLazyRender.VIEWPORT && this.isInViewport) ||
|
|
@@ -149,14 +149,14 @@ export class KupLazy {
|
|
|
149
149
|
this.data &&
|
|
150
150
|
this.isInViewport)) {
|
|
151
151
|
let Tag = this.componentName;
|
|
152
|
-
content = (h(Tag, Object.assign({ key: '
|
|
152
|
+
content = (h(Tag, Object.assign({ key: '872b8eb5d96b68cfcd1e4900bfca772bab11ab3a' }, this.data, { ref: (el) => (this.lazyComponent = el) })));
|
|
153
153
|
className += ' kup-loaded';
|
|
154
154
|
}
|
|
155
155
|
else if (this.showPlaceholder) {
|
|
156
156
|
content = resource;
|
|
157
157
|
className += ' kup-to-be-loaded';
|
|
158
158
|
}
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '9c1dbf24aa0e68330251b4e9a35e17c7a9e23539', class: className }, h("style", { key: 'e74a571399d27dcac499e341dd6e19535e66f1c2' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '6aaca6cb575a7662770bb31abf1883ca96a7c543', id: componentWrapperId }, content)));
|
|
160
160
|
}
|
|
161
161
|
disconnectedCallback() {
|
|
162
162
|
var _a;
|
|
@@ -263,11 +263,11 @@ export class KupMagicBox {
|
|
|
263
263
|
this.kupManager.debug.logRender(this, true);
|
|
264
264
|
}
|
|
265
265
|
render() {
|
|
266
|
-
return (h(Host, { key: '
|
|
266
|
+
return (h(Host, { key: '76b8180fd4034de65e028b585a4fb002c8bcdfca' }, h("style", { key: '9ba35b5e148e6e50d8a9f830f5db48612581e69b' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'a3d292ce29fa8539e9c66275ac569c28cf3a54e1', id: componentWrapperId }, h("div", { key: 'fa29976b5702fedb46d7d91b618f2231ae7ddef1', class: "magic-box-wrapper" }, h("div", { key: '7f61c00fce84bcf7f36b8c47fe69fd5556aee41f', class: "actions", id: "drag-handle" }, h("kup-combobox", Object.assign({ key: '5f5aa592fe3eaf815677f238064425857d0b2f7a' }, this.comboboxProps())), h("kup-button", { key: '3708c650c5e31029f801386565bba2a1ccfc0e43', styling: FButtonStyling.FLAT, icon: "delete", label: "Reset", "onkup-button-click": () => {
|
|
267
267
|
this.data = null;
|
|
268
|
-
} }), h("kup-button", { key: '
|
|
268
|
+
} }), h("kup-button", { key: '9306931f703349e28310daaeaf82f126bdaf94ad', id: "close-dialog", customStyle: `:host{${KupThemeColorValues.PRIMARY}: var(${KupThemeColorValues.TITLE});}`, icon: "clear", "onkup-button-click": () => {
|
|
269
269
|
this.kupManager.hideMagicBox();
|
|
270
|
-
} })), h("div", { key: '
|
|
270
|
+
} })), h("div", { key: '560c6c700d9e4699ac3c800d36648a16afdcff8f', class: "content", ref: (el) => (this.wrapperRef = el) }, this.setContent())))));
|
|
271
271
|
}
|
|
272
272
|
disconnectedCallback() {
|
|
273
273
|
this.kupManager.interact.unregister([
|
|
@@ -98,7 +98,7 @@ export class KupNavBar {
|
|
|
98
98
|
this.kupManager.debug.logRender(this, true);
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: 'dcdc392d8ec19c3ddb52ce654bf90f60796aa0da', class: "header" }, h("style", { key: 'c5633275f41d89e7dbd3058e5ec66218c896ee2b' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'ba15568ef90710d4d95d46cd1cc8ecdf728cf430', id: componentWrapperId }, h("header", { key: 'a0af5b7234bd7eef6e85a7d06aef9c26e3f7abed', class: `${navbarClass} ${navbarClass}--${this.styling.toLowerCase()} ` }, h("div", { key: '362841f2ab4d775e8d2e950adcd53ec8cd3be565', class: `${navbarClass}__row` }, this.content())))));
|
|
102
102
|
}
|
|
103
103
|
disconnectedCallback() {
|
|
104
104
|
this.kupManager.language.unregister(this);
|
|
@@ -321,7 +321,7 @@ export class KupNumericPicker {
|
|
|
321
321
|
this.kupManager.debug.logRender(this, true);
|
|
322
322
|
}
|
|
323
323
|
render() {
|
|
324
|
-
return (h(Host, { key: '
|
|
324
|
+
return (h(Host, { key: '9e001513a9402a9c840d21a5a76b641784b1fac6' }, h("style", { key: 'b7a7783eecb0c775f0b5bc972e0683f59be394a3' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '45467aed59b8f4f24597cb7e7cbf7ae94856fbba', id: componentWrapperId }, this.prepTextfield())));
|
|
325
325
|
}
|
|
326
326
|
disconnectedCallback() {
|
|
327
327
|
this.kupManager.dates.unregister(this);
|
|
@@ -79,7 +79,7 @@ export class KupObjectField {
|
|
|
79
79
|
inputValue: this.inputValue,
|
|
80
80
|
onChange: null,
|
|
81
81
|
};
|
|
82
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: 'bd9185b4bec628e4d5b9f8f12d1fd5bf2450cd42' }, h("style", { key: '51eb6f40a02581178ca4056781fa09af8d317ea1' }, __classPrivateFieldGet(this, _KupObjectField_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '3ca583dc21c02be577ff43ecefd3616f102dc0a4', id: componentWrapperId }, h(FObjectField, Object.assign({ key: '2455ce8729ce87a4445883ed0e7763eef31b7f90' }, props)))));
|
|
83
83
|
}
|
|
84
84
|
disconnectedCallback() {
|
|
85
85
|
__classPrivateFieldGet(this, _KupObjectField_kupManager, "f").theme.unregister(this);
|
|
@@ -105,7 +105,7 @@ export class KupPdf {
|
|
|
105
105
|
catch (error) { }
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '1f04063ce0d949cd00d384678c19adf794312057' }, h("div", { key: '5173ada8185dc56b0638c4038e915f549f2c991f', id: componentWrapperId, ref: (el) => (this.wrapperRef = el) })));
|
|
109
109
|
}
|
|
110
110
|
disconnectedCallback() {
|
|
111
111
|
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.unregister(this);
|
|
@@ -523,7 +523,7 @@ export class KupPlanner {
|
|
|
523
523
|
if ((_b = this.plannerProps) === null || _b === void 0 ? void 0 : _b.secondaryGantt) {
|
|
524
524
|
plannerProps.secondaryGantt = Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { onScrollY: this.handleDetailGanttScrollY.bind(this) });
|
|
525
525
|
}
|
|
526
|
-
return (h(Host, { key: '
|
|
526
|
+
return (h(Host, { key: 'ed62d6c7e75169f47cb83311fb28827da0afe0ca' }, h("style", { key: '422a78066f27c04c488750ac66b9f4c10d0211c9' }, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '4122f3114a4e24119551e2724790c15c2eead874', id: componentWrapperId, style: { maxWidth: this.maxWidth } }, this.plannerProps && (h("kup-planner-renderer", { key: '20afe8320d1439bf34942faab0a5a107498fc373', props: plannerProps, ref: (el) => (this.plannerRenderer = el) }))), h("div", { key: '5ed8092953f35078fd5bdaa84d8ce9d8a7cae6bd', style: { display: this.plannerProps ? 'none' : '' } }, h(FTextField, { key: '38a860e8afdf0ce1e048211622a5280986dbccb8', icon: KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), onKeyDown: (e) => {
|
|
527
527
|
if (e.key === 'Enter') {
|
|
528
528
|
__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value);
|
|
529
529
|
}
|
|
@@ -8,11 +8,11 @@ export class KupCustomTaskListHeader {
|
|
|
8
8
|
this.fontSize = undefined;
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h("div", { key: '
|
|
11
|
+
return (h("div", { key: '73c099362f8bfffd1912c4415f818ec0e3f527d9', class: "custom-task-list-wrapper", style: {
|
|
12
12
|
height: '25px',
|
|
13
13
|
fontFamily: this.fontFamily,
|
|
14
14
|
fontSize: this.fontSize,
|
|
15
|
-
} }, h("div", { key: '
|
|
15
|
+
} }, h("div", { key: 'd8e4e9d3323c7fd476295b6fcb81354a7af6d076', class: "title" }, h("span", { key: '26c697a8d3c453ad2f8dc17aced9c90af15fabd5' }, this.label)), this.setDoubleView !== undefined && (h("div", { key: '52d6dc0de21e77aecaac420c51c4b368c81dac33', class: "toggler" }, h("label", { key: 'f680cd1356907075f76245b1ae6b5885595f1205', htmlFor: "ch2", class: "switch" }, h("input", { key: 'b3111df49ce385f294d9050f61d534ccabc22047', class: "input", id: "ch2", type: "checkbox", checked: this.doubleView, onClick: () => this.setDoubleView(!this.doubleView) }), h("span", { key: '75ea0aef920da62c94749d3bd2ef2fa029e5d1d8', class: "slider" })), h("span", { key: '1a31bbb00ebb13d1943ed8620ea1d3569da8cc06', class: "label" }, "Previsioni")))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "kup-custom-task-list-header"; }
|
|
18
18
|
static get originalStyleUrls() {
|
|
@@ -563,9 +563,9 @@ export class KupGantt {
|
|
|
563
563
|
TaskListHeader: this.TaskListHeader,
|
|
564
564
|
TaskListTable: this.TaskListTable
|
|
565
565
|
};
|
|
566
|
-
return (h("div", { key: '
|
|
566
|
+
return (h("div", { key: '4736e4cf20dd8123991c6407053d6bf63b3895e3', class: "gannt-wrapper-main" }, h("div", { key: '9e6c79472018cf176e6ff854f088c51a9f0dd31d', class: "wrapper", onKeyDown: this.handleKeyDown.bind(this), tabIndex: 0, ref: (el) => (this.wrapperRef = el) }, this.listCellWidth && (h("kup-task-list", Object.assign({ key: '916157b026b48ef1ebc1ab893fe032f6b71fb2d2', 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) => {
|
|
567
567
|
this.taskListScrollWidth = width;
|
|
568
|
-
}, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '
|
|
568
|
+
}, taskListScrollX: this.taskListScrollX, ref: (el) => (this.taskListTrueRef = el) }))), h("kup-task-gantt", { key: '839ae03ea863d3be1c041e73622d7eb2f9b7120a', 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: 'b09acf310161f6fba7eb0e91de6ba53c31d43d40', 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: '756d1a3866665286e3c49c78e634ea8664f7da75', 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: '73c8b8e4fd4ae1502287c724094e690995cb509f', 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 }))));
|
|
569
569
|
}
|
|
570
570
|
static get is() { return "kup-gantt"; }
|
|
571
571
|
static get originalStyleUrls() {
|
package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js
CHANGED
|
@@ -225,11 +225,11 @@ export class KupGanttCalendar {
|
|
|
225
225
|
this.simplifiedHeader =
|
|
226
226
|
this.singleLineHeader && this.dateSetup.viewMode !== 'year';
|
|
227
227
|
const [topValues, bottomValues] = this.getTopAndBottomValues();
|
|
228
|
-
return (h("svg", { key: '
|
|
228
|
+
return (h("svg", { key: '746671a52e6654cd1ff1789c76e25d0aa8f3905b', xmlns: "http://www.w3.org/2000/svg", width: this.svgWidth, height: this.headerHeight }, h("g", { key: '74a463a10c7124779eb5aa313bca389591fc131b', class: "calendar", "font-size": this.fontSize, "font-family": this.fontFamily }, h("rect", { key: 'e8a8a2b86f963588af95a8a829993e5757b638cb', x: 0, y: 0, width: this.columnWidth * this.dateSetup.dates.length, height: this.headerHeight, class: "calendarHeader" }), this.simplifiedHeader ? null : bottomValues, this.simplifiedHeader
|
|
229
229
|
? 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))))
|
|
230
230
|
: 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 && (
|
|
231
231
|
// current date indicator
|
|
232
|
-
h("circle", { key: '
|
|
232
|
+
h("circle", { key: '40cca30be82870be76d4ceaba428bf91bca3d515', fill: this.currentDateIndicator.color, cx: this.currentDateIndicator.x + 2.5, cy: this.headerHeight - 8, r: "8" })))));
|
|
233
233
|
}
|
|
234
234
|
static get is() { return "kup-gantt-calendar"; }
|
|
235
235
|
static get originalStyleUrls() {
|