@ionic/core 8.2.3-dev.11720020551.1b35ace4 → 8.2.3-dev.11721064272.19e3ddfd

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.
Files changed (159) hide show
  1. package/components/checkbox.js +1 -1
  2. package/components/ion-segment-content.d.ts +11 -0
  3. package/components/ion-segment-content.js +38 -0
  4. package/components/ion-segment-view.d.ts +11 -0
  5. package/components/ion-segment-view.js +86 -0
  6. package/components/ion-segment.js +11 -3
  7. package/components/ion-select-option.js +1 -1
  8. package/components/ion-select.js +2 -2
  9. package/components/ion-skeleton-text.js +2 -2
  10. package/components/ion-split-pane.js +2 -2
  11. package/components/ion-tab-bar.js +2 -2
  12. package/components/ion-tab-button.js +2 -2
  13. package/components/ion-tab.js +2 -2
  14. package/components/ion-tabs.js +1 -1
  15. package/components/ion-text.js +2 -2
  16. package/components/ion-textarea.js +2 -2
  17. package/components/ion-thumbnail.js +2 -2
  18. package/components/ion-title.js +2 -2
  19. package/components/ion-toast.js +2 -2
  20. package/components/ion-toggle.js +3 -3
  21. package/components/ion-toolbar.js +2 -2
  22. package/components/select-popover.js +2 -2
  23. package/components/spinner.js +1 -1
  24. package/css/ionic/bundle.ionic.css +1 -1
  25. package/css/ionic/bundle.ionic.css.map +1 -1
  26. package/css/ionic/core.ionic.css.map +1 -1
  27. package/css/ionic/global.bundle.ionic.css.map +1 -1
  28. package/css/ionic/link.ionic.css.map +1 -1
  29. package/css/ionic/typography.ionic.css.map +1 -1
  30. package/css/ionic/utils.bundle.ionic.css +1 -1
  31. package/css/ionic/utils.bundle.ionic.css.map +1 -1
  32. package/dist/cjs/ion-app_8.cjs.entry.js +4 -4
  33. package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
  34. package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
  35. package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
  36. package/dist/cjs/ion-segment-content.cjs.entry.js +24 -0
  37. package/dist/cjs/ion-segment-view.cjs.entry.js +72 -0
  38. package/dist/cjs/ion-segment_2.cjs.entry.js +11 -3
  39. package/dist/cjs/ion-select_3.cjs.entry.js +5 -5
  40. package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
  41. package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
  42. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
  43. package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
  44. package/dist/cjs/ion-text.cjs.entry.js +2 -2
  45. package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
  46. package/dist/cjs/ion-toast.cjs.entry.js +2 -2
  47. package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
  48. package/dist/cjs/ionic.cjs.js +1 -1
  49. package/dist/cjs/loader.cjs.js +1 -1
  50. package/dist/collection/collection-manifest.json +2 -0
  51. package/dist/collection/components/checkbox/checkbox.ionic.css +29 -18
  52. package/dist/collection/components/checkbox/test/basic/checkbox.e2e.js +12 -1
  53. package/dist/collection/components/segment/segment.js +11 -3
  54. package/dist/collection/components/segment-content/segment-content.css +5 -0
  55. package/dist/collection/components/segment-content/segment-content.js +22 -0
  56. package/dist/collection/components/segment-view/segment-view.css +15 -0
  57. package/dist/collection/components/segment-view/segment-view.js +81 -0
  58. package/dist/collection/components/select/select.js +2 -2
  59. package/dist/collection/components/select-option/select-option.js +1 -1
  60. package/dist/collection/components/select-popover/select-popover.js +2 -2
  61. package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
  62. package/dist/collection/components/spinner/spinner.js +1 -1
  63. package/dist/collection/components/split-pane/split-pane.js +2 -2
  64. package/dist/collection/components/tab/tab.js +2 -2
  65. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  66. package/dist/collection/components/tab-button/tab-button.js +2 -2
  67. package/dist/collection/components/tabs/tabs.js +1 -1
  68. package/dist/collection/components/text/text.js +2 -2
  69. package/dist/collection/components/textarea/textarea.js +2 -2
  70. package/dist/collection/components/thumbnail/thumbnail.js +2 -2
  71. package/dist/collection/components/title/title.js +2 -2
  72. package/dist/collection/components/toast/toast.js +2 -2
  73. package/dist/collection/components/toggle/toggle.js +3 -3
  74. package/dist/collection/components/toolbar/toolbar.js +2 -2
  75. package/dist/docs.json +43 -1
  76. package/dist/esm/ion-app_8.entry.js +4 -4
  77. package/dist/esm/ion-avatar_3.entry.js +2 -2
  78. package/dist/esm/ion-checkbox.entry.js +1 -1
  79. package/dist/esm/ion-item_8.entry.js +2 -2
  80. package/dist/esm/ion-segment-content.entry.js +20 -0
  81. package/dist/esm/ion-segment-view.entry.js +68 -0
  82. package/dist/esm/ion-segment_2.entry.js +11 -3
  83. package/dist/esm/ion-select_3.entry.js +5 -5
  84. package/dist/esm/ion-spinner.entry.js +1 -1
  85. package/dist/esm/ion-split-pane.entry.js +2 -2
  86. package/dist/esm/ion-tab-bar_2.entry.js +4 -4
  87. package/dist/esm/ion-tab_2.entry.js +3 -3
  88. package/dist/esm/ion-text.entry.js +2 -2
  89. package/dist/esm/ion-textarea.entry.js +2 -2
  90. package/dist/esm/ion-toast.entry.js +2 -2
  91. package/dist/esm/ion-toggle.entry.js +3 -3
  92. package/dist/esm/ionic.js +1 -1
  93. package/dist/esm/loader.js +1 -1
  94. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  95. package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
  96. package/dist/esm-es5/ion-checkbox.entry.js +1 -1
  97. package/dist/esm-es5/ion-item_8.entry.js +1 -1
  98. package/dist/esm-es5/ion-segment-content.entry.js +4 -0
  99. package/dist/esm-es5/ion-segment-view.entry.js +4 -0
  100. package/dist/esm-es5/ion-segment_2.entry.js +1 -1
  101. package/dist/esm-es5/ion-select_3.entry.js +1 -1
  102. package/dist/esm-es5/ion-spinner.entry.js +1 -1
  103. package/dist/esm-es5/ion-split-pane.entry.js +1 -1
  104. package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
  105. package/dist/esm-es5/ion-tab_2.entry.js +1 -1
  106. package/dist/esm-es5/ion-text.entry.js +1 -1
  107. package/dist/esm-es5/ion-textarea.entry.js +1 -1
  108. package/dist/esm-es5/ion-toast.entry.js +1 -1
  109. package/dist/esm-es5/ion-toggle.entry.js +1 -1
  110. package/dist/esm-es5/ionic.js +1 -1
  111. package/dist/esm-es5/loader.js +1 -1
  112. package/dist/html.html-data.json +28 -0
  113. package/dist/ionic/ionic.esm.js +1 -1
  114. package/dist/ionic/{p-24592a4d.system.entry.js → p-0595a36c.system.entry.js} +1 -1
  115. package/dist/ionic/{p-223bc7dd.system.entry.js → p-062c1cb9.system.entry.js} +1 -1
  116. package/dist/ionic/p-07b804ba.entry.js +4 -0
  117. package/dist/ionic/{p-d2a580db.entry.js → p-14ae725a.entry.js} +1 -1
  118. package/dist/ionic/{p-45ca3acb.system.entry.js → p-1be0ed0e.system.entry.js} +2 -2
  119. package/dist/ionic/{p-01ae1aa0.entry.js → p-29f4100d.entry.js} +1 -1
  120. package/dist/ionic/{p-28649e61.entry.js → p-2aa6a169.entry.js} +1 -1
  121. package/dist/ionic/{p-39a39279.entry.js → p-385a361b.entry.js} +1 -1
  122. package/dist/ionic/p-405559bd.entry.js +4 -0
  123. package/dist/ionic/p-46fc9748.system.entry.js +4 -0
  124. package/dist/ionic/{p-c47b75e3.entry.js → p-5839776e.entry.js} +1 -1
  125. package/dist/ionic/{p-f84ea1e9.system.entry.js → p-5cc8fa7f.system.entry.js} +1 -1
  126. package/dist/ionic/{p-b5cc6e57.system.entry.js → p-61f51286.system.entry.js} +1 -1
  127. package/dist/ionic/{p-c20e6ebc.system.entry.js → p-660cf6f3.system.entry.js} +1 -1
  128. package/dist/ionic/{p-2d618ba6.system.entry.js → p-6d4534cb.system.entry.js} +1 -1
  129. package/dist/ionic/p-72944d53.system.entry.js +4 -0
  130. package/dist/ionic/p-76ff0b6d.entry.js +4 -0
  131. package/dist/ionic/p-7813dead.system.entry.js +4 -0
  132. package/dist/ionic/p-7b590e46.system.js +1 -1
  133. package/dist/ionic/p-833593dd.entry.js +4 -0
  134. package/dist/ionic/{p-d8893d17.entry.js → p-8ef82205.entry.js} +1 -1
  135. package/dist/ionic/{p-b0c99bd1.system.entry.js → p-9316e014.system.entry.js} +1 -1
  136. package/dist/ionic/p-aa246404.entry.js +4 -0
  137. package/dist/ionic/{p-610df697.entry.js → p-aa97948b.entry.js} +1 -1
  138. package/dist/ionic/{p-b374abe2.entry.js → p-aaf1b71f.entry.js} +1 -1
  139. package/dist/ionic/{p-c23822f8.entry.js → p-adb54d5b.entry.js} +1 -1
  140. package/dist/ionic/{p-56c72f65.system.entry.js → p-b67ed806.system.entry.js} +1 -1
  141. package/dist/ionic/{p-7dad531c.system.entry.js → p-c0dace15.system.entry.js} +1 -1
  142. package/dist/ionic/p-c6e43624.entry.js +4 -0
  143. package/dist/ionic/{p-4346453b.entry.js → p-cd6d4c1d.entry.js} +1 -1
  144. package/dist/ionic/{p-7ab9c88c.system.entry.js → p-da668343.system.entry.js} +1 -1
  145. package/dist/ionic/p-f1eb1152.system.entry.js +4 -0
  146. package/dist/ionic/p-f8a16486.system.entry.js +4 -0
  147. package/dist/types/components/segment/segment.d.ts +1 -1
  148. package/dist/types/components/segment-content/segment-content.d.ts +5 -0
  149. package/dist/types/components/segment-view/segment-view.d.ts +13 -0
  150. package/dist/types/components.d.ts +26 -0
  151. package/hydrate/index.js +137 -36
  152. package/package.json +1 -1
  153. package/dist/ionic/p-07012c84.system.entry.js +0 -4
  154. package/dist/ionic/p-40c14f53.system.entry.js +0 -4
  155. package/dist/ionic/p-4b9c6418.system.entry.js +0 -4
  156. package/dist/ionic/p-563a8d3b.entry.js +0 -4
  157. package/dist/ionic/p-8ac5efa9.entry.js +0 -4
  158. package/dist/ionic/p-ab08cad3.entry.js +0 -4
  159. package/dist/ionic/p-dc8a3888.entry.js +0 -4
@@ -0,0 +1,81 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import { Host, h } from "@stencil/core";
5
+ import { addEventListener } from "../../utils/helpers";
6
+ export class SegmentView {
7
+ constructor() {
8
+ this.segmentEl = null;
9
+ this.updateSection = () => {
10
+ const { segmentEl } = this;
11
+ if (segmentEl) {
12
+ const value = segmentEl.value;
13
+ const index = this.getSegmentButtonIndexWithValue(value);
14
+ this.setSection(index);
15
+ }
16
+ };
17
+ this.setSection = (index) => {
18
+ const sectionWidth = this.el.offsetWidth;
19
+ this.el.scrollTo({
20
+ top: 0,
21
+ left: index * sectionWidth,
22
+ behavior: 'smooth',
23
+ });
24
+ };
25
+ }
26
+ segmentViewScroll(ev) {
27
+ const { segmentEl } = this;
28
+ const atSnappingPoint = ev.target.scrollLeft % ev.target.offsetWidth === 0;
29
+ if (atSnappingPoint) {
30
+ const index = Math.round(ev.target.scrollLeft / ev.target.offsetWidth);
31
+ const segmentButton = this.getSegmentButtonAtIndex(index);
32
+ if (segmentEl) {
33
+ segmentEl.value = segmentButton.value;
34
+ }
35
+ }
36
+ }
37
+ connectedCallback() {
38
+ const segmentEl = (this.segmentEl = document.querySelector(`ion-segment[view=${this.el.id}]`));
39
+ if (segmentEl) {
40
+ addEventListener(segmentEl, 'ionChange', this.updateSection);
41
+ }
42
+ }
43
+ getSegmentButtons() {
44
+ const { segmentEl } = this;
45
+ if (!segmentEl) {
46
+ return [];
47
+ }
48
+ return Array.from(segmentEl.querySelectorAll('ion-segment-button'));
49
+ }
50
+ getSegmentButtonAtIndex(index) {
51
+ return this.getSegmentButtons()[index];
52
+ }
53
+ getSegmentButtonIndexWithValue(value) {
54
+ return this.getSegmentButtons().findIndex((b) => b.value === value);
55
+ }
56
+ render() {
57
+ return (h(Host, { key: '3a5d905041b663c7e533c5361472fdaad65d0e46' }, h("slot", { key: 'd4a6c6942afa53c22c7edf03275a0fb4ad7cbeb1' })));
58
+ }
59
+ static get is() { return "ion-segment-view"; }
60
+ static get encapsulation() { return "shadow"; }
61
+ static get originalStyleUrls() {
62
+ return {
63
+ "$": ["segment-view.scss"]
64
+ };
65
+ }
66
+ static get styleUrls() {
67
+ return {
68
+ "$": ["segment-view.css"]
69
+ };
70
+ }
71
+ static get elementRef() { return "el"; }
72
+ static get listeners() {
73
+ return [{
74
+ "name": "scroll",
75
+ "method": "segmentViewScroll",
76
+ "target": undefined,
77
+ "capture": false,
78
+ "passive": true
79
+ }];
80
+ }
81
+ }
@@ -669,7 +669,7 @@ export class Select {
669
669
  * TODO(FW-5592): Remove hasStartEndSlots condition
670
670
  */
671
671
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
672
- return (h(Host, { key: '50a843952ba75a266cb2690e3bac68c7bbb8ba95', onClick: this.onClick, class: createColorClasses(this.color, {
672
+ return (h(Host, { key: '63114b245835e18e63ab6b791713e1c34c2a91d3', onClick: this.onClick, class: createColorClasses(this.color, {
673
673
  [theme]: true,
674
674
  'in-item': inItem,
675
675
  'in-item-color': hostContext('ion-item.ion-color', el),
@@ -685,7 +685,7 @@ export class Select {
685
685
  [`select-justify-${justify}`]: justifyEnabled,
686
686
  [`select-shape-${shape}`]: shape !== undefined,
687
687
  [`select-label-placement-${labelPlacement}`]: true,
688
- }) }, h("label", { key: '617e8b1ee3636c35e8262748028c5c9b53349ab8', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '0b5a7126bcb30203986c5a0ed9f2f41f25501ace', class: "select-wrapper-inner" }, h("slot", { key: '0e35013e26f58f04f7eb9228cb270991e5b755ae', name: "start" }), h("div", { key: 'cf131b61e7907f63a1ce32dd931a9753ae290807', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '0adb8f7cdd610dfe67e1a363180e99322f5a6343', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'd9d2954141a517296483c22eac4b143c4096e1c5', class: "select-highlight" }))));
688
+ }) }, h("label", { key: 'dd7f90e38fd21cb0ce2cb26c588ff1318a3b4e03', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '946a1f025be4a63e1b7f9243d1e089e204f7e2c4', class: "select-wrapper-inner" }, h("slot", { key: '4ab1ffe6511e37ec148768edd41ba26ca59dc0a2', name: "start" }), h("div", { key: 'bc949b66207c31b4f412e1a0480c779bdb20ab99', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: '3ce8d8bdf08ba900ae12f4ed51bcc693e9eb5f7c', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'ad3f883b723354327602b93208913dcfae218e2f', class: "select-highlight" }))));
689
689
  }
690
690
  static get is() { return "ion-select"; }
691
691
  static get encapsulation() { return "shadow"; }
@@ -15,7 +15,7 @@ export class SelectOption {
15
15
  }
16
16
  render() {
17
17
  const theme = getIonTheme(this);
18
- return (h(Host, { key: '1a977b2d7953ecbddf216c5b68d47104dda07bce', class: {
18
+ return (h(Host, { key: '9c119de67b396ed5a1cd5efa40034a1b10313f1b', 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: '6ac9472c819c6631cd64ad8810256dd03fde120b', class: {
109
+ return (h(Host, { key: '499511498ca8be82086bb06e2b27ce33bffc1ddb', class: {
110
110
  [theme]: true,
111
- } }, h("ion-list", { key: 'b485896c38c080bc42f92e962440cd3b8308e728' }, header !== undefined && h("ion-list-header", { key: '6a1df70265a4b9feec9521d5f946994345456925' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: 'c4ecbcaa2c56c1cb900e039cbfe36c2fae03f2ac' }, h("ion-label", { key: 'e310d3445c6abfffb4ff00a1aec97dd09c94e1d3', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: '9a6ffdfd9df8aea92290caf317d855b262ac8998' }, subHeader), message !== undefined && h("p", { key: 'b5ca3c716d69e6a2c013df3fa3436b92953c4296' }, message)))), this.renderOptions(options))));
111
+ } }, h("ion-list", { key: '278f6bc1feeede9f02728971f322aa63f806321e' }, header !== undefined && h("ion-list-header", { key: 'ae4b4d8d73b7d353ac11e26dab35d001b7bfd2bf' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: '79e6641ab2dbbd08811ddcf8f346b0f18e3f0454' }, h("ion-label", { key: '53788eacd7384c4f24c727cd9312da3a57ccc67b', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: '0f028877e1fb89b66c22f5963bc57257d34f653d' }, subHeader), message !== undefined && h("p", { key: 'ff3b24d1bddacf963d9e1c287e65b71c97bb95b9' }, 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: '20170a23455836848210459749d9ba6a6eaaff53', class: {
32
+ return (h(Host, { key: 'f788545e591fdd0d1b3b61ad5e97b02d2d7e46f4', class: {
33
33
  [theme]: true,
34
34
  'skeleton-text-animated': animated,
35
35
  'in-media': inMedia,
36
- } }, h("span", { key: '96a9a18da286285abb647e7b69a4832cbe59b3b8' }, "\u00A0")));
36
+ } }, h("span", { key: '4f62ad7f8851d4111c60e7f7b28edcbb7067125c' }, "\u00A0")));
37
37
  }
38
38
  static get is() { return "ion-skeleton-text"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -43,7 +43,7 @@ export class Spinner {
43
43
  svgs.push(buildLine(spinner, duration, i, spinner.lines));
44
44
  }
45
45
  }
46
- return (h(Host, { key: '577bf2a998c801edc32a1d515fc930c471567e71', class: createColorClasses(self.color, {
46
+ return (h(Host, { key: '5cb7fe35a97d06ec56f83facd294847b51cbc7af', class: createColorClasses(self.color, {
47
47
  [theme]: true,
48
48
  [`spinner-${spinnerName}`]: true,
49
49
  'spinner-paused': self.paused || config.getBoolean('_testing'),
@@ -122,12 +122,12 @@ export class SplitPane {
122
122
  }
123
123
  render() {
124
124
  const theme = getIonTheme(this);
125
- return (h(Host, { key: 'f2090ca1bf3210b4ba6e20adafbc6f5839704cdd', class: {
125
+ return (h(Host, { key: 'a52854c638f501f9464c3d1d4c30bee020fd781e', class: {
126
126
  [theme]: true,
127
127
  // Used internally for styling
128
128
  [`split-pane-${theme}`]: true,
129
129
  'split-pane-visible': this.visible,
130
- } }, h("slot", { key: '3ecadb0aa95e4b7799b34122afe25d028bba8710' })));
130
+ } }, h("slot", { key: 'b2164b195c5811dda3d855c47f1bb59975172329' })));
131
131
  }
132
132
  static get is() { return "ion-split-pane"; }
133
133
  static get encapsulation() { return "shadow"; }
@@ -52,10 +52,10 @@ export class Tab {
52
52
  }
53
53
  render() {
54
54
  const { tab, active, component } = this;
55
- return (h(Host, { key: '91a0d6e7f70446804044b06eaf22e6fe0eb14510', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
55
+ return (h(Host, { key: '121affd326db55663c47d9c917e64e863f909028', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
56
56
  'ion-page': component === undefined,
57
57
  'tab-hidden': !active,
58
- } }, h("slot", { key: '6bb7036c2a8a149212b5afdc0a34c6131efd1aee' })));
58
+ } }, h("slot", { key: '8c80289c7e745a8a07692565519b9b13eb56ff19' })));
59
59
  }
60
60
  static get is() { return "ion-tab"; }
61
61
  static get encapsulation() { return "shadow"; }
@@ -52,11 +52,11 @@ export class TabBar {
52
52
  const { color, translucent, keyboardVisible } = this;
53
53
  const theme = getIonTheme(this);
54
54
  const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
55
- return (h(Host, { key: 'a17e0599a93095bd47d519336fda9ceeda3029d1', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses(color, {
55
+ return (h(Host, { key: 'cf965ce80081170fd2200e7368c69cd6ccdada5d', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses(color, {
56
56
  [theme]: true,
57
57
  'tab-bar-translucent': translucent,
58
58
  'tab-bar-hidden': shouldHide,
59
- }) }, h("slot", { key: '7c1f1abe56e8a0f3f24d3479dd6c839aaf90c7be' })));
59
+ }) }, h("slot", { key: '94538a393f7cf1000f4c476a4afdc73b7d593f32' })));
60
60
  }
61
61
  static get is() { return "ion-tab-bar"; }
62
62
  static get encapsulation() { return "shadow"; }
@@ -71,7 +71,7 @@ export class TabButton {
71
71
  rel,
72
72
  target,
73
73
  };
74
- return (h(Host, { key: '9d7ead0ffeaea5d99e3aa357bff6c5ac64fa1f26', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
74
+ return (h(Host, { key: 'c5d5a400c9e489dca8f69a474e9d2f7321181352', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
75
75
  [theme]: true,
76
76
  'tab-selected': selected,
77
77
  'tab-disabled': disabled,
@@ -83,7 +83,7 @@ export class TabButton {
83
83
  'ion-activatable': true,
84
84
  'ion-selectable': true,
85
85
  'ion-focusable': true,
86
- } }, h("a", Object.assign({ key: 'fa0e9730e8b396d83df43a97b41067bbc6b195c2' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), h("span", { key: '70b80731de0115a7720de8f0e1f16bac4eb326c3', class: "button-inner" }, h("slot", { key: '3abf65a17ef45a00ae54909b3301f68117a04575' })), theme === 'md' && h("ion-ripple-effect", { key: 'becf3d93675dc8943dc16fc27d204b5c1ad00817', type: "unbounded" }))));
86
+ } }, h("a", Object.assign({ key: '7c8ebc51f564778ebd07615b06466e9250539682' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), h("span", { key: '0ec2cb0c616c612af1a97338b5b774196c7498e5', class: "button-inner" }, h("slot", { key: '84ba9e4c88466da0ae7c71de19f9896c9e4e93ef' })), theme === 'md' && h("ion-ripple-effect", { key: '647c96627b7f8339d72c36ca01320677b8b7839c', type: "unbounded" }))));
87
87
  }
88
88
  static get is() { return "ion-tab-button"; }
89
89
  static get encapsulation() { return "shadow"; }
@@ -138,7 +138,7 @@ export class Tabs {
138
138
  return Array.from(this.el.querySelectorAll('ion-tab'));
139
139
  }
140
140
  render() {
141
- return (h(Host, { key: 'b38aa13e0115484aa4201c438956ba598671c7f7', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: '47c5aead7a4caf5a496a020e2c4bcac2f5b4082a', name: "top" }), h("div", { key: '839c4cf7b8adbf3263b6e8b94963fe41ba7b1b35', class: "tabs-inner" }, h("slot", { key: '74d33c76bb578a3eddc6a2bfc833018b912b2947' })), h("slot", { key: '45919fcd3ba83ab5d3a928ec83ca14039dde68e2', name: "bottom" })));
141
+ return (h(Host, { key: 'ba731d1538baa664111266c5f9bc3311fe02f9b7', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: '51f8ca87cd096a8e638a0b15d4fbab5aa730f5fa', name: "top" }), h("div", { key: 'e608434927bb5aac108027a4ce9389a0d930e1c2', class: "tabs-inner" }, h("slot", { key: '2922d0e28afc21fda97f2b29a8b5222d9782a6b4' })), h("slot", { key: 'f42306887fc30a816c961fea6cb609375eb56875', name: "bottom" })));
142
142
  }
143
143
  static get is() { return "ion-tabs"; }
144
144
  static get encapsulation() { return "shadow"; }
@@ -14,9 +14,9 @@ export class Text {
14
14
  }
15
15
  render() {
16
16
  const theme = getIonTheme(this);
17
- return (h(Host, { key: '1d7afeee75e183280309a1300a919eb6b554226c', class: createColorClasses(this.color, {
17
+ return (h(Host, { key: 'e1398a44433bb39074bd1c03a157968fde144dbd', class: createColorClasses(this.color, {
18
18
  [theme]: true,
19
- }) }, h("slot", { key: '5083935a5010701514fb18576912eabb738bb862' })));
19
+ }) }, h("slot", { key: '1c26cfb6121b165c9129fad3e98ae8a373949721' })));
20
20
  }
21
21
  static get is() { return "ion-text"; }
22
22
  static get encapsulation() { return "shadow"; }
@@ -360,7 +360,7 @@ export class Textarea {
360
360
  * TODO(FW-5592): Remove hasStartEndSlots condition
361
361
  */
362
362
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
363
- return (h(Host, { key: '911726b3af25343ca7ba3084a00f6f70d10c11ed', class: createColorClasses(this.color, {
363
+ return (h(Host, { key: '35aa08db103e5deb78d957cab4b927f6b75cfa0d', class: createColorClasses(this.color, {
364
364
  [theme]: true,
365
365
  'has-value': hasValue,
366
366
  'has-focus': hasFocus,
@@ -369,7 +369,7 @@ export class Textarea {
369
369
  [`textarea-shape-${shape}`]: shape !== undefined,
370
370
  [`textarea-label-placement-${labelPlacement}`]: true,
371
371
  'textarea-disabled': disabled,
372
- }) }, h("label", { key: '6f5f1633788b266b919c4bf9da1598fe3e33d9c0', class: "textarea-wrapper", htmlFor: inputId }, this.renderLabelContainer(), h("div", { key: 'bc04ce5f1174737a931c45f8851ba5a2b96e3f88', class: "textarea-wrapper-inner" }, h("div", { key: 'fa8552e1782232e56d7ff0ad69cd77f5bdff1dd8', class: "start-slot-wrapper" }, h("slot", { key: '96f59a916db5d3d386f5d87bfe5490b55bc39573', name: "start" })), h("div", { key: '7b0bab61d53d051bc0bfd8b7da99e9d8bc28d7d0', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, h("textarea", Object.assign({ key: '162f9bafda1156f8b370e108a2acc76540b69f9a', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value)), h("div", { key: '00f6074ba777a9c4410267a41ac3303c30be4b43', class: "end-slot-wrapper" }, h("slot", { key: '633af4fbfbbada66b4755ead8f1fe8ec412530b7', name: "end" }))), shouldRenderHighlight && h("div", { key: '04e74015f00c89279f23a13cc8f67944f8c9d336', class: "textarea-highlight" })), this.renderBottomContent()));
372
+ }) }, h("label", { key: '088fd6d57899f9b1595712c7a63642e9877f5e00', class: "textarea-wrapper", htmlFor: inputId }, this.renderLabelContainer(), h("div", { key: '3f1ab81e9c4a7a286f985fa7f6f30dca5f26833b', class: "textarea-wrapper-inner" }, h("div", { key: '4afa68f18bb62b32138a91d903c75672d9a8a9ba', class: "start-slot-wrapper" }, h("slot", { key: '635fa7a5c9754654a3d7f012d33fc12cbe9fd0cf', name: "start" })), h("div", { key: '0895b08cb759a157783a38f423c04967ec8c0ce1', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, h("textarea", Object.assign({ key: 'ec1ebe99508fbce9897c870d5e74239a32dfba91', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value)), h("div", { key: '411186d7c420c386233296edcbc9afd1d3de03a7', class: "end-slot-wrapper" }, h("slot", { key: 'b37cd68f0dc3f310cd78107d6f61933ba0e27d83', name: "end" }))), shouldRenderHighlight && h("div", { key: '43c7ae2f1e797701d9dbfd905d40320bb0f40e89', class: "textarea-highlight" })), this.renderBottomContent()));
373
373
  }
374
374
  static get is() { return "ion-textarea"; }
375
375
  static get encapsulation() { return "scoped"; }
@@ -10,9 +10,9 @@ import { getIonTheme } from "../../global/ionic-global";
10
10
  export class Thumbnail {
11
11
  render() {
12
12
  const theme = getIonTheme(this);
13
- return (h(Host, { key: '8911848dc9edd536023c8a68e51752b751e3f0ab', class: {
13
+ return (h(Host, { key: '43ea61d750f53e8f3623df191eb3795a59599e40', class: {
14
14
  [theme]: true,
15
- } }, h("slot", { key: 'aaa7d7010d4050eebaed490b3ef7e641b076607c' })));
15
+ } }, h("slot", { key: 'feaecfa188c84b219d61ff99296b34c7ab26ec66' })));
16
16
  }
17
17
  static get is() { return "ion-thumbnail"; }
18
18
  static get encapsulation() { return "shadow"; }
@@ -31,11 +31,11 @@ export class ToolbarTitle {
31
31
  render() {
32
32
  const theme = getIonTheme(this);
33
33
  const size = this.getSize();
34
- return (h(Host, { key: '67f00e2664322d0a5df32e093c7e227fc6f16c98', class: createColorClasses(this.color, {
34
+ return (h(Host, { key: '2312208012fcc0021511e9f83a797f0efecc95d7', class: createColorClasses(this.color, {
35
35
  [theme]: true,
36
36
  [`title-${size}`]: true,
37
37
  'title-rtl': document.dir === 'rtl',
38
- }) }, h("div", { key: 'cfc8295c9c599a9a61ea794b30169fdd574708f1', class: "toolbar-title" }, h("slot", { key: '2065458af3ed39d230c935332e7ff9c9d2d20e78' }))));
38
+ }) }, h("div", { key: '0d5cb6cb7065aa70a299061ebd1d7be04f0c5d22', class: "toolbar-title" }, h("slot", { key: '9f95add2dda42160f45137f7ebd8df0f3c3f1a69' }))));
39
39
  }
40
40
  static get is() { return "ion-title"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -390,9 +390,9 @@ export class Toast {
390
390
  if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
391
391
  printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
392
392
  }
393
- return (h(Host, Object.assign({ key: 'cb84d6f739571bc4193840fb790caa5bb5d86570', tabindex: "-1" }, this.htmlAttributes, { style: {
393
+ return (h(Host, Object.assign({ key: 'c479651c07a43bc57908af9c40ebd096cf37b055', tabindex: "-1" }, this.htmlAttributes, { style: {
394
394
  zIndex: `${60000 + this.overlayIndex}`,
395
- }, class: createColorClasses(this.color, Object.assign(Object.assign({ [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '2d9d8ce5d886779f406410197df2a6244032c012', class: wrapperClass }, h("div", { key: '3a64cc8e864daf97f13c94416a544a80738273ba', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: 'c1461d577adabfb1244be84d5bc433c256a86a38', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: '5a4cfe8b8fe74fa550468183b3f43294827b800f', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
395
+ }, class: createColorClasses(this.color, Object.assign(Object.assign({ [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: 'd4939b5d4f3ffee11ad3167387fbcf5d65107ddc', class: wrapperClass }, h("div", { key: 'bea0d04b6c936b61d0a8df70eb147f2792b7dadd', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: 'ea29fdcf23d8b915bb3c294bff094743e3e06e82', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: 'c0092793067bbc2cd5b7e538ccdc82aacd424fe1', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
396
396
  }
397
397
  static get is() { return "ion-toast"; }
398
398
  static get encapsulation() { return "shadow"; }
@@ -207,7 +207,7 @@ export class Toggle {
207
207
  const value = this.getValue();
208
208
  const rtl = isRTL(el) ? 'rtl' : 'ltr';
209
209
  renderHiddenInput(true, el, name, checked ? value : '', disabled);
210
- return (h(Host, { key: '06f5bc54f99b5f27f0d67a6934aea6bb671ec440', onClick: this.onClick, class: createColorClasses(color, {
210
+ return (h(Host, { key: 'aa9dc67384dc4be027ac562730e899f4315fdcfc', onClick: this.onClick, class: createColorClasses(color, {
211
211
  [theme]: true,
212
212
  'in-item': hostContext('ion-item', el),
213
213
  'toggle-activated': activated,
@@ -217,10 +217,10 @@ export class Toggle {
217
217
  [`toggle-alignment-${alignment}`]: true,
218
218
  [`toggle-label-placement-${labelPlacement}`]: true,
219
219
  [`toggle-${rtl}`]: true,
220
- }) }, h("label", { key: '7831cd36159ce5fc9d854ebecb597ae3c659a1c1', class: "toggle-wrapper" }, h("input", Object.assign({ key: '11ea2c3830239223c8b570216ca84109155d7776', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: '5ae16c5503913089ca9ec268cf4db8a7745460b6', class: {
220
+ }) }, h("label", { key: 'f154b73f5def7cc59a9d5f355eece52c57e5b493', class: "toggle-wrapper" }, h("input", Object.assign({ key: 'a1c4864c94a8f28a0d2e018ae35275125674cfa6', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: '074b23eb8020c8318aeb8747c5bcef7e0ee235bb', class: {
221
221
  'label-text-wrapper': true,
222
222
  'label-text-wrapper-hidden': !this.hasLabel,
223
- }, part: "label" }, h("slot", { key: '8787021fe340347d6ae44c22959f387f03b871e0' })), h("div", { key: '7ac6cf4bfeb41fc0e8ff9fa2e55571234ab07d03', class: "native-wrapper" }, this.renderToggleControl()))));
223
+ }, part: "label" }, h("slot", { key: '94d49b13cf0a4fa6fd0177931217446661691bc0' })), h("div", { key: 'c4468059e95a4f6342c60ccaaf3956e45a9b13cc', class: "native-wrapper" }, this.renderToggleControl()))));
224
224
  }
225
225
  static get is() { return "ion-toggle"; }
226
226
  static get encapsulation() { return "shadow"; }
@@ -63,10 +63,10 @@ export class Toolbar {
63
63
  this.childrenStyles.forEach((value) => {
64
64
  Object.assign(childStyles, value);
65
65
  });
66
- return (h(Host, { key: '958f4b7dd7edd7e14188ede019a3ec83955047e7', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
66
+ return (h(Host, { key: '301c7915c8331f4b00cf929068083102ec85a75d', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
67
67
  [theme]: true,
68
68
  'in-toolbar': hostContext('ion-toolbar', this.el),
69
- })) }, h("div", { key: '13c34671af2a47ee2d13c3348d87590696fe2043', class: "toolbar-background" }), h("div", { key: '00cb26c46ab564017c5b59133082966487f3268a', class: "toolbar-container" }, h("slot", { key: 'a9c5fc777ff5eab4ef91d7c9b274a53012280f35', name: "start" }), h("slot", { key: 'a5a4e11b5d5847ff167ae95b86cd3625d482e257', name: "secondary" }), h("div", { key: 'e9f06b74b6aa933363aa0b671216b37300cc660c', class: "toolbar-content" }, h("slot", { key: '05929530a64a6d497ef5bc69dbc42adc11c9694f' })), h("slot", { key: 'f03445495cd36c54a7a43b47ab47169c53d9d15b', name: "primary" }), h("slot", { key: 'd8a60db04c290933462b517cc6627500bd9ebe34', name: "end" }))));
69
+ })) }, h("div", { key: 'fa60782795f4c50a2bf6fe85799439ee4469c51f', class: "toolbar-background" }), h("div", { key: 'd22e03c135a3360b796c9149018888a176d05a7e', class: "toolbar-container" }, h("slot", { key: 'e97e52fd2426ef4fdddcad9202a5331c4d1ef6b7', name: "start" }), h("slot", { key: '1f82aa2d95a17ab478d13ade7ae52da227de2bfc', name: "secondary" }), h("div", { key: 'e7698f82a464a9c863bd3a602d396a14d987bad0', class: "toolbar-content" }, h("slot", { key: '215f4fcd1cae042da6e2d5ef9832d9857db1b7c6' })), h("slot", { key: '962027f724f2a3ba009dcb218f71bbc97fb6927a', name: "primary" }), h("slot", { key: '5d7d1a5132501a436a82e267d660ec7feea96012', name: "end" }))));
70
70
  }
71
71
  static get is() { return "ion-toolbar"; }
72
72
  static get encapsulation() { return "shadow"; }
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-07-03T15:32:11",
2
+ "timestamp": "2024-07-15T17:27:24",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.3",
@@ -31904,6 +31904,48 @@
31904
31904
  ]
31905
31905
  }
31906
31906
  },
31907
+ {
31908
+ "filePath": "src/components/segment-content/segment-content.tsx",
31909
+ "encapsulation": "shadow",
31910
+ "tag": "ion-segment-content",
31911
+ "docs": "",
31912
+ "docsTags": [],
31913
+ "usage": {},
31914
+ "props": [],
31915
+ "methods": [],
31916
+ "events": [],
31917
+ "listeners": [],
31918
+ "styles": [],
31919
+ "slots": [],
31920
+ "parts": [],
31921
+ "dependents": [],
31922
+ "dependencies": [],
31923
+ "dependencyGraph": {}
31924
+ },
31925
+ {
31926
+ "filePath": "src/components/segment-view/segment-view.tsx",
31927
+ "encapsulation": "shadow",
31928
+ "tag": "ion-segment-view",
31929
+ "docs": "",
31930
+ "docsTags": [],
31931
+ "usage": {},
31932
+ "props": [],
31933
+ "methods": [],
31934
+ "events": [],
31935
+ "listeners": [
31936
+ {
31937
+ "event": "scroll",
31938
+ "capture": false,
31939
+ "passive": true
31940
+ }
31941
+ ],
31942
+ "styles": [],
31943
+ "slots": [],
31944
+ "parts": [],
31945
+ "dependents": [],
31946
+ "dependencies": [],
31947
+ "dependencyGraph": {}
31948
+ },
31907
31949
  {
31908
31950
  "filePath": "src/components/select/select.tsx",
31909
31951
  "encapsulation": "shadow",
@@ -1230,11 +1230,11 @@ const ToolbarTitle = class {
1230
1230
  render() {
1231
1231
  const theme = getIonTheme(this);
1232
1232
  const size = this.getSize();
1233
- return (h(Host, { key: '67f00e2664322d0a5df32e093c7e227fc6f16c98', class: createColorClasses(this.color, {
1233
+ return (h(Host, { key: '2312208012fcc0021511e9f83a797f0efecc95d7', class: createColorClasses(this.color, {
1234
1234
  [theme]: true,
1235
1235
  [`title-${size}`]: true,
1236
1236
  'title-rtl': document.dir === 'rtl',
1237
- }) }, h("div", { key: 'cfc8295c9c599a9a61ea794b30169fdd574708f1', class: "toolbar-title" }, h("slot", { key: '2065458af3ed39d230c935332e7ff9c9d2d20e78' }))));
1237
+ }) }, h("div", { key: '0d5cb6cb7065aa70a299061ebd1d7be04f0c5d22', class: "toolbar-title" }, h("slot", { key: '9f95add2dda42160f45137f7ebd8df0f3c3f1a69' }))));
1238
1238
  }
1239
1239
  get el() { return getElement(this); }
1240
1240
  static get watchers() { return {
@@ -1306,10 +1306,10 @@ const Toolbar = class {
1306
1306
  this.childrenStyles.forEach((value) => {
1307
1307
  Object.assign(childStyles, value);
1308
1308
  });
1309
- return (h(Host, { key: '958f4b7dd7edd7e14188ede019a3ec83955047e7', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
1309
+ return (h(Host, { key: '301c7915c8331f4b00cf929068083102ec85a75d', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
1310
1310
  [theme]: true,
1311
1311
  'in-toolbar': hostContext('ion-toolbar', this.el),
1312
- })) }, h("div", { key: '13c34671af2a47ee2d13c3348d87590696fe2043', class: "toolbar-background" }), h("div", { key: '00cb26c46ab564017c5b59133082966487f3268a', class: "toolbar-container" }, h("slot", { key: 'a9c5fc777ff5eab4ef91d7c9b274a53012280f35', name: "start" }), h("slot", { key: 'a5a4e11b5d5847ff167ae95b86cd3625d482e257', name: "secondary" }), h("div", { key: 'e9f06b74b6aa933363aa0b671216b37300cc660c', class: "toolbar-content" }, h("slot", { key: '05929530a64a6d497ef5bc69dbc42adc11c9694f' })), h("slot", { key: 'f03445495cd36c54a7a43b47ab47169c53d9d15b', name: "primary" }), h("slot", { key: 'd8a60db04c290933462b517cc6627500bd9ebe34', name: "end" }))));
1312
+ })) }, h("div", { key: 'fa60782795f4c50a2bf6fe85799439ee4469c51f', class: "toolbar-background" }), h("div", { key: 'd22e03c135a3360b796c9149018888a176d05a7e', class: "toolbar-container" }, h("slot", { key: 'e97e52fd2426ef4fdddcad9202a5331c4d1ef6b7', name: "start" }), h("slot", { key: '1f82aa2d95a17ab478d13ade7ae52da227de2bfc', name: "secondary" }), h("div", { key: 'e7698f82a464a9c863bd3a602d396a14d987bad0', class: "toolbar-content" }, h("slot", { key: '215f4fcd1cae042da6e2d5ef9832d9857db1b7c6' })), h("slot", { key: '962027f724f2a3ba009dcb218f71bbc97fb6927a', name: "primary" }), h("slot", { key: '5d7d1a5132501a436a82e267d660ec7feea96012', name: "end" }))));
1313
1313
  }
1314
1314
  get el() { return getElement(this); }
1315
1315
  };
@@ -136,9 +136,9 @@ const Thumbnail = class {
136
136
  }
137
137
  render() {
138
138
  const theme = getIonTheme(this);
139
- return (h(Host, { key: '8911848dc9edd536023c8a68e51752b751e3f0ab', class: {
139
+ return (h(Host, { key: '43ea61d750f53e8f3623df191eb3795a59599e40', class: {
140
140
  [theme]: true,
141
- } }, h("slot", { key: 'aaa7d7010d4050eebaed490b3ef7e641b076607c' })));
141
+ } }, h("slot", { key: 'feaecfa188c84b219d61ff99296b34c7ab26ec66' })));
142
142
  }
143
143
  };
144
144
  Thumbnail.style = IonThumbnailStyle0;
@@ -6,7 +6,7 @@ import { i as inheritAriaAttributes, d as renderHiddenInput } from './helpers-da
6
6
  import { c as createColorClasses, h as hostContext } from './theme-01f3f29c.js';
7
7
  import { d as getIonTheme } from './ionic-global-be8fa30a.js';
8
8
 
9
- const checkboxIonicCss = ":host{--border-width:var(--ionic-border-size-025, 1px);--border-style:var(--ionic-border-style-solid, solid);--border-color:var(--ionic-color-neutral-800, #626262);--checkmark-width:3;--focus-ring-color:var(--ionic-state-focus-1, #9ec4fd);--focus-ring-width:var(--ionic-border-size-050, 2px);--focus-ring-offset:var(--ionic-space-050, 2px);--size:var(--ionic-scale-600, 24px);--checkbox-background-checked:var(--ionic-color-primary-base, #105cef);--border-color-checked:var(--ionic-color-primary-base, #105cef);--checkmark-color:var(--ionic-color-base-white, #ffffff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host::after{right:0;left:0;top:50%;position:absolute;height:100%;min-height:var(--ionic-scale-1200, 48px);-webkit-transform:translateY(-50%);transform:translateY(-50%);content:\"\";cursor:pointer;z-index:1}:host .native-wrapper{position:relative}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:var(--ionic-space-250, 10px);margin-bottom:var(--ionic-space-250, 10px)}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:var(--ionic-space-250, 10px);margin-bottom:var(--ionic-space-400, 16px)}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:var(--ionic-space-250, 10px)}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:var(--checkmark-color);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--ionic-space-400, 16px);margin-inline-end:var(--ionic-space-400, 16px)}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:var(--ionic-space-400, 16px);margin-inline-start:var(--ionic-space-400, 16px);-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--ionic-space-400, 16px);margin-inline-end:var(--ionic-space-400, 16px)}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:var(--ionic-space-400, 16px);max-width:133.3333333333%}:host(.checkbox-size-small){--size:var(--ionic-scale-400, 16px)}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.ion-invalid){--focus-ring-color:var(--ionic-state-focus-2, #ffafaf)}:host(.ion-invalid) .checkbox-icon{border-color:var(--ionic-color-danger-800, #bf2222)}:host(.checkbox-disabled){pointer-events:none}:host(.checkbox-disabled) .native-wrapper:after{right:0;left:0;top:0;bottom:0;position:absolute;background-color:var(--ionic-state-disabled, rgba(255, 255, 255, 0.6));content:\"\";pointer-events:none}:host(.checkbox-disabled) .checkbox-icon{border-color:var(--ionic-color-neutral-800, #626262);background-color:var(--ionic-state-disabled, rgba(255, 255, 255, 0.6))}:host(.checkbox-disabled.checkbox-checked) .checkbox-icon{border-width:var(--ionic-border-size-0, 0px);background-color:var(--ionic-color-primary-base, #105cef)}@media (any-hover: hover){:host(:hover) .checkbox-icon{background-color:var(--ionic-color-neutral-100, #f1f1f1)}:host(:hover.checkbox-checked) .checkbox-icon,:host(:hover.checkbox-indeterminate) .checkbox-icon{background-color:var(--ionic-color-primary-800, #0f54da)}}:host(.ion-focused:not(.checkbox-disabled)) .checkbox-icon{outline:var(--focus-ring-width) var(--ionic-border-style-solid, solid) var(--focus-ring-color);outline-offset:var(--focus-ring-offset)}:host(.ion-activated) .checkbox-icon{background-color:var(--ionic-color-neutral-200, #e7e7e7)}:host(.ion-activated.checkbox-checked) .checkbox-icon,:host(.ion-activated.checkbox-indeterminate) .checkbox-icon{background-color:var(--ionic-color-primary-900, #0d4bc3)}:host(.checkbox-shape-soft){--border-radius:var(--ionic-border-radius-100, 4px)}:host(.checkbox-size-small.checkbox-shape-soft){--border-radius:var(--ionic-border-radius-050, 2px)}:host(.checkbox-shape-rectangular){--border-radius:var(--ionic-border-radius-0, 0px)}.checkbox-wrapper{min-height:var(--ionic-scale-1200, 48px)}";
9
+ const checkboxIonicCss = ":host{--border-width:var(--ionic-border-size-025, 1px);--border-style:var(--ionic-border-style-solid, solid);--border-color:var(--ionic-color-neutral-800, #626262);--checkmark-width:var(--ionic-scale-400, 16px);--checkmark-height:var(--checkmark-width);--focus-ring-color:var(--ionic-state-focus-1, #9ec4fd);--focus-ring-width:var(--ionic-border-size-050, 2px);--focus-ring-offset:var(--ionic-space-050, 2px);--size:var(--ionic-scale-600, 24px);--checkbox-background-checked:var(--ionic-color-primary-base, #105cef);--border-color-checked:var(--ionic-color-primary-base, #105cef);--checkmark-color:var(--ionic-color-base-white, #ffffff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host::after{right:0;left:0;top:50%;position:absolute;height:100%;min-height:var(--ionic-scale-1200, 48px);-webkit-transform:translateY(-50%);transform:translateY(-50%);content:\"\";cursor:pointer;z-index:1}:host .native-wrapper{position:relative}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:var(--ionic-space-250, 10px);margin-bottom:var(--ionic-space-250, 10px)}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:var(--ionic-space-250, 10px);margin-bottom:var(--ionic-space-400, 16px)}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:var(--ionic-space-250, 10px)}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-appearance:none;-moz-appearance:none}.native-wrapper{border-radius:var(--border-radius);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon{position:relative;width:var(--checkmark-width);height:var(--checkmark-height)}.checkbox-icon path{fill:var(--checkmark-color);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--ionic-space-400, 16px);margin-inline-end:var(--ionic-space-400, 16px)}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:var(--ionic-space-400, 16px);margin-inline-start:var(--ionic-space-400, 16px);-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:var(--ionic-space-400, 16px);margin-inline-end:var(--ionic-space-400, 16px)}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:var(--ionic-space-400, 16px);max-width:133.3333333333%}:host(.checkbox-size-small){--size:var(--ionic-scale-400, 16px)}:host(.checkbox-checked) .native-wrapper,:host(.checkbox-indeterminate) .native-wrapper{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.ion-invalid){--focus-ring-color:var(--ionic-state-focus-2, #ffafaf)}:host(.ion-invalid) .native-wrapper{border-color:var(--ionic-color-danger-800, #bf2222)}:host(.checkbox-disabled){pointer-events:none}:host(.checkbox-disabled) .native-wrapper:after{right:0;left:0;top:0;bottom:0;position:absolute;background-color:var(--ionic-state-disabled, rgba(255, 255, 255, 0.6));content:\"\";pointer-events:none;right:unset;left:unset;top:unset;bottom:unset;width:inherit;height:inherit}:host(.checkbox-disabled) .native-wrapper{border-color:var(--ionic-color-neutral-800, #626262);background-color:var(--ionic-state-disabled, rgba(255, 255, 255, 0.6))}:host(.checkbox-disabled.checkbox-checked) .native-wrapper{border-width:var(--ionic-border-size-0, 0px);background-color:var(--ionic-color-primary-base, #105cef)}@media (any-hover: hover){:host(:hover) .native-wrapper{background-color:var(--ionic-color-neutral-100, #f1f1f1)}:host(:hover.checkbox-checked) .native-wrapper,:host(:hover.checkbox-indeterminate) .native-wrapper{background-color:var(--ionic-color-primary-800, #0f54da)}}:host(.ion-focused:not(.checkbox-disabled)) .native-wrapper{outline:var(--focus-ring-width) var(--ionic-border-style-solid, solid) var(--focus-ring-color);outline-offset:var(--focus-ring-offset)}:host(.ion-activated) .native-wrapper{background-color:var(--ionic-color-neutral-200, #e7e7e7)}:host(.ion-activated.checkbox-checked) .native-wrapper,:host(.ion-activated.checkbox-indeterminate) .native-wrapper{background-color:var(--ionic-color-primary-900, #0d4bc3)}:host(.checkbox-shape-soft){--border-radius:var(--ionic-border-radius-100, 4px)}:host(.checkbox-size-small.checkbox-shape-soft){--border-radius:var(--ionic-border-radius-050, 2px)}:host(.checkbox-shape-rectangular){--border-radius:var(--ionic-border-radius-0, 0px)}.checkbox-wrapper{min-height:var(--ionic-scale-1200, 48px)}";
10
10
  const IonCheckboxIonicStyle0 = checkboxIonicCss;
11
11
 
12
12
  const checkboxIosCss = ":host{--checkbox-background-checked:var(--ion-color-primary, #0054e9);--border-color-checked:var(--ion-color-primary, #0054e9);--checkmark-color:var(--ion-color-primary-contrast, #fff);--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){-ms-flex:1 1 0px;flex:1 1 0;width:100%;height:100%}:host([slot=start]),:host([slot=end]){-ms-flex:initial;flex:initial;width:auto}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;width:var(--size);height:var(--size);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.125rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.375rem, 55.836px);--checkmark-width:1.5px}:host(.checkbox-disabled){opacity:0.3}";
@@ -534,11 +534,11 @@ const SkeletonText = class {
534
534
  const animated = this.animated && config.getBoolean('animated', true);
535
535
  const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
536
536
  const theme = getIonTheme(this);
537
- return (h(Host, { key: '20170a23455836848210459749d9ba6a6eaaff53', class: {
537
+ return (h(Host, { key: 'f788545e591fdd0d1b3b61ad5e97b02d2d7e46f4', class: {
538
538
  [theme]: true,
539
539
  'skeleton-text-animated': animated,
540
540
  'in-media': inMedia,
541
- } }, h("span", { key: '96a9a18da286285abb647e7b69a4832cbe59b3b8' }, "\u00A0")));
541
+ } }, h("span", { key: '4f62ad7f8851d4111c60e7f7b28edcbb7067125c' }, "\u00A0")));
542
542
  }
543
543
  get el() { return getElement(this); }
544
544
  };
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import { r as registerInstance, h, i as Host, g as getElement } from './index-3321c202.js';
5
+
6
+ const segmentContentCss = ":host{scroll-snap-align:center;-ms-flex-negative:0;flex-shrink:0;width:100%}";
7
+ const IonSegmentContentStyle0 = segmentContentCss;
8
+
9
+ const SegmentContent = class {
10
+ constructor(hostRef) {
11
+ registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ return (h(Host, { key: '0b3b79ccf751ca783b40e061e096ae985fab878d' }, h("slot", { key: '857f85e248e9ebe402d5b29503a76e1aad574ae7' })));
15
+ }
16
+ get el() { return getElement(this); }
17
+ };
18
+ SegmentContent.style = IonSegmentContentStyle0;
19
+
20
+ export { SegmentContent as ion_segment_content };
@@ -0,0 +1,68 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import { r as registerInstance, h, i as Host, g as getElement } from './index-3321c202.js';
5
+ import { a as addEventListener } from './helpers-da915de8.js';
6
+
7
+ const segmentViewCss = ":host{display:-ms-flexbox;display:flex;grid-column:1/-1;overflow-x:scroll;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}:host::-webkit-scrollbar{display:none}";
8
+ const IonSegmentViewStyle0 = segmentViewCss;
9
+
10
+ const SegmentView = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.segmentEl = null;
14
+ this.updateSection = () => {
15
+ const { segmentEl } = this;
16
+ if (segmentEl) {
17
+ const value = segmentEl.value;
18
+ const index = this.getSegmentButtonIndexWithValue(value);
19
+ this.setSection(index);
20
+ }
21
+ };
22
+ this.setSection = (index) => {
23
+ const sectionWidth = this.el.offsetWidth;
24
+ this.el.scrollTo({
25
+ top: 0,
26
+ left: index * sectionWidth,
27
+ behavior: 'smooth',
28
+ });
29
+ };
30
+ }
31
+ segmentViewScroll(ev) {
32
+ const { segmentEl } = this;
33
+ const atSnappingPoint = ev.target.scrollLeft % ev.target.offsetWidth === 0;
34
+ if (atSnappingPoint) {
35
+ const index = Math.round(ev.target.scrollLeft / ev.target.offsetWidth);
36
+ const segmentButton = this.getSegmentButtonAtIndex(index);
37
+ if (segmentEl) {
38
+ segmentEl.value = segmentButton.value;
39
+ }
40
+ }
41
+ }
42
+ connectedCallback() {
43
+ const segmentEl = (this.segmentEl = document.querySelector(`ion-segment[view=${this.el.id}]`));
44
+ if (segmentEl) {
45
+ addEventListener(segmentEl, 'ionChange', this.updateSection);
46
+ }
47
+ }
48
+ getSegmentButtons() {
49
+ const { segmentEl } = this;
50
+ if (!segmentEl) {
51
+ return [];
52
+ }
53
+ return Array.from(segmentEl.querySelectorAll('ion-segment-button'));
54
+ }
55
+ getSegmentButtonAtIndex(index) {
56
+ return this.getSegmentButtons()[index];
57
+ }
58
+ getSegmentButtonIndexWithValue(value) {
59
+ return this.getSegmentButtons().findIndex((b) => b.value === value);
60
+ }
61
+ render() {
62
+ return (h(Host, { key: '3a5d905041b663c7e533c5361472fdaad65d0e46' }, h("slot", { key: 'd4a6c6942afa53c22c7edf03275a0fb4ad7cbeb1' })));
63
+ }
64
+ get el() { return getElement(this); }
65
+ };
66
+ SegmentView.style = IonSegmentViewStyle0;
67
+
68
+ export { SegmentView as ion_segment_view };