@luzmo/lucero 1.0.1-alpha.20 → 1.0.1-alpha.22
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/components/accordion/index.cjs +6 -6
- package/components/accordion/index.js +8 -7
- package/components/action-bar/index.cjs +4 -4
- package/components/action-bar/index.js +10 -8
- package/components/action-button/index.cjs +3 -3
- package/components/action-button/index.js +5 -4
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/action-group-D6rV7sfq.cjs +20 -0
- package/components/{action-group-C9dsPJg-.js → action-group-DS7x8jfJ.js} +10 -9
- package/components/action-menu/index.cjs +9 -9
- package/components/action-menu/index.js +9 -9
- package/components/{async-directive-BwIAw5tB.js → async-directive-CDQoI4mS.js} +18 -19
- package/components/async-directive-CddlkYlZ.cjs +22 -0
- package/components/avatar/index.cjs +3 -3
- package/components/avatar/index.js +6 -6
- package/components/base-5nDSSNeT.cjs +18 -0
- package/components/base-CdYjmV_8.js +96 -0
- package/components/button/button-base.d.ts +16 -0
- package/components/button/button.d.ts +37 -1
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +15 -11
- package/components/{button-base-B8bWcklV.js → button-base-BGAqeDTT.js} +21 -6
- package/components/button-base-CShsEDFM.cjs +25 -0
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +10 -8
- package/components/calendar/index.cjs +96 -1
- package/components/calendar/index.js +538 -6
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.js +6 -4
- package/components/{checkbox-mixin-BOTvuPEu.js → checkbox-mixin-DUbGDm7f.js} +9 -9
- package/components/{checkbox-mixin-BVPpXtsq.cjs → checkbox-mixin-DhN8CIXY.cjs} +3 -3
- package/components/clear-button-BWJrTbkk.cjs +18 -0
- package/components/{clear-button-DzZ5ulBW.js → clear-button-CMhq1QsA.js} +14 -13
- package/components/{close-button-CuQdsez5.js → close-button-BiJwFZyW.js} +13 -12
- package/components/close-button-DrMdfzPW.cjs +18 -0
- package/components/color-area/index.cjs +5 -5
- package/components/color-area/index.js +10 -9
- package/components/color-controller-7sNUf7SP.js +386 -0
- package/components/color-controller-ChN-A9Ft.cjs +18 -0
- package/components/color-field/index.cjs +2 -2
- package/components/color-field/index.js +4 -3
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +7 -5
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/color-loupe-CIEFp7ln.cjs +56 -0
- package/components/{color-loupe-DmQe3SpP.js → color-loupe-CLPX6xVb.js} +6 -4
- package/components/color-menu/index.cjs +7 -7
- package/components/color-menu/index.js +7 -7
- package/components/color-palette/index.cjs +1 -1
- package/components/color-palette/index.js +4 -3
- package/components/color-palette-group/index.cjs +3 -3
- package/components/color-palette-group/index.js +33 -32
- package/components/color-picker/index.cjs +4 -4
- package/components/color-picker/index.js +11 -11
- package/components/color-slider/index.cjs +40 -1
- package/components/color-slider/index.js +452 -6
- package/components/date-time-picker/index.cjs +16 -16
- package/components/date-time-picker/index.js +103 -104
- package/components/directive-DrvvqO47.cjs +32 -0
- package/components/directive-OK_Jd_xx.js +314 -0
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +10 -8
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/field-group-BYHNJmv0.cjs +23 -0
- package/components/{field-group-D4B0IOdA.js → field-group-CHmw159R.js} +7 -5
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-DxmPiC5p.js → field-label-Cy3xMWZ-.js} +9 -8
- package/components/field-label-DZoeqJJX.cjs +25 -0
- package/components/{focusable-C5JjRZmT.js → focusable-BjvsvVam.js} +2 -1
- package/components/focusable-CbVKgGfS.cjs +18 -0
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +20 -18
- package/components/index.cjs +1 -1
- package/components/index.js +18 -18
- package/components/infield-button/index.cjs +2 -2
- package/components/infield-button/index.js +4 -3
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +6 -4
- package/components/like-anchor-B2EqJPdw.cjs +32 -0
- package/components/{like-anchor-DCFJN0LV.js → like-anchor-CgqCU210.js} +23 -22
- package/components/{manage-help-text-DNqdEkTA.cjs → manage-help-text-Bat9yGvF.cjs} +3 -3
- package/components/{manage-help-text-CHfMLzSa.js → manage-help-text-C9sCHK3R.js} +8 -8
- package/components/menu/index.cjs +16 -16
- package/components/menu/index.js +15 -16
- package/components/multi-language-field/index.cjs +2 -2
- package/components/multi-language-field/index.js +8 -6
- package/components/number-field/index.cjs +6 -6
- package/components/number-field/index.js +34 -35
- package/components/observe-slot-text-ByPG1Lqw.cjs +18 -0
- package/components/{observe-slot-text-C3moTjwy.js → observe-slot-text-CugmOzNZ.js} +20 -21
- package/components/options/index.cjs +27 -55
- package/components/options/index.js +210 -800
- package/components/overlay/index.cjs +6 -6
- package/components/overlay/index.js +9 -9
- package/components/overlay-DpWon1Rp.js +1736 -0
- package/components/overlay-nUwFClQq.cjs +47 -0
- package/components/{pending-state-bJr-nEJl.cjs → pending-state-DQctFHI8.cjs} +2 -2
- package/components/{pending-state-B2wWssTo.js → pending-state-Dx1u3EXA.js} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/{picker-BsQJBF9j.js → picker-Cm6_didQ.js} +19 -20
- package/components/picker-DxYgh4LR.cjs +123 -0
- package/components/picker-button/index.cjs +4 -4
- package/components/picker-button/index.js +6 -5
- package/components/{platform-BiXhwqk3.cjs → platform-BJnOJJag.cjs} +1 -1
- package/components/{platform-BM-uMWpX.js → platform-CqwNrovd.js} +12 -12
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/popover-lcZnODPK.cjs +30 -0
- package/components/{popover-iD8f5Jkp.js → popover-ucIgjbQs.js} +8 -7
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-USIIU1up.js → progress-circle-D5J0ZwY0.js} +8 -7
- package/components/progress-circle-DgMbqrzG.cjs +33 -0
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +10 -9
- package/components/search/index.cjs +6 -6
- package/components/search/index.js +5 -5
- package/components/select/index.cjs +43 -43
- package/components/select/index.js +33 -33
- package/components/{directive-C7oCP5Bh.cjs → sized-mixin-DcvJLFeo.cjs} +1 -5
- package/components/{sized-mixin-CJbBHWRQ.js → sized-mixin-cJbo3PKR.js} +5 -5
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +48 -1101
- package/components/{streaming-listener-BQ68fKMa.js → streaming-listener-BgU36S1Z.js} +3 -3
- package/components/streaming-listener-CfUtuELp.cjs +18 -0
- package/components/swatch/index.cjs +5 -5
- package/components/swatch/index.js +11 -10
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +5 -4
- package/components/tabs/index.cjs +31 -23
- package/components/tabs/index.js +497 -230
- package/components/tags/index.cjs +4 -4
- package/components/tags/index.js +13 -12
- package/components/text-field/index.cjs +3 -3
- package/components/text-field/index.js +12 -10
- package/components/{text-field-C2n3rzCK.js → text-field-BTEpwGFu.js} +73 -99
- package/components/text-field-JMrsh-zo.cjs +81 -0
- package/components/toast/index.cjs +11 -11
- package/components/toast/index.js +9 -7
- package/components/tooltip/index.cjs +4 -4
- package/components/tooltip/index.js +8 -7
- package/components/unit-input/index.cjs +6 -6
- package/components/unit-input/index.js +27 -26
- package/components/utils.cjs +1 -1
- package/components/utils.js +5 -5
- package/custom-elements.json +1 -1
- package/package.json +62 -1
- package/components/NumberFormatter-DewVDY5w.cjs +0 -18
- package/components/NumberFormatter-DgOUVrge.js +0 -136
- package/components/NumberParser-Dik4a0h-.cjs +0 -18
- package/components/NumberParser-ci9J5EKv.js +0 -173
- package/components/action-group-C54IxNZk.cjs +0 -20
- package/components/async-directive-DLz6JB0v.cjs +0 -22
- package/components/base-BjTwmyRF.cjs +0 -22
- package/components/base-CFWO09N1.js +0 -684
- package/components/base-Cy0MQrPT.cjs +0 -40
- package/components/base-D76d76ww.js +0 -26
- package/components/button-base-tf95Lyl4.cjs +0 -25
- package/components/class-map-CGfNk3Ee.js +0 -51
- package/components/class-map-D-Y-hsN5.cjs +0 -22
- package/components/clear-button-CuPbWwZY.cjs +0 -18
- package/components/close-button-BTo4yrFR.cjs +0 -18
- package/components/color-controller-B0uX6Zso.js +0 -3230
- package/components/color-controller-CoUL5f9K.cjs +0 -18
- package/components/color-loupe-CrM2DVY3.cjs +0 -56
- package/components/directive-helpers-D4KMv2dC.js +0 -62
- package/components/directive-helpers-t-TVum7J.cjs +0 -22
- package/components/directive-oAbCiebi.js +0 -44
- package/components/field-group-5WQMBOk4.cjs +0 -23
- package/components/field-label-Dz9kisdW.cjs +0 -25
- package/components/flow-D-0MTYCm.js +0 -527
- package/components/flow-DM3dNAKs.cjs +0 -30
- package/components/focusable-B_KwfEec.cjs +0 -18
- package/components/if-defined-DULpqYwi.js +0 -27
- package/components/if-defined-DaXWqfzc.cjs +0 -22
- package/components/index-CNK8wHXu.cjs +0 -57
- package/components/index-Cf6G4q52.js +0 -1490
- package/components/index-D3ICqC7S.js +0 -1174
- package/components/index-hqVbNKYy.cjs +0 -113
- package/components/like-anchor-Bu3pXbjT.cjs +0 -32
- package/components/luzmo-icons-CiSek5iM.js +0 -229
- package/components/luzmo-icons-CtA-TJPd.cjs +0 -29
- package/components/observe-slot-text-D2VAEFSd.cjs +0 -18
- package/components/overlay-B3ajDLLq.cjs +0 -47
- package/components/overlay-CUKs69yr.js +0 -2745
- package/components/picker-X96xmLAw.cjs +0 -123
- package/components/popover-fwJeZHMQ.cjs +0 -30
- package/components/progress-circle-DZxaMe8L.cjs +0 -33
- package/components/query-BL-TJj7K.cjs +0 -22
- package/components/query-D_KR_GUc.js +0 -51
- package/components/query-assigned-elements-DjfhL1cl.js +0 -36
- package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
- package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
- package/components/query-assigned-nodes-C76XVPWY.js +0 -36
- package/components/sized-mixin-WPHH0a_D.cjs +0 -18
- package/components/state-DwIwYPvt.js +0 -29
- package/components/state-vf0PJN3_.cjs +0 -22
- package/components/streaming-listener-DeGQYM-9.cjs +0 -18
- package/components/style-map-Bnhf_mVZ.js +0 -53
- package/components/style-map-DuMd5xlY.cjs +0 -22
- package/components/text-field-BkFPYo7S.cjs +0 -85
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
19
|
-
${this.labelOnly?o.
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("@luzmo/icons"),o=require("lit"),c=require("lit/decorators.js"),u=require("lit/directives/if-defined.js"),b=require("../observe-slot-presence-bc9chhsi.cjs"),p=require("../observe-slot-text-ByPG1Lqw.cjs"),f=require("../slottable-request-event-BfUUt1Mh.cjs"),h=require("../picker-DxYgh4LR.cjs");require("../action-button/index.cjs");require("../icon/index.cjs");require("../overlay/index.cjs");require("../popover/index.cjs");const v=":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{display:none}::slotted([slot=icon]){flex-shrink:0}.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--luzmo-action-button-edge-to-text, var(--action-button-edge-to-text)) - var(--luzmo-action-button-edge-to-visual-only, var(--action-button-edge-to-visual-only))) * -1)}luzmo-overlay:not(:defined){display:none}";var y=Object.defineProperty,z=Object.getOwnPropertyDescriptor,d=(l,t,s,i)=>{for(var e=i>1?void 0:i?z(t,s):t,r=l.length-1,a;r>=0;r--)(a=l[r])&&(e=(i?a(t,s,e):a(e))||e);return i&&e&&y(t,s,e),e};class n extends b.ObserveSlotPresence(p.ObserveSlotText(h.LuzmoPickerBase,"label"),'[slot="label-only"]'){constructor(){super(...arguments),this.selects=void 0,this.listRole="menu",this.itemRole="menuitem",this.handleSlottableRequest=t=>{this.dispatchEvent(new f.SlottableRequestEvent(t.name,t.data))}}static get styles(){return[o.unsafeCSS(v)]}get hasLabel(){return this.slotHasContent}get labelOnly(){return this.slotContentIsPresent}get buttonContent(){return[o.html`
|
|
19
|
+
${this.labelOnly?o.html``:o.html`
|
|
20
20
|
<slot
|
|
21
21
|
name="icon"
|
|
22
22
|
slot="icon"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
>
|
|
26
26
|
<luzmo-icon
|
|
27
27
|
class="icon"
|
|
28
|
-
.icon=${
|
|
28
|
+
.icon=${m.luzmoEllipsisHorizontal}
|
|
29
29
|
size=${this.size}
|
|
30
30
|
></luzmo-icon>
|
|
31
31
|
</slot>
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
<slot name="label" ?hidden=${!this.hasLabel}></slot>
|
|
34
34
|
<slot name="label-only"></slot>
|
|
35
35
|
<slot name="tooltip" @slotchange=${this.handleTooltipSlotchange}></slot>
|
|
36
|
-
`]}render(){return this.tooltipEl&&(this.tooltipEl.disabled=this.open),o.
|
|
36
|
+
`]}render(){return this.tooltipEl&&(this.tooltipEl.disabled=this.open),o.html`
|
|
37
37
|
<luzmo-action-button
|
|
38
|
-
aria-describedby=${
|
|
38
|
+
aria-describedby=${h.DESCRIPTION_ID}
|
|
39
39
|
?quiet=${this.quiet}
|
|
40
|
-
static-color=${u.
|
|
40
|
+
static-color=${u.ifDefined(this.staticColor)}
|
|
41
41
|
aria-haspopup="true"
|
|
42
|
-
aria-controls=${u.
|
|
42
|
+
aria-controls=${u.ifDefined(this.open?"menu":void 0)}
|
|
43
43
|
aria-expanded=${this.open?"true":"false"}
|
|
44
|
-
aria-label=${u.
|
|
44
|
+
aria-label=${u.ifDefined(this.label||void 0)}
|
|
45
45
|
id="button"
|
|
46
46
|
class="button"
|
|
47
47
|
size=${this.size}
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
${this.buttonContent}
|
|
54
54
|
</luzmo-action-button>
|
|
55
55
|
${this.renderMenu} ${this.renderDescriptionSlot}
|
|
56
|
-
`}update(t){t.has("invalid")&&(this.invalid=!1),super.update(t)}}
|
|
56
|
+
`}update(t){t.has("invalid")&&(this.invalid=!1),super.update(t)}}d([c.property({type:String})],n.prototype,"selects",2);d([c.property({reflect:!0,attribute:"static-color"})],n.prototype,"staticColor",2);d([c.state()],n.prototype,"labelOnly",1);customElements.get("luzmo-action-menu")||customElements.define("luzmo-action-menu",n);exports.LuzmoActionMenu=n;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { O as
|
|
23
|
-
import { O as f } from "../observe-slot-text-
|
|
18
|
+
import { luzmoEllipsisHorizontal as z } from "@luzmo/icons";
|
|
19
|
+
import { unsafeCSS as b, html as r } from "lit";
|
|
20
|
+
import { property as c, state as p } from "lit/decorators.js";
|
|
21
|
+
import { ifDefined as a } from "lit/directives/if-defined.js";
|
|
22
|
+
import { O as h } from "../observe-slot-presence-CmVi0zTc.js";
|
|
23
|
+
import { O as f } from "../observe-slot-text-CugmOzNZ.js";
|
|
24
24
|
import { S as g } from "../slottable-request-event-DggLA4Rx.js";
|
|
25
|
-
import { L as x, D as v } from "../picker-
|
|
25
|
+
import { L as x, D as v } from "../picker-Cm6_didQ.js";
|
|
26
26
|
import "../action-button/index.js";
|
|
27
27
|
import "../icon/index.js";
|
|
28
28
|
import "../overlay/index.js";
|
|
@@ -40,7 +40,7 @@ var w = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, m = (l, o, n
|
|
|
40
40
|
(s = l[u]) && (e = (t ? s(o, n, e) : s(e)) || e);
|
|
41
41
|
return t && e && w(o, n, e), e;
|
|
42
42
|
};
|
|
43
|
-
class i extends
|
|
43
|
+
class i extends h(
|
|
44
44
|
f(x, "label"),
|
|
45
45
|
'[slot="label-only"]'
|
|
46
46
|
) {
|
|
@@ -118,7 +118,7 @@ m([
|
|
|
118
118
|
c({ reflect: !0, attribute: "static-color" })
|
|
119
119
|
], i.prototype, "staticColor", 2);
|
|
120
120
|
m([
|
|
121
|
-
|
|
121
|
+
p()
|
|
122
122
|
], i.prototype, "labelOnly", 1);
|
|
123
123
|
customElements.get("luzmo-action-menu") || customElements.define("luzmo-action-menu", i);
|
|
124
124
|
export {
|
|
@@ -15,26 +15,25 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import {
|
|
19
|
-
import { i as f, t as A } from "./directive-oAbCiebi.js";
|
|
18
|
+
import { i as _, f as A, t as c } from "./directive-OK_Jd_xx.js";
|
|
20
19
|
/**
|
|
21
20
|
* @license
|
|
22
21
|
* Copyright 2017 Google LLC
|
|
23
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
23
|
*/
|
|
25
|
-
const
|
|
24
|
+
const o = (e, t) => {
|
|
26
25
|
var i;
|
|
27
26
|
const s = e._$AN;
|
|
28
27
|
if (s === void 0) return !1;
|
|
29
|
-
for (const
|
|
28
|
+
for (const n of s) (i = n._$AO) == null || i.call(n, t, !1), o(n, t);
|
|
30
29
|
return !0;
|
|
31
|
-
},
|
|
30
|
+
}, $ = (e) => {
|
|
32
31
|
let t, s;
|
|
33
32
|
do {
|
|
34
33
|
if ((t = e._$AM) === void 0) break;
|
|
35
34
|
s = t._$AN, s.delete(e), e = t;
|
|
36
35
|
} while ((s == null ? void 0 : s.size) === 0);
|
|
37
|
-
},
|
|
36
|
+
}, r = (e) => {
|
|
38
37
|
for (let t; t = e._$AM; e = t) {
|
|
39
38
|
let s = t._$AN;
|
|
40
39
|
if (s === void 0) t._$AN = s = /* @__PURE__ */ new Set();
|
|
@@ -42,31 +41,31 @@ const n = (e, t) => {
|
|
|
42
41
|
s.add(e), l(t);
|
|
43
42
|
}
|
|
44
43
|
};
|
|
45
|
-
function
|
|
46
|
-
this._$AN !== void 0 ? (
|
|
44
|
+
function f(e) {
|
|
45
|
+
this._$AN !== void 0 ? ($(this), this._$AM = e, r(this)) : this._$AM = e;
|
|
47
46
|
}
|
|
48
47
|
function d(e, t = !1, s = 0) {
|
|
49
|
-
const i = this._$AH,
|
|
50
|
-
if (
|
|
51
|
-
else i != null && (
|
|
52
|
-
else
|
|
48
|
+
const i = this._$AH, n = this._$AN;
|
|
49
|
+
if (n !== void 0 && n.size !== 0) if (t) if (Array.isArray(i)) for (let h = s; h < i.length; h++) o(i[h], !1), $(i[h]);
|
|
50
|
+
else i != null && (o(i, !1), $(i));
|
|
51
|
+
else o(this, e);
|
|
53
52
|
}
|
|
54
53
|
const l = (e) => {
|
|
55
|
-
e.type ==
|
|
54
|
+
e.type == c.CHILD && (e._$AP ?? (e._$AP = d), e._$AQ ?? (e._$AQ = f));
|
|
56
55
|
};
|
|
57
|
-
class
|
|
56
|
+
class u extends _ {
|
|
58
57
|
constructor() {
|
|
59
58
|
super(...arguments), this._$AN = void 0;
|
|
60
59
|
}
|
|
61
60
|
_$AT(t, s, i) {
|
|
62
|
-
super._$AT(t, s, i),
|
|
61
|
+
super._$AT(t, s, i), r(this), this.isConnected = t._$AU;
|
|
63
62
|
}
|
|
64
63
|
_$AO(t, s = !0) {
|
|
65
|
-
var i,
|
|
66
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
|
64
|
+
var i, n;
|
|
65
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), s && (o(this, t), $(this));
|
|
67
66
|
}
|
|
68
67
|
setValue(t) {
|
|
69
|
-
if (
|
|
68
|
+
if (A(this._$Ct)) this._$Ct._$AI(t, this);
|
|
70
69
|
else {
|
|
71
70
|
const s = [...this._$Ct._$AH];
|
|
72
71
|
s[this._$Ci] = t, this._$Ct._$AI(s, this, 0);
|
|
@@ -78,5 +77,5 @@ class C extends f {
|
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
u as f
|
|
82
81
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";const _=require("./directive-DrvvqO47.cjs");/**
|
|
19
|
+
* @license
|
|
20
|
+
* Copyright 2017 Google LLC
|
|
21
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
+
*/const o=(e,t)=>{var i;const s=e._$AN;if(s===void 0)return!1;for(const n of s)(i=n._$AO)==null||i.call(n,t,!1),o(n,t);return!0},r=e=>{let t,s;do{if((t=e._$AM)===void 0)break;s=t._$AN,s.delete(e),e=t}while((s==null?void 0:s.size)===0)},$=e=>{for(let t;t=e._$AM;e=t){let s=t._$AN;if(s===void 0)t._$AN=s=new Set;else if(s.has(e))break;s.add(e),f(t)}};function c(e){this._$AN!==void 0?(r(this),this._$AM=e,$(this)):this._$AM=e}function A(e,t=!1,s=0){const i=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(i))for(let h=s;h<i.length;h++)o(i[h],!1),r(i[h]);else i!=null&&(o(i,!1),r(i));else o(this,e)}const f=e=>{e.type==_.t.CHILD&&(e._$AP??(e._$AP=A),e._$AQ??(e._$AQ=c))};class d extends _.i{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,s,i){super._$AT(t,s,i),$(this),this.isConnected=t._$AU}_$AO(t,s=!0){var i,n;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(n=this.disconnected)==null||n.call(this)),s&&(o(this,t),r(this))}setValue(t){if(_.f(this._$Ct))this._$Ct._$AI(t,this);else{const s=[...this._$Ct._$AH];s[this._$Ci]=t,this._$Ct._$AI(s,this,0)}}disconnected(){}reconnected(){}}exports.f=d;
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("lit"),t=require("lit/decorators.js"),d=require("lit/directives/if-defined.js"),u=require("../focusable-CbVKgGfS.cjs"),z=require("../like-anchor-B2EqJPdw.cjs"),l=require("../sized-mixin-DcvJLFeo.cjs"),h='@media (forced-colors: active){:host{--highcontrast-avatar-focus-indicator-color: CanvasText}}:host{--avatar-border-radius: var( --luzmo-avatar-border-radius, var(--luzmo-avatar-size, var(--avatar-size)) );inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius);-webkit-user-drag:none;-webkit-user-select:none;user-select:none;opacity:var(--luzmo-avatar-color-opacity, var(--avatar-color-opacity));border-width:0;outline:none;display:inline-block;position:relative;overflow:visible}:host([disabled]){opacity:var(--highcontrast-avatar-color-opacity-disabled, var(--luzmo-avatar-color-opacity-disabled, var(--avatar-color-opacity-disabled)))}:host(:not([disabled])) .is-focused:after,:host(:not([disabled])) .link:focus-visible:after{pointer-events:none;content:"";inline-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);block-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);border-style:solid;border-width:var(--luzmo-avatar-focus-indicator-width, var(--avatar-focus-indicator-width));border-color:var(--highcontrast-avatar-focus-indicator-color, var(--luzmo-avatar-focus-indicator-color, var(--avatar-focus-indicator-color)));border-radius:var(--avatar-border-radius);position:absolute;inset-block-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-width, var(--avatar-focus-indicator-width))) * -1);inset-inline-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-width, var(--avatar-focus-indicator-width))) * -1)}.link{outline:0}.image{inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius)}:host([rounding=none]){border-radius:0}:host([rounding=none]) img{border-radius:0}:host([rounding=full]){border-radius:100%}:host([rounding=full]) img{border-radius:100%}:host([border=light]){border:var(--luzmo-avatar-border-width, var(--avatar-border-width)) solid var(--luzmo-avatar-border-color, var(--avatar-border-color))}:host([border=none]){border:0}:host{--avatar-color-opacity: 1;--avatar-border-width: var(--luzmo-border-width);--avatar-border-color: var(--luzmo-border-color);--avatar-size: 32px;--avatar-focus-indicator-width: var(--luzmo-indicator-width);--avatar-focus-indicator-gap: var(--luzmo-indicator-gap);--avatar-focus-indicator-color: var(--luzmo-indicator-color);--avatar-color-opacity-disabled: .3}:host([size=xxs]){--avatar-size: var(--luzmo-component-height-xxs)}:host([size=xs]){--avatar-size: var(--luzmo-component-height-xs)}:host([size=s]){--avatar-size: var(--luzmo-component-height-s)}:host{--avatar-size: var(--luzmo-component-height)}:host([size=l]){--avatar-size: var(--luzmo-component-height-l)}:host([size=xl]){--avatar-size: var(--luzmo-component-height-xl)}:host([size=xxl]){--avatar-size: var(--luzmo-component-height-xxl)}img{vertical-align:top}';var m=Object.defineProperty,i=(e,o,v,b)=>{for(var a=void 0,s=e.length-1,c;s>=0;s--)(c=e[s])&&(a=c(o,v,a)||a);return a&&m(o,v,a),a};class r extends z.LikeAnchor(l.SizedMixin(u.Focusable,{validSizes:Object.values(l.ElementSizes)})){constructor(){super(...arguments),this.src=""}static get styles(){return[n.unsafeCSS(h)]}get focusElement(){return this.anchorElement||this}render(){const o=n.html`
|
|
19
19
|
<img
|
|
20
20
|
class="image"
|
|
21
|
-
alt=${d.
|
|
21
|
+
alt=${d.ifDefined(this.label||void 0)}
|
|
22
22
|
src=${this.src}
|
|
23
23
|
/>
|
|
24
|
-
`;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:o}):o}}i([t.
|
|
24
|
+
`;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:o}):o}}i([t.property({type:String,reflect:!0})],r.prototype,"border");i([t.property({type:String,reflect:!0})],r.prototype,"rounding");i([t.query("#link")],r.prototype,"anchorElement");i([t.property()],r.prototype,"src");customElements.get("luzmo-avatar")||customElements.define("luzmo-avatar",r);exports.LuzmoAvatar=r;
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
16
|
* SOFTWARE.
|
|
17
17
|
* */
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { F as v } from "../focusable-
|
|
22
|
-
import { L as b } from "../like-anchor-
|
|
23
|
-
import { S as f, E as h } from "../sized-mixin-
|
|
18
|
+
import { unsafeCSS as n, html as m } from "lit";
|
|
19
|
+
import { property as i, query as d } from "lit/decorators.js";
|
|
20
|
+
import { ifDefined as z } from "lit/directives/if-defined.js";
|
|
21
|
+
import { F as v } from "../focusable-BjvsvVam.js";
|
|
22
|
+
import { L as b } from "../like-anchor-CgqCU210.js";
|
|
23
|
+
import { S as f, E as h } from "../sized-mixin-cJbo3PKR.js";
|
|
24
24
|
const u = () => {
|
|
25
25
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
26
26
|
const o = document.createElement("style");
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
"use strict";const m=require("lit"),r=new Set,h=()=>{if(typeof document>"u")return;const i=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";r.forEach(s=>{s.setAttribute("dir",i)})};let a=null;typeof document<"u"&&(a=new MutationObserver(h),a.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));const f=i=>i.startManagingContentDirection!==void 0||i.tagName==="LUZMO-THEME";function l(i){class s extends i{get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){if(typeof document>"u")return!1;const n=((u=document)=>{var d;let t=u.activeElement;for(;t!=null&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;const c=t?[t]:[];for(;t;){const o=t.assignedSlot||t.parentElement||((d=t.getRootNode())==null?void 0:d.host);o&&c.push(o),t=o}return c})(this.getRootNode())[0];if(!n)return!1;try{return n.matches(":focus-visible")||n.matches(".focus-visible")}catch{return n.matches(".focus-visible")}}connectedCallback(){if(typeof document>"u"){super.connectedCallback();return}if(!this.hasAttribute("dir")){let e=this.assignedSlot||this.parentNode;for(;e!==(document==null?void 0:document.documentElement)&&!f(e);)e=e.assignedSlot||e.parentNode||e.host;if(this.dir=e.dir==="rtl"?e.dir:this.dir||"ltr",e===(document==null?void 0:document.documentElement))r.add(this);else{const{localName:n}=e;n.search("-")>-1&&typeof customElements<"u"&&!customElements.get(n)?customElements.whenDefined(n).then(()=>{e.startManagingContentDirection(this)}):e.startManagingContentDirection(this)}this._dirParent=e}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===(document==null?void 0:document.documentElement)?r.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return s}class E extends l(m.LitElement){}exports.LuzmoElement=E;exports.LuzmoMixin=l;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*! * Lucero - The design system for Luzmo.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
+
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
+
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
+
*
|
|
10
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
+
* SOFTWARE.
|
|
17
|
+
* */
|
|
18
|
+
import { LitElement as u } from "lit";
|
|
19
|
+
const r = /* @__PURE__ */ new Set(), m = () => {
|
|
20
|
+
if (typeof document > "u") return;
|
|
21
|
+
const i = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
|
|
22
|
+
r.forEach((s) => {
|
|
23
|
+
s.setAttribute("dir", i);
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
let a = null;
|
|
27
|
+
typeof document < "u" && (a = new MutationObserver(m), a.observe(document.documentElement, {
|
|
28
|
+
attributes: !0,
|
|
29
|
+
attributeFilter: ["dir"]
|
|
30
|
+
}));
|
|
31
|
+
const h = (i) => i.startManagingContentDirection !== void 0 || i.tagName === "LUZMO-THEME";
|
|
32
|
+
function f(i) {
|
|
33
|
+
class s extends i {
|
|
34
|
+
/**
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
get isLTR() {
|
|
38
|
+
return this.dir === "ltr";
|
|
39
|
+
}
|
|
40
|
+
hasVisibleFocusInTree() {
|
|
41
|
+
if (typeof document > "u") return !1;
|
|
42
|
+
const n = ((l = document) => {
|
|
43
|
+
var d;
|
|
44
|
+
let t = l.activeElement;
|
|
45
|
+
for (; t != null && t.shadowRoot && t.shadowRoot.activeElement; )
|
|
46
|
+
t = t.shadowRoot.activeElement;
|
|
47
|
+
const c = t ? [t] : [];
|
|
48
|
+
for (; t; ) {
|
|
49
|
+
const o = t.assignedSlot || t.parentElement || ((d = t.getRootNode()) == null ? void 0 : d.host);
|
|
50
|
+
o && c.push(o), t = o;
|
|
51
|
+
}
|
|
52
|
+
return c;
|
|
53
|
+
})(this.getRootNode())[0];
|
|
54
|
+
if (!n)
|
|
55
|
+
return !1;
|
|
56
|
+
try {
|
|
57
|
+
return n.matches(":focus-visible") || n.matches(".focus-visible");
|
|
58
|
+
} catch {
|
|
59
|
+
return n.matches(".focus-visible");
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
connectedCallback() {
|
|
63
|
+
if (typeof document > "u") {
|
|
64
|
+
super.connectedCallback();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!this.hasAttribute("dir")) {
|
|
68
|
+
let e = this.assignedSlot || this.parentNode;
|
|
69
|
+
for (; e !== (document == null ? void 0 : document.documentElement) && !h(e); )
|
|
70
|
+
e = e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
71
|
+
e.parentNode || // DOM Element detected
|
|
72
|
+
e.host;
|
|
73
|
+
if (this.dir = e.dir === "rtl" ? e.dir : this.dir || "ltr", e === (document == null ? void 0 : document.documentElement))
|
|
74
|
+
r.add(this);
|
|
75
|
+
else {
|
|
76
|
+
const { localName: n } = e;
|
|
77
|
+
n.search("-") > -1 && typeof customElements < "u" && !customElements.get(n) ? customElements.whenDefined(n).then(() => {
|
|
78
|
+
e.startManagingContentDirection(this);
|
|
79
|
+
}) : e.startManagingContentDirection(this);
|
|
80
|
+
}
|
|
81
|
+
this._dirParent = e;
|
|
82
|
+
}
|
|
83
|
+
super.connectedCallback();
|
|
84
|
+
}
|
|
85
|
+
disconnectedCallback() {
|
|
86
|
+
super.disconnectedCallback(), this._dirParent && (this._dirParent === (document == null ? void 0 : document.documentElement) ? r.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return s;
|
|
90
|
+
}
|
|
91
|
+
class b extends f(u) {
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
f as L,
|
|
95
|
+
b as a
|
|
96
|
+
};
|
|
@@ -12,6 +12,9 @@ declare const LuzmoButtonBase_base: typeof Focusable & {
|
|
|
12
12
|
* @slot icon - icon element(s) to display at the start of the button
|
|
13
13
|
*/
|
|
14
14
|
export declare class LuzmoButtonBase extends LuzmoButtonBase_base {
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
15
18
|
static get styles(): CSSResultArray;
|
|
16
19
|
active: boolean;
|
|
17
20
|
/**
|
|
@@ -20,11 +23,24 @@ export declare class LuzmoButtonBase extends LuzmoButtonBase_base {
|
|
|
20
23
|
*/
|
|
21
24
|
type: 'button' | 'submit' | 'reset';
|
|
22
25
|
/**
|
|
26
|
+
* @internal
|
|
23
27
|
* HTML anchor element that component clicks by proxy
|
|
24
28
|
*/
|
|
25
29
|
private anchorElement;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* The element that receives focus when the button is focused.
|
|
33
|
+
*/
|
|
26
34
|
get focusElement(): HTMLElement;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* Whether the button has a label.
|
|
38
|
+
*/
|
|
27
39
|
protected get hasLabel(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* The content of the button.
|
|
43
|
+
*/
|
|
28
44
|
protected get buttonContent(): TemplateResult[];
|
|
29
45
|
constructor();
|
|
30
46
|
private handleClickCapture;
|
|
@@ -15,11 +15,30 @@ declare const LuzmoButton_base: typeof LuzmoButtonBase & {
|
|
|
15
15
|
*
|
|
16
16
|
* @slot - text label of the Button
|
|
17
17
|
* @slot icon - The icon to use for Button
|
|
18
|
+
* @fires change - Announces that the `value` of the element has changed
|
|
19
|
+
* @attr size - The size of the select: `s`, `m`, `l` or `xl`
|
|
20
|
+
* @attr disabled - Whether the button is disabled.
|
|
18
21
|
*/
|
|
19
22
|
export declare class LuzmoButton extends LuzmoButton_base {
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
20
26
|
static get styles(): CSSResultArray;
|
|
27
|
+
/**
|
|
28
|
+
* @attr pending-label - The label to display when the button is in a pending state.
|
|
29
|
+
* @default 'Pending'
|
|
30
|
+
*/
|
|
21
31
|
pendingLabel: string;
|
|
32
|
+
/**
|
|
33
|
+
* @attr pending - Whether the button should be displayed in a pending state.
|
|
34
|
+
* @default false
|
|
35
|
+
* Use this property to set the button into a pending state
|
|
36
|
+
*/
|
|
22
37
|
pending: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* The controller that manages the pending state of the button.
|
|
41
|
+
*/
|
|
23
42
|
pendingStateController: PendingStateController<this>;
|
|
24
43
|
/**
|
|
25
44
|
* Initializes the `PendingStateController` for the Button component.
|
|
@@ -28,31 +47,48 @@ export declare class LuzmoButton extends LuzmoButton_base {
|
|
|
28
47
|
constructor();
|
|
29
48
|
click(): void;
|
|
30
49
|
/**
|
|
50
|
+
* @attr variant - The visual variant to apply to this button.
|
|
31
51
|
* The visual variant to apply to this button.
|
|
32
52
|
*/
|
|
33
53
|
get variant(): ButtonVariants;
|
|
34
54
|
set variant(variant: ButtonVariants);
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* The visual variant to apply to this button.
|
|
58
|
+
*/
|
|
35
59
|
private _variant;
|
|
36
60
|
/**
|
|
61
|
+
* @attr static-color - The static color variant to use for this button.
|
|
37
62
|
* The static color variant to use for this button.
|
|
38
63
|
*/
|
|
39
64
|
staticColor?: 'black' | 'white';
|
|
40
65
|
/**
|
|
66
|
+
* @attr treatment - The visual treatment to apply to this button.
|
|
67
|
+
* @default 'fill'
|
|
41
68
|
* The visual treatment to apply to this button.
|
|
42
69
|
*/
|
|
43
70
|
treatment: ButtonTreatments;
|
|
44
71
|
/**
|
|
72
|
+
* @attr quiet - Style this button to be less obvious
|
|
73
|
+
* @default false
|
|
45
74
|
* Style this button to be less obvious
|
|
46
75
|
*/
|
|
47
76
|
set quiet(quiet: boolean);
|
|
77
|
+
get quiet(): boolean;
|
|
48
78
|
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* Whether the button should be displayed in a quiet state
|
|
81
|
+
*/
|
|
82
|
+
private _quiet;
|
|
83
|
+
/**
|
|
84
|
+
* @attr no-wrap - Disables text wrapping within the button component's label.
|
|
85
|
+
* @default false
|
|
49
86
|
* Disables text wrapping within the button component's label.
|
|
50
87
|
* Please note that this option is not a part of the design specification
|
|
51
88
|
* and should be used carefully, with consideration of this overflow behavior
|
|
52
89
|
* and the readability of the button's content.
|
|
53
90
|
*/
|
|
54
91
|
noWrap: boolean;
|
|
55
|
-
get quiet(): boolean;
|
|
56
92
|
protected firstUpdated(changes: PropertyValues<this>): void;
|
|
57
93
|
protected renderButton(): TemplateResult;
|
|
58
94
|
}
|