@umbraco-cms/backoffice 14.0.0--preview006-2af5bef5 → 14.0.0--preview006-6f482919

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.
@@ -10613,24 +10613,13 @@
10613
10613
  {
10614
10614
  "name": "umb-router-slot",
10615
10615
  "path": "./../src/shared/router/router-slot.element.ts",
10616
- "attributes": [
10617
- {
10618
- "name": "routes",
10619
- "type": "UmbRoute[] | undefined"
10620
- },
10621
- {
10622
- "name": "parent"
10623
- }
10624
- ],
10625
10616
  "properties": [
10626
10617
  {
10627
10618
  "name": "routes",
10628
- "attribute": "routes",
10629
10619
  "type": "UmbRoute[] | undefined"
10630
10620
  },
10631
10621
  {
10632
- "name": "parent",
10633
- "attribute": "parent"
10622
+ "name": "parent"
10634
10623
  },
10635
10624
  {
10636
10625
  "name": "absoluteRouterPath",
@@ -10668,13 +10657,6 @@
10668
10657
  {
10669
10658
  "name": "variantId",
10670
10659
  "type": "UmbVariantId[]"
10671
- },
10672
- {
10673
- "name": "routes",
10674
- "type": "UmbRoute[] | undefined"
10675
- },
10676
- {
10677
- "name": "parent"
10678
10660
  }
10679
10661
  ],
10680
10662
  "properties": [
@@ -10685,12 +10667,10 @@
10685
10667
  },
10686
10668
  {
10687
10669
  "name": "routes",
10688
- "attribute": "routes",
10689
10670
  "type": "UmbRoute[] | undefined"
10690
10671
  },
10691
10672
  {
10692
- "name": "parent",
10693
- "attribute": "parent"
10673
+ "name": "parent"
10694
10674
  },
10695
10675
  {
10696
10676
  "name": "absoluteRouterPath",
@@ -87,7 +87,7 @@ export const data = [
87
87
  alias: 'multiNodeTreePicker',
88
88
  culture: null,
89
89
  segment: null,
90
- value: null,
90
+ value: 'all-property-editors-document-id,c05da24d-7740-447b-9cdc-bd8ce2172e38,fd56a0b5-01a0-4da2-b428-52773bfa9cc4',
91
91
  },
92
92
  {
93
93
  alias: 'datePicker',
@@ -42,7 +42,7 @@ let UmbInlineListBlockElement = class UmbInlineListBlockElement extends UmbLitEl
42
42
  __classPrivateFieldGet(this, _UmbInlineListBlockElement_instances, "m", _UmbInlineListBlockElement_load).call(this);
43
43
  }, 'observeContentUdi');
44
44
  });
45
- this.observe(umbExtensionsRegistry.getByTypeAndAlias('workspace', UMB_BLOCK_WORKSPACE_ALIAS), (manifest) => {
45
+ this.observe(umbExtensionsRegistry.byTypeAndAlias('workspace', UMB_BLOCK_WORKSPACE_ALIAS), (manifest) => {
46
46
  if (manifest) {
47
47
  createExtensionApi(manifest, [this, { manifest: manifest }]).then((context) => {
48
48
  if (context) {
@@ -42,7 +42,7 @@ _UmbCollectionElement_instances = new WeakSet();
42
42
  _UmbCollectionElement_observeManifest = function _UmbCollectionElement_observeManifest() {
43
43
  if (!this._alias)
44
44
  return;
45
- this.observe(umbExtensionsRegistry.getByTypeAndAlias('collection', this._alias), async (manifest) => {
45
+ this.observe(umbExtensionsRegistry.byTypeAndAlias('collection', this._alias), async (manifest) => {
46
46
  if (!manifest)
47
47
  return;
48
48
  __classPrivateFieldSet(this, _UmbCollectionElement_manifest, manifest, "f");
@@ -53,7 +53,7 @@ _UmbBackofficeModalContainerElement_createModalElements = function _UmbBackoffic
53
53
  this._modalElementMap.delete(modal.key);
54
54
  });
55
55
  if (this._modals.length === 0) {
56
- this._modalElementMap.clear();
56
+ //this._modalElementMap.clear(); // should not make a difference now that we clean it above. [NL]
57
57
  return;
58
58
  }
59
59
  this._modals.forEach((modal) => {
@@ -35,7 +35,7 @@ let UmbPropertyTypeBasedPropertyElement = class UmbPropertyTypeBasedPropertyElem
35
35
  // If there is no UI, we will look up the Property editor model to find the default UI alias:
36
36
  if (!this._propertyEditorUiAlias && dataType?.editorAlias) {
37
37
  //use 'dataType.editorAlias' to look up the extension in the registry:
38
- this.observe(umbExtensionsRegistry.getByTypeAndAlias('propertyEditorSchema', dataType.editorAlias), (extension) => {
38
+ this.observe(umbExtensionsRegistry.byTypeAndAlias('propertyEditorSchema', dataType.editorAlias), (extension) => {
39
39
  if (!extension)
40
40
  return;
41
41
  this._propertyEditorUiAlias = extension?.meta.defaultPropertyEditorUiAlias;
@@ -14,7 +14,7 @@ import { UmbDataTypeDetailRepository } from '../repository/detail/data-type-deta
14
14
  import { UmbEditableWorkspaceContextBase, UmbInvariantWorkspacePropertyDatasetContext, } from '../../workspace/index.js';
15
15
  import { appendToFrozenArray, UmbArrayState, UmbObjectState, UmbStringState, } from '../../../../libs/observable-api/index.js';
16
16
  import { combineLatest, map } from '../../../../external/rxjs/index.js';
17
- import { umbExtensionsRegistry, } from '../../extension-registry/index.js';
17
+ import { umbExtensionsRegistry } from '../../extension-registry/index.js';
18
18
  import { UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT } from '../../property-editor/index.js';
19
19
  export class UmbDataTypeWorkspaceContext extends UmbEditableWorkspaceContextBase {
20
20
  constructor(host) {
@@ -221,13 +221,13 @@ _UmbDataTypeWorkspaceContext_data = new WeakMap(), _UmbDataTypeWorkspaceContext_
221
221
  await __classPrivateFieldGet(this, _UmbDataTypeWorkspaceContext_instances, "m", _UmbDataTypeWorkspaceContext_setPropertyEditorSchemaConfig).call(this, propertyEditorSchemaAlias);
222
222
  }).asPromise();
223
223
  }, _UmbDataTypeWorkspaceContext_setPropertyEditorSchemaConfig = function _UmbDataTypeWorkspaceContext_setPropertyEditorSchemaConfig(propertyEditorSchemaAlias) {
224
- return this.observe(umbExtensionsRegistry.getByTypeAndAlias('propertyEditorSchema', propertyEditorSchemaAlias), (manifest) => {
224
+ return this.observe(umbExtensionsRegistry.byTypeAndAlias('propertyEditorSchema', propertyEditorSchemaAlias), (manifest) => {
225
225
  this._propertyEditorSchemaConfigProperties = manifest?.meta.settings?.properties || [];
226
226
  this._propertyEditorSchemaConfigDefaultData = manifest?.meta.settings?.defaultData || [];
227
227
  this._propertyEditorSchemaConfigDefaultUIAlias = manifest?.meta.defaultPropertyEditorUiAlias || null;
228
228
  }).asPromise();
229
229
  }, _UmbDataTypeWorkspaceContext_setPropertyEditorUIConfig = function _UmbDataTypeWorkspaceContext_setPropertyEditorUIConfig(propertyEditorUIAlias) {
230
- return this.observe(umbExtensionsRegistry.getByTypeAndAlias('propertyEditorUi', propertyEditorUIAlias), (manifest) => {
230
+ return this.observe(umbExtensionsRegistry.byTypeAndAlias('propertyEditorUi', propertyEditorUIAlias), (manifest) => {
231
231
  __classPrivateFieldGet(this, _UmbDataTypeWorkspaceContext_propertyEditorUiIcon, "f").setValue(manifest?.meta.icon || null);
232
232
  __classPrivateFieldGet(this, _UmbDataTypeWorkspaceContext_propertyEditorUiName, "f").setValue(manifest?.name || null);
233
233
  this._propertyEditorUISettingsSchemaAlias = manifest?.meta.propertyEditorSchemaAlias;
@@ -126,7 +126,7 @@ _UmbModalElement_createDialogElement = function _UmbModalElement_createDialogEle
126
126
  };
127
127
  _UmbModalElement_observeModal = function _UmbModalElement_observeModal(alias) {
128
128
  __classPrivateFieldGet(this, _UmbModalElement_modalExtensionObserver, "f")?.destroy();
129
- this.observe(umbExtensionsRegistry.getByTypeAndAlias('modal', alias), async (manifest) => {
129
+ this.observe(umbExtensionsRegistry.byTypeAndAlias('modal', alias), async (manifest) => {
130
130
  __classPrivateFieldGet(this, _UmbModalElement_instances, "m", _UmbModalElement_removeInnerElement).call(this);
131
131
  if (manifest) {
132
132
  const innerElement = await __classPrivateFieldGet(this, _UmbModalElement_instances, "m", _UmbModalElement_createInnerElement).call(this, manifest);
@@ -106,7 +106,7 @@ let UmbPropertyElement = class UmbPropertyElement extends UmbLitElement {
106
106
  });
107
107
  }
108
108
  _observePropertyEditorUI() {
109
- this.observe(umbExtensionsRegistry.getByTypeAndAlias('propertyEditorUi', this._propertyEditorUiAlias), (manifest) => {
109
+ this.observe(umbExtensionsRegistry.byTypeAndAlias('propertyEditorUi', this._propertyEditorUiAlias), (manifest) => {
110
110
  this._gotEditorUI(manifest);
111
111
  }, '_observePropertyEditorUI');
112
112
  }
@@ -102,7 +102,7 @@ _UmbTreeContextBase_treeRoot = new WeakMap(), _UmbTreeContextBase_treeAlias = ne
102
102
  }
103
103
  }, _UmbTreeContextBase_observeTreeManifest = function _UmbTreeContextBase_observeTreeManifest() {
104
104
  if (__classPrivateFieldGet(this, _UmbTreeContextBase_treeAlias, "f")) {
105
- this.observe(umbExtensionsRegistry.getByTypeAndAlias('tree', __classPrivateFieldGet(this, _UmbTreeContextBase_treeAlias, "f")), async (treeManifest) => {
105
+ this.observe(umbExtensionsRegistry.byTypeAndAlias('tree', __classPrivateFieldGet(this, _UmbTreeContextBase_treeAlias, "f")), async (treeManifest) => {
106
106
  if (!treeManifest)
107
107
  return;
108
108
  __classPrivateFieldGet(this, _UmbTreeContextBase_instances, "m", _UmbTreeContextBase_observeRepository).call(this, treeManifest);
@@ -121,7 +121,6 @@ _UmbInputDocumentElement_pickableFilter = new WeakMap();
121
121
  _UmbInputDocumentElement_instances = new WeakSet();
122
122
  _UmbInputDocumentElement_openPicker = function _UmbInputDocumentElement_openPicker() {
123
123
  // TODO: Configure the content picker, with `startNodeId` and `ignoreUserStartNodes` [LK]
124
- console.log('#openPicker', [this.startNodeId, this.ignoreUserStartNodes]);
125
124
  __classPrivateFieldGet(this, _UmbInputDocumentElement_pickerContext, "f").openPicker({
126
125
  hideTreeRoot: true,
127
126
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -124,7 +124,6 @@ _UmbInputMediaElement_pickableFilter = new WeakMap();
124
124
  _UmbInputMediaElement_instances = new WeakSet();
125
125
  _UmbInputMediaElement_openPicker = function _UmbInputMediaElement_openPicker() {
126
126
  // TODO: Configure the media picker, with `allowedContentTypeIds` and `ignoreUserStartNodes` [LK]
127
- console.log('#openPicker', [this.allowedContentTypeIds, this.ignoreUserStartNodes]);
128
127
  __classPrivateFieldGet(this, _UmbInputMediaElement_pickerContext, "f").openPicker({
129
128
  hideTreeRoot: true,
130
129
  pickableFilter: __classPrivateFieldGet(this, _UmbInputMediaElement_pickableFilter, "f"),
@@ -108,8 +108,10 @@ _UmbRouteContext_mainRouter = new WeakMap(), _UmbRouteContext_modalRouter = new
108
108
  },
109
109
  };
110
110
  }, _UmbRouteContext_removeModalPath = function _UmbRouteContext_removeModalPath(info) {
111
- if (window.location.href.includes(info.match.fragments.consumed)) {
112
- window.history.pushState({}, '', window.location.href.split(info.match.fragments.consumed)[0]);
111
+ // Reset the URL to the routerBasePath + routerActiveLocalPath
112
+ const folderToRemove = info.match.match.input;
113
+ if (folderToRemove && window.location.href.includes(folderToRemove)) {
114
+ window.history.pushState({}, '', __classPrivateFieldGet(this, _UmbRouteContext_routerBasePath, "f") + '/' + __classPrivateFieldGet(this, _UmbRouteContext_routerActiveLocalPath, "f"));
113
115
  }
114
116
  }, _UmbRouteContext_generateModalRoutes = function _UmbRouteContext_generateModalRoutes() {
115
117
  const newModals = __classPrivateFieldGet(this, _UmbRouteContext_modalRegistrations, "f").filter((x) => !__classPrivateFieldGet(this, _UmbRouteContext_modalRoutes, "f").find((route) => x.key === route.__modalKey));
@@ -136,10 +136,10 @@ UmbRouterSlotElement.styles = [
136
136
  `,
137
137
  ];
138
138
  __decorate([
139
- property()
139
+ property({ attribute: false })
140
140
  ], UmbRouterSlotElement.prototype, "routes", null);
141
141
  __decorate([
142
- property()
142
+ property({ attribute: false })
143
143
  ], UmbRouterSlotElement.prototype, "parent", null);
144
144
  UmbRouterSlotElement = __decorate([
145
145
  customElement('umb-router-slot')