@ionic/core 8.2.8-dev.11724363936.1f6132ca → 8.2.8-dev.11724886491.1c0dd39d
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/checkbox.js +9 -9
- package/components/ion-tabs.js +2 -2
- package/components/ion-toggle.js +9 -9
- package/dist/cjs/ion-checkbox.cjs.entry.js +9 -9
- package/dist/cjs/ion-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +9 -9
- package/dist/collection/components/checkbox/checkbox.ios.css +9 -0
- package/dist/collection/components/checkbox/checkbox.js +15 -17
- package/dist/collection/components/checkbox/checkbox.md.css +9 -0
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/toggle/toggle.ios.css +10 -0
- package/dist/collection/components/toggle/toggle.js +15 -17
- package/dist/collection/components/toggle/toggle.md.css +10 -0
- package/dist/docs.json +29 -21
- package/dist/esm/ion-checkbox.entry.js +9 -9
- package/dist/esm/ion-tab_2.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +9 -9
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/html.html-data.json +4 -4
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0373d924.system.entry.js +4 -0
- package/dist/ionic/p-322c5fb4.system.js +1 -1
- package/dist/ionic/p-521eca2e.entry.js +4 -0
- package/dist/ionic/{p-f3a2abd6.system.entry.js → p-836d39d4.system.entry.js} +1 -1
- package/dist/ionic/p-9bd81922.entry.js +4 -0
- package/dist/ionic/p-aa0dd912.system.entry.js +4 -0
- package/dist/ionic/{p-b13fd847.entry.js → p-fd0cb4ef.entry.js} +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +4 -2
- package/dist/types/components/toggle/toggle.d.ts +4 -2
- package/dist/types/components.d.ts +12 -12
- package/hydrate/index.js +20 -20
- package/hydrate/index.mjs +20 -20
- package/package.json +1 -1
- package/dist/ionic/p-4a592ff3.system.entry.js +0 -4
- package/dist/ionic/p-9c8c05b7.entry.js +0 -4
- package/dist/ionic/p-e83da096.entry.js +0 -4
- package/dist/ionic/p-eb20b71f.system.entry.js +0 -4
|
@@ -56,8 +56,8 @@ export class Checkbox {
|
|
|
56
56
|
this.disabled = false;
|
|
57
57
|
this.value = 'on';
|
|
58
58
|
this.labelPlacement = 'start';
|
|
59
|
-
this.justify =
|
|
60
|
-
this.alignment =
|
|
59
|
+
this.justify = undefined;
|
|
60
|
+
this.alignment = undefined;
|
|
61
61
|
}
|
|
62
62
|
componentWillLoad() {
|
|
63
63
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
@@ -72,20 +72,20 @@ export class Checkbox {
|
|
|
72
72
|
const mode = getIonMode(this);
|
|
73
73
|
const path = getSVGPath(mode, indeterminate);
|
|
74
74
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: 'd7a07fbf130413eaa4622c07786e8a00723113eb', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses(color, {
|
|
76
76
|
[mode]: true,
|
|
77
77
|
'in-item': hostContext('ion-item', el),
|
|
78
78
|
'checkbox-checked': checked,
|
|
79
79
|
'checkbox-disabled': disabled,
|
|
80
80
|
'checkbox-indeterminate': indeterminate,
|
|
81
81
|
interactive: true,
|
|
82
|
-
[`checkbox-justify-${justify}`]:
|
|
83
|
-
[`checkbox-alignment-${alignment}`]:
|
|
82
|
+
[`checkbox-justify-${justify}`]: justify !== undefined,
|
|
83
|
+
[`checkbox-alignment-${alignment}`]: alignment !== undefined,
|
|
84
84
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
85
|
-
}), onClick: this.onClick }, h("label", { key: '
|
|
85
|
+
}), onClick: this.onClick }, h("label", { key: '99797589ed4ea7cbac53531c85b2d4a2dcd568c4', class: "checkbox-wrapper" }, h("input", Object.assign({ key: 'cc12fe7920ab23c6f21546f7b312b8f1f5671349', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), h("div", { key: '1b087f061da5abca6129d372503d8882b77e24be', class: {
|
|
86
86
|
'label-text-wrapper': true,
|
|
87
87
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
88
|
-
}, part: "label" }, h("slot", { key: '
|
|
88
|
+
}, part: "label" }, h("slot", { key: 'bc84274c826fa1db1207230aa03bf5790afe2992' })), h("div", { key: '89e9396dc9215804bd8ac42e943a292d050ef8c5', class: "native-wrapper" }, h("svg", { key: '2aafac248c639074faaf17044d8d9204474a9b7b', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
|
|
89
89
|
}
|
|
90
90
|
getSVGPath(mode, indeterminate) {
|
|
91
91
|
let path = indeterminate ? (h("path", { d: "M6 12L18 12", part: "mark" })) : (h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
@@ -246,36 +246,34 @@ export class Checkbox {
|
|
|
246
246
|
"mutable": false,
|
|
247
247
|
"complexType": {
|
|
248
248
|
"original": "'start' | 'end' | 'space-between'",
|
|
249
|
-
"resolved": "\"end\" | \"space-between\" | \"start\"",
|
|
249
|
+
"resolved": "\"end\" | \"space-between\" | \"start\" | undefined",
|
|
250
250
|
"references": {}
|
|
251
251
|
},
|
|
252
252
|
"required": false,
|
|
253
|
-
"optional":
|
|
253
|
+
"optional": true,
|
|
254
254
|
"docs": {
|
|
255
255
|
"tags": [],
|
|
256
|
-
"text": "How to pack the label and checkbox within a line.\n`\"start\"`: The label and checkbox will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and checkbox will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and checkbox will appear on opposite\nends of the line with space between the two elements
|
|
256
|
+
"text": "How to pack the label and checkbox within a line.\n`\"start\"`: The label and checkbox will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and checkbox will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and checkbox will appear on opposite\nends of the line with space between the two elements.\nSetting this property will change the checkbox `display` to `block`."
|
|
257
257
|
},
|
|
258
258
|
"attribute": "justify",
|
|
259
|
-
"reflect": false
|
|
260
|
-
"defaultValue": "'space-between'"
|
|
259
|
+
"reflect": false
|
|
261
260
|
},
|
|
262
261
|
"alignment": {
|
|
263
262
|
"type": "string",
|
|
264
263
|
"mutable": false,
|
|
265
264
|
"complexType": {
|
|
266
265
|
"original": "'start' | 'center'",
|
|
267
|
-
"resolved": "\"center\" | \"start\"",
|
|
266
|
+
"resolved": "\"center\" | \"start\" | undefined",
|
|
268
267
|
"references": {}
|
|
269
268
|
},
|
|
270
269
|
"required": false,
|
|
271
|
-
"optional":
|
|
270
|
+
"optional": true,
|
|
272
271
|
"docs": {
|
|
273
272
|
"tags": [],
|
|
274
|
-
"text": "How to control the alignment of the checkbox and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL
|
|
273
|
+
"text": "How to control the alignment of the checkbox and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL.\nSetting this property will change the checkbox `display` to `block`."
|
|
275
274
|
},
|
|
276
275
|
"attribute": "alignment",
|
|
277
|
-
"reflect": false
|
|
278
|
-
"defaultValue": "'center'"
|
|
276
|
+
"reflect": false
|
|
279
277
|
}
|
|
280
278
|
};
|
|
281
279
|
}
|
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-grow: 1;
|
|
112
112
|
align-items: center;
|
|
113
|
+
justify-content: space-between;
|
|
113
114
|
height: inherit;
|
|
114
115
|
cursor: inherit;
|
|
115
116
|
}
|
|
@@ -207,6 +208,14 @@ input {
|
|
|
207
208
|
align-items: center;
|
|
208
209
|
}
|
|
209
210
|
|
|
211
|
+
:host(.checkbox-justify-space-between),
|
|
212
|
+
:host(.checkbox-justify-start),
|
|
213
|
+
:host(.checkbox-justify-end),
|
|
214
|
+
:host(.checkbox-alignment-start),
|
|
215
|
+
:host(.checkbox-alignment-center) {
|
|
216
|
+
display: block;
|
|
217
|
+
}
|
|
218
|
+
|
|
210
219
|
/**
|
|
211
220
|
* Label is on the left of the checkbox in LTR and
|
|
212
221
|
* on the right in RTL.
|
|
@@ -28,7 +28,7 @@ export class Tabs {
|
|
|
28
28
|
async componentWillLoad() {
|
|
29
29
|
if (!this.useRouter) {
|
|
30
30
|
/**
|
|
31
|
-
* JavaScript
|
|
31
|
+
* JavaScript and StencilJS use `ion-router`, while
|
|
32
32
|
* the other frameworks use `ion-router-outlet`.
|
|
33
33
|
*
|
|
34
34
|
* If either component is present then tabs will not use
|
|
@@ -145,7 +145,7 @@ export class Tabs {
|
|
|
145
145
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
|
-
return (h(Host, { key: '
|
|
148
|
+
return (h(Host, { key: 'eb094c9bd15b7777c53bd0bd6d225784fa472849', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: 'a516ca6915bf26e77eeeb0ff684c4fcc7d4420a7', name: "top" }), h("div", { key: 'dd2a32a072d77afe216abc4958c1d686405fb780', class: "tabs-inner" }, h("slot", { key: '222c20ba862068f5c78e7bbef4fa213499fb2fa5' })), h("slot", { key: '3e76dcb1b21873aa137d095c56131514054ead3a', name: "bottom" })));
|
|
149
149
|
}
|
|
150
150
|
static get is() { return "ion-tabs"; }
|
|
151
151
|
static get encapsulation() { return "shadow"; }
|
|
@@ -130,6 +130,8 @@ input {
|
|
|
130
130
|
display: flex;
|
|
131
131
|
position: relative;
|
|
132
132
|
flex-grow: 1;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: space-between;
|
|
133
135
|
height: inherit;
|
|
134
136
|
transition: background-color 15ms linear;
|
|
135
137
|
cursor: inherit;
|
|
@@ -189,6 +191,14 @@ input {
|
|
|
189
191
|
align-items: center;
|
|
190
192
|
}
|
|
191
193
|
|
|
194
|
+
:host(.toggle-justify-space-between),
|
|
195
|
+
:host(.toggle-justify-start),
|
|
196
|
+
:host(.toggle-justify-end),
|
|
197
|
+
:host(.toggle-alignment-start),
|
|
198
|
+
:host(.toggle-alignment-center) {
|
|
199
|
+
display: block;
|
|
200
|
+
}
|
|
201
|
+
|
|
192
202
|
/**
|
|
193
203
|
* Label is on the left of the input in LTR and
|
|
194
204
|
* on the right in RTL.
|
|
@@ -69,8 +69,8 @@ export class Toggle {
|
|
|
69
69
|
this.value = 'on';
|
|
70
70
|
this.enableOnOffLabels = config.get('toggleOnOffLabels');
|
|
71
71
|
this.labelPlacement = 'start';
|
|
72
|
-
this.justify =
|
|
73
|
-
this.alignment =
|
|
72
|
+
this.justify = undefined;
|
|
73
|
+
this.alignment = undefined;
|
|
74
74
|
}
|
|
75
75
|
disabledChanged() {
|
|
76
76
|
if (this.gesture) {
|
|
@@ -157,20 +157,20 @@ export class Toggle {
|
|
|
157
157
|
const value = this.getValue();
|
|
158
158
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
159
159
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
160
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: '8f024fb0fbc2d4442be0574b03450426e8e4fc9e', onClick: this.onClick, class: createColorClasses(color, {
|
|
161
161
|
[mode]: true,
|
|
162
162
|
'in-item': hostContext('ion-item', el),
|
|
163
163
|
'toggle-activated': activated,
|
|
164
164
|
'toggle-checked': checked,
|
|
165
165
|
'toggle-disabled': disabled,
|
|
166
|
-
[`toggle-justify-${justify}`]:
|
|
167
|
-
[`toggle-alignment-${alignment}`]:
|
|
166
|
+
[`toggle-justify-${justify}`]: justify !== undefined,
|
|
167
|
+
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
168
168
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
169
169
|
[`toggle-${rtl}`]: true,
|
|
170
|
-
}) }, h("label", { key: '
|
|
170
|
+
}) }, h("label", { key: '0492f009cd89755adf41f60925028002df0e67b1', class: "toggle-wrapper" }, h("input", Object.assign({ key: 'fd98b23e8adfa2630878eddc30607a0b1bf9e798', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: 'bcbde055ad9450319ae41e8956a1e8cc0a7796a4', class: {
|
|
171
171
|
'label-text-wrapper': true,
|
|
172
172
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
173
|
-
}, part: "label" }, h("slot", { key: '
|
|
173
|
+
}, part: "label" }, h("slot", { key: '7a6ea9515d454d80615f0622f361c5f91b41345c' })), h("div", { key: '6d3670b81b8f809092c98b3f3b8e483ddf6a7cac', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
174
174
|
}
|
|
175
175
|
static get is() { return "ion-toggle"; }
|
|
176
176
|
static get encapsulation() { return "shadow"; }
|
|
@@ -324,36 +324,34 @@ export class Toggle {
|
|
|
324
324
|
"mutable": false,
|
|
325
325
|
"complexType": {
|
|
326
326
|
"original": "'start' | 'end' | 'space-between'",
|
|
327
|
-
"resolved": "\"end\" | \"space-between\" | \"start\"",
|
|
327
|
+
"resolved": "\"end\" | \"space-between\" | \"start\" | undefined",
|
|
328
328
|
"references": {}
|
|
329
329
|
},
|
|
330
330
|
"required": false,
|
|
331
|
-
"optional":
|
|
331
|
+
"optional": true,
|
|
332
332
|
"docs": {
|
|
333
333
|
"tags": [],
|
|
334
|
-
"text": "How to pack the label and toggle within a line.\n`\"start\"`: The label and toggle will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and toggle will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and toggle will appear on opposite\nends of the line with space between the two elements
|
|
334
|
+
"text": "How to pack the label and toggle within a line.\n`\"start\"`: The label and toggle will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and toggle will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and toggle will appear on opposite\nends of the line with space between the two elements.\nSetting this property will change the toggle `display` to `block`."
|
|
335
335
|
},
|
|
336
336
|
"attribute": "justify",
|
|
337
|
-
"reflect": false
|
|
338
|
-
"defaultValue": "'space-between'"
|
|
337
|
+
"reflect": false
|
|
339
338
|
},
|
|
340
339
|
"alignment": {
|
|
341
340
|
"type": "string",
|
|
342
341
|
"mutable": false,
|
|
343
342
|
"complexType": {
|
|
344
343
|
"original": "'start' | 'center'",
|
|
345
|
-
"resolved": "\"center\" | \"start\"",
|
|
344
|
+
"resolved": "\"center\" | \"start\" | undefined",
|
|
346
345
|
"references": {}
|
|
347
346
|
},
|
|
348
347
|
"required": false,
|
|
349
|
-
"optional":
|
|
348
|
+
"optional": true,
|
|
350
349
|
"docs": {
|
|
351
350
|
"tags": [],
|
|
352
|
-
"text": "How to control the alignment of the toggle and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL
|
|
351
|
+
"text": "How to control the alignment of the toggle and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL.\nSetting this property will change the toggle `display` to `block`."
|
|
353
352
|
},
|
|
354
353
|
"attribute": "alignment",
|
|
355
|
-
"reflect": false
|
|
356
|
-
"defaultValue": "'center'"
|
|
354
|
+
"reflect": false
|
|
357
355
|
}
|
|
358
356
|
};
|
|
359
357
|
}
|
|
@@ -130,6 +130,8 @@ input {
|
|
|
130
130
|
display: flex;
|
|
131
131
|
position: relative;
|
|
132
132
|
flex-grow: 1;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: space-between;
|
|
133
135
|
height: inherit;
|
|
134
136
|
transition: background-color 15ms linear;
|
|
135
137
|
cursor: inherit;
|
|
@@ -189,6 +191,14 @@ input {
|
|
|
189
191
|
align-items: center;
|
|
190
192
|
}
|
|
191
193
|
|
|
194
|
+
:host(.toggle-justify-space-between),
|
|
195
|
+
:host(.toggle-justify-start),
|
|
196
|
+
:host(.toggle-justify-end),
|
|
197
|
+
:host(.toggle-alignment-start),
|
|
198
|
+
:host(.toggle-alignment-center) {
|
|
199
|
+
display: block;
|
|
200
|
+
}
|
|
201
|
+
|
|
192
202
|
/**
|
|
193
203
|
* Label is on the left of the input in LTR and
|
|
194
204
|
* on the right in RTL.
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-08-
|
|
2
|
+
"timestamp": "2024-08-28T23:10:02",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
@@ -5701,18 +5701,17 @@
|
|
|
5701
5701
|
"props": [
|
|
5702
5702
|
{
|
|
5703
5703
|
"name": "alignment",
|
|
5704
|
-
"type": "\"center\" | \"start\"",
|
|
5704
|
+
"type": "\"center\" | \"start\" | undefined",
|
|
5705
5705
|
"complexType": {
|
|
5706
5706
|
"original": "'start' | 'center'",
|
|
5707
|
-
"resolved": "\"center\" | \"start\"",
|
|
5707
|
+
"resolved": "\"center\" | \"start\" | undefined",
|
|
5708
5708
|
"references": {}
|
|
5709
5709
|
},
|
|
5710
5710
|
"mutable": false,
|
|
5711
5711
|
"attr": "alignment",
|
|
5712
5712
|
"reflectToAttr": false,
|
|
5713
|
-
"docs": "How to control the alignment of the checkbox and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL
|
|
5713
|
+
"docs": "How to control the alignment of the checkbox and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL.\nSetting this property will change the checkbox `display` to `block`.",
|
|
5714
5714
|
"docsTags": [],
|
|
5715
|
-
"default": "'center'",
|
|
5716
5715
|
"values": [
|
|
5717
5716
|
{
|
|
5718
5717
|
"value": "center",
|
|
@@ -5721,9 +5720,12 @@
|
|
|
5721
5720
|
{
|
|
5722
5721
|
"value": "start",
|
|
5723
5722
|
"type": "string"
|
|
5723
|
+
},
|
|
5724
|
+
{
|
|
5725
|
+
"type": "undefined"
|
|
5724
5726
|
}
|
|
5725
5727
|
],
|
|
5726
|
-
"optional":
|
|
5728
|
+
"optional": true,
|
|
5727
5729
|
"required": false
|
|
5728
5730
|
},
|
|
5729
5731
|
{
|
|
@@ -5860,18 +5862,17 @@
|
|
|
5860
5862
|
},
|
|
5861
5863
|
{
|
|
5862
5864
|
"name": "justify",
|
|
5863
|
-
"type": "\"end\" | \"space-between\" | \"start\"",
|
|
5865
|
+
"type": "\"end\" | \"space-between\" | \"start\" | undefined",
|
|
5864
5866
|
"complexType": {
|
|
5865
5867
|
"original": "'start' | 'end' | 'space-between'",
|
|
5866
|
-
"resolved": "\"end\" | \"space-between\" | \"start\"",
|
|
5868
|
+
"resolved": "\"end\" | \"space-between\" | \"start\" | undefined",
|
|
5867
5869
|
"references": {}
|
|
5868
5870
|
},
|
|
5869
5871
|
"mutable": false,
|
|
5870
5872
|
"attr": "justify",
|
|
5871
5873
|
"reflectToAttr": false,
|
|
5872
|
-
"docs": "How to pack the label and checkbox within a line.\n`\"start\"`: The label and checkbox will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and checkbox will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and checkbox will appear on opposite\nends of the line with space between the two elements
|
|
5874
|
+
"docs": "How to pack the label and checkbox within a line.\n`\"start\"`: The label and checkbox will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and checkbox will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and checkbox will appear on opposite\nends of the line with space between the two elements.\nSetting this property will change the checkbox `display` to `block`.",
|
|
5873
5875
|
"docsTags": [],
|
|
5874
|
-
"default": "'space-between'",
|
|
5875
5876
|
"values": [
|
|
5876
5877
|
{
|
|
5877
5878
|
"value": "end",
|
|
@@ -5884,9 +5885,12 @@
|
|
|
5884
5885
|
{
|
|
5885
5886
|
"value": "start",
|
|
5886
5887
|
"type": "string"
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
"type": "undefined"
|
|
5887
5891
|
}
|
|
5888
5892
|
],
|
|
5889
|
-
"optional":
|
|
5893
|
+
"optional": true,
|
|
5890
5894
|
"required": false
|
|
5891
5895
|
},
|
|
5892
5896
|
{
|
|
@@ -31961,18 +31965,17 @@
|
|
|
31961
31965
|
"props": [
|
|
31962
31966
|
{
|
|
31963
31967
|
"name": "alignment",
|
|
31964
|
-
"type": "\"center\" | \"start\"",
|
|
31968
|
+
"type": "\"center\" | \"start\" | undefined",
|
|
31965
31969
|
"complexType": {
|
|
31966
31970
|
"original": "'start' | 'center'",
|
|
31967
|
-
"resolved": "\"center\" | \"start\"",
|
|
31971
|
+
"resolved": "\"center\" | \"start\" | undefined",
|
|
31968
31972
|
"references": {}
|
|
31969
31973
|
},
|
|
31970
31974
|
"mutable": false,
|
|
31971
31975
|
"attr": "alignment",
|
|
31972
31976
|
"reflectToAttr": false,
|
|
31973
|
-
"docs": "How to control the alignment of the toggle and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL
|
|
31977
|
+
"docs": "How to control the alignment of the toggle and label on the cross axis.\n`\"start\"`: The label and control will appear on the left of the cross axis in LTR, and on the right side in RTL.\n`\"center\"`: The label and control will appear at the center of the cross axis in both LTR and RTL.\nSetting this property will change the toggle `display` to `block`.",
|
|
31974
31978
|
"docsTags": [],
|
|
31975
|
-
"default": "'center'",
|
|
31976
31979
|
"values": [
|
|
31977
31980
|
{
|
|
31978
31981
|
"value": "center",
|
|
@@ -31981,9 +31984,12 @@
|
|
|
31981
31984
|
{
|
|
31982
31985
|
"value": "start",
|
|
31983
31986
|
"type": "string"
|
|
31987
|
+
},
|
|
31988
|
+
{
|
|
31989
|
+
"type": "undefined"
|
|
31984
31990
|
}
|
|
31985
31991
|
],
|
|
31986
|
-
"optional":
|
|
31992
|
+
"optional": true,
|
|
31987
31993
|
"required": false
|
|
31988
31994
|
},
|
|
31989
31995
|
{
|
|
@@ -32123,18 +32129,17 @@
|
|
|
32123
32129
|
},
|
|
32124
32130
|
{
|
|
32125
32131
|
"name": "justify",
|
|
32126
|
-
"type": "\"end\" | \"space-between\" | \"start\"",
|
|
32132
|
+
"type": "\"end\" | \"space-between\" | \"start\" | undefined",
|
|
32127
32133
|
"complexType": {
|
|
32128
32134
|
"original": "'start' | 'end' | 'space-between'",
|
|
32129
|
-
"resolved": "\"end\" | \"space-between\" | \"start\"",
|
|
32135
|
+
"resolved": "\"end\" | \"space-between\" | \"start\" | undefined",
|
|
32130
32136
|
"references": {}
|
|
32131
32137
|
},
|
|
32132
32138
|
"mutable": false,
|
|
32133
32139
|
"attr": "justify",
|
|
32134
32140
|
"reflectToAttr": false,
|
|
32135
|
-
"docs": "How to pack the label and toggle within a line.\n`\"start\"`: The label and toggle will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and toggle will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and toggle will appear on opposite\nends of the line with space between the two elements
|
|
32141
|
+
"docs": "How to pack the label and toggle within a line.\n`\"start\"`: The label and toggle will appear on the left in LTR and\non the right in RTL.\n`\"end\"`: The label and toggle will appear on the right in LTR and\non the left in RTL.\n`\"space-between\"`: The label and toggle will appear on opposite\nends of the line with space between the two elements.\nSetting this property will change the toggle `display` to `block`.",
|
|
32136
32142
|
"docsTags": [],
|
|
32137
|
-
"default": "'space-between'",
|
|
32138
32143
|
"values": [
|
|
32139
32144
|
{
|
|
32140
32145
|
"value": "end",
|
|
@@ -32147,9 +32152,12 @@
|
|
|
32147
32152
|
{
|
|
32148
32153
|
"value": "start",
|
|
32149
32154
|
"type": "string"
|
|
32155
|
+
},
|
|
32156
|
+
{
|
|
32157
|
+
"type": "undefined"
|
|
32150
32158
|
}
|
|
32151
32159
|
],
|
|
32152
|
-
"optional":
|
|
32160
|
+
"optional": true,
|
|
32153
32161
|
"required": false
|
|
32154
32162
|
},
|
|
32155
32163
|
{
|
|
@@ -6,10 +6,10 @@ import { i as inheritAriaAttributes, d as renderHiddenInput } from './helpers-da
|
|
|
6
6
|
import { c as createColorClasses, h as hostContext } from './theme-01f3f29c.js';
|
|
7
7
|
import { b as getIonMode } from './ionic-global-c81d82ab.js';
|
|
8
8
|
|
|
9
|
-
const checkboxIosCss = ":host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.125rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.375rem, 55.836px);--checkmark-width:1.5px}:host(.checkbox-disabled){opacity:0.3}";
|
|
9
|
+
const checkboxIosCss = ":host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-justify-space-between),:host(.checkbox-justify-start),:host(.checkbox-justify-end),:host(.checkbox-alignment-start),:host(.checkbox-alignment-center){display:block}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.125rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.375rem, 55.836px);--checkmark-width:1.5px}:host(.checkbox-disabled){opacity:0.3}";
|
|
10
10
|
const IonCheckboxIosStyle0 = checkboxIosCss;
|
|
11
11
|
|
|
12
|
-
const checkboxMdCss = ":host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}";
|
|
12
|
+
const checkboxMdCss = ":host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-justify-space-between),:host(.checkbox-justify-start),:host(.checkbox-justify-end),:host(.checkbox-alignment-start),:host(.checkbox-alignment-center){display:block}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}";
|
|
13
13
|
const IonCheckboxMdStyle0 = checkboxMdCss;
|
|
14
14
|
|
|
15
15
|
const Checkbox = class {
|
|
@@ -58,8 +58,8 @@ const Checkbox = class {
|
|
|
58
58
|
this.disabled = false;
|
|
59
59
|
this.value = 'on';
|
|
60
60
|
this.labelPlacement = 'start';
|
|
61
|
-
this.justify =
|
|
62
|
-
this.alignment =
|
|
61
|
+
this.justify = undefined;
|
|
62
|
+
this.alignment = undefined;
|
|
63
63
|
}
|
|
64
64
|
componentWillLoad() {
|
|
65
65
|
this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
|
|
@@ -74,20 +74,20 @@ const Checkbox = class {
|
|
|
74
74
|
const mode = getIonMode(this);
|
|
75
75
|
const path = getSVGPath(mode, indeterminate);
|
|
76
76
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: 'd7a07fbf130413eaa4622c07786e8a00723113eb', "aria-checked": indeterminate ? 'mixed' : `${checked}`, class: createColorClasses(color, {
|
|
78
78
|
[mode]: true,
|
|
79
79
|
'in-item': hostContext('ion-item', el),
|
|
80
80
|
'checkbox-checked': checked,
|
|
81
81
|
'checkbox-disabled': disabled,
|
|
82
82
|
'checkbox-indeterminate': indeterminate,
|
|
83
83
|
interactive: true,
|
|
84
|
-
[`checkbox-justify-${justify}`]:
|
|
85
|
-
[`checkbox-alignment-${alignment}`]:
|
|
84
|
+
[`checkbox-justify-${justify}`]: justify !== undefined,
|
|
85
|
+
[`checkbox-alignment-${alignment}`]: alignment !== undefined,
|
|
86
86
|
[`checkbox-label-placement-${labelPlacement}`]: true,
|
|
87
|
-
}), onClick: this.onClick }, h("label", { key: '
|
|
87
|
+
}), onClick: this.onClick }, h("label", { key: '99797589ed4ea7cbac53531c85b2d4a2dcd568c4', class: "checkbox-wrapper" }, h("input", Object.assign({ key: 'cc12fe7920ab23c6f21546f7b312b8f1f5671349', type: "checkbox", checked: checked ? true : undefined, disabled: disabled, id: inputId, onChange: this.toggleChecked, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, inheritedAttributes)), h("div", { key: '1b087f061da5abca6129d372503d8882b77e24be', class: {
|
|
88
88
|
'label-text-wrapper': true,
|
|
89
89
|
'label-text-wrapper-hidden': el.textContent === '',
|
|
90
|
-
}, part: "label" }, h("slot", { key: '
|
|
90
|
+
}, part: "label" }, h("slot", { key: 'bc84274c826fa1db1207230aa03bf5790afe2992' })), h("div", { key: '89e9396dc9215804bd8ac42e943a292d050ef8c5', class: "native-wrapper" }, h("svg", { key: '2aafac248c639074faaf17044d8d9204474a9b7b', class: "checkbox-icon", viewBox: "0 0 24 24", part: "container" }, path)))));
|
|
91
91
|
}
|
|
92
92
|
getSVGPath(mode, indeterminate) {
|
|
93
93
|
let path = indeterminate ? (h("path", { d: "M6 12L18 12", part: "mark" })) : (h("path", { d: "M5.9,12.5l3.8,3.8l8.8-8.8", part: "mark" }));
|
|
@@ -86,7 +86,7 @@ const Tabs = class {
|
|
|
86
86
|
async componentWillLoad() {
|
|
87
87
|
if (!this.useRouter) {
|
|
88
88
|
/**
|
|
89
|
-
* JavaScript
|
|
89
|
+
* JavaScript and StencilJS use `ion-router`, while
|
|
90
90
|
* the other frameworks use `ion-router-outlet`.
|
|
91
91
|
*
|
|
92
92
|
* If either component is present then tabs will not use
|
|
@@ -203,7 +203,7 @@ const Tabs = class {
|
|
|
203
203
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
204
204
|
}
|
|
205
205
|
render() {
|
|
206
|
-
return (h(Host, { key: '
|
|
206
|
+
return (h(Host, { key: 'eb094c9bd15b7777c53bd0bd6d225784fa472849', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: 'a516ca6915bf26e77eeeb0ff684c4fcc7d4420a7', name: "top" }), h("div", { key: 'dd2a32a072d77afe216abc4958c1d686405fb780', class: "tabs-inner" }, h("slot", { key: '222c20ba862068f5c78e7bbef4fa213499fb2fa5' })), h("slot", { key: '3e76dcb1b21873aa137d095c56131514054ead3a', name: "bottom" })));
|
|
207
207
|
}
|
|
208
208
|
get el() { return getElement(this); }
|
|
209
209
|
};
|