@loadsmart/miranda-wc 1.51.0 → 1.51.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/dist/{arrow-left-464c5fba.js → arrow-left-717fe59f.js} +2 -2
- package/dist/arrow-left-717fe59f.js.map +1 -0
- package/dist/{attention-70c3fe45.js → attention-764ccdf8.js} +2 -2
- package/dist/attention-764ccdf8.js.map +1 -0
- package/dist/{bell-d360fa50.js → bell-3f86521d.js} +2 -2
- package/dist/bell-3f86521d.js.map +1 -0
- package/dist/{check-87ccecab.js → check-7019b6ba.js} +2 -2
- package/dist/check-7019b6ba.js.map +1 -0
- package/dist/{close-e6bef111.js → close-9f718d55.js} +2 -2
- package/dist/close-9f718d55.js.map +1 -0
- package/dist/components/button/button.d.ts +11 -23
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/{indeterminate-0030d65a.js → indeterminate-4eb38347.js} +2 -2
- package/dist/{indeterminate-0030d65a.js.map → indeterminate-4eb38347.js.map} +1 -1
- package/dist/{index-6539fe04.js → index-9d4643c9.js} +13 -14
- package/dist/index-9d4643c9.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{info-circle-4d37e4de.js → info-circle-1f290016.js} +2 -2
- package/dist/{info-circle-4d37e4de.js.map → info-circle-1f290016.js.map} +1 -1
- package/package.json +1 -1
- package/dist/arrow-left-464c5fba.js.map +0 -1
- package/dist/attention-70c3fe45.js.map +0 -1
- package/dist/bell-d360fa50.js.map +0 -1
- package/dist/check-87ccecab.js.map +0 -1
- package/dist/close-e6bef111.js.map +0 -1
- package/dist/index-6539fe04.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=arrow-left-
|
|
1
|
+
import{b}from"./index-9d4643c9.js";var arrowLeft=b`<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M27.1587 9.17872C26.046 8.06456 25.0052 7.02278 23.9833 6C17.9911 12.0005 11.9849 18.0146 6 24.0079C11.9773 29.9935 17.9834 36.0076 23.9675 42C24.9772 40.9885 26.0216 39.9427 27.0833 38.8796C22.9235 34.717 18.7311 30.5219 14.4922 26.2801C23.7032 26.2801 32.8419 26.2801 42 26.2801C42 24.7661 42 23.2737 42 21.7615C32.8581 21.7615 23.7172 21.7615 14.583 21.7615C18.7794 17.5627 22.9695 13.3703 27.1587 9.17872Z" fill="currentColor"/></svg>`;export{arrowLeft as default};
|
|
2
|
+
//# sourceMappingURL=arrow-left-717fe59f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow-left-717fe59f.js","sources":["../src/components/icon/icons/arrow-left.ts"],"sourcesContent":[null],"names":["arrowLeft","svg"],"mappings":"mCAEA,IAAAA,UAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=attention-
|
|
1
|
+
import{b}from"./index-9d4643c9.js";var attention=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M6.732 42.889h34.537c2.06 0 3.376-2.192 2.406-4.005l-17.27-32.33c-1.026-1.924-3.785-1.924-4.813 0L4.324 38.883c-.968 1.813.349 4.005 2.408 4.005zm14.542-24.504h5.452v10.89h-5.452zM24 31.998a2.726 2.726 0 0 1 2.726 2.723A2.726 2.726 0 0 1 24 37.444a2.726 2.726 0 0 1-2.726-2.723A2.726 2.726 0 0 1 24 31.998z"/></svg>`;export{attention as default};
|
|
2
|
+
//# sourceMappingURL=attention-764ccdf8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attention-764ccdf8.js","sources":["../src/components/icon/icons/attention.ts"],"sourcesContent":[null],"names":["attention","svg"],"mappings":"mCAEA,IAAAA,UAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=bell-
|
|
1
|
+
import{b}from"./index-9d4643c9.js";var bell=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M34.417 21.526v9.133l3.632 3.654v1.826H9v-1.827l3.631-3.653v-9.133c0-5.626 2.96-10.302 8.17-11.544V8.74A2.728 2.728 0 0123.524 6a2.728 2.728 0 012.724 2.74v1.242c5.192 1.242 8.17 5.937 8.17 11.544zm-7.262 16.44c0 2.01-1.634 3.653-3.63 3.653-2.016 0-3.632-1.644-3.632-3.653h7.262z"/></svg>`;export{bell as default};
|
|
2
|
+
//# sourceMappingURL=bell-3f86521d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bell-3f86521d.js","sources":["../src/components/icon/icons/bell.ts"],"sourcesContent":[null],"names":["bell","svg"],"mappings":"mCAEA,IAAAA,KAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=check-
|
|
1
|
+
import{b}from"./index-9d4643c9.js";var check=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M44.4205 13.3433L40.1778 9.10067L18.9646 30.3139L9.06512 20.4144L4.82248 24.657L14.722 34.5565L18.9646 38.7992L23.2073 34.5565L44.4205 13.3433Z"/></svg>`;export{check as default};
|
|
2
|
+
//# sourceMappingURL=check-7019b6ba.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-7019b6ba.js","sources":["../src/components/icon/icons/check.ts"],"sourcesContent":[null],"names":["check","svg"],"mappings":"mCAEA,IAAAA,MAAeC,CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=close-
|
|
1
|
+
import{b}from"./index-9d4643c9.js";var close=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M40.9706 11.2721L36.7279 7.02944L24 19.7574L11.2721 7.02944L7.02944 11.2721L19.7574 24L7.02944 36.7279L11.2721 40.9706L24 28.2426L36.7279 40.9706L40.9706 36.7279L28.2426 24L40.9706 11.2721Z"/></svg>`;export{close as default};
|
|
2
|
+
//# sourceMappingURL=close-9f718d55.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-9f718d55.js","sources":["../src/components/icon/icons/close.ts"],"sourcesContent":[null],"names":["close","svg"],"mappings":"mCAEA,IAAAA,MAAeC,CAAG"}
|
|
@@ -13,18 +13,16 @@ export interface ButtonProps {
|
|
|
13
13
|
variant?: ButtonVariant;
|
|
14
14
|
href?: string;
|
|
15
15
|
download?: string;
|
|
16
|
-
tabindex?: string;
|
|
17
16
|
target?: ButtonTarget;
|
|
18
17
|
}
|
|
19
|
-
export declare class Button extends FormControl {
|
|
18
|
+
export declare class Button extends FormControl implements ButtonProps {
|
|
20
19
|
#private;
|
|
21
20
|
static styles: import("lit").CSSResult[][];
|
|
21
|
+
/**
|
|
22
|
+
* Which HTML tag should be used to render this element.
|
|
23
|
+
*/
|
|
22
24
|
private get tag();
|
|
23
25
|
static get properties(): {
|
|
24
|
-
role: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
reflect: boolean;
|
|
27
|
-
};
|
|
28
26
|
loading: {
|
|
29
27
|
type: BooleanConstructor;
|
|
30
28
|
reflect: boolean;
|
|
@@ -41,9 +39,6 @@ export declare class Button extends FormControl {
|
|
|
41
39
|
type: StringConstructor;
|
|
42
40
|
reflect: boolean;
|
|
43
41
|
};
|
|
44
|
-
tabindex: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
};
|
|
47
42
|
type: {
|
|
48
43
|
type: StringConstructor;
|
|
49
44
|
};
|
|
@@ -64,11 +59,11 @@ export declare class Button extends FormControl {
|
|
|
64
59
|
/**
|
|
65
60
|
* The button is waiting for some operation to be finished.
|
|
66
61
|
*/
|
|
67
|
-
loading
|
|
62
|
+
loading?: ButtonProps['loading'];
|
|
68
63
|
/**
|
|
69
64
|
* Should the button be disabled.
|
|
70
65
|
*/
|
|
71
|
-
disabled
|
|
66
|
+
disabled?: ButtonProps['disabled'];
|
|
72
67
|
/**
|
|
73
68
|
* Button variant.
|
|
74
69
|
*/
|
|
@@ -76,13 +71,7 @@ export declare class Button extends FormControl {
|
|
|
76
71
|
/**
|
|
77
72
|
* Button size.
|
|
78
73
|
*/
|
|
79
|
-
size
|
|
80
|
-
/**
|
|
81
|
-
* Allow making HTML elements focusable, allow or prevent them from being sequentially
|
|
82
|
-
* focusable (usually with the Tab key, hence the name) and determine their relative ordering
|
|
83
|
-
* for sequential focus navigation
|
|
84
|
-
*/
|
|
85
|
-
tabindex: ButtonProps['tabindex'];
|
|
74
|
+
size?: ButtonProps['size'];
|
|
86
75
|
/**
|
|
87
76
|
* Specifies the type of button.
|
|
88
77
|
*/
|
|
@@ -90,20 +79,19 @@ export declare class Button extends FormControl {
|
|
|
90
79
|
/**
|
|
91
80
|
* When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`.
|
|
92
81
|
*/
|
|
93
|
-
href
|
|
82
|
+
href?: ButtonProps['href'];
|
|
94
83
|
/**
|
|
95
84
|
* Tell the browser where to open the link. Only used when `href` is set.
|
|
96
85
|
* */
|
|
97
|
-
target
|
|
86
|
+
target?: ButtonProps['target'];
|
|
98
87
|
/**
|
|
99
88
|
* Causes the browser to treat the linked URL as a download. Only used when `href` is set.
|
|
100
89
|
*/
|
|
101
|
-
download
|
|
90
|
+
download?: ButtonProps['download'];
|
|
102
91
|
constructor();
|
|
103
92
|
connectedCallback(): void;
|
|
104
93
|
disconnectedCallback(): void;
|
|
105
|
-
protected
|
|
106
|
-
protected updated(changedProperties: PropertyValues<this>): void;
|
|
94
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
107
95
|
render(): import("lit-html").TemplateResult<1 | 2>;
|
|
108
96
|
focus(options?: FocusOptions | undefined): void;
|
|
109
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,MAAM,MAAM,aAAa,GACtB,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,QAAQ,GACR,MAAM,GACN,gBAAgB,CAAC;AAEpB,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEvD,KAAK,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI1C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,MAAM,MAAM,aAAa,GACtB,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,QAAQ,GACR,MAAM,GACN,gBAAgB,CAAC;AAEpB,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEvD,KAAK,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;CACtB;AAED,qBAAa,MAAO,SAAQ,WAAY,YAAW,WAAW;;IAC7D,OAAgB,MAAM,8BAAc;IAEpC;;OAEG;IACH,OAAO,KAAK,GAAG,GAId;IAED,WAAoB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAa7B;IAED;;OAEG;IACK,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAEzC;;OAEG;IACK,QAAQ,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAE3C;;OAEG;IACK,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IAEzC;;OAEG;IACK,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAEnC;;OAEG;IACK,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAEnC;;OAEG;IACK,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAEnC;;SAEK;IACG,MAAM,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAEvC;;OAEG;IACK,QAAQ,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;;IAclC,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;cAMlB,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAUnE,MAAM;IA6CN,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,IAAI;CA4CxD;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,MAAM,CAAC;KACnB;CACD"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b}from"./index-
|
|
2
|
-
//# sourceMappingURL=indeterminate-
|
|
1
|
+
import{b}from"./index-9d4643c9.js";var indeterminate=b`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M19 13H5v-2h14v2z" /></svg>`;export{indeterminate as default};
|
|
2
|
+
//# sourceMappingURL=indeterminate-4eb38347.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indeterminate-
|
|
1
|
+
{"version":3,"file":"indeterminate-4eb38347.js","sources":["../src/components/icon/icons/indeterminate.ts"],"sourcesContent":[null],"names":["indeterminate","svg"],"mappings":"mCAEA,IAAAA,cAAeC,CAAG"}
|
|
@@ -59,7 +59,7 @@ var t$5;u$1[d$2]=!0,u$1.elementProperties=new Map,u$1.elementStyles=[],u$1.shado
|
|
|
59
59
|
color: var(--m-icon-color);
|
|
60
60
|
fill: var(--m-icon-color);
|
|
61
61
|
}
|
|
62
|
-
`]}function redispatchEvent(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);return i||e.preventDefault(),i}class Component extends s$5{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{redispatchEvent(this,t)}}}const icons=new Map([["alert-circle",()=>import("./attention-
|
|
62
|
+
`]}function redispatchEvent(t,e){!e.bubbles||t.shadowRoot&&!e.composed||e.stopPropagation();const o=Reflect.construct(e.constructor,[e.type,e]),i=t.dispatchEvent(o);return i||e.preventDefault(),i}class Component extends s$5{constructor(){super(...arguments),this.emit=(t,e)=>{const o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:!0,...e});this.dispatchEvent(o)},this.reemit=t=>{redispatchEvent(this,t)}}}const icons=new Map([["alert-circle",()=>import("./attention-764ccdf8.js")],["arrow-left",()=>import("./arrow-left-717fe59f.js")],["attention",()=>import("./attention-764ccdf8.js")],["bell",()=>import("./bell-3f86521d.js")],["check",()=>import("./check-7019b6ba.js")],["close",()=>import("./close-9f718d55.js")],["indeterminate",()=>import("./indeterminate-4eb38347.js")],["info-circle",()=>import("./info-circle-1f290016.js")]]);var _Icon_loadIcon;icons.keys();class Icon extends Component{static get properties(){return{name:{type:String},size:{type:String},color:{type:String},loading:{state:!0}}}constructor(){super(),this.icon=null,_Icon_loadIcon.set(this,(async()=>{icons.has(this.name);try{this.icon=null;const{default:t}=await icons.get(this.name)();this.icon=t}catch{}finally{this.requestUpdate()}})),this.icon=null}connectedCallback(){super.connectedCallback(),__classPrivateFieldGet(this,_Icon_loadIcon,"f").call(this)}update(t){super.update(t),t.has("name")&&__classPrivateFieldGet(this,_Icon_loadIcon,"f").call(this)}updated(t){super.updated(t),t.has("size")&&null!=this.size&&this.style.setProperty("--m-icon-size",`${parseInt(String(this.size),10)||16}px`),t.has("color")&&null!=this.color&&this.style.setProperty("--m-icon-color",toCSSValue(this.color))}render(){return null!=this.name&&icons.has(this.name)&&null!=this.icon?this.icon:A}}_Icon_loadIcon=new WeakMap,Icon.styles=[styles$v()],window.customElements.define("m-icon",Icon);
|
|
63
63
|
/**
|
|
64
64
|
* @license
|
|
65
65
|
* Copyright 2020 Google LLC
|
|
@@ -80,7 +80,7 @@ const e$4=Symbol.for(""),l$2=t=>{if((null==t?void 0:t.r)===e$4)return null==t?vo
|
|
|
80
80
|
* @license
|
|
81
81
|
* Copyright 2018 Google LLC
|
|
82
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
|
-
*/const o$1=e$3(class extends i$1{constructor(t){var e;if(super(t),t.type!==t$3.ATTRIBUTE||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var o,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(o=this.nt)||void 0===o?void 0:o.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const o=!!e[t];o===this.it.has(t)||(null===(i=this.nt)||void 0===i?void 0:i.has(t))||(o?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return T}});var _FormControl_form,_FormControl_updateAssignedForm,_Button_instances,
|
|
83
|
+
*/const o$1=e$3(class extends i$1{constructor(t){var e;if(super(t),t.type!==t$3.ATTRIBUTE||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var o,i;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(o=this.nt)||void 0===o?void 0:o.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const o=!!e[t];o===this.it.has(t)||(null===(i=this.nt)||void 0===i?void 0:i.has(t))||(o?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return T}});var _FormControl_form,_FormControl_updateAssignedForm,_Button_instances,_Button_element_get,_Button_isDisabled,_Button_setTabIndex,_Button_handleClick,_Button_isLink;class FormControl extends s$5{constructor(){super(...arguments),_FormControl_form.set(this,void 0),this.getForm=()=>__classPrivateFieldGet(this,_FormControl_form,"f"),_FormControl_updateAssignedForm.set(this,(()=>{if(this.hasAttribute("form")){const t=this.getRootNode(),e=this.getAttribute("form");__classPrivateFieldSet(this,_FormControl_form,t.getElementById(e),"f")}else __classPrivateFieldSet(this,_FormControl_form,this.closest("form"),"f")}))}static get properties(){return{form:{type:String,reflect:!0}}}updated(t){super.updated(t),(t.has("form")||null==__classPrivateFieldGet(this,_FormControl_form,"f"))&&__classPrivateFieldGet(this,_FormControl_updateAssignedForm,"f").call(this)}}function styles$u(){return i$4`
|
|
84
84
|
:host {
|
|
85
85
|
--m-button-background-color: transparent;
|
|
86
86
|
--m-button-base-size: ${getToken("global-height-default")};
|
|
@@ -429,18 +429,17 @@ const e$4=Symbol.for(""),l$2=t=>{if((null==t?void 0:t.r)===e$4)return null==t?vo
|
|
|
429
429
|
|
|
430
430
|
pointer-events: none;
|
|
431
431
|
}
|
|
432
|
-
`]}_FormControl_form=new WeakMap,_FormControl_updateAssignedForm=new WeakMap;class Button extends FormControl{get tag(){return i$2`${o$2(
|
|
432
|
+
`]}_FormControl_form=new WeakMap,_FormControl_updateAssignedForm=new WeakMap;class Button extends FormControl{get tag(){const t=__classPrivateFieldGet(this,_Button_instances,"m",_Button_isLink).call(this)?"a":"button";return i$2`${o$2(t)}`}static get properties(){return{...FormControl.properties,loading:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},variant:{type:String,reflect:!0},size:{type:String,reflect:!0},type:{type:String},href:{type:String},target:{type:String},download:{type:String}}}constructor(){super(),_Button_instances.add(this),_Button_isDisabled.set(this,(()=>Boolean(this.disabled)||Boolean(this.loading))),_Button_setTabIndex.set(this,(()=>{this.disabled?this.setAttribute("tabindex","-1"):this.removeAttribute("tabindex")})),_Button_handleClick.set(this,(t=>{var e,o;if(this.disabled||this.loading)return t.preventDefault(),void t.stopPropagation();"submit"!==this.type?"reset"===this.type&&(null===(o=this.getForm())||void 0===o||o.reset()):null===(e=this.getForm())||void 0===e||e.requestSubmit()})),this.disabled=!1,this.loading=!1,this.size="default",this.type="button",this.variant="secondary",this.target="_self"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",__classPrivateFieldGet(this,_Button_handleClick,"f"))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",__classPrivateFieldGet(this,_Button_handleClick,"f"))}willUpdate(t){super.willUpdate(t),t.has("href")&&(this.role=__classPrivateFieldGet(this,_Button_instances,"m",_Button_isLink).call(this)?"link":"button"),__classPrivateFieldGet(this,_Button_setTabIndex,"f").call(this)}render(){const t=__classPrivateFieldGet(this,_Button_instances,"m",_Button_isLink).call(this);return n$3`
|
|
433
433
|
<${this.tag}
|
|
434
434
|
class=${o$1({button:!0,"-primary":"primary"===this.variant,"-secondary":"secondary"===this.variant,"-tertiary":"tertiary"===this.variant,"-warning":"warning"===this.variant,"-danger":"danger"===this.variant,"-icon":"icon"===this.variant,"-icon-secondary":"icon-secondary"===this.variant,"-small":"small"===this.size,"-default":"default"===this.size,"-large":"large"===this.size,"is-loading":Boolean(this.loading),"is-disabled":__classPrivateFieldGet(this,_Button_isDisabled,"f").call(this)})}
|
|
435
|
-
type=${
|
|
436
|
-
?disabled="${__classPrivateFieldGet(this,_Button_isDisabled,"f").call(this)}"
|
|
437
|
-
aria-disabled=${this.disabled?"true":"false"}
|
|
438
|
-
role=${l$1(
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
rel=${l$1(t&&this.target?"noreferrer noopener":void 0)}
|
|
435
|
+
type=${t?A:this.type}
|
|
436
|
+
?disabled="${t?A:__classPrivateFieldGet(this,_Button_isDisabled,"f").call(this)}"
|
|
437
|
+
aria-disabled=${this.disabled&&t?"true":"false"}
|
|
438
|
+
role=${l$1(this.role)}
|
|
439
|
+
href=${t?this.href:A}
|
|
440
|
+
target=${t?l$1(this.target):A}
|
|
441
|
+
download=${t?l$1(this.download):A}
|
|
442
|
+
rel=${t&&"_blank"===this.target?"noreferrer noopener":A}
|
|
444
443
|
>
|
|
445
444
|
<!-- TODO: Replace this with the loading dots component as soon as it is ready. -->
|
|
446
445
|
${this.loading&&!["icon","icon-secondary"].includes(this.variant)?n$3`<span class="loader">●●●</span>`:A}
|
|
@@ -448,7 +447,7 @@ const e$4=Symbol.for(""),l$2=t=>{if((null==t?void 0:t.r)===e$4)return null==t?vo
|
|
|
448
447
|
<slot></slot>
|
|
449
448
|
<slot name="trailing"></slot>
|
|
450
449
|
</${this.tag}>
|
|
451
|
-
`}focus(t){var e;null===(e=__classPrivateFieldGet(this,_Button_instances,"a",_Button_element_get))||void 0===e||e.focus(t)}}
|
|
450
|
+
`}focus(t){var e;null===(e=__classPrivateFieldGet(this,_Button_instances,"a",_Button_element_get))||void 0===e||e.focus(t)}}_Button_isDisabled=new WeakMap,_Button_setTabIndex=new WeakMap,_Button_handleClick=new WeakMap,_Button_instances=new WeakSet,_Button_element_get=function(){var t,e;return null!==(e=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(".button"))&&void 0!==e?e:null},_Button_isLink=function(){return Boolean(this.href)},Button.styles=[styles$t()],window.customElements.define("m-button",Button);class BackButton extends s$5{static get properties(){return{slot:{type:String,reflect:!0}}}constructor(){super(),this.slot="back-button"}render(){return x$1`
|
|
452
451
|
<m-button variant="icon" size="default">
|
|
453
452
|
<m-icon name="arrow-left"></m-icon>
|
|
454
453
|
</m-button>
|
|
@@ -2337,4 +2336,4 @@ let s$3=class extends Event{constructor(t,e,o){super("context-request",{bubbles:
|
|
|
2337
2336
|
aria-live=${this.open?"polite":"off"}
|
|
2338
2337
|
></slot>
|
|
2339
2338
|
`}}_Tooltip_hoverTimeout=new WeakMap,_Tooltip_focusTimeout=new WeakMap,_Tooltip_handleFocus=new WeakMap,_Tooltip_handleBlur=new WeakMap,_Tooltip_handleClick=new WeakMap,_Tooltip_handleKeyDown=new WeakMap,_Tooltip_handleMouseOver=new WeakMap,_Tooltip_handleMouseOut=new WeakMap,_Tooltip_hasTrigger=new WeakMap,Tooltip.styles=[styles()],window.customElements.define("m-tooltip",Tooltip);const TOOLTIP_PLACEMENT_VALUES=POPOVER_PLACEMENT_VALUES;export{Link as $,Divider as A,BackButton as B,Card as C,Dialog as D,FieldHint as E,Field as F,FieldLabel as G,FIELD_STATUSES as H,Header as I,HeaderActions as J,HeaderContent as K,HeaderTitle as L,ALIGN_ITEMS_VALUES as M,JUSTIFY_CONTENT_VALUES as N,Box as O,defaultBoxProps as P,Group as Q,defaultGroupProps as R,SubHeader as S,Stack as T,defaultStackProps as U,Grid as V,defaultGridProps as W,Sidebar as X,defaultSidebarProps as Y,Switcher as Z,defaultSwitcherProps as _,BannerActionPrimary as a,PageContent as a0,ProgressBar as a1,ProgressBarCountdown as a2,Radio as a3,RadioGroup as a4,Section as a5,SectionTitle as a6,Tabs as a7,Tab as a8,TabPanel as a9,Tag as aa,Text as ab,TextField as ac,ToggleGroup as ad,Toggle as ae,Tooltip as af,TOOLTIP_PLACEMENT_VALUES as ag,b,BannerActionSecondary as c,BannerActions as d,BannerDescription as e,BannerIcon as f,BannerTitle as g,Banner as h,Body as i,Button as j,CardBody as k,CardSubtitle as l,CardTitle as m,CardDivider as n,Checkbox as o,CloseButton as p,DIALOG_SIZES as q,DIALOG_VARIANTS as r,DialogActionPrimary as s,DialogActionSecondary as t,DialogActionTertiary as u,DialogActions as v,DialogBody as w,DialogClose as x,DialogFooter as y,DialogHeader as z};
|
|
2340
|
-
//# sourceMappingURL=index-
|
|
2339
|
+
//# sourceMappingURL=index-9d4643c9.js.map
|