@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.2 → 0.0.0-pr624.21

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.
Files changed (108) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +13 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +1292 -79
  5. package/components/bibtemplate/dist/registered.js +1292 -79
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.md +8 -9
  8. package/components/checkbox/demo/api.min.js +30 -24
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +30 -24
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  13. package/components/checkbox/dist/index.js +30 -24
  14. package/components/checkbox/dist/registered.js +30 -24
  15. package/components/combobox/demo/api.md +53 -0
  16. package/components/combobox/demo/api.min.js +2898 -753
  17. package/components/combobox/demo/index.md +6 -0
  18. package/components/combobox/demo/index.min.js +2898 -753
  19. package/components/combobox/dist/auro-combobox.d.ts +12 -12
  20. package/components/combobox/dist/index.js +2646 -642
  21. package/components/combobox/dist/registered.js +2646 -642
  22. package/components/counter/demo/api.md +21 -19
  23. package/components/counter/demo/api.min.js +3648 -929
  24. package/components/counter/demo/index.md +99 -34
  25. package/components/counter/demo/index.min.js +3648 -929
  26. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  27. package/components/counter/dist/auro-counter-group.d.ts +105 -6
  28. package/components/counter/dist/auro-counter.d.ts +6 -0
  29. package/components/counter/dist/helptextVersion.d.ts +2 -0
  30. package/components/counter/dist/iconVersion.d.ts +1 -1
  31. package/components/counter/dist/index.js +3648 -929
  32. package/components/counter/dist/registered.js +3648 -929
  33. package/components/datepicker/demo/api.md +36 -19
  34. package/components/datepicker/demo/api.min.js +11437 -7744
  35. package/components/datepicker/demo/index.md +80 -0
  36. package/components/datepicker/demo/index.min.js +11437 -7744
  37. package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
  38. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  39. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  40. package/components/datepicker/dist/index.js +13847 -10154
  41. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  42. package/components/datepicker/dist/registered.js +13847 -10154
  43. package/components/dropdown/demo/api.md +6 -7
  44. package/components/dropdown/demo/api.min.js +238 -144
  45. package/components/dropdown/demo/index.md +57 -9
  46. package/components/dropdown/demo/index.min.js +238 -144
  47. package/components/dropdown/dist/auro-dropdown.d.ts +10 -9
  48. package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
  49. package/components/dropdown/dist/index.js +238 -144
  50. package/components/dropdown/dist/registered.js +238 -144
  51. package/components/form/demo/api.min.js +1 -1
  52. package/components/form/demo/index.min.js +1 -1
  53. package/components/form/dist/index.js +1 -1
  54. package/components/form/dist/registered.js +1 -1
  55. package/components/helptext/dist/index.js +2 -2
  56. package/components/helptext/dist/registered.js +2 -2
  57. package/components/input/demo/api.md +63 -56
  58. package/components/input/demo/api.min.js +983 -269
  59. package/components/input/demo/index.min.js +982 -268
  60. package/components/input/dist/auro-input.d.ts +202 -14
  61. package/components/input/dist/base-input.d.ts +30 -7
  62. package/components/input/dist/buttonVersion.d.ts +1 -1
  63. package/components/input/dist/iconVersion.d.ts +1 -1
  64. package/components/input/dist/index.js +982 -268
  65. package/components/input/dist/registered.js +982 -268
  66. package/components/layoutElement/dist/index.js +13 -10
  67. package/components/menu/demo/api.html +38 -0
  68. package/components/menu/demo/api.md +68 -7
  69. package/components/menu/demo/api.min.js +278 -42
  70. package/components/menu/demo/index.min.js +278 -42
  71. package/components/menu/dist/auro-menu.d.ts +28 -5
  72. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  73. package/components/menu/dist/iconVersion.d.ts +1 -1
  74. package/components/menu/dist/index.js +278 -42
  75. package/components/menu/dist/registered.js +278 -42
  76. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  77. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  78. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  79. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  80. package/components/radio/demo/api.md +2 -2
  81. package/components/radio/demo/api.min.js +10 -7
  82. package/components/radio/demo/index.min.js +10 -7
  83. package/components/radio/dist/auro-radio.d.ts +1 -1
  84. package/components/radio/dist/index.js +10 -7
  85. package/components/radio/dist/registered.js +10 -7
  86. package/components/select/demo/api.js +2 -0
  87. package/components/select/demo/api.md +78 -12
  88. package/components/select/demo/api.min.js +2797 -538
  89. package/components/select/demo/index.html +1 -0
  90. package/components/select/demo/index.md +325 -763
  91. package/components/select/demo/index.min.js +2790 -543
  92. package/components/select/dist/auro-select.d.ts +111 -11
  93. package/components/select/dist/helptextVersion.d.ts +2 -0
  94. package/components/select/dist/index.js +2533 -427
  95. package/components/select/dist/registered.js +2533 -427
  96. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  97. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  98. package/package.json +6 -4
  99. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  100. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  101. /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  102. /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  103. /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  104. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  105. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  106. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  107. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  108. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -1,4 +1,178 @@
1
1
  export class AuroInput extends BaseInput {
2
+ static get properties(): {
3
+ /**
4
+ * @type {boolean}
5
+ */
6
+ hideInputVisually: boolean;
7
+ a11yRole: {
8
+ type: StringConstructor;
9
+ reflect: boolean;
10
+ };
11
+ a11yExpanded: {
12
+ type: BooleanConstructor;
13
+ reflect: boolean;
14
+ };
15
+ a11yControls: {
16
+ type: StringConstructor;
17
+ reflect: boolean;
18
+ };
19
+ activeLabel: {
20
+ type: BooleanConstructor;
21
+ reflect: boolean;
22
+ };
23
+ autocapitalize: {
24
+ type: StringConstructor;
25
+ reflect: boolean;
26
+ };
27
+ autocomplete: {
28
+ type: StringConstructor;
29
+ reflect: boolean;
30
+ };
31
+ autocorrect: {
32
+ type: StringConstructor;
33
+ reflect: boolean;
34
+ };
35
+ disabled: {
36
+ type: BooleanConstructor;
37
+ reflect: boolean;
38
+ };
39
+ error: {
40
+ type: StringConstructor;
41
+ reflect: boolean;
42
+ };
43
+ errorMessage: {
44
+ type: StringConstructor;
45
+ };
46
+ format: {
47
+ type: StringConstructor;
48
+ reflect: boolean;
49
+ };
50
+ icon: {
51
+ type: BooleanConstructor;
52
+ reflect: boolean;
53
+ };
54
+ inputmode: {
55
+ type: StringConstructor;
56
+ reflect: boolean;
57
+ };
58
+ lang: {
59
+ type: StringConstructor;
60
+ reflect: boolean;
61
+ };
62
+ max: {
63
+ type: StringConstructor;
64
+ };
65
+ maxLength: {
66
+ type: NumberConstructor;
67
+ reflect: boolean;
68
+ };
69
+ min: {
70
+ type: StringConstructor;
71
+ };
72
+ minLength: {
73
+ type: NumberConstructor;
74
+ reflect: boolean;
75
+ };
76
+ name: {
77
+ type: StringConstructor;
78
+ reflect: boolean;
79
+ };
80
+ nested: {
81
+ type: BooleanConstructor;
82
+ reflect: boolean;
83
+ };
84
+ noValidate: {
85
+ type: BooleanConstructor;
86
+ reflect: boolean;
87
+ };
88
+ onDark: {
89
+ type: BooleanConstructor;
90
+ reflect: boolean;
91
+ };
92
+ pattern: {
93
+ type: StringConstructor;
94
+ reflect: boolean;
95
+ };
96
+ placeholder: {
97
+ type: StringConstructor;
98
+ reflect: boolean;
99
+ };
100
+ readonly: {
101
+ type: BooleanConstructor;
102
+ reflect: boolean;
103
+ };
104
+ required: {
105
+ type: BooleanConstructor;
106
+ reflect: boolean;
107
+ };
108
+ showPassword: {
109
+ state: boolean;
110
+ };
111
+ setCustomValidity: {
112
+ type: StringConstructor;
113
+ };
114
+ setCustomValidityBadInput: {
115
+ type: StringConstructor;
116
+ };
117
+ setCustomValidityCustomError: {
118
+ type: StringConstructor;
119
+ };
120
+ setCustomValidityForType: {
121
+ type: StringConstructor;
122
+ };
123
+ setCustomValidityRangeOverflow: {
124
+ type: StringConstructor;
125
+ };
126
+ setCustomValidityRangeUnderflow: {
127
+ type: StringConstructor;
128
+ };
129
+ setCustomValidityTooLong: {
130
+ type: StringConstructor;
131
+ };
132
+ setCustomValidityTooShort: {
133
+ type: StringConstructor;
134
+ };
135
+ setCustomValidityValueMissing: {
136
+ type: StringConstructor;
137
+ };
138
+ simple: {
139
+ type: BooleanConstructor;
140
+ reflect: boolean;
141
+ };
142
+ customValidityTypeEmail: {
143
+ type: StringConstructor;
144
+ };
145
+ spellcheck: {
146
+ type: StringConstructor;
147
+ reflect: boolean;
148
+ };
149
+ type: {
150
+ type: StringConstructor;
151
+ reflect: boolean;
152
+ };
153
+ value: {
154
+ type: StringConstructor;
155
+ reflect: boolean;
156
+ };
157
+ validateOnInput: {
158
+ type: BooleanConstructor;
159
+ };
160
+ validity: {
161
+ type: StringConstructor;
162
+ reflect: boolean;
163
+ };
164
+ touched: boolean;
165
+ inputId: {
166
+ type: StringConstructor;
167
+ reflect: boolean;
168
+ attribute: boolean;
169
+ };
170
+ layout: {
171
+ type: StringConstructor;
172
+ attribute: string;
173
+ reflect: boolean;
174
+ };
175
+ };
2
176
  static get styles(): import("lit").CSSResult[];
3
177
  /**
4
178
  * This will register this element with the browser.
@@ -34,19 +208,33 @@ export class AuroInput extends BaseInput {
34
208
  /**
35
209
  * Returns classmap configuration for html5 inputs in all layouts.
36
210
  * @private
37
- * @returns {void}
211
+ * @returns {object} - Returns classmap.
38
212
  */
39
213
  private get commonInputClasses();
40
- get commonWrapperClasses(): {
41
- wrapper: boolean;
42
- withValue: boolean;
43
- hasFocus: boolean;
44
- };
45
- get helpTextClasses(): {
46
- helpTextWrapper: boolean;
47
- leftIndent: boolean;
48
- rightIndent: boolean;
49
- };
214
+ /**
215
+ * Returns classmap configuration for html5 inputs in each layout.
216
+ * @private
217
+ * @returns {object} - Returns classmap.
218
+ */
219
+ private get legacyInputClasses();
220
+ /**
221
+ * Returns classmap configuration for wrapper elements in each layout.
222
+ * @private
223
+ * @returns {object} - Returns classmap.
224
+ */
225
+ private get commonWrapperClasses();
226
+ /**
227
+ * Returns classmap configuration for accent elements in each layout.
228
+ * @private
229
+ * @returns {object} - Returns classmap.
230
+ */
231
+ private get commonAccentClasses();
232
+ /**
233
+ * Returns classmap configuration for helpText elements in each layout.
234
+ * @private
235
+ * @returns {object} - Returns classmap.
236
+ */
237
+ private get helpTextClasses();
50
238
  /**
51
239
  * Function to determine if the input is meant to render an icon visualizing the input type.
52
240
  * @private
@@ -68,7 +256,7 @@ export class AuroInput extends BaseInput {
68
256
  /**
69
257
  * Returns HTML for the HTML5 input element.
70
258
  * @private
71
- * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
259
+ * @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
72
260
  * @returns {html} - Returns HTML for the HTML5 input element.
73
261
  */
74
262
  private renderHtmlInput;
@@ -97,9 +285,9 @@ export class AuroInput extends BaseInput {
97
285
  */
98
286
  private renderHtmlHelpText;
99
287
  /**
100
- * Returns HTML for the default layout.
288
+ * Returns HTML for the classic layout.
101
289
  * @private
102
- * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
290
+ * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
103
291
  */
104
292
  private renderLayoutClassic;
105
293
  /**
@@ -6,12 +6,16 @@
6
6
  *
7
7
  * @slot helptext - Sets the help text displayed below the input.
8
8
  * @slot label - Sets the label text for the input.
9
+ * @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
9
10
  *
10
11
  * @csspart wrapper - Use for customizing the style of the root element
11
12
  * @csspart label - Use for customizing the style of the label element
12
13
  * @csspart helpText - Use for customizing the style of the helpText element
14
+ * @csspart input - Use for customizing the style of the input element
13
15
  * @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
14
16
  * @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
17
+ * @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
18
+ * @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
15
19
  * @event input - Event fires when the value of an `auro-input` has been changed.
16
20
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
17
21
  */
@@ -22,7 +26,6 @@ export default class BaseInput extends AuroElement {
22
26
  */
23
27
  a11yRole: {
24
28
  type: StringConstructor;
25
- attribute: boolean;
26
29
  reflect: boolean;
27
30
  };
28
31
  /**
@@ -30,7 +33,6 @@ export default class BaseInput extends AuroElement {
30
33
  */
31
34
  a11yExpanded: {
32
35
  type: BooleanConstructor;
33
- attribute: boolean;
34
36
  reflect: boolean;
35
37
  };
36
38
  /**
@@ -38,7 +40,6 @@ export default class BaseInput extends AuroElement {
38
40
  */
39
41
  a11yControls: {
40
42
  type: StringConstructor;
41
- attribute: boolean;
42
43
  reflect: boolean;
43
44
  };
44
45
  /**
@@ -53,6 +54,7 @@ export default class BaseInput extends AuroElement {
53
54
  */
54
55
  autocapitalize: {
55
56
  type: StringConstructor;
57
+ reflect: boolean;
56
58
  };
57
59
  /**
58
60
  * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
@@ -66,6 +68,7 @@ export default class BaseInput extends AuroElement {
66
68
  */
67
69
  autocorrect: {
68
70
  type: StringConstructor;
71
+ reflect: boolean;
69
72
  };
70
73
  /**
71
74
  * If set, disables the input.
@@ -104,7 +107,6 @@ export default class BaseInput extends AuroElement {
104
107
  /** Exposes inputmode attribute for input. */
105
108
  inputmode: {
106
109
  type: StringConstructor;
107
- attribute: boolean;
108
110
  reflect: boolean;
109
111
  };
110
112
  /**
@@ -112,6 +114,7 @@ export default class BaseInput extends AuroElement {
112
114
  */
113
115
  lang: {
114
116
  type: StringConstructor;
117
+ reflect: boolean;
115
118
  };
116
119
  /**
117
120
  * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
@@ -124,6 +127,7 @@ export default class BaseInput extends AuroElement {
124
127
  */
125
128
  maxLength: {
126
129
  type: NumberConstructor;
130
+ reflect: boolean;
127
131
  };
128
132
  /**
129
133
  * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
@@ -136,12 +140,22 @@ export default class BaseInput extends AuroElement {
136
140
  */
137
141
  minLength: {
138
142
  type: NumberConstructor;
143
+ reflect: boolean;
139
144
  };
140
145
  /**
141
146
  * Populates the `name` attribute on the input.
142
147
  */
143
148
  name: {
144
149
  type: StringConstructor;
150
+ reflect: boolean;
151
+ };
152
+ /**
153
+ * Sets styles for nested operation - removes borders, hides help + error text, and
154
+ * hides accents.
155
+ */
156
+ nested: {
157
+ type: BooleanConstructor;
158
+ reflect: boolean;
145
159
  };
146
160
  /**
147
161
  * If set, disables auto-validation on blur.
@@ -169,6 +183,7 @@ export default class BaseInput extends AuroElement {
169
183
  */
170
184
  placeholder: {
171
185
  type: StringConstructor;
186
+ reflect: boolean;
172
187
  };
173
188
  /**
174
189
  * Makes the input read-only, but can be set programmatically.
@@ -244,6 +259,13 @@ export default class BaseInput extends AuroElement {
244
259
  setCustomValidityValueMissing: {
245
260
  type: StringConstructor;
246
261
  };
262
+ /**
263
+ * Simple makes the input render without a border.
264
+ */
265
+ simple: {
266
+ type: BooleanConstructor;
267
+ reflect: boolean;
268
+ };
247
269
  /**
248
270
  * Custom help text message for email type validity.
249
271
  */
@@ -255,6 +277,7 @@ export default class BaseInput extends AuroElement {
255
277
  */
256
278
  spellcheck: {
257
279
  type: StringConstructor;
280
+ reflect: boolean;
258
281
  };
259
282
  /**
260
283
  * Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `date`, `tel` or `text`. If given value is not allowed or set, defaults to `text`.
@@ -268,6 +291,7 @@ export default class BaseInput extends AuroElement {
268
291
  */
269
292
  value: {
270
293
  type: StringConstructor;
294
+ reflect: boolean;
271
295
  };
272
296
  /**
273
297
  * Sets validation mode to re-eval with each input.
@@ -290,8 +314,8 @@ export default class BaseInput extends AuroElement {
290
314
  */
291
315
  touched: boolean;
292
316
  /**
317
+ * The id for input node.
293
318
  * @private
294
- * id for input node
295
319
  */
296
320
  inputId: {
297
321
  type: StringConstructor;
@@ -415,10 +439,9 @@ export default class BaseInput extends AuroElement {
415
439
  private handleClick;
416
440
  /**
417
441
  * Function to set element focus.
418
- * @private
419
442
  * @return {void}
420
443
  */
421
- private focus;
444
+ focus(): void;
422
445
  /**
423
446
  * Handles event of clearing input content by clicking the X icon.
424
447
  * @private
@@ -1,2 +1,2 @@
1
- declare const _default: "9.3.0";
1
+ declare const _default: "11.0.0";
2
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const _default: "8.0.1";
1
+ declare const _default: "8.0.4";
2
2
  export default _default;