@sme.up/ketchup 10.1.1 → 10.3.0
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-button-c3ae141e.js → f-button-bfafefb3.js} +3 -3
- package/dist/cjs/{f-cell-66dc3984.js → f-cell-cfdd6703.js} +376 -168
- package/dist/cjs/{f-checkbox-59fb7aa5.js → f-checkbox-aaa6d45c.js} +3 -2
- package/dist/cjs/{f-chip-90155c76.js → f-chip-24b1eb58.js} +146 -10
- package/dist/cjs/{f-image-d22b012f.js → f-image-db10b066.js} +1 -1
- package/dist/cjs/{f-object-field-902b9d05.js → f-object-field-2ffc49c1.js} +13 -6
- package/dist/cjs/{f-paginator-utils-7df7d997.js → f-paginator-utils-51bb9317.js} +3 -3
- package/dist/cjs/{f-text-field-80716a60.js → f-text-field-5face063.js} +15 -15
- package/dist/cjs/{f-typography-271f5037.js → f-typography-85d8238a.js} +1 -1
- package/dist/cjs/{index-e8aa3c73.js → index-c7d441d8.js} +8 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ketchup.cjs.js +2 -2
- package/dist/cjs/kup-accordion.cjs.entry.js +4 -4
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +43 -23
- package/dist/cjs/{kup-autocomplete_28.cjs.entry.js → kup-autocomplete_29.cjs.entry.js} +2387 -1457
- package/dist/cjs/kup-box.cjs.entry.js +64 -60
- package/dist/cjs/kup-calendar.cjs.entry.js +12 -11
- package/dist/cjs/kup-card-list.cjs.entry.js +3 -3
- package/dist/cjs/kup-cell.cjs.entry.js +17 -12
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +12 -12
- package/dist/cjs/kup-dashboard.cjs.entry.js +7 -7
- package/dist/cjs/{kup-data-table-helper-02d1e529.js → kup-data-table-helper-6f4d86ea.js} +28 -23
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +46 -14
- package/dist/cjs/kup-editor.cjs.entry.js +10 -5
- package/dist/cjs/kup-family-tree.cjs.entry.js +5 -5
- package/dist/cjs/kup-gantt_10.cjs.entry.js +33 -33
- package/dist/cjs/kup-grid.cjs.entry.js +3 -3
- package/dist/cjs/kup-htm.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +3 -3
- package/dist/cjs/kup-image-list.cjs.entry.js +25 -21
- package/dist/cjs/kup-input-panel.cjs.entry.js +137 -133
- package/dist/cjs/kup-lazy.cjs.entry.js +14 -14
- package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
- package/dist/cjs/{kup-manager-d67049ad.js → kup-manager-49d2d8fe.js} +471 -392
- package/dist/cjs/kup-nav-bar.cjs.entry.js +4 -4
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
- package/dist/cjs/kup-object-field.cjs.entry.js +7 -7
- package/dist/cjs/kup-pdf.cjs.entry.js +4 -4
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +3 -3
- package/dist/cjs/kup-planner.cjs.entry.js +6 -6
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +4 -4
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
- package/dist/cjs/kup-txt.cjs.entry.js +4 -4
- package/dist/cjs/kup-typography-list.cjs.entry.js +5 -5
- package/dist/cjs/kup-typography.cjs.entry.js +115 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/kup-accordion/kup-accordion.css +3 -3
- package/dist/collection/components/kup-activity-timeline/kup-activity-timeline-declarations.js +1 -1
- package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.css +3 -3
- package/dist/collection/components/kup-activity-timeline/kup-activity-timeline.js +37 -17
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +1 -0
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.css +3 -3
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +87 -19
- package/dist/collection/components/kup-badge/kup-badge.css +3 -3
- package/dist/collection/components/kup-box/kup-box.css +3 -3
- package/dist/collection/components/kup-box/kup-box.js +72 -48
- package/dist/collection/components/kup-button/kup-button.css +3 -3
- package/dist/collection/components/kup-button/kup-button.js +0 -24
- package/dist/collection/components/kup-button-list/kup-button-list.css +3 -3
- package/dist/collection/components/kup-button-list/kup-button-list.js +23 -3
- package/dist/collection/components/kup-calendar/kup-calendar.css +4 -4
- package/dist/collection/components/kup-calendar/kup-calendar.js +6 -5
- package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +5 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +78 -1
- package/dist/collection/components/kup-card/kup-card.css +221 -20
- package/dist/collection/components/kup-card/kup-card.js +5 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +2 -2
- package/dist/collection/components/kup-card-list/kup-card-list.css +3 -3
- package/dist/collection/components/kup-cell/kup-cell.css +3 -3
- package/dist/collection/components/kup-cell/kup-cell.js +28 -3
- package/dist/collection/components/kup-chart/kup-chart.css +3 -3
- package/dist/collection/components/kup-checkbox/kup-checkbox.css +3 -3
- package/dist/collection/components/kup-chip/kup-chip.css +21 -7
- package/dist/collection/components/kup-chip/kup-chip.js +104 -33
- package/dist/collection/components/kup-color-picker/kup-color-picker.css +3 -3
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +1 -0
- package/dist/collection/components/kup-combobox/kup-combobox.css +3 -3
- package/dist/collection/components/kup-combobox/kup-combobox.js +53 -4
- package/dist/collection/components/kup-dashboard/kup-dashboard.css +3 -3
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +13 -0
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +6 -3
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +2 -0
- package/dist/collection/components/kup-data-table/kup-data-table.css +55 -34
- package/dist/collection/components/kup-data-table/kup-data-table.js +783 -238
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +3 -3
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +8 -1
- package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +3 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +31 -6
- package/dist/collection/components/kup-dialog/kup-dialog.js +169 -11
- package/dist/collection/components/kup-drawer/kup-drawer.css +3 -3
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
- package/dist/collection/components/kup-echart/kup-echart.css +3 -3
- package/dist/collection/components/kup-echart/kup-echart.js +106 -11
- package/dist/collection/components/kup-editor/kup-editor.js +8 -3
- package/dist/collection/components/kup-family-tree/kup-family-tree.css +15 -12
- package/dist/collection/components/kup-file-upload/kup-file-upload-declarations.js +5 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.css +203 -0
- package/dist/collection/components/kup-file-upload/kup-file-upload.js +424 -0
- package/dist/collection/components/kup-form/kup-form.css +3 -3
- package/dist/collection/components/kup-form/kup-form.js +2 -2
- package/dist/collection/components/kup-gauge/kup-gauge.css +3 -3
- package/dist/collection/components/kup-grid/kup-grid.css +3 -3
- package/dist/collection/components/kup-htm/kup-htm.css +3 -3
- package/dist/collection/components/kup-htm/kup-htm.js +1 -1
- package/dist/collection/components/kup-iframe/kup-iframe.css +3 -3
- package/dist/collection/components/kup-image/assets/svg/circle.svg +3 -0
- package/dist/collection/components/kup-image/assets/svg/up.svg +43 -0
- package/dist/collection/components/kup-image/kup-image.css +3 -3
- package/dist/collection/components/kup-image-list/kup-image-list.css +6 -6
- package/dist/collection/components/kup-image-list/kup-image-list.js +15 -11
- package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +35 -13
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +12 -5
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +133 -87
- package/dist/collection/components/kup-lazy/kup-lazy.css +3 -3
- package/dist/collection/components/kup-lazy/kup-lazy.js +11 -11
- package/dist/collection/components/kup-list/kup-list.css +3 -3
- package/dist/collection/components/kup-list/kup-list.js +56 -11
- package/dist/collection/components/kup-magic-box/kup-magic-box.css +3 -3
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.css +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.css +3 -3
- 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.css +3 -3
- package/dist/collection/components/kup-pdf/kup-pdf.js +1 -1
- package/dist/collection/components/kup-planner/kup-planner.css +3 -3
- 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/custom-task-list-header.module.css +3 -3
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +6 -6
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +3 -3
- 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.css +4 -4
- 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.css +3 -3
- 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.css +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.css +3 -3
- 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.css +3 -3
- 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.css +3 -3
- 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.css +3 -3
- 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.css +3 -3
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +1 -1
- package/dist/collection/components/kup-qlik/kup-qlik.css +3 -3
- package/dist/collection/components/kup-qlik/kup-qlik.js +1 -1
- package/dist/collection/components/kup-radio/kup-radio.css +3 -3
- package/dist/collection/components/kup-rating/kup-rating.css +3 -3
- package/dist/collection/components/kup-rating/kup-rating.js +1 -1
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -4
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +1 -1
- package/dist/collection/components/kup-spinner/kup-spinner.css +3 -3
- package/dist/collection/components/kup-spinner/kup-spinner.js +34 -34
- package/dist/collection/components/kup-switch/kup-switch.css +3 -3
- package/dist/collection/components/kup-switch/kup-switch.js +1 -1
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +9 -7
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +182 -20
- package/dist/collection/components/kup-text-field/kup-text-field.css +3 -3
- package/dist/collection/components/kup-time-picker/kup-time-picker.css +3 -3
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +8 -1
- package/dist/collection/components/kup-toolbar/kup-toolbar.css +9 -12
- package/dist/collection/components/kup-tree/kup-tree.css +24 -13
- package/dist/collection/components/kup-tree/kup-tree.js +130 -52
- package/dist/collection/components/kup-txt/kup-txt.css +3 -3
- package/dist/collection/components/kup-txt/kup-txt.js +1 -1
- package/dist/collection/components/kup-typography/kup-typography.css +3 -3
- package/dist/collection/components/kup-typography/kup-typography.js +198 -28
- package/dist/collection/components/kup-typography-list/kup-typography-list.css +3 -3
- package/dist/collection/components/kup-typography-list/kup-typography-list.js +1 -1
- package/dist/collection/f-components/f-button/f-button.js +1 -1
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +6 -1
- package/dist/collection/f-components/f-cell/f-cell.js +80 -52
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -0
- package/dist/collection/f-components/f-chip/f-chip.js +12 -7
- package/dist/collection/f-components/f-label/f-label.js +21 -0
- package/dist/collection/f-components/f-object-field/f-object-field.js +6 -1
- package/dist/collection/f-components/f-radio/f-radio.js +17 -6
- package/dist/collection/f-components/f-text-field/f-text-field.js +12 -12
- package/dist/collection/managers/kup-data/kup-data.js +4 -0
- package/dist/collection/managers/kup-interact/kup-interact.js +43 -22
- package/dist/collection/managers/kup-language/kup-language-declarations.js +10 -0
- package/dist/collection/managers/kup-manager/kup-manager.js +8 -3
- package/dist/collection/managers/kup-perf-monitoring/kup-perf-monitoring.js +55 -0
- package/dist/collection/managers/kup-perf-tuning/kup-perf-tuning-declarations.js +5 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +3 -0
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +7 -3
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/collection/utils/cell-utils.js +22 -8
- package/dist/collection/utils/filters/filters-column-menu.js +2 -1
- package/dist/collection/utils/filters/filters-rows.js +19 -18
- package/dist/collection/utils/filters/filters-tree-items.js +11 -11
- package/dist/collection/utils/filters/filters.js +12 -5
- package/dist/collection/utils/g-cell-style-generator.js +188 -0
- package/dist/collection/utils/label-utils.js +58 -0
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/kup-accordion.js +23 -18
- package/dist/components/kup-activity-timeline.js +61 -36
- 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 +29 -23
- package/dist/components/kup-card-list.js +24 -19
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +30 -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 +23 -18
- 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 +23 -18
- 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 +25 -20
- package/dist/components/kup-file-upload.d.ts +11 -0
- package/dist/components/kup-file-upload.js +6 -0
- 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 +24 -19
- package/dist/components/kup-iframe.js +23 -18
- package/dist/components/kup-image-list.js +38 -29
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +154 -144
- package/dist/components/kup-lazy.js +34 -29
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +30 -25
- package/dist/components/kup-nav-bar.js +24 -19
- package/dist/components/kup-numeric-picker.js +24 -19
- package/dist/components/kup-object-field.js +23 -18
- package/dist/components/kup-pdf.js +24 -19
- package/dist/components/kup-planner-renderer.js +1 -1
- package/dist/components/kup-planner.js +41 -36
- package/dist/components/kup-probe.js +23 -18
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +24 -19
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +24 -19
- 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 +24 -19
- package/dist/components/kup-typography-list.js +24 -19
- package/dist/components/kup-typography.js +136 -29
- package/dist/components/kup-vertical-scroll.js +1 -1
- package/dist/components/{p-c43d08ab.js → p-0e85ab66.js} +5 -5
- package/dist/components/{p-0c219ec5.js → p-1ee81222.js} +2979 -1365
- package/dist/components/{p-7b052cb9.js → p-2a4abe21.js} +23 -18
- package/dist/components/p-3b4cdace.js +56 -0
- package/dist/components/p-55542b47.js +38 -0
- package/dist/components/{p-05429a55.js → p-66d53743.js} +30 -20
- package/dist/components/{p-0e6c0355.js → p-67ba8cd7.js} +2 -2
- package/dist/components/{p-5517e8e8.js → p-6992b96f.js} +5 -5
- package/dist/components/{p-ea6e4e37.js → p-6bfda249.js} +3 -3
- package/dist/components/{p-ab7c8404.js → p-7550d08c.js} +469 -392
- package/dist/components/{p-72305403.js → p-7dd33834.js} +69 -29
- package/dist/components/{p-709a51cf.js → p-8472facf.js} +4 -4
- package/dist/components/p-97053b4d.js +45 -0
- package/dist/components/{p-53e38c4a.js → p-bd3047ee.js} +3 -3
- package/dist/components/{p-4efa19a7.js → p-c325da75.js} +5 -5
- package/dist/components/{p-8b050302.js → p-c45e24b0.js} +75 -66
- package/dist/components/p-c7c7f760.js +49 -0
- package/dist/components/{p-9da8cd93.js → p-d0e33e04.js} +16 -16
- package/dist/components/{p-c62695d4.js → p-d7136d08.js} +4 -4
- package/dist/components/{p-2fff7268.js → p-de04aef6.js} +17 -17
- package/dist/components/{p-2e5f2e07.js → p-ef8cbd35.js} +6 -1
- package/dist/components/{p-e677dddf.js → p-f2e153e3.js} +7 -7
- package/dist/esm/{f-button-f1040575.js → f-button-3c8f4506.js} +3 -3
- package/dist/esm/{f-cell-50d54fdf.js → f-cell-fbe84498.js} +376 -168
- package/dist/esm/{f-checkbox-3ba20ca4.js → f-checkbox-5cdd1cad.js} +3 -2
- package/dist/esm/{f-chip-c31b2c02.js → f-chip-35dfafdb.js} +145 -11
- package/dist/esm/{f-image-9b15e9ac.js → f-image-a2ecd7c3.js} +1 -1
- package/dist/esm/{f-object-field-80e6eb02.js → f-object-field-fa368c87.js} +13 -6
- package/dist/esm/{f-paginator-utils-a835dde6.js → f-paginator-utils-d7e6b742.js} +3 -3
- package/dist/esm/{f-text-field-6b05bfbc.js → f-text-field-dcf09b57.js} +15 -15
- package/dist/esm/{f-typography-65229068.js → f-typography-8c914ec6.js} +1 -1
- package/dist/esm/{index-c9246a86.js → index-9b0f4a0d.js} +8 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +4 -4
- package/dist/esm/kup-activity-timeline.entry.js +43 -23
- package/dist/esm/{kup-autocomplete_28.entry.js → kup-autocomplete_29.entry.js} +2383 -1454
- package/dist/esm/kup-box.entry.js +64 -60
- package/dist/esm/kup-calendar.entry.js +12 -11
- package/dist/esm/kup-card-list.entry.js +3 -3
- package/dist/esm/kup-cell.entry.js +17 -12
- package/dist/esm/kup-custom-task-list-header_4.entry.js +12 -12
- package/dist/esm/kup-dashboard.entry.js +7 -7
- package/dist/esm/{kup-data-table-helper-1b2c70b8.js → kup-data-table-helper-537035b9.js} +28 -23
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +46 -14
- package/dist/esm/kup-editor.entry.js +10 -5
- package/dist/esm/kup-family-tree.entry.js +5 -5
- package/dist/esm/kup-gantt_10.entry.js +33 -33
- package/dist/esm/kup-grid.entry.js +3 -3
- package/dist/esm/kup-htm.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +3 -3
- package/dist/esm/kup-image-list.entry.js +25 -21
- package/dist/esm/kup-input-panel.entry.js +137 -133
- package/dist/esm/kup-lazy.entry.js +14 -14
- package/dist/esm/kup-magic-box.entry.js +7 -7
- package/dist/esm/{kup-manager-5fbf0037.js → kup-manager-2b2b7c68.js} +470 -393
- package/dist/esm/kup-nav-bar.entry.js +4 -4
- package/dist/esm/kup-numeric-picker.entry.js +6 -6
- package/dist/esm/kup-object-field.entry.js +7 -7
- package/dist/esm/kup-pdf.entry.js +4 -4
- package/dist/esm/kup-planner-renderer.entry.js +3 -3
- package/dist/esm/kup-planner.entry.js +6 -6
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +4 -4
- package/dist/esm/kup-snackbar.entry.js +6 -6
- package/dist/esm/kup-txt.entry.js +4 -4
- package/dist/esm/kup-typography-list.entry.js +5 -5
- package/dist/esm/kup-typography.entry.js +115 -15
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/assets/svg/circle.svg +3 -0
- package/dist/ketchup/assets/svg/up.svg +43 -0
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-058d9f3a.entry.js +1 -0
- package/dist/ketchup/p-0866ddcf.entry.js +1 -0
- package/dist/ketchup/p-0a60f2ec.js +1 -0
- package/dist/ketchup/p-0f7a8165.js +1 -0
- package/dist/ketchup/{p-1aa03e7f.entry.js → p-13f159d6.entry.js} +2 -2
- package/dist/ketchup/p-19689040.entry.js +1 -0
- package/dist/ketchup/p-1f32300c.entry.js +1 -0
- package/dist/ketchup/p-2020fbaf.entry.js +1 -0
- package/dist/ketchup/p-328896f0.entry.js +1 -0
- package/dist/ketchup/p-32aa082e.entry.js +1 -0
- package/dist/ketchup/{p-e8823224.entry.js → p-35e03e2f.entry.js} +1 -1
- package/dist/ketchup/p-3aa35543.entry.js +1 -0
- package/dist/ketchup/p-3c882916.entry.js +1 -0
- package/dist/ketchup/p-3cab6420.js +1 -0
- package/dist/ketchup/{p-5635bfbf.entry.js → p-3eb4daa3.entry.js} +1 -1
- package/dist/ketchup/p-4418988a.entry.js +1 -0
- package/dist/ketchup/p-446fedb6.entry.js +1 -0
- package/dist/ketchup/p-45d34ba7.js +1 -0
- package/dist/ketchup/p-4677cfd1.entry.js +1 -0
- package/dist/ketchup/p-4a44bef2.entry.js +1 -0
- package/dist/ketchup/{p-bdbcb755.entry.js → p-4a6c6bf4.entry.js} +1 -1
- package/dist/ketchup/{p-a9fa88cc.entry.js → p-63117858.entry.js} +1 -1
- package/dist/ketchup/p-6714d68a.entry.js +1 -0
- package/dist/ketchup/p-6b529a6f.entry.js +16 -0
- package/dist/ketchup/p-6eb5f3da.js +1 -0
- package/dist/ketchup/{p-b0368f88.js → p-710d0a7d.js} +1 -1
- package/dist/ketchup/{p-34f29123.entry.js → p-7722245b.entry.js} +1 -1
- package/dist/ketchup/{p-4608b0e6.entry.js → p-7b45a31b.entry.js} +1 -1
- package/dist/ketchup/{p-1374d2f7.entry.js → p-8932614c.entry.js} +2 -2
- package/dist/ketchup/{p-b16c12ab.entry.js → p-8a8da47d.entry.js} +1 -1
- package/dist/ketchup/{p-a19d0102.entry.js → p-8feabbf8.entry.js} +1 -1
- package/dist/ketchup/p-97d8720e.entry.js +1 -0
- package/dist/ketchup/p-9f9428d1.js +1 -0
- package/dist/ketchup/{p-b1a73691.entry.js → p-bce5be1c.entry.js} +1 -1
- package/dist/ketchup/p-c4224227.js +1 -0
- package/dist/ketchup/p-cd73eaec.js +21 -0
- package/dist/ketchup/{p-60cfddce.js → p-cec0955d.js} +1 -1
- package/dist/ketchup/{p-268af1b3.entry.js → p-d7d84da0.entry.js} +4 -4
- package/dist/ketchup/p-e695fd91.entry.js +1 -0
- package/dist/ketchup/p-e6be6193.entry.js +9 -0
- package/dist/ketchup/p-e78670d8.js +1 -0
- package/dist/ketchup/p-eaabc269.js +1 -0
- package/dist/ketchup/{p-82badc23.entry.js → p-f69679df.entry.js} +1 -1
- package/dist/ketchup/p-f69923dd.entry.js +1 -0
- package/dist/ketchup/{p-54ebe3bd.entry.js → p-f87b7768.entry.js} +1 -1
- package/dist/types/components/kup-activity-timeline/kup-activity-timeline-declarations.d.ts +2 -2
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +2 -1
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +11 -0
- package/dist/types/components/kup-box/kup-box.d.ts +2 -0
- package/dist/types/components/kup-button/kup-button.d.ts +0 -1
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +4 -0
- package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +2 -0
- package/dist/types/components/kup-cell/kup-cell.d.ts +3 -0
- package/dist/types/components/kup-chip/kup-chip.d.ts +16 -5
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +2 -1
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +9 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +9 -2
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +1 -1
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +41 -1
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +1 -0
- package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +3 -0
- package/dist/types/components/kup-dialog/kup-dialog.d.ts +16 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +15 -0
- package/dist/types/components/kup-file-upload/kup-file-upload-declarations.d.ts +8 -0
- package/dist/types/components/kup-file-upload/kup-file-upload.d.ts +62 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +5 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +10 -7
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +7 -1
- package/dist/types/components/kup-list/kup-list.d.ts +4 -0
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +27 -6
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +1 -0
- package/dist/types/components/kup-tree/kup-tree.d.ts +4 -1
- package/dist/types/components/kup-typography/kup-typography.d.ts +30 -5
- package/dist/types/components.d.ts +322 -30
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +7 -3
- package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +2 -1
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +3 -1
- package/dist/types/f-components/f-label/f-label-declarations.d.ts +15 -0
- package/dist/types/f-components/f-label/f-label.d.ts +3 -0
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +1 -0
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +1 -0
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +20 -1
- package/dist/types/managers/kup-interact/kup-interact.d.ts +7 -3
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +11 -2
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +2 -2
- package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -2
- package/dist/types/managers/kup-perf-monitoring/kup-perf-monitoring.d.ts +7 -0
- package/dist/types/managers/kup-perf-tuning/kup-perf-tuning-declarations.d.ts +6 -0
- package/dist/types/types/GenericTypes.d.ts +2 -1
- package/dist/types/utils/cell-utils.d.ts +4 -6
- package/dist/types/utils/filters/filters-rows.d.ts +5 -5
- package/dist/types/utils/filters/filters-tree-items.d.ts +1 -1
- package/dist/types/utils/filters/filters.d.ts +2 -2
- package/dist/types/utils/g-cell-style-generator.d.ts +2 -0
- package/dist/types/utils/label-utils.d.ts +2 -0
- package/package.json +2 -2
- package/dist/collection/managers/kup-keys-binding/kup-keys-binding.js +0 -79
- package/dist/components/p-01015d54.js +0 -38
- package/dist/components/p-304eab56.js +0 -49
- package/dist/components/p-76c4c708.js +0 -56
- package/dist/components/p-aec44f8f.js +0 -45
- package/dist/ketchup/p-05aea063.entry.js +0 -1
- package/dist/ketchup/p-08691abd.entry.js +0 -1
- package/dist/ketchup/p-17279bd4.entry.js +0 -1
- package/dist/ketchup/p-1e53c21d.entry.js +0 -1
- package/dist/ketchup/p-27e9313b.entry.js +0 -1
- package/dist/ketchup/p-487909b5.entry.js +0 -1
- package/dist/ketchup/p-792e9244.entry.js +0 -1
- package/dist/ketchup/p-7966fa12.entry.js +0 -1
- package/dist/ketchup/p-7b5a2535.entry.js +0 -9
- package/dist/ketchup/p-7fc0ee16.entry.js +0 -1
- package/dist/ketchup/p-816de1ef.js +0 -1
- package/dist/ketchup/p-84ca2ebd.entry.js +0 -1
- package/dist/ketchup/p-8b97f53e.js +0 -1
- package/dist/ketchup/p-90a0de6c.js +0 -21
- package/dist/ketchup/p-9106b93f.js +0 -1
- package/dist/ketchup/p-9278528b.entry.js +0 -1
- package/dist/ketchup/p-a6cf4320.js +0 -1
- package/dist/ketchup/p-ab911e2d.js +0 -1
- package/dist/ketchup/p-b120abd7.js +0 -1
- package/dist/ketchup/p-b2ab5bdc.entry.js +0 -1
- package/dist/ketchup/p-cf2bf043.entry.js +0 -1
- package/dist/ketchup/p-d08d30c0.entry.js +0 -1
- package/dist/ketchup/p-d39c3267.js +0 -1
- package/dist/ketchup/p-e0fec6c7.entry.js +0 -1
- package/dist/ketchup/p-e736bf6f.js +0 -1
- package/dist/ketchup/p-ee85055c.js +0 -1
- package/dist/ketchup/p-f38c2d0e.entry.js +0 -16
- package/dist/ketchup/p-f705d641.entry.js +0 -1
- package/dist/ketchup/p-febf0250.entry.js +0 -1
- package/dist/types/managers/kup-keys-binding/kup-keys-binding-declarations.d.ts +0 -1
- package/dist/types/managers/kup-keys-binding/kup-keys-binding.d.ts +0 -20
- /package/dist/collection/{managers/kup-keys-binding/kup-keys-binding-declarations.js → f-components/f-label/f-label-declarations.js} +0 -0
|
@@ -26,23 +26,24 @@ 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,
|
|
30
|
-
import {
|
|
29
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellTypesNeedingReset, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _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;
|
|
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";
|
|
33
33
|
import { FCellShapes, FCellTypes, } from "../../f-components/f-cell/f-cell-declarations";
|
|
34
|
+
import { FLabel } from "../../f-components/f-label/f-label";
|
|
34
35
|
import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc";
|
|
36
|
+
import { FTypography } from "../../f-components/f-typography/f-typography";
|
|
37
|
+
import { FTypographyType, } from "../../f-components/f-typography/f-typography-declarations";
|
|
35
38
|
import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
|
|
39
|
+
import { KupPointerEventTypes } from "../../managers/kup-interact/kup-interact-declarations";
|
|
36
40
|
import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
|
|
37
41
|
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
38
|
-
import { FTypographyType, } from "../../f-components/f-typography/f-typography-declarations";
|
|
39
42
|
import { CHIAdapter, CHKAdapter, CMBandACPAdapter, getCellValueForDisplay, RADAdapter, SWTAdapter, } from "../../utils/cell-utils";
|
|
40
43
|
import { getProps, setProps } from "../../utils/utils";
|
|
41
44
|
import { componentWrapperId } from "../../variables/GenericVariables";
|
|
42
|
-
import { CheckConditionsByEventType, CheckTriggeringEvents,
|
|
43
|
-
import { getAbsoluteHeight, getAbsoluteLeft, getAbsoluteTop, getAbsoluteWidth, getInpComponentAbsoluteHeight, getLabelAbsoluteWidth,
|
|
44
|
-
import { FTypography } from "../../f-components/f-typography/f-typography";
|
|
45
|
-
import { KupPointerEventTypes } from "../../managers/kup-interact/kup-interact-declarations";
|
|
45
|
+
import { CheckConditionsByEventType, CheckTriggeringEvents, KupInputPanelButtonsPositions, KupInputPanelLayoutSectionType, KupInputPanelPosition, KupInputPanelProps, } from "./kup-input-panel-declarations";
|
|
46
|
+
import { getAbsoluteHeight, getAbsoluteLeft, getAbsoluteTop, getAbsoluteWidth, getInpComponentAbsoluteHeight, getLabelAbsoluteWidth, graphicShapeHasIcon, SPACED_ROW_HEIGHT, } from "./kup-input-panel-utils";
|
|
46
47
|
const dom = document.documentElement;
|
|
47
48
|
export class KupInputPanel {
|
|
48
49
|
constructor() {
|
|
@@ -62,18 +63,6 @@ export class KupInputPanel {
|
|
|
62
63
|
['SmeupTable', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_tableOptionsAdapter).bind(this)],
|
|
63
64
|
]));
|
|
64
65
|
_KupInputPanel_originalData.set(this, null);
|
|
65
|
-
_KupInputPanel_eventNames.set(this, new Map([
|
|
66
|
-
[
|
|
67
|
-
FCellTypes.AUTOCOMPLETE,
|
|
68
|
-
['kup-autocomplete-input', 'kup-autocomplete-iconclick'],
|
|
69
|
-
],
|
|
70
|
-
[
|
|
71
|
-
FCellTypes.MULTI_AUTOCOMPLETE,
|
|
72
|
-
['kup-autocomplete-input', 'kup-autocomplete-iconclick'],
|
|
73
|
-
],
|
|
74
|
-
[FCellTypes.COMBOBOX, ['kup-combobox-iconclick', 'kup-combobox-blur']],
|
|
75
|
-
[FCellTypes.MULTI_COMBOBOX, ['kup-combobox-iconclick']],
|
|
76
|
-
]));
|
|
77
66
|
_KupInputPanel_listeners.set(this, []);
|
|
78
67
|
_KupInputPanel_cellTypeComponents.set(this, new Map([
|
|
79
68
|
[FCellTypes.DATE, 'kup-date-picker'],
|
|
@@ -125,17 +114,36 @@ export class KupInputPanel {
|
|
|
125
114
|
});
|
|
126
115
|
__classPrivateFieldSet(this, _KupInputPanel_listeners, [], "f");
|
|
127
116
|
}
|
|
128
|
-
if (__classPrivateFieldGet(this, _KupInputPanel_keysShortcut, "f").length) {
|
|
129
|
-
__classPrivateFieldGet(this, _KupInputPanel_keysShortcut, "f").map((key) => {
|
|
130
|
-
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").keysBinding.unregister(key);
|
|
131
|
-
});
|
|
132
|
-
__classPrivateFieldSet(this, _KupInputPanel_keysShortcut, [], "f");
|
|
133
|
-
}
|
|
134
117
|
if (this.data) {
|
|
135
118
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
|
|
136
119
|
}
|
|
137
120
|
}
|
|
138
121
|
//#endregion
|
|
122
|
+
//#region LISTENERS
|
|
123
|
+
/*-------------------------------------------------*/
|
|
124
|
+
/* L i s t e n e r s */
|
|
125
|
+
/*-------------------------------------------------*/
|
|
126
|
+
listenKeydown(e) {
|
|
127
|
+
switch (e.key) {
|
|
128
|
+
case 'Enter':
|
|
129
|
+
e.preventDefault();
|
|
130
|
+
e.stopPropagation();
|
|
131
|
+
const rootActiveElement = this.rootElement.shadowRoot
|
|
132
|
+
.activeElement;
|
|
133
|
+
const keyPressed = e.key.toLowerCase();
|
|
134
|
+
if (keyPressed === 'enter' && rootActiveElement) {
|
|
135
|
+
rootActiveElement === null || rootActiveElement === void 0 ? void 0 : rootActiveElement.blur();
|
|
136
|
+
this.submitCb({
|
|
137
|
+
value: {
|
|
138
|
+
before: Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_originalData, "f")),
|
|
139
|
+
after: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
140
|
+
},
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
139
147
|
//#region PUBLIC METHODS
|
|
140
148
|
/*-------------------------------------------------*/
|
|
141
149
|
/* P u b l i c M e t h o d s */
|
|
@@ -167,6 +175,13 @@ export class KupInputPanel {
|
|
|
167
175
|
async setProps(props) {
|
|
168
176
|
setProps(this, KupInputPanelProps, props);
|
|
169
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Trigger update from outside
|
|
180
|
+
* @param {string} cellId - When provided, will trigger onclick event of cell instead of *UPDATE
|
|
181
|
+
*/
|
|
182
|
+
async update(cellId) {
|
|
183
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getFunctionOnClickBTN).call(this, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getCell).call(this, cellId), cellId);
|
|
184
|
+
}
|
|
170
185
|
//#endregion
|
|
171
186
|
//#region LIFECYCLE HOOKS
|
|
172
187
|
/*-------------------------------------------------*/
|
|
@@ -214,7 +229,7 @@ export class KupInputPanel {
|
|
|
214
229
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
215
230
|
]
|
|
216
231
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
217
|
-
return (h(Host, { key: '
|
|
232
|
+
return (h(Host, { key: '4ff52711b69f8e049b9b269696bbf9464afcec14', "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) => {
|
|
218
233
|
this.tabSelected = e.detail.node.id;
|
|
219
234
|
}, "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) => {
|
|
220
235
|
this.kupInputPanelObjectFieldSearchPayload.emit(e.detail);
|
|
@@ -222,14 +237,11 @@ export class KupInputPanel {
|
|
|
222
237
|
this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
|
|
223
238
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
224
239
|
this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
|
|
225
|
-
} }, h("style", { key: '
|
|
240
|
+
} }, h("style", { key: '0e7d0c363c2ca6c6c9742b633f6f4bc54c8fee19' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '9c9a06f9c2b7cc15b3e1a844824d5153b1f2f399', id: componentWrapperId }, inputPanelContent)));
|
|
226
241
|
}
|
|
227
242
|
disconnectedCallback() {
|
|
228
243
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
229
244
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.unregister(this);
|
|
230
|
-
__classPrivateFieldGet(this, _KupInputPanel_keysShortcut, "f").forEach((keyEvent) => {
|
|
231
|
-
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").keysBinding.unregister(keyEvent);
|
|
232
|
-
});
|
|
233
245
|
}
|
|
234
246
|
static get is() { return "kup-input-panel"; }
|
|
235
247
|
static get encapsulation() { return "shadow"; }
|
|
@@ -357,7 +369,7 @@ export class KupInputPanel {
|
|
|
357
369
|
"name": "default",
|
|
358
370
|
"text": "false"
|
|
359
371
|
}],
|
|
360
|
-
"text": "Creates a hidden submit button in order to submit the form with enter
|
|
372
|
+
"text": "Creates a hidden submit button in order to submit the form with enter.``"
|
|
361
373
|
},
|
|
362
374
|
"attribute": "hidden-submit-button",
|
|
363
375
|
"reflect": false,
|
|
@@ -791,6 +803,30 @@ export class KupInputPanel {
|
|
|
791
803
|
"text": "props - Object containing props that will be set to the component."
|
|
792
804
|
}]
|
|
793
805
|
}
|
|
806
|
+
},
|
|
807
|
+
"update": {
|
|
808
|
+
"complexType": {
|
|
809
|
+
"signature": "(cellId?: string) => Promise<void>",
|
|
810
|
+
"parameters": [{
|
|
811
|
+
"name": "cellId",
|
|
812
|
+
"type": "string",
|
|
813
|
+
"docs": "- When provided, will trigger onclick event of cell instead of *UPDATE"
|
|
814
|
+
}],
|
|
815
|
+
"references": {
|
|
816
|
+
"Promise": {
|
|
817
|
+
"location": "global",
|
|
818
|
+
"id": "global::Promise"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"return": "Promise<void>"
|
|
822
|
+
},
|
|
823
|
+
"docs": {
|
|
824
|
+
"text": "Trigger update from outside",
|
|
825
|
+
"tags": [{
|
|
826
|
+
"name": "param",
|
|
827
|
+
"text": "cellId - When provided, will trigger onclick event of cell instead of *UPDATE"
|
|
828
|
+
}]
|
|
829
|
+
}
|
|
794
830
|
}
|
|
795
831
|
};
|
|
796
832
|
}
|
|
@@ -801,8 +837,20 @@ export class KupInputPanel {
|
|
|
801
837
|
"methodName": "onDataChanged"
|
|
802
838
|
}];
|
|
803
839
|
}
|
|
840
|
+
static get listeners() {
|
|
841
|
+
return [{
|
|
842
|
+
"name": "keydown",
|
|
843
|
+
"method": "listenKeydown",
|
|
844
|
+
"target": undefined,
|
|
845
|
+
"capture": false,
|
|
846
|
+
"passive": false
|
|
847
|
+
}];
|
|
848
|
+
}
|
|
804
849
|
}
|
|
805
|
-
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(),
|
|
850
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellTypesNeedingReset = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_keysShortcut = new WeakMap(), _KupInputPanel_readyPromise = new WeakMap(), _KupInputPanel_readyResolve = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
|
|
851
|
+
if (!id) {
|
|
852
|
+
return null;
|
|
853
|
+
}
|
|
806
854
|
return this.inputPanelCells.reduce((cell, { cells }) => {
|
|
807
855
|
if (!cell) {
|
|
808
856
|
const foundCell = cells.find(({ column }) => column.name === id);
|
|
@@ -829,7 +877,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
829
877
|
if (layout.absolute) {
|
|
830
878
|
rowContent = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderAbsoluteLayout).call(this, inputPanelCell, layout);
|
|
831
879
|
// 12px is added due to the chance that the horizontal scrollbar will be rendered
|
|
832
|
-
styleObj.height = `${getInpComponentAbsoluteHeight(layout) *
|
|
880
|
+
styleObj.height = `${getInpComponentAbsoluteHeight(layout) * SPACED_ROW_HEIGHT +
|
|
881
|
+
12}px`;
|
|
833
882
|
}
|
|
834
883
|
else {
|
|
835
884
|
if (!layout.sectionsType) {
|
|
@@ -902,12 +951,13 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
902
951
|
if (customRender !== undefined) {
|
|
903
952
|
return customRender(cell, column, (_a = row.layout) === null || _a === void 0 ? void 0 : _a.absolute);
|
|
904
953
|
}
|
|
954
|
+
cell.data = Object.assign(Object.assign({}, cell.data), { sizing: 'extra-small' });
|
|
905
955
|
const cellProps = {
|
|
906
956
|
cell,
|
|
907
957
|
column,
|
|
908
958
|
row,
|
|
909
|
-
component: this,
|
|
910
959
|
editable: true,
|
|
960
|
+
component: this,
|
|
911
961
|
renderKup: true,
|
|
912
962
|
setSizes: true,
|
|
913
963
|
};
|
|
@@ -917,7 +967,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
917
967
|
}
|
|
918
968
|
return h(FCell, Object.assign({}, cellProps));
|
|
919
969
|
}, _KupInputPanel_renderButton = function _KupInputPanel_renderButton(cell, { name }) {
|
|
920
|
-
|
|
970
|
+
const renderedButton = (h(FButton, Object.assign({ icon: cell.icon, id: name }, cell.data, { wrapperClass: "form__submit" })));
|
|
971
|
+
return renderedButton;
|
|
921
972
|
}, _KupInputPanel_renderDropDownButton = function _KupInputPanel_renderDropDownButton(cell, data) {
|
|
922
973
|
return (h("kup-dropdown-button", Object.assign({}, cell.data, { label: cell.value, data: data, "onkup-dropdownbutton-itemclick": (e) => {
|
|
923
974
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getFunctionOnClickBTN).call(this, e.detail.node, e.detail.node.id);
|
|
@@ -943,16 +994,20 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
943
994
|
}, _KupInputPanel_renderDataTable = function _KupInputPanel_renderDataTable(cell, { name }) {
|
|
944
995
|
return (h("kup-data-table", Object.assign({ id: name, editableData: true, showGroups: true, showFilters: true }, cell.data)));
|
|
945
996
|
}, _KupInputPanel_renderLabel = function _KupInputPanel_renderLabel(cell, column, isAbsoluteLayout) {
|
|
946
|
-
const
|
|
947
|
-
const
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
const
|
|
952
|
-
if (
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
997
|
+
const isNumberType = dom.ketchup.objects.isNumber(cell.obj);
|
|
998
|
+
const isFormattableType = isNumberType ||
|
|
999
|
+
dom.ketchup.objects.isDate(cell.obj) ||
|
|
1000
|
+
dom.ketchup.objects.isTime(cell.obj) ||
|
|
1001
|
+
dom.ketchup.objects.isTimestamp(cell.obj);
|
|
1002
|
+
const classList = ['input-panel-label'];
|
|
1003
|
+
if (isAbsoluteLayout)
|
|
1004
|
+
classList.push('input-panel-label--legacy-look');
|
|
1005
|
+
if (isNumberType)
|
|
1006
|
+
classList.push('input-panel-label-number');
|
|
1007
|
+
const value = isFormattableType
|
|
1008
|
+
? getCellValueForDisplay(column, cell)
|
|
1009
|
+
: cell.value;
|
|
1010
|
+
return (h("span", { class: classList.join(' '), id: column.name }, h(FLabel, { text: value })));
|
|
956
1011
|
}, _KupInputPanel_getLabelComponent = function _KupInputPanel_getLabelComponent(cell, label) {
|
|
957
1012
|
if (!label) {
|
|
958
1013
|
return null;
|
|
@@ -1019,7 +1074,14 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1019
1074
|
content = section.sections.map((innerSection) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderAbsoluteSection).call(this, cells, innerSection));
|
|
1020
1075
|
}
|
|
1021
1076
|
else if ((_b = section.content) === null || _b === void 0 ? void 0 : _b.length) {
|
|
1022
|
-
|
|
1077
|
+
const firstTBL = section.content.find((item) => item.shape === FCellShapes.TABLE);
|
|
1078
|
+
const absoluteTblPositioningData = firstTBL
|
|
1079
|
+
? {
|
|
1080
|
+
absoluteRow: firstTBL.absoluteRow,
|
|
1081
|
+
absoluteHeight: firstTBL.absoluteHeight,
|
|
1082
|
+
}
|
|
1083
|
+
: {};
|
|
1084
|
+
content = section.content.map((field) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderAbsoluteField).call(this, cells, field, absoluteTblPositioningData));
|
|
1023
1085
|
}
|
|
1024
1086
|
//If width is not specified the div in the return at the end can be removed
|
|
1025
1087
|
if (getAbsoluteWidth(section.absoluteWidth) == null) {
|
|
@@ -1117,7 +1179,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1117
1179
|
'grid-row-end': rowEnd,
|
|
1118
1180
|
};
|
|
1119
1181
|
return (h("div", { style: styleObj }, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, fieldCell.cell, cells.row, fieldCell.column)));
|
|
1120
|
-
}, _KupInputPanel_renderAbsoluteField = function _KupInputPanel_renderAbsoluteField(cells, field) {
|
|
1182
|
+
}, _KupInputPanel_renderAbsoluteField = function _KupInputPanel_renderAbsoluteField(cells, field, absoluteTblPositioningData) {
|
|
1121
1183
|
const fieldCell = cells.cells.find((cell) => cell.column.name === field.id);
|
|
1122
1184
|
if (!fieldCell || !fieldCell.cell || !fieldCell.column.visible) {
|
|
1123
1185
|
return;
|
|
@@ -1134,25 +1196,21 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1134
1196
|
}
|
|
1135
1197
|
const absoluteWidth = fieldCell.cell.shape === FCellShapes.LABEL
|
|
1136
1198
|
? getLabelAbsoluteWidth(length)
|
|
1137
|
-
: getAbsoluteWidth(length);
|
|
1199
|
+
: getAbsoluteWidth(length, graphicShapeHasIcon(fieldCell.cell.shape));
|
|
1138
1200
|
const absoluteHeight = getAbsoluteHeight(field.absoluteHeight);
|
|
1139
|
-
const absoluteTop = getAbsoluteTop(field.absoluteRow);
|
|
1201
|
+
const absoluteTop = getAbsoluteTop(field.absoluteRow, absoluteTblPositioningData);
|
|
1140
1202
|
const absoluteLeft = getAbsoluteLeft(field.absoluteColumn);
|
|
1141
1203
|
const styleObj = {
|
|
1142
1204
|
position: 'absolute',
|
|
1143
|
-
width: absoluteWidth
|
|
1144
|
-
'min-width': absoluteWidth
|
|
1145
|
-
'max-width': absoluteWidth
|
|
1146
|
-
height: absoluteHeight
|
|
1147
|
-
'min-height': absoluteHeight
|
|
1148
|
-
'max-height': absoluteHeight
|
|
1149
|
-
top: absoluteTop
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
left: absoluteLeft !== null
|
|
1153
|
-
? `${getAbsoluteLeft(field.absoluteColumn)}px`
|
|
1154
|
-
: null,
|
|
1155
|
-
overflow: 'auto',
|
|
1205
|
+
width: absoluteWidth != null ? `${absoluteWidth}px` : null,
|
|
1206
|
+
'min-width': absoluteWidth != null ? `${absoluteWidth}px` : null,
|
|
1207
|
+
'max-width': absoluteWidth != null ? `${absoluteWidth}px` : null,
|
|
1208
|
+
height: absoluteHeight != null ? `${absoluteHeight}px` : null,
|
|
1209
|
+
'min-height': absoluteHeight != null ? `${absoluteHeight}px` : null,
|
|
1210
|
+
'max-height': absoluteHeight != null ? `${absoluteHeight}px` : null,
|
|
1211
|
+
top: absoluteTop != null ? `${absoluteTop}px` : null,
|
|
1212
|
+
left: absoluteLeft != null ? `${absoluteLeft}px` : null,
|
|
1213
|
+
overflow: 'hidden',
|
|
1156
1214
|
};
|
|
1157
1215
|
fieldCell.cell.data = Object.assign(Object.assign(Object.assign({}, fieldCell.cell.data), { customStyle: (fieldCell.cell.data.customStyle || '') +
|
|
1158
1216
|
'.mdc-text-field {height: unset !important;}', legacyLook: true, helperEnabled: false }), (fieldCell.cell.shape === FCellShapes.TABLE && {
|
|
@@ -1214,7 +1272,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1214
1272
|
}));
|
|
1215
1273
|
this.inputPanelCells = inpuPanelCells;
|
|
1216
1274
|
}, _KupInputPanel_setData = function _KupInputPanel_setData(cell, column, layout) {
|
|
1217
|
-
const defaultProps = Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column, layout)), { disabled: !cell.
|
|
1275
|
+
const defaultProps = Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapData).call(this, cell, column, layout)), { disabled: !cell.isEditable, id: column.name });
|
|
1218
1276
|
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
1219
1277
|
const _a = cell.data || {}, { data } = _a, noDataProps = __rest(_a, ["data"]);
|
|
1220
1278
|
return cellType !== FCellTypes.MULTI_AUTOCOMPLETE &&
|
|
@@ -1302,25 +1360,22 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1302
1360
|
: null;
|
|
1303
1361
|
}, _KupInputPanel_slotData = function _KupInputPanel_slotData(cell, col) {
|
|
1304
1362
|
const cellType = dom.ketchup.data.cell.getType(cell, cell.shape);
|
|
1305
|
-
if (!cell.editable) {
|
|
1306
|
-
return null;
|
|
1307
|
-
}
|
|
1308
1363
|
if (cellType === FCellTypes.CHIP) {
|
|
1309
1364
|
return {
|
|
1310
1365
|
trailingIcon: true,
|
|
1311
1366
|
label: col.title,
|
|
1312
|
-
disabled: !cell.
|
|
1367
|
+
disabled: !cell.isEditable,
|
|
1313
1368
|
id: col.name,
|
|
1314
1369
|
fullWidth: false,
|
|
1315
1370
|
};
|
|
1316
1371
|
}
|
|
1317
1372
|
if (cellType === FCellTypes.MULTI_AUTOCOMPLETE ||
|
|
1318
1373
|
cellType === FCellTypes.MULTI_COMBOBOX) {
|
|
1319
|
-
return Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter).call(this, cell.options, col.title, null)), { showDropDownIcon: true, class: '', style: { width: '100%' }, disabled: !cell.
|
|
1374
|
+
return Object.assign(Object.assign({}, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_CMBandACPAdapter).call(this, cell.options, col.title, null)), { showDropDownIcon: true, class: '', style: { width: '100%' }, disabled: !cell.isEditable, id: col.name });
|
|
1320
1375
|
}
|
|
1321
1376
|
return null;
|
|
1322
|
-
}, _KupInputPanel_CHIAdapter = function _KupInputPanel_CHIAdapter(_options, _fieldLabel, currentValue) {
|
|
1323
|
-
return CHIAdapter(currentValue);
|
|
1377
|
+
}, _KupInputPanel_CHIAdapter = function _KupInputPanel_CHIAdapter(_options, _fieldLabel, currentValue, cell) {
|
|
1378
|
+
return CHIAdapter(currentValue, cell.decode);
|
|
1324
1379
|
}, _KupInputPanel_GRAAdapter = function _KupInputPanel_GRAAdapter() {
|
|
1325
1380
|
//TODO: definire mapping
|
|
1326
1381
|
return {
|
|
@@ -1335,15 +1390,10 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1335
1390
|
},
|
|
1336
1391
|
};
|
|
1337
1392
|
}, _KupInputPanel_BTNAdapter = function _KupInputPanel_BTNAdapter(_options, _fieldLabel, _currentValue, cell, id) {
|
|
1338
|
-
var _a, _b, _c, _d;
|
|
1339
1393
|
cell.data = cell.data || {};
|
|
1340
1394
|
cell.data.onClick = () => {
|
|
1341
1395
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getFunctionOnClickBTN).call(this, cell, id);
|
|
1342
1396
|
};
|
|
1343
|
-
if (((_a = cell.data) === null || _a === void 0 ? void 0 : _a.keyShortcut) && !((_b = cell.data) === null || _b === void 0 ? void 0 : _b.disabled)) {
|
|
1344
|
-
__classPrivateFieldGet(this, _KupInputPanel_keysShortcut, "f").push((_c = cell.data) === null || _c === void 0 ? void 0 : _c.keyShortcut);
|
|
1345
|
-
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").keysBinding.register((_d = cell.data) === null || _d === void 0 ? void 0 : _d.keyShortcut, cell.data.onClick.bind(this));
|
|
1346
|
-
}
|
|
1347
1397
|
return Object.assign({ label: cell.value, fun: cell.fun }, cell.data);
|
|
1348
1398
|
}, _KupInputPanel_CMBandACPAdapter = function _KupInputPanel_CMBandACPAdapter(rawOptions, fieldLabel, currentValue) {
|
|
1349
1399
|
const configCMandACP = CMBandACPAdapter(currentValue, fieldLabel, []);
|
|
@@ -1378,9 +1428,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1378
1428
|
}, _KupInputPanel_ITXAdapter = function _KupInputPanel_ITXAdapter(_options, fieldLabel, _currentValue, cell, id) {
|
|
1379
1429
|
var _a;
|
|
1380
1430
|
const data = Object.assign({ label: fieldLabel }, cell.data);
|
|
1381
|
-
if (this.autoSkip &&
|
|
1382
|
-
(cell.isEditable || cell.editable) &&
|
|
1383
|
-
((_a = cell.data) === null || _a === void 0 ? void 0 : _a.maxLength)) {
|
|
1431
|
+
if (this.autoSkip && cell.isEditable && ((_a = cell.data) === null || _a === void 0 ? void 0 : _a.maxLength)) {
|
|
1384
1432
|
data.onInput = (event) => {
|
|
1385
1433
|
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_setAutoSkip).call(this, id, event);
|
|
1386
1434
|
};
|
|
@@ -1517,21 +1565,16 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1517
1565
|
const [id, value] = Object.keys(cells);
|
|
1518
1566
|
return {
|
|
1519
1567
|
id: cells[id].value,
|
|
1520
|
-
value: cells[value].value
|
|
1568
|
+
value: value ? cells[value].value : cells[id].value,
|
|
1521
1569
|
selected: currentValue === cells[id].value,
|
|
1522
1570
|
};
|
|
1523
1571
|
});
|
|
1524
1572
|
}, _KupInputPanel_commandAdapter = function _KupInputPanel_commandAdapter(cell) {
|
|
1525
|
-
if (cell.data &&
|
|
1526
|
-
!cell.data.keyShortcut &&
|
|
1527
|
-
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").objects.isJ1Key(cell.obj ? cell.obj : {})) {
|
|
1528
|
-
cell.data.keyShortcut = InputPanelKeyCommands[cell.obj.k];
|
|
1529
|
-
}
|
|
1530
1573
|
const buttonCell = Object.assign(Object.assign({}, cell), { data: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_BTNAdapter).call(this, null, null, cell.value, cell, cell.obj.k), id: cell.obj.k });
|
|
1531
1574
|
return buttonCell;
|
|
1532
1575
|
}, _KupInputPanel_getAutocompleteEventCallback = function _KupInputPanel_getAutocompleteEventCallback(detail, cell) {
|
|
1533
1576
|
this.optionsHandler(cell.fun, detail.inputValue, __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this), detail.id).then((options) => {
|
|
1534
|
-
var _a, _b, _c, _d, _e;
|
|
1577
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1535
1578
|
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) || !('visible' in col)).map((col) => col.name)) || [];
|
|
1536
1579
|
const filteredRows = (_b = options === null || options === void 0 ? void 0 : options.rows) === null || _b === void 0 ? void 0 : _b.map((row) => {
|
|
1537
1580
|
const { cells } = row;
|
|
@@ -1544,11 +1587,14 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1544
1587
|
return Object.assign(Object.assign({}, row), { cells: filteredCells });
|
|
1545
1588
|
});
|
|
1546
1589
|
const visibleColumnsOptions = Object.assign(Object.assign({}, options), { rows: filteredRows });
|
|
1547
|
-
const kupListData =
|
|
1590
|
+
const kupListData = cell.shape === FCellShapes.MULTI_AUTOCOMPLETE
|
|
1591
|
+
? cell.slotData.data['kup-list']
|
|
1592
|
+
: (_d = (_c = cell.data) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d['kup-list'];
|
|
1548
1593
|
if (kupListData) {
|
|
1549
1594
|
kupListData.data = (filteredRows === null || filteredRows === void 0 ? void 0 : filteredRows.length)
|
|
1550
1595
|
? (_e = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_optionsTreeComboAdapter).call(this, visibleColumnsOptions, cell.value)) !== null && _e !== void 0 ? _e : []
|
|
1551
1596
|
: [];
|
|
1597
|
+
kupListData.options = (_f = options.columns) !== null && _f !== void 0 ? _f : [];
|
|
1552
1598
|
}
|
|
1553
1599
|
else {
|
|
1554
1600
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logMessage(this, 'getAutocompleteEventCallback() - "kup-list" not found in cell.data.data', KupDebugCategory.WARNING);
|
|
@@ -1633,7 +1679,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
|
|
|
1633
1679
|
}, _KupInputPanel_areValuesUpdated = function _KupInputPanel_areValuesUpdated() {
|
|
1634
1680
|
return this.inputPanelCells.some(({ cells, row }) => cells.some(({ cell, column: { name } }) => cell.value !== row.cells[name].value));
|
|
1635
1681
|
}, _KupInputPanel_getFunctionOnClickBTN = function _KupInputPanel_getFunctionOnClickBTN(cell, id) {
|
|
1636
|
-
cell.fun
|
|
1682
|
+
(cell === null || cell === void 0 ? void 0 : cell.fun)
|
|
1637
1683
|
? this.customButtonClickHandler({
|
|
1638
1684
|
fun: cell.fun,
|
|
1639
1685
|
cellId: id,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
.kup-label-01 {
|
|
26
26
|
font-family: var(--kup-font-family);
|
|
27
|
-
font-size: 12px;
|
|
27
|
+
font-size: var(--kup-label-01-font-size, 12px);
|
|
28
28
|
line-height: 16px;
|
|
29
29
|
font-weight: 400;
|
|
30
30
|
letter-spacing: 0.32px;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
.kup-heading-compact-01 {
|
|
58
58
|
font-family: var(--kup-font-family);
|
|
59
|
-
font-size: 14px;
|
|
59
|
+
font-size: var(--kup-heading-compact-01-font-size, 14px);
|
|
60
60
|
line-height: 18px;
|
|
61
61
|
font-weight: 600;
|
|
62
62
|
letter-spacing: 0.16px;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
.kup-heading-01 {
|
|
66
66
|
font-family: var(--kup-font-family);
|
|
67
|
-
font-size: 14px;
|
|
67
|
+
font-size: var(--kup-heading-01-font-size, 14px);
|
|
68
68
|
line-height: 20px;
|
|
69
69
|
font-weight: 600;
|
|
70
70
|
letter-spacing: 0.16px;
|
|
@@ -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: '3d3f813296d36cdcd7d173d9f436e0d552a0673b', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '23e46931d75401379ce83357a9c343c7c720acfd', 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: '31f0e5169cd260697da6edd1c763db915b8153cf', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '65ac92668eb2914e838b8333f7db8b863f500435', 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: 'e969df1de6bddaad47c745033e6c67f3cd155067', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '32a60569f176c7e0bda2577c5f28116e6102741f', 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: '3990a3b5027d15ba60962352f011efc0bc0bdbc8', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: 'c745d3d21ce3dcc2f6eae81c558cdfb9ddf7856c', 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: '39530590dd10736009c375b5f21e8a62b9e9bb6e', xmlns: "http://www.w3.org/2000/svg", version: "1.1", width: "100%", height: "100%", viewBox: "0 0 24 24" }, h("path", { key: '929b9d6f5a883ae75056635152b971f41b4f7fab', 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: 'e0352a356d272be14bbb79539526c0cb72ffcea1', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'c2743da82c65cc5a8a8238dda4bbd79a07a4f7e6', 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: '490fc3794bf51a697a165784e7c2f3e208e0fb24', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'd6fe5a4e35eb39076669fff9027bc300ac0ea7a9', 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: 'ddaca4167f0df39ff99c2eedf51da43e11daa217', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: 'f1277d43c4b879169ef89e57f3212adc3bd1673b', 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: 'bac4baf6a31b7f455fb1ec4875c2d01109a136cf', xmlns: "http://www.w3.org/2000/svg", width: "100%", height: "100%", viewBox: "0 0 48 48" }, h("path", { key: '6766752680a0ece7a570ae86cb7ea7451b2f6768', 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: 'c0d1463f2f6d7abde1954aed56c87727966a421b' }, 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: '71c1a3aec26a79f50340cb14cf92f79fedd590a1', class: className }, h("style", { key: '41231e59fd53a143644414d9dc15e4be2c7b4715' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '210ea58d84ae6f3ecf2a224cb5e65f74e1b1469f', id: componentWrapperId }, content)));
|
|
160
160
|
}
|
|
161
161
|
disconnectedCallback() {
|
|
162
162
|
var _a;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
.kup-label-01 {
|
|
26
26
|
font-family: var(--kup-font-family);
|
|
27
|
-
font-size: 12px;
|
|
27
|
+
font-size: var(--kup-label-01-font-size, 12px);
|
|
28
28
|
line-height: 16px;
|
|
29
29
|
font-weight: 400;
|
|
30
30
|
letter-spacing: 0.32px;
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
.kup-heading-compact-01 {
|
|
58
58
|
font-family: var(--kup-font-family);
|
|
59
|
-
font-size: 14px;
|
|
59
|
+
font-size: var(--kup-heading-compact-01-font-size, 14px);
|
|
60
60
|
line-height: 18px;
|
|
61
61
|
font-weight: 600;
|
|
62
62
|
letter-spacing: 0.16px;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
.kup-heading-01 {
|
|
66
66
|
font-family: var(--kup-font-family);
|
|
67
|
-
font-size: 14px;
|
|
67
|
+
font-size: var(--kup-heading-01-font-size, 14px);
|
|
68
68
|
line-height: 20px;
|
|
69
69
|
font-weight: 600;
|
|
70
70
|
letter-spacing: 0.16px;
|