@sme.up/ketchup 8.3.2 → 8.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-be5c564a.js → f-button-7687085a.js} +3 -3
- package/dist/cjs/{f-cell-d034bcb0.js → f-cell-37ef6f00.js} +6 -6
- package/dist/cjs/{f-checkbox-cff77b2c.js → f-checkbox-758d1d34.js} +1 -1
- package/dist/cjs/{f-chip-bc678bf1.js → f-chip-cf59bdb3.js} +3 -3
- package/dist/cjs/{f-image-8542c984.js → f-image-1245b0cf.js} +2 -2
- package/dist/cjs/{f-paginator-utils-f48afc35.js → f-paginator-utils-b1af2a8f.js} +4 -4
- package/dist/cjs/{f-text-field-acfc1717.js → f-text-field-9c745112.js} +2 -2
- package/dist/cjs/{f-text-field-mdc-d38d80b5.js → f-text-field-mdc-b1fa6fd6.js} +1 -1
- package/dist/cjs/{index-a9a3b467.js → index-eac07680.js} +4 -11
- 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 +16 -16
- package/dist/cjs/kup-box.cjs.entry.js +14 -14
- package/dist/cjs/kup-calendar.cjs.entry.js +15 -9
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-dash_2.cjs.entry.js +3 -3
- 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 +27 -15
- package/dist/cjs/kup-family-tree.cjs.entry.js +6 -6
- 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-38caaef3.js} +1 -1
- 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/data-table.js +0 -44
- package/dist/collection/assets/echart.js +168 -90
- package/dist/collection/collection-manifest.json +50 -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 +2 -1
- 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.js +42 -30
- package/dist/collection/components/kup-card/scalable/kup-card-scalable.js +4 -4
- package/dist/collection/components/kup-card/standard/kup-card-standard.js +9 -9
- 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-dash/kup-dash.js +2 -2
- package/dist/collection/components/kup-dash-list/kup-dash-list.js +11 -7
- 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 +2 -2
- 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 -37
- 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.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 +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +12 -12
- 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 +11 -11
- 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/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 +3 -3
- package/dist/components/kup-calendar.js +9 -2
- package/dist/components/kup-echart2.js +24 -12
- package/dist/components/kup-planner.js +20 -12
- package/dist/esm/{f-button-3b97025a.js → f-button-e54ce8d5.js} +3 -3
- package/dist/esm/{f-cell-ae537010.js → f-cell-4149a05d.js} +6 -6
- package/dist/esm/{f-checkbox-91358c27.js → f-checkbox-7b113dd8.js} +1 -1
- package/dist/esm/{f-chip-69df7df4.js → f-chip-c3c86f7b.js} +3 -3
- package/dist/esm/{f-image-705c1694.js → f-image-adceee49.js} +2 -2
- package/dist/esm/{f-paginator-utils-b7009f00.js → f-paginator-utils-e559dac8.js} +4 -4
- package/dist/esm/{f-text-field-fa349928.js → f-text-field-aa4497a8.js} +2 -2
- package/dist/esm/{f-text-field-mdc-a1b4a919.js → f-text-field-mdc-32a1ffd9.js} +1 -1
- package/dist/esm/{index-bb15ce14.js → index-d413187a.js} +5 -11
- package/dist/esm/ketchup.js +4 -7
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +16 -16
- package/dist/esm/kup-box.entry.js +14 -14
- package/dist/esm/kup-calendar.entry.js +15 -9
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +2 -2
- package/dist/esm/kup-dash_2.entry.js +3 -3
- 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 +27 -15
- package/dist/esm/kup-family-tree.entry.js +6 -6
- 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-a4153fb2.js} +1 -1
- 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-a8eccd10.entry.js → p-0848391f.entry.js} +1 -1
- package/dist/ketchup/{p-aa373c37.entry.js → p-23d54fb2.entry.js} +1 -1
- package/dist/ketchup/{p-e6cf7db3.entry.js → p-25d45dc9.entry.js} +1 -1
- package/dist/ketchup/{p-e1f0ade4.entry.js → p-2739b7ac.entry.js} +1 -1
- package/dist/ketchup/p-283ca113.entry.js +1 -0
- package/dist/ketchup/{p-afa2af1e.js → p-2f0798d3.js} +1 -1
- package/dist/ketchup/{p-be89bc7b.entry.js → p-3081ed82.entry.js} +1 -1
- package/dist/ketchup/{p-c455cc67.entry.js → p-384137d7.entry.js} +2 -2
- package/dist/ketchup/{p-ef21d377.entry.js → p-3972b97c.entry.js} +1 -1
- package/dist/ketchup/{p-31da4bae.entry.js → p-3bbcae45.entry.js} +1 -1
- package/dist/ketchup/{p-68c5029f.entry.js → p-3c44e838.entry.js} +1 -1
- package/dist/ketchup/{p-fefa9ae4.entry.js → p-3d671241.entry.js} +1 -1
- package/dist/ketchup/{p-4c79ea53.entry.js → p-44b5c573.entry.js} +1 -1
- package/dist/ketchup/{p-82b5fac1.js → p-47752f3b.js} +1 -1
- package/dist/ketchup/{p-0b24a2ed.entry.js → p-5ce0e645.entry.js} +1 -1
- package/dist/ketchup/{p-55182fcf.js → p-698442ed.js} +1 -1
- package/dist/ketchup/{p-fb03f2f5.js → p-6d9ffb32.js} +1 -1
- package/dist/ketchup/{p-fd1323da.js → p-7360a410.js} +1 -1
- package/dist/ketchup/{p-af50bc6b.entry.js → p-b415fe84.entry.js} +1 -1
- package/dist/ketchup/{p-ee39977d.entry.js → p-b623c774.entry.js} +1 -1
- package/dist/ketchup/{p-2587abcf.entry.js → p-b8fcbcc9.entry.js} +1 -1
- package/dist/ketchup/{p-1ad1cf92.entry.js → p-be864593.entry.js} +2 -2
- package/dist/ketchup/{p-15ffcd21.entry.js → p-c0878519.entry.js} +1 -1
- package/dist/ketchup/{p-bd21cdea.entry.js → p-c39ddeae.entry.js} +1 -1
- package/dist/ketchup/{p-fb0b5466.js → p-d680bdde.js} +1 -1
- package/dist/ketchup/{p-3879be61.js → p-d817be2a.js} +1 -1
- package/dist/ketchup/{p-bd5ece4c.js → p-e76b646c.js} +1 -1
- package/dist/ketchup/{p-7664a38d.entry.js → p-e917200c.entry.js} +2 -2
- package/dist/ketchup/{p-b3eeb140.entry.js → p-eec864dd.entry.js} +1 -1
- package/dist/ketchup/{p-6c995fb2.entry.js → p-f3c8c1da.entry.js} +1 -1
- package/dist/ketchup/{p-68cd7d9a.js → p-f79d544a.js} +1 -1
- package/dist/ketchup/p-fd75d5bf.js +2 -0
- package/dist/loader/index.d.ts +1 -1
- package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +2 -1
- package/dist/types/components/kup-calendar/kup-calendar.d.ts +5 -0
- package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
- package/dist/types/components.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/package.json +5 -5
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/ketchup/p-15e6bfaf.entry.js +0 -1
- package/dist/ketchup/p-b5deb573.js +0 -2
- /package/dist/cjs/{GenericVariables-9cd88034.js → GenericVariables-1d52ba57.js} +0 -0
- /package/dist/cjs/{component-2c7ddef7.js → component-24811409.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/{component-e86c51ea.js → component-cc25b031.js} +0 -0
- /package/dist/esm/{f-button-declarations-fd4965d1.js → f-button-declarations-8a009df1.js} +0 -0
- /package/dist/ketchup/{p-6507e9eb.js → p-124f3f42.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
package/dist/loader/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface CustomElementsDefineOptions {
|
|
|
8
8
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions):
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -7,7 +7,8 @@ import { KupEventPayload } from '../../types/GenericTypes';
|
|
|
7
7
|
export declare enum KupCalendarProps {
|
|
8
8
|
currentDate = "Sets the date of the calendar. Must be in ISO format (YYYY-MM-DD).",
|
|
9
9
|
customStyle = "Custom style of the component.",
|
|
10
|
-
data = "
|
|
10
|
+
data = "Actual data of the calendar.",
|
|
11
|
+
editableEvents = "When true, events are editable.",
|
|
11
12
|
hideNavigation = "When disabled, the navigation toolbar won't be displayed.",
|
|
12
13
|
viewType = "Type of the view."
|
|
13
14
|
}
|
|
@@ -27,6 +27,11 @@ export declare class KupCalendar {
|
|
|
27
27
|
* @default false
|
|
28
28
|
*/
|
|
29
29
|
hideNavigation: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* When true, events are editable.
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
editableEvents: boolean;
|
|
30
35
|
/**
|
|
31
36
|
* Type of the view.
|
|
32
37
|
* @default KupCalendarViewTypes.MONTH
|
|
@@ -6,8 +6,8 @@ export declare class KupDataTableState implements KupState {
|
|
|
6
6
|
expandGroups: boolean;
|
|
7
7
|
groupLabelDisplay: GroupLabelDisplayMode;
|
|
8
8
|
density: string;
|
|
9
|
-
enableExtraColumns: boolean;
|
|
10
9
|
enableSortableColumns: boolean;
|
|
10
|
+
enableExtraColumns: boolean;
|
|
11
11
|
forceOneLine: boolean;
|
|
12
12
|
globalFilter: boolean;
|
|
13
13
|
globalFilterValue: string;
|
|
@@ -549,6 +549,11 @@ export namespace Components {
|
|
|
549
549
|
* @default null
|
|
550
550
|
*/
|
|
551
551
|
"data": KupCalendarData;
|
|
552
|
+
/**
|
|
553
|
+
* When true, events are editable.
|
|
554
|
+
* @default true
|
|
555
|
+
*/
|
|
556
|
+
"editableEvents": boolean;
|
|
552
557
|
/**
|
|
553
558
|
* Used to retrieve component's props values.
|
|
554
559
|
* @param descriptions - When provided and true, the result will be the list of props with their description.
|
|
@@ -4366,6 +4371,11 @@ declare namespace LocalJSX {
|
|
|
4366
4371
|
* @default null
|
|
4367
4372
|
*/
|
|
4368
4373
|
"data"?: KupCalendarData;
|
|
4374
|
+
/**
|
|
4375
|
+
* When true, events are editable.
|
|
4376
|
+
* @default true
|
|
4377
|
+
*/
|
|
4378
|
+
"editableEvents"?: boolean;
|
|
4369
4379
|
/**
|
|
4370
4380
|
* When disabled, the navigation toolbar won't be displayed.
|
|
4371
4381
|
* @default false
|
|
@@ -1289,7 +1289,7 @@ export declare namespace JSXBase {
|
|
|
1289
1289
|
clipPathUnits?: number | string;
|
|
1290
1290
|
'clip-rule'?: number | string;
|
|
1291
1291
|
'color-interpolation'?: number | string;
|
|
1292
|
-
'color-interpolation-filters'?: 'auto' | '
|
|
1292
|
+
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
|
|
1293
1293
|
'color-profile'?: number | string;
|
|
1294
1294
|
'color-rendering'?: number | string;
|
|
1295
1295
|
contentScriptType?: number | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sme.up/ketchup",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"smeup",
|
|
6
6
|
"KetchUP",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@material/form-field": "^14.0.0",
|
|
49
49
|
"@material/ripple": "^14.0.0",
|
|
50
50
|
"@material/textfield": "^14.0.0",
|
|
51
|
-
"@sme.up/gantt-component": "^1.3.
|
|
51
|
+
"@sme.up/gantt-component": "^1.3.30",
|
|
52
52
|
"d3-shape": "^3.2.0",
|
|
53
53
|
"dayjs": "^1.11.7",
|
|
54
54
|
"echarts": "^5.4.2",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vanilla-picker": "^2.12.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@stencil/core": "^
|
|
66
|
-
"@stencil/sass": "^3.0.
|
|
67
|
-
"@stencil/react-output-target": "0.5.
|
|
65
|
+
"@stencil/core": "^4.0.2",
|
|
66
|
+
"@stencil/sass": "^3.0.5",
|
|
67
|
+
"@stencil/react-output-target": "0.5.3",
|
|
68
68
|
"jest": "^27.4.5",
|
|
69
69
|
"jest-cli": "^27.4.5",
|
|
70
70
|
"jest-html-reporter": "^3.7.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},__assign.apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,f as i,e,h as s,H as r,g as n}from"./p-b5deb573.js";import{k as a,A as l,g as h,s as c,v as p,m as b,K as d,c as u,Q as x,V as f,W as g,X as w,I as m,a2 as k}from"./p-bd5ece4c.js";import{f as v,p as y,s as _,d as j,r as C,h as P,b as A}from"./p-afa2af1e.js";import{F as R}from"./p-3879be61.js";import{a as z}from"./p-55182fcf.js";import{c as I}from"./p-ad2e21d2.js";import{F as E}from"./p-68cd7d9a.js";import{F as M}from"./p-fb03f2f5.js";import"./p-82b5fac1.js";import"./p-0fd98ab4.js";import"./p-fd1323da.js";import"./p-fb0b5466.js";import"./p-6507e9eb.js";var O;!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."}(O||(O={}));class S{constructor(){this.globalFilterValue="",this.sortBy="",this.selectedRowsState="",this.pageSelected=1,this.rowsPerPage=0,this.load=!1}toDebugString(){return"box state"}}var B,D,W,$,T,F,L=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)},H=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 G=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),B.add(this),this.state=new S,this.kupManager=a(),this.visibleColumns=[],this.rows=[],this.filteredRows=[],this.sectionRef=null,this.rowsRefs=[],this.hold=!1,this.interactableDrag=[],this.interactableDrop=[],this.interactableTouch=[],D.set(this,void 0),W.set(this,[]),$.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(){l(this.getRows()),this.initVisibleColumns(),this.initRows(),this.checkLayout()}onLayoutChanged(){this.checkLayout()}onSelectBoxChanged(){this.handleAutomaticBoxSelection()}async getProps(t){return h(this,O,t)}async loadRowActions(t,o){t.actions=o,this.rowActionMenuOpened=t}async refresh(){i(this)}async setProps(t){c(this,O,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=v(this.filteredRows,null,this.globalFilterValue,this.visibleColumns)),this.rows=this.sortRows(this.filteredRows),this.pagination&&(this.rows=y(this.rows,this.currentPage,this.currentRowsPerPage,!1))}sortRows(t){let o=t;return this.sortBy&&(o=_(o,[{column:this.sortBy,sortMode:k.A}])),o}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=p(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=p(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 e))return;let i=t,s=i.classList;for(;!s.contains("box-object")&&!s.contains("box-section")&&!s.contains("box")&&(i=i.parentElement,null!==i);)s=i.classList;let r=null;s.contains("box-object")&&(r=i.dataset.column),this.kupBoxClick.emit({comp:this,id:this.rootElement.id,row:o,column:r}),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=j(t,this.filteredRows.length,this.currentRowsPerPage);o&&(this.currentPage=o)}handleRowsPerPageChange(t){const o=C(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 s("kup-card",Object.assign({data:i},this.cardData))}renderRow(t){const o=[...this.visibleColumns];let i=null,e=t.layout;e||(e=this.boxLayout);let r=!1;if(e){e.horizontal&&(r=!0);const s=e.sections;let n=s.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(s[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=s("div",{class:"box-selection"},s("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)=>s("li",{tabindex:"0",onClick:()=>this.onRowActionClick(t,o,i)},s("div",{class:`icon ${o.icon}`}),s("div",{class:"text"},o.text))));i=s("ul",null,o)}l=s("div",{class:"row-actions-wrapper"},s("div",{class:"row-actions-toggler"},s("svg",{version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24",onClick:()=>this.onRowAction(t)},s("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"})),s("div",{class:o},i)))}let h=null;return t.badgeData&&t.badgeData.length>0&&(h=t.badgeData.map((t=>s("kup-badge",{text:t.text,class:t.className?`centered ${t.className}`:"centered",imageData:t.imageData})))),s("div",{class:"box-wrapper",style:t.style||{},ref:t=>L(this,W,"f").push(t)},s("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,e){let r=null;if(t.sections&&t.sections.length>0){const o=t.sections;let s=o.length,n=0;for(s>0&&(r=[]);s-- >0;)r.push(this.renderSection(o[n++],t,i,e))}else if(t.content){const o=t.content;let s=o.length,n=0;for(s>0&&(r=[]);s-- >0;)r.push(this.renderBoxObject({boxObject:o[n++],row:i,visibleColumns:e},!0))}else e.length>0&&(r=this.renderBoxObject({boxObject:{column:e[0].name},row:i,visibleColumns:e}));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 e="";e=t.title?t.title:this.kupManager.language.translate(n?b.COLLAPSE:b.EXPAND),c=s("div",{class:l,style:h},s("div",{class:o},r),s("div",{class:"header",role:"button",onClick:o=>{o.stopPropagation(),this.toggleSectionExpand(i,t)}},s("div",{class:"header-content"},s("span",null,e),s(R,{resource:`${d.DROPDOWN}`,sizeX:"1.25em",sizeY:"1.25em",wrapperClass:n?"toggled":""}))))}else{const o=t.title?s("h3",null,t.title):null;c=s("div",{class:l,style:h},o,r)}return c}renderBoxObject({boxObject:t,row:o,visibleColumns:i},e){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)):e&&(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+";")),s("div",{"data-cell":l,"data-row":o,"data-column":t.column,class:r,style:{},title:h},l&&n?s(E,Object.assign({},{cell:l,column:n,component:this,editable:this.editableData,renderKup:!0,row:o,setSizes:!0,shape:t.shape})):s("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.",u.ERROR),{jsx:s("div",{id:"empty-data-message",class:"box-wrapper"},s("div",{ref:t=>this.rowsRefs.push(t)}),this.kupManager.language.translate(b.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,u.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 e=t[i].labels,r={data:[]};for(let t=0;t<e.length;t++)r.data.push({value:e[t],id:e[t]});o.push(s("div",{class:"kanban-section"},s(z,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,x.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,x.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:p(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},f.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:`[${g}]`},{dispatcher:this.rootElement,type:w.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:`[${g}]`},{callback:t,dispatcher:this.rootElement,type:w.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")?H(this,$,document.querySelector(".header").clientHeight,"f"):H(this,$,0,"f"),document.querySelector(".topbar")&&H(this,$,L(this,$,"f")+document.querySelector(".topbar").clientHeight,"f"),L(this,B,"m",F).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++)M(o[t])}this.checkScrollOnHover(),this.persistState(),this.didRenderInteractables(),L(this,B,"m",T).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(b.SORT_BY),trailingIcon:!0};o=s("div",{id:"sort-panel"},s("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=s("div",{id:"global-filter"},s("kup-text-field",{fullWidth:!0,label:this.kupManager.language.translate(m.SEARCH),icon:d.SEARCH,initialValue:this.globalFilterValue,"onkup-textfield-input":t=>{window.clearTimeout(this.globalFilterTimeout),this.globalFilterTimeout=window.setTimeout((()=>this.onGlobalFilterChange(t)),600)}})));let e=null;!this.lazyLoadRows&&this.pagination&&(e=s(A,{id:top?"top-paginator":"bottom-paginator",currentPage:this.currentPage,max:this.filteredRows.length,mode:P.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=s("div",{id:"empty-data-message",class:"box-wrapper"},s("div",{class:"box",ref:t=>this.rowsRefs.push(t)},this.kupManager.language.translate(b.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 s(r,null,s("style",null,this.kupManager.theme.setKupStyle(this.rootElement)),s("div",{id:I},s("div",{class:"box-component",ref:t=>this.sectionRef=t},o,i,e,s("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 n(this)}static get watchers(){return{rowsPerPage:["rowsPerPageHandler","recalculateRows"],globalFilterValue:["recalculateRows"],sortBy:["recalculateRows"],pagination:["recalculateRows"],currentPage:["recalculateRows"],currentRowsPerPage:["recalculateRows"],data:["onDataChanged"],layout:["onLayoutChanged"],selectBox:["onSelectBoxChanged"]}}};D=new WeakMap,W=new WeakMap,$=new WeakMap,B=new WeakSet,T=function(){this.lazyLoadRows&&this.currentRowsPerPage<this.data.rows.length&&L(this,D,"f").observe(L(this,W,"f")[L(this,W,"f").length-1])},F=function(){const t={threshold:0,rootMargin:"-"+L(this,$,"f")+"px 0px 0px 0px"};H(this,D,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"),L(this,D,"f").unobserve(t.target)}}))}),t),"f")},G.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{G as kup_box}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1,l=!1;const o=e=>{const t=new URL(e,re.t);return t.origin!==se.location.origin?t.href:t.pathname},s=e=>re.t=e,i="http://www.w3.org/1999/xlink",c={},r=e=>"object"==(e=typeof e)||"function"===e;function a(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const u=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!r(l))&&(l+=""),s&&i?c[c.length-1].l+=l:c.push(s?f(null,l):l),i=s)};if(a(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,p);const u=f(e,null);return u.o=t,c.length>0&&(u.i=c),u.u=o,u},f=(e,t)=>({p:0,h:e,l:t,m:null,i:null,o:null,u:null}),d={},p={forEach:(e,t)=>e.map(h).forEach(t),map:(e,t)=>e.map(h).map(t).map(m)},h=e=>({vattrs:e.o,vchildren:e.i,vkey:e.u,vname:e.v,vtag:e.h,vtext:e.l}),m=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),u(e.vtag,t,...e.vchildren||[])}const t=f(e.vtag,e.vtext);return t.o=e.vattrs,t.i=e.vchildren,t.u=e.vkey,t.v=e.vname,t},y=e=>X(e).$,v=(e,t,n)=>{const l=y(e);return{emit:e=>$(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},$=(e,t,n)=>{const l=re.ce(t,n);return e.dispatchEvent(l),l},w=new WeakMap,b=e=>"sc-"+e.g,g=(e,t,n,l,o,s)=>{if(n!==l){let c=ee(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,o=k(n),s=k(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const u=r(l);if((c||u&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(i,t):e.removeAttribute(t)):(!c||4&s||o)&&!u&&(l=!0===l?"":l,f?e.setAttributeNS(i,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ee(se,a)?a.slice(2):a[2]+t.slice(3),n&&re.rel(e,t,n,!1),l&&re.ael(e,t,l,!1)}},j=/\s/,k=e=>e?e.split(j):[],S=(e,t,n,l)=>{const o=11===t.m.nodeType&&t.m.host?t.m.host:t.m,s=e&&e.o||c,i=t.o||c;for(l in s)l in i||g(o,l,s[l],void 0,n,t.p);for(l in i)g(o,l,s[l],i[l],n,t.p)},O=(t,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.m=ie.createTextNode(s.l);else{if(n||(n="svg"===s.h),i=s.m=ie.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.h),n&&"foreignObject"===s.h&&(n=!1),S(null,s,n),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.i)for(r=0;r<s.i.length;++r)c=O(t,s,r),c&&i.appendChild(c);"svg"===s.h?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i},M=(e,n,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=O(null,l,s),c&&(o[s].m=c,r.insertBefore(c,n)))},x=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.m;L(t),e&&e.remove()}}},C=(e,t)=>e.h===t.h&&e.u===t.u,P=(e,t)=>{const l=t.m=e.m,o=e.i,s=t.i,i=t.h,c=t.l;null===c?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||S(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,a=0,u=t.length-1,f=t[0],d=t[u],p=l.length-1,h=l[0],m=l[p];for(;i<=u&&c<=p;)if(null==f)f=t[++i];else if(null==d)d=t[--u];else if(null==h)h=l[++c];else if(null==m)m=l[--p];else if(C(f,h))P(f,h),f=t[++i],h=l[++c];else if(C(d,m))P(d,m),d=t[--u],m=l[--p];else if(C(f,m))P(f,m),e.insertBefore(f.m,d.m.nextSibling),f=t[++i],m=l[--p];else if(C(d,h))P(d,h),e.insertBefore(d.m,f.m),d=t[--u],h=l[++c];else{for(r=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].u&&t[a].u===h.u){r=a;break}r>=0?(s=t[r],s.h!==h.h?o=O(t&&t[c],n,r):(P(s,h),t[r]=void 0,o=s.m),h=l[++c]):(o=O(t&&t[c],n,c),h=l[++c]),o&&f.m.parentNode.insertBefore(o,f.m)}i>u?M(e,null==l[p+1]?null:l[p+1].m,n,l,c,p):c>p&&x(t,i,u)})(l,o,t,s):null!==s?(null!==e.l&&(l.textContent=""),M(l,null,t,s,0,s.length-1)):null!==o&&x(o,0,o.length-1),n&&"svg"===i&&(n=!1)):e.l!==c&&(l.data=c)},L=e=>{e.o&&e.o.ref&&e.o.ref(null),e.i&&e.i.map(L)},R=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},U=(e,t)=>{if(e.p|=16,!(4&e.p))return R(e,e.k),ve((()=>W(e,t)));e.p|=512},W=(e,t)=>{const n=e.S;let l;return t?(e.p|=256,e.O&&(e.O.map((([e,t])=>q(n,e,t))),e.O=void 0),l=q(n,"componentWillLoad")):l=q(n,"componentWillUpdate"),l=E(l,(()=>q(n,"componentWillRender"))),E(l,(()=>N(e,n,t)))},E=(e,t)=>D(e)?e.then(t):t(),D=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,N=async(e,t,n)=>{var l;const o=e.$,s=o["s-rc"];n&&(e=>{const t=e.M,n=e.$,l=t.p,o=((e,t)=>{var n;let l=b(t);const o=oe.get(l);if(e=11===e.nodeType?e:ie,o)if("string"==typeof o){let t,s=w.get(e=e.head||e);if(s||w.set(e,s=new Set),!s.has(l)){{t=ie.createElement("style"),t.innerHTML=o;const l=null!==(n=re.C)&&void 0!==n?n:a(ie);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);T(e,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],n=()=>A(e);0===t.length?n():(Promise.all(t).then(n),e.p|=4,t.length=0)}},T=(n,l)=>{try{l=l.render(),n.p&=-17,n.p|=2,((n,l)=>{const o=n.$,s=n.M,i=n.P||f(null,null),c=(e=>e&&e.h===d)(l)?l:u(null,null,l);t=o.tagName,s.L&&(c.o=c.o||{},s.L.map((([e,t])=>c.o[t]=o[e]))),c.h=null,c.p|=4,n.P=c,c.m=i.m=o.shadowRoot||o,e=o["s-sc"],P(i,c)})(n,l)}catch(e){te(e,n.$)}return null},A=e=>{const t=e.$,n=e.S,l=e.k;q(n,"componentDidRender"),64&e.p?q(n,"componentDidUpdate"):(e.p|=64,V(t),q(n,"componentDidLoad"),e.R(t),l||H()),e.U(t),e.j&&(e.j(),e.j=void 0),512&e.p&&ye((()=>U(e,!1))),e.p&=-517},F=e=>{{const t=X(e),n=t.$.isConnected;return n&&2==(18&t.p)&&U(t,!1),n}},H=()=>{V(ie.documentElement),ye((()=>$(se,"appload",{detail:{namespace:"ketchup"}})))},q=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){te(e)}},V=e=>e.classList.add("hydrated"),_=(e,t,n)=>{if(t.W){e.watchers&&(t.D=e.watchers);const l=Object.entries(t.W),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>X(this).N.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=X(e),s=o.$,i=o.N.get(t),c=o.p,a=o.S;if(n=((e,t)=>null==e||r(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),(!(8&c)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.N.set(t,n),a)){if(l.D&&128&c){const e=l.D[t];e&&e.map((e=>{try{a[e](n,i,t)}catch(e){te(e,s)}}))}2==(18&c)&&U(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=X(this);return n.T.then((()=>n.S[e](...t)))}})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){re.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.L.push([e,o]),o}))}}return e},z=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=se.customElements,i=ie.head,c=i.querySelector("meta[charset]"),r=ie.createElement("style"),u=[];let f,d=!0;Object.assign(re,t),re.t=new URL(t.resourcesUrl||"./",ie.baseURI).href,e.map((e=>{e[1].map((t=>{const n={p:t[0],g:t[1],W:t[2],A:t[3]};n.W=t[2],n.A=t[3],n.L=[],n.D={};const i=n.g,c=class extends HTMLElement{constructor(e){super(e),Z(e=this,n),1&n.p&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?u.push(this):re.jmp((()=>(e=>{if(0==(1&re.p)){const t=X(e),n=t.M,l=()=>{};if(1&t.p)B(e,t,n.A);else{t.p|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){R(t,t.k=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.p)){t.p|=32;{if((o=le(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.D=o.watchers,_(o,n,2),o.isProxied=!0);const e=()=>{};t.p|=8;try{new o(t)}catch(e){te(e)}t.p&=-9,t.p|=128,e()}if(o.style){let e=o.style;const t=b(n);if(!oe.has(t)){const l=()=>{};((e,t,n)=>{let l=oe.get(e);ue&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,oe.set(e,l)})(t,e,!!(1&n.p)),l()}}}const s=t.k,i=()=>U(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){re.jmp((()=>(()=>{if(0==(1&re.p)){const e=X(this),t=e.S;e.F&&(e.F.map((e=>e())),e.F=void 0),q(t,"disconnectedCallback")}})()))}componentOnReady(){return X(this).H}};n.q=e[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,_(c,n,1)))}))}));{r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles","");const e=null!==(n=re.C)&&void 0!==n?n:a(ie);null!=e&&r.setAttribute("nonce",e),i.insertBefore(r,c?c.nextSibling:i.firstChild)}d=!1,u.length?u.map((e=>e.connectedCallback())):re.jmp((()=>f=setTimeout(H,30)))},B=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=I(e,n),i=G(t,o),c=J(n);re.ael(s,l,i,c),(t.F=t.F||[]).push((()=>re.rel(s,l,i,c)))}))},G=(e,t)=>n=>{try{256&e.p?e.S[t](n):(e.O=e.O||[]).push([t,n])}catch(e){te(e)}},I=(e,t)=>4&t?ie:e,J=e=>0!=(2&e),K=e=>re.C=e,Q=new WeakMap,X=e=>Q.get(e),Y=(e,t)=>Q.set(t.S=e,t),Z=(e,t)=>{const n={p:0,$:e,M:t,N:new Map};return n.T=new Promise((e=>n.U=e)),n.H=new Promise((e=>n.R=e)),e["s-p"]=[],e["s-rc"]=[],B(e,n,t.A),Q.set(e,n)},ee=(e,t)=>t in e,te=(e,t)=>(0,console.error)(e,t),ne=new Map,le=e=>{const t=e.g.replace(/-/g,"_"),n=e.q,l=ne.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ne.set(n,e),e[t])),te)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},oe=new Map,se="undefined"!=typeof window?window:{},ie=se.document||{head:{}},ce=se.HTMLElement||class{},re={p:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},ae=e=>Promise.resolve(e),ue=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),fe=[],de=[],pe=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&re.p?ye(me):re.raf(me))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){te(e)}e.length=0},me=()=>{he(fe),he(de),(l=fe.length>0)&&re.raf(me)},ye=e=>ae().then(e),ve=pe(de,!0);export{d as H,o as a,z as b,v as c,s as d,ce as e,F as f,y as g,u as h,ae as p,Y as r,K as s}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|