@db-ux/wc-core-components 3.0.0 → 3.0.2-copilot-66b0168
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/README.md +10 -0
- package/agent/Accordion.md +23 -0
- package/agent/AccordionItem.md +29 -0
- package/agent/Badge.md +32 -0
- package/agent/Brand.md +13 -0
- package/agent/Button.md +47 -0
- package/agent/Card.md +23 -0
- package/agent/Checkbox.md +41 -0
- package/agent/CustomSelect.md +54 -0
- package/agent/Divider.md +21 -0
- package/agent/Drawer.md +71 -0
- package/agent/Header.md +29 -0
- package/agent/Icon.md +20 -0
- package/agent/Infotext.md +25 -0
- package/agent/Input.md +48 -0
- package/agent/Link.md +52 -0
- package/agent/Navigation.md +19 -0
- package/agent/NavigationItem.md +29 -0
- package/agent/Notification.md +38 -0
- package/agent/Page.md +27 -0
- package/agent/Popover.md +52 -0
- package/agent/Radio.md +28 -0
- package/agent/Section.md +21 -0
- package/agent/Select.md +62 -0
- package/agent/Stack.md +35 -0
- package/agent/Switch.md +44 -0
- package/agent/TabItem.md +25 -0
- package/agent/Tabs.md +61 -0
- package/agent/Tag.md +41 -0
- package/agent/Textarea.md +44 -0
- package/agent/Tooltip.md +37 -0
- package/agent/_instructions.md +31 -0
- package/dist/cjs/db-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +6 -5
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select.cjs.entry.js +20 -13
- package/dist/cjs/db-custom-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-header.cjs.entry.js +13 -18
- package/dist/cjs/db-header.cjs.entry.js.map +1 -1
- package/dist/cjs/db-header.entry.cjs.js.map +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/db-popover.cjs.entry.js +1 -1
- package/dist/cjs/db-select.cjs.entry.js +5 -4
- package/dist/cjs/db-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tabs.cjs.entry.js +23 -18
- package/dist/cjs/db-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/db-tabs.entry.cjs.js.map +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +5 -4
- package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/{floating-components-BxBSpOv1.js → floating-components-ogUqz72V.js} +3 -2
- package/dist/cjs/{floating-components-BxBSpOv1.js.map → floating-components-ogUqz72V.js.map} +1 -1
- package/dist/cjs/index.cjs.js +113 -12
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{navigation-BNSnj0bl.js → navigation-DauGE-qj.js} +3 -3
- package/dist/cjs/{navigation-BNSnj0bl.js.map → navigation-DauGE-qj.js.map} +1 -1
- package/dist/collection/components/checkbox/checkbox.js +5 -4
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/custom-select/custom-select.js +55 -42
- package/dist/collection/components/custom-select/custom-select.js.map +1 -1
- package/dist/collection/components/custom-select/model.js.map +1 -1
- package/dist/collection/components/header/header.js +30 -34
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/input/input.js +6 -5
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/select/select.js +5 -4
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/tabs/tabs.js +23 -18
- package/dist/collection/components/tabs/tabs.js.map +1 -1
- package/dist/collection/components/textarea/textarea.js +5 -4
- package/dist/collection/components/textarea/textarea.js.map +1 -1
- package/dist/collection/index.js +39 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/custom-elements.json +87 -102
- package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-header.entry.esm.js.map +1 -1
- package/dist/db-ux/db-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-tabs.entry.esm.js.map +1 -1
- package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/index.esm.js.map +1 -1
- package/dist/db-ux/p-340bb722.entry.js +2 -0
- package/dist/db-ux/p-340bb722.entry.js.map +1 -0
- package/dist/db-ux/p-3d7eb768.entry.js +2 -0
- package/dist/db-ux/p-3d7eb768.entry.js.map +1 -0
- package/dist/db-ux/p-6e35a260.entry.js +2 -0
- package/dist/db-ux/p-6e35a260.entry.js.map +1 -0
- package/dist/db-ux/p-72330d25.entry.js +2 -0
- package/dist/db-ux/p-72330d25.entry.js.map +1 -0
- package/dist/db-ux/p-84dd974f.entry.js +2 -0
- package/dist/db-ux/p-84dd974f.entry.js.map +1 -0
- package/dist/db-ux/p-8b41c30e.entry.js +2 -0
- package/dist/db-ux/p-8b41c30e.entry.js.map +1 -0
- package/dist/db-ux/{p-CifCRcqG.js → p-G-TursYV.js} +2 -2
- package/dist/db-ux/{p-CifCRcqG.js.map → p-G-TursYV.js.map} +1 -1
- package/dist/db-ux/p-a3541c03.entry.js +2 -0
- package/dist/db-ux/p-a3541c03.entry.js.map +1 -0
- package/dist/db-ux/{p-b7f2a0b9.entry.js → p-d4e3d1db.entry.js} +2 -2
- package/dist/db-ux/{p-30023526.entry.js → p-e9c323af.entry.js} +2 -2
- package/dist/db-ux/{p-914ca50e.entry.js → p-fdf5578d.entry.js} +2 -2
- package/dist/db-ux/{p-DdyDId49.js → p-sP2NlPcu.js} +2 -2
- package/dist/db-ux/{p-DdyDId49.js.map → p-sP2NlPcu.js.map} +1 -1
- package/dist/esm/db-checkbox.entry.js +5 -4
- package/dist/esm/db-checkbox.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +6 -5
- package/dist/esm/db-custom-select-dropdown_5.entry.js.map +1 -1
- package/dist/esm/db-custom-select.entry.js +20 -13
- package/dist/esm/db-custom-select.entry.js.map +1 -1
- package/dist/esm/db-header.entry.js +15 -20
- package/dist/esm/db-header.entry.js.map +1 -1
- package/dist/esm/db-navigation-item.entry.js +2 -2
- package/dist/esm/db-popover.entry.js +1 -1
- package/dist/esm/db-select.entry.js +5 -4
- package/dist/esm/db-select.entry.js.map +1 -1
- package/dist/esm/db-tabs.entry.js +23 -18
- package/dist/esm/db-tabs.entry.js.map +1 -1
- package/dist/esm/db-textarea.entry.js +5 -4
- package/dist/esm/db-textarea.entry.js.map +1 -1
- package/dist/esm/db-tooltip.entry.js +1 -1
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/{floating-components-CifCRcqG.js → floating-components-G-TursYV.js} +3 -3
- package/dist/esm/{floating-components-CifCRcqG.js.map → floating-components-G-TursYV.js.map} +1 -1
- package/dist/esm/index.js +64 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{navigation--rT2utIA.js → navigation--UdC9CzO.js} +3 -3
- package/dist/esm/{navigation--rT2utIA.js.map → navigation--UdC9CzO.js.map} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/dist/types/components/custom-select/custom-select.d.ts +4 -3
- package/dist/types/components/custom-select/model.d.ts +1 -0
- package/dist/types/components/header/header.d.ts +1 -2
- package/dist/types/components/input/input.d.ts +2 -2
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/dist/types/index.d.ts +39 -0
- package/dist/vscode.html-custom-data.json +14 -14
- package/dist/web-types.json +35 -35
- package/package.json +10 -8
- package/dist/db-ux/p-07594af1.entry.js +0 -2
- package/dist/db-ux/p-07594af1.entry.js.map +0 -1
- package/dist/db-ux/p-44142b26.entry.js +0 -2
- package/dist/db-ux/p-44142b26.entry.js.map +0 -1
- package/dist/db-ux/p-6c4115c8.entry.js +0 -2
- package/dist/db-ux/p-6c4115c8.entry.js.map +0 -1
- package/dist/db-ux/p-7d77b648.entry.js +0 -2
- package/dist/db-ux/p-7d77b648.entry.js.map +0 -1
- package/dist/db-ux/p-86df8645.entry.js +0 -2
- package/dist/db-ux/p-86df8645.entry.js.map +0 -1
- package/dist/db-ux/p-93a9f369.entry.js +0 -2
- package/dist/db-ux/p-93a9f369.entry.js.map +0 -1
- package/dist/db-ux/p-fedcbc94.entry.js +0 -2
- package/dist/db-ux/p-fedcbc94.entry.js.map +0 -1
- /package/dist/db-ux/{p-b7f2a0b9.entry.js.map → p-d4e3d1db.entry.js.map} +0 -0
- /package/dist/db-ux/{p-30023526.entry.js.map → p-e9c323af.entry.js.map} +0 -0
- /package/dist/db-ux/{p-914ca50e.entry.js.map → p-fdf5578d.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,aAAa,EACb,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,GAAG,EACH,KAAK,EACL,UAAU,EACV,WAAW,EACX,SA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n DEFAULT_INVALID_MESSAGE,\n DEFAULT_INVALID_MESSAGE_ID_SUFFIX,\n DEFAULT_LABEL,\n DEFAULT_MESSAGE_ID_SUFFIX,\n DEFAULT_PLACEHOLDER,\n DEFAULT_ROWS,\n DEFAULT_VALID_MESSAGE,\n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InputEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n cls,\n delay,\n getBoolean,\n getHideProp,\n getNumber,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport { DBTextareaProps, DBTextareaState } from \"./model\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-textarea\",\n})\nexport class DBTextarea {\n private _ref!: HTMLTextAreaElement | any;\n @Prop() id: DBTextareaProps[\"id\"];\n @Prop() invalidMessage: DBTextareaProps[\"invalidMessage\"];\n @Prop() message: DBTextareaProps[\"message\"];\n @Prop() showMessage: DBTextareaProps[\"showMessage\"];\n @Prop() value: DBTextareaProps[\"value\"];\n @Prop() validMessage: DBTextareaProps[\"validMessage\"];\n @Prop() validation: DBTextareaProps[\"validation\"];\n @Prop() required: DBTextareaProps[\"required\"];\n @Prop() minLength: DBTextareaProps[\"minLength\"];\n @Prop() maxLength: DBTextareaProps[\"maxLength\"];\n @Event() input: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onInput\"]>[number]\n > | void;\n @Event() change: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onFocus\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBTextareaProps[\"className\"];\n @Prop() variant: DBTextareaProps[\"variant\"];\n @Prop() showRequiredAsterisk: DBTextareaProps[\"showRequiredAsterisk\"];\n @Prop() showLabel: DBTextareaProps[\"showLabel\"];\n @Prop() label: DBTextareaProps[\"label\"];\n @Prop() fieldSizing: DBTextareaProps[\"fieldSizing\"];\n @Prop() resize: DBTextareaProps[\"resize\"];\n @Prop() showResizer: DBTextareaProps[\"showResizer\"];\n @Prop() disabled: DBTextareaProps[\"disabled\"];\n @Prop() readOnly: DBTextareaProps[\"readOnly\"];\n @Prop() readonly: DBTextareaProps[\"readonly\"];\n @Prop() form: DBTextareaProps[\"form\"];\n @Prop() maxlength: DBTextareaProps[\"maxlength\"];\n @Prop() minlength: DBTextareaProps[\"minlength\"];\n @Prop() name: DBTextareaProps[\"name\"];\n @Prop() wrap: DBTextareaProps[\"wrap\"];\n @Prop() spellCheck: DBTextareaProps[\"spellCheck\"];\n @Prop() autocomplete: DBTextareaProps[\"autocomplete\"];\n @Prop() ariaDescribedBy: DBTextareaProps[\"ariaDescribedBy\"];\n @Prop() placeholder: DBTextareaProps[\"placeholder\"];\n @Prop() rows: DBTextareaProps[\"rows\"];\n @Prop() cols: DBTextareaProps[\"cols\"];\n @Prop() messageIcon: DBTextareaProps[\"messageIcon\"];\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _invalidMessage = undefined;\n @State() _descByIds = \"\";\n @State() _value = \"\";\n @State() _voiceOverFallback = \"\";\n\n hasValidState() {\n return !!(this.validMessage ?? this.validation === \"valid\");\n }\n handleValidation() {\n /* For a11y reasons we need to map the correct message with the textarea */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this._invalidMessage;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.hasValidState() &&\n this._ref?.validity.valid &&\n (this.required || this.minLength || this.maxLength)\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = \"\";\n }\n }\n handleInput(event: InputEvent<HTMLTextAreaElement>) {\n if (this.input) {\n this.input.emit(event);\n }\n this.handleValidation();\n }\n handleChange(event: ChangeEvent<HTMLTextAreaElement>) {\n if (this.change) {\n this.change.emit(event);\n }\n this.handleValidation();\n }\n handleBlur(event: InteractionEvent<HTMLTextAreaElement> | any) {\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLTextAreaElement> | any) {\n if (this.focus) {\n this.focus.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLTextAreaElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n }\n\n @Watch(\"_ref\")\n @Watch(\"invalidMessage\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n }\n }\n\n @Watch(\"_id\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n this._value = this.value;\n }\n\n @Watch(\"value\")\n watch2() {\n this.watch2Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-textarea\");\n const mId = this.id ?? `textarea-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-textarea\", this.className)}\n data-variant={this.variant}\n data-hide-asterisk={getHideProp(this.showRequiredAsterisk)}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>{this.label ?? DEFAULT_LABEL}</label>\n <textarea\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n data-field-sizing={this.fieldSizing}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-resize={this.resize}\n data-hide-resizer={getHideProp(this.showResizer ?? true)}\n disabled={getBoolean(this.disabled, \"disabled\")}\n required={getBoolean(this.required, \"required\")}\n readOnly={\n getBoolean(this.readOnly, \"readOnly\") ||\n getBoolean(this.readonly, \"readonly\")\n }\n form={this.form}\n maxLength={getNumber(this.maxLength, this.maxlength)}\n minLength={getNumber(this.minLength, this.minlength)}\n name={this.name}\n wrap={this.wrap}\n spellcheck={this.spellCheck}\n autocomplete={this.autocomplete}\n onInput={(event) => this.handleInput(event)}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n value={this.value ?? this._value}\n aria-describedby={this.ariaDescribedBy ?? this._descByIds}\n placeholder={this.placeholder ?? DEFAULT_PLACEHOLDER}\n rows={getNumber(this.rows, DEFAULT_ROWS)}\n cols={getNumber(this.cols)}\n ></textarea>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n {this.hasValidState() ? (\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage || DEFAULT_VALID_MESSAGE}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this._invalidMessage}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"textarea.js","sourceRoot":"","sources":["../../../src/components/textarea/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,aAAa,EACb,yBAAyB,EACzB,mBAAmB,EACnB,YAAY,EACZ,qBAAqB,EACrB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,GAAG,EACH,KAAK,EACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,IAAI,GACL,MAAM,aAAa,CAAC;AAQrB,OAAO,EACL,SAAS,EACT,CAAC,EAED,KAAK,EACL,KAAK,EAEL,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AAIH,MAAM,OAAO,UAAU;IAHtB;QAkDU,QAAG,GAAG,SAAS,CAAC;QAChB,eAAU,GAAG,SAAS,CAAC;QACvB,oBAAe,GAAG,SAAS,CAAC;QAC5B,sBAAiB,GAAG,SAAS,CAAC;QAC9B,oBAAe,GAAG,SAAS,CAAC;QAC5B,eAAU,GAAG,SAAS,CAAC;QACvB,WAAM,GAAG,EAAE,CAAC;QACZ,uBAAkB,GAAG,EAAE,CAAC;KA8NlC;IA5NC,aAAa;;QACX,OAAO,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,YAAY,mCAAI,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC,CAAC;IAC9D,CAAC;IACD,gBAAgB;;QACd,2EAA2E;QAC3E,IAAI,CAAC,CAAA,MAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAC,KAAK,CAAA,IAAI,IAAI,CAAC,UAAU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n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InputEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n cls,\n delay,\n getBoolean,\n getHideProp,\n getNumber,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport { DBTextareaProps, DBTextareaState } from \"./model\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-textarea\",\n})\nexport class DBTextarea {\n private _ref!: HTMLTextAreaElement | any;\n @Prop() id: DBTextareaProps[\"id\"];\n @Prop() invalidMessage: DBTextareaProps[\"invalidMessage\"];\n @Prop() message: DBTextareaProps[\"message\"];\n @Prop() showMessage: DBTextareaProps[\"showMessage\"];\n @Prop() value: DBTextareaProps[\"value\"];\n @Prop() validMessage: DBTextareaProps[\"validMessage\"];\n @Prop() validation: DBTextareaProps[\"validation\"];\n @Prop() required: DBTextareaProps[\"required\"];\n @Prop() minLength: DBTextareaProps[\"minLength\"];\n @Prop() maxLength: DBTextareaProps[\"maxLength\"];\n @Event() input: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onInput\"]>[number]\n > | void;\n @Event() change: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBTextareaProps>[\"onFocus\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBTextareaProps[\"className\"];\n @Prop() variant: DBTextareaProps[\"variant\"];\n @Prop() showRequiredAsterisk: DBTextareaProps[\"showRequiredAsterisk\"];\n @Prop() showLabel: DBTextareaProps[\"showLabel\"];\n @Prop() label: DBTextareaProps[\"label\"];\n @Prop() fieldSizing: DBTextareaProps[\"fieldSizing\"];\n @Prop() resize: DBTextareaProps[\"resize\"];\n @Prop() showResizer: DBTextareaProps[\"showResizer\"];\n @Prop() disabled: DBTextareaProps[\"disabled\"];\n @Prop() readOnly: DBTextareaProps[\"readOnly\"];\n @Prop() readonly: DBTextareaProps[\"readonly\"];\n @Prop() form: DBTextareaProps[\"form\"];\n @Prop() maxlength: DBTextareaProps[\"maxlength\"];\n @Prop() minlength: DBTextareaProps[\"minlength\"];\n @Prop() name: DBTextareaProps[\"name\"];\n @Prop() wrap: DBTextareaProps[\"wrap\"];\n @Prop() spellCheck: DBTextareaProps[\"spellCheck\"];\n @Prop() autocomplete: DBTextareaProps[\"autocomplete\"];\n @Prop() ariaDescribedBy: DBTextareaProps[\"ariaDescribedBy\"];\n @Prop() placeholder: DBTextareaProps[\"placeholder\"];\n @Prop() rows: DBTextareaProps[\"rows\"];\n @Prop() cols: DBTextareaProps[\"cols\"];\n @Prop() messageIcon: DBTextareaProps[\"messageIcon\"];\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _invalidMessage = undefined;\n @State() _descByIds = undefined;\n @State() _value = \"\";\n @State() _voiceOverFallback = \"\";\n\n hasValidState() {\n return !!(this.validMessage ?? this.validation === \"valid\");\n }\n handleValidation() {\n /* For a11y reasons we need to map the correct message with the textarea */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this._invalidMessage;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.hasValidState() &&\n this._ref?.validity.valid &&\n (this.required || this.minLength || this.maxLength)\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = undefined;\n }\n }\n handleInput(event: InputEvent<HTMLTextAreaElement>) {\n if (this.input) {\n this.input.emit(event);\n }\n this.handleValidation();\n }\n handleChange(event: ChangeEvent<HTMLTextAreaElement>) {\n if (this.change) {\n this.change.emit(event);\n }\n this.handleValidation();\n }\n handleBlur(event: InteractionEvent<HTMLTextAreaElement> | any) {\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLTextAreaElement> | any) {\n if (this.focus) {\n this.focus.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLTextAreaElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n }\n\n @Watch(\"_ref\")\n @Watch(\"invalidMessage\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n this.handleValidation();\n }\n }\n\n @Watch(\"_id\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n this._value = this.value;\n }\n\n @Watch(\"value\")\n watch2() {\n this.watch2Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-textarea\");\n const mId = this.id ?? `textarea-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-textarea\", this.className)}\n data-variant={this.variant}\n data-hide-asterisk={getHideProp(this.showRequiredAsterisk)}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>{this.label ?? DEFAULT_LABEL}</label>\n <textarea\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n data-field-sizing={this.fieldSizing}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n data-resize={this.resize}\n data-hide-resizer={getHideProp(this.showResizer ?? true)}\n disabled={getBoolean(this.disabled, \"disabled\")}\n required={getBoolean(this.required, \"required\")}\n readOnly={\n getBoolean(this.readOnly, \"readOnly\") ||\n getBoolean(this.readonly, \"readonly\")\n }\n form={this.form}\n maxLength={getNumber(this.maxLength, this.maxlength)}\n minLength={getNumber(this.minLength, this.minlength)}\n name={this.name}\n wrap={this.wrap}\n spellcheck={this.spellCheck}\n autocomplete={this.autocomplete}\n onInput={(event) => this.handleInput(event)}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n value={this.value ?? this._value}\n aria-describedby={this.ariaDescribedBy ?? this._descByIds}\n placeholder={this.placeholder ?? DEFAULT_PLACEHOLDER}\n rows={getNumber(this.rows, DEFAULT_ROWS)}\n cols={getNumber(this.cols)}\n ></textarea>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n {this.hasValidState() ? (\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage || DEFAULT_VALID_MESSAGE}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this._invalidMessage}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"]}
|
package/dist/collection/index.js
CHANGED
|
@@ -1,41 +1,80 @@
|
|
|
1
1
|
export * from './components/accordion';
|
|
2
2
|
export * from './components/accordion-item';
|
|
3
|
+
export * from './components/accordion-item/model';
|
|
4
|
+
export * from './components/accordion/model';
|
|
3
5
|
export * from './components/badge';
|
|
6
|
+
export * from './components/badge/model';
|
|
4
7
|
export * from './components/brand';
|
|
8
|
+
export * from './components/brand/model';
|
|
5
9
|
export * from './components/button';
|
|
10
|
+
export * from './components/button/model';
|
|
6
11
|
export * from './components/card';
|
|
12
|
+
export * from './components/card/model';
|
|
7
13
|
export * from './components/checkbox';
|
|
14
|
+
export * from './components/checkbox/model';
|
|
8
15
|
export * from './components/custom-select';
|
|
9
16
|
export * from './components/custom-select-dropdown';
|
|
17
|
+
export * from './components/custom-select-dropdown/model';
|
|
10
18
|
export * from './components/custom-select-form-field';
|
|
19
|
+
export * from './components/custom-select-form-field/model';
|
|
11
20
|
export * from './components/custom-select-list';
|
|
12
21
|
export * from './components/custom-select-list-item';
|
|
22
|
+
export * from './components/custom-select-list-item/model';
|
|
23
|
+
export * from './components/custom-select-list/model';
|
|
24
|
+
export * from './components/custom-select/model';
|
|
13
25
|
export * from './components/divider';
|
|
26
|
+
export * from './components/divider/model';
|
|
14
27
|
export * from './components/drawer';
|
|
28
|
+
export * from './components/drawer/model';
|
|
15
29
|
export * from './components/header';
|
|
30
|
+
export * from './components/header/model';
|
|
16
31
|
export * from './components/icon';
|
|
32
|
+
export * from './components/icon/model';
|
|
17
33
|
export * from './components/infotext';
|
|
34
|
+
export * from './components/infotext/model';
|
|
18
35
|
export * from './components/input';
|
|
36
|
+
export * from './components/input/model';
|
|
19
37
|
export * from './components/link';
|
|
38
|
+
export * from './components/link/model';
|
|
20
39
|
export * from './components/navigation';
|
|
21
40
|
export * from './components/navigation-item';
|
|
41
|
+
export * from './components/navigation-item/model';
|
|
42
|
+
export * from './components/navigation/model';
|
|
22
43
|
export * from './components/notification';
|
|
44
|
+
export * from './components/notification/model';
|
|
23
45
|
export * from './components/page';
|
|
46
|
+
export * from './components/page/model';
|
|
24
47
|
export * from './components/popover';
|
|
48
|
+
export * from './components/popover/model';
|
|
25
49
|
export * from './components/radio';
|
|
50
|
+
export * from './components/radio/model';
|
|
26
51
|
export * from './components/section';
|
|
52
|
+
export * from './components/section/model';
|
|
27
53
|
export * from './components/select';
|
|
54
|
+
export * from './components/select/model';
|
|
28
55
|
export * from './components/stack';
|
|
56
|
+
export * from './components/stack/model';
|
|
29
57
|
export * from './components/switch';
|
|
58
|
+
export * from './components/switch/model';
|
|
30
59
|
export * from './components/tab-item';
|
|
60
|
+
export * from './components/tab-item/model';
|
|
31
61
|
export * from './components/tab-list';
|
|
62
|
+
export * from './components/tab-list/model';
|
|
32
63
|
export * from './components/tab-panel';
|
|
64
|
+
export * from './components/tab-panel/model';
|
|
33
65
|
export * from './components/tabs';
|
|
66
|
+
export * from './components/tabs/model';
|
|
34
67
|
export * from './components/tag';
|
|
68
|
+
export * from './components/tag/model';
|
|
35
69
|
export * from './components/textarea';
|
|
70
|
+
export * from './components/textarea/model';
|
|
36
71
|
export * from './components/tooltip';
|
|
72
|
+
export * from './components/tooltip/model';
|
|
37
73
|
export * from './shared/constants';
|
|
38
74
|
export * from './shared/model';
|
|
75
|
+
export * from './utils/document-click-listener';
|
|
76
|
+
export * from './utils/document-scroll-listener';
|
|
77
|
+
export * from './utils/floating-components';
|
|
39
78
|
export * from './utils/index';
|
|
40
79
|
export * from './utils/navigation';
|
|
41
80
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAA","sourcesContent":["export * from './components/accordion';\nexport * from './components/accordion-item';\nexport * from './components/badge';\nexport * from './components/brand';\nexport * from './components/button';\nexport * from './components/card';\nexport * from './components/checkbox';\nexport * from './components/custom-select';\nexport * from './components/custom-select-dropdown';\nexport * from './components/custom-select-form-field';\nexport * from './components/custom-select-list';\nexport * from './components/custom-select-list-item';\nexport * from './components/divider';\nexport * from './components/drawer';\nexport * from './components/header';\nexport * from './components/icon';\nexport * from './components/infotext';\nexport * from './components/input';\nexport * from './components/link';\nexport * from './components/navigation';\nexport * from './components/navigation-item';\nexport * from './components/notification';\nexport * from './components/page';\nexport * from './components/popover';\nexport * from './components/radio';\nexport * from './components/section';\nexport * from './components/select';\nexport * from './components/stack';\nexport * from './components/switch';\nexport * from './components/tab-item';\nexport * from './components/tab-list';\nexport * from './components/tab-panel';\nexport * from './components/tabs';\nexport * from './components/tag';\nexport * from './components/textarea';\nexport * from './components/tooltip';\nexport * from './shared/constants';\nexport * from './shared/model';\nexport * from './utils/index';\nexport * from './utils/navigation'"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAA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AAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAA","sourcesContent":["export * from './components/accordion';\nexport * from './components/accordion-item';\nexport * from './components/accordion-item/model';\nexport * from './components/accordion/model';\nexport * from './components/badge';\nexport * from './components/badge/model';\nexport * from './components/brand';\nexport * from './components/brand/model';\nexport * from './components/button';\nexport * from './components/button/model';\nexport * from './components/card';\nexport * from './components/card/model';\nexport * from './components/checkbox';\nexport * from './components/checkbox/model';\nexport * from './components/custom-select';\nexport * from './components/custom-select-dropdown';\nexport * from './components/custom-select-dropdown/model';\nexport * from './components/custom-select-form-field';\nexport * from './components/custom-select-form-field/model';\nexport * from './components/custom-select-list';\nexport * from './components/custom-select-list-item';\nexport * from './components/custom-select-list-item/model';\nexport * from './components/custom-select-list/model';\nexport * from './components/custom-select/model';\nexport * from './components/divider';\nexport * from './components/divider/model';\nexport * from './components/drawer';\nexport * from './components/drawer/model';\nexport * from './components/header';\nexport * from './components/header/model';\nexport * from './components/icon';\nexport * from './components/icon/model';\nexport * from './components/infotext';\nexport * from './components/infotext/model';\nexport * from './components/input';\nexport * from './components/input/model';\nexport * from './components/link';\nexport * from './components/link/model';\nexport * from './components/navigation';\nexport * from './components/navigation-item';\nexport * from './components/navigation-item/model';\nexport * from './components/navigation/model';\nexport * from './components/notification';\nexport * from './components/notification/model';\nexport * from './components/page';\nexport * from './components/page/model';\nexport * from './components/popover';\nexport * from './components/popover/model';\nexport * from './components/radio';\nexport * from './components/radio/model';\nexport * from './components/section';\nexport * from './components/section/model';\nexport * from './components/select';\nexport * from './components/select/model';\nexport * from './components/stack';\nexport * from './components/stack/model';\nexport * from './components/switch';\nexport * from './components/switch/model';\nexport * from './components/tab-item';\nexport * from './components/tab-item/model';\nexport * from './components/tab-list';\nexport * from './components/tab-list/model';\nexport * from './components/tab-panel';\nexport * from './components/tab-panel/model';\nexport * from './components/tabs';\nexport * from './components/tabs/model';\nexport * from './components/tag';\nexport * from './components/tag/model';\nexport * from './components/textarea';\nexport * from './components/textarea/model';\nexport * from './components/tooltip';\nexport * from './components/tooltip/model';\nexport * from './shared/constants';\nexport * from './shared/model';\nexport * from './utils/document-click-listener';\nexport * from './utils/document-scroll-listener';\nexport * from './utils/floating-components';\nexport * from './utils/index';\nexport * from './utils/navigation'"]}
|
|
@@ -2823,10 +2823,7 @@
|
|
|
2823
2823
|
{
|
|
2824
2824
|
"kind": "field",
|
|
2825
2825
|
"name": "_descByIds",
|
|
2826
|
-
"
|
|
2827
|
-
"text": "string"
|
|
2828
|
-
},
|
|
2829
|
-
"default": "\"\""
|
|
2826
|
+
"default": "undefined"
|
|
2830
2827
|
},
|
|
2831
2828
|
{
|
|
2832
2829
|
"kind": "field",
|
|
@@ -4943,18 +4940,12 @@
|
|
|
4943
4940
|
{
|
|
4944
4941
|
"kind": "field",
|
|
4945
4942
|
"name": "_descByIds",
|
|
4946
|
-
"
|
|
4947
|
-
"text": "string"
|
|
4948
|
-
},
|
|
4949
|
-
"default": "\"\""
|
|
4943
|
+
"default": "undefined"
|
|
4950
4944
|
},
|
|
4951
4945
|
{
|
|
4952
4946
|
"kind": "field",
|
|
4953
4947
|
"name": "_value",
|
|
4954
|
-
"
|
|
4955
|
-
"text": "string"
|
|
4956
|
-
},
|
|
4957
|
-
"default": "\"\""
|
|
4948
|
+
"default": "undefined"
|
|
4958
4949
|
},
|
|
4959
4950
|
{
|
|
4960
4951
|
"kind": "field",
|
|
@@ -6965,6 +6956,20 @@
|
|
|
6965
6956
|
"resolvedType": "boolean"
|
|
6966
6957
|
}
|
|
6967
6958
|
},
|
|
6959
|
+
{
|
|
6960
|
+
"kind": "field",
|
|
6961
|
+
"name": "showLoading",
|
|
6962
|
+
"type": {
|
|
6963
|
+
"text": "boolean"
|
|
6964
|
+
},
|
|
6965
|
+
"description": "Dropdown - enable loading infotext and spinner",
|
|
6966
|
+
"resolvedValue": {
|
|
6967
|
+
"name": "showLoading",
|
|
6968
|
+
"type": "boolean",
|
|
6969
|
+
"comment": "Dropdown - enable loading infotext and spinner",
|
|
6970
|
+
"resolvedType": "boolean"
|
|
6971
|
+
}
|
|
6972
|
+
},
|
|
6968
6973
|
{
|
|
6969
6974
|
"kind": "field",
|
|
6970
6975
|
"name": "multiple",
|
|
@@ -7461,20 +7466,6 @@
|
|
|
7461
7466
|
"resolvedType": "string"
|
|
7462
7467
|
}
|
|
7463
7468
|
},
|
|
7464
|
-
{
|
|
7465
|
-
"kind": "field",
|
|
7466
|
-
"name": "showLoading",
|
|
7467
|
-
"type": {
|
|
7468
|
-
"text": "boolean"
|
|
7469
|
-
},
|
|
7470
|
-
"description": "Dropdown - enable loading infotext and spinner",
|
|
7471
|
-
"resolvedValue": {
|
|
7472
|
-
"name": "showLoading",
|
|
7473
|
-
"type": "boolean",
|
|
7474
|
-
"comment": "Dropdown - enable loading infotext and spinner",
|
|
7475
|
-
"resolvedType": "boolean"
|
|
7476
|
-
}
|
|
7477
|
-
},
|
|
7478
7469
|
{
|
|
7479
7470
|
"kind": "field",
|
|
7480
7471
|
"name": "ariaListLabel",
|
|
@@ -7491,29 +7482,29 @@
|
|
|
7491
7482
|
},
|
|
7492
7483
|
{
|
|
7493
7484
|
"kind": "field",
|
|
7494
|
-
"name": "
|
|
7485
|
+
"name": "loadingText",
|
|
7495
7486
|
"type": {
|
|
7496
7487
|
"text": "string"
|
|
7497
7488
|
},
|
|
7498
|
-
"description": "Dropdown - hint if
|
|
7489
|
+
"description": "Dropdown - hint if data has to be loaded",
|
|
7499
7490
|
"resolvedValue": {
|
|
7500
|
-
"name": "
|
|
7491
|
+
"name": "loadingText",
|
|
7501
7492
|
"type": "string",
|
|
7502
|
-
"comment": "Dropdown - hint if
|
|
7493
|
+
"comment": "Dropdown - hint if data has to be loaded",
|
|
7503
7494
|
"resolvedType": "string"
|
|
7504
7495
|
}
|
|
7505
7496
|
},
|
|
7506
7497
|
{
|
|
7507
7498
|
"kind": "field",
|
|
7508
|
-
"name": "
|
|
7499
|
+
"name": "noResultsText",
|
|
7509
7500
|
"type": {
|
|
7510
7501
|
"text": "string"
|
|
7511
7502
|
},
|
|
7512
|
-
"description": "Dropdown - hint if
|
|
7503
|
+
"description": "Dropdown - hint if there are no options",
|
|
7513
7504
|
"resolvedValue": {
|
|
7514
|
-
"name": "
|
|
7505
|
+
"name": "noResultsText",
|
|
7515
7506
|
"type": "string",
|
|
7516
|
-
"comment": "Dropdown - hint if
|
|
7507
|
+
"comment": "Dropdown - hint if there are no options",
|
|
7517
7508
|
"resolvedType": "string"
|
|
7518
7509
|
}
|
|
7519
7510
|
},
|
|
@@ -7649,11 +7640,16 @@
|
|
|
7649
7640
|
},
|
|
7650
7641
|
{
|
|
7651
7642
|
"kind": "field",
|
|
7652
|
-
"name": "
|
|
7643
|
+
"name": "_userInteraction",
|
|
7653
7644
|
"type": {
|
|
7654
|
-
"text": "
|
|
7645
|
+
"text": "boolean"
|
|
7655
7646
|
},
|
|
7656
|
-
"default": "
|
|
7647
|
+
"default": "false"
|
|
7648
|
+
},
|
|
7649
|
+
{
|
|
7650
|
+
"kind": "field",
|
|
7651
|
+
"name": "_descByIds",
|
|
7652
|
+
"default": "undefined"
|
|
7657
7653
|
},
|
|
7658
7654
|
{
|
|
7659
7655
|
"kind": "field",
|
|
@@ -8287,6 +8283,20 @@
|
|
|
8287
8283
|
"resolvedType": "boolean"
|
|
8288
8284
|
}
|
|
8289
8285
|
},
|
|
8286
|
+
{
|
|
8287
|
+
"name": "show-loading",
|
|
8288
|
+
"fieldName": "showLoading",
|
|
8289
|
+
"type": {
|
|
8290
|
+
"text": "boolean"
|
|
8291
|
+
},
|
|
8292
|
+
"description": "Dropdown - enable loading infotext and spinner",
|
|
8293
|
+
"resolvedValue": {
|
|
8294
|
+
"name": "showLoading",
|
|
8295
|
+
"type": "boolean",
|
|
8296
|
+
"comment": "Dropdown - enable loading infotext and spinner",
|
|
8297
|
+
"resolvedType": "boolean"
|
|
8298
|
+
}
|
|
8299
|
+
},
|
|
8290
8300
|
{
|
|
8291
8301
|
"name": "multiple",
|
|
8292
8302
|
"fieldName": "multiple",
|
|
@@ -8783,20 +8793,6 @@
|
|
|
8783
8793
|
"resolvedType": "string"
|
|
8784
8794
|
}
|
|
8785
8795
|
},
|
|
8786
|
-
{
|
|
8787
|
-
"name": "show-loading",
|
|
8788
|
-
"fieldName": "showLoading",
|
|
8789
|
-
"type": {
|
|
8790
|
-
"text": "boolean"
|
|
8791
|
-
},
|
|
8792
|
-
"description": "Dropdown - enable loading infotext and spinner",
|
|
8793
|
-
"resolvedValue": {
|
|
8794
|
-
"name": "showLoading",
|
|
8795
|
-
"type": "boolean",
|
|
8796
|
-
"comment": "Dropdown - enable loading infotext and spinner",
|
|
8797
|
-
"resolvedType": "boolean"
|
|
8798
|
-
}
|
|
8799
|
-
},
|
|
8800
8796
|
{
|
|
8801
8797
|
"name": "aria-list-label",
|
|
8802
8798
|
"fieldName": "ariaListLabel",
|
|
@@ -8812,30 +8808,30 @@
|
|
|
8812
8808
|
}
|
|
8813
8809
|
},
|
|
8814
8810
|
{
|
|
8815
|
-
"name": "
|
|
8816
|
-
"fieldName": "
|
|
8811
|
+
"name": "loading-text",
|
|
8812
|
+
"fieldName": "loadingText",
|
|
8817
8813
|
"type": {
|
|
8818
8814
|
"text": "string"
|
|
8819
8815
|
},
|
|
8820
|
-
"description": "Dropdown - hint if
|
|
8816
|
+
"description": "Dropdown - hint if data has to be loaded",
|
|
8821
8817
|
"resolvedValue": {
|
|
8822
|
-
"name": "
|
|
8818
|
+
"name": "loadingText",
|
|
8823
8819
|
"type": "string",
|
|
8824
|
-
"comment": "Dropdown - hint if
|
|
8820
|
+
"comment": "Dropdown - hint if data has to be loaded",
|
|
8825
8821
|
"resolvedType": "string"
|
|
8826
8822
|
}
|
|
8827
8823
|
},
|
|
8828
8824
|
{
|
|
8829
|
-
"name": "
|
|
8830
|
-
"fieldName": "
|
|
8825
|
+
"name": "no-results-text",
|
|
8826
|
+
"fieldName": "noResultsText",
|
|
8831
8827
|
"type": {
|
|
8832
8828
|
"text": "string"
|
|
8833
8829
|
},
|
|
8834
|
-
"description": "Dropdown - hint if
|
|
8830
|
+
"description": "Dropdown - hint if there are no options",
|
|
8835
8831
|
"resolvedValue": {
|
|
8836
|
-
"name": "
|
|
8832
|
+
"name": "noResultsText",
|
|
8837
8833
|
"type": "string",
|
|
8838
|
-
"comment": "Dropdown - hint if
|
|
8834
|
+
"comment": "Dropdown - hint if there are no options",
|
|
8839
8835
|
"resolvedType": "string"
|
|
8840
8836
|
}
|
|
8841
8837
|
},
|
|
@@ -9913,20 +9909,6 @@
|
|
|
9913
9909
|
},
|
|
9914
9910
|
"privacy": "private"
|
|
9915
9911
|
},
|
|
9916
|
-
{
|
|
9917
|
-
"kind": "field",
|
|
9918
|
-
"name": "id",
|
|
9919
|
-
"type": {
|
|
9920
|
-
"text": "string"
|
|
9921
|
-
},
|
|
9922
|
-
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
9923
|
-
"resolvedValue": {
|
|
9924
|
-
"name": "id",
|
|
9925
|
-
"type": "string",
|
|
9926
|
-
"comment": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
9927
|
-
"resolvedType": "string"
|
|
9928
|
-
}
|
|
9929
|
-
},
|
|
9930
9912
|
{
|
|
9931
9913
|
"kind": "field",
|
|
9932
9914
|
"name": "forceMobile",
|
|
@@ -9981,6 +9963,20 @@
|
|
|
9981
9963
|
"resolvedType": "string"
|
|
9982
9964
|
}
|
|
9983
9965
|
},
|
|
9966
|
+
{
|
|
9967
|
+
"kind": "field",
|
|
9968
|
+
"name": "id",
|
|
9969
|
+
"type": {
|
|
9970
|
+
"text": "string"
|
|
9971
|
+
},
|
|
9972
|
+
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
9973
|
+
"resolvedValue": {
|
|
9974
|
+
"name": "id",
|
|
9975
|
+
"type": "string",
|
|
9976
|
+
"comment": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
9977
|
+
"resolvedType": "string"
|
|
9978
|
+
}
|
|
9979
|
+
},
|
|
9984
9980
|
{
|
|
9985
9981
|
"kind": "field",
|
|
9986
9982
|
"name": "width",
|
|
@@ -10009,11 +10005,6 @@
|
|
|
10009
10005
|
"resolvedType": "string"
|
|
10010
10006
|
}
|
|
10011
10007
|
},
|
|
10012
|
-
{
|
|
10013
|
-
"kind": "field",
|
|
10014
|
-
"name": "_id",
|
|
10015
|
-
"default": "DEFAULT_ID"
|
|
10016
|
-
},
|
|
10017
10008
|
{
|
|
10018
10009
|
"kind": "field",
|
|
10019
10010
|
"name": "initialized",
|
|
@@ -10091,20 +10082,6 @@
|
|
|
10091
10082
|
}
|
|
10092
10083
|
],
|
|
10093
10084
|
"attributes": [
|
|
10094
|
-
{
|
|
10095
|
-
"name": "id",
|
|
10096
|
-
"fieldName": "id",
|
|
10097
|
-
"type": {
|
|
10098
|
-
"text": "string"
|
|
10099
|
-
},
|
|
10100
|
-
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
10101
|
-
"resolvedValue": {
|
|
10102
|
-
"name": "id",
|
|
10103
|
-
"type": "string",
|
|
10104
|
-
"comment": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
10105
|
-
"resolvedType": "string"
|
|
10106
|
-
}
|
|
10107
|
-
},
|
|
10108
10085
|
{
|
|
10109
10086
|
"name": "force-mobile",
|
|
10110
10087
|
"fieldName": "forceMobile",
|
|
@@ -10159,6 +10136,20 @@
|
|
|
10159
10136
|
"resolvedType": "string"
|
|
10160
10137
|
}
|
|
10161
10138
|
},
|
|
10139
|
+
{
|
|
10140
|
+
"name": "id",
|
|
10141
|
+
"fieldName": "id",
|
|
10142
|
+
"type": {
|
|
10143
|
+
"text": "string"
|
|
10144
|
+
},
|
|
10145
|
+
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
10146
|
+
"resolvedValue": {
|
|
10147
|
+
"name": "id",
|
|
10148
|
+
"type": "string",
|
|
10149
|
+
"comment": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
10150
|
+
"resolvedType": "string"
|
|
10151
|
+
}
|
|
10152
|
+
},
|
|
10162
10153
|
{
|
|
10163
10154
|
"name": "width",
|
|
10164
10155
|
"fieldName": "width",
|
|
@@ -14225,10 +14216,7 @@
|
|
|
14225
14216
|
{
|
|
14226
14217
|
"kind": "field",
|
|
14227
14218
|
"name": "_descByIds",
|
|
14228
|
-
"
|
|
14229
|
-
"text": "string"
|
|
14230
|
-
},
|
|
14231
|
-
"default": "\"\""
|
|
14219
|
+
"default": "undefined"
|
|
14232
14220
|
},
|
|
14233
14221
|
{
|
|
14234
14222
|
"kind": "field",
|
|
@@ -17895,10 +17883,7 @@
|
|
|
17895
17883
|
{
|
|
17896
17884
|
"kind": "field",
|
|
17897
17885
|
"name": "_descByIds",
|
|
17898
|
-
"
|
|
17899
|
-
"text": "string"
|
|
17900
|
-
},
|
|
17901
|
-
"default": "\"\""
|
|
17886
|
+
"default": "undefined"
|
|
17902
17887
|
},
|
|
17903
17888
|
{
|
|
17904
17889
|
"kind": "field",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-checkbox.entry.esm.js","sources":["src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {\n DEFAULT_INVALID_MESSAGE,\n DEFAULT_INVALID_MESSAGE_ID_SUFFIX,\n DEFAULT_MESSAGE_ID_SUFFIX,\n DEFAULT_VALID_MESSAGE,\n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n cls,\n delay,\n getBoolean,\n getHideProp,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport { DBCheckboxProps, DBCheckboxState } from \"./model\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-checkbox\",\n})\nexport class DBCheckbox {\n private _ref!: HTMLInputElement | any;\n @Prop() id: DBCheckboxProps[\"id\"];\n @Prop() invalidMessage: DBCheckboxProps[\"invalidMessage\"];\n @Prop() message: DBCheckboxProps[\"message\"];\n @Prop() showMessage: DBCheckboxProps[\"showMessage\"];\n @Prop() indeterminate: DBCheckboxProps[\"indeterminate\"];\n @Prop() checked: DBCheckboxProps[\"checked\"];\n @Prop() validMessage: DBCheckboxProps[\"validMessage\"];\n @Prop() validation: DBCheckboxProps[\"validation\"];\n @Prop() required: DBCheckboxProps[\"required\"];\n @Event() change: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onFocus\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBCheckboxProps[\"className\"];\n @Prop() size: DBCheckboxProps[\"size\"];\n @Prop() showRequiredAsterisk: DBCheckboxProps[\"showRequiredAsterisk\"];\n @Prop() showLabel: DBCheckboxProps[\"showLabel\"];\n @Prop() name: DBCheckboxProps[\"name\"];\n @Prop() disabled: DBCheckboxProps[\"disabled\"];\n @Prop() value: DBCheckboxProps[\"value\"];\n @Prop() ariaDescribedBy: DBCheckboxProps[\"ariaDescribedBy\"];\n @Prop() label: DBCheckboxProps[\"label\"];\n @Prop() messageIcon: DBCheckboxProps[\"messageIcon\"];\n @State() initialized = false;\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _invalidMessage = undefined;\n @State() _descByIds = \"\";\n @State() _voiceOverFallback = \"\";\n\n hasValidState() {\n return !!(this.validMessage ?? this.validation === \"valid\");\n }\n handleValidation() {\n /* For a11y reasons we need to map the correct message with the checkbox */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this._invalidMessage;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.hasValidState() &&\n this._ref?.validity.valid &&\n this.required\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = \"\";\n }\n }\n handleChange(event: ChangeEvent<HTMLInputElement>) {\n if (this.change) {\n this.change.emit(event);\n }\n this.handleValidation();\n }\n handleBlur(event: InteractionEvent<HTMLInputElement> | any) {\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLInputElement> | any) {\n if (this.focus) {\n this.focus.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLInputElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n }\n\n @Watch(\"_ref\")\n @Watch(\"invalidMessage\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n }\n }\n\n @Watch(\"_id\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n if (this._ref) {\n if (this.indeterminate !== undefined) {\n // When indeterminate is set, the value of the checked prop only impacts the form submitted values.\n // It has no accessibility or UX implications. (https://mui.com/material-ui/react-checkbox/)\n this._ref.indeterminate = !!getBoolean(this.indeterminate);\n }\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"_ref\")\n @Watch(\"indeterminate\")\n watch2() {\n this.watch2Fn();\n }\n\n watch3Fn() {\n if (this.initialized && this._ref) {\n // in angular this must be set via native element\n if (this.checked != undefined) {\n this._ref.checked = !!getBoolean(this.checked);\n }\n this.initialized = false;\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"_ref\")\n @Watch(\"checked\")\n watch3() {\n this.watch3Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-checkbox\");\n this.initialized = true;\n const mId = this.id ?? `checkbox-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n this.watch3Fn();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-checkbox\", this.className)}\n data-size={this.size}\n data-hide-asterisk={getHideProp(this.showRequiredAsterisk)}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>\n <input\n type=\"checkbox\"\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n name={this.name}\n checked={getBoolean(this.checked, \"checked\")}\n disabled={getBoolean(this.disabled, \"disabled\")}\n value={this.value}\n required={getBoolean(this.required, \"required\")}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n aria-describedby={this.ariaDescribedBy ?? this._descByIds}\n />\n {this.label ? this.label : <slot></slot>}\n </label>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n {this.hasValidState() ? (\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage || DEFAULT_VALID_MESSAGE}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this._invalidMessage}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"],"names":[],"mappings":";;;;MA2Ca,UAAU,GAAA,MAAA;AAHtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AAiCU,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AACnB,QAAA,IAAG,CAAA,GAAA,GAAG,SAAS;AACf,QAAA,IAAU,CAAA,UAAA,GAAG,SAAS;AACtB,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAiB,CAAA,iBAAA,GAAG,SAAS;AAC7B,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAU,CAAA,UAAA,GAAG,EAAE;AACf,QAAA,IAAkB,CAAA,kBAAA,GAA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AI,EAAC,QAAQ,EAAA,EAC5C,IAAI,CAAC,kBAAkB,CACnB,CACH;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"db-checkbox.entry.esm.js","sources":["src/components/checkbox/checkbox.tsx"],"sourcesContent":["import {\n DEFAULT_INVALID_MESSAGE,\n DEFAULT_INVALID_MESSAGE_ID_SUFFIX,\n DEFAULT_MESSAGE_ID_SUFFIX,\n DEFAULT_VALID_MESSAGE,\n DEFAULT_VALID_MESSAGE_ID_SUFFIX,\n} from \"../../shared/constants\";\nimport { ChangeEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n cls,\n delay,\n getBoolean,\n getHideProp,\n hasVoiceOver,\n stringPropVisible,\n uuid,\n} from \"../../utils\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\nimport { DBInfotext } from \"../infotext/infotext\";\nimport { DBCheckboxProps, DBCheckboxState } from \"./model\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-checkbox\",\n})\nexport class DBCheckbox {\n private _ref!: HTMLInputElement | any;\n @Prop() id: DBCheckboxProps[\"id\"];\n @Prop() invalidMessage: DBCheckboxProps[\"invalidMessage\"];\n @Prop() message: DBCheckboxProps[\"message\"];\n @Prop() showMessage: DBCheckboxProps[\"showMessage\"];\n @Prop() indeterminate: DBCheckboxProps[\"indeterminate\"];\n @Prop() checked: DBCheckboxProps[\"checked\"];\n @Prop() validMessage: DBCheckboxProps[\"validMessage\"];\n @Prop() validation: DBCheckboxProps[\"validation\"];\n @Prop() required: DBCheckboxProps[\"required\"];\n @Event() change: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBCheckboxProps>[\"onFocus\"]>[number]\n > | void;\n @Prop({attribute: \"classname\"}) className: DBCheckboxProps[\"className\"];\n @Prop() size: DBCheckboxProps[\"size\"];\n @Prop() showRequiredAsterisk: DBCheckboxProps[\"showRequiredAsterisk\"];\n @Prop() showLabel: DBCheckboxProps[\"showLabel\"];\n @Prop() name: DBCheckboxProps[\"name\"];\n @Prop() disabled: DBCheckboxProps[\"disabled\"];\n @Prop() value: DBCheckboxProps[\"value\"];\n @Prop() ariaDescribedBy: DBCheckboxProps[\"ariaDescribedBy\"];\n @Prop() label: DBCheckboxProps[\"label\"];\n @Prop() messageIcon: DBCheckboxProps[\"messageIcon\"];\n @State() initialized = false;\n @State() _id = undefined;\n @State() _messageId = undefined;\n @State() _validMessageId = undefined;\n @State() _invalidMessageId = undefined;\n @State() _invalidMessage = undefined;\n @State() _descByIds = undefined;\n @State() _voiceOverFallback = \"\";\n\n hasValidState() {\n return !!(this.validMessage ?? this.validation === \"valid\");\n }\n handleValidation() {\n /* For a11y reasons we need to map the correct message with the checkbox */\n if (!this._ref?.validity.valid || this.validation === \"invalid\") {\n this._descByIds = this._invalidMessageId;\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this._invalidMessage;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (\n this.hasValidState() &&\n this._ref?.validity.valid &&\n this.required\n ) {\n this._descByIds = this._validMessageId;\n if (hasVoiceOver()) {\n this._voiceOverFallback = this.validMessage ?? DEFAULT_VALID_MESSAGE;\n delay(() => (this._voiceOverFallback = \"\"), 1000);\n }\n } else if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = this._messageId;\n } else {\n this._descByIds = undefined;\n }\n }\n handleChange(event: ChangeEvent<HTMLInputElement>) {\n if (this.change) {\n this.change.emit(event);\n }\n this.handleValidation();\n }\n handleBlur(event: InteractionEvent<HTMLInputElement> | any) {\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLInputElement> | any) {\n if (this.focus) {\n this.focus.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLInputElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n this._invalidMessage =\n this.invalidMessage ||\n this._ref?.validationMessage ||\n DEFAULT_INVALID_MESSAGE;\n }\n\n @Watch(\"_ref\")\n @Watch(\"invalidMessage\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this._id) {\n const messageId = this._id + DEFAULT_MESSAGE_ID_SUFFIX;\n this._messageId = messageId;\n this._validMessageId = this._id + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = this._id + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n if (stringPropVisible(this.message, this.showMessage)) {\n this._descByIds = messageId;\n }\n this.handleValidation();\n }\n }\n\n @Watch(\"_id\")\n watch1() {\n this.watch1Fn();\n }\n\n watch2Fn() {\n if (this._ref) {\n if (this.indeterminate !== undefined) {\n // When indeterminate is set, the value of the checked prop only impacts the form submitted values.\n // It has no accessibility or UX implications. (https://mui.com/material-ui/react-checkbox/)\n this._ref.indeterminate = !!getBoolean(this.indeterminate);\n }\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"_ref\")\n @Watch(\"indeterminate\")\n watch2() {\n this.watch2Fn();\n }\n\n watch3Fn() {\n if (this.initialized && this._ref) {\n // in angular this must be set via native element\n if (this.checked != undefined) {\n this._ref.checked = !!getBoolean(this.checked);\n }\n this.initialized = false;\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"_ref\")\n @Watch(\"checked\")\n watch3() {\n this.watch3Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-checkbox\");\n this.initialized = true;\n const mId = this.id ?? `checkbox-${uuid()}`;\n this._id = mId;\n this._messageId = mId + DEFAULT_MESSAGE_ID_SUFFIX;\n this._validMessageId = mId + DEFAULT_VALID_MESSAGE_ID_SUFFIX;\n this._invalidMessageId = mId + DEFAULT_INVALID_MESSAGE_ID_SUFFIX;\n this._invalidMessage = this.invalidMessage || DEFAULT_INVALID_MESSAGE;\n this.watch0Fn();\n this.watch1Fn();\n this.watch2Fn();\n this.watch3Fn();\n }\n\n render() {\n return (\n <div\n class={cls(\"db-checkbox\", this.className)}\n data-size={this.size}\n data-hide-asterisk={getHideProp(this.showRequiredAsterisk)}\n data-hide-label={getHideProp(this.showLabel)}\n >\n <label htmlFor={this._id}>\n <input\n type=\"checkbox\"\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this._id}\n name={this.name}\n checked={getBoolean(this.checked, \"checked\")}\n disabled={getBoolean(this.disabled, \"disabled\")}\n value={this.value}\n required={getBoolean(this.required, \"required\")}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n aria-describedby={this.ariaDescribedBy ?? this._descByIds}\n />\n {this.label ? this.label : <slot></slot>}\n </label>\n {stringPropVisible(this.message, this.showMessage) ? (\n <db-infotext\n size=\"small\"\n icon={this.messageIcon}\n id={this._messageId}\n >\n {this.message}\n </db-infotext>\n ) : null}\n {this.hasValidState() ? (\n <db-infotext\n size=\"small\"\n semantic=\"successful\"\n id={this._validMessageId}\n >\n {this.validMessage || DEFAULT_VALID_MESSAGE}\n </db-infotext>\n ) : null}\n <db-infotext\n size=\"small\"\n semantic=\"critical\"\n id={this._invalidMessageId}\n >\n {this._invalidMessage}\n </db-infotext>\n <span data-visually-hidden=\"true\" role=\"status\">\n {this._voiceOverFallback}\n </span>\n </div>\n );\n }\n}\n"],"names":[],"mappings":";;;;MA2Ca,UAAU,GAAA,MAAA;AAHtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AAiCU,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AACnB,QAAA,IAAG,CAAA,GAAA,GAAG,SAAS;AACf,QAAA,IAAU,CAAA,UAAA,GAAG,SAAS;AACtB,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAiB,CAAA,iBAAA,GAAG,SAAS;AAC7B,QAAA,IAAe,CAAA,eAAA,GAAG,SAAS;AAC3B,QAAA,IAAU,CAAA,UAAA,GAAG,SAAS;AACtB,QAAA,IAAkB,CAAA,kBAAA,GAAG,EAAE;AAsOjC;IApOC,aAAa,GAAA;;AACX,QAAA,OAAO,CAAC,EAAE,CAAA,EAAA,GAAA,IAAI,CAAC,YAAY,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,CAAC,UAAU,KAAK,OAAO,CAAC;;IAE7D,gBAAgB,GAAA;;;AAEd,QAAA,IAAI,EAAC,CAAA,EAAA,GAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,CAAC,KAAK,CAAA,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;AAC/D,YAAA,IAAI,CAAC,UA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