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.
- package/dist/cjs/{index-D41mMXvd.js → index-MLh9SbX2.js} +349 -8
- package/dist/cjs/index-MLh9SbX2.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{xv-accordion-v2_27.cjs.entry.js → xv-accordion-v2_33.cjs.entry.js} +2214 -87
- package/dist/cjs/xv-accordion-v2_33.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +1 -1
- package/dist/cjs/xv-webcomponents.cjs.js +3 -3
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/xv-button/xv-button-v2.css +136 -118
- package/dist/collection/components/xv-button/xv-button.js +132 -67
- package/dist/collection/components/xv-button/xv-button.js.map +1 -1
- package/dist/collection/components/xv-card/xv-card.js +1 -1
- package/dist/collection/components/xv-checkbox/xv-checkbox.css +3 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +1 -1
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.css +30 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js +80 -0
- package/dist/collection/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.css +4 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js +42 -0
- package/dist/collection/components/xv-data-table/xv-data-table-row/xv-data-table-row.js.map +1 -0
- package/dist/collection/components/xv-data-table/xv-data-table.css +51 -0
- package/dist/collection/components/xv-data-table/xv-data-table.js +130 -0
- package/dist/collection/components/xv-data-table/xv-data-table.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.css +6 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +20 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -1
- package/dist/collection/components/xv-file-uploader/_vars.js +6 -0
- package/dist/collection/components/xv-file-uploader/_vars.js.map +1 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.css +136 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +448 -0
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js.map +1 -0
- package/dist/collection/components/xv-footer/xv-footer.js +1 -1
- package/dist/collection/components/xv-header/xv-header.js +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 -0
- package/dist/collection/components/xv-notification/xv-notification.js +1 -1
- package/dist/collection/components/xv-number-input/xv-number-input.css +128 -0
- package/dist/collection/components/xv-number-input/xv-number-input.js +373 -0
- package/dist/collection/components/xv-number-input/xv-number-input.js.map +1 -0
- 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-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-tabs/xv-tabs.js +1 -2
- package/dist/collection/components/xv-tabs/xv-tabs.js.map +1 -1
- package/dist/collection/components/xv-tag/xv-tag.js +1 -1
- package/dist/collection/components/xv-text-input/xv-text-input.css +110 -89
- package/dist/collection/components/xv-text-input/xv-text-input.js +113 -80
- package/dist/collection/components/xv-text-input/xv-text-input.js.map +1 -1
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.css +95 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +201 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js.map +1 -0
- package/dist/collection/components/xv-tooltip/xv-tooltip.css +31 -147
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +59 -34
- package/dist/collection/components/xv-tooltip/xv-tooltip.js.map +1 -1
- package/dist/esm/{index-Datpns0U.js → index-DLYJiP99.js} +349 -8
- package/dist/esm/index-DLYJiP99.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{xv-accordion-v2_27.entry.js → xv-accordion-v2_33.entry.js} +2209 -88
- package/dist/esm/xv-accordion-v2_33.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js +1 -1
- package/dist/esm/xv-webcomponents.js +4 -4
- package/dist/esm/xv-webcomponents.js.map +1 -1
- package/dist/types/components/xv-button/xv-button.d.ts +21 -12
- package/dist/types/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.d.ts +6 -0
- package/dist/types/components/xv-data-table/xv-data-table-row/xv-data-table-row.d.ts +4 -0
- package/dist/types/components/xv-data-table/xv-data-table.d.ts +9 -0
- package/dist/types/components/xv-dropdown/xv-dropdown.d.ts +1 -0
- package/dist/types/components/xv-file-uploader/_vars.d.ts +4 -0
- package/dist/types/components/xv-file-uploader/xv-file-uploader.d.ts +36 -0
- package/dist/types/components/xv-number-input/xv-number-input.d.ts +26 -0
- package/dist/types/components/xv-text-input/xv-text-input.d.ts +10 -11
- package/dist/types/components/xv-toggle-tip/xv-toggle-tip.d.ts +19 -0
- package/dist/types/components/xv-tooltip/xv-tooltip.d.ts +10 -8
- package/dist/types/components.d.ts +605 -49
- package/dist/xv-webcomponents/{p-054f5d59.entry.js → p-5b63a259.entry.js} +2 -2
- package/dist/xv-webcomponents/p-DLYJiP99.js +3 -0
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +1 -0
- package/dist/xv-webcomponents/p-ec72208c.entry.js +2 -0
- package/dist/xv-webcomponents/p-ec72208c.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 +6 -4
- package/dist/cjs/index-D41mMXvd.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_27.cjs.entry.js.map +0 -1
- package/dist/collection/components/xv-text-input/_vars.js +0 -7
- package/dist/collection/components/xv-text-input/_vars.js.map +0 -1
- package/dist/esm/index-Datpns0U.js.map +0 -1
- package/dist/esm/xv-accordion-v2_27.entry.js.map +0 -1
- package/dist/types/components/xv-text-input/_vars.d.ts +0 -5
- package/dist/xv-webcomponents/p-6a4cc790.entry.js +0 -2
- package/dist/xv-webcomponents/p-6a4cc790.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-Datpns0U.js +0 -3
- package/dist/xv-webcomponents/p-Datpns0U.js.map +0 -1
- /package/dist/xv-webcomponents/{p-054f5d59.entry.js.map → p-5b63a259.entry.js.map} +0 -0
|
@@ -1,28 +1,62 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { SIZE_VAR } from "../../types/enum";
|
|
2
3
|
export class XvButton {
|
|
3
4
|
constructor() {
|
|
4
|
-
/** Button
|
|
5
|
-
this.
|
|
6
|
-
/**
|
|
5
|
+
/** Button variants */
|
|
6
|
+
this.variant = 'primary';
|
|
7
|
+
/** Button size */
|
|
8
|
+
this.size = SIZE_VAR.MD;
|
|
9
|
+
/** Button disabled state */
|
|
10
|
+
this.disabled = false;
|
|
11
|
+
/** Button loading state */
|
|
12
|
+
this.loading = false;
|
|
13
|
+
/** Button for full width */
|
|
7
14
|
this.block = false;
|
|
8
15
|
/** Button type */
|
|
9
16
|
this.type = 'button';
|
|
10
|
-
|
|
11
|
-
this.
|
|
12
|
-
|
|
13
|
-
this.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
this.hasLeftIcon = false;
|
|
18
|
+
this.hasRightIcon = false;
|
|
19
|
+
this.hasContent = false;
|
|
20
|
+
this.handleSlotChangeLeft = (event) => {
|
|
21
|
+
this.hasLeftIcon = event.target.assignedElements().length > 0;
|
|
22
|
+
};
|
|
23
|
+
this.handleSlotChangeContent = (event) => {
|
|
24
|
+
this.hasContent = event.target.assignedNodes().some(node => {
|
|
25
|
+
var _a;
|
|
26
|
+
return node.nodeType === Node.ELEMENT_NODE ||
|
|
27
|
+
(node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== '');
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
this.handleSlotChangeRight = (event) => {
|
|
31
|
+
this.hasRightIcon = event.target.assignedElements().length > 0;
|
|
32
|
+
};
|
|
33
|
+
this.handleClick = () => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
if (this.type === 'submit') {
|
|
36
|
+
(_a = this.internals.form) === null || _a === void 0 ? void 0 : _a.requestSubmit();
|
|
37
|
+
}
|
|
38
|
+
else if (this.type === 'reset') {
|
|
39
|
+
(_b = this.internals.form) === null || _b === void 0 ? void 0 : _b.reset();
|
|
40
|
+
}
|
|
19
41
|
};
|
|
20
42
|
}
|
|
21
43
|
render() {
|
|
22
|
-
|
|
44
|
+
var _a;
|
|
45
|
+
return (h(Host, { key: 'ad8e2051c6023d13626e65861099114e2ff06db2' }, h("button", { key: '1f2b8e13a29a63b3f50ced928a83e92d0eb5c0ea', class: {
|
|
46
|
+
'xv-button': true,
|
|
47
|
+
[`xv-button--${this.variant}`]: !!this.variant,
|
|
48
|
+
[`xv-button--${this.size}`]: !!this.size,
|
|
49
|
+
'xv-button--disabled': this.disabled || this.loading,
|
|
50
|
+
'xv-button--block': this.block,
|
|
51
|
+
'xv-button--loading': this.loading,
|
|
52
|
+
'xv-button--icon-left': this.hasLeftIcon,
|
|
53
|
+
'xv-button--icon-right': this.hasRightIcon,
|
|
54
|
+
'xv-button--icon-only': !this.hasContent,
|
|
55
|
+
}, part: "button", onClick: this.handleClick, type: this.type, disabled: this.disabled || this.loading, "aria-disabled": this.disabled ? 'true' : undefined, "aria-label": ((_a = this.el) === null || _a === void 0 ? void 0 : _a.ariaLabel) || 'XV button' }, this.loading && (h("xv-loader-v2", { key: 'a7c55e4823b233f845f1a9e5e654f2c98a88001d', class: "xv-button__loader", size: this.size !== SIZE_VAR.XL ? this.size : SIZE_VAR.LG })), h("span", { key: '57f0ced69f7022ba8b602083b69fa2804061ccef', class: "xv-button__icon xv-button__icon--left" }, h("slot", { key: '8c6c0c1a12bfafe6a3674352b5e8ba77e0562eb3', name: "icon-left", onSlotchange: this.handleSlotChangeLeft })), h("span", { key: '8e19d4691b333a0d70a76ed476f59bacfeefa963', class: "xv-button__label" }, h("slot", { key: 'c9d9896b34e3137442b11db5d4f44d097d952d37', onSlotchange: this.handleSlotChangeContent }, this.label)), h("span", { key: '25a3256dff8ec326c081601dd46cff45149a7683', class: "xv-button__icon xv-button__icon--right" }, h("slot", { key: '90505c36d3620fa19c3d01fc1e66cc57e705a8db', name: "icon-right", onSlotchange: this.handleSlotChangeRight })))));
|
|
23
56
|
}
|
|
24
57
|
static get is() { return "xv-button-v2"; }
|
|
25
58
|
static get encapsulation() { return "shadow"; }
|
|
59
|
+
static get formAssociated() { return true; }
|
|
26
60
|
static get originalStyleUrls() {
|
|
27
61
|
return {
|
|
28
62
|
"$": ["xv-button-v2.scss"]
|
|
@@ -45,79 +79,84 @@ export class XvButton {
|
|
|
45
79
|
"references": {}
|
|
46
80
|
},
|
|
47
81
|
"required": false,
|
|
48
|
-
"optional":
|
|
82
|
+
"optional": true,
|
|
49
83
|
"docs": {
|
|
50
84
|
"tags": [],
|
|
51
|
-
"text": "Button label"
|
|
85
|
+
"text": "Button label is optional you can use just inside content"
|
|
52
86
|
},
|
|
53
87
|
"getter": false,
|
|
54
88
|
"setter": false,
|
|
55
|
-
"reflect":
|
|
56
|
-
"defaultValue": "''"
|
|
89
|
+
"reflect": true
|
|
57
90
|
},
|
|
58
|
-
"
|
|
59
|
-
"type": "
|
|
60
|
-
"attribute": "
|
|
91
|
+
"variant": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"attribute": "variant",
|
|
61
94
|
"mutable": false,
|
|
62
95
|
"complexType": {
|
|
63
|
-
"original": "
|
|
64
|
-
"resolved": "
|
|
96
|
+
"original": "'primary' | 'secondary' | 'ghost' | 'danger' | 'tertiary'",
|
|
97
|
+
"resolved": "\"danger\" | \"ghost\" | \"primary\" | \"secondary\" | \"tertiary\"",
|
|
65
98
|
"references": {}
|
|
66
99
|
},
|
|
67
100
|
"required": false,
|
|
68
101
|
"optional": false,
|
|
69
102
|
"docs": {
|
|
70
103
|
"tags": [],
|
|
71
|
-
"text": "
|
|
104
|
+
"text": "Button variants"
|
|
72
105
|
},
|
|
73
106
|
"getter": false,
|
|
74
107
|
"setter": false,
|
|
75
|
-
"reflect":
|
|
76
|
-
"defaultValue": "
|
|
108
|
+
"reflect": true,
|
|
109
|
+
"defaultValue": "'primary'"
|
|
77
110
|
},
|
|
78
|
-
"
|
|
111
|
+
"size": {
|
|
79
112
|
"type": "string",
|
|
80
|
-
"attribute": "
|
|
113
|
+
"attribute": "size",
|
|
81
114
|
"mutable": false,
|
|
82
115
|
"complexType": {
|
|
83
|
-
"original": "
|
|
84
|
-
"resolved": "
|
|
85
|
-
"references": {
|
|
116
|
+
"original": "SIZE_VAR",
|
|
117
|
+
"resolved": "SIZE_VAR.LG | SIZE_VAR.MD | SIZE_VAR.SM | SIZE_VAR.XL | SIZE_VAR.XS",
|
|
118
|
+
"references": {
|
|
119
|
+
"SIZE_VAR": {
|
|
120
|
+
"location": "import",
|
|
121
|
+
"path": "../../types/enum",
|
|
122
|
+
"id": "src/types/enum.ts::SIZE_VAR"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
86
125
|
},
|
|
87
126
|
"required": false,
|
|
88
127
|
"optional": false,
|
|
89
128
|
"docs": {
|
|
90
129
|
"tags": [],
|
|
91
|
-
"text": "Button
|
|
130
|
+
"text": "Button size"
|
|
92
131
|
},
|
|
93
132
|
"getter": false,
|
|
94
133
|
"setter": false,
|
|
95
|
-
"reflect":
|
|
96
|
-
"defaultValue": "
|
|
134
|
+
"reflect": true,
|
|
135
|
+
"defaultValue": "SIZE_VAR.MD"
|
|
97
136
|
},
|
|
98
|
-
"
|
|
99
|
-
"type": "
|
|
100
|
-
"attribute": "
|
|
137
|
+
"disabled": {
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"attribute": "disabled",
|
|
101
140
|
"mutable": false,
|
|
102
141
|
"complexType": {
|
|
103
|
-
"original": "
|
|
104
|
-
"resolved": "
|
|
142
|
+
"original": "boolean",
|
|
143
|
+
"resolved": "boolean",
|
|
105
144
|
"references": {}
|
|
106
145
|
},
|
|
107
146
|
"required": false,
|
|
108
147
|
"optional": false,
|
|
109
148
|
"docs": {
|
|
110
149
|
"tags": [],
|
|
111
|
-
"text": "
|
|
150
|
+
"text": "Button disabled state"
|
|
112
151
|
},
|
|
113
152
|
"getter": false,
|
|
114
153
|
"setter": false,
|
|
115
|
-
"reflect":
|
|
116
|
-
"defaultValue": "
|
|
154
|
+
"reflect": true,
|
|
155
|
+
"defaultValue": "false"
|
|
117
156
|
},
|
|
118
|
-
"
|
|
157
|
+
"loading": {
|
|
119
158
|
"type": "boolean",
|
|
120
|
-
"attribute": "
|
|
159
|
+
"attribute": "loading",
|
|
121
160
|
"mutable": false,
|
|
122
161
|
"complexType": {
|
|
123
162
|
"original": "boolean",
|
|
@@ -128,37 +167,63 @@ export class XvButton {
|
|
|
128
167
|
"optional": false,
|
|
129
168
|
"docs": {
|
|
130
169
|
"tags": [],
|
|
131
|
-
"text": "
|
|
170
|
+
"text": "Button loading state"
|
|
132
171
|
},
|
|
133
172
|
"getter": false,
|
|
134
173
|
"setter": false,
|
|
135
|
-
"reflect":
|
|
174
|
+
"reflect": true,
|
|
136
175
|
"defaultValue": "false"
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
176
|
+
},
|
|
177
|
+
"block": {
|
|
178
|
+
"type": "boolean",
|
|
179
|
+
"attribute": "block",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "boolean",
|
|
183
|
+
"resolved": "boolean",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
147
188
|
"docs": {
|
|
148
189
|
"tags": [],
|
|
149
|
-
"text": "
|
|
190
|
+
"text": "Button for full width"
|
|
150
191
|
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
194
|
+
"reflect": true,
|
|
195
|
+
"defaultValue": "false"
|
|
196
|
+
},
|
|
197
|
+
"type": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"attribute": "type",
|
|
200
|
+
"mutable": false,
|
|
151
201
|
"complexType": {
|
|
152
|
-
"original": "
|
|
153
|
-
"resolved": "
|
|
154
|
-
"references": {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
202
|
+
"original": "'button' | 'submit' | 'reset'",
|
|
203
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": false,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": "Button type"
|
|
211
|
+
},
|
|
212
|
+
"getter": false,
|
|
213
|
+
"setter": false,
|
|
214
|
+
"reflect": true,
|
|
215
|
+
"defaultValue": "'button'"
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
static get states() {
|
|
220
|
+
return {
|
|
221
|
+
"hasLeftIcon": {},
|
|
222
|
+
"hasRightIcon": {},
|
|
223
|
+
"hasContent": {}
|
|
224
|
+
};
|
|
162
225
|
}
|
|
226
|
+
static get elementRef() { return "el"; }
|
|
227
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
163
228
|
}
|
|
164
229
|
//# sourceMappingURL=xv-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xv-button.js","sourceRoot":"","sources":["../../../src/components/xv-button/xv-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"xv-button.js","sourceRoot":"","sources":["../../../src/components/xv-button/xv-button.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Prop, h, Element, State, Host, AttachInternals } from '@stencil/core';\r\nimport { SIZE_VAR } from '../../types/enum';\r\n\r\n\r\n@Component({\r\n tag: 'xv-button-v2',\r\n styleUrl: 'xv-button-v2.scss',\r\n shadow: true,\r\n formAssociated: true,\r\n})\r\nexport class XvButton {\r\n @Element() el: HTMLElement;\r\n\r\n /** Button label is optional you can use just inside content */\r\n @Prop({ reflect: true }) label?: string;\r\n /** Button variants */\r\n @Prop({ reflect: true }) variant: 'primary' | 'secondary' | 'ghost' | 'danger' | 'tertiary' = 'primary';\r\n /** Button size */\r\n @Prop({ reflect: true }) size: SIZE_VAR = SIZE_VAR.MD;\r\n /** Button disabled state */\r\n @Prop({ reflect: true }) disabled: boolean = false;\r\n /** Button loading state */\r\n @Prop({ reflect: true }) loading: boolean = false;\r\n /** Button for full width */\r\n @Prop({ reflect: true }) block: boolean = false;\r\n /** Button type */\r\n @Prop({ reflect: true }) type: 'button' | 'submit' | 'reset' = 'button';\r\n\r\n @State() hasLeftIcon: boolean = false;\r\n @State() hasRightIcon: boolean = false;\r\n @State() hasContent: boolean = false;\r\n\r\n @AttachInternals() internals: ElementInternals;\r\n\r\n private handleSlotChangeLeft = (event: Event) => {\r\n this.hasLeftIcon = (event.target as HTMLSlotElement).assignedElements().length > 0;\r\n };\r\n\r\n private handleSlotChangeContent = (event: Event) => {\r\n this.hasContent = (event.target as HTMLSlotElement).assignedNodes().some(\r\n node =>\r\n node.nodeType === Node.ELEMENT_NODE ||\r\n (node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== ''),\r\n );\r\n };\r\n\r\n private handleSlotChangeRight = (event: Event) => {\r\n this.hasRightIcon = (event.target as HTMLSlotElement).assignedElements().length > 0;\r\n };\r\n\r\n private handleClick = () => {\r\n if (this.type === 'submit') {\r\n this.internals.form?.requestSubmit();\r\n } else if (this.type === 'reset') {\r\n this.internals.form?.reset();\r\n }\r\n };\r\n\r\n render() {\r\n return (\r\n <Host>\r\n <button\r\n class={{\r\n 'xv-button': true,\r\n [`xv-button--${this.variant}`]: !!this.variant,\r\n [`xv-button--${this.size}`]: !!this.size,\r\n 'xv-button--disabled': this.disabled || this.loading,\r\n 'xv-button--block': this.block,\r\n 'xv-button--loading': this.loading,\r\n 'xv-button--icon-left': this.hasLeftIcon,\r\n 'xv-button--icon-right': this.hasRightIcon,\r\n 'xv-button--icon-only': !this.hasContent,\r\n }}\r\n part=\"button\"\r\n onClick={this.handleClick}\r\n type={this.type}\r\n disabled={this.disabled || this.loading}\r\n aria-disabled={this.disabled ? 'true' : undefined}\r\n aria-label={this.el?.ariaLabel || 'XV button'}\r\n >\r\n {this.loading && (\r\n <xv-loader-v2 class=\"xv-button__loader\"\r\n size={this.size !== SIZE_VAR.XL ? this.size : SIZE_VAR.LG} />\r\n )}\r\n\r\n <span class=\"xv-button__icon xv-button__icon--left\">\r\n <slot name=\"icon-left\" onSlotchange={this.handleSlotChangeLeft}></slot>\r\n </span>\r\n\r\n <span class=\"xv-button__label\">\r\n <slot onSlotchange={this.handleSlotChangeContent}>\r\n {this.label}\r\n </slot>\r\n </span>\r\n\r\n <span class=\"xv-button__icon xv-button__icon--right\">\r\n <slot name=\"icon-right\" onSlotchange={this.handleSlotChangeRight}></slot>\r\n </span>\r\n </button>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -4,7 +4,7 @@ export class XvCard {
|
|
|
4
4
|
this.variant = 'vertical';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '7c19e1d91f9040c116dc18d6f58be859e66b0629', class: `xv-card xv-card_${this.variant}`, part: this.variant }, h("div", { key: '8ef942983bc31d278810372bfed3fe4cb8f1922a', class: "xv-card_media" }, h("slot", { key: '86bc68bcb80c563a91448c15ab1ebd89c1e5b245', name: "media" }, this.media && h("img", { key: 'c4351a7426b5b73ed37f038f1f355dcf46dae597', class: "xv-card_media__content", src: this.media, alt: this.header }))), h("div", { key: '906393c52bb7c27bfbc9527dfba34f712ec8a420', class: "xv-card_content" }, h("div", { key: 'd703353d99066a4f395f126f0ec8aa462c7a5c7b', class: "xv-card_header" }, h("slot", { key: '4fb9c65d701629dce6f99c8ad871adbd7659ecdd', name: "header" }, this.header && h("p", { key: 'e4a3f971b5dca8cdf3e44c9ba2a37baeff67fd59', class: "xv-card_header__content" }, this.header))), h("div", { key: '7029219d670fe9a94e5c50f657f5f2f2d45a2edb', class: "xv-card_body" }, h("slot", { key: '0f570bb3938b6c44e8cc3fb004ed1d7c487fb5a7', name: "body" }, this.body && h("p", { key: '02fc0abdc52c3a0bf833c0bfe24ec573f1457f21', class: "xv-card_body__content" }, this.header))), h("div", { key: '9734dca4512ace0e29e332acce27bf01c8a05e24', class: "xv-card_footer" }, h("slot", { key: '3cf0141845baf68e0149b823b921705978953ade', name: "footer" }, this.footer)))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "xv-card-v2"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
+
overflow: visible !important;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
:host([error]) .xv-checkbox .checkmark {
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
}
|
|
78
79
|
.xv-checkbox input:checked + .checkmark:not(.checkmark-partial)::after {
|
|
79
80
|
content: "";
|
|
81
|
+
position: absolute;
|
|
80
82
|
width: calc(var(--checkbox-size) / 4);
|
|
81
83
|
height: calc(var(--checkbox-size) / 2.5);
|
|
82
84
|
border: solid var(--background, #FFF);
|
|
@@ -87,6 +89,7 @@
|
|
|
87
89
|
}
|
|
88
90
|
.xv-checkbox input:checked + .checkmark.checkmark-partial::after {
|
|
89
91
|
content: "";
|
|
92
|
+
position: absolute;
|
|
90
93
|
width: calc(var(--checkbox-size) / 3);
|
|
91
94
|
height: calc(var(--checkbox-size) / 10);
|
|
92
95
|
background-color: var(--background, #FFF);
|
|
@@ -66,7 +66,7 @@ export class XvCheckbox {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: '9eb988ec6a7a02392b4ed77685eed2bc5814c137' }, h("label", { key: '3e4c7112c959897c5b61cbcff890eaf437e476fc', class: { 'xv-checkbox': true, disabled: this.disabled, readonly: this.readonly } }, h("input", { key: '3a2e68b5780ae3951f86d30f9b2e8d9af1805e97', ref: el => (this.inputEl = el), type: "checkbox", readonly: this.readonly, name: this.name, value: this.value, checked: this.checked, disabled: this.disabled || this.readonly, required: this.required, indeterminate: this.indeterminate, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }), h("span", { key: 'b57f073a258a1ea15d04969a68eab7c36023e596', class: `checkmark ${this.partial ? 'checkmark-partial' : ''}` }), h("div", { key: '1abe0c133bf203b228b86bd68053856b79cdf170', class: "label" }, h("slot", { key: '155a80701f1a050a73a0079308de0b932407549e' }, this.label && h("span", { key: 'f9d493bfb663fcf91712b754b4c1b841d10beb05', class: "label_str" }, this.label)))), h("slot", { key: 'fae7055dc73235126a633a705b6e8f045a20954c', name: "info" }), !!this.error && h("span", { key: '5c3bb7d31289862bf421614ee9906671e65c1b7c', class: "error" }, this.error)));
|
|
70
70
|
}
|
|
71
71
|
componentDidLoad() {
|
|
72
72
|
if (this.indeterminate) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: table-cell;
|
|
3
|
+
border-style: solid;
|
|
4
|
+
border-width: var(--xv-data-table-border-width, 0);
|
|
5
|
+
border-color: var(--xv-data-table-border-color, transparent);
|
|
6
|
+
padding-inline: var(--xv-data-table-padding-x, 0);
|
|
7
|
+
padding-block: var(--xv-data-table-padding-y, 0);
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
word-break: break-all;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
}
|
|
13
|
+
:host .line-clamp {
|
|
14
|
+
display: -webkit-box;
|
|
15
|
+
-webkit-line-clamp: 2;
|
|
16
|
+
-webkit-box-orient: vertical;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host(:not(.multiline)) {
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
}
|
|
26
|
+
:host(:not(.multiline)) ::slotted(*) {
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class XvDataTableCell {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { key: 'c505212113c232e8e4aca82338f6f799e26e943b', role: "cell", style: { width: this.width }, class: { multiline: this.multiline !== undefined } }, !this.multiline || isNaN(this.multiline) ? h("slot", null) : (h("div", { class: "line-clamp", style: { ['-webkit-line-clamp']: `${this.multiline}` } }, h("slot", null)))));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "xv-data-table-cell"; }
|
|
7
|
+
static get encapsulation() { return "shadow"; }
|
|
8
|
+
static get originalStyleUrls() {
|
|
9
|
+
return {
|
|
10
|
+
"$": ["xv-data-table-cell.scss"]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static get styleUrls() {
|
|
14
|
+
return {
|
|
15
|
+
"$": ["xv-data-table-cell.css"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"attribute": "name",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "string",
|
|
26
|
+
"resolved": "string",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": true,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": ""
|
|
34
|
+
},
|
|
35
|
+
"getter": false,
|
|
36
|
+
"setter": false,
|
|
37
|
+
"reflect": false
|
|
38
|
+
},
|
|
39
|
+
"multiline": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"attribute": "multiline",
|
|
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
|
+
"reflect": false
|
|
57
|
+
},
|
|
58
|
+
"width": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"attribute": "width",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": true,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": ""
|
|
72
|
+
},
|
|
73
|
+
"getter": false,
|
|
74
|
+
"setter": false,
|
|
75
|
+
"reflect": false
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=xv-data-table-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-data-table-cell.js","sourceRoot":"","sources":["../../../../src/components/xv-data-table/xv-data-table-cell/xv-data-table-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,eAAe;IAK1B,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE,IAC/F,CAAC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,eAAQ,CAAC,CAAC,CAAC,CACrD,WAAK,KAAK,EAAC,YAAY,EAAC,KAAK,EAAE,EAAE,CAAC,oBAAoB,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE;YAC5E,eAAQ,CACJ,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xv-data-table-cell',\n styleUrl: 'xv-data-table-cell.scss',\n shadow: true,\n})\nexport class XvDataTableCell {\n @Prop() name?: string;\n @Prop() multiline: number;\n @Prop() width?: string;\n\n render() {\n return (\n <Host role=\"cell\" style={{ width: this.width }} class={{ multiline: this.multiline !== undefined }}>\n {!this.multiline || isNaN(this.multiline) ? <slot /> : (\n <div class=\"line-clamp\" style={{ ['-webkit-line-clamp']: `${this.multiline}` }}>\n <slot />\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class XvDataTableRow {
|
|
3
|
+
render() {
|
|
4
|
+
return (h(Host, { key: '46d3f061051182e865d1a0088653a1af509da94f', role: "row" }, this.variant === 'checkbox' && (h("xv-data-table-cell", { key: '461f71088337deeb60e307bf715a83d950414a16', width: "1.98%" }, h("xv-checkbox-v2", { key: '9b1b6487545b48659f61dfd4b47a0ddd803472dc' }))), h("slot", { key: 'd59814118146a679ff7c1f690ccb5836924ef3d2' })));
|
|
5
|
+
}
|
|
6
|
+
static get is() { return "xv-data-table-row"; }
|
|
7
|
+
static get encapsulation() { return "shadow"; }
|
|
8
|
+
static get originalStyleUrls() {
|
|
9
|
+
return {
|
|
10
|
+
"$": ["xv-data-table-row.scss"]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static get styleUrls() {
|
|
14
|
+
return {
|
|
15
|
+
"$": ["xv-data-table-row.css"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"variant": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"attribute": "variant",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "'checkbox'",
|
|
26
|
+
"resolved": "\"checkbox\"",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": true,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": ""
|
|
34
|
+
},
|
|
35
|
+
"getter": false,
|
|
36
|
+
"setter": false,
|
|
37
|
+
"reflect": false
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=xv-data-table-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-data-table-row.js","sourceRoot":"","sources":["../../../../src/components/xv-data-table/xv-data-table-row/xv-data-table-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOzD,MAAM,OAAO,cAAc;IAGzB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,IAAI,EAAC,KAAK;YACb,IAAI,CAAC,OAAO,KAAK,UAAU,IAAI,CAC9B,2EAAoB,KAAK,EAAC,OAAO;gBAC/B,wEAAiC,CACd,CACtB;YACD,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'xv-data-table-row',\n styleUrl: 'xv-data-table-row.scss',\n shadow: true,\n})\nexport class XvDataTableRow {\n @Prop() variant?: 'checkbox';\n\n render() {\n return (\n <Host role=\"row\">\n {this.variant === 'checkbox' && (\n <xv-data-table-cell width=\"1.98%\">\n <xv-checkbox-v2></xv-checkbox-v2>\n </xv-data-table-cell>\n )}\n <slot />\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--xv-data-table-border-width: 1px;
|
|
3
|
+
--xv-data-table-border-color: var(--border-subtle-01);
|
|
4
|
+
--xv-data-table-padding-x: var(--spacing-05);
|
|
5
|
+
--xv-data-table-padding-y: var(--spacing-05);
|
|
6
|
+
--xv-data-table-row-bg: transparent;
|
|
7
|
+
display: contents;
|
|
8
|
+
width: inherit;
|
|
9
|
+
color: var(--text-primary, #333);
|
|
10
|
+
font-family: var(--ff-body, Tahoma);
|
|
11
|
+
font-size: var(--fz-md, 14px);
|
|
12
|
+
line-height: 18px;
|
|
13
|
+
letter-spacing: 0.16px;
|
|
14
|
+
}
|
|
15
|
+
:host > table {
|
|
16
|
+
width: inherit;
|
|
17
|
+
border-collapse: collapse;
|
|
18
|
+
table-layout: fixed;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host([block]) {
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
:host([block]) > table {
|
|
25
|
+
table-layout: fixed;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([size=xs]) {
|
|
29
|
+
--xv-data-table-padding-x: var(--spacing-02);
|
|
30
|
+
--xv-data-table-padding-y: var(--spacing-02);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([size=sm]) {
|
|
34
|
+
--xv-data-table-padding-x: var(--spacing-04);
|
|
35
|
+
--xv-data-table-padding-y: var(--spacing-03);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([size=md]) {
|
|
39
|
+
--xv-data-table-padding-x: var(--spacing-05);
|
|
40
|
+
--xv-data-table-padding-y: var(--spacing-05);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([size=lg]) {
|
|
44
|
+
--xv-data-table-padding-x: var(--spacing-05);
|
|
45
|
+
--xv-data-table-padding-y: var(--spacing-06);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([size=xl]) {
|
|
49
|
+
--xv-data-table-padding-x: var(--spacing-06);
|
|
50
|
+
--xv-data-table-padding-y: var(--spacing-07);
|
|
51
|
+
}
|