@ionic/core 8.8.4-dev.11776184632.103b8351 → 8.8.4-dev.11776246162.138c2737
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/index.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-picker-legacy.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-option.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-skeleton-text.js +1 -1
- package/components/ion-spinner.js +1 -1
- package/components/ion-split-pane.js +1 -1
- package/components/ion-tab-bar.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-title.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/ion-toolbar.js +1 -1
- package/components/p-B36-MWK0.js +4 -0
- package/components/p-BDPU2685.js +4 -0
- package/components/p-BrNzoF1U.js +4 -0
- package/components/{p-B0orUoaV.js → p-C-_EGKki.js} +1 -1
- package/components/{p-qhBzWoOF.js → p-C2cZvGcF.js} +1 -1
- package/components/p-CEUppJkx.js +4 -0
- package/components/p-CSexRbnt.js +4 -0
- package/components/{p-ZRp3l6Dk.js → p-CoarhFWH.js} +1 -1
- package/components/p-DNdBtsfu.js +4 -0
- package/components/p-Njik5v4C.js +4 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +34 -18
- package/dist/cjs/ion-alert.cjs.entry.js +35 -32
- package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +28 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +29 -4
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +176 -79
- package/dist/cjs/ion-popover.cjs.entry.js +90 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +27 -46
- package/dist/cjs/ion-select_3.cjs.entry.js +48 -177
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
- package/dist/cjs/ion-toast.cjs.entry.js +32 -4
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{overlays-Dhoy6v_5.js → overlays-BbhewSIQ.js} +4 -4
- package/dist/collection/components/action-sheet/action-sheet.ios.css +0 -84
- package/dist/collection/components/action-sheet/action-sheet.js +8 -15
- package/dist/collection/components/action-sheet/action-sheet.md.css +0 -84
- package/dist/collection/components/action-sheet/animations/ionic.enter.js +27 -0
- package/dist/collection/components/action-sheet/animations/ionic.leave.js +21 -0
- package/dist/collection/components/alert/alert.ios.css +0 -83
- package/dist/collection/components/alert/alert.js +8 -29
- package/dist/collection/components/alert/alert.md.css +0 -83
- package/dist/collection/components/alert/animations/ionic.enter.js +28 -0
- package/dist/collection/components/alert/animations/ionic.leave.js +19 -0
- package/dist/collection/components/loading/animations/ionic.enter.js +28 -0
- package/dist/collection/components/loading/animations/ionic.leave.js +22 -0
- package/dist/collection/components/loading/loading.js +4 -3
- package/dist/collection/components/modal/animations/ionic.enter.js +40 -0
- package/dist/collection/components/modal/animations/ionic.leave.js +28 -0
- package/dist/collection/components/modal/gestures/sheet.js +71 -9
- package/dist/collection/components/modal/modal.ionic.css +1 -1
- package/dist/collection/components/modal/modal.js +6 -5
- package/dist/collection/components/picker-legacy/animations/ionic.enter.js +27 -0
- package/dist/collection/components/picker-legacy/animations/ionic.leave.js +23 -0
- package/dist/collection/components/picker-legacy/picker.js +4 -3
- package/dist/collection/components/popover/animations/ionic.enter.js +91 -0
- package/dist/collection/components/popover/animations/ionic.leave.js +29 -0
- package/dist/collection/components/popover/popover.js +4 -3
- package/dist/collection/components/select/select.ionic.css +0 -31
- package/dist/collection/components/select/select.ios.css +0 -31
- package/dist/collection/components/select/select.js +14 -125
- package/dist/collection/components/select/select.md.css +0 -31
- package/dist/collection/components/select-modal/select-modal.ionic.css +0 -24
- package/dist/collection/components/select-modal/select-modal.ios.css +0 -77
- package/dist/collection/components/select-modal/select-modal.js +23 -42
- package/dist/collection/components/select-modal/select-modal.md.css +1 -80
- package/dist/collection/components/select-option/select-option.js +2 -21
- package/dist/collection/components/select-popover/select-popover.ios.css +0 -77
- package/dist/collection/components/select-popover/select-popover.js +26 -45
- package/dist/collection/components/select-popover/select-popover.md.css +0 -77
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/animations/ionic.enter.js +33 -0
- package/dist/collection/components/toast/animations/ionic.leave.js +16 -0
- package/dist/collection/components/toast/toast.js +4 -3
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/collection/utils/overlays.js +5 -5
- package/dist/docs.json +5 -139
- package/dist/esm/index.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +34 -18
- package/dist/esm/ion-alert.entry.js +35 -32
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +28 -4
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +29 -4
- package/dist/esm/ion-menu_3.entry.js +1 -1
- package/dist/esm/ion-modal.entry.js +177 -80
- package/dist/esm/ion-popover.entry.js +90 -4
- package/dist/esm/ion-select-modal.entry.js +27 -46
- package/dist/esm/ion-select_3.entry.js +49 -178
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +3 -3
- package/dist/esm/ion-toast.entry.js +32 -4
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{overlays-CvFHfO3y.js → overlays-VA-4NWjf.js} +5 -5
- package/dist/html.html-data.json +0 -4
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-07b129d5.entry.js +4 -0
- package/dist/ionic/p-0cb50208.entry.js +4 -0
- package/dist/ionic/{p-db4f4eaf.entry.js → p-1efe83c8.entry.js} +1 -1
- package/dist/ionic/{p-d2fe6791.entry.js → p-2193e875.entry.js} +1 -1
- package/dist/ionic/{p-69033ad6.entry.js → p-2bf931ae.entry.js} +1 -1
- package/dist/ionic/{p-26595044.entry.js → p-3bf01c2c.entry.js} +1 -1
- package/dist/ionic/p-3d4c8528.entry.js +4 -0
- package/dist/ionic/{p-9e71982e.entry.js → p-49799a34.entry.js} +1 -1
- package/dist/ionic/p-64341e32.entry.js +4 -0
- package/dist/ionic/p-6992d9d6.entry.js +4 -0
- package/dist/ionic/{p-aa8c1e64.entry.js → p-6c8c37c2.entry.js} +1 -1
- package/dist/ionic/{p-a94016be.entry.js → p-91e242e4.entry.js} +1 -1
- package/dist/ionic/{p-96ec9a10.entry.js → p-9b9b1450.entry.js} +1 -1
- package/dist/ionic/p-9dd4276b.entry.js +4 -0
- package/dist/ionic/p-BExfzy0B.js +4 -0
- package/dist/ionic/p-a3d794ba.entry.js +4 -0
- package/dist/ionic/p-ba9f8cbb.entry.js +4 -0
- package/dist/ionic/{p-2095969c.entry.js → p-bae3ebe5.entry.js} +1 -1
- package/dist/ionic/{p-a1c8ba8c.entry.js → p-bc5713f7.entry.js} +1 -1
- package/dist/ionic/{p-71f28573.entry.js → p-cdfbe4cc.entry.js} +1 -1
- package/dist/ionic/p-fa701753.entry.js +4 -0
- package/dist/types/components/action-sheet/action-sheet-interface.d.ts +1 -4
- package/dist/types/components/action-sheet/animations/ionic.enter.d.ts +5 -0
- package/dist/types/components/action-sheet/animations/ionic.leave.d.ts +5 -0
- package/dist/types/components/alert/alert-interface.d.ts +1 -4
- package/dist/types/components/alert/animations/ionic.enter.d.ts +5 -0
- package/dist/types/components/alert/animations/ionic.leave.d.ts +5 -0
- package/dist/types/components/loading/animations/ionic.enter.d.ts +5 -0
- package/dist/types/components/loading/animations/ionic.leave.d.ts +5 -0
- package/dist/types/components/modal/animations/ionic.enter.d.ts +6 -0
- package/dist/types/components/modal/animations/ionic.leave.d.ts +6 -0
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/picker-legacy/animations/ionic.enter.d.ts +5 -0
- package/dist/types/components/picker-legacy/animations/ionic.leave.d.ts +5 -0
- package/dist/types/components/popover/animations/ionic.enter.d.ts +5 -0
- package/dist/types/components/popover/animations/ionic.leave.d.ts +5 -0
- package/dist/types/components/select/select.d.ts +0 -7
- package/dist/types/components/select-modal/select-modal-interface.d.ts +1 -4
- package/dist/types/components/select-option/select-option.d.ts +0 -4
- package/dist/types/components/select-popover/select-popover-interface.d.ts +1 -4
- package/dist/types/components/toast/animations/ionic.enter.d.ts +6 -0
- package/dist/types/components/toast/animations/ionic.leave.d.ts +5 -0
- package/dist/types/components.d.ts +0 -9
- package/dist/types/utils/overlays.d.ts +1 -1
- package/hydrate/index.js +518 -442
- package/hydrate/index.mjs +518 -442
- package/package.json +1 -1
- package/components/p-B6czg-mf.js +0 -4
- package/components/p-BDwab5EM.js +0 -4
- package/components/p-BjV_nNDy.js +0 -4
- package/components/p-C8Dne7pI.js +0 -4
- package/components/p-C9d4LXRu.js +0 -4
- package/components/p-CvoKp7OI.js +0 -4
- package/components/p-GytrfCp8.js +0 -4
- package/components/p-ZeIAjDcZ.js +0 -4
- package/dist/cjs/select-option-render-qQf4xz8P.js +0 -67
- package/dist/collection/components/action-sheet/action-sheet.ionic.css +0 -834
- package/dist/collection/components/alert/alert.ionic.css +0 -1165
- package/dist/collection/components/select-popover/select-popover.ionic.css +0 -489
- package/dist/collection/utils/select-option-render.js +0 -62
- package/dist/esm/select-option-render-BQUT9Aqa.js +0 -65
- package/dist/ionic/p-37f895a8.entry.js +0 -4
- package/dist/ionic/p-3884bfa4.entry.js +0 -4
- package/dist/ionic/p-38897781.entry.js +0 -4
- package/dist/ionic/p-63e09af5.entry.js +0 -4
- package/dist/ionic/p-6bffc700.entry.js +0 -4
- package/dist/ionic/p-6e0ce081.entry.js +0 -4
- package/dist/ionic/p-BYtS2rae.js +0 -4
- package/dist/ionic/p-Dr3N4o63.js +0 -4
- package/dist/ionic/p-a64ae62e.entry.js +0 -4
- package/dist/ionic/p-d45b911b.entry.js +0 -4
- package/dist/ionic/p-ef0c281a.entry.js +0 -4
- package/dist/types/utils/select-option-render.d.ts +0 -26
|
@@ -1,489 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A heuristic that applies CSS to tablet
|
|
3
|
-
* viewports.
|
|
4
|
-
*
|
|
5
|
-
* Usage:
|
|
6
|
-
* @include tablet-viewport() {
|
|
7
|
-
* :host {
|
|
8
|
-
* background-color: green;
|
|
9
|
-
* }
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* A heuristic that applies CSS to mobile
|
|
14
|
-
* viewports (i.e. phones, not tablets).
|
|
15
|
-
*
|
|
16
|
-
* Usage:
|
|
17
|
-
* @include mobile-viewport() {
|
|
18
|
-
* :host {
|
|
19
|
-
* background-color: blue;
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
*/
|
|
23
|
-
/**
|
|
24
|
-
* Convert a pixels given value into rem
|
|
25
|
-
*
|
|
26
|
-
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
27
|
-
* @param context (optional) - Baseline value
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* Convert a font size to a dynamic font size.
|
|
31
|
-
* Fonts that participate in Dynamic Type should use
|
|
32
|
-
* dynamic font sizes.
|
|
33
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
34
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
35
|
-
* convert to a unit other than $baselineUnit.
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* Convert a font size to a dynamic font size but impose
|
|
39
|
-
* a maximum font size.
|
|
40
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
41
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
42
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
43
|
-
* convert to a unit other than $baselineUnit.
|
|
44
|
-
*/
|
|
45
|
-
/**
|
|
46
|
-
* Convert a font size to a dynamic font size but impose
|
|
47
|
-
* a minimum font size.
|
|
48
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
49
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
50
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
51
|
-
* convert to a unit other than $baselineUnit.
|
|
52
|
-
*/
|
|
53
|
-
/**
|
|
54
|
-
* Convert a font size to a dynamic font size but impose
|
|
55
|
-
* maximum and minimum font sizes.
|
|
56
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
57
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
58
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
59
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
60
|
-
* convert to a unit other than $baselineUnit.
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* Convert a pixels given value into rem
|
|
64
|
-
*
|
|
65
|
-
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
66
|
-
* @param context (optional) - Baseline value
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* Convert a font size to a dynamic font size.
|
|
70
|
-
* Fonts that participate in Dynamic Type should use
|
|
71
|
-
* dynamic font sizes.
|
|
72
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
73
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
74
|
-
* convert to a unit other than $baselineUnit.
|
|
75
|
-
*/
|
|
76
|
-
/**
|
|
77
|
-
* Convert a font size to a dynamic font size but impose
|
|
78
|
-
* a maximum font size.
|
|
79
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
80
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
81
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
82
|
-
* convert to a unit other than $baselineUnit.
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* Convert a font size to a dynamic font size but impose
|
|
86
|
-
* a minimum font size.
|
|
87
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
88
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
89
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
90
|
-
* convert to a unit other than $baselineUnit.
|
|
91
|
-
*/
|
|
92
|
-
/**
|
|
93
|
-
* Convert a font size to a dynamic font size but impose
|
|
94
|
-
* maximum and minimum font sizes.
|
|
95
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
96
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
97
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
98
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
99
|
-
* convert to a unit other than $baselineUnit.
|
|
100
|
-
*/
|
|
101
|
-
/**
|
|
102
|
-
* A heuristic that applies CSS to tablet
|
|
103
|
-
* viewports.
|
|
104
|
-
*
|
|
105
|
-
* Usage:
|
|
106
|
-
* @include tablet-viewport() {
|
|
107
|
-
* :host {
|
|
108
|
-
* background-color: green;
|
|
109
|
-
* }
|
|
110
|
-
* }
|
|
111
|
-
*/
|
|
112
|
-
/**
|
|
113
|
-
* A heuristic that applies CSS to mobile
|
|
114
|
-
* viewports (i.e. phones, not tablets).
|
|
115
|
-
*
|
|
116
|
-
* Usage:
|
|
117
|
-
* @include mobile-viewport() {
|
|
118
|
-
* :host {
|
|
119
|
-
* background-color: blue;
|
|
120
|
-
* }
|
|
121
|
-
* }
|
|
122
|
-
*/
|
|
123
|
-
:host ion-list {
|
|
124
|
-
margin-left: 0;
|
|
125
|
-
margin-right: 0;
|
|
126
|
-
margin-top: 0;
|
|
127
|
-
margin-bottom: 0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
ion-list-header,
|
|
131
|
-
ion-label {
|
|
132
|
-
margin-left: 0;
|
|
133
|
-
margin-right: 0;
|
|
134
|
-
margin-top: 0;
|
|
135
|
-
margin-bottom: 0;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* The main content inside of a popover has overflow: hidden
|
|
140
|
-
* so that a descendant ion-content can be scrolled.
|
|
141
|
-
* However, select-popover does not use ion-content so we need
|
|
142
|
-
* to explicitly make this container scrollable.
|
|
143
|
-
*/
|
|
144
|
-
:host {
|
|
145
|
-
overflow-y: auto;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.select-option-label {
|
|
149
|
-
display: flex;
|
|
150
|
-
align-items: center;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.select-option-description {
|
|
154
|
-
display: block;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* A heuristic that applies CSS to tablet
|
|
159
|
-
* viewports.
|
|
160
|
-
*
|
|
161
|
-
* Usage:
|
|
162
|
-
* @include tablet-viewport() {
|
|
163
|
-
* :host {
|
|
164
|
-
* background-color: green;
|
|
165
|
-
* }
|
|
166
|
-
* }
|
|
167
|
-
*/
|
|
168
|
-
/**
|
|
169
|
-
* A heuristic that applies CSS to mobile
|
|
170
|
-
* viewports (i.e. phones, not tablets).
|
|
171
|
-
*
|
|
172
|
-
* Usage:
|
|
173
|
-
* @include mobile-viewport() {
|
|
174
|
-
* :host {
|
|
175
|
-
* background-color: blue;
|
|
176
|
-
* }
|
|
177
|
-
* }
|
|
178
|
-
*/
|
|
179
|
-
/**
|
|
180
|
-
* Convert a font size to a dynamic font size.
|
|
181
|
-
* Fonts that participate in Dynamic Type should use
|
|
182
|
-
* dynamic font sizes.
|
|
183
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
184
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
185
|
-
* convert to a unit other than $baselineUnit.
|
|
186
|
-
*/
|
|
187
|
-
/**
|
|
188
|
-
* Convert a font size to a dynamic font size but impose
|
|
189
|
-
* a maximum font size.
|
|
190
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
191
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
192
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
193
|
-
* convert to a unit other than $baselineUnit.
|
|
194
|
-
*/
|
|
195
|
-
/**
|
|
196
|
-
* Convert a font size to a dynamic font size but impose
|
|
197
|
-
* a minimum font size.
|
|
198
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
199
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
200
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
201
|
-
* convert to a unit other than $baselineUnit.
|
|
202
|
-
*/
|
|
203
|
-
/**
|
|
204
|
-
* Convert a font size to a dynamic font size but impose
|
|
205
|
-
* maximum and minimum font sizes.
|
|
206
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
207
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
208
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
209
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
210
|
-
* convert to a unit other than $baselineUnit.
|
|
211
|
-
*/
|
|
212
|
-
/**
|
|
213
|
-
* Convert a pixels given value into rem
|
|
214
|
-
*
|
|
215
|
-
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
216
|
-
* @param context (optional) - Baseline value
|
|
217
|
-
*/
|
|
218
|
-
/**
|
|
219
|
-
* Convert a font size to a dynamic font size.
|
|
220
|
-
* Fonts that participate in Dynamic Type should use
|
|
221
|
-
* dynamic font sizes.
|
|
222
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
223
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
224
|
-
* convert to a unit other than $baselineUnit.
|
|
225
|
-
*/
|
|
226
|
-
/**
|
|
227
|
-
* Convert a font size to a dynamic font size but impose
|
|
228
|
-
* a maximum font size.
|
|
229
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
230
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
231
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
232
|
-
* convert to a unit other than $baselineUnit.
|
|
233
|
-
*/
|
|
234
|
-
/**
|
|
235
|
-
* Convert a font size to a dynamic font size but impose
|
|
236
|
-
* a minimum font size.
|
|
237
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
238
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
239
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
240
|
-
* convert to a unit other than $baselineUnit.
|
|
241
|
-
*/
|
|
242
|
-
/**
|
|
243
|
-
* Convert a font size to a dynamic font size but impose
|
|
244
|
-
* maximum and minimum font sizes.
|
|
245
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
246
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
247
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
248
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
249
|
-
* convert to a unit other than $baselineUnit.
|
|
250
|
-
*/
|
|
251
|
-
/**
|
|
252
|
-
* A heuristic that applies CSS to tablet
|
|
253
|
-
* viewports.
|
|
254
|
-
*
|
|
255
|
-
* Usage:
|
|
256
|
-
* @include tablet-viewport() {
|
|
257
|
-
* :host {
|
|
258
|
-
* background-color: green;
|
|
259
|
-
* }
|
|
260
|
-
* }
|
|
261
|
-
*/
|
|
262
|
-
/**
|
|
263
|
-
* A heuristic that applies CSS to mobile
|
|
264
|
-
* viewports (i.e. phones, not tablets).
|
|
265
|
-
*
|
|
266
|
-
* Usage:
|
|
267
|
-
* @include mobile-viewport() {
|
|
268
|
-
* :host {
|
|
269
|
-
* background-color: blue;
|
|
270
|
-
* }
|
|
271
|
-
* }
|
|
272
|
-
*/
|
|
273
|
-
:host ion-list {
|
|
274
|
-
margin-left: 0;
|
|
275
|
-
margin-right: 0;
|
|
276
|
-
margin-top: 0;
|
|
277
|
-
margin-bottom: 0;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
ion-list-header,
|
|
281
|
-
ion-label {
|
|
282
|
-
margin-left: 0;
|
|
283
|
-
margin-right: 0;
|
|
284
|
-
margin-top: 0;
|
|
285
|
-
margin-bottom: 0;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* The main content inside of a popover has overflow: hidden
|
|
290
|
-
* so that a descendant ion-content can be scrolled.
|
|
291
|
-
* However, select-popover does not use ion-content so we need
|
|
292
|
-
* to explicitly make this container scrollable.
|
|
293
|
-
*/
|
|
294
|
-
:host {
|
|
295
|
-
overflow-y: auto;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.select-option-label {
|
|
299
|
-
display: flex;
|
|
300
|
-
align-items: center;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.select-option-description {
|
|
304
|
-
display: block;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.select-option-label {
|
|
308
|
-
gap: 12px;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.select-option-description {
|
|
312
|
-
padding-left: 0;
|
|
313
|
-
padding-right: 0;
|
|
314
|
-
padding-top: 5px;
|
|
315
|
-
padding-bottom: 0;
|
|
316
|
-
color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
|
|
317
|
-
font-size: 0.75rem;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/**
|
|
321
|
-
* Convert a pixels given value into rem
|
|
322
|
-
*
|
|
323
|
-
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
324
|
-
* @param context (optional) - Baseline value
|
|
325
|
-
*/
|
|
326
|
-
/**
|
|
327
|
-
* Convert a font size to a dynamic font size.
|
|
328
|
-
* Fonts that participate in Dynamic Type should use
|
|
329
|
-
* dynamic font sizes.
|
|
330
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
331
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
332
|
-
* convert to a unit other than $baselineUnit.
|
|
333
|
-
*/
|
|
334
|
-
/**
|
|
335
|
-
* Convert a font size to a dynamic font size but impose
|
|
336
|
-
* a maximum font size.
|
|
337
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
338
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
339
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
340
|
-
* convert to a unit other than $baselineUnit.
|
|
341
|
-
*/
|
|
342
|
-
/**
|
|
343
|
-
* Convert a font size to a dynamic font size but impose
|
|
344
|
-
* a minimum font size.
|
|
345
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
346
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
347
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
348
|
-
* convert to a unit other than $baselineUnit.
|
|
349
|
-
*/
|
|
350
|
-
/**
|
|
351
|
-
* Convert a font size to a dynamic font size but impose
|
|
352
|
-
* maximum and minimum font sizes.
|
|
353
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
354
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
355
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
356
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
357
|
-
* convert to a unit other than $baselineUnit.
|
|
358
|
-
*/
|
|
359
|
-
/**
|
|
360
|
-
* A heuristic that applies CSS to tablet
|
|
361
|
-
* viewports.
|
|
362
|
-
*
|
|
363
|
-
* Usage:
|
|
364
|
-
* @include tablet-viewport() {
|
|
365
|
-
* :host {
|
|
366
|
-
* background-color: green;
|
|
367
|
-
* }
|
|
368
|
-
* }
|
|
369
|
-
*/
|
|
370
|
-
/**
|
|
371
|
-
* A heuristic that applies CSS to mobile
|
|
372
|
-
* viewports (i.e. phones, not tablets).
|
|
373
|
-
*
|
|
374
|
-
* Usage:
|
|
375
|
-
* @include mobile-viewport() {
|
|
376
|
-
* :host {
|
|
377
|
-
* background-color: blue;
|
|
378
|
-
* }
|
|
379
|
-
* }
|
|
380
|
-
*/
|
|
381
|
-
/**
|
|
382
|
-
* Convert a pixels given value into rem
|
|
383
|
-
*
|
|
384
|
-
* @param pixels - Value in pixels to be converted (i.e. px)
|
|
385
|
-
* @param context (optional) - Baseline value
|
|
386
|
-
*/
|
|
387
|
-
/**
|
|
388
|
-
* Convert a font size to a dynamic font size.
|
|
389
|
-
* Fonts that participate in Dynamic Type should use
|
|
390
|
-
* dynamic font sizes.
|
|
391
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
392
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
393
|
-
* convert to a unit other than $baselineUnit.
|
|
394
|
-
*/
|
|
395
|
-
/**
|
|
396
|
-
* Convert a font size to a dynamic font size but impose
|
|
397
|
-
* a maximum font size.
|
|
398
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
399
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
400
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
401
|
-
* convert to a unit other than $baselineUnit.
|
|
402
|
-
*/
|
|
403
|
-
/**
|
|
404
|
-
* Convert a font size to a dynamic font size but impose
|
|
405
|
-
* a minimum font size.
|
|
406
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
407
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
408
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
409
|
-
* convert to a unit other than $baselineUnit.
|
|
410
|
-
*/
|
|
411
|
-
/**
|
|
412
|
-
* Convert a font size to a dynamic font size but impose
|
|
413
|
-
* maximum and minimum font sizes.
|
|
414
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
415
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
416
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
417
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
418
|
-
* convert to a unit other than $baselineUnit.
|
|
419
|
-
*/
|
|
420
|
-
/**
|
|
421
|
-
* A heuristic that applies CSS to tablet
|
|
422
|
-
* viewports.
|
|
423
|
-
*
|
|
424
|
-
* Usage:
|
|
425
|
-
* @include tablet-viewport() {
|
|
426
|
-
* :host {
|
|
427
|
-
* background-color: green;
|
|
428
|
-
* }
|
|
429
|
-
* }
|
|
430
|
-
*/
|
|
431
|
-
/**
|
|
432
|
-
* A heuristic that applies CSS to mobile
|
|
433
|
-
* viewports (i.e. phones, not tablets).
|
|
434
|
-
*
|
|
435
|
-
* Usage:
|
|
436
|
-
* @include mobile-viewport() {
|
|
437
|
-
* :host {
|
|
438
|
-
* background-color: blue;
|
|
439
|
-
* }
|
|
440
|
-
* }
|
|
441
|
-
*/
|
|
442
|
-
ion-list ion-radio::part(container) {
|
|
443
|
-
display: none;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
ion-list ion-radio::part(label) {
|
|
447
|
-
margin-left: 0;
|
|
448
|
-
margin-right: 0;
|
|
449
|
-
margin-top: 0;
|
|
450
|
-
margin-bottom: 0;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
ion-item {
|
|
454
|
-
--inner-border-width: 0;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.item-radio-checked {
|
|
458
|
-
--background: rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08);
|
|
459
|
-
--background-focused: var(--ion-color-primary, #0054e9);
|
|
460
|
-
--background-focused-opacity: 0.2;
|
|
461
|
-
--background-hover: var(--ion-color-primary, #0054e9);
|
|
462
|
-
--background-hover-opacity: 0.12;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.item-checkbox-checked {
|
|
466
|
-
--background-activated: var(--ion-item-color, var(--ion-text-color, #000));
|
|
467
|
-
--background-focused: var(--ion-item-color, var(--ion-text-color, #000));
|
|
468
|
-
--background-hover: var(--ion-item-color, var(--ion-text-color, #000));
|
|
469
|
-
--color: var(--ion-color-primary, #0054e9);
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.select-option-label {
|
|
473
|
-
gap: var(--token-space-300, var(--token-scale-300, 12px));
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.select-option-description {
|
|
477
|
-
font-size: var(--token-font-size-350, 0.875rem);
|
|
478
|
-
font-weight: var(--token-font-weight-regular, 400);
|
|
479
|
-
letter-spacing: var(--token-font-letter-spacing-0, 0%);
|
|
480
|
-
line-height: var(--token-font-line-height-600, var(--token-scale-600, 24px));
|
|
481
|
-
text-decoration: none;
|
|
482
|
-
text-transform: none;
|
|
483
|
-
padding-left: 0;
|
|
484
|
-
padding-right: 0;
|
|
485
|
-
padding-top: 0;
|
|
486
|
-
padding-bottom: 0;
|
|
487
|
-
color: var(--token-text-subtle, var(--token-primitives-neutral-1000, #3b3b3b));
|
|
488
|
-
font-size: var(--token-font-size-350, 0.875rem);
|
|
489
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { h } from "@stencil/core";
|
|
5
|
-
/**
|
|
6
|
-
* Cache that maps rendered span elements to the source HTMLElement
|
|
7
|
-
* they were cloned from. This prevents flickering when a user
|
|
8
|
-
* selects an option that has rich content, as the content will only be
|
|
9
|
-
* re-rendered if the source HTMLElement changes.
|
|
10
|
-
*/
|
|
11
|
-
const contentCache = new WeakMap();
|
|
12
|
-
/**
|
|
13
|
-
* Renders cloned DOM content into a span element via a ref callback.
|
|
14
|
-
* The content is only cloned when the source element changes,
|
|
15
|
-
* preventing flicker caused by destroying and recreating web
|
|
16
|
-
* components (e.g., ion-avatar) on every re-render cycle.
|
|
17
|
-
*
|
|
18
|
-
* Uses span elements because this content may render within buttons,
|
|
19
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
20
|
-
* content to prevent accessibility issues.
|
|
21
|
-
*
|
|
22
|
-
* @param id - Unique identifier for generating stable virtual DOM keys.
|
|
23
|
-
* @param content - The HTMLElement container whose child nodes will be cloned.
|
|
24
|
-
* @param className - CSS class applied to the wrapper span.
|
|
25
|
-
*/
|
|
26
|
-
const renderClonedContent = (id, content, className) => {
|
|
27
|
-
return (h("span", { class: className, key: `${className}-${id}`, ref: (el) => {
|
|
28
|
-
if (el) {
|
|
29
|
-
const cached = contentCache.get(el);
|
|
30
|
-
// Skip if this element already has clones from the same source
|
|
31
|
-
if (cached === content) {
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
// Clear previous content and clone new nodes
|
|
35
|
-
el.innerHTML = '';
|
|
36
|
-
Array.from(content.childNodes).forEach((n) => el.appendChild(n.cloneNode(true)));
|
|
37
|
-
contentCache.set(el, content);
|
|
38
|
-
}
|
|
39
|
-
} }));
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Renders the label content for a select option within an overlay
|
|
43
|
-
* interface based on the presence of rich content.
|
|
44
|
-
*
|
|
45
|
-
* Uses span elements because this content may render within buttons,
|
|
46
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
47
|
-
* content to prevent accessibility issues.
|
|
48
|
-
*
|
|
49
|
-
* @param option - The content option data containing label, slots,
|
|
50
|
-
* and description.
|
|
51
|
-
* @param className - The base CSS class for the label element.
|
|
52
|
-
*/
|
|
53
|
-
export const renderOptionLabel = (option, className) => {
|
|
54
|
-
const { id, label, startContent, endContent, description } = option;
|
|
55
|
-
const hasRichContent = !!startContent || !!endContent || !!description;
|
|
56
|
-
// Render the main label
|
|
57
|
-
const labelEl = typeof label === 'string' || !label ? (h("span", { key: `${className}-label-${id}` }, label)) : (renderClonedContent(id, label, `${className}-text`));
|
|
58
|
-
if (!hasRichContent) {
|
|
59
|
-
return (h("span", { class: className, key: `${className}-${id}` }, labelEl));
|
|
60
|
-
}
|
|
61
|
-
return (h("span", { class: className, key: `${className}-${id}` }, startContent && renderClonedContent(id, startContent, 'select-option-start'), h("span", { class: "select-option-content", key: `${className}-content-${id}` }, labelEl, description && (h("span", { class: "select-option-description", key: `${className}-desc-${id}` }, description))), endContent && renderClonedContent(id, endContent, 'select-option-end')));
|
|
62
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import { h } from './index-Omi_TcwW.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Cache that maps rendered span elements to the source HTMLElement
|
|
8
|
-
* they were cloned from. This prevents flickering when a user
|
|
9
|
-
* selects an option that has rich content, as the content will only be
|
|
10
|
-
* re-rendered if the source HTMLElement changes.
|
|
11
|
-
*/
|
|
12
|
-
const contentCache = new WeakMap();
|
|
13
|
-
/**
|
|
14
|
-
* Renders cloned DOM content into a span element via a ref callback.
|
|
15
|
-
* The content is only cloned when the source element changes,
|
|
16
|
-
* preventing flicker caused by destroying and recreating web
|
|
17
|
-
* components (e.g., ion-avatar) on every re-render cycle.
|
|
18
|
-
*
|
|
19
|
-
* Uses span elements because this content may render within buttons,
|
|
20
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
21
|
-
* content to prevent accessibility issues.
|
|
22
|
-
*
|
|
23
|
-
* @param id - Unique identifier for generating stable virtual DOM keys.
|
|
24
|
-
* @param content - The HTMLElement container whose child nodes will be cloned.
|
|
25
|
-
* @param className - CSS class applied to the wrapper span.
|
|
26
|
-
*/
|
|
27
|
-
const renderClonedContent = (id, content, className) => {
|
|
28
|
-
return (h("span", { class: className, key: `${className}-${id}`, ref: (el) => {
|
|
29
|
-
if (el) {
|
|
30
|
-
const cached = contentCache.get(el);
|
|
31
|
-
// Skip if this element already has clones from the same source
|
|
32
|
-
if (cached === content) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
// Clear previous content and clone new nodes
|
|
36
|
-
el.innerHTML = '';
|
|
37
|
-
Array.from(content.childNodes).forEach((n) => el.appendChild(n.cloneNode(true)));
|
|
38
|
-
contentCache.set(el, content);
|
|
39
|
-
}
|
|
40
|
-
} }));
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Renders the label content for a select option within an overlay
|
|
44
|
-
* interface based on the presence of rich content.
|
|
45
|
-
*
|
|
46
|
-
* Uses span elements because this content may render within buttons,
|
|
47
|
-
* depending on the select interface. Buttons can only have phrasing
|
|
48
|
-
* content to prevent accessibility issues.
|
|
49
|
-
*
|
|
50
|
-
* @param option - The content option data containing label, slots,
|
|
51
|
-
* and description.
|
|
52
|
-
* @param className - The base CSS class for the label element.
|
|
53
|
-
*/
|
|
54
|
-
const renderOptionLabel = (option, className) => {
|
|
55
|
-
const { id, label, startContent, endContent, description } = option;
|
|
56
|
-
const hasRichContent = !!startContent || !!endContent || !!description;
|
|
57
|
-
// Render the main label
|
|
58
|
-
const labelEl = typeof label === 'string' || !label ? (h("span", { key: `${className}-label-${id}` }, label)) : (renderClonedContent(id, label, `${className}-text`));
|
|
59
|
-
if (!hasRichContent) {
|
|
60
|
-
return (h("span", { class: className, key: `${className}-${id}` }, labelEl));
|
|
61
|
-
}
|
|
62
|
-
return (h("span", { class: className, key: `${className}-${id}` }, startContent && renderClonedContent(id, startContent, 'select-option-start'), h("span", { class: "select-option-content", key: `${className}-content-${id}` }, labelEl, description && (h("span", { class: "select-option-description", key: `${className}-desc-${id}` }, description))), endContent && renderClonedContent(id, endContent, 'select-option-end')));
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export { renderOptionLabel as r };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{f as t,r as o,c as a,e,j as i,h as n,d as r,g as s}from"./p-Omi_TcwW.js";import{E as l,a as d}from"./p-qYp06FUk.js";import{g as p,r as c}from"./p-CHE1xWbg.js";import{c as h}from"./p-B-hirT0v.js";import{O as b,d as u,e as m,i as g,j as x,k as v,f,g as w,h as k,s as y,G as z}from"./p-BYtS2rae.js";import{c as $,g as T}from"./p-DaJxRxSQ.js";import{w as j,b as D,c as Y}from"./p-CBV-BGvD.js";import{c as C}from"./p-Cb-0O4h8.js";import{createGesture as M}from"./p-Cl0B-RWe.js";import"./p-vXpMhGrs.js";import"./p-FvDKM4Ax.js";import"./p-BTEOs1at.js";const O=(t,o)=>Math.floor(t/2-o/2),B=(t,o)=>{const a=C(),e=C(),{position:i,top:n,bottom:r}=o,s=p(t).querySelector(".toast-wrapper");switch(e.addElement(s),i){case"top":e.fromTo("transform","translateY(-100%)",`translateY(${n})`);break;case"middle":const o=O(t.clientHeight,s.clientHeight);s.style.top=`${o}px`,e.fromTo("opacity",.01,1);break;default:e.fromTo("transform","translateY(100%)",`translateY(${r})`)}return a.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(e)},E=(t,o)=>{const a=C(),e=C(),{position:i,top:n,bottom:r}=o,s=p(t).querySelector(".toast-wrapper");switch(e.addElement(s),i){case"top":e.fromTo("transform",`translateY(${n})`,"translateY(-100%)");break;case"middle":e.fromTo("opacity",.99,0);break;default:e.fromTo("transform",`translateY(${r})`,"translateY(100%)")}return a.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(e)},W=(t,o)=>{const a=C(),e=C(),{position:i,top:n,bottom:r}=o,s=p(t).querySelector(".toast-wrapper");switch(e.addElement(s),i){case"top":s.style.setProperty("transform",`translateY(${n})`),e.fromTo("opacity",.01,1);break;case"middle":const o=O(t.clientHeight,s.clientHeight);s.style.top=`${o}px`,e.fromTo("opacity",.01,1);break;default:s.style.setProperty("transform",`translateY(${r})`),e.fromTo("opacity",.01,1)}return a.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(e)},H=t=>{const o=C(),a=C(),e=p(t).querySelector(".toast-wrapper");return a.addElement(e).fromTo("opacity",.99,0),o.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(a)},P=class{constructor(t){o(this,t),this.didPresent=a(this,"ionToastDidPresent",7),this.willPresent=a(this,"ionToastWillPresent",7),this.willDismiss=a(this,"ionToastWillDismiss",7),this.didDismiss=a(this,"ionToastDidDismiss",7),this.didPresentShorthand=a(this,"didPresent",7),this.willPresentShorthand=a(this,"willPresent",7),this.willDismissShorthand=a(this,"willDismiss",7),this.didDismissShorthand=a(this,"didDismiss",7),this.delegateController=u(this),this.lockController=h(),this.triggerController=m(),this.customHTMLEnabled=e.get("innerHTMLTemplatesEnabled",l),this.presented=!1,this.revealContentToScreenReader=!1,this.hasController=!1,this.duration=e.getNumber("toastDuration",0),this.hue="subtle",this.layout="baseline",this.keyboardClose=!1,this.position="bottom",this.translucent=!1,this.animated=!0,this.isOpen=!1,this.dispatchCancelHandler=t=>{if(g(t.detail.role)){const t=this.getButtons().find((t=>"cancel"===t.role));this.callButtonHandler(t)}},this.createSwipeGesture=t=>{const o=this.gesture=((t,o,a)=>{const e=p(t).querySelector(".toast-wrapper"),i=t.clientHeight,n=e.getBoundingClientRect();let r=0;const s="middle"===t.position?.5:0,l="top"===t.position?-1:1,d=O(i,n.height),c=[{offset:0,transform:`translateY(-${d+n.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${d+n.height}px)`}],h=C("toast-swipe-to-dismiss-animation").addElement(e).duration(100);switch(t.position){case"middle":r=i+n.height,h.keyframes(c),h.progressStart(!0,.5);break;case"top":r=n.bottom,h.keyframes([{offset:0,transform:`translateY(${o.top})`},{offset:1,transform:"translateY(-100%)"}]),h.progressStart(!0,0);break;default:r=i-n.top,h.keyframes([{offset:0,transform:`translateY(${o.bottom})`},{offset:1,transform:"translateY(100%)"}]),h.progressStart(!0,0)}const u=t=>t*l/r,m=M({el:e,gestureName:"toast-swipe-to-dismiss",gesturePriority:b,direction:"y",onMove:t=>{const o=s+u(t.deltaY);h.progressStep(o)},onEnd:o=>{const i=o.velocityY,n=(o.deltaY+1e3*i)/r*l;m.enable(!1);let s=!0,p=1,b=0,g=0;if("middle"===t.position){s=n>=.25||n<=-.25,p=1,b=0;const t=e.getBoundingClientRect(),a=t.top-d,i=(d+t.height)*(o.deltaY<=0?-1:1);h.keyframes([{offset:0,transform:`translateY(${a}px)`},{offset:1,transform:`translateY(${s?`${i}px`:"0px"})`}]),g=i-a}else s=n>=.5,p=s?1:0,b=u(o.deltaY),g=(s?1-b:b)*r;const x=Math.min(Math.abs(g)/Math.abs(i),200);h.onFinish((()=>{s?(a(),h.destroy()):("middle"===t.position?h.keyframes(c).progressStart(!0,.5):h.progressStart(!0,0),m.enable(!0))}),{oneTimeCallback:!0}).progressEnd(p,b,x)}});return m})(this.el,t,(()=>{this.dismiss(void 0,z)}));o.enable(!0)},this.destroySwipeGesture=()=>{const{gesture:t}=this;void 0!==t&&(t.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:t}=this;return"vertical"===t}}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(t,o){!0===t&&!1===o?this.present():!1===t&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:t,el:o,triggerController:a}=this;t&&a.addClickListener(o,t)}connectedCallback(){x(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){var t;(null===(t=this.htmlAttributes)||void 0===t?void 0:t.id)||v(this.el)}componentDidLoad(){!0===this.isOpen&&c((()=>this.present())),this.triggerChanged()}async present(){const o=D(this),a=await this.lockController.lock();await this.delegateController.attachViewToDom();const{el:e,position:i}=this,n=function(o,a,e,i){let n;if(n="md"===e?"top"===o?8:-8:"top"===o?10:-10,a&&j){!function(o,a){null===o.offsetParent&&t("[ion-toast] - The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",a)}(a,i);const e=a.getBoundingClientRect();return"top"===o?n+=e.bottom:"bottom"===o&&(n-=j.innerHeight-e.top),{top:`${n}px`,bottom:`${n}px`}}return{top:`calc(${n}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${n}px - var(--ion-safe-area-bottom, 0px))`}}(i,this.getAnchorElement(),o,e);this.lastPresentedPosition=n,await f(this,"toastEnter",B,W,{position:i,top:n.top,bottom:n.bottom}),this.revealContentToScreenReader=!0,this.duration>0&&(this.durationTimeout=setTimeout((()=>this.dismiss(void 0,"timeout")),this.duration)),this.prefersSwipeGesture()&&this.createSwipeGesture(n),a()}async dismiss(t,o){var a,e;const i=await this.lockController.lock(),{durationTimeout:n,position:r,lastPresentedPosition:s}=this;n&&clearTimeout(n);const l=await w(this,t,o,"toastLeave",E,H,{position:r,top:null!==(a=null==s?void 0:s.top)&&void 0!==a?a:"",bottom:null!==(e=null==s?void 0:s.bottom)&&void 0!==e?e:""});return l&&(this.delegateController.removeViewFromDom(),this.revealContentToScreenReader=!1),this.lastPresentedPosition=void 0,this.destroySwipeGesture(),i(),l}onDidDismiss(){return k(this.el,"ionToastDidDismiss")}onWillDismiss(){return k(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map((t=>"string"==typeof t?{text:t}:t)):[]}getShape(){const{shape:t}=this;if("ionic"===Y(this))return void 0===t?"round":t}getAnchorElement(){const{position:o,positionAnchor:a,el:e}=this;if(void 0!==a)if("middle"!==o||void 0===a){if("string"==typeof a){const o=document.getElementById(a);return null===o?void t(`[ion-toast] - An anchor element with an ID of "${a}" was not found in the DOM.`,e):o}if(a instanceof HTMLElement)return a;t("[ion-toast] - Invalid positionAnchor value:",a,e)}else t('[ion-toast] - The positionAnchor property is ignored when using position="middle".',this.el)}async buttonClick(t){const o=t.role;return g(o)||await this.callButtonHandler(t)?this.dismiss(void 0,o):Promise.resolve()}async callButtonHandler(t){if(null==t?void 0:t.handler)try{if(!1===await y(t.handler))return!1}catch(t){i("[ion-toast] - Exception in callButtonHandler:",t)}return!0}renderButtons(t,o){if(0===t.length)return;const a=Y(this);return n("div",{class:{"toast-button-group":!0,[`toast-button-group-${o}`]:!0}},t.map((t=>n("button",Object.assign({},t.htmlAttributes,{type:"button",class:A(t),tabIndex:0,onClick:()=>this.buttonClick(t),part:G(t)}),n("div",{class:"toast-button-inner"},t.icon&&n("ion-icon",{"aria-hidden":"true",icon:t.icon,slot:void 0===t.text?"icon-only":void 0,class:"toast-button-icon"}),t.text),"md"===a&&n("ion-ripple-effect",{type:void 0!==t.icon&&void 0===t.text?"unbounded":"bounded"})))))}renderToastMessage(t,o=null){const{customHTMLEnabled:a,message:e}=this;return a?n("div",{key:t,"aria-hidden":o,class:"toast-message",part:"message",innerHTML:d(e)}):n("div",{key:t,"aria-hidden":o,class:"toast-message",part:"message"},e)}renderHeader(t,o=null){return n("div",{key:t,class:"toast-header","aria-hidden":o,part:"header"},this.header)}render(){const{layout:o,el:a,revealContentToScreenReader:e,header:i,hue:s,message:l}=this,d=this.getButtons(),p=d.filter((t=>"start"===t.side)),c=d.filter((t=>"start"!==t.side)),h=Y(this),b=D(this),u=this.getShape(),m={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${o}`]:!0};return"stacked"===o&&p.length>0&&c.length>0&&t("[ion-toast] - This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",a),n(r,Object.assign({key:"8f2a7964ecbc74d57a7743475f51abba45ec5302",tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:$(this.color,Object.assign(Object.assign({[b]:!0,[h]:!0},T(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent,[`toast-shape-${u}`]:void 0!==u,[`toast-hue-${s}`]:void 0!==s})),onIonToastWillDismiss:this.dispatchCancelHandler}),n("div",{key:"bb637ccbcda0c68c34d0a9efc8bd5c0ee9da49f9",class:m,part:"wrapper"},n("div",{key:"3779659eb5d855dd360503b336090c7e0b569975",class:"toast-container",part:"container"},this.renderButtons(p,"start"),void 0!==this.icon&&n("ion-icon",{key:"768a222c9b188978afeda83119d71bde8fb6e2b3",class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),n("div",{key:"4a5fc7d5f374f5a7de1a916351143d5a31d939cf",class:"toast-content",part:"content",role:"status","aria-atomic":"true","aria-live":"polite"},!e&&void 0!==i&&this.renderHeader("oldHeader","true"),!e&&void 0!==l&&this.renderToastMessage("oldMessage","true"),e&&void 0!==i&&this.renderHeader("header"),e&&void 0!==l&&this.renderToastMessage("header")),this.renderButtons(c,"end"))))}get el(){return s(this)}static get watchers(){return{swipeGesture:[{swipeGestureChanged:0}],isOpen:[{onIsOpenChange:0}],trigger:[{triggerChanged:0}]}}},A=t=>({"toast-button":!0,"toast-button-icon-only":void 0!==t.icon&&void 0===t.text,[`toast-button-${t.role}`]:void 0!==t.role,"ion-focusable":!0,"ion-activatable":!0}),G=t=>g(t.role)?"button cancel":"button";P.style={ionic:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);contain:strict;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-content{-ms-flex:1;flex:1;min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--box-shadow:var(--token-elevation-4, 0px 3px 12px 0px rgba(0, 0, 0, 0.12), 0px 15px 48px 0px rgba(0, 0, 0, 0.18));--max-width:343px;--start:var(--token-space-200, var(--token-scale-200, 8px));--end:var(--token-space-200, var(--token-scale-200, 8px));font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0%);line-height:var(--token-font-line-height-600, var(--token-scale-600, 24px));text-decoration:none;text-transform:none;z-index:1001}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}:host(.md) .toast-wrapper{opacity:0.01}:host(.ios) .toast-wrapper.toast-middle{opacity:0.01}.toast-container{-webkit-padding-start:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-start:var(--token-space-400, var(--token-scale-400, 16px));-webkit-padding-end:var(--token-space-400, var(--token-scale-400, 16px));padding-inline-end:var(--token-space-400, var(--token-scale-400, 16px));padding-top:var(--token-space-300, var(--token-scale-300, 12px));padding-bottom:var(--token-space-300, var(--token-scale-300, 12px))}:host(.toast-shape-soft){--border-radius:var(--token-border-radius-200, var(--token-scale-200, 8px))}:host(.toast-shape-round){--border-radius:var(--token-border-radius-400, var(--token-scale-400, 16px))}:host(.toast-shape-rectangular){--border-radius:var(--token-border-radius-0, var(--token-scale-0, 0px))}.toast-header{font-size:var(--token-font-size-450, 1.125rem);font-weight:var(--token-font-weight-medium, 500);letter-spacing:var(--token-font-letter-spacing-0, 0%);line-height:var(--token-font-line-height-700, var(--token-scale-700, 28px));text-decoration:none;text-transform:none}.toast-layout-baseline .toast-button-group-start{-webkit-margin-end:var(--token-space-400, var(--token-scale-400, 16px));margin-inline-end:var(--token-space-400, var(--token-scale-400, 16px))}.toast-layout-stacked .toast-button-group-start{margin-bottom:var(--token-space-400, var(--token-scale-400, 16px))}.toast-layout-baseline .toast-button-group-end{-webkit-margin-start:var(--token-space-400, var(--token-scale-400, 16px));margin-inline-start:var(--token-space-400, var(--token-scale-400, 16px))}.toast-layout-stacked .toast-button-group-end{margin-top:var(--token-space-400, var(--token-scale-400, 16px))}.toast-button-group{gap:var(--token-space-400, var(--token-scale-400, 16px))}.toast-button{font-size:var(--token-font-size-350, 0.875rem);font-weight:var(--token-font-weight-regular, 400);letter-spacing:var(--token-font-letter-spacing-0, 0%);line-height:var(--token-font-line-height-600, var(--token-scale-600, 24px));text-decoration:none;text-transform:none;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:relative;background-color:transparent;text-decoration:underline;overflow:hidden}.toast-icon{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--token-space-200, var(--token-scale-200, 8px));margin-inline-end:var(--token-space-200, var(--token-scale-200, 8px))}.toast-icon,.toast-button-icon{font-size:var(--token-scale-600, 24px)}:host(.toast-hue-bold){--background:var(--token-bg-neutral-boldest-default, var(--token-primitives-neutral-1200, #242424));--background-activated:var(--token-bg-neutral-boldest-press, var(--token-primitives-base-black, #111111));--color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff));--button-color:var(--token-text-inverse, var(--token-primitives-base-white, #ffffff))}:host(.toast-hue-bold.ion-color) .toast-wrapper{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.toast-hue-bold.ion-color) .toast-button{color:var(--ion-color-contrast)}:host(.toast-hue-subtle){--background:var(--token-bg-neutral-subtlest-default, var(--token-primitives-base-white, #ffffff));--background-activated:var(--token-bg-neutral-subtlest-press, var(--token-primitives-neutral-200, #eae9e9));--color:var(--token-text-default, var(--token-primitives-neutral-1200, #242424));--button-color:var(--token-text-link-default, var(--token-semantics-primary-900, var(--token-primitives-blue-900, #0d4bc3)))}:host(.toast-hue-subtle) .toast-button-cancel{color:var(--token-icon-subtlest, var(--token-primitives-neutral-800, #626262))}:host(.toast-hue-subtle.ion-color) .toast-wrapper{background:var(--ion-color-subtle-base);color:var(--ion-color-subtle-contrast)}",ios:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);contain:strict;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-content{-ms-flex:1;flex:1;min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{font-family:var(--ion-font-family, inherit);z-index:1001}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-icon,.toast-button-icon{font-size:1.4em}:host{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",md:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);contain:strict;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-content{-ms-flex:1;flex:1;min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{font-family:var(--ion-font-family, inherit);z-index:1001}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-icon,.toast-button-icon{font-size:1.4em}:host{--background:var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6))}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}"};export{P as ion_toast}
|