@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
|
@@ -2823,7 +2823,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
2823
2823
|
|
|
2824
2824
|
var iconVersion$2 = '6.1.2';
|
|
2825
2825
|
|
|
2826
|
-
var styleCss$1$2 = 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)}`;
|
|
2826
|
+
var styleCss$1$2 = 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)}`;
|
|
2827
2827
|
|
|
2828
2828
|
var colorCss$1$2 = 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)}`;
|
|
2829
2829
|
|
|
@@ -2847,9 +2847,6 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2847
2847
|
];
|
|
2848
2848
|
|
|
2849
2849
|
/**
|
|
2850
|
-
* @attr { Boolean } common - If declared, will apply all styles for the common theme.
|
|
2851
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to the bib.
|
|
2852
|
-
* @attr { Boolean } inset - If declared, will apply extra padding to bib content.
|
|
2853
2850
|
* @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.
|
|
2854
2851
|
* @csspart bibContainer - Apply css to the bib container.
|
|
2855
2852
|
*/
|
|
@@ -2875,14 +2872,26 @@ class AuroDropdownBib extends r$5 {
|
|
|
2875
2872
|
|
|
2876
2873
|
static get properties() {
|
|
2877
2874
|
return {
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
* If declared, will apply all styles for the common theme.
|
|
2878
|
+
*/
|
|
2878
2879
|
common: {
|
|
2879
2880
|
type: Boolean,
|
|
2880
2881
|
reflect: true
|
|
2881
2882
|
},
|
|
2883
|
+
|
|
2884
|
+
/**
|
|
2885
|
+
* If declared, will apply extra padding to bib content.
|
|
2886
|
+
*/
|
|
2882
2887
|
inset: {
|
|
2883
2888
|
type: Boolean,
|
|
2884
2889
|
reflect: true
|
|
2885
2890
|
},
|
|
2891
|
+
|
|
2892
|
+
/**
|
|
2893
|
+
* If declared, will apply border-radius to the bib.
|
|
2894
|
+
*/
|
|
2886
2895
|
rounded: {
|
|
2887
2896
|
type: Boolean,
|
|
2888
2897
|
reflect: true
|
|
@@ -2926,22 +2935,7 @@ if (!customElements.get("auro-dropdownbib")) {
|
|
|
2926
2935
|
|
|
2927
2936
|
|
|
2928
2937
|
/**
|
|
2929
|
-
* @attr { Boolean } bordered - If declared, applies a border around the trigger slot.
|
|
2930
|
-
* @attr { Boolean } common - If declared, the dropdown will be styled with the common theme.
|
|
2931
|
-
* @attr { Boolean } chevron - If declared, the dropdown displays an display state chevron on the right.
|
|
2932
|
-
* @attr { Boolean } disabled - If declared, the dropdown is not interactive.
|
|
2933
2938
|
* @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
|
|
2934
|
-
* @attr { Boolean } error - If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
2935
|
-
* @attr {Boolean} fluid - Makes the trigger to be full width of its parent container
|
|
2936
|
-
* @attr { Boolean } matchWidth - If declared, the popover and trigger will be set to the same width.
|
|
2937
|
-
* @attr { Boolean } inset - If declared, will apply padding around trigger slot content.
|
|
2938
|
-
* @attr { Boolean } rounded - If declared, will apply border-radius to trigger and default slots.
|
|
2939
|
-
* @attr { Boolean } hoverToggle - if declared, the trigger will toggle the big on mouseover/mouseout.
|
|
2940
|
-
* @attr { Boolean } noToggle - If declared, the trigger will only show the dropdown bib.
|
|
2941
|
-
* @attr { Boolean } focusShow - if declared, the bib will display when focus is applied to the trigger.
|
|
2942
|
-
* @attr { Boolean } noHideOnThisFocusLoss - If declared, the dropdown will not hide when moving focus outside the element.
|
|
2943
|
-
* @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.
|
|
2944
|
-
* @prop { Boolean } isPopoverVisible - If true, the dropdown bib is displayed.
|
|
2945
2939
|
* @slot - Default slot for the popover content.
|
|
2946
2940
|
* @slot label - Defines the content of the label.
|
|
2947
2941
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -2979,6 +2973,16 @@ class AuroDropdown extends r$5 {
|
|
|
2979
2973
|
this.tabIndex = 0;
|
|
2980
2974
|
this.noToggle = false;
|
|
2981
2975
|
|
|
2976
|
+
/**
|
|
2977
|
+
* @private
|
|
2978
|
+
*/
|
|
2979
|
+
this.hasTriggerContent = false;
|
|
2980
|
+
|
|
2981
|
+
/**
|
|
2982
|
+
* @private
|
|
2983
|
+
*/
|
|
2984
|
+
this.triggerContentSlot = undefined;
|
|
2985
|
+
|
|
2982
2986
|
/**
|
|
2983
2987
|
* @private
|
|
2984
2988
|
*/
|
|
@@ -3025,89 +3029,166 @@ class AuroDropdown extends r$5 {
|
|
|
3025
3029
|
// function to define props used within the scope of this component
|
|
3026
3030
|
static get properties() {
|
|
3027
3031
|
return {
|
|
3032
|
+
|
|
3033
|
+
/**
|
|
3034
|
+
* If declared, applies a border around the trigger slot.
|
|
3035
|
+
*/
|
|
3028
3036
|
bordered: {
|
|
3029
3037
|
type: Boolean,
|
|
3030
3038
|
reflect: true
|
|
3031
3039
|
},
|
|
3040
|
+
|
|
3041
|
+
/**
|
|
3042
|
+
* If declared, the dropdown displays a chevron on the right.
|
|
3043
|
+
* @attr {Boolean} chevron
|
|
3044
|
+
*/
|
|
3032
3045
|
chevron: {
|
|
3033
3046
|
type: Boolean,
|
|
3034
3047
|
reflect: true
|
|
3035
3048
|
},
|
|
3036
|
-
|
|
3049
|
+
|
|
3050
|
+
/**
|
|
3051
|
+
* If declared, the dropdown will be styled with the common theme.
|
|
3052
|
+
*/
|
|
3053
|
+
common: {
|
|
3037
3054
|
type: Boolean,
|
|
3038
3055
|
reflect: true
|
|
3039
3056
|
},
|
|
3040
|
-
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* If declared, the dropdown is not interactive.
|
|
3060
|
+
*/
|
|
3061
|
+
disabled: {
|
|
3041
3062
|
type: Boolean,
|
|
3042
3063
|
reflect: true
|
|
3043
3064
|
},
|
|
3044
|
-
|
|
3065
|
+
|
|
3066
|
+
/**
|
|
3067
|
+
* @private
|
|
3068
|
+
*/
|
|
3069
|
+
dropdownWidth: {
|
|
3070
|
+
type: Number
|
|
3071
|
+
},
|
|
3072
|
+
|
|
3073
|
+
/**
|
|
3074
|
+
* If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
|
|
3075
|
+
*/
|
|
3076
|
+
error: {
|
|
3045
3077
|
type: Boolean,
|
|
3046
|
-
reflect: true
|
|
3078
|
+
reflect: true
|
|
3047
3079
|
},
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* If declared, the bib will display when focus is applied to the trigger.
|
|
3083
|
+
*/
|
|
3048
3084
|
focusShow: {
|
|
3049
3085
|
type: Boolean,
|
|
3050
3086
|
reflect: true
|
|
3051
3087
|
},
|
|
3052
|
-
|
|
3088
|
+
|
|
3089
|
+
/**
|
|
3090
|
+
* Makes the trigger to be full width of its parent container.
|
|
3091
|
+
*/
|
|
3092
|
+
fluid: {
|
|
3053
3093
|
type: Boolean,
|
|
3054
3094
|
reflect: true
|
|
3055
3095
|
},
|
|
3096
|
+
|
|
3097
|
+
/**
|
|
3098
|
+
* If declared, will apply padding around trigger slot content.
|
|
3099
|
+
*/
|
|
3056
3100
|
inset: {
|
|
3057
3101
|
type: Boolean,
|
|
3058
3102
|
reflect: true
|
|
3059
3103
|
},
|
|
3060
|
-
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* If true, the dropdown bib is displayed.
|
|
3107
|
+
*/
|
|
3108
|
+
isPopoverVisible: {
|
|
3109
|
+
type: Boolean
|
|
3110
|
+
},
|
|
3111
|
+
|
|
3112
|
+
/**
|
|
3113
|
+
* If declared, the trigger will toggle the dropdown on mouseover/mouseout.
|
|
3114
|
+
*/
|
|
3115
|
+
hoverToggle: {
|
|
3061
3116
|
type: Boolean,
|
|
3062
3117
|
reflect: true
|
|
3063
3118
|
},
|
|
3064
|
-
|
|
3065
|
-
|
|
3119
|
+
|
|
3120
|
+
/**
|
|
3121
|
+
* @private
|
|
3122
|
+
*/
|
|
3123
|
+
hasTriggerContent: {
|
|
3124
|
+
type: Boolean
|
|
3125
|
+
},
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
* 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.
|
|
3129
|
+
*/
|
|
3130
|
+
mobileFullscreenBreakpoint: {
|
|
3131
|
+
type: String,
|
|
3066
3132
|
reflect: true
|
|
3067
3133
|
},
|
|
3068
|
-
|
|
3134
|
+
|
|
3135
|
+
/**
|
|
3136
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
3137
|
+
*/
|
|
3138
|
+
matchWidth: {
|
|
3069
3139
|
type: Boolean,
|
|
3070
3140
|
reflect: true
|
|
3071
3141
|
},
|
|
3072
|
-
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
3145
|
+
*/
|
|
3146
|
+
noHideOnThisFocusLoss: {
|
|
3073
3147
|
type: Boolean,
|
|
3074
3148
|
reflect: true
|
|
3075
3149
|
},
|
|
3076
|
-
|
|
3150
|
+
|
|
3151
|
+
/**
|
|
3152
|
+
* If declared, the trigger will only show the dropdown bib.
|
|
3153
|
+
*/
|
|
3154
|
+
noToggle: {
|
|
3077
3155
|
type: Boolean,
|
|
3078
3156
|
reflect: true
|
|
3079
3157
|
},
|
|
3080
|
-
|
|
3158
|
+
|
|
3081
3159
|
onSlotChange: {
|
|
3082
3160
|
type: Function,
|
|
3083
3161
|
reflect: false
|
|
3084
3162
|
},
|
|
3085
|
-
mobileFullscreenBreakpoint: {
|
|
3086
|
-
type: String,
|
|
3087
|
-
reflect: true,
|
|
3088
|
-
},
|
|
3089
3163
|
|
|
3090
3164
|
/**
|
|
3091
3165
|
* @private
|
|
3092
3166
|
*/
|
|
3093
|
-
|
|
3167
|
+
placement: {
|
|
3168
|
+
type: String
|
|
3169
|
+
},
|
|
3094
3170
|
|
|
3095
3171
|
/**
|
|
3096
|
-
*
|
|
3172
|
+
* If declared, will apply border-radius to trigger and default slots.
|
|
3097
3173
|
*/
|
|
3098
|
-
|
|
3174
|
+
rounded: {
|
|
3175
|
+
type: Boolean,
|
|
3176
|
+
reflect: true
|
|
3177
|
+
},
|
|
3099
3178
|
|
|
3100
3179
|
/**
|
|
3101
3180
|
* @private
|
|
3102
3181
|
*/
|
|
3103
|
-
tabIndex: {
|
|
3182
|
+
tabIndex: {
|
|
3183
|
+
type: Number
|
|
3184
|
+
}
|
|
3104
3185
|
};
|
|
3105
3186
|
}
|
|
3106
3187
|
|
|
3107
3188
|
static get styles() {
|
|
3108
3189
|
return [
|
|
3109
|
-
styleCss$1$2,
|
|
3110
3190
|
colorCss$1$2,
|
|
3191
|
+
styleCss$1$2,
|
|
3111
3192
|
tokensCss$5
|
|
3112
3193
|
];
|
|
3113
3194
|
}
|
|
@@ -3138,6 +3219,12 @@ class AuroDropdown extends r$5 {
|
|
|
3138
3219
|
if (changedProperties.has('mobileFullscreenBreakpoint')) {
|
|
3139
3220
|
this.bibContent.mobileFullscreenBreakpoint = this.mobileFullscreenBreakpoint;
|
|
3140
3221
|
}
|
|
3222
|
+
|
|
3223
|
+
// when trigger's content is changed without any attribute or node change,
|
|
3224
|
+
// `requestUpdate` needs to be called to update hasTriggerContnet
|
|
3225
|
+
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3226
|
+
this.handleTriggerContentSlotChange();
|
|
3227
|
+
}
|
|
3141
3228
|
}
|
|
3142
3229
|
|
|
3143
3230
|
firstUpdated() {
|
|
@@ -3180,6 +3267,43 @@ class AuroDropdown extends r$5 {
|
|
|
3180
3267
|
return inCustomSlot;
|
|
3181
3268
|
}
|
|
3182
3269
|
|
|
3270
|
+
/**
|
|
3271
|
+
* Handles changes to the trigger content slot and updates related properties.
|
|
3272
|
+
*
|
|
3273
|
+
* It first updates the floater settings
|
|
3274
|
+
* Then, it retrieves the assigned nodes from the event target and checks if any of
|
|
3275
|
+
* the nodes contain non-empty text content, updating the `hasTriggerContent` property accordingly.
|
|
3276
|
+
*
|
|
3277
|
+
* @private
|
|
3278
|
+
* @method handleTriggerContentSlotChange
|
|
3279
|
+
* @param {Event} event - native slotchange event
|
|
3280
|
+
* @returns {void}
|
|
3281
|
+
*/
|
|
3282
|
+
handleTriggerContentSlotChange(event) {
|
|
3283
|
+
this.floater.handleTriggerTabIndex();
|
|
3284
|
+
|
|
3285
|
+
if (event) {
|
|
3286
|
+
this.triggerNode = event.target;
|
|
3287
|
+
this.triggerContentSlot = event.target.assignedNodes();
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
if (this.triggerContentSlot) {
|
|
3291
|
+
this.hasTriggerContent = this.triggerContentSlot.some((slot) => {
|
|
3292
|
+
if (slot.textContent.trim()) {
|
|
3293
|
+
return true;
|
|
3294
|
+
}
|
|
3295
|
+
const slotInSlot = slot.querySelector('slot');
|
|
3296
|
+
if (!slotInSlot) {
|
|
3297
|
+
return false;
|
|
3298
|
+
}
|
|
3299
|
+
const slotsInSlotNodes = slotInSlot.assignedNodes();
|
|
3300
|
+
return slotsInSlotNodes.some((ss) => Boolean(ss.textContent.trim()));
|
|
3301
|
+
});
|
|
3302
|
+
} else {
|
|
3303
|
+
this.hasTriggerContent = false;
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3183
3307
|
/**
|
|
3184
3308
|
* Handles the default slot change event and updates the content.
|
|
3185
3309
|
*
|
|
@@ -3214,13 +3338,13 @@ class AuroDropdown extends r$5 {
|
|
|
3214
3338
|
tabindex="${this.tabIndex}"
|
|
3215
3339
|
>
|
|
3216
3340
|
<div class="triggerContentWrapper">
|
|
3217
|
-
<label class="label" id="triggerLabel">
|
|
3341
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
3218
3342
|
<slot name="label"></slot>
|
|
3219
3343
|
</label>
|
|
3220
3344
|
<div class="triggerContent">
|
|
3221
3345
|
<slot
|
|
3222
3346
|
name="trigger"
|
|
3223
|
-
@slotchange="${() =>
|
|
3347
|
+
@slotchange="${(event) => this.handleTriggerContentSlotChange(event)}"></slot>
|
|
3224
3348
|
</div>
|
|
3225
3349
|
</div>
|
|
3226
3350
|
${this.chevron || this.common ? u$1$1`
|
|
@@ -5325,41 +5449,8 @@ class AuroFormValidation {
|
|
|
5325
5449
|
/**
|
|
5326
5450
|
* Auro-input provides users a way to enter data into a text field.
|
|
5327
5451
|
*
|
|
5328
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
5329
|
-
* @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]
|
|
5330
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
5331
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
5332
5452
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
5333
5453
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
5334
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
5335
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
5336
|
-
* @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.
|
|
5337
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
5338
|
-
* @attr {String} lang - defines the language of an element.
|
|
5339
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
5340
|
-
* @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.
|
|
5341
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
5342
|
-
* @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`.
|
|
5343
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
5344
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
5345
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
5346
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
5347
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
5348
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
5349
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
|
|
5350
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
5351
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
5352
|
-
* @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
|
|
5353
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
5354
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
5355
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
5356
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
5357
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
5358
|
-
* @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`.
|
|
5359
|
-
* @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`.
|
|
5360
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
5361
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
5362
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5363
5454
|
*
|
|
5364
5455
|
* @slot helptext - Sets the help text displayed below the input.
|
|
5365
5456
|
* @slot label - Sets the label text for the input.
|
|
@@ -5451,69 +5542,272 @@ class BaseInput extends r {
|
|
|
5451
5542
|
.substring(idSubstrStart, idSubstrEnd);
|
|
5452
5543
|
}
|
|
5453
5544
|
|
|
5454
|
-
// function to define props used within the scope of this
|
|
5545
|
+
// function to define props used within the scope of this componentstatic
|
|
5455
5546
|
static get properties() {
|
|
5456
5547
|
return {
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5548
|
+
|
|
5549
|
+
/**
|
|
5550
|
+
* If set, the label will remain fixed in the active position.
|
|
5551
|
+
*/
|
|
5552
|
+
activeLabel: {
|
|
5553
|
+
type: Boolean,
|
|
5554
|
+
reflect: true
|
|
5555
|
+
},
|
|
5556
|
+
|
|
5557
|
+
/**
|
|
5558
|
+
* 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]
|
|
5559
|
+
*/
|
|
5560
|
+
autocapitalize: {
|
|
5561
|
+
type: String
|
|
5562
|
+
},
|
|
5563
|
+
|
|
5564
|
+
/**
|
|
5565
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
5566
|
+
*/
|
|
5567
|
+
autocomplete: {
|
|
5464
5568
|
type: String,
|
|
5465
5569
|
reflect: true
|
|
5466
5570
|
},
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5571
|
+
|
|
5572
|
+
/**
|
|
5573
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
5574
|
+
*/
|
|
5575
|
+
autocorrect: {
|
|
5576
|
+
type: String
|
|
5577
|
+
},
|
|
5578
|
+
|
|
5579
|
+
/**
|
|
5580
|
+
* If set, disables the input.
|
|
5581
|
+
*/
|
|
5582
|
+
disabled: {
|
|
5583
|
+
type: Boolean
|
|
5584
|
+
},
|
|
5585
|
+
|
|
5586
|
+
error: {
|
|
5475
5587
|
type: String,
|
|
5476
5588
|
reflect: true
|
|
5477
5589
|
},
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5590
|
+
|
|
5591
|
+
/**
|
|
5592
|
+
* Contains the help text message for the current validity error.
|
|
5593
|
+
*/
|
|
5594
|
+
errorMessage: {
|
|
5595
|
+
type: String
|
|
5596
|
+
},
|
|
5597
|
+
|
|
5598
|
+
/**
|
|
5599
|
+
* 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.
|
|
5600
|
+
*/
|
|
5601
|
+
icon: {
|
|
5602
|
+
type: Boolean
|
|
5603
|
+
},
|
|
5604
|
+
|
|
5605
|
+
/**
|
|
5606
|
+
* Sets the unique ID of the element.
|
|
5607
|
+
*/
|
|
5608
|
+
id: {
|
|
5609
|
+
type: String
|
|
5610
|
+
},
|
|
5611
|
+
|
|
5612
|
+
/**
|
|
5613
|
+
* Defines the language of an element.
|
|
5614
|
+
*/
|
|
5615
|
+
lang: {
|
|
5616
|
+
type: String
|
|
5617
|
+
},
|
|
5618
|
+
|
|
5619
|
+
/**
|
|
5620
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
5621
|
+
*/
|
|
5622
|
+
max: {
|
|
5623
|
+
type: String
|
|
5624
|
+
},
|
|
5625
|
+
|
|
5626
|
+
/**
|
|
5627
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5628
|
+
*/
|
|
5629
|
+
maxLength: {
|
|
5630
|
+
type: Number
|
|
5631
|
+
},
|
|
5632
|
+
|
|
5633
|
+
/**
|
|
5634
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
5635
|
+
*/
|
|
5636
|
+
min: {
|
|
5637
|
+
type: String
|
|
5638
|
+
},
|
|
5639
|
+
|
|
5640
|
+
/**
|
|
5641
|
+
* 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`.
|
|
5642
|
+
*/
|
|
5643
|
+
minLength: {
|
|
5644
|
+
type: Number
|
|
5645
|
+
},
|
|
5646
|
+
|
|
5647
|
+
/**
|
|
5648
|
+
* Populates the `name` attribute on the input.
|
|
5649
|
+
*/
|
|
5650
|
+
name: {
|
|
5651
|
+
type: String
|
|
5652
|
+
},
|
|
5653
|
+
|
|
5654
|
+
/**
|
|
5655
|
+
* If set, disables auto-validation on blur.
|
|
5656
|
+
*/
|
|
5657
|
+
noValidate: {
|
|
5658
|
+
type: Boolean
|
|
5659
|
+
},
|
|
5660
|
+
|
|
5661
|
+
/**
|
|
5662
|
+
* Specifies a regular expression the form control's value should match.
|
|
5663
|
+
*/
|
|
5664
|
+
pattern: {
|
|
5665
|
+
type: String,
|
|
5481
5666
|
reflect: true
|
|
5482
5667
|
},
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5668
|
+
|
|
5669
|
+
/**
|
|
5670
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
5671
|
+
*/
|
|
5672
|
+
placeholder: {
|
|
5673
|
+
type: String
|
|
5674
|
+
},
|
|
5675
|
+
|
|
5676
|
+
/**
|
|
5677
|
+
* Makes the input read-only, but can be set programmatically.
|
|
5678
|
+
*/
|
|
5679
|
+
readonly: {
|
|
5680
|
+
type: Boolean
|
|
5681
|
+
},
|
|
5682
|
+
|
|
5683
|
+
/**
|
|
5684
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
5685
|
+
*/
|
|
5686
|
+
required: {
|
|
5687
|
+
type: Boolean
|
|
5688
|
+
},
|
|
5487
5689
|
|
|
5488
5690
|
/**
|
|
5489
5691
|
* @ignore
|
|
5490
5692
|
*/
|
|
5491
|
-
showPassword:
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5693
|
+
showPassword: {
|
|
5694
|
+
state: true
|
|
5695
|
+
},
|
|
5696
|
+
|
|
5697
|
+
/**
|
|
5698
|
+
* Sets a custom help text message to display for all validityStates.
|
|
5699
|
+
*/
|
|
5700
|
+
setCustomValidity: {
|
|
5701
|
+
type: String
|
|
5702
|
+
},
|
|
5703
|
+
|
|
5704
|
+
/**
|
|
5705
|
+
* Custom help text message to display when validity = `badInput`.
|
|
5706
|
+
*/
|
|
5707
|
+
setCustomValidityBadInput: {
|
|
5708
|
+
type: String
|
|
5709
|
+
},
|
|
5710
|
+
|
|
5711
|
+
/**
|
|
5712
|
+
* Custom help text message to display when validity = `customError`.
|
|
5713
|
+
*/
|
|
5714
|
+
setCustomValidityCustomError: {
|
|
5715
|
+
type: String
|
|
5716
|
+
},
|
|
5717
|
+
|
|
5718
|
+
/**
|
|
5719
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
5720
|
+
*/
|
|
5721
|
+
setCustomValidityForType: {
|
|
5722
|
+
type: String
|
|
5723
|
+
},
|
|
5724
|
+
|
|
5725
|
+
/**
|
|
5726
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
5727
|
+
*/
|
|
5728
|
+
setCustomValidityRangeOverflow: {
|
|
5729
|
+
type: String
|
|
5730
|
+
},
|
|
5731
|
+
|
|
5732
|
+
/**
|
|
5733
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
5734
|
+
*/
|
|
5735
|
+
setCustomValidityRangeUnderflow: {
|
|
5736
|
+
type: String
|
|
5737
|
+
},
|
|
5738
|
+
|
|
5739
|
+
/**
|
|
5740
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
5741
|
+
*/
|
|
5742
|
+
setCustomValidityTooLong: {
|
|
5743
|
+
type: String
|
|
5744
|
+
},
|
|
5745
|
+
|
|
5746
|
+
/**
|
|
5747
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
5748
|
+
*/
|
|
5749
|
+
setCustomValidityTooShort: {
|
|
5750
|
+
type: String
|
|
5751
|
+
},
|
|
5752
|
+
|
|
5753
|
+
/**
|
|
5754
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
5755
|
+
*/
|
|
5756
|
+
setCustomValidityValueMissing: {
|
|
5757
|
+
type: String
|
|
5758
|
+
},
|
|
5759
|
+
|
|
5760
|
+
/**
|
|
5761
|
+
* Custom help text message for email type validity.
|
|
5762
|
+
*/
|
|
5763
|
+
customValidityTypeEmail: {
|
|
5764
|
+
type: String
|
|
5765
|
+
},
|
|
5766
|
+
|
|
5767
|
+
/**
|
|
5768
|
+
* 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`.
|
|
5769
|
+
*/
|
|
5770
|
+
spellcheck: {
|
|
5771
|
+
type: String
|
|
5772
|
+
},
|
|
5773
|
+
|
|
5774
|
+
/**
|
|
5775
|
+
* 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`.
|
|
5776
|
+
*/
|
|
5777
|
+
type: {
|
|
5495
5778
|
type: String,
|
|
5496
5779
|
reflect: true
|
|
5497
5780
|
},
|
|
5498
|
-
|
|
5781
|
+
|
|
5782
|
+
/**
|
|
5783
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5784
|
+
*/
|
|
5785
|
+
value: {
|
|
5786
|
+
type: String
|
|
5787
|
+
},
|
|
5788
|
+
|
|
5789
|
+
/**
|
|
5790
|
+
* Sets validation mode to re-eval with each input.
|
|
5791
|
+
*/
|
|
5792
|
+
validateOnInput: {
|
|
5793
|
+
type: Boolean
|
|
5794
|
+
},
|
|
5795
|
+
|
|
5796
|
+
/**
|
|
5797
|
+
* Specifies the `validityState` this element is in.
|
|
5798
|
+
*/
|
|
5799
|
+
validity: {
|
|
5499
5800
|
type: String,
|
|
5500
5801
|
reflect: true
|
|
5501
|
-
}
|
|
5502
|
-
setCustomValidity: { type: String },
|
|
5503
|
-
setCustomValidityCustomError: { type: String },
|
|
5504
|
-
setCustomValidityValueMissing: { type: String },
|
|
5505
|
-
setCustomValidityPatternMismatch: { type: String },
|
|
5506
|
-
setCustomValidityTooShort: { type: String },
|
|
5507
|
-
setCustomValidityTooLong: { type: String },
|
|
5508
|
-
setCustomValidityRangeOverflow: { type: String },
|
|
5509
|
-
setCustomValidityRangeUnderflow: { type: String }
|
|
5802
|
+
}
|
|
5510
5803
|
};
|
|
5511
5804
|
}
|
|
5512
5805
|
|
|
5806
|
+
|
|
5513
5807
|
static get styles() {
|
|
5514
5808
|
return [
|
|
5515
|
-
i$2`${styleCss$3$1}`,
|
|
5516
5809
|
i$2`${colorCss$3}`,
|
|
5810
|
+
i$2`${styleCss$3$1}`,
|
|
5517
5811
|
i$2`${tokensCss$3}`
|
|
5518
5812
|
];
|
|
5519
5813
|
}
|