@ionic/core 8.4.2-dev.11741869226.11c3cc35 → 8.4.2-dev.11742389361.1723868d
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.js +1 -1
- package/components/checkbox.js +1 -1
- package/components/header.js +1 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-chip.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-searchbar.js +21 -11
- package/components/ion-segment-button.js +3 -3
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +4 -4
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +4 -4
- package/components/ion-thumbnail.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/item.js +1 -1
- package/components/modal.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +2 -2
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/css/ionic/bundle.ionic.css +1 -1
- package/css/ionic/bundle.ionic.css.map +1 -1
- package/css/ionic/core.ionic.css.map +1 -1
- package/css/ionic/global.bundle.ionic.css.map +1 -1
- package/css/ionic/link.ionic.css.map +1 -1
- package/css/ionic/typography.ionic.css.map +1 -1
- package/css/ionic/utils.bundle.ionic.css +1 -1
- package/css/ionic/utils.bundle.ionic.css.map +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ion-chip.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-input.cjs.entry.js +1 -1
- package/dist/cjs/ion-item_8.cjs.entry.js +3 -3
- package/dist/cjs/ion-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-searchbar.cjs.entry.js +19 -9
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +5 -5
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +7 -7
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +4 -4
- 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/accordion/accordion.ionic.css +1 -1
- package/dist/collection/components/button/button.ionic.css +3 -3
- package/dist/collection/components/checkbox/checkbox.ionic.css +1 -1
- package/dist/collection/components/chip/chip.ionic.css +1 -1
- package/dist/collection/components/datetime/datetime.ionic.css +5 -5
- package/dist/collection/components/header/header.ionic.css +1 -1
- package/dist/collection/components/input/input.ionic.css +1 -1
- package/dist/collection/components/item/item.ionic.css +2 -2
- package/dist/collection/components/modal/modal.ionic.css +1 -1
- package/dist/collection/components/progress-bar/progress-bar.ionic.css +1 -1
- package/dist/collection/components/searchbar/searchbar.ionic.css +206 -49
- package/dist/collection/components/searchbar/searchbar.js +23 -13
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.ionic.css +1 -1
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.ionic.css +1 -1
- package/dist/collection/components/select/select.js +3 -3
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +2 -2
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.ionic.css +1 -1
- 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 +8 -5
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-checkbox.entry.js +1 -1
- package/dist/esm/ion-chip.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +1 -1
- package/dist/esm/ion-item_8.entry.js +3 -3
- package/dist/esm/ion-modal.entry.js +1 -1
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-searchbar.entry.js +20 -10
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +5 -5
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +7 -7
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +4 -4
- 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/esm-es5/ion-accordion_2.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.entry.js +1 -1
- package/dist/esm-es5/ion-chip.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.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 +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-5ef3c946.system.entry.js → p-0390f622.system.entry.js} +1 -1
- package/dist/ionic/{p-4c3baf6b.entry.js → p-03df1462.entry.js} +1 -1
- package/dist/ionic/{p-177e5174.entry.js → p-044f1f60.entry.js} +1 -1
- package/dist/ionic/{p-4c0b6220.system.entry.js → p-04c5ae87.system.entry.js} +1 -1
- package/dist/ionic/{p-5bf3c7bb.system.entry.js → p-07874cc0.system.entry.js} +2 -2
- package/dist/ionic/{p-200b21b9.system.entry.js → p-159f2071.system.entry.js} +1 -1
- package/dist/ionic/{p-47acf6b1.system.entry.js → p-21aa6b9b.system.entry.js} +1 -1
- package/dist/ionic/{p-3198161b.entry.js → p-2606d627.entry.js} +1 -1
- package/dist/ionic/p-27258d5a.entry.js +4 -0
- package/dist/ionic/{p-39dafa1d.system.entry.js → p-297fcc18.system.entry.js} +1 -1
- package/dist/ionic/p-3608e72b.entry.js +4 -0
- package/dist/ionic/{p-32c7f373.entry.js → p-402ffd31.entry.js} +1 -1
- package/dist/ionic/p-49f0023f.entry.js +4 -0
- package/dist/ionic/{p-2c158829.system.entry.js → p-4b4e4592.system.entry.js} +1 -1
- package/dist/ionic/{p-a4eda6d6.entry.js → p-52d61c92.entry.js} +1 -1
- package/dist/ionic/{p-9d3d1c0c.entry.js → p-5345fc46.entry.js} +1 -1
- package/dist/ionic/{p-00d4122b.entry.js → p-59cfca77.entry.js} +1 -1
- package/dist/ionic/p-695c2cbd.entry.js +4 -0
- package/dist/ionic/{p-51121acc.system.entry.js → p-6ebe68f1.system.entry.js} +1 -1
- package/dist/ionic/{p-aa25a8e5.entry.js → p-71523065.entry.js} +1 -1
- package/dist/ionic/{p-06171cfe.entry.js → p-7192dbab.entry.js} +1 -1
- package/dist/ionic/{p-a37c3f0a.system.entry.js → p-7371d5e6.system.entry.js} +1 -1
- package/dist/ionic/{p-31e267ab.entry.js → p-76539492.entry.js} +1 -1
- package/dist/ionic/p-76dac7b3.entry.js +4 -0
- package/dist/ionic/{p-453bd903.entry.js → p-84199272.entry.js} +1 -1
- package/dist/ionic/p-97cc477f.system.entry.js +4 -0
- package/dist/ionic/{p-2ce11d2f.entry.js → p-991b3191.entry.js} +1 -1
- package/dist/ionic/{p-4dbaf8ab.system.entry.js → p-9c075207.system.entry.js} +1 -1
- package/dist/ionic/p-9f9a666d.system.js +1 -1
- package/dist/ionic/p-a685da08.system.entry.js +4 -0
- package/dist/ionic/{p-60eff82b.system.entry.js → p-a78181cc.system.entry.js} +1 -1
- package/dist/ionic/{p-99d106bd.system.entry.js → p-a7ad3091.system.entry.js} +1 -1
- package/dist/ionic/{p-f22933c0.system.entry.js → p-ab3c35e6.system.entry.js} +1 -1
- package/dist/ionic/{p-08174a05.system.entry.js → p-ab6b9b62.system.entry.js} +1 -1
- package/dist/ionic/{p-40fb57eb.entry.js → p-ac89e6c5.entry.js} +1 -1
- package/dist/ionic/{p-876664bb.system.entry.js → p-ba1014a8.system.entry.js} +1 -1
- package/dist/ionic/{p-864bb0b2.entry.js → p-c42e9967.entry.js} +1 -1
- package/dist/ionic/{p-abb0510b.system.entry.js → p-c48a6425.system.entry.js} +1 -1
- package/dist/ionic/{p-ee50200e.entry.js → p-c7aa652c.entry.js} +1 -1
- package/dist/ionic/p-cbcce4e8.system.entry.js +4 -0
- package/dist/ionic/{p-6064600e.system.entry.js → p-d683e61f.system.entry.js} +1 -1
- package/dist/ionic/{p-d454b760.system.entry.js → p-d7e43c62.system.entry.js} +1 -1
- package/dist/ionic/{p-2babcfed.entry.js → p-d854fb32.entry.js} +1 -1
- package/dist/ionic/{p-dac0954a.system.entry.js → p-da89b9bd.system.entry.js} +1 -1
- package/dist/ionic/{p-01b359c9.entry.js → p-dd4ff935.entry.js} +1 -1
- package/dist/ionic/{p-f3d7cf9a.system.entry.js → p-dfb357f5.system.entry.js} +1 -1
- package/dist/ionic/{p-b4b60b97.entry.js → p-e1d8ac3d.entry.js} +1 -1
- package/dist/ionic/{p-2364fade.entry.js → p-f6cfc85d.entry.js} +1 -1
- package/dist/ionic/{p-2e2564f4.system.entry.js → p-fa5a0d2e.system.entry.js} +1 -1
- package/dist/ionic/{p-86f2880e.entry.js → p-fac055ef.entry.js} +1 -1
- package/dist/ionic/{p-e5bffd6f.system.entry.js → p-fd7abd00.system.entry.js} +1 -1
- package/dist/types/components/searchbar/searchbar.d.ts +4 -1
- package/dist/types/components.d.ts +4 -4
- package/hydrate/index.js +75 -65
- package/hydrate/index.mjs +75 -65
- package/package.json +2 -2
- package/dist/ionic/p-5d03dea8.entry.js +0 -4
- package/dist/ionic/p-65d0c3b3.system.entry.js +0 -4
- package/dist/ionic/p-6c6d7c34.entry.js +0 -4
- package/dist/ionic/p-7b48eb55.entry.js +0 -4
- package/dist/ionic/p-9078b280.system.entry.js +0 -4
- package/dist/ionic/p-9f99da2c.entry.js +0 -4
- package/dist/ionic/p-b99343c0.entry.js +0 -4
- package/dist/ionic/p-bed26b75.system.entry.js +0 -4
|
@@ -217,18 +217,16 @@ Do not edit directly, this file was auto-generated.
|
|
|
217
217
|
* @prop --focus-ring-color: The color of the ring around the focused element.
|
|
218
218
|
* @prop --focus-ring-width: The width of the ring around the focused element.
|
|
219
219
|
*/
|
|
220
|
-
--background: var(--ion-bg-neutral-subtle-default, #
|
|
220
|
+
--background: var(--ion-bg-neutral-subtle-default, #efefef);
|
|
221
221
|
--border-radius: var(--ion-border-radius-400, 16px);
|
|
222
222
|
--box-shadow: none;
|
|
223
223
|
--cancel-button-color: var(--ion-primitives-neutral-800, #626262);
|
|
224
224
|
--clear-button-color: var(--ion-primitives-neutral-1000, #3b3b3b);
|
|
225
225
|
--color: var(--ion-primitives-neutral-1200, #242424);
|
|
226
|
-
--icon-color: var(--ion-icon-
|
|
226
|
+
--icon-color: var(--ion-icon-subtlest, #626262);
|
|
227
227
|
--placeholder-color: var(--ion-text-subtlest, #626262);
|
|
228
228
|
--focus-ring-color: var(--ion-border-focus-default, #b5c0f7);
|
|
229
229
|
--focus-ring-width: var(--ion-border-size-050, 2px);
|
|
230
|
-
--leading-icon-padding: calc(var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
231
|
-
--clear-button-padding: calc(var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
232
230
|
font-size: var(--ion-font-size-350, 0.875rem);
|
|
233
231
|
font-weight: var(--ion-font-weight-regular, 400);
|
|
234
232
|
letter-spacing: var(--ion-font-letter-spacing-0, 0%);
|
|
@@ -261,10 +259,6 @@ Do not edit directly, this file was auto-generated.
|
|
|
261
259
|
contain: strict;
|
|
262
260
|
}
|
|
263
261
|
|
|
264
|
-
:host(:not(.searchbar-should-show-clear)) {
|
|
265
|
-
--clear-button-padding: var(--ion-scale-0, 0px);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
262
|
.searchbar-cancel-button {
|
|
269
263
|
width: var(--ion-scale-400, 16px);
|
|
270
264
|
height: var(--ion-scale-400, 16px);
|
|
@@ -287,15 +281,11 @@ Do not edit directly, this file was auto-generated.
|
|
|
287
281
|
opacity: 1;
|
|
288
282
|
}
|
|
289
283
|
|
|
290
|
-
:host(
|
|
291
|
-
--
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
:host(:not(.searchbar-has-value)) {
|
|
295
|
-
--icon-color: var(--ion-icon-subtlest, #626262);
|
|
284
|
+
:host(.searchbar-has-value) {
|
|
285
|
+
--icon-color: var(--ion-icon-default, #242424);
|
|
296
286
|
}
|
|
297
287
|
|
|
298
|
-
:host
|
|
288
|
+
:host(.in-toolbar.searchbar-should-show-cancel) .searchbar-cancel-button {
|
|
299
289
|
/**
|
|
300
290
|
* The left edge of the cancel button
|
|
301
291
|
* should align with the left edge
|
|
@@ -304,23 +294,13 @@ Do not edit directly, this file was auto-generated.
|
|
|
304
294
|
* the searchbar size.
|
|
305
295
|
*/
|
|
306
296
|
}
|
|
307
|
-
:host
|
|
297
|
+
:host(.in-toolbar.searchbar-should-show-cancel) .searchbar-cancel-button {
|
|
308
298
|
inset-inline-start: 9px;
|
|
309
299
|
}
|
|
310
300
|
|
|
311
|
-
:host-context(ion-toolbar).searchbar-should-show-cancel .searchbar-input {
|
|
312
|
-
/**
|
|
313
|
-
* Padding start is based on
|
|
314
|
-
* the alignment of the back button,
|
|
315
|
-
* the size of the leading icon (search or cancel),
|
|
316
|
-
* and the gap between the icon and the input.
|
|
317
|
-
*/
|
|
318
|
-
padding-inline-start: calc(9px + var(--leading-icon-padding));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
301
|
/* Hover */
|
|
322
302
|
:host(:hover) {
|
|
323
|
-
--background: var(--ion-primitives-neutral-200, #
|
|
303
|
+
--background: var(--ion-primitives-neutral-200, #efefef);
|
|
324
304
|
}
|
|
325
305
|
|
|
326
306
|
/* Focus */
|
|
@@ -362,6 +342,44 @@ Do not edit directly, this file was auto-generated.
|
|
|
362
342
|
|
|
363
343
|
/* Small */
|
|
364
344
|
:host(.searchbar-size-small) .searchbar-input {
|
|
345
|
+
/**
|
|
346
|
+
* Padding start is based on
|
|
347
|
+
* desired padding from design,
|
|
348
|
+
* no leading icons.
|
|
349
|
+
*
|
|
350
|
+
* Padding end is based on
|
|
351
|
+
* desired padding from design,
|
|
352
|
+
* no trailing icons.
|
|
353
|
+
*/
|
|
354
|
+
-webkit-padding-start: var(--ion-space-300, 12px);
|
|
355
|
+
padding-inline-start: var(--ion-space-300, 12px);
|
|
356
|
+
-webkit-padding-end: var(--ion-space-300, 12px);
|
|
357
|
+
padding-inline-end: var(--ion-space-300, 12px);
|
|
358
|
+
height: var(--ion-scale-1000, 40px);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* Small with Leading Icons */
|
|
362
|
+
:host(.searchbar-size-small.searchbar-should-show-search-icon) .searchbar-input,
|
|
363
|
+
:host(.searchbar-size-small.searchbar-should-show-cancel) .searchbar-input {
|
|
364
|
+
/**
|
|
365
|
+
* Padding start is based on
|
|
366
|
+
* desired padding from design,
|
|
367
|
+
* the size of the leading icon (search or cancel),
|
|
368
|
+
* and the gap between the icon and the input.
|
|
369
|
+
*
|
|
370
|
+
* Padding end is based on
|
|
371
|
+
* desired padding from design,
|
|
372
|
+
* no trailing icons.
|
|
373
|
+
*/
|
|
374
|
+
-webkit-padding-start: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
375
|
+
padding-inline-start: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
376
|
+
-webkit-padding-end: var(--ion-space-300, 12px);
|
|
377
|
+
padding-inline-end: var(--ion-space-300, 12px);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* Small with Leading Icons and Trailing Icons */
|
|
381
|
+
:host(.searchbar-size-small.searchbar-should-show-search-icon.searchbar-should-show-clear) .searchbar-input,
|
|
382
|
+
:host(.searchbar-size-small.searchbar-should-show-cancel.searchbar-should-show-clear) .searchbar-input {
|
|
365
383
|
/**
|
|
366
384
|
* Padding start is based on
|
|
367
385
|
* desired padding from design,
|
|
@@ -373,11 +391,28 @@ Do not edit directly, this file was auto-generated.
|
|
|
373
391
|
* the size of the trailing icon (clear),
|
|
374
392
|
* and the gap between the icon and the input.
|
|
375
393
|
*/
|
|
376
|
-
-webkit-padding-start: calc(var(--ion-space-300, 12px) + var(--
|
|
377
|
-
padding-inline-start: calc(var(--ion-space-300, 12px) + var(--
|
|
378
|
-
-webkit-padding-end: calc(var(--ion-space-300, 12px) + var(--
|
|
379
|
-
padding-inline-end: calc(var(--ion-space-300, 12px) + var(--
|
|
380
|
-
|
|
394
|
+
-webkit-padding-start: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
395
|
+
padding-inline-start: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
396
|
+
-webkit-padding-end: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
397
|
+
padding-inline-end: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* Small with Trailing Icons */
|
|
401
|
+
:host(.searchbar-size-small.searchbar-should-show-clear) .searchbar-input {
|
|
402
|
+
/**
|
|
403
|
+
* Padding start is based on
|
|
404
|
+
* desired padding from design,
|
|
405
|
+
* no leading icons.
|
|
406
|
+
*
|
|
407
|
+
* Padding end is based on
|
|
408
|
+
* desired padding from design,
|
|
409
|
+
* the size of the trailing icon (clear),
|
|
410
|
+
* and the gap between the icon and the input.
|
|
411
|
+
*/
|
|
412
|
+
-webkit-padding-start: var(--ion-space-300, 12px);
|
|
413
|
+
padding-inline-start: var(--ion-space-300, 12px);
|
|
414
|
+
-webkit-padding-end: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
415
|
+
padding-inline-end: calc(var(--ion-space-300, 12px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
381
416
|
}
|
|
382
417
|
|
|
383
418
|
:host(.searchbar-size-small) .searchbar-search-icon,
|
|
@@ -391,6 +426,44 @@ Do not edit directly, this file was auto-generated.
|
|
|
391
426
|
|
|
392
427
|
/* Medium */
|
|
393
428
|
:host(.searchbar-size-medium) .searchbar-input {
|
|
429
|
+
/**
|
|
430
|
+
* Padding start is based on
|
|
431
|
+
* desired padding from design,
|
|
432
|
+
* no leading icons.
|
|
433
|
+
*
|
|
434
|
+
* Padding end is based on
|
|
435
|
+
* desired padding from design,
|
|
436
|
+
* no trailing icons.
|
|
437
|
+
*/
|
|
438
|
+
-webkit-padding-start: var(--ion-space-400, 16px);
|
|
439
|
+
padding-inline-start: var(--ion-space-400, 16px);
|
|
440
|
+
-webkit-padding-end: var(--ion-space-400, 16px);
|
|
441
|
+
padding-inline-end: var(--ion-space-400, 16px);
|
|
442
|
+
height: var(--ion-scale-1200, 48px);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* Medium with Leading Icons */
|
|
446
|
+
:host(.searchbar-size-medium.searchbar-should-show-search-icon) .searchbar-input,
|
|
447
|
+
:host(.searchbar-size-medium.searchbar-should-show-cancel) .searchbar-input {
|
|
448
|
+
/**
|
|
449
|
+
* Padding start is based on
|
|
450
|
+
* desired padding from design,
|
|
451
|
+
* the size of the leading icon (search or cancel),
|
|
452
|
+
* and the gap between the icon and the input.
|
|
453
|
+
*
|
|
454
|
+
* Padding end is based on
|
|
455
|
+
* desired padding from design,
|
|
456
|
+
* no trailing icons.
|
|
457
|
+
*/
|
|
458
|
+
-webkit-padding-start: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
459
|
+
padding-inline-start: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
460
|
+
-webkit-padding-end: var(--ion-space-400, 16px);
|
|
461
|
+
padding-inline-end: var(--ion-space-400, 16px);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* Medium with Leading Icons and Trailing Icons */
|
|
465
|
+
:host(.searchbar-size-medium.searchbar-should-show-search-icon.searchbar-should-show-clear) .searchbar-input,
|
|
466
|
+
:host(.searchbar-size-medium.searchbar-should-show-cancel.searchbar-should-show-clear) .searchbar-input {
|
|
394
467
|
/**
|
|
395
468
|
* Padding start is based on
|
|
396
469
|
* desired padding from design,
|
|
@@ -402,11 +475,28 @@ Do not edit directly, this file was auto-generated.
|
|
|
402
475
|
* the size of the trailing icon (clear),
|
|
403
476
|
* and the gap between the icon and the input.
|
|
404
477
|
*/
|
|
405
|
-
-webkit-padding-start: calc(var(--ion-space-400, 16px) + var(--
|
|
406
|
-
padding-inline-start: calc(var(--ion-space-400, 16px) + var(--
|
|
407
|
-
-webkit-padding-end: calc(var(--ion-space-400, 16px) + var(--
|
|
408
|
-
padding-inline-end: calc(var(--ion-space-400, 16px) + var(--
|
|
409
|
-
|
|
478
|
+
-webkit-padding-start: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
479
|
+
padding-inline-start: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
480
|
+
-webkit-padding-end: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
481
|
+
padding-inline-end: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/* Medium with Trailing Icons */
|
|
485
|
+
:host(.searchbar-size-medium.searchbar-should-show-clear) .searchbar-input {
|
|
486
|
+
/**
|
|
487
|
+
* Padding start is based on
|
|
488
|
+
* desired padding from design,
|
|
489
|
+
* no leading icons.
|
|
490
|
+
*
|
|
491
|
+
* Padding end is based on
|
|
492
|
+
* desired padding from design,
|
|
493
|
+
* the size of the trailing icon (clear),
|
|
494
|
+
* and the gap between the icon and the input.
|
|
495
|
+
*/
|
|
496
|
+
-webkit-padding-start: var(--ion-space-400, 16px);
|
|
497
|
+
padding-inline-start: var(--ion-space-400, 16px);
|
|
498
|
+
-webkit-padding-end: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
499
|
+
padding-inline-end: calc(var(--ion-space-400, 16px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
410
500
|
}
|
|
411
501
|
|
|
412
502
|
:host(.searchbar-size-medium) .searchbar-search-icon,
|
|
@@ -418,10 +508,20 @@ Do not edit directly, this file was auto-generated.
|
|
|
418
508
|
inset-inline-end: var(--ion-space-400, 16px);
|
|
419
509
|
}
|
|
420
510
|
|
|
511
|
+
:host(.in-toolbar.searchbar-size-small.searchbar-should-show-cancel) .searchbar-input,
|
|
512
|
+
:host(.in-toolbar.searchbar-size-medium.searchbar-should-show-cancel) .searchbar-input {
|
|
513
|
+
/**
|
|
514
|
+
* Padding start is based on
|
|
515
|
+
* the alignment of the back button,
|
|
516
|
+
* the size of the leading icon (search or cancel),
|
|
517
|
+
* and the gap between the icon and the input.
|
|
518
|
+
*/
|
|
519
|
+
padding-inline-start: calc(9px + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
520
|
+
}
|
|
521
|
+
|
|
421
522
|
/* Large */
|
|
422
523
|
:host(.searchbar-size-large) .searchbar-search-icon,
|
|
423
524
|
:host(.searchbar-size-large) .searchbar-cancel-button {
|
|
424
|
-
--leading-icon-padding: calc(var(--ion-scale-500, 20px) + var(--ion-space-200, 8px));
|
|
425
525
|
width: var(--ion-scale-500, 20px);
|
|
426
526
|
height: var(--ion-scale-500, 20px);
|
|
427
527
|
}
|
|
@@ -430,19 +530,49 @@ Do not edit directly, this file was auto-generated.
|
|
|
430
530
|
font-size: var(--ion-font-size-500, 1.25rem);
|
|
431
531
|
}
|
|
432
532
|
|
|
433
|
-
:host
|
|
533
|
+
:host(.searchbar-size-large) .searchbar-input {
|
|
534
|
+
padding-top: var(--ion-space-400, 16px);
|
|
535
|
+
padding-bottom: var(--ion-space-400, 16px);
|
|
434
536
|
/**
|
|
435
537
|
* Padding start is based on
|
|
436
|
-
*
|
|
538
|
+
* desired padding from design,
|
|
437
539
|
* the size of the leading icon (search or cancel),
|
|
438
540
|
* and the gap between the icon and the input.
|
|
541
|
+
*
|
|
542
|
+
* Padding end is based on
|
|
543
|
+
* desired padding from design,
|
|
544
|
+
* the size of the trailing icon (clear),
|
|
545
|
+
* and the gap between the icon and the input.
|
|
439
546
|
*/
|
|
440
|
-
padding-
|
|
547
|
+
-webkit-padding-start: var(--ion-space-500, 20px);
|
|
548
|
+
padding-inline-start: var(--ion-space-500, 20px);
|
|
549
|
+
-webkit-padding-end: var(--ion-space-500, 20px);
|
|
550
|
+
padding-inline-end: var(--ion-space-500, 20px);
|
|
551
|
+
height: var(--ion-scale-1400, 56px);
|
|
441
552
|
}
|
|
442
553
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
554
|
+
/* Large with Leading Icons */
|
|
555
|
+
:host(.searchbar-size-large.searchbar-should-show-search-icon) .searchbar-input,
|
|
556
|
+
:host(.searchbar-size-large.searchbar-should-show-cancel) .searchbar-input {
|
|
557
|
+
/**
|
|
558
|
+
* Padding start is based on
|
|
559
|
+
* desired padding from design,
|
|
560
|
+
* the size of the leading icon (search or cancel),
|
|
561
|
+
* and the gap between the icon and the input.
|
|
562
|
+
*
|
|
563
|
+
* Padding end is based on
|
|
564
|
+
* desired padding from design,
|
|
565
|
+
* no trailing icons.
|
|
566
|
+
*/
|
|
567
|
+
-webkit-padding-start: calc(var(--ion-space-500, 20px) + var(--ion-scale-500, 20px) + var(--ion-space-200, 8px));
|
|
568
|
+
padding-inline-start: calc(var(--ion-space-500, 20px) + var(--ion-scale-500, 20px) + var(--ion-space-200, 8px));
|
|
569
|
+
-webkit-padding-end: var(--ion-space-500, 20px);
|
|
570
|
+
padding-inline-end: var(--ion-space-500, 20px);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
/* Large with Leading Icons and Trailing Icons */
|
|
574
|
+
:host(.searchbar-size-large.searchbar-should-show-search-icon.searchbar-should-show-clear) .searchbar-input,
|
|
575
|
+
:host(.searchbar-size-large.searchbar-should-show-cancel.searchbar-should-show-clear) .searchbar-input {
|
|
446
576
|
/**
|
|
447
577
|
* Padding start is based on
|
|
448
578
|
* desired padding from design,
|
|
@@ -454,11 +584,38 @@ Do not edit directly, this file was auto-generated.
|
|
|
454
584
|
* the size of the trailing icon (clear),
|
|
455
585
|
* and the gap between the icon and the input.
|
|
456
586
|
*/
|
|
457
|
-
-webkit-padding-start: calc(var(--ion-space-500, 20px) + var(--
|
|
458
|
-
padding-inline-start: calc(var(--ion-space-500, 20px) + var(--
|
|
459
|
-
-webkit-padding-end: calc(var(--ion-space-500, 20px) + var(--
|
|
460
|
-
padding-inline-end: calc(var(--ion-space-500, 20px) + var(--
|
|
461
|
-
|
|
587
|
+
-webkit-padding-start: calc(var(--ion-space-500, 20px) + var(--ion-scale-500, 20px) + var(--ion-space-200, 8px));
|
|
588
|
+
padding-inline-start: calc(var(--ion-space-500, 20px) + var(--ion-scale-500, 20px) + var(--ion-space-200, 8px));
|
|
589
|
+
-webkit-padding-end: calc(var(--ion-space-500, 20px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
590
|
+
padding-inline-end: calc(var(--ion-space-500, 20px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/* Large with Trailing Icons */
|
|
594
|
+
:host(.searchbar-size-large.searchbar-should-show-clear) .searchbar-input {
|
|
595
|
+
/**
|
|
596
|
+
* Padding start is based on
|
|
597
|
+
* desired padding from design,
|
|
598
|
+
* no leading icons.
|
|
599
|
+
*
|
|
600
|
+
* Padding end is based on
|
|
601
|
+
* desired padding from design,
|
|
602
|
+
* the size of the trailing icon (clear),
|
|
603
|
+
* and the gap between the icon and the input.
|
|
604
|
+
*/
|
|
605
|
+
-webkit-padding-start: var(--ion-space-500, 20px);
|
|
606
|
+
padding-inline-start: var(--ion-space-500, 20px);
|
|
607
|
+
-webkit-padding-end: calc(var(--ion-space-500, 20px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
608
|
+
padding-inline-end: calc(var(--ion-space-500, 20px) + var(--ion-scale-400, 16px) + var(--ion-space-200, 8px));
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
:host(.in-toolbar.searchbar-size-large.searchbar-should-show-cancel) .searchbar-input {
|
|
612
|
+
/**
|
|
613
|
+
* Padding start is based on
|
|
614
|
+
* the alignment of the back button,
|
|
615
|
+
* the size of the leading icon (search or cancel),
|
|
616
|
+
* and the gap between the icon and the input.
|
|
617
|
+
*/
|
|
618
|
+
padding-inline-start: calc(9px + var(--ion-scale-500, 20px) + var(--ion-space-200, 8px));
|
|
462
619
|
}
|
|
463
620
|
|
|
464
621
|
:host(.searchbar-size-large) .searchbar-search-icon,
|
|
@@ -7,7 +7,7 @@ import xRegular from "@phosphor-icons/core/assets/regular/x.svg";
|
|
|
7
7
|
import { Host, forceUpdate, h } from "@stencil/core";
|
|
8
8
|
import { debounceEvent, raf, componentOnReady, inheritAttributes } from "../../utils/helpers";
|
|
9
9
|
import { isRTL } from "../../utils/rtl/index";
|
|
10
|
-
import { createColorClasses } from "../../utils/theme";
|
|
10
|
+
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
11
11
|
import { arrowBackSharp, closeCircle, closeSharp, searchOutline, searchSharp } from "ionicons/icons";
|
|
12
12
|
import { config } from "../../global/config";
|
|
13
13
|
import { getIonTheme } from "../../global/ionic-global";
|
|
@@ -353,6 +353,12 @@ export class Searchbar {
|
|
|
353
353
|
hasValue() {
|
|
354
354
|
return this.getValue() !== '';
|
|
355
355
|
}
|
|
356
|
+
shouldShowSearchIcon() {
|
|
357
|
+
if (this.searchIcon === false || this.searchIcon === 'false') {
|
|
358
|
+
return false;
|
|
359
|
+
}
|
|
360
|
+
return true;
|
|
361
|
+
}
|
|
356
362
|
/**
|
|
357
363
|
* Determines whether or not the cancel button should be visible onscreen.
|
|
358
364
|
* Cancel button should be shown if one of two conditions applies:
|
|
@@ -370,12 +376,14 @@ export class Searchbar {
|
|
|
370
376
|
* Clear button should be shown if one of two conditions applies:
|
|
371
377
|
* 1. `showClearButton` is set to `always`.
|
|
372
378
|
* 2. `showClearButton` is set to `focus`, and the searchbar has been focused.
|
|
379
|
+
* Unless the `theme` is `ionic` and the searchbar is disabled.
|
|
373
380
|
*/
|
|
374
381
|
shouldShowClearButton() {
|
|
382
|
+
const theme = getIonTheme(this);
|
|
375
383
|
if (this.showClearButton === 'never' || (this.showClearButton === 'focus' && !this.focused)) {
|
|
376
384
|
return false;
|
|
377
385
|
}
|
|
378
|
-
if (
|
|
386
|
+
if (theme === 'ionic' && this.disabled) {
|
|
379
387
|
return false;
|
|
380
388
|
}
|
|
381
389
|
return true;
|
|
@@ -434,8 +442,9 @@ export class Searchbar {
|
|
|
434
442
|
* If no icon is set in the config, use the default icon.
|
|
435
443
|
*/
|
|
436
444
|
get searchbarSearchIcon() {
|
|
437
|
-
// Return the icon if it is explicitly set
|
|
438
|
-
|
|
445
|
+
// Return the icon if it is explicitly set.
|
|
446
|
+
// If the icon is set to a boolean or string 'true', use the default icon.
|
|
447
|
+
if (this.searchIcon != null && this.searchIcon !== 'true' && typeof this.searchIcon !== 'boolean') {
|
|
439
448
|
return this.searchIcon;
|
|
440
449
|
}
|
|
441
450
|
// Determine the theme and map to default icons
|
|
@@ -480,8 +489,8 @@ export class Searchbar {
|
|
|
480
489
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
481
490
|
const shape = this.getShape();
|
|
482
491
|
const size = this.getSize();
|
|
483
|
-
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '
|
|
484
|
-
return (h(Host, { key: '
|
|
492
|
+
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: 'f978eb2bb693dd716a1571cfe0d348e59bbc3a7d', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: theme === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, h("div", { key: 'e09e8b025aa8022a1eadd96f43390411958f8ed3', "aria-hidden": "true" }, theme === 'md' || theme === 'ionic' ? (h("ion-icon", { "aria-hidden": "true", icon: searchbarCancelIcon, lazy: false })) : (cancelButtonText))));
|
|
493
|
+
return (h(Host, { key: 'f2955600fbd3be1a6c6af170d73ba75560ef5838', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses(this.color, {
|
|
485
494
|
[theme]: true,
|
|
486
495
|
'searchbar-animated': animated,
|
|
487
496
|
'searchbar-disabled': this.disabled,
|
|
@@ -489,19 +498,20 @@ export class Searchbar {
|
|
|
489
498
|
'searchbar-has-value': this.hasValue(),
|
|
490
499
|
'searchbar-left-aligned': this.shouldAlignLeft,
|
|
491
500
|
'searchbar-has-focus': this.focused,
|
|
492
|
-
'searchbar-
|
|
501
|
+
'searchbar-should-show-search-icon': this.shouldShowSearchIcon(),
|
|
493
502
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
494
503
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
495
504
|
[`searchbar-shape-${shape}`]: shape !== undefined,
|
|
496
505
|
[`searchbar-size-${size}`]: size !== undefined,
|
|
497
|
-
|
|
506
|
+
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
507
|
+
}) }, h("div", { key: '407c64f52b099e069ba443d5feec8a86d8d9e084', class: "searchbar-input-container" }, h("input", Object.assign({ key: 'dd459a8872fab4c0ae3dc7d60ec900ddbc511917', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), (theme === 'md' || theme === 'ionic') && cancelButton, this.shouldShowSearchIcon() && (h("ion-icon", { key: 'c7b2e9aaefe535c8817dc82ac38ee28635cd468a', "aria-hidden": "true", icon: searchbarSearchIcon, lazy: false, class: "searchbar-search-icon" })), this.shouldShowClearButton() && (h("button", { key: '5502ee6bed753f38f1e150aa45fb9826364404c4', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
498
508
|
/**
|
|
499
509
|
* This prevents mobile browsers from
|
|
500
510
|
* blurring the input when the clear
|
|
501
511
|
* button is activated.
|
|
502
512
|
*/
|
|
503
513
|
ev.preventDefault();
|
|
504
|
-
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { "aria-hidden": "true", icon: searchbarClearIcon, lazy: false,
|
|
514
|
+
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: '8e22c45df1c254efc5482d4d56bcec10e67a257d', "aria-hidden": "true", icon: searchbarClearIcon, lazy: false, className: "searchbar-clear-icon" })))), theme === 'ios' && cancelButton));
|
|
505
515
|
}
|
|
506
516
|
static get is() { return "ion-searchbar"; }
|
|
507
517
|
static get encapsulation() { return "scoped"; }
|
|
@@ -814,18 +824,18 @@ export class Searchbar {
|
|
|
814
824
|
"defaultValue": "'Search'"
|
|
815
825
|
},
|
|
816
826
|
"searchIcon": {
|
|
817
|
-
"type": "
|
|
827
|
+
"type": "any",
|
|
818
828
|
"mutable": false,
|
|
819
829
|
"complexType": {
|
|
820
|
-
"original": "string",
|
|
821
|
-
"resolved": "string | undefined",
|
|
830
|
+
"original": "string | boolean",
|
|
831
|
+
"resolved": "boolean | string | undefined",
|
|
822
832
|
"references": {}
|
|
823
833
|
},
|
|
824
834
|
"required": false,
|
|
825
835
|
"optional": true,
|
|
826
836
|
"docs": {
|
|
827
837
|
"tags": [],
|
|
828
|
-
"text": "The icon to use as the search icon. Defaults to `\"search-outline\"` in\nthe `\"ios\"` theme and `\"search-sharp\"` in the `\"md\"` and `\"ionic\"` themes."
|
|
838
|
+
"text": "The icon to use as the search icon. Defaults to `\"search-outline\"` in\nthe `\"ios\"` theme and `\"search-sharp\"` in the `\"md\"` and `\"ionic\"` themes.\nIf `false`, no search icon will be displayed."
|
|
829
839
|
},
|
|
830
840
|
"attribute": "search-icon",
|
|
831
841
|
"reflect": false
|
|
@@ -531,14 +531,14 @@ export class Segment {
|
|
|
531
531
|
}
|
|
532
532
|
render() {
|
|
533
533
|
const theme = getIonTheme(this);
|
|
534
|
-
return (h(Host, { key: '
|
|
534
|
+
return (h(Host, { key: 'ecc6677de570a3e484ce10f7ec9fdcea002208cf', role: "tablist", onClick: this.onClick, class: createColorClasses(this.color, {
|
|
535
535
|
[theme]: true,
|
|
536
536
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
537
537
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
538
538
|
'segment-activated': this.activated,
|
|
539
539
|
'segment-disabled': this.disabled,
|
|
540
540
|
'segment-scrollable': this.scrollable,
|
|
541
|
-
}) }, h("slot", { key: '
|
|
541
|
+
}) }, h("slot", { key: '4145cedfc55f8e5c01b818b80a517f04d1f7d087', onSlotchange: this.onSlottedItemsChange })));
|
|
542
542
|
}
|
|
543
543
|
static get is() { return "ion-segment"; }
|
|
544
544
|
static get encapsulation() { return "shadow"; }
|
|
@@ -272,7 +272,7 @@ Do not edit directly, this file was auto-generated.
|
|
|
272
272
|
--color-checked: var(--ion-semantics-primary-base, #105cef);
|
|
273
273
|
--color-disabled: var(--ion-primitives-neutral-500, #a2a2a2);
|
|
274
274
|
--border-width: var(--ion-border-size-025, 1px);
|
|
275
|
-
--border-color: var(--ion-primitives-neutral-300, #
|
|
275
|
+
--border-color: var(--ion-primitives-neutral-300, #e0e0e0);
|
|
276
276
|
--border-style: var(--ion-border-style-solid, solid);
|
|
277
277
|
--indicator-box-shadow: none;
|
|
278
278
|
--indicator-color: var(--color-checked);
|
|
@@ -141,7 +141,7 @@ export class SegmentButton {
|
|
|
141
141
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
142
142
|
const theme = getIonTheme(this);
|
|
143
143
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
144
|
-
return (h(Host, { key: '
|
|
144
|
+
return (h(Host, { key: 'de3759e2b7b27d1c9dcae5d7dcea98efde485343', class: {
|
|
145
145
|
[theme]: true,
|
|
146
146
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
147
147
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -157,7 +157,7 @@ export class SegmentButton {
|
|
|
157
157
|
'ion-activatable': true,
|
|
158
158
|
'ion-activatable-instant': true,
|
|
159
159
|
'ion-focusable': true,
|
|
160
|
-
} }, h("button", Object.assign({ key: '
|
|
160
|
+
} }, h("button", Object.assign({ key: '937636b8c2429a9fbe87180f7c56127e89d0a681', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled }, this.inheritedAttributes), h("span", { key: '137eac7e38aa5a7d15af4e1f1d4114a4f8509463', class: "button-inner" }, h("slot", { key: 'a824aa5ebf7203bc4a3d5ba51877de6a4461af6c' })), theme === 'md' && h("ion-ripple-effect", { key: 'e60d58db031a441e430368330c7d2797f9ff9afd' })), h("div", { key: '1d5fe5d4c98f62bb4ffc0331855db85a7bd956b8', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: '233f6aaca87b1b741def3bffc8205192e468bca2', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
161
161
|
}
|
|
162
162
|
static get is() { return "ion-segment-button"; }
|
|
163
163
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Host, h } from "@stencil/core";
|
|
5
5
|
export class SegmentContent {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '1f7f256fdeb7ec661c84f268b239ab21ef170629' }, h("slot", { key: 'c704cf3b4c13deeb612d8a8ffdccef65d62f0866' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "ion-segment-content"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -94,10 +94,10 @@ export class SegmentView {
|
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
96
|
const { disabled, isManualScroll } = this;
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: 'a0b77ea1b2805b87da550d576aa9b0a36ada5d9f', class: {
|
|
98
98
|
'segment-view-disabled': disabled,
|
|
99
99
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
100
|
-
} }, h("slot", { key: '
|
|
100
|
+
} }, h("slot", { key: '0170106f9448d8d05d929ca0dc05add670db96b4' })));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "ion-segment-view"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -672,7 +672,7 @@ button {
|
|
|
672
672
|
|
|
673
673
|
:host(.select-disabled) {
|
|
674
674
|
--background: var(--ion-primitives-neutral-100, #f5f5f5);
|
|
675
|
-
--border-color: var(--ion-primitives-neutral-300, #
|
|
675
|
+
--border-color: var(--ion-primitives-neutral-300, #e0e0e0);
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
:host(.select-disabled) .label-text-wrapper,
|
|
@@ -732,7 +732,7 @@ export class Select {
|
|
|
732
732
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
733
733
|
*/
|
|
734
734
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
735
|
-
return (h(Host, { key: '
|
|
735
|
+
return (h(Host, { key: '764b2a2f30615cb78b5fd0e20a829910898e8676', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
736
736
|
[theme]: true,
|
|
737
737
|
'in-item': inItem,
|
|
738
738
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -749,7 +749,7 @@ export class Select {
|
|
|
749
749
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
750
750
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
751
751
|
[`select-size-${size}`]: size !== undefined,
|
|
752
|
-
}) }, h("label", { key: '
|
|
752
|
+
}) }, h("label", { key: '35f43c1ad2d01bcf996dd27a0fff3d6f323cd517', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '6d30179d19583b068e67552834d72b3d31f2c0f4', class: "select-wrapper-inner" },
|
|
753
753
|
/**
|
|
754
754
|
* For the ionic theme, we render the outline container here
|
|
755
755
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -759,7 +759,7 @@ export class Select {
|
|
|
759
759
|
* <label> element, ensuring that clicking the label text
|
|
760
760
|
* focuses the select.
|
|
761
761
|
*/
|
|
762
|
-
theme === 'ionic' && fill === 'outline' && h("div", { key: '
|
|
762
|
+
theme === 'ionic' && fill === 'outline' && h("div", { key: '01a8af86d9b25d5ea4cab0f85c4bf1db1465b5d8', class: "select-outline" }), h("slot", { key: 'd5478a1b67a3de05019167f26381d8c453cec8ff', name: "start" }), h("div", { key: '77547d4cca137afe346222988f16a74ea874a547', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '5ded9c58c3eb9508622c62820d85dd5ff033e6f2', name: "end" }), shouldRenderInnerIcon && this.renderSelectIcon()), shouldRenderOuterIcon && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'bebf742e3d961e4ed2c933e3925e920322f1d393', class: "select-highlight" }))));
|
|
763
763
|
}
|
|
764
764
|
static get is() { return "ion-select"; }
|
|
765
765
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,7 +77,7 @@ export class SelectModal {
|
|
|
77
77
|
} }, option.text))));
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: 'fd5b1e78d540c7ae6d0fca737a6fc1d983a8c19b', class: getIonMode(this) }, h("ion-header", { key: '7eec49fcb0a0f0b1e20f3a1f92d28cd15924d265' }, h("ion-toolbar", { key: 'aea8148d3207089db6475579479cb64c16594985' }, this.header !== undefined && h("ion-title", { key: 'f2e6d4ae608dfa5fdba9ed466e078545b55fc7df' }, this.header), h("ion-buttons", { key: 'bea2a3f2448e1907eee3a4e46a2d5e3b99b62763', slot: "end" }, h("ion-button", { key: 'd7db36683d5cff25c3084dccecb736cc55d94965', onClick: () => this.closeModal() }, "Close")))), h("ion-content", { key: '18749c394b34c8f568a1e280e1a19f3a46545a61' }, h("ion-list", { key: '8f84ca4450d196bcd000eecb532d0766a840755d' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "ion-select-modal"; }
|
|
83
83
|
static get encapsulation() { return "scoped"; }
|
|
@@ -15,7 +15,7 @@ export class SelectOption {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
const theme = getIonTheme(this);
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'ac13bcd1ee8b4ffd1d7ce80be242881cc126cb7a', class: {
|
|
19
19
|
[theme]: true,
|
|
20
20
|
}, role: "option", id: this.inputId }));
|
|
21
21
|
}
|
|
@@ -106,9 +106,9 @@ export class SelectPopover {
|
|
|
106
106
|
const { header, message, options, subHeader } = this;
|
|
107
107
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
108
108
|
const theme = getIonTheme(this);
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: '165cfd34fb0bc0cada6ef2cf5de6ba9dfd4f4416', class: {
|
|
110
110
|
[theme]: true,
|
|
111
|
-
} }, h("ion-list", { key: '
|
|
111
|
+
} }, h("ion-list", { key: '50c27cf2f57036deca42c50cad9968e7ab98ba38' }, header !== undefined && h("ion-list-header", { key: '4e2993d4eb9d72440e0838111d08536e9117289a' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: 'cec715effe534af3fb8e590bed3955a07fac2683' }, h("ion-label", { key: 'cce3fdc3c2ace609f221c546671fb698eeb17e79', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: '5a5615928a5b27bb7eb6998e3e207e8e13bcc058' }, subHeader), message !== undefined && h("p", { key: '16a6625a710a2e65578f55306615dfefce1cba69' }, message)))), this.renderOptions(options))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "ion-select-popover"; }
|
|
114
114
|
static get encapsulation() { return "scoped"; }
|
|
@@ -29,11 +29,11 @@ export class SkeletonText {
|
|
|
29
29
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
30
30
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
31
31
|
const theme = getIonTheme(this);
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '4aaca37db97d932fcd589c69c6ebc2c9b164c0f4', class: {
|
|
33
33
|
[theme]: true,
|
|
34
34
|
'skeleton-text-animated': animated,
|
|
35
35
|
'in-media': inMedia,
|
|
36
|
-
} }, h("span", { key: '
|
|
36
|
+
} }, h("span", { key: '900fc5602bc6668e0c48bb83e16d5db27eefa5e7' }, "\u00A0")));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "ion-skeleton-text"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|