@aurodesignsystem-dev/auro-formkit 0.0.0-pr802.0 → 0.0.0-pr806.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.
Files changed (57) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.md +2 -1
  4. package/components/checkbox/demo/api.min.js +8 -1
  5. package/components/checkbox/demo/index.min.js +8 -1
  6. package/components/checkbox/dist/index.js +8 -1
  7. package/components/checkbox/dist/registered.js +8 -1
  8. package/components/combobox/demo/api.md +2 -0
  9. package/components/combobox/demo/api.min.js +87 -73
  10. package/components/combobox/demo/index.min.js +87 -73
  11. package/components/combobox/dist/auro-combobox.d.ts +2 -4
  12. package/components/combobox/dist/index.js +86 -72
  13. package/components/combobox/dist/registered.js +86 -72
  14. package/components/counter/demo/api.md +2 -0
  15. package/components/counter/demo/api.min.js +31 -61
  16. package/components/counter/demo/index.min.js +31 -61
  17. package/components/counter/dist/auro-counter-group.d.ts +10 -0
  18. package/components/counter/dist/index.js +31 -61
  19. package/components/counter/dist/registered.js +31 -61
  20. package/components/datepicker/README.md +1 -1
  21. package/components/datepicker/demo/api.md +41 -19
  22. package/components/datepicker/demo/api.min.js +341 -188
  23. package/components/datepicker/demo/index.md +4 -4
  24. package/components/datepicker/demo/index.min.js +341 -188
  25. package/components/datepicker/demo/readme.md +1 -1
  26. package/components/datepicker/dist/auro-datepicker.d.ts +73 -12
  27. package/components/datepicker/dist/index.js +341 -188
  28. package/components/datepicker/dist/registered.js +341 -188
  29. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  30. package/components/dropdown/demo/api.md +1 -1
  31. package/components/dropdown/demo/api.min.js +10 -60
  32. package/components/dropdown/demo/index.min.js +10 -60
  33. package/components/dropdown/dist/auro-dropdown.d.ts +0 -7
  34. package/components/dropdown/dist/index.js +10 -60
  35. package/components/dropdown/dist/registered.js +10 -60
  36. package/components/input/demo/api.min.js +75 -9
  37. package/components/input/demo/index.min.js +75 -9
  38. package/components/input/dist/auro-input.d.ts +24 -0
  39. package/components/input/dist/index.js +75 -9
  40. package/components/input/dist/registered.js +75 -9
  41. package/components/menu/demo/api.min.js +1 -1
  42. package/components/menu/demo/index.min.js +1 -1
  43. package/components/menu/dist/index.js +1 -1
  44. package/components/menu/dist/registered.js +1 -1
  45. package/components/radio/demo/api.min.js +1 -1
  46. package/components/radio/demo/index.min.js +1 -1
  47. package/components/radio/dist/index.js +1 -1
  48. package/components/radio/dist/registered.js +1 -1
  49. package/components/select/demo/api.md +46 -64
  50. package/components/select/demo/api.min.js +61 -76
  51. package/components/select/demo/index.md +1057 -137
  52. package/components/select/demo/index.min.js +61 -76
  53. package/components/select/dist/auro-select.d.ts +22 -5
  54. package/components/select/dist/index.js +60 -75
  55. package/components/select/dist/registered.js +60 -75
  56. package/package.json +2 -2
  57. /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>
@@ -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: string): void;
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
- setHasFocus(): void;
504
- hasFocus: boolean;
505
- setHasValue(): void;
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
- * @return {string}
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
- * @return {TemplateResult}
582
+ * @param {string} dateValue - The date value to format and render.
583
+ * @returns {import('lit').TemplateResult}
549
584
  */
550
585
  private renderDisplayTextDate;
551
- renderHtmlInputs(): import("lit-html").TemplateResult;
552
- renderHtmlActionClear(): import("lit-html").TemplateResult;
553
- renderHtmlIconError(): import("lit-html").TemplateResult;
554
- renderHtmlIconCalendar(): import("lit-html").TemplateResult;
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 {html} - Returns HTML for the help text and error message.
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";