@sankhyalabs/sankhyablocks 8.16.0-ms.10 → 8.16.0-ms.12
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/{ClientSideExporterProvider-fe52f7cf.js → ClientSideExporterProvider-0ce2bcd9.js} +23 -28
- package/dist/cjs/{ConfigStorage-6b633b10.js → ConfigStorage-48ba265b.js} +47 -19
- package/dist/cjs/{DataFetcher-875371e9.js → DataFetcher-1afdb18e.js} +14 -2
- package/dist/cjs/FormConfigHelper-c664dbae.js +260 -0
- package/dist/cjs/{pesquisa-fetcher-30cab386.js → ISave-c76e2c51.js} +35 -3
- package/dist/cjs/{PersonalizedFilterUtils-0184ffbb.js → PersonalizedFilterUtils-7259cf65.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-d680be08.js → SnkFormConfigManager-aa4631bd.js} +4 -5
- package/dist/cjs/{SnkMessageBuilder-bae64d0d.js → SnkMessageBuilder-e3b7850b.js} +63 -30
- package/dist/cjs/{auth-fetcher-24ba4135.js → auth-fetcher-1687ac0a.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +79 -0
- package/dist/cjs/configs-button.cjs.entry.js +61 -0
- package/dist/cjs/{constants-241934b3.js → constants-6d82e405.js} +9 -38
- package/dist/cjs/{dataunit-fetcher-b95768e8.js → dataunit-fetcher-a723f0dc.js} +12 -8
- package/dist/cjs/default-filters-a09bf82b.js +8 -0
- package/dist/cjs/field-config_2.cjs.entry.js +324 -0
- package/dist/cjs/fields-layout.cjs.entry.js +341 -0
- package/dist/cjs/fields-selector.cjs.entry.js +74 -0
- package/dist/cjs/{filter-type.enum-b14ce507.js → filter-type.enum-2bb46d2a.js} +1 -0
- package/dist/cjs/{form-config-fetcher-e0a512c3.js → form-config-fetcher-40d3f752.js} +15 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +164 -0
- package/dist/cjs/{index-ab1cfb44.js → index-0ad2baeb.js} +1 -1
- package/dist/cjs/{index-f9e81701.js → index-1cf293c1.js} +34 -12
- package/dist/cjs/{index-c5771aba.js → index-62760a9c.js} +5 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +7 -8
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/{snk-actions-button_5.cjs.entry.js → snk-actions-button_8.cjs.entry.js} +132 -10
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +185 -24
- package/dist/cjs/snk-attach.cjs.entry.js +9 -10
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +10 -3
- package/dist/cjs/snk-crud.cjs.entry.js +48 -76
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +8 -9
- package/dist/cjs/{snk-data-unit-33937ffe.js → snk-data-unit-3684c96e.js} +227 -13
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
- package/dist/cjs/snk-default-filter.cjs.entry.js +77 -0
- package/dist/cjs/snk-detail-view.cjs.entry.js +68 -16
- package/dist/cjs/snk-entity-list.cjs.entry.js +3 -8
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +10 -8
- package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +5 -4
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +85 -31
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -5
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-search.cjs.entry.js +19 -6
- package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +20 -8
- package/dist/cjs/snk-form_2.cjs.entry.js +433 -0
- package/dist/cjs/snk-grid.cjs.entry.js +52 -39
- package/dist/cjs/{snk-guides-viewer-b6002ea7.js → snk-guides-viewer-edc0a00a.js} +139 -73
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +13 -13
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +55 -20
- package/dist/cjs/snk-pesquisa.cjs.entry.js +14 -15
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +148 -114
- package/dist/cjs/snk-taskbar.cjs.entry.js +10 -5
- package/dist/cjs/sortable.esm-9a110bb7.js +2668 -0
- package/dist/cjs/{taskbar-elements-ebddaef4.js → taskbar-elements-3b74cd21.js} +13 -2
- package/dist/cjs/{field-search-68e34bf4.js → taskbar-processor-2fba34a8.js} +0 -35
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +11 -14
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +5 -2
- package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js +107 -0
- package/dist/collection/components/snk-application/snk-application.js +133 -13
- package/dist/collection/components/snk-configurator/snk-configurator.js +26 -1
- package/dist/collection/components/snk-crud/snk-crud.js +76 -67
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +10 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +82 -4
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +54 -7
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +152 -82
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +15 -19
- package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js +128 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +107 -12
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +2 -7
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +18 -5
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +80 -12
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.css +34 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.js +142 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +24 -15
- package/dist/collection/components/snk-filter-bar/types/default-filters.js +6 -0
- package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +1 -0
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +4 -4
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +245 -0
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +4 -5
- package/dist/collection/components/snk-form-config/config-header/config-header.css +18 -0
- package/dist/collection/components/snk-form-config/config-header/config-header.js +236 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.css +41 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.js +170 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +21 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +408 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.css +108 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.js +206 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +133 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +578 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +38 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +146 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +132 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +317 -0
- package/dist/collection/components/snk-form-config/snk-form-config.css +16 -229
- package/dist/collection/components/snk-form-config/snk-form-config.js +288 -980
- package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +2 -2
- package/dist/collection/components/snk-grid/snk-grid.js +93 -42
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +2 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css +3 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +73 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css +78 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +57 -0
- package/dist/collection/components/snk-personalized-filter/interfaces/index.js +5 -0
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +67 -13
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +3 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +20 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +22 -3
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js +20 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +177 -104
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +13 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +11 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.css +0 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +220 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +30 -4
- package/dist/collection/lib/configs/ConfigStorage.js +16 -8
- package/dist/collection/lib/configs/LayoutFormConfig.js +25 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +14 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +5 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +6 -5
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +14 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +29 -9
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +26 -2
- package/dist/collection/lib/message/SnkMessageBuilder.js +1 -0
- package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +28 -23
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +6 -0
- package/dist/collection/lib/message/resources/snk-form.msg.js +16 -2
- package/dist/collection/lib/message/resources/snk-grid.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +6 -1
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +2 -1
- package/dist/collection/lib/message/resources/snk-taskbar.msg.js +1 -0
- package/dist/collection/lib/utils/constants.js +8 -1
- package/dist/components/ConfigStorage.js +45 -17
- package/dist/components/ContinuousInsertUtils.js +19 -54
- package/dist/components/DataFetcher.js +14 -2
- package/dist/components/ISave.js +26 -2
- package/dist/components/PersonalizedFilterUtils.js +6 -1
- package/dist/components/SnkFormConfigManager.js +2 -3
- package/dist/components/SnkMessageBuilder.js +63 -30
- package/dist/components/{snk-tab-config.d.ts → config-header.d.ts} +4 -4
- package/dist/components/config-header.js +6 -0
- package/dist/components/config-header2.js +103 -0
- package/dist/components/configs-button.d.ts +11 -0
- package/dist/components/configs-button.js +6 -0
- package/dist/components/configs-button2.js +76 -0
- package/dist/components/constants.js +9 -34
- package/dist/components/dataunit-fetcher.js +11 -7
- package/dist/components/field-config.d.ts +11 -0
- package/dist/components/field-config.js +6 -0
- package/dist/components/field-config2.js +525 -0
- package/dist/components/field-item.d.ts +11 -0
- package/dist/components/field-item.js +6 -0
- package/dist/components/field-item2.js +93 -0
- package/dist/components/fields-layout.d.ts +11 -0
- package/dist/components/fields-layout.js +6 -0
- package/dist/components/fields-layout2.js +370 -0
- package/dist/components/{snk-field-config.d.ts → fields-selector.d.ts} +4 -4
- package/dist/components/fields-selector.js +6 -0
- package/dist/components/fields-selector2.js +98 -0
- package/dist/components/form-config-fetcher.js +14 -0
- package/dist/components/guides-configurator.d.ts +11 -0
- package/dist/components/guides-configurator.js +6 -0
- package/dist/components/guides-configurator2.js +182 -0
- package/dist/components/index.d.ts +11 -3
- package/dist/components/index.js +11 -3
- package/dist/components/snk-application2.js +182 -16
- package/dist/components/snk-attach2.js +42 -24
- package/dist/components/snk-configurator2.js +22 -2
- package/dist/components/snk-crud.js +145 -128
- package/dist/components/snk-data-unit2.js +225 -11
- package/dist/components/{snk-config-options.d.ts → snk-default-filter.d.ts} +4 -4
- package/dist/components/snk-default-filter.js +6 -0
- package/dist/components/snk-default-filter2.js +97 -0
- package/dist/components/snk-detail-view2.js +331 -152
- package/dist/components/snk-entity-list.js +2 -7
- package/dist/components/snk-expression-group2.js +4 -2
- package/dist/components/snk-expression-item2.js +5 -3
- package/dist/components/snk-filter-assistent-mode2.js +4 -2
- package/dist/components/snk-filter-bar2.js +29 -20
- package/dist/components/snk-filter-modal-item2.js +1 -0
- package/dist/components/snk-filter-modal.js +59 -8
- package/dist/components/snk-filter-search.js +18 -5
- package/dist/components/snk-form-config2.js +253 -953
- package/dist/components/snk-form-view2.js +22 -8
- package/dist/components/snk-form.js +33 -9
- package/dist/components/snk-grid-config2.js +2 -0
- package/dist/components/snk-grid2.js +85 -63
- package/dist/components/snk-layout-form-config.d.ts +11 -0
- package/dist/components/snk-layout-form-config.js +6 -0
- package/dist/components/snk-layout-form-config2.js +73 -0
- package/dist/components/snk-personalized-filter2.js +50 -14
- package/dist/components/snk-simple-crud2.js +180 -124
- package/dist/components/snk-taskbar2.js +33 -10
- package/dist/components/snk-view-representation.d.ts +11 -0
- package/dist/components/snk-view-representation.js +6 -0
- package/dist/components/snk-view-representation2.js +41 -0
- package/dist/components/sortable.esm.js +2666 -0
- package/dist/components/taskbar-actions-button2.js +2 -2
- package/dist/components/taskbar-split-button.d.ts +11 -0
- package/dist/components/taskbar-split-button.js +6 -0
- package/dist/components/taskbar-split-button2.js +87 -0
- package/dist/esm/{ClientSideExporterProvider-bd24a4b3.js → ClientSideExporterProvider-3ed744fd.js} +23 -28
- package/dist/esm/{ConfigStorage-e5c1f4c0.js → ConfigStorage-79b9e180.js} +47 -19
- package/dist/esm/{DataFetcher-ecf5f903.js → DataFetcher-88e56266.js} +14 -2
- package/dist/esm/FormConfigHelper-49fe72ca.js +248 -0
- package/dist/esm/{pesquisa-fetcher-e26c3295.js → ISave-5efafc97.js} +36 -4
- package/dist/esm/{PersonalizedFilterUtils-e2b38ef7.js → PersonalizedFilterUtils-2db38ff2.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-1efd102b.js → SnkFormConfigManager-b4b93298.js} +4 -5
- package/dist/esm/{SnkMessageBuilder-6fff4a4c.js → SnkMessageBuilder-9c269caf.js} +63 -30
- package/dist/esm/{auth-fetcher-9987c66e.js → auth-fetcher-3510520e.js} +1 -1
- package/dist/esm/config-header.entry.js +75 -0
- package/dist/esm/configs-button.entry.js +57 -0
- package/dist/esm/{constants-75abb876.js → constants-7b422de0.js} +9 -34
- package/dist/esm/{dataunit-fetcher-ed6e65ef.js → dataunit-fetcher-0e025732.js} +12 -8
- package/dist/esm/default-filters-50105e43.js +8 -0
- package/dist/esm/field-config_2.entry.js +319 -0
- package/dist/esm/fields-layout.entry.js +337 -0
- package/dist/esm/fields-selector.entry.js +70 -0
- package/dist/esm/{filter-type.enum-a80c1b6b.js → filter-type.enum-f6a8fe23.js} +1 -0
- package/dist/esm/{form-config-fetcher-34becd23.js → form-config-fetcher-fa208a6c.js} +15 -1
- package/dist/esm/guides-configurator.entry.js +160 -0
- package/dist/esm/{index-a7d3d3f1.js → index-479e1293.js} +34 -12
- package/dist/esm/{index-ae591a44.js → index-8acbae97.js} +6 -1
- package/dist/esm/{index-c57e49af.js → index-b72af127.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pesquisa-grid_2.entry.js +6 -7
- package/dist/esm/sankhyablocks.js +3 -3
- package/dist/esm/{snk-actions-button_5.entry.js → snk-actions-button_8.entry.js} +131 -12
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +185 -24
- package/dist/esm/snk-attach.entry.js +9 -10
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +10 -3
- package/dist/esm/snk-crud.entry.js +49 -77
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +8 -9
- package/dist/esm/{snk-data-unit-6258b8ae.js → snk-data-unit-027bca56.js} +227 -13
- package/dist/esm/snk-data-unit.entry.js +5 -5
- package/dist/esm/snk-default-filter.entry.js +73 -0
- package/dist/esm/snk-detail-view.entry.js +69 -17
- package/dist/esm/snk-entity-list.entry.js +3 -8
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-expression-group_2.entry.js +10 -8
- package/dist/esm/snk-filter-advanced-mode_2.entry.js +5 -4
- package/dist/esm/snk-filter-bar_4.entry.js +85 -31
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +3 -3
- package/dist/esm/snk-filter-field-search_2.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +5 -5
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +1 -1
- package/dist/esm/snk-filter-period.entry.js +1 -1
- package/dist/esm/snk-filter-search.entry.js +19 -6
- package/dist/esm/snk-filter-text.entry.js +1 -1
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +20 -8
- package/dist/esm/snk-form_2.entry.js +428 -0
- package/dist/esm/snk-grid.entry.js +50 -37
- package/dist/esm/{snk-guides-viewer-39fae8d5.js → snk-guides-viewer-32f3d3ab.js} +140 -74
- package/dist/esm/snk-guides-viewer.entry.js +13 -13
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +55 -20
- package/dist/esm/snk-pesquisa.entry.js +6 -7
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +150 -116
- package/dist/esm/snk-taskbar.entry.js +10 -5
- package/dist/esm/sortable.esm-842f85a3.js +2666 -0
- package/dist/esm/{taskbar-elements-ed51e143.js → taskbar-elements-171476d4.js} +13 -2
- package/dist/esm/{field-search-f8b1d91e.js → taskbar-processor-3436124c.js} +1 -34
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/p-0024d3fd.entry.js +1 -0
- package/dist/sankhyablocks/p-09e60995.entry.js +11 -0
- package/dist/sankhyablocks/p-0cb295c1.entry.js +1 -0
- package/dist/sankhyablocks/p-1456d7cb.entry.js +1 -0
- package/dist/sankhyablocks/{p-9531fd46.entry.js → p-180716b2.entry.js} +1 -1
- package/dist/sankhyablocks/p-19156e59.entry.js +1 -0
- package/dist/sankhyablocks/p-1a0caadb.js +1 -0
- package/dist/sankhyablocks/p-21107f0d.entry.js +1 -0
- package/dist/sankhyablocks/{p-118e769b.entry.js → p-27482793.entry.js} +1 -1
- package/dist/sankhyablocks/p-2bde486e.js +1 -0
- package/dist/sankhyablocks/{p-26b0ce3e.entry.js → p-2fdac5e6.entry.js} +1 -1
- package/dist/sankhyablocks/p-349d1968.entry.js +1 -0
- package/dist/sankhyablocks/p-35e73c5d.js +1 -0
- package/dist/sankhyablocks/{p-89c92727.entry.js → p-398cdd67.entry.js} +1 -1
- package/dist/sankhyablocks/p-3a48bff3.entry.js +1 -0
- package/dist/sankhyablocks/{p-434817f0.entry.js → p-3d41f5a8.entry.js} +1 -1
- package/dist/sankhyablocks/p-3f24c9b2.js +1 -0
- package/dist/sankhyablocks/{p-8002dcd0.entry.js → p-471b34f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7e2ded86.entry.js → p-49d968e2.entry.js} +1 -1
- package/dist/sankhyablocks/p-4d2ff2fb.entry.js +1 -0
- package/dist/sankhyablocks/p-51833248.js +7 -0
- package/dist/sankhyablocks/p-601b252b.js +26 -0
- package/dist/sankhyablocks/p-60dd1d27.entry.js +1 -0
- package/dist/sankhyablocks/p-6416975c.js +56 -0
- package/dist/sankhyablocks/p-65c5d430.entry.js +1 -0
- package/dist/sankhyablocks/{p-21a81901.entry.js → p-667cab42.entry.js} +1 -1
- package/dist/sankhyablocks/p-67d6d0c8.entry.js +1 -0
- package/dist/sankhyablocks/p-6a4b21dd.js +1 -0
- package/dist/sankhyablocks/p-6dd38d7b.js +6 -0
- package/dist/sankhyablocks/p-71a05822.entry.js +1 -0
- package/dist/sankhyablocks/p-72c8c847.entry.js +1 -0
- package/dist/sankhyablocks/{p-a77bdadc.js → p-73285a8a.js} +1 -1
- package/dist/sankhyablocks/{p-ac8d1cd6.entry.js → p-7345782c.entry.js} +1 -1
- package/dist/sankhyablocks/p-763b04fa.js +1 -0
- package/dist/sankhyablocks/p-7993b2e3.js +60 -0
- package/dist/sankhyablocks/p-7de79adf.js +1 -0
- package/dist/sankhyablocks/p-7e250432.entry.js +1 -0
- package/dist/sankhyablocks/{p-47178038.entry.js → p-83c100f2.entry.js} +1 -1
- package/dist/sankhyablocks/p-84345e7a.js +1 -0
- package/dist/sankhyablocks/p-86bd4478.entry.js +1 -0
- package/dist/sankhyablocks/p-9019a32f.js +1 -0
- package/dist/sankhyablocks/{p-54a5d52a.entry.js → p-90805683.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c2e468c9.entry.js → p-91a9abb6.entry.js} +1 -1
- package/dist/sankhyablocks/p-9751c42f.entry.js +1 -0
- package/dist/sankhyablocks/{p-057fad05.js → p-988afe78.js} +1 -1
- package/dist/sankhyablocks/{p-16a1dd18.entry.js → p-9a63f3f7.entry.js} +1 -1
- package/dist/sankhyablocks/p-9ad3557c.entry.js +1 -0
- package/dist/sankhyablocks/p-9fd87bfd.entry.js +1 -0
- package/dist/sankhyablocks/p-a06bf7b9.entry.js +1 -0
- package/dist/sankhyablocks/{p-5e9fbd76.js → p-a349689a.js} +1 -1
- package/dist/sankhyablocks/p-a5bb2f93.entry.js +1 -0
- package/dist/sankhyablocks/{p-3ce68be5.js → p-a6513fcb.js} +1 -1
- package/dist/sankhyablocks/{p-8c235d4c.entry.js → p-a76e6d51.entry.js} +1 -1
- package/dist/sankhyablocks/p-b568c1d4.js +1 -0
- package/dist/sankhyablocks/p-bd665460.entry.js +1 -0
- package/dist/sankhyablocks/p-c3324d79.entry.js +1 -0
- package/dist/sankhyablocks/{p-bf2acf72.entry.js → p-c6a8a8bc.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d3b9b377.entry.js → p-c926cf6b.entry.js} +1 -1
- package/dist/sankhyablocks/p-cfd0a4c6.entry.js +1 -0
- package/dist/sankhyablocks/{p-79f823f3.entry.js → p-d67526b6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d2d301a6.js → p-d8d8169b.js} +1 -1
- package/dist/sankhyablocks/p-d9491f6f.entry.js +1 -0
- package/dist/sankhyablocks/{p-5f157b09.entry.js → p-dff65083.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2746d606.entry.js → p-e3521eae.entry.js} +1 -1
- package/dist/sankhyablocks/p-e7cccc45.entry.js +1 -0
- package/dist/sankhyablocks/{p-33718dfc.entry.js → p-e824d565.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5a7e18f4.js → p-fbba7e3d.js} +1 -1
- package/dist/sankhyablocks/p-fc0b609e.js +1 -0
- package/dist/sankhyablocks/p-ff7060bc.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/search-strategy/exec-prepared-search-plus.d.ts +5 -0
- package/dist/types/components/snk-application/snk-application.d.ts +17 -2
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +9 -3
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +17 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +11 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +16 -7
- package/dist/types/components/snk-data-unit/MultipleUpdateHelper.d.ts +9 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +17 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +5 -3
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +16 -4
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.d.ts +27 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -3
- package/dist/types/components/snk-filter-bar/types/default-filters.d.ts +5 -0
- package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +3 -3
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +31 -0
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +3 -3
- package/dist/types/components/snk-form-config/config-header/config-header.d.ts +23 -0
- package/dist/types/components/snk-form-config/config-header/configs-button/configs-button.d.ts +19 -0
- package/dist/types/components/snk-form-config/field-item/field-config/field-config.d.ts +56 -0
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +63 -0
- package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +18 -0
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +42 -0
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +51 -120
- package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +16 -5
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +1 -0
- package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +15 -0
- package/dist/types/components/snk-layout-form-config/snk-view-representation/snk-view-representation.d.ts +10 -0
- package/dist/types/components/snk-personalized-filter/interfaces/index.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +7 -1
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.d.ts +4 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +24 -12
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +2 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +44 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +6 -0
- package/dist/types/components.d.ts +502 -212
- package/dist/types/lib/configs/ConfigStorage.d.ts +4 -2
- package/dist/types/lib/configs/LayoutFormConfig.d.ts +11 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +8 -4
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +4 -1
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +2 -1
- package/dist/types/lib/utils/constants.d.ts +7 -0
- package/package.json +8 -6
- package/react/components.d.ts +11 -3
- package/react/components.js +11 -3
- package/react/components.js.map +1 -1
- package/dist/cjs/ISave-e91b70a7.js +0 -9
- package/dist/cjs/Sortable-fb1c4cbb.js +0 -2853
- package/dist/cjs/snk-config-options_3.cjs.entry.js +0 -1388
- package/dist/cjs/snk-field-config.cjs.entry.js +0 -60
- package/dist/cjs/snk-tab-config.cjs.entry.js +0 -332
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css +0 -16
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js +0 -344
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css +0 -219
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js +0 -184
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css +0 -323
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js +0 -527
- package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +0 -31
- package/dist/components/snk-config-options.js +0 -6
- package/dist/components/snk-config-options2.js +0 -255
- package/dist/components/snk-field-config.js +0 -6
- package/dist/components/snk-field-config2.js +0 -76
- package/dist/components/snk-tab-config.js +0 -6
- package/dist/components/snk-tab-config2.js +0 -3202
- package/dist/esm/ISave-d8c8bc59.js +0 -9
- package/dist/esm/Sortable-83960219.js +0 -2851
- package/dist/esm/snk-config-options_3.entry.js +0 -1382
- package/dist/esm/snk-field-config.entry.js +0 -56
- package/dist/esm/snk-tab-config.entry.js +0 -328
- package/dist/sankhyablocks/p-11afea24.entry.js +0 -1
- package/dist/sankhyablocks/p-17425c72.js +0 -1
- package/dist/sankhyablocks/p-18389343.entry.js +0 -1
- package/dist/sankhyablocks/p-1d19a5b0.js +0 -1
- package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
- package/dist/sankhyablocks/p-21749402.js +0 -1
- package/dist/sankhyablocks/p-22ddc147.js +0 -26
- package/dist/sankhyablocks/p-23736d75.js +0 -1
- package/dist/sankhyablocks/p-23cd6abf.entry.js +0 -1
- package/dist/sankhyablocks/p-240ac47f.entry.js +0 -1
- package/dist/sankhyablocks/p-2953c481.entry.js +0 -1
- package/dist/sankhyablocks/p-3ab6df3d.entry.js +0 -1
- package/dist/sankhyablocks/p-3fcb90d6.js +0 -56
- package/dist/sankhyablocks/p-43769aa9.js +0 -1
- package/dist/sankhyablocks/p-4b01cbad.entry.js +0 -11
- package/dist/sankhyablocks/p-4c9adf1c.entry.js +0 -1
- package/dist/sankhyablocks/p-517efc93.js +0 -1
- package/dist/sankhyablocks/p-6b898a51.entry.js +0 -1
- package/dist/sankhyablocks/p-77168ab4.entry.js +0 -1
- package/dist/sankhyablocks/p-7e0a0aae.js +0 -60
- package/dist/sankhyablocks/p-91708c3d.entry.js +0 -1
- package/dist/sankhyablocks/p-933c0c0b.js +0 -1
- package/dist/sankhyablocks/p-9523fc40.entry.js +0 -1
- package/dist/sankhyablocks/p-9887a437.entry.js +0 -1
- package/dist/sankhyablocks/p-9ebc3f3b.entry.js +0 -1
- package/dist/sankhyablocks/p-a5bdcb3f.entry.js +0 -1
- package/dist/sankhyablocks/p-a61bbe18.entry.js +0 -1
- package/dist/sankhyablocks/p-abd9681c.js +0 -1
- package/dist/sankhyablocks/p-bfdf92e9.entry.js +0 -1
- package/dist/sankhyablocks/p-c8622597.entry.js +0 -1
- package/dist/sankhyablocks/p-cb1e77e0.entry.js +0 -1
- package/dist/sankhyablocks/p-d9804798.js +0 -1
- package/dist/sankhyablocks/p-e289826a.js +0 -1
- package/dist/sankhyablocks/p-e51c52cf.entry.js +0 -1
- package/dist/sankhyablocks/p-e66bcb5c.entry.js +0 -1
- package/dist/sankhyablocks/p-ef076eea.js +0 -6
- package/dist/sankhyablocks/p-fa816fb2.js +0 -1
- package/dist/types/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.d.ts +0 -57
- package/dist/types/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.d.ts +0 -43
- package/dist/types/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -105
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +0 -4
package/dist/cjs/{ClientSideExporterProvider-fe52f7cf.js → ClientSideExporterProvider-0ce2bcd9.js}
RENAMED
@@ -1,18 +1,17 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const DataFetcher = require('./DataFetcher-
|
4
|
-
require('./
|
3
|
+
const DataFetcher = require('./DataFetcher-1afdb18e.js');
|
4
|
+
require('./ISave-c76e2c51.js');
|
5
5
|
const core = require('@sankhyalabs/core');
|
6
6
|
const index$1 = require('./index-e3e39724.js');
|
7
|
-
require('./ISave-e91b70a7.js');
|
8
7
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
9
8
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
10
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
9
|
+
const dataunitFetcher = require('./dataunit-fetcher-a723f0dc.js');
|
11
10
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
12
|
-
require('./form-config-fetcher-
|
13
|
-
require('./constants-
|
11
|
+
require('./form-config-fetcher-40d3f752.js');
|
12
|
+
require('./constants-6d82e405.js');
|
14
13
|
const InMemoryFilterColumnDataSource = require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
15
|
-
const index = require('./index-
|
14
|
+
const index = require('./index-1cf293c1.js');
|
16
15
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
17
16
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
18
17
|
|
@@ -126,11 +125,11 @@ class SnkMultiSelectionListDataSource {
|
|
126
125
|
}
|
127
126
|
return String(this._dataUnit.getFormattedValue(fieldName, value));
|
128
127
|
}
|
129
|
-
async getStaticOptions(fieldName) {
|
128
|
+
async getStaticOptions(fieldName, options) {
|
130
129
|
if (fieldName == undefined) {
|
131
130
|
return Promise.resolve(undefined);
|
132
131
|
}
|
133
|
-
return Promise.resolve(await dataunitFetcher.PreloadManager.getDistinct(this._dataUnit, fieldName));
|
132
|
+
return Promise.resolve(await dataunitFetcher.PreloadManager.getDistinct(this._dataUnit, fieldName, options === null || options === void 0 ? void 0 : options.onlyLabel));
|
134
133
|
}
|
135
134
|
fetchData(filterTerm, fieldName) {
|
136
135
|
return new Promise(resolve => {
|
@@ -231,25 +230,21 @@ class CommonsExporter {
|
|
231
230
|
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
|
232
231
|
customFormatter
|
233
232
|
};
|
234
|
-
if (isUserInterfaceSEARCH) {
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
}
|
248
|
-
|
249
|
-
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
250
|
-
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
251
|
-
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
252
|
-
}
|
233
|
+
if (isUserInterfaceSEARCH && ((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
234
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
235
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
236
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
237
|
+
descriptionColumn = {
|
238
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
239
|
+
label: labelDescription,
|
240
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
241
|
+
type: core.DataType.TEXT,
|
242
|
+
userInterface: UnitMetadata.UserInterface.LONGTEXT,
|
243
|
+
descriptionFrom: fieldData.name
|
244
|
+
};
|
245
|
+
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
246
|
+
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
247
|
+
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
253
248
|
}
|
254
249
|
columnsMetadata.push(columnData);
|
255
250
|
if (descriptionColumn)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
3
|
+
const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
|
4
4
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
5
5
|
const core = require('@sankhyalabs/core');
|
6
|
-
const DataFetcher = require('./DataFetcher-
|
6
|
+
const DataFetcher = require('./DataFetcher-1afdb18e.js');
|
7
7
|
|
8
8
|
class GridConfigFetcher extends formConfigFetcher.ResourceFetcher {
|
9
9
|
constructor() {
|
@@ -184,16 +184,30 @@ class FilterBarConfigFetcher extends formConfigFetcher.ResourceFetcher {
|
|
184
184
|
|
185
185
|
class PersonalizedFilterFetcher {
|
186
186
|
constructor() {
|
187
|
+
this.DEFAULT_RESOURCE = '_default';
|
187
188
|
this.templateByQuery = new Map();
|
188
189
|
this.buildTemplates();
|
189
190
|
}
|
190
|
-
resolveURI(resourceID, configName) {
|
191
|
+
resolveURI(resourceID, configName, isDefault) {
|
191
192
|
let uri = "filter-assistent-config://" + resourceID;
|
192
193
|
if (configName) {
|
193
194
|
uri += "." + configName;
|
194
195
|
}
|
196
|
+
if (isDefault) {
|
197
|
+
uri += this.DEFAULT_RESOURCE;
|
198
|
+
}
|
195
199
|
return uri;
|
196
200
|
}
|
201
|
+
resolveLegacyConfigName(legacyConfigName, isDefault) {
|
202
|
+
if (!legacyConfigName) {
|
203
|
+
return '';
|
204
|
+
}
|
205
|
+
let legacyConfig = `?legacyResourceID=${legacyConfigName}`;
|
206
|
+
if (isDefault) {
|
207
|
+
legacyConfig += this.DEFAULT_RESOURCE;
|
208
|
+
}
|
209
|
+
return legacyConfig;
|
210
|
+
}
|
197
211
|
buildTemplates() {
|
198
212
|
this.templateByQuery.set("fetchFilterFields", DataFetcher.dist.gql `
|
199
213
|
query($name: String!) {
|
@@ -256,11 +270,14 @@ class PersonalizedFilterFetcher {
|
|
256
270
|
}
|
257
271
|
}`);
|
258
272
|
}
|
259
|
-
async
|
273
|
+
async loadDefaultFilter(resourceID, filterID, configName, legacyConfigName) {
|
274
|
+
return this.loadPersonalizedFilter(resourceID, filterID, configName, legacyConfigName, true);
|
275
|
+
}
|
276
|
+
async loadPersonalizedFilter(resourceID, filterID, configName, legacyConfigName, isDefault) {
|
260
277
|
return new Promise((resolve, reject) => {
|
261
278
|
DataFetcher.DataFetcher.get()
|
262
279
|
.callGraphQL({
|
263
|
-
values: { name: this.resolveURI(resourceID, configName) + "/" + filterID + this.resolveLegacyConfigName(legacyConfigName) },
|
280
|
+
values: { name: this.resolveURI(resourceID, configName, isDefault) + "/" + filterID + this.resolveLegacyConfigName(legacyConfigName, isDefault) },
|
264
281
|
query: this.templateByQuery.get("fetchFilterAssistent"),
|
265
282
|
})
|
266
283
|
.then((resp) => {
|
@@ -272,10 +289,10 @@ class PersonalizedFilterFetcher {
|
|
272
289
|
});
|
273
290
|
});
|
274
291
|
}
|
275
|
-
|
276
|
-
return
|
292
|
+
async saveDefaultFilter(personalizedFilter, resourceID, configName) {
|
293
|
+
return this.savePersonalizedFilter(personalizedFilter, resourceID, configName, true);
|
277
294
|
}
|
278
|
-
async savePersonalizedFilter(personalizedFilter, resourceID, configName) {
|
295
|
+
async savePersonalizedFilter(personalizedFilter, resourceID, configName, isDefault) {
|
279
296
|
if (!personalizedFilter || Object.keys(personalizedFilter).length == 0) {
|
280
297
|
return Promise.reject(new Error("personalizedFilter não pode ser vazio"));
|
281
298
|
}
|
@@ -284,7 +301,7 @@ class PersonalizedFilterFetcher {
|
|
284
301
|
return new Promise((resolve, reject) => {
|
285
302
|
DataFetcher.DataFetcher.get()
|
286
303
|
.callGraphQL({
|
287
|
-
values: { name: this.resolveURI(resourceID, configName), filterAssistent: personalizedFilterParsed },
|
304
|
+
values: { name: this.resolveURI(resourceID, configName, isDefault), filterAssistent: personalizedFilterParsed },
|
288
305
|
query: this.templateByQuery.get("savePersonalizedFilter"),
|
289
306
|
})
|
290
307
|
.then((resp) => {
|
@@ -295,11 +312,14 @@ class PersonalizedFilterFetcher {
|
|
295
312
|
});
|
296
313
|
});
|
297
314
|
}
|
298
|
-
|
315
|
+
removeDefaultFilter(personalizedFilter, resourceID, configName) {
|
316
|
+
return this.removePersonalizedFilter(personalizedFilter, resourceID, configName, true);
|
317
|
+
}
|
318
|
+
async removePersonalizedFilter(personalizedFilter, resourceID, configName, isDefault) {
|
299
319
|
return new Promise((resolve, reject) => {
|
300
320
|
DataFetcher.DataFetcher.get()
|
301
321
|
.callGraphQL({
|
302
|
-
values: { name: this.resolveURI(resourceID, configName), filterId: personalizedFilter.id },
|
322
|
+
values: { name: this.resolveURI(resourceID, configName, isDefault), filterId: personalizedFilter.id },
|
303
323
|
query: this.templateByQuery.get("deletePersonalizedFilter"),
|
304
324
|
})
|
305
325
|
.then((resp) => {
|
@@ -364,15 +384,15 @@ var CONFIG_SOURCE;
|
|
364
384
|
})(CONFIG_SOURCE || (CONFIG_SOURCE = {}));
|
365
385
|
class ConfigStorage {
|
366
386
|
static addFilterBarLegacyConfig(configName, legacyConfigName) {
|
367
|
-
this.
|
387
|
+
this.validateResourceId(legacyConfigName);
|
368
388
|
this.filterBarLegacyConfig.set(configName, legacyConfigName);
|
369
389
|
}
|
370
390
|
static addFormLegacyConfig(configName, legacyConfigName) {
|
371
|
-
this.
|
391
|
+
this.validateResourceId(legacyConfigName);
|
372
392
|
this.formLegacyConfig.set(configName, legacyConfigName);
|
373
393
|
}
|
374
394
|
static addGridLegacyConfig(configName, legacyConfigName) {
|
375
|
-
this.
|
395
|
+
this.validateResourceId(legacyConfigName);
|
376
396
|
this.gridLegacyConfig.set(configName, legacyConfigName);
|
377
397
|
}
|
378
398
|
static preload(resourceID, configName, legacyConfigs) {
|
@@ -429,6 +449,10 @@ class ConfigStorage {
|
|
429
449
|
await this.deleteGridConfigCache(name, resourceID);
|
430
450
|
return this.gridConfigFetcher.saveConfig(config, name, resourceID);
|
431
451
|
}
|
452
|
+
static async loadDefaultFilter(filterId, resourceID, configName) {
|
453
|
+
const legacyConfigName = this.filterBarLegacyConfig.get(configName);
|
454
|
+
return this.personalizedFilterFetcher.loadDefaultFilter(resourceID, filterId, configName, legacyConfigName);
|
455
|
+
}
|
432
456
|
static async loadPersonalizedFilter(filterId, resourceID, configName) {
|
433
457
|
const legacyConfigName = this.filterBarLegacyConfig.get(configName);
|
434
458
|
return this.personalizedFilterFetcher.loadPersonalizedFilter(resourceID, filterId, configName, legacyConfigName);
|
@@ -439,6 +463,13 @@ class ConfigStorage {
|
|
439
463
|
await this.deleteFilterBarConfigCache(configName, resourceID);
|
440
464
|
return this.personalizedFilterFetcher.savePersonalizedFilter(personalizedFilter, resourceID, configName);
|
441
465
|
}
|
466
|
+
static async saveDefaultFilter(personalizedFilter, resourceID, configName) {
|
467
|
+
await this.deleteFilterBarConfigCache(configName, resourceID);
|
468
|
+
return this.personalizedFilterFetcher.saveDefaultFilter(personalizedFilter, resourceID, configName);
|
469
|
+
}
|
470
|
+
static async removeDefaultFilter(personalizedFilter, resourceID, configName) {
|
471
|
+
return this.personalizedFilterFetcher.removeDefaultFilter(personalizedFilter, resourceID, configName);
|
472
|
+
}
|
442
473
|
static async removePersonalizedFilter(personalizedFilter, resourceID, configName) {
|
443
474
|
return this.personalizedFilterFetcher.removePersonalizedFilter(personalizedFilter, resourceID, configName);
|
444
475
|
}
|
@@ -454,10 +485,8 @@ class ConfigStorage {
|
|
454
485
|
static async deleteFilterBarConfigCache(name, resourceID) {
|
455
486
|
await this.deleteConfigCache(name, resourceID, CONFIG_SOURCE.filterBar);
|
456
487
|
}
|
457
|
-
static
|
458
|
-
if (!
|
459
|
-
throw Error(this.CONFIG_NAME_ERROR_MESSAGE);
|
460
|
-
if (!legacyConfigName)
|
488
|
+
static validateResourceId(resourceId) {
|
489
|
+
if (!resourceId)
|
461
490
|
throw Error(this.LEGACY_CONFIG_NAME_ERROR_MESSAGE);
|
462
491
|
}
|
463
492
|
static handleLegacyConfig(configName, configSource, urlParams) {
|
@@ -497,7 +526,6 @@ class ConfigStorage {
|
|
497
526
|
return `req_${source}_${name}_${resourceID}`;
|
498
527
|
}
|
499
528
|
}
|
500
|
-
ConfigStorage.CONFIG_NAME_ERROR_MESSAGE = "ConfigName precisa ser informado.";
|
501
529
|
ConfigStorage.LEGACY_CONFIG_NAME_ERROR_MESSAGE = "LegacyConfigName precisa ser informado.";
|
502
530
|
ConfigStorage.filterBarLegacyConfig = new Map();
|
503
531
|
ConfigStorage.formLegacyConfig = new Map();
|
@@ -6718,7 +6718,13 @@ class DataFetcher {
|
|
6718
6718
|
if (error.length > 0) { //As informações do erro vem no primeiro indice de um array
|
6719
6719
|
const errorInfo = error[POSITION_ERROR_INFO];
|
6720
6720
|
const errorMessage = (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message) ? errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message : "Não há mensagem de erro";
|
6721
|
-
|
6721
|
+
/*
|
6722
|
+
No HTML5, todos os erros de Troubleshooting são considerados alerta,
|
6723
|
+
pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
|
6724
|
+
Motivo: - errorLevel é uma string "ERROR" por exemplo
|
6725
|
+
- ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
|
6726
|
+
*/
|
6727
|
+
const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? "WARNING" : "ERROR";
|
6722
6728
|
const errorCode = ((_b = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _b === void 0 ? void 0 : _b.code) ? errorInfo.extensions.code : "";
|
6723
6729
|
switch (errorLevel) {
|
6724
6730
|
case "WARNING":
|
@@ -6740,7 +6746,13 @@ class DataFetcher {
|
|
6740
6746
|
let tsErrorCode, tsErrorLevel;
|
6741
6747
|
if (tsError) {
|
6742
6748
|
tsErrorCode = tsError.tsErrorCode;
|
6743
|
-
|
6749
|
+
/*
|
6750
|
+
No HTML5, todos os erros de Troubleshooting são considerados alerta,
|
6751
|
+
pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
|
6752
|
+
Motivo: - errorLevel é uma string "ERROR" por exemplo
|
6753
|
+
- ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
|
6754
|
+
*/
|
6755
|
+
tsErrorLevel = "WARNING";
|
6744
6756
|
}
|
6745
6757
|
if (tsErrorLevel === "WARNING") {
|
6746
6758
|
return new core.WarningException(title, statusMessage, tsErrorCode);
|
@@ -0,0 +1,260 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
const core = require('@sankhyalabs/core');
|
4
|
+
const constants = require('./constants-6d82e405.js');
|
5
|
+
|
6
|
+
const iconMap = new Map([
|
7
|
+
[core.UserInterface.DATE, 'calendar'],
|
8
|
+
[core.UserInterface.DATETIME, 'calendar-clock'],
|
9
|
+
[core.UserInterface.ELAPSEDTIME, 'timer-outline'],
|
10
|
+
[core.UserInterface.TIME, 'timer-outline'],
|
11
|
+
[core.UserInterface.DECIMALNUMBER, 'number'],
|
12
|
+
[core.UserInterface.INTEGERNUMBER, 'number'],
|
13
|
+
[core.UserInterface.FILE, 'zip'],
|
14
|
+
[core.UserInterface.IMAGE, 'pdf'],
|
15
|
+
[core.UserInterface.HTML, 'tag_code'],
|
16
|
+
[core.UserInterface.SEARCH, 'search'],
|
17
|
+
[core.UserInterface.SEARCHPLUS, 'search'],
|
18
|
+
[core.UserInterface.OPTIONSELECTOR, 'list'],
|
19
|
+
[core.UserInterface.CHECKBOX, 'list'],
|
20
|
+
[core.UserInterface.SWITCH, 'boolean'],
|
21
|
+
[core.UserInterface.PASSWORD, 'eye-off'],
|
22
|
+
]);
|
23
|
+
const ID_AVAILABLE_FIELDS = 'container-available-fields';
|
24
|
+
exports.SORTABLE_PATH = void 0;
|
25
|
+
(function (SORTABLE_PATH) {
|
26
|
+
SORTABLE_PATH["FROM"] = "from";
|
27
|
+
SORTABLE_PATH["TO"] = "to";
|
28
|
+
})(exports.SORTABLE_PATH || (exports.SORTABLE_PATH = {}));
|
29
|
+
function getFieldsStructure(evt, path, group, tab) {
|
30
|
+
var _a;
|
31
|
+
const htmlStructure = (_a = evt === null || evt === void 0 ? void 0 : evt[path]) === null || _a === void 0 ? void 0 : _a.children;
|
32
|
+
if (!htmlStructure)
|
33
|
+
return [];
|
34
|
+
return Array.from(htmlStructure).map(({ fieldConfig }) => {
|
35
|
+
return Object.assign(Object.assign({}, fieldConfig), { group, tab });
|
36
|
+
});
|
37
|
+
}
|
38
|
+
function updateTabInFieldsFromGroupList(guideGroups, updatedName) {
|
39
|
+
return guideGroups.map(group => {
|
40
|
+
return Object.assign(Object.assign({}, group), { fields: group.fields.map(field => (Object.assign(Object.assign({}, field), { tab: updatedName }))) });
|
41
|
+
});
|
42
|
+
}
|
43
|
+
function getValidatedFieldValue(fieldValue, dataUnit, fieldName) {
|
44
|
+
var _a;
|
45
|
+
if (fieldValue == undefined || !dataUnit || !fieldName)
|
46
|
+
return;
|
47
|
+
const dataType = (_a = dataUnit.getField(fieldName)) === null || _a === void 0 ? void 0 : _a.dataType;
|
48
|
+
if (dataType == undefined)
|
49
|
+
return;
|
50
|
+
if ((fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.waitmessage) !== undefined)
|
51
|
+
return undefined;
|
52
|
+
const isNonObjectValue = dataType !== core.DataType.OBJECT &&
|
53
|
+
dataType !== core.DataType.DATE &&
|
54
|
+
typeof fieldValue === 'object';
|
55
|
+
const processedValue = isNonObjectValue ? fieldValue.value : fieldValue;
|
56
|
+
return dataType === core.DataType.OBJECT
|
57
|
+
? JSON.stringify(processedValue)
|
58
|
+
: processedValue;
|
59
|
+
}
|
60
|
+
function getEnabledByProperty(attribName, propertyName, fieldDescriptor) {
|
61
|
+
if (!fieldDescriptor)
|
62
|
+
return true;
|
63
|
+
const fieldProperties = fieldDescriptor.properties || {};
|
64
|
+
const fromAttribName = fieldDescriptor[attribName] !== true;
|
65
|
+
return fieldProperties.hasOwnProperty(propertyName)
|
66
|
+
? fieldProperties[propertyName] !== 'S'
|
67
|
+
: fromAttribName;
|
68
|
+
}
|
69
|
+
function getValueByProperty(property, fieldDescriptor, defaultValue) {
|
70
|
+
if (fieldDescriptor && fieldDescriptor[property] === true) {
|
71
|
+
return true;
|
72
|
+
}
|
73
|
+
return defaultValue;
|
74
|
+
}
|
75
|
+
function getIconName(userInterface) {
|
76
|
+
return iconMap.get(userInterface) || 'text';
|
77
|
+
}
|
78
|
+
function buildNewGuideName(guidesList) {
|
79
|
+
var _a, _b;
|
80
|
+
const qtdWithNewGuideName = (_b = (_a = guidesList.filter(g => g.name.includes(constants.TAB_NAMES.newGuide))) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
81
|
+
return qtdWithNewGuideName === 0
|
82
|
+
? constants.TAB_NAMES.newGuide
|
83
|
+
: `${constants.TAB_NAMES.newGuide} (${qtdWithNewGuideName})`;
|
84
|
+
}
|
85
|
+
function getFieldsToSave(guidesMap) {
|
86
|
+
const fieldsToSave = [];
|
87
|
+
guidesMap.forEach(groups => {
|
88
|
+
groups.forEach(({ fields }) => {
|
89
|
+
fields === null || fields === void 0 ? void 0 : fields.forEach((fieldConfig) => {
|
90
|
+
fieldsToSave.push(buildFieldToSave(fieldConfig));
|
91
|
+
});
|
92
|
+
});
|
93
|
+
});
|
94
|
+
return fieldsToSave;
|
95
|
+
}
|
96
|
+
function buildGuidesMap(rawFields, tabs, dataUnit, generalTab) {
|
97
|
+
const fields = handleFieldsTabNames(rawFields);
|
98
|
+
const guidesMap = initGuidesMap(tabs);
|
99
|
+
if (!(fields === null || fields === void 0 ? void 0 : fields.length))
|
100
|
+
return;
|
101
|
+
for (let guideName of guidesMap.keys()) {
|
102
|
+
const fieldsFromGuide = getFieldsFromGuide(fields, guideName, generalTab);
|
103
|
+
const fieldsByGroupMap = getGroupsFromGuide(fieldsFromGuide, dataUnit, generalTab);
|
104
|
+
const groupsList = parserGroupMapIntoList(fieldsByGroupMap);
|
105
|
+
guidesMap.set(guideName, groupsList);
|
106
|
+
}
|
107
|
+
return guidesMap;
|
108
|
+
}
|
109
|
+
function buildGuides(config, mainArea) {
|
110
|
+
let tabs = config.tabs ? [...config.tabs] : buildTabsFromFields(config === null || config === void 0 ? void 0 : config.fields);
|
111
|
+
tabs = getPossibleGuides(tabs);
|
112
|
+
tabs = initializeTabsNames(tabs);
|
113
|
+
return handleMainTab(tabs, mainArea);
|
114
|
+
}
|
115
|
+
function handleFieldsTabNames(allFields) {
|
116
|
+
// Campos que não fazem parte de nenhuma aba ou da aba "Geral", devem ser movidos para a aba __main.
|
117
|
+
return allFields.map(field => {
|
118
|
+
const tabName = field.tab;
|
119
|
+
return Object.assign(Object.assign({}, field), { tab: (!tabName || tabName === constants.TAB_NAMES.general) ? constants.TAB_NAMES.main : field.tab });
|
120
|
+
});
|
121
|
+
}
|
122
|
+
function initializeTabsNames(tabs) {
|
123
|
+
return tabs.map((tab) => {
|
124
|
+
return Object.assign(Object.assign({}, tab), { name: tab.name ? tab.name : tab.label });
|
125
|
+
});
|
126
|
+
}
|
127
|
+
function handleMainTab(tabs, mainTabName) {
|
128
|
+
const mainTab = { name: constants.TAB_NAMES.main, label: mainTabName, visible: true };
|
129
|
+
const hasTabMain = tabs.some((tab) => tab.name === constants.TAB_NAMES.main);
|
130
|
+
if (hasTabMain) {
|
131
|
+
tabs = tabs.map(tab => tab.name === constants.TAB_NAMES.main ? mainTab : tab);
|
132
|
+
}
|
133
|
+
else {
|
134
|
+
tabs.unshift(mainTab);
|
135
|
+
}
|
136
|
+
return tabs;
|
137
|
+
}
|
138
|
+
function getPossibleGuides(tabs) {
|
139
|
+
//O usuário não pode criar uma guia com o nome "Geral".
|
140
|
+
// Nesses casos, precisamos mover os campos dessa guia, para a guia __main.
|
141
|
+
return [...tabs.filter(tab => tab.label !== constants.TAB_NAMES.general)];
|
142
|
+
}
|
143
|
+
function initGuidesMap(tabs) {
|
144
|
+
const map = new Map();
|
145
|
+
let possibleGuides = getPossibleGuides(tabs);
|
146
|
+
possibleGuides.forEach(tab => {
|
147
|
+
map.set(tab.name, []);
|
148
|
+
});
|
149
|
+
return map;
|
150
|
+
}
|
151
|
+
function handleFieldLabel(field, fieldDescriptor) {
|
152
|
+
if (!field.label) {
|
153
|
+
field.label = fieldDescriptor.label;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
function handleFieldTab(field, generalTabName) {
|
157
|
+
if (!field.tab) {
|
158
|
+
field.tab = generalTabName;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
function handleFieldGroup(field) {
|
162
|
+
if (!field.group) {
|
163
|
+
field.group = constants.GROUP_NAMES.noGroup;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
function isVisibleOnConfig(fieldDescriptor) {
|
167
|
+
var _a;
|
168
|
+
/**
|
169
|
+
* Quando um campo é ocultado pelo dev, mas queremos manter ele na config precisamos fazer essa tratativa.
|
170
|
+
*/
|
171
|
+
return ((_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.properties) === null || _a === void 0 ? void 0 : _a.visibleOnConfig) === true && (fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.visible) === false;
|
172
|
+
}
|
173
|
+
function getGroupsFromGuide(fieldsFromGuide, dataUnit, generalTabName) {
|
174
|
+
const groupsMap = new Map();
|
175
|
+
groupsMap.set(constants.GROUP_NAMES.noGroup, []);
|
176
|
+
for (let field of fieldsFromGuide) {
|
177
|
+
const fieldDescriptor = dataUnit.getField(field.name);
|
178
|
+
if (!(fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.visible) && !isVisibleOnConfig(fieldDescriptor))
|
179
|
+
continue;
|
180
|
+
handleFieldLabel(field, fieldDescriptor);
|
181
|
+
handleFieldTab(field, generalTabName);
|
182
|
+
handleFieldGroup(field);
|
183
|
+
if (groupsMap.has(field.group)) {
|
184
|
+
groupsMap.get(field.group).push(field);
|
185
|
+
}
|
186
|
+
else {
|
187
|
+
groupsMap.set(field.group, [field]);
|
188
|
+
}
|
189
|
+
}
|
190
|
+
return groupsMap;
|
191
|
+
}
|
192
|
+
function getFieldsFromGuide(fields, guideName, generalTabName) {
|
193
|
+
return fields.filter(field => {
|
194
|
+
const fieldTab = getTabName(field.tab, generalTabName);
|
195
|
+
return fieldTab === guideName;
|
196
|
+
});
|
197
|
+
}
|
198
|
+
function getTabName(tab, generalTabName) {
|
199
|
+
var _a;
|
200
|
+
if (typeof tab === 'string')
|
201
|
+
return tab;
|
202
|
+
return (_a = tab === null || tab === void 0 ? void 0 : tab.label) !== null && _a !== void 0 ? _a : generalTabName;
|
203
|
+
}
|
204
|
+
function parserGroupMapIntoList(groupsMap) {
|
205
|
+
const groupsList = [];
|
206
|
+
for (let groupName of groupsMap.keys()) {
|
207
|
+
groupsList.push({ name: groupName, fields: groupsMap.get(groupName) });
|
208
|
+
}
|
209
|
+
return groupsList;
|
210
|
+
}
|
211
|
+
function canAddTab(tab, guideList) {
|
212
|
+
return tab && !(guideList.map(g => g.name).includes(tab));
|
213
|
+
}
|
214
|
+
function buildTabsFromFields(fields) {
|
215
|
+
const guideList = [];
|
216
|
+
let order = 1;
|
217
|
+
fields === null || fields === void 0 ? void 0 : fields.forEach((field) => {
|
218
|
+
const tab = field.tab;
|
219
|
+
if (canAddTab(tab, guideList)) {
|
220
|
+
guideList.push({ name: tab, label: tab, visible: true, order });
|
221
|
+
order = order + 1;
|
222
|
+
}
|
223
|
+
});
|
224
|
+
return guideList;
|
225
|
+
}
|
226
|
+
function buildFieldToSave(fieldConfig) {
|
227
|
+
const fieldToSave = {
|
228
|
+
cleanOnCopy: fieldConfig.cleanOnCopy || false,
|
229
|
+
group: fieldConfig.group === constants.GROUP_NAMES.noGroup ? undefined : fieldConfig.group,
|
230
|
+
label: fieldConfig.label,
|
231
|
+
name: fieldConfig.name,
|
232
|
+
required: fieldConfig.required,
|
233
|
+
readOnly: fieldConfig.readOnly,
|
234
|
+
tab: fieldConfig.tab,
|
235
|
+
};
|
236
|
+
if (fieldConfig.defaultValue != undefined) {
|
237
|
+
if (fieldConfig.defaultValue.type == undefined) {
|
238
|
+
fieldToSave.defaultValue = {
|
239
|
+
type: constants.DEFAULT_TYPE.fixed,
|
240
|
+
value: fieldConfig.defaultValue,
|
241
|
+
};
|
242
|
+
}
|
243
|
+
else {
|
244
|
+
fieldToSave.defaultValue = fieldConfig.defaultValue;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
return fieldToSave;
|
248
|
+
}
|
249
|
+
|
250
|
+
exports.ID_AVAILABLE_FIELDS = ID_AVAILABLE_FIELDS;
|
251
|
+
exports.buildGuides = buildGuides;
|
252
|
+
exports.buildGuidesMap = buildGuidesMap;
|
253
|
+
exports.buildNewGuideName = buildNewGuideName;
|
254
|
+
exports.getEnabledByProperty = getEnabledByProperty;
|
255
|
+
exports.getFieldsStructure = getFieldsStructure;
|
256
|
+
exports.getFieldsToSave = getFieldsToSave;
|
257
|
+
exports.getIconName = getIconName;
|
258
|
+
exports.getValidatedFieldValue = getValidatedFieldValue;
|
259
|
+
exports.getValueByProperty = getValueByProperty;
|
260
|
+
exports.updateTabInFieldsFromGroupList = updateTabInFieldsFromGroupList;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
4
|
-
const DataFetcher = require('./DataFetcher-
|
4
|
+
const DataFetcher = require('./DataFetcher-1afdb18e.js');
|
5
5
|
|
6
6
|
function buildGridMetadata(rawValue) {
|
7
7
|
const fieldsMetadata = buildFieldsMetadata(rawValue.fieldsMetadata);
|
@@ -150,7 +150,20 @@ class PesquisaFetcher {
|
|
150
150
|
});
|
151
151
|
});
|
152
152
|
}
|
153
|
-
|
153
|
+
buildDescriptionCacheKey(entityName, codeValue) {
|
154
|
+
return `${entityName}__${codeValue}`;
|
155
|
+
}
|
156
|
+
async loadByCode(entityName, codeValue, criteria, searchOptions) {
|
157
|
+
const cacheKey = this.buildDescriptionCacheKey(entityName, codeValue);
|
158
|
+
const cachedValue = PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey];
|
159
|
+
if (cachedValue) {
|
160
|
+
return Promise.resolve(cachedValue);
|
161
|
+
}
|
162
|
+
const result = await this.loadAdvancedSearch(entityName, undefined, criteria, searchOptions, codeValue);
|
163
|
+
PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey] = result;
|
164
|
+
return result;
|
165
|
+
}
|
166
|
+
loadAdvancedSearch(entityName, argument, criteria, searchOptions, codeValue) {
|
154
167
|
var _a, _b, _c, _d, _e;
|
155
168
|
const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
|
156
169
|
const values = {
|
@@ -194,12 +207,22 @@ class PesquisaFetcher {
|
|
194
207
|
const reqBody = {
|
195
208
|
"serviceName": serviceName,
|
196
209
|
"requestBody": {
|
197
|
-
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "
|
210
|
+
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
|
198
211
|
"clientEventList": {
|
199
212
|
"clientEvent": []
|
200
213
|
}
|
201
214
|
}
|
202
215
|
};
|
216
|
+
if (codeValue == undefined) {
|
217
|
+
reqBody.requestBody.criteria.query = {
|
218
|
+
"$": argument
|
219
|
+
};
|
220
|
+
}
|
221
|
+
else {
|
222
|
+
reqBody.requestBody.criteria.pk = {
|
223
|
+
"$": codeValue
|
224
|
+
};
|
225
|
+
}
|
203
226
|
const urlOptions = {
|
204
227
|
urlParams: {
|
205
228
|
"quietMode": true
|
@@ -309,6 +332,7 @@ class PesquisaFetcher {
|
|
309
332
|
return params;
|
310
333
|
}
|
311
334
|
}
|
335
|
+
PesquisaFetcher.DESCRIPTIONS_BY_CODE = {};
|
312
336
|
function buildLoadGridConfigPayload(entityName) {
|
313
337
|
return {
|
314
338
|
'gridConfig': {
|
@@ -361,5 +385,13 @@ var SearchListenerType;
|
|
361
385
|
SearchListenerType["beforeSearch"] = "beforeSearch";
|
362
386
|
})(SearchListenerType || (SearchListenerType = {}));
|
363
387
|
|
388
|
+
exports.SaveErrorsEnum = void 0;
|
389
|
+
(function (SaveErrorsEnum) {
|
390
|
+
SaveErrorsEnum["LINK_AND_FILE_AT_THE_SAME_TIME"] = "LINK_AND_FILE_AT_THE_SAME_TIME";
|
391
|
+
SaveErrorsEnum["ANY_LINK_OR_FILE_FILLED"] = "ANY_LINK_OR_FILE_FILLED";
|
392
|
+
SaveErrorsEnum["UNKNOWN"] = "UNKNOWN";
|
393
|
+
SaveErrorsEnum["DESCRIPTION_CANNOT_BE_CHANGED"] = "DESCRIPTION_CANNOT_BE_CHANGED";
|
394
|
+
})(exports.SaveErrorsEnum || (exports.SaveErrorsEnum = {}));
|
395
|
+
|
364
396
|
exports.PesquisaFetcher = PesquisaFetcher;
|
365
397
|
exports.buildGridMetadata = buildGridMetadata;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const ConfigStorage = require('./ConfigStorage-
|
3
|
+
const ConfigStorage = require('./ConfigStorage-48ba265b.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
6
|
-
const constants = require('./constants-
|
5
|
+
const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
|
6
|
+
const constants = require('./constants-6d82e405.js');
|
7
7
|
|
8
8
|
class SnkFormConfigManager {
|
9
9
|
constructor(configName, resourceID, onConfigChange, dataUnit) {
|
@@ -31,8 +31,7 @@ class SnkFormConfigManager {
|
|
31
31
|
});
|
32
32
|
}
|
33
33
|
getEmptyConfig() {
|
34
|
-
|
35
|
-
return config;
|
34
|
+
return this.buildFormMetadataUITabs({ fields: [], emptyConfig: true }, true);
|
36
35
|
}
|
37
36
|
saveConfig(config) {
|
38
37
|
const configToSave = core.ObjectUtils.copy(config);
|