@scania/tegel 1.41.0-build-beta.0 → 1.41.0-stencil-core-beta.0
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/tds-dropdown_2.cjs.entry.js +9 -25
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -4
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +8 -4
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +9 -18
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -2
- package/dist/collection/components/header/header-title/header-title.css +0 -2
- package/dist/collection/components/popover-canvas/popover-canvas.js +3 -3
- package/dist/collection/components/popover-core/popover-core.js +13 -8
- package/dist/collection/components/popover-menu/popover-menu.js +3 -3
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -4
- package/dist/collection/components/tooltip/tooltip.js +8 -4
- package/dist/components/{p-1YnjaUCy.js → p-B569z5eW.js} +4 -4
- package/dist/components/{p-DZDx1Si2.js → p-DnzQe_HU.js} +9 -5
- package/dist/components/{p-ChGLhiqn.js → p-Ip9G3co9.js} +2 -2
- package/dist/components/{p-Ee9QeMgy.js → p-SqXsUd-b.js} +9 -25
- package/dist/components/{p-8koCGAVT.js → p-X1sPx4t5.js} +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-folder-tabs.js +2 -2
- package/dist/components/tds-header-dropdown.js +2 -2
- package/dist/components/tds-header-launcher.js +4 -4
- package/dist/components/tds-header-title.js +1 -1
- package/dist/components/tds-inline-tabs.js +2 -2
- package/dist/components/tds-navigation-tabs.js +4 -4
- 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 +4 -4
- package/dist/components/tds-slider.js +3 -3
- package/dist/components/tds-table-body-input-wrapper.js +1 -1
- package/dist/components/tds-table-footer.js +1 -1
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +2 -2
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/tds-dropdown_2.entry.js +9 -25
- package/dist/esm/tds-folder-tabs.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +2 -2
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +4 -4
- package/dist/esm/tds-popover-canvas.entry.js +3 -3
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +3 -3
- package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-tooltip.entry.js +8 -4
- package/dist/tegel/{p-60cbdc0a.entry.js → p-0ac95ef0.entry.js} +1 -1
- package/dist/tegel/{p-d4412e32.entry.js → p-11159349.entry.js} +1 -1
- package/dist/tegel/{p-0cd740b9.entry.js → p-1f255f25.entry.js} +1 -1
- package/dist/tegel/p-26907beb.entry.js +1 -0
- package/dist/tegel/{p-348f3bad.entry.js → p-3557fbdf.entry.js} +1 -1
- package/dist/tegel/p-4e58b98d.entry.js +1 -0
- package/dist/tegel/p-5eed2dae.entry.js +1 -0
- package/dist/tegel/{p-a53cb562.entry.js → p-81314f19.entry.js} +1 -1
- package/dist/tegel/p-bbcab377.entry.js +1 -0
- package/dist/tegel/{p-83a3ca55.entry.js → p-ca437b9a.entry.js} +1 -1
- package/dist/tegel/{p-d28462be.entry.js → p-fa19eac0.entry.js} +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/header/header-launcher/header-launcher.d.ts +1 -1
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +1 -1
- package/dist/types/components/popover-core/popover-core.d.ts +4 -4
- package/dist/types/components/popover-menu/popover-menu.d.ts +1 -1
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/collection/utils/dom.js +0 -7
- package/dist/tegel/p-73167867.entry.js +0 -1
- package/dist/tegel/p-bee62505.entry.js +0 -1
- package/dist/tegel/p-c2b3bd3c.entry.js +0 -1
- package/dist/tegel/p-dcd132d5.entry.js +0 -1
- package/dist/types/utils/dom.d.ts +0 -2
|
@@ -638,14 +638,6 @@ const TdsDropdown = class {
|
|
|
638
638
|
};
|
|
639
639
|
TdsDropdown.style = dropdownCss;
|
|
640
640
|
|
|
641
|
-
function isTag(el, tagName) {
|
|
642
|
-
return !!el && el.tagName === tagName.toUpperCase();
|
|
643
|
-
}
|
|
644
|
-
function closestByTag(start, tagName) {
|
|
645
|
-
const found = start.closest(tagName);
|
|
646
|
-
return isTag(found, tagName) ? found : null;
|
|
647
|
-
}
|
|
648
|
-
|
|
649
641
|
const dropdownOptionCss = ":host{box-sizing:border-box;display:block;background-color:var(--tds-dropdown-option-background)}:host *{box-sizing:border-box}:host .dropdown-option{color:var(--tds-dropdown-option-color);border-bottom:1px solid var(--tds-dropdown-option-border);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);overflow-wrap:anywhere;transition:background-color var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host .dropdown-option.selected{background-color:var(--tds-dropdown-option-background-selected)}:host .dropdown-option.disabled{color:var(--tds-dropdown-option-color-disabled)}:host .dropdown-option button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:inset 0 0 0 3px var(--tds-white);outline-offset:-2px}:host .dropdown-option button{all:unset;width:100%}:host .dropdown-option button.lg{padding:19px 0 20px}:host .dropdown-option button.md{padding:15px 0 16px}:host .dropdown-option button.sm{padding:11px 0 12px}:host .dropdown-option button.xs{padding:7px 0 8px}:host .dropdown-option button .single-select{display:flex;align-items:center;justify-content:space-between;padding:0 16px}:host .dropdown-option .multiselect{width:100%;height:100%}:host .dropdown-option .multiselect tds-checkbox{display:flex;height:100%;width:100%}:host .dropdown-option .multiselect tds-checkbox.lg{padding:15px 16px 16px}:host .dropdown-option .multiselect tds-checkbox.md{padding:11px 16px 12px}:host .dropdown-option .multiselect tds-checkbox.sm{padding:7px 16px 8px}:host .dropdown-option .multiselect tds-checkbox.xs{padding:7px 16px 8px}:host .dropdown-option:hover{border-bottom-color:var(--tds-dropdown-option-border-hover);cursor:pointer}:host .dropdown-option:hover.disabled{border-bottom-color:var(--tds-dropdown-option-border-hover);cursor:not-allowed}:host([hidden]){display:none}";
|
|
650
642
|
|
|
651
643
|
const TdsDropdownOption = class {
|
|
@@ -664,27 +656,19 @@ const TdsDropdownOption = class {
|
|
|
664
656
|
// eslint-disable-next-line no-unused-vars,
|
|
665
657
|
this.label = '';
|
|
666
658
|
this.componentWillRender = () => {
|
|
667
|
-
var _a, _b;
|
|
668
|
-
if (!this.host.parentElement)
|
|
659
|
+
var _a, _b, _c;
|
|
660
|
+
if (!this.host.parentElement) {
|
|
669
661
|
return;
|
|
670
|
-
const directParent = this.host.parentElement;
|
|
671
|
-
if (isTag(directParent, 'tds-dropdown')) {
|
|
672
|
-
this.parentElement = directParent;
|
|
673
|
-
}
|
|
674
|
-
else {
|
|
675
|
-
const root = this.host.getRootNode();
|
|
676
|
-
if (root instanceof ShadowRoot) {
|
|
677
|
-
this.parentElement = closestByTag(root.host, 'tds-dropdown');
|
|
678
|
-
}
|
|
679
|
-
else {
|
|
680
|
-
this.parentElement = null;
|
|
681
|
-
}
|
|
682
662
|
}
|
|
663
|
+
this.parentElement =
|
|
664
|
+
((_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) === 'TDS-DROPDOWN'
|
|
665
|
+
? this.host.parentElement
|
|
666
|
+
: this.host.getRootNode().host;
|
|
683
667
|
if (this.parentElement) {
|
|
684
|
-
this.multiselect = (
|
|
668
|
+
this.multiselect = (_b = this.parentElement.multiselect) !== null && _b !== void 0 ? _b : false;
|
|
685
669
|
this.size = this.parentElement.size || 'lg';
|
|
686
670
|
}
|
|
687
|
-
this.label = ((
|
|
671
|
+
this.label = ((_c = this.host.textContent) === null || _c === void 0 ? void 0 : _c.trim()) || '';
|
|
688
672
|
};
|
|
689
673
|
this.handleSingleSelect = () => {
|
|
690
674
|
if (!this.disabled) {
|
|
@@ -744,7 +728,7 @@ const TdsDropdownOption = class {
|
|
|
744
728
|
this.internalValue = convertToString(this.value);
|
|
745
729
|
}
|
|
746
730
|
render() {
|
|
747
|
-
return (index.h(index.Host, { key: '
|
|
731
|
+
return (index.h(index.Host, { key: 'a92f443fccb282309c20c52b9214b6b03b03e7ee' }, index.h("div", { key: 'b5dcc6cb5cb846adfb79f1e80e39e84ab85022c5', class: `dropdown-option
|
|
748
732
|
${this.size}
|
|
749
733
|
${this.selected ? 'selected' : ''}
|
|
750
734
|
${this.disabled ? 'disabled' : ''}
|
|
@@ -169,9 +169,9 @@ const TdsFolderTabs = class {
|
|
|
169
169
|
this.removeEventListenerFromTabs();
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (index.h(index.Host, { key: '
|
|
172
|
+
return (index.h(index.Host, { key: '8c8c4916fe50279d530f99d21fef8f4ceb89fe55', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, index.h("div", { key: '5850bbcf52dfadf7a08dbe420916d98ed6d14b41', class: "wrapper", ref: (el) => {
|
|
173
173
|
this.navWrapperElement = el;
|
|
174
|
-
} }, index.h("button", { key: '
|
|
174
|
+
} }, index.h("button", { key: '9506486a1d6a2415bc8213cf1c0ab8c7789ad82c', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, index.h("tds-icon", { key: 'e721ba34d2d703bd0ee2fe833e7859f282b6b332', name: "chevron_left", size: "20px" })), index.h("slot", { key: 'ee2558c4a7d35d8d6355df59b735344151742884', onSlotchange: () => this.handleSlotChange() }), index.h("button", { key: '6ac20fbd52634a08bd6ef369a45fe0ebb7de9d5d', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, index.h("tds-icon", { key: '20a1096cec8ef7e121200f469761fac9a2a5086d', name: "chevron_right", size: "20px" })))));
|
|
175
175
|
}
|
|
176
176
|
get host() { return index.getElement(this); }
|
|
177
177
|
static get watchers() { return {
|
|
@@ -50,11 +50,11 @@ const TdsHeaderLauncher = class {
|
|
|
50
50
|
}, 'ref': (el) => {
|
|
51
51
|
this.buttonEl = el;
|
|
52
52
|
} });
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
53
|
+
return (index.h(index.Host, { key: '214953326230ac1b5ab664b032783c20d9999531' }, index.h("div", { key: '0efccd70365257b6f682b777bb6a3d056996aa82', class: {
|
|
54
54
|
'wrapper': true,
|
|
55
55
|
'state-open': this.open,
|
|
56
56
|
'state-list-type-menu': this.hasListTypeMenu,
|
|
57
|
-
} }, index.h("tds-header-launcher-button", Object.assign({ key: '
|
|
57
|
+
} }, index.h("tds-header-launcher-button", Object.assign({ key: '677518edd231dedb813d59220699bf3b1f1469a6' }, buttonAttributes, { "tds-aria-label": this.tdsAriaLabel })), this.buttonEl && (index.h("tds-popover-canvas", { key: '7d9b39133b781601acb0d8f97237694209f8d355', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
58
58
|
{
|
|
59
59
|
name: 'flip',
|
|
60
60
|
options: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-CxAGLnpY.js');
|
|
4
4
|
|
|
5
|
-
const headerTitleCss = "h4{box-sizing:border-box;color:var(--tds-header-nav-item-color);font-weight:normal;font-family:var(--tds-font-family-headline);letter-spacing:normal;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden
|
|
5
|
+
const headerTitleCss = "h4{box-sizing:border-box;color:var(--tds-header-nav-item-color);font-weight:normal;font-family:var(--tds-font-family-headline);letter-spacing:normal;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}h4 slot{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 32px 0 16px}";
|
|
6
6
|
|
|
7
7
|
const TdsHeaderTitle = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -177,9 +177,9 @@ const TdsInlineTabs = class {
|
|
|
177
177
|
this.removeEventListenerFromTabs();
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
|
-
return (index.h(index.Host, { key: '
|
|
180
|
+
return (index.h(index.Host, { key: 'f33abd9071c85c0651a3ab93e3996ec44717e325', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, index.h("div", { key: '8a5233b2a941a3a1e72dc45f93015b5e606663a8', class: "wrapper", ref: (el) => {
|
|
181
181
|
this.navWrapperElement = el;
|
|
182
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, index.h("button", { key: '
|
|
182
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, index.h("button", { key: 'f2a8051863cfa93f8b2a5c562fc5ebefcc36b195', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, index.h("tds-icon", { key: 'a93d1cb8ddc5486bbb15449c328a25f6e8e2b4cd', name: "chevron_left", size: "20px" })), index.h("slot", { key: 'e5b096420d72d12c861730fd9829baeba7cce625', onSlotchange: () => this.handleSlotChange() }), index.h("button", { key: 'f154a7b6553fe77e3f09da314403db5326df8e21', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, index.h("tds-icon", { key: '6832c693ab8a446a629788894f792f571c09cbe3', name: "chevron_right", size: "20px" })))));
|
|
183
183
|
}
|
|
184
184
|
get host() { return index.getElement(this); }
|
|
185
185
|
static get watchers() { return {
|
|
@@ -177,15 +177,15 @@ const TdsNavigationTabs = class {
|
|
|
177
177
|
this.removeEventListenerFromTabs();
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
|
-
return (index.h(index.Host, { key: '
|
|
180
|
+
return (index.h(index.Host, { key: 'cdf0eff9acca827e372a58f5721ff9279b0360f4', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, index.h("div", { key: 'a8fafbc680fbdb0450db591e7f3ffda864946684', class: "wrapper", ref: (el) => {
|
|
181
181
|
this.navWrapperElement = el;
|
|
182
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, index.h("button", { key: '
|
|
182
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, index.h("button", { key: '402e0ca33fa71dced98cf8d86e26e3dba312fa7d', "aria-label": this.tdsScrollLeftAriaLabel, class: {
|
|
183
183
|
'scroll-left-button': true,
|
|
184
184
|
'show': this.showLeftScroll,
|
|
185
|
-
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, index.h("tds-icon", { key: '
|
|
185
|
+
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, index.h("tds-icon", { key: '2849a2da7c6ef133d173756778400baa2a51d58d', name: "chevron_left", size: "20px" })), index.h("slot", { key: '64081b7518abde00c8f1d80ff414849bccd1cb0b', onSlotchange: () => this.handleSlotChange() }), index.h("button", { key: '916ba6b9107982f8b8763920bdf4e2bd99127943', "aria-label": this.tdsScrollRightAriaLabel, class: {
|
|
186
186
|
'scroll-right-button': true,
|
|
187
187
|
'show': this.showRightScroll,
|
|
188
|
-
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, index.h("tds-icon", { key: '
|
|
188
|
+
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, index.h("tds-icon", { key: '26f84d67bc4b1eb04668464a74b655db1953d999', name: "chevron_right", size: "20px" })))));
|
|
189
189
|
}
|
|
190
190
|
get host() { return index.getElement(this); }
|
|
191
191
|
static get watchers() { return {
|
|
@@ -41,14 +41,14 @@ const TdsPopoverCanvas = class {
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
var _a;
|
|
44
|
-
return (index.h(index.Host, { key: '
|
|
44
|
+
return (index.h(index.Host, { key: '8f22b74f8df985de4505b1472cf47b621d5c515e', class: {
|
|
45
45
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
46
|
-
} }, index.h("tds-popover-core", Object.assign({ key: '
|
|
46
|
+
} }, index.h("tds-popover-core", Object.assign({ key: 'a7d3fed2b26cd2dc532e9e78413828d52b28b21e', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
|
|
47
47
|
'tds-popover-canvas': true,
|
|
48
48
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
49
49
|
}, 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) => {
|
|
50
50
|
this.childRef = el;
|
|
51
|
-
}, defaultShow: this.defaultShow, animation: this.animation }), index.h("div", { key: '
|
|
51
|
+
}, defaultShow: this.defaultShow, animation: this.animation }), index.h("div", { key: '3c1fde8225ca64b259798f763b8d2264346c246e' }, index.h("slot", { key: 'e133b76f8088a4b572c8bb69792bc3fa6d652da9' })))));
|
|
52
52
|
}
|
|
53
53
|
get host() { return index.getElement(this); }
|
|
54
54
|
};
|
|
@@ -2051,7 +2051,7 @@ const TdsPopoverCore = class {
|
|
|
2051
2051
|
'tds-animation-exit-fade': !this.isShown && this.animation === 'fade',
|
|
2052
2052
|
};
|
|
2053
2053
|
const classList = generateClassList(classes);
|
|
2054
|
-
return (index.h(index.Host, { key: '
|
|
2054
|
+
return (index.h(index.Host, { key: '5c557610103827aedbabbd37a79730580d15ca2d', role: this.host.getAttribute('role'), class: classList, id: `tds-popover-core-${this.uuid}` }, index.h("slot", { key: '487a937b3c9d87b91425f6bd9eb88bc3fa85d7df' })));
|
|
2055
2055
|
}
|
|
2056
2056
|
get host() { return index.getElement(this); }
|
|
2057
2057
|
static get watchers() { return {
|
|
@@ -39,15 +39,15 @@ const TdsPopoverMenu = class {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
var _a;
|
|
42
|
-
return (index.h(index.Host, { key: '
|
|
42
|
+
return (index.h(index.Host, { key: 'ad39066c2a2f7d4e4696143095fa8a0032d7c148', class: {
|
|
43
43
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
44
|
-
} }, index.h("tds-popover-core", { key: '
|
|
44
|
+
} }, index.h("tds-popover-core", { key: 'f261b18f6e1e26df1baf39628911cb885277b431', class: {
|
|
45
45
|
'tds-popover-menu': true,
|
|
46
46
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
47
47
|
'fluid-width': this.fluidWidth,
|
|
48
48
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
|
|
49
49
|
this.childRef = el;
|
|
50
|
-
}, defaultShow: this.defaultShow, animation: this.animation }, index.h("div", { key: '
|
|
50
|
+
}, defaultShow: this.defaultShow, animation: this.animation }, index.h("div", { key: 'f1549f6d338ed8e9a511577a85735b834a89df27', role: "menu" }, index.h("slot", { key: 'def698636f21c11133ad0289b21b76db0f208116' })))));
|
|
51
51
|
}
|
|
52
52
|
get host() { return index.getElement(this); }
|
|
53
53
|
};
|
|
@@ -88,7 +88,7 @@ const TdsTableBodyInputWrapper = class {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (index.h(index.Host, { key: '
|
|
91
|
+
return (index.h(index.Host, { key: '1ebf0bf16490030ce20a99e1234e68d81430eaf8', class: {
|
|
92
92
|
'focused-input-wrapper': this.inputFocused,
|
|
93
93
|
'show-icon': this.showIcon,
|
|
94
94
|
'tds-table__compact': this.compactDesign,
|
|
@@ -66,16 +66,20 @@ const TdsTooltip = class {
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
var _a;
|
|
69
|
-
return (index.h(index.Host, { key: '
|
|
69
|
+
return (index.h(index.Host, { key: '69ced518e10ea5d65da8266257d7f7bba5db3f63', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, index.h("tds-popover-core", Object.assign({ key: '9511b6fb5dcd5a270de5b6f9b50b40271b4f5030' }, this.inheritedAttributes, { class: {
|
|
70
70
|
'tds-tooltip': true,
|
|
71
71
|
[`tds-tooltip-${this.border}`]: true,
|
|
72
72
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
73
73
|
'tds-tooltip-show': this.show,
|
|
74
|
-
}, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
|
|
74
|
+
}, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
onInternalTdsShow: () => {
|
|
75
77
|
this.show = true;
|
|
76
|
-
},
|
|
78
|
+
},
|
|
79
|
+
// @ts-ignore
|
|
80
|
+
onInternalTdsClose: () => {
|
|
77
81
|
this.show = false;
|
|
78
|
-
}, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: '
|
|
82
|
+
}, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: '8fb6467b2d1fa2ce6a70a171966ff245f8205b55' }))));
|
|
79
83
|
}
|
|
80
84
|
get host() { return index.getElement(this); }
|
|
81
85
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
2
|
import { convertToString } from "../../../utils/convertToString";
|
|
3
|
-
import { closestByTag, isTag } from "../../../utils/dom";
|
|
4
3
|
/**
|
|
5
4
|
* @slot <default> - <b>Unnamed slot.</b> For the option label text.
|
|
6
5
|
*/
|
|
@@ -16,27 +15,19 @@ export class TdsDropdownOption {
|
|
|
16
15
|
// eslint-disable-next-line no-unused-vars,
|
|
17
16
|
this.label = '';
|
|
18
17
|
this.componentWillRender = () => {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
if (!this.host.parentElement)
|
|
18
|
+
var _a, _b, _c;
|
|
19
|
+
if (!this.host.parentElement) {
|
|
21
20
|
return;
|
|
22
|
-
const directParent = this.host.parentElement;
|
|
23
|
-
if (isTag(directParent, 'tds-dropdown')) {
|
|
24
|
-
this.parentElement = directParent;
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
const root = this.host.getRootNode();
|
|
28
|
-
if (root instanceof ShadowRoot) {
|
|
29
|
-
this.parentElement = closestByTag(root.host, 'tds-dropdown');
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this.parentElement = null;
|
|
33
|
-
}
|
|
34
21
|
}
|
|
22
|
+
this.parentElement =
|
|
23
|
+
((_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) === 'TDS-DROPDOWN'
|
|
24
|
+
? this.host.parentElement
|
|
25
|
+
: this.host.getRootNode().host;
|
|
35
26
|
if (this.parentElement) {
|
|
36
|
-
this.multiselect = (
|
|
27
|
+
this.multiselect = (_b = this.parentElement.multiselect) !== null && _b !== void 0 ? _b : false;
|
|
37
28
|
this.size = this.parentElement.size || 'lg';
|
|
38
29
|
}
|
|
39
|
-
this.label = ((
|
|
30
|
+
this.label = ((_c = this.host.textContent) === null || _c === void 0 ? void 0 : _c.trim()) || '';
|
|
40
31
|
};
|
|
41
32
|
this.handleSingleSelect = () => {
|
|
42
33
|
if (!this.disabled) {
|
|
@@ -96,7 +87,7 @@ export class TdsDropdownOption {
|
|
|
96
87
|
this.internalValue = convertToString(this.value);
|
|
97
88
|
}
|
|
98
89
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: 'a92f443fccb282309c20c52b9214b6b03b03e7ee' }, h("div", { key: 'b5dcc6cb5cb846adfb79f1e80e39e84ab85022c5', class: `dropdown-option
|
|
100
91
|
${this.size}
|
|
101
92
|
${this.selected ? 'selected' : ''}
|
|
102
93
|
${this.disabled ? 'disabled' : ''}
|
|
@@ -46,11 +46,11 @@ export class TdsHeaderLauncher {
|
|
|
46
46
|
}, 'ref': (el) => {
|
|
47
47
|
this.buttonEl = el;
|
|
48
48
|
} });
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '214953326230ac1b5ab664b032783c20d9999531' }, h("div", { key: '0efccd70365257b6f682b777bb6a3d056996aa82', class: {
|
|
50
50
|
'wrapper': true,
|
|
51
51
|
'state-open': this.open,
|
|
52
52
|
'state-list-type-menu': this.hasListTypeMenu,
|
|
53
|
-
} }, h("tds-header-launcher-button", Object.assign({ key: '
|
|
53
|
+
} }, h("tds-header-launcher-button", Object.assign({ key: '677518edd231dedb813d59220699bf3b1f1469a6' }, buttonAttributes, { "tds-aria-label": this.tdsAriaLabel })), this.buttonEl && (h("tds-popover-canvas", { key: '7d9b39133b781601acb0d8f97237694209f8d355', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
54
54
|
{
|
|
55
55
|
name: 'flip',
|
|
56
56
|
options: {
|
|
@@ -38,14 +38,14 @@ export class TdsPopoverCanvas {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
var _a;
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '8f22b74f8df985de4505b1472cf47b621d5c515e', class: {
|
|
42
42
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
43
|
-
} }, h("tds-popover-core", Object.assign({ key: '
|
|
43
|
+
} }, h("tds-popover-core", Object.assign({ key: 'a7d3fed2b26cd2dc532e9e78413828d52b28b21e', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
|
|
44
44
|
'tds-popover-canvas': true,
|
|
45
45
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
46
46
|
}, 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) => {
|
|
47
47
|
this.childRef = el;
|
|
48
|
-
}, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '
|
|
48
|
+
}, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '3c1fde8225ca64b259798f763b8d2264346c246e' }, h("slot", { key: 'e133b76f8088a4b572c8bb69792bc3fa6d652da9' })))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "tds-popover-canvas"; }
|
|
51
51
|
static get encapsulation() { return "scoped"; }
|
|
@@ -233,7 +233,7 @@ export class TdsPopoverCore {
|
|
|
233
233
|
'tds-animation-exit-fade': !this.isShown && this.animation === 'fade',
|
|
234
234
|
};
|
|
235
235
|
const classList = generateClassList(classes);
|
|
236
|
-
return (h(Host, { key: '
|
|
236
|
+
return (h(Host, { key: '5c557610103827aedbabbd37a79730580d15ca2d', role: this.host.getAttribute('role'), class: classList, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '487a937b3c9d87b91425f6bd9eb88bc3fa85d7df' })));
|
|
237
237
|
}
|
|
238
238
|
static get is() { return "tds-popover-core"; }
|
|
239
239
|
static get encapsulation() { return "scoped"; }
|
|
@@ -420,9 +420,14 @@ export class TdsPopoverCore {
|
|
|
420
420
|
"type": "unknown",
|
|
421
421
|
"mutable": false,
|
|
422
422
|
"complexType": {
|
|
423
|
-
"original": "
|
|
424
|
-
"resolved": "
|
|
425
|
-
"references": {
|
|
423
|
+
"original": "Object[]",
|
|
424
|
+
"resolved": "Object[]",
|
|
425
|
+
"references": {
|
|
426
|
+
"Object": {
|
|
427
|
+
"location": "global",
|
|
428
|
+
"id": "global::Object"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
426
431
|
},
|
|
427
432
|
"required": false,
|
|
428
433
|
"optional": false,
|
|
@@ -502,8 +507,8 @@ export class TdsPopoverCore {
|
|
|
502
507
|
"text": ""
|
|
503
508
|
},
|
|
504
509
|
"complexType": {
|
|
505
|
-
"original": "
|
|
506
|
-
"resolved": "
|
|
510
|
+
"original": "{}",
|
|
511
|
+
"resolved": "{}",
|
|
507
512
|
"references": {}
|
|
508
513
|
}
|
|
509
514
|
}, {
|
|
@@ -520,8 +525,8 @@ export class TdsPopoverCore {
|
|
|
520
525
|
"text": ""
|
|
521
526
|
},
|
|
522
527
|
"complexType": {
|
|
523
|
-
"original": "
|
|
524
|
-
"resolved": "
|
|
528
|
+
"original": "{}",
|
|
529
|
+
"resolved": "{}",
|
|
525
530
|
"references": {}
|
|
526
531
|
}
|
|
527
532
|
}];
|
|
@@ -36,15 +36,15 @@ export class TdsPopoverMenu {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
var _a;
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'ad39066c2a2f7d4e4696143095fa8a0032d7c148', class: {
|
|
40
40
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
41
|
-
} }, h("tds-popover-core", { key: '
|
|
41
|
+
} }, h("tds-popover-core", { key: 'f261b18f6e1e26df1baf39628911cb885277b431', class: {
|
|
42
42
|
'tds-popover-menu': true,
|
|
43
43
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
44
44
|
'fluid-width': this.fluidWidth,
|
|
45
45
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
|
|
46
46
|
this.childRef = el;
|
|
47
|
-
}, defaultShow: this.defaultShow, animation: this.animation }, h("div", { key: '
|
|
47
|
+
}, defaultShow: this.defaultShow, animation: this.animation }, h("div", { key: 'f1549f6d338ed8e9a511577a85735b834a89df27', role: "menu" }, h("slot", { key: 'def698636f21c11133ad0289b21b76db0f208116' })))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "tds-popover-menu"; }
|
|
50
50
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js
CHANGED
|
@@ -82,7 +82,7 @@ export class TdsTableBodyInputWrapper {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '1ebf0bf16490030ce20a99e1234e68d81430eaf8', class: {
|
|
86
86
|
'focused-input-wrapper': this.inputFocused,
|
|
87
87
|
'show-icon': this.showIcon,
|
|
88
88
|
'tds-table__compact': this.compactDesign,
|
|
@@ -165,9 +165,9 @@ export class TdsFolderTabs {
|
|
|
165
165
|
this.removeEventListenerFromTabs();
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h(Host, { key: '
|
|
168
|
+
return (h(Host, { key: '8c8c4916fe50279d530f99d21fef8f4ceb89fe55', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '5850bbcf52dfadf7a08dbe420916d98ed6d14b41', class: "wrapper", ref: (el) => {
|
|
169
169
|
this.navWrapperElement = el;
|
|
170
|
-
} }, h("button", { key: '
|
|
170
|
+
} }, h("button", { key: '9506486a1d6a2415bc8213cf1c0ab8c7789ad82c', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: 'e721ba34d2d703bd0ee2fe833e7859f282b6b332', name: "chevron_left", size: "20px" })), h("slot", { key: 'ee2558c4a7d35d8d6355df59b735344151742884', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6ac20fbd52634a08bd6ef369a45fe0ebb7de9d5d', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: '20a1096cec8ef7e121200f469761fac9a2a5086d', name: "chevron_right", size: "20px" })))));
|
|
171
171
|
}
|
|
172
172
|
static get is() { return "tds-folder-tabs"; }
|
|
173
173
|
static get encapsulation() { return "shadow"; }
|
|
@@ -173,9 +173,9 @@ export class TdsInlineTabs {
|
|
|
173
173
|
this.removeEventListenerFromTabs();
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return (h(Host, { key: '
|
|
176
|
+
return (h(Host, { key: 'f33abd9071c85c0651a3ab93e3996ec44717e325', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '8a5233b2a941a3a1e72dc45f93015b5e606663a8', class: "wrapper", ref: (el) => {
|
|
177
177
|
this.navWrapperElement = el;
|
|
178
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
178
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'f2a8051863cfa93f8b2a5c562fc5ebefcc36b195', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'a93d1cb8ddc5486bbb15449c328a25f6e8e2b4cd', name: "chevron_left", size: "20px" })), h("slot", { key: 'e5b096420d72d12c861730fd9829baeba7cce625', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'f154a7b6553fe77e3f09da314403db5326df8e21', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '6832c693ab8a446a629788894f792f571c09cbe3', name: "chevron_right", size: "20px" })))));
|
|
179
179
|
}
|
|
180
180
|
static get is() { return "tds-inline-tabs"; }
|
|
181
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -173,15 +173,15 @@ export class TdsNavigationTabs {
|
|
|
173
173
|
this.removeEventListenerFromTabs();
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return (h(Host, { key: '
|
|
176
|
+
return (h(Host, { key: 'cdf0eff9acca827e372a58f5721ff9279b0360f4', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: 'a8fafbc680fbdb0450db591e7f3ffda864946684', class: "wrapper", ref: (el) => {
|
|
177
177
|
this.navWrapperElement = el;
|
|
178
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
178
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '402e0ca33fa71dced98cf8d86e26e3dba312fa7d', "aria-label": this.tdsScrollLeftAriaLabel, class: {
|
|
179
179
|
'scroll-left-button': true,
|
|
180
180
|
'show': this.showLeftScroll,
|
|
181
|
-
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '
|
|
181
|
+
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '2849a2da7c6ef133d173756778400baa2a51d58d', name: "chevron_left", size: "20px" })), h("slot", { key: '64081b7518abde00c8f1d80ff414849bccd1cb0b', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '916ba6b9107982f8b8763920bdf4e2bd99127943', "aria-label": this.tdsScrollRightAriaLabel, class: {
|
|
182
182
|
'scroll-right-button': true,
|
|
183
183
|
'show': this.showRightScroll,
|
|
184
|
-
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '
|
|
184
|
+
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '26f84d67bc4b1eb04668464a74b655db1953d999', name: "chevron_right", size: "20px" })))));
|
|
185
185
|
}
|
|
186
186
|
static get is() { return "tds-navigation-tabs"; }
|
|
187
187
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,16 +63,20 @@ export class TdsTooltip {
|
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
65
|
var _a;
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '69ced518e10ea5d65da8266257d7f7bba5db3f63', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '9511b6fb5dcd5a270de5b6f9b50b40271b4f5030' }, this.inheritedAttributes, { class: {
|
|
67
67
|
'tds-tooltip': true,
|
|
68
68
|
[`tds-tooltip-${this.border}`]: true,
|
|
69
69
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
70
70
|
'tds-tooltip-show': this.show,
|
|
71
|
-
}, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
|
|
71
|
+
}, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
onInternalTdsShow: () => {
|
|
72
74
|
this.show = true;
|
|
73
|
-
},
|
|
75
|
+
},
|
|
76
|
+
// @ts-ignore
|
|
77
|
+
onInternalTdsClose: () => {
|
|
74
78
|
this.show = false;
|
|
75
|
-
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: '
|
|
79
|
+
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: '8fb6467b2d1fa2ce6a70a171966ff245f8205b55' }))));
|
|
76
80
|
}
|
|
77
81
|
static get is() { return "tds-tooltip"; }
|
|
78
82
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
2
|
import { i as inheritAttributes } from './p-CF8bH08v.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-X1sPx4t5.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:var(--tds-popover-canvas-box-shadow);border-radius:4px;z-index:900}.tds-popover-canvas.sc-tds-popover-canvas *.sc-tds-popover-canvas{box-sizing:border-box}";
|
|
6
6
|
|
|
@@ -43,14 +43,14 @@ const TdsPopoverCanvas = /*@__PURE__*/ proxyCustomElement(class TdsPopoverCanvas
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
var _a;
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '8f22b74f8df985de4505b1472cf47b621d5c515e', class: {
|
|
47
47
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
48
|
-
} }, h("tds-popover-core", Object.assign({ key: '
|
|
48
|
+
} }, h("tds-popover-core", Object.assign({ key: 'a7d3fed2b26cd2dc532e9e78413828d52b28b21e', role: this.tdsAlertDialog }, this.inheritedAttributes, { class: {
|
|
49
49
|
'tds-popover-canvas': true,
|
|
50
50
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
51
51
|
}, 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) => {
|
|
52
52
|
this.childRef = el;
|
|
53
|
-
}, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '
|
|
53
|
+
}, defaultShow: this.defaultShow, animation: this.animation }), h("div", { key: '3c1fde8225ca64b259798f763b8d2264346c246e' }, h("slot", { key: 'e133b76f8088a4b572c8bb69792bc3fa6d652da9' })))));
|
|
54
54
|
}
|
|
55
55
|
get host() { return this; }
|
|
56
56
|
static get style() { return popoverCanvasCss; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, a as Host } from './index.js';
|
|
2
2
|
import { i as inheritAttributes } from './p-CF8bH08v.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-X1sPx4t5.js';
|
|
4
4
|
|
|
5
5
|
const tooltipCss = ".sc-tds-tooltip-h{position:absolute}.tds-tooltip.sc-tds-tooltip{box-sizing:border-box;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-tooltip-color);background-color:var(--tds-tooltip-background);border-radius:4px;padding:8px;word-wrap:break-word;white-space:normal;max-width:192px;z-index:900;opacity:0;visibility:hidden;transition:opacity 200ms ease-in, visibility 200ms ease-in}.tds-tooltip.sc-tds-tooltip *.sc-tds-tooltip{box-sizing:border-box}.tds-tooltip.tds-tooltip-top-left.sc-tds-tooltip{border-radius:0 4px 4px}.tds-tooltip.tds-tooltip-top-right.sc-tds-tooltip{border-radius:4px 0 4px 4px}.tds-tooltip.tds-tooltip-bottom-right.sc-tds-tooltip{border-radius:4px 4px 0}.tds-tooltip.tds-tooltip-bottom-left.sc-tds-tooltip{border-radius:4px 4px 4px 0}.tds-tooltip-show.sc-tds-tooltip{opacity:1;visibility:visible}";
|
|
6
6
|
|
|
@@ -68,16 +68,20 @@ const TdsTooltip = /*@__PURE__*/ proxyCustomElement(class TdsTooltip extends H {
|
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
70
|
var _a;
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '69ced518e10ea5d65da8266257d7f7bba5db3f63', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '9511b6fb5dcd5a270de5b6f9b50b40271b4f5030' }, this.inheritedAttributes, { class: {
|
|
72
72
|
'tds-tooltip': true,
|
|
73
73
|
[`tds-tooltip-${this.border}`]: true,
|
|
74
74
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
75
75
|
'tds-tooltip-show': this.show,
|
|
76
|
-
}, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
|
|
76
|
+
}, selector: this.selector, referenceEl: this.referenceEl, trigger: this.determineTrigger(), modifiers: this.popperjsExtraModifiers, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, show: this.show, placement: this.placement, autoHide: false,
|
|
77
|
+
// @ts-ignore
|
|
78
|
+
onInternalTdsShow: () => {
|
|
77
79
|
this.show = true;
|
|
78
|
-
},
|
|
80
|
+
},
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
onInternalTdsClose: () => {
|
|
79
83
|
this.show = false;
|
|
80
|
-
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: '
|
|
84
|
+
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: '8fb6467b2d1fa2ce6a70a171966ff245f8205b55' }))));
|
|
81
85
|
}
|
|
82
86
|
get host() { return this; }
|
|
83
87
|
static get style() { return tooltipCss; }
|
|
@@ -3,8 +3,8 @@ import { h as hasSlot } from './p-DDX6uFcm.js';
|
|
|
3
3
|
import { g as generateUniqueId } from './p-Cn4f8w1e.js';
|
|
4
4
|
import { g as getAriaInvalid } from './p-wEP_nEaO.js';
|
|
5
5
|
import { d as defineCustomElement$3 } from './p-CPDv0bBc.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
-
import { d as defineCustomElement$1 } from './p-
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-X1sPx4t5.js';
|
|
7
|
+
import { d as defineCustomElement$1 } from './p-DnzQe_HU.js';
|
|
8
8
|
|
|
9
9
|
const textFieldCss = ".text-field-input-lg.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16)}.text-field-input-lg.sc-tds-text-field::placeholder{color:var(--tds-text-field-placeholder)}.text-field-input-lg.sc-tds-text-field:disabled{user-select:none;pointer-events:none;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-lg.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-lg.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-md.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-md.sc-tds-text-field::placeholder{color:var(--tds-text-field-placeholder)}.text-field-input-md.sc-tds-text-field:disabled{user-select:none;pointer-events:none;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-md.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-md.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-sm.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-sm.sc-tds-text-field::placeholder{color:var(--tds-text-field-placeholder)}.text-field-input-sm.sc-tds-text-field:disabled{user-select:none;pointer-events:none;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-sm.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-sm.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-container.sc-tds-text-field{border-radius:4px 4px 0 0;display:flex;position:relative;height:56px;box-sizing:border-box;background-color:var(--tds-text-field-background);border-bottom:1px solid var(--tds-text-field-border-bottom);border-top:1px solid transparent;transition:border-bottom-color 200ms ease}.text-field-container.sc-tds-text-field:hover{border-bottom-color:var(--tds-text-field-border-bottom-hover)}.form-text-field-md.sc-tds-text-field .text-field-container.sc-tds-text-field{height:48px}.form-text-field-sm.sc-tds-text-field .text-field-container.sc-tds-text-field{height:40px}.text-field-container.sc-tds-text-field:focus-within{border:2px solid var(--tds-focus-outline-color);margin:0 -2px}.text-field-input-container.sc-tds-text-field{position:relative;width:100%}.text-field-data.sc-tds-text-field,.text-field-input.sc-tds-text-field{color:var(--tds-text-field-data-color)}.text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-text-field-label-color)}.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);position:absolute;pointer-events:none;color:var(--tds-text-field-label-inside-color);left:16px}.form-text-field.sc-tds-text-field{display:block;min-width:208px}.form-text-field-nomin.sc-tds-text-field{min-width:auto}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field{padding-top:var(--tds-spacing-element-24);padding-bottom:15px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:20px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder)}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:12px}.text-field-helper.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;gap:8px;justify-content:space-between;flex-basis:100%;padding-top:var(--tds-spacing-element-4);color:var(--tds-text-field-helper)}.text-field-helper.sc-tds-text-field .text-field-textcounter.sc-tds-text-field{margin-left:auto}.form-text-field-disabled.sc-tds-text-field .text-field-container.sc-tds-text-field{cursor:not-allowed;border-bottom-color:transparent}.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-prefix.sc-tds-text-field>*.sc-tds-text-field,.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-suffix.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-ps-color-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-disabled)}.text-field-icon__readonly.sc-tds-text-field{display:none;position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--tds-text-field-icon-read-only-label-color)}.text-field-icon__readonly.sc-tds-text-field .tds-tooltip.sc-tds-text-field{min-width:150px}.form-text-field-readonly.sc-tds-text-field{user-select:auto;caret-color:transparent;cursor:default}.form-text-field-readonly.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-readonly)}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field:hover~.text-field-icon__readonly-label.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-input.sc-tds-text-field{background-color:transparent}.form-text-field-readonly.sc-tds-text-field:has(.text-field-icon__readonly) .text-field-input.sc-tds-text-field{padding-right:54px}.form-text-field-success.sc-tds-text-field:not(.form-text-field-readonly) .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-success)}.form-text-field-error.sc-tds-text-field:not(.form-text-field-readonly) .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-error)}.form-text-field-error.sc-tds-text-field:not(.form-text-field-readonly) .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-error)}.text-field-helper-error-state.sc-tds-text-field{display:flex;gap:8px;flex-wrap:nowrap}.text-field-textcounter-disabled.sc-tds-text-field{color:var(--tds-text-field-textcounter-disabled)}.text-field-textcounter.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-text-field-textcounter);float:right}.text-field-textcounter.text-field-textcounter-disabled.sc-tds-text-field{color:var(--tds-text-field-textcounter-disabled)}.text-field-textcounter.text-field-textcounter-divider.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider)}.text-field-textcounter.text-field-textcounter-divider-disabled.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider-disabled)}.text-field-slot-wrap-prefix.sc-tds-text-field,.text-field-slot-wrap-suffix.sc-tds-text-field{align-self:center;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);margin:0 0 0 14px;color:var(--tds-text-field-ps-color)}.text-field-slot-wrap-prefix.sc-tds-text-field-s>:not(tds-icon),.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 0 0 2px}.text-field-slot-wrap-prefix.text-field-error.sc-tds-text-field,.text-field-slot-wrap-suffix.text-field-error.sc-tds-text-field{color:var(--tds-text-field-ps-color-error)}.text-field-slot-wrap-suffix.sc-tds-text-field{margin:0 14px 0 0}.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 2px 0 0}";
|
|
10
10
|
|