@sme.up/ketchup 8.3.2 → 9.0.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/{component-2c7ddef7.js → component-cb3b32f5.js} +7 -2
- package/dist/cjs/{f-button-be5c564a.js → f-button-b2cfce1c.js} +3 -3
- package/dist/cjs/{f-cell-d034bcb0.js → f-cell-75fca92b.js} +24 -17
- package/dist/cjs/{f-checkbox-cff77b2c.js → f-checkbox-48d7af02.js} +1 -1
- package/dist/cjs/{f-chip-bc678bf1.js → f-chip-3e504f3e.js} +3 -3
- package/dist/cjs/{f-image-8542c984.js → f-image-270d39ae.js} +2 -2
- package/dist/cjs/{f-paginator-utils-f48afc35.js → f-paginator-utils-6d0c4678.js} +4 -4
- package/dist/cjs/{f-text-field-acfc1717.js → f-text-field-bbcd2143.js} +2 -2
- package/dist/cjs/{f-text-field-mdc-d38d80b5.js → f-text-field-mdc-4fda9705.js} +1 -1
- package/dist/cjs/{index-a9a3b467.js → index-c3d10561.js} +90 -19
- package/dist/cjs/ketchup.cjs.js +3 -6
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +151 -156
- package/dist/cjs/kup-box.cjs.entry.js +14 -14
- package/dist/cjs/kup-calendar.cjs.entry.js +16 -10
- package/dist/cjs/kup-card-list.cjs.entry.js +244 -0
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-dashboard.cjs.entry.js +10 -10
- package/dist/cjs/kup-drawer.cjs.entry.js +3 -3
- package/dist/cjs/kup-echart.cjs.entry.js +4604 -4444
- package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
- package/dist/cjs/kup-grid.cjs.entry.js +109 -0
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +11 -11
- package/dist/cjs/kup-lazy.cjs.entry.js +3 -3
- package/dist/cjs/kup-magic-box.cjs.entry.js +5 -5
- package/dist/cjs/{kup-manager-b3677c1d.js → kup-manager-130bbd9d.js} +7 -7
- package/dist/cjs/kup-nav-bar.cjs.entry.js +3 -3
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +6 -6
- package/dist/cjs/kup-photo-frame.cjs.entry.js +3 -3
- package/dist/cjs/kup-planner.cjs.entry.js +26 -18
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +6 -6
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/collection/assets/card-list.js +709 -0
- package/dist/collection/assets/data-table-performance.js +6 -0
- package/dist/collection/assets/echart.js +168 -90
- package/dist/collection/assets/image-list.js +2 -12
- package/dist/collection/assets/index.js +4 -4
- package/dist/collection/collection-manifest.json +49 -50
- package/dist/collection/components/kup-accordion/kup-accordion.js +28 -18
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +47 -29
- package/dist/collection/components/kup-badge/kup-badge.js +21 -14
- package/dist/collection/components/kup-box/kup-box.js +62 -41
- package/dist/collection/components/kup-button/kup-button.js +26 -17
- package/dist/collection/components/kup-button-list/kup-button-list.e2e.js +1 -1
- package/dist/collection/components/kup-button-list/kup-button-list.js +24 -16
- package/dist/collection/components/kup-calendar/kup-calendar-declarations.js +3 -2
- package/dist/collection/components/kup-calendar/kup-calendar.css +13 -0
- package/dist/collection/components/kup-calendar/kup-calendar.js +73 -35
- package/dist/collection/components/kup-card/box/kup-card-box.js +3 -3
- package/dist/collection/components/kup-card/built-in/kup-card-built-in.js +7 -7
- package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +6 -6
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +5 -5
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +4 -4
- package/dist/collection/components/kup-card/built-in/kup-card-message-box.js +4 -4
- package/dist/collection/components/kup-card/built-in/kup-card-numeric.js +2 -2
- package/dist/collection/components/kup-card/collapsible/kup-card-collapsible.js +5 -5
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +5 -5
- package/dist/collection/components/kup-card/free/kup-card-free.js +2 -2
- package/dist/collection/components/kup-card/kup-card-helper.js +5 -5
- package/dist/collection/components/kup-card/kup-card.css +20 -7
- package/dist/collection/components/kup-card/kup-card.js +67 -52
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +49 -58
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +9 -9
- package/dist/collection/components/kup-card-list/kup-card-list-declarations.js +13 -0
- package/dist/collection/components/kup-card-list/kup-card-list.css +34 -0
- package/dist/collection/components/kup-card-list/kup-card-list.js +481 -0
- package/dist/collection/components/kup-cell/kup-cell.js +27 -18
- package/dist/collection/components/kup-chart/kup-chart-builder.js +5 -5
- package/dist/collection/components/kup-chart/kup-chart.js +47 -28
- package/dist/collection/components/kup-checkbox/kup-checkbox.js +22 -14
- package/dist/collection/components/kup-chip/kup-chip.js +32 -20
- package/dist/collection/components/kup-color-picker/kup-color-picker.js +30 -20
- package/dist/collection/components/kup-combobox/kup-combobox.js +47 -29
- package/dist/collection/components/kup-dashboard/kup-dashboard.js +26 -19
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +4 -4
- package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +178 -106
- package/dist/collection/components/kup-date-picker/kup-date-picker.js +42 -26
- package/dist/collection/components/kup-dialog/kup-dialog.js +30 -18
- package/dist/collection/components/kup-drawer/kup-drawer.e2e.js +1 -1
- package/dist/collection/components/kup-drawer/kup-drawer.js +29 -17
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +42 -26
- package/dist/collection/components/kup-echart/kup-echart.js +64 -39
- package/dist/collection/components/kup-family-tree/kup-family-tree.js +42 -26
- package/dist/collection/components/kup-form/kup-form.js +32 -21
- package/dist/collection/components/kup-gauge/kup-gauge.js +18 -13
- package/dist/collection/components/kup-grid/kup-grid.css +10 -0
- package/dist/collection/components/kup-grid/kup-grid.js +16 -11
- package/dist/collection/components/kup-iframe/kup-iframe.js +21 -13
- package/dist/collection/components/kup-image/canvas/kup-image-canvas-declarations.js +1 -1
- package/dist/collection/components/kup-image/canvas/kup-image-canvas-helper.js +1 -1
- package/dist/collection/components/kup-image/canvas/kup-image-canvas.js +2 -2
- package/dist/collection/components/kup-image/kup-image.js +27 -18
- package/dist/collection/components/kup-image-list/kup-image-list.js +35 -24
- package/dist/collection/components/kup-lazy/kup-lazy.js +25 -15
- package/dist/collection/components/kup-list/kup-list-helper.js +1 -1
- package/dist/collection/components/kup-list/kup-list.js +45 -27
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +23 -17
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +23 -14
- package/dist/collection/components/kup-numeric-picker/kup-numeric-picker.js +40 -24
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +23 -14
- package/dist/collection/components/kup-planner/kup-planner-helper.js +3 -3
- package/dist/collection/components/kup-planner/kup-planner.css +277 -277
- package/dist/collection/components/kup-planner/kup-planner.js +51 -33
- package/dist/collection/components/kup-probe/kup-probe.js +7 -5
- package/dist/collection/components/kup-progress-bar/kup-progress-bar.js +15 -10
- package/dist/collection/components/kup-qlik/kup-qlik.js +8 -5
- package/dist/collection/components/kup-radio/kup-radio.js +23 -14
- package/dist/collection/components/kup-rating/kup-rating.js +17 -11
- package/dist/collection/components/kup-snackbar/kup-snackbar.js +26 -16
- package/dist/collection/components/kup-spinner/kup-spinner.js +17 -11
- package/dist/collection/components/kup-state/mock-store.js +1 -1
- package/dist/collection/components/kup-switch/kup-switch.js +22 -14
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.js +31 -20
- package/dist/collection/components/kup-text-field/kup-text-field.js +40 -24
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +47 -29
- package/dist/collection/components/kup-tree/kup-tree.js +104 -63
- package/dist/collection/f-components/f-button/f-button.js +3 -3
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +2 -1
- package/dist/collection/f-components/f-cell/f-cell.js +30 -23
- package/dist/collection/f-components/f-checkbox/f-checkbox.js +1 -1
- package/dist/collection/f-components/f-chip/f-chip.js +5 -5
- package/dist/collection/f-components/f-image/f-image.js +3 -3
- package/dist/collection/f-components/f-paginator/f-paginator.js +5 -5
- package/dist/collection/f-components/f-switch/f-switch.js +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field-mdc.js +2 -2
- package/dist/collection/f-components/f-text-field/f-text-field.js +2 -2
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +4 -4
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +3 -3
- package/dist/collection/managers/kup-data/kup-data.js +8 -8
- package/dist/collection/managers/kup-dates/kup-dates.js +11 -11
- package/dist/collection/managers/kup-debug/kup-debug.js +3 -3
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +2 -2
- package/dist/collection/managers/kup-interact/kup-interact.js +2 -2
- package/dist/collection/managers/kup-language/kup-language.js +3 -3
- package/dist/collection/managers/kup-manager/kup-manager.js +20 -20
- package/dist/collection/managers/kup-math/kup-math-helper.js +1 -1
- package/dist/collection/managers/kup-math/kup-math.js +12 -12
- package/dist/collection/managers/kup-objects/kup-objects.js +1 -1
- package/dist/collection/managers/kup-scroll-on-hover/kup-scroll-on-hover.js +1 -1
- package/dist/collection/managers/kup-search/kup-search.js +2 -2
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -1
- package/dist/collection/managers/kup-theme/kup-theme.js +15 -15
- package/dist/collection/managers/kup-toolbar/kup-toolbar.js +1 -1
- package/dist/collection/managers/kup-tooltip/kup-tooltip.js +1 -1
- package/dist/collection/types/GenericTypes.js +1 -2
- package/dist/collection/utils/cell-utils.js +1 -1
- package/dist/collection/utils/filters/filters-column-menu.js +3 -3
- package/dist/collection/utils/filters/filters-rows.js +6 -6
- package/dist/collection/utils/filters/filters-tree-items.js +4 -4
- package/dist/collection/utils/filters/filters.js +3 -3
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +12 -12
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/kup-autocomplete2.js +393 -386
- package/dist/components/kup-calendar.js +10 -3
- package/dist/components/{kup-dash-list.d.ts → kup-card-list.d.ts} +4 -4
- package/dist/components/kup-card-list.js +408 -0
- package/dist/components/kup-cell.js +1 -1
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +1 -1
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart2.js +4602 -4442
- package/dist/components/kup-family-tree.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid2.js +1 -1
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +1 -1
- package/dist/components/kup-numeric-picker.js +1 -1
- package/dist/components/kup-planner.js +21 -13
- package/dist/esm/{component-e86c51ea.js → component-879e99bf.js} +7 -2
- package/dist/esm/{f-button-3b97025a.js → f-button-baa419dc.js} +3 -3
- package/dist/esm/{f-cell-ae537010.js → f-cell-18ee3afa.js} +24 -17
- package/dist/esm/{f-checkbox-91358c27.js → f-checkbox-00a1e020.js} +1 -1
- package/dist/esm/{f-chip-69df7df4.js → f-chip-311500f4.js} +3 -3
- package/dist/esm/{f-image-705c1694.js → f-image-da03494c.js} +2 -2
- package/dist/esm/{f-paginator-utils-b7009f00.js → f-paginator-utils-d63a195e.js} +4 -4
- package/dist/esm/{f-text-field-fa349928.js → f-text-field-e5f1f1fd.js} +2 -2
- package/dist/esm/{f-text-field-mdc-a1b4a919.js → f-text-field-mdc-1143cf21.js} +1 -1
- package/dist/esm/{index-bb15ce14.js → index-3336c3b1.js} +91 -19
- package/dist/esm/ketchup.js +4 -7
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +151 -156
- package/dist/esm/kup-box.entry.js +14 -14
- package/dist/esm/kup-calendar.entry.js +16 -10
- package/dist/esm/kup-card-list.entry.js +240 -0
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-dashboard.entry.js +10 -10
- package/dist/esm/kup-drawer.entry.js +3 -3
- package/dist/esm/kup-echart.entry.js +4604 -4444
- package/dist/esm/kup-family-tree.entry.js +6 -6
- package/dist/esm/kup-grid.entry.js +105 -0
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +11 -11
- package/dist/esm/kup-lazy.entry.js +3 -3
- package/dist/esm/kup-magic-box.entry.js +5 -5
- package/dist/esm/{kup-manager-bad7bec3.js → kup-manager-c8d5c94d.js} +7 -7
- package/dist/esm/kup-nav-bar.entry.js +3 -3
- package/dist/esm/kup-numeric-picker.entry.js +6 -6
- package/dist/esm/kup-photo-frame.entry.js +3 -3
- package/dist/esm/kup-planner.entry.js +26 -18
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +6 -6
- package/dist/esm/loader.js +4 -13
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-fb0b5466.js → p-008ad26c.js} +1 -1
- package/dist/ketchup/{p-15ffcd21.entry.js → p-07707cd1.entry.js} +1 -1
- package/dist/ketchup/p-0c19d485.entry.js +9 -0
- package/dist/ketchup/{p-4c79ea53.entry.js → p-13eac183.entry.js} +1 -1
- package/dist/ketchup/{p-bd5ece4c.js → p-25de68e5.js} +1 -1
- package/dist/ketchup/{p-bd21cdea.entry.js → p-2a2a18bf.entry.js} +1 -1
- package/dist/ketchup/{p-31da4bae.entry.js → p-2d192def.entry.js} +1 -1
- package/dist/ketchup/p-2d42477d.js +2 -0
- package/dist/ketchup/{p-ee39977d.entry.js → p-2dab9c4f.entry.js} +1 -1
- package/dist/ketchup/{p-afa2af1e.js → p-39602629.js} +1 -1
- package/dist/ketchup/{p-fd1323da.js → p-4597f25d.js} +1 -1
- package/dist/ketchup/{p-7664a38d.entry.js → p-51aa248f.entry.js} +2 -2
- package/dist/ketchup/{p-af50bc6b.entry.js → p-55fd3f46.entry.js} +1 -1
- package/dist/ketchup/p-5c15661d.entry.js +1 -0
- package/dist/ketchup/p-5cfaa673.entry.js +1 -0
- package/dist/ketchup/{p-2587abcf.entry.js → p-5f583257.entry.js} +1 -1
- package/dist/ketchup/{p-55182fcf.js → p-7555c10d.js} +1 -1
- package/dist/ketchup/{p-fefa9ae4.entry.js → p-76130e83.entry.js} +1 -1
- package/dist/ketchup/{p-be89bc7b.entry.js → p-7bf649f0.entry.js} +1 -1
- package/dist/ketchup/{p-aa373c37.entry.js → p-7e1c8fc0.entry.js} +1 -1
- package/dist/ketchup/p-80699a95.js +1 -0
- package/dist/ketchup/{p-68c5029f.entry.js → p-81debebe.entry.js} +1 -1
- package/dist/ketchup/{p-82b5fac1.js → p-8281c9e5.js} +1 -1
- package/dist/ketchup/{p-e1f0ade4.entry.js → p-a0f59b05.entry.js} +1 -1
- package/dist/ketchup/{p-b3eeb140.entry.js → p-a8a39b08.entry.js} +1 -1
- package/dist/ketchup/{p-a8eccd10.entry.js → p-bb854cf5.entry.js} +1 -1
- package/dist/ketchup/{p-fb03f2f5.js → p-cd2af1a6.js} +1 -1
- package/dist/ketchup/{p-6507e9eb.js → p-d4a879fc.js} +1 -1
- package/dist/ketchup/{p-6c995fb2.entry.js → p-d6a7498b.entry.js} +1 -1
- package/dist/ketchup/p-d8384990.entry.js +1 -0
- package/dist/ketchup/p-da58f8ab.entry.js +39 -0
- package/dist/ketchup/p-ecb9fe91.entry.js +1 -0
- package/dist/ketchup/{p-3879be61.js → p-f729449f.js} +1 -1
- package/dist/loader/index.d.ts +1 -1
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +3 -2
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +6 -1
- package/dist/types/components/kup-card/kup-card.d.ts +3 -3
- package/dist/types/components/kup-card-list/kup-card-list-declarations.d.ts +35 -0
- package/dist/types/components/kup-card-list/kup-card-list.d.ts +62 -0
- package/dist/types/components.d.ts +107 -92
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +1 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -2
- package/dist/types/types/GenericTypes.d.ts +1 -2
- package/package.json +8 -5
- package/dist/cjs/kup-dash-list.cjs.entry.js +0 -116
- package/dist/cjs/kup-dash_2.cjs.entry.js +0 -179
- package/dist/collection/assets/dash-list.js +0 -474
- package/dist/collection/components/kup-dash/kup-dash.css +0 -136
- package/dist/collection/components/kup-dash/kup-dash.js +0 -171
- package/dist/collection/components/kup-dash-list/kup-dash-list.css +0 -10
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +0 -327
- package/dist/components/kup-dash-list.js +0 -288
- package/dist/components/kup-dash.d.ts +0 -11
- package/dist/components/kup-dash.js +0 -6
- package/dist/components/kup-dash2.js +0 -228
- package/dist/esm/kup-dash-list.entry.js +0 -112
- package/dist/esm/kup-dash_2.entry.js +0 -174
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/ketchup/p-0b24a2ed.entry.js +0 -1
- package/dist/ketchup/p-15e6bfaf.entry.js +0 -1
- package/dist/ketchup/p-1ad1cf92.entry.js +0 -9
- package/dist/ketchup/p-68cd7d9a.js +0 -1
- package/dist/ketchup/p-b5deb573.js +0 -2
- package/dist/ketchup/p-c455cc67.entry.js +0 -39
- package/dist/ketchup/p-e6cf7db3.entry.js +0 -1
- package/dist/ketchup/p-ef21d377.entry.js +0 -1
- package/dist/types/components/kup-dash/kup-dash.d.ts +0 -33
- package/dist/types/components/kup-dash-list/kup-dash-list.d.ts +0 -22
- /package/dist/cjs/{GenericVariables-9cd88034.js → GenericVariables-1d52ba57.js} +0 -0
- /package/dist/cjs/{f-button-declarations-76b4fb4c.js → f-button-declarations-3fd791a8.js} +0 -0
- /package/dist/esm/{GenericVariables-6dfdd433.js → GenericVariables-d8d0541e.js} +0 -0
- /package/dist/esm/{f-button-declarations-fd4965d1.js → f-button-declarations-8a009df1.js} +0 -0
- /package/dist/ketchup/{p-ad2e21d2.js → p-635bb4b3.js} +0 -0
- /package/dist/ketchup/{p-0fd98ab4.js → p-b00f3575.js} +0 -0
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { k as kupManagerInstance, af as getCellValueForDisplay, d as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, h as defineCustomElement$6, i as defineCustomElement$7, j as defineCustomElement$8, l as defineCustomElement$9, m as defineCustomElement$a, n as defineCustomElement$b, o as defineCustomElement$c, p as defineCustomElement$e, q as defineCustomElement$f, r as defineCustomElement$g, t as defineCustomElement$h, u as defineCustomElement$i, v as defineCustomElement$j, w as defineCustomElement$l, x as defineCustomElement$m, y as defineCustomElement$n, z as defineCustomElement$o, A as defineCustomElement$p, B as defineCustomElement$q, C as defineCustomElement$r, D as defineCustomElement$s, E as defineCustomElement$t, G as defineCustomElement$u } from './kup-autocomplete2.js';
|
|
3
|
-
import { d as defineCustomElement$k } from './kup-dash2.js';
|
|
4
|
-
import { d as defineCustomElement$d } from './kup-grid2.js';
|
|
5
|
-
|
|
6
|
-
const kupDashListCss = ".horizontal{display:inline-block;min-width:300px;max-width:100%;overflow:visible;white-space:nowrap;border:solid;border-width:1px;margin:2px}";
|
|
7
|
-
|
|
8
|
-
const KupDashList$1 = /*@__PURE__*/ proxyCustomElement(class KupDashList extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.dashClick = createEvent(this, "kup-dash-click", 7);
|
|
14
|
-
/*-------------------------------------------------*/
|
|
15
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
16
|
-
/*-------------------------------------------------*/
|
|
17
|
-
/**
|
|
18
|
-
* Instance of the KupManager class.
|
|
19
|
-
*/
|
|
20
|
-
this.kupManager = kupManagerInstance();
|
|
21
|
-
this.layout = '1';
|
|
22
|
-
this.fontsize = '';
|
|
23
|
-
this.active = false;
|
|
24
|
-
this.columnsNumber = 1;
|
|
25
|
-
this.fullWidth = true;
|
|
26
|
-
this.horizontal = false;
|
|
27
|
-
this.iconColor = [];
|
|
28
|
-
this.valueColor = [];
|
|
29
|
-
this.textColor = [];
|
|
30
|
-
this.data = undefined;
|
|
31
|
-
}
|
|
32
|
-
render() {
|
|
33
|
-
let rows = [];
|
|
34
|
-
var count = 0;
|
|
35
|
-
this.data.rows.forEach((r) => {
|
|
36
|
-
let icon = '';
|
|
37
|
-
let unit = '';
|
|
38
|
-
let descr = '';
|
|
39
|
-
let value = '';
|
|
40
|
-
let valueInt = '';
|
|
41
|
-
let valueDec = '';
|
|
42
|
-
let iconColor = {
|
|
43
|
-
color: this.iconColor[count]
|
|
44
|
-
? this.kupManager.theme.colorCheck(this.iconColor[count])
|
|
45
|
-
.hexColor
|
|
46
|
-
: null,
|
|
47
|
-
};
|
|
48
|
-
let textColor = {
|
|
49
|
-
color: this.textColor[count]
|
|
50
|
-
? this.kupManager.theme.colorCheck(this.textColor[count])
|
|
51
|
-
.hexColor
|
|
52
|
-
: null,
|
|
53
|
-
};
|
|
54
|
-
let valueColor = {
|
|
55
|
-
color: this.valueColor[count]
|
|
56
|
-
? this.kupManager.theme.colorCheck(this.valueColor[count])
|
|
57
|
-
.hexColor
|
|
58
|
-
: null,
|
|
59
|
-
};
|
|
60
|
-
if (this.data.columns[0]) {
|
|
61
|
-
icon = (h("div", { slot: "icon" }, h("icon", { class: r.cells[this.data.columns[0].name].obj.k, style: iconColor })));
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
icon = h("div", { slot: "icon" });
|
|
65
|
-
}
|
|
66
|
-
if (this.data.columns[1]) {
|
|
67
|
-
unit = (h("div", { slot: "unit", style: valueColor }, r.cells[this.data.columns[1].name].obj.k, ' '));
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
unit = h("div", { slot: "unit" });
|
|
71
|
-
}
|
|
72
|
-
if (this.data.columns[2]) {
|
|
73
|
-
descr = (h("div", { slot: "descr", style: textColor }, r.cells[this.data.columns[2].name].obj.k));
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
descr = h("div", { slot: "descr" });
|
|
77
|
-
}
|
|
78
|
-
if (this.data.columns[3]) {
|
|
79
|
-
let col = this.data.columns[3];
|
|
80
|
-
col.obj = r.cells[this.data.columns[3].name].obj;
|
|
81
|
-
let newValue = getCellValueForDisplay(col, r.cells[this.data.columns[3].name]);
|
|
82
|
-
value = (h("div", { slot: "value", style: valueColor }, newValue));
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
value = h("div", { slot: "value" });
|
|
86
|
-
}
|
|
87
|
-
if (this.data.columns[5]) {
|
|
88
|
-
let col = this.data.columns[5];
|
|
89
|
-
col.obj = r.cells[this.data.columns[5].name].obj;
|
|
90
|
-
let newValue = getCellValueForDisplay(col, r.cells[this.data.columns[5].name]);
|
|
91
|
-
if (this.data.columns[6] &&
|
|
92
|
-
r.cells[this.data.columns[6].name].obj.k) {
|
|
93
|
-
newValue =
|
|
94
|
-
newValue + this.kupManager.math.decimalSeparator();
|
|
95
|
-
}
|
|
96
|
-
valueInt = (h("div", { slot: "value-int", style: valueColor }, newValue));
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
valueInt = h("div", { slot: "value-int" });
|
|
100
|
-
}
|
|
101
|
-
if (this.data.columns[6]) {
|
|
102
|
-
valueDec = (h("div", { slot: "value-dec", style: valueColor }, r.cells[this.data.columns[6].name].obj.k));
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
valueDec = h("div", { slot: "value-dec" });
|
|
106
|
-
}
|
|
107
|
-
const row = (h("kup-dash", { layout: this.layout, fontsize: this.fontsize, index: count, active: this.active, slot: String(count) }, icon, unit, descr, value, valueInt, valueDec));
|
|
108
|
-
rows.push(row);
|
|
109
|
-
count++;
|
|
110
|
-
});
|
|
111
|
-
return (h("div", null, h("link", { href: "https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css", rel: "stylesheet", type: "text/css" }), h("kup-grid", { columns: this.columnsNumber, singleLine: this.horizontal, class: `${this.fullWidth ? 'kup-full-width' : ''}` }, rows)));
|
|
112
|
-
}
|
|
113
|
-
static get style() { return kupDashListCss; }
|
|
114
|
-
}, [1, "kup-dash-list", {
|
|
115
|
-
"layout": [1],
|
|
116
|
-
"fontsize": [1],
|
|
117
|
-
"active": [4],
|
|
118
|
-
"columnsNumber": [2, "columns-number"],
|
|
119
|
-
"fullWidth": [4, "full-width"],
|
|
120
|
-
"horizontal": [4],
|
|
121
|
-
"iconColor": [16],
|
|
122
|
-
"valueColor": [16],
|
|
123
|
-
"textColor": [16],
|
|
124
|
-
"data": [16]
|
|
125
|
-
}]);
|
|
126
|
-
function defineCustomElement$1() {
|
|
127
|
-
if (typeof customElements === "undefined") {
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
const components = ["kup-dash-list", "kup-autocomplete", "kup-badge", "kup-button", "kup-button-list", "kup-card", "kup-chart", "kup-checkbox", "kup-chip", "kup-color-picker", "kup-combobox", "kup-dash", "kup-data-table", "kup-date-picker", "kup-dialog", "kup-dropdown-button", "kup-form", "kup-gauge", "kup-grid", "kup-image", "kup-list", "kup-progress-bar", "kup-radio", "kup-rating", "kup-spinner", "kup-switch", "kup-tab-bar", "kup-text-field", "kup-time-picker", "kup-tree"];
|
|
131
|
-
components.forEach(tagName => { switch (tagName) {
|
|
132
|
-
case "kup-dash-list":
|
|
133
|
-
if (!customElements.get(tagName)) {
|
|
134
|
-
customElements.define(tagName, KupDashList$1);
|
|
135
|
-
}
|
|
136
|
-
break;
|
|
137
|
-
case "kup-autocomplete":
|
|
138
|
-
if (!customElements.get(tagName)) {
|
|
139
|
-
defineCustomElement$u();
|
|
140
|
-
}
|
|
141
|
-
break;
|
|
142
|
-
case "kup-badge":
|
|
143
|
-
if (!customElements.get(tagName)) {
|
|
144
|
-
defineCustomElement$t();
|
|
145
|
-
}
|
|
146
|
-
break;
|
|
147
|
-
case "kup-button":
|
|
148
|
-
if (!customElements.get(tagName)) {
|
|
149
|
-
defineCustomElement$s();
|
|
150
|
-
}
|
|
151
|
-
break;
|
|
152
|
-
case "kup-button-list":
|
|
153
|
-
if (!customElements.get(tagName)) {
|
|
154
|
-
defineCustomElement$r();
|
|
155
|
-
}
|
|
156
|
-
break;
|
|
157
|
-
case "kup-card":
|
|
158
|
-
if (!customElements.get(tagName)) {
|
|
159
|
-
defineCustomElement$q();
|
|
160
|
-
}
|
|
161
|
-
break;
|
|
162
|
-
case "kup-chart":
|
|
163
|
-
if (!customElements.get(tagName)) {
|
|
164
|
-
defineCustomElement$p();
|
|
165
|
-
}
|
|
166
|
-
break;
|
|
167
|
-
case "kup-checkbox":
|
|
168
|
-
if (!customElements.get(tagName)) {
|
|
169
|
-
defineCustomElement$o();
|
|
170
|
-
}
|
|
171
|
-
break;
|
|
172
|
-
case "kup-chip":
|
|
173
|
-
if (!customElements.get(tagName)) {
|
|
174
|
-
defineCustomElement$n();
|
|
175
|
-
}
|
|
176
|
-
break;
|
|
177
|
-
case "kup-color-picker":
|
|
178
|
-
if (!customElements.get(tagName)) {
|
|
179
|
-
defineCustomElement$m();
|
|
180
|
-
}
|
|
181
|
-
break;
|
|
182
|
-
case "kup-combobox":
|
|
183
|
-
if (!customElements.get(tagName)) {
|
|
184
|
-
defineCustomElement$l();
|
|
185
|
-
}
|
|
186
|
-
break;
|
|
187
|
-
case "kup-dash":
|
|
188
|
-
if (!customElements.get(tagName)) {
|
|
189
|
-
defineCustomElement$k();
|
|
190
|
-
}
|
|
191
|
-
break;
|
|
192
|
-
case "kup-data-table":
|
|
193
|
-
if (!customElements.get(tagName)) {
|
|
194
|
-
defineCustomElement$j();
|
|
195
|
-
}
|
|
196
|
-
break;
|
|
197
|
-
case "kup-date-picker":
|
|
198
|
-
if (!customElements.get(tagName)) {
|
|
199
|
-
defineCustomElement$i();
|
|
200
|
-
}
|
|
201
|
-
break;
|
|
202
|
-
case "kup-dialog":
|
|
203
|
-
if (!customElements.get(tagName)) {
|
|
204
|
-
defineCustomElement$h();
|
|
205
|
-
}
|
|
206
|
-
break;
|
|
207
|
-
case "kup-dropdown-button":
|
|
208
|
-
if (!customElements.get(tagName)) {
|
|
209
|
-
defineCustomElement$g();
|
|
210
|
-
}
|
|
211
|
-
break;
|
|
212
|
-
case "kup-form":
|
|
213
|
-
if (!customElements.get(tagName)) {
|
|
214
|
-
defineCustomElement$f();
|
|
215
|
-
}
|
|
216
|
-
break;
|
|
217
|
-
case "kup-gauge":
|
|
218
|
-
if (!customElements.get(tagName)) {
|
|
219
|
-
defineCustomElement$e();
|
|
220
|
-
}
|
|
221
|
-
break;
|
|
222
|
-
case "kup-grid":
|
|
223
|
-
if (!customElements.get(tagName)) {
|
|
224
|
-
defineCustomElement$d();
|
|
225
|
-
}
|
|
226
|
-
break;
|
|
227
|
-
case "kup-image":
|
|
228
|
-
if (!customElements.get(tagName)) {
|
|
229
|
-
defineCustomElement$c();
|
|
230
|
-
}
|
|
231
|
-
break;
|
|
232
|
-
case "kup-list":
|
|
233
|
-
if (!customElements.get(tagName)) {
|
|
234
|
-
defineCustomElement$b();
|
|
235
|
-
}
|
|
236
|
-
break;
|
|
237
|
-
case "kup-progress-bar":
|
|
238
|
-
if (!customElements.get(tagName)) {
|
|
239
|
-
defineCustomElement$a();
|
|
240
|
-
}
|
|
241
|
-
break;
|
|
242
|
-
case "kup-radio":
|
|
243
|
-
if (!customElements.get(tagName)) {
|
|
244
|
-
defineCustomElement$9();
|
|
245
|
-
}
|
|
246
|
-
break;
|
|
247
|
-
case "kup-rating":
|
|
248
|
-
if (!customElements.get(tagName)) {
|
|
249
|
-
defineCustomElement$8();
|
|
250
|
-
}
|
|
251
|
-
break;
|
|
252
|
-
case "kup-spinner":
|
|
253
|
-
if (!customElements.get(tagName)) {
|
|
254
|
-
defineCustomElement$7();
|
|
255
|
-
}
|
|
256
|
-
break;
|
|
257
|
-
case "kup-switch":
|
|
258
|
-
if (!customElements.get(tagName)) {
|
|
259
|
-
defineCustomElement$6();
|
|
260
|
-
}
|
|
261
|
-
break;
|
|
262
|
-
case "kup-tab-bar":
|
|
263
|
-
if (!customElements.get(tagName)) {
|
|
264
|
-
defineCustomElement$5();
|
|
265
|
-
}
|
|
266
|
-
break;
|
|
267
|
-
case "kup-text-field":
|
|
268
|
-
if (!customElements.get(tagName)) {
|
|
269
|
-
defineCustomElement$4();
|
|
270
|
-
}
|
|
271
|
-
break;
|
|
272
|
-
case "kup-time-picker":
|
|
273
|
-
if (!customElements.get(tagName)) {
|
|
274
|
-
defineCustomElement$3();
|
|
275
|
-
}
|
|
276
|
-
break;
|
|
277
|
-
case "kup-tree":
|
|
278
|
-
if (!customElements.get(tagName)) {
|
|
279
|
-
defineCustomElement$2();
|
|
280
|
-
}
|
|
281
|
-
break;
|
|
282
|
-
} });
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
const KupDashList = KupDashList$1;
|
|
286
|
-
const defineCustomElement = defineCustomElement$1;
|
|
287
|
-
|
|
288
|
-
export { KupDashList, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface KupDash extends Components.KupDash, HTMLElement {}
|
|
4
|
-
export const KupDash: {
|
|
5
|
-
prototype: KupDash;
|
|
6
|
-
new (): KupDash;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { k as kupManagerInstance, d as defineCustomElement$1, b as defineCustomElement$2, e as defineCustomElement$3, f as defineCustomElement$4, h as defineCustomElement$5, i as defineCustomElement$6, j as defineCustomElement$7, l as defineCustomElement$8, m as defineCustomElement$9, n as defineCustomElement$a, o as defineCustomElement$b, p as defineCustomElement$c, q as defineCustomElement$d, r as defineCustomElement$e, t as defineCustomElement$f, u as defineCustomElement$g, v as defineCustomElement$h, w as defineCustomElement$i, x as defineCustomElement$j, y as defineCustomElement$k, z as defineCustomElement$l, A as defineCustomElement$m, B as defineCustomElement$n, C as defineCustomElement$o, D as defineCustomElement$p, E as defineCustomElement$q, G as defineCustomElement$r } from './kup-autocomplete2.js';
|
|
3
|
-
|
|
4
|
-
const kupDashCss = "#dash{color:var(--kup-text-color);font-size:2vw;display:flex;align-items:center;justify-content:center;position:relative;text-align:center;position:relative;word-break:normal}#dash.with-dyn{cursor:pointer}#dash #content .icon{margin:auto;font-size:90%}#dash #content.layout-1,#dash #content.layout-3{text-align:center}#dash #content.layout-1 .descr,#dash #content.layout-3 .descr{font-size:70%;width:100%}#dash #content.layout-1 .value,#dash #content.layout-3 .value{font-size:220%}#dash #content.layout-2>div{display:flex}#dash #content.layout-2>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-2>div .value-int{font-size:250%}#dash #content.layout-2>div .value-dec,#dash #content.layout-2>div .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-2>div .value-dec{margin-left:2%}#dash #content.layout-2>div .unit{margin-left:4%}#dash #content.layout-4>div{display:grid;grid-template-columns:2fr 5fr}#dash #content.layout-4>div .icon{margin:auto;font-size:150%;margin-right:5%}#dash #content.layout-4>div .value-and-unit{display:flex}#dash #content.layout-4>div .value-and-unit .value-int{font-size:250%}#dash #content.layout-4>div .value-and-unit .value-dec,#dash #content.layout-4>div .value-and-unit .unit{font-size:130%;margin-top:auto;margin-bottom:7%}#dash #content.layout-4>div .value-and-unit .value-dec{margin-left:2%}#dash #content.layout-4>div .value-and-unit .unit{margin-left:4%}#dash #content.layout-4>div .descr{margin-left:4%;text-align:left;font-size:80%;width:100%;min-width:max-content}#dash #content.layout-5>div,#dash #content.layout-7>div{display:flex}#dash #content.layout-5>div .icon,#dash #content.layout-7>div .icon{font-size:150%;margin:auto;margin-left:10%}#dash #content.layout-5>div .value,#dash #content.layout-7>div .value{font-size:200%}#dash #content.layout-5>div .descr,#dash #content.layout-7>div .descr{text-align:right;font-size:65%;width:100%;min-width:max-content}#dash #content.layout-6>div{display:flex;justify-content:space-between}#dash #content.layout-6>div .icon{font-size:150%;margin-right:10%}#dash #content.layout-6>div .value{font-size:220%;text-align:right}#dash #content.layout-6>div .descr{font-size:80%;text-align:right;width:100%;min-width:max-content}#dash #content.layout-8>div{display:flex;align-items:center}#dash #content.layout-8>div .icon{margin-right:4%;font-size:75%}#dash #content.layout-8>div .value{margin:0 10%;font-size:250%}#dash #content.layout-8>div .descr{font-size:60%;text-align:left}";
|
|
5
|
-
|
|
6
|
-
const KupDash = /*@__PURE__*/ proxyCustomElement(class KupDash extends HTMLElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super();
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
11
|
-
this.dashClick = createEvent(this, "kup-dash-click", 6);
|
|
12
|
-
/**
|
|
13
|
-
* Instance of the KupManager class.
|
|
14
|
-
*/
|
|
15
|
-
this.kupManager = kupManagerInstance();
|
|
16
|
-
this.active = false;
|
|
17
|
-
this.fontsize = '';
|
|
18
|
-
this.layout = '1';
|
|
19
|
-
this.index = 0;
|
|
20
|
-
}
|
|
21
|
-
onDshClickHandler() {
|
|
22
|
-
this.dashClick.emit({
|
|
23
|
-
id: this.index,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
//---- Lifecycle hooks ----
|
|
27
|
-
componentWillLoad() {
|
|
28
|
-
this.kupManager.debug.logLoad(this, false);
|
|
29
|
-
}
|
|
30
|
-
componentDidLoad() {
|
|
31
|
-
this.kupManager.debug.logLoad(this, true);
|
|
32
|
-
}
|
|
33
|
-
componentWillRender() {
|
|
34
|
-
this.kupManager.debug.logRender(this, false);
|
|
35
|
-
}
|
|
36
|
-
componentDidRender() {
|
|
37
|
-
this.kupManager.debug.logRender(this, true);
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
let content = null;
|
|
41
|
-
switch (this.layout) {
|
|
42
|
-
case '2':
|
|
43
|
-
content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", { class: "value-int" }, h("slot", { name: "value-int" })), h("div", { class: "value-dec" }, h("slot", { name: "value-dec" })), h("div", { class: "unit" }, h("slot", { name: "unit" }))));
|
|
44
|
-
break;
|
|
45
|
-
case '3':
|
|
46
|
-
content = (h("div", null, h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" }))));
|
|
47
|
-
break;
|
|
48
|
-
case '4':
|
|
49
|
-
content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", { class: "value-and-unit" }, h("div", { class: "value-int" }, h("slot", { name: "value-int" })), h("div", { class: "value-dec" }, h("slot", { name: "value-dec" })), h("div", { class: "unit" }, h("slot", { name: "unit" }))), h("div", null), h("div", { class: "descr" }, h("slot", { name: "descr" }))));
|
|
50
|
-
break;
|
|
51
|
-
case '5':
|
|
52
|
-
content = (h("div", null, h("div", null, h("div", { class: "descr" }, h("slot", { name: "descr" })), h("div", { class: "value" }, h("slot", { name: "value" }))), h("div", { class: "icon" }, h("slot", { name: "icon" }))));
|
|
53
|
-
break;
|
|
54
|
-
case '6':
|
|
55
|
-
content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", null, h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" })))));
|
|
56
|
-
break;
|
|
57
|
-
case '7':
|
|
58
|
-
content = (h("div", null, h("div", null, h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" }))), h("div", { class: "icon" }, h("slot", { name: "icon" }))));
|
|
59
|
-
break;
|
|
60
|
-
case '8':
|
|
61
|
-
content = (h("div", null, h("div", { class: "icon" }, h("slot", { name: "icon" })), h("div", { class: "value" }, h("slot", { name: "value" })), h("div", { class: "descr" }, h("slot", { name: "descr" }))));
|
|
62
|
-
break;
|
|
63
|
-
default:
|
|
64
|
-
// layout 1
|
|
65
|
-
content = (h("div", null, h("div", { class: "descr" }, h("slot", { name: "descr" })), h("div", { class: "value" }, h("slot", { name: "value" }))));
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
const style = { fontSize: this.fontsize };
|
|
69
|
-
return (h("div", { id: "dash", class: `${this.active ? 'with-dyn' : ''}`, style: style, onClick: () => this.onDshClickHandler() }, h("div", { id: "content", class: `layout-${this.layout} ` }, content)));
|
|
70
|
-
}
|
|
71
|
-
get rootElement() { return this; }
|
|
72
|
-
static get style() { return kupDashCss; }
|
|
73
|
-
}, [1, "kup-dash", {
|
|
74
|
-
"active": [4],
|
|
75
|
-
"fontsize": [1],
|
|
76
|
-
"layout": [1],
|
|
77
|
-
"index": [2]
|
|
78
|
-
}]);
|
|
79
|
-
function defineCustomElement() {
|
|
80
|
-
if (typeof customElements === "undefined") {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
const components = ["kup-dash", "kup-autocomplete", "kup-badge", "kup-button", "kup-button-list", "kup-card", "kup-chart", "kup-checkbox", "kup-chip", "kup-color-picker", "kup-combobox", "kup-data-table", "kup-date-picker", "kup-dialog", "kup-dropdown-button", "kup-form", "kup-gauge", "kup-image", "kup-list", "kup-progress-bar", "kup-radio", "kup-rating", "kup-spinner", "kup-switch", "kup-tab-bar", "kup-text-field", "kup-time-picker", "kup-tree"];
|
|
84
|
-
components.forEach(tagName => { switch (tagName) {
|
|
85
|
-
case "kup-dash":
|
|
86
|
-
if (!customElements.get(tagName)) {
|
|
87
|
-
customElements.define(tagName, KupDash);
|
|
88
|
-
}
|
|
89
|
-
break;
|
|
90
|
-
case "kup-autocomplete":
|
|
91
|
-
if (!customElements.get(tagName)) {
|
|
92
|
-
defineCustomElement$r();
|
|
93
|
-
}
|
|
94
|
-
break;
|
|
95
|
-
case "kup-badge":
|
|
96
|
-
if (!customElements.get(tagName)) {
|
|
97
|
-
defineCustomElement$q();
|
|
98
|
-
}
|
|
99
|
-
break;
|
|
100
|
-
case "kup-button":
|
|
101
|
-
if (!customElements.get(tagName)) {
|
|
102
|
-
defineCustomElement$p();
|
|
103
|
-
}
|
|
104
|
-
break;
|
|
105
|
-
case "kup-button-list":
|
|
106
|
-
if (!customElements.get(tagName)) {
|
|
107
|
-
defineCustomElement$o();
|
|
108
|
-
}
|
|
109
|
-
break;
|
|
110
|
-
case "kup-card":
|
|
111
|
-
if (!customElements.get(tagName)) {
|
|
112
|
-
defineCustomElement$n();
|
|
113
|
-
}
|
|
114
|
-
break;
|
|
115
|
-
case "kup-chart":
|
|
116
|
-
if (!customElements.get(tagName)) {
|
|
117
|
-
defineCustomElement$m();
|
|
118
|
-
}
|
|
119
|
-
break;
|
|
120
|
-
case "kup-checkbox":
|
|
121
|
-
if (!customElements.get(tagName)) {
|
|
122
|
-
defineCustomElement$l();
|
|
123
|
-
}
|
|
124
|
-
break;
|
|
125
|
-
case "kup-chip":
|
|
126
|
-
if (!customElements.get(tagName)) {
|
|
127
|
-
defineCustomElement$k();
|
|
128
|
-
}
|
|
129
|
-
break;
|
|
130
|
-
case "kup-color-picker":
|
|
131
|
-
if (!customElements.get(tagName)) {
|
|
132
|
-
defineCustomElement$j();
|
|
133
|
-
}
|
|
134
|
-
break;
|
|
135
|
-
case "kup-combobox":
|
|
136
|
-
if (!customElements.get(tagName)) {
|
|
137
|
-
defineCustomElement$i();
|
|
138
|
-
}
|
|
139
|
-
break;
|
|
140
|
-
case "kup-data-table":
|
|
141
|
-
if (!customElements.get(tagName)) {
|
|
142
|
-
defineCustomElement$h();
|
|
143
|
-
}
|
|
144
|
-
break;
|
|
145
|
-
case "kup-date-picker":
|
|
146
|
-
if (!customElements.get(tagName)) {
|
|
147
|
-
defineCustomElement$g();
|
|
148
|
-
}
|
|
149
|
-
break;
|
|
150
|
-
case "kup-dialog":
|
|
151
|
-
if (!customElements.get(tagName)) {
|
|
152
|
-
defineCustomElement$f();
|
|
153
|
-
}
|
|
154
|
-
break;
|
|
155
|
-
case "kup-dropdown-button":
|
|
156
|
-
if (!customElements.get(tagName)) {
|
|
157
|
-
defineCustomElement$e();
|
|
158
|
-
}
|
|
159
|
-
break;
|
|
160
|
-
case "kup-form":
|
|
161
|
-
if (!customElements.get(tagName)) {
|
|
162
|
-
defineCustomElement$d();
|
|
163
|
-
}
|
|
164
|
-
break;
|
|
165
|
-
case "kup-gauge":
|
|
166
|
-
if (!customElements.get(tagName)) {
|
|
167
|
-
defineCustomElement$c();
|
|
168
|
-
}
|
|
169
|
-
break;
|
|
170
|
-
case "kup-image":
|
|
171
|
-
if (!customElements.get(tagName)) {
|
|
172
|
-
defineCustomElement$b();
|
|
173
|
-
}
|
|
174
|
-
break;
|
|
175
|
-
case "kup-list":
|
|
176
|
-
if (!customElements.get(tagName)) {
|
|
177
|
-
defineCustomElement$a();
|
|
178
|
-
}
|
|
179
|
-
break;
|
|
180
|
-
case "kup-progress-bar":
|
|
181
|
-
if (!customElements.get(tagName)) {
|
|
182
|
-
defineCustomElement$9();
|
|
183
|
-
}
|
|
184
|
-
break;
|
|
185
|
-
case "kup-radio":
|
|
186
|
-
if (!customElements.get(tagName)) {
|
|
187
|
-
defineCustomElement$8();
|
|
188
|
-
}
|
|
189
|
-
break;
|
|
190
|
-
case "kup-rating":
|
|
191
|
-
if (!customElements.get(tagName)) {
|
|
192
|
-
defineCustomElement$7();
|
|
193
|
-
}
|
|
194
|
-
break;
|
|
195
|
-
case "kup-spinner":
|
|
196
|
-
if (!customElements.get(tagName)) {
|
|
197
|
-
defineCustomElement$6();
|
|
198
|
-
}
|
|
199
|
-
break;
|
|
200
|
-
case "kup-switch":
|
|
201
|
-
if (!customElements.get(tagName)) {
|
|
202
|
-
defineCustomElement$5();
|
|
203
|
-
}
|
|
204
|
-
break;
|
|
205
|
-
case "kup-tab-bar":
|
|
206
|
-
if (!customElements.get(tagName)) {
|
|
207
|
-
defineCustomElement$4();
|
|
208
|
-
}
|
|
209
|
-
break;
|
|
210
|
-
case "kup-text-field":
|
|
211
|
-
if (!customElements.get(tagName)) {
|
|
212
|
-
defineCustomElement$3();
|
|
213
|
-
}
|
|
214
|
-
break;
|
|
215
|
-
case "kup-time-picker":
|
|
216
|
-
if (!customElements.get(tagName)) {
|
|
217
|
-
defineCustomElement$2();
|
|
218
|
-
}
|
|
219
|
-
break;
|
|
220
|
-
case "kup-tree":
|
|
221
|
-
if (!customElements.get(tagName)) {
|
|
222
|
-
defineCustomElement$1();
|
|
223
|
-
}
|
|
224
|
-
break;
|
|
225
|
-
} });
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export { KupDash as K, defineCustomElement as d };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-bb15ce14.js';
|
|
2
|
-
import { k as kupManagerInstance, af as getCellValueForDisplay } from './kup-manager-bad7bec3.js';
|
|
3
|
-
|
|
4
|
-
const kupDashListCss = ".horizontal{display:inline-block;min-width:300px;max-width:100%;overflow:visible;white-space:nowrap;border:solid;border-width:1px;margin:2px}";
|
|
5
|
-
|
|
6
|
-
const KupDashList = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.dashClick = createEvent(this, "kup-dash-click", 7);
|
|
10
|
-
/*-------------------------------------------------*/
|
|
11
|
-
/* I n t e r n a l V a r i a b l e s */
|
|
12
|
-
/*-------------------------------------------------*/
|
|
13
|
-
/**
|
|
14
|
-
* Instance of the KupManager class.
|
|
15
|
-
*/
|
|
16
|
-
this.kupManager = kupManagerInstance();
|
|
17
|
-
this.layout = '1';
|
|
18
|
-
this.fontsize = '';
|
|
19
|
-
this.active = false;
|
|
20
|
-
this.columnsNumber = 1;
|
|
21
|
-
this.fullWidth = true;
|
|
22
|
-
this.horizontal = false;
|
|
23
|
-
this.iconColor = [];
|
|
24
|
-
this.valueColor = [];
|
|
25
|
-
this.textColor = [];
|
|
26
|
-
this.data = undefined;
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
let rows = [];
|
|
30
|
-
var count = 0;
|
|
31
|
-
this.data.rows.forEach((r) => {
|
|
32
|
-
let icon = '';
|
|
33
|
-
let unit = '';
|
|
34
|
-
let descr = '';
|
|
35
|
-
let value = '';
|
|
36
|
-
let valueInt = '';
|
|
37
|
-
let valueDec = '';
|
|
38
|
-
let iconColor = {
|
|
39
|
-
color: this.iconColor[count]
|
|
40
|
-
? this.kupManager.theme.colorCheck(this.iconColor[count])
|
|
41
|
-
.hexColor
|
|
42
|
-
: null,
|
|
43
|
-
};
|
|
44
|
-
let textColor = {
|
|
45
|
-
color: this.textColor[count]
|
|
46
|
-
? this.kupManager.theme.colorCheck(this.textColor[count])
|
|
47
|
-
.hexColor
|
|
48
|
-
: null,
|
|
49
|
-
};
|
|
50
|
-
let valueColor = {
|
|
51
|
-
color: this.valueColor[count]
|
|
52
|
-
? this.kupManager.theme.colorCheck(this.valueColor[count])
|
|
53
|
-
.hexColor
|
|
54
|
-
: null,
|
|
55
|
-
};
|
|
56
|
-
if (this.data.columns[0]) {
|
|
57
|
-
icon = (h("div", { slot: "icon" }, h("icon", { class: r.cells[this.data.columns[0].name].obj.k, style: iconColor })));
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
icon = h("div", { slot: "icon" });
|
|
61
|
-
}
|
|
62
|
-
if (this.data.columns[1]) {
|
|
63
|
-
unit = (h("div", { slot: "unit", style: valueColor }, r.cells[this.data.columns[1].name].obj.k, ' '));
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
unit = h("div", { slot: "unit" });
|
|
67
|
-
}
|
|
68
|
-
if (this.data.columns[2]) {
|
|
69
|
-
descr = (h("div", { slot: "descr", style: textColor }, r.cells[this.data.columns[2].name].obj.k));
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
descr = h("div", { slot: "descr" });
|
|
73
|
-
}
|
|
74
|
-
if (this.data.columns[3]) {
|
|
75
|
-
let col = this.data.columns[3];
|
|
76
|
-
col.obj = r.cells[this.data.columns[3].name].obj;
|
|
77
|
-
let newValue = getCellValueForDisplay(col, r.cells[this.data.columns[3].name]);
|
|
78
|
-
value = (h("div", { slot: "value", style: valueColor }, newValue));
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
value = h("div", { slot: "value" });
|
|
82
|
-
}
|
|
83
|
-
if (this.data.columns[5]) {
|
|
84
|
-
let col = this.data.columns[5];
|
|
85
|
-
col.obj = r.cells[this.data.columns[5].name].obj;
|
|
86
|
-
let newValue = getCellValueForDisplay(col, r.cells[this.data.columns[5].name]);
|
|
87
|
-
if (this.data.columns[6] &&
|
|
88
|
-
r.cells[this.data.columns[6].name].obj.k) {
|
|
89
|
-
newValue =
|
|
90
|
-
newValue + this.kupManager.math.decimalSeparator();
|
|
91
|
-
}
|
|
92
|
-
valueInt = (h("div", { slot: "value-int", style: valueColor }, newValue));
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
valueInt = h("div", { slot: "value-int" });
|
|
96
|
-
}
|
|
97
|
-
if (this.data.columns[6]) {
|
|
98
|
-
valueDec = (h("div", { slot: "value-dec", style: valueColor }, r.cells[this.data.columns[6].name].obj.k));
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
valueDec = h("div", { slot: "value-dec" });
|
|
102
|
-
}
|
|
103
|
-
const row = (h("kup-dash", { layout: this.layout, fontsize: this.fontsize, index: count, active: this.active, slot: String(count) }, icon, unit, descr, value, valueInt, valueDec));
|
|
104
|
-
rows.push(row);
|
|
105
|
-
count++;
|
|
106
|
-
});
|
|
107
|
-
return (h("div", null, h("link", { href: "https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css", rel: "stylesheet", type: "text/css" }), h("kup-grid", { columns: this.columnsNumber, singleLine: this.horizontal, class: `${this.fullWidth ? 'kup-full-width' : ''}` }, rows)));
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
KupDashList.style = kupDashListCss;
|
|
111
|
-
|
|
112
|
-
export { KupDashList as kup_dash_list };
|