diff --git a/web/.gitignore b/web/.gitignore index 5fcf655367..24c9777ce9 100644 --- a/web/.gitignore +++ b/web/.gitignore @@ -109,3 +109,4 @@ temp/ # End of https://www.gitignore.io/api/node api/** storybook-static/ +custom-elements.json diff --git a/web/package.json b/web/package.json index 4e260c79f2..87002f08c5 100644 --- a/web/package.json +++ b/web/package.json @@ -16,9 +16,9 @@ "build-proxy": "run-s build-locales esbuild:build-proxy", "watch": "run-s build-locales build:manifest esbuild:watch", "lint": "cross-env NODE_OPTIONS='--max_old_space_size=65536' eslint . --max-warnings 0 --fix", - "lint:precommit": "bun scripts/eslint-precommit.mjs", + "lint:precommit": "cross-env NODE_OPTIONS='--max_old_space_size=65536' node scripts/eslint-precommit.mjs", "lint:spelling": "node scripts/check-spelling.mjs", - "lit-analyse": "lit-analyzer src", + "lit-analyse": "lit-analyzer src --strict", "postinstall": "bash scripts/patch-analyser.sh", "precommit": "npm-run-all --parallel tsc lit-analyse lint:spelling --sequential lint:precommit prettier", "prequick": "run-s tsc:execute lit-analyse lint:precommit lint:spelling", diff --git a/web/src/admin/AdminInterface/AdminInterface.ts b/web/src/admin/AdminInterface/AdminInterface.ts index dab187f8d9..473d97c829 100644 --- a/web/src/admin/AdminInterface/AdminInterface.ts +++ b/web/src/admin/AdminInterface/AdminInterface.ts @@ -158,3 +158,9 @@ export class AdminInterface extends EnterpriseAwareInterface { >`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-interface-admin": AdminInterface; + } +} diff --git a/web/src/admin/AdminInterface/AdminSidebar.ts b/web/src/admin/AdminInterface/AdminSidebar.ts index b4c0d7edc9..0b92524d86 100644 --- a/web/src/admin/AdminInterface/AdminSidebar.ts +++ b/web/src/admin/AdminInterface/AdminSidebar.ts @@ -212,3 +212,9 @@ export class AkAdminSidebar extends WithCapabilitiesConfig(AKElement) { : nothing; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-sidebar": AkAdminSidebar; + } +} diff --git a/web/src/admin/DebugPage.ts b/web/src/admin/DebugPage.ts index 68db6ae278..101aab7230 100644 --- a/web/src/admin/DebugPage.ts +++ b/web/src/admin/DebugPage.ts @@ -71,3 +71,9 @@ export class DebugPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-debug-page": DebugPage; + } +} diff --git a/web/src/admin/admin-overview/DashboardUserPage.ts b/web/src/admin/admin-overview/DashboardUserPage.ts index bbff178b80..3fd5483422 100644 --- a/web/src/admin/admin-overview/DashboardUserPage.ts +++ b/web/src/admin/admin-overview/DashboardUserPage.ts @@ -84,3 +84,9 @@ export class DashboardUserPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-dashboard-users": DashboardUserPage; + } +} diff --git a/web/src/admin/admin-overview/TopApplicationsTable.ts b/web/src/admin/admin-overview/TopApplicationsTable.ts index d2d827796a..8937a3e04b 100644 --- a/web/src/admin/admin-overview/TopApplicationsTable.ts +++ b/web/src/admin/admin-overview/TopApplicationsTable.ts @@ -60,3 +60,9 @@ export class TopApplicationsTable extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-top-applications-table": TopApplicationsTable; + } +} diff --git a/web/src/admin/admin-overview/cards/RecentEventsCard.ts b/web/src/admin/admin-overview/cards/RecentEventsCard.ts index a67910fffe..a06bc8d707 100644 --- a/web/src/admin/admin-overview/cards/RecentEventsCard.ts +++ b/web/src/admin/admin-overview/cards/RecentEventsCard.ts @@ -91,3 +91,9 @@ export class RecentEventsCard extends Table { ); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-recent-events": RecentEventsCard; + } +} diff --git a/web/src/admin/admin-overview/cards/SystemStatusCard.ts b/web/src/admin/admin-overview/cards/SystemStatusCard.ts index ee5449fcf7..776cb39d17 100644 --- a/web/src/admin/admin-overview/cards/SystemStatusCard.ts +++ b/web/src/admin/admin-overview/cards/SystemStatusCard.ts @@ -92,3 +92,9 @@ export class SystemStatusCard extends AdminStatusCard { return html`${this.statusSummary}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-status-system": SystemStatusCard; + } +} diff --git a/web/src/admin/admin-overview/cards/VersionStatusCard.ts b/web/src/admin/admin-overview/cards/VersionStatusCard.ts index a8c94cc377..298430812f 100644 --- a/web/src/admin/admin-overview/cards/VersionStatusCard.ts +++ b/web/src/admin/admin-overview/cards/VersionStatusCard.ts @@ -59,3 +59,9 @@ export class VersionStatusCard extends AdminStatusCard { return html`${text}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-status-version": VersionStatusCard; + } +} diff --git a/web/src/admin/admin-overview/cards/WorkerStatusCard.ts b/web/src/admin/admin-overview/cards/WorkerStatusCard.ts index 145b51b229..07cf161931 100644 --- a/web/src/admin/admin-overview/cards/WorkerStatusCard.ts +++ b/web/src/admin/admin-overview/cards/WorkerStatusCard.ts @@ -37,3 +37,9 @@ export class WorkersStatusCard extends AdminStatusCard { } } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-status-card-workers": WorkersStatusCard; + } +} diff --git a/web/src/admin/admin-overview/charts/AdminLoginAuthorizeChart.ts b/web/src/admin/admin-overview/charts/AdminLoginAuthorizeChart.ts index a70140567a..59345a1e7c 100644 --- a/web/src/admin/admin-overview/charts/AdminLoginAuthorizeChart.ts +++ b/web/src/admin/admin-overview/charts/AdminLoginAuthorizeChart.ts @@ -65,3 +65,9 @@ export class AdminLoginAuthorizeChart extends AKChart { }; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-charts-admin-login-authorization": AdminLoginAuthorizeChart; + } +} diff --git a/web/src/admin/admin-overview/charts/AdminModelPerDay.ts b/web/src/admin/admin-overview/charts/AdminModelPerDay.ts index eb4a3a4e2e..5227616d4b 100644 --- a/web/src/admin/admin-overview/charts/AdminModelPerDay.ts +++ b/web/src/admin/admin-overview/charts/AdminModelPerDay.ts @@ -51,3 +51,9 @@ export class AdminModelPerDay extends AKChart { }; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-charts-admin-model-per-day": AdminModelPerDay; + } +} diff --git a/web/src/admin/admin-overview/charts/OutpostStatusChart.ts b/web/src/admin/admin-overview/charts/OutpostStatusChart.ts index 136863c6da..c42193b0db 100644 --- a/web/src/admin/admin-overview/charts/OutpostStatusChart.ts +++ b/web/src/admin/admin-overview/charts/OutpostStatusChart.ts @@ -73,3 +73,9 @@ export class OutpostStatusChart extends AKChart { }; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-status-chart-outpost": OutpostStatusChart; + } +} diff --git a/web/src/admin/admin-overview/charts/SyncStatusChart.ts b/web/src/admin/admin-overview/charts/SyncStatusChart.ts index 6c8887fb2b..7855823133 100644 --- a/web/src/admin/admin-overview/charts/SyncStatusChart.ts +++ b/web/src/admin/admin-overview/charts/SyncStatusChart.ts @@ -145,3 +145,9 @@ export class SyncStatusChart extends AKChart { }; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-status-chart-sync": SyncStatusChart; + } +} diff --git a/web/src/admin/admin-settings/AdminSettingsForm.ts b/web/src/admin/admin-settings/AdminSettingsForm.ts index b459945e1e..4689e092dc 100644 --- a/web/src/admin/admin-settings/AdminSettingsForm.ts +++ b/web/src/admin/admin-settings/AdminSettingsForm.ts @@ -214,3 +214,9 @@ export class AdminSettingsForm extends Form { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-settings-form": AdminSettingsForm; + } +} diff --git a/web/src/admin/admin-settings/AdminSettingsPage.ts b/web/src/admin/admin-settings/AdminSettingsPage.ts index 07113a543b..5bc5ef13b1 100644 --- a/web/src/admin/admin-settings/AdminSettingsPage.ts +++ b/web/src/admin/admin-settings/AdminSettingsPage.ts @@ -110,3 +110,9 @@ export class AdminSettingsPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-admin-settings": AdminSettingsPage; + } +} diff --git a/web/src/admin/applications/ApplicationAuthorizeChart.ts b/web/src/admin/applications/ApplicationAuthorizeChart.ts index f36bc2dc25..0d1b8ac7b2 100644 --- a/web/src/admin/applications/ApplicationAuthorizeChart.ts +++ b/web/src/admin/applications/ApplicationAuthorizeChart.ts @@ -44,3 +44,9 @@ export class ApplicationAuthorizeChart extends AKChart { }; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-charts-application-authorize": ApplicationAuthorizeChart; + } +} diff --git a/web/src/admin/applications/ApplicationCheckAccessForm.ts b/web/src/admin/applications/ApplicationCheckAccessForm.ts index 7a2e1f7dab..b92ed5a5e2 100644 --- a/web/src/admin/applications/ApplicationCheckAccessForm.ts +++ b/web/src/admin/applications/ApplicationCheckAccessForm.ts @@ -127,3 +127,9 @@ export class ApplicationCheckAccessForm extends Form<{ forUser: number }> { ${this.result ? this.renderResult() : html``}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-application-check-access-form": ApplicationCheckAccessForm; + } +} diff --git a/web/src/admin/applications/ApplicationForm.ts b/web/src/admin/applications/ApplicationForm.ts index ead17e9b23..4dc2f29316 100644 --- a/web/src/admin/applications/ApplicationForm.ts +++ b/web/src/admin/applications/ApplicationForm.ts @@ -244,3 +244,9 @@ export class ApplicationForm extends WithCapabilitiesConfig(ModelForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-application-form": ApplicationForm; + } +} diff --git a/web/src/admin/applications/ApplicationListPage.ts b/web/src/admin/applications/ApplicationListPage.ts index 84718ef2f0..00e56b2875 100644 --- a/web/src/admin/applications/ApplicationListPage.ts +++ b/web/src/admin/applications/ApplicationListPage.ts @@ -168,3 +168,9 @@ export class ApplicationListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-application-list": ApplicationListPage; + } +} diff --git a/web/src/admin/applications/ApplicationViewPage.ts b/web/src/admin/applications/ApplicationViewPage.ts index 19db71df55..8fec9137cb 100644 --- a/web/src/admin/applications/ApplicationViewPage.ts +++ b/web/src/admin/applications/ApplicationViewPage.ts @@ -322,3 +322,9 @@ export class ApplicationViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-application-view": ApplicationViewPage; + } +} diff --git a/web/src/admin/applications/ApplicationWizardHint.ts b/web/src/admin/applications/ApplicationWizardHint.ts index 1bcc338cde..52fe2c0093 100644 --- a/web/src/admin/applications/ApplicationWizardHint.ts +++ b/web/src/admin/applications/ApplicationWizardHint.ts @@ -123,3 +123,9 @@ export class AkApplicationWizardHint extends AKElement implements ShowHintContro } export default AkApplicationWizardHint; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-hint": AkApplicationWizardHint; + } +} diff --git a/web/src/admin/applications/ProviderSelectModal.ts b/web/src/admin/applications/ProviderSelectModal.ts index 1f9a056e18..efd129f130 100644 --- a/web/src/admin/applications/ProviderSelectModal.ts +++ b/web/src/admin/applications/ProviderSelectModal.ts @@ -85,3 +85,9 @@ export class ProviderSelectModal extends TableModal { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-select-table": ProviderSelectModal; + } +} diff --git a/web/src/admin/applications/components/ak-backchannel-input.ts b/web/src/admin/applications/components/ak-backchannel-input.ts index 33b6ef7bb8..d0e354b081 100644 --- a/web/src/admin/applications/components/ak-backchannel-input.ts +++ b/web/src/admin/applications/components/ak-backchannel-input.ts @@ -81,3 +81,9 @@ export class AkBackchannelProvidersInput extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-backchannel-providers-input": AkBackchannelProvidersInput; + } +} diff --git a/web/src/admin/applications/components/ak-provider-search-input.ts b/web/src/admin/applications/components/ak-provider-search-input.ts index 57752f85df..8a02ef8318 100644 --- a/web/src/admin/applications/components/ak-provider-search-input.ts +++ b/web/src/admin/applications/components/ak-provider-search-input.ts @@ -79,3 +79,9 @@ export class AkProviderInput extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-search-input": AkProviderInput; + } +} diff --git a/web/src/admin/applications/wizard/ak-application-wizard.ts b/web/src/admin/applications/wizard/ak-application-wizard.ts index 1e33124fec..32ef5eff2c 100644 --- a/web/src/admin/applications/wizard/ak-application-wizard.ts +++ b/web/src/admin/applications/wizard/ak-application-wizard.ts @@ -109,3 +109,9 @@ export class ApplicationWizard extends CustomListenerElement( this.requestUpdate(); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard": ApplicationWizard; + } +} diff --git a/web/src/admin/applications/wizard/ak-wizard-title.ts b/web/src/admin/applications/wizard/ak-wizard-title.ts index cd2157a690..6b2c2dc661 100644 --- a/web/src/admin/applications/wizard/ak-wizard-title.ts +++ b/web/src/admin/applications/wizard/ak-wizard-title.ts @@ -28,3 +28,9 @@ export class AkWizardTitle extends AKElement { } export default AkWizardTitle; + +declare global { + interface HTMLElementTagNameMap { + "ak-wizard-title": AkWizardTitle; + } +} diff --git a/web/src/admin/applications/wizard/application/ak-application-wizard-application-details.ts b/web/src/admin/applications/wizard/application/ak-application-wizard-application-details.ts index c89c555a08..bb62c1b33c 100644 --- a/web/src/admin/applications/wizard/application/ak-application-wizard-application-details.ts +++ b/web/src/admin/applications/wizard/application/ak-application-wizard-application-details.ts @@ -95,3 +95,9 @@ export class ApplicationWizardApplicationDetails extends BasePanel { } export default ApplicationWizardApplicationDetails; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-application-details": ApplicationWizardApplicationDetails; + } +} diff --git a/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.ts b/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.ts index 9c89baf94f..7c6aecacc0 100644 --- a/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.ts +++ b/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.ts @@ -44,3 +44,9 @@ export class ApplicationWizardAuthenticationMethodChoice extends WithLicenseSumm } export default ApplicationWizardAuthenticationMethodChoice; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-method-choice": ApplicationWizardAuthenticationMethodChoice; + } +} diff --git a/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts b/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts index c3c7f9d336..cb3d2f6f0c 100644 --- a/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts +++ b/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts @@ -217,3 +217,9 @@ export class ApplicationWizardCommitApplication extends BasePanel { } export default ApplicationWizardCommitApplication; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-commit-application": ApplicationWizardCommitApplication; + } +} diff --git a/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts b/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts index 28139bc465..526d1e78ca 100644 --- a/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts +++ b/web/src/admin/applications/wizard/methods/ak-application-wizard-authentication-method.ts @@ -26,3 +26,9 @@ export class ApplicationWizardApplicationDetails extends BasePanel { } export default ApplicationWizardApplicationDetails; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-method": ApplicationWizardApplicationDetails; + } +} diff --git a/web/src/admin/applications/wizard/methods/ldap/ak-application-wizard-authentication-by-ldap.ts b/web/src/admin/applications/wizard/methods/ldap/ak-application-wizard-authentication-by-ldap.ts index c4a0b6c06d..d9b0870eee 100644 --- a/web/src/admin/applications/wizard/methods/ldap/ak-application-wizard-authentication-by-ldap.ts +++ b/web/src/admin/applications/wizard/methods/ldap/ak-application-wizard-authentication-by-ldap.ts @@ -165,3 +165,9 @@ export class ApplicationWizardApplicationDetails extends WithBrandConfig(BasePro } export default ApplicationWizardApplicationDetails; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-by-ldap": ApplicationWizardApplicationDetails; + } +} diff --git a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts index 54bc7d2eae..9b8ca7de40 100644 --- a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts +++ b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts @@ -321,3 +321,9 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel { } export default ApplicationWizardAuthenticationByOauth; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-by-oauth": ApplicationWizardAuthenticationByOauth; + } +} diff --git a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts index 63510ad119..707754fa3b 100644 --- a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts +++ b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-forward-domain-proxy.ts @@ -60,3 +60,9 @@ export class AkForwardDomainProxyApplicationWizardPage extends AkTypeProxyApplic } export default AkForwardDomainProxyApplicationWizardPage; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-for-forward-proxy-domain": AkForwardDomainProxyApplicationWizardPage; + } +} diff --git a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-reverse-proxy.ts b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-reverse-proxy.ts index d3d996539f..b920254cc8 100644 --- a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-reverse-proxy.ts +++ b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-reverse-proxy.ts @@ -54,3 +54,9 @@ export class AkReverseProxyApplicationWizardPage extends AkTypeProxyApplicationW } export default AkReverseProxyApplicationWizardPage; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-for-reverse-proxy": AkReverseProxyApplicationWizardPage; + } +} diff --git a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-single-forward-proxy.ts b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-single-forward-proxy.ts index 5680d1e59d..501bff8cce 100644 --- a/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-single-forward-proxy.ts +++ b/web/src/admin/applications/wizard/methods/proxy/ak-application-wizard-authentication-for-single-forward-proxy.ts @@ -40,3 +40,9 @@ export class AkForwardSingleProxyApplicationWizardPage extends AkTypeProxyApplic } export default AkForwardSingleProxyApplicationWizardPage; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-for-single-forward-proxy": AkForwardSingleProxyApplicationWizardPage; + } +} diff --git a/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts b/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts index d7956b1777..5a6092cc76 100644 --- a/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts +++ b/web/src/admin/applications/wizard/methods/rac/ak-application-wizard-authentication-for-rac.ts @@ -107,3 +107,9 @@ export class ApplicationWizardAuthenticationByRAC extends BaseProviderPanel { } export default ApplicationWizardAuthenticationByRAC; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-for-rac": ApplicationWizardAuthenticationByRAC; + } +} diff --git a/web/src/admin/applications/wizard/methods/radius/ak-application-wizard-authentication-by-radius.ts b/web/src/admin/applications/wizard/methods/radius/ak-application-wizard-authentication-by-radius.ts index 854e2570bb..c7d6bd0f0e 100644 --- a/web/src/admin/applications/wizard/methods/radius/ak-application-wizard-authentication-by-radius.ts +++ b/web/src/admin/applications/wizard/methods/radius/ak-application-wizard-authentication-by-radius.ts @@ -80,3 +80,9 @@ export class ApplicationWizardAuthenticationByRadius extends WithBrandConfig(Bas } export default ApplicationWizardAuthenticationByRadius; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-by-radius": ApplicationWizardAuthenticationByRadius; + } +} diff --git a/web/src/admin/applications/wizard/methods/saml/ak-application-wizard-authentication-by-saml-configuration.ts b/web/src/admin/applications/wizard/methods/saml/ak-application-wizard-authentication-by-saml-configuration.ts index 05a27cd735..938bc92ca0 100644 --- a/web/src/admin/applications/wizard/methods/saml/ak-application-wizard-authentication-by-saml-configuration.ts +++ b/web/src/admin/applications/wizard/methods/saml/ak-application-wizard-authentication-by-saml-configuration.ts @@ -274,3 +274,9 @@ export class ApplicationWizardProviderSamlConfiguration extends BaseProviderPane } export default ApplicationWizardProviderSamlConfiguration; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-by-saml-configuration": ApplicationWizardProviderSamlConfiguration; + } +} diff --git a/web/src/admin/applications/wizard/methods/saml/saml-property-mappings-search.ts b/web/src/admin/applications/wizard/methods/saml/saml-property-mappings-search.ts index 0e135affb5..dc960cbd5f 100644 --- a/web/src/admin/applications/wizard/methods/saml/saml-property-mappings-search.ts +++ b/web/src/admin/applications/wizard/methods/saml/saml-property-mappings-search.ts @@ -110,3 +110,9 @@ export class SAMLPropertyMappingSearch extends CustomListenerElement(AKElement) } export default SAMLPropertyMappingSearch; + +declare global { + interface HTMLElementTagNameMap { + "ak-saml-property-mapping-search": SAMLPropertyMappingSearch; + } +} diff --git a/web/src/admin/applications/wizard/methods/scim/ak-application-wizard-authentication-by-scim.ts b/web/src/admin/applications/wizard/methods/scim/ak-application-wizard-authentication-by-scim.ts index 088cf7992a..0dceb8927a 100644 --- a/web/src/admin/applications/wizard/methods/scim/ak-application-wizard-authentication-by-scim.ts +++ b/web/src/admin/applications/wizard/methods/scim/ak-application-wizard-authentication-by-scim.ts @@ -152,3 +152,9 @@ export class ApplicationWizardAuthenticationBySCIM extends BaseProviderPanel { } export default ApplicationWizardAuthenticationBySCIM; + +declare global { + interface HTMLElementTagNameMap { + "ak-application-wizard-authentication-by-scim": ApplicationWizardAuthenticationBySCIM; + } +} diff --git a/web/src/admin/applications/wizard/stories/ak-application-context-display-for-test.ts b/web/src/admin/applications/wizard/stories/ak-application-context-display-for-test.ts index 8e9f7ef24f..c4ceb2d620 100644 --- a/web/src/admin/applications/wizard/stories/ak-application-context-display-for-test.ts +++ b/web/src/admin/applications/wizard/stories/ak-application-context-display-for-test.ts @@ -16,3 +16,9 @@ export class ApplicationContextDisplayForTest extends LitElement { return html`
${JSON.stringify(this.wizard, null, 2)}
`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-application-context-display-for-test": ApplicationContextDisplayForTest; + } +} diff --git a/web/src/admin/blueprints/BlueprintForm.ts b/web/src/admin/blueprints/BlueprintForm.ts index 2df50180b3..c9b93ad846 100644 --- a/web/src/admin/blueprints/BlueprintForm.ts +++ b/web/src/admin/blueprints/BlueprintForm.ts @@ -194,3 +194,9 @@ export class BlueprintForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-blueprint-form": BlueprintForm; + } +} diff --git a/web/src/admin/blueprints/BlueprintListPage.ts b/web/src/admin/blueprints/BlueprintListPage.ts index 6eb24aa2ee..5ff6bba33a 100644 --- a/web/src/admin/blueprints/BlueprintListPage.ts +++ b/web/src/admin/blueprints/BlueprintListPage.ts @@ -198,3 +198,9 @@ export class BlueprintListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-blueprint-list": BlueprintListPage; + } +} diff --git a/web/src/admin/brands/BrandForm.ts b/web/src/admin/brands/BrandForm.ts index 114bae13e9..99de631eac 100644 --- a/web/src/admin/brands/BrandForm.ts +++ b/web/src/admin/brands/BrandForm.ts @@ -249,3 +249,9 @@ export class BrandForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-brand-form": BrandForm; + } +} diff --git a/web/src/admin/brands/BrandListPage.ts b/web/src/admin/brands/BrandListPage.ts index 9aa0e23c23..514cec727b 100644 --- a/web/src/admin/brands/BrandListPage.ts +++ b/web/src/admin/brands/BrandListPage.ts @@ -117,3 +117,9 @@ export class BrandListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-brand-list": BrandListPage; + } +} diff --git a/web/src/admin/common/ak-core-group-search.ts b/web/src/admin/common/ak-core-group-search.ts index 9a54124e27..8e67d7d0c1 100644 --- a/web/src/admin/common/ak-core-group-search.ts +++ b/web/src/admin/common/ak-core-group-search.ts @@ -103,3 +103,9 @@ export class CoreGroupSearch extends CustomListenerElement(AKElement) { } export default CoreGroupSearch; + +declare global { + interface HTMLElementTagNameMap { + "ak-core-group-search": CoreGroupSearch; + } +} diff --git a/web/src/admin/common/ak-crypto-certificate-search.ts b/web/src/admin/common/ak-crypto-certificate-search.ts index a3a0cdab40..186481a7a5 100644 --- a/web/src/admin/common/ak-crypto-certificate-search.ts +++ b/web/src/admin/common/ak-crypto-certificate-search.ts @@ -128,3 +128,9 @@ export class AkCryptoCertificateSearch extends CustomListenerElement(AKElement) } export default AkCryptoCertificateSearch; + +declare global { + interface HTMLElementTagNameMap { + "ak-crypto-certificate-search": AkCryptoCertificateSearch; + } +} diff --git a/web/src/admin/common/ak-flow-search/ak-branded-flow-search.ts b/web/src/admin/common/ak-flow-search/ak-branded-flow-search.ts index 89a104cf1e..a1bbb7f428 100644 --- a/web/src/admin/common/ak-flow-search/ak-branded-flow-search.ts +++ b/web/src/admin/common/ak-flow-search/ak-branded-flow-search.ts @@ -31,4 +31,10 @@ export class AkBrandedFlowSearch extends FlowSearch { } } +declare global { + interface HTMLElementTagNameMap { + "ak-branded-flow-search": AkBrandedFlowSearch; + } +} + export default AkBrandedFlowSearch; diff --git a/web/src/admin/common/ak-flow-search/ak-flow-search-no-default.ts b/web/src/admin/common/ak-flow-search/ak-flow-search-no-default.ts index 0b716392f8..1fc3ffe725 100644 --- a/web/src/admin/common/ak-flow-search/ak-flow-search-no-default.ts +++ b/web/src/admin/common/ak-flow-search/ak-flow-search-no-default.ts @@ -32,4 +32,10 @@ export class AkFlowSearchNoDefault extends FlowSearch { } } +declare global { + interface HTMLElementTagNameMap { + "ak-flow-search-no-default": AkFlowSearchNoDefault; + } +} + export default AkFlowSearchNoDefault; diff --git a/web/src/admin/common/ak-flow-search/ak-flow-search.ts b/web/src/admin/common/ak-flow-search/ak-flow-search.ts index 57fd7270de..f0d6cbcc1e 100644 --- a/web/src/admin/common/ak-flow-search/ak-flow-search.ts +++ b/web/src/admin/common/ak-flow-search/ak-flow-search.ts @@ -13,4 +13,10 @@ import FlowSearch from "./FlowSearch"; @customElement("ak-flow-search") export class AkFlowSearch extends FlowSearch {} +declare global { + interface HTMLElementTagNameMap { + "ak-flow-search": AkFlowSearch; + } +} + export default AkFlowSearch; diff --git a/web/src/admin/common/ak-flow-search/ak-source-flow-search.ts b/web/src/admin/common/ak-flow-search/ak-source-flow-search.ts index 56624c0d16..4baf035606 100644 --- a/web/src/admin/common/ak-flow-search/ak-source-flow-search.ts +++ b/web/src/admin/common/ak-flow-search/ak-source-flow-search.ts @@ -47,4 +47,10 @@ export class AkSourceFlowSearch extends FlowSearch { } } +declare global { + interface HTMLElementTagNameMap { + "ak-source-flow-search": AkSourceFlowSearch; + } +} + export default AkSourceFlowSearch; diff --git a/web/src/admin/common/ak-license-notice.ts b/web/src/admin/common/ak-license-notice.ts index 4cc978ac4f..117d2852ad 100644 --- a/web/src/admin/common/ak-license-notice.ts +++ b/web/src/admin/common/ak-license-notice.ts @@ -21,3 +21,9 @@ export class AkLicenceNotice extends WithLicenseSummary(AKElement) { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-license-notice": AkLicenceNotice; + } +} diff --git a/web/src/admin/crypto/CertificateGenerateForm.ts b/web/src/admin/crypto/CertificateGenerateForm.ts index ada0625e76..c378ecb130 100644 --- a/web/src/admin/crypto/CertificateGenerateForm.ts +++ b/web/src/admin/crypto/CertificateGenerateForm.ts @@ -71,3 +71,9 @@ export class CertificateKeyPairForm extends Form { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-crypto-certificate-generate-form": CertificateKeyPairForm; + } +} diff --git a/web/src/admin/crypto/CertificateKeyPairForm.ts b/web/src/admin/crypto/CertificateKeyPairForm.ts index 6f194d436f..762ffd1d79 100644 --- a/web/src/admin/crypto/CertificateKeyPairForm.ts +++ b/web/src/admin/crypto/CertificateKeyPairForm.ts @@ -69,3 +69,9 @@ export class CertificateKeyPairForm extends ModelForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-crypto-certificate-form": CertificateKeyPairForm; + } +} diff --git a/web/src/admin/crypto/CertificateKeyPairListPage.ts b/web/src/admin/crypto/CertificateKeyPairListPage.ts index fd71112273..7998729c15 100644 --- a/web/src/admin/crypto/CertificateKeyPairListPage.ts +++ b/web/src/admin/crypto/CertificateKeyPairListPage.ts @@ -235,3 +235,9 @@ export class CertificateKeyPairListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-crypto-certificate-list": CertificateKeyPairListPage; + } +} diff --git a/web/src/admin/enterprise/EnterpriseLicenseForm.ts b/web/src/admin/enterprise/EnterpriseLicenseForm.ts index 025df416b1..d1ce5e38af 100644 --- a/web/src/admin/enterprise/EnterpriseLicenseForm.ts +++ b/web/src/admin/enterprise/EnterpriseLicenseForm.ts @@ -61,3 +61,9 @@ export class EnterpriseLicenseForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-enterprise-license-form": EnterpriseLicenseForm; + } +} diff --git a/web/src/admin/enterprise/EnterpriseLicenseListPage.ts b/web/src/admin/enterprise/EnterpriseLicenseListPage.ts index 324ebca257..e0eb125b03 100644 --- a/web/src/admin/enterprise/EnterpriseLicenseListPage.ts +++ b/web/src/admin/enterprise/EnterpriseLicenseListPage.ts @@ -281,3 +281,9 @@ export class EnterpriseLicenseListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-enterprise-license-list": EnterpriseLicenseListPage; + } +} diff --git a/web/src/admin/events/EventListPage.ts b/web/src/admin/events/EventListPage.ts index e4e1c7efc4..8daa698975 100644 --- a/web/src/admin/events/EventListPage.ts +++ b/web/src/admin/events/EventListPage.ts @@ -107,3 +107,9 @@ export class EventListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-event-list": EventListPage; + } +} diff --git a/web/src/admin/events/EventViewPage.ts b/web/src/admin/events/EventViewPage.ts index ddf29fbfbb..9c8d4fda9d 100644 --- a/web/src/admin/events/EventViewPage.ts +++ b/web/src/admin/events/EventViewPage.ts @@ -150,3 +150,9 @@ export class EventViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-event-view": EventViewPage; + } +} diff --git a/web/src/admin/events/EventVolumeChart.ts b/web/src/admin/events/EventVolumeChart.ts index 623aa03456..3ff3c49fd5 100644 --- a/web/src/admin/events/EventVolumeChart.ts +++ b/web/src/admin/events/EventVolumeChart.ts @@ -61,3 +61,9 @@ export class EventVolumeChart extends AKChart { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-events-volume-chart": EventVolumeChart; + } +} diff --git a/web/src/admin/events/RuleForm.ts b/web/src/admin/events/RuleForm.ts index 7ee190047a..7e2ff57b5d 100644 --- a/web/src/admin/events/RuleForm.ts +++ b/web/src/admin/events/RuleForm.ts @@ -142,3 +142,9 @@ export class RuleForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-event-rule-form": RuleForm; + } +} diff --git a/web/src/admin/events/RuleListPage.ts b/web/src/admin/events/RuleListPage.ts index 7afe34104e..adfbd547fe 100644 --- a/web/src/admin/events/RuleListPage.ts +++ b/web/src/admin/events/RuleListPage.ts @@ -138,3 +138,9 @@ Bindings to groups/users are checked against the user of the event.`, `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-event-rule-list": RuleListPage; + } +} diff --git a/web/src/admin/events/TransportForm.ts b/web/src/admin/events/TransportForm.ts index 593477c60c..e33a384694 100644 --- a/web/src/admin/events/TransportForm.ts +++ b/web/src/admin/events/TransportForm.ts @@ -169,3 +169,9 @@ export class TransportForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-event-transport-form": TransportForm; + } +} diff --git a/web/src/admin/events/TransportListPage.ts b/web/src/admin/events/TransportListPage.ts index ffa4f6263d..c12b4d5d03 100644 --- a/web/src/admin/events/TransportListPage.ts +++ b/web/src/admin/events/TransportListPage.ts @@ -129,3 +129,9 @@ export class TransportListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-event-transport-list": TransportListPage; + } +} diff --git a/web/src/admin/flows/BoundStagesList.ts b/web/src/admin/flows/BoundStagesList.ts index 316d4ca577..ec17e45242 100644 --- a/web/src/admin/flows/BoundStagesList.ts +++ b/web/src/admin/flows/BoundStagesList.ts @@ -162,3 +162,9 @@ export class BoundStagesList extends Table { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-bound-stages-list": BoundStagesList; + } +} diff --git a/web/src/admin/flows/FlowDiagram.ts b/web/src/admin/flows/FlowDiagram.ts index 21e35ba327..1b581ef977 100644 --- a/web/src/admin/flows/FlowDiagram.ts +++ b/web/src/admin/flows/FlowDiagram.ts @@ -23,3 +23,9 @@ export class FlowDiagram extends Diagram { }); }; } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-diagram": FlowDiagram; + } +} diff --git a/web/src/admin/flows/FlowForm.ts b/web/src/admin/flows/FlowForm.ts index 3925f6db95..e50efc4e49 100644 --- a/web/src/admin/flows/FlowForm.ts +++ b/web/src/admin/flows/FlowForm.ts @@ -409,3 +409,9 @@ export class FlowForm extends WithCapabilitiesConfig(ModelForm) { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-form": FlowForm; + } +} diff --git a/web/src/admin/flows/FlowImportForm.ts b/web/src/admin/flows/FlowImportForm.ts index 8aa5a551c3..783f51217e 100644 --- a/web/src/admin/flows/FlowImportForm.ts +++ b/web/src/admin/flows/FlowImportForm.ts @@ -76,3 +76,9 @@ export class FlowImportForm extends Form { ${this.result ? this.renderResult() : html``}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-import-form": FlowImportForm; + } +} diff --git a/web/src/admin/flows/FlowListPage.ts b/web/src/admin/flows/FlowListPage.ts index 1e264dc92e..419492ef70 100644 --- a/web/src/admin/flows/FlowListPage.ts +++ b/web/src/admin/flows/FlowListPage.ts @@ -174,3 +174,9 @@ export class FlowListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-list": FlowListPage; + } +} diff --git a/web/src/admin/flows/FlowViewPage.ts b/web/src/admin/flows/FlowViewPage.ts index e7c42c1d6c..df18f98b07 100644 --- a/web/src/admin/flows/FlowViewPage.ts +++ b/web/src/admin/flows/FlowViewPage.ts @@ -286,3 +286,9 @@ export class FlowViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-view": FlowViewPage; + } +} diff --git a/web/src/admin/flows/StageBindingForm.ts b/web/src/admin/flows/StageBindingForm.ts index 839f2c26c5..e188d17816 100644 --- a/web/src/admin/flows/StageBindingForm.ts +++ b/web/src/admin/flows/StageBindingForm.ts @@ -226,3 +226,9 @@ export class StageBindingForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-binding-form": StageBindingForm; + } +} diff --git a/web/src/admin/groups/GroupForm.ts b/web/src/admin/groups/GroupForm.ts index c8be5f65bd..eec1d0e54a 100644 --- a/web/src/admin/groups/GroupForm.ts +++ b/web/src/admin/groups/GroupForm.ts @@ -159,3 +159,9 @@ export class GroupForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-group-form": GroupForm; + } +} diff --git a/web/src/admin/groups/GroupListPage.ts b/web/src/admin/groups/GroupListPage.ts index b97a7cf348..0b14b40f20 100644 --- a/web/src/admin/groups/GroupListPage.ts +++ b/web/src/admin/groups/GroupListPage.ts @@ -108,3 +108,9 @@ export class GroupListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-group-list": GroupListPage; + } +} diff --git a/web/src/admin/groups/GroupViewPage.ts b/web/src/admin/groups/GroupViewPage.ts index 438d083be2..13f4148602 100644 --- a/web/src/admin/groups/GroupViewPage.ts +++ b/web/src/admin/groups/GroupViewPage.ts @@ -209,3 +209,9 @@ export class GroupViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-group-view": GroupViewPage; + } +} diff --git a/web/src/admin/groups/MemberSelectModal.ts b/web/src/admin/groups/MemberSelectModal.ts index 9a5d09bbf3..be3d10dbb3 100644 --- a/web/src/admin/groups/MemberSelectModal.ts +++ b/web/src/admin/groups/MemberSelectModal.ts @@ -90,3 +90,9 @@ export class MemberSelectTable extends TableModal { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-group-member-select-table": MemberSelectTable; + } +} diff --git a/web/src/admin/groups/RelatedGroupList.ts b/web/src/admin/groups/RelatedGroupList.ts index e1c253fd1a..86f9cfeb82 100644 --- a/web/src/admin/groups/RelatedGroupList.ts +++ b/web/src/admin/groups/RelatedGroupList.ts @@ -187,3 +187,10 @@ export class RelatedGroupList extends Table { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-group-related-list": RelatedGroupList; + "ak-group-related-add": RelatedGroupAdd; + } +} diff --git a/web/src/admin/groups/RelatedUserList.ts b/web/src/admin/groups/RelatedUserList.ts index fd502e6736..84d7c456cd 100644 --- a/web/src/admin/groups/RelatedUserList.ts +++ b/web/src/admin/groups/RelatedUserList.ts @@ -483,3 +483,10 @@ export class RelatedUserList extends WithBrandConfig(WithCapabilitiesConfig(Tabl `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-related-list": RelatedUserList; + "ak-user-related-add": RelatedUserAdd; + } +} diff --git a/web/src/admin/outposts/OutpostDeploymentModal.ts b/web/src/admin/outposts/OutpostDeploymentModal.ts index effa687cf6..45cbdc1178 100644 --- a/web/src/admin/outposts/OutpostDeploymentModal.ts +++ b/web/src/admin/outposts/OutpostDeploymentModal.ts @@ -98,3 +98,9 @@ export class OutpostDeploymentModal extends ModalButton { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-outpost-deployment-modal": OutpostDeploymentModal; + } +} diff --git a/web/src/admin/outposts/OutpostForm.ts b/web/src/admin/outposts/OutpostForm.ts index d5791caded..d81cee7a40 100644 --- a/web/src/admin/outposts/OutpostForm.ts +++ b/web/src/admin/outposts/OutpostForm.ts @@ -256,3 +256,9 @@ export class OutpostForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-outpost-form": OutpostForm; + } +} diff --git a/web/src/admin/outposts/OutpostHealth.ts b/web/src/admin/outposts/OutpostHealth.ts index 2b0203748e..57fc0833ac 100644 --- a/web/src/admin/outposts/OutpostHealth.ts +++ b/web/src/admin/outposts/OutpostHealth.ts @@ -83,3 +83,9 @@ export class OutpostHealthElement extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-outpost-health": OutpostHealthElement; + } +} diff --git a/web/src/admin/outposts/OutpostHealthSimple.ts b/web/src/admin/outposts/OutpostHealthSimple.ts index c8a86370c2..eac52f8eed 100644 --- a/web/src/admin/outposts/OutpostHealthSimple.ts +++ b/web/src/admin/outposts/OutpostHealthSimple.ts @@ -64,3 +64,9 @@ export class OutpostHealthSimpleElement extends AKElement { >`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-outpost-health-simple": OutpostHealthSimpleElement; + } +} diff --git a/web/src/admin/outposts/OutpostListPage.ts b/web/src/admin/outposts/OutpostListPage.ts index 5928e5ebb0..21e7e3d568 100644 --- a/web/src/admin/outposts/OutpostListPage.ts +++ b/web/src/admin/outposts/OutpostListPage.ts @@ -222,3 +222,9 @@ export class OutpostListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-outpost-list": OutpostListPage; + } +} diff --git a/web/src/admin/outposts/ServiceConnectionDockerForm.ts b/web/src/admin/outposts/ServiceConnectionDockerForm.ts index 10dc8894bd..2ead011146 100644 --- a/web/src/admin/outposts/ServiceConnectionDockerForm.ts +++ b/web/src/admin/outposts/ServiceConnectionDockerForm.ts @@ -112,3 +112,9 @@ export class ServiceConnectionDockerForm extends ModelForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-service-connection-docker-form": ServiceConnectionDockerForm; + } +} diff --git a/web/src/admin/outposts/ServiceConnectionKubernetesForm.ts b/web/src/admin/outposts/ServiceConnectionKubernetesForm.ts index 414bb8922b..8a983fdbbd 100644 --- a/web/src/admin/outposts/ServiceConnectionKubernetesForm.ts +++ b/web/src/admin/outposts/ServiceConnectionKubernetesForm.ts @@ -101,3 +101,9 @@ export class ServiceConnectionKubernetesForm extends ModelForm< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-service-connection-kubernetes-form": ServiceConnectionKubernetesForm; + } +} diff --git a/web/src/admin/outposts/ServiceConnectionListPage.ts b/web/src/admin/outposts/ServiceConnectionListPage.ts index e4bea38813..10070a8c67 100644 --- a/web/src/admin/outposts/ServiceConnectionListPage.ts +++ b/web/src/admin/outposts/ServiceConnectionListPage.ts @@ -139,3 +139,9 @@ export class OutpostServiceConnectionListPage extends TablePage `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-outpost-service-connection-list": OutpostServiceConnectionListPage; + } +} diff --git a/web/src/admin/outposts/ServiceConnectionWizard.ts b/web/src/admin/outposts/ServiceConnectionWizard.ts index 4feed47476..ebc4439e28 100644 --- a/web/src/admin/outposts/ServiceConnectionWizard.ts +++ b/web/src/admin/outposts/ServiceConnectionWizard.ts @@ -74,3 +74,9 @@ export class ServiceConnectionWizard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-service-connection-wizard": ServiceConnectionWizard; + } +} diff --git a/web/src/admin/policies/BoundPoliciesList.ts b/web/src/admin/policies/BoundPoliciesList.ts index 32ae91d71e..f90f758deb 100644 --- a/web/src/admin/policies/BoundPoliciesList.ts +++ b/web/src/admin/policies/BoundPoliciesList.ts @@ -214,3 +214,9 @@ export class BoundPoliciesList extends Table { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-bound-policies-list": BoundPoliciesList; + } +} diff --git a/web/src/admin/policies/PolicyBindingForm.ts b/web/src/admin/policies/PolicyBindingForm.ts index de711f4139..8a47135e00 100644 --- a/web/src/admin/policies/PolicyBindingForm.ts +++ b/web/src/admin/policies/PolicyBindingForm.ts @@ -321,3 +321,9 @@ export class PolicyBindingForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-binding-form": PolicyBindingForm; + } +} diff --git a/web/src/admin/policies/PolicyListPage.ts b/web/src/admin/policies/PolicyListPage.ts index b792df2110..ffb2fa7529 100644 --- a/web/src/admin/policies/PolicyListPage.ts +++ b/web/src/admin/policies/PolicyListPage.ts @@ -159,3 +159,9 @@ export class PolicyListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-list": PolicyListPage; + } +} diff --git a/web/src/admin/policies/PolicyTestForm.ts b/web/src/admin/policies/PolicyTestForm.ts index 6e57301676..d612d7e4a3 100644 --- a/web/src/admin/policies/PolicyTestForm.ts +++ b/web/src/admin/policies/PolicyTestForm.ts @@ -135,3 +135,9 @@ export class PolicyTestForm extends Form { ${this.result ? this.renderResult() : html``}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-test-form": PolicyTestForm; + } +} diff --git a/web/src/admin/policies/PolicyWizard.ts b/web/src/admin/policies/PolicyWizard.ts index c66e953249..f6a9b48114 100644 --- a/web/src/admin/policies/PolicyWizard.ts +++ b/web/src/admin/policies/PolicyWizard.ts @@ -114,3 +114,9 @@ export class PolicyWizard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-wizard": PolicyWizard; + } +} diff --git a/web/src/admin/policies/dummy/DummyPolicyForm.ts b/web/src/admin/policies/dummy/DummyPolicyForm.ts index 57fe5812d2..8801ec3b37 100644 --- a/web/src/admin/policies/dummy/DummyPolicyForm.ts +++ b/web/src/admin/policies/dummy/DummyPolicyForm.ts @@ -117,3 +117,9 @@ export class DummyPolicyForm extends BasePolicyForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-dummy-form": DummyPolicyForm; + } +} diff --git a/web/src/admin/policies/event_matcher/EventMatcherPolicyForm.ts b/web/src/admin/policies/event_matcher/EventMatcherPolicyForm.ts index b6d3e00d1d..809b275bcf 100644 --- a/web/src/admin/policies/event_matcher/EventMatcherPolicyForm.ts +++ b/web/src/admin/policies/event_matcher/EventMatcherPolicyForm.ts @@ -181,3 +181,9 @@ export class EventMatcherPolicyForm extends BasePolicyForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-event-matcher-form": EventMatcherPolicyForm; + } +} diff --git a/web/src/admin/policies/expiry/ExpiryPolicyForm.ts b/web/src/admin/policies/expiry/ExpiryPolicyForm.ts index c22311571a..e35f4431ac 100644 --- a/web/src/admin/policies/expiry/ExpiryPolicyForm.ts +++ b/web/src/admin/policies/expiry/ExpiryPolicyForm.ts @@ -104,3 +104,9 @@ export class PasswordExpiryPolicyForm extends BasePolicyForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-password-expiry-form": PasswordExpiryPolicyForm; + } +} diff --git a/web/src/admin/policies/expression/ExpressionPolicyForm.ts b/web/src/admin/policies/expression/ExpressionPolicyForm.ts index 01c6039147..de3aa538a7 100644 --- a/web/src/admin/policies/expression/ExpressionPolicyForm.ts +++ b/web/src/admin/policies/expression/ExpressionPolicyForm.ts @@ -96,3 +96,9 @@ export class ExpressionPolicyForm extends BasePolicyForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-expression-form": ExpressionPolicyForm; + } +} diff --git a/web/src/admin/policies/password/PasswordPolicyForm.ts b/web/src/admin/policies/password/PasswordPolicyForm.ts index 08674effa7..a3913a5d8f 100644 --- a/web/src/admin/policies/password/PasswordPolicyForm.ts +++ b/web/src/admin/policies/password/PasswordPolicyForm.ts @@ -339,3 +339,9 @@ export class PasswordPolicyForm extends BasePolicyForm { ${this.showZxcvbn ? this.renderZxcvbn() : html``}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-password-form": PasswordPolicyForm; + } +} diff --git a/web/src/admin/policies/reputation/ReputationListPage.ts b/web/src/admin/policies/reputation/ReputationListPage.ts index 719f7b81e7..b3e5ea34e2 100644 --- a/web/src/admin/policies/reputation/ReputationListPage.ts +++ b/web/src/admin/policies/reputation/ReputationListPage.ts @@ -105,3 +105,9 @@ export class ReputationListPage extends TablePage { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-reputation-list": ReputationListPage; + } +} diff --git a/web/src/admin/policies/reputation/ReputationPolicyForm.ts b/web/src/admin/policies/reputation/ReputationPolicyForm.ts index d5f12ba1c2..2f85502ef7 100644 --- a/web/src/admin/policies/reputation/ReputationPolicyForm.ts +++ b/web/src/admin/policies/reputation/ReputationPolicyForm.ts @@ -125,3 +125,9 @@ doesn't pass when either or both of the selected options are equal or above the `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-policy-reputation-form": ReputationPolicyForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingGoogleWorkspaceForm.ts b/web/src/admin/property-mappings/PropertyMappingGoogleWorkspaceForm.ts index 3677fc3a99..c2f704fff7 100644 --- a/web/src/admin/property-mappings/PropertyMappingGoogleWorkspaceForm.ts +++ b/web/src/admin/property-mappings/PropertyMappingGoogleWorkspaceForm.ts @@ -70,3 +70,9 @@ export class PropertyMappingGoogleWorkspaceForm extends BasePropertyMappingForm< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-google-workspace-form": PropertyMappingGoogleWorkspaceForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingLDAPForm.ts b/web/src/admin/property-mappings/PropertyMappingLDAPForm.ts index 4647a3e70a..796983673a 100644 --- a/web/src/admin/property-mappings/PropertyMappingLDAPForm.ts +++ b/web/src/admin/property-mappings/PropertyMappingLDAPForm.ts @@ -79,3 +79,9 @@ export class PropertyMappingLDAPForm extends BasePropertyMappingForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-ldap-form": PropertyMappingLDAPForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingListPage.ts b/web/src/admin/property-mappings/PropertyMappingListPage.ts index be9eb3ed66..4cd760f889 100644 --- a/web/src/admin/property-mappings/PropertyMappingListPage.ts +++ b/web/src/admin/property-mappings/PropertyMappingListPage.ts @@ -163,3 +163,9 @@ export class PropertyMappingListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-list": PropertyMappingListPage; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingMicrosoftEntraForm.ts b/web/src/admin/property-mappings/PropertyMappingMicrosoftEntraForm.ts index c517616f8b..b9755d7b89 100644 --- a/web/src/admin/property-mappings/PropertyMappingMicrosoftEntraForm.ts +++ b/web/src/admin/property-mappings/PropertyMappingMicrosoftEntraForm.ts @@ -70,3 +70,9 @@ export class PropertyMappingMicrosoftEntraForm extends BasePropertyMappingForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-microsoft-entra-form": PropertyMappingMicrosoftEntraForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingNotification.ts b/web/src/admin/property-mappings/PropertyMappingNotification.ts index fe88b1a8c1..e6a3fa870c 100644 --- a/web/src/admin/property-mappings/PropertyMappingNotification.ts +++ b/web/src/admin/property-mappings/PropertyMappingNotification.ts @@ -70,3 +70,9 @@ export class PropertyMappingNotification extends ModelForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-notification-form": PropertyMappingNotification; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingRACForm.ts b/web/src/admin/property-mappings/PropertyMappingRACForm.ts index 23609c7bb7..2fe8b0fa2e 100644 --- a/web/src/admin/property-mappings/PropertyMappingRACForm.ts +++ b/web/src/admin/property-mappings/PropertyMappingRACForm.ts @@ -173,3 +173,9 @@ export class PropertyMappingLDAPForm extends ModelForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-saml-form": PropertyMappingSAMLForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingSCIMForm.ts b/web/src/admin/property-mappings/PropertyMappingSCIMForm.ts index 51bcfc65d3..1dca3e2578 100644 --- a/web/src/admin/property-mappings/PropertyMappingSCIMForm.ts +++ b/web/src/admin/property-mappings/PropertyMappingSCIMForm.ts @@ -64,3 +64,9 @@ export class PropertyMappingSCIMForm extends BasePropertyMappingForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-scim-form": PropertyMappingSCIMForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingScopeForm.ts b/web/src/admin/property-mappings/PropertyMappingScopeForm.ts index 6403e0c6ec..9986a0da32 100644 --- a/web/src/admin/property-mappings/PropertyMappingScopeForm.ts +++ b/web/src/admin/property-mappings/PropertyMappingScopeForm.ts @@ -91,3 +91,9 @@ export class PropertyMappingScopeForm extends BasePropertyMappingForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-scope-form": PropertyMappingScopeForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingTestForm.ts b/web/src/admin/property-mappings/PropertyMappingTestForm.ts index dff9865ad4..196cac41db 100644 --- a/web/src/admin/property-mappings/PropertyMappingTestForm.ts +++ b/web/src/admin/property-mappings/PropertyMappingTestForm.ts @@ -188,3 +188,9 @@ export class PolicyTestForm extends Form { ${this.result ? this.renderResult() : html``}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-test-form": PolicyTestForm; + } +} diff --git a/web/src/admin/property-mappings/PropertyMappingWizard.ts b/web/src/admin/property-mappings/PropertyMappingWizard.ts index a8ceea2760..403c57e0c6 100644 --- a/web/src/admin/property-mappings/PropertyMappingWizard.ts +++ b/web/src/admin/property-mappings/PropertyMappingWizard.ts @@ -75,3 +75,9 @@ export class PropertyMappingWizard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-property-mapping-wizard": PropertyMappingWizard; + } +} diff --git a/web/src/admin/providers/ProviderListPage.ts b/web/src/admin/providers/ProviderListPage.ts index c2190d9f3b..29e88ab9ee 100644 --- a/web/src/admin/providers/ProviderListPage.ts +++ b/web/src/admin/providers/ProviderListPage.ts @@ -136,3 +136,9 @@ export class ProviderListPage extends TablePage { return html` `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-list": ProviderListPage; + } +} diff --git a/web/src/admin/providers/ProviderViewPage.ts b/web/src/admin/providers/ProviderViewPage.ts index a1e2a4ce2e..027648a772 100644 --- a/web/src/admin/providers/ProviderViewPage.ts +++ b/web/src/admin/providers/ProviderViewPage.ts @@ -95,3 +95,9 @@ export class ProviderViewPage extends AKElement { ${this.renderProvider()}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-view": ProviderViewPage; + } +} diff --git a/web/src/admin/providers/ProviderWizard.ts b/web/src/admin/providers/ProviderWizard.ts index 8e39b8c346..51e159c671 100644 --- a/web/src/admin/providers/ProviderWizard.ts +++ b/web/src/admin/providers/ProviderWizard.ts @@ -83,3 +83,9 @@ export class ProviderWizard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-wizard": ProviderWizard; + } +} diff --git a/web/src/admin/providers/RelatedApplicationButton.ts b/web/src/admin/providers/RelatedApplicationButton.ts index 4e225eeb8f..3ada21bae9 100644 --- a/web/src/admin/providers/RelatedApplicationButton.ts +++ b/web/src/admin/providers/RelatedApplicationButton.ts @@ -35,3 +35,9 @@ export class RelatedApplicationButton extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-related-application": RelatedApplicationButton; + } +} diff --git a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts index f90642eb65..b99fb4bebf 100644 --- a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts +++ b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderForm.ts @@ -296,3 +296,9 @@ export class GoogleWorkspaceProviderFormPage extends BaseProviderForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-google-workspace-form": GoogleWorkspaceProviderFormPage; + } +} diff --git a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderGroupList.ts b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderGroupList.ts index cb6ba6794d..f4abf87e3b 100644 --- a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderGroupList.ts +++ b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderGroupList.ts @@ -71,3 +71,9 @@ export class GoogleWorkspaceProviderGroupList extends Table`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-google-workspace-groups-list": GoogleWorkspaceProviderGroupList; + } +} diff --git a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderUserList.ts b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderUserList.ts index 7312f7ea16..238cdca6c3 100644 --- a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderUserList.ts +++ b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderUserList.ts @@ -72,3 +72,9 @@ export class GoogleWorkspaceProviderUserList extends Table`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-google-workspace-users-list": GoogleWorkspaceProviderUserList; + } +} diff --git a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderViewPage.ts b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderViewPage.ts index 4ca5b16a90..9379e3c132 100644 --- a/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderViewPage.ts +++ b/web/src/admin/providers/google_workspace/GoogleWorkspaceProviderViewPage.ts @@ -221,3 +221,9 @@ export class GoogleWorkspaceProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-google-workspace-view": GoogleWorkspaceProviderViewPage; + } +} diff --git a/web/src/admin/providers/ldap/LDAPProviderForm.ts b/web/src/admin/providers/ldap/LDAPProviderForm.ts index 5af4329243..83894b20ff 100644 --- a/web/src/admin/providers/ldap/LDAPProviderForm.ts +++ b/web/src/admin/providers/ldap/LDAPProviderForm.ts @@ -261,3 +261,9 @@ export class LDAPProviderFormPage extends WithBrandConfig(BaseProviderForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-ldap-form": LDAPProviderFormPage; + } +} diff --git a/web/src/admin/providers/ldap/LDAPProviderViewPage.ts b/web/src/admin/providers/ldap/LDAPProviderViewPage.ts index 39c77166e3..b5d1df9d22 100644 --- a/web/src/admin/providers/ldap/LDAPProviderViewPage.ts +++ b/web/src/admin/providers/ldap/LDAPProviderViewPage.ts @@ -240,3 +240,9 @@ export class LDAPProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-ldap-view": LDAPProviderViewPage; + } +} diff --git a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts index 5943cdb127..d6c62de86d 100644 --- a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts +++ b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderFormPage.ts @@ -285,3 +285,9 @@ export class MicrosoftEntraProviderFormPage extends BaseProviderForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-microsoft-entra-form": MicrosoftEntraProviderFormPage; + } +} diff --git a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderGroupList.ts b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderGroupList.ts index a77298b8ef..0f66ebe0a1 100644 --- a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderGroupList.ts +++ b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderGroupList.ts @@ -68,3 +68,9 @@ export class MicrosoftEntraProviderGroupList extends Table`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-microsoft-entra-groups-list": MicrosoftEntraProviderGroupList; + } +} diff --git a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderUserList.ts b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderUserList.ts index f65da7c522..2fcca833d2 100644 --- a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderUserList.ts +++ b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderUserList.ts @@ -72,3 +72,9 @@ export class MicrosoftEntraProviderUserList extends Table`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-microsoft-entra-users-list": MicrosoftEntraProviderUserList; + } +} diff --git a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderViewPage.ts b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderViewPage.ts index c92c944639..5d23a9a78f 100644 --- a/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderViewPage.ts +++ b/web/src/admin/providers/microsoft_entra/MicrosoftEntraProviderViewPage.ts @@ -222,3 +222,9 @@ export class MicrosoftEntraProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-microsoft-entra-view": MicrosoftEntraProviderViewPage; + } +} diff --git a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts index f3f1f49096..734ad8750c 100644 --- a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts @@ -383,3 +383,9 @@ export class OAuth2ProviderFormPage extends BaseProviderForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-oauth2-form": OAuth2ProviderFormPage; + } +} diff --git a/web/src/admin/providers/oauth2/OAuth2ProviderViewPage.ts b/web/src/admin/providers/oauth2/OAuth2ProviderViewPage.ts index 6c3bcc4cc8..00f59f5931 100644 --- a/web/src/admin/providers/oauth2/OAuth2ProviderViewPage.ts +++ b/web/src/admin/providers/oauth2/OAuth2ProviderViewPage.ts @@ -434,3 +434,9 @@ export class OAuth2ProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-oauth2-view": OAuth2ProviderViewPage; + } +} diff --git a/web/src/admin/providers/proxy/ProxyProviderForm.ts b/web/src/admin/providers/proxy/ProxyProviderForm.ts index d05c433912..b7b7f153fd 100644 --- a/web/src/admin/providers/proxy/ProxyProviderForm.ts +++ b/web/src/admin/providers/proxy/ProxyProviderForm.ts @@ -451,3 +451,9 @@ ${this.instance?.skipPathRegex}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-proxy-form": ProxyProviderFormPage; + } +} diff --git a/web/src/admin/providers/proxy/ProxyProviderViewPage.ts b/web/src/admin/providers/proxy/ProxyProviderViewPage.ts index e4488af237..f314f5a8d9 100644 --- a/web/src/admin/providers/proxy/ProxyProviderViewPage.ts +++ b/web/src/admin/providers/proxy/ProxyProviderViewPage.ts @@ -413,3 +413,9 @@ export class ProxyProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-proxy-view": ProxyProviderViewPage; + } +} diff --git a/web/src/admin/providers/rac/ConnectionTokenList.ts b/web/src/admin/providers/rac/ConnectionTokenList.ts index d9d4fbf830..d32c97e61c 100644 --- a/web/src/admin/providers/rac/ConnectionTokenList.ts +++ b/web/src/admin/providers/rac/ConnectionTokenList.ts @@ -96,3 +96,9 @@ export class ConnectionTokenListPage extends Table { return [html`${item.providerObj.name}`, html`${item.endpointObj.name}`]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rac-connection-token-list": ConnectionTokenListPage; + } +} diff --git a/web/src/admin/providers/rac/EndpointForm.ts b/web/src/admin/providers/rac/EndpointForm.ts index c14feee462..5f1e9c74fb 100644 --- a/web/src/admin/providers/rac/EndpointForm.ts +++ b/web/src/admin/providers/rac/EndpointForm.ts @@ -157,3 +157,9 @@ export class EndpointForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rac-endpoint-form": EndpointForm; + } +} diff --git a/web/src/admin/providers/rac/EndpointList.ts b/web/src/admin/providers/rac/EndpointList.ts index fb17887875..bbd753ec52 100644 --- a/web/src/admin/providers/rac/EndpointList.ts +++ b/web/src/admin/providers/rac/EndpointList.ts @@ -141,3 +141,9 @@ export class EndpointListPage extends Table { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rac-endpoint-list": EndpointListPage; + } +} diff --git a/web/src/admin/providers/rac/RACProviderForm.ts b/web/src/admin/providers/rac/RACProviderForm.ts index 0fef06697e..abe0f3509b 100644 --- a/web/src/admin/providers/rac/RACProviderForm.ts +++ b/web/src/admin/providers/rac/RACProviderForm.ts @@ -172,3 +172,9 @@ export class RACProviderFormPage extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-rac-form": RACProviderFormPage; + } +} diff --git a/web/src/admin/providers/rac/RACProviderViewPage.ts b/web/src/admin/providers/rac/RACProviderViewPage.ts index efa10e7a1d..058aa64d74 100644 --- a/web/src/admin/providers/rac/RACProviderViewPage.ts +++ b/web/src/admin/providers/rac/RACProviderViewPage.ts @@ -194,3 +194,9 @@ export class RACProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-rac-view": RACProviderViewPage; + } +} diff --git a/web/src/admin/providers/radius/RadiusProviderForm.ts b/web/src/admin/providers/radius/RadiusProviderForm.ts index fd6d74ef00..21a5173d59 100644 --- a/web/src/admin/providers/radius/RadiusProviderForm.ts +++ b/web/src/admin/providers/radius/RadiusProviderForm.ts @@ -122,3 +122,9 @@ export class RadiusProviderFormPage extends WithBrandConfig(BaseProviderForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-radius-form": RadiusProviderFormPage; + } +} diff --git a/web/src/admin/providers/radius/RadiusProviderViewPage.ts b/web/src/admin/providers/radius/RadiusProviderViewPage.ts index c4d90fdf27..620cfc5115 100644 --- a/web/src/admin/providers/radius/RadiusProviderViewPage.ts +++ b/web/src/admin/providers/radius/RadiusProviderViewPage.ts @@ -175,3 +175,9 @@ export class RadiusProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-radius-view": RadiusProviderViewPage; + } +} diff --git a/web/src/admin/providers/saml/SAMLProviderForm.ts b/web/src/admin/providers/saml/SAMLProviderForm.ts index 9cb5670d0f..7ca94327ad 100644 --- a/web/src/admin/providers/saml/SAMLProviderForm.ts +++ b/web/src/admin/providers/saml/SAMLProviderForm.ts @@ -393,3 +393,9 @@ export class SAMLProviderFormPage extends BaseProviderForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-saml-form": SAMLProviderFormPage; + } +} diff --git a/web/src/admin/providers/saml/SAMLProviderImportForm.ts b/web/src/admin/providers/saml/SAMLProviderImportForm.ts index b63c1512bb..f348cdcdca 100644 --- a/web/src/admin/providers/saml/SAMLProviderImportForm.ts +++ b/web/src/admin/providers/saml/SAMLProviderImportForm.ts @@ -52,3 +52,9 @@ export class SAMLProviderImportForm extends Form { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-saml-import-form": SAMLProviderImportForm; + } +} diff --git a/web/src/admin/providers/saml/SAMLProviderViewPage.ts b/web/src/admin/providers/saml/SAMLProviderViewPage.ts index df9f16ef96..c3fd2217f8 100644 --- a/web/src/admin/providers/saml/SAMLProviderViewPage.ts +++ b/web/src/admin/providers/saml/SAMLProviderViewPage.ts @@ -590,3 +590,9 @@ export class SAMLProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-saml-view": SAMLProviderViewPage; + } +} diff --git a/web/src/admin/providers/scim/SCIMProviderForm.ts b/web/src/admin/providers/scim/SCIMProviderForm.ts index afcba41b35..9cc5efdc78 100644 --- a/web/src/admin/providers/scim/SCIMProviderForm.ts +++ b/web/src/admin/providers/scim/SCIMProviderForm.ts @@ -219,3 +219,9 @@ export class SCIMProviderFormPage extends BaseProviderForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-scim-form": SCIMProviderFormPage; + } +} diff --git a/web/src/admin/providers/scim/SCIMProviderGroupList.ts b/web/src/admin/providers/scim/SCIMProviderGroupList.ts index a7effbc387..97e7dfe1b9 100644 --- a/web/src/admin/providers/scim/SCIMProviderGroupList.ts +++ b/web/src/admin/providers/scim/SCIMProviderGroupList.ts @@ -61,3 +61,9 @@ export class SCIMProviderGroupList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-scim-groups-list": SCIMProviderGroupList; + } +} diff --git a/web/src/admin/providers/scim/SCIMProviderUserList.ts b/web/src/admin/providers/scim/SCIMProviderUserList.ts index 7fa70cbb54..b611c35e5c 100644 --- a/web/src/admin/providers/scim/SCIMProviderUserList.ts +++ b/web/src/admin/providers/scim/SCIMProviderUserList.ts @@ -62,3 +62,9 @@ export class SCIMProviderUserList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-scim-users-list": SCIMProviderUserList; + } +} diff --git a/web/src/admin/providers/scim/SCIMProviderViewPage.ts b/web/src/admin/providers/scim/SCIMProviderViewPage.ts index ddc4fe97e3..28acdab364 100644 --- a/web/src/admin/providers/scim/SCIMProviderViewPage.ts +++ b/web/src/admin/providers/scim/SCIMProviderViewPage.ts @@ -218,3 +218,9 @@ export class SCIMProviderViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-provider-scim-view": SCIMProviderViewPage; + } +} diff --git a/web/src/admin/roles/RoleAssignedGlobalPermissionsTable.ts b/web/src/admin/roles/RoleAssignedGlobalPermissionsTable.ts index 3663f8272e..c770356ab1 100644 --- a/web/src/admin/roles/RoleAssignedGlobalPermissionsTable.ts +++ b/web/src/admin/roles/RoleAssignedGlobalPermissionsTable.ts @@ -92,3 +92,9 @@ export class RoleAssignedGlobalPermissionsTable extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-role-assigned-global-permissions-table": RoleAssignedGlobalPermissionsTable; + } +} diff --git a/web/src/admin/roles/RoleAssignedObjectPermissionTable.ts b/web/src/admin/roles/RoleAssignedObjectPermissionTable.ts index de0d459cd1..4570a26e4b 100644 --- a/web/src/admin/roles/RoleAssignedObjectPermissionTable.ts +++ b/web/src/admin/roles/RoleAssignedObjectPermissionTable.ts @@ -94,3 +94,9 @@ export class RoleAssignedObjectPermissionTable extends Table { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-role-form": RoleForm; + } +} diff --git a/web/src/admin/roles/RoleListPage.ts b/web/src/admin/roles/RoleListPage.ts index 26da56f632..407b4ad81d 100644 --- a/web/src/admin/roles/RoleListPage.ts +++ b/web/src/admin/roles/RoleListPage.ts @@ -120,3 +120,9 @@ export class RoleListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-role-list": RoleListPage; + } +} diff --git a/web/src/admin/roles/RolePermissionForm.ts b/web/src/admin/roles/RolePermissionForm.ts index f0312706a6..c4d0850acc 100644 --- a/web/src/admin/roles/RolePermissionForm.ts +++ b/web/src/admin/roles/RolePermissionForm.ts @@ -86,3 +86,9 @@ export class RolePermissionForm extends ModelForm `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-role-permission-form": RolePermissionForm; + } +} diff --git a/web/src/admin/roles/RoleViewPage.ts b/web/src/admin/roles/RoleViewPage.ts index 10622f7294..d06a8dec2c 100644 --- a/web/src/admin/roles/RoleViewPage.ts +++ b/web/src/admin/roles/RoleViewPage.ts @@ -139,3 +139,9 @@ export class RoleViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-role-view": RoleViewPage; + } +} diff --git a/web/src/admin/sources/SourceListPage.ts b/web/src/admin/sources/SourceListPage.ts index 6d33d0fcb0..9643df843f 100644 --- a/web/src/admin/sources/SourceListPage.ts +++ b/web/src/admin/sources/SourceListPage.ts @@ -132,3 +132,9 @@ export class SourceListPage extends TablePage { return html` `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-list": SourceListPage; + } +} diff --git a/web/src/admin/sources/SourceViewPage.ts b/web/src/admin/sources/SourceViewPage.ts index ad51af0fa9..4c41033a51 100644 --- a/web/src/admin/sources/SourceViewPage.ts +++ b/web/src/admin/sources/SourceViewPage.ts @@ -71,3 +71,9 @@ export class SourceViewPage extends AKElement { ${this.renderSource()}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-view": SourceViewPage; + } +} diff --git a/web/src/admin/sources/SourceWizard.ts b/web/src/admin/sources/SourceWizard.ts index 1901dbcb6a..15095d5fa8 100644 --- a/web/src/admin/sources/SourceWizard.ts +++ b/web/src/admin/sources/SourceWizard.ts @@ -80,3 +80,9 @@ export class SourceWizard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-wizard": SourceWizard; + } +} diff --git a/web/src/admin/sources/ldap/LDAPSourceConnectivity.ts b/web/src/admin/sources/ldap/LDAPSourceConnectivity.ts index 2440a68609..87a4b3bbed 100644 --- a/web/src/admin/sources/ldap/LDAPSourceConnectivity.ts +++ b/web/src/admin/sources/ldap/LDAPSourceConnectivity.ts @@ -48,3 +48,9 @@ export class LDAPSourceConnectivity extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-ldap-connectivity": LDAPSourceConnectivity; + } +} diff --git a/web/src/admin/sources/ldap/LDAPSourceForm.ts b/web/src/admin/sources/ldap/LDAPSourceForm.ts index 64aa9d0b88..009018a1f7 100644 --- a/web/src/admin/sources/ldap/LDAPSourceForm.ts +++ b/web/src/admin/sources/ldap/LDAPSourceForm.ts @@ -483,3 +483,9 @@ export class LDAPSourceForm extends BaseSourceForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-ldap-form": LDAPSourceForm; + } +} diff --git a/web/src/admin/sources/ldap/LDAPSourceViewPage.ts b/web/src/admin/sources/ldap/LDAPSourceViewPage.ts index b5fe955aa9..1f8dc63edf 100644 --- a/web/src/admin/sources/ldap/LDAPSourceViewPage.ts +++ b/web/src/admin/sources/ldap/LDAPSourceViewPage.ts @@ -198,3 +198,9 @@ export class LDAPSourceViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-ldap-view": LDAPSourceViewPage; + } +} diff --git a/web/src/admin/sources/oauth/OAuthSourceDiagram.ts b/web/src/admin/sources/oauth/OAuthSourceDiagram.ts index 7241dc5191..4f7c22f851 100644 --- a/web/src/admin/sources/oauth/OAuthSourceDiagram.ts +++ b/web/src/admin/sources/oauth/OAuthSourceDiagram.ts @@ -29,3 +29,9 @@ export class OAuthSourceDiagram extends Diagram { this.diagram = graph.join("\n"); }; } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-oauth-diagram": OAuthSourceDiagram; + } +} diff --git a/web/src/admin/sources/oauth/OAuthSourceForm.ts b/web/src/admin/sources/oauth/OAuthSourceForm.ts index b63f8b92e1..36ca76afb6 100644 --- a/web/src/admin/sources/oauth/OAuthSourceForm.ts +++ b/web/src/admin/sources/oauth/OAuthSourceForm.ts @@ -434,3 +434,9 @@ export class OAuthSourceForm extends WithCapabilitiesConfig(BaseSourceForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-oauth-form": OAuthSourceForm; + } +} diff --git a/web/src/admin/sources/oauth/OAuthSourceViewPage.ts b/web/src/admin/sources/oauth/OAuthSourceViewPage.ts index 0d4d1035d1..bc9b29240b 100644 --- a/web/src/admin/sources/oauth/OAuthSourceViewPage.ts +++ b/web/src/admin/sources/oauth/OAuthSourceViewPage.ts @@ -255,3 +255,9 @@ export class OAuthSourceViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-oauth-view": OAuthSourceViewPage; + } +} diff --git a/web/src/admin/sources/plex/PlexSourceForm.ts b/web/src/admin/sources/plex/PlexSourceForm.ts index 8444e11128..3e4c1374a4 100644 --- a/web/src/admin/sources/plex/PlexSourceForm.ts +++ b/web/src/admin/sources/plex/PlexSourceForm.ts @@ -357,3 +357,9 @@ export class PlexSourceForm extends WithCapabilitiesConfig(BaseSourceForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-plex-form": PlexSourceForm; + } +} diff --git a/web/src/admin/sources/plex/PlexSourceViewPage.ts b/web/src/admin/sources/plex/PlexSourceViewPage.ts index a1bf00c4bb..5e3a833ac3 100644 --- a/web/src/admin/sources/plex/PlexSourceViewPage.ts +++ b/web/src/admin/sources/plex/PlexSourceViewPage.ts @@ -145,3 +145,9 @@ export class PlexSourceViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-plex-view": PlexSourceViewPage; + } +} diff --git a/web/src/admin/sources/saml/SAMLSourceForm.ts b/web/src/admin/sources/saml/SAMLSourceForm.ts index c969411fb8..0800c97678 100644 --- a/web/src/admin/sources/saml/SAMLSourceForm.ts +++ b/web/src/admin/sources/saml/SAMLSourceForm.ts @@ -503,3 +503,9 @@ export class SAMLSourceForm extends WithCapabilitiesConfig(BaseSourceForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-saml-form": SAMLSourceForm; + } +} diff --git a/web/src/admin/sources/saml/SAMLSourceViewPage.ts b/web/src/admin/sources/saml/SAMLSourceViewPage.ts index 4f5d39e104..5ffa3ee147 100644 --- a/web/src/admin/sources/saml/SAMLSourceViewPage.ts +++ b/web/src/admin/sources/saml/SAMLSourceViewPage.ts @@ -222,3 +222,9 @@ export class SAMLSourceViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-saml-view": SAMLSourceViewPage; + } +} diff --git a/web/src/admin/sources/scim/SCIMSourceForm.ts b/web/src/admin/sources/scim/SCIMSourceForm.ts index 1dbe38f1bb..68eec954a4 100644 --- a/web/src/admin/sources/scim/SCIMSourceForm.ts +++ b/web/src/admin/sources/scim/SCIMSourceForm.ts @@ -84,3 +84,9 @@ export class SCIMSourceForm extends BaseSourceForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-scim-form": SCIMSourceForm; + } +} diff --git a/web/src/admin/sources/scim/SCIMSourceGroups.ts b/web/src/admin/sources/scim/SCIMSourceGroups.ts index 46e14c7c33..9813916316 100644 --- a/web/src/admin/sources/scim/SCIMSourceGroups.ts +++ b/web/src/admin/sources/scim/SCIMSourceGroups.ts @@ -49,3 +49,9 @@ export class SCIMSourceGroupList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-scim-groups-list": SCIMSourceGroupList; + } +} diff --git a/web/src/admin/sources/scim/SCIMSourceUsers.ts b/web/src/admin/sources/scim/SCIMSourceUsers.ts index 1e753c39cf..95f96a61b7 100644 --- a/web/src/admin/sources/scim/SCIMSourceUsers.ts +++ b/web/src/admin/sources/scim/SCIMSourceUsers.ts @@ -50,3 +50,9 @@ export class SCIMSourceUserList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-scim-users-list": SCIMSourceUserList; + } +} diff --git a/web/src/admin/sources/scim/SCIMSourceViewPage.ts b/web/src/admin/sources/scim/SCIMSourceViewPage.ts index 9e11ef46be..e2d869fb03 100644 --- a/web/src/admin/sources/scim/SCIMSourceViewPage.ts +++ b/web/src/admin/sources/scim/SCIMSourceViewPage.ts @@ -213,3 +213,9 @@ export class SCIMSourceViewPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-source-scim-view": SCIMSourceViewPage; + } +} diff --git a/web/src/admin/stages/StageListPage.ts b/web/src/admin/stages/StageListPage.ts index 32d80bfe0c..d5633f0e26 100644 --- a/web/src/admin/stages/StageListPage.ts +++ b/web/src/admin/stages/StageListPage.ts @@ -162,3 +162,9 @@ export class StageListPage extends TablePage { return html` `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-list": StageListPage; + } +} diff --git a/web/src/admin/stages/StageWizard.ts b/web/src/admin/stages/StageWizard.ts index 0e5d483d0d..a20fec7569 100644 --- a/web/src/admin/stages/StageWizard.ts +++ b/web/src/admin/stages/StageWizard.ts @@ -127,3 +127,9 @@ export class StageWizard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-wizard": StageWizard; + } +} diff --git a/web/src/admin/stages/authenticator_duo/AuthenticatorDuoStageForm.ts b/web/src/admin/stages/authenticator_duo/AuthenticatorDuoStageForm.ts index db9322a846..e288140af4 100644 --- a/web/src/admin/stages/authenticator_duo/AuthenticatorDuoStageForm.ts +++ b/web/src/admin/stages/authenticator_duo/AuthenticatorDuoStageForm.ts @@ -183,3 +183,9 @@ export class AuthenticatorDuoStageForm extends BaseStageForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-duo-form": AuthenticatorDuoStageForm; + } +} diff --git a/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts b/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts index 2fbb24b102..42f3670b80 100644 --- a/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts +++ b/web/src/admin/stages/authenticator_duo/DuoDeviceImportForm.ts @@ -121,3 +121,9 @@ export class DuoDeviceImportForm extends ModelForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-sms-form": AuthenticatorSMSStageForm; + } +} diff --git a/web/src/admin/stages/authenticator_static/AuthenticatorStaticStageForm.ts b/web/src/admin/stages/authenticator_static/AuthenticatorStaticStageForm.ts index 7a5dcab472..360a417e44 100644 --- a/web/src/admin/stages/authenticator_static/AuthenticatorStaticStageForm.ts +++ b/web/src/admin/stages/authenticator_static/AuthenticatorStaticStageForm.ts @@ -150,3 +150,9 @@ export class AuthenticatorStaticStageForm extends BaseStageForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-static-form": AuthenticatorStaticStageForm; + } +} diff --git a/web/src/admin/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts b/web/src/admin/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts index 91ddcab195..dc77074d27 100644 --- a/web/src/admin/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts +++ b/web/src/admin/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts @@ -140,3 +140,9 @@ export class AuthenticatorTOTPStageForm extends BaseStageForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-totp-form": AuthenticatorTOTPStageForm; + } +} diff --git a/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts b/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts index 70a359930e..bd35b02674 100644 --- a/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts +++ b/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts @@ -280,3 +280,9 @@ export class AuthenticatorValidateStageForm extends BaseStageForm`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-webauthn-form": AuthenticatorWebAuthnStageForm; + } +} diff --git a/web/src/admin/stages/captcha/CaptchaStageForm.ts b/web/src/admin/stages/captcha/CaptchaStageForm.ts index 27a9470989..5bf58079e1 100644 --- a/web/src/admin/stages/captcha/CaptchaStageForm.ts +++ b/web/src/admin/stages/captcha/CaptchaStageForm.ts @@ -163,3 +163,9 @@ export class CaptchaStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-captcha-form": CaptchaStageForm; + } +} diff --git a/web/src/admin/stages/consent/ConsentStageForm.ts b/web/src/admin/stages/consent/ConsentStageForm.ts index 7bc5ad0ec8..513a2a2799 100644 --- a/web/src/admin/stages/consent/ConsentStageForm.ts +++ b/web/src/admin/stages/consent/ConsentStageForm.ts @@ -114,3 +114,9 @@ export class ConsentStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-consent-form": ConsentStageForm; + } +} diff --git a/web/src/admin/stages/deny/DenyStageForm.ts b/web/src/admin/stages/deny/DenyStageForm.ts index ed3dffa5fe..1858588df4 100644 --- a/web/src/admin/stages/deny/DenyStageForm.ts +++ b/web/src/admin/stages/deny/DenyStageForm.ts @@ -64,3 +64,9 @@ export class DenyStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-deny-form": DenyStageForm; + } +} diff --git a/web/src/admin/stages/dummy/DummyStageForm.ts b/web/src/admin/stages/dummy/DummyStageForm.ts index 39d36b99d8..1a86546903 100644 --- a/web/src/admin/stages/dummy/DummyStageForm.ts +++ b/web/src/admin/stages/dummy/DummyStageForm.ts @@ -62,3 +62,9 @@ export class DummyStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-dummy-form": DummyStageForm; + } +} diff --git a/web/src/admin/stages/email/EmailStageForm.ts b/web/src/admin/stages/email/EmailStageForm.ts index c2595674d8..59a1924282 100644 --- a/web/src/admin/stages/email/EmailStageForm.ts +++ b/web/src/admin/stages/email/EmailStageForm.ts @@ -250,3 +250,9 @@ export class EmailStageForm extends BaseStageForm { ${this.renderConnectionSettings()}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-email-form": EmailStageForm; + } +} diff --git a/web/src/admin/stages/identification/IdentificationStageForm.ts b/web/src/admin/stages/identification/IdentificationStageForm.ts index 75db877160..fb097e6e82 100644 --- a/web/src/admin/stages/identification/IdentificationStageForm.ts +++ b/web/src/admin/stages/identification/IdentificationStageForm.ts @@ -310,3 +310,9 @@ export class IdentificationStageForm extends BaseStageForm `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-identification-form": IdentificationStageForm; + } +} diff --git a/web/src/admin/stages/invitation/InvitationForm.ts b/web/src/admin/stages/invitation/InvitationForm.ts index bd1c8ff9f3..0ac2a90168 100644 --- a/web/src/admin/stages/invitation/InvitationForm.ts +++ b/web/src/admin/stages/invitation/InvitationForm.ts @@ -108,3 +108,9 @@ export class InvitationForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-invitation-form": InvitationForm; + } +} diff --git a/web/src/admin/stages/invitation/InvitationListLink.ts b/web/src/admin/stages/invitation/InvitationListLink.ts index a08033c87a..f42cf350bd 100644 --- a/web/src/admin/stages/invitation/InvitationListLink.ts +++ b/web/src/admin/stages/invitation/InvitationListLink.ts @@ -107,3 +107,9 @@ export class InvitationListLink extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-invitation-list-link": InvitationListLink; + } +} diff --git a/web/src/admin/stages/invitation/InvitationListPage.ts b/web/src/admin/stages/invitation/InvitationListPage.ts index c673282a78..6a83972d85 100644 --- a/web/src/admin/stages/invitation/InvitationListPage.ts +++ b/web/src/admin/stages/invitation/InvitationListPage.ts @@ -197,3 +197,9 @@ export class InvitationListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-invitation-list": InvitationListPage; + } +} diff --git a/web/src/admin/stages/invitation/InvitationStageForm.ts b/web/src/admin/stages/invitation/InvitationStageForm.ts index 822d8a2daa..0b462adf6a 100644 --- a/web/src/admin/stages/invitation/InvitationStageForm.ts +++ b/web/src/admin/stages/invitation/InvitationStageForm.ts @@ -75,3 +75,9 @@ export class InvitationStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-invitation-form": InvitationStageForm; + } +} diff --git a/web/src/admin/stages/password/PasswordStageForm.ts b/web/src/admin/stages/password/PasswordStageForm.ts index 2732f8c749..339542c973 100644 --- a/web/src/admin/stages/password/PasswordStageForm.ts +++ b/web/src/admin/stages/password/PasswordStageForm.ts @@ -172,3 +172,9 @@ export class PasswordStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-password-form": PasswordStageForm; + } +} diff --git a/web/src/admin/stages/prompt/PromptForm.ts b/web/src/admin/stages/prompt/PromptForm.ts index 234d0a8bb0..ee6553c8d2 100644 --- a/web/src/admin/stages/prompt/PromptForm.ts +++ b/web/src/admin/stages/prompt/PromptForm.ts @@ -376,3 +376,9 @@ export class PromptForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-prompt-form": PromptForm; + } +} diff --git a/web/src/admin/stages/prompt/PromptListPage.ts b/web/src/admin/stages/prompt/PromptListPage.ts index 3b3a7869ee..21afca56eb 100644 --- a/web/src/admin/stages/prompt/PromptListPage.ts +++ b/web/src/admin/stages/prompt/PromptListPage.ts @@ -118,3 +118,9 @@ export class PromptListPage extends TablePage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-prompt-list": PromptListPage; + } +} diff --git a/web/src/admin/stages/prompt/PromptStageForm.ts b/web/src/admin/stages/prompt/PromptStageForm.ts index 43e35f4750..b07c6b7eb9 100644 --- a/web/src/admin/stages/prompt/PromptStageForm.ts +++ b/web/src/admin/stages/prompt/PromptStageForm.ts @@ -140,3 +140,9 @@ export class PromptStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-prompt-form": PromptStageForm; + } +} diff --git a/web/src/admin/stages/source/SourceStageForm.ts b/web/src/admin/stages/source/SourceStageForm.ts index bfb4d5e40a..9a99d11c0f 100644 --- a/web/src/admin/stages/source/SourceStageForm.ts +++ b/web/src/admin/stages/source/SourceStageForm.ts @@ -101,3 +101,9 @@ export class SourceStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-source-form": SourceStageForm; + } +} diff --git a/web/src/admin/stages/user_delete/UserDeleteStageForm.ts b/web/src/admin/stages/user_delete/UserDeleteStageForm.ts index 617cd182ad..ce6d940960 100644 --- a/web/src/admin/stages/user_delete/UserDeleteStageForm.ts +++ b/web/src/admin/stages/user_delete/UserDeleteStageForm.ts @@ -46,3 +46,9 @@ export class UserDeleteStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-user-delete-form": UserDeleteStageForm; + } +} diff --git a/web/src/admin/stages/user_login/UserLoginStageForm.ts b/web/src/admin/stages/user_login/UserLoginStageForm.ts index e7c94c247b..f0dcbc5956 100644 --- a/web/src/admin/stages/user_login/UserLoginStageForm.ts +++ b/web/src/admin/stages/user_login/UserLoginStageForm.ts @@ -187,3 +187,9 @@ export class UserLoginStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-user-login-form": UserLoginStageForm; + } +} diff --git a/web/src/admin/stages/user_logout/UserLogoutStageForm.ts b/web/src/admin/stages/user_logout/UserLogoutStageForm.ts index 40a99500fc..139f2fffb7 100644 --- a/web/src/admin/stages/user_logout/UserLogoutStageForm.ts +++ b/web/src/admin/stages/user_logout/UserLogoutStageForm.ts @@ -42,3 +42,9 @@ export class UserLogoutStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-user-logout-form": UserLogoutStageForm; + } +} diff --git a/web/src/admin/stages/user_write/UserWriteStageForm.ts b/web/src/admin/stages/user_write/UserWriteStageForm.ts index 4f2d285e93..4f6e8e41d6 100644 --- a/web/src/admin/stages/user_write/UserWriteStageForm.ts +++ b/web/src/admin/stages/user_write/UserWriteStageForm.ts @@ -196,3 +196,9 @@ export class UserWriteStageForm extends BaseStageForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-user-write-form": UserWriteStageForm; + } +} diff --git a/web/src/admin/system-tasks/SystemTaskListPage.ts b/web/src/admin/system-tasks/SystemTaskListPage.ts index 9947bc0d7c..3aa1b1d01b 100644 --- a/web/src/admin/system-tasks/SystemTaskListPage.ts +++ b/web/src/admin/system-tasks/SystemTaskListPage.ts @@ -159,3 +159,9 @@ export class SystemTaskListPage extends TablePage { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-system-task-list": SystemTaskListPage; + } +} diff --git a/web/src/admin/tokens/TokenForm.ts b/web/src/admin/tokens/TokenForm.ts index 7324b0e707..4e82c0cb96 100644 --- a/web/src/admin/tokens/TokenForm.ts +++ b/web/src/admin/tokens/TokenForm.ts @@ -151,3 +151,9 @@ export class TokenForm extends ModelForm { ${this.showExpiry ? this.renderExpiry() : html``}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-token-form": TokenForm; + } +} diff --git a/web/src/admin/tokens/TokenListPage.ts b/web/src/admin/tokens/TokenListPage.ts index 65a90bcfab..dd1bd61009 100644 --- a/web/src/admin/tokens/TokenListPage.ts +++ b/web/src/admin/tokens/TokenListPage.ts @@ -154,3 +154,9 @@ export class TokenListPage extends TablePage { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-token-list": TokenListPage; + } +} diff --git a/web/src/admin/users/GroupSelectModal.ts b/web/src/admin/users/GroupSelectModal.ts index 015c8658fa..d22ba237c1 100644 --- a/web/src/admin/users/GroupSelectModal.ts +++ b/web/src/admin/users/GroupSelectModal.ts @@ -103,3 +103,9 @@ export class GroupSelectModal extends TableModal { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-group-select-table": GroupSelectModal; + } +} diff --git a/web/src/admin/users/ServiceAccountForm.ts b/web/src/admin/users/ServiceAccountForm.ts index 914e5fd518..fbb7a50faa 100644 --- a/web/src/admin/users/ServiceAccountForm.ts +++ b/web/src/admin/users/ServiceAccountForm.ts @@ -144,3 +144,9 @@ export class ServiceAccountForm extends Form { return super.renderFormWrapper(); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-service-account-form": ServiceAccountForm; + } +} diff --git a/web/src/admin/users/UserActiveForm.ts b/web/src/admin/users/UserActiveForm.ts index 659d5897ea..7eadb5a52b 100644 --- a/web/src/admin/users/UserActiveForm.ts +++ b/web/src/admin/users/UserActiveForm.ts @@ -58,3 +58,9 @@ export class UserActiveForm extends DeleteForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-active-form": UserActiveForm; + } +} diff --git a/web/src/admin/users/UserApplicationTable.ts b/web/src/admin/users/UserApplicationTable.ts index c5af92624d..7260bffc35 100644 --- a/web/src/admin/users/UserApplicationTable.ts +++ b/web/src/admin/users/UserApplicationTable.ts @@ -77,3 +77,9 @@ export class UserApplicationTable extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-application-table": UserApplicationTable; + } +} diff --git a/web/src/admin/users/UserAssignedGlobalPermissionsTable.ts b/web/src/admin/users/UserAssignedGlobalPermissionsTable.ts index e1fdf58ec8..b0759337c0 100644 --- a/web/src/admin/users/UserAssignedGlobalPermissionsTable.ts +++ b/web/src/admin/users/UserAssignedGlobalPermissionsTable.ts @@ -91,3 +91,9 @@ export class UserAssignedGlobalPermissionsTable extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-assigned-global-permissions-table": UserAssignedGlobalPermissionsTable; + } +} diff --git a/web/src/admin/users/UserAssignedObjectPermissionsTable.ts b/web/src/admin/users/UserAssignedObjectPermissionsTable.ts index 2137fc09ab..9ad270f309 100644 --- a/web/src/admin/users/UserAssignedObjectPermissionsTable.ts +++ b/web/src/admin/users/UserAssignedObjectPermissionsTable.ts @@ -90,3 +90,9 @@ export class UserAssignedObjectPermissionsTable extends Table { }; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-charts-user": UserChart; + } +} diff --git a/web/src/admin/users/UserDevicesTable.ts b/web/src/admin/users/UserDevicesTable.ts index 9f02e7fcd6..0debd07ca1 100644 --- a/web/src/admin/users/UserDevicesTable.ts +++ b/web/src/admin/users/UserDevicesTable.ts @@ -101,3 +101,9 @@ export class UserDeviceTable extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-device-table": UserDeviceTable; + } +} diff --git a/web/src/admin/users/UserForm.ts b/web/src/admin/users/UserForm.ts index f8b0b00e39..210f708e77 100644 --- a/web/src/admin/users/UserForm.ts +++ b/web/src/admin/users/UserForm.ts @@ -195,3 +195,9 @@ export class UserForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-form": UserForm; + } +} diff --git a/web/src/admin/users/UserListPage.ts b/web/src/admin/users/UserListPage.ts index 4dfa67f4b8..5ffa886584 100644 --- a/web/src/admin/users/UserListPage.ts +++ b/web/src/admin/users/UserListPage.ts @@ -423,3 +423,9 @@ export class UserListPage extends WithBrandConfig(WithCapabilitiesConfig(TablePa `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-list": UserListPage; + } +} diff --git a/web/src/admin/users/UserPasswordForm.ts b/web/src/admin/users/UserPasswordForm.ts index f17cdba6f6..ea8d4cc6ea 100644 --- a/web/src/admin/users/UserPasswordForm.ts +++ b/web/src/admin/users/UserPasswordForm.ts @@ -35,3 +35,9 @@ export class UserPasswordForm extends Form { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-password-form": UserPasswordForm; + } +} diff --git a/web/src/admin/users/UserPermissionForm.ts b/web/src/admin/users/UserPermissionForm.ts index 1f89045e0e..a9dab448dc 100644 --- a/web/src/admin/users/UserPermissionForm.ts +++ b/web/src/admin/users/UserPermissionForm.ts @@ -86,3 +86,9 @@ export class UserPermissionForm extends ModelForm `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-permission-form": UserPermissionForm; + } +} diff --git a/web/src/admin/users/UserResetEmailForm.ts b/web/src/admin/users/UserResetEmailForm.ts index a11f17d440..a684fdbd05 100644 --- a/web/src/admin/users/UserResetEmailForm.ts +++ b/web/src/admin/users/UserResetEmailForm.ts @@ -62,3 +62,9 @@ export class UserResetEmailForm extends Form`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-reset-email-form": UserResetEmailForm; + } +} diff --git a/web/src/admin/users/UserViewPage.ts b/web/src/admin/users/UserViewPage.ts index f5188d12be..8cfbf8be82 100644 --- a/web/src/admin/users/UserViewPage.ts +++ b/web/src/admin/users/UserViewPage.ts @@ -451,3 +451,9 @@ export class UserViewPage extends WithCapabilitiesConfig(AKElement) { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-view": UserViewPage; + } +} diff --git a/web/src/components/ak-app-icon.ts b/web/src/components/ak-app-icon.ts index 7237ffc914..cc2feeceb6 100644 --- a/web/src/components/ak-app-icon.ts +++ b/web/src/components/ak-app-icon.ts @@ -83,3 +83,9 @@ export class AppIcon extends AKElement { } export default AppIcon; + +declare global { + interface HTMLElementTagNameMap { + "ak-app-icon": AppIcon; + } +} diff --git a/web/src/components/ak-event-info.ts b/web/src/components/ak-event-info.ts index af1bcc3045..41faf4f577 100644 --- a/web/src/components/ak-event-info.ts +++ b/web/src/components/ak-event-info.ts @@ -562,3 +562,9 @@ ${JSON.stringify(value.new_value, null, 4)}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-event-info": EventInfo; + } +} diff --git a/web/src/components/ak-file-input.ts b/web/src/components/ak-file-input.ts index 1fe2117a8c..2a79f03f74 100644 --- a/web/src/components/ak-file-input.ts +++ b/web/src/components/ak-file-input.ts @@ -64,3 +64,9 @@ export class AkFileInput extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-file-input": AkFileInput; + } +} diff --git a/web/src/components/ak-hint/ak-hint-actions.ts b/web/src/components/ak-hint/ak-hint-actions.ts index eaf33b2f8e..80ce8c9c0a 100644 --- a/web/src/components/ak-hint/ak-hint-actions.ts +++ b/web/src/components/ak-hint/ak-hint-actions.ts @@ -30,3 +30,9 @@ export class AkHintActions extends AKElement { } export default AkHintActions; + +declare global { + interface HTMLElementTagNameMap { + "ak-hint-actions": AkHintActions; + } +} diff --git a/web/src/components/ak-hint/ak-hint-body.ts b/web/src/components/ak-hint/ak-hint-body.ts index 4261c0a302..fec0775c50 100644 --- a/web/src/components/ak-hint/ak-hint-body.ts +++ b/web/src/components/ak-hint/ak-hint-body.ts @@ -22,3 +22,9 @@ export class AkHintBody extends AKElement { } export default AkHintBody; + +declare global { + interface HTMLElementTagNameMap { + "ak-hint-body": AkHintBody; + } +} diff --git a/web/src/components/ak-hint/ak-hint-footer.ts b/web/src/components/ak-hint/ak-hint-footer.ts index 14461a814e..d2c2278eb2 100644 --- a/web/src/components/ak-hint/ak-hint-footer.ts +++ b/web/src/components/ak-hint/ak-hint-footer.ts @@ -24,3 +24,9 @@ export class AkHintFooter extends AKElement { } export default AkHintFooter; + +declare global { + interface HTMLElementTagNameMap { + "ak-hint-footer": AkHintFooter; + } +} diff --git a/web/src/components/ak-hint/ak-hint-title.ts b/web/src/components/ak-hint/ak-hint-title.ts index abcb9d596c..dc2556621f 100644 --- a/web/src/components/ak-hint/ak-hint-title.ts +++ b/web/src/components/ak-hint/ak-hint-title.ts @@ -21,3 +21,9 @@ export class AkHintTitle extends AKElement { } export default AkHintTitle; + +declare global { + interface HTMLElementTagNameMap { + "ak-hint-title": AkHintTitle; + } +} diff --git a/web/src/components/ak-hint/ak-hint.ts b/web/src/components/ak-hint/ak-hint.ts index b818fae20d..0ada7f94a9 100644 --- a/web/src/components/ak-hint/ak-hint.ts +++ b/web/src/components/ak-hint/ak-hint.ts @@ -70,3 +70,9 @@ export class AkHint extends AKElement { } export default AkHint; + +declare global { + interface HTMLElementTagNameMap { + "ak-hint": AkHint; + } +} diff --git a/web/src/components/ak-multi-select.ts b/web/src/components/ak-multi-select.ts index c7b9601a33..dbf596f985 100644 --- a/web/src/components/ak-multi-select.ts +++ b/web/src/components/ak-multi-select.ts @@ -148,3 +148,9 @@ export class AkMultiSelect extends AKElement { } export default AkMultiSelect; + +declare global { + interface HTMLElementTagNameMap { + "ak-multi-select": AkMultiSelect; + } +} diff --git a/web/src/components/ak-number-input.ts b/web/src/components/ak-number-input.ts index 65fc10b0ec..917165bef1 100644 --- a/web/src/components/ak-number-input.ts +++ b/web/src/components/ak-number-input.ts @@ -20,3 +20,9 @@ export class AkNumberInput extends HorizontalLightComponent { } export default AkNumberInput; + +declare global { + interface HTMLElementTagNameMap { + "ak-number-input": AkNumberInput; + } +} diff --git a/web/src/components/ak-radio-input.ts b/web/src/components/ak-radio-input.ts index b4899cfc5d..c27db8e5e2 100644 --- a/web/src/components/ak-radio-input.ts +++ b/web/src/components/ak-radio-input.ts @@ -37,4 +37,10 @@ export class AkRadioInput extends HorizontalLightComponent { } } +declare global { + interface HTMLElementTagNameMap { + "ak-radio-input": AkRadioInput; + } +} + export default AkRadioInput; diff --git a/web/src/components/ak-slug-input.ts b/web/src/components/ak-slug-input.ts index 161a00c871..5ad7e21a0c 100644 --- a/web/src/components/ak-slug-input.ts +++ b/web/src/components/ak-slug-input.ts @@ -126,3 +126,9 @@ export class AkSlugInput extends HorizontalLightComponent { } export default AkSlugInput; + +declare global { + interface HTMLElementTagNameMap { + "ak-slug-input": AkSlugInput; + } +} diff --git a/web/src/components/ak-status-label.ts b/web/src/components/ak-status-label.ts index f2ff005bf2..4d71e2891a 100644 --- a/web/src/components/ak-status-label.ts +++ b/web/src/components/ak-status-label.ts @@ -114,3 +114,9 @@ export class AkStatusLabel extends AKElement { } export default AkStatusLabel; + +declare global { + interface HTMLElementTagNameMap { + "ak-status-label": AkStatusLabel; + } +} diff --git a/web/src/components/ak-switch-input.ts b/web/src/components/ak-switch-input.ts index 33eb0434cc..229a41996a 100644 --- a/web/src/components/ak-switch-input.ts +++ b/web/src/components/ak-switch-input.ts @@ -53,3 +53,9 @@ export class AkSwitchInput extends AKElement { } export default AkSwitchInput; + +declare global { + interface HTMLElementTagNameMap { + "ak-switch-input": AkSwitchInput; + } +} diff --git a/web/src/components/ak-text-input.ts b/web/src/components/ak-text-input.ts index 545ff90180..72dbc3af5b 100644 --- a/web/src/components/ak-text-input.ts +++ b/web/src/components/ak-text-input.ts @@ -20,3 +20,9 @@ export class AkTextInput extends HorizontalLightComponent { } export default AkTextInput; + +declare global { + interface HTMLElementTagNameMap { + "ak-text-input": AkTextInput; + } +} diff --git a/web/src/components/ak-textarea-input.ts b/web/src/components/ak-textarea-input.ts index 9ca2efc4f3..cc570e710a 100644 --- a/web/src/components/ak-textarea-input.ts +++ b/web/src/components/ak-textarea-input.ts @@ -21,3 +21,9 @@ export class AkTextareaInput extends HorizontalLightComponent { } export default AkTextareaInput; + +declare global { + interface HTMLElementTagNameMap { + "ak-textarea-input": AkTextareaInput; + } +} diff --git a/web/src/components/ak-toggle-group.ts b/web/src/components/ak-toggle-group.ts index 2e5b4f90ec..de13e2a5d6 100644 --- a/web/src/components/ak-toggle-group.ts +++ b/web/src/components/ak-toggle-group.ts @@ -90,3 +90,9 @@ export class AkToggleGroup extends CustomEmitterElement(AKElement) { } export default AkToggleGroup; + +declare global { + interface HTMLElementTagNameMap { + "ak-toggle-group": AkToggleGroup; + } +} diff --git a/web/src/components/ak-wizard-main/ak-wizard-frame.ts b/web/src/components/ak-wizard-main/ak-wizard-frame.ts index 3ec746fed5..e9e95ddd6f 100644 --- a/web/src/components/ak-wizard-main/ak-wizard-frame.ts +++ b/web/src/components/ak-wizard-main/ak-wizard-frame.ts @@ -207,3 +207,9 @@ export class AkWizardFrame extends CustomEmitterElement(ModalButton) { } export default AkWizardFrame; + +declare global { + interface HTMLElementTagNameMap { + "ak-wizard-frame": AkWizardFrame; + } +} diff --git a/web/src/components/ak-wizard-main/stories/ak-demo-wizard.ts b/web/src/components/ak-wizard-main/stories/ak-demo-wizard.ts index 30322d6665..da4340eab3 100644 --- a/web/src/components/ak-wizard-main/stories/ak-demo-wizard.ts +++ b/web/src/components/ak-wizard-main/stories/ak-demo-wizard.ts @@ -45,3 +45,9 @@ export class ApplicationWizard extends AkWizard { this.frame.value!.open = false; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-demo-wizard": ApplicationWizard; + } +} diff --git a/web/src/components/events/ObjectChangelog.ts b/web/src/components/events/ObjectChangelog.ts index 1e2fb80812..0cd7ff2b71 100644 --- a/web/src/components/events/ObjectChangelog.ts +++ b/web/src/components/events/ObjectChangelog.ts @@ -102,3 +102,9 @@ export class ObjectChangelog extends Table { ); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-object-changelog": ObjectChangelog; + } +} diff --git a/web/src/components/events/UserEvents.ts b/web/src/components/events/UserEvents.ts index 55fdb867d7..86d6ebcbe3 100644 --- a/web/src/components/events/UserEvents.ts +++ b/web/src/components/events/UserEvents.ts @@ -74,3 +74,9 @@ export class UserEvents extends Table { ); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-events-user": UserEvents; + } +} diff --git a/web/src/elements/Alert.ts b/web/src/elements/Alert.ts index 139c504203..12b9e0fc84 100644 --- a/web/src/elements/Alert.ts +++ b/web/src/elements/Alert.ts @@ -42,3 +42,9 @@ export class Alert extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-alert": Alert; + } +} diff --git a/web/src/elements/CodeMirror.ts b/web/src/elements/CodeMirror.ts index 890275dc85..c1f38f9ba3 100644 --- a/web/src/elements/CodeMirror.ts +++ b/web/src/elements/CodeMirror.ts @@ -198,3 +198,9 @@ export class CodeMirrorTextarea extends AKElement { this.shadowRoot?.appendChild(this.editor.dom); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-codemirror": CodeMirrorTextarea; + } +} diff --git a/web/src/elements/Diagram.ts b/web/src/elements/Diagram.ts index 872f04f47e..bc21a7bee9 100644 --- a/web/src/elements/Diagram.ts +++ b/web/src/elements/Diagram.ts @@ -90,3 +90,9 @@ export class Diagram extends AKElement { )}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-diagram": Diagram; + } +} diff --git a/web/src/elements/Divider.ts b/web/src/elements/Divider.ts index 3f90bb1c74..a6a0ae5887 100644 --- a/web/src/elements/Divider.ts +++ b/web/src/elements/Divider.ts @@ -39,3 +39,9 @@ export class Divider extends AKElement { return html`
`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-divider": Divider; + } +} diff --git a/web/src/elements/EmptyState.ts b/web/src/elements/EmptyState.ts index 8842badea2..2760c99eb2 100644 --- a/web/src/elements/EmptyState.ts +++ b/web/src/elements/EmptyState.ts @@ -60,3 +60,9 @@ export class EmptyState extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-empty-state": EmptyState; + } +} diff --git a/web/src/elements/Expand.ts b/web/src/elements/Expand.ts index 1cc1629996..f081b96f42 100644 --- a/web/src/elements/Expand.ts +++ b/web/src/elements/Expand.ts @@ -57,3 +57,9 @@ export class Expand extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-expand": Expand; + } +} diff --git a/web/src/elements/Label.ts b/web/src/elements/Label.ts index 51438c7401..c90e420320 100644 --- a/web/src/elements/Label.ts +++ b/web/src/elements/Label.ts @@ -57,3 +57,9 @@ export class Label extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-label": Label; + } +} diff --git a/web/src/elements/LoadingOverlay.ts b/web/src/elements/LoadingOverlay.ts index 8420156df6..482b919c61 100644 --- a/web/src/elements/LoadingOverlay.ts +++ b/web/src/elements/LoadingOverlay.ts @@ -38,3 +38,9 @@ export class LoadingOverlay extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-loading-overlay": LoadingOverlay; + } +} diff --git a/web/src/elements/Markdown.ts b/web/src/elements/Markdown.ts index 896acfa861..ffe4ea4984 100644 --- a/web/src/elements/Markdown.ts +++ b/web/src/elements/Markdown.ts @@ -104,3 +104,9 @@ export class Markdown extends AKElement { ${unsafeHTML(this.docHtml)}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-markdown": Markdown; + } +} diff --git a/web/src/elements/PageHeader.ts b/web/src/elements/PageHeader.ts index 34ddd511b7..8fa2c74be2 100644 --- a/web/src/elements/PageHeader.ts +++ b/web/src/elements/PageHeader.ts @@ -197,3 +197,9 @@ export class PageHeader extends WithBrandConfig(AKElement) { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-page-header": PageHeader; + } +} diff --git a/web/src/elements/Spinner.ts b/web/src/elements/Spinner.ts index afdbbd527a..2e49fa7914 100644 --- a/web/src/elements/Spinner.ts +++ b/web/src/elements/Spinner.ts @@ -28,3 +28,9 @@ export class Spinner extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-spinner": Spinner; + } +} diff --git a/web/src/elements/SyncStatusCard.ts b/web/src/elements/SyncStatusCard.ts index 9009322027..0c633cd5f5 100644 --- a/web/src/elements/SyncStatusCard.ts +++ b/web/src/elements/SyncStatusCard.ts @@ -117,3 +117,9 @@ export class SyncStatusCard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-sync-status-card": SyncStatusCard; + } +} diff --git a/web/src/elements/Tabs.ts b/web/src/elements/Tabs.ts index 74440897f7..cf3d4724da 100644 --- a/web/src/elements/Tabs.ts +++ b/web/src/elements/Tabs.ts @@ -115,3 +115,9 @@ export class Tabs extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-tabs": Tabs; + } +} diff --git a/web/src/elements/TreeView.ts b/web/src/elements/TreeView.ts index 408a1bd131..fc31040d1f 100644 --- a/web/src/elements/TreeView.ts +++ b/web/src/elements/TreeView.ts @@ -205,3 +205,10 @@ export class TreeView extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-treeview": TreeView; + "ak-treeview-node": TreeViewNode; + } +} diff --git a/web/src/elements/ak-checkbox-group/ak-checkbox-group.ts b/web/src/elements/ak-checkbox-group/ak-checkbox-group.ts index addb13395a..8cebcfc371 100644 --- a/web/src/elements/ak-checkbox-group/ak-checkbox-group.ts +++ b/web/src/elements/ak-checkbox-group/ak-checkbox-group.ts @@ -225,3 +225,9 @@ export class CheckboxGroup extends AkElementWithCustomEvents { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-checkbox-group": CheckboxGroup; + } +} diff --git a/web/src/elements/ak-dual-select/ak-dual-select-provider.ts b/web/src/elements/ak-dual-select/ak-dual-select-provider.ts index 15f274460a..185d30c12f 100644 --- a/web/src/elements/ak-dual-select/ak-dual-select-provider.ts +++ b/web/src/elements/ak-dual-select/ak-dual-select-provider.ts @@ -148,3 +148,9 @@ export class AkDualSelectProvider extends CustomListenerElement(AKElement) { >`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-dual-select-provider": AkDualSelectProvider; + } +} diff --git a/web/src/elements/ak-dual-select/ak-dual-select.ts b/web/src/elements/ak-dual-select/ak-dual-select.ts index 41799d56de..3316129622 100644 --- a/web/src/elements/ak-dual-select/ak-dual-select.ts +++ b/web/src/elements/ak-dual-select/ak-dual-select.ts @@ -351,3 +351,9 @@ export class AkDualSelect extends CustomEmitterElement(CustomListenerElement(AKE `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-dual-select": AkDualSelect; + } +} diff --git a/web/src/elements/ak-dual-select/components/ak-dual-select-available-pane.ts b/web/src/elements/ak-dual-select/components/ak-dual-select-available-pane.ts index b8f58aab9b..1d4d235c6d 100644 --- a/web/src/elements/ak-dual-select/components/ak-dual-select-available-pane.ts +++ b/web/src/elements/ak-dual-select/components/ak-dual-select-available-pane.ts @@ -157,3 +157,9 @@ export class AkDualSelectAvailablePane extends CustomEmitterElement(AKElement) { } export default AkDualSelectAvailablePane; + +declare global { + interface HTMLElementTagNameMap { + "ak-dual-select-available-pane": AkDualSelectAvailablePane; + } +} diff --git a/web/src/elements/ak-dual-select/components/ak-dual-select-controls.ts b/web/src/elements/ak-dual-select/components/ak-dual-select-controls.ts index 32d3761760..b00dce7df2 100644 --- a/web/src/elements/ak-dual-select/components/ak-dual-select-controls.ts +++ b/web/src/elements/ak-dual-select/components/ak-dual-select-controls.ts @@ -163,3 +163,9 @@ export class AkDualSelectControls extends CustomEmitterElement(AKElement) { } export default AkDualSelectControls; + +declare global { + interface HTMLElementTagNameMap { + "ak-dual-select-controls": AkDualSelectControls; + } +} diff --git a/web/src/elements/ak-dual-select/components/ak-dual-select-selected-pane.ts b/web/src/elements/ak-dual-select/components/ak-dual-select-selected-pane.ts index 981bef2fd2..265cd6bffc 100644 --- a/web/src/elements/ak-dual-select/components/ak-dual-select-selected-pane.ts +++ b/web/src/elements/ak-dual-select/components/ak-dual-select-selected-pane.ts @@ -137,3 +137,9 @@ export class AkDualSelectSelectedPane extends CustomEmitterElement(AKElement) { } export default AkDualSelectSelectedPane; + +declare global { + interface HTMLElementTagNameMap { + "ak-dual-select-selected-pane": AkDualSelectSelectedPane; + } +} diff --git a/web/src/elements/ak-dual-select/components/ak-pagination.ts b/web/src/elements/ak-dual-select/components/ak-pagination.ts index 21065549ee..200072c6df 100644 --- a/web/src/elements/ak-dual-select/components/ak-pagination.ts +++ b/web/src/elements/ak-dual-select/components/ak-pagination.ts @@ -92,3 +92,9 @@ export class AkPagination extends CustomEmitterElement(AKElement) { } export default AkPagination; + +declare global { + interface HTMLElementTagNameMap { + "ak-pagination": AkPagination; + } +} diff --git a/web/src/elements/ak-dual-select/components/ak-search-bar.ts b/web/src/elements/ak-dual-select/components/ak-search-bar.ts index dafc149941..e20d8bffeb 100644 --- a/web/src/elements/ak-dual-select/components/ak-search-bar.ts +++ b/web/src/elements/ak-dual-select/components/ak-search-bar.ts @@ -67,3 +67,9 @@ export class AkSearchbar extends CustomEmitterElement(AKElement) { } export default AkSearchbar; + +declare global { + interface HTMLElementTagNameMap { + "ak-search-bar": AkSearchbar; + } +} diff --git a/web/src/elements/ak-dual-select/stories/ak-dual-select-master.stories.ts b/web/src/elements/ak-dual-select/stories/ak-dual-select-master.stories.ts index 2c66139805..620bd4f202 100644 --- a/web/src/elements/ak-dual-select/stories/ak-dual-select-master.stories.ts +++ b/web/src/elements/ak-dual-select/stories/ak-dual-select-master.stories.ts @@ -154,3 +154,9 @@ type Story = StoryObj; export const Default: Story = { render: () => container(html` `), }; + +declare global { + interface HTMLElementTagNameMap { + "ak-sb-fruity": AkSbFruity; + } +} diff --git a/web/src/elements/ak-dual-select/stories/sb-host-provider.ts b/web/src/elements/ak-dual-select/stories/sb-host-provider.ts index 985d9083dc..df945da20f 100644 --- a/web/src/elements/ak-dual-select/stories/sb-host-provider.ts +++ b/web/src/elements/ak-dual-select/stories/sb-host-provider.ts @@ -20,3 +20,9 @@ export class SbHostProvider extends LitElement { return html``; } } + +declare global { + interface HTMLElementTagNameMap { + "sb-dual-select-host-provider": SbHostProvider; + } +} diff --git a/web/src/elements/ak-locale-context/ak-locale-context.ts b/web/src/elements/ak-locale-context/ak-locale-context.ts index c01c9c29fc..0babe24f4d 100644 --- a/web/src/elements/ak-locale-context/ak-locale-context.ts +++ b/web/src/elements/ak-locale-context/ak-locale-context.ts @@ -97,3 +97,9 @@ export class LocaleContext extends LocaleContextBase { } export default LocaleContext; + +declare global { + interface HTMLElementTagNameMap { + "ak-locale-context": LocaleContext; + } +} diff --git a/web/src/elements/buttons/ActionButton/ak-action-button.ts b/web/src/elements/buttons/ActionButton/ak-action-button.ts index e8681cf585..d38aac0efe 100644 --- a/web/src/elements/buttons/ActionButton/ak-action-button.ts +++ b/web/src/elements/buttons/ActionButton/ak-action-button.ts @@ -53,3 +53,9 @@ export class ActionButton extends BaseTaskButton { } export default ActionButton; + +declare global { + interface HTMLElementTagNameMap { + "ak-action-button": ActionButton; + } +} diff --git a/web/src/elements/buttons/Dropdown.ts b/web/src/elements/buttons/Dropdown.ts index bcfc29c48c..535b8bdd8a 100644 --- a/web/src/elements/buttons/Dropdown.ts +++ b/web/src/elements/buttons/Dropdown.ts @@ -34,3 +34,9 @@ export class DropdownButton extends AKElement { return html``; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-dropdown": DropdownButton; + } +} diff --git a/web/src/elements/buttons/ModalButton.ts b/web/src/elements/buttons/ModalButton.ts index 1fb4a059af..8af38280d5 100644 --- a/web/src/elements/buttons/ModalButton.ts +++ b/web/src/elements/buttons/ModalButton.ts @@ -130,3 +130,9 @@ export class ModalButton extends AKElement { ${this.open ? this.renderModal() : nothing}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-modal-button": ModalButton; + } +} diff --git a/web/src/elements/buttons/SpinnerButton/ak-spinner-button.ts b/web/src/elements/buttons/SpinnerButton/ak-spinner-button.ts index e3b07e2fb0..623198ddd3 100644 --- a/web/src/elements/buttons/SpinnerButton/ak-spinner-button.ts +++ b/web/src/elements/buttons/SpinnerButton/ak-spinner-button.ts @@ -30,3 +30,9 @@ export class SpinnerButton extends BaseTaskButton { } export default SpinnerButton; + +declare global { + interface HTMLElementTagNameMap { + "ak-spinner-button": SpinnerButton; + } +} diff --git a/web/src/elements/buttons/TokenCopyButton/ak-token-copy-button.ts b/web/src/elements/buttons/TokenCopyButton/ak-token-copy-button.ts index 0b09716146..af76d3e793 100644 --- a/web/src/elements/buttons/TokenCopyButton/ak-token-copy-button.ts +++ b/web/src/elements/buttons/TokenCopyButton/ak-token-copy-button.ts @@ -90,3 +90,9 @@ export class TokenCopyButton extends BaseTaskButton { } export default TokenCopyButton; + +declare global { + interface HTMLElementTagNameMap { + "ak-token-copy-button": TokenCopyButton; + } +} diff --git a/web/src/elements/cards/AggregateCard.ts b/web/src/elements/cards/AggregateCard.ts index 1c84dddb24..2f47ebddef 100644 --- a/web/src/elements/cards/AggregateCard.ts +++ b/web/src/elements/cards/AggregateCard.ts @@ -88,3 +88,9 @@ export class AggregateCard extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-aggregate-card": AggregateCard; + } +} diff --git a/web/src/elements/cards/AggregatePromiseCard.ts b/web/src/elements/cards/AggregatePromiseCard.ts index f3ea049210..d451e33b7b 100644 --- a/web/src/elements/cards/AggregatePromiseCard.ts +++ b/web/src/elements/cards/AggregatePromiseCard.ts @@ -25,3 +25,9 @@ export class AggregatePromiseCard extends AggregateCard {

`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-aggregate-card-promise": AggregatePromiseCard; + } +} diff --git a/web/src/elements/chips/Chip.ts b/web/src/elements/chips/Chip.ts index 20bf56e674..23e5128922 100644 --- a/web/src/elements/chips/Chip.ts +++ b/web/src/elements/chips/Chip.ts @@ -49,3 +49,9 @@ export class Chip extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-chip": Chip; + } +} diff --git a/web/src/elements/chips/ChipGroup.ts b/web/src/elements/chips/ChipGroup.ts index 24d8c38768..232c62a853 100644 --- a/web/src/elements/chips/ChipGroup.ts +++ b/web/src/elements/chips/ChipGroup.ts @@ -53,3 +53,9 @@ export class ChipGroup extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-chip-group": ChipGroup; + } +} diff --git a/web/src/elements/enterprise/EnterpriseStatusBanner.ts b/web/src/elements/enterprise/EnterpriseStatusBanner.ts index b3360fb59a..a83e30e129 100644 --- a/web/src/elements/enterprise/EnterpriseStatusBanner.ts +++ b/web/src/elements/enterprise/EnterpriseStatusBanner.ts @@ -41,3 +41,9 @@ export class EnterpriseStatusBanner extends WithLicenseSummary(AKElement) { return html``; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-enterprise-status": EnterpriseStatusBanner; + } +} diff --git a/web/src/elements/events/LogViewer.ts b/web/src/elements/events/LogViewer.ts index c49eb559c8..fc0b4166be 100644 --- a/web/src/elements/events/LogViewer.ts +++ b/web/src/elements/events/LogViewer.ts @@ -112,3 +112,9 @@ export class LogViewer extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-log-viewer": LogViewer; + } +} diff --git a/web/src/elements/forms/ConfirmationForm.ts b/web/src/elements/forms/ConfirmationForm.ts index a977cdbe31..9e9f263a2f 100644 --- a/web/src/elements/forms/ConfirmationForm.ts +++ b/web/src/elements/forms/ConfirmationForm.ts @@ -86,3 +86,9 @@ export class ConfirmationForm extends ModalButton { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-forms-confirm": ConfirmationForm; + } +} diff --git a/web/src/elements/forms/DeleteBulkForm.ts b/web/src/elements/forms/DeleteBulkForm.ts index c76f2e9e24..92bd860ade 100644 --- a/web/src/elements/forms/DeleteBulkForm.ts +++ b/web/src/elements/forms/DeleteBulkForm.ts @@ -244,3 +244,10 @@ export class DeleteBulkForm extends ModalButton { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-delete-objects-table": DeleteObjectsTable; + "ak-forms-delete-bulk": DeleteBulkForm; + } +} diff --git a/web/src/elements/forms/DeleteForm.ts b/web/src/elements/forms/DeleteForm.ts index 2c4a3a4f29..dad31a8a1a 100644 --- a/web/src/elements/forms/DeleteForm.ts +++ b/web/src/elements/forms/DeleteForm.ts @@ -146,3 +146,9 @@ export class DeleteForm extends ModalButton { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-forms-delete": DeleteForm; + } +} diff --git a/web/src/elements/forms/Form.ts b/web/src/elements/forms/Form.ts index 7f08433ea9..da7f6c10f8 100644 --- a/web/src/elements/forms/Form.ts +++ b/web/src/elements/forms/Form.ts @@ -8,7 +8,7 @@ import { PreventFormSubmit } from "@goauthentik/elements/forms/helpers"; import { showMessage } from "@goauthentik/elements/messages/MessageContainer"; import { CSSResult, TemplateResult, css, html } from "lit"; -import { customElement, property, state } from "lit/decorators.js"; +import { property, state } from "lit/decorators.js"; import PFAlert from "@patternfly/patternfly/components/Alert/alert.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; @@ -169,7 +169,6 @@ export function serializeForm( * */ -@customElement("ak-form") export abstract class Form extends AKElement { abstract send(data: T): Promise; diff --git a/web/src/elements/forms/FormElement.ts b/web/src/elements/forms/FormElement.ts index b28c3bd7db..020e573f05 100644 --- a/web/src/elements/forms/FormElement.ts +++ b/web/src/elements/forms/FormElement.ts @@ -65,3 +65,9 @@ export class FormElement extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-form-element": FormElement; + } +} diff --git a/web/src/elements/forms/FormGroup.ts b/web/src/elements/forms/FormGroup.ts index 0c867d7195..1d84a24159 100644 --- a/web/src/elements/forms/FormGroup.ts +++ b/web/src/elements/forms/FormGroup.ts @@ -77,3 +77,9 @@ export class FormGroup extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-form-group": FormGroup; + } +} diff --git a/web/src/elements/forms/HorizontalFormElement.ts b/web/src/elements/forms/HorizontalFormElement.ts index c5973d9f19..5e4b9bcc6e 100644 --- a/web/src/elements/forms/HorizontalFormElement.ts +++ b/web/src/elements/forms/HorizontalFormElement.ts @@ -192,3 +192,9 @@ export class HorizontalFormElement extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-form-element-horizontal": HorizontalFormElement; + } +} diff --git a/web/src/elements/forms/ModalForm.ts b/web/src/elements/forms/ModalForm.ts index e107729abd..c6f2727e89 100644 --- a/web/src/elements/forms/ModalForm.ts +++ b/web/src/elements/forms/ModalForm.ts @@ -102,3 +102,9 @@ export class ModalForm extends ModalButton { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-forms-modal": ModalForm; + } +} diff --git a/web/src/elements/forms/ProxyForm.ts b/web/src/elements/forms/ProxyForm.ts index 3c2b95d4c7..c0b33a74cb 100644 --- a/web/src/elements/forms/ProxyForm.ts +++ b/web/src/elements/forms/ProxyForm.ts @@ -50,3 +50,9 @@ export abstract class ProxyForm extends Form { return html`${this.innerElement}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-proxy-form": ProxyForm; + } +} diff --git a/web/src/elements/forms/Radio.ts b/web/src/elements/forms/Radio.ts index 7730b87f77..b63c06cb1b 100644 --- a/web/src/elements/forms/Radio.ts +++ b/web/src/elements/forms/Radio.ts @@ -113,4 +113,10 @@ export class Radio extends CustomEmitterElement(AKElement) { } } +declare global { + interface HTMLElementTagNameMap { + "ak-radio": Radio; + } +} + export default Radio; diff --git a/web/src/elements/forms/SearchSelect/ak-search-select.ts b/web/src/elements/forms/SearchSelect/ak-search-select.ts index 5077f713c9..cf3433112f 100644 --- a/web/src/elements/forms/SearchSelect/ak-search-select.ts +++ b/web/src/elements/forms/SearchSelect/ak-search-select.ts @@ -401,3 +401,9 @@ export class SearchSelect extends CustomEmitterElement(AKElement) { } export default SearchSelect; + +declare global { + interface HTMLElementTagNameMap { + "ak-search-select": SearchSelect; + } +} diff --git a/web/src/elements/messages/Message.ts b/web/src/elements/messages/Message.ts index 8265749ddc..ea17b7193e 100644 --- a/web/src/elements/messages/Message.ts +++ b/web/src/elements/messages/Message.ts @@ -79,3 +79,9 @@ export class Message extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-message": Message; + } +} diff --git a/web/src/elements/messages/MessageContainer.ts b/web/src/elements/messages/MessageContainer.ts index ef666e040a..3a29bb17ca 100644 --- a/web/src/elements/messages/MessageContainer.ts +++ b/web/src/elements/messages/MessageContainer.ts @@ -79,3 +79,9 @@ export class MessageContainer extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-message-container": MessageContainer; + } +} diff --git a/web/src/elements/notifications/APIDrawer.ts b/web/src/elements/notifications/APIDrawer.ts index 20b56f17df..ce6ed63ae9 100644 --- a/web/src/elements/notifications/APIDrawer.ts +++ b/web/src/elements/notifications/APIDrawer.ts @@ -117,3 +117,9 @@ export class APIDrawer extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-api-drawer": APIDrawer; + } +} diff --git a/web/src/elements/notifications/NotificationDrawer.ts b/web/src/elements/notifications/NotificationDrawer.ts index 77c5b549f2..beaae682a6 100644 --- a/web/src/elements/notifications/NotificationDrawer.ts +++ b/web/src/elements/notifications/NotificationDrawer.ts @@ -215,3 +215,9 @@ export class NotificationDrawer extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-notification-drawer": NotificationDrawer; + } +} diff --git a/web/src/elements/oauth/UserAccessTokenList.ts b/web/src/elements/oauth/UserAccessTokenList.ts index a0c007234e..18a91a73f8 100644 --- a/web/src/elements/oauth/UserAccessTokenList.ts +++ b/web/src/elements/oauth/UserAccessTokenList.ts @@ -106,3 +106,9 @@ export class UserOAuthAccessTokenList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-oauth-access-token-list": UserOAuthAccessTokenList; + } +} diff --git a/web/src/elements/oauth/UserRefreshTokenList.ts b/web/src/elements/oauth/UserRefreshTokenList.ts index 63f325c414..52a936068d 100644 --- a/web/src/elements/oauth/UserRefreshTokenList.ts +++ b/web/src/elements/oauth/UserRefreshTokenList.ts @@ -107,3 +107,9 @@ export class UserOAuthRefreshTokenList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-oauth-refresh-token-list": UserOAuthRefreshTokenList; + } +} diff --git a/web/src/elements/rbac/ObjectPermissionModal.ts b/web/src/elements/rbac/ObjectPermissionModal.ts index 72dda84d53..3ea8968e27 100644 --- a/web/src/elements/rbac/ObjectPermissionModal.ts +++ b/web/src/elements/rbac/ObjectPermissionModal.ts @@ -78,3 +78,10 @@ export class ObjectPermissionModal extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rbac-object-permission-modal-form": ObjectPermissionsPageForm; + "ak-rbac-object-permission-modal": ObjectPermissionModal; + } +} diff --git a/web/src/elements/rbac/ObjectPermissionsPage.ts b/web/src/elements/rbac/ObjectPermissionsPage.ts index 39443e1a20..f656f2a241 100644 --- a/web/src/elements/rbac/ObjectPermissionsPage.ts +++ b/web/src/elements/rbac/ObjectPermissionsPage.ts @@ -187,3 +187,9 @@ export class ObjectPermissionPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rbac-object-permission-page": ObjectPermissionPage; + } +} diff --git a/web/src/elements/rbac/PermissionSelectModal.ts b/web/src/elements/rbac/PermissionSelectModal.ts index e705f81a09..5262a78d66 100644 --- a/web/src/elements/rbac/PermissionSelectModal.ts +++ b/web/src/elements/rbac/PermissionSelectModal.ts @@ -93,3 +93,9 @@ export class PermissionSelectModal extends TableModal { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rbac-permission-select-table": PermissionSelectModal; + } +} diff --git a/web/src/elements/rbac/RoleObjectPermissionForm.ts b/web/src/elements/rbac/RoleObjectPermissionForm.ts index 230d30a2e1..7c5fc47217 100644 --- a/web/src/elements/rbac/RoleObjectPermissionForm.ts +++ b/web/src/elements/rbac/RoleObjectPermissionForm.ts @@ -105,3 +105,9 @@ export class RoleObjectPermissionForm extends ModelForm `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rbac-role-object-permission-form": RoleObjectPermissionForm; + } +} diff --git a/web/src/elements/rbac/RoleObjectPermissionTable.ts b/web/src/elements/rbac/RoleObjectPermissionTable.ts index 6f335ae8b0..7c150bdec6 100644 --- a/web/src/elements/rbac/RoleObjectPermissionTable.ts +++ b/web/src/elements/rbac/RoleObjectPermissionTable.ts @@ -121,3 +121,9 @@ export class RoleAssignedObjectPermissionTable extends Table `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rbac-user-object-permission-form": UserObjectPermissionForm; + } +} diff --git a/web/src/elements/rbac/UserObjectPermissionTable.ts b/web/src/elements/rbac/UserObjectPermissionTable.ts index 34ff6d9f7e..f12ea33f9d 100644 --- a/web/src/elements/rbac/UserObjectPermissionTable.ts +++ b/web/src/elements/rbac/UserObjectPermissionTable.ts @@ -128,3 +128,9 @@ export class UserAssignedObjectPermissionTable extends Table`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-router-404": Router404; + } +} diff --git a/web/src/elements/router/RouterOutlet.ts b/web/src/elements/router/RouterOutlet.ts index 9d5687085c..1ef5abd087 100644 --- a/web/src/elements/router/RouterOutlet.ts +++ b/web/src/elements/router/RouterOutlet.ts @@ -118,3 +118,9 @@ export class RouterOutlet extends AKElement { return this.current?.render(); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-router-outlet": RouterOutlet; + } +} diff --git a/web/src/elements/sidebar/Sidebar.ts b/web/src/elements/sidebar/Sidebar.ts index 69604b13ff..8afdb9d89e 100644 --- a/web/src/elements/sidebar/Sidebar.ts +++ b/web/src/elements/sidebar/Sidebar.ts @@ -78,3 +78,9 @@ export class Sidebar extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-sidebar": Sidebar; + } +} diff --git a/web/src/elements/sidebar/SidebarBrand.ts b/web/src/elements/sidebar/SidebarBrand.ts index 0d818b568f..c08b1063ff 100644 --- a/web/src/elements/sidebar/SidebarBrand.ts +++ b/web/src/elements/sidebar/SidebarBrand.ts @@ -92,3 +92,9 @@ export class SidebarBrand extends WithBrandConfig(AKElement) { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-sidebar-brand": SidebarBrand; + } +} diff --git a/web/src/elements/sidebar/SidebarItem.ts b/web/src/elements/sidebar/SidebarItem.ts index 1d38671a44..93f7e7b990 100644 --- a/web/src/elements/sidebar/SidebarItem.ts +++ b/web/src/elements/sidebar/SidebarItem.ts @@ -225,3 +225,9 @@ export class SidebarItem extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-sidebar-item": SidebarItem; + } +} diff --git a/web/src/elements/sidebar/SidebarUser.ts b/web/src/elements/sidebar/SidebarUser.ts index 97cdad27bc..4408fc0df7 100644 --- a/web/src/elements/sidebar/SidebarUser.ts +++ b/web/src/elements/sidebar/SidebarUser.ts @@ -53,3 +53,9 @@ export class SidebarUser extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-sidebar-user": SidebarUser; + } +} diff --git a/web/src/elements/table/TablePagination.ts b/web/src/elements/table/TablePagination.ts index d53c5a03dd..e3df330110 100644 --- a/web/src/elements/table/TablePagination.ts +++ b/web/src/elements/table/TablePagination.ts @@ -82,3 +82,9 @@ export class TablePagination extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-table-pagination": TablePagination; + } +} diff --git a/web/src/elements/table/TableSearch.ts b/web/src/elements/table/TableSearch.ts index 3ad92089a4..9e99395577 100644 --- a/web/src/elements/table/TableSearch.ts +++ b/web/src/elements/table/TableSearch.ts @@ -74,3 +74,9 @@ export class TableSearch extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-table-search": TableSearch; + } +} diff --git a/web/src/elements/user/SessionList.ts b/web/src/elements/user/SessionList.ts index 01c4d900c0..ea63fc4e94 100644 --- a/web/src/elements/user/SessionList.ts +++ b/web/src/elements/user/SessionList.ts @@ -83,3 +83,9 @@ export class AuthenticatedSessionList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-session-list": AuthenticatedSessionList; + } +} diff --git a/web/src/elements/user/UserConsentList.ts b/web/src/elements/user/UserConsentList.ts index 3d992faad7..8b4c181604 100644 --- a/web/src/elements/user/UserConsentList.ts +++ b/web/src/elements/user/UserConsentList.ts @@ -78,3 +78,9 @@ export class UserConsentList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-consent-list": UserConsentList; + } +} diff --git a/web/src/elements/user/sources/SourceSettings.ts b/web/src/elements/user/sources/SourceSettings.ts index e1b26d3247..feae1f35b9 100644 --- a/web/src/elements/user/sources/SourceSettings.ts +++ b/web/src/elements/user/sources/SourceSettings.ts @@ -144,3 +144,9 @@ export class UserSourceSettingsPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings-source": UserSourceSettingsPage; + } +} diff --git a/web/src/elements/user/sources/SourceSettingsOAuth.ts b/web/src/elements/user/sources/SourceSettingsOAuth.ts index 39eda5daca..6073c37937 100644 --- a/web/src/elements/user/sources/SourceSettingsOAuth.ts +++ b/web/src/elements/user/sources/SourceSettingsOAuth.ts @@ -69,3 +69,9 @@ export class SourceSettingsOAuth extends BaseUserSettings { return html`${msg("-")}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings-source-oauth": SourceSettingsOAuth; + } +} diff --git a/web/src/elements/user/sources/SourceSettingsPlex.ts b/web/src/elements/user/sources/SourceSettingsPlex.ts index 5d3370b70a..8ed61babb9 100644 --- a/web/src/elements/user/sources/SourceSettingsPlex.ts +++ b/web/src/elements/user/sources/SourceSettingsPlex.ts @@ -85,3 +85,9 @@ export class SourceSettingsPlex extends BaseUserSettings { return html`${msg("-")}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings-source-plex": SourceSettingsPlex; + } +} diff --git a/web/src/elements/user/sources/SourceSettingsSAML.ts b/web/src/elements/user/sources/SourceSettingsSAML.ts index df13a5eaaa..ab63b0bd21 100644 --- a/web/src/elements/user/sources/SourceSettingsSAML.ts +++ b/web/src/elements/user/sources/SourceSettingsSAML.ts @@ -69,3 +69,9 @@ export class SourceSettingsSAML extends BaseUserSettings { return html`${msg("-")}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings-source-saml": SourceSettingsSAML; + } +} diff --git a/web/src/elements/utils/TimeDeltaHelp.ts b/web/src/elements/utils/TimeDeltaHelp.ts index eddd70ffbd..8a411c37d9 100644 --- a/web/src/elements/utils/TimeDeltaHelp.ts +++ b/web/src/elements/utils/TimeDeltaHelp.ts @@ -43,3 +43,9 @@ export class TimeDeltaHelp extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-utils-time-delta-help": TimeDeltaHelp; + } +} diff --git a/web/src/elements/wizard/ActionWizardPage.ts b/web/src/elements/wizard/ActionWizardPage.ts index e1217a6fae..7bac579a0d 100644 --- a/web/src/elements/wizard/ActionWizardPage.ts +++ b/web/src/elements/wizard/ActionWizardPage.ts @@ -143,3 +143,9 @@ export class ActionWizardPage extends WizardPage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-wizard-page-action": ActionWizardPage; + } +} diff --git a/web/src/elements/wizard/FormWizardPage.ts b/web/src/elements/wizard/FormWizardPage.ts index ae4e56645a..5c395ada6c 100644 --- a/web/src/elements/wizard/FormWizardPage.ts +++ b/web/src/elements/wizard/FormWizardPage.ts @@ -39,3 +39,9 @@ export class FormWizardPage extends WizardPage { }); }; } + +declare global { + interface HTMLElementTagNameMap { + "ak-wizard-page-form": FormWizardPage; + } +} diff --git a/web/src/elements/wizard/TypeCreateWizardPage.ts b/web/src/elements/wizard/TypeCreateWizardPage.ts index 567edd579d..cedcfb0e02 100644 --- a/web/src/elements/wizard/TypeCreateWizardPage.ts +++ b/web/src/elements/wizard/TypeCreateWizardPage.ts @@ -144,3 +144,9 @@ export class TypeCreateWizardPage extends WithLicenseSummary(WizardPage) { } } } + +declare global { + interface HTMLElementTagNameMap { + "ak-wizard-page-type-create": TypeCreateWizardPage; + } +} diff --git a/web/src/elements/wizard/Wizard.ts b/web/src/elements/wizard/Wizard.ts index 27f9e7f409..e8a8ba9f95 100644 --- a/web/src/elements/wizard/Wizard.ts +++ b/web/src/elements/wizard/Wizard.ts @@ -265,3 +265,9 @@ export class Wizard extends ModalButton { this.canCancel = true; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-wizard": Wizard; + } +} diff --git a/web/src/elements/wizard/WizardFormPage.ts b/web/src/elements/wizard/WizardFormPage.ts index 60b3865451..9fc2fd2c7a 100644 --- a/web/src/elements/wizard/WizardFormPage.ts +++ b/web/src/elements/wizard/WizardFormPage.ts @@ -2,7 +2,7 @@ import { Form, KeyUnknown } from "@goauthentik/elements/forms/Form"; import { WizardPage } from "@goauthentik/elements/wizard/WizardPage"; import { CSSResult, TemplateResult, html } from "lit"; -import { customElement, property } from "lit/decorators.js"; +import { property } from "lit/decorators.js"; import PFAlert from "@patternfly/patternfly/components/Alert/alert.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css"; @@ -12,7 +12,6 @@ import PFFormControl from "@patternfly/patternfly/components/FormControl/form-co import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-group.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css"; -@customElement("ak-wizard-form") export abstract class WizardForm extends Form { viewportCheck = false; diff --git a/web/src/elements/wizard/WizardPage.ts b/web/src/elements/wizard/WizardPage.ts index 3a6be581b2..6725cd303e 100644 --- a/web/src/elements/wizard/WizardPage.ts +++ b/web/src/elements/wizard/WizardPage.ts @@ -54,3 +54,9 @@ export class WizardPage extends AKElement { return html``; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-wizard-page": WizardPage; + } +} diff --git a/web/src/enterprise/rac/index.ts b/web/src/enterprise/rac/index.ts index b2900957cc..d90e98d6e0 100644 --- a/web/src/enterprise/rac/index.ts +++ b/web/src/enterprise/rac/index.ts @@ -328,3 +328,9 @@ export class RacInterface extends Interface { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-rac": RacInterface; + } +} diff --git a/web/src/flow/FlowExecutor.ts b/web/src/flow/FlowExecutor.ts index 8c1a2afb76..8720976c57 100644 --- a/web/src/flow/FlowExecutor.ts +++ b/web/src/flow/FlowExecutor.ts @@ -538,3 +538,9 @@ export class FlowExecutor extends Interface implements StageHost { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-executor": FlowExecutor; + } +} diff --git a/web/src/flow/FlowInspector.ts b/web/src/flow/FlowInspector.ts index 0d15d444ed..8e006de864 100644 --- a/web/src/flow/FlowInspector.ts +++ b/web/src/flow/FlowInspector.ts @@ -332,3 +332,9 @@ ${JSON.stringify(this.state.currentPlan?.planContext, null, 4)}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-inspector": FlowInspector; + } +} diff --git a/web/src/flow/FormStatic.ts b/web/src/flow/FormStatic.ts index 77ee93b547..4013eff3c4 100644 --- a/web/src/flow/FormStatic.ts +++ b/web/src/flow/FormStatic.ts @@ -61,3 +61,9 @@ export class FormStatic extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-form-static": FormStatic; + } +} diff --git a/web/src/flow/providers/oauth2/DeviceCode.ts b/web/src/flow/providers/oauth2/DeviceCode.ts index 1799522584..2eca7b1665 100644 --- a/web/src/flow/providers/oauth2/DeviceCode.ts +++ b/web/src/flow/providers/oauth2/DeviceCode.ts @@ -76,3 +76,9 @@ export class OAuth2DeviceCode extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-provider-oauth2-code": OAuth2DeviceCode; + } +} diff --git a/web/src/flow/providers/oauth2/DeviceCodeFinish.ts b/web/src/flow/providers/oauth2/DeviceCodeFinish.ts index 9beae496a8..8e772a7dbe 100644 --- a/web/src/flow/providers/oauth2/DeviceCodeFinish.ts +++ b/web/src/flow/providers/oauth2/DeviceCodeFinish.ts @@ -26,3 +26,9 @@ export class DeviceCodeFinish extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-provider-oauth2-code-finish": DeviceCodeFinish; + } +} diff --git a/web/src/flow/sources/apple/AppleLoginInit.ts b/web/src/flow/sources/apple/AppleLoginInit.ts index 3395302442..fcefd85f2d 100644 --- a/web/src/flow/sources/apple/AppleLoginInit.ts +++ b/web/src/flow/sources/apple/AppleLoginInit.ts @@ -75,3 +75,9 @@ export class AppleLoginInit extends BaseStage`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-source-oauth-apple": AppleLoginInit; + } +} diff --git a/web/src/flow/sources/plex/PlexLoginInit.ts b/web/src/flow/sources/plex/PlexLoginInit.ts index aea8689a53..5ed0c652be 100644 --- a/web/src/flow/sources/plex/PlexLoginInit.ts +++ b/web/src/flow/sources/plex/PlexLoginInit.ts @@ -95,3 +95,9 @@ export class PlexLoginInit extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-flow-source-plex": PlexLoginInit; + } +} diff --git a/web/src/flow/stages/FlowErrorStage.ts b/web/src/flow/stages/FlowErrorStage.ts index 4db4e53eeb..8d1facb1b8 100644 --- a/web/src/flow/stages/FlowErrorStage.ts +++ b/web/src/flow/stages/FlowErrorStage.ts @@ -73,3 +73,9 @@ export class FlowErrorStage extends BaseStage`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-flow-error": FlowErrorStage; + } +} diff --git a/web/src/flow/stages/RedirectStage.ts b/web/src/flow/stages/RedirectStage.ts index 50e24d9bec..e43b883950 100644 --- a/web/src/flow/stages/RedirectStage.ts +++ b/web/src/flow/stages/RedirectStage.ts @@ -101,3 +101,9 @@ export class RedirectStage extends BaseStage `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-redirect": RedirectStage; + } +} diff --git a/web/src/flow/stages/access_denied/AccessDeniedStage.ts b/web/src/flow/stages/access_denied/AccessDeniedStage.ts index 885442d718..ce95311d7c 100644 --- a/web/src/flow/stages/access_denied/AccessDeniedStage.ts +++ b/web/src/flow/stages/access_denied/AccessDeniedStage.ts @@ -60,3 +60,9 @@ export class AccessDeniedStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-access-denied": AccessDeniedStage; + } +} diff --git a/web/src/flow/stages/authenticator_duo/AuthenticatorDuoStage.ts b/web/src/flow/stages/authenticator_duo/AuthenticatorDuoStage.ts index eb28ddd7a9..d217c1de3c 100644 --- a/web/src/flow/stages/authenticator_duo/AuthenticatorDuoStage.ts +++ b/web/src/flow/stages/authenticator_duo/AuthenticatorDuoStage.ts @@ -118,3 +118,9 @@ export class AuthenticatorDuoStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-duo": AuthenticatorDuoStage; + } +} diff --git a/web/src/flow/stages/authenticator_sms/AuthenticatorSMSStage.ts b/web/src/flow/stages/authenticator_sms/AuthenticatorSMSStage.ts index 82b09ba03b..c1fcb45df3 100644 --- a/web/src/flow/stages/authenticator_sms/AuthenticatorSMSStage.ts +++ b/web/src/flow/stages/authenticator_sms/AuthenticatorSMSStage.ts @@ -154,3 +154,9 @@ export class AuthenticatorSMSStage extends BaseStage< return this.renderCode(); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-sms": AuthenticatorSMSStage; + } +} diff --git a/web/src/flow/stages/authenticator_static/AuthenticatorStaticStage.ts b/web/src/flow/stages/authenticator_static/AuthenticatorStaticStage.ts index ffa8a439d8..2508da3b93 100644 --- a/web/src/flow/stages/authenticator_static/AuthenticatorStaticStage.ts +++ b/web/src/flow/stages/authenticator_static/AuthenticatorStaticStage.ts @@ -99,3 +99,9 @@ export class AuthenticatorStaticStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-static": AuthenticatorStaticStage; + } +} diff --git a/web/src/flow/stages/authenticator_totp/AuthenticatorTOTPStage.ts b/web/src/flow/stages/authenticator_totp/AuthenticatorTOTPStage.ts index 074adb29ca..9949a94e81 100644 --- a/web/src/flow/stages/authenticator_totp/AuthenticatorTOTPStage.ts +++ b/web/src/flow/stages/authenticator_totp/AuthenticatorTOTPStage.ts @@ -143,3 +143,9 @@ export class AuthenticatorTOTPStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-totp": AuthenticatorTOTPStage; + } +} diff --git a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts index 8d74e4c42c..e1a004ff9c 100644 --- a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts +++ b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStage.ts @@ -270,3 +270,9 @@ export class AuthenticatorValidateStage `}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-validate": AuthenticatorValidateStage; + } +} diff --git a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageCode.ts b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageCode.ts index 08f8508b1e..dbe053c8c3 100644 --- a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageCode.ts +++ b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageCode.ts @@ -96,3 +96,9 @@ export class AuthenticatorValidateStageWebCode extends BaseDeviceStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-validate-code": AuthenticatorValidateStageWebCode; + } +} diff --git a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageDuo.ts b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageDuo.ts index b4257d7642..33b0fa128b 100644 --- a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageDuo.ts +++ b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageDuo.ts @@ -73,3 +73,9 @@ export class AuthenticatorValidateStageWebDuo extends BaseDeviceStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-validate-duo": AuthenticatorValidateStageWebDuo; + } +} diff --git a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts index 711ea0db4d..3bbb2e9892 100644 --- a/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts +++ b/web/src/flow/stages/authenticator_validate/AuthenticatorValidateStageWebAuthn.ts @@ -129,3 +129,9 @@ export class AuthenticatorValidateStageWebAuthn extends BaseDeviceStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-validate-webauthn": AuthenticatorValidateStageWebAuthn; + } +} diff --git a/web/src/flow/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts b/web/src/flow/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts index b2eb9e12c3..b10174151d 100644 --- a/web/src/flow/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts +++ b/web/src/flow/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts @@ -174,3 +174,9 @@ export class WebAuthnAuthenticatorRegisterStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-authenticator-webauthn": WebAuthnAuthenticatorRegisterStage; + } +} diff --git a/web/src/flow/stages/autosubmit/AutosubmitStage.ts b/web/src/flow/stages/autosubmit/AutosubmitStage.ts index 742d23618f..aad9ccef57 100644 --- a/web/src/flow/stages/autosubmit/AutosubmitStage.ts +++ b/web/src/flow/stages/autosubmit/AutosubmitStage.ts @@ -63,3 +63,9 @@ export class AutosubmitStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-autosubmit": AutosubmitStage; + } +} diff --git a/web/src/flow/stages/captcha/CaptchaStage.ts b/web/src/flow/stages/captcha/CaptchaStage.ts index 199961b836..4c68c9d67b 100644 --- a/web/src/flow/stages/captcha/CaptchaStage.ts +++ b/web/src/flow/stages/captcha/CaptchaStage.ts @@ -192,3 +192,9 @@ export class CaptchaStage extends BaseStage`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-captcha": CaptchaStage; + } +} diff --git a/web/src/flow/stages/consent/ConsentStage.ts b/web/src/flow/stages/consent/ConsentStage.ts index ec335e5945..dd15d9dde2 100644 --- a/web/src/flow/stages/consent/ConsentStage.ts +++ b/web/src/flow/stages/consent/ConsentStage.ts @@ -137,3 +137,9 @@ export class ConsentStage extends BaseStage`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-consent": ConsentStage; + } +} diff --git a/web/src/flow/stages/dummy/DummyStage.ts b/web/src/flow/stages/dummy/DummyStage.ts index 6f11b9e83b..6e9ee6b62a 100644 --- a/web/src/flow/stages/dummy/DummyStage.ts +++ b/web/src/flow/stages/dummy/DummyStage.ts @@ -49,3 +49,9 @@ export class DummyStage extends BaseStage`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-dummy": DummyStage; + } +} diff --git a/web/src/flow/stages/email/EmailStage.ts b/web/src/flow/stages/email/EmailStage.ts index fe25e5ce5a..87f5d11c20 100644 --- a/web/src/flow/stages/email/EmailStage.ts +++ b/web/src/flow/stages/email/EmailStage.ts @@ -51,3 +51,9 @@ export class EmailStage extends BaseStage`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-email": EmailStage; + } +} diff --git a/web/src/flow/stages/identification/IdentificationStage.ts b/web/src/flow/stages/identification/IdentificationStage.ts index 881e3f2e51..9d1035bb9d 100644 --- a/web/src/flow/stages/identification/IdentificationStage.ts +++ b/web/src/flow/stages/identification/IdentificationStage.ts @@ -326,3 +326,9 @@ export class IdentificationStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-identification": IdentificationStage; + } +} diff --git a/web/src/flow/stages/password/PasswordStage.ts b/web/src/flow/stages/password/PasswordStage.ts index 36e301749f..7bf22bacf1 100644 --- a/web/src/flow/stages/password/PasswordStage.ts +++ b/web/src/flow/stages/password/PasswordStage.ts @@ -136,3 +136,9 @@ export class PasswordStage extends BaseStage`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-password": PasswordStage; + } +} diff --git a/web/src/flow/stages/prompt/PromptStage.ts b/web/src/flow/stages/prompt/PromptStage.ts index 09cc6959ee..5c8b8d588f 100644 --- a/web/src/flow/stages/prompt/PromptStage.ts +++ b/web/src/flow/stages/prompt/PromptStage.ts @@ -312,3 +312,9 @@ ${prompt.initialValue}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-prompt": PromptStage; + } +} diff --git a/web/src/flow/stages/user_login/UserLoginStage.ts b/web/src/flow/stages/user_login/UserLoginStage.ts index b42961c9de..6501f3cd01 100644 --- a/web/src/flow/stages/user_login/UserLoginStage.ts +++ b/web/src/flow/stages/user_login/UserLoginStage.ts @@ -88,3 +88,9 @@ export class PasswordStage extends BaseStage< `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-stage-user-login": PasswordStage; + } +} diff --git a/web/src/standalone/api-browser/index.ts b/web/src/standalone/api-browser/index.ts index 703caed24e..ce5e017dfc 100644 --- a/web/src/standalone/api-browser/index.ts +++ b/web/src/standalone/api-browser/index.ts @@ -111,3 +111,9 @@ export class APIBrowser extends Interface { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-api-browser": APIBrowser; + } +} diff --git a/web/src/standalone/loading/index.ts b/web/src/standalone/loading/index.ts index e1d54f323c..57fda66f76 100644 --- a/web/src/standalone/loading/index.ts +++ b/web/src/standalone/loading/index.ts @@ -53,3 +53,9 @@ export class Loading extends Interface { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-loading": Loading; + } +} diff --git a/web/src/stories/flow-interface.ts b/web/src/stories/flow-interface.ts index 7dbe53ae35..5b8c5b683e 100644 --- a/web/src/stories/flow-interface.ts +++ b/web/src/stories/flow-interface.ts @@ -13,3 +13,9 @@ export class StoryFlowInterface extends FlowExecutor { return this.storyTheme; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-storybook-interface-flow": StoryFlowInterface; + } +} diff --git a/web/src/stories/interface.ts b/web/src/stories/interface.ts index ec15e6ad83..0cc2a3bfcf 100644 --- a/web/src/stories/interface.ts +++ b/web/src/stories/interface.ts @@ -13,3 +13,9 @@ export class StoryInterface extends Interface { return this.storyTheme; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-storybook-interface": StoryInterface; + } +} diff --git a/web/src/user/LibraryApplication/RACLaunchEndpointModal.ts b/web/src/user/LibraryApplication/RACLaunchEndpointModal.ts index cf643aeaaa..e422aef1d4 100644 --- a/web/src/user/LibraryApplication/RACLaunchEndpointModal.ts +++ b/web/src/user/LibraryApplication/RACLaunchEndpointModal.ts @@ -69,3 +69,9 @@ export class RACLaunchEndpointModal extends TableModal { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-library-rac-endpoint-launch": RACLaunchEndpointModal; + } +} diff --git a/web/src/user/LibraryApplication/index.ts b/web/src/user/LibraryApplication/index.ts index 30475dd981..85f5ccad4d 100644 --- a/web/src/user/LibraryApplication/index.ts +++ b/web/src/user/LibraryApplication/index.ts @@ -134,3 +134,9 @@ export class LibraryApplication extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-library-app": LibraryApplication; + } +} diff --git a/web/src/user/LibraryPage/ApplicationEmptyState.ts b/web/src/user/LibraryPage/ApplicationEmptyState.ts index bcd62611aa..152dd593a1 100644 --- a/web/src/user/LibraryPage/ApplicationEmptyState.ts +++ b/web/src/user/LibraryPage/ApplicationEmptyState.ts @@ -74,3 +74,9 @@ export class LibraryPageApplicationEmptyList extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-library-application-empty-list": LibraryPageApplicationEmptyList; + } +} diff --git a/web/src/user/LibraryPage/ApplicationList.ts b/web/src/user/LibraryPage/ApplicationList.ts index c51acce659..cfc8d7a030 100644 --- a/web/src/user/LibraryPage/ApplicationList.ts +++ b/web/src/user/LibraryPage/ApplicationList.ts @@ -93,3 +93,9 @@ export class LibraryPageApplicationList extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-library-application-list": LibraryPageApplicationList; + } +} diff --git a/web/src/user/LibraryPage/ApplicationSearch.ts b/web/src/user/LibraryPage/ApplicationSearch.ts index 7e6f40f53a..81b2089229 100644 --- a/web/src/user/LibraryPage/ApplicationSearch.ts +++ b/web/src/user/LibraryPage/ApplicationSearch.ts @@ -143,3 +143,9 @@ export class LibraryPageApplicationList extends AKElement { />`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-library-list-search": LibraryPageApplicationList; + } +} diff --git a/web/src/user/LibraryPage/LibraryPage.ts b/web/src/user/LibraryPage/LibraryPage.ts index 01ab26c718..c6845f49f1 100644 --- a/web/src/user/LibraryPage/LibraryPage.ts +++ b/web/src/user/LibraryPage/LibraryPage.ts @@ -112,3 +112,9 @@ export class LibraryPage extends AKElement { return this.ready ? this.running() : this.loading(); } } + +declare global { + interface HTMLElementTagNameMap { + "ak-library": LibraryPage; + } +} diff --git a/web/src/user/LibraryPage/LibraryPageImpl.ts b/web/src/user/LibraryPage/LibraryPageImpl.ts index 1892e499f9..be979eb36d 100644 --- a/web/src/user/LibraryPage/LibraryPageImpl.ts +++ b/web/src/user/LibraryPage/LibraryPageImpl.ts @@ -153,3 +153,9 @@ export class LibraryPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-library-impl": LibraryPage; + } +} diff --git a/web/src/user/UserInterface.ts b/web/src/user/UserInterface.ts index 59dab49211..0dd3130bea 100644 --- a/web/src/user/UserInterface.ts +++ b/web/src/user/UserInterface.ts @@ -472,3 +472,10 @@ export class UserInterface extends EnterpriseAwareInterface { >`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-interface-user-presentation": UserInterfacePresentation; + "ak-interface-user": UserInterface; + } +} diff --git a/web/src/user/user-settings/UserSettingsPage.ts b/web/src/user/user-settings/UserSettingsPage.ts index 8e016da8ee..646661a236 100644 --- a/web/src/user/user-settings/UserSettingsPage.ts +++ b/web/src/user/user-settings/UserSettingsPage.ts @@ -182,3 +182,9 @@ export class UserSettingsPage extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings": UserSettingsPage; + } +} diff --git a/web/src/user/user-settings/details/UserPassword.ts b/web/src/user/user-settings/details/UserPassword.ts index 4464fdaf98..c8183dd68d 100644 --- a/web/src/user/user-settings/details/UserPassword.ts +++ b/web/src/user/user-settings/details/UserPassword.ts @@ -41,3 +41,9 @@ export class UserSettingsPassword extends AKElement { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings-password": UserSettingsPassword; + } +} diff --git a/web/src/user/user-settings/details/UserSettingsFlowExecutor.ts b/web/src/user/user-settings/details/UserSettingsFlowExecutor.ts index b1c477170d..cc9099c4c4 100644 --- a/web/src/user/user-settings/details/UserSettingsFlowExecutor.ts +++ b/web/src/user/user-settings/details/UserSettingsFlowExecutor.ts @@ -210,3 +210,9 @@ export class UserSettingsFlowExecutor `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings-flow-executor": UserSettingsFlowExecutor; + } +} diff --git a/web/src/user/user-settings/details/stages/prompt/PromptStage.ts b/web/src/user/user-settings/details/stages/prompt/PromptStage.ts index 9276f8a2fe..6f9fefdb90 100644 --- a/web/src/user/user-settings/details/stages/prompt/PromptStage.ts +++ b/web/src/user/user-settings/details/stages/prompt/PromptStage.ts @@ -92,3 +92,9 @@ export class UserSettingsPromptStage extends PromptStage { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-stage-prompt": UserSettingsPromptStage; + } +} diff --git a/web/src/user/user-settings/mfa/MFADeviceForm.ts b/web/src/user/user-settings/mfa/MFADeviceForm.ts index a418eeb02e..c470d32bb3 100644 --- a/web/src/user/user-settings/mfa/MFADeviceForm.ts +++ b/web/src/user/user-settings/mfa/MFADeviceForm.ts @@ -74,3 +74,9 @@ export class MFADeviceForm extends ModelForm { `; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-mfa-form": MFADeviceForm; + } +} diff --git a/web/src/user/user-settings/mfa/MFADevicesPage.ts b/web/src/user/user-settings/mfa/MFADevicesPage.ts index 86578c920e..9bf3692344 100644 --- a/web/src/user/user-settings/mfa/MFADevicesPage.ts +++ b/web/src/user/user-settings/mfa/MFADevicesPage.ts @@ -138,3 +138,9 @@ export class MFADevicesPage extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-settings-mfa": MFADevicesPage; + } +} diff --git a/web/src/user/user-settings/tokens/UserTokenForm.ts b/web/src/user/user-settings/tokens/UserTokenForm.ts index d0fce872f2..42c36a9a7c 100644 --- a/web/src/user/user-settings/tokens/UserTokenForm.ts +++ b/web/src/user/user-settings/tokens/UserTokenForm.ts @@ -79,3 +79,9 @@ export class UserTokenForm extends ModelForm { : html``}`; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-token-form": UserTokenForm; + } +} diff --git a/web/src/user/user-settings/tokens/UserTokenList.ts b/web/src/user/user-settings/tokens/UserTokenList.ts index 9cc8e588ea..f79a5da3f9 100644 --- a/web/src/user/user-settings/tokens/UserTokenList.ts +++ b/web/src/user/user-settings/tokens/UserTokenList.ts @@ -184,3 +184,9 @@ export class UserTokenList extends Table { ]; } } + +declare global { + interface HTMLElementTagNameMap { + "ak-user-token-list": UserTokenList; + } +} diff --git a/web/tools/20240625-add-htmlelementtagnamemaps-to-everything.py b/web/tools/20240625-add-htmlelementtagnamemaps-to-everything.py new file mode 100644 index 0000000000..12d5687d61 --- /dev/null +++ b/web/tools/20240625-add-htmlelementtagnamemaps-to-everything.py @@ -0,0 +1,87 @@ +#!/opt/homebrew/bin/python3 + +# Run June 25, 2024. +# +# A very primitive syntactically-oriented script for adding HTMLElementTagName declarations to files +# that don't have one. Note that it has a lot of failure conditions; it can only handle files where +# there is one and only one HTMLElement-derived class, it must be concrete not abstract, and the +# `extends` clause must be on the same line as the `class` token or it won't find it. +# +# Shortcomings aside, there were 360 web components in our system that lacked entries into the +# HTMLElementTagName global space and about 95% of them were fixed with this pass; the rest were +# done by hand. +# +# Usage: +# +# for i in $(rg -l customElement src/); do python add-global $i ; done +# + + +import re +import sys + +customElement_re = re.compile(r'customElement\("([^"]+)"') +class_re = re.compile(r'class\s+(\w+)\s+extends') +tagmap_re = re.compile(r'interface HTMLElementTagNameMap') + +def inject(fn): + with open(fn, "r", encoding="utf-8") as elemfile: + content = list(enumerate(elemfile.readlines())) + + searchCustomElement = [l for l in content if customElement_re.search(l[1])] + searchClass = [l for l in content if class_re.search(l[1])] + searchTag = [l for l in content if tagmap_re.search(l[1])] + + if len(searchCustomElement) > 1: + print("Skipping {}, too many custom element declarations".format(fn)) + return + + if len(searchClass) > 1: + print("Skipping {}, too many class declarations".format(fn)) + return + + if len(searchTag) > 0: + print("Skipping {}, HTMLElementTagNameMap already present".format(fn)) + return + + if len(searchCustomElement) == 0: + print("Skipping {}, no custom element found".format(fn)) + return + + if len(searchClass) == 0: + print("Skipping {}, no class found after custom element?".format(fn)) + return + + if (searchCustomElement[0][0] + 1) != searchClass[0][0]: + print("Skipping {}, customElement Declaration does not immediately precede class declaration".format(fn)) + return + + ceSearch = customElement_re.search(searchCustomElement[0][1]); + clSearch = class_re.search(searchClass[0][1]); + + ceName = ceSearch.group(1) + clName = clSearch.group(1) + + text = [l[1] for l in content] + + text.extend([ + "\n", + "declare global {\n", + " interface HTMLElementTagNameMap {\n", + ' "{}": {};\n'.format(ceName, clName), + " }\n", + "}\n", + "\n" + ]); + + with open(fn, "w", encoding="utf-8") as elemfile: + elemfile.write("".join(text)) + + +if __name__ == "__main__": + if len(sys.argv) < 2: + print("This requires a filename") + sys.exit(-1) + + inject(sys.argv[1]) + diff --git a/web/tools/README.md b/web/tools/README.md new file mode 100644 index 0000000000..0d1d6e12e5 --- /dev/null +++ b/web/tools/README.md @@ -0,0 +1,9 @@ +The `tools` folder is a junk drawer of all the tiny tools used to refactor this code in one way or +another. Given the frequency with which broad, system-wide syntactical changes need to be made, +having a way to keep and document _how_ those changes were made seems important. Having a collection +of those tools in this folder also means that future syntactical changes won't have to start from +scratch, there'll be some sort of framework in here that can be copied and adopted to whatever comes +next. + +If you add a tool to this repo, please _date_ it so we can track when it was used, and if it's still +relevant to the development process.