@sme.up/ketchup 7.1.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{f-button-40953600.js → f-button-1d63db82.js} +2 -2
- package/dist/cjs/{f-cell-e603ae4f.js → f-cell-abc20cee.js} +59 -6
- package/dist/cjs/{f-checkbox-1097ca5d.js → f-checkbox-1148e791.js} +1 -1
- package/dist/cjs/{f-chip-01efabde.js → f-chip-ae40e47a.js} +6 -4
- package/dist/cjs/{f-image-f741cb4c.js → f-image-c5f5880a.js} +2 -2
- package/dist/cjs/{f-paginator-utils-35a6a848.js → f-paginator-utils-e8449af2.js} +3 -3
- package/dist/cjs/{f-text-field-60a2f24c.js → f-text-field-d200b904.js} +2 -2
- package/dist/cjs/{index-ffdb46f6.js → index-1f177abc.js} +120 -2
- package/dist/cjs/ketchup.cjs.js +10 -3
- package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{kup-autocomplete_26.cjs.entry.js → kup-autocomplete_27.cjs.entry.js} +1028 -861
- package/dist/cjs/kup-box.cjs.entry.js +9 -9
- package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
- package/dist/cjs/kup-cell.cjs.entry.js +7 -7
- package/dist/cjs/kup-dash-list.cjs.entry.js +2 -2
- package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
- package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
- package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
- package/dist/cjs/kup-echart.cjs.entry.js +89 -16
- package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
- package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
- package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
- package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
- package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
- package/dist/cjs/{kup-manager-6f05ebe1.js → kup-manager-bbbe0491.js} +58 -13
- package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
- package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +2 -2
- package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
- package/dist/cjs/kup-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/collection/assets/dialog.js +0 -0
- package/dist/collection/assets/echart.js +146 -0
- package/dist/collection/assets/index.js +4 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/kup-autocomplete/kup-autocomplete.js +4 -1
- package/dist/collection/components/kup-card/dialog/kup-card-dialog.js +12 -0
- package/dist/collection/components/kup-card/kup-card.css +0 -22
- package/dist/collection/components/kup-card/kup-card.js +1 -40
- package/dist/collection/components/kup-chip/kup-chip-declarations.js +2 -0
- package/dist/collection/components/kup-chip/kup-chip.js +122 -4
- package/dist/collection/components/kup-combobox/kup-combobox.js +4 -2
- package/dist/collection/components/kup-data-table/kup-data-table.js +12 -23
- package/dist/collection/components/kup-dialog/kup-dialog-declarations.js +14 -0
- package/dist/collection/components/kup-dialog/kup-dialog.css +64 -0
- package/dist/collection/components/kup-dialog/kup-dialog.js +467 -0
- package/dist/collection/components/kup-echart/kup-echart-declarations.js +1 -0
- package/dist/collection/components/kup-echart/kup-echart.js +86 -14
- package/dist/collection/components/kup-list/kup-list-helper.js +6 -4
- package/dist/collection/components/kup-list/kup-list.js +0 -6
- package/dist/collection/f-components/f-cell/f-cell-declarations.js +7 -0
- package/dist/collection/f-components/f-cell/f-cell.js +17 -0
- package/dist/collection/f-components/f-chip/f-chip.js +3 -1
- package/dist/collection/managers/kup-data/kup-data.js +4 -0
- package/dist/collection/managers/kup-interact/kup-interact.js +33 -1
- package/dist/collection/managers/kup-theme/kup-theme-declarations.js +1 -0
- package/dist/collection/types/GenericTypes.js +1 -0
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +6 -3
- package/dist/components/index.d.ts +9 -50
- package/dist/components/index.js +1 -48
- package/dist/components/kup-accordion.js +18 -13
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-autocomplete2.js +1622 -1187
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box2.js +18 -13
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +18 -13
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +18 -13
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dash-list.js +20 -15
- package/dist/components/kup-dash2.js +18 -13
- package/dist/components/kup-dashboard.js +18 -13
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.d.ts +11 -0
- package/dist/components/kup-dialog.js +6 -0
- package/dist/components/kup-drawer.js +18 -13
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart2.js +105 -27
- package/dist/components/kup-family-tree.js +20 -15
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid2.js +18 -13
- package/dist/components/kup-iframe.js +18 -13
- package/dist/components/kup-image-list.js +18 -13
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-lazy.js +18 -13
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +20 -15
- package/dist/components/kup-nav-bar.js +18 -13
- package/dist/components/kup-numeric-picker.js +18 -13
- package/dist/components/kup-photo-frame.js +18 -13
- package/dist/components/kup-probe.js +18 -13
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +18 -13
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +18 -13
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/esm/{f-button-9aec1bc5.js → f-button-a8843fb2.js} +2 -2
- package/dist/esm/{f-cell-556937d0.js → f-cell-aa0acc55.js} +60 -7
- package/dist/esm/{f-checkbox-b721178e.js → f-checkbox-9b3f5f5b.js} +1 -1
- package/dist/esm/{f-chip-677db32a.js → f-chip-4555fb98.js} +6 -4
- package/dist/esm/{f-image-52bb5950.js → f-image-fed7623c.js} +2 -2
- package/dist/esm/{f-paginator-utils-d472e336.js → f-paginator-utils-8c88fab3.js} +3 -3
- package/dist/esm/{f-text-field-88f92118.js → f-text-field-b74f4b58.js} +2 -2
- package/dist/esm/{index-a2197376.js → index-8bd38435.js} +120 -3
- package/dist/esm/ketchup.js +7 -3
- package/dist/esm/kup-accordion.entry.js +3 -3
- package/dist/esm/{kup-autocomplete_26.entry.js → kup-autocomplete_27.entry.js} +1009 -843
- package/dist/esm/kup-box.entry.js +9 -9
- package/dist/esm/kup-calendar.entry.js +5 -5
- package/dist/esm/kup-cell.entry.js +7 -7
- package/dist/esm/kup-dash-list.entry.js +2 -2
- package/dist/esm/kup-dash_2.entry.js +2 -2
- package/dist/esm/kup-dashboard.entry.js +6 -6
- package/dist/esm/kup-drawer.entry.js +2 -2
- package/dist/esm/kup-echart.entry.js +89 -16
- package/dist/esm/kup-family-tree.entry.js +4 -4
- package/dist/esm/kup-iframe.entry.js +2 -2
- package/dist/esm/kup-image-list.entry.js +8 -8
- package/dist/esm/kup-lazy.entry.js +2 -2
- package/dist/esm/kup-magic-box.entry.js +3 -3
- package/dist/esm/{kup-manager-12e99c22.js → kup-manager-311c87ab.js} +59 -14
- package/dist/esm/kup-nav-bar.entry.js +2 -2
- package/dist/esm/kup-numeric-picker.entry.js +3 -3
- package/dist/esm/kup-photo-frame.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +2 -2
- package/dist/esm/kup-qlik.entry.js +2 -2
- package/dist/esm/kup-snackbar.entry.js +4 -4
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-c59e6bc7.entry.js → p-028e4c1d.entry.js} +1 -1
- package/dist/ketchup/p-06d55b09.entry.js +39 -0
- package/dist/ketchup/p-09b2668f.entry.js +27 -0
- package/dist/ketchup/p-115220b5.entry.js +1 -0
- package/dist/ketchup/{p-ce1da4a8.entry.js → p-17d827e8.entry.js} +1 -1
- package/dist/ketchup/{p-60609877.entry.js → p-1d7f90be.entry.js} +1 -1
- package/dist/ketchup/p-1e5fda58.entry.js +1 -0
- package/dist/ketchup/{p-ac33139e.entry.js → p-247362de.entry.js} +1 -1
- package/dist/ketchup/{p-25617855.js → p-388d18a1.js} +1 -1
- package/dist/ketchup/{p-88adddcf.entry.js → p-3a0cf42a.entry.js} +1 -1
- package/dist/ketchup/{p-9570ebfa.js → p-48be0d93.js} +1 -1
- package/dist/ketchup/p-4c0206cf.entry.js +1 -0
- package/dist/ketchup/{p-85c7a3a4.js → p-519f4074.js} +1 -1
- package/dist/ketchup/{p-053824eb.entry.js → p-5f920acd.entry.js} +1 -1
- package/dist/ketchup/{p-ad3e7b2b.entry.js → p-6ae98bb0.entry.js} +1 -1
- package/dist/ketchup/p-6dde2079.entry.js +1 -0
- package/dist/ketchup/p-79b0730b.js +1 -1
- package/dist/ketchup/{p-4f7302a9.js → p-7e9f8adf.js} +1 -1
- package/dist/ketchup/p-7f9912b1.js +1 -0
- package/dist/ketchup/p-8df0191d.entry.js +9 -0
- package/dist/ketchup/{p-e094ebb8.entry.js → p-910249f5.entry.js} +1 -1
- package/dist/ketchup/{p-52f19c4f.entry.js → p-9174622b.entry.js} +1 -1
- package/dist/ketchup/p-9dcfbb1e.js +2 -0
- package/dist/ketchup/{p-23cd5a68.js → p-9f9b6656.js} +1 -1
- package/dist/ketchup/{p-3a7a05a7.entry.js → p-a1708266.entry.js} +1 -1
- package/dist/ketchup/p-b67a295b.js +30 -0
- package/dist/ketchup/{p-485883cb.entry.js → p-bc68a9de.entry.js} +1 -1
- package/dist/ketchup/p-cb28bc8c.js +1 -0
- package/dist/ketchup/p-de9375f7.entry.js +1 -0
- package/dist/ketchup/{p-f44aba79.entry.js → p-df6617bc.entry.js} +1 -1
- package/dist/ketchup/{p-94290b09.entry.js → p-fb6ee94f.entry.js} +1 -1
- package/dist/loader/index.d.ts +9 -0
- package/dist/types/components/kup-autocomplete/kup-autocomplete-declarations.d.ts +4 -2
- package/dist/types/components/kup-card/dialog/kup-card-dialog.d.ts +6 -0
- package/dist/types/components/kup-card/kup-card.d.ts +0 -5
- package/dist/types/components/kup-chip/kup-chip-declarations.d.ts +5 -0
- package/dist/types/components/kup-chip/kup-chip.d.ts +16 -1
- package/dist/types/components/kup-data-table/kup-data-table-declarations.d.ts +1 -1
- package/dist/types/components/kup-dialog/kup-dialog-declarations.d.ts +26 -0
- package/dist/types/components/kup-dialog/kup-dialog.d.ts +77 -0
- package/dist/types/components/kup-echart/kup-echart-declarations.d.ts +2 -1
- package/dist/types/components/kup-family-tree/kup-family-tree-declarations.d.ts +1 -1
- package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +1 -1
- package/dist/types/components.d.ts +185 -11
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +4 -0
- package/dist/types/f-components/f-chip/f-chip-declarations.d.ts +1 -0
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +2 -1
- package/dist/types/managers/kup-dynamic-position/kup-dynamic-position-declarations.d.ts +1 -1
- package/dist/types/managers/kup-interact/kup-interact-declarations.d.ts +2 -2
- package/dist/types/managers/kup-interact/kup-interact.d.ts +11 -0
- package/dist/types/managers/kup-language/kup-language-declarations.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +71 -15
- package/dist/types/types/GenericTypes.d.ts +1 -0
- package/dist/types/utils/filters/filters-declarations.d.ts +2 -0
- package/dist/types/utils/kup-column-menu/kup-column-menu.d.ts +3 -1
- package/package.json +2 -2
- package/dist/ketchup/p-1c371df3.entry.js +0 -39
- package/dist/ketchup/p-278188bf.js +0 -1
- package/dist/ketchup/p-4021d751.entry.js +0 -1
- package/dist/ketchup/p-4fdb684f.js +0 -2
- package/dist/ketchup/p-5483f20e.js +0 -30
- package/dist/ketchup/p-584369be.entry.js +0 -1
- package/dist/ketchup/p-6a6c3e69.entry.js +0 -27
- package/dist/ketchup/p-751b5708.js +0 -1
- package/dist/ketchup/p-775e0d34.entry.js +0 -1
- package/dist/ketchup/p-7e013c24.entry.js +0 -1
- package/dist/ketchup/p-b0f22298.entry.js +0 -9
- package/dist/ketchup/p-e0135ce0.entry.js +0 -1
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"./components/kup-dash-list/kup-dash-list.js",
|
|
23
23
|
"./components/kup-dashboard/kup-dashboard.js",
|
|
24
24
|
"./components/kup-date-picker/kup-date-picker.js",
|
|
25
|
+
"./components/kup-dialog/kup-dialog.js",
|
|
25
26
|
"./components/kup-drawer/kup-drawer.js",
|
|
26
27
|
"./components/kup-echart/kup-echart.js",
|
|
27
28
|
"./components/kup-family-tree/kup-family-tree.js",
|
|
@@ -50,8 +51,8 @@
|
|
|
50
51
|
],
|
|
51
52
|
"compiler": {
|
|
52
53
|
"name": "@stencil/core",
|
|
53
|
-
"version": "
|
|
54
|
-
"typescriptVersion": "4.
|
|
54
|
+
"version": "3.0.1",
|
|
55
|
+
"typescriptVersion": "4.9.5"
|
|
55
56
|
},
|
|
56
57
|
"collections": [],
|
|
57
58
|
"bundles": []
|
|
@@ -74,6 +74,7 @@ export class KupAutocomplete {
|
|
|
74
74
|
id: this.rootElement.id,
|
|
75
75
|
value: this.value,
|
|
76
76
|
inputValue: __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
77
|
+
node: ret.node,
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
80
|
}
|
|
@@ -95,7 +96,7 @@ export class KupAutocomplete {
|
|
|
95
96
|
}
|
|
96
97
|
onKupInput() {
|
|
97
98
|
__classPrivateFieldSet(this, _KupAutocomplete_doConsistencyCheck, true, "f");
|
|
98
|
-
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value, false);
|
|
99
|
+
const ret = __classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value, false);
|
|
99
100
|
__classPrivateFieldGet(this, _KupAutocomplete_instances, "m", _KupAutocomplete_openList).call(this, false);
|
|
100
101
|
if (__classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value.length >= this.minimumChars) {
|
|
101
102
|
this.kupInput.emit({
|
|
@@ -103,6 +104,7 @@ export class KupAutocomplete {
|
|
|
103
104
|
id: this.rootElement.id,
|
|
104
105
|
value: this.value,
|
|
105
106
|
inputValue: __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
107
|
+
node: ret.node,
|
|
106
108
|
});
|
|
107
109
|
}
|
|
108
110
|
}
|
|
@@ -134,6 +136,7 @@ export class KupAutocomplete {
|
|
|
134
136
|
id: this.rootElement.id,
|
|
135
137
|
value: this.value,
|
|
136
138
|
inputValue: __classPrivateFieldGet(this, _KupAutocomplete_textfieldEl, "f").value,
|
|
139
|
+
node: e.detail.selected,
|
|
137
140
|
});
|
|
138
141
|
}
|
|
139
142
|
/*-------------------------------------------------*/
|
|
@@ -116,6 +116,18 @@ export function create6(component) {
|
|
|
116
116
|
: [];
|
|
117
117
|
return (h("div", { class: `dialog-layout-${component.layoutNumber}` }, textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''), h("div", { class: "section-1" }, datatableArray.length > 0 ? (h("kup-data-table", Object.assign({ id: "datatable1" }, datatableArray[0]))) : (h("kup-spinner", { active: true, dimensions: "7px", layout: 14 })))));
|
|
118
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* 7th dialog card layout, a raw slot.
|
|
121
|
+
* @param {KupCard} component - Card component.
|
|
122
|
+
* @returns {VNode} 1st standard layout virtual node.
|
|
123
|
+
*/
|
|
124
|
+
export function create7(component) {
|
|
125
|
+
//Dialog title
|
|
126
|
+
const textArray = component.data && component.data['text'] ? component.data['text'] : [];
|
|
127
|
+
//Slot list
|
|
128
|
+
const slots = Array.prototype.slice.call(component.rootElement.children, 0);
|
|
129
|
+
return (h("div", { class: `dialog-layout-${component.layoutNumber}` }, textArray[0] ? dialogHeader(textArray[0]) : dialogHeader(''), slots.length > 0 ? compList(slots, 'slot') : null));
|
|
130
|
+
}
|
|
119
131
|
/**
|
|
120
132
|
* Invoked by 4th layout to switch to the previous record of the original data table.
|
|
121
133
|
* Reminder: data table inside 4th layout should be transposed and valid columns should be named with numbers (strings, but numerical).
|
|
@@ -2851,16 +2851,6 @@
|
|
|
2851
2851
|
width: var(--kup_card_width);
|
|
2852
2852
|
}
|
|
2853
2853
|
|
|
2854
|
-
:host([show-modal]) #kup-component {
|
|
2855
|
-
position: fixed;
|
|
2856
|
-
z-index: var(--kup-card-zindex);
|
|
2857
|
-
height: var(--kup_card_height);
|
|
2858
|
-
width: var(--kup_card_width);
|
|
2859
|
-
top: var(--kup_card_top);
|
|
2860
|
-
left: var(--kup_card_left);
|
|
2861
|
-
display: var(--kup_card_display, none);
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
2854
|
:host([is-menu]) {
|
|
2865
2855
|
display: none;
|
|
2866
2856
|
animation: fade-in 0.25s ease-out;
|
|
@@ -2876,18 +2866,6 @@
|
|
|
2876
2866
|
width: 100%;
|
|
2877
2867
|
}
|
|
2878
2868
|
|
|
2879
|
-
.backdrop {
|
|
2880
|
-
background: var(--kup_card_backdrop);
|
|
2881
|
-
display: none;
|
|
2882
|
-
height: 100%;
|
|
2883
|
-
left: 0;
|
|
2884
|
-
position: fixed;
|
|
2885
|
-
top: 0;
|
|
2886
|
-
width: 100%;
|
|
2887
|
-
z-index: calc(var(--kup-card-zindex) - 1);
|
|
2888
|
-
display: block;
|
|
2889
|
-
}
|
|
2890
|
-
|
|
2891
2869
|
.mdc-ripple-surface {
|
|
2892
2870
|
cursor: pointer;
|
|
2893
2871
|
flex-direction: column;
|
|
@@ -45,7 +45,6 @@ export class KupCard {
|
|
|
45
45
|
this.layoutFamily = KupCardFamily.STANDARD;
|
|
46
46
|
this.layoutNumber = 1;
|
|
47
47
|
this.menuVisible = false;
|
|
48
|
-
this.showModal = false;
|
|
49
48
|
this.sizeX = '100%';
|
|
50
49
|
this.sizeY = '100%';
|
|
51
50
|
}
|
|
@@ -414,13 +413,6 @@ export class KupCard {
|
|
|
414
413
|
}, 0);
|
|
415
414
|
}
|
|
416
415
|
this.kupManager.debug.logRender(this, true);
|
|
417
|
-
if (this.showModal) {
|
|
418
|
-
this.rootElement.style.setProperty('--kup_card_left', window.innerWidth / 2 - this.rootElement.clientWidth / 2 + 'px');
|
|
419
|
-
this.rootElement.style.setProperty('--kup_card_top', window.innerHeight / 2 -
|
|
420
|
-
this.rootElement.clientHeight / 2 +
|
|
421
|
-
'px');
|
|
422
|
-
this.rootElement.style.setProperty('--kup_card_display', 'block');
|
|
423
|
-
}
|
|
424
416
|
}
|
|
425
417
|
render() {
|
|
426
418
|
if (!this.data && this.rootElement.children.length < 1) {
|
|
@@ -430,17 +422,7 @@ export class KupCard {
|
|
|
430
422
|
'--kup_card_height': this.sizeY ? this.sizeY : '100%',
|
|
431
423
|
'--kup_card_width': this.sizeX ? this.sizeX : '100%',
|
|
432
424
|
};
|
|
433
|
-
|
|
434
|
-
e.preventDefault();
|
|
435
|
-
e.stopPropagation();
|
|
436
|
-
}, onPointerDown: (e) => {
|
|
437
|
-
e.preventDefault();
|
|
438
|
-
e.stopPropagation();
|
|
439
|
-
}, onTouchStart: (e) => {
|
|
440
|
-
e.preventDefault();
|
|
441
|
-
e.stopPropagation();
|
|
442
|
-
} })) : null;
|
|
443
|
-
return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), backdropComp, h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
|
|
425
|
+
return (h(Host, { style: style }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId, onClick: () => this.onKupClick(null, null), ref: (el) => (this.componentWrapper = el) }, this.getLayout())));
|
|
444
426
|
}
|
|
445
427
|
disconnectedCallback() {
|
|
446
428
|
this.kupManager.interact.unregister([this.rootElement]);
|
|
@@ -599,27 +581,6 @@ export class KupCard {
|
|
|
599
581
|
"reflect": true,
|
|
600
582
|
"defaultValue": "false"
|
|
601
583
|
},
|
|
602
|
-
"showModal": {
|
|
603
|
-
"type": "boolean",
|
|
604
|
-
"mutable": false,
|
|
605
|
-
"complexType": {
|
|
606
|
-
"original": "boolean",
|
|
607
|
-
"resolved": "boolean",
|
|
608
|
-
"references": {}
|
|
609
|
-
},
|
|
610
|
-
"required": false,
|
|
611
|
-
"optional": false,
|
|
612
|
-
"docs": {
|
|
613
|
-
"tags": [{
|
|
614
|
-
"name": "default",
|
|
615
|
-
"text": "false"
|
|
616
|
-
}],
|
|
617
|
-
"text": "Sets the card as modal window"
|
|
618
|
-
},
|
|
619
|
-
"attribute": "show-modal",
|
|
620
|
-
"reflect": true,
|
|
621
|
-
"defaultValue": "false"
|
|
622
|
-
},
|
|
623
584
|
"sizeX": {
|
|
624
585
|
"type": "string",
|
|
625
586
|
"mutable": false,
|
|
@@ -6,5 +6,7 @@ export var KupChipProps;
|
|
|
6
6
|
(function (KupChipProps) {
|
|
7
7
|
KupChipProps["customStyle"] = "Custom style of the component.";
|
|
8
8
|
KupChipProps["data"] = "List of elements.";
|
|
9
|
+
KupChipProps["displayId"] = "When enabled, the chip's text will display both the id and the value.";
|
|
10
|
+
KupChipProps["enableInput"] = "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field).";
|
|
9
11
|
KupChipProps["type"] = "The type of chip. Available types: input, filter, choice or empty for default.";
|
|
10
12
|
})(KupChipProps || (KupChipProps = {}));
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
+
if (kind === "a" && !f)
|
|
3
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
5
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
6
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
7
|
+
};
|
|
8
|
+
var _KupChip_instances, _KupChip_changeHandler, _KupChip_stringifiedValues;
|
|
1
9
|
import { forceUpdate, h, Host, } from '@stencil/core';
|
|
2
10
|
import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
|
|
3
11
|
import { FChip } from '../../f-components/f-chip/f-chip';
|
|
@@ -8,6 +16,7 @@ import { getProps, setProps } from '../../utils/utils';
|
|
|
8
16
|
import { componentWrapperId } from '../../variables/GenericVariables';
|
|
9
17
|
export class KupChip {
|
|
10
18
|
constructor() {
|
|
19
|
+
_KupChip_instances.add(this);
|
|
11
20
|
/*-------------------------------------------------*/
|
|
12
21
|
/* I n t e r n a l V a r i a b l e s */
|
|
13
22
|
/*-------------------------------------------------*/
|
|
@@ -17,6 +26,8 @@ export class KupChip {
|
|
|
17
26
|
this.kupManager = kupManagerInstance();
|
|
18
27
|
this.customStyle = '';
|
|
19
28
|
this.data = [];
|
|
29
|
+
this.displayId = false;
|
|
30
|
+
this.enableInput = false;
|
|
20
31
|
this.type = FChipType.STANDARD;
|
|
21
32
|
}
|
|
22
33
|
onKupBlur(chip) {
|
|
@@ -55,6 +66,11 @@ export class KupChip {
|
|
|
55
66
|
id: this.rootElement.id,
|
|
56
67
|
chip: this.kupManager.data.node.remove(this.data, chip),
|
|
57
68
|
});
|
|
69
|
+
this.kupChange.emit({
|
|
70
|
+
comp: this,
|
|
71
|
+
id: this.rootElement.id,
|
|
72
|
+
stringifiedValues: __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
|
|
73
|
+
});
|
|
58
74
|
this.refresh();
|
|
59
75
|
}
|
|
60
76
|
/*-------------------------------------------------*/
|
|
@@ -130,11 +146,13 @@ export class KupChip {
|
|
|
130
146
|
this.kupManager.debug.logRender(this, true);
|
|
131
147
|
}
|
|
132
148
|
render() {
|
|
149
|
+
var _a;
|
|
133
150
|
const props = {
|
|
134
151
|
danger: this.rootElement.classList.contains('kup-danger')
|
|
135
152
|
? true
|
|
136
153
|
: false,
|
|
137
154
|
data: this.data,
|
|
155
|
+
displayId: this.displayId,
|
|
138
156
|
info: this.rootElement.classList.contains('kup-info')
|
|
139
157
|
? true
|
|
140
158
|
: false,
|
|
@@ -167,10 +185,13 @@ export class KupChip {
|
|
|
167
185
|
props.onFocus.push((chip) => this.onKupFocus(chip));
|
|
168
186
|
props.onIconClick.push((chip) => this.onKupIconClick(chip));
|
|
169
187
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
188
|
+
return (h(Host, { "onKup-autocomplete-change": (e) => {
|
|
189
|
+
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
190
|
+
}, "onKup-combobox-change": (e) => {
|
|
191
|
+
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
192
|
+
}, "onKup-textfield-change": (e) => {
|
|
193
|
+
__classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_changeHandler).call(this, e);
|
|
194
|
+
} }, h("style", null, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { id: componentWrapperId }, ((_a = this.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? h(FChip, Object.assign({}, props)) : null, h("slot", { name: "field" }))));
|
|
174
195
|
}
|
|
175
196
|
disconnectedCallback() {
|
|
176
197
|
this.kupManager.theme.unregister(this);
|
|
@@ -237,6 +258,48 @@ export class KupChip {
|
|
|
237
258
|
},
|
|
238
259
|
"defaultValue": "[]"
|
|
239
260
|
},
|
|
261
|
+
"displayId": {
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "boolean",
|
|
266
|
+
"resolved": "boolean",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [{
|
|
273
|
+
"name": "default",
|
|
274
|
+
"text": "false"
|
|
275
|
+
}],
|
|
276
|
+
"text": "When enabled, the chip's text will display both the id and the value."
|
|
277
|
+
},
|
|
278
|
+
"attribute": "display-id",
|
|
279
|
+
"reflect": false,
|
|
280
|
+
"defaultValue": "false"
|
|
281
|
+
},
|
|
282
|
+
"enableInput": {
|
|
283
|
+
"type": "boolean",
|
|
284
|
+
"mutable": false,
|
|
285
|
+
"complexType": {
|
|
286
|
+
"original": "boolean",
|
|
287
|
+
"resolved": "boolean",
|
|
288
|
+
"references": {}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": false,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [{
|
|
294
|
+
"name": "default",
|
|
295
|
+
"text": "false"
|
|
296
|
+
}],
|
|
297
|
+
"text": "When enabled, it's possible to add items to the chip's dataset through an input slot (kup-autocomplete, kup-combobox, kup-text-field)."
|
|
298
|
+
},
|
|
299
|
+
"attribute": "enable-input",
|
|
300
|
+
"reflect": false,
|
|
301
|
+
"defaultValue": "false"
|
|
302
|
+
},
|
|
240
303
|
"type": {
|
|
241
304
|
"type": "string",
|
|
242
305
|
"mutable": false,
|
|
@@ -286,6 +349,26 @@ export class KupChip {
|
|
|
286
349
|
}
|
|
287
350
|
}
|
|
288
351
|
}
|
|
352
|
+
}, {
|
|
353
|
+
"method": "kupChange",
|
|
354
|
+
"name": "kup-chip-change",
|
|
355
|
+
"bubbles": true,
|
|
356
|
+
"cancelable": false,
|
|
357
|
+
"composed": true,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": "Triggered when the chip dataset changes."
|
|
361
|
+
},
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "KupChipChangeEventPayload",
|
|
364
|
+
"resolved": "KupChipChangeEventPayload",
|
|
365
|
+
"references": {
|
|
366
|
+
"KupChipChangeEventPayload": {
|
|
367
|
+
"location": "import",
|
|
368
|
+
"path": "./kup-chip-declarations"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
289
372
|
}, {
|
|
290
373
|
"method": "kupClick",
|
|
291
374
|
"name": "kup-chip-click",
|
|
@@ -437,3 +520,38 @@ export class KupChip {
|
|
|
437
520
|
}];
|
|
438
521
|
}
|
|
439
522
|
}
|
|
523
|
+
_KupChip_instances = new WeakSet(), _KupChip_changeHandler =
|
|
524
|
+
/*-------------------------------------------------*/
|
|
525
|
+
/* P r i v a t e M e t h o d s */
|
|
526
|
+
/*-------------------------------------------------*/
|
|
527
|
+
async function _KupChip_changeHandler(e) {
|
|
528
|
+
var _a, _b;
|
|
529
|
+
e.stopPropagation();
|
|
530
|
+
const value = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.value;
|
|
531
|
+
const listNode = e.detail.node;
|
|
532
|
+
if (value) {
|
|
533
|
+
const node = (_b = this.data) === null || _b === void 0 ? void 0 : _b.find((node) => node.id === value);
|
|
534
|
+
if (!node) {
|
|
535
|
+
this.data = [
|
|
536
|
+
...this.data,
|
|
537
|
+
{
|
|
538
|
+
id: listNode ? listNode.id : value,
|
|
539
|
+
value: listNode ? listNode.value : value,
|
|
540
|
+
},
|
|
541
|
+
];
|
|
542
|
+
const slot = this.rootElement.querySelector('[slot=field]');
|
|
543
|
+
await slot.setValue('');
|
|
544
|
+
await slot.refresh();
|
|
545
|
+
await slot.setFocus();
|
|
546
|
+
this.kupChange.emit({
|
|
547
|
+
comp: this,
|
|
548
|
+
id: this.rootElement.id,
|
|
549
|
+
stringifiedValues: __classPrivateFieldGet(this, _KupChip_instances, "m", _KupChip_stringifiedValues).call(this),
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}, _KupChip_stringifiedValues = function _KupChip_stringifiedValues() {
|
|
554
|
+
let stringifiedValues = '';
|
|
555
|
+
this.data.forEach((node) => (stringifiedValues += node.id + ';'));
|
|
556
|
+
return stringifiedValues;
|
|
557
|
+
};
|
|
@@ -61,12 +61,13 @@ export class KupCombobox {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
onKupChange(value) {
|
|
64
|
-
__classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
|
|
64
|
+
let ret = __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, value, true);
|
|
65
65
|
this.kupChange.emit({
|
|
66
66
|
comp: this,
|
|
67
67
|
id: this.rootElement.id,
|
|
68
68
|
value: this.value,
|
|
69
69
|
inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
|
|
70
|
+
node: ret.node,
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
onKupClick() {
|
|
@@ -94,13 +95,14 @@ export class KupCombobox {
|
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
onKupInput() {
|
|
97
|
-
__classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value, false);
|
|
98
|
+
let ret = __classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_consistencyCheck).call(this, __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value, false);
|
|
98
99
|
__classPrivateFieldGet(this, _KupCombobox_instances, "m", _KupCombobox_openList).call(this);
|
|
99
100
|
this.kupInput.emit({
|
|
100
101
|
comp: this,
|
|
101
102
|
id: this.rootElement.id,
|
|
102
103
|
value: this.value,
|
|
103
104
|
inputValue: __classPrivateFieldGet(this, _KupCombobox_textfieldEl, "f").value,
|
|
105
|
+
node: ret.node,
|
|
104
106
|
});
|
|
105
107
|
}
|
|
106
108
|
onKupIconClick() {
|
|
@@ -14,7 +14,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
14
14
|
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
15
15
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
16
16
|
};
|
|
17
|
-
var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_confirmDeleteCard, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_insertCount, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_setDynPosElements, _KupDataTable_getEventPath, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onDefaultRowActionClick, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_renderActions, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel;
|
|
17
|
+
var _KupDataTable_instances, _KupDataTable_initialized, _KupDataTable_rows, _KupDataTable_rowsLength, _KupDataTable_paginatedRows, _KupDataTable_paginatedRowsLength, _KupDataTable_footer, _KupDataTable_kupManager, _KupDataTable_renderedRows, _KupDataTable_loadMoreEventCounter, _KupDataTable_loadMoreEventPreviousQuantity, _KupDataTable_theadRef, _KupDataTable_tableRef, _KupDataTable_originalData, _KupDataTable_tableAreaRef, _KupDataTable_stickyTheadRef, _KupDataTable_customizeTopButtonRef, _KupDataTable_customizeTopPanelRef, _KupDataTable_sizedColumns, _KupDataTable_intObserver, _KupDataTable_navBarHeight, _KupDataTable_theadIntersecting, _KupDataTable_tableIntersecting, _KupDataTable_isSafariBrowser, _KupDataTable_isRestoringState, _KupDataTable_globalFilterTimeout, _KupDataTable_totalMenuCoords, _KupDataTable_clickTimeout, _KupDataTable_thRefs, _KupDataTable_rowsRefs, _KupDataTable_oldWidth, _KupDataTable_hold, _KupDataTable_interactableDrag, _KupDataTable_interactableDrop, _KupDataTable_interactableResize, _KupDataTable_interactableTouch, _KupDataTable_dropareaRef, _KupDataTable_removeDropareaRef, _KupDataTable_groupsDropareaRef, _KupDataTable_clickCb, _KupDataTable_clickCbCustomPanel, _KupDataTable_clickCbDropCard, _KupDataTable_resizeTimeout, _KupDataTable_columnMenuInstance, _KupDataTable_filtersColumnMenuInstance, _KupDataTable_filtersRowsInstance, _KupDataTable_detailCard, _KupDataTable_insertCard, _KupDataTable_confirmDeleteCard, _KupDataTable_confirmDeleteDialog, _KupDataTable_columnMenuCard, _KupDataTable_columnDropCard, _KupDataTable_columnDropCardAnchor, _KupDataTable_insertCount, _KupDataTable_BUTTON_CANCEL_ID, _KupDataTable_BUTTON_SUBMIT_ID, _KupDataTable_FIELDS_FORM_ID, _KupDataTable_MESSAGE_ID, _KupDataTable_MESSAGE_WRAPPER_ID, _KupDataTable_INSERT_PREFIX, _KupDataTable_closeDropCard, _KupDataTable_createDropCard, _KupDataTable_calculateData, _KupDataTable_getRow, _KupDataTable_getTransposedData, _KupDataTable_setTransposedData, _KupDataTable_switchToTotalsMatrix, _KupDataTable_setObjForTotalsMatrix, _KupDataTable_stickyHeaderPosition, _KupDataTable_updateStickyHeaderSize, _KupDataTable_setObserver, _KupDataTable_didLoadInteractables, _KupDataTable_didRenderInteractables, _KupDataTable_didLoadObservers, _KupDataTable_didRenderObservers, _KupDataTable_didLoadEventHandling, _KupDataTable_scrollStickyHeader, _KupDataTable_checkScrollOnHover, _KupDataTable_customizePanelPosition, _KupDataTable_rowsPointLength, _KupDataTable_paginatedRowsPointLength, _KupDataTable__rowsLength, _KupDataTable_setDynPosElements, _KupDataTable_getEventPath, _KupDataTable_resetSelectedRows, _KupDataTable_getSizedColumns, _KupDataTable_rowDetail, _KupDataTable_rowInsertForm, _KupDataTable_rowsDelete, _KupDataTable_getEventDetails, _KupDataTable_clickHandler, _KupDataTable_contextMenuHandler, _KupDataTable_dblClickHandler, _KupDataTable_initRows, _KupDataTable_filterRows, _KupDataTable_isGrouping, _KupDataTable_hasRowActions, _KupDataTable_removeGroup, _KupDataTable_hasTotals, _KupDataTable_tableHasAutoWidth, _KupDataTable_forceGroupExpansion, _KupDataTable_forceRowGroupExpansion, _KupDataTable_adjustPaginator, _KupDataTable_composeFixedCellStyleAndClass, _KupDataTable_updateFixedRowsAndColumnsCssVariables, _KupDataTable_onColumnSort, _KupDataTable_onRemoveFilter, _KupDataTable_getFilterValueForTooltip, _KupDataTable_onGlobalFilterChange, _KupDataTable_handlePageChange, _KupDataTable_handleRowsPerPageChange, _KupDataTable_onRowClick, _KupDataTable_selectColumn, _KupDataTable_deselectColumn, _KupDataTable_onDefaultRowActionClick, _KupDataTable_onRowActionExpanderClick, _KupDataTable_handleRowSelect, _KupDataTable_onRowExpand, _KupDataTable_onSelectAll, _KupDataTable_openTotalMenu, _KupDataTable_closeTotalMenu, _KupDataTable_isOpenedTotalMenuForColumn, _KupDataTable_groupRows, _KupDataTable_onLoadMoreClick, _KupDataTable_adjustGroupState, _KupDataTable_adjustGroupStateFromRow, _KupDataTable_sortRows, _KupDataTable_getSortIcon, _KupDataTable_getSortDecode, _KupDataTable_calculateColspan, _KupDataTable_isGroupExpanded, _KupDataTable_handleColumnSort, _KupDataTable_moveSortedColumns, _KupDataTable_applyLineBreaks, _KupDataTable_composeHeaderCellClassAndStyle, _KupDataTable_renderHeader, _KupDataTable_renderStickyHeader, _KupDataTable_totalMenuPosition, _KupDataTable_onTotalMenuOpen, _KupDataTable_renderRow, _KupDataTable_renderActions, _KupDataTable_onCustomSettingsClick, _KupDataTable_openCustomSettings, _KupDataTable_closeCustomSettings, _KupDataTable_renderPaginator, _KupDataTable_columnRemoveArea, _KupDataTable_columnGroupArea, _KupDataTable_hideShowColumnDropArea, _KupDataTable_handleColumnGroup, _KupDataTable_transcodeItem, _KupDataTable_createListData, _KupDataTable_FONTSIZE_CODES, _KupDataTable_FONTSIZE_DECODES, _KupDataTable_FONTSIZE_ICONS, _KupDataTable_getFontSizeCodeFromDecode, _KupDataTable_renderFontSizePanel, _KupDataTable_DENSITY_DECODES, _KupDataTable_DENSITY_ICONS, _KupDataTable_getDensityCodeFromDecode, _KupDataTable_renderDensityPanel, _KupDataTable_GRID_CODES, _KupDataTable_GRID_DECODES, _KupDataTable_GRID_ICONS, _KupDataTable_getGridCodeFromDecode, _KupDataTable_renderTransposeSwitch, _KupDataTable_renderTotalsMatrix, _KupDataTable_renderGridPanel;
|
|
18
18
|
import { forceUpdate, h, Host, } from '@stencil/core';
|
|
19
19
|
import { FixedCellsClasses, FixedCellsCSSVarsBase, GroupLabelDisplayMode, LoadMoreMode, PaginatorPos, ShowGrid, SortMode, TotalMode, TotalLabel, KupDataTableProps, fieldColumn, iconColumn, keyColumn, SelectionMode, } from './kup-data-table-declarations';
|
|
20
20
|
import { getColumnByName } from '../../utils/cell-utils';
|
|
@@ -114,6 +114,7 @@ export class KupDataTable {
|
|
|
114
114
|
_KupDataTable_detailCard.set(this, null);
|
|
115
115
|
_KupDataTable_insertCard.set(this, null);
|
|
116
116
|
_KupDataTable_confirmDeleteCard.set(this, null);
|
|
117
|
+
_KupDataTable_confirmDeleteDialog.set(this, null);
|
|
117
118
|
_KupDataTable_columnMenuCard.set(this, null);
|
|
118
119
|
_KupDataTable_columnDropCard.set(this, null);
|
|
119
120
|
_KupDataTable_columnDropCardAnchor.set(this, null);
|
|
@@ -509,9 +510,10 @@ export class KupDataTable {
|
|
|
509
510
|
* Closes the delete confirm card (called by backend, on success)
|
|
510
511
|
*/
|
|
511
512
|
async closeConfirmDeleteCard() {
|
|
512
|
-
if (__classPrivateFieldGet(this,
|
|
513
|
-
__classPrivateFieldGet(this,
|
|
513
|
+
if (__classPrivateFieldGet(this, _KupDataTable_confirmDeleteDialog, "f")) {
|
|
514
|
+
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteDialog, "f").close();
|
|
514
515
|
__classPrivateFieldSet(this, _KupDataTable_confirmDeleteCard, null, "f");
|
|
516
|
+
__classPrivateFieldSet(this, _KupDataTable_confirmDeleteDialog, null, "f");
|
|
515
517
|
}
|
|
516
518
|
}
|
|
517
519
|
/**
|
|
@@ -1239,7 +1241,7 @@ export class KupDataTable {
|
|
|
1239
1241
|
cells[column.name] = {
|
|
1240
1242
|
isEditable: column.isKey ||
|
|
1241
1243
|
column.isEditable,
|
|
1242
|
-
obj: column.obj,
|
|
1244
|
+
obj: Object.assign({}, column.obj),
|
|
1243
1245
|
shape: column.shape,
|
|
1244
1246
|
value: '',
|
|
1245
1247
|
};
|
|
@@ -3322,7 +3324,7 @@ export class KupDataTable {
|
|
|
3322
3324
|
}];
|
|
3323
3325
|
}
|
|
3324
3326
|
}
|
|
3325
|
-
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
|
|
3327
|
+
_KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _KupDataTable_rowsLength = new WeakMap(), _KupDataTable_paginatedRows = new WeakMap(), _KupDataTable_paginatedRowsLength = new WeakMap(), _KupDataTable_footer = new WeakMap(), _KupDataTable_kupManager = new WeakMap(), _KupDataTable_renderedRows = new WeakMap(), _KupDataTable_loadMoreEventCounter = new WeakMap(), _KupDataTable_loadMoreEventPreviousQuantity = new WeakMap(), _KupDataTable_theadRef = new WeakMap(), _KupDataTable_tableRef = new WeakMap(), _KupDataTable_originalData = new WeakMap(), _KupDataTable_tableAreaRef = new WeakMap(), _KupDataTable_stickyTheadRef = new WeakMap(), _KupDataTable_customizeTopButtonRef = new WeakMap(), _KupDataTable_customizeTopPanelRef = new WeakMap(), _KupDataTable_sizedColumns = new WeakMap(), _KupDataTable_intObserver = new WeakMap(), _KupDataTable_navBarHeight = new WeakMap(), _KupDataTable_theadIntersecting = new WeakMap(), _KupDataTable_tableIntersecting = new WeakMap(), _KupDataTable_isSafariBrowser = new WeakMap(), _KupDataTable_isRestoringState = new WeakMap(), _KupDataTable_globalFilterTimeout = new WeakMap(), _KupDataTable_totalMenuCoords = new WeakMap(), _KupDataTable_clickTimeout = new WeakMap(), _KupDataTable_thRefs = new WeakMap(), _KupDataTable_rowsRefs = new WeakMap(), _KupDataTable_oldWidth = new WeakMap(), _KupDataTable_hold = new WeakMap(), _KupDataTable_interactableDrag = new WeakMap(), _KupDataTable_interactableDrop = new WeakMap(), _KupDataTable_interactableResize = new WeakMap(), _KupDataTable_interactableTouch = new WeakMap(), _KupDataTable_dropareaRef = new WeakMap(), _KupDataTable_removeDropareaRef = new WeakMap(), _KupDataTable_groupsDropareaRef = new WeakMap(), _KupDataTable_clickCb = new WeakMap(), _KupDataTable_clickCbCustomPanel = new WeakMap(), _KupDataTable_clickCbDropCard = new WeakMap(), _KupDataTable_resizeTimeout = new WeakMap(), _KupDataTable_columnMenuInstance = new WeakMap(), _KupDataTable_filtersColumnMenuInstance = new WeakMap(), _KupDataTable_filtersRowsInstance = new WeakMap(), _KupDataTable_detailCard = new WeakMap(), _KupDataTable_insertCard = new WeakMap(), _KupDataTable_confirmDeleteCard = new WeakMap(), _KupDataTable_confirmDeleteDialog = new WeakMap(), _KupDataTable_columnMenuCard = new WeakMap(), _KupDataTable_columnDropCard = new WeakMap(), _KupDataTable_columnDropCardAnchor = new WeakMap(), _KupDataTable_insertCount = new WeakMap(), _KupDataTable_BUTTON_CANCEL_ID = new WeakMap(), _KupDataTable_BUTTON_SUBMIT_ID = new WeakMap(), _KupDataTable_FIELDS_FORM_ID = new WeakMap(), _KupDataTable_MESSAGE_ID = new WeakMap(), _KupDataTable_MESSAGE_WRAPPER_ID = new WeakMap(), _KupDataTable_INSERT_PREFIX = new WeakMap(), _KupDataTable_stickyHeaderPosition = new WeakMap(), _KupDataTable_FONTSIZE_CODES = new WeakMap(), _KupDataTable_FONTSIZE_DECODES = new WeakMap(), _KupDataTable_FONTSIZE_ICONS = new WeakMap(), _KupDataTable_DENSITY_DECODES = new WeakMap(), _KupDataTable_DENSITY_ICONS = new WeakMap(), _KupDataTable_GRID_CODES = new WeakMap(), _KupDataTable_GRID_DECODES = new WeakMap(), _KupDataTable_GRID_ICONS = new WeakMap(), _KupDataTable_instances = new WeakSet(), _KupDataTable_closeDropCard = function _KupDataTable_closeDropCard() {
|
|
3326
3328
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").dynamicPosition.stop(__classPrivateFieldGet(this, _KupDataTable_columnDropCard, "f"));
|
|
3327
3329
|
__classPrivateFieldGet(this, _KupDataTable_kupManager, "f").removeClickCallback(__classPrivateFieldGet(this, _KupDataTable_clickCbDropCard, "f"));
|
|
3328
3330
|
__classPrivateFieldGet(this, _KupDataTable_columnDropCard, "f").remove();
|
|
@@ -4109,7 +4111,6 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4109
4111
|
const CARD_WIDTH = 400;
|
|
4110
4112
|
const CARD_HEIGHT = 400;
|
|
4111
4113
|
__classPrivateFieldSet(this, _KupDataTable_insertCard, document.createElement('kup-card'), "f");
|
|
4112
|
-
__classPrivateFieldGet(this, _KupDataTable_insertCard, "f").showModal = true;
|
|
4113
4114
|
__classPrivateFieldGet(this, _KupDataTable_insertCard, "f").layoutFamily = KupCardFamily.FREE;
|
|
4114
4115
|
__classPrivateFieldGet(this, _KupDataTable_insertCard, "f").layoutNumber = 1;
|
|
4115
4116
|
__classPrivateFieldGet(this, _KupDataTable_insertCard, "f").sizeX = CARD_WIDTH + 'px';
|
|
@@ -4198,14 +4199,12 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4198
4199
|
this.rootElement.shadowRoot.append(__classPrivateFieldGet(this, _KupDataTable_insertCard, "f"));
|
|
4199
4200
|
}, _KupDataTable_rowsDelete = function _KupDataTable_rowsDelete() {
|
|
4200
4201
|
const createDeleteCard = () => {
|
|
4201
|
-
|
|
4202
|
-
const CARD_HEIGHT = 200;
|
|
4202
|
+
__classPrivateFieldSet(this, _KupDataTable_confirmDeleteDialog, document.createElement('kup-dialog'), "f");
|
|
4203
4203
|
__classPrivateFieldSet(this, _KupDataTable_confirmDeleteCard, document.createElement('kup-card'), "f");
|
|
4204
|
-
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").showModal = true;
|
|
4205
4204
|
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").layoutFamily = KupCardFamily.FREE;
|
|
4206
4205
|
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").layoutNumber = 1;
|
|
4207
|
-
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").sizeX =
|
|
4208
|
-
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").sizeY =
|
|
4206
|
+
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").sizeX = 'auto';
|
|
4207
|
+
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").sizeY = 'auto';
|
|
4209
4208
|
const style = document.createElement('style');
|
|
4210
4209
|
style.innerText =
|
|
4211
4210
|
'.button-wrapper, .message-wrapper { display: flex; justify-content: space-around; z-index: var(--kup-card-zindex); } .message-wrapper { padding-bottom: 20px; }';
|
|
@@ -4221,16 +4220,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4221
4220
|
messageWrapper.append(message);
|
|
4222
4221
|
const buttonWrapper = document.createElement('div');
|
|
4223
4222
|
buttonWrapper.className = 'button-wrapper';
|
|
4224
|
-
const cancel = document.createElement('kup-button');
|
|
4225
4223
|
const confirm = document.createElement('kup-button');
|
|
4226
|
-
cancel.id = __classPrivateFieldGet(this, _KupDataTable_BUTTON_CANCEL_ID, "f");
|
|
4227
|
-
cancel.icon = 'clear';
|
|
4228
|
-
cancel.label = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.ABORT);
|
|
4229
|
-
cancel.styling = FButtonStyling.FLAT;
|
|
4230
|
-
cancel.addEventListener('kup-button-click', () => {
|
|
4231
|
-
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").remove();
|
|
4232
|
-
__classPrivateFieldSet(this, _KupDataTable_confirmDeleteCard, null, "f");
|
|
4233
|
-
});
|
|
4234
4224
|
confirm.id = __classPrivateFieldGet(this, _KupDataTable_BUTTON_SUBMIT_ID, "f");
|
|
4235
4225
|
confirm.icon = 'check';
|
|
4236
4226
|
confirm.label = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM);
|
|
@@ -4241,20 +4231,19 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
4241
4231
|
confirm.appendChild(innerComp);
|
|
4242
4232
|
confirm.addEventListener('kup-button-click', () => {
|
|
4243
4233
|
confirm.showSpinner = true;
|
|
4244
|
-
cancel.disabled = true;
|
|
4245
4234
|
this.kupDeleteRow.emit({
|
|
4246
4235
|
comp: this,
|
|
4247
4236
|
id: this.rootElement.id,
|
|
4248
4237
|
selectedRows: this.selectedRows,
|
|
4249
4238
|
});
|
|
4250
4239
|
});
|
|
4251
|
-
buttonWrapper.append(cancel);
|
|
4252
4240
|
buttonWrapper.append(confirm);
|
|
4253
4241
|
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").append(style);
|
|
4254
4242
|
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").append(messageWrapper);
|
|
4255
4243
|
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").append(buttonWrapper);
|
|
4256
4244
|
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f").data = {};
|
|
4257
|
-
this.
|
|
4245
|
+
__classPrivateFieldGet(this, _KupDataTable_confirmDeleteDialog, "f").append(__classPrivateFieldGet(this, _KupDataTable_confirmDeleteCard, "f"));
|
|
4246
|
+
document.querySelector('body').append(__classPrivateFieldGet(this, _KupDataTable_confirmDeleteDialog, "f"));
|
|
4258
4247
|
};
|
|
4259
4248
|
const insertRowsIds = [];
|
|
4260
4249
|
const startingRows = [];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props of the kup-dialog component.
|
|
3
|
+
* Used to export every prop in an object.
|
|
4
|
+
*/
|
|
5
|
+
export var KupDialogProps;
|
|
6
|
+
(function (KupDialogProps) {
|
|
7
|
+
KupDialogProps["autoCenter"] = "Auto centers the dialog relatively to the viewport.";
|
|
8
|
+
KupDialogProps["customStyle"] = "Custom style of the component.";
|
|
9
|
+
KupDialogProps["header"] = "Header options.";
|
|
10
|
+
KupDialogProps["modal"] = "Set of options to display the dialog as a modal.";
|
|
11
|
+
KupDialogProps["resizable"] = "Sets whether the dialog is resizable or not.";
|
|
12
|
+
KupDialogProps["sizeX"] = "The width of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vw, etc.).";
|
|
13
|
+
KupDialogProps["sizeY"] = "The height of the dialog, defaults to auto. Accepts any valid CSS format (px, %, vh, etc.).";
|
|
14
|
+
})(KupDialogProps || (KupDialogProps = {}));
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --kup-dialog-header-height: Sets the height of the header bar.
|
|
3
|
+
*/
|
|
4
|
+
:host {
|
|
5
|
+
--kup_dialog_header_height: var(--kup-dialog-header-height, 2em);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
display: block;
|
|
8
|
+
height: var(--kup_dialog_height);
|
|
9
|
+
left: var(--kup_dialog_left);
|
|
10
|
+
min-height: var(--kup_dialog_height);
|
|
11
|
+
min-width: var(--kup_dialog_width);
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: var(--kup_dialog_top);
|
|
14
|
+
transition: opacity 0.25s ease-in;
|
|
15
|
+
width: var(--kup_dialog_width);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#kup-component {
|
|
19
|
+
height: 100%;
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[fade-in] {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
[fade-in] ::slotted {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.header {
|
|
31
|
+
background-color: var(--kup-title-background-color);
|
|
32
|
+
color: var(--kup-title-color);
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
height: var(--kup_dialog_header_height);
|
|
36
|
+
position: relative;
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
.header__title {
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
line-height: 2em;
|
|
42
|
+
padding-left: 0.5em;
|
|
43
|
+
padding-right: 2em;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
}
|
|
48
|
+
.header__close.f-image {
|
|
49
|
+
--kup-icon-color: var(--kup-title-color);
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
margin-right: 0;
|
|
52
|
+
transition: opacity 0.25s;
|
|
53
|
+
position: absolute;
|
|
54
|
+
right: 0;
|
|
55
|
+
background: var(--kup-title-background-color);
|
|
56
|
+
}
|
|
57
|
+
.header__close.f-image:hover {
|
|
58
|
+
opacity: 0.5;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.content {
|
|
62
|
+
height: calc(100% - var(--kup_dialog_header_height));
|
|
63
|
+
overflow: auto;
|
|
64
|
+
}
|