@umbraco-cms/backoffice 1.0.0-next.249bf505 → 1.0.0-next.275e599a

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/backend-api.d.ts CHANGED
@@ -488,11 +488,11 @@ type DataTypeReferenceResponseModel = {
488
488
  properties?: Array<DataTypePropertyReferenceModel>;
489
489
  };
490
490
 
491
- type DataTypeResponseModel = (DataTypeModelBaseModel & {
491
+ type DataTypeResponseModel = DataTypeModelBaseModel & {
492
492
  $type: string;
493
493
  id?: string;
494
494
  parentId?: string | null;
495
- });
495
+ };
496
496
 
497
497
  type DictionaryItemItemResponseModel = ItemResponseModelBaseModel;
498
498
 
package/controller.d.ts CHANGED
@@ -11,6 +11,7 @@ declare class UmbControllerHostElement extends HTMLElement {
11
11
  hasController(controller: UmbControllerInterface): boolean;
12
12
  getControllers(filterMethod: (ctrl: UmbControllerInterface) => boolean): UmbControllerInterface[];
13
13
  addController(controller: UmbControllerInterface): void;
14
+ removeControllerByUnique(unique: UmbControllerInterface['unique']): void;
14
15
  removeController(controller: UmbControllerInterface): void;
15
16
  }
16
17
  /**
@@ -1067,13 +1067,27 @@
1067
1067
  ]
1068
1068
  },
1069
1069
  {
1070
- "name": "umb-create-data-type-modal",
1071
- "path": "./src/backoffice/settings/data-types/entity-actions/create/modal/create-data-type-modal.element.ts",
1070
+ "name": "umb-data-type-create-options-modal",
1071
+ "path": "./src/backoffice/settings/data-types/entity-actions/create/modal/data-type-create-options-modal.element.ts",
1072
+ "attributes": [
1073
+ {
1074
+ "name": "data",
1075
+ "type": "UmbDataTypeCreateOptionsModalData | undefined"
1076
+ }
1077
+ ],
1072
1078
  "properties": [
1073
1079
  {
1074
1080
  "name": "styles",
1075
1081
  "type": "CSSResult[]",
1076
1082
  "default": "[\"UUITextStyles\"]"
1083
+ },
1084
+ {
1085
+ "name": "modalHandler"
1086
+ },
1087
+ {
1088
+ "name": "data",
1089
+ "attribute": "data",
1090
+ "type": "UmbDataTypeCreateOptionsModalData | undefined"
1077
1091
  }
1078
1092
  ]
1079
1093
  },
@@ -1288,7 +1302,7 @@
1288
1302
  {
1289
1303
  "name": "levelMap",
1290
1304
  "type": "Record<any, LevelMapStyles>",
1291
- "default": "{\"Verbose\":{\"look\":\"secondary\"},\"Debug\":{\"look\":\"default\",\"style\":\"background-color: var(--umb-log-viewer-debug-color); color: var(--uui-color-surface)\"},\"Information\":{\"look\":\"primary\",\"color\":\"positive\"},\"Warning\":{\"look\":\"primary\",\"color\":\"warning\"},\"Error\":{\"look\":\"primary\",\"color\":\"danger\"},\"Fatal\":{\"look\":\"primary\"}}"
1305
+ "default": "{\"Verbose\":{\"look\":\"secondary\"},\"Debug\":{\"look\":\"default\",\"style\":\"background-color: var(--umb-log-viewer-debug-color); color: var(--uui-color-surface)\"},\"Information\":{\"look\":\"primary\",\"color\":\"positive\"},\"Warning\":{\"look\":\"primary\",\"color\":\"warning\"},\"Error\":{\"look\":\"primary\",\"color\":\"danger\"},\"Fatal\":{\"look\":\"primary\",\"style\":\"background-color: var(--umb-log-viewer-fatal-color); color: var(--uui-color-surface)\"}}"
1292
1306
  }
1293
1307
  ]
1294
1308
  },
@@ -1391,7 +1405,7 @@
1391
1405
  {
1392
1406
  "name": "setLogLevelDebounce",
1393
1407
  "type": "DebouncedFunc<() => void>",
1394
- "default": "\"_.debounce(this.#setLogLevel, 300)\""
1408
+ "default": "\"debounce(this.#setLogLevel, 300)\""
1395
1409
  }
1396
1410
  ]
1397
1411
  },
@@ -1507,6 +1521,17 @@
1507
1521
  }
1508
1522
  ]
1509
1523
  },
1524
+ {
1525
+ "name": "umb-log-viewer-save-search-modal",
1526
+ "path": "./src/backoffice/settings/logviewer/workspace/views/search/components/log-viewer-search-input-modal.element.ts",
1527
+ "properties": [
1528
+ {
1529
+ "name": "styles",
1530
+ "type": "CSSResult[]",
1531
+ "default": "[\"UUITextStyles\",null]"
1532
+ }
1533
+ ]
1534
+ },
1510
1535
  {
1511
1536
  "name": "umb-log-viewer-search-input",
1512
1537
  "path": "./src/backoffice/settings/logviewer/workspace/views/search/components/log-viewer-search-input.element.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-cms/backoffice",
3
- "version": "1.0.0-next.249bf505",
3
+ "version": "1.0.0-next.275e599a",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "umbraco",
package/repository.d.ts CHANGED
@@ -8,7 +8,7 @@ interface DataSourceResponse<T = undefined> {
8
8
  }
9
9
 
10
10
  interface UmbDataSource<CreateRequestType, UpdateRequestType, ResponseType> {
11
- createScaffold(parentId: string | null): Promise<DataSourceResponse$1<ResponseType>>;
11
+ createScaffold(parentId: string | null): Promise<DataSourceResponse$1<CreateRequestType>>;
12
12
  get(unique: string): Promise<DataSourceResponse$1<ResponseType>>;
13
13
  insert(data: CreateRequestType): Promise<any>;
14
14
  update(unique: string, data: UpdateRequestType): Promise<DataSourceResponse$1<ResponseType>>;
@@ -29,24 +29,18 @@ interface UmbTreeDataSource<PagedItemsType = any, ItemsType = any> {
29
29
  getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemsType>>>;
30
30
  }
31
31
 
32
- interface UmbDetailRepository<DetailType> {
33
- createScaffold(parentId: string | null): Promise<{
34
- data?: DetailType;
35
- error?: ProblemDetailsModel;
36
- }>;
37
- requestById(id: string): Promise<{
38
- data?: DetailType;
39
- error?: ProblemDetailsModel;
40
- }>;
41
- create(data: DetailType): Promise<{
42
- error?: ProblemDetailsModel;
43
- }>;
44
- save(data: DetailType): Promise<{
45
- error?: ProblemDetailsModel;
46
- }>;
47
- delete(id: string): Promise<{
48
- error?: ProblemDetailsModel;
49
- }>;
32
+ interface UmbRepositoryErrorResponse {
33
+ error?: ProblemDetailsModel;
34
+ }
35
+ interface UmbRepositoryResponse<T> extends UmbRepositoryErrorResponse {
36
+ data?: T;
37
+ }
38
+ interface UmbDetailRepository<CreateRequestType = any, UpdateRequestType = any, ResponseType = any> {
39
+ createScaffold(parentId: string | null): Promise<UmbRepositoryResponse<CreateRequestType>>;
40
+ requestById(id: string): Promise<UmbRepositoryResponse<ResponseType>>;
41
+ create(data: CreateRequestType): Promise<UmbRepositoryErrorResponse>;
42
+ save(id: string, data: UpdateRequestType): Promise<UmbRepositoryErrorResponse>;
43
+ delete(id: string): Promise<UmbRepositoryErrorResponse>;
50
44
  }
51
45
 
52
46
  interface UmbPagedData<T> {
@@ -96,4 +90,4 @@ interface UmbFolderRepository {
96
90
  }>;
97
91
  }
98
92
 
99
- export { DataSourceResponse, UmbDataSource, UmbDetailRepository, UmbFolderDataSource, UmbFolderRepository, UmbPagedData, UmbTreeDataSource, UmbTreeRepository };
93
+ export { DataSourceResponse, UmbDataSource, UmbDetailRepository, UmbFolderDataSource, UmbFolderRepository, UmbPagedData, UmbRepositoryErrorResponse, UmbRepositoryResponse, UmbTreeDataSource, UmbTreeRepository };
package/router.d.ts CHANGED
@@ -373,4 +373,8 @@ declare class UmbRouteContext {
373
373
  }
374
374
  declare const UMB_ROUTE_CONTEXT_TOKEN: UmbContextToken<UmbRouteContext>;
375
375
 
376
- export { Cancel, ChangeStateEvent, Class, Component, CustomResolver, EventListenerSubscription, GlobalRouterEvent, Guard, IComponentRoute, IPathFragments, IRedirectRoute, IResolverRoute, IRoute, IRouteBase, IRouteMatch, IRouterSlot, IRoutingInfo, ISlashOptions, ModuleResolver, NavigationCancelEvent, NavigationEndEvent, NavigationErrorEvent, NavigationStartEvent, NavigationSuccessEvent, PageComponent, Params, PathFragment, PathMatch, PushStateEvent, Query, ReplaceStateEvent, RouterSlotEvent, RouterTree, Setup, UMB_ROUTE_CONTEXT_TOKEN, IRoute as UmbRoute, UmbRouteContext, UmbRouteLocation, WillChangeStateEvent, addListener, attachCallback, basePath, constructAbsolutePath, constructPathWithBasePath, dispatchGlobalRouterEvent, dispatchRouteChangeEvent, ensureAnchorHistory, ensureHistoryEvents, ensureSlash, getFragments, handleRedirect, historyPatches, isPathActive, isRedirectRoute, isResolverRoute, matchRoute, matchRoutes, path, pathWithoutBasePath, query, queryParentRoots, queryParentRouterSlot, queryString, removeListeners, resolvePageComponent, saveNativeFunction, shouldNavigate, slashify, stripSlash, stripStart, toQuery, toQueryString, traverseRouterTree };
376
+ declare function generateRoutePathBuilder(path: string): (params: {
377
+ [key: string]: string | number;
378
+ }) => string;
379
+
380
+ export { Cancel, ChangeStateEvent, Class, Component, CustomResolver, EventListenerSubscription, GlobalRouterEvent, Guard, IComponentRoute, IPathFragments, IRedirectRoute, IResolverRoute, IRoute, IRouteBase, IRouteMatch, IRouterSlot, IRoutingInfo, ISlashOptions, ModuleResolver, NavigationCancelEvent, NavigationEndEvent, NavigationErrorEvent, NavigationStartEvent, NavigationSuccessEvent, PageComponent, Params, PathFragment, PathMatch, PushStateEvent, Query, ReplaceStateEvent, RouterSlotEvent, RouterTree, Setup, UMB_ROUTE_CONTEXT_TOKEN, IRoute as UmbRoute, UmbRouteContext, UmbRouteLocation, WillChangeStateEvent, addListener, attachCallback, basePath, constructAbsolutePath, constructPathWithBasePath, dispatchGlobalRouterEvent, dispatchRouteChangeEvent, ensureAnchorHistory, ensureHistoryEvents, ensureSlash, generateRoutePathBuilder, getFragments, handleRedirect, historyPatches, isPathActive, isRedirectRoute, isResolverRoute, matchRoute, matchRoutes, path, pathWithoutBasePath, query, queryParentRoots, queryParentRouterSlot, queryString, removeListeners, resolvePageComponent, saveNativeFunction, shouldNavigate, slashify, stripSlash, stripStart, toQuery, toQueryString, traverseRouterTree };
@@ -518,9 +518,15 @@
518
518
  "attributes": []
519
519
  },
520
520
  {
521
- "name": "umb-create-data-type-modal",
522
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - ",
523
- "attributes": []
521
+ "name": "umb-data-type-create-options-modal",
522
+ "description": "Attributes:\n\n * `data` {`UmbDataTypeCreateOptionsModalData | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` {`UmbDataTypeCreateOptionsModalData | undefined`} - ",
523
+ "attributes": [
524
+ {
525
+ "name": "data",
526
+ "description": "`data` {`UmbDataTypeCreateOptionsModalData | undefined`} - \n\nProperty: data",
527
+ "values": []
528
+ }
529
+ ]
524
530
  },
525
531
  {
526
532
  "name": "umb-data-type-workspace-edit-element",
@@ -583,7 +589,7 @@
583
589
  },
584
590
  {
585
591
  "name": "umb-language-workspace-edit",
586
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_language` - \n\n * `_isNew` {`boolean`} - ",
592
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_language` - \n\n * `_isNew` {`boolean | undefined`} - ",
587
593
  "attributes": []
588
594
  },
589
595
  {
@@ -593,7 +599,7 @@
593
599
  },
594
600
  {
595
601
  "name": "umb-language-details-workspace-view",
596
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_language` - \n\n * `_isDefaultLanguage` {`boolean`} - \n\n * `_isNew` {`boolean`} - \n\n * `_validationErrors` - ",
602
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_language` - \n\n * `_isDefaultLanguage` {`boolean`} - \n\n * `_isNew` {`boolean | undefined`} - \n\n * `_validationErrors` - ",
597
603
  "attributes": []
598
604
  },
599
605
  {
@@ -703,9 +709,14 @@
703
709
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_pollingPopover` - \n\n * `_polingExpandSymbol` - \n\n * `_poolingConfig` {`PoolingCOnfig`} - ",
704
710
  "attributes": []
705
711
  },
712
+ {
713
+ "name": "umb-log-viewer-save-search-modal",
714
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_input` - \n\n * `_hasValue` {`boolean`} - ",
715
+ "attributes": []
716
+ },
706
717
  {
707
718
  "name": "umb-log-viewer-search-input",
708
- "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_savedSearchesPopover` - \n\n * `_savedSearchesExpandSymbol` - \n\n * `_savedSearches` {`any[]`} - \n\n * `_inputQuery` {`string`} - ",
719
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_savedSearchesPopover` - \n\n * `_savedSearchesExpandSymbol` - \n\n * `_savedSearches` {`any[]`} - \n\n * `_inputQuery` {`string`} - \n\n * `_showLoader` {`boolean`} - \n\n * `inputQuery$` - \n\n * `_modalContext` - ",
709
720
  "attributes": []
710
721
  },
711
722
  {
package/workspace.d.ts CHANGED
@@ -16,17 +16,17 @@ declare class UmbWorkspaceActionBase<WorkspaceType> {
16
16
  interface UmbWorkspaceContextInterface<DataType = unknown> {
17
17
  host: UmbControllerHostElement;
18
18
  repository: any;
19
- isNew: Observable<boolean>;
20
- getIsNew(): boolean;
19
+ isNew: Observable<boolean | undefined>;
20
+ getIsNew(): boolean | undefined;
21
21
  setIsNew(value: boolean): void;
22
22
  getEntityType(): string;
23
23
  getData(): DataType | undefined;
24
+ save(): Promise<void>;
24
25
  destroy(): void;
25
26
  setValidationErrors?(errorMap: any): void;
26
27
  }
27
28
 
28
29
  declare class UmbSaveWorkspaceAction extends UmbWorkspaceActionBase<UmbWorkspaceContextInterface> {
29
- #private;
30
30
  constructor(host: UmbControllerHostElement);
31
31
  execute(): Promise<void>;
32
32
  }