xv-webcomponents 0.1.46 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-MLh9SbX2.js → index-CjhPTfz8.js} +41 -14
- package/dist/cjs/index-CjhPTfz8.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/xv-accordion-v2_38.cjs.entry.js +79193 -0
- package/dist/cjs/xv-accordion-v2_38.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-breadcrumbs-v2.cjs.entry.js +1 -1
- package/dist/cjs/xv-webcomponents.cjs.js +4 -5
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/xv-datepicker/xv-datepicker.css +401 -0
- package/dist/collection/components/xv-datepicker/xv-datepicker.js +570 -0
- package/dist/collection/components/xv-datepicker/xv-datepicker.js.map +1 -0
- package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +1 -1
- package/dist/collection/components/xv-dropdown/xv-dropdown.js +2 -2
- package/dist/collection/components/xv-dropdown/xv-dropdown.js.map +1 -1
- package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +2 -2
- package/dist/collection/components/xv-footer/xv-footer.js +1 -1
- package/dist/collection/components/xv-header/xv-header.css +109 -0
- package/dist/collection/components/xv-header/xv-header.js +131 -3
- package/dist/collection/components/xv-header/xv-header.js.map +1 -1
- package/dist/collection/components/xv-link/xv-link.js +1 -1
- package/dist/collection/components/xv-modal/xv-modal.js +1 -1
- package/dist/collection/components/xv-notification/xv-notification.css +1 -1
- package/dist/collection/components/xv-notification/xv-notification.js +1 -1
- package/dist/collection/components/xv-number-input/xv-number-input.js +2 -2
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js +1 -1
- package/dist/collection/components/xv-overflow-menu/xv-overflow-menu.js +1 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
- package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
- package/dist/collection/components/xv-slider/xv-slider.css +196 -0
- package/dist/collection/components/xv-slider/xv-slider.js +259 -0
- package/dist/collection/components/xv-slider/xv-slider.js.map +1 -0
- package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
- package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
- package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
- package/dist/collection/components/xv-table/xv-table.js +1 -1
- package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
- package/dist/collection/components/xv-tag/xv-tag.js +1 -1
- package/dist/collection/components/xv-text-input/xv-text-input.js +2 -2
- package/dist/collection/components/xv-textarea/xv-textarea.css +254 -0
- package/dist/collection/components/xv-textarea/xv-textarea.js +411 -0
- package/dist/collection/components/xv-textarea/xv-textarea.js.map +1 -0
- package/dist/collection/components/xv-tile/xv-tile.css +294 -0
- package/dist/collection/components/xv-tile/xv-tile.js +264 -0
- package/dist/collection/components/xv-tile/xv-tile.js.map +1 -0
- package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
- package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
- package/dist/esm/{index-DLYJiP99.js → index-BQoQLd_U.js} +41 -15
- package/dist/esm/index-BQoQLd_U.js.map +1 -0
- package/dist/esm/loader.js +3 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/xv-accordion-v2_38.entry.js +79154 -0
- package/dist/esm/xv-accordion-v2_38.entry.js.map +1 -0
- package/dist/esm/xv-breadcrumbs-v2.entry.js +1 -1
- package/dist/esm/xv-webcomponents.js +4 -5
- package/dist/esm/xv-webcomponents.js.map +1 -1
- package/dist/types/components/xv-datepicker/xv-datepicker.d.ts +69 -0
- package/dist/types/components/xv-header/xv-header.d.ts +30 -0
- package/dist/types/components/xv-slider/xv-slider.d.ts +20 -0
- package/dist/types/components/xv-textarea/xv-textarea.d.ts +27 -0
- package/dist/types/components/xv-tile/xv-tile.d.ts +24 -0
- package/dist/types/components.d.ts +344 -0
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/xv-webcomponents/loader.esm.js.map +1 -1
- package/dist/xv-webcomponents/p-BQoQLd_U.js +3 -0
- package/dist/xv-webcomponents/p-BQoQLd_U.js.map +1 -0
- package/dist/xv-webcomponents/{p-851c4716.entry.js → p-a8d785da.entry.js} +2 -2
- package/dist/xv-webcomponents/p-f00c82ed.entry.js +2 -0
- package/dist/xv-webcomponents/p-f00c82ed.entry.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +7 -4
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-MLh9SbX2.js.map +0 -1
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js +0 -3542
- package/dist/cjs/xv-accordion-v2_34.cjs.entry.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-DLYJiP99.js.map +0 -1
- package/dist/esm/xv-accordion-v2_34.entry.js +0 -3507
- package/dist/esm/xv-accordion-v2_34.entry.js.map +0 -1
- package/dist/xv-webcomponents/p-DLYJiP99.js +0 -3
- package/dist/xv-webcomponents/p-DLYJiP99.js.map +0 -1
- package/dist/xv-webcomponents/p-DQuL1Twl.js +0 -2
- package/dist/xv-webcomponents/p-DQuL1Twl.js.map +0 -1
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js +0 -2
- package/dist/xv-webcomponents/p-d96c1b6a.entry.js.map +0 -1
- /package/dist/xv-webcomponents/{p-851c4716.entry.js.map → p-a8d785da.entry.js.map} +0 -0
|
@@ -25,7 +25,7 @@ export class XvNotification {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'be60ba70189daab7a69d643abbe06919f043a813', class: "xv-notification", type: this.variant }, this.renderIcon(this.variant), h("div", { key: '5dcfba5e12200eb17919a7d35a61fa9f6170bbb0', class: "content" }, h("div", { key: '8ecd4ab431f99e6b07f2f99e618ffa5834af82b2', class: "content_wrapper" }, this.el.title && h("h5", { key: 'f6d71bd79b2b6007f12addc2eaf144c669ba8fcc', class: "content_title" }, this.el.title), h("slot", { key: '1e2d0d897b303dab93893e425a14f773d1495db0' })), h("slot", { key: '0608b87a655a14356339a6a8871b323bb56645e3', name: "footer" })), this.dismissible && h("button", { key: 'cc11641002f81ad450f7d7e1e9d4ff2ff736bc93', class: "close", onClick: this.closeHandle })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "xv-notification-v2"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,12 +32,12 @@ export class XvNumberInput {
|
|
|
32
32
|
this.valueChange.emit(this.value);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: 'd3db125d5cf6c23ebc4b5a8b703429cfbd790340', class: { disabled: !!this.disabled } }, h("label", { key: '1f3301b04f6c164bedd64f1b628d023769a5877f', class: "control" }, this.label && h("span", { key: '802034249935a75d56e1434f286072b27a4a2727', class: "control_label" }, this.label), h("div", { key: '2efe12379c15b4b1d2fbbe592df7a773f44e44f7', class: {
|
|
36
36
|
'control_input': true,
|
|
37
37
|
readonly: !!this.readonly,
|
|
38
38
|
error: !!this.error,
|
|
39
39
|
warning: !!this.warning
|
|
40
|
-
} }, h("input", { key: '
|
|
40
|
+
} }, h("input", { key: 'b91d1727369618ead393a0899e3e3949ea53c3c6', 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: '7c68f1b690c5805d4001428e190101ee38edb115', 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: '052c4ff4f1a4d58bde239e220a1d97116864dc91', size: this.size, variant: "ghost", disabled: this.disabled || this.readonly, onClick: this.decrement, "aria-label": "Decrease" }, h("span", { key: '8746ccab285f8fab60d733430ce6467536409e6f', slot: "icon-left", class: "status-icon" }, "\u2212")), h("hr", { key: '3d274ae44c8af6942426163174234d87ee72aebe' }), h("xv-button-v2", { key: '840c6007fe123443ccf20fede307ffe32f4c90d1', size: this.size, variant: "ghost", disabled: this.disabled || this.readonly, onClick: this.increment, "aria-label": "Increase" }, h("span", { key: '2d4833b99e81ec4062a876daaafedc8e4b9c53a6', slot: "icon-left", class: "status-icon" }, "+"))))), this.helper && h("p", { key: '135f2b0398118fb8a2384be439744783dfde5798', 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
41
|
}
|
|
42
42
|
static get is() { return "xv-number-input-v2"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/xv-overflow-menu/xv-overflow-menu-item/xv-overflow-menu-item.js
CHANGED
|
@@ -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: '
|
|
14
|
+
return (h(Host, { key: '894dd6eabe1d77ae6e01d84594c74ba8366e7119', class: "xv-overflow-menu-item", role: "menuitem", disabled: this.disabled }, h("slot", { key: '24cf7c0c2b8d55a7100fd2a1d5b9f1c695cb0627' })));
|
|
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: '
|
|
51
|
+
return (h(Host, { key: 'ac98ada1875cd52eb792c6278e35a5edfcfe7a86', class: "xv-overflow-menu", size: this.size, role: "menu", tabindex: -1 }, h("button", { key: '1f7a95c0e623c61ecb4504883963f15edadb47fb', class: { btn: true, open: this.open }, onClick: this.onOpenToggle, disabled: this.disabled }, h("svg", { key: '735fa37090d0d987f4748017444cad826c9e006f', xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 128 512" }, h("path", { key: 'b8a29d4b07ea30c435e6f3b676fd07ed5eadde39', 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: 'abc1607b412969a671706db12e2f371a1befd446', class: { list: true, open: this.open, [`position-${this.position}`]: true } }, h("slot", { key: '06b3c8d8b1e9c867190b1a702c1227529a287191' }))));
|
|
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: '
|
|
8
|
+
return (h(Host, { key: 'e361aae88c2caf3795d46e1992bb973209c47150', status: this.status, class: { 'xv-progress-indicator-item': true } }, h("span", { key: '4d94ea470f239f9e7742a7d9e4b2a15f37e79005', class: "line" }), h("span", { key: '04c432c58a233866c961780f9f91631259043f53', class: "icon" }, h("svg", { key: '4ec6ba5a567111e125e1a97f3737fce2648bdc8c', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512" }, h("path", { key: 'a568af2807e83a77e5065caa565ad989d9669753', 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: 'cc891d86af27a398bd00ff11a11061a702df6f5e', class: "label" }, h("slot", { key: '61f05594336f9fb8ac071e673c15706d8b7b3bbf' }))));
|
|
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: '
|
|
59
|
+
return (h(Host, { key: 'e0d54d09855103a5d58d4ebe57d0996d39434edf', variant: this.variant, size: this.size, class: { 'xv-progress-indicator': true } }, h("slot", { key: 'ddda0e66166e4607e2cc4f76ee507df80adfb55e' })));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "xv-progress-indicator-v2"; }
|
|
62
62
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
.xv-tooltip[role=tooltip] {
|
|
2
|
+
position: absolute;
|
|
3
|
+
background-color: var(--background-inverse, #333333);
|
|
4
|
+
color: var(--text-on-color);
|
|
5
|
+
padding: var(--spacing-03) var(--spacing-04);
|
|
6
|
+
border-radius: 3px;
|
|
7
|
+
font-size: var(--fz-sm);
|
|
8
|
+
z-index: 999;
|
|
9
|
+
min-width: min(150px, 90vw);
|
|
10
|
+
max-width: min(400px, 90vw);
|
|
11
|
+
}
|
|
12
|
+
.xv-tooltip[role=tooltip]::after {
|
|
13
|
+
content: "";
|
|
14
|
+
position: absolute;
|
|
15
|
+
width: 0;
|
|
16
|
+
height: 0;
|
|
17
|
+
border-style: solid;
|
|
18
|
+
}
|
|
19
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top]::after {
|
|
20
|
+
bottom: -5px;
|
|
21
|
+
left: 50%;
|
|
22
|
+
transform: translateX(-50%);
|
|
23
|
+
border-width: 5px 5px 0 5px;
|
|
24
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
25
|
+
}
|
|
26
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-start]::after {
|
|
27
|
+
bottom: -5px;
|
|
28
|
+
left: 12px;
|
|
29
|
+
border-width: 5px 5px 0 5px;
|
|
30
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
31
|
+
}
|
|
32
|
+
.xv-tooltip[role=tooltip][data-popper-placement=top-end]::after {
|
|
33
|
+
bottom: -5px;
|
|
34
|
+
right: 12px;
|
|
35
|
+
border-width: 5px 5px 0 5px;
|
|
36
|
+
border-color: var(--background-inverse, black) transparent transparent transparent;
|
|
37
|
+
}
|
|
38
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom]::after {
|
|
39
|
+
top: -5px;
|
|
40
|
+
left: 50%;
|
|
41
|
+
transform: translateX(-50%);
|
|
42
|
+
border-width: 0 5px 5px 5px;
|
|
43
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
44
|
+
}
|
|
45
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-start]::after {
|
|
46
|
+
top: -5px;
|
|
47
|
+
left: 12px;
|
|
48
|
+
border-width: 0 5px 5px 5px;
|
|
49
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
50
|
+
}
|
|
51
|
+
.xv-tooltip[role=tooltip][data-popper-placement=bottom-end]::after {
|
|
52
|
+
top: -5px;
|
|
53
|
+
right: 12px;
|
|
54
|
+
border-width: 0 5px 5px 5px;
|
|
55
|
+
border-color: transparent transparent var(--background-inverse, black) transparent;
|
|
56
|
+
}
|
|
57
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left]::after {
|
|
58
|
+
top: 50%;
|
|
59
|
+
right: -5px;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
border-width: 5px 0 5px 5px;
|
|
62
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
63
|
+
}
|
|
64
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-start]::after {
|
|
65
|
+
top: 12px;
|
|
66
|
+
right: -5px;
|
|
67
|
+
border-width: 5px 0 5px 5px;
|
|
68
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
69
|
+
}
|
|
70
|
+
.xv-tooltip[role=tooltip][data-popper-placement=left-end]::after {
|
|
71
|
+
bottom: 12px;
|
|
72
|
+
right: -5px;
|
|
73
|
+
border-width: 5px 0 5px 5px;
|
|
74
|
+
border-color: transparent transparent transparent var(--background-inverse, black);
|
|
75
|
+
}
|
|
76
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right]::after {
|
|
77
|
+
top: 50%;
|
|
78
|
+
left: -5px;
|
|
79
|
+
transform: translateY(-50%);
|
|
80
|
+
border-width: 5px 5px 5px 0;
|
|
81
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
82
|
+
}
|
|
83
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-start]::after {
|
|
84
|
+
top: 12px;
|
|
85
|
+
left: -5px;
|
|
86
|
+
border-width: 5px 5px 5px 0;
|
|
87
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
88
|
+
}
|
|
89
|
+
.xv-tooltip[role=tooltip][data-popper-placement=right-end]::after {
|
|
90
|
+
bottom: 12px;
|
|
91
|
+
left: -5px;
|
|
92
|
+
border-width: 5px 5px 5px 0;
|
|
93
|
+
border-color: transparent var(--background-inverse, black) transparent transparent;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: var(--spacing-03, 8px);
|
|
100
|
+
text-align: left;
|
|
101
|
+
font-family: var(--ff-body);
|
|
102
|
+
}
|
|
103
|
+
:host .label {
|
|
104
|
+
color: var(--text-secondary, #515151);
|
|
105
|
+
font-size: var(--fz-sm);
|
|
106
|
+
font-weight: 700;
|
|
107
|
+
line-height: var(--fz-md);
|
|
108
|
+
letter-spacing: 0.32px;
|
|
109
|
+
}
|
|
110
|
+
:host .control {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: var(--spacing-04, 12px);
|
|
114
|
+
}
|
|
115
|
+
:host .control_label {
|
|
116
|
+
text-align: center;
|
|
117
|
+
color: var(--text-primary, #333);
|
|
118
|
+
font-size: var(--fz-md);
|
|
119
|
+
font-weight: 400;
|
|
120
|
+
line-height: var(--fz-lg);
|
|
121
|
+
letter-spacing: 0.32px;
|
|
122
|
+
}
|
|
123
|
+
:host .control input[type=range] {
|
|
124
|
+
flex: 1;
|
|
125
|
+
appearance: none;
|
|
126
|
+
height: 4px;
|
|
127
|
+
border-radius: 2px;
|
|
128
|
+
outline: none;
|
|
129
|
+
background-color: var(--border-subtle-01, #D1D1D1);
|
|
130
|
+
background-image: linear-gradient(var(--interactive-02), var(--interactive-02));
|
|
131
|
+
background-repeat: no-repeat;
|
|
132
|
+
}
|
|
133
|
+
:host .control input[type=range]::-webkit-slider-thumb {
|
|
134
|
+
appearance: none;
|
|
135
|
+
width: 20px;
|
|
136
|
+
height: 20px;
|
|
137
|
+
border-radius: 50%;
|
|
138
|
+
background-color: var(--interactive-02, #96bf00);
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
border: 2px solid transparent;
|
|
141
|
+
outline: 2px solid transparent;
|
|
142
|
+
transition: 200ms ease-in-out border-color, 200ms ease-in-out outline-color;
|
|
143
|
+
}
|
|
144
|
+
:host .control input[type=range]::-moz-range-thumb {
|
|
145
|
+
width: 20px;
|
|
146
|
+
height: 20px;
|
|
147
|
+
border-radius: 50%;
|
|
148
|
+
background-color: var(--interactive-02, #96bf00);
|
|
149
|
+
border: 2px solid transparent;
|
|
150
|
+
outline: 2px solid transparent;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
transition: 200ms ease-in-out border-color, 200ms ease-in-out outline-color;
|
|
153
|
+
}
|
|
154
|
+
:host .control input[type=range]:focus::-webkit-slider-thumb {
|
|
155
|
+
border-color: white;
|
|
156
|
+
outline-color: var(--focus);
|
|
157
|
+
}
|
|
158
|
+
:host .control input[type=range]:focus::-moz-range-thumb {
|
|
159
|
+
border-color: white;
|
|
160
|
+
outline-color: var(--focus);
|
|
161
|
+
}
|
|
162
|
+
:host .control input[type=number] {
|
|
163
|
+
inline-size: 3.7em;
|
|
164
|
+
padding: var(--spacing-04) var(--spacing-02) var(--spacing-04) var(--spacing-04);
|
|
165
|
+
text-align: center;
|
|
166
|
+
border-radius: 3px;
|
|
167
|
+
background: var(--field-02, #FFF);
|
|
168
|
+
box-shadow: 0 0 0 1px #8B8B8B inset;
|
|
169
|
+
border: none;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host(.disabled) .label,
|
|
173
|
+
:host(.disabled) .control_label,
|
|
174
|
+
:host(.disabled) input[type=number] {
|
|
175
|
+
color: var(--text-disabled, rgba(19, 19, 19, 0.25));
|
|
176
|
+
}
|
|
177
|
+
:host(.disabled) .control input[type=range] {
|
|
178
|
+
background-image: none;
|
|
179
|
+
background-color: var(--border-subtle-01, #D1D1D1);
|
|
180
|
+
}
|
|
181
|
+
:host(.disabled) .control input[type=range]::-webkit-slider-thumb {
|
|
182
|
+
background-color: var(--border-subtle-01, #D1D1D1);
|
|
183
|
+
}
|
|
184
|
+
:host(.disabled) .control input[type=range]::-moz-range-thumb {
|
|
185
|
+
background-color: var(--border-subtle-01, #D1D1D1);
|
|
186
|
+
}
|
|
187
|
+
:host(.disabled) .control input[type=number] {
|
|
188
|
+
background-color: var(--field-01, #F7F7F7);
|
|
189
|
+
box-shadow: none;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
:host(.readonly) input[type=number] {
|
|
193
|
+
box-shadow: none;
|
|
194
|
+
outline: none;
|
|
195
|
+
background-color: var(--field-01, #F7F7F7);
|
|
196
|
+
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class XvSlider {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.label = '';
|
|
5
|
+
this.name = 'range';
|
|
6
|
+
this.min = 0;
|
|
7
|
+
this.max = 100;
|
|
8
|
+
this.value = 0;
|
|
9
|
+
this.step = 1;
|
|
10
|
+
this.disabled = false;
|
|
11
|
+
this.readonly = false;
|
|
12
|
+
this.handleInput = (e) => {
|
|
13
|
+
if (this.readonly || this.disabled)
|
|
14
|
+
return;
|
|
15
|
+
this.setValue(Number(e.target.value));
|
|
16
|
+
};
|
|
17
|
+
this.handleNumberInput = (e) => {
|
|
18
|
+
const val = Number(e.target.value);
|
|
19
|
+
if (!isNaN(val) && val >= this.min && val <= this.max)
|
|
20
|
+
this.setValue(val);
|
|
21
|
+
};
|
|
22
|
+
this.handleNumberBlur = (e) => {
|
|
23
|
+
var _a;
|
|
24
|
+
const input = e.target;
|
|
25
|
+
const val = Number(input.value);
|
|
26
|
+
if (val !== this.value) {
|
|
27
|
+
input.value = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
setValue(value) {
|
|
32
|
+
this.value = value;
|
|
33
|
+
this.valueChange.emit(value);
|
|
34
|
+
this.internals.setFormValue((value === null || value === void 0 ? void 0 : value.toString()) || '');
|
|
35
|
+
}
|
|
36
|
+
componentWillLoad() {
|
|
37
|
+
if (!this.value && this.min)
|
|
38
|
+
this.setValue(this.min);
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return (h(Host, { key: 'bc52bc43fcd89ff54a5f4c72028b828dee0f3534', class: { disabled: this.disabled, readonly: this.readonly } }, this.label && h("label", { key: 'ed6b049b472ff67c74742b798843ec478be2edbe', class: "label" }, this.label), h("div", { key: 'd0c489484df1b8f36991ebc1b6ef7a788a2ae803', class: "control" }, h("span", { key: '6457a220620154e11f1c013db22e43804c388d15', class: "control_label" }, this.min), h("input", { key: '26487c6895137b3c0a9132f939502efcada741b1', type: "range", disabled: this.disabled || this.readonly, readonly: this.readonly, name: this.name, min: this.min, max: this.max, step: this.step, value: this.value, onInput: this.handleInput, style: { backgroundSize: `${((this.value - this.min) * 100) / (this.max - this.min)}% 100%` } }), h("span", { key: '3cfd88bf4ffdbb1c664943df63fb5052a617c7eb', class: "control_label" }, this.max), !this.notEditable && (h("input", { key: '51a7fbaad3009b9b048db7cc78f847ad6fc40d51', type: "number", disabled: this.disabled, readonly: this.readonly, name: `${this.name}-number-input`, step: this.step, min: this.min, max: this.max, value: this.value, onInput: this.handleNumberInput, onBlur: this.handleNumberBlur })))));
|
|
42
|
+
}
|
|
43
|
+
static get is() { return "xv-slider-v2"; }
|
|
44
|
+
static get encapsulation() { return "shadow"; }
|
|
45
|
+
static get formAssociated() { return true; }
|
|
46
|
+
static get originalStyleUrls() {
|
|
47
|
+
return {
|
|
48
|
+
"$": ["xv-slider.scss"]
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
static get styleUrls() {
|
|
52
|
+
return {
|
|
53
|
+
"$": ["xv-slider.css"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get properties() {
|
|
57
|
+
return {
|
|
58
|
+
"label": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"attribute": "label",
|
|
61
|
+
"mutable": false,
|
|
62
|
+
"complexType": {
|
|
63
|
+
"original": "string",
|
|
64
|
+
"resolved": "string",
|
|
65
|
+
"references": {}
|
|
66
|
+
},
|
|
67
|
+
"required": false,
|
|
68
|
+
"optional": false,
|
|
69
|
+
"docs": {
|
|
70
|
+
"tags": [],
|
|
71
|
+
"text": ""
|
|
72
|
+
},
|
|
73
|
+
"getter": false,
|
|
74
|
+
"setter": false,
|
|
75
|
+
"reflect": false,
|
|
76
|
+
"defaultValue": "''"
|
|
77
|
+
},
|
|
78
|
+
"name": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"attribute": "name",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "string",
|
|
84
|
+
"resolved": "string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": ""
|
|
92
|
+
},
|
|
93
|
+
"getter": false,
|
|
94
|
+
"setter": false,
|
|
95
|
+
"reflect": false,
|
|
96
|
+
"defaultValue": "'range'"
|
|
97
|
+
},
|
|
98
|
+
"min": {
|
|
99
|
+
"type": "number",
|
|
100
|
+
"attribute": "min",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "number",
|
|
104
|
+
"resolved": "number",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": ""
|
|
112
|
+
},
|
|
113
|
+
"getter": false,
|
|
114
|
+
"setter": false,
|
|
115
|
+
"reflect": false,
|
|
116
|
+
"defaultValue": "0"
|
|
117
|
+
},
|
|
118
|
+
"max": {
|
|
119
|
+
"type": "number",
|
|
120
|
+
"attribute": "max",
|
|
121
|
+
"mutable": false,
|
|
122
|
+
"complexType": {
|
|
123
|
+
"original": "number",
|
|
124
|
+
"resolved": "number",
|
|
125
|
+
"references": {}
|
|
126
|
+
},
|
|
127
|
+
"required": false,
|
|
128
|
+
"optional": false,
|
|
129
|
+
"docs": {
|
|
130
|
+
"tags": [],
|
|
131
|
+
"text": ""
|
|
132
|
+
},
|
|
133
|
+
"getter": false,
|
|
134
|
+
"setter": false,
|
|
135
|
+
"reflect": false,
|
|
136
|
+
"defaultValue": "100"
|
|
137
|
+
},
|
|
138
|
+
"value": {
|
|
139
|
+
"type": "number",
|
|
140
|
+
"attribute": "value",
|
|
141
|
+
"mutable": true,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "number",
|
|
144
|
+
"resolved": "number",
|
|
145
|
+
"references": {}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": false,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": ""
|
|
152
|
+
},
|
|
153
|
+
"getter": false,
|
|
154
|
+
"setter": false,
|
|
155
|
+
"reflect": false,
|
|
156
|
+
"defaultValue": "0"
|
|
157
|
+
},
|
|
158
|
+
"step": {
|
|
159
|
+
"type": "number",
|
|
160
|
+
"attribute": "step",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "number",
|
|
164
|
+
"resolved": "number",
|
|
165
|
+
"references": {}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": ""
|
|
172
|
+
},
|
|
173
|
+
"getter": false,
|
|
174
|
+
"setter": false,
|
|
175
|
+
"reflect": false,
|
|
176
|
+
"defaultValue": "1"
|
|
177
|
+
},
|
|
178
|
+
"disabled": {
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"attribute": "disabled",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "boolean",
|
|
184
|
+
"resolved": "boolean",
|
|
185
|
+
"references": {}
|
|
186
|
+
},
|
|
187
|
+
"required": false,
|
|
188
|
+
"optional": false,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": ""
|
|
192
|
+
},
|
|
193
|
+
"getter": false,
|
|
194
|
+
"setter": false,
|
|
195
|
+
"reflect": false,
|
|
196
|
+
"defaultValue": "false"
|
|
197
|
+
},
|
|
198
|
+
"readonly": {
|
|
199
|
+
"type": "boolean",
|
|
200
|
+
"attribute": "readonly",
|
|
201
|
+
"mutable": false,
|
|
202
|
+
"complexType": {
|
|
203
|
+
"original": "boolean",
|
|
204
|
+
"resolved": "boolean",
|
|
205
|
+
"references": {}
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": false,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
},
|
|
213
|
+
"getter": false,
|
|
214
|
+
"setter": false,
|
|
215
|
+
"reflect": false,
|
|
216
|
+
"defaultValue": "false"
|
|
217
|
+
},
|
|
218
|
+
"notEditable": {
|
|
219
|
+
"type": "boolean",
|
|
220
|
+
"attribute": "not-editable",
|
|
221
|
+
"mutable": false,
|
|
222
|
+
"complexType": {
|
|
223
|
+
"original": "boolean",
|
|
224
|
+
"resolved": "boolean",
|
|
225
|
+
"references": {}
|
|
226
|
+
},
|
|
227
|
+
"required": false,
|
|
228
|
+
"optional": true,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [],
|
|
231
|
+
"text": ""
|
|
232
|
+
},
|
|
233
|
+
"getter": false,
|
|
234
|
+
"setter": false,
|
|
235
|
+
"reflect": false
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
static get events() {
|
|
240
|
+
return [{
|
|
241
|
+
"method": "valueChange",
|
|
242
|
+
"name": "valueChange",
|
|
243
|
+
"bubbles": true,
|
|
244
|
+
"cancelable": true,
|
|
245
|
+
"composed": true,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": ""
|
|
249
|
+
},
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "number",
|
|
252
|
+
"resolved": "number",
|
|
253
|
+
"references": {}
|
|
254
|
+
}
|
|
255
|
+
}];
|
|
256
|
+
}
|
|
257
|
+
static get attachInternalsMemberName() { return "internals"; }
|
|
258
|
+
}
|
|
259
|
+
//# sourceMappingURL=xv-slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xv-slider.js","sourceRoot":"","sources":["../../../src/components/xv-slider/xv-slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,eAAe,EAAE,MAAM,eAAe,CAAC;AAQ/F,MAAM,OAAO,QAAQ;IANrB;QAOU,UAAK,GAAW,EAAE,CAAC;QACnB,SAAI,GAAW,OAAO,CAAC;QACvB,QAAG,GAAW,CAAC,CAAC;QAChB,QAAG,GAAW,GAAG,CAAC;QACD,UAAK,GAAW,CAAC,CAAC;QACnC,SAAI,GAAW,CAAC,CAAC;QACjB,aAAQ,GAAY,KAAK,CAAC;QAC1B,aAAQ,GAAY,KAAK,CAAC;QAY1B,gBAAW,GAAG,CAAC,CAAQ,EAAE,EAAE;YACjC,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC3C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9D,CAAC,CAAC;QAEM,sBAAiB,GAAG,CAAC,CAAQ,EAAE,EAAE;YACvC,MAAM,GAAG,GAAG,MAAM,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAC;YACzD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG;gBAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC5E,CAAC,CAAC;QAEM,qBAAgB,GAAG,CAAC,CAAa,EAAE,EAAE;;YAC3C,MAAM,KAAK,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC3C,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YAChC,IAAI,GAAG,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;gBACvB,KAAK,CAAC,KAAK,GAAG,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,QAAQ,EAAE,KAAI,EAAE,CAAC;YAC7C,CAAC;QACH,CAAC,CAAA;KA4CF;IAlES,QAAQ,CAAC,KAAc;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,EAAE,KAAI,EAAE,CAAC,CAAC;IACvD,CAAC;IAoBD,iBAAiB;QACf,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG;YAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvD,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YAC9D,IAAI,CAAC,KAAK,IAAI,8DAAO,KAAK,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAS;YACxD,4DAAK,KAAK,EAAC,SAAS;gBAClB,6DAAM,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,GAAG,CAAQ;gBAC7C,8DACE,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,GAC7F;gBACF,6DAAM,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,GAAG,CAAQ;gBAE5C,CAAC,IAAI,CAAC,WAAW,IAAI,CACpB,8DACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,eAAe,EACjC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAC/B,MAAM,EAAE,IAAI,CAAC,gBAAgB,GAC7B,CACH,CACG,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter, AttachInternals } from '@stencil/core';\n\n@Component({\n tag: 'xv-slider-v2',\n styleUrl: 'xv-slider.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class XvSlider {\n @Prop() label: string = '';\n @Prop() name: string = 'range';\n @Prop() min: number = 0;\n @Prop() max: number = 100;\n @Prop({ mutable: true }) value: number = 0;\n @Prop() step: number = 1;\n @Prop() disabled: boolean = false;\n @Prop() readonly: boolean = false;\n @Prop({ attribute: 'not-editable'}) notEditable?: boolean;\n\n @Event() valueChange: EventEmitter<number>;\n @AttachInternals() internals: ElementInternals;\n\n private setValue(value?: number) {\n this.value = value;\n this.valueChange.emit(value);\n this.internals.setFormValue(value?.toString() || '');\n }\n\n private handleInput = (e: Event) => {\n if (this.readonly || this.disabled) return;\n this.setValue(Number((e.target as HTMLInputElement).value));\n };\n\n private handleNumberInput = (e: Event) => {\n const val = Number((e.target as HTMLInputElement).value);\n if (!isNaN(val) && val >= this.min && val <= this.max) this.setValue(val);\n };\n\n private handleNumberBlur = (e: FocusEvent) => {\n const input = e.target as HTMLInputElement;\n const val = Number(input.value);\n if (val !== this.value) {\n input.value = this.value?.toString() || '';\n }\n }\n\n componentWillLoad() {\n if (!this.value && this.min) this.setValue(this.min);\n }\n\n render() {\n return (\n <Host class={{ disabled: this.disabled, readonly: this.readonly }}>\n {this.label && <label class=\"label\">{this.label}</label>}\n <div class=\"control\">\n <span class=\"control_label\">{this.min}</span>\n <input\n type=\"range\"\n disabled={this.disabled || this.readonly}\n readonly={this.readonly}\n name={this.name}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.value}\n onInput={this.handleInput}\n style={{ backgroundSize: `${((this.value - this.min) * 100) / (this.max - this.min)}% 100%` }}\n />\n <span class=\"control_label\">{this.max}</span>\n\n {!this.notEditable && (\n <input\n type=\"number\"\n disabled={this.disabled}\n readonly={this.readonly}\n name={`${this.name}-number-input`}\n step={this.step}\n min={this.min}\n max={this.max}\n value={this.value}\n onInput={this.handleNumberInput}\n onBlur={this.handleNumberBlur}\n />\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -22,7 +22,7 @@ export class XvTableCell {
|
|
|
22
22
|
}
|
|
23
23
|
;
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '0ff4e7743d26ae139edab5c0cf05f318d9c7739a' }, h("slot", { key: '306dbcda28332ecbff1c12f2d13a78f824d5764e' })));
|
|
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: '
|
|
13
|
+
return (h(Host, { key: 'bb3f71c56acc05c72c972189b3cfb6bce71174d2' }, h("button", { key: '88ac42e78de16bd2065dbbb5fd8af630f5bb87f5', class: { 'expand-btn': true, open: this.open }, disabled: this.disabled, onClick: this.handleExpand }), h("slot", { key: '5c42fc002339bf4d4f9ec2ca966d6b3831a06ed7', name: XV_EXPANDABLE_KEY }), h("div", { key: '5ce78bde032772de86d679a427b794c3b3678fd2', class: { expandableContent: true, open: this.open } }, h("slot", { key: '00e7c36f570da6fe1a87e2f93dc7e35f32d939ba' }))));
|
|
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: '
|
|
45
|
+
return (h(Host, { key: '9064d413593ea0efcb3c1e23a39493a1af431216' }, this.variant !== undefined && (h("xv-table-v2-cell", { key: 'b9c942e3f762eea413238968521f1fa2c1232155', class: "cell-control" }, this.variant === 'checkbox' && (h("xv-checkbox-v2", { key: '2cb2dc9c7f417d936cf4f031e9647977a9768ca5', 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: '0f0e7eed6074b9e39d4056b5b6347abf864adf5d', type: "radio", name: this.name, checked: this.checked || this.partial, disabled: this.disabled, required: this.required, readonly: this.readonly })))), h("slot", { key: '4c0b0ea47a4a7019aa3ea0cf63c61c8a78d266f3' })));
|
|
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: '
|
|
34
|
+
return (h(Host, { key: '42f9f09a80a6acfa4e23d01aabe863bac78d1660', class: { batchVisible: !!this.selectedCount } }, h("slot", { key: 'c7ba5c949b8791471455165fb15100da6415914e', name: "title" }, !!this.el.title && h("h2", { key: 'ac0c07aa81781b826cb2b8f079faa62a5a0a30dc', class: "xv-table-title" }, this.el.title)), h("slot", { key: 'e32853c93bd0a30a2ed51829b2beffc9c9678d4a', name: "toolbar" }), h("div", { key: 'fe834bc3f26f49a7904f019f968635047250566a', class: "xv-table" }, h("div", { key: 'f73e6e59ef8a90349374bce2a280cdac6f35e5ec', class: "batch-actions" }, h(Fragment, { key: 'eb05cd81ecea111cde8990df18537bead9ee424d' }, h("div", { key: 'fd9bf66b77916300cf3ad7acc96ef27ea221bc04', class: "batch-actions_content" }, h("slot", { key: 'ca7fb6a465b676cdb20350b4b0c18b12feeba59f', name: "batch" })), h("p", { key: '7f462fdb0595bf66035b2e0e621eb036707626e2', class: "batch-actions_count" }, !!this.selectedCount && `${this.selectedCount} ${this.selectedCount === 1 ? 'Position ausgewählt' : 'Positionen ausgewählt'}`))), h("div", { key: '19e6a08cf465700d7df09cf5840bfa97d4c03e5c', class: "xv-table_wrapper" }, h("slot", { key: '1f8d166befb4a242b524e4858be5c26ceb0444e3' }), h("slot", { key: '6c3efa81cbae42d06cc481240087edb6dc5ae2ed', name: "footer" })), !!this.loading && (h("div", { key: 'a3faa26e82c7b1f04cb36c23aaac60e2f856d825', class: "xv-table_loading" }, h("xv-loader-v2", { key: '15bb92a650da85837d6386ce5b8079be45076a97', 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: '
|
|
9
|
+
return (h(Host, { key: '8255e99fd6bfbfafb007c614c00155f9dcbec5a2', 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"; }
|
|
@@ -13,7 +13,7 @@ export class XvTag {
|
|
|
13
13
|
this.closeClick.emit(e);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '4157ec86e85d4012ae97a4e14ff8607f0a90c7b3', style: { color: this.color, background: this.bg }, class: `xv-tag ${this.disabled ? 'disabled' : ''} ${this.size}` }, h("div", { key: '0db42f839ab10c44073e342abdfc2722887d1ac3', class: "xv-tag_content" }, h("slot", { key: '739f63c8532525b2a3710f52991b9dc3816c2645' })), this.closeable && (h("button", { key: 'e579695b23db9562a6ba48cce8762cc42c576282', onClick: this.closeHandler.bind(this), class: "xv-tag_close" }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "xv-tag-v2"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,13 +19,13 @@ export class XvTextInput {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '3c060564de6fd899b5e0b09e48e66577274f4b5b', class: { disabled: !!this.disabled } }, h("label", { key: 'ddfcbcfcf85c69ede6eb0afe69fd72efcd1fa3de', class: "control" }, this.label && h("span", { key: 'd6c6d158ccce7267d3520c9a13fd8a37211a7543', class: "control_label" }, this.label), h("div", { key: '8514459bed1048f792dcafc157e5d9e6817be5d9', class: {
|
|
23
23
|
'control_input': true,
|
|
24
24
|
readonly: !!this.readonly,
|
|
25
25
|
[this.size]: true,
|
|
26
26
|
error: !!this.error,
|
|
27
27
|
warning: !!this.warning,
|
|
28
|
-
} }, h("input", { key: '
|
|
28
|
+
} }, h("input", { key: '94f3f1f855b3e7cd30370dad028b56f8d1a9f206', autocomplete: this.autocomplete, type: this.type, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, onInput: this.handleInput, name: this.name, value: this.value }), h("div", { key: '2a30c0b835f680247c7022f0c7e85c260253bd97', class: "control_input__icons" }, this.loading && h("xv-loader-v2", { key: 'dd1bc2517e789b937abcbb93ea5b7610442e7f12', 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))), this.helper && h("p", { key: '408e8ddebe99e3eafc27bd8809d4d9212d35b08c', 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));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "xv-text-input-v2"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|