@scania/tegel 1.21.1-config-for-china-beta.0 → 1.21.1-header-event-trigger-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-header-dropdown.cjs.entry.js +5 -4
- package/dist/cjs/tds-text-field.cjs.entry.js +12 -6
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +0 -1
- package/dist/collection/components/accordion/accordion.css +0 -1
- package/dist/collection/components/badge/badge.css +0 -1
- package/dist/collection/components/banner/banner.css +0 -1
- package/dist/collection/components/block/block.css +0 -1
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +0 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.css +0 -1
- package/dist/collection/components/button/button.css +0 -1
- package/dist/collection/components/card/card.css +0 -1
- package/dist/collection/components/checkbox/checkbox.css +0 -1
- package/dist/collection/components/chip/chip.css +0 -1
- package/dist/collection/components/datetime/datetime.css +0 -1
- package/dist/collection/components/divider/divider.css +0 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +0 -1
- package/dist/collection/components/dropdown/dropdown.css +0 -1
- package/dist/collection/components/footer/footer-group/footer-group.css +0 -1
- package/dist/collection/components/footer/footer-item/footer-item.css +0 -1
- package/dist/collection/components/footer/footer.css +0 -1
- package/dist/collection/components/header/core-header-item/core-header-item.css +0 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +0 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +0 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -4
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.css +0 -1
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +0 -1
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.css +0 -1
- package/dist/collection/components/header/header-hamburger/header-hamburger.css +1 -1
- package/dist/collection/components/header/header-item/header-item.css +0 -1
- package/dist/collection/components/header/header-launcher/header-launcher.css +0 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.css +0 -1
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.css +0 -1
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.css +0 -1
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.css +0 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.css +0 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.css +0 -1
- package/dist/collection/components/header/header-title/header-title.css +0 -1
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/icon/icon.css +0 -1
- package/dist/collection/components/link/link.css +0 -1
- package/dist/collection/components/message/message.css +0 -1
- package/dist/collection/components/modal/modal.css +0 -1
- package/dist/collection/components/popover-canvas/popover-canvas.css +0 -1
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.css +0 -1
- package/dist/collection/components/popover-menu/popover-menu.css +0 -1
- package/dist/collection/components/radio-button/radio-button.css +0 -1
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.css +0 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.css +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.css +0 -1
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.css +0 -1
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.css +0 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.css +0 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.css +0 -1
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.css +0 -1
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.css +0 -1
- package/dist/collection/components/side-menu/side-menu.css +1 -1
- package/dist/collection/components/slider/slider.css +0 -1
- package/dist/collection/components/spinner/spinner.css +0 -1
- package/dist/collection/components/stepper/step/step.css +0 -1
- package/dist/collection/components/stepper/stepper.css +0 -1
- package/dist/collection/components/table/table/table.css +0 -1
- package/dist/collection/components/table/table-body/table-body.css +0 -1
- package/dist/collection/components/table/table-body-cell/table-body-cell.css +0 -1
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +0 -1
- package/dist/collection/components/table/table-body-row/table-body-row.css +0 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +0 -1
- package/dist/collection/components/table/table-footer/table-footer.css +0 -1
- package/dist/collection/components/table/table-header/table-header.css +0 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +0 -1
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +0 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.css +0 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +0 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.css +0 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +0 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +0 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +0 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +0 -1
- package/dist/collection/components/text-field/text-field.css +0 -1
- package/dist/collection/components/text-field/text-field.js +34 -7
- package/dist/collection/components/textarea/textarea.css +0 -1
- package/dist/collection/components/toast/toast.css +0 -1
- package/dist/collection/components/toggle/toggle.css +0 -1
- package/dist/collection/components/tooltip/tooltip.css +0 -1
- package/dist/components/tds-header-dropdown.js +5 -4
- package/dist/components/tds-text-field.js +14 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +5 -4
- package/dist/esm/tds-text-field.entry.js +12 -6
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-7d39487c.entry.js +1 -0
- package/dist/tegel/p-b189b644.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/text-field/text-field.d.ts +2 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +1 -1
- package/dist/tegel/p-0fe204ed.entry.js +0 -1
- package/dist/tegel/p-588a05aa.entry.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
1
|
import hasSlot from "../../utils/hasSlot";
|
|
2
|
+
import { h } from "@stencil/core";
|
|
3
3
|
/**
|
|
4
4
|
* @slot prefix - Slot for the prefix in the component.
|
|
5
5
|
* @slot suffix - Slot for the suffix in the component. Suffix is hidden when the input is in readonly state.
|
|
@@ -44,11 +44,17 @@ export class TdsTextField {
|
|
|
44
44
|
this.focusInput = false;
|
|
45
45
|
this.tdsBlur.emit(event);
|
|
46
46
|
}
|
|
47
|
+
/** Method to handle focus */
|
|
48
|
+
async focusElement() {
|
|
49
|
+
if (this.textInput) {
|
|
50
|
+
this.textInput.focus();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
47
53
|
render() {
|
|
48
54
|
var _a;
|
|
49
55
|
const usesPrefixSlot = hasSlot('prefix', this.host);
|
|
50
56
|
const usesSuffixSlot = hasSlot('suffix', this.host);
|
|
51
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: 'fbbf85f381d4322a3806e26fd0d5fc99f418798d', class: {
|
|
52
58
|
'form-text-field': true,
|
|
53
59
|
'form-text-field-nomin': this.noMinWidth,
|
|
54
60
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -62,12 +68,12 @@ export class TdsTextField {
|
|
|
62
68
|
'form-text-field-sm': this.size === 'sm',
|
|
63
69
|
'form-text-field-error': this.state === 'error',
|
|
64
70
|
'form-text-field-success': this.state === 'success',
|
|
65
|
-
} }, this.labelPosition === 'outside' && (h("div", { key: '
|
|
71
|
+
} }, this.labelPosition === 'outside' && (h("div", { key: '56af5e0e26cd43abbbea49de990bc07c6bb5b18c', class: "text-field-label-outside" }, h("div", { key: '874e3561ccf253e30f6b09902d76174293a1f332' }, this.label))), h("div", { key: 'fc43c855f7f374a2761feda34a6374be1a37ff90', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '7b5590cf8cb856942e30fd80c3115bf133062998', class: {
|
|
66
72
|
'text-field-slot-wrap-prefix': true,
|
|
67
73
|
'text-field-error': this.state === 'error',
|
|
68
74
|
'text-field-success': this.state === 'success',
|
|
69
75
|
'text-field-default': this.state === 'default',
|
|
70
|
-
} }, h("slot", { key: '
|
|
76
|
+
} }, h("slot", { key: 'df3ff67a7f8195e3317c6bef103ee19b98628fe3', name: "prefix" }))), h("div", { key: '7727642d6c2bc664785043f730d652a2ca21657c', class: "text-field-input-container" }, h("input", { key: '58ec947e5d401cc40224be16bd987c9d1a31237f', ref: (inputEl) => (this.textInput = inputEl), class: {
|
|
71
77
|
'text-field-input': true,
|
|
72
78
|
'text-field-input-sm': this.size === 'sm',
|
|
73
79
|
'text-field-input-md': this.size === 'md',
|
|
@@ -80,16 +86,16 @@ export class TdsTextField {
|
|
|
80
86
|
if (!this.readOnly) {
|
|
81
87
|
this.handleBlur(event);
|
|
82
88
|
}
|
|
83
|
-
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '
|
|
89
|
+
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '4ff4a198eea2803a08f3336c860a07788a4f7ca1', class: "text-field-label-inside" }, this.label))), h("div", { key: '734de1fb01e8f9c0a270af04d567b2fe0d891172', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'acd385a1e926ac1c66e4185e156ab47f796d3c5f', class: {
|
|
84
90
|
'text-field-slot-wrap-suffix': true,
|
|
85
91
|
'text-field-error': this.state === 'error',
|
|
86
92
|
'text-field-success': this.state === 'success',
|
|
87
93
|
'text-field-default': this.state === 'default',
|
|
88
94
|
'tds-u-display-none': this.readOnly,
|
|
89
|
-
} }, h("slot", { key: '
|
|
95
|
+
} }, h("slot", { key: '98e3ad6a1083ace81fd102a4386236321372158f', name: "suffix" }))), h("span", { key: 'c1020a1fb2ea2ec06f1cc3478328ff09f5dde12f', class: "text-field-icon__readonly" }, h("tds-icon", { key: '2fa99d139b21034cff9699f8ca359b85333c048b', name: "edit_inactive", size: "20px" })), h("span", { key: '1bef6d45afd4586fca10e188b2ccadd4504750fc', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: 'b43c0ed2778672b5ea587214f45f353425030a45', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '6943b70f8ee2fe98a7ade493f62b1be9245c053b', class: "text-field-helper-error-state" }, h("tds-icon", { key: '1e4a5820aa41c0918aee84488476afa2d9bb27c4', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'e0f6a4ba6b781e1307f5abba906abba9a6631a74', class: {
|
|
90
96
|
'text-field-textcounter': true,
|
|
91
97
|
'text-field-textcounter-disabled': this.disabled,
|
|
92
|
-
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '
|
|
98
|
+
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'ae2a52268ca86705b853043fb35bc0da19c7e2ae', class: {
|
|
93
99
|
'text-field-textcounter-divider': true,
|
|
94
100
|
'text-field-textcounter-disabled': this.disabled,
|
|
95
101
|
} }, ' ', "/", ' '), this.maxLength))))));
|
|
@@ -495,5 +501,26 @@ export class TdsTextField {
|
|
|
495
501
|
}
|
|
496
502
|
}];
|
|
497
503
|
}
|
|
504
|
+
static get methods() {
|
|
505
|
+
return {
|
|
506
|
+
"focusElement": {
|
|
507
|
+
"complexType": {
|
|
508
|
+
"signature": "() => Promise<void>",
|
|
509
|
+
"parameters": [],
|
|
510
|
+
"references": {
|
|
511
|
+
"Promise": {
|
|
512
|
+
"location": "global",
|
|
513
|
+
"id": "global::Promise"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"return": "Promise<void>"
|
|
517
|
+
},
|
|
518
|
+
"docs": {
|
|
519
|
+
"text": "Method to handle focus",
|
|
520
|
+
"tags": []
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
}
|
|
498
525
|
static get elementRef() { return "host"; }
|
|
499
526
|
}
|
|
@@ -17,6 +17,7 @@ const TdsHeaderDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderDrop
|
|
|
17
17
|
this.uuid = generateUniqueId();
|
|
18
18
|
this.handleSlottedItemClick = (event) => {
|
|
19
19
|
const eventSource = event.target.tagName.toLowerCase();
|
|
20
|
+
console.log('eventSource', eventSource);
|
|
20
21
|
if (['a', 'button'].includes(eventSource)) {
|
|
21
22
|
this.open = false;
|
|
22
23
|
}
|
|
@@ -38,20 +39,20 @@ const TdsHeaderDropdown$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderDrop
|
|
|
38
39
|
this.open = !this.open;
|
|
39
40
|
}
|
|
40
41
|
render() {
|
|
41
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '6a363efc99f39507a0b976ac2c6281327d10c12a' }, h("div", { key: 'bc02acb96787385a8aaeb579bf89e0ff96e5951d', class: {
|
|
42
43
|
'state-open': this.open,
|
|
43
|
-
} }, h("tds-header-item", { key: '
|
|
44
|
+
}, style: { backgroundColor: 'orange' } }, "hej 1", h("tds-header-item", { key: 'bf446a54de86061c05df34ef504dcc751780d245', class: "button", active: this.open, selected: this.selected }, h("button", { key: 'b5e158cb5039d3e20556364727546963bf2a02de', ref: (el) => {
|
|
44
45
|
this.buttonEl = el;
|
|
45
46
|
}, "aria-expanded": `${this.open}`, "aria-controls": `launcher-${this.uuid}`, "aria-current": this.selected ? 'location' : 'false', onClick: () => {
|
|
46
47
|
this.toggleDropdown();
|
|
47
|
-
} }, h("slot", { key: '
|
|
48
|
+
} }, h("slot", { key: '424366c75df17c9a1b16435eaaf9c083a28f8297', name: "icon" }), this.label, h("slot", { key: '17186c0fa3ae56dc427c0a113fb97df0b307fc96', name: "label" }), !this.noDropdownIcon && (h("tds-icon", { key: 'fe07b5fcc4870e010163f7c2c7c0ccb1b4b62340', class: "dropdown-icon", name: "chevron_down", size: "16px" })))), this.buttonEl && (h("tds-popover-canvas", { key: 'b7998b886c204b0f7754e07ba195f1dbb19c2c7c', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
48
49
|
{
|
|
49
50
|
name: 'flip',
|
|
50
51
|
options: {
|
|
51
52
|
fallbackPlacements: [],
|
|
52
53
|
},
|
|
53
54
|
},
|
|
54
|
-
] }, this.open ? (h("span", { onClick: (e) => this.handleSlottedItemClick(e), onKeyDown: (e) => e.key === 'Enter' && this.handleSlottedItemClick(e) }, h("slot", null))) : null)))));
|
|
55
|
+
] }, this.open ? (h("span", { onClick: (e) => this.handleSlottedItemClick(e), onKeyDown: (e) => e.key === 'Enter' && this.handleSlottedItemClick(e), style: { backgroundColor: 'green' } }, "hej 2", h("slot", null))) : null)))));
|
|
55
56
|
}
|
|
56
57
|
get host() { return this; }
|
|
57
58
|
static get style() { return TdsHeaderDropdownStyle0; }
|
|
@@ -51,11 +51,17 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
|
|
|
51
51
|
this.focusInput = false;
|
|
52
52
|
this.tdsBlur.emit(event);
|
|
53
53
|
}
|
|
54
|
+
/** Method to handle focus */
|
|
55
|
+
async focusElement() {
|
|
56
|
+
if (this.textInput) {
|
|
57
|
+
this.textInput.focus();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
54
60
|
render() {
|
|
55
61
|
var _a;
|
|
56
62
|
const usesPrefixSlot = hasSlot('prefix', this.host);
|
|
57
63
|
const usesSuffixSlot = hasSlot('suffix', this.host);
|
|
58
|
-
return (h("div", { key: '
|
|
64
|
+
return (h("div", { key: 'fbbf85f381d4322a3806e26fd0d5fc99f418798d', class: {
|
|
59
65
|
'form-text-field': true,
|
|
60
66
|
'form-text-field-nomin': this.noMinWidth,
|
|
61
67
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -69,12 +75,12 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
|
|
|
69
75
|
'form-text-field-sm': this.size === 'sm',
|
|
70
76
|
'form-text-field-error': this.state === 'error',
|
|
71
77
|
'form-text-field-success': this.state === 'success',
|
|
72
|
-
} }, this.labelPosition === 'outside' && (h("div", { key: '
|
|
78
|
+
} }, this.labelPosition === 'outside' && (h("div", { key: '56af5e0e26cd43abbbea49de990bc07c6bb5b18c', class: "text-field-label-outside" }, h("div", { key: '874e3561ccf253e30f6b09902d76174293a1f332' }, this.label))), h("div", { key: 'fc43c855f7f374a2761feda34a6374be1a37ff90', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '7b5590cf8cb856942e30fd80c3115bf133062998', class: {
|
|
73
79
|
'text-field-slot-wrap-prefix': true,
|
|
74
80
|
'text-field-error': this.state === 'error',
|
|
75
81
|
'text-field-success': this.state === 'success',
|
|
76
82
|
'text-field-default': this.state === 'default',
|
|
77
|
-
} }, h("slot", { key: '
|
|
83
|
+
} }, h("slot", { key: 'df3ff67a7f8195e3317c6bef103ee19b98628fe3', name: "prefix" }))), h("div", { key: '7727642d6c2bc664785043f730d652a2ca21657c', class: "text-field-input-container" }, h("input", { key: '58ec947e5d401cc40224be16bd987c9d1a31237f', ref: (inputEl) => (this.textInput = inputEl), class: {
|
|
78
84
|
'text-field-input': true,
|
|
79
85
|
'text-field-input-sm': this.size === 'sm',
|
|
80
86
|
'text-field-input-md': this.size === 'md',
|
|
@@ -87,16 +93,16 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
|
|
|
87
93
|
if (!this.readOnly) {
|
|
88
94
|
this.handleBlur(event);
|
|
89
95
|
}
|
|
90
|
-
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '
|
|
96
|
+
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '4ff4a198eea2803a08f3336c860a07788a4f7ca1', class: "text-field-label-inside" }, this.label))), h("div", { key: '734de1fb01e8f9c0a270af04d567b2fe0d891172', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'acd385a1e926ac1c66e4185e156ab47f796d3c5f', class: {
|
|
91
97
|
'text-field-slot-wrap-suffix': true,
|
|
92
98
|
'text-field-error': this.state === 'error',
|
|
93
99
|
'text-field-success': this.state === 'success',
|
|
94
100
|
'text-field-default': this.state === 'default',
|
|
95
101
|
'tds-u-display-none': this.readOnly,
|
|
96
|
-
} }, h("slot", { key: '
|
|
102
|
+
} }, h("slot", { key: '98e3ad6a1083ace81fd102a4386236321372158f', name: "suffix" }))), h("span", { key: 'c1020a1fb2ea2ec06f1cc3478328ff09f5dde12f', class: "text-field-icon__readonly" }, h("tds-icon", { key: '2fa99d139b21034cff9699f8ca359b85333c048b', name: "edit_inactive", size: "20px" })), h("span", { key: '1bef6d45afd4586fca10e188b2ccadd4504750fc', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: 'b43c0ed2778672b5ea587214f45f353425030a45', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '6943b70f8ee2fe98a7ade493f62b1be9245c053b', class: "text-field-helper-error-state" }, h("tds-icon", { key: '1e4a5820aa41c0918aee84488476afa2d9bb27c4', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: 'e0f6a4ba6b781e1307f5abba906abba9a6631a74', class: {
|
|
97
103
|
'text-field-textcounter': true,
|
|
98
104
|
'text-field-textcounter-disabled': this.disabled,
|
|
99
|
-
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '
|
|
105
|
+
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: 'ae2a52268ca86705b853043fb35bc0da19c7e2ae', class: {
|
|
100
106
|
'text-field-textcounter-divider': true,
|
|
101
107
|
'text-field-textcounter-disabled': this.disabled,
|
|
102
108
|
} }, ' ', "/", ' '), this.maxLength))))));
|
|
@@ -121,7 +127,8 @@ const TdsTextField$1 = /*@__PURE__*/ proxyCustomElement(class TdsTextField exten
|
|
|
121
127
|
"state": [1],
|
|
122
128
|
"maxLength": [2, "max-length"],
|
|
123
129
|
"autofocus": [4],
|
|
124
|
-
"focusInput": [32]
|
|
130
|
+
"focusInput": [32],
|
|
131
|
+
"focusElement": [64]
|
|
125
132
|
}]);
|
|
126
133
|
function defineCustomElement$1() {
|
|
127
134
|
if (typeof customElements === "undefined") {
|