@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.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +13 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1292 -79
- package/components/bibtemplate/dist/registered.js +1292 -79
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +8 -9
- package/components/checkbox/demo/api.min.js +30 -24
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +30 -24
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +30 -24
- package/components/checkbox/dist/registered.js +30 -24
- package/components/combobox/demo/api.md +53 -0
- package/components/combobox/demo/api.min.js +2898 -753
- package/components/combobox/demo/index.md +6 -0
- package/components/combobox/demo/index.min.js +2898 -753
- package/components/combobox/dist/auro-combobox.d.ts +12 -12
- package/components/combobox/dist/index.js +2646 -642
- package/components/combobox/dist/registered.js +2646 -642
- package/components/counter/demo/api.md +21 -19
- package/components/counter/demo/api.min.js +3648 -929
- package/components/counter/demo/index.md +99 -34
- package/components/counter/demo/index.min.js +3648 -929
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +105 -6
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3648 -929
- package/components/counter/dist/registered.js +3648 -929
- package/components/datepicker/demo/api.md +36 -19
- package/components/datepicker/demo/api.min.js +11437 -7744
- package/components/datepicker/demo/index.md +80 -0
- package/components/datepicker/demo/index.min.js +11437 -7744
- package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +13847 -10154
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +13847 -10154
- package/components/dropdown/demo/api.md +6 -7
- package/components/dropdown/demo/api.min.js +238 -144
- package/components/dropdown/demo/index.md +57 -9
- package/components/dropdown/demo/index.min.js +238 -144
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -9
- package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
- package/components/dropdown/dist/index.js +238 -144
- package/components/dropdown/dist/registered.js +238 -144
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/index.js +2 -2
- package/components/helptext/dist/registered.js +2 -2
- package/components/input/demo/api.md +63 -56
- package/components/input/demo/api.min.js +983 -269
- package/components/input/demo/index.min.js +982 -268
- package/components/input/dist/auro-input.d.ts +202 -14
- package/components/input/dist/base-input.d.ts +30 -7
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +982 -268
- package/components/input/dist/registered.js +982 -268
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +38 -0
- package/components/menu/demo/api.md +68 -7
- package/components/menu/demo/api.min.js +278 -42
- package/components/menu/demo/index.min.js +278 -42
- package/components/menu/dist/auro-menu.d.ts +28 -5
- package/components/menu/dist/auro-menuoption.d.ts +15 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +278 -42
- package/components/menu/dist/registered.js +278 -42
- 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 +2 -2
- package/components/radio/demo/api.min.js +10 -7
- package/components/radio/demo/index.min.js +10 -7
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +10 -7
- package/components/radio/dist/registered.js +10 -7
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +78 -12
- package/components/select/demo/api.min.js +2797 -538
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +325 -763
- package/components/select/demo/index.min.js +2790 -543
- package/components/select/dist/auro-select.d.ts +111 -11
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +2533 -427
- package/components/select/dist/registered.js +2533 -427
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +6 -4
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
13
13
|
* @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
|
|
14
14
|
* @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
|
|
15
|
+
* @property {'classic'|'snowflake'} layout - Determines the layout style of the counter group when it is a dropdown. Options are 'classic' or 'snowflake'. Default is 'classic'.
|
|
15
16
|
*/
|
|
16
17
|
export class AuroCounterGroup extends LitElement {
|
|
17
18
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -42,6 +43,14 @@ export class AuroCounterGroup extends LitElement {
|
|
|
42
43
|
isDropdown: {
|
|
43
44
|
type: BooleanConstructor;
|
|
44
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* If declared, the dropdown will expand to the width of its parent container.
|
|
48
|
+
* Otherwise, the dropdown width will be determined by its content.
|
|
49
|
+
*/
|
|
50
|
+
matchWidth: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
reflect: boolean;
|
|
53
|
+
};
|
|
45
54
|
/**
|
|
46
55
|
* The maximum value allowed for the whole group of counters.
|
|
47
56
|
*/
|
|
@@ -120,6 +129,15 @@ export class AuroCounterGroup extends LitElement {
|
|
|
120
129
|
value: {
|
|
121
130
|
type: ObjectConstructor;
|
|
122
131
|
};
|
|
132
|
+
/**
|
|
133
|
+
* The current text in the valueText slot.
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
valueText: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
reflect: boolean;
|
|
139
|
+
attribute: boolean;
|
|
140
|
+
};
|
|
123
141
|
};
|
|
124
142
|
/**
|
|
125
143
|
* Registers the custom element with the browser.
|
|
@@ -134,11 +152,13 @@ export class AuroCounterGroup extends LitElement {
|
|
|
134
152
|
total: number;
|
|
135
153
|
validity: any;
|
|
136
154
|
value: {};
|
|
155
|
+
matchWidth: boolean;
|
|
137
156
|
isDropdown: boolean;
|
|
138
157
|
fullscreenBreakpoint: string;
|
|
139
158
|
largeFullscreenHeadline: boolean;
|
|
140
159
|
autoPlacement: boolean;
|
|
141
160
|
noFlip: boolean;
|
|
161
|
+
placement: string;
|
|
142
162
|
/**
|
|
143
163
|
* @private
|
|
144
164
|
*/
|
|
@@ -155,6 +175,12 @@ export class AuroCounterGroup extends LitElement {
|
|
|
155
175
|
* @private
|
|
156
176
|
*/
|
|
157
177
|
private validation;
|
|
178
|
+
/**
|
|
179
|
+
* Performs state updates that should happen when the dropdown is toggled.
|
|
180
|
+
* @returns {void}
|
|
181
|
+
* @private
|
|
182
|
+
*/
|
|
183
|
+
private handleDropdownToggle;
|
|
158
184
|
/**
|
|
159
185
|
* Dynamically generated dropdown tag.
|
|
160
186
|
* @private
|
|
@@ -168,12 +194,11 @@ export class AuroCounterGroup extends LitElement {
|
|
|
168
194
|
*/
|
|
169
195
|
private bibtemplateTag;
|
|
170
196
|
/**
|
|
171
|
-
*
|
|
197
|
+
* Dynamically generated helptext tag.
|
|
172
198
|
* @private
|
|
173
|
-
* @
|
|
174
|
-
* @param {NodeList} counters - The list of counter elements.
|
|
199
|
+
* @type {string}
|
|
175
200
|
*/
|
|
176
|
-
private
|
|
201
|
+
private helpTextTag;
|
|
177
202
|
/**
|
|
178
203
|
* Dynamically disables increment/decrement buttons on a counter based on group value.
|
|
179
204
|
* This method checks the total aggregated value against the group's min and max properties.
|
|
@@ -190,6 +215,16 @@ export class AuroCounterGroup extends LitElement {
|
|
|
190
215
|
* @private
|
|
191
216
|
*/
|
|
192
217
|
private configureCounters;
|
|
218
|
+
/**
|
|
219
|
+
* Updates the focus trap based on whether the dropdown is open or closed.
|
|
220
|
+
* If the dropdown is open, it creates a new focus trap and focuses the first element
|
|
221
|
+
* If the dropdown is closed, it disconnects the focus trap if it exists to prevent memory leaks and disable focus trapping.
|
|
222
|
+
* @param {boolean} dropdownIsOpen - Indicates whether the dropdown is currently open.
|
|
223
|
+
* @returns {void}
|
|
224
|
+
* @private
|
|
225
|
+
*/
|
|
226
|
+
private updateFocusTrap;
|
|
227
|
+
dropdownFocusTrap: any;
|
|
193
228
|
/**
|
|
194
229
|
* Configures the dropdown counters by selecting all `auro-counter` elements,
|
|
195
230
|
* appending them to the `auro-counter-wrapper` element within the shadow DOM,
|
|
@@ -197,7 +232,6 @@ export class AuroCounterGroup extends LitElement {
|
|
|
197
232
|
* @private
|
|
198
233
|
*/
|
|
199
234
|
private configureDropdownCounters;
|
|
200
|
-
keydownHandler: (keydownEvent: any) => void;
|
|
201
235
|
/**
|
|
202
236
|
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
203
237
|
* @private
|
|
@@ -224,12 +258,77 @@ export class AuroCounterGroup extends LitElement {
|
|
|
224
258
|
* @private
|
|
225
259
|
*/
|
|
226
260
|
private updateValue;
|
|
261
|
+
/**
|
|
262
|
+
* Updates the value text in the dropdown trigger based on the counters in the counter group.
|
|
263
|
+
* @private
|
|
264
|
+
*/
|
|
265
|
+
private updateValueText;
|
|
266
|
+
valueText: any;
|
|
227
267
|
/**
|
|
228
268
|
* Validates value.
|
|
229
269
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
230
270
|
*/
|
|
231
271
|
validate(force?: boolean): void;
|
|
232
272
|
updated(changedProperties: any): void;
|
|
233
|
-
|
|
273
|
+
firstUpdated(): void;
|
|
274
|
+
/**
|
|
275
|
+
* Render the dropdown structure for the counter group.
|
|
276
|
+
* @returns {TemplateResult} The dropdown template.
|
|
277
|
+
* @private
|
|
278
|
+
*/
|
|
279
|
+
private renderCounterDropdown;
|
|
280
|
+
/**
|
|
281
|
+
* Render the dropdown trigger for the dropdown.
|
|
282
|
+
* @returns {TemplateResult} The dropdown trigger template.
|
|
283
|
+
* @private
|
|
284
|
+
*/
|
|
285
|
+
private renderDropdownTrigger;
|
|
286
|
+
/**
|
|
287
|
+
* Render the help text for the counter group.
|
|
288
|
+
* @returns {TemplateResult} The help text template.
|
|
289
|
+
* @private
|
|
290
|
+
*/
|
|
291
|
+
private renderHelpText;
|
|
292
|
+
/**
|
|
293
|
+
* Render the dropdown bib template for the dropdown.
|
|
294
|
+
* @returns {TemplateResult} The bib template.
|
|
295
|
+
* @private
|
|
296
|
+
*/
|
|
297
|
+
private renderBibTemplate;
|
|
298
|
+
/**
|
|
299
|
+
* Render the fullscreen bib slots for the dropdown.
|
|
300
|
+
* @returns {TemplateResult} The fullscreen slots template.
|
|
301
|
+
* @private
|
|
302
|
+
*/
|
|
303
|
+
private renderFullscreenSlots;
|
|
304
|
+
/**
|
|
305
|
+
* Render the counter group container.
|
|
306
|
+
* @param {boolean} isInDropdown - Whether the counter group is inside a dropdown.
|
|
307
|
+
* @returns {TemplateResult} The counter group template.
|
|
308
|
+
* @private
|
|
309
|
+
*/
|
|
310
|
+
private renderCounterGroup;
|
|
311
|
+
/**
|
|
312
|
+
* Render the classic layout.
|
|
313
|
+
* @returns {TemplateResult} The classic layout template.
|
|
314
|
+
* @private
|
|
315
|
+
*/
|
|
316
|
+
private renderLayoutClassic;
|
|
317
|
+
shape: any;
|
|
318
|
+
layout: any;
|
|
319
|
+
size: any;
|
|
320
|
+
/**
|
|
321
|
+
* Render the snowflake layout.
|
|
322
|
+
* @returns {TemplateResult} The snowflake layout template.
|
|
323
|
+
* @private
|
|
324
|
+
*/
|
|
325
|
+
private renderLayoutSnowflake;
|
|
326
|
+
/**
|
|
327
|
+
* Renders the component by layout type.
|
|
328
|
+
* @param {string} [ForcedLayout] - Optionally force a specific layout for rendering.
|
|
329
|
+
* @returns {TemplateResult} The layout template.
|
|
330
|
+
* @private
|
|
331
|
+
*/
|
|
332
|
+
private renderLayout;
|
|
234
333
|
}
|
|
235
334
|
import { LitElement } from "lit";
|
|
@@ -83,6 +83,12 @@ export class AuroCounter extends LitElement {
|
|
|
83
83
|
*/
|
|
84
84
|
private handleKeyDown;
|
|
85
85
|
firstUpdated(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Sets an attribute that matches the default tag name if the tag name is not the default.
|
|
88
|
+
* @param {string} tagName - The tag name to set as an attribute.
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
private setTagAttribute;
|
|
86
92
|
/**
|
|
87
93
|
* Handles the change event for the default slot.
|
|
88
94
|
* Updates the defaultSlot property with the trimmed text content of the first assigned node.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "8.0.
|
|
1
|
+
declare const _default: "8.0.4";
|
|
2
2
|
export default _default;
|