@aurodesignsystem-dev/auro-formkit 0.0.0-pr785.3 → 0.0.0-pr788.1
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/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +136 -121
- package/components/bibtemplate/dist/registered.js +136 -121
- package/components/checkbox/demo/api.md +2 -1
- package/components/checkbox/demo/api.min.js +25 -7
- package/components/checkbox/demo/index.min.js +25 -7
- package/components/checkbox/dist/index.js +24 -6
- package/components/checkbox/dist/registered.js +24 -6
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +9 -0
- package/components/combobox/demo/api.min.js +317 -265
- package/components/combobox/demo/index.md +12 -0
- package/components/combobox/demo/index.min.js +317 -265
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +9 -4
- package/components/combobox/dist/index.js +310 -258
- package/components/combobox/dist/registered.js +310 -258
- package/components/counter/demo/api.md +11 -0
- package/components/counter/demo/api.min.js +289 -238
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +289 -238
- package/components/counter/dist/auro-counter-group.d.ts +11 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +283 -232
- package/components/counter/dist/registered.js +283 -232
- package/components/datepicker/README.md +2 -1
- package/components/datepicker/demo/api.md +53 -19
- package/components/datepicker/demo/api.min.js +652 -369
- package/components/datepicker/demo/index.md +16 -4
- package/components/datepicker/demo/index.min.js +652 -369
- package/components/datepicker/demo/readme.md +2 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +79 -12
- package/components/datepicker/dist/index.js +651 -368
- package/components/datepicker/dist/registered.js +651 -368
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +13 -61
- package/components/dropdown/demo/index.min.js +13 -61
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -7
- package/components/dropdown/dist/index.js +12 -60
- package/components/dropdown/dist/registered.js +12 -60
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/input/README.md +1 -0
- package/components/input/demo/api.md +16 -7
- package/components/input/demo/api.min.js +117 -52
- package/components/input/demo/index.md +7 -0
- package/components/input/demo/index.min.js +117 -52
- package/components/input/demo/readme.md +1 -0
- package/components/input/dist/auro-input.d.ts +0 -6
- package/components/input/dist/base-input.d.ts +8 -2
- package/components/input/dist/index.js +116 -51
- package/components/input/dist/registered.js +116 -51
- package/components/menu/demo/api.min.js +3 -3
- package/components/menu/demo/index.min.js +3 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/demo/api.md +32 -1
- package/components/radio/demo/api.min.js +19 -8
- package/components/radio/demo/index.min.js +19 -8
- package/components/radio/dist/index.js +18 -7
- package/components/radio/dist/registered.js +18 -7
- package/components/select/README.md +1 -0
- package/components/select/demo/api.md +49 -64
- package/components/select/demo/api.min.js +202 -210
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +1065 -137
- package/components/select/demo/index.min.js +202 -210
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +11 -5
- package/components/select/dist/index.js +195 -203
- package/components/select/dist/registered.js +195 -203
- package/package.json +8 -8
- /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
|
@@ -83,7 +83,8 @@ 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
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
87
88
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
88
89
|
<span slot="fromLabel">Choose a date</span>
|
|
89
90
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @slot helpText - Defines the content of the helpText.
|
|
3
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
3
4
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
4
5
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
5
6
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -354,6 +355,13 @@ export class AuroDatePicker extends AuroElement {
|
|
|
354
355
|
* @private
|
|
355
356
|
*/
|
|
356
357
|
private helpTextTag;
|
|
358
|
+
/**
|
|
359
|
+
* Handles click events on the datepicker.
|
|
360
|
+
* @param {PointerEvent} event - The pointer event object.
|
|
361
|
+
* @private
|
|
362
|
+
* @returns {void}
|
|
363
|
+
*/
|
|
364
|
+
private handleClick;
|
|
357
365
|
layout: string;
|
|
358
366
|
shape: string;
|
|
359
367
|
size: string;
|
|
@@ -379,7 +387,8 @@ export class AuroDatePicker extends AuroElement {
|
|
|
379
387
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
380
388
|
* @returns {void}
|
|
381
389
|
*/
|
|
382
|
-
focus(focusInput
|
|
390
|
+
focus(focusInput?: string): void;
|
|
391
|
+
hasFocus: boolean;
|
|
383
392
|
/**
|
|
384
393
|
* Converts valid time number to format used by wc-date-range API.
|
|
385
394
|
* @private
|
|
@@ -448,6 +457,16 @@ export class AuroDatePicker extends AuroElement {
|
|
|
448
457
|
* @returns {void}
|
|
449
458
|
*/
|
|
450
459
|
private configureDatepicker;
|
|
460
|
+
/**
|
|
461
|
+
* Hides the dropdown bib if its open.
|
|
462
|
+
* @returns {void}
|
|
463
|
+
*/
|
|
464
|
+
hideBib(): void;
|
|
465
|
+
/**
|
|
466
|
+
* Shows the dropdown bib if there are options to show.
|
|
467
|
+
* @returns {void}
|
|
468
|
+
*/
|
|
469
|
+
showBib(): void;
|
|
451
470
|
/**
|
|
452
471
|
* Sets the readonly attribute on the inputs based on the window width.
|
|
453
472
|
* @private
|
|
@@ -490,18 +509,26 @@ export class AuroDatePicker extends AuroElement {
|
|
|
490
509
|
* @returns {void}
|
|
491
510
|
*/
|
|
492
511
|
reset(): void;
|
|
512
|
+
/**
|
|
513
|
+
* Clears the current value(s) of the datepicker.
|
|
514
|
+
* @returns {void}
|
|
515
|
+
*/
|
|
516
|
+
clear(): void;
|
|
493
517
|
/**
|
|
494
518
|
* Validates value.
|
|
495
519
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
496
520
|
*/
|
|
497
521
|
validate(force?: boolean): void;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
522
|
+
/**
|
|
523
|
+
* Private method for interacting with the `hasValue` property.
|
|
524
|
+
* @private
|
|
525
|
+
*/
|
|
526
|
+
private setHasValue;
|
|
501
527
|
hasValue: boolean;
|
|
502
528
|
get hasError(): boolean;
|
|
503
529
|
updated(changedProperties: any): void;
|
|
504
530
|
monthFirst: boolean;
|
|
531
|
+
previousTabIndex: string;
|
|
505
532
|
formattedFocusDate: boolean;
|
|
506
533
|
formattedEndDate: boolean;
|
|
507
534
|
formattedValue: boolean;
|
|
@@ -517,6 +544,12 @@ export class AuroDatePicker extends AuroElement {
|
|
|
517
544
|
* @throws {Error} Throws an error if the slot cannot be found or injected.
|
|
518
545
|
*/
|
|
519
546
|
private handleSlotToSlot;
|
|
547
|
+
/**
|
|
548
|
+
* Set up click handling for the datepicker.
|
|
549
|
+
* @private
|
|
550
|
+
* @returns {void}
|
|
551
|
+
*/
|
|
552
|
+
private configureClickHandler;
|
|
520
553
|
firstUpdated(): void;
|
|
521
554
|
/**
|
|
522
555
|
* Renders the snowflake layout for the datepicker.
|
|
@@ -525,7 +558,15 @@ export class AuroDatePicker extends AuroElement {
|
|
|
525
558
|
*/
|
|
526
559
|
private renderSnowflakeLayout;
|
|
527
560
|
/**
|
|
561
|
+
* Renders the snowflake layout for the datepicker.
|
|
562
|
+
* @private
|
|
563
|
+
* @returns {import("lit").TemplateResult}
|
|
564
|
+
*/
|
|
565
|
+
private renderClassicLayout;
|
|
566
|
+
/**
|
|
567
|
+
* Renders the layout based on the `layout` attribute.
|
|
528
568
|
* @private
|
|
569
|
+
* @returns {import('lit').TemplateResult}
|
|
529
570
|
*/
|
|
530
571
|
private renderLayoutFromAttributes;
|
|
531
572
|
/**
|
|
@@ -533,26 +574,52 @@ export class AuroDatePicker extends AuroElement {
|
|
|
533
574
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
534
575
|
* @private
|
|
535
576
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
536
|
-
* @
|
|
577
|
+
* @returns {string}
|
|
537
578
|
*/
|
|
538
579
|
private formatShortDate;
|
|
539
580
|
/**
|
|
540
581
|
* Format and render the provided date value.
|
|
541
582
|
* @private
|
|
542
|
-
* @param dateValue
|
|
543
|
-
* @
|
|
583
|
+
* @param {string} dateValue - The date value to format and render.
|
|
584
|
+
* @returns {import('lit').TemplateResult}
|
|
544
585
|
*/
|
|
545
586
|
private renderDisplayTextDate;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
587
|
+
/**
|
|
588
|
+
* Renders the HTML inputs for the datepicker.
|
|
589
|
+
* @private
|
|
590
|
+
* @returns {import('lit').TemplateResult}
|
|
591
|
+
*/
|
|
592
|
+
private renderHtmlInputs;
|
|
593
|
+
/**
|
|
594
|
+
* Renders the clear action button.
|
|
595
|
+
* @private
|
|
596
|
+
* @returns {import('lit').TemplateResult}
|
|
597
|
+
*/
|
|
598
|
+
private renderHtmlActionClear;
|
|
599
|
+
/**
|
|
600
|
+
* Renders the error icon.
|
|
601
|
+
* @private
|
|
602
|
+
* @returns {import('lit').TemplateResult}
|
|
603
|
+
*/
|
|
604
|
+
private renderHtmlIconError;
|
|
605
|
+
/**
|
|
606
|
+
* Renders the calendar icon.
|
|
607
|
+
* @private
|
|
608
|
+
* @returns {import('lit').TemplateResult}
|
|
609
|
+
*/
|
|
610
|
+
private renderHtmlIconCalendar;
|
|
550
611
|
/**
|
|
551
612
|
* Returns HTML for the help text and error message.
|
|
552
613
|
* @private
|
|
553
|
-
* @returns {
|
|
614
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
554
615
|
*/
|
|
555
616
|
private renderHtmlHelpText;
|
|
617
|
+
/**
|
|
618
|
+
* Separate method for rendering the calendar.
|
|
619
|
+
* @private
|
|
620
|
+
* @returns {import('lit').TemplateResult}
|
|
621
|
+
*/
|
|
622
|
+
private renderCalendar;
|
|
556
623
|
render(): import("lit-html").TemplateResult;
|
|
557
624
|
}
|
|
558
625
|
import { AuroElement } from "@aurodesignsystem/auro-layout-element";
|