xv-webcomponents 0.1.18 → 0.1.20

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.
Files changed (138) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +129 -129
  3. package/dist/xv-webcomponents/index-90b82796.js +3971 -0
  4. package/dist/xv-webcomponents/index-90b82796.js.map +1 -0
  5. package/dist/xv-webcomponents/index.esm.js +12 -1
  6. package/dist/xv-webcomponents/index.esm.js.map +1 -1
  7. package/dist/{collection/utils/utils.js → xv-webcomponents/utils-e6dc0550.js} +7 -4
  8. package/dist/xv-webcomponents/utils-e6dc0550.js.map +1 -0
  9. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js +35 -0
  10. package/dist/xv-webcomponents/xv-accordion-v2-item.entry.js.map +1 -0
  11. package/dist/xv-webcomponents/xv-accordion-v2.entry.js +40 -0
  12. package/dist/xv-webcomponents/xv-accordion-v2.entry.js.map +1 -0
  13. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js +17 -0
  14. package/dist/xv-webcomponents/xv-breadcrumbs-v2.entry.js.map +1 -0
  15. package/dist/xv-webcomponents/xv-button-v2.entry.js +33 -0
  16. package/dist/xv-webcomponents/xv-button-v2.entry.js.map +1 -0
  17. package/dist/xv-webcomponents/xv-card-v2.entry.js +18 -0
  18. package/dist/xv-webcomponents/xv-card-v2.entry.js.map +1 -0
  19. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +99 -0
  20. package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +1 -0
  21. package/dist/xv-webcomponents/xv-link-v2.entry.js +26 -0
  22. package/dist/xv-webcomponents/xv-link-v2.entry.js.map +1 -0
  23. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js +19 -0
  24. package/dist/xv-webcomponents/xv-progress-indicator-v2-item.entry.js.map +1 -0
  25. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js +39 -0
  26. package/dist/xv-webcomponents/xv-progress-indicator-v2.entry.js.map +1 -0
  27. package/dist/xv-webcomponents/xv-table-v2-col.entry.js +17 -0
  28. package/dist/xv-webcomponents/xv-table-v2-col.entry.js.map +1 -0
  29. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js +34 -0
  30. package/dist/xv-webcomponents/xv-table-v2-header-row.entry.js.map +1 -0
  31. package/dist/xv-webcomponents/xv-table-v2-row.entry.js +112 -0
  32. package/dist/xv-webcomponents/xv-table-v2-row.entry.js.map +1 -0
  33. package/dist/xv-webcomponents/xv-table-v2.entry.js +114 -0
  34. package/dist/xv-webcomponents/xv-table-v2.entry.js.map +1 -0
  35. package/dist/xv-webcomponents/xv-tag-v2.entry.js +28 -0
  36. package/dist/xv-webcomponents/xv-tag-v2.entry.js.map +1 -0
  37. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js +23 -0
  38. package/dist/xv-webcomponents/xv-tooltip-v2.entry.js.map +1 -0
  39. package/dist/xv-webcomponents/xv-webcomponents.esm.js +48 -1
  40. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  41. package/package.json +51 -51
  42. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  43. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  44. package/dist/cjs/index-782b9733.js +0 -1535
  45. package/dist/cjs/index-782b9733.js.map +0 -1
  46. package/dist/cjs/index.cjs.js +0 -11
  47. package/dist/cjs/index.cjs.js.map +0 -1
  48. package/dist/cjs/loader.cjs.js +0 -17
  49. package/dist/cjs/loader.cjs.js.map +0 -1
  50. package/dist/cjs/utils-c7652b74.js +0 -13
  51. package/dist/cjs/utils-c7652b74.js.map +0 -1
  52. package/dist/cjs/xv-accordion-v2_14.cjs.entry.js +0 -602
  53. package/dist/cjs/xv-accordion-v2_14.cjs.entry.js.map +0 -1
  54. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +0 -22
  55. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js.map +0 -1
  56. package/dist/cjs/xv-webcomponents.cjs.js +0 -27
  57. package/dist/cjs/xv-webcomponents.cjs.js.map +0 -1
  58. package/dist/collection/collection-manifest.json +0 -26
  59. package/dist/collection/components/xv-accordion/xv-accordion.css +0 -3
  60. package/dist/collection/components/xv-accordion/xv-accordion.js +0 -163
  61. package/dist/collection/components/xv-accordion/xv-accordion.js.map +0 -1
  62. package/dist/collection/components/xv-accordion-item/xv-accordion-item.css +0 -68
  63. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js +0 -132
  64. package/dist/collection/components/xv-accordion-item/xv-accordion-item.js.map +0 -1
  65. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.css +0 -3
  66. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js +0 -19
  67. package/dist/collection/components/xv-breadcrumbs/xv-breadcrumbs.js.map +0 -1
  68. package/dist/collection/components/xv-button/xv-button-v2.css +0 -153
  69. package/dist/collection/components/xv-button/xv-button.js +0 -138
  70. package/dist/collection/components/xv-button/xv-button.js.map +0 -1
  71. package/dist/collection/components/xv-card/xv-card.css +0 -63
  72. package/dist/collection/components/xv-card/xv-card.js +0 -122
  73. package/dist/collection/components/xv-card/xv-card.js.map +0 -1
  74. package/dist/collection/components/xv-checkbox/xv-checkbox.css +0 -108
  75. package/dist/collection/components/xv-checkbox/xv-checkbox.js +0 -376
  76. package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +0 -1
  77. package/dist/collection/components/xv-link/xv-link.css +0 -60
  78. package/dist/collection/components/xv-link/xv-link.js +0 -132
  79. package/dist/collection/components/xv-link/xv-link.js.map +0 -1
  80. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.css +0 -7
  81. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +0 -70
  82. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js.map +0 -1
  83. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.css +0 -66
  84. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js +0 -47
  85. package/dist/collection/components/xv-progress-indicator-item/xv-progress-indicator-item.js.map +0 -1
  86. package/dist/collection/components/xv-table/defs.js +0 -14
  87. package/dist/collection/components/xv-table/defs.js.map +0 -1
  88. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.css +0 -8
  89. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js +0 -19
  90. package/dist/collection/components/xv-table/xv-table-col/xv-table-col.js.map +0 -1
  91. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.css +0 -21
  92. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js +0 -122
  93. package/dist/collection/components/xv-table/xv-table-header-row/xv-table-header-row.js.map +0 -1
  94. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.css +0 -53
  95. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +0 -299
  96. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js.map +0 -1
  97. package/dist/collection/components/xv-table/xv-table.css +0 -154
  98. package/dist/collection/components/xv-table/xv-table.js +0 -245
  99. package/dist/collection/components/xv-table/xv-table.js.map +0 -1
  100. package/dist/collection/components/xv-tag/xv-tag.css +0 -97
  101. package/dist/collection/components/xv-tag/xv-tag.js +0 -158
  102. package/dist/collection/components/xv-tag/xv-tag.js.map +0 -1
  103. package/dist/collection/components/xv-tooltip/xv-tooltip.css +0 -154
  104. package/dist/collection/components/xv-tooltip/xv-tooltip.js +0 -70
  105. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +0 -1
  106. package/dist/collection/index.js +0 -11
  107. package/dist/collection/index.js.map +0 -1
  108. package/dist/collection/types/enum.js +0 -9
  109. package/dist/collection/types/enum.js.map +0 -1
  110. package/dist/collection/utils/utils.js.map +0 -1
  111. package/dist/esm/index-83ab73b7.js +0 -1506
  112. package/dist/esm/index-83ab73b7.js.map +0 -1
  113. package/dist/esm/index.js +0 -3
  114. package/dist/esm/index.js.map +0 -1
  115. package/dist/esm/loader.js +0 -13
  116. package/dist/esm/loader.js.map +0 -1
  117. package/dist/esm/utils-9bb6333b.js +0 -10
  118. package/dist/esm/utils-9bb6333b.js.map +0 -1
  119. package/dist/esm/xv-accordion-v2_14.entry.js +0 -585
  120. package/dist/esm/xv-accordion-v2_14.entry.js.map +0 -1
  121. package/dist/esm/xv-breadcrumbs-v2.entry.js +0 -18
  122. package/dist/esm/xv-breadcrumbs-v2.entry.js.map +0 -1
  123. package/dist/esm/xv-webcomponents.js +0 -22
  124. package/dist/esm/xv-webcomponents.js.map +0 -1
  125. package/dist/index.cjs.js +0 -1
  126. package/dist/index.js +0 -1
  127. package/dist/xv-webcomponents/p-5f18d718.entry.js +0 -2
  128. package/dist/xv-webcomponents/p-5f18d718.entry.js.map +0 -1
  129. package/dist/xv-webcomponents/p-840929c5.js +0 -3
  130. package/dist/xv-webcomponents/p-840929c5.js.map +0 -1
  131. package/dist/xv-webcomponents/p-a0b74d3c.js +0 -2
  132. package/dist/xv-webcomponents/p-a0b74d3c.js.map +0 -1
  133. package/dist/xv-webcomponents/p-bfe83d1e.entry.js +0 -2
  134. package/dist/xv-webcomponents/p-bfe83d1e.entry.js.map +0 -1
  135. package/dist/xv-webcomponents/p-e1255160.js +0 -2
  136. package/dist/xv-webcomponents/p-e1255160.js.map +0 -1
  137. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js +0 -0
  138. /package/dist/{esm → xv-webcomponents}/app-globals-0f993ce5.js.map +0 -0
@@ -1,376 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- export class XvCheckbox {
3
- constructor() {
4
- var _a, _b;
5
- /**
6
- * Default checked status
7
- */
8
- this.checked = false;
9
- /**
10
- * Using for forms
11
- */
12
- this.indeterminate = false;
13
- /**
14
- * Disabled status
15
- */
16
- this.disabled = false;
17
- /**
18
- * Input value
19
- */
20
- this.value = 'on';
21
- /**
22
- * The same like default checkbox prop
23
- */
24
- this.required = false;
25
- /**
26
- * Change checkmark icon to minus
27
- */
28
- this.partial = false;
29
- this.hasFocus = false;
30
- this.onInput = (e) => {
31
- const target = e.target;
32
- this.checked = target.checked;
33
- this.inputEvent.emit(this.checked);
34
- };
35
- this.onChange = (e) => {
36
- const target = e.target;
37
- this.checked = target.checked;
38
- this.changeEvent.emit(this.checked);
39
- };
40
- this.onFocus = () => {
41
- this.hasFocus = true;
42
- this.focusEvent.emit();
43
- };
44
- this.onBlur = () => {
45
- this.hasFocus = false;
46
- this.blurEvent.emit();
47
- };
48
- this.internals = ((_b = (_a = this.el).attachInternals) === null || _b === void 0 ? void 0 : _b.call(_a)) || {};
49
- }
50
- connectedCallback() {
51
- var _a;
52
- if ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue) {
53
- this.internals.setFormValue(this.checked ? this.value : null);
54
- }
55
- }
56
- onCheckedChange(newValue) {
57
- var _a;
58
- if ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue) {
59
- this.internals.setFormValue(newValue ? this.value : null);
60
- }
61
- }
62
- render() {
63
- return (h(Host, { key: '6dc76eae00dd96750977c77db16f31ccfbc15129' }, h("label", { key: '6f8f256877217e0e138673083721db9ffd4e21e3', class: { 'xv-checkbox': true, disabled: this.disabled } }, h("input", { key: 'ef6abcf5e0904f64dac882fef2d58f7275172443', ref: el => (this.inputEl = el), type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, indeterminate: this.indeterminate, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }), h("span", { key: '04bba1b7f7043f2d5a8ddef812f73a9d2248c1c8', class: `checkmark ${this.partial ? 'checkmark-partial' : ''}` }), h("div", { key: '5f550233505fd663d5876bbc4718c8be44bbeabe', class: "label" }, h("slot", { key: '861d10aafa6c719a3c712325a7425047fe81bc4a' }, this.label))), h("slot", { key: '4e3229b715ec7144816d5119a7f7dc2f6411a86b', name: "info" }), !!this.error && h("span", { key: 'c802d1d194b9490283aecadf766f7c066b9bfd90', class: "error" }, this.error)));
64
- }
65
- componentDidLoad() {
66
- if (this.indeterminate) {
67
- this.inputEl.indeterminate = true;
68
- }
69
- }
70
- componentDidUpdate() {
71
- if (this.inputEl) {
72
- this.inputEl.indeterminate = this.indeterminate;
73
- }
74
- }
75
- formResetCallback() {
76
- this.checked = false;
77
- }
78
- formStateRestoreCallback(state) {
79
- this.checked = state === this.value;
80
- }
81
- static get is() { return "xv-checkbox-v2"; }
82
- static get encapsulation() { return "shadow"; }
83
- static get formAssociated() { return true; }
84
- static get originalStyleUrls() {
85
- return {
86
- "$": ["xv-checkbox.scss"]
87
- };
88
- }
89
- static get styleUrls() {
90
- return {
91
- "$": ["xv-checkbox.css"]
92
- };
93
- }
94
- static get properties() {
95
- return {
96
- "checked": {
97
- "type": "boolean",
98
- "mutable": true,
99
- "complexType": {
100
- "original": "boolean",
101
- "resolved": "boolean",
102
- "references": {}
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": "Default checked status"
109
- },
110
- "getter": false,
111
- "setter": false,
112
- "attribute": "checked",
113
- "reflect": true,
114
- "defaultValue": "false"
115
- },
116
- "indeterminate": {
117
- "type": "boolean",
118
- "mutable": false,
119
- "complexType": {
120
- "original": "boolean",
121
- "resolved": "boolean",
122
- "references": {}
123
- },
124
- "required": false,
125
- "optional": false,
126
- "docs": {
127
- "tags": [],
128
- "text": "Using for forms"
129
- },
130
- "getter": false,
131
- "setter": false,
132
- "attribute": "indeterminate",
133
- "reflect": true,
134
- "defaultValue": "false"
135
- },
136
- "disabled": {
137
- "type": "boolean",
138
- "mutable": false,
139
- "complexType": {
140
- "original": "boolean",
141
- "resolved": "boolean",
142
- "references": {}
143
- },
144
- "required": false,
145
- "optional": false,
146
- "docs": {
147
- "tags": [],
148
- "text": "Disabled status"
149
- },
150
- "getter": false,
151
- "setter": false,
152
- "attribute": "disabled",
153
- "reflect": true,
154
- "defaultValue": "false"
155
- },
156
- "name": {
157
- "type": "string",
158
- "mutable": false,
159
- "complexType": {
160
- "original": "string",
161
- "resolved": "string",
162
- "references": {}
163
- },
164
- "required": false,
165
- "optional": false,
166
- "docs": {
167
- "tags": [],
168
- "text": "Input name"
169
- },
170
- "getter": false,
171
- "setter": false,
172
- "attribute": "name",
173
- "reflect": true
174
- },
175
- "value": {
176
- "type": "string",
177
- "mutable": false,
178
- "complexType": {
179
- "original": "string",
180
- "resolved": "string",
181
- "references": {}
182
- },
183
- "required": false,
184
- "optional": false,
185
- "docs": {
186
- "tags": [],
187
- "text": "Input value"
188
- },
189
- "getter": false,
190
- "setter": false,
191
- "attribute": "value",
192
- "reflect": true,
193
- "defaultValue": "'on'"
194
- },
195
- "required": {
196
- "type": "boolean",
197
- "mutable": false,
198
- "complexType": {
199
- "original": "boolean",
200
- "resolved": "boolean",
201
- "references": {}
202
- },
203
- "required": false,
204
- "optional": false,
205
- "docs": {
206
- "tags": [],
207
- "text": "The same like default checkbox prop"
208
- },
209
- "getter": false,
210
- "setter": false,
211
- "attribute": "required",
212
- "reflect": true,
213
- "defaultValue": "false"
214
- },
215
- "partial": {
216
- "type": "boolean",
217
- "mutable": false,
218
- "complexType": {
219
- "original": "boolean",
220
- "resolved": "boolean",
221
- "references": {}
222
- },
223
- "required": false,
224
- "optional": false,
225
- "docs": {
226
- "tags": [],
227
- "text": "Change checkmark icon to minus"
228
- },
229
- "getter": false,
230
- "setter": false,
231
- "attribute": "partial",
232
- "reflect": true,
233
- "defaultValue": "false"
234
- },
235
- "label": {
236
- "type": "string",
237
- "mutable": false,
238
- "complexType": {
239
- "original": "string",
240
- "resolved": "string",
241
- "references": {}
242
- },
243
- "required": false,
244
- "optional": false,
245
- "docs": {
246
- "tags": [],
247
- "text": "Can be used like property or like slot"
248
- },
249
- "getter": false,
250
- "setter": false,
251
- "attribute": "label",
252
- "reflect": false
253
- },
254
- "size": {
255
- "type": "string",
256
- "mutable": false,
257
- "complexType": {
258
- "original": "SIZE_VAR",
259
- "resolved": "SIZE_VAR.LG | SIZE_VAR.MD | SIZE_VAR.SM | SIZE_VAR.XL | SIZE_VAR.XS",
260
- "references": {
261
- "SIZE_VAR": {
262
- "location": "import",
263
- "path": "../../types/enum",
264
- "id": "src/types/enum.ts::SIZE_VAR"
265
- }
266
- }
267
- },
268
- "required": false,
269
- "optional": true,
270
- "docs": {
271
- "tags": [],
272
- "text": ""
273
- },
274
- "getter": false,
275
- "setter": false,
276
- "attribute": "size",
277
- "reflect": true
278
- },
279
- "error": {
280
- "type": "any",
281
- "mutable": false,
282
- "complexType": {
283
- "original": "string | boolean",
284
- "resolved": "boolean | string",
285
- "references": {}
286
- },
287
- "required": false,
288
- "optional": true,
289
- "docs": {
290
- "tags": [],
291
- "text": ""
292
- },
293
- "getter": false,
294
- "setter": false,
295
- "attribute": "error",
296
- "reflect": true
297
- }
298
- };
299
- }
300
- static get states() {
301
- return {
302
- "hasFocus": {}
303
- };
304
- }
305
- static get events() {
306
- return [{
307
- "method": "changeEvent",
308
- "name": "eventChange",
309
- "bubbles": true,
310
- "cancelable": true,
311
- "composed": true,
312
- "docs": {
313
- "tags": [],
314
- "text": "event 'onEventChange'"
315
- },
316
- "complexType": {
317
- "original": "boolean",
318
- "resolved": "boolean",
319
- "references": {}
320
- }
321
- }, {
322
- "method": "inputEvent",
323
- "name": "eventInput",
324
- "bubbles": true,
325
- "cancelable": true,
326
- "composed": true,
327
- "docs": {
328
- "tags": [],
329
- "text": "event 'onEventInput'"
330
- },
331
- "complexType": {
332
- "original": "boolean",
333
- "resolved": "boolean",
334
- "references": {}
335
- }
336
- }, {
337
- "method": "focusEvent",
338
- "name": "eventFocus",
339
- "bubbles": true,
340
- "cancelable": true,
341
- "composed": true,
342
- "docs": {
343
- "tags": [],
344
- "text": "event 'onEventFocus'"
345
- },
346
- "complexType": {
347
- "original": "void",
348
- "resolved": "void",
349
- "references": {}
350
- }
351
- }, {
352
- "method": "blurEvent",
353
- "name": "eventBlur",
354
- "bubbles": true,
355
- "cancelable": true,
356
- "composed": true,
357
- "docs": {
358
- "tags": [],
359
- "text": "event 'onEventBlur'"
360
- },
361
- "complexType": {
362
- "original": "void",
363
- "resolved": "void",
364
- "references": {}
365
- }
366
- }];
367
- }
368
- static get elementRef() { return "el"; }
369
- static get watchers() {
370
- return [{
371
- "propName": "checked",
372
- "methodName": "onCheckedChange"
373
- }];
374
- }
375
- }
376
- //# sourceMappingURL=xv-checkbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-checkbox.js","sourceRoot":"","sources":["../../../src/components/xv-checkbox/xv-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AASrG,MAAM,OAAO,UAAU;IA4DrB;;QAtDA;;WAEG;QACqC,YAAO,GAAY,KAAK,CAAC;QACjE;;WAEG;QACsB,kBAAa,GAAY,KAAK,CAAC;QACxD;;WAEG;QACsB,aAAQ,GAAY,KAAK,CAAC;QAKnD;;WAEG;QACsB,UAAK,GAAW,IAAI,CAAC;QAC9C;;WAEG;QACsB,aAAQ,GAAY,KAAK,CAAC;QACnD;;WAEG;QACsB,YAAO,GAAY,KAAK,CAAC;QASzC,aAAQ,GAAY,KAAK,CAAC;QAmC3B,YAAO,GAAG,CAAC,CAAQ,EAAE,EAAE;YAC7B,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;YAC9B,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC,CAAC;QAEM,aAAQ,GAAG,CAAC,CAAQ,EAAE,EAAE;YAC9B,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;YAC9B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Element, Prop, State, Event, EventEmitter, Watch, Host } from '@stencil/core';\nimport { SIZE_VAR } from '../../types/enum';\n\n@Component({\n tag: 'xv-checkbox-v2',\n styleUrl: 'xv-checkbox.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class XvCheckbox {\n private inputEl: HTMLInputElement;\n private internals: ElementInternals;\n\n @Element() el!: HTMLElement;\n\n /**\n * Default checked status\n */\n @Prop({ reflect: true, mutable: true }) checked: boolean = false;\n /**\n * Using for forms\n */\n @Prop({ reflect: true }) indeterminate: boolean = false;\n /**\n * Disabled status\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n /**\n * Input name\n */\n @Prop({ reflect: true }) name: string;\n /**\n * Input value\n */\n @Prop({ reflect: true }) value: string = 'on';\n /**\n * The same like default checkbox prop\n */\n @Prop({ reflect: true }) required: boolean = false;\n /**\n * Change checkmark icon to minus\n */\n @Prop({ reflect: true }) partial: boolean = false;\n /**\n * Can be used like property or like slot\n */\n @Prop() label: string;\n\n @Prop({ reflect: true }) size?: SIZE_VAR;\n @Prop({ reflect: true }) error?: string | boolean;\n\n @State() hasFocus: boolean = false;\n /**\n * event 'onEventChange'\n */\n @Event({ eventName: 'eventChange' }) changeEvent: EventEmitter<boolean>;\n /**\n * event 'onEventInput'\n */\n @Event({ eventName: 'eventInput' }) inputEvent: EventEmitter<boolean>;\n /**\n * event 'onEventFocus'\n */\n @Event({ eventName: 'eventFocus' }) focusEvent: EventEmitter<void>;\n /**\n * event 'onEventBlur'\n */\n @Event({ eventName: 'eventBlur' }) blurEvent: EventEmitter<void>;\n\n constructor() {\n this.internals = (this.el as any).attachInternals?.() || {};\n }\n\n connectedCallback() {\n if (this.internals?.setFormValue) {\n this.internals.setFormValue(this.checked ? this.value : null);\n }\n }\n\n @Watch('checked')\n onCheckedChange(newValue: boolean) {\n if (this.internals?.setFormValue) {\n this.internals.setFormValue(newValue ? this.value : null);\n }\n }\n\n private onInput = (e: Event) => {\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n this.inputEvent.emit(this.checked);\n };\n\n private onChange = (e: Event) => {\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n this.changeEvent.emit(this.checked);\n };\n\n private onFocus = () => {\n this.hasFocus = true;\n this.focusEvent.emit();\n };\n\n private onBlur = () => {\n this.hasFocus = false;\n this.blurEvent.emit();\n };\n\n render() {\n return (\n <Host>\n <label class={{ 'xv-checkbox': true, disabled: this.disabled }}>\n <input\n ref={el => (this.inputEl = el)}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n indeterminate={this.indeterminate}\n onInput={this.onInput}\n onChange={this.onChange}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n />\n <span class={`checkmark ${this.partial ? 'checkmark-partial' : ''}`} />\n <div class=\"label\">\n <slot>{this.label}</slot>\n </div>\n </label>\n <slot name=\"info\" />\n {!!this.error && <span class=\"error\">{this.error}</span>}\n </Host>\n );\n }\n\n componentDidLoad() {\n if (this.indeterminate) {\n this.inputEl.indeterminate = true;\n }\n }\n\n componentDidUpdate() {\n if (this.inputEl) {\n this.inputEl.indeterminate = this.indeterminate;\n }\n }\n\n formResetCallback() {\n this.checked = false;\n }\n\n formStateRestoreCallback(state: string) {\n this.checked = state === this.value;\n }\n}\n"]}
@@ -1,60 +0,0 @@
1
- :host {
2
- font-family: var(--ff-body, inherit);
3
- }
4
-
5
- :host(.xv-link_inline) {
6
- display: inline-block;
7
- }
8
- :host(.xv-link_inline) .xv-link {
9
- text-decoration-line: underline;
10
- text-decoration-style: solid;
11
- text-decoration-skip-ink: none;
12
- text-decoration-thickness: auto;
13
- text-underline-offset: auto;
14
- text-underline-position: from-font;
15
- }
16
-
17
- :host(.xv-link_standalone) {
18
- display: block;
19
- }
20
- :host(.xv-link_standalone) .xv-link {
21
- text-decoration-line: none;
22
- }
23
-
24
- .xv-link {
25
- display: inline-flex;
26
- gap: 8px;
27
- align-items: center;
28
- color: var(--link-primary);
29
- font-family: var(--ff-body);
30
- font-style: normal;
31
- font-weight: 400;
32
- transition: color 200ms ease-in-out;
33
- }
34
- .xv-link:active {
35
- color: var(--text-primary);
36
- }
37
- .xv-link:visited {
38
- color: var(--link-visted);
39
- }
40
- .xv-link:hover {
41
- color: var(--link-primary-hover);
42
- cursor: pointer;
43
- }
44
- .xv-link:disabled, .xv-link_disabled, .xv-link::part(disabled) {
45
- color: var(--text-disabled);
46
- pointer-events: none;
47
- cursor: initial;
48
- }
49
- .xv-link.sm {
50
- font-size: var(--fz-sm);
51
- line-height: 137.5%;
52
- }
53
- .xv-link.md {
54
- font-size: var(--fz-md);
55
- line-height: 128.571%;
56
- }
57
- .xv-link.lg {
58
- font-size: var(--fz-lg);
59
- line-height: 133.333%;
60
- }
@@ -1,132 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- export class XvLink {
3
- constructor() {
4
- this.disabled = false;
5
- this.size = 'md';
6
- this.variant = 'inline';
7
- }
8
- preventLinkHandler(e) {
9
- if (!this.disabled)
10
- return;
11
- e.preventDefault();
12
- e.stopPropagation();
13
- }
14
- render() {
15
- return (h(Host, { key: 'd67fa14d10c47ab7c0e3b006f51b1d376f290715', class: `xv-link_${this.variant}` }, h("a", { key: 'abb46cc5fd9f43fa52b0e24b7126fd0cb0d521ca', href: this.href, onClick: this.preventLinkHandler.bind(this), class: `xv-link ${this.disabled ? 'xv-link_disabled' : ''} ${this.size}`, target: this.target }, h("slot", { key: '55ef3b6ede0521719257218092b58b43dedb3e6e', name: "icon-left" }), h("slot", { key: 'bb62dd7d472415956493c97db3df8a61dbd0dbf6' }), h("slot", { key: '61f350ff076285dc83c630c4bb7dc5b19526b7c3', name: "icon-right" }))));
16
- }
17
- static get is() { return "xv-link-v2"; }
18
- static get encapsulation() { return "shadow"; }
19
- static get originalStyleUrls() {
20
- return {
21
- "$": ["xv-link.scss"]
22
- };
23
- }
24
- static get styleUrls() {
25
- return {
26
- "$": ["xv-link.css"]
27
- };
28
- }
29
- static get properties() {
30
- return {
31
- "href": {
32
- "type": "string",
33
- "mutable": false,
34
- "complexType": {
35
- "original": "string",
36
- "resolved": "string",
37
- "references": {}
38
- },
39
- "required": false,
40
- "optional": false,
41
- "docs": {
42
- "tags": [],
43
- "text": ""
44
- },
45
- "getter": false,
46
- "setter": false,
47
- "attribute": "href",
48
- "reflect": false
49
- },
50
- "target": {
51
- "type": "string",
52
- "mutable": false,
53
- "complexType": {
54
- "original": "'_self' | '_blank' | '_parent' | '_top'",
55
- "resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\"",
56
- "references": {}
57
- },
58
- "required": false,
59
- "optional": false,
60
- "docs": {
61
- "tags": [],
62
- "text": ""
63
- },
64
- "getter": false,
65
- "setter": false,
66
- "attribute": "target",
67
- "reflect": false
68
- },
69
- "disabled": {
70
- "type": "boolean",
71
- "mutable": false,
72
- "complexType": {
73
- "original": "boolean",
74
- "resolved": "boolean",
75
- "references": {}
76
- },
77
- "required": false,
78
- "optional": false,
79
- "docs": {
80
- "tags": [],
81
- "text": ""
82
- },
83
- "getter": false,
84
- "setter": false,
85
- "attribute": "disabled",
86
- "reflect": false,
87
- "defaultValue": "false"
88
- },
89
- "size": {
90
- "type": "string",
91
- "mutable": false,
92
- "complexType": {
93
- "original": "'sm' | 'md' | 'lg'",
94
- "resolved": "\"lg\" | \"md\" | \"sm\"",
95
- "references": {}
96
- },
97
- "required": false,
98
- "optional": false,
99
- "docs": {
100
- "tags": [],
101
- "text": ""
102
- },
103
- "getter": false,
104
- "setter": false,
105
- "attribute": "size",
106
- "reflect": false,
107
- "defaultValue": "'md'"
108
- },
109
- "variant": {
110
- "type": "string",
111
- "mutable": false,
112
- "complexType": {
113
- "original": "'standalone' | 'inline'",
114
- "resolved": "\"inline\" | \"standalone\"",
115
- "references": {}
116
- },
117
- "required": false,
118
- "optional": false,
119
- "docs": {
120
- "tags": [],
121
- "text": ""
122
- },
123
- "getter": false,
124
- "setter": false,
125
- "attribute": "variant",
126
- "reflect": false,
127
- "defaultValue": "'inline'"
128
- }
129
- };
130
- }
131
- }
132
- //# sourceMappingURL=xv-link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-link.js","sourceRoot":"","sources":["../../../src/components/xv-link/xv-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,MAAM;IALnB;QAQU,aAAQ,GAAY,KAAK,CAAC;QAC1B,SAAI,GAAuB,IAAI,CAAC;QAChC,YAAO,GAA4B,QAAQ,CAAC;KA2BrD;IAzBC,kBAAkB,CAAC,CAAe;QAChC,IAAI,CAAC,IAAI,CAAC,QAAQ;YAAE,OAAO;QAE3B,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,eAAe,EAAE,CAAC;IACtB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,WAAW,IAAI,CAAC,OAAO,EAAE;YACpC,0DACE,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,EAC3C,KAAK,EAAE,WAAW,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE,EACxE,MAAM,EAAE,IAAI,CAAC,MAAM;gBAEnB,6DAAM,IAAI,EAAC,WAAW,GAAQ;gBAE9B,8DAAa;gBAEb,6DAAM,IAAI,EAAC,YAAY,GAAQ,CAC7B,CACC,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xv-link-v2',\n styleUrl: 'xv-link.scss',\n shadow: true,\n})\nexport class XvLink {\n @Prop() href: string;\n @Prop() target: '_self' | '_blank' | '_parent' | '_top';\n @Prop() disabled: boolean = false;\n @Prop() size: 'sm' | 'md' | 'lg' = 'md';\n @Prop() variant: 'standalone' | 'inline' = 'inline';\n\n preventLinkHandler(e: PointerEvent) {\n if (!this.disabled) return;\n\n e.preventDefault();\n e.stopPropagation();\n }\n\n render() {\n return (\n <Host class={`xv-link_${this.variant}`}>\n <a\n href={this.href}\n onClick={this.preventLinkHandler.bind(this)}\n class={`xv-link ${this.disabled ? 'xv-link_disabled' : ''} ${this.size}`}\n target={this.target}\n >\n <slot name=\"icon-left\"></slot>\n\n <slot></slot>\n\n <slot name=\"icon-right\"></slot>\n </a>\n </Host>\n );\n }\n}\n"]}
@@ -1,7 +0,0 @@
1
- :host {
2
- display: flex;
3
- align-items: flex-start;
4
- justify-content: space-between;
5
- font-family: var(--ff-body, inherit);
6
- overflow-x: auto;
7
- }
@@ -1,70 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- export class XvProgressIndicator {
3
- constructor() {
4
- this.progress = 0;
5
- }
6
- // Update 'xv-progress-indicator-item' done status
7
- updateChildItems() {
8
- const items = this.el.children;
9
- const itemsCount = this.el.childElementCount;
10
- const progressPerItem = 100 / itemsCount;
11
- if (!items.length || !itemsCount)
12
- return;
13
- Array.from(items).forEach((item, index) => {
14
- const itemProgress = (index + 1) * progressPerItem;
15
- const done = this.progress >= itemProgress;
16
- item.setAttribute('done', done ? 'true' : 'false');
17
- });
18
- }
19
- // Load initial done status
20
- componentDidLoad() {
21
- this.updateChildItems();
22
- }
23
- render() {
24
- return (h(Host, { key: '11ddf0d4e355c52e007b1b0705cb5129edf0acad', class: "xv-progress-indicator" }, h("slot", { key: 'c90e8f5d63fd15d8d70c8f0e4ff221dc723d5654' })));
25
- }
26
- static get is() { return "xv-progress-indicator-v2"; }
27
- static get encapsulation() { return "shadow"; }
28
- static get originalStyleUrls() {
29
- return {
30
- "$": ["xv-progress-indicator.scss"]
31
- };
32
- }
33
- static get styleUrls() {
34
- return {
35
- "$": ["xv-progress-indicator.css"]
36
- };
37
- }
38
- static get properties() {
39
- return {
40
- "progress": {
41
- "type": "number",
42
- "mutable": false,
43
- "complexType": {
44
- "original": "number",
45
- "resolved": "number",
46
- "references": {}
47
- },
48
- "required": false,
49
- "optional": false,
50
- "docs": {
51
- "tags": [],
52
- "text": ""
53
- },
54
- "getter": false,
55
- "setter": false,
56
- "attribute": "progress",
57
- "reflect": false,
58
- "defaultValue": "0"
59
- }
60
- };
61
- }
62
- static get elementRef() { return "el"; }
63
- static get watchers() {
64
- return [{
65
- "propName": "progress",
66
- "methodName": "updateChildItems"
67
- }];
68
- }
69
- }
70
- //# sourceMappingURL=xv-progress-indicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xv-progress-indicator.js","sourceRoot":"","sources":["../../../src/components/xv-progress-indicator/xv-progress-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAOzE,MAAM,OAAO,mBAAmB;IALhC;QAOU,aAAQ,GAAW,CAAC,CAAC;KA8B9B;IA5BC,kDAAkD;IAElD,gBAAgB;QACd,MAAM,KAAK,GAAG,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC;QAC7C,MAAM,eAAe,GAAG,GAAG,GAAG,UAAU,CAAC;QAEzC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,UAAU;YAAE,OAAO;QAEzC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YACxC,MAAM,YAAY,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;YACnD,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,IAAI,YAAY,CAAC;YAC1C,IAAoB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;IACL,CAAC;IAED,2BAA2B;IAC3B,gBAAgB;QACd,IAAI,CAAC,gBAAgB,EAAE,CAAA;IACzB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,uBAAuB;YACjC,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Watch, Element } from '@stencil/core';\n\n@Component({\n tag: 'xv-progress-indicator-v2',\n styleUrl: 'xv-progress-indicator.scss',\n shadow: true,\n})\nexport class XvProgressIndicator {\n @Element() el: HTMLElement;\n @Prop() progress: number = 0;\n\n // Update 'xv-progress-indicator-item' done status\n @Watch('progress')\n updateChildItems() {\n const items = this.el.children;\n const itemsCount = this.el.childElementCount;\n const progressPerItem = 100 / itemsCount;\n\n if (!items.length || !itemsCount) return;\n\n Array.from(items).forEach((item, index) => {\n const itemProgress = (index + 1) * progressPerItem;\n const done = this.progress >= itemProgress;\n (item as HTMLElement).setAttribute('done', done ? 'true' : 'false');\n });\n }\n\n // Load initial done status\n componentDidLoad() {\n this.updateChildItems()\n }\n\n render() {\n return (\n <Host class=\"xv-progress-indicator\">\n <slot></slot>\n </Host>\n );\n }\n}\n"]}