@sankhyalabs/sankhyablocks 8.14.11 → 8.15.0-dev.10
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/cjs/{ConfigStorage-8009ecb2.js → ConfigStorage-302bbbd4.js} +24 -14
- package/dist/cjs/{ISave-d68ce3cd.js → ISave-e91b70a7.js} +1 -0
- package/dist/cjs/{SnkFormConfigManager-7d850fbc.js → SnkFormConfigManager-71c4768e.js} +1 -1
- package/dist/cjs/{SnkMessageBuilder-7293d0ad.js → SnkMessageBuilder-e7dcf408.js} +13 -0
- package/dist/cjs/{field-search-ca27041a.js → field-search-f56aa7d6.js} +29 -1
- package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
- package/dist/cjs/index-f9e81701.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dataunit-fetcher-d839c5d7.js → pesquisa-fetcher-7a08d110.js} +173 -6
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button.cjs.entry.js → snk-actions-button_2.cjs.entry.js} +133 -4
- package/dist/cjs/snk-application.cjs.entry.js +65 -6
- package/dist/cjs/snk-attach.cjs.entry.js +389 -58
- package/dist/cjs/snk-crud.cjs.entry.js +8 -9
- package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -3
- package/dist/cjs/{snk-data-unit-1bc69073.js → snk-data-unit-82c08a8c.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
- package/dist/cjs/snk-filter-bar.cjs.entry.js +6 -3
- package/dist/cjs/snk-filter-item.cjs.entry.js +47 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -1
- package/dist/cjs/snk-form.cjs.entry.js +2 -2
- package/dist/cjs/snk-grid-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid.cjs.entry.js +51 -42
- package/dist/cjs/{snk-guides-viewer-88a7f880.js → snk-guides-viewer-546509df.js} +10 -21
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -9
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +20 -42
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-39949c7a.js → taskbar-elements-01b85b99.js} +4 -4
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/snk-application/snk-application.js +65 -5
- package/dist/collection/components/snk-attach/snk-attach.js +188 -39
- package/dist/collection/components/snk-attach/structure/{crud-config-builder.js → builder/anexo-sistema-crud-config.builder.js} +1 -1
- package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +62 -0
- package/dist/collection/components/snk-attach/structure/{taskbar-builder.js → builder/taskbar-builder.js} +1 -1
- package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js +1 -0
- package/dist/collection/components/snk-attach/structure/{data-unit-builder.js → fetcher/factory/anexo-sistema-data-unit.factory.js} +14 -11
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +111 -0
- package/dist/collection/components/snk-attach/structure/index.js +6 -3
- package/dist/collection/components/snk-crud/snk-crud.js +5 -5
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +6 -19
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +47 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -2
- package/dist/collection/components/snk-grid/snk-grid.js +59 -53
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +15 -36
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +6 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +324 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -3
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -2
- package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +28 -1
- package/dist/collection/lib/@types/index.js +1 -0
- package/dist/collection/lib/configs/ConfigStorage.js +24 -14
- package/dist/collection/lib/http/data-fetcher/fetchers/{attach-fetcher.js → AttachFetcher/anexo-sistema-fetcher.js} +16 -15
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js +90 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js +2 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +11 -6
- package/dist/collection/lib/index.js +1 -1
- package/dist/collection/lib/message/resources/snk-attach.msg.js +13 -0
- package/dist/components/ConfigStorage.js +24 -14
- package/dist/components/SnkMessageBuilder.js +13 -0
- package/dist/components/dataunit-fetcher.js +11 -6
- package/dist/components/field-search.js +29 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +1 -0
- package/dist/components/snk-actions-button2.js +1 -0
- package/dist/components/snk-application2.js +62 -2
- package/dist/components/snk-attach2.js +414 -71
- package/dist/components/snk-crud.js +69 -63
- package/dist/components/snk-detail-view2.js +95 -94
- package/dist/components/snk-filter-bar2.js +5 -2
- package/dist/components/snk-filter-item2.js +47 -1
- package/dist/components/snk-grid2.js +91 -76
- package/dist/components/snk-simple-crud2.js +31 -46
- package/dist/components/snk-taskbar2.js +15 -9
- package/dist/components/taskbar-actions-button.d.ts +11 -0
- package/dist/components/taskbar-actions-button.js +6 -0
- package/dist/components/taskbar-actions-button2.js +154 -0
- package/dist/esm/{ConfigStorage-1244b8b0.js → ConfigStorage-4151acc8.js} +24 -14
- package/dist/esm/{ISave-4412b20c.js → ISave-d8c8bc59.js} +1 -0
- package/dist/esm/{SnkFormConfigManager-9be0e7d4.js → SnkFormConfigManager-5c7d3771.js} +1 -1
- package/dist/esm/{SnkMessageBuilder-ca843d1b.js → SnkMessageBuilder-0fb796b9.js} +13 -0
- package/dist/esm/{field-search-c6938ee4.js → field-search-efbe307f.js} +29 -2
- package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
- package/dist/esm/index-a7d3d3f1.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dataunit-fetcher-cf01a8f4.js → pesquisa-fetcher-d6ff9386.js} +173 -7
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button.entry.js → snk-actions-button_2.entry.js} +134 -6
- package/dist/esm/snk-application.entry.js +65 -6
- package/dist/esm/snk-attach.entry.js +390 -59
- package/dist/esm/snk-crud.entry.js +8 -9
- package/dist/esm/snk-data-exporter.entry.js +3 -3
- package/dist/esm/{snk-data-unit-6208ebf0.js → snk-data-unit-5d201fb3.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +9 -10
- package/dist/esm/snk-filter-bar.entry.js +6 -3
- package/dist/esm/snk-filter-item.entry.js +47 -1
- package/dist/esm/snk-filter-modal-item.entry.js +1 -1
- package/dist/esm/snk-form.entry.js +2 -2
- package/dist/esm/snk-grid-config.entry.js +1 -1
- package/dist/esm/snk-grid.entry.js +52 -43
- package/dist/esm/{snk-guides-viewer-fde509bf.js → snk-guides-viewer-4e56a2e0.js} +10 -21
- package/dist/esm/snk-guides-viewer.entry.js +8 -9
- package/dist/esm/snk-personalized-filter.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +19 -41
- package/dist/esm/snk-taskbar.entry.js +2 -2
- package/dist/esm/{taskbar-elements-0a6b8b95.js → taskbar-elements-d4d0b424.js} +4 -4
- package/dist/sankhyablocks/{p-ff6064e7.js → p-05243555.js} +1 -1
- package/dist/sankhyablocks/{p-fd8814b9.entry.js → p-1d75d9f9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9e7d65a4.js → p-21749402.js} +1 -1
- package/dist/sankhyablocks/p-32460e98.entry.js +11 -0
- package/dist/sankhyablocks/p-374d03f6.js +1 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/{p-35fe6e61.entry.js → p-3963b9c1.entry.js} +1 -1
- package/dist/sankhyablocks/p-42af1bbf.js +65 -0
- package/dist/sankhyablocks/{p-776ee8e3.js → p-573a07c5.js} +1 -1
- package/dist/sankhyablocks/{p-d4fb9642.entry.js → p-69efa80d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6977a26c.entry.js → p-71439fd9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-11081798.entry.js → p-761ed32f.entry.js} +1 -1
- package/dist/sankhyablocks/p-7d8d7fe9.entry.js +1 -0
- package/dist/sankhyablocks/{p-f514913b.entry.js → p-7f3c7b09.entry.js} +1 -1
- package/dist/sankhyablocks/p-8c74258e.entry.js +1 -0
- package/dist/sankhyablocks/p-8f0488b8.entry.js +1 -0
- package/dist/sankhyablocks/p-9ebcfeb6.entry.js +1 -0
- package/dist/sankhyablocks/p-aa95fb2c.js +56 -0
- package/dist/sankhyablocks/p-b05ab13d.entry.js +1 -0
- package/dist/sankhyablocks/p-c2137023.entry.js +1 -0
- package/dist/sankhyablocks/p-c2495304.js +1 -0
- package/dist/sankhyablocks/p-c4874327.entry.js +1 -0
- package/dist/sankhyablocks/p-d82f6eda.entry.js +1 -0
- package/dist/sankhyablocks/p-dcb6aad1.entry.js +1 -0
- package/dist/sankhyablocks/{p-3520c088.entry.js → p-e0fd9555.entry.js} +1 -1
- package/dist/sankhyablocks/p-e8812d8a.js +1 -0
- package/dist/sankhyablocks/{p-32f0935f.js → p-f3d1c48e.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +4 -1
- package/dist/types/components/snk-attach/{structure/crud-config-builder.d.ts → interfaces/ICrudConfig.d.ts} +1 -2
- package/dist/types/components/snk-attach/interfaces/TFetcherType.d.ts +1 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +27 -6
- package/dist/types/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.d.ts +2 -0
- package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +31 -0
- package/dist/types/components/snk-attach/structure/{taskbar-builder.d.ts → builder/taskbar-builder.d.ts} +1 -1
- package/dist/types/components/snk-attach/structure/fetcher/facade/fetcher.facade.d.ts +11 -0
- package/dist/types/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.d.ts +17 -0
- package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +15 -0
- package/dist/types/components/snk-attach/structure/index.d.ts +6 -3
- package/dist/types/components/snk-crud/snk-crud.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +5 -4
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +6 -5
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +60 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +16 -0
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +2 -0
- package/dist/types/components.d.ts +111 -11
- package/dist/types/lib/@types/index.d.ts +2 -1
- package/dist/types/lib/configs/ConfigStorage.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/fetchers/{attach-fetcher.d.ts → AttachFetcher/anexo-sistema-fetcher.d.ts} +3 -2
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.d.ts +11 -0
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.d.ts +8 -0
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/index.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +1 -0
- package/dist/types/lib/index.d.ts +1 -1
- package/package.json +8 -6
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/pesquisa-fetcher-ef050a47.js +0 -167
- package/dist/esm/pesquisa-fetcher-dd3ca0a5.js +0 -165
- package/dist/sankhyablocks/p-08ced1fd.entry.js +0 -1
- package/dist/sankhyablocks/p-3160fa64.js +0 -60
- package/dist/sankhyablocks/p-34774923.entry.js +0 -1
- package/dist/sankhyablocks/p-38ab8a3b.entry.js +0 -1
- package/dist/sankhyablocks/p-3ab540cc.entry.js +0 -11
- package/dist/sankhyablocks/p-3ecd72a4.js +0 -1
- package/dist/sankhyablocks/p-4775a293.entry.js +0 -1
- package/dist/sankhyablocks/p-5534e08c.js +0 -1
- package/dist/sankhyablocks/p-585294ee.js +0 -56
- package/dist/sankhyablocks/p-6ea96bb1.entry.js +0 -1
- package/dist/sankhyablocks/p-936addf1.js +0 -1
- package/dist/sankhyablocks/p-c53926eb.entry.js +0 -1
- package/dist/sankhyablocks/p-c9841939.js +0 -1
- package/dist/sankhyablocks/p-cfbebb49.entry.js +0 -1
- package/dist/sankhyablocks/p-d2923a2a.entry.js +0 -1
- package/dist/sankhyablocks/p-d9bb09b3.js +0 -6
- package/dist/sankhyablocks/p-f2056f66.entry.js +0 -1
- package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +0 -15
- /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js → components/snk-attach/interfaces/ICrudConfig.js} +0 -0
- /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js → components/snk-attach/interfaces/TFetcherType.js} +0 -0
- /package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.js +0 -0
- /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDelete.d.ts +0 -0
- /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDownloadKey.d.ts +0 -0
- /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.d.ts +0 -0
@@ -1,13 +1,12 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
3
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
3
|
+
import { T as TaskbarElement } from './taskbar-elements-d4d0b424.js';
|
4
4
|
import './DataFetcher-aa159c5a.js';
|
5
|
-
import './pesquisa-fetcher-
|
6
|
-
import { P as PresentationMode } from './index-
|
7
|
-
import './ISave-
|
5
|
+
import './pesquisa-fetcher-d6ff9386.js';
|
6
|
+
import { P as PresentationMode } from './index-0ece87a6.js';
|
7
|
+
import './ISave-d8c8bc59.js';
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
|
-
import './dataunit-fetcher-cf01a8f4.js';
|
11
10
|
import './PreloadManager-c1c2f2b4.js';
|
12
11
|
import './filter-item-type.enum-d45e026f.js';
|
13
12
|
import './form-config-fetcher-36219cd3.js';
|
@@ -27,7 +26,7 @@ const SnkCrud = class {
|
|
27
26
|
this.configuratorSave = createEvent(this, "configuratorSave", 7);
|
28
27
|
this.configuratorCancel = createEvent(this, "configuratorCancel", 7);
|
29
28
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
30
|
-
this._keyDownHandler = (event) => this.keyDownListener(event);
|
29
|
+
this._keyDownHandler = async (event) => this.keyDownListener(event);
|
31
30
|
this._viewHistory = [];
|
32
31
|
this._dataUnit = undefined;
|
33
32
|
this._dataState = undefined;
|
@@ -267,7 +266,7 @@ const SnkCrud = class {
|
|
267
266
|
}
|
268
267
|
this.configuratorCancel.emit();
|
269
268
|
}
|
270
|
-
keyDownListener(event) {
|
269
|
+
async keyDownListener(event) {
|
271
270
|
if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
|
272
271
|
return;
|
273
272
|
}
|
@@ -279,10 +278,10 @@ const SnkCrud = class {
|
|
279
278
|
}
|
280
279
|
FloatingManager.closeAll();
|
281
280
|
if (this._currentViewMode === VIEW_MODE.GRID) {
|
282
|
-
this._snkGrid.findColumn();
|
281
|
+
await this._snkGrid.findColumn();
|
283
282
|
}
|
284
283
|
else {
|
285
|
-
this._guidesViewer.findField();
|
284
|
+
await this._guidesViewer.findField();
|
286
285
|
}
|
287
286
|
event.preventDefault();
|
288
287
|
}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
2
2
|
import { ApplicationContext, ObjectUtils, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { D as DataExporterOption, a as DataExporterFormat, b as DataExporterType } from './index-
|
4
|
+
import { D as DataExporterOption, a as DataExporterFormat, b as DataExporterType } from './index-0ece87a6.js';
|
5
5
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-8457af36.js';
|
6
6
|
import { D as DataFetcher } from './DataFetcher-aa159c5a.js';
|
7
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
7
|
+
import { S as SnkDataUnit } from './snk-data-unit-5d201fb3.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
|
-
import './SnkMessageBuilder-
|
10
|
+
import './SnkMessageBuilder-0fb796b9.js';
|
11
11
|
|
12
12
|
class ItemBuilder {
|
13
13
|
constructor(getMessage, selectedNumber) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-a7d3d3f1.js';
|
2
2
|
import { Action, ObjectUtils, JSUtils, DataUnitAction, ApplicationContext, DataType } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-
|
4
|
+
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-0fb796b9.js';
|
5
5
|
|
6
6
|
const SnkDataUnit = class {
|
7
7
|
constructor(hostRef) {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-5d201fb3.js';
|
2
2
|
import './index-a7d3d3f1.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
5
|
-
import './SnkMessageBuilder-
|
5
|
+
import './SnkMessageBuilder-0fb796b9.js';
|
@@ -1,27 +1,26 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host } from './index-a7d3d3f1.js';
|
2
2
|
import { Action } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-5c7d3771.js';
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
5
|
import './DataFetcher-aa159c5a.js';
|
6
|
-
import './pesquisa-fetcher-
|
7
|
-
import { P as PresentationMode } from './index-
|
8
|
-
import './ISave-
|
6
|
+
import './pesquisa-fetcher-d6ff9386.js';
|
7
|
+
import { P as PresentationMode } from './index-0ece87a6.js';
|
8
|
+
import './ISave-d8c8bc59.js';
|
9
9
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
10
10
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
11
|
-
import './dataunit-fetcher-cf01a8f4.js';
|
12
11
|
import './PreloadManager-c1c2f2b4.js';
|
13
12
|
import './filter-item-type.enum-d45e026f.js';
|
14
13
|
import './form-config-fetcher-36219cd3.js';
|
15
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
14
|
+
import { T as TaskbarElement } from './taskbar-elements-d4d0b424.js';
|
16
15
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
17
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
18
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder-
|
19
|
-
import './ConfigStorage-
|
16
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-4e56a2e0.js';
|
17
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder-0fb796b9.js';
|
18
|
+
import './ConfigStorage-4151acc8.js';
|
20
19
|
import './PrintUtils-3e4ff0f5.js';
|
21
20
|
import './ResourceIDUtils-a114189a.js';
|
22
21
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
23
22
|
import './index-bdf75557.js';
|
24
|
-
import './field-search-
|
23
|
+
import './field-search-efbe307f.js';
|
25
24
|
import '@sankhyalabs/core/dist/dataunit/DataUnit';
|
26
25
|
|
27
26
|
class GuideBuilder {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
2
2
|
import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext } from '@sankhyalabs/core';
|
3
3
|
import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
|
4
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
4
|
+
import { C as ConfigStorage } from './ConfigStorage-4151acc8.js';
|
5
5
|
import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
6
6
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
7
7
|
import { F as FilterOperand } from './index-ae591a44.js';
|
@@ -318,7 +318,7 @@ const SnkFilterBar = class {
|
|
318
318
|
* Faz o recarregamento da filterbar buscando o state no servidor.
|
319
319
|
*/
|
320
320
|
async reload() {
|
321
|
-
this.loadConfigFromStorage();
|
321
|
+
this.loadConfigFromStorage(true);
|
322
322
|
}
|
323
323
|
/**
|
324
324
|
* Retorna um item de filtro pelo ID.
|
@@ -525,7 +525,10 @@ const SnkFilterBar = class {
|
|
525
525
|
loadPermitions() {
|
526
526
|
this._application.isUserSup().then(value => this.allowDefault = value);
|
527
527
|
}
|
528
|
-
loadConfigFromStorage() {
|
528
|
+
async loadConfigFromStorage(clearCache) {
|
529
|
+
if (clearCache) {
|
530
|
+
await ConfigStorage.deleteFilterBarConfigCache(this.configName, this.resourceID);
|
531
|
+
}
|
529
532
|
return new Promise(accept => {
|
530
533
|
ConfigStorage.loadFilterBarConfig(this.configName, this.resourceID, { contextURI: this.dataUnit.name })
|
531
534
|
.then((filters) => {
|
@@ -288,14 +288,60 @@ const SnkFilterItem = class {
|
|
288
288
|
}
|
289
289
|
return this.hasActiveValue(this.config);
|
290
290
|
}
|
291
|
+
onEzClick() {
|
292
|
+
console.log("onEzClick");
|
293
|
+
}
|
291
294
|
render() {
|
292
295
|
const leftIcon = this.getLeftIconName();
|
293
|
-
return (h(Host, null, h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), h("
|
296
|
+
return (h(Host, null, h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon ? h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" }) : undefined, h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" })), h("ez-split-button", { label: "Split Button", class: "ez-button--primary", mode: "label-icon", iconName: "acao", size: "small", onEzClick: this.onEzClick,
|
297
|
+
//onclick={this.onEzClick}
|
298
|
+
items: items }), h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail }))));
|
294
299
|
}
|
295
300
|
get _filterItemElement() { return getElement(this); }
|
296
301
|
static get watchers() { return {
|
297
302
|
"detailIsVisible": ["observeDetailIsVisible"]
|
298
303
|
}; }
|
299
304
|
};
|
305
|
+
const items = [
|
306
|
+
{
|
307
|
+
id: "1",
|
308
|
+
label: "Emitir NFe",
|
309
|
+
type: "item"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
id: "2",
|
313
|
+
label: "Cancelar NFe",
|
314
|
+
type: "item"
|
315
|
+
},
|
316
|
+
{
|
317
|
+
id: "3",
|
318
|
+
label: "Exportar NFe",
|
319
|
+
type: "item",
|
320
|
+
children: [
|
321
|
+
{
|
322
|
+
id: "4",
|
323
|
+
label: "Danfe PDF",
|
324
|
+
type: "item",
|
325
|
+
children: [
|
326
|
+
{
|
327
|
+
id: "6",
|
328
|
+
label: "Modo retrato",
|
329
|
+
type: "item"
|
330
|
+
},
|
331
|
+
{
|
332
|
+
id: "7",
|
333
|
+
label: "Modo paisagem",
|
334
|
+
type: "item"
|
335
|
+
}
|
336
|
+
]
|
337
|
+
},
|
338
|
+
{
|
339
|
+
id: "5",
|
340
|
+
label: "XML",
|
341
|
+
type: "item"
|
342
|
+
}
|
343
|
+
]
|
344
|
+
}
|
345
|
+
];
|
300
346
|
|
301
347
|
export { SnkFilterItem as snk_filter_item };
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
2
2
|
import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
4
4
|
import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
|
5
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
5
|
+
import { C as ConfigStorage } from './ConfigStorage-4151acc8.js';
|
6
6
|
import { F as FilterType } from './filter-type.enum-a80c1b6b.js';
|
7
7
|
import './form-config-fetcher-36219cd3.js';
|
8
8
|
import './DataFetcher-aa159c5a.js';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-5c7d3771.js';
|
4
4
|
import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
|
5
|
-
import './ConfigStorage-
|
5
|
+
import './ConfigStorage-4151acc8.js';
|
6
6
|
import './form-config-fetcher-36219cd3.js';
|
7
7
|
import './DataFetcher-aa159c5a.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
2
2
|
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { CheckMode } from '@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode';
|
5
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
5
|
+
import { C as ConfigStorage } from './ConfigStorage-4151acc8.js';
|
6
6
|
import { O as ORDER_VALUES } from './constants-8457af36.js';
|
7
7
|
import './form-config-fetcher-36219cd3.js';
|
8
8
|
import './DataFetcher-aa159c5a.js';
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-a7d3d3f1.js';
|
2
|
-
import { ElementIDUtils, ApplicationContext, DataType } from '@sankhyalabs/core';
|
2
|
+
import { ElementIDUtils, ApplicationContext, StringUtils, DataType } from '@sankhyalabs/core';
|
3
3
|
import { SortMode, UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
4
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
5
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
6
|
-
import { P as PresentationMode } from './index-
|
7
|
-
import { T as TaskbarProcessor, b as buildFieldSearch } from './field-search-
|
4
|
+
import { T as TaskbarElement } from './taskbar-elements-d4d0b424.js';
|
5
|
+
import { C as ConfigStorage } from './ConfigStorage-4151acc8.js';
|
6
|
+
import { P as PresentationMode } from './index-0ece87a6.js';
|
7
|
+
import { T as TaskbarProcessor, o as openFieldSearch, b as buildFieldSearch } from './field-search-efbe307f.js';
|
8
8
|
import { s as store } from './index-bdf75557.js';
|
9
9
|
import { S as SnkMultiSelectionListDataSource } from './SnkMultiSelectionListDataSource-44494b0e.js';
|
10
10
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
@@ -26,14 +26,21 @@ const SnkGrid = class {
|
|
26
26
|
this._topTaskbarProcessor = new TaskbarProcessor({
|
27
27
|
"snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
28
28
|
"snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
29
|
+
"snkGridTopTaskbar.regular.singleTaskbar": [],
|
29
30
|
"snkGridTopTaskbar.finish_edition": ["CANCEL", "SAVE"],
|
30
|
-
"snkGridTopTaskbar.finish_edition.secondary": []
|
31
|
+
"snkGridTopTaskbar.finish_edition.secondary": [],
|
32
|
+
"snkGridTopTaskbar.finish_edition.singleTaskbar": [],
|
31
33
|
});
|
32
34
|
this._headerTaskbarProcessor = new TaskbarProcessor({
|
33
35
|
"snkGridHeaderTaskbar.unselected": ["REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
|
34
36
|
"snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
|
35
37
|
"snkGridHeaderTaskbar.detail.unselected": ["REFRESH", "MORE_OPTIONS"],
|
36
|
-
"snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
|
38
|
+
"snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"],
|
39
|
+
"snkGridHeaderTaskbar.singleTaskbar.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
|
40
|
+
"snkGridHeaderTaskbar.singleTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
|
41
|
+
"snkGridHeaderTaskbar.singleTaskbar.detail.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "MORE_OPTIONS"],
|
42
|
+
"snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
|
43
|
+
"snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
37
44
|
});
|
38
45
|
this._dataUnit = undefined;
|
39
46
|
this._dataState = undefined;
|
@@ -89,28 +96,18 @@ const SnkGrid = class {
|
|
89
96
|
var _a;
|
90
97
|
(_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.reload();
|
91
98
|
}
|
92
|
-
/**
|
93
|
-
* Abre o localizador de colunas
|
94
|
-
*/
|
95
|
-
async findColumn() {
|
96
|
-
if (!this._moreOptions) {
|
97
|
-
return;
|
98
|
-
}
|
99
|
-
if (!(await this._moreOptions.isOpened())) {
|
100
|
-
this._moreOptions.showActions();
|
101
|
-
}
|
102
|
-
if (this._columnSearch) {
|
103
|
-
const realElement = this._columnSearch["$elm$"];
|
104
|
-
realElement.value = null;
|
105
|
-
requestAnimationFrame(() => realElement.setFocus());
|
106
|
-
}
|
107
|
-
}
|
108
99
|
/**
|
109
100
|
* Retorna o elemento da filter-bar da grade.
|
110
101
|
*/
|
111
102
|
async getFilterBar() {
|
112
103
|
return this._snkFilterBar;
|
113
104
|
}
|
105
|
+
/**
|
106
|
+
* Abre o localizador de colunas
|
107
|
+
*/
|
108
|
+
async findColumn() {
|
109
|
+
await openFieldSearch(this._moreOptions, this._columnSearch);
|
110
|
+
}
|
114
111
|
openGridConfig() {
|
115
112
|
this._grid.getColumnsState()
|
116
113
|
.then((gridColumns) => {
|
@@ -324,41 +321,51 @@ const SnkGrid = class {
|
|
324
321
|
return invisibleButtons;
|
325
322
|
}
|
326
323
|
componentWillRender() {
|
327
|
-
var _a;
|
328
324
|
const invisibleButtons = this.getInvisibleButtons();
|
329
|
-
|
330
|
-
let headerTaskbarId;
|
331
|
-
if (hasSelectedRecord) {
|
332
|
-
headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.selected" : "snkGridHeaderTaskbar.selected";
|
333
|
-
}
|
334
|
-
else {
|
335
|
-
headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.unselected" : "snkGridHeaderTaskbar.unselected";
|
336
|
-
}
|
337
|
-
this._headerTaskbarProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
|
325
|
+
this._headerTaskbarProcessor.process(this.getHeaderTaskbarId(), this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
|
338
326
|
this._topTaskbarProcessor.process(this.getTopTaskBarId(), this.taskbarManager, this._dataState, undefined, invisibleButtons);
|
339
327
|
this.dataExporterProviderStore();
|
340
328
|
}
|
329
|
+
getHeaderTaskbarId() {
|
330
|
+
var _a, _b;
|
331
|
+
const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
|
332
|
+
const taskbarIdPrefixLookup = {
|
333
|
+
primary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
|
334
|
+
secondary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
|
335
|
+
singleTaskbar: this.isDetail ? "snkGridHeaderTaskbar.singleTaskbar.detail" : "snkGridHeaderTaskbar.singleTaskbar"
|
336
|
+
};
|
337
|
+
const taskbarIdPrefix = taskbarIdPrefixLookup[this.presentationMode];
|
338
|
+
let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
|
339
|
+
if (((_b = this._dataState) === null || _b === void 0 ? void 0 : _b.isDirty) && this.presentationMode === PresentationMode.SINGLE_TASKBAR) {
|
340
|
+
headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
|
341
|
+
}
|
342
|
+
return headerTaskbarId;
|
343
|
+
}
|
341
344
|
getTopTaskBarId() {
|
342
345
|
var _a;
|
343
|
-
const
|
346
|
+
const suffixLookup = {
|
347
|
+
primary: "",
|
348
|
+
secondary: ".secondary",
|
349
|
+
singleTaskbar: ".singleTaskbar"
|
350
|
+
};
|
351
|
+
const sufix = suffixLookup[this.presentationMode];
|
344
352
|
if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
345
353
|
return `snkGridTopTaskbar.finish_edition${sufix}`;
|
346
354
|
}
|
347
355
|
return `snkGridTopTaskbar.regular${sufix}`;
|
348
356
|
}
|
349
357
|
getPrimaryButton() {
|
350
|
-
|
358
|
+
const primaryButtonLookup = {
|
359
|
+
primary: "INSERT",
|
360
|
+
secondary: "",
|
361
|
+
singleTaskbar: "INSERT"
|
362
|
+
};
|
363
|
+
return primaryButtonLookup[this.presentationMode];
|
351
364
|
}
|
352
365
|
getColumnSearch(actionButton, item) {
|
353
366
|
if (this._columnSearch != undefined) {
|
354
367
|
return this._columnSearch;
|
355
368
|
}
|
356
|
-
actionButton.addEventListener("ezPopoverOpen", () => {
|
357
|
-
if (this._columnSearch) {
|
358
|
-
const realElement = this._columnSearch["$elm$"];
|
359
|
-
realElement.value = null;
|
360
|
-
}
|
361
|
-
});
|
362
369
|
this._moreOptions = actionButton;
|
363
370
|
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
364
371
|
this._grid.filterColumns(argument).then((columns) => {
|
@@ -376,8 +383,10 @@ const SnkGrid = class {
|
|
376
383
|
}
|
377
384
|
getActionsList() {
|
378
385
|
const hardList = [{
|
379
|
-
value:
|
386
|
+
value: StringUtils.generateUUID(),
|
380
387
|
label: this.messagesBuilder.getMessage("snkGrid.findColumn", {}),
|
388
|
+
disableCloseOnSelect: true,
|
389
|
+
eagerInitialize: true,
|
381
390
|
itemBuilder: (actionButton, item) => this.getColumnSearch(actionButton, item)
|
382
391
|
}];
|
383
392
|
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
@@ -402,7 +411,7 @@ const SnkGrid = class {
|
|
402
411
|
return undefined;
|
403
412
|
}
|
404
413
|
return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
|
405
|
-
h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail) }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
414
|
+
h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail) }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
406
415
|
}
|
407
416
|
get _element() { return getElement(this); }
|
408
417
|
};
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-a7d3d3f1.js';
|
2
2
|
import { Action, ElementIDUtils } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-5c7d3771.js';
|
4
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
|
-
import { T as TaskbarProcessor, b as buildFieldSearch } from './field-search-
|
6
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
5
|
+
import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './field-search-efbe307f.js';
|
6
|
+
import { T as TaskbarElement } from './taskbar-elements-d4d0b424.js';
|
7
7
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
8
8
|
import './DataFetcher-aa159c5a.js';
|
9
|
-
import './pesquisa-fetcher-
|
10
|
-
import { P as PresentationMode } from './index-
|
11
|
-
import './ISave-
|
9
|
+
import './pesquisa-fetcher-d6ff9386.js';
|
10
|
+
import { P as PresentationMode } from './index-0ece87a6.js';
|
11
|
+
import './ISave-d8c8bc59.js';
|
12
12
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
13
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
14
|
-
import './dataunit-fetcher-cf01a8f4.js';
|
15
14
|
import './PreloadManager-c1c2f2b4.js';
|
16
15
|
import './filter-item-type.enum-d45e026f.js';
|
17
16
|
import './form-config-fetcher-36219cd3.js';
|
@@ -75,18 +74,7 @@ const SnkGuidesViewer = class {
|
|
75
74
|
* Abre o localizador de campos
|
76
75
|
*/
|
77
76
|
async findField() {
|
78
|
-
|
79
|
-
return;
|
80
|
-
}
|
81
|
-
if (!(await this._moreOptions.isOpened())) {
|
82
|
-
this._moreOptions.showActions();
|
83
|
-
return;
|
84
|
-
}
|
85
|
-
if (this._fieldSearch) {
|
86
|
-
const realElement = this._fieldSearch["$elm$"];
|
87
|
-
realElement.value = null;
|
88
|
-
requestAnimationFrame(() => realElement.setFocus());
|
89
|
-
}
|
77
|
+
await openFieldSearch(this._moreOptions, this._fieldSearch);
|
90
78
|
}
|
91
79
|
exitViewer() {
|
92
80
|
if (this.dataUnit.isDirty()) {
|
@@ -374,8 +362,7 @@ const SnkGuidesViewer = class {
|
|
374
362
|
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
375
363
|
this._hasToCreateFieldSearch = false;
|
376
364
|
this._moreOptions = actionButton;
|
377
|
-
actionButton.addEventListener("
|
378
|
-
actionButton.addEventListener("ezDisconnectedActionButtons", () => this._hasToCreateFieldSearch = true);
|
365
|
+
actionButton.addEventListener("taskbarActionsButtonDisconnected", () => this._hasToCreateFieldSearch = true);
|
379
366
|
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
|
380
367
|
}
|
381
368
|
return this._fieldSearch;
|
@@ -399,6 +386,8 @@ const SnkGuidesViewer = class {
|
|
399
386
|
const hardList = [{
|
400
387
|
value: "",
|
401
388
|
label: this.getMessage("snkCrud.findColumn"),
|
389
|
+
disableCloseOnSelect: true,
|
390
|
+
eagerInitialize: true,
|
402
391
|
itemBuilder: (actionButton, item) => this.getFieldsSearch(actionButton, item)
|
403
392
|
}];
|
404
393
|
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
@@ -1,24 +1,23 @@
|
|
1
|
-
export { S as snk_guides_viewer } from './snk-guides-viewer-
|
1
|
+
export { S as snk_guides_viewer } from './snk-guides-viewer-4e56a2e0.js';
|
2
2
|
import './index-a7d3d3f1.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
|
-
import './SnkFormConfigManager-
|
5
|
-
import './ConfigStorage-
|
4
|
+
import './SnkFormConfigManager-5c7d3771.js';
|
5
|
+
import './ConfigStorage-4151acc8.js';
|
6
6
|
import './form-config-fetcher-36219cd3.js';
|
7
7
|
import './DataFetcher-aa159c5a.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/form';
|
12
|
-
import './field-search-
|
13
|
-
import './taskbar-elements-
|
14
|
-
import './index-
|
12
|
+
import './field-search-efbe307f.js';
|
13
|
+
import './taskbar-elements-d4d0b424.js';
|
14
|
+
import './index-0ece87a6.js';
|
15
15
|
import './index-bdf75557.js';
|
16
16
|
import './constants-8457af36.js';
|
17
|
-
import './pesquisa-fetcher-
|
18
|
-
import './ISave-4412b20c.js';
|
17
|
+
import './pesquisa-fetcher-d6ff9386.js';
|
19
18
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
20
|
-
import './dataunit-fetcher-cf01a8f4.js';
|
21
19
|
import './PreloadManager-c1c2f2b4.js';
|
22
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
23
21
|
import './ResourceIDUtils-a114189a.js';
|
22
|
+
import './ISave-d8c8bc59.js';
|
24
23
|
import '@sankhyalabs/core/dist/dataunit/DataUnit';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-a7d3d3f1.js';
|
2
2
|
import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
|
4
|
-
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-
|
4
|
+
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-4151acc8.js';
|
5
5
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
6
6
|
import { a as FilterGroupCondition } from './index-ae591a44.js';
|
7
7
|
import { s as store } from './index-bdf75557.js';
|