xv-webcomponents 0.1.46 → 0.1.50
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/{index-MLh9SbX2.js → index-CjhPTfz8.js} +41 -14
- package/dist/cjs/index-CjhPTfz8.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/xv-accordion-v2_38.cjs.entry.js +79193 -0
- package/dist/cjs/xv-accordion-v2_38.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +1 -1
- package/dist/cjs/xv-webcomponents.cjs.js +4 -5
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/xv-datepicker/xv-datepicker.css +401 -0
- package/dist/collection/components/xv-datepicker/xv-datepicker.js +570 -0
- package/dist/collection/components/xv-datepicker/xv-datepicker.js.map +1 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +1 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +2 -2
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -1
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +2 -2
- package/dist/collection/components/xv-footer/xv-footer.js +1 -1
- package/dist/collection/components/xv-header/xv-header.css +109 -0
- package/dist/collection/components/xv-header/xv-header.js +131 -3
- package/dist/collection/components/xv-header/xv-header.js.map +1 -1
- package/dist/collection/components/xv-link/xv-link.js +1 -1
- package/dist/collection/components/xv-modal/xv-modal.js +1 -1
- package/dist/collection/components/xv-notification/xv-notification.css +1 -1
- package/dist/collection/components/xv-notification/xv-notification.js +1 -1
- package/dist/collection/components/xv-number-input/xv-number-input.js +2 -2
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +1 -1
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +1 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
- package/dist/collection/components/xv-slider/xv-slider.css +196 -0
- package/dist/collection/components/xv-slider/xv-slider.js +259 -0
- package/dist/collection/components/xv-slider/xv-slider.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
- package/dist/collection/components/xv-table/xv-table.js +1 -1
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
- package/dist/collection/components/xv-tag/xv-tag.js +1 -1
- package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
- package/dist/collection/components/xv-textarea/xv-textarea.css +254 -0
- package/dist/collection/components/xv-textarea/xv-textarea.js +411 -0
- package/dist/collection/components/xv-textarea/xv-textarea.js.map +1 -0
- package/dist/collection/components/xv-tile/xv-tile.css +294 -0
- package/dist/collection/components/xv-tile/xv-tile.js +264 -0
- package/dist/collection/components/xv-tile/xv-tile.js.map +1 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
- package/dist/esm/{index-DLYJiP99.js → index-BQoQLd_U.js} +41 -15
- package/dist/esm/index-BQoQLd_U.js.map +1 -0
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/xv-accordion-v2_38.entry.js +79154 -0
- package/dist/esm/xv-accordion-v2_38.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js +1 -1
- package/dist/esm/xv-webcomponents.js +4 -5
- package/dist/esm/xv-webcomponents.js.map +1 -1
- package/dist/types/components/xv-datepicker/xv-datepicker.d.ts +69 -0
- package/dist/types/components/xv-header/xv-header.d.ts +30 -0
- package/dist/types/components/xv-slider/xv-slider.d.ts +20 -0
- package/dist/types/components/xv-textarea/xv-textarea.d.ts +27 -0
- package/dist/types/components/xv-tile/xv-tile.d.ts +24 -0
- package/dist/types/components.d.ts +344 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -1
- package/dist/xv-webcomponents/p-BQoQLd_U.js +3 -0
- package/dist/xv-webcomponents/p-BQoQLd_U.js.map +1 -0
- package/dist/xv-webcomponents/{p-851c4716.entry.js → p-a8d785da.entry.js} +2 -2
- package/dist/xv-webcomponents/p-f00c82ed.entry.js +2 -0
- package/dist/xv-webcomponents/p-f00c82ed.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +7 -4
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-MLh9SbX2.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +0 -3542
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-DLYJiP99.js.map +0 -1
- package/dist/esm/xv-accordion-v2_34.entry.js +0 -3507
- package/dist/esm/xv-accordion-v2_34.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-DLYJiP99.js +0 -3
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +0 -1
- package/dist/xv-webcomponents/p-DQuL1Twl.js +0 -2
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +0 -1
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js +0 -2
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js.map +0 -1
- /package/dist/xv-webcomponents/{p-851c4716.entry.js.map → p-a8d785da.entry.js.map} +0 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.xv-tooltip[role=tooltip] {
|
|
3
|
+
position: absolute;
|
|
4
|
+
background-color: var(--background-inverse, #333333);
|
|
5
|
+
color: var(--text-on-color);
|
|
6
|
+
padding: var(--spacing-03) var(--spacing-04);
|
|
7
|
+
border-radius: 3px;
|
|
8
|
+
font-size: var(--fz-sm);
|
|
9
|
+
z-index: 999;
|
|
10
|
+
min-width: min(150px, 90vw);
|
|
11
|
+
max-width: min(400px, 90vw);
|
|
12
|
+
}
|
|
13
|
+
.xv-tooltip[role=tooltip]::after {
|
|
14
|
+
content: "";
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 0;
|
|
17
|
+
height: 0;
|
|
18
|
+
border-style: solid;
|
|
19
|
+
}
|
|
20
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top]::after {
|
|
21
|
+
bottom: -5px;
|
|
22
|
+
left: 50%;
|
|
23
|
+
transform: translateX(-50%);
|
|
24
|
+
border-width: 5px 5px 0 5px;
|
|
25
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
26
|
+
}
|
|
27
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-start]::after {
|
|
28
|
+
bottom: -5px;
|
|
29
|
+
left: 12px;
|
|
30
|
+
border-width: 5px 5px 0 5px;
|
|
31
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
32
|
+
}
|
|
33
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-end]::after {
|
|
34
|
+
bottom: -5px;
|
|
35
|
+
right: 12px;
|
|
36
|
+
border-width: 5px 5px 0 5px;
|
|
37
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
38
|
+
}
|
|
39
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom]::after {
|
|
40
|
+
top: -5px;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translateX(-50%);
|
|
43
|
+
border-width: 0 5px 5px 5px;
|
|
44
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
45
|
+
}
|
|
46
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-start]::after {
|
|
47
|
+
top: -5px;
|
|
48
|
+
left: 12px;
|
|
49
|
+
border-width: 0 5px 5px 5px;
|
|
50
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
51
|
+
}
|
|
52
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-end]::after {
|
|
53
|
+
top: -5px;
|
|
54
|
+
right: 12px;
|
|
55
|
+
border-width: 0 5px 5px 5px;
|
|
56
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
57
|
+
}
|
|
58
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left]::after {
|
|
59
|
+
top: 50%;
|
|
60
|
+
right: -5px;
|
|
61
|
+
transform: translateY(-50%);
|
|
62
|
+
border-width: 5px 0 5px 5px;
|
|
63
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
64
|
+
}
|
|
65
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-start]::after {
|
|
66
|
+
top: 12px;
|
|
67
|
+
right: -5px;
|
|
68
|
+
border-width: 5px 0 5px 5px;
|
|
69
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
70
|
+
}
|
|
71
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-end]::after {
|
|
72
|
+
bottom: 12px;
|
|
73
|
+
right: -5px;
|
|
74
|
+
border-width: 5px 0 5px 5px;
|
|
75
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
76
|
+
}
|
|
77
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right]::after {
|
|
78
|
+
top: 50%;
|
|
79
|
+
left: -5px;
|
|
80
|
+
transform: translateY(-50%);
|
|
81
|
+
border-width: 5px 5px 5px 0;
|
|
82
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
83
|
+
}
|
|
84
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-start]::after {
|
|
85
|
+
top: 12px;
|
|
86
|
+
left: -5px;
|
|
87
|
+
border-width: 5px 5px 5px 0;
|
|
88
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
89
|
+
}
|
|
90
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-end]::after {
|
|
91
|
+
bottom: 12px;
|
|
92
|
+
left: -5px;
|
|
93
|
+
border-width: 5px 5px 5px 0;
|
|
94
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.xv-tile--host {
|
|
98
|
+
display: contents;
|
|
99
|
+
}
|
|
100
|
+
.xv-tile--host .xv-tile {
|
|
101
|
+
min-height: 64px;
|
|
102
|
+
min-width: 128px;
|
|
103
|
+
border-radius: 3px;
|
|
104
|
+
border: 1px solid var(--border-tile-02, #ACACAC);
|
|
105
|
+
outline: 2px solid transparent;
|
|
106
|
+
background-color: var(--layer-02, #FFF);
|
|
107
|
+
text-align: left;
|
|
108
|
+
user-select: none;
|
|
109
|
+
grid-template-columns: 1fr auto;
|
|
110
|
+
grid-template-areas: "content control" "footer footer" "expandable expandable";
|
|
111
|
+
display: inline-grid;
|
|
112
|
+
color: var(--text-primary, #333);
|
|
113
|
+
}
|
|
114
|
+
.xv-tile--host .xv-tile--variant-selectable, .xv-tile--host .xv-tile--variant-expandable, .xv-tile--host .xv-tile--variant-clickable {
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
transition: 250ms ease-in-out background-color;
|
|
117
|
+
}
|
|
118
|
+
.xv-tile--host .xv-tile--variant-selectable:hover, .xv-tile--host .xv-tile--variant-expandable:hover, .xv-tile--host .xv-tile--variant-clickable:hover {
|
|
119
|
+
border-color: var(--border-tile-01, #D1D1D1);
|
|
120
|
+
background-color: var(--layer-hover-02, #F7F7F7);
|
|
121
|
+
}
|
|
122
|
+
.xv-tile--host .xv-tile--variant-selectable:active, .xv-tile--host .xv-tile--variant-expandable:active, .xv-tile--host .xv-tile--variant-clickable:active {
|
|
123
|
+
background-color: var(--layer-active-02, #D1D1D1);
|
|
124
|
+
}
|
|
125
|
+
.xv-tile--host .xv-tile--variant-selectable:focus-within, .xv-tile--host .xv-tile--variant-expandable:focus-within, .xv-tile--host .xv-tile--variant-clickable:focus-within {
|
|
126
|
+
outline-width: 1px;
|
|
127
|
+
outline-color: var(--focus);
|
|
128
|
+
}
|
|
129
|
+
.xv-tile--host .xv-tile--variant-selectable.selected, .xv-tile--host .xv-tile--variant-expandable.selected, .xv-tile--host .xv-tile--variant-clickable.selected {
|
|
130
|
+
background-color: var(--layer-selected-02, #E3E3E3);
|
|
131
|
+
}
|
|
132
|
+
.xv-tile--host .xv-tile--variant-selectable.selected:hover, .xv-tile--host .xv-tile--variant-expandable.selected:hover, .xv-tile--host .xv-tile--variant-clickable.selected:hover {
|
|
133
|
+
background-color: var(--layer-selected-hover-02, #DADADA);
|
|
134
|
+
}
|
|
135
|
+
.xv-tile--host .xv-tile--block {
|
|
136
|
+
display: grid;
|
|
137
|
+
}
|
|
138
|
+
.xv-tile--host .xv-tile--error {
|
|
139
|
+
border-color: var(--support-error);
|
|
140
|
+
outline: 2px solid var(--support-error);
|
|
141
|
+
}
|
|
142
|
+
.xv-tile--host .xv-tile--disabled {
|
|
143
|
+
border-color: var(--border-disabled, #D1D1D1);
|
|
144
|
+
background-color: var(--layer-01, #F7F7F7);
|
|
145
|
+
color: var(--text-disabled, rgba(19, 19, 19, 0.25));
|
|
146
|
+
user-select: none;
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
cursor: not-allowed;
|
|
149
|
+
}
|
|
150
|
+
.xv-tile--host .xv-tile_content {
|
|
151
|
+
grid-area: content;
|
|
152
|
+
font-style: normal;
|
|
153
|
+
font-weight: 400;
|
|
154
|
+
font-size: var(--fz-md, 14px);
|
|
155
|
+
line-height: 20px;
|
|
156
|
+
letter-spacing: 0.16px;
|
|
157
|
+
}
|
|
158
|
+
.xv-tile--host .xv-tile_content > * {
|
|
159
|
+
margin: 0;
|
|
160
|
+
padding: 0;
|
|
161
|
+
}
|
|
162
|
+
.xv-tile--host .xv-tile_content__title {
|
|
163
|
+
font-size: 20px;
|
|
164
|
+
line-height: 28px;
|
|
165
|
+
letter-spacing: unset;
|
|
166
|
+
}
|
|
167
|
+
.xv-tile--host .xv-tile_content:not(:empty) {
|
|
168
|
+
padding: var(--spacing-05, 16px);
|
|
169
|
+
}
|
|
170
|
+
.xv-tile--host .xv-tile_control {
|
|
171
|
+
grid-area: control;
|
|
172
|
+
}
|
|
173
|
+
.xv-tile--host .xv-tile_control:not(:empty) {
|
|
174
|
+
padding-block: var(--spacing-05, 16px);
|
|
175
|
+
padding-inline-end: var(--spacing-05, 16px);
|
|
176
|
+
}
|
|
177
|
+
.xv-tile--host .xv-tile_control input[type=checkbox],
|
|
178
|
+
.xv-tile--host .xv-tile_control input[type=radio] {
|
|
179
|
+
-webkit-appearance: none;
|
|
180
|
+
appearance: none;
|
|
181
|
+
background-color: #fff;
|
|
182
|
+
margin: 0;
|
|
183
|
+
width: 16px;
|
|
184
|
+
height: 16px;
|
|
185
|
+
position: relative;
|
|
186
|
+
display: inline-flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
}
|
|
190
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:focus,
|
|
191
|
+
.xv-tile--host .xv-tile_control input[type=radio]:focus {
|
|
192
|
+
outline: 1.4px solid var(--focus);
|
|
193
|
+
}
|
|
194
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:before, .xv-tile--host .xv-tile_control input[type=checkbox]:after,
|
|
195
|
+
.xv-tile--host .xv-tile_control input[type=radio]:before,
|
|
196
|
+
.xv-tile--host .xv-tile_control input[type=radio]:after {
|
|
197
|
+
display: inline-block;
|
|
198
|
+
border-radius: inherit;
|
|
199
|
+
transition: 200ms ease-in-out border-color, 200ms ease-in-out background-color;
|
|
200
|
+
}
|
|
201
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:before,
|
|
202
|
+
.xv-tile--host .xv-tile_control input[type=radio]:before {
|
|
203
|
+
content: "";
|
|
204
|
+
width: inherit;
|
|
205
|
+
height: inherit;
|
|
206
|
+
background-color: #fff;
|
|
207
|
+
border: 1px solid var(--icon-primary, #131313);
|
|
208
|
+
}
|
|
209
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:after,
|
|
210
|
+
.xv-tile--host .xv-tile_control input[type=radio]:after {
|
|
211
|
+
position: absolute;
|
|
212
|
+
}
|
|
213
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:checked:before,
|
|
214
|
+
.xv-tile--host .xv-tile_control input[type=radio]:checked:before {
|
|
215
|
+
border-color: var(--background-brand, #97BF0D);
|
|
216
|
+
}
|
|
217
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:checked:after,
|
|
218
|
+
.xv-tile--host .xv-tile_control input[type=radio]:checked:after {
|
|
219
|
+
content: "";
|
|
220
|
+
}
|
|
221
|
+
.xv-tile--host .xv-tile_control input[type=checkbox] {
|
|
222
|
+
border-radius: 2px;
|
|
223
|
+
}
|
|
224
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:after {
|
|
225
|
+
width: 5px;
|
|
226
|
+
height: 8px;
|
|
227
|
+
border: solid #fff;
|
|
228
|
+
margin-bottom: 2px;
|
|
229
|
+
border-width: 0 2px 2px 0;
|
|
230
|
+
transform: rotate(45deg);
|
|
231
|
+
}
|
|
232
|
+
.xv-tile--host .xv-tile_control input[type=checkbox]:checked:before {
|
|
233
|
+
background-color: var(--background-brand, #97BF0D);
|
|
234
|
+
}
|
|
235
|
+
.xv-tile--host .xv-tile_control input[type=radio] {
|
|
236
|
+
border-radius: 50%;
|
|
237
|
+
}
|
|
238
|
+
.xv-tile--host .xv-tile_control input[type=radio]:after {
|
|
239
|
+
width: 50%;
|
|
240
|
+
height: 50%;
|
|
241
|
+
background-color: var(--background-brand, #97BF0D);
|
|
242
|
+
}
|
|
243
|
+
.xv-tile--host .xv-tile_footer {
|
|
244
|
+
grid-area: footer;
|
|
245
|
+
display: flex;
|
|
246
|
+
justify-content: flex-end;
|
|
247
|
+
}
|
|
248
|
+
.xv-tile--host .xv-tile_footer__icon {
|
|
249
|
+
pointer-events: none;
|
|
250
|
+
background-color: transparent;
|
|
251
|
+
outline: none;
|
|
252
|
+
border: none;
|
|
253
|
+
margin: 0;
|
|
254
|
+
padding: var(--spacing-05, 16px);
|
|
255
|
+
font-size: 16px;
|
|
256
|
+
display: inline-flex;
|
|
257
|
+
align-items: center;
|
|
258
|
+
justify-content: center;
|
|
259
|
+
}
|
|
260
|
+
.xv-tile--host .xv-tile_footer__icon:before {
|
|
261
|
+
content: "";
|
|
262
|
+
display: inline-flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
justify-content: center;
|
|
265
|
+
width: 16px;
|
|
266
|
+
height: 16px;
|
|
267
|
+
}
|
|
268
|
+
.xv-tile--host .xv-tile_footer__icon.icon--clickable:before {
|
|
269
|
+
content: "➔";
|
|
270
|
+
}
|
|
271
|
+
.xv-tile--host .xv-tile_footer__icon.icon--expandable:before {
|
|
272
|
+
width: 12px;
|
|
273
|
+
height: 12px;
|
|
274
|
+
border-style: solid;
|
|
275
|
+
border-width: 0 2px 2px 0;
|
|
276
|
+
transform: rotate(45deg);
|
|
277
|
+
transform-origin: center;
|
|
278
|
+
transition: 200ms ease-in-out transform;
|
|
279
|
+
}
|
|
280
|
+
.xv-tile--host .xv-tile_footer__icon.icon--expandable.open:before {
|
|
281
|
+
transform: rotate(-135deg);
|
|
282
|
+
}
|
|
283
|
+
.xv-tile--host .xv-tile_expandable {
|
|
284
|
+
grid-area: expandable;
|
|
285
|
+
display: none;
|
|
286
|
+
}
|
|
287
|
+
.xv-tile--host .xv-tile_expandable.open {
|
|
288
|
+
display: block;
|
|
289
|
+
}
|
|
290
|
+
.xv-tile--host .xv-tile_expandable [slot=expandable] {
|
|
291
|
+
margin: 0;
|
|
292
|
+
padding-inline: var(--spacing-05, 16px);
|
|
293
|
+
padding-block-end: var(--spacing-05, 16px);
|
|
294
|
+
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class XvTile {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.variant = 'base';
|
|
5
|
+
this.checked = false;
|
|
6
|
+
this.handleChange = (e) => {
|
|
7
|
+
const input = e.target;
|
|
8
|
+
this.checked = !!input.checked;
|
|
9
|
+
this.value = input.value;
|
|
10
|
+
if (this.variant === 'selectable' && !this.multiple) {
|
|
11
|
+
this.tileChange.emit({
|
|
12
|
+
name: this.name,
|
|
13
|
+
value: this.value,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
tileChangeHandle({ detail }) {
|
|
19
|
+
const { name, value } = detail || {};
|
|
20
|
+
if (this.variant !== 'selectable' || this.multiple || name === undefined || value === undefined)
|
|
21
|
+
return;
|
|
22
|
+
if (name === this.name && value !== this.value)
|
|
23
|
+
this.checked = false;
|
|
24
|
+
}
|
|
25
|
+
handleClick(e) {
|
|
26
|
+
if (this.variant !== 'expandable' || this.disabled || (e === null || e === void 0 ? void 0 : e.pointerId) !== -1)
|
|
27
|
+
return;
|
|
28
|
+
this.checked = !this.checked;
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h(Host, { key: 'b56eb653b4304687a52dbd4170d9e1c785a8b306', class: "xv-tile--host" }, h("label", { key: 'af9e8fdaa26842171b89572abc3d14f97a382e0a', class: {
|
|
32
|
+
[this.el.className]: !!this.el.className,
|
|
33
|
+
'xv-tile': true,
|
|
34
|
+
[`xv-tile--variant-${this.variant}`]: !!this.variant,
|
|
35
|
+
'xv-tile--block': !!this.block,
|
|
36
|
+
'xv-tile--disabled': !!this.disabled,
|
|
37
|
+
'selected': !!this.checked,
|
|
38
|
+
'xv-tile--error': this.error !== undefined,
|
|
39
|
+
} }, h("div", { key: '785c9290968abaac787883b92549d377528e489a', class: "xv-tile_content" }, this.label && h("h4", { key: '19db9c53db9e0ba81f2681d6dbc9d203a98f33f4', class: "xv-tile_content__title" }, this.label), h("slot", { key: '12057212809b88894ed9cf019553e8983c6be664' })), this.variant === 'selectable' && (h("div", { key: '3737948f18557c0c8a3542b434b818cc60e08c6a', class: "xv-tile_control" }, this.multiple ? (h("input", { type: "checkbox", disabled: this.disabled, onChange: this.handleChange, name: this.name, value: this.value, checked: this.checked })) : (h("input", { type: "radio", disabled: this.disabled, onChange: this.handleChange, name: this.name, value: this.value, checked: this.checked })))), (this.variant === 'clickable' || this.variant === 'expandable') && (h("div", { key: 'e328d2f4ad5a235ef9fcc3c69a517c254194c338', class: "xv-tile_footer" }, h("button", { key: '8e161569383baf39a27e2349c04a284463db897e', class: { 'xv-tile_footer__icon': true, [`icon--${this.variant}`]: true, open: this.checked } }))), h("div", { key: '5eebc585a7e97a1dda8ff83d3a4e767f8beb9723', class: { 'xv-tile_expandable': true, open: this.checked } }, h("slot", { key: '3a9a500a80675d7bf31235591a2bd33ba67eb34e', name: "expandable" })))));
|
|
40
|
+
}
|
|
41
|
+
static get is() { return "xv-tile"; }
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["xv-tile.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["xv-tile.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"variant": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"attribute": "variant",
|
|
57
|
+
"mutable": false,
|
|
58
|
+
"complexType": {
|
|
59
|
+
"original": "'base' | 'clickable' | 'selectable' | 'expandable'",
|
|
60
|
+
"resolved": "\"base\" | \"clickable\" | \"expandable\" | \"selectable\"",
|
|
61
|
+
"references": {}
|
|
62
|
+
},
|
|
63
|
+
"required": false,
|
|
64
|
+
"optional": false,
|
|
65
|
+
"docs": {
|
|
66
|
+
"tags": [],
|
|
67
|
+
"text": ""
|
|
68
|
+
},
|
|
69
|
+
"getter": false,
|
|
70
|
+
"setter": false,
|
|
71
|
+
"reflect": true,
|
|
72
|
+
"defaultValue": "'base'"
|
|
73
|
+
},
|
|
74
|
+
"label": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"attribute": "label",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "string",
|
|
80
|
+
"resolved": "string",
|
|
81
|
+
"references": {}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": true,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": ""
|
|
88
|
+
},
|
|
89
|
+
"getter": false,
|
|
90
|
+
"setter": false,
|
|
91
|
+
"reflect": false
|
|
92
|
+
},
|
|
93
|
+
"error": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"attribute": "error",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "boolean",
|
|
99
|
+
"resolved": "boolean",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": true,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"getter": false,
|
|
109
|
+
"setter": false,
|
|
110
|
+
"reflect": false
|
|
111
|
+
},
|
|
112
|
+
"multiple": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"attribute": "multiple",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "boolean",
|
|
118
|
+
"resolved": "boolean",
|
|
119
|
+
"references": {}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": true,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": ""
|
|
126
|
+
},
|
|
127
|
+
"getter": false,
|
|
128
|
+
"setter": false,
|
|
129
|
+
"reflect": false
|
|
130
|
+
},
|
|
131
|
+
"disabled": {
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"attribute": "disabled",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "boolean",
|
|
137
|
+
"resolved": "boolean",
|
|
138
|
+
"references": {}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": true,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": ""
|
|
145
|
+
},
|
|
146
|
+
"getter": false,
|
|
147
|
+
"setter": false,
|
|
148
|
+
"reflect": false
|
|
149
|
+
},
|
|
150
|
+
"block": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"attribute": "block",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "boolean",
|
|
156
|
+
"resolved": "boolean",
|
|
157
|
+
"references": {}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": true,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": ""
|
|
164
|
+
},
|
|
165
|
+
"getter": false,
|
|
166
|
+
"setter": false,
|
|
167
|
+
"reflect": false
|
|
168
|
+
},
|
|
169
|
+
"name": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"attribute": "name",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": true,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": ""
|
|
183
|
+
},
|
|
184
|
+
"getter": false,
|
|
185
|
+
"setter": false,
|
|
186
|
+
"reflect": false
|
|
187
|
+
},
|
|
188
|
+
"value": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"attribute": "value",
|
|
191
|
+
"mutable": true,
|
|
192
|
+
"complexType": {
|
|
193
|
+
"original": "string",
|
|
194
|
+
"resolved": "string",
|
|
195
|
+
"references": {}
|
|
196
|
+
},
|
|
197
|
+
"required": false,
|
|
198
|
+
"optional": true,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [],
|
|
201
|
+
"text": ""
|
|
202
|
+
},
|
|
203
|
+
"getter": false,
|
|
204
|
+
"setter": false,
|
|
205
|
+
"reflect": false
|
|
206
|
+
},
|
|
207
|
+
"checked": {
|
|
208
|
+
"type": "boolean",
|
|
209
|
+
"attribute": "checked",
|
|
210
|
+
"mutable": true,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "boolean",
|
|
213
|
+
"resolved": "boolean",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": ""
|
|
221
|
+
},
|
|
222
|
+
"getter": false,
|
|
223
|
+
"setter": false,
|
|
224
|
+
"reflect": false,
|
|
225
|
+
"defaultValue": "false"
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
static get events() {
|
|
230
|
+
return [{
|
|
231
|
+
"method": "tileChange",
|
|
232
|
+
"name": "tileChange",
|
|
233
|
+
"bubbles": true,
|
|
234
|
+
"cancelable": true,
|
|
235
|
+
"composed": true,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": ""
|
|
239
|
+
},
|
|
240
|
+
"complexType": {
|
|
241
|
+
"original": "{ name?: string; value?: string }",
|
|
242
|
+
"resolved": "{ name?: string; value?: string; }",
|
|
243
|
+
"references": {}
|
|
244
|
+
}
|
|
245
|
+
}];
|
|
246
|
+
}
|
|
247
|
+
static get elementRef() { return "el"; }
|
|
248
|
+
static get listeners() {
|
|
249
|
+
return [{
|
|
250
|
+
"name": "tileChange",
|
|
251
|
+
"method": "tileChangeHandle",
|
|
252
|
+
"target": "document",
|
|
253
|
+
"capture": false,
|
|
254
|
+
"passive": false
|
|
255
|
+
}, {
|
|
256
|
+
"name": "click",
|
|
257
|
+
"method": "handleClick",
|
|
258
|
+
"target": undefined,
|
|
259
|
+
"capture": false,
|
|
260
|
+
"passive": false
|
|
261
|
+
}];
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=xv-tile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-tile.js","sourceRoot":"","sources":["../../../src/components/xv-tile/xv-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAO/F,MAAM,OAAO,MAAM;IALnB;QAO2B,YAAO,GAAuD,MAAM,CAAC;QAQrE,YAAO,GAAY,KAAK,CAAC;QAkB1C,iBAAY,GAAG,CAAC,CAAQ,EAAE,EAAE;YAClC,MAAM,KAAK,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;YAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAEzB,IAAI,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACpD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;oBACnB,IAAI,EAAE,IAAI,CAAC,IAAI;oBACf,KAAK,EAAE,IAAI,CAAC,KAAK;iBAClB,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;KAwDH;IAhFC,gBAAgB,CAAC,EAAE,MAAM,EAAkD;QACzE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAErC,IAAI,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO;QACxG,IAAI,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACvE,CAAC;IAGD,WAAW,CAAC,CAAe;QACzB,IAAI,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,IAAI,CAAC,QAAQ,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,SAAS,MAAK,CAAC,CAAC;YAAE,OAAO;QAClF,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IAC/B,CAAC;IAeD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,eAAe;YACzB,8DAAO,KAAK,EAAE;oBACZ,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS;oBACxC,SAAS,EAAE,IAAI;oBACf,CAAC,oBAAoB,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;oBACpD,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK;oBAC9B,mBAAmB,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ;oBACpC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO;oBAC1B,gBAAgB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;iBAC3C;gBACC,4DAAK,KAAK,EAAC,iBAAiB;oBACzB,IAAI,CAAC,KAAK,IAAI,2DAAI,KAAK,EAAC,wBAAwB,IAAE,IAAI,CAAC,KAAK,CAAM;oBACnE,8DAAQ,CACJ;gBAEL,IAAI,CAAC,OAAO,KAAK,YAAY,IAAI,CAChC,4DAAK,KAAK,EAAC,iBAAiB,IAExB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,aAAO,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,CACjC,CAAC,CAAC,CAAC,CACF,aAAO,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI,CACjC,CAEC,CACP;gBAEA,CAAC,IAAI,CAAC,OAAO,KAAK,WAAW,IAAI,IAAI,CAAC,OAAO,KAAK,YAAY,CAAC,IAAI,CAClE,4DAAK,KAAK,EAAC,gBAAgB;oBACzB,+DACE,KAAK,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE,CAAC,SAAS,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,GAC5F,CACE,CACP;gBAED,4DAAK,KAAK,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;oBAC5D,6DAAM,IAAI,EAAC,YAAY,GAAG,CACtB,CACA,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Event, EventEmitter, Prop, Listen, Element } from '@stencil/core';\n\n@Component({\n tag: 'xv-tile',\n styleUrl: 'xv-tile.scss',\n shadow: false,\n})\nexport class XvTile {\n @Element() el: HTMLElement;\n @Prop({ reflect: true }) variant: 'base' | 'clickable' | 'selectable' | 'expandable' = 'base';\n @Prop() label?: string;\n @Prop() error?: boolean;\n @Prop() multiple?: boolean;\n @Prop() disabled?: boolean;\n @Prop() block?: boolean;\n @Prop() name?: string;\n @Prop({ mutable: true }) value?: string;\n @Prop({ mutable: true }) checked: boolean = false;\n\n @Event({ bubbles: true, composed: true }) tileChange: EventEmitter<{ name?: string; value?: string }>;\n\n @Listen('tileChange', { target: 'document' })\n tileChangeHandle({ detail }: CustomEvent<{ name?: string; value?: string }>) {\n const { name, value } = detail || {};\n\n if (this.variant !== 'selectable' || this.multiple || name === undefined || value === undefined) return;\n if (name === this.name && value !== this.value) this.checked = false;\n }\n\n @Listen('click')\n handleClick(e: PointerEvent) {\n if (this.variant !== 'expandable' || this.disabled || e?.pointerId !== -1) return;\n this.checked = !this.checked;\n }\n\n private handleChange = (e: Event) => {\n const input = e.target as HTMLInputElement;\n this.checked = !!input.checked;\n this.value = input.value;\n\n if (this.variant === 'selectable' && !this.multiple) {\n this.tileChange.emit({\n name: this.name,\n value: this.value,\n });\n }\n };\n\n render() {\n return (\n <Host class=\"xv-tile--host\">\n <label class={{\n [this.el.className]: !!this.el.className,\n 'xv-tile': true,\n [`xv-tile--variant-${this.variant}`]: !!this.variant,\n 'xv-tile--block': !!this.block,\n 'xv-tile--disabled': !!this.disabled,\n 'selected': !!this.checked,\n 'xv-tile--error': this.error !== undefined,\n }}>\n <div class=\"xv-tile_content\">\n {this.label && <h4 class=\"xv-tile_content__title\">{this.label}</h4>}\n <slot />\n </div>\n\n {this.variant === 'selectable' && (\n <div class=\"xv-tile_control\">\n {\n this.multiple ? (\n <input type=\"checkbox\"\n disabled={this.disabled}\n onChange={this.handleChange}\n name={this.name}\n value={this.value}\n checked={this.checked} />\n ) : (\n <input type=\"radio\"\n disabled={this.disabled}\n onChange={this.handleChange}\n name={this.name}\n value={this.value}\n checked={this.checked} />\n )\n }\n </div>\n )}\n\n {(this.variant === 'clickable' || this.variant === 'expandable') && (\n <div class=\"xv-tile_footer\">\n <button\n class={{ 'xv-tile_footer__icon': true, [`icon--${this.variant}`]: true, open: this.checked }}\n />\n </div>\n )}\n\n <div class={{ 'xv-tile_expandable': true, open: this.checked }}>\n <slot name=\"expandable\" />\n </div>\n </label>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -65,7 +65,7 @@ export class XvToggleTip {
|
|
|
65
65
|
}
|
|
66
66
|
;
|
|
67
67
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: 'b774fc0ba1062b8da6d53aed3a47d70ae957fb50', class: "xv-toggle-tip" }, h("div", { key: '0ed385b35de518b4d463ad46f3f28eb4fba2396a', class: "trigger", role: "button", tabindex: "0", "aria-expanded": this.open ? 'true' : 'false', "aria-controls": "popover", onClick: () => this.setPopover(!this.open), ref: (el) => (this.triggerEl = el) }, h("slot", { key: 'f8069c9c48bdfa0be4d832a454e1c2a46c07bdcd', name: "trigger" }, h("svg", { key: 'ba99258f8bec90079a6c438eedc7a894b1e7b31c', class: "trigger_icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, h("path", { key: 'b4b38d16ae860008654845035bac652101151ee8', fill: "currentColor", d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" })))), h("div", { key: 'd031b15596a4c5ea78b3fe17a5b7005bd9bd9fbc', class: { popover: true }, role: "tooltip", tabindex: "-1", ref: (el) => (this.popoverEl = el) }, h("div", { key: 'c8ba70ee15dfd264e2034d6418a71102744f32be', class: "popover-tip", part: "tip", "data-popper-arrow": "" }), h("div", { key: '263f4c552b917e444624ac990bb06abd720e3057', class: "popover-content" }, h("slot", { key: 'b514248df9831c5248a2a9385267f38f1b6385b9', name: "header" }), h("slot", { key: '5182da0a61cce3a1ab989ac9b42b1083e72d2f80', name: "body" }), h("slot", { key: '56de0e8516895830d58e1e9b93fd86d94821b172', name: "footer" })))));
|
|
69
69
|
}
|
|
70
70
|
disconnectedCallback() {
|
|
71
71
|
this.destroyPopper();
|
|
@@ -38,11 +38,11 @@ export class XvTooltip {
|
|
|
38
38
|
this.destroyTooltip();
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '72b3331937cd2f49e4fadce31fa44adfd8facf4f', role: "tooltip", class: {
|
|
42
42
|
'xv-tooltip-wrapper': true,
|
|
43
43
|
[`xv-tooltip-wrapper__block`]: !!this.block,
|
|
44
44
|
[`xv-tooltip-wrapper__dashed`]: !!this.dashed,
|
|
45
|
-
} }, h("slot", { key: '
|
|
45
|
+
} }, h("slot", { key: 'd6277459bf37571156356a091f5e315228060763' }, h("svg", { key: '54bcd09a848a75a122c29ab2fdf78323482ace91', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", width: 16, height: 16 }, h("path", { key: '41badb1b28e75684daf5c114b07fdf744a24f6a9', fill: "currentColor", d: "M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-8 0 0-88c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 64-24 0zm40-144a32 32 0 1 0 0-64 32 32 0 1 0 0 64z" })))));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "xv-tooltip-v2"; }
|
|
48
48
|
static get originalStyleUrls() {
|