@scania/tegel 1.29.0-1.29.0-fix-spinner-alignment-beta.1 → 1.29.0-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/loader.cjs.js +1 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +3 -11
- package/dist/cjs/tds-icon.cjs.entry.js +3 -21
- package/dist/cjs/tds-modal.cjs.entry.js +19 -7
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -19
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +7 -8
- package/dist/cjs/tds-table-body-row.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -6
- package/dist/cjs/tds-text-field.cjs.entry.js +3 -3
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/icon/icon.js +3 -19
- package/dist/collection/components/modal/modal.js +19 -7
- package/dist/collection/components/spinner/spinner.css +5 -6
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +2 -2
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -19
- package/dist/collection/components/table/table-body-row/table-body-row.js +2 -2
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -26
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -29
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -24
- package/dist/collection/components/text-field/text-field.js +3 -3
- package/dist/{collection/components/icon/scaniaIconsArray.js → components/p-9b40a24d.js} +66 -246
- package/dist/components/{p-090bb1e9.js → p-9ba3c16e.js} +1 -1
- package/dist/components/{p-50b1ba5c.js → p-ce28efb8.js} +1 -1
- package/dist/components/{p-7f02bdf2.js → p-f4c6f29b.js} +1 -1
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-body-cell.js +2 -2
- package/dist/components/tds-datetime.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tabs.js +1 -1
- package/dist/components/tds-footer-group.js +1 -1
- package/dist/components/tds-header-cell.js +4 -13
- package/dist/components/tds-header-dropdown.js +1 -1
- package/dist/components/tds-header-hamburger.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher.js +2 -2
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tabs.js +1 -1
- package/dist/components/tds-message.js +1 -1
- package/dist/components/tds-modal.js +20 -8
- package/dist/components/tds-navigation-tabs.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +1 -1
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- package/dist/components/tds-slider.js +1 -1
- package/dist/components/tds-spinner.js +1 -1
- package/dist/components/tds-step.js +1 -1
- package/dist/components/tds-table-body-input-wrapper.js +2 -20
- package/dist/components/tds-table-body-row-expandable.js +7 -9
- package/dist/components/tds-table-body-row.js +2 -2
- package/dist/components/tds-table-footer.js +3 -3
- package/dist/components/tds-table-header-input-wrapper.js +2 -2
- package/dist/components/tds-table-toolbar.js +3 -8
- package/dist/components/tds-text-field.js +4 -4
- package/dist/components/tds-textarea.js +1 -1
- package/dist/components/tds-toast.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +3 -11
- package/dist/esm/tds-icon.entry.js +4 -22
- package/dist/esm/tds-modal.entry.js +19 -7
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -19
- package/dist/esm/tds-table-body-row-expandable.entry.js +7 -8
- package/dist/esm/tds-table-body-row.entry.js +2 -2
- package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-toolbar.entry.js +2 -6
- package/dist/esm/tds-text-field.entry.js +3 -3
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-0e37277e.entry.js +1 -0
- package/dist/tegel/p-1c0c284b.entry.js +1 -0
- package/dist/tegel/p-1cda8fe6.entry.js +1 -0
- package/dist/tegel/p-2551fd5b.entry.js +1 -0
- package/dist/tegel/p-2fbf2fdb.entry.js +1 -0
- package/dist/tegel/p-66786ba0.entry.js +1 -0
- package/dist/tegel/p-8f1aead7.entry.js +1 -0
- package/dist/tegel/p-981e6232.entry.js +1 -0
- package/dist/tegel/p-9ef67795.entry.js +1 -0
- package/dist/tegel/{p-d7cdbc4e.entry.js → p-a10b3a4a.entry.js} +1 -1
- package/dist/tegel/{p-f31f56fe.entry.js → p-d515fcdb.entry.js} +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/icon/icon.d.ts +1 -3
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +0 -1
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +0 -2
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +0 -3
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +0 -2
- package/dist/types/components.d.ts +0 -24
- package/dist/types/types/Icons.d.ts +1 -3
- package/package.json +1 -1
- package/dist/collection/components/icon/tratonIconsArray.js +0 -32
- package/dist/collection/types/ScaniaIcons.js +0 -1
- package/dist/collection/types/TratonIcons.js +0 -1
- package/dist/components/p-adf3fdac.js +0 -85
- package/dist/tegel/p-07524838.entry.js +0 -1
- package/dist/tegel/p-1647691e.entry.js +0 -1
- package/dist/tegel/p-63d60c80.entry.js +0 -1
- package/dist/tegel/p-6a388505.entry.js +0 -1
- package/dist/tegel/p-73c3b496.entry.js +0 -1
- package/dist/tegel/p-a56ad3d8.entry.js +0 -1
- package/dist/tegel/p-c1eb973b.entry.js +0 -1
- package/dist/tegel/p-d94b21ce.entry.js +0 -1
- package/dist/tegel/p-f2318c88.entry.js +0 -1
- package/dist/types/types/ScaniaIcons.d.ts +0 -1
- package/dist/types/types/TratonIcons.d.ts +0 -1
|
@@ -68,13 +68,13 @@ export class TdsTableBodyRow {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
render() {
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '5b049039384682278f6d296b58c861e255a7be36', tabindex: this.clickable ? '0' : null, class: {
|
|
72
72
|
'tds-table__row': true,
|
|
73
73
|
'tds-table__row--selected': this.selected,
|
|
74
74
|
'tds-table__compact': this.compactDesign,
|
|
75
75
|
'tds-table--divider': this.verticalDividers,
|
|
76
76
|
'tds-table__row--clickable': this.clickable,
|
|
77
|
-
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e)
|
|
77
|
+
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e) }, this.multiselect && (h("td", { key: 'b01c688d209a7c81d7a4987a23afbdbbaf8c4b1e', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: 'b716bd929a7e1c6e29edb74609a7695db85d859a', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: 'c34811d4ef6837c3046434c805e1f1c291bc658c' })));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "tds-table-body-row"; }
|
|
80
80
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -21,7 +21,6 @@ export class TdsTableBodyRowExpandable {
|
|
|
21
21
|
this.expanded = undefined;
|
|
22
22
|
this.overflow = 'auto';
|
|
23
23
|
this.autoCollapse = false;
|
|
24
|
-
this.tdsAriaLabelExpandButton = '';
|
|
25
24
|
this.isExpanded = false;
|
|
26
25
|
this.tableId = '';
|
|
27
26
|
this.columnsNumber = null;
|
|
@@ -101,26 +100,26 @@ export class TdsTableBodyRowExpandable {
|
|
|
101
100
|
this.sendValue();
|
|
102
101
|
}
|
|
103
102
|
render() {
|
|
104
|
-
return (h(Host, { key: '
|
|
103
|
+
return (h(Host, { key: '9414020f12ee91b731b9095601b990bc2ad3371c', class: {
|
|
105
104
|
'tds-table__row': true,
|
|
106
105
|
'tds-table__row-expand--active': this.isExpanded,
|
|
107
106
|
'tds-table__compact': this.compactDesign,
|
|
108
107
|
'tds-table--divider': this.verticalDividers,
|
|
109
|
-
} }, h("tr", { key: '
|
|
108
|
+
} }, h("tr", { key: 'a61e2b06bd0ca24a1439f9ee188c16c6d72aee6b', class: {
|
|
110
109
|
'tds-table__row': true,
|
|
111
110
|
'tds-table__row--expanded': this.isExpanded,
|
|
112
|
-
}, part: "row" }, h("td", { key: '
|
|
111
|
+
}, part: "row" }, h("td", { key: '6b95af08336808aa1c3546065ddea7df3d88784a', class: {
|
|
113
112
|
'tds-table__cell-expand': true,
|
|
114
|
-
} }, h("label", { key: '
|
|
113
|
+
} }, h("label", { key: '4e8684f15d8c2eeba68b44d83c4c4879a06488cc', class: "tds-table__expand-control-container" }, h("input", { key: 'b089f4d08c90209b7dd9c346e61508cec9699329', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: 'c1f0397af8533f7a90f91694b903f99a3dce06f5', class: "tds-expendable-row-icon" }, h("svg", { key: '688c959410eb223201fa60a74d580bbf0f58f73a', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '597ee637be990bb4e597bf460f4e0d44095cf507', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: '25c8b16c5aeafe8922680a0508b9a1740374b43e' })), h("tr", { key: 'f39b8152eb0a697ecfaf52068e137619129eee69', class: {
|
|
115
114
|
'tds-table__row-expand': true,
|
|
116
115
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
117
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
116
|
+
}, part: "expand-row" }, h("td", { key: 'fcfec78e44e1da564b36d2fa65f0549aa7154fc6', class: {
|
|
118
117
|
'tds-table__cell-expand': true,
|
|
119
118
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
120
119
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
121
|
-
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: '
|
|
120
|
+
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: 'ecf58e291825543681d0781249b0404b7385144e', style: {
|
|
122
121
|
overflow: this.overflow,
|
|
123
|
-
} }, h("slot", { key: '
|
|
122
|
+
} }, h("slot", { key: '8b118db9c887061935d153138b76e3712b1e6804', name: "expand-row" }))))));
|
|
124
123
|
}
|
|
125
124
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
126
125
|
static get encapsulation() { return "shadow"; }
|
|
@@ -224,24 +223,6 @@ export class TdsTableBodyRowExpandable {
|
|
|
224
223
|
"attribute": "auto-collapse",
|
|
225
224
|
"reflect": false,
|
|
226
225
|
"defaultValue": "false"
|
|
227
|
-
},
|
|
228
|
-
"tdsAriaLabelExpandButton": {
|
|
229
|
-
"type": "string",
|
|
230
|
-
"mutable": false,
|
|
231
|
-
"complexType": {
|
|
232
|
-
"original": "string",
|
|
233
|
-
"resolved": "string",
|
|
234
|
-
"references": {}
|
|
235
|
-
},
|
|
236
|
-
"required": false,
|
|
237
|
-
"optional": false,
|
|
238
|
-
"docs": {
|
|
239
|
-
"tags": [],
|
|
240
|
-
"text": "Aria label for the expand button, providing an accessible description"
|
|
241
|
-
},
|
|
242
|
-
"attribute": "tds-aria-label-expand-button",
|
|
243
|
-
"reflect": true,
|
|
244
|
-
"defaultValue": "''"
|
|
245
226
|
}
|
|
246
227
|
};
|
|
247
228
|
}
|
|
@@ -31,7 +31,7 @@ export class TdsTableHeaderCell {
|
|
|
31
31
|
};
|
|
32
32
|
this.headerCellContent = () => {
|
|
33
33
|
if (this.sortable) {
|
|
34
|
-
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState }
|
|
34
|
+
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h("tds-icon", { class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h("tds-icon", { class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
|
|
35
35
|
}
|
|
36
36
|
return (h("p", { class: {
|
|
37
37
|
'tds-table__header-text': true,
|
|
@@ -50,7 +50,6 @@ export class TdsTableHeaderCell {
|
|
|
50
50
|
this.sortable = false;
|
|
51
51
|
this.textAlign = 'left';
|
|
52
52
|
this.disablePadding = false;
|
|
53
|
-
this.tdsAriaLabelSortButton = '';
|
|
54
53
|
this.textAlignState = undefined;
|
|
55
54
|
this.sortingDirection = undefined;
|
|
56
55
|
this.sortedByMyKey = false;
|
|
@@ -105,15 +104,8 @@ export class TdsTableHeaderCell {
|
|
|
105
104
|
this.enableToolbarDesign =
|
|
106
105
|
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
107
106
|
}
|
|
108
|
-
getAriaSort() {
|
|
109
|
-
if (this.sortingDirection === 'asc')
|
|
110
|
-
return 'ascending';
|
|
111
|
-
if (this.sortingDirection === 'desc')
|
|
112
|
-
return 'descending';
|
|
113
|
-
return 'none';
|
|
114
|
-
}
|
|
115
107
|
render() {
|
|
116
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '072b8e55e1519151d7a178f905c5cf5bb353c5bf', class: {
|
|
117
109
|
'tds-table__header-cell': true,
|
|
118
110
|
'tds-table__header-cell--sortable': this.sortable,
|
|
119
111
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
@@ -124,7 +116,7 @@ export class TdsTableHeaderCell {
|
|
|
124
116
|
'tds-table--extra-column': this.multiselect || this.expandableRows,
|
|
125
117
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
126
118
|
'tds-table--no-padding': this.disablePadding,
|
|
127
|
-
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('')
|
|
119
|
+
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent()));
|
|
128
120
|
}
|
|
129
121
|
static get is() { return "tds-header-cell"; }
|
|
130
122
|
static get encapsulation() { return "shadow"; }
|
|
@@ -244,24 +236,6 @@ export class TdsTableHeaderCell {
|
|
|
244
236
|
"attribute": "disable-padding",
|
|
245
237
|
"reflect": true,
|
|
246
238
|
"defaultValue": "false"
|
|
247
|
-
},
|
|
248
|
-
"tdsAriaLabelSortButton": {
|
|
249
|
-
"type": "string",
|
|
250
|
-
"mutable": false,
|
|
251
|
-
"complexType": {
|
|
252
|
-
"original": "string",
|
|
253
|
-
"resolved": "string",
|
|
254
|
-
"references": {}
|
|
255
|
-
},
|
|
256
|
-
"required": false,
|
|
257
|
-
"optional": true,
|
|
258
|
-
"docs": {
|
|
259
|
-
"tags": [],
|
|
260
|
-
"text": "Aria label for the sort button, providing an accessible description"
|
|
261
|
-
},
|
|
262
|
-
"attribute": "tds-aria-label-sort-button",
|
|
263
|
-
"reflect": true,
|
|
264
|
-
"defaultValue": "''"
|
|
265
239
|
}
|
|
266
240
|
};
|
|
267
241
|
}
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js
CHANGED
|
@@ -67,7 +67,7 @@ export class TdsTableHeaderInputWrapper {
|
|
|
67
67
|
'focused-input-wrapper': this.inputFocused,
|
|
68
68
|
'show-icon': this.showIcon,
|
|
69
69
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", {
|
|
70
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "tds-table-header-input-wrapper"; }
|
|
73
73
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,6 @@ export class TdsTableToolbar {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
this.tableTitle = '';
|
|
14
14
|
this.filter = false;
|
|
15
|
-
this.tdsSearchAriaLabel = '';
|
|
16
15
|
this.verticalDividers = false;
|
|
17
16
|
this.compactDesign = false;
|
|
18
17
|
this.noMinWidth = false;
|
|
@@ -35,9 +34,6 @@ export class TdsTableToolbar {
|
|
|
35
34
|
connectedCallback() {
|
|
36
35
|
this.tableEl = this.host.closest('tds-table');
|
|
37
36
|
this.tableId = this.tableEl.tableId;
|
|
38
|
-
if (!this.tdsSearchAriaLabel) {
|
|
39
|
-
console.warn('tds-table-toolbar: tdsSearchAriaLabel is highly recommended for accessibility');
|
|
40
|
-
}
|
|
41
37
|
}
|
|
42
38
|
componentWillLoad() {
|
|
43
39
|
relevantTableProps.forEach((tablePropName) => {
|
|
@@ -67,10 +63,10 @@ export class TdsTableToolbar {
|
|
|
67
63
|
return styles;
|
|
68
64
|
}
|
|
69
65
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '53f2438014682bd1b23cdeb222723b4f09fcf48b', class: {
|
|
71
67
|
'tds-table--compact': this.compactDesign,
|
|
72
68
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
73
|
-
}, style: this.getStyles()
|
|
69
|
+
}, style: this.getStyles() }, h("div", { key: 'e5912f152a528a0c9bf5a7582b10e2ca0458da9f', class: "tds-table__upper-bar-flex" }, h("caption", { key: '382bf6a6e35d78e329af0b6672b70c8875eaa184', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'f3a4fc316840e0bd1f083540a30831b77acf0c59', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '20ab41120800efe3194818c8e6a8039db012900b', class: "tds-table__searchbar" }, h("input", { key: 'd07cc3caa8f06b92fa7e80eabdaa565042d06ba5', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '6b8cb5f2d9500a0a104d0656c085745ec6194bf0', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '926eeae91dfa03475fb16470e5780dc592f05680', name: "search", size: "20px" })))), h("slot", { key: '2694b404429fc75ad0793f01b604197c4faa4f7e', name: "end" })))));
|
|
74
70
|
}
|
|
75
71
|
static get is() { return "tds-table-toolbar"; }
|
|
76
72
|
static get encapsulation() { return "shadow"; }
|
|
@@ -121,24 +117,6 @@ export class TdsTableToolbar {
|
|
|
121
117
|
"attribute": "filter",
|
|
122
118
|
"reflect": true,
|
|
123
119
|
"defaultValue": "false"
|
|
124
|
-
},
|
|
125
|
-
"tdsSearchAriaLabel": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"mutable": false,
|
|
128
|
-
"complexType": {
|
|
129
|
-
"original": "string",
|
|
130
|
-
"resolved": "string",
|
|
131
|
-
"references": {}
|
|
132
|
-
},
|
|
133
|
-
"required": false,
|
|
134
|
-
"optional": false,
|
|
135
|
-
"docs": {
|
|
136
|
-
"tags": [],
|
|
137
|
-
"text": "Aria label for the search input, providing an accessible description"
|
|
138
|
-
},
|
|
139
|
-
"attribute": "tds-search-aria-label",
|
|
140
|
-
"reflect": false,
|
|
141
|
-
"defaultValue": "''"
|
|
142
120
|
}
|
|
143
121
|
};
|
|
144
122
|
}
|
|
@@ -99,7 +99,7 @@ export class TdsTextField {
|
|
|
99
99
|
'text-field-error': this.state === 'error',
|
|
100
100
|
'text-field-success': this.state === 'success',
|
|
101
101
|
'text-field-default': this.state === 'default',
|
|
102
|
-
} }, h("slot", { key: '8c6c192a137ea00d114f9721d0f6fcea366708ca', name: "prefix" }))), h("div", { key: 'e8b2650e45cba5e63e1db4e3d1d7af6662ff187b', class: "text-field-input-container" }, h("input", { key: '
|
|
102
|
+
} }, h("slot", { key: '8c6c192a137ea00d114f9721d0f6fcea366708ca', name: "prefix" }))), h("div", { key: 'e8b2650e45cba5e63e1db4e3d1d7af6662ff187b', class: "text-field-input-container" }, h("input", { key: 'd208edd0ffe3f2a78bc2df4f0dd58e13fd768453', ref: (inputEl) => {
|
|
103
103
|
this.textInput = inputEl;
|
|
104
104
|
}, class: {
|
|
105
105
|
'text-field-input': true,
|
|
@@ -114,13 +114,13 @@ export class TdsTextField {
|
|
|
114
114
|
if (!this.readOnly) {
|
|
115
115
|
this.handleBlur(event);
|
|
116
116
|
}
|
|
117
|
-
}, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby":
|
|
117
|
+
}, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": "text-field-helper-element", "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '38b9cedc8c7a07b582c16b01a267cf4e08a20481', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: '9587a4002c11b93ee715952080e4959be0393642', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'bb46ceb5bee96468ecbd1ec0bda36c639b045450', class: {
|
|
118
118
|
'text-field-slot-wrap-suffix': true,
|
|
119
119
|
'text-field-error': this.state === 'error',
|
|
120
120
|
'text-field-success': this.state === 'success',
|
|
121
121
|
'text-field-default': this.state === 'default',
|
|
122
122
|
'tds-u-display-none': this.readOnly,
|
|
123
|
-
} }, h("slot", { key: '
|
|
123
|
+
} }, h("slot", { key: 'baa86fca37b71182b800095be7c4fb6db2ee4d13', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: '6d3abf0a6e60463e7f6db1187229cf17e5f4b80b', class: "text-field-icon__readonly" }, h("tds-icon", { key: 'c5afca89f935a0a3f2c63039badf7b05c60b6015', name: "edit_inactive", size: "20px" }))), h("span", { key: 'd677de36f510688d3311f514aed89390c1d0a39b', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: 'f79ebd15d92174541ea7683de7cf002af996733a', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'b7708331d4c8a21d869a21f86e873da017ae2157', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '098f7e9d9b053b4bfb02a387be879d4c519c2b95', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: 'fa894663253fdb19d168e284284f35695deada29', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: 'dcae00985dc79db8ad6bdd65fe6160d4f5de8603', class: {
|
|
124
124
|
'text-field-textcounter-divider': true,
|
|
125
125
|
'text-field-textcounter-disabled': this.disabled,
|
|
126
126
|
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
|