@ionic/core 7.3.4-dev.11699991837.1bc64f72 → 7.3.4-dev.11700516018.128deb56
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/button-active.js +1 -1
- package/components/checkbox.js +3 -6
- package/components/data.js +7 -31
- package/components/index.js +2 -2
- package/components/index2.js +429 -203
- package/components/index3.js +203 -429
- package/components/ion-datetime-button.js +0 -3
- package/components/ion-datetime.js +92 -132
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-menu.js +3 -3
- package/components/ion-modal.js +2 -2
- package/components/ion-nav.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher.js +3 -3
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-toggle.js +4 -7
- package/components/ion-toolbar.js +2 -2
- package/components/ios.transition.js +1 -1
- package/components/md.transition.js +1 -1
- package/components/picker-column.js +1 -1
- package/components/popover.js +1 -1
- package/components/radio.js +3 -6
- package/components/swipe-back.js +1 -1
- package/dist/cjs/{data-db832785.js → data-967b9c15.js} +7 -31
- package/dist/cjs/index.cjs.js +9 -10
- package/dist/cjs/ion-app_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-checkbox.cjs.entry.js +3 -5
- package/dist/cjs/ion-datetime-button.cjs.entry.js +1 -4
- package/dist/cjs/ion-datetime_3.cjs.entry.js +93 -132
- package/dist/cjs/ion-menu_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-radio_2.cjs.entry.js +3 -5
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -5
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.ios.css +0 -35
- package/dist/collection/components/checkbox/checkbox.js +4 -24
- package/dist/collection/components/checkbox/checkbox.md.css +0 -35
- package/dist/collection/components/checkbox/test/item/checkbox.e2e.js +0 -13
- package/dist/collection/components/checkbox/test/label/checkbox.e2e.js +0 -16
- package/dist/collection/components/datetime/datetime.ios.css +29 -32
- package/dist/collection/components/datetime/datetime.js +93 -137
- package/dist/collection/components/datetime/datetime.md.css +28 -20
- package/dist/collection/components/datetime/test/basic/datetime.e2e.js +0 -25
- package/dist/collection/components/datetime/test/color/datetime.e2e.js +1 -1
- package/dist/collection/components/datetime/test/custom/datetime.e2e.js +1 -27
- package/dist/collection/components/datetime/test/prefer-wheel/datetime.e2e.js +0 -15
- package/dist/collection/components/datetime/test/set-value/datetime.e2e.js +12 -9
- package/dist/collection/components/datetime/utils/data.js +6 -14
- package/dist/collection/components/datetime/utils/parse.js +1 -18
- package/dist/collection/components/datetime-button/datetime-button.js +0 -3
- package/dist/collection/components/menu/menu.ios.css +0 -94
- package/dist/collection/components/menu/menu.md.css +0 -94
- package/dist/collection/components/radio/radio.ios.css +0 -35
- package/dist/collection/components/radio/radio.js +4 -24
- package/dist/collection/components/radio/radio.md.css +0 -35
- package/dist/collection/components/radio/test/item/radio.e2e.js +0 -15
- package/dist/collection/components/radio/test/label-placement/radio.e2e.js +0 -20
- package/dist/collection/components/range/range.ios.css +1 -41
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/range/range.md.css +1 -41
- package/dist/collection/components/range/test/label/range.e2e.js +0 -48
- package/dist/collection/components/toggle/test/item/toggle.e2e.js +0 -15
- package/dist/collection/components/toggle/test/label/toggle.e2e.js +0 -16
- package/dist/collection/components/toggle/toggle.ios.css +1 -35
- package/dist/collection/components/toggle/toggle.js +4 -24
- package/dist/collection/components/toggle/toggle.md.css +1 -35
- package/dist/collection/components/toolbar/toolbar.ios.css +4 -2
- package/dist/collection/components/toolbar/toolbar.md.css +4 -2
- package/dist/collection/index.js +0 -1
- package/dist/docs.json +18 -147
- package/dist/esm/{data-009dbf15.js → data-4b448e3a.js} +7 -31
- package/dist/esm/index.js +2 -2
- package/dist/esm/ion-app_8.entry.js +2 -2
- package/dist/esm/ion-checkbox.entry.js +3 -5
- package/dist/esm/ion-datetime-button.entry.js +1 -4
- package/dist/esm/ion-datetime_3.entry.js +93 -132
- package/dist/esm/ion-menu_3.entry.js +2 -2
- package/dist/esm/ion-radio_2.entry.js +3 -5
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -5
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/data-4b448e3a.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.entry.js +1 -1
- package/dist/esm-es5/ion-range.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/html.html-data.json +4 -52
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0053fe81.system.entry.js +4 -0
- package/dist/ionic/p-06902103.system.js +1 -1
- package/dist/ionic/p-091cd81e.entry.js +4 -0
- package/dist/ionic/p-28f5715a.system.entry.js +4 -0
- package/dist/ionic/p-2cdcd6f2.entry.js +4 -0
- package/dist/ionic/{p-a34669bf.system.entry.js → p-45ee211b.system.entry.js} +1 -1
- package/dist/ionic/p-5009cb46.entry.js +4 -0
- package/dist/ionic/p-5b88f780.entry.js +4 -0
- package/dist/ionic/p-601fd53c.js +4 -0
- package/dist/ionic/p-8843b046.system.js +4 -0
- package/dist/ionic/p-98b618ce.system.entry.js +4 -0
- package/dist/ionic/p-b1e8f045.entry.js +4 -0
- package/dist/ionic/p-b3394798.system.entry.js +4 -0
- package/dist/ionic/p-b3cfc6e1.system.entry.js +4 -0
- package/dist/ionic/{p-f9567c67.entry.js → p-c759a704.entry.js} +1 -1
- package/dist/ionic/p-cc8910e7.system.js +4 -0
- package/dist/ionic/{p-67b891af.entry.js → p-d3b8aebf.entry.js} +1 -1
- package/dist/ionic/p-e53b8af4.system.entry.js +4 -0
- package/dist/ionic/p-f78e60a5.entry.js +4 -0
- package/dist/ionic/p-fd42994b.system.entry.js +4 -0
- package/dist/types/components/checkbox/checkbox.d.ts +1 -8
- package/dist/types/components/datetime/datetime.d.ts +10 -23
- package/dist/types/components/datetime/utils/data.d.ts +1 -1
- package/dist/types/components/datetime/utils/parse.d.ts +3 -3
- package/dist/types/components/radio/radio.d.ts +1 -8
- package/dist/types/components/range/range.d.ts +1 -2
- package/dist/types/components/toast/toast-interface.d.ts +0 -3
- package/dist/types/components/toggle/toggle.d.ts +1 -8
- package/dist/types/components.d.ts +16 -40
- package/dist/types/index.d.ts +0 -1
- package/dist/types/interface.d.ts +0 -1
- package/hydrate/index.js +114 -196
- package/package.json +2 -2
- package/dist/esm-es5/data-009dbf15.js +0 -4
- package/dist/ionic/p-1f4adf06.system.entry.js +0 -4
- package/dist/ionic/p-218b6f33.entry.js +0 -4
- package/dist/ionic/p-2da6ba37.system.entry.js +0 -4
- package/dist/ionic/p-40138199.entry.js +0 -4
- package/dist/ionic/p-44ef7224.system.js +0 -4
- package/dist/ionic/p-4ca1ce6b.system.entry.js +0 -4
- package/dist/ionic/p-51b165af.system.js +0 -4
- package/dist/ionic/p-57f0efcc.entry.js +0 -4
- package/dist/ionic/p-7cfd253c.js +0 -4
- package/dist/ionic/p-82f5c07e.system.entry.js +0 -4
- package/dist/ionic/p-86c5c320.entry.js +0 -4
- package/dist/ionic/p-90ec5785.system.entry.js +0 -4
- package/dist/ionic/p-af986299.system.entry.js +0 -4
- package/dist/ionic/p-b321c999.entry.js +0 -4
- package/dist/ionic/p-d8a0267b.system.entry.js +0 -4
- package/dist/ionic/p-f5c19164.entry.js +0 -4
|
@@ -40,17 +40,6 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
40
40
|
const range = page.locator('ion-range');
|
|
41
41
|
await expect(range).toHaveScreenshot(screenshot(`range-no-items-fixed`));
|
|
42
42
|
});
|
|
43
|
-
test('should render label above the range slider', async ({ page }) => {
|
|
44
|
-
await page.setContent(`
|
|
45
|
-
<div id="container" style="padding-inline-start: 20px;">
|
|
46
|
-
<ion-range label-placement="stacked">
|
|
47
|
-
<span slot="label">Volume</span>
|
|
48
|
-
</ion-range>
|
|
49
|
-
</div>
|
|
50
|
-
`, config);
|
|
51
|
-
const range = page.locator('#container');
|
|
52
|
-
await expect(range).toHaveScreenshot(screenshot(`range-no-items-stacked`));
|
|
53
|
-
});
|
|
54
43
|
});
|
|
55
44
|
test.describe('range: start and end items', () => {
|
|
56
45
|
test('should render a range with no visible label', async ({ page }) => {
|
|
@@ -96,17 +85,6 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
96
85
|
const range = page.locator('ion-range');
|
|
97
86
|
await expect(range).toHaveScreenshot(screenshot(`range-items-fixed`));
|
|
98
87
|
});
|
|
99
|
-
test('should render label above the range slider', async ({ page }) => {
|
|
100
|
-
await page.setContent(`
|
|
101
|
-
<ion-range label-placement="stacked">
|
|
102
|
-
<ion-icon name="volume-off" slot="start"></ion-icon>
|
|
103
|
-
<ion-icon name="volume-high" slot="end"></ion-icon>
|
|
104
|
-
<span slot="label">Volume</span>
|
|
105
|
-
</ion-range>
|
|
106
|
-
`, config);
|
|
107
|
-
const range = page.locator('ion-range');
|
|
108
|
-
await expect(range).toHaveScreenshot(screenshot(`range-items-stacked`));
|
|
109
|
-
});
|
|
110
88
|
});
|
|
111
89
|
test.describe('range: label prop', () => {
|
|
112
90
|
test('should render label in the start placement', async ({ page }) => {
|
|
@@ -124,15 +102,6 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
124
102
|
const range = page.locator('ion-range');
|
|
125
103
|
await expect(range).toHaveScreenshot(screenshot(`range-label-prop-fixed`));
|
|
126
104
|
});
|
|
127
|
-
test('should render label above the range slider', async ({ page }) => {
|
|
128
|
-
await page.setContent(`
|
|
129
|
-
<div id="container" style="padding-inline-start: 20px;">
|
|
130
|
-
<ion-range label-placement="stacked" label="Volume"></ion-range>
|
|
131
|
-
</div>
|
|
132
|
-
`, config);
|
|
133
|
-
const range = page.locator('#container');
|
|
134
|
-
await expect(range).toHaveScreenshot(screenshot(`range-label-prop-stacked`));
|
|
135
|
-
});
|
|
136
105
|
});
|
|
137
106
|
});
|
|
138
107
|
});
|
|
@@ -148,21 +117,4 @@ configs({ modes: ['md'], directions: ['ltr'] }).forEach(({ title, screenshot, co
|
|
|
148
117
|
await expect(range).toHaveScreenshot(screenshot(`range-label-truncate`));
|
|
149
118
|
});
|
|
150
119
|
});
|
|
151
|
-
test.describe(title('range: with pin'), () => {
|
|
152
|
-
test('should render pin below a stacked label', async ({ page }) => {
|
|
153
|
-
await page.setContent(`
|
|
154
|
-
<div id="container" style="padding-inline-start: 20px;">
|
|
155
|
-
<ion-range label-placement="stacked" pin="true">
|
|
156
|
-
<span slot="label">Volume</span>
|
|
157
|
-
</ion-range>
|
|
158
|
-
</div>
|
|
159
|
-
`, config);
|
|
160
|
-
const container = page.locator('#container');
|
|
161
|
-
const range = page.locator('ion-range');
|
|
162
|
-
const knob = range.locator('.range-knob-handle');
|
|
163
|
-
// Force the pin to show
|
|
164
|
-
await knob.evaluate((el) => el.classList.add('ion-focused'));
|
|
165
|
-
await expect(container).toHaveScreenshot(screenshot(`range-stacked-pin`));
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
120
|
});
|
|
@@ -58,19 +58,4 @@ configs({ directions: ['ltr'], modes: ['md'] }).forEach(({ title, screenshot, co
|
|
|
58
58
|
await expect(list).toHaveScreenshot(screenshot(`toggle-long-label-in-item`));
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
-
test.describe(title('toggle: stacked label in item'), () => {
|
|
62
|
-
test('should render margins correctly when using stacked label in item', async ({ page }) => {
|
|
63
|
-
await page.setContent(`
|
|
64
|
-
<ion-list>
|
|
65
|
-
<ion-radio-group>
|
|
66
|
-
<ion-item>
|
|
67
|
-
<ion-toggle label-placement="stacked">Enable Notifications</ion-toggle>
|
|
68
|
-
</ion-item>
|
|
69
|
-
</ion-radio-group>
|
|
70
|
-
</ion-list>
|
|
71
|
-
`, config);
|
|
72
|
-
const list = page.locator('ion-list');
|
|
73
|
-
await expect(list).toHaveScreenshot(screenshot(`toggle-stacked-label-in-item`));
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
61
|
});
|
|
@@ -90,20 +90,4 @@ configs().forEach(({ title, screenshot, config }) => {
|
|
|
90
90
|
await expect(toggle).toHaveScreenshot(screenshot(`toggle-label-fixed-justify-space-between`));
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
|
-
test.describe(title('toggle: stacked placement'), () => {
|
|
94
|
-
test('should align the label to the start of the container in the stacked position', async ({ page }) => {
|
|
95
|
-
await page.setContent(`
|
|
96
|
-
<ion-toggle label-placement="stacked" alignment="start" style="width: 200px">This is a long label</ion-toggle>
|
|
97
|
-
`, config);
|
|
98
|
-
const toggle = page.locator('ion-toggle');
|
|
99
|
-
await expect(toggle).toHaveScreenshot(screenshot(`toggle-label-stacked-align-start`));
|
|
100
|
-
});
|
|
101
|
-
test('should align the label to the center of the container in the stacked position', async ({ page }) => {
|
|
102
|
-
await page.setContent(`
|
|
103
|
-
<ion-toggle label-placement="stacked" alignment="center" style="width: 200px">This is a long label</ion-toggle>
|
|
104
|
-
`, config);
|
|
105
|
-
const toggle = page.locator('ion-toggle');
|
|
106
|
-
await expect(toggle).toHaveScreenshot(screenshot(`toggle-label-stacked-align-center`));
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
93
|
});
|
|
@@ -123,6 +123,7 @@ input {
|
|
|
123
123
|
display: flex;
|
|
124
124
|
position: relative;
|
|
125
125
|
flex-grow: 1;
|
|
126
|
+
align-items: center;
|
|
126
127
|
height: inherit;
|
|
127
128
|
transition: background-color 15ms linear;
|
|
128
129
|
cursor: inherit;
|
|
@@ -145,15 +146,6 @@ input {
|
|
|
145
146
|
margin-bottom: 10px;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper {
|
|
149
|
-
margin-top: 10px;
|
|
150
|
-
margin-bottom: 16px;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:host(.in-item.toggle-label-placement-stacked) .native-wrapper {
|
|
154
|
-
margin-bottom: 10px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
149
|
/**
|
|
158
150
|
* If no label text is placed into the slot
|
|
159
151
|
* then the element should be hidden otherwise
|
|
@@ -180,14 +172,6 @@ input {
|
|
|
180
172
|
justify-content: end;
|
|
181
173
|
}
|
|
182
174
|
|
|
183
|
-
:host(.toggle-alignment-start) .toggle-wrapper {
|
|
184
|
-
align-items: start;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:host(.toggle-alignment-center) .toggle-wrapper {
|
|
188
|
-
align-items: center;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
175
|
/**
|
|
192
176
|
* Label is on the left of the input in LTR and
|
|
193
177
|
* on the right in RTL.
|
|
@@ -251,24 +235,6 @@ input {
|
|
|
251
235
|
max-width: 200px;
|
|
252
236
|
}
|
|
253
237
|
|
|
254
|
-
/**
|
|
255
|
-
* Label is on top of the toggle.
|
|
256
|
-
*/
|
|
257
|
-
:host(.toggle-label-placement-stacked) .toggle-wrapper {
|
|
258
|
-
flex-direction: column;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
:host(.toggle-label-placement-stacked) .label-text-wrapper {
|
|
262
|
-
/**
|
|
263
|
-
* The margin between the label and
|
|
264
|
-
* the toggle should be on the bottom
|
|
265
|
-
* when the label sits on top.
|
|
266
|
-
*/
|
|
267
|
-
margin-left: 0;
|
|
268
|
-
margin-right: 0;
|
|
269
|
-
margin-bottom: 16px;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
238
|
.toggle-icon-wrapper {
|
|
273
239
|
display: flex;
|
|
274
240
|
position: relative;
|
|
@@ -71,7 +71,6 @@ export class Toggle {
|
|
|
71
71
|
this.labelPlacement = 'start';
|
|
72
72
|
this.legacy = undefined;
|
|
73
73
|
this.justify = 'space-between';
|
|
74
|
-
this.alignment = 'center';
|
|
75
74
|
}
|
|
76
75
|
disabledChanged() {
|
|
77
76
|
this.emitStyle();
|
|
@@ -169,7 +168,7 @@ export class Toggle {
|
|
|
169
168
|
return legacyFormController.hasLegacyControl() ? this.renderLegacyToggle() : this.renderToggle();
|
|
170
169
|
}
|
|
171
170
|
renderToggle() {
|
|
172
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name
|
|
171
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name } = this;
|
|
173
172
|
const mode = getIonMode(this);
|
|
174
173
|
const value = this.getValue();
|
|
175
174
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
@@ -181,7 +180,6 @@ export class Toggle {
|
|
|
181
180
|
'toggle-checked': checked,
|
|
182
181
|
'toggle-disabled': disabled,
|
|
183
182
|
[`toggle-justify-${justify}`]: true,
|
|
184
|
-
[`toggle-alignment-${alignment}`]: true,
|
|
185
183
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
186
184
|
[`toggle-${rtl}`]: true,
|
|
187
185
|
}) }, h("label", { class: "toggle-wrapper" }, h("input", Object.assign({ 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", { class: {
|
|
@@ -354,15 +352,15 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
354
352
|
"type": "string",
|
|
355
353
|
"mutable": false,
|
|
356
354
|
"complexType": {
|
|
357
|
-
"original": "'start' | 'end' | 'fixed'
|
|
358
|
-
"resolved": "\"end\" | \"fixed\" | \"
|
|
355
|
+
"original": "'start' | 'end' | 'fixed'",
|
|
356
|
+
"resolved": "\"end\" | \"fixed\" | \"start\"",
|
|
359
357
|
"references": {}
|
|
360
358
|
},
|
|
361
359
|
"required": false,
|
|
362
360
|
"optional": false,
|
|
363
361
|
"docs": {
|
|
364
362
|
"tags": [],
|
|
365
|
-
"text": "Where to place the label relative to the input.\n`\"start\"`: The label will appear to the left of the toggle in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the toggle in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\")
|
|
363
|
+
"text": "Where to place the label relative to the input.\n`\"start\"`: The label will appear to the left of the toggle in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the toggle in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\")."
|
|
366
364
|
},
|
|
367
365
|
"attribute": "label-placement",
|
|
368
366
|
"reflect": false,
|
|
@@ -402,24 +400,6 @@ Developers can dismiss this warning by removing their usage of the "legacy" prop
|
|
|
402
400
|
"attribute": "justify",
|
|
403
401
|
"reflect": false,
|
|
404
402
|
"defaultValue": "'space-between'"
|
|
405
|
-
},
|
|
406
|
-
"alignment": {
|
|
407
|
-
"type": "string",
|
|
408
|
-
"mutable": false,
|
|
409
|
-
"complexType": {
|
|
410
|
-
"original": "'start' | 'center'",
|
|
411
|
-
"resolved": "\"center\" | \"start\"",
|
|
412
|
-
"references": {}
|
|
413
|
-
},
|
|
414
|
-
"required": false,
|
|
415
|
-
"optional": false,
|
|
416
|
-
"docs": {
|
|
417
|
-
"tags": [],
|
|
418
|
-
"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."
|
|
419
|
-
},
|
|
420
|
-
"attribute": "alignment",
|
|
421
|
-
"reflect": false,
|
|
422
|
-
"defaultValue": "'center'"
|
|
423
403
|
}
|
|
424
404
|
};
|
|
425
405
|
}
|
|
@@ -123,6 +123,7 @@ input {
|
|
|
123
123
|
display: flex;
|
|
124
124
|
position: relative;
|
|
125
125
|
flex-grow: 1;
|
|
126
|
+
align-items: center;
|
|
126
127
|
height: inherit;
|
|
127
128
|
transition: background-color 15ms linear;
|
|
128
129
|
cursor: inherit;
|
|
@@ -145,15 +146,6 @@ input {
|
|
|
145
146
|
margin-bottom: 10px;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper {
|
|
149
|
-
margin-top: 10px;
|
|
150
|
-
margin-bottom: 16px;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
:host(.in-item.toggle-label-placement-stacked) .native-wrapper {
|
|
154
|
-
margin-bottom: 10px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
149
|
/**
|
|
158
150
|
* If no label text is placed into the slot
|
|
159
151
|
* then the element should be hidden otherwise
|
|
@@ -180,14 +172,6 @@ input {
|
|
|
180
172
|
justify-content: end;
|
|
181
173
|
}
|
|
182
174
|
|
|
183
|
-
:host(.toggle-alignment-start) .toggle-wrapper {
|
|
184
|
-
align-items: start;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:host(.toggle-alignment-center) .toggle-wrapper {
|
|
188
|
-
align-items: center;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
175
|
/**
|
|
192
176
|
* Label is on the left of the input in LTR and
|
|
193
177
|
* on the right in RTL.
|
|
@@ -251,24 +235,6 @@ input {
|
|
|
251
235
|
max-width: 200px;
|
|
252
236
|
}
|
|
253
237
|
|
|
254
|
-
/**
|
|
255
|
-
* Label is on top of the toggle.
|
|
256
|
-
*/
|
|
257
|
-
:host(.toggle-label-placement-stacked) .toggle-wrapper {
|
|
258
|
-
flex-direction: column;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
:host(.toggle-label-placement-stacked) .label-text-wrapper {
|
|
262
|
-
/**
|
|
263
|
-
* The margin between the label and
|
|
264
|
-
* the toggle should be on the bottom
|
|
265
|
-
* when the label sits on top.
|
|
266
|
-
*/
|
|
267
|
-
margin-left: 0;
|
|
268
|
-
margin-right: 0;
|
|
269
|
-
margin-bottom: 16px;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
238
|
.toggle-icon-wrapper {
|
|
273
239
|
display: flex;
|
|
274
240
|
position: relative;
|
|
@@ -23,11 +23,13 @@
|
|
|
23
23
|
--opacity-scale: 1;
|
|
24
24
|
-moz-osx-font-smoothing: grayscale;
|
|
25
25
|
-webkit-font-smoothing: antialiased;
|
|
26
|
+
-webkit-padding-start: var(--ion-safe-area-left);
|
|
27
|
+
padding-inline-start: var(--ion-safe-area-left);
|
|
28
|
+
-webkit-padding-end: var(--ion-safe-area-right);
|
|
29
|
+
padding-inline-end: var(--ion-safe-area-right);
|
|
26
30
|
display: block;
|
|
27
31
|
position: relative;
|
|
28
32
|
width: 100%;
|
|
29
|
-
padding-right: var(--ion-safe-area-right);
|
|
30
|
-
padding-left: var(--ion-safe-area-left);
|
|
31
33
|
color: var(--color);
|
|
32
34
|
font-family: var(--ion-font-family, inherit);
|
|
33
35
|
contain: content;
|
|
@@ -23,11 +23,13 @@
|
|
|
23
23
|
--opacity-scale: 1;
|
|
24
24
|
-moz-osx-font-smoothing: grayscale;
|
|
25
25
|
-webkit-font-smoothing: antialiased;
|
|
26
|
+
-webkit-padding-start: var(--ion-safe-area-left);
|
|
27
|
+
padding-inline-start: var(--ion-safe-area-left);
|
|
28
|
+
-webkit-padding-end: var(--ion-safe-area-right);
|
|
29
|
+
padding-inline-end: var(--ion-safe-area-right);
|
|
26
30
|
display: block;
|
|
27
31
|
position: relative;
|
|
28
32
|
width: 100%;
|
|
29
|
-
padding-right: var(--ion-safe-area-right);
|
|
30
|
-
padding-left: var(--ion-safe-area-left);
|
|
31
33
|
color: var(--color);
|
|
32
34
|
font-family: var(--ion-font-family, inherit);
|
|
33
35
|
contain: content;
|
package/dist/collection/index.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import "ionicons";
|
|
5
5
|
export { createAnimation } from './utils/animation/animation';
|
|
6
|
-
export { getIonPageElement } from './utils/transition';
|
|
7
6
|
export { iosTransitionAnimation } from './utils/transition/ios.transition';
|
|
8
7
|
export { mdTransitionAnimation } from './utils/transition/md.transition';
|
|
9
8
|
export { getTimeGivenProgression } from './utils/animation/cubic-bezier';
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2023-11-
|
|
2
|
+
"timestamp": "2023-11-20T21:35:26",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.2.0",
|
|
@@ -4959,33 +4959,6 @@
|
|
|
4959
4959
|
],
|
|
4960
4960
|
"usage": {},
|
|
4961
4961
|
"props": [
|
|
4962
|
-
{
|
|
4963
|
-
"name": "alignment",
|
|
4964
|
-
"type": "\"center\" | \"start\"",
|
|
4965
|
-
"complexType": {
|
|
4966
|
-
"original": "'start' | 'center'",
|
|
4967
|
-
"resolved": "\"center\" | \"start\"",
|
|
4968
|
-
"references": {}
|
|
4969
|
-
},
|
|
4970
|
-
"mutable": false,
|
|
4971
|
-
"attr": "alignment",
|
|
4972
|
-
"reflectToAttr": false,
|
|
4973
|
-
"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.",
|
|
4974
|
-
"docsTags": [],
|
|
4975
|
-
"default": "'center'",
|
|
4976
|
-
"values": [
|
|
4977
|
-
{
|
|
4978
|
-
"value": "center",
|
|
4979
|
-
"type": "string"
|
|
4980
|
-
},
|
|
4981
|
-
{
|
|
4982
|
-
"value": "start",
|
|
4983
|
-
"type": "string"
|
|
4984
|
-
}
|
|
4985
|
-
],
|
|
4986
|
-
"optional": false,
|
|
4987
|
-
"required": false
|
|
4988
|
-
},
|
|
4989
4962
|
{
|
|
4990
4963
|
"name": "checked",
|
|
4991
4964
|
"type": "boolean",
|
|
@@ -5151,16 +5124,16 @@
|
|
|
5151
5124
|
},
|
|
5152
5125
|
{
|
|
5153
5126
|
"name": "labelPlacement",
|
|
5154
|
-
"type": "\"end\" | \"fixed\" | \"
|
|
5127
|
+
"type": "\"end\" | \"fixed\" | \"start\"",
|
|
5155
5128
|
"complexType": {
|
|
5156
|
-
"original": "'start' | 'end' | 'fixed'
|
|
5157
|
-
"resolved": "\"end\" | \"fixed\" | \"
|
|
5129
|
+
"original": "'start' | 'end' | 'fixed'",
|
|
5130
|
+
"resolved": "\"end\" | \"fixed\" | \"start\"",
|
|
5158
5131
|
"references": {}
|
|
5159
5132
|
},
|
|
5160
5133
|
"mutable": false,
|
|
5161
5134
|
"attr": "label-placement",
|
|
5162
5135
|
"reflectToAttr": false,
|
|
5163
|
-
"docs": "Where to place the label relative to the checkbox.\n`\"start\"`: The label will appear to the left of the checkbox in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the checkbox in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\")
|
|
5136
|
+
"docs": "Where to place the label relative to the checkbox.\n`\"start\"`: The label will appear to the left of the checkbox in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the checkbox in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\").",
|
|
5164
5137
|
"docsTags": [],
|
|
5165
5138
|
"default": "'start'",
|
|
5166
5139
|
"values": [
|
|
@@ -5172,10 +5145,6 @@
|
|
|
5172
5145
|
"value": "fixed",
|
|
5173
5146
|
"type": "string"
|
|
5174
5147
|
},
|
|
5175
|
-
{
|
|
5176
|
-
"value": "stacked",
|
|
5177
|
-
"type": "string"
|
|
5178
|
-
},
|
|
5179
5148
|
{
|
|
5180
5149
|
"value": "start",
|
|
5181
5150
|
"type": "string"
|
|
@@ -6839,22 +6808,6 @@
|
|
|
6839
6808
|
{
|
|
6840
6809
|
"name": "part",
|
|
6841
6810
|
"text": "month-year-button - The button that opens the month/year picker when\nusing a grid style layout."
|
|
6842
|
-
},
|
|
6843
|
-
{
|
|
6844
|
-
"name": "part",
|
|
6845
|
-
"text": "calendar-day - The individual buttons that display a day inside of the datetime\ncalendar."
|
|
6846
|
-
},
|
|
6847
|
-
{
|
|
6848
|
-
"name": "part",
|
|
6849
|
-
"text": "calendar-day active - The currently selected calendar day."
|
|
6850
|
-
},
|
|
6851
|
-
{
|
|
6852
|
-
"name": "part",
|
|
6853
|
-
"text": "calendar-day today - The calendar day that contains the current day."
|
|
6854
|
-
},
|
|
6855
|
-
{
|
|
6856
|
-
"name": "part",
|
|
6857
|
-
"text": "calendar-day disabled - The calendar day that is disabled."
|
|
6858
6811
|
}
|
|
6859
6812
|
],
|
|
6860
6813
|
"usage": {},
|
|
@@ -7875,22 +7828,6 @@
|
|
|
7875
7828
|
}
|
|
7876
7829
|
],
|
|
7877
7830
|
"parts": [
|
|
7878
|
-
{
|
|
7879
|
-
"name": "calendar-day",
|
|
7880
|
-
"docs": "The individual buttons that display a day inside of the datetime\ncalendar."
|
|
7881
|
-
},
|
|
7882
|
-
{
|
|
7883
|
-
"name": "calendar-day active",
|
|
7884
|
-
"docs": "The currently selected calendar day."
|
|
7885
|
-
},
|
|
7886
|
-
{
|
|
7887
|
-
"name": "calendar-day disabled",
|
|
7888
|
-
"docs": "The calendar day that is disabled."
|
|
7889
|
-
},
|
|
7890
|
-
{
|
|
7891
|
-
"name": "calendar-day today",
|
|
7892
|
-
"docs": "The calendar day that contains the current day."
|
|
7893
|
-
},
|
|
7894
7831
|
{
|
|
7895
7832
|
"name": "month-year-button",
|
|
7896
7833
|
"docs": "The button that opens the month/year picker when\nusing a grid style layout."
|
|
@@ -19317,33 +19254,6 @@
|
|
|
19317
19254
|
],
|
|
19318
19255
|
"usage": {},
|
|
19319
19256
|
"props": [
|
|
19320
|
-
{
|
|
19321
|
-
"name": "alignment",
|
|
19322
|
-
"type": "\"center\" | \"start\"",
|
|
19323
|
-
"complexType": {
|
|
19324
|
-
"original": "'start' | 'center'",
|
|
19325
|
-
"resolved": "\"center\" | \"start\"",
|
|
19326
|
-
"references": {}
|
|
19327
|
-
},
|
|
19328
|
-
"mutable": false,
|
|
19329
|
-
"attr": "alignment",
|
|
19330
|
-
"reflectToAttr": false,
|
|
19331
|
-
"docs": "How to control the alignment of the radio 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.",
|
|
19332
|
-
"docsTags": [],
|
|
19333
|
-
"default": "'center'",
|
|
19334
|
-
"values": [
|
|
19335
|
-
{
|
|
19336
|
-
"value": "center",
|
|
19337
|
-
"type": "string"
|
|
19338
|
-
},
|
|
19339
|
-
{
|
|
19340
|
-
"value": "start",
|
|
19341
|
-
"type": "string"
|
|
19342
|
-
}
|
|
19343
|
-
],
|
|
19344
|
-
"optional": false,
|
|
19345
|
-
"required": false
|
|
19346
|
-
},
|
|
19347
19257
|
{
|
|
19348
19258
|
"name": "color",
|
|
19349
19259
|
"type": "\"danger\" | \"dark\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | string & Record<never, never> | undefined",
|
|
@@ -19465,16 +19375,16 @@
|
|
|
19465
19375
|
},
|
|
19466
19376
|
{
|
|
19467
19377
|
"name": "labelPlacement",
|
|
19468
|
-
"type": "\"end\" | \"fixed\" | \"
|
|
19378
|
+
"type": "\"end\" | \"fixed\" | \"start\"",
|
|
19469
19379
|
"complexType": {
|
|
19470
|
-
"original": "'start' | 'end' | 'fixed'
|
|
19471
|
-
"resolved": "\"end\" | \"fixed\" | \"
|
|
19380
|
+
"original": "'start' | 'end' | 'fixed'",
|
|
19381
|
+
"resolved": "\"end\" | \"fixed\" | \"start\"",
|
|
19472
19382
|
"references": {}
|
|
19473
19383
|
},
|
|
19474
19384
|
"mutable": false,
|
|
19475
19385
|
"attr": "label-placement",
|
|
19476
19386
|
"reflectToAttr": false,
|
|
19477
|
-
"docs": "Where to place the label relative to the radio.\n`\"start\"`: The label will appear to the left of the radio in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the radio in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\")
|
|
19387
|
+
"docs": "Where to place the label relative to the radio.\n`\"start\"`: The label will appear to the left of the radio in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the radio in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\").",
|
|
19478
19388
|
"docsTags": [],
|
|
19479
19389
|
"default": "'start'",
|
|
19480
19390
|
"values": [
|
|
@@ -19486,10 +19396,6 @@
|
|
|
19486
19396
|
"value": "fixed",
|
|
19487
19397
|
"type": "string"
|
|
19488
19398
|
},
|
|
19489
|
-
{
|
|
19490
|
-
"value": "stacked",
|
|
19491
|
-
"type": "string"
|
|
19492
|
-
},
|
|
19493
19399
|
{
|
|
19494
19400
|
"value": "start",
|
|
19495
19401
|
"type": "string"
|
|
@@ -20018,16 +19924,16 @@
|
|
|
20018
19924
|
},
|
|
20019
19925
|
{
|
|
20020
19926
|
"name": "labelPlacement",
|
|
20021
|
-
"type": "\"end\" | \"fixed\" | \"
|
|
19927
|
+
"type": "\"end\" | \"fixed\" | \"start\"",
|
|
20022
19928
|
"complexType": {
|
|
20023
|
-
"original": "'start' | 'end' | 'fixed'
|
|
20024
|
-
"resolved": "\"end\" | \"fixed\" | \"
|
|
19929
|
+
"original": "'start' | 'end' | 'fixed'",
|
|
19930
|
+
"resolved": "\"end\" | \"fixed\" | \"start\"",
|
|
20025
19931
|
"references": {}
|
|
20026
19932
|
},
|
|
20027
19933
|
"mutable": false,
|
|
20028
19934
|
"attr": "label-placement",
|
|
20029
19935
|
"reflectToAttr": false,
|
|
20030
|
-
"docs": "Where to place the label relative to the range.\n`\"start\"`: The label will appear to the left of the range in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the range in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\")
|
|
19936
|
+
"docs": "Where to place the label relative to the range.\n`\"start\"`: The label will appear to the left of the range in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the range in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\").",
|
|
20031
19937
|
"docsTags": [],
|
|
20032
19938
|
"default": "'start'",
|
|
20033
19939
|
"values": [
|
|
@@ -20039,10 +19945,6 @@
|
|
|
20039
19945
|
"value": "fixed",
|
|
20040
19946
|
"type": "string"
|
|
20041
19947
|
},
|
|
20042
|
-
{
|
|
20043
|
-
"value": "stacked",
|
|
20044
|
-
"type": "string"
|
|
20045
|
-
},
|
|
20046
19948
|
{
|
|
20047
19949
|
"value": "start",
|
|
20048
19950
|
"type": "string"
|
|
@@ -28220,33 +28122,6 @@
|
|
|
28220
28122
|
],
|
|
28221
28123
|
"usage": {},
|
|
28222
28124
|
"props": [
|
|
28223
|
-
{
|
|
28224
|
-
"name": "alignment",
|
|
28225
|
-
"type": "\"center\" | \"start\"",
|
|
28226
|
-
"complexType": {
|
|
28227
|
-
"original": "'start' | 'center'",
|
|
28228
|
-
"resolved": "\"center\" | \"start\"",
|
|
28229
|
-
"references": {}
|
|
28230
|
-
},
|
|
28231
|
-
"mutable": false,
|
|
28232
|
-
"attr": "alignment",
|
|
28233
|
-
"reflectToAttr": false,
|
|
28234
|
-
"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.",
|
|
28235
|
-
"docsTags": [],
|
|
28236
|
-
"default": "'center'",
|
|
28237
|
-
"values": [
|
|
28238
|
-
{
|
|
28239
|
-
"value": "center",
|
|
28240
|
-
"type": "string"
|
|
28241
|
-
},
|
|
28242
|
-
{
|
|
28243
|
-
"value": "start",
|
|
28244
|
-
"type": "string"
|
|
28245
|
-
}
|
|
28246
|
-
],
|
|
28247
|
-
"optional": false,
|
|
28248
|
-
"required": false
|
|
28249
|
-
},
|
|
28250
28125
|
{
|
|
28251
28126
|
"name": "checked",
|
|
28252
28127
|
"type": "boolean",
|
|
@@ -28415,16 +28290,16 @@
|
|
|
28415
28290
|
},
|
|
28416
28291
|
{
|
|
28417
28292
|
"name": "labelPlacement",
|
|
28418
|
-
"type": "\"end\" | \"fixed\" | \"
|
|
28293
|
+
"type": "\"end\" | \"fixed\" | \"start\"",
|
|
28419
28294
|
"complexType": {
|
|
28420
|
-
"original": "'start' | 'end' | 'fixed'
|
|
28421
|
-
"resolved": "\"end\" | \"fixed\" | \"
|
|
28295
|
+
"original": "'start' | 'end' | 'fixed'",
|
|
28296
|
+
"resolved": "\"end\" | \"fixed\" | \"start\"",
|
|
28422
28297
|
"references": {}
|
|
28423
28298
|
},
|
|
28424
28299
|
"mutable": false,
|
|
28425
28300
|
"attr": "label-placement",
|
|
28426
28301
|
"reflectToAttr": false,
|
|
28427
|
-
"docs": "Where to place the label relative to the input.\n`\"start\"`: The label will appear to the left of the toggle in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the toggle in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\")
|
|
28302
|
+
"docs": "Where to place the label relative to the input.\n`\"start\"`: The label will appear to the left of the toggle in LTR and to the right in RTL.\n`\"end\"`: The label will appear to the right of the toggle in LTR and to the left in RTL.\n`\"fixed\"`: The label has the same behavior as `\"start\"` except it also has a fixed width. Long text will be truncated with ellipses (\"...\").",
|
|
28428
28303
|
"docsTags": [],
|
|
28429
28304
|
"default": "'start'",
|
|
28430
28305
|
"values": [
|
|
@@ -28436,10 +28311,6 @@
|
|
|
28436
28311
|
"value": "fixed",
|
|
28437
28312
|
"type": "string"
|
|
28438
28313
|
},
|
|
28439
|
-
{
|
|
28440
|
-
"value": "stacked",
|
|
28441
|
-
"type": "string"
|
|
28442
|
-
},
|
|
28443
28314
|
{
|
|
28444
28315
|
"value": "start",
|
|
28445
28316
|
"type": "string"
|
|
@@ -29286,7 +29157,7 @@
|
|
|
29286
29157
|
"path": "src/components/toast/toast-interface.ts"
|
|
29287
29158
|
},
|
|
29288
29159
|
"src/components/toast/toast-interface.ts::ToastButton": {
|
|
29289
|
-
"declaration": "export interface ToastButton {\n text?: string;\n icon?: string;\n side?: 'start' | 'end';\n role?: 'cancel' | string;\n
|
|
29160
|
+
"declaration": "export interface ToastButton {\n text?: string;\n icon?: string;\n side?: 'start' | 'end';\n role?: 'cancel' | string;\n cssClass?: string | string[];\n htmlAttributes?: { [key: string]: any };\n handler?: () => boolean | void | Promise<boolean | void>;\n}",
|
|
29290
29161
|
"docstring": "",
|
|
29291
29162
|
"path": "src/components/toast/toast-interface.ts"
|
|
29292
29163
|
},
|