@sankhyalabs/sankhyablocks 8.14.1 → 8.15.0-dev.2

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.
Files changed (80) hide show
  1. package/dist/cjs/{field-search-ca27041a.js → field-search-f56aa7d6.js} +29 -1
  2. package/dist/cjs/index-f9e81701.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  5. package/dist/cjs/{snk-actions-button.cjs.entry.js → snk-actions-button_2.cjs.entry.js} +113 -0
  6. package/dist/cjs/snk-attach.cjs.entry.js +1 -1
  7. package/dist/cjs/snk-crud.cjs.entry.js +5 -5
  8. package/dist/cjs/snk-detail-view.cjs.entry.js +3 -3
  9. package/dist/cjs/snk-grid.cjs.entry.js +11 -25
  10. package/dist/cjs/{snk-guides-viewer-aea15ee0.js → snk-guides-viewer-9342bca1.js} +6 -16
  11. package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -3
  12. package/dist/cjs/snk-simple-crud.cjs.entry.js +15 -36
  13. package/dist/cjs/snk-taskbar.cjs.entry.js +1 -1
  14. package/dist/cjs/{taskbar-elements-39949c7a.js → taskbar-elements-b8c428a9.js} +3 -3
  15. package/dist/collection/collection-manifest.json +1 -0
  16. package/dist/collection/components/snk-crud/snk-crud.js +4 -4
  17. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -18
  18. package/dist/collection/components/snk-grid/snk-grid.js +20 -37
  19. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +15 -36
  20. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +6 -0
  21. package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +301 -0
  22. package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -3
  23. package/dist/collection/components/snk-taskbar/snk-taskbar.js +0 -1
  24. package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +28 -1
  25. package/dist/components/field-search.js +29 -2
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/index.js +1 -0
  28. package/dist/components/snk-attach2.js +20 -14
  29. package/dist/components/snk-crud.js +69 -63
  30. package/dist/components/snk-detail-view2.js +95 -94
  31. package/dist/components/snk-grid2.js +53 -61
  32. package/dist/components/snk-simple-crud2.js +31 -46
  33. package/dist/components/snk-taskbar2.js +15 -9
  34. package/dist/components/taskbar-actions-button.d.ts +11 -0
  35. package/dist/components/taskbar-actions-button.js +6 -0
  36. package/dist/components/taskbar-actions-button2.js +137 -0
  37. package/dist/esm/{field-search-c6938ee4.js → field-search-efbe307f.js} +29 -2
  38. package/dist/esm/index-a7d3d3f1.js +2 -2
  39. package/dist/esm/loader.js +1 -1
  40. package/dist/esm/sankhyablocks.js +1 -1
  41. package/dist/esm/{snk-actions-button.entry.js → snk-actions-button_2.entry.js} +114 -2
  42. package/dist/esm/snk-attach.entry.js +1 -1
  43. package/dist/esm/snk-crud.entry.js +5 -5
  44. package/dist/esm/snk-detail-view.entry.js +3 -3
  45. package/dist/esm/snk-grid.entry.js +12 -26
  46. package/dist/esm/{snk-guides-viewer-717a3847.js → snk-guides-viewer-9ce9588c.js} +6 -16
  47. package/dist/esm/snk-guides-viewer.entry.js +3 -3
  48. package/dist/esm/snk-simple-crud.entry.js +16 -37
  49. package/dist/esm/snk-taskbar.entry.js +1 -1
  50. package/dist/esm/{taskbar-elements-0a6b8b95.js → taskbar-elements-26c981af.js} +3 -3
  51. package/dist/sankhyablocks/p-145c4434.js +1 -0
  52. package/dist/sankhyablocks/p-17dda7a2.entry.js +1 -0
  53. package/dist/sankhyablocks/{p-63f56d48.entry.js → p-311c6173.entry.js} +1 -1
  54. package/dist/sankhyablocks/{p-2417c492.entry.js → p-44e894af.entry.js} +1 -1
  55. package/dist/sankhyablocks/p-78777ae0.entry.js +1 -0
  56. package/dist/sankhyablocks/{p-d4fb9642.entry.js → p-953346b9.entry.js} +1 -1
  57. package/dist/sankhyablocks/p-9c3229fc.entry.js +1 -0
  58. package/dist/sankhyablocks/p-c2495304.js +1 -0
  59. package/dist/sankhyablocks/p-dd6a8377.js +1 -0
  60. package/dist/sankhyablocks/p-e138e7d4.entry.js +1 -0
  61. package/dist/sankhyablocks/{p-075eddfd.entry.js → p-e1b29d4c.entry.js} +1 -1
  62. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  63. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -1
  64. package/dist/types/components/snk-grid/snk-grid.d.ts +4 -4
  65. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +6 -5
  66. package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +58 -0
  67. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +16 -0
  68. package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +1 -0
  69. package/dist/types/components.d.ts +65 -0
  70. package/package.json +1 -1
  71. package/react/components.d.ts +1 -0
  72. package/react/components.js +1 -0
  73. package/react/components.js.map +1 -1
  74. package/dist/sankhyablocks/p-1657804e.entry.js +0 -1
  75. package/dist/sankhyablocks/p-3ecd72a4.js +0 -1
  76. package/dist/sankhyablocks/p-6e0cbef1.entry.js +0 -1
  77. package/dist/sankhyablocks/p-7a7607c8.js +0 -1
  78. package/dist/sankhyablocks/p-9f7bc9be.entry.js +0 -1
  79. package/dist/sankhyablocks/p-b525d1ae.entry.js +0 -1
  80. package/dist/sankhyablocks/p-c9841939.js +0 -1
@@ -0,0 +1,301 @@
1
+ import { h, Host } from '@stencil/core';
2
+ export class TaskbarActionsButton {
3
+ constructor() {
4
+ this._showDropdown = false;
5
+ this.title = undefined;
6
+ this.enabled = undefined;
7
+ this.actions = undefined;
8
+ }
9
+ async handleKeyDown(event) {
10
+ if (event.key === 'Escape' || event.key === 'Esc') {
11
+ await this.hideActions();
12
+ }
13
+ }
14
+ /**
15
+ * Exibe a lista de ações.
16
+ */
17
+ async showActions() {
18
+ this._showDropdown = true;
19
+ requestAnimationFrame(() => {
20
+ this._element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });
21
+ });
22
+ }
23
+ /**
24
+ * Esaconde a lista de ações.
25
+ */
26
+ async hideActions() {
27
+ this._showDropdown = false;
28
+ }
29
+ /**
30
+ * Informa se a lista de ações está aberta.
31
+ */
32
+ async isOpened() {
33
+ return this._showDropdown;
34
+ }
35
+ controlDropdown() {
36
+ this._showDropdown = !this._showDropdown;
37
+ }
38
+ loadItems() {
39
+ return this.actions.filter(action => action !== undefined).map(action => {
40
+ var _a;
41
+ return {
42
+ id: action.value,
43
+ label: action.label,
44
+ value: action.value,
45
+ type: (_a = action.type) !== null && _a !== void 0 ? _a : 'item',
46
+ children: action.children,
47
+ iconName: action.iconName,
48
+ subAction: action.subAction,
49
+ group: action.group,
50
+ disableCloseOnSelect: action.disableCloseOnSelect,
51
+ };
52
+ });
53
+ }
54
+ canShowDropdown() {
55
+ var _a;
56
+ return this._showDropdown && ((_a = this.actions) === null || _a === void 0 ? void 0 : _a.length) > 0;
57
+ }
58
+ onSelectAction(iAction) {
59
+ const selectedAction = this.actions.find(action => action.value === iAction.id);
60
+ this.taskbarActionSelected.emit(selectedAction);
61
+ if (!selectedAction.disableCloseOnSelect) {
62
+ this._showDropdown = false;
63
+ }
64
+ }
65
+ dropdownItemBuilder(item, _level) {
66
+ const itemAction = this.actions.find(action => action.value === item.id);
67
+ if (!itemAction || !itemAction.itemBuilder) {
68
+ return undefined;
69
+ }
70
+ const customContent = itemAction.itemBuilder(this._element, itemAction);
71
+ if (typeof customContent === 'string') {
72
+ return h("div", { innerHTML: customContent });
73
+ }
74
+ return customContent;
75
+ }
76
+ /**
77
+ * Existem algumas actions que precisam ser inicializadas assim que o componente é carregado,
78
+ * pois necessitam de algumas informações, como por exemplo a referência do elemento taskbar-actions-button na tela.
79
+ * É o caso do searchColumn/searhField
80
+ */
81
+ initializeEagerItems() {
82
+ var _a;
83
+ (_a = this.actions) === null || _a === void 0 ? void 0 : _a.forEach(action => {
84
+ var _a;
85
+ if (action && action.eagerInitialize && action.itemBuilder) {
86
+ (_a = action.itemBuilder) === null || _a === void 0 ? void 0 : _a.call(action, this._element, action);
87
+ }
88
+ });
89
+ }
90
+ componentDidLoad() {
91
+ this.initializeEagerItems();
92
+ }
93
+ componentDidRender() {
94
+ if (this._showDropdown) {
95
+ this.taskbarActionsOpened.emit(this._element);
96
+ }
97
+ }
98
+ disconnectedCallback() {
99
+ this.taskbarActionsButtonDisconnected.emit();
100
+ }
101
+ render() {
102
+ return (h(Host, null, h("div", { class: `ez-padding-left--medium ${this.canShowDropdown() ? ' ez-elevation--16' : ''}` }, h("ez-button", { title: this.title, mode: 'icon', iconName: 'dots-vertical', size: 'small', enabled: this.enabled, onClick: () => this.controlDropdown() }), this.canShowDropdown() && h("ez-dropdown", { items: this.loadItems(), onEzClick: (evt) => this.onSelectAction(evt.detail), onEzOutsideClick: () => this._showDropdown = false, itemBuilder: (item, level) => this.dropdownItemBuilder(item, level) }))));
103
+ }
104
+ static get is() { return "taskbar-actions-button"; }
105
+ static get encapsulation() { return "scoped"; }
106
+ static get originalStyleUrls() {
107
+ return {
108
+ "$": ["taskbar-actions-button.css"]
109
+ };
110
+ }
111
+ static get styleUrls() {
112
+ return {
113
+ "$": ["taskbar-actions-button.css"]
114
+ };
115
+ }
116
+ static get properties() {
117
+ return {
118
+ "title": {
119
+ "type": "string",
120
+ "mutable": false,
121
+ "complexType": {
122
+ "original": "string",
123
+ "resolved": "string",
124
+ "references": {}
125
+ },
126
+ "required": false,
127
+ "optional": false,
128
+ "docs": {
129
+ "tags": [],
130
+ "text": "Texto que ser\u00E1 exibido no bot\u00E3o"
131
+ },
132
+ "attribute": "title",
133
+ "reflect": false
134
+ },
135
+ "enabled": {
136
+ "type": "boolean",
137
+ "mutable": false,
138
+ "complexType": {
139
+ "original": "boolean",
140
+ "resolved": "boolean",
141
+ "references": {}
142
+ },
143
+ "required": false,
144
+ "optional": false,
145
+ "docs": {
146
+ "tags": [],
147
+ "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o componente."
148
+ },
149
+ "attribute": "enabled",
150
+ "reflect": false
151
+ },
152
+ "actions": {
153
+ "type": "unknown",
154
+ "mutable": false,
155
+ "complexType": {
156
+ "original": "Array<Action>",
157
+ "resolved": "Action[]",
158
+ "references": {
159
+ "Array": {
160
+ "location": "global"
161
+ },
162
+ "Action": {
163
+ "location": "import",
164
+ "path": "../../snk-taskbar"
165
+ }
166
+ }
167
+ },
168
+ "required": false,
169
+ "optional": false,
170
+ "docs": {
171
+ "tags": [],
172
+ "text": "Define a lista de a\u00E7\u00F5es."
173
+ }
174
+ }
175
+ };
176
+ }
177
+ static get states() {
178
+ return {
179
+ "_showDropdown": {}
180
+ };
181
+ }
182
+ static get events() {
183
+ return [{
184
+ "method": "taskbarActionSelected",
185
+ "name": "taskbarActionSelected",
186
+ "bubbles": true,
187
+ "cancelable": true,
188
+ "composed": true,
189
+ "docs": {
190
+ "tags": [],
191
+ "text": "Emitido ao selecionar uma a\u00E7\u00E3o"
192
+ },
193
+ "complexType": {
194
+ "original": "Action",
195
+ "resolved": "Action",
196
+ "references": {
197
+ "Action": {
198
+ "location": "import",
199
+ "path": "../../snk-taskbar"
200
+ }
201
+ }
202
+ }
203
+ }, {
204
+ "method": "taskbarActionsOpened",
205
+ "name": "taskbarActionsOpened",
206
+ "bubbles": true,
207
+ "cancelable": true,
208
+ "composed": true,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": "Emitido ao mostrar a lista de a\u00E7\u00F5es"
212
+ },
213
+ "complexType": {
214
+ "original": "HTMLElement",
215
+ "resolved": "HTMLElement",
216
+ "references": {
217
+ "HTMLElement": {
218
+ "location": "global"
219
+ }
220
+ }
221
+ }
222
+ }, {
223
+ "method": "taskbarActionsButtonDisconnected",
224
+ "name": "taskbarActionsButtonDisconnected",
225
+ "bubbles": true,
226
+ "cancelable": true,
227
+ "composed": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": "Emitido quando componente \u00E9 desconectado da DOM"
231
+ },
232
+ "complexType": {
233
+ "original": "void",
234
+ "resolved": "void",
235
+ "references": {}
236
+ }
237
+ }];
238
+ }
239
+ static get methods() {
240
+ return {
241
+ "showActions": {
242
+ "complexType": {
243
+ "signature": "() => Promise<void>",
244
+ "parameters": [],
245
+ "references": {
246
+ "Promise": {
247
+ "location": "global"
248
+ }
249
+ },
250
+ "return": "Promise<void>"
251
+ },
252
+ "docs": {
253
+ "text": "Exibe a lista de a\u00E7\u00F5es.",
254
+ "tags": []
255
+ }
256
+ },
257
+ "hideActions": {
258
+ "complexType": {
259
+ "signature": "() => Promise<void>",
260
+ "parameters": [],
261
+ "references": {
262
+ "Promise": {
263
+ "location": "global"
264
+ }
265
+ },
266
+ "return": "Promise<void>"
267
+ },
268
+ "docs": {
269
+ "text": "Esaconde a lista de a\u00E7\u00F5es.",
270
+ "tags": []
271
+ }
272
+ },
273
+ "isOpened": {
274
+ "complexType": {
275
+ "signature": "() => Promise<boolean>",
276
+ "parameters": [],
277
+ "references": {
278
+ "Promise": {
279
+ "location": "global"
280
+ }
281
+ },
282
+ "return": "Promise<boolean>"
283
+ },
284
+ "docs": {
285
+ "text": "Informa se a lista de a\u00E7\u00F5es est\u00E1 aberta.",
286
+ "tags": []
287
+ }
288
+ }
289
+ };
290
+ }
291
+ static get elementRef() { return "_element"; }
292
+ static get listeners() {
293
+ return [{
294
+ "name": "keydown",
295
+ "method": "handleKeyDown",
296
+ "target": "window",
297
+ "capture": false,
298
+ "passive": false
299
+ }];
300
+ }
301
+ }
@@ -86,7 +86,7 @@ export const buildElem = (element, className, dataElementId, getTitle, action, i
86
86
  case TaskbarElement.CONFIGURATOR:
87
87
  return iconButton("settings-inverted", element, className, dataElementId, title, action, isEnabled);
88
88
  case TaskbarElement.MORE_OPTIONS:
89
- return actionButton(element, className, dataElementId, title, action, isEnabled, actions);
89
+ return actionButton(element, dataElementId, title, isEnabled, actions, action);
90
90
  case TaskbarElement.DIVIDER:
91
91
  return h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-horizontal--medium", "data-taskbar-divider": true });
92
92
  case TaskbarElement.DATA_EXPORTER:
@@ -107,8 +107,8 @@ function iconButton(iconName, name, className, dataElementId, title, action, isE
107
107
  function iconTextButton(iconName, name, className, dataElementId, text, title, action, isEnabled) {
108
108
  return h("ez-button", { key: dataElementId, title: title, label: text, size: "small", class: className, "data-element-id": dataElementId, enabled: isEnabled(name), onClick: () => action(name) }, h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: iconName }));
109
109
  }
110
- function actionButton(element, className, dataElementId, title, action, isEnabled, actions) {
110
+ function actionButton(element, dataElementId, title, isEnabled, actions, action) {
111
111
  return actions && actions.length > 0
112
- ? h("ez-actions-button", { key: dataElementId, title: title, size: "small", "data-element-id": dataElementId, arrowActive: true, class: className, enabled: isEnabled(element), onEzAction: (evt) => action(evt.detail.value), actions: actions })
112
+ ? h("taskbar-actions-button", { key: dataElementId, title: title, "data-element-id": dataElementId, enabled: isEnabled(element), actions: actions, onTaskbarActionSelected: (evt) => action(evt.detail.value) })
113
113
  : undefined;
114
114
  }
@@ -546,4 +546,3 @@ export class SnkTaskbar {
546
546
  }];
547
547
  }
548
548
  }
549
- ;
@@ -1,4 +1,31 @@
1
1
  import { h } from '@stencil/core';
2
+ const EVENT_NAME = 'taskbarActionsOpened';
2
3
  export const buildFieldSearch = (action, optionLoader, onSelectField) => {
3
- return h("ez-search", { class: "ez-actions-button--bottom-padding", canShowError: "false", showSelectedValue: "false", showOptionValue: "false", suppressEmptyOption: "true", label: action.label, value: action.value, optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
4
+ return h("ez-search", { class: 'ez-actions-button--bottom-padding', canShowError: 'false', showSelectedValue: 'false', showOptionValue: 'false', suppressEmptyOption: 'true', label: action.label, value: '', optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
5
+ };
6
+ async function focusOnFieldSerch(field) {
7
+ requestAnimationFrame(async () => {
8
+ if (field) {
9
+ const realElement = field['$elm$'];
10
+ if (!realElement)
11
+ return;
12
+ realElement.value = null;
13
+ await realElement.setFocus();
14
+ }
15
+ });
16
+ }
17
+ export const openFieldSearch = async (moreOptions, field) => {
18
+ if (!moreOptions) {
19
+ return;
20
+ }
21
+ if ((await moreOptions.isOpened())) {
22
+ await focusOnFieldSerch(field);
23
+ return;
24
+ }
25
+ const eventHandler = () => {
26
+ focusOnFieldSerch(field);
27
+ moreOptions.removeEventListener(EVENT_NAME, eventHandler);
28
+ };
29
+ moreOptions.addEventListener(EVENT_NAME, eventHandler);
30
+ await moreOptions.showActions();
4
31
  };
@@ -87,8 +87,35 @@ class SnkMultiSelectionListDataSource {
87
87
  }
88
88
  }
89
89
 
90
+ const EVENT_NAME = 'taskbarActionsOpened';
90
91
  const buildFieldSearch = (action, optionLoader, onSelectField) => {
91
- return h("ez-search", { class: "ez-actions-button--bottom-padding", canShowError: "false", showSelectedValue: "false", showOptionValue: "false", suppressEmptyOption: "true", label: action.label, value: action.value, optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
92
+ return h("ez-search", { class: 'ez-actions-button--bottom-padding', canShowError: 'false', showSelectedValue: 'false', showOptionValue: 'false', suppressEmptyOption: 'true', label: action.label, value: '', optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
93
+ };
94
+ async function focusOnFieldSerch(field) {
95
+ requestAnimationFrame(async () => {
96
+ if (field) {
97
+ const realElement = field['$elm$'];
98
+ if (!realElement)
99
+ return;
100
+ realElement.value = null;
101
+ await realElement.setFocus();
102
+ }
103
+ });
104
+ }
105
+ const openFieldSearch = async (moreOptions, field) => {
106
+ if (!moreOptions) {
107
+ return;
108
+ }
109
+ if ((await moreOptions.isOpened())) {
110
+ await focusOnFieldSerch(field);
111
+ return;
112
+ }
113
+ const eventHandler = () => {
114
+ focusOnFieldSerch(field);
115
+ moreOptions.removeEventListener(EVENT_NAME, eventHandler);
116
+ };
117
+ moreOptions.addEventListener(EVENT_NAME, eventHandler);
118
+ await moreOptions.showActions();
92
119
  };
93
120
 
94
- export { SnkMultiSelectionListDataSource as S, TaskbarProcessor as T, buildFieldSearch as b };
121
+ export { SnkMultiSelectionListDataSource as S, TaskbarProcessor as T, buildFieldSearch as b, openFieldSearch as o };
@@ -49,6 +49,7 @@ export { SnkSimpleBar as SnkSimpleBar } from '../types/components/snk-simple-bar
49
49
  export { SnkSimpleCrud as SnkSimpleCrud } from '../types/components/snk-simple-crud/snk-simple-crud';
50
50
  export { SnkTabConfig as SnkTabConfig } from '../types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config';
51
51
  export { SnkTaskbar as SnkTaskbar } from '../types/components/snk-taskbar/snk-taskbar';
52
+ export { TaskbarActionsButton as TaskbarActionsButton } from '../types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button';
52
53
  export { TestePesquisa as TestePesquisa } from '../types/components/teste-pesquisa/teste-pesquisa';
53
54
 
54
55
  /**
@@ -49,4 +49,5 @@ export { SnkSimpleBar, defineCustomElement as defineCustomElementSnkSimpleBar }
49
49
  export { SnkSimpleCrud, defineCustomElement as defineCustomElementSnkSimpleCrud } from './snk-simple-crud.js';
50
50
  export { SnkTabConfig, defineCustomElement as defineCustomElementSnkTabConfig } from './snk-tab-config.js';
51
51
  export { SnkTaskbar, defineCustomElement as defineCustomElementSnkTaskbar } from './snk-taskbar.js';
52
+ export { TaskbarActionsButton, defineCustomElement as defineCustomElementTaskbarActionsButton } from './taskbar-actions-button.js';
52
53
  export { TestePesquisa, defineCustomElement as defineCustomElementTestePesquisa } from './teste-pesquisa.js';
@@ -1,15 +1,16 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { ApplicationContext, DataType, Action } from '@sankhyalabs/core';
3
3
  import { D as DataFetcher } from './DataFetcher.js';
4
- import { a as SaveErrorsEnum, d as defineCustomElement$7 } from './snk-actions-button2.js';
4
+ import { a as SaveErrorsEnum, d as defineCustomElement$8 } from './snk-actions-button2.js';
5
5
  import { V as VIEW_MODE } from './constants.js';
6
6
  import { a as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher.js';
7
- import { T as TaskbarElement, d as defineCustomElement$1 } from './snk-taskbar2.js';
8
- import { d as defineCustomElement$6 } from './snk-data-exporter2.js';
9
- import { d as defineCustomElement$5 } from './snk-data-unit2.js';
10
- import { d as defineCustomElement$4 } from './snk-exporter-email-sender2.js';
11
- import { d as defineCustomElement$3 } from './snk-simple-bar2.js';
12
- import { d as defineCustomElement$2 } from './snk-simple-crud2.js';
7
+ import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
8
+ import { d as defineCustomElement$7 } from './snk-data-exporter2.js';
9
+ import { d as defineCustomElement$6 } from './snk-data-unit2.js';
10
+ import { d as defineCustomElement$5 } from './snk-exporter-email-sender2.js';
11
+ import { d as defineCustomElement$4 } from './snk-simple-bar2.js';
12
+ import { d as defineCustomElement$3 } from './snk-simple-crud2.js';
13
+ import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
13
14
 
14
15
  class AttachFetcher {
15
16
  constructor(entityName, registerKey, dataUnitName) {
@@ -463,7 +464,7 @@ function defineCustomElement() {
463
464
  if (typeof customElements === "undefined") {
464
465
  return;
465
466
  }
466
- const components = ["snk-attach", "snk-actions-button", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-simple-bar", "snk-simple-crud", "snk-taskbar"];
467
+ const components = ["snk-attach", "snk-actions-button", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-simple-bar", "snk-simple-crud", "snk-taskbar", "taskbar-actions-button"];
467
468
  components.forEach(tagName => { switch (tagName) {
468
469
  case "snk-attach":
469
470
  if (!customElements.get(tagName)) {
@@ -472,35 +473,40 @@ function defineCustomElement() {
472
473
  break;
473
474
  case "snk-actions-button":
474
475
  if (!customElements.get(tagName)) {
475
- defineCustomElement$7();
476
+ defineCustomElement$8();
476
477
  }
477
478
  break;
478
479
  case "snk-data-exporter":
479
480
  if (!customElements.get(tagName)) {
480
- defineCustomElement$6();
481
+ defineCustomElement$7();
481
482
  }
482
483
  break;
483
484
  case "snk-data-unit":
484
485
  if (!customElements.get(tagName)) {
485
- defineCustomElement$5();
486
+ defineCustomElement$6();
486
487
  }
487
488
  break;
488
489
  case "snk-exporter-email-sender":
489
490
  if (!customElements.get(tagName)) {
490
- defineCustomElement$4();
491
+ defineCustomElement$5();
491
492
  }
492
493
  break;
493
494
  case "snk-simple-bar":
494
495
  if (!customElements.get(tagName)) {
495
- defineCustomElement$3();
496
+ defineCustomElement$4();
496
497
  }
497
498
  break;
498
499
  case "snk-simple-crud":
499
500
  if (!customElements.get(tagName)) {
500
- defineCustomElement$2();
501
+ defineCustomElement$3();
501
502
  }
502
503
  break;
503
504
  case "snk-taskbar":
505
+ if (!customElements.get(tagName)) {
506
+ defineCustomElement$2();
507
+ }
508
+ break;
509
+ case "taskbar-actions-button":
504
510
  if (!customElements.get(tagName)) {
505
511
  defineCustomElement$1();
506
512
  }