@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.3 → 0.0.0-pr624.31

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 (113) 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 +47 -14
  8. package/components/checkbox/demo/api.min.js +35 -29
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +35 -29
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  13. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  14. package/components/checkbox/dist/index.js +35 -29
  15. package/components/checkbox/dist/registered.js +35 -29
  16. package/components/combobox/demo/api.md +101 -2
  17. package/components/combobox/demo/api.min.js +2935 -794
  18. package/components/combobox/demo/index.md +6 -30
  19. package/components/combobox/demo/index.min.js +2935 -794
  20. package/components/combobox/dist/auro-combobox.d.ts +45 -16
  21. package/components/combobox/dist/index.js +2832 -832
  22. package/components/combobox/dist/registered.js +2832 -832
  23. package/components/counter/demo/api.md +21 -19
  24. package/components/counter/demo/api.min.js +3648 -929
  25. package/components/counter/demo/index.md +99 -34
  26. package/components/counter/demo/index.min.js +3648 -929
  27. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  28. package/components/counter/dist/auro-counter-group.d.ts +105 -6
  29. package/components/counter/dist/auro-counter.d.ts +6 -0
  30. package/components/counter/dist/helptextVersion.d.ts +2 -0
  31. package/components/counter/dist/iconVersion.d.ts +1 -1
  32. package/components/counter/dist/index.js +3648 -929
  33. package/components/counter/dist/registered.js +3648 -929
  34. package/components/datepicker/demo/api.md +36 -19
  35. package/components/datepicker/demo/api.min.js +14662 -10980
  36. package/components/datepicker/demo/index.md +80 -0
  37. package/components/datepicker/demo/index.min.js +14662 -10980
  38. package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
  39. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  40. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  41. package/components/datepicker/dist/index.js +11706 -8024
  42. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  43. package/components/datepicker/dist/registered.js +11706 -8024
  44. package/components/dropdown/demo/api.md +6 -7
  45. package/components/dropdown/demo/api.min.js +238 -144
  46. package/components/dropdown/demo/index.md +57 -9
  47. package/components/dropdown/demo/index.min.js +238 -144
  48. package/components/dropdown/dist/auro-dropdown.d.ts +10 -9
  49. package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
  50. package/components/dropdown/dist/index.js +238 -144
  51. package/components/dropdown/dist/registered.js +238 -144
  52. package/components/form/demo/api.min.js +1 -1
  53. package/components/form/demo/index.min.js +1 -1
  54. package/components/form/dist/index.js +1 -1
  55. package/components/form/dist/registered.js +1 -1
  56. package/components/helptext/dist/index.js +2 -2
  57. package/components/helptext/dist/registered.js +2 -2
  58. package/components/input/README.md +1 -1
  59. package/components/input/demo/api.md +133 -97
  60. package/components/input/demo/api.min.js +972 -269
  61. package/components/input/demo/index.md +14 -14
  62. package/components/input/demo/index.min.js +971 -268
  63. package/components/input/demo/readme.md +1 -1
  64. package/components/input/dist/auro-input.d.ts +197 -15
  65. package/components/input/dist/base-input.d.ts +32 -8
  66. package/components/input/dist/buttonVersion.d.ts +1 -1
  67. package/components/input/dist/iconVersion.d.ts +1 -1
  68. package/components/input/dist/index.js +971 -268
  69. package/components/input/dist/registered.js +971 -268
  70. package/components/layoutElement/dist/index.js +13 -10
  71. package/components/menu/demo/api.html +38 -0
  72. package/components/menu/demo/api.md +68 -7
  73. package/components/menu/demo/api.min.js +278 -42
  74. package/components/menu/demo/index.min.js +278 -42
  75. package/components/menu/dist/auro-menu.d.ts +28 -5
  76. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  77. package/components/menu/dist/iconVersion.d.ts +1 -1
  78. package/components/menu/dist/index.js +278 -42
  79. package/components/menu/dist/registered.js +278 -42
  80. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  81. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  82. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  83. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  84. package/components/radio/demo/api.md +7 -7
  85. package/components/radio/demo/api.min.js +16 -13
  86. package/components/radio/demo/index.min.js +16 -13
  87. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  88. package/components/radio/dist/auro-radio.d.ts +1 -1
  89. package/components/radio/dist/index.js +16 -13
  90. package/components/radio/dist/registered.js +16 -13
  91. package/components/select/demo/api.js +2 -0
  92. package/components/select/demo/api.md +124 -13
  93. package/components/select/demo/api.min.js +2802 -538
  94. package/components/select/demo/index.html +1 -0
  95. package/components/select/demo/index.md +325 -763
  96. package/components/select/demo/index.min.js +2795 -543
  97. package/components/select/dist/auro-select.d.ts +112 -11
  98. package/components/select/dist/helptextVersion.d.ts +2 -0
  99. package/components/select/dist/index.js +2538 -427
  100. package/components/select/dist/registered.js +2538 -427
  101. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  102. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  103. package/package.json +6 -4
  104. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  105. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  106. /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  107. /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  108. /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  109. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  110. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  111. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  112. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  113. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -20,7 +20,7 @@ The following sections are editable by making changes to the following files:
20
20
  # Input
21
21
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
22
22
  <!-- The below content is automatically added from ./docs/partials/description.md -->
23
- Use the `<auro-input>` custom element to create basic single-line text fields. Supports type `text`, `password`, and `email` with validation, required input, error states and a secondary `bordered` theme. Use the slots `label` and `helptext` for additional content support.
23
+ Use the `<auro-input>` custom element to create basic single-line text fields. Supports type `text`, `password`, and `email` with validation, required input, error states and a secondary `bordered` theme. Use the slots `label` and `helpText` for additional content support.
24
24
  <!-- AURO-GENERATED-CONTENT:END -->
25
25
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeAddlInfo.md) -->
26
26
  <!-- The below content is automatically added from ./docs/partials/readmeAddlInfo.md -->
@@ -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,25 +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 {object} - Returns classmap configuration for html5 inputs in all layouts.
211
+ * @returns {object} - Returns classmap.
38
212
  */
39
213
  private get commonInputClasses();
40
214
  /**
41
- * Returns classmap configuration for html5 inputs in all layouts.
215
+ * Returns classmap configuration for html5 inputs in each layout.
42
216
  * @private
43
- * @return {object} - Returns classmap configuration for "classic" html5 inputs.
217
+ * @returns {object} - Returns classmap.
44
218
  */
45
219
  private get legacyInputClasses();
46
- get commonWrapperClasses(): {
47
- wrapper: boolean;
48
- withValue: boolean;
49
- hasFocus: boolean;
50
- };
51
- get helpTextClasses(): {
52
- helpTextWrapper: boolean;
53
- leftIndent: boolean;
54
- rightIndent: boolean;
55
- };
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();
56
238
  /**
57
239
  * Function to determine if the input is meant to render an icon visualizing the input type.
58
240
  * @private
@@ -103,9 +285,9 @@ export class AuroInput extends BaseInput {
103
285
  */
104
286
  private renderHtmlHelpText;
105
287
  /**
106
- * Returns HTML for the default layout.
288
+ * Returns HTML for the classic layout.
107
289
  * @private
108
- * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
290
+ * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
109
291
  */
110
292
  private renderLayoutClassic;
111
293
  /**
@@ -4,14 +4,19 @@
4
4
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
5
5
  * @attr id
6
6
  *
7
- * @slot helptext - Sets the help text displayed below the input.
7
+ * @slot helpText - Sets the help text displayed below the input.
8
8
  * @slot label - Sets the label text for the input.
9
+ * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
10
+ * @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
9
11
  *
10
12
  * @csspart wrapper - Use for customizing the style of the root element
11
13
  * @csspart label - Use for customizing the style of the label element
12
14
  * @csspart helpText - Use for customizing the style of the helpText element
15
+ * @csspart input - Use for customizing the style of the input element
13
16
  * @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
14
17
  * @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
18
+ * @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
19
+ * @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
15
20
  * @event input - Event fires when the value of an `auro-input` has been changed.
16
21
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
17
22
  */
@@ -22,7 +27,6 @@ export default class BaseInput extends AuroElement {
22
27
  */
23
28
  a11yRole: {
24
29
  type: StringConstructor;
25
- attribute: boolean;
26
30
  reflect: boolean;
27
31
  };
28
32
  /**
@@ -30,7 +34,6 @@ export default class BaseInput extends AuroElement {
30
34
  */
31
35
  a11yExpanded: {
32
36
  type: BooleanConstructor;
33
- attribute: boolean;
34
37
  reflect: boolean;
35
38
  };
36
39
  /**
@@ -38,7 +41,6 @@ export default class BaseInput extends AuroElement {
38
41
  */
39
42
  a11yControls: {
40
43
  type: StringConstructor;
41
- attribute: boolean;
42
44
  reflect: boolean;
43
45
  };
44
46
  /**
@@ -53,6 +55,7 @@ export default class BaseInput extends AuroElement {
53
55
  */
54
56
  autocapitalize: {
55
57
  type: StringConstructor;
58
+ reflect: boolean;
56
59
  };
57
60
  /**
58
61
  * An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
@@ -66,6 +69,7 @@ export default class BaseInput extends AuroElement {
66
69
  */
67
70
  autocorrect: {
68
71
  type: StringConstructor;
72
+ reflect: boolean;
69
73
  };
70
74
  /**
71
75
  * If set, disables the input.
@@ -104,7 +108,6 @@ export default class BaseInput extends AuroElement {
104
108
  /** Exposes inputmode attribute for input. */
105
109
  inputmode: {
106
110
  type: StringConstructor;
107
- attribute: boolean;
108
111
  reflect: boolean;
109
112
  };
110
113
  /**
@@ -112,6 +115,7 @@ export default class BaseInput extends AuroElement {
112
115
  */
113
116
  lang: {
114
117
  type: StringConstructor;
118
+ reflect: boolean;
115
119
  };
116
120
  /**
117
121
  * The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
@@ -124,6 +128,7 @@ export default class BaseInput extends AuroElement {
124
128
  */
125
129
  maxLength: {
126
130
  type: NumberConstructor;
131
+ reflect: boolean;
127
132
  };
128
133
  /**
129
134
  * The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
@@ -136,12 +141,22 @@ export default class BaseInput extends AuroElement {
136
141
  */
137
142
  minLength: {
138
143
  type: NumberConstructor;
144
+ reflect: boolean;
139
145
  };
140
146
  /**
141
147
  * Populates the `name` attribute on the input.
142
148
  */
143
149
  name: {
144
150
  type: StringConstructor;
151
+ reflect: boolean;
152
+ };
153
+ /**
154
+ * Sets styles for nested operation - removes borders, hides help + error text, and
155
+ * hides accents.
156
+ */
157
+ nested: {
158
+ type: BooleanConstructor;
159
+ reflect: boolean;
145
160
  };
146
161
  /**
147
162
  * If set, disables auto-validation on blur.
@@ -169,6 +184,7 @@ export default class BaseInput extends AuroElement {
169
184
  */
170
185
  placeholder: {
171
186
  type: StringConstructor;
187
+ reflect: boolean;
172
188
  };
173
189
  /**
174
190
  * Makes the input read-only, but can be set programmatically.
@@ -244,6 +260,13 @@ export default class BaseInput extends AuroElement {
244
260
  setCustomValidityValueMissing: {
245
261
  type: StringConstructor;
246
262
  };
263
+ /**
264
+ * Simple makes the input render without a border.
265
+ */
266
+ simple: {
267
+ type: BooleanConstructor;
268
+ reflect: boolean;
269
+ };
247
270
  /**
248
271
  * Custom help text message for email type validity.
249
272
  */
@@ -255,6 +278,7 @@ export default class BaseInput extends AuroElement {
255
278
  */
256
279
  spellcheck: {
257
280
  type: StringConstructor;
281
+ reflect: boolean;
258
282
  };
259
283
  /**
260
284
  * 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 +292,7 @@ export default class BaseInput extends AuroElement {
268
292
  */
269
293
  value: {
270
294
  type: StringConstructor;
295
+ reflect: boolean;
271
296
  };
272
297
  /**
273
298
  * Sets validation mode to re-eval with each input.
@@ -290,8 +315,8 @@ export default class BaseInput extends AuroElement {
290
315
  */
291
316
  touched: boolean;
292
317
  /**
318
+ * The id for input node.
293
319
  * @private
294
- * id for input node
295
320
  */
296
321
  inputId: {
297
322
  type: StringConstructor;
@@ -415,10 +440,9 @@ export default class BaseInput extends AuroElement {
415
440
  private handleClick;
416
441
  /**
417
442
  * Function to set element focus.
418
- * @private
419
443
  * @return {void}
420
444
  */
421
- private focus;
445
+ focus(): void;
422
446
  /**
423
447
  * Handles event of clearing input content by clicking the X icon.
424
448
  * @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;