@sankhyalabs/sankhyablocks 8.15.0-dev.8 → 8.15.0-dev.81
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-302bbbd4.js → ConfigStorage-942ce74b.js} +70 -7
- package/dist/cjs/{DataFetcher-ba94ed5b.js → DataFetcher-313debd8.js} +18 -8
- package/dist/cjs/IExporterProvider-0c814e9a.js +230 -0
- package/dist/cjs/{ISave-d68ce3cd.js → ISave-e91b70a7.js} +1 -0
- package/dist/cjs/RecordIDUtils-3735135c.js +43 -0
- package/dist/cjs/{SnkFormConfigManager-71c4768e.js → SnkFormConfigManager-52f99b4d.js} +23 -15
- package/dist/cjs/{SnkMessageBuilder-7293d0ad.js → SnkMessageBuilder-4a95fe86.js} +25 -13
- package/dist/cjs/{auth-fetcher-c8467c07.js → auth-fetcher-54f5ff9d.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-14108bec.js → dataunit-fetcher-620b29a1.js} +409 -77
- package/dist/cjs/{form-config-fetcher-df043d3d.js → form-config-fetcher-2dd00e5b.js} +13 -1
- package/dist/cjs/index-f9e81701.js +2 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-ef050a47.js → pesquisa-fetcher-680e198f.js} +12 -13
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_2.cjs.entry.js → snk-actions-button_4.cjs.entry.js} +526 -8
- package/dist/cjs/snk-application.cjs.entry.js +88 -26
- package/dist/cjs/snk-attach.cjs.entry.js +441 -65
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +125 -28
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +6 -2
- package/dist/cjs/snk-data-exporter.cjs.entry.js +207 -83
- package/dist/cjs/snk-data-unit-eca53cfc.js +671 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +11 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +52 -13
- package/dist/cjs/snk-entity-list.cjs.entry.js +5 -3
- package/dist/cjs/snk-filter-bar.cjs.entry.js +65 -8
- package/dist/cjs/snk-filter-detail.cjs.entry.js +4 -1
- package/dist/cjs/snk-filter-item.cjs.entry.js +13 -6
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal.cjs.entry.js +2 -1
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +2 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +47 -27
- package/dist/cjs/snk-form-view.cjs.entry.js +67 -0
- package/dist/cjs/snk-form.cjs.entry.js +60 -8
- package/dist/cjs/snk-grid.cjs.entry.js +200 -122
- package/dist/cjs/{snk-guides-viewer-c8b9374f.js → snk-guides-viewer-5d5f0f25.js} +56 -20
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +10 -10
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +3 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +512 -40
- package/dist/cjs/snk-taskbar.cjs.entry.js +164 -21
- package/dist/cjs/{taskbar-elements-01b85b99.js → taskbar-elements-d9392685.js} +11 -11
- package/dist/collection/collection-manifest.json +8 -8
- package/dist/collection/components/snk-application/__mocks__/snk-application.js +7 -0
- package/dist/collection/components/snk-application/snk-application.js +148 -24
- package/dist/collection/components/snk-attach/snk-attach.js +231 -44
- 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 +118 -0
- package/dist/collection/components/snk-attach/structure/index.js +6 -3
- package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
- package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +1 -0
- package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +1 -0
- package/dist/collection/components/snk-crud/snk-crud.js +359 -19
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +137 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +161 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +11 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +163 -13
- package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +1 -1
- package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js +22 -1
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +90 -0
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +68 -0
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +54 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +1 -0
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +58 -0
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +55 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +44 -50
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +88 -0
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +38 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +501 -216
- package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +24 -0
- 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/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +22 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +31 -6
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +19 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +24 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +175 -3
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
- package/dist/collection/components/snk-form/snk-form.js +126 -5
- package/dist/collection/components/{snk-form → snk-form-config}/SnkFormConfigManager.js +22 -14
- package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.js +50 -30
- package/dist/collection/components/snk-grid/snk-grid.js +360 -115
- package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.js +130 -123
- package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.js +1 -1
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +2 -4
- package/dist/collection/components/snk-simple-crud/regular-buttons.js +3 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +10 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +847 -23
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +4 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +11 -11
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +17 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +218 -20
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +35 -0
- package/dist/collection/lib/configs/ConfigStorage.js +63 -3
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +15 -42
- package/dist/collection/lib/dataUnit/ValueFormatter.js +4 -0
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +33 -0
- package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +1 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +18 -8
- 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/DataUnitDataLoader.js +3 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +4 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +11 -13
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +30 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +87 -24
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +22 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +21 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +6 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +12 -13
- package/dist/collection/lib/index.js +1 -1
- package/dist/collection/lib/message/SnkMessageBuilder.js +25 -32
- package/dist/collection/lib/message/resources/snk-attach.msg.js +13 -0
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -1
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -0
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
- package/dist/collection/lib/utils/CrudUtils.js +13 -1
- package/dist/components/ConfigStorage.js +68 -5
- package/dist/components/DataFetcher.js +18 -8
- package/dist/components/IExporterProvider.js +298 -0
- package/dist/components/ISave.js +42 -0
- package/dist/components/SnkFormConfigManager.js +21 -13
- package/dist/components/SnkMessageBuilder.js +25 -13
- package/dist/components/dataunit-fetcher.js +185 -241
- package/dist/components/form-config-fetcher.js +12 -0
- package/dist/components/index.d.ts +6 -6
- package/dist/components/index2.js +198 -33
- package/dist/{esm/pesquisa-fetcher-dd3ca0a5.js → components/pesquisa-fetcher.js} +13 -14
- package/dist/components/snk-actions-button2.js +4 -10
- package/dist/components/snk-application2.js +86 -20
- package/dist/components/snk-attach2.js +496 -72
- package/dist/components/snk-configurator2.js +1 -1
- package/dist/components/snk-crud.js +133 -23
- package/dist/components/snk-custom-slot-elements.js +7 -3
- package/dist/components/snk-data-exporter2.js +202 -83
- package/dist/components/snk-data-unit2.js +464 -214
- package/dist/components/snk-detail-view2.js +137 -23
- package/dist/components/snk-entity-list.js +5 -3
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +69 -6
- package/dist/components/snk-filter-detail2.js +5 -1
- package/dist/components/snk-filter-item2.js +14 -6
- package/dist/components/snk-filter-modal.js +4 -2
- package/dist/components/snk-filter-multi-select.js +2 -1
- package/dist/components/snk-form-config2.js +46 -26
- package/dist/components/snk-form-view2.js +72 -1
- package/dist/components/snk-form.js +60 -5
- package/dist/components/snk-grid-config2.js +128 -102
- package/dist/components/snk-grid2.js +209 -119
- package/dist/components/snk-personalized-filter-editor.js +3 -1
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-simple-crud2.js +574 -36
- package/dist/components/snk-taskbar2.js +186 -36
- package/dist/components/taskbar-actions-button2.js +4 -2
- package/dist/esm/{ConfigStorage-4151acc8.js → ConfigStorage-86187da3.js} +70 -7
- package/dist/esm/{DataFetcher-aa159c5a.js → DataFetcher-c1baf61d.js} +18 -8
- package/dist/esm/IExporterProvider-c0194569.js +221 -0
- package/dist/esm/{ISave-4412b20c.js → ISave-d8c8bc59.js} +1 -0
- package/dist/esm/RecordIDUtils-87d02110.js +41 -0
- package/dist/esm/{SnkFormConfigManager-5c7d3771.js → SnkFormConfigManager-5b0d69cd.js} +23 -15
- package/dist/esm/{SnkMessageBuilder-ca843d1b.js → SnkMessageBuilder-3a767111.js} +25 -13
- package/dist/esm/{auth-fetcher-c05dc474.js → auth-fetcher-039abba3.js} +1 -1
- package/dist/esm/{dataunit-fetcher-cbec1594.js → dataunit-fetcher-3fbf9d12.js} +392 -70
- package/dist/esm/{form-config-fetcher-36219cd3.js → form-config-fetcher-30fb808f.js} +13 -1
- package/dist/esm/index-a7d3d3f1.js +2 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-fetcher-03c8f919.js +164 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_2.entry.js → snk-actions-button_4.entry.js} +525 -9
- package/dist/esm/snk-application.entry.js +88 -26
- package/dist/esm/snk-attach.entry.js +441 -65
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +125 -28
- package/dist/esm/snk-custom-slot-elements.entry.js +7 -3
- package/dist/esm/snk-data-exporter.entry.js +208 -84
- package/dist/esm/snk-data-unit-49b898f7.js +669 -0
- package/dist/esm/snk-data-unit.entry.js +11 -2
- package/dist/esm/snk-detail-view.entry.js +52 -13
- package/dist/esm/snk-entity-list.entry.js +5 -3
- package/dist/esm/snk-filter-bar.entry.js +65 -8
- package/dist/esm/snk-filter-detail.entry.js +4 -1
- package/dist/esm/snk-filter-item.entry.js +13 -6
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-filter-modal.entry.js +2 -1
- package/dist/esm/snk-filter-multi-select.entry.js +2 -1
- package/dist/esm/snk-form-config.entry.js +48 -28
- package/dist/esm/snk-form-view.entry.js +67 -0
- package/dist/esm/snk-form.entry.js +60 -8
- package/dist/esm/snk-grid.entry.js +200 -122
- package/dist/esm/{snk-guides-viewer-8da24475.js → snk-guides-viewer-ef8c4eec.js} +56 -20
- package/dist/esm/snk-guides-viewer.entry.js +10 -10
- package/dist/esm/snk-personalized-filter-editor.entry.js +3 -1
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +505 -33
- package/dist/esm/snk-taskbar.entry.js +165 -22
- package/dist/esm/{taskbar-elements-d4d0b424.js → taskbar-elements-ad766858.js} +11 -11
- package/dist/sankhyablocks/p-039c7148.entry.js +1 -0
- package/dist/sankhyablocks/p-04821c60.entry.js +1 -0
- package/dist/sankhyablocks/p-060fdb6c.js +1 -0
- package/dist/sankhyablocks/p-14a08904.entry.js +1 -0
- package/dist/sankhyablocks/p-1db45d26.entry.js +1 -0
- package/dist/sankhyablocks/{p-9e7d65a4.js → p-21749402.js} +1 -1
- package/dist/sankhyablocks/p-21a81901.entry.js +1 -0
- package/dist/sankhyablocks/p-294df368.entry.js +1 -0
- package/dist/sankhyablocks/p-2ac8bd11.entry.js +1 -0
- package/dist/sankhyablocks/p-32062be4.entry.js +1 -0
- package/dist/sankhyablocks/p-33718dfc.entry.js +1 -0
- package/dist/sankhyablocks/p-3f1efb97.entry.js +1 -0
- package/dist/sankhyablocks/p-47b60deb.entry.js +1 -0
- package/dist/sankhyablocks/p-4ce73e88.js +1 -0
- package/dist/sankhyablocks/p-54a5d52a.entry.js +1 -0
- package/dist/sankhyablocks/p-58687027.entry.js +1 -0
- package/dist/sankhyablocks/p-5fa1576b.entry.js +11 -0
- package/dist/sankhyablocks/p-61dd89eb.js +1 -0
- package/dist/sankhyablocks/p-672302c3.js +60 -0
- package/dist/sankhyablocks/p-70a4af56.entry.js +1 -0
- package/dist/sankhyablocks/p-7663f597.entry.js +1 -0
- package/dist/sankhyablocks/p-8322ccdb.entry.js +1 -0
- package/dist/sankhyablocks/p-913a9979.js +1 -0
- package/dist/sankhyablocks/p-9863d682.js +1 -0
- package/dist/sankhyablocks/{p-e0fd9555.entry.js → p-a1d72395.entry.js} +1 -1
- package/dist/sankhyablocks/p-a64baa0f.entry.js +1 -0
- package/dist/sankhyablocks/p-af8efd95.js +6 -0
- package/dist/sankhyablocks/p-aff76a53.js +56 -0
- package/dist/sankhyablocks/p-b11aa1e0.entry.js +1 -0
- package/dist/sankhyablocks/p-ba05fdb8.entry.js +1 -0
- package/dist/sankhyablocks/p-babe7665.js +1 -0
- package/dist/sankhyablocks/p-bf2acf72.entry.js +1 -0
- package/dist/sankhyablocks/{p-247a8b36.entry.js → p-d1791da2.entry.js} +1 -1
- package/dist/sankhyablocks/p-d26365ad.js +1 -0
- package/dist/sankhyablocks/{p-9695f78b.js → p-dc7c9047.js} +1 -1
- package/dist/sankhyablocks/p-df5451c7.js +26 -0
- package/dist/sankhyablocks/p-e5c25e0b.entry.js +1 -0
- package/dist/sankhyablocks/p-e8763234.entry.js +1 -0
- package/dist/sankhyablocks/{p-7f3c7b09.entry.js → p-eae7a817.entry.js} +1 -1
- package/dist/sankhyablocks/p-f88cfc3c.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +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 +27 -5
- 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 +34 -10
- 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 +40 -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 +16 -0
- package/dist/types/components/snk-attach/structure/index.d.ts +6 -3
- package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +4 -0
- package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +4 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +57 -1
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +24 -1
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +28 -3
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +30 -1
- package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +6 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +13 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +11 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +24 -4
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +5 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +3 -1
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +77 -0
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +3 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +61 -2
- package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +3 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +7 -3
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +5 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +31 -1
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +3 -1
- package/dist/types/components/snk-form/snk-form.d.ts +20 -1
- package/dist/types/components/{snk-form → snk-form-config}/SnkFormConfigManager.d.ts +2 -1
- package/dist/types/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.d.ts +5 -3
- package/dist/types/components/snk-grid/snk-grid.d.ts +69 -7
- package/dist/types/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.d.ts +11 -6
- package/dist/types/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.d.ts +1 -1
- package/dist/types/components/snk-simple-crud/regular-buttons.d.ts +3 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +142 -6
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +38 -1
- package/dist/types/components.d.ts +536 -18
- package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +11 -0
- package/dist/types/lib/configs/ConfigStorage.d.ts +21 -1
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +2 -3
- package/dist/types/lib/dataUnit/ValueFormatter.d.ts +2 -0
- package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +4 -0
- package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +3 -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/DataUnitDataLoader.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- 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/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +10 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +7 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +7 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +20 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +2 -0
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -0
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/lib/utils/CrudUtils.d.ts +3 -0
- package/package.json +15 -6
- package/dist/cjs/PreloadManager-84466da6.js +0 -224
- package/dist/cjs/SnkMultiSelectionListDataSource-ba5838c2.js +0 -49
- package/dist/cjs/snk-data-unit-1bc69073.js +0 -462
- package/dist/cjs/snk-grid-config.cjs.entry.js +0 -483
- package/dist/cjs/snk-select-box.cjs.entry.js +0 -25
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +0 -34
- package/dist/components/field-search.js +0 -121
- package/dist/components/index3.js +0 -199
- package/dist/esm/PreloadManager-c1c2f2b4.js +0 -222
- package/dist/esm/SnkMultiSelectionListDataSource-44494b0e.js +0 -43
- package/dist/esm/snk-data-unit-6208ebf0.js +0 -460
- package/dist/esm/snk-grid-config.entry.js +0 -479
- package/dist/esm/snk-select-box.entry.js +0 -21
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +0 -1
- package/dist/sankhyablocks/p-0874adb5.entry.js +0 -1
- package/dist/sankhyablocks/p-094c30cb.js +0 -1
- package/dist/sankhyablocks/p-0d7863ed.js +0 -26
- package/dist/sankhyablocks/p-1d75d9f9.entry.js +0 -1
- package/dist/sankhyablocks/p-20726710.entry.js +0 -1
- package/dist/sankhyablocks/p-25927311.entry.js +0 -1
- package/dist/sankhyablocks/p-32f0935f.js +0 -1
- package/dist/sankhyablocks/p-374d03f6.js +0 -1
- package/dist/sankhyablocks/p-3891ae6f.js +0 -60
- package/dist/sankhyablocks/p-4775a293.entry.js +0 -1
- package/dist/sankhyablocks/p-573a07c5.js +0 -1
- package/dist/sankhyablocks/p-5f74c859.entry.js +0 -1
- package/dist/sankhyablocks/p-69754d94.entry.js +0 -1
- package/dist/sankhyablocks/p-6977a26c.entry.js +0 -1
- package/dist/sankhyablocks/p-69efa80d.entry.js +0 -1
- package/dist/sankhyablocks/p-761ed32f.entry.js +0 -1
- package/dist/sankhyablocks/p-7d8d7fe9.entry.js +0 -1
- package/dist/sankhyablocks/p-8d70b5d5.entry.js +0 -1
- package/dist/sankhyablocks/p-98674137.entry.js +0 -1
- package/dist/sankhyablocks/p-a9e4bb55.entry.js +0 -1
- package/dist/sankhyablocks/p-a9e5b094.entry.js +0 -1
- package/dist/sankhyablocks/p-aa0ae6bc.entry.js +0 -1
- package/dist/sankhyablocks/p-aa95fb2c.js +0 -56
- package/dist/sankhyablocks/p-b05ab13d.entry.js +0 -1
- package/dist/sankhyablocks/p-ba3d3fa9.entry.js +0 -11
- package/dist/sankhyablocks/p-c22c1d8e.js +0 -1
- package/dist/sankhyablocks/p-c4d19840.entry.js +0 -1
- package/dist/sankhyablocks/p-c6e477ff.js +0 -1
- package/dist/sankhyablocks/p-c758265f.entry.js +0 -1
- package/dist/sankhyablocks/p-cb7419e0.entry.js +0 -1
- package/dist/sankhyablocks/p-d4f9ee17.entry.js +0 -1
- package/dist/sankhyablocks/p-d6317851.entry.js +0 -1
- package/dist/sankhyablocks/p-d81f20c4.entry.js +0 -1
- package/dist/sankhyablocks/p-d9bb09b3.js +0 -6
- package/dist/sankhyablocks/p-e6380c60.js +0 -1
- package/dist/sankhyablocks/p-ff6064e7.js +0 -1
- package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +0 -15
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +0 -3
- /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/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.js +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.css +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.css +0 -0
- /package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.js +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.d.ts +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
package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Action } from '@sankhyalabs/core';
|
2
2
|
import { Host, forceUpdate, h } from '@stencil/core';
|
3
|
-
import { SnkFormConfigManager } from '../../../snk-form/SnkFormConfigManager';
|
3
|
+
import { SnkFormConfigManager } from '../../../snk-form-config/SnkFormConfigManager';
|
4
4
|
import { buildFormMetadata } from "@sankhyalabs/ezui/dist/collection/utils/form";
|
5
5
|
import { PresentationMode } from '../../../../lib';
|
6
6
|
import { TaskbarElement } from '../../../snk-taskbar/elements/taskbar-elements';
|
@@ -26,6 +26,8 @@ export class SnkDetailView {
|
|
26
26
|
this.branchGuide = undefined;
|
27
27
|
this.canEdit = true;
|
28
28
|
this.taskbarCustomContainerId = undefined;
|
29
|
+
this.customEditors = undefined;
|
30
|
+
this.customRenders = undefined;
|
29
31
|
}
|
30
32
|
observeDataUnit(newDataUnit, oldDataUnit) {
|
31
33
|
newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
@@ -93,10 +95,38 @@ export class SnkDetailView {
|
|
93
95
|
this._snkGrid.scrollIntoView({ behavior: "smooth", block: "start" });
|
94
96
|
}
|
95
97
|
}
|
98
|
+
/**
|
99
|
+
* Registra um editor customizado para campos da grade e formulário.
|
100
|
+
*/
|
101
|
+
async addCustomEditor(fieldName, customEditor) {
|
102
|
+
var _a;
|
103
|
+
const detailContext = this.normalizeBranchGuideId((_a = this.branchGuide) === null || _a === void 0 ? void 0 : _a.id);
|
104
|
+
this._snkGrid.addCustomEditor(fieldName, customEditor, detailContext);
|
105
|
+
this._snkFormView.addCustomEditor(fieldName, customEditor, detailContext);
|
106
|
+
}
|
107
|
+
async observerPropsCustomEditor(newValue) {
|
108
|
+
for (const fieldName in newValue) {
|
109
|
+
await this.addCustomEditor(fieldName, newValue[fieldName]);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
/**
|
113
|
+
* Registra um render customizado para colunas da grid.
|
114
|
+
*/
|
115
|
+
async addGridCustomRender(fieldName, customRender) {
|
116
|
+
var _a;
|
117
|
+
const detailContext = this.normalizeBranchGuideId((_a = this.branchGuide) === null || _a === void 0 ? void 0 : _a.id);
|
118
|
+
await this._snkGrid.addGridCustomRender(fieldName, customRender, detailContext);
|
119
|
+
}
|
96
120
|
onContentCardChanged(evt) {
|
97
121
|
SnkGuidesViewer.updateContentCard(evt.detail.formName, evt.detail.cardConfig, evt.detail.propertyChanged, this.formConfigManager).then(() => forceUpdate(this));
|
98
122
|
evt.stopPropagation();
|
99
123
|
}
|
124
|
+
async observeCustomRenders(newValue) {
|
125
|
+
for (const field in newValue) {
|
126
|
+
const customRender = newValue[field];
|
127
|
+
await this.addGridCustomRender(field, customRender);
|
128
|
+
}
|
129
|
+
}
|
100
130
|
updateLabel() {
|
101
131
|
const guideItemPathSize = this.guideItemPath ? this.guideItemPath.length : 0;
|
102
132
|
if (guideItemPathSize > 0) {
|
@@ -199,6 +229,10 @@ export class SnkDetailView {
|
|
199
229
|
this.messagesBuilder = new SnkMessageBuilder(this.entityName);
|
200
230
|
}
|
201
231
|
}
|
232
|
+
async componentDidLoad() {
|
233
|
+
await this.observerPropsCustomEditor(this.customEditors);
|
234
|
+
await this.observeCustomRenders(this.customRenders);
|
235
|
+
}
|
202
236
|
async dataUnitActionHandler(action) {
|
203
237
|
if (action.type === Action.FIELD_INVALIDATED) {
|
204
238
|
this.addErrorBadgeToBranchGuide();
|
@@ -208,6 +242,9 @@ export class SnkDetailView {
|
|
208
242
|
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
209
243
|
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
|
210
244
|
}
|
245
|
+
normalizeBranchGuideId(id) {
|
246
|
+
return id === null || id === void 0 ? void 0 : id.replace(/child\[(.*?)\]/g, '$1').replace(/::/g, '>');
|
247
|
+
}
|
211
248
|
render() {
|
212
249
|
this.updateLabel();
|
213
250
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
@@ -236,7 +273,7 @@ export class SnkDetailView {
|
|
236
273
|
"references": {
|
237
274
|
"SnkFormConfigManager": {
|
238
275
|
"location": "import",
|
239
|
-
"path": "../../../snk-form/SnkFormConfigManager"
|
276
|
+
"path": "../../../snk-form-config/SnkFormConfigManager"
|
240
277
|
}
|
241
278
|
}
|
242
279
|
},
|
@@ -469,6 +506,46 @@ export class SnkDetailView {
|
|
469
506
|
},
|
470
507
|
"attribute": "taskbar-custom-container-id",
|
471
508
|
"reflect": false
|
509
|
+
},
|
510
|
+
"customEditors": {
|
511
|
+
"type": "unknown",
|
512
|
+
"mutable": false,
|
513
|
+
"complexType": {
|
514
|
+
"original": "PropsCustomEditor",
|
515
|
+
"resolved": "PropsCustomEditor",
|
516
|
+
"references": {
|
517
|
+
"PropsCustomEditor": {
|
518
|
+
"location": "import",
|
519
|
+
"path": "../../interfaces/PropsCustomEditor"
|
520
|
+
}
|
521
|
+
}
|
522
|
+
},
|
523
|
+
"required": false,
|
524
|
+
"optional": false,
|
525
|
+
"docs": {
|
526
|
+
"tags": [],
|
527
|
+
"text": "Registra um editor customizado para campos da grade e formul\u00E1rio."
|
528
|
+
}
|
529
|
+
},
|
530
|
+
"customRenders": {
|
531
|
+
"type": "unknown",
|
532
|
+
"mutable": false,
|
533
|
+
"complexType": {
|
534
|
+
"original": "PropsCustomRender",
|
535
|
+
"resolved": "PropsCustomRender",
|
536
|
+
"references": {
|
537
|
+
"PropsCustomRender": {
|
538
|
+
"location": "import",
|
539
|
+
"path": "../../interfaces/PropsCustomRender"
|
540
|
+
}
|
541
|
+
}
|
542
|
+
},
|
543
|
+
"required": false,
|
544
|
+
"optional": false,
|
545
|
+
"docs": {
|
546
|
+
"tags": [],
|
547
|
+
"text": "Render customizados da grade."
|
548
|
+
}
|
472
549
|
}
|
473
550
|
};
|
474
551
|
}
|
@@ -601,6 +678,58 @@ export class SnkDetailView {
|
|
601
678
|
"text": "",
|
602
679
|
"tags": []
|
603
680
|
}
|
681
|
+
},
|
682
|
+
"addCustomEditor": {
|
683
|
+
"complexType": {
|
684
|
+
"signature": "(fieldName: string, customEditor: ICustomEditor) => Promise<void>",
|
685
|
+
"parameters": [{
|
686
|
+
"tags": [],
|
687
|
+
"text": ""
|
688
|
+
}, {
|
689
|
+
"tags": [],
|
690
|
+
"text": ""
|
691
|
+
}],
|
692
|
+
"references": {
|
693
|
+
"Promise": {
|
694
|
+
"location": "global"
|
695
|
+
},
|
696
|
+
"ICustomEditor": {
|
697
|
+
"location": "import",
|
698
|
+
"path": "@sankhyalabs/ezui/dist/types/utils"
|
699
|
+
}
|
700
|
+
},
|
701
|
+
"return": "Promise<void>"
|
702
|
+
},
|
703
|
+
"docs": {
|
704
|
+
"text": "Registra um editor customizado para campos da grade e formul\u00E1rio.",
|
705
|
+
"tags": []
|
706
|
+
}
|
707
|
+
},
|
708
|
+
"addGridCustomRender": {
|
709
|
+
"complexType": {
|
710
|
+
"signature": "(fieldName: string, customRender: ICustomRender) => Promise<void>",
|
711
|
+
"parameters": [{
|
712
|
+
"tags": [],
|
713
|
+
"text": ""
|
714
|
+
}, {
|
715
|
+
"tags": [],
|
716
|
+
"text": ""
|
717
|
+
}],
|
718
|
+
"references": {
|
719
|
+
"Promise": {
|
720
|
+
"location": "global"
|
721
|
+
},
|
722
|
+
"ICustomRender": {
|
723
|
+
"location": "import",
|
724
|
+
"path": "@sankhyalabs/ezui/dist/types/utils"
|
725
|
+
}
|
726
|
+
},
|
727
|
+
"return": "Promise<void>"
|
728
|
+
},
|
729
|
+
"docs": {
|
730
|
+
"text": "Registra um render customizado para colunas da grid.",
|
731
|
+
"tags": []
|
732
|
+
}
|
604
733
|
}
|
605
734
|
};
|
606
735
|
}
|
@@ -611,6 +740,12 @@ export class SnkDetailView {
|
|
611
740
|
}, {
|
612
741
|
"propName": "dataState",
|
613
742
|
"methodName": "observerDataState"
|
743
|
+
}, {
|
744
|
+
"propName": "customEditors",
|
745
|
+
"methodName": "observerPropsCustomEditor"
|
746
|
+
}, {
|
747
|
+
"propName": "customRenders",
|
748
|
+
"methodName": "observeCustomRenders"
|
614
749
|
}];
|
615
750
|
}
|
616
751
|
static get listeners() {
|
@@ -3,6 +3,8 @@ import { Host, h } from "@stencil/core";
|
|
3
3
|
import { DataBinder } from "@sankhyalabs/ezui/dist/collection/utils/form";
|
4
4
|
export class SnkFormView {
|
5
5
|
constructor() {
|
6
|
+
this._customEditors = new Map();
|
7
|
+
this._fieldProps = new Map();
|
6
8
|
this.levelPath = undefined;
|
7
9
|
this.label = undefined;
|
8
10
|
this.name = undefined;
|
@@ -16,12 +18,47 @@ export class SnkFormView {
|
|
16
18
|
this.canFix = true;
|
17
19
|
this.recordsValidator = undefined;
|
18
20
|
this.fieldToFocus = undefined;
|
21
|
+
this.customEditors = undefined;
|
22
|
+
this.fieldsProps = undefined;
|
19
23
|
}
|
20
24
|
async showUp() {
|
21
25
|
if (this._formView) {
|
22
26
|
this._formView.showUp();
|
23
27
|
}
|
24
28
|
}
|
29
|
+
/**
|
30
|
+
* Registra um editor customizado para campos da grade e formulário
|
31
|
+
*/
|
32
|
+
async addCustomEditor(fieldName, customEditor, detailContext) {
|
33
|
+
if (this._formView) {
|
34
|
+
this._formView.addCustomEditor(fieldName, customEditor, detailContext);
|
35
|
+
return;
|
36
|
+
}
|
37
|
+
const newCustomEditors = new Map(this._customEditors);
|
38
|
+
newCustomEditors.set(fieldName, { customEditor, detailContext });
|
39
|
+
this._customEditors = newCustomEditors;
|
40
|
+
}
|
41
|
+
observePropsCustomEditor(newValue) {
|
42
|
+
for (const fieldName in newValue) {
|
43
|
+
this.addCustomEditor(fieldName, newValue[fieldName]);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
48
|
+
*/
|
49
|
+
async setFieldProp(fieldName, propName, value) {
|
50
|
+
const props = this._fieldProps.get(fieldName) || [];
|
51
|
+
this._fieldProps.set(fieldName, [...props, { propName, value }]);
|
52
|
+
}
|
53
|
+
async observeFieldsProps(newValue) {
|
54
|
+
for (const field in newValue) {
|
55
|
+
const fieldProps = newValue[field];
|
56
|
+
const propNames = Object.keys(fieldProps);
|
57
|
+
for (const propName of propNames) {
|
58
|
+
await this.setFieldProp(field, propName, fieldProps[propName]);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
25
62
|
changeFix() {
|
26
63
|
this.fixed = !this.fixed;
|
27
64
|
this.emitEvent("fixed");
|
@@ -80,7 +117,13 @@ export class SnkFormView {
|
|
80
117
|
this._dataBinder.onDisconnectedCallback();
|
81
118
|
}
|
82
119
|
}
|
120
|
+
componentDidLoad() {
|
121
|
+
this.observePropsCustomEditor(this.customEditors);
|
122
|
+
this.observeFieldsProps(this.fieldsProps);
|
123
|
+
}
|
83
124
|
componentDidRender() {
|
125
|
+
this.setCustomEditors();
|
126
|
+
this.setFieldProps();
|
84
127
|
if (this.fieldToFocus == undefined) {
|
85
128
|
return;
|
86
129
|
}
|
@@ -92,6 +135,26 @@ export class SnkFormView {
|
|
92
135
|
this.snkRequestClearFieldToFocus.emit();
|
93
136
|
});
|
94
137
|
}
|
138
|
+
setCustomEditors() {
|
139
|
+
if (!this._formView) {
|
140
|
+
return;
|
141
|
+
}
|
142
|
+
for (const [fieldName, customEditorProps] of this._customEditors) {
|
143
|
+
this._formView.addCustomEditor(fieldName, customEditorProps.customEditor, customEditorProps.detailContext);
|
144
|
+
this._customEditors.delete(fieldName);
|
145
|
+
}
|
146
|
+
}
|
147
|
+
setFieldProps() {
|
148
|
+
if (!this._formView) {
|
149
|
+
return;
|
150
|
+
}
|
151
|
+
for (const [fieldName, propsToChange] of this._fieldProps) {
|
152
|
+
propsToChange.forEach(prop => {
|
153
|
+
this._formView.setFieldProp(fieldName, prop.propName, prop.value);
|
154
|
+
this._fieldProps.delete(fieldName);
|
155
|
+
});
|
156
|
+
}
|
157
|
+
}
|
95
158
|
render() {
|
96
159
|
return (h(Host, { class: "ez-box__container" }, h("div", { class: "summary-header ez-flex ez-size-width--full" }, h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
|
97
160
|
h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.fixed ? "un-pin" : "push-pin", "data-element-id": ElementIDUtils.getInternalIDInfo("toggleFixed_ezFormCard"), onClick: () => this.changeFix(), title: this.fixed ? "Desafixar" : "Fixar" }), this.canExpand &&
|
@@ -361,6 +424,41 @@ export class SnkFormView {
|
|
361
424
|
},
|
362
425
|
"attribute": "field-to-focus",
|
363
426
|
"reflect": false
|
427
|
+
},
|
428
|
+
"customEditors": {
|
429
|
+
"type": "unknown",
|
430
|
+
"mutable": false,
|
431
|
+
"complexType": {
|
432
|
+
"original": "PropsCustomEditor",
|
433
|
+
"resolved": "PropsCustomEditor",
|
434
|
+
"references": {
|
435
|
+
"PropsCustomEditor": {
|
436
|
+
"location": "import",
|
437
|
+
"path": "../interfaces/PropsCustomEditor"
|
438
|
+
}
|
439
|
+
}
|
440
|
+
},
|
441
|
+
"required": false,
|
442
|
+
"optional": false,
|
443
|
+
"docs": {
|
444
|
+
"tags": [],
|
445
|
+
"text": "Registra um editor customizado para campos da grade e formul\u00E1rio."
|
446
|
+
}
|
447
|
+
},
|
448
|
+
"fieldsProps": {
|
449
|
+
"type": "unknown",
|
450
|
+
"mutable": false,
|
451
|
+
"complexType": {
|
452
|
+
"original": "object",
|
453
|
+
"resolved": "object",
|
454
|
+
"references": {}
|
455
|
+
},
|
456
|
+
"required": false,
|
457
|
+
"optional": false,
|
458
|
+
"docs": {
|
459
|
+
"tags": [],
|
460
|
+
"text": "Lista de propriedades que ser\u00E3o alteradas/adicionadas por coluna."
|
461
|
+
}
|
364
462
|
}
|
365
463
|
};
|
366
464
|
}
|
@@ -441,7 +539,70 @@ export class SnkFormView {
|
|
441
539
|
"text": "",
|
442
540
|
"tags": []
|
443
541
|
}
|
542
|
+
},
|
543
|
+
"addCustomEditor": {
|
544
|
+
"complexType": {
|
545
|
+
"signature": "(fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>",
|
546
|
+
"parameters": [{
|
547
|
+
"tags": [],
|
548
|
+
"text": ""
|
549
|
+
}, {
|
550
|
+
"tags": [],
|
551
|
+
"text": ""
|
552
|
+
}, {
|
553
|
+
"tags": [],
|
554
|
+
"text": ""
|
555
|
+
}],
|
556
|
+
"references": {
|
557
|
+
"Promise": {
|
558
|
+
"location": "global"
|
559
|
+
},
|
560
|
+
"ICustomEditor": {
|
561
|
+
"location": "import",
|
562
|
+
"path": "@sankhyalabs/ezui/dist/types/utils/customEditor/interfaces/ICustomEditor"
|
563
|
+
}
|
564
|
+
},
|
565
|
+
"return": "Promise<void>"
|
566
|
+
},
|
567
|
+
"docs": {
|
568
|
+
"text": "Registra um editor customizado para campos da grade e formul\u00E1rio",
|
569
|
+
"tags": []
|
570
|
+
}
|
571
|
+
},
|
572
|
+
"setFieldProp": {
|
573
|
+
"complexType": {
|
574
|
+
"signature": "(fieldName: string, propName: string, value: any) => Promise<void>",
|
575
|
+
"parameters": [{
|
576
|
+
"tags": [],
|
577
|
+
"text": ""
|
578
|
+
}, {
|
579
|
+
"tags": [],
|
580
|
+
"text": ""
|
581
|
+
}, {
|
582
|
+
"tags": [],
|
583
|
+
"text": ""
|
584
|
+
}],
|
585
|
+
"references": {
|
586
|
+
"Promise": {
|
587
|
+
"location": "global"
|
588
|
+
}
|
589
|
+
},
|
590
|
+
"return": "Promise<void>"
|
591
|
+
},
|
592
|
+
"docs": {
|
593
|
+
"text": "Altera/adiciona uma propriedade nos metadados do campo.",
|
594
|
+
"tags": []
|
595
|
+
}
|
444
596
|
}
|
445
597
|
};
|
446
598
|
}
|
599
|
+
static get watchers() {
|
600
|
+
return [{
|
601
|
+
"propName": "customEditors",
|
602
|
+
"methodName": "observePropsCustomEditor"
|
603
|
+
}, {
|
604
|
+
"propName": "fieldsProps",
|
605
|
+
"methodName": "observeFieldsProps"
|
606
|
+
}];
|
607
|
+
}
|
447
608
|
}
|
@@ -25,7 +25,7 @@ snk-form-view {
|
|
25
25
|
position: relative;
|
26
26
|
padding-left: 0px;
|
27
27
|
padding-top: 0px;
|
28
|
-
|
28
|
+
|
29
29
|
/*public*/
|
30
30
|
padding-right: var(--snk-guides-viewer--space-large);
|
31
31
|
padding-bottom: var(--snk-guides-viewer--space-large);
|
@@ -57,6 +57,15 @@ snk-form-view {
|
|
57
57
|
margin-bottom: var(--snk-guides-viewer--space-medium);
|
58
58
|
}
|
59
59
|
|
60
|
+
.snk-guides-viewer__header-breadcrumb{
|
61
|
+
width: 25%;
|
62
|
+
display: flex;
|
63
|
+
}
|
64
|
+
|
65
|
+
.snk-guides-viewer__header-taskbar{
|
66
|
+
width: 75%;
|
67
|
+
}
|
68
|
+
|
60
69
|
.snk-guides-viewer__container {
|
61
70
|
/*private*/
|
62
71
|
display: grid;
|
@@ -88,4 +97,4 @@ snk-form-view {
|
|
88
97
|
min-height: 100%;
|
89
98
|
align-items: flex-start;
|
90
99
|
align-content: flex-start;
|
91
|
-
}
|
100
|
+
}
|