@ionic/core 9.0.11-dev.11793736984.1580a194 → 9.0.11-dev.11793874002.1c88a1d0
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/ion-badge.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/components/{p-B7ExaLVL.js → p-BCQSEpww.js} +1 -1
- package/components/p-CeQm1-3s.js +4 -0
- package/components/p-Da8LCPwo.js +4 -0
- package/components/p-DirxxGzo.js +4 -0
- package/components/{p-BCYVFy50.js → p-DkKuPFGm.js} +1 -1
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/css/ionic/core.ionic.css +1 -1
- package/css/ionic/core.ionic.css.map +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +93 -20
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +6 -33
- package/dist/cjs/ion-datetime.cjs.entry.js +36 -353
- package/dist/cjs/ion-item-option_3.cjs.entry.js +1 -1
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/badge/badge.ionic.css +1 -1
- package/dist/collection/components/button/button.ionic.css +1 -1
- package/dist/collection/components/content/content.ionic.css +352 -0
- package/dist/collection/components/content/{content.css → content.ios.css} +65 -41
- package/dist/collection/components/content/content.js +9 -5
- package/dist/collection/components/content/content.md.css +347 -0
- package/dist/collection/components/datetime/datetime.ionic.css +5 -187
- package/dist/collection/components/datetime/datetime.ios.css +2 -142
- package/dist/collection/components/datetime/datetime.js +33 -406
- package/dist/collection/components/datetime/datetime.md.css +0 -128
- package/dist/collection/components/datetime/utils/state.js +1 -18
- package/dist/collection/components/datetime-button/datetime-button.js +6 -34
- package/dist/collection/components/item-option/item-option.ionic.css +1 -1
- package/dist/collection/components/toolbar/toolbar.js +80 -15
- package/dist/docs.json +127 -160
- package/dist/esm/{format-DUHrIiJq.js → format-NT7iHsbA.js} +1 -1
- package/dist/esm/ion-app_8.entry.js +93 -20
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +7 -34
- package/dist/esm/ion-datetime.entry.js +37 -354
- package/dist/esm/ion-item-option_3.entry.js +1 -1
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +0 -20
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0743a26a.entry.js +4 -0
- package/dist/ionic/p-10dfe93f.entry.js +4 -0
- package/dist/ionic/p-1d709b26.entry.js +4 -0
- package/dist/ionic/p-6e4ee264.entry.js +4 -0
- package/dist/ionic/{p-CaOPF8Xt.js → p-BtccSO5J.js} +1 -1
- package/dist/ionic/p-ad46d2fd.entry.js +4 -0
- package/dist/ionic/{p-8231e914.entry.js → p-b51eb274.entry.js} +1 -1
- package/dist/types/components/datetime/datetime-interface.d.ts +0 -4
- package/dist/types/components/datetime/datetime.d.ts +2 -71
- package/dist/types/components/datetime/utils/state.d.ts +2 -5
- package/dist/types/components/toolbar/toolbar.d.ts +27 -1
- package/dist/types/components.d.ts +0 -33
- package/hydrate/index.js +140 -419
- package/hydrate/index.mjs +140 -419
- package/package.json +1 -1
- package/components/p-ByE0slik.js +0 -4
- package/components/p-DdOVnjsY.js +0 -4
- package/components/p-DktrWeJE.js +0 -4
- package/dist/ionic/p-41680415.entry.js +0 -4
- package/dist/ionic/p-5e094639.entry.js +0 -4
- package/dist/ionic/p-a52cba2f.entry.js +0 -4
- package/dist/ionic/p-b30b468d.entry.js +0 -4
- package/dist/ionic/p-ceca04fb.entry.js +0 -4
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-11-
|
|
2
|
+
"timestamp": "2026-11-05T10:23:02",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.45.2",
|
|
@@ -10737,47 +10737,164 @@
|
|
|
10737
10737
|
{
|
|
10738
10738
|
"name": "--background",
|
|
10739
10739
|
"annotation": "prop",
|
|
10740
|
-
"docs": "Background of the content"
|
|
10740
|
+
"docs": "Background of the content",
|
|
10741
|
+
"mode": "ionic"
|
|
10742
|
+
},
|
|
10743
|
+
{
|
|
10744
|
+
"name": "--background",
|
|
10745
|
+
"annotation": "prop",
|
|
10746
|
+
"docs": "Background of the content",
|
|
10747
|
+
"mode": "ios"
|
|
10748
|
+
},
|
|
10749
|
+
{
|
|
10750
|
+
"name": "--background",
|
|
10751
|
+
"annotation": "prop",
|
|
10752
|
+
"docs": "Background of the content",
|
|
10753
|
+
"mode": "md"
|
|
10754
|
+
},
|
|
10755
|
+
{
|
|
10756
|
+
"name": "--color",
|
|
10757
|
+
"annotation": "prop",
|
|
10758
|
+
"docs": "Color of the content",
|
|
10759
|
+
"mode": "ionic"
|
|
10741
10760
|
},
|
|
10742
10761
|
{
|
|
10743
10762
|
"name": "--color",
|
|
10744
10763
|
"annotation": "prop",
|
|
10745
|
-
"docs": "Color of the content"
|
|
10764
|
+
"docs": "Color of the content",
|
|
10765
|
+
"mode": "ios"
|
|
10766
|
+
},
|
|
10767
|
+
{
|
|
10768
|
+
"name": "--color",
|
|
10769
|
+
"annotation": "prop",
|
|
10770
|
+
"docs": "Color of the content",
|
|
10771
|
+
"mode": "md"
|
|
10772
|
+
},
|
|
10773
|
+
{
|
|
10774
|
+
"name": "--keyboard-offset",
|
|
10775
|
+
"annotation": "prop",
|
|
10776
|
+
"docs": "Keyboard offset of the content",
|
|
10777
|
+
"mode": "ionic"
|
|
10746
10778
|
},
|
|
10747
10779
|
{
|
|
10748
10780
|
"name": "--keyboard-offset",
|
|
10749
10781
|
"annotation": "prop",
|
|
10750
|
-
"docs": "Keyboard offset of the content"
|
|
10782
|
+
"docs": "Keyboard offset of the content",
|
|
10783
|
+
"mode": "ios"
|
|
10784
|
+
},
|
|
10785
|
+
{
|
|
10786
|
+
"name": "--keyboard-offset",
|
|
10787
|
+
"annotation": "prop",
|
|
10788
|
+
"docs": "Keyboard offset of the content",
|
|
10789
|
+
"mode": "md"
|
|
10790
|
+
},
|
|
10791
|
+
{
|
|
10792
|
+
"name": "--offset-bottom",
|
|
10793
|
+
"annotation": "prop",
|
|
10794
|
+
"docs": "Offset bottom of the content",
|
|
10795
|
+
"mode": "ionic"
|
|
10796
|
+
},
|
|
10797
|
+
{
|
|
10798
|
+
"name": "--offset-bottom",
|
|
10799
|
+
"annotation": "prop",
|
|
10800
|
+
"docs": "Offset bottom of the content",
|
|
10801
|
+
"mode": "ios"
|
|
10751
10802
|
},
|
|
10752
10803
|
{
|
|
10753
10804
|
"name": "--offset-bottom",
|
|
10754
10805
|
"annotation": "prop",
|
|
10755
|
-
"docs": "Offset bottom of the content"
|
|
10806
|
+
"docs": "Offset bottom of the content",
|
|
10807
|
+
"mode": "md"
|
|
10808
|
+
},
|
|
10809
|
+
{
|
|
10810
|
+
"name": "--offset-top",
|
|
10811
|
+
"annotation": "prop",
|
|
10812
|
+
"docs": "Offset top of the content",
|
|
10813
|
+
"mode": "ionic"
|
|
10814
|
+
},
|
|
10815
|
+
{
|
|
10816
|
+
"name": "--offset-top",
|
|
10817
|
+
"annotation": "prop",
|
|
10818
|
+
"docs": "Offset top of the content",
|
|
10819
|
+
"mode": "ios"
|
|
10756
10820
|
},
|
|
10757
10821
|
{
|
|
10758
10822
|
"name": "--offset-top",
|
|
10759
10823
|
"annotation": "prop",
|
|
10760
|
-
"docs": "Offset top of the content"
|
|
10824
|
+
"docs": "Offset top of the content",
|
|
10825
|
+
"mode": "md"
|
|
10826
|
+
},
|
|
10827
|
+
{
|
|
10828
|
+
"name": "--padding-bottom",
|
|
10829
|
+
"annotation": "prop",
|
|
10830
|
+
"docs": "Bottom padding of the content",
|
|
10831
|
+
"mode": "ionic"
|
|
10832
|
+
},
|
|
10833
|
+
{
|
|
10834
|
+
"name": "--padding-bottom",
|
|
10835
|
+
"annotation": "prop",
|
|
10836
|
+
"docs": "Bottom padding of the content",
|
|
10837
|
+
"mode": "ios"
|
|
10761
10838
|
},
|
|
10762
10839
|
{
|
|
10763
10840
|
"name": "--padding-bottom",
|
|
10764
10841
|
"annotation": "prop",
|
|
10765
|
-
"docs": "Bottom padding of the content"
|
|
10842
|
+
"docs": "Bottom padding of the content",
|
|
10843
|
+
"mode": "md"
|
|
10766
10844
|
},
|
|
10767
10845
|
{
|
|
10768
10846
|
"name": "--padding-end",
|
|
10769
10847
|
"annotation": "prop",
|
|
10770
|
-
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content"
|
|
10848
|
+
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content",
|
|
10849
|
+
"mode": "ionic"
|
|
10850
|
+
},
|
|
10851
|
+
{
|
|
10852
|
+
"name": "--padding-end",
|
|
10853
|
+
"annotation": "prop",
|
|
10854
|
+
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content",
|
|
10855
|
+
"mode": "ios"
|
|
10856
|
+
},
|
|
10857
|
+
{
|
|
10858
|
+
"name": "--padding-end",
|
|
10859
|
+
"annotation": "prop",
|
|
10860
|
+
"docs": "Right padding if direction is left-to-right, and left padding if direction is right-to-left of the content",
|
|
10861
|
+
"mode": "md"
|
|
10862
|
+
},
|
|
10863
|
+
{
|
|
10864
|
+
"name": "--padding-start",
|
|
10865
|
+
"annotation": "prop",
|
|
10866
|
+
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content",
|
|
10867
|
+
"mode": "ionic"
|
|
10771
10868
|
},
|
|
10772
10869
|
{
|
|
10773
10870
|
"name": "--padding-start",
|
|
10774
10871
|
"annotation": "prop",
|
|
10775
|
-
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content"
|
|
10872
|
+
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content",
|
|
10873
|
+
"mode": "ios"
|
|
10874
|
+
},
|
|
10875
|
+
{
|
|
10876
|
+
"name": "--padding-start",
|
|
10877
|
+
"annotation": "prop",
|
|
10878
|
+
"docs": "Left padding if direction is left-to-right, and right padding if direction is right-to-left of the content",
|
|
10879
|
+
"mode": "md"
|
|
10880
|
+
},
|
|
10881
|
+
{
|
|
10882
|
+
"name": "--padding-top",
|
|
10883
|
+
"annotation": "prop",
|
|
10884
|
+
"docs": "Top padding of the content",
|
|
10885
|
+
"mode": "ionic"
|
|
10886
|
+
},
|
|
10887
|
+
{
|
|
10888
|
+
"name": "--padding-top",
|
|
10889
|
+
"annotation": "prop",
|
|
10890
|
+
"docs": "Top padding of the content",
|
|
10891
|
+
"mode": "ios"
|
|
10776
10892
|
},
|
|
10777
10893
|
{
|
|
10778
10894
|
"name": "--padding-top",
|
|
10779
10895
|
"annotation": "prop",
|
|
10780
|
-
"docs": "Top padding of the content"
|
|
10896
|
+
"docs": "Top padding of the content",
|
|
10897
|
+
"mode": "md"
|
|
10781
10898
|
}
|
|
10782
10899
|
],
|
|
10783
10900
|
"slots": [
|
|
@@ -10897,22 +11014,6 @@
|
|
|
10897
11014
|
"name": "part",
|
|
10898
11015
|
"text": "calendar-day disabled - The calendar day that is disabled."
|
|
10899
11016
|
},
|
|
10900
|
-
{
|
|
10901
|
-
"name": "part",
|
|
10902
|
-
"text": "range-start - The calendar day button that is the start of a range selection."
|
|
10903
|
-
},
|
|
10904
|
-
{
|
|
10905
|
-
"name": "part",
|
|
10906
|
-
"text": "range-end - The calendar day button that is the end of a range selection."
|
|
10907
|
-
},
|
|
10908
|
-
{
|
|
10909
|
-
"name": "part",
|
|
10910
|
-
"text": "range-selection - The calendar day button that is part of a range selection (includes start and end)."
|
|
10911
|
-
},
|
|
10912
|
-
{
|
|
10913
|
-
"name": "part",
|
|
10914
|
-
"text": "range-track - The track that connects the start and end days of a range selection."
|
|
10915
|
-
},
|
|
10916
11017
|
{
|
|
10917
11018
|
"name": "part",
|
|
10918
11019
|
"text": "datetime-header - The datetime header contains the content for the `title` slot and the selected date."
|
|
@@ -11145,35 +11246,6 @@
|
|
|
11145
11246
|
"getter": false,
|
|
11146
11247
|
"setter": false
|
|
11147
11248
|
},
|
|
11148
|
-
{
|
|
11149
|
-
"name": "endDateLabel",
|
|
11150
|
-
"type": "string",
|
|
11151
|
-
"complexType": {
|
|
11152
|
-
"original": "string",
|
|
11153
|
-
"resolved": "string",
|
|
11154
|
-
"references": {}
|
|
11155
|
-
},
|
|
11156
|
-
"mutable": false,
|
|
11157
|
-
"attr": "end-date-label",
|
|
11158
|
-
"reflectToAttr": false,
|
|
11159
|
-
"docs": "The text shown in the datetime header when the end of the range\nis empty, also used by screen readers to announce the end date.\nOnly applies when `selectionMode=\"range\"`.",
|
|
11160
|
-
"docsTags": [
|
|
11161
|
-
{
|
|
11162
|
-
"name": "default",
|
|
11163
|
-
"text": "'End date'"
|
|
11164
|
-
}
|
|
11165
|
-
],
|
|
11166
|
-
"default": "'End date'",
|
|
11167
|
-
"values": [
|
|
11168
|
-
{
|
|
11169
|
-
"type": "string"
|
|
11170
|
-
}
|
|
11171
|
-
],
|
|
11172
|
-
"optional": false,
|
|
11173
|
-
"required": false,
|
|
11174
|
-
"getter": false,
|
|
11175
|
-
"setter": false
|
|
11176
|
-
},
|
|
11177
11249
|
{
|
|
11178
11250
|
"name": "firstDayOfWeek",
|
|
11179
11251
|
"type": "number",
|
|
@@ -11570,17 +11642,12 @@
|
|
|
11570
11642
|
"reflectToAttr": false,
|
|
11571
11643
|
"docs": "If `true`, multiple dates can be selected at once. Only\napplies to `presentation=\"date\"` and `preferWheel=\"false\"`.",
|
|
11572
11644
|
"docsTags": [
|
|
11573
|
-
{
|
|
11574
|
-
"name": "deprecated",
|
|
11575
|
-
"text": "Use `selectionMode=\"multiple\"` instead."
|
|
11576
|
-
},
|
|
11577
11645
|
{
|
|
11578
11646
|
"name": "default",
|
|
11579
11647
|
"text": "false"
|
|
11580
11648
|
}
|
|
11581
11649
|
],
|
|
11582
11650
|
"default": "false",
|
|
11583
|
-
"deprecation": "Use `selectionMode=\"multiple\"` instead.",
|
|
11584
11651
|
"values": [
|
|
11585
11652
|
{
|
|
11586
11653
|
"type": "boolean"
|
|
@@ -11739,37 +11806,6 @@
|
|
|
11739
11806
|
"getter": false,
|
|
11740
11807
|
"setter": false
|
|
11741
11808
|
},
|
|
11742
|
-
{
|
|
11743
|
-
"name": "selectionMode",
|
|
11744
|
-
"type": "\"multiple\" | \"range\" | undefined",
|
|
11745
|
-
"complexType": {
|
|
11746
|
-
"original": "'multiple' | 'range'",
|
|
11747
|
-
"resolved": "\"multiple\" | \"range\" | undefined",
|
|
11748
|
-
"references": {}
|
|
11749
|
-
},
|
|
11750
|
-
"mutable": false,
|
|
11751
|
-
"attr": "selection-mode",
|
|
11752
|
-
"reflectToAttr": false,
|
|
11753
|
-
"docs": "Controls the date selection behavior.\n`'multiple'` enables selecting multiple individual dates.\n`'range'` enables selecting a start and end date range.\nWhen unset, single-date selection is used.\n\nRange selection only works with `presentation=\"date\"` and `preferWheel=\"false\"`.",
|
|
11754
|
-
"docsTags": [],
|
|
11755
|
-
"values": [
|
|
11756
|
-
{
|
|
11757
|
-
"value": "multiple",
|
|
11758
|
-
"type": "string"
|
|
11759
|
-
},
|
|
11760
|
-
{
|
|
11761
|
-
"value": "range",
|
|
11762
|
-
"type": "string"
|
|
11763
|
-
},
|
|
11764
|
-
{
|
|
11765
|
-
"type": "undefined"
|
|
11766
|
-
}
|
|
11767
|
-
],
|
|
11768
|
-
"optional": true,
|
|
11769
|
-
"required": false,
|
|
11770
|
-
"getter": false,
|
|
11771
|
-
"setter": false
|
|
11772
|
-
},
|
|
11773
11809
|
{
|
|
11774
11810
|
"name": "showAdjacentDays",
|
|
11775
11811
|
"type": "boolean",
|
|
@@ -11949,35 +11985,6 @@
|
|
|
11949
11985
|
"getter": false,
|
|
11950
11986
|
"setter": false
|
|
11951
11987
|
},
|
|
11952
|
-
{
|
|
11953
|
-
"name": "startDateLabel",
|
|
11954
|
-
"type": "string",
|
|
11955
|
-
"complexType": {
|
|
11956
|
-
"original": "string",
|
|
11957
|
-
"resolved": "string",
|
|
11958
|
-
"references": {}
|
|
11959
|
-
},
|
|
11960
|
-
"mutable": false,
|
|
11961
|
-
"attr": "start-date-label",
|
|
11962
|
-
"reflectToAttr": false,
|
|
11963
|
-
"docs": "The text shown in the datetime header when the start of the range\nis empty, also used by screen readers to announce the start date.\nOnly applies when `selectionMode=\"range\"`.",
|
|
11964
|
-
"docsTags": [
|
|
11965
|
-
{
|
|
11966
|
-
"name": "default",
|
|
11967
|
-
"text": "'Start date'"
|
|
11968
|
-
}
|
|
11969
|
-
],
|
|
11970
|
-
"default": "'Start date'",
|
|
11971
|
-
"values": [
|
|
11972
|
-
{
|
|
11973
|
-
"type": "string"
|
|
11974
|
-
}
|
|
11975
|
-
],
|
|
11976
|
-
"optional": false,
|
|
11977
|
-
"required": false,
|
|
11978
|
-
"getter": false,
|
|
11979
|
-
"setter": false
|
|
11980
|
-
},
|
|
11981
11988
|
{
|
|
11982
11989
|
"name": "theme",
|
|
11983
11990
|
"type": "\"ios\" | \"md\" | \"ionic\"",
|
|
@@ -12159,12 +12166,6 @@
|
|
|
12159
12166
|
"Promise": {
|
|
12160
12167
|
"location": "global",
|
|
12161
12168
|
"id": "global::Promise"
|
|
12162
|
-
},
|
|
12163
|
-
"DatetimeParts": {
|
|
12164
|
-
"location": "import",
|
|
12165
|
-
"path": "./datetime-interface",
|
|
12166
|
-
"id": "src/components/datetime/datetime-interface.ts::DatetimeParts",
|
|
12167
|
-
"referenceLocation": "DatetimeParts"
|
|
12168
12169
|
}
|
|
12169
12170
|
},
|
|
12170
12171
|
"return": "Promise<void>"
|
|
@@ -12334,24 +12335,6 @@
|
|
|
12334
12335
|
"docs": "The width of the ring around the focused element.",
|
|
12335
12336
|
"mode": "ionic"
|
|
12336
12337
|
},
|
|
12337
|
-
{
|
|
12338
|
-
"name": "--range-background",
|
|
12339
|
-
"annotation": "prop",
|
|
12340
|
-
"docs": "The background color of the range selection track.",
|
|
12341
|
-
"mode": "ionic"
|
|
12342
|
-
},
|
|
12343
|
-
{
|
|
12344
|
-
"name": "--range-background",
|
|
12345
|
-
"annotation": "prop",
|
|
12346
|
-
"docs": "The background color of the range selection track.",
|
|
12347
|
-
"mode": "ios"
|
|
12348
|
-
},
|
|
12349
|
-
{
|
|
12350
|
-
"name": "--range-background",
|
|
12351
|
-
"annotation": "prop",
|
|
12352
|
-
"docs": "The background color of the range selection track.",
|
|
12353
|
-
"mode": "md"
|
|
12354
|
-
},
|
|
12355
12338
|
{
|
|
12356
12339
|
"name": "--title-color",
|
|
12357
12340
|
"annotation": "prop",
|
|
@@ -12468,22 +12451,6 @@
|
|
|
12468
12451
|
"name": "previous-button",
|
|
12469
12452
|
"docs": "The button used to navigate to the previous month when using a grid style layout."
|
|
12470
12453
|
},
|
|
12471
|
-
{
|
|
12472
|
-
"name": "range-end",
|
|
12473
|
-
"docs": "The calendar day button that is the end of a range selection."
|
|
12474
|
-
},
|
|
12475
|
-
{
|
|
12476
|
-
"name": "range-selection",
|
|
12477
|
-
"docs": "The calendar day button that is part of a range selection (includes start and end)."
|
|
12478
|
-
},
|
|
12479
|
-
{
|
|
12480
|
-
"name": "range-start",
|
|
12481
|
-
"docs": "The calendar day button that is the start of a range selection."
|
|
12482
|
-
},
|
|
12483
|
-
{
|
|
12484
|
-
"name": "range-track",
|
|
12485
|
-
"docs": "The track that connects the start and end days of a range selection."
|
|
12486
|
-
},
|
|
12487
12454
|
{
|
|
12488
12455
|
"name": "time-button",
|
|
12489
12456
|
"docs": "The button that opens the time picker when using a grid style\nlayout with `presentation=\"date-time\"` or `\"time-date\"`."
|
|
@@ -1122,4 +1122,4 @@ const formatValue = (value) => {
|
|
|
1122
1122
|
return Array.isArray(value) ? value.join(',') : value;
|
|
1123
1123
|
};
|
|
1124
1124
|
|
|
1125
|
-
export {
|
|
1125
|
+
export { getNextWeek as A, parseMinParts as B, parseMaxParts as C, parseDate as D, warnIfValueOutOfBounds as E, parseAmPm as F, clampDate as G, convertToArrayOfNumbers as H, convertDataToISO as I, getClosestValidDate as J, isMonthFirstLocale as K, isLocaleDayPeriodRTL as L, calculateHourFromAMPM as M, getMonthAndYear as N, getLocalizedTime as O, getLocalizedDateTime as P, formatValue as Q, getPreviousMonth as a, getTodayLabel as b, getYear as c, getHourCycle as d, getInternalHourValue as e, getFormattedHour as f, getNextMonth as g, addTimePadding as h, getLocalizedDayPeriod as i, isBefore as j, isSameDay as k, isAfter as l, is24Hour as m, getNumDaysInMonth as n, getDay as o, generateDayAriaLabel as p, getPartsFromCalendarDay as q, removeDateTzOffset as r, getNextYear as s, getPreviousYear as t, getEndOfWeek as u, validateParts as v, getStartOfWeek as w, getPreviousDay as x, getNextDay as y, getPreviousWeek as z };
|
|
@@ -92,7 +92,11 @@ Buttons.style = {
|
|
|
92
92
|
md: buttonsMdCss()
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
const
|
|
95
|
+
const contentIonicCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-header-hide-height, 0px));-webkit-transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));-webkit-transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-footer-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-tab-bar-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}@media (prefers-reduced-motion: reduce){:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{-webkit-transition:none;transition:none}}:host{--background:var(--ion-background-color, var(--token-bg-body, var(--token-primitives-base-white, #ffffff)));--color:currentColor}`;
|
|
96
|
+
|
|
97
|
+
const contentIosCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-header-hide-height, 0px));-webkit-transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));-webkit-transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-footer-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-tab-bar-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}@media (prefers-reduced-motion: reduce){:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{-webkit-transition:none;transition:none}}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000)}`;
|
|
98
|
+
|
|
99
|
+
const contentMdCss = () => `:host{--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}#background-content{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{right:0px;left:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom) + var(--internal-content-safe-area-padding-bottom, 0px));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1);transition:transform 300ms cubic-bezier(0, 0, 0.2, 1), height 300ms cubic-bezier(0, 0, 0.2, 1), -webkit-transform 300ms cubic-bezier(0, 0, 0.2, 1)}:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-header-hide-height, 0px));-webkit-transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));transform:translateY(calc(-1 * var(--internal-header-hide-height, 0px)));-webkit-transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1);transition:transform 200ms cubic-bezier(0.4, 0, 1, 1), height 200ms cubic-bezier(0.4, 0, 1, 1), -webkit-transform 200ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-footer-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll{-webkit-transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1);transition:height 200ms cubic-bezier(0.16, 1, 0.3, 1)}:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{height:calc(100% + var(--internal-tab-bar-hide-height, 0px));-webkit-transition:height 350ms cubic-bezier(0.4, 0, 1, 1);transition:height 350ms cubic-bezier(0.4, 0, 1, 1)}@media (prefers-reduced-motion: reduce){:host(.content-header-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-header-hide-scroll-partner:not(.content-fullscreen).content-header-hide-scroll-hidden) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-footer-hide-scroll-partner:not(.content-fullscreen).content-footer-hide-scroll-hidden) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen)) .inner-scroll,:host(.content-tab-bar-hide-scroll-partner:not(.content-fullscreen).content-tab-bar-hide-scroll-hidden) .inner-scroll{-webkit-transition:none;transition:none}}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000)}`;
|
|
96
100
|
|
|
97
101
|
const Content = class {
|
|
98
102
|
constructor(hostRef) {
|
|
@@ -550,7 +554,7 @@ const Content = class {
|
|
|
550
554
|
const forceOverscroll = this.shouldForceOverscroll(mode);
|
|
551
555
|
const transitionShadow = theme === 'ios';
|
|
552
556
|
this.resize();
|
|
553
|
-
return (h(Host, { key: '
|
|
557
|
+
return (h(Host, { key: '6cdef99e2396f9b451240ee739800b6d4a0df9fa', role: isMainContent ? 'main' : undefined, class: createColorClasses(this.color, {
|
|
554
558
|
[theme]: true,
|
|
555
559
|
'content-fullscreen': this.fullscreen,
|
|
556
560
|
'content-sizing': this.sizeToContent,
|
|
@@ -559,12 +563,12 @@ const Content = class {
|
|
|
559
563
|
}), style: {
|
|
560
564
|
'--offset-top': `${this.cTop}px`,
|
|
561
565
|
'--offset-bottom': `${this.cBottom}px`,
|
|
562
|
-
}, ...inheritedAttributes }, h("div", { key: '
|
|
566
|
+
}, ...inheritedAttributes }, h("div", { key: 'bbd9b4bf3fc97404cd42bb7824fc20e031f77922', ref: (el) => (this.backgroundContentEl = el), id: "background-content", part: "background" }), fixedSlotPlacement === 'before' ? h("slot", { name: "fixed" }) : null, h("div", { key: '4d4747e2495645da20a0718275a77f44fdbdd82d', class: {
|
|
563
567
|
'inner-scroll': true,
|
|
564
568
|
'scroll-x': scrollX,
|
|
565
569
|
'scroll-y': scrollY,
|
|
566
570
|
overscroll: (scrollX || scrollY) && forceOverscroll,
|
|
567
|
-
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: '
|
|
571
|
+
}, ref: (scrollEl) => (this.scrollEl = scrollEl), onScroll: this.scrollEvents ? (ev) => this.onScroll(ev) : undefined, part: "scroll" }, h("slot", { key: 'fbafdcfd579732945a3f375fb6cc9777651f41f5' })), transitionShadow ? (h("div", { class: "transition-effect" }, h("div", { class: "transition-cover" }), h("div", { class: "transition-shadow" }))) : null, fixedSlotPlacement === 'after' ? h("slot", { name: "fixed" }) : null));
|
|
568
572
|
}
|
|
569
573
|
get el() { return getElement(this); }
|
|
570
574
|
static get watchers() { return {
|
|
@@ -628,7 +632,11 @@ const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
|
|
628
632
|
detail.velocityY = velocityY * 0.7 + detail.velocityY * 0.3;
|
|
629
633
|
}
|
|
630
634
|
};
|
|
631
|
-
Content.style =
|
|
635
|
+
Content.style = {
|
|
636
|
+
ionic: contentIonicCss(),
|
|
637
|
+
ios: contentIosCss(),
|
|
638
|
+
md: contentMdCss()
|
|
639
|
+
};
|
|
632
640
|
|
|
633
641
|
const handleFooterFade = (scrollEl, baseEl) => {
|
|
634
642
|
readTask(() => {
|
|
@@ -1613,6 +1621,7 @@ const Toolbar = class {
|
|
|
1613
1621
|
];
|
|
1614
1622
|
this.showClasses = ['show-start', 'show-end', 'show-primary', 'show-secondary'];
|
|
1615
1623
|
this.slotSizeVars = ['--start-end-size', '--primary-secondary-size'];
|
|
1624
|
+
this.hasLoaded = false;
|
|
1616
1625
|
}
|
|
1617
1626
|
componentWillLoad() {
|
|
1618
1627
|
const buttons = Array.from(this.el.querySelectorAll('ion-buttons'));
|
|
@@ -1631,9 +1640,23 @@ const Toolbar = class {
|
|
|
1631
1640
|
}
|
|
1632
1641
|
this.updateSlotClasses();
|
|
1633
1642
|
}
|
|
1643
|
+
connectedCallback() {
|
|
1644
|
+
/**
|
|
1645
|
+
* The resize observer is stopped when the toolbar is removed from the DOM.
|
|
1646
|
+
* If the toolbar is added back (for example, when it is moved), start it again.
|
|
1647
|
+
* On the first connection the toolbar has not rendered yet, so this is left
|
|
1648
|
+
* to componentDidLoad.
|
|
1649
|
+
*/
|
|
1650
|
+
if (this.hasLoaded) {
|
|
1651
|
+
this.updateSlotClasses();
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1634
1654
|
componentDidLoad() {
|
|
1655
|
+
this.hasLoaded = true;
|
|
1635
1656
|
this.updateSlotClasses();
|
|
1636
|
-
|
|
1657
|
+
}
|
|
1658
|
+
disconnectedCallback() {
|
|
1659
|
+
this.stopObservingSlotSizes();
|
|
1637
1660
|
}
|
|
1638
1661
|
titlePlacementChanged() {
|
|
1639
1662
|
this.updateSlotClasses();
|
|
@@ -1653,26 +1676,67 @@ const Toolbar = class {
|
|
|
1653
1676
|
* Updates the CSS custom properties for slot widths
|
|
1654
1677
|
* This ensures that slots shown by their met conditions
|
|
1655
1678
|
* have a minimum width matching their required slot
|
|
1679
|
+
*
|
|
1680
|
+
* The slotted content is watched with a ResizeObserver instead of being
|
|
1681
|
+
* measured after a timeout:
|
|
1682
|
+
* - The observer callback runs after layout and before paint, so the slot
|
|
1683
|
+
* widths are set in the same frame the content is first laid out. The
|
|
1684
|
+
* title is already centered when it is first painted and does not move.
|
|
1685
|
+
* - The callback runs again whenever the slotted content changes size,
|
|
1686
|
+
* for example when a button is added or removed, or when a hidden
|
|
1687
|
+
* toolbar becomes visible.
|
|
1656
1688
|
*/
|
|
1657
|
-
updateSlotWidths(
|
|
1658
|
-
//
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1689
|
+
updateSlotWidths() {
|
|
1690
|
+
// Stop watching the previous content before watching the current one.
|
|
1691
|
+
this.stopObservingSlotSizes();
|
|
1692
|
+
// Browsers without ResizeObserver can only measure once.
|
|
1693
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
1694
|
+
this.measureAndUpdateSlots();
|
|
1695
|
+
return;
|
|
1696
|
+
}
|
|
1697
|
+
const elementsToObserve = [];
|
|
1698
|
+
const slots = ['start', 'end', 'primary', 'secondary'];
|
|
1699
|
+
slots.forEach((slot) => {
|
|
1700
|
+
if (this.el.classList.contains(`has-${slot}-content`)) {
|
|
1701
|
+
elementsToObserve.push(...this.getSlottedElements(slot));
|
|
1668
1702
|
}
|
|
1669
1703
|
});
|
|
1704
|
+
if (elementsToObserve.length === 0) {
|
|
1705
|
+
return;
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* The observer also calls the callback once right after observing
|
|
1709
|
+
* an element, which takes care of the first measurement.
|
|
1710
|
+
*/
|
|
1711
|
+
const observer = new ResizeObserver(() => this.measureAndUpdateSlots());
|
|
1712
|
+
elementsToObserve.forEach((element) => observer.observe(element));
|
|
1713
|
+
this.slotResizeObserver = observer;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Stops watching the slotted content for size changes.
|
|
1717
|
+
*/
|
|
1718
|
+
stopObservingSlotSizes() {
|
|
1719
|
+
if (this.slotResizeObserver) {
|
|
1720
|
+
this.slotResizeObserver.disconnect();
|
|
1721
|
+
this.slotResizeObserver = undefined;
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* Returns the elements assigned to the given slot of the toolbar.
|
|
1726
|
+
*/
|
|
1727
|
+
getSlottedElements(slotName) {
|
|
1728
|
+
const slotElement = this.el.shadowRoot?.querySelector(`slot[name="${slotName}"]`);
|
|
1729
|
+
if (!slotElement) {
|
|
1730
|
+
return [];
|
|
1731
|
+
}
|
|
1732
|
+
return slotElement.assignedElements({ flatten: true });
|
|
1670
1733
|
}
|
|
1671
1734
|
/**
|
|
1672
1735
|
* Measure the widths of the slots and update the CSS custom properties
|
|
1673
1736
|
* for the minimum width of each pair of slots based on the largest width in each pair.
|
|
1674
1737
|
* Returns whether we successfully measured all of the slots we expect to have content.
|
|
1675
|
-
* If not, the content probably hasn't rendered yet and
|
|
1738
|
+
* If not, the content probably hasn't rendered yet, and the ResizeObserver
|
|
1739
|
+
* measures again once it does.
|
|
1676
1740
|
*/
|
|
1677
1741
|
measureAndUpdateSlots() {
|
|
1678
1742
|
// Define the relationship between slots based on the conditions array
|
|
@@ -1681,6 +1745,13 @@ const Toolbar = class {
|
|
|
1681
1745
|
{ name: 'start-end', slots: ['start', 'end'] },
|
|
1682
1746
|
{ name: 'primary-secondary', slots: ['primary', 'secondary'] },
|
|
1683
1747
|
];
|
|
1748
|
+
/**
|
|
1749
|
+
* Once a size property is set, the slots cannot be narrower than it.
|
|
1750
|
+
* Remove the properties first so each slot is measured at the width of
|
|
1751
|
+
* its content, which lets the slots shrink when their content does.
|
|
1752
|
+
* This runs before paint, so the slots are never painted without a size.
|
|
1753
|
+
*/
|
|
1754
|
+
this.slotSizeVars.forEach((cssVar) => this.el.style.removeProperty(cssVar));
|
|
1684
1755
|
// First, measure all slot widths
|
|
1685
1756
|
const slotWidths = new Map();
|
|
1686
1757
|
let allMeasurementsSuccessful = true;
|
|
@@ -1739,6 +1810,8 @@ const Toolbar = class {
|
|
|
1739
1810
|
* Removes all slot visibility classes and slot width CSS variables.
|
|
1740
1811
|
*/
|
|
1741
1812
|
removeSlotClasses() {
|
|
1813
|
+
// The slot widths are no longer used, so there is nothing to watch.
|
|
1814
|
+
this.stopObservingSlotSizes();
|
|
1742
1815
|
this.el.classList.remove(...this.slotClasses, ...this.showClasses);
|
|
1743
1816
|
this.slotSizeVars.forEach((cssVar) => this.el.style.removeProperty(cssVar));
|
|
1744
1817
|
}
|
|
@@ -1823,14 +1896,14 @@ const Toolbar = class {
|
|
|
1823
1896
|
Object.assign(childStyles, style);
|
|
1824
1897
|
});
|
|
1825
1898
|
const titlePlacement = this.getTitlePlacement();
|
|
1826
|
-
return (h(Host, { key: '
|
|
1899
|
+
return (h(Host, { key: '2ee4ee2329ba499bd3fe24eb58f8954c86d39b01', class: {
|
|
1827
1900
|
...createColorClasses(this.color, {
|
|
1828
1901
|
[theme]: true,
|
|
1829
1902
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
1830
1903
|
[`toolbar-title-placement-${titlePlacement}`]: true,
|
|
1831
1904
|
}),
|
|
1832
1905
|
...childStyles,
|
|
1833
|
-
} }, h("div", { key: '
|
|
1906
|
+
} }, h("div", { key: '68da02a622db1ed136a31700421c5da005ae3884', class: "toolbar-background", part: "background" }), h("div", { key: 'cefcad22e28e1468de024a0cbe477464a872dc66', class: "toolbar-container", part: "container" }, h("slot", { key: '9ebfc464b5c32c6d2b5c81a0a0c415effa15ce3c', name: "start", onSlotchange: () => this.updateSlotClasses() }), h("slot", { key: '55a07aa0000e1b02814f7a01ad1610d1d723f442', name: "secondary", onSlotchange: () => this.updateSlotClasses() }), h("div", { key: '51d1e06e0463788b5f794831faadd305aa8bca75', class: "toolbar-content", part: "content" }, h("slot", { key: '6982cc6886f76cf43d78e3f0e9243dc05f67d34c' })), h("slot", { key: 'b00b9b9b28c1637a04781ef88b5d9474fb5c0647', name: "primary", onSlotchange: () => this.updateSlotClasses() }), h("slot", { key: '4fce3b9b17f7775d0ba14cd5185e500753b4976e', name: "end", onSlotchange: () => this.updateSlotClasses() }))));
|
|
1834
1907
|
}
|
|
1835
1908
|
get el() { return getElement(this); }
|
|
1836
1909
|
static get watchers() { return {
|