Merge branch 'main' into feature/modal-tree-picker-kind

This commit is contained in:
Niels Lyngsø
2023-05-10 15:01:54 +02:00
committed by GitHub
45 changed files with 2262 additions and 66 deletions

View File

@@ -0,0 +1,20 @@
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
export interface UmbDictionaryItemPickerModalData {
multiple: boolean;
selection: string[];
}
export interface UmbDictionaryItemPickerModalResult {
selection: Array<string | null>;
}
export const UMB_DICTIONARY_ITEM_PICKER_MODAL_ALIAS = 'Umb.Modal.DictionaryItemPicker';
export const UMB_DICTIONARY_ITEM_PICKER_MODAL = new UmbModalToken<
UmbDictionaryItemPickerModalData,
UmbDictionaryItemPickerModalResult
>(UMB_DICTIONARY_ITEM_PICKER_MODAL_ALIAS, {
type: 'sidebar',
size: 'small',
});

View File

@@ -26,4 +26,6 @@ export * from './template-picker-modal.token';
export * from './user-group-picker-modal.token';
export * from './user-picker-modal.token';
export * from './folder-modal.token';
export * from './partial-view-picker-modal.token';
export * from './dictionary-item-picker-modal.token';
export * from './data-type-picker-modal.token';

View File

@@ -0,0 +1,20 @@
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
export interface UmbPartialViewPickerModalData {
multiple: boolean;
selection: string[];
}
export interface UmbPartialViewPickerModalResult {
selection: Array<string | null> | undefined;
}
export const UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS = 'Umb.Modal.PartialViewPicker';
export const UMB_PARTIAL_VIEW_PICKER_MODAL = new UmbModalToken<
UmbPartialViewPickerModalData,
UmbPartialViewPickerModalResult
>(UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS, {
type: 'sidebar',
size: 'small',
});