@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.4
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/.turbo/cache/013a48308b893dac-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
- package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
- package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
- package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
- package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
- package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
- package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
- package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
- package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
- package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
- package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
- package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
- package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
- package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
- package/.turbo/cache/3e12285c614db539-meta.json +1 -1
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
- package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
- package/.turbo/cache/691a74627ec57993-meta.json +1 -1
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
- package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
- package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
- package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
- package/.turbo/cache/786a822763403879-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
- package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
- package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
- package/.turbo/cache/80a13352066a9801-meta.json +1 -1
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
- package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
- package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
- package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
- package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
- package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
- package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
- package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +1 -1
- package/.turbo/cache/d61543843c932504.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
- package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
- package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
- package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
- package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
- package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
- package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
- package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
- package/CHANGELOG.md +18 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/demo/api.min.js +407 -113
- package/components/combobox/demo/index.min.js +407 -113
- package/components/combobox/dist/index.js +407 -113
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/demo/api.min.js +407 -113
- package/components/datepicker/demo/index.min.js +407 -113
- package/components/datepicker/dist/index.js +407 -113
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +166 -42
- package/components/dropdown/demo/index.min.js +166 -42
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +166 -42
- package/components/dropdown/src/auro-dropdown.js +154 -39
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -0
- package/components/dropdown/src/styles/style.scss +5 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/demo/api.md +37 -35
- package/components/input/demo/api.min.js +241 -71
- package/components/input/demo/index.min.js +241 -71
- package/components/input/dist/base-input.d.ts +157 -79
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +241 -71
- package/components/input/src/base-input.js +241 -71
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/select/.turbo/turbo-build.log +7 -9
- package/components/select/demo/api.md +39 -100
- package/components/select/demo/api.min.js +292 -169
- package/components/select/demo/index.md +100 -43
- package/components/select/demo/index.min.js +292 -169
- package/components/select/dist/auro-select.d.ts +63 -50
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +287 -151
- package/components/select/src/auro-select.js +102 -102
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +1 -1
- package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
- package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
- package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
- package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
- package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
- package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
- package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
|
@@ -12846,7 +12846,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12846
12846
|
|
|
12847
12847
|
var iconVersion$1 = '6.1.2';
|
|
12848
12848
|
|
|
12849
|
-
var styleCss$1$1 = i$3$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
12849
|
+
var styleCss$1$1 = i$3$1`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
12850
12850
|
|
|
12851
12851
|
var colorCss$1$1 = i$3$1`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);outline:1px solid var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}.helpText{color:var(--ds-auro-dropdown-help-text-color)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-help-text-color: var(--ds-color-text-error-default, #cc1816);--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
|
|
12852
12852
|
|
|
@@ -12870,9 +12870,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
12870
12870
|
];
|
|
12871
12871
|
|
|
12872
12872
|
/**
|
|
12873
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
12874
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
12875
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
12876
12873
|
* @prop { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
12877
12874
|
* @csspart bibContainer - Apply css to the bib container.
|
|
12878
12875
|
*/
|
|
@@ -12898,14 +12895,26 @@ class AuroDropdownBib extends r$5 {
|
|
|
12898
12895
|
|
|
12899
12896
|
static get properties() {
|
|
12900
12897
|
return {
|
|
12898
|
+
|
|
12899
|
+
/**
|
|
12900
|
+
* If declared, will apply all styles for the common theme.
|
|
12901
|
+
*/
|
|
12901
12902
|
common: {
|
|
12902
12903
|
type: Boolean,
|
|
12903
12904
|
reflect: true
|
|
12904
12905
|
},
|
|
12906
|
+
|
|
12907
|
+
/**
|
|
12908
|
+
* If declared, will apply extra padding to bib content.
|
|
12909
|
+
*/
|
|
12905
12910
|
inset: {
|
|
12906
12911
|
type: Boolean,
|
|
12907
12912
|
reflect: true
|
|
12908
12913
|
},
|
|
12914
|
+
|
|
12915
|
+
/**
|
|
12916
|
+
* If declared, will apply border-radius to the bib.
|
|
12917
|
+
*/
|
|
12909
12918
|
rounded: {
|
|
12910
12919
|
type: Boolean,
|
|
12911
12920
|
reflect: true
|
|
@@ -12949,22 +12958,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
12949
12958
|
|
|
12950
12959
|
|
|
12951
12960
|
/**
|
|
12952
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
12953
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
12954
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
12955
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
12956
12961
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
12957
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
12958
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
12959
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
12960
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
12961
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
12962
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
12963
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
12964
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
12965
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
12966
|
-
* @attr { String } mobileFullscreenBreakpoint - Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
12967
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
12968
12962
|
* @slot - Default slot for the popover content.
|
|
12969
12963
|
* @slot label - Defines the content of the label.
|
|
12970
12964
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -13002,6 +12996,16 @@ class AuroDropdown extends r$5 {
|
|
|
13002
12996
|
this.tabIndex = 0;
|
|
13003
12997
|
this.noToggle = false;
|
|
13004
12998
|
|
|
12999
|
+
/**
|
|
13000
|
+
* @private
|
|
13001
|
+
*/
|
|
13002
|
+
this.hasTriggerContent = false;
|
|
13003
|
+
|
|
13004
|
+
/**
|
|
13005
|
+
* @private
|
|
13006
|
+
*/
|
|
13007
|
+
this.triggerContentSlot = undefined;
|
|
13008
|
+
|
|
13005
13009
|
/**
|
|
13006
13010
|
* @private
|
|
13007
13011
|
*/
|
|
@@ -13048,89 +13052,166 @@ class AuroDropdown extends r$5 {
|
|
|
13048
13052
|
// function to define props used within the scope of this component
|
|
13049
13053
|
static get properties() {
|
|
13050
13054
|
return {
|
|
13055
|
+
|
|
13056
|
+
/**
|
|
13057
|
+
* If declared, applies a border around the trigger slot.
|
|
13058
|
+
*/
|
|
13051
13059
|
bordered: {
|
|
13052
13060
|
type: Boolean,
|
|
13053
13061
|
reflect: true
|
|
13054
13062
|
},
|
|
13063
|
+
|
|
13064
|
+
/**
|
|
13065
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
13066
|
+
* @attr {Boolean} chevron
|
|
13067
|
+
*/
|
|
13055
13068
|
chevron: {
|
|
13056
13069
|
type: Boolean,
|
|
13057
13070
|
reflect: true
|
|
13058
13071
|
},
|
|
13059
|
-
|
|
13072
|
+
|
|
13073
|
+
/**
|
|
13074
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
13075
|
+
*/
|
|
13076
|
+
common: {
|
|
13060
13077
|
type: Boolean,
|
|
13061
13078
|
reflect: true
|
|
13062
13079
|
},
|
|
13063
|
-
|
|
13080
|
+
|
|
13081
|
+
/**
|
|
13082
|
+
* If declared, the dropdown is not interactive.
|
|
13083
|
+
*/
|
|
13084
|
+
disabled: {
|
|
13064
13085
|
type: Boolean,
|
|
13065
13086
|
reflect: true
|
|
13066
13087
|
},
|
|
13067
|
-
|
|
13088
|
+
|
|
13089
|
+
/**
|
|
13090
|
+
* @private
|
|
13091
|
+
*/
|
|
13092
|
+
dropdownWidth: {
|
|
13093
|
+
type: Number
|
|
13094
|
+
},
|
|
13095
|
+
|
|
13096
|
+
/**
|
|
13097
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
13098
|
+
*/
|
|
13099
|
+
error: {
|
|
13068
13100
|
type: Boolean,
|
|
13069
|
-
reflect: true
|
|
13101
|
+
reflect: true
|
|
13070
13102
|
},
|
|
13103
|
+
|
|
13104
|
+
/**
|
|
13105
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
13106
|
+
*/
|
|
13071
13107
|
focusShow: {
|
|
13072
13108
|
type: Boolean,
|
|
13073
13109
|
reflect: true
|
|
13074
13110
|
},
|
|
13075
|
-
|
|
13111
|
+
|
|
13112
|
+
/**
|
|
13113
|
+
* Makes the trigger to be full width of its parent container.
|
|
13114
|
+
*/
|
|
13115
|
+
fluid: {
|
|
13076
13116
|
type: Boolean,
|
|
13077
13117
|
reflect: true
|
|
13078
13118
|
},
|
|
13119
|
+
|
|
13120
|
+
/**
|
|
13121
|
+
* If declared, will apply padding around trigger slot content.
|
|
13122
|
+
*/
|
|
13079
13123
|
inset: {
|
|
13080
13124
|
type: Boolean,
|
|
13081
13125
|
reflect: true
|
|
13082
13126
|
},
|
|
13083
|
-
|
|
13127
|
+
|
|
13128
|
+
/**
|
|
13129
|
+
* If true, the dropdown bib is displayed.
|
|
13130
|
+
*/
|
|
13131
|
+
isPopoverVisible: {
|
|
13132
|
+
type: Boolean
|
|
13133
|
+
},
|
|
13134
|
+
|
|
13135
|
+
/**
|
|
13136
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
13137
|
+
*/
|
|
13138
|
+
hoverToggle: {
|
|
13084
13139
|
type: Boolean,
|
|
13085
13140
|
reflect: true
|
|
13086
13141
|
},
|
|
13087
|
-
|
|
13088
|
-
|
|
13142
|
+
|
|
13143
|
+
/**
|
|
13144
|
+
* @private
|
|
13145
|
+
*/
|
|
13146
|
+
hasTriggerContent: {
|
|
13147
|
+
type: Boolean
|
|
13148
|
+
},
|
|
13149
|
+
|
|
13150
|
+
/**
|
|
13151
|
+
* Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
|
|
13152
|
+
*/
|
|
13153
|
+
mobileFullscreenBreakpoint: {
|
|
13154
|
+
type: String,
|
|
13089
13155
|
reflect: true
|
|
13090
13156
|
},
|
|
13091
|
-
|
|
13157
|
+
|
|
13158
|
+
/**
|
|
13159
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
13160
|
+
*/
|
|
13161
|
+
matchWidth: {
|
|
13092
13162
|
type: Boolean,
|
|
13093
13163
|
reflect: true
|
|
13094
13164
|
},
|
|
13095
|
-
|
|
13165
|
+
|
|
13166
|
+
/**
|
|
13167
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
13168
|
+
*/
|
|
13169
|
+
noHideOnThisFocusLoss: {
|
|
13096
13170
|
type: Boolean,
|
|
13097
13171
|
reflect: true
|
|
13098
13172
|
},
|
|
13099
|
-
|
|
13173
|
+
|
|
13174
|
+
/**
|
|
13175
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
13176
|
+
*/
|
|
13177
|
+
noToggle: {
|
|
13100
13178
|
type: Boolean,
|
|
13101
13179
|
reflect: true
|
|
13102
13180
|
},
|
|
13103
|
-
|
|
13181
|
+
|
|
13104
13182
|
onSlotChange: {
|
|
13105
13183
|
type: Function,
|
|
13106
13184
|
reflect: false
|
|
13107
13185
|
},
|
|
13108
|
-
mobileFullscreenBreakpoint: {
|
|
13109
|
-
type: String,
|
|
13110
|
-
reflect: true,
|
|
13111
|
-
},
|
|
13112
13186
|
|
|
13113
13187
|
/**
|
|
13114
13188
|
* @private
|
|
13115
13189
|
*/
|
|
13116
|
-
|
|
13190
|
+
placement: {
|
|
13191
|
+
type: String
|
|
13192
|
+
},
|
|
13117
13193
|
|
|
13118
13194
|
/**
|
|
13119
|
-
*
|
|
13195
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
13120
13196
|
*/
|
|
13121
|
-
|
|
13197
|
+
rounded: {
|
|
13198
|
+
type: Boolean,
|
|
13199
|
+
reflect: true
|
|
13200
|
+
},
|
|
13122
13201
|
|
|
13123
13202
|
/**
|
|
13124
13203
|
* @private
|
|
13125
13204
|
*/
|
|
13126
|
-
tabIndex: {
|
|
13205
|
+
tabIndex: {
|
|
13206
|
+
type: Number
|
|
13207
|
+
}
|
|
13127
13208
|
};
|
|
13128
13209
|
}
|
|
13129
13210
|
|
|
13130
13211
|
static get styles() {
|
|
13131
13212
|
return [
|
|
13132
|
-
styleCss$1$1,
|
|
13133
13213
|
colorCss$1$1,
|
|
13214
|
+
styleCss$1$1,
|
|
13134
13215
|
tokensCss$4
|
|
13135
13216
|
];
|
|
13136
13217
|
}
|
|
@@ -13161,6 +13242,12 @@ class AuroDropdown extends r$5 {
|
|
|
13161
13242
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
13162
13243
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
13163
13244
|
}
|
|
13245
|
+
|
|
13246
|
+
// when trigger's content is changed without any attribute or node change,
|
|
13247
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
13248
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
13249
|
+
this.handleTriggerContentSlotChange();
|
|
13250
|
+
}
|
|
13164
13251
|
}
|
|
13165
13252
|
|
|
13166
13253
|
firstUpdated() {
|
|
@@ -13203,6 +13290,43 @@ class AuroDropdown extends r$5 {
|
|
|
13203
13290
|
return inCustomSlot;
|
|
13204
13291
|
}
|
|
13205
13292
|
|
|
13293
|
+
/**
|
|
13294
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
13295
|
+
*
|
|
13296
|
+
* It first updates the floater settings
|
|
13297
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
13298
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
13299
|
+
*
|
|
13300
|
+
* @private
|
|
13301
|
+
* @method handleTriggerContentSlotChange
|
|
13302
|
+
* @param {Event} event - native slotchange event
|
|
13303
|
+
* @returns {void}
|
|
13304
|
+
*/
|
|
13305
|
+
handleTriggerContentSlotChange(event) {
|
|
13306
|
+
this.floater.handleTriggerTabIndex();
|
|
13307
|
+
|
|
13308
|
+
if (event) {
|
|
13309
|
+
this.triggerNode = event.target;
|
|
13310
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
13311
|
+
}
|
|
13312
|
+
|
|
13313
|
+
if (this.triggerContentSlot) {
|
|
13314
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
13315
|
+
if (slot.textContent.trim()) {
|
|
13316
|
+
return true;
|
|
13317
|
+
}
|
|
13318
|
+
const slotInSlot = slot.querySelector('slot');
|
|
13319
|
+
if (!slotInSlot) {
|
|
13320
|
+
return false;
|
|
13321
|
+
}
|
|
13322
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
13323
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
13324
|
+
});
|
|
13325
|
+
} else {
|
|
13326
|
+
this.hasTriggerContent = false;
|
|
13327
|
+
}
|
|
13328
|
+
}
|
|
13329
|
+
|
|
13206
13330
|
/**
|
|
13207
13331
|
* Handles the default slot change event and updates the content.
|
|
13208
13332
|
*
|
|
@@ -13237,13 +13361,13 @@ class AuroDropdown extends r$5 {
|
|
|
13237
13361
|
tabindex="${this.tabIndex}"
|
|
13238
13362
|
>
|
|
13239
13363
|
<div class="triggerContentWrapper">
|
|
13240
|
-
<label class="label" id="triggerLabel">
|
|
13364
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
13241
13365
|
<slot name="label"></slot>
|
|
13242
13366
|
</label>
|
|
13243
13367
|
<div class="triggerContent">
|
|
13244
13368
|
<slot
|
|
13245
13369
|
name="trigger"
|
|
13246
|
-
@slotchange="${() =>
|
|
13370
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
13247
13371
|
</div>
|
|
13248
13372
|
</div>
|
|
13249
13373
|
${this.chevron || this.common ? u$1$1`
|
|
@@ -15348,41 +15472,8 @@ class AuroFormValidation {
|
|
|
15348
15472
|
/**
|
|
15349
15473
|
* Auro-input provides users a way to enter data into a text field.
|
|
15350
15474
|
*
|
|
15351
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
15352
|
-
* @attr {String} autocapitalize - An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
15353
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15354
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
15355
15475
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
15356
15476
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
15357
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
15358
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
15359
|
-
* @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
15360
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
15361
|
-
* @attr {String} lang - defines the language of an element.
|
|
15362
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15363
|
-
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
15364
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15365
|
-
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
15366
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
15367
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
15368
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
15369
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
15370
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
15371
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
15372
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
|
|
15373
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
15374
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
15375
|
-
* @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
|
|
15376
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
15377
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
15378
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
15379
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
15380
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
15381
|
-
* @attr {String} spellcheck - An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
15382
|
-
* @attr {String} type - Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
15383
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
15384
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
15385
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15386
15477
|
*
|
|
15387
15478
|
* @slot helptext - Sets the help text displayed below the input.
|
|
15388
15479
|
* @slot label - Sets the label text for the input.
|
|
@@ -15474,69 +15565,272 @@ class BaseInput extends r {
|
|
|
15474
15565
|
.substring(idSubstrStart, idSubstrEnd);
|
|
15475
15566
|
}
|
|
15476
15567
|
|
|
15477
|
-
// function to define props used within the scope of this
|
|
15568
|
+
// function to define props used within the scope of this componentstatic
|
|
15478
15569
|
static get properties() {
|
|
15479
15570
|
return {
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15571
|
+
|
|
15572
|
+
/**
|
|
15573
|
+
* If set, the label will remain fixed in the active position.
|
|
15574
|
+
*/
|
|
15575
|
+
activeLabel: {
|
|
15576
|
+
type: Boolean,
|
|
15577
|
+
reflect: true
|
|
15578
|
+
},
|
|
15579
|
+
|
|
15580
|
+
/**
|
|
15581
|
+
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
15582
|
+
*/
|
|
15583
|
+
autocapitalize: {
|
|
15584
|
+
type: String
|
|
15585
|
+
},
|
|
15586
|
+
|
|
15587
|
+
/**
|
|
15588
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
15589
|
+
*/
|
|
15590
|
+
autocomplete: {
|
|
15487
15591
|
type: String,
|
|
15488
15592
|
reflect: true
|
|
15489
15593
|
},
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15594
|
+
|
|
15595
|
+
/**
|
|
15596
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
15597
|
+
*/
|
|
15598
|
+
autocorrect: {
|
|
15599
|
+
type: String
|
|
15600
|
+
},
|
|
15601
|
+
|
|
15602
|
+
/**
|
|
15603
|
+
* If set, disables the input.
|
|
15604
|
+
*/
|
|
15605
|
+
disabled: {
|
|
15606
|
+
type: Boolean
|
|
15607
|
+
},
|
|
15608
|
+
|
|
15609
|
+
error: {
|
|
15498
15610
|
type: String,
|
|
15499
15611
|
reflect: true
|
|
15500
15612
|
},
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15613
|
+
|
|
15614
|
+
/**
|
|
15615
|
+
* Contains the help text message for the current validity error.
|
|
15616
|
+
*/
|
|
15617
|
+
errorMessage: {
|
|
15618
|
+
type: String
|
|
15619
|
+
},
|
|
15620
|
+
|
|
15621
|
+
/**
|
|
15622
|
+
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
15623
|
+
*/
|
|
15624
|
+
icon: {
|
|
15625
|
+
type: Boolean
|
|
15626
|
+
},
|
|
15627
|
+
|
|
15628
|
+
/**
|
|
15629
|
+
* Sets the unique ID of the element.
|
|
15630
|
+
*/
|
|
15631
|
+
id: {
|
|
15632
|
+
type: String
|
|
15633
|
+
},
|
|
15634
|
+
|
|
15635
|
+
/**
|
|
15636
|
+
* Defines the language of an element.
|
|
15637
|
+
*/
|
|
15638
|
+
lang: {
|
|
15639
|
+
type: String
|
|
15640
|
+
},
|
|
15641
|
+
|
|
15642
|
+
/**
|
|
15643
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15644
|
+
*/
|
|
15645
|
+
max: {
|
|
15646
|
+
type: String
|
|
15647
|
+
},
|
|
15648
|
+
|
|
15649
|
+
/**
|
|
15650
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
15651
|
+
*/
|
|
15652
|
+
maxLength: {
|
|
15653
|
+
type: Number
|
|
15654
|
+
},
|
|
15655
|
+
|
|
15656
|
+
/**
|
|
15657
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15658
|
+
*/
|
|
15659
|
+
min: {
|
|
15660
|
+
type: String
|
|
15661
|
+
},
|
|
15662
|
+
|
|
15663
|
+
/**
|
|
15664
|
+
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
15665
|
+
*/
|
|
15666
|
+
minLength: {
|
|
15667
|
+
type: Number
|
|
15668
|
+
},
|
|
15669
|
+
|
|
15670
|
+
/**
|
|
15671
|
+
* Populates the `name` attribute on the input.
|
|
15672
|
+
*/
|
|
15673
|
+
name: {
|
|
15674
|
+
type: String
|
|
15675
|
+
},
|
|
15676
|
+
|
|
15677
|
+
/**
|
|
15678
|
+
* If set, disables auto-validation on blur.
|
|
15679
|
+
*/
|
|
15680
|
+
noValidate: {
|
|
15681
|
+
type: Boolean
|
|
15682
|
+
},
|
|
15683
|
+
|
|
15684
|
+
/**
|
|
15685
|
+
* Specifies a regular expression the form control's value should match.
|
|
15686
|
+
*/
|
|
15687
|
+
pattern: {
|
|
15688
|
+
type: String,
|
|
15504
15689
|
reflect: true
|
|
15505
15690
|
},
|
|
15506
|
-
|
|
15507
|
-
|
|
15508
|
-
|
|
15509
|
-
|
|
15691
|
+
|
|
15692
|
+
/**
|
|
15693
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
15694
|
+
*/
|
|
15695
|
+
placeholder: {
|
|
15696
|
+
type: String
|
|
15697
|
+
},
|
|
15698
|
+
|
|
15699
|
+
/**
|
|
15700
|
+
* Makes the input read-only, but can be set programmatically.
|
|
15701
|
+
*/
|
|
15702
|
+
readonly: {
|
|
15703
|
+
type: Boolean
|
|
15704
|
+
},
|
|
15705
|
+
|
|
15706
|
+
/**
|
|
15707
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
15708
|
+
*/
|
|
15709
|
+
required: {
|
|
15710
|
+
type: Boolean
|
|
15711
|
+
},
|
|
15510
15712
|
|
|
15511
15713
|
/**
|
|
15512
15714
|
* @ignore
|
|
15513
15715
|
*/
|
|
15514
|
-
showPassword:
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
|
|
15716
|
+
showPassword: {
|
|
15717
|
+
state: true
|
|
15718
|
+
},
|
|
15719
|
+
|
|
15720
|
+
/**
|
|
15721
|
+
* Sets a custom help text message to display for all validityStates.
|
|
15722
|
+
*/
|
|
15723
|
+
setCustomValidity: {
|
|
15724
|
+
type: String
|
|
15725
|
+
},
|
|
15726
|
+
|
|
15727
|
+
/**
|
|
15728
|
+
* Custom help text message to display when validity = `badInput`.
|
|
15729
|
+
*/
|
|
15730
|
+
setCustomValidityBadInput: {
|
|
15731
|
+
type: String
|
|
15732
|
+
},
|
|
15733
|
+
|
|
15734
|
+
/**
|
|
15735
|
+
* Custom help text message to display when validity = `customError`.
|
|
15736
|
+
*/
|
|
15737
|
+
setCustomValidityCustomError: {
|
|
15738
|
+
type: String
|
|
15739
|
+
},
|
|
15740
|
+
|
|
15741
|
+
/**
|
|
15742
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
15743
|
+
*/
|
|
15744
|
+
setCustomValidityForType: {
|
|
15745
|
+
type: String
|
|
15746
|
+
},
|
|
15747
|
+
|
|
15748
|
+
/**
|
|
15749
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
15750
|
+
*/
|
|
15751
|
+
setCustomValidityRangeOverflow: {
|
|
15752
|
+
type: String
|
|
15753
|
+
},
|
|
15754
|
+
|
|
15755
|
+
/**
|
|
15756
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
15757
|
+
*/
|
|
15758
|
+
setCustomValidityRangeUnderflow: {
|
|
15759
|
+
type: String
|
|
15760
|
+
},
|
|
15761
|
+
|
|
15762
|
+
/**
|
|
15763
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
15764
|
+
*/
|
|
15765
|
+
setCustomValidityTooLong: {
|
|
15766
|
+
type: String
|
|
15767
|
+
},
|
|
15768
|
+
|
|
15769
|
+
/**
|
|
15770
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
15771
|
+
*/
|
|
15772
|
+
setCustomValidityTooShort: {
|
|
15773
|
+
type: String
|
|
15774
|
+
},
|
|
15775
|
+
|
|
15776
|
+
/**
|
|
15777
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
15778
|
+
*/
|
|
15779
|
+
setCustomValidityValueMissing: {
|
|
15780
|
+
type: String
|
|
15781
|
+
},
|
|
15782
|
+
|
|
15783
|
+
/**
|
|
15784
|
+
* Custom help text message for email type validity.
|
|
15785
|
+
*/
|
|
15786
|
+
customValidityTypeEmail: {
|
|
15787
|
+
type: String
|
|
15788
|
+
},
|
|
15789
|
+
|
|
15790
|
+
/**
|
|
15791
|
+
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
15792
|
+
*/
|
|
15793
|
+
spellcheck: {
|
|
15794
|
+
type: String
|
|
15795
|
+
},
|
|
15796
|
+
|
|
15797
|
+
/**
|
|
15798
|
+
* Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
15799
|
+
*/
|
|
15800
|
+
type: {
|
|
15518
15801
|
type: String,
|
|
15519
15802
|
reflect: true
|
|
15520
15803
|
},
|
|
15521
|
-
|
|
15804
|
+
|
|
15805
|
+
/**
|
|
15806
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
15807
|
+
*/
|
|
15808
|
+
value: {
|
|
15809
|
+
type: String
|
|
15810
|
+
},
|
|
15811
|
+
|
|
15812
|
+
/**
|
|
15813
|
+
* Sets validation mode to re-eval with each input.
|
|
15814
|
+
*/
|
|
15815
|
+
validateOnInput: {
|
|
15816
|
+
type: Boolean
|
|
15817
|
+
},
|
|
15818
|
+
|
|
15819
|
+
/**
|
|
15820
|
+
* Specifies the `validityState` this element is in.
|
|
15821
|
+
*/
|
|
15822
|
+
validity: {
|
|
15522
15823
|
type: String,
|
|
15523
15824
|
reflect: true
|
|
15524
|
-
}
|
|
15525
|
-
setCustomValidity: { type: String },
|
|
15526
|
-
setCustomValidityCustomError: { type: String },
|
|
15527
|
-
setCustomValidityValueMissing: { type: String },
|
|
15528
|
-
setCustomValidityPatternMismatch: { type: String },
|
|
15529
|
-
setCustomValidityTooShort: { type: String },
|
|
15530
|
-
setCustomValidityTooLong: { type: String },
|
|
15531
|
-
setCustomValidityRangeOverflow: { type: String },
|
|
15532
|
-
setCustomValidityRangeUnderflow: { type: String }
|
|
15825
|
+
}
|
|
15533
15826
|
};
|
|
15534
15827
|
}
|
|
15535
15828
|
|
|
15829
|
+
|
|
15536
15830
|
static get styles() {
|
|
15537
15831
|
return [
|
|
15538
|
-
i$2`${styleCss$3}`,
|
|
15539
15832
|
i$2`${colorCss$3}`,
|
|
15833
|
+
i$2`${styleCss$3}`,
|
|
15540
15834
|
i$2`${tokensCss$3}`
|
|
15541
15835
|
];
|
|
15542
15836
|
}
|