Skip to content

Commit

Permalink
Merge branch 'main' into v15/fix/move-user-permission-settings-token
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Sep 24, 2024
2 parents 740f4d8 + d3f5126 commit 2b8ac00
Show file tree
Hide file tree
Showing 43 changed files with 58 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-trash',
label: '#actions_delete',
additionalOptions: true,
itemRepositoryAlias: '',
detailRepositoryAlias: '',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-enter',
label: '#actions_copy',
additionalOptions: true,
treeRepositoryAlias: '',
duplicateRepositoryAlias: '',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ export class UmbEntityActionDefaultElement<
}

override render() {
const label = this.manifest?.meta.label ? this.localize.string(this.manifest.meta.label) : this.manifest?.name;

return html`
<uui-menu-item
label=${ifDefined(
this.manifest?.meta.label ? this.localize.string(this.manifest.meta.label) : this.manifest?.name,
)}
label=${ifDefined(this.manifest?.meta.additionalOptions ? label + '...' : label)}
href=${ifDefined(this._href)}
@click-label=${this.#onClickLabel}
@click=${this.#onClick}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ export interface MetaEntityActionDefaultKind extends MetaEntityAction {
* ]
*/
label: string;

/**
* The action requires additional input from the user.
* A dialog will prompt the user for more information or to make a choice.
* @type {boolean}
* @memberof MetaEntityActionDefaultKind
*/
additionalOptions?: boolean;
}

// DELETE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export const manifest: UmbExtensionManifestKind = {
forEntityTypes: [],
meta: {
icon: 'icon-trash',
label: 'Empty Recycle Bin...',
label: 'Empty Recycle Bin',
additionalOptions: true,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export const manifest: UmbExtensionManifestKind = {
forEntityTypes: [],
meta: {
icon: 'icon-undo',
label: 'Restore...',
label: 'Restore',
pickerModal: '',
additionalOptions: true,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const manifest: UmbExtensionManifestKind = {
label: '#actions_trash',
itemRepositoryAlias: '',
recycleBinRepositoryAlias: '',
additionalOptions: true,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-enter',
label: '#actions_copyTo',
additionalOptions: true,
treeRepositoryAlias: '',
duplicateRepositoryAlias: '',
treeAlias: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-enter',
label: '#actions_move',
additionalOptions: true,
treeRepositoryAlias: '',
moveRepositoryAlias: '',
treeAlias: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-height',
label: '#actions_sort',
additionalOptions: true,
itemRepositoryAlias: '',
sortRepositoryAlias: '',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-add',
label: '#actions_folderCreate',
additionalOptions: true,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-trash',
label: '#actions_folderDelete',
additionalOptions: true,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const manifest: UmbExtensionManifestKind = {
meta: {
icon: 'icon-edit',
label: '#actions_folderRename',
additionalOptions: true,
},
},
};
1 change: 1 addition & 0 deletions src/packages/data-type/entity-actions/create/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
5 changes: 4 additions & 1 deletion src/packages/dictionary/entity-action/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#dictionary_createNew',
label: '#general_create',
additionalOptions: true,
},
},
{
Expand All @@ -27,6 +28,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-download-alt',
label: '#actions_export',
additionalOptions: true,
},
},
{
Expand All @@ -40,6 +42,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-page-up',
label: '#actions_import',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_createblueprint',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-download-alt',
label: '#actions_export',
additionalOptions: true,
},
},
...repositoryManifests,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-page-up',
label: '#actions_import',
additionalOptions: true,
},
},
...repositoryManifests,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
itemRepositoryAlias: UMB_DOCUMENT_TYPE_ITEM_REPOSITORY_ALIAS,
detailRepositoryAlias: UMB_DOCUMENT_TYPE_DETAIL_REPOSITORY_ALIAS,
additionalOptions: true,
},
},
...createManifests,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-blueprint',
label: '#actions_createblueprint',
additionalOptions: true,
},
conditions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
conditions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-home',
label: '#actions_assigndomain',
additionalOptions: true,
},
conditions: [
{
Expand Down
2 changes: 2 additions & 0 deletions src/packages/documents/documents/entity-actions/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const entityActions: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-globe',
label: '#actions_publish',
additionalOptions: true,
},
conditions: [
{
Expand All @@ -73,6 +74,7 @@ const entityActions: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-globe',
label: '#actions_unpublish',
additionalOptions: true,
},
conditions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const actionManifests: Array<ManifestEntityAction> = [
meta: {
icon: 'icon-megaphone',
label: '#actions_notify',
additionalOptions: true,
},
conditions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-lock',
label: '#actions_protect',
additionalOptions: true,
},
conditions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const manifests: Array<UmbExtensionManifest> = [
itemRepositoryAlias: UMB_DOCUMENT_ITEM_REPOSITORY_ALIAS,
sortChildrenOfRepositoryAlias: UMB_SORT_CHILDREN_OF_DOCUMENT_REPOSITORY_ALIAS,
treeRepositoryAlias: UMB_DOCUMENT_TREE_REPOSITORY_ALIAS,
additionalOptions: true,
},
conditions: [
{
Expand Down
1 change: 1 addition & 0 deletions src/packages/language/entity-actions/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-download-alt',
label: '#actions_export',
additionalOptions: true,
},
},
...repositoryManifests,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-page-up',
label: '#actions_import',
additionalOptions: true,
},
},
...repositoryManifests,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
conditions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const entityActions: Array<ManifestTypes> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
{
Expand Down
1 change: 1 addition & 0 deletions src/packages/user/user/entity-actions/create/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> =
meta: {
icon: 'icon-add',
label: '#actions_create',
additionalOptions: true,
},
},
...modalManifests,
Expand Down
1 change: 1 addition & 0 deletions src/packages/user/user/entity-actions/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const entityActions: Array<ManifestEntityAction> = [
meta: {
icon: 'icon-settings',
label: '#user_configureMfa',
additionalOptions: true,
},
conditions: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-paper-plane',
label: '#user_invite',
additionalOptions: true,
},
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
meta: {
icon: 'icon-message',
label: '#actions_resendInvite',
additionalOptions: true,
},
conditions: [
{
Expand Down

0 comments on commit 2b8ac00

Please sign in to comment.