@sme.up/ketchup 10.3.2 → 10.3.4
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-7a2faf7a.js → f-cell-2d3d1fb1.js} +17 -9
- package/dist/cjs/{f-chip-f2d6124b.js → f-chip-9ac0d065.js} +11 -2
- package/dist/cjs/{f-object-field-3810f288.js → f-object-field-e0c83ebd.js} +2 -2
- package/dist/cjs/{f-paginator-utils-3855e84c.js → f-paginator-utils-d61b2fc7.js} +1 -1
- package/dist/cjs/{f-text-field-a34a5979.js → f-text-field-6c373c74.js} +1 -1
- package/dist/cjs/index-c7d441d8.js +2 -6
- 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_29.cjs.entry.js → kup-autocomplete_30.cjs.entry.js} +1505 -1076
- package/dist/cjs/kup-box.cjs.entry.js +8 -8
- 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 +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-f53032e7.js → kup-data-table-helper-f4e3958d.js} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +44 -34
- 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-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 +22 -13
- 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-c70d3188.js → kup-manager-587e54f5.js} +13 -4
- 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/editor-example-1.js +27 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +54 -8
- package/dist/collection/components/kup-box/kup-box.css +19 -3
- package/dist/collection/components/kup-chip/kup-chip.js +6 -4
- package/dist/collection/components/kup-combobox/kup-combobox.js +23 -1
- package/dist/collection/components/kup-data-table/kup-data-table.css +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +48 -27
- package/dist/collection/components/kup-editor/kup-editor-declarations.js +1 -1
- package/dist/collection/components/kup-editor/kup-editor.js +44 -34
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +2 -2
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +2 -2
- 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.css +4 -0
- package/dist/collection/components/kup-image-list/kup-image-list.js +68 -7
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +18 -8
- 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-tree/kup-tree.js +7 -7
- 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-declarations.js +2 -0
- package/dist/collection/f-components/f-cell/f-cell.js +13 -5
- package/dist/collection/f-components/f-chip/f-chip-declarations.js +1 -0
- package/dist/collection/f-components/f-chip/f-chip.js +8 -2
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
- package/dist/collection/managers/kup-data/kup-data-declarations.js +5 -0
- package/dist/collection/managers/kup-data/kup-data.js +2 -0
- package/dist/collection/utils/filters/filters.js +1 -1
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +3 -4
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +25 -20
- package/dist/components/kup-activity-timeline.js +25 -20
- 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 +25 -20
- package/dist/components/kup-card-list.js +27 -22
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +25 -20
- 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 +25 -20
- 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 +25 -20
- 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 +29 -24
- 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 +26 -21
- package/dist/components/kup-iframe.js +25 -20
- package/dist/components/kup-image-list.js +1 -565
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +44 -30
- package/dist/components/kup-lazy.js +36 -31
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +32 -27
- package/dist/components/kup-nav-bar.js +26 -21
- package/dist/components/kup-numeric-picker.js +26 -21
- package/dist/components/kup-object-field.js +26 -21
- package/dist/components/kup-pdf.js +26 -21
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +47 -42
- package/dist/components/kup-probe.js +26 -21
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +26 -21
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +26 -21
- 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 +26 -21
- package/dist/components/kup-typography-list.js +26 -21
- package/dist/components/kup-typography.js +27 -22
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-c325da75.js → p-0ca0b3b7.js} +2 -2
- package/dist/components/{p-de04aef6.js → p-1ac3dd8e.js} +15 -15
- package/dist/components/{p-d0e33e04.js → p-206f0986.js} +13 -13
- package/dist/components/{p-6992b96f.js → p-28774fba.js} +4 -4
- package/dist/components/{p-6bfda249.js → p-33cf89e0.js} +1 -1
- package/dist/components/{p-8472facf.js → p-34ed7a73.js} +2 -2
- package/dist/components/{p-a22e5ee4.js → p-36397daa.js} +25 -20
- package/dist/components/{p-0e85ab66.js → p-394a36af.js} +3 -3
- package/dist/components/{p-55542b47.js → p-46ec5845.js} +1 -1
- package/dist/components/{p-3ba7c133.js → p-4b555010.js} +26 -21
- package/dist/components/{p-c7c7f760.js → p-57a120a5.js} +1 -1
- package/dist/components/{p-3b4cdace.js → p-7aa9d49d.js} +7 -7
- package/dist/components/{p-55fda958.js → p-9b35cce9.js} +1361 -588
- package/dist/components/{p-286915d4.js → p-ad93796a.js} +25 -20
- package/dist/components/{p-97053b4d.js → p-af0a6cfe.js} +2 -2
- package/dist/components/{p-9859e801.js → p-af2d3d26.js} +14 -5
- package/dist/components/{p-f2e153e3.js → p-b87bd975.js} +5 -5
- package/dist/components/{p-d7136d08.js → p-d3a8c2ba.js} +2 -2
- package/dist/components/{p-bd3047ee.js → p-daa07bb7.js} +1 -1
- package/dist/components/{p-7bdb5142.js → p-f976f7ae.js} +69 -54
- package/dist/esm/{f-cell-ae0c965d.js → f-cell-e08c0b3c.js} +17 -9
- package/dist/esm/{f-chip-29242e70.js → f-chip-a030d384.js} +11 -2
- package/dist/esm/{f-object-field-75069ac2.js → f-object-field-badf11fe.js} +2 -2
- package/dist/esm/{f-paginator-utils-212f93c3.js → f-paginator-utils-e1e23a7e.js} +1 -1
- package/dist/esm/{f-text-field-ebe023fb.js → f-text-field-188fd143.js} +1 -1
- package/dist/esm/index-9b0f4a0d.js +2 -6
- 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_29.entry.js → kup-autocomplete_30.entry.js} +1505 -1077
- package/dist/esm/kup-box.entry.js +8 -8
- 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 +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-ca11e6e9.js → kup-data-table-helper-1c128c4b.js} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +44 -34
- 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-htm.entry.js +2 -2
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +22 -13
- package/dist/esm/kup-lazy.entry.js +12 -12
- package/dist/esm/kup-magic-box.entry.js +4 -4
- package/dist/esm/{kup-manager-63a8048f.js → kup-manager-fbf034b0.js} +14 -5
- 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-00e65c8b.entry.js +1 -0
- package/dist/ketchup/p-0b47c2e3.js +1 -0
- package/dist/ketchup/{p-6f1dec16.entry.js → p-100446c4.entry.js} +1 -1
- package/dist/ketchup/{p-b91e3bae.entry.js → p-14b668f6.entry.js} +1 -1
- package/dist/ketchup/{p-fb7c0958.entry.js → p-14e878e9.entry.js} +1 -1
- package/dist/ketchup/{p-c8cd012e.entry.js → p-15c1ed53.entry.js} +1 -1
- package/dist/ketchup/{p-260587c5.entry.js → p-19de01e7.entry.js} +1 -1
- package/dist/ketchup/{p-bc789017.entry.js → p-2032b357.entry.js} +1 -1
- package/dist/ketchup/{p-a2d40711.entry.js → p-4bef80af.entry.js} +1 -1
- package/dist/ketchup/{p-e705eb4a.js → p-515c59b6.js} +1 -1
- package/dist/ketchup/{p-9baa1d6d.entry.js → p-58196a26.entry.js} +1 -1
- package/dist/ketchup/{p-11e54526.entry.js → p-5bdc3f74.entry.js} +1 -1
- package/dist/ketchup/{p-7dfc42f0.entry.js → p-64c7546a.entry.js} +1 -1
- package/dist/ketchup/{p-8ba1d444.entry.js → p-66b6d56b.entry.js} +1 -1
- package/dist/ketchup/{p-fe42ae2d.entry.js → p-6782ea5b.entry.js} +1 -1
- package/dist/ketchup/p-679a76b6.entry.js +8 -0
- package/dist/ketchup/{p-610faea9.js → p-69c806c5.js} +1 -1
- package/dist/ketchup/{p-434f2c39.entry.js → p-6e4e479b.entry.js} +1 -1
- package/dist/ketchup/p-6fe18ae9.js +1 -0
- package/dist/ketchup/p-7b5c4ec1.entry.js +1 -0
- package/dist/ketchup/{p-eb090acd.entry.js → p-83d15d86.entry.js} +2 -2
- package/dist/ketchup/{p-e7293ae8.entry.js → p-85835e52.entry.js} +1 -1
- package/dist/ketchup/{p-43f12940.entry.js → p-8ee44f57.entry.js} +1 -1
- package/dist/ketchup/{p-5bf3d60d.entry.js → p-8fad681d.entry.js} +1 -1
- package/dist/ketchup/{p-f87b7768.entry.js → p-91743bb0.entry.js} +1 -1
- package/dist/ketchup/{p-9b200a90.entry.js → p-982d4b01.entry.js} +1 -1
- package/dist/ketchup/{p-8610d5b5.js → p-a9a2f8c7.js} +3 -3
- package/dist/ketchup/{p-3533879b.entry.js → p-af99fb41.entry.js} +1 -1
- package/dist/ketchup/{p-4677cfd1.entry.js → p-b71d58a8.entry.js} +1 -1
- package/dist/ketchup/{p-81743364.entry.js → p-bf3bbbe5.entry.js} +1 -1
- package/dist/ketchup/p-c3595114.js +1 -0
- package/dist/ketchup/{p-d84e4e90.entry.js → p-d52f2836.entry.js} +1 -1
- package/dist/ketchup/{p-7b326bde.entry.js → p-ddfe8edb.entry.js} +1 -1
- package/dist/ketchup/{p-6c41cd20.entry.js → p-e4687067.entry.js} +1 -1
- package/dist/ketchup/{p-6b529a6f.entry.js → p-ec382a7d.entry.js} +2 -2
- package/dist/ketchup/{p-4365fbd3.entry.js → p-f17369c3.entry.js} +3 -3
- package/dist/ketchup/{p-da694791.js → p-f6eba414.js} +1 -1
- package/dist/ketchup/{p-b6beace3.entry.js → p-f738c370.entry.js} +1 -1
- package/dist/ketchup/{p-b068a383.entry.js → p-fe3f5f09.entry.js} +1 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +6 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +1 -1
- package/dist/types/components/kup-editor/kup-editor-declarations.d.ts +2 -2
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +12 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +1 -4
- package/dist/types/components.d.ts +39 -1
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +3 -1
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +3 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +5 -1
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +0 -404
- package/dist/esm/kup-image-list.entry.js +0 -400
- package/dist/ketchup/p-102d35b1.js +0 -1
- package/dist/ketchup/p-4a64f9f2.entry.js +0 -1
- package/dist/ketchup/p-4cfa35bc.js +0 -1
- package/dist/ketchup/p-5d28e8e0.entry.js +0 -8
- package/dist/ketchup/p-7375d456.js +0 -1
- package/dist/ketchup/p-93541362.entry.js +0 -1
- package/dist/ketchup/p-fb82cad9.entry.js +0 -1
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupEditor_autosaveInterval, _KupEditor_hasChanges, _KupEditor_initialContent, _KupEditor_kupManager, _KupEditor_unsavedChangesIndex, _KupEditor_unsavedChangesItem;
|
|
17
|
+
var _KupEditor_instances, _KupEditor_autosaveInterval, _KupEditor_hasChanges, _KupEditor_initialContent, _KupEditor_kupManager, _KupEditor_unsavedChangesIndex, _KupEditor_unsavedChangesItem, _KupEditor_textareaRef, _KupEditor_isPlainTextEditor, _KupEditor_handleUnsavedChanges;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
20
20
|
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
@@ -24,6 +24,7 @@ import Viewer from "@toast-ui/editor/dist/toastui-editor-viewer";
|
|
|
24
24
|
import { getProps, setProps } from "../../utils/utils";
|
|
25
25
|
export class KupEditor {
|
|
26
26
|
constructor() {
|
|
27
|
+
_KupEditor_instances.add(this);
|
|
27
28
|
/*-------------------------------------------------*/
|
|
28
29
|
/* I n t e r n a l V a r i a b l e s */
|
|
29
30
|
/*-------------------------------------------------*/
|
|
@@ -40,6 +41,7 @@ export class KupEditor {
|
|
|
40
41
|
},
|
|
41
42
|
type: 'button',
|
|
42
43
|
});
|
|
44
|
+
_KupEditor_textareaRef.set(this, void 0);
|
|
43
45
|
this.editor = null;
|
|
44
46
|
this.editorRef = undefined;
|
|
45
47
|
this.viewer = null;
|
|
@@ -185,36 +187,12 @@ export class KupEditor {
|
|
|
185
187
|
async setProps(props) {
|
|
186
188
|
setProps(this, KupEditorProps, props);
|
|
187
189
|
}
|
|
188
|
-
/*-------------------------------------------------*/
|
|
189
|
-
/* P r i v a t e M e t h o d s */
|
|
190
|
-
/*-------------------------------------------------*/
|
|
191
190
|
createEditor() {
|
|
192
191
|
var _a;
|
|
193
192
|
const editorProps = {
|
|
194
193
|
el: this.editorRef,
|
|
195
194
|
events: {
|
|
196
|
-
change: () =>
|
|
197
|
-
if (__classPrivateFieldGet(this, _KupEditor_initialContent, "f") !== this.editor.getMarkdown()) {
|
|
198
|
-
if (!__classPrivateFieldGet(this, _KupEditor_hasChanges, "f")) {
|
|
199
|
-
__classPrivateFieldSet(this, _KupEditor_unsavedChangesIndex, this.editor.getUI().getToolbar().getItems()
|
|
200
|
-
.length - 1, "f");
|
|
201
|
-
this.editor
|
|
202
|
-
.getUI()
|
|
203
|
-
.getToolbar()
|
|
204
|
-
.insertItem(__classPrivateFieldGet(this, _KupEditor_unsavedChangesIndex, "f"), __classPrivateFieldGet(this, _KupEditor_unsavedChangesItem, "f"));
|
|
205
|
-
}
|
|
206
|
-
__classPrivateFieldSet(this, _KupEditor_hasChanges, true, "f");
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
if (__classPrivateFieldGet(this, _KupEditor_hasChanges, "f")) {
|
|
210
|
-
this.editor
|
|
211
|
-
.getUI()
|
|
212
|
-
.getToolbar()
|
|
213
|
-
.removeItem(__classPrivateFieldGet(this, _KupEditor_unsavedChangesIndex, "f"));
|
|
214
|
-
}
|
|
215
|
-
__classPrivateFieldSet(this, _KupEditor_hasChanges, false, "f");
|
|
216
|
-
}
|
|
217
|
-
},
|
|
195
|
+
change: () => __classPrivateFieldGet(this, _KupEditor_instances, "m", _KupEditor_handleUnsavedChanges).call(this),
|
|
218
196
|
focus: () => {
|
|
219
197
|
if (!this.isReadOnly && !this.showToolbar) {
|
|
220
198
|
this.showToolbar = true;
|
|
@@ -223,7 +201,7 @@ export class KupEditor {
|
|
|
223
201
|
},
|
|
224
202
|
height: (_a = this.editorHeight) !== null && _a !== void 0 ? _a : 'auto',
|
|
225
203
|
hideModeSwitch: true,
|
|
226
|
-
initialEditType: this.initialEditType,
|
|
204
|
+
initialEditType: this.initialEditType === 'wysiwyg' ? 'wysiwyg' : 'markdown',
|
|
227
205
|
initialValue: this.initialValue,
|
|
228
206
|
placeholder: 'Type your text here...',
|
|
229
207
|
previewStyle: this.previewStyle,
|
|
@@ -371,12 +349,17 @@ export class KupEditor {
|
|
|
371
349
|
return toolBarItems;
|
|
372
350
|
}
|
|
373
351
|
getSaveAndAutoSaveProps() {
|
|
374
|
-
|
|
352
|
+
const htmlValue = __classPrivateFieldGet(this, _KupEditor_instances, "m", _KupEditor_isPlainTextEditor).call(this)
|
|
353
|
+
? __classPrivateFieldGet(this, _KupEditor_textareaRef, "f").value
|
|
354
|
+
: this.editor.getHtml();
|
|
355
|
+
const markdownValue = __classPrivateFieldGet(this, _KupEditor_instances, "m", _KupEditor_isPlainTextEditor).call(this)
|
|
356
|
+
? __classPrivateFieldGet(this, _KupEditor_textareaRef, "f").value
|
|
357
|
+
: this.editor.getMarkdown();
|
|
375
358
|
return {
|
|
376
359
|
comp: this,
|
|
377
360
|
id: this.rootElement.id,
|
|
378
|
-
htmlValue
|
|
379
|
-
markdownValue
|
|
361
|
+
htmlValue,
|
|
362
|
+
markdownValue,
|
|
380
363
|
};
|
|
381
364
|
}
|
|
382
365
|
/*-------------------------------------------------*/
|
|
@@ -400,7 +383,9 @@ export class KupEditor {
|
|
|
400
383
|
__classPrivateFieldGet(this, _KupEditor_kupManager, "f").debug.logRender(this, true);
|
|
401
384
|
}
|
|
402
385
|
render() {
|
|
403
|
-
return (h(Host, { key: '
|
|
386
|
+
return (h(Host, { key: '031333deffb0732e544076f155555bb62bc53190' }, h("div", { key: '0f312ec339138f3a62afdf742660606526d11e70', id: componentWrapperId }, h("div", { key: this.rootElement.id, ref: (el) => (this.editorRef = el), class: "kup-editor" }), __classPrivateFieldGet(this, _KupEditor_instances, "m", _KupEditor_isPlainTextEditor).call(this) && (h("textarea", { key: '0e2bc200ff30a15f624299a9577ec910134dc3d1', id: '' + this.rootElement.id + '-textarea', value: this.initialValue, ref: (el) => (__classPrivateFieldSet(this, _KupEditor_textareaRef, el, "f")), onInput: (e) => __classPrivateFieldGet(this, _KupEditor_instances, "m", _KupEditor_handleUnsavedChanges).call(this, e.target.value), placeholder: "Type your text here...", readOnly: this.isReadOnly, style: {
|
|
387
|
+
height: this.editorHeight || 'auto',
|
|
388
|
+
}, class: "kup-editor-textarea" })))));
|
|
404
389
|
}
|
|
405
390
|
disconnectedCallback() {
|
|
406
391
|
__classPrivateFieldGet(this, _KupEditor_kupManager, "f").theme.unregister(this);
|
|
@@ -455,7 +440,7 @@ export class KupEditor {
|
|
|
455
440
|
"mutable": false,
|
|
456
441
|
"complexType": {
|
|
457
442
|
"original": "KupEditorType",
|
|
458
|
-
"resolved": "\"markdown\" | \"wysiwyg\"",
|
|
443
|
+
"resolved": "\"markdown\" | \"text\" | \"wysiwyg\"",
|
|
459
444
|
"references": {
|
|
460
445
|
"KupEditorType": {
|
|
461
446
|
"location": "import",
|
|
@@ -474,7 +459,7 @@ export class KupEditor {
|
|
|
474
459
|
"text": "The editor type."
|
|
475
460
|
},
|
|
476
461
|
"attribute": "initial-edit-type",
|
|
477
|
-
"reflect":
|
|
462
|
+
"reflect": true,
|
|
478
463
|
"defaultValue": "'markdown'"
|
|
479
464
|
},
|
|
480
465
|
"initialValue": {
|
|
@@ -838,4 +823,29 @@ export class KupEditor {
|
|
|
838
823
|
}];
|
|
839
824
|
}
|
|
840
825
|
}
|
|
841
|
-
_KupEditor_autosaveInterval = new WeakMap(), _KupEditor_hasChanges = new WeakMap(), _KupEditor_initialContent = new WeakMap(), _KupEditor_kupManager = new WeakMap(), _KupEditor_unsavedChangesIndex = new WeakMap(), _KupEditor_unsavedChangesItem = new WeakMap()
|
|
826
|
+
_KupEditor_autosaveInterval = new WeakMap(), _KupEditor_hasChanges = new WeakMap(), _KupEditor_initialContent = new WeakMap(), _KupEditor_kupManager = new WeakMap(), _KupEditor_unsavedChangesIndex = new WeakMap(), _KupEditor_unsavedChangesItem = new WeakMap(), _KupEditor_textareaRef = new WeakMap(), _KupEditor_instances = new WeakSet(), _KupEditor_isPlainTextEditor = function _KupEditor_isPlainTextEditor() {
|
|
827
|
+
return this.initialEditType === 'text';
|
|
828
|
+
}, _KupEditor_handleUnsavedChanges = function _KupEditor_handleUnsavedChanges(value) {
|
|
829
|
+
value = value !== undefined ? value : this.editor.getMarkdown();
|
|
830
|
+
if (__classPrivateFieldGet(this, _KupEditor_textareaRef, "f")) {
|
|
831
|
+
if (__classPrivateFieldGet(this, _KupEditor_initialContent, "f") !== value) {
|
|
832
|
+
if (!__classPrivateFieldGet(this, _KupEditor_hasChanges, "f")) {
|
|
833
|
+
__classPrivateFieldSet(this, _KupEditor_unsavedChangesIndex, this.editor.getUI().getToolbar().getItems().length - 1, "f");
|
|
834
|
+
this.editor
|
|
835
|
+
.getUI()
|
|
836
|
+
.getToolbar()
|
|
837
|
+
.insertItem(__classPrivateFieldGet(this, _KupEditor_unsavedChangesIndex, "f"), __classPrivateFieldGet(this, _KupEditor_unsavedChangesItem, "f"));
|
|
838
|
+
}
|
|
839
|
+
__classPrivateFieldSet(this, _KupEditor_hasChanges, true, "f");
|
|
840
|
+
}
|
|
841
|
+
else {
|
|
842
|
+
if (__classPrivateFieldGet(this, _KupEditor_hasChanges, "f")) {
|
|
843
|
+
this.editor
|
|
844
|
+
.getUI()
|
|
845
|
+
.getToolbar()
|
|
846
|
+
.removeItem(__classPrivateFieldGet(this, _KupEditor_unsavedChangesIndex, "f"));
|
|
847
|
+
}
|
|
848
|
+
__classPrivateFieldSet(this, _KupEditor_hasChanges, false, "f");
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
};
|
|
@@ -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: '4c4b1e324af112481cf07385a41b645cd61d55bd', 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: '1a78eadb1ec514d7144499d24b31e7c159cb4330' }, __classPrivateFieldGet(this, _KupFamilyTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'fdae258f4384af40bb13232a15633fec74aa8fe2', 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);
|
|
@@ -115,10 +115,10 @@ export class KupFileUpload {
|
|
|
115
115
|
__classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").debug.logRender(this, true);
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: 'c1d2c71efa28c233051bdfeb1535bcb07149c660' }, h("style", { key: '9fb2a5e633f49bac0fe1c8673869ac8b29c1272b' }, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'b43469650151abf962aba80f54e15343c2a95767', id: componentWrapperId }, h("div", { key: '18489f11209ad6cf55c2de3e232b2b0888a4f505', class: {
|
|
119
119
|
'file-upload': true,
|
|
120
120
|
'file-upload-spinner': this.showSpinner,
|
|
121
|
-
}, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: '
|
|
121
|
+
}, onDrop: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleDrop).bind(this), onDragOver: (event) => event.preventDefault() }, h("input", { key: '8a700a42c034d2604bfe84199212123dd082c64a', type: "file", ref: (el) => (this.inputRef = el), onChange: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileChange).bind(this), multiple: true, hidden: true }), h("div", { key: '5279ca7bbb0468519c8cb4ae223c0d4e1e6dc7a5', class: "file-upload__buttons" }, h(FButton, { key: '76b00cac757d67e629a043f123217cdbc0b3dc58', icon: "upload", label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.CHOOSE), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleClick).bind(this) }), h(FButton, { key: 'ddec08321006f92257b336530f168cbabcdb0796', icon: "save", disabled: !this.files.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.UPLOAD), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_uploadClick).bind(this), styling: FButtonStyling.FLAT }), h(FButton, { key: '1e70cb49c36286d5e72dd412b776c9002194102e', icon: "clear", disabled: !this.files.length, label: __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageGeneric.ABORT), onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleCancel).bind(this), styling: FButtonStyling.FLAT })), this.uploadSuccess ? (h("span", null, __classPrivateFieldGet(this, _KupFileUpload_kupManager, "f").language.translate(KupLanguageUpload.SUCCESS))) : (h("div", { class: "file-upload__list" }, this.files.map((file, i) => (h("div", { class: "file-upload__list__item" }, h("div", { class: "file-upload__list__item__preview" }, h(FImage, { resource: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_getPreview).call(this, file) })), h("span", { class: "file-upload__list__item__desc", title: file.name }, __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_trimFileName).call(this, file.name)), h("span", { class: "file-upload__list__item__clear", onClick: __classPrivateFieldGet(this, _KupFileUpload_instances, "m", _KupFileUpload_handleFileRemove).bind(this, i) })))))), this.showSpinner && (h("div", { key: 'f6a8de73c3109a9067866628f78698150bc83bdc', class: "file-upload__spinner-container" }, h("kup-spinner", { key: 'ca00b8efcae2be30f8ea5028d6c2a7e3839d63a4', active: true, layout: 14, dimensions: "7px" })))))));
|
|
122
122
|
}
|
|
123
123
|
disconnectedCallback() {
|
|
124
124
|
__classPrivateFieldGet(this, _KupFileUpload_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: 'cf8c793fae4b7ab811ed6385dd446ce1603d4921' }, 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: 'a97811d53f4ed45ced27c021e1cf164f093b04d2' }, h("style", { key: '5531da216461ca36e3efb0f0a365517eb8494d64' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '50e19a44c0be7805bf35215fbc079924178458f9', 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: '5fd7a24633313c182200d98e795cd27938bdd0ed' }, h("style", { key: '283f61604341bc317f9eece1bacdfd6f394d73b6' }, __classPrivateFieldGet(this, _KupHTM_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '2e35f4c034756925be450b15a14b54acd3e496fa', id: componentWrapperId }, h("div", { key: 'a7372f43ada38738eb4134e8feaade2c9db14c13', 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);
|
|
@@ -294,6 +294,10 @@
|
|
|
294
294
|
.image-list__item:hover {
|
|
295
295
|
background-color: var(--kup_imagelist_item_background_color_hover);
|
|
296
296
|
}
|
|
297
|
+
.image-list__item--active {
|
|
298
|
+
background-color: rgba(var(--kup_imagelist_primary_color_rgb), 0.15);
|
|
299
|
+
color: var(--kup_imagelist_primary_color);
|
|
300
|
+
}
|
|
297
301
|
.image-list__image.f-image {
|
|
298
302
|
position: absolute;
|
|
299
303
|
padding: var(--kup-space-03);
|
|
@@ -69,6 +69,7 @@ export class KupImageList {
|
|
|
69
69
|
_KupImageList_interactableTouch.set(this, []);
|
|
70
70
|
this.currentNode = null;
|
|
71
71
|
this.navigationBarToggled = false;
|
|
72
|
+
this.activeSelectedNode = null;
|
|
72
73
|
this.columns = [];
|
|
73
74
|
this.customStyle = '';
|
|
74
75
|
this.data = [];
|
|
@@ -78,6 +79,8 @@ export class KupImageList {
|
|
|
78
79
|
this.stateId = '';
|
|
79
80
|
this.store = undefined;
|
|
80
81
|
this.showFullDescription = false;
|
|
82
|
+
this.leadingLabel = null;
|
|
83
|
+
this.activeNode = undefined;
|
|
81
84
|
}
|
|
82
85
|
initWithPersistedState() {
|
|
83
86
|
if (this.store && this.stateId) {
|
|
@@ -110,6 +113,9 @@ export class KupImageList {
|
|
|
110
113
|
}
|
|
111
114
|
this.currentNode = __classPrivateFieldGet(this, _KupImageList_kupManager, "f").data.node.find(this.data, newData);
|
|
112
115
|
}
|
|
116
|
+
watchActiveNode(newNode) {
|
|
117
|
+
this.activeSelectedNode = newNode !== null && newNode !== void 0 ? newNode : null;
|
|
118
|
+
}
|
|
113
119
|
/*-------------------------------------------------*/
|
|
114
120
|
/* P u b l i c M e t h o d s */
|
|
115
121
|
/*-------------------------------------------------*/
|
|
@@ -138,9 +144,11 @@ export class KupImageList {
|
|
|
138
144
|
/* L i f e c y c l e H o o k s */
|
|
139
145
|
/*-------------------------------------------------*/
|
|
140
146
|
componentWillLoad() {
|
|
147
|
+
var _a;
|
|
141
148
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").debug.logLoad(this, false);
|
|
142
149
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").language.register(this);
|
|
143
150
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.register(this);
|
|
151
|
+
this.activeSelectedNode = (_a = this.activeNode) !== null && _a !== void 0 ? _a : null;
|
|
144
152
|
}
|
|
145
153
|
componentDidLoad() {
|
|
146
154
|
__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_didLoadInteractables).call(this);
|
|
@@ -200,14 +208,14 @@ export class KupImageList {
|
|
|
200
208
|
}
|
|
201
209
|
const imlClass = 'image-list' +
|
|
202
210
|
(this.showFullDescription ? ' full-description' : '');
|
|
203
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: 'ea207d793c3a9810a262f2f307451cc05c8f05c2' }, h("style", { key: '35dfe806784efd59f7e54ad3dd5808c3b441656b' }, __classPrivateFieldGet(this, _KupImageList_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '0fe6b33096bb41c05f7e4fc9adad1f6c7140e086', id: componentWrapperId, ref: (el) => {
|
|
204
212
|
__classPrivateFieldSet(this, _KupImageList_el, el, "f");
|
|
205
|
-
} }, h("div", { key: '
|
|
213
|
+
} }, h("div", { key: '6b7576d25b6a19b7316b97d8745a3690d2a649bc', class: "navigation-bar" }, hasNavigation ? (h("div", { class: `navigation-bar__wrapper ${this.navigationBarToggled
|
|
206
214
|
? 'navigation-bar__wrapper--active'
|
|
207
215
|
: ''}` }, h("div", { class: `navigation-bar__title`, onClick: () => {
|
|
208
216
|
this.navigationBarToggled =
|
|
209
217
|
!this.navigationBarToggled;
|
|
210
|
-
} }, 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: '
|
|
218
|
+
} }, 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: '74521e394aed3145d3a134bf2e5939ce9c8561cc', class: "mdc-text-field__label-container" }, h("label", { key: '247b7c52c6e3e590e15933e4a4fd2186b7bd9e64', class: "mdc-label" }, this.leadingLabel))), h("div", { key: 'f6c424c22bb28fe016184529d6023f42e2f8dc00', class: imlClass, style: combinedGridStyle }, ...__classPrivateFieldGet(this, _KupImageList_instances, "m", _KupImageList_createList).call(this)))));
|
|
211
219
|
}
|
|
212
220
|
disconnectedCallback() {
|
|
213
221
|
__classPrivateFieldGet(this, _KupImageList_kupManager, "f").interact.unregister(__classPrivateFieldGet(this, _KupImageList_interactableTouch, "f"));
|
|
@@ -419,13 +427,59 @@ export class KupImageList {
|
|
|
419
427
|
"attribute": "show-full-description",
|
|
420
428
|
"reflect": false,
|
|
421
429
|
"defaultValue": "false"
|
|
430
|
+
},
|
|
431
|
+
"leadingLabel": {
|
|
432
|
+
"type": "string",
|
|
433
|
+
"mutable": false,
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "string",
|
|
436
|
+
"resolved": "string",
|
|
437
|
+
"references": {}
|
|
438
|
+
},
|
|
439
|
+
"required": false,
|
|
440
|
+
"optional": false,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [{
|
|
443
|
+
"name": "default",
|
|
444
|
+
"text": "null"
|
|
445
|
+
}],
|
|
446
|
+
"text": "When present component will have a main label."
|
|
447
|
+
},
|
|
448
|
+
"attribute": "leading-label",
|
|
449
|
+
"reflect": false,
|
|
450
|
+
"defaultValue": "null"
|
|
451
|
+
},
|
|
452
|
+
"activeNode": {
|
|
453
|
+
"type": "unknown",
|
|
454
|
+
"mutable": false,
|
|
455
|
+
"complexType": {
|
|
456
|
+
"original": "KupImageListDataNode",
|
|
457
|
+
"resolved": "KupImageListDataNode",
|
|
458
|
+
"references": {
|
|
459
|
+
"KupImageListDataNode": {
|
|
460
|
+
"location": "import",
|
|
461
|
+
"path": "./kup-image-list-declarations",
|
|
462
|
+
"id": "src/components/kup-image-list/kup-image-list-declarations.ts::KupImageListDataNode"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"required": false,
|
|
467
|
+
"optional": true,
|
|
468
|
+
"docs": {
|
|
469
|
+
"tags": [{
|
|
470
|
+
"name": "default",
|
|
471
|
+
"text": "null"
|
|
472
|
+
}],
|
|
473
|
+
"text": "When present component will have an active class on node selected."
|
|
474
|
+
}
|
|
422
475
|
}
|
|
423
476
|
};
|
|
424
477
|
}
|
|
425
478
|
static get states() {
|
|
426
479
|
return {
|
|
427
480
|
"currentNode": {},
|
|
428
|
-
"navigationBarToggled": {}
|
|
481
|
+
"navigationBarToggled": {},
|
|
482
|
+
"activeSelectedNode": {}
|
|
429
483
|
};
|
|
430
484
|
}
|
|
431
485
|
static get events() {
|
|
@@ -581,6 +635,9 @@ export class KupImageList {
|
|
|
581
635
|
return [{
|
|
582
636
|
"propName": "selectedNode",
|
|
583
637
|
"methodName": "selectNode"
|
|
638
|
+
}, {
|
|
639
|
+
"propName": "activeNode",
|
|
640
|
+
"methodName": "watchActiveNode"
|
|
584
641
|
}];
|
|
585
642
|
}
|
|
586
643
|
}
|
|
@@ -593,6 +650,7 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
593
650
|
}
|
|
594
651
|
return somethingChanged;
|
|
595
652
|
}, _KupImageList_createItem = function _KupImageList_createItem(node) {
|
|
653
|
+
var _a, _b, _c;
|
|
596
654
|
const props = {
|
|
597
655
|
fit: true,
|
|
598
656
|
resource: node.icon,
|
|
@@ -603,9 +661,9 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
603
661
|
};
|
|
604
662
|
const image = h(FImage, Object.assign({}, props));
|
|
605
663
|
const label = h("div", { class: "image-list__label" }, node.value);
|
|
606
|
-
const hasExternalResource = props.resource.indexOf('.') > -1 ||
|
|
607
|
-
props.resource.indexOf('/') > -1 ||
|
|
608
|
-
props.resource.indexOf('\\') > -1;
|
|
664
|
+
const hasExternalResource = ((_a = props.resource) === null || _a === void 0 ? void 0 : _a.indexOf('.')) > -1 ||
|
|
665
|
+
((_b = props.resource) === null || _b === void 0 ? void 0 : _b.indexOf('/')) > -1 ||
|
|
666
|
+
((_c = props.resource) === null || _c === void 0 ? void 0 : _c.indexOf('\\')) > -1;
|
|
609
667
|
return (h(FCell, { cell: {
|
|
610
668
|
value: node.value,
|
|
611
669
|
icon: node.icon,
|
|
@@ -614,6 +672,7 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
614
672
|
cssClass: __classPrivateFieldGet(this, _KupImageList_kupManager, "f").data.cell.getObjectRelatedStyleClasses(node.obj, node.cssClass),
|
|
615
673
|
}, column: { name: 'IMAGE', title: 'Image' }, component: this, density: FCellPadding.NONE, row: Object.assign({}, node) }, h("div", { class: `image-list__wrapper${hasExternalResource ? ' images' : ''}` }, !hasExternalResource && (h("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", viewBox: "0 0 24 24" })), image, label)));
|
|
616
674
|
}, _KupImageList_createList = function _KupImageList_createList() {
|
|
675
|
+
var _a;
|
|
617
676
|
const nodes = [];
|
|
618
677
|
const items = this.currentNode ? this.currentNode.children : this.data;
|
|
619
678
|
for (let index = 0; items && index < items.length; index++) {
|
|
@@ -621,6 +680,7 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
621
680
|
const classObj = {
|
|
622
681
|
'image-list__item': true,
|
|
623
682
|
'mdc-ripple-surface': this.ripple ? true : false,
|
|
683
|
+
'image-list__item--active': ((_a = this.activeSelectedNode) === null || _a === void 0 ? void 0 : _a.value) === node.value,
|
|
624
684
|
};
|
|
625
685
|
const item = (h("div", { onContextMenu: (e) => {
|
|
626
686
|
e.preventDefault();
|
|
@@ -679,6 +739,7 @@ _KupImageList_clickTimeout = new WeakMap(), _KupImageList_kupManager = new WeakM
|
|
|
679
739
|
if (((_a = node === null || node === void 0 ? void 0 : node.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
680
740
|
this.currentNode = node;
|
|
681
741
|
}
|
|
742
|
+
this.activeSelectedNode = node;
|
|
682
743
|
this.kupClick.emit({
|
|
683
744
|
comp: this,
|
|
684
745
|
id: this.rootElement.id,
|
|
@@ -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_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_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_manageInputPanelCheck, _KupInputPanel_onCellUpdate, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN, _KupInputPanel_findTraversedFCell, _KupInputPanel_getEventDetails, _KupInputPanel_didLoadInteractables, _KupInputPanel_setFocusOnInputElement, _KupInputPanel_findFirstInput, _KupInputPanel_setAutoSkip;
|
|
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, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_manageInputPanelCheck, _KupInputPanel_onCellUpdate, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN, _KupInputPanel_findTraversedFCell, _KupInputPanel_getEventDetails, _KupInputPanel_didLoadInteractables, _KupInputPanel_setFocusOnInputElement, _KupInputPanel_findFirstInput, _KupInputPanel_setAutoSkip;
|
|
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";
|
|
@@ -35,6 +35,7 @@ import { FLabel } from "../../f-components/f-label/f-label";
|
|
|
35
35
|
import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc";
|
|
36
36
|
import { FTypography } from "../../f-components/f-typography/f-typography";
|
|
37
37
|
import { FTypographyType } from "../../f-components/f-typography/f-typography-declarations";
|
|
38
|
+
import { UseAsValue, } from "../../managers/kup-data/kup-data-declarations";
|
|
38
39
|
import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
|
|
39
40
|
import { KupPointerEventTypes } from "../../managers/kup-interact/kup-interact-declarations";
|
|
40
41
|
import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
|
|
@@ -248,7 +249,7 @@ export class KupInputPanel {
|
|
|
248
249
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
249
250
|
]
|
|
250
251
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
251
|
-
return (h(Host, { key: '
|
|
252
|
+
return (h(Host, { key: '0347e85caa65bc2cbbab726ebec3c14a89957e09', "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) => {
|
|
252
253
|
this.tabSelected = e.detail.node.id;
|
|
253
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) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK), "onKup-objectfield-searchpayload": (e) => {
|
|
254
255
|
this.kupInputPanelObjectFieldSearchPayload.emit(e.detail);
|
|
@@ -256,7 +257,7 @@ export class KupInputPanel {
|
|
|
256
257
|
this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
|
|
257
258
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
258
259
|
this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
|
|
259
|
-
} }, h("style", { key: '
|
|
260
|
+
} }, h("style", { key: 'cb11bd3c5747ec2796be74a5e5248ac6efe8c88a' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '50ea1fafbda4e62b01806ff02b07dc8e33c174d4', id: componentWrapperId }, inputPanelContent)));
|
|
260
261
|
}
|
|
261
262
|
disconnectedCallback() {
|
|
262
263
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -909,7 +910,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
909
910
|
let rowContent;
|
|
910
911
|
if (!((_a = layout === null || layout === void 0 ? void 0 : layout.sections) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
911
912
|
rowContent = inputPanelCell.cells
|
|
912
|
-
.filter(({ column }) => column.visible)
|
|
913
|
+
.filter(({ column }) => column.visible !== false)
|
|
913
914
|
.map((cell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, cell.cell, inputPanelCell.row, cell.column));
|
|
914
915
|
}
|
|
915
916
|
else {
|
|
@@ -1189,9 +1190,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1189
1190
|
});
|
|
1190
1191
|
const tabCustomStyle = '.tab-bar .tab-scroller .tab .tab__content { justify-content: flex-start; }';
|
|
1191
1192
|
return (h("div", { class: { 'input-panel__tabs_container': true } }, h("kup-tab-bar", { data: tabNodes, customStyle: tabCustomStyle }), sectionContent));
|
|
1193
|
+
}, _KupInputPanel_skipRenderField = function _KupInputPanel_skipRenderField(fieldCell) {
|
|
1194
|
+
return (!fieldCell || !fieldCell.cell || fieldCell.column.visible === false);
|
|
1192
1195
|
}, _KupInputPanel_renderField = function _KupInputPanel_renderField(cells, field) {
|
|
1193
1196
|
const fieldCell = cells.cells.find((cell) => cell.column.name === field.id);
|
|
1194
|
-
if (
|
|
1197
|
+
if (__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_skipRenderField).call(this, fieldCell)) {
|
|
1195
1198
|
return;
|
|
1196
1199
|
}
|
|
1197
1200
|
const colSpan = +field.colSpan > 0
|
|
@@ -1218,7 +1221,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1218
1221
|
return (h("div", { style: styleObj }, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, fieldCell.cell, cells.row, fieldCell.column)));
|
|
1219
1222
|
}, _KupInputPanel_renderAbsoluteField = function _KupInputPanel_renderAbsoluteField(cells, field, absoluteTblPositioningData) {
|
|
1220
1223
|
const fieldCell = cells.cells.find((cell) => cell.column.name === field.id);
|
|
1221
|
-
if (
|
|
1224
|
+
if (__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_skipRenderField).call(this, fieldCell)) {
|
|
1222
1225
|
return;
|
|
1223
1226
|
}
|
|
1224
1227
|
let length;
|
|
@@ -1309,7 +1312,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1309
1312
|
}));
|
|
1310
1313
|
this.inputPanelCells = inpuPanelCells;
|
|
1311
1314
|
}, _KupInputPanel_setData = function _KupInputPanel_setData(cell, column, layout) {
|
|
1312
|
-
const defaultProps = Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column, layout)), { disabled: !cell.isEditable, id: column.name });
|
|
1315
|
+
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 });
|
|
1313
1316
|
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
1314
1317
|
const _a = cell.data || {}, { data } = _a, noDataProps = __rest(_a, ["data"]);
|
|
1315
1318
|
return cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&
|
|
@@ -1390,6 +1393,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1390
1393
|
[FCellTypes.SWITCH, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_SWTAdapter).bind(this)],
|
|
1391
1394
|
[FCellTypes.TABLE, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_DataTableAdapter).bind(this)],
|
|
1392
1395
|
[FCellTypes.TIME, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_TimeAdapter).bind(this)],
|
|
1396
|
+
[FCellTypes.IMAGE_LIST, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_ImageListAdapter).bind(this)],
|
|
1393
1397
|
]);
|
|
1394
1398
|
const adapter = dataAdapterMap.get(cellType);
|
|
1395
1399
|
return adapter
|
|
@@ -1490,6 +1494,12 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1490
1494
|
label: fieldLabel || ' ',
|
|
1491
1495
|
value: currentValue || '',
|
|
1492
1496
|
};
|
|
1497
|
+
}, _KupInputPanel_ImageListAdapter = function _KupInputPanel_ImageListAdapter(_options, fieldLabel, currentValue) {
|
|
1498
|
+
return {
|
|
1499
|
+
initialValue: currentValue || '',
|
|
1500
|
+
leadingLabel: fieldLabel || '',
|
|
1501
|
+
value: currentValue || '',
|
|
1502
|
+
};
|
|
1493
1503
|
}, _KupInputPanel_TimeAdapter = function _KupInputPanel_TimeAdapter(_options, fieldLabel, currentValue) {
|
|
1494
1504
|
return {
|
|
1495
1505
|
data: {
|
|
@@ -1612,7 +1622,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1612
1622
|
}, _KupInputPanel_getAutocompleteEventCallback = function _KupInputPanel_getAutocompleteEventCallback(detail, cell) {
|
|
1613
1623
|
this.optionsHandler(cell.fun, detail.inputValue, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this), detail.id).then((options) => {
|
|
1614
1624
|
var _a, _b, _c, _d, _e, _f;
|
|
1615
|
-
const visibleColumns = ((_a = options === null || options === void 0 ? void 0 : options.columns) === null || _a === void 0 ? void 0 : _a.filter((col) => (col === null || col === void 0 ? void 0 : col.visible)
|
|
1625
|
+
const visibleColumns = ((_a = options === null || options === void 0 ? void 0 : options.columns) === null || _a === void 0 ? void 0 : _a.filter((col) => (col === null || col === void 0 ? void 0 : col.visible) !== false).map((col) => col.name)) || [];
|
|
1616
1626
|
const filteredRows = (_b = options === null || options === void 0 ? void 0 : options.rows) === null || _b === void 0 ? void 0 : _b.map((row) => {
|
|
1617
1627
|
const { cells } = row;
|
|
1618
1628
|
const filteredCells = visibleColumns.reduce((acc, columnName) => {
|
|
@@ -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: '5c5d09e1114809cae5e4d04d2810fcbe38919665', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'ef0cc102b4f61b6cb0b6a11b990d8a683d3dadbb', 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: '08418ea5f354cd9703db966a32ba3a2bde766474', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '8575071216916dbd3994f778e3811762c4b1ba14', 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: '830ea284f7a58f781306f46dbe30917cf24f953f', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'd76171580d775362c392e3ad8fc00370f9ab7b2f', 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: '81b641d30123794bacaecc19a99f4ec544c84a8e', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '175cb426d36b630d55bcc637d3d5b7e54ce4cede', 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: '15f07a20fc21b25f6faad4a2a7f5afa3b38a1914', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '8880c4646eb4d39529164b920b6c06f6ca9d574c', 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: 'a43bbf16254b87ba99dcd0380fb6dd48d459587e', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '37fe8e3e880ad99cd2ce8699062ea7aaf20b8e2e', 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: '3f24c39011fcb687a3ab2887020ed239e66f4127', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '42289a40edc167d2ddb4b99cd80c1343c9904142', 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: '8031d9825c3efdfc622b2026309c499b31619be2', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '60b60ed680daf4a6bfcfca0c1ce55debbff62235', 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: '24bc59869d647844dcbe9f24acd37c661c8dcffd', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '29f284cbe18ac03051367321466d2e369860c66e', 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: '1a843ca9f51d0686f5db923cbfbfbeac4c200105' }, 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: 'd150ddb67a168132fc8127e310f628acc9387cce', class: className }, h("style", { key: '572fb2b794e42339a3d85dc7df73bb59829a4c23' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: 'e355c76efbd00ed487c8f1d20e3ea1de360e93ec', id: componentWrapperId }, content)));
|
|
160
160
|
}
|
|
161
161
|
disconnectedCallback() {
|
|
162
162
|
var _a;
|