@umbraco-cms/backoffice 14.0.0--preview007-2ee36857 → 14.0.0--preview007-63654dfd
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/custom-elements.json +57 -143
- package/dist-cms/packages/core/collection/default/collection-default.context.d.ts +6 -6
- package/dist-cms/packages/core/collection/types.d.ts +8 -1
- package/dist-cms/packages/core/components/table/table.element.d.ts +5 -0
- package/dist-cms/packages/core/components/table/table.element.js +6 -2
- package/dist-cms/packages/core/extension-registry/models/index.d.ts +3 -1
- package/dist-cms/packages/core/extension-registry/models/workspace-footer-app.model.d.ts +5 -0
- package/dist-cms/packages/core/extension-registry/models/workspace-footer-app.model.js +1 -0
- package/dist-cms/packages/core/modal/token/dictionary-item-picker-modal.token.js +1 -0
- package/dist-cms/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.d.ts +2 -7
- package/dist-cms/packages/core/property-editor/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.js +1 -1
- package/dist-cms/packages/core/workspace/components/workspace-footer/workspace-footer.element.js +1 -0
- package/dist-cms/packages/dictionary/tree/dictionary-tree.server.data-source.js +1 -0
- package/dist-cms/packages/documents/document-types/tree/document-type.tree.store.js +1 -0
- package/dist-cms/packages/documents/documents/breadcrumb/manifests.d.ts +2 -0
- package/dist-cms/packages/documents/documents/breadcrumb/manifests.js +15 -0
- package/dist-cms/packages/documents/documents/breadcrumb/workspace-breadcrumb.element.d.ts +11 -0
- package/dist-cms/packages/documents/documents/breadcrumb/workspace-breadcrumb.element.js +21 -0
- package/dist-cms/packages/documents/documents/collection/action/create-document-collection-action.element.d.ts +2 -0
- package/dist-cms/packages/documents/documents/collection/action/create-document-collection-action.element.js +29 -12
- package/dist-cms/packages/documents/documents/collection/views/grid/document-grid-collection-view.element.d.ts +1 -0
- package/dist-cms/packages/documents/documents/collection/views/grid/document-grid-collection-view.element.js +75 -8
- package/dist-cms/packages/documents/documents/collection/views/index.d.ts +2 -0
- package/dist-cms/packages/documents/documents/collection/views/index.js +20 -0
- package/dist-cms/packages/documents/documents/collection/views/table/column-layouts/document-table-column-name.element.d.ts +19 -0
- package/dist-cms/packages/documents/documents/collection/views/table/column-layouts/document-table-column-name.element.js +69 -0
- package/dist-cms/packages/documents/documents/collection/views/table/column-layouts/document-table-column-state.element.d.ts +15 -0
- package/dist-cms/packages/documents/documents/collection/views/table/column-layouts/document-table-column-state.element.js +39 -0
- package/dist-cms/packages/documents/documents/collection/views/table/document-table-collection-view.element.d.ts +3 -3
- package/dist-cms/packages/documents/documents/collection/views/table/document-table-collection-view.element.js +47 -44
- package/dist-cms/packages/documents/documents/manifests.js +12 -10
- package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.js +1 -3
- package/dist-cms/packages/media/media-types/tree/media-type-tree.server.data-source.js +1 -0
- package/dist-cms/packages/media/media-types/tree/media-type-tree.store.js +1 -0
- package/dist-cms/packages/members/member-type/tree/member-type-tree.server.data-source.js +1 -0
- package/dist-cms/packages/members/member-type/tree/member-type-tree.store.js +1 -0
- package/dist-cms/packages/templating/components/templating-item-menu/templating-item-menu.element.d.ts +0 -1
- package/dist-cms/packages/templating/components/templating-item-menu/templating-item-menu.element.js +55 -64
- package/dist-cms/packages/templating/modals/index.d.ts +1 -0
- package/dist-cms/packages/templating/modals/index.js +1 -0
- package/dist-cms/packages/templating/modals/manifests.js +6 -0
- package/dist-cms/packages/templating/modals/templating-item-picker/templating-item-picker-modal.element.d.ts +1 -1
- package/dist-cms/packages/templating/modals/templating-item-picker/templating-item-picker-modal.element.js +37 -34
- package/dist-cms/packages/templating/modals/templating-item-picker/templating-item-picker-modal.token.d.ts +2 -2
- package/dist-cms/packages/templating/modals/templating-page-field-builder/index.d.ts +2 -0
- package/dist-cms/packages/templating/modals/templating-page-field-builder/index.js +2 -0
- package/dist-cms/packages/templating/modals/templating-page-field-builder/templating-page-field-builder-modal.element.d.ts +19 -0
- package/dist-cms/packages/templating/modals/templating-page-field-builder/templating-page-field-builder-modal.element.js +105 -0
- package/dist-cms/packages/templating/modals/templating-page-field-builder/templating-page-field-builder-modal.token.d.ts +7 -0
- package/dist-cms/packages/templating/modals/templating-page-field-builder/templating-page-field-builder-modal.token.js +7 -0
- package/dist-cms/packages/templating/modals/templating-section-picker/index.d.ts +1 -1
- package/dist-cms/packages/templating/modals/templating-section-picker/index.js +1 -1
- package/dist-cms/packages/templating/modals/templating-section-picker/templating-section-picker-modal.element.d.ts +4 -7
- package/dist-cms/packages/templating/modals/templating-section-picker/templating-section-picker-modal.element.js +133 -94
- package/dist-cms/packages/templating/partial-views/tree/partial-view-tree.server.data-source.js +1 -0
- package/dist-cms/packages/templating/partial-views/tree/partial-view-tree.store.js +1 -0
- package/dist-cms/packages/templating/scripts/tree/script-tree.server.data-source.js +1 -0
- package/dist-cms/packages/templating/scripts/tree/script-tree.store.js +1 -0
- package/dist-cms/packages/templating/stylesheets/tree/stylesheet-tree.server.data-source.js +1 -0
- package/dist-cms/packages/templating/stylesheets/tree/stylesheet-tree.store.js +1 -0
- package/dist-cms/packages/templating/templates/tree/template-tree.server.data-source.js +1 -0
- package/dist-cms/packages/templating/types.d.ts +7 -1
- package/dist-cms/packages/templating/types.js +7 -0
- package/dist-cms/packages/templating/utils/index.js +1 -1
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package-schema.json +73 -0
- package/dist-cms/vscode-html-custom-data.json +27 -44
- package/package.json +1 -1
- package/dist-cms/packages/templating/modals/templating-section-picker/templating-section-picker-input.element.d.ts +0 -24
- package/dist-cms/packages/templating/modals/templating-section-picker/templating-section-picker-input.element.js +0 -157
|
@@ -3963,7 +3963,7 @@
|
|
|
3963
3963
|
"attributes": [
|
|
3964
3964
|
{
|
|
3965
3965
|
"name": "value",
|
|
3966
|
-
"type": "
|
|
3966
|
+
"type": "UmbCollectionColumnConfiguration[]",
|
|
3967
3967
|
"default": "[]"
|
|
3968
3968
|
}
|
|
3969
3969
|
],
|
|
@@ -3971,7 +3971,7 @@
|
|
|
3971
3971
|
{
|
|
3972
3972
|
"name": "value",
|
|
3973
3973
|
"attribute": "value",
|
|
3974
|
-
"type": "
|
|
3974
|
+
"type": "UmbCollectionColumnConfiguration[]",
|
|
3975
3975
|
"default": "[]"
|
|
3976
3976
|
},
|
|
3977
3977
|
{
|
|
@@ -6314,6 +6314,17 @@
|
|
|
6314
6314
|
}
|
|
6315
6315
|
]
|
|
6316
6316
|
},
|
|
6317
|
+
{
|
|
6318
|
+
"name": "umb-workspace-breadcrumb",
|
|
6319
|
+
"path": "./../src/packages/documents/documents/breadcrumb/workspace-breadcrumb.element.ts",
|
|
6320
|
+
"properties": [
|
|
6321
|
+
{
|
|
6322
|
+
"name": "styles",
|
|
6323
|
+
"type": "array",
|
|
6324
|
+
"default": "[\"UmbTextStyles\"]"
|
|
6325
|
+
}
|
|
6326
|
+
]
|
|
6327
|
+
},
|
|
6317
6328
|
{
|
|
6318
6329
|
"name": "umb-create-document-collection-action",
|
|
6319
6330
|
"path": "./../src/packages/documents/documents/collection/action/create-document-collection-action.element.ts",
|
|
@@ -6349,6 +6360,47 @@
|
|
|
6349
6360
|
}
|
|
6350
6361
|
]
|
|
6351
6362
|
},
|
|
6363
|
+
{
|
|
6364
|
+
"name": "umb-document-table-column-name",
|
|
6365
|
+
"path": "./../src/packages/documents/documents/collection/views/table/column-layouts/document-table-column-name.element.ts",
|
|
6366
|
+
"properties": [
|
|
6367
|
+
{
|
|
6368
|
+
"name": "column",
|
|
6369
|
+
"type": "UmbTableColumn"
|
|
6370
|
+
},
|
|
6371
|
+
{
|
|
6372
|
+
"name": "item",
|
|
6373
|
+
"type": "UmbTableItem"
|
|
6374
|
+
},
|
|
6375
|
+
{
|
|
6376
|
+
"name": "value",
|
|
6377
|
+
"type": "UmbDocumentCollectionItemModel"
|
|
6378
|
+
},
|
|
6379
|
+
{
|
|
6380
|
+
"name": "styles",
|
|
6381
|
+
"type": "array",
|
|
6382
|
+
"default": "[null]"
|
|
6383
|
+
}
|
|
6384
|
+
]
|
|
6385
|
+
},
|
|
6386
|
+
{
|
|
6387
|
+
"name": "umb-document-table-column-state",
|
|
6388
|
+
"path": "./../src/packages/documents/documents/collection/views/table/column-layouts/document-table-column-state.element.ts",
|
|
6389
|
+
"properties": [
|
|
6390
|
+
{
|
|
6391
|
+
"name": "column",
|
|
6392
|
+
"type": "UmbTableColumn"
|
|
6393
|
+
},
|
|
6394
|
+
{
|
|
6395
|
+
"name": "item",
|
|
6396
|
+
"type": "UmbTableItem"
|
|
6397
|
+
},
|
|
6398
|
+
{
|
|
6399
|
+
"name": "value",
|
|
6400
|
+
"type": "UmbDocumentCollectionItemModel"
|
|
6401
|
+
}
|
|
6402
|
+
]
|
|
6403
|
+
},
|
|
6352
6404
|
{
|
|
6353
6405
|
"name": "umb-document-table-collection-view",
|
|
6354
6406
|
"path": "./../src/packages/documents/documents/collection/views/table/document-table-collection-view.element.ts",
|
|
@@ -9238,11 +9290,6 @@
|
|
|
9238
9290
|
"name": "value",
|
|
9239
9291
|
"type": "string",
|
|
9240
9292
|
"default": "\"\""
|
|
9241
|
-
},
|
|
9242
|
-
{
|
|
9243
|
-
"name": "hidePartialView",
|
|
9244
|
-
"type": "boolean",
|
|
9245
|
-
"default": "false"
|
|
9246
9293
|
}
|
|
9247
9294
|
],
|
|
9248
9295
|
"properties": [
|
|
@@ -9252,12 +9299,6 @@
|
|
|
9252
9299
|
"type": "string",
|
|
9253
9300
|
"default": "\"\""
|
|
9254
9301
|
},
|
|
9255
|
-
{
|
|
9256
|
-
"name": "hidePartialView",
|
|
9257
|
-
"attribute": "hidePartialView",
|
|
9258
|
-
"type": "boolean",
|
|
9259
|
-
"default": "false"
|
|
9260
|
-
},
|
|
9261
9302
|
{
|
|
9262
9303
|
"name": "styles",
|
|
9263
9304
|
"type": "array",
|
|
@@ -9282,122 +9323,13 @@
|
|
|
9282
9323
|
]
|
|
9283
9324
|
},
|
|
9284
9325
|
{
|
|
9285
|
-
"name": "umb-
|
|
9286
|
-
"path": "./../src/packages/templating/modals/templating-
|
|
9287
|
-
"attributes": [
|
|
9288
|
-
{
|
|
9289
|
-
"name": "show-mandatory",
|
|
9290
|
-
"type": "boolean",
|
|
9291
|
-
"default": "false"
|
|
9292
|
-
},
|
|
9293
|
-
{
|
|
9294
|
-
"name": "show-input",
|
|
9295
|
-
"type": "boolean",
|
|
9296
|
-
"default": "false"
|
|
9297
|
-
}
|
|
9298
|
-
],
|
|
9326
|
+
"name": "umb-templating-page-field-builder-modal",
|
|
9327
|
+
"path": "./../src/packages/templating/modals/templating-page-field-builder/templating-page-field-builder-modal.element.ts",
|
|
9299
9328
|
"properties": [
|
|
9300
|
-
{
|
|
9301
|
-
"name": "showMandatory",
|
|
9302
|
-
"attribute": "show-mandatory",
|
|
9303
|
-
"type": "boolean",
|
|
9304
|
-
"default": "false"
|
|
9305
|
-
},
|
|
9306
|
-
{
|
|
9307
|
-
"name": "showInput",
|
|
9308
|
-
"attribute": "show-input",
|
|
9309
|
-
"type": "boolean",
|
|
9310
|
-
"default": "false"
|
|
9311
|
-
},
|
|
9312
|
-
{
|
|
9313
|
-
"name": "input"
|
|
9314
|
-
},
|
|
9315
|
-
{
|
|
9316
|
-
"name": "form",
|
|
9317
|
-
"type": "HTMLFormElement | undefined"
|
|
9318
|
-
},
|
|
9319
|
-
{
|
|
9320
|
-
"name": "checkbox",
|
|
9321
|
-
"type": "HTMLFormElement | undefined"
|
|
9322
|
-
},
|
|
9323
|
-
{
|
|
9324
|
-
"name": "snippet",
|
|
9325
|
-
"type": "string"
|
|
9326
|
-
},
|
|
9327
|
-
{
|
|
9328
|
-
"name": "snippetMethod",
|
|
9329
|
-
"type": "((value: string, isMandatory: boolean) => string) | undefined"
|
|
9330
|
-
},
|
|
9331
|
-
{
|
|
9332
|
-
"name": "inputValue"
|
|
9333
|
-
},
|
|
9334
|
-
{
|
|
9335
|
-
"name": "isMandatory"
|
|
9336
|
-
},
|
|
9337
|
-
{
|
|
9338
|
-
"name": "styles",
|
|
9339
|
-
"type": "array",
|
|
9340
|
-
"default": "[null,\"UmbTextStyles\",null]"
|
|
9341
|
-
}
|
|
9342
|
-
]
|
|
9343
|
-
},
|
|
9344
|
-
{
|
|
9345
|
-
"name": "umb-insert-section-input",
|
|
9346
|
-
"path": "./../src/packages/templating/modals/templating-section-picker/templating-section-picker-input.element.ts",
|
|
9347
|
-
"attributes": [
|
|
9348
|
-
{
|
|
9349
|
-
"name": "show-mandatory",
|
|
9350
|
-
"type": "boolean",
|
|
9351
|
-
"default": "false"
|
|
9352
|
-
},
|
|
9353
|
-
{
|
|
9354
|
-
"name": "show-input",
|
|
9355
|
-
"type": "boolean",
|
|
9356
|
-
"default": "false"
|
|
9357
|
-
}
|
|
9358
|
-
],
|
|
9359
|
-
"properties": [
|
|
9360
|
-
{
|
|
9361
|
-
"name": "showMandatory",
|
|
9362
|
-
"attribute": "show-mandatory",
|
|
9363
|
-
"type": "boolean",
|
|
9364
|
-
"default": "false"
|
|
9365
|
-
},
|
|
9366
|
-
{
|
|
9367
|
-
"name": "showInput",
|
|
9368
|
-
"attribute": "show-input",
|
|
9369
|
-
"type": "boolean",
|
|
9370
|
-
"default": "false"
|
|
9371
|
-
},
|
|
9372
|
-
{
|
|
9373
|
-
"name": "input"
|
|
9374
|
-
},
|
|
9375
|
-
{
|
|
9376
|
-
"name": "form",
|
|
9377
|
-
"type": "HTMLFormElement | undefined"
|
|
9378
|
-
},
|
|
9379
|
-
{
|
|
9380
|
-
"name": "checkbox",
|
|
9381
|
-
"type": "HTMLFormElement | undefined"
|
|
9382
|
-
},
|
|
9383
|
-
{
|
|
9384
|
-
"name": "snippet",
|
|
9385
|
-
"type": "string"
|
|
9386
|
-
},
|
|
9387
|
-
{
|
|
9388
|
-
"name": "snippetMethod",
|
|
9389
|
-
"type": "((value: string, isMandatory: boolean) => string) | undefined"
|
|
9390
|
-
},
|
|
9391
|
-
{
|
|
9392
|
-
"name": "inputValue"
|
|
9393
|
-
},
|
|
9394
|
-
{
|
|
9395
|
-
"name": "isMandatory"
|
|
9396
|
-
},
|
|
9397
9329
|
{
|
|
9398
9330
|
"name": "styles",
|
|
9399
9331
|
"type": "array",
|
|
9400
|
-
"default": "[
|
|
9332
|
+
"default": "[\"UmbTextStyles\",null]"
|
|
9401
9333
|
}
|
|
9402
9334
|
]
|
|
9403
9335
|
},
|
|
@@ -9405,24 +9337,6 @@
|
|
|
9405
9337
|
"name": "umb-templating-section-picker-modal",
|
|
9406
9338
|
"path": "./../src/packages/templating/modals/templating-section-picker/templating-section-picker-modal.element.ts",
|
|
9407
9339
|
"properties": [
|
|
9408
|
-
{
|
|
9409
|
-
"name": "checkboxes",
|
|
9410
|
-
"type": "NodeListOf<UmbInsertSectionCheckboxElement>"
|
|
9411
|
-
},
|
|
9412
|
-
{
|
|
9413
|
-
"name": "selectedCheckbox",
|
|
9414
|
-
"type": "UmbInsertSectionCheckboxElement | null | undefined"
|
|
9415
|
-
},
|
|
9416
|
-
{
|
|
9417
|
-
"name": "snippet",
|
|
9418
|
-
"type": "string",
|
|
9419
|
-
"default": "\"\""
|
|
9420
|
-
},
|
|
9421
|
-
{
|
|
9422
|
-
"name": "snippetMethods",
|
|
9423
|
-
"type": "((sectionName: string, isMandatory: boolean) => string)[]",
|
|
9424
|
-
"default": "[\"getRenderBodySnippet\",\"getRenderSectionSnippet\",\"getAddSectionSnippet\"]"
|
|
9425
|
-
},
|
|
9426
9340
|
{
|
|
9427
9341
|
"name": "styles",
|
|
9428
9342
|
"type": "array",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { UmbCollectionConfiguration, UmbCollectionContext } from '../types.js';
|
|
1
|
+
import type { UmbCollectionColumnConfiguration, UmbCollectionConfiguration, UmbCollectionContext } from '../types.js';
|
|
2
2
|
import { UmbCollectionViewManager } from '../collection-view.manager.js';
|
|
3
|
-
import type { UmbCollectionRepository } from '../../repository/index.js';
|
|
4
3
|
import { UmbContextBase } from '../../../../libs/class-api/index.js';
|
|
5
|
-
import type { UmbControllerHost } from '../../../../libs/controller-api/index.js';
|
|
6
4
|
import { UmbContextToken } from '../../../../libs/context-api/index.js';
|
|
7
|
-
import
|
|
5
|
+
import { UmbSelectionManager, UmbPaginationManager } from '../../../../shared/utils/index.js';
|
|
8
6
|
import type { ManifestCollection } from '../../extension-registry/index.js';
|
|
7
|
+
import type { UmbApi } from '../../../../libs/extension-api/index.js';
|
|
9
8
|
import type { UmbCollectionFilterModel } from '../index.js';
|
|
10
|
-
import {
|
|
9
|
+
import type { UmbCollectionRepository } from '../../repository/index.js';
|
|
10
|
+
import type { UmbControllerHost } from '../../../../libs/controller-api/index.js';
|
|
11
11
|
export declare class UmbDefaultCollectionContext<CollectionItemType = any, FilterModelType extends UmbCollectionFilterModel = any> extends UmbContextBase<UmbDefaultCollectionContext> implements UmbCollectionContext, UmbApi {
|
|
12
12
|
#private;
|
|
13
13
|
readonly items: import("rxjs").Observable<CollectionItemType[]>;
|
|
14
14
|
readonly totalItems: import("rxjs").Observable<number>;
|
|
15
15
|
readonly filter: import("rxjs").Observable<object | FilterModelType>;
|
|
16
|
-
readonly userDefinedProperties: import("rxjs").Observable<
|
|
16
|
+
readonly userDefinedProperties: import("rxjs").Observable<UmbCollectionColumnConfiguration[]>;
|
|
17
17
|
repository?: UmbCollectionRepository;
|
|
18
18
|
readonly pagination: UmbPaginationManager;
|
|
19
19
|
readonly selection: UmbSelectionManager;
|
|
@@ -16,7 +16,14 @@ export interface UmbCollectionConfiguration {
|
|
|
16
16
|
orderDirection?: string;
|
|
17
17
|
pageSize?: number;
|
|
18
18
|
useInfiniteEditor?: boolean;
|
|
19
|
-
userDefinedProperties?: Array<
|
|
19
|
+
userDefinedProperties?: Array<UmbCollectionColumnConfiguration>;
|
|
20
|
+
}
|
|
21
|
+
export interface UmbCollectionColumnConfiguration {
|
|
22
|
+
alias: string;
|
|
23
|
+
header: string;
|
|
24
|
+
isSystem: 1 | 0;
|
|
25
|
+
elementName?: string;
|
|
26
|
+
nameTemplate?: string;
|
|
20
27
|
}
|
|
21
28
|
export interface UmbCollectionContext {
|
|
22
29
|
setConfig(config: UmbCollectionConfiguration): void;
|
|
@@ -16,6 +16,11 @@ export interface UmbTableColumn {
|
|
|
16
16
|
width?: string;
|
|
17
17
|
allowSorting?: boolean;
|
|
18
18
|
}
|
|
19
|
+
export interface UmbTableColumnLayoutElement extends HTMLElement {
|
|
20
|
+
column: UmbTableColumn;
|
|
21
|
+
item: UmbTableItem;
|
|
22
|
+
value: any;
|
|
23
|
+
}
|
|
19
24
|
export interface UmbTableConfig {
|
|
20
25
|
allowSelection: boolean;
|
|
21
26
|
hideIcon?: boolean;
|
|
@@ -153,7 +153,7 @@ let UmbTableElement = class UmbTableElement extends LitElement {
|
|
|
153
153
|
if (this.config.hideIcon && !this.config.allowSelection)
|
|
154
154
|
return;
|
|
155
155
|
return html `<uui-table-cell>
|
|
156
|
-
${when(!this.config.hideIcon, () => html `<uui-icon name=${ifDefined(item.icon)}></uui-icon>`)}
|
|
156
|
+
${when(!this.config.hideIcon, () => html `<uui-icon name=${ifDefined(item.icon ?? undefined)}></uui-icon>`)}
|
|
157
157
|
${when(this.config.allowSelection, () => html ` <uui-checkbox
|
|
158
158
|
label="Select Row"
|
|
159
159
|
@click=${(e) => e.stopPropagation()}
|
|
@@ -170,7 +170,7 @@ let UmbTableElement = class UmbTableElement extends LitElement {
|
|
|
170
170
|
_renderCellContent(column, item) {
|
|
171
171
|
const value = item.data.find((data) => data.columnAlias === column.alias)?.value;
|
|
172
172
|
if (column.elementName) {
|
|
173
|
-
const element = document.createElement(column.elementName);
|
|
173
|
+
const element = document.createElement(column.elementName);
|
|
174
174
|
element.column = column;
|
|
175
175
|
element.item = item;
|
|
176
176
|
element.value = value;
|
|
@@ -237,6 +237,10 @@ UmbTableElement.styles = [
|
|
|
237
237
|
justify-content: space-between;
|
|
238
238
|
width: 100%;
|
|
239
239
|
}
|
|
240
|
+
|
|
241
|
+
uui-table-cell uui-icon {
|
|
242
|
+
vertical-align: top;
|
|
243
|
+
}
|
|
240
244
|
`,
|
|
241
245
|
];
|
|
242
246
|
__decorate([
|
|
@@ -30,6 +30,7 @@ import type { ManifestUserProfileApp } from './user-profile-app.model.js';
|
|
|
30
30
|
import type { ManifestWorkspace } from './workspace.model.js';
|
|
31
31
|
import type { ManifestWorkspaceAction } from './workspace-action.model.js';
|
|
32
32
|
import type { ManifestWorkspaceContext } from './workspace-context.model.js';
|
|
33
|
+
import type { ManifestWorkspaceFooterApp } from './workspace-footer-app.model.js';
|
|
33
34
|
import type { ManifestWorkspaceView } from './workspace-view.model.js';
|
|
34
35
|
import type { ManifestUserPermission } from './user-permission.model.js';
|
|
35
36
|
import type { ManifestUserGranularPermission } from './user-granular-permission.model.js';
|
|
@@ -69,6 +70,7 @@ export type * from './user-permission.model.js';
|
|
|
69
70
|
export type * from './user-profile-app.model.js';
|
|
70
71
|
export type * from './workspace-action.model.js';
|
|
71
72
|
export type * from './workspace-context.model.js';
|
|
73
|
+
export type * from './workspace-footer-app.model.js';
|
|
72
74
|
export type * from './workspace-view.model.js';
|
|
73
75
|
export type * from './workspace.model.js';
|
|
74
|
-
export type ManifestTypes = ManifestBundle<ManifestTypes> | ManifestCondition | ManifestBlockEditorCustomView | ManifestCollection | ManifestCollectionView | ManifestCollectionAction | ManifestDashboard | ManifestDashboardCollection | ManifestDynamicRootOrigin | ManifestDynamicRootQueryStep | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntryPoint | ManifestExternalLoginProvider | ManifestGlobalContext | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestItemStore | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestModal | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorSchema | ManifestPropertyEditorUi | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestStore | ManifestTheme | ManifestTinyMcePlugin | ManifestLocalization | ManifestTree | ManifestTreeItem | ManifestTreeStore | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceContext | ManifestWorkspaceView | ManifestUserPermission | ManifestUserGranularPermission | ManifestBase;
|
|
76
|
+
export type ManifestTypes = ManifestBundle<ManifestTypes> | ManifestCondition | ManifestBlockEditorCustomView | ManifestCollection | ManifestCollectionView | ManifestCollectionAction | ManifestDashboard | ManifestDashboardCollection | ManifestDynamicRootOrigin | ManifestDynamicRootQueryStep | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntryPoint | ManifestExternalLoginProvider | ManifestGlobalContext | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestItemStore | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestModal | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorSchema | ManifestPropertyEditorUi | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestStore | ManifestTheme | ManifestTinyMcePlugin | ManifestLocalization | ManifestTree | ManifestTreeItem | ManifestTreeStore | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceContext | ManifestWorkspaceFooterApp | ManifestWorkspaceView | ManifestUserPermission | ManifestUserGranularPermission | ManifestBase;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ConditionTypes } from '../conditions/types.js';
|
|
2
|
+
import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '../../../../libs/extension-api/index.js';
|
|
3
|
+
export interface ManifestWorkspaceFooterApp extends ManifestElementAndApi<HTMLElement, any>, ManifestWithDynamicConditions<ConditionTypes> {
|
|
4
|
+
type: 'workspaceFooterApp';
|
|
5
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
+
import type { UmbCollectionColumnConfiguration } from '../../../../../../core/collection/types.js';
|
|
1
2
|
import type { UmbPropertyEditorUiElement } from '../../../../../extension-registry/index.js';
|
|
2
3
|
import type { UmbPropertyEditorConfigCollection } from '../../../../index.js';
|
|
3
4
|
import { UmbLitElement } from '../../../../../lit-element/index.js';
|
|
4
|
-
interface ColumnConfig {
|
|
5
|
-
alias: string;
|
|
6
|
-
header: string;
|
|
7
|
-
isSystem: 1 | 0;
|
|
8
|
-
nameTemplate?: string;
|
|
9
|
-
}
|
|
10
5
|
/**
|
|
11
6
|
* @element umb-property-editor-ui-collection-view-column-configuration
|
|
12
7
|
*/
|
|
13
8
|
export declare class UmbPropertyEditorUICollectionViewColumnConfigurationElement extends UmbLitElement implements UmbPropertyEditorUiElement {
|
|
14
9
|
#private;
|
|
15
|
-
value: Array<
|
|
10
|
+
value: Array<UmbCollectionColumnConfiguration>;
|
|
16
11
|
config?: UmbPropertyEditorConfigCollection;
|
|
17
12
|
private _options;
|
|
18
13
|
private _selectEl;
|
|
@@ -120,7 +120,7 @@ _UmbPropertyEditorUICollectionViewColumnConfigurationElement_renderTable = funct
|
|
|
120
120
|
>Remove</uui-button
|
|
121
121
|
>
|
|
122
122
|
</uui-table-cell>
|
|
123
|
-
</uui-table-row
|
|
123
|
+
</uui-table-row>`)}
|
|
124
124
|
</uui-table>`;
|
|
125
125
|
};
|
|
126
126
|
_UmbPropertyEditorUICollectionViewColumnConfigurationElement_renderSystemFieldRow = function _UmbPropertyEditorUICollectionViewColumnConfigurationElement_renderSystemFieldRow(configuration) {
|
package/dist-cms/packages/core/workspace/components/workspace-footer/workspace-footer.element.js
CHANGED
|
@@ -43,6 +43,7 @@ let UmbWorkspaceFooterLayoutElement = class UmbWorkspaceFooterLayoutElement exte
|
|
|
43
43
|
render() {
|
|
44
44
|
return html `
|
|
45
45
|
<umb-footer-layout>
|
|
46
|
+
<umb-extension-slot type="workspaceFooterApp"></umb-extension-slot>
|
|
46
47
|
<slot></slot>
|
|
47
48
|
${this._modalContext
|
|
48
49
|
? html `<uui-button
|
|
@@ -39,6 +39,7 @@ export class UmbDocumentTypeTreeStore extends UmbUniqueTreeStore {
|
|
|
39
39
|
_UmbDocumentTypeTreeStore_updateTreeItemMapper.set(this, (item) => {
|
|
40
40
|
return {
|
|
41
41
|
name: item.name,
|
|
42
|
+
icon: item.icon,
|
|
42
43
|
};
|
|
43
44
|
});
|
|
44
45
|
new UmbStoreConnector(host, this, UMB_DOCUMENT_TYPE_DETAIL_STORE_CONTEXT, (item) => __classPrivateFieldGet(this, _UmbDocumentTypeTreeStore_createTreeItemMapper, "f").call(this, item), (item) => __classPrivateFieldGet(this, _UmbDocumentTypeTreeStore_updateTreeItemMapper, "f").call(this, item));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const manifests = [
|
|
2
|
+
{
|
|
3
|
+
type: 'workspaceFooterApp',
|
|
4
|
+
alias: 'Umb.WorkspaceFooterApp.Document.Breadcrumb',
|
|
5
|
+
name: 'Document Breadcrumb Workspace Footer App',
|
|
6
|
+
weight: 10,
|
|
7
|
+
element: () => import('./workspace-breadcrumb.element.js'),
|
|
8
|
+
conditions: [
|
|
9
|
+
{
|
|
10
|
+
alias: 'Umb.Condition.WorkspaceAlias',
|
|
11
|
+
match: 'Umb.Workspace.Document',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UmbLitElement } from '../../../core/lit-element/index.js';
|
|
2
|
+
export declare class UmbWorkspaceBreadcrumbElement extends UmbLitElement {
|
|
3
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
4
|
+
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
5
|
+
}
|
|
6
|
+
export default UmbWorkspaceBreadcrumbElement;
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'umb-workspace-breadcrumb': UmbWorkspaceBreadcrumbElement;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, customElement } from '../../../../external/lit/index.js';
|
|
8
|
+
import { UmbTextStyles } from '../../../../shared/style/index.js';
|
|
9
|
+
import { UmbLitElement } from '../../../core/lit-element/index.js';
|
|
10
|
+
// TODO: POC element. This will be updated when the final implementation is done.
|
|
11
|
+
let UmbWorkspaceBreadcrumbElement = class UmbWorkspaceBreadcrumbElement extends UmbLitElement {
|
|
12
|
+
render() {
|
|
13
|
+
return html `Document Breadcrumbs here`;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
UmbWorkspaceBreadcrumbElement.styles = [UmbTextStyles];
|
|
17
|
+
UmbWorkspaceBreadcrumbElement = __decorate([
|
|
18
|
+
customElement('umb-workspace-breadcrumb')
|
|
19
|
+
], UmbWorkspaceBreadcrumbElement);
|
|
20
|
+
export { UmbWorkspaceBreadcrumbElement };
|
|
21
|
+
export default UmbWorkspaceBreadcrumbElement;
|
|
@@ -3,9 +3,11 @@ import type { ManifestCollectionAction } from '../../../../core/extension-regist
|
|
|
3
3
|
export declare class UmbCreateDocumentCollectionActionElement extends UmbLitElement {
|
|
4
4
|
#private;
|
|
5
5
|
private _allowedDocumentTypes;
|
|
6
|
+
private _createDocumentPath;
|
|
6
7
|
private _documentUnique?;
|
|
7
8
|
private _documentTypeUnique?;
|
|
8
9
|
private _popoverOpen;
|
|
10
|
+
private _useInfiniteEditor;
|
|
9
11
|
manifest?: ManifestCollectionAction;
|
|
10
12
|
constructor();
|
|
11
13
|
firstUpdated(): Promise<void>;
|
|
@@ -9,18 +9,30 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _UmbCreateDocumentCollectionActionElement_instances, _UmbCreateDocumentCollectionActionElement_documentTypeStructureRepository, _UmbCreateDocumentCollectionActionElement_retrieveAllowedDocumentTypesOf, _UmbCreateDocumentCollectionActionElement_onPopoverToggle,
|
|
12
|
+
var _UmbCreateDocumentCollectionActionElement_instances, _UmbCreateDocumentCollectionActionElement_documentTypeStructureRepository, _UmbCreateDocumentCollectionActionElement_retrieveAllowedDocumentTypesOf, _UmbCreateDocumentCollectionActionElement_onPopoverToggle, _UmbCreateDocumentCollectionActionElement_getCreateUrl, _UmbCreateDocumentCollectionActionElement_renderCreateButton, _UmbCreateDocumentCollectionActionElement_renderDropdown;
|
|
13
13
|
import { html, customElement, property, state, map } from '../../../../../external/lit/index.js';
|
|
14
14
|
import { UmbDocumentTypeStructureRepository } from '../../../document-types/index.js';
|
|
15
15
|
import { UmbLitElement } from '../../../../core/lit-element/index.js';
|
|
16
|
+
import { UMB_DEFAULT_COLLECTION_CONTEXT } from '../../../../core/collection/index.js';
|
|
16
17
|
import { UMB_DOCUMENT_WORKSPACE_CONTEXT } from '../../index.js';
|
|
18
|
+
import { UMB_WORKSPACE_MODAL, UmbModalRouteRegistrationController } from '../../../../core/modal/index.js';
|
|
17
19
|
let UmbCreateDocumentCollectionActionElement = class UmbCreateDocumentCollectionActionElement extends UmbLitElement {
|
|
18
20
|
constructor() {
|
|
19
21
|
super();
|
|
20
22
|
_UmbCreateDocumentCollectionActionElement_instances.add(this);
|
|
21
23
|
this._allowedDocumentTypes = [];
|
|
24
|
+
this._createDocumentPath = '';
|
|
22
25
|
this._popoverOpen = false;
|
|
26
|
+
this._useInfiniteEditor = false;
|
|
23
27
|
_UmbCreateDocumentCollectionActionElement_documentTypeStructureRepository.set(this, new UmbDocumentTypeStructureRepository(this));
|
|
28
|
+
new UmbModalRouteRegistrationController(this, UMB_WORKSPACE_MODAL)
|
|
29
|
+
.addAdditionalPath('document')
|
|
30
|
+
.onSetup(() => {
|
|
31
|
+
return { data: { entityType: 'document', preset: {} } };
|
|
32
|
+
})
|
|
33
|
+
.observeRouteBuilder((routeBuilder) => {
|
|
34
|
+
this._createDocumentPath = routeBuilder({});
|
|
35
|
+
});
|
|
24
36
|
this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (workspaceContext) => {
|
|
25
37
|
this.observe(workspaceContext.unique, (unique) => {
|
|
26
38
|
this._documentUnique = unique;
|
|
@@ -29,6 +41,11 @@ let UmbCreateDocumentCollectionActionElement = class UmbCreateDocumentCollection
|
|
|
29
41
|
this._documentTypeUnique = documentTypeUnique;
|
|
30
42
|
});
|
|
31
43
|
});
|
|
44
|
+
this.consumeContext(UMB_DEFAULT_COLLECTION_CONTEXT, (collectionContext) => {
|
|
45
|
+
this.observe(collectionContext.filter, (filter) => {
|
|
46
|
+
this._useInfiniteEditor = filter.useInfiniteEditor == true;
|
|
47
|
+
});
|
|
48
|
+
});
|
|
32
49
|
}
|
|
33
50
|
async firstUpdated() {
|
|
34
51
|
if (this._documentTypeUnique) {
|
|
@@ -50,13 +67,11 @@ _UmbCreateDocumentCollectionActionElement_retrieveAllowedDocumentTypesOf = async
|
|
|
50
67
|
_UmbCreateDocumentCollectionActionElement_onPopoverToggle = function _UmbCreateDocumentCollectionActionElement_onPopoverToggle(event) {
|
|
51
68
|
this._popoverOpen = event.newState === 'open';
|
|
52
69
|
};
|
|
53
|
-
_UmbCreateDocumentCollectionActionElement_onClick = function _UmbCreateDocumentCollectionActionElement_onClick(item, e) {
|
|
54
|
-
e.preventDefault();
|
|
55
|
-
// TODO: Do anything else here? [LK]
|
|
56
|
-
};
|
|
57
70
|
_UmbCreateDocumentCollectionActionElement_getCreateUrl = function _UmbCreateDocumentCollectionActionElement_getCreateUrl(item) {
|
|
58
|
-
// TODO:
|
|
59
|
-
return
|
|
71
|
+
// TODO: [LK] I need help with this. I don't know what the infinity editor URL should be.
|
|
72
|
+
return this._useInfiniteEditor
|
|
73
|
+
? `${this._createDocumentPath}create/${this._documentUnique ?? 'null'}/${item.unique}`
|
|
74
|
+
: `section/content/workspace/document/create/${this._documentUnique ?? 'null'}/${item.unique}`;
|
|
60
75
|
};
|
|
61
76
|
_UmbCreateDocumentCollectionActionElement_renderCreateButton = function _UmbCreateDocumentCollectionActionElement_renderCreateButton() {
|
|
62
77
|
if (this._allowedDocumentTypes.length !== 1)
|
|
@@ -64,7 +79,6 @@ _UmbCreateDocumentCollectionActionElement_renderCreateButton = function _UmbCrea
|
|
|
64
79
|
const item = this._allowedDocumentTypes[0];
|
|
65
80
|
const label = (this.manifest?.meta.label ?? this.localize.term('general_create')) + ' ' + item.name;
|
|
66
81
|
return html `<uui-button
|
|
67
|
-
@click=${(e) => __classPrivateFieldGet(this, _UmbCreateDocumentCollectionActionElement_instances, "m", _UmbCreateDocumentCollectionActionElement_onClick).call(this, item, e)}
|
|
68
82
|
color="default"
|
|
69
83
|
href=${__classPrivateFieldGet(this, _UmbCreateDocumentCollectionActionElement_instances, "m", _UmbCreateDocumentCollectionActionElement_getCreateUrl).call(this, item)}
|
|
70
84
|
label=${label}
|
|
@@ -86,10 +100,7 @@ _UmbCreateDocumentCollectionActionElement_renderDropdown = function _UmbCreateDo
|
|
|
86
100
|
<umb-popover-layout>
|
|
87
101
|
<uui-scroll-container>
|
|
88
102
|
${map(this._allowedDocumentTypes, (item) => html `
|
|
89
|
-
<uui-menu-item
|
|
90
|
-
@click=${(e) => __classPrivateFieldGet(this, _UmbCreateDocumentCollectionActionElement_instances, "m", _UmbCreateDocumentCollectionActionElement_onClick).call(this, item, e)}
|
|
91
|
-
label=${item.name}
|
|
92
|
-
href=${__classPrivateFieldGet(this, _UmbCreateDocumentCollectionActionElement_instances, "m", _UmbCreateDocumentCollectionActionElement_getCreateUrl).call(this, item)}>
|
|
103
|
+
<uui-menu-item label=${item.name} href=${__classPrivateFieldGet(this, _UmbCreateDocumentCollectionActionElement_instances, "m", _UmbCreateDocumentCollectionActionElement_getCreateUrl).call(this, item)}>
|
|
93
104
|
<uui-icon slot="icon" name=${item.icon ?? 'icon-document'}></uui-icon>
|
|
94
105
|
</uui-menu-item>
|
|
95
106
|
`)}
|
|
@@ -101,6 +112,9 @@ _UmbCreateDocumentCollectionActionElement_renderDropdown = function _UmbCreateDo
|
|
|
101
112
|
__decorate([
|
|
102
113
|
state()
|
|
103
114
|
], UmbCreateDocumentCollectionActionElement.prototype, "_allowedDocumentTypes", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
state()
|
|
117
|
+
], UmbCreateDocumentCollectionActionElement.prototype, "_createDocumentPath", void 0);
|
|
104
118
|
__decorate([
|
|
105
119
|
state()
|
|
106
120
|
], UmbCreateDocumentCollectionActionElement.prototype, "_documentUnique", void 0);
|
|
@@ -110,6 +124,9 @@ __decorate([
|
|
|
110
124
|
__decorate([
|
|
111
125
|
state()
|
|
112
126
|
], UmbCreateDocumentCollectionActionElement.prototype, "_popoverOpen", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
state()
|
|
129
|
+
], UmbCreateDocumentCollectionActionElement.prototype, "_useInfiniteEditor", void 0);
|
|
113
130
|
__decorate([
|
|
114
131
|
property({ attribute: false })
|
|
115
132
|
], UmbCreateDocumentCollectionActionElement.prototype, "manifest", void 0);
|