@sme.up/ketchup 9.2.0 → 9.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/bar.helpers-f46a5a83.js +372 -0
- package/dist/cjs/f-button-4caf541a.js +105 -0
- package/dist/cjs/{f-button-declarations-3fd791a8.js → f-button-declarations-51ef6d9a.js} +5 -5
- package/dist/cjs/f-cell-979c26ea.js +670 -0
- package/dist/cjs/f-checkbox-41864e53.js +29 -0
- package/dist/cjs/f-chip-8957940b.js +133 -0
- package/dist/cjs/f-image-e16fe10d.js +115 -0
- package/dist/cjs/f-paginator-utils-f2dd0322.js +1577 -0
- package/dist/cjs/f-text-field-2fac8078.js +216 -0
- package/dist/cjs/{f-text-field-mdc-4fda9705.js → f-text-field-mdc-08a06162.js} +19 -19
- package/dist/cjs/{index-d8e5eb5f.js → index-8f2f4159.js} +27 -7
- package/dist/cjs/index.cjs.js +4 -3
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +182 -181
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +14562 -14561
- package/dist/cjs/kup-box.cjs.entry.js +1231 -1230
- package/dist/cjs/kup-calendar.cjs.entry.js +376 -375
- package/dist/cjs/kup-card-list.cjs.entry.js +233 -232
- package/dist/cjs/kup-cell.cjs.entry.js +153 -152
- package/dist/cjs/kup-custom-task-list-header_4.cjs.entry.js +1317 -0
- package/dist/cjs/kup-dashboard.cjs.entry.js +369 -368
- package/dist/cjs/kup-dates-0e59b05d.js +782 -0
- package/dist/cjs/kup-drawer.cjs.entry.js +122 -121
- package/dist/cjs/kup-echart.cjs.entry.js +1192 -1191
- package/dist/cjs/kup-family-tree.cjs.entry.js +400 -399
- package/dist/cjs/kup-gantt_10.cjs.entry.js +1076 -0
- package/dist/cjs/kup-grid.cjs.entry.js +82 -81
- package/dist/cjs/kup-iframe.cjs.entry.js +80 -79
- package/dist/cjs/kup-image-list.cjs.entry.js +224 -223
- package/dist/cjs/kup-lazy.cjs.entry.js +162 -161
- package/dist/cjs/kup-magic-box.cjs.entry.js +270 -269
- package/dist/cjs/{kup-manager-7334c396.js → kup-manager-c63f4fb9.js} +5770 -6516
- package/dist/cjs/kup-nav-bar.cjs.entry.js +110 -109
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +352 -351
- package/dist/cjs/kup-photo-frame.cjs.entry.js +126 -125
- package/dist/cjs/kup-planner-declarations-d3dec885.js +93 -0
- package/dist/cjs/kup-planner-renderer-helper-c2394940.js +410 -0
- package/dist/cjs/kup-planner-renderer.cjs.entry.js +278 -0
- package/dist/cjs/kup-planner-time-formatter-a74e70f0.js +93 -0
- package/dist/cjs/kup-planner.cjs.entry.js +718 -13596
- package/dist/cjs/kup-probe.cjs.entry.js +228 -227
- package/dist/cjs/kup-qlik.cjs.entry.js +126 -125
- package/dist/cjs/kup-snackbar.cjs.entry.js +102 -101
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/index.js +16 -0
- package/dist/collection/assets/planner-example-1.js +6337 -0
- package/dist/collection/assets/planner-example-2.js +5650 -0
- package/dist/collection/assets/planner-example-3.js +6548 -0
- package/dist/collection/assets/planner-example-4.js +28473 -0
- package/dist/collection/assets/planner.js +3255 -4900
- package/dist/collection/collection-manifest.json +16 -1
- package/dist/collection/components/kup-accordion/kup-accordion-declarations.js +3 -3
- package/dist/collection/components/kup-accordion/kup-accordion.js +423 -423
- package/dist/collection/components/kup-autocomplete/kup-autocomplete-declarations.js +14 -14
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +882 -882
- package/dist/collection/components/kup-badge/kup-badge-declarations.js +3 -3
- package/dist/collection/components/kup-badge/kup-badge.js +262 -262
- package/dist/collection/components/kup-box/kup-box-declarations.js +26 -26
- package/dist/collection/components/kup-box/kup-box-state.js +13 -13
- package/dist/collection/components/kup-box/kup-box.js +2068 -2068
- package/dist/collection/components/kup-button/kup-button-declarations.js +11 -11
- package/dist/collection/components/kup-button/kup-button.js +560 -560
- package/dist/collection/components/kup-button-list/kup-button-list-declarations.js +6 -6
- package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +141 -141
- package/dist/collection/components/kup-button-list/kup-button-list.js +497 -497
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +17 -17
- package/dist/collection/components/kup-calendar/kup-calendar.js +681 -681
- package/dist/collection/components/kup-card/box/kup-card-box.js +161 -161
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +6 -6
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +324 -324
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +250 -250
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +141 -141
- package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +3 -3
- package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +98 -98
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +44 -44
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +135 -135
- package/dist/collection/components/kup-card/free/kup-card-free.js +6 -6
- package/dist/collection/components/kup-card/kup-card-declarations.js +53 -53
- package/dist/collection/components/kup-card/kup-card-helper.js +155 -155
- package/dist/collection/components/kup-card/kup-card.js +767 -767
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +174 -174
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +474 -474
- package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +16 -16
- package/dist/collection/components/kup-card-list/kup-card-list.js +676 -676
- package/dist/collection/components/kup-cell/kup-cell-declarations.js +4 -4
- package/dist/collection/components/kup-cell/kup-cell.js +382 -382
- package/dist/collection/components/kup-chart/kup-chart-builder.js +80 -80
- package/dist/collection/components/kup-chart/kup-chart-declarations.js +36 -36
- package/dist/collection/components/kup-chart/kup-chart.js +1043 -1043
- package/dist/collection/components/kup-checkbox/kup-checkbox-declarations.js +6 -6
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +417 -417
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +5 -5
- package/dist/collection/components/kup-chip/kup-chip.js +538 -538
- package/dist/collection/components/kup-color-picker/kup-color-picker-declarations.js +5 -5
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +511 -511
- package/dist/collection/components/kup-combobox/kup-combobox-declarations.js +8 -8
- package/dist/collection/components/kup-combobox/kup-combobox.js +796 -796
- package/dist/collection/components/kup-dashboard/kup-dashboard-declarations.js +3 -3
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +562 -562
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +95 -95
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +729 -729
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +33 -33
- package/dist/collection/components/kup-data-table/kup-data-table.js +5398 -5398
- package/dist/collection/components/kup-date-picker/kup-date-picker-declarations.js +8 -8
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +796 -796
- package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +7 -7
- package/dist/collection/components/kup-dialog/kup-dialog.js +451 -451
- package/dist/collection/components/kup-drawer/kup-drawer-declarations.js +2 -2
- package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +6 -6
- package/dist/collection/components/kup-drawer/kup-drawer.js +374 -374
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button-declarations.js +11 -11
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +776 -776
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +40 -40
- package/dist/collection/components/kup-echart/kup-echart.js +1606 -1606
- package/dist/collection/components/kup-family-tree/kup-family-tree-declarations.js +8 -8
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +789 -789
- package/dist/collection/components/kup-form/kup-form-declarations.js +16 -16
- package/dist/collection/components/kup-form/kup-form.js +694 -694
- package/dist/collection/components/kup-gauge/kup-gauge-declarations.js +19 -19
- package/dist/collection/components/kup-gauge/kup-gauge.js +730 -730
- package/dist/collection/components/kup-grid/kup-grid-declarations.js +3 -3
- package/dist/collection/components/kup-grid/kup-grid.js +238 -238
- package/dist/collection/components/kup-iframe/kup-iframe-declarations.js +3 -3
- package/dist/collection/components/kup-iframe/kup-iframe.js +268 -268
- package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +167 -167
- package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +16 -16
- package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +221 -221
- package/dist/collection/components/kup-image/kup-image-declarations.js +9 -9
- package/dist/collection/components/kup-image/kup-image.js +471 -471
- package/dist/collection/components/kup-image-list/kup-image-list-declarations.js +3 -3
- package/dist/collection/components/kup-image-list/kup-image-list-state.js +7 -7
- package/dist/collection/components/kup-image-list/kup-image-list.js +502 -502
- package/dist/collection/components/kup-lazy/kup-lazy-declarations.js +7 -7
- package/dist/collection/components/kup-lazy/kup-lazy.js +417 -417
- package/dist/collection/components/kup-list/kup-list-declarations.js +18 -18
- package/dist/collection/components/kup-list/kup-list-helper.js +105 -105
- package/dist/collection/components/kup-list/kup-list.js +914 -914
- package/dist/collection/components/kup-magic-box/kup-magic-box-declarations.js +10 -10
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +405 -405
- package/dist/collection/components/kup-nav-bar/kup-nav-bar-declarations.js +7 -7
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +304 -304
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker-declarations.js +9 -9
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +847 -847
- package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +3 -3
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +359 -359
- package/dist/collection/components/kup-planner/kup-planner-declarations.js +69 -66
- package/dist/collection/components/kup-planner/kup-planner-helper.js +39 -39
- package/dist/collection/components/kup-planner/kup-planner-state.js +14 -14
- package/dist/collection/components/kup-planner/kup-planner.css +4 -482
- package/dist/collection/components/kup-planner/kup-planner.js +1777 -1675
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.js +117 -0
- package/dist/collection/components/kup-planner/utils/custom-task-list-header.module.css +79 -0
- package/dist/collection/components/kup-planner/utils/custom-task-list-table.js +280 -0
- package/dist/collection/components/kup-planner/utils/custom-tool-tip.js +5 -0
- package/dist/collection/components/kup-planner/utils/gantt-table.module.css +88 -0
- package/dist/collection/components/kup-planner/utils/helpers/bar.helpers.js +328 -0
- package/dist/collection/components/kup-planner/utils/helpers/other.helpers.js +48 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.css +40 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt/kup-gantt.js +2302 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.css +31 -0
- package/dist/collection/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.js +466 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.css +60 -0
- package/dist/collection/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.js +1186 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.css +36 -0
- package/dist/collection/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.js +177 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-adapted-types.js +1 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer-helper.js +396 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-renderer.js +321 -0
- package/dist/collection/components/kup-planner/utils/kup-planner-time-formatter.js +87 -0
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.css +30 -0
- package/dist/collection/components/kup-planner/utils/kup-switcher/kup-switcher.js +49 -0
- package/dist/collection/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.js +215 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-header.js +112 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list-table.js +226 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.css +67 -0
- package/dist/collection/components/kup-planner/utils/kup-task-list/kup-task-list.js +638 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.js +82 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.css +30 -0
- package/dist/collection/components/kup-planner/utils/kup-tooltip/kup-tooltip.js +362 -0
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.css +31 -0
- package/dist/collection/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.js +170 -0
- package/dist/collection/components/kup-probe/kup-probe.js +335 -335
- package/dist/collection/components/kup-progress-bar/kup-progress-bar-declarations.js +7 -7
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +346 -346
- package/dist/collection/components/kup-qlik/kup-qlik.js +311 -311
- package/dist/collection/components/kup-radio/kup-radio-declarations.js +5 -5
- package/dist/collection/components/kup-radio/kup-radio.js +392 -392
- package/dist/collection/components/kup-rating/kup-rating-declarations.js +4 -4
- package/dist/collection/components/kup-rating/kup-rating.js +296 -296
- package/dist/collection/components/kup-snackbar/kup-snackbar-declarations.js +5 -5
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +380 -380
- package/dist/collection/components/kup-spinner/kup-spinner-declarations.js +8 -8
- package/dist/collection/components/kup-spinner/kup-spinner.js +449 -449
- package/dist/collection/components/kup-state/mock-store.js +10 -10
- package/dist/collection/components/kup-switch/kup-switch-declarations.js +5 -5
- package/dist/collection/components/kup-switch/kup-switch.js +387 -387
- package/dist/collection/components/kup-tab-bar/kup-tab-bar-declarations.js +3 -3
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +423 -423
- package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +30 -30
- package/dist/collection/components/kup-text-field/kup-text-field.js +1220 -1220
- package/dist/collection/components/kup-time-picker/kup-time-picker-declarations.js +7 -7
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +914 -914
- package/dist/collection/components/kup-tree/kup-tree-declarations.js +28 -28
- package/dist/collection/components/kup-tree/kup-tree-faker.js +233 -233
- package/dist/collection/components/kup-tree/kup-tree-state.js +13 -13
- package/dist/collection/components/kup-tree/kup-tree.js +2424 -2424
- package/dist/collection/f-components/f-button/f-button-declarations.js +5 -5
- package/dist/collection/f-components/f-button/f-button.js +76 -76
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +125 -125
- package/dist/collection/f-components/f-cell/f-cell.js +407 -407
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +10 -10
- package/dist/collection/f-components/f-chip/f-chip-declarations.js +4 -4
- package/dist/collection/f-components/f-chip/f-chip.js +82 -82
- package/dist/collection/f-components/f-image/f-image-declarations.js +1 -1
- package/dist/collection/f-components/f-image/f-image.js +79 -79
- package/dist/collection/f-components/f-paginator/f-paginator-declarations.js +2 -2
- package/dist/collection/f-components/f-paginator/f-paginator-utils.js +21 -21
- package/dist/collection/f-components/f-paginator/f-paginator.js +65 -65
- package/dist/collection/f-components/f-progress-bar/f-progress-bar.js +70 -70
- package/dist/collection/f-components/f-radio/f-radio.js +21 -21
- package/dist/collection/f-components/f-rating/f-rating.js +17 -17
- package/dist/collection/f-components/f-switch/f-switch.js +6 -6
- package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +19 -19
- package/dist/collection/f-components/f-text-field/f-text-field.js +165 -165
- package/dist/collection/index.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +47 -47
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +220 -220
- package/dist/collection/managers/kup-data/kup-data-declarations.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +107 -107
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +11 -11
- package/dist/collection/managers/kup-data/kup-data.js +468 -468
- package/dist/collection/managers/kup-dates/kup-dates-declarations.js +19 -19
- package/dist/collection/managers/kup-dates/kup-dates.js +637 -605
- package/dist/collection/managers/kup-debug/kup-debug-declarations.js +8 -8
- package/dist/collection/managers/kup-debug/kup-debug.js +626 -626
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position-declarations.js +9 -9
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +232 -232
- package/dist/collection/managers/kup-interact/kup-interact-declarations.js +11 -11
- package/dist/collection/managers/kup-interact/kup-interact.js +374 -374
- package/dist/collection/managers/kup-language/kup-language-declarations.js +127 -127
- package/dist/collection/managers/kup-language/kup-language.js +132 -132
- package/dist/collection/managers/kup-manager/kup-manager.js +257 -257
- package/dist/collection/managers/kup-math/kup-math-declarations.js +7 -7
- package/dist/collection/managers/kup-math/kup-math-helper.js +19 -19
- package/dist/collection/managers/kup-math/kup-math.js +374 -374
- package/dist/collection/managers/kup-objects/kup-objects.js +379 -379
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.js +4 -4
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +301 -301
- package/dist/collection/managers/kup-search/kup-search.js +65 -65
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +134 -134
- package/dist/collection/managers/kup-theme/kup-theme.js +696 -696
- package/dist/collection/managers/kup-toolbar/kup-toolbar-declarations.js +3 -3
- package/dist/collection/managers/kup-toolbar/kup-toolbar.js +93 -93
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +198 -198
- package/dist/collection/types/GenericTypes.js +47 -47
- package/dist/collection/utils/cell-utils.js +115 -115
- package/dist/collection/utils/filters/filters-column-menu.js +339 -339
- package/dist/collection/utils/filters/filters-declarations.js +4 -4
- package/dist/collection/utils/filters/filters-rows.js +215 -215
- package/dist/collection/utils/filters/filters-tree-items.js +96 -96
- package/dist/collection/utils/filters/filters.js +257 -257
- package/dist/collection/utils/kup-column-menu/kup-column-menu-declarations.js +14 -14
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +710 -710
- package/dist/collection/utils/utils.js +37 -37
- package/dist/components/custom-task-list-header.js +44 -0
- package/dist/components/custom-task-list-table.js +121 -0
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.d.ts +2 -2
- package/dist/components/kup-accordion.js +331 -331
- package/dist/components/kup-autocomplete.d.ts +2 -2
- package/dist/components/kup-autocomplete2.js +21534 -21533
- package/dist/components/kup-badge.d.ts +2 -2
- package/dist/components/kup-box.d.ts +2 -2
- package/dist/components/kup-box2.js +1416 -1416
- package/dist/components/kup-button-list.d.ts +2 -2
- package/dist/components/kup-button.d.ts +2 -2
- package/dist/components/kup-calendar.d.ts +2 -2
- package/dist/components/kup-calendar.js +534 -533
- package/dist/components/kup-card-list.d.ts +2 -2
- package/dist/components/kup-card-list.js +401 -401
- package/dist/components/kup-card.d.ts +2 -2
- package/dist/components/kup-cell.d.ts +2 -2
- package/dist/components/kup-cell.js +303 -303
- package/dist/components/kup-chart.d.ts +2 -2
- package/dist/components/kup-checkbox.d.ts +2 -2
- package/dist/components/kup-chip.d.ts +2 -2
- package/dist/components/kup-color-picker.d.ts +2 -2
- package/dist/components/kup-combobox.d.ts +2 -2
- package/dist/components/kup-custom-task-list-header.d.ts +11 -0
- package/dist/components/kup-custom-task-list-header.js +6 -0
- package/dist/components/kup-custom-task-list-table.d.ts +11 -0
- package/dist/components/kup-custom-task-list-table.js +6 -0
- package/dist/components/kup-dashboard.d.ts +2 -2
- package/dist/components/kup-dashboard.js +520 -520
- package/dist/components/kup-data-table.d.ts +2 -2
- package/dist/components/kup-date-picker.d.ts +2 -2
- package/dist/components/kup-dates.js +777 -0
- package/dist/components/kup-dialog.d.ts +2 -2
- package/dist/components/kup-drawer.d.ts +2 -2
- package/dist/components/kup-drawer.js +278 -278
- package/dist/components/kup-dropdown-button.d.ts +2 -2
- package/dist/components/kup-echart.d.ts +2 -2
- package/dist/components/kup-echart2.js +1358 -1358
- package/dist/components/kup-family-tree.d.ts +2 -2
- package/dist/components/kup-family-tree.js +564 -564
- package/dist/components/kup-form.d.ts +2 -2
- package/dist/components/kup-gantt-calendar.d.ts +11 -0
- package/dist/components/kup-gantt-calendar.js +6 -0
- package/dist/components/kup-gantt-calendar2.js +323 -0
- package/dist/components/kup-gantt.d.ts +11 -0
- package/dist/components/kup-gantt.js +6 -0
- package/dist/components/kup-gantt2.js +822 -0
- package/dist/components/kup-gauge.d.ts +2 -2
- package/dist/components/kup-grid-renderer.d.ts +11 -0
- package/dist/components/kup-grid-renderer.js +6 -0
- package/dist/components/kup-grid-renderer2.js +1416 -0
- package/dist/components/kup-grid.d.ts +2 -2
- package/dist/components/kup-grid2.js +236 -236
- package/dist/components/kup-horizontal-scroll.d.ts +11 -0
- package/dist/components/kup-horizontal-scroll.js +6 -0
- package/dist/components/kup-horizontal-scroll2.js +77 -0
- package/dist/components/kup-iframe.d.ts +2 -2
- package/dist/components/kup-iframe.js +234 -234
- package/dist/components/kup-image-list.d.ts +2 -2
- package/dist/components/kup-image-list.js +377 -377
- package/dist/components/kup-image.d.ts +2 -2
- package/dist/components/kup-lazy.d.ts +2 -2
- package/dist/components/kup-lazy.js +319 -319
- package/dist/components/kup-list.d.ts +2 -2
- package/dist/components/kup-magic-box.d.ts +2 -2
- package/dist/components/kup-magic-box.js +432 -432
- package/dist/components/kup-manager.js +5748 -6491
- package/dist/components/kup-nav-bar.d.ts +2 -2
- package/dist/components/kup-nav-bar.js +263 -263
- package/dist/components/kup-numeric-picker.d.ts +2 -2
- package/dist/components/kup-numeric-picker.js +514 -514
- package/dist/components/kup-photo-frame.d.ts +2 -2
- package/dist/components/kup-photo-frame.js +281 -281
- package/dist/components/kup-planner-renderer-helper.js +399 -0
- package/dist/components/kup-planner-renderer.d.ts +11 -0
- package/dist/components/kup-planner-renderer.js +6 -0
- package/dist/components/kup-planner-renderer2.js +390 -0
- package/dist/components/kup-planner.d.ts +2 -2
- package/dist/components/kup-planner.js +1005 -13792
- package/dist/components/kup-probe.d.ts +2 -2
- package/dist/components/kup-probe.js +379 -379
- package/dist/components/kup-progress-bar.d.ts +2 -2
- package/dist/components/kup-qlik.d.ts +2 -2
- package/dist/components/kup-qlik.js +282 -282
- package/dist/components/kup-radio.d.ts +2 -2
- package/dist/components/kup-rating.d.ts +2 -2
- package/dist/components/kup-snackbar.d.ts +2 -2
- package/dist/components/kup-snackbar.js +257 -257
- package/dist/components/kup-spinner.d.ts +2 -2
- package/dist/components/kup-standard-tooltip.d.ts +11 -0
- package/dist/components/kup-standard-tooltip.js +6 -0
- package/dist/components/kup-standard-tooltip2.js +37 -0
- package/dist/components/kup-switch.d.ts +2 -2
- package/dist/components/kup-switcher.d.ts +11 -0
- package/dist/components/kup-switcher.js +6 -0
- package/dist/components/kup-switcher2.js +36 -0
- package/dist/components/kup-tab-bar.d.ts +2 -2
- package/dist/components/kup-task-gantt.d.ts +11 -0
- package/dist/components/kup-task-gantt.js +6 -0
- package/dist/components/kup-task-gantt2.js +91 -0
- package/dist/components/kup-task-list-header.d.ts +11 -0
- package/dist/components/kup-task-list-header.js +6 -0
- package/dist/components/kup-task-list-header2.js +55 -0
- package/dist/components/kup-task-list-table.d.ts +11 -0
- package/dist/components/kup-task-list-table.js +6 -0
- package/dist/components/kup-task-list-table2.js +79 -0
- package/dist/components/kup-task-list.d.ts +11 -0
- package/dist/components/kup-task-list.js +6 -0
- package/dist/components/kup-task-list2.js +260 -0
- package/dist/components/kup-text-field.d.ts +2 -2
- package/dist/components/kup-time-picker.d.ts +2 -2
- package/dist/components/kup-tooltip.d.ts +11 -0
- package/dist/components/kup-tooltip.js +6 -0
- package/dist/components/kup-tooltip2.js +127 -0
- package/dist/components/kup-tree.d.ts +2 -2
- package/dist/components/kup-vertical-scroll.d.ts +11 -0
- package/dist/components/kup-vertical-scroll.js +6 -0
- package/dist/components/kup-vertical-scroll2.js +77 -0
- package/dist/esm/bar.helpers-0898efb9.js +363 -0
- package/dist/esm/f-button-5ccc2e50.js +103 -0
- package/dist/esm/{f-button-declarations-8a009df1.js → f-button-declarations-9bdc6f26.js} +5 -5
- package/dist/esm/f-cell-6f4290b2.js +664 -0
- package/dist/esm/f-checkbox-43481de2.js +27 -0
- package/dist/esm/f-chip-465aa432.js +131 -0
- package/dist/esm/f-image-c5063342.js +113 -0
- package/dist/esm/f-paginator-utils-6903534b.js +1564 -0
- package/dist/esm/f-text-field-28b2b26d.js +214 -0
- package/dist/esm/{f-text-field-mdc-1143cf21.js → f-text-field-mdc-c88bf688.js} +19 -19
- package/dist/esm/{index-99c17b08.js → index-59f83f91.js} +27 -8
- package/dist/esm/index.js +4 -3
- package/dist/esm/ketchup.js +4 -4
- package/dist/esm/kup-accordion.entry.js +182 -181
- package/dist/esm/kup-autocomplete_27.entry.js +14562 -14561
- package/dist/esm/kup-box.entry.js +1231 -1230
- package/dist/esm/kup-calendar.entry.js +376 -375
- package/dist/esm/kup-card-list.entry.js +233 -232
- package/dist/esm/kup-cell.entry.js +153 -152
- package/dist/esm/kup-custom-task-list-header_4.entry.js +1310 -0
- package/dist/esm/kup-dashboard.entry.js +369 -368
- package/dist/esm/kup-dates-15f89ea2.js +777 -0
- package/dist/esm/kup-drawer.entry.js +122 -121
- package/dist/esm/kup-echart.entry.js +1192 -1191
- package/dist/esm/kup-family-tree.entry.js +400 -399
- package/dist/esm/kup-gantt_10.entry.js +1063 -0
- package/dist/esm/kup-grid.entry.js +82 -81
- package/dist/esm/kup-iframe.entry.js +80 -79
- package/dist/esm/kup-image-list.entry.js +224 -223
- package/dist/esm/kup-lazy.entry.js +162 -161
- package/dist/esm/kup-magic-box.entry.js +270 -269
- package/dist/esm/{kup-manager-9a9d2dbb.js → kup-manager-bfea4e6f.js} +5749 -6492
- package/dist/esm/kup-nav-bar.entry.js +110 -109
- package/dist/esm/kup-numeric-picker.entry.js +352 -351
- package/dist/esm/kup-photo-frame.entry.js +126 -125
- package/dist/esm/kup-planner-declarations-b9345758.js +88 -0
- package/dist/esm/kup-planner-renderer-helper-2143d119.js +399 -0
- package/dist/esm/kup-planner-renderer.entry.js +274 -0
- package/dist/esm/kup-planner-time-formatter-a68e05ba.js +89 -0
- package/dist/esm/kup-planner.entry.js +718 -13596
- package/dist/esm/kup-probe.entry.js +228 -227
- package/dist/esm/kup-qlik.entry.js +126 -125
- package/dist/esm/kup-snackbar.entry.js +102 -101
- package/dist/esm/loader.js +3 -3
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-01a0b54c.js +1 -0
- package/dist/ketchup/{p-6a7df3d2.js → p-097500fe.js} +1 -1
- package/dist/ketchup/p-0cb5e9ae.entry.js +1 -0
- package/dist/ketchup/p-0f91d4de.entry.js +1 -0
- package/dist/ketchup/p-1872c92e.entry.js +1 -0
- package/dist/ketchup/p-20aa95ae.entry.js +1 -0
- package/dist/ketchup/{p-4e696daf.js → p-21c640a5.js} +1 -1
- package/dist/ketchup/p-4bc3b3a6.js +29 -0
- package/dist/ketchup/{p-ea56edbe.js → p-4c1ec006.js} +1 -1
- package/dist/ketchup/p-51f9b230.entry.js +1 -0
- package/dist/ketchup/p-612b46da.entry.js +1 -0
- package/dist/ketchup/p-69287f4a.entry.js +1 -0
- package/dist/ketchup/p-71acfd3c.entry.js +1 -0
- package/dist/ketchup/p-7a72c4fa.entry.js +1 -0
- package/dist/ketchup/p-7c5a1357.entry.js +1 -0
- package/dist/ketchup/p-829d7060.entry.js +1 -0
- package/dist/ketchup/p-84be8f0b.js +1 -0
- package/dist/ketchup/p-85279516.entry.js +9 -0
- package/dist/ketchup/p-8591ac0b.entry.js +1 -0
- package/dist/ketchup/p-8c3ad5ef.entry.js +1 -0
- package/dist/ketchup/p-8e180c01.entry.js +1 -0
- package/dist/ketchup/p-8e3b6de8.js +1 -0
- package/dist/ketchup/p-8ecdd076.entry.js +1 -0
- package/dist/ketchup/p-903d1b10.entry.js +1 -0
- package/dist/ketchup/p-924b841b.js +1 -0
- package/dist/ketchup/p-95272714.entry.js +1 -0
- package/dist/ketchup/p-b07ffd18.entry.js +16 -0
- package/dist/ketchup/p-c23731ca.js +1 -0
- package/dist/ketchup/p-cd9a4274.js +2 -0
- package/dist/ketchup/{p-34e4a985.js → p-ce9ef2d5.js} +1 -1
- package/dist/ketchup/{p-f1f82eef.entry.js → p-d7b8295a.entry.js} +1 -1
- package/dist/ketchup/p-db93bc06.entry.js +1 -0
- package/dist/ketchup/p-e46470a6.entry.js +1 -0
- package/dist/ketchup/p-e841c2ae.js +1 -0
- package/dist/ketchup/p-eae42bff.entry.js +1 -0
- package/dist/ketchup/p-ee6305f5.js +1 -0
- package/dist/ketchup/p-f1efab38.entry.js +1 -0
- package/dist/ketchup/p-f2df4ce9.entry.js +1 -0
- package/dist/ketchup/{p-7a876328.js → p-f51dbf68.js} +1 -1
- package/dist/types/components/kup-accordion/kup-accordion-declarations.d.ts +5 -5
- package/dist/types/components/kup-accordion/kup-accordion.d.ts +75 -75
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +18 -18
- package/dist/types/components/kup-autocomplete/kup-autocomplete.d.ts +113 -113
- package/dist/types/components/kup-badge/kup-badge-declarations.d.ts +3 -3
- package/dist/types/components/kup-badge/kup-badge.d.ts +47 -47
- package/dist/types/components/kup-box/kup-box-declarations.d.ts +70 -70
- package/dist/types/components/kup-box/kup-box-state.d.ts +7 -7
- package/dist/types/components/kup-box/kup-box.d.ts +262 -262
- package/dist/types/components/kup-button/kup-button-declarations.d.ts +12 -12
- package/dist/types/components/kup-button/kup-button.d.ts +105 -105
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +11 -11
- package/dist/types/components/kup-button-list/kup-button-list.d.ts +75 -75
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +32 -32
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +100 -100
- package/dist/types/components/kup-card/kup-card-declarations.d.ts +123 -123
- package/dist/types/components/kup-card/kup-card.d.ts +154 -154
- package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +20 -20
- package/dist/types/components/kup-card-list/kup-card-list.d.ts +107 -107
- package/dist/types/components/kup-cell/kup-cell-declarations.d.ts +4 -4
- package/dist/types/components/kup-cell/kup-cell.d.ts +62 -62
- package/dist/types/components/kup-chart/kup-chart-builder.d.ts +2 -2
- package/dist/types/components/kup-chart/kup-chart-declarations.d.ts +99 -99
- package/dist/types/components/kup-chart/kup-chart.d.ts +164 -164
- package/dist/types/components/kup-checkbox/kup-checkbox-declarations.d.ts +8 -8
- package/dist/types/components/kup-checkbox/kup-checkbox.d.ts +80 -80
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +8 -8
- package/dist/types/components/kup-chip/kup-chip.d.ts +82 -82
- package/dist/types/components/kup-color-picker/kup-color-picker-declarations.d.ts +6 -6
- package/dist/types/components/kup-color-picker/kup-color-picker.d.ts +83 -83
- package/dist/types/components/kup-combobox/kup-combobox-declarations.d.ts +12 -12
- package/dist/types/components/kup-combobox/kup-combobox.d.ts +89 -89
- package/dist/types/components/kup-dashboard/kup-dashboard-declarations.d.ts +28 -28
- package/dist/types/components/kup-dashboard/kup-dashboard.d.ts +74 -74
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +156 -156
- package/dist/types/components/kup-data-table/kup-data-table-helper.d.ts +2 -2
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +31 -31
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +441 -441
- package/dist/types/components/kup-date-picker/kup-date-picker-declarations.d.ts +9 -9
- package/dist/types/components/kup-date-picker/kup-date-picker.d.ts +105 -105
- package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +12 -12
- package/dist/types/components/kup-dialog/kup-dialog.d.ts +72 -72
- package/dist/types/components/kup-drawer/kup-drawer-declarations.d.ts +2 -2
- package/dist/types/components/kup-drawer/kup-drawer.d.ts +70 -70
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button-declarations.d.ts +12 -12
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +154 -154
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +48 -48
- package/dist/types/components/kup-echart/kup-echart.d.ts +103 -103
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +20 -20
- package/dist/types/components/kup-family-tree/kup-family-tree.d.ts +82 -82
- package/dist/types/components/kup-form/kup-form-declarations.d.ts +40 -40
- package/dist/types/components/kup-form/kup-form.d.ts +78 -78
- package/dist/types/components/kup-gauge/kup-gauge-declarations.d.ts +19 -19
- package/dist/types/components/kup-gauge/kup-gauge.d.ts +144 -144
- package/dist/types/components/kup-grid/kup-grid-declarations.d.ts +3 -3
- package/dist/types/components/kup-grid/kup-grid.d.ts +45 -45
- package/dist/types/components/kup-iframe/kup-iframe-declarations.d.ts +3 -3
- package/dist/types/components/kup-iframe/kup-iframe.d.ts +45 -45
- package/dist/types/components/kup-image/canvas/kup-image-canvas-declarations.d.ts +19 -19
- package/dist/types/components/kup-image/canvas/kup-image-canvas.d.ts +25 -25
- package/dist/types/components/kup-image/kup-image-declarations.d.ts +10 -10
- package/dist/types/components/kup-image/kup-image.d.ts +96 -96
- package/dist/types/components/kup-image-list/kup-image-list-declarations.d.ts +4 -4
- package/dist/types/components/kup-image-list/kup-image-list-state.d.ts +3 -3
- package/dist/types/components/kup-image-list/kup-image-list.d.ts +64 -64
- package/dist/types/components/kup-lazy/kup-lazy-declarations.d.ts +7 -7
- package/dist/types/components/kup-lazy/kup-lazy.d.ts +73 -73
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +23 -23
- package/dist/types/components/kup-list/kup-list.d.ts +122 -122
- package/dist/types/components/kup-magic-box/kup-magic-box-declarations.d.ts +10 -10
- package/dist/types/components/kup-magic-box/kup-magic-box.d.ts +60 -60
- package/dist/types/components/kup-nav-bar/kup-nav-bar-declarations.d.ts +7 -7
- package/dist/types/components/kup-nav-bar/kup-nav-bar.d.ts +60 -60
- package/dist/types/components/kup-numeric-picker/kup-numeric-picker-declarations.d.ts +10 -10
- package/dist/types/components/kup-numeric-picker/kup-numeric-picker.d.ts +116 -116
- package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +3 -3
- package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +57 -57
- package/dist/types/components/kup-planner/kup-planner-declarations.d.ts +592 -96
- package/dist/types/components/kup-planner/kup-planner-state.d.ts +9 -9
- package/dist/types/components/kup-planner/kup-planner.d.ts +269 -259
- package/dist/types/components/kup-planner/utils/custom-task-list-header.d.ts +8 -0
- package/dist/types/components/kup-planner/utils/custom-task-list-table.d.ts +14 -0
- package/dist/types/components/kup-planner/utils/custom-tool-tip.d.ts +2 -0
- package/dist/types/components/kup-planner/utils/helpers/bar.helpers.d.ts +33 -0
- package/dist/types/components/kup-planner/utils/helpers/other.helpers.d.ts +6 -0
- package/dist/types/components/kup-planner/utils/kup-gantt/kup-gantt.d.ts +127 -0
- package/dist/types/components/kup-planner/utils/kup-gantt-calendar/kup-gantt-calendar.d.ts +27 -0
- package/dist/types/components/kup-planner/utils/kup-grid-renderer/kup-grid-renderer.d.ts +59 -0
- package/dist/types/components/kup-planner/utils/kup-horizontal-scroll/kup-horizontal-scroll.d.ts +17 -0
- package/dist/types/components/kup-planner/utils/kup-planner-adapted-types.d.ts +28 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer-helper.d.ts +36 -0
- package/dist/types/components/kup-planner/utils/kup-planner-renderer.d.ts +33 -0
- package/dist/types/components/kup-planner/utils/kup-planner-time-formatter.d.ts +20 -0
- package/dist/types/components/kup-planner/utils/kup-switcher/kup-switcher.d.ts +5 -0
- package/dist/types/components/kup-planner/utils/kup-task-gantt/kup-task-gantt.d.ts +20 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-header.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list-table.d.ts +16 -0
- package/dist/types/components/kup-planner/utils/kup-task-list/kup-task-list.d.ts +40 -0
- package/dist/types/components/kup-planner/utils/kup-tooltip/kup-standard-tooltip.d.ts +7 -0
- package/dist/types/components/kup-planner/utils/kup-tooltip/kup-tooltip.d.ts +26 -0
- package/dist/types/components/kup-planner/utils/kup-vertical-scroll/kup-vertical-scroll.d.ts +16 -0
- package/dist/types/components/kup-probe/kup-probe.d.ts +70 -70
- package/dist/types/components/kup-progress-bar/kup-progress-bar-declarations.d.ts +7 -7
- package/dist/types/components/kup-progress-bar/kup-progress-bar.d.ts +65 -65
- package/dist/types/components/kup-qlik/kup-qlik-declarations.d.ts +13 -13
- package/dist/types/components/kup-qlik/kup-qlik.d.ts +96 -96
- package/dist/types/components/kup-radio/kup-radio-declarations.d.ts +6 -6
- package/dist/types/components/kup-radio/kup-radio.d.ts +75 -75
- package/dist/types/components/kup-rating/kup-rating-declarations.d.ts +5 -5
- package/dist/types/components/kup-rating/kup-rating.d.ts +52 -52
- package/dist/types/components/kup-snackbar/kup-snackbar-declarations.d.ts +5 -5
- package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +78 -78
- package/dist/types/components/kup-spinner/kup-spinner-declarations.d.ts +8 -8
- package/dist/types/components/kup-spinner/kup-spinner.d.ts +75 -75
- package/dist/types/components/kup-state/kup-state.d.ts +1 -1
- package/dist/types/components/kup-state/kup-store.d.ts +2 -2
- package/dist/types/components/kup-state/mock-store.d.ts +5 -5
- package/dist/types/components/kup-switch/kup-switch-declarations.d.ts +6 -6
- package/dist/types/components/kup-switch/kup-switch.d.ts +75 -75
- package/dist/types/components/kup-tab-bar/kup-tab-bar-declarations.d.ts +6 -6
- package/dist/types/components/kup-tab-bar/kup-tab-bar.d.ts +72 -72
- package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +31 -31
- package/dist/types/components/kup-text-field/kup-text-field.d.ts +258 -258
- package/dist/types/components/kup-time-picker/kup-time-picker-declarations.d.ts +8 -8
- package/dist/types/components/kup-time-picker/kup-time-picker.d.ts +120 -120
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +56 -56
- package/dist/types/components/kup-tree/kup-tree-faker.d.ts +15 -15
- package/dist/types/components/kup-tree/kup-tree-state.d.ts +9 -9
- package/dist/types/components/kup-tree/kup-tree.d.ts +351 -351
- package/dist/types/components.d.ts +637 -4
- package/dist/types/f-components/f-button/f-button-declarations.d.ts +24 -24
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +117 -117
- package/dist/types/f-components/f-checkbox/f-checkbox-declarations.d.ts +9 -9
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +12 -12
- package/dist/types/f-components/f-image/f-image-declarations.d.ts +14 -14
- package/dist/types/f-components/f-paginator/f-paginator-declarations.d.ts +12 -12
- package/dist/types/f-components/f-progress-bar/f-progress-bar-declarations.d.ts +10 -10
- package/dist/types/f-components/f-radio/f-radio-declarations.d.ts +11 -11
- package/dist/types/f-components/f-rating/f-rating-declarations.d.ts +4 -4
- package/dist/types/f-components/f-switch/f-switch-declarations.d.ts +8 -8
- package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +38 -38
- package/dist/types/managers/kup-data/kup-data-cell-helper.d.ts +3 -3
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +88 -88
- package/dist/types/managers/kup-data/kup-data.d.ts +76 -76
- package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -19
- package/dist/types/managers/kup-dates/kup-dates.d.ts +217 -192
- package/dist/types/managers/kup-debug/kup-debug-declarations.d.ts +18 -18
- package/dist/types/managers/kup-debug/kup-debug.d.ts +87 -87
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +19 -19
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position.d.ts +53 -53
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +37 -37
- package/dist/types/managers/kup-interact/kup-interact.d.ts +95 -95
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +133 -133
- package/dist/types/managers/kup-language/kup-language.d.ts +44 -44
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +63 -63
- package/dist/types/managers/kup-manager/kup-manager.d.ts +67 -67
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +16 -16
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +1 -1
- package/dist/types/managers/kup-math/kup-math.d.ts +132 -132
- package/dist/types/managers/kup-objects/kup-objects-declarations.d.ts +4 -4
- package/dist/types/managers/kup-objects/kup-objects.d.ts +201 -201
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover-declarations.d.ts +16 -16
- package/dist/types/managers/kup-scroll-on-hover/kup-scroll-on-hover.d.ts +55 -55
- package/dist/types/managers/kup-search/kup-search-declarations.d.ts +1 -1
- package/dist/types/managers/kup-search/kup-search.d.ts +13 -13
- package/dist/types/managers/kup-theme/kup-theme-declarations.d.ts +99 -99
- package/dist/types/managers/kup-theme/kup-theme.d.ts +119 -119
- package/dist/types/managers/kup-toolbar/kup-toolbar-declarations.d.ts +3 -3
- package/dist/types/managers/kup-toolbar/kup-toolbar.d.ts +32 -32
- package/dist/types/managers/kup-tooltip/kup-tooltip-declarations.d.ts +4 -4
- package/dist/types/managers/kup-tooltip/kup-tooltip.d.ts +43 -43
- package/dist/types/stencil-public-runtime.d.ts +8 -0
- package/dist/types/types/GenericTypes.d.ts +74 -74
- package/dist/types/utils/filters/filters-column-menu.d.ts +86 -86
- package/dist/types/utils/filters/filters-declarations.d.ts +13 -13
- package/dist/types/utils/filters/filters-rows.d.ts +17 -17
- package/dist/types/utils/filters/filters-tree-items.d.ts +7 -7
- package/dist/types/utils/filters/filters.d.ts +62 -62
- package/dist/types/utils/kup-column-menu/kup-column-menu-declarations.d.ts +14 -14
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +126 -126
- package/package.json +12 -16
- package/dist/cjs/f-button-9ccadd52.js +0 -105
- package/dist/cjs/f-cell-3130506f.js +0 -670
- package/dist/cjs/f-checkbox-9d2635d9.js +0 -29
- package/dist/cjs/f-chip-beb7af58.js +0 -133
- package/dist/cjs/f-image-66a3c3c1.js +0 -115
- package/dist/cjs/f-paginator-utils-c475e07f.js +0 -1576
- package/dist/cjs/f-text-field-c74856ff.js +0 -216
- package/dist/esm/f-button-0bce6587.js +0 -103
- package/dist/esm/f-cell-88d375e1.js +0 -664
- package/dist/esm/f-checkbox-31219c42.js +0 -27
- package/dist/esm/f-chip-ef0d4130.js +0 -131
- package/dist/esm/f-image-727453df.js +0 -113
- package/dist/esm/f-paginator-utils-4524e41c.js +0 -1563
- package/dist/esm/f-text-field-7b4d622c.js +0 -214
- package/dist/ketchup/p-042e1ed0.entry.js +0 -1
- package/dist/ketchup/p-0dc763af.entry.js +0 -1
- package/dist/ketchup/p-1ae879af.entry.js +0 -1
- package/dist/ketchup/p-1db0c862.entry.js +0 -1
- package/dist/ketchup/p-20458088.js +0 -30
- package/dist/ketchup/p-20c1a69f.entry.js +0 -1
- package/dist/ketchup/p-267dd24a.entry.js +0 -9
- package/dist/ketchup/p-2849af6f.js +0 -1
- package/dist/ketchup/p-30938d5a.entry.js +0 -1
- package/dist/ketchup/p-4067c71b.js +0 -2
- package/dist/ketchup/p-61f71872.entry.js +0 -1
- package/dist/ketchup/p-6b33f5de.entry.js +0 -1
- package/dist/ketchup/p-7f64b612.entry.js +0 -1
- package/dist/ketchup/p-90db42e6.entry.js +0 -1
- package/dist/ketchup/p-9cc1c76b.entry.js +0 -1
- package/dist/ketchup/p-9d3d8690.js +0 -1
- package/dist/ketchup/p-b4ba27da.entry.js +0 -1
- package/dist/ketchup/p-c046fd1c.entry.js +0 -1
- package/dist/ketchup/p-c120043a.entry.js +0 -1
- package/dist/ketchup/p-d520d757.entry.js +0 -1
- package/dist/ketchup/p-e9bc0749.entry.js +0 -1
- package/dist/ketchup/p-edd88921.entry.js +0 -1
- package/dist/ketchup/p-f67ee60f.entry.js +0 -25
- package/dist/ketchup/p-f6844304.entry.js +0 -1
- package/dist/ketchup/p-f8213d22.entry.js +0 -1
- /package/dist/ketchup/{p-cd2af1a6.js → p-b3577066.js} +0 -0
- /package/dist/ketchup/{p-b00f3575.js → p-c634eb82.js} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,n,t=!1,l=!1;const o=e=>{const n=new URL(e,fe.t);return n.origin!==ue.location.origin?n.href:n.pathname},s=e=>fe.t=e,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="http://www.w3.org/1999/xlink",r={},u=e=>"object"==(e=typeof e)||"function"===e;function a(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const f=(e,n,...t)=>{let l=null,o=null,s=!1,i=!1;const c=[],r=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!u(l))&&(l+=""),s&&i?c[c.length-1].l+=l:c.push(s?d(null,l):l),i=s)};if(r(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}if("function"==typeof e)return e(null===n?{}:n,c,y);const a=d(e,null);return a.o=n,c.length>0&&(a.i=c),a.u=o,a},d=(e,n)=>({p:0,h:e,l:n,v:null,i:null,o:null,u:null}),p={},y={forEach:(e,n)=>e.map(h).forEach(n),map:(e,n)=>e.map(h).map(n).map(v)},h=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.m,vtag:e.h,vtext:e.l}),v=e=>{if("function"==typeof e.vtag){const n=Object.assign({},e.vattrs);return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),f(e.vtag,n,...e.vchildren||[])}const n=d(e.vtag,e.vtext);return n.o=e.vattrs,n.i=e.vchildren,n.u=e.vkey,n.m=e.vname,n},m=e=>ne(e).$hostElement$,b=(e,n,t)=>{const l=m(e);return{emit:e=>$(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},$=(e,n,t)=>{const l=fe.ce(n,t);return e.dispatchEvent(l),l},w=new WeakMap,g=e=>"sc-"+e.$,j=(e,n,t,l,o,s)=>{if(t!==l){let i=oe(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=S(t),s=S(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===n){for(const n in t)l&&null!=l[n]||(n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in l)t&&l[n]===t[n]||(n.includes("-")?e.style.setProperty(n,l[n]):e.style[n]=l[n])}else if("key"===n);else if("ref"===n)l&&l(e);else if(i||"o"!==n[0]||"n"!==n[1]){const a=u(l);if((i||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?i=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}let f=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(n=r,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(n)||(f?e.removeAttributeNS(c,n):e.removeAttribute(n)):(!i||4&s||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(c,n,l):e.setAttribute(n,l))}else if(n="-"===n[2]?n.slice(3):oe(ue,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith(O);n=n.replace(x,""),t&&fe.rel(e,n,t,o),l&&fe.ael(e,n,l,o)}}},k=/\s/,S=e=>e?e.split(k):[],O="Capture",x=RegExp(O+"$"),C=(e,n,t,l)=>{const o=11===n.v.nodeType&&n.v.host?n.v.host:n.v,s=e&&e.o||r,i=n.o||r;for(l in s)l in i||j(o,l,s[l],void 0,t,n.p);for(l in i)j(o,l,s[l],i[l],t,n.p)},M=(n,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.v=ae.createTextNode(s.l);else{if(t||(t="svg"===s.h),i=s.v=ae.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.h),t&&"foreignObject"===s.h&&(t=!1),C(null,s,t),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.i)for(r=0;r<s.i.length;++r)c=M(n,s,r),c&&i.appendChild(c);"svg"===s.h?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i},P=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=M(null,l,s),c&&(o[s].v=c,r.insertBefore(c,t)))},R=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.v;U(n),e&&e.remove()}}},E=(e,n)=>e.h===n.h&&e.u===n.u,L=(e,n)=>{const l=n.v=e.v,o=e.i,s=n.i,i=n.h,c=n.l;null===c?(t="svg"===i||"foreignObject"!==i&&t,"slot"===i||C(e,n,t),null!==o&&null!==s?((e,n,t,l)=>{let o,s,i=0,c=0,r=0,u=0,a=n.length-1,f=n[0],d=n[a],p=l.length-1,y=l[0],h=l[p];for(;i<=a&&c<=p;)if(null==f)f=n[++i];else if(null==d)d=n[--a];else if(null==y)y=l[++c];else if(null==h)h=l[--p];else if(E(f,y))L(f,y),f=n[++i],y=l[++c];else if(E(d,h))L(d,h),d=n[--a],h=l[--p];else if(E(f,h))L(f,h),e.insertBefore(f.v,d.v.nextSibling),f=n[++i],h=l[--p];else if(E(d,y))L(d,y),e.insertBefore(d.v,f.v),d=n[--a],y=l[++c];else{for(r=-1,u=i;u<=a;++u)if(n[u]&&null!==n[u].u&&n[u].u===y.u){r=u;break}r>=0?(s=n[r],s.h!==y.h?o=M(n&&n[c],t,r):(L(s,y),n[r]=void 0,o=s.v),y=l[++c]):(o=M(n&&n[c],t,c),y=l[++c]),o&&f.v.parentNode.insertBefore(o,f.v)}i>a?P(e,null==l[p+1]?null:l[p+1].v,t,l,c,p):c>p&&R(n,i,a)})(l,o,n,s):null!==s?(null!==e.l&&(l.textContent=""),P(l,null,n,s,0,s.length-1)):null!==o&&R(o,0,o.length-1),t&&"svg"===i&&(t=!1)):e.l!==c&&(l.data=c)},U=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(U)},W=(e,n)=>{n&&!e.j&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.j=n)))},A=(e,n)=>{if(e.p|=16,!(4&e.p))return W(e,e.k),we((()=>D(e,n)));e.p|=512},D=(e,n)=>{const t=e.S;let l;return n?(e.p|=256,e.O&&(e.O.map((([e,n])=>z(t,e,n))),e.O=void 0),l=z(t,"componentWillLoad")):l=z(t,"componentWillUpdate"),l=N(l,(()=>z(t,"componentWillRender"))),N(l,(()=>F(e,t,n)))},N=(e,n)=>T(e)?e.then(n):n(),T=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,F=async(e,n,t)=>{var l;const o=e.$hostElement$,s=o["s-rc"];t&&(e=>{const n=e.C,t=e.$hostElement$,l=n.p,o=((e,n)=>{var t;const l=g(n),o=re.get(l);if(e=11===e.nodeType?e:ae,o)if("string"==typeof o){let s,c=w.get(e=e.head||e);if(c||w.set(e,c=new Set),!c.has(l)){{s=ae.createElement("style"),s.innerHTML=o;const n=null!==(t=fe.M)&&void 0!==t?t:a(ae);null!=n&&s.setAttribute("nonce",n),e.insertBefore(s,e.querySelector("link"))}4&n.p&&(s.innerHTML+=i),c&&c.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=o,t.classList.add(o+"-h"))})(e);H(e,n,o,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const n=null!==(l=o["s-p"])&&void 0!==l?l:[],t=()=>q(e);0===n.length?t():(Promise.all(n).then(t),e.p|=4,n.length=0)}},H=(t,l,o,s)=>{try{l=l.render(),t.p&=-17,t.p|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.C,c=t.P||d(null,null),r=(e=>e&&e.h===p)(l)?l:f(null,null,l);if(n=s.tagName,i.R&&(r.o=r.o||{},i.R.map((([e,n])=>r.o[n]=s[e]))),o&&r.o)for(const e of Object.keys(r.o))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.o[e]=s[e]);r.h=null,r.p|=4,t.P=r,r.v=c.v=s.shadowRoot||s,e=s["s-sc"],L(c,r)})(t,l,s)}catch(e){se(e,t.$hostElement$)}return null},q=e=>{const n=e.$hostElement$,t=e.S,l=e.k;z(t,"componentDidRender"),64&e.p?z(t,"componentDidUpdate"):(e.p|=64,B(n),z(t,"componentDidLoad"),e.L(n),l||_()),e.U(n),e.j&&(e.j(),e.j=void 0),512&e.p&&$e((()=>A(e,!1))),e.p&=-517},V=e=>{{const n=ne(e),t=n.$hostElement$.isConnected;return t&&2==(18&n.p)&&A(n,!1),t}},_=()=>{B(ae.documentElement),$e((()=>$(ue,"appload",{detail:{namespace:"ketchup"}})))},z=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){se(e)}},B=e=>e.classList.add("hydrated"),G=(e,n,t)=>{var l;if(n.W){e.watchers&&(n.A=e.watchers);const o=Object.entries(n.W),s=e.prototype;if(o.map((([e,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(s,e,{get(){return((e,n)=>ne(this).D.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=ne(e),s=o.$hostElement$,i=o.D.get(n),c=o.p,r=o.S;if(t=((e,n)=>null==e||u(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.W[n][0]),(!(8&c)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.D.set(n,t),r)){if(l.A&&128&c){const e=l.A[n];e&&e.map((e=>{try{r[e](t,i,n)}catch(e){se(e,s)}}))}2==(18&c)&&A(o,!1)}})(this,e,t,n)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(s,e,{value(...n){const t=ne(this);return t.N.then((()=>t.S[e](...n)))}})})),1&t){const t=new Map;s.attributeChangedCallback=function(e,l,o){fe.jmp((()=>{const i=t.get(e);if(this.hasOwnProperty(i))o=this[i],delete this[i];else{if(s.hasOwnProperty(i)&&"number"==typeof this[i]&&this[i]==o)return;if(null==i){const t=ne(this),s=null==t?void 0:t.p;if(!(8&s)&&128&s&&o!==l){const s=t.S,i=n.A[e];null==i||i.forEach((n=>{null!=s[n]&&s[n].call(s,o,l,e)}))}return}}this[i]=(null!==o||"boolean"!=typeof this[i])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.A)&&void 0!==l?l:{}),...o.filter((([e,n])=>15&n[0])).map((([e,l])=>{const o=l[1]||e;return t.set(o,e),512&l[0]&&n.R.push([e,o]),o}))]))}}return e},I=e=>{z(e,"disconnectedCallback")},J=(e,n={})=>{var t;const l=[],o=n.exclude||[],s=ue.customElements,c=ae.head,r=c.querySelector("meta[charset]"),u=ae.createElement("style"),f=[];let d,p=!0;Object.assign(fe,n),fe.t=new URL(n.resourcesUrl||"./",ae.baseURI).href;let y=!1;if(e.map((e=>{e[1].map((n=>{var t;const i={p:n[0],$:n[1],W:n[2],T:n[3]};4&i.p&&(y=!0),i.W=n[2],i.T=n[3],i.R=[],i.A=null!==(t=n[4])&&void 0!==t?t:{};const c=i.$,r=class extends HTMLElement{constructor(e){super(e),le(e=this,i),1&i.p&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?f.push(this):fe.jmp((()=>(e=>{if(0==(1&fe.p)){const n=ne(e),t=n.C,l=()=>{};if(1&n.p)K(e,n,t.T),(null==n?void 0:n.S)||(null==n?void 0:n.F)&&n.F.then((()=>{}));else{n.p|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){W(n,n.k=t);break}}t.W&&Object.entries(t.W).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(0==(32&n.p)){n.p|=32;{if(l=ce(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(t.A=l.watchers,G(l,t,2),l.isProxied=!0);const e=()=>{};n.p|=8;try{new l(n)}catch(e){se(e)}n.p&=-9,n.p|=128,e()}if(l.style){let e=l.style;const n=g(t);if(!re.has(n)){const l=()=>{};((e,n,t)=>{let l=re.get(e);pe&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,re.set(e,l)})(n,e,!!(1&t.p)),l()}}}const o=n.k,s=()=>A(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,n,t)}l()}})(this)))}disconnectedCallback(){fe.jmp((()=>(async()=>{if(0==(1&fe.p)){const e=ne(this);e.H&&(e.H.map((e=>e())),e.H=void 0),(null==e?void 0:e.S)?I(e.S):(null==e?void 0:e.F)&&e.F.then((()=>I(e.S)))}})()))}componentOnReady(){return ne(this).F}};i.q=e[0],o.includes(c)||s.get(c)||(l.push(c),s.define(c,G(r,i,1)))}))})),y&&(u.innerHTML+=i),u.innerHTML+=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length){u.setAttribute("data-styles",""),c.insertBefore(u,r?r.nextSibling:c.firstChild);const e=null!==(t=fe.M)&&void 0!==t?t:a(ae);null!=e&&u.setAttribute("nonce",e)}p=!1,f.length?f.map((e=>e.connectedCallback())):fe.jmp((()=>d=setTimeout(_,30)))},K=(e,n,t)=>{t&&t.map((([t,l,o])=>{const s=X(e,t),i=Q(n,o),c=Y(t);fe.ael(s,l,i,c),(n.H=n.H||[]).push((()=>fe.rel(s,l,i,c)))}))},Q=(e,n)=>t=>{try{256&e.p?e.S[n](t):(e.O=e.O||[]).push([n,t])}catch(e){se(e)}},X=(e,n)=>4&n?ae:e,Y=e=>0!=(2&e),Z=e=>fe.M=e,ee=new WeakMap,ne=e=>ee.get(e),te=(e,n)=>ee.set(n.S=e,n),le=(e,n)=>{const t={p:0,$hostElement$:e,C:n,D:new Map};return t.N=new Promise((e=>t.U=e)),t.F=new Promise((e=>t.L=e)),e["s-p"]=[],e["s-rc"]=[],K(e,t,n.T),ee.set(e,t)},oe=(e,n)=>n in e,se=(e,n)=>(0,console.error)(e,n),ie=new Map,ce=e=>{const n=e.$.replace(/-/g,"_"),t=e.q,l=ie.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(ie.set(t,e),e[n])),se)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},re=new Map,ue="undefined"!=typeof window?window:{},ae=ue.document||{head:{}},fe={p:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},de=e=>Promise.resolve(e),pe=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ye=[],he=[],ve=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&fe.p?$e(be):fe.raf(be))},me=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){se(e)}e.length=0},be=()=>{me(ye),me(he),(l=ye.length>0)&&fe.raf(be)},$e=e=>de().then(e),we=ve(he,!0);export{p as H,s as a,J as b,b as c,m as d,V as f,o as g,f as h,de as p,te as r,Z as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,f as i,h as s,H as e,d as o}from"./p-4067c71b.js";import{k as a,g as n,s as c,n as r,d as h,an as l,U as u,ao as p,Y as d,c as b}from"./p-20458088.js";import{F as m}from"./p-b00f3575.js";import{F as k}from"./p-34e4a985.js";import{c as g}from"./p-635bb4b3.js";var f,x;!function(t){t.customStyle="Custom style of the component.",t.data="Sets the data that will be used to display different components."}(f||(f={})),function(t){t.BOX="Box",t.BUTTON_LIST="Button List",t.CHART="Chart",t.CHIP="Chip",t.ECHART="Echart",t.DATATABLE="Datatable",t.JSON="JSON",t.TREE="Tree"}(x||(x={}));const y=class{constructor(i){t(this,i),this.dragHandler=null,this.kupManager=a(),this.textArea=null,this.wrapperRef=null,this.display=x.DATATABLE,this.customStyle="",this.data=null}async getProps(t){return n(this,f,t)}async refresh(){i(this)}async setProps(t){c(this,f,t)}comboboxProps(){const t=[];for(const i in x)Object.prototype.hasOwnProperty.call(x,i)&&t.push({id:x[i],selected:!1,value:x[i]});return{data:{"kup-list":{data:t,id:"kup-debug-theme-changer-list"},"kup-text-field":{emitSubmitEventOnEnter:!1,inputType:"text",label:this.kupManager.language.translate(r.VIEW_AS)}},id:"comp-switcher",initialValue:this.display,isSelect:!0,"onKup-combobox-itemclick":t=>{this.display=t.detail.value}}}setContent(){const t=!!(this.data&&this.data.columns&&this.data.columns.length>0),i=[],e={};if(this.display===x.JSON)e.initialValue=this.data?JSON.stringify(this.data,null,2):"",e.textArea=!0,i.push(s("kup-text-field",Object.assign({class:"kup-full-width kup-full-height"},e,{ref:t=>this.textArea=t,"onkup-textfield-input":t=>{try{this.data=JSON.parse(t.detail.value)}catch(t){this.data={columns:[{name:"ERROR",title:"Error"}],rows:[{cells:{ERROR:{value:"Invalid JSON:"+t}}}]}}}})));else if(t)switch(this.display){case x.BOX:e.data=this.data,i.push(s("kup-box",Object.assign({},e)));break;case x.BUTTON_LIST:e.data=this.data,i.push(s("kup-button-list",Object.assign({},e)));break;case x.CHIP:e.data=this.data,i.push(s("kup-chip",Object.assign({},e)));break;case x.CHART:case x.ECHART:e.data=this.data,e.series=[],e.axis=null;for(let t=0;t<this.data.columns.length;t++){const i=this.data.columns[t];i.obj&&this.kupManager.objects.isNumber(i.obj)||null!==e.axis?e.series.push(this.display===x.CHART?{code:i.name,decode:i.title}:i.name):e.axis=i.name}0===e.series.length&&this.kupManager.debug.logMessage(this,"Not enough numerical columns to display a chart!",h.WARNING),e.axis||this.kupManager.debug.logMessage(this,"No axis for the chart!",h.WARNING),i.push(s(this.display===x.CHART?"kup-chart":"kup-echart",Object.assign({},e)));break;case x.DATATABLE:e.data=this.data,e.autoFillMissingCells=!0,i.push(s("kup-data-table",Object.assign({},e)));break;case x.TREE:e.data=this.data,i.push(s("kup-tree",Object.assign({class:"kup-full-width"},e)));break;default:return void this.kupManager.debug.logMessage(this,"Display mode not supported ("+this.display+")!",h.ERROR)}else i.push(s("div",{class:"empty"},s(k,{sizeY:"100px",resource:"move_to_inbox"}),s("div",{class:"empty-text"},this.kupManager.language.translate(r.DROP_YOUR_DATA))));return i}updateData(t){{const i=Object.assign({},this.data),s=t.detail.sourceElement&&t.detail.sourceElement.column?t.detail.sourceElement.column:null,e=t.detail.sourceElement&&t.detail.sourceElement.row?t.detail.sourceElement.row:null;if(s&&s.name?i.columns?this.data.columns.find((t=>t.name===s.name))||i.columns.push(s):i.columns=[s]:this.kupManager.debug.logMessage(this,"Invalid column received.",h.WARNING),e&&(i.rows?i.rows.push(e):i.rows=[e]),this.data=i,this.data&&this.textArea)try{this.textArea.setValue(JSON.stringify(this.data,null,2))}catch(t){this.textArea.setValue("Invalid JSON:"+t)}}}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.rootElement.addEventListener(l,(t=>this.updateData(t))),this.dragHandler=this.rootElement.shadowRoot.querySelector("#drag-handle"),this.kupManager.interact.dialogify(this.rootElement,this.dragHandler),this.kupManager.interact.dropzone(this.wrapperRef,{accept:`[${u}],[${p}]`},{dispatcher:this.rootElement,type:d.MAGICBOX}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return s(e,null,s("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),s("div",{id:g},s("div",{class:"magic-box-wrapper"},s("div",{class:"actions",id:"drag-handle"},s("kup-combobox",Object.assign({},this.comboboxProps())),s("kup-button",{styling:m.FLAT,icon:"delete",label:"Reset","onkup-button-click":()=>{this.data=null}}),s("kup-button",{id:"close-dialog",customStyle:`:host{${b.PRIMARY}: var(${b.TITLE});}`,icon:"clear","onkup-button-click":()=>{this.kupManager.hideMagicBox()}})),s("div",{class:"content",ref:t=>this.wrapperRef=t},this.setContent()))))}disconnectedCallback(){this.kupManager.interact.unregister([this.rootElement,this.wrapperRef]),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return o(this)}};y.style=":host{background-color:var(--kup-background-color);color:var(--kup-text-color);display:block;height:300px;min-width:700px;width:700px}#kup-component,.magic-box-wrapper{height:100%;width:100%}.magic-box-wrapper{border:3px dashed var(--kup-border-color);box-sizing:border-box;display:flex;flex-direction:column}.actions{align-items:center;background-color:var(--kup-title-background-color);display:inline-flex;height:52px;justify-content:center;left:0;position:absolute;top:0;width:100%;z-index:1}.actions kup-button{margin:0.5em}.actions #comp-switcher{margin:auto 0}.actions #close-dialog{position:absolute;margin:0;top:0;right:0;background-color:var(--kup-title-background-color)}.content{box-sizing:border-box;height:100%;margin-top:52px;overflow:auto;transition:background-color 125ms ease}.empty{flex-direction:column;display:flex;text-align:center;justify-content:center;height:100%;width:100%;opacity:0.5;transition:opacity 0.25s ease-out}.empty .f-image{margin:0}.json{font-family:var(--kup-font-family-monospace);margin:0}[kup-drag-over]{background-color:rgba(var(--kup-success-color-rgb), 0.25)}";export{y as kup_magic_box}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,f as s,h as e,H as o,d as n}from"./p-4067c71b.js";import{F as r}from"./p-4e696daf.js";import{F as a}from"./p-7a876328.js";import{F as h}from"./p-6a7df3d2.js";import{F as l}from"./p-cd2af1a6.js";import{k as c,g as d,s as u,am as m,n as p,W as f,d as g}from"./p-20458088.js";import{c as x}from"./p-635bb4b3.js";import"./p-b00f3575.js";import"./p-34e4a985.js";import"./p-d4a879fc.js";var b;!function(t){t.customStyle="Custom style of the component.",t.data="The data of the component.",t.enableDesign="When set to true, the component is in design mode and it is draggable."}(b||(b={}));const y=class{constructor(s){t(this,s),this.kupSave=i(this,"kup-dashboard-save",6),this.kupManager=c(),this.internalData=null,this.internalDataBackup=null,this.resetInternalData=!1,this.customStyle="",this.data=null,this.enableDesign=!1}onKupSave(){this.kupSave.emit({comp:this,id:this.rootElement.id,data:this.internalData})}dataChanged(){this.resetData()}async getProps(t){return d(this,b,t)}async refresh(){s(this)}async setProps(t){u(this,b,t)}buildGuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var i=16*Math.random()|0;return("x"===t?i:3&i|8).toString(16)}))}buildHeader(){const t={icon:"cancel",label:this.kupManager.language.translate(m.RESET),secondary:!0,onClick:()=>{this.resetData()}},i={icon:"save",label:this.kupManager.language.translate(m.SAVE),onClick:()=>this.onKupSave()};return e("div",{class:"header"},this.enableDesign?e(r,Object.assign({},t)):void 0,this.enableDesign?e(r,Object.assign({},i)):void 0)}buildForm(t,i){return t?e("div",{class:{form:!0,"layout-column":t&&"column"==t.layout,"layout-row":t&&"row"==t.layout,"form-dropzone":this.enableDesign&&t&&null!=t.sections&&t.sections.length>0},style:this.getGridStyle(t),ref:s=>{s&&(s.kupData={parent:i,form:t})}},t.sections.map((i=>this.buildSection(i,t)))):e("div",null,this.kupManager.language.translate(p.EMPTY_DATA))}buildSectionHeader(t,i){const s={value:t.dim,label:this.kupManager.language.translate(m.DIMENSION),onChange:i=>{const{target:s}=i;t.dim=s.value,this.refresh()}},o={icon:"add",slim:!0,onClick:()=>{t.sections||(t.sections=[]),t.sections.push({id:t.id+(t.sections.length+1),loaded:t.loaded,layout:t.layout}),this.resetData(this.internalData)}},n={icon:"remove",slim:!0,secondary:!0,onClick:()=>{const s=i.sections.indexOf(t);i.sections.splice(s,1),this.resetData(this.internalData)}},l={checked:t.loaded,label:this.kupManager.language.translate(m.LOADED),onChange:()=>{t.loaded=!t.loaded,this.refresh()}},c={checked:"column"==t.layout,label:this.kupManager.language.translate(m.VERTICAL),onChange:()=>{t.layout="column"==t.layout?"row":"column",this.refresh()}};return e("div",{class:"section-header"},e("div",null,t.id," - ",t.layout),e("div",null,e("div",{class:"section-header-actions"},e(h,Object.assign({},s)),e(a,Object.assign({},l)),e(a,Object.assign({},c)),e(r,Object.assign({},o)),e(r,Object.assign({},n)))))}buildSection(t,i){const s={"section-body":!0,"layout-column":t&&"column"==t.layout,"layout-row":t&&"row"==t.layout};return e("div",{class:{section:!0,"section-draggable":this.enableDesign,"section-dropzone":this.enableDesign},ref:s=>{s&&(s.kupData={parent:i,section:t})}},this.enableDesign?this.buildSectionHeader(t,i):void 0,e("div",{class:s,style:this.getGridStyle(t)},this.enableDesign||!t.loaded||t.sections&&0!=t.sections.length?void 0:e("slot",{name:t.id}),t.sections&&(t.loaded||this.enableDesign)?t.sections.map((i=>this.buildSection(i,t))):void 0))}calcSectionPosition(t,i,s,e,o){let n=e;for(let e=0;e<o.length;e++){const r=o[e].getBoundingClientRect();if(s&&t<r.y){n=e;break}if(!s&&i<r.x){n=e;break}}return n}didRenderInteractables(){try{const t=[];this.rootElement.shadowRoot.querySelectorAll(".section-draggable").forEach((i=>t.push(i))),t.forEach((t=>{this.kupManager.interact.draggable(t,null,null,f.CLONE)}))}catch(t){this.kupManager.debug.logMessage(this,t,g.ERROR)}try{const t=[];this.rootElement.shadowRoot.querySelectorAll(".section-dropzone").forEach((i=>t.push(i))),this.rootElement.shadowRoot.querySelectorAll(".form-dropzone").forEach((i=>t.push(i))),t.forEach((t=>{this.kupManager.interact.dropzone(t,{ondropdeactivate:()=>{this.removeSectionPlaceHolder()},ondropmove:t=>{this.removeSectionPlaceHolder(),this.dragEnter(t.dragEvent.clientY,t.dragEvent.clientX,t.currentTarget)}},null,{drop:t=>{this.dropped(t,t.currentTarget,t.relatedTarget)}})}))}catch(t){this.kupManager.debug.logMessage(this,t,g.ERROR)}}dragEnter(t,i,s){if(s.kupData.form){const e=this.calcSectionPosition(t,i,"column"==s.kupData.form.layout,s.kupData.form.sections.length,s.children);this.setSectionPlaceHolder(s,e)}else if(s.kupData.section){const e=this.calcSectionPosition(t,i,"column"==s.kupData.section.layout,s.kupData.section.sections.length,s.lastElementChild.children);this.setSectionPlaceHolder(s.lastElementChild,e)}}dropped(t,i,s){const e=s.kupData.parent.sections.indexOf(s.kupData.section);if(s.kupData.parent.sections.splice(e,1),i.kupData.form){i.kupData.form.sections||(i.kupData.form.sections=[]);const e=this.calcSectionPosition(t.dragEvent.clientY,t.dragEvent.clientX,"column"==i.kupData.form.layout,i.kupData.form.sections.length,i.children);i.kupData.form.sections.splice(e,0,s.kupData.section),s.kupData.parent=i.kupData.form}else if(i.kupData.section){if(!i.kupData.section.sections||0==i.kupData.section.sections.length){const t=JSON.parse(JSON.stringify(i.kupData.section));t.dim=null,s.kupData.section.dim=null,i.kupData.section.id=this.buildGuid(),i.kupData.section.sections=[],i.kupData.section.sections.push(t)}const e=this.calcSectionPosition(t.dragEvent.clientY,t.dragEvent.clientX,"column"==i.kupData.section.layout,i.kupData.section.sections.length,i.lastElementChild.children);i.kupData.section.sections.splice(e,0,s.kupData.section),s.kupData.parent=i.kupData.section}this.resetData(this.internalData)}getGridStyle(t){let i={};if(t.sections){let s="";t.sections.forEach((t=>{s+=this.enableDesign||!t.dim?" 1fr":t.dim.indexOf("%")<0?" "+t.dim+"px":" "+t.dim})),"column"==t.layout&&(i.gridTemplateRows=s),"row"==t.layout&&(i.gridTemplateColumns=s)}return i}setSectionPlaceHolder(t,i){const s=document.createElement("div");s.className="section-placeholder",t.insertBefore(s,t.childNodes[i])}removeSectionPlaceHolder(){const t=this.rootElement.shadowRoot.querySelector(".section-placeholder");t&&t.parentElement.removeChild(t)}resetData(t=null){t&&(this.internalDataBackup=t),this.resetInternalData=!0,setTimeout((()=>{this.internalDataBackup&&(this.internalData=this.internalDataBackup,this.internalDataBackup=null),this.resetInternalData=!1}),250)}unregisterInteractables(){this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll(".section-dropzone"))),this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll(".section-draggable"))),this.kupManager.interact.unregister(Array.from(this.rootElement.shadowRoot.querySelectorAll(".form-dropzone")))}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1),this.resetInternalData?(this.internalData=null,this.unregisterInteractables()):this.internalData||(this.internalData=JSON.parse(JSON.stringify(this.data)))}componentDidRender(){this.kupManager.debug.logRender(this,!0);const t=this.rootElement.shadowRoot;if(t){const i=t.querySelectorAll(".f-text-field");i&&i.forEach((t=>{l(t)}))}this.didRenderInteractables()}render(){return e(o,null,e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{id:x},this.buildHeader(),this.buildForm(this.internalData,null)))}disconnectedCallback(){this.unregisterInteractables(),this.kupManager.dates.unregister(this),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return n(this)}static get watchers(){return{data:["dataChanged"]}}};y.style=":host{width:100%;height:100%}#kup-component{height:100%}.header{display:flex;flex-direction:row;justify-content:center}.header>*{margin-left:0.5em}.form{display:grid;height:100%}.form-dropzone{padding:1em;grid-gap:0.5em;border:1px solid var(--kup-primary-color);height:auto}.section{display:flex;flex-direction:column;overflow:auto}.section-header{display:flex;flex-direction:column}.section-header>*{width:100%;display:flex;flex-direction:row}.section-header>*>.section-header-actions{display:flex;justify-content:end}.section-header>*>.section-header-actions>*{margin-top:auto;margin-bottom:auto}.section-body{display:grid}.section-dropzone{border:1px solid var(--kup-primary-color)}.section-draggable{border:1px solid var(--kup-secondary-color);padding:1em}.section-placeholder{background-color:rgba(var(--kup-secondary-color-rgb), 0.5);min-height:1em;min-width:1em}.component{height:fit-content;padding:1em;margin:0.5em}.layout-row{grid-auto-flow:column;grid-template-columns:min-content}.layout-column{grid-auto-flow:row;grid-template-rows:min-content}";export{y as kup_dashboard}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,f as i,h as o,H as s,d as r}from"./p-4067c71b.js";import{k as h,g as a,s as n}from"./p-20458088.js";import{c as p}from"./p-635bb4b3.js";var l;!function(t){t.customStyle="Custom style of the component.",t.placeholderAttrs="Html attributes of the picture before the component enters the viewport.",t.resourceAttrs="Html attributes of the picture after the component enters the viewport."}(l||(l={}));var f,c,d,u,m,w,b=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)},v=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};const k=class{constructor(i){t(this,i),this.kupPhotoFramePlaceholderLoad=e(this,"kup-photoframe-placeholderload",6),this.kupPhotoFrameResourceLoad=e(this,"kup-photoframe-resourceload",6),f.set(this,null),c.set(this,h()),d.set(this,null),u.set(this,null),m.set(this,!1),w.set(this,null),this.isInViewport=!1,this.customStyle="",this.placeholderAttrs={},this.resourceAttrs={},this.threshold=.25}async getProps(t){return a(this,l,t)}async refresh(){i(this)}async setProps(t){n(this,l,t)}setObserver(){v(this,f,new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.isInViewport=!0,b(this,f,"f").unobserve(this.rootElement))}))}),{threshold:this.threshold}),"f")}componentWillLoad(){b(this,c,"f").debug.logLoad(this,!1),b(this,c,"f").theme.register(this),this.setObserver()}componentDidLoad(){b(this,c,"f").debug.logLoad(this,!0)}componentWillRender(){b(this,c,"f").debug.logRender(this,!1)}componentDidRender(){b(this,c,"f").debug.logRender(this,!0)}render(){return this.isInViewport&&!b(this,m,"f")&&v(this,m,!0,"f"),o(s,null,o("style",null,b(this,c,"f").theme.setKupStyle(this.rootElement)),o("div",{id:p,ref:t=>{v(this,w,t,"f")}},o("img",Object.assign({},this.placeholderAttrs,{class:"placeholder",ref:t=>v(this,d,t,"f"),onLoad:()=>{b(this,d,"f").naturalWidth>b(this,d,"f").naturalHeight?b(this,w,"f").classList.add("horizontal"):b(this,w,"f").classList.add("vertical"),b(this,f,"f").observe(this.rootElement),b(this,d,"f").classList.add("placeholder--loaded"),this.kupPhotoFramePlaceholderLoad.emit({comp:this,id:this.rootElement.id})}})),b(this,m,"f")?o("img",Object.assign({},this.resourceAttrs,{class:"resource",ref:t=>v(this,u,t,"f"),onLoad:()=>{b(this,d,"f").classList.add("placeholder--fade-out"),b(this,u,"f").classList.add("resource--fade-in"),this.kupPhotoFrameResourceLoad.emit({comp:this,id:this.rootElement.id})}})):null))}disconnectedCallback(){var t;b(this,c,"f").theme.unregister(this),null===(t=b(this,f,"f"))||void 0===t||t.unobserve(this.rootElement)}get rootElement(){return r(this)}};f=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,m=new WeakMap,w=new WeakMap,k.style=":host{--kup_photoframe_border:var(\n --kup-photoframe-border,\n 1px inset var(--kup-border-color)\n );--kup_photoframe_fade_out_time:var(--kup-photoframe-fade-out-time, 2000ms);border:var(--kup_photoframe_border);display:block;height:100%;position:relative;width:100%}#kup-component{position:relative;height:100%;width:100%}img{max-height:100%;max-width:100%}.horizontal img{width:100%}.vertical img{height:100%}.placeholder{display:none;transition:opacity var(--kup_photoframe_fade_out_time) ease-out;will-change:opacity;z-index:1}.placeholder--loaded{display:block}.placeholder--fade-out{opacity:0;position:absolute}.resource{display:none;left:0;position:absolute;top:0;z-index:0}.resource--fade-in{display:block;position:relative}:host(.kup-fit) img{height:100%;object-fit:cover;width:100%}";export{k as kup_photo_frame}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as o,f as t,h as e,H as a,d as i}from"./p-4067c71b.js";import{k as s,g as p,s as d}from"./p-20458088.js";import{c as n}from"./p-635bb4b3.js";const c="drawer";var u;!function(r){r.customStyle="Custom style of the component.",r.opened="Defaults at false. When set to true, the drawer appears."}(u||(u={}));const l=class{constructor(t){r(this,t),this.kupDrawerClose=o(this,"kup-drawer-close",6),this.kupDrawerOpen=o(this,"kup-drawer-open",6),this.kupDrawerReady=o(this,"kup-drawer-ready",6),this.kupManager=s(),this.opened=!1,this.customStyle=""}async close(){this.opened=!1,this.kupDrawerClose.emit({comp:this,id:this.rootElement.id})}async getProps(r){return p(this,u,r)}async isOpened(){return this.opened}async open(){this.opened=!0,this.kupDrawerOpen.emit({comp:this,id:this.rootElement.id})}async refresh(){t(this)}async setProps(r){d(this,u,r)}async toggle(){this.opened?this.close():this.open()}content(){const r=[],o=Array.prototype.slice.call(this.rootElement.children,0),t=[];for(let t=0;t<o.length;t++)r.push(e("slot",null));return t.push(e("div",{class:`${c}__content`},r)),t}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.theme.register(this)}componentDidLoad(){this.kupDrawerReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return e(a,{"kup-opened":this.opened},e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{class:"backdrop",onClick:r=>{r.preventDefault(),r.stopPropagation()},onPointerDown:r=>{r.preventDefault(),r.stopPropagation(),this.close()},onTouchStart:r=>{r.preventDefault(),r.stopPropagation()}}),e("div",{id:n},e("div",{class:c},this.content())))}disconnectedCallback(){this.kupManager.theme.unregister(this)}get rootElement(){return i(this)}};l.style=":host{--kup_drawer_backdrop:var(--kup-drawer-backdrop, rgba(0, 0, 0, 0.32));--kup_drawer_box_shadow:var(\n --kup-drawer-box-shadow,\n 0 8px 10px -5px rgba(0, 0, 0, 0.2),\n 0 16px 24px 2px rgba(0, 0, 0, 0.14),\n 0 6px 30px 5px rgba(0, 0, 0, 0.12)\n );--kup_drawer_permanent_border:var(\n --kup-drawer-permanent-border,\n 1px solid var(--kup-border-color)\n );--kup_drawer_slide_transition:var(--kup-drawer-slide-transition, 750ms);--kup_drawer_transition:var(--kup-drawer-transition, 250ms);box-shadow:var(--kup_drawer_box_shadow);display:block;font-size:var(--kup-font-size);height:100vh;left:calc(var(--kup-drawer-width) * -1);position:fixed;top:0;transition:left var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1), right var(--kup_drawer_slide_transition) cubic-bezier(0.4, 0, 0.2, 1);width:var(--kup-drawer-width);z-index:var(--kup-drawer-zindex)}#kup-component{height:100%;width:100%}.backdrop{background:var(--kup_drawer_backdrop);display:none;height:100%;left:0;position:fixed;top:0;width:100%;z-index:var(--kup-drawer-zindex)}.drawer{height:100%;position:fixed;width:var(--kup-drawer-width);z-index:calc(var(--kup-drawer-zindex) + 1)}.drawer__content{background-color:var(--kup-drawer-background-color);box-sizing:border-box;height:100%;overflow-y:auto;width:100%}.drawer ::slotted(*){--kup-button-primary-color:var(--kup-drawer-color);--kup-button-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-button-primary-color-h:var(--kup-drawer-color-h);--kup-button-primary-color-s:var(--kup-drawer-color-s);--kup-button-primary-color-l:var(--kup-drawer-color-l);--kup-switch-label-color:var(--kup-drawer-color);--kup-switch-primary-color:var(--kup-drawer-color);--kup-switch-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-color:var(--kup-drawer-color);--kup-textfield-color-rgb:var(--kup-drawer-color-rgb);--kup-textfield-primary-color:var(--kup-drawer-color);--kup-textfield-primary-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-color:var(--kup-drawer-color);--kup-tree-color-rgb:var(--kup-drawer-color-rgb);--kup-tree-filter-background-color:var(--kup-drawer-background-color);--kup-tree-icon-color:var(--kup-drawer-color);color:var(--kup-drawer-color);fill:var(--kup-drawer-color)}:host([kup-opened]){left:0}:host([kup-opened]) .backdrop{display:block}:host(.kup-right){left:unset;right:-100%}:host([kup-opened].kup-right){right:0}:host(.kup-permanent){box-shadow:unset;transition:all 250ms}:host(.kup-permanent) .backdrop{display:none}:host(.kup-permanent) .drawer{position:relative}:host(.kup-permanent) .drawer__content{border-right:var(--kup_drawer_permanent_border)}";export{l as kup_drawer}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,f as i,h as r,H as a,d as l}from"./p-4067c71b.js";import{F as o}from"./p-4e696daf.js";import{F as s}from"./p-b00f3575.js";import{F as _}from"./p-34e4a985.js";import{k as n,g as m,s as f,n as h,R as c}from"./p-20458088.js";import{c as u}from"./p-635bb4b3.js";var p;!function(t){t.autofitOnExpand="The component will autofit everytime a node is expanded.",t.autofitOnLoad="The component's initial render will fit the container by invoking the runAutofit method.",t.cardData="Used to render the family tree boxes as kup-cards (through kup-box).",t.collapsible="Nodes can be expanded/collapsed.",t.customStyle="Custom style of the component.",t.data="Actual data of the component",t.layout="Layout of the boxes.",t.stackedLeaves="Child nodes that have no children are arranged vertically."}(p||(p={}));var d,y,k,v,g,b,x,w,j,C,E,T,W,M,S,z,D,L,O,P,R,A,F,X,Y,H=function(t,e,i,r){if("a"===i&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(t):r?r.value:e.get(t)},$=function(t,e,i,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(t,i):a?a.value=i:e.set(t,i),i};const B=class{constructor(i){t(this,i),this.kupClick=e(this,"kup-familytree-click",6),this.kupContextMenu=e(this,"kup-familytree-contextmenu",6),this.kupDblClick=e(this,"kup-familytree-dblclick",6),d.add(this),y.set(this,[]),k.set(this,!1),v.set(this,0),g.set(this,0),b.set(this,[]),x.set(this,n()),w.set(this,(t=>{const e=t.clientX-H(this,v,"f"),i=t.clientY-H(this,g,"f");this.rootElement.scrollTop-=i,this.rootElement.scrollLeft-=e,$(this,v,t.clientX,"f"),$(this,g,t.clientY,"f")})),j.set(this,!1),C.set(this,null),this.autofitOnExpand=!0,this.autofitOnLoad=!0,this.cardData=null,this.collapsible=!0,this.customStyle="",this.data=null,this.layout=null,this.stackedLeaves=!1}async collapseAll(t=this.data.rows){H(this,x,"f").data.node.setProperties(t,{isExpanded:!1},!0),this.refresh()}async expandAll(t=this.data.rows){H(this,x,"f").data.node.setProperties(t,{isExpanded:!0},!0),this.refresh()}async getProps(t){return m(this,p,t)}async refresh(){i(this)}async runAutofit(){const t=H(this,C,"f").clientWidth,e=H(this,C,"f").children[0].clientWidth,i=.01,r=.85*t,a=.95*t;let l=1,o=2e3,s=e;for(;(s<r||s>a)&&o>0&&l>i;)o--,s<r?l+=i:s>a?l-=i:o=0,s=e*l;H(this,C,"f").style.setProperty("--kup_familytree_scale",l<=1?l.toFixed(2):"1")}async setProps(t){f(this,p,t)}componentWillLoad(){H(this,x,"f").debug.logLoad(this,!1),H(this,x,"f").language.register(this),H(this,x,"f").theme.register(this)}componentDidLoad(){H(this,d,"m",X).call(this),this.autofitOnLoad&&this.runAutofit(),H(this,x,"f").debug.logLoad(this,!0)}componentWillRender(){H(this,x,"f").debug.logRender(this,!1)}componentDidRender(){H(this,j,"f")&&($(this,j,!1,"f"),this.runAutofit()),H(this,x,"f").debug.logRender(this,!0)}render(){return r(a,{onDrag:t=>t.preventDefault(),onPointerDown:t=>{t.preventDefault(),H(this,d,"m",O).call(this,t)},onWheel:t=>{H(this,d,"m",Y).call(this,t)}},r("style",null,H(this,x,"f").theme.setKupStyle(this.rootElement)),r("div",{id:u},H(this,d,"m",D).call(this)))}disconnectedCallback(){H(this,x,"f").language.unregister(this),H(this,x,"f").theme.unregister(this)}get rootElement(){return l(this)}};y=new WeakMap,k=new WeakMap,v=new WeakMap,g=new WeakMap,b=new WeakMap,x=new WeakMap,w=new WeakMap,j=new WeakMap,C=new WeakMap,d=new WeakSet,E=function(t,e,i,a){const l=[];return l.push(r("td",{class:{"family-tree__line":!0,"family-tree__line--right":!t,"family-tree__line--top":!t}},r("div",{class:"family-tree__line--placeholder"}))),l.push(r("td",{class:{"family-tree__line":!0,"family-tree__line--left":t,"family-tree__line--top":t&&!i||a&&!e}},r("div",{class:"family-tree__line--placeholder"}))),l},T=function t(e){var i;let a=null,l=null;(!this.collapsible||this.collapsible&&e.isExpanded)&&(null===(i=e.children)||void 0===i||i.forEach((t=>{t.isStaff?(l||(l=[]),l.push(t)):(a||(a=[]),a.push(t))})));const _=this.stackedLeaves&&a&&a.every((t=>!t.children||0==t.children.length)),n=a?2*a.length:1,m={"family-tree__line":!0,"family-tree__line--placeholder":!(!a&&!l),"family-tree__line--vertical":!(!a&&!l)},f={columns:[{name:"*TREECOL",title:"Fake column",visible:!1},...this.data.columns],rows:[{cells:Object.assign({"*TREECOL":e},e.cells)}]},c=e.layout||this.layout||1,u={icon:e.isExpanded?"remove":"plus",shaped:!0,slim:!0,styling:s.OUTLINED,title:`${H(this,x,"f").language.translate(h.EXPAND)}/${H(this,x,"f").language.translate(h.COLLAPSE)} (CTRL + Click)`,onClick:t=>{t.ctrlKey&&e.children&&e.children.length>0&&(e.isExpanded?this.collapseAll(e.children):this.expandAll(e.children)),e.isExpanded=!e.isExpanded,this.autofitOnExpand&&$(this,j,!0,"f"),this.refresh()},wrapperClass:"family-tree__item__expand"};let p=null;H(this,d,"m",L).call(this,c)&&(p=r("kup-box",{class:"kup-borderless kup-paddingless",customStyle:"#kup-component { background: var(--kup_familytree_item_background_color); border: 2px solid var(--kup_familytree_lines_color); box-sizing: border-box; height: var(--kup_familytree_item_height); padding: 0 var(--kup_familytree_item_h_padding); } #kup-component .box-component { background: var(--kup_familytree_item_background_color); box-sizing: border-box; height: 100%;} #kup-component .f-cell__text { color: var(--kup_familytree_item_color); }",data:f,cardData:this.cardData,layout:this.cardData?null:c,showSelection:!1}));const y=r("div",{class:"family-tree__item"},r("div",{class:"family-tree__item__wrapper"},H(this,d,"m",L).call(this,c)?p:H(this,d,"m",W).call(this,e,c),this.collapsible&&e.children&&e.children.length>0?r(o,Object.assign({},u)):void 0)),k={"--kup_familytree_staffchildren":(null==l?void 0:l.length.toString())||"0"};return r("table",{class:{"family-tree__node":!0,"family-tree__node--stacked":this.stackedLeaves&&!e.isStaff&&(!e.children||0==e.children.length)}},r("tr",null,r("td",{"data-row":e,colSpan:n},y)),r("tr",null,r("td",{colSpan:n},r("div",{class:m}))),l?[r("tr",null,r("td",{colSpan:n},r("div",{class:Object.assign(Object.assign({},m),{"family-tree__line--staff":!0}),style:k}),r("div",{class:"family-tree__node__staff",style:k},l.map((e=>[r("div",{class:"family-tree__node__staff__item"},H(this,d,"m",t).call(this,e))])))))]:null,l&&a?[r("tr",null,r("td",{colSpan:n},r("div",{class:m})))]:null,a?[r("tr",null,_?r("td",{colSpan:n},r("div",{class:m})):a.map((t=>H(this,d,"m",E).call(this,0==a.indexOf(t),a.indexOf(t)==a.length-1,1==a.length,a.length>2)))),r("tr",null,_?r("td",{colSpan:n},a.map((e=>H(this,d,"m",t).call(this,e)))):a.map((e=>r("td",{colSpan:2},H(this,d,"m",t).call(this,e)))))]:void 0)},W=function(t,e){return 2===e?H(this,d,"m",S).call(this,t):H(this,d,"m",M).call(this,t)},M=function(t){return r("div",{class:"family-tree__item__layout family-tree__item__layout--1"},r("div",{class:"family-tree__item__layout__text__title"},t.value))},S=function(t){return r("div",{class:"family-tree__item__layout family-tree__item__layout--2"},r("div",{class:"family-tree__item__layout__color"}),r("div",{class:"family-tree__item__layout__image"},r(_,{resource:t.icon,sizeX:"48px",sizeY:"48px"})),r("div",{class:"family-tree__item__layout__text"},r("div",{class:"family-tree__item__layout__text__title"},t.value),t.title?r("div",{class:"family-tree__item__layout__text__subtitle"},t.title):null))},z=function(t){return t.map((t=>H(this,d,"m",T).call(this,t)))},D=function(){return r("div",{class:"family-tree",onContextMenu:t=>{t.preventDefault()},ref:t=>$(this,C,t,"f")},this.data&&this.data.rows&&this.data.rows.length?H(this,d,"m",z).call(this,this.data.rows):r("div",null,H(this,x,"f").language.translate(h.EMPTY_DATA)))},L=function(t){return!!this.cardData||t&&t.sections&&t.sections.length>0},O=function(t){$(this,v,t.clientX,"f"),$(this,g,t.clientY,"f"),H(this,C,"f").classList.add("family-tree--dragging");const e=()=>{document.removeEventListener("pointermove",H(this,w,"f")),document.removeEventListener("pointerup",e),H(this,C,"f").classList.remove("family-tree--dragging")};document.addEventListener("pointermove",H(this,w,"f")),document.addEventListener("pointerup",e)},P=function(t,e){let i,r;if(t)for(let e=t.length-1;e>=0;e--){const a=t[e];a.tagName&&(a.classList.contains("family-tree__item__expand")&&(i=a),"TD"===a.tagName.toUpperCase())&&(r=a)}let a=null,l=null,o=null;return r&&(a=r["data-cell"],l=r["data-column"],o=r["data-row"]),{cell:a||null,column:l||null,expandButton:i||null,originalEvent:e,row:o||null,td:r||null}},R=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},A=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},F=function(t){return H(this,d,"m",P).call(this,H(this,x,"f").getEventPath(t.target,this.rootElement),t)},X=function(){H(this,b,"f").push(this.rootElement),H(this,x,"f").interact.on(this.rootElement,c.TAP,(t=>{if(H(this,k,"f"))$(this,k,!1,"f");else switch(t.button){case 0:const e={};for(const i in t)e[i]=t[i];H(this,y,"f").push(setTimeout((()=>{this.kupClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",R).call(this,e)})}),300));break;case 2:this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,t)})}})),H(this,x,"f").interact.on(this.rootElement,c.DOUBLETAP,(t=>{if(0===t.button){for(let t=0;t<H(this,y,"f").length;t++)clearTimeout(H(this,y,"f")[t]),H(this,x,"f").debug.logMessage(this,"Cleared clickHandler timeout("+H(this,y,"f")[t]+").");$(this,y,[],"f"),this.kupDblClick.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",F).call(this,t)})}})),H(this,x,"f").interact.on(this.rootElement,c.HOLD,(t=>{"pen"!==t.pointerType&&"touch"!==t.pointerType||($(this,k,!0,"f"),this.kupContextMenu.emit({comp:this,id:this.rootElement.id,details:H(this,d,"m",A).call(this,t)}))}))},Y=function(t){if(t.ctrlKey){t.preventDefault();const e=parseFloat(H(this,C,"f").style.getPropertyValue("--kup_familytree_scale"))||1,i=.05;let r=t.deltaY>0?e-i:e+i;r<i&&(r=i),H(this,C,"f").style.setProperty("--kup_familytree_scale",r.toFixed(2))}},B.style=':host{--kup_familytree_item_background_color:var(\n --kup-familytree-item-background-color,\n var(--kup-background-color)\n );--kup_familytree_item_color:var(\n --kup-familytree-item-color,\n var(--kup-text-color)\n );--kup_familytree_item_height:var(--kup-familytree-item-height, 80px);--kup_familytree_item_h_padding:var(--kup-familytree-item-h-padding, 8px);--kup_familytree_item_v_padding:var(--kup-familytree-item-v-padding, 10px);--kup_familytree_item_width:var(--kup-familytree-item-width, 280px);--kup_familytree_lines_color:var(\n --kup-familytree-lines-color,\n var(--kup-border-color)\n );display:block;overflow:hidden}.family-tree{cursor:grab;display:flex;transform:scale(var(--kup_familytree_scale, 1));transform-origin:0px 0px}.family-tree--dragging{cursor:grabbing}.family-tree__node{border-collapse:collapse;margin:auto}.family-tree__node--stacked{margin-bottom:4px}.family-tree__node__staff{align-items:center;display:flex;flex-direction:column;height:0;transform:translateX(calc((var(--kup_familytree_item_width) + var(--kup_familytree_item_h_padding) * 2) / 2)) translateY(calc(0px - (var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)))}.family-tree__node__staff__item{padding:var(--kup_familytree_item_v_padding);text-align:left}.family-tree__node__staff__item:before{border-top:2px solid var(--kup_familytree_lines_color);content:"";position:absolute;transform:translateX(calc(100% + 2px)) translateY(calc(var(--kup_familytree_item_height) / 2));width:var(--kup_familytree_item_h_padding)}.family-tree__node td{vertical-align:top;padding:0}.family-tree__line--left{border-left:2px solid var(--kup_familytree_lines_color)}.family-tree__line--placeholder{height:calc(var(--kup_familytree_item_height) / 2)}.family-tree__line--staff{height:calc(var(--kup_familytree_staffchildren) * var(--kup_familytree_item_height) + var(--kup_familytree_staffchildren) * var(--kup_familytree_item_v_padding) * 2)}.family-tree__line--right{border-right:2px solid var(--kup_familytree_lines_color)}.family-tree__line--top{border-top:2px solid var(--kup_familytree_lines_color)}.family-tree__line--vertical{background-color:var(--kup_familytree_lines_color);margin-left:auto;margin-right:auto;width:2px}.family-tree__item{display:flex}.family-tree__item__wrapper{margin:auto}.family-tree__item__wrapper kup-box{margin:0 auto;overflow:hidden;padding:0 18px;width:var(--kup_familytree_item_width);z-index:1}.family-tree__item__wrapper .f-button{--kup-button-primary-color:var(--kup-text-color);--kup-button-primary-color-rgb:var(--kup-text-color-rgb);--kup-button-primary-color-h:var(--kup-text-color-h);--kup-button-primary-color-s:var(--kup-text-color-s);--kup-button-primary-color-l:var(--kup-text-color-l);margin:0 auto;width:max-content}.family-tree__item__wrapper .f-button button{height:32px;width:32px}.family-tree__item__layout{background-color:var(--kup_familytree_item_background_color);border:1px solid var(--kup_familytree_lines_color);border-radius:8px;box-sizing:border-box;display:flex;height:var(--kup_familytree_item_height);margin:0 18px;width:var(--kup_familytree_item_width)}.family-tree__item__layout--1{justify-content:center;color:var(--kup_familytree_item_color)}.family-tree__item__layout--1>.family-tree__item__layout__text__title{margin-top:auto;margin-bottom:auto}.family-tree__item__layout--2{background-color:var(--kup_familytree_item_background_color);justify-content:flex-start}.family-tree__item__layout__color{background-color:var(--kup-secondary-color);border-bottom-left-radius:8px;border-top-left-radius:8px;height:100%;width:10px}.family-tree__item__layout__image{display:flex;margin:auto 10px}.family-tree__item__layout__image img{border-radius:50px;object-fit:cover}.family-tree__item__layout__text{display:flex;flex-direction:column;justify-content:center}.family-tree__item__layout__text__title{font-size:18px;margin-bottom:5px}.family-tree__item__layout__text__subtitle{font-size:14px}.family-tree__item__layout__text__title,.family-tree__item__layout__text__subtitle{max-width:calc(var(--kup_familytree_item_width) - 30%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}';export{B as kup_family_tree}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aa as e,ab as s,c as t,a7 as c,ac as a,F as i,ad as n,ae as l,af as o,ag as r,ah as u}from"./p-20458088.js";import{h as p,g as d}from"./p-4067c71b.js";import{F as k}from"./p-7a876328.js";import{F as b}from"./p-6a7df3d2.js";import{F as h}from"./p-34e4a985.js";import{F as f,a as m}from"./p-ea56edbe.js";import{F as g}from"./p-4e696daf.js";var v,w,y;!function(e){e.customStyle="Custom style of the component.",e.data="The data of the list.",e.displayMode="Selects how the items must display their label and how they can be filtered for.",e.filter="Keeps string for filtering elements when filter mode is active",e.hideText="Hides rows' text, ideally to display a list of icons only.",e.isMenu="Defines whether the list is a menu or not.",e.keyboardNavigation="When true, enables items' navigation through arrow keys.",e.menuVisible="Sets the status of the menu, when false it's hidden otherwise it's visible.",e.roleType="Defines the type of selection. Values accepted: listbox, radiogroup or group.",e.selectable="Defines whether items are selectable or not.",e.showIcons="Displays the icons associated to each row when set to true.",e.twoLine="The list elements descriptions will be arranged in two lines."}(v||(v={})),function(e){e.LISTBOX="listbox",e.RADIOGROUP="radiogroup",e.GROUP="group"}(w||(w={})),function(e){e.CODE="code",e.DESCRIPTION="description",e.DESCRIPTION_AND_CODE="both"}(y||(y={}));const j=e=>p("div",Object.assign({class:`f-switch ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`},e.dataSet,{id:e.id,title:e.title}),p("div",{class:"form-field "+(e.leadingLabel?"form-field--align-end":"")},p("div",{class:`switch ${e.checked?"switch--checked":""} ${e.disabled?"switch--disabled":""}`},p("div",{class:"switch__track"}),p("div",{class:"switch__thumb-underlay"},p("div",{class:"switch__thumb"},p("input",{type:"checkbox",class:"switch__native-control",role:"switch",checked:e.checked,disabled:e.disabled,value:e.checked?"on":"off",onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus})))),p("label",{onClick:e.onChange},e.label))),$=e=>{e.centeredLabel||0==!e.centeredLabel||(e.centeredLabel=!0);let s,t=`f-progress-bar ${e.danger?"kup-danger":""} ${e.animated?"kup-animated":""} ${e.padded?"kup-padded":""} ${e.info?"kup-info":""} ${e.slim?"kup-slim":""} ${e.striped?"kup-striped":""} ${e.secondary?"kup-secondary":""} ${e.slim?"kup-slim":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`,c="pie";t+=e.isRadial?" pie-wrapper is-radial":" progress-bar";const a={width:`${e.value}%`};e.centeredLabel?e.value>49&&(t+=" text-color-on-primary"):(s=a,e.value>2&&(t+=" text-color-on-primary"));let i=null;return e.icon?i=function(e){if(e.icon){if(e.icon.indexOf(".")>-1||e.icon.indexOf("/")>-1||e.icon.indexOf("\\")>-1)return p("span",{class:"label kup-icon is-image"},p("img",{src:e.icon}));{let s=`url('${d(`./assets/svg/${e.icon}.svg`)}') no-repeat center`;return p("span",{style:{mask:s,webkitMask:s},class:"label kup-icon"})}}}(e):e.hideLabel||(i=e.isRadial?e.label?p("span",{class:"label"},e.label):p("span",{class:"label"},e.value,p("span",{class:"smaller"},"%")):e.label?e.label:e.value+"%"),e.value>0&&(c+=" has-value",c+=e.value>50?" is-more-than-half":" is-less-than-half"),e.isRadial?p("div",{class:t},i,p("div",{class:c},p("div",{style:undefined,class:"left-side half-circle"}),p("div",{class:"right-side half-circle"})),p("div",{class:"shadow"})):p("div",{class:t},p("div",{class:"progress-bar-percentage",style:a},p("span",{style:s},i)))},x=e=>{var s;const t=!!e.columns,c=[];for(let t=0;t<(null===(s=e.data)||void 0===s?void 0:s.length);t++){const s=e.data[t];c.push(p("div",{class:"form-field "+(e.leadingLabel?" form-field--align-end":"")},p("div",{class:{radio:!0,"radio--checked":!!s.checked,"radio--disabled":!!e.disabled}},p("input",{class:"radio__native-control",type:"radio",name:"radio-element",value:s.value,checked:s.checked,disabled:e.disabled,onBlur:e.onBlur,onChange:e.onChange?e.onChange.bind(e.onChange,t):null,onFocus:e.onFocus}),p("div",{class:"radio__background"},p("div",{class:"radio__outer-circle"}),p("div",{class:"radio__inner-circle"}))),p("label",{htmlFor:"radio-element",onClick:e.onChange?e.onChange.bind(e.onChange,t):null},s.label?s.label:"")))}return p("div",{class:`f-radio radio-wrapper ${t?"radio-wrapper-grid":""} ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`,style:{"--kup_radio_columns":t?`repeat(${e.columns}, 1fr)`:""}},c)},O=e=>(e.maxValue||(e.maxValue=5),p("div",{class:`f-rating ${e.disabled?"disabled":""} ${e.danger?"kup-danger":""} ${e.info?"kup-info":""} ${e.secondary?"kup-secondary":""} ${e.success?"kup-success":""} ${e.warning?"kup-warning":""} ${e.wrapperClass?e.wrapperClass:""}`},function(e){const s=[];for(let t=1;t<=e.maxValue;t++)s.push(p("span",{class:"rating",onClick:e.onClick?e.onClick.bind(e.onClick,t):null},t<=e.value?"★":"☆"));return s}(e))),_=document.documentElement,C=(n,o)=>{const d=n.cell,v=n.column,w=n.row,C=n.shape?n.shape:d.shape?d.shape:v.shape?v.shape:null,D=!_.ketchup.objects.isEmptyKupObj(d.obj),K=!(!d.isEditable&&!v.isEditable||!n.editable),M=n.previousValue!==d.value?d.value:"",V=_.ketchup.data.cell.getType(d,C),H=Object.assign({},d.data);let T=d.cssClass?d.cssClass:v.cssClass?v.cssClass:"";const X={"f-cell":!0,[l.OBJ]:!!D,[V+"-cell"]:!0,[n.wrapperClass]:!!n.wrapperClass,[n.density]:!(!n.density||V===c.BAR),[T]:!!T};let W=M;K&&e.includes(V)?W=function(e,s,t,a,n){switch(e){case c.AUTOCOMPLETE:return p("kup-autocomplete",Object.assign({key:a.name+n.row.id,initialValue:t.value},t.data,{class:z(n)?"kup-full-width":"","onkup-autocomplete-change":s=>I(s,n,e,u.UPDATE),"onkup-autocomplete-input":s=>I(s,n,e,u.INPUT),"onkup-autocomplete-iconclick":s=>I(s,n,e,u.ICON_CLICK)}));case c.CHECKBOX:return F(n)&&(s[l.C_CENTERED]=!0),t.shape===i.INPUT_CHECKBOX?p("input",{checked:"on"===t.value||"1"===t.value,class:"input-checkbox",onChange:s=>I(s,n,e,u.UPDATE),type:"checkbox"}):p(k,Object.assign({},t.data,{onChange:s=>I(s,n,e,u.UPDATE)}));case c.CHIP:return p("kup-chip",Object.assign({},t.data,{type:f.INPUT,enableInput:!0,"onKup-chip-change":s=>I(s,n,e,u.UPDATE)}),p("kup-text-field",Object.assign({fullWidth:!0,slot:"field"},t.slotData)));case c.COLOR_PICKER:return p("kup-color-picker",Object.assign({key:a.name+n.row.id,initialValue:t.value},t.data,{class:z(n)?"kup-full-width":"",disabled:!1,"onkup-colorpicker-change":s=>I(s,n,e,u.UPDATE)}));case c.COMBOBOX:return p("kup-combobox",Object.assign({key:a.name+n.row.id,initialValue:t.value},t.data,{class:z(n)?"kup-full-width":"","onkup-combobox-change":s=>I(s,n,e,u.UPDATE),"onkup-combobox-input":s=>I(s,n,e,u.INPUT),"onkup-combobox-iconclick":s=>I(s,n,e,u.ICON_CLICK)}));case c.DATE:return p("kup-date-picker",Object.assign({key:a.name+n.row.id,initialValue:t.value},t.data,{class:z(n)?"kup-full-width":"","onkup-datepicker-change":s=>I(s,n,e,u.UPDATE),"onkup-datepicker-input":s=>I(s,n,e,u.INPUT)}));case c.MULTI_AUTOCOMPLETE:return p("kup-chip",Object.assign({displayId:!0},t.data,{type:f.INPUT,enableInput:!0,"onKup-chip-change":s=>I(s,n,e,u.UPDATE)}),p("kup-autocomplete",Object.assign({class:"kup-full-width",slot:"field",displayMode:y.DESCRIPTION_AND_CODE,selectMode:y.DESCRIPTION_AND_CODE,"onkup-autocomplete-input":s=>I(s,n,e,u.INPUT),"onkup-autocomplete-iconclick":s=>I(s,n,e,u.ICON_CLICK),showDropDownIcon:!1},t.slotData)));case c.MULTI_COMBOBOX:return p("kup-chip",Object.assign({displayId:!0},t.data,{type:f.INPUT,enableInput:!0,"onKup-chip-change":s=>I(s,n,e,u.UPDATE)}),p("kup-combobox",Object.assign({class:"kup-full-width",slot:"field",displayMode:y.DESCRIPTION_AND_CODE,selectMode:y.DESCRIPTION_AND_CODE,"onkup-combobox-input":s=>I(s,n,e,u.INPUT),"onkup-combobox-iconclick":s=>I(s,n,e,u.ICON_CLICK)},t.slotData)));case c.RATING:return p("kup-rating",Object.assign({key:a.name+n.row.id},t.data,{disabled:!1,"onkup-rating-click":s=>I(s,n,e,u.UPDATE)}));case c.SWITCH:return p(j,Object.assign({},t.data,{disabled:!1,onChange:s=>I(s,n,e,u.UPDATE)}));case c.TIME:return p("kup-time-picker",Object.assign({key:a.name+n.row.id,initialValue:t.value},t.data,{class:z(n)?"kup-full-width":"","onkup-timepicker-change":s=>I(s,n,e,u.UPDATE),"onkup-timepicker-input":s=>I(s,n,e,u.INPUT)}));case c.NUMBER:s[l.C_RIGHT_ALIGNED]=!0;case c.LINK:case c.STRING:const o=s=>I(s,n,e,u.UPDATE),r=s=>I(s,n,e,u.INPUT),d=e===c.NUMBER?"number":null,h=e===c.NUMBER&&t.value?_.ketchup.math.numberifySafe(t.value).toString():t.value;return t.shape===i.INPUT_FIELD?p("input",{class:"input-field",onChange:o,onInput:r,type:d,value:h}):p(b,Object.assign({inputType:d,fullWidth:!!z(n)},t.data,{icon:t.data&&t.data.icon?t.data.icon:t.icon?t.icon:a.icon?a.icon:null,value:h,onChange:o,onInput:r,onIconClick:s=>I(s,n,e,u.ICON_CLICK)}))}}(V,X,d,v,n):d.data&&s.includes(V)?(n.setSizes&&function(e,s,t){switch(e){case c.BAR:s.sizeY||(s.sizeY="26px");break;case c.BUTTON:let e="";s.label&&(e="36px"),t.style?t.style.height||(t.style.minHeight=e):t.style={minHeight:e};break;case c.CHART:s.sizeX||(s.sizeX="100%"),s.sizeY||(s.sizeY="100%");break;case c.CHIP:case c.RADIO:t.style?t.style.height||(t.style.minHeight="40px"):t.style={minHeight:"40px"}}}(V,H,d),W=n.renderKup?function(e,s,t,a,i,n,o){switch(e){case c.BAR:return t.data?p("div",{style:{height:t.sizeY,width:"100%"}},p(h,Object.assign({},t))):p("kup-image",Object.assign({key:n.name+o.row.id,sizeX:"250px"},t));case c.BUTTON:return F(o)&&(s[l.C_CENTERED]=!0),p(g,Object.assign({},t,{onClick:s=>I(s,o,e,u.CLICK)}));case c.BUTTON_LIST:return F(o)&&(s[l.C_CENTERED]=!0),t["data-storage"]={cell:a,row:i,column:n},p("kup-button-list",Object.assign({key:n.name+o.row.id},t));case c.CHART:return F(o)&&(s[l.C_CENTERED]=!0),p("kup-chart",Object.assign({key:n.name+o.row.id},t));case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:case c.CHIP:return p(m,Object.assign({},t));case c.COLOR_PICKER:return p("kup-color-picker",Object.assign({key:n.name+o.row.id},t,{class:z(o)?"kup-full-width":"",disabled:!0}));case c.GAUGE:return p("kup-gauge",Object.assign({key:n.name+o.row.id,value:_.ketchup.math.numberifySafe(a.value),"width-component":"280px"},t));case c.KNOB:case c.PROGRESS_BAR:return t.customStyle?p("kup-progress-bar",Object.assign({key:n.name+o.row.id},t)):p($,Object.assign({},t));case c.RADIO:return F(o)&&(s[l.C_CENTERED]=!0),t.disabled=i.readOnly,p(x,Object.assign({},t));case c.RATING:return p(O,Object.assign({},t,{disabled:!0}))}}(V,X,H,d,w,v,n):p("span",{class:"cell-"+V+" placeholder"})):(n.setSizes&&function(e,s,t,i){switch(e){case c.CHECKBOX:case c.ICON:s.sizeX||(s.sizeX="18px"),s.sizeY||(s.sizeY="18px"),t.style?t.style.height||(t.style.minHeight=s.sizeY):t.style={minHeight:s.sizeY};break;case c.IMAGE:i.component.rootElement.tagName===a.BOX?(s.sizeY||(s.sizeY="auto"),void 0===s.fit&&(s.fit=!0)):s.sizeX||(s.sizeX="auto"),s.sizeY||(s.sizeY="64px")}}(V,H,d,n),W=function(e,s,t,a,i,n,o){switch(e){case c.AUTOCOMPLETE:case c.COMBOBOX:case c.DATE:case c.DATETIME:case c.TIME:if(t&&""!=t){const e=r(n,i);return p("div",{class:"f-cell__text"},e)}return t;case c.CHECKBOX:return F(o)&&(a[l.C_CENTERED]=!0),p(h,{resource:s.checked?"check_box":"check_box_outline_blank",sizeX:"18px",sizeY:"18px"});case c.EDITOR:return p("div",{innerHTML:i.value});case c.ICON:case c.IMAGE:return F(o)&&(a[l.C_CENTERED]=!0),s.badgeData&&(a[l.C_PADDED]=!0),p(h,Object.assign({},s));case c.LINK:return p("a",{href:t,target:"_blank"},i.value);case c.NUMBER:if(t&&""!=t){const e=_.ketchup.math.numberifySafe(i.value),s=r(n,i);return e<0&&(a[l.TEXT_DANGER]=!0),F(o)&&(a[l.C_RIGHT_ALIGNED]=!0),p("div",{class:"f-cell__text"},s)}return p("div",{class:"f-cell__text"},t);case c.SWITCH:return F(o)&&(a[l.C_CENTERED]=!0),s.disabled=!0,p(j,Object.assign({},s));default:return p("div",{class:"f-cell__text"},t)}}(V,H,W,X,d,v,n));let Y=null;!K&&(v.icon||d.icon)&&W&&(Y=p(h,Object.assign({},{color:`rgba(var(${t.TEXT}-rgb), 0.375)`,resource:d.icon?d.icon:v.icon,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:"obj-icon"})));let B=null;_.ketchup.debug.isDebug()&&D?B=d.obj.t+"; "+d.obj.p+"; "+d.obj.k+";":null!=d.title&&""!=d.title.trim()&&(B=d.title);let S=null;if(d.info){const e=Object.assign({},d.info);e.color||(e.color=`var(${t.INFO})`),e.icon||(e.icon="info"),S=p(h,Object.assign({},{color:e.color,resource:e.icon,sizeX:"1.25em",sizeY:"1.25em",title:e.message?e.message:"",wrapperClass:"cell-info"}))}return p("div",{onKeyUp:e=>I(e,n,V,u.KEYUP),class:X,"kup-get-cell-props":()=>n,ref:e=>d.element=e,style:d.style},p("div",{class:"f-cell__content",style:d.styleContent,title:B},o&&o.length>0?o:[n.indents,S,Y,W]))};function I(e,s,t,a){const i=s.cell,n=s.column,l=s.component,o=s.row;let p=function(e,s){const t=!("INPUT"!==e.target.tagName);let a=t?e.target.value:e.detail.value;return s===c.CHECKBOX&&t&&(a=e.target.checked?"off":"on"),s===c.NUMBER&&t&&(a=_.ketchup.math.formattedStringToNumberString(a,"")),a}(e,t);if(a===u.UPDATE){switch(t){case c.AUTOCOMPLETE:case c.COMBOBOX:case c.DATE:case c.TIME:i.data&&(i.data.initialValue=p);break;case c.CHECKBOX:case c.SWITCH:p="on"===p?"0":"1",i.data&&(i.data.checked="0"!==p);break;case c.CHIP:case c.MULTI_AUTOCOMPLETE:case c.MULTI_COMBOBOX:p=e.detail.stringifiedValues,i.data&&(i.data.data=e.detail.comp.data)}i.obj&&(i.obj.k=p.toString()),i.value=p.toString(),i.displayedValue=null,i.displayedValue=r(n,i)}if(l&&l.rootElement){const s=new CustomEvent(a,{bubbles:!0,cancelable:!0,composed:!0,detail:{comp:l,id:l.rootElement.id,cell:i,column:n,event:e,row:o,type:t}});if(l.rootElement.dispatchEvent(s),a===u.UPDATE)try{l.refresh()}catch(e){}}}function F(e){var s;return o.includes(null===(s=e.component)||void 0===s?void 0:s.rootElement.tagName)}function z(e){var s;return n.includes(null===(s=e.component)||void 0===s?void 0:s.rootElement.tagName)}export{C as F,y as I,w as K,v as a,$ as b,x as c,O as d,j as e}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,f as s,h as i,H as h,d as e}from"./p-4067c71b.js";import{k as o}from"./p-20458088.js";import{c as l}from"./p-635bb4b3.js";const n=class{constructor(s){t(this,s),this.kupManager=o(),this.startTime=performance.now(),this.featuresStartTime=null,this.endTime=null,this.content=null,this.customStyle="",this.features={debug:!1,language:!1,longCycleProp:!1,longCycleVar:!1,objects:!1,objectsFunction:!1,theme:!1}}async printLifecycleTime(){const t=this.endTime-this.featuresStartTime,s=this.endTime-this.startTime;return this.content="Full lifecycle of this probe ("+this.rootElement.tagName+"#"+this.rootElement.id+") took "+s+"ms, while features took "+t+"ms.",{id:this.rootElement.id,fullTime:s,featuresTime:t}}async refresh(){s(this)}longCycleProp(){}longCycleVar(){}longCycleObjects(){for(let t=0;t<1e6;t++)this.kupManager.objects.isNumber({t:"NR",p:"",k:""})}longCycleObjectsFunction(){}componentWillLoad(){this.featuresStartTime=performance.now(),this.features.debug&&this.kupManager.debug.logLoad(this,!1),this.features.language&&this.kupManager.language.register(this),this.features.longCycleProp&&this.longCycleProp(),this.features.longCycleVar&&this.longCycleVar(),this.features.objects&&this.longCycleObjects(),this.features.objectsFunction&&this.longCycleObjectsFunction(),this.features.theme&&this.kupManager.theme.register(this)}componentDidLoad(){this.features.debug&&this.kupManager.debug.logLoad(this,!0),this.endTime=performance.now()}componentWillRender(){this.features.debug&&this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.features.debug&&this.kupManager.debug.logRender(this,!0)}render(){let t=null;return this.features.theme&&(t=this.kupManager.theme.setKupStyle(this.rootElement)),i(h,null,t?i("style",null,t):null,i("div",{id:l},this.content))}disconnectedCallback(){this.features.language&&this.kupManager.language.unregister(this),this.features.theme&&this.kupManager.theme.unregister(this)}get rootElement(){return e(this)}};export{n as kup_probe}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as a,f as o,h as t,H as n,d as i}from"./p-4067c71b.js";import{k as s,g as p,s as e}from"./p-20458088.js";import{c as b}from"./p-635bb4b3.js";const l="nav-bar";var v,u;!function(r){r.customStyle="Custom style of the component.",r.image="Image displayed by the nav bar, uses the kup-image component's props.",r.label="Text displayed by the nav bar.",r.showMenuButton="When true, the menu button will be displayed on the left of the nav bar.",r.styling="Defines the style of the nav bar"}(v||(v={})),function(r){r.SHORT="short",r.STANDARD="standard"}(u||(u={}));const c=class{constructor(o){r(this,o),this.kupNavbarReady=a(this,"kup-navbar-ready",6),this.kupNavbarResize=a(this,"kup-navbar-resize",6),this.kupManager=s(),this.customStyle="",this.styling=u.STANDARD}async getProps(r){return p(this,v,r)}async refresh(){o(this)}async resizeCallback(){window.clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.kupNavbarResize.emit({comp:this,id:this.rootElement.id})}),300)}async setProps(r){e(this,v,r)}content(){const r=Array.prototype.slice.call(this.rootElement.children,0),a=[],o=[];for(let n=0;n<r.length;n++)"left"===r[n].slot?a.push(t("slot",{name:"left"})):o.push(t("slot",{name:"right"}));return[a.length?t("section",{class:`${l}__section ${l}__section--align-start`},a):null,o.length?t("section",{class:`${l}__section ${l}__section--align-end`,role:"toolbar"},o):null]}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupNavbarReady.emit({comp:this,id:this.rootElement.id}),this.kupManager.resize.observe(this.rootElement),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){return t(n,{class:"header"},t("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),t("div",{id:b},t("header",{class:`${l} ${l}--${this.styling.toLowerCase()} `},t("div",{class:`${l}__row`},this.content()))))}disconnectedCallback(){this.kupManager.language.unregister(this),this.kupManager.resize.unobserve(this.rootElement),this.kupManager.theme.unregister(this)}get rootElement(){return i(this)}};c.style=":host{--kup_navbar_box_shadow:var(\n --kup-navbar-box-shadow,\n 0 2px 4px -1px rgba(128, 128, 128, 0.2),\n 0 4px 5px 0 rgba(128, 128, 128, 0.14),\n 0 1px 10px 0 rgba(128, 128, 128, 0.12)\n );--kup_navbar_padding:var(--kup-navbar-padding, 8px 12px);--kup_navbar_position:var(--kup-navbar-position, fixed);--kup_navbar_short_border_radius:var(\n --kup-navbar-short-border-radius,\n 0px 0px 24px\n );--kup_navbar_short_box_shadow:var(\n --kup-navbar-short-box-shadow,\n rgba(128, 128, 128, 0.2) 0px 2px 4px -1px,\n rgba(128, 128, 128, 0.14) 0px 4px 5px 0px,\n rgba(128, 128, 128, 0.12) 0px 1px 10px 0px\n );--kup_navbar_short_width:var(--kup-navbar-short-width, 9em);--kup_navbar_transition:var(--kup-navbar-transition, 250ms);--kup_navbar_width:var(--kup-navbar-width, 100%);box-sizing:border-box;font-size:var(--kup-font-size);left:0;position:var(--kup_navbar_position);top:0;transition:all var(--kup_navbar_transition);width:var(--kup_navbar_width);z-index:var(--kup-navbar-zindex)}#kup-component{width:var(--kup_navbar_width)}.nav-bar{background-color:var(--kup-navbar-background-color);box-shadow:var(--kup_navbar_box_shadow);box-sizing:border-box;color:var(--kup-navbar-color);display:flex;flex-direction:column;justify-content:space-between;width:var(--kup_navbar_width)}.nav-bar--short{border-radius:var(--kup_navbar_short_border_radius);box-shadow:var(--kup_navbar_short_box_shadow);width:var(--kup_navbar_short_width)}.nav-bar--short .nav-bar__section{padding:0 0.5em}.nav-bar--short section{overflow:hidden}.nav-bar ::slotted(*){--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}.nav-bar__row{box-sizing:border-box;display:flex;height:var(--kup-navbar-height);position:relative;width:var(--kup_navbar_width)}.nav-bar__section{align-items:center;display:inline-flex;flex:1 1 auto;min-width:0;padding:var(--kup_navbar_padding)}.nav-bar__section--align-start{flex-shrink:5;justify-content:flex-start;order:-1}.nav-bar__section--align-end{justify-content:flex-end;order:1;overflow:hidden}::slotted(*){--kup-button-primary-color:var(--kup-navbar-color);--kup-button-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-button-primary-color-h:var(--kup-navbar-color-h);--kup-button-primary-color-s:var(--kup-navbar-color-s);--kup-button-primary-color-l:var(--kup-navbar-color-l);--kup-switch-label-color:var(--kup-navbar-color);--kup-switch-primary-color:var(--kup-navbar-color);--kup-switch-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-color:var(--kup-navbar-color);--kup-textfield-color-rgb:var(--kup-navbar-color-rgb);--kup-textfield-primary-color:var(--kup-navbar-color);--kup-textfield-primary-color-rgb:var(--kup-navbar-color-rgb);--kup-tree-color:var(--kup-navbar-color);--kup-tree-color-rgb:var(--kup-navbar-color-rgb);color:var(--kup-navbar-color);fill:var(--kup-navbar-color);margin:0}";export{c as kup_nav_bar}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,f as e,h as i,H as a,d as c}from"./p-4067c71b.js";import{k as r,g as o,s as h,u as l,ag as n}from"./p-20458088.js";import{c as d}from"./p-635bb4b3.js";var u;!function(t){t.columnsNumber="Sets the number of columns.",t.customStyle="Custom style of the component.",t.data="Actual data of the component.",t.decvalueCol="Sets the decimal value column.",t.descrCol="Sets the description column.",t.fullWidth="Sets whether the component occupies all available width.",t.horizontal="Sets whether the cards are placed horizontally or not.",t.iconCol="Sets the icon column.",t.iconcolorCol="Sets the icon color column.",t.intvalueCol="Sets the integer value column.",t.isClickable="Sets whether a single card is clickable or not.",t.layoutCol="Sets the layout column.",t.measureCol="Sets the unit of measure column.",t.textcolorCol="Sets the text color column.",t.valueCol="Sets the value column.",t.valuecolorCol="Sets the value color column."}(u||(u={}));var m,p=function(t,s,e,i){if("a"===e&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof s?t!==s||!i:!s.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:s.get(t)};const k=class{constructor(e){t(this,e),this.kupCardListClickEvent=s(this,"kup-cardlist-click",7),m.set(this,r()),this.columnsNumber=1,this.customStyle="",this.data=null,this.fullWidth=!0,this.horizontal=!1,this.descrCol="",this.iconCol="",this.valueCol="",this.measureCol="",this.intvalueCol="",this.decvalueCol="",this.textcolorCol="",this.valuecolorCol="",this.iconcolorCol="",this.layoutCol="",this.isClickable=!1}async getProps(t){return o(this,u,t)}async refresh(){e(this)}async setProps(t){h(this,u,t)}componentWillLoad(){p(this,m,"f").debug.logLoad(this,!1),p(this,m,"f").theme.register(this)}componentDidLoad(){p(this,m,"f").debug.logLoad(this,!0)}componentDidRender(){p(this,m,"f").debug.logRender(this,!0)}render(){if(!this.data||!this.data.columns||!this.data.columns.length)return;const t=[];let s,e,c,r,o,h,u,k,_,b;for(let t=0;t<this.data.columns.length;t++){const i=this.data.columns[t];if(i.name)switch(i.name){case this.decvalueCol:s=i;break;case this.descrCol:e=i;break;case this.iconCol:c=i;break;case this.iconcolorCol:r=i;break;case this.intvalueCol:o=i;break;case this.layoutCol:h=i;break;case this.measureCol:u=i;break;case this.textcolorCol:k=i;break;case this.valueCol:_=i;break;case this.valuecolorCol:b=i}}for(let a=0;a<this.data.rows.length;a++){const d=this.data.rows[a],f={color:[],image:[],text:[]},g=h&&d.cells[h.name].value?parseInt(d.cells[h.name].value):1,w=i("kup-card",{class:this.isClickable?"is-clickable":"",customStyle:"#kup-component, .scalable-card { min-height: var(--kup_cardlist_cardsminheight) }",data:f,layoutFamily:l.SCALABLE,layoutNumber:g,key:a,"onKup-card-click":()=>{this.isClickable&&this.kupCardListClickEvent.emit({comp:this,id:this.rootElement.id,index:a,row:d})},slot:a.toString()}),x=(t,s,e)=>{if(t){const i=d.cells[t.name];if(i){const a=i.value;switch(s){case"color":f[s][e]=p(this,m,"f").theme.colorCheck(a).hexColor;break;case"image":f[s][e]={resource:a};break;default:f[s][e]=n(t,i)}}}};switch(g){case 1:x(k,"color",0),x(b,"color",1),x(e,"text",0),x(_,"text",1);break;case 2:x(r,"color",0),x(b,"color",1),x(c,"image",0),x(o,"text",0),x(s,"text",1),x(u,"text",2);break;case 3:x(b,"color",0),x(k,"color",1),x(_,"text",0),x(e,"text",1);break;case 4:x(r,"color",0),x(b,"color",1),x(k,"color",2),x(c,"image",0),x(o,"text",0),x(s,"text",1),x(u,"text",2),x(e,"text",3);break;case 5:x(r,"color",0),x(k,"color",1),x(b,"color",2),x(c,"image",0),x(e,"text",0),x(_,"text",1);break;case 6:case 7:case 8:x(r,"color",0),x(b,"color",1),x(k,"color",2),x(c,"image",0),x(_,"text",0),x(e,"text",1)}t.push(w)}return i(a,null,i("style",null,p(this,m,"f").theme.setKupStyle(this.rootElement)),i("div",{id:d},i("kup-grid",{class:(this.fullWidth?"kup-full-width":"")+" scalable-cards",columns:this.columnsNumber,singleLine:this.horizontal},t)))}disconnectedCallback(){p(this,m,"f").theme.unregister(this)}get rootElement(){return c(this)}};m=new WeakMap,k.style=":host{--kup_cardlist_cards_max_height:var(--kup-cardlist-cards-max-height, unset);--kup_cardlist_cards_min_height:var(--kup-cardlist-cards-min-height, unset);--kup_cardlist_cards_max_width:var(--kup-cardlist-cards-max-width, unset);--kup_cardlist_cards_min_width:var(--kup-cardlist-cards-min-width, unset);display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}kup-card{max-height:var(--kup_cardlist_cards_max_height);min-height:var(--kup_cardlist_cards_min_height);max-width:var(--kup_cardlist_cards_max_width);min-width:var(--kup_cardlist_cards_min_width)}kup-card.is-clickable{cursor:pointer}kup-grid{--kup-grid-padding:0}";export{k as kup_card_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,f as s,h as e,H as o,d as h}from"./p-4067c71b.js";import{k as n,g as r,s as a,d}from"./p-20458088.js";var c;!function(t){t.buttonData="Props of the button (when isButton is set to true).",t.isButton="The component will be rendered as a button, which opens the link associated to the iframe in another tab when clicked.",t.src="The address the iframe should be referencing to."}(c||(c={}));const p=class{constructor(s){t(this,s),this.kupIframeError=i(this,"kup-iframe-error",6),this.kupIframeLoad=i(this,"kup-iframe-load",6),this.kupManager=n(),this.buttonData={},this.isButton=!1,this.src=void 0}onKupIframeError(){this.kupIframeError.emit({comp:this,id:this.rootElement.id})}onKupIframeLoad(){this.kupIframeLoad.emit({comp:this,id:this.rootElement.id})}async getProps(t){return r(this,c,t)}async refresh(){s(this)}async setProps(t){a(this,c,t)}openInNew(){window.open(this.src,"_blank")}componentWillLoad(){this.kupManager.debug.logLoad(this,!1)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.kupManager.debug.logRender(this,!0)}render(){if(null!=this.src&&""!==this.src)return this.buttonData.icon||(this.buttonData.icon="open_in_new"),this.buttonData.label||(this.buttonData.label="Open in new tab"),this.isButton?e(o,{"is-button":!0},e("kup-button",Object.assign({},this.buttonData,{"onkup-button-click":()=>this.openInNew()}))):e(o,{"is-iframe":!0},e("iframe",{onError:this.onKupIframeError.bind(this),onLoad:this.onKupIframeLoad.bind(this),src:this.src}));this.kupManager.debug.logMessage(this,"Resource undefined, not rendering!",d.WARNING)}get rootElement(){return h(this)}};p.style="iframe{box-sizing:border-box;height:100%;width:100%}:host([is-iframe]){box-sizing:border-box;display:block;height:100%;width:100%}";export{p as kup_iframe}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,f as s,h as i,H as e,d as h}from"./p-4067c71b.js";import{k as o,e as n,g as r,s as a,W as l,n as c}from"./p-20458088.js";import{c as d}from"./p-635bb4b3.js";import{F as p}from"./p-9d3d8690.js";import"./p-7a876328.js";import"./p-6a7df3d2.js";import"./p-34e4a985.js";import"./p-ea56edbe.js";import"./p-4e696daf.js";import"./p-b00f3575.js";var m;!function(t){t.customStyle="Custom style of the component.",t.data="The data of the cell.",t.density="The density of the cell, defaults at 'dense' and can be also set to 'wide' or 'medium'.",t.dragEnabled="When set to true, the component is draggable."}(m||(m={}));const u=class{constructor(s){t(this,s),this.kupManager=o(),this.customStyle="",this.data=null,this.density=n.NONE,this.dragEnabled=!1}async addCssClasses(t){if(this.data.cssClass||(this.data.cssClass=""),t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)<0&&(this.data.cssClass+=` ${i}`)}this.refresh()}async getProps(t){return r(this,m,t)}async refresh(){s(this)}async removeCssClasses(t){if(this.data.cssClass){if(t)for(let s=0;s<t.length;s++){const i=t[s];this.data.cssClass.indexOf(i)>0&&(this.data.cssClass=this.data.cssClass.replace(new RegExp(i,"g"),""))}this.refresh()}}async setProps(t){a(this,m,t)}didRenderInteractables(){if(this.dragEnabled){const t=()=>({cell:this.data,column:this.generateColumn(),id:this.rootElement.id,multiple:!1,row:this.generateRow()});this.kupManager.interact.draggable(this.rootElement.shadowRoot.querySelector("#"+d),{cursorChecker:()=>null},{callback:t},l.BADGE)}}generateColumn(){return{name:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:"KUPCELL",title:this.data&&this.data.obj&&this.data.obj.t?this.data.obj.t+";"+this.data.obj.p:this.kupManager.language.translate(c.EMPTY_OBJECT)}}generateRow(){const t=this.generateColumn(),s={cells:{}};return s.cells[t.name]=this.data,s}componentWillLoad(){this.kupManager.dates.register(this),this.kupManager.debug.logLoad(this,!1),this.kupManager.language.register(this),this.kupManager.theme.register(this)}componentDidLoad(){this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){this.didRenderInteractables(),this.kupManager.debug.logRender(this,!0)}render(){const t={cell:this.data,column:this.generateColumn(),component:this,density:this.density,editable:this.data.isEditable,renderKup:!0,row:this.generateRow()};return i(e,null,i("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),i("div",{id:d},i(p,Object.assign({},t))))}disconnectedCallback(){this.kupManager.dates.unregister(this),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this)}get rootElement(){return h(this)}};u.style=":host{display:block;height:100%;width:100%}#kup-component{height:100%;width:100%}";export{u as kup_cell}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,f as i,h as e,H as s,d as r}from"./p-4067c71b.js";import{k as n,B as a,g as l,s as h,w as c,n as p,a as b,d,R as u,W as x,X as f,Y as g,J as w,a3 as m}from"./p-20458088.js";import{f as k,p as v,s as y,d as _,r as j,h as C,b as P}from"./p-2849af6f.js";import{F as R}from"./p-34e4a985.js";import{a as A}from"./p-ea56edbe.js";import{c as z}from"./p-635bb4b3.js";import{F as E}from"./p-9d3d8690.js";import{F as I}from"./p-cd2af1a6.js";import"./p-4e696daf.js";import"./p-b00f3575.js";import"./p-7a876328.js";import"./p-6a7df3d2.js";import"./p-d4a879fc.js";var M;!function(t){t.cardData="Data of the card linked to the box when the latter's layout must be a premade template.",t.columns="Number of columns.",t.customStyle="Custom style of the component.",t.data="Actual data of the box.",t.dragEnabled="Enable dragging.",t.dropEnabled="Enable dropping.",t.dropOnSection="Drop can be done in section.",t.enableRowActions="If enabled, a button to load / display the row actions will be displayed on the right of every box.",t.globalFilter="When set to true it activates the global filter.",t.globalFilterValue="The value of the global filter.",t.kanban="Displays the boxlist as a Kanban.",t.layout="How the field will be displayed. If not present, a default one will be created.",t.lazyLoadRows="When set to true, extra rows will be automatically loaded once the last row enters the viewport.",t.multiSelection="Enable multi selection.",t.pageSelected="Current page number.",t.pagination="Enables pagination.",t.rowsPerPage="Number of current rows per page.",t.scrollOnHover="Activates the scroll on hover function.",t.selectBox="Automatically selects the box at the specified index.",t.selectedRowsState="Multiple selection.",t.showSelection="If enabled, highlights the selected box/boxes.",t.sortBy="If sorting is enabled, specifies which column to sort.",t.sortEnabled="Enable sorting.",t.stateId="",t.store="",t.swipeDisabled="Disable swipe."}(M||(M={}));class O{constructor(){this.globalFilterValue="",this.sortBy="",this.selectedRowsState="",this.pageSelected=1,this.rowsPerPage=0,this.load=!1}toDebugString(){return"box state"}}var S,B,D,W,$,L,T=function(t,o,i,e){if("a"===i&&!e)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof o?t!==o||!e:!o.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?e:"a"===i?e.call(t):e?e.value:o.get(t)},F=function(t,o,i,e,s){if("m"===e)throw new TypeError("Private method is not writable");if("a"===e&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof o?t!==o||!s:!o.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===e?s.call(t,i):s?s.value=i:o.set(t,i),i};const H=class{constructor(i){t(this,i),this.kupBoxClick=o(this,"kup-box-click",6),this.kupBoxSelected=o(this,"kup-box-selected",6),this.kupAutoBoxSelect=o(this,"kup-box-autoselect",6),this.kupRowActionMenuClick=o(this,"kup-box-rowactionmenuclick",6),this.kupRowActionClick=o(this,"kup-box-rowactionclick",6),this.kupDidLoad=o(this,"kup-box-didload",6),this.kupDidUnload=o(this,"kup-box-didunload",6),this.kupBoxContextMenu=o(this,"kup-box-contextmenu",6),S.add(this),this.state=new O,this.kupManager=n(),this.visibleColumns=[],this.rows=[],this.filteredRows=[],this.sectionRef=null,this.rowsRefs=[],this.hold=!1,this.interactableDrag=[],this.interactableDrop=[],this.interactableTouch=[],B.set(this,void 0),D.set(this,[]),W.set(this,0),this.collapsedSection={},this.selectedRows=[],this.rowActionMenuOpened=void 0,this.currentPage=1,this.currentRowsPerPage=10,this.cardData=null,this.columns=1,this.customStyle="",this.data=null,this.dragEnabled=!1,this.dropEnabled=!1,this.dropOnSection=!1,this.editableData=!1,this.enableRowActions=!1,this.globalFilter=!1,this.globalFilterValue="",this.kanban=null,this.layout=void 0,this.lazyLoadRows=!1,this.multiSelection=!1,this.pageSelected=1,this.pagination=!1,this.rowsPerPage=void 0,this.scrollOnHover=!1,this.selectBox=void 0,this.selectedRowsState=void 0,this.showSelection=!0,this.sortBy=void 0,this.sortEnabled=!1,this.stateId="",this.store=void 0,this.swipeDisabled=!1}initWithPersistedState(){if(this.store&&this.stateId){const t=this.store.getState(this.stateId);null!=t&&(this.kupManager.debug.logMessage(this,"Initialize with state for stateId "+this.stateId+": "+t),this.sortBy=this.state.sortBy,this.globalFilterValue=this.state.globalFilterValue,this.selectedRowsState=this.state.selectedRowsState,this.pageSelected=this.state.pageSelected,this.rowsPerPage=this.state.rowsPerPage)}}persistState(){if(this.store&&this.stateId){let t=!1;this.kupManager.objects.deepEqual(this.state.sortBy,this.sortBy)||(this.state.sortBy=this.sortBy,t=!0),this.kupManager.objects.deepEqual(this.state.globalFilterValue,this.globalFilterValue)||(this.state.globalFilterValue=this.globalFilterValue,t=!0),this.kupManager.objects.deepEqual(this.state.pageSelected,this.currentPage)||(this.state.pageSelected=this.currentPage,t=!0),this.kupManager.objects.deepEqual(this.state.rowsPerPage,this.currentRowsPerPage)||(this.state.rowsPerPage=this.currentRowsPerPage,t=!0);const o=this.selectedRows.reduce(((t,o,i)=>t+(i>0?";":"")+o.id),"");if(this.kupManager.objects.deepEqual(this.state.selectedRowsState,o)||(this.state.selectedRowsState=o,t=!0),!this.state.load)return void(this.state.load=!0);t&&(this.kupManager.debug.logMessage(this,"Persisting state for stateId "+this.stateId+": "+this.state),this.store.persistState(this.stateId,this.state))}}rowsPerPageHandler(t){this.currentRowsPerPage=t}recalculateRows(){this.initRows()}onDataChanged(){a(this.getRows()),this.initVisibleColumns(),this.initRows(),this.checkLayout()}onLayoutChanged(){this.checkLayout()}onSelectBoxChanged(){this.handleAutomaticBoxSelection()}async getProps(t){return l(this,M,t)}async loadRowActions(t,o){t.actions=o,this.rowActionMenuOpened=t}async refresh(){i(this)}async setProps(t){h(this,M,t)}getColumns(){return this.data&&this.data.columns?this.data.columns:[{title:"",name:"",size:void 0}]}initVisibleColumns(){this.visibleColumns=this.getColumns().filter((t=>!t.hasOwnProperty("visible")||t.visible))}getRows(){return this.data&&this.data.rows?this.data.rows:[]}initRows(){this.filteredRows=this.getRows(),this.globalFilter&&this.globalFilterValue&&(this.filteredRows=k(this.filteredRows,null,this.globalFilterValue,this.visibleColumns)),this.rows=this.sortRows(this.filteredRows),this.pagination&&(this.rows=v(this.rows,this.currentPage,this.currentRowsPerPage,!1))}sortRows(t){let o=t;return this.sortBy&&(o=y(o,this.toSortObjectList())),o}toSortObjectList(){return this.sortBy.split("|").map((t=>{const o=t.split(",");return{column:o[0],sortMode:o.length>1?m[o[1]]:m.A}}))}checkScrollOnHover(){this.kupManager.scrollOnHover.isRegistered(this.boxContainer)?this.scrollOnHover||this.kupManager.scrollOnHover.unregister(this.boxContainer):this.scrollOnHover&&this.kupManager.scrollOnHover.register(this.boxContainer)}checkLayout(){if(this.layout)return void(this.boxLayout=this.layout);const t={horizontal:!1,sections:[]},o=this.visibleColumns;let i=o.length,e=[],s=0;for(;i-- >0;)e.push({column:o[s++].name});t.content=e,this.boxLayout={sections:[t]}}onSortChange(t){let o=c(this.visibleColumns,t.detail.value);this.sortBy=o.name}onGlobalFilterChange({detail:t}){let o="";t&&t.value&&(o=t.value),this.globalFilterValue=o}isSectionExpanded(t,o){return!(!t.id||!o.id)&&this.collapsedSection[o.id]&&this.collapsedSection[o.id][t.id]}handleAutomaticBoxSelection(){if(this.selectBox&&this.selectBox>0&&this.selectBox<=this.data.rows.length){this.selectedRows=[];for(let t of this.data.rows)if(t.id===(this.selectBox-1).toString()){this.selectedRows.push(t);break}this.kupAutoBoxSelect.emit({comp:this,id:this.rootElement.id,row:this.selectedRows[0]})}}getEventDetails(t,o){let i=null,e=null,s=null,r=null;if(t&&(i=t.closest(".box-object")||t.querySelector(".box-object")||t.closest(".f-cell")),i)if(i.classList.contains("f-cell")){const t=i["kup-get-cell-props"]();e=t.cell,r=t.column,s=t.row}else e=i["data-cell"],s=i["data-row"],r=c(this.visibleColumns,i.dataset.column);return{boxObject:i||null,column:r||null,cell:e||null,originalEvent:o,row:s||null}}contextMenuHandler(t){return this.getEventDetails(t.target,t)}checkIfElementIsActionMenuIcon(t){return!(!t.tagName||!t.parentElement)&&"svg"===t.tagName&&t.parentElement.classList.contains("row-actions-toggler")}onBoxClick({target:t},o){if(!(t instanceof HTMLElement))return;let i=t,e=i.classList;for(;!e.contains("box-object")&&!e.contains("box-section")&&!e.contains("box")&&(i=i.parentElement,null!==i);)e=i.classList;let s=null;e.contains("box-object")&&(s=i.dataset.column),this.kupBoxClick.emit({comp:this,id:this.rootElement.id,row:o,column:s}),this.multiSelection?this.onSelectionCheckChange(o):this.selectedRows=[o]}onSelectionCheckChange(t){var o=-1;for(let i=0;i<this.selectedRows.length;i++)if(this.selectedRows[i].id===t.id){o=i;break}o>=0?(this.selectedRows.splice(o,1),this.selectedRows=[...this.selectedRows]):this.selectedRows=[...this.selectedRows,t],this.kupBoxSelected.emit({comp:this,id:this.rootElement.id,rows:this.selectedRows})}toggleSectionExpand(t,o){if(o.id)if(t.id){if(this.collapsedSection[o.id]){const i=this.collapsedSection[o.id];i[t.id]=!i[t.id]||!i[t.id]}else this.collapsedSection[o.id]={},this.collapsedSection[o.id][t.id]=!0;this.collapsedSection=Object.assign({},this.collapsedSection)}else console.error("cannot expand / collapse a section of a row without ad id");else console.error("cannot expand / collapse a section withoun an ID")}onRowAction(t){t&&(t!==this.rowActionMenuOpened?t.actions?this.rowActionMenuOpened=t:this.kupRowActionMenuClick.emit({comp:this,id:this.rootElement.id,row:t}):this.rowActionMenuOpened=null)}onRowActionClick(t,o,i){this.kupRowActionClick.emit({comp:this,id:this.rootElement.id,row:t,action:o,index:i})}clickFunction(t){try{const o=t.composedPath();for(let t of o)if(this.checkIfElementIsActionMenuIcon(t))return}catch(o){if(this.checkIfElementIsActionMenuIcon(t.target))return}this.rowActionMenuOpened=null}handlePageChange(t){const o=_(t,this.filteredRows.length,this.currentRowsPerPage);o&&(this.currentPage=o)}handleRowsPerPageChange(t){const o=j(t,this.filteredRows.length);o&&(this.currentRowsPerPage=o,this.adjustPaginator())}adjustPaginator(){const t=Math.ceil(this.rows.length/this.currentRowsPerPage);this.currentPage>t&&(this.currentPage=1)}renderSectionAsCard(t){let o=!1;const i={button:[],cell:[],columns:[],image:[],progressbar:[],text:[]};for(let o=0;o<this.data.columns.length;o++){const e=this.data.columns[o];!1!==e.visible&&(i.cell.push(t.cells[e.name]),i.columns.push(e))}for(const o in t.cells)if(t.cells.hasOwnProperty(o)){const e=t.cells[o];if(void 0!==e.cardID&&e.obj)switch(e.obj.p){case"BTN":do{i.button.push({})}while(i.button.length<e.cardID);i.button[e.cardID]={label:e.value};break;case"IMG":do{i.image.push({})}while(i.image.length<e.cardID);i.image[e.cardID]={resource:e.value};break;case"PGB":do{i.progressbar.push({})}while(i.progressbar.length<e.cardID);i.progressbar[e.cardID]={value:e.value};break;default:do{i.text.push("")}while(i.text.length<e.cardID);i.text[e.cardID]=e.value}}for(const e in t.cells)if(t.cells.hasOwnProperty(e)){const s=t.cells[e];if(void 0===s.cardID&&s.obj)switch(o=!1,s.obj.p){case"BTN":for(let t=0;t<i.button.length;t++)if(!Object.keys(i.button[t]).length){i.button[t]={label:s.value},o=!0;break}o||i.button.push({label:s.value});break;case"IMG":for(let t=0;t<i.image.length;t++)if(!Object.keys(i.image[t]).length){i.image[t]={resource:s.value},o=!0;break}o||i.image.push({resource:s.value});break;case"PGB":for(let t=0;t<i.progressbar.length;t++)if(!Object.keys(i.progressbar[t]).length){i.progressbar[t]={value:s.value},o=!0;break}o||i.progressbar.push({value:s.value});break;default:for(let t=0;t<i.text.length;t++)if(""===i.text[t]){i.text[t]=s.value,o=!0;break}o||i.text.push(s.value)}}return e("kup-card",Object.assign({data:i},this.cardData))}renderRow(t){const o=[...this.visibleColumns];let i=null,s=t.layout;s||(s=this.boxLayout);let r=!1;if(s){s.horizontal&&(r=!0);const e=s.sections;let n=e.length,a=0;n>0&&(i=[]);const l={horizontal:r};for(;n-- >0;)i.push(null!=this.cardData&&"object"==typeof this.cardData?this.renderSectionAsCard(t):this.renderSection(e[a++],l,t,o))}var n=!1;for(let o of this.selectedRows)o.id===t.id&&(n=!0);let a=null;this.multiSelection&&(a=e("div",{class:"box-selection"},e("kup-checkbox",{checked:n})));let l=null;if(this.enableRowActions&&!this.swipeDisabled){const o={"row-action-menu":!0,open:t===this.rowActionMenuOpened};let i=null;if(t.actions){const o=t.actions.map(((o,i)=>e("li",{tabindex:"0",onClick:()=>this.onRowActionClick(t,o,i)},e("div",{class:`icon ${o.icon}`}),e("div",{class:"text"},o.text))));i=e("ul",null,o)}l=e("div",{class:"row-actions-wrapper"},e("div",{class:"row-actions-toggler"},e("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24",onClick:()=>this.onRowAction(t)},e("path",{d:"M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z"})),e("div",{class:o},i)))}let h=null;return t.badgeData&&t.badgeData.length>0&&(h=t.badgeData.map((t=>e("kup-badge",{text:t.text,class:t.className?`centered ${t.className}`:"centered",imageData:t.imageData})))),e("div",{class:"box-wrapper",style:t.style||{},ref:t=>T(this,D,"f").push(t)},e("div",{class:{box:!0,draggable:this.dragEnabled,selected:this.showSelection&&n,column:!r},onClick:o=>this.onBoxClick(o,t),ref:t=>this.rowsRefs.push(t)},a,i,h),l)}renderSection(t,o,i,s){let r=null;if(t.sections&&t.sections.length>0){const o=t.sections;let e=o.length,n=0;for(e>0&&(r=[]);e-- >0;)r.push(this.renderSection(o[n++],t,i,s))}else if(t.content){const o=t.content;let e=o.length,n=0;for(e>0&&(r=[]);e-- >0;)r.push(this.renderBoxObject({boxObject:o[n++],row:i,visibleColumns:s},!0))}else s.length>0&&(r=this.renderBoxObject({boxObject:{column:s[0].name},row:i,visibleColumns:s}));const n=this.isSectionExpanded(i,t),a=!!t.columns,l={"box-section":!0,open:n,column:!a&&!t.horizontal,grid:a,titled:!!t.title,"last-child":!t.sections||0===t.sections.length},h=t.style||{};t.dim&&o&&(h.flex=`0 0 ${t.dim}`,h.overflow="hidden",o.horizontal?h.maxWidth=t.dim:h.maxHeight=t.dim),a&&(h["grid-template-columns"]=`repeat(${t.columns}, 1fr)`);let c=null;if(t.collapsible){l["collapse-section"]=!0;const o={content:!0};let s="";s=t.title?t.title:this.kupManager.language.translate(n?p.COLLAPSE:p.EXPAND),c=e("div",{class:l,style:h},e("div",{class:o},r),e("div",{class:"header",role:"button",onClick:o=>{o.stopPropagation(),this.toggleSectionExpand(i,t)}},e("div",{class:"header-content"},e("span",null,s),e(R,{resource:`${b.DROPDOWN}`,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:n?"toggled":""}))))}else{const o=t.title?e("h3",null,t.title):null;c=e("div",{class:l,style:h},o,r)}return c}renderBoxObject({boxObject:t,row:o,visibleColumns:i},s){const r={"box-object":!0};let n=null,a=-1;for(let o=0;o<i.length;o++)if(i[o].name===t.column){a=o;break}a>=0?(n=i[a],i.splice(a,1)):s&&(n=this.data.columns.find((o=>o.name===t.column)));const l=o.cells[t.column];let h;return l&&!this.kupManager.objects.isEmptyKupObj(l.obj)&&(r["is-obj"]=!0,this.kupManager.debug.isDebug()&&(h=l.obj.t+"; "+l.obj.p+"; "+l.obj.k+";")),e("div",{"data-cell":l,"data-row":o,"data-column":t.column,class:r,style:{},title:h},l&&n?e(E,Object.assign({},{cell:l,column:n,component:this,editable:this.editableData,renderKup:!0,row:o,setSizes:!0,shape:t.shape})):e("span",null,t.value))}kanbanMode(){if(!this.kanban.columns||0===this.kanban.columns.length)return this.kupManager.debug.logMessage(this,"No columns to group by detected.",d.ERROR),{jsx:e("div",{id:"empty-data-message",class:"box-wrapper"},e("div",{ref:t=>this.rowsRefs.push(t)}),this.kupManager.language.translate(p.EMPTY_DATA)),style:{"grid-template-columns":"repeat(1, 1fr)"}};const t=[];if(this.kanban.labels)for(let o=0;o<this.kanban.labels.length;o++)t.push({labels:this.kanban.labels[o],nodes:[]});for(let o=0;o<this.rows.length;o++){let i=[];for(let t=0;t<this.kanban.columns.length;t++)try{i.push(this.rows[o].cells[this.kanban.columns[t]].value)}catch(t){this.kupManager.debug.logMessage(this,t,d.WARNING)}const e={found:!1,index:null};for(let o=0;o<t.length;o++){let s=t[o].labels,r=!0;for(let t=0;t<s.length;t++)if(i[t]!==s[t]){r=!1;break}if(r){e.found=!0,e.index=o;break}}e.found?t[e.index].nodes.push(this.renderRow(this.rows[o])):t.push({labels:i,nodes:[this.renderRow(this.rows[o])]})}const o=[];for(let i=0;i<t.length;i++){const s=t[i].labels,r={data:[]};for(let t=0;t<s.length;t++)r.data.push({value:s[t],id:s[t]});o.push(e("div",{class:"kanban-section"},e(A,Object.assign({},r)),t[i].nodes))}return{jsx:o,style:{"grid-template-columns":this.kanban.isStacked?"repeat(1fr)":this.kanban.size?`repeat(${Object.keys(t).length}, ${this.kanban.size})`:`repeat(${Object.keys(t).length}, 1fr)`}}}didLoadInteractables(){this.interactableTouch.push(this.boxContainer),this.kupManager.interact.on(this.boxContainer,u.TAP,(t=>{this.hold?this.hold=!1:2===t.button&&this.kupBoxContextMenu.emit({comp:this,id:this.rootElement.id,details:this.contextMenuHandler(t)})})),this.kupManager.interact.on(this.boxContainer,u.HOLD,(t=>{"pen"!==t.pointerType&&"touch"!==t.pointerType||(this.hold=!0,this.kupBoxContextMenu.emit({comp:this,id:this.rootElement.id,details:this.contextMenuHandler(t)}))}))}didRenderInteractables(){if(this.dragEnabled)for(let t=0;t<this.rowsRefs.length;t++){const o=this.rowsRefs[t],i=()=>{const t=this.rootElement.shadowRoot.querySelector(".box-object:hover");return{cell:t["data-cell"],column:c(this.visibleColumns,t.dataset.column),id:this.rootElement.id,multiple:this.multiSelection,row:t["data-row"],selectedRows:this.selectedRows}};o&&!this.interactableDrag.includes(o)&&(this.interactableDrag.push(o),this.kupManager.interact.draggable(o,{allowFrom:".box-object",cursorChecker:()=>null},{callback:i},x.BADGE))}if(this.dropEnabled){const t=()=>{const t=this.getEventDetails(this.rootElement.shadowRoot.querySelector(".box:hover"));return{cell:t.cell,column:t.column,id:this.rootElement.id,row:t.row}};this.interactableDrop.includes(this.sectionRef)||(this.interactableDrop.push(this.sectionRef),this.kupManager.interact.dropzone(this.sectionRef,{accept:`[${f}]`},{dispatcher:this.rootElement,type:g.BOX}));for(let o=0;o<this.rowsRefs.length;o++){const i=this.rowsRefs[o];i&&!this.interactableDrop.includes(i)&&(this.interactableDrop.push(i),this.kupManager.interact.dropzone(i,{accept:`[${f}]`},{callback:t,dispatcher:this.rootElement,type:g.BOX}))}}}componentWillLoad(){this.kupManager.debug.logLoad(this,!1),this.rowsPerPage&&(this.currentRowsPerPage=this.rowsPerPage),this.data&&this.data.rows&&this.currentRowsPerPage>this.data.rows.length&&(this.currentRowsPerPage=this.data.rows.length),this.kupManager.language.register(this),this.kupManager.theme.register(this),this.onDataChanged(),this.adjustPaginator(),document.querySelector(".header")?F(this,W,document.querySelector(".header").clientHeight,"f"):F(this,W,0,"f"),document.querySelector(".topbar")&&F(this,W,T(this,W,"f")+document.querySelector(".topbar").clientHeight,"f"),T(this,S,"m",L).call(this)}componentDidLoad(){if(this.handleAutomaticBoxSelection(),document.addEventListener("click",this.clickFunction.bind(this)),this.currentPage=this.pageSelected,this.multiSelection&&this.selectedRowsState){this.selectedRows=[];let t=this.selectedRowsState.split(";");this.selectedRows=this.data.rows.filter((o=>t.indexOf(o.id)>=0))}this.didLoadInteractables(),this.kupDidLoad.emit({comp:this,id:this.rootElement.id}),this.kupManager.debug.logLoad(this,!0)}componentWillRender(){this.kupManager.debug.logRender(this,!1)}componentDidRender(){const t=this.rootElement.shadowRoot;if(t){const o=t.querySelectorAll(".f-text-field");for(let t=0;t<o.length;t++)I(o[t])}this.checkScrollOnHover(),this.persistState(),this.didRenderInteractables(),T(this,S,"m",$).call(this),this.kupManager.debug.logRender(this,!0)}render(){const t=!("object"!=typeof this.kanban||null===this.kanban);let o=null;if(this.sortEnabled){const t=[{value:"",id:""},...this.visibleColumns.map((t=>({value:t.title,id:t.name,selected:t.name===this.sortBy})))];let i={label:this.kupManager.language.translate(p.SORT_BY),trailingIcon:!0};o=e("div",{id:"sort-panel"},e("kup-combobox",{data:{"kup-text-field":i,"kup-list":{data:t,selectable:!0}},initialValue:this.sortBy,"onkup-combobox-itemclick":t=>this.onSortChange(t)}))}let i=null;this.globalFilter&&(i=e("div",{id:"global-filter"},e("kup-text-field",{fullWidth:!0,label:this.kupManager.language.translate(w.SEARCH),icon:b.SEARCH,initialValue:this.globalFilterValue,"onkup-textfield-input":t=>{window.clearTimeout(this.globalFilterTimeout),this.globalFilterTimeout=window.setTimeout((()=>this.onGlobalFilterChange(t)),600)}})));let r=null;!this.lazyLoadRows&&this.pagination&&(r=e(P,{id:top?"top-paginator":"bottom-paginator",currentPage:this.currentPage,max:this.filteredRows.length,mode:C.SIMPLE,perPage:this.currentRowsPerPage?this.currentRowsPerPage:this.rowsPerPage,onPageChange:t=>this.handlePageChange(t.detail.value),onRowsChange:t=>this.handleRowsPerPageChange(t.detail.value)}));let n=null,a={};if(0===this.rows.length)n=e("div",{id:"empty-data-message",class:"box-wrapper"},e("div",{class:"box",ref:t=>this.rowsRefs.push(t)},this.kupManager.language.translate(p.EMPTY_DATA))),a={"grid-template-columns":"repeat(1, 1fr)"};else if(t){const t=this.kanbanMode();n=t.jsx,a=t.style}else{a={"grid-template-columns":`repeat(${this.columns}, 1fr)`};const t=this.rows;let o=t.length,i=0;for(n=[];o-- >0;)n.push(this.renderRow(t[i++]))}return e(s,null,e("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),e("div",{id:z},e("div",{class:"box-component",ref:t=>this.sectionRef=t},o,i,r,e("div",{class:t?"is-kanban":"",id:"box-container",style:a,onContextMenu:t=>{t.preventDefault()},ref:t=>this.boxContainer=t},n))))}disconnectedCallback(){this.kupManager.interact.unregister(this.interactableDrag.concat(this.interactableDrop)),this.kupManager.language.unregister(this),this.kupManager.theme.unregister(this),this.scrollOnHover&&this.kupManager.scrollOnHover.unregister(this.boxContainer),document.removeEventListener("click",this.clickFunction.bind(this)),this.kupDidUnload.emit({comp:this,id:this.rootElement.id})}get rootElement(){return r(this)}static get watchers(){return{rowsPerPage:["rowsPerPageHandler","recalculateRows"],globalFilterValue:["recalculateRows"],sortBy:["recalculateRows"],pagination:["recalculateRows"],currentPage:["recalculateRows"],currentRowsPerPage:["recalculateRows"],data:["onDataChanged"],layout:["onLayoutChanged"],selectBox:["onSelectBoxChanged"]}}};B=new WeakMap,D=new WeakMap,W=new WeakMap,S=new WeakSet,$=function(){this.lazyLoadRows&&this.currentRowsPerPage<this.data.rows.length&&T(this,B,"f").observe(T(this,D,"f")[T(this,D,"f").length-1])},L=function(){const t={threshold:0,rootMargin:"-"+T(this,W,"f")+"px 0px 0px 0px"};F(this,B,new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){this.kupManager.debug.logMessage(this,"Last row entering the viewport, loading more elements.");const o=this.data.rows.length-this.currentRowsPerPage;this.currentRowsPerPage+=o<10?o:10,t.target.classList.remove("last-row"),T(this,B,"f").unobserve(t.target)}}))}),t),"f")},H.style=":host{--kup_box_background_color:var(\n --kup-box-background-color,\n var(--kup-background-color)\n );--kup_box_color:var(--kup-box-color, var(--kup-text-color));--kup_box_font_family:var(--kup-box-font-family, var(--kup-font-family));--kup_box_font_size:var(--kup-box-font-size, var(--kup-font-size));--kup_box_grid_gap:var(--kup-box-grid-gap, 1em);--kup_box_hover_box_shadow:var(\n --kup-box-hover-box-shadow,\n 0px 0px 7.5px 0px rgba(128, 128, 128, 0.5)\n );--kup_box_primary_color_rgb:var(\n --kup-box-primary-color-rgb,\n var(--kup-primary-color-rgb)\n );--kup_box_transition:var(--kup-box-transition, 0.25s);display:block;font-family:var(--kup_box_font_family);font-size:var(--kup_box_font_size)}.box-component{background:var(--kup_box_background_color);transition:border var(--kup_box_transition) ease}.box-component[kup-drag-over]{position:relative;border:3px dashed var(--kup-border-color)}#box-container{display:grid;grid-gap:var(--kup_box_grid_gap);color:var(--kup_box_color);overflow:auto}#box-container.is-kanban .kanban-section{overflow:auto}#box-container.is-kanban .box-wrapper{padding-top:1em}#box-container.is-kanban .box-wrapper .box{overflow:auto}#box-container *{box-sizing:border-box}#box-container .box-wrapper{display:flex;align-items:center}#box-container .box-wrapper .box{flex-grow:1;cursor:pointer;position:relative;display:flex;transition:background-color var(--kup_box_transition) ease, box-shadow var(--kup_box_transition) ease, border var(--kup_box_transition) ease}#box-container .box-wrapper .box.draggable{touch-action:none;user-select:none}#box-container .box-wrapper .box.column{flex-direction:column}#box-container .box-wrapper .box:hover{box-shadow:var(--kup_box_hover_box_shadow)}#box-container .box-wrapper .box.selected{background-color:rgba(var(--kup_box_primary_color_rgb), 0.175)}#box-container .box-wrapper .box.selected .box-section.titled>h3{background-color:transparent}#box-container .box-wrapper .box[kup-draggable]{opacity:0.5}#box-container .box-wrapper .box[kup-drag-over]{border:3px dashed var(--kup-border-color);position:relative;z-index:2}#box-container .box-wrapper .box .box-section{display:flex;flex-direction:row;flex:1 1 1%;flex-wrap:wrap}#box-container .box-wrapper .box .box-section.column{flex-direction:column;justify-content:center;flex-wrap:unset}#box-container .box-wrapper .box .box-section.column>.box-section{flex:0 0 auto}#box-container .box-wrapper .box .box-section.grid{display:grid}#box-container .box-wrapper .box .box-section .box-object{min-height:16px}#box-container .box-wrapper .box .box-section .box-object img{height:auto}#box-container .box-wrapper .box .box-section.collapse-section .header{border-top:1px solid var(--kup-border-color);color:rgba(var(--kup-text-color-rgb), 0.75);display:flex;justify-content:space-around;width:100%}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content{margin:0.5em;display:flex;align-items:center}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image{transition:transform 0.15s}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .f-image.toggled{transform:rotate(-180deg)}#box-container .box-wrapper .box .box-section.collapse-section .header .header-content .kup-icon.kup-dropdown-icon{margin:0;-webkit-mask:var(--kup-dropdown-icon);mask:var(--kup-dropdown-icon)}#box-container .box-wrapper .box .box-section.collapse-section .content{display:none;width:100%}#box-container .box-wrapper .box .box-section.collapse-section.open .content{display:block}#box-container .box-wrapper .box .box-section.titled{border:1px solid var(--kup-border-color);padding-top:5px;position:relative;margin:10px}#box-container .box-wrapper .box .box-section.titled>h3{background:var(--kup-background-color);font-size:calc(var(--kup-font-size) * 1.15);position:absolute;margin:0px;padding:0 8px;top:-11px;left:5px;transition:background-color 0.25s ease}#box-container .box-wrapper .box .box-selection{position:absolute;top:0.5em;right:0.5em;z-index:1}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler{position:relative;width:24px;height:24px;margin-left:3px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler svg{cursor:pointer;opacity:0;fill:var(--kup-text-color);transition:opacity 500ms ease-out}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu{background:var(--kup-background-color);border:1px solid var(--kup-border-color);box-shadow:0px 0px 7.5px 0px rgba(128, 128, 128, 0.5);position:absolute;top:0;right:24px;display:none;z-index:10}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul{list-style-type:none;margin:0;padding:0}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li{cursor:pointer;white-space:nowrap;padding:0 12px;display:flex;align-items:center;line-height:30px}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu ul>li:not(:last-child){border-bottom:1px solid var(--kup-border-color)}#box-container .box-wrapper .row-actions-wrapper .row-actions-toggler .row-action-menu.open{display:block}#box-container .box-wrapper:hover .row-actions-wrapper .row-actions-toggler svg{opacity:1}#sort-panel,#global-filter{margin-bottom:1em}:host(.kup-center-aligned) #kup-component .box-section{text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:center;margin:auto;text-align:center}:host(.kup-center-aligned) #kup-component .box-section .f-cell img{margin:auto}:host(.kup-right-aligned) #kup-component .box-section{text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell .f-cell__content{justify-content:flex-end;margin-left:auto;margin-right:0;text-align:right}:host(.kup-right-aligned) #kup-component .box-section .f-cell img{margin-left:auto;margin-right:0}:host(.kup-top-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-start}:host(.kup-bottom-aligned) #box-container .box-wrapper .box .box-section .column{justify-content:flex-end}:host(:not(.kup-borderless)) .box{border:1px solid var(--kup-border-color)}:host(.kup-flat-on-hover) #box-container .box-wrapper .box:hover{box-shadow:none}:host(.kup-shaped) .box{border-radius:10px}:host(.kup-round) .box{border-radius:25px}:host(.kup-dashed-sections) .box-section{border:2px dashed var(--kup-text-color)}:host(:not(.kup-paddingless)) #box-container .box{padding:3px}:host(:not(.kup-paddingless)) #box-container .box .box-section .box-object{padding:1px 4px}:host(:not(.kup-paddingless)) #box-container .box .box-section.last-child{margin:3px 4px}:host(.kup-danger){--kup-box-primary-color-rgb:var(--kup-danger-color-rgb)}:host(.kup-info){--kup-box-primary-color-rgb:var(--kup-info-color-rgb)}:host(.kup-secondary){--kup-box-primary-color-rgb:var(--kup-secondary-color-rgb)}:host(.kup-success){--kup-box-primary-color-rgb:var(--kup-success-color-rgb)}:host(.kup-warning){--kup-box-primary-color-rgb:var(--kup-warning-color-rgb)}";export{H as kup_box}
|