@umbraco-cms/backoffice 14.0.0--preview004-527936fc → 14.0.0--preview004-9e1faf6d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cms/packages/core/workspace/workspace-action/common/save/save.action.d.ts +2 -2
- package/dist-cms/packages/core/workspace/workspace-context/property-structure-workspace-context.interface.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-context/saveable-workspace-context.interface.d.ts +7 -1
- package/dist-cms/packages/core/workspace/workspace-context/variant-workspace-context.token.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.interface.d.ts +3 -10
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.token.d.ts +1 -2
- package/dist-cms/packages/core/workspace/workspace-property-layout/workspace-property-layout.element.js +6 -6
- package/dist-cms/packages/log-viewer/workspace/logviewer.context.d.ts +15 -23
- package/dist-cms/packages/log-viewer/workspace/logviewer.context.js +3 -16
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.context.d.ts +1 -1
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UmbSaveableWorkspaceContextInterface } from '../../../workspace-context/saveable-workspace-context.interface.js';
|
|
2
2
|
import { UmbWorkspaceActionBase } from '../../workspace-action-base.js';
|
|
3
3
|
import type { UmbControllerHostElement } from '../../../../../../libs/controller-api/index.js';
|
|
4
|
-
export declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<
|
|
4
|
+
export declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbSaveableWorkspaceContextInterface> {
|
|
5
5
|
constructor(host: UmbControllerHostElement);
|
|
6
6
|
execute(): Promise<void>;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UmbWorkspaceContextInterface } from './workspace-context.interface.js';
|
|
2
2
|
import { Observable } from '../../../../external/rxjs/index.js';
|
|
3
3
|
import type { ValueModelBaseModel } from '../../../../external/backend-api/index.js';
|
|
4
|
-
export interface UmbPropertyStructureWorkspaceContextInterface
|
|
4
|
+
export interface UmbPropertyStructureWorkspaceContextInterface extends UmbWorkspaceContextInterface {
|
|
5
5
|
propertyStructureById(id: string): Promise<Observable<ValueModelBaseModel | undefined>>;
|
|
6
6
|
}
|
package/dist-cms/packages/core/workspace/workspace-context/saveable-workspace-context.interface.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { UmbWorkspaceContextInterface } from './workspace-context.interface.js';
|
|
2
|
-
|
|
2
|
+
import { Observable } from '../../../../external/rxjs/index.js';
|
|
3
|
+
export interface UmbSaveableWorkspaceContextInterface<Type = unknown> extends UmbWorkspaceContextInterface {
|
|
4
|
+
isNew: Observable<boolean | undefined>;
|
|
5
|
+
getIsNew(): boolean | undefined;
|
|
6
|
+
setIsNew(value: boolean): void;
|
|
3
7
|
save(): Promise<void>;
|
|
8
|
+
setValidationErrors?(errorMap: any): void;
|
|
9
|
+
destroy(): void;
|
|
4
10
|
}
|
package/dist-cms/packages/core/workspace/workspace-context/variant-workspace-context.token.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import type { UmbWorkspaceContextInterface } from './workspace-context.interface
|
|
|
2
2
|
import type { UmbVariantableWorkspaceContextInterface } from './workspace-variantable-context.interface.js';
|
|
3
3
|
import { UmbContextToken } from '../../../../libs/context-api/index.js';
|
|
4
4
|
import type { UmbEntityBase } from '../../../../shared/models/index.js';
|
|
5
|
-
export declare const UMB_VARIANT_WORKSPACE_CONTEXT_TOKEN: UmbContextToken<UmbWorkspaceContextInterface
|
|
5
|
+
export declare const UMB_VARIANT_WORKSPACE_CONTEXT_TOKEN: UmbContextToken<UmbWorkspaceContextInterface, UmbVariantableWorkspaceContextInterface<UmbEntityBase>>;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
destroy(): void;
|
|
4
|
-
workspaceAlias: string;
|
|
5
|
-
save(): Promise<void>;
|
|
6
|
-
setValidationErrors?(errorMap: any): void;
|
|
7
|
-
getEntityId(): string | undefined;
|
|
1
|
+
export interface UmbWorkspaceContextInterface {
|
|
2
|
+
readonly workspaceAlias: string;
|
|
8
3
|
getEntityType(): string;
|
|
9
|
-
|
|
10
|
-
getIsNew(): boolean | undefined;
|
|
11
|
-
setIsNew(value: boolean): void;
|
|
4
|
+
getEntityId(): string | undefined;
|
|
12
5
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { UmbWorkspaceContextInterface } from './workspace-context.interface.js';
|
|
2
2
|
import { UmbContextToken } from '../../../../libs/context-api/index.js';
|
|
3
|
-
|
|
4
|
-
export declare const UMB_WORKSPACE_CONTEXT: UmbContextToken<UmbWorkspaceContextInterface<UmbEntityBase>, UmbWorkspaceContextInterface<UmbEntityBase>>;
|
|
3
|
+
export declare const UMB_WORKSPACE_CONTEXT: UmbContextToken<UmbWorkspaceContextInterface, UmbWorkspaceContextInterface>;
|
|
@@ -80,22 +80,22 @@ export let UmbWorkspacePropertyLayoutElement = class UmbWorkspacePropertyLayoutE
|
|
|
80
80
|
:host > div {
|
|
81
81
|
grid-column: span 2;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
/*@container (width > 600px) {*/
|
|
84
84
|
:host(:not([orientation='vertical'])) > div {
|
|
85
85
|
grid-column: span 1;
|
|
86
86
|
}
|
|
87
|
-
}
|
|
87
|
+
/*}*/
|
|
88
88
|
|
|
89
89
|
#headerColumn {
|
|
90
90
|
position: relative;
|
|
91
91
|
height: min-content;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
/*@container (width > 600px) {*/
|
|
94
94
|
#headerColumn {
|
|
95
95
|
position: sticky;
|
|
96
96
|
top: calc(var(--uui-size-space-2) * -1);
|
|
97
97
|
}
|
|
98
|
-
}
|
|
98
|
+
/*}*/
|
|
99
99
|
|
|
100
100
|
#description {
|
|
101
101
|
color: var(--uui-color-text-alt);
|
|
@@ -104,11 +104,11 @@ export let UmbWorkspacePropertyLayoutElement = class UmbWorkspacePropertyLayoutE
|
|
|
104
104
|
#editorColumn {
|
|
105
105
|
margin-top: var(--uui-size-space-3);
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
/*@container (width > 600px) {*/
|
|
108
108
|
#editorColumn {
|
|
109
109
|
margin-top: 0;
|
|
110
110
|
}
|
|
111
|
-
}
|
|
111
|
+
/*}*/
|
|
112
112
|
`,
|
|
113
113
|
]; }
|
|
114
114
|
};
|
|
@@ -2,8 +2,6 @@ import { DirectionModel, LogLevelCountsReponseModel, LogLevelModel, PagedLogTemp
|
|
|
2
2
|
import { UmbBaseController, UmbControllerHostElement } from '../../../libs/controller-api/index.js';
|
|
3
3
|
import { UmbContextToken } from '../../../libs/context-api/index.js';
|
|
4
4
|
import { UmbWorkspaceContextInterface } from '../../core/workspace/index.js';
|
|
5
|
-
import { Observable } from '../../../external/rxjs/index.js';
|
|
6
|
-
import type { UmbEntityBase } from '../../../shared/models/index.js';
|
|
7
5
|
export type PoolingInterval = 0 | 2000 | 5000 | 10000 | 20000 | 30000;
|
|
8
6
|
export interface PoolingCOnfig {
|
|
9
7
|
enabled: boolean;
|
|
@@ -13,34 +11,28 @@ export interface LogViewerDateRange {
|
|
|
13
11
|
startDate: string;
|
|
14
12
|
endDate: string;
|
|
15
13
|
}
|
|
16
|
-
export declare class UmbLogViewerWorkspaceContext extends UmbBaseController implements UmbWorkspaceContextInterface
|
|
14
|
+
export declare class UmbLogViewerWorkspaceContext extends UmbBaseController implements UmbWorkspaceContextInterface {
|
|
17
15
|
#private;
|
|
18
16
|
readonly workspaceAlias: string;
|
|
19
|
-
isNew: Observable<boolean | undefined>;
|
|
20
|
-
getIsNew(): boolean | undefined;
|
|
21
|
-
setIsNew(value: boolean): void;
|
|
22
|
-
getEntityId(): string | undefined;
|
|
23
|
-
getData(): UmbEntityBase;
|
|
24
|
-
repository: any;
|
|
25
17
|
getEntityType(): string;
|
|
26
18
|
getEntityName(): string;
|
|
27
|
-
|
|
19
|
+
getEntityId(): undefined;
|
|
28
20
|
get today(): string;
|
|
29
21
|
get yesterday(): string;
|
|
30
22
|
defaultDateRange: LogViewerDateRange;
|
|
31
|
-
savedSearches: Observable<SavedLogSearchPresenationBaseModel[] | undefined>;
|
|
32
|
-
logCount: Observable<LogLevelCountsReponseModel | null>;
|
|
33
|
-
dateRange: Observable<LogViewerDateRange>;
|
|
34
|
-
loggers: Observable<import("../../../external/backend-api/index.js").LoggerResponseModel[] | undefined>;
|
|
35
|
-
canShowLogs: Observable<boolean | null>;
|
|
36
|
-
isLoadingLogs: Observable<boolean | null>;
|
|
37
|
-
filterExpression: Observable<string>;
|
|
38
|
-
messageTemplates: Observable<PagedLogTemplateResponseModel | null>;
|
|
39
|
-
logLevelsFilter: Observable<LogLevelModel[]>;
|
|
40
|
-
logs: Observable<import("../../../external/backend-api/index.js").LogMessageResponseModel[] | undefined>;
|
|
41
|
-
logsTotal: Observable<number | undefined>;
|
|
42
|
-
polling: Observable<PoolingCOnfig>;
|
|
43
|
-
sortingDirection: Observable<DirectionModel>;
|
|
23
|
+
savedSearches: import("rxjs").Observable<SavedLogSearchPresenationBaseModel[] | undefined>;
|
|
24
|
+
logCount: import("rxjs").Observable<LogLevelCountsReponseModel | null>;
|
|
25
|
+
dateRange: import("rxjs").Observable<LogViewerDateRange>;
|
|
26
|
+
loggers: import("rxjs").Observable<import("../../../external/backend-api/index.js").LoggerResponseModel[] | undefined>;
|
|
27
|
+
canShowLogs: import("rxjs").Observable<boolean | null>;
|
|
28
|
+
isLoadingLogs: import("rxjs").Observable<boolean | null>;
|
|
29
|
+
filterExpression: import("rxjs").Observable<string>;
|
|
30
|
+
messageTemplates: import("rxjs").Observable<PagedLogTemplateResponseModel | null>;
|
|
31
|
+
logLevelsFilter: import("rxjs").Observable<LogLevelModel[]>;
|
|
32
|
+
logs: import("rxjs").Observable<import("../../../external/backend-api/index.js").LogMessageResponseModel[] | undefined>;
|
|
33
|
+
logsTotal: import("rxjs").Observable<number | undefined>;
|
|
34
|
+
polling: import("rxjs").Observable<PoolingCOnfig>;
|
|
35
|
+
sortingDirection: import("rxjs").Observable<DirectionModel>;
|
|
44
36
|
currentPage: number;
|
|
45
37
|
constructor(host: UmbControllerHostElement);
|
|
46
38
|
onChangeState: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UmbLogViewerRepository } from '../repository/log-viewer.repository.js';
|
|
2
|
-
import { UmbBasicState, UmbArrayState, createObservablePart, UmbDeepState, UmbObjectState, UmbStringState,
|
|
2
|
+
import { UmbBasicState, UmbArrayState, createObservablePart, UmbDeepState, UmbObjectState, UmbStringState, } from '../../../libs/observable-api/index.js';
|
|
3
3
|
import { DirectionModel, LogLevelModel, } from '../../../external/backend-api/index.js';
|
|
4
4
|
import { UmbBaseController } from '../../../libs/controller-api/index.js';
|
|
5
5
|
import { UmbContextToken } from '../../../libs/context-api/index.js';
|
|
@@ -8,25 +8,14 @@ import { UMB_WORKSPACE_CONTEXT } from '../../core/workspace/index.js';
|
|
|
8
8
|
// TODO: Revisit usage of workspace for this case...
|
|
9
9
|
export class UmbLogViewerWorkspaceContext extends UmbBaseController {
|
|
10
10
|
#repository;
|
|
11
|
-
#isNew;
|
|
12
|
-
getIsNew() {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
setIsNew(value) { }
|
|
16
|
-
getEntityId() {
|
|
17
|
-
return undefined;
|
|
18
|
-
}
|
|
19
|
-
getData() {
|
|
20
|
-
return {};
|
|
21
|
-
}
|
|
22
11
|
getEntityType() {
|
|
23
12
|
return 'log-viewer';
|
|
24
13
|
}
|
|
25
14
|
getEntityName() {
|
|
26
15
|
return 'Log Viewer';
|
|
27
16
|
}
|
|
28
|
-
|
|
29
|
-
return
|
|
17
|
+
getEntityId() {
|
|
18
|
+
return undefined;
|
|
30
19
|
}
|
|
31
20
|
get today() {
|
|
32
21
|
const today = new Date();
|
|
@@ -58,8 +47,6 @@ export class UmbLogViewerWorkspaceContext extends UmbBaseController {
|
|
|
58
47
|
constructor(host) {
|
|
59
48
|
super(host);
|
|
60
49
|
this.workspaceAlias = 'Umb.Workspace.LogViewer';
|
|
61
|
-
this.#isNew = new UmbBooleanState(undefined);
|
|
62
|
-
this.isNew = this.#isNew.asObservable();
|
|
63
50
|
this.defaultDateRange = {
|
|
64
51
|
startDate: this.yesterday,
|
|
65
52
|
endDate: this.today,
|
|
@@ -47,4 +47,4 @@ export declare class UmbDataTypeWorkspaceContext extends UmbWorkspaceContext<Umb
|
|
|
47
47
|
delete(id: string): Promise<void>;
|
|
48
48
|
destroy(): void;
|
|
49
49
|
}
|
|
50
|
-
export declare const UMB_DATA_TYPE_WORKSPACE_CONTEXT: UmbContextToken<UmbWorkspaceContextInterface
|
|
50
|
+
export declare const UMB_DATA_TYPE_WORKSPACE_CONTEXT: UmbContextToken<UmbWorkspaceContextInterface, UmbDataTypeWorkspaceContext>;
|