@scania/tegel 1.13.0 → 1.13.2
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-ca8040ad.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +10 -2
- package/dist/cjs/tds-popover-core.cjs.entry.js +5 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +10 -2
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +85 -0
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +5 -5
- package/dist/cjs/tds-table-body-row.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +85 -0
- package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tds-toast.cjs.entry.js +3 -3
- package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js +36 -2
- package/dist/collection/components/popover-core/popover-core.js +26 -1
- package/dist/collection/components/popover-menu/popover-menu.js +36 -2
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +62 -0
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +124 -0
- package/dist/collection/components/table/table-body-row/table-body-row.js +2 -2
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +2 -0
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +4 -4
- package/dist/collection/components/table/table-footer/table-footer.js +2 -2
- package/dist/collection/components/table/table-header/table-header.js +2 -2
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +1 -1
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +53 -0
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +141 -0
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
- package/dist/collection/components/text-field/text-field.js +5 -5
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/{p-82e02472.js → p-a9609e88.js} +14 -4
- package/dist/components/{p-f0240c00.js → p-dc461e7b.js} +7 -2
- package/dist/components/tds-folder-tab.js +2 -2
- package/dist/components/tds-folder-tabs.js +2 -2
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown.js +2 -2
- package/dist/components/tds-header-launcher.js +2 -2
- package/dist/components/tds-inline-tab.js +2 -2
- package/dist/components/tds-inline-tabs.js +2 -2
- package/dist/components/tds-navigation-tab.js +2 -2
- package/dist/components/tds-navigation-tabs.js +2 -2
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu.js +14 -4
- package/dist/components/tds-table-body-input-wrapper.d.ts +11 -0
- package/dist/components/tds-table-body-input-wrapper.js +112 -0
- package/dist/components/tds-table-body-row-expandable.js +5 -5
- package/dist/components/tds-table-body-row.js +2 -2
- package/dist/components/tds-table-footer.js +2 -2
- package/dist/components/tds-table-header-input-wrapper.d.ts +11 -0
- package/dist/components/tds-table-header-input-wrapper.js +112 -0
- package/dist/components/tds-table-header.js +2 -2
- package/dist/components/tds-table-toolbar.js +2 -2
- package/dist/components/tds-text-field.js +5 -5
- package/dist/components/tds-textarea.js +3 -3
- package/dist/components/tds-toast.js +3 -3
- package/dist/components/tds-toggle.js +1 -1
- package/dist/components/tds-tooltip.js +3 -3
- package/dist/esm/index-51d04e39.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-folder-tab.entry.js +2 -2
- package/dist/esm/tds-folder-tabs.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +2 -2
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +2 -2
- package/dist/esm/tds-popover-canvas.entry.js +10 -2
- package/dist/esm/tds-popover-core.entry.js +5 -1
- package/dist/esm/tds-popover-menu.entry.js +10 -2
- package/dist/esm/tds-table-body-input-wrapper.entry.js +81 -0
- package/dist/esm/tds-table-body-row-expandable.entry.js +5 -5
- package/dist/esm/tds-table-body-row.entry.js +2 -2
- package/dist/esm/tds-table-footer.entry.js +2 -2
- package/dist/esm/tds-table-header-input-wrapper.entry.js +81 -0
- package/dist/esm/tds-table-header.entry.js +2 -2
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-text-field.entry.js +5 -5
- package/dist/esm/tds-textarea.entry.js +3 -3
- package/dist/esm/tds-toast.entry.js +3 -3
- package/dist/esm/tds-toggle.entry.js +1 -1
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-0a4fe3db.entry.js +1 -0
- package/dist/tegel/{p-b6dd7392.entry.js → p-1ba22b41.entry.js} +1 -1
- package/dist/tegel/{p-f43bfa17.entry.js → p-2da2c193.entry.js} +1 -1
- package/dist/tegel/{p-a4bcae48.entry.js → p-3e859e33.entry.js} +1 -1
- package/dist/tegel/{p-bddc3443.entry.js → p-480c6c28.entry.js} +1 -1
- package/dist/tegel/p-4bab99d5.entry.js +1 -0
- package/dist/tegel/{p-456fa517.entry.js → p-56dfd78a.entry.js} +1 -1
- package/dist/tegel/{p-b5b95994.entry.js → p-578f6d73.entry.js} +1 -1
- package/dist/tegel/{p-f3876938.entry.js → p-5c0bb8e1.entry.js} +1 -1
- package/dist/tegel/{p-cf34d35e.entry.js → p-80edba0f.entry.js} +1 -1
- package/dist/tegel/p-9de400f4.entry.js +1 -0
- package/dist/tegel/{p-cb3bdd79.entry.js → p-a97dd06a.entry.js} +1 -1
- package/dist/tegel/{p-657273a9.entry.js → p-ac09f8d4.entry.js} +1 -1
- package/dist/tegel/{p-ddf91fe4.entry.js → p-ada411aa.entry.js} +1 -1
- package/dist/tegel/{p-2570419b.entry.js → p-b34cf70d.entry.js} +1 -1
- package/dist/tegel/{p-1ad6baed.entry.js → p-b8593b29.entry.js} +1 -1
- package/dist/tegel/{p-4af1e025.entry.js → p-c12eaac3.entry.js} +1 -1
- package/dist/tegel/{p-db7244a0.entry.js → p-cd289e17.entry.js} +1 -1
- package/dist/tegel/{p-4c0dcd84.entry.js → p-e237cdcc.entry.js} +1 -1
- package/dist/tegel/{p-fce4b1ee.entry.js → p-e6a5dda4.entry.js} +1 -1
- package/dist/tegel/p-f0d46e61.entry.js +1 -0
- package/dist/tegel/{p-d14009a8.entry.js → p-f823777e.entry.js} +1 -1
- package/dist/tegel/tegel.css +3 -3
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +3 -0
- package/dist/types/components/popover-core/popover-core.d.ts +2 -0
- package/dist/types/components/popover-menu/popover-menu.d.ts +3 -0
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +16 -0
- package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +16 -0
- package/dist/types/components.d.ts +56 -0
- package/package.json +39 -29
- package/dist/tegel/p-3534e1a7.entry.js +0 -1
- package/dist/tegel/p-ba079890.entry.js +0 -1
|
@@ -58,12 +58,12 @@ export class TdsToast {
|
|
|
58
58
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
59
59
|
const usesSubheaderSlot = hasSlot('subheader', this.host);
|
|
60
60
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'f0ddc729628a45f868868f2b265f31d7df9a0411', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
|
|
62
62
|
hide: this.hidden,
|
|
63
63
|
show: !this.hidden,
|
|
64
|
-
} }, h("div", { key: '
|
|
64
|
+
} }, h("div", { key: '73e3f624e617544d84ec2c7306ace9fb990070b9', class: `
|
|
65
65
|
wrapper
|
|
66
|
-
${this.variant}` }, h("tds-icon", { key: '
|
|
66
|
+
${this.variant}` }, h("tds-icon", { key: 'bbeab9085851de6cc3d870421d8ea18c7e15471a', name: this.getIconName(), size: "20px" }), h("div", { key: '45b568761c09added6f0c3815d518fb541ba077a', class: `content` }, h("div", { key: '65aaac22e0b6439b3975e465493bc59e01ac7131', class: "header-subheader" }, this.header && h("div", { key: 'cd856ec5c2c118c52d942010f40cd90499f735b7', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '96157619f2e4fc59cd197bffb948cd4844d997b1', name: "header" }), this.subheader && h("div", { key: '3ba6782ba25b311d1c57b76791c0055db3f92ec2', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'e820491ceaa28771acd2b7661c5ddf7d9574a492', name: "subheader" })), usesActionsSlot && (h("div", { key: '72b25af2d7efbbb54b4f349c038c7efb684086f6', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '8c534d3b51d9f8c30148c0f601613d3395b8930e', name: "actions" })))), this.closable && (h("button", { key: 'a81bc7b2836bbec456260e80a1eb6e9d345ccdcf', onClick: this.handleClose, class: "close" }, h("tds-icon", { key: '7988501b679a147d62f6879db443bbfc64211871', name: "cross", size: "20px" }))))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "tds-toast"; }
|
|
69
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,7 +29,7 @@ export class TdsToggle {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '125bc9f156074abd27fcf74c67f2af2e26998741', class: "tds-toggle" }, this.headline && (h("div", { key: 'a72a46de4f01ebb31961f3c348329aed34b71294', class: `toggle-headline ${this.disabled ? 'disabled' : ''}` }, this.headline)), h("input", { key: '3ca94acbcd90d291e1b77ad8680ccd058b242023', "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), h("label", { key: '77cccf34c1737b5a55f6903f20a68bd7f109b2ed', class: `${this.disabled ? 'disabled' : ''}`, htmlFor: this.toggleId }, h("slot", { key: 'ad408d7719105369ca6e1b7465564c1126785f18', name: "label" }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "tds-toggle"; }
|
|
35
35
|
static get encapsulation() { return "scoped"; }
|
|
@@ -51,7 +51,7 @@ export class TdsTooltip {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
var _a;
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '93961300d93daf9eb0fa1f15e59c6bdfbea5f77b' }, h("tds-popover-core", Object.assign({ key: '1d2c6b17012d5040632df84b221eac247e890696' }, this.inheritedAttributes, { class: {
|
|
55
55
|
'tds-tooltip': true,
|
|
56
56
|
[`tds-tooltip-${this.border}`]: true,
|
|
57
57
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
@@ -60,7 +60,7 @@ export class TdsTooltip {
|
|
|
60
60
|
this.show = true;
|
|
61
61
|
}, onInternalTdsClose: () => {
|
|
62
62
|
this.show = false;
|
|
63
|
-
} }), this.text, h("slot", { key: '
|
|
63
|
+
} }), this.text, h("slot", { key: 'd5a4357f2875a0f5f9b958b26adb8cc6f794e900' }))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "tds-tooltip"; }
|
|
66
66
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { i as inheritAttributes } from './p-3fe9cbbf.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-dc461e7b.js';
|
|
4
4
|
|
|
5
5
|
const popoverCanvasCss = ".tds-popover-canvas.sc-tds-popover-canvas{box-sizing:border-box;display:inline-block;color:var(--tds-popover-canvas-color);background-color:var(--tds-popover-canvas-background);box-shadow:0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);border-radius:4px;z-index:900}.tds-popover-canvas.sc-tds-popover-canvas *.sc-tds-popover-canvas{box-sizing:border-box}";
|
|
6
6
|
const TdsPopoverCanvasStyle0 = popoverCanvasCss;
|
|
@@ -17,16 +17,24 @@ const TdsPopoverCanvas = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCanvas
|
|
|
17
17
|
this.offsetSkidding = 0;
|
|
18
18
|
this.offsetDistance = 8;
|
|
19
19
|
this.modifiers = [];
|
|
20
|
+
this.childRef = undefined;
|
|
21
|
+
}
|
|
22
|
+
/** Property for closing popover programmatically */
|
|
23
|
+
async close() {
|
|
24
|
+
var _a;
|
|
25
|
+
(_a = this.childRef) === null || _a === void 0 ? void 0 : _a.close();
|
|
20
26
|
}
|
|
21
27
|
componentWillLoad() {
|
|
22
28
|
this.inheritedAttributes = inheritAttributes(this.host, ['style', 'class']);
|
|
23
29
|
}
|
|
24
30
|
render() {
|
|
25
31
|
var _a;
|
|
26
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '6585164269ddef7083e5aed2bcfa4ea5ab7d32ba' }, h("tds-popover-core", Object.assign({ key: '9470ac2faa94611ece2c9394717a7bb9d63eb5b1' }, this.inheritedAttributes, { class: {
|
|
27
33
|
'tds-popover-canvas': true,
|
|
28
34
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
29
|
-
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click'
|
|
35
|
+
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
|
|
36
|
+
this.childRef = el;
|
|
37
|
+
} }), h("div", { key: '330a63a0ef5c9f057d877dae9977b8bc25987771' }, h("slot", { key: '38787385e51260e4a140f83d5eb22f03deb6e30e' })))));
|
|
30
38
|
}
|
|
31
39
|
get host() { return this; }
|
|
32
40
|
static get style() { return TdsPopoverCanvasStyle0; }
|
|
@@ -37,7 +45,9 @@ const TdsPopoverCanvas = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCanvas
|
|
|
37
45
|
"placement": [1],
|
|
38
46
|
"offsetSkidding": [2, "offset-skidding"],
|
|
39
47
|
"offsetDistance": [2, "offset-distance"],
|
|
40
|
-
"modifiers": [16]
|
|
48
|
+
"modifiers": [16],
|
|
49
|
+
"childRef": [32],
|
|
50
|
+
"close": [64]
|
|
41
51
|
}]);
|
|
42
52
|
function defineCustomElement() {
|
|
43
53
|
if (typeof customElements === "undefined") {
|
|
@@ -1839,6 +1839,10 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
|
|
|
1839
1839
|
this.target = undefined;
|
|
1840
1840
|
this.isShown = false;
|
|
1841
1841
|
}
|
|
1842
|
+
/** Property for closing popover programmatically */
|
|
1843
|
+
async close() {
|
|
1844
|
+
this.setIsShown(false);
|
|
1845
|
+
}
|
|
1842
1846
|
onAnyClick(event) {
|
|
1843
1847
|
if (this.trigger === 'click' && this.isShown && this.show === null) {
|
|
1844
1848
|
// Source: https://lamplightdev.com/blog/2021/04/10/how-to-detect-clicks-outside-of-a-web-component/
|
|
@@ -1950,7 +1954,7 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
|
|
|
1950
1954
|
if (this.autoHide) {
|
|
1951
1955
|
hostStyle = { display: this.isShown ? 'block' : 'none' };
|
|
1952
1956
|
}
|
|
1953
|
-
return (h(Host, { key: '
|
|
1957
|
+
return (h(Host, { key: '7829c25ef7722b84b829c59135df59cafd745338', style: hostStyle, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '0cf6fceefad0557bce25ac728d36ff177794ef96' })));
|
|
1954
1958
|
}
|
|
1955
1959
|
get host() { return this; }
|
|
1956
1960
|
static get watchers() { return {
|
|
@@ -1971,7 +1975,8 @@ const TdsPopoverCore = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCore ext
|
|
|
1971
1975
|
"renderedShowValue": [32],
|
|
1972
1976
|
"popperInstance": [32],
|
|
1973
1977
|
"target": [32],
|
|
1974
|
-
"isShown": [32]
|
|
1978
|
+
"isShown": [32],
|
|
1979
|
+
"close": [64]
|
|
1975
1980
|
}, [[8, "click", "onAnyClick"], [8, "internalTdsShow", "onTdsShow"]], {
|
|
1976
1981
|
"show": ["onShowChange"],
|
|
1977
1982
|
"referenceEl": ["onReferenceElChanged"],
|
|
@@ -21,8 +21,8 @@ const TdsFolderTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsFolderTab exten
|
|
|
21
21
|
this.selected = selected;
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
25
|
-
${this.selected ? 'selected' : ''}`, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '
|
|
24
|
+
return (h(Host, { key: '3c4a3fe10ff0011f1f9619232c2216cbfcbfb148', role: "listitem" }, h("div", { key: '61fb49491d4f0c2098277b33f13c41ca34782563', class: `${this.disabled ? 'disabled' : ''}
|
|
25
|
+
${this.selected ? 'selected' : ''}`, style: { width: `${this.tabWidth}px` } }, h("slot", { key: 'f57d05129e3185aa36887a84ff980b8a44ec20a4' }))));
|
|
26
26
|
}
|
|
27
27
|
static get style() { return TdsFolderTabStyle0; }
|
|
28
28
|
}, [1, "tds-folder-tab", {
|
|
@@ -166,9 +166,9 @@ const TdsFolderTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsFolderTabs ext
|
|
|
166
166
|
this.removeEventListenerFromTabs();
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
169
|
-
return (h(Host, { key: '
|
|
169
|
+
return (h(Host, { key: '748bacbb3d58d37735385a8c926dacb637d8eff1', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4c4f764a6a8c8a095bd1d030ef85a34014d8d284', class: "wrapper", ref: (el) => {
|
|
170
170
|
this.navWrapperElement = el;
|
|
171
|
-
} }, h("button", { key: '
|
|
171
|
+
} }, h("button", { key: 'ca859bdc9b9d10a7bcfaae194bbee508f308c1a2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '70aaa7044418b79234b9f3bd7eef2c1e0bf96e61', name: "chevron_left", size: "20px" })), h("slot", { key: 'ca1990c7333322885aa37b164cc7d74708b22116', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6321d42b6a42a9bf63ae844b94541f56806195fd', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: '40a0e7a3297bdf6d4abbe5fc62114020fdb7aee3', name: "chevron_right", size: "20px" })))));
|
|
172
172
|
}
|
|
173
173
|
get host() { return this; }
|
|
174
174
|
static get watchers() { return {
|
|
@@ -114,7 +114,7 @@ const TdsTableHeaderCell = /*@__PURE__*/ proxyCustomElement(class TdsTableHeader
|
|
|
114
114
|
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: '6a051465b3a5af5460f7c5ac112798b521f9b4a8', class: {
|
|
118
118
|
'tds-table__header-cell': true,
|
|
119
119
|
'tds-table__header-cell--sortable': this.sortable,
|
|
120
120
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
@@ -3,8 +3,8 @@ import { g as generateUniqueId } from './p-11648030.js';
|
|
|
3
3
|
import { d as defineCustomElement$6 } from './p-30de8ac4.js';
|
|
4
4
|
import { d as defineCustomElement$5 } from './p-0676aa23.js';
|
|
5
5
|
import { d as defineCustomElement$4 } from './p-3e74be57.js';
|
|
6
|
-
import { d as defineCustomElement$3 } from './p-
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$3 } from './p-a9609e88.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-dc461e7b.js';
|
|
8
8
|
|
|
9
9
|
const headerDropdownCss = ":host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host{height:var(--tds-header-height);position:relative}:host .menu{flex-direction:column;overflow-y:auto;max-height:calc(100vh - var(--tds-header-height));box-shadow:var(--tds-nav-dropdown-menu-box);background-color:var(--tds-header-app-launcher-menu-background);border-top-right-radius:0;border-top-left-radius:0}:host .menu:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .menu::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .menu::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .menu::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .menu::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .menu{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}:host .state-open .dropdown-icon{transform:rotatetds-z-index(180deg)}:host .state-open .button{position:relative;z-index:901}";
|
|
10
10
|
const TdsHeaderDropdownStyle0 = headerDropdownCss;
|
|
@@ -5,8 +5,8 @@ import { d as defineCustomElement$7 } from './p-30de8ac4.js';
|
|
|
5
5
|
import { d as defineCustomElement$6 } from './p-0676aa23.js';
|
|
6
6
|
import { d as defineCustomElement$5 } from './p-8e74bb22.js';
|
|
7
7
|
import { d as defineCustomElement$4 } from './p-3e74be57.js';
|
|
8
|
-
import { d as defineCustomElement$3 } from './p-
|
|
9
|
-
import { d as defineCustomElement$2 } from './p-
|
|
8
|
+
import { d as defineCustomElement$3 } from './p-a9609e88.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './p-dc461e7b.js';
|
|
10
10
|
|
|
11
11
|
const headerLauncherCss = ":host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host .wrapper{height:var(--tds-header-height);position:relative}:host .wrapper .menu{flex-direction:column;overflow-y:auto;max-height:calc(100vh - var(--tds-header-height));box-shadow:var(--tds-nav-dropdown-menu-box);background-color:var(--tds-header-app-launcher-menu-background);border-radius:0}:host .wrapper .menu:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .wrapper .menu::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .wrapper .menu::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .wrapper .menu::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .wrapper .menu::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .wrapper .menu{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}@media all and (max-width: 384px){:host .wrapper .menu{width:100vw}}:host .wrapper.state-list-type-menu .menu{height:calc(100vh - var(--tds-header-height))}:host .wrapper.state-open .button{position:relative;z-index:901}";
|
|
12
12
|
const TdsHeaderLauncherStyle0 = headerLauncherCss;
|
|
@@ -16,8 +16,8 @@ const TdsInlineTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTab exten
|
|
|
16
16
|
this.selected = selected;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
20
|
-
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '
|
|
19
|
+
return (h(Host, { key: '56d12f8a46ac69783e0f6cc060b9f99151fbe846', role: "listitem" }, h("div", { key: '01b43d6447a5122efaf0b8d58254708dad49fa39', class: `inline-tab-item ${this.selected ? 'selected' : ''}
|
|
20
|
+
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'bf865d7caa72ee0fa2aff284e55dd2a794ffb620' }))));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return TdsInlineTabStyle0; }
|
|
23
23
|
}, [1, "tds-inline-tab", {
|
|
@@ -166,9 +166,9 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
|
|
|
166
166
|
this.removeEventListenerFromTabs();
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
169
|
-
return (h(Host, { key: '
|
|
169
|
+
return (h(Host, { key: 'fdf1cc28637a8bd207c84aba91f60d145acd10c9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '068e21bac127323f56d858abf59c1f905a4ee315', class: "wrapper", ref: (el) => {
|
|
170
170
|
this.navWrapperElement = el;
|
|
171
|
-
} }, h("button", { key: '
|
|
171
|
+
} }, h("button", { key: '646917420741478a9492cec16c066833d3e3266e', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '939eb79ed238163057dcc8316f6efdec89262ff8', name: "chevron_left", size: "20px" })), h("slot", { key: 'f3306035cce33e3efb3e89ab4650c3781703f9e5', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6b2023939d94eb9f9822e25fd4facce715fdf227', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '0b2626c78903ce14239891aa667a61ed913097ac', name: "chevron_right", size: "20px" })))));
|
|
172
172
|
}
|
|
173
173
|
get host() { return this; }
|
|
174
174
|
static get watchers() { return {
|
|
@@ -16,8 +16,8 @@ const TdsNavigationTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigationT
|
|
|
16
16
|
this.selected = selected;
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
20
|
-
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '
|
|
19
|
+
return (h(Host, { key: 'f8daf87eb0fce9c5229c6223a4188875000b4003', role: "listitem" }, h("div", { key: '692831fb82b1822550b6d715977970b327cb3448', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
|
|
20
|
+
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'afe5caebb5389f4386aa6c6ab57f9a81d2482a61' }))));
|
|
21
21
|
}
|
|
22
22
|
static get style() { return TdsNavigationTabStyle0; }
|
|
23
23
|
}, [1, "tds-navigation-tab", {
|
|
@@ -164,9 +164,9 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
|
|
|
164
164
|
this.removeEventListenerFromTabs();
|
|
165
165
|
}
|
|
166
166
|
render() {
|
|
167
|
-
return (h(Host, { key: '
|
|
167
|
+
return (h(Host, { key: 'eaf7fd47f5f4132d7920d5deafb659828cab01e9', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '1fe0e2f45e6cf32175a3ef6c556aa63ba3b46b97', class: "wrapper", ref: (el) => {
|
|
168
168
|
this.navWrapperElement = el;
|
|
169
|
-
} }, h("button", { key: '
|
|
169
|
+
} }, h("button", { key: 'fa71abb901a1c6ab70dde90d759d9aa537a72ec2', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '0aff4668869fa761e03e8c81ed054561787beb49', name: "chevron_left", size: "20px" })), h("slot", { key: '169f8b9eb18a33fb4fc739863eaf4a730e066c83', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '9c9757d3c818191ce5aec5bbd64699c04dfc07db', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'e38ac8674d9e3e4aeaa67bd888cd411002353634', name: "chevron_right", size: "20px" })))));
|
|
170
170
|
}
|
|
171
171
|
get host() { return this; }
|
|
172
172
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TdsPopoverCanvas$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { T as TdsPopoverCanvas$1, d as defineCustomElement$1 } from './p-a9609e88.js';
|
|
2
2
|
|
|
3
3
|
const TdsPopoverCanvas = TdsPopoverCanvas$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { i as inheritAttributes } from './p-3fe9cbbf.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-dc461e7b.js';
|
|
4
4
|
|
|
5
5
|
const popoverMenuCss = ".tds-popover-menu.sc-tds-popover-menu{box-sizing:border-box;overflow:hidden;width:160px;background-color:var(--tds-popover-menu-background);padding:16px 6px;box-shadow:0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);border-radius:4px;z-index:900}.tds-popover-menu.sc-tds-popover-menu *.sc-tds-popover-menu{box-sizing:border-box}.tds-popover-menu.fluid-width.sc-tds-popover-menu{width:unset}tds-popover-core.sc-tds-popover-menu{padding:6px 0 !important}.sc-tds-popover-menu-s>tds-divider{display:block;padding:6px !important}";
|
|
6
6
|
const TdsPopoverMenuStyle0 = popoverMenuCss;
|
|
@@ -17,17 +17,25 @@ const TdsPopoverMenu$1 = /*@__PURE__*/ proxyCustomElement(class TdsPopoverMenu e
|
|
|
17
17
|
this.offsetSkidding = 0;
|
|
18
18
|
this.offsetDistance = 8;
|
|
19
19
|
this.fluidWidth = false;
|
|
20
|
+
this.childRef = undefined;
|
|
21
|
+
}
|
|
22
|
+
/** Property for closing popover programmatically */
|
|
23
|
+
async close() {
|
|
24
|
+
var _a;
|
|
25
|
+
(_a = this.childRef) === null || _a === void 0 ? void 0 : _a.close();
|
|
20
26
|
}
|
|
21
27
|
componentWillLoad() {
|
|
22
28
|
this.inheritedAttributes = inheritAttributes(this.host, ['style', 'class']);
|
|
23
29
|
}
|
|
24
30
|
render() {
|
|
25
31
|
var _a;
|
|
26
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '36c12148ce4507dd4b157fff5be30760d2374bdd' }, h("tds-popover-core", { key: '92d5abfd7e7213dcb22c92fa401a21dfeef76edd', class: {
|
|
27
33
|
'tds-popover-menu': true,
|
|
28
34
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
29
35
|
'fluid-width': this.fluidWidth,
|
|
30
|
-
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance
|
|
36
|
+
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
|
|
37
|
+
this.childRef = el;
|
|
38
|
+
} }, h("div", { key: '6b3a893d1d0a9c32a3846c7216a4fdac92a4222c', role: "list" }, h("slot", { key: 'cae075f5e187b5f59638f6f2a9ff8c38e716bcbb' })))));
|
|
31
39
|
}
|
|
32
40
|
get host() { return this; }
|
|
33
41
|
static get style() { return TdsPopoverMenuStyle0; }
|
|
@@ -38,7 +46,9 @@ const TdsPopoverMenu$1 = /*@__PURE__*/ proxyCustomElement(class TdsPopoverMenu e
|
|
|
38
46
|
"placement": [1],
|
|
39
47
|
"offsetSkidding": [2, "offset-skidding"],
|
|
40
48
|
"offsetDistance": [2, "offset-distance"],
|
|
41
|
-
"fluidWidth": [4, "fluid-width"]
|
|
49
|
+
"fluidWidth": [4, "fluid-width"],
|
|
50
|
+
"childRef": [32],
|
|
51
|
+
"close": [64]
|
|
42
52
|
}]);
|
|
43
53
|
function defineCustomElement$1() {
|
|
44
54
|
if (typeof customElements === "undefined") {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TdsTableBodyInputWrapper extends Components.TdsTableBodyInputWrapper, HTMLElement {}
|
|
4
|
+
export const TdsTableBodyInputWrapper: {
|
|
5
|
+
prototype: TdsTableBodyInputWrapper;
|
|
6
|
+
new (): TdsTableBodyInputWrapper;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-3e74be57.js';
|
|
3
|
+
|
|
4
|
+
const tableBodyInputWrapperCss = ":host{position:relative}:host(.focused-input-wrapper) tds-icon{display:inline-block}:host(.show-icon) ::slotted(input){padding-right:var(--tds-spacing-element-24)}:host(:hover) tds-icon{display:inline-block}:host(:hover) ::slotted(input:not(:focus)){background-color:var(--tds-table-input-background-hover)}tds-icon.edit-icon{display:none;position:absolute;right:10px;top:1px;pointer-events:none;cursor:pointer}::slotted(input){box-sizing:border-box;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding-left:var(--tds-spacing-element-16);padding-right:var(--tds-spacing-element-16);color:var(--tds-table-color);background-color:transparent;height:48px;border-radius:0;border:0;border-bottom:2px solid transparent;width:100%;cursor:pointer}::slotted(input)::placeholder{color:var(--tds-table-color)}::slotted(input:disabled){background-color:var(--tds-table-input-background-disabled)}::slotted(input:focus){outline:none;background-color:var(--tds-table-input-background-focus);border-bottom:2px solid var(--tds-text-field-bar)}:host(.tds-table__compact) ::slotted(input){height:32px;}";
|
|
5
|
+
const TdsTableBodyInputWrapperStyle0 = tableBodyInputWrapperCss;
|
|
6
|
+
|
|
7
|
+
const relevantTableProps = ['compactDesign'];
|
|
8
|
+
const TdsTableBodyInputWrapper$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyInputWrapper extends H {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.showIcon = true;
|
|
14
|
+
this.renderSlot = true;
|
|
15
|
+
this.inputFocused = false;
|
|
16
|
+
this.compactDesign = false;
|
|
17
|
+
this.tableId = '';
|
|
18
|
+
}
|
|
19
|
+
internalTdsPropChangeListener(event) {
|
|
20
|
+
if (this.tableId === event.detail.tableId) {
|
|
21
|
+
event.detail.changed
|
|
22
|
+
.filter((changedProp) => relevantTableProps.includes(changedProp))
|
|
23
|
+
.forEach((changedProp) => {
|
|
24
|
+
if (typeof this[changedProp] === 'undefined') {
|
|
25
|
+
console.error(`Table prop is not supported: ${changedProp}`); // More informative error
|
|
26
|
+
throw new Error(`Table prop is not supported: ${changedProp}`);
|
|
27
|
+
}
|
|
28
|
+
this[changedProp] = event.detail[changedProp];
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
connectedCallback() {
|
|
33
|
+
const tableEl = this.host.closest('tds-table');
|
|
34
|
+
if (tableEl) {
|
|
35
|
+
this.tableId = tableEl.getAttribute('table-id');
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
console.error('Failed to find parent tds-table element.');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
componentWillLoad() {
|
|
42
|
+
const tableEl = this.host.closest('tds-table');
|
|
43
|
+
if (tableEl) {
|
|
44
|
+
relevantTableProps.forEach((tablePropName) => {
|
|
45
|
+
this[tablePropName] = tableEl[tablePropName];
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
console.error('Failed to find parent tds-table element.');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
handleSlotChange() {
|
|
53
|
+
this.validateSlot();
|
|
54
|
+
}
|
|
55
|
+
validateSlot() {
|
|
56
|
+
const children = Array.from(this.host.children).filter((element) => element.tagName === 'INPUT');
|
|
57
|
+
if (children.length !== 1) {
|
|
58
|
+
console.warn('TABLE-BODY-INPUT-WRAPPER: Wrapper only accepts input as children.');
|
|
59
|
+
this.renderSlot = false;
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
if (!this.renderSlot)
|
|
63
|
+
this.renderSlot = true;
|
|
64
|
+
const input = children[0];
|
|
65
|
+
input.addEventListener('focus', () => {
|
|
66
|
+
this.inputFocused = true;
|
|
67
|
+
});
|
|
68
|
+
input.addEventListener('blur', () => {
|
|
69
|
+
this.inputFocused = false;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
return (h(Host, { key: 'c40a17a264d914934ea4f0e5c4a27b58f06d8055', class: {
|
|
75
|
+
'focused-input-wrapper': this.inputFocused,
|
|
76
|
+
'show-icon': this.showIcon,
|
|
77
|
+
'tds-table__compact': this.compactDesign,
|
|
78
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", { class: "edit-icon", slot: "icon", size: "16px", name: "edit" })) : null));
|
|
79
|
+
}
|
|
80
|
+
get host() { return this; }
|
|
81
|
+
static get style() { return TdsTableBodyInputWrapperStyle0; }
|
|
82
|
+
}, [1, "tds-table-body-input-wrapper", {
|
|
83
|
+
"showIcon": [4, "show-icon"],
|
|
84
|
+
"renderSlot": [32],
|
|
85
|
+
"inputFocused": [32],
|
|
86
|
+
"compactDesign": [32],
|
|
87
|
+
"tableId": [32]
|
|
88
|
+
}, [[16, "internalTdsTablePropChange", "internalTdsPropChangeListener"]]]);
|
|
89
|
+
function defineCustomElement$1() {
|
|
90
|
+
if (typeof customElements === "undefined") {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const components = ["tds-table-body-input-wrapper", "tds-icon"];
|
|
94
|
+
components.forEach(tagName => { switch (tagName) {
|
|
95
|
+
case "tds-table-body-input-wrapper":
|
|
96
|
+
if (!customElements.get(tagName)) {
|
|
97
|
+
customElements.define(tagName, TdsTableBodyInputWrapper$1);
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
case "tds-icon":
|
|
101
|
+
if (!customElements.get(tagName)) {
|
|
102
|
+
defineCustomElement$2();
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
} });
|
|
106
|
+
}
|
|
107
|
+
defineCustomElement$1();
|
|
108
|
+
|
|
109
|
+
const TdsTableBodyInputWrapper = TdsTableBodyInputWrapper$1;
|
|
110
|
+
const defineCustomElement = defineCustomElement$1;
|
|
111
|
+
|
|
112
|
+
export { TdsTableBodyInputWrapper, defineCustomElement };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { g as generateUniqueId } from './p-11648030.js';
|
|
3
3
|
|
|
4
|
-
const tableBodyRowExpandableCss = ":host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell--expand{border-right:1px solid var(--tds-table-divider)}";
|
|
4
|
+
const tableBodyRowExpandableCss = ":host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{max-width:1px;overflow:scroll;padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell--expand{border-right:1px solid var(--tds-table-divider)}";
|
|
5
5
|
const TdsTableBodyRowExpandableStyle0 = tableBodyRowExpandableCss;
|
|
6
6
|
|
|
7
7
|
const relevantTableProps = [
|
|
@@ -86,18 +86,18 @@ const TdsTableBodyRowExpandable$1 = /*@__PURE__*/ proxyCustomElement(class TdsTa
|
|
|
86
86
|
this.sendValue();
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: 'cd23997b2d0b659691199b0f6a7be6aa51689ee4', class: {
|
|
90
90
|
'tds-table__row': true,
|
|
91
91
|
'tds-table__row-expand--active': this.isExpanded,
|
|
92
92
|
'tds-table__compact': this.compactDesign,
|
|
93
93
|
'tds-table--divider': this.verticalDividers,
|
|
94
|
-
} }, h("tr", { key: '
|
|
94
|
+
} }, h("tr", { key: 'a3fec49a0b97a35f61db7c31dfc023ba3acebd86', class: {
|
|
95
95
|
'tds-table__row': true,
|
|
96
96
|
'tds-table__row--expanded': this.isExpanded,
|
|
97
|
-
}, part: "row" }, h("td", { key: '
|
|
97
|
+
}, part: "row" }, h("td", { key: 'd995074fc578640544f59df3426762ff6595dd0b', class: "tds-table__cell tds-table__cell--expand" }, h("label", { key: '0f905bda5651a8c9dc30094dbc402e5e618e4030', class: "tds-table__expand-control-container" }, h("input", { key: '9b316a0e3a44cfa21851a1ac2ec0980d53d3aa54', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: '022d891384b907d3ebce4b2138fef4f5c6f7d44f', class: "tds-expendable-row-icon" }, h("svg", { key: 'fb7ccb4d599e72a9d7a56808f59226779ffe611b', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '1e2c766463813a4b1edc32093abbbf501b99974b', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: '7f0e3d93df3da8eeff969daa9aba8eecaa1e6e23' })), h("tr", { key: '89766434b64dd9bf0aecf805fdd494aab68f8af9', class: {
|
|
98
98
|
'tds-table__row-expand': true,
|
|
99
99
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
100
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
100
|
+
}, part: "expand-row" }, h("td", { key: 'f0c746d12fae92eae3e6bf9651c826fb3aacbefe', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: '0a9e454379a7a6a72b3d6ea33a66a4aaaac09e8f', name: "expand-row" })))));
|
|
101
101
|
}
|
|
102
102
|
get host() { return this; }
|
|
103
103
|
static get watchers() { return {
|
|
@@ -54,12 +54,12 @@ const TdsTableBodyRow$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyRow
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '2b99a5336354cb5e7e2e7ef9c81bac76a55c6895', class: {
|
|
58
58
|
'tds-table__row': true,
|
|
59
59
|
'tds-table__row--selected': this.selected,
|
|
60
60
|
'tds-table__compact': this.compactDesign,
|
|
61
61
|
'tds-table--divider': this.verticalDividers,
|
|
62
|
-
} }, this.multiselect && (h("td", { key: '
|
|
62
|
+
} }, this.multiselect && (h("td", { key: '049e91ea474a539b6fbe344db4aed9de42297f3d', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '2af9307e3143db71cae028c1cc2116382b20f4c9', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '2eff0d398eb53934ca0b152d25422a5febbbffbb' })));
|
|
63
63
|
}
|
|
64
64
|
get host() { return this; }
|
|
65
65
|
static get style() { return TdsTableBodyRowStyle0; }
|
|
@@ -103,10 +103,10 @@ const TdsTableFooter$1 = /*@__PURE__*/ proxyCustomElement(class TdsTableFooter e
|
|
|
103
103
|
this.storeLastCorrectValue(this.paginationValue);
|
|
104
104
|
}
|
|
105
105
|
render() {
|
|
106
|
-
return (h(Host, { key: '
|
|
106
|
+
return (h(Host, { key: 'fe6221e5dd2ec57e63afefc5e45c0b3f5ad85d8f', class: {
|
|
107
107
|
'tds-table--compact': this.compactDesign,
|
|
108
108
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
109
|
-
}, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: '
|
|
109
|
+
}, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: '6f6bfca5e7719084b2c4564b86806f6eb7867601', class: "tds-table__footer-row" }, h("td", { key: '2c4389dfa2c028798246a5c4d8b9bdcc05a780f2', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '0831e596963e20222feee940fb7d7d489f832b5e', class: "tds-table__pagination" }, h("div", { key: '1129e67d9b69b06a1fadde589f9ad37a1bd9fcca', class: "tds-table__row-selector" }), h("div", { key: '81e685df813d615027470d4c84c468bb2c5fccca', class: "tds-table__page-selector" }, h("input", { key: '4b116837ae02fcbf6b51b940587ae6159d40f5cb', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '927af4715b33f50679aef3ec5eccc5fd4044add7', class: "tds-table__footer-text" }, "of ", h("span", { key: '2d89421fbbbb0828623465f39edc506b9bfa82da' }, this.pages), " pages"), h("button", { key: '37916d812b7b4510b088b382f48b2d9f04d212b2', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'd89ac980f4c48fe6c14610f27ccc05e43994631e', name: "chevron_left", size: "20px" })), h("button", { key: '246b17fc6ff26e3830d5a359a4a5de844bc93a1b', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '6fa3441ed75b484974e50ee41ea1444bea7c30e2', name: "chevron_right", size: "20px" })))))))));
|
|
110
110
|
}
|
|
111
111
|
get host() { return this; }
|
|
112
112
|
static get style() { return TdsTableFooterStyle0; }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface TdsTableHeaderInputWrapper extends Components.TdsTableHeaderInputWrapper, HTMLElement {}
|
|
4
|
+
export const TdsTableHeaderInputWrapper: {
|
|
5
|
+
prototype: TdsTableHeaderInputWrapper;
|
|
6
|
+
new (): TdsTableHeaderInputWrapper;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|