@proximus/lavender-carousel 2.0.0-alpha.20 → 2.0.0-alpha.200

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,7 +4,7 @@ export declare class AppleSeed extends HTMLElement {
4
4
  static get observedAttributes(): string[];
5
5
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
6
6
  handleActive(oldValue: string, newValue: string): void;
7
- get $active(): Element;
7
+ get $active(): Element | null;
8
8
  get amount(): number;
9
9
  get active(): number;
10
10
  }
@@ -1,15 +1,13 @@
1
- import { AttributeBreakpointHandlerDelegate } from '@proximus/lavender-common';
2
1
  import '@proximus/lavender-layout';
3
2
  import '@proximus/lavender-button-icon';
4
3
  import '@proximus/lavender-icon';
5
4
  import './AppleSeed.ts';
6
5
  import { type AppleSeed } from './AppleSeed.ts';
6
+ export declare const CAROUSEL_ITEM_CONNECTED_EVENT = "px-carousel-item-connected";
7
7
  export declare class Carousel extends HTMLElement {
8
- visibleItemsAttributeDelegate: AttributeBreakpointHandlerDelegate;
8
+ #private;
9
9
  template: string;
10
10
  constructor();
11
- static get observedAttributes(): string[];
12
- attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
13
11
  connectedCallback(): void;
14
12
  private onScroll;
15
13
  private handleNextPrevious;
@@ -26,4 +24,5 @@ export declare class Carousel extends HTMLElement {
26
24
  export declare class CarouselItem extends HTMLElement {
27
25
  template: string;
28
26
  constructor();
27
+ connectedCallback(): void;
29
28
  }
@@ -0,0 +1,321 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/AppleSeed.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "AppleSeed",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "template"
17
+ },
18
+ {
19
+ "kind": "method",
20
+ "name": "handleActive",
21
+ "parameters": [
22
+ {
23
+ "name": "oldValue",
24
+ "type": {
25
+ "text": "string"
26
+ }
27
+ },
28
+ {
29
+ "name": "newValue",
30
+ "type": {
31
+ "text": "string"
32
+ }
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "kind": "field",
38
+ "name": "$active",
39
+ "readonly": true
40
+ },
41
+ {
42
+ "kind": "field",
43
+ "name": "amount",
44
+ "readonly": true
45
+ },
46
+ {
47
+ "kind": "field",
48
+ "name": "active",
49
+ "readonly": true
50
+ },
51
+ {
52
+ "kind": "field",
53
+ "name": "adoptedStyleSheets",
54
+ "type": {
55
+ "text": "array"
56
+ },
57
+ "default": "[styleSheet]"
58
+ },
59
+ {
60
+ "kind": "field",
61
+ "name": "innerHTML"
62
+ }
63
+ ],
64
+ "attributes": [
65
+ {
66
+ "name": "amount"
67
+ },
68
+ {
69
+ "name": "active"
70
+ }
71
+ ],
72
+ "superclass": {
73
+ "name": "HTMLElement"
74
+ },
75
+ "tagName": "px-appleseed",
76
+ "customElement": true
77
+ }
78
+ ],
79
+ "exports": [
80
+ {
81
+ "kind": "js",
82
+ "name": "AppleSeed",
83
+ "declaration": {
84
+ "name": "AppleSeed",
85
+ "module": "src/AppleSeed.ts"
86
+ }
87
+ },
88
+ {
89
+ "kind": "custom-element-definition",
90
+ "name": "px-appleseed",
91
+ "declaration": {
92
+ "name": "AppleSeed",
93
+ "module": "src/AppleSeed.ts"
94
+ }
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "kind": "javascript-module",
100
+ "path": "src/Carousel.ts",
101
+ "declarations": [
102
+ {
103
+ "kind": "variable",
104
+ "name": "CAROUSEL_ITEM_CONNECTED_EVENT",
105
+ "type": {
106
+ "text": "string"
107
+ },
108
+ "default": "'px-carousel-item-connected'"
109
+ },
110
+ {
111
+ "kind": "class",
112
+ "description": "",
113
+ "name": "Carousel",
114
+ "members": [
115
+ {
116
+ "kind": "field",
117
+ "name": "template",
118
+ "default": "`<px-vstack gap=\"default\"> <div class=\"carousel\"> <slot></slot> </div> <px-hstack id=\"appleseed-container\" justify-content=\"space-between\" justify-content--mobile=\"center\" > <px-appleseed active=\"0\"></px-appleseed> <px-hstack id=\"button-icons\" gap=\"default\"> <px-button-icon disabled id=\"previous\" aria-hidden=\"true\"> <px-icon name=\"chevron_left\" from=\"lavender\"></px-icon> </px-button-icon> <px-button-icon id=\"next\" aria-hidden=\"true\"> <px-icon name=\"chevron_right\" from=\"lavender\"></px-icon> </px-button-icon> </px-hstack> </px-hstack> </px-vstack>`"
119
+ },
120
+ {
121
+ "kind": "method",
122
+ "name": "#syncItems",
123
+ "privacy": "private"
124
+ },
125
+ {
126
+ "kind": "field",
127
+ "name": "onScroll",
128
+ "privacy": "private"
129
+ },
130
+ {
131
+ "kind": "method",
132
+ "name": "handleNextPrevious",
133
+ "privacy": "private"
134
+ },
135
+ {
136
+ "kind": "method",
137
+ "name": "handleAppleSeedDisplay",
138
+ "privacy": "private"
139
+ },
140
+ {
141
+ "kind": "method",
142
+ "name": "isScrolling"
143
+ },
144
+ {
145
+ "kind": "field",
146
+ "name": "$appleseedContainer",
147
+ "readonly": true
148
+ },
149
+ {
150
+ "kind": "field",
151
+ "name": "$appleseed",
152
+ "readonly": true
153
+ },
154
+ {
155
+ "kind": "field",
156
+ "name": "$carousel",
157
+ "readonly": true
158
+ },
159
+ {
160
+ "kind": "field",
161
+ "name": "$previous",
162
+ "readonly": true
163
+ },
164
+ {
165
+ "kind": "field",
166
+ "name": "$next",
167
+ "readonly": true
168
+ },
169
+ {
170
+ "kind": "field",
171
+ "name": "$firstItem",
172
+ "readonly": true
173
+ },
174
+ {
175
+ "kind": "field",
176
+ "name": "itemNumbers",
177
+ "readonly": true
178
+ },
179
+ {
180
+ "kind": "field",
181
+ "name": "innerHTML"
182
+ },
183
+ {
184
+ "kind": "field",
185
+ "name": "adoptedStyleSheets",
186
+ "type": {
187
+ "text": "array"
188
+ },
189
+ "default": "[styleSheet]"
190
+ }
191
+ ],
192
+ "superclass": {
193
+ "name": "HTMLElement"
194
+ },
195
+ "tagName": "px-carousel",
196
+ "customElement": true
197
+ },
198
+ {
199
+ "kind": "class",
200
+ "description": "",
201
+ "name": "CarouselItem",
202
+ "members": [
203
+ {
204
+ "kind": "field",
205
+ "name": "template",
206
+ "default": "` <div class=\"carousel-item\"> <slot></slot> </div>`"
207
+ },
208
+ {
209
+ "kind": "field",
210
+ "name": "innerHTML"
211
+ },
212
+ {
213
+ "kind": "field",
214
+ "name": "adoptedStyleSheets",
215
+ "type": {
216
+ "text": "array"
217
+ },
218
+ "default": "[itemStyleSheet]"
219
+ }
220
+ ],
221
+ "events": [
222
+ {
223
+ "name": "CAROUSEL_ITEM_CONNECTED_EVENT",
224
+ "type": {
225
+ "text": "CustomEvent"
226
+ }
227
+ }
228
+ ],
229
+ "superclass": {
230
+ "name": "HTMLElement"
231
+ },
232
+ "tagName": "px-carousel-item",
233
+ "customElement": true
234
+ }
235
+ ],
236
+ "exports": [
237
+ {
238
+ "kind": "js",
239
+ "name": "CAROUSEL_ITEM_CONNECTED_EVENT",
240
+ "declaration": {
241
+ "name": "CAROUSEL_ITEM_CONNECTED_EVENT",
242
+ "module": "src/Carousel.ts"
243
+ }
244
+ },
245
+ {
246
+ "kind": "js",
247
+ "name": "Carousel",
248
+ "declaration": {
249
+ "name": "Carousel",
250
+ "module": "src/Carousel.ts"
251
+ }
252
+ },
253
+ {
254
+ "kind": "custom-element-definition",
255
+ "name": "px-carousel",
256
+ "declaration": {
257
+ "name": "Carousel",
258
+ "module": "src/Carousel.ts"
259
+ }
260
+ },
261
+ {
262
+ "kind": "js",
263
+ "name": "CarouselItem",
264
+ "declaration": {
265
+ "name": "CarouselItem",
266
+ "module": "src/Carousel.ts"
267
+ }
268
+ },
269
+ {
270
+ "kind": "custom-element-definition",
271
+ "name": "px-carousel-item",
272
+ "declaration": {
273
+ "name": "CarouselItem",
274
+ "module": "src/Carousel.ts"
275
+ }
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "kind": "javascript-module",
281
+ "path": "src/appleseed.css",
282
+ "declarations": [],
283
+ "exports": []
284
+ },
285
+ {
286
+ "kind": "javascript-module",
287
+ "path": "src/carousel-item.css",
288
+ "declarations": [],
289
+ "exports": []
290
+ },
291
+ {
292
+ "kind": "javascript-module",
293
+ "path": "src/carousel.css",
294
+ "declarations": [],
295
+ "exports": []
296
+ },
297
+ {
298
+ "kind": "javascript-module",
299
+ "path": "src/index.ts",
300
+ "declarations": [],
301
+ "exports": [
302
+ {
303
+ "kind": "js",
304
+ "name": "*",
305
+ "declaration": {
306
+ "name": "*",
307
+ "module": "src/Carousel"
308
+ }
309
+ },
310
+ {
311
+ "kind": "js",
312
+ "name": "*",
313
+ "declaration": {
314
+ "name": "*",
315
+ "module": "src/AppleSeed.ts"
316
+ }
317
+ }
318
+ ]
319
+ }
320
+ ]
321
+ }