@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.8 → 0.0.0-pr624.80
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 +12 -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 +1262 -81
- package/components/bibtemplate/dist/registered.js +1262 -81
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +49 -15
- package/components/checkbox/demo/api.min.js +73 -43
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +73 -43
- package/components/checkbox/demo/readme.html +16 -9
- 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 +72 -42
- package/components/checkbox/dist/registered.js +72 -42
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +115 -8
- package/components/combobox/demo/api.min.js +3102 -921
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +6 -30
- package/components/combobox/demo/index.min.js +3102 -921
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/dist/auro-combobox.d.ts +44 -12
- package/components/combobox/dist/index.js +3080 -995
- package/components/combobox/dist/registered.js +3080 -995
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +158 -21
- package/components/counter/demo/api.min.js +3416 -728
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +185 -34
- package/components/counter/demo/index.min.js +3416 -728
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +161 -11
- package/components/counter/dist/auro-counter.d.ts +16 -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 +3416 -728
- package/components/counter/dist/registered.js +3416 -728
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +59 -28
- package/components/datepicker/demo/api.min.js +8486 -4644
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +75 -8
- package/components/datepicker/demo/index.min.js +8486 -4644
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +151 -12
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +7033 -3191
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +7033 -3191
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +82 -275
- package/components/dropdown/demo/api.min.js +451 -260
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +92 -362
- package/components/dropdown/demo/index.min.js +451 -260
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +450 -259
- package/components/dropdown/dist/registered.js +450 -259
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/api.min.js +2 -2
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/index.min.js +2 -2
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- 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 +5 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +228 -130
- package/components/input/demo/api.min.js +909 -247
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/index.md +48 -32
- package/components/input/demo/index.min.js +909 -247
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +5 -2
- package/components/input/dist/auro-input.d.ts +3 -3
- package/components/input/dist/base-input.d.ts +38 -10
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +908 -246
- package/components/input/dist/registered.js +908 -246
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +32 -10
- package/components/menu/demo/api.md +69 -8
- package/components/menu/demo/api.min.js +239 -48
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +239 -48
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +41 -7
- 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 +238 -47
- package/components/menu/dist/registered.js +238 -47
- 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.html +16 -10
- package/components/radio/demo/api.md +39 -9
- package/components/radio/demo/api.min.js +91 -93
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +91 -93
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +9 -12
- package/components/radio/dist/index.js +90 -92
- package/components/radio/dist/registered.js +90 -92
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +150 -121
- package/components/select/demo/api.min.js +2184 -704
- package/components/select/demo/index.html +17 -11
- package/components/select/demo/index.md +1066 -259
- package/components/select/demo/index.min.js +2186 -694
- package/components/select/demo/readme.html +16 -9
- package/components/select/dist/auro-select.d.ts +59 -21
- package/components/select/dist/index.js +2107 -711
- package/components/select/dist/registered.js +2107 -711
- package/package.json +31 -28
- /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
|
@@ -16,17 +16,24 @@
|
|
|
16
16
|
<head>
|
|
17
17
|
<meta charset="UTF-8" />
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
-
<title>Auro Web Component
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css"
|
|
26
|
-
|
|
19
|
+
<title>Auro Web Component Demo | auro-datepicker</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-datepicker's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
27
34
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
28
35
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
29
|
-
|
|
36
|
+
</head>
|
|
30
37
|
<body class="auro-markdown">
|
|
31
38
|
<main></main>
|
|
32
39
|
|
|
@@ -83,7 +83,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
83
83
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
|
-
<auro-datepicker>
|
|
86
|
+
<auro-datepicker required="">
|
|
87
87
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
88
88
|
<span slot="fromLabel">Choose a date</span>
|
|
89
89
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -70,6 +70,17 @@ export class AuroDatePicker extends AuroElement {
|
|
|
70
70
|
type: StringConstructor;
|
|
71
71
|
reflect: boolean;
|
|
72
72
|
};
|
|
73
|
+
hasFocus: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
reflect: boolean;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @private
|
|
79
|
+
*/
|
|
80
|
+
hasValue: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
reflect: boolean;
|
|
83
|
+
};
|
|
73
84
|
/**
|
|
74
85
|
* Specifies the date format. The default is `mm/dd/yyyy`.
|
|
75
86
|
*/
|
|
@@ -160,6 +171,22 @@ export class AuroDatePicker extends AuroElement {
|
|
|
160
171
|
type: BooleanConstructor;
|
|
161
172
|
reflect: boolean;
|
|
162
173
|
};
|
|
174
|
+
/**
|
|
175
|
+
* Placeholder text to display in the input(s) when no value is set.
|
|
176
|
+
*/
|
|
177
|
+
placeholder: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
reflect: boolean;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Optional placeholder text to display in the second input when using date range.
|
|
183
|
+
* By default, datepicker will use `placeholder` for both inputs if placeholder is
|
|
184
|
+
* specified, but placeholderendDate is not.
|
|
185
|
+
*/
|
|
186
|
+
placeholderEndDate: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
reflect: boolean;
|
|
189
|
+
};
|
|
163
190
|
/**
|
|
164
191
|
* Position where the bib should appear relative to the trigger.
|
|
165
192
|
* Accepted values:
|
|
@@ -286,7 +313,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
286
313
|
format: string;
|
|
287
314
|
fullscreenBreakpoint: string;
|
|
288
315
|
monthNames: string[];
|
|
289
|
-
monthFirst: boolean;
|
|
290
316
|
placement: string;
|
|
291
317
|
offset: number;
|
|
292
318
|
noFlip: boolean;
|
|
@@ -312,10 +338,29 @@ export class AuroDatePicker extends AuroElement {
|
|
|
312
338
|
* @private
|
|
313
339
|
*/
|
|
314
340
|
private dropdownTag;
|
|
341
|
+
/**
|
|
342
|
+
* @private
|
|
343
|
+
*/
|
|
344
|
+
private buttonTag;
|
|
345
|
+
/**
|
|
346
|
+
* @private
|
|
347
|
+
*/
|
|
348
|
+
private iconTag;
|
|
315
349
|
/**
|
|
316
350
|
* @private
|
|
317
351
|
*/
|
|
318
352
|
private inputTag;
|
|
353
|
+
/**
|
|
354
|
+
* @private
|
|
355
|
+
*/
|
|
356
|
+
private helpTextTag;
|
|
357
|
+
/**
|
|
358
|
+
* Handles click events on the datepicker.
|
|
359
|
+
* @param {PointerEvent} event - The pointer event object.
|
|
360
|
+
* @private
|
|
361
|
+
* @returns {void}
|
|
362
|
+
*/
|
|
363
|
+
private handleClick;
|
|
319
364
|
layout: string;
|
|
320
365
|
shape: string;
|
|
321
366
|
size: string;
|
|
@@ -341,7 +386,8 @@ export class AuroDatePicker extends AuroElement {
|
|
|
341
386
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
342
387
|
* @returns {void}
|
|
343
388
|
*/
|
|
344
|
-
focus(focusInput
|
|
389
|
+
focus(focusInput?: string): void;
|
|
390
|
+
hasFocus: boolean;
|
|
345
391
|
/**
|
|
346
392
|
* Converts valid time number to format used by wc-date-range API.
|
|
347
393
|
* @private
|
|
@@ -410,6 +456,16 @@ export class AuroDatePicker extends AuroElement {
|
|
|
410
456
|
* @returns {void}
|
|
411
457
|
*/
|
|
412
458
|
private configureDatepicker;
|
|
459
|
+
/**
|
|
460
|
+
* Hides the dropdown bib if its open.
|
|
461
|
+
* @returns {void}
|
|
462
|
+
*/
|
|
463
|
+
hideBib(): void;
|
|
464
|
+
/**
|
|
465
|
+
* Shows the dropdown bib if there are options to show.
|
|
466
|
+
* @returns {void}
|
|
467
|
+
*/
|
|
468
|
+
showBib(): void;
|
|
413
469
|
/**
|
|
414
470
|
* Sets the readonly attribute on the inputs based on the window width.
|
|
415
471
|
* @private
|
|
@@ -437,17 +493,41 @@ export class AuroDatePicker extends AuroElement {
|
|
|
437
493
|
* @returns {void}
|
|
438
494
|
*/
|
|
439
495
|
private pushSlotContent;
|
|
496
|
+
/**
|
|
497
|
+
* Handle enter/space keydown on the reset button.
|
|
498
|
+
* @private
|
|
499
|
+
* @param {KeyboardEvent} event - The keydown event.
|
|
500
|
+
*/
|
|
501
|
+
private handleKeydownReset;
|
|
502
|
+
/**
|
|
503
|
+
* Resets values without resetting validation.
|
|
504
|
+
*/
|
|
505
|
+
resetValues(): void;
|
|
440
506
|
/**
|
|
441
507
|
* Resets component to initial state.
|
|
442
508
|
* @returns {void}
|
|
443
509
|
*/
|
|
444
510
|
reset(): void;
|
|
511
|
+
/**
|
|
512
|
+
* Clears the current value(s) of the datepicker.
|
|
513
|
+
* @returns {void}
|
|
514
|
+
*/
|
|
515
|
+
clear(): void;
|
|
445
516
|
/**
|
|
446
517
|
* Validates value.
|
|
447
518
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
448
519
|
*/
|
|
449
520
|
validate(force?: boolean): void;
|
|
521
|
+
/**
|
|
522
|
+
* Private method for interacting with the `hasValue` property.
|
|
523
|
+
* @private
|
|
524
|
+
*/
|
|
525
|
+
private setHasValue;
|
|
526
|
+
hasValue: boolean;
|
|
527
|
+
get hasError(): boolean;
|
|
450
528
|
updated(changedProperties: any): void;
|
|
529
|
+
monthFirst: boolean;
|
|
530
|
+
previousTabIndex: string;
|
|
451
531
|
formattedFocusDate: boolean;
|
|
452
532
|
formattedEndDate: boolean;
|
|
453
533
|
formattedValue: boolean;
|
|
@@ -463,23 +543,82 @@ export class AuroDatePicker extends AuroElement {
|
|
|
463
543
|
* @throws {Error} Throws an error if the slot cannot be found or injected.
|
|
464
544
|
*/
|
|
465
545
|
private handleSlotToSlot;
|
|
546
|
+
/**
|
|
547
|
+
* Set up click handling for the datepicker.
|
|
548
|
+
* @private
|
|
549
|
+
* @returns {void}
|
|
550
|
+
*/
|
|
551
|
+
private configureClickHandler;
|
|
466
552
|
firstUpdated(): void;
|
|
467
553
|
/**
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
* @
|
|
471
|
-
|
|
554
|
+
* Renders the snowflake layout for the datepicker.
|
|
555
|
+
* @private
|
|
556
|
+
* @returns {import("lit").TemplateResult}
|
|
557
|
+
*/
|
|
558
|
+
private renderSnowflakeLayout;
|
|
559
|
+
/**
|
|
560
|
+
* Renders the snowflake layout for the datepicker.
|
|
561
|
+
* @private
|
|
562
|
+
* @returns {import("lit").TemplateResult}
|
|
563
|
+
*/
|
|
564
|
+
private renderClassicLayout;
|
|
565
|
+
/**
|
|
566
|
+
* Renders the layout based on the `layout` attribute.
|
|
567
|
+
* @private
|
|
568
|
+
* @returns {import('lit').TemplateResult}
|
|
569
|
+
*/
|
|
570
|
+
private renderLayoutFromAttributes;
|
|
571
|
+
/**
|
|
572
|
+
* Simple formatter that ONLY WORKS FOR US DATES.
|
|
573
|
+
* Returns formatted date like Apr 21 or Dec 25.
|
|
574
|
+
* @private
|
|
575
|
+
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
576
|
+
* @returns {string}
|
|
577
|
+
*/
|
|
578
|
+
private formatShortDate;
|
|
579
|
+
/**
|
|
580
|
+
* Format and render the provided date value.
|
|
581
|
+
* @private
|
|
582
|
+
* @param {string} dateValue - The date value to format and render.
|
|
583
|
+
* @returns {import('lit').TemplateResult}
|
|
584
|
+
*/
|
|
585
|
+
private renderDisplayTextDate;
|
|
586
|
+
/**
|
|
587
|
+
* Renders the HTML inputs for the datepicker.
|
|
588
|
+
* @private
|
|
589
|
+
* @returns {import('lit').TemplateResult}
|
|
590
|
+
*/
|
|
591
|
+
private renderHtmlInputs;
|
|
592
|
+
/**
|
|
593
|
+
* Renders the clear action button.
|
|
594
|
+
* @private
|
|
595
|
+
* @returns {import('lit').TemplateResult}
|
|
596
|
+
*/
|
|
597
|
+
private renderHtmlActionClear;
|
|
598
|
+
/**
|
|
599
|
+
* Renders the error icon.
|
|
600
|
+
* @private
|
|
601
|
+
* @returns {import('lit').TemplateResult}
|
|
602
|
+
*/
|
|
603
|
+
private renderHtmlIconError;
|
|
604
|
+
/**
|
|
605
|
+
* Renders the calendar icon.
|
|
606
|
+
* @private
|
|
607
|
+
* @returns {import('lit').TemplateResult}
|
|
608
|
+
*/
|
|
609
|
+
private renderHtmlIconCalendar;
|
|
610
|
+
/**
|
|
611
|
+
* Returns HTML for the help text and error message.
|
|
472
612
|
* @private
|
|
613
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
473
614
|
*/
|
|
474
|
-
private
|
|
615
|
+
private renderHtmlHelpText;
|
|
475
616
|
/**
|
|
476
|
-
*
|
|
617
|
+
* Separate method for rendering the calendar.
|
|
477
618
|
* @private
|
|
478
|
-
* @
|
|
619
|
+
* @returns {import('lit').TemplateResult}
|
|
479
620
|
*/
|
|
480
|
-
private
|
|
481
|
-
renderLayoutFromAttributes(): import("lit-html").TemplateResult;
|
|
482
|
-
renderTempInputs(): import("lit-html").TemplateResult;
|
|
621
|
+
private renderCalendar;
|
|
483
622
|
render(): import("lit-html").TemplateResult;
|
|
484
623
|
}
|
|
485
624
|
import { AuroElement } from "@aurodesignsystem/auro-layout-element";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "
|
|
1
|
+
declare const _default: "10.0.0";
|
|
2
2
|
export default _default;
|