@aurodesignsystem-dev/auro-formkit 0.0.0-pr1422.0 → 0.0.0-pr1422.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +66 -0
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +2 -0
- package/components/bibtemplate/dist/index.d.ts +2 -0
- package/components/bibtemplate/dist/index.js +395 -0
- package/components/bibtemplate/dist/registered.js +395 -0
- package/components/bibtemplate/dist/styles/color-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/style-css.d.ts +2 -0
- package/components/bibtemplate/dist/styles/tokens-css.d.ts +2 -0
- package/components/checkbox/demo/api.md +489 -0
- package/components/checkbox/demo/api.min.js +2133 -0
- package/components/checkbox/demo/index.md +55 -0
- package/components/checkbox/demo/index.min.js +2108 -0
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/checkbox/demo/readme.md +142 -0
- package/components/checkbox/dist/auro-checkbox-group.d.ts +176 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +209 -0
- package/components/checkbox/dist/index.d.ts +3 -0
- package/components/checkbox/dist/index.js +2057 -0
- package/components/checkbox/dist/registered.js +2058 -0
- package/components/checkbox/dist/styles/auro-checkbox-css.d.ts +2 -0
- package/components/checkbox/dist/styles/auro-checkbox-group-css.d.ts +2 -0
- package/components/checkbox/dist/styles/color-css.d.ts +2 -0
- package/components/checkbox/dist/styles/colorGroup-css.d.ts +2 -0
- package/components/checkbox/dist/styles/tokens-css.d.ts +2 -0
- package/components/combobox/demo/api.md +2287 -0
- package/components/combobox/demo/api.min.js +18025 -0
- package/components/combobox/demo/index.md +196 -0
- package/components/combobox/demo/index.min.js +17930 -0
- package/components/combobox/demo/keyboardBehavior.md +281 -0
- package/components/combobox/demo/readme.md +158 -0
- package/components/combobox/dist/auro-combobox.d.ts +578 -0
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +9 -0
- package/components/combobox/dist/index.d.ts +2 -0
- package/components/combobox/dist/index.js +15845 -0
- package/components/combobox/dist/registered.js +15847 -0
- package/components/combobox/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/combobox/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/combobox/dist/styles/style-css.d.ts +2 -0
- package/components/counter/demo/api.md +1285 -0
- package/components/counter/demo/api.min.js +8237 -0
- package/components/counter/demo/index.md +92 -0
- package/components/counter/demo/index.min.js +8218 -0
- package/components/counter/demo/keyboardBehavior.md +127 -0
- package/components/counter/demo/readme.md +161 -0
- package/components/counter/dist/auro-counter-button.d.ts +14 -0
- package/components/counter/dist/auro-counter-group.d.ts +390 -0
- package/components/counter/dist/auro-counter-wrapper.d.ts +17 -0
- package/components/counter/dist/auro-counter.d.ts +136 -0
- package/components/counter/dist/buttonVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +2 -0
- package/components/counter/dist/index.d.ts +3 -0
- package/components/counter/dist/index.js +8140 -0
- package/components/counter/dist/keyboardStrategy.d.ts +4 -0
- package/components/counter/dist/registered.js +8141 -0
- package/components/counter/dist/styles/color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-button-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-group-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-color-css.d.ts +2 -0
- package/components/counter/dist/styles/counter-wrapper-css.d.ts +2 -0
- package/components/counter/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/counter/dist/styles/style-css.d.ts +2 -0
- package/components/counter/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/demo/api.md +1824 -0
- package/components/datepicker/demo/api.min.js +24654 -0
- package/components/datepicker/demo/index.md +158 -0
- package/components/datepicker/demo/index.min.js +24375 -0
- package/components/datepicker/demo/keyboardBehavior.md +19 -0
- package/components/datepicker/demo/readme.md +137 -0
- package/components/datepicker/dist/auro-calendar-cell.d.ts +169 -0
- package/components/datepicker/dist/auro-calendar-month.d.ts +20 -0
- package/components/datepicker/dist/auro-calendar.d.ts +173 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +716 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +1 -0
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.d.ts +2 -0
- package/components/datepicker/dist/index.js +24290 -0
- package/components/datepicker/dist/popoverVersion.d.ts +2 -0
- package/components/datepicker/dist/registered.js +24290 -0
- package/components/datepicker/dist/styles/classic/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/color-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/datepicker/dist/styles/snowflake/color-css.d.ts +2 -0
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-cell-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-auro-calendar-month-css.d.ts +2 -0
- package/components/datepicker/dist/styles/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/tokens-css.d.ts +2 -0
- package/components/datepicker/dist/utilities.d.ts +78 -0
- package/components/datepicker/dist/utilitiesCalendar.d.ts +38 -0
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +50 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/day.d.ts +5 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +60 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-cell.d.ts +1 -0
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +57 -0
- package/components/dropdown/demo/api.md +1358 -0
- package/components/dropdown/demo/api.min.js +5019 -0
- package/components/dropdown/demo/index.md +283 -0
- package/components/dropdown/demo/index.min.js +4954 -0
- package/components/dropdown/demo/keyboardBehavior.md +77 -0
- package/components/dropdown/demo/readme.md +160 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +482 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +128 -0
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +7 -0
- package/components/dropdown/dist/iconVersion.d.ts +2 -0
- package/components/dropdown/dist/index.d.ts +2 -0
- package/components/dropdown/dist/index.js +4847 -0
- package/components/dropdown/dist/registered.js +4847 -0
- package/components/dropdown/dist/styles/classic/bibColors-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/bibStyles-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/tokens-css.d.ts +2 -0
- package/components/form/demo/api.md +319 -0
- package/components/form/demo/api.min.js +71170 -0
- package/components/form/demo/index.md +128 -0
- package/components/form/demo/index.min.js +71170 -0
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/form/demo/readme.md +145 -0
- package/components/form/dist/auro-form.d.ts +280 -0
- package/components/form/dist/index.d.ts +2 -0
- package/components/form/dist/index.js +718 -0
- package/components/form/dist/registered.d.ts +1 -0
- package/components/form/dist/registered.js +718 -0
- package/components/form/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/auro-helptext.d.ts +69 -0
- package/components/helptext/dist/index.d.ts +2 -0
- package/components/helptext/dist/index.js +231 -0
- package/components/helptext/dist/registered.js +231 -0
- package/components/helptext/dist/styles/color-css.d.ts +2 -0
- package/components/helptext/dist/styles/style-css.d.ts +2 -0
- package/components/helptext/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/demo/api.md +1397 -0
- package/components/input/demo/api.min.js +7473 -0
- package/components/input/demo/index.md +161 -0
- package/components/input/demo/index.min.js +7393 -0
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/readme.md +134 -0
- package/components/input/dist/auro-input.d.ts +207 -0
- package/components/input/dist/base-input.d.ts +628 -0
- package/components/input/dist/buttonVersion.d.ts +2 -0
- package/components/input/dist/i18n.d.ts +18 -0
- package/components/input/dist/iconVersion.d.ts +2 -0
- package/components/input/dist/index.d.ts +2 -0
- package/components/input/dist/index.js +7305 -0
- package/components/input/dist/registered.js +7305 -0
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/input/dist/styles/style-css.d.ts +2 -0
- package/components/input/dist/styles/tokens-css.d.ts +2 -0
- package/components/input/dist/utilities.d.ts +25 -0
- package/components/layoutElement/dist/auroElement.d.ts +40 -0
- package/components/layoutElement/dist/index.d.ts +2 -0
- package/components/layoutElement/dist/index.js +107 -0
- package/components/layoutElement/dist/registered.js +107 -0
- package/components/menu/demo/api.md +1201 -0
- package/components/menu/demo/api.min.js +2397 -0
- package/components/menu/demo/index.md +72 -0
- package/components/menu/demo/index.min.js +2290 -0
- package/components/menu/demo/keyboardBehavior.md +0 -0
- package/components/menu/demo/readme.md +145 -0
- package/components/menu/dist/auro-menu-utils.d.ts +34 -0
- package/components/menu/dist/auro-menu.context.d.ts +239 -0
- package/components/menu/dist/auro-menu.d.ts +317 -0
- package/components/menu/dist/auro-menuoption.d.ts +210 -0
- package/components/menu/dist/iconVersion.d.ts +2 -0
- package/components/menu/dist/index.d.ts +4 -0
- package/components/menu/dist/index.js +2253 -0
- package/components/menu/dist/registered.js +2201 -0
- package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.md +675 -0
- package/components/radio/demo/api.min.js +2210 -0
- package/components/radio/demo/index.md +73 -0
- package/components/radio/demo/index.min.js +2167 -0
- package/components/radio/demo/keyboardBehavior.md +0 -0
- package/components/radio/demo/readme.md +141 -0
- package/components/radio/dist/auro-radio-group.d.ts +250 -0
- package/components/radio/dist/auro-radio.d.ts +180 -0
- package/components/radio/dist/index.d.ts +3 -0
- package/components/radio/dist/index.js +2116 -0
- package/components/radio/dist/registered.js +2117 -0
- package/components/radio/dist/styles/auro-radio-group-css.d.ts +2 -0
- package/components/radio/dist/styles/color-css.d.ts +2 -0
- package/components/radio/dist/styles/groupColor-css.d.ts +2 -0
- package/components/radio/dist/styles/style-css.d.ts +2 -0
- package/components/radio/dist/styles/tokens-css.d.ts +2 -0
- package/components/select/demo/api.md +2378 -0
- package/components/select/demo/api.min.js +10542 -0
- package/components/select/demo/index.md +355 -0
- package/components/select/demo/index.min.js +10449 -0
- package/components/select/demo/keyboardBehavior.md +245 -0
- package/components/select/demo/readme.md +148 -0
- package/components/select/dist/auro-select.d.ts +553 -0
- package/components/select/dist/index.d.ts +2 -0
- package/components/select/dist/index.js +8376 -0
- package/components/select/dist/registered.js +8376 -0
- package/components/select/dist/selectKeyboardStrategy.d.ts +11 -0
- package/components/select/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/style-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/custom-elements.json +18806 -0
- package/package.json +2 -2
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base class for auro-input component that provides core input functionality.
|
|
3
|
+
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
4
|
+
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
5
|
+
*/
|
|
6
|
+
export default class BaseInput extends AuroElement {
|
|
7
|
+
static get shadowRootOptions(): {
|
|
8
|
+
delegatesFocus: boolean;
|
|
9
|
+
clonable?: boolean;
|
|
10
|
+
customElementRegistry?: CustomElementRegistry;
|
|
11
|
+
mode: ShadowRootMode;
|
|
12
|
+
serializable?: boolean;
|
|
13
|
+
slotAssignment?: SlotAssignmentMode;
|
|
14
|
+
};
|
|
15
|
+
static get properties(): {
|
|
16
|
+
/**
|
|
17
|
+
* The value for the role attribute.
|
|
18
|
+
*/
|
|
19
|
+
a11yRole: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
reflect: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The value for the aria-controls attribute.
|
|
25
|
+
*/
|
|
26
|
+
a11yControls: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
reflect: boolean;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The value for the aria-expanded attribute.
|
|
32
|
+
*/
|
|
33
|
+
a11yExpanded: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
reflect: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The value for the aria-activedescendant attribute.
|
|
39
|
+
* Points to the ID of the currently active/highlighted option in a listbox.
|
|
40
|
+
*/
|
|
41
|
+
a11yActivedescendant: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
reflect: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* If set, the label will remain fixed in the active position.
|
|
47
|
+
*/
|
|
48
|
+
activeLabel: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
reflect: boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Defines whether the component will be on lighter or darker backgrounds.
|
|
54
|
+
* @type {'default' | 'inverse'}
|
|
55
|
+
* @default 'default'
|
|
56
|
+
*/
|
|
57
|
+
appearance: "default" | "inverse";
|
|
58
|
+
/**
|
|
59
|
+
* 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].
|
|
60
|
+
*/
|
|
61
|
+
autocapitalize: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
reflect: boolean;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
67
|
+
*/
|
|
68
|
+
autocomplete: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
reflect: boolean;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
74
|
+
*/
|
|
75
|
+
autocorrect: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
reflect: boolean;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Custom help text message for email type validity.
|
|
81
|
+
*/
|
|
82
|
+
customValidityTypeEmail: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* If set, disables the input.
|
|
87
|
+
*/
|
|
88
|
+
disabled: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
reflect: boolean;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
94
|
+
*/
|
|
95
|
+
dvInputOnly: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
reflect: boolean;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
101
|
+
*/
|
|
102
|
+
error: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
reflect: boolean;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Contains the help text message for the current validity error.
|
|
108
|
+
*/
|
|
109
|
+
errorMessage: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Specifies the input mask format.
|
|
114
|
+
*/
|
|
115
|
+
format: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
reflect: boolean;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Flag to indicate if the input currently has focus.
|
|
121
|
+
*/
|
|
122
|
+
hasFocus: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
reflect: boolean;
|
|
125
|
+
attribute: boolean;
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Flag to indicate if the input currently has value.
|
|
129
|
+
*/
|
|
130
|
+
hasValue: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
reflect: boolean;
|
|
133
|
+
attribute: boolean;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* If set, the label will be hidden visually but still accessible to assistive technologies.
|
|
137
|
+
* @private
|
|
138
|
+
*/
|
|
139
|
+
hideLabelVisually: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
reflect: boolean;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* 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.
|
|
145
|
+
*/
|
|
146
|
+
icon: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
reflect: boolean;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
152
|
+
*/
|
|
153
|
+
id: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* The id for input node.
|
|
158
|
+
* @private
|
|
159
|
+
*/
|
|
160
|
+
inputId: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
reflect: boolean;
|
|
163
|
+
attribute: boolean;
|
|
164
|
+
};
|
|
165
|
+
/** Exposes inputmode attribute for input. */
|
|
166
|
+
inputmode: {
|
|
167
|
+
type: StringConstructor;
|
|
168
|
+
reflect: boolean;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Defines the language of an element.
|
|
172
|
+
*/
|
|
173
|
+
lang: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
reflect: boolean;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
179
|
+
*/
|
|
180
|
+
max: {
|
|
181
|
+
type: StringConstructor;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
185
|
+
* **Note**: This attribute is not intended to be used with a `type` or `format` that already has a defined length, such as credit-cards, dates or phone numbers.
|
|
186
|
+
*/
|
|
187
|
+
maxLength: {
|
|
188
|
+
type: NumberConstructor;
|
|
189
|
+
reflect: boolean;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
193
|
+
*/
|
|
194
|
+
min: {
|
|
195
|
+
type: StringConstructor;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* 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`.
|
|
199
|
+
*/
|
|
200
|
+
minLength: {
|
|
201
|
+
type: NumberConstructor;
|
|
202
|
+
reflect: boolean;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Populates the `name` attribute on the input.
|
|
206
|
+
*/
|
|
207
|
+
name: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
reflect: boolean;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
213
|
+
* hides accents.
|
|
214
|
+
*/
|
|
215
|
+
nested: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
reflect: boolean;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* If set, disables auto-validation on blur.
|
|
221
|
+
*/
|
|
222
|
+
noValidate: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
reflect: boolean;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
228
|
+
*/
|
|
229
|
+
onDark: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
reflect: boolean;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Specifies a regular expression the form control's value should match.
|
|
235
|
+
*/
|
|
236
|
+
pattern: {
|
|
237
|
+
type: StringConstructor;
|
|
238
|
+
reflect: boolean;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Define custom placeholder text.
|
|
242
|
+
*/
|
|
243
|
+
placeholder: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
reflect: boolean;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Makes the input read-only, but can be set programmatically.
|
|
249
|
+
*/
|
|
250
|
+
readonly: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
reflect: boolean;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
256
|
+
*/
|
|
257
|
+
required: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
reflect: boolean;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Sets a custom help text message to display for all validityStates.
|
|
263
|
+
*/
|
|
264
|
+
setCustomValidity: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Custom help text message to display when validity = `badInput`.
|
|
269
|
+
*/
|
|
270
|
+
setCustomValidityBadInput: {
|
|
271
|
+
type: StringConstructor;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Custom help text message to display when validity = `customError`.
|
|
275
|
+
*/
|
|
276
|
+
setCustomValidityCustomError: {
|
|
277
|
+
type: StringConstructor;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
281
|
+
*/
|
|
282
|
+
setCustomValidityForType: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
287
|
+
*/
|
|
288
|
+
setCustomValidityRangeOverflow: {
|
|
289
|
+
type: StringConstructor;
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
293
|
+
*/
|
|
294
|
+
setCustomValidityRangeUnderflow: {
|
|
295
|
+
type: StringConstructor;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
299
|
+
*/
|
|
300
|
+
setCustomValidityTooLong: {
|
|
301
|
+
type: StringConstructor;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
305
|
+
*/
|
|
306
|
+
setCustomValidityTooShort: {
|
|
307
|
+
type: StringConstructor;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
311
|
+
*/
|
|
312
|
+
setCustomValidityValueMissing: {
|
|
313
|
+
type: StringConstructor;
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* @ignore
|
|
317
|
+
*/
|
|
318
|
+
showPassword: {
|
|
319
|
+
state: boolean;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Simple makes the input render without a border.
|
|
323
|
+
*/
|
|
324
|
+
simple: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
reflect: boolean;
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* 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`.
|
|
330
|
+
*/
|
|
331
|
+
spellcheck: {
|
|
332
|
+
type: StringConstructor;
|
|
333
|
+
reflect: boolean;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Indicates whether the input is in a dirty state (has been interacted with).
|
|
337
|
+
* @private
|
|
338
|
+
*/
|
|
339
|
+
touched: {
|
|
340
|
+
type: BooleanConstructor;
|
|
341
|
+
reflect: boolean;
|
|
342
|
+
attribute: boolean;
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* Populates the `type` attribute on the input.
|
|
346
|
+
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'}
|
|
347
|
+
* @default 'text'
|
|
348
|
+
*/
|
|
349
|
+
type: "text" | "password" | "email" | "credit-card" | "tel" | "number";
|
|
350
|
+
/**
|
|
351
|
+
* Sets validation mode to re-eval with each input.
|
|
352
|
+
*/
|
|
353
|
+
validateOnInput: {
|
|
354
|
+
type: BooleanConstructor;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Specifies the `validityState` this element is in.
|
|
358
|
+
*/
|
|
359
|
+
validity: {
|
|
360
|
+
type: StringConstructor;
|
|
361
|
+
reflect: boolean;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
365
|
+
*/
|
|
366
|
+
value: {
|
|
367
|
+
type: StringConstructor;
|
|
368
|
+
};
|
|
369
|
+
layout: {
|
|
370
|
+
type: StringConstructor;
|
|
371
|
+
attribute: string;
|
|
372
|
+
reflect: boolean;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Internal Defaults.
|
|
377
|
+
* @private
|
|
378
|
+
* @returns {void}
|
|
379
|
+
*/
|
|
380
|
+
private _initializeDefaults;
|
|
381
|
+
activeLabel: boolean;
|
|
382
|
+
appearance: string;
|
|
383
|
+
icon: boolean;
|
|
384
|
+
disabled: boolean;
|
|
385
|
+
dvInputOnly: boolean;
|
|
386
|
+
hideLabelVisually: boolean;
|
|
387
|
+
max: any;
|
|
388
|
+
maxLength: any;
|
|
389
|
+
min: any;
|
|
390
|
+
minLength: any;
|
|
391
|
+
noValidate: boolean;
|
|
392
|
+
onDark: boolean;
|
|
393
|
+
required: boolean;
|
|
394
|
+
setCustomValidityForType: string;
|
|
395
|
+
/**
|
|
396
|
+
* @private
|
|
397
|
+
*/
|
|
398
|
+
private shape;
|
|
399
|
+
/**
|
|
400
|
+
* @private
|
|
401
|
+
*/
|
|
402
|
+
private size;
|
|
403
|
+
touched: boolean;
|
|
404
|
+
util: AuroInputUtilities;
|
|
405
|
+
validation: AuroFormValidation;
|
|
406
|
+
inputIconName: any;
|
|
407
|
+
showPassword: any;
|
|
408
|
+
validationCCLength: number;
|
|
409
|
+
hasValue: boolean;
|
|
410
|
+
label: string;
|
|
411
|
+
allowedInputTypes: string[];
|
|
412
|
+
/**
|
|
413
|
+
* Credit Card is not included as this caused cursor placement issues.
|
|
414
|
+
* The Safari issue.
|
|
415
|
+
*/
|
|
416
|
+
setSelectionInputTypes: string[];
|
|
417
|
+
dateFormatMap: {
|
|
418
|
+
'mm/dd/yyyy': string;
|
|
419
|
+
'dd/mm/yyyy': string;
|
|
420
|
+
'yyyy/mm/dd': string;
|
|
421
|
+
'yyyy/dd/mm': string;
|
|
422
|
+
'mm/yy': string;
|
|
423
|
+
'yy/mm': string;
|
|
424
|
+
'mm/yyyy': string;
|
|
425
|
+
'yyyy/mm': string;
|
|
426
|
+
yy: string;
|
|
427
|
+
yyyy: string;
|
|
428
|
+
mm: string;
|
|
429
|
+
dd: string;
|
|
430
|
+
'dd/mm': string;
|
|
431
|
+
'mm/dd': string;
|
|
432
|
+
};
|
|
433
|
+
uniqueId: string;
|
|
434
|
+
firstUpdated(): void;
|
|
435
|
+
wrapperElement: Element;
|
|
436
|
+
inputElement: HTMLInputElement;
|
|
437
|
+
labelElement: HTMLLabelElement;
|
|
438
|
+
inputId: string;
|
|
439
|
+
format: any;
|
|
440
|
+
ValidityMessageOverride: any;
|
|
441
|
+
/**
|
|
442
|
+
* Patches the input element to dispatch an 'input' event whenever its value is set programmatically.
|
|
443
|
+
* This ensures that changes to the input's value are consistently communicated, even if not triggered by user input.
|
|
444
|
+
*
|
|
445
|
+
* @param {HTMLInputElement} input - The input element to patch.
|
|
446
|
+
* @returns {void}
|
|
447
|
+
* @private
|
|
448
|
+
*/
|
|
449
|
+
private patchInputEvent;
|
|
450
|
+
/**
|
|
451
|
+
* @private
|
|
452
|
+
* @returns {void} Sets the default help text for the input.
|
|
453
|
+
*/
|
|
454
|
+
private setCustomHelpTextMessage;
|
|
455
|
+
/**
|
|
456
|
+
* LitElement lifecycle method. Called after the DOM has been updated.
|
|
457
|
+
* @param {Map<string, any>} changedProperties - Keys are the names of changed properties, values are the corresponding previous values.
|
|
458
|
+
* @returns {void}
|
|
459
|
+
*/
|
|
460
|
+
updated(changedProperties: Map<string, any>): void;
|
|
461
|
+
skipNextProgrammaticInputEvent: boolean;
|
|
462
|
+
/**
|
|
463
|
+
* @private
|
|
464
|
+
* @returns {void} Notify validity state changed via event.
|
|
465
|
+
*/
|
|
466
|
+
private notifyValidityChange;
|
|
467
|
+
/**
|
|
468
|
+
* Sets up IMasks and logic based on auto-formatting requirements.
|
|
469
|
+
* @private
|
|
470
|
+
* @returns {void}
|
|
471
|
+
*/
|
|
472
|
+
private configureAutoFormatting;
|
|
473
|
+
maskInstance: import("imask").InputMask<import("imask").FactoryArg>;
|
|
474
|
+
value: string;
|
|
475
|
+
formattedDate: any;
|
|
476
|
+
comparisonDate: any;
|
|
477
|
+
/**
|
|
478
|
+
* @private
|
|
479
|
+
* @returns {string}
|
|
480
|
+
*/
|
|
481
|
+
private definePattern;
|
|
482
|
+
/**
|
|
483
|
+
* Required to convert SVG icons from data to HTML string.
|
|
484
|
+
* @private
|
|
485
|
+
* @param {string} icon HTML string for requested icon.
|
|
486
|
+
* @returns {object} Appended HTML for SVG.
|
|
487
|
+
*/
|
|
488
|
+
private getIconAsHtml;
|
|
489
|
+
/**
|
|
490
|
+
* Sends event notifying that the input has changed it's value.
|
|
491
|
+
* @private
|
|
492
|
+
* @returns {void}
|
|
493
|
+
*/
|
|
494
|
+
private notifyValueChanged;
|
|
495
|
+
/**
|
|
496
|
+
* Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
|
|
497
|
+
* @private
|
|
498
|
+
* @return {void}
|
|
499
|
+
*/
|
|
500
|
+
private handleClick;
|
|
501
|
+
/**
|
|
502
|
+
* Function to set element focus.
|
|
503
|
+
* @return {void}
|
|
504
|
+
*/
|
|
505
|
+
focus(): void;
|
|
506
|
+
/**
|
|
507
|
+
* Handles event of clearing input content by clicking the X icon.
|
|
508
|
+
* @private
|
|
509
|
+
* @return {void}
|
|
510
|
+
*/
|
|
511
|
+
private handleClickClear;
|
|
512
|
+
/**
|
|
513
|
+
* @param {Event} event - The input event.
|
|
514
|
+
* @private
|
|
515
|
+
* @returns {void}
|
|
516
|
+
*/
|
|
517
|
+
private handleInput;
|
|
518
|
+
/**
|
|
519
|
+
* Function to support @focusin event.
|
|
520
|
+
* @private
|
|
521
|
+
* @return {void}
|
|
522
|
+
*/
|
|
523
|
+
private handleFocusin;
|
|
524
|
+
hasFocus: boolean;
|
|
525
|
+
/**
|
|
526
|
+
* Function to support @focusout event.
|
|
527
|
+
* @private
|
|
528
|
+
* @return {void}
|
|
529
|
+
*/
|
|
530
|
+
private handleFocusout;
|
|
531
|
+
/**
|
|
532
|
+
* Function to support @blur event.
|
|
533
|
+
* @private
|
|
534
|
+
* @return {void}
|
|
535
|
+
*/
|
|
536
|
+
private handleBlur;
|
|
537
|
+
/**
|
|
538
|
+
* Returns focused element, even if it's in the shadow DOM.
|
|
539
|
+
* @private
|
|
540
|
+
* @param {Object} root - Element to check for focus.
|
|
541
|
+
* @returns {Object}
|
|
542
|
+
*/
|
|
543
|
+
private getActiveElement;
|
|
544
|
+
/**
|
|
545
|
+
* Sets the active descendant element for accessibility.
|
|
546
|
+
* Uses ariaActiveDescendantElement to cross shadow DOM boundaries.
|
|
547
|
+
* This function is used in components that contain `auro-input` to set the active descendant.
|
|
548
|
+
* @private
|
|
549
|
+
* @param {HTMLElement|null} element - The element to set as the active descendant, or null to clear.
|
|
550
|
+
* @returns {void}
|
|
551
|
+
*/
|
|
552
|
+
private setActiveDescendant;
|
|
553
|
+
/**
|
|
554
|
+
* Validates value.
|
|
555
|
+
* @param {boolean} [force=false] - Whether to force validation.
|
|
556
|
+
*/
|
|
557
|
+
validate(force?: boolean): void;
|
|
558
|
+
/**
|
|
559
|
+
* Resets component to initial state, including resetting the touched state and validity.
|
|
560
|
+
* @returns {void}
|
|
561
|
+
*/
|
|
562
|
+
reset(): void;
|
|
563
|
+
/**
|
|
564
|
+
* Clears the input value.
|
|
565
|
+
*/
|
|
566
|
+
clear(): void;
|
|
567
|
+
/**
|
|
568
|
+
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
569
|
+
* @private
|
|
570
|
+
* @returns {void}
|
|
571
|
+
*/
|
|
572
|
+
private configureDataForType;
|
|
573
|
+
lengthForType: any;
|
|
574
|
+
inputmode: any;
|
|
575
|
+
/**
|
|
576
|
+
* Validates against list of supported this.allowedInputTypes; return type=text if invalid request.
|
|
577
|
+
* @private
|
|
578
|
+
* @param {string} type Value entered into component prop.
|
|
579
|
+
* @returns {string} Iterates over allowed types array.
|
|
580
|
+
*/
|
|
581
|
+
private getInputType;
|
|
582
|
+
/**
|
|
583
|
+
* Determines default help text string.
|
|
584
|
+
* @private
|
|
585
|
+
* @returns {string} Evaluates pre-determined help text.
|
|
586
|
+
*/
|
|
587
|
+
private getHelpText;
|
|
588
|
+
/**
|
|
589
|
+
* Function to support show-password feature.
|
|
590
|
+
* @private
|
|
591
|
+
* @returns {void}
|
|
592
|
+
*/
|
|
593
|
+
private handleClickShowPassword;
|
|
594
|
+
/**
|
|
595
|
+
* Support placeholder text.
|
|
596
|
+
* @private
|
|
597
|
+
* @returns {void}
|
|
598
|
+
*/
|
|
599
|
+
private get placeholderStr();
|
|
600
|
+
/**
|
|
601
|
+
* Defines placement of input icon based on type, used with classMap.
|
|
602
|
+
* @private
|
|
603
|
+
* @returns {boolean}
|
|
604
|
+
*/
|
|
605
|
+
private defineInputIcon;
|
|
606
|
+
/**
|
|
607
|
+
* Defines padding of input label based on type, used with classMap.
|
|
608
|
+
* @private
|
|
609
|
+
* @returns {boolean}
|
|
610
|
+
*/
|
|
611
|
+
private defineLabelPadding;
|
|
612
|
+
/**
|
|
613
|
+
* Function to support credit-card feature type.
|
|
614
|
+
* @private
|
|
615
|
+
* @returns {void}
|
|
616
|
+
*/
|
|
617
|
+
private processCreditCard;
|
|
618
|
+
errorMessage: any;
|
|
619
|
+
/**
|
|
620
|
+
* Function to support credit-card feature type.
|
|
621
|
+
* @private
|
|
622
|
+
* @returns {object} JSON with data for credit card formatting.
|
|
623
|
+
*/
|
|
624
|
+
private matchInputValueToCreditCard;
|
|
625
|
+
}
|
|
626
|
+
import { AuroElement } from '../../layoutElement/src/auroElement.js';
|
|
627
|
+
import { AuroInputUtilities } from "./utilities.js";
|
|
628
|
+
import AuroFormValidation from '@aurodesignsystem/form-validation';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function to support the selected of a string in the set lang.
|
|
3
|
+
* @param {string} lang - Requested lang for content return.
|
|
4
|
+
* @param {string} requestedString - String requested in context.
|
|
5
|
+
* @private
|
|
6
|
+
* @returns {string} Value of string request.
|
|
7
|
+
*/
|
|
8
|
+
export default function i18n(lang: string, requestedString: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
* @param {object} element - Pass in the scope of the element in use.
|
|
12
|
+
*/
|
|
13
|
+
export function notifyOnLangChange(element: object): void;
|
|
14
|
+
/**
|
|
15
|
+
* @private
|
|
16
|
+
* @param {object} element - Pass in the scope of the element in use.
|
|
17
|
+
*/
|
|
18
|
+
export function stopNotifyingOnLangChange(element: object): void;
|