@umbraco-cms/backoffice 14.0.0--preview004-1876370c → 14.0.0--preview004-81c76c8a
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/dist-cms/packages/core/data-type/modals/data-type-picker-flow/data-type-picker-flow-modal.element.js +1 -0
- package/dist-cms/packages/core/data-type/modals/property-editor-ui-picker/property-editor-ui-picker-modal.element.js +1 -0
- package/dist-cms/packages/core/modal/common/icon-picker/icon-picker-modal.element.js +3 -2
- package/dist-cms/packages/core/workspace/workspace-action/workspace-action-base.d.ts +3 -6
- package/dist-cms/packages/core/workspace/workspace-action/workspace-action-base.js +5 -4
- package/dist-cms/packages/dictionary/dashboards/dictionary/dashboard-localization-dictionary.element.js +3 -2
- package/dist-cms/packages/documents/documents/workspace/document-workspace.element.js +1 -0
- package/dist-cms/packages/search/examine-management-dashboard/views/section-view-examine-searchers.js +1 -0
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/examples/README.md +7 -0
- package/examples/index.js +0 -0
- package/examples/workspace-context-counter/README.md +8 -0
- package/examples/workspace-context-counter/counter-workspace-context.ts +29 -0
- package/examples/workspace-context-counter/counter-workspace-view.ts +60 -0
- package/examples/workspace-context-counter/incrementor-workspace-action.ts +17 -0
- package/examples/workspace-context-counter/index.ts +52 -0
- package/package.json +7 -3
|
@@ -89,10 +89,11 @@ export let UmbIconPickerModalElement = class UmbIconPickerModalElement extends U
|
|
|
89
89
|
}
|
|
90
90
|
renderSearchbar() {
|
|
91
91
|
return html ` <uui-input
|
|
92
|
-
|
|
92
|
+
type="search"
|
|
93
93
|
placeholder="Type to filter..."
|
|
94
94
|
label="Type to filter icons"
|
|
95
|
-
id="searchbar"
|
|
95
|
+
id="searchbar"
|
|
96
|
+
@keyup="${this.#filterIcons}">
|
|
96
97
|
<uui-icon name="search" slot="prepend" id="searchbar_icon"></uui-icon>
|
|
97
98
|
</uui-input>`;
|
|
98
99
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { UmbWorkspaceContextInterface } from '../workspace-context/index.js';
|
|
2
|
-
import type
|
|
2
|
+
import { UmbBaseController, type UmbControllerHost } from '../../../../libs/controller-api/index.js';
|
|
3
3
|
import type { UmbApi } from '../../../../libs/extension-api/index.js';
|
|
4
|
-
export interface UmbWorkspaceAction
|
|
5
|
-
host: UmbControllerHost;
|
|
6
|
-
workspaceContext?: WorkspaceType;
|
|
4
|
+
export interface UmbWorkspaceAction extends UmbApi {
|
|
7
5
|
execute(): Promise<void>;
|
|
8
6
|
}
|
|
9
|
-
export declare abstract class UmbWorkspaceActionBase<WorkspaceContextType extends UmbWorkspaceContextInterface> implements UmbWorkspaceAction
|
|
10
|
-
host: UmbControllerHost;
|
|
7
|
+
export declare abstract class UmbWorkspaceActionBase<WorkspaceContextType extends UmbWorkspaceContextInterface> extends UmbBaseController implements UmbWorkspaceAction {
|
|
11
8
|
workspaceContext?: WorkspaceContextType;
|
|
12
9
|
constructor(host: UmbControllerHost);
|
|
13
10
|
abstract execute(): Promise<void>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { UMB_WORKSPACE_CONTEXT } from '../workspace-context/index.js';
|
|
2
|
-
import {
|
|
3
|
-
export class UmbWorkspaceActionBase {
|
|
2
|
+
import { UmbBaseController } from '../../../../libs/controller-api/index.js';
|
|
3
|
+
export class UmbWorkspaceActionBase extends UmbBaseController {
|
|
4
4
|
constructor(host) {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
super(host);
|
|
6
|
+
// TODO, we most likely should require a context token here in this type, and mane it specifically for workspace actions with context workspace request.
|
|
7
|
+
this.consumeContext(UMB_WORKSPACE_CONTEXT, (instance) => {
|
|
7
8
|
// TODO: Be aware we are casting here. We should consider a better solution for typing the contexts. (But notice we still want to capture the first workspace...)
|
|
8
9
|
this.workspaceContext = instance;
|
|
9
10
|
});
|
|
@@ -115,10 +115,11 @@ export let UmbDashboardTranslationDictionaryElement = class UmbDashboardTranslat
|
|
|
115
115
|
${this.localize.term('dictionary_createNew')}
|
|
116
116
|
</uui-button>
|
|
117
117
|
<uui-input
|
|
118
|
-
|
|
118
|
+
type="search"
|
|
119
|
+
id="searchbar"
|
|
119
120
|
placeholder=${this.localize.term('placeholders_filter')}
|
|
120
121
|
label=${this.localize.term('placeholders_filter')}
|
|
121
|
-
|
|
122
|
+
@keyup="${this.#filter}">
|
|
122
123
|
<div slot="prepend">
|
|
123
124
|
<uui-icon name="search" id="searchbar_icon"></uui-icon>
|
|
124
125
|
</div>
|
|
@@ -47,6 +47,7 @@ export let UmbDocumentWorkspaceElement = class UmbDocumentWorkspaceElement exten
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
];
|
|
50
|
+
// TODO: We need to recreate when ID changed?
|
|
50
51
|
new UmbExtensionsApiInitializer(this, umbExtensionsRegistry, 'workspaceContext', [this, this.#workspaceContext]);
|
|
51
52
|
}
|
|
52
53
|
render() {
|
|
@@ -76,6 +76,7 @@ export let UmbDashboardExamineSearcherElement = class UmbDashboardExamineSearche
|
|
|
76
76
|
<p>Search the ${this.searcherName} and view the results</p>
|
|
77
77
|
<div class="flex">
|
|
78
78
|
<uui-input
|
|
79
|
+
type="search"
|
|
79
80
|
id="search-input"
|
|
80
81
|
placeholder="Type to filter..."
|
|
81
82
|
label="Type to filter"
|