@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.4 → 0.0.0-pr624.40

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 (114) 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 +44 -31
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +44 -31
  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 +44 -31
  15. package/components/checkbox/dist/registered.js +44 -31
  16. package/components/combobox/demo/api.md +100 -2
  17. package/components/combobox/demo/api.min.js +3202 -759
  18. package/components/combobox/demo/index.md +6 -30
  19. package/components/combobox/demo/index.min.js +3202 -759
  20. package/components/combobox/dist/auro-combobox.d.ts +37 -16
  21. package/components/combobox/dist/index.js +3091 -789
  22. package/components/combobox/dist/registered.js +3091 -789
  23. package/components/counter/demo/api.html +1 -0
  24. package/components/counter/demo/api.md +21 -19
  25. package/components/counter/demo/api.min.js +3324 -614
  26. package/components/counter/demo/index.html +1 -0
  27. package/components/counter/demo/index.md +103 -34
  28. package/components/counter/demo/index.min.js +3324 -614
  29. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  30. package/components/counter/dist/auro-counter-group.d.ts +89 -6
  31. package/components/counter/dist/auro-counter.d.ts +6 -0
  32. package/components/counter/dist/helptextVersion.d.ts +2 -0
  33. package/components/counter/dist/iconVersion.d.ts +1 -1
  34. package/components/counter/dist/index.js +3324 -614
  35. package/components/counter/dist/registered.js +3324 -614
  36. package/components/datepicker/demo/api.md +36 -19
  37. package/components/datepicker/demo/api.min.js +11976 -8000
  38. package/components/datepicker/demo/index.md +80 -0
  39. package/components/datepicker/demo/index.min.js +11976 -8000
  40. package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
  41. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  42. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  43. package/components/datepicker/dist/index.js +12238 -8262
  44. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  45. package/components/datepicker/dist/registered.js +12238 -8262
  46. package/components/dropdown/demo/api.md +8 -9
  47. package/components/dropdown/demo/api.min.js +551 -147
  48. package/components/dropdown/demo/index.md +57 -9
  49. package/components/dropdown/demo/index.min.js +551 -147
  50. package/components/dropdown/dist/auro-dropdown.d.ts +28 -9
  51. package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
  52. package/components/dropdown/dist/index.js +551 -147
  53. package/components/dropdown/dist/registered.js +551 -147
  54. package/components/form/demo/api.min.js +1 -1
  55. package/components/form/demo/index.min.js +1 -1
  56. package/components/form/dist/index.js +1 -1
  57. package/components/form/dist/registered.js +1 -1
  58. package/components/helptext/dist/index.js +2 -2
  59. package/components/helptext/dist/registered.js +2 -2
  60. package/components/input/README.md +5 -2
  61. package/components/input/demo/api.md +271 -176
  62. package/components/input/demo/api.min.js +956 -270
  63. package/components/input/demo/index.md +48 -32
  64. package/components/input/demo/index.min.js +955 -269
  65. package/components/input/demo/readme.md +5 -2
  66. package/components/input/dist/auro-input.d.ts +23 -15
  67. package/components/input/dist/base-input.d.ts +32 -8
  68. package/components/input/dist/buttonVersion.d.ts +1 -1
  69. package/components/input/dist/iconVersion.d.ts +1 -1
  70. package/components/input/dist/index.js +955 -269
  71. package/components/input/dist/registered.js +955 -269
  72. package/components/layoutElement/dist/index.js +13 -10
  73. package/components/menu/demo/api.html +38 -0
  74. package/components/menu/demo/api.md +68 -7
  75. package/components/menu/demo/api.min.js +278 -42
  76. package/components/menu/demo/index.min.js +278 -42
  77. package/components/menu/dist/auro-menu.d.ts +28 -5
  78. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  79. package/components/menu/dist/iconVersion.d.ts +1 -1
  80. package/components/menu/dist/index.js +278 -42
  81. package/components/menu/dist/registered.js +278 -42
  82. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  83. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  84. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  85. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  86. package/components/radio/demo/api.md +7 -8
  87. package/components/radio/demo/api.min.js +68 -80
  88. package/components/radio/demo/index.min.js +68 -80
  89. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  90. package/components/radio/dist/auro-radio.d.ts +9 -12
  91. package/components/radio/dist/index.js +68 -80
  92. package/components/radio/dist/registered.js +68 -80
  93. package/components/select/demo/api.md +123 -13
  94. package/components/select/demo/api.min.js +3045 -456
  95. package/components/select/demo/index.html +1 -0
  96. package/components/select/demo/index.md +323 -763
  97. package/components/select/demo/index.min.js +3045 -456
  98. package/components/select/dist/auro-select.d.ts +112 -11
  99. package/components/select/dist/helptextVersion.d.ts +2 -0
  100. package/components/select/dist/index.js +2925 -477
  101. package/components/select/dist/registered.js +2925 -477
  102. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  103. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  104. package/package.json +6 -4
  105. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  106. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  107. /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  108. /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  109. /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  110. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  111. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  112. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  113. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  114. /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 -->
@@ -82,7 +82,10 @@ This configuration enables proper module resolution for the component's TypeScri
82
82
  <!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
83
83
 
84
84
  ```html
85
- <auro-input bordered shape="rounded" size="lg"></auro-input>
85
+ <auro-input>
86
+ <span slot="label">Label</span>
87
+ <span slot="helpText">Help Text</span>
88
+ </auro-input>
86
89
  ```
87
90
  <!-- AURO-GENERATED-CONTENT:END -->
88
91
 
@@ -34,25 +34,33 @@ export class AuroInput extends BaseInput {
34
34
  /**
35
35
  * Returns classmap configuration for html5 inputs in all layouts.
36
36
  * @private
37
- * @returns {object} - Returns classmap configuration for html5 inputs in all layouts.
37
+ * @returns {object} - Returns classmap.
38
38
  */
39
39
  private get commonInputClasses();
40
40
  /**
41
- * Returns classmap configuration for html5 inputs in all layouts.
41
+ * Returns classmap configuration for html5 inputs in each layout.
42
42
  * @private
43
- * @return {object} - Returns classmap configuration for "classic" html5 inputs.
43
+ * @returns {object} - Returns classmap.
44
44
  */
45
45
  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
- };
46
+ /**
47
+ * Returns classmap configuration for wrapper elements in each layout.
48
+ * @private
49
+ * @returns {object} - Returns classmap.
50
+ */
51
+ private get commonWrapperClasses();
52
+ /**
53
+ * Returns classmap configuration for accent elements in each layout.
54
+ * @private
55
+ * @returns {object} - Returns classmap.
56
+ */
57
+ private get commonAccentClasses();
58
+ /**
59
+ * Returns classmap configuration for helpText elements in each layout.
60
+ * @private
61
+ * @returns {object} - Returns classmap.
62
+ */
63
+ private get helpTextClasses();
56
64
  /**
57
65
  * Function to determine if the input is meant to render an icon visualizing the input type.
58
66
  * @private
@@ -103,9 +111,9 @@ export class AuroInput extends BaseInput {
103
111
  */
104
112
  private renderHtmlHelpText;
105
113
  /**
106
- * Returns HTML for the default layout.
114
+ * Returns HTML for the classic layout.
107
115
  * @private
108
- * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
116
+ * @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
109
117
  */
110
118
  private renderLayoutClassic;
111
119
  /**
@@ -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;