Skip to content

Commit 108ec0c

Browse files
committed
AB#17174 Add declare global to all elements
1 parent 6331e28 commit 108ec0c

File tree

65 files changed

+401
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+401
-7
lines changed

packages/uui-action-bar/lib/uui-action-bar.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,9 @@ export class UUIActionBarElement extends UUIButtonGroupElement {
5353
`,
5454
];
5555
}
56+
57+
declare global {
58+
interface HTMLElementTagNameMap {
59+
'uui-action-bar': UUIActionBarElement;
60+
}
61+
}

packages/uui-avatar-group/lib/uui-avatar-group.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,9 @@ export class UUIAvatarGroupElement extends LitElement {
8888
`;
8989
}
9090
}
91+
92+
declare global {
93+
interface HTMLElementTagNameMap {
94+
'uui-avatar-group': UUIAvatarGroupElement;
95+
}
96+
}

packages/uui-avatar/lib/uui-avatar.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,9 @@ export class UUIAvatarElement extends LitElement {
125125
`;
126126
}
127127
}
128+
129+
declare global {
130+
interface HTMLElementTagNameMap {
131+
'uui-avatar': UUIAvatarElement;
132+
}
133+
}

packages/uui-badge/lib/uui-badge.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,9 @@ export class UUIBadgeElement extends LitElement {
182182
return html` <slot></slot> `;
183183
}
184184
}
185+
186+
declare global {
187+
interface HTMLElementTagNameMap {
188+
'uui-badge': UUIBadgeElement;
189+
}
190+
}

packages/uui-boolean-input/lib/uui-boolean-input.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,9 @@ export abstract class UUIBooleanInputElement extends FormControlMixin(
208208
`;
209209
}
210210
}
211+
212+
declare global {
213+
interface HTMLElementTagNameMap {
214+
'uui-boolean-input': UUIBooleanInputElement;
215+
}
216+
}

packages/uui-box/lib/uui-box.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ export class UUIBoxElement extends LitElement {
3838
`;
3939
}
4040
}
41+
42+
declare global {
43+
interface HTMLElementTagNameMap {
44+
'uui-box': UUIBoxElement;
45+
}
46+
}

packages/uui-breadcrumbs/lib/uui-breadcrumb-item.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,9 @@ export class UUIBreadcrumbItemElement extends LitElement {
8989
: this.renderLinkAndSeparator()}`;
9090
}
9191
}
92+
93+
declare global {
94+
interface HTMLElementTagNameMap {
95+
'uui-breadcrumb-item': UUIBreadcrumbItemElement;
96+
}
97+
}

packages/uui-breadcrumbs/lib/uui-breadcrumbs.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ export class UUIBreadcrumbsElement extends LitElement {
4949
</ol>`;
5050
}
5151
}
52+
53+
declare global {
54+
interface HTMLElementTagNameMap {
55+
'uui-breadcrumbs': UUIBreadcrumbsElement;
56+
}
57+
}

packages/uui-button-group/lib/uui-button-group.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ export class UUIButtonGroupElement extends LitElement {
5656
return html`<slot></slot>`;
5757
}
5858
}
59+
60+
declare global {
61+
interface HTMLElementTagNameMap {
62+
'uui-button-group': UUIButtonGroupElement;
63+
}
64+
}

packages/uui-button-inline-create/lib/uui-button-inline-create.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,9 @@ export class UUIButtonInlineCreateElement extends LabelMixin('', LitElement) {
214214
`;
215215
}
216216
}
217+
218+
declare global {
219+
interface HTMLElementTagNameMap {
220+
'uui-button-inline-create': UUIButtonInlineCreateElement;
221+
}
222+
}

0 commit comments

Comments
 (0)