@aurodesignsystem-dev/auro-formkit 0.0.0-pr798.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.md +2 -0
- package/components/combobox/demo/api.min.js +475 -298
- package/components/combobox/demo/index.md +2 -4
- package/components/combobox/demo/index.min.js +475 -298
- package/components/combobox/dist/auro-combobox.d.ts +15 -6
- package/components/combobox/dist/index.js +404 -278
- package/components/combobox/dist/registered.js +404 -278
- package/components/counter/demo/api.md +2 -0
- package/components/counter/demo/api.min.js +308 -267
- package/components/counter/demo/index.md +4 -4
- package/components/counter/demo/index.min.js +308 -267
- package/components/counter/dist/auro-counter-group.d.ts +10 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +307 -266
- package/components/counter/dist/registered.js +307 -266
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +44 -19
- package/components/datepicker/demo/api.min.js +757 -426
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +757 -426
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +73 -12
- package/components/datepicker/dist/index.js +756 -425
- package/components/datepicker/dist/registered.js +756 -425
- 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 +47 -67
- package/components/select/demo/api.min.js +374 -290
- package/components/select/demo/index.md +1057 -137
- package/components/select/demo/index.min.js +374 -290
- package/components/select/dist/auro-select.d.ts +26 -10
- package/components/select/dist/index.js +303 -270
- package/components/select/dist/registered.js +303 -270
- 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;
|
|
@@ -379,7 +386,8 @@ export class AuroDatePicker extends AuroElement {
|
|
|
379
386
|
* @param {String} focusInput - Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input.
|
|
380
387
|
* @returns {void}
|
|
381
388
|
*/
|
|
382
|
-
focus(focusInput
|
|
389
|
+
focus(focusInput?: string): void;
|
|
390
|
+
hasFocus: boolean;
|
|
383
391
|
/**
|
|
384
392
|
* Converts valid time number to format used by wc-date-range API.
|
|
385
393
|
* @private
|
|
@@ -448,6 +456,16 @@ export class AuroDatePicker extends AuroElement {
|
|
|
448
456
|
* @returns {void}
|
|
449
457
|
*/
|
|
450
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;
|
|
451
469
|
/**
|
|
452
470
|
* Sets the readonly attribute on the inputs based on the window width.
|
|
453
471
|
* @private
|
|
@@ -500,13 +518,16 @@ export class AuroDatePicker extends AuroElement {
|
|
|
500
518
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
501
519
|
*/
|
|
502
520
|
validate(force?: boolean): void;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
521
|
+
/**
|
|
522
|
+
* Private method for interacting with the `hasValue` property.
|
|
523
|
+
* @private
|
|
524
|
+
*/
|
|
525
|
+
private setHasValue;
|
|
506
526
|
hasValue: boolean;
|
|
507
527
|
get hasError(): boolean;
|
|
508
528
|
updated(changedProperties: any): void;
|
|
509
529
|
monthFirst: boolean;
|
|
530
|
+
previousTabIndex: string;
|
|
510
531
|
formattedFocusDate: boolean;
|
|
511
532
|
formattedEndDate: boolean;
|
|
512
533
|
formattedValue: boolean;
|
|
@@ -522,6 +543,12 @@ export class AuroDatePicker extends AuroElement {
|
|
|
522
543
|
* @throws {Error} Throws an error if the slot cannot be found or injected.
|
|
523
544
|
*/
|
|
524
545
|
private handleSlotToSlot;
|
|
546
|
+
/**
|
|
547
|
+
* Set up click handling for the datepicker.
|
|
548
|
+
* @private
|
|
549
|
+
* @returns {void}
|
|
550
|
+
*/
|
|
551
|
+
private configureClickHandler;
|
|
525
552
|
firstUpdated(): void;
|
|
526
553
|
/**
|
|
527
554
|
* Renders the snowflake layout for the datepicker.
|
|
@@ -530,7 +557,15 @@ export class AuroDatePicker extends AuroElement {
|
|
|
530
557
|
*/
|
|
531
558
|
private renderSnowflakeLayout;
|
|
532
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.
|
|
533
567
|
* @private
|
|
568
|
+
* @returns {import('lit').TemplateResult}
|
|
534
569
|
*/
|
|
535
570
|
private renderLayoutFromAttributes;
|
|
536
571
|
/**
|
|
@@ -538,26 +573,52 @@ export class AuroDatePicker extends AuroElement {
|
|
|
538
573
|
* Returns formatted date like Apr 21 or Dec 25.
|
|
539
574
|
* @private
|
|
540
575
|
* @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
|
|
541
|
-
* @
|
|
576
|
+
* @returns {string}
|
|
542
577
|
*/
|
|
543
578
|
private formatShortDate;
|
|
544
579
|
/**
|
|
545
580
|
* Format and render the provided date value.
|
|
546
581
|
* @private
|
|
547
|
-
* @param dateValue
|
|
548
|
-
* @
|
|
582
|
+
* @param {string} dateValue - The date value to format and render.
|
|
583
|
+
* @returns {import('lit').TemplateResult}
|
|
549
584
|
*/
|
|
550
585
|
private renderDisplayTextDate;
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
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;
|
|
555
610
|
/**
|
|
556
611
|
* Returns HTML for the help text and error message.
|
|
557
612
|
* @private
|
|
558
|
-
* @returns {
|
|
613
|
+
* @returns {import('lit').TemplateResult} - Returns HTML for the help text and error message.
|
|
559
614
|
*/
|
|
560
615
|
private renderHtmlHelpText;
|
|
616
|
+
/**
|
|
617
|
+
* Separate method for rendering the calendar.
|
|
618
|
+
* @private
|
|
619
|
+
* @returns {import('lit').TemplateResult}
|
|
620
|
+
*/
|
|
621
|
+
private renderCalendar;
|
|
561
622
|
render(): import("lit-html").TemplateResult;
|
|
562
623
|
}
|
|
563
624
|
import { AuroElement } from "@aurodesignsystem/auro-layout-element";
|