@proximus/lavender-carousel 2.0.0-alpha.21 → 2.0.0-alpha.210

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;
9
- template: string;
8
+ #private;
9
+ protected static readonly template: HTMLTemplateElement;
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;
@@ -24,6 +22,7 @@ export declare class Carousel extends HTMLElement {
24
22
  get itemNumbers(): number;
25
23
  }
26
24
  export declare class CarouselItem extends HTMLElement {
27
- template: string;
25
+ protected static readonly template: HTMLTemplateElement;
28
26
  constructor();
27
+ connectedCallback(): void;
29
28
  }
@@ -0,0 +1,317 @@
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
+ "privacy": "protected",
119
+ "static": true,
120
+ "readonly": true
121
+ },
122
+ {
123
+ "kind": "method",
124
+ "name": "#syncItems",
125
+ "privacy": "private"
126
+ },
127
+ {
128
+ "kind": "field",
129
+ "name": "onScroll",
130
+ "privacy": "private"
131
+ },
132
+ {
133
+ "kind": "method",
134
+ "name": "handleNextPrevious",
135
+ "privacy": "private"
136
+ },
137
+ {
138
+ "kind": "method",
139
+ "name": "handleAppleSeedDisplay",
140
+ "privacy": "private"
141
+ },
142
+ {
143
+ "kind": "method",
144
+ "name": "isScrolling"
145
+ },
146
+ {
147
+ "kind": "field",
148
+ "name": "$appleseedContainer",
149
+ "readonly": true
150
+ },
151
+ {
152
+ "kind": "field",
153
+ "name": "$appleseed",
154
+ "readonly": true
155
+ },
156
+ {
157
+ "kind": "field",
158
+ "name": "$carousel",
159
+ "readonly": true
160
+ },
161
+ {
162
+ "kind": "field",
163
+ "name": "$previous",
164
+ "readonly": true
165
+ },
166
+ {
167
+ "kind": "field",
168
+ "name": "$next",
169
+ "readonly": true
170
+ },
171
+ {
172
+ "kind": "field",
173
+ "name": "$firstItem",
174
+ "readonly": true
175
+ },
176
+ {
177
+ "kind": "field",
178
+ "name": "itemNumbers",
179
+ "readonly": true
180
+ },
181
+ {
182
+ "kind": "field",
183
+ "name": "adoptedStyleSheets",
184
+ "type": {
185
+ "text": "array"
186
+ },
187
+ "default": "[styleSheet]"
188
+ }
189
+ ],
190
+ "superclass": {
191
+ "name": "HTMLElement"
192
+ },
193
+ "tagName": "px-carousel",
194
+ "customElement": true
195
+ },
196
+ {
197
+ "kind": "class",
198
+ "description": "",
199
+ "name": "CarouselItem",
200
+ "members": [
201
+ {
202
+ "kind": "field",
203
+ "name": "template",
204
+ "privacy": "protected",
205
+ "static": true,
206
+ "readonly": true
207
+ },
208
+ {
209
+ "kind": "field",
210
+ "name": "adoptedStyleSheets",
211
+ "type": {
212
+ "text": "array"
213
+ },
214
+ "default": "[itemStyleSheet]"
215
+ }
216
+ ],
217
+ "events": [
218
+ {
219
+ "name": "CAROUSEL_ITEM_CONNECTED_EVENT",
220
+ "type": {
221
+ "text": "CustomEvent"
222
+ }
223
+ }
224
+ ],
225
+ "superclass": {
226
+ "name": "HTMLElement"
227
+ },
228
+ "tagName": "px-carousel-item",
229
+ "customElement": true
230
+ }
231
+ ],
232
+ "exports": [
233
+ {
234
+ "kind": "js",
235
+ "name": "CAROUSEL_ITEM_CONNECTED_EVENT",
236
+ "declaration": {
237
+ "name": "CAROUSEL_ITEM_CONNECTED_EVENT",
238
+ "module": "src/Carousel.ts"
239
+ }
240
+ },
241
+ {
242
+ "kind": "js",
243
+ "name": "Carousel",
244
+ "declaration": {
245
+ "name": "Carousel",
246
+ "module": "src/Carousel.ts"
247
+ }
248
+ },
249
+ {
250
+ "kind": "custom-element-definition",
251
+ "name": "px-carousel",
252
+ "declaration": {
253
+ "name": "Carousel",
254
+ "module": "src/Carousel.ts"
255
+ }
256
+ },
257
+ {
258
+ "kind": "js",
259
+ "name": "CarouselItem",
260
+ "declaration": {
261
+ "name": "CarouselItem",
262
+ "module": "src/Carousel.ts"
263
+ }
264
+ },
265
+ {
266
+ "kind": "custom-element-definition",
267
+ "name": "px-carousel-item",
268
+ "declaration": {
269
+ "name": "CarouselItem",
270
+ "module": "src/Carousel.ts"
271
+ }
272
+ }
273
+ ]
274
+ },
275
+ {
276
+ "kind": "javascript-module",
277
+ "path": "src/appleseed.css",
278
+ "declarations": [],
279
+ "exports": []
280
+ },
281
+ {
282
+ "kind": "javascript-module",
283
+ "path": "src/carousel-item.css",
284
+ "declarations": [],
285
+ "exports": []
286
+ },
287
+ {
288
+ "kind": "javascript-module",
289
+ "path": "src/carousel.css",
290
+ "declarations": [],
291
+ "exports": []
292
+ },
293
+ {
294
+ "kind": "javascript-module",
295
+ "path": "src/index.ts",
296
+ "declarations": [],
297
+ "exports": [
298
+ {
299
+ "kind": "js",
300
+ "name": "*",
301
+ "declaration": {
302
+ "name": "*",
303
+ "module": "src/Carousel"
304
+ }
305
+ },
306
+ {
307
+ "kind": "js",
308
+ "name": "*",
309
+ "declaration": {
310
+ "name": "*",
311
+ "module": "src/AppleSeed.ts"
312
+ }
313
+ }
314
+ ]
315
+ }
316
+ ]
317
+ }