@roadtrip/components 2.25.1 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/road-autocomplete.cjs.entry.js +5 -0
- package/dist/cjs/road-badge_11.cjs.entry.js +4 -0
- package/dist/cjs/road-card.cjs.entry.js +7 -2
- package/dist/cjs/road-carousel.cjs.entry.js +32 -32
- package/dist/cjs/road-checkbox.cjs.entry.js +9 -0
- package/dist/cjs/road-counter.cjs.entry.js +4 -0
- package/dist/cjs/road-img.cjs.entry.js +6 -0
- package/dist/cjs/road-input.cjs.entry.js +9 -0
- package/dist/cjs/road-navbar-item.cjs.entry.js +6 -0
- package/dist/cjs/road-navbar.cjs.entry.js +4 -0
- package/dist/cjs/road-plate-number.cjs.entry.js +8 -0
- package/dist/cjs/road-radio-group.cjs.entry.js +2 -0
- package/dist/cjs/road-radio.cjs.entry.js +4 -0
- package/dist/cjs/road-range.cjs.entry.js +2 -0
- package/dist/cjs/road-select-filter.cjs.entry.js +5 -0
- package/dist/cjs/road-select.cjs.entry.js +8 -0
- package/dist/cjs/road-switch.cjs.entry.js +9 -0
- package/dist/cjs/road-tab-bar.cjs.entry.js +4 -0
- package/dist/cjs/road-tab-button.cjs.entry.js +6 -0
- package/dist/cjs/road-tabs.cjs.entry.js +2 -0
- package/dist/cjs/road-textarea.cjs.entry.js +8 -0
- package/dist/cjs/roadtrip.cjs.js +1 -1
- package/dist/collection/components/autocomplete/autocomplete.js +30 -2
- package/dist/collection/components/autocomplete/autocomplete.stories.js +6 -6
- package/dist/collection/components/button/button.js +41 -3
- package/dist/collection/components/button/button.stories.js +3 -3
- package/dist/collection/components/card/card.js +26 -4
- package/dist/collection/components/card/card.stories.js +1 -1
- package/dist/collection/components/carousel/carousel.js +48 -48
- package/dist/collection/components/carousel/carousel.stories.js +32 -32
- package/dist/collection/components/checkbox/checkbox.js +65 -5
- package/dist/collection/components/checkbox/checkbox.stories.js +6 -6
- package/dist/collection/components/counter/counter.js +41 -3
- package/dist/collection/components/counter/counter.stories.js +3 -3
- package/dist/collection/components/img/img.js +61 -4
- package/dist/collection/components/img/img.stories.js +1 -1
- package/dist/collection/components/input/input.js +88 -7
- package/dist/collection/components/input/input.stories.js +9 -9
- package/dist/collection/components/navbar/navbar.js +27 -0
- package/dist/collection/components/navbar/navbar.stories.js +1 -1
- package/dist/collection/components/navbar-item/navbar-item.js +30 -1
- package/dist/collection/components/plate-number/plate-number.js +87 -7
- package/dist/collection/components/plate-number/plate-number.stories.js +7 -7
- package/dist/collection/components/radio/radio.js +47 -3
- package/dist/collection/components/radio/radio.stories.js +6 -6
- package/dist/collection/components/radio-group/radio-group.js +21 -2
- package/dist/collection/components/range/range.js +21 -2
- package/dist/collection/components/range/range.stories.js +3 -3
- package/dist/collection/components/select/select.js +64 -5
- package/dist/collection/components/select/select.stories.js +6 -6
- package/dist/collection/components/select-filter/select-filter.js +36 -2
- package/dist/collection/components/select-filter/select-filter.stories.js +4 -4
- package/dist/collection/components/switch/switch.js +65 -5
- package/dist/collection/components/switch/switch.stories.js +6 -6
- package/dist/collection/components/tab-bar/tab-bar.js +21 -0
- package/dist/collection/components/tab-button/tab-button.js +30 -1
- package/dist/collection/components/tabs/tabs.js +39 -3
- package/dist/collection/components/tabs/tabs.stories.js +3 -3
- package/dist/collection/components/textarea/textarea.js +87 -7
- package/dist/collection/components/textarea/textarea.stories.js +9 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/road-autocomplete.entry.js +5 -0
- package/dist/esm/road-badge_11.entry.js +4 -0
- package/dist/esm/road-card.entry.js +7 -2
- package/dist/esm/road-carousel.entry.js +32 -32
- package/dist/esm/road-checkbox.entry.js +9 -0
- package/dist/esm/road-counter.entry.js +4 -0
- package/dist/esm/road-img.entry.js +6 -0
- package/dist/esm/road-input.entry.js +9 -0
- package/dist/esm/road-navbar-item.entry.js +6 -0
- package/dist/esm/road-navbar.entry.js +4 -0
- package/dist/esm/road-plate-number.entry.js +8 -0
- package/dist/esm/road-radio-group.entry.js +2 -0
- package/dist/esm/road-radio.entry.js +4 -0
- package/dist/esm/road-range.entry.js +2 -0
- package/dist/esm/road-select-filter.entry.js +5 -0
- package/dist/esm/road-select.entry.js +8 -0
- package/dist/esm/road-switch.entry.js +9 -0
- package/dist/esm/road-tab-bar.entry.js +4 -0
- package/dist/esm/road-tab-button.entry.js +6 -0
- package/dist/esm/road-tabs.entry.js +2 -0
- package/dist/esm/road-textarea.entry.js +8 -0
- package/dist/esm/roadtrip.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/road-autocomplete.entry.js +1 -1
- package/dist/esm-es5/road-badge_11.entry.js +1 -1
- package/dist/esm-es5/road-card.entry.js +1 -1
- package/dist/esm-es5/road-carousel.entry.js +1 -1
- package/dist/esm-es5/road-checkbox.entry.js +1 -1
- package/dist/esm-es5/road-counter.entry.js +1 -1
- package/dist/esm-es5/road-img.entry.js +1 -1
- package/dist/esm-es5/road-input.entry.js +1 -1
- package/dist/esm-es5/road-navbar-item.entry.js +1 -1
- package/dist/esm-es5/road-navbar.entry.js +1 -1
- package/dist/esm-es5/road-plate-number.entry.js +1 -1
- package/dist/esm-es5/road-radio-group.entry.js +1 -1
- package/dist/esm-es5/road-radio.entry.js +1 -1
- package/dist/esm-es5/road-range.entry.js +1 -1
- package/dist/esm-es5/road-select-filter.entry.js +1 -1
- package/dist/esm-es5/road-select.entry.js +1 -1
- package/dist/esm-es5/road-switch.entry.js +1 -1
- package/dist/esm-es5/road-tab-bar.entry.js +1 -1
- package/dist/esm-es5/road-tab-button.entry.js +1 -1
- package/dist/esm-es5/road-tabs.entry.js +1 -1
- package/dist/esm-es5/road-textarea.entry.js +1 -1
- package/dist/esm-es5/roadtrip.js +1 -1
- package/dist/roadtrip/p-01cebe6a.entry.js +1 -0
- package/dist/roadtrip/{p-a64c67ad.system.entry.js → p-04deac86.system.entry.js} +1 -1
- package/dist/roadtrip/{p-a1628953.system.entry.js → p-06921946.system.entry.js} +1 -1
- package/dist/roadtrip/p-0ada8d41.entry.js +1 -0
- package/dist/roadtrip/{p-de1a3a53.system.entry.js → p-0be273e0.system.entry.js} +1 -1
- package/dist/roadtrip/{p-25c303d8.system.entry.js → p-0cfc0efd.system.entry.js} +1 -1
- package/dist/roadtrip/p-0e645dfb.system.entry.js +1 -0
- package/dist/roadtrip/p-0f532f30.system.entry.js +1 -0
- package/dist/roadtrip/p-1481edc3.entry.js +1 -0
- package/dist/roadtrip/{p-f2593f4b.system.entry.js → p-20a7a848.system.entry.js} +1 -1
- package/dist/roadtrip/p-299ecdd3.entry.js +1 -0
- package/dist/roadtrip/{p-06a743b4.system.entry.js → p-2f2dc4a0.system.entry.js} +1 -1
- package/dist/roadtrip/p-354107fa.entry.js +1 -0
- package/dist/roadtrip/p-3ee7ff2a.system.entry.js +1 -0
- package/dist/roadtrip/{p-eaf8ddaf.system.entry.js → p-42ccd4a2.system.entry.js} +1 -1
- package/dist/roadtrip/{p-cf4b48af.system.entry.js → p-646e75cf.system.entry.js} +1 -1
- package/dist/roadtrip/p-6deb1943.system.entry.js +1 -0
- package/dist/roadtrip/p-6def92c3.entry.js +1 -0
- package/dist/roadtrip/p-6f248970.entry.js +1 -0
- package/dist/roadtrip/{p-a467913d.system.entry.js → p-7070c8b5.system.entry.js} +1 -1
- package/dist/roadtrip/p-7130ff47.entry.js +1 -0
- package/dist/roadtrip/p-7304b650.system.entry.js +1 -0
- package/dist/roadtrip/p-7765931a.system.entry.js +1 -0
- package/dist/roadtrip/p-83f8960f.entry.js +1 -0
- package/dist/roadtrip/p-87eb24ee.entry.js +1 -0
- package/dist/roadtrip/{p-76f26f2b.system.entry.js → p-9afcfc7c.system.entry.js} +1 -1
- package/dist/roadtrip/p-a7ddae1b.system.entry.js +1 -0
- package/dist/roadtrip/{p-6cf85ea2.system.entry.js → p-a8db6630.system.entry.js} +1 -1
- package/dist/roadtrip/p-b0e17e68.entry.js +1 -0
- package/dist/roadtrip/p-b205281e.system.js +1 -1
- package/dist/roadtrip/p-bcf74e54.system.entry.js +1 -0
- package/dist/roadtrip/p-bd4a114b.entry.js +1 -0
- package/dist/roadtrip/p-bebdee1e.entry.js +1 -0
- package/dist/roadtrip/p-c637a847.entry.js +1 -0
- package/dist/roadtrip/{p-0f8da68b.entry.js → p-d06202e7.entry.js} +1 -1
- package/dist/roadtrip/p-e4f0f0d7.entry.js +1 -0
- package/dist/roadtrip/p-e6664bbe.entry.js +1 -0
- package/dist/roadtrip/p-ea45d823.entry.js +1 -0
- package/dist/roadtrip/p-f20a3658.entry.js +1 -0
- package/dist/roadtrip/p-f233746c.system.entry.js +1 -0
- package/dist/roadtrip/{p-54635daa.system.entry.js → p-f4f42d5c.system.entry.js} +1 -1
- package/dist/roadtrip/{p-3cb3107f.entry.js → p-fa68c113.entry.js} +1 -1
- package/dist/roadtrip/p-fce355f6.entry.js +1 -0
- package/dist/roadtrip/roadtrip.esm.js +1 -1
- package/dist/types/components/autocomplete/autocomplete.d.ts +5 -0
- package/dist/types/components/button/button.d.ts +4 -0
- package/dist/types/components/card/card.d.ts +5 -0
- package/dist/types/components/carousel/carousel.d.ts +16 -16
- package/dist/types/components/checkbox/checkbox.d.ts +9 -0
- package/dist/types/components/counter/counter.d.ts +6 -2
- package/dist/types/components/img/img.d.ts +15 -3
- package/dist/types/components/input/input.d.ts +10 -0
- package/dist/types/components/navbar/navbar.d.ts +2 -0
- package/dist/types/components/navbar-item/navbar-item.d.ts +2 -0
- package/dist/types/components/plate-number/plate-number.d.ts +10 -0
- package/dist/types/components/radio/radio.d.ts +4 -0
- package/dist/types/components/radio-group/radio-group.d.ts +4 -0
- package/dist/types/components/range/range.d.ts +4 -0
- package/dist/types/components/select/select.d.ts +8 -0
- package/dist/types/components/select-filter/select-filter.d.ts +5 -0
- package/dist/types/components/switch/switch.d.ts +9 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +2 -0
- package/dist/types/components/tab-button/tab-button.d.ts +2 -0
- package/dist/types/components/tabs/tabs.d.ts +8 -0
- package/dist/types/components/textarea/textarea.d.ts +10 -0
- package/dist/types/components.d.ts +56 -56
- package/package.json +1 -1
- package/dist/roadtrip/p-093a2288.system.entry.js +0 -1
- package/dist/roadtrip/p-0a5f2c0f.entry.js +0 -1
- package/dist/roadtrip/p-0b4b6077.system.entry.js +0 -1
- package/dist/roadtrip/p-16a1b3cb.entry.js +0 -1
- package/dist/roadtrip/p-194b2934.entry.js +0 -1
- package/dist/roadtrip/p-19c89e8f.system.entry.js +0 -1
- package/dist/roadtrip/p-1ef8acf8.system.entry.js +0 -1
- package/dist/roadtrip/p-4ef3684e.entry.js +0 -1
- package/dist/roadtrip/p-52f05a7c.system.entry.js +0 -1
- package/dist/roadtrip/p-5e8571d3.system.entry.js +0 -1
- package/dist/roadtrip/p-63aa411f.entry.js +0 -1
- package/dist/roadtrip/p-68af3047.entry.js +0 -1
- package/dist/roadtrip/p-6f744bd8.entry.js +0 -1
- package/dist/roadtrip/p-768d1a90.entry.js +0 -1
- package/dist/roadtrip/p-82a07b27.entry.js +0 -1
- package/dist/roadtrip/p-8d18ebce.entry.js +0 -1
- package/dist/roadtrip/p-92300d3f.entry.js +0 -1
- package/dist/roadtrip/p-93345613.system.entry.js +0 -1
- package/dist/roadtrip/p-93ccfda6.entry.js +0 -1
- package/dist/roadtrip/p-9a36bd11.system.entry.js +0 -1
- package/dist/roadtrip/p-a3bc0e5b.entry.js +0 -1
- package/dist/roadtrip/p-a7dc1c0c.entry.js +0 -1
- package/dist/roadtrip/p-a9c74737.entry.js +0 -1
- package/dist/roadtrip/p-adbaa790.entry.js +0 -1
- package/dist/roadtrip/p-b501c4b2.entry.js +0 -1
- package/dist/roadtrip/p-bba29599.entry.js +0 -1
- package/dist/roadtrip/p-e4b0578a.entry.js +0 -1
- package/dist/roadtrip/p-e56b3c0f.system.entry.js +0 -1
|
@@ -41,13 +41,18 @@ export class Select {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
this.onBlur = () => {
|
|
44
|
+
this.roadblur.emit();
|
|
44
45
|
this.roadBlur.emit();
|
|
45
46
|
};
|
|
46
47
|
this.onFocus = () => {
|
|
48
|
+
this.roadfocus.emit();
|
|
47
49
|
this.roadFocus.emit();
|
|
48
50
|
};
|
|
49
51
|
}
|
|
50
52
|
valueChanged() {
|
|
53
|
+
this.roadchange.emit({
|
|
54
|
+
value: this.value,
|
|
55
|
+
});
|
|
51
56
|
this.roadChange.emit({
|
|
52
57
|
value: this.value,
|
|
53
58
|
});
|
|
@@ -254,8 +259,8 @@ export class Select {
|
|
|
254
259
|
}
|
|
255
260
|
}; }
|
|
256
261
|
static get events() { return [{
|
|
257
|
-
"method": "
|
|
258
|
-
"name": "
|
|
262
|
+
"method": "roadchange",
|
|
263
|
+
"name": "roadchange",
|
|
259
264
|
"bubbles": true,
|
|
260
265
|
"cancelable": true,
|
|
261
266
|
"composed": true,
|
|
@@ -268,15 +273,66 @@ export class Select {
|
|
|
268
273
|
"resolved": "{ value: string | null | undefined; }",
|
|
269
274
|
"references": {}
|
|
270
275
|
}
|
|
276
|
+
}, {
|
|
277
|
+
"method": "roadChange",
|
|
278
|
+
"name": "roadChange",
|
|
279
|
+
"bubbles": true,
|
|
280
|
+
"cancelable": true,
|
|
281
|
+
"composed": true,
|
|
282
|
+
"docs": {
|
|
283
|
+
"tags": [{
|
|
284
|
+
"name": "internal",
|
|
285
|
+
"text": undefined
|
|
286
|
+
}],
|
|
287
|
+
"text": ""
|
|
288
|
+
},
|
|
289
|
+
"complexType": {
|
|
290
|
+
"original": "{\n value: string | undefined | null\n }",
|
|
291
|
+
"resolved": "{ value: string | null | undefined; }",
|
|
292
|
+
"references": {}
|
|
293
|
+
}
|
|
294
|
+
}, {
|
|
295
|
+
"method": "roadfocus",
|
|
296
|
+
"name": "roadfocus",
|
|
297
|
+
"bubbles": true,
|
|
298
|
+
"cancelable": true,
|
|
299
|
+
"composed": true,
|
|
300
|
+
"docs": {
|
|
301
|
+
"tags": [],
|
|
302
|
+
"text": "Emitted when the select has focus."
|
|
303
|
+
},
|
|
304
|
+
"complexType": {
|
|
305
|
+
"original": "void",
|
|
306
|
+
"resolved": "void",
|
|
307
|
+
"references": {}
|
|
308
|
+
}
|
|
271
309
|
}, {
|
|
272
310
|
"method": "roadFocus",
|
|
273
311
|
"name": "roadFocus",
|
|
274
312
|
"bubbles": true,
|
|
275
313
|
"cancelable": true,
|
|
276
314
|
"composed": true,
|
|
315
|
+
"docs": {
|
|
316
|
+
"tags": [{
|
|
317
|
+
"name": "internal",
|
|
318
|
+
"text": undefined
|
|
319
|
+
}],
|
|
320
|
+
"text": ""
|
|
321
|
+
},
|
|
322
|
+
"complexType": {
|
|
323
|
+
"original": "void",
|
|
324
|
+
"resolved": "void",
|
|
325
|
+
"references": {}
|
|
326
|
+
}
|
|
327
|
+
}, {
|
|
328
|
+
"method": "roadblur",
|
|
329
|
+
"name": "roadblur",
|
|
330
|
+
"bubbles": true,
|
|
331
|
+
"cancelable": true,
|
|
332
|
+
"composed": true,
|
|
277
333
|
"docs": {
|
|
278
334
|
"tags": [],
|
|
279
|
-
"text": "Emitted when the select
|
|
335
|
+
"text": "Emitted when the select loses focus."
|
|
280
336
|
},
|
|
281
337
|
"complexType": {
|
|
282
338
|
"original": "void",
|
|
@@ -290,8 +346,11 @@ export class Select {
|
|
|
290
346
|
"cancelable": true,
|
|
291
347
|
"composed": true,
|
|
292
348
|
"docs": {
|
|
293
|
-
"tags": [
|
|
294
|
-
|
|
349
|
+
"tags": [{
|
|
350
|
+
"name": "internal",
|
|
351
|
+
"text": undefined
|
|
352
|
+
}],
|
|
353
|
+
"text": ""
|
|
295
354
|
},
|
|
296
355
|
"complexType": {
|
|
297
356
|
"original": "void",
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: 'road-select',
|
|
7
7
|
parameters: {
|
|
8
8
|
actions: {
|
|
9
|
-
handles: ['
|
|
9
|
+
handles: ['roadblur', 'roadfocus'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
@@ -37,18 +37,18 @@ export default {
|
|
|
37
37
|
value: {
|
|
38
38
|
control: 'text',
|
|
39
39
|
},
|
|
40
|
-
|
|
40
|
+
roadblur: {
|
|
41
41
|
control: {
|
|
42
42
|
type: null,
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
roadfocus: {
|
|
46
46
|
control: {
|
|
47
47
|
type: null,
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
|
-
|
|
51
|
-
action: '
|
|
50
|
+
roadchange: {
|
|
51
|
+
action: 'roadchange',
|
|
52
52
|
control: {
|
|
53
53
|
type: null,
|
|
54
54
|
},
|
|
@@ -78,7 +78,7 @@ const Template = (args) => html`
|
|
|
78
78
|
size="${ifDefined(args.size)}"
|
|
79
79
|
select-id="${ifDefined(args['select-id'])}"
|
|
80
80
|
value="${ifDefined(args.value)}"
|
|
81
|
-
@
|
|
81
|
+
@roadchange=${event => args.roadchange(event.detail.value)}
|
|
82
82
|
></road-select>
|
|
83
83
|
`;
|
|
84
84
|
|
|
@@ -27,6 +27,10 @@ export class SelectFilter {
|
|
|
27
27
|
this.onClick = (value, label) => {
|
|
28
28
|
this.el.querySelector('road-input').value = label;
|
|
29
29
|
this.isOpen = false;
|
|
30
|
+
this.roadselected.emit({
|
|
31
|
+
value: value.toString(),
|
|
32
|
+
label: label,
|
|
33
|
+
});
|
|
30
34
|
this.roadSelected.emit({
|
|
31
35
|
value: value.toString(),
|
|
32
36
|
label: label,
|
|
@@ -127,8 +131,8 @@ export class SelectFilter {
|
|
|
127
131
|
"currentValue": {}
|
|
128
132
|
}; }
|
|
129
133
|
static get events() { return [{
|
|
130
|
-
"method": "
|
|
131
|
-
"name": "
|
|
134
|
+
"method": "roadselected",
|
|
135
|
+
"name": "roadselected",
|
|
132
136
|
"bubbles": true,
|
|
133
137
|
"cancelable": true,
|
|
134
138
|
"composed": true,
|
|
@@ -141,6 +145,24 @@ export class SelectFilter {
|
|
|
141
145
|
"resolved": "{ value: string | null | undefined; label: string; }",
|
|
142
146
|
"references": {}
|
|
143
147
|
}
|
|
148
|
+
}, {
|
|
149
|
+
"method": "roadSelected",
|
|
150
|
+
"name": "roadSelected",
|
|
151
|
+
"bubbles": true,
|
|
152
|
+
"cancelable": true,
|
|
153
|
+
"composed": true,
|
|
154
|
+
"docs": {
|
|
155
|
+
"tags": [{
|
|
156
|
+
"name": "internal",
|
|
157
|
+
"text": undefined
|
|
158
|
+
}],
|
|
159
|
+
"text": ""
|
|
160
|
+
},
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "{\n value: string | undefined | null,\n label: string\n }",
|
|
163
|
+
"resolved": "{ value: string | null | undefined; label: string; }",
|
|
164
|
+
"references": {}
|
|
165
|
+
}
|
|
144
166
|
}]; }
|
|
145
167
|
static get elementRef() { return "el"; }
|
|
146
168
|
static get listeners() { return [{
|
|
@@ -149,12 +171,24 @@ export class SelectFilter {
|
|
|
149
171
|
"target": undefined,
|
|
150
172
|
"capture": false,
|
|
151
173
|
"passive": false
|
|
174
|
+
}, {
|
|
175
|
+
"name": "roadfocus",
|
|
176
|
+
"method": "handleFocus",
|
|
177
|
+
"target": undefined,
|
|
178
|
+
"capture": false,
|
|
179
|
+
"passive": false
|
|
152
180
|
}, {
|
|
153
181
|
"name": "roadChange",
|
|
154
182
|
"method": "handleChange",
|
|
155
183
|
"target": undefined,
|
|
156
184
|
"capture": false,
|
|
157
185
|
"passive": false
|
|
186
|
+
}, {
|
|
187
|
+
"name": "roadchange",
|
|
188
|
+
"method": "handleChange",
|
|
189
|
+
"target": undefined,
|
|
190
|
+
"capture": false,
|
|
191
|
+
"passive": false
|
|
158
192
|
}, {
|
|
159
193
|
"name": "click",
|
|
160
194
|
"method": "onClickOutside",
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
component: 'road-select-filter',
|
|
8
8
|
parameters: {
|
|
9
9
|
actions: {
|
|
10
|
-
handles: ['
|
|
10
|
+
handles: ['roadblur', 'roadfocus'],
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
argTypes: {
|
|
@@ -20,8 +20,8 @@ export default {
|
|
|
20
20
|
parameters: {
|
|
21
21
|
control: 'object',
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
action: '
|
|
23
|
+
roadselected: {
|
|
24
|
+
action: 'roadselected',
|
|
25
25
|
control: {
|
|
26
26
|
type: null,
|
|
27
27
|
},
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
const Template = (args) => html`
|
|
55
|
-
<road-select-filter .options=${args.options} only-select="${ifDefined(args['only-select'])}" @
|
|
55
|
+
<road-select-filter .options=${args.options} only-select="${ifDefined(args['only-select'])}" @roadselected=${event => args.roadselected(event.detail)}>
|
|
56
56
|
${unsafeHTML(args[' '])}
|
|
57
57
|
</road-select-filter>
|
|
58
58
|
`;
|
|
@@ -50,13 +50,19 @@ export class Switch {
|
|
|
50
50
|
this.checked = !this.checked;
|
|
51
51
|
};
|
|
52
52
|
this.onFocus = () => {
|
|
53
|
+
this.roadfocus.emit();
|
|
53
54
|
this.roadFocus.emit();
|
|
54
55
|
};
|
|
55
56
|
this.onBlur = () => {
|
|
56
57
|
this.roadBlur.emit();
|
|
58
|
+
this.roadblur.emit();
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
checkedChanged(isChecked) {
|
|
62
|
+
this.roadchange.emit({
|
|
63
|
+
checked: isChecked,
|
|
64
|
+
value: this.value,
|
|
65
|
+
});
|
|
60
66
|
this.roadChange.emit({
|
|
61
67
|
checked: isChecked,
|
|
62
68
|
value: this.value,
|
|
@@ -289,8 +295,8 @@ export class Switch {
|
|
|
289
295
|
}
|
|
290
296
|
}; }
|
|
291
297
|
static get events() { return [{
|
|
292
|
-
"method": "
|
|
293
|
-
"name": "
|
|
298
|
+
"method": "roadchange",
|
|
299
|
+
"name": "roadchange",
|
|
294
300
|
"bubbles": true,
|
|
295
301
|
"cancelable": true,
|
|
296
302
|
"composed": true,
|
|
@@ -303,15 +309,66 @@ export class Switch {
|
|
|
303
309
|
"resolved": "{ checked: boolean; value: string | null | undefined; }",
|
|
304
310
|
"references": {}
|
|
305
311
|
}
|
|
312
|
+
}, {
|
|
313
|
+
"method": "roadChange",
|
|
314
|
+
"name": "roadChange",
|
|
315
|
+
"bubbles": true,
|
|
316
|
+
"cancelable": true,
|
|
317
|
+
"composed": true,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [{
|
|
320
|
+
"name": "internal",
|
|
321
|
+
"text": undefined
|
|
322
|
+
}],
|
|
323
|
+
"text": ""
|
|
324
|
+
},
|
|
325
|
+
"complexType": {
|
|
326
|
+
"original": "{\n checked: boolean;\n value: string | undefined | null\n }",
|
|
327
|
+
"resolved": "{ checked: boolean; value: string | null | undefined; }",
|
|
328
|
+
"references": {}
|
|
329
|
+
}
|
|
330
|
+
}, {
|
|
331
|
+
"method": "roadfocus",
|
|
332
|
+
"name": "roadfocus",
|
|
333
|
+
"bubbles": true,
|
|
334
|
+
"cancelable": true,
|
|
335
|
+
"composed": true,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": "Emitted when the switch has focus."
|
|
339
|
+
},
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "void",
|
|
342
|
+
"resolved": "void",
|
|
343
|
+
"references": {}
|
|
344
|
+
}
|
|
306
345
|
}, {
|
|
307
346
|
"method": "roadFocus",
|
|
308
347
|
"name": "roadFocus",
|
|
309
348
|
"bubbles": true,
|
|
310
349
|
"cancelable": true,
|
|
311
350
|
"composed": true,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [{
|
|
353
|
+
"name": "internal",
|
|
354
|
+
"text": undefined
|
|
355
|
+
}],
|
|
356
|
+
"text": ""
|
|
357
|
+
},
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "void",
|
|
360
|
+
"resolved": "void",
|
|
361
|
+
"references": {}
|
|
362
|
+
}
|
|
363
|
+
}, {
|
|
364
|
+
"method": "roadblur",
|
|
365
|
+
"name": "roadblur",
|
|
366
|
+
"bubbles": true,
|
|
367
|
+
"cancelable": true,
|
|
368
|
+
"composed": true,
|
|
312
369
|
"docs": {
|
|
313
370
|
"tags": [],
|
|
314
|
-
"text": "Emitted when the switch
|
|
371
|
+
"text": "Emitted when the switch loses focus."
|
|
315
372
|
},
|
|
316
373
|
"complexType": {
|
|
317
374
|
"original": "void",
|
|
@@ -325,8 +382,11 @@ export class Switch {
|
|
|
325
382
|
"cancelable": true,
|
|
326
383
|
"composed": true,
|
|
327
384
|
"docs": {
|
|
328
|
-
"tags": [
|
|
329
|
-
|
|
385
|
+
"tags": [{
|
|
386
|
+
"name": "internal",
|
|
387
|
+
"text": undefined
|
|
388
|
+
}],
|
|
389
|
+
"text": ""
|
|
330
390
|
},
|
|
331
391
|
"complexType": {
|
|
332
392
|
"original": "void",
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
component: 'road-switch',
|
|
7
7
|
parameters: {
|
|
8
8
|
actions: {
|
|
9
|
-
handles: ['
|
|
9
|
+
handles: ['roadblur', 'roadfocus'],
|
|
10
10
|
},
|
|
11
11
|
},
|
|
12
12
|
argTypes: {
|
|
@@ -46,18 +46,18 @@ export default {
|
|
|
46
46
|
'is-spaced': {
|
|
47
47
|
control: 'boolean',
|
|
48
48
|
},
|
|
49
|
-
|
|
49
|
+
roadblur: {
|
|
50
50
|
control: {
|
|
51
51
|
type: null,
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
roadfocus: {
|
|
55
55
|
control: {
|
|
56
56
|
type: null,
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
|
-
|
|
60
|
-
action: '
|
|
59
|
+
roadchange: {
|
|
60
|
+
action: 'roadchange',
|
|
61
61
|
control: {
|
|
62
62
|
type: null,
|
|
63
63
|
},
|
|
@@ -97,7 +97,7 @@ const Template = (args) => html`
|
|
|
97
97
|
has-left-label="${ifDefined(args['has-left-label'])}"
|
|
98
98
|
is-spaced="${ifDefined(args['is-spaced'])}"
|
|
99
99
|
switch-id="${ifDefined(args['switch-id'])}"
|
|
100
|
-
@
|
|
100
|
+
@roadchange=${event => args.roadchange(event.detail)}
|
|
101
101
|
></road-switch>
|
|
102
102
|
`;
|
|
103
103
|
|
|
@@ -16,6 +16,9 @@ export class TabBar {
|
|
|
16
16
|
}
|
|
17
17
|
selectedTabChanged() {
|
|
18
18
|
if (this.selectedTab !== undefined) {
|
|
19
|
+
this.roadtabbarchanged.emit({
|
|
20
|
+
tab: this.selectedTab,
|
|
21
|
+
});
|
|
19
22
|
this.roadTabBarChanged.emit({
|
|
20
23
|
tab: this.selectedTab,
|
|
21
24
|
});
|
|
@@ -96,6 +99,24 @@ export class TabBar {
|
|
|
96
99
|
}
|
|
97
100
|
}; }
|
|
98
101
|
static get events() { return [{
|
|
102
|
+
"method": "roadtabbarchanged",
|
|
103
|
+
"name": "roadtabbarchanged",
|
|
104
|
+
"bubbles": true,
|
|
105
|
+
"cancelable": true,
|
|
106
|
+
"composed": true,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [{
|
|
109
|
+
"name": "internal",
|
|
110
|
+
"text": undefined
|
|
111
|
+
}],
|
|
112
|
+
"text": ""
|
|
113
|
+
},
|
|
114
|
+
"complexType": {
|
|
115
|
+
"original": "any",
|
|
116
|
+
"resolved": "any",
|
|
117
|
+
"references": {}
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
99
120
|
"method": "roadTabBarChanged",
|
|
100
121
|
"name": "roadTabBarChanged",
|
|
101
122
|
"bubbles": true,
|
|
@@ -33,6 +33,11 @@ export class TabButton {
|
|
|
33
33
|
}
|
|
34
34
|
selectTab(ev) {
|
|
35
35
|
if (this.tab !== undefined) {
|
|
36
|
+
this.roadtabbuttonclick.emit({
|
|
37
|
+
tab: this.tab,
|
|
38
|
+
href: this.href,
|
|
39
|
+
selected: this.selected,
|
|
40
|
+
});
|
|
36
41
|
this.roadTabButtonClick.emit({
|
|
37
42
|
tab: this.tab,
|
|
38
43
|
href: this.href,
|
|
@@ -206,6 +211,24 @@ export class TabButton {
|
|
|
206
211
|
}
|
|
207
212
|
}; }
|
|
208
213
|
static get events() { return [{
|
|
214
|
+
"method": "roadtabbuttonclick",
|
|
215
|
+
"name": "roadtabbuttonclick",
|
|
216
|
+
"bubbles": true,
|
|
217
|
+
"cancelable": true,
|
|
218
|
+
"composed": true,
|
|
219
|
+
"docs": {
|
|
220
|
+
"tags": [{
|
|
221
|
+
"name": "internal",
|
|
222
|
+
"text": undefined
|
|
223
|
+
}],
|
|
224
|
+
"text": "Emitted when the tab bar is clicked"
|
|
225
|
+
},
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "any",
|
|
228
|
+
"resolved": "any",
|
|
229
|
+
"references": {}
|
|
230
|
+
}
|
|
231
|
+
}, {
|
|
209
232
|
"method": "roadTabButtonClick",
|
|
210
233
|
"name": "roadTabButtonClick",
|
|
211
234
|
"bubbles": true,
|
|
@@ -216,7 +239,7 @@ export class TabButton {
|
|
|
216
239
|
"name": "internal",
|
|
217
240
|
"text": undefined
|
|
218
241
|
}],
|
|
219
|
-
"text": "
|
|
242
|
+
"text": ""
|
|
220
243
|
},
|
|
221
244
|
"complexType": {
|
|
222
245
|
"original": "any",
|
|
@@ -231,5 +254,11 @@ export class TabButton {
|
|
|
231
254
|
"target": "window",
|
|
232
255
|
"capture": false,
|
|
233
256
|
"passive": false
|
|
257
|
+
}, {
|
|
258
|
+
"name": "roadTabbarchanged",
|
|
259
|
+
"method": "onTabBarChanged",
|
|
260
|
+
"target": "window",
|
|
261
|
+
"capture": false,
|
|
262
|
+
"passive": false
|
|
234
263
|
}]; }
|
|
235
264
|
}
|
|
@@ -103,14 +103,47 @@ export class Tabs {
|
|
|
103
103
|
"selectedTab": {}
|
|
104
104
|
}; }
|
|
105
105
|
static get events() { return [{
|
|
106
|
+
"method": "roadtabswillchange",
|
|
107
|
+
"name": "roadtabswillchange",
|
|
108
|
+
"bubbles": false,
|
|
109
|
+
"cancelable": true,
|
|
110
|
+
"composed": true,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "Emitted when the navigation is about to transition to a new component."
|
|
114
|
+
},
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "{tab: string}",
|
|
117
|
+
"resolved": "{ tab: string; }",
|
|
118
|
+
"references": {}
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
106
121
|
"method": "roadTabsWillChange",
|
|
107
122
|
"name": "roadTabsWillChange",
|
|
108
123
|
"bubbles": false,
|
|
109
124
|
"cancelable": true,
|
|
110
125
|
"composed": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [{
|
|
128
|
+
"name": "internal",
|
|
129
|
+
"text": undefined
|
|
130
|
+
}],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "{tab: string}",
|
|
135
|
+
"resolved": "{ tab: string; }",
|
|
136
|
+
"references": {}
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
"method": "roadtabsdidchange",
|
|
140
|
+
"name": "roadtabsdidchange",
|
|
141
|
+
"bubbles": false,
|
|
142
|
+
"cancelable": true,
|
|
143
|
+
"composed": true,
|
|
111
144
|
"docs": {
|
|
112
145
|
"tags": [],
|
|
113
|
-
"text": "Emitted when the navigation
|
|
146
|
+
"text": "Emitted when the navigation has finished transitioning to a new component."
|
|
114
147
|
},
|
|
115
148
|
"complexType": {
|
|
116
149
|
"original": "{tab: string}",
|
|
@@ -124,8 +157,11 @@ export class Tabs {
|
|
|
124
157
|
"cancelable": true,
|
|
125
158
|
"composed": true,
|
|
126
159
|
"docs": {
|
|
127
|
-
"tags": [
|
|
128
|
-
|
|
160
|
+
"tags": [{
|
|
161
|
+
"name": "internal",
|
|
162
|
+
"text": undefined
|
|
163
|
+
}],
|
|
164
|
+
"text": ""
|
|
129
165
|
},
|
|
130
166
|
"complexType": {
|
|
131
167
|
"original": "{tab: string}",
|
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
},
|
|
12
12
|
parameters: {
|
|
13
13
|
actions: {
|
|
14
|
-
handles: ['
|
|
14
|
+
handles: ['roadtabbuttonclick'],
|
|
15
15
|
},
|
|
16
16
|
backgrounds: {
|
|
17
17
|
default: 'grey',
|
|
@@ -24,12 +24,12 @@ export default {
|
|
|
24
24
|
' ': {
|
|
25
25
|
control: 'text',
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
roadtabsdidchange: {
|
|
28
28
|
control: {
|
|
29
29
|
type: null,
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
roadtabswillchange: {
|
|
33
33
|
control: {
|
|
34
34
|
type: null,
|
|
35
35
|
},
|