xv-webcomponents 0.1.39 → 0.1.41

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 (103) hide show
  1. package/dist/cjs/{index-D41mMXvd.js → index-MLh9SbX2.js} +349 -8
  2. package/dist/cjs/index-MLh9SbX2.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{xv-accordion-v2_27.cjs.entry.js → xv-accordion-v2_33.cjs.entry.js} +2214 -87
  5. package/dist/cjs/xv-accordion-v2_33.cjs.entry.js.map +1 -0
  6. package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +1 -1
  7. package/dist/cjs/xv-webcomponents.cjs.js +3 -3
  8. package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
  9. package/dist/collection/collection-manifest.json +7 -1
  10. package/dist/collection/components/xv-button/xv-button-v2.css +136 -118
  11. package/dist/collection/components/xv-button/xv-button.js +132 -67
  12. package/dist/collection/components/xv-button/xv-button.js.map +1 -1
  13. package/dist/collection/components/xv-card/xv-card.js +1 -1
  14. package/dist/collection/components/xv-checkbox/xv-checkbox.css +3 -0
  15. package/dist/collection/components/xv-checkbox/xv-checkbox.js +1 -1
  16. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +30 -0
  17. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +80 -0
  18. package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +1 -0
  19. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +4 -0
  20. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +42 -0
  21. package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +1 -0
  22. package/dist/collection/components/xv-data-table/xv-data-table.css +51 -0
  23. package/dist/collection/components/xv-data-table/xv-data-table.js +130 -0
  24. package/dist/collection/components/xv-data-table/xv-data-table.js.map +1 -0
  25. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +1 -1
  26. package/dist/collection/components/xv-dropdown/xv-dropdown.css +6 -1
  27. package/dist/collection/components/xv-dropdown/xv-dropdown.js +20 -1
  28. package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -1
  29. package/dist/collection/components/xv-file-uploader/_vars.js +6 -0
  30. package/dist/collection/components/xv-file-uploader/_vars.js.map +1 -0
  31. package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +136 -0
  32. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +448 -0
  33. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +1 -0
  34. package/dist/collection/components/xv-footer/xv-footer.js +1 -1
  35. package/dist/collection/components/xv-header/xv-header.js +1 -1
  36. package/dist/collection/components/xv-link/xv-link.js +1 -1
  37. package/dist/collection/components/xv-modal/xv-modal.js +1 -1
  38. package/dist/collection/components/xv-notification/xv-notification.css +1 -0
  39. package/dist/collection/components/xv-notification/xv-notification.js +1 -1
  40. package/dist/collection/components/xv-number-input/xv-number-input.css +128 -0
  41. package/dist/collection/components/xv-number-input/xv-number-input.js +373 -0
  42. package/dist/collection/components/xv-number-input/xv-number-input.js.map +1 -0
  43. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +1 -1
  44. package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +1 -1
  45. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
  46. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
  47. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
  48. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
  49. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
  50. package/dist/collection/components/xv-table/xv-table.js +1 -1
  51. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
  52. package/dist/collection/components/xv-tabs/xv-tabs.js +1 -2
  53. package/dist/collection/components/xv-tabs/xv-tabs.js.map +1 -1
  54. package/dist/collection/components/xv-tag/xv-tag.js +1 -1
  55. package/dist/collection/components/xv-text-input/xv-text-input.css +110 -89
  56. package/dist/collection/components/xv-text-input/xv-text-input.js +113 -80
  57. package/dist/collection/components/xv-text-input/xv-text-input.js.map +1 -1
  58. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +95 -0
  59. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +201 -0
  60. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +1 -0
  61. package/dist/collection/components/xv-tooltip/xv-tooltip.css +31 -147
  62. package/dist/collection/components/xv-tooltip/xv-tooltip.js +59 -34
  63. package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -1
  64. package/dist/esm/{index-Datpns0U.js → index-DLYJiP99.js} +349 -8
  65. package/dist/esm/index-DLYJiP99.js.map +1 -0
  66. package/dist/esm/loader.js +3 -3
  67. package/dist/esm/{xv-accordion-v2_27.entry.js → xv-accordion-v2_33.entry.js} +2209 -88
  68. package/dist/esm/xv-accordion-v2_33.entry.js.map +1 -0
  69. package/dist/esm/xv-breadcrumbs-v2.entry.js +1 -1
  70. package/dist/esm/xv-webcomponents.js +4 -4
  71. package/dist/esm/xv-webcomponents.js.map +1 -1
  72. package/dist/types/components/xv-button/xv-button.d.ts +21 -12
  73. package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +6 -0
  74. package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +4 -0
  75. package/dist/types/components/xv-data-table/xv-data-table.d.ts +9 -0
  76. package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +1 -0
  77. package/dist/types/components/xv-file-uploader/_vars.d.ts +4 -0
  78. package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +36 -0
  79. package/dist/types/components/xv-number-input/xv-number-input.d.ts +26 -0
  80. package/dist/types/components/xv-text-input/xv-text-input.d.ts +10 -11
  81. package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +19 -0
  82. package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +10 -8
  83. package/dist/types/components.d.ts +605 -49
  84. package/dist/xv-webcomponents/{p-054f5d59.entry.js → p-5b63a259.entry.js} +2 -2
  85. package/dist/xv-webcomponents/p-DLYJiP99.js +3 -0
  86. package/dist/xv-webcomponents/p-DLYJiP99.js.map +1 -0
  87. package/dist/xv-webcomponents/p-ec72208c.entry.js +2 -0
  88. package/dist/xv-webcomponents/p-ec72208c.entry.js.map +1 -0
  89. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
  90. package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
  91. package/package.json +6 -4
  92. package/dist/cjs/index-D41mMXvd.js.map +0 -1
  93. package/dist/cjs/xv-accordion-v2_27.cjs.entry.js.map +0 -1
  94. package/dist/collection/components/xv-text-input/_vars.js +0 -7
  95. package/dist/collection/components/xv-text-input/_vars.js.map +0 -1
  96. package/dist/esm/index-Datpns0U.js.map +0 -1
  97. package/dist/esm/xv-accordion-v2_27.entry.js.map +0 -1
  98. package/dist/types/components/xv-text-input/_vars.d.ts +0 -5
  99. package/dist/xv-webcomponents/p-6a4cc790.entry.js +0 -2
  100. package/dist/xv-webcomponents/p-6a4cc790.entry.js.map +0 -1
  101. package/dist/xv-webcomponents/p-Datpns0U.js +0 -3
  102. package/dist/xv-webcomponents/p-Datpns0U.js.map +0 -1
  103. /package/dist/xv-webcomponents/{p-054f5d59.entry.js.map → p-5b63a259.entry.js.map} +0 -0
@@ -0,0 +1,128 @@
1
+ :host {
2
+ display: inline-block;
3
+ text-align: left;
4
+ }
5
+ :host .control_label {
6
+ display: block;
7
+ margin-bottom: var(--spacing-03);
8
+ color: var(--text-secondary, #515151);
9
+ font-family: var(--ff-body, Tahoma);
10
+ font-size: var(--fz-sm, 12px);
11
+ font-style: normal;
12
+ font-weight: 700;
13
+ line-height: var(--fz-md);
14
+ letter-spacing: 0.32px;
15
+ }
16
+ :host .control_input {
17
+ display: flex;
18
+ border: 1px solid var(--border-subtle-01);
19
+ outline: 2px solid transparent;
20
+ background-color: transparent;
21
+ border-radius: 3px;
22
+ transition: 250ms ease-in-out border-color, 250ms ease-in-out outline-color;
23
+ }
24
+ :host .control_input:hover {
25
+ border-color: var(--border-subtle-selected-01);
26
+ }
27
+ :host .control_input:focus-within {
28
+ outline-color: var(--focus);
29
+ }
30
+ :host .control_input.error {
31
+ outline-color: var(--support-error);
32
+ }
33
+ :host .control_input.readonly {
34
+ border-radius: 0;
35
+ border-top-width: 0;
36
+ border-left-width: 0;
37
+ border-right-width: 0;
38
+ outline-color: transparent;
39
+ }
40
+ :host .control_input input[type=number] {
41
+ flex: 1;
42
+ border: none;
43
+ outline: none;
44
+ -moz-appearance: textfield;
45
+ background-color: transparent;
46
+ margin: 0;
47
+ padding-block: 0;
48
+ padding-inline: var(--spacing-05);
49
+ box-sizing: border-box;
50
+ color: var(--text-primary);
51
+ min-width: 20px;
52
+ font-style: normal;
53
+ font-weight: 400;
54
+ letter-spacing: 0.16px;
55
+ }
56
+ :host .control_input input[type=number]::-webkit-inner-spin-button, :host .control_input input[type=number]::-webkit-outer-spin-button {
57
+ -webkit-appearance: none;
58
+ margin: 0;
59
+ }
60
+ :host .control_input__icons {
61
+ display: inline-flex;
62
+ align-items: stretch;
63
+ column-gap: 2px;
64
+ }
65
+ :host .control_input__icons .status-icon {
66
+ display: inline-flex;
67
+ align-items: center;
68
+ align-self: center;
69
+ font-size: 1.35em;
70
+ }
71
+ :host .control_input__icons .status-icon.error {
72
+ background-color: var(--support-error);
73
+ color: white;
74
+ width: 16px;
75
+ height: 16px;
76
+ border-radius: 8px;
77
+ font-size: 12px;
78
+ font-weight: bold;
79
+ align-items: center;
80
+ justify-content: center;
81
+ }
82
+ :host .control_input__icons .status-icon.warning {
83
+ color: var(--support-warning);
84
+ }
85
+ :host .control_input__icons hr {
86
+ border: none;
87
+ outline: none;
88
+ width: 2px;
89
+ height: 60%;
90
+ align-self: center;
91
+ background-color: var(--border-subtle-01);
92
+ display: inline-flex;
93
+ }
94
+ :host .message {
95
+ margin: var(--spacing-02) 0 0;
96
+ color: var(--text-helper, #646464);
97
+ font-size: var(--fz-sm, 12px);
98
+ font-style: normal;
99
+ font-weight: 400;
100
+ line-height: var(--fz-md, 16px);
101
+ letter-spacing: 0.32px;
102
+ }
103
+ :host .message.error {
104
+ color: var(--text-error);
105
+ }
106
+ :host .message.warning {
107
+ color: var(--text-secondary, #515151);
108
+ }
109
+
110
+ :host(.disabled) {
111
+ cursor: not-allowed;
112
+ }
113
+ :host(.disabled) .control_label,
114
+ :host(.disabled) .control_input input[type=number],
115
+ :host(.disabled) .control_input input[type=number]::placeholder,
116
+ :host(.disabled) .message:not(.error) {
117
+ color: var(--text-disabled);
118
+ cursor: not-allowed;
119
+ }
120
+ :host(.disabled) .control_input__icons,
121
+ :host(.disabled) .message.error {
122
+ opacity: 0.5;
123
+ cursor: not-allowed;
124
+ }
125
+
126
+ :host([block]) {
127
+ display: block;
128
+ }
@@ -0,0 +1,373 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { SIZE_VAR } from "../../types/enum";
3
+ export class XvNumberInput {
4
+ constructor() {
5
+ this.step = 10;
6
+ this.loading = false;
7
+ this.size = SIZE_VAR.MD;
8
+ this.increment = () => {
9
+ const newValue = (this.value || 0) + this.step;
10
+ if (this.max !== undefined && newValue > this.max)
11
+ return;
12
+ this.setValue(newValue);
13
+ };
14
+ this.decrement = () => {
15
+ const newValue = (this.value || 0) - this.step;
16
+ if (this.min !== undefined && newValue < this.min)
17
+ return;
18
+ this.setValue(newValue);
19
+ };
20
+ this.handleInput = (event) => {
21
+ const input = event.target;
22
+ const num = parseFloat(input.value) || 0;
23
+ if (isNaN(num))
24
+ return;
25
+ this.setValue(num);
26
+ };
27
+ }
28
+ setValue(value) {
29
+ var _a;
30
+ this.value = value;
31
+ this.internals.setFormValue((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString());
32
+ this.valueChange.emit(this.value);
33
+ }
34
+ render() {
35
+ return (h(Host, { key: '110699b94aabcbb96f29a63a893f6fd0c4c2724b', class: { disabled: !!this.disabled } }, h("label", { key: '05c864b467c85fd2c35605b2c4d35e158345df19', class: "control" }, this.label && h("span", { key: 'ee1f92578bd90677b54d49154286ff83a1e0106c', class: "control_label" }, this.label), h("div", { key: 'a4745ad74f55576f06587f162baf581373e630a6', class: {
36
+ 'control_input': true,
37
+ readonly: !!this.readonly,
38
+ error: !!this.error,
39
+ warning: !!this.warning
40
+ } }, h("input", { key: 'b797225274e669683326b747e7c4a3f7dadd618d', type: "number", placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, onInput: this.handleInput, name: this.name, min: this.min, max: this.max, step: this.step, value: this.value }), h("div", { key: '8f6632ad50ff3e2eb143f6e5d8f5897e86e65f9e', class: "control_input__icons" }, this.loading ? (h("xv-loader-v2", { size: SIZE_VAR.XS })) : !!this.error ? (h("span", { class: "status-icon error", "aria-hidden": "true" }, "!")) : !!this.warning ? (h("span", { class: "status-icon warning", "aria-hidden": "true" }, "\u26A0")) : null, h("xv-button-v2", { key: 'feb522703f489f47ef80cf50f513c4c13a8c4c9e', size: this.size, variant: "ghost", disabled: this.disabled || this.readonly, onClick: this.decrement, "aria-label": "Decrease" }, h("span", { key: '12be1db37508f37eb4f02e3e160a502918099fe4', slot: "icon-left", class: "status-icon" }, "\u2212")), h("hr", { key: '7b92c8e9f6123064f909a8263e26bb08f5557f47' }), h("xv-button-v2", { key: '0c6bc01f56b2e95e7f493b9183b2dda86311e030', size: this.size, variant: "ghost", disabled: this.disabled || this.readonly, onClick: this.increment, "aria-label": "Increase" }, h("span", { key: '8e72d1a977743731c5cd5a186e014510fc046839', slot: "icon-left", class: "status-icon" }, "+"))))), this.helper && h("p", { key: '09a014e9b38ce4f3a8e98722401234642d57b51f', class: "message" }, this.helper), typeof this.error === 'string' ? (h("p", { class: "message error" }, this.error)) : typeof this.warning === 'string' ? (h("p", { class: "message warning" }, this.warning)) : null));
41
+ }
42
+ static get is() { return "xv-number-input-v2"; }
43
+ static get encapsulation() { return "shadow"; }
44
+ static get formAssociated() { return true; }
45
+ static get originalStyleUrls() {
46
+ return {
47
+ "$": ["xv-number-input.scss"]
48
+ };
49
+ }
50
+ static get styleUrls() {
51
+ return {
52
+ "$": ["xv-number-input.css"]
53
+ };
54
+ }
55
+ static get properties() {
56
+ return {
57
+ "label": {
58
+ "type": "string",
59
+ "attribute": "label",
60
+ "mutable": false,
61
+ "complexType": {
62
+ "original": "string",
63
+ "resolved": "string",
64
+ "references": {}
65
+ },
66
+ "required": false,
67
+ "optional": false,
68
+ "docs": {
69
+ "tags": [],
70
+ "text": ""
71
+ },
72
+ "getter": false,
73
+ "setter": false,
74
+ "reflect": false
75
+ },
76
+ "placeholder": {
77
+ "type": "string",
78
+ "attribute": "placeholder",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "string",
82
+ "resolved": "string",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": true,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": ""
90
+ },
91
+ "getter": false,
92
+ "setter": false,
93
+ "reflect": true
94
+ },
95
+ "name": {
96
+ "type": "string",
97
+ "attribute": "name",
98
+ "mutable": false,
99
+ "complexType": {
100
+ "original": "string",
101
+ "resolved": "string",
102
+ "references": {}
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": ""
109
+ },
110
+ "getter": false,
111
+ "setter": false,
112
+ "reflect": true
113
+ },
114
+ "value": {
115
+ "type": "number",
116
+ "attribute": "value",
117
+ "mutable": true,
118
+ "complexType": {
119
+ "original": "number",
120
+ "resolved": "number",
121
+ "references": {}
122
+ },
123
+ "required": false,
124
+ "optional": false,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": ""
128
+ },
129
+ "getter": false,
130
+ "setter": false,
131
+ "reflect": true
132
+ },
133
+ "helper": {
134
+ "type": "string",
135
+ "attribute": "helper",
136
+ "mutable": false,
137
+ "complexType": {
138
+ "original": "string",
139
+ "resolved": "string",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": true,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": ""
147
+ },
148
+ "getter": false,
149
+ "setter": false,
150
+ "reflect": false
151
+ },
152
+ "error": {
153
+ "type": "any",
154
+ "attribute": "error",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "string | boolean",
158
+ "resolved": "boolean | string",
159
+ "references": {}
160
+ },
161
+ "required": false,
162
+ "optional": true,
163
+ "docs": {
164
+ "tags": [],
165
+ "text": ""
166
+ },
167
+ "getter": false,
168
+ "setter": false,
169
+ "reflect": false
170
+ },
171
+ "warning": {
172
+ "type": "any",
173
+ "attribute": "warning",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "string | boolean",
177
+ "resolved": "boolean | string",
178
+ "references": {}
179
+ },
180
+ "required": false,
181
+ "optional": true,
182
+ "docs": {
183
+ "tags": [],
184
+ "text": ""
185
+ },
186
+ "getter": false,
187
+ "setter": false,
188
+ "reflect": false
189
+ },
190
+ "step": {
191
+ "type": "number",
192
+ "attribute": "step",
193
+ "mutable": false,
194
+ "complexType": {
195
+ "original": "number",
196
+ "resolved": "number",
197
+ "references": {}
198
+ },
199
+ "required": false,
200
+ "optional": false,
201
+ "docs": {
202
+ "tags": [],
203
+ "text": ""
204
+ },
205
+ "getter": false,
206
+ "setter": false,
207
+ "reflect": false,
208
+ "defaultValue": "10"
209
+ },
210
+ "max": {
211
+ "type": "number",
212
+ "attribute": "max",
213
+ "mutable": false,
214
+ "complexType": {
215
+ "original": "number",
216
+ "resolved": "number",
217
+ "references": {}
218
+ },
219
+ "required": false,
220
+ "optional": true,
221
+ "docs": {
222
+ "tags": [],
223
+ "text": ""
224
+ },
225
+ "getter": false,
226
+ "setter": false,
227
+ "reflect": false
228
+ },
229
+ "min": {
230
+ "type": "number",
231
+ "attribute": "min",
232
+ "mutable": false,
233
+ "complexType": {
234
+ "original": "number",
235
+ "resolved": "number",
236
+ "references": {}
237
+ },
238
+ "required": false,
239
+ "optional": true,
240
+ "docs": {
241
+ "tags": [],
242
+ "text": ""
243
+ },
244
+ "getter": false,
245
+ "setter": false,
246
+ "reflect": false
247
+ },
248
+ "readonly": {
249
+ "type": "boolean",
250
+ "attribute": "readonly",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "boolean",
254
+ "resolved": "boolean",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": true,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": ""
262
+ },
263
+ "getter": false,
264
+ "setter": false,
265
+ "reflect": false
266
+ },
267
+ "disabled": {
268
+ "type": "boolean",
269
+ "attribute": "disabled",
270
+ "mutable": false,
271
+ "complexType": {
272
+ "original": "boolean",
273
+ "resolved": "boolean",
274
+ "references": {}
275
+ },
276
+ "required": false,
277
+ "optional": true,
278
+ "docs": {
279
+ "tags": [],
280
+ "text": ""
281
+ },
282
+ "getter": false,
283
+ "setter": false,
284
+ "reflect": false
285
+ },
286
+ "loading": {
287
+ "type": "boolean",
288
+ "attribute": "loading",
289
+ "mutable": false,
290
+ "complexType": {
291
+ "original": "boolean",
292
+ "resolved": "boolean",
293
+ "references": {}
294
+ },
295
+ "required": false,
296
+ "optional": false,
297
+ "docs": {
298
+ "tags": [],
299
+ "text": ""
300
+ },
301
+ "getter": false,
302
+ "setter": false,
303
+ "reflect": false,
304
+ "defaultValue": "false"
305
+ },
306
+ "block": {
307
+ "type": "boolean",
308
+ "attribute": "block",
309
+ "mutable": false,
310
+ "complexType": {
311
+ "original": "boolean",
312
+ "resolved": "boolean",
313
+ "references": {}
314
+ },
315
+ "required": false,
316
+ "optional": true,
317
+ "docs": {
318
+ "tags": [],
319
+ "text": ""
320
+ },
321
+ "getter": false,
322
+ "setter": false,
323
+ "reflect": false
324
+ },
325
+ "size": {
326
+ "type": "string",
327
+ "attribute": "size",
328
+ "mutable": false,
329
+ "complexType": {
330
+ "original": "SIZE_VAR",
331
+ "resolved": "SIZE_VAR.LG | SIZE_VAR.MD | SIZE_VAR.SM | SIZE_VAR.XL | SIZE_VAR.XS",
332
+ "references": {
333
+ "SIZE_VAR": {
334
+ "location": "import",
335
+ "path": "../../types/enum",
336
+ "id": "src/types/enum.ts::SIZE_VAR"
337
+ }
338
+ }
339
+ },
340
+ "required": false,
341
+ "optional": false,
342
+ "docs": {
343
+ "tags": [],
344
+ "text": ""
345
+ },
346
+ "getter": false,
347
+ "setter": false,
348
+ "reflect": true,
349
+ "defaultValue": "SIZE_VAR.MD"
350
+ }
351
+ };
352
+ }
353
+ static get events() {
354
+ return [{
355
+ "method": "valueChange",
356
+ "name": "valueChange",
357
+ "bubbles": true,
358
+ "cancelable": true,
359
+ "composed": true,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": ""
363
+ },
364
+ "complexType": {
365
+ "original": "number",
366
+ "resolved": "number",
367
+ "references": {}
368
+ }
369
+ }];
370
+ }
371
+ static get attachInternalsMemberName() { return "internals"; }
372
+ }
373
+ //# sourceMappingURL=xv-number-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xv-number-input.js","sourceRoot":"","sources":["../../../src/components/xv-number-input/xv-number-input.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter, AttachInternals } from '@stencil/core';\nimport { SIZE_VAR } from '../../types/enum';\n\n@Component({\n tag: 'xv-number-input-v2',\n styleUrl: 'xv-number-input.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class XvNumberInput {\n @Prop() label: string;\n @Prop({ reflect: true }) placeholder?: string;\n @Prop({ reflect: true }) name: string;\n @Prop({ reflect: true, mutable: true }) value: number;\n @Event({ eventName: 'valueChange' }) valueChange: EventEmitter<number>;\n @Prop() helper?: string;\n @Prop() error?: string | boolean;\n @Prop() warning?: string | boolean;\n @Prop() step: number = 10;\n @Prop() max?: number;\n @Prop() min?: number;\n @Prop() readonly?: boolean;\n @Prop() disabled?: boolean;\n @Prop() loading: boolean = false;\n @Prop() block?: boolean;\n @Prop({ reflect: true }) size: SIZE_VAR = SIZE_VAR.MD;\n\n @AttachInternals() internals: ElementInternals;\n\n private increment = () => {\n const newValue = (this.value || 0) + this.step;\n if (this.max !== undefined && newValue > this.max) return;\n this.setValue(newValue)\n };\n\n private decrement = () => {\n const newValue = (this.value || 0) - this.step;\n if (this.min !== undefined && newValue < this.min) return;\n this.setValue(newValue)\n };\n\n private handleInput = (event: Event) => {\n const input = event.target as HTMLInputElement;\n const num = parseFloat(input.value) || 0;\n\n if (isNaN(num)) return;\n\n this.setValue(num);\n };\n\n private setValue(value: number) {\n this.value = value;\n this.internals.setFormValue(this.value?.toString());\n this.valueChange.emit(this.value);\n }\n\n render() {\n return (\n <Host class={{ disabled: !!this.disabled }}>\n <label class=\"control\">\n {this.label && <span class=\"control_label\">{this.label}</span>}\n\n <div class={{\n 'control_input': true,\n readonly: !!this.readonly,\n error: !!this.error,\n warning: !!this.warning\n }}>\n <input\n type=\"number\"\n placeholder={this.placeholder}\n disabled={this.disabled}\n readonly={this.readonly}\n onInput={this.handleInput}\n name={this.name}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.value}\n />\n\n <div class=\"control_input__icons\">\n {this.loading ? (\n <xv-loader-v2 size={SIZE_VAR.XS} />\n ) : !!this.error ? (\n <span class=\"status-icon error\" aria-hidden=\"true\">!</span>\n ) : !!this.warning ? (\n <span class=\"status-icon warning\" aria-hidden=\"true\">⚠</span>\n ) : null}\n <xv-button-v2\n size={this.size}\n variant=\"ghost\"\n disabled={this.disabled || this.readonly}\n onClick={this.decrement}\n aria-label=\"Decrease\"\n ><span slot=\"icon-left\" class=\"status-icon\">−</span></xv-button-v2>\n <hr />\n <xv-button-v2\n size={this.size}\n variant=\"ghost\"\n disabled={this.disabled || this.readonly}\n onClick={this.increment}\n aria-label=\"Increase\"\n ><span slot=\"icon-left\" class=\"status-icon\">+</span></xv-button-v2>\n </div>\n </div>\n </label>\n\n\n {this.helper && <p class=\"message\">{this.helper}</p>}\n {typeof this.error === 'string' ? (\n <p class=\"message error\">{this.error}</p>\n ) : typeof this.warning === 'string' ? (\n <p class=\"message warning\">{this.warning}</p>\n ) : null}\n </Host>\n );\n }\n}\n"]}
@@ -11,7 +11,7 @@ export class XvOverflowMenuItem {
11
11
  this.itemClick.emit({ event, value: this.value });
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: 'e2cb692dfe47684c9ef1cb8cd9519126b98d3be3', class: "xv-overflow-menu-item", role: "menuitem", disabled: this.disabled }, h("slot", { key: '7202537314f9992ef86f5db66a76234d749c9e96' })));
14
+ return (h(Host, { key: 'b77fdd436fb29e1619c91dd9199496b712209978', class: "xv-overflow-menu-item", role: "menuitem", disabled: this.disabled }, h("slot", { key: '79ad627095559eaafc17c24658969bbe74ce200b' })));
15
15
  }
16
16
  static get is() { return "xv-overflow-menu-v2-item"; }
17
17
  static get encapsulation() { return "shadow"; }
@@ -48,7 +48,7 @@ export class XvOverflowMenu {
48
48
  }
49
49
  }
50
50
  render() {
51
- return (h(Host, { key: 'b375598d3169590a82225cc37f52c573bee30c9f', class: "xv-overflow-menu", size: this.size, role: "menu", tabindex: -1 }, h("button", { key: '693ff71c2c32b5eafe680701a519560d36aadf31', class: { btn: true, open: this.open }, onClick: this.onOpenToggle, disabled: this.disabled }, h("svg", { key: '23067a22dfbab57f4840bb31a46e18b311b58316', xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 128 512" }, h("path", { key: 'f3eeded9441704b3ec6fc378bb4518595684d1be', d: "M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z" }))), h("div", { key: '9b7abc36a3b00b02d654b9bf369630164fb25d19', class: { list: true, open: this.open, [`position-${this.position}`]: true } }, h("slot", { key: '4309141f86fb81e49438d033132bc460b7386c7a' }))));
51
+ return (h(Host, { key: '1dc9416f0d046119e11b2c99bb3eb6d333304ee0', class: "xv-overflow-menu", size: this.size, role: "menu", tabindex: -1 }, h("button", { key: 'df078f87e1b9b2e9fdb057f6186599f86873aa6f', class: { btn: true, open: this.open }, onClick: this.onOpenToggle, disabled: this.disabled }, h("svg", { key: 'd89ae23334072ed22358920a9a8e909c5572936b', xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 128 512" }, h("path", { key: '3a4aaf227ca86efbdf2655c34c8cc7dc05e55b21', d: "M64 368a48 48 0 1 0 0 96 48 48 0 1 0 0-96zm0-160a48 48 0 1 0 0 96 48 48 0 1 0 0-96zM112 96A48 48 0 1 0 16 96a48 48 0 1 0 96 0z" }))), h("div", { key: '8370f57fe6a9dc79ae90980f68b9ac91364bcdd1', class: { list: true, open: this.open, [`position-${this.position}`]: true } }, h("slot", { key: '8a40ab08790a23db858c8e5d393dbb555f7f8d52' }))));
52
52
  }
53
53
  componentDidLoad() {
54
54
  this.openChangeHandle();
@@ -5,7 +5,7 @@ export class XvProgressIndicatorItem {
5
5
  this.status = PROGRESS_ITEM_STATUS.NO_STARTED;
6
6
  }
7
7
  render() {
8
- return (h(Host, { key: '7ab9049e23319e40102861c273bcdbe50a007d47', status: this.status, class: { 'xv-progress-indicator-item': true } }, h("span", { key: 'b354a67c14cce7dfbd4dcc1ea5fbefc322e8387f', class: "line" }), h("span", { key: 'ac9328b00220e878f41601ed622b4bd72f1f4525', class: "icon" }, h("svg", { key: '72315a3e5bdbc53b9c9bad11d0fc664ccbc71dfa', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, h("path", { key: 'a2fd19444c84e59ff52a28e60b77bf8a1a304b0d', fill: "currentColor", d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }))), h("p", { key: '8a61ee0d9f5b7cb2d5ec3a3a95de9c6520da3438', class: "label" }, h("slot", { key: '597cc0cd7efb06d78070fdf087537db220784183' }))));
8
+ return (h(Host, { key: 'aa7a93c986dad88003765936698bd0a9b9ab69c9', status: this.status, class: { 'xv-progress-indicator-item': true } }, h("span", { key: '0858a4714f47c017768c565e97686edba8d01fac', class: "line" }), h("span", { key: 'a4984429a6fa6d24b102ff1f547e6b02060a2ace', class: "icon" }, h("svg", { key: 'aaafe9512fcbd04c6eb08df1cac3abe3a9672187', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, h("path", { key: 'e2016e50eea686b070bee9060ae08b428ac9166c', fill: "currentColor", d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }))), h("p", { key: '31231bac86472ec197f1f777fafa409c3be4f3fe', class: "label" }, h("slot", { key: '2aa765f1e87050f1398d31fbae3cfd1c79729bc4' }))));
9
9
  }
10
10
  static get is() { return "xv-progress-indicator-v2-item"; }
11
11
  static get encapsulation() { return "shadow"; }
@@ -56,7 +56,7 @@ export class XvProgressIndicator {
56
56
  this.updateChildItems();
57
57
  }
58
58
  render() {
59
- return (h(Host, { key: '5d3f317d147dd29f3e0a00064a2ca4a0a79f101d', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("slot", { key: '1e6a9d655861024aee5d8a4e4e159d5fd06250a8' })));
59
+ return (h(Host, { key: '3e05f1ba497e8c471d93122e6bce9da9520fb41e', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("slot", { key: 'dbefc5482792a6cbab611aef15e32709125b85b3' })));
60
60
  }
61
61
  static get is() { return "xv-progress-indicator-v2"; }
62
62
  static get encapsulation() { return "shadow"; }
@@ -22,7 +22,7 @@ export class XvTableCell {
22
22
  }
23
23
  ;
24
24
  render() {
25
- return (h(Host, { key: 'a43012499f2ab81a47702b6861fd39180729ce8d' }, h("slot", { key: 'bcb83a24979755ec0959e09e849dd8b9fa04a95b' })));
25
+ return (h(Host, { key: '49c2faf25ce05c90ba4813108cfe4fc73fa165ce' }, h("slot", { key: '885295db92236d22b675d3fdf40a68f828d3ca1a' })));
26
26
  }
27
27
  static get is() { return "xv-table-v2-cell"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -10,7 +10,7 @@ export class XvTableExpand {
10
10
  };
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: 'e1929797c81be1a2ea84916899d39da5d408e6bb' }, h("button", { key: 'd17ee91f88dcde48ccb2b1e0de40eb733d505a78', class: { 'expand-btn': true, open: this.open }, disabled: this.disabled, onClick: this.handleExpand }), h("slot", { key: '33c52bc864e741c66d448e80ec5d675c433aa649', name: XV_EXPANDABLE_KEY }), h("div", { key: '02795ad1ee52bdcf34519b9fcc4325698ef61919', class: { expandableContent: true, open: this.open } }, h("slot", { key: '185185f6fed3ae43a09c85903628eced54847cb7' }))));
13
+ return (h(Host, { key: '1cdc6260aa3933b453fb16211c28d6fbea2a0350' }, h("button", { key: '53dbd31f7c4a47190af4963bf8437c061ca59827', class: { 'expand-btn': true, open: this.open }, disabled: this.disabled, onClick: this.handleExpand }), h("slot", { key: 'ba53a344f92e28fa173bba7fa49e0b9c8a3036db', name: XV_EXPANDABLE_KEY }), h("div", { key: '24b785baa2b308a46414b14f5fbe87a88bb91deb', class: { expandableContent: true, open: this.open } }, h("slot", { key: '8dbc793cd4e27694dac3cf240b9dd919bac0f36b' }))));
14
14
  }
15
15
  componentDidLoad() {
16
16
  setAttr(this.el.parentElement, XV_EXPANDABLE_KEY, true);
@@ -42,7 +42,7 @@ export class XvTableRow {
42
42
  }
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: '0fa754f2982bb475a1354cf8c7653cdbc9b710bc' }, this.variant !== undefined && (h("xv-table-v2-cell", { key: '344b3acf23c6e96e7c2422bc87ba47ddc468fe32', class: "cell-control" }, this.variant === 'checkbox' && (h("xv-checkbox-v2", { key: '718a01dddcd1d5f3c354a26f8c4d7d0920048be1', name: this.name, partial: this.partial, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly, onEventChange: this.checkHandle })), this.variant === 'radio' && (h("input", { key: '8c49a2babdf5388004b1ab3cb1639206687f7535', type: "radio", name: this.name, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly })))), h("slot", { key: '565e6e933a38fd71ccd49f28772014ca3cb06398' })));
45
+ return (h(Host, { key: 'bbf22a27e0dad429a6b78add5cc7582af2c9fb05' }, this.variant !== undefined && (h("xv-table-v2-cell", { key: '55c69e4d4b996db975015a5c4583e7b47e08a84a', class: "cell-control" }, this.variant === 'checkbox' && (h("xv-checkbox-v2", { key: 'ab88c9827b708e849088214eb26a83157f4775aa', name: this.name, partial: this.partial, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly, onEventChange: this.checkHandle })), this.variant === 'radio' && (h("input", { key: 'dbb9e381633828073940e32bf5b40231e3e34857', type: "radio", name: this.name, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly })))), h("slot", { key: 'a2043f89fb359453c4839c000fdcead5ab8769ae' })));
46
46
  }
47
47
  componentWillLoad() {
48
48
  this.setInitialAttrs();
@@ -31,7 +31,7 @@ export class XvTable {
31
31
  .join(' ') + ' repeat(auto-fit, minmax(0, 1fr))');
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: '4894a985912a52eb0173566d6c2daff7dfc39035', class: { batchVisible: !!this.selectedCount } }, h("slot", { key: 'c370d3fd370a78528ff5e540fb59239c6b416bd9', name: "title" }, !!this.el.title && h("h2", { key: 'aefcffd432a2c24c6f84924d03fad5f0498d4b10', class: "xv-table-title" }, this.el.title)), h("slot", { key: '227b2ace04ed35ce3cff88c34d99054d8c552bc3', name: "toolbar" }), h("div", { key: '810934177b689d49dc1402aac97502081982744b', class: "xv-table" }, h("div", { key: 'db7c19f33120457dbd53a491579379741187652f', class: "batch-actions" }, h(Fragment, { key: 'b9c688ccda045afc1fd46ebed503d96f3096f788' }, h("div", { key: '628767d1a33fa98195056441e871a4beccb5b1ec', class: "batch-actions_content" }, h("slot", { key: 'b73f2d55c5c65daaabce1a89eb61ed328445c804', name: "batch" })), h("p", { key: '162fa01f1027c4c0df8a784995b50a085f44e98b', class: "batch-actions_count" }, !!this.selectedCount && `${this.selectedCount} ${this.selectedCount === 1 ? 'Position ausgewählt' : 'Positionen ausgewählt'}`))), h("div", { key: '68b9c4807c9e6dd297bc74867f3230154493d5e6', class: "xv-table_wrapper" }, h("slot", { key: 'fd28df98e8497825d4f4ecfb3e292c724952ae83' }), h("slot", { key: 'f1604b484a87f35fffa11fc55eb05ff52d3d55ac', name: "footer" })), !!this.loading && (h("div", { key: '6e7cae29ba018e5af760cdcb9a9387e5e33369ae', class: "xv-table_loading" }, h("xv-loader-v2", { key: '72f23f7b4de8edeae93565bccceeca9e78a071d4', size: SIZE_VAR.LG }))))));
34
+ return (h(Host, { key: '173110599b9a11fec560bfa5f648f5fed235175f', class: { batchVisible: !!this.selectedCount } }, h("slot", { key: '3966a6ba192313ab9cbe5b26cadd765c12b08262', name: "title" }, !!this.el.title && h("h2", { key: '51bf9b76da8f3605f1254ff3df0e9bf68751ec2c', class: "xv-table-title" }, this.el.title)), h("slot", { key: '9276e8836c4086bc2b8d1dc4aacdc2b447b31f57', name: "toolbar" }), h("div", { key: '8fa9c349b7d377cd2860054de08fdea4061462cd', class: "xv-table" }, h("div", { key: '0dd60cd039409d66e6c024a46e9c7353b825fc39', class: "batch-actions" }, h(Fragment, { key: '5b2b17c1ba82cb36c57fb7c99c54f1a66f4146e0' }, h("div", { key: '6fbdb8faad086fe53fe9dc277065db514327a498', class: "batch-actions_content" }, h("slot", { key: 'e8769e3dfe0e539dbfc14033079636f364556e31', name: "batch" })), h("p", { key: '857f33d3595cf5e5f0a0ffc4474e801ea9e4aeaa', class: "batch-actions_count" }, !!this.selectedCount && `${this.selectedCount} ${this.selectedCount === 1 ? 'Position ausgewählt' : 'Positionen ausgewählt'}`))), h("div", { key: '4f0d41aabd8f78f04c0ded187c2dc117794802a8', class: "xv-table_wrapper" }, h("slot", { key: '7de743d320da2d68f9835b0dacd3db192b5e12b9' }), h("slot", { key: 'b0fb15c2fb82e94a249d2f0be12a04066ff244ea', name: "footer" })), !!this.loading && (h("div", { key: 'bd3947a1ad4d34bb0ea57a4648336d40d2b4499b', class: "xv-table_loading" }, h("xv-loader-v2", { key: '0991ecbde1fae86b8a7da8b348594a76e176fc09', size: SIZE_VAR.LG }))))));
35
35
  }
36
36
  componentWillLoad() {
37
37
  this.setColsSizeTemplate();
@@ -6,7 +6,7 @@ export class XvTab {
6
6
  this.loading = false;
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'acf8d6047f8d0b12a4353c439bb8be5e96a6de2d', disabled: this.disabled, name: this.name }, this.loading ? h("xv-loader-v2", { size: SIZE_VAR.LG }) : h("slot", null)));
9
+ return (h(Host, { key: '560790ac18797ba2238cff26a7ef87eb8b53d483', disabled: this.disabled, name: this.name }, this.loading ? h("xv-loader-v2", { size: SIZE_VAR.LG }) : h("slot", null)));
10
10
  }
11
11
  static get is() { return "xv-tab-v2"; }
12
12
  static get encapsulation() { return "shadow"; }
@@ -68,8 +68,7 @@ export class XvTabs {
68
68
  const nextTab = this.tabElements[nextIdx];
69
69
  if (!nextTab || nextTab.hasAttribute('disabled'))
70
70
  return;
71
- this.active = nextTab.getAttribute('name') || `${nextIdx}`;
72
- this.scrollToActiveTab();
71
+ this.handleTabClick(nextTab.getAttribute('name') || nextIdx);
73
72
  }
74
73
  render() {
75
74
  var _a, _b, _c;