@sankhyalabs/sankhyablocks 8.16.0-ms.11 → 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 +4 -2
- 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
@@ -1,5 +1,5 @@
|
|
1
1
|
import { UserInterface, DataType, ApplicationContext, ErrorException } from '@sankhyalabs/core';
|
2
|
-
import { d as dist, D as DataFetcher } from './DataFetcher-
|
2
|
+
import { d as dist, D as DataFetcher } from './DataFetcher-88e56266.js';
|
3
3
|
|
4
4
|
function buildGridMetadata(rawValue) {
|
5
5
|
const fieldsMetadata = buildFieldsMetadata(rawValue.fieldsMetadata);
|
@@ -148,7 +148,20 @@ class PesquisaFetcher {
|
|
148
148
|
});
|
149
149
|
});
|
150
150
|
}
|
151
|
-
|
151
|
+
buildDescriptionCacheKey(entityName, codeValue) {
|
152
|
+
return `${entityName}__${codeValue}`;
|
153
|
+
}
|
154
|
+
async loadByCode(entityName, codeValue, criteria, searchOptions) {
|
155
|
+
const cacheKey = this.buildDescriptionCacheKey(entityName, codeValue);
|
156
|
+
const cachedValue = PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey];
|
157
|
+
if (cachedValue) {
|
158
|
+
return Promise.resolve(cachedValue);
|
159
|
+
}
|
160
|
+
const result = await this.loadAdvancedSearch(entityName, undefined, criteria, searchOptions, codeValue);
|
161
|
+
PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey] = result;
|
162
|
+
return result;
|
163
|
+
}
|
164
|
+
loadAdvancedSearch(entityName, argument, criteria, searchOptions, codeValue) {
|
152
165
|
var _a, _b, _c, _d, _e;
|
153
166
|
const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
|
154
167
|
const values = {
|
@@ -192,12 +205,22 @@ class PesquisaFetcher {
|
|
192
205
|
const reqBody = {
|
193
206
|
"serviceName": serviceName,
|
194
207
|
"requestBody": {
|
195
|
-
"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, "
|
208
|
+
"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 }),
|
196
209
|
"clientEventList": {
|
197
210
|
"clientEvent": []
|
198
211
|
}
|
199
212
|
}
|
200
213
|
};
|
214
|
+
if (codeValue == undefined) {
|
215
|
+
reqBody.requestBody.criteria.query = {
|
216
|
+
"$": argument
|
217
|
+
};
|
218
|
+
}
|
219
|
+
else {
|
220
|
+
reqBody.requestBody.criteria.pk = {
|
221
|
+
"$": codeValue
|
222
|
+
};
|
223
|
+
}
|
201
224
|
const urlOptions = {
|
202
225
|
urlParams: {
|
203
226
|
"quietMode": true
|
@@ -307,6 +330,7 @@ class PesquisaFetcher {
|
|
307
330
|
return params;
|
308
331
|
}
|
309
332
|
}
|
333
|
+
PesquisaFetcher.DESCRIPTIONS_BY_CODE = {};
|
310
334
|
function buildLoadGridConfigPayload(entityName) {
|
311
335
|
return {
|
312
336
|
'gridConfig': {
|
@@ -359,4 +383,12 @@ var SearchListenerType;
|
|
359
383
|
SearchListenerType["beforeSearch"] = "beforeSearch";
|
360
384
|
})(SearchListenerType || (SearchListenerType = {}));
|
361
385
|
|
362
|
-
|
386
|
+
var SaveErrorsEnum;
|
387
|
+
(function (SaveErrorsEnum) {
|
388
|
+
SaveErrorsEnum["LINK_AND_FILE_AT_THE_SAME_TIME"] = "LINK_AND_FILE_AT_THE_SAME_TIME";
|
389
|
+
SaveErrorsEnum["ANY_LINK_OR_FILE_FILLED"] = "ANY_LINK_OR_FILE_FILLED";
|
390
|
+
SaveErrorsEnum["UNKNOWN"] = "UNKNOWN";
|
391
|
+
SaveErrorsEnum["DESCRIPTION_CANNOT_BE_CHANGED"] = "DESCRIPTION_CANNOT_BE_CHANGED";
|
392
|
+
})(SaveErrorsEnum || (SaveErrorsEnum = {}));
|
393
|
+
|
394
|
+
export { PesquisaFetcher as P, SaveErrorsEnum as S, PESQUISA_VIEW_MODE as a, buildGridMetadata as b };
|
package/dist/esm/{PersonalizedFilterUtils-e2b38ef7.js → PersonalizedFilterUtils-2db38ff2.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DataType, NumberUtils, DateUtils, UserInterface } from '@sankhyalabs/core';
|
2
2
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
3
|
-
import { F as FilterOperand } from './index-
|
3
|
+
import { F as FilterOperand } from './index-8acbae97.js';
|
4
4
|
|
5
5
|
class PersonalizedFilterUtils {
|
6
6
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
1
|
+
import { C as ConfigStorage } from './ConfigStorage-79b9e180.js';
|
2
2
|
import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
|
3
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-
|
4
|
-
import {
|
3
|
+
import { F as FormConfigFetcher } from './form-config-fetcher-fa208a6c.js';
|
4
|
+
import { a as TAB_NAMES } from './constants-7b422de0.js';
|
5
5
|
|
6
6
|
class SnkFormConfigManager {
|
7
7
|
constructor(configName, resourceID, onConfigChange, dataUnit) {
|
@@ -29,8 +29,7 @@ class SnkFormConfigManager {
|
|
29
29
|
});
|
30
30
|
}
|
31
31
|
getEmptyConfig() {
|
32
|
-
|
33
|
-
return config;
|
32
|
+
return this.buildFormMetadataUITabs({ fields: [], emptyConfig: true }, true);
|
34
33
|
}
|
35
34
|
saveConfig(config) {
|
36
35
|
const configToSave = ObjectUtils.copy(config);
|
@@ -2,34 +2,39 @@ import { ApplicationContext } from '@sankhyalabs/core';
|
|
2
2
|
|
3
3
|
const snkDataUnitMessages = {
|
4
4
|
saveInfo: {
|
5
|
-
clone:
|
6
|
-
insert:
|
7
|
-
update:
|
5
|
+
clone: 'Duplicação realizada!',
|
6
|
+
insert: 'Inclusão realizada!',
|
7
|
+
update: 'Alteração realizada!',
|
8
|
+
updateMultiples: 'Múltiplos registros alterados com sucesso!'
|
8
9
|
},
|
9
10
|
cancelInfo: {
|
10
|
-
clone:
|
11
|
-
insert:
|
12
|
-
update:
|
11
|
+
clone: 'Duplicação descartada!',
|
12
|
+
insert: 'A inclusão foi descartada!',
|
13
|
+
update: 'A edição foi descartada!',
|
14
|
+
updateMultiples: 'A edição de múltiplos registros foi descartada com sucesso!'
|
13
15
|
},
|
14
16
|
confirm: {
|
15
|
-
cancel:
|
16
|
-
delete:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
17
|
+
cancel: 'Cancelar',
|
18
|
+
delete: 'Excluir',
|
19
|
+
updateMultipleConfirm: 'Confirmar edição',
|
20
|
+
yes: 'Sim',
|
21
|
+
no: 'Não',
|
22
|
+
},
|
23
|
+
removeInfo: 'Registro removido com sucesso!',
|
24
|
+
cancelConfirmationTitle: 'Aviso',
|
25
|
+
cancelConfirmation: 'As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?',
|
26
|
+
removeConfirmationTitle: 'Aviso',
|
27
|
+
removeConfirmation: 'Deseja realmente excluir o registro atual?',
|
28
|
+
multipleUpdateConfirmationTitle: 'Confirmar edição múltipla',
|
29
|
+
multipleUpdateConfirmationMessage: 'As informações dos campos abaixo foram alteradas e serão aplicadas a {{size}} registros',
|
30
|
+
forbidden: 'Sem permissão',
|
31
|
+
forbiddenUpdate: 'Não é possível fazer alterações. Verifique as permissões de acesso.',
|
32
|
+
forbiddenInsert: 'Não é possível incluir. Verifique as permissões de acesso.',
|
33
|
+
forbiddenClone: 'Não é possível duplicar. Verifique as permissões de acesso.',
|
34
|
+
forbiddenRemove: 'Não é possível remover. Verifique as permissões de acesso.',
|
35
|
+
removeAllConfirmation: 'Os <strong>{{size}} registros selecionados</strong> serão excluídos.<br/><br/><strong>Você realmente gostaria de continuar?</strong>',
|
36
|
+
removeAllInfo: 'Os {{size}} registros foram removidos com sucesso!',
|
37
|
+
fieldNameRequired: 'É necessário informar o nome da coluna.',
|
33
38
|
};
|
34
39
|
|
35
40
|
const snkFilterBarMessages = {
|
@@ -78,6 +83,12 @@ const snkFilterBarMessages = {
|
|
78
83
|
"cancelButtonLabel": "Limpar tudo",
|
79
84
|
"customFilters": "Filtros personalizados",
|
80
85
|
"quickFilters": "Filtros rápidos",
|
86
|
+
"defaultFilter": {
|
87
|
+
"title": "Filtro padrão",
|
88
|
+
"edit": "Editar filtro",
|
89
|
+
"remove": "Excluir filtro",
|
90
|
+
"create": "Criar filtro padrão",
|
91
|
+
},
|
81
92
|
"validations": {
|
82
93
|
"notFullFilled": {
|
83
94
|
"title": "Filtro parcialmente preenchido",
|
@@ -92,6 +103,7 @@ const snkFilterBarMessages = {
|
|
92
103
|
};
|
93
104
|
|
94
105
|
const snkTaskbarMessages = {
|
106
|
+
titleUpdateMultiple: "Editar Múltiplos",
|
95
107
|
titleUpdate: "Editar",
|
96
108
|
titlePrevious: "Anterior",
|
97
109
|
titleNext: "Próximo",
|
@@ -141,12 +153,13 @@ const snkCrudMessages = {
|
|
141
153
|
update: "Alterar registro",
|
142
154
|
clean: "{{ENTITY_NAME}}"
|
143
155
|
},
|
144
|
-
findColumn: "Buscar campos",
|
156
|
+
findColumn: "Buscar campos (Ctrl+F)",
|
145
157
|
goBackTitle: "Voltar"
|
146
158
|
};
|
147
159
|
|
148
160
|
const snkSimpleCrudMessages = {
|
149
|
-
findColumn: "Busca de colunas",
|
161
|
+
findColumn: "Busca de colunas (Ctrl+F)",
|
162
|
+
findFields: "Busca de campos (Ctrl+F)",
|
150
163
|
formConfigUnavaliable: {
|
151
164
|
title: "Aviso",
|
152
165
|
message: 'A opção "Configurar formulário" será disponibilizada em breve. Enquanto isso, acesse a configuração do fomulário através dos layouts anteriores, HTML5 ou Flex.'
|
@@ -204,23 +217,37 @@ const snkFormConfigMessages = {
|
|
204
217
|
mainArea: "Área principal",
|
205
218
|
tabGeneral: "Geral"
|
206
219
|
},
|
220
|
+
configs: {
|
221
|
+
buttonLabel: "Configurações",
|
222
|
+
selectedConfig: "configuração selecionada"
|
223
|
+
},
|
207
224
|
confirm: {
|
208
225
|
title: "Aviso",
|
209
226
|
deleteTab: "Você realmente deseja excluir a aba",
|
227
|
+
deleteGuide: "Deseja realmente excluir a guia <b>{0}</b>?",
|
210
228
|
cancel: "As alterações realizadas serão descartadas.<br/><br/><b>Gostaria de continuar?</b>",
|
211
229
|
exit: "Ao sair as alterações serão descartadas.<br/><br/><b>Você realmente gostaria de sair?</b>",
|
212
|
-
apply: "A <b>{0}</b> irá substituir a
|
230
|
+
apply: "A <b>{0}</b> irá substituir a configuração atual!<br/><br/><b>Deseja continuar?</b>",
|
213
231
|
group: "Não é possível salvar as configurações com um grupo vazio!",
|
214
232
|
labelCancel: "Cancelar",
|
215
233
|
labelDelete: "Excluir"
|
216
234
|
},
|
235
|
+
noGuideSelected: {
|
236
|
+
title: "Atenção",
|
237
|
+
message: "Selecione uma guia para iniciar a configuração!"
|
238
|
+
},
|
217
239
|
alert: {
|
218
240
|
titleGroupExists: "Já existe um grupo com título",
|
241
|
+
titleGroupEditing: "Há um <b>grupo<b/> em edição. <br/> Finalize a edição para salvar as configurações.",
|
242
|
+
titleGuideExists: "Já existe uma guia com título",
|
243
|
+
titleGuideEditing: "Há uma <b>guia<b/> em edição. <br/> Finalize a edição para salvar as configurações.",
|
244
|
+
titleGuideReservedName: "Este título é reservado para configurações internas do sistema e não pode ser utilizado.",
|
219
245
|
infoValidTitle: "Por favor, digite um título válido.",
|
220
246
|
inTab: "na aba"
|
221
247
|
},
|
222
248
|
info: {
|
223
|
-
successfullyConfigSaved: "As configurações foram salvas com sucesso!"
|
249
|
+
successfullyConfigSaved: "As configurações foram salvas com sucesso!",
|
250
|
+
successfullyGuideDeleted: 'A guia "{0}" foi excluída. Salve para confirmar a alteração.'
|
224
251
|
}
|
225
252
|
};
|
226
253
|
const snkFieldConfigMessages = {
|
@@ -245,7 +272,7 @@ const snkConfiguratorMessages = {
|
|
245
272
|
};
|
246
273
|
|
247
274
|
const snkGridMessages = {
|
248
|
-
findColumn: "Busca de colunas",
|
275
|
+
findColumn: "Busca de colunas (Ctrl+F)",
|
249
276
|
cancelConfirmation: {
|
250
277
|
title: "Aviso",
|
251
278
|
message: "As alterações realizadas serão descartadas<br/><br/><b>Você realmente gostaria de cancelar?</b>",
|
@@ -388,6 +415,8 @@ const snkPersonalizedFilterMessages = {
|
|
388
415
|
info: {
|
389
416
|
titleEdit: "Editar filtro personalizado",
|
390
417
|
titleAdd: "Criar filtro personalizado",
|
418
|
+
titleCreateDefault: "Aplicar filtro padrão",
|
419
|
+
titleEditDefault: "Editar filtro padrão",
|
391
420
|
titleCollapsible: "Expressão a ser aplicada (gerada pelo assistente)",
|
392
421
|
labelSearchField: "Buscar campo",
|
393
422
|
labelOperator: "Operador",
|
@@ -410,7 +439,10 @@ const snkPersonalizedFilterMessages = {
|
|
410
439
|
applyExpression: "Expressão a ser aplicada:",
|
411
440
|
tooltipDisabledAssistentMode: "Expressão não suportada pelo assistente.",
|
412
441
|
activeModeAdvanced: "Ativar modo avançado",
|
413
|
-
activeModeAssistent: "Ativar modo assistente"
|
442
|
+
activeModeAssistent: "Ativar modo assistente",
|
443
|
+
textInputDisabled: "Campo desabilitado para filtros padrões",
|
444
|
+
checkVariableDisabled: "Filtro padrão não pode ser variável.",
|
445
|
+
deleteDefaultFilterConfirm: "Deseja excluir o <b>filtro padrão</b>?",
|
414
446
|
},
|
415
447
|
confirmExpression: {
|
416
448
|
title: "Aviso",
|
@@ -663,6 +695,7 @@ var OperationMap;
|
|
663
695
|
OperationMap["INSERT"] = "insert";
|
664
696
|
OperationMap["UPDATE"] = "update";
|
665
697
|
OperationMap["CLEAN"] = "clean";
|
698
|
+
OperationMap["UPDATE_MULTIPLES"] = "updateMultiples";
|
666
699
|
})(OperationMap || (OperationMap = {}));
|
667
700
|
|
668
701
|
export { OperationMap as O, SnkMessageBuilder as S };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ObjectUtils } from '@sankhyalabs/core';
|
2
|
-
import { R as ResourceFetcher } from './form-config-fetcher-
|
2
|
+
import { R as ResourceFetcher } from './form-config-fetcher-fa208a6c.js';
|
3
3
|
|
4
4
|
class AuthFetcher extends ResourceFetcher {
|
5
5
|
getData(resourceID) {
|
@@ -0,0 +1,75 @@
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
|
2
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
3
|
+
|
4
|
+
const configHeaderCss = ".sc-config-header-h{display:flex;padding-top:12px;padding-left:12px;align-items:center;width:100%;justify-content:space-between}.left-group.sc-config-header{display:flex;gap:8px}.right-group.sc-config-header{padding-right:18px;display:flex}";
|
5
|
+
|
6
|
+
const ConfigHeader = class {
|
7
|
+
constructor(hostRef) {
|
8
|
+
registerInstance(this, hostRef);
|
9
|
+
this.configClose = createEvent(this, "configClose", 7);
|
10
|
+
this.saveConfig = createEvent(this, "saveConfig", 7);
|
11
|
+
this.isEditingGuide = false;
|
12
|
+
this.isEditingGroup = false;
|
13
|
+
this.configOptions = [];
|
14
|
+
this.selectedConfig = undefined;
|
15
|
+
this.messagesBuilder = undefined;
|
16
|
+
this.hasChanges = false;
|
17
|
+
this.optionConfigChanged = false;
|
18
|
+
}
|
19
|
+
handleIsEditingGuideName({ detail }) {
|
20
|
+
this.isEditingGuide = detail;
|
21
|
+
}
|
22
|
+
handleIsEditingGroupName({ detail }) {
|
23
|
+
this.isEditingGroup = detail;
|
24
|
+
}
|
25
|
+
saveFormConfig() {
|
26
|
+
if (this.isEditingGuide || this.isEditingGroup) {
|
27
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
28
|
+
const message = this.isEditingGuide
|
29
|
+
? this.getMessage('snkFormConfig.alert.titleGuideEditing')
|
30
|
+
: this.getMessage('snkFormConfig.alert.titleGroupEditing');
|
31
|
+
ApplicationUtils.alert(title, message);
|
32
|
+
return;
|
33
|
+
}
|
34
|
+
this.saveConfig.emit();
|
35
|
+
}
|
36
|
+
async closeFormConfig() {
|
37
|
+
if (this.hasChanges) {
|
38
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
39
|
+
const msg = this.getMessage('snkFormConfig.confirm.cancel');
|
40
|
+
const confirm = await ApplicationUtils.confirm(title, msg);
|
41
|
+
if (!confirm)
|
42
|
+
return;
|
43
|
+
}
|
44
|
+
this.configClose.emit();
|
45
|
+
}
|
46
|
+
getMessage(key, params) {
|
47
|
+
return this.messagesBuilder.getMessage(key, params);
|
48
|
+
}
|
49
|
+
openConfirmDialog(msg = '', title = this.getMessage('snkFormConfig.confirm.title')) {
|
50
|
+
return ApplicationUtils.confirm(title, msg);
|
51
|
+
}
|
52
|
+
async applyOptionConfig() {
|
53
|
+
var _a, _b;
|
54
|
+
const name = (_b = (_a = this.selectedConfig) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getMessage('snkFormConfig.configs.selectedConfig');
|
55
|
+
const msg = this.getMessage('snkFormConfig.confirm.apply').replace('{0}', name);
|
56
|
+
const confirm = await this.openConfirmDialog(msg);
|
57
|
+
if (confirm) {
|
58
|
+
this.saveConfig.emit();
|
59
|
+
}
|
60
|
+
}
|
61
|
+
renderSaveActions() {
|
62
|
+
if (!this.hasChanges && !this.optionConfigChanged)
|
63
|
+
return;
|
64
|
+
if (this.hasChanges) {
|
65
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: 'Cancelar', label: 'Cancelar', onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: 'Salvar', label: 'Salvar', class: 'ez-button--primary ez-padding-left--medium', onClick: () => this.saveFormConfig(), size: "medium" })));
|
66
|
+
}
|
67
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: 'Cancelar', label: 'Cancelar', onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: 'Salvar', label: this.getMessage('snkFormConfig.applyConfig'), class: 'ez-button--primary ez-padding-left--medium', onClick: async () => await this.applyOptionConfig(), size: "medium" })));
|
68
|
+
}
|
69
|
+
render() {
|
70
|
+
return (h(Host, null, h("div", { class: 'left-group' }, h("ez-button", { mode: "icon", title: this.getMessage('snkFormConfig.goBackTitle'), iconName: "arrow_back", class: "ez-padding--small", size: "small", onClick: this.closeFormConfig.bind(this), id: "formConfigToBack" }), h("h1", { class: "ez-title ez-title--primary ez-title--extra-large ez-padding--small" }, this.getMessage('snkFormConfig.title')), h("configs-button", { hasChanges: this.hasChanges, configOptions: this.configOptions, selectedConfig: this.selectedConfig, messagesBuilder: this.messagesBuilder })), this.renderSaveActions()));
|
71
|
+
}
|
72
|
+
};
|
73
|
+
ConfigHeader.style = configHeaderCss;
|
74
|
+
|
75
|
+
export { ConfigHeader as config_header };
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-479e1293.js';
|
2
|
+
import { ObjectUtils } from '@sankhyalabs/core';
|
3
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
+
|
5
|
+
const configsButtonCss = ".dropdown-container.sc-configs-button{font-family:'Roboto';font-size:12px;font-weight:400;display:flex;flex-direction:column;color:#2b3a54;width:200px}.main-item.sc-configs-button{padding:12px;font-size:14px;cursor:pointer;transition:all .2s ease-in-out;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:start}.main-item.sc-configs-button ez-icon.sc-configs-button{--ez-icon--color:#008561}.main-item.sc-configs-button:nth-of-type(1){padding-bottom:6px}.main-item.sc-configs-button:nth-of-type(2){padding-top:6px}.main-item.sc-configs-button:hover{background-color:#FAFCFF}.item-label.sc-configs-button{display:flex}";
|
6
|
+
|
7
|
+
const ConfigsButton = class {
|
8
|
+
constructor(hostRef) {
|
9
|
+
registerInstance(this, hostRef);
|
10
|
+
this.formConfigOptionSelected = createEvent(this, "formConfigOptionSelected", 7);
|
11
|
+
this.configOptions = [];
|
12
|
+
this.selectedConfig = undefined;
|
13
|
+
this.hasChanges = false;
|
14
|
+
this.messagesBuilder = undefined;
|
15
|
+
}
|
16
|
+
getMessage(key, params) {
|
17
|
+
return this.messagesBuilder.getMessage(key, params);
|
18
|
+
}
|
19
|
+
async showShareConfigOptions() {
|
20
|
+
if (this._refOptionsPopover && this._refShareConfigBtn) {
|
21
|
+
await this._refOptionsPopover.showUnder(this._refShareConfigBtn);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
async handleSelectOption(option) {
|
25
|
+
if (ObjectUtils.equals(option, this.selectedConfig))
|
26
|
+
return;
|
27
|
+
if (this.hasChanges) {
|
28
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
29
|
+
const msg = this.getMessage('snkFormConfig.confirm.cancel');
|
30
|
+
const confirm = await ApplicationUtils.confirm(title, msg);
|
31
|
+
if (!confirm)
|
32
|
+
return;
|
33
|
+
}
|
34
|
+
this.selectedConfig = option;
|
35
|
+
this.formConfigOptionSelected.emit(option);
|
36
|
+
await this._refOptionsPopover.hide();
|
37
|
+
}
|
38
|
+
getButtonLabel() {
|
39
|
+
var _a, _b;
|
40
|
+
return (_b = (_a = this.selectedConfig) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getMessage('snkFormConfig.configs.buttonLabel');
|
41
|
+
}
|
42
|
+
renderConfigOptions() {
|
43
|
+
return this.configOptions.map((option) => {
|
44
|
+
return (h("div", { class: `main-item`, onClick: async () => await this.handleSelectOption(option) }, h("span", { class: 'item-label' }, " ", option.name), this.renderCheckIcon(option)));
|
45
|
+
});
|
46
|
+
}
|
47
|
+
renderCheckIcon(option) {
|
48
|
+
if (this.selectedConfig && this.selectedConfig.origin === option.origin)
|
49
|
+
return h("ez-icon", { iconName: "check" });
|
50
|
+
}
|
51
|
+
render() {
|
52
|
+
return (h(Host, null, h("ez-button", { ref: ref => this._refShareConfigBtn = ref, label: this.getButtonLabel(), onClick: async () => await this.showShareConfigOptions() }, h("ez-icon", { slot: "rightIcon", iconName: "chevron-down" })), h("ez-popover-plus", { ref: ref => this._refOptionsPopover = ref, autoClose: true, overlayType: "none" }, h("div", { class: 'dropdown-container' }, this.renderConfigOptions()))));
|
53
|
+
}
|
54
|
+
};
|
55
|
+
ConfigsButton.style = configsButtonCss;
|
56
|
+
|
57
|
+
export { ConfigsButton as configs_button };
|
@@ -5,11 +5,6 @@ var VIEW_MODE;
|
|
5
5
|
VIEW_MODE[VIEW_MODE["FORM"] = 1] = "FORM";
|
6
6
|
VIEW_MODE[VIEW_MODE["ATTACHMENT"] = 2] = "ATTACHMENT";
|
7
7
|
})(VIEW_MODE || (VIEW_MODE = {}));
|
8
|
-
const ACTION_CONFIG = {
|
9
|
-
add: 'ADD',
|
10
|
-
remove: 'REMOVE',
|
11
|
-
configuration: 'CONFIGURATION'
|
12
|
-
};
|
13
8
|
const VARS_BY_TYPE = {
|
14
9
|
UserInterface: {
|
15
10
|
DATE: [{ label: "Data atual", value: "${data}" }],
|
@@ -26,35 +21,14 @@ const DEFAULT_TYPE = {
|
|
26
21
|
fixed: "F",
|
27
22
|
variable: "V"
|
28
23
|
};
|
29
|
-
const CONFIG_EVENTS = {
|
30
|
-
closeModal: "ezCloseModal",
|
31
|
-
cancelConfig: "cancelConfig",
|
32
|
-
changeConfig: "changeConfig",
|
33
|
-
configChanged: "configChanged",
|
34
|
-
fieldChanged: "ezChange",
|
35
|
-
dragStartDistance: 40
|
36
|
-
};
|
37
|
-
const CONFIG_SORTABLE_EVENTS = {
|
38
|
-
dragStart: "sortable:start",
|
39
|
-
dragSort: "sortable:sort",
|
40
|
-
dragSorted: "sortable:sorted",
|
41
|
-
dragStop: "sortable:stop"
|
42
|
-
};
|
43
|
-
const KEY_EVENTS = {
|
44
|
-
enter: "Enter",
|
45
|
-
arrowLeft: "ArrowLeft",
|
46
|
-
arrowRight: "ArrowRight",
|
47
|
-
tab: "Tab",
|
48
|
-
escape: "Escape"
|
49
|
-
};
|
50
|
-
const TYPE_ACTIONS = {
|
51
|
-
rename: "RENAME",
|
52
|
-
hide: "HIDE",
|
53
|
-
show: "SHOW",
|
54
|
-
delete: "DELETE"
|
55
|
-
};
|
56
24
|
const TAB_NAMES = {
|
57
|
-
main: "__main"
|
25
|
+
main: "__main",
|
26
|
+
general: "Geral",
|
27
|
+
newGuide: "Nova guia",
|
28
|
+
};
|
29
|
+
const GROUP_NAMES = {
|
30
|
+
noGroup: "__no_group",
|
31
|
+
newGroup: "Novo Grupo",
|
58
32
|
};
|
59
33
|
const TAGS_BY_TYPE = {
|
60
34
|
LONGTEXT: "ez-text-area",
|
@@ -67,6 +41,7 @@ const TAGS_BY_TYPE = {
|
|
67
41
|
CHECKBOX: "ez-check",
|
68
42
|
OPTIONSELECTOR: "ez-combo-box",
|
69
43
|
SEARCH: "ez-search",
|
44
|
+
SEARCHPLUS: "ez-search-plus",
|
70
45
|
INTEGERNUMBER: "ez-number-input",
|
71
46
|
DECIMALNUMBER: "ez-number-input"
|
72
47
|
};
|
@@ -99,4 +74,4 @@ var TEMPLATES_SKELETON;
|
|
99
74
|
TEMPLATES_SKELETON[TEMPLATES_SKELETON["FORM_WITH_SIDEBAR"] = 4] = "FORM_WITH_SIDEBAR";
|
100
75
|
})(TEMPLATES_SKELETON || (TEMPLATES_SKELETON = {}));
|
101
76
|
|
102
|
-
export {
|
77
|
+
export { DEFAULT_TYPE as D, GROUP_NAMES as G, ORDER_VALUES as O, REPORT_LAUNCHER_RESOURCE_ID as R, SIMPLE_CRUD_MODE as S, TEMPLATES_SKELETON as T, VIEW_MODE as V, TAB_NAMES as a, VARS_BY_TYPE as b, TAGS_BY_TYPE as c };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ObjectUtils, DataUnit, DataUnitInMemoryLoader, ApplicationContext, StringUtils, UserInterface, DataUnitStorage, DataType, ChangeOperation } from '@sankhyalabs/core';
|
2
|
-
import { D as DataFetcher, d as dist } from './DataFetcher-
|
2
|
+
import { D as DataFetcher, d as dist } from './DataFetcher-88e56266.js';
|
3
3
|
import { DISTINCT_FILTER_NAME_PREFIX } from '@sankhyalabs/ezui/dist/collection/utils/constants';
|
4
4
|
import { DataUnitTransient } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
5
5
|
import { ColumnFilterManager } from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -125,7 +125,7 @@ class PreloadManager {
|
|
125
125
|
static getSortingFunction(dataUnit, sorting) {
|
126
126
|
return SortingUtils.getSortingFunction(dataUnit, sorting);
|
127
127
|
}
|
128
|
-
static async getDistinct(dataUnit, fieldName) {
|
128
|
+
static async getDistinct(dataUnit, fieldName, onlyLabel = false) {
|
129
129
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
130
130
|
return Promise.resolve(ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
131
131
|
}
|
@@ -144,7 +144,10 @@ class PreloadManager {
|
|
144
144
|
if (fieldValue == undefined) {
|
145
145
|
return { key: null, value: null };
|
146
146
|
}
|
147
|
-
|
147
|
+
let value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
148
|
+
if ((fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label) && onlyLabel) {
|
149
|
+
return { key: fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label, value: dataUnit.getFormattedValue(fieldName, value) };
|
150
|
+
}
|
148
151
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
149
152
|
})
|
150
153
|
.then(result => {
|
@@ -495,11 +498,12 @@ class DatasetStrategy {
|
|
495
498
|
return InMemoryLoader.getConvertedValue(descriptor, strValue);
|
496
499
|
}
|
497
500
|
getSearchDescriptionField(descriptor) {
|
498
|
-
if (
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
501
|
+
if (![UserInterface.SEARCH, UserInterface.SEARCHPLUS].includes(descriptor.userInterface)) {
|
502
|
+
return undefined;
|
503
|
+
}
|
504
|
+
const { ENTITYNAME, mergedFrom, DESCRIPTIONFIELD } = descriptor.properties;
|
505
|
+
if (!StringUtils.isEmpty(DESCRIPTIONFIELD)) {
|
506
|
+
return mergedFrom != undefined ? `${mergedFrom}.${ENTITYNAME}.${DESCRIPTIONFIELD}` : `${ENTITYNAME}.${DESCRIPTIONFIELD}`;
|
503
507
|
}
|
504
508
|
return undefined;
|
505
509
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
var ActionDefaultFilter;
|
2
|
+
(function (ActionDefaultFilter) {
|
3
|
+
ActionDefaultFilter["EDIT"] = "edit";
|
4
|
+
ActionDefaultFilter["REMOVE"] = "remove";
|
5
|
+
ActionDefaultFilter["CREATE"] = "create";
|
6
|
+
})(ActionDefaultFilter || (ActionDefaultFilter = {}));
|
7
|
+
|
8
|
+
export { ActionDefaultFilter as A };
|