@sme.up/ketchup 10.1.0 → 10.2.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-83ca2b8b.js → f-cell-3ed4ad9e.js} +376 -168
- package/dist/cjs/{f-checkbox-59fb7aa5.js → f-checkbox-aaa6d45c.js} +3 -2
- package/dist/cjs/{f-chip-286f1c8d.js → f-chip-b936dcaf.js} +146 -10
- package/dist/cjs/{f-image-d22b012f.js → f-image-db10b066.js} +1 -1
- package/dist/cjs/{f-object-field-0986026c.js → f-object-field-348fa103.js} +13 -6
- package/dist/cjs/{f-paginator-utils-ee281217.js → f-paginator-utils-f951cc54.js} +15 -6
- package/dist/cjs/{f-text-field-463a6dbe.js → f-text-field-e41f653a.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} +2360 -1472
- package/dist/cjs/kup-box.cjs.entry.js +60 -59
- 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-c7d3445e.js → kup-data-table-helper-adaa11bb.js} +52 -84
- 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 +2 -2
- 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 +102 -73
- 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-f41ad314.js → kup-manager-39bc2be8.js} +425 -246
- 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.css +3 -3
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +49 -13
- 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 +48 -47
- package/dist/collection/components/kup-button/kup-button.css +3 -3
- 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-clock.js +4 -2
- 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 +248 -20
- package/dist/collection/components/kup-card/kup-card.js +5 -2
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -8
- 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.css +3 -3
- package/dist/collection/components/kup-combobox/kup-combobox.js +30 -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 +707 -232
- package/dist/collection/components/kup-date-picker/kup-date-picker.css +3 -3
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +11 -6
- 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-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 +13 -4
- package/dist/collection/components/kup-input-panel/kup-input-panel.css +12 -5
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +89 -59
- 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 +59 -13
- 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 +57 -9
- 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 +93 -45
- 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-declarations.js +1 -0
- 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-paginator/f-paginator.js +10 -2
- 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 +8 -0
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +12 -1
- package/dist/collection/managers/kup-interact/kup-interact.js +43 -22
- package/dist/collection/managers/kup-keys-binding/kup-keys-binding.js +2 -2
- package/dist/collection/managers/kup-language/kup-language-declarations.js +11 -2
- package/dist/collection/managers/kup-manager/kup-manager.js +8 -1
- 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 +9 -22
- package/dist/collection/utils/filters/filters-declarations.js +1 -1
- package/dist/collection/utils/filters/filters-rows.js +36 -58
- package/dist/collection/utils/filters/filters-tree-items.js +11 -11
- package/dist/collection/utils/filters/filters.js +19 -9
- package/dist/collection/utils/g-cell-style-generator.js +188 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +0 -2
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +10 -10
- 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 +117 -83
- 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-5f307bf2.js → p-3438f15f.js} +71 -65
- package/dist/components/p-3b4cdace.js +56 -0
- package/dist/components/p-55542b47.js +38 -0
- 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-ef8026e9.js → p-7d0f1f90.js} +3075 -1532
- package/dist/components/{p-709a51cf.js → p-8472facf.js} +4 -4
- package/dist/components/p-97053b4d.js +45 -0
- package/dist/components/{p-0ac9fd6c.js → p-a0258e6f.js} +69 -29
- package/dist/components/{p-a3f73a90.js → p-b304b91c.js} +423 -246
- package/dist/components/{p-09b28008.js → p-b80494d7.js} +23 -18
- 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-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-e30483fa.js → p-eb8a2811.js} +22 -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-82b9ae70.js → f-cell-6576e009.js} +376 -168
- package/dist/esm/{f-checkbox-3ba20ca4.js → f-checkbox-5cdd1cad.js} +3 -2
- package/dist/esm/{f-chip-f98be128.js → f-chip-bb62428a.js} +145 -11
- package/dist/esm/{f-image-9b15e9ac.js → f-image-a2ecd7c3.js} +1 -1
- package/dist/esm/{f-object-field-1a4f54ea.js → f-object-field-b87b6ae6.js} +13 -6
- package/dist/esm/{f-paginator-utils-2fc5cd18.js → f-paginator-utils-04903d74.js} +15 -6
- package/dist/esm/{f-text-field-e766e681.js → f-text-field-9be88e51.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} +2356 -1469
- package/dist/esm/kup-box.entry.js +60 -59
- 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-e350cc90.js → kup-data-table-helper-13eb7abf.js} +52 -84
- 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 +2 -2
- 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 +102 -73
- package/dist/esm/kup-lazy.entry.js +14 -14
- package/dist/esm/kup-magic-box.entry.js +7 -7
- package/dist/esm/{kup-manager-6c75d73b.js → kup-manager-6aa0a1c7.js} +424 -247
- 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-07f50333.entry.js +1 -0
- package/dist/ketchup/p-0b1e0b48.js +1 -0
- package/dist/ketchup/p-0de49966.entry.js +1 -0
- package/dist/ketchup/{p-93d6f4a9.entry.js → p-100b8ae7.entry.js} +1 -1
- package/dist/ketchup/{p-bc37db5b.entry.js → p-15f192f0.entry.js} +1 -1
- package/dist/ketchup/p-267d1898.js +1 -0
- package/dist/ketchup/p-2d84c26e.entry.js +1 -0
- package/dist/ketchup/p-3cab6420.js +1 -0
- package/dist/ketchup/p-3dbafa20.entry.js +9 -0
- package/dist/ketchup/p-3e42953b.entry.js +1 -0
- package/dist/ketchup/p-42a1f9ec.entry.js +1 -0
- package/dist/ketchup/p-4677cfd1.entry.js +1 -0
- package/dist/ketchup/{p-865ce089.entry.js → p-4ffc1a88.entry.js} +1 -1
- package/dist/ketchup/p-55b0991f.entry.js +1 -0
- package/dist/ketchup/p-58002a23.entry.js +1 -0
- package/dist/ketchup/p-5d9f2d24.entry.js +1 -0
- package/dist/ketchup/p-65b23870.entry.js +1 -0
- package/dist/ketchup/p-6b529a6f.entry.js +16 -0
- package/dist/ketchup/{p-53596bee.entry.js → p-6d628b49.entry.js} +1 -1
- package/dist/ketchup/p-6fc1bb18.entry.js +1 -0
- package/dist/ketchup/{p-b0368f88.js → p-710d0a7d.js} +1 -1
- package/dist/ketchup/p-838d8e97.js +1 -0
- package/dist/ketchup/p-8be42f5c.js +1 -0
- package/dist/ketchup/p-92431583.entry.js +1 -0
- package/dist/ketchup/{p-50b0da0c.entry.js → p-9b907768.entry.js} +1 -1
- package/dist/ketchup/p-9bc02da6.entry.js +1 -0
- package/dist/ketchup/p-9edd90c2.entry.js +1 -0
- package/dist/ketchup/p-9f9428d1.js +1 -0
- package/dist/ketchup/p-a4b6d6c5.js +1 -0
- package/dist/ketchup/p-a597a851.entry.js +1 -0
- package/dist/ketchup/p-b365f2f2.entry.js +1 -0
- package/dist/ketchup/{p-543f99d3.entry.js → p-c2ccbaca.entry.js} +1 -1
- package/dist/ketchup/p-c4224227.js +1 -0
- package/dist/ketchup/{p-60cfddce.js → p-cec0955d.js} +1 -1
- package/dist/ketchup/p-d0554d1f.entry.js +1 -0
- package/dist/ketchup/p-d084b2d4.entry.js +1 -0
- package/dist/ketchup/{p-cdf92c8b.entry.js → p-d8dbf3df.entry.js} +1 -1
- package/dist/ketchup/{p-fe190410.entry.js → p-da44226a.entry.js} +1 -1
- package/dist/ketchup/p-e104cfb7.js +1 -0
- package/dist/ketchup/p-e4fa2cf3.js +21 -0
- package/dist/ketchup/{p-d8ef1613.entry.js → p-e6afa8a6.entry.js} +4 -4
- package/dist/ketchup/{p-54ebe3bd.entry.js → p-f87b7768.entry.js} +1 -1
- package/dist/ketchup/{p-03d1cafc.entry.js → p-f8a027a1.entry.js} +2 -2
- package/dist/ketchup/{p-bdd3e0a4.entry.js → p-fb775526.entry.js} +1 -1
- package/dist/ketchup/{p-2133fdbb.entry.js → p-fdcb43a2.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.d.ts +6 -0
- 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.d.ts +4 -0
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +8 -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 +36 -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 +3 -3
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +2 -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 +8 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +2 -0
- package/dist/types/components/kup-typography/kup-typography.d.ts +30 -5
- package/dist/types/components.d.ts +296 -26
- 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-paginator/f-paginator-declarations.d.ts +1 -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 +12 -4
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +2 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
- 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 +4 -2
- package/dist/types/utils/g-cell-style-generator.d.ts +2 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +1 -3
- package/dist/types/utils/label-utils.d.ts +2 -0
- package/package.json +1 -1
- 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-1206f77c.entry.js +0 -9
- package/dist/ketchup/p-153b7eda.js +0 -1
- package/dist/ketchup/p-2d3a89a0.entry.js +0 -1
- package/dist/ketchup/p-35e17994.entry.js +0 -1
- package/dist/ketchup/p-3f41285f.entry.js +0 -1
- package/dist/ketchup/p-4bbc1e40.entry.js +0 -1
- package/dist/ketchup/p-4c0d6ec5.entry.js +0 -1
- package/dist/ketchup/p-5ee25762.js +0 -1
- package/dist/ketchup/p-60cdaa75.entry.js +0 -1
- package/dist/ketchup/p-60e8333c.entry.js +0 -1
- package/dist/ketchup/p-7585373e.entry.js +0 -1
- package/dist/ketchup/p-792e9244.entry.js +0 -1
- package/dist/ketchup/p-7a36e244.js +0 -1
- package/dist/ketchup/p-7a4f5182.js +0 -1
- package/dist/ketchup/p-7c078bc1.entry.js +0 -1
- package/dist/ketchup/p-7fbb8a80.entry.js +0 -1
- package/dist/ketchup/p-8b97f53e.js +0 -1
- package/dist/ketchup/p-97fe2d0c.entry.js +0 -1
- package/dist/ketchup/p-9b92dd8f.entry.js +0 -1
- package/dist/ketchup/p-a781d278.entry.js +0 -1
- package/dist/ketchup/p-b120abd7.js +0 -1
- package/dist/ketchup/p-c5614700.js +0 -21
- package/dist/ketchup/p-ce31744e.entry.js +0 -1
- package/dist/ketchup/p-d104a456.js +0 -1
- package/dist/ketchup/p-d39c3267.js +0 -1
- package/dist/ketchup/p-e7f6ca6c.entry.js +0 -1
- package/dist/ketchup/p-eb908331.entry.js +0 -1
- package/dist/ketchup/p-f38c2d0e.entry.js +0 -16
- package/dist/ketchup/p-f648a3cb.entry.js +0 -1
- package/dist/ketchup/p-f8c8cc84.js +0 -1
|
@@ -73,12 +73,12 @@ export class KupActivityTimeline {
|
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
activityItem(activity) {
|
|
76
|
-
return (h("div", { class: "atm-row" }, activity.
|
|
76
|
+
return (h("div", { class: "atm-row" }, activity.cells.map((cell) => (h("div", { class: "atm-col" }, h("div", { class: "atm-inner-col" }, h("h3", null, cell.title, ":")), h("div", { class: "atm-inner-col", onClick: (e) => {
|
|
77
77
|
e.stopPropagation();
|
|
78
|
-
this.onActivityClick(e,
|
|
78
|
+
this.onActivityClick(e, cell);
|
|
79
79
|
}, onContextMenu: (e) => {
|
|
80
|
-
this.onActivityContextMenu(e,
|
|
81
|
-
} }, h("p", null,
|
|
80
|
+
this.onActivityContextMenu(e, cell);
|
|
81
|
+
} }, h("p", null, cell.value)))))));
|
|
82
82
|
}
|
|
83
83
|
calendarIcon() {
|
|
84
84
|
return (h(FImage, { color: "white", resource: 'calendar', wrapperClass: "activity-timeline-item__icon", sizeX: "20px", sizeY: "32px" }));
|
|
@@ -381,18 +381,32 @@ export class KupActivityTimeline {
|
|
|
381
381
|
}
|
|
382
382
|
_KupActivityTimeline_kupManager = new WeakMap(), _KupActivityTimeline_instances = new WeakSet(), _KupActivityTimeline_toTimeline = function _KupActivityTimeline_toTimeline(data) {
|
|
383
383
|
const { columns, rows } = data;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
if (!dateColumn || !timeColumn)
|
|
384
|
+
if (!rows) {
|
|
385
|
+
__classPrivateFieldGet(this, _KupActivityTimeline_kupManager, "f").debug.logMessage(this, 'Empty rows', KupDebugCategory.ERROR);
|
|
387
386
|
return [];
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
387
|
+
}
|
|
388
|
+
const dateColumn = columns.find((col) => __classPrivateFieldGet(this, _KupActivityTimeline_kupManager, "f").objects.isDate(col.obj) &&
|
|
389
|
+
col.name === this.dateColumn);
|
|
390
|
+
const timeColumn = columns.find((col) => __classPrivateFieldGet(this, _KupActivityTimeline_kupManager, "f").objects.isTime(col.obj) &&
|
|
391
|
+
col.name === this.timeColumn);
|
|
392
|
+
if (!dateColumn && !timeColumn) {
|
|
393
|
+
__classPrivateFieldGet(this, _KupActivityTimeline_kupManager, "f").debug.logMessage(this, 'At least one of "dateColumn" or "timeColumn" must be set and exist in the dataset', KupDebugCategory.ERROR);
|
|
394
|
+
return [];
|
|
395
|
+
}
|
|
396
|
+
const filteredSort = this.sort.filter(({ column }) =>
|
|
397
|
+
// Filter only the existing columns
|
|
398
|
+
columns.some((col) => col.name === column));
|
|
399
|
+
const activitiesByDate = sortRows(rows, filteredSort).reduce((activitiesByDate, row) => {
|
|
400
|
+
const dateValue = dateColumn
|
|
401
|
+
? getCellValueForDisplay(dateColumn, row.cells[dateColumn.name])
|
|
402
|
+
: '';
|
|
403
|
+
const timeValue = timeColumn
|
|
404
|
+
? getCellValueForDisplay(timeColumn, row.cells[timeColumn.name])
|
|
405
|
+
: '';
|
|
406
|
+
const key = `${dateValue} ${timeValue}`.trim();
|
|
407
|
+
activitiesByDate[key].push({
|
|
408
|
+
cells: columns
|
|
409
|
+
.filter((col) => col.visible)
|
|
396
410
|
.map((col) => ({
|
|
397
411
|
title: col.title,
|
|
398
412
|
value: getCellValueForDisplay(col, row.cells[col.name]),
|
|
@@ -400,8 +414,14 @@ _KupActivityTimeline_kupManager = new WeakMap(), _KupActivityTimeline_instances
|
|
|
400
414
|
rowId: row.id,
|
|
401
415
|
})),
|
|
402
416
|
});
|
|
403
|
-
return
|
|
404
|
-
}, {}
|
|
417
|
+
return activitiesByDate;
|
|
418
|
+
}, new Proxy({}, {
|
|
419
|
+
get: (target, key) => {
|
|
420
|
+
var _a;
|
|
421
|
+
// Set default value if it doesn't exist yet
|
|
422
|
+
return (_a = target[key]) !== null && _a !== void 0 ? _a : (target[key] = []);
|
|
423
|
+
},
|
|
424
|
+
}));
|
|
405
425
|
return Object.entries(activitiesByDate).map(([date, activities]) => ({
|
|
406
426
|
date,
|
|
407
427
|
activities,
|
|
@@ -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;
|
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupAutocomplete_instances,
|
|
17
|
+
var _KupAutocomplete_instances, _KupAutocomplete_elStyle, _KupAutocomplete_listEl, _KupAutocomplete_kupManager, _KupAutocomplete_textfieldWrapper, _KupAutocomplete_textfieldEl, _KupAutocomplete_clickCb, _KupAutocomplete_inputTimeout, _KupAutocomplete_openList, _KupAutocomplete_closeList, _KupAutocomplete_isListOpened, _KupAutocomplete_consistencyCheck, _KupAutocomplete_prepList, _KupAutocomplete_calcSize;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
|
|
20
20
|
import { FTextField } from "../../f-components/f-text-field/f-text-field";
|
|
@@ -33,7 +33,6 @@ export class KupAutocomplete {
|
|
|
33
33
|
/*-------------------------------------------------*/
|
|
34
34
|
/* I n t e r n a l V a r i a b l e s */
|
|
35
35
|
/*-------------------------------------------------*/
|
|
36
|
-
_KupAutocomplete_doConsistencyCheck.set(this, true);
|
|
37
36
|
_KupAutocomplete_elStyle.set(this, undefined);
|
|
38
37
|
_KupAutocomplete_listEl.set(this, null);
|
|
39
38
|
/**
|
|
@@ -52,6 +51,7 @@ export class KupAutocomplete {
|
|
|
52
51
|
this.data = undefined;
|
|
53
52
|
this.disabled = false;
|
|
54
53
|
this.displayMode = ItemsDisplayMode.DESCRIPTION;
|
|
54
|
+
this.listDisplayMode = ItemsDisplayMode.CODE_AND_DESC;
|
|
55
55
|
this.error = '';
|
|
56
56
|
this.icon = null;
|
|
57
57
|
this.initialValue = '';
|
|
@@ -81,7 +81,6 @@ export class KupAutocomplete {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
onKupChange(value) {
|
|
84
|
-
__classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
85
84
|
if (value) {
|
|
86
85
|
const ret = __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, undefined, true);
|
|
87
86
|
if (ret.exists || this.allowInconsistentValues) {
|
|
@@ -123,7 +122,6 @@ export class KupAutocomplete {
|
|
|
123
122
|
});
|
|
124
123
|
}
|
|
125
124
|
onKupInput() {
|
|
126
|
-
__classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
127
125
|
const ret = __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value, undefined, false);
|
|
128
126
|
setTimeout(() => {
|
|
129
127
|
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
|
|
@@ -170,6 +168,16 @@ export class KupAutocomplete {
|
|
|
170
168
|
});
|
|
171
169
|
}
|
|
172
170
|
/*-------------------------------------------------*/
|
|
171
|
+
/* W a t c h e r s */
|
|
172
|
+
/*-------------------------------------------------*/
|
|
173
|
+
initialValueChange(newValue) {
|
|
174
|
+
this.initialValueDecode = undefined;
|
|
175
|
+
this.setValue(newValue, undefined);
|
|
176
|
+
}
|
|
177
|
+
initialValueDecodeChange(newValue) {
|
|
178
|
+
this.setValue(this.initialValue, newValue);
|
|
179
|
+
}
|
|
180
|
+
/*-------------------------------------------------*/
|
|
173
181
|
/* L i s t e n e r s */
|
|
174
182
|
/*-------------------------------------------------*/
|
|
175
183
|
listenKeydown(e) {
|
|
@@ -259,7 +267,6 @@ export class KupAutocomplete {
|
|
|
259
267
|
* @param {string} value - Value of the component.
|
|
260
268
|
*/
|
|
261
269
|
async setValue(value, valueDecode) {
|
|
262
|
-
__classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
263
270
|
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, value, valueDecode, true);
|
|
264
271
|
}
|
|
265
272
|
/**
|
|
@@ -275,7 +282,6 @@ export class KupAutocomplete {
|
|
|
275
282
|
componentWillLoad() {
|
|
276
283
|
__classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").debug.logLoad(this, false);
|
|
277
284
|
__classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.register(this);
|
|
278
|
-
__classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
279
285
|
this.value = this.initialValue;
|
|
280
286
|
if (!this.data) {
|
|
281
287
|
this.data = {
|
|
@@ -333,7 +339,7 @@ export class KupAutocomplete {
|
|
|
333
339
|
};
|
|
334
340
|
const fullHeight = this.rootElement.classList.contains('kup-full-height');
|
|
335
341
|
const fullWidth = this.rootElement.classList.contains('kup-full-width');
|
|
336
|
-
return (h(Host, { key: '
|
|
342
|
+
return (h(Host, { key: '34b53e37b4e6d9ea9ad04fc93f9e50f172243483', class: `${fullHeight ? 'kup-full-height' : ''} ${fullWidth ? 'kup-full-width' : ''}`, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h("style", { key: 'aa6fe378e2035a502e273261b6a2bf098635deb5' }, __classPrivateFieldGet(this, _KupAutocomplete_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'af0e6b946566ced1bee92e5b1ec39c8f7cea1b0b', id: componentWrapperId, style: __classPrivateFieldGet(this, _KupAutocomplete_elStyle, "f") }, h(FTextField, Object.assign({ key: '013526b611b989ca3c21fdcf78135a0a086434b0' }, props, { icon: this.showDropDownIcon
|
|
337
343
|
? KupThemeIconValues.SEARCH
|
|
338
344
|
: null, trailingIcon: true }, this.data['kup-text-field'], { disabled: this.disabled, fullHeight: fullHeight, fullWidth: fullWidth, value: this.displayedValue, onBlur: () => this.onKupBlur(), onClick: () => this.onKupClick(), onChange: (e) => this.onKupChange(e.target.value), onFocus: () => this.onKupFocus(), onInput: () => {
|
|
339
345
|
window.clearTimeout(__classPrivateFieldGet(this, _KupAutocomplete_inputTimeout, "f"));
|
|
@@ -499,6 +505,30 @@ export class KupAutocomplete {
|
|
|
499
505
|
"reflect": false,
|
|
500
506
|
"defaultValue": "ItemsDisplayMode.DESCRIPTION"
|
|
501
507
|
},
|
|
508
|
+
"listDisplayMode": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"mutable": false,
|
|
511
|
+
"complexType": {
|
|
512
|
+
"original": "ItemsDisplayMode",
|
|
513
|
+
"resolved": "ItemsDisplayMode.CODE | ItemsDisplayMode.CODE_AND_DESC | ItemsDisplayMode.CODE_AND_DESC_ALIAS | ItemsDisplayMode.DESCRIPTION | ItemsDisplayMode.DESC_AND_CODE",
|
|
514
|
+
"references": {
|
|
515
|
+
"ItemsDisplayMode": {
|
|
516
|
+
"location": "import",
|
|
517
|
+
"path": "../kup-list/kup-list-declarations",
|
|
518
|
+
"id": "src/components/kup-list/kup-list-declarations.ts::ItemsDisplayMode"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"required": false,
|
|
523
|
+
"optional": false,
|
|
524
|
+
"docs": {
|
|
525
|
+
"tags": [],
|
|
526
|
+
"text": "Sets how to show the selected item value. Suported values: \"CodeOnly\", \"DescOnly\", \"Both\" or \"CodeAndDesc\" and \"DescAndCode\"."
|
|
527
|
+
},
|
|
528
|
+
"attribute": "list-display-mode",
|
|
529
|
+
"reflect": false,
|
|
530
|
+
"defaultValue": "ItemsDisplayMode.CODE_AND_DESC"
|
|
531
|
+
},
|
|
502
532
|
"error": {
|
|
503
533
|
"type": "string",
|
|
504
534
|
"mutable": false,
|
|
@@ -1191,6 +1221,15 @@ export class KupAutocomplete {
|
|
|
1191
1221
|
};
|
|
1192
1222
|
}
|
|
1193
1223
|
static get elementRef() { return "rootElement"; }
|
|
1224
|
+
static get watchers() {
|
|
1225
|
+
return [{
|
|
1226
|
+
"propName": "initialValue",
|
|
1227
|
+
"methodName": "initialValueChange"
|
|
1228
|
+
}, {
|
|
1229
|
+
"propName": "initialValueDecode",
|
|
1230
|
+
"methodName": "initialValueDecodeChange"
|
|
1231
|
+
}];
|
|
1232
|
+
}
|
|
1194
1233
|
static get listeners() {
|
|
1195
1234
|
return [{
|
|
1196
1235
|
"name": "keydown",
|
|
@@ -1201,7 +1240,7 @@ export class KupAutocomplete {
|
|
|
1201
1240
|
}];
|
|
1202
1241
|
}
|
|
1203
1242
|
}
|
|
1204
|
-
|
|
1243
|
+
_KupAutocomplete_elStyle = new WeakMap(), _KupAutocomplete_listEl = new WeakMap(), _KupAutocomplete_kupManager = new WeakMap(), _KupAutocomplete_textfieldWrapper = new WeakMap(), _KupAutocomplete_textfieldEl = new WeakMap(), _KupAutocomplete_clickCb = new WeakMap(), _KupAutocomplete_inputTimeout = new WeakMap(), _KupAutocomplete_instances = new WeakSet(), _KupAutocomplete_openList = function _KupAutocomplete_openList(forceOpen) {
|
|
1205
1244
|
var _a, _b;
|
|
1206
1245
|
if (forceOpen != true &&
|
|
1207
1246
|
__classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value.length < this.minimumChars) {
|
|
@@ -1213,6 +1252,7 @@ _KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle =
|
|
|
1213
1252
|
const topOffset = hasError || hasAlert ? -20 : 0;
|
|
1214
1253
|
__classPrivateFieldGet(this, _KupAutocomplete_textfieldWrapper, "f").classList.add('toggled');
|
|
1215
1254
|
__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible = true;
|
|
1255
|
+
__classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").setFocusOnFirstEl();
|
|
1216
1256
|
const elStyle = __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").style;
|
|
1217
1257
|
elStyle.height = 'auto';
|
|
1218
1258
|
elStyle.minWidth = __classPrivateFieldGet(this, _KupAutocomplete_textfieldWrapper, "f").clientWidth + 'px';
|
|
@@ -1241,14 +1281,10 @@ _KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle =
|
|
|
1241
1281
|
}, _KupAutocomplete_isListOpened = function _KupAutocomplete_isListOpened() {
|
|
1242
1282
|
return __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f").menuVisible == true;
|
|
1243
1283
|
}, _KupAutocomplete_consistencyCheck = function _KupAutocomplete_consistencyCheck(idIn, idInDecode, eventShouldSetValue) {
|
|
1244
|
-
if (!__classPrivateFieldGet(this, _KupAutocomplete_doConsistencyCheck, "f")) {
|
|
1245
|
-
return;
|
|
1246
|
-
}
|
|
1247
1284
|
if (idIn && idInDecode) {
|
|
1248
1285
|
this.displayedValue = getIdOfItemByDisplayMode({ id: idIn, value: idInDecode }, this.displayMode, ' - ');
|
|
1249
1286
|
}
|
|
1250
1287
|
else {
|
|
1251
|
-
__classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, false, "f");
|
|
1252
1288
|
const ret = consistencyCheck(idIn, this.data['kup-list'], __classPrivateFieldGet(this, _KupAutocomplete_listEl, "f"), this.selectMode, this.displayMode);
|
|
1253
1289
|
if ((ret.exists || this.allowInconsistentValues) &&
|
|
1254
1290
|
eventShouldSetValue) {
|
|
@@ -1264,7 +1300,7 @@ _KupAutocomplete_doConsistencyCheck = new WeakMap(), _KupAutocomplete_elStyle =
|
|
|
1264
1300
|
return ret;
|
|
1265
1301
|
}
|
|
1266
1302
|
}, _KupAutocomplete_prepList = function _KupAutocomplete_prepList() {
|
|
1267
|
-
return (h("kup-list", Object.assign({ displayMode:
|
|
1303
|
+
return (h("kup-list", Object.assign({ displayMode: this.listDisplayMode }, this.data['kup-list'], { isMenu: true, "onkup-list-click": (e) => this.onKupItemClick(e), ref: (el) => (__classPrivateFieldSet(this, _KupAutocomplete_listEl, el, "f")) })));
|
|
1268
1304
|
}, _KupAutocomplete_calcSize = function _KupAutocomplete_calcSize() {
|
|
1269
1305
|
var _a, _b;
|
|
1270
1306
|
// Explicitly setting size from sub-components props, if present
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupBox_instances, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
17
|
+
var _KupBox_instances, _KupBox_checkUpdateState, _KupBox_intObserver, _KupBox_rowsRefs, _KupBox_navBarHeight, _KupBox_loadMoreEventCounter, _KupBox_loadMoreEventPreviousQuantity, _KupBox_didRenderObservers, _KupBox_setObserver, _KupBox_onLoadMoreClick;
|
|
18
18
|
import { forceUpdate, h, Host, } from "@stencil/core";
|
|
19
19
|
import { SortMode, } from "../kup-data-table/kup-data-table-declarations";
|
|
20
20
|
import { KupBoxProps, LoadMoreMode, } from "./kup-box-declarations";
|
|
@@ -98,6 +98,7 @@ export class KupBox {
|
|
|
98
98
|
}
|
|
99
99
|
initWithPersistedState() {
|
|
100
100
|
if (this.store && this.stateId) {
|
|
101
|
+
this.state.load = true;
|
|
101
102
|
const state = this.store.getState(this.stateId);
|
|
102
103
|
if (state != null) {
|
|
103
104
|
this.kupManager.debug.logMessage(this, 'Initialize with state for stateId ' +
|
|
@@ -117,48 +118,13 @@ export class KupBox {
|
|
|
117
118
|
}
|
|
118
119
|
persistState() {
|
|
119
120
|
if (this.store && this.stateId) {
|
|
120
|
-
let somethingChanged =
|
|
121
|
-
if (!this.kupManager.objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
122
|
-
this.state.sortBy = this.sortBy;
|
|
123
|
-
somethingChanged = true;
|
|
124
|
-
}
|
|
125
|
-
if (!this.kupManager.objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
126
|
-
this.state.globalFilterValue = this.globalFilterValue;
|
|
127
|
-
somethingChanged = true;
|
|
128
|
-
}
|
|
129
|
-
if (!this.kupManager.objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
130
|
-
this.state.pageSelected = this.currentPage;
|
|
131
|
-
somethingChanged = true;
|
|
132
|
-
}
|
|
133
|
-
if (!this.kupManager.objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
134
|
-
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
135
|
-
somethingChanged = true;
|
|
136
|
-
}
|
|
137
|
-
const selectedRowsState = this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
138
|
-
const prefix = currentIndex > 0 ? ';' : '';
|
|
139
|
-
return accumulator + prefix + row.id;
|
|
140
|
-
}, '');
|
|
141
|
-
if (!this.kupManager.objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
142
|
-
this.state.selectedRowsState = selectedRowsState;
|
|
143
|
-
somethingChanged = true;
|
|
144
|
-
}
|
|
145
|
-
if (!this.kupManager.objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
146
|
-
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
147
|
-
somethingChanged = true;
|
|
148
|
-
}
|
|
149
|
-
if (!this.kupManager.objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
150
|
-
this.state.showLoadMore = this.showLoadMore;
|
|
151
|
-
somethingChanged = true;
|
|
152
|
-
}
|
|
121
|
+
let somethingChanged = __classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_checkUpdateState).call(this);
|
|
153
122
|
if (!this.state.load) {
|
|
154
123
|
this.state.load = true;
|
|
155
124
|
return;
|
|
156
125
|
}
|
|
157
126
|
if (somethingChanged) {
|
|
158
|
-
this.kupManager.debug.logMessage(this, 'Persisting
|
|
159
|
-
this.stateId +
|
|
160
|
-
': ' +
|
|
161
|
-
this.state);
|
|
127
|
+
this.kupManager.debug.logMessage(this, 'Persisting stateId ' + this.stateId);
|
|
162
128
|
this.store.persistState(this.stateId, this.state);
|
|
163
129
|
}
|
|
164
130
|
}
|
|
@@ -705,13 +671,13 @@ export class KupBox {
|
|
|
705
671
|
const parent = {
|
|
706
672
|
horizontal: horizontal,
|
|
707
673
|
};
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
674
|
+
if (this.cardData !== null &&
|
|
675
|
+
this.cardData !== undefined &&
|
|
676
|
+
typeof this.cardData === 'object') {
|
|
677
|
+
boxContent.push(this.renderSectionAsCard(row));
|
|
678
|
+
}
|
|
679
|
+
else {
|
|
680
|
+
while (size-- > 0) {
|
|
715
681
|
boxContent.push(this.renderSection(sections[cnt++], parent, row, visibleColumns));
|
|
716
682
|
}
|
|
717
683
|
}
|
|
@@ -1202,7 +1168,7 @@ export class KupBox {
|
|
|
1202
1168
|
// mode={FPaginatorMode.SIMPLE}
|
|
1203
1169
|
perPage: this.currentRowsPerPage
|
|
1204
1170
|
? this.currentRowsPerPage
|
|
1205
|
-
: this.rowsPerPage, onLoadMore: this.showLoadMore
|
|
1171
|
+
: this.rowsPerPage, maxRowsPerPage: Number.MAX_VALUE, onLoadMore: this.showLoadMore
|
|
1206
1172
|
? () => {
|
|
1207
1173
|
__classPrivateFieldGet(this, _KupBox_instances, "m", _KupBox_onLoadMoreClick).call(this);
|
|
1208
1174
|
}
|
|
@@ -2281,7 +2247,42 @@ export class KupBox {
|
|
|
2281
2247
|
}];
|
|
2282
2248
|
}
|
|
2283
2249
|
}
|
|
2284
|
-
_KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_loadMoreEventCounter = new WeakMap(), _KupBox_loadMoreEventPreviousQuantity = new WeakMap(), _KupBox_instances = new WeakSet(),
|
|
2250
|
+
_KupBox_intObserver = new WeakMap(), _KupBox_rowsRefs = new WeakMap(), _KupBox_navBarHeight = new WeakMap(), _KupBox_loadMoreEventCounter = new WeakMap(), _KupBox_loadMoreEventPreviousQuantity = new WeakMap(), _KupBox_instances = new WeakSet(), _KupBox_checkUpdateState = function _KupBox_checkUpdateState() {
|
|
2251
|
+
let somethingChanged = false;
|
|
2252
|
+
if (!this.kupManager.objects.deepEqual(this.state.sortBy, this.sortBy)) {
|
|
2253
|
+
this.state.sortBy = this.sortBy;
|
|
2254
|
+
somethingChanged = true;
|
|
2255
|
+
}
|
|
2256
|
+
if (!this.kupManager.objects.deepEqual(this.state.globalFilterValue, this.globalFilterValue)) {
|
|
2257
|
+
this.state.globalFilterValue = this.globalFilterValue;
|
|
2258
|
+
somethingChanged = true;
|
|
2259
|
+
}
|
|
2260
|
+
if (!this.kupManager.objects.deepEqual(this.state.pageSelected, this.currentPage)) {
|
|
2261
|
+
this.state.pageSelected = this.currentPage;
|
|
2262
|
+
somethingChanged = true;
|
|
2263
|
+
}
|
|
2264
|
+
if (!this.kupManager.objects.deepEqual(this.state.rowsPerPage, this.currentRowsPerPage)) {
|
|
2265
|
+
this.state.rowsPerPage = this.currentRowsPerPage;
|
|
2266
|
+
somethingChanged = true;
|
|
2267
|
+
}
|
|
2268
|
+
const selectedRowsState = this.selectedRows.reduce((accumulator, row, currentIndex) => {
|
|
2269
|
+
const prefix = currentIndex > 0 ? ';' : '';
|
|
2270
|
+
return accumulator + prefix + row.id;
|
|
2271
|
+
}, '');
|
|
2272
|
+
if (!this.kupManager.objects.deepEqual(this.state.selectedRowsState, selectedRowsState)) {
|
|
2273
|
+
this.state.selectedRowsState = selectedRowsState;
|
|
2274
|
+
somethingChanged = true;
|
|
2275
|
+
}
|
|
2276
|
+
if (!this.kupManager.objects.deepEqual(this.state.loadMoreLimit, this.loadMoreLimit)) {
|
|
2277
|
+
this.state.loadMoreLimit = this.loadMoreLimit;
|
|
2278
|
+
somethingChanged = true;
|
|
2279
|
+
}
|
|
2280
|
+
if (!this.kupManager.objects.deepEqual(this.state.showLoadMore, this.showLoadMore)) {
|
|
2281
|
+
this.state.showLoadMore = this.showLoadMore;
|
|
2282
|
+
somethingChanged = true;
|
|
2283
|
+
}
|
|
2284
|
+
return somethingChanged;
|
|
2285
|
+
}, _KupBox_didRenderObservers = function _KupBox_didRenderObservers() {
|
|
2285
2286
|
if (this.lazyLoadRows &&
|
|
2286
2287
|
this.currentRowsPerPage < this.data.rows.length) {
|
|
2287
2288
|
__classPrivateFieldGet(this, _KupBox_intObserver, "f").observe(__classPrivateFieldGet(this, _KupBox_rowsRefs, "f")[__classPrivateFieldGet(this, _KupBox_rowsRefs, "f").length - 1]);
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -26,6 +26,7 @@ export class KupButtonList {
|
|
|
26
26
|
this.showSelection = true;
|
|
27
27
|
this.sizing = KupComponentSizing.SMALL;
|
|
28
28
|
this.styling = FButtonStyling.RAISED;
|
|
29
|
+
this.showText = true;
|
|
29
30
|
}
|
|
30
31
|
onKupClick(index, subIndex) {
|
|
31
32
|
this.selected = index;
|
|
@@ -102,7 +103,7 @@ export class KupButtonList {
|
|
|
102
103
|
iconOff: data.iconOff,
|
|
103
104
|
placeholderIcon: data.placeholderIcon,
|
|
104
105
|
id: data.id,
|
|
105
|
-
label: data.label,
|
|
106
|
+
label: this.showText ? data.label : undefined,
|
|
106
107
|
large: data.large,
|
|
107
108
|
neutral: this.rootElement.classList.contains('kup-neutral')
|
|
108
109
|
? true
|
|
@@ -139,6 +140,7 @@ export class KupButtonList {
|
|
|
139
140
|
return (h("kup-dropdown-button", Object.assign({ class: this.rootElement.className + ' ' + data.wrapperClass }, data, { "onkup-dropdownbutton-click": () => this.onKupClick(index.toString(), '-1'), "onkup-dropdownbutton-itemclick": (e) => this.onDropDownItemClick(e, index.toString()) })));
|
|
140
141
|
}
|
|
141
142
|
prepareDataFromTreeNode(node, index) {
|
|
143
|
+
var _a;
|
|
142
144
|
const data = node.data != null ? Object.assign({}, node.data) : {};
|
|
143
145
|
if (this.customStyle != null && this.customStyle.trim() != '') {
|
|
144
146
|
data.customStyle = this.customStyle;
|
|
@@ -165,7 +167,7 @@ export class KupButtonList {
|
|
|
165
167
|
data.placeholderIcon = node.placeholderIcon;
|
|
166
168
|
}
|
|
167
169
|
if (data.label == null) {
|
|
168
|
-
data.label = node.value;
|
|
170
|
+
data.label = node.value ? node.value : (_a = node.obj) === null || _a === void 0 ? void 0 : _a.k;
|
|
169
171
|
}
|
|
170
172
|
data.fullHeight = this.rootElement.classList.contains('kup-full-height')
|
|
171
173
|
? true
|
|
@@ -292,7 +294,7 @@ export class KupButtonList {
|
|
|
292
294
|
'button-list--container': true,
|
|
293
295
|
'show-selection': this.showSelection && this.selected ? true : false,
|
|
294
296
|
};
|
|
295
|
-
return (h(Host, { key: '
|
|
297
|
+
return (h(Host, { key: '2e33423f2642435785fddd9367b95b5b36b3d427', style: hostStyle }, h("style", { key: '9b8e61b4515b6bf6d4f469b14e87e6743f785384' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '08d5b7f3fdd65e332e202dbc5eba22e04712e121', id: componentWrapperId }, h("div", { key: '95efb3149003ba19ca3db795fb7457deef78ccc2', class: classObj }, buttons))));
|
|
296
298
|
}
|
|
297
299
|
disconnectedCallback() {
|
|
298
300
|
this.kupManager.theme.unregister(this);
|
|
@@ -524,6 +526,24 @@ export class KupButtonList {
|
|
|
524
526
|
"attribute": "styling",
|
|
525
527
|
"reflect": true,
|
|
526
528
|
"defaultValue": "FButtonStyling.RAISED"
|
|
529
|
+
},
|
|
530
|
+
"showText": {
|
|
531
|
+
"type": "boolean",
|
|
532
|
+
"mutable": false,
|
|
533
|
+
"complexType": {
|
|
534
|
+
"original": "boolean",
|
|
535
|
+
"resolved": "boolean",
|
|
536
|
+
"references": {}
|
|
537
|
+
},
|
|
538
|
+
"required": false,
|
|
539
|
+
"optional": false,
|
|
540
|
+
"docs": {
|
|
541
|
+
"tags": [],
|
|
542
|
+
"text": "When set to false buttons don't show the text, only the icon if it is present."
|
|
543
|
+
},
|
|
544
|
+
"attribute": "show-text",
|
|
545
|
+
"reflect": false,
|
|
546
|
+
"defaultValue": "true"
|
|
527
547
|
}
|
|
528
548
|
};
|
|
529
549
|
}
|
|
@@ -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;
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
background: var(--kup_calendar_header_background_color);
|
|
301
301
|
color: var(--kup_calendar_header_color);
|
|
302
302
|
font-family: var(--kup-font-family);
|
|
303
|
-
font-size: 14px;
|
|
303
|
+
font-size: var(--kup-heading-01-font-size, 14px);
|
|
304
304
|
line-height: 20px;
|
|
305
305
|
font-weight: 600;
|
|
306
306
|
letter-spacing: 0.16px;
|