@sme.up/ketchup 11.0.0-SNAPSHOT-20241021152842 → 11.0.0-SNAPSHOT-20241023072631
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-5272e2de.js → f-cell-95f965f3.js} +31 -4
- package/dist/cjs/f-cell-95f965f3.js.map +1 -0
- package/dist/cjs/{f-chip-ff8a106d.js → f-chip-cb102c29.js} +2 -2
- package/dist/cjs/{f-chip-ff8a106d.js.map → f-chip-cb102c29.js.map} +1 -1
- package/dist/cjs/{f-paginator-utils-bed2036b.js → f-paginator-utils-da6cd873.js} +2 -2
- package/dist/cjs/{f-paginator-utils-bed2036b.js.map → f-paginator-utils-da6cd873.js.map} +1 -1
- package/dist/cjs/{f-text-field-efb2710c.js → f-text-field-a8db3416.js} +2 -2
- package/dist/cjs/{f-text-field-efb2710c.js.map → f-text-field-a8db3416.js.map} +1 -1
- package/dist/cjs/index.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_27.cjs.entry.js +54 -54
- package/dist/cjs/kup-box.cjs.entry.js +6 -6
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +21 -27
- package/dist/cjs/kup-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +7 -7
- package/dist/cjs/kup-dashboard.cjs.entry.js +3 -3
- package/dist/cjs/{kup-data-table-helper-7195d292.js → kup-data-table-helper-ecda1d0f.js} +2 -2
- package/dist/cjs/{kup-data-table-helper-7195d292.js.map → kup-data-table-helper-ecda1d0f.js.map} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-editor.cjs.entry.js +2 -2
- package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
- 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-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +7 -7
- package/dist/cjs/kup-input-panel.cjs.entry.js +13 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- 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-17968474.js → kup-manager-3e7452e3.js} +7 -1
- package/dist/cjs/kup-manager-3e7452e3.js.map +1 -0
- 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-pdf.cjs.entry.js +2 -2
- package/dist/cjs/kup-photo-frame.cjs.entry.js +3 -3
- 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-typography-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-typography.cjs.entry.js +2 -2
- package/dist/collection/components/kup-cell/kup-cell.js +18 -4
- package/dist/collection/components/kup-cell/kup-cell.js.map +1 -1
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +1 -1
- package/dist/collection/components/kup-chip/kup-chip.js +2 -2
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +2 -2
- package/dist/collection/components/kup-combobox/kup-combobox.js +1 -1
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +1 -1
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +1 -1
- package/dist/collection/components/kup-dialog/kup-dialog.js +1 -1
- package/dist/collection/components/kup-drawer/kup-drawer.js +2 -2
- package/dist/collection/components/kup-echart/kup-echart.js +1 -1
- package/dist/collection/components/kup-editor/kup-editor.js +1 -1
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +2 -2
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-image-list/kup-image-list.js +3 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +9 -2
- 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-typography/kup-typography.js +1 -1
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +4 -0
- package/dist/collection/f-components/f-cell/f-cell-declarations.js.map +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +28 -1
- package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js +1 -19
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js.map +1 -1
- package/dist/collection/managers/kup-data/kup-data-declarations.js.map +1 -1
- package/dist/collection/managers/kup-data/kup-data.js +2 -0
- package/dist/collection/managers/kup-data/kup-data.js.map +1 -1
- package/dist/components/custom-task-list-header.js +2 -2
- package/dist/components/kup-autocomplete2.js +76 -49
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/components/kup-cell.js +18 -24
- package/dist/components/kup-cell.js.map +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-echart2.js +1 -1
- package/dist/components/kup-editor2.js +1 -1
- package/dist/components/kup-family-tree.js +2 -2
- 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-image-list.js +3 -3
- package/dist/components/kup-input-panel.js +9 -2
- 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-manager.js +6 -0
- package/dist/components/kup-manager.js.map +1 -1
- package/dist/components/kup-nav-bar.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-pdf.js +1 -1
- package/dist/components/kup-photo-frame.js +2 -2
- package/dist/components/kup-planner-renderer2.js +2 -2
- package/dist/components/kup-planner.js +1 -1
- package/dist/components/kup-probe.js +1 -1
- package/dist/components/kup-qlik.js +1 -1
- package/dist/components/kup-snackbar.js +1 -1
- package/dist/components/kup-standard-tooltip2.js +1 -1
- package/dist/components/kup-switcher2.js +1 -1
- package/dist/components/kup-task-gantt2.js +2 -2
- package/dist/components/kup-task-list-header2.js +7 -7
- package/dist/components/kup-task-list-table2.js +1 -1
- package/dist/components/kup-task-list2.js +1 -1
- package/dist/components/kup-tooltip2.js +1 -1
- package/dist/components/kup-typography-list.js +1 -1
- package/dist/components/kup-typography.js +1 -1
- package/dist/components/kup-vertical-scroll2.js +2 -2
- package/dist/esm/{f-cell-3cb0880d.js → f-cell-c813c70c.js} +31 -4
- package/dist/esm/f-cell-c813c70c.js.map +1 -0
- package/dist/esm/{f-chip-430788ed.js → f-chip-4a35f0f8.js} +2 -2
- package/dist/esm/{f-chip-430788ed.js.map → f-chip-4a35f0f8.js.map} +1 -1
- package/dist/esm/{f-paginator-utils-af689207.js → f-paginator-utils-4e6a69f6.js} +2 -2
- package/dist/esm/{f-paginator-utils-af689207.js.map → f-paginator-utils-4e6a69f6.js.map} +1 -1
- package/dist/esm/{f-text-field-b294c1bd.js → f-text-field-a7ef5d61.js} +2 -2
- package/dist/esm/{f-text-field-b294c1bd.js.map → f-text-field-a7ef5d61.js.map} +1 -1
- package/dist/esm/index.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_27.entry.js +54 -54
- package/dist/esm/kup-box.entry.js +6 -6
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +21 -27
- package/dist/esm/kup-cell.entry.js.map +1 -1
- package/dist/esm/kup-custom-task-list-header_4.entry.js +7 -7
- package/dist/esm/kup-dashboard.entry.js +3 -3
- package/dist/esm/{kup-data-table-helper-62971b64.js → kup-data-table-helper-9913aac7.js} +2 -2
- package/dist/esm/{kup-data-table-helper-62971b64.js.map → kup-data-table-helper-9913aac7.js.map} +1 -1
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-editor.entry.js +2 -2
- package/dist/esm/kup-family-tree.entry.js +3 -3
- package/dist/esm/kup-gantt_10.entry.js +23 -23
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +7 -7
- package/dist/esm/kup-input-panel.entry.js +13 -6
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-11e9e4eb.js → kup-manager-669cda17.js} +8 -2
- package/dist/esm/kup-manager-669cda17.js.map +1 -0
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-pdf.entry.js +2 -2
- package/dist/esm/kup-photo-frame.entry.js +3 -3
- 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-typography-list.entry.js +2 -2
- package/dist/esm/kup-typography.entry.js +2 -2
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-659307e0.entry.js → p-06651510.entry.js} +2 -2
- package/dist/ketchup/{p-c5ef1391.entry.js → p-07ab58b7.entry.js} +2 -2
- package/dist/ketchup/{p-08887d7c.entry.js → p-07af0f44.entry.js} +2 -2
- package/dist/ketchup/{p-c315790c.js → p-13b2ca2d.js} +2 -2
- package/dist/ketchup/{p-8412389c.entry.js → p-13f4b18e.entry.js} +3 -3
- package/dist/ketchup/{p-bf7e2ff2.entry.js → p-1460050d.entry.js} +2 -2
- package/dist/ketchup/{p-4c05394a.entry.js → p-19c0491c.entry.js} +2 -2
- package/dist/ketchup/p-1ac6a21a.entry.js +2 -0
- package/dist/ketchup/{p-d4c15514.entry.js.map → p-1ac6a21a.entry.js.map} +1 -1
- package/dist/ketchup/{p-4ffbef91.entry.js → p-22d4016a.entry.js} +2 -2
- package/dist/ketchup/{p-56b44f04.js → p-26030fba.js} +3 -3
- package/dist/ketchup/p-26030fba.js.map +1 -0
- package/dist/ketchup/{p-97439fd2.entry.js → p-398b13ca.entry.js} +2 -2
- package/dist/ketchup/{p-a2f84ab4.entry.js → p-42582605.entry.js} +2 -2
- package/dist/ketchup/{p-0c11594e.js → p-50e5a990.js} +2 -2
- package/dist/ketchup/{p-bf1b9843.entry.js → p-547ce22c.entry.js} +2 -2
- package/dist/ketchup/{p-16f61690.entry.js → p-5fef2650.entry.js} +2 -2
- package/dist/ketchup/{p-21c0de7e.entry.js → p-68be312f.entry.js} +2 -2
- package/dist/ketchup/{p-f9367d09.entry.js → p-6f3846da.entry.js} +3 -3
- package/dist/ketchup/p-7285b1b3.entry.js +2 -0
- package/dist/ketchup/p-7285b1b3.entry.js.map +1 -0
- package/dist/ketchup/p-812c59be.js +2 -0
- package/dist/ketchup/p-812c59be.js.map +1 -0
- package/dist/ketchup/{p-9fcf4425.entry.js → p-9586b234.entry.js} +2 -2
- package/dist/ketchup/{p-8a77b0b2.entry.js → p-99de1bea.entry.js} +2 -2
- package/dist/ketchup/{p-7c623aa3.entry.js → p-9ab7218f.entry.js} +2 -2
- package/dist/ketchup/{p-d80192a9.js → p-a0dce50f.js} +2 -2
- package/dist/ketchup/{p-203cb58a.entry.js → p-a7e1edb6.entry.js} +3 -3
- package/dist/ketchup/p-ac894b67.entry.js +2 -0
- package/dist/ketchup/p-ac894b67.entry.js.map +1 -0
- package/dist/ketchup/{p-188edcd5.entry.js → p-ac90237a.entry.js} +2 -2
- package/dist/ketchup/{p-1c22c2cd.entry.js → p-ada5beae.entry.js} +2 -2
- package/dist/ketchup/{p-9524e01d.entry.js → p-aefbe2a4.entry.js} +2 -2
- package/dist/ketchup/{p-ed3c5848.entry.js → p-bd9b1a39.entry.js} +3 -3
- package/dist/ketchup/{p-b2bf0eab.entry.js → p-c85be66a.entry.js} +2 -2
- package/dist/ketchup/{p-22441167.entry.js → p-ca5d792d.entry.js} +2 -2
- package/dist/ketchup/{p-6415175b.js → p-cc1abfc4.js} +2 -2
- package/dist/ketchup/{p-e921b455.entry.js → p-ce2c3d02.entry.js} +2 -2
- package/dist/ketchup/{p-745037f2.entry.js → p-e8dc8c8f.entry.js} +2 -2
- package/dist/ketchup/{p-529632c9.entry.js → p-ecd177b6.entry.js} +2 -2
- package/dist/ketchup/{p-8fe82d0e.entry.js → p-ed400b83.entry.js} +2 -2
- package/dist/ketchup/{p-b65b747c.entry.js → p-fd60c779.entry.js} +3 -3
- package/dist/types/components/kup-cell/kup-cell.d.ts +1 -0
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +3 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/f-cell-5272e2de.js.map +0 -1
- package/dist/cjs/kup-manager-17968474.js.map +0 -1
- package/dist/esm/f-cell-3cb0880d.js.map +0 -1
- package/dist/esm/kup-manager-11e9e4eb.js.map +0 -1
- package/dist/ketchup/p-0f20e19f.entry.js +0 -2
- package/dist/ketchup/p-0f20e19f.entry.js.map +0 -1
- package/dist/ketchup/p-56b44f04.js.map +0 -1
- package/dist/ketchup/p-771d6f8b.entry.js +0 -2
- package/dist/ketchup/p-771d6f8b.entry.js.map +0 -1
- package/dist/ketchup/p-80896d21.js +0 -2
- package/dist/ketchup/p-80896d21.js.map +0 -1
- package/dist/ketchup/p-d4c15514.entry.js +0 -2
- /package/dist/ketchup/{p-659307e0.entry.js.map → p-06651510.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c5ef1391.entry.js.map → p-07ab58b7.entry.js.map} +0 -0
- /package/dist/ketchup/{p-08887d7c.entry.js.map → p-07af0f44.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c315790c.js.map → p-13b2ca2d.js.map} +0 -0
- /package/dist/ketchup/{p-8412389c.entry.js.map → p-13f4b18e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-bf7e2ff2.entry.js.map → p-1460050d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4c05394a.entry.js.map → p-19c0491c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4ffbef91.entry.js.map → p-22d4016a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-97439fd2.entry.js.map → p-398b13ca.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a2f84ab4.entry.js.map → p-42582605.entry.js.map} +0 -0
- /package/dist/ketchup/{p-0c11594e.js.map → p-50e5a990.js.map} +0 -0
- /package/dist/ketchup/{p-bf1b9843.entry.js.map → p-547ce22c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-16f61690.entry.js.map → p-5fef2650.entry.js.map} +0 -0
- /package/dist/ketchup/{p-21c0de7e.entry.js.map → p-68be312f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f9367d09.entry.js.map → p-6f3846da.entry.js.map} +0 -0
- /package/dist/ketchup/{p-9fcf4425.entry.js.map → p-9586b234.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8a77b0b2.entry.js.map → p-99de1bea.entry.js.map} +0 -0
- /package/dist/ketchup/{p-7c623aa3.entry.js.map → p-9ab7218f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d80192a9.js.map → p-a0dce50f.js.map} +0 -0
- /package/dist/ketchup/{p-203cb58a.entry.js.map → p-a7e1edb6.entry.js.map} +0 -0
- /package/dist/ketchup/{p-188edcd5.entry.js.map → p-ac90237a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-1c22c2cd.entry.js.map → p-ada5beae.entry.js.map} +0 -0
- /package/dist/ketchup/{p-9524e01d.entry.js.map → p-aefbe2a4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-ed3c5848.entry.js.map → p-bd9b1a39.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b2bf0eab.entry.js.map → p-c85be66a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-22441167.entry.js.map → p-ca5d792d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-6415175b.js.map → p-cc1abfc4.js.map} +0 -0
- /package/dist/ketchup/{p-e921b455.entry.js.map → p-ce2c3d02.entry.js.map} +0 -0
- /package/dist/ketchup/{p-745037f2.entry.js.map → p-e8dc8c8f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-529632c9.entry.js.map → p-ecd177b6.entry.js.map} +0 -0
- /package/dist/ketchup/{p-8fe82d0e.entry.js.map → p-ed400b83.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b65b747c.entry.js.map → p-fd60c779.entry.js.map} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -130,7 +130,7 @@ const KupNavBar = class {
|
|
|
130
130
|
this.kupManager.debug.logRender(this, true);
|
|
131
131
|
}
|
|
132
132
|
render() {
|
|
133
|
-
return (index.h(index.Host, { key: '
|
|
133
|
+
return (index.h(index.Host, { key: '4d4f9e7c1effd4944e9732513345478f3c876b29', class: "header" }, index.h("style", { key: 'f376e18912a0c61ba9af4aa364281496422ff443' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '221df292e1b1d06b5c904fbea6f6bb96bc735ad5', id: GenericVariables.componentWrapperId }, index.h("header", { key: '6186397fbe6d1310f141adf4c4d2678be596f7d1', class: `${navbarClass} ${navbarClass}--${this.styling.toLowerCase()} ` }, index.h("div", { key: '5386ec16eaba87807ac86878e0226b1158c44811', class: `${navbarClass}__row` }, this.content())))));
|
|
134
134
|
}
|
|
135
135
|
disconnectedCallback() {
|
|
136
136
|
this.kupManager.language.unregister(this);
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
|
-
const fTextField = require('./f-text-field-
|
|
8
|
+
const fTextField = require('./f-text-field-a8db3416.js');
|
|
9
9
|
const fTextFieldMdc = require('./f-text-field-mdc-2a3c8c01.js');
|
|
10
10
|
require('./kup-dates-3fc9697c.js');
|
|
11
11
|
require('./f-image-8dbf27a2.js');
|
|
@@ -355,7 +355,7 @@ const KupNumericPicker = class {
|
|
|
355
355
|
this.kupManager.debug.logRender(this, true);
|
|
356
356
|
}
|
|
357
357
|
render() {
|
|
358
|
-
return (index.h(index.Host, { key: '
|
|
358
|
+
return (index.h(index.Host, { key: 'c759e34f7ff6d5eae483f7d3d7d491281e48190b' }, index.h("style", { key: '6eacde56415f21922ab5401dcc519b24ff69ca01' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '12f75ea7f7782f3feade05a51708552baba35a55', id: GenericVariables.componentWrapperId }, this.prepTextfield())));
|
|
359
359
|
}
|
|
360
360
|
disconnectedCallback() {
|
|
361
361
|
this.kupManager.dates.unregister(this);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const kupDates = require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -76585,7 +76585,7 @@ const KupPdf = class {
|
|
|
76585
76585
|
catch (error) { }
|
|
76586
76586
|
}
|
|
76587
76587
|
render() {
|
|
76588
|
-
return (index.h(index.Host, { key: '
|
|
76588
|
+
return (index.h(index.Host, { key: '40376a654818c87a1a6d8aa0efb9c4561b9d63e4' }, index.h("div", { key: '6344f5325e99cdf1053c243b58d6890bde221e77', id: GenericVariables.componentWrapperId, ref: (el) => (this.wrapperRef = el) })));
|
|
76589
76589
|
}
|
|
76590
76590
|
disconnectedCallback() {
|
|
76591
76591
|
__classPrivateFieldGet(this, _KupPdf_kupManager, "f").theme.unregister(this);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -120,9 +120,9 @@ const KupPhotoFrame = class {
|
|
|
120
120
|
if (this.isInViewport && !__classPrivateFieldGet(this, _KupPhotoFrame_renderResource, "f")) {
|
|
121
121
|
__classPrivateFieldSet(this, _KupPhotoFrame_renderResource, true, "f");
|
|
122
122
|
}
|
|
123
|
-
return (index.h(index.Host, { key: '
|
|
123
|
+
return (index.h(index.Host, { key: '6a60ca771c937ccc6fef1d7b16968ef55e0d148c' }, index.h("style", { key: 'e3757f5272dcb3c6e9c6a414aac9a4becb3cf2f9' }, __classPrivateFieldGet(this, _KupPhotoFrame_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '370c684f9f165e36b5a4c003a68794daf3e480b1', id: GenericVariables.componentWrapperId, ref: (el) => {
|
|
124
124
|
__classPrivateFieldSet(this, _KupPhotoFrame_wrapperEl, el, "f");
|
|
125
|
-
} }, index.h("img", Object.assign({ key: '
|
|
125
|
+
} }, index.h("img", Object.assign({ key: '6c03352f8a8f9a26c45c659ee1be5c53d297dc10' }, this.placeholderAttrs, { class: "placeholder", ref: (el) => (__classPrivateFieldSet(this, _KupPhotoFrame_placeholderEl, el, "f")), onLoad: () => {
|
|
126
126
|
if (__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalWidth >
|
|
127
127
|
__classPrivateFieldGet(this, _KupPhotoFrame_placeholderEl, "f").naturalHeight) {
|
|
128
128
|
__classPrivateFieldGet(this, _KupPhotoFrame_wrapperEl, "f").classList.add('horizontal');
|
|
@@ -230,13 +230,13 @@ const KupPlannerRenderer = class {
|
|
|
230
230
|
}
|
|
231
231
|
render() {
|
|
232
232
|
var _a, _b, _c;
|
|
233
|
-
return (index.h("div", { key: '
|
|
233
|
+
return (index.h("div", { key: 'ed1e2d17ea7378e1a7aa58e48ea913377f1e9e88', class: "planner-render" }, index.h("kup-switcher", { key: 'ef3558f217d69db4049e86c4a369c7c0d127ad62', timeUnitChange: (timeUnit) => {
|
|
234
234
|
var _a, _b;
|
|
235
235
|
(_b = (_a = this.props).onSetViewMode) === null || _b === void 0 ? void 0 : _b.call(_a, timeUnit);
|
|
236
236
|
this.timeUnit = timeUnit;
|
|
237
237
|
this.viewDate = undefined;
|
|
238
238
|
this.scrollX = -1;
|
|
239
|
-
} }), this.props && (index.h("div", { key: '
|
|
239
|
+
} }), this.props && (index.h("div", { key: '36c4dc1e9fe7e87a01711ca68a5ae12216454a97', style: {
|
|
240
240
|
display: 'flex',
|
|
241
241
|
flexDirection: 'column',
|
|
242
242
|
} }, index.h("kup-gantt", Object.assign({ ref: (el) => (this.mainGantt = el), ganttId: kupPlannerDeclarations.KUP_PLANNER_MAIN_GANTT_ID, key: kupPlannerDeclarations.KUP_PLANNER_MAIN_GANTT_ID, filter: this.props.mainGantt.filter, hideLabel: this.props.mainGantt.hideLabel, showSecondaryDates: this.mainGanttDoubleView, hideDependencies: this.props.mainGantt.hideDependencies, ganttHeight: this.props.mainGantt.ganttHeight, displayedStartDate: this.displayedDates.displayedStartDate, displayedEndDate: this.displayedDates.displayedEndDate, viewDate: this.viewDate, tasks: this.tasks, columnWidth: kupPlannerRendererHelper.columnWidthForTimeUnit(this.timeUnit), viewMode: this.timeUnit }, this.props.mainGantt.stylingOptions, { TaskListHeader: this.props.mainGantt.taskListHeaderProject, TaskListTable: this.props.mainGantt.taskListTableProject, TooltipContent: (_a = this.props.mainGantt.tooltipContent) !== null && _a !== void 0 ? _a : CustomTooltipHOC(), barClick: (task) => {
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager$1 = require('./kup-manager-
|
|
6
|
+
const kupManager$1 = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const kupPlannerDeclarations = require('./kup-planner-declarations-7291d01c.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
|
-
const fTextField = require('./f-text-field-
|
|
9
|
+
const fTextField = require('./f-text-field-a8db3416.js');
|
|
10
10
|
const fTextFieldMdc = require('./f-text-field-mdc-2a3c8c01.js');
|
|
11
11
|
require('./kup-dates-3fc9697c.js');
|
|
12
12
|
require('./f-image-8dbf27a2.js');
|
|
@@ -647,7 +647,7 @@ const KupPlanner = class {
|
|
|
647
647
|
if ((_b = this.plannerProps) === null || _b === void 0 ? void 0 : _b.secondaryGantt) {
|
|
648
648
|
plannerProps.secondaryGantt = Object.assign(Object.assign({}, this.plannerProps.secondaryGantt), { onScrollY: this.handleDetailGanttScrollY.bind(this) });
|
|
649
649
|
}
|
|
650
|
-
return (index.h(index.Host, { key: '
|
|
650
|
+
return (index.h(index.Host, { key: '73752a0e5077fa4ed017d304d7d0ec86441173c4' }, index.h("style", { key: 'af248e098f4f40255f284e8e332d4b06aa79035b' }, __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'cc070f765699d2b033fd93dd8b5122be58f1d73f', id: GenericVariables.componentWrapperId, style: { maxWidth: this.maxWidth } }, this.plannerProps && (index.h("kup-planner-renderer", { key: '80a8acb4dd14977dc5a33595e4903d6a538cb002', props: plannerProps, ref: (el) => (this.plannerRenderer = el) }))), index.h("div", { key: '8155c94c54c807cc60a360bac5b5aa2c9a3ee6b3', style: { display: this.plannerProps ? 'none' : '' } }, index.h(fTextField.FTextField, { key: '6ab229e2e93ce07c33487d5ab8c1e7112d7c23a4', icon: kupManager$1.KupThemeIconValues.SEARCH, id: "main-filter", label: __classPrivateFieldGet(this, _KupPlanner_kupManager, "f").language.translate(kupManager$1.KupLanguageSearch.SEARCH), onKeyDown: (e) => {
|
|
651
651
|
if (e.key === 'Enter') {
|
|
652
652
|
__classPrivateFieldGet(this, _KupPlanner_instances, "m", _KupPlanner_onFilter).call(this, e.target.value);
|
|
653
653
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
require('./kup-dates-3fc9697c.js');
|
|
9
9
|
|
|
@@ -239,7 +239,7 @@ const KupProbe = class {
|
|
|
239
239
|
if (this.features.theme) {
|
|
240
240
|
customStyle = this.kupManager.theme.setKupStyle(this.rootElement);
|
|
241
241
|
}
|
|
242
|
-
return (index.h(index.Host, { key: '
|
|
242
|
+
return (index.h(index.Host, { key: '181e80774854ac9fc4d1f1ca2b5e702c39884331' }, customStyle ? index.h("style", null, customStyle) : null, index.h("div", { key: '43cd24619d530b0cd509aebdbc16a90b42dc6bbb', id: GenericVariables.componentWrapperId }, this.content)));
|
|
243
243
|
}
|
|
244
244
|
disconnectedCallback() {
|
|
245
245
|
if (this.features.language) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
require('./kup-dates-3fc9697c.js');
|
|
8
8
|
|
|
9
9
|
const kupQlikCss = ".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}.kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-subtle, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";
|
|
@@ -120,7 +120,7 @@ const KupQlik = class {
|
|
|
120
120
|
layoutStyle = {
|
|
121
121
|
['--lyo_obj-height']: this.defobjsize,
|
|
122
122
|
};
|
|
123
|
-
return (index.h("div", { key: '
|
|
123
|
+
return (index.h("div", { key: '84dbf3c7b82c1e0674e98ea03ce0ec5de5449090', class: classLayout, style: layoutStyle }, this.divlist));
|
|
124
124
|
}
|
|
125
125
|
componentDidRender() {
|
|
126
126
|
if (this.debug) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
8
8
|
const fButton = require('./f-button-54d0f017.js');
|
|
9
9
|
require('./kup-dates-3fc9697c.js');
|
|
@@ -119,7 +119,7 @@ const KupSnackbar = class {
|
|
|
119
119
|
this.kupManager.debug.logRender(this, true);
|
|
120
120
|
}
|
|
121
121
|
render() {
|
|
122
|
-
return (index.h(index.Host, { key: '
|
|
122
|
+
return (index.h(index.Host, { key: 'b002f53fca17f2558cabc7361453391d15429b73', "kup-visible": this.visible }, index.h("style", { key: '01863564ea31079e738744321b54ddb9839ef8d2' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: 'd874cd21d97d5dc258028898e4acc74df66d5e3b', id: GenericVariables.componentWrapperId }, index.h("div", { key: '2acd0ff2f624c2e29f8a6a338c78d5222f566446', class: snackbarClass }, index.h("div", { key: '4ab51cd8952c62cbaef1ba68535bc3889a3e782a', class: "snackbar__text__block" }, index.h("div", { key: '643cd004cd0a741b9c5985402db4cde72f6d847b', class: `${snackbarClass}__header` }, this.header), index.h("div", { key: '9cc6e69d984acc396c816d92c65931c534d5400e', class: `${snackbarClass}__text` }, this.text)), this.actionButton || this.closeButton ? (index.h("div", { class: `${snackbarClass}__buttons` }, this.actionButton ? (index.h("div", { class: `${snackbarClass}__action` }, index.h(fButton.FButton, Object.assign({}, this.actionButton, { onClick: () => this.onKupActionClick() })))) : null, this.closeButton ? (index.h("div", { class: `${snackbarClass}__close` }, index.h(fButton.FButton, { icon: "close", onClick: () => this.hide() }))) : null)) : null))));
|
|
123
123
|
}
|
|
124
124
|
disconnectedCallback() {
|
|
125
125
|
this.kupManager.theme.unregister(this);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const fTypography = require('./f-typography-024bace8.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
9
|
require('./kup-dates-3fc9697c.js');
|
|
@@ -189,7 +189,7 @@ const KupTypographyList = class {
|
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
191
|
const typograhy = this.renderTypographys();
|
|
192
|
-
return (index.h(index.Host, { key: '
|
|
192
|
+
return (index.h(index.Host, { key: '33360cd54329b8cf6809f0f5e44cd4fbfdd73341' }, index.h("style", { key: 'e3905c406c1bcd1f4ca7f3665eb460a518cd85ac' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '56abb1bc62d53c456ebc51e7a139b952e365dd86', id: GenericVariables.componentWrapperId }, index.h("div", { key: 'a3eb9e8630b9bcdad939421966669a0345edac4d', class: "typographies-wrapper" }, typograhy))));
|
|
193
193
|
}
|
|
194
194
|
disconnectedCallback() {
|
|
195
195
|
this.kupManager.theme.unregister(this);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-4e97f23f.js');
|
|
6
|
-
const kupManager = require('./kup-manager-
|
|
6
|
+
const kupManager = require('./kup-manager-3e7452e3.js');
|
|
7
7
|
const fTypography = require('./f-typography-024bace8.js');
|
|
8
8
|
const GenericVariables = require('./GenericVariables-1d52ba57.js');
|
|
9
9
|
const fImage = require('./f-image-8dbf27a2.js');
|
|
@@ -187,7 +187,7 @@ const KupTypography = class {
|
|
|
187
187
|
const classObjParent = {
|
|
188
188
|
'kup-typography--wrap': props.toolbar ? true : false,
|
|
189
189
|
};
|
|
190
|
-
return (index.h(index.Host, { key: '
|
|
190
|
+
return (index.h(index.Host, { key: 'f59851b301cd5997fa0570372f1d61ad300f2105' }, index.h("style", { key: '8b9c02bc3031fd5386b4a46b160a938dd835c265' }, this.kupManager.theme.setKupStyle(this.rootElement)), index.h("div", { key: '796f39bb720f68d8c554a675b113d2dd7e4c40aa', id: GenericVariables.componentWrapperId, class: classObjParent, onClick: () => this.onKupClick }, index.h(fTypography.FTypography, Object.assign({ key: '9510770820ccbf7b480f5b4d92892ffbad8d7d53' }, props)), index.h(fImage.FImage, Object.assign({ key: 'f054539413556472ad4b5e240a6a72fa2f3f4f59' }, propsFImage, { onClick: (event) => {
|
|
191
191
|
event.stopPropagation();
|
|
192
192
|
this.onKupIconClick(event.currentTarget);
|
|
193
193
|
} })))));
|
|
@@ -11,7 +11,7 @@ import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
|
11
11
|
import { getProps, setProps } from "../../utils/utils";
|
|
12
12
|
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
13
13
|
import { KupCellProps, KupCellSubmitButtonPosition, } from "./kup-cell-declarations";
|
|
14
|
-
import { FCellPadding, } from "../../f-components/f-cell/f-cell-declarations";
|
|
14
|
+
import { FCellPadding, FCellShapes, } from "../../f-components/f-cell/f-cell-declarations";
|
|
15
15
|
import { KupDragEffect, } from "../../managers/kup-interact/kup-interact-declarations";
|
|
16
16
|
import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
|
|
17
17
|
import { FCellOptions } from "../../f-components/f-cell-options.tsx/f-cell-options";
|
|
@@ -25,6 +25,15 @@ export class KupCell {
|
|
|
25
25
|
* Instance of the KupManager class.
|
|
26
26
|
*/
|
|
27
27
|
_KupCell_kupManager.set(this, kupManagerInstance());
|
|
28
|
+
this.getLabelComponent = (cell, label) => {
|
|
29
|
+
if (!label) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
if (cell.shape === FCellShapes.RADIO) {
|
|
33
|
+
return h("span", null, label);
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
};
|
|
28
37
|
this.customStyle = '';
|
|
29
38
|
this.data = null;
|
|
30
39
|
this.density = FCellPadding.NONE;
|
|
@@ -167,16 +176,21 @@ export class KupCell {
|
|
|
167
176
|
renderKup: true,
|
|
168
177
|
row: this.generateRow(),
|
|
169
178
|
};
|
|
170
|
-
|
|
179
|
+
const label = this.getLabelComponent(props.cell, props.column.title);
|
|
180
|
+
return (h(Host, { key: '395f8c5d9ad62699eacfe369ff53b362e162be3b' }, h("style", { key: 'b975f8a0e72a1cc0b301b4ec76a631f8a4476bf3' }, __classPrivateFieldGet(this, _KupCell_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '35b6fff68640929e637b2ef04266e9bd89ca43ee', id: componentWrapperId, style: this.showSubmit
|
|
171
181
|
? {
|
|
172
182
|
display: 'flex',
|
|
173
183
|
'flex-direction': this.submitPosition,
|
|
174
184
|
'align-items': 'center',
|
|
175
185
|
gap: '0.5rem',
|
|
176
186
|
}
|
|
177
|
-
: {} }, h(
|
|
187
|
+
: {} }, h("div", { key: '286e3edbf419e2b83d4f5951700a66a70f59f3b6', class: {
|
|
188
|
+
'input-panel__label_container': label
|
|
189
|
+
? true
|
|
190
|
+
: false,
|
|
191
|
+
} }, label, h(FCellOptions, Object.assign({ key: '87c2ca717b6415d999ea22e2d11635de2293a08c' }, props)), this.showSubmit ? (h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupCell_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", onClick: (e) => {
|
|
178
192
|
this.submitClick(e);
|
|
179
|
-
} })) : null)));
|
|
193
|
+
} })) : null))));
|
|
180
194
|
}
|
|
181
195
|
disconnectedCallback() {
|
|
182
196
|
__classPrivateFieldGet(this, _KupCell_kupManager, "f").dates.unregister(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kup-cell.js","sourceRoot":"","sources":["../../../src/components/kup-cell/kup-cell.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACH,SAAS,EACT,OAAO,EACP,WAAW,EACX,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,MAAM,EACN,IAAI,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,kBAAkB,GACrB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACH,YAAY,EACZ,2BAA2B,GAE9B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEH,YAAY,GAEf,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAEH,aAAa,GAChB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {\n Component,\n Element,\n forceUpdate,\n h,\n Host,\n Event,\n EventEmitter,\n Method,\n Prop,\n} from '@stencil/core';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport {\n KupCellProps,\n KupCellSubmitButtonPosition,\n KupCellSubmitClickEventPayload,\n} from './kup-cell-declarations';\nimport { FCell } from '../../f-components/f-cell/f-cell';\nimport {\n FCellOptionsProps,\n FCellPadding,\n FCellProps,\n} from '../../f-components/f-cell/f-cell-declarations';\nimport {\n KupDragDataTransferCallback,\n KupDragEffect,\n} from '../../managers/kup-interact/kup-interact-declarations';\nimport { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataColumn,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCellOptions } from '../../f-components/f-cell-options.tsx/f-cell-options';\nimport { FButton } from '../../f-components/f-button/f-button';\n\n@Component({\n tag: 'kup-cell',\n styleUrl: 'kup-cell.scss',\n shadow: true,\n})\nexport class KupCell {\n /**\n * References the root HTML element of the component (<kup-text-field>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * The data of the cell.\n * @default false\n */\n @Prop() data: KupDataCell = null;\n /**\n * The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\n */\n @Prop() density: FCellPadding = FCellPadding.NONE;\n /**\n * When set to true, the component is draggable.\n * @default false\n */\n @Prop() dragEnabled: boolean = false;\n\n /**\n * Show submit button\n */\n @Prop() showSubmit: boolean = false;\n\n /**\n * Submit button position, default is right\n */\n @Prop() submitPosition: KupCellSubmitButtonPosition =\n KupCellSubmitButtonPosition.right;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n #kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-cell-submit-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;\n\n /**\n * Adds the given CSS classes to the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async addCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n this.data.cssClass = '';\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) < 0) {\n this.data.cssClass += ` ${cssClass}`;\n }\n }\n }\n this.refresh();\n }\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupCellProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Removes the given CSS classes from the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async removeCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n return;\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) > 0) {\n this.data.cssClass = this.data.cssClass.replace(\n new RegExp(cssClass, 'g'),\n ''\n );\n }\n }\n }\n this.refresh();\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupCellProps, props);\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n private didRenderInteractables() {\n if (this.dragEnabled) {\n const dataCb: KupDragDataTransferCallback = () => {\n return {\n cell: this.data,\n column: this.generateColumn(),\n id: this.rootElement.id,\n multiple: false,\n row: this.generateRow(),\n };\n };\n\n this.#kupManager.interact.draggable(\n this.rootElement.shadowRoot.querySelector(\n '#' + componentWrapperId\n ),\n {\n cursorChecker() {\n return null;\n },\n },\n {\n callback: dataCb,\n },\n KupDragEffect.BADGE\n );\n }\n }\n\n private generateColumn(): KupDataColumn {\n const colname: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : this.#kupManager.language.translate(\n KupLanguageGeneric.EMPTY_OBJECT\n );\n return {\n name: colname,\n title: coltitle,\n };\n }\n\n private generateRow(): KupDataRow {\n const col: KupDataColumn = this.generateColumn();\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = this.data;\n return row;\n }\n\n private submitClick(e: MouseEvent): void {\n e.stopPropagation();\n this.kupCellSubmitClick.emit({\n comp: this,\n id: this.rootElement.id,\n cell: this.data as KupDataCellOptions,\n });\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.#kupManager.dates.register(this);\n this.#kupManager.debug.logLoad(this, false);\n this.#kupManager.language.register(this);\n this.#kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.#kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.#kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.didRenderInteractables();\n this.#kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FCellOptionsProps = {\n cell: this.data as KupDataCellOptions,\n column: this.generateColumn(),\n component: this,\n density: this.density,\n editable: this.data.isEditable,\n renderKup: true,\n row: this.generateRow(),\n };\n\n return (\n <Host>\n <style>\n {this.#kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n style={\n this.showSubmit\n ? {\n display: 'flex',\n 'flex-direction': this.submitPosition,\n 'align-items': 'center',\n gap: '0.5rem',\n }\n : {}\n }\n >\n <FCellOptions {...props}></FCellOptions>\n {this.showSubmit ? (\n <FButton\n buttonType=\"submit\"\n label={this.#kupManager.language.translate(\n KupLanguageGeneric.CONFIRM\n )}\n wrapperClass=\"form__submit\"\n onClick={(e) => {\n this.submitClick(e);\n }}\n ></FButton>\n ) : null}\n </div>\n </Host>\n );\n }\n\n disconnectedCallback() {\n this.#kupManager.dates.unregister(this);\n this.#kupManager.language.unregister(this);\n this.#kupManager.theme.unregister(this);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"kup-cell.js","sourceRoot":"","sources":["../../../src/components/kup-cell/kup-cell.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACH,SAAS,EACT,OAAO,EACP,WAAW,EACX,CAAC,EACD,IAAI,EACJ,KAAK,EAEL,MAAM,EACN,IAAI,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,kBAAkB,GACrB,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACH,YAAY,EACZ,2BAA2B,GAE9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEH,YAAY,EACZ,WAAW,GACd,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAEH,aAAa,GA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AAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;wBACxB,CAAC,GACM,CACd,CAAC,CAAC,CAAC,IAAI,CACN,CACJ,CACH,CACV,CAAC;IACN,CAAC;IAcD,oBAAoB;QAChB,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACxC,uBAAA,IAAI,2BAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAC3C,uBAAA,IAAI,2BAAY,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import {\n Component,\n Element,\n forceUpdate,\n h,\n Host,\n Event,\n EventEmitter,\n Method,\n Prop,\n} from '@stencil/core';\nimport {\n KupManager,\n kupManagerInstance,\n} from '../../managers/kup-manager/kup-manager';\nimport { GenericObject, KupComponent } from '../../types/GenericTypes';\nimport { getProps, setProps } from '../../utils/utils';\nimport { componentWrapperId } from '../../variables/GenericVariables';\nimport {\n KupCellProps,\n KupCellSubmitButtonPosition,\n KupCellSubmitClickEventPayload,\n} from './kup-cell-declarations';\nimport {\n FCellOptionsProps,\n FCellPadding,\n FCellShapes,\n} from '../../f-components/f-cell/f-cell-declarations';\nimport {\n KupDragDataTransferCallback,\n KupDragEffect,\n} from '../../managers/kup-interact/kup-interact-declarations';\nimport { KupLanguageGeneric } from '../../managers/kup-language/kup-language-declarations';\nimport {\n KupDataCell,\n KupDataCellOptions,\n KupDataColumn,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport { FCellOptions } from '../../f-components/f-cell-options.tsx/f-cell-options';\nimport { FButton } from '../../f-components/f-button/f-button';\n\n@Component({\n tag: 'kup-cell',\n styleUrl: 'kup-cell.scss',\n shadow: true,\n})\nexport class KupCell {\n /**\n * References the root HTML element of the component (<kup-text-field>).\n */\n @Element() rootElement: HTMLElement;\n\n /*-------------------------------------------------*/\n /* P r o p s */\n /*-------------------------------------------------*/\n\n /**\n * Custom style of the component.\n * @default \"\"\n * @see https://smeup.github.io/ketchup/#/customization\n */\n @Prop() customStyle: string = '';\n /**\n * The data of the cell.\n * @default false\n */\n @Prop() data: KupDataCell = null;\n /**\n * The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.\n */\n @Prop() density: FCellPadding = FCellPadding.NONE;\n /**\n * When set to true, the component is draggable.\n * @default false\n */\n @Prop() dragEnabled: boolean = false;\n\n /**\n * Show submit button\n */\n @Prop() showSubmit: boolean = false;\n\n /**\n * Submit button position, default is right\n */\n @Prop() submitPosition: KupCellSubmitButtonPosition =\n KupCellSubmitButtonPosition.right;\n\n /*-------------------------------------------------*/\n /* I n t e r n a l V a r i a b l e s */\n /*-------------------------------------------------*/\n\n /**\n * Instance of the KupManager class.\n */\n #kupManager: KupManager = kupManagerInstance();\n\n /*-------------------------------------------------*/\n /* P u b l i c M e t h o d s */\n /*-------------------------------------------------*/\n\n @Event({\n eventName: 'kup-cell-submit-click',\n composed: true,\n cancelable: false,\n bubbles: true,\n })\n kupCellSubmitClick: EventEmitter<KupCellSubmitClickEventPayload>;\n\n /**\n * Adds the given CSS classes to the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async addCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n this.data.cssClass = '';\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) < 0) {\n this.data.cssClass += ` ${cssClass}`;\n }\n }\n }\n this.refresh();\n }\n /**\n * Used to retrieve component's props values.\n * @param {boolean} descriptions - When provided and true, the result will be the list of props with their description.\n * @returns {Promise<GenericObject>} List of props as object, each key will be a prop.\n */\n @Method()\n async getProps(descriptions?: boolean): Promise<GenericObject> {\n return getProps(this, KupCellProps, descriptions);\n }\n /**\n * This method is used to trigger a new render of the component.\n */\n @Method()\n async refresh(): Promise<void> {\n forceUpdate(this);\n }\n /**\n * Removes the given CSS classes from the cell's data.\n * @param {string[]} classes - Array of CSS classes.\n */\n @Method()\n async removeCssClasses(classes?: string[]): Promise<void> {\n if (!this.data.cssClass) {\n return;\n }\n if (classes) {\n for (let index = 0; index < classes.length; index++) {\n const cssClass = classes[index];\n if (this.data.cssClass.indexOf(cssClass) > 0) {\n this.data.cssClass = this.data.cssClass.replace(\n new RegExp(cssClass, 'g'),\n ''\n );\n }\n }\n }\n this.refresh();\n }\n /**\n * Sets the props to the component.\n * @param {GenericObject} props - Object containing props that will be set to the component.\n */\n @Method()\n async setProps(props: GenericObject): Promise<void> {\n setProps(this, KupCellProps, props);\n }\n\n /*-------------------------------------------------*/\n /* P r i v a t e M e t h o d s */\n /*-------------------------------------------------*/\n\n private didRenderInteractables() {\n if (this.dragEnabled) {\n const dataCb: KupDragDataTransferCallback = () => {\n return {\n cell: this.data,\n column: this.generateColumn(),\n id: this.rootElement.id,\n multiple: false,\n row: this.generateRow(),\n };\n };\n\n this.#kupManager.interact.draggable(\n this.rootElement.shadowRoot.querySelector(\n '#' + componentWrapperId\n ),\n {\n cursorChecker() {\n return null;\n },\n },\n {\n callback: dataCb,\n },\n KupDragEffect.BADGE\n );\n }\n }\n\n private generateColumn(): KupDataColumn {\n const colname: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : 'KUPCELL';\n const coltitle: string =\n this.data && this.data.obj && this.data.obj.t\n ? this.data.obj.t + ';' + this.data.obj.p\n : this.#kupManager.language.translate(\n KupLanguageGeneric.EMPTY_OBJECT\n );\n return {\n name: colname,\n title: coltitle,\n };\n }\n\n private generateRow(): KupDataRow {\n const col: KupDataColumn = this.generateColumn();\n const row: KupDataRow = { cells: {} };\n row.cells[col.name] = this.data;\n return row;\n }\n\n private submitClick(e: MouseEvent): void {\n e.stopPropagation();\n this.kupCellSubmitClick.emit({\n comp: this,\n id: this.rootElement.id,\n cell: this.data as KupDataCellOptions,\n });\n }\n\n /*-------------------------------------------------*/\n /* L i f e c y c l e H o o k s */\n /*-------------------------------------------------*/\n\n componentWillLoad() {\n this.#kupManager.dates.register(this);\n this.#kupManager.debug.logLoad(this, false);\n this.#kupManager.language.register(this);\n this.#kupManager.theme.register(this);\n }\n\n componentDidLoad() {\n this.#kupManager.debug.logLoad(this, true);\n }\n\n componentWillRender() {\n this.#kupManager.debug.logRender(this, false);\n }\n\n componentDidRender() {\n this.didRenderInteractables();\n this.#kupManager.debug.logRender(this, true);\n }\n\n render() {\n const props: FCellOptionsProps = {\n cell: this.data as KupDataCellOptions,\n column: this.generateColumn(),\n component: this,\n density: this.density,\n editable: this.data.isEditable,\n renderKup: true,\n row: this.generateRow(),\n };\n\n const label = this.getLabelComponent(props.cell, props.column.title);\n\n return (\n <Host>\n <style>\n {this.#kupManager.theme.setKupStyle(\n this.rootElement as KupComponent\n )}\n </style>\n <div\n id={componentWrapperId}\n style={\n this.showSubmit\n ? {\n display: 'flex',\n 'flex-direction': this.submitPosition,\n 'align-items': 'center',\n gap: '0.5rem',\n }\n : {}\n }\n >\n <div\n class={{\n 'input-panel__label_container': label\n ? true\n : false,\n }}\n >\n {label}\n <FCellOptions {...props} />\n {this.showSubmit ? (\n <FButton\n buttonType=\"submit\"\n label={this.#kupManager.language.translate(\n KupLanguageGeneric.CONFIRM\n )}\n wrapperClass=\"form__submit\"\n onClick={(e) => {\n this.submitClick(e);\n }}\n ></FButton>\n ) : null}\n </div>\n </div>\n </Host>\n );\n }\n\n getLabelComponent = (cell: KupDataCell, label: string) => {\n if (!label) {\n return null;\n }\n\n if (cell.shape === FCellShapes.RADIO) {\n return <span>{label}</span>;\n }\n\n return null;\n };\n\n disconnectedCallback() {\n this.#kupManager.dates.unregister(this);\n this.#kupManager.language.unregister(this);\n this.#kupManager.theme.unregister(this);\n }\n}\n"]}
|
|
@@ -134,7 +134,7 @@ export class KupCheckbox {
|
|
|
134
134
|
onChange: () => this.onKupChange(),
|
|
135
135
|
onFocus: () => this.onKupFocus(),
|
|
136
136
|
};
|
|
137
|
-
return (h(Host, { key: '
|
|
137
|
+
return (h(Host, { key: '49e622bc2765eb035a4fc7fb3bb74a4d14139814' }, h("style", { key: '84449423404feca3fbd75a958ce27966ce9df264' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '344301e2e5177f969fe51753e10096af5cd266d3', id: componentWrapperId }, h(FCheckbox, Object.assign({ key: '698c12b5ee7e07487fd571610923e468ca962113' }, props)))));
|
|
138
138
|
}
|
|
139
139
|
disconnectedCallback() {
|
|
140
140
|
this.kupManager.theme.unregister(this);
|
|
@@ -192,13 +192,13 @@ export class KupChip {
|
|
|
192
192
|
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
193
193
|
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
194
194
|
}
|
|
195
|
-
return (h(Host, { key: '
|
|
195
|
+
return (h(Host, { key: '10170c38c86ffd70e152c2aa66de827fa61bbe5d', "onKup-autocomplete-itemclick": (e) => {
|
|
196
196
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
197
197
|
}, "onKup-combobox-itemclick": (e) => {
|
|
198
198
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
199
199
|
}, "onKup-textfield-change": (e) => {
|
|
200
200
|
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
201
|
-
} }, h("style", { key: '
|
|
201
|
+
} }, h("style", { key: '4b6d0bf20da0a022d4e3b1bfb7f46077d0b9311e' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'fbcd955d025dc2a46af83e845ff5547437aa9517', id: componentWrapperId }, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? h(FChip, Object.assign({}, props)) : null, h("slot", { key: '7dc37ecbf9bf870abd6b095abc36b46d41abc98b', name: "field" }))));
|
|
202
202
|
}
|
|
203
203
|
disconnectedCallback() {
|
|
204
204
|
this.kupManager.theme.unregister(this);
|
|
@@ -228,7 +228,7 @@ export class KupColorPicker {
|
|
|
228
228
|
render() {
|
|
229
229
|
let widget = null;
|
|
230
230
|
if (this.swatchOnly) {
|
|
231
|
-
widget = (h("button", { key: '
|
|
231
|
+
widget = (h("button", { key: 'db40db59729d3d48f13a412cf6bbefb3ed9b5763', disabled: this.disabled, class: "color-picker", onClick: () => this.openPicker(), style: {
|
|
232
232
|
backgroundColor: this.value,
|
|
233
233
|
}, type: "button" }));
|
|
234
234
|
}
|
|
@@ -238,7 +238,7 @@ export class KupColorPicker {
|
|
|
238
238
|
const style = {
|
|
239
239
|
['--kup_colorpicker_thumb_color']: this.value ? this.value : '',
|
|
240
240
|
};
|
|
241
|
-
return (h(Host, { key: '
|
|
241
|
+
return (h(Host, { key: '8e32caa5948b79dfedc3d84d649998b2b918ac44', style: style }, h("style", { key: 'c332452428ca96ae5919450957aa70509db27d65' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '27af58056ecf3581fbe024db4bed5c8892167c4b', id: componentWrapperId }, widget)));
|
|
242
242
|
}
|
|
243
243
|
disconnectedCallback() {
|
|
244
244
|
if (this.card) {
|
|
@@ -302,7 +302,7 @@ export class KupCombobox {
|
|
|
302
302
|
};
|
|
303
303
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
304
304
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
305
|
-
return (h(Host, { key: '
|
|
305
|
+
return (h(Host, { key: '522bd7c90d16513aaa9eb28ccda4de8b253c68cc', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h("style", { key: 'caa2689a7e53b785b949e17ea5944d1dcf82af31' }, __classPrivateFieldGet(this, _KupCombobox_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '433a896159c9e37d6e0055f63190686cc5a0db70', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupCombobox_elStyle, "f") }, h(FTextField, Object.assign({ key: '5412e90b106813a4d2e295aa38aa4c5d05ba63ff' }, props, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, trailingIcon: true, icon: this.showDropDownIcon
|
|
306
306
|
? KupThemeIconValues.DROPDOWN
|
|
307
307
|
: null, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => this.onKupInput(), onIconClick: () => this.onKupIconClick() }))), __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_prepList).call(this)));
|
|
308
308
|
}
|
|
@@ -376,7 +376,7 @@ export class KupDashboard {
|
|
|
376
376
|
this.didRenderInteractables();
|
|
377
377
|
}
|
|
378
378
|
render() {
|
|
379
|
-
return (h(Host, { key: '
|
|
379
|
+
return (h(Host, { key: 'ad8cbbbae20467e5a3f3ed0e37ca7ad752d949c2' }, h("style", { key: '692d0ec8ffe264c463f0a4e6abd5561dfd7c277d' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '26faf0b00335df455b9f9445fae97133cc630b5a', id: componentWrapperId }, this.buildHeader(), this.buildForm(this.internalData, null))));
|
|
380
380
|
}
|
|
381
381
|
disconnectedCallback() {
|
|
382
382
|
this.unregisterInteractables();
|
|
@@ -385,7 +385,7 @@ export class KupDatePicker {
|
|
|
385
385
|
this.kupManager.debug.logRender(this, true);
|
|
386
386
|
}
|
|
387
387
|
render() {
|
|
388
|
-
return (h(Host, { key: '
|
|
388
|
+
return (h(Host, { key: '031101785e45244b758d67bc64fe35b4ca8d81e4' }, h("style", { key: '0321b1fb8efa28c746781bf7e0a22cbee8e5794f' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '7206f34bd8ea947b66714fdd62cbb5f7a8598838', id: componentWrapperId }, this.prepTextfield(this.getDateForOutput()))));
|
|
389
389
|
}
|
|
390
390
|
disconnectedCallback() {
|
|
391
391
|
this.kupManager.dates.unregister(this);
|
|
@@ -137,7 +137,7 @@ export class KupDialog {
|
|
|
137
137
|
'--kup_dialog_height': this.sizeY ? this.sizeY : 'auto',
|
|
138
138
|
'--kup_dialog_width': this.sizeX ? this.sizeX : 'auto',
|
|
139
139
|
};
|
|
140
|
-
return (h(Host, { key: '
|
|
140
|
+
return (h(Host, { key: 'e9417de4359bdda45ce89bac977b06af22dd7ed1', "fade-in": true, style: style }, h("style", { key: 'c8872646ef560a08041f4073196e18ba3c3a8046' }, __classPrivateFieldGet(this, _KupDialog_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'e76bbe6f8ae05df0441b341af3d9eaa0c264aee3', id: componentWrapperId }, this.header ? (h("div", { class: "header", ref: (el) => (__classPrivateFieldSet(this, _KupDialog_header, el, "f")) }, this.header.title ? (h("div", { class: "header__title" }, this.header.title)) : null, ((_a = this.header.icons) === null || _a === void 0 ? void 0 : _a.close) ? (h(FImage, { onClick: () => this.close(), sizeX: "1.25em", sizeY: "100%", resource: "clear", wrapperClass: "header__close" })) : null)) : null, h("div", { key: '6308342a24d3b987b14e341267174b584885d204', class: "content" }, h("slot", { key: 'ba7c863e7f092b5aafbbbaaa067b0f0a7bba2412' })))));
|
|
141
141
|
}
|
|
142
142
|
disconnectedCallback() {
|
|
143
143
|
if (this.modal) {
|
|
@@ -108,7 +108,7 @@ export class KupDrawer {
|
|
|
108
108
|
this.kupManager.debug.logRender(this, true);
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h(Host, { key: '
|
|
111
|
+
return (h(Host, { key: '8a9d2198973d5a7ec57918a2064e790682764845', "kup-opened": this.opened }, h("style", { key: 'e3abd215c9b0196074011bf4325bf8a7ab9092ed' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '71daac9c19301460a3fe3edad3f320c01f11bad5', class: "backdrop", onClick: (e) => {
|
|
112
112
|
e.preventDefault();
|
|
113
113
|
e.stopPropagation();
|
|
114
114
|
}, onPointerDown: (e) => {
|
|
@@ -118,7 +118,7 @@ export class KupDrawer {
|
|
|
118
118
|
}, onTouchStart: (e) => {
|
|
119
119
|
e.preventDefault();
|
|
120
120
|
e.stopPropagation();
|
|
121
|
-
} }), h("div", { key: '
|
|
121
|
+
} }), h("div", { key: '47e90864a92415cca083f56e2d25cd05efe56df9', id: componentWrapperId }, h("div", { key: '47bfb804ce58fa47dc1fa7a574df7a05bd92b116', class: drawerClass }, this.content()))));
|
|
122
122
|
}
|
|
123
123
|
disconnectedCallback() {
|
|
124
124
|
this.kupManager.theme.unregister(this);
|
|
@@ -139,7 +139,7 @@ export class KupEchart {
|
|
|
139
139
|
'--kup_echart_height': this.sizeY ? this.sizeY : '100%',
|
|
140
140
|
'--kup_echart_width': this.sizeX ? this.sizeX : '100%',
|
|
141
141
|
};
|
|
142
|
-
return (h(Host, { key: '
|
|
142
|
+
return (h(Host, { key: '9376b0691463c44b441c15e602a30c966cae6ad0', style: style }, h("style", { key: '0e476b67ae4d25abef7f596c9ed8a0f80ce8c855' }, __classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'd29a2fe699268ad6b9fb3ad2d645c0beb6d2d2af', id: componentWrapperId, ref: (chartContainer) => (__classPrivateFieldSet(this, _KupEchart_chartContainer, chartContainer, "f")) })));
|
|
143
143
|
}
|
|
144
144
|
disconnectedCallback() {
|
|
145
145
|
__classPrivateFieldGet(this, _KupEchart_kupManager, "f").theme.unregister(this);
|
|
@@ -389,7 +389,7 @@ export class KupEditor {
|
|
|
389
389
|
__classPrivateFieldGet(this, _KupEditor_kupManager, "f").debug.logRender(this, true);
|
|
390
390
|
}
|
|
391
391
|
render() {
|
|
392
|
-
return (h(Host, { key: '
|
|
392
|
+
return (h(Host, { key: 'ffbd575e5192cccaf2c070c4586215cc7573f9ce' }, h("div", { key: '21e2b1a060db3009c6595eb92f78361adff24d6c', id: componentWrapperId }, h("div", { key: this.rootElement.id, ref: (el) => (this.editorRef = el), class: "kup-editor" }))));
|
|
393
393
|
}
|
|
394
394
|
disconnectedCallback() {
|
|
395
395
|
__classPrivateFieldGet(this, _KupEditor_kupManager, "f").theme.unregister(this);
|
|
@@ -149,12 +149,12 @@ export class KupFamilyTree {
|
|
|
149
149
|
__classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").debug.logRender(this, true);
|
|
150
150
|
}
|
|
151
151
|
render() {
|
|
152
|
-
return (h(Host, { key: '
|
|
152
|
+
return (h(Host, { key: '6788b54f8c964ddeda1e5c4a7922613eb2efd59f', onDrag: (e) => e.preventDefault(), onPointerDown: (e) => {
|
|
153
153
|
e.preventDefault();
|
|
154
154
|
__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_startPanning).call(this, e);
|
|
155
155
|
}, onWheel: (e) => {
|
|
156
156
|
__classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_zoomTree).call(this, e);
|
|
157
|
-
} }, h("style", { key: '
|
|
157
|
+
} }, h("style", { key: '40f38048045b0c3726164c999dc9fa15ea778291' }, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '9d4209faa777da38726d8113582cbba14ace1df7', id: componentWrapperId }, __classPrivateFieldGet(this, _KupFamilyTree_instances, "m", _KupFamilyTree_createTree).call(this))));
|
|
158
158
|
}
|
|
159
159
|
disconnectedCallback() {
|
|
160
160
|
__classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").language.unregister(this);
|
|
@@ -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: '3c206215642b1662964c975671c3a2f7720eb470' }, 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: 'bc740600eab0fde6bce214eb57ce0a883a70bc50' }, h("style", { key: '73cf8c044cbe93249f7943e42b657b5d70247531' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '2fe3feca10d6237f4135453b91334527ba2ca311', id: componentWrapperId }, formContent)));
|
|
423
423
|
}
|
|
424
424
|
disconnectedCallback() {
|
|
425
425
|
this.kupManager.language.unregister(this);
|
|
@@ -201,14 +201,14 @@ export class KupImageList {
|
|
|
201
201
|
};
|
|
202
202
|
combinedGridStyle = Object.assign(Object.assign({}, combinedGridStyle), gridRowsStyle);
|
|
203
203
|
}
|
|
204
|
-
return (h(Host, { key: '
|
|
204
|
+
return (h(Host, { key: '23c2d80631804f9c3a587cffc04dce998bff968f' }, h("style", { key: '2b6e430e92b2a96191fbe3a662719073e0fb3a26' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '60472a44a90b970ea6424484586b27abeb633cf6', id: componentWrapperId, ref: (el) => {
|
|
205
205
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
206
|
-
} }, h("div", { key: '
|
|
206
|
+
} }, h("div", { key: '735d77b674d51d5601485505d14a7dfbac0c57fe', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
207
207
|
? 'navigation-bar__wrapper--active'
|
|
208
208
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
209
209
|
this.navigationBarToggled =
|
|
210
210
|
!this.navigationBarToggled;
|
|
211
|
-
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '
|
|
211
|
+
} }, h(FImage, { fit: true, resource: this.currentNode.icon, placeholderResource: this.currentNode.placeholderIcon, sizeX: "1.25em", sizeY: "1.25em", wrapperClass: "navigation-bar__title__image" }), h("div", { class: "navigation-bar__title__label" }, this.currentNode.value)), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_backProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.BACK) })), h(FButton, Object.assign({}, __classPrivateFieldGet(this, _KupImageList_topProps, "f"), { label: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.translate(KupLanguageGeneric.TOP) })))) : null), h("div", { key: '8f463b49c509a559b7be874a37787b393e3e2bf2', class: "image-list", style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
212
212
|
}
|
|
213
213
|
disconnectedCallback() {
|
|
214
214
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|