@aurodesignsystem-dev/auro-formkit 0.0.0-pr785.3 → 0.0.0-pr792.0
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 +16 -5
- package/components/checkbox/demo/index.min.js +16 -5
- package/components/checkbox/dist/index.js +16 -5
- package/components/checkbox/dist/registered.js +16 -5
- package/components/combobox/demo/api.md +1 -0
- package/components/combobox/demo/api.min.js +63 -38
- package/components/combobox/demo/index.min.js +63 -38
- package/components/combobox/dist/auro-combobox.d.ts +5 -0
- package/components/combobox/dist/index.js +62 -37
- package/components/combobox/dist/registered.js +62 -37
- package/components/counter/demo/api.min.js +29 -17
- package/components/counter/demo/index.min.js +29 -17
- package/components/counter/dist/index.js +24 -12
- package/components/counter/dist/registered.js +24 -12
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +40 -19
- package/components/datepicker/demo/api.min.js +214 -110
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +214 -110
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +55 -12
- package/components/datepicker/dist/index.js +214 -110
- package/components/datepicker/dist/registered.js +214 -110
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/demo/api.md +2 -1
- package/components/input/demo/api.min.js +34 -27
- package/components/input/demo/index.min.js +34 -27
- package/components/input/dist/auro-input.d.ts +0 -6
- package/components/input/dist/base-input.d.ts +5 -1
- package/components/input/dist/index.js +34 -27
- package/components/input/dist/registered.js +34 -27
- 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 +16 -5
- package/components/radio/demo/index.min.js +16 -5
- package/components/radio/dist/index.js +16 -5
- package/components/radio/dist/registered.js +16 -5
- package/components/select/demo/api.min.js +19 -8
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.min.js +19 -8
- package/components/select/dist/index.js +18 -7
- package/components/select/dist/registered.js +18 -7
- package/package.json +5 -5
- /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
|
@@ -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>
|
|
@@ -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
|
* Sets the readonly attribute on the inputs based on the window width.
|
|
453
454
|
* @private
|
|
@@ -490,18 +491,26 @@ export class AuroDatePicker extends AuroElement {
|
|
|
490
491
|
* @returns {void}
|
|
491
492
|
*/
|
|
492
493
|
reset(): void;
|
|
494
|
+
/**
|
|
495
|
+
* Clears the current value(s) of the datepicker.
|
|
496
|
+
* @returns {void}
|
|
497
|
+
*/
|
|
498
|
+
clear(): void;
|
|
493
499
|
/**
|
|
494
500
|
* Validates value.
|
|
495
501
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
496
502
|
*/
|
|
497
503
|
validate(force?: boolean): void;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
504
|
+
/**
|
|
505
|
+
* Private method for interacting with the `hasValue` property.
|
|
506
|
+
* @private
|
|
507
|
+
*/
|
|
508
|
+
private setHasValue;
|
|
501
509
|
hasValue: boolean;
|
|
502
510
|
get hasError(): boolean;
|
|
503
511
|
updated(changedProperties: any): void;
|
|
504
512
|
monthFirst: boolean;
|
|
513
|
+
previousTabIndex: string;
|
|
505
514
|
formattedFocusDate: boolean;
|
|
506
515
|
formattedEndDate: boolean;
|
|
507
516
|
formattedValue: boolean;
|
|
@@ -525,7 +534,15 @@ export class AuroDatePicker extends AuroElement {
|
|
|
525
534
|
*/
|
|
526
535
|
private renderSnowflakeLayout;
|
|
527
536
|
/**
|
|
537
|
+
* Renders the snowflake layout for the datepicker.
|
|
528
538
|
* @private
|
|
539
|
+
* @returns {import("lit").TemplateResult}
|
|
540
|
+
*/
|
|
541
|
+
private renderClassicLayout;
|
|
542
|
+
/**
|
|
543
|
+
* Renders the layout based on the `layout` attribute.
|
|
544
|
+
* @private
|
|
545
|
+
* @returns {import('lit').TemplateResult}
|
|
529
546
|
*/
|
|
530
547
|
private renderLayoutFromAttributes;
|
|
531
548
|
/**
|
|
@@ -533,26 +550,52 @@ export class AuroDatePicker extends AuroElement {
|
|
|
533
550
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
534
551
|
* @private
|
|
535
552
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
536
|
-
* @
|
|
553
|
+
* @returns {string}
|
|
537
554
|
*/
|
|
538
555
|
private formatShortDate;
|
|
539
556
|
/**
|
|
540
557
|
* Format and render the provided date value.
|
|
541
558
|
* @private
|
|
542
|
-
* @param dateValue
|
|
543
|
-
* @
|
|
559
|
+
* @param {string} dateValue - The date value to format and render.
|
|
560
|
+
* @returns {import('lit').TemplateResult}
|
|
544
561
|
*/
|
|
545
562
|
private renderDisplayTextDate;
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
563
|
+
/**
|
|
564
|
+
* Renders the HTML inputs for the datepicker.
|
|
565
|
+
* @private
|
|
566
|
+
* @returns {import('lit').TemplateResult}
|
|
567
|
+
*/
|
|
568
|
+
private renderHtmlInputs;
|
|
569
|
+
/**
|
|
570
|
+
* Renders the clear action button.
|
|
571
|
+
* @private
|
|
572
|
+
* @returns {import('lit').TemplateResult}
|
|
573
|
+
*/
|
|
574
|
+
private renderHtmlActionClear;
|
|
575
|
+
/**
|
|
576
|
+
* Renders the error icon.
|
|
577
|
+
* @private
|
|
578
|
+
* @returns {import('lit').TemplateResult}
|
|
579
|
+
*/
|
|
580
|
+
private renderHtmlIconError;
|
|
581
|
+
/**
|
|
582
|
+
* Renders the calendar icon.
|
|
583
|
+
* @private
|
|
584
|
+
* @returns {import('lit').TemplateResult}
|
|
585
|
+
*/
|
|
586
|
+
private renderHtmlIconCalendar;
|
|
550
587
|
/**
|
|
551
588
|
* Returns HTML for the help text and error message.
|
|
552
589
|
* @private
|
|
553
|
-
* @returns {
|
|
590
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
554
591
|
*/
|
|
555
592
|
private renderHtmlHelpText;
|
|
593
|
+
/**
|
|
594
|
+
* Separate method for rendering the calendar.
|
|
595
|
+
* @private
|
|
596
|
+
* @returns {import('lit').TemplateResult}
|
|
597
|
+
*/
|
|
598
|
+
private renderCalendar;
|
|
556
599
|
render(): import("lit-html").TemplateResult;
|
|
557
600
|
}
|
|
558
601
|
import { AuroElement } from "@aurodesignsystem/auro-layout-element";
|