@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
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
* @slot label - Defines the content of the label.
|
|
7
7
|
* @slot helpText - Defines the content of the helpText.
|
|
8
8
|
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
9
|
+
* @slot valueText - Dropdown value text display.
|
|
10
|
+
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
9
11
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
10
|
-
* @event input - Notifies every time the value prop of the element is changed.
|
|
12
|
+
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
11
13
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
12
14
|
* @csspart helpText - Apply CSS to the help text.
|
|
13
15
|
*/
|
|
14
|
-
export class AuroSelect extends
|
|
16
|
+
export class AuroSelect extends AuroElement {
|
|
15
17
|
static get properties(): {
|
|
16
18
|
/**
|
|
17
19
|
* If declared, sets the autocomplete attribute for the select element.
|
|
@@ -20,6 +22,13 @@ export class AuroSelect extends LitElement {
|
|
|
20
22
|
type: StringConstructor;
|
|
21
23
|
reflect: boolean;
|
|
22
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
|
|
27
|
+
*/
|
|
28
|
+
forceDisplayValue: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
reflect: boolean;
|
|
31
|
+
};
|
|
23
32
|
/**
|
|
24
33
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
25
34
|
* @default false
|
|
@@ -36,19 +45,26 @@ export class AuroSelect extends LitElement {
|
|
|
36
45
|
reflect: boolean;
|
|
37
46
|
};
|
|
38
47
|
/**
|
|
39
|
-
*
|
|
48
|
+
* @private
|
|
40
49
|
*/
|
|
41
|
-
|
|
42
|
-
type:
|
|
50
|
+
isPopoverVisible: {
|
|
51
|
+
type: BooleanConstructor;
|
|
43
52
|
reflect: boolean;
|
|
44
53
|
};
|
|
45
54
|
/**
|
|
46
|
-
* If
|
|
55
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
47
56
|
*/
|
|
48
|
-
|
|
57
|
+
matchWidth: {
|
|
49
58
|
type: BooleanConstructor;
|
|
50
59
|
reflect: boolean;
|
|
51
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* The name for the select element.
|
|
63
|
+
*/
|
|
64
|
+
name: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
reflect: boolean;
|
|
67
|
+
};
|
|
52
68
|
/**
|
|
53
69
|
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
54
70
|
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
@@ -130,7 +146,7 @@ export class AuroSelect extends LitElement {
|
|
|
130
146
|
* "top" | "right" | "bottom" | "left" |
|
|
131
147
|
* "bottom-start" | "top-start" | "top-end" |
|
|
132
148
|
* "right-start" | "right-end" | "bottom-end" |
|
|
133
|
-
* "left-start" | "left-end"
|
|
149
|
+
* "left-start" | "left-end".
|
|
134
150
|
* @default bottom-start
|
|
135
151
|
*/
|
|
136
152
|
placement: {
|
|
@@ -196,6 +212,22 @@ export class AuroSelect extends LitElement {
|
|
|
196
212
|
* @private
|
|
197
213
|
*/
|
|
198
214
|
touched: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* @private
|
|
217
|
+
*/
|
|
218
|
+
hasFocus: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
reflect: boolean;
|
|
221
|
+
attribute: boolean;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* @private
|
|
225
|
+
*/
|
|
226
|
+
hasDisplayValueContent: {
|
|
227
|
+
type: BooleanConstructor;
|
|
228
|
+
reflect: boolean;
|
|
229
|
+
attribute: boolean;
|
|
230
|
+
};
|
|
199
231
|
};
|
|
200
232
|
static get styles(): import("lit").CSSResult[];
|
|
201
233
|
/**
|
|
@@ -207,10 +239,14 @@ export class AuroSelect extends LitElement {
|
|
|
207
239
|
*
|
|
208
240
|
*/
|
|
209
241
|
static register(name?: string): void;
|
|
242
|
+
matchWidth: boolean;
|
|
243
|
+
shape: string;
|
|
244
|
+
size: string;
|
|
210
245
|
placement: string;
|
|
211
246
|
offset: number;
|
|
212
247
|
noFlip: boolean;
|
|
213
248
|
autoPlacement: boolean;
|
|
249
|
+
forceDisplayValue: boolean;
|
|
214
250
|
/**
|
|
215
251
|
* @private
|
|
216
252
|
*/
|
|
@@ -231,10 +267,22 @@ export class AuroSelect extends LitElement {
|
|
|
231
267
|
* @private
|
|
232
268
|
*/
|
|
233
269
|
private bibtemplateTag;
|
|
270
|
+
/**
|
|
271
|
+
* @private
|
|
272
|
+
*/
|
|
273
|
+
private helpTextTag;
|
|
234
274
|
/**
|
|
235
275
|
* @private
|
|
236
276
|
*/
|
|
237
277
|
private isHiddenWhileLoading;
|
|
278
|
+
/**
|
|
279
|
+
* @private
|
|
280
|
+
*/
|
|
281
|
+
private hasFocus;
|
|
282
|
+
/**
|
|
283
|
+
* @private
|
|
284
|
+
*/
|
|
285
|
+
private hasDisplayValueContent;
|
|
238
286
|
/**
|
|
239
287
|
* @private
|
|
240
288
|
* @returns {void} Internal defaults.
|
|
@@ -246,6 +294,19 @@ export class AuroSelect extends LitElement {
|
|
|
246
294
|
value: any;
|
|
247
295
|
fullscreenBreakpoint: string;
|
|
248
296
|
onDark: boolean;
|
|
297
|
+
isPopoverVisible: any;
|
|
298
|
+
/**
|
|
299
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
300
|
+
* @private
|
|
301
|
+
* @returns {void}
|
|
302
|
+
*/
|
|
303
|
+
private get commonLabelClasses();
|
|
304
|
+
/**
|
|
305
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
306
|
+
* @private
|
|
307
|
+
* @returns {object} - Returns classmap.
|
|
308
|
+
*/
|
|
309
|
+
private get commonWrapperClasses();
|
|
249
310
|
/**
|
|
250
311
|
* Binds all behavior needed to the dropdown after rendering.
|
|
251
312
|
* @private
|
|
@@ -253,7 +314,6 @@ export class AuroSelect extends LitElement {
|
|
|
253
314
|
*/
|
|
254
315
|
private configureDropdown;
|
|
255
316
|
dropdown: any;
|
|
256
|
-
menuWrapper: any;
|
|
257
317
|
bibtemplate: any;
|
|
258
318
|
/**
|
|
259
319
|
* Updates the displayed value in an Auro dropdown component based on optionSelected.
|
|
@@ -324,6 +384,13 @@ export class AuroSelect extends LitElement {
|
|
|
324
384
|
*/
|
|
325
385
|
private clearSelection;
|
|
326
386
|
firstUpdated(): void;
|
|
387
|
+
/**
|
|
388
|
+
* Update the menu value. With checks for menu existence. Awaits value update.
|
|
389
|
+
* @param {string} value - The value to set in the menu.
|
|
390
|
+
* @returns void
|
|
391
|
+
* @private
|
|
392
|
+
*/
|
|
393
|
+
private updateMenuValue;
|
|
327
394
|
updated(changedProperties: any): Promise<void>;
|
|
328
395
|
/**
|
|
329
396
|
* Resets component to initial state.
|
|
@@ -353,6 +420,39 @@ export class AuroSelect extends LitElement {
|
|
|
353
420
|
* @private
|
|
354
421
|
*/
|
|
355
422
|
private _updateNativeSelect;
|
|
356
|
-
|
|
423
|
+
renderAriaHtml(): import("lit-html").TemplateResult;
|
|
424
|
+
renderNativeSelect(): import("lit-html").TemplateResult;
|
|
425
|
+
/**
|
|
426
|
+
* Returns HTML for the help text and error message.
|
|
427
|
+
* @private
|
|
428
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
429
|
+
*/
|
|
430
|
+
private renderHtmlHelpText;
|
|
431
|
+
/**
|
|
432
|
+
* Returns HTML for the emphasized layout.
|
|
433
|
+
* @private
|
|
434
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
|
|
435
|
+
*/
|
|
436
|
+
private renderLayoutEmphasized;
|
|
437
|
+
/**
|
|
438
|
+
* Returns HTML for the snowflake layout.
|
|
439
|
+
* @private
|
|
440
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the snowflake layout.
|
|
441
|
+
*/
|
|
442
|
+
private renderLayoutSnowflake;
|
|
443
|
+
/**
|
|
444
|
+
* Returns HTML for the classic layout.
|
|
445
|
+
* @private
|
|
446
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
447
|
+
*/
|
|
448
|
+
private renderLayoutClassic;
|
|
449
|
+
/**
|
|
450
|
+
* Logic to determine the layout of the component.
|
|
451
|
+
* @private
|
|
452
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
453
|
+
* @returns {void}
|
|
454
|
+
*/
|
|
455
|
+
private renderLayout;
|
|
456
|
+
renderBACKUP(): import("lit-html").TemplateResult;
|
|
357
457
|
}
|
|
358
|
-
import {
|
|
458
|
+
import { AuroElement } from '../../layoutElement/src/auroElement.js';
|