@aurodesignsystem-dev/auro-formkit 0.0.0-pr801.1 → 0.0.0-pr801.2
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/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +6 -6
- package/components/combobox/demo/index.min.js +6 -6
- package/components/combobox/dist/index.js +5 -5
- package/components/combobox/dist/registered.js +5 -5
- package/components/counter/demo/api.min.js +1 -1
- package/components/counter/demo/index.min.js +1 -1
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +39 -19
- package/components/datepicker/demo/api.min.js +159 -81
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +159 -81
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +50 -12
- package/components/datepicker/dist/index.js +159 -81
- package/components/datepicker/dist/registered.js +159 -81
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/demo/api.min.js +4 -4
- package/components/input/demo/index.min.js +4 -4
- package/components/input/dist/index.js +4 -4
- package/components/input/dist/registered.js +4 -4
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +3 -3
- package/components/select/demo/index.min.js +3 -3
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/package.json +2 -2
- /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
|
@@ -379,7 +379,7 @@ export class AuroDatePicker extends AuroElement {
|
|
|
379
379
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
380
380
|
* @returns {void}
|
|
381
381
|
*/
|
|
382
|
-
focus(focusInput
|
|
382
|
+
focus(focusInput?: string): void;
|
|
383
383
|
/**
|
|
384
384
|
* Converts valid time number to format used by wc-date-range API.
|
|
385
385
|
* @private
|
|
@@ -448,6 +448,7 @@ export class AuroDatePicker extends AuroElement {
|
|
|
448
448
|
* @returns {void}
|
|
449
449
|
*/
|
|
450
450
|
private configureDatepicker;
|
|
451
|
+
hasFocus: boolean;
|
|
451
452
|
/**
|
|
452
453
|
* Hides the dropdown bib if its open.
|
|
453
454
|
* @returns {void}
|
|
@@ -510,13 +511,16 @@ export class AuroDatePicker extends AuroElement {
|
|
|
510
511
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
511
512
|
*/
|
|
512
513
|
validate(force?: boolean): void;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
/**
|
|
515
|
+
* Private method for interacting with the `hasValue` property.
|
|
516
|
+
* @private
|
|
517
|
+
*/
|
|
518
|
+
private setHasValue;
|
|
516
519
|
hasValue: boolean;
|
|
517
520
|
get hasError(): boolean;
|
|
518
521
|
updated(changedProperties: any): void;
|
|
519
522
|
monthFirst: boolean;
|
|
523
|
+
previousTabIndex: string;
|
|
520
524
|
formattedFocusDate: boolean;
|
|
521
525
|
formattedEndDate: boolean;
|
|
522
526
|
formattedValue: boolean;
|
|
@@ -540,7 +544,15 @@ export class AuroDatePicker extends AuroElement {
|
|
|
540
544
|
*/
|
|
541
545
|
private renderSnowflakeLayout;
|
|
542
546
|
/**
|
|
547
|
+
* Renders the snowflake layout for the datepicker.
|
|
543
548
|
* @private
|
|
549
|
+
* @returns {import("lit").TemplateResult}
|
|
550
|
+
*/
|
|
551
|
+
private renderClassicLayout;
|
|
552
|
+
/**
|
|
553
|
+
* Renders the layout based on the `layout` attribute.
|
|
554
|
+
* @private
|
|
555
|
+
* @returns {import('lit').TemplateResult}
|
|
544
556
|
*/
|
|
545
557
|
private renderLayoutFromAttributes;
|
|
546
558
|
/**
|
|
@@ -548,26 +560,52 @@ export class AuroDatePicker extends AuroElement {
|
|
|
548
560
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
549
561
|
* @private
|
|
550
562
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
551
|
-
* @
|
|
563
|
+
* @returns {string}
|
|
552
564
|
*/
|
|
553
565
|
private formatShortDate;
|
|
554
566
|
/**
|
|
555
567
|
* Format and render the provided date value.
|
|
556
568
|
* @private
|
|
557
|
-
* @param dateValue
|
|
558
|
-
* @
|
|
569
|
+
* @param {string} dateValue - The date value to format and render.
|
|
570
|
+
* @returns {import('lit').TemplateResult}
|
|
559
571
|
*/
|
|
560
572
|
private renderDisplayTextDate;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
573
|
+
/**
|
|
574
|
+
* Renders the HTML inputs for the datepicker.
|
|
575
|
+
* @private
|
|
576
|
+
* @returns {import('lit').TemplateResult}
|
|
577
|
+
*/
|
|
578
|
+
private renderHtmlInputs;
|
|
579
|
+
/**
|
|
580
|
+
* Renders the clear action button.
|
|
581
|
+
* @private
|
|
582
|
+
* @returns {import('lit').TemplateResult}
|
|
583
|
+
*/
|
|
584
|
+
private renderHtmlActionClear;
|
|
585
|
+
/**
|
|
586
|
+
* Renders the error icon.
|
|
587
|
+
* @private
|
|
588
|
+
* @returns {import('lit').TemplateResult}
|
|
589
|
+
*/
|
|
590
|
+
private renderHtmlIconError;
|
|
591
|
+
/**
|
|
592
|
+
* Renders the calendar icon.
|
|
593
|
+
* @private
|
|
594
|
+
* @returns {import('lit').TemplateResult}
|
|
595
|
+
*/
|
|
596
|
+
private renderHtmlIconCalendar;
|
|
565
597
|
/**
|
|
566
598
|
* Returns HTML for the help text and error message.
|
|
567
599
|
* @private
|
|
568
|
-
* @returns {
|
|
600
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
569
601
|
*/
|
|
570
602
|
private renderHtmlHelpText;
|
|
603
|
+
/**
|
|
604
|
+
* Separate method for rendering the calendar.
|
|
605
|
+
* @private
|
|
606
|
+
* @returns {import('lit').TemplateResult}
|
|
607
|
+
*/
|
|
608
|
+
private renderCalendar;
|
|
571
609
|
render(): import("lit-html").TemplateResult;
|
|
572
610
|
}
|
|
573
611
|
import { AuroElement } from "@aurodesignsystem/auro-layout-element";
|