@umbraco-cms/backoffice 14.0.0--preview005-c0d3d16d → 14.0.0--preview005-d8ecd776

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.
Files changed (77) hide show
  1. package/dist-cms/custom-elements.json +26 -12
  2. package/dist-cms/libs/class-api/class.mixin.d.ts +25 -0
  3. package/dist-cms/libs/class-api/class.mixin.js +0 -25
  4. package/dist-cms/mocks/data/user/user.db.d.ts +1 -1
  5. package/dist-cms/mocks/data/user/user.db.js +2 -2
  6. package/dist-cms/packages/block/block/workspace/views/edit/block-workspace-view-edit-no-router.element.js +3 -0
  7. package/dist-cms/packages/core/property-editor/schemas/Umbraco.ColorPicker.js +1 -1
  8. package/dist-cms/packages/core/property-editor/uis/checkbox-list/manifests.js +1 -1
  9. package/dist-cms/packages/core/property-editor/uis/collection-view/config/bulk-action-permissions/manifests.js +1 -1
  10. package/dist-cms/packages/core/property-editor/uis/collection-view/config/column-configuration/manifests.js +1 -1
  11. package/dist-cms/packages/core/property-editor/uis/collection-view/config/layout-configuration/manifests.js +1 -1
  12. package/dist-cms/packages/core/property-editor/uis/collection-view/config/order-by/manifests.js +1 -1
  13. package/dist-cms/packages/core/property-editor/uis/collection-view/manifests.js +1 -1
  14. package/dist-cms/packages/core/property-editor/uis/color-picker/manifests.js +1 -1
  15. package/dist-cms/packages/core/property-editor/uis/color-swatches-editor/manifests.js +11 -0
  16. package/dist-cms/packages/core/property-editor/uis/{color-editor/property-editor-ui-color-editor.element.d.ts → color-swatches-editor/property-editor-ui-color-swatches-editor.element.d.ts} +4 -4
  17. package/dist-cms/packages/core/property-editor/uis/{color-editor/property-editor-ui-color-editor.element.js → color-swatches-editor/property-editor-ui-color-swatches-editor.element.js} +19 -19
  18. package/dist-cms/packages/core/property-editor/uis/date-picker/manifests.js +1 -1
  19. package/dist-cms/packages/core/property-editor/uis/dropdown/manifests.js +1 -1
  20. package/dist-cms/packages/core/property-editor/uis/eye-dropper/manifests.js +1 -1
  21. package/dist-cms/packages/core/property-editor/uis/icon-picker/manifests.js +1 -1
  22. package/dist-cms/packages/core/property-editor/uis/label/manifests.js +1 -1
  23. package/dist-cms/packages/core/property-editor/uis/manifests.js +34 -46
  24. package/dist-cms/packages/core/property-editor/uis/member-group-picker/manifests.js +1 -1
  25. package/dist-cms/packages/core/property-editor/uis/member-picker/manifests.js +1 -1
  26. package/dist-cms/packages/core/property-editor/uis/multi-url-picker/manifests.js +1 -1
  27. package/dist-cms/packages/core/property-editor/uis/multiple-text-string/manifests.js +1 -1
  28. package/dist-cms/packages/core/property-editor/uis/number/manifests.js +14 -2
  29. package/dist-cms/packages/core/property-editor/uis/number-range/manifests.js +1 -1
  30. package/dist-cms/packages/core/property-editor/uis/order-direction/manifests.js +1 -1
  31. package/dist-cms/packages/core/property-editor/uis/overlay-size/manifests.js +1 -1
  32. package/dist-cms/packages/core/property-editor/uis/radio-button-list/manifests.js +1 -1
  33. package/dist-cms/packages/core/property-editor/uis/slider/manifests.js +1 -1
  34. package/dist-cms/packages/core/property-editor/uis/text-box/manifests.js +2 -2
  35. package/dist-cms/packages/core/property-editor/uis/textarea/manifests.js +1 -1
  36. package/dist-cms/packages/core/property-editor/uis/tiny-mce/manifests.js +1 -1
  37. package/dist-cms/packages/core/property-editor/uis/toggle/manifests.js +1 -1
  38. package/dist-cms/packages/core/property-editor/uis/tree-picker/config/source-picker/manifests.js +1 -1
  39. package/dist-cms/packages/core/property-editor/uis/tree-picker/config/source-type-picker/manifests.js +1 -1
  40. package/dist-cms/packages/core/property-editor/uis/tree-picker/manifests.js +1 -1
  41. package/dist-cms/packages/core/property-editor/uis/upload-field/manifests.js +1 -1
  42. package/dist-cms/packages/core/property-editor/uis/user-picker/manifests.js +1 -1
  43. package/dist-cms/packages/core/property-editor/uis/value-type/manifests.js +1 -1
  44. package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.js +3 -0
  45. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/culture-and-hostnames.action.d.ts +9 -0
  46. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/culture-and-hostnames.action.js +37 -0
  47. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/index.d.ts +2 -0
  48. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/index.js +2 -0
  49. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/manifests.d.ts +2 -0
  50. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/manifests.js +27 -0
  51. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/modal/culture-and-hostnames-modal.element.d.ts +19 -0
  52. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/modal/culture-and-hostnames-modal.element.js +236 -0
  53. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/modal/culture-and-hostnames-modal.token.d.ts +10 -0
  54. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/modal/culture-and-hostnames-modal.token.js +7 -0
  55. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/modal/index.d.ts +2 -0
  56. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/modal/index.js +2 -0
  57. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/culture-and-hostnames.repository.d.ts +18 -0
  58. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/culture-and-hostnames.repository.js +47 -0
  59. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/culture-and-hostnames.server.data.d.ts +30 -0
  60. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/culture-and-hostnames.server.data.js +53 -0
  61. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/index.d.ts +2 -0
  62. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/index.js +2 -0
  63. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/manifests.d.ts +3 -0
  64. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames/repository/manifests.js +9 -0
  65. package/dist-cms/packages/documents/documents/entity-actions/index.d.ts +1 -0
  66. package/dist-cms/packages/documents/documents/entity-actions/index.js +1 -0
  67. package/dist-cms/packages/documents/documents/entity-actions/manifests.js +2 -14
  68. package/dist-cms/packages/documents/documents/index.d.ts +1 -0
  69. package/dist-cms/packages/documents/documents/index.js +1 -0
  70. package/dist-cms/packages/media/media-types/workspace/views/design/media-type-workspace-view-edit.element.js +3 -0
  71. package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
  72. package/dist-cms/vscode-html-custom-data.json +11 -6
  73. package/package.json +1 -1
  74. package/dist-cms/packages/core/property-editor/uis/color-editor/manifests.js +0 -11
  75. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames.action.d.ts +0 -7
  76. package/dist-cms/packages/documents/documents/entity-actions/culture-and-hostnames.action.js +0 -10
  77. /package/dist-cms/packages/core/property-editor/uis/{color-editor → color-swatches-editor}/manifests.d.ts +0 -0
@@ -0,0 +1,30 @@
1
+ import type { DomainsPresentationModelBaseModel } from '../../../../../../external/backend-api/index.js';
2
+ import type { UmbControllerHost } from '../../../../../../libs/controller-api/index.js';
3
+ /**
4
+ * A data source for the Document Culture and Hostnames that fetches data from the server
5
+ * @export
6
+ * @class UmbDocumentCultureAndHostnamesServerDataSource
7
+ * @implements {RepositoryDetailDataSource}
8
+ */
9
+ export declare class UmbDocumentCultureAndHostnamesServerDataSource {
10
+ #private;
11
+ /**
12
+ * Creates an instance of UmbDocumentCultureAndHostnamesServerDataSource.
13
+ * @param {UmbControllerHost} host
14
+ * @memberof UmbDocumentCultureAndHostnamesServerDataSource
15
+ */
16
+ constructor(host: UmbControllerHost);
17
+ /**
18
+ * Fetches the Culture and Hostnames for the given Document unique
19
+ * @param {string} unique
20
+ * @memberof UmbDocumentCultureAndHostnamesServerDataSource
21
+ */
22
+ read(unique: string): Promise<import("../../../../../core/repository/index.js").DataSourceResponse<DomainsPresentationModelBaseModel>>;
23
+ /**
24
+ * Updates Culture and Hostnames for the given Document unique
25
+ * @param {string} unique
26
+ * @param {DomainsPresentationModelBaseModel} data
27
+ * @memberof UmbDocumentCultureAndHostnamesServerDataSource
28
+ */
29
+ update(unique: string, data: DomainsPresentationModelBaseModel): Promise<import("../../../../../core/repository/index.js").DataSourceResponse<any>>;
30
+ }
@@ -0,0 +1,53 @@
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _UmbDocumentCultureAndHostnamesServerDataSource_host;
13
+ import { DocumentResource } from '../../../../../../external/backend-api/index.js';
14
+ import { tryExecuteAndNotify } from '../../../../../../shared/resources/index.js';
15
+ /**
16
+ * A data source for the Document Culture and Hostnames that fetches data from the server
17
+ * @export
18
+ * @class UmbDocumentCultureAndHostnamesServerDataSource
19
+ * @implements {RepositoryDetailDataSource}
20
+ */
21
+ export class UmbDocumentCultureAndHostnamesServerDataSource {
22
+ /**
23
+ * Creates an instance of UmbDocumentCultureAndHostnamesServerDataSource.
24
+ * @param {UmbControllerHost} host
25
+ * @memberof UmbDocumentCultureAndHostnamesServerDataSource
26
+ */
27
+ constructor(host) {
28
+ _UmbDocumentCultureAndHostnamesServerDataSource_host.set(this, void 0);
29
+ __classPrivateFieldSet(this, _UmbDocumentCultureAndHostnamesServerDataSource_host, host, "f");
30
+ }
31
+ /**
32
+ * Fetches the Culture and Hostnames for the given Document unique
33
+ * @param {string} unique
34
+ * @memberof UmbDocumentCultureAndHostnamesServerDataSource
35
+ */
36
+ async read(unique) {
37
+ if (!unique)
38
+ throw new Error('Unique is missing');
39
+ return tryExecuteAndNotify(__classPrivateFieldGet(this, _UmbDocumentCultureAndHostnamesServerDataSource_host, "f"), DocumentResource.getDocumentByIdDomains({ id: unique }));
40
+ }
41
+ /**
42
+ * Updates Culture and Hostnames for the given Document unique
43
+ * @param {string} unique
44
+ * @param {DomainsPresentationModelBaseModel} data
45
+ * @memberof UmbDocumentCultureAndHostnamesServerDataSource
46
+ */
47
+ async update(unique, data) {
48
+ if (!unique)
49
+ throw new Error('Unique is missing');
50
+ return tryExecuteAndNotify(__classPrivateFieldGet(this, _UmbDocumentCultureAndHostnamesServerDataSource_host, "f"), DocumentResource.putDocumentByIdDomains({ id: unique, requestBody: data }));
51
+ }
52
+ }
53
+ _UmbDocumentCultureAndHostnamesServerDataSource_host = new WeakMap();
@@ -0,0 +1,2 @@
1
+ export { UmbDocumentCultureAndHostnamesRepository } from './culture-and-hostnames.repository.js';
2
+ export { UMB_DOCUMENT_CULTURE_AND_HOSTNAMES_REPOSITORY_ALIAS } from './manifests.js';
@@ -0,0 +1,2 @@
1
+ export { UmbDocumentCultureAndHostnamesRepository } from './culture-and-hostnames.repository.js';
2
+ export { UMB_DOCUMENT_CULTURE_AND_HOSTNAMES_REPOSITORY_ALIAS } from './manifests.js';
@@ -0,0 +1,3 @@
1
+ import type { ManifestRepository } from '../../../../../core/extension-registry/index.js';
2
+ export declare const UMB_DOCUMENT_CULTURE_AND_HOSTNAMES_REPOSITORY_ALIAS = "Umb.Repository.Document.CultureAndHostnames";
3
+ export declare const manifests: ManifestRepository<import("../../../../../../libs/extension-api/index.js").UmbApi>[];
@@ -0,0 +1,9 @@
1
+ import { UmbDocumentCultureAndHostnamesRepository } from '../repository/index.js';
2
+ export const UMB_DOCUMENT_CULTURE_AND_HOSTNAMES_REPOSITORY_ALIAS = 'Umb.Repository.Document.CultureAndHostnames';
3
+ const repository = {
4
+ type: 'repository',
5
+ alias: UMB_DOCUMENT_CULTURE_AND_HOSTNAMES_REPOSITORY_ALIAS,
6
+ name: 'Document Culture And Hostnames Repository',
7
+ api: UmbDocumentCultureAndHostnamesRepository,
8
+ };
9
+ export const manifests = [repository];
@@ -0,0 +1 @@
1
+ export * from './culture-and-hostnames/index.js';
@@ -0,0 +1 @@
1
+ export * from './culture-and-hostnames/index.js';
@@ -1,17 +1,18 @@
1
1
  import { UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS } from '../repository/index.js';
2
2
  import { UMB_DOCUMENT_ENTITY_TYPE, UMB_DOCUMENT_ROOT_ENTITY_TYPE } from '../entity.js';
3
3
  import { UmbPublishDocumentEntityAction } from './publish.action.js';
4
- import { UmbDocumentCultureAndHostnamesEntityAction } from './culture-and-hostnames.action.js';
5
4
  import { UmbCreateDocumentBlueprintEntityAction } from './create-blueprint.action.js';
6
5
  import { UmbDocumentPublicAccessEntityAction } from './public-access.action.js';
7
6
  import { UmbUnpublishDocumentEntityAction } from './unpublish.action.js';
8
7
  import { UmbRollbackDocumentEntityAction } from './rollback.action.js';
9
8
  import { manifests as createManifests } from './create/manifests.js';
10
9
  import { manifests as permissionManifests } from './permissions/manifests.js';
10
+ import { manifests as cultureAndHostnamesManifests } from './culture-and-hostnames/manifests.js';
11
11
  import { UmbCopyEntityAction, UmbMoveEntityAction, UmbSortChildrenOfEntityAction, } from '../../../core/entity-action/index.js';
12
12
  const entityActions = [
13
13
  ...createManifests,
14
14
  ...permissionManifests,
15
+ ...cultureAndHostnamesManifests,
15
16
  {
16
17
  type: 'entityAction',
17
18
  alias: 'Umb.EntityAction.Document.CreateBlueprint',
@@ -64,19 +65,6 @@ const entityActions = [
64
65
  entityTypes: [UMB_DOCUMENT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_ENTITY_TYPE],
65
66
  },
66
67
  },
67
- {
68
- type: 'entityAction',
69
- alias: 'Umb.EntityAction.Document.CultureAndHostnames',
70
- name: 'Culture And Hostnames Document Entity Action',
71
- weight: 400,
72
- api: UmbDocumentCultureAndHostnamesEntityAction,
73
- meta: {
74
- icon: 'icon-home',
75
- label: 'Culture And Hostnames (TBD)',
76
- repositoryAlias: UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS,
77
- entityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
78
- },
79
- },
80
68
  {
81
69
  type: 'entityAction',
82
70
  alias: 'Umb.EntityAction.Document.PublicAccess',
@@ -6,6 +6,7 @@ export * from './recycle-bin/index.js';
6
6
  export * from './user-permissions/index.js';
7
7
  export * from './components/index.js';
8
8
  export * from './entity.js';
9
+ export * from './entity-actions/index.js';
9
10
  export { UMB_DOCUMENT_TREE_ALIAS } from './tree/index.js';
10
11
  export { UMB_CONTENT_MENU_ALIAS } from './menu.manifests.js';
11
12
  export { UMB_DOCUMENT_COLLECTION_ALIAS } from './collection/index.js';
@@ -6,6 +6,7 @@ export * from './recycle-bin/index.js';
6
6
  export * from './user-permissions/index.js';
7
7
  export * from './components/index.js';
8
8
  export * from './entity.js';
9
+ export * from './entity-actions/index.js';
9
10
  export { UMB_DOCUMENT_TREE_ALIAS } from './tree/index.js';
10
11
  export { UMB_CONTENT_MENU_ALIAS } from './menu.manifests.js';
11
12
  export { UMB_DOCUMENT_COLLECTION_ALIAS } from './collection/index.js';
@@ -435,6 +435,9 @@ UmbMediaTypeWorkspaceViewEditElement.styles = [
435
435
  }
436
436
  `,
437
437
  ];
438
+ __decorate([
439
+ state()
440
+ ], UmbMediaTypeWorkspaceViewEditElement.prototype, "_hasRootGroups", void 0);
438
441
  __decorate([
439
442
  state()
440
443
  ], UmbMediaTypeWorkspaceViewEditElement.prototype, "_routes", void 0);