File tree Expand file tree Collapse file tree 6 files changed +9
-12
lines changed
core/extension-registry/conditions Expand file tree Collapse file tree 6 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
import type { ManifestTypes } from '../models/index.js' ;
2
- import { manifest as multipleAppLanguagesConditionManifest } from './multiple-app-languages.condition.js' ;
3
2
import { manifest as sectionAliasConditionManifest } from './section-alias.condition.js' ;
4
3
import { manifest as switchConditionManifest } from './switch.condition.js' ;
5
4
6
- export const manifests : Array < ManifestTypes > = [
7
- multipleAppLanguagesConditionManifest ,
8
- sectionAliasConditionManifest ,
9
- switchConditionManifest ,
10
- ] ;
5
+ export const manifests : Array < ManifestTypes > = [ sectionAliasConditionManifest , switchConditionManifest ] ;
Original file line number Diff line number Diff line change @@ -2,15 +2,13 @@ import type { CollectionAliasConditionConfig } from '../../collection/collection
2
2
import type { CollectionBulkActionPermissionConditionConfig } from '../../collection/collection-bulk-action-permission.manifest.js' ;
3
3
import type { SectionAliasConditionConfig } from './section-alias.condition.js' ;
4
4
import type { SwitchConditionConfig } from './switch.condition.js' ;
5
- import type { UmbMultipleAppLanguageConditionConfig } from './multiple-app-languages.condition.js' ;
6
5
import type { UmbConditionConfigBase } from '@umbraco-cms/backoffice/extension-api' ;
7
6
8
7
export type ConditionTypes =
9
8
| CollectionAliasConditionConfig
10
9
| CollectionBulkActionPermissionConditionConfig
11
10
| SectionAliasConditionConfig
12
11
| SwitchConditionConfig
13
- | UmbMultipleAppLanguageConditionConfig
14
12
| UmbConditionConfigBase ;
15
13
16
14
type UnionOfProperties < T > = T extends object ? T [ keyof T ] : never ;
Original file line number Diff line number Diff line change 1
- import { UmbConditionBase } from './condition-base.controller .js' ;
1
+ import type { UmbMultipleAppLanguageConditionConfig } from './types .js' ;
2
2
import { UMB_APP_LANGUAGE_CONTEXT } from '@umbraco-cms/backoffice/language' ;
3
3
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api' ;
4
4
import type {
5
5
ManifestCondition ,
6
- UmbConditionConfigBase ,
7
6
UmbConditionControllerArguments ,
8
7
UmbExtensionCondition ,
9
8
} from '@umbraco-cms/backoffice/extension-api' ;
10
-
11
- export type UmbMultipleAppLanguageConditionConfig = UmbConditionConfigBase ;
9
+ import { UmbConditionBase } from '@umbraco-cms/backoffice/extension-registry' ;
12
10
13
11
export class UmbMultipleAppLanguageCondition
14
12
extends UmbConditionBase < UmbMultipleAppLanguageConditionConfig >
Original file line number Diff line number Diff line change
1
+ import type { UmbConditionConfigBase } from '@umbraco-cms/backoffice/extension-api' ;
2
+
3
+ export type UmbMultipleAppLanguageConditionConfig = UmbConditionConfigBase ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { manifests as appLanguageSelect } from './app-language-select/manifests.
6
6
import { manifests as modalManifests } from './modals/manifests.js' ;
7
7
import { manifests as collectionManifests } from './collection/manifests.js' ;
8
8
import { manifests as globalContextManifests } from './global-contexts/manifests.js' ;
9
+ import { manifest as conditionsManifest } from './conditions/multiple-app-languages.condition.js' ;
9
10
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry' ;
10
11
11
12
export const manifests : Array < ManifestTypes > = [
@@ -17,6 +18,7 @@ export const manifests: Array<ManifestTypes> = [
17
18
...modalManifests ,
18
19
...collectionManifests ,
19
20
...globalContextManifests ,
21
+ conditionsManifest ,
20
22
{
21
23
type : 'workspaceContext' ,
22
24
name : 'Document Language Access Workspace Context' ,
Original file line number Diff line number Diff line change 1
1
import type { UmbLanguageEntityType } from './entity.js' ;
2
+ export type * from './conditions/types.js' ;
2
3
3
4
export interface UmbLanguageDetailModel {
4
5
entityType : UmbLanguageEntityType ;
You can’t perform that action at this time.
0 commit comments