diff --git a/lib/core/src/lib/landing-page/index.ts b/lib/core/src/lib/landing-page/index.ts new file mode 100644 index 0000000000..f22da90e09 --- /dev/null +++ b/lib/core/src/lib/landing-page/index.ts @@ -0,0 +1,18 @@ +/*! + * @license + * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './public-api'; diff --git a/lib/core/src/lib/landing-page/provider.ts b/lib/core/src/lib/landing-page/provider.ts new file mode 100644 index 0000000000..e0163fd5b6 --- /dev/null +++ b/lib/core/src/lib/landing-page/provider.ts @@ -0,0 +1,32 @@ +/*! + * @license + * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { InjectionToken, Provider, Type } from '@angular/core'; + +export const LANDING_PAGE_TOKEN = new InjectionToken>('LANDING_PAGE_TOKEN'); + +/** + * + * @param componentClass The component class to be registered as the landing page. + * @returns A provider that registers the landing page component class. + */ +export function provideLandingPage(componentClass: Type): Provider { + return { + provide: LANDING_PAGE_TOKEN, + useValue: componentClass + }; +} diff --git a/lib/core/src/lib/landing-page/public-api.ts b/lib/core/src/lib/landing-page/public-api.ts new file mode 100644 index 0000000000..7707f4834b --- /dev/null +++ b/lib/core/src/lib/landing-page/public-api.ts @@ -0,0 +1,18 @@ +/*! + * @license + * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './provider'; diff --git a/lib/core/src/public-api.ts b/lib/core/src/public-api.ts index 0c7af4c561..89143c2025 100644 --- a/lib/core/src/public-api.ts +++ b/lib/core/src/public-api.ts @@ -24,6 +24,7 @@ export * from './lib/toolbar/index'; export * from './lib/header/index'; export * from './lib/pagination/index'; export * from './lib/login/index'; +export * from './lib/landing-page/index'; export * from './lib/language-menu/index'; export * from './lib/info-drawer/index'; export * from './lib/identity-user-info/index';