@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.
@@ -139,6 +139,7 @@ export let UmbDataTypePickerFlowModalElement = class UmbDataTypePickerFlowModalE
139
139
  }
140
140
  _renderFilter() {
141
141
  return html ` <uui-input
142
+ type="search"
142
143
  id="filter"
143
144
  @input="${this._handleFilterInput}"
144
145
  placeholder="Type to filter..."
@@ -72,6 +72,7 @@ export let UmbPropertyEditorUIPickerModalElement = class UmbPropertyEditorUIPick
72
72
  }
73
73
  _renderFilter() {
74
74
  return html ` <uui-input
75
+ type="search"
75
76
  id="filter"
76
77
  @input="${this._handleFilterInput}"
77
78
  placeholder="Type to filter..."
@@ -89,10 +89,11 @@ export let UmbIconPickerModalElement = class UmbIconPickerModalElement extends U
89
89
  }
90
90
  renderSearchbar() {
91
91
  return html ` <uui-input
92
- @keyup="${this.#filterIcons}"
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 { UmbControllerHost } from '../../../../libs/controller-api/index.js';
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<WorkspaceType = unknown> extends UmbApi {
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<WorkspaceContextType> {
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 { UmbContextConsumerController } from '../../../../libs/context-api/index.js';
3
- export class UmbWorkspaceActionBase {
2
+ import { UmbBaseController } from '../../../../libs/controller-api/index.js';
3
+ export class UmbWorkspaceActionBase extends UmbBaseController {
4
4
  constructor(host) {
5
- this.host = host;
6
- new UmbContextConsumerController(this.host, UMB_WORKSPACE_CONTEXT, (instance) => {
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
- @keyup="${this.#filter}"
118
+ type="search"
119
+ id="searchbar"
119
120
  placeholder=${this.localize.term('placeholders_filter')}
120
121
  label=${this.localize.term('placeholders_filter')}
121
- id="searchbar">
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"