@ionic/core 8.8.4-dev.11776186452.1cc0af05 → 8.8.4-dev.11776330355.18181725
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-infinite-scroll-content.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-range.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-BGHaEUgp.js +4 -0
- package/components/p-BR9Yxas9.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-Ch9P0ikq.js +4 -0
- package/components/{p-ZRp3l6Dk.js → p-CoarhFWH.js} +1 -1
- package/components/p-iwGbwewM.js +4 -0
- package/dist/cjs/ion-action-sheet.cjs.entry.js +8 -23
- package/dist/cjs/ion-alert.cjs.entry.js +24 -42
- 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-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-range.cjs.entry.js +8 -5
- package/dist/cjs/ion-select-modal.cjs.entry.js +26 -59
- package/dist/cjs/ion-select_3.cjs.entry.js +47 -190
- 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 +5 -5
- 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 +2 -2
- 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/collection/components/action-sheet/action-sheet.ios.css +0 -84
- package/dist/collection/components/action-sheet/action-sheet.js +6 -21
- package/dist/collection/components/action-sheet/action-sheet.md.css +0 -84
- package/dist/collection/components/alert/alert.ios.css +0 -83
- package/dist/collection/components/alert/alert.js +22 -40
- package/dist/collection/components/alert/alert.md.css +0 -83
- package/dist/collection/components/range/range.ionic.css +14 -10
- package/dist/collection/components/range/range.js +7 -4
- 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 -56
- 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 -59
- 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.ionic.css +9 -0
- 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/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +1 -135
- package/dist/esm/ion-action-sheet.entry.js +8 -23
- package/dist/esm/ion-alert.entry.js +24 -42
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-range.entry.js +8 -5
- package/dist/esm/ion-select-modal.entry.js +26 -59
- package/dist/esm/ion-select_3.entry.js +48 -191
- 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 +5 -5
- 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 +2 -2
- 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/html.html-data.json +0 -4
- package/dist/ionic/ionic.esm.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-9e71982e.entry.js → p-49799a34.entry.js} +1 -1
- package/dist/ionic/p-4b0f5ffd.entry.js +4 -0
- package/dist/ionic/p-57aeb097.entry.js +4 -0
- package/dist/ionic/p-64341e32.entry.js +4 -0
- package/dist/ionic/p-6be2b2d3.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-9acd3fd3.entry.js +4 -0
- package/dist/ionic/{p-96ec9a10.entry.js → p-9b9b1450.entry.js} +1 -1
- package/dist/ionic/p-a283aa4d.entry.js +4 -0
- package/dist/ionic/{p-a1c8ba8c.entry.js → p-bc5713f7.entry.js} +1 -1
- package/dist/ionic/p-d954cd19.entry.js +4 -0
- package/dist/ionic/{p-37f895a8.entry.js → p-e9d6ce67.entry.js} +1 -1
- package/dist/types/components/select/select-interface.d.ts +0 -21
- package/dist/types/components/select/select.d.ts +0 -7
- package/dist/types/components/select-option/select-option.d.ts +0 -4
- package/dist/types/components.d.ts +0 -9
- package/hydrate/index.js +140 -401
- package/hydrate/index.mjs +140 -401
- package/package.json +1 -1
- package/components/p-BObmvbuR.js +0 -4
- package/components/p-C8Dne7pI.js +0 -4
- package/components/p-Cm7hjN9B.js +0 -4
- package/components/p-DQY5lHUa.js +0 -4
- package/components/p-D_uMZULz.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-003b40fc.entry.js +0 -4
- package/dist/ionic/p-27edb91a.entry.js +0 -4
- package/dist/ionic/p-35aa95dc.entry.js +0 -4
- package/dist/ionic/p-38897781.entry.js +0 -4
- package/dist/ionic/p-575061c0.entry.js +0 -4
- package/dist/ionic/p-71f28573.entry.js +0 -4
- package/dist/ionic/p-Dr3N4o63.js +0 -4
- package/dist/ionic/p-c3335fe0.entry.js +0 -4
- package/dist/types/utils/select-option-render.d.ts +0 -26
|
@@ -9,7 +9,6 @@ import { createLockController } from "../../utils/lock-controller";
|
|
|
9
9
|
import { printIonWarning } from "../../utils/logging/index";
|
|
10
10
|
import { createDelegateController, createTriggerController, BACKDROP, dismiss, eventMethod, isCancel, prepareOverlay, present, safeCall, setOverlayId, } from "../../utils/overlays";
|
|
11
11
|
import { sanitizeDOMString } from "../../utils/sanitization/index";
|
|
12
|
-
import { renderOptionLabel } from "../../utils/select-option-render";
|
|
13
12
|
import { getClassMap } from "../../utils/theme";
|
|
14
13
|
import { config } from "../../global/config";
|
|
15
14
|
import { getIonMode, getIonTheme } from "../../global/ionic-global";
|
|
@@ -173,7 +172,22 @@ export class Alert {
|
|
|
173
172
|
this.inputType = inputTypes.values().next().value;
|
|
174
173
|
this.processedInputs = inputs.map((i, index) => {
|
|
175
174
|
var _a;
|
|
176
|
-
return
|
|
175
|
+
return ({
|
|
176
|
+
type: i.type || 'text',
|
|
177
|
+
name: i.name || `${index}`,
|
|
178
|
+
placeholder: i.placeholder || '',
|
|
179
|
+
value: i.value,
|
|
180
|
+
label: i.label,
|
|
181
|
+
checked: !!i.checked,
|
|
182
|
+
disabled: !!i.disabled,
|
|
183
|
+
id: i.id || `alert-input-${this.overlayIndex}-${index}`,
|
|
184
|
+
handler: i.handler,
|
|
185
|
+
min: i.min,
|
|
186
|
+
max: i.max,
|
|
187
|
+
cssClass: (_a = i.cssClass) !== null && _a !== void 0 ? _a : '',
|
|
188
|
+
attributes: i.attributes || {},
|
|
189
|
+
tabindex: i.type === 'radio' && i !== focusable ? -1 : 0,
|
|
190
|
+
});
|
|
177
191
|
});
|
|
178
192
|
}
|
|
179
193
|
connectedCallback() {
|
|
@@ -361,46 +375,14 @@ export class Alert {
|
|
|
361
375
|
if (inputs.length === 0) {
|
|
362
376
|
return null;
|
|
363
377
|
}
|
|
364
|
-
return (h("div", { class: "alert-checkbox-group" }, inputs.map((i) => {
|
|
365
|
-
/**
|
|
366
|
-
* Cast to `SelectAlertInput` to access rich content
|
|
367
|
-
* fields (`startContent`, `endContent`, `description`)
|
|
368
|
-
* that are passed through from `ion-select` but not
|
|
369
|
-
* part of the public `AlertInput` interface.
|
|
370
|
-
*/
|
|
371
|
-
const richInput = i;
|
|
372
|
-
const optionLabelOptions = {
|
|
373
|
-
id: richInput.id,
|
|
374
|
-
label: richInput.label,
|
|
375
|
-
startContent: richInput.startContent,
|
|
376
|
-
endContent: richInput.endContent,
|
|
377
|
-
description: richInput.description,
|
|
378
|
-
};
|
|
379
|
-
return (h("button", { type: "button", onClick: () => this.cbClick(i), "aria-checked": `${i.checked}`, id: i.id, disabled: i.disabled, tabIndex: i.tabindex, role: "checkbox", class: Object.assign(Object.assign({}, getClassMap(i.cssClass)), { 'alert-tappable': true, 'alert-checkbox': true, 'alert-checkbox-button': true, 'ion-focusable': true, 'alert-checkbox-button-disabled': i.disabled || false }) }, h("div", { class: "alert-button-inner" }, h("div", { class: "alert-checkbox-icon" }, h("div", { class: "alert-checkbox-inner" })), renderOptionLabel(optionLabelOptions, 'alert-checkbox-label')), theme === 'md' && h("ion-ripple-effect", null)));
|
|
380
|
-
})));
|
|
378
|
+
return (h("div", { class: "alert-checkbox-group" }, inputs.map((i) => (h("button", { type: "button", onClick: () => this.cbClick(i), "aria-checked": `${i.checked}`, id: i.id, disabled: i.disabled, tabIndex: i.tabindex, role: "checkbox", class: Object.assign(Object.assign({}, getClassMap(i.cssClass)), { 'alert-tappable': true, 'alert-checkbox': true, 'alert-checkbox-button': true, 'ion-focusable': true, 'alert-checkbox-button-disabled': i.disabled || false }) }, h("div", { class: "alert-button-inner" }, h("div", { class: "alert-checkbox-icon" }, h("div", { class: "alert-checkbox-inner" })), h("div", { class: "alert-checkbox-label" }, i.label)), theme === 'md' && h("ion-ripple-effect", null))))));
|
|
381
379
|
}
|
|
382
380
|
renderRadio() {
|
|
383
381
|
const inputs = this.processedInputs;
|
|
384
382
|
if (inputs.length === 0) {
|
|
385
383
|
return null;
|
|
386
384
|
}
|
|
387
|
-
return (h("div", { class: "alert-radio-group", role: "radiogroup", "aria-activedescendant": this.activeId }, inputs.map((i) => {
|
|
388
|
-
/**
|
|
389
|
-
* Cast to `SelectAlertInput` to access rich content
|
|
390
|
-
* fields (`startContent`, `endContent`, `description`)
|
|
391
|
-
* that are passed through from `ion-select` but not
|
|
392
|
-
* part of the public `AlertInput` interface.
|
|
393
|
-
*/
|
|
394
|
-
const richInput = i;
|
|
395
|
-
const optionLabelOptions = {
|
|
396
|
-
id: richInput.id,
|
|
397
|
-
label: richInput.label,
|
|
398
|
-
startContent: richInput.startContent,
|
|
399
|
-
endContent: richInput.endContent,
|
|
400
|
-
description: richInput.description,
|
|
401
|
-
};
|
|
402
|
-
return (h("button", { type: "button", onClick: () => this.rbClick(i), "aria-checked": `${i.checked}`, disabled: i.disabled, id: i.id, tabIndex: i.tabindex, class: Object.assign(Object.assign({}, getClassMap(i.cssClass)), { 'alert-radio-button': true, 'alert-tappable': true, 'alert-radio': true, 'ion-focusable': true, 'alert-radio-button-disabled': i.disabled || false }), role: "radio" }, h("div", { class: "alert-button-inner" }, h("div", { class: "alert-radio-icon" }, h("div", { class: "alert-radio-inner" })), renderOptionLabel(optionLabelOptions, 'alert-radio-label'))));
|
|
403
|
-
})));
|
|
385
|
+
return (h("div", { class: "alert-radio-group", role: "radiogroup", "aria-activedescendant": this.activeId }, inputs.map((i) => (h("button", { type: "button", onClick: () => this.rbClick(i), "aria-checked": `${i.checked}`, disabled: i.disabled, id: i.id, tabIndex: i.tabindex, class: Object.assign(Object.assign({}, getClassMap(i.cssClass)), { 'alert-radio-button': true, 'alert-tappable': true, 'alert-radio': true, 'ion-focusable': true, 'alert-radio-button-disabled': i.disabled || false }), role: "radio" }, h("div", { class: "alert-button-inner" }, h("div", { class: "alert-radio-icon" }, h("div", { class: "alert-radio-inner" })), h("div", { class: "alert-radio-label" }, i.label)))))));
|
|
404
386
|
}
|
|
405
387
|
renderInput() {
|
|
406
388
|
const inputs = this.processedInputs;
|
|
@@ -459,9 +441,9 @@ export class Alert {
|
|
|
459
441
|
* If neither are defined, do not set aria-labelledby.
|
|
460
442
|
*/
|
|
461
443
|
const ariaLabelledBy = header && subHeader ? `${hdrId} ${subHdrId}` : header ? hdrId : subHeader ? subHdrId : null;
|
|
462
|
-
return (h(Host, { key: '
|
|
444
|
+
return (h(Host, { key: '53f8b0e1035ca965ba44f8e1314c59a227b08173', tabindex: "-1", style: {
|
|
463
445
|
zIndex: `${20000 + overlayIndex}`,
|
|
464
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, h("ion-backdrop", { key: '
|
|
446
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [theme]: true, 'overlay-hidden': true, 'alert-translucent': this.translucent }), onIonAlertWillDismiss: this.dispatchCancelHandler, onIonBackdropTap: this.onBackdropTap }, h("ion-backdrop", { key: '39499a198543709f538fa0328214d742754543ab', tappable: this.backdropDismiss }), h("div", { key: '16417758e5ac05cfa049db5086c1ffde81fc6156', tabindex: "0", "aria-hidden": "true" }), h("div", Object.assign({ key: 'cc7dde0877f70be21019cd2e8e6c843815ec9682', class: "alert-wrapper ion-overlay-wrapper", role: role, "aria-modal": "true", "aria-labelledby": ariaLabelledBy, "aria-describedby": message !== undefined ? msgId : null, tabindex: "0", ref: (el) => (this.wrapperEl = el) }, htmlAttributes), h("div", { key: '525d28d77b6467b441ff9d357049aec7565e6f6a', class: "alert-head" }, header && (h("h2", { key: '974fc725163da00216c3c8b7b6c72c005628e0fc', id: hdrId, class: "alert-title" }, header)), subHeader && !header && (h("h2", { key: 'eedf04dbe331917c7b1348f8020d959119cc9f0f', id: subHdrId, class: "alert-sub-title" }, subHeader)), subHeader && header && (h("h3", { key: '80dbbd75184a3857172eca25f30dee950c08709b', id: subHdrId, class: "alert-sub-title" }, subHeader))), this.renderAlertMessage(msgId), this.renderAlertInputs(), this.renderAlertButtons()), h("div", { key: '0d83a74b7ae595d0593edadfe6b812435534abea', tabindex: "0", "aria-hidden": "true" })));
|
|
465
447
|
}
|
|
466
448
|
static get is() { return "ion-alert"; }
|
|
467
449
|
static get encapsulation() { return "scoped"; }
|
|
@@ -469,14 +451,14 @@ export class Alert {
|
|
|
469
451
|
return {
|
|
470
452
|
"ios": ["alert.ios.scss"],
|
|
471
453
|
"md": ["alert.md.scss"],
|
|
472
|
-
"ionic": ["alert.
|
|
454
|
+
"ionic": ["alert.md.scss"]
|
|
473
455
|
};
|
|
474
456
|
}
|
|
475
457
|
static get styleUrls() {
|
|
476
458
|
return {
|
|
477
459
|
"ios": ["alert.ios.css"],
|
|
478
460
|
"md": ["alert.md.css"],
|
|
479
|
-
"ionic": ["alert.
|
|
461
|
+
"ionic": ["alert.md.css"]
|
|
480
462
|
};
|
|
481
463
|
}
|
|
482
464
|
static get properties() {
|
|
@@ -1,58 +1,3 @@
|
|
|
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 font size to a dynamic font size.
|
|
25
|
-
* Fonts that participate in Dynamic Type should use
|
|
26
|
-
* dynamic font sizes.
|
|
27
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
28
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
|
29
|
-
* convert to a unit other than $baselineUnit.
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* Convert a font size to a dynamic font size but impose
|
|
33
|
-
* a maximum font size.
|
|
34
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
35
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
36
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
37
|
-
* convert to a unit other than $baselineUnit.
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* Convert a font size to a dynamic font size but impose
|
|
41
|
-
* a minimum font size.
|
|
42
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
43
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
44
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
45
|
-
* convert to a unit other than $baselineUnit.
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* Convert a font size to a dynamic font size but impose
|
|
49
|
-
* maximum and minimum font sizes.
|
|
50
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
|
51
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
|
52
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
|
53
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
|
54
|
-
* convert to a unit other than $baselineUnit.
|
|
55
|
-
*/
|
|
56
1
|
/**
|
|
57
2
|
* Convert a pixels given value into rem
|
|
58
3
|
*
|
|
@@ -349,34 +294,6 @@ textarea.alert-input {
|
|
|
349
294
|
resize: none;
|
|
350
295
|
}
|
|
351
296
|
|
|
352
|
-
.alert-radio-label,
|
|
353
|
-
.alert-checkbox-label {
|
|
354
|
-
display: flex;
|
|
355
|
-
align-items: center;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.select-option-content {
|
|
359
|
-
flex: 1;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.select-option-description {
|
|
363
|
-
display: block;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.alert-radio-label,
|
|
367
|
-
.alert-checkbox-label {
|
|
368
|
-
gap: 12px;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.select-option-description {
|
|
372
|
-
padding-left: 0;
|
|
373
|
-
padding-right: 0;
|
|
374
|
-
padding-top: 5px;
|
|
375
|
-
padding-bottom: 0;
|
|
376
|
-
color: var(--ion-color-step-700, var(--ion-text-color-step-300, #4d4d4d));
|
|
377
|
-
font-size: 0.75rem;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
297
|
/**
|
|
381
298
|
* Convert a pixels given value into rem
|
|
382
299
|
*
|
|
@@ -430,28 +430,32 @@
|
|
|
430
430
|
margin-bottom: calc(var(--token-space-200, var(--token-scale-200, 8px)) + var(--token-font-size-300, 0.75rem));
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
-
.range-bar.
|
|
434
|
-
|
|
435
|
-
width: auto;
|
|
436
|
-
background: var(--bar-background-active);
|
|
433
|
+
.range-bar.has-ticks {
|
|
434
|
+
border-radius: 0;
|
|
437
435
|
}
|
|
436
|
+
|
|
438
437
|
.range-bar.range-bar-active.has-ticks {
|
|
439
|
-
border-radius: 0;
|
|
440
438
|
-webkit-margin-start: calc(-1 * var(--token-scale-100, 4px) * 0.5);
|
|
441
439
|
margin-inline-start: calc(-1 * var(--token-scale-100, 4px) * 0.5);
|
|
442
440
|
-webkit-margin-end: calc(-1 * var(--token-scale-100, 4px) * 0.5);
|
|
443
441
|
margin-inline-end: calc(-1 * var(--token-scale-100, 4px) * 0.5);
|
|
444
442
|
}
|
|
445
443
|
|
|
444
|
+
.range-bar.range-bar-active {
|
|
445
|
+
bottom: 0;
|
|
446
|
+
width: auto;
|
|
447
|
+
background: var(--bar-background-active);
|
|
448
|
+
}
|
|
449
|
+
|
|
446
450
|
.range-tick {
|
|
447
451
|
-webkit-margin-start: calc(var(--token-scale-100, 4px) * -0.5);
|
|
448
452
|
margin-inline-start: calc(var(--token-scale-100, 4px) * -0.5);
|
|
449
|
-
border-radius: var(--token-border-radius-
|
|
453
|
+
border-radius: var(--token-border-radius-400, var(--token-scale-400, 16px));
|
|
450
454
|
position: absolute;
|
|
451
|
-
top: calc(var(--height) * 0.5 - var(--token-scale-
|
|
452
|
-
width: var(--token-scale-
|
|
453
|
-
height: var(--token-scale-
|
|
454
|
-
background: var(--
|
|
455
|
+
top: calc(var(--height) * 0.5 - var(--token-scale-400, 16px) * 0.5);
|
|
456
|
+
width: var(--token-scale-050, 2px);
|
|
457
|
+
height: var(--token-scale-400, 16px);
|
|
458
|
+
background: var(--bar-background);
|
|
455
459
|
pointer-events: none;
|
|
456
460
|
}
|
|
457
461
|
|
|
@@ -692,7 +692,10 @@ export class Range {
|
|
|
692
692
|
} }, ticks.map((tick) => (h("div", { style: tickStyle(tick), role: "presentation", class: {
|
|
693
693
|
'range-tick': true,
|
|
694
694
|
'range-tick-active': tick.active,
|
|
695
|
-
}, part: tick.active ? 'tick-active' : 'tick' }))), h("div", { class: "range-bar-container" }, h("div", { class:
|
|
695
|
+
}, part: tick.active ? 'tick-active' : 'tick' }))), h("div", { class: "range-bar-container" }, h("div", { class: {
|
|
696
|
+
'range-bar': true,
|
|
697
|
+
'has-ticks': ticks.length > 0,
|
|
698
|
+
}, role: "presentation", part: "bar" }), h("div", { class: {
|
|
696
699
|
'range-bar': true,
|
|
697
700
|
'range-bar-active': true,
|
|
698
701
|
'has-ticks': ticks.length > 0,
|
|
@@ -770,7 +773,7 @@ export class Range {
|
|
|
770
773
|
const valueAtMin = dualKnobs ? this.valA === min || this.valB === min : this.valA === min;
|
|
771
774
|
const valueAtMax = dualKnobs ? this.valA === max || this.valB === max : this.valA === max;
|
|
772
775
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
773
|
-
return (h(Host, { key: '
|
|
776
|
+
return (h(Host, { key: '1b8ca217fa6965fc038fb4ca8f0bc9142b3893ad', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses(this.color, {
|
|
774
777
|
[theme]: true,
|
|
775
778
|
'in-item': inItem,
|
|
776
779
|
'range-disabled': disabled,
|
|
@@ -784,10 +787,10 @@ export class Range {
|
|
|
784
787
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
785
788
|
'range-value-min': valueAtMin,
|
|
786
789
|
'range-value-max': valueAtMax,
|
|
787
|
-
}) }, h("label", { key: '
|
|
790
|
+
}) }, h("label", { key: '98b02130c9bb5a9ba6557be28f1ac09be0d10806', class: "range-wrapper", id: "range-label" }, h("div", { key: '570083103b51b335c805672918d69e997dc30e66', class: {
|
|
788
791
|
'label-text-wrapper': true,
|
|
789
792
|
'label-text-wrapper-hidden': !hasLabel,
|
|
790
|
-
}, part: "label" }, label !== undefined ? h("div", { class: "label-text" }, label) : h("slot", { name: "label" })), h("div", { key: '
|
|
793
|
+
}, part: "label" }, label !== undefined ? h("div", { class: "label-text" }, label) : h("slot", { name: "label" })), h("div", { key: '1e3233a747d0adca6611234d0675ce049ef979cf', class: "native-wrapper" }, h("slot", { key: '4f06a217592a98d889420468eb282ba8652ef1cc', name: "start" }), this.renderRangeSlider(), h("slot", { key: '4286279dbadf0e92bffbd5e98d5e36cba095be3c', name: "end" })))));
|
|
791
794
|
}
|
|
792
795
|
static get is() { return "ion-range"; }
|
|
793
796
|
static get encapsulation() { return "shadow"; }
|
|
@@ -81,13 +81,6 @@
|
|
|
81
81
|
* @prop --border-width: Width of the select border
|
|
82
82
|
*
|
|
83
83
|
* @prop --ripple-color: The color of the ripple effect on MD mode.
|
|
84
|
-
*
|
|
85
|
-
* @prop --select-text-media-width: The width of media (icons/images) in the select text.
|
|
86
|
-
* @prop --select-text-media-height: The height of media (icons/images) in the select text.
|
|
87
|
-
* @prop --select-text-media-border-width: The border width of media (icons/images) in the select text.
|
|
88
|
-
* @prop --select-text-media-border-color: The border color of media (icons/images) in the select text.
|
|
89
|
-
* @prop --select-text-media-border-radius: The border radius of media (icons/images) in the select text.
|
|
90
|
-
* @prop --select-text-media-border-style: The border style of media (icons/images) in the select text.
|
|
91
84
|
*/
|
|
92
85
|
--padding-top: 0px;
|
|
93
86
|
--padding-end: 0px;
|
|
@@ -99,8 +92,6 @@
|
|
|
99
92
|
--highlight-color-focused: ion-color(primary, base);
|
|
100
93
|
--highlight-color-valid: ion-color(success, base);
|
|
101
94
|
--highlight-color-invalid: ion-color(danger, base);
|
|
102
|
-
--select-text-media-height: 1.5em;
|
|
103
|
-
--select-text-media-width: 1.5em;
|
|
104
95
|
/**
|
|
105
96
|
* This is a private API that is used to switch
|
|
106
97
|
* out the highlight color based on the state
|
|
@@ -205,19 +196,6 @@ button {
|
|
|
205
196
|
overflow: hidden;
|
|
206
197
|
}
|
|
207
198
|
|
|
208
|
-
.select-text img,
|
|
209
|
-
.select-text ion-img,
|
|
210
|
-
.select-text ion-icon,
|
|
211
|
-
.select-text ion-thumbnail,
|
|
212
|
-
.select-text ion-avatar {
|
|
213
|
-
border-radius: var(--select-text-media-border-radius);
|
|
214
|
-
width: var(--select-text-media-width);
|
|
215
|
-
height: var(--select-text-media-height);
|
|
216
|
-
border-width: var(--select-text-media-border-width);
|
|
217
|
-
border-style: var(--select-text-media-border-style);
|
|
218
|
-
border-color: var(--select-text-media-border-color);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
199
|
.select-wrapper {
|
|
222
200
|
display: flex;
|
|
223
201
|
position: relative;
|
|
@@ -589,15 +567,6 @@ button {
|
|
|
589
567
|
color: var(--token-text-default, var(--token-primitives-neutral-1200, #242424));
|
|
590
568
|
}
|
|
591
569
|
|
|
592
|
-
/**
|
|
593
|
-
* If the select text contains rich content, we want to add some
|
|
594
|
-
* spacing between the items without changing the display to prevent
|
|
595
|
-
* losing the ellipsis behavior.
|
|
596
|
-
*/
|
|
597
|
-
.select-text > * {
|
|
598
|
-
margin-inline-start: var(--token-space-200, var(--token-scale-200, 8px));
|
|
599
|
-
}
|
|
600
|
-
|
|
601
570
|
.label-text-wrapper {
|
|
602
571
|
font-size: var(--token-font-size-300, 0.75rem);
|
|
603
572
|
font-weight: var(--token-font-weight-medium, 500);
|
|
@@ -103,13 +103,6 @@
|
|
|
103
103
|
* @prop --border-width: Width of the select border
|
|
104
104
|
*
|
|
105
105
|
* @prop --ripple-color: The color of the ripple effect on MD mode.
|
|
106
|
-
*
|
|
107
|
-
* @prop --select-text-media-width: The width of media (icons/images) in the select text.
|
|
108
|
-
* @prop --select-text-media-height: The height of media (icons/images) in the select text.
|
|
109
|
-
* @prop --select-text-media-border-width: The border width of media (icons/images) in the select text.
|
|
110
|
-
* @prop --select-text-media-border-color: The border color of media (icons/images) in the select text.
|
|
111
|
-
* @prop --select-text-media-border-radius: The border radius of media (icons/images) in the select text.
|
|
112
|
-
* @prop --select-text-media-border-style: The border style of media (icons/images) in the select text.
|
|
113
106
|
*/
|
|
114
107
|
--padding-top: 0px;
|
|
115
108
|
--padding-end: 0px;
|
|
@@ -121,8 +114,6 @@
|
|
|
121
114
|
--highlight-color-focused: var(--ion-color-primary, #0054e9);
|
|
122
115
|
--highlight-color-valid: var(--ion-color-success, #2dd55b);
|
|
123
116
|
--highlight-color-invalid: var(--ion-color-danger, #c5000f);
|
|
124
|
-
--select-text-media-height: 1.5em;
|
|
125
|
-
--select-text-media-width: 1.5em;
|
|
126
117
|
/**
|
|
127
118
|
* This is a private API that is used to switch
|
|
128
119
|
* out the highlight color based on the state
|
|
@@ -227,19 +218,6 @@ button {
|
|
|
227
218
|
overflow: hidden;
|
|
228
219
|
}
|
|
229
220
|
|
|
230
|
-
.select-text img,
|
|
231
|
-
.select-text ion-img,
|
|
232
|
-
.select-text ion-icon,
|
|
233
|
-
.select-text ion-thumbnail,
|
|
234
|
-
.select-text ion-avatar {
|
|
235
|
-
border-radius: var(--select-text-media-border-radius);
|
|
236
|
-
width: var(--select-text-media-width);
|
|
237
|
-
height: var(--select-text-media-height);
|
|
238
|
-
border-width: var(--select-text-media-border-width);
|
|
239
|
-
border-style: var(--select-text-media-border-style);
|
|
240
|
-
border-color: var(--select-text-media-border-color);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
221
|
.select-wrapper {
|
|
244
222
|
display: flex;
|
|
245
223
|
position: relative;
|
|
@@ -641,15 +619,6 @@ button {
|
|
|
641
619
|
min-width: 16px;
|
|
642
620
|
}
|
|
643
621
|
|
|
644
|
-
/**
|
|
645
|
-
* If the select text contains rich content, we want to add some
|
|
646
|
-
* spacing between the items without changing the display to prevent
|
|
647
|
-
* losing the ellipsis behavior.
|
|
648
|
-
*/
|
|
649
|
-
.select-text > * {
|
|
650
|
-
margin-inline-start: 8px;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
622
|
.label-text-wrapper {
|
|
654
623
|
/**
|
|
655
624
|
* Label text should not extend
|