@luzmo/lucero 1.0.1-alpha.2 → 1.0.1-alpha.20
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 +4 -4
- package/components/accordion/index.js +8 -8
- package/components/action-bar/index.cjs +1 -1
- package/components/action-bar/index.js +7 -7
- package/components/action-button/index.cjs +2 -2
- package/components/action-button/index.js +5 -5
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/{action-group-DJGMcRHb.cjs → action-group-C54IxNZk.cjs} +1 -1
- package/components/{action-group-DBImibFn.js → action-group-C9dsPJg-.js} +2 -2
- package/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +6 -6
- package/components/{async-directive-BfcqVjDp.js → async-directive-BwIAw5tB.js} +1 -1
- package/components/{async-directive-BX1T1e1_.cjs → async-directive-DLz6JB0v.cjs} +1 -1
- package/components/avatar/index.cjs +1 -1
- package/components/avatar/index.js +5 -5
- package/components/{base-WsynuqaS.js → base-CFWO09N1.js} +62 -55
- package/components/{base-CBCg3yyw.cjs → base-Cy0MQrPT.cjs} +6 -6
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +24 -24
- package/components/{button-base-DbkDzb71.js → button-base-B8bWcklV.js} +38 -38
- package/components/{button-base-XgPLmwP-.cjs → button-base-tf95Lyl4.cjs} +3 -3
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +2 -2
- package/components/calendar/index.cjs +1 -1
- package/components/calendar/index.js +1 -1
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.js +4 -4
- package/components/{checkbox-mixin-Do7EgtpQ.js → checkbox-mixin-BOTvuPEu.js} +2 -2
- package/components/{checkbox-mixin-BDN0dBtS.cjs → checkbox-mixin-BVPpXtsq.cjs} +1 -1
- package/components/{class-map-NbVXqBU0.js → class-map-CGfNk3Ee.js} +1 -1
- package/components/{class-map-Di1D_rCm.cjs → class-map-D-Y-hsN5.cjs} +1 -1
- package/components/{clear-button-Qi1pMA5S.cjs → clear-button-CuPbWwZY.cjs} +1 -1
- package/components/{clear-button-DoeRUWQ3.js → clear-button-DzZ5ulBW.js} +4 -4
- package/components/{close-button-BFMBEw3q.cjs → close-button-BTo4yrFR.cjs} +1 -1
- package/components/{close-button-BWXdHSx3.js → close-button-CuQdsez5.js} +4 -4
- package/components/color-area/index.cjs +1 -1
- package/components/color-area/index.js +5 -5
- package/components/{color-controller-DTp1juRz.js → color-controller-B0uX6Zso.js} +116 -84
- package/components/{color-controller-_ZwyhvaU.cjs → color-controller-CoUL5f9K.cjs} +1 -1
- package/components/color-field/color-field.d.ts +8 -0
- package/components/color-field/index.cjs +4 -4
- package/components/color-field/index.js +36 -24
- package/components/color-handle/index.cjs +1 -1
- package/components/color-handle/index.js +2 -2
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/{color-loupe-CaA_Lfkk.cjs → color-loupe-CrM2DVY3.cjs} +1 -1
- package/components/{color-loupe-CmMsXbjT.js → color-loupe-DmQe3SpP.js} +1 -1
- package/components/color-menu/index.cjs +7 -7
- package/components/color-menu/index.js +44 -44
- package/components/color-palette/color-palette.d.ts +53 -0
- package/components/color-palette/index.cjs +18 -0
- package/components/color-palette/index.d.ts +7 -0
- package/components/color-palette/index.js +88 -0
- package/components/color-palette-group/color-palette-group.d.ts +79 -0
- package/components/color-palette-group/index.cjs +28 -0
- package/components/color-palette-group/index.d.ts +7 -0
- package/components/color-palette-group/index.js +205 -0
- package/components/color-picker/color-picker.d.ts +31 -2
- package/components/color-picker/index.cjs +4 -3
- package/components/color-picker/index.js +16 -12
- package/components/color-slider/index.cjs +1 -1
- package/components/color-slider/index.js +1 -1
- package/components/date-time-picker/index.cjs +3 -3
- package/components/date-time-picker/index.js +11 -11
- package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-CO-VPlqq.js} +4 -4
- package/components/{dependency-manger-C5HCkMMB.cjs → dependency-manger-uthev62E.cjs} +1 -1
- package/components/{directive-helpers-Cm6gitnu.js → directive-helpers-D4KMv2dC.js} +1 -1
- package/components/{directive-helpers-DyIRTWwA.cjs → directive-helpers-t-TVum7J.cjs} +1 -1
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +2 -2
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/{field-group-DkGst3r5.cjs → field-group-5WQMBOk4.cjs} +1 -1
- package/components/{field-group-DXfBWrkO.js → field-group-D4B0IOdA.js} +2 -2
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-CZ2zzChK.js → field-label-DxmPiC5p.js} +2 -2
- package/components/{field-label-mO1AkUgR.cjs → field-label-Dz9kisdW.cjs} +1 -1
- package/components/{focus-visible-DBlJGoEW.js → focus-visible-BvScGDCE.js} +20 -20
- package/components/focus-visible-D4BXb5RB.cjs +18 -0
- package/components/{focusable-EbipgXRh.cjs → focusable-B_KwfEec.cjs} +1 -1
- package/components/{focusable-BxtpnzWp.js → focusable-C5JjRZmT.js} +2 -2
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +4 -4
- package/components/{if-defined-DOaE2coe.js → if-defined-DULpqYwi.js} +1 -1
- package/components/{if-defined-C9YGdo33.cjs → if-defined-DaXWqfzc.cjs} +1 -1
- package/components/{index-BwxgAdzi.cjs → index-CNK8wHXu.cjs} +1 -1
- package/components/{index-A-yOTB_d.js → index-Cf6G4q52.js} +6 -6
- package/components/{index-HjQa8tew.js → index-D3ICqC7S.js} +6 -6
- package/components/{index-BLWuwZXx.cjs → index-hqVbNKYy.cjs} +3 -3
- package/components/index.cjs +1 -1
- package/components/index.js +141 -137
- package/components/infield-button/index.cjs +1 -1
- package/components/infield-button/index.js +3 -3
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +1 -1
- package/components/{language-resolution-8yZa5r_P.js → language-resolution-B-wjV5bb.js} +9 -8
- package/components/{language-resolution-DJzmyzZq.cjs → language-resolution-EUER43cg.cjs} +1 -1
- package/components/{like-anchor-sod1C1fR.cjs → like-anchor-Bu3pXbjT.cjs} +1 -1
- package/components/{like-anchor-Bvn_vLQ8.js → like-anchor-DCFJN0LV.js} +2 -2
- package/components/{luzmo-icons-DbwDQtuO.js → luzmo-icons-CiSek5iM.js} +25 -25
- package/components/{luzmo-icons-DletXGWU.cjs → luzmo-icons-CtA-TJPd.cjs} +2 -2
- package/components/{manage-help-text-syYnjKGL.js → manage-help-text-CHfMLzSa.js} +2 -2
- package/components/{manage-help-text-DhgARkZX.cjs → manage-help-text-DNqdEkTA.cjs} +1 -1
- package/components/menu/index.cjs +38 -13
- package/components/menu/index.js +132 -98
- package/components/menu/menu-item.d.ts +8 -1
- package/components/multi-language-field/index.cjs +1 -1
- package/components/multi-language-field/index.js +3 -3
- package/components/number-field/index.cjs +3 -3
- package/components/number-field/index.js +8 -8
- package/components/{observe-slot-text-BPfIQQtz.js → observe-slot-text-C3moTjwy.js} +1 -1
- package/components/{observe-slot-text-Ceb7SvYT.cjs → observe-slot-text-D2VAEFSd.cjs} +1 -1
- package/components/options/index.cjs +4 -4
- package/components/options/index.js +22 -22
- package/components/overlay/index.cjs +1 -1
- package/components/overlay/index.js +5 -5
- package/components/overlay-B3ajDLLq.cjs +47 -0
- package/components/{overlay-Cig9r6uU.js → overlay-CUKs69yr.js} +74 -76
- package/components/{pending-state-DTX7ggyF.js → pending-state-B2wWssTo.js} +2 -2
- package/components/{pending-state-CaH1si5b.cjs → pending-state-bJr-nEJl.cjs} +1 -1
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/{picker-BmoXv1jt.js → picker-BsQJBF9j.js} +38 -37
- package/components/{picker-DWsBWdPN.cjs → picker-X96xmLAw.cjs} +7 -7
- package/components/picker-button/index.cjs +1 -1
- package/components/picker-button/index.js +5 -5
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/{popover-KFfO0IYL.cjs → popover-fwJeZHMQ.cjs} +1 -1
- package/components/{popover-DjX0aAnY.js → popover-iD8f5Jkp.js} +2 -2
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-BvRJNuNo.cjs → progress-circle-DZxaMe8L.cjs} +1 -1
- package/components/{progress-circle-DXH9z8-6.js → progress-circle-USIIU1up.js} +3 -3
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.js +4 -4
- package/components/search/index.cjs +4 -4
- package/components/search/index.js +4 -4
- package/components/select/index.cjs +15 -15
- package/components/select/index.js +80 -79
- package/components/{sized-mixin-D4ACoVUr.js → sized-mixin-CJbBHWRQ.js} +1 -1
- package/components/{sized-mixin-CPxE5C96.cjs → sized-mixin-WPHH0a_D.cjs} +1 -1
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +2 -2
- package/components/{state-Deh-vKYE.js → state-DwIwYPvt.js} +1 -1
- package/components/{state-D8JEtYqe.cjs → state-vf0PJN3_.cjs} +1 -1
- package/components/{strategies-9indNIEb.js → strategies-Bk97oVn1.js} +15 -50
- package/components/strategies-CNgBb6dM.cjs +18 -0
- package/components/{streaming-listener-CP-JE6Fa.js → streaming-listener-BQ68fKMa.js} +2 -2
- package/components/{streaming-listener-B00MvALi.cjs → streaming-listener-DeGQYM-9.cjs} +1 -1
- package/components/{style-map-IgqIKvlE.js → style-map-Bnhf_mVZ.js} +1 -1
- package/components/{style-map-CeilmSgs.cjs → style-map-DuMd5xlY.cjs} +1 -1
- package/components/swatch/index.cjs +5 -5
- package/components/swatch/index.js +12 -12
- package/components/switch/index.cjs +1 -1
- package/components/switch/index.js +4 -4
- package/components/tabs/index.cjs +3 -3
- package/components/tabs/index.js +9 -9
- package/components/tags/index.cjs +1 -1
- package/components/tags/index.js +4 -4
- package/components/text-field/index.cjs +2 -2
- package/components/text-field/index.js +4 -4
- package/components/{text-field-D5d_Gt0t.cjs → text-field-BkFPYo7S.cjs} +3 -3
- package/components/{text-field-BIADXoLC.js → text-field-C2n3rzCK.js} +9 -9
- package/components/{text-field.module-ColtFhf_.js → text-field.module-C2KVUJcX.js} +1 -1
- package/components/{text-field.module-p_VF2tC_.cjs → text-field.module-DXhFA9G-.cjs} +1 -1
- package/components/toast/index.cjs +3 -3
- package/components/toast/index.js +4 -4
- package/components/tooltip/index.cjs +2 -2
- package/components/tooltip/index.js +55 -32
- package/components/tooltip/tooltip.d.ts +12 -1
- package/components/unit-input/index.cjs +3 -3
- package/components/unit-input/index.js +21 -21
- package/components/utils.cjs +1 -1
- package/components/utils.js +5 -5
- package/custom-elements.json +1 -1
- package/index.d.ts +2 -0
- package/package.json +12 -2
- package/components/focus-visible-B0P9aY_G.cjs +0 -18
- package/components/overlay-KSKMzzkh.cjs +0 -47
- package/components/strategies-BACP6MhR.cjs +0 -18
|
@@ -27,13 +27,23 @@ export declare class LuzmoTooltip extends LuzmoTooltip_base {
|
|
|
27
27
|
* Whether to prevent a self-managed Tooltip from responding to user input.
|
|
28
28
|
*/
|
|
29
29
|
disabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Whether to show the tooltip only if the content is truncated.
|
|
32
|
+
*/
|
|
33
|
+
showOnlyIfTruncated: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The selector of the element to check for truncation.
|
|
36
|
+
*/
|
|
37
|
+
truncatedElementSelector?: string;
|
|
30
38
|
/**
|
|
31
39
|
* Automatically bind to the parent element of the assigned `slot` or the parent element of the `luzmo-tooltip`.
|
|
32
40
|
* Without this, you must provide your own `overlay-trigger`.
|
|
33
41
|
*/
|
|
34
42
|
selfManaged: boolean;
|
|
35
43
|
offset: number;
|
|
36
|
-
|
|
44
|
+
private _open;
|
|
45
|
+
get open(): boolean;
|
|
46
|
+
set open(value: boolean);
|
|
37
47
|
overlayElement?: LuzmoOverlay;
|
|
38
48
|
/**
|
|
39
49
|
* @type {"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"}
|
|
@@ -45,6 +55,7 @@ export declare class LuzmoTooltip extends LuzmoTooltip_base {
|
|
|
45
55
|
private _variant;
|
|
46
56
|
get variant(): string;
|
|
47
57
|
set variant(variant: string);
|
|
58
|
+
private isContentTruncated;
|
|
48
59
|
private handleOpenOverlay;
|
|
49
60
|
protected handleCloseOverlay: () => void;
|
|
50
61
|
protected forwardTransitionEvent(event: TransitionEvent): void;
|
|
@@ -15,7 +15,7 @@
|
|
|
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 o=require("../base-
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base-Cy0MQrPT.cjs"),h=require("../state-vf0PJN3_.cjs"),d=require("../luzmo-icons-CtA-TJPd.cjs"),x=require("../style-map-DuMd5xlY.cjs"),z="*,*:before,*:after{box-sizing:border-box}:host{display:flex;flex:1 1 auto}svg{height:.75em}.unit-input-container{width:100%;position:relative;display:flex;height:1.875rem;box-sizing:border-box;border-radius:var(--luzmo-border-radius)}.unit-input-container input{box-sizing:border-box;min-width:0;width:100%;line-height:1.6rem;color:var(--luzmo-font-color);padding-left:var(--luzmo-spacing-3);padding-right:var(--luzmo-spacing-5);outline:none;border:var(--luzmo-border-width) solid var(--luzmo-border-color);border-radius:var(--luzmo-border-radius);background:transparent;font-weight:400;text-align:right;transition:border .2s ease-in-out}.unit-input-container input:focus{border:var(--luzmo-border-width) solid var(--luzmo-primary);background:var(--luzmo-background-color-hover)}.unit-input-container input:focus~.ticks{border:var(--luzmo-border-width) solid var(--luzmo-primary)}.unit-input-container input:focus~.ticks .tick-up{border-bottom:var(--luzmo-border-width) solid var(--luzmo-primary)}.unit-input-container .unit{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;right:1.125rem;color:var(--luzmo-font-color-disabled);padding:0 var(--luzmo-spacing-2);height:100%;cursor:default;-webkit-user-select:none;user-select:none;z-index:2;font-size:80%}.unit-input-container .ticks{position:absolute;display:flex;flex-direction:column;top:0;bottom:0;right:0;width:var(--luzmo-unit-input-tick-width, 1rem);-webkit-user-select:none;user-select:none;z-index:3;border:var(--luzmo-border-width) solid var(--luzmo-border-color);border-top-right-radius:var(--luzmo-border-radius);border-bottom-right-radius:var(--luzmo-border-radius);overflow:hidden;background-color:var(--luzmo-background-color-hover)}.unit-input-container .ticks>div{flex:1 1 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;color:var(--luzmo-font-color);transition:all .2s ease-in-out;cursor:pointer;position:relative}.unit-input-container .ticks>div:hover{color:var(--luzmo-font-color-hard);background:var(--background-color-alt-2)}.unit-input-container .ticks>div.disabled,.unit-input-container .ticks>div.disabled:hover{cursor:not-allowed;color:var(--luzmo-font-color-disabled)!important;background-color:var(--luzmo-background-color)}.unit-input-container .ticks>div.tick-up{border-bottom:var(--luzmo-border-width) solid var(--luzmo-border-color)}.unit-input-container.with-unit input{padding-right:2.25rem}.unit-input-container.has-error input{border-color:var(--luzmo-negative-color, red)!important}.unit-input-container.has-error .ticks{border-color:var(--luzmo-negative-color, red)!important;background-color:var(--luzmo-negative-color, red)!important}.unit-input-container.has-error .tick-up,.unit-input-container.has-error .tick-down{border-color:var(--luzmo-negative-color, red)!important;background-color:var(--luzmo-negative-color, red)!important;color:#fff!important}";var w=Object.defineProperty,s=(m,t,e,i)=>{for(var a=void 0,n=m.length-1,u;n>=0;n--)(u=m[n])&&(a=u(t,e,a)||a);return a&&w(t,e,a),a};const l={min:-99999999999,max:99999999999,step:1,default:0,debounce:250},p=class p extends o.LuzmoElement{constructor(){super(),this.isDecimal=!1,this.disabled=!1,this.readOnly=!1,this.inputWidth="",this.debounce=l.debounce,this.errors=[],this.setValue=t=>{this.waitForUpdate=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))},this.debounce||0)},this.setCorrectInitialValues()}transformToNumber(t,e){let i=t;return i=this.isDecimal?Number.parseFloat(t+""):Number.parseInt(t+"",10),i=Number.isNaN(i)?Number(e):Number(i),i}onInput(t){let e=new RegExp(/[^0-9+-]/g);this.isDecimal&&(e=new RegExp(/[^0-9.,+-]/g));const i=t.target.value.replace(e,"").replaceAll(",",".");t.target.value=i,this.errors=[];const a=this.isDecimal?Number.parseFloat(i+""):Number.parseInt(i+"",10);Number.isNaN(a)&&this.errors.push("Not a number"),a<this.min&&this.errors.length===0&&this.errors.push("Value is lower than minimum"),a>this.max&&this.errors.length===0&&this.errors.push("Value is higher than maximum"),this.errors.length===0?(this.validValue=a,this.value=this.validValue,this.setValue(this.value),this.setErrorStatus(!1)):this.setErrorStatus(!0)}setErrorStatus(t){var e,i;t?(e=this.renderRoot.querySelector(".unit-input-container"))==null||e.classList.add("has-error"):(this.errors=[],(i=this.renderRoot.querySelector(".unit-input-container"))==null||i.classList.remove("has-error"))}setDisabledUpDownStatus(){this.value===this.min?this.renderRoot.querySelector(".tick-down").classList.add("disabled"):this.renderRoot.querySelector(".tick-down").classList.remove("disabled"),this.value===this.max?this.renderRoot.querySelector(".tick-up").classList.add("disabled"):this.renderRoot.querySelector(".tick-up").classList.remove("disabled")}createAndSetValidValue(t){let e=this.validValue?this.transformToNumber(t,this.validValue):this.transformToNumber(t,this.default);this.max<e&&(e=this.max),this.min>e&&(e=this.min),this.validValue=e,this.value=e}setCorrectInitialValues(){this.min=this.transformToNumber(this.min,l.min),this.max=this.transformToNumber(this.max,l.max),this.step=Math.abs(this.transformToNumber(this.step,l.step)),this.min>this.max&&(this.min=this.max),this.max<this.min+this.step&&(this.max=this.min+this.step),this.default=this.transformToNumber(this.default,l.default),this.createAndSetValidValue(this.value)}onKeydown(t){!this.disabled&&(t.key==="ArrowUp"||t.key==="ArrowDown")&&this.applyStep(t,t.key==="ArrowUp")}applyStep(t,e){var i,a,n,u,b,f;if(!this.disabled){t.preventDefault();const v=((n=(a=(i=this.validValue.toString())==null?void 0:i.split("."))==null?void 0:a[1])==null?void 0:n.length)??0,g=((f=(b=(u=this.step.toString())==null?void 0:u.split("."))==null?void 0:b[1])==null?void 0:f.length)??0,y=Math.max(v,g);let c=this.validValue+(e?this.step:-this.step);c=Number.parseFloat(c.toFixed(y)),this.createAndSetValidValue(c),this.setErrorStatus(!1),this.renderRoot.querySelector("input").value=this.validValue+"",this.setValue(this.validValue),this.setDisabledUpDownStatus()}}setPaddingRightOfInput(){const t=this.renderRoot.querySelector(".unit"),e=this.renderRoot.querySelector(".ticks"),i=this.unit?`calc(${t==null?void 0:t.offsetWidth}px + ${e==null?void 0:e.offsetWidth}px)`:`calc(${e==null?void 0:e.offsetWidth}px + var(--luzmo-spacing-3))`;this.renderRoot.querySelector("input").style.paddingRight=i}updated(t){t.has("value")&&(this.setCorrectInitialValues(),this.waitForUpdate?this.waitForUpdate=!1:this.renderRoot.querySelector("input").value=this.value+"",this.setPaddingRightOfInput())}render(){return o.x`
|
|
19
19
|
<div style=${x.o(this.inputWidth?{width:this.inputWidth}:{})}>
|
|
20
20
|
<input
|
|
21
21
|
.min=${String(this.min)}
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
class="tick-up"
|
|
30
30
|
@click=${{handleEvent:t=>this.applyStep(t,!0)}}
|
|
31
31
|
>
|
|
32
|
-
${d.
|
|
32
|
+
${d.T3(d.b)}
|
|
33
33
|
</div>
|
|
34
34
|
|
|
35
35
|
<div
|
|
36
36
|
class="tick-down"
|
|
37
37
|
@click=${{handleEvent:t=>this.applyStep(t,!1)}}
|
|
38
38
|
>
|
|
39
|
-
${d.
|
|
39
|
+
${d.T3(d.T)}
|
|
40
40
|
</div>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
@@ -15,21 +15,21 @@
|
|
|
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 { a as w, r as k, x as f, n as
|
|
19
|
-
import { r as m } from "../state-
|
|
20
|
-
import {
|
|
21
|
-
import { o as N } from "../style-map-
|
|
18
|
+
import { a as w, r as k, x as f, n as s } from "../base-CFWO09N1.js";
|
|
19
|
+
import { r as m } from "../state-DwIwYPvt.js";
|
|
20
|
+
import { T as z, d as S, c as V } from "../luzmo-icons-CiSek5iM.js";
|
|
21
|
+
import { o as N } from "../style-map-Bnhf_mVZ.js";
|
|
22
22
|
const y = () => {
|
|
23
23
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const u = document.createElement("style");
|
|
25
|
+
u.setAttribute("data-luzmo-vars", ""), u.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-informative-color: #1a77e9;--luzmo-informative-color-rgb: 26, 119, 233;--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(u);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
y();
|
|
29
29
|
const R = "*,*:before,*:after{box-sizing:border-box}:host{display:flex;flex:1 1 auto}svg{height:.75em}.unit-input-container{width:100%;position:relative;display:flex;height:1.875rem;box-sizing:border-box;border-radius:var(--luzmo-border-radius)}.unit-input-container input{box-sizing:border-box;min-width:0;width:100%;line-height:1.6rem;color:var(--luzmo-font-color);padding-left:var(--luzmo-spacing-3);padding-right:var(--luzmo-spacing-5);outline:none;border:var(--luzmo-border-width) solid var(--luzmo-border-color);border-radius:var(--luzmo-border-radius);background:transparent;font-weight:400;text-align:right;transition:border .2s ease-in-out}.unit-input-container input:focus{border:var(--luzmo-border-width) solid var(--luzmo-primary);background:var(--luzmo-background-color-hover)}.unit-input-container input:focus~.ticks{border:var(--luzmo-border-width) solid var(--luzmo-primary)}.unit-input-container input:focus~.ticks .tick-up{border-bottom:var(--luzmo-border-width) solid var(--luzmo-primary)}.unit-input-container .unit{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;right:1.125rem;color:var(--luzmo-font-color-disabled);padding:0 var(--luzmo-spacing-2);height:100%;cursor:default;-webkit-user-select:none;user-select:none;z-index:2;font-size:80%}.unit-input-container .ticks{position:absolute;display:flex;flex-direction:column;top:0;bottom:0;right:0;width:var(--luzmo-unit-input-tick-width, 1rem);-webkit-user-select:none;user-select:none;z-index:3;border:var(--luzmo-border-width) solid var(--luzmo-border-color);border-top-right-radius:var(--luzmo-border-radius);border-bottom-right-radius:var(--luzmo-border-radius);overflow:hidden;background-color:var(--luzmo-background-color-hover)}.unit-input-container .ticks>div{flex:1 1 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;color:var(--luzmo-font-color);transition:all .2s ease-in-out;cursor:pointer;position:relative}.unit-input-container .ticks>div:hover{color:var(--luzmo-font-color-hard);background:var(--background-color-alt-2)}.unit-input-container .ticks>div.disabled,.unit-input-container .ticks>div.disabled:hover{cursor:not-allowed;color:var(--luzmo-font-color-disabled)!important;background-color:var(--luzmo-background-color)}.unit-input-container .ticks>div.tick-up{border-bottom:var(--luzmo-border-width) solid var(--luzmo-border-color)}.unit-input-container.with-unit input{padding-right:2.25rem}.unit-input-container.has-error input{border-color:var(--luzmo-negative-color, red)!important}.unit-input-container.has-error .ticks{border-color:var(--luzmo-negative-color, red)!important;background-color:var(--luzmo-negative-color, red)!important}.unit-input-container.has-error .tick-up,.unit-input-container.has-error .tick-down{border-color:var(--luzmo-negative-color, red)!important;background-color:var(--luzmo-negative-color, red)!important;color:#fff!important}";
|
|
30
|
-
var E = Object.defineProperty, i = (
|
|
31
|
-
for (var l = void 0, a =
|
|
32
|
-
(n =
|
|
30
|
+
var E = Object.defineProperty, i = (u, o, e, t) => {
|
|
31
|
+
for (var l = void 0, a = u.length - 1, n; a >= 0; a--)
|
|
32
|
+
(n = u[a]) && (l = n(o, e, l) || l);
|
|
33
33
|
return l && E(o, e, l), l;
|
|
34
34
|
};
|
|
35
35
|
const d = {
|
|
@@ -133,40 +133,40 @@ const d = {
|
|
|
133
133
|
p.styles = k(R);
|
|
134
134
|
let r = p;
|
|
135
135
|
i([
|
|
136
|
-
|
|
136
|
+
s({ type: Number, reflect: !0, attribute: "value" })
|
|
137
137
|
], r.prototype, "value");
|
|
138
138
|
i([
|
|
139
|
-
|
|
139
|
+
s({ type: Number, reflect: !0, attribute: "default" })
|
|
140
140
|
], r.prototype, "default");
|
|
141
141
|
i([
|
|
142
|
-
|
|
142
|
+
s({ type: String, reflect: !0, attribute: "placeholder" })
|
|
143
143
|
], r.prototype, "placeholder");
|
|
144
144
|
i([
|
|
145
|
-
|
|
145
|
+
s({ type: String, reflect: !0, attribute: "unit" })
|
|
146
146
|
], r.prototype, "unit");
|
|
147
147
|
i([
|
|
148
|
-
|
|
148
|
+
s({ type: Number, reflect: !0, attribute: "min" })
|
|
149
149
|
], r.prototype, "min");
|
|
150
150
|
i([
|
|
151
|
-
|
|
151
|
+
s({ type: Number, reflect: !0, attribute: "max" })
|
|
152
152
|
], r.prototype, "max");
|
|
153
153
|
i([
|
|
154
|
-
|
|
154
|
+
s({ type: Number, reflect: !0, attribute: "step" })
|
|
155
155
|
], r.prototype, "step");
|
|
156
156
|
i([
|
|
157
|
-
|
|
157
|
+
s({ type: Boolean, reflect: !0, attribute: "isDecimal" })
|
|
158
158
|
], r.prototype, "isDecimal");
|
|
159
159
|
i([
|
|
160
|
-
|
|
160
|
+
s({ type: Boolean, reflect: !0, attribute: "disabled" })
|
|
161
161
|
], r.prototype, "disabled");
|
|
162
162
|
i([
|
|
163
|
-
|
|
163
|
+
s({ type: Boolean, reflect: !0, attribute: "readOnly" })
|
|
164
164
|
], r.prototype, "readOnly");
|
|
165
165
|
i([
|
|
166
|
-
|
|
166
|
+
s({ type: String, reflect: !0, attribute: "inputWidth" })
|
|
167
167
|
], r.prototype, "inputWidth");
|
|
168
168
|
i([
|
|
169
|
-
|
|
169
|
+
s({ type: Number, reflect: !0, attribute: "debounce" })
|
|
170
170
|
], r.prototype, "debounce");
|
|
171
171
|
i([
|
|
172
172
|
m()
|
package/components/utils.cjs
CHANGED
|
@@ -15,4 +15,4 @@
|
|
|
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 e=require("./base-
|
|
18
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./base-Cy0MQrPT.cjs"),o=require("./focus-visible-D4BXb5RB.cjs"),n=require("./focusable-B_KwfEec.cjs"),i=require("./platform-BiXhwqk3.cjs"),s=require("./sized-mixin-WPHH0a_D.cjs"),r=require("./streaming-listener-DeGQYM-9.cjs");exports.LuzmoElement=e.LuzmoElement;exports.LuzmoMixin=e.LuzmoMixin;exports.FocusVisiblePolyfillMixin=o.FocusVisiblePolyfillMixin;exports.Focusable=n.Focusable;exports.isAndroid=i.isAndroid;exports.isAppleDevice=i.isAppleDevice;exports.isChrome=i.isChrome;exports.isFirefox=i.isFirefox;exports.isIOS=i.isIOS;exports.isIPad=i.isIPad;exports.isIPhone=i.isIPhone;exports.isMac=i.isMac;exports.isSeamonkey=i.isSeamonkey;exports.isWebKit=i.isWebKit;exports.ElementSizes=s.ElementSizes;exports.SizedMixin=s.SizedMixin;exports.streamingListener=r.streamingListener;
|
package/components/utils.js
CHANGED
|
@@ -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 { a as e, L as a } from "./base-
|
|
19
|
-
import { F as r } from "./focus-visible-
|
|
20
|
-
import { F as t } from "./focusable-
|
|
18
|
+
import { a as e, L as a } from "./base-CFWO09N1.js";
|
|
19
|
+
import { F as r } from "./focus-visible-BvScGDCE.js";
|
|
20
|
+
import { F as t } from "./focusable-C5JjRZmT.js";
|
|
21
21
|
import { j as x, d as f, e as l, h as p, c, b as d, a as F, i as S, g as b, f as u } from "./platform-BM-uMWpX.js";
|
|
22
|
-
import { E as L, S as M } from "./sized-mixin-
|
|
23
|
-
import { s as E } from "./streaming-listener-
|
|
22
|
+
import { E as L, S as M } from "./sized-mixin-CJbBHWRQ.js";
|
|
23
|
+
import { s as E } from "./streaming-listener-BQ68fKMa.js";
|
|
24
24
|
export {
|
|
25
25
|
L as ElementSizes,
|
|
26
26
|
r as FocusVisiblePolyfillMixin,
|