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