@sme.up/ketchup 5.0.0 → 5.1.1
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/README.md +1 -1
- package/dist/cjs/{cell-utils-720be0c8.js → cell-utils-5b16c180.js} +4 -4
- package/dist/cjs/{f-button-dbf3cd3a.js → f-button-3b9f32af.js} +2 -2
- package/dist/cjs/{f-cell-93d984ad.js → f-cell-c6ad973a.js} +6 -6
- package/dist/cjs/{f-chip-438213eb.js → f-chip-bed86c4a.js} +3 -3
- package/dist/cjs/{f-image-21865ab7.js → f-image-08a3d340.js} +2 -2
- package/dist/cjs/{index-ab119fad.js → index-8d7bb3be.js} +4 -1
- package/dist/cjs/ketchup.cjs.js +3 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +5 -5
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +412 -353
- package/dist/cjs/kup-calendar.cjs.entry.js +8 -8
- package/dist/cjs/kup-cell.cjs.entry.js +8 -8
- package/dist/cjs/kup-dash-list.cjs.entry.js +5 -5
- package/dist/cjs/kup-dash_2.cjs.entry.js +5 -5
- package/dist/cjs/kup-drawer.cjs.entry.js +8 -5
- package/dist/cjs/kup-echart.cjs.entry.js +210 -60
- package/dist/cjs/kup-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-iframe.cjs.entry.js +4 -4
- package/dist/cjs/kup-lazy.cjs.entry.js +4 -4
- package/dist/cjs/kup-magic-box.cjs.entry.js +7 -7
- package/dist/cjs/{kup-manager-09c0c1fc.js → kup-manager-4227f0a2.js} +2804 -2598
- package/dist/cjs/kup-nav-bar.cjs.entry.js +6 -6
- package/dist/cjs/kup-photo-frame.cjs.entry.js +179 -0
- package/dist/cjs/kup-probe.cjs.entry.js +3 -3
- package/dist/cjs/kup-qlik.cjs.entry.js +3 -3
- package/dist/cjs/kup-snackbar.cjs.entry.js +7 -7
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{utils-a60ab5fa.js → utils-b9df398c.js} +4 -38
- package/dist/collection/assets/card.js +30 -30
- package/dist/collection/assets/data-table.js +24 -30
- package/dist/collection/assets/echart.js +481 -0
- package/dist/collection/assets/index.js +79 -79
- package/dist/collection/assets/kupdata.js +29 -41
- package/dist/collection/assets/list.js +6 -6
- package/dist/collection/assets/nav-bar.js +4 -4
- package/dist/collection/assets/probe.js +18 -18
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +5 -5
- package/dist/collection/components/kup-box/kup-box.js +9 -9
- package/dist/collection/components/kup-button-list/kup-button-list.js +4 -4
- package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
- package/dist/collection/components/kup-card/built-in/kup-card-column-drop-menu.js +21 -22
- package/dist/collection/components/kup-card/kup-card.js +1 -2
- package/dist/collection/components/kup-chip/kup-chip.js +4 -4
- package/dist/collection/components/kup-combobox/kup-combobox.js +6 -6
- package/dist/collection/components/kup-data-table/kup-data-table-declarations.js +0 -2
- package/dist/collection/components/kup-data-table/kup-data-table-helper.js +31 -32
- package/dist/collection/components/kup-data-table/kup-data-table.js +124 -164
- package/dist/collection/components/kup-drawer/kup-drawer.js +4 -1
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.css +3 -3
- package/dist/collection/components/kup-dropdown-button/kup-dropdown-button.js +14 -14
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +3 -0
- package/dist/collection/components/kup-echart/kup-echart.js +246 -58
- package/dist/collection/components/kup-image/assets/svg/instagram.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/pinterest.svg +1 -0
- package/dist/collection/components/kup-image/assets/svg/reddit.svg +1 -0
- package/dist/collection/components/kup-list/kup-list-helper.js +26 -26
- package/dist/collection/components/kup-list/kup-list.css +35 -3
- package/dist/collection/components/kup-list/kup-list.js +52 -44
- package/dist/collection/components/kup-magic-box/kup-magic-box.js +3 -3
- package/dist/collection/components/kup-nav-bar/kup-nav-bar.js +2 -2
- package/dist/collection/components/kup-photo-frame/kup-photo-frame-declarations.js +10 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.css +70 -0
- package/dist/collection/components/kup-photo-frame/kup-photo-frame.js +382 -0
- package/dist/collection/components/kup-snackbar/kup-snackbar.css +4 -0
- package/dist/collection/components/kup-tab-bar/kup-tab-bar.css +1 -1
- package/dist/collection/components/kup-time-picker/kup-time-picker.js +10 -10
- package/dist/collection/components/kup-tree/kup-tree.js +100 -51
- package/dist/collection/f-components/f-paginator/f-paginator.js +6 -6
- package/dist/collection/managers/kup-data/kup-data-cell-helper.js +2 -2
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +27 -3
- package/dist/collection/managers/kup-data/kup-data-declarations.js +2 -1
- package/dist/collection/managers/kup-data/kup-data-node-helper.js +1 -1
- package/dist/collection/managers/kup-data/kup-data-row-helper.js +2 -2
- package/dist/collection/managers/kup-data/kup-data.js +337 -155
- package/dist/collection/managers/kup-dates/kup-dates.js +2 -2
- package/dist/collection/managers/kup-debug/kup-debug.js +6 -6
- package/dist/collection/managers/kup-dynamic-position/kup-dynamic-position.js +1 -1
- package/dist/collection/managers/kup-language/kup-language.js +2 -2
- package/dist/collection/managers/kup-manager/kup-manager.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-declarations.js +13 -0
- package/dist/collection/managers/kup-math/kup-math-helper.js +39 -0
- package/dist/collection/managers/kup-math/kup-math.js +151 -0
- package/dist/collection/managers/kup-objects/kup-objects.js +48 -1
- package/dist/collection/managers/kup-theme/kup-theme.js +2 -2
- package/dist/collection/utils/cell-utils.js +2 -3
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/collection/utils/utils.js +3 -74
- package/dist/esm/{cell-utils-b80ccb8c.js → cell-utils-69f75e2e.js} +4 -4
- package/dist/esm/{f-button-9e835467.js → f-button-7e7607d8.js} +2 -2
- package/dist/esm/{f-cell-f8bb2e04.js → f-cell-e4d83c27.js} +6 -6
- package/dist/esm/{f-chip-953c6915.js → f-chip-51dfefaf.js} +3 -3
- package/dist/esm/{f-image-78c5265e.js → f-image-de331954.js} +2 -2
- package/dist/esm/{index-78f3699d.js → index-aeec9835.js} +4 -1
- package/dist/esm/ketchup.js +3 -3
- package/dist/esm/kup-accordion.entry.js +5 -5
- package/dist/esm/kup-autocomplete_27.entry.js +412 -353
- package/dist/esm/kup-calendar.entry.js +8 -8
- package/dist/esm/kup-cell.entry.js +8 -8
- package/dist/esm/kup-dash-list.entry.js +5 -5
- package/dist/esm/kup-dash_2.entry.js +5 -5
- package/dist/esm/kup-drawer.entry.js +8 -5
- package/dist/esm/kup-echart.entry.js +210 -60
- package/dist/esm/kup-field.entry.js +3 -3
- package/dist/esm/kup-iframe.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +4 -4
- package/dist/esm/kup-magic-box.entry.js +7 -7
- package/dist/esm/{kup-manager-bba62291.js → kup-manager-0ab94726.js} +2805 -2598
- package/dist/esm/kup-nav-bar.entry.js +6 -6
- package/dist/esm/kup-photo-frame.entry.js +175 -0
- package/dist/esm/kup-probe.entry.js +3 -3
- package/dist/esm/kup-qlik.entry.js +3 -3
- package/dist/esm/kup-snackbar.entry.js +7 -7
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{utils-d1569956.js → utils-35c7a90d.js} +5 -37
- package/dist/ketchup/assets/svg/instagram.svg +1 -0
- package/dist/ketchup/assets/svg/pinterest.svg +1 -0
- package/dist/ketchup/assets/svg/reddit.svg +1 -0
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-0751aaf6.entry.js +1 -0
- package/dist/ketchup/p-10c8d755.js +1 -0
- package/dist/ketchup/{p-aa27f9f7.entry.js → p-24df4f29.entry.js} +2 -2
- package/dist/ketchup/{p-29800a2e.js → p-2d4f19f4.js} +1 -1
- package/dist/ketchup/p-33073f4a.js +1 -0
- package/dist/ketchup/p-3445be1e.entry.js +1 -0
- package/dist/ketchup/p-3813281b.entry.js +1 -0
- package/dist/ketchup/p-4081f5f7.entry.js +1 -0
- package/dist/ketchup/p-47b57d97.js +1 -0
- package/dist/ketchup/p-5186885c.entry.js +1 -0
- package/dist/ketchup/{p-f993f813.js → p-5d190cf5.js} +1 -1
- package/dist/ketchup/p-67c64257.entry.js +1 -0
- package/dist/ketchup/p-68fc1428.entry.js +1 -0
- package/dist/ketchup/p-8be1337b.js +1 -0
- package/dist/ketchup/p-8f735633.entry.js +1 -0
- package/dist/ketchup/p-96101f09.entry.js +39 -0
- package/dist/ketchup/p-9bcda66f.entry.js +1 -0
- package/dist/ketchup/p-b5e1dbfa.entry.js +1 -0
- package/dist/ketchup/{p-ebf4cf56.js → p-c314b1e6.js} +1 -1
- package/dist/ketchup/p-d7af8156.entry.js +1 -0
- package/dist/ketchup/p-dbe87a3f.entry.js +143 -0
- package/dist/ketchup/p-ee33cbe9.js +9 -0
- package/dist/ketchup/p-f250d42b.entry.js +1 -0
- package/dist/ketchup/p-f9c41e20.entry.js +1 -0
- package/dist/ketchup/p-fea316ab.entry.js +1 -0
- package/dist/types/components/kup-button-list/kup-button-list-declarations.d.ts +2 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +0 -2
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +8 -15
- package/dist/types/components/kup-dropdown-button/kup-dropdown-button.d.ts +1 -1
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +3 -0
- package/dist/types/components/kup-echart/kup-echart.d.ts +12 -1
- package/dist/types/components/kup-list/kup-list-declarations.d.ts +3 -7
- package/dist/types/components/kup-list/kup-list-helper.d.ts +6 -6
- package/dist/types/components/kup-list/kup-list.d.ts +2 -2
- package/dist/types/components/kup-photo-frame/kup-photo-frame-declarations.d.ts +9 -0
- package/dist/types/components/kup-photo-frame/kup-photo-frame.d.ts +61 -0
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree.d.ts +1 -1
- package/dist/types/components.d.ts +110 -28
- package/dist/types/managers/kup-data/kup-data-column-helper.d.ts +9 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +4 -25
- package/dist/types/managers/kup-data/kup-data-node-helper.d.ts +1 -1
- package/dist/types/managers/kup-data/kup-data.d.ts +63 -27
- package/dist/types/managers/kup-manager/kup-manager-declarations.d.ts +11 -0
- package/dist/types/managers/kup-manager/kup-manager.d.ts +2 -0
- package/dist/types/managers/kup-math/kup-math-declarations.d.ts +21 -0
- package/dist/types/managers/kup-math/kup-math-helper.d.ts +17 -0
- package/dist/types/managers/kup-math/kup-math.d.ts +60 -0
- package/dist/types/managers/kup-objects/kup-objects.d.ts +22 -0
- package/dist/types/utils/utils.d.ts +0 -18
- package/package.json +2 -2
- package/dist/collection/managers/kup-data/kup-data-dataset-helper.js +0 -262
- package/dist/collection/managers/kup-data/kup-data-helper.js +0 -61
- package/dist/collection/utils/state-utils.js +0 -9
- package/dist/ketchup/p-0032a782.entry.js +0 -1
- package/dist/ketchup/p-18c4d083.entry.js +0 -1
- package/dist/ketchup/p-199c972e.entry.js +0 -1
- package/dist/ketchup/p-34aa8d8a.entry.js +0 -1
- package/dist/ketchup/p-542279e9.entry.js +0 -1
- package/dist/ketchup/p-5b26a7a8.entry.js +0 -39
- package/dist/ketchup/p-5c97e7ab.js +0 -1
- package/dist/ketchup/p-6817ca85.entry.js +0 -1
- package/dist/ketchup/p-76e674ca.entry.js +0 -1
- package/dist/ketchup/p-78aa6f1b.js +0 -1
- package/dist/ketchup/p-842b66aa.entry.js +0 -1
- package/dist/ketchup/p-894981c0.entry.js +0 -143
- package/dist/ketchup/p-8ac2fa75.entry.js +0 -1
- package/dist/ketchup/p-907c9e11.entry.js +0 -1
- package/dist/ketchup/p-9ae9149b.entry.js +0 -1
- package/dist/ketchup/p-b0d1bdd8.js +0 -9
- package/dist/ketchup/p-e1e4c951.entry.js +0 -1
- package/dist/ketchup/p-eba369d9.entry.js +0 -1
- package/dist/ketchup/p-ed0b8666.js +0 -1
- package/dist/ketchup/p-fa540f82.js +0 -1
- package/dist/types/managers/kup-data/kup-data-dataset-helper.d.ts +0 -42
- package/dist/types/managers/kup-data/kup-data-helper.d.ts +0 -11
- package/dist/types/utils/state-utils.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24"><path d="M9.04,21.54C10,21.83 10.97,22 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2A10,10 0 0,0 2,12C2,16.25 4.67,19.9 8.44,21.34C8.35,20.56 8.26,19.27 8.44,18.38L9.59,13.44C9.59,13.44 9.3,12.86 9.3,11.94C9.3,10.56 10.16,9.53 11.14,9.53C12,9.53 12.4,10.16 12.4,10.97C12.4,11.83 11.83,13.06 11.54,14.24C11.37,15.22 12.06,16.08 13.06,16.08C14.84,16.08 16.22,14.18 16.22,11.5C16.22,9.1 14.5,7.46 12.03,7.46C9.21,7.46 7.55,9.56 7.55,11.77C7.55,12.63 7.83,13.5 8.29,14.07C8.38,14.13 8.38,14.21 8.35,14.36L8.06,15.45C8.06,15.62 7.95,15.68 7.78,15.56C6.5,15 5.76,13.18 5.76,11.71C5.76,8.55 8,5.68 12.32,5.68C15.76,5.68 18.44,8.15 18.44,11.43C18.44,14.87 16.31,17.63 13.26,17.63C12.29,17.63 11.34,17.11 11,16.5L10.33,18.87C10.1,19.73 9.47,20.88 9.04,21.57V21.54Z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24"><path d="M14.5 15.41C14.58 15.5 14.58 15.69 14.5 15.8C13.77 16.5 12.41 16.56 12 16.56C11.61 16.56 10.25 16.5 9.54 15.8C9.44 15.69 9.44 15.5 9.54 15.41C9.65 15.31 9.82 15.31 9.92 15.41C10.38 15.87 11.33 16 12 16C12.69 16 13.66 15.87 14.1 15.41C14.21 15.31 14.38 15.31 14.5 15.41M10.75 13.04C10.75 12.47 10.28 12 9.71 12C9.14 12 8.67 12.47 8.67 13.04C8.67 13.61 9.14 14.09 9.71 14.08C10.28 14.08 10.75 13.61 10.75 13.04M14.29 12C13.72 12 13.25 12.5 13.25 13.05S13.72 14.09 14.29 14.09C14.86 14.09 15.33 13.61 15.33 13.05C15.33 12.5 14.86 12 14.29 12M22 12C22 17.5 17.5 22 12 22S2 17.5 2 12C2 6.5 6.5 2 12 2S22 6.5 22 12M18.67 12C18.67 11.19 18 10.54 17.22 10.54C16.82 10.54 16.46 10.7 16.2 10.95C15.2 10.23 13.83 9.77 12.3 9.71L12.97 6.58L15.14 7.05C15.16 7.6 15.62 8.04 16.18 8.04C16.75 8.04 17.22 7.57 17.22 7C17.22 6.43 16.75 5.96 16.18 5.96C15.77 5.96 15.41 6.2 15.25 6.55L12.82 6.03C12.75 6 12.68 6.03 12.63 6.07C12.57 6.11 12.54 6.17 12.53 6.24L11.79 9.72C10.24 9.77 8.84 10.23 7.82 10.96C7.56 10.71 7.2 10.56 6.81 10.56C6 10.56 5.35 11.21 5.35 12C5.35 12.61 5.71 13.11 6.21 13.34C6.19 13.5 6.18 13.62 6.18 13.78C6.18 16 8.79 17.85 12 17.85C15.23 17.85 17.85 16.03 17.85 13.78C17.85 13.64 17.84 13.5 17.81 13.34C18.31 13.11 18.67 12.6 18.67 12Z" /></svg>
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { ItemsDisplayMode, } from './kup-list-declarations';
|
|
2
|
-
export function
|
|
2
|
+
export function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
3
3
|
if (mode == ItemsDisplayMode.CODE) {
|
|
4
|
-
return item.
|
|
4
|
+
return item.id;
|
|
5
5
|
}
|
|
6
6
|
if (mode == ItemsDisplayMode.DESCRIPTION) {
|
|
7
|
-
return item.
|
|
7
|
+
return item.value;
|
|
8
8
|
}
|
|
9
9
|
if (mode == ItemsDisplayMode.DESCRIPTION_AND_CODE) {
|
|
10
|
-
return item.
|
|
10
|
+
return item.id + separator + item.value;
|
|
11
11
|
}
|
|
12
|
-
return item.
|
|
12
|
+
return item.id;
|
|
13
13
|
}
|
|
14
|
-
export function consistencyCheck(
|
|
14
|
+
export function consistencyCheck(idIn, listData, listEl, selectMode, displayMode, e) {
|
|
15
15
|
const validList = !!(listEl && listData && listData['data']);
|
|
16
|
-
let
|
|
16
|
+
let id = '';
|
|
17
17
|
let displayedValue = '';
|
|
18
18
|
let selected = null;
|
|
19
19
|
if (e != null) {
|
|
20
20
|
selected = e.detail.selected;
|
|
21
21
|
}
|
|
22
|
-
if (selected == null &&
|
|
23
|
-
selected = getItemByDisplayMode(listData,
|
|
22
|
+
if (selected == null && idIn != null && validList) {
|
|
23
|
+
selected = getItemByDisplayMode(listData, idIn, displayMode, true);
|
|
24
24
|
listEl.data = [...listData['data']];
|
|
25
25
|
}
|
|
26
|
-
if (selected == null &&
|
|
26
|
+
if (selected == null && idIn == null && listData) {
|
|
27
27
|
selected = getFirstItemSelected(listData);
|
|
28
28
|
}
|
|
29
29
|
if (selected == null) {
|
|
30
30
|
selected = {
|
|
31
|
-
|
|
32
|
-
value:
|
|
31
|
+
id: idIn == null ? '' : idIn,
|
|
32
|
+
value: idIn == null ? '' : idIn,
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
displayedValue =
|
|
37
|
-
const trueValue =
|
|
35
|
+
id = getIdOfItemByDisplayMode(selected, selectMode, ' - ');
|
|
36
|
+
displayedValue = getIdOfItemByDisplayMode(selected, displayMode, ' - ');
|
|
37
|
+
const trueValue = getIdOfItemByDisplayMode(selected, ItemsDisplayMode.CODE, ' - ');
|
|
38
38
|
return {
|
|
39
|
-
value:
|
|
39
|
+
value: id,
|
|
40
40
|
displayedValue: displayedValue,
|
|
41
41
|
exists: validList &&
|
|
42
|
-
listData['data'].find((x) => x.
|
|
42
|
+
listData['data'].find((x) => x.id === trueValue)
|
|
43
43
|
? true
|
|
44
44
|
: false,
|
|
45
45
|
};
|
|
@@ -54,7 +54,7 @@ export function getFirstItemSelected(listData) {
|
|
|
54
54
|
}
|
|
55
55
|
return null;
|
|
56
56
|
}
|
|
57
|
-
export function
|
|
57
|
+
export function getItemById(listData, id, setSelected) {
|
|
58
58
|
if (listData && listData['data']) {
|
|
59
59
|
let found = false;
|
|
60
60
|
let item = null;
|
|
@@ -63,8 +63,8 @@ export function getItemByValue(listData, value, setSelected) {
|
|
|
63
63
|
listData['data'][i].selected = false;
|
|
64
64
|
}
|
|
65
65
|
if (!found &&
|
|
66
|
-
listData['data'][i].
|
|
67
|
-
|
|
66
|
+
listData['data'][i].id.toString().toLowerCase() ==
|
|
67
|
+
id.toString().toLowerCase()) {
|
|
68
68
|
item = listData['data'][i];
|
|
69
69
|
item.selected = true;
|
|
70
70
|
found = true;
|
|
@@ -74,8 +74,8 @@ export function getItemByValue(listData, value, setSelected) {
|
|
|
74
74
|
return item;
|
|
75
75
|
}
|
|
76
76
|
for (let i = 0; i < listData['data'].length; i++) {
|
|
77
|
-
if (listData['data'][i].
|
|
78
|
-
|
|
77
|
+
if (listData['data'][i].value.toString().toLowerCase() ==
|
|
78
|
+
id.toString().toLowerCase()) {
|
|
79
79
|
item = listData['data'][i];
|
|
80
80
|
item.selected = true;
|
|
81
81
|
found = true;
|
|
@@ -88,18 +88,18 @@ export function getItemByValue(listData, value, setSelected) {
|
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
export function getItemByDisplayMode(listData,
|
|
91
|
+
export function getItemByDisplayMode(listData, id, displayMode, setSelected) {
|
|
92
92
|
if (listData && listData['data']) {
|
|
93
93
|
let found = false;
|
|
94
94
|
let item = null;
|
|
95
95
|
for (let i = 0; i < listData['data'].length; i++) {
|
|
96
|
-
let displayedValue =
|
|
96
|
+
let displayedValue = getIdOfItemByDisplayMode(listData['data'][i], displayMode, ' - ');
|
|
97
97
|
if (setSelected == true) {
|
|
98
98
|
listData['data'][i].selected = false;
|
|
99
99
|
}
|
|
100
100
|
if (!found &&
|
|
101
101
|
displayedValue.toString().toLowerCase() ==
|
|
102
|
-
|
|
102
|
+
id.toString().toLowerCase()) {
|
|
103
103
|
item = listData['data'][i];
|
|
104
104
|
item.selected = true;
|
|
105
105
|
found = true;
|
|
@@ -109,5 +109,5 @@ export function getItemByDisplayMode(listData, value, displayMode, setSelected)
|
|
|
109
109
|
return item;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return getItemById(listData, id, setSelected);
|
|
113
113
|
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* @prop --kup-list-font-weight: Sets font weight of the component.
|
|
7
7
|
* @prop --kup-list-group-item-height: Sets height of each list item when the list contains radio buttons or checkboxes.
|
|
8
8
|
* @prop --kup-list-item-height: Sets height of each list item.
|
|
9
|
-
* @prop --kup-list-item-padding: Sets padding of each list item.
|
|
9
|
+
* @prop --kup-list-item-padding-left: Sets left padding of each list item.
|
|
10
|
+
* @prop --kup-list-item-padding-right: Sets right padding of each list item.
|
|
10
11
|
* @prop --kup-list-max-height-as-menu: Sets max height when list is menu.
|
|
11
12
|
* @prop --kup-list-primary-color: Sets the primary color of the component.
|
|
12
13
|
* @prop --kup-list-primary-color-rgb: Sets the RGB values of the primary color of the component (used for shaders).
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
--kup_list_font_weight: var(--kup-list-font-weight, 400);
|
|
25
26
|
--kup_list_group_item_height: var(--kup-list-group-item-height, 3em);
|
|
26
27
|
--kup_list_item_height: var(--kup-list-item-height, 2.5em);
|
|
27
|
-
--
|
|
28
|
+
--kup_list_item_padding_left: var(--kup-list-item-padding, 0.75em);
|
|
29
|
+
--kup_list_item_padding_right: var(--kup-list-item-padding, 0.75em);
|
|
28
30
|
--kup_list_max_height_as_menu: var(--kup-list-max-height-as-menu, 33vh);
|
|
29
31
|
--kup_list_primary_color: var(
|
|
30
32
|
--kup-list-primary-color,
|
|
@@ -69,7 +71,8 @@
|
|
|
69
71
|
align-items: center;
|
|
70
72
|
-ms-flex-pack: start;
|
|
71
73
|
justify-content: flex-start;
|
|
72
|
-
padding: var(--
|
|
74
|
+
padding-left: var(--kup_list_item_padding_left);
|
|
75
|
+
padding-right: calc( var(--kup_list_item_padding_left) + var(--kup_list_item_expand_padding, 0px) );
|
|
73
76
|
overflow: hidden;
|
|
74
77
|
outline: none;
|
|
75
78
|
transition: background-color var(--kup_list_transition), color var(--kup_list_transition);
|
|
@@ -186,9 +189,38 @@
|
|
|
186
189
|
user-select: none;
|
|
187
190
|
}
|
|
188
191
|
|
|
192
|
+
:host([nested-list]) {
|
|
193
|
+
--kup_list_item_expand_padding: 1.5em;
|
|
194
|
+
max-width: 250px;
|
|
195
|
+
}
|
|
196
|
+
:host([nested-list]) .kup-menu {
|
|
197
|
+
max-height: unset;
|
|
198
|
+
overflow: visible;
|
|
199
|
+
}
|
|
200
|
+
:host([nested-list]) kup-list {
|
|
201
|
+
display: none;
|
|
202
|
+
left: 100%;
|
|
203
|
+
position: absolute;
|
|
204
|
+
top: 0;
|
|
205
|
+
}
|
|
206
|
+
:host([nested-list]) .list-item {
|
|
207
|
+
overflow: visible;
|
|
208
|
+
}
|
|
209
|
+
:host([nested-list]) .list-item__expand-icon {
|
|
210
|
+
position: absolute;
|
|
211
|
+
right: 0;
|
|
212
|
+
}
|
|
213
|
+
:host([nested-list]) .list-item:hover kup-list {
|
|
214
|
+
display: block;
|
|
215
|
+
}
|
|
216
|
+
|
|
189
217
|
/*-------------------------------------------------*/
|
|
190
218
|
/* C o m p o n e n t C l a s s e s */
|
|
191
219
|
/*-------------------------------------------------*/
|
|
220
|
+
:host(.kup-paddingless) .list {
|
|
221
|
+
padding: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
192
224
|
:host(.kup-danger) {
|
|
193
225
|
--kup-list-primary-color: var(--kup-danger-color);
|
|
194
226
|
--kup-list-primary-color-rgb: var(--kup-danger-color-rgb);
|
|
@@ -9,11 +9,11 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
10
10
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
11
11
|
};
|
|
12
|
-
var _KupList_instances, _KupList_kupManager, _KupList_radios, _KupList_listItems,
|
|
12
|
+
var _KupList_instances, _KupList_kupManager, _KupList_radios, _KupList_listItems, _KupList_handleSelection, _KupList_isNested, _KupList_renderListItem, _KupList_getIconTag, _KupList_isMultiSelection, _KupList_isCheckBoxRule, _KupList_isRadioButtonRule, _KupList_isListBoxRule, _KupList_checkRoleType, _KupList_itemCompliant;
|
|
13
13
|
import { Component, Element, Event, forceUpdate, h, Host, Listen, Method, Prop, State, } from '@stencil/core';
|
|
14
14
|
import { KupListProps, KupListRole, } from './kup-list-declarations';
|
|
15
15
|
import { ItemsDisplayMode } from './kup-list-declarations';
|
|
16
|
-
import {
|
|
16
|
+
import { getIdOfItemByDisplayMode } from './kup-list-helper';
|
|
17
17
|
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
18
18
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
19
19
|
import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
|
|
@@ -162,7 +162,7 @@ export class KupList {
|
|
|
162
162
|
this.focused === null ||
|
|
163
163
|
this.focused === undefined) {
|
|
164
164
|
if (this.selected.length === 1) {
|
|
165
|
-
const selectedItem = this.data.find((x) => x.
|
|
165
|
+
const selectedItem = this.data.find((x) => x.id === this.selected[0]);
|
|
166
166
|
this.focused = this.data.indexOf(selectedItem) + 1;
|
|
167
167
|
}
|
|
168
168
|
else {
|
|
@@ -185,7 +185,7 @@ export class KupList {
|
|
|
185
185
|
this.focused === null ||
|
|
186
186
|
this.focused === undefined) {
|
|
187
187
|
if (this.selected.length === 1) {
|
|
188
|
-
const selectedItem = this.data.find((x) => x.
|
|
188
|
+
const selectedItem = this.data.find((x) => x.id === this.selected[0]);
|
|
189
189
|
this.focused = this.data.indexOf(selectedItem) - 1;
|
|
190
190
|
}
|
|
191
191
|
else {
|
|
@@ -240,7 +240,7 @@ export class KupList {
|
|
|
240
240
|
for (let index = 0; index < this.data.length; index++) {
|
|
241
241
|
const el = this.data[index];
|
|
242
242
|
if (el.selected) {
|
|
243
|
-
this.selected.push(el.
|
|
243
|
+
this.selected.push(el.id);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -338,10 +338,10 @@ export class KupList {
|
|
|
338
338
|
"type": "unknown",
|
|
339
339
|
"mutable": true,
|
|
340
340
|
"complexType": {
|
|
341
|
-
"original": "
|
|
342
|
-
"resolved": "
|
|
341
|
+
"original": "KupListNode[]",
|
|
342
|
+
"resolved": "KupListNode[]",
|
|
343
343
|
"references": {
|
|
344
|
-
"
|
|
344
|
+
"KupListNode": {
|
|
345
345
|
"location": "import",
|
|
346
346
|
"path": "./kup-list-declarations"
|
|
347
347
|
}
|
|
@@ -653,7 +653,7 @@ export class KupList {
|
|
|
653
653
|
"Promise": {
|
|
654
654
|
"location": "global"
|
|
655
655
|
},
|
|
656
|
-
"
|
|
656
|
+
"KupListNode": {
|
|
657
657
|
"location": "import",
|
|
658
658
|
"path": "./kup-list-declarations"
|
|
659
659
|
}
|
|
@@ -673,7 +673,7 @@ export class KupList {
|
|
|
673
673
|
"Promise": {
|
|
674
674
|
"location": "global"
|
|
675
675
|
},
|
|
676
|
-
"
|
|
676
|
+
"KupListNode": {
|
|
677
677
|
"location": "import",
|
|
678
678
|
"path": "./kup-list-declarations"
|
|
679
679
|
}
|
|
@@ -797,44 +797,28 @@ export class KupList {
|
|
|
797
797
|
"passive": false
|
|
798
798
|
}]; }
|
|
799
799
|
}
|
|
800
|
-
_KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_instances = new WeakSet(),
|
|
801
|
-
item.selected = false;
|
|
802
|
-
__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_sendInfoToSubComponent).call(this, index, item);
|
|
803
|
-
}, _KupList_sendInfoToSubComponent = function _KupList_sendInfoToSubComponent(index, item) {
|
|
804
|
-
if (__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isRadioButtonRule).call(this)) {
|
|
805
|
-
if (__classPrivateFieldGet(this, _KupList_radios, "f")[index]) {
|
|
806
|
-
let dataTmp = [
|
|
807
|
-
{
|
|
808
|
-
value: item.value,
|
|
809
|
-
label: '',
|
|
810
|
-
checked: item.selected == true ? true : false,
|
|
811
|
-
},
|
|
812
|
-
];
|
|
813
|
-
__classPrivateFieldGet(this, _KupList_radios, "f")[index].data = dataTmp;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}, _KupList_handleSelection = function _KupList_handleSelection(index) {
|
|
800
|
+
_KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_listItems = new WeakMap(), _KupList_instances = new WeakSet(), _KupList_handleSelection = function _KupList_handleSelection(index) {
|
|
817
801
|
if (index !== null && index !== undefined && !isNaN(index)) {
|
|
818
802
|
const listItems = this.rootElement.shadowRoot.querySelectorAll('.list-item');
|
|
819
|
-
const
|
|
820
|
-
const dataEl = this.data.find((x) => x.
|
|
803
|
+
const id = listItems[index].dataset.id;
|
|
804
|
+
const dataEl = this.data.find((x) => x.id === id);
|
|
821
805
|
switch (this.roleType) {
|
|
822
806
|
case KupListRole.GROUP:
|
|
823
|
-
if (this.selected.includes(
|
|
824
|
-
this.selected.splice(this.selected.indexOf(
|
|
807
|
+
if (this.selected.includes(id)) {
|
|
808
|
+
this.selected.splice(this.selected.indexOf(id), 1);
|
|
825
809
|
}
|
|
826
810
|
else {
|
|
827
|
-
this.selected.push(
|
|
811
|
+
this.selected.push(id);
|
|
828
812
|
}
|
|
829
813
|
this.selected = new Array(...this.selected);
|
|
830
814
|
break;
|
|
831
815
|
default:
|
|
832
|
-
this.selected = new Array(
|
|
816
|
+
this.selected = new Array(id);
|
|
833
817
|
break;
|
|
834
818
|
}
|
|
835
819
|
for (let index = 0; index < this.data.length; index++) {
|
|
836
820
|
const item = this.data[index];
|
|
837
|
-
item.selected = this.selected.includes(item.
|
|
821
|
+
item.selected = this.selected.includes(item.id);
|
|
838
822
|
}
|
|
839
823
|
this.kupClick.emit({
|
|
840
824
|
comp: this,
|
|
@@ -842,10 +826,20 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
842
826
|
selected: dataEl,
|
|
843
827
|
});
|
|
844
828
|
}
|
|
829
|
+
}, _KupList_isNested = function _KupList_isNested() {
|
|
830
|
+
return this.rootElement.hasAttribute('nested-list');
|
|
845
831
|
}, _KupList_renderListItem = function _KupList_renderListItem(item, index) {
|
|
846
832
|
if (item.selected != true) {
|
|
847
833
|
item.selected = false;
|
|
848
834
|
}
|
|
835
|
+
if (!item.id) {
|
|
836
|
+
item.id = item.value;
|
|
837
|
+
}
|
|
838
|
+
let nestedList = null;
|
|
839
|
+
if (item.children && item.children.length > 0) {
|
|
840
|
+
this.rootElement.setAttribute('nested-list', '');
|
|
841
|
+
nestedList = (h("kup-list", { class: "kup-paddingless", data: item.children, isMenu: true, menuVisible: true, "nested-list": true }));
|
|
842
|
+
}
|
|
849
843
|
let imageTag = undefined;
|
|
850
844
|
if (this.showIcons == true &&
|
|
851
845
|
item.icon != null &&
|
|
@@ -853,12 +847,12 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
853
847
|
imageTag = __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_getIconTag).call(this, item.icon);
|
|
854
848
|
}
|
|
855
849
|
let primaryTextTag = [
|
|
856
|
-
|
|
850
|
+
getIdOfItemByDisplayMode(item, this.displayMode, ' - '),
|
|
857
851
|
];
|
|
858
852
|
let secTextTag = [];
|
|
859
853
|
if (this.twoLine && item.secondaryText && item.secondaryText != '') {
|
|
860
854
|
primaryTextTag = [
|
|
861
|
-
h("span", { class: "list-item__primary-text" }, item.
|
|
855
|
+
h("span", { class: "list-item__primary-text" }, item.value),
|
|
862
856
|
];
|
|
863
857
|
secTextTag = [
|
|
864
858
|
h("span", { class: "list-item__secondary-text" }, item.secondaryText),
|
|
@@ -866,7 +860,9 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
866
860
|
}
|
|
867
861
|
let classAttr = 'list-item';
|
|
868
862
|
let tabIndexAttr = item.selected == true ? '0' : '-1';
|
|
869
|
-
if (
|
|
863
|
+
if (!__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isNested).call(this) &&
|
|
864
|
+
item.selected == true &&
|
|
865
|
+
__classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isListBoxRule).call(this)) {
|
|
870
866
|
classAttr += ' list-item--selected';
|
|
871
867
|
}
|
|
872
868
|
if (this.focused === index) {
|
|
@@ -889,7 +885,7 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
889
885
|
ariaCheckedAttr = item.selected == true ? 'true' : 'false';
|
|
890
886
|
let dataTmp = [
|
|
891
887
|
{
|
|
892
|
-
value: item.
|
|
888
|
+
value: item.id,
|
|
893
889
|
label: '',
|
|
894
890
|
checked: item.selected == true ? true : false,
|
|
895
891
|
},
|
|
@@ -930,13 +926,25 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
930
926
|
}
|
|
931
927
|
vNodes.push(h("li", { ref: (el) => {
|
|
932
928
|
__classPrivateFieldGet(this, _KupList_listItems, "f").push(el);
|
|
933
|
-
}, class: classAttr, role: roleAttr, tabindex: tabIndexAttr, "data-
|
|
929
|
+
}, class: classAttr, role: roleAttr, tabindex: tabIndexAttr, "data-id": item.id, "aria-selected": ariaSelectedAttr, "aria-checked": ariaCheckedAttr, onBlur: !this.selectable
|
|
934
930
|
? (e) => e.stopPropagation()
|
|
935
931
|
: () => this.onKupBlur(), onFocus: !this.selectable
|
|
936
932
|
? (e) => e.stopPropagation()
|
|
937
933
|
: () => this.onKupFocus(), onClick: !this.selectable
|
|
938
934
|
? (e) => e.stopPropagation()
|
|
939
|
-
: (
|
|
935
|
+
: __classPrivateFieldGet(this, _KupList_instances, "m", _KupList_isNested).call(this)
|
|
936
|
+
? (e) => {
|
|
937
|
+
e.stopPropagation();
|
|
938
|
+
this.onKupClick(index);
|
|
939
|
+
}
|
|
940
|
+
: () => this.onKupClick(index) },
|
|
941
|
+
innerSpanTag,
|
|
942
|
+
nestedList
|
|
943
|
+
? [
|
|
944
|
+
h(FImage, { resource: "chevron-right", sizeX: "1.5em", sizeY: "1.5em", wrapperClass: "list-item__expand-icon" }),
|
|
945
|
+
nestedList,
|
|
946
|
+
]
|
|
947
|
+
: null));
|
|
940
948
|
return vNodes;
|
|
941
949
|
}, _KupList_getIconTag = function _KupList_getIconTag(icon) {
|
|
942
950
|
const large = this.rootElement.classList.contains('kup-large');
|
|
@@ -963,11 +971,11 @@ _KupList_kupManager = new WeakMap(), _KupList_radios = new WeakMap(), _KupList_l
|
|
|
963
971
|
return true;
|
|
964
972
|
}
|
|
965
973
|
if (this.displayMode == ItemsDisplayMode.CODE) {
|
|
966
|
-
return (item.
|
|
974
|
+
return (item.id.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
967
975
|
}
|
|
968
976
|
if (this.displayMode == ItemsDisplayMode.DESCRIPTION) {
|
|
969
|
-
return (item.
|
|
977
|
+
return (item.value.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
970
978
|
}
|
|
971
|
-
return (item.
|
|
972
|
-
item.
|
|
979
|
+
return (item.id.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0 ||
|
|
980
|
+
item.value.toLowerCase().indexOf(this.filter.toLowerCase()) >= 0);
|
|
973
981
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, Element, forceUpdate, h, Host, Method, Prop, State, } from '@stencil/core';
|
|
2
|
-
import { kupManagerInstance
|
|
2
|
+
import { kupManagerInstance } from '../../managers/kup-manager/kup-manager';
|
|
3
3
|
import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
|
|
4
4
|
import { FImage } from '../../f-components/f-image/f-image';
|
|
5
5
|
import { KupMagicBoxProps, KupMagicBoxDisplay, } from './kup-magic-box-declarations';
|
|
@@ -77,9 +77,9 @@ export class KupMagicBox {
|
|
|
77
77
|
for (const key in KupMagicBoxDisplay) {
|
|
78
78
|
if (Object.prototype.hasOwnProperty.call(KupMagicBoxDisplay, key)) {
|
|
79
79
|
listData.push({
|
|
80
|
-
|
|
81
|
-
value: KupMagicBoxDisplay[key],
|
|
80
|
+
id: KupMagicBoxDisplay[key],
|
|
82
81
|
selected: false,
|
|
82
|
+
value: KupMagicBoxDisplay[key],
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -83,8 +83,8 @@ export class KupNavBar {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
return [
|
|
86
|
-
h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-start` }, leftSlots),
|
|
87
|
-
h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-end`, role: "toolbar" }, rightSlots),
|
|
86
|
+
leftSlots.length ? (h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-start` }, leftSlots)) : null,
|
|
87
|
+
rightSlots.length ? (h("section", { class: `${navbarClass}__section ${navbarClass}__section--align-end`, role: "toolbar" }, rightSlots)) : null,
|
|
88
88
|
];
|
|
89
89
|
}
|
|
90
90
|
/*-------------------------------------------------*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props of the kup-photo-frame component.
|
|
3
|
+
* Used to export every prop in an object.
|
|
4
|
+
*/
|
|
5
|
+
export var KupPhotoFrameProps;
|
|
6
|
+
(function (KupPhotoFrameProps) {
|
|
7
|
+
KupPhotoFrameProps["customStyle"] = "Custom style of the component.";
|
|
8
|
+
KupPhotoFrameProps["placeholderAttrs"] = "Html attributes of the picture before the component enters the viewport.";
|
|
9
|
+
KupPhotoFrameProps["resourceAttrs"] = "Html attributes of the picture after the component enters the viewport.";
|
|
10
|
+
})(KupPhotoFrameProps || (KupPhotoFrameProps = {}));
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --kup-photoframe-border: Sets the border of the component.
|
|
3
|
+
* @prop --kup-photoframe-fade-out-time: Sets the time of the plcaeholder's fade out transition.
|
|
4
|
+
*/
|
|
5
|
+
:host {
|
|
6
|
+
--kup_photoframe_border: var(
|
|
7
|
+
--kup-photoframe-border,
|
|
8
|
+
1px inset var(--kup-border-color)
|
|
9
|
+
);
|
|
10
|
+
--kup_photoframe_fade_out_time: var(--kup-photoframe-fade-out-time, 2000ms);
|
|
11
|
+
border: var(--kup_photoframe_border);
|
|
12
|
+
display: block;
|
|
13
|
+
height: 100%;
|
|
14
|
+
position: relative;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#kup-component {
|
|
19
|
+
position: relative;
|
|
20
|
+
height: 100%;
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
img {
|
|
25
|
+
max-height: 100%;
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.horizontal img {
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.vertical img {
|
|
34
|
+
height: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.placeholder {
|
|
38
|
+
display: none;
|
|
39
|
+
transition: opacity var(--kup_photoframe_fade_out_time) ease-out;
|
|
40
|
+
will-change: opacity;
|
|
41
|
+
z-index: 1;
|
|
42
|
+
}
|
|
43
|
+
.placeholder--loaded {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
.placeholder--fade-out {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
position: absolute;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.resource {
|
|
52
|
+
display: none;
|
|
53
|
+
left: 0;
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 0;
|
|
56
|
+
z-index: 0;
|
|
57
|
+
}
|
|
58
|
+
.resource--fade-in {
|
|
59
|
+
display: block;
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*-------------------------------------------------*/
|
|
64
|
+
/* C o m p o n e n t C l a s s e s */
|
|
65
|
+
/*-------------------------------------------------*/
|
|
66
|
+
:host(.kup-fit) img {
|
|
67
|
+
height: 100%;
|
|
68
|
+
object-fit: cover;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|