@scania/tegel 1.23.0-value-prop.beta.2 → 1.23.0-value-prop.beta.3
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/loader.cjs.js +1 -1
- package/dist/cjs/tds-checkbox.cjs.entry.js +9 -2
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +46 -31
- package/dist/cjs/tds-link.cjs.entry.js +5 -3
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-slider.cjs.entry.js +33 -7
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +19 -3
- package/dist/collection/components/dropdown/dropdown.js +46 -31
- package/dist/collection/components/link/link.css +7 -1
- package/dist/collection/components/link/link.js +22 -2
- package/dist/collection/components/popover-core/tds-popover-core.css +18 -13
- package/dist/collection/components/slider/slider.js +34 -8
- package/dist/components/{p-dcfecf4d.js → p-5eaae628.js} +1 -1
- package/dist/components/{p-e02b091c.js → p-a7a89410.js} +1 -1
- package/dist/components/{p-4d8f8d5c.js → p-aa12ddb9.js} +46 -31
- package/dist/components/{p-e4d7c655.js → p-d921fe75.js} +10 -3
- package/dist/components/{p-462b77e8.js → p-e7868876.js} +1 -1
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.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-link.js +7 -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 +1 -1
- package/dist/components/tds-slider.js +33 -7
- package/dist/components/tds-table-body-row.js +1 -1
- package/dist/components/tds-table-footer.js +3 -3
- package/dist/components/tds-table-header.js +1 -1
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-checkbox.entry.js +9 -2
- package/dist/esm/tds-dropdown_2.entry.js +46 -31
- package/dist/esm/tds-link.entry.js +5 -3
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-slider.entry.js +34 -8
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-2557b79b.entry.js +1 -0
- package/dist/tegel/{p-590b5f55.entry.js → p-370f899b.entry.js} +1 -1
- package/dist/tegel/p-6a52ed63.entry.js +1 -0
- package/dist/tegel/p-be8d494d.entry.js +1 -0
- package/dist/tegel/p-e97a2700.entry.js +1 -0
- package/dist/tegel/tegel.css +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +2 -0
- package/dist/types/components/dropdown/dropdown.d.ts +3 -0
- package/dist/types/components/link/link.d.ts +2 -0
- package/dist/types/components/slider/slider.d.ts +7 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/tegel/p-0c05887d.entry.js +0 -1
- package/dist/tegel/p-a464920f.entry.js +0 -1
- package/dist/tegel/p-c3513f1f.entry.js +0 -1
- package/dist/tegel/p-f91c6e9d.entry.js +0 -1
|
@@ -90,12 +90,12 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
90
90
|
return tdsDropdownOptions;
|
|
91
91
|
};
|
|
92
92
|
this.getSelectedChildren = () => {
|
|
93
|
-
if (
|
|
93
|
+
if (this.selectedOptions.length === 0)
|
|
94
94
|
return [];
|
|
95
|
-
|
|
96
|
-
return valueArray
|
|
95
|
+
return this.selectedOptions
|
|
97
96
|
.map((stringValue) => {
|
|
98
|
-
|
|
97
|
+
var _a;
|
|
98
|
+
const matchingElement = (_a = this.getChildren()) === null || _a === void 0 ? void 0 : _a.find((element) => element.value === stringValue);
|
|
99
99
|
return matchingElement;
|
|
100
100
|
})
|
|
101
101
|
.filter(Boolean);
|
|
@@ -112,13 +112,11 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
112
112
|
return labels === null || labels === void 0 ? void 0 : labels.join(', ');
|
|
113
113
|
};
|
|
114
114
|
this.setValueAttribute = () => {
|
|
115
|
-
|
|
116
|
-
if (!this.value || ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString()) === '') {
|
|
115
|
+
if (this.selectedOptions.length === 0) {
|
|
117
116
|
this.host.removeAttribute('value');
|
|
118
117
|
}
|
|
119
118
|
else {
|
|
120
|
-
|
|
121
|
-
this.host.setAttribute('value', valueArray.map((val) => val).toString());
|
|
119
|
+
this.host.setAttribute('value', this.selectedOptions.join(','));
|
|
122
120
|
}
|
|
123
121
|
};
|
|
124
122
|
this.getOpenDirection = () => {
|
|
@@ -191,6 +189,12 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
191
189
|
this.handleBlur = (event) => {
|
|
192
190
|
this.tdsBlur.emit(event);
|
|
193
191
|
};
|
|
192
|
+
this.resetInput = () => {
|
|
193
|
+
const inputEl = this.host.querySelector('input');
|
|
194
|
+
if (inputEl) {
|
|
195
|
+
this.reset();
|
|
196
|
+
}
|
|
197
|
+
};
|
|
194
198
|
this.name = undefined;
|
|
195
199
|
this.disabled = false;
|
|
196
200
|
this.helper = undefined;
|
|
@@ -225,6 +229,10 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
225
229
|
normalizeValue(value) {
|
|
226
230
|
if (!value)
|
|
227
231
|
return [];
|
|
232
|
+
// For multiselect, keep array. For single select, wrap in array
|
|
233
|
+
if (this.multiselect) {
|
|
234
|
+
return Array.isArray(value) ? value : value.split(',');
|
|
235
|
+
}
|
|
228
236
|
return Array.isArray(value) ? value : [value];
|
|
229
237
|
}
|
|
230
238
|
hasValueChanged(newValue, currentValue) {
|
|
@@ -235,6 +243,8 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
235
243
|
updateDropdownState(values) {
|
|
236
244
|
// Update internal state
|
|
237
245
|
this.selectedOptions = this.validateValues(values);
|
|
246
|
+
// Then update the value prop to match
|
|
247
|
+
this.value = this.multiselect ? this.selectedOptions : this.selectedOptions[0] || null;
|
|
238
248
|
// Update DOM
|
|
239
249
|
this.updateOptionElements();
|
|
240
250
|
// Update display value
|
|
@@ -267,8 +277,6 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
267
277
|
}
|
|
268
278
|
}
|
|
269
279
|
emitChange() {
|
|
270
|
-
// Update the value prop to match validated state
|
|
271
|
-
this.value = this.multiselect ? this.selectedOptions : this.selectedOptions[0] || null;
|
|
272
280
|
const value = this.multiselect
|
|
273
281
|
? this.selectedOptions.join(',')
|
|
274
282
|
: this.selectedOptions[0] || null;
|
|
@@ -278,22 +286,19 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
278
286
|
});
|
|
279
287
|
}
|
|
280
288
|
async setValue(value) {
|
|
281
|
-
|
|
289
|
+
const normalizedValue = this.normalizeValue(value);
|
|
290
|
+
this.updateDropdownState(normalizedValue);
|
|
282
291
|
return this.getSelectedChildren().map((element) => ({
|
|
283
292
|
value: element.value,
|
|
284
293
|
label: element.textContent.trim(),
|
|
285
294
|
}));
|
|
286
295
|
}
|
|
287
296
|
async reset() {
|
|
288
|
-
this.
|
|
297
|
+
this.updateDropdownState([]);
|
|
289
298
|
}
|
|
290
299
|
async removeValue(oldValue) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
this.value = null;
|
|
296
|
-
}
|
|
300
|
+
const newValues = this.selectedOptions.filter((v) => v !== oldValue);
|
|
301
|
+
this.updateDropdownState(newValues);
|
|
297
302
|
}
|
|
298
303
|
/** Method that forces focus on the input element. */
|
|
299
304
|
async focusElement() {
|
|
@@ -353,9 +358,9 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
353
358
|
}
|
|
354
359
|
componentWillLoad() {
|
|
355
360
|
if (this.defaultValue && !this.value) {
|
|
356
|
-
this.
|
|
361
|
+
const initialValue = this.multiselect ? this.defaultValue.split(',') : [this.defaultValue];
|
|
362
|
+
this.updateDropdownState(initialValue);
|
|
357
363
|
}
|
|
358
|
-
this.setDefaultOption();
|
|
359
364
|
}
|
|
360
365
|
/** Method to handle slot changes */
|
|
361
366
|
handleSlotChange() {
|
|
@@ -367,17 +372,27 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
367
372
|
}
|
|
368
373
|
async appendValue(value) {
|
|
369
374
|
if (this.multiselect) {
|
|
370
|
-
this.
|
|
375
|
+
this.updateDropdownState([...this.selectedOptions, value]);
|
|
371
376
|
}
|
|
372
377
|
else {
|
|
373
|
-
this.value
|
|
378
|
+
this.updateDropdownState([value]);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
componentDidRender() {
|
|
382
|
+
const form = this.host.closest('form');
|
|
383
|
+
if (form) {
|
|
384
|
+
form.addEventListener('reset', this.resetInput);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
disconnectedCallback() {
|
|
388
|
+
const form = this.host.closest('form');
|
|
389
|
+
if (form) {
|
|
390
|
+
form.removeEventListener('reset', this.resetInput);
|
|
374
391
|
}
|
|
375
392
|
}
|
|
376
393
|
render() {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
appendHiddenInput(this.host, this.name, valueArray.map((value) => value).toString(), this.disabled);
|
|
380
|
-
return (h(Host, { key: 'c3a3742ba6f875aee1b9e7abb4ab2c2b2331d3fc', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '0b45d4e910577e1cfd350f6f60e544839f905865', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '3557975c254df99c9f97dac71a6d9e66268c09f2', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
|
|
394
|
+
appendHiddenInput(this.host, this.name, this.selectedOptions.join(','), this.disabled);
|
|
395
|
+
return (h(Host, { key: 'b80b938a7e06df4883e939cf9cf06cbb5d2dc12b', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '75172f55ac3adc34a050bbeba543165b6c6ec445', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'd0498b07c2446b7ccde5bd09a95157454ffc2331', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
|
|
381
396
|
filter: true,
|
|
382
397
|
focus: this.filterFocus,
|
|
383
398
|
disabled: this.disabled,
|
|
@@ -385,7 +400,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
385
400
|
} }, h("div", { class: "value-wrapper" }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
|
|
386
401
|
label-inside-as-placeholder
|
|
387
402
|
${this.size}
|
|
388
|
-
${
|
|
403
|
+
${this.selectedOptions.length ? 'selected' : ''}
|
|
389
404
|
` }, this.label)), h("input", {
|
|
390
405
|
// eslint-disable-next-line no-return-assign
|
|
391
406
|
ref: (inputEl) => (this.inputElement = inputEl), class: `${this.labelPosition === 'inside' ? 'placeholder' : ''}`, type: "text", placeholder: this.filterFocus ? '' : this.placeholder, value: this.multiselect && this.filterFocus ? '' : this.getValue(), disabled: this.disabled, onInput: (event) => this.handleFilter(event), onBlur: (event) => {
|
|
@@ -412,14 +427,14 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
412
427
|
this.open = false;
|
|
413
428
|
}
|
|
414
429
|
}, class: `
|
|
415
|
-
${this.
|
|
430
|
+
${this.selectedOptions.length ? 'value' : 'placeholder'}
|
|
416
431
|
${this.open ? 'open' : 'closed'}
|
|
417
432
|
${this.error ? 'error' : ''}
|
|
418
433
|
`, disabled: this.disabled }, h("div", { class: `value-wrapper ${this.size}` }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
|
|
419
434
|
label-inside-as-placeholder
|
|
420
435
|
${this.size}
|
|
421
|
-
${
|
|
422
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` },
|
|
436
|
+
${this.selectedOptions.length ? 'selected' : ''}
|
|
437
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '999a08cee6035f37217270681b58411badc1596d', ref: (element) => (this.dropdownList = element), class: {
|
|
423
438
|
'dropdown-list': true,
|
|
424
439
|
[this.size]: true,
|
|
425
440
|
[this.getOpenDirection()]: true,
|
|
@@ -428,7 +443,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
428
443
|
'closed': !this.open,
|
|
429
444
|
[`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
|
|
430
445
|
[`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
|
|
431
|
-
} }, h("slot", { key: '
|
|
446
|
+
} }, h("slot", { key: 'f6e55be5581a1b5a24da4643508c4fe76767c9c7', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: '6184dce7e827ee6c2c0403e8531ea8ac782e3073', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '33bd5d3695247cfaaa66bb67b6ac6a5ced795c72', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: '6f3681a038fc95bb90e7877c54eff0b4c807b877', name: "error", size: "16px" }), this.helper))));
|
|
432
447
|
}
|
|
433
448
|
get host() { return this; }
|
|
434
449
|
static get watchers() { return {
|
|
@@ -49,12 +49,19 @@ const TdsCheckbox = /*@__PURE__*/ proxyCustomElement(class TdsCheckbox extends H
|
|
|
49
49
|
handleBlur(event) {
|
|
50
50
|
this.tdsBlur.emit(event);
|
|
51
51
|
}
|
|
52
|
+
/** Listens for a reset event inside a form */
|
|
53
|
+
handleFormReset(event) {
|
|
54
|
+
if (this.host.closest('form') === event.target) {
|
|
55
|
+
this.checked = false;
|
|
56
|
+
this.indeterminate = false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
52
59
|
render() {
|
|
53
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: '068b73081ab2b1b24d58fd2afd70f2b0e4308745', class: "tds-checkbox" }, h("input", { key: '97bd225b10dea56b8166ce3d5c2e4569a7dc76f9',
|
|
54
61
|
// eslint-disable-next-line no-return-assign
|
|
55
62
|
ref: (inputElement) => (this.inputElement = inputElement), indeterminate: this.indeterminate, "aria-checked": this.checked, "aria-required": this.required, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), required: this.required, type: "checkbox", name: this.name, value: this.value, id: this.checkboxId, checked: this.checked, disabled: this.disabled, onFocus: (event) => this.handleFocus(event), onBlur: (event) => this.handleBlur(event), onChange: () => {
|
|
56
63
|
this.handleChange();
|
|
57
|
-
} }), h("label", { key: '
|
|
64
|
+
} }), h("label", { key: '9cfe0411c9b26d12229de7fdb9421b333da0199c', htmlFor: this.checkboxId }, h("slot", { key: '17d2e45ddf05aa409926f3df82caab7a4f110b72', name: "label" }))));
|
|
58
65
|
}
|
|
59
66
|
get host() { return this; }
|
|
60
67
|
static get watchers() { return {
|
|
@@ -70,7 +77,7 @@ const TdsCheckbox = /*@__PURE__*/ proxyCustomElement(class TdsCheckbox extends H
|
|
|
70
77
|
"indeterminate": [1028],
|
|
71
78
|
"value": [1],
|
|
72
79
|
"toggleCheckbox": [64]
|
|
73
|
-
},
|
|
80
|
+
}, [[4, "reset", "handleFormReset"]], {
|
|
74
81
|
"indeterminate": ["handleIndeterminateState"]
|
|
75
82
|
}]);
|
|
76
83
|
function defineCustomElement() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-d921fe75.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './p-18c1245b.js';
|
|
4
4
|
|
|
5
5
|
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-blue-400);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{background-color:var(--tds-dropdown-option-background-hover);cursor:pointer}:host .dropdown-option:hover.disabled{background-color:var(--tds-dropdown-option-background);cursor:not-allowed}:host([hidden]){display:none}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TdsDropdownOption$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { T as TdsDropdownOption$1, d as defineCustomElement$1 } from './p-e7868876.js';
|
|
2
2
|
|
|
3
3
|
const TdsDropdownOption = TdsDropdownOption$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -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-18c1245b.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-5eaae628.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-a7a89410.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:rotate(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-c48c68b3.js';
|
|
7
7
|
import { d as defineCustomElement$4 } from './p-18c1245b.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-5eaae628.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './p-a7a89410.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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h } from './p-28ef5186.js';
|
|
2
2
|
|
|
3
|
-
const linkCss = ":host{display:inline}:host ::slotted(*){all:unset;cursor:pointer;outline:none;color:var(--tds-link);text-decoration:underline}:host ::slotted(*:focus-visible){color:var(--tds-link-focus);text-decoration:none;outline:2px solid var(--tds-link-focus);outline-offset:-2px}:host ::slotted(*:active){color:var(--tds-link);text-decoration:underline;text-decoration-color:var(--tds-link)}:host ::slotted(*:hover){color:var(--tds-link-hover);text-decoration:underline;text-decoration-color:var(--tds-link-hover)}:host ::slotted(*:visited){color:var(--tds-link-visited);text-decoration-color:var(--tds-link-visited)}.disabled ::slotted(*){color:var(--tds-link-disabled);text-decoration-color:var(--tds-link-disabled);pointer-events:none}.no-underline ::slotted(*){text-decoration:none}.no-underline:hover ::slotted(*){text-decoration:none}";
|
|
3
|
+
const linkCss = ":host{display:inline}:host ::slotted(*){all:unset;cursor:pointer;outline:none;color:var(--tds-link);text-decoration:underline}:host ::slotted(*:focus-visible){color:var(--tds-link-focus);text-decoration:none;outline:2px solid var(--tds-link-focus);outline-offset:-2px}:host ::slotted(*:active){color:var(--tds-link);text-decoration:underline;text-decoration-color:var(--tds-link)}:host ::slotted(*:hover){color:var(--tds-link-hover);text-decoration:underline;text-decoration-color:var(--tds-link-hover)}:host ::slotted(*:visited){color:var(--tds-link-visited);text-decoration-color:var(--tds-link-visited)}.disabled ::slotted(*),.disabled ::slotted(*:visited){color:var(--tds-link-disabled);text-decoration-color:var(--tds-link-disabled);pointer-events:none}.no-underline ::slotted(*){text-decoration:none}.no-underline:hover ::slotted(*){text-decoration:none}.standalone ::slotted(*){font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}";
|
|
4
4
|
const TdsLinkStyle0 = linkCss;
|
|
5
5
|
|
|
6
6
|
const TdsLink$1 = /*@__PURE__*/ proxyCustomElement(class TdsLink extends H {
|
|
@@ -10,21 +10,24 @@ const TdsLink$1 = /*@__PURE__*/ proxyCustomElement(class TdsLink extends H {
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
this.disabled = false;
|
|
12
12
|
this.underline = true;
|
|
13
|
+
this.standalone = false;
|
|
13
14
|
}
|
|
14
15
|
connectedCallback() {
|
|
15
16
|
this.host.children[0].classList.add('tds-link-component');
|
|
16
17
|
}
|
|
17
18
|
render() {
|
|
18
|
-
return (h("span", { key: '
|
|
19
|
+
return (h("span", { key: '619f52601e4716a34fd39752704acf06acd94dd8', class: `
|
|
19
20
|
${this.disabled ? 'disabled' : ''}
|
|
20
21
|
${!this.underline ? 'no-underline' : ''}
|
|
21
|
-
|
|
22
|
+
${this.standalone ? 'standalone' : ''}
|
|
23
|
+
` }, h("slot", { key: '636596dae6e69aff2f10666e86fb965e46efb059' })));
|
|
22
24
|
}
|
|
23
25
|
get host() { return this; }
|
|
24
26
|
static get style() { return TdsLinkStyle0; }
|
|
25
27
|
}, [1, "tds-link", {
|
|
26
28
|
"disabled": [4],
|
|
27
|
-
"underline": [4]
|
|
29
|
+
"underline": [4],
|
|
30
|
+
"standalone": [4]
|
|
28
31
|
}]);
|
|
29
32
|
function defineCustomElement$1() {
|
|
30
33
|
if (typeof customElements === "undefined") {
|
|
@@ -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-5eaae628.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-a7a89410.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;
|
|
@@ -25,6 +25,11 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends H {
|
|
|
25
25
|
this.useSnapping = false;
|
|
26
26
|
this.supposedValueSlot = -1;
|
|
27
27
|
this.resizeObserverAdded = false;
|
|
28
|
+
this.resetEventListenerAdded = false;
|
|
29
|
+
this.resetToInitialValue = () => {
|
|
30
|
+
this.forceValueUpdate(this.initialValue);
|
|
31
|
+
this.reset();
|
|
32
|
+
};
|
|
28
33
|
this.label = '';
|
|
29
34
|
this.value = '0';
|
|
30
35
|
this.min = '0';
|
|
@@ -302,27 +307,48 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends H {
|
|
|
302
307
|
}
|
|
303
308
|
this.calculateThumbLeftFromValue(this.value);
|
|
304
309
|
this.updateTrack();
|
|
310
|
+
// Only set the initial value once:
|
|
311
|
+
if (!this.initialValue) {
|
|
312
|
+
this.initialValue = this.value;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
componentDidRender() {
|
|
316
|
+
// Only add the event listener once:
|
|
317
|
+
if (!this.resetEventListenerAdded) {
|
|
318
|
+
this.formElement = this.host.closest('form');
|
|
319
|
+
if (this.formElement) {
|
|
320
|
+
this.formElement.addEventListener('reset', this.resetToInitialValue);
|
|
321
|
+
this.resetEventListenerAdded = true;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
disconnectedCallback() {
|
|
326
|
+
if (this.resetEventListenerAdded && this.formElement) {
|
|
327
|
+
this.formElement.removeEventListener('reset', this.resetToInitialValue);
|
|
328
|
+
this.resetEventListenerAdded = false;
|
|
329
|
+
}
|
|
305
330
|
}
|
|
306
331
|
render() {
|
|
307
|
-
return (h("div", { key: '
|
|
332
|
+
return (h("div", { key: 'ed4c71d1701e0711d8b01c015f137f6a3f10457e', class: {
|
|
308
333
|
'tds-slider-wrapper': true,
|
|
309
334
|
'read-only': this.readOnly,
|
|
310
|
-
} }, h("input", { key: '
|
|
335
|
+
} }, h("input", { key: '7d85ba109ec41e45a4ced646cfe092832b2013a7', class: "tds-slider-native-element", type: "range", name: this.name, min: this.min, max: this.max, value: this.value, disabled: this.disabled }), h("div", { key: '7c32efe653a6437068026e0b612bd1cdb0fd580d', class: {
|
|
311
336
|
'tds-slider': true,
|
|
312
337
|
'disabled': this.disabled,
|
|
313
338
|
'tds-slider-small': this.useSmall,
|
|
314
339
|
}, ref: (el) => {
|
|
315
340
|
this.wrapperElement = el;
|
|
316
|
-
} }, h("label", { key: '
|
|
341
|
+
} }, h("label", { key: '5561410214fda42ddb4553084f312de9943f825b', class: this.showTickNumbers && 'offset' }, this.label), this.useInput && (h("div", { key: '37340de05febbca285f031bd8df7d9c2588e315d', class: "tds-slider__input-values" }, h("div", { key: 'e973831529eb93eb0b0da6c5f92bd838dfb9bcdb', class: "tds-slider__input-value min-value" }, this.min))), this.useControls && (h("div", { key: '1a710d2d1ffac7533f9bae2908d4341d3b40e2f0', class: "tds-slider__controls" }, h("div", { key: '0a741834782d8e69a7d55e6cd87a3fdf4938d744', class: "tds-slider__control tds-slider__control-minus", onClick: (event) => this.stepLeft(event) }, h("tds-icon", { key: '8c67943ac2e15d742726e76c2b4c029d15c20f32', name: "minus", size: "16px" })))), h("div", { key: '96c4229007fbe882e106bcc3deb34f504c9604e3', class: "tds-slider-inner" }, this.tickValues.length > 0 && (h("div", { key: '905fc1a02070f5419f76ec5d60d8f55d89d4650b', class: "tds-slider__value-dividers-wrapper" }, h("div", { key: 'd2ccbea1b6e26ab1855c81e71730bebea0da37d8', class: "tds-slider__value-dividers" }, this.tickValues.map((value) => (h("div", { class: "tds-slider__value-divider" }, this.showTickNumbers && h("span", null, value))))))), h("div", { key: '30c9b4bb6f59631d443345ee6d1edf1973a83d0b', class: "tds-slider__track", ref: (el) => {
|
|
317
342
|
this.trackElement = el;
|
|
318
|
-
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '
|
|
343
|
+
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '7acbccae98c481c4cfaeb2dc66d67a2e19575b93', class: "tds-slider__track-fill", ref: (el) => {
|
|
319
344
|
this.trackFillElement = el;
|
|
320
|
-
} }), h("div", { key: '
|
|
345
|
+
} }), h("div", { key: '46a5c3135c5f765d5fb0845372dc3854586fa44d', class: "tds-slider__thumb", ref: (el) => {
|
|
321
346
|
this.thumbElement = el;
|
|
322
|
-
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: '
|
|
347
|
+
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: 'd39cd29d1e6302f8bd4a3d827797f8822e24b84d', class: "tds-slider__value" }, this.value, h("svg", { key: '5946f90b70b2afb2efc7f3a3bc5817a82ac3ca4a', width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '9456df642aca39b94b17bb529ca02e2d6a2fde6c', d: "M8.15882 12.6915L0.990487 1.54076C0.562658 0.875246 1.0405 0 1.83167 0H16.1683C16.9595 0 17.4373 0.875246 17.0095 1.54076L9.84118 12.6915C9.44754 13.3038 8.55246 13.3038 8.15882 12.6915Z", fill: "currentColor" })))), h("div", { key: 'b4ca73a085f837d7e87e3334b8e58e5638125118', class: "tds-slider__thumb-inner", ref: (el) => {
|
|
323
348
|
this.thumbInnerElement = el;
|
|
324
|
-
} })))), this.useInput && (h("div", { key: '
|
|
349
|
+
} })))), this.useInput && (h("div", { key: '6574286ac7764807fd1e18875d6fa39ab7f7b304', class: "tds-slider__input-values" }, h("div", { key: '57a92adf59551f551c4ae06355c276a69b34028a', class: "tds-slider__input-value", onClick: (event) => this.stepLeft(event) }, this.max), h("div", { key: '0e1632ca8c9510177d349147749e3162aa46f219', class: "tds-slider__input-field-wrapper" }, h("input", { key: '094d194bce54d1073a5d657f7bc3f30107f5fe41', size: this.calculateInputSizeFromMax(), class: "tds-slider__input-field", value: this.value, readOnly: this.readOnly, onBlur: (event) => this.updateSliderValueOnInputChange(event), onKeyDown: (event) => this.handleInputFieldEnterPress(event), type: "number", min: this.min, max: this.max })))), this.useControls && (h("div", { key: '207398a3fd02e11f09c70ebbb8b293d6c16afd1f', class: "tds-slider__controls" }, h("div", { key: 'ca93ce9a55d0db25a3eaefd6e4dbc53106afc895', class: "tds-slider__control tds-slider__control-plus", onClick: (event) => this.stepRight(event) }, h("tds-icon", { key: '6ab123f8701fdd93580a61c500ae6da658b547fd', name: "plus", size: "16px" })))))));
|
|
325
350
|
}
|
|
351
|
+
get host() { return this; }
|
|
326
352
|
static get watchers() { return {
|
|
327
353
|
"value": ["handleValueUpdate"]
|
|
328
354
|
}; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-d921fe75.js';
|
|
3
3
|
|
|
4
4
|
const tableBodyRowCss = ":host(.tds-table__row){box-sizing:border-box;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) *{box-sizing:border-box}:host(.tds-table__row) .tds-table__body-cell--checkbox{min-width:48px;width:48px;padding:0}:host(.tds-table__row:hover){background-color:var(--tds-table-body-row-background-hover)}:host(.tds-table__row--selected){background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row--selected:hover){background-color:var(--tds-table-body-row-background-selected-hover)}:host(.tds-table__row--hidden){display:none}:host(.tds-table__row--expended){width:100%;background-color:pink}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host(.tds-table__compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__body-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table__row--clickable){cursor:pointer}:host(.tds-table__row--clickable:focus-visible){outline:var(--focus-outline, 2px solid blue)}";
|
|
5
5
|
const TdsTableBodyRowStyle0 = tableBodyRowCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
|
-
import { d as defineCustomElement$5 } from './p-
|
|
3
|
-
import { d as defineCustomElement$4 } from './p-
|
|
4
|
-
import { d as defineCustomElement$3 } from './p-
|
|
2
|
+
import { d as defineCustomElement$5 } from './p-d921fe75.js';
|
|
3
|
+
import { d as defineCustomElement$4 } from './p-aa12ddb9.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './p-e7868876.js';
|
|
5
5
|
import { d as defineCustomElement$2 } from './p-18c1245b.js';
|
|
6
6
|
|
|
7
7
|
const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:var(--tds-spacing-element-48)}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-48);display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page{display:flex;align-items:center;margin-right:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page p,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page p{margin-right:var(--tds-spacing-element-8)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:74px;height:30px;border:none;border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;margin-right:var(--tds-spacing-element-4);padding-left:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:var(--tds-spacing-element-32);width:var(--tds-spacing-element-32);border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;color:var(--tds-table-footer-page-selector-icon)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;color:var(--tds-table-footer-page-selector-icon-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover{background-color:transparent}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn-svg{height:var(--tds-spacing-element-20);width:var(--tds-spacing-element-20);fill:var(--tds-table-color)}:host(.tds-table--compact){height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{height:var(--tds-spacing-element-24)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{height:28px;width:28px}:host(.footer__horizontal-scroll){display:inline-table;position:absolute;margin-top:10px}@keyframes tds-shake-animation{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}tds-dropdown:focus-within::after{content:\"\";position:absolute;bottom:0;left:0;height:100%;width:100%;background-color:transparent;border-radius:var(--tds-spacing-element-4);pointer-events:none;outline:2px solid var(--tds-blue-400);outline-offset:-2px}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
|
-
import { d as defineCustomElement$2 } from './p-
|
|
2
|
+
import { d as defineCustomElement$2 } from './p-d921fe75.js';
|
|
3
3
|
|
|
4
4
|
const tableHeaderCss = ":host{box-sizing:border-box;display:table-header-group}:host *{box-sizing:border-box}:host .tds-table__header-cell--checkbox{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-divider);height:48px;box-sizing:border-box;overflow:hidden;transition:background-color 200ms ease;min-width:unset;width:48px;padding:0;border-top-left-radius:4px}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input{display:none}:host .tds-table__expand-control-container .tds-expandable-row-icon{height:20px;width:20px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__expand-control-container .tds-expandable-row-icon--opened{transform:rotate(180deg)}:host ::slotted(tds-header-cell:hover){background-color:var(--tds-table-header-background-hover)}:host(.tds-table--compact) .tds-table__header-cell--checkbox{height:32px}:host(.tds-table--compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__header-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table--toolbar-available) .tds-table__header-cell--checkbox{border-top-left-radius:0}";
|
|
5
5
|
const TdsTableHeaderStyle0 = tableHeaderCss;
|
|
@@ -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-a7a89410.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
|
const TdsTooltipStyle0 = tooltipCss;
|