@aurodesignsystem-dev/auro-formkit 0.0.0-pr1500.0 → 0.0.0-pr1501.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 (48) hide show
  1. package/components/checkbox/demo/customize.min.js +1 -1
  2. package/components/checkbox/demo/getting-started.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/customize.min.js +27 -15
  7. package/components/combobox/demo/getting-started.min.js +27 -15
  8. package/components/combobox/demo/index.min.js +27 -15
  9. package/components/combobox/dist/index.js +27 -15
  10. package/components/combobox/dist/registered.js +27 -15
  11. package/components/counter/demo/customize.min.js +20 -2
  12. package/components/counter/demo/index.min.js +20 -2
  13. package/components/counter/dist/index.js +5447 -191
  14. package/components/counter/dist/registered.js +5447 -191
  15. package/components/datepicker/demo/customize.md +2 -442
  16. package/components/datepicker/demo/customize.min.js +46 -27
  17. package/components/datepicker/demo/index.min.js +46 -27
  18. package/components/datepicker/dist/index.js +46 -27
  19. package/components/datepicker/dist/registered.js +46 -27
  20. package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -2
  21. package/components/dropdown/demo/customize.min.js +19 -1
  22. package/components/dropdown/demo/getting-started.min.js +19 -1
  23. package/components/dropdown/demo/index.min.js +19 -1
  24. package/components/dropdown/dist/auro-dropdown.d.ts +2 -0
  25. package/components/dropdown/dist/index.js +19 -1
  26. package/components/dropdown/dist/registered.js +19 -1
  27. package/components/form/demo/customize.min.js +5859 -5792
  28. package/components/form/demo/getting-started.min.js +5859 -5792
  29. package/components/form/demo/index.min.js +5859 -5792
  30. package/components/form/demo/registerDemoDeps.min.js +5855 -5788
  31. package/components/input/demo/customize.md +0 -2
  32. package/components/input/demo/customize.min.js +6 -6
  33. package/components/input/demo/getting-started.min.js +6 -6
  34. package/components/input/demo/index.min.js +6 -6
  35. package/components/input/dist/index.js +6 -6
  36. package/components/input/dist/registered.js +6 -6
  37. package/components/radio/demo/customize.min.js +1 -1
  38. package/components/radio/demo/getting-started.min.js +1 -1
  39. package/components/radio/demo/index.min.js +1 -1
  40. package/components/radio/dist/index.js +1 -1
  41. package/components/radio/dist/registered.js +1 -1
  42. package/components/select/demo/customize.min.js +20 -2
  43. package/components/select/demo/getting-started.min.js +20 -2
  44. package/components/select/demo/index.min.js +20 -2
  45. package/components/select/dist/index.js +20 -2
  46. package/components/select/dist/registered.js +20 -2
  47. package/custom-elements.json +2841 -2841
  48. package/package.json +1 -1
@@ -18,7 +18,6 @@
18
18
  <auro-anchorlink fluid href="#forceError" class="level2 body-xs">Force Error State</auro-anchorlink>
19
19
  <auro-anchorlink fluid href="#inputMode" class="level2 body-xs">Input Mode</auro-anchorlink>
20
20
  <auro-anchorlink fluid href="#minMaxDate" class="level2 body-xs">Min/Max Date</auro-anchorlink>
21
- <auro-anchorlink fluid href="#monthNames" class="level2 body-xs">Month Names</auro-anchorlink>
22
21
  <auro-anchorlink fluid href="#noValidate" class="level2 body-xs">No Validation</auro-anchorlink>
23
22
  <auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
24
23
  </auro-nav>
@@ -414,8 +413,7 @@
414
413
  <auro-accordion alignRight>
415
414
  <span slot="trigger">See code</span>
416
415
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale.html) -->
417
- <!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
418
-
416
+ <!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
419
417
  <pre class="language-html"><code class="language-html">&lt;div data-locale="de-DE"&gt;
420
418
  &lt;auro-header level="4" &gt;de-DE Example&lt;/auro-header&gt;
421
419
  &lt;auro-datepicker
@@ -481,7 +479,7 @@
481
479
  &lt;span slot="helpText"&gt;ヘルプテキスト&lt;/span&gt;
482
480
  &lt;span slot="optionalLabel"&gt;(任意)&lt;/span&gt;
483
481
  &lt;/auro-datepicker&gt;
484
- &lt;/div&gt;</code></pre>
482
+ &lt;/div&gt;</code></pre>
485
483
  <!-- AURO-GENERATED-CONTENT:END -->
486
484
  </auro-accordion>
487
485
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -822,444 +820,6 @@
822
820
  &lt;/auro-datepicker&gt;</code></pre>
823
821
  <!-- AURO-GENERATED-CONTENT:END -->
824
822
  </auro-accordion>
825
- <auro-header level="3" id="localization">Localization</auro-header>
826
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/localization.md) -->
827
- <!-- The below content is automatically added from ./../docs/partials/customize/localization.md -->
828
- <p>The component supports complete localization, including visible strings, screen reader announcements and locale based date formatting.</p>
829
- <auro-header level="4" id="localizationTrigger">Trigger</auro-header>
830
- <auro-header level="4" id="localizationTriggerVisibleStrings">Trigger Visible strings</auro-header>
831
- <p>The visible strings rendered in the input, trigger, and fullscreen bib are not derived from <code>locale</code> — they are projected through named slots so each language can supply its own translation. Pass a <code>&lt;span&gt;</code> with the matching <code>slot</code> attribute for every string you need to localize.</p>
832
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-visible-strings.html) -->
833
- <!-- The below content is automatically added from ./../apiExamples/localization-visible-strings.html -->
834
-
835
- <pre class="language-diff"><code class="language-diff"> &lt;auro-datepicker&gt;
836
- + &lt;span slot="fromLabel"&gt;Abreisedatum&lt;/span&gt;
837
- + &lt;span slot="helpText"&gt;Wählen Sie ein Datum&lt;/span&gt;
838
- + &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
839
- + &lt;span slot="bib.fullscreen.headline"&gt;Datum auswählen&lt;/span&gt;
840
- + &lt;span slot="bib.fullscreen.fromLabel"&gt;Abreisedatum&lt;/span&gt;
841
- &lt;/auro-datepicker&gt;</code></pre>
842
- <!-- AURO-GENERATED-CONTENT:END -->
843
- <auro-header level="4" id="localizationCalendar">Calendar</auro-header>
844
- <auro-header level="4" id="localizationCalendarVisibleStrings">Visible strings</auro-header>
845
- <p>By default, the calendar weekday names rendered above the day grid and the month names rendered in the calendar header are derived from the active <code>locale</code> using the browser's <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</auro-hyperlink> API, so they update automatically when <code>locale</code> changes. Use the <code>monthNames</code> attribute to override the derived month names — for example, to supply a translation the browser does not produce or to support a locale the browser does not recognize.</p>
846
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-calendar-strings.html) -->
847
- <!-- The below content is automatically added from ./../apiExamples/localization-calendar-strings.html -->
848
-
849
- <pre class="language-diff"><code class="language-diff">- &lt;auro-datepicker&gt;
850
- + &lt;auro-datepicker monthNames='["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]'&gt;
851
- &lt;span slot="fromLabel"&gt;Abreisedatum&lt;/span&gt;
852
- &lt;span slot="helpText"&gt;Wählen Sie ein Datum&lt;/span&gt;
853
- &lt;/auro-datepicker&gt;</code></pre>
854
- <!-- AURO-GENERATED-CONTENT:END -->
855
- <auro-header level="4" id="localizationCalendarA11yStrings">Screen reader strings</auro-header>
856
- <p>Assistive-technology announcements — range descriptors (<code>rangeLabelStart</code>, <code>rangeLabelEnd</code>, <code>rangeLabelBeforeRange</code>, <code>rangeLabelInRange</code>, <code>rangeLabelAfterRange</code>), month navigation labels (<code>navLabelPrevMonth</code>, <code>navLabelNextMonth</code>), and the calendar grid label (<code>calendarGridLabel</code>) — are exposed as individual attributes so they can be translated independently of the visible UI. These strings are not derived from <code>locale</code>; supply translated values for every language you support.</p>
857
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-screenreader-strings.html) -->
858
- <!-- The below content is automatically added from ./../apiExamples/localization-screenreader-strings.html -->
859
-
860
- <pre class="language-diff"><code class="language-diff"> &lt;auro-datepicker
861
- locale="de-DE"
862
- range
863
- + rangeLabelStart="Startdatum"
864
- + rangeLabelEnd="Enddatum"
865
- + rangeLabelBeforeRange="vor dem Zeitraum"
866
- + rangeLabelInRange="im Zeitraum"
867
- + rangeLabelAfterRange="nach dem Zeitraum"
868
- + navLabelPrevMonth="Vorheriger Monat"
869
- + navLabelNextMonth="Nächster Monat"
870
- + calendarGridLabel="Kalendertage des Monats"&gt;
871
- &lt;span slot="fromLabel"&gt;Abreise&lt;/span&gt;
872
- &lt;span slot="toLabel"&gt;Rückkehr&lt;/span&gt;
873
- &lt;span slot="helpText"&gt;Wählen Sie einen Zeitraum&lt;/span&gt;
874
- &lt;/auro-datepicker&gt;</code></pre>
875
- <!-- AURO-GENERATED-CONTENT:END -->
876
- <auro-header level="4" id="localizationDateFormatting">Date formatting</auro-header>
877
- <p>The <code>locale</code> attribute drives the date format used by the input and the calendar. Setting <code>locale</code> automatically selects the regional format (for example <code>en-US</code> → <code>mm/dd/yyyy</code>, <code>de-DE</code> → <code>dd.mm.yyyy</code>, <code>ja-JP</code> → <code>yyyy/mm/dd</code>), derived from the browser's <code>Intl</code> API, so <code>format</code> does not need to be set manually.</p>
878
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale.html) -->
879
- <!-- The below content is automatically added from ./../apiExamples/localization-locale.html -->
880
-
881
- <pre class="language-diff"><code class="language-diff">- &lt;auro-datepicker&gt;
882
- + &lt;auro-datepicker locale="de-DE"&gt;
883
- &lt;span slot="fromLabel"&gt;Deutsches Datum&lt;/span&gt;
884
- &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
885
- &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
886
- &lt;/auro-datepicker&gt;</code></pre>
887
- <!-- AURO-GENERATED-CONTENT:END -->
888
- <p>If no <code>locale</code> attribute is present, the component walks up the DOM looking for the nearest ancestor with a <code>data-locale</code> attribute; if none is found, it defaults to <code>en-US</code>.</p>
889
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-inherited.html) -->
890
- <!-- The below content is automatically added from ./../apiExamples/localization-locale-inherited.html -->
891
-
892
- <pre class="language-diff"><code class="language-diff">+ &lt;div data-locale="ja-JP"&gt;
893
- &lt;auro-datepicker&gt;
894
- &lt;span slot="fromLabel"&gt;継承された ja-JP 日付形式&lt;/span&gt;
895
- &lt;span slot="helpText"&gt;ヘルプテキスト&lt;/span&gt;
896
- &lt;span slot="optionalLabel"&gt;(任意)&lt;/span&gt;
897
- &lt;/auro-datepicker&gt;
898
- + &lt;/div&gt;</code></pre>
899
- <!-- AURO-GENERATED-CONTENT:END -->
900
- <p>If <code>format</code> is set alongside <code>locale</code>, <code>format</code> always wins.</p>
901
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-formatted.html) -->
902
- <!-- The below content is automatically added from ./../apiExamples/localization-locale-formatted.html -->
903
-
904
- <pre class="language-diff"><code class="language-diff"> &lt;auro-datepicker
905
- + locale="de-DE"
906
- + format="mm/dd/yyyy"&gt;
907
- &lt;span slot="fromLabel"&gt;Deutsches Datum mit mm/dd/yyyy-Format&lt;/span&gt;
908
- &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
909
- &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
910
- &lt;/auro-datepicker&gt;</code></pre>
911
- <!-- AURO-GENERATED-CONTENT:END -->
912
- <div class="exampleWrapper">
913
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/locale.html) -->
914
- <!-- The below content is automatically added from ./../apiExamples/locale.html -->
915
- <div data-locale="de-DE">
916
- <auro-header level="4" >de-DE Example</auro-header>
917
- <auro-datepicker
918
- locale="de-DE"
919
- range
920
- rangeLabelStart="Startdatum"
921
- rangeLabelEnd="Enddatum"
922
- rangeLabelBeforeRange="vor dem Zeitraum"
923
- rangeLabelInRange="im Zeitraum"
924
- rangeLabelAfterRange="nach dem Zeitraum"
925
- navLabelPrevMonth="Vorheriger Monat"
926
- navLabelNextMonth="Nächster Monat"
927
- calendarGridLabel="Kalendertage des Monats">
928
- <span slot="fromLabel">Deutsches Datum</span>
929
- <span slot="helpText">Hilfetext</span>
930
- <span slot="optionalLabel">(freiwillig)</span>
931
- </auro-datepicker>
932
- <auro-header level="4" >zh-CN Example</auro-header>
933
- <auro-datepicker
934
- locale="zh-CN"
935
- range
936
- rangeLabelStart="开始日期"
937
- rangeLabelEnd="结束日期"
938
- rangeLabelBeforeRange="在此期间之前"
939
- rangeLabelInRange="在此期间内"
940
- rangeLabelAfterRange="在此期间之后"
941
- navLabelPrevMonth="上个月"
942
- navLabelNextMonth="下个月"
943
- calendarGridLabel="本月的日历天数">
944
- <span slot="fromLabel">中文日期</span>
945
- <span slot="helpText">帮助文本</span>
946
- <span slot="optionalLabel">(可选)</span>
947
- </auro-datepicker>
948
- <auro-header level="4">Inherited de-DE date-locale Example</auro-header>
949
- <auro-datepicker
950
- range
951
- rangeLabelStart="Startdatum"
952
- rangeLabelEnd="Enddatum"
953
- rangeLabelBeforeRange="vor dem Zeitraum"
954
- rangeLabelInRange="im Zeitraum"
955
- rangeLabelAfterRange="nach dem Zeitraum"
956
- navLabelPrevMonth="Vorheriger Monat"
957
- navLabelNextMonth="Nächster Monat"
958
- calendarGridLabel="Kalendertage des Monats">
959
- <span slot="fromLabel">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
960
- <span slot="helpText">Hilfetext</span>
961
- <span slot="optionalLabel">(freiwillig)</span>
962
- </auro-datepicker>
963
- <auro-header level="4" >ja-JP with `mm/dd/yyyy` format Example</auro-header>
964
- <auro-datepicker
965
- locale="ja-JP"
966
- format="mm/dd/yyyy"
967
- range
968
- rangeLabelStart="開始日"
969
- rangeLabelEnd="終了日"
970
- rangeLabelBeforeRange="この期間の前"
971
- rangeLabelInRange="この期間内"
972
- rangeLabelAfterRange="この期間の後"
973
- navLabelPrevMonth="前の月"
974
- navLabelNextMonth="次の月"
975
- calendarGridLabel="カレンダーの日付">
976
- <span slot="fromLabel">明示的な mm/dd/yyyy 形式の ja-JP ロケール</span>
977
- <span slot="helpText">ヘルプテキスト</span>
978
- <span slot="optionalLabel">(任意)</span>
979
- </auro-datepicker>
980
- </div>
981
- <!-- AURO-GENERATED-CONTENT:END -->
982
- </div>
983
- <auro-accordion alignRight>
984
- <span slot="trigger">See code</span>
985
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale.html) -->
986
- <!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
987
- <pre class="language-html"><code class="language-html">&lt;div data-locale="de-DE"&gt;
988
- &lt;auro-header level="4" &gt;de-DE Example&lt;/auro-header&gt;
989
- &lt;auro-datepicker
990
- locale="de-DE"
991
- range
992
- rangeLabelStart="Startdatum"
993
- rangeLabelEnd="Enddatum"
994
- rangeLabelBeforeRange="vor dem Zeitraum"
995
- rangeLabelInRange="im Zeitraum"
996
- rangeLabelAfterRange="nach dem Zeitraum"
997
- navLabelPrevMonth="Vorheriger Monat"
998
- navLabelNextMonth="Nächster Monat"
999
- calendarGridLabel="Kalendertage des Monats"&gt;
1000
- &lt;span slot="fromLabel"&gt;Deutsches Datum&lt;/span&gt;
1001
- &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
1002
- &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
1003
- &lt;/auro-datepicker&gt;
1004
- &lt;auro-header level="4" &gt;zh-CN Example&lt;/auro-header&gt;
1005
- &lt;auro-datepicker
1006
- locale="zh-CN"
1007
- range
1008
- rangeLabelStart="开始日期"
1009
- rangeLabelEnd="结束日期"
1010
- rangeLabelBeforeRange="在此期间之前"
1011
- rangeLabelInRange="在此期间内"
1012
- rangeLabelAfterRange="在此期间之后"
1013
- navLabelPrevMonth="上个月"
1014
- navLabelNextMonth="下个月"
1015
- calendarGridLabel="本月的日历天数"&gt;
1016
- &lt;span slot="fromLabel"&gt;中文日期&lt;/span&gt;
1017
- &lt;span slot="helpText"&gt;帮助文本&lt;/span&gt;
1018
- &lt;span slot="optionalLabel"&gt;(可选)&lt;/span&gt;
1019
- &lt;/auro-datepicker&gt;
1020
- &lt;auro-header level="4"&gt;Inherited de-DE date-locale Example&lt;/auro-header&gt;
1021
- &lt;auro-datepicker
1022
- range
1023
- rangeLabelStart="Startdatum"
1024
- rangeLabelEnd="Enddatum"
1025
- rangeLabelBeforeRange="vor dem Zeitraum"
1026
- rangeLabelInRange="im Zeitraum"
1027
- rangeLabelAfterRange="nach dem Zeitraum"
1028
- navLabelPrevMonth="Vorheriger Monat"
1029
- navLabelNextMonth="Nächster Monat"
1030
- calendarGridLabel="Kalendertage des Monats"&gt;
1031
- &lt;span slot="fromLabel"&gt;Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)&lt;/span&gt;
1032
- &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
1033
- &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
1034
- &lt;/auro-datepicker&gt;
1035
- &lt;auro-header level="4" &gt;ja-JP with `mm/dd/yyyy` format Example&lt;/auro-header&gt;
1036
- &lt;auro-datepicker
1037
- locale="ja-JP"
1038
- format="mm/dd/yyyy"
1039
- range
1040
- rangeLabelStart="開始日"
1041
- rangeLabelEnd="終了日"
1042
- rangeLabelBeforeRange="この期間の前"
1043
- rangeLabelInRange="この期間内"
1044
- rangeLabelAfterRange="この期間の後"
1045
- navLabelPrevMonth="前の月"
1046
- navLabelNextMonth="次の月"
1047
- calendarGridLabel="カレンダーの日付"&gt;
1048
- &lt;span slot="fromLabel"&gt;明示的な mm/dd/yyyy 形式の ja-JP ロケール&lt;/span&gt;
1049
- &lt;span slot="helpText"&gt;ヘルプテキスト&lt;/span&gt;
1050
- &lt;span slot="optionalLabel"&gt;(任意)&lt;/span&gt;
1051
- &lt;/auro-datepicker&gt;
1052
- &lt;/div&gt;</code></pre>
1053
- <!-- AURO-GENERATED-CONTENT:END -->
1054
- </auro-accordion>
1055
- <!-- AURO-GENERATED-CONTENT:END -->
1056
- <pre><code>// Override month names (all 12 required, starting with January)
1057
- datepicker.monthNames = [
1058
- 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
1059
- 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
1060
- ];</code></pre>
1061
- <div class="exampleWrapper">
1062
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/locale.html) -->
1063
- <!-- The below content is automatically added from ./../apiExamples/locale.html -->
1064
- <div data-locale="de-DE">
1065
- <auro-header level="4" >de-DE Example</auro-header>
1066
- <auro-datepicker
1067
- locale="de-DE"
1068
- range
1069
- rangeLabelStart="Startdatum"
1070
- rangeLabelEnd="Enddatum"
1071
- rangeLabelBeforeRange="vor dem Zeitraum"
1072
- rangeLabelInRange="im Zeitraum"
1073
- rangeLabelAfterRange="nach dem Zeitraum"
1074
- navLabelPrevMonth="Vorheriger Monat"
1075
- navLabelNextMonth="Nächster Monat"
1076
- calendarGridLabel="Kalendertage des Monats">
1077
- <span slot="fromLabel">Deutsches Datum</span>
1078
- <span slot="helpText">Hilfetext</span>
1079
- <span slot="optionalLabel">(freiwillig)</span>
1080
- </auro-datepicker>
1081
- <auro-header level="4" >zh-CN Example</auro-header>
1082
- <auro-datepicker
1083
- locale="zh-CN"
1084
- range
1085
- rangeLabelStart="开始日期"
1086
- rangeLabelEnd="结束日期"
1087
- rangeLabelBeforeRange="在此期间之前"
1088
- rangeLabelInRange="在此期间内"
1089
- rangeLabelAfterRange="在此期间之后"
1090
- navLabelPrevMonth="上个月"
1091
- navLabelNextMonth="下个月"
1092
- calendarGridLabel="本月的日历天数">
1093
- <span slot="fromLabel">中文日期</span>
1094
- <span slot="helpText">帮助文本</span>
1095
- <span slot="optionalLabel">(可选)</span>
1096
- </auro-datepicker>
1097
- <auro-header level="4">Inherited de-DE date-locale Example</auro-header>
1098
- <auro-datepicker
1099
- range
1100
- rangeLabelStart="Startdatum"
1101
- rangeLabelEnd="Enddatum"
1102
- rangeLabelBeforeRange="vor dem Zeitraum"
1103
- rangeLabelInRange="im Zeitraum"
1104
- rangeLabelAfterRange="nach dem Zeitraum"
1105
- navLabelPrevMonth="Vorheriger Monat"
1106
- navLabelNextMonth="Nächster Monat"
1107
- calendarGridLabel="Kalendertage des Monats">
1108
- <span slot="fromLabel">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
1109
- <span slot="helpText">Hilfetext</span>
1110
- <span slot="optionalLabel">(freiwillig)</span>
1111
- </auro-datepicker>
1112
- <auro-header level="4" >ja-JP with `mm/dd/yyyy` format Example</auro-header>
1113
- <auro-datepicker
1114
- locale="ja-JP"
1115
- format="mm/dd/yyyy"
1116
- range
1117
- rangeLabelStart="開始日"
1118
- rangeLabelEnd="終了日"
1119
- rangeLabelBeforeRange="この期間の前"
1120
- rangeLabelInRange="この期間内"
1121
- rangeLabelAfterRange="この期間の後"
1122
- navLabelPrevMonth="前の月"
1123
- navLabelNextMonth="次の月"
1124
- calendarGridLabel="カレンダーの日付">
1125
- <span slot="fromLabel">明示的な mm/dd/yyyy 形式の ja-JP ロケール</span>
1126
- <span slot="helpText">ヘルプテキスト</span>
1127
- <span slot="optionalLabel">(任意)</span>
1128
- </auro-datepicker>
1129
- </div>
1130
- <!-- AURO-GENERATED-CONTENT:END -->
1131
- </div>
1132
- <auro-accordion alignRight>
1133
- <span slot="trigger">See code</span>
1134
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale.html) -->
1135
- <!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
1136
- <pre class="language-html"><code class="language-html">&lt;div data-locale="de-DE"&gt;
1137
- &lt;auro-header level="4" &gt;de-DE Example&lt;/auro-header&gt;
1138
- &lt;auro-datepicker
1139
- locale="de-DE"
1140
- range
1141
- rangeLabelStart="Startdatum"
1142
- rangeLabelEnd="Enddatum"
1143
- rangeLabelBeforeRange="vor dem Zeitraum"
1144
- rangeLabelInRange="im Zeitraum"
1145
- rangeLabelAfterRange="nach dem Zeitraum"
1146
- navLabelPrevMonth="Vorheriger Monat"
1147
- navLabelNextMonth="Nächster Monat"
1148
- calendarGridLabel="Kalendertage des Monats"&gt;
1149
- &lt;span slot="fromLabel"&gt;Deutsches Datum&lt;/span&gt;
1150
- &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
1151
- &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
1152
- &lt;/auro-datepicker&gt;
1153
- &lt;auro-header level="4" &gt;zh-CN Example&lt;/auro-header&gt;
1154
- &lt;auro-datepicker
1155
- locale="zh-CN"
1156
- range
1157
- rangeLabelStart="开始日期"
1158
- rangeLabelEnd="结束日期"
1159
- rangeLabelBeforeRange="在此期间之前"
1160
- rangeLabelInRange="在此期间内"
1161
- rangeLabelAfterRange="在此期间之后"
1162
- navLabelPrevMonth="上个月"
1163
- navLabelNextMonth="下个月"
1164
- calendarGridLabel="本月的日历天数"&gt;
1165
- &lt;span slot="fromLabel"&gt;中文日期&lt;/span&gt;
1166
- &lt;span slot="helpText"&gt;帮助文本&lt;/span&gt;
1167
- &lt;span slot="optionalLabel"&gt;(可选)&lt;/span&gt;
1168
- &lt;/auro-datepicker&gt;
1169
- &lt;auro-header level="4"&gt;Inherited de-DE date-locale Example&lt;/auro-header&gt;
1170
- &lt;auro-datepicker
1171
- range
1172
- rangeLabelStart="Startdatum"
1173
- rangeLabelEnd="Enddatum"
1174
- rangeLabelBeforeRange="vor dem Zeitraum"
1175
- rangeLabelInRange="im Zeitraum"
1176
- rangeLabelAfterRange="nach dem Zeitraum"
1177
- navLabelPrevMonth="Vorheriger Monat"
1178
- navLabelNextMonth="Nächster Monat"
1179
- calendarGridLabel="Kalendertage des Monats"&gt;
1180
- &lt;span slot="fromLabel"&gt;Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)&lt;/span&gt;
1181
- &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
1182
- &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
1183
- &lt;/auro-datepicker&gt;
1184
- &lt;auro-header level="4" &gt;ja-JP with `mm/dd/yyyy` format Example&lt;/auro-header&gt;
1185
- &lt;auro-datepicker
1186
- locale="ja-JP"
1187
- format="mm/dd/yyyy"
1188
- range
1189
- rangeLabelStart="開始日"
1190
- rangeLabelEnd="終了日"
1191
- rangeLabelBeforeRange="この期間の前"
1192
- rangeLabelInRange="この期間内"
1193
- rangeLabelAfterRange="この期間の後"
1194
- navLabelPrevMonth="前の月"
1195
- navLabelNextMonth="次の月"
1196
- calendarGridLabel="カレンダーの日付"&gt;
1197
- &lt;span slot="fromLabel"&gt;明示的な mm/dd/yyyy 形式の ja-JP ロケール&lt;/span&gt;
1198
- &lt;span slot="helpText"&gt;ヘルプテキスト&lt;/span&gt;
1199
- &lt;span slot="optionalLabel"&gt;(任意)&lt;/span&gt;
1200
- &lt;/auro-datepicker&gt;
1201
- &lt;/div&gt;</code></pre>
1202
- <!-- AURO-GENERATED-CONTENT:END -->
1203
- </auro-accordion>
1204
- <auro-header level="4" id="regionalDate">Regional Date</auro-header>
1205
- <p>When the <code>locale</code> attribute is set, the component automatically derives the correct date format for that region — no need to set <code>format</code> manually. For example, <code>locale="en-US"</code> produces <code>mm/dd/yyyy</code>, <code>locale="de-DE"</code> produces <code>dd.mm.yyyy</code>, and <code>locale="ja-JP"</code> produces <code>yyyy/mm/dd</code>.</p>
1206
- <p>If <code>format</code> is explicitly set alongside <code>locale</code>, <code>format</code> always wins. Use this when a specific format is required regardless of region.</p>
1207
- <p>If no <code>locale</code> attribute is set on the element, the component walks up the DOM looking for the nearest ancestor with a <code>data-locale</code> attribute and uses that value. If none is found, it defaults to <code>en-US</code>.</p>
1208
- <auro-header level="4" id="rangeLabels">Screen Reader Labels</auro-header>
1209
- <p>The following attributes customize the labels announced by screen readers when navigating the calendar. Range labels apply when the <code>range</code> attribute is set; navigation labels apply to all configurations.</p>
1210
- <auro-table>
1211
- <table>
1212
- <thead>
1213
- <tr>
1214
- <th>Attribute</th>
1215
- <th>Default</th>
1216
- <th>Description</th>
1217
- </tr>
1218
- </thead>
1219
- <tbody>
1220
- <tr>
1221
- <td><code>rangeLabelStart</code></td>
1222
- <td>"range start"</td>
1223
- <td>Announced on the departure/start date cell.</td>
1224
- </tr>
1225
- <tr>
1226
- <td><code>rangeLabelEnd</code></td>
1227
- <td>"range end"</td>
1228
- <td>Announced on the return/end date cell.</td>
1229
- </tr>
1230
- <tr>
1231
- <td><code>rangeLabelBeforeRange</code></td>
1232
- <td>"before range"</td>
1233
- <td>Announced on cells before the start date.</td>
1234
- </tr>
1235
- <tr>
1236
- <td><code>rangeLabelInRange</code></td>
1237
- <td>"in range"</td>
1238
- <td>Announced on cells between the start and end dates.</td>
1239
- </tr>
1240
- <tr>
1241
- <td><code>rangeLabelAfterRange</code></td>
1242
- <td>"after range"</td>
1243
- <td>Announced on cells after the end date (or after start when no end is selected).</td>
1244
- </tr>
1245
- <tr>
1246
- <td><code>navLabelPrevMonth</code></td>
1247
- <td>"Previous month"</td>
1248
- <td>Accessible label for the previous month navigation button.</td>
1249
- </tr>
1250
- <tr>
1251
- <td><code>navLabelNextMonth</code></td>
1252
- <td>"Next month"</td>
1253
- <td>Accessible label for the next month navigation button.</td>
1254
- </tr>
1255
- <tr>
1256
- <td><code>calendarGridLabel</code></td>
1257
- <td>"Calendar days of the month"</td>
1258
- <td>Accessible label for the calendar grid containing the days of the month.</td>
1259
- </tr>
1260
- </tbody>
1261
- </table>
1262
- </auro-table>
1263
823
  <auro-header level="3" id="minMaxDate">Min/Max Date</auro-header>
1264
824
  <p>Use the <code>minDate</code> and <code>maxDate</code> attributes to constrain the selectable date range.</p>
1265
825
  <div class="exampleWrapper">