@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,459 +1,2 @@
|
|
|
1
|
-
import { S as SvelteElement, i as init, a as attribute_to_object, b as insert, f as flush, s as safe_not_equal, c as assign, e as element, d as space, n as noop, g as attr, h as set_attributes, j as append, m as get_spread_update, o as detach, p as compute_rest_props, q as exclude_internal_props, K as empty, l as listen, Z as HtmlTag, t as text, k as set_data } from '../../index-c33b3772.js';
|
|
2
|
-
import { E as EventHandler } from '../../EventHandler-02058705.js';
|
|
3
|
-
|
|
4
|
-
/* src/components/notification/Notification.svelte generated by Svelte v3.58.0 */
|
|
5
|
-
|
|
6
|
-
function create_if_block_3(ctx) {
|
|
7
|
-
let html_tag;
|
|
8
|
-
let raw_value = `<${/*titletag*/ ctx[1]} class="mc-notification__title">${/*title*/ ctx[0]}</${/*titletag*/ ctx[1]}>` + "";
|
|
9
|
-
let html_anchor;
|
|
10
|
-
|
|
11
|
-
return {
|
|
12
|
-
c() {
|
|
13
|
-
html_tag = new HtmlTag(false);
|
|
14
|
-
html_anchor = empty();
|
|
15
|
-
html_tag.a = html_anchor;
|
|
16
|
-
},
|
|
17
|
-
m(target, anchor) {
|
|
18
|
-
html_tag.m(raw_value, target, anchor);
|
|
19
|
-
insert(target, html_anchor, anchor);
|
|
20
|
-
},
|
|
21
|
-
p(ctx, dirty) {
|
|
22
|
-
if (dirty & /*titletag, title*/ 3 && raw_value !== (raw_value = `<${/*titletag*/ ctx[1]} class="mc-notification__title">${/*title*/ ctx[0]}</${/*titletag*/ ctx[1]}>` + "")) html_tag.p(raw_value);
|
|
23
|
-
},
|
|
24
|
-
d(detaching) {
|
|
25
|
-
if (detaching) detach(html_anchor);
|
|
26
|
-
if (detaching) html_tag.d();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// (50:24)
|
|
32
|
-
function create_if_block_2(ctx) {
|
|
33
|
-
let div;
|
|
34
|
-
|
|
35
|
-
return {
|
|
36
|
-
c() {
|
|
37
|
-
div = element("div");
|
|
38
|
-
div.innerHTML = `<slot name="footer"></slot>`;
|
|
39
|
-
attr(div, "class", "mc-notification__footer");
|
|
40
|
-
},
|
|
41
|
-
m(target, anchor) {
|
|
42
|
-
insert(target, div, anchor);
|
|
43
|
-
},
|
|
44
|
-
p: noop,
|
|
45
|
-
d(detaching) {
|
|
46
|
-
if (detaching) detach(div);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// (46:4) {#if href && linkcontent}
|
|
52
|
-
function create_if_block_1(ctx) {
|
|
53
|
-
let div;
|
|
54
|
-
let a;
|
|
55
|
-
let t;
|
|
56
|
-
|
|
57
|
-
return {
|
|
58
|
-
c() {
|
|
59
|
-
div = element("div");
|
|
60
|
-
a = element("a");
|
|
61
|
-
t = text(/*linkcontent*/ ctx[4]);
|
|
62
|
-
attr(a, "class", "mc-notification__link mc-link");
|
|
63
|
-
attr(a, "href", /*href*/ ctx[3]);
|
|
64
|
-
attr(div, "class", "mc-notification__footer");
|
|
65
|
-
},
|
|
66
|
-
m(target, anchor) {
|
|
67
|
-
insert(target, div, anchor);
|
|
68
|
-
append(div, a);
|
|
69
|
-
append(a, t);
|
|
70
|
-
},
|
|
71
|
-
p(ctx, dirty) {
|
|
72
|
-
if (dirty & /*linkcontent*/ 16) set_data(t, /*linkcontent*/ ctx[4]);
|
|
73
|
-
|
|
74
|
-
if (dirty & /*href*/ 8) {
|
|
75
|
-
attr(a, "href", /*href*/ ctx[3]);
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
d(detaching) {
|
|
79
|
-
if (detaching) detach(div);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// (56:2) {#if closable}
|
|
85
|
-
function create_if_block(ctx) {
|
|
86
|
-
let button;
|
|
87
|
-
let mounted;
|
|
88
|
-
let dispose;
|
|
89
|
-
|
|
90
|
-
return {
|
|
91
|
-
c() {
|
|
92
|
-
button = element("button");
|
|
93
|
-
attr(button, "type", "button");
|
|
94
|
-
attr(button, "class", "mc-notification-closable__close");
|
|
95
|
-
attr(button, "title", "Close");
|
|
96
|
-
},
|
|
97
|
-
m(target, anchor) {
|
|
98
|
-
insert(target, button, anchor);
|
|
99
|
-
|
|
100
|
-
if (!mounted) {
|
|
101
|
-
dispose = listen(button, "click", /*emitClose*/ ctx[10]);
|
|
102
|
-
mounted = true;
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
p: noop,
|
|
106
|
-
d(detaching) {
|
|
107
|
-
if (detaching) detach(button);
|
|
108
|
-
mounted = false;
|
|
109
|
-
dispose();
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function create_fragment(ctx) {
|
|
115
|
-
let div2;
|
|
116
|
-
let div1;
|
|
117
|
-
let t0;
|
|
118
|
-
let div0;
|
|
119
|
-
let t1;
|
|
120
|
-
let t2;
|
|
121
|
-
let div2_class_value;
|
|
122
|
-
let div2_role_value;
|
|
123
|
-
let if_block0 = /*title*/ ctx[0] && create_if_block_3(ctx);
|
|
124
|
-
|
|
125
|
-
function select_block_type(ctx, dirty) {
|
|
126
|
-
if (/*href*/ ctx[3] && /*linkcontent*/ ctx[4]) return create_if_block_1;
|
|
127
|
-
if (/*hasfooter*/ ctx[8]) return create_if_block_2;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
let current_block_type = select_block_type(ctx);
|
|
131
|
-
let if_block1 = current_block_type && current_block_type(ctx);
|
|
132
|
-
let if_block2 = /*closable*/ ctx[6] && create_if_block(ctx);
|
|
133
|
-
|
|
134
|
-
let div2_levels = [
|
|
135
|
-
{
|
|
136
|
-
class: div2_class_value = "" + (setClasses(/*type*/ ctx[5], /*size*/ ctx[7], /*closable*/ ctx[6]) + " " + /*$$props*/ ctx[11].class)
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
role: div2_role_value = /*alert*/ ctx[2] ? 'alert' : 'status'
|
|
140
|
-
},
|
|
141
|
-
/*attributes*/ ctx[9]
|
|
142
|
-
];
|
|
143
|
-
|
|
144
|
-
let div_data_2 = {};
|
|
145
|
-
|
|
146
|
-
for (let i = 0; i < div2_levels.length; i += 1) {
|
|
147
|
-
div_data_2 = assign(div_data_2, div2_levels[i]);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return {
|
|
151
|
-
c() {
|
|
152
|
-
div2 = element("div");
|
|
153
|
-
div1 = element("div");
|
|
154
|
-
if (if_block0) if_block0.c();
|
|
155
|
-
t0 = space();
|
|
156
|
-
div0 = element("div");
|
|
157
|
-
div0.innerHTML = `<slot></slot>`;
|
|
158
|
-
t1 = space();
|
|
159
|
-
if (if_block1) if_block1.c();
|
|
160
|
-
t2 = space();
|
|
161
|
-
if (if_block2) if_block2.c();
|
|
162
|
-
this.c = noop;
|
|
163
|
-
attr(div0, "class", "mc-notification__message");
|
|
164
|
-
attr(div1, "class", "mc-notification__content");
|
|
165
|
-
set_attributes(div2, div_data_2);
|
|
166
|
-
},
|
|
167
|
-
m(target, anchor) {
|
|
168
|
-
insert(target, div2, anchor);
|
|
169
|
-
append(div2, div1);
|
|
170
|
-
if (if_block0) if_block0.m(div1, null);
|
|
171
|
-
append(div1, t0);
|
|
172
|
-
append(div1, div0);
|
|
173
|
-
append(div1, t1);
|
|
174
|
-
if (if_block1) if_block1.m(div1, null);
|
|
175
|
-
append(div2, t2);
|
|
176
|
-
if (if_block2) if_block2.m(div2, null);
|
|
177
|
-
},
|
|
178
|
-
p(ctx, [dirty]) {
|
|
179
|
-
if (/*title*/ ctx[0]) {
|
|
180
|
-
if (if_block0) {
|
|
181
|
-
if_block0.p(ctx, dirty);
|
|
182
|
-
} else {
|
|
183
|
-
if_block0 = create_if_block_3(ctx);
|
|
184
|
-
if_block0.c();
|
|
185
|
-
if_block0.m(div1, t0);
|
|
186
|
-
}
|
|
187
|
-
} else if (if_block0) {
|
|
188
|
-
if_block0.d(1);
|
|
189
|
-
if_block0 = null;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block1) {
|
|
193
|
-
if_block1.p(ctx, dirty);
|
|
194
|
-
} else {
|
|
195
|
-
if (if_block1) if_block1.d(1);
|
|
196
|
-
if_block1 = current_block_type && current_block_type(ctx);
|
|
197
|
-
|
|
198
|
-
if (if_block1) {
|
|
199
|
-
if_block1.c();
|
|
200
|
-
if_block1.m(div1, null);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
if (/*closable*/ ctx[6]) {
|
|
205
|
-
if (if_block2) {
|
|
206
|
-
if_block2.p(ctx, dirty);
|
|
207
|
-
} else {
|
|
208
|
-
if_block2 = create_if_block(ctx);
|
|
209
|
-
if_block2.c();
|
|
210
|
-
if_block2.m(div2, null);
|
|
211
|
-
}
|
|
212
|
-
} else if (if_block2) {
|
|
213
|
-
if_block2.d(1);
|
|
214
|
-
if_block2 = null;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
set_attributes(div2, div_data_2 = get_spread_update(div2_levels, [
|
|
218
|
-
dirty & /*type, size, closable, $$props*/ 2272 && div2_class_value !== (div2_class_value = "" + (setClasses(/*type*/ ctx[5], /*size*/ ctx[7], /*closable*/ ctx[6]) + " " + /*$$props*/ ctx[11].class)) && { class: div2_class_value },
|
|
219
|
-
dirty & /*alert*/ 4 && div2_role_value !== (div2_role_value = /*alert*/ ctx[2] ? 'alert' : 'status') && { role: div2_role_value },
|
|
220
|
-
dirty & /*attributes*/ 512 && /*attributes*/ ctx[9]
|
|
221
|
-
]));
|
|
222
|
-
},
|
|
223
|
-
i: noop,
|
|
224
|
-
o: noop,
|
|
225
|
-
d(detaching) {
|
|
226
|
-
if (detaching) detach(div2);
|
|
227
|
-
if (if_block0) if_block0.d();
|
|
228
|
-
|
|
229
|
-
if (if_block1) {
|
|
230
|
-
if_block1.d();
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
if (if_block2) if_block2.d();
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
function setClasses(type, size, closable) {
|
|
239
|
-
const classes = ['mc-notification'];
|
|
240
|
-
|
|
241
|
-
if (type) {
|
|
242
|
-
classes.push(`mc-notification--${type}`);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
if (size && size !== 'm') {
|
|
246
|
-
classes.push(`mc-notification--${size}`);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
if (closable) {
|
|
250
|
-
classes.push('mc-notification-closable');
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
return classes.join(' ');
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
function instance($$self, $$props, $$invalidate) {
|
|
257
|
-
let attributes;
|
|
258
|
-
|
|
259
|
-
const omit_props_names = [
|
|
260
|
-
"title","titletag","alert","href","linkcontent","type","closable","size","hasfooter"
|
|
261
|
-
];
|
|
262
|
-
|
|
263
|
-
let $$restProps = compute_rest_props($$props, omit_props_names);
|
|
264
|
-
let { title } = $$props;
|
|
265
|
-
let { titletag = 'h3' } = $$props;
|
|
266
|
-
let { alert = false } = $$props;
|
|
267
|
-
let { href } = $$props;
|
|
268
|
-
let { linkcontent } = $$props;
|
|
269
|
-
let { type } = $$props;
|
|
270
|
-
let { closable = false } = $$props;
|
|
271
|
-
let { size = 'm' } = $$props;
|
|
272
|
-
let { hasfooter = false } = $$props;
|
|
273
|
-
let eventHandler = new EventHandler();
|
|
274
|
-
|
|
275
|
-
function emitClose(e) {
|
|
276
|
-
eventHandler.dispatch('close', e);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
$$self.$$set = $$new_props => {
|
|
280
|
-
$$invalidate(11, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
|
|
281
|
-
$$invalidate(13, $$restProps = compute_rest_props($$props, omit_props_names));
|
|
282
|
-
if ('title' in $$new_props) $$invalidate(0, title = $$new_props.title);
|
|
283
|
-
if ('titletag' in $$new_props) $$invalidate(1, titletag = $$new_props.titletag);
|
|
284
|
-
if ('alert' in $$new_props) $$invalidate(2, alert = $$new_props.alert);
|
|
285
|
-
if ('href' in $$new_props) $$invalidate(3, href = $$new_props.href);
|
|
286
|
-
if ('linkcontent' in $$new_props) $$invalidate(4, linkcontent = $$new_props.linkcontent);
|
|
287
|
-
if ('type' in $$new_props) $$invalidate(5, type = $$new_props.type);
|
|
288
|
-
if ('closable' in $$new_props) $$invalidate(6, closable = $$new_props.closable);
|
|
289
|
-
if ('size' in $$new_props) $$invalidate(7, size = $$new_props.size);
|
|
290
|
-
if ('hasfooter' in $$new_props) $$invalidate(8, hasfooter = $$new_props.hasfooter);
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
$$self.$$.update = () => {
|
|
294
|
-
$$invalidate(9, attributes = Object.assign({}, $$restProps));
|
|
295
|
-
|
|
296
|
-
if ($$self.$$.dirty & /*attributes*/ 512) {
|
|
297
|
-
delete attributes.class;
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
$$props = exclude_internal_props($$props);
|
|
302
|
-
|
|
303
|
-
return [
|
|
304
|
-
title,
|
|
305
|
-
titletag,
|
|
306
|
-
alert,
|
|
307
|
-
href,
|
|
308
|
-
linkcontent,
|
|
309
|
-
type,
|
|
310
|
-
closable,
|
|
311
|
-
size,
|
|
312
|
-
hasfooter,
|
|
313
|
-
attributes,
|
|
314
|
-
emitClose,
|
|
315
|
-
$$props
|
|
316
|
-
];
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
class Notification extends SvelteElement {
|
|
320
|
-
constructor(options) {
|
|
321
|
-
super();
|
|
322
|
-
const style = document.createElement('style');
|
|
323
|
-
style.textContent = `.mc-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:inherit;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:inherit;text-decoration:underline;-webkit-transition:color ease 200ms;-o-transition:color ease 200ms;transition:color ease 200ms;gap:0.25rem;color:#000000;position:relative;font-size:1rem;line-height:1.375}.mc-link:focus{outline:none}.mc-link:focus::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-link.is-visited,.mc-link:visited{color:#333333}.mc-link.is-hover,.mc-link:hover{color:#666666}.mc-link.is-active,.mc-link:active{color:#333333}.mc-link.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--s{font-size:0.875rem;line-height:1.2857142857}.mc-link--m{font-size:1rem;line-height:1.375}.mc-link::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}.mc-link__icon{display:block;height:1rem;fill:currentColor;-ms-flex-negative:0;flex-shrink:0;width:1rem}.mc-link--light{color:#ffffff}.mc-link--light.is-visited,.mc-link--light:visited{color:#cccccc}.mc-link--light.is-hover,.mc-link--light:hover{color:#999999}.mc-link--light.is-active,.mc-link--light:active{color:#cccccc}.mc-link--light.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary{color:#188803}.mc-link--primary.is-visited,.mc-link--primary:visited{color:#006902}.mc-link--primary.is-hover,.mc-link--primary:hover{color:#035010}.mc-link--primary.is-active,.mc-link--primary:active{color:#006902}.mc-link--primary.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary-02{color:#494f60}.mc-link--primary-02.is-visited,.mc-link--primary-02:visited{color:#343b4c}.mc-link--primary-02.is-hover,.mc-link--primary-02:hover{color:#171b26}.mc-link--primary-02.is-active,.mc-link--primary-02:active{color:#343b4c}.mc-link--primary-02.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--danger{color:#c61112}.mc-link--danger.is-visited,.mc-link--danger:visited{color:#8c0003}.mc-link--danger.is-hover,.mc-link--danger:hover{color:#530000}.mc-link--danger.is-active,.mc-link--danger:active{color:#8c0003}.mc-link--danger.is-disabled{color:#e6e6e6;cursor:not-allowed}@media screen and (min-width: 680px){.mc-link--s\\@from-m{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-m{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-link--s\\@from-l{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-l{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-link--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xl{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-link--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xxl{font-size:1rem;line-height:1.375}}.mc-notification{font-family:"LeroyMerlin", sans-serif;font-weight:400;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;-webkit-box-shadow:inset 0 0 0 1px #0b96cc;box-shadow:inset 0 0 0 1px #0b96cc;-webkit-box-sizing:border-box;box-sizing:border-box;color:#000000}.mc-notification::before{background-size:2rem;-webkit-box-flex:0;-ms-flex:0 0 2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:0.25rem}.mc-notification::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iIzAwN2JiNCI+PHBhdGggZD0iTTE2LDI5QTEzLDEzLDAsMSwxLDI5LDE2LDEzLDEzLDAsMCwxLDE2LDI5Wk0xNiw1QTExLDExLDAsMSwwLDI3LDE2LDExLDExLDAsMCwwLDE2LDVaIi8+PHBhdGggZD0iTTE2LDIxLjdhMSwxLDAsMCwxLTEtMVYxNC44N2ExLDEsMCwxLDEsMiwwVjIwLjdBMSwxLDAsMCwxLDE2LDIxLjdaIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxMS4zIiByPSIxIi8+PC9zdmc+")}.mc-notification::before{background-color:transparent;background-repeat:no-repeat;content:"";display:block}.mc-notification__content{-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:"LeroyMerlin", sans-serif;font-weight:600;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:0.875rem;line-height:1.5714285714}.mc-notification__footer{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:1rem}.mc-notification__link{font-size:0.875rem;line-height:1.2857142857;margin-top:0.5rem}.mc-notification--information{background:#daeff7;-webkit-box-shadow:inset 0 0 0 1px #0b96cc;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iIzAwN2JiNCI+PHBhdGggZD0iTTE2LDI5QTEzLDEzLDAsMSwxLDI5LDE2LDEzLDEzLDAsMCwxLDE2LDI5Wk0xNiw1QTExLDExLDAsMSwwLDI3LDE2LDExLDExLDAsMCwwLDE2LDVaIi8+PHBhdGggZD0iTTE2LDIxLjdhMSwxLDAsMCwxLTEtMVYxNC44N2ExLDEsMCwxLDEsMiwwVjIwLjdBMSwxLDAsMCwxLDE2LDIxLjdaIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxMS4zIiByPSIxIi8+PC9zdmc+")}.mc-notification--success{background:#ebf5de;-webkit-box-shadow:inset 0 0 0 1px #46a610;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIGZpbGw9IiMxODg4MDMiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTE2LDVBMTEsMTEsMCwxLDEsNSwxNiwxMSwxMSwwLDAsMSwxNiw1bTAtMkExMywxMywwLDEsMCwyOSwxNiwxMywxMywwLDAsMCwxNiwzWiIvPjxwYXRoIGQ9Ik0xNC4yLDIxLjQ1LDguNSwxNi4xOGExLDEsMCwxLDEsMS4zNS0xLjQ3bDQuMjgsNCw4LTguMDlhMSwxLDAsMCwxLDEuNDIsMCwxLDEsMCwwLDEsMCwxLjQxWiIvPjwvc3ZnPg==")}.mc-notification--warning{background:#fdf1e8;-webkit-box-shadow:inset 0 0 0 1px #ea7315;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iI2M2NTIwMCI+PHBhdGggZD0iTTE2LDI5QTEzLDEzLDAsMSwxLDI5LDE2LDEzLDEzLDAsMCwxLDE2LDI5Wk0xNiw1QTExLDExLDAsMSwwLDI3LDE2LDExLDExLDAsMCwwLDE2LDVaIi8+PHBhdGggZD0iTTE2LDE4LjEzYTEsMSwwLDAsMS0xLTFWMTEuM2ExLDEsMCwwLDEsMiwwdjUuODNBMSwxLDAsMCwxLDE2LDE4LjEzWiIvPjxjaXJjbGUgY3g9IjE2IiBjeT0iMjAuNyIgcj0iMSIvPjwvc3ZnPg==")}.mc-notification--danger{background:#fdeaea;-webkit-box-shadow:inset 0 0 0 1px #ea302d;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iI2M2MTExMiI+PHBhdGggZD0iTTE2LDNBMTMsMTMsMCwxLDAsMjksMTYsMTMsMTMsMCwwLDAsMTYsM1ptMCwyNEExMSwxMSwwLDEsMSwyNywxNiwxMSwxMSwwLDAsMSwxNiwyN1oiLz48cGF0aCBkPSJNMjAuNzEsMTEuMjlhMSwxLDAsMCwwLTEuNDIsMEwxNiwxNC41OWwtMy4yOS0zLjNhMSwxLDAsMCwwLTEuNDIsMS40MkwxNC41OSwxNmwtMy4zLDMuMjlhMSwxLDAsMCwwLDAsMS40MiwxLDEsMCwwLDAsMS40MiwwTDE2LDE3LjQxbDMuMjksMy4zYTEsMSwwLDAsMCwxLjQyLDAsMSwxLDAsMCwwLDAtMS40MkwxNy40MSwxNmwzLjMtMy4yOUExLDEsMCwwLDAsMjAuNzEsMTEuMjlaIi8+PC9zdmc+")}.mc-notification--s{padding:0.75rem 0.75rem 1.5rem}.mc-notification--s::before{background-size:1.5rem;-webkit-box-flex:0;-ms-flex:0 0 1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:0.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiMwMDdiYjQiPjxwYXRoIGQ9Ik0xMiAyMmExMCAxMCAwIDExMTAtMTAgMTAgMTAgMCAwMS0xMCAxMHptMC0xOGE4IDggMCAxMDggOCA4IDggMCAwMC04LTh6Ii8+PHBhdGggZD0iTTEyIDE3YTEgMSAwIDAxLTEtMXYtNC4zOWExIDEgMCAwMTIgMFYxNmExIDEgMCAwMS0xIDF6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSI4IiByPSIxIi8+PC9zdmc+")}.mc-notification--s.mc-notification--success::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiMxODg4MDMiPjxwYXRoIGQ9Ik0xMiA0YTggOCAwIDExLTggOCA4IDggMCAwMTgtOG0wLTJhMTAgMTAgMCAxMDEwIDEwQTEwIDEwIDAgMDAxMiAyeiIvPjxwYXRoIGQ9Ik0xMC43MyAxNS43NWExIDEgMCAwMS0uNjgtLjI2bC0zLTIuNzRhMSAxIDAgMDExLjM2LTEuNDdsMi4yNSAyLjA4IDQuMzYtNC40MmExIDEgMCAxMTEuNDIgMS40MWwtNSA1LjFhMSAxIDAgMDEtLjcxLjN6Ii8+PC9zdmc+")}.mc-notification--s.mc-notification--warning::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNjNjUyMDAiPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PHBhdGggZD0iTTEyIDdhMSAxIDAgMDAtMSAxdjQuMzhhMSAxIDAgMDAyIDBWOGExIDEgMCAwMC0xLTF6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxNiIgcj0iMSIvPjwvc3ZnPg==")}.mc-notification--s.mc-notification--danger::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNjNjExMTIiPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PHBhdGggZD0iTTE2LjIxIDcuODhhMSAxIDAgMDAtMS40MiAwbC0yLjc0IDIuNzQtMi44NC0yLjgzYTEgMSAwIDEwLTEuNDIgMS40MkwxMC42MyAxMmwtMi43NyAyLjc5YTEgMSAwIDAwMS40MSAxLjQybDIuNzgtMi43NyAyLjY4IDIuNjhhMSAxIDAgMDAxLjQxLTEuNDJMMTMuNDYgMTJsMi43NS0yLjdhMSAxIDAgMDAwLTEuNDJ6Ii8+PC9zdmc+")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIGZpbGw9IiMwMDAwMDAiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTkuNDEgOGwzLjMtMy4yOWExIDEgMCAxMC0xLjQyLTEuNDJMOCA2LjU5bC0zLjI5LTMuM2ExIDEgMCAwMC0xLjQyIDEuNDJMNi41OSA4bC0zLjMgMy4yOWExIDEgMCAwMDAgMS40MiAxIDEgMCAwMDEuNDIgMEw4IDkuNDFsMy4yOSAzLjNhMSAxIDAgMDAxLjQyIDAgMSAxIDAgMDAwLTEuNDJ6Ii8+PC9zdmc+") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close::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}.mc-notification-closable__close:focus::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;-webkit-box-shadow:0 0 0 0.125rem #0b96cc;box-shadow:0 0 0 0.125rem #0b96cc}@media screen and (min-width: 1024px){.mc-notification__footer{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}`;
|
|
324
|
-
this.shadowRoot.appendChild(style);
|
|
325
|
-
|
|
326
|
-
init(
|
|
327
|
-
this,
|
|
328
|
-
{
|
|
329
|
-
target: this.shadowRoot,
|
|
330
|
-
props: attribute_to_object(this.attributes),
|
|
331
|
-
customElement: true
|
|
332
|
-
},
|
|
333
|
-
instance,
|
|
334
|
-
create_fragment,
|
|
335
|
-
safe_not_equal,
|
|
336
|
-
{
|
|
337
|
-
title: 0,
|
|
338
|
-
titletag: 1,
|
|
339
|
-
alert: 2,
|
|
340
|
-
href: 3,
|
|
341
|
-
linkcontent: 4,
|
|
342
|
-
type: 5,
|
|
343
|
-
closable: 6,
|
|
344
|
-
size: 7,
|
|
345
|
-
hasfooter: 8
|
|
346
|
-
},
|
|
347
|
-
null
|
|
348
|
-
);
|
|
349
|
-
|
|
350
|
-
if (options) {
|
|
351
|
-
if (options.target) {
|
|
352
|
-
insert(options.target, this, options.anchor);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
if (options.props) {
|
|
356
|
-
this.$set(options.props);
|
|
357
|
-
flush();
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
static get observedAttributes() {
|
|
363
|
-
return [
|
|
364
|
-
"title",
|
|
365
|
-
"titletag",
|
|
366
|
-
"alert",
|
|
367
|
-
"href",
|
|
368
|
-
"linkcontent",
|
|
369
|
-
"type",
|
|
370
|
-
"closable",
|
|
371
|
-
"size",
|
|
372
|
-
"hasfooter"
|
|
373
|
-
];
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
get title() {
|
|
377
|
-
return this.$$.ctx[0];
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
set title(title) {
|
|
381
|
-
this.$$set({ title });
|
|
382
|
-
flush();
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
get titletag() {
|
|
386
|
-
return this.$$.ctx[1];
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
set titletag(titletag) {
|
|
390
|
-
this.$$set({ titletag });
|
|
391
|
-
flush();
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
get alert() {
|
|
395
|
-
return this.$$.ctx[2];
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
set alert(alert) {
|
|
399
|
-
this.$$set({ alert });
|
|
400
|
-
flush();
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
get href() {
|
|
404
|
-
return this.$$.ctx[3];
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
set href(href) {
|
|
408
|
-
this.$$set({ href });
|
|
409
|
-
flush();
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
get linkcontent() {
|
|
413
|
-
return this.$$.ctx[4];
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
set linkcontent(linkcontent) {
|
|
417
|
-
this.$$set({ linkcontent });
|
|
418
|
-
flush();
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
get type() {
|
|
422
|
-
return this.$$.ctx[5];
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
set type(type) {
|
|
426
|
-
this.$$set({ type });
|
|
427
|
-
flush();
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
get closable() {
|
|
431
|
-
return this.$$.ctx[6];
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
set closable(closable) {
|
|
435
|
-
this.$$set({ closable });
|
|
436
|
-
flush();
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
get size() {
|
|
440
|
-
return this.$$.ctx[7];
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
set size(size) {
|
|
444
|
-
this.$$set({ size });
|
|
445
|
-
flush();
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
get hasfooter() {
|
|
449
|
-
return this.$$.ctx[8];
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
set hasfooter(hasfooter) {
|
|
453
|
-
this.$$set({ hasfooter });
|
|
454
|
-
flush();
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
export { Notification as default };
|
|
1
|
+
import{S as i,i as t,a as e,b as o,f as n,s,c as a,e as c,d as r,n as l,g as m,h as M,j as x,m as d,o as w,p as g,q as D,K as b,l as I,Z as f,t as h,k as L}from"../../index-c33b3772.js";import{E as A}from"../../EventHandler-02058705.js";function k(i){let t,e,n=`<${i[1]} class="mc-notification__title">${i[0]}</${i[1]}>`;return{c(){t=new f(!1),e=b(),t.a=e},m(i,s){t.m(n,i,s),o(i,e,s)},p(i,e){3&e&&n!==(n=`<${i[1]} class="mc-notification__title">${i[0]}</${i[1]}>`)&&t.p(n)},d(i){i&&w(e),i&&t.d()}}}function E(i){let t;return{c(){t=c("div"),t.innerHTML='<slot name="footer"></slot>',m(t,"class","mc-notification__footer")},m(i,e){o(i,t,e)},p:l,d(i){i&&w(t)}}}function u(i){let t,e,n;return{c(){t=c("div"),e=c("a"),n=h(i[4]),m(e,"class","mc-notification__link mc-link"),m(e,"href",i[3]),m(t,"class","mc-notification__footer")},m(i,s){o(i,t,s),x(t,e),x(e,n)},p(i,t){16&t&&L(n,i[4]),8&t&&m(e,"href",i[3])},d(i){i&&w(t)}}}function p(i){let t,e,n;return{c(){t=c("button"),m(t,"type","button"),m(t,"class","mc-notification-closable__close"),m(t,"title","Close")},m(s,a){o(s,t,a),e||(n=I(t,"click",i[10]),e=!0)},p:l,d(i){i&&w(t),e=!1,n()}}}function y(i){let t,e,n,s,g,D,b,I,f=i[0]&&k(i);function h(i,t){return i[3]&&i[4]?u:i[8]?E:void 0}let L=h(i),A=L&&L(i),y=i[6]&&p(i),j=[{class:b=C(i[5],i[7],i[6])+" "+i[11].class},{role:I=i[2]?"alert":"status"},i[9]],z={};for(let i=0;i<j.length;i+=1)z=a(z,j[i]);return{c(){t=c("div"),e=c("div"),f&&f.c(),n=r(),s=c("div"),s.innerHTML="<slot></slot>",g=r(),A&&A.c(),D=r(),y&&y.c(),this.c=l,m(s,"class","mc-notification__message"),m(e,"class","mc-notification__content"),M(t,z)},m(i,a){o(i,t,a),x(t,e),f&&f.m(e,null),x(e,n),x(e,s),x(e,g),A&&A.m(e,null),x(t,D),y&&y.m(t,null)},p(i,[o]){i[0]?f?f.p(i,o):(f=k(i),f.c(),f.m(e,n)):f&&(f.d(1),f=null),L===(L=h(i))&&A?A.p(i,o):(A&&A.d(1),A=L&&L(i),A&&(A.c(),A.m(e,null))),i[6]?y?y.p(i,o):(y=p(i),y.c(),y.m(t,null)):y&&(y.d(1),y=null),M(t,z=d(j,[2272&o&&b!==(b=C(i[5],i[7],i[6])+" "+i[11].class)&&{class:b},4&o&&I!==(I=i[2]?"alert":"status")&&{role:I},512&o&&i[9]]))},i:l,o:l,d(i){i&&w(t),f&&f.d(),A&&A.d(),y&&y.d()}}}function C(i,t,e){const o=["mc-notification"];return i&&o.push(`mc-notification--${i}`),t&&"m"!==t&&o.push(`mc-notification--${t}`),e&&o.push("mc-notification-closable"),o.join(" ")}function j(i,t,e){let o;const n=["title","titletag","alert","href","linkcontent","type","closable","size","hasfooter"];let s=g(t,n),{title:c}=t,{titletag:r="h3"}=t,{alert:l=!1}=t,{href:m}=t,{linkcontent:M}=t,{type:x}=t,{closable:d=!1}=t,{size:w="m"}=t,{hasfooter:b=!1}=t,I=new A;return i.$$set=i=>{e(11,t=a(a({},t),D(i))),e(13,s=g(t,n)),"title"in i&&e(0,c=i.title),"titletag"in i&&e(1,r=i.titletag),"alert"in i&&e(2,l=i.alert),"href"in i&&e(3,m=i.href),"linkcontent"in i&&e(4,M=i.linkcontent),"type"in i&&e(5,x=i.type),"closable"in i&&e(6,d=i.closable),"size"in i&&e(7,w=i.size),"hasfooter"in i&&e(8,b=i.hasfooter)},i.$$.update=()=>{e(9,o=Object.assign({},s)),512&i.$$.dirty&&delete o.class},t=D(t),[c,r,l,m,M,x,d,w,b,o,function(i){I.dispatch("close",i)},t]}class z extends i{constructor(i){super();const a=document.createElement("style");a.textContent='.mc-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:inherit;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:inherit;text-decoration:underline;-webkit-transition:color ease 200ms;-o-transition:color ease 200ms;transition:color ease 200ms;gap:0.25rem;color:#000000;position:relative;font-size:1rem;line-height:1.375}.mc-link:focus{outline:none}.mc-link:focus::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-link.is-visited,.mc-link:visited{color:#333333}.mc-link.is-hover,.mc-link:hover{color:#666666}.mc-link.is-active,.mc-link:active{color:#333333}.mc-link.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--s{font-size:0.875rem;line-height:1.2857142857}.mc-link--m{font-size:1rem;line-height:1.375}.mc-link::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}.mc-link__icon{display:block;height:1rem;fill:currentColor;-ms-flex-negative:0;flex-shrink:0;width:1rem}.mc-link--light{color:#ffffff}.mc-link--light.is-visited,.mc-link--light:visited{color:#cccccc}.mc-link--light.is-hover,.mc-link--light:hover{color:#999999}.mc-link--light.is-active,.mc-link--light:active{color:#cccccc}.mc-link--light.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary{color:#188803}.mc-link--primary.is-visited,.mc-link--primary:visited{color:#006902}.mc-link--primary.is-hover,.mc-link--primary:hover{color:#035010}.mc-link--primary.is-active,.mc-link--primary:active{color:#006902}.mc-link--primary.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--primary-02{color:#494f60}.mc-link--primary-02.is-visited,.mc-link--primary-02:visited{color:#343b4c}.mc-link--primary-02.is-hover,.mc-link--primary-02:hover{color:#171b26}.mc-link--primary-02.is-active,.mc-link--primary-02:active{color:#343b4c}.mc-link--primary-02.is-disabled{color:#e6e6e6;cursor:not-allowed}.mc-link--danger{color:#c61112}.mc-link--danger.is-visited,.mc-link--danger:visited{color:#8c0003}.mc-link--danger.is-hover,.mc-link--danger:hover{color:#530000}.mc-link--danger.is-active,.mc-link--danger:active{color:#8c0003}.mc-link--danger.is-disabled{color:#e6e6e6;cursor:not-allowed}@media screen and (min-width: 680px){.mc-link--s\\@from-m{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-m{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1024px){.mc-link--s\\@from-l{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-l{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1280px){.mc-link--s\\@from-xl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xl{font-size:1rem;line-height:1.375}}@media screen and (min-width: 1920px){.mc-link--s\\@from-xxl{font-size:0.875rem;line-height:1.2857142857}.mc-link--m\\@from-xxl{font-size:1rem;line-height:1.375}}.mc-notification{font-family:"LeroyMerlin", sans-serif;font-weight:400;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;padding:1rem 1.5rem 1.5rem 1rem;background:#daeff7;-webkit-box-shadow:inset 0 0 0 1px #0b96cc;box-shadow:inset 0 0 0 1px #0b96cc;-webkit-box-sizing:border-box;box-sizing:border-box;color:#000000}.mc-notification::before{background-size:2rem;-webkit-box-flex:0;-ms-flex:0 0 2rem;flex:0 0 2rem;height:2rem;margin-right:1rem;width:2rem}.mc-notification .mc-notification__content{padding-top:0.25rem}.mc-notification::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iIzAwN2JiNCI+PHBhdGggZD0iTTE2LDI5QTEzLDEzLDAsMSwxLDI5LDE2LDEzLDEzLDAsMCwxLDE2LDI5Wk0xNiw1QTExLDExLDAsMSwwLDI3LDE2LDExLDExLDAsMCwwLDE2LDVaIi8+PHBhdGggZD0iTTE2LDIxLjdhMSwxLDAsMCwxLTEtMVYxNC44N2ExLDEsMCwxLDEsMiwwVjIwLjdBMSwxLDAsMCwxLDE2LDIxLjdaIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxMS4zIiByPSIxIi8+PC9zdmc+")}.mc-notification::before{background-color:transparent;background-repeat:no-repeat;content:"";display:block}.mc-notification__content{-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0}.mc-notification__title,.mc-notification__message{margin-bottom:0;margin-top:0}.mc-notification__title{font-family:"LeroyMerlin", sans-serif;font-weight:600;font-size:1rem;line-height:1.5}.mc-notification__message{font-size:0.875rem;line-height:1.5714285714}.mc-notification__footer{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:1rem}.mc-notification__link{font-size:0.875rem;line-height:1.2857142857;margin-top:0.5rem}.mc-notification--information{background:#daeff7;-webkit-box-shadow:inset 0 0 0 1px #0b96cc;box-shadow:inset 0 0 0 1px #0b96cc}.mc-notification--information::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iIzAwN2JiNCI+PHBhdGggZD0iTTE2LDI5QTEzLDEzLDAsMSwxLDI5LDE2LDEzLDEzLDAsMCwxLDE2LDI5Wk0xNiw1QTExLDExLDAsMSwwLDI3LDE2LDExLDExLDAsMCwwLDE2LDVaIi8+PHBhdGggZD0iTTE2LDIxLjdhMSwxLDAsMCwxLTEtMVYxNC44N2ExLDEsMCwxLDEsMiwwVjIwLjdBMSwxLDAsMCwxLDE2LDIxLjdaIi8+PGNpcmNsZSBjeD0iMTYiIGN5PSIxMS4zIiByPSIxIi8+PC9zdmc+")}.mc-notification--success{background:#ebf5de;-webkit-box-shadow:inset 0 0 0 1px #46a610;box-shadow:inset 0 0 0 1px #46a610}.mc-notification--success::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIGZpbGw9IiMxODg4MDMiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTE2LDVBMTEsMTEsMCwxLDEsNSwxNiwxMSwxMSwwLDAsMSwxNiw1bTAtMkExMywxMywwLDEsMCwyOSwxNiwxMywxMywwLDAsMCwxNiwzWiIvPjxwYXRoIGQ9Ik0xNC4yLDIxLjQ1LDguNSwxNi4xOGExLDEsMCwxLDEsMS4zNS0xLjQ3bDQuMjgsNCw4LTguMDlhMSwxLDAsMCwxLDEuNDIsMCwxLDEsMCwwLDEsMCwxLjQxWiIvPjwvc3ZnPg==")}.mc-notification--warning{background:#fdf1e8;-webkit-box-shadow:inset 0 0 0 1px #ea7315;box-shadow:inset 0 0 0 1px #ea7315}.mc-notification--warning::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iI2M2NTIwMCI+PHBhdGggZD0iTTE2LDI5QTEzLDEzLDAsMSwxLDI5LDE2LDEzLDEzLDAsMCwxLDE2LDI5Wk0xNiw1QTExLDExLDAsMSwwLDI3LDE2LDExLDExLDAsMCwwLDE2LDVaIi8+PHBhdGggZD0iTTE2LDE4LjEzYTEsMSwwLDAsMS0xLTFWMTEuM2ExLDEsMCwwLDEsMiwwdjUuODNBMSwxLDAsMCwxLDE2LDE4LjEzWiIvPjxjaXJjbGUgY3g9IjE2IiBjeT0iMjAuNyIgcj0iMSIvPjwvc3ZnPg==")}.mc-notification--danger{background:#fdeaea;-webkit-box-shadow:inset 0 0 0 1px #ea302d;box-shadow:inset 0 0 0 1px #ea302d}.mc-notification--danger::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMnJlbSIgd2lkdGg9IjJyZW0iIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0iI2M2MTExMiI+PHBhdGggZD0iTTE2LDNBMTMsMTMsMCwxLDAsMjksMTYsMTMsMTMsMCwwLDAsMTYsM1ptMCwyNEExMSwxMSwwLDEsMSwyNywxNiwxMSwxMSwwLDAsMSwxNiwyN1oiLz48cGF0aCBkPSJNMjAuNzEsMTEuMjlhMSwxLDAsMCwwLTEuNDIsMEwxNiwxNC41OWwtMy4yOS0zLjNhMSwxLDAsMCwwLTEuNDIsMS40MkwxNC41OSwxNmwtMy4zLDMuMjlhMSwxLDAsMCwwLDAsMS40MiwxLDEsMCwwLDAsMS40MiwwTDE2LDE3LjQxbDMuMjksMy4zYTEsMSwwLDAsMCwxLjQyLDAsMSwxLDAsMCwwLDAtMS40MkwxNy40MSwxNmwzLjMtMy4yOUExLDEsMCwwLDAsMjAuNzEsMTEuMjlaIi8+PC9zdmc+")}.mc-notification--s{padding:0.75rem 0.75rem 1.5rem}.mc-notification--s::before{background-size:1.5rem;-webkit-box-flex:0;-ms-flex:0 0 1.5rem;flex:0 0 1.5rem;height:1.5rem;margin-right:0.5rem;width:1.5rem}.mc-notification--s .mc-notification__content{padding-top:0}.mc-notification--s::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiMwMDdiYjQiPjxwYXRoIGQ9Ik0xMiAyMmExMCAxMCAwIDExMTAtMTAgMTAgMTAgMCAwMS0xMCAxMHptMC0xOGE4IDggMCAxMDggOCA4IDggMCAwMC04LTh6Ii8+PHBhdGggZD0iTTEyIDE3YTEgMSAwIDAxLTEtMXYtNC4zOWExIDEgMCAwMTIgMFYxNmExIDEgMCAwMS0xIDF6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSI4IiByPSIxIi8+PC9zdmc+")}.mc-notification--s.mc-notification--success::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiMxODg4MDMiPjxwYXRoIGQ9Ik0xMiA0YTggOCAwIDExLTggOCA4IDggMCAwMTgtOG0wLTJhMTAgMTAgMCAxMDEwIDEwQTEwIDEwIDAgMDAxMiAyeiIvPjxwYXRoIGQ9Ik0xMC43MyAxNS43NWExIDEgMCAwMS0uNjgtLjI2bC0zLTIuNzRhMSAxIDAgMDExLjM2LTEuNDdsMi4yNSAyLjA4IDQuMzYtNC40MmExIDEgMCAxMTEuNDIgMS40MWwtNSA1LjFhMSAxIDAgMDEtLjcxLjN6Ii8+PC9zdmc+")}.mc-notification--s.mc-notification--warning::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNjNjUyMDAiPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PHBhdGggZD0iTTEyIDdhMSAxIDAgMDAtMSAxdjQuMzhhMSAxIDAgMDAyIDBWOGExIDEgMCAwMC0xLTF6Ii8+PGNpcmNsZSBjeD0iMTIiIGN5PSIxNiIgcj0iMSIvPjwvc3ZnPg==")}.mc-notification--s.mc-notification--danger::before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMS41cmVtIiB3aWR0aD0iMS41cmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNjNjExMTIiPjxwYXRoIGQ9Ik0xMiAyYTEwIDEwIDAgMTAxMCAxMEExMCAxMCAwIDAwMTIgMnptMCAxOGE4IDggMCAxMTgtOCA4IDggMCAwMS04IDh6Ii8+PHBhdGggZD0iTTE2LjIxIDcuODhhMSAxIDAgMDAtMS40MiAwbC0yLjc0IDIuNzQtMi44NC0yLjgzYTEgMSAwIDEwLTEuNDIgMS40MkwxMC42MyAxMmwtMi43NyAyLjc5YTEgMSAwIDAwMS40MSAxLjQybDIuNzgtMi43NyAyLjY4IDIuNjhhMSAxIDAgMDAxLjQxLTEuNDJMMTMuNDYgMTJsMi43NS0yLjdhMSAxIDAgMDAwLTEuNDJ6Ii8+PC9zdmc+")}.mc-notification-closable{position:relative}.mc-notification-closable__close{position:relative;background:transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMXJlbSIgd2lkdGg9IjFyZW0iIGZpbGw9IiMwMDAwMDAiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTkuNDEgOGwzLjMtMy4yOWExIDEgMCAxMC0xLjQyLTEuNDJMOCA2LjU5bC0zLjI5LTMuM2ExIDEgMCAwMC0xLjQyIDEuNDJMNi41OSA4bC0zLjMgMy4yOWExIDEgMCAwMDAgMS40MiAxIDEgMCAwMDEuNDIgMEw4IDkuNDFsMy4yOSAzLjNhMSAxIDAgMDAxLjQyIDAgMSAxIDAgMDAwLTEuNDJ6Ii8+PC9zdmc+") no-repeat;background-size:1rem;border:0;cursor:pointer;display:block;height:1rem;padding:0;position:absolute;outline:0;right:1rem;top:1rem;width:1rem}.mc-notification-closable__close::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}.mc-notification-closable__close:focus::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;-webkit-box-shadow:0 0 0 0.125rem #0b96cc;box-shadow:0 0 0 0.125rem #0b96cc}@media screen and (min-width: 1024px){.mc-notification__footer{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}',this.shadowRoot.appendChild(a),t(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},j,y,s,{title:0,titletag:1,alert:2,href:3,linkcontent:4,type:5,closable:6,size:7,hasfooter:8},null),i&&(i.target&&o(i.target,this,i.anchor),i.props&&(this.$set(i.props),n()))}static get observedAttributes(){return["title","titletag","alert","href","linkcontent","type","closable","size","hasfooter"]}get title(){return this.$$.ctx[0]}set title(i){this.$$set({title:i}),n()}get titletag(){return this.$$.ctx[1]}set titletag(i){this.$$set({titletag:i}),n()}get alert(){return this.$$.ctx[2]}set alert(i){this.$$set({alert:i}),n()}get href(){return this.$$.ctx[3]}set href(i){this.$$set({href:i}),n()}get linkcontent(){return this.$$.ctx[4]}set linkcontent(i){this.$$set({linkcontent:i}),n()}get type(){return this.$$.ctx[5]}set type(i){this.$$set({type:i}),n()}get closable(){return this.$$.ctx[6]}set closable(i){this.$$set({closable:i}),n()}get size(){return this.$$.ctx[7]}set size(i){this.$$set({size:i}),n()}get hasfooter(){return this.$$.ctx[8]}set hasfooter(i){this.$$set({hasfooter:i}),n()}}export{z as default};
|
|
459
2
|
//# sourceMappingURL=Notification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","sources":["../../../src/components/notification/Notification.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import type {\n NotificationTitleTag,\n NotificationType,\n NotificationSize,\n } from './notification.types';\n import { EventHandler } from '../../utilities/EventHandler';\n\n export let title: string;\n export let titletag: NotificationTitleTag = 'h3';\n export let alert = false;\n export let href: string;\n export let linkcontent: string;\n export let type: NotificationType;\n export let closable = false;\n export let size: NotificationSize = 'm';\n export let hasfooter = false;\n\n $: attributes = { ...$$restProps };\n $: delete attributes.class;\n\n let eventHandler = new EventHandler();\n\n function setClasses(\n type: NotificationType,\n size: NotificationSize,\n closable: boolean,\n ): string {\n const classes = ['mc-notification'];\n\n if (type) {\n classes.push(`mc-notification--${type}`);\n }\n\n if (size && size !== 'm') {\n classes.push(`mc-notification--${size}`);\n }\n\n if (closable) {\n classes.push('mc-notification-closable');\n }\n\n return classes.join(' ');\n }\n\n function emitClose(e: CustomEventInit): void {\n eventHandler.dispatch('close', e);\n }\n</script>\n\n<div\n class=\"{setClasses(type, size, closable)} {$$props.class}\"\n role={alert ? 'alert' : 'status'}\n {...attributes}\n>\n <div class=\"mc-notification__content\">\n {#if title}\n {@html `<${titletag} class=\"mc-notification__title\">${title}</${titletag}>`}\n {/if}\n <div class=\"mc-notification__message\">\n <slot />\n </div>\n {#if href && linkcontent}\n <div class=\"mc-notification__footer\">\n <a class=\"mc-notification__link mc-link\" {href}>{linkcontent}</a>\n </div>\n {:else if hasfooter}\n <div class=\"mc-notification__footer\">\n <slot name=\"footer\" />\n </div>\n {/if}\n </div>\n {#if closable}\n <button\n type=\"button\"\n class=\"mc-notification-closable__close\"\n title=\"Close\"\n on:click={emitClose}\n />\n {/if}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/components/_c.links';\n @import '@mozaic-ds/styles/components/_c.notification';\n</style>\n"],"names":[
|
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../../src/components/notification/Notification.svelte"],"sourcesContent":["<svelte:options tag={null} />\n\n<script lang=\"ts\">\n import type {\n NotificationTitleTag,\n NotificationType,\n NotificationSize,\n } from './notification.types';\n import { EventHandler } from '../../utilities/EventHandler';\n\n export let title: string;\n export let titletag: NotificationTitleTag = 'h3';\n export let alert = false;\n export let href: string;\n export let linkcontent: string;\n export let type: NotificationType;\n export let closable = false;\n export let size: NotificationSize = 'm';\n export let hasfooter = false;\n\n $: attributes = { ...$$restProps };\n $: delete attributes.class;\n\n let eventHandler = new EventHandler();\n\n function setClasses(\n type: NotificationType,\n size: NotificationSize,\n closable: boolean,\n ): string {\n const classes = ['mc-notification'];\n\n if (type) {\n classes.push(`mc-notification--${type}`);\n }\n\n if (size && size !== 'm') {\n classes.push(`mc-notification--${size}`);\n }\n\n if (closable) {\n classes.push('mc-notification-closable');\n }\n\n return classes.join(' ');\n }\n\n function emitClose(e: CustomEventInit): void {\n eventHandler.dispatch('close', e);\n }\n</script>\n\n<div\n class=\"{setClasses(type, size, closable)} {$$props.class}\"\n role={alert ? 'alert' : 'status'}\n {...attributes}\n>\n <div class=\"mc-notification__content\">\n {#if title}\n {@html `<${titletag} class=\"mc-notification__title\">${title}</${titletag}>`}\n {/if}\n <div class=\"mc-notification__message\">\n <slot />\n </div>\n {#if href && linkcontent}\n <div class=\"mc-notification__footer\">\n <a class=\"mc-notification__link mc-link\" {href}>{linkcontent}</a>\n </div>\n {:else if hasfooter}\n <div class=\"mc-notification__footer\">\n <slot name=\"footer\" />\n </div>\n {/if}\n </div>\n {#if closable}\n <button\n type=\"button\"\n class=\"mc-notification-closable__close\"\n title=\"Close\"\n on:click={emitClose}\n />\n {/if}\n</div>\n\n<style lang=\"scss\">\n @import '@mozaic-ds/styles/settings-tools/_all-settings';\n @import '@mozaic-ds/styles/components/_c.links';\n @import '@mozaic-ds/styles/components/_c.notification';\n</style>\n"],"names":["ctx","html_tag","p","raw_value","insert","target","div","anchor","append","a","button","create_if_block_3","create_if_block_1","create_if_block_2","create_if_block","setClasses","class","div2","div1","div0","div2_class_value","role","div2_role_value","type","size","closable","classes","push","join","title","$$props","titletag","alert","href","linkcontent","hasfooter","eventHandler","EventHandler","attributes","Object","assign","$$restProps","e","dispatch"],"mappings":"yQA2DiBA,EAAQ,qCAAmCA,EAAK,OAAKA,EAAQ,6FAA7DA,EAAQ,qCAAmCA,EAAK,OAAKA,EAAQ,QAAAC,EAAAC,EAAAC,+JAUxEC,EAEKC,EAAAC,EAAAC,kFAL8CP,EAAW,iHAD9DI,EAEKC,EAAAC,EAAAC,GADHC,EAAgEF,EAAAG,4BAAfT,EAAW,4LAShEI,EAKCC,EAAAK,EAAAH,qBADWP,EAAS,4EArBhBA,EAAK,IAAAW,EAAAX,mBAML,OAAAA,MAAQA,EAAW,GAAAY,EAIdZ,EAAS,GAAAa,gCAMhBb,EAAQ,IAAAc,EAAAd,eArBLe,EAAWf,EAAM,GAAAA,KAAMA,EAAQ,IAAA,IAAIA,EAAO,IAACgB,eAC7ChB,EAAK,GAAG,QAAU,UACpBA,EAAU,8QAHhBI,EA8BKC,EAAAY,EAAAV,GAzBHC,EAgBKS,EAAAC,yBAZHV,EAEKU,EAAAC,yDALAnB,EAAK,+HAgBPA,EAAQ,sFArBLe,EAAWf,EAAM,GAAAA,KAAMA,EAAQ,IAAA,IAAIA,EAAO,IAACgB,QAAK,CAAAA,MAAAI,eAClDpB,EAAK,GAAG,QAAU,WAAQ,CAAAqB,KAAAC,UAC5BtB,EAAU,yDA9BL,SAAAe,EACPQ,EACAC,EACAC,GAEM,MAAAC,GAAW,0BAEbH,GACFG,EAAQC,KAAI,oBAAqBJ,KAG/BC,GAAiB,MAATA,GACVE,EAAQC,KAAI,oBAAqBH,KAG/BC,GACFC,EAAQC,KAAK,4BAGRD,EAAQE,KAAK,gJAlCXC,GAAaC,GACbC,SAAAA,EAAiC,MAAID,GACrCE,MAAAA,GAAQ,GAAKF,QACbG,GAAYH,eACZI,GAAmBJ,QACnBP,GAAsBO,GACtBL,SAAAA,GAAW,GAAKK,GAChBN,KAAAA,EAAyB,KAAGM,GAC5BK,UAAAA,GAAY,GAAKL,EAKxBM,MAAmBC,wWAHpBC,EAALC,OAAAC,UAAuBC,2BACXH,EAAWtB,mCA0BZ,SAAU0B,GACjBN,EAAaO,SAAS,QAASD"}
|