@ni/nimble-components 7.4.3 → 7.5.0
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/all-components-bundle.js +22 -6
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2 -2
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/text-field/index.js +5 -2
- package/dist/esm/text-field/index.js.map +1 -1
- package/dist/esm/text-field/styles.js +17 -4
- package/dist/esm/text-field/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -1274,7 +1274,7 @@ const Xh=mt`
|
|
|
1274
1274
|
);border-bottom-color:${Yo}}:host([disabled]) .root:hover{--ni-private-bottom-border-width:1px}.root:focus-within{border-bottom-color:${Yo}}[part='start']{display:none}.control{-webkit-appearance:none;font:inherit;background:transparent;color:inherit;padding-top:0px;padding-bottom:0px;height:calc(
|
|
1275
1275
|
${Jo} - ${sn} -
|
|
1276
1276
|
var(--ni-private-hover-bottom-border-width)
|
|
1277
|
-
);width:100%;margin-top:auto;margin-bottom:auto;padding-left:calc(${tn} / 2);padding-right:calc(${tn} / 2);border:none;text-overflow:ellipsis}.control:hover,.control:focus,.control:disabled,.control:active{outline:none}.control::selection{color:${Wn};background:rgba(${Fo},0.3)}.control::placeholder{color:${Wn}}.control:not([readonly]):focus-within::placeholder{opacity:1}.control[disabled]::placeholder{color:${An}}[part='end']{display:none}:host(.invalid)
|
|
1277
|
+
);width:100%;margin-top:auto;margin-bottom:auto;padding-left:calc(${tn} / 2);padding-right:calc(${tn} / 2);border:none;text-overflow:ellipsis}.control:hover,.control:focus,.control:disabled,.control:active{outline:none}.control::selection{color:${Wn};background:rgba(${Fo},0.3)}.control::placeholder{color:${Wn}}.control:not([readonly]):focus-within::placeholder{opacity:1}.control[disabled]::placeholder{color:${An}}[part='end']{display:contents}.error-content{display:none}:host(.invalid) .error-content{display:contents}:host(.invalid) .error-content svg{height:${on};width:${on};padding-right:8px;flex:none}:host(.invalid) .error-content path{fill:${Uo}}:host([disabled]) .error-content path{fill:${An}}.errortext{display:none}:host(.invalid) .errortext{display:block;font:${lr};color:${Uo};width:100%;position:absolute;top:${Jo};overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.invalid[readonly]:not([disabled])) .errortext{top:calc(${Jo} - ${sn})}:host(.invalid) .error-text:empty{display:none}:host([disabled]) .errortext{color:${An}}[part='actions']{display:contents}slot[name='actions']::slotted(*){margin-right:8px;${Jo.cssCustomProperty}:24px}`.withBehaviors(gc(Yh.Underline,mt`
|
|
1278
1278
|
.root{--ni-private-bottom-border-width:1px;padding-top:${sn};padding-left:${sn};padding-right:${sn}}`),gc(Yh.Block,mt`
|
|
1279
1279
|
.root{background-color:rgba(${qo},0.1);--ni-private-bottom-border-width:0px;padding-top:${sn};padding-left:${sn};padding-right:${sn}}.root:focus-within{--ni-private-bottom-border-width:1px}.root:focus-within:hover{--ni-private-bottom-border-width:var(
|
|
1280
1280
|
--ni-private-hover-bottom-border-width
|
|
@@ -1287,7 +1287,7 @@ const Xh=mt`
|
|
|
1287
1287
|
${""}
|
|
1288
1288
|
.control::-ms-reveal{filter:invert(100%)}`,Li.Dark))
|
|
1289
1289
|
class Gh extends Xs{constructor(){super(...arguments),this.appearance=Yh.Underline}connectedCallback(){super.connectedCallback(),this.control.setAttribute("aria-errormessage","errortext")}}So([ot],Gh.prototype,"appearance",void 0),So([ot({attribute:"error-text"})],Gh.prototype,"errorText",void 0)
|
|
1290
|
-
const Qh=Gh.compose({baseName:"text-field",baseClass:Xs,template:(t,e)=>Y`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Ct({property:"defaultSlottedNodes",filter:ls})}></slot></label><div class="root" part="root">${Ot(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${bt("control")} />${zt(0,e)}</div></template>`,styles:Xh,shadowOptions:{delegatesFocus:!0},end:Y
|
|
1290
|
+
const Qh=Gh.compose({baseName:"text-field",baseClass:Xs,template:(t,e)=>Y`<template class=" ${t=>t.readOnly?"readonly":""} "><label part="label" for="control" class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"><slot ${Ct({property:"defaultSlottedNodes",filter:ls})}></slot></label><div class="root" part="root">${Ot(0,e)}<input class="control" part="control" id="control" @input="${t=>t.handleTextInput()}" @change="${t=>t.handleChange()}" ?autofocus="${t=>t.autofocus}" ?disabled="${t=>t.disabled}" list="${t=>t.list}" maxlength="${t=>t.maxlength}" minlength="${t=>t.minlength}" pattern="${t=>t.pattern}" placeholder="${t=>t.placeholder}" ?readonly="${t=>t.readOnly}" ?required="${t=>t.required}" size="${t=>t.size}" ?spellcheck="${t=>t.spellcheck}" :value="${t=>t.value}" type="${t=>t.type}" aria-atomic="${t=>t.ariaAtomic}" aria-busy="${t=>t.ariaBusy}" aria-controls="${t=>t.ariaControls}" aria-current="${t=>t.ariaCurrent}" aria-describedby="${t=>t.ariaDescribedby}" aria-details="${t=>t.ariaDetails}" aria-disabled="${t=>t.ariaDisabled}" aria-errormessage="${t=>t.ariaErrormessage}" aria-flowto="${t=>t.ariaFlowto}" aria-haspopup="${t=>t.ariaHaspopup}" aria-hidden="${t=>t.ariaHidden}" aria-invalid="${t=>t.ariaInvalid}" aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" aria-label="${t=>t.ariaLabel}" aria-labelledby="${t=>t.ariaLabelledby}" aria-live="${t=>t.ariaLive}" aria-owns="${t=>t.ariaOwns}" aria-relevant="${t=>t.ariaRelevant}" aria-roledescription="${t=>t.ariaRoledescription}" ${bt("control")} />${zt(0,e)}</div></template>`,styles:Xh,shadowOptions:{delegatesFocus:!0},end:Y`<span class="error-content">${Pa.data}</span><span part="actions"><slot name="actions"></slot></span><div id="errortext" class="errortext error-content" title="${t=>t.errorText}" aria-live="polite">${t=>t.errorText}</div>`})
|
|
1291
1291
|
Vs.getOrCreate().withPrefix("nimble").register(Qh())
|
|
1292
1292
|
const Jh=mt`
|
|
1293
1293
|
${fc}
|