@roadtrip/components 2.25.1 → 2.27.1
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-duration.cjs.entry.js +60 -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 +19 -3
- 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/collection-manifest.json +1 -0
- 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 +3 -3
- 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/duration/duration.css +31 -0
- package/dist/collection/components/duration/duration.js +212 -0
- package/dist/collection/components/duration/duration.stories.js +108 -0
- package/dist/collection/components/icon/svg/device-smartphone-music-color.svg +1 -0
- package/dist/collection/components/icon/svg/device-smartphone-music.svg +1 -0
- package/dist/collection/components/icon/svg/mic-off-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/mic-off-outline.svg +1 -0
- package/dist/collection/components/icon/svg/mic-off.svg +1 -0
- package/dist/collection/components/icon/svg/people-community-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/people-community-outline.svg +1 -0
- package/dist/collection/components/icon/svg/people-community.svg +1 -0
- package/dist/collection/components/icon/svg/people-coworker-color.svg +1 -1
- package/dist/collection/components/icon/svg/people-coworker.svg +1 -1
- package/dist/collection/components/icon/svg/player-radio-music-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/player-radio-music-outline.svg +1 -0
- package/dist/collection/components/icon/svg/station-electric-outline-color.svg +1 -0
- package/dist/collection/components/icon/svg/station-electric-outline.svg +1 -0
- 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.css +22 -3
- package/dist/collection/components/plate-number/plate-number.js +133 -9
- package/dist/collection/components/plate-number/plate-number.stories.js +69 -45
- 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-duration.entry.js +56 -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 +19 -3
- 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-duration.entry.js +1 -0
- 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/html.html-data.json +43 -0
- package/dist/icons/icons.svg +1 -1
- package/dist/icons/index.d.ts +12 -0
- package/dist/icons/index.js +14 -2
- 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-6bc4c517.system.entry.js +1 -0
- 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-7a07a70f.entry.js +1 -0
- package/dist/roadtrip/p-87eb24ee.entry.js +1 -0
- package/dist/roadtrip/p-8dc74557.system.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-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-f7cd0928.entry.js +1 -0
- 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/roadtrip/svg/device-smartphone-music-color.svg +1 -0
- package/dist/roadtrip/svg/device-smartphone-music.svg +1 -0
- package/dist/roadtrip/svg/mic-off-outline-color.svg +1 -0
- package/dist/roadtrip/svg/mic-off-outline.svg +1 -0
- package/dist/roadtrip/svg/mic-off.svg +1 -0
- package/dist/roadtrip/svg/people-community-outline-color.svg +1 -0
- package/dist/roadtrip/svg/people-community-outline.svg +1 -0
- package/dist/roadtrip/svg/people-community.svg +1 -0
- package/dist/roadtrip/svg/people-coworker-color.svg +1 -1
- package/dist/roadtrip/svg/people-coworker.svg +1 -1
- package/dist/roadtrip/svg/player-radio-music-outline-color.svg +1 -0
- package/dist/roadtrip/svg/player-radio-music-outline.svg +1 -0
- package/dist/roadtrip/svg/station-electric-outline-color.svg +1 -0
- package/dist/roadtrip/svg/station-electric-outline.svg +1 -0
- 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/duration/duration.d.ts +44 -0
- 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 +18 -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 +140 -56
- package/icons/icons.svg +1 -1
- package/icons/index.d.ts +12 -0
- package/icons/index.js +14 -2
- 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
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { Component, Element, Event, h, Listen, Method, Prop } from '@stencil/core';
|
|
2
|
+
export class Duration {
|
|
3
|
+
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Set isOpen property to true to open the duration widget
|
|
6
|
+
*/
|
|
7
|
+
this.isOpen = false;
|
|
8
|
+
/**
|
|
9
|
+
* title of the widget
|
|
10
|
+
*/
|
|
11
|
+
this.header = 'duration';
|
|
12
|
+
/**
|
|
13
|
+
* The minimum value, which must not be greater than its maximum (max attribute) value in minutes.
|
|
14
|
+
*/
|
|
15
|
+
this.min = 15;
|
|
16
|
+
/**
|
|
17
|
+
* The maximum value, which must not be less than its minimum (min attribute) value in minutes.
|
|
18
|
+
*/
|
|
19
|
+
this.max = 300;
|
|
20
|
+
/**
|
|
21
|
+
* Works with the min and max attributes to limit the increments at which a value can be set in minutes.
|
|
22
|
+
*/
|
|
23
|
+
this.step = 15;
|
|
24
|
+
}
|
|
25
|
+
handleClick(event) {
|
|
26
|
+
this.roadselected.emit({
|
|
27
|
+
value: event.detail.value.toString(),
|
|
28
|
+
label: event.detail.label,
|
|
29
|
+
});
|
|
30
|
+
this.close();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Open the widget
|
|
34
|
+
*/
|
|
35
|
+
async open() {
|
|
36
|
+
this.isOpen = true;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Close the widget
|
|
40
|
+
*/
|
|
41
|
+
async close() {
|
|
42
|
+
this.isOpen = false;
|
|
43
|
+
}
|
|
44
|
+
render() {
|
|
45
|
+
return (h("road-drawer", { "is-open": this.isOpen, position: "bottom", "drawer-title": this.header },
|
|
46
|
+
h("road-grid", null,
|
|
47
|
+
h("road-row", { class: "duration-values" }, Array(Math.floor((this.max - this.min) / this.step) + 1).fill(this.min).map(((item, index) => (item + index * this.step))).map(item => h("road-col", { class: "col-3 col-md-2" },
|
|
48
|
+
h("road-card", { button: true, value: item },
|
|
49
|
+
h("road-label", null,
|
|
50
|
+
Math.floor(item / 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false }),
|
|
51
|
+
":",
|
|
52
|
+
(item % 60).toLocaleString("en-GB", { minimumIntegerDigits: 2, useGrouping: false })))))))));
|
|
53
|
+
}
|
|
54
|
+
static get is() { return "road-duration"; }
|
|
55
|
+
static get encapsulation() { return "shadow"; }
|
|
56
|
+
static get originalStyleUrls() { return {
|
|
57
|
+
"$": ["duration.css"]
|
|
58
|
+
}; }
|
|
59
|
+
static get styleUrls() { return {
|
|
60
|
+
"$": ["duration.css"]
|
|
61
|
+
}; }
|
|
62
|
+
static get properties() { return {
|
|
63
|
+
"isOpen": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"mutable": true,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "boolean",
|
|
68
|
+
"resolved": "boolean",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": "Set isOpen property to true to open the duration widget"
|
|
76
|
+
},
|
|
77
|
+
"attribute": "is-open",
|
|
78
|
+
"reflect": false,
|
|
79
|
+
"defaultValue": "false"
|
|
80
|
+
},
|
|
81
|
+
"header": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "string",
|
|
86
|
+
"resolved": "string",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": "title of the widget"
|
|
94
|
+
},
|
|
95
|
+
"attribute": "header",
|
|
96
|
+
"reflect": false,
|
|
97
|
+
"defaultValue": "'duration'"
|
|
98
|
+
},
|
|
99
|
+
"min": {
|
|
100
|
+
"type": "number",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "number",
|
|
104
|
+
"resolved": "number",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "The minimum value, which must not be greater than its maximum (max attribute) value in minutes."
|
|
112
|
+
},
|
|
113
|
+
"attribute": "min",
|
|
114
|
+
"reflect": false,
|
|
115
|
+
"defaultValue": "15"
|
|
116
|
+
},
|
|
117
|
+
"max": {
|
|
118
|
+
"type": "number",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "number",
|
|
122
|
+
"resolved": "number",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": "The maximum value, which must not be less than its minimum (min attribute) value in minutes."
|
|
130
|
+
},
|
|
131
|
+
"attribute": "max",
|
|
132
|
+
"reflect": false,
|
|
133
|
+
"defaultValue": "300"
|
|
134
|
+
},
|
|
135
|
+
"step": {
|
|
136
|
+
"type": "number",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "number",
|
|
140
|
+
"resolved": "number",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "Works with the min and max attributes to limit the increments at which a value can be set in minutes."
|
|
148
|
+
},
|
|
149
|
+
"attribute": "step",
|
|
150
|
+
"reflect": false,
|
|
151
|
+
"defaultValue": "15"
|
|
152
|
+
}
|
|
153
|
+
}; }
|
|
154
|
+
static get events() { return [{
|
|
155
|
+
"method": "roadselected",
|
|
156
|
+
"name": "roadselected",
|
|
157
|
+
"bubbles": true,
|
|
158
|
+
"cancelable": true,
|
|
159
|
+
"composed": true,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "Emitt the value and label of the selected option."
|
|
163
|
+
},
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "{\n value: string | undefined | null,\n label: string\n }",
|
|
166
|
+
"resolved": "{ value: string | null | undefined; label: string; }",
|
|
167
|
+
"references": {}
|
|
168
|
+
}
|
|
169
|
+
}]; }
|
|
170
|
+
static get methods() { return {
|
|
171
|
+
"open": {
|
|
172
|
+
"complexType": {
|
|
173
|
+
"signature": "() => Promise<void>",
|
|
174
|
+
"parameters": [],
|
|
175
|
+
"references": {
|
|
176
|
+
"Promise": {
|
|
177
|
+
"location": "global"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"return": "Promise<void>"
|
|
181
|
+
},
|
|
182
|
+
"docs": {
|
|
183
|
+
"text": "Open the widget",
|
|
184
|
+
"tags": []
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"close": {
|
|
188
|
+
"complexType": {
|
|
189
|
+
"signature": "() => Promise<void>",
|
|
190
|
+
"parameters": [],
|
|
191
|
+
"references": {
|
|
192
|
+
"Promise": {
|
|
193
|
+
"location": "global"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"return": "Promise<void>"
|
|
197
|
+
},
|
|
198
|
+
"docs": {
|
|
199
|
+
"text": "Close the widget",
|
|
200
|
+
"tags": []
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}; }
|
|
204
|
+
static get elementRef() { return "el"; }
|
|
205
|
+
static get listeners() { return [{
|
|
206
|
+
"name": "roadcardclick",
|
|
207
|
+
"method": "handleClick",
|
|
208
|
+
"target": undefined,
|
|
209
|
+
"capture": false,
|
|
210
|
+
"passive": false
|
|
211
|
+
}]; }
|
|
212
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { html } from 'lit-html';
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
3
|
+
import { useEffect } from "@storybook/client-api";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Forms/Duration',
|
|
7
|
+
component: 'road-duration',
|
|
8
|
+
parameters: {
|
|
9
|
+
backgrounds: {
|
|
10
|
+
default: 'grey',
|
|
11
|
+
},
|
|
12
|
+
layout: 'fullscreen',
|
|
13
|
+
actions: {
|
|
14
|
+
handles: ['open', 'close'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
'is-open': {
|
|
19
|
+
control: 'boolean',
|
|
20
|
+
},
|
|
21
|
+
header: {
|
|
22
|
+
control: 'text',
|
|
23
|
+
},
|
|
24
|
+
min: {
|
|
25
|
+
control: 'number',
|
|
26
|
+
},
|
|
27
|
+
max: {
|
|
28
|
+
control: 'number',
|
|
29
|
+
},
|
|
30
|
+
step: {
|
|
31
|
+
control: 'number',
|
|
32
|
+
min: 15,
|
|
33
|
+
},
|
|
34
|
+
roadselected: {
|
|
35
|
+
action: 'roadselected',
|
|
36
|
+
control: {
|
|
37
|
+
type: null,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
open : {
|
|
41
|
+
description: 'Open the widget.',
|
|
42
|
+
table: {
|
|
43
|
+
category: 'methods',
|
|
44
|
+
type: {
|
|
45
|
+
summary: 'void',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
defaultValue: {
|
|
49
|
+
summary: null,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
close : {
|
|
53
|
+
description: 'Close the widget.',
|
|
54
|
+
table: {
|
|
55
|
+
category: 'methods',
|
|
56
|
+
type: {
|
|
57
|
+
summary: 'void',
|
|
58
|
+
},
|
|
59
|
+
defaultValue: {
|
|
60
|
+
summary: null,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
args: {
|
|
66
|
+
'is-open': true,
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const Template = (args) => html`
|
|
71
|
+
<road-duration
|
|
72
|
+
is-open="${ifDefined(args['is-open'])}"
|
|
73
|
+
header="${ifDefined(args.header)}"
|
|
74
|
+
min="${ifDefined(args.min)}"
|
|
75
|
+
max="${ifDefined(args.max)}"
|
|
76
|
+
step="${ifDefined(args.step)}"
|
|
77
|
+
@roadselected=${event => args.roadselected(event.detail)}
|
|
78
|
+
></road-duration>
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
export const Playground = Template.bind({});
|
|
82
|
+
|
|
83
|
+
export const Example = () => html`
|
|
84
|
+
<road-label class="mb-8">Duration of the service</road-label>
|
|
85
|
+
<div class="d-flex align-items-center">
|
|
86
|
+
<road-input
|
|
87
|
+
class="input"
|
|
88
|
+
aria-label="Duration of the service"
|
|
89
|
+
style="width: 100px"
|
|
90
|
+
placeholder="00:15"
|
|
91
|
+
@roadfocus=${() => document.querySelector('.duration').open()}
|
|
92
|
+
></road-input>
|
|
93
|
+
<div class="text-content ml-8">hour(s)</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<road-duration
|
|
97
|
+
class="duration"
|
|
98
|
+
header="Duration of the service"
|
|
99
|
+
@roadselected=${event => document.querySelector('.input').value = event.detail.label}
|
|
100
|
+
></road-duration>
|
|
101
|
+
`;
|
|
102
|
+
Example.parameters = {
|
|
103
|
+
docs: {
|
|
104
|
+
source: {
|
|
105
|
+
type: 'code',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M36.344,49.771l-.685-2.965L30.971,26.5l-2.435.562,4.125,17.867L10,50.165,2.552,17.916a1.971,1.971,0,0,1,1.476-2.363l16.5-3.809L19.97,9.307l-16.5,3.811a4.468,4.468,0,0,0-3.35,5.361L7.843,51.945l.965,4.184a4.468,4.468,0,0,0,5.361,3.349l18.825-4.345a4.471,4.471,0,0,0,3.35-5.362m-2.685,2.05a1.957,1.957,0,0,1-1.228.875L13.606,57.043a1.971,1.971,0,0,1-2.362-1.477L10.559,52.6l22.664-5.233.685,2.966a1.958,1.958,0,0,1-.249,1.487" transform="translate(8 0.617)"/><rect width="3.077" height="2.5" transform="translate(28.675 52.173) rotate(-12.991)"/><path d="M16.422,40.784a1.282,1.282,0,0,1-.356-.051,1.254,1.254,0,0,1-.862-.918l-2.43-10.523a1.249,1.249,0,0,1,1.6-1.47l9.983,3.237a1.251,1.251,0,0,1,.483,2.089L17.29,40.434a1.249,1.249,0,0,1-.868.35m-.715-9.9L17.144,37.1l4.464-4.307Z" transform="translate(8 0.617)" fill="var(--accent-hover, rgb(236, 160, 0))"/><path d="M48.343,12.01a5.506,5.506,0,0,1-2.361-2.728L43.588,3.819V20.665a4.584,4.584,0,0,0-2-.027c-2.241.464-4,2.338-4,4.266a2.962,2.962,0,0,0,1.1,2.336,3.771,3.771,0,0,0,2.4.794,5.08,5.08,0,0,0,4.983-4.25h.013V13.473c.306.24.6.436.862.613,1.057.708,1.638,1.1,1.638,3.7h2.5c0-3.652-1.138-4.7-2.745-5.774M41.585,25.481a1.609,1.609,0,0,1-1.312-.18.469.469,0,0,1-.185-.4c0-.662.856-1.58,2-1.818a2.506,2.506,0,0,1,.492-.052,1.317,1.317,0,0,1,.82.232.472.472,0,0,1,.185.4c0,.663-.857,1.58-2,1.817" transform="translate(8 0.617)"/><path d="M25.588,4.909V16.665a4.584,4.584,0,0,0-2-.027c-2.241.464-4,2.338-4,4.266a2.962,2.962,0,0,0,1.105,2.336,3.771,3.771,0,0,0,2.4.794,5.08,5.08,0,0,0,4.983-4.25h.013V10.659l8.5-3.091v5.1a4.584,4.584,0,0,0-2-.027c-2.241.464-4,2.338-4,4.266a2.962,2.962,0,0,0,1.105,2.336,3.771,3.771,0,0,0,2.4.794,5.08,5.08,0,0,0,4.983-4.25h.013V0Zm-2,16.572a1.616,1.616,0,0,1-1.313-.18.471.471,0,0,1-.184-.4c0-.662.856-1.58,2-1.818a2.506,2.506,0,0,1,.492-.052,1.317,1.317,0,0,1,.82.232.472.472,0,0,1,.185.4c0,.663-.857,1.58-2,1.817M28.088,8V6.66l8.5-3.091v1.34Zm6.5,9.481a1.613,1.613,0,0,1-1.312-.18.469.469,0,0,1-.185-.4c0-.662.856-1.58,2-1.818a2.506,2.506,0,0,1,.492-.052,1.317,1.317,0,0,1,.82.232.472.472,0,0,1,.185.4c0,.663-.857,1.58-2,1.817" transform="translate(8 0.617)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M36.344,49.771l-.685-2.965L30.971,26.5l-2.435.562,4.125,17.867L10,50.165,2.552,17.916a1.971,1.971,0,0,1,1.476-2.363l16.5-3.809L19.97,9.307l-16.5,3.811a4.468,4.468,0,0,0-3.35,5.361L7.843,51.945l.965,4.184a4.468,4.468,0,0,0,5.361,3.349l18.825-4.345a4.471,4.471,0,0,0,3.35-5.362m-2.685,2.05a1.957,1.957,0,0,1-1.228.875L13.606,57.043a1.971,1.971,0,0,1-2.362-1.477L10.559,52.6l22.664-5.233.685,2.966a1.958,1.958,0,0,1-.249,1.487" transform="translate(8 0.617)"/><rect width="3.077" height="2.5" transform="translate(28.675 52.173) rotate(-12.991)"/><path d="M16.422,40.784a1.282,1.282,0,0,1-.356-.051,1.254,1.254,0,0,1-.862-.918l-2.43-10.523a1.249,1.249,0,0,1,1.6-1.47l9.983,3.237a1.251,1.251,0,0,1,.483,2.089L17.29,40.434a1.249,1.249,0,0,1-.868.35m-.715-9.9L17.144,37.1l4.464-4.307Z" transform="translate(8 0.617)"/><path d="M48.343,12.01a5.506,5.506,0,0,1-2.361-2.728L43.588,3.819V20.665a4.584,4.584,0,0,0-2-.027c-2.241.464-4,2.338-4,4.266a2.962,2.962,0,0,0,1.1,2.336,3.771,3.771,0,0,0,2.4.794,5.08,5.08,0,0,0,4.983-4.25h.013V13.473c.306.24.6.436.862.613,1.057.708,1.638,1.1,1.638,3.7h2.5c0-3.652-1.138-4.7-2.745-5.774M41.585,25.481a1.609,1.609,0,0,1-1.312-.18.469.469,0,0,1-.185-.4c0-.662.856-1.58,2-1.818a2.506,2.506,0,0,1,.492-.052,1.317,1.317,0,0,1,.82.232.472.472,0,0,1,.185.4c0,.663-.857,1.58-2,1.817" transform="translate(8 0.617)"/><path d="M25.588,4.909V16.665a4.584,4.584,0,0,0-2-.027c-2.241.464-4,2.338-4,4.266a2.962,2.962,0,0,0,1.105,2.336,3.771,3.771,0,0,0,2.4.794,5.08,5.08,0,0,0,4.983-4.25h.013V10.659l8.5-3.091v5.1a4.584,4.584,0,0,0-2-.027c-2.241.464-4,2.338-4,4.266a2.962,2.962,0,0,0,1.105,2.336,3.771,3.771,0,0,0,2.4.794,5.08,5.08,0,0,0,4.983-4.25h.013V0Zm-2,16.572a1.616,1.616,0,0,1-1.313-.18.471.471,0,0,1-.184-.4c0-.662.856-1.58,2-1.818a2.506,2.506,0,0,1,.492-.052,1.317,1.317,0,0,1,.82.232.472.472,0,0,1,.185.4c0,.663-.857,1.58-2,1.817M28.088,8V6.66l8.5-3.091v1.34Zm6.5,9.481a1.613,1.613,0,0,1-1.312-.18.469.469,0,0,1-.185-.4c0-.662.856-1.58,2-1.818a2.506,2.506,0,0,1,.492-.052,1.317,1.317,0,0,1,.82.232.472.472,0,0,1,.185.4c0,.663-.857,1.58-2,1.817" transform="translate(8 0.617)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(9 4)"><path d="M38.815,35.154l-2.289-1.005a14.768,14.768,0,0,0,1.248-5.978V19.279h2.5v8.892a17.267,17.267,0,0,1-1.459,6.983"/><path d="M33.232,29.116l-2.489-.227q.031-.354.031-.718V10.387a7.886,7.886,0,1,0-15.771,0v.347H12.5v-.347a10.385,10.385,0,1,1,20.771,0V28.171q0,.479-.042.945" fill="var(--accent-hover, rgb(236, 160, 0))"/><path d="M27.954,34.2A7.874,7.874,0,0,1,15,28.172V21.251l-2.5-2.5v9.421a10.377,10.377,0,0,0,17.225,7.8Z" fill="var(--accent-hover, rgb(236, 160, 0))"/><rect width="2.5" height="64.491" transform="translate(0 6.248) rotate(-45)"/><path d="M34.676,40.924,32.91,39.158A14.87,14.87,0,0,1,8,28.17V19.278H5.5V28.17A17.4,17.4,0,0,0,21.638,45.493V56.584h2.5V45.5a17.46,17.46,0,0,0,10.538-4.573"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(9 4)"><path d="M38.815,35.154l-2.289-1.005a14.768,14.768,0,0,0,1.248-5.978V19.279h2.5v8.892a17.267,17.267,0,0,1-1.459,6.983"/><path d="M33.232,29.116l-2.489-.227q.031-.354.031-.718V10.387a7.886,7.886,0,1,0-15.771,0v.347H12.5v-.347a10.385,10.385,0,1,1,20.771,0V28.171q0,.479-.042.945"/><path d="M27.954,34.2A7.874,7.874,0,0,1,15,28.172V21.251l-2.5-2.5v9.421a10.377,10.377,0,0,0,17.225,7.8Z"/><rect width="2.5" height="64.491" transform="translate(0 6.248) rotate(-45)"/><path d="M34.676,40.924,32.91,39.158A14.87,14.87,0,0,1,8,28.17V19.278H5.5V28.17A17.4,17.4,0,0,0,21.638,45.493V56.584h2.5V45.5a17.46,17.46,0,0,0,10.538-4.573"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(9 3.707)"><path d="M32.612,31.79a10.308,10.308,0,0,0,.663-3.619V10.386a10.386,10.386,0,0,0-20.772,0v1.3Z" transform="translate(0.1 0)"/><path d="M37.833,37.012a17.253,17.253,0,0,0,2.442-8.841V19.279h-2.5v8.892a14.785,14.785,0,0,1-1.765,7.018Z" transform="translate(0.1 0)"/><path d="M12.5,18.752v9.42a10.372,10.372,0,0,0,17.222,7.8Z" transform="translate(0.1 0)"/><path d="M34.676,40.925,32.891,39.14A14.842,14.842,0,0,1,8,28.171V19.279H5.5v8.892A17.4,17.4,0,0,0,21.639,45.494V56.585h2.5V45.5a17.3,17.3,0,0,0,10.537-4.572" transform="translate(0.1 0)"/><rect width="2.5" height="64.491" transform="translate(0.1 6.248) rotate(-45)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(3.032 3.032)"><path d="M41.538,19.486l4.551-4.551a5.216,5.216,0,0,1-1.768-1.767L39.879,17.61a15.818,15.818,0,0,1,1.659,1.876"/><path d="M39.879,40.327l5.364,5.364.439-.439a5.3,5.3,0,0,1,.889-.889l.44-.439-5.473-5.473a15.818,15.818,0,0,1-1.659,1.876"/><path d="M18.057,17.61l-4.443-4.443a5.219,5.219,0,0,1-1.768,1.768L16.4,19.486a15.818,15.818,0,0,1,1.659-1.876"/><path d="M16.4,38.45,11.847,43a5.2,5.2,0,0,1,1.767,1.767l4.443-4.443A15.818,15.818,0,0,1,16.4,38.45"/><path d="M44.674,30.218h3.011a4.734,4.734,0,0,1,0-2.5H44.674c.033.414.063.828.063,1.25s-.03.836-.063,1.25"/><path d="M13.262,27.718H10.25a4.734,4.734,0,0,1,0,2.5h3.012c-.033-.414-.063-.828-.063-1.25s.03-.836.063-1.25"/><path d="M27.718,44.674v3.012a5.162,5.162,0,0,1,1.25-.169h0a5.207,5.207,0,0,1,1.249.168V44.674c-.414.033-.828.063-1.25.063s-.836-.03-1.25-.063"/><path d="M30.218,13.262V10.25a4.707,4.707,0,0,1-2.5,0v3.012c.414-.033.828-.063,1.25-.063s.836.03,1.25.063"/><path d="M34.7,30.547a12.406,12.406,0,0,0-4.041-1.271,5,5,0,0,0,3.324-4.7v-.513a5.012,5.012,0,0,0-10.023,0v.513a5,5,0,0,0,3.324,4.7,12.413,12.413,0,0,0-4.041,1.271,5.558,5.558,0,0,0-3.076,4.906V37.7h2.5V35.453a3.069,3.069,0,0,1,1.727-2.687,10.09,10.09,0,0,1,9.156,0,3.069,3.069,0,0,1,1.726,2.687V37.7h2.5V35.453A5.556,5.556,0,0,0,34.7,30.547m-8.24-5.969v-.513a2.512,2.512,0,0,1,5.023,0v.513a2.512,2.512,0,1,1-5.023,0" fill="var(--accent-hover, rgb(236, 160, 0))"/><path d="M28.968,44.737a15.769,15.769,0,1,1,15.77-15.769,15.788,15.788,0,0,1-15.77,15.769m0-29.038a13.269,13.269,0,1,0,13.27,13.269A13.285,13.285,0,0,0,28.968,15.7"/><path d="M48.767,15.7a5.21,5.21,0,1,1,0-10.419h0a5.21,5.21,0,1,1,0,10.419m0-7.919a2.71,2.71,0,1,0,2.711,2.709A2.692,2.692,0,0,0,48.766,7.78Z"/><path d="M49.767,53.656a5.209,5.209,0,1,1,5.21-5.21,5.216,5.216,0,0,1-5.21,5.21m0-7.919a2.709,2.709,0,1,0,2.71,2.709,2.713,2.713,0,0,0-2.71-2.709"/><path d="M9.169,15.7a5.21,5.21,0,1,1,0-10.419h0a5.21,5.21,0,0,1,0,10.419m0-7.919h0a2.709,2.709,0,1,0,1.916.793A2.713,2.713,0,0,0,9.169,7.78"/><path d="M9.169,52.656a5.209,5.209,0,1,1,5.21-5.21,5.216,5.216,0,0,1-5.21,5.21m0-7.919a2.709,2.709,0,1,0,2.71,2.709,2.713,2.713,0,0,0-2.71-2.709"/><path d="M52.727,34.177a5.209,5.209,0,1,1,5.209-5.209,5.215,5.215,0,0,1-5.209,5.209m0-7.919a2.71,2.71,0,1,0,2.709,2.71,2.713,2.713,0,0,0-2.709-2.71"/><path d="M5.209,34.177a5.209,5.209,0,1,1,5.21-5.209,5.215,5.215,0,0,1-5.21,5.209m0-7.919a2.71,2.71,0,1,0,2.71,2.71,2.713,2.713,0,0,0-2.71-2.71"/><path d="M28.968,57.936a5.21,5.21,0,1,1,0-10.419h0a5.21,5.21,0,0,1,0,10.419m0-7.919h0a2.709,2.709,0,1,0,1.916.793,2.713,2.713,0,0,0-1.916-.793"/><path d="M28.968,10.419a5.209,5.209,0,1,1,5.21-5.209,5.215,5.215,0,0,1-5.21,5.209m0-7.919a2.71,2.71,0,1,0,2.71,2.71,2.713,2.713,0,0,0-2.71-2.71"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(3.032 3.032)"><path d="M41.538,19.486l4.551-4.551a5.216,5.216,0,0,1-1.768-1.767L39.879,17.61a15.818,15.818,0,0,1,1.659,1.876"/><path d="M39.879,40.327l5.364,5.364.439-.439a5.3,5.3,0,0,1,.889-.889l.44-.439-5.473-5.473a15.818,15.818,0,0,1-1.659,1.876"/><path d="M18.057,17.61l-4.443-4.443a5.219,5.219,0,0,1-1.768,1.768L16.4,19.486a15.818,15.818,0,0,1,1.659-1.876"/><path d="M16.4,38.45,11.847,43a5.2,5.2,0,0,1,1.767,1.767l4.443-4.443A15.818,15.818,0,0,1,16.4,38.45"/><path d="M44.674,30.218h3.011a4.734,4.734,0,0,1,0-2.5H44.674c.033.414.063.828.063,1.25s-.03.836-.063,1.25"/><path d="M13.262,27.718H10.25a4.734,4.734,0,0,1,0,2.5h3.012c-.033-.414-.063-.828-.063-1.25s.03-.836.063-1.25"/><path d="M27.718,44.674v3.012a5.162,5.162,0,0,1,1.25-.169h0a5.207,5.207,0,0,1,1.249.168V44.674c-.414.033-.828.063-1.25.063s-.836-.03-1.25-.063"/><path d="M30.218,13.262V10.25a4.707,4.707,0,0,1-2.5,0v3.012c.414-.033.828-.063,1.25-.063s.836.03,1.25.063"/><path d="M34.7,30.547a12.406,12.406,0,0,0-4.041-1.271,5,5,0,0,0,3.324-4.7v-.513a5.012,5.012,0,0,0-10.023,0v.513a5,5,0,0,0,3.324,4.7,12.413,12.413,0,0,0-4.041,1.271,5.558,5.558,0,0,0-3.076,4.906V37.7h2.5V35.453a3.069,3.069,0,0,1,1.727-2.687,10.09,10.09,0,0,1,9.156,0,3.069,3.069,0,0,1,1.726,2.687V37.7h2.5V35.453A5.556,5.556,0,0,0,34.7,30.547m-8.24-5.969v-.513a2.512,2.512,0,0,1,5.023,0v.513a2.512,2.512,0,1,1-5.023,0"/><path d="M28.968,44.737a15.769,15.769,0,1,1,15.77-15.769,15.788,15.788,0,0,1-15.77,15.769m0-29.038a13.269,13.269,0,1,0,13.27,13.269A13.285,13.285,0,0,0,28.968,15.7"/><path d="M48.767,15.7a5.21,5.21,0,1,1,0-10.419h0a5.21,5.21,0,1,1,0,10.419m0-7.919a2.71,2.71,0,1,0,2.711,2.709A2.692,2.692,0,0,0,48.766,7.78Z"/><path d="M49.767,53.656a5.209,5.209,0,1,1,5.21-5.21,5.216,5.216,0,0,1-5.21,5.21m0-7.919a2.709,2.709,0,1,0,2.71,2.709,2.713,2.713,0,0,0-2.71-2.709"/><path d="M9.169,15.7a5.21,5.21,0,1,1,0-10.419h0a5.21,5.21,0,0,1,0,10.419m0-7.919h0a2.709,2.709,0,1,0,1.916.793A2.713,2.713,0,0,0,9.169,7.78"/><path d="M9.169,52.656a5.209,5.209,0,1,1,5.21-5.21,5.216,5.216,0,0,1-5.21,5.21m0-7.919a2.709,2.709,0,1,0,2.71,2.709,2.713,2.713,0,0,0-2.71-2.709"/><path d="M52.727,34.177a5.209,5.209,0,1,1,5.209-5.209,5.215,5.215,0,0,1-5.209,5.209m0-7.919a2.71,2.71,0,1,0,2.709,2.71,2.713,2.713,0,0,0-2.709-2.71"/><path d="M5.209,34.177a5.209,5.209,0,1,1,5.21-5.209,5.215,5.215,0,0,1-5.21,5.209m0-7.919a2.71,2.71,0,1,0,2.71,2.71,2.713,2.713,0,0,0-2.71-2.71"/><path d="M28.968,57.936a5.21,5.21,0,1,1,0-10.419h0a5.21,5.21,0,0,1,0,10.419m0-7.919h0a2.709,2.709,0,1,0,1.916.793,2.713,2.713,0,0,0-1.916-.793"/><path d="M28.968,10.419a5.209,5.209,0,1,1,5.21-5.209,5.215,5.215,0,0,1-5.21,5.209m0-7.919a2.71,2.71,0,1,0,2.71,2.71,2.713,2.713,0,0,0-2.71-2.71"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(4.282 4.282)"><path d="M47.686,30.218a5.21,5.21,0,1,0,0-2.5H44.674a15.654,15.654,0,0,0-3.136-8.232l4.551-4.551a5.266,5.266,0,1,0-1.767-1.768L39.879,17.61a15.7,15.7,0,0,0-9.661-4.347V10.251a5.211,5.211,0,1,0-2.5,0v3.013a15.7,15.7,0,0,0-9.66,4.347l-4.443-4.443a5.153,5.153,0,0,0,.764-2.678A5.209,5.209,0,1,0,9.17,15.7a5.162,5.162,0,0,0,2.678-.764L16.4,19.486a15.654,15.654,0,0,0-3.136,8.232H10.252a5.21,5.21,0,1,0,0,2.5h3.011A15.654,15.654,0,0,0,16.4,38.45L11.848,43a5.162,5.162,0,0,0-2.678-.764,5.209,5.209,0,1,0,0,10.419h0a5.215,5.215,0,0,0,5.209-5.209,5.155,5.155,0,0,0-.764-2.678l4.443-4.443a15.707,15.707,0,0,0,9.66,4.348v3.011a5.21,5.21,0,1,0,2.5,0V44.674a15.7,15.7,0,0,0,9.661-4.347l5.365,5.364.445-.446a5.162,5.162,0,0,0-1.131,3.2,5.215,5.215,0,0,0,5.209,5.209h0a5.21,5.21,0,1,0-3.2-9.288l.444-.445-5.473-5.472a15.661,15.661,0,0,0,3.136-8.233Zm5.041-3.96a2.71,2.71,0,1,1-2.71,2.71,2.713,2.713,0,0,1,2.71-2.71M48.767,7.779a2.71,2.71,0,1,1-2.709,2.71,2.713,2.713,0,0,1,2.709-2.71M9.17,13.2a2.71,2.71,0,1,1,2.709-2.71A2.713,2.713,0,0,1,9.17,13.2M5.21,31.678a2.71,2.71,0,1,1,2.71-2.71,2.713,2.713,0,0,1-2.71,2.71M9.17,50.156h0a2.709,2.709,0,1,1,2.71-2.709,2.688,2.688,0,0,1-2.71,2.709M26.259,5.21a2.71,2.71,0,1,1,2.71,2.709h0A2.712,2.712,0,0,1,26.259,5.21M25.113,26.292a3.762,3.762,0,0,1,7.524,0V26.8a3.762,3.762,0,1,1-7.524,0Zm6.565,26.434a2.709,2.709,0,1,1-2.71-2.709,2.713,2.713,0,0,1,2.71,2.709m5.251-13.011a13.176,13.176,0,0,1-16.109,0V37.679a4.812,4.812,0,0,1,2.671-4.24,11.705,11.705,0,0,1,10.768,0,4.811,4.811,0,0,1,2.67,4.24Zm12.838,6.022a2.71,2.71,0,0,1,1.916,4.626,2.686,2.686,0,0,1-1.915.793h0a2.709,2.709,0,0,1,0-5.419" transform="translate(-1.25 -1.25)"/></g></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M12.164,10.089A7.6,7.6,0,0,1,19.753,2.5h1.489a7.6,7.6,0,0,1,7.59,7.589V11.1h2.5V10.089A10.1,10.1,0,0,0,21.242,0H19.753A10.1,10.1,0,0,0,9.664,10.089V11.1h2.5Z" transform="translate(11.502 5.999)"/><path d="M28.831,13.6V15.14a8.334,8.334,0,1,1-16.668,0V13.6h-2.5V15.14a10.834,10.834,0,1,0,21.668,0V13.6Z" transform="translate(11.502 5.999)"/><path d="M36.427,13.6H9.663V11.1H36.427a1.25,1.25,0,0,1,0,2.5" transform="translate(11.502 5.999)"/><path d="M9.664,33.477V47.32h2.5V32.55q-1.272.4-2.5.927" transform="translate(11.502 5.999)" fill="var(--accent-hover, rgb(236, 160, 0))"/><path d="M31.331,47.32V33.477q-1.227-.527-2.5-.927V47.32Z" transform="translate(11.502 5.999)" fill="var(--accent-hover, rgb(236, 160, 0))"/><path d="M40.995,49.82H0V42.847A12.237,12.237,0,0,1,6.792,32.064a29.792,29.792,0,0,1,27.411,0,12.237,12.237,0,0,1,6.792,10.783ZM2.5,47.32H38.495V42.847a9.746,9.746,0,0,0-5.445-8.564,27.65,27.65,0,0,0-25.1,0A9.746,9.746,0,0,0,2.5,42.847Z" transform="translate(11.502 5.999)"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path d="M12.164,10.089A7.6,7.6,0,0,1,19.753,2.5h1.489a7.6,7.6,0,0,1,7.59,7.589V11.1h2.5V10.089A10.1,10.1,0,0,0,21.242,0H19.753A10.1,10.1,0,0,0,9.664,10.089V11.1h2.5Z" transform="translate(11.502 5.999)"/><path d="M28.831,13.6V15.14a8.334,8.334,0,1,1-16.668,0V13.6h-2.5V15.14a10.834,10.834,0,1,0,21.668,0V13.6Z" transform="translate(11.502 5.999)"/><path d="M36.427,13.6H9.663V11.1H36.427a1.25,1.25,0,0,1,0,2.5" transform="translate(11.502 5.999)"/><path d="M9.664,33.477V47.32h2.5V32.55q-1.272.4-2.5.927" transform="translate(11.502 5.999)"/><path d="M31.331,47.32V33.477q-1.227-.527-2.5-.927V47.32Z" transform="translate(11.502 5.999)"/><path d="M40.995,49.82H0V42.847A12.237,12.237,0,0,1,6.792,32.064a29.792,29.792,0,0,1,27.411,0,12.237,12.237,0,0,1,6.792,10.783ZM2.5,47.32H38.495V42.847a9.746,9.746,0,0,0-5.445-8.564,27.65,27.65,0,0,0-25.1,0A9.746,9.746,0,0,0,2.5,42.847Z" transform="translate(11.502 5.999)"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(-127.123 75.724)"><path d="M57.836,61.446H3.345A3.348,3.348,0,0,1,0,58.1V39.066a3.348,3.348,0,0,1,3.345-3.345H30.621v2.5H3.345a.846.846,0,0,0-.845.845V58.1a.846.846,0,0,0,.845.845H57.836a.846.846,0,0,0,.845-.845V39.066a.846.846,0,0,0-.845-.845H47.59v-2.5H57.836a3.348,3.348,0,0,1,3.345,3.345V58.1a3.348,3.348,0,0,1-3.345,3.345" transform="translate(128.532 -74.447)"/><path d="M183.463-41.087H151.705a1.249,1.249,0,0,1-1.25-1.25v-8a1.25,1.25,0,0,1,1.25-1.25h31.758a1.25,1.25,0,0,1,1.25,1.25v8A1.249,1.249,0,0,1,183.463-41.087Zm-30.508-2.5h29.258v-5.5H152.955Z" transform="translate(0 17.86)" fill="var(--accent-hover, rgb(236, 160, 0))"/><path d="M170.084-35.862h-5a1.25,1.25,0,0,1-1.25-1.25,1.25,1.25,0,0,1,1.25-1.25h5a1.25,1.25,0,0,1,1.25,1.25A1.25,1.25,0,0,1,170.084-35.862Z" transform="translate(0 17.86)"/><path d="M157.705-35.862h-5a1.249,1.249,0,0,1-1.25-1.25,1.25,1.25,0,0,1,1.25-1.25h5a1.25,1.25,0,0,1,1.25,1.25A1.25,1.25,0,0,1,157.705-35.862Z" transform="translate(0 17.86)"/><path d="M140.775-36.974a6.758,6.758,0,0,1-6.75-6.75,6.758,6.758,0,0,1,6.75-6.75,6.758,6.758,0,0,1,6.75,6.75A6.758,6.758,0,0,1,140.775-36.974Zm0-11a4.255,4.255,0,0,0-4.25,4.25,4.255,4.255,0,0,0,4.25,4.25,4.255,4.255,0,0,0,4.25-4.25A4.255,4.255,0,0,0,140.775-47.974Z" transform="translate(0 17.86)"/><path d="M182.463-35.862h-5a1.25,1.25,0,0,1-1.25-1.25,1.25,1.25,0,0,1,1.25-1.25h5a1.25,1.25,0,0,1,1.25,1.25A1.249,1.249,0,0,1,182.463-35.862Z" transform="translate(0 17.86)"/><path d="M46.587,15.944a5.228,5.228,0,0,1-2.353-2.672L41.84,7.809V29.758a4.889,4.889,0,0,0-2.51-.112c-2.518.536-4.49,2.676-4.49,4.872a3.327,3.327,0,0,0,1.245,2.636,4.148,4.148,0,0,0,2.635.87,5.4,5.4,0,0,0,1.13-.122c2.517-.535,4.49-2.675,4.49-4.872,0-.092-.022-.178-.029-.269l.029.013V17.435c.318.243.623.438.9.614,1.067.683,1.6,1.027,1.6,3.6h2.5c0-3.655-1.141-4.669-2.753-5.7M39.33,35.457a2.039,2.039,0,0,1-1.672-.246.838.838,0,0,1-.318-.693,3.037,3.037,0,0,1,2.51-2.427,2.945,2.945,0,0,1,.612-.067,1.687,1.687,0,0,1,1.059.313.84.84,0,0,1,.319.693,3.035,3.035,0,0,1-2.51,2.427" transform="translate(128.532 -74.447)"/><path d="M35.34,0,18.84,5.893V22.758a4.889,4.889,0,0,0-2.51-.112c-2.518.536-4.49,2.676-4.49,4.872a3.327,3.327,0,0,0,1.245,2.636,4.148,4.148,0,0,0,2.635.87,5.4,5.4,0,0,0,1.13-.122c2.517-.535,4.49-2.675,4.49-4.872,0-.093-.022-.179-.029-.271l.029.015V12.655l11.5-4.107v9.21a4.888,4.888,0,0,0-2.51-.112c-2.518.536-4.49,2.676-4.49,4.872a3.327,3.327,0,0,0,1.245,2.636,4.148,4.148,0,0,0,2.635.87,5.4,5.4,0,0,0,1.13-.122c2.517-.535,4.49-2.675,4.49-4.872,0-.093-.022-.179-.029-.27l.029.014ZM16.33,28.457a2.038,2.038,0,0,1-1.672-.246.838.838,0,0,1-.318-.693,3.037,3.037,0,0,1,2.51-2.427,2.945,2.945,0,0,1,.612-.067,1.687,1.687,0,0,1,1.059.313.84.84,0,0,1,.319.693,3.035,3.035,0,0,1-2.51,2.427M21.34,10V7.655l11.5-4.107V5.893Zm8.99,13.457a2.04,2.04,0,0,1-1.672-.246.838.838,0,0,1-.318-.693,3.037,3.037,0,0,1,2.51-2.427,2.945,2.945,0,0,1,.612-.067,1.687,1.687,0,0,1,1.059.313.84.84,0,0,1,.319.693,3.035,3.035,0,0,1-2.51,2.427" transform="translate(128.532 -74.447)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(-127.123 75.724)"><path d="M57.836,61.446H3.345A3.348,3.348,0,0,1,0,58.1V39.066a3.348,3.348,0,0,1,3.345-3.345H30.621v2.5H3.345a.846.846,0,0,0-.845.845V58.1a.846.846,0,0,0,.845.845H57.836a.846.846,0,0,0,.845-.845V39.066a.846.846,0,0,0-.845-.845H47.59v-2.5H57.836a3.348,3.348,0,0,1,3.345,3.345V58.1a3.348,3.348,0,0,1-3.345,3.345" transform="translate(128.532 -74.447)"/><path d="M183.463-41.087H151.705a1.249,1.249,0,0,1-1.25-1.25v-8a1.25,1.25,0,0,1,1.25-1.25h31.758a1.25,1.25,0,0,1,1.25,1.25v8A1.249,1.249,0,0,1,183.463-41.087Zm-30.508-2.5h29.258v-5.5H152.955Z" transform="translate(0 17.86)"/><path d="M170.084-35.862h-5a1.25,1.25,0,0,1-1.25-1.25,1.25,1.25,0,0,1,1.25-1.25h5a1.25,1.25,0,0,1,1.25,1.25A1.25,1.25,0,0,1,170.084-35.862Z" transform="translate(0 17.86)"/><path d="M157.705-35.862h-5a1.249,1.249,0,0,1-1.25-1.25,1.25,1.25,0,0,1,1.25-1.25h5a1.25,1.25,0,0,1,1.25,1.25A1.25,1.25,0,0,1,157.705-35.862Z" transform="translate(0 17.86)"/><path d="M140.775-36.974a6.758,6.758,0,0,1-6.75-6.75,6.758,6.758,0,0,1,6.75-6.75,6.758,6.758,0,0,1,6.75,6.75A6.758,6.758,0,0,1,140.775-36.974Zm0-11a4.255,4.255,0,0,0-4.25,4.25,4.255,4.255,0,0,0,4.25,4.25,4.255,4.255,0,0,0,4.25-4.25A4.255,4.255,0,0,0,140.775-47.974Z" transform="translate(0 17.86)"/><path d="M182.463-35.862h-5a1.25,1.25,0,0,1-1.25-1.25,1.25,1.25,0,0,1,1.25-1.25h5a1.25,1.25,0,0,1,1.25,1.25A1.249,1.249,0,0,1,182.463-35.862Z" transform="translate(0 17.86)"/><path d="M46.587,15.944a5.228,5.228,0,0,1-2.353-2.672L41.84,7.809V29.758a4.889,4.889,0,0,0-2.51-.112c-2.518.536-4.49,2.676-4.49,4.872a3.327,3.327,0,0,0,1.245,2.636,4.148,4.148,0,0,0,2.635.87,5.4,5.4,0,0,0,1.13-.122c2.517-.535,4.49-2.675,4.49-4.872,0-.092-.022-.178-.029-.269l.029.013V17.435c.318.243.623.438.9.614,1.067.683,1.6,1.027,1.6,3.6h2.5c0-3.655-1.141-4.669-2.753-5.7M39.33,35.457a2.039,2.039,0,0,1-1.672-.246.838.838,0,0,1-.318-.693,3.037,3.037,0,0,1,2.51-2.427,2.945,2.945,0,0,1,.612-.067,1.687,1.687,0,0,1,1.059.313.84.84,0,0,1,.319.693,3.035,3.035,0,0,1-2.51,2.427" transform="translate(128.532 -74.447)"/><path d="M35.34,0,18.84,5.893V22.758a4.889,4.889,0,0,0-2.51-.112c-2.518.536-4.49,2.676-4.49,4.872a3.327,3.327,0,0,0,1.245,2.636,4.148,4.148,0,0,0,2.635.87,5.4,5.4,0,0,0,1.13-.122c2.517-.535,4.49-2.675,4.49-4.872,0-.093-.022-.179-.029-.271l.029.015V12.655l11.5-4.107v9.21a4.888,4.888,0,0,0-2.51-.112c-2.518.536-4.49,2.676-4.49,4.872a3.327,3.327,0,0,0,1.245,2.636,4.148,4.148,0,0,0,2.635.87,5.4,5.4,0,0,0,1.13-.122c2.517-.535,4.49-2.675,4.49-4.872,0-.093-.022-.179-.029-.27l.029.014ZM16.33,28.457a2.038,2.038,0,0,1-1.672-.246.838.838,0,0,1-.318-.693,3.037,3.037,0,0,1,2.51-2.427,2.945,2.945,0,0,1,.612-.067,1.687,1.687,0,0,1,1.059.313.84.84,0,0,1,.319.693,3.035,3.035,0,0,1-2.51,2.427M21.34,10V7.655l11.5-4.107V5.893Zm8.99,13.457a2.04,2.04,0,0,1-1.672-.246.838.838,0,0,1-.318-.693,3.037,3.037,0,0,1,2.51-2.427,2.945,2.945,0,0,1,.612-.067,1.687,1.687,0,0,1,1.059.313.84.84,0,0,1,.319.693,3.035,3.035,0,0,1-2.51,2.427" transform="translate(128.532 -74.447)"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(3 5.272)"><path d="M21.8,22.731H7a1.25,1.25,0,0,1-1.25-1.25V7.327A1.25,1.25,0,0,1,7,6.077H21.8a1.25,1.25,0,0,1,1.25,1.25V21.481a1.25,1.25,0,0,1-1.25,1.25m-13.552-2.5h12.3V8.577H8.252Z" fill="var(--accent-hover, rgb(236, 160, 0))"/><path d="M12.979,44.162l-2.04-1.444,3.725-5.262H9.308l6.753-9.536,2.04,1.445-3.959,5.591H19.5Z"/><path d="M28.808,53.455H0V6.1A6.106,6.106,0,0,1,6.1,0H22.708a6.107,6.107,0,0,1,6.1,6.1ZM2.5,50.955H26.307V6.1a3.6,3.6,0,0,0-3.6-3.6H6.1A3.6,3.6,0,0,0,2.5,6.1Z"/><path d="M37.813,22.235a3.629,3.629,0,1,1,0-7.258h5.823a6.517,6.517,0,0,1,0-2.5H37.813a6.129,6.129,0,1,0,0,12.258,6.413,6.413,0,0,1,6.4,6.406v16.04a3.775,3.775,0,0,1-4.149,3.756,3.924,3.924,0,0,1-3.4-3.973V36.394a9.12,9.12,0,0,0-7.862-9.017V29.9a6.62,6.62,0,0,1,5.362,6.491v10.57a6.44,6.44,0,0,0,5.664,6.461c.2.019.4.029.6.029a6.272,6.272,0,0,0,6.287-6.273V31.141a8.916,8.916,0,0,0-8.9-8.906"/><path d="M58.1,15.97H53.61V11.482H58.1a1.25,1.25,0,0,0,0-2.5H53.61v-2H50.259a6.744,6.744,0,0,0,0,13.488H53.61v-2H58.1a1.25,1.25,0,1,0,0-2.5m-6.992,2h-.851a4.244,4.244,0,0,1,0-8.488h.851Z"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g transform="translate(3 5.272)"><path d="M21.8,22.731H7a1.25,1.25,0,0,1-1.25-1.25V7.327A1.25,1.25,0,0,1,7,6.077H21.8a1.25,1.25,0,0,1,1.25,1.25V21.481a1.25,1.25,0,0,1-1.25,1.25m-13.552-2.5h12.3V8.577H8.252Z"/><path d="M12.979,44.162l-2.04-1.444,3.725-5.262H9.308l6.753-9.536,2.04,1.445-3.959,5.591H19.5Z"/><path d="M28.808,53.455H0V6.1A6.106,6.106,0,0,1,6.1,0H22.708a6.107,6.107,0,0,1,6.1,6.1ZM2.5,50.955H26.307V6.1a3.6,3.6,0,0,0-3.6-3.6H6.1A3.6,3.6,0,0,0,2.5,6.1Z"/><path d="M37.813,22.235a3.629,3.629,0,1,1,0-7.258h5.823a6.517,6.517,0,0,1,0-2.5H37.813a6.129,6.129,0,1,0,0,12.258,6.413,6.413,0,0,1,6.4,6.406v16.04a3.775,3.775,0,0,1-4.149,3.756,3.924,3.924,0,0,1-3.4-3.973V36.394a9.12,9.12,0,0,0-7.862-9.017V29.9a6.62,6.62,0,0,1,5.362,6.491v10.57a6.44,6.44,0,0,0,5.664,6.461c.2.019.4.029.6.029a6.272,6.272,0,0,0,6.287-6.273V31.141a8.916,8.916,0,0,0-8.9-8.906"/><path d="M58.1,15.97H53.61V11.482H58.1a1.25,1.25,0,0,0,0-2.5H53.61v-2H50.259a6.744,6.744,0,0,0,0,13.488H53.61v-2H58.1a1.25,1.25,0,1,0,0-2.5m-6.992,2h-.851a4.244,4.244,0,0,1,0-8.488h.851Z"/></g></svg>
|
|
@@ -5,9 +5,11 @@ import { Component, Element, Event, Host, Prop, State, Watch, h } from '@stencil
|
|
|
5
5
|
export class Img {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.onLoad = () => {
|
|
8
|
+
this.roadimgdidload.emit();
|
|
8
9
|
this.roadImgDidLoad.emit();
|
|
9
10
|
};
|
|
10
11
|
this.onError = () => {
|
|
12
|
+
this.roaderror.emit();
|
|
11
13
|
this.roadError.emit();
|
|
12
14
|
};
|
|
13
15
|
}
|
|
@@ -45,6 +47,7 @@ export class Img {
|
|
|
45
47
|
load() {
|
|
46
48
|
this.loadError = this.onError;
|
|
47
49
|
this.loadSrc = this.src;
|
|
50
|
+
this.roadimgwillload.emit();
|
|
48
51
|
this.roadImgWillLoad.emit();
|
|
49
52
|
}
|
|
50
53
|
removeIO() {
|
|
@@ -107,14 +110,47 @@ export class Img {
|
|
|
107
110
|
"loadError": {}
|
|
108
111
|
}; }
|
|
109
112
|
static get events() { return [{
|
|
113
|
+
"method": "roadimgwillload",
|
|
114
|
+
"name": "roadimgwillload",
|
|
115
|
+
"bubbles": true,
|
|
116
|
+
"cancelable": true,
|
|
117
|
+
"composed": true,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Emitted when the img src has been set"
|
|
121
|
+
},
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "void",
|
|
124
|
+
"resolved": "void",
|
|
125
|
+
"references": {}
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
110
128
|
"method": "roadImgWillLoad",
|
|
111
129
|
"name": "roadImgWillLoad",
|
|
112
130
|
"bubbles": true,
|
|
113
131
|
"cancelable": true,
|
|
114
132
|
"composed": true,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [{
|
|
135
|
+
"name": "internal",
|
|
136
|
+
"text": undefined
|
|
137
|
+
}],
|
|
138
|
+
"text": ""
|
|
139
|
+
},
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "void",
|
|
142
|
+
"resolved": "void",
|
|
143
|
+
"references": {}
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
"method": "roadimgdidload",
|
|
147
|
+
"name": "roadimgdidload",
|
|
148
|
+
"bubbles": true,
|
|
149
|
+
"cancelable": true,
|
|
150
|
+
"composed": true,
|
|
115
151
|
"docs": {
|
|
116
152
|
"tags": [],
|
|
117
|
-
"text": "Emitted when the
|
|
153
|
+
"text": "Emitted when the image has finished loading"
|
|
118
154
|
},
|
|
119
155
|
"complexType": {
|
|
120
156
|
"original": "void",
|
|
@@ -127,9 +163,27 @@ export class Img {
|
|
|
127
163
|
"bubbles": true,
|
|
128
164
|
"cancelable": true,
|
|
129
165
|
"composed": true,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [{
|
|
168
|
+
"name": "internal",
|
|
169
|
+
"text": undefined
|
|
170
|
+
}],
|
|
171
|
+
"text": ""
|
|
172
|
+
},
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "void",
|
|
175
|
+
"resolved": "void",
|
|
176
|
+
"references": {}
|
|
177
|
+
}
|
|
178
|
+
}, {
|
|
179
|
+
"method": "roaderror",
|
|
180
|
+
"name": "roaderror",
|
|
181
|
+
"bubbles": true,
|
|
182
|
+
"cancelable": true,
|
|
183
|
+
"composed": true,
|
|
130
184
|
"docs": {
|
|
131
185
|
"tags": [],
|
|
132
|
-
"text": "Emitted when the
|
|
186
|
+
"text": "Emitted when the img fails to load"
|
|
133
187
|
},
|
|
134
188
|
"complexType": {
|
|
135
189
|
"original": "void",
|
|
@@ -143,8 +197,11 @@ export class Img {
|
|
|
143
197
|
"cancelable": true,
|
|
144
198
|
"composed": true,
|
|
145
199
|
"docs": {
|
|
146
|
-
"tags": [
|
|
147
|
-
|
|
200
|
+
"tags": [{
|
|
201
|
+
"name": "internal",
|
|
202
|
+
"text": undefined
|
|
203
|
+
}],
|
|
204
|
+
"text": ""
|
|
148
205
|
},
|
|
149
206
|
"complexType": {
|
|
150
207
|
"original": "void",
|