@sankhyalabs/sankhyablocks 8.15.0-dev.3 → 8.15.0-dev.30
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-0d507a8f.js → ConfigStorage-d4c99a5e.js} +27 -17
- package/dist/cjs/{DataFetcher-ba94ed5b.js → DataFetcher-99f0f6ed.js} +5 -3
- package/dist/cjs/{ISave-d68ce3cd.js → ISave-e91b70a7.js} +1 -0
- package/dist/cjs/{SnkFormConfigManager-467907f6.js → SnkFormConfigManager-3621bfc4.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-7293d0ad.js → SnkMessageBuilder-e7dcf408.js} +13 -0
- package/dist/cjs/{auth-fetcher-c8467c07.js → auth-fetcher-5161d082.js} +1 -1
- package/dist/cjs/{form-config-fetcher-df043d3d.js → form-config-fetcher-9f1a13ca.js} +1 -1
- package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dataunit-fetcher-de65b9fc.js → pesquisa-fetcher-c416a6b7.js} +249 -34
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_2.cjs.entry.js +23 -8
- package/dist/cjs/snk-application.cjs.entry.js +98 -9
- package/dist/cjs/snk-attach.cjs.entry.js +396 -58
- package/dist/cjs/snk-crud.cjs.entry.js +14 -11
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
- 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 +10 -11
- package/dist/cjs/snk-entity-list.cjs.entry.js +5 -3
- package/dist/cjs/snk-filter-bar.cjs.entry.js +68 -11
- package/dist/cjs/snk-filter-item.cjs.entry.js +3 -0
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -4
- package/dist/cjs/snk-filter-modal.cjs.entry.js +16 -1
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +2 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
- package/dist/cjs/snk-form.cjs.entry.js +4 -4
- package/dist/cjs/snk-grid-config.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +45 -20
- package/dist/cjs/{snk-guides-viewer-7e87ffce.js → snk-guides-viewer-bd69fce4.js} +11 -12
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -10
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +4 -4
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +22 -11
- package/dist/cjs/snk-taskbar.cjs.entry.js +91 -7
- package/dist/cjs/{taskbar-elements-b8c428a9.js → taskbar-elements-1e4fb2e0.js} +9 -9
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/__mocks__/snk-application.js +7 -0
- package/dist/collection/components/snk-application/snk-application.js +111 -5
- package/dist/collection/components/snk-attach/snk-attach.js +194 -38
- 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 +42 -4
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +11 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +4 -4
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -1
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +5 -3
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +2 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +3 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +84 -2
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +0 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +23 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +175 -6
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +5 -1
- package/dist/collection/components/snk-grid/snk-grid.js +75 -16
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +2 -4
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +55 -3
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +18 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +8 -8
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +17 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +129 -7
- package/dist/collection/lib/@types/index.js +1 -0
- package/dist/collection/lib/configs/ConfigStorage.js +24 -14
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +5 -3
- 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/dataunit-fetcher.js +31 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +48 -29
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +21 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +10 -4
- 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 +25 -15
- package/dist/components/DataFetcher.js +5 -3
- package/dist/components/SnkMessageBuilder.js +13 -0
- package/dist/components/dataunit-fetcher.js +90 -37
- package/dist/components/index2.js +1 -0
- package/dist/components/snk-actions-button2.js +1 -0
- package/dist/components/snk-application2.js +94 -3
- package/dist/components/snk-attach2.js +400 -56
- package/dist/components/snk-crud.js +9 -3
- package/dist/components/snk-data-exporter2.js +1 -1
- package/dist/components/snk-detail-view2.js +4 -4
- package/dist/components/snk-entity-list.js +5 -3
- package/dist/components/snk-filter-bar2.js +71 -9
- package/dist/components/snk-filter-item2.js +3 -0
- package/dist/components/snk-filter-modal-item2.js +0 -1
- package/dist/components/snk-filter-modal.js +21 -3
- package/dist/components/snk-filter-multi-select.js +2 -1
- package/dist/components/snk-grid2.js +42 -15
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-simple-crud2.js +17 -3
- package/dist/components/snk-taskbar2.js +103 -15
- package/dist/components/taskbar-actions-button2.js +18 -2
- package/dist/esm/{ConfigStorage-379a9cba.js → ConfigStorage-39ed8aeb.js} +27 -17
- package/dist/esm/{DataFetcher-aa159c5a.js → DataFetcher-a650ae58.js} +5 -3
- package/dist/esm/{ISave-4412b20c.js → ISave-d8c8bc59.js} +1 -0
- package/dist/esm/{SnkFormConfigManager-587e9030.js → SnkFormConfigManager-692e20c7.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-ca843d1b.js → SnkMessageBuilder-0fb796b9.js} +13 -0
- package/dist/esm/{auth-fetcher-c05dc474.js → auth-fetcher-17dc5b5e.js} +1 -1
- package/dist/esm/{form-config-fetcher-36219cd3.js → form-config-fetcher-f121f880.js} +1 -1
- package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dataunit-fetcher-e218c6d2.js → pesquisa-fetcher-ab16a2e8.js} +249 -35
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_2.entry.js +23 -8
- package/dist/esm/snk-application.entry.js +98 -9
- package/dist/esm/snk-attach.entry.js +397 -59
- package/dist/esm/snk-crud.entry.js +14 -11
- package/dist/esm/snk-data-exporter.entry.js +5 -5
- 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 +10 -11
- package/dist/esm/snk-entity-list.entry.js +5 -3
- package/dist/esm/snk-filter-bar.entry.js +68 -11
- package/dist/esm/snk-filter-item.entry.js +3 -0
- package/dist/esm/snk-filter-modal-item.entry.js +3 -4
- package/dist/esm/snk-filter-modal.entry.js +16 -1
- package/dist/esm/snk-filter-multi-select.entry.js +2 -1
- package/dist/esm/snk-form-config.entry.js +2 -2
- package/dist/esm/snk-form.entry.js +4 -4
- package/dist/esm/snk-grid-config.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +45 -20
- package/dist/esm/{snk-guides-viewer-2134aba2.js → snk-guides-viewer-fde82cc1.js} +11 -12
- package/dist/esm/snk-guides-viewer.entry.js +9 -10
- package/dist/esm/snk-personalized-filter.entry.js +4 -4
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +21 -10
- package/dist/esm/snk-taskbar.entry.js +92 -8
- package/dist/esm/{taskbar-elements-26c981af.js → taskbar-elements-846c027c.js} +9 -9
- package/dist/sankhyablocks/{p-ff6064e7.js → p-05243555.js} +1 -1
- package/dist/sankhyablocks/{p-cb7419e0.entry.js → p-0b0b36ac.entry.js} +1 -1
- package/dist/sankhyablocks/p-11ad137d.entry.js +1 -0
- package/dist/sankhyablocks/{p-9e7d65a4.js → p-21749402.js} +1 -1
- package/dist/sankhyablocks/p-33718dfc.entry.js +1 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/p-3e2e2424.entry.js +1 -0
- package/dist/sankhyablocks/p-50783a8b.js +1 -0
- package/dist/sankhyablocks/p-57212bb5.js +1 -0
- package/dist/sankhyablocks/p-5f5b58b6.entry.js +1 -0
- package/dist/sankhyablocks/p-67aedbe0.js +56 -0
- package/dist/sankhyablocks/p-70a4af56.entry.js +1 -0
- package/dist/sankhyablocks/{p-2028633c.js → p-725d04ba.js} +1 -1
- package/dist/sankhyablocks/p-827e4b01.entry.js +1 -0
- package/dist/sankhyablocks/p-84bb8f47.entry.js +1 -0
- package/dist/sankhyablocks/{p-6977a26c.entry.js → p-86801b08.entry.js} +1 -1
- package/dist/sankhyablocks/p-8c13d8d6.entry.js +1 -0
- package/dist/sankhyablocks/p-8c49760e.js +1 -0
- package/dist/sankhyablocks/p-91b7f78a.entry.js +1 -0
- package/dist/sankhyablocks/p-9d608b62.entry.js +1 -0
- package/dist/sankhyablocks/{p-0d7863ed.js → p-a13ccb86.js} +1 -1
- package/dist/sankhyablocks/p-b7004423.entry.js +1 -0
- package/dist/sankhyablocks/{p-9695f78b.js → p-be75153c.js} +1 -1
- package/dist/sankhyablocks/p-bf2acf72.entry.js +1 -0
- package/dist/sankhyablocks/p-c4874327.entry.js +1 -0
- package/dist/sankhyablocks/p-c6247955.js +65 -0
- package/dist/sankhyablocks/{p-247a8b36.entry.js → p-d1791da2.entry.js} +1 -1
- package/dist/sankhyablocks/p-d4802f81.entry.js +1 -0
- package/dist/sankhyablocks/{p-aaa1438e.entry.js → p-e3bd000e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-32f0935f.js → p-f3d1c48e.js} +1 -1
- package/dist/sankhyablocks/p-fb842329.entry.js +1 -0
- package/dist/sankhyablocks/{p-729f5f5b.entry.js → p-fcdcb0e2.entry.js} +1 -1
- package/dist/sankhyablocks/p-fd0a8d68.entry.js +11 -0
- package/dist/sankhyablocks/{p-35fe6e61.entry.js → p-fdc4cb9b.entry.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/__mocks__/snk-application.d.ts +3 -0
- package/dist/types/components/snk-application/snk-application.d.ts +12 -2
- 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 +28 -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 +9 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +19 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +30 -1
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +7 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +10 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +10 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +1 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +27 -1
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +1 -0
- package/dist/types/components.d.ts +177 -13
- 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/dataunit-fetcher.d.ts +2 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +2 -0
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
- package/dist/types/lib/index.d.ts +1 -1
- package/package.json +15 -6
- package/dist/cjs/pesquisa-fetcher-ef050a47.js +0 -167
- package/dist/esm/pesquisa-fetcher-dd3ca0a5.js +0 -165
- package/dist/sankhyablocks/p-0cd2e986.entry.js +0 -1
- package/dist/sankhyablocks/p-145c4434.js +0 -1
- package/dist/sankhyablocks/p-20726710.entry.js +0 -1
- package/dist/sankhyablocks/p-4396d1a6.js +0 -56
- package/dist/sankhyablocks/p-4775a293.entry.js +0 -1
- package/dist/sankhyablocks/p-4b0ea83f.entry.js +0 -1
- package/dist/sankhyablocks/p-5534e08c.js +0 -1
- package/dist/sankhyablocks/p-58218eb7.entry.js +0 -1
- package/dist/sankhyablocks/p-78777ae0.entry.js +0 -1
- package/dist/sankhyablocks/p-7915c452.entry.js +0 -1
- package/dist/sankhyablocks/p-953346b9.entry.js +0 -1
- package/dist/sankhyablocks/p-a037f5b4.entry.js +0 -1
- package/dist/sankhyablocks/p-a49b1019.entry.js +0 -1
- package/dist/sankhyablocks/p-a7923832.entry.js +0 -1
- package/dist/sankhyablocks/p-b52c2175.js +0 -1
- package/dist/sankhyablocks/p-ba627e85.js +0 -60
- package/dist/sankhyablocks/p-bf9b7149.entry.js +0 -11
- package/dist/sankhyablocks/p-c259545b.entry.js +0 -1
- package/dist/sankhyablocks/p-ca8e7da0.entry.js +0 -1
- package/dist/sankhyablocks/p-d1677df0.entry.js +0 -1
- package/dist/sankhyablocks/p-d4f9ee17.entry.js +0 -1
- package/dist/sankhyablocks/p-d9bb09b3.js +0 -6
- package/dist/sankhyablocks/p-e6380c60.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
@@ -15,14 +15,16 @@ import { IAppletCallerParams } from "./lib/applet-caller/applet-caller";
|
|
15
15
|
import { IClientEventResponse } from "./lib/http/data-fetcher/interfaces/IClientEventResponse";
|
16
16
|
import { IDataFetcherRecaller } from "./lib/http/data-fetcher/recaller/IDataFetcherRecaller";
|
17
17
|
import { DialogType, MessageOptions } from "@sankhyalabs/ezui/dist/collection/utils";
|
18
|
-
import { IOption, ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-
|
18
|
+
import { IOption, ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search";
|
19
19
|
import { IRemoveSearchListener, ISearchListener, SearchCriteria } from "./lib/http/data-fetcher/fetchers/pesquisa-fetcher";
|
20
|
+
import { TFetcherType } from "./components/snk-attach/interfaces/TFetcherType";
|
21
|
+
import { AttachFetcherFacadeInterface, PresentationMode } from "./lib";
|
22
|
+
import { FetcherFacade } from "./components/snk-attach/structure";
|
20
23
|
import { IFieldConfig, IFormCardConfig, IFormConfig, IRecordValidator, ISummaryField } from "@sankhyalabs/ezui/dist/types/utils/form/interfaces";
|
21
24
|
import { SIMPLE_CRUD_MODE, VIEW_MODE } from "./lib/utils/constants";
|
22
25
|
import { ISelectionToastConfig } from "@sankhyalabs/ezui/dist/types/components/ez-grid/interfaces";
|
23
26
|
import { Action, TaskbarManager } from "./components/snk-taskbar/snk-taskbar";
|
24
27
|
import { EzGridColumn, IGridConfig, IStatusResolver, StatusResolverFunction } from "@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController";
|
25
|
-
import { PresentationMode } from "./lib";
|
26
28
|
import { IExporterProvider } from "./components/snk-data-exporter/interfaces/IExporterProvider";
|
27
29
|
import { DataState } from "./components/snk-data-unit/snk-data-unit";
|
28
30
|
import { IRecordID } from "./components/snk-data-exporter/interfaces/IRecordID";
|
@@ -38,11 +40,13 @@ import { IExportConfig } from "./components/snk-data-exporter/data/export-config
|
|
38
40
|
import { IExpressionGroup, IExpressionItem } from "./components/snk-personalized-filter/interfaces/IExpressionItem";
|
39
41
|
import { IPersonalizedFilter } from "./components/snk-personalized-filter/interfaces/IPersonalizedFilter";
|
40
42
|
import { SnkApplication } from "./components/snk-application/snk-application";
|
43
|
+
import { SnkFilterModalFactoryParams } from "./components/snk-filter-bar/utils/SnkFilterModalFactory";
|
41
44
|
import { EPresentationMode } from "./components/snk-filter-bar/filter-item/editors/enum/presentationMode";
|
42
45
|
import { FilterFieldsDataSource, IFilterField, IFilterLink } from "./components/snk-filter-field-search/interfaces";
|
43
46
|
import { IEzPopoverAnchorOptions } from "@sankhyalabs/ezui/dist/types/components/ez-popover/ez-popover";
|
44
47
|
import { SnkFilterItemConfig as SnkFilterItemConfig1 } from "./components/snk-filter-bar/filter-item/snk-filter-item";
|
45
48
|
import { ListItem as ListItem1 } from "./components/snk-filter-bar/filter-list/snk-filter-list";
|
49
|
+
import { IOption as IOption1 } from "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box";
|
46
50
|
import { IFormViewField } from "@sankhyalabs/ezui/dist/types/components/ez-form-view/interfaces/IFormViewField";
|
47
51
|
import { FormMetadata } from "@sankhyalabs/ezui/dist/collection/utils/form";
|
48
52
|
import { IMultiSelectionListDataSource } from "@sankhyalabs/ezui/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource";
|
@@ -253,6 +257,12 @@ export namespace Components {
|
|
253
257
|
* Salva a configuração de determinado recurso.
|
254
258
|
*/
|
255
259
|
"saveConfig": (key: string, data: Object) => Promise<any>;
|
260
|
+
/**
|
261
|
+
* Atribui valor para parâmetros de contexto no componente de pesquisa.
|
262
|
+
* @param name - Nome do parâmetro
|
263
|
+
* @param value - String conversível de acordo com o tipo do parâmetro
|
264
|
+
*/
|
265
|
+
"setSearchFilterContext": (name: string, value: string) => Promise<void>;
|
256
266
|
/**
|
257
267
|
* Apresenta uma lista de alertas, geralmente é utilizado para apresentar resultados de processamentos em lote.
|
258
268
|
*/
|
@@ -294,10 +304,26 @@ export namespace Components {
|
|
294
304
|
"whenApplicationReady": () => Promise<SnkApplication>;
|
295
305
|
}
|
296
306
|
interface SnkAttach {
|
307
|
+
/**
|
308
|
+
* DataUnit responsável por carregar os dados.
|
309
|
+
*/
|
310
|
+
"dataUnit": DataUnit;
|
311
|
+
/**
|
312
|
+
* DataUnitBuilder responsável por implementar dados a serem utilizados no DataUnit.
|
313
|
+
*/
|
314
|
+
"dataUnitBuilder": FetcherFacade;
|
297
315
|
/**
|
298
316
|
* Nome da entidade à ser utilizada para relacionar o anexo ao DataUnit pai.
|
299
317
|
*/
|
300
318
|
"entityName": string;
|
319
|
+
/**
|
320
|
+
* Fetcher responsável por carregar os dados do DataUnit.
|
321
|
+
*/
|
322
|
+
"fetcher": AttachFetcherFacadeInterface;
|
323
|
+
/**
|
324
|
+
* FetcherType define o tipo de fetcher responsável por carregar os dados do DataUnit.
|
325
|
+
*/
|
326
|
+
"fetcherType": TFetcherType;
|
301
327
|
/**
|
302
328
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
303
329
|
*/
|
@@ -394,6 +420,14 @@ export namespace Components {
|
|
394
420
|
* Usado para salvar as configurações dos blocos de construção.
|
395
421
|
*/
|
396
422
|
"configName": string;
|
423
|
+
/**
|
424
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
425
|
+
*/
|
426
|
+
"disablePersonalizedFilter": boolean;
|
427
|
+
/**
|
428
|
+
* Título que será apresentado na barra de filtros
|
429
|
+
*/
|
430
|
+
"filterBarTitle": string;
|
397
431
|
/**
|
398
432
|
* Retorna o elemento da filter-bar da grade.
|
399
433
|
*/
|
@@ -709,6 +743,10 @@ export namespace Components {
|
|
709
743
|
* Recebe o DataUnit do ambiente. Se não for informado, procura pela referência do SnkDataUnit. Necessário para se registrar como provedor de filtros.
|
710
744
|
*/
|
711
745
|
"dataUnit": DataUnit;
|
746
|
+
/**
|
747
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
748
|
+
*/
|
749
|
+
"disablePersonalizedFilter": boolean;
|
712
750
|
/**
|
713
751
|
* Lista todos os filtros disponíveis ao usuário.
|
714
752
|
*/
|
@@ -721,14 +759,32 @@ export namespace Components {
|
|
721
759
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
722
760
|
*/
|
723
761
|
"messagesBuilder": SnkMessageBuilder;
|
762
|
+
/**
|
763
|
+
* Modo de apresentação da filterbar.
|
764
|
+
*/
|
765
|
+
"mode": "regular" | "button" | "hidden";
|
724
766
|
/**
|
725
767
|
* Faz o recarregamento da filterbar buscando o state no servidor.
|
726
768
|
*/
|
727
769
|
"reload": () => Promise<void>;
|
770
|
+
/**
|
771
|
+
* Remove um item de filtro.
|
772
|
+
* @param filterID - ID do a ser adicionado
|
773
|
+
* @returns - Retorna o item de filtro removido, ou undefined caso não encontrado.
|
774
|
+
*/
|
775
|
+
"removeFilterItem": (filterID: string) => Promise<SnkFilterItemConfig | undefined>;
|
728
776
|
/**
|
729
777
|
* Identificador de recursos como configurações e acesso.
|
730
778
|
*/
|
731
779
|
"resourceID": string;
|
780
|
+
/**
|
781
|
+
* Abre o modal de filtros
|
782
|
+
*/
|
783
|
+
"showFilterModal": () => Promise<void>;
|
784
|
+
/**
|
785
|
+
* Título que será apresentado na barra de filtros
|
786
|
+
*/
|
787
|
+
"title": string;
|
732
788
|
/**
|
733
789
|
* Atualiza um item do filtro.
|
734
790
|
* @param filterItem - Item com as informações atualizadas, caso o item não seja encontrado no array ele mão será modificado
|
@@ -865,13 +921,25 @@ export namespace Components {
|
|
865
921
|
*/
|
866
922
|
"configName": string;
|
867
923
|
/**
|
868
|
-
* Ação executada ao
|
924
|
+
* Ação executada ao deletar um filtro personalizado
|
925
|
+
*/
|
926
|
+
"deletePersonalizedFilter": (filter: IPersonalizedFilter, configName: string) => void;
|
927
|
+
/**
|
928
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
929
|
+
*/
|
930
|
+
"disablePersonalizedFilter": boolean;
|
931
|
+
/**
|
932
|
+
* Ação executada ao editar um filtro personalizado
|
869
933
|
*/
|
870
934
|
"editPersonalizedFilter": (id:string) => void;
|
871
935
|
/**
|
872
936
|
* Filtros a serem apresentados
|
873
937
|
*/
|
874
938
|
"filters": Array<SnkFilterItemConfig>;
|
939
|
+
/**
|
940
|
+
* Guarda filtros a serem deletados no Apply do modal
|
941
|
+
*/
|
942
|
+
"filtersToDelete": IPersonalizedFilter[];
|
875
943
|
/**
|
876
944
|
* Usado pra flexibilizar os verbetes e mensagens de acordo com o SnkMessageBuilder.
|
877
945
|
*/
|
@@ -972,7 +1040,7 @@ export namespace Components {
|
|
972
1040
|
/**
|
973
1041
|
* Define o valor do componente snk-filter-search
|
974
1042
|
*/
|
975
|
-
"value":
|
1043
|
+
"value": IOption1;
|
976
1044
|
}
|
977
1045
|
interface SnkFilterText {
|
978
1046
|
/**
|
@@ -1104,6 +1172,14 @@ export namespace Components {
|
|
1104
1172
|
* Nome usado para salvar/recuperar a configuração.
|
1105
1173
|
*/
|
1106
1174
|
"configName": string;
|
1175
|
+
/**
|
1176
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
1177
|
+
*/
|
1178
|
+
"disablePersonalizedFilter": boolean;
|
1179
|
+
/**
|
1180
|
+
* Título que será apresentado na barra de filtros
|
1181
|
+
*/
|
1182
|
+
"filterBarTitle": string;
|
1107
1183
|
/**
|
1108
1184
|
* Abre o localizador de colunas
|
1109
1185
|
*/
|
@@ -1317,7 +1393,7 @@ export namespace Components {
|
|
1317
1393
|
/**
|
1318
1394
|
* Controla o valor do componente.
|
1319
1395
|
*/
|
1320
|
-
"value": Array<
|
1396
|
+
"value": Array<IOption1|boolean|string|number|Date>;
|
1321
1397
|
}
|
1322
1398
|
interface SnkPesquisa {
|
1323
1399
|
/**
|
@@ -1331,7 +1407,7 @@ export namespace Components {
|
|
1331
1407
|
/**
|
1332
1408
|
* Função disparada ao selecionar um item.
|
1333
1409
|
*/
|
1334
|
-
"selectItem": (option:
|
1410
|
+
"selectItem": (option: IOption1) => void;
|
1335
1411
|
}
|
1336
1412
|
interface SnkPrintSelector {
|
1337
1413
|
"openPrintSelector": (printJobData: PendingPrintJobData) => Promise<PrintSelectorResponse>;
|
@@ -1340,7 +1416,7 @@ export namespace Components {
|
|
1340
1416
|
/**
|
1341
1417
|
* Determina a opção selecionada.
|
1342
1418
|
*/
|
1343
|
-
"selectedOption":
|
1419
|
+
"selectedOption": IOption1 | string;
|
1344
1420
|
}
|
1345
1421
|
interface SnkSimpleBar {
|
1346
1422
|
/**
|
@@ -1357,6 +1433,14 @@ export namespace Components {
|
|
1357
1433
|
"messagesBuilder": SnkMessageBuilder;
|
1358
1434
|
}
|
1359
1435
|
interface SnkSimpleCrud {
|
1436
|
+
/**
|
1437
|
+
* Ações a serem colocadas no botão "Mais opções" do componente snk-taskbar.
|
1438
|
+
*/
|
1439
|
+
"actionsList": Array<Action>;
|
1440
|
+
/**
|
1441
|
+
* Usado para salvar as configurações dos blocos de construção.
|
1442
|
+
*/
|
1443
|
+
"configName": string;
|
1360
1444
|
"dataState": DataState1;
|
1361
1445
|
"dataUnit": DataUnit;
|
1362
1446
|
"formConfig": IFormConfig;
|
@@ -1414,6 +1498,10 @@ export namespace Components {
|
|
1414
1498
|
* Lista de ações que devem ser usadas no botão "Mais opções" do componente snk-taskbar.
|
1415
1499
|
*/
|
1416
1500
|
"actionsList": Array<Action>;
|
1501
|
+
/**
|
1502
|
+
* Usado para determinar O alinhamento dos items na taskbar.
|
1503
|
+
*/
|
1504
|
+
"alignRigth": boolean;
|
1417
1505
|
/**
|
1418
1506
|
* Lista separada por virgula, contendo todos os elementos a serem criados.
|
1419
1507
|
*/
|
@@ -1446,6 +1534,10 @@ export namespace Components {
|
|
1446
1534
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
1447
1535
|
*/
|
1448
1536
|
"messagesBuilder": SnkMessageBuilder;
|
1537
|
+
/**
|
1538
|
+
* Define como será o comportamento da taskbar quando ocorrer overflow
|
1539
|
+
*/
|
1540
|
+
"overflowStrategy": 'hiddenItems' | 'none';
|
1449
1541
|
/**
|
1450
1542
|
* Altera o modo de apresentação dos botões do snk-taskbar.
|
1451
1543
|
*/
|
@@ -2049,10 +2141,26 @@ declare namespace LocalJSX {
|
|
2049
2141
|
"onApplicationLoading"?: (event: SnkApplicationCustomEvent<boolean>) => void;
|
2050
2142
|
}
|
2051
2143
|
interface SnkAttach {
|
2144
|
+
/**
|
2145
|
+
* DataUnit responsável por carregar os dados.
|
2146
|
+
*/
|
2147
|
+
"dataUnit"?: DataUnit;
|
2148
|
+
/**
|
2149
|
+
* DataUnitBuilder responsável por implementar dados a serem utilizados no DataUnit.
|
2150
|
+
*/
|
2151
|
+
"dataUnitBuilder"?: FetcherFacade;
|
2052
2152
|
/**
|
2053
2153
|
* Nome da entidade à ser utilizada para relacionar o anexo ao DataUnit pai.
|
2054
2154
|
*/
|
2055
|
-
"entityName"
|
2155
|
+
"entityName"?: string;
|
2156
|
+
/**
|
2157
|
+
* Fetcher responsável por carregar os dados do DataUnit.
|
2158
|
+
*/
|
2159
|
+
"fetcher"?: AttachFetcherFacadeInterface;
|
2160
|
+
/**
|
2161
|
+
* FetcherType define o tipo de fetcher responsável por carregar os dados do DataUnit.
|
2162
|
+
*/
|
2163
|
+
"fetcherType"?: TFetcherType;
|
2056
2164
|
/**
|
2057
2165
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
2058
2166
|
*/
|
@@ -2157,6 +2265,14 @@ declare namespace LocalJSX {
|
|
2157
2265
|
* Usado para salvar as configurações dos blocos de construção.
|
2158
2266
|
*/
|
2159
2267
|
"configName"?: string;
|
2268
|
+
/**
|
2269
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
2270
|
+
*/
|
2271
|
+
"disablePersonalizedFilter"?: boolean;
|
2272
|
+
/**
|
2273
|
+
* Título que será apresentado na barra de filtros
|
2274
|
+
*/
|
2275
|
+
"filterBarTitle"?: string;
|
2160
2276
|
/**
|
2161
2277
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
2162
2278
|
*/
|
@@ -2509,6 +2625,10 @@ declare namespace LocalJSX {
|
|
2509
2625
|
* Recebe o DataUnit do ambiente. Se não for informado, procura pela referência do SnkDataUnit. Necessário para se registrar como provedor de filtros.
|
2510
2626
|
*/
|
2511
2627
|
"dataUnit"?: DataUnit;
|
2628
|
+
/**
|
2629
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
2630
|
+
*/
|
2631
|
+
"disablePersonalizedFilter"?: boolean;
|
2512
2632
|
/**
|
2513
2633
|
* Lista todos os filtros disponíveis ao usuário.
|
2514
2634
|
*/
|
@@ -2517,11 +2637,19 @@ declare namespace LocalJSX {
|
|
2517
2637
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
2518
2638
|
*/
|
2519
2639
|
"messagesBuilder"?: SnkMessageBuilder;
|
2640
|
+
/**
|
2641
|
+
* Modo de apresentação da filterbar.
|
2642
|
+
*/
|
2643
|
+
"mode"?: "regular" | "button" | "hidden";
|
2520
2644
|
"onConfigUpdated"?: (event: SnkFilterBarCustomEvent<SnkFilterItemConfig[]>) => void;
|
2521
2645
|
/**
|
2522
2646
|
* Identificador de recursos como configurações e acesso.
|
2523
2647
|
*/
|
2524
2648
|
"resourceID"?: string;
|
2649
|
+
/**
|
2650
|
+
* Título que será apresentado na barra de filtros
|
2651
|
+
*/
|
2652
|
+
"title"?: string;
|
2525
2653
|
}
|
2526
2654
|
interface SnkFilterBinarySelect {
|
2527
2655
|
/**
|
@@ -2650,13 +2778,25 @@ declare namespace LocalJSX {
|
|
2650
2778
|
*/
|
2651
2779
|
"configName"?: string;
|
2652
2780
|
/**
|
2653
|
-
* Ação executada ao
|
2781
|
+
* Ação executada ao deletar um filtro personalizado
|
2782
|
+
*/
|
2783
|
+
"deletePersonalizedFilter"?: (filter: IPersonalizedFilter, configName: string) => void;
|
2784
|
+
/**
|
2785
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
2786
|
+
*/
|
2787
|
+
"disablePersonalizedFilter"?: boolean;
|
2788
|
+
/**
|
2789
|
+
* Ação executada ao editar um filtro personalizado
|
2654
2790
|
*/
|
2655
2791
|
"editPersonalizedFilter"?: (id:string) => void;
|
2656
2792
|
/**
|
2657
2793
|
* Filtros a serem apresentados
|
2658
2794
|
*/
|
2659
2795
|
"filters"?: Array<SnkFilterItemConfig>;
|
2796
|
+
/**
|
2797
|
+
* Guarda filtros a serem deletados no Apply do modal
|
2798
|
+
*/
|
2799
|
+
"filtersToDelete"?: IPersonalizedFilter[];
|
2660
2800
|
/**
|
2661
2801
|
* Usado pra flexibilizar os verbetes e mensagens de acordo com o SnkMessageBuilder.
|
2662
2802
|
*/
|
@@ -2752,7 +2892,7 @@ declare namespace LocalJSX {
|
|
2752
2892
|
/**
|
2753
2893
|
* Define o valor do componente snk-filter-search
|
2754
2894
|
*/
|
2755
|
-
"value"?:
|
2895
|
+
"value"?: IOption1;
|
2756
2896
|
}
|
2757
2897
|
interface SnkFilterText {
|
2758
2898
|
/**
|
@@ -2911,6 +3051,14 @@ declare namespace LocalJSX {
|
|
2911
3051
|
* Nome usado para salvar/recuperar a configuração.
|
2912
3052
|
*/
|
2913
3053
|
"configName"?: string;
|
3054
|
+
/**
|
3055
|
+
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
3056
|
+
*/
|
3057
|
+
"disablePersonalizedFilter"?: boolean;
|
3058
|
+
/**
|
3059
|
+
* Título que será apresentado na barra de filtros
|
3060
|
+
*/
|
3061
|
+
"filterBarTitle"?: string;
|
2914
3062
|
/**
|
2915
3063
|
* Nome do slot de elementos customizados da Taskbar do cabeçalho da grade.
|
2916
3064
|
*/
|
@@ -3124,7 +3272,7 @@ declare namespace LocalJSX {
|
|
3124
3272
|
/**
|
3125
3273
|
* Controla o valor do componente.
|
3126
3274
|
*/
|
3127
|
-
"value"?: Array<
|
3275
|
+
"value"?: Array<IOption1|boolean|string|number|Date>;
|
3128
3276
|
}
|
3129
3277
|
interface SnkPesquisa {
|
3130
3278
|
/**
|
@@ -3138,7 +3286,7 @@ declare namespace LocalJSX {
|
|
3138
3286
|
/**
|
3139
3287
|
* Função disparada ao selecionar um item.
|
3140
3288
|
*/
|
3141
|
-
"selectItem"?: (option:
|
3289
|
+
"selectItem"?: (option: IOption1) => void;
|
3142
3290
|
}
|
3143
3291
|
interface SnkPrintSelector {
|
3144
3292
|
}
|
@@ -3150,7 +3298,7 @@ declare namespace LocalJSX {
|
|
3150
3298
|
/**
|
3151
3299
|
* Determina a opção selecionada.
|
3152
3300
|
*/
|
3153
|
-
"selectedOption"?:
|
3301
|
+
"selectedOption"?: IOption1 | string;
|
3154
3302
|
}
|
3155
3303
|
interface SnkSimpleBar {
|
3156
3304
|
/**
|
@@ -3175,6 +3323,14 @@ declare namespace LocalJSX {
|
|
3175
3323
|
"onExit"?: (event: SnkSimpleBarCustomEvent<void>) => void;
|
3176
3324
|
}
|
3177
3325
|
interface SnkSimpleCrud {
|
3326
|
+
/**
|
3327
|
+
* Ações a serem colocadas no botão "Mais opções" do componente snk-taskbar.
|
3328
|
+
*/
|
3329
|
+
"actionsList"?: Array<Action>;
|
3330
|
+
/**
|
3331
|
+
* Usado para salvar as configurações dos blocos de construção.
|
3332
|
+
*/
|
3333
|
+
"configName"?: string;
|
3178
3334
|
"dataState"?: DataState1;
|
3179
3335
|
"dataUnit"?: DataUnit;
|
3180
3336
|
"formConfig"?: IFormConfig;
|
@@ -3265,6 +3421,10 @@ declare namespace LocalJSX {
|
|
3265
3421
|
* Lista de ações que devem ser usadas no botão "Mais opções" do componente snk-taskbar.
|
3266
3422
|
*/
|
3267
3423
|
"actionsList"?: Array<Action>;
|
3424
|
+
/**
|
3425
|
+
* Usado para determinar O alinhamento dos items na taskbar.
|
3426
|
+
*/
|
3427
|
+
"alignRigth"?: boolean;
|
3268
3428
|
/**
|
3269
3429
|
* Lista separada por virgula, contendo todos os elementos a serem criados.
|
3270
3430
|
*/
|
@@ -3301,6 +3461,10 @@ declare namespace LocalJSX {
|
|
3301
3461
|
* Emitido sempre que houver click de botão ou ação.
|
3302
3462
|
*/
|
3303
3463
|
"onActionClick"?: (event: SnkTaskbarCustomEvent<string>) => void;
|
3464
|
+
/**
|
3465
|
+
* Define como será o comportamento da taskbar quando ocorrer overflow
|
3466
|
+
*/
|
3467
|
+
"overflowStrategy"?: 'hiddenItems' | 'none';
|
3304
3468
|
/**
|
3305
3469
|
* Altera o modo de apresentação dos botões do snk-taskbar.
|
3306
3470
|
*/
|
@@ -21,5 +21,9 @@ export declare class ConfigStorage {
|
|
21
21
|
static savePersonalizedFilter(personalizedFilter: IPersonalizedFilter, resourceID: string, configName?: string): Promise<IPersonalizedFilter>;
|
22
22
|
static removePersonalizedFilter(personalizedFilter: IPersonalizedFilter, resourceID: string, configName?: string): Promise<IPersonalizedFilter>;
|
23
23
|
static validatePersonalizedFilter(dataUnitName: string, expression: string): Promise<IValidateFilter>;
|
24
|
+
static deleteGridConfigCache(name: string, resourceID: string): Promise<void>;
|
25
|
+
static deleteFormConfigCache(name: string, resourceID: string): Promise<void>;
|
26
|
+
static deleteFilterBarConfigCache(name: string, resourceID: string): Promise<void>;
|
27
|
+
private static deleteConfigCache;
|
24
28
|
private static buildCacheID;
|
25
29
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { IClientEventResponse } from './interfaces/IClientEventResponse';
|
2
2
|
import { IDataFetcherRecaller } from './recaller/IDataFetcherRecaller';
|
3
|
-
type ClientEventHandler = (clientEvent: IClientEventResponse, dataFetcherReacaller: IDataFetcherRecaller) => Promise<void>;
|
4
3
|
export declare class DataFetcher {
|
5
4
|
private static appTagName;
|
6
5
|
private static instance;
|
@@ -39,6 +38,7 @@ export declare class DataFetcher {
|
|
39
38
|
static hasClientEvent(eventID: String): boolean;
|
40
39
|
static removeClientEvent(eventID: String): boolean;
|
41
40
|
}
|
41
|
+
type ClientEventHandler = (clientEvent: IClientEventResponse, dataFetcherReacaller: IDataFetcherRecaller) => void | Promise<void>;
|
42
42
|
export interface RequestListener {
|
43
43
|
onRequestStart(param: RequestListenerParams): void;
|
44
44
|
onRequestEnd(param: RequestListenerParams): void;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Change, Record } from "@sankhyalabs/core";
|
2
|
-
import {
|
3
|
-
|
2
|
+
import { DeleteResponse, DownloadKeyResponse, SaveResponse } from "./interfaces";
|
3
|
+
import { AttachFetcherFacadeInterface } from "./facade/attach-fetcher.facade";
|
4
|
+
export declare class AnexoSistemaFetcher implements AttachFetcherFacadeInterface {
|
4
5
|
private entityName;
|
5
6
|
private registerKey;
|
6
7
|
private dataUnitName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Change, Record } from "@sankhyalabs/core";
|
2
|
+
import { SaveResponse, DeleteResponse, DownloadKeyResponse } from "./interfaces";
|
3
|
+
import { AttachFetcherFacadeInterface } from "./facade/attach-fetcher.facade";
|
4
|
+
export declare class AttachFetcher implements AttachFetcherFacadeInterface {
|
5
|
+
private dataUnitName?;
|
6
|
+
constructor(dataUnitName?: string);
|
7
|
+
save({ dataUnit: dataUnitName, record, updatingFields: fields, operation }: Change): Promise<Array<SaveResponse>>;
|
8
|
+
edit(change: Change): Promise<SaveResponse[]>;
|
9
|
+
delete(record: Record): Promise<DeleteResponse>;
|
10
|
+
getDownloadKey(record: Record): Promise<DownloadKeyResponse>;
|
11
|
+
}
|
package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.d.ts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Change, Record } from '@sankhyalabs/core';
|
2
|
+
import { DeleteResponse, DownloadKeyResponse, SaveResponse } from '../interfaces';
|
3
|
+
export interface AttachFetcherFacadeInterface {
|
4
|
+
save(change: Change): Promise<Array<SaveResponse>>;
|
5
|
+
edit(change: Change): Promise<Array<SaveResponse>>;
|
6
|
+
delete(record: Record): Promise<DeleteResponse>;
|
7
|
+
getDownloadKey(record: Record): Promise<DownloadKeyResponse>;
|
8
|
+
}
|
@@ -22,5 +22,6 @@ export type SaveResponse = {
|
|
22
22
|
export declare enum SaveErrorsEnum {
|
23
23
|
LINK_AND_FILE_AT_THE_SAME_TIME = "LINK_AND_FILE_AT_THE_SAME_TIME",
|
24
24
|
ANY_LINK_OR_FILE_FILLED = "ANY_LINK_OR_FILE_FILLED",
|
25
|
-
UNKNOWN = "UNKNOWN"
|
25
|
+
UNKNOWN = "UNKNOWN",
|
26
|
+
DESCRIPTION_CANNOT_BE_CHANGED = "DESCRIPTION_CANNOT_BE_CHANGED"
|
26
27
|
}
|
@@ -10,6 +10,8 @@ export default class DataUnitFetcher {
|
|
10
10
|
getDataUnit(entityName: string, resourceID: string, parentDataUnit?: DataUnit, configName?: string): DataUnit;
|
11
11
|
private loadMetadata;
|
12
12
|
loadSelectDistinct(dataUnit: DataUnit, fieldName: string, argument: string): Promise<Array<string>>;
|
13
|
+
private addTransientProperties;
|
14
|
+
private getUpdatingFields;
|
13
15
|
private saveData;
|
14
16
|
private updateCache;
|
15
17
|
private getTransientInfo;
|
package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts
CHANGED
@@ -4,8 +4,10 @@ import { ILoadDataStrategy } from "../interfaces/ILoadDataStrategy";
|
|
4
4
|
import { ILoadingInfo } from "../interfaces/ILoadingInfo";
|
5
5
|
export declare class DatasetStrategy implements ILoadDataStrategy {
|
6
6
|
canSlice(): boolean;
|
7
|
+
private processSortingSide;
|
7
8
|
load(dataUnit: DataUnit, request: LoadDataRequest, loadingInfo: ILoadingInfo): Promise<ILoadDataResult>;
|
8
9
|
private getFieldsList;
|
10
|
+
private getStandAloneFieldsList;
|
9
11
|
private getFieldNames;
|
10
12
|
private buildRequestBody;
|
11
13
|
private getModuleName;
|
@@ -4,7 +4,7 @@ export { CrudUtils } from './utils/CrudUtils';
|
|
4
4
|
export { PresentationMode } from "./@types";
|
5
5
|
export { TotalsFetcher } from './http/data-fetcher/fetchers/totals-fetcher';
|
6
6
|
export { default as ApplicationConfigFetcher } from './http/data-fetcher/fetchers/application-config-fetcher';
|
7
|
-
export { AttachFetcher } from './http/data-fetcher/fetchers/
|
7
|
+
export { AttachFetcher, AnexoSistemaFetcher, AttachFetcherFacadeInterface } from './http/data-fetcher/fetchers/AttachFetcher';
|
8
8
|
export { Authorization } from './http/data-fetcher/fetchers/auth-fetcher';
|
9
9
|
export { default as DataUnitFetcher } from './http/data-fetcher/fetchers/data-unit/dataunit-fetcher';
|
10
10
|
export { default as FilterBarConfigFetcher } from './http/data-fetcher/fetchers/filter-bar-config-fetcher';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sankhyalabs/sankhyablocks",
|
3
|
-
"version": "8.15.0-dev.
|
3
|
+
"version": "8.15.0-dev.30",
|
4
4
|
"description": "Stencil Component Starter",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -20,11 +20,12 @@
|
|
20
20
|
"react/"
|
21
21
|
],
|
22
22
|
"scripts": {
|
23
|
+
"prebuild": "(test -f ./src/components.d.ts && git checkout ./src/components.d.ts) || true",
|
23
24
|
"build": "stencil build --docs",
|
24
|
-
"build.prod": "stencil build --docs --prod",
|
25
|
+
"build.prod": "npm run prebuild && stencil build --docs --prod",
|
25
26
|
"build.with.peerdeps": "stencil build --docs --prod --force-peer-deps",
|
26
27
|
"start": "stencil build --dev --watch --serve --force-peer-deps",
|
27
|
-
"test": "stencil test --spec --e2e",
|
28
|
+
"test": "stencil test --spec --e2e --coverage --silent --testResultsProcessor jest-sonar-reporter",
|
28
29
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
29
30
|
"generate": "stencil generate",
|
30
31
|
"build.css.docs": "node docscsstask.js",
|
@@ -42,9 +43,9 @@
|
|
42
43
|
"@babel/preset-env": "^7.18.2",
|
43
44
|
"@commitlint/cli": "^18.4.3",
|
44
45
|
"@commitlint/config-conventional": "^18.4.3",
|
45
|
-
"@sankhyalabs/core": "^5.
|
46
|
+
"@sankhyalabs/core": "^5.16.0",
|
46
47
|
"@sankhyalabs/docscss": "^1.0.4",
|
47
|
-
"@sankhyalabs/ezui": "^5.
|
48
|
+
"@sankhyalabs/ezui": "^5.19.4",
|
48
49
|
"@sankhyalabs/skippeerdeps": "^1.0.2",
|
49
50
|
"@stencil/core": "^2.13.0",
|
50
51
|
"@stencil/react-output-target": "0.0.9",
|
@@ -57,11 +58,19 @@
|
|
57
58
|
"husky": "^8.0.3",
|
58
59
|
"jest": "^27.4.5",
|
59
60
|
"jest-cli": "^27.4.5",
|
61
|
+
"jest-sonar-reporter": "^2.0.0",
|
60
62
|
"puppeteer": "^10.0.0",
|
61
63
|
"redux": "^4.1.2"
|
62
64
|
},
|
63
65
|
"jest": {
|
64
|
-
"verbose": true
|
66
|
+
"verbose": true,
|
67
|
+
"testResultsProcessor": "jest-sonar-reporter"
|
68
|
+
},
|
69
|
+
"jestSonar": {
|
70
|
+
"sonar56x": true,
|
71
|
+
"reportPath": "reports",
|
72
|
+
"reportFile": "test-report.xml",
|
73
|
+
"indent": 4
|
65
74
|
},
|
66
75
|
"peerDependencies": {
|
67
76
|
"@sankhyalabs/core": "^5.0.0",
|