@sme.up/ketchup 10.3.3 → 10.3.5
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-e5ff9c98.js} +38 -11
- package/dist/cjs/{f-chip-f2d6124b.js → f-chip-f35c1b42.js} +11 -2
- package/dist/cjs/{f-object-field-3810f288.js → f-object-field-04065abd.js} +2 -2
- package/dist/cjs/{f-paginator-utils-3855e84c.js → f-paginator-utils-3ada5c71.js} +1 -1
- package/dist/cjs/{f-text-field-a34a5979.js → f-text-field-0eda27cd.js} +1 -1
- package/dist/cjs/index-c7d441d8.js +2 -6
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ketchup.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +3 -3
- package/dist/cjs/{kup-autocomplete_29.cjs.entry.js → kup-autocomplete_30.cjs.entry.js} +1611 -1179
- package/dist/cjs/kup-box.cjs.entry.js +9 -9
- package/dist/cjs/kup-calendar.cjs.entry.js +3 -3
- package/dist/cjs/kup-card-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-cell.cjs.entry.js +6 -6
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +8 -8
- package/dist/cjs/kup-dashboard.cjs.entry.js +3 -3
- package/dist/cjs/{kup-data-table-helper-f53032e7.js → kup-data-table-helper-0b79fb90.js} +2 -2
- package/dist/cjs/{kup-dates-bc4cf9d0.js → kup-dates-8619368a.js} +3 -7
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +2 -2
- package/dist/cjs/kup-editor.cjs.entry.js +45 -35
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-gantt_10.cjs.entry.js +25 -25
- package/dist/cjs/kup-grid.cjs.entry.js +2 -2
- package/dist/cjs/kup-htm.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-input-panel.cjs.entry.js +25 -16
- package/dist/cjs/kup-lazy.cjs.entry.js +13 -13
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-c70d3188.js → kup-manager-5cdad0f5.js} +42 -16
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +4 -4
- package/dist/cjs/kup-object-field.cjs.entry.js +5 -5
- package/dist/cjs/kup-pdf.cjs.entry.js +3 -3
- package/dist/cjs/{kup-planner-renderer-helper-63478d1c.js → kup-planner-renderer-helper-eaca3f99.js} +1 -1
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +4 -4
- package/dist/cjs/kup-planner.cjs.entry.js +4 -4
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/kup-txt.cjs.entry.js +3 -3
- package/dist/cjs/kup-typography-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-typography.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/debug.js +9 -2536
- 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-helper.js +2 -2
- package/dist/collection/components/kup-data-table/kup-data-table.css +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +51 -28
- 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 +65 -8
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +21 -11
- 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 +11 -8
- 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 +34 -7
- 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/managers/kup-dates/kup-dates.js +3 -7
- package/dist/collection/managers/kup-objects/kup-objects.js +1 -1
- package/dist/collection/utils/cell-utils.js +21 -7
- package/dist/collection/utils/filters/filters.js +7 -4
- 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 +26 -21
- 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-custom-task-list-table.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 +46 -32
- 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-7bdb5142.js → p-03924c38.js} +69 -54
- package/dist/components/{p-6992b96f.js → p-28774fba.js} +4 -4
- package/dist/components/{p-de04aef6.js → p-28f24feb.js} +17 -17
- 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-286915d4.js → p-3901ad05.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-67ba8cd7.js → p-5579a90c.js} +1 -1
- package/dist/components/{p-c7c7f760.js → p-57a120a5.js} +1 -1
- package/dist/components/{p-c325da75.js → p-5db0bb55.js} +4 -4
- package/dist/components/{p-3b4cdace.js → p-7aa9d49d.js} +7 -7
- package/dist/components/{p-a22e5ee4.js → p-80b94551.js} +25 -20
- package/dist/components/{p-3ba7c133.js → p-89ff2fea.js} +26 -21
- package/dist/components/{p-1581348d.js → p-9d9181cf.js} +3 -7
- package/dist/components/{p-97053b4d.js → p-af0a6cfe.js} +2 -2
- package/dist/components/{p-d0e33e04.js → p-b45eb398.js} +14 -14
- 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-55fda958.js → p-dd93c5e7.js} +1553 -759
- package/dist/components/{p-9859e801.js → p-df77b97b.js} +43 -17
- package/dist/esm/{f-cell-ae0c965d.js → f-cell-d72f5a9c.js} +38 -11
- package/dist/esm/{f-chip-29242e70.js → f-chip-663db488.js} +11 -2
- package/dist/esm/{f-object-field-75069ac2.js → f-object-field-afe7604f.js} +2 -2
- package/dist/esm/{f-paginator-utils-212f93c3.js → f-paginator-utils-b6924c55.js} +1 -1
- package/dist/esm/{f-text-field-ebe023fb.js → f-text-field-40f1ad00.js} +1 -1
- package/dist/esm/index-9b0f4a0d.js +2 -6
- package/dist/esm/index.js +2 -2
- package/dist/esm/ketchup.js +1 -1
- package/dist/esm/kup-accordion.entry.js +2 -2
- package/dist/esm/kup-activity-timeline.entry.js +3 -3
- package/dist/esm/{kup-autocomplete_29.entry.js → kup-autocomplete_30.entry.js} +1611 -1180
- package/dist/esm/kup-box.entry.js +9 -9
- package/dist/esm/kup-calendar.entry.js +3 -3
- package/dist/esm/kup-card-list.entry.js +2 -2
- package/dist/esm/kup-cell.entry.js +6 -6
- package/dist/esm/kup-custom-task-list-header_4.entry.js +8 -8
- package/dist/esm/kup-dashboard.entry.js +3 -3
- package/dist/esm/{kup-data-table-helper-ca11e6e9.js → kup-data-table-helper-8f020338.js} +2 -2
- package/dist/esm/{kup-dates-da19044e.js → kup-dates-77f1a451.js} +3 -7
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +2 -2
- package/dist/esm/kup-editor.entry.js +45 -35
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-gantt_10.entry.js +25 -25
- package/dist/esm/kup-grid.entry.js +2 -2
- package/dist/esm/kup-htm.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-input-panel.entry.js +25 -16
- package/dist/esm/kup-lazy.entry.js +13 -13
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-63a8048f.js → kup-manager-b367be3b.js} +43 -17
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +4 -4
- package/dist/esm/kup-object-field.entry.js +5 -5
- package/dist/esm/kup-pdf.entry.js +3 -3
- package/dist/esm/{kup-planner-renderer-helper-4952d0a1.js → kup-planner-renderer-helper-373880b5.js} +1 -1
- package/dist/esm/kup-planner-renderer.entry.js +4 -4
- package/dist/esm/kup-planner.entry.js +4 -4
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +3 -3
- package/dist/esm/kup-txt.entry.js +3 -3
- package/dist/esm/kup-typography-list.entry.js +3 -3
- package/dist/esm/kup-typography.entry.js +4 -4
- 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-9b200a90.entry.js → p-006b5782.entry.js} +1 -1
- package/dist/ketchup/p-058def11.entry.js +1 -0
- package/dist/ketchup/{p-5bf3d60d.entry.js → p-0666ba27.entry.js} +1 -1
- package/dist/ketchup/{p-b91e3bae.entry.js → p-17b25b3d.entry.js} +1 -1
- package/dist/ketchup/{p-4365fbd3.entry.js → p-26206b66.entry.js} +3 -3
- package/dist/ketchup/{p-bc789017.entry.js → p-26a20d81.entry.js} +1 -1
- package/dist/ketchup/p-2958b4e6.entry.js +8 -0
- package/dist/ketchup/{p-e705eb4a.js → p-2e012afe.js} +1 -1
- package/dist/ketchup/{p-6f1dec16.entry.js → p-32ced542.entry.js} +1 -1
- package/dist/ketchup/{p-6b529a6f.entry.js → p-43bfca60.entry.js} +2 -2
- package/dist/ketchup/{p-11e54526.entry.js → p-4735c623.entry.js} +1 -1
- package/dist/ketchup/{p-8ba1d444.entry.js → p-4af4b7d3.entry.js} +1 -1
- package/dist/ketchup/{p-e7293ae8.entry.js → p-4c8edfb1.entry.js} +1 -1
- package/dist/ketchup/{p-610faea9.js → p-51cc836a.js} +1 -1
- package/dist/ketchup/{p-43f12940.entry.js → p-5bf264dd.entry.js} +1 -1
- package/dist/ketchup/{p-0f9b546a.js → p-5f645f29.js} +1 -1
- package/dist/ketchup/{p-fb7c0958.entry.js → p-62edfd5a.entry.js} +1 -1
- package/dist/ketchup/p-6b185239.entry.js +1 -0
- package/dist/ketchup/{p-a2d40711.entry.js → p-6e6d3296.entry.js} +1 -1
- package/dist/ketchup/{p-260587c5.entry.js → p-75deebdb.entry.js} +1 -1
- package/dist/ketchup/{p-7dfc42f0.entry.js → p-8bc2888a.entry.js} +1 -1
- package/dist/ketchup/p-8be7a37f.js +1 -0
- package/dist/ketchup/{p-9baa1d6d.entry.js → p-928adf93.entry.js} +1 -1
- package/dist/ketchup/{p-434f2c39.entry.js → p-941beedb.entry.js} +1 -1
- package/dist/ketchup/{p-7b326bde.entry.js → p-9c13c092.entry.js} +1 -1
- package/dist/ketchup/{p-b068a383.entry.js → p-9ff4c3e5.entry.js} +1 -1
- package/dist/ketchup/{p-eb090acd.entry.js → p-b0550f15.entry.js} +2 -2
- package/dist/ketchup/p-b39c7a22.js +1 -0
- package/dist/ketchup/{p-c8cd012e.entry.js → p-b9350213.entry.js} +1 -1
- package/dist/ketchup/{p-4677cfd1.entry.js → p-c0928fec.entry.js} +1 -1
- package/dist/ketchup/{p-4cfa35bc.js → p-c109ce22.js} +1 -1
- package/dist/ketchup/{p-d84e4e90.entry.js → p-c2531d28.entry.js} +1 -1
- package/dist/ketchup/{p-1ee561ba.js → p-cabebabc.js} +1 -1
- package/dist/ketchup/p-d49f1a0d.js +1 -0
- package/dist/ketchup/{p-8610d5b5.js → p-d696e519.js} +3 -3
- package/dist/ketchup/{p-3533879b.entry.js → p-def6d8b4.entry.js} +1 -1
- package/dist/ketchup/p-eb771c1b.entry.js +1 -0
- package/dist/ketchup/{p-81743364.entry.js → p-ebf955a8.entry.js} +1 -1
- package/dist/ketchup/{p-f87b7768.entry.js → p-ec1129bf.entry.js} +1 -1
- package/dist/ketchup/{p-fe42ae2d.entry.js → p-f2bfb53c.entry.js} +1 -1
- package/dist/ketchup/{p-6c41cd20.entry.js → p-fac09a35.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 +11 -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/managers/kup-dates/kup-dates.d.ts +2 -2
- package/dist/types/utils/cell-utils.d.ts +1 -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-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-b6beace3.entry.js +0 -1
- package/dist/ketchup/p-da694791.js +0 -1
- package/dist/ketchup/p-fb82cad9.entry.js +0 -1
|
@@ -32,6 +32,7 @@ import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declaration
|
|
|
32
32
|
import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc";
|
|
33
33
|
import { FImage } from "../../f-components/f-image/f-image";
|
|
34
34
|
import { isExpandable } from "./kup-tree-helper";
|
|
35
|
+
const dom = document.documentElement;
|
|
35
36
|
export class KupTree {
|
|
36
37
|
constructor() {
|
|
37
38
|
_KupTree_instances.add(this);
|
|
@@ -331,7 +332,7 @@ export class KupTree {
|
|
|
331
332
|
this.columnMenuCard.setAttribute('data-column', column);
|
|
332
333
|
this.columnMenuCard.data = this.columnMenuInstance.prepData(this, getColumnByName(this.getVisibleColumns(), column));
|
|
333
334
|
this.columnMenuInstance.open(this, column);
|
|
334
|
-
this.columnMenuInstance.reposition(this, this.columnMenuCard);
|
|
335
|
+
this.columnMenuInstance.reposition(this, this.columnMenuCard, 'th[data-column="' + column + '"]');
|
|
335
336
|
this.kupTreeColumnMenu.emit({
|
|
336
337
|
comp: this,
|
|
337
338
|
id: this.rootElement.id,
|
|
@@ -1177,7 +1178,9 @@ export class KupTree {
|
|
|
1177
1178
|
totalMenu = (h("kup-list", { class: `total-menu`, data: listData, id: "totals-menu", "is-menu": true, keyboardNavigation: true, "menu-visible": true, "onkup-list-click": (event) => this.onTotalsChange(event, column) }));
|
|
1178
1179
|
}
|
|
1179
1180
|
const totalValue = this.footer[column.name] != null
|
|
1180
|
-
? getValueForDisplay(this.footer[column.name], column.obj
|
|
1181
|
+
? getValueForDisplay(this.footer[column.name], dom.ketchup.objects.isDate(column.obj)
|
|
1182
|
+
? column.obj
|
|
1183
|
+
: { t: 'NR', p: '', k: '' }, column.decimals)
|
|
1181
1184
|
: '';
|
|
1182
1185
|
const totalsClass = `totals-value ${isNegativeNumber(this.footer[column.name])
|
|
1183
1186
|
? FCellClasses.TEXT_DANGER
|
|
@@ -1368,19 +1371,19 @@ export class KupTree {
|
|
|
1368
1371
|
const visibleHeader = this.showHeader && this.showColumns;
|
|
1369
1372
|
let filterField = null;
|
|
1370
1373
|
if (this.globalFilter) {
|
|
1371
|
-
filterField = (h("div", { key: '
|
|
1374
|
+
filterField = (h("div", { key: 'a164d7e8f18b481ff2687f10e6ec4ae8392c4f8a', id: "global-filter" }, h("kup-text-field", { key: '5d62acc3b0446930359f6f820fe7a3cc7196e0e7', fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
|
|
1372
1375
|
window.clearTimeout(this.globalFilterTimeout);
|
|
1373
1376
|
this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
|
|
1374
1377
|
} })));
|
|
1375
1378
|
}
|
|
1376
|
-
return (h(Host, { key: '
|
|
1379
|
+
return (h(Host, { key: '3626894a3d67dabf77e68f928accb17097fce8d3', "onKup-cell-click": (e) => {
|
|
1377
1380
|
this.kupTreeCellClick.emit(e.detail);
|
|
1378
|
-
} }, h("style", { key: '
|
|
1379
|
-
el) }, h("table", { key: '
|
|
1381
|
+
} }, h("style", { key: '5de7472c79d4f759e0f8276c3302cf75d62251ea' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'ef9537a9bf9721f6ead24d98651d8e663de56810', id: componentWrapperId, class: wrapperClass, style: wrapperStyle }, filterField, h("div", { key: '25a988d38c3b862e46d373feee071ca2859e5d26', class: "wrapper", ref: (el) => (this.treeWrapperRef =
|
|
1382
|
+
el) }, h("table", { key: '5e393cb99e10f4e8ac08d7ab419ac87d6416e0cb', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
|
|
1380
1383
|
e.preventDefault();
|
|
1381
|
-
} }, h("thead", { key: '
|
|
1384
|
+
} }, h("thead", { key: 'cb18a8efc949210ccc122c30110a37f83af5c0e9', class: {
|
|
1382
1385
|
'header--is-visible': visibleHeader,
|
|
1383
|
-
} }, h("tr", { key: '
|
|
1386
|
+
} }, h("tr", { key: '131776bcf65d712c080d835c48d97a93cb65b7c7' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: '3d8fd986909fe53ff4c59c6a4bc59c89ed065960' }, treeNodes), (this.showFooter || this.hasTotals()) &&
|
|
1384
1387
|
this.columns
|
|
1385
1388
|
? this.renderFooter()
|
|
1386
1389
|
: null)))));
|
|
@@ -74,7 +74,7 @@ export class KupTxt {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
const value = this.getValue();
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '205fec845d1dac2f25d9544f15d435177c4eabf1' }, h("style", { key: '76e70793d8aaa42a5a8e05450ccd54f1e0c5b579' }, __classPrivateFieldGet(this, _KupTxt_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'ff15e4cd8d075189d268c97d3d7d5c9df46cf5cd', id: componentWrapperId }, h("div", { key: '0be7e4dbcee7c30e5c5a6b6c2d15701e12bc8a1d', innerHTML: value }))));
|
|
78
78
|
}
|
|
79
79
|
disconnectedCallback() {
|
|
80
80
|
__classPrivateFieldGet(this, _KupTxt_kupManager, "f").theme.unregister(this);
|
|
@@ -235,7 +235,7 @@ export class KupTypography {
|
|
|
235
235
|
const classObjParent = {
|
|
236
236
|
'kup-typography--wrap': props.toolbar ? true : false,
|
|
237
237
|
};
|
|
238
|
-
return (h(Host, { key: '
|
|
238
|
+
return (h(Host, { key: 'fc9ed8df1a7996737fa318223fa4a26c048af0da' }, h("style", { key: '7ab80157cf8d7d13198e389b5c2005bc23379f50' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '4058a007f7338cb3f4c69e9b7ab8bb2bc0c5d29f', id: componentWrapperId, class: classObjParent, onClick: () => this.onKupClick }, h(FTypography, Object.assign({ key: '039db543cb870340827953a4c43b092d7dfcb936' }, props)), this.infoIcon && (h(FImage, Object.assign({ key: '3c7ff0751057b4ef2d2f02eadd0f4f069288545a' }, infoIcon, { onClick: async (event) => {
|
|
239
239
|
event.stopPropagation();
|
|
240
240
|
const el = event.currentTarget;
|
|
241
241
|
const data = await this.infoCallBack();
|
|
@@ -246,7 +246,7 @@ export class KupTypography {
|
|
|
246
246
|
else {
|
|
247
247
|
this.kupManager.debug.logMessage(this, 'Toolbar data is empty, not opening dropdown.');
|
|
248
248
|
}
|
|
249
|
-
} }))), this.toolbar && (h(FImage, Object.assign({ key: '
|
|
249
|
+
} }))), this.toolbar && (h(FImage, Object.assign({ key: 'd66f1503ff3d22223d14f0247cfaaf725352935b' }, toolbarIcon, { onClick: async (event) => {
|
|
250
250
|
event.stopPropagation();
|
|
251
251
|
const el = event.currentTarget;
|
|
252
252
|
const data = await this.toolbarCallback();
|
|
@@ -160,7 +160,7 @@ export class KupTypographyList {
|
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
162
|
const typograhy = this.renderTypographys();
|
|
163
|
-
return (h(Host, { key: '
|
|
163
|
+
return (h(Host, { key: '58356b7523f44ef17cd4a535119254b6efed5b7a' }, h("style", { key: 'be31c2f145c03693055bc90fa818781e985b0c0a' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '899b21cbcf02ebca7791c9983a1893c8625252ab', id: componentWrapperId }, h("div", { key: '87e0370fa8d496f789bd047f33a39cf2a40952e3', class: "typographies-wrapper" }, typograhy))));
|
|
164
164
|
}
|
|
165
165
|
disconnectedCallback() {
|
|
166
166
|
this.kupManager.theme.unregister(this);
|
|
@@ -107,6 +107,7 @@ export const FCellShapes = {
|
|
|
107
107
|
TABLE: 'TBL',
|
|
108
108
|
TEXT_FIELD: 'ITX',
|
|
109
109
|
TIME: 'TIM',
|
|
110
|
+
IMAGE_LIST: 'IML',
|
|
110
111
|
};
|
|
111
112
|
/**
|
|
112
113
|
* Supported cell types.
|
|
@@ -144,6 +145,7 @@ export var FCellTypes;
|
|
|
144
145
|
FCellTypes["TABLE"] = "table";
|
|
145
146
|
FCellTypes["TIME"] = "time";
|
|
146
147
|
FCellTypes["LABEL"] = "label";
|
|
148
|
+
FCellTypes["IMAGE_LIST"] = "image-list";
|
|
147
149
|
})(FCellTypes || (FCellTypes = {}));
|
|
148
150
|
export const editableTypes = [
|
|
149
151
|
FCellTypes.AUTOCOMPLETE,
|
|
@@ -65,7 +65,7 @@ export const FCell = (props, children) => {
|
|
|
65
65
|
'monospace c-pre': (_c = cell.data) === null || _c === void 0 ? void 0 : _c.legacyLook,
|
|
66
66
|
};
|
|
67
67
|
let content = valueToDisplay;
|
|
68
|
-
if (!cell.data) {
|
|
68
|
+
if (!cell.data || Object.keys(cell.data).length === 0) {
|
|
69
69
|
setDefaults(cellType, cell);
|
|
70
70
|
}
|
|
71
71
|
if (isEditable && editableTypes.includes(cellType)) {
|
|
@@ -138,6 +138,21 @@ export const FCell = (props, children) => {
|
|
|
138
138
|
};
|
|
139
139
|
infoEl = h(FImage, Object.assign({}, fProps));
|
|
140
140
|
}
|
|
141
|
+
// For input panel G Cells: handle textfield instead of cell background/text colors
|
|
142
|
+
const isInputPanel = props.component.rootElement.tagName ===
|
|
143
|
+
KupTagNames.INPUT_PANEL;
|
|
144
|
+
if (isInputPanel && cell.style) {
|
|
145
|
+
if (cell.style.backgroundColor) {
|
|
146
|
+
const color = cell.style.backgroundColor;
|
|
147
|
+
cell.style.backgroundColor = '';
|
|
148
|
+
cell.style['--kup-textfield-background-color'] = color;
|
|
149
|
+
}
|
|
150
|
+
if (cell.style.color) {
|
|
151
|
+
const color = cell.style.color;
|
|
152
|
+
cell.style.color = '';
|
|
153
|
+
cell.style['--kup-textfield-color'] = color;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
141
156
|
return (h("div", { onKeyUp: (e) => cellEvent(e, props, cellType, FCellEvents.KEYUP), class: classObj, "kup-get-cell-props": () => {
|
|
142
157
|
return props;
|
|
143
158
|
}, ref: (el) => (cell.element = el), style: cell.style }, h("div", { class: "f-cell__content", style: cell.styleContent, title: cellTitle, onMouseEnter: (e) => handleMouseEnter(e, props, cellType), onMouseLeave: (e) => handleMouseLeave(e) }, children && children.length > 0
|
|
@@ -217,11 +232,13 @@ const MainRADAdapter = (options, _fieldLabel, currentValue, cell) => {
|
|
|
217
232
|
return Object.assign(Object.assign({}, cell.data), newData);
|
|
218
233
|
};
|
|
219
234
|
const MainCMBandACPAdapter = (options, fieldLabel, currentValue, cell, _id) => {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
235
|
+
if (options) {
|
|
236
|
+
const configCMBandACP = CMBandACPAdapter(currentValue, fieldLabel, [], cell.data);
|
|
237
|
+
configCMBandACP.data['kup-list'].data = optionsTreeComboAdapter(options, currentValue);
|
|
238
|
+
if (!cell.data) {
|
|
239
|
+
return configCMBandACP;
|
|
240
|
+
}
|
|
241
|
+
return Object.assign(Object.assign({}, configCMBandACP), cell.data);
|
|
225
242
|
}
|
|
226
243
|
};
|
|
227
244
|
const optionsTreeComboAdapter = (options, currentValue) => {
|
|
@@ -576,7 +593,8 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
576
593
|
if (content && content != '') {
|
|
577
594
|
const cellValueNumber = dom.ketchup.math.numberifySafe(cell.value);
|
|
578
595
|
const cellValue = getCellValueForDisplay(column, cell);
|
|
579
|
-
|
|
596
|
+
const hasCustomColor = Boolean(cell.style && cell.style['color']);
|
|
597
|
+
if (!hasCustomColor && cellValueNumber < 0) {
|
|
580
598
|
classObj[FCellClasses.TEXT_DANGER] = true;
|
|
581
599
|
}
|
|
582
600
|
if (isAutoCentered(props)) {
|
|
@@ -593,6 +611,9 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
593
611
|
return h(FSwitch, Object.assign({}, subcomponentProps));
|
|
594
612
|
case FCellTypes.LABEL:
|
|
595
613
|
return h(FLabel, { text: cell.value, classes: "f-cell__text" });
|
|
614
|
+
case FCellTypes.IMAGE_LIST:
|
|
615
|
+
const activeNode = cell.data.data.find((node) => node.value === cell.value) || null;
|
|
616
|
+
return (h("kup-image-list", Object.assign({ ripple: true }, cell.data, { "onKup-imagelist-click": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), activeNode: activeNode })));
|
|
596
617
|
default:
|
|
597
618
|
return (h("div", { class: "f-cell__text" }, cell.data.displayMode
|
|
598
619
|
? adaptContentToDisplayMode(cell, content, '-')
|
|
@@ -878,6 +899,12 @@ function cellEvent(e, props, cellType, cellEventName) {
|
|
|
878
899
|
cell.data.data = e.detail.comp.data;
|
|
879
900
|
}
|
|
880
901
|
break;
|
|
902
|
+
case FCellTypes.IMAGE_LIST:
|
|
903
|
+
const obj = e.detail
|
|
904
|
+
.details.cell.obj;
|
|
905
|
+
const cellValue = e
|
|
906
|
+
.detail.details.cell.value;
|
|
907
|
+
value = (obj === null || obj === void 0 ? void 0 : obj.k) ? obj.k : cellValue;
|
|
881
908
|
}
|
|
882
909
|
if (cell.obj) {
|
|
883
910
|
cell.obj.k = value === null || value === void 0 ? void 0 : value.toString();
|
|
@@ -69,8 +69,9 @@ function createChipList(props, isChoice, isFilter, isInput) {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
function createChip(chip, disabled) {
|
|
72
|
+
var _a;
|
|
72
73
|
const onlyIcon = !!(chip.icon && !chip.value);
|
|
73
|
-
let componentClass = `chip ${onlyIcon ? 'chip--only-icon' : ''} ${disabled
|
|
74
|
+
let componentClass = `chip ${onlyIcon ? 'chip--only-icon' : ''} ${disabled ? 'chip--disabled' : ''}`;
|
|
74
75
|
let iconEl = [];
|
|
75
76
|
let iconClass = 'chip__icon chip__icon--leading';
|
|
76
77
|
if (isFilter || isChoice) {
|
|
@@ -100,13 +101,18 @@ function createChipList(props, isChoice, isFilter, isInput) {
|
|
|
100
101
|
let chipText = getIdOfItemByDisplayMode(chip, chip.value == '' ? ItemsDisplayMode.CODE : props.displayMode, ' - ');
|
|
101
102
|
return (h("div", { class: componentClass, "data-value": chip.id, onClick: props.onClick && props.onClick[i]
|
|
102
103
|
? props.onClick[i].bind(props.onClick[i], chip)
|
|
104
|
+
: null, onContextMenu: props.onContextMenu && props.onContextMenu[i]
|
|
105
|
+
? props.onContextMenu[i].bind(props.onContextMenu[i], chip)
|
|
103
106
|
: null, role: "row", title: chip.title ? chip.title : '' }, h("span", { class: "chip-set__indent" }), iconEl, h("span", { role: "gridcell" }, h("span", { role: "button", tabindex: i, class: "chip__primary-action",
|
|
104
107
|
// @ts-ignore
|
|
105
108
|
value: chip.id, checked: chip.checked, onBlur: props.onBlur && props.onBlur[i]
|
|
106
109
|
? props.onBlur[i].bind(props.onBlur[i], chip)
|
|
107
110
|
: null, onFocus: props.onFocus && props.onFocus[i]
|
|
108
111
|
? props.onFocus[i].bind(props.onFocus[i], chip)
|
|
109
|
-
: null }, h("span", { class: "chip__text" }, chipText))),
|
|
112
|
+
: null }, h("span", { class: "chip__text" }, chipText))), ((_a = props.hasFilter) === null || _a === void 0 ? void 0 : _a[i]) && (h("span", { role: "gridcell" }, h("span", { tabindex: "-1", class: `kup-icon chip__icon ${KupThemeIconValues.FILTER_REMOVE.replace('--', '')}`, onClick: props.onClearFilterClick &&
|
|
113
|
+
props.onClearFilterClick[i]
|
|
114
|
+
? props.onClearFilterClick[i].bind(props.onClearFilterClick[i], chip)
|
|
115
|
+
: null }))), isInput ? (h("span", { role: "gridcell" }, h("span", { tabindex: "-1", class: `kup-icon chip__icon ${KupThemeIconValues.CLEAR.replace('--', '')}`, onClick: props.onIconClick && props.onIconClick[i]
|
|
110
116
|
? props.onIconClick[i].bind(props.onIconClick[i], chip)
|
|
111
117
|
: null }))) : null));
|
|
112
118
|
}
|
|
@@ -31,9 +31,9 @@ export function getCellValue(dataset, column, sorted, univocal) {
|
|
|
31
31
|
extractColumnValues(rows, column, values, univocal);
|
|
32
32
|
if (sorted == true) {
|
|
33
33
|
values.sort((n1, n2) => {
|
|
34
|
-
return compareValues(
|
|
34
|
+
return compareValues(n1.obj, kupObjects.isDate(n1.obj) || kupObjects.isNumber(n1.obj)
|
|
35
35
|
? n1.value
|
|
36
|
-
: getValueForDisplay2(n1, column),
|
|
36
|
+
: getValueForDisplay2(n1, column), n2.obj, kupObjects.isDate(n2.obj) || kupObjects.isNumber(n2.obj)
|
|
37
37
|
? n2.value
|
|
38
38
|
: getValueForDisplay2(n2, column), SortMode.A);
|
|
39
39
|
});
|
|
@@ -14,3 +14,8 @@ export var DropDownAction;
|
|
|
14
14
|
DropDownAction["CODVER"] = "cod_ver";
|
|
15
15
|
DropDownAction["COMMAND"] = "command";
|
|
16
16
|
})(DropDownAction || (DropDownAction = {}));
|
|
17
|
+
export var UseAsValue;
|
|
18
|
+
(function (UseAsValue) {
|
|
19
|
+
UseAsValue["KEY"] = "Key";
|
|
20
|
+
UseAsValue["DEC"] = "Dec";
|
|
21
|
+
})(UseAsValue || (UseAsValue = {}));
|
|
@@ -194,7 +194,7 @@ export class KupDates {
|
|
|
194
194
|
* @param {dayjs.ConfigType} input - Date to be formatted.
|
|
195
195
|
* @param {string} format - Output format.
|
|
196
196
|
* @see https://day.js.org/docs/en/display/format
|
|
197
|
-
|
|
197
|
+
**/
|
|
198
198
|
format(input, format) {
|
|
199
199
|
if (!format) {
|
|
200
200
|
format = 'L'; // MM/DD/YYYY, DD/MM/YYYY depending on locale
|
|
@@ -312,12 +312,8 @@ export class KupDates {
|
|
|
312
312
|
* @returns {Date} Date object.
|
|
313
313
|
*/
|
|
314
314
|
toDate(input, format) {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
return dayjs.utc(input).toDate();
|
|
320
|
-
}
|
|
315
|
+
const parsed = format ? dayjs.utc(input, format) : dayjs.utc(input);
|
|
316
|
+
return parsed.isValid() ? parsed.toDate() : null;
|
|
321
317
|
}
|
|
322
318
|
/**
|
|
323
319
|
* Converts the input in a Dayjs object.
|
|
@@ -106,20 +106,32 @@ export function compareValues(obj1, value1, obj2, value2, sortMode) {
|
|
|
106
106
|
v2 = dom.ketchup.math.numberifySafe(s2);
|
|
107
107
|
}
|
|
108
108
|
else if (dom.ketchup.objects.isDate(obj1)) {
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
const firstDateValue = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE));
|
|
110
|
+
const secondDateValue = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE));
|
|
111
|
+
if (firstDateValue && secondDateValue) {
|
|
112
|
+
v1 = firstDateValue;
|
|
113
|
+
v2 = secondDateValue;
|
|
114
|
+
}
|
|
111
115
|
}
|
|
112
116
|
else if (dom.ketchup.objects.isTime(obj1)) {
|
|
113
117
|
// Previous code could not work because dayjs
|
|
114
118
|
// returns an invalid date when it tries to parse a time
|
|
115
119
|
// This solution is simpler and it works because the time format
|
|
116
120
|
// was assumed to be equals to HH:mm:ss or HH:mm
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
const firstTimeValue = Number(s1.replace(/:/g, ''));
|
|
122
|
+
const secondTimeValue = Number(s2.replace(/:/g, ''));
|
|
123
|
+
if (!Number.isNaN(firstTimeValue) && !Number.isNaN(secondTimeValue)) {
|
|
124
|
+
v1 = firstTimeValue;
|
|
125
|
+
v2 = secondTimeValue;
|
|
126
|
+
}
|
|
119
127
|
}
|
|
120
128
|
else if (dom.ketchup.objects.isTimestamp(obj1)) {
|
|
121
|
-
|
|
122
|
-
|
|
129
|
+
const firstTimestampValue = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s1, KupDatesFormats.ISO_DATE), KupDatesFormats.ISO_DATE_TIME);
|
|
130
|
+
const secondTimestampValue = dom.ketchup.dates.toDate(dom.ketchup.dates.format(s2, KupDatesFormats.ISO_DATE), KupDatesFormats.ISO_DATE_TIME);
|
|
131
|
+
if (firstTimestampValue && secondTimestampValue) {
|
|
132
|
+
v1 = firstTimestampValue;
|
|
133
|
+
v2 = secondTimestampValue;
|
|
134
|
+
}
|
|
123
135
|
}
|
|
124
136
|
if (v1 > v2) {
|
|
125
137
|
return sm * 1;
|
|
@@ -164,11 +176,13 @@ export function isNegativeNumber(value) {
|
|
|
164
176
|
// -------------
|
|
165
177
|
// ADAPTERS from SmeupDataTable to FCell data attribute
|
|
166
178
|
// -------------
|
|
167
|
-
export const CMBandACPAdapter = (value, label, options) => ({
|
|
179
|
+
export const CMBandACPAdapter = (value, label, options, _cellData) => ({
|
|
168
180
|
data: {
|
|
169
181
|
'kup-text-field': {
|
|
170
182
|
trailingIcon: true,
|
|
171
183
|
label,
|
|
184
|
+
// size: _cellData?.size,
|
|
185
|
+
// maxLength: _cellData?.maxLength,
|
|
172
186
|
},
|
|
173
187
|
'kup-list': {
|
|
174
188
|
showIcons: true,
|
|
@@ -224,7 +224,7 @@ export class Filters {
|
|
|
224
224
|
.match(FILTER_ANALYZER);
|
|
225
225
|
if (filterMatch) {
|
|
226
226
|
const [_, operator, _startWildcard, filterNum, _endWildcard,] = filterMatch;
|
|
227
|
-
const numericFilterValue = dom.ketchup.math.numberifySafe(filterNum);
|
|
227
|
+
const numericFilterValue = dom.ketchup.math.numberifySafe(filterNum, true);
|
|
228
228
|
if (!isNaN(numericFilterValue)) {
|
|
229
229
|
checkByRegularExpression = false;
|
|
230
230
|
switch (operator) {
|
|
@@ -274,8 +274,8 @@ export class Filters {
|
|
|
274
274
|
if (filterMatch && valueDate) {
|
|
275
275
|
const [_, operator, _startWildcard, dateStr, _endWildcard] = filterMatch;
|
|
276
276
|
// Try to convert the filter value to a Date
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
const filterDate = dom.ketchup.dates.toDate(this.normalizeValue(dateStr, obj), defaultFormat);
|
|
278
|
+
if (filterDate) {
|
|
279
279
|
checkByRegularExpression = false;
|
|
280
280
|
switch (operator) {
|
|
281
281
|
case '>':
|
|
@@ -298,7 +298,10 @@ export class Filters {
|
|
|
298
298
|
if (!dom.ketchup.dates.isValidFormattedStringDate(normalizedFilter, defaultFormat) &&
|
|
299
299
|
!dom.ketchup.dates.isValidFormattedStringDate(normalizedFilter) &&
|
|
300
300
|
!dom.ketchup.dates.isValidFormattedStringTime(value, dom.ketchup.objects.isTimeWithSeconds(obj))) {
|
|
301
|
-
|
|
301
|
+
const formattedValue = dom.ketchup.dates.format(value);
|
|
302
|
+
if (formattedValue !== 'Invalid Date') {
|
|
303
|
+
value = formattedValue;
|
|
304
|
+
}
|
|
302
305
|
}
|
|
303
306
|
}
|
|
304
307
|
if (checkByRegularExpression) {
|
|
@@ -39,15 +39,14 @@ export class KupColumnMenu {
|
|
|
39
39
|
dom.ketchup.dynamicPosition.stop(card);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
* Function called to reposition the column menu card to the appropriate
|
|
42
|
+
* Function called to reposition the column menu card to the appropriate selector.
|
|
43
43
|
* @param {KupDataTable | KupTree} comp - Component using the column menu.
|
|
44
44
|
*/
|
|
45
|
-
reposition(comp, card) {
|
|
45
|
+
reposition(comp, card, wrapperSelector) {
|
|
46
46
|
const root = comp.rootElement.shadowRoot;
|
|
47
47
|
if (root) {
|
|
48
48
|
if (card) {
|
|
49
|
-
const
|
|
50
|
-
const wrapper = root.querySelector('th[data-column="' + column + '"]');
|
|
49
|
+
const wrapper = root.querySelector(wrapperSelector);
|
|
51
50
|
if (dom.ketchup.dynamicPosition.isRegistered(card)) {
|
|
52
51
|
dom.ketchup.dynamicPosition.changeAnchor(card, wrapper);
|
|
53
52
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-ef8cbd35.js';
|
|
2
|
-
import { K as KupManager } from './p-
|
|
2
|
+
import { K as KupManager } from './p-df77b97b.js';
|
|
3
3
|
|
|
4
4
|
/** used for obtain a KupManager instance without a dom document (for UT) */
|
|
5
5
|
function newKupManager(init) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, c as KupThemeColorValues, d as KupDynamicPositionPlacement } from './p-
|
|
3
|
-
import { M as MDCRipple, F as FImage, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, D as defineCustomElement$u } from './p-
|
|
2
|
+
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, c as KupThemeColorValues, d as KupDynamicPositionPlacement } from './p-df77b97b.js';
|
|
3
|
+
import { M as MDCRipple, F as FImage, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, D as defineCustomElement$u, E as defineCustomElement$v } from './p-dd93c5e7.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-accordion component.
|
|
@@ -432,7 +432,7 @@ function defineCustomElement$1() {
|
|
|
432
432
|
if (typeof customElements === "undefined") {
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
|
-
const components = ["kup-accordion", "kup-autocomplete", "kup-badge", "kup-button", "kup-button-list", "kup-card", "kup-chart", "kup-checkbox", "kup-chip", "kup-color-picker", "kup-combobox", "kup-data-table", "kup-date-picker", "kup-dialog", "kup-dropdown-button", "kup-file-upload", "kup-form", "kup-gauge", "kup-image", "kup-list", "kup-progress-bar", "kup-radio", "kup-rating", "kup-spinner", "kup-switch", "kup-tab-bar", "kup-text-field", "kup-time-picker", "kup-toolbar", "kup-tree"];
|
|
435
|
+
const components = ["kup-accordion", "kup-autocomplete", "kup-badge", "kup-button", "kup-button-list", "kup-card", "kup-chart", "kup-checkbox", "kup-chip", "kup-color-picker", "kup-combobox", "kup-data-table", "kup-date-picker", "kup-dialog", "kup-dropdown-button", "kup-file-upload", "kup-form", "kup-gauge", "kup-image", "kup-image-list", "kup-list", "kup-progress-bar", "kup-radio", "kup-rating", "kup-spinner", "kup-switch", "kup-tab-bar", "kup-text-field", "kup-time-picker", "kup-toolbar", "kup-tree"];
|
|
436
436
|
components.forEach(tagName => { switch (tagName) {
|
|
437
437
|
case "kup-accordion":
|
|
438
438
|
if (!customElements.get(tagName)) {
|
|
@@ -441,90 +441,95 @@ function defineCustomElement$1() {
|
|
|
441
441
|
break;
|
|
442
442
|
case "kup-autocomplete":
|
|
443
443
|
if (!customElements.get(tagName)) {
|
|
444
|
-
defineCustomElement$
|
|
444
|
+
defineCustomElement$v();
|
|
445
445
|
}
|
|
446
446
|
break;
|
|
447
447
|
case "kup-badge":
|
|
448
448
|
if (!customElements.get(tagName)) {
|
|
449
|
-
defineCustomElement$
|
|
449
|
+
defineCustomElement$u();
|
|
450
450
|
}
|
|
451
451
|
break;
|
|
452
452
|
case "kup-button":
|
|
453
453
|
if (!customElements.get(tagName)) {
|
|
454
|
-
defineCustomElement$
|
|
454
|
+
defineCustomElement$t();
|
|
455
455
|
}
|
|
456
456
|
break;
|
|
457
457
|
case "kup-button-list":
|
|
458
458
|
if (!customElements.get(tagName)) {
|
|
459
|
-
defineCustomElement$
|
|
459
|
+
defineCustomElement$s();
|
|
460
460
|
}
|
|
461
461
|
break;
|
|
462
462
|
case "kup-card":
|
|
463
463
|
if (!customElements.get(tagName)) {
|
|
464
|
-
defineCustomElement$
|
|
464
|
+
defineCustomElement$r();
|
|
465
465
|
}
|
|
466
466
|
break;
|
|
467
467
|
case "kup-chart":
|
|
468
468
|
if (!customElements.get(tagName)) {
|
|
469
|
-
defineCustomElement$
|
|
469
|
+
defineCustomElement$q();
|
|
470
470
|
}
|
|
471
471
|
break;
|
|
472
472
|
case "kup-checkbox":
|
|
473
473
|
if (!customElements.get(tagName)) {
|
|
474
|
-
defineCustomElement$
|
|
474
|
+
defineCustomElement$p();
|
|
475
475
|
}
|
|
476
476
|
break;
|
|
477
477
|
case "kup-chip":
|
|
478
478
|
if (!customElements.get(tagName)) {
|
|
479
|
-
defineCustomElement$
|
|
479
|
+
defineCustomElement$o();
|
|
480
480
|
}
|
|
481
481
|
break;
|
|
482
482
|
case "kup-color-picker":
|
|
483
483
|
if (!customElements.get(tagName)) {
|
|
484
|
-
defineCustomElement$
|
|
484
|
+
defineCustomElement$n();
|
|
485
485
|
}
|
|
486
486
|
break;
|
|
487
487
|
case "kup-combobox":
|
|
488
488
|
if (!customElements.get(tagName)) {
|
|
489
|
-
defineCustomElement$
|
|
489
|
+
defineCustomElement$m();
|
|
490
490
|
}
|
|
491
491
|
break;
|
|
492
492
|
case "kup-data-table":
|
|
493
493
|
if (!customElements.get(tagName)) {
|
|
494
|
-
defineCustomElement$
|
|
494
|
+
defineCustomElement$l();
|
|
495
495
|
}
|
|
496
496
|
break;
|
|
497
497
|
case "kup-date-picker":
|
|
498
498
|
if (!customElements.get(tagName)) {
|
|
499
|
-
defineCustomElement$
|
|
499
|
+
defineCustomElement$k();
|
|
500
500
|
}
|
|
501
501
|
break;
|
|
502
502
|
case "kup-dialog":
|
|
503
503
|
if (!customElements.get(tagName)) {
|
|
504
|
-
defineCustomElement$
|
|
504
|
+
defineCustomElement$j();
|
|
505
505
|
}
|
|
506
506
|
break;
|
|
507
507
|
case "kup-dropdown-button":
|
|
508
508
|
if (!customElements.get(tagName)) {
|
|
509
|
-
defineCustomElement$
|
|
509
|
+
defineCustomElement$i();
|
|
510
510
|
}
|
|
511
511
|
break;
|
|
512
512
|
case "kup-file-upload":
|
|
513
513
|
if (!customElements.get(tagName)) {
|
|
514
|
-
defineCustomElement$
|
|
514
|
+
defineCustomElement$h();
|
|
515
515
|
}
|
|
516
516
|
break;
|
|
517
517
|
case "kup-form":
|
|
518
518
|
if (!customElements.get(tagName)) {
|
|
519
|
-
defineCustomElement$
|
|
519
|
+
defineCustomElement$g();
|
|
520
520
|
}
|
|
521
521
|
break;
|
|
522
522
|
case "kup-gauge":
|
|
523
523
|
if (!customElements.get(tagName)) {
|
|
524
|
-
defineCustomElement$
|
|
524
|
+
defineCustomElement$f();
|
|
525
525
|
}
|
|
526
526
|
break;
|
|
527
527
|
case "kup-image":
|
|
528
|
+
if (!customElements.get(tagName)) {
|
|
529
|
+
defineCustomElement$e();
|
|
530
|
+
}
|
|
531
|
+
break;
|
|
532
|
+
case "kup-image-list":
|
|
528
533
|
if (!customElements.get(tagName)) {
|
|
529
534
|
defineCustomElement$d();
|
|
530
535
|
}
|