@umbraco-cms/backoffice 1.0.0-next.f1bd6ec7 → 1.0.0-next.f2af51c4

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.
@@ -1066,6 +1066,120 @@
1066
1066
  }
1067
1067
  ]
1068
1068
  },
1069
+ {
1070
+ "name": "umb-data-type-input",
1071
+ "path": "./src/backoffice/settings/data-types/components/data-type-input/data-type-input.element.ts",
1072
+ "attributes": [
1073
+ {
1074
+ "name": "min",
1075
+ "description": "This is a minimum amount of selected items in this input.",
1076
+ "type": "number",
1077
+ "default": "\"0\""
1078
+ },
1079
+ {
1080
+ "name": "max",
1081
+ "description": "This is a maximum amount of selected items in this input.",
1082
+ "type": "number",
1083
+ "default": "\"Infinity\""
1084
+ },
1085
+ {
1086
+ "name": "min-message",
1087
+ "description": "Min validation message.",
1088
+ "type": "boolean",
1089
+ "default": "\"\""
1090
+ },
1091
+ {
1092
+ "name": "maxMessage",
1093
+ "description": "Max validation message.",
1094
+ "type": "boolean",
1095
+ "default": "\"\""
1096
+ },
1097
+ {
1098
+ "name": "value",
1099
+ "type": "string"
1100
+ }
1101
+ ],
1102
+ "properties": [
1103
+ {
1104
+ "name": "min",
1105
+ "attribute": "min",
1106
+ "description": "This is a minimum amount of selected items in this input.",
1107
+ "type": "number",
1108
+ "default": "\"0\""
1109
+ },
1110
+ {
1111
+ "name": "max",
1112
+ "attribute": "max",
1113
+ "description": "This is a maximum amount of selected items in this input.",
1114
+ "type": "number",
1115
+ "default": "\"Infinity\""
1116
+ },
1117
+ {
1118
+ "name": "minMessage",
1119
+ "attribute": "min-message",
1120
+ "description": "Min validation message.",
1121
+ "type": "boolean",
1122
+ "default": "\"\""
1123
+ },
1124
+ {
1125
+ "name": "maxMessage",
1126
+ "attribute": "maxMessage",
1127
+ "description": "Max validation message.",
1128
+ "type": "boolean",
1129
+ "default": "\"\""
1130
+ },
1131
+ {
1132
+ "name": "selectedIds",
1133
+ "type": "string[]"
1134
+ },
1135
+ {
1136
+ "name": "styles",
1137
+ "type": "CSSResult[]",
1138
+ "default": "[\"UUITextStyles\",null]"
1139
+ },
1140
+ {
1141
+ "name": "formAssociated",
1142
+ "type": "boolean"
1143
+ },
1144
+ {
1145
+ "name": "value",
1146
+ "attribute": "value",
1147
+ "type": "string"
1148
+ },
1149
+ {
1150
+ "name": "name",
1151
+ "type": "string"
1152
+ },
1153
+ {
1154
+ "name": "validationMessage",
1155
+ "type": "string"
1156
+ },
1157
+ {
1158
+ "name": "validity",
1159
+ "type": "ValidityState"
1160
+ },
1161
+ {
1162
+ "name": "pristine",
1163
+ "type": "boolean"
1164
+ },
1165
+ {
1166
+ "name": "required",
1167
+ "type": "boolean"
1168
+ },
1169
+ {
1170
+ "name": "requiredMessage",
1171
+ "type": "string"
1172
+ },
1173
+ {
1174
+ "name": "error",
1175
+ "type": "boolean"
1176
+ },
1177
+ {
1178
+ "name": "errorMessage",
1179
+ "type": "string"
1180
+ }
1181
+ ]
1182
+ },
1069
1183
  {
1070
1184
  "name": "umb-data-type-create-options-modal",
1071
1185
  "path": "./src/backoffice/settings/data-types/entity-actions/create/modal/data-type-create-options-modal.element.ts",
@@ -1091,6 +1205,23 @@
1091
1205
  }
1092
1206
  ]
1093
1207
  },
1208
+ {
1209
+ "name": "umb-data-type-picker-modal",
1210
+ "path": "./src/backoffice/settings/data-types/modal/data-type-picker/data-type-picker-modal.element.ts",
1211
+ "properties": [
1212
+ {
1213
+ "name": "styles",
1214
+ "type": "CSSResult[]",
1215
+ "default": "[\"UUITextStyles\",null]"
1216
+ },
1217
+ {
1218
+ "name": "modalHandler"
1219
+ },
1220
+ {
1221
+ "name": "data"
1222
+ }
1223
+ ]
1224
+ },
1094
1225
  {
1095
1226
  "name": "umb-data-type-workspace-edit-element",
1096
1227
  "path": "./src/backoffice/settings/data-types/workspace/data-type-workspace-edit.element.ts",
@@ -1887,7 +2018,7 @@
1887
2018
  ]
1888
2019
  },
1889
2020
  {
1890
- "name": "uui-code-block",
2021
+ "name": "umb-code-block",
1891
2022
  "path": "./src/backoffice/shared/components/code-block/code-block.element.ts",
1892
2023
  "description": "A simple styled box for showing code-based error messages.",
1893
2024
  "properties": [
@@ -2979,13 +3110,13 @@
2979
3110
  "name": "min",
2980
3111
  "description": "This is a minimum amount of selected items in this input.",
2981
3112
  "type": "number",
2982
- "default": "\"undefined\""
3113
+ "default": "\"0\""
2983
3114
  },
2984
3115
  {
2985
3116
  "name": "max",
2986
3117
  "description": "This is a maximum amount of selected items in this input.",
2987
3118
  "type": "number",
2988
- "default": "\"undefined\""
3119
+ "default": "\"Infinity\""
2989
3120
  },
2990
3121
  {
2991
3122
  "name": "min-message",
@@ -3005,24 +3136,19 @@
3005
3136
  }
3006
3137
  ],
3007
3138
  "properties": [
3008
- {
3009
- "name": "styles",
3010
- "type": "CSSResult[]",
3011
- "default": "[\"UUITextStyles\",null]"
3012
- },
3013
3139
  {
3014
3140
  "name": "min",
3015
3141
  "attribute": "min",
3016
3142
  "description": "This is a minimum amount of selected items in this input.",
3017
3143
  "type": "number",
3018
- "default": "\"undefined\""
3144
+ "default": "\"0\""
3019
3145
  },
3020
3146
  {
3021
3147
  "name": "max",
3022
3148
  "attribute": "max",
3023
3149
  "description": "This is a maximum amount of selected items in this input.",
3024
3150
  "type": "number",
3025
- "default": "\"undefined\""
3151
+ "default": "\"Infinity\""
3026
3152
  },
3027
3153
  {
3028
3154
  "name": "minMessage",
@@ -3047,6 +3173,11 @@
3047
3173
  "name": "selectedIsoCodes",
3048
3174
  "type": "string[]"
3049
3175
  },
3176
+ {
3177
+ "name": "styles",
3178
+ "type": "CSSResult[]",
3179
+ "default": "[\"UUITextStyles\",null]"
3180
+ },
3050
3181
  {
3051
3182
  "name": "formAssociated",
3052
3183
  "type": "boolean"
@@ -4781,6 +4912,10 @@
4781
4912
  {
4782
4913
  "name": "selection",
4783
4914
  "type": "string[]"
4915
+ },
4916
+ {
4917
+ "name": "multiple",
4918
+ "type": "boolean"
4784
4919
  }
4785
4920
  ],
4786
4921
  "properties": [
@@ -4798,6 +4933,11 @@
4798
4933
  "name": "selection",
4799
4934
  "attribute": "selection",
4800
4935
  "type": "string[]"
4936
+ },
4937
+ {
4938
+ "name": "multiple",
4939
+ "attribute": "multiple",
4940
+ "type": "boolean"
4801
4941
  }
4802
4942
  ],
4803
4943
  "events": [
@@ -7767,7 +7907,7 @@
7767
7907
  ]
7768
7908
  },
7769
7909
  {
7770
- "name": "story-modal-context-example",
7910
+ "name": "umb-story-modal-context-example",
7771
7911
  "path": "./src/core/modal/stories/story-modal-service-example.element.ts",
7772
7912
  "attributes": [
7773
7913
  {
@@ -7814,7 +7954,7 @@
7814
7954
  ]
7815
7955
  },
7816
7956
  {
7817
- "name": "story-notification-default-example",
7957
+ "name": "umb-story-notification-default-example",
7818
7958
  "path": "./src/core/notification/stories/story-notification-default-example.element.ts"
7819
7959
  },
7820
7960
  {
@@ -1,7 +1,7 @@
1
1
  import { InterfaceLook, InterfaceColor } from '@umbraco-ui/uui-base/lib/types/index';
2
2
  import { UmbWorkspaceAction } from './workspace';
3
3
  import { ClassConstructor } from './models';
4
- import { UmbStoreBase, UmbTreeStore } from './store';
4
+ import { UmbStoreBase, UmbTreeStore, UmbItemStore } from './store';
5
5
  import { UmbExtensionRegistry } from './extensions-api';
6
6
  import { UmbControllerHostElement } from './controller';
7
7
 
@@ -329,8 +329,11 @@ interface ManifestStore extends ManifestClass<UmbStoreBase> {
329
329
  interface ManifestTreeStore extends ManifestClass<UmbTreeStore> {
330
330
  type: 'treeStore';
331
331
  }
332
+ interface ManifestItemStore extends ManifestClass<UmbItemStore> {
333
+ type: 'itemStore';
334
+ }
332
335
 
333
- type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntrypoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestTheme | ManifestTree | ManifestTreeItem | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceView | ManifestWorkspaceViewCollection | ManifestModal | ManifestStore | ManifestTreeStore | ManifestBase;
336
+ type ManifestTypes = ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntrypoint | ManifestExternalLoginProvider | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorModel | ManifestPropertyEditorUI | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestTheme | ManifestTree | ManifestTreeItem | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceView | ManifestWorkspaceViewCollection | ManifestModal | ManifestStore | ManifestTreeStore | ManifestItemStore | ManifestBase;
334
337
  type ManifestStandardTypes = ManifestTypes['type'];
335
338
  type ManifestTypeMap = {
336
339
  [Manifest in ManifestTypes as Manifest['type']]: Manifest;
@@ -394,4 +397,4 @@ declare class UmbEntryPointExtensionInitializer {
394
397
  instantiateEntryPoint(manifest: ManifestEntrypoint): void;
395
398
  }
396
399
 
397
- export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsTreeItem, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestBase, ManifestClass, ManifestClassWithClassConstructor, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestElement, ManifestElementWithElementName, ManifestEntityAction, ManifestEntityBulkAction, ManifestEntrypoint, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestKind, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStandardTypes, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeItem, ManifestTreeStore, ManifestTypeMap, ManifestTypes, ManifestUserProfileApp, ManifestWithConditions, ManifestWithLoader, ManifestWithMeta, ManifestWithView, ManifestWorkspace, ManifestWorkspaceAction, ManifestWorkspaceView, ManifestWorkspaceViewCollection, MetaCollectionView, MetaDashboard, MetaDashboardCollection, MetaEditor, MetaEditorViewCollection, MetaEntityAction, MetaEntityBulkAction, MetaExternalLoginProvider, MetaHeaderApp, MetaHeaderAppButtonKind, MetaHealthCheck, MetaManifestWithView, MetaMenuItem, MetaMenuItemTreeKind, MetaPackageView, MetaPropertyEditorModel, MetaPropertyEditorUI, MetaSection, MetaSectionSidebarAppMenuKind, MetaSectionView, MetaTree, MetaUserProfileApp, MetaWorkspaceAction, MetaWorkspaceView, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, SpecificManifestTypeOrManifestBase, UmbEntryPointExtensionInitializer };
400
+ export { ConditionsCollectionView, ConditionsDashboard, ConditionsDashboardCollection, ConditionsEditorViewCollection, ConditionsEntityAction, ConditionsEntityBulkAction, ConditionsMenuItem, ConditionsPropertyAction, ConditionsSectionSidebarApp, ConditionsSectionView, ConditionsTreeItem, ConditionsWorkspaceAction, ConditionsWorkspaceView, HealthCheck, ManifestBase, ManifestClass, ManifestClassWithClassConstructor, ManifestCollectionView, ManifestDashboard, ManifestDashboardCollection, ManifestElement, ManifestElementWithElementName, ManifestEntityAction, ManifestEntityBulkAction, ManifestEntrypoint, ManifestExternalLoginProvider, ManifestHeaderApp, ManifestHeaderAppButtonKind, ManifestHealthCheck, ManifestItemStore, ManifestKind, ManifestMenu, ManifestMenuItem, ManifestMenuItemTreeKind, ManifestModal, ManifestPackageView, ManifestPropertyAction, ManifestPropertyEditorModel, ManifestPropertyEditorUI, ManifestRepository, ManifestSection, ManifestSectionSidebarApp, ManifestSectionSidebarAppMenuKind, ManifestSectionView, ManifestStandardTypes, ManifestStore, ManifestTheme, ManifestTree, ManifestTreeItem, ManifestTreeStore, ManifestTypeMap, ManifestTypes, ManifestUserProfileApp, ManifestWithConditions, ManifestWithLoader, ManifestWithMeta, ManifestWithView, ManifestWorkspace, ManifestWorkspaceAction, ManifestWorkspaceView, ManifestWorkspaceViewCollection, MetaCollectionView, MetaDashboard, MetaDashboardCollection, MetaEditor, MetaEditorViewCollection, MetaEntityAction, MetaEntityBulkAction, MetaExternalLoginProvider, MetaHeaderApp, MetaHeaderAppButtonKind, MetaHealthCheck, MetaManifestWithView, MetaMenuItem, MetaMenuItemTreeKind, MetaPackageView, MetaPropertyEditorModel, MetaPropertyEditorUI, MetaSection, MetaSectionSidebarAppMenuKind, MetaSectionView, MetaTree, MetaUserProfileApp, MetaWorkspaceAction, MetaWorkspaceView, PropertyEditorConfig, PropertyEditorConfigDefaultData, PropertyEditorConfigProperty, SpecificManifestTypeOrManifestBase, UmbEntryPointExtensionInitializer };
package/modal.d.ts CHANGED
@@ -395,6 +395,15 @@ interface UmbFolderModalResult {
395
395
  }
396
396
  declare const UMB_FOLDER_MODAL: UmbModalToken$1<UmbFolderModalData, UmbFolderModalResult>;
397
397
 
398
+ interface UmbDataTypePickerModalData {
399
+ selection?: Array<string>;
400
+ multiple?: boolean;
401
+ }
402
+ interface UmbDataTypePickerModalResult {
403
+ selection: Array<string>;
404
+ }
405
+ declare const UMB_DATA_TYPE_PICKER_MODAL: UmbModalToken$1<UmbDataTypePickerModalData, UmbDataTypePickerModalResult>;
406
+
398
407
  interface UmbPickerModalData<T> {
399
408
  multiple: boolean;
400
409
  selection: Array<string>;
@@ -404,4 +413,4 @@ interface UmbPickerModalResult<T> {
404
413
  selection: Array<string>;
405
414
  }
406
415
 
407
- export { OEmbedResult, OEmbedStatus, UMB_ALLOWED_DOCUMENT_TYPES_MODAL, UMB_CHANGE_PASSWORD_MODAL, UMB_CONFIRM_MODAL, UMB_CONTEXT_DEBUGGER_MODAL, UMB_CREATE_DICTIONARY_MODAL, UMB_CREATE_USER_MODAL, UMB_CURRENT_USER_MODAL, UMB_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_TEMPLATE_MODAL, UMB_TEMPLATE_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaPickerModalData, UmbMediaPickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult };
416
+ export { OEmbedResult, OEmbedStatus, UMB_ALLOWED_DOCUMENT_TYPES_MODAL, UMB_CHANGE_PASSWORD_MODAL, UMB_CONFIRM_MODAL, UMB_CONTEXT_DEBUGGER_MODAL, UMB_CREATE_DICTIONARY_MODAL, UMB_CREATE_USER_MODAL, UMB_CURRENT_USER_MODAL, UMB_DATA_TYPE_PICKER_MODAL, UMB_DOCUMENT_PICKER_MODAL, UMB_DOCUMENT_TYPE_PICKER_MODAL, UMB_EMBEDDED_MEDIA_MODAL, UMB_EXAMINE_FIELDS_SETTINGS_MODAL, UMB_EXPORT_DICTIONARY_MODAL, UMB_FOLDER_MODAL, UMB_ICON_PICKER_MODAL, UMB_IMPORT_DICTIONARY_MODAL, UMB_INVITE_USER_MODAL, UMB_LANGUAGE_PICKER_MODAL, UMB_LINK_PICKER_MODAL, UMB_MEDIA_PICKER_MODAL, UMB_MODAL_CONTEXT_TOKEN, UMB_PROPERTY_EDITOR_UI_PICKER_MODAL, UMB_PROPERTY_SETTINGS_MODAL, UMB_SEARCH_MODAL, UMB_SECTION_PICKER_MODAL, UMB_TEMPLATE_MODAL, UMB_TEMPLATE_PICKER_MODAL, UMB_USER_GROUP_PICKER_MODAL, UMB_USER_PICKER_MODAL, UmbAllowedDocumentTypesModalData, UmbAllowedDocumentTypesModalResult, UmbChangePasswordModalData, UmbConfirmModalData, UmbConfirmModalResult, UmbContextDebuggerModalData, UmbCreateDictionaryModalData, UmbCreateDictionaryModalResult, UmbCreateDocumentModalResultData, UmbDataTypePickerModalData, UmbDataTypePickerModalResult, UmbDocumentPickerModalData, UmbDocumentPickerModalResult, UmbDocumentTypePickerModalData, UmbDocumentTypePickerModalResult, UmbEmbeddedMediaModalData, UmbEmbeddedMediaModalResult, UmbExamineFieldsSettingsModalData, UmbExportDictionaryModalData, UmbExportDictionaryModalResult, UmbFolderModalData, UmbFolderModalResult, UmbIconPickerModalData, UmbIconPickerModalResult, UmbImportDictionaryModalData, UmbImportDictionaryModalResult, UmbLanguagePickerModalData, UmbLanguagePickerModalResult, UmbLinkPickerConfig, UmbLinkPickerLink, UmbLinkPickerModalData, UmbLinkPickerModalResult, UmbMediaPickerModalData, UmbMediaPickerModalResult, UmbModalConfig, UmbModalContext, UmbModalHandler, UmbModalHandlerClass, UmbModalRouteBuilder, UmbModalRouteRegistration, UmbModalRouteRegistrationController, UmbModalToken, UmbModalType, UmbPickerModalData, UmbPickerModalResult, UmbPropertyEditorUIPickerModalData, UmbPropertyEditorUIPickerModalResult, UmbPropertySettingsModalResult, UmbSectionPickerModalData, UmbTemplateModalData, UmbTemplateModalResult, UmbTemplatePickerModalData, UmbTemplatePickerModalResult };
@@ -18,55 +18,55 @@ declare class UmbObserverController<T = unknown> extends UmbObserver<T> implemen
18
18
 
19
19
  /**
20
20
  * @export
21
- * @class BasicState
21
+ * @class UmbBasicState
22
22
  * @extends {BehaviorSubject<T>}
23
23
  * @description - A RxJS BehaviorSubject this Subject ensures the data is unique, not updating any Observes unless there is an actual change of the value.
24
24
  */
25
- declare class BasicState<T> extends BehaviorSubject<T> {
25
+ declare class UmbBasicState<T> extends BehaviorSubject<T> {
26
26
  constructor(initialData: T);
27
27
  next(newData: T): void;
28
28
  }
29
29
 
30
30
  /**
31
31
  * @export
32
- * @class BooleanState
32
+ * @class UmbBooleanState
33
33
  * @extends {BehaviorSubject<T>}
34
34
  * @description - A RxJS BehaviorSubject this Subject ensures the data is unique, not updating any Observes unless there is an actual change of the value.
35
35
  */
36
- declare class BooleanState<T> extends BasicState<T | boolean> {
36
+ declare class UmbBooleanState<T> extends UmbBasicState<T | boolean> {
37
37
  constructor(initialData: T | boolean);
38
38
  }
39
39
 
40
40
  /**
41
41
  * @export
42
- * @class NumberState
42
+ * @class UmbNumberState
43
43
  * @extends {BehaviorSubject<T>}
44
44
  * @description - A RxJS BehaviorSubject this Subject ensures the data is unique, not updating any Observes unless there is an actual change of the value.
45
45
  */
46
- declare class NumberState<T> extends BasicState<T | number> {
46
+ declare class UmbNumberState<T> extends UmbBasicState<T | number> {
47
47
  constructor(initialData: T | number);
48
48
  }
49
49
 
50
50
  /**
51
51
  * @export
52
- * @class StringState
53
- * @extends {BasicState<T>}
52
+ * @class UmbStringState
53
+ * @extends {UmbBasicState<T>}
54
54
  * @description - A RxJS BehaviorSubject this Subject ensures the data is unique, not updating any Observes unless there is an actual change of the value.
55
55
  */
56
- declare class StringState<T> extends BasicState<T | string> {
56
+ declare class UmbStringState<T> extends UmbBasicState<T | string> {
57
57
  constructor(initialData: T | string);
58
58
  }
59
59
 
60
- interface ClassStateData {
61
- equal(otherClass: ClassStateData): boolean;
60
+ interface UmbClassStateData {
61
+ equal(otherClass: UmbClassStateData): boolean;
62
62
  }
63
63
  /**
64
64
  * @export
65
- * @class ClassState
65
+ * @class UmbClassState
66
66
  * @extends {BehaviorSubject<T>}
67
67
  * @description - A RxJS BehaviorSubject which can hold class instance which has a equal method to compare in coming instances for changes.
68
68
  */
69
- declare class ClassState<T extends ClassStateData | undefined | null> extends BehaviorSubject<T> {
69
+ declare class UmbClassState<T extends UmbClassStateData | undefined | null> extends BehaviorSubject<T> {
70
70
  constructor(initialData: T);
71
71
  next(newData: T): void;
72
72
  }
@@ -77,12 +77,12 @@ type MemoizationFunction<R> = (previousResult: R, currentResult: R) => boolean;
77
77
 
78
78
  /**
79
79
  * @export
80
- * @class DeepState
80
+ * @class UmbDeepState
81
81
  * @extends {BehaviorSubject<T>}
82
82
  * @description - A RxJS BehaviorSubject which deepFreezes the data to ensure its not manipulated from any implementations.
83
83
  * Additionally the Subject ensures the data is unique, not updating any Observes unless there is an actual change of the content.
84
84
  */
85
- declare class DeepState<T> extends BehaviorSubject<T> {
85
+ declare class UmbDeepState<T> extends BehaviorSubject<T> {
86
86
  constructor(initialData: T);
87
87
  getObservablePart<ReturnType>(mappingFunction: MappingFunction<T, ReturnType>, memoizationFunction?: MemoizationFunction<ReturnType>): rxjs.Observable<ReturnType>;
88
88
  next(newData: T): void;
@@ -90,14 +90,14 @@ declare class DeepState<T> extends BehaviorSubject<T> {
90
90
 
91
91
  /**
92
92
  * @export
93
- * @class ArrayState
94
- * @extends {DeepState<T>}
93
+ * @class UmbArrayState
94
+ * @extends {UmbDeepState<T>}
95
95
  * @description - A RxJS BehaviorSubject which deepFreezes the object-data to ensure its not manipulated from any implementations.
96
96
  * Additionally the Subject ensures the data is unique, not updating any Observes unless there is an actual change of the content.
97
97
  *
98
98
  * The ArrayState provides methods to append data when the data is an Object.
99
99
  */
100
- declare class ArrayState<T> extends DeepState<T[]> {
100
+ declare class UmbArrayState<T> extends UmbDeepState<T[]> {
101
101
  #private;
102
102
  constructor(initialData: T[], getUniqueMethod?: (entry: T) => unknown);
103
103
  /**
@@ -109,7 +109,7 @@ declare class ArrayState<T> extends DeepState<T[]> {
109
109
  * { key: 1, value: 'foo'},
110
110
  * { key: 2, value: 'bar'}
111
111
  * ];
112
- * const myState = new ArrayState(data, (x) => x.key);
112
+ * const myState = new UmbArrayState(data, (x) => x.key);
113
113
  * myState.sortBy((a, b) => (a.sortOrder || 0) - (b.sortOrder || 0));
114
114
  */
115
115
  sortBy(sortMethod?: (a: T, b: T) => number): this;
@@ -117,35 +117,35 @@ declare class ArrayState<T> extends DeepState<T[]> {
117
117
  /**
118
118
  * @method remove
119
119
  * @param {unknown[]} uniques - The unique values to remove.
120
- * @return {ArrayState<T>} Reference to it self.
120
+ * @return {UmbArrayState<T>} Reference to it self.
121
121
  * @description - Remove some new data of this Subject.
122
122
  * @example <caption>Example remove entry with id '1' and '2'</caption>
123
123
  * const data = [
124
124
  * { id: 1, value: 'foo'},
125
125
  * { id: 2, value: 'bar'}
126
126
  * ];
127
- * const myState = new ArrayState(data, (x) => x.id);
127
+ * const myState = new UmbArrayState(data, (x) => x.id);
128
128
  * myState.remove([1, 2]);
129
129
  */
130
130
  remove(uniques: unknown[]): this;
131
131
  /**
132
132
  * @method removeOne
133
133
  * @param {unknown} unique - The unique value to remove.
134
- * @return {ArrayState<T>} Reference to it self.
134
+ * @return {UmbArrayState<T>} Reference to it self.
135
135
  * @description - Remove some new data of this Subject.
136
136
  * @example <caption>Example remove entry with id '1'</caption>
137
137
  * const data = [
138
138
  * { id: 1, value: 'foo'},
139
139
  * { id: 2, value: 'bar'}
140
140
  * ];
141
- * const myState = new ArrayState(data, (x) => x.id);
141
+ * const myState = new UmbArrayState(data, (x) => x.id);
142
142
  * myState.removeOne(1);
143
143
  */
144
144
  removeOne(unique: unknown): this;
145
145
  /**
146
146
  * @method filter
147
147
  * @param {unknown} filterMethod - The unique value to remove.
148
- * @return {ArrayState<T>} Reference to it self.
148
+ * @return {UmbArrayState<T>} Reference to it self.
149
149
  * @description - Remove some new data of this Subject.
150
150
  * @example <caption>Example remove entry with key '1'</caption>
151
151
  * const data = [
@@ -153,7 +153,7 @@ declare class ArrayState<T> extends DeepState<T[]> {
153
153
  * { key: 2, value: 'bar'},
154
154
  * { key: 3, value: 'poo'}
155
155
  * ];
156
- * const myState = new ArrayState(data, (x) => x.key);
156
+ * const myState = new UmbArrayState(data, (x) => x.key);
157
157
  * myState.filter((entry) => entry.key !== 1);
158
158
  *
159
159
  * Result:
@@ -167,28 +167,28 @@ declare class ArrayState<T> extends DeepState<T[]> {
167
167
  /**
168
168
  * @method appendOne
169
169
  * @param {T} entry - new data to be added in this Subject.
170
- * @return {ArrayState<T>} Reference to it self.
170
+ * @return {UmbArrayState<T>} Reference to it self.
171
171
  * @description - Append some new data to this Subject.
172
172
  * @example <caption>Example append some data.</caption>
173
173
  * const data = [
174
174
  * { key: 1, value: 'foo'},
175
175
  * { key: 2, value: 'bar'}
176
176
  * ];
177
- * const myState = new ArrayState(data);
177
+ * const myState = new UmbArrayState(data);
178
178
  * myState.append({ key: 1, value: 'replaced-foo'});
179
179
  */
180
180
  appendOne(entry: T): this;
181
181
  /**
182
182
  * @method append
183
183
  * @param {T[]} entries - A array of new data to be added in this Subject.
184
- * @return {ArrayState<T>} Reference to it self.
184
+ * @return {UmbArrayState<T>} Reference to it self.
185
185
  * @description - Append some new data to this Subject, if it compares to existing data it will replace it.
186
186
  * @example <caption>Example append some data.</caption>
187
187
  * const data = [
188
188
  * { key: 1, value: 'foo'},
189
189
  * { key: 2, value: 'bar'}
190
190
  * ];
191
- * const myState = new ArrayState(data);
191
+ * const myState = new UmbArrayState(data);
192
192
  * myState.append([
193
193
  * { key: 1, value: 'replaced-foo'},
194
194
  * { key: 3, value: 'another-bla'}
@@ -199,14 +199,14 @@ declare class ArrayState<T> extends DeepState<T[]> {
199
199
  * @method updateOne
200
200
  * @param {unknown} unique - Unique value to find entry to update.
201
201
  * @param {Partial<T>} entry - new data to be added in this Subject.
202
- * @return {ArrayState<T>} Reference to it self.
202
+ * @return {UmbArrayState<T>} Reference to it self.
203
203
  * @description - Update a item with some new data, requires the ArrayState to be constructed with a getUnique method.
204
204
  * @example <caption>Example append some data.</caption>
205
205
  * const data = [
206
206
  * { key: 1, value: 'foo'},
207
207
  * { key: 2, value: 'bar'}
208
208
  * ];
209
- * const myState = new ArrayState(data, (x) => x.key);
209
+ * const myState = new UmbArrayState(data, (x) => x.key);
210
210
  * myState.updateOne(2, {value: 'updated-bar'});
211
211
  */
212
212
  updateOne(unique: unknown, entry: Partial<T>): this;
@@ -214,22 +214,22 @@ declare class ArrayState<T> extends DeepState<T[]> {
214
214
 
215
215
  /**
216
216
  * @export
217
- * @class ObjectState
218
- * @extends {DeepState<T>}
217
+ * @class UmbObjectState
218
+ * @extends {UmbDeepState<T>}
219
219
  * @description - A RxJS BehaviorSubject which deepFreezes the object-data to ensure its not manipulated from any implementations.
220
220
  * Additionally the Subject ensures the data is unique, not updating any Observes unless there is an actual change of the content.
221
221
  *
222
- * The ObjectState provides methods to append data when the data is an Object.
222
+ * The UmbObjectState provides methods to append data when the data is an Object.
223
223
  */
224
- declare class ObjectState<T> extends DeepState<T> {
224
+ declare class UmbObjectState<T> extends UmbDeepState<T> {
225
225
  /**
226
226
  * @method update
227
227
  * @param {Partial<T>} partialData - A object containing some of the data to update in this Subject.
228
228
  * @description - Append some new data to this Object.
229
- * @return {ObjectState<T>} Reference to it self.
229
+ * @return {UmbObjectState<T>} Reference to it self.
230
230
  * @example <caption>Example append some data.</caption>
231
231
  * const data = {key: 'myKey', value: 'myInitialValue'};
232
- * const myState = new ObjectState(data);
232
+ * const myState = new UmbObjectState(data);
233
233
  * myState.update({value: 'myNewValue'});
234
234
  */
235
235
  update(partialData: Partial<T>): this;
@@ -254,7 +254,7 @@ declare function createObservablePart<R, T>(source$: Observable<T>, mappingFunct
254
254
  * @param {(mappable: T) => R} mappingFunction - Method to return the part for this Observable to return.
255
255
  * @param {(previousResult: R, currentResult: R) => boolean} [memoizationFunction] - Method to Compare if the data has changed. Should return true when data is different.
256
256
  * @description - Creates a RxJS Observable from RxJS Subject.
257
- * @example <caption>Example append new entry for a ArrayState or a part of DeepState/ObjectState it which is an array. Where the key is unique and the item will be updated if matched with existing.</caption>
257
+ * @example <caption>Example append new entry for a ArrayState or a part of UmbDeepState/UmbObjectState it which is an array. Where the key is unique and the item will be updated if matched with existing.</caption>
258
258
  * const entry = {id: 'myKey', value: 'myValue'};
259
259
  * const newDataSet = appendToFrozenArray(mySubject.getValue(), entry, x => x.id === id);
260
260
  * mySubject.next(newDataSet);
@@ -268,11 +268,11 @@ declare function appendToFrozenArray<T>(data: T[], entry: T, getUniqueMethod?: (
268
268
  * @param {(mappable: T) => R} mappingFunction - Method to return the part for this Observable to return.
269
269
  * @param {(previousResult: R, currentResult: R) => boolean} [memoizationFunction] - Method to Compare if the data has changed. Should return true when data is different.
270
270
  * @description - Creates a RxJS Observable from RxJS Subject.
271
- * @example <caption>Example append new entry for a ArrayState or a part of DeepState/ObjectState it which is an array. Where the key is unique and the item will be updated if matched with existing.</caption>
271
+ * @example <caption>Example append new entry for a ArrayState or a part of UmbDeepState/UmbObjectState it which is an array. Where the key is unique and the item will be updated if matched with existing.</caption>
272
272
  * const partialEntry = {value: 'myValue'};
273
273
  * const newDataSet = partialUpdateFrozenArray(mySubject.getValue(), partialEntry, x => x.key === 'myKey');
274
274
  * mySubject.next(newDataSet);
275
275
  */
276
276
  declare function partialUpdateFrozenArray<T>(data: T[], partialEntry: Partial<T>, findMethod: (entry: T) => boolean): T[];
277
277
 
278
- export { ArrayState, BasicState, BooleanState, ClassState, DeepState, MappingFunction, NumberState, ObjectState, StringState, UmbObserver, UmbObserverController, appendToFrozenArray, createObservablePart, partialUpdateFrozenArray };
278
+ export { MappingFunction, UmbArrayState, UmbBasicState, UmbBooleanState, UmbClassState, UmbDeepState, UmbNumberState, UmbObjectState, UmbObserver, UmbObserverController, UmbStringState, appendToFrozenArray, createObservablePart, partialUpdateFrozenArray };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-cms/backoffice",
3
- "version": "1.0.0-next.f1bd6ec7",
3
+ "version": "1.0.0-next.f2af51c4",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "umbraco",
@@ -0,0 +1,24 @@
1
+ import * as rxjs from 'rxjs';
2
+ import { UmbItemRepository } from './repository';
3
+ import { UmbControllerHostElement } from './controller';
4
+ import { UmbModalToken, UmbModalContext } from './modal';
5
+ import { ItemResponseModelBaseModel } from './backend-api';
6
+
7
+ declare class UmbPickerInputContext<ItemType extends ItemResponseModelBaseModel> {
8
+ #private;
9
+ host: UmbControllerHostElement;
10
+ modalAlias: string | UmbModalToken;
11
+ repository?: UmbItemRepository<ItemType>;
12
+ modalContext?: UmbModalContext;
13
+ selection: rxjs.Observable<string[]>;
14
+ selectedItems: rxjs.Observable<ItemType[]>;
15
+ max: number;
16
+ min: number;
17
+ constructor(host: UmbControllerHostElement, repositoryAlias: string, modalAlias: string | UmbModalToken, getUniqueMethod?: (entry: ItemType) => string | undefined);
18
+ getSelection(): string[];
19
+ setSelection(selection: string[]): void;
20
+ openPicker(pickerData?: any): void;
21
+ requestRemoveItem(unique: string): Promise<void>;
22
+ }
23
+
24
+ export { UmbPickerInputContext };
package/repository.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ProblemDetailsModel, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, FolderModelBaseModel } from './backend-api';
1
+ import { ProblemDetailsModel, FolderReponseModel, CreateFolderRequestModel, UpdateFolderReponseModel, FolderModelBaseModel, ItemResponseModelBaseModel } from './backend-api';
2
2
  import { DataSourceResponse as DataSourceResponse$1 } from './repository';
3
3
  import { Observable } from 'rxjs';
4
4
 
@@ -29,6 +29,10 @@ interface UmbTreeDataSource<PagedItemsType = any, ItemsType = any> {
29
29
  getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemsType>>>;
30
30
  }
31
31
 
32
+ interface UmbItemDataSource<ItemType> {
33
+ getItems(unique: Array<string>): Promise<DataSourceResponse$1<Array<ItemType>>>;
34
+ }
35
+
32
36
  interface UmbRepositoryErrorResponse {
33
37
  error?: ProblemDetailsModel;
34
38
  }
@@ -58,14 +62,14 @@ interface UmbTreeRepository<ItemType = any, PagedItemType = UmbPagedData<ItemTyp
58
62
  error: ProblemDetailsModel | undefined;
59
63
  asObservable?: () => Observable<ItemType[]>;
60
64
  }>;
61
- requestTreeItems: (uniques: string[]) => Promise<{
65
+ requestItemsLegacy?: (uniques: string[]) => Promise<{
62
66
  data: Array<ItemType> | undefined;
63
67
  error: ProblemDetailsModel | undefined;
64
68
  asObservable?: () => Observable<ItemType[]>;
65
69
  }>;
66
70
  rootTreeItems: () => Promise<Observable<ItemType[]>>;
67
71
  treeItemsOf: (parentUnique: string | null) => Promise<Observable<ItemType[]>>;
68
- treeItems: (uniques: string[]) => Promise<Observable<ItemType[]>>;
72
+ itemsLegacy?: (uniques: string[]) => Promise<Observable<ItemType[]>>;
69
73
  }
70
74
 
71
75
  interface UmbFolderRepository {
@@ -90,4 +94,13 @@ interface UmbFolderRepository {
90
94
  }>;
91
95
  }
92
96
 
93
- export { DataSourceResponse, UmbDataSource, UmbDetailRepository, UmbFolderDataSource, UmbFolderRepository, UmbPagedData, UmbRepositoryErrorResponse, UmbRepositoryResponse, UmbTreeDataSource, UmbTreeRepository };
97
+ interface UmbItemRepository<ItemType extends ItemResponseModelBaseModel> {
98
+ requestItems: (uniques: string[]) => Promise<{
99
+ data?: Array<ItemType> | undefined;
100
+ error?: ProblemDetailsModel | undefined;
101
+ asObservable?: () => Observable<Array<ItemType>>;
102
+ }>;
103
+ items: (uniques: string[]) => Promise<Observable<Array<ItemType>>>;
104
+ }
105
+
106
+ export { DataSourceResponse, UmbDataSource, UmbDetailRepository, UmbFolderDataSource, UmbFolderRepository, UmbItemDataSource, UmbItemRepository, UmbPagedData, UmbRepositoryErrorResponse, UmbRepositoryResponse, UmbTreeDataSource, UmbTreeRepository };
package/store.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
3
  import { UmbControllerHostElement } from './controller';
4
+ import { UmbArrayState } from './observable-api';
4
5
  import { EntityTreeItemResponseModel, FileSystemTreeItemPresentationModel } from './backend-api';
5
6
  import { UmbStoreBase as UmbStoreBase$1, UmbTreeStore as UmbTreeStore$1 } from './store';
6
7
 
@@ -38,39 +39,46 @@ interface UmbContentStore<T> extends UmbEntityDetailStore<T> {
38
39
  save(data: T[]): Promise<void>;
39
40
  }
40
41
 
41
- declare class UmbStoreBase {
42
- protected _host: UmbControllerHostElement;
43
- readonly storeAlias: string;
44
- constructor(_host: UmbControllerHostElement, storeAlias: string);
42
+ interface UmbStore<T> {
43
+ appendItems: (items: Array<T>) => void;
44
+ updateItem: (unique: string, item: Partial<T>) => void;
45
+ removeItem: (unique: string) => void;
45
46
  }
46
47
 
47
- /**
48
- * @export
49
- * @class UmbEntityTreeStore
50
- * @extends {UmbStoreBase}
51
- * @description - General Tree Data Store
52
- */
53
- declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$1<EntityTreeItemResponseModel> {
54
- #private;
48
+ declare class UmbStoreBase<StoreItemType = any> implements UmbStore<StoreItemType> {
49
+ protected _host: UmbControllerHostElement;
50
+ protected _data: UmbArrayState<StoreItemType>;
51
+ readonly storeAlias: string;
52
+ constructor(_host: UmbControllerHostElement, storeAlias: string, data: UmbArrayState<StoreItemType>);
55
53
  /**
56
54
  * Appends items to the store
57
- * @param {Array<EntityTreeItemResponseModel>} items
55
+ * @param {Array<StoreItemType>} items
58
56
  * @memberof UmbEntityTreeStore
59
57
  */
60
- appendItems(items: Array<EntityTreeItemResponseModel>): void;
58
+ appendItems(items: Array<StoreItemType>): void;
61
59
  /**
62
60
  * Updates an item in the store
63
61
  * @param {string} id
64
- * @param {Partial<EntityTreeItemResponseModel>} data
62
+ * @param {Partial<StoreItemType>} data
65
63
  * @memberof UmbEntityTreeStore
66
64
  */
67
- updateItem(id: string, data: Partial<EntityTreeItemResponseModel>): void;
65
+ updateItem(unique: string, data: Partial<StoreItemType>): void;
68
66
  /**
69
67
  * Removes an item from the store
70
68
  * @param {string} id
71
69
  * @memberof UmbEntityTreeStore
72
70
  */
73
- removeItem(id: string): void;
71
+ removeItem(unique: string): void;
72
+ }
73
+
74
+ /**
75
+ * @export
76
+ * @class UmbEntityTreeStore
77
+ * @extends {UmbStoreBase}
78
+ * @description - Entity Tree Store
79
+ */
80
+ declare class UmbEntityTreeStore extends UmbStoreBase$1<EntityTreeItemResponseModel> implements UmbTreeStore$1<EntityTreeItemResponseModel> {
81
+ constructor(host: UmbControllerHostElement, storeAlias: string);
74
82
  /**
75
83
  * An observable to observe the root items
76
84
  * @memberof UmbEntityTreeStore
@@ -96,29 +104,10 @@ declare class UmbEntityTreeStore extends UmbStoreBase$1 implements UmbTreeStore$
96
104
  * @export
97
105
  * @class UmbFileSystemTreeStore
98
106
  * @extends {UmbStoreBase}
99
- * @description - General Tree Data Store
107
+ * @description - File System Tree Store
100
108
  */
101
- declare class UmbFileSystemTreeStore extends UmbStoreBase$1 implements UmbTreeStore$1<FileSystemTreeItemPresentationModel> {
102
- #private;
103
- /**
104
- * Appends items to the store
105
- * @param {Array<FileSystemTreeItemPresentationModel>} items
106
- * @memberof UmbFileSystemTreeStore
107
- */
108
- appendItems(items: Array<FileSystemTreeItemPresentationModel>): void;
109
- /**
110
- * Updates an item in the store
111
- * @param {string} path
112
- * @param {Partial<FileSystemTreeItemPresentationModel>} data
113
- * @memberof UmbFileSystemTreeStore
114
- */
115
- updateItem(path: string, data: Partial<FileSystemTreeItemPresentationModel>): void;
116
- /**
117
- * Removes an item from the store
118
- * @param {string} path
119
- * @memberof UmbFileSystemTreeStore
120
- */
121
- removeItem(path: string): void;
109
+ declare class UmbFileSystemTreeStore extends UmbStoreBase$1<FileSystemTreeItemPresentationModel> implements UmbTreeStore$1<FileSystemTreeItemPresentationModel> {
110
+ constructor(host: UmbControllerHostElement, storeAlias: string);
122
111
  /**
123
112
  * An observable to observe the root items
124
113
  * @memberof UmbFileSystemTreeStore
@@ -147,13 +136,19 @@ type TreeItemPresentationModel = {
147
136
  hasChildren?: boolean;
148
137
  };
149
138
 
150
- interface UmbTreeStore<T extends TreeItemPresentationModel = any> {
151
- appendItems: (items: Array<T>) => void;
152
- updateItem: (unique: string, item: Partial<T>) => void;
153
- removeItem: (unique: string) => void;
139
+ type ItemResponseModelBaseModel = {
140
+ name?: string;
141
+ id?: string;
142
+ };
143
+
144
+ interface UmbTreeStore<T extends TreeItemPresentationModel = any> extends UmbStore<T> {
154
145
  rootItems: Observable<Array<T>>;
155
146
  childrenOf: (parentUnique: string | null) => Observable<Array<T>>;
156
147
  items: (uniques: Array<string>) => Observable<Array<T>>;
157
148
  }
158
149
 
159
- export { UmbContentStore, UmbDataStore, UmbDataStoreIdentifiers, UmbEntityDetailStore, UmbEntityTreeStore, UmbFileSystemTreeStore, UmbStoreBase, UmbTreeStore };
150
+ interface UmbItemStore<T extends ItemResponseModelBaseModel = any> extends UmbStore<T> {
151
+ items: (uniques: Array<string>) => Observable<Array<T>>;
152
+ }
153
+
154
+ export { UmbContentStore, UmbDataStore, UmbDataStoreIdentifiers, UmbEntityDetailStore, UmbEntityTreeStore, UmbFileSystemTreeStore, UmbItemStore, UmbStoreBase, UmbTreeStore };
@@ -517,6 +517,32 @@
517
517
  "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `_telemetryFormData` - \n\n * `_telemetryLevels` {`any[]`} - \n\n * `_errorMessage` {`string`} - \n\n * `_buttonState` {`UUIButtonState`} - \n\n * `_handleSubmit` - \n\n * `_selectedTelemetryIndex` {`number`} - \n\n * `_selectedTelemetry` - \n\n * `_selectedTelemetryDescription` {`\"We will only send an anonymized site ID to let us know that the site exists.\" | \"We will send an anonymized site ID, Umbraco version, and packages installed.\" | \"We will send:<ul>\\n\\t\\t\\t\\t<li>Anonymized site ID, Umbraco version, and packages installed.</li>\\n\\t\\t\\t\\t<li>Number of: Root nodes, Content nodes, Macros...`} - ",
518
518
  "attributes": []
519
519
  },
520
+ {
521
+ "name": "umb-data-type-input",
522
+ "description": "Attributes:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `min-message` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `value` {`string`} - \n\nProperties:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `minMessage` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `selectedIds` {`string[]`} - \n\n * `_items` {`any[] | undefined`} - \n\n * `styles` {`CSSResult[]`} - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`string`} - \n\n * `name` {`string`} - \n\n * `validationMessage` {`string`} - \n\n * `validity` {`ValidityState`} - \n\n * `_value` {`FormDataEntryValue | FormData`} - \n\n * `_internals` - \n\n * `addValidator` - \n\n * `pristine` {`boolean`} - \n\n * `required` {`boolean`} - \n\n * `requiredMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `errorMessage` {`string`} - ",
523
+ "attributes": [
524
+ {
525
+ "name": "min",
526
+ "description": "`min` {number} - This is a minimum amount of selected items in this input.\n\nProperty: min\n\nDefault: 0"
527
+ },
528
+ {
529
+ "name": "max",
530
+ "description": "`max` {number} - This is a maximum amount of selected items in this input.\n\nProperty: max\n\nDefault: Infinity"
531
+ },
532
+ {
533
+ "name": "min-message",
534
+ "description": "`min-message` {boolean} - Min validation message.\n\nProperty: minMessage\n\nDefault: "
535
+ },
536
+ {
537
+ "name": "maxMessage",
538
+ "description": "`maxMessage` {boolean} - Max validation message.\n\nProperty: maxMessage\n\nDefault: "
539
+ },
540
+ {
541
+ "name": "value",
542
+ "description": "`value` {`string`} - \n\nProperty: value"
543
+ }
544
+ ]
545
+ },
520
546
  {
521
547
  "name": "umb-data-type-create-options-modal",
522
548
  "description": "Attributes:\n\n * `data` {`UmbDataTypeCreateOptionsModalData | undefined`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` {`UmbDataTypeCreateOptionsModalData | undefined`} - ",
@@ -528,6 +554,11 @@
528
554
  }
529
555
  ]
530
556
  },
557
+ {
558
+ "name": "umb-data-type-picker-modal",
559
+ "description": "Properties:\n\n * `styles` {`CSSResult[]`} - \n\n * `modalHandler` - \n\n * `data` - \n\n * `_selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - ",
560
+ "attributes": []
561
+ },
531
562
  {
532
563
  "name": "umb-data-type-workspace-edit-element",
533
564
  "description": "Attributes:\n\n * `manifest` - \n\n * `location` - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `manifest` - \n\n * `location` - \n\n * `_dataTypeName` {`string`} - ",
@@ -935,7 +966,7 @@
935
966
  ]
936
967
  },
937
968
  {
938
- "name": "uui-code-block",
969
+ "name": "umb-code-block",
939
970
  "description": "A simple styled box for showing code-based error messages.\n\nSlots:\n\n * ` ` {} - the full message\n\nProperties:\n\n * `styles` {`CSSResult[]`} - ",
940
971
  "attributes": []
941
972
  },
@@ -1329,17 +1360,15 @@
1329
1360
  },
1330
1361
  {
1331
1362
  "name": "umb-input-language-picker",
1332
- "description": "Attributes:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `min-message` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `value` {`string`} - \n\nProperties:\n\n * `styles` {`CSSResult[]`} - \n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `minMessage` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `filter` - \n\n * `_selectedIsoCodes` {`string[]`} - \n\n * `selectedIsoCodes` {`string[]`} - \n\n * `_items` {`any[] | undefined`} - \n\n * `_modalContext` - \n\n * `_repository` - \n\n * `_pickedItemsObserver` - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`string`} - \n\n * `name` {`string`} - \n\n * `validationMessage` {`string`} - \n\n * `validity` {`ValidityState`} - \n\n * `_value` {`FormDataEntryValue | FormData`} - \n\n * `_internals` - \n\n * `addValidator` - \n\n * `pristine` {`boolean`} - \n\n * `required` {`boolean`} - \n\n * `requiredMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `errorMessage` {`string`} - ",
1363
+ "description": "Attributes:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `min-message` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `value` {`string`} - \n\nProperties:\n\n * `min` {number} - This is a minimum amount of selected items in this input.\n\n * `max` {number} - This is a maximum amount of selected items in this input.\n\n * `minMessage` {boolean} - Min validation message.\n\n * `maxMessage` {boolean} - Max validation message.\n\n * `filter` - \n\n * `selectedIsoCodes` {`string[]`} - \n\n * `_items` {`any[]`} - \n\n * `styles` {`CSSResult[]`} - \n\n * `formAssociated` {`boolean`} - \n\n * `value` {`string`} - \n\n * `name` {`string`} - \n\n * `validationMessage` {`string`} - \n\n * `validity` {`ValidityState`} - \n\n * `_value` {`FormDataEntryValue | FormData`} - \n\n * `_internals` - \n\n * `addValidator` - \n\n * `pristine` {`boolean`} - \n\n * `required` {`boolean`} - \n\n * `requiredMessage` {`string`} - \n\n * `error` {`boolean`} - \n\n * `errorMessage` {`string`} - ",
1333
1364
  "attributes": [
1334
1365
  {
1335
1366
  "name": "min",
1336
- "description": "`min` {number} - This is a minimum amount of selected items in this input.\n\nProperty: min\n\nDefault: undefined",
1337
- "values": []
1367
+ "description": "`min` {number} - This is a minimum amount of selected items in this input.\n\nProperty: min\n\nDefault: 0"
1338
1368
  },
1339
1369
  {
1340
1370
  "name": "max",
1341
- "description": "`max` {number} - This is a maximum amount of selected items in this input.\n\nProperty: max\n\nDefault: undefined",
1342
- "values": []
1371
+ "description": "`max` {number} - This is a maximum amount of selected items in this input.\n\nProperty: max\n\nDefault: Infinity"
1343
1372
  },
1344
1373
  {
1345
1374
  "name": "min-message",
@@ -1994,7 +2023,7 @@
1994
2023
  },
1995
2024
  {
1996
2025
  "name": "umb-tree",
1997
- "description": "Events:\n\n * `selected` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `alias` {`string`} - \n\n * `selectable` {`boolean`} - \n\n * `selection` {`string[]`} - \n\nProperties:\n\n * `_alias` {`string`} - \n\n * `alias` {`string`} - \n\n * `_selectable` {`boolean`} - \n\n * `selectable` {`boolean`} - \n\n * `_selection` {`string[]`} - \n\n * `selection` {`string[]`} - \n\n * `_tree` - \n\n * `_items` {`any[]`} - \n\n * `_treeContext` - ",
2026
+ "description": "Events:\n\n * `selected` {`CustomEvent<unknown>`} - \n\nAttributes:\n\n * `alias` {`string`} - \n\n * `selectable` {`boolean`} - \n\n * `selection` {`string[]`} - \n\n * `multiple` {`boolean`} - \n\nProperties:\n\n * `_alias` {`string`} - \n\n * `alias` {`string`} - \n\n * `_selectable` {`boolean`} - \n\n * `selectable` {`boolean`} - \n\n * `_selection` {`string[]`} - \n\n * `selection` {`string[]`} - \n\n * `_multiple` {`boolean`} - \n\n * `multiple` {`boolean`} - \n\n * `_tree` - \n\n * `_items` {`any[]`} - \n\n * `_treeContext` - ",
1998
2027
  "attributes": [
1999
2028
  {
2000
2029
  "name": "alias",
@@ -2009,6 +2038,11 @@
2009
2038
  "name": "selection",
2010
2039
  "description": "`selection` {`string[]`} - \n\nProperty: selection"
2011
2040
  },
2041
+ {
2042
+ "name": "multiple",
2043
+ "description": "`multiple` {`boolean`} - \n\nProperty: multiple",
2044
+ "valueSet": "v"
2045
+ },
2012
2046
  {
2013
2047
  "name": "onselected",
2014
2048
  "description": "`selected` {`CustomEvent<unknown>`} - "
@@ -3165,7 +3199,7 @@
3165
3199
  "attributes": []
3166
3200
  },
3167
3201
  {
3168
- "name": "story-modal-context-example",
3202
+ "name": "umb-story-modal-context-example",
3169
3203
  "description": "Attributes:\n\n * `modalLayout` {`string`} - \n\nProperties:\n\n * `modalLayout` {`string`} - \n\n * `value` {`string`} - \n\n * `_modalContext` - ",
3170
3204
  "attributes": [
3171
3205
  {
@@ -3185,7 +3219,7 @@
3185
3219
  ]
3186
3220
  },
3187
3221
  {
3188
- "name": "story-notification-default-example",
3222
+ "name": "umb-story-notification-default-example",
3189
3223
  "description": "Properties:\n\n * `_notificationContext` - \n\n * `_handleNotification` - ",
3190
3224
  "attributes": []
3191
3225
  },