@ionic/core 8.4.2-dev.11741694411.1b71f442 → 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 +3 -3
- 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 +23 -10
- 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 +3 -3
- 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 +21 -8
- 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 +42 -22
- package/dist/collection/components/button/button.ios.css +2 -1
- package/dist/collection/components/button/button.md.css +2 -1
- 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 +210 -49
- package/dist/collection/components/searchbar/searchbar.js +25 -12
- 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 +3 -3
- 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 +22 -9
- 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-9c075207.system.entry.js +4 -0
- 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-c42e9967.entry.js +4 -0
- 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 +79 -66
- package/hydrate/index.mjs +79 -66
- package/package.json +2 -2
- package/dist/ionic/p-5d03dea8.entry.js +0 -4
- package/dist/ionic/p-6c6d7c34.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-a6ad7cc9.entry.js +0 -4
- package/dist/ionic/p-b99343c0.entry.js +0 -4
- package/dist/ionic/p-bed26b75.system.entry.js +0 -4
- package/dist/ionic/p-dfafc1a5.system.entry.js +0 -4
- package/dist/ionic/p-e9c36e22.system.entry.js +0 -4
- package/dist/ionic/p-f52c1b1b.entry.js +0 -4
|
@@ -411,8 +411,8 @@ ion-ripple-effect {
|
|
|
411
411
|
|
|
412
412
|
:host {
|
|
413
413
|
--background: var(--ion-primitives-base-white, #ffffff);
|
|
414
|
-
--background-activated: var(--ion-primitives-neutral-200, #
|
|
415
|
-
--border-color: var(--ion-primitives-neutral-300, #
|
|
414
|
+
--background-activated: var(--ion-primitives-neutral-200, #efefef);
|
|
415
|
+
--border-color: var(--ion-primitives-neutral-300, #e0e0e0);
|
|
416
416
|
--border-style: var(--ion-border-style-solid, solid);
|
|
417
417
|
--border-width: 0 0 var(--ion-border-size-025, 1px) 0;
|
|
418
418
|
--color: var(--ion-primitives-neutral-1200, #242424);
|
|
@@ -228,7 +228,7 @@ ion-backdrop {
|
|
|
228
228
|
border-radius: var(--ion-border-radius-100, 4px);
|
|
229
229
|
width: var(--ion-scale-1100, 44px);
|
|
230
230
|
height: var(--ion-scale-100, 4px);
|
|
231
|
-
background-color: var(--ion-primitives-neutral-300, #
|
|
231
|
+
background-color: var(--ion-primitives-neutral-300, #e0e0e0);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
:host(.modal-sheet) .modal-wrapper {
|
|
@@ -320,7 +320,7 @@ Do not edit directly, this file was auto-generated.
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
:host {
|
|
323
|
-
--background: var(--ion-bg-neutral-subtle-default, #
|
|
323
|
+
--background: var(--ion-bg-neutral-subtle-default, #efefef);
|
|
324
324
|
height: var(--ion-scale-100, 4px);
|
|
325
325
|
}
|
|
326
326
|
|
|
@@ -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-
|
|
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-
|
|
227
|
-
--placeholder-color: var(--ion-
|
|
226
|
+
--icon-color: var(--ion-icon-subtlest, #626262);
|
|
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%);
|
|
@@ -249,8 +247,8 @@ Do not edit directly, this file was auto-generated.
|
|
|
249
247
|
.searchbar-input {
|
|
250
248
|
padding-top: var(--ion-space-300, 12px);
|
|
251
249
|
padding-bottom: var(--ion-space-300, 12px);
|
|
252
|
-
contain: strict;
|
|
253
250
|
text-overflow: ellipsis;
|
|
251
|
+
contain: strict;
|
|
254
252
|
}
|
|
255
253
|
|
|
256
254
|
.searchbar-clear-button {
|
|
@@ -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,11 +281,11 @@ Do not edit directly, this file was auto-generated.
|
|
|
287
281
|
opacity: 1;
|
|
288
282
|
}
|
|
289
283
|
|
|
290
|
-
:host(
|
|
291
|
-
--
|
|
284
|
+
:host(.searchbar-has-value) {
|
|
285
|
+
--icon-color: var(--ion-icon-default, #242424);
|
|
292
286
|
}
|
|
293
287
|
|
|
294
|
-
:host
|
|
288
|
+
:host(.in-toolbar.searchbar-should-show-cancel) .searchbar-cancel-button {
|
|
295
289
|
/**
|
|
296
290
|
* The left edge of the cancel button
|
|
297
291
|
* should align with the left edge
|
|
@@ -300,23 +294,13 @@ Do not edit directly, this file was auto-generated.
|
|
|
300
294
|
* the searchbar size.
|
|
301
295
|
*/
|
|
302
296
|
}
|
|
303
|
-
:host
|
|
297
|
+
:host(.in-toolbar.searchbar-should-show-cancel) .searchbar-cancel-button {
|
|
304
298
|
inset-inline-start: 9px;
|
|
305
299
|
}
|
|
306
300
|
|
|
307
|
-
:host-context(ion-toolbar).searchbar-should-show-cancel .searchbar-input {
|
|
308
|
-
/**
|
|
309
|
-
* Padding start is based on
|
|
310
|
-
* the alignment of the back button,
|
|
311
|
-
* the size of the leading icon (search or cancel),
|
|
312
|
-
* and the gap between the icon and the input.
|
|
313
|
-
*/
|
|
314
|
-
padding-inline-start: calc(9px + var(--leading-icon-padding));
|
|
315
|
-
}
|
|
316
|
-
|
|
317
301
|
/* Hover */
|
|
318
302
|
:host(:hover) {
|
|
319
|
-
--background: var(--ion-primitives-neutral-200, #
|
|
303
|
+
--background: var(--ion-primitives-neutral-200, #efefef);
|
|
320
304
|
}
|
|
321
305
|
|
|
322
306
|
/* Focus */
|
|
@@ -338,8 +322,8 @@ Do not edit directly, this file was auto-generated.
|
|
|
338
322
|
/* Disabled */
|
|
339
323
|
:host(.searchbar-disabled) {
|
|
340
324
|
--color: var(--ion-primitives-neutral-500, #a2a2a2);
|
|
341
|
-
--icon-color: var(--ion-
|
|
342
|
-
--placeholder-color: var(--ion-
|
|
325
|
+
--icon-color: var(--ion-icon-disabled, #a2a2a2);
|
|
326
|
+
--placeholder-color: var(--ion-text-disabled, #a2a2a2);
|
|
343
327
|
cursor: default;
|
|
344
328
|
pointer-events: none;
|
|
345
329
|
}
|
|
@@ -358,6 +342,44 @@ Do not edit directly, this file was auto-generated.
|
|
|
358
342
|
|
|
359
343
|
/* Small */
|
|
360
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 {
|
|
361
383
|
/**
|
|
362
384
|
* Padding start is based on
|
|
363
385
|
* desired padding from design,
|
|
@@ -369,11 +391,28 @@ Do not edit directly, this file was auto-generated.
|
|
|
369
391
|
* the size of the trailing icon (clear),
|
|
370
392
|
* and the gap between the icon and the input.
|
|
371
393
|
*/
|
|
372
|
-
-webkit-padding-start: calc(var(--ion-space-300, 12px) + var(--
|
|
373
|
-
padding-inline-start: calc(var(--ion-space-300, 12px) + var(--
|
|
374
|
-
-webkit-padding-end: calc(var(--ion-space-300, 12px) + var(--
|
|
375
|
-
padding-inline-end: calc(var(--ion-space-300, 12px) + var(--
|
|
376
|
-
|
|
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));
|
|
377
416
|
}
|
|
378
417
|
|
|
379
418
|
:host(.searchbar-size-small) .searchbar-search-icon,
|
|
@@ -387,6 +426,44 @@ Do not edit directly, this file was auto-generated.
|
|
|
387
426
|
|
|
388
427
|
/* Medium */
|
|
389
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 {
|
|
390
467
|
/**
|
|
391
468
|
* Padding start is based on
|
|
392
469
|
* desired padding from design,
|
|
@@ -398,11 +475,28 @@ Do not edit directly, this file was auto-generated.
|
|
|
398
475
|
* the size of the trailing icon (clear),
|
|
399
476
|
* and the gap between the icon and the input.
|
|
400
477
|
*/
|
|
401
|
-
-webkit-padding-start: calc(var(--ion-space-400, 16px) + var(--
|
|
402
|
-
padding-inline-start: calc(var(--ion-space-400, 16px) + var(--
|
|
403
|
-
-webkit-padding-end: calc(var(--ion-space-400, 16px) + var(--
|
|
404
|
-
padding-inline-end: calc(var(--ion-space-400, 16px) + var(--
|
|
405
|
-
|
|
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));
|
|
406
500
|
}
|
|
407
501
|
|
|
408
502
|
:host(.searchbar-size-medium) .searchbar-search-icon,
|
|
@@ -414,10 +508,20 @@ Do not edit directly, this file was auto-generated.
|
|
|
414
508
|
inset-inline-end: var(--ion-space-400, 16px);
|
|
415
509
|
}
|
|
416
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
|
+
|
|
417
522
|
/* Large */
|
|
418
523
|
:host(.searchbar-size-large) .searchbar-search-icon,
|
|
419
524
|
:host(.searchbar-size-large) .searchbar-cancel-button {
|
|
420
|
-
--leading-icon-padding: calc(var(--ion-scale-500, 20px) + var(--ion-space-200, 8px));
|
|
421
525
|
width: var(--ion-scale-500, 20px);
|
|
422
526
|
height: var(--ion-scale-500, 20px);
|
|
423
527
|
}
|
|
@@ -426,19 +530,49 @@ Do not edit directly, this file was auto-generated.
|
|
|
426
530
|
font-size: var(--ion-font-size-500, 1.25rem);
|
|
427
531
|
}
|
|
428
532
|
|
|
429
|
-
:host
|
|
533
|
+
:host(.searchbar-size-large) .searchbar-input {
|
|
534
|
+
padding-top: var(--ion-space-400, 16px);
|
|
535
|
+
padding-bottom: var(--ion-space-400, 16px);
|
|
430
536
|
/**
|
|
431
537
|
* Padding start is based on
|
|
432
|
-
*
|
|
538
|
+
* desired padding from design,
|
|
433
539
|
* the size of the leading icon (search or cancel),
|
|
434
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.
|
|
435
546
|
*/
|
|
436
|
-
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);
|
|
437
552
|
}
|
|
438
553
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
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 {
|
|
442
576
|
/**
|
|
443
577
|
* Padding start is based on
|
|
444
578
|
* desired padding from design,
|
|
@@ -450,11 +584,38 @@ Do not edit directly, this file was auto-generated.
|
|
|
450
584
|
* the size of the trailing icon (clear),
|
|
451
585
|
* and the gap between the icon and the input.
|
|
452
586
|
*/
|
|
453
|
-
-webkit-padding-start: calc(var(--ion-space-500, 20px) + var(--
|
|
454
|
-
padding-inline-start: calc(var(--ion-space-500, 20px) + var(--
|
|
455
|
-
-webkit-padding-end: calc(var(--ion-space-500, 20px) + var(--
|
|
456
|
-
padding-inline-end: calc(var(--ion-space-500, 20px) + var(--
|
|
457
|
-
|
|
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));
|
|
458
619
|
}
|
|
459
620
|
|
|
460
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,11 +376,16 @@ 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
|
}
|
|
386
|
+
if (theme === 'ionic' && this.disabled) {
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
378
389
|
return true;
|
|
379
390
|
}
|
|
380
391
|
getShape() {
|
|
@@ -431,8 +442,9 @@ export class Searchbar {
|
|
|
431
442
|
* If no icon is set in the config, use the default icon.
|
|
432
443
|
*/
|
|
433
444
|
get searchbarSearchIcon() {
|
|
434
|
-
// Return the icon if it is explicitly set
|
|
435
|
-
|
|
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') {
|
|
436
448
|
return this.searchIcon;
|
|
437
449
|
}
|
|
438
450
|
// Determine the theme and map to default icons
|
|
@@ -477,8 +489,8 @@ export class Searchbar {
|
|
|
477
489
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
478
490
|
const shape = this.getShape();
|
|
479
491
|
const size = this.getSize();
|
|
480
|
-
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '
|
|
481
|
-
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, {
|
|
482
494
|
[theme]: true,
|
|
483
495
|
'searchbar-animated': animated,
|
|
484
496
|
'searchbar-disabled': this.disabled,
|
|
@@ -486,19 +498,20 @@ export class Searchbar {
|
|
|
486
498
|
'searchbar-has-value': this.hasValue(),
|
|
487
499
|
'searchbar-left-aligned': this.shouldAlignLeft,
|
|
488
500
|
'searchbar-has-focus': this.focused,
|
|
489
|
-
'searchbar-
|
|
501
|
+
'searchbar-should-show-search-icon': this.shouldShowSearchIcon(),
|
|
490
502
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
491
503
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
492
504
|
[`searchbar-shape-${shape}`]: shape !== undefined,
|
|
493
505
|
[`searchbar-size-${size}`]: size !== undefined,
|
|
494
|
-
|
|
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) => {
|
|
495
508
|
/**
|
|
496
509
|
* This prevents mobile browsers from
|
|
497
510
|
* blurring the input when the clear
|
|
498
511
|
* button is activated.
|
|
499
512
|
*/
|
|
500
513
|
ev.preventDefault();
|
|
501
|
-
}, 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));
|
|
502
515
|
}
|
|
503
516
|
static get is() { return "ion-searchbar"; }
|
|
504
517
|
static get encapsulation() { return "scoped"; }
|
|
@@ -811,18 +824,18 @@ export class Searchbar {
|
|
|
811
824
|
"defaultValue": "'Search'"
|
|
812
825
|
},
|
|
813
826
|
"searchIcon": {
|
|
814
|
-
"type": "
|
|
827
|
+
"type": "any",
|
|
815
828
|
"mutable": false,
|
|
816
829
|
"complexType": {
|
|
817
|
-
"original": "string",
|
|
818
|
-
"resolved": "string | undefined",
|
|
830
|
+
"original": "string | boolean",
|
|
831
|
+
"resolved": "boolean | string | undefined",
|
|
819
832
|
"references": {}
|
|
820
833
|
},
|
|
821
834
|
"required": false,
|
|
822
835
|
"optional": true,
|
|
823
836
|
"docs": {
|
|
824
837
|
"tags": [],
|
|
825
|
-
"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."
|
|
826
839
|
},
|
|
827
840
|
"attribute": "search-icon",
|
|
828
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"; }
|