@mozaic-ds/web-components 0.5.0 → 0.6.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/package.json +3 -3
- package/public/ClickOutside-63071e7a.js +1 -15
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/DataTableDefaultAction.nested-4da4dc44.js +1 -759
- package/public/DataTableDefaultAction.nested-4da4dc44.js.map +1 -1
- package/public/DataTableUtilities-60220c78.js +1 -370
- package/public/DataTableUtilities-60220c78.js.map +1 -1
- package/public/EventForward-8492ff62.js +1 -109
- package/public/EventForward-8492ff62.js.map +1 -1
- package/public/EventHandler-02058705.js +1 -15
- package/public/EventHandler-02058705.js.map +1 -1
- package/public/adeo/components/checkbox/Checkbox.js +1 -1
- package/public/adeo/components/checkbox/Checkbox.js.map +1 -1
- package/public/adeo/components/checkbox/Checkbox.svelte +2 -2
- package/public/adeo/components/datatable/DataTable.js +1 -1
- package/public/adeo/components/datatable/DataTable.js.map +1 -1
- package/public/adeo/components/datatable/DataTable.svelte +18 -18
- package/public/adeo/components/fileuploader/FileUploader.js +1 -1
- package/public/adeo/components/fileuploader/FileUploader.js.map +1 -1
- package/public/adeo/components/fileuploader/FileUploader.svelte +8 -5
- package/public/adeo/components/fileuploader/ResultFile.nested.js +1 -1
- package/public/adeo/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/adeo/components/layer/Layer.js +1 -1
- package/public/adeo/components/layer/Layer.js.map +1 -1
- package/public/adeo/components/layer/Layer.svelte +2 -1
- package/public/adeo/components/link/Link.js +1 -1
- package/public/adeo/components/link/Link.js.map +1 -1
- package/public/adeo/components/link/Link.svelte +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.js +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/adeo/components/phonenumber/PhoneNumber.svelte +72 -9
- package/public/adeo/components/quantityselector/QuantitySelector.js +1 -1
- package/public/adeo/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/adeo/components/quantityselector/QuantitySelector.svelte +6 -3
- package/public/adeo/components/resultfile/ResultFile.nested.svelte +1 -1
- package/public/array-5b770a93.js +1 -13
- package/public/array-5b770a93.js.map +1 -1
- package/public/axis-fbc0f7b5.js +1 -174
- package/public/axis-fbc0f7b5.js.map +1 -1
- package/public/band-d7a07d2c.js +1 -186
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/bricoman/components/chart/Donut.js +1 -1
- package/public/bricoman/components/checkbox/Checkbox.js +1 -1
- package/public/bricoman/components/checkbox/Checkbox.js.map +1 -1
- package/public/bricoman/components/checkbox/Checkbox.svelte +2 -2
- package/public/bricoman/components/datatable/DataTable.js +1 -1
- package/public/bricoman/components/datatable/DataTable.js.map +1 -1
- package/public/bricoman/components/datatable/DataTable.svelte +18 -18
- package/public/bricoman/components/fileuploader/FileUploader.js +1 -1
- package/public/bricoman/components/fileuploader/FileUploader.js.map +1 -1
- package/public/bricoman/components/fileuploader/FileUploader.svelte +8 -5
- package/public/bricoman/components/fileuploader/ResultFile.nested.js +1 -1
- package/public/bricoman/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/bricoman/components/header/Header.js +1 -1
- package/public/bricoman/components/hero/Hero.js +1 -1
- package/public/bricoman/components/layer/Layer.js +1 -1
- package/public/bricoman/components/layer/Layer.js.map +1 -1
- package/public/bricoman/components/layer/Layer.svelte +2 -1
- package/public/bricoman/components/link/Link.js +1 -1
- package/public/bricoman/components/link/Link.js.map +1 -1
- package/public/bricoman/components/link/Link.svelte +1 -1
- package/public/bricoman/components/listbox/Listbox.js +1 -1
- package/public/bricoman/components/listbox/Listbox.nested.js +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.js +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/bricoman/components/phonenumber/PhoneNumber.svelte +72 -9
- package/public/bricoman/components/price/Price.js +1 -1
- package/public/bricoman/components/quantityselector/QuantitySelector.js +1 -1
- package/public/bricoman/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/bricoman/components/quantityselector/QuantitySelector.svelte +6 -3
- package/public/bricoman/components/resultfile/ResultFile.nested.svelte +1 -1
- package/public/components/accordion/Accordion.js +1 -365
- package/public/components/accordion/Accordion.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1 -1515
- package/public/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/components/badge/Badge.js +1 -155
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.nested.js +1 -101
- package/public/components/badge/Badge.nested.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.js +1 -372
- package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +1 -319
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1 -1138
- package/public/components/button/Button.js.map +1 -1
- package/public/components/card/Card.js +1 -369
- package/public/components/card/Card.js.map +1 -1
- package/public/components/chart/BarChart.js +1 -582
- package/public/components/chart/BarChart.js.map +1 -1
- package/public/components/chart/Donut.js +1 -1189
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +1 -750
- package/public/components/chart/GroupedBarChart.js.map +1 -1
- package/public/components/chart/LineChart.js +1 -1731
- package/public/components/chart/LineChart.js.map +1 -1
- package/public/components/chart/Radar.js +1 -729
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +1 -745
- package/public/components/chart/StackedBarChart.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +1 -307
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkbox/Checkbox.svelte +2 -2
- package/public/components/checkboxgroup/checkboxGroup.js +1 -404
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/datatable/DataTable.js +1 -3064
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTable.svelte +18 -18
- package/public/components/datatable/DataTableDefaultAction.nested.js +1 -4
- package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js +1 -164
- package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js +1 -380
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js +1 -424
- package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +1 -263
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
- package/public/components/datatable/DataTableFooter.nested.js +1 -637
- package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
- package/public/components/dropdown/Dropdown.js +1 -1426
- package/public/components/dropdown/Dropdown.js.map +1 -1
- package/public/components/field/Field.js +1 -375
- package/public/components/field/Field.js.map +1 -1
- package/public/components/fileuploader/FileUploader.js +1 -555
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/FileUploader.svelte +8 -5
- package/public/components/fileuploader/ResultFile.nested.js +1 -265
- package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/components/flag/Flag.js +1 -174
- package/public/components/flag/Flag.js.map +1 -1
- package/public/components/header/Header.js +1 -903
- package/public/components/header/Header.js.map +1 -1
- package/public/components/hero/Hero.js +1 -271
- package/public/components/hero/Hero.js.map +1 -1
- package/public/components/layer/Layer.js +1 -453
- package/public/components/layer/Layer.js.map +1 -1
- package/public/components/layer/Layer.svelte +2 -1
- package/public/components/link/Link.js +1 -380
- package/public/components/link/Link.js.map +1 -1
- package/public/components/link/Link.svelte +1 -1
- package/public/components/listbox/Listbox.js +1 -595
- package/public/components/listbox/Listbox.js.map +1 -1
- package/public/components/listbox/Listbox.nested.js +1 -629
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +1 -246
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.nested.js +1 -176
- package/public/components/loader/Loader.nested.js.map +1 -1
- package/public/components/modal/Modal.js +1 -395
- package/public/components/modal/Modal.js.map +1 -1
- package/public/components/notification/Notification.js +1 -458
- package/public/components/notification/Notification.js.map +1 -1
- package/public/components/optionbutton/OptionButton.js +1 -316
- package/public/components/optionbutton/OptionButton.js.map +1 -1
- package/public/components/overlay/Overlay.js +1 -104
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/OverlayLoader.js +1 -151
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/pagination/Pagination.js +1 -613
- package/public/components/pagination/Pagination.js.map +1 -1
- package/public/components/passwordinput/PasswordInput.js +1 -291
- package/public/components/passwordinput/PasswordInput.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.js +1 -6894
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/price/Price.js +1 -768
- package/public/components/price/Price.js.map +1 -1
- package/public/components/progressbar/ProgressBar.js +1 -278
- package/public/components/progressbar/ProgressBar.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.js +1 -333
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.svelte +6 -3
- package/public/components/radio/Radio.js +1 -273
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +1 -414
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/ratings/StarsInput.js +1 -292
- package/public/components/ratings/StarsInput.js.map +1 -1
- package/public/components/ratings/StarsResult.js +1 -246
- package/public/components/ratings/StarsResult.js.map +1 -1
- package/public/components/resultfile/ResultFile.nested.svelte +1 -1
- package/public/components/select/Select.js +1 -451
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +1 -784
- package/public/components/sidebar/Sidebar.js.map +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +1 -594
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +1 -402
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +1 -394
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +1 -200
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +1 -49
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +1 -312
- package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +1 -733
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/stepper/Stepper.js +1 -371
- package/public/components/stepper/Stepper.js.map +1 -1
- package/public/components/tabs/Tabs.js +1 -615
- package/public/components/tabs/Tabs.js.map +1 -1
- package/public/components/tabs/Tabs.nested.js +1 -472
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +1 -665
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +1 -554
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/taglist/TagList.js +1 -475
- package/public/components/taglist/TagList.js.map +1 -1
- package/public/components/textarea/Textarea.js +1 -303
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +1 -497
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.nested.js +1 -320
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +1 -278
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/tooltip/Tooltip.js +1 -173
- package/public/components/tooltip/Tooltip.js.map +1 -1
- package/public/index-c33b3772.js +1 -873
- package/public/index-c33b3772.js.map +1 -1
- package/public/linear-f46d7e9e.js +1 -700
- package/public/linear-f46d7e9e.js.map +1 -1
- package/public/path-1b5da959.js +1 -186
- package/public/path-1b5da959.js.map +1 -1
- package/public/sidebar-service-275bf9ef.js +1 -129
- package/public/sidebar-service-275bf9ef.js.map +1 -1
- package/public/symbol-b05a6e2b.js +1 -169
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js +1 -2743
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/stories/fileuploader/FileUploader.stories.d.ts.map +1 -1
- package/public/utilities/stories/quantityselector/QuantitySelector.stories.d.ts.map +1 -1
|
@@ -1,317 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as createEventForwarder } from '../../EventForward-8492ff62.js';
|
|
3
|
-
import { E as EventHandler } from '../../EventHandler-02058705.js';
|
|
4
|
-
|
|
5
|
-
/* src/components/optionbutton/OptionButton.svelte generated by Svelte v3.58.0 */
|
|
6
|
-
|
|
7
|
-
function get_each_context(ctx, list, i) {
|
|
8
|
-
const child_ctx = ctx.slice();
|
|
9
|
-
child_ctx[12] = list[i];
|
|
10
|
-
return child_ctx;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// (26:2) {#each parsedOptions as option}
|
|
14
|
-
function create_each_block(ctx) {
|
|
15
|
-
let div;
|
|
16
|
-
let input;
|
|
17
|
-
let input_id_value;
|
|
18
|
-
let input_name_value;
|
|
19
|
-
let input_disabled_value;
|
|
20
|
-
let t0;
|
|
21
|
-
let label;
|
|
22
|
-
let t1_value = /*option*/ ctx[12].label + "";
|
|
23
|
-
let t1;
|
|
24
|
-
let label_for_value;
|
|
25
|
-
let t2;
|
|
26
|
-
let mounted;
|
|
27
|
-
let dispose;
|
|
28
|
-
|
|
29
|
-
function change_handler() {
|
|
30
|
-
return /*change_handler*/ ctx[8](/*option*/ ctx[12]);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
c() {
|
|
35
|
-
div = element("div");
|
|
36
|
-
input = element("input");
|
|
37
|
-
t0 = space();
|
|
38
|
-
label = element("label");
|
|
39
|
-
t1 = text(t1_value);
|
|
40
|
-
t2 = space();
|
|
41
|
-
attr(input, "id", input_id_value = /*option*/ ctx[12].id);
|
|
42
|
-
attr(input, "type", "radio");
|
|
43
|
-
attr(input, "class", "mc-option-button__input");
|
|
44
|
-
attr(input, "name", input_name_value = /*option*/ ctx[12].name);
|
|
45
|
-
input.checked = /*checked*/ ctx[0];
|
|
46
|
-
input.disabled = input_disabled_value = /*option*/ ctx[12].disabled;
|
|
47
|
-
attr(label, "for", label_for_value = /*option*/ ctx[12].id);
|
|
48
|
-
attr(label, "class", "mc-option-button__label");
|
|
49
|
-
attr(div, "class", "mc-option-button");
|
|
50
|
-
toggle_class(div, "mc-option-button--full", /*option*/ ctx[12].fullwidth);
|
|
51
|
-
},
|
|
52
|
-
m(target, anchor) {
|
|
53
|
-
insert(target, div, anchor);
|
|
54
|
-
append(div, input);
|
|
55
|
-
append(div, t0);
|
|
56
|
-
append(div, label);
|
|
57
|
-
append(label, t1);
|
|
58
|
-
append(div, t2);
|
|
59
|
-
|
|
60
|
-
if (!mounted) {
|
|
61
|
-
dispose = [
|
|
62
|
-
action_destroyer(/*forwardEvents*/ ctx[5].call(null, input)),
|
|
63
|
-
listen(input, "change", change_handler)
|
|
64
|
-
];
|
|
65
|
-
|
|
66
|
-
mounted = true;
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
p(new_ctx, dirty) {
|
|
70
|
-
ctx = new_ctx;
|
|
71
|
-
|
|
72
|
-
if (dirty & /*parsedOptions*/ 16 && input_id_value !== (input_id_value = /*option*/ ctx[12].id)) {
|
|
73
|
-
attr(input, "id", input_id_value);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
if (dirty & /*parsedOptions*/ 16 && input_name_value !== (input_name_value = /*option*/ ctx[12].name)) {
|
|
77
|
-
attr(input, "name", input_name_value);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (dirty & /*checked*/ 1) {
|
|
81
|
-
input.checked = /*checked*/ ctx[0];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (dirty & /*parsedOptions*/ 16 && input_disabled_value !== (input_disabled_value = /*option*/ ctx[12].disabled)) {
|
|
85
|
-
input.disabled = input_disabled_value;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
if (dirty & /*parsedOptions*/ 16 && t1_value !== (t1_value = /*option*/ ctx[12].label + "")) set_data(t1, t1_value);
|
|
89
|
-
|
|
90
|
-
if (dirty & /*parsedOptions*/ 16 && label_for_value !== (label_for_value = /*option*/ ctx[12].id)) {
|
|
91
|
-
attr(label, "for", label_for_value);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if (dirty & /*parsedOptions*/ 16) {
|
|
95
|
-
toggle_class(div, "mc-option-button--full", /*option*/ ctx[12].fullwidth);
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
d(detaching) {
|
|
99
|
-
if (detaching) detach(div);
|
|
100
|
-
mounted = false;
|
|
101
|
-
run_all(dispose);
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function create_fragment(ctx) {
|
|
107
|
-
let div;
|
|
108
|
-
let div_class_value;
|
|
109
|
-
let div_style_value;
|
|
110
|
-
let each_value = /*parsedOptions*/ ctx[4];
|
|
111
|
-
let each_blocks = [];
|
|
112
|
-
|
|
113
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
114
|
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
let div_levels = [
|
|
118
|
-
{
|
|
119
|
-
class: div_class_value = "mc-option-group " + /*userClass*/ ctx[3]
|
|
120
|
-
},
|
|
121
|
-
/*attributes*/ ctx[2],
|
|
122
|
-
{
|
|
123
|
-
style: div_style_value = `justify-content:${/*justifycontent*/ ctx[1]}`
|
|
124
|
-
}
|
|
125
|
-
];
|
|
126
|
-
|
|
127
|
-
let div_data = {};
|
|
128
|
-
|
|
129
|
-
for (let i = 0; i < div_levels.length; i += 1) {
|
|
130
|
-
div_data = assign(div_data, div_levels[i]);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return {
|
|
134
|
-
c() {
|
|
135
|
-
div = element("div");
|
|
136
|
-
|
|
137
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
138
|
-
each_blocks[i].c();
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
this.c = noop;
|
|
142
|
-
set_attributes(div, div_data);
|
|
143
|
-
},
|
|
144
|
-
m(target, anchor) {
|
|
145
|
-
insert(target, div, anchor);
|
|
146
|
-
|
|
147
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
148
|
-
if (each_blocks[i]) {
|
|
149
|
-
each_blocks[i].m(div, null);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
p(ctx, [dirty]) {
|
|
154
|
-
if (dirty & /*parsedOptions, checked, handleChange*/ 81) {
|
|
155
|
-
each_value = /*parsedOptions*/ ctx[4];
|
|
156
|
-
let i;
|
|
157
|
-
|
|
158
|
-
for (i = 0; i < each_value.length; i += 1) {
|
|
159
|
-
const child_ctx = get_each_context(ctx, each_value, i);
|
|
160
|
-
|
|
161
|
-
if (each_blocks[i]) {
|
|
162
|
-
each_blocks[i].p(child_ctx, dirty);
|
|
163
|
-
} else {
|
|
164
|
-
each_blocks[i] = create_each_block(child_ctx);
|
|
165
|
-
each_blocks[i].c();
|
|
166
|
-
each_blocks[i].m(div, null);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
for (; i < each_blocks.length; i += 1) {
|
|
171
|
-
each_blocks[i].d(1);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
each_blocks.length = each_value.length;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
set_attributes(div, div_data = get_spread_update(div_levels, [
|
|
178
|
-
dirty & /*userClass*/ 8 && div_class_value !== (div_class_value = "mc-option-group " + /*userClass*/ ctx[3]) && { class: div_class_value },
|
|
179
|
-
dirty & /*attributes*/ 4 && /*attributes*/ ctx[2],
|
|
180
|
-
dirty & /*justifycontent*/ 2 && div_style_value !== (div_style_value = `justify-content:${/*justifycontent*/ ctx[1]}`) && { style: div_style_value }
|
|
181
|
-
]));
|
|
182
|
-
},
|
|
183
|
-
i: noop,
|
|
184
|
-
o: noop,
|
|
185
|
-
d(detaching) {
|
|
186
|
-
if (detaching) detach(div);
|
|
187
|
-
destroy_each(each_blocks, detaching);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function instance($$self, $$props, $$invalidate) {
|
|
193
|
-
let parsedOptions;
|
|
194
|
-
let userClass;
|
|
195
|
-
let attributes;
|
|
196
|
-
const omit_props_names = ["checked","options","justifycontent"];
|
|
197
|
-
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
198
|
-
let { checked } = $$props;
|
|
199
|
-
let { options } = $$props;
|
|
200
|
-
let { justifycontent = 'space-between' } = $$props;
|
|
201
|
-
let eventHandler = new EventHandler();
|
|
202
|
-
const forwardEvents = createEventForwarder(get_current_component());
|
|
203
|
-
|
|
204
|
-
function handleChange(option) {
|
|
205
|
-
option.checked = !option.checked;
|
|
206
|
-
eventHandler.dispatch('change', option);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
const change_handler = option => handleChange(option);
|
|
210
|
-
|
|
211
|
-
$$self.$$set = $$new_props => {
|
|
212
|
-
$$invalidate(11, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
|
|
213
|
-
$$invalidate(10, $$restProps = compute_rest_props($$props, omit_props_names));
|
|
214
|
-
if ('checked' in $$new_props) $$invalidate(0, checked = $$new_props.checked);
|
|
215
|
-
if ('options' in $$new_props) $$invalidate(7, options = $$new_props.options);
|
|
216
|
-
if ('justifycontent' in $$new_props) $$invalidate(1, justifycontent = $$new_props.justifycontent);
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
$$self.$$.update = () => {
|
|
220
|
-
if ($$self.$$.dirty & /*options*/ 128) {
|
|
221
|
-
$$invalidate(4, parsedOptions = options ? JSON.parse(options) : []);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
$$invalidate(3, userClass = $$props.class);
|
|
225
|
-
$$invalidate(2, attributes = Object.assign({}, $$restProps));
|
|
226
|
-
|
|
227
|
-
if ($$self.$$.dirty & /*attributes*/ 4) {
|
|
228
|
-
delete attributes.class;
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
$$props = exclude_internal_props($$props);
|
|
233
|
-
|
|
234
|
-
return [
|
|
235
|
-
checked,
|
|
236
|
-
justifycontent,
|
|
237
|
-
attributes,
|
|
238
|
-
userClass,
|
|
239
|
-
parsedOptions,
|
|
240
|
-
forwardEvents,
|
|
241
|
-
handleChange,
|
|
242
|
-
options,
|
|
243
|
-
change_handler
|
|
244
|
-
];
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
class OptionButton extends SvelteElement {
|
|
248
|
-
constructor(options) {
|
|
249
|
-
super();
|
|
250
|
-
const style = document.createElement('style');
|
|
251
|
-
style.textContent = `.mc-option-button{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center}.mc-option-button__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-option-button__input:hover+.mc-option-button__label{-webkit-box-shadow:0 0 0 2px #333333;box-shadow:0 0 0 2px #333333}.mc-option-button__input:checked+.mc-option-button__label{border-color:#46a610;-webkit-box-shadow:0 0 0 0.25rem #ebf5de;box-shadow:0 0 0 0.25rem #ebf5de}.mc-option-button__input:focus+.mc-option-button__label::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-option-button__input:disabled+.mc-option-button__label{cursor:not-allowed;background-color:#cccccc;color:#666666;-webkit-box-shadow:none;box-shadow:none}.mc-option-button__label{font-family:"LeroyMerlin", sans-serif;font-weight:600;position:relative;padding:1.5625rem 2rem;border-radius:4px;-webkit-box-shadow:0 0 0 1px #b3b3b3;box-shadow:0 0 0 1px #b3b3b3;border:2px solid transparent;cursor:pointer;position:relative}.mc-option-button__label::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;border-radius:6px;top:-0.25rem;right:-0.25rem;bottom:-0.25rem;left:-0.25rem}.mc-option-button--full .mc-option-button__label{width:100%}.mc-option-group{display:-webkit-box;display:-ms-flexbox;display:flex}`;
|
|
252
|
-
this.shadowRoot.appendChild(style);
|
|
253
|
-
|
|
254
|
-
init(
|
|
255
|
-
this,
|
|
256
|
-
{
|
|
257
|
-
target: this.shadowRoot,
|
|
258
|
-
props: attribute_to_object(this.attributes),
|
|
259
|
-
customElement: true
|
|
260
|
-
},
|
|
261
|
-
instance,
|
|
262
|
-
create_fragment,
|
|
263
|
-
safe_not_equal,
|
|
264
|
-
{
|
|
265
|
-
checked: 0,
|
|
266
|
-
options: 7,
|
|
267
|
-
justifycontent: 1
|
|
268
|
-
},
|
|
269
|
-
null
|
|
270
|
-
);
|
|
271
|
-
|
|
272
|
-
if (options) {
|
|
273
|
-
if (options.target) {
|
|
274
|
-
insert(options.target, this, options.anchor);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
if (options.props) {
|
|
278
|
-
this.$set(options.props);
|
|
279
|
-
flush();
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
static get observedAttributes() {
|
|
285
|
-
return ["checked", "options", "justifycontent"];
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
get checked() {
|
|
289
|
-
return this.$$.ctx[0];
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
set checked(checked) {
|
|
293
|
-
this.$$set({ checked });
|
|
294
|
-
flush();
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
get options() {
|
|
298
|
-
return this.$$.ctx[7];
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
set options(options) {
|
|
302
|
-
this.$$set({ options });
|
|
303
|
-
flush();
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
get justifycontent() {
|
|
307
|
-
return this.$$.ctx[1];
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
set justifycontent(justifycontent) {
|
|
311
|
-
this.$$set({ justifycontent });
|
|
312
|
-
flush();
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export { OptionButton as default };
|
|
1
|
+
import{S as t,i as o,a as e,b as s,f as n,s as i,c as a,e as c,n as r,h as l,m as d,o as b,J as p,p as u,r as h,q as f,d as m,t as x,g as w,z as g,j as k,B as _,l as y,k as $,H as j}from"../../index-c33b3772.js";import{c as v}from"../../EventForward-8492ff62.js";import{E}from"../../EventHandler-02058705.js";function C(t,o,e){const s=t.slice();return s[12]=o[e],s}function H(t){let o,e,n,i,a,r,l,d,p,u,h,f,v=t[12].label+"";function E(){return t[8](t[12])}return{c(){o=c("div"),e=c("input"),r=m(),l=c("label"),d=x(v),u=m(),w(e,"id",n=t[12].id),w(e,"type","radio"),w(e,"class","mc-option-button__input"),w(e,"name",i=t[12].name),e.checked=t[0],e.disabled=a=t[12].disabled,w(l,"for",p=t[12].id),w(l,"class","mc-option-button__label"),w(o,"class","mc-option-button"),g(o,"mc-option-button--full",t[12].fullwidth)},m(n,i){s(n,o,i),k(o,e),k(o,r),k(o,l),k(l,d),k(o,u),h||(f=[_(t[5].call(null,e)),y(e,"change",E)],h=!0)},p(s,c){t=s,16&c&&n!==(n=t[12].id)&&w(e,"id",n),16&c&&i!==(i=t[12].name)&&w(e,"name",i),1&c&&(e.checked=t[0]),16&c&&a!==(a=t[12].disabled)&&(e.disabled=a),16&c&&v!==(v=t[12].label+"")&&$(d,v),16&c&&p!==(p=t[12].id)&&w(l,"for",p),16&c&&g(o,"mc-option-button--full",t[12].fullwidth)},d(t){t&&b(o),h=!1,j(f)}}}function J(t){let o,e,n,i=t[4],u=[];for(let o=0;o<i.length;o+=1)u[o]=H(C(t,i,o));let h=[{class:e="mc-option-group "+t[3]},t[2],{style:n=`justify-content:${t[1]}`}],f={};for(let t=0;t<h.length;t+=1)f=a(f,h[t]);return{c(){o=c("div");for(let t=0;t<u.length;t+=1)u[t].c();this.c=r,l(o,f)},m(t,e){s(t,o,e);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null)},p(t,[s]){if(81&s){let e;for(i=t[4],e=0;e<i.length;e+=1){const n=C(t,i,e);u[e]?u[e].p(n,s):(u[e]=H(n),u[e].c(),u[e].m(o,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=i.length}l(o,f=d(h,[8&s&&e!==(e="mc-option-group "+t[3])&&{class:e},4&s&&t[2],2&s&&n!==(n=`justify-content:${t[1]}`)&&{style:n}]))},i:r,o:r,d(t){t&&b(o),p(u,t)}}}function O(t,o,e){let s,n,i;const c=["checked","options","justifycontent"];let r=u(o,c),{checked:l}=o,{options:d}=o,{justifycontent:b="space-between"}=o,p=new E;const m=v(h());function x(t){t.checked=!t.checked,p.dispatch("change",t)}return t.$$set=t=>{e(11,o=a(a({},o),f(t))),e(10,r=u(o,c)),"checked"in t&&e(0,l=t.checked),"options"in t&&e(7,d=t.options),"justifycontent"in t&&e(1,b=t.justifycontent)},t.$$.update=()=>{128&t.$$.dirty&&e(4,s=d?JSON.parse(d):[]),e(3,n=o.class),e(2,i=Object.assign({},r)),4&t.$$.dirty&&delete i.class},o=f(o),[l,b,i,n,s,m,x,d,t=>x(t)]}class R extends t{constructor(t){super();const a=document.createElement("style");a.textContent='.mc-option-button{display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center}.mc-option-button__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;visibility:visible;white-space:nowrap}.mc-option-button__input:hover+.mc-option-button__label{-webkit-box-shadow:0 0 0 2px #333333;box-shadow:0 0 0 2px #333333}.mc-option-button__input:checked+.mc-option-button__label{border-color:#46a610;-webkit-box-shadow:0 0 0 0.25rem #ebf5de;box-shadow:0 0 0 0.25rem #ebf5de}.mc-option-button__input:focus+.mc-option-button__label::after{-webkit-box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc;box-shadow:0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #0b96cc}.mc-option-button__input:disabled+.mc-option-button__label{cursor:not-allowed;background-color:#cccccc;color:#666666;-webkit-box-shadow:none;box-shadow:none}.mc-option-button__label{font-family:"LeroyMerlin", sans-serif;font-weight:600;position:relative;padding:1.5625rem 2rem;border-radius:4px;-webkit-box-shadow:0 0 0 1px #b3b3b3;box-shadow:0 0 0 1px #b3b3b3;border:2px solid transparent;cursor:pointer;position:relative}.mc-option-button__label::after{border-radius:2px;-webkit-box-shadow:0 0 0 0 transparent;box-shadow:0 0 0 0 transparent;content:"";display:block;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transition:-webkit-box-shadow 200ms ease;transition:-webkit-box-shadow 200ms ease;-o-transition:box-shadow 200ms ease;transition:box-shadow 200ms ease;transition:box-shadow 200ms ease, -webkit-box-shadow 200ms ease;border-radius:6px;top:-0.25rem;right:-0.25rem;bottom:-0.25rem;left:-0.25rem}.mc-option-button--full .mc-option-button__label{width:100%}.mc-option-group{display:-webkit-box;display:-ms-flexbox;display:flex}',this.shadowRoot.appendChild(a),o(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},O,J,i,{checked:0,options:7,justifycontent:1},null),t&&(t.target&&s(t.target,this,t.anchor),t.props&&(this.$set(t.props),n()))}static get observedAttributes(){return["checked","options","justifycontent"]}get checked(){return this.$$.ctx[0]}set checked(t){this.$$set({checked:t}),n()}get options(){return this.$$.ctx[7]}set options(t){this.$$set({options:t}),n()}get justifycontent(){return this.$$.ctx[1]}set justifycontent(t){this.$$set({justifycontent:t}),n()}}export{R as default};
|
|
317
2
|
//# sourceMappingURL=OptionButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionButton.js","sources":["../../../src/components/optionbutton/OptionButton.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import { get_current_component } from 'svelte/internal';\n import { createEventForwarder } from '../../utilities/EventForward';\n import { EventHandler } from '../../utilities/EventHandler';\n import type { OptionItems } from './optionbutton.types';\n export let checked: boolean;\n export let options: string;\n export let justifycontent = 'space-between';\n $: parsedOptions = options ? (JSON.parse(options) as OptionItems[]) : [];\n $: userClass = $$props.class;\n $: attributes = { ...$$restProps };\n $: delete attributes.class;\n\n let eventHandler = new EventHandler();\n const forwardEvents = createEventForwarder(get_current_component());\n\n function handleChange(option: OptionItems): void {\n option.checked = !option.checked;\n eventHandler.dispatch('change', option);\n }\n</script>\n\n<div\n class=\"mc-option-group {userClass}\"\n {...attributes}\n style={`justify-content:${justifycontent}`}\n>\n {#each parsedOptions as option}\n <div\n class=\"mc-option-button\"\n class:mc-option-button--full={option.fullwidth}\n >\n <input\n use:forwardEvents\n id={option.id}\n type=\"radio\"\n class=\"mc-option-button__input\"\n name={option.name}\n {checked}\n disabled={option.disabled}\n on:change={() => handleChange(option)}\n />\n <label for={option.id} class=\"mc-option-button__label\">\n {option.label}\n </label>\n </div>\n {/each}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/components/c.option-button';\n\n .mc-option-group {\n display: flex;\n }\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"OptionButton.js","sources":["../../../src/components/optionbutton/OptionButton.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import { get_current_component } from 'svelte/internal';\n import { createEventForwarder } from '../../utilities/EventForward';\n import { EventHandler } from '../../utilities/EventHandler';\n import type { OptionItems } from './optionbutton.types';\n export let checked: boolean;\n export let options: string;\n export let justifycontent = 'space-between';\n $: parsedOptions = options ? (JSON.parse(options) as OptionItems[]) : [];\n $: userClass = $$props.class;\n $: attributes = { ...$$restProps };\n $: delete attributes.class;\n\n let eventHandler = new EventHandler();\n const forwardEvents = createEventForwarder(get_current_component());\n\n function handleChange(option: OptionItems): void {\n option.checked = !option.checked;\n eventHandler.dispatch('change', option);\n }\n</script>\n\n<div\n class=\"mc-option-group {userClass}\"\n {...attributes}\n style={`justify-content:${justifycontent}`}\n>\n {#each parsedOptions as option}\n <div\n class=\"mc-option-button\"\n class:mc-option-button--full={option.fullwidth}\n >\n <input\n use:forwardEvents\n id={option.id}\n type=\"radio\"\n class=\"mc-option-button__input\"\n name={option.name}\n {checked}\n disabled={option.disabled}\n on:change={() => handleChange(option)}\n />\n <label for={option.id} class=\"mc-option-button__label\">\n {option.label}\n </label>\n </div>\n {/each}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/components/c.option-button';\n\n .mc-option-group {\n display: flex;\n }\n</style>\n"],"names":["t1_value","ctx","label","attr","input","input_id_value","id","input_name_value","name","disabled","input_disabled_value","label_for_value","toggle_class","div","fullwidth","insert","target","anchor","append","dirty","set_data","t1","length","i","class","div_class_value","style","div_style_value","checked","$$props","options","justifycontent","eventHandler","EventHandler","forwardEvents","createEventForwarder","get_current_component","handleChange","option","dispatch","$$invalidate","parsedOptions","JSON","parse","userClass","attributes","Object","assign","$$restProps"],"mappings":"uZA6CSA,EAAAC,MAAOC,MAAK,sGATTC,EAAAC,EAAA,KAAAC,EAAAJ,MAAOK,+DAGLH,EAAAC,EAAA,OAAAG,EAAAN,MAAOO,qBAEHJ,EAAAK,SAAAC,EAAAT,MAAOQ,SAGPN,EAAAD,EAAA,MAAAS,EAAAV,MAAOK,2EAZWM,EAAAC,EAAA,yBAAAZ,MAAOa,mBAFvCC,EAiBKC,EAAAH,EAAAI,GAbHC,EASCL,EAAAT,UACDc,EAEOL,EAAAX,gFAVD,GAAAiB,GAAAd,KAAAA,EAAAJ,MAAOK,iBAGL,GAAAa,GAAAZ,KAAAA,EAAAN,MAAOO,2CAEH,GAAAW,GAAAT,KAAAA,EAAAT,MAAOQ,0BAIhB,GAAAU,GAAAnB,KAAAA,EAAAC,MAAOC,MAAK,KAAAkB,EAAAC,EAAArB,GADH,GAAAmB,GAAAR,KAAAA,EAAAV,MAAOK,wBAZWM,EAAAC,EAAA,yBAAAZ,MAAOa,+DAHlCb,EAAa,wBAAlBqB,OAAIC,GAAA,sDAJkBtB,EAAS,IAC7BA,EAAU,+BACYA,EAAc,uIAH1Cc,EAyBKC,EAAAH,EAAAI,mFApBIhB,EAAa,WAAlBqB,OAAIC,GAAA,EAAA,iHAAJD,iDAJsBrB,EAAS,KAAA,CAAAuB,MAAAC,QAC7BxB,EAAU,kCACYA,EAAc,OAAA,CAAAyB,MAAAC,sIApB7BC,GAAgBC,WAChBC,GAAeD,GACfE,eAAAA,EAAiB,iBAAeF,EAMvCG,MAAmBC,QACjBC,EAAgBC,EAAqBC,KAElC,SAAAC,EAAaC,GACpBA,EAAOV,SAAWU,EAAOV,QACzBI,EAAaO,SAAS,SAAUD,6MAVjCE,EAAA,EAAEC,EAAgBX,EAAWY,KAAKC,MAAMb,GAAO,IAC7CU,EAAA,EAAAI,EAAYf,EAAQL,WACpBqB,EAALC,OAAAC,UAAuBC,yBACXH,EAAWrB,+BA6BEc,GAAAD,EAAaC"}
|
|
@@ -1,105 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/* src/components/overlay/Overlay.svelte generated by Svelte v3.58.0 */
|
|
4
|
-
|
|
5
|
-
function create_fragment(ctx) {
|
|
6
|
-
let div;
|
|
7
|
-
let slot;
|
|
8
|
-
let div_levels = [{ class: "mc-overlay" }, /*$$restProps*/ ctx[1]];
|
|
9
|
-
let div_data = {};
|
|
10
|
-
|
|
11
|
-
for (let i = 0; i < div_levels.length; i += 1) {
|
|
12
|
-
div_data = assign(div_data, div_levels[i]);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
return {
|
|
16
|
-
c() {
|
|
17
|
-
div = element("div");
|
|
18
|
-
slot = element("slot");
|
|
19
|
-
this.c = noop;
|
|
20
|
-
set_attributes(div, div_data);
|
|
21
|
-
toggle_class(div, "is-visible", /*visible*/ ctx[0]);
|
|
22
|
-
},
|
|
23
|
-
m(target, anchor) {
|
|
24
|
-
insert(target, div, anchor);
|
|
25
|
-
append(div, slot);
|
|
26
|
-
},
|
|
27
|
-
p(ctx, [dirty]) {
|
|
28
|
-
set_attributes(div, div_data = get_spread_update(div_levels, [
|
|
29
|
-
{ class: "mc-overlay" },
|
|
30
|
-
dirty & /*$$restProps*/ 2 && /*$$restProps*/ ctx[1]
|
|
31
|
-
]));
|
|
32
|
-
|
|
33
|
-
toggle_class(div, "is-visible", /*visible*/ ctx[0]);
|
|
34
|
-
},
|
|
35
|
-
i: noop,
|
|
36
|
-
o: noop,
|
|
37
|
-
d(detaching) {
|
|
38
|
-
if (detaching) detach(div);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function instance($$self, $$props, $$invalidate) {
|
|
44
|
-
const omit_props_names = ["visible"];
|
|
45
|
-
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
46
|
-
let { visible = false } = $$props;
|
|
47
|
-
|
|
48
|
-
$$self.$$set = $$new_props => {
|
|
49
|
-
$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
|
|
50
|
-
$$invalidate(1, $$restProps = compute_rest_props($$props, omit_props_names));
|
|
51
|
-
if ('visible' in $$new_props) $$invalidate(0, visible = $$new_props.visible);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
return [visible, $$restProps];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
class Overlay extends SvelteElement {
|
|
58
|
-
constructor(options) {
|
|
59
|
-
super();
|
|
60
|
-
const style = document.createElement('style');
|
|
61
|
-
style.textContent = `.mc-overlay{background-color:rgba(25, 25, 25, 0.7);-webkit-filter:blur(1px);filter:blur(1px);inset:0;opacity:0;position:fixed;pointer-events:none;-webkit-transition:opacity 0.4s ease, visibility 0ms 0.4s;-o-transition:opacity 0.4s ease, visibility 0ms 0.4s;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:1999999998}.mc-overlay.is-visible{opacity:1;pointer-events:all;-webkit-transition:opacity 0.4s ease, visibility 0ms;-o-transition:opacity 0.4s ease, visibility 0ms;transition:opacity 0.4s ease, visibility 0ms;visibility:visible}.mc-overlay-loader{background-color:rgba(25, 25, 25, 0.7);inset:0;opacity:0;position:fixed;pointer-events:none;-webkit-transition:opacity 0.4s ease, visibility 0ms 0.4s;-o-transition:opacity 0.4s ease, visibility 0ms 0.4s;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:1999999998;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mc-overlay-loader.is-visible{opacity:1;pointer-events:all;-webkit-transition:opacity 0.4s ease, visibility 0ms;-o-transition:opacity 0.4s ease, visibility 0ms;transition:opacity 0.4s ease, visibility 0ms;visibility:visible}`;
|
|
62
|
-
this.shadowRoot.appendChild(style);
|
|
63
|
-
|
|
64
|
-
init(
|
|
65
|
-
this,
|
|
66
|
-
{
|
|
67
|
-
target: this.shadowRoot,
|
|
68
|
-
props: attribute_to_object(this.attributes),
|
|
69
|
-
customElement: true
|
|
70
|
-
},
|
|
71
|
-
instance,
|
|
72
|
-
create_fragment,
|
|
73
|
-
safe_not_equal,
|
|
74
|
-
{ visible: 0 },
|
|
75
|
-
null
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
if (options) {
|
|
79
|
-
if (options.target) {
|
|
80
|
-
insert(options.target, this, options.anchor);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
if (options.props) {
|
|
84
|
-
this.$set(options.props);
|
|
85
|
-
flush();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
static get observedAttributes() {
|
|
91
|
-
return ["visible"];
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
get visible() {
|
|
95
|
-
return this.$$.ctx[0];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
set visible(visible) {
|
|
99
|
-
this.$$set({ visible });
|
|
100
|
-
flush();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export { Overlay as default };
|
|
1
|
+
import{S as i,i as s,a as t,b as e,f as a,s as o,c as n,e as l,n as r,h as c,z as b,j as p,m as v,o as y,p as m,q as d}from"../../index-c33b3772.js";function u(i){let s,t,a=[{class:"mc-overlay"},i[1]],o={};for(let i=0;i<a.length;i+=1)o=n(o,a[i]);return{c(){s=l("div"),t=l("slot"),this.c=r,c(s,o),b(s,"is-visible",i[0])},m(i,a){e(i,s,a),p(s,t)},p(i,[t]){c(s,o=v(a,[{class:"mc-overlay"},2&t&&i[1]])),b(s,"is-visible",i[0])},i:r,o:r,d(i){i&&y(s)}}}function x(i,s,t){const e=["visible"];let a=m(s,e),{visible:o=!1}=s;return i.$$set=i=>{s=n(n({},s),d(i)),t(1,a=m(s,e)),"visible"in i&&t(0,o=i.visible)},[o,a]}class f extends i{constructor(i){super();const n=document.createElement("style");n.textContent=".mc-overlay{background-color:rgba(25, 25, 25, 0.7);-webkit-filter:blur(1px);filter:blur(1px);inset:0;opacity:0;position:fixed;pointer-events:none;-webkit-transition:opacity 0.4s ease, visibility 0ms 0.4s;-o-transition:opacity 0.4s ease, visibility 0ms 0.4s;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:1999999998}.mc-overlay.is-visible{opacity:1;pointer-events:all;-webkit-transition:opacity 0.4s ease, visibility 0ms;-o-transition:opacity 0.4s ease, visibility 0ms;transition:opacity 0.4s ease, visibility 0ms;visibility:visible}.mc-overlay-loader{background-color:rgba(25, 25, 25, 0.7);inset:0;opacity:0;position:fixed;pointer-events:none;-webkit-transition:opacity 0.4s ease, visibility 0ms 0.4s;-o-transition:opacity 0.4s ease, visibility 0ms 0.4s;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:1999999998;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mc-overlay-loader.is-visible{opacity:1;pointer-events:all;-webkit-transition:opacity 0.4s ease, visibility 0ms;-o-transition:opacity 0.4s ease, visibility 0ms;transition:opacity 0.4s ease, visibility 0ms;visibility:visible}",this.shadowRoot.appendChild(n),s(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},x,u,o,{visible:0},null),i&&(i.target&&e(i.target,this,i.anchor),i.props&&(this.$set(i.props),a()))}static get observedAttributes(){return["visible"]}get visible(){return this.$$.ctx[0]}set visible(i){this.$$set({visible:i}),a()}}export{f as default};
|
|
105
2
|
//# sourceMappingURL=Overlay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.js","sources":["../../../src/components/overlay/Overlay.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n export let visible = false;\n</script>\n\n<div class=\"mc-overlay\" class:is-visible={visible} {...$$restProps}>\n <!-- @slot Use this slot to insert a centered content inside the overlay -->\n <slot />\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.overlay';\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"Overlay.js","sources":["../../../src/components/overlay/Overlay.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n export let visible = false;\n</script>\n\n<div class=\"mc-overlay\" class:is-visible={visible} {...$$restProps}>\n <!-- @slot Use this slot to insert a centered content inside the overlay -->\n <slot />\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.overlay';\n</style>\n"],"names":["ctx","insert","target","div","anchor","append","slot","visible","$$props"],"mappings":"mMAMuDA,EAAW,oHAAxBA,EAAO,YAAjDC,EAGKC,EAAAC,EAAAC,GADHC,EAAOF,EAAAG,kDAF8CN,EAAW,uBAAxBA,EAAO,gFAHpCO,QAAAA,GAAU,GAAKC"}
|
|
@@ -1,152 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
/* src/components/overlay/OverlayLoader.svelte generated by Svelte v3.58.0 */
|
|
4
|
-
|
|
5
|
-
function create_if_block(ctx) {
|
|
6
|
-
let span;
|
|
7
|
-
let t;
|
|
8
|
-
|
|
9
|
-
return {
|
|
10
|
-
c() {
|
|
11
|
-
span = element("span");
|
|
12
|
-
t = text(/*text*/ ctx[1]);
|
|
13
|
-
attr(span, "class", "mc-loader__text");
|
|
14
|
-
},
|
|
15
|
-
m(target, anchor) {
|
|
16
|
-
insert(target, span, anchor);
|
|
17
|
-
append(span, t);
|
|
18
|
-
},
|
|
19
|
-
p(ctx, dirty) {
|
|
20
|
-
if (dirty & /*text*/ 2) set_data(t, /*text*/ ctx[1]);
|
|
21
|
-
},
|
|
22
|
-
d(detaching) {
|
|
23
|
-
if (detaching) detach(span);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function create_fragment(ctx) {
|
|
29
|
-
let div1;
|
|
30
|
-
let div0;
|
|
31
|
-
let span;
|
|
32
|
-
let t;
|
|
33
|
-
let if_block = /*text*/ ctx[1] && create_if_block(ctx);
|
|
34
|
-
|
|
35
|
-
return {
|
|
36
|
-
c() {
|
|
37
|
-
div1 = element("div");
|
|
38
|
-
div0 = element("div");
|
|
39
|
-
span = element("span");
|
|
40
|
-
span.innerHTML = `<svg class="mc-loader__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle class="mc-loader__path" cx="50%" cy="50%" r="19"></circle></svg>`;
|
|
41
|
-
t = space();
|
|
42
|
-
if (if_block) if_block.c();
|
|
43
|
-
this.c = noop;
|
|
44
|
-
attr(span, "class", "mc-loader__spinner");
|
|
45
|
-
attr(div0, "class", "mc-loader mc-loader--l mc-loader--light");
|
|
46
|
-
attr(div1, "class", "mc-overlay-loader");
|
|
47
|
-
toggle_class(div1, "is-visible", /*visible*/ ctx[0]);
|
|
48
|
-
},
|
|
49
|
-
m(target, anchor) {
|
|
50
|
-
insert(target, div1, anchor);
|
|
51
|
-
append(div1, div0);
|
|
52
|
-
append(div0, span);
|
|
53
|
-
append(div0, t);
|
|
54
|
-
if (if_block) if_block.m(div0, null);
|
|
55
|
-
},
|
|
56
|
-
p(ctx, [dirty]) {
|
|
57
|
-
if (/*text*/ ctx[1]) {
|
|
58
|
-
if (if_block) {
|
|
59
|
-
if_block.p(ctx, dirty);
|
|
60
|
-
} else {
|
|
61
|
-
if_block = create_if_block(ctx);
|
|
62
|
-
if_block.c();
|
|
63
|
-
if_block.m(div0, null);
|
|
64
|
-
}
|
|
65
|
-
} else if (if_block) {
|
|
66
|
-
if_block.d(1);
|
|
67
|
-
if_block = null;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
if (dirty & /*visible*/ 1) {
|
|
71
|
-
toggle_class(div1, "is-visible", /*visible*/ ctx[0]);
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
i: noop,
|
|
75
|
-
o: noop,
|
|
76
|
-
d(detaching) {
|
|
77
|
-
if (detaching) detach(div1);
|
|
78
|
-
if (if_block) if_block.d();
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function instance($$self, $$props, $$invalidate) {
|
|
84
|
-
let { visible = false } = $$props;
|
|
85
|
-
let { text } = $$props;
|
|
86
|
-
|
|
87
|
-
$$self.$$set = $$props => {
|
|
88
|
-
if ('visible' in $$props) $$invalidate(0, visible = $$props.visible);
|
|
89
|
-
if ('text' in $$props) $$invalidate(1, text = $$props.text);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
return [visible, text];
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
class OverlayLoader extends SvelteElement {
|
|
96
|
-
constructor(options) {
|
|
97
|
-
super();
|
|
98
|
-
const style = document.createElement('style');
|
|
99
|
-
style.textContent = `.mc-loader{color:#188803;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mc-loader .mc-loader__spinner{height:2rem;width:2rem}.mc-loader .mc-loader__path{stroke-width:4}.mc-loader .mc-loader__path{stroke:currentColor}.mc-loader__spinner:not(:only-child){margin-bottom:1rem}.mc-loader__icon{-webkit-animation:rotate-loader 2s linear infinite;animation:rotate-loader 2s linear infinite;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center}.mc-loader__path{fill:none;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round;-webkit-animation:animate-dash-loader 2s ease-in-out infinite;animation:animate-dash-loader 2s ease-in-out infinite}.mc-loader__text{font-size:1rem;line-height:1.375;color:currentColor}.mc-loader--l .mc-loader__spinner{height:4rem;width:4rem}.mc-loader--l .mc-loader__path{stroke-width:8}.mc-loader--light{color:#ffffff}.mc-loader--light .mc-loader__path{stroke:currentColor}@-webkit-keyframes rotate-loader{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}@keyframes rotate-loader{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}@-webkit-keyframes animate-dash-loader{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}@keyframes animate-dash-loader{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}.mc-overlay-loader{background-color:rgba(25, 25, 25, 0.7);inset:0;opacity:0;position:fixed;pointer-events:none;-webkit-transition:opacity 0.4s ease, visibility 0ms 0.4s;-o-transition:opacity 0.4s ease, visibility 0ms 0.4s;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:1999999998;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mc-overlay-loader.is-visible{opacity:1;pointer-events:all;-webkit-transition:opacity 0.4s ease, visibility 0ms;-o-transition:opacity 0.4s ease, visibility 0ms;transition:opacity 0.4s ease, visibility 0ms;visibility:visible}`;
|
|
100
|
-
this.shadowRoot.appendChild(style);
|
|
101
|
-
|
|
102
|
-
init(
|
|
103
|
-
this,
|
|
104
|
-
{
|
|
105
|
-
target: this.shadowRoot,
|
|
106
|
-
props: attribute_to_object(this.attributes),
|
|
107
|
-
customElement: true
|
|
108
|
-
},
|
|
109
|
-
instance,
|
|
110
|
-
create_fragment,
|
|
111
|
-
safe_not_equal,
|
|
112
|
-
{ visible: 0, text: 1 },
|
|
113
|
-
null
|
|
114
|
-
);
|
|
115
|
-
|
|
116
|
-
if (options) {
|
|
117
|
-
if (options.target) {
|
|
118
|
-
insert(options.target, this, options.anchor);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (options.props) {
|
|
122
|
-
this.$set(options.props);
|
|
123
|
-
flush();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
static get observedAttributes() {
|
|
129
|
-
return ["visible", "text"];
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
get visible() {
|
|
133
|
-
return this.$$.ctx[0];
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
set visible(visible) {
|
|
137
|
-
this.$$set({ visible });
|
|
138
|
-
flush();
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
get text() {
|
|
142
|
-
return this.$$.ctx[1];
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
set text(text) {
|
|
146
|
-
this.$$set({ text });
|
|
147
|
-
flush();
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export { OverlayLoader as default };
|
|
1
|
+
import{S as e,i as t,a as i,b as s,f as a,s as r,e as o,d as n,n as l,g as c,z as d,j as m,o as f,t as b,k as h}from"../../index-c33b3772.js";function p(e){let t,i;return{c(){t=o("span"),i=b(e[1]),c(t,"class","mc-loader__text")},m(e,a){s(e,t,a),m(t,i)},p(e,t){2&t&&h(i,e[1])},d(e){e&&f(t)}}}function k(e){let t,i,a,r,b=e[1]&&p(e);return{c(){t=o("div"),i=o("div"),a=o("span"),a.innerHTML='<svg class="mc-loader__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><circle class="mc-loader__path" cx="50%" cy="50%" r="19"></circle></svg>',r=n(),b&&b.c(),this.c=l,c(a,"class","mc-loader__spinner"),c(i,"class","mc-loader mc-loader--l mc-loader--light"),c(t,"class","mc-overlay-loader"),d(t,"is-visible",e[0])},m(e,o){s(e,t,o),m(t,i),m(i,a),m(i,r),b&&b.m(i,null)},p(e,[s]){e[1]?b?b.p(e,s):(b=p(e),b.c(),b.m(i,null)):b&&(b.d(1),b=null),1&s&&d(t,"is-visible",e[0])},i:l,o:l,d(e){e&&f(t),b&&b.d()}}}function x(e,t,i){let{visible:s=!1}=t,{text:a}=t;return e.$$set=e=>{"visible"in e&&i(0,s=e.visible),"text"in e&&i(1,a=e.text)},[s,a]}class y extends e{constructor(e){super();const o=document.createElement("style");o.textContent=".mc-loader{color:#188803;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mc-loader .mc-loader__spinner{height:2rem;width:2rem}.mc-loader .mc-loader__path{stroke-width:4}.mc-loader .mc-loader__path{stroke:currentColor}.mc-loader__spinner:not(:only-child){margin-bottom:1rem}.mc-loader__icon{-webkit-animation:rotate-loader 2s linear infinite;animation:rotate-loader 2s linear infinite;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center}.mc-loader__path{fill:none;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round;-webkit-animation:animate-dash-loader 2s ease-in-out infinite;animation:animate-dash-loader 2s ease-in-out infinite}.mc-loader__text{font-size:1rem;line-height:1.375;color:currentColor}.mc-loader--l .mc-loader__spinner{height:4rem;width:4rem}.mc-loader--l .mc-loader__path{stroke-width:8}.mc-loader--light{color:#ffffff}.mc-loader--light .mc-loader__path{stroke:currentColor}@-webkit-keyframes rotate-loader{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}@keyframes rotate-loader{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}@-webkit-keyframes animate-dash-loader{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}@keyframes animate-dash-loader{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35px}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124px}}.mc-overlay-loader{background-color:rgba(25, 25, 25, 0.7);inset:0;opacity:0;position:fixed;pointer-events:none;-webkit-transition:opacity 0.4s ease, visibility 0ms 0.4s;-o-transition:opacity 0.4s ease, visibility 0ms 0.4s;transition:opacity 0.4s ease, visibility 0ms 0.4s;z-index:1999999998;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mc-overlay-loader.is-visible{opacity:1;pointer-events:all;-webkit-transition:opacity 0.4s ease, visibility 0ms;-o-transition:opacity 0.4s ease, visibility 0ms;transition:opacity 0.4s ease, visibility 0ms;visibility:visible}",this.shadowRoot.appendChild(o),t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},x,k,r,{visible:0,text:1},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),a()))}static get observedAttributes(){return["visible","text"]}get visible(){return this.$$.ctx[0]}set visible(e){this.$$set({visible:e}),a()}get text(){return this.$$.ctx[1]}set text(e){this.$$set({text:e}),a()}}export{y as default};
|
|
152
2
|
//# sourceMappingURL=OverlayLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlayLoader.js","sources":["../../../src/components/overlay/OverlayLoader.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n export let visible = false;\n export let text: string;\n</script>\n\n<div class=\"mc-overlay-loader\" class:is-visible={visible}>\n <div class=\"mc-loader mc-loader--l mc-loader--light\">\n <span class=\"mc-loader__spinner\">\n <svg\n class=\"mc-loader__icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 64 64\"\n >\n <circle class=\"mc-loader__path\" cx=\"50%\" cy=\"50%\" r=\"19\" />\n </svg>\n </span>\n\n {#if text}\n <span class=\"mc-loader__text\">\n {text}\n </span>\n {/if}\n </div>\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.loader';\n @import '@mozaic-ds/styles/components/c.overlay';\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"OverlayLoader.js","sources":["../../../src/components/overlay/OverlayLoader.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n export let visible = false;\n export let text: string;\n</script>\n\n<div class=\"mc-overlay-loader\" class:is-visible={visible}>\n <div class=\"mc-loader mc-loader--l mc-loader--light\">\n <span class=\"mc-loader__spinner\">\n <svg\n class=\"mc-loader__icon\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 64 64\"\n >\n <circle class=\"mc-loader__path\" cx=\"50%\" cy=\"50%\" r=\"19\" />\n </svg>\n </span>\n\n {#if text}\n <span class=\"mc-loader__text\">\n {text}\n </span>\n {/if}\n </div>\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/all-settings';\n @import '@mozaic-ds/styles/components/c.loader';\n @import '@mozaic-ds/styles/components/c.overlay';\n</style>\n"],"names":["ctx","insert","target","span","anchor","create_if_block","div1","append","div0","visible","$$props","text"],"mappings":"+LAqBSA,EAAI,2CADPC,EAEMC,EAAAC,EAAAC,2BADHJ,EAAI,gDAFJA,EAAI,IAAAK,EAAAL,8XAZoCA,EAAO,YAAxDC,EAkBKC,EAAAI,EAAAF,GAjBHG,EAgBKD,EAAAE,GAfHD,EAQMC,EAAAL,mCAEDH,EAAI,kFAZoCA,EAAO,uDAJ3C,IAAAS,QAAAA,GAAU,GAAKC,QACfC,GAAYD"}
|