@mozaic-ds/web-components 0.4.1-beta.0 → 0.5.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/package.json +1 -1
- package/public/ClickOutside-63071e7a.js +15 -1
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/DataTableDefaultAction.nested-4da4dc44.js +759 -1
- package/public/DataTableDefaultAction.nested-4da4dc44.js.map +1 -1
- package/public/DataTableUtilities-60220c78.js +370 -1
- package/public/DataTableUtilities-60220c78.js.map +1 -1
- package/public/EventForward-8492ff62.js +109 -1
- package/public/EventForward-8492ff62.js.map +1 -1
- package/public/EventHandler-02058705.js +15 -1
- package/public/EventHandler-02058705.js.map +1 -1
- package/public/array-5b770a93.js +13 -1
- package/public/array-5b770a93.js.map +1 -1
- package/public/axis-fbc0f7b5.js +174 -1
- package/public/axis-fbc0f7b5.js.map +1 -1
- package/public/band-d7a07d2c.js +186 -1
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/components/accordion/Accordion.js +365 -1
- package/public/components/accordion/Accordion.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1515 -1
- package/public/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/components/badge/Badge.js +155 -1
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.nested.js +101 -1
- package/public/components/badge/Badge.nested.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.js +372 -1
- package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +319 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1138 -1
- package/public/components/button/Button.js.map +1 -1
- package/public/components/card/Card.js +369 -1
- package/public/components/card/Card.js.map +1 -1
- package/public/components/chart/BarChart.js +582 -1
- package/public/components/chart/BarChart.js.map +1 -1
- package/public/components/chart/Donut.js +1189 -1
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +750 -1
- package/public/components/chart/GroupedBarChart.js.map +1 -1
- package/public/components/chart/LineChart.js +1731 -1
- package/public/components/chart/LineChart.js.map +1 -1
- package/public/components/chart/Radar.js +729 -1
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +745 -1
- package/public/components/chart/StackedBarChart.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +307 -1
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkboxgroup/checkboxGroup.js +404 -1
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/datatable/DataTable.js +3064 -1
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTableDefaultAction.nested.js +4 -1
- package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js +164 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js +380 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js +424 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +263 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
- package/public/components/datatable/DataTableFooter.nested.js +637 -1
- package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
- package/public/components/dropdown/Dropdown.js +1426 -1
- package/public/components/dropdown/Dropdown.js.map +1 -1
- package/public/components/field/Field.js +375 -1
- package/public/components/field/Field.js.map +1 -1
- package/public/components/fileuploader/FileUploader.js +555 -1
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/ResultFile.nested.js +265 -1
- package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/components/flag/Flag.js +174 -1
- package/public/components/flag/Flag.js.map +1 -1
- package/public/components/header/Header.js +903 -1
- package/public/components/header/Header.js.map +1 -1
- package/public/components/hero/Hero.js +271 -1
- package/public/components/hero/Hero.js.map +1 -1
- package/public/components/layer/Layer.js +453 -1
- package/public/components/layer/Layer.js.map +1 -1
- package/public/components/link/Link.js +380 -1
- package/public/components/link/Link.js.map +1 -1
- package/public/components/listbox/Listbox.js +595 -1
- package/public/components/listbox/Listbox.js.map +1 -1
- package/public/components/listbox/Listbox.nested.js +629 -1
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +246 -1
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.nested.js +176 -1
- package/public/components/loader/Loader.nested.js.map +1 -1
- package/public/components/modal/Modal.js +395 -1
- package/public/components/modal/Modal.js.map +1 -1
- package/public/components/notification/Notification.js +458 -1
- package/public/components/notification/Notification.js.map +1 -1
- package/public/components/optionbutton/OptionButton.js +316 -1
- package/public/components/optionbutton/OptionButton.js.map +1 -1
- package/public/components/overlay/Overlay.js +104 -1
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/OverlayLoader.js +151 -1
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/pagination/Pagination.js +613 -1
- package/public/components/pagination/Pagination.js.map +1 -1
- package/public/components/passwordinput/PasswordInput.js +291 -1
- package/public/components/passwordinput/PasswordInput.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.js +6894 -1
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.svelte +72 -9
- package/public/components/price/Price.js +768 -1
- package/public/components/price/Price.js.map +1 -1
- package/public/components/progressbar/ProgressBar.js +278 -1
- package/public/components/progressbar/ProgressBar.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.js +333 -1
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/radio/Radio.js +273 -1
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +414 -1
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/ratings/StarsInput.js +292 -1
- package/public/components/ratings/StarsInput.js.map +1 -1
- package/public/components/ratings/StarsResult.js +246 -1
- package/public/components/ratings/StarsResult.js.map +1 -1
- package/public/components/select/Select.js +451 -1
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +784 -1
- package/public/components/sidebar/Sidebar.js.map +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +594 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +402 -1
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +394 -1
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +200 -1
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +49 -1
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +312 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +733 -1
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/stepper/Stepper.js +371 -1
- package/public/components/stepper/Stepper.js.map +1 -1
- package/public/components/tabs/Tabs.js +615 -1
- package/public/components/tabs/Tabs.js.map +1 -1
- package/public/components/tabs/Tabs.nested.js +472 -1
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +665 -1
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +554 -1
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/taglist/TagList.js +475 -1
- package/public/components/taglist/TagList.js.map +1 -1
- package/public/components/textarea/Textarea.js +303 -1
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +497 -1
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.nested.js +320 -1
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +278 -1
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/tooltip/Tooltip.js +173 -1
- package/public/components/tooltip/Tooltip.js.map +1 -1
- package/public/index-c33b3772.js +873 -1
- package/public/index-c33b3772.js.map +1 -1
- package/public/linear-f46d7e9e.js +700 -1
- package/public/linear-f46d7e9e.js.map +1 -1
- package/public/path-1b5da959.js +186 -1
- package/public/path-1b5da959.js.map +1 -1
- package/public/sidebar-service-275bf9ef.js +129 -1
- package/public/sidebar-service-275bf9ef.js.map +1 -1
- package/public/symbol-b05a6e2b.js +169 -1
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js +2743 -1
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/stories/phonenumber/PhoneNumber.stories.d.ts.map +1 -1
|
@@ -1,2 +1,264 @@
|
|
|
1
|
-
import{P as
|
|
1
|
+
import { P as SvelteComponent, i as init, s as safe_not_equal, Q as append_styles, e as element, g as attr, b as insert, n as noop, o as detach, t as text, d as space, j as append, k as set_data, K as empty } from '../../index-c33b3772.js';
|
|
2
|
+
|
|
3
|
+
/* src/components/datatable/DataTableDefaultSelectionLabel.nested.svelte generated by Svelte v3.58.0 */
|
|
4
|
+
|
|
5
|
+
function add_css(target) {
|
|
6
|
+
append_styles(target, "svelte-o9e44d", ".mc-datatable__topbar-selection.svelte-o9e44d.svelte-o9e44d{margin-left:1rem}.center-selection-label.svelte-o9e44d.svelte-o9e44d{text-align:center}.center-selection-label.svelte-o9e44d span.svelte-o9e44d{line-height:2;display:inline-block;vertical-align:middle}");
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// (7:2) {#if itemsSelection && showSelectionCount && selectionParams != null}
|
|
10
|
+
function create_if_block(ctx) {
|
|
11
|
+
let div;
|
|
12
|
+
|
|
13
|
+
function select_block_type(ctx, dirty) {
|
|
14
|
+
if (/*selectionParams*/ ctx[1]?.allSelected) return create_if_block_1;
|
|
15
|
+
return create_else_block_1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
let current_block_type = select_block_type(ctx);
|
|
19
|
+
let if_block = current_block_type(ctx);
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
c() {
|
|
23
|
+
div = element("div");
|
|
24
|
+
if_block.c();
|
|
25
|
+
attr(div, "class", "center-selection-label svelte-o9e44d");
|
|
26
|
+
},
|
|
27
|
+
m(target, anchor) {
|
|
28
|
+
insert(target, div, anchor);
|
|
29
|
+
if_block.m(div, null);
|
|
30
|
+
},
|
|
31
|
+
p(ctx, dirty) {
|
|
32
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
33
|
+
if_block.p(ctx, dirty);
|
|
34
|
+
} else {
|
|
35
|
+
if_block.d(1);
|
|
36
|
+
if_block = current_block_type(ctx);
|
|
37
|
+
|
|
38
|
+
if (if_block) {
|
|
39
|
+
if_block.c();
|
|
40
|
+
if_block.m(div, null);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
d(detaching) {
|
|
45
|
+
if (detaching) detach(div);
|
|
46
|
+
if_block.d();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// (21:6) {:else}
|
|
52
|
+
function create_else_block_1(ctx) {
|
|
53
|
+
let span;
|
|
54
|
+
let b;
|
|
55
|
+
let t0_value = /*selectionParams*/ ctx[1]?.idsSelected.length + "";
|
|
56
|
+
let t0;
|
|
57
|
+
let t1;
|
|
58
|
+
let t2_value = (/*selectionParams*/ ctx[1]?.selectedLabel || 'selected') + "";
|
|
59
|
+
let t2;
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
c() {
|
|
63
|
+
span = element("span");
|
|
64
|
+
b = element("b");
|
|
65
|
+
t0 = text(t0_value);
|
|
66
|
+
t1 = space();
|
|
67
|
+
t2 = text(t2_value);
|
|
68
|
+
attr(span, "class", "svelte-o9e44d");
|
|
69
|
+
},
|
|
70
|
+
m(target, anchor) {
|
|
71
|
+
insert(target, span, anchor);
|
|
72
|
+
append(span, b);
|
|
73
|
+
append(b, t0);
|
|
74
|
+
append(b, t1);
|
|
75
|
+
append(b, t2);
|
|
76
|
+
},
|
|
77
|
+
p(ctx, dirty) {
|
|
78
|
+
if (dirty & /*selectionParams*/ 2 && t0_value !== (t0_value = /*selectionParams*/ ctx[1]?.idsSelected.length + "")) set_data(t0, t0_value);
|
|
79
|
+
if (dirty & /*selectionParams*/ 2 && t2_value !== (t2_value = (/*selectionParams*/ ctx[1]?.selectedLabel || 'selected') + "")) set_data(t2, t2_value);
|
|
80
|
+
},
|
|
81
|
+
d(detaching) {
|
|
82
|
+
if (detaching) detach(span);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// (9:6) {#if selectionParams?.allSelected}
|
|
88
|
+
function create_if_block_1(ctx) {
|
|
89
|
+
let if_block_anchor;
|
|
90
|
+
|
|
91
|
+
function select_block_type_1(ctx, dirty) {
|
|
92
|
+
if (/*selectionParams*/ ctx[1]?.excludedIdsFromSelection.length > 0) return create_if_block_2;
|
|
93
|
+
return create_else_block;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
let current_block_type = select_block_type_1(ctx);
|
|
97
|
+
let if_block = current_block_type(ctx);
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
c() {
|
|
101
|
+
if_block.c();
|
|
102
|
+
if_block_anchor = empty();
|
|
103
|
+
},
|
|
104
|
+
m(target, anchor) {
|
|
105
|
+
if_block.m(target, anchor);
|
|
106
|
+
insert(target, if_block_anchor, anchor);
|
|
107
|
+
},
|
|
108
|
+
p(ctx, dirty) {
|
|
109
|
+
if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block) {
|
|
110
|
+
if_block.p(ctx, dirty);
|
|
111
|
+
} else {
|
|
112
|
+
if_block.d(1);
|
|
113
|
+
if_block = current_block_type(ctx);
|
|
114
|
+
|
|
115
|
+
if (if_block) {
|
|
116
|
+
if_block.c();
|
|
117
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
d(detaching) {
|
|
122
|
+
if_block.d(detaching);
|
|
123
|
+
if (detaching) detach(if_block_anchor);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// (18:8) {:else}
|
|
129
|
+
function create_else_block(ctx) {
|
|
130
|
+
let span;
|
|
131
|
+
let b;
|
|
132
|
+
let t_value = /*selectionParams*/ ctx[1]?.totalItems + ' selected' + "";
|
|
133
|
+
let t;
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
c() {
|
|
137
|
+
span = element("span");
|
|
138
|
+
b = element("b");
|
|
139
|
+
t = text(t_value);
|
|
140
|
+
attr(span, "class", "svelte-o9e44d");
|
|
141
|
+
},
|
|
142
|
+
m(target, anchor) {
|
|
143
|
+
insert(target, span, anchor);
|
|
144
|
+
append(span, b);
|
|
145
|
+
append(b, t);
|
|
146
|
+
},
|
|
147
|
+
p(ctx, dirty) {
|
|
148
|
+
if (dirty & /*selectionParams*/ 2 && t_value !== (t_value = /*selectionParams*/ ctx[1]?.totalItems + ' selected' + "")) set_data(t, t_value);
|
|
149
|
+
},
|
|
150
|
+
d(detaching) {
|
|
151
|
+
if (detaching) detach(span);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// (10:8) {#if selectionParams?.excludedIdsFromSelection.length > 0}
|
|
157
|
+
function create_if_block_2(ctx) {
|
|
158
|
+
let span;
|
|
159
|
+
let b;
|
|
160
|
+
let t0_value = /*selectionParams*/ ctx[1]?.totalItems - /*selectionParams*/ ctx[1]?.excludedIdsFromSelection.length + "";
|
|
161
|
+
let t0;
|
|
162
|
+
let t1;
|
|
163
|
+
let t2_value = (/*selectionParams*/ ctx[1]?.selectedLabel || 'selected') + "";
|
|
164
|
+
let t2;
|
|
165
|
+
|
|
166
|
+
return {
|
|
167
|
+
c() {
|
|
168
|
+
span = element("span");
|
|
169
|
+
b = element("b");
|
|
170
|
+
t0 = text(t0_value);
|
|
171
|
+
t1 = space();
|
|
172
|
+
t2 = text(t2_value);
|
|
173
|
+
attr(span, "class", "svelte-o9e44d");
|
|
174
|
+
},
|
|
175
|
+
m(target, anchor) {
|
|
176
|
+
insert(target, span, anchor);
|
|
177
|
+
append(span, b);
|
|
178
|
+
append(b, t0);
|
|
179
|
+
append(b, t1);
|
|
180
|
+
append(b, t2);
|
|
181
|
+
},
|
|
182
|
+
p(ctx, dirty) {
|
|
183
|
+
if (dirty & /*selectionParams*/ 2 && t0_value !== (t0_value = /*selectionParams*/ ctx[1]?.totalItems - /*selectionParams*/ ctx[1]?.excludedIdsFromSelection.length + "")) set_data(t0, t0_value);
|
|
184
|
+
if (dirty & /*selectionParams*/ 2 && t2_value !== (t2_value = (/*selectionParams*/ ctx[1]?.selectedLabel || 'selected') + "")) set_data(t2, t2_value);
|
|
185
|
+
},
|
|
186
|
+
d(detaching) {
|
|
187
|
+
if (detaching) detach(span);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
function create_fragment(ctx) {
|
|
193
|
+
let div;
|
|
194
|
+
let if_block = /*itemsSelection*/ ctx[0] && /*showSelectionCount*/ ctx[2] && /*selectionParams*/ ctx[1] != null && create_if_block(ctx);
|
|
195
|
+
|
|
196
|
+
return {
|
|
197
|
+
c() {
|
|
198
|
+
div = element("div");
|
|
199
|
+
if (if_block) if_block.c();
|
|
200
|
+
attr(div, "class", "mc-datatable__topbar-selection svelte-o9e44d");
|
|
201
|
+
},
|
|
202
|
+
m(target, anchor) {
|
|
203
|
+
insert(target, div, anchor);
|
|
204
|
+
if (if_block) if_block.m(div, null);
|
|
205
|
+
},
|
|
206
|
+
p(ctx, [dirty]) {
|
|
207
|
+
if (/*itemsSelection*/ ctx[0] && /*showSelectionCount*/ ctx[2] && /*selectionParams*/ ctx[1] != null) {
|
|
208
|
+
if (if_block) {
|
|
209
|
+
if_block.p(ctx, dirty);
|
|
210
|
+
} else {
|
|
211
|
+
if_block = create_if_block(ctx);
|
|
212
|
+
if_block.c();
|
|
213
|
+
if_block.m(div, null);
|
|
214
|
+
}
|
|
215
|
+
} else if (if_block) {
|
|
216
|
+
if_block.d(1);
|
|
217
|
+
if_block = null;
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
i: noop,
|
|
221
|
+
o: noop,
|
|
222
|
+
d(detaching) {
|
|
223
|
+
if (detaching) detach(div);
|
|
224
|
+
if (if_block) if_block.d();
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function instance($$self, $$props, $$invalidate) {
|
|
230
|
+
let { itemsSelection } = $$props;
|
|
231
|
+
let { selectionParams } = $$props;
|
|
232
|
+
let { showSelectionCount } = $$props;
|
|
233
|
+
|
|
234
|
+
$$self.$$set = $$props => {
|
|
235
|
+
if ('itemsSelection' in $$props) $$invalidate(0, itemsSelection = $$props.itemsSelection);
|
|
236
|
+
if ('selectionParams' in $$props) $$invalidate(1, selectionParams = $$props.selectionParams);
|
|
237
|
+
if ('showSelectionCount' in $$props) $$invalidate(2, showSelectionCount = $$props.showSelectionCount);
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
return [itemsSelection, selectionParams, showSelectionCount];
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
class DataTableDefaultSelectionLabel_nested extends SvelteComponent {
|
|
244
|
+
constructor(options) {
|
|
245
|
+
super();
|
|
246
|
+
|
|
247
|
+
init(
|
|
248
|
+
this,
|
|
249
|
+
options,
|
|
250
|
+
instance,
|
|
251
|
+
create_fragment,
|
|
252
|
+
safe_not_equal,
|
|
253
|
+
{
|
|
254
|
+
itemsSelection: 0,
|
|
255
|
+
selectionParams: 1,
|
|
256
|
+
showSelectionCount: 2
|
|
257
|
+
},
|
|
258
|
+
add_css
|
|
259
|
+
);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export { DataTableDefaultSelectionLabel_nested as default };
|
|
2
264
|
//# sourceMappingURL=DataTableDefaultSelectionLabel.nested.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableDefaultSelectionLabel.nested.js","sources":["../../../src/components/datatable/DataTableDefaultSelectionLabel.nested.svelte"],"sourcesContent":["<script lang=\"ts\">\n import type { SelectionParams } from './datatable.types';\n\n export let itemsSelection: boolean;\n export let selectionParams: SelectionParams | undefined;\n export let showSelectionCount: boolean;\n</script>\n\n<div class=\"mc-datatable__topbar-selection\">\n {#if itemsSelection && showSelectionCount && selectionParams != null}\n <div class=\"center-selection-label\">\n {#if selectionParams?.allSelected}\n {#if selectionParams?.excludedIdsFromSelection.length > 0}\n <span\n ><b\n >{selectionParams?.totalItems -\n selectionParams?.excludedIdsFromSelection.length}\n {selectionParams?.selectedLabel || 'selected'}</b\n >\n </span>\n {:else}\n <span><b>{selectionParams?.totalItems + ' selected'}</b> </span>\n {/if}\n {:else}\n <span\n ><b\n >{selectionParams?.idsSelected.length}\n {selectionParams?.selectedLabel || 'selected'}</b\n >\n </span>\n {/if}\n </div>\n {/if}\n</div>\n\n<style lang=\"scss\">\n .mc-datatable__topbar-selection {\n margin-left: 1rem;\n }\n\n .center-selection-label {\n text-align: center;\n }\n\n .center-selection-label span {\n line-height: 2;\n display: inline-block;\n vertical-align: middle;\n }\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"DataTableDefaultSelectionLabel.nested.js","sources":["../../../src/components/datatable/DataTableDefaultSelectionLabel.nested.svelte"],"sourcesContent":["<script lang=\"ts\">\n import type { SelectionParams } from './datatable.types';\n\n export let itemsSelection: boolean;\n export let selectionParams: SelectionParams | undefined;\n export let showSelectionCount: boolean;\n</script>\n\n<div class=\"mc-datatable__topbar-selection\">\n {#if itemsSelection && showSelectionCount && selectionParams != null}\n <div class=\"center-selection-label\">\n {#if selectionParams?.allSelected}\n {#if selectionParams?.excludedIdsFromSelection.length > 0}\n <span\n ><b\n >{selectionParams?.totalItems -\n selectionParams?.excludedIdsFromSelection.length}\n {selectionParams?.selectedLabel || 'selected'}</b\n >\n </span>\n {:else}\n <span><b>{selectionParams?.totalItems + ' selected'}</b> </span>\n {/if}\n {:else}\n <span\n ><b\n >{selectionParams?.idsSelected.length}\n {selectionParams?.selectedLabel || 'selected'}</b\n >\n </span>\n {/if}\n </div>\n {/if}\n</div>\n\n<style lang=\"scss\">\n .mc-datatable__topbar-selection {\n margin-left: 1rem;\n }\n\n .center-selection-label {\n text-align: center;\n }\n\n .center-selection-label span {\n line-height: 2;\n display: inline-block;\n vertical-align: middle;\n }\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;AAWW,EAAA,wBAAA,GAAe,KAAE,WAAW,EAAA,OAAA,iBAAA,CAAA;;;;;;;;;;;;;;GADnC,MAqBK,CAAA,MAAA,EAAA,GAAA,EAAA,MAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;oCALK,GAAe,CAAA,CAAA,CAAA,EAAE,WAAW,CAAC,MAAM,GAAA,EAAA,CAAA;;;qCACpC,GAAe,CAAA,CAAA,CAAA,EAAE,aAAa,IAAI,UAAU,IAAA,EAAA,CAAA;;;;;;;;;;;;;GAHjD,MAKM,CAAA,MAAA,EAAA,IAAA,EAAA,MAAA,CAAA,CAAA;GAJH,MAGD,CAAA,IAAA,EAAA,CAAA,CAAA,CAAA;;;;;;qFAFI,GAAe,CAAA,CAAA,CAAA,EAAE,WAAW,CAAC,MAAM,GAAA,EAAA,CAAA,EAAA,QAAA,CAAA,EAAA,EAAA,QAAA,CAAA,CAAA;sFACpC,GAAe,CAAA,CAAA,CAAA,EAAE,aAAa,IAAI,UAAU,IAAA,EAAA,CAAA,EAAA,QAA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