@ionic/core 7.5.4-nightly.20231103 → 7.5.4-nightly.20231106

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.
@@ -4,9 +4,9 @@
4
4
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
5
5
  import { b as getIonMode } from './ionic-global.js';
6
6
 
7
- const listIosCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
7
+ const listIosCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
8
8
 
9
- const listMdCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
9
+ const listMdCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):first-of-type,.list-md.list-inset ion-item-sliding:first-of-type ion-item{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-radius:0 0 2px 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-radius:2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
10
10
 
11
11
  const List = /*@__PURE__*/ proxyCustomElement(class List extends HTMLElement {
12
12
  constructor() {
@@ -398,9 +398,9 @@ Label.style = {
398
398
  md: labelMdCss
399
399
  };
400
400
 
401
- const listIosCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
401
+ const listIosCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
402
402
 
403
- const listMdCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
403
+ const listMdCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):first-of-type,.list-md.list-inset ion-item-sliding:first-of-type ion-item{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-radius:0 0 2px 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-radius:2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
404
404
 
405
405
  const List = class {
406
406
  constructor(hostRef) {
@@ -130,7 +130,21 @@ ion-list.list-inset {
130
130
  border-radius: 10px;
131
131
  }
132
132
 
133
- .list-ios.list-inset ion-item:last-child {
133
+ /**
134
+ * These selectors ensure the last item in the list
135
+ * has the correct border.
136
+ * We need to consider the following scenarios:
137
+ 1. The only item in a list.
138
+ 2. The last item in a list as long as it is not the only item.
139
+ 3. The item in the last item-sliding in a list.
140
+ * Note that we do not select ion-item:last-of-type
141
+ * because that will cause the borders to disappear on
142
+ * items in an item-sliding when the item is the last
143
+ * element in the item-sliding container.
144
+ */
145
+ .list-ios.list-inset ion-item:only-child,
146
+ .list-ios.list-inset ion-item:not(:only-of-type):last-of-type,
147
+ .list-ios.list-inset ion-item-sliding:last-of-type ion-item {
134
148
  --border-width: 0;
135
149
  --inner-border-width: 0;
136
150
  }
@@ -166,12 +166,50 @@ ion-list.list-inset {
166
166
  border-radius: 2px;
167
167
  }
168
168
 
169
- .list-md.list-inset ion-item:first-child {
169
+ /**
170
+ * These selectors ensure the first item in the list
171
+ * has the correct radius.
172
+ * We need to consider the following scenarios:
173
+ 1. The first item in a list as long as it is not the only item.
174
+ 2. The item in the first item-sliding in a list.
175
+ * Note that we do not select "ion-item-sliding ion-item:first-of-type"
176
+ * because that will cause the borders to disappear on
177
+ * items in an item-sliding when the item is the first
178
+ * element in the item-sliding container.
179
+ */
180
+ .list-md.list-inset ion-item:not(:only-of-type):first-of-type,
181
+ .list-md.list-inset ion-item-sliding:first-of-type ion-item {
170
182
  --border-radius: 2px 2px 0 0;
171
183
  }
172
184
 
173
- .list-md.list-inset ion-item:last-child {
174
- --border-radius: 0 0 2px, 2px;
185
+ /**
186
+ * These selectors ensure the last item in the list
187
+ * has the correct radius and border.
188
+ * We need to consider the following scenarios:
189
+ 1. The last item in a list as long as it is not the only item.
190
+ 2. The item in the last item-sliding in a list.
191
+ * Note that we do not select "ion-item-sliding ion-item:last-of-type"
192
+ * because that will cause the borders to disappear on
193
+ * items in an item-sliding when the item is the last
194
+ * element in the item-sliding container.
195
+ */
196
+ .list-md.list-inset ion-item:not(:only-of-type):last-of-type,
197
+ .list-md.list-inset ion-item-sliding:last-of-type ion-item {
198
+ --border-radius: 0 0 2px 2px;
199
+ --border-width: 0;
200
+ --inner-border-width: 0;
201
+ }
202
+
203
+ /**
204
+ * The only item in a list should have a border radius
205
+ * on all corners.
206
+ * We target :only-child instead of :only-of-type
207
+ * otherwise borders will disappear on items inside of
208
+ * ion-item-sliding because the item will be the only
209
+ * one of its type inside of the ion-item-sliding group.
210
+ */
211
+ .list-md.list-inset ion-item:only-child {
212
+ --border-radius: 2px;
175
213
  --border-width: 0;
176
214
  --inner-border-width: 0;
177
215
  }
@@ -22,3 +22,146 @@ configs().forEach(({ title, screenshot, config }) => {
22
22
  });
23
23
  });
24
24
  });
25
+ /**
26
+ * Padding and border color ensures the bottom border can be easily seen if it regresses.
27
+ * The background color ensures that any border radius values can be seen.
28
+ */
29
+ configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
30
+ test.describe(title('list: lines with children'), () => {
31
+ test('only item in inset list should not have line', async ({ page }) => {
32
+ test.info().annotations.push({
33
+ type: 'issue',
34
+ description: 'https://github.com/ionic-team/ionic-framework/issues/28435',
35
+ });
36
+ await page.setContent(`
37
+ <style>
38
+ #container {
39
+ padding: 10px;
40
+ background: #0088cc;
41
+ }
42
+
43
+ ion-item {
44
+ --border-color: red;
45
+ }
46
+ </style>
47
+ <div id="container">
48
+ <ion-list inset="true">
49
+ <ion-item>
50
+ <ion-label>Item 0</ion-label>
51
+ </ion-item>
52
+ </ion-list>
53
+ </div>
54
+ `, config);
55
+ const container = page.locator('#container');
56
+ await expect(container).toHaveScreenshot(screenshot('inset-list-only-item-no-lines'));
57
+ });
58
+ test('last item in inset list with end options should not have line', async ({ page }) => {
59
+ test.info().annotations.push({
60
+ type: 'issue',
61
+ description: 'https://github.com/ionic-team/ionic-framework/issues/28435',
62
+ });
63
+ await page.setContent(`
64
+ <style>
65
+ #container {
66
+ padding: 10px;
67
+ background: #0088cc;
68
+ }
69
+
70
+ ion-item {
71
+ --border-color: red;
72
+ }
73
+ </style>
74
+ <div id="container">
75
+ <ion-list inset="true">
76
+ <ion-item-sliding>
77
+ <ion-item>
78
+ <ion-label>Item 0</ion-label>
79
+ </ion-item>
80
+ <ion-item-options slot="end">
81
+ <ion-item-option color="warning">
82
+ <ion-icon slot="icon-only" name="pin"></ion-icon>
83
+ </ion-item-option>
84
+ </ion-item-options>
85
+ </ion-item-sliding>
86
+
87
+ <ion-item-sliding>
88
+ <ion-item>
89
+ <ion-label>Item 1</ion-label>
90
+ </ion-item>
91
+ <ion-item-options slot="end">
92
+ <ion-item-option color="warning">
93
+ <ion-icon slot="icon-only" name="pin"></ion-icon>
94
+ </ion-item-option>
95
+ </ion-item-options>
96
+ </ion-item-sliding>
97
+
98
+ <ion-item-sliding>
99
+ <ion-item>
100
+ <ion-label>Item 2</ion-label>
101
+ </ion-item>
102
+ <ion-item-options slot="end">
103
+ <ion-item-option color="warning">
104
+ <ion-icon slot="icon-only" name="pin"></ion-icon>
105
+ </ion-item-option>
106
+ </ion-item-options>
107
+ </ion-item-sliding>
108
+ </ion-list>
109
+ </div>
110
+ `, config);
111
+ const container = page.locator('#container');
112
+ await expect(container).toHaveScreenshot(screenshot('inset-list-end-options-no-lines'));
113
+ });
114
+ test('last item in inset list with start options should not have line', async ({ page }) => {
115
+ await page.setContent(`
116
+ <style>
117
+ #container {
118
+ padding: 10px;
119
+ background: #0088cc;
120
+ }
121
+
122
+ ion-item {
123
+ --border-color: red;
124
+ }
125
+ </style>
126
+ <div id="container">
127
+ <ion-list inset="true">
128
+ <ion-item-sliding>
129
+ <ion-item-options slot="start">
130
+ <ion-item-option color="warning">
131
+ <ion-icon slot="icon-only" name="pin"></ion-icon>
132
+ </ion-item-option>
133
+ </ion-item-options>
134
+ <ion-item>
135
+ <ion-label>Item 0</ion-label>
136
+ </ion-item>
137
+ </ion-item-sliding>
138
+
139
+ <ion-item-sliding>
140
+ <ion-item-options slot="start">
141
+ <ion-item-option color="warning">
142
+ <ion-icon slot="icon-only" name="pin"></ion-icon>
143
+ </ion-item-option>
144
+ </ion-item-options>
145
+ <ion-item>
146
+ <ion-label>Item 1</ion-label>
147
+ </ion-item>
148
+ </ion-item-sliding>
149
+
150
+ <ion-item-sliding>
151
+ <ion-item-options slot="start">
152
+ <ion-item-option color="warning">
153
+ <ion-icon slot="icon-only" name="pin"></ion-icon>
154
+ </ion-item-option>
155
+ </ion-item-options>
156
+ <ion-item>
157
+ <ion-label>Item 2</ion-label>
158
+ </ion-item>
159
+ </ion-item-sliding>
160
+ </ion-list>
161
+ </div>
162
+ `, config);
163
+ const container = page.locator('#container');
164
+ await expect(container).toHaveScreenshot(screenshot('inset-list-start-options-no-lines'));
165
+ });
166
+ });
167
+ });
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2023-11-03T06:03:40",
2
+ "timestamp": "2023-11-06T06:03:54",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.7.0",
@@ -394,9 +394,9 @@ Label.style = {
394
394
  md: labelMdCss
395
395
  };
396
396
 
397
- const listIosCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:last-child{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
397
+ const listIosCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
398
398
 
399
- const listMdCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:first-child{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:last-child{--border-radius:0 0 2px, 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
399
+ const listMdCss = "ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):first-of-type,.list-md.list-inset ion-item-sliding:first-of-type ion-item{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-radius:0 0 2px 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-radius:2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}";
400
400
 
401
401
  const List = class {
402
402
  constructor(hostRef) {