@kyndryl-design-system/shidoka-applications 2.42.0 → 2.42.2

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.
@@ -1,4 +1,4 @@
1
- import{_ as t}from"../../../vendor/tslib-53a81efe.js";import{o as i}from"../../../vendor/lit-html-29220869.js";import{o as e,b as o,n as r,t as a,i as l,l as n,e as d}from"../../../vendor/lit-461e78e6.js";import{i as s,x as p,s as c}from"../../../vendor/lit-element-c6c02f24.js";import{d as h}from"../../../vendor/deepmerge-ts-e62363e6.js";import"../button/button.js";import{Z as u,_ as m,c as v,g}from"../../../vendor/@kyndryl-design-system/shidoka-icons-a585cb92.js";import{FormMixin as b}from"../../../common/mixins/form-input.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var y=s`*,
1
+ import{_ as t}from"../../../vendor/tslib-53a81efe.js";import{o as i}from"../../../vendor/lit-html-29220869.js";import{o as e,b as o,n as r,t as a,i as l,l as n,e as d}from"../../../vendor/lit-461e78e6.js";import{i as s,x as p,s as c}from"../../../vendor/lit-element-c6c02f24.js";import{d as h}from"../../../vendor/deepmerge-ts-e62363e6.js";import"../button/button.js";import{Z as u,_ as m,c as v,g}from"../../../vendor/@kyndryl-design-system/shidoka-icons-a585cb92.js";import{FormMixin as b}from"../../../common/mixins/form-input.js";import"../../../common/helpers/helpers.js";import"../button/defs.js";var x=s`*,
2
2
  *::before,
3
3
  *::after {
4
4
  box-sizing: border-box;
@@ -553,7 +553,12 @@ input[type=password]::-ms-clear {
553
553
  right: 8px;
554
554
  transform: translateY(-50%);
555
555
  cursor: pointer;
556
- }`;const x={requiredText:"Required",clearAll:"Clear all",errorText:"Error",showPassword:"Show password",hidePassword:"Hide password"};let f=class extends(b(c)){constructor(){super(...arguments),this.label="",this.type="text",this.size="md",this.caption="",this.placeholder="",this.required=!1,this.disabled=!1,this.readonly=!1,this.iconRight=!1,this.hideLabel=!1,this.textStrings=x,this._textStrings=x,this.iconSlotted=!1,this.passwordVisible=!1}render(){var t;return p`
556
+ }
557
+
558
+ .input-wrapper input.size--sm ~ ::part(button) {
559
+ width: 20px;
560
+ height: 20px;
561
+ }`;const y={requiredText:"Required",clearAll:"Clear all",errorText:"Error",showPassword:"Show password",hidePassword:"Hide password"};let f=class extends(b(c)){constructor(){super(...arguments),this.label="",this.type="text",this.size="md",this.caption="",this.placeholder="",this.required=!1,this.disabled=!1,this.readonly=!1,this.iconRight=!1,this.hideLabel=!1,this.textStrings=y,this._textStrings=y,this.iconSlotted=!1,this.passwordVisible=!1}render(){var t;return p`
557
562
  <div
558
563
  class="text-input"
559
564
  ?disabled=${this.disabled}
@@ -653,5 +658,5 @@ input[type=password]::-ms-clear {
653
658
  `:null}
654
659
  </div>
655
660
  </div>
656
- `}_handleInput(t){this.readonly||(this.value=t.target.value,this._validate(!0,!1),this._emitValue(t))}_handleClear(){this.readonly||(this.value="",this._inputEl.value="",this._validate(!0,!1),this._emitValue())}_emitValue(t){const i={value:this.value};t&&(i.origEvent=t);const e=new CustomEvent("on-input",{detail:i});this.dispatchEvent(e)}_validate(t,i){const e=""!==this.invalidText?{...this._inputEl.validity,customError:!0}:this._inputEl.validity,o=""!==this.invalidText?this.invalidText:this._inputEl.validationMessage;this._internals.setValidity(e,o,this._inputEl),t&&(this._internalValidationMsg=this._inputEl.validationMessage),i&&this._internals.reportValidity()}updated(t){this._onUpdated(t),t.has("value")&&(this._inputEl.value=this.value)}firstUpdated(){this.determineIfSlotted()}determineIfSlotted(){this.iconSlotted=!!this.iconSlot.length}willUpdate(t){t.has("textStrings")&&(this._textStrings=h(x,this.textStrings))}_togglePasswordVisibility(t){t.stopPropagation(),this.passwordVisible=!this.passwordVisible}};f.styles=y,t([r({type:String})],f.prototype,"label",void 0),t([r({type:String})],f.prototype,"type",void 0),t([r({type:String})],f.prototype,"size",void 0),t([r({type:String})],f.prototype,"caption",void 0),t([r({type:String})],f.prototype,"placeholder",void 0),t([r({type:Boolean})],f.prototype,"required",void 0),t([r({type:Boolean})],f.prototype,"disabled",void 0),t([r({type:Boolean})],f.prototype,"readonly",void 0),t([r({type:String})],f.prototype,"pattern",void 0),t([r({type:Number})],f.prototype,"maxLength",void 0),t([r({type:Number})],f.prototype,"minLength",void 0),t([r({type:Boolean})],f.prototype,"iconRight",void 0),t([r({type:Boolean})],f.prototype,"hideLabel",void 0),t([r({type:Object})],f.prototype,"textStrings",void 0),t([a()],f.prototype,"_textStrings",void 0),t([l("input")],f.prototype,"_inputEl",void 0),t([a()],f.prototype,"iconSlotted",void 0),t([a()],f.prototype,"passwordVisible",void 0),t([n({slot:"icon"})],f.prototype,"iconSlot",void 0),f=t([d("kyn-text-input")],f);export{f as TextInput};
661
+ `}_handleInput(t){this.readonly||(this.value=t.target.value,this._validate(!0,!1),this._emitValue(t))}_handleClear(){this.readonly||(this.value="",this._inputEl.value="",this._validate(!0,!1),this._emitValue())}_emitValue(t){const i={value:this.value};t&&(i.origEvent=t);const e=new CustomEvent("on-input",{detail:i});this.dispatchEvent(e)}_validate(t,i){const e=""!==this.invalidText?{...this._inputEl.validity,customError:!0}:this._inputEl.validity,o=""!==this.invalidText?this.invalidText:this._inputEl.validationMessage;this._internals.setValidity(e,o,this._inputEl),t&&(this._internalValidationMsg=this._inputEl.validationMessage),i&&this._internals.reportValidity()}updated(t){this._onUpdated(t),t.has("value")&&(this._inputEl.value=this.value)}firstUpdated(){this.determineIfSlotted()}determineIfSlotted(){this.iconSlotted=!!this.iconSlot.length}willUpdate(t){t.has("textStrings")&&(this._textStrings=h(y,this.textStrings))}_togglePasswordVisibility(t){t.stopPropagation(),this.passwordVisible=!this.passwordVisible}};f.styles=x,t([r({type:String})],f.prototype,"label",void 0),t([r({type:String})],f.prototype,"type",void 0),t([r({type:String})],f.prototype,"size",void 0),t([r({type:String})],f.prototype,"caption",void 0),t([r({type:String})],f.prototype,"placeholder",void 0),t([r({type:Boolean})],f.prototype,"required",void 0),t([r({type:Boolean})],f.prototype,"disabled",void 0),t([r({type:Boolean})],f.prototype,"readonly",void 0),t([r({type:String})],f.prototype,"pattern",void 0),t([r({type:Number})],f.prototype,"maxLength",void 0),t([r({type:Number})],f.prototype,"minLength",void 0),t([r({type:Boolean})],f.prototype,"iconRight",void 0),t([r({type:Boolean})],f.prototype,"hideLabel",void 0),t([r({type:Object})],f.prototype,"textStrings",void 0),t([a()],f.prototype,"_textStrings",void 0),t([l("input")],f.prototype,"_inputEl",void 0),t([a()],f.prototype,"iconSlotted",void 0),t([a()],f.prototype,"passwordVisible",void 0),t([n({slot:"icon"})],f.prototype,"iconSlot",void 0),f=t([d("kyn-text-input")],f);export{f as TextInput};
657
662
  //# sourceMappingURL=textInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textInput.js","sources":["../../../../src/components/reusable/textInput/textInput.ts"],"sourcesContent":["import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';\nimport { LitElement, html } from 'lit';\nimport {\n customElement,\n property,\n state,\n query,\n queryAssignedElements,\n} from 'lit/decorators.js';\nimport { deepmerge } from 'deepmerge-ts';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport '../../reusable/button';\n\nimport clearIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/close-simple.svg';\nimport errorIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/error-filled.svg';\nimport lockIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/20/no-overview.svg';\nimport unlockIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/20/overview.svg';\n\nimport { FormMixin } from '../../../common/mixins/form-input';\nimport TextInputScss from './textInput.scss';\n\nconst _defaultTextStrings = {\n requiredText: 'Required',\n clearAll: 'Clear all',\n errorText: 'Error',\n showPassword: 'Show password',\n hidePassword: 'Hide password',\n};\n\n/**\n * Text input.\n * @fires on-input - Captures the input event and emits the selected value and original event details.\n * @prop {string} pattern - RegEx pattern to validate.\n * @prop {number} minLength - Minimum number of characters.\n * @prop {number} maxLength - Maximum number of characters.\n * @slot icon - Slot for contextual icon.\n * @slot tooltip - Slot for tooltip.\n *\n */\n@customElement('kyn-text-input')\nexport class TextInput extends FormMixin(LitElement) {\n static override styles = TextInputScss;\n\n /** Label text. */\n @property({ type: String })\n label = '';\n\n /** Input type, limited to options that are \"text like\". */\n @property({ type: String })\n type: 'text' | 'password' | 'email' | 'search' | 'tel' | 'url' = 'text';\n\n /** Input size. \"sm\", \"md\", or \"lg\". */\n @property({ type: String })\n size = 'md';\n\n /** Optional text beneath the input. */\n @property({ type: String })\n caption = '';\n\n /** Input placeholder. */\n @property({ type: String })\n placeholder = '';\n\n /** Makes the input required. */\n @property({ type: Boolean })\n required = false;\n\n /** Input disabled state. */\n @property({ type: Boolean })\n disabled = false;\n\n /** Input readonly state. */\n @property({ type: Boolean })\n readonly = false;\n\n /** RegEx pattern to validate. */\n @property({ type: String })\n pattern!: string;\n\n /** Maximum number of characters. */\n @property({ type: Number })\n maxLength!: number;\n\n /** Minimum number of characters. */\n @property({ type: Number })\n minLength!: number;\n\n /** Place icon on the right. */\n @property({ type: Boolean })\n iconRight = false;\n\n /** Visually hide the label. */\n @property({ type: Boolean })\n hideLabel = false;\n\n /** Customizable text strings. */\n @property({ type: Object })\n textStrings = _defaultTextStrings;\n\n /** Internal text strings.\n * @internal\n */\n @state()\n _textStrings = _defaultTextStrings;\n\n /**\n * Queries the <input> DOM element.\n * @ignore\n */\n @query('input')\n _inputEl!: HTMLInputElement;\n\n /**\n * Evaluates if an icon is slotted.\n * @ignore\n */\n @state()\n iconSlotted = false;\n\n /** Internal state for password visibility\n * @internal\n */\n @state()\n private passwordVisible = false;\n\n /**\n * Queries any slotted icons.\n * @ignore\n */\n @queryAssignedElements({ slot: 'icon' })\n iconSlot!: Array<HTMLElement>;\n\n override render() {\n return html`\n <div\n class=\"text-input\"\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n >\n <label\n class=\"label-text ${this.hideLabel ? 'sr-only' : ''}\"\n for=${this.name}\n >\n ${this.required\n ? html`<abbr\n class=\"required\"\n title=${this._textStrings.requiredText}\n role=\"img\"\n aria-label=${this._textStrings?.requiredText || 'Required'}\n >*</abbr\n >`\n : null}\n ${this.label}\n <slot name=\"tooltip\"></slot>\n </label>\n\n <div\n class=\"${classMap({\n 'input-wrapper': true,\n 'icon--left': this.iconSlotted && !this.iconRight,\n 'icon--right': this.iconSlotted && this.iconRight,\n })}\"\n >\n <span class=\"context-icon\">\n <slot name=\"icon\"></slot>\n </span>\n\n <input\n class=\"${classMap({\n 'size--sm': this.size === 'sm',\n 'size--lg': this.size === 'lg',\n 'is-readonly': this.readonly,\n })}\"\n type=${this.type === 'password' && this.passwordVisible\n ? 'text'\n : this.type}\n id=${this.name}\n name=${this.name}\n value=${this.value}\n placeholder=${this.placeholder}\n ?required=${this.required}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?invalid=${this._isInvalid}\n aria-invalid=${this._isInvalid}\n aria-describedby=${this._isInvalid ? 'error' : ''}\n pattern=${ifDefined(this.pattern)}\n minlength=${ifDefined(this.minLength)}\n maxlength=${ifDefined(this.maxLength)}\n @input=${(e: any) => this._handleInput(e)}\n />\n ${this.type === 'password' && !this.readonly\n ? html`\n <kyn-button\n ?disabled=${this.disabled}\n class=\"visibility-toggle\"\n kind=\"ghost\"\n size=\"small\"\n description=${this.passwordVisible\n ? this._textStrings.hidePassword\n : this._textStrings.showPassword}\n @click=${this.disabled\n ? null\n : this._togglePasswordVisibility}\n >\n <span style=\"display:flex;\" slot=\"icon\">\n ${this.passwordVisible\n ? html`${unsafeSVG(unlockIcon)}`\n : html`${unsafeSVG(lockIcon)}`}\n </span>\n </kyn-button>\n `\n : null}\n ${this.type === 'search' && this.value !== '' && !this.readonly\n ? html`\n <kyn-button\n ?disabled=${this.disabled}\n class=\"clear-button\"\n kind=\"ghost\"\n size=\"small\"\n description=${this._textStrings.clearAll}\n @click=${() => this._handleClear()}\n >\n <span style=\"display:flex;\" slot=\"icon\">\n ${unsafeSVG(clearIcon)}\n </span>\n </kyn-button>\n `\n : null}\n </div>\n\n <div class=\"caption-error-count\">\n <div>\n ${this.caption !== ''\n ? html`\n <div class=\"caption\" aria-disabled=${this.disabled}>\n ${this.caption}\n </div>\n `\n : null}\n ${this._isInvalid\n ? html`\n <div id=\"error\" class=\"error\">\n <span\n role=\"img\"\n class=\"error-icon\"\n aria-label=${this._textStrings.errorText}\n >${unsafeSVG(errorIcon)}</span\n >\n ${this.invalidText || this._internalValidationMsg}\n </div>\n `\n : null}\n </div>\n ${this.maxLength\n ? html`\n <div class=\"count\">${this.value.length}/${this.maxLength}</div>\n `\n : null}\n </div>\n </div>\n `;\n }\n\n private _handleInput(e: any) {\n if (this.readonly) return;\n this.value = e.target.value;\n\n this._validate(true, false);\n this._emitValue(e);\n }\n\n private _handleClear() {\n if (this.readonly) return;\n this.value = '';\n this._inputEl.value = '';\n\n this._validate(true, false);\n this._emitValue();\n }\n\n private _emitValue(e?: any) {\n const Detail: any = {\n value: this.value,\n };\n if (e) {\n Detail.origEvent = e;\n }\n\n const event = new CustomEvent('on-input', {\n detail: Detail,\n });\n this.dispatchEvent(event);\n }\n\n private _validate(interacted: Boolean, report: Boolean) {\n // get validity state from inputEl, combine customError flag if invalidText is provided\n const Validity =\n this.invalidText !== ''\n ? { ...this._inputEl.validity, customError: true }\n : this._inputEl.validity;\n // set validationMessage to invalidText if present, otherwise use inputEl validationMessage\n const ValidationMessage =\n this.invalidText !== ''\n ? this.invalidText\n : this._inputEl.validationMessage;\n\n // set validity on custom element, anchor to inputEl\n this._internals.setValidity(Validity, ValidationMessage, this._inputEl);\n\n // set internal validation message if value was changed by user input\n if (interacted) {\n this._internalValidationMsg = this._inputEl.validationMessage;\n }\n\n // focus the form field to show validity\n if (report) {\n this._internals.reportValidity();\n }\n }\n\n override updated(changedProps: any) {\n // preserve FormMixin updated function\n this._onUpdated(changedProps);\n\n if (changedProps.has('value')) {\n // set value on input element\n this._inputEl.value = this.value;\n }\n }\n\n override firstUpdated() {\n this.determineIfSlotted();\n }\n\n private determineIfSlotted() {\n this.iconSlotted = this.iconSlot.length ? true : false;\n }\n\n override willUpdate(changedProps: any) {\n if (changedProps.has('textStrings')) {\n this._textStrings = deepmerge(_defaultTextStrings, this.textStrings);\n }\n }\n\n private _togglePasswordVisibility(e: MouseEvent) {\n e.stopPropagation();\n this.passwordVisible = !this.passwordVisible;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-text-input': TextInput;\n }\n}\n"],"names":["_defaultTextStrings","requiredText","clearAll","errorText","showPassword","hidePassword","TextInput","FormMixin","LitElement","constructor","this","label","type","size","caption","placeholder","required","disabled","readonly","iconRight","hideLabel","textStrings","_textStrings","iconSlotted","passwordVisible","render","html","name","_a","classMap","value","_isInvalid","ifDefined","pattern","minLength","maxLength","e","_handleInput","_togglePasswordVisibility","unsafeSVG","unlockIcon","lockIcon","_handleClear","clearIcon","errorIcon","invalidText","_internalValidationMsg","length","target","_validate","_emitValue","_inputEl","Detail","origEvent","event","CustomEvent","detail","dispatchEvent","interacted","report","Validity","validity","customError","ValidationMessage","validationMessage","_internals","setValidity","reportValidity","updated","changedProps","_onUpdated","has","firstUpdated","determineIfSlotted","iconSlot","willUpdate","deepmerge","stopPropagation","styles","TextInputScss","__decorate","property","String","prototype","Boolean","Number","Object","state","query","queryAssignedElements","slot","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AMsE,UACL5E,EAAA6E,UAAA,eAAA,GAIbH,EAAA,CADCC,EAAS,CAAErE,KAAMsE,UACD5E,EAAA6E,UAAA,mBAAA,GAIjBH,EAAA,CADCC,EAAS,CAAErE,KAAMwE,WACD9E,EAAA6E,UAAA,gBAAA,GAIjBH,EAAA,CADCC,EAAS,CAAErE,KAAMwE,WACD9E,EAAA6E,UAAA,gBAAA,GAIjBH,EAAA,CADCC,EAAS,CAAErE,KAAMwE,WACD9E,EAAA6E,UAAA,gBAAA,GAIjBH,EAAA,CADCC,EAAS,CAAErE,KAAMsE,UACD5E,EAAA6E,UAAA,eAAA,GAIjBH,EAAA,CADCC,EAAS,CAAErE,KAAMyE,UACC/E,EAAA6E,UAAA,iBAAA,GAInBH,EAAA,CADCC,EAAS,CAAErE,KAAMyE,UACC/E,EAAA6E,UAAA,iBAAA,GAInBH,EAAA,CADCC,EAAS,CAAErE,KAAMwE,WACA9E,EAAA6E,UAAA,iBAAA,GAIlBH,EAAA,CADCC,EAAS,CAAErE,KAAMwE,WACA9E,EAAA6E,UAAA,iBAAA,GAIlBH,EAAA,CADCC,EAAS,CAAErE,KAAM0E,UACgBhF,EAAA6E,UAAA,mBAAA,GAMlCH,EAAA,CADCO,KACkCjF,EAAA6E,UAAA,oBAAA,GAOnCH,EAAA,CADCQ,EAAM,UACqBlF,EAAA6E,UAAA,gBAAA,GAO5BH,EAAA,CADCO,KACmBjF,EAAA6E,UAAA,mBAAA,GAMpBH,EAAA,CADCO,KAC+BjF,EAAA6E,UAAA,uBAAA,GAOhCH,EAAA,CADCS,EAAsB,CAAEC,KAAM,UACDpF,EAAA6E,UAAA,gBAAA,GA1FnB7E,EAAS0E,EAAA,CADrBW,EAAc,mBACFrF"}
1
+ {"version":3,"file":"textInput.js","sources":["../../../../src/components/reusable/textInput/textInput.ts"],"sourcesContent":["import { unsafeSVG } from 'lit-html/directives/unsafe-svg.js';\nimport { LitElement, html } from 'lit';\nimport {\n customElement,\n property,\n state,\n query,\n queryAssignedElements,\n} from 'lit/decorators.js';\nimport { deepmerge } from 'deepmerge-ts';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nimport '../../reusable/button';\n\nimport clearIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/close-simple.svg';\nimport errorIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/16/error-filled.svg';\nimport lockIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/20/no-overview.svg';\nimport unlockIcon from '@kyndryl-design-system/shidoka-icons/svg/monochrome/20/overview.svg';\n\nimport { FormMixin } from '../../../common/mixins/form-input';\nimport TextInputScss from './textInput.scss';\n\nconst _defaultTextStrings = {\n requiredText: 'Required',\n clearAll: 'Clear all',\n errorText: 'Error',\n showPassword: 'Show password',\n hidePassword: 'Hide password',\n};\n\n/**\n * Text input.\n * @fires on-input - Captures the input event and emits the selected value and original event details.\n * @prop {string} pattern - RegEx pattern to validate.\n * @prop {number} minLength - Minimum number of characters.\n * @prop {number} maxLength - Maximum number of characters.\n * @slot icon - Slot for contextual icon.\n * @slot tooltip - Slot for tooltip.\n *\n */\n@customElement('kyn-text-input')\nexport class TextInput extends FormMixin(LitElement) {\n static override styles = TextInputScss;\n\n /** Label text. */\n @property({ type: String })\n label = '';\n\n /** Input type, limited to options that are \"text like\". */\n @property({ type: String })\n type: 'text' | 'password' | 'email' | 'search' | 'tel' | 'url' = 'text';\n\n /** Input size. \"sm\", \"md\", or \"lg\". */\n @property({ type: String })\n size = 'md';\n\n /** Optional text beneath the input. */\n @property({ type: String })\n caption = '';\n\n /** Input placeholder. */\n @property({ type: String })\n placeholder = '';\n\n /** Makes the input required. */\n @property({ type: Boolean })\n required = false;\n\n /** Input disabled state. */\n @property({ type: Boolean })\n disabled = false;\n\n /** Input readonly state. */\n @property({ type: Boolean })\n readonly = false;\n\n /** RegEx pattern to validate. */\n @property({ type: String })\n pattern!: string;\n\n /** Maximum number of characters. */\n @property({ type: Number })\n maxLength!: number;\n\n /** Minimum number of characters. */\n @property({ type: Number })\n minLength!: number;\n\n /** Place icon on the right. */\n @property({ type: Boolean })\n iconRight = false;\n\n /** Visually hide the label. */\n @property({ type: Boolean })\n hideLabel = false;\n\n /** Customizable text strings. */\n @property({ type: Object })\n textStrings = _defaultTextStrings;\n\n /** Internal text strings.\n * @internal\n */\n @state()\n _textStrings = _defaultTextStrings;\n\n /**\n * Queries the <input> DOM element.\n * @ignore\n */\n @query('input')\n _inputEl!: HTMLInputElement;\n\n /**\n * Evaluates if an icon is slotted.\n * @ignore\n */\n @state()\n iconSlotted = false;\n\n /** Internal state for password visibility\n * @internal\n */\n @state()\n private passwordVisible = false;\n\n /**\n * Queries any slotted icons.\n * @ignore\n */\n @queryAssignedElements({ slot: 'icon' })\n iconSlot!: Array<HTMLElement>;\n\n override render() {\n return html`\n <div\n class=\"text-input\"\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n >\n <label\n class=\"label-text ${this.hideLabel ? 'sr-only' : ''}\"\n for=${this.name}\n >\n ${this.required\n ? html`<abbr\n class=\"required\"\n title=${this._textStrings.requiredText}\n role=\"img\"\n aria-label=${this._textStrings?.requiredText || 'Required'}\n >*</abbr\n >`\n : null}\n ${this.label}\n <slot name=\"tooltip\"></slot>\n </label>\n\n <div\n class=\"${classMap({\n 'input-wrapper': true,\n 'icon--left': this.iconSlotted && !this.iconRight,\n 'icon--right': this.iconSlotted && this.iconRight,\n })}\"\n >\n <span class=\"context-icon\">\n <slot name=\"icon\"></slot>\n </span>\n\n <input\n class=\"${classMap({\n 'size--sm': this.size === 'sm',\n 'size--lg': this.size === 'lg',\n 'is-readonly': this.readonly,\n })}\"\n type=${this.type === 'password' && this.passwordVisible\n ? 'text'\n : this.type}\n id=${this.name}\n name=${this.name}\n value=${this.value}\n placeholder=${this.placeholder}\n ?required=${this.required}\n ?disabled=${this.disabled}\n ?readonly=${this.readonly}\n ?invalid=${this._isInvalid}\n aria-invalid=${this._isInvalid}\n aria-describedby=${this._isInvalid ? 'error' : ''}\n pattern=${ifDefined(this.pattern)}\n minlength=${ifDefined(this.minLength)}\n maxlength=${ifDefined(this.maxLength)}\n @input=${(e: any) => this._handleInput(e)}\n />\n ${this.type === 'password' && !this.readonly\n ? html`\n <kyn-button\n ?disabled=${this.disabled}\n class=\"visibility-toggle\"\n kind=\"ghost\"\n size=\"small\"\n description=${this.passwordVisible\n ? this._textStrings.hidePassword\n : this._textStrings.showPassword}\n @click=${this.disabled\n ? null\n : this._togglePasswordVisibility}\n >\n <span style=\"display:flex;\" slot=\"icon\">\n ${this.passwordVisible\n ? html`${unsafeSVG(unlockIcon)}`\n : html`${unsafeSVG(lockIcon)}`}\n </span>\n </kyn-button>\n `\n : null}\n ${this.type === 'search' && this.value !== '' && !this.readonly\n ? html`\n <kyn-button\n ?disabled=${this.disabled}\n class=\"clear-button\"\n kind=\"ghost\"\n size=\"small\"\n description=${this._textStrings.clearAll}\n @click=${() => this._handleClear()}\n >\n <span style=\"display:flex;\" slot=\"icon\">\n ${unsafeSVG(clearIcon)}\n </span>\n </kyn-button>\n `\n : null}\n </div>\n\n <div class=\"caption-error-count\">\n <div>\n ${this.caption !== ''\n ? html`\n <div class=\"caption\" aria-disabled=${this.disabled}>\n ${this.caption}\n </div>\n `\n : null}\n ${this._isInvalid\n ? html`\n <div id=\"error\" class=\"error\">\n <span\n role=\"img\"\n class=\"error-icon\"\n aria-label=${this._textStrings.errorText}\n >${unsafeSVG(errorIcon)}</span\n >\n ${this.invalidText || this._internalValidationMsg}\n </div>\n `\n : null}\n </div>\n ${this.maxLength\n ? html`\n <div class=\"count\">${this.value.length}/${this.maxLength}</div>\n `\n : null}\n </div>\n </div>\n `;\n }\n\n private _handleInput(e: any) {\n if (this.readonly) return;\n this.value = e.target.value;\n\n this._validate(true, false);\n this._emitValue(e);\n }\n\n private _handleClear() {\n if (this.readonly) return;\n this.value = '';\n this._inputEl.value = '';\n\n this._validate(true, false);\n this._emitValue();\n }\n\n private _emitValue(e?: any) {\n const Detail: any = {\n value: this.value,\n };\n if (e) {\n Detail.origEvent = e;\n }\n\n const event = new CustomEvent('on-input', {\n detail: Detail,\n });\n this.dispatchEvent(event);\n }\n\n private _validate(interacted: Boolean, report: Boolean) {\n // get validity state from inputEl, combine customError flag if invalidText is provided\n const Validity =\n this.invalidText !== ''\n ? { ...this._inputEl.validity, customError: true }\n : this._inputEl.validity;\n // set validationMessage to invalidText if present, otherwise use inputEl validationMessage\n const ValidationMessage =\n this.invalidText !== ''\n ? this.invalidText\n : this._inputEl.validationMessage;\n\n // set validity on custom element, anchor to inputEl\n this._internals.setValidity(Validity, ValidationMessage, this._inputEl);\n\n // set internal validation message if value was changed by user input\n if (interacted) {\n this._internalValidationMsg = this._inputEl.validationMessage;\n }\n\n // focus the form field to show validity\n if (report) {\n this._internals.reportValidity();\n }\n }\n\n override updated(changedProps: any) {\n // preserve FormMixin updated function\n this._onUpdated(changedProps);\n\n if (changedProps.has('value')) {\n // set value on input element\n this._inputEl.value = this.value;\n }\n }\n\n override firstUpdated() {\n this.determineIfSlotted();\n }\n\n private determineIfSlotted() {\n this.iconSlotted = this.iconSlot.length ? true : false;\n }\n\n override willUpdate(changedProps: any) {\n if (changedProps.has('textStrings')) {\n this._textStrings = deepmerge(_defaultTextStrings, this.textStrings);\n }\n }\n\n private _togglePasswordVisibility(e: MouseEvent) {\n e.stopPropagation();\n this.passwordVisible = !this.passwordVisible;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'kyn-text-input': TextInput;\n }\n}\n"],"names":["_defaultTextStrings","requiredText","clearAll","errorText","showPassword","hidePassword","TextInput","FormMixin","LitElement","constructor","this","label","type","size","caption","placeholder","required","disabled","readonly","iconRight","hideLabel","textStrings","_textStrings","iconSlotted","passwordVisible","render","html","name","_a","classMap","value","_isInvalid","ifDefined","pattern","minLength","maxLength","e","_handleInput","_togglePasswordVisibility","unsafeSVG","unlockIcon","lockIcon","_handleClear","clearIcon","errorIcon","invalidText","_internalValidationMsg","length","target","_validate","_emitValue","_inputEl","Detail","origEvent","event","CustomEvent","detail","dispatchEvent","interacted","report","Validity","validity","customError","ValidationMessage","validationMessage","_internals","setValidity","reportValidity","updated","changedProps","_onUpdated","has","firstUpdated","determineIfSlotted","iconSlot","willUpdate","deepmerge","stopPropagation","styles","TextInputScss","__decorate","property","String","prototype","Boolean","Number","Object","state","query","queryAssignedElements","slot","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBA,MAAMA,EAAsB,CAC1BC,aAAc,WACdC,SAAU,YACVC,UAAW,QACXC,aAAc,gBACdC,aAAc,iBAcH,IAAAC,EAAN,cAAwBC,EAAUC,IAAlC,WAAAC,uBAKLC,KAAKC,MAAG,GAIRD,KAAIE,KAA6D,OAIjEF,KAAIG,KAAG,KAIPH,KAAOI,QAAG,GAIVJ,KAAWK,YAAG,GAIdL,KAAQM,UAAG,EAIXN,KAAQO,UAAG,EAIXP,KAAQQ,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AAA,iBAAA,GAIlBH,EAAA,CADCC,EAAS,CAAErE,KAAMwE,WACA9E,EAAA6E,UAAA,iBAAA,GAIlBH,EAAA,CADCC,EAAS,CAAErE,KAAM0E,UACgBhF,EAAA6E,UAAA,mBAAA,GAMlCH,EAAA,CADCO,KACkCjF,EAAA6E,UAAA,oBAAA,GAOnCH,EAAA,CADCQ,EAAM,UACqBlF,EAAA6E,UAAA,gBAAA,GAO5BH,EAAA,CADCO,KACmBjF,EAAA6E,UAAA,mBAAA,GAMpBH,EAAA,CADCO,KAC+BjF,EAAA6E,UAAA,uBAAA,GAOhCH,EAAA,CADCS,EAAsB,CAAEC,KAAM,UACDpF,EAAA6E,UAAA,gBAAA,GA1FnB7E,EAAS0E,EAAA,CADrBW,EAAc,mBACFrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"gridstack.newWidget.sample.d.ts","sourceRoot":"","sources":["../../../../../src/components/reusable/widget/sample/gridstack.newWidget.sample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,UAAU,CAAC;AAClB,OAAO,wDAAwD,CAAC;AAmBhE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,cAAc,CAAC;AACtB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,YAAY,CAAC;AACpB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gBAAgB,CAAC;AACxB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,WAAW,CAAC;AACnB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,YAAY,CAAC;AACpB,OAAO,aAAa,CAAC;AACrB,OAAO,wCAAwC,CAAC;AAchD;;GAEG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,OAAgB,MAAM,MAAU;IAGhC,OAAO,CAAC,IAAI,CAAC,CAAY;IAEzB,OAAO,CAAC,WAAW;IA2CnB,KAAK;;;;QAyCH;IAGF,WAAW;;;;;QAqCT;IAGF,aAAa,SAAa;IAG1B,UAAU,UAAS;IAGnB,eAAe,UAAS;IAGxB,gBAAgB,UAAS;IAGzB,gBAAgB,UAAS;IAGzB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAgB;IAG5B,sBAAsB;;;QAGlB;IAEK,MAAM;IA8Of,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAQpC,UAAU;IAkBhB,OAAO,CAAC,iBAAiB;IAgCzB,OAAO,CAAC,qBAAqB;IA4C7B,OAAO,CAAC,oBAAoB;IA8E5B,OAAO,CAAC,0BAA0B;IAwClC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,gBAAgB;CAgBzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
1
+ {"version":3,"file":"gridstack.newWidget.sample.d.ts","sourceRoot":"","sources":["../../../../../src/components/reusable/widget/sample/gridstack.newWidget.sample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,UAAU,CAAC;AAClB,OAAO,wDAAwD,CAAC;AAmBhE,OAAO,oBAAoB,CAAC;AAC5B,OAAO,cAAc,CAAC;AACtB,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,YAAY,CAAC;AACpB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gBAAgB,CAAC;AACxB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,WAAW,CAAC;AACnB,OAAO,qBAAqB,CAAC;AAC7B,OAAO,YAAY,CAAC;AACpB,OAAO,aAAa,CAAC;AACrB,OAAO,wCAAwC,CAAC;AAchD;;GAEG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC7C,OAAgB,MAAM,MAAU;IAGhC,OAAO,CAAC,IAAI,CAAC,CAAY;IAEzB,OAAO,CAAC,WAAW;IA2CnB,KAAK;;;;QAyCH;IAGF,WAAW;;;;;QAqCT;IAGF,aAAa,SAAa;IAG1B,UAAU,UAAS;IAGnB,eAAe,UAAS;IAGxB,gBAAgB,UAAS;IAGzB,gBAAgB,UAAS;IAGzB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAgB;IAG5B,sBAAsB;;;QAGlB;IAEK,MAAM;IAmPf,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAQpC,UAAU;IAkBhB,OAAO,CAAC,iBAAiB;IAgCzB,OAAO,CAAC,qBAAqB;IA4C7B,OAAO,CAAC,oBAAoB;IA8E5B,OAAO,CAAC,0BAA0B;IAwClC,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,sBAAsB;IAK9B,OAAO,CAAC,gBAAgB;CAgBzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kyndryl-design-system/shidoka-applications",
3
- "version": "2.42.0",
3
+ "version": "2.42.2",
4
4
  "description": "Shidoka Web Components for Applications",
5
5
  "license": "MIT",
6
6
  "main": "index.js",