@aurodesignsystem-dev/auro-formkit 0.0.0-pr800.0 → 0.0.0-pr800.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 +143 -127
- package/components/bibtemplate/dist/registered.js +143 -127
- package/components/checkbox/demo/api.md +7 -5
- package/components/checkbox/demo/api.min.js +10 -8
- package/components/checkbox/demo/index.min.js +10 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -0
- package/components/checkbox/dist/index.js +9 -7
- package/components/checkbox/dist/registered.js +9 -7
- package/components/combobox/demo/api.min.js +475 -296
- package/components/combobox/demo/index.md +2 -4
- package/components/combobox/demo/index.min.js +475 -296
- package/components/combobox/dist/auro-combobox.d.ts +13 -2
- package/components/combobox/dist/index.js +404 -276
- package/components/combobox/dist/registered.js +404 -276
- package/components/counter/demo/api.md +1 -1
- package/components/counter/demo/api.min.js +308 -287
- package/components/counter/demo/index.md +4 -4
- package/components/counter/demo/index.min.js +308 -287
- package/components/counter/dist/auro-counter-group.d.ts +10 -10
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +307 -286
- package/components/counter/dist/registered.js +307 -286
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +43 -20
- package/components/datepicker/demo/api.min.js +757 -447
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +757 -447
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +73 -22
- package/components/datepicker/dist/index.js +756 -446
- package/components/datepicker/dist/registered.js +756 -446
- package/components/dropdown/demo/api.md +2 -2
- package/components/dropdown/demo/api.min.js +35 -80
- package/components/dropdown/demo/index.min.js +35 -80
- package/components/dropdown/dist/auro-dropdown.d.ts +2 -7
- package/components/dropdown/dist/index.js +34 -79
- package/components/dropdown/dist/registered.js +34 -79
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +2 -2
- package/components/form/demo/index.min.js +2 -2
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/auro-helptext.d.ts +0 -2
- package/components/helptext/dist/index.js +2 -4
- package/components/helptext/dist/registered.js +2 -4
- package/components/input/demo/api.md +2 -5
- package/components/input/demo/api.min.js +168 -43
- package/components/input/demo/index.md +2 -2
- package/components/input/demo/index.min.js +168 -43
- package/components/input/dist/auro-input.d.ts +24 -0
- package/components/input/dist/base-input.d.ts +8 -2
- package/components/input/dist/index.js +167 -42
- package/components/input/dist/registered.js +167 -42
- package/components/layoutElement/dist/index.js +5 -5
- package/components/layoutElement/dist/registered.js +97 -0
- package/components/menu/demo/api.html +0 -15
- package/components/menu/demo/api.md +0 -4
- package/components/menu/demo/api.min.js +85 -34
- package/components/menu/demo/index.min.js +85 -34
- package/components/menu/dist/auro-menu.d.ts +14 -2
- package/components/menu/dist/auro-menuoption.d.ts +8 -2
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +70 -19
- package/components/menu/dist/registered.js +70 -19
- package/components/radio/demo/api.md +34 -1
- package/components/radio/demo/api.min.js +8 -8
- package/components/radio/demo/index.min.js +8 -8
- package/components/radio/dist/auro-radio.d.ts +2 -0
- package/components/radio/dist/index.js +7 -7
- package/components/radio/dist/registered.js +7 -7
- package/components/select/demo/api.md +46 -68
- package/components/select/demo/api.min.js +374 -300
- package/components/select/demo/index.md +1057 -137
- package/components/select/demo/index.min.js +374 -300
- package/components/select/dist/auro-select.d.ts +26 -15
- package/components/select/dist/index.js +303 -280
- package/components/select/dist/registered.js +303 -280
- package/package.json +7 -7
- /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
- /package/components/{input/dist/styles/default/input-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/default/label-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/input-css.d.ts → menu/dist/styles/shapeSize-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>
|
|
@@ -354,6 +354,13 @@ export class AuroDatePicker extends AuroElement {
|
|
|
354
354
|
* @private
|
|
355
355
|
*/
|
|
356
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;
|
|
357
364
|
layout: string;
|
|
358
365
|
shape: string;
|
|
359
366
|
size: string;
|
|
@@ -362,16 +369,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
362
369
|
* @returns {string[]}
|
|
363
370
|
*/
|
|
364
371
|
get values(): string[];
|
|
365
|
-
/**
|
|
366
|
-
* Hide dropdownbib if it's open.
|
|
367
|
-
* @returns {void}
|
|
368
|
-
*/
|
|
369
|
-
hideBib(): void;
|
|
370
|
-
/**
|
|
371
|
-
* Shows the dropdown bib if there are options to show.
|
|
372
|
-
* @returns {void}
|
|
373
|
-
*/
|
|
374
|
-
showBib(): void;
|
|
375
372
|
/**
|
|
376
373
|
* Force the calendar view to the focus date when it changes.
|
|
377
374
|
* @private
|
|
@@ -389,7 +386,8 @@ export class AuroDatePicker extends AuroElement {
|
|
|
389
386
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
390
387
|
* @returns {void}
|
|
391
388
|
*/
|
|
392
|
-
focus(focusInput
|
|
389
|
+
focus(focusInput?: string): void;
|
|
390
|
+
hasFocus: boolean;
|
|
393
391
|
/**
|
|
394
392
|
* Converts valid time number to format used by wc-date-range API.
|
|
395
393
|
* @private
|
|
@@ -458,6 +456,16 @@ export class AuroDatePicker extends AuroElement {
|
|
|
458
456
|
* @returns {void}
|
|
459
457
|
*/
|
|
460
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;
|
|
461
469
|
/**
|
|
462
470
|
* Sets the readonly attribute on the inputs based on the window width.
|
|
463
471
|
* @private
|
|
@@ -510,13 +518,16 @@ export class AuroDatePicker extends AuroElement {
|
|
|
510
518
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
511
519
|
*/
|
|
512
520
|
validate(force?: boolean): void;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
521
|
+
/**
|
|
522
|
+
* Private method for interacting with the `hasValue` property.
|
|
523
|
+
* @private
|
|
524
|
+
*/
|
|
525
|
+
private setHasValue;
|
|
516
526
|
hasValue: boolean;
|
|
517
527
|
get hasError(): boolean;
|
|
518
528
|
updated(changedProperties: any): void;
|
|
519
529
|
monthFirst: boolean;
|
|
530
|
+
previousTabIndex: string;
|
|
520
531
|
formattedFocusDate: boolean;
|
|
521
532
|
formattedEndDate: boolean;
|
|
522
533
|
formattedValue: boolean;
|
|
@@ -532,6 +543,12 @@ export class AuroDatePicker extends AuroElement {
|
|
|
532
543
|
* @throws {Error} Throws an error if the slot cannot be found or injected.
|
|
533
544
|
*/
|
|
534
545
|
private handleSlotToSlot;
|
|
546
|
+
/**
|
|
547
|
+
* Set up click handling for the datepicker.
|
|
548
|
+
* @private
|
|
549
|
+
* @returns {void}
|
|
550
|
+
*/
|
|
551
|
+
private configureClickHandler;
|
|
535
552
|
firstUpdated(): void;
|
|
536
553
|
/**
|
|
537
554
|
* Renders the snowflake layout for the datepicker.
|
|
@@ -540,7 +557,15 @@ export class AuroDatePicker extends AuroElement {
|
|
|
540
557
|
*/
|
|
541
558
|
private renderSnowflakeLayout;
|
|
542
559
|
/**
|
|
560
|
+
* Renders the snowflake layout for the datepicker.
|
|
543
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}
|
|
544
569
|
*/
|
|
545
570
|
private renderLayoutFromAttributes;
|
|
546
571
|
/**
|
|
@@ -548,26 +573,52 @@ export class AuroDatePicker extends AuroElement {
|
|
|
548
573
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
549
574
|
* @private
|
|
550
575
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
551
|
-
* @
|
|
576
|
+
* @returns {string}
|
|
552
577
|
*/
|
|
553
578
|
private formatShortDate;
|
|
554
579
|
/**
|
|
555
580
|
* Format and render the provided date value.
|
|
556
581
|
* @private
|
|
557
|
-
* @param dateValue
|
|
558
|
-
* @
|
|
582
|
+
* @param {string} dateValue - The date value to format and render.
|
|
583
|
+
* @returns {import('lit').TemplateResult}
|
|
559
584
|
*/
|
|
560
585
|
private renderDisplayTextDate;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
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;
|
|
565
610
|
/**
|
|
566
611
|
* Returns HTML for the help text and error message.
|
|
567
612
|
* @private
|
|
568
|
-
* @returns {
|
|
613
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
569
614
|
*/
|
|
570
615
|
private renderHtmlHelpText;
|
|
616
|
+
/**
|
|
617
|
+
* Separate method for rendering the calendar.
|
|
618
|
+
* @private
|
|
619
|
+
* @returns {import('lit').TemplateResult}
|
|
620
|
+
*/
|
|
621
|
+
private renderCalendar;
|
|
571
622
|
render(): import("lit-html").TemplateResult;
|
|
572
623
|
}
|
|
573
624
|
import { AuroElement } from "@aurodesignsystem/auro-layout-element";
|