@sankhyalabs/sankhyablocks 10.1.0-dev.4 → 10.1.0-dev.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-b29e31be.js → ConfigStorage-a1fab5ca.js} +19 -2
- package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
- package/dist/cjs/{DataFetcher-ed9d97ea.js → DataFetcher-384d2ce8.js} +2 -2733
- package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-28fe4668.js} +44 -0
- package/dist/cjs/{ISave-81eb2fbc.js → ISave-ecbe9336.js} +1 -1
- package/dist/cjs/ImageUtils-c46f2d11.js +142 -0
- package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
- package/dist/cjs/{SnkFormConfigManager-6838389c.js → SnkFormConfigManager-44386305.js} +7 -7
- package/dist/cjs/SnkMessageBuilder-a9300ebe.js +2833 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-1e804147.js → SnkMultiSelectionListDataSource-b951ed91.js} +61 -47
- package/dist/cjs/{auth-fetcher-cc28d847.js → auth-fetcher-6b134ec4.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +1 -1
- package/dist/cjs/configs-button.cjs.entry.js +1 -1
- package/dist/cjs/css-shim-a27d231b.js +6 -0
- package/dist/cjs/{dataunit-fetcher-ab1cc071.js → dataunit-fetcher-93f53260.js} +26 -3
- package/dist/cjs/dom-ff96a4bc.js +75 -0
- package/dist/cjs/field-config_2.cjs.entry.js +3 -3
- package/dist/cjs/fields-layout.cjs.entry.js +8 -5
- package/dist/cjs/fields-selector.cjs.entry.js +3 -3
- package/dist/cjs/{form-config-fetcher-f0897eb5.js → form-config-fetcher-45d1964c.js} +19 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
- package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1529 -177
- package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
- package/dist/cjs/loader.cjs.js +16 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +6 -5
- package/dist/cjs/sankhyablocks.cjs.js +132 -4
- package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
- package/dist/cjs/snk-actions-button_9.cjs.entry.js +160 -113
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +29 -9
- package/dist/cjs/snk-attach.cjs.entry.js +53 -26
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +351 -108
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +9 -7
- package/dist/cjs/{snk-data-unit-68992932.js → snk-data-unit-6abc5efc.js} +21 -12
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -4
- package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +19 -20
- package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +2 -2
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
- package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js} +41 -3
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +147 -94
- 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 +2 -2
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -4
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +11 -7
- package/dist/cjs/snk-filter-period.cjs.entry.js +14 -7
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +70 -8
- package/dist/cjs/snk-form_2.cjs.entry.js +34 -10
- package/dist/cjs/snk-grid.cjs.entry.js +63 -30
- package/dist/cjs/{snk-guides-viewer-8b841753.js → snk-guides-viewer-b4ca3437.js} +114 -188
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -18
- package/dist/cjs/snk-image-input.cjs.entry.js +148 -0
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +72 -0
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +8 -7
- package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -6
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +30 -35
- package/dist/cjs/snk-taskbar.cjs.entry.js +237 -168
- package/dist/cjs/{sortable.esm-9a110bb7.js → sortable.esm-b87669ab.js} +76 -90
- package/dist/cjs/taskbar-elements-80eddec8.js +152 -0
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +10 -1
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -3
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -0
- package/dist/collection/components/snk-application/snk-application.js +20 -2
- package/dist/collection/components/snk-attach/snk-attach.css +29 -7
- package/dist/collection/components/snk-attach/snk-attach.js +82 -19
- package/dist/collection/components/snk-crud/snk-crud.css +46 -0
- package/dist/collection/components/snk-crud/snk-crud.js +190 -96
- package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +5 -5
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +90 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +165 -179
- package/dist/collection/components/snk-crud/utils/taskbarUtils.js +144 -0
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +20 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +13 -9
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +14 -7
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +5 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -2
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +7 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +22 -8
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +166 -78
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +42 -0
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -6
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +6 -3
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -4
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +5 -3
- package/dist/collection/components/snk-form-config/snk-form-config.js +53 -6
- package/dist/collection/components/snk-grid/snk-grid.css +24 -3
- package/dist/collection/components/snk-grid/snk-grid.js +170 -18
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +153 -51
- package/dist/collection/components/snk-image-input/snk-image-input.css +3 -0
- package/dist/collection/components/snk-image-input/snk-image-input.js +326 -0
- package/dist/collection/components/snk-image-input/utils/ImageUtils.js +133 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +1 -1
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +1 -1
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +0 -4
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +35 -23
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +54 -37
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
- package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +304 -174
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
- package/dist/collection/lib/configs/ConfigStorage.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +24 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +18 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/collection/lib/message/messageResourceEnUSUtils.js +2 -0
- package/dist/collection/lib/message/messageResourceEsESUtils.js +2 -0
- package/dist/collection/lib/message/messageResourcePtBRUtils.js +2 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/en-us/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -2
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/es-es/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +8 -0
- package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +1 -1
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +8 -1
- package/dist/collection/lib/message/resources/pt-br/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -2
- package/dist/components/ConfigStorage.js +17 -0
- package/dist/components/ContinuousInsertUtils.js +1 -1
- package/dist/components/DataFetcher.js +3 -2713
- package/dist/components/PersonalizedFilterUtils.js +13 -0
- package/dist/components/SnkFormConfigManager.js +6 -6
- package/dist/components/SnkMessageBuilder.js +2831 -0
- package/dist/components/dataunit-fetcher.js +25 -2
- package/dist/components/field-config2.js +44 -2
- package/dist/components/fields-layout2.js +6 -3
- package/dist/components/form-config-fetcher.js +18 -0
- package/dist/components/guides-configurator2.js +5 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index2.js +90 -21
- package/dist/components/snk-actions-button2.js +6 -3
- package/dist/components/snk-application2.js +22 -2
- package/dist/components/snk-attach2.js +59 -29
- package/dist/components/snk-crud.js +435 -174
- package/dist/components/snk-custom-slot-guide.d.ts +11 -0
- package/dist/components/snk-custom-slot-guide.js +55 -0
- package/dist/components/snk-data-exporter2.js +3 -1
- package/dist/components/snk-data-unit2.js +10 -1
- package/dist/components/snk-detail-view2.js +250 -292
- package/dist/components/snk-entity-search.d.ts +11 -0
- package/dist/components/snk-entity-search.js +6 -0
- package/dist/components/snk-entity-search2.js +231 -0
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +116 -80
- package/dist/components/snk-filter-detail2.js +1 -1
- package/dist/components/snk-filter-item2.js +9 -3
- package/dist/components/snk-filter-modal2.js +22 -9
- package/dist/components/snk-filter-number.js +12 -8
- package/dist/components/snk-filter-period.js +13 -6
- package/dist/components/snk-filter-text.js +1 -1
- package/dist/components/snk-form-config2.js +29 -5
- package/dist/components/snk-form-view2.js +79 -10
- package/dist/components/snk-grid-config2.js +109 -50
- package/dist/components/snk-grid2.js +103 -59
- package/dist/components/snk-image-input.d.ts +11 -0
- package/dist/components/snk-image-input.js +6 -0
- package/dist/components/snk-image-input2.js +302 -0
- package/dist/components/snk-layout-form-config2.js +1 -1
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +0 -1
- package/dist/components/snk-simple-crud2.js +47 -46
- package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
- package/dist/components/snk-taskbar-skeleton.js +6 -0
- package/dist/components/snk-taskbar-skeleton2.js +29 -0
- package/dist/components/snk-taskbar2.js +310 -218
- package/dist/components/snk-view-representation2.js +1 -1
- package/dist/components/sortable.esm.js +76 -90
- package/dist/components/taskbar-actions-button2.js +21 -2
- package/dist/components/taskbar-split-button2.js +10 -1
- package/dist/esm/{ConfigStorage-13d80e36.js → ConfigStorage-76872695.js} +19 -2
- package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
- package/dist/esm/{DataFetcher-f4ccd9f3.js → DataFetcher-e60f8d53.js} +3 -2713
- package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-d09669f3.js} +43 -1
- package/dist/esm/{ISave-288fa9df.js → ISave-4929c071.js} +1 -1
- package/dist/esm/ImageUtils-7f3a4149.js +136 -0
- package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
- package/dist/esm/{SnkFormConfigManager-3ee2937b.js → SnkFormConfigManager-83f6b22f.js} +7 -7
- package/dist/esm/SnkMessageBuilder-1eb7a1af.js +2831 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-5d3a93f2.js → SnkMultiSelectionListDataSource-7fe25a58.js} +55 -41
- package/dist/esm/{auth-fetcher-59ab0c67.js → auth-fetcher-1a31c1e4.js} +1 -1
- package/dist/esm/config-header.entry.js +1 -1
- package/dist/esm/configs-button.entry.js +1 -1
- package/dist/esm/css-shim-9f2d321e.js +4 -0
- package/dist/esm/{dataunit-fetcher-c4f9f222.js → dataunit-fetcher-050b6d31.js} +25 -2
- package/dist/esm/dom-64053c71.js +73 -0
- package/dist/esm/field-config_2.entry.js +3 -3
- package/dist/esm/fields-layout.entry.js +8 -5
- package/dist/esm/fields-selector.entry.js +3 -3
- package/dist/esm/{form-config-fetcher-6a00fe9e.js → form-config-fetcher-b44b2727.js} +19 -1
- package/dist/esm/guides-configurator.entry.js +6 -4
- package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1521 -177
- package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
- package/dist/esm/loader.js +17 -3
- package/dist/esm/pesquisa-grid_2.entry.js +6 -5
- package/dist/esm/sankhyablocks.js +133 -5
- package/dist/esm/shadow-css-98135883.js +387 -0
- package/dist/esm/snk-actions-button_9.entry.js +161 -114
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +28 -8
- package/dist/esm/snk-attach.entry.js +52 -25
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +343 -100
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
- package/dist/esm/snk-data-exporter.entry.js +9 -7
- package/dist/esm/{snk-data-unit-0edeb967.js → snk-data-unit-ca2c9858.js} +12 -3
- package/dist/esm/snk-data-unit.entry.js +5 -4
- package/dist/esm/snk-default-filter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +17 -18
- package/dist/esm/snk-entity-list.entry.js +1 -1
- package/dist/esm/snk-entity-search.entry.js +207 -0
- package/dist/esm/snk-exporter-email-sender.entry.js +2 -2
- package/dist/esm/snk-expression-group_2.entry.js +2 -2
- package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js} +41 -4
- package/dist/esm/snk-filter-bar_4.entry.js +148 -95
- 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 +2 -2
- package/dist/esm/snk-filter-modal-item.entry.js +5 -4
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +11 -7
- package/dist/esm/snk-filter-period.entry.js +14 -7
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +2 -2
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +71 -9
- package/dist/esm/snk-form_2.entry.js +34 -10
- package/dist/esm/snk-grid.entry.js +60 -27
- package/dist/esm/{snk-guides-viewer-9cd4d20f.js → snk-guides-viewer-cc37535b.js} +115 -189
- package/dist/esm/snk-guides-viewer.entry.js +11 -18
- package/dist/esm/snk-image-input.entry.js +144 -0
- package/dist/esm/snk-layout-form-config.entry.js +68 -0
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +8 -7
- package/dist/esm/snk-pesquisa.entry.js +6 -6
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +28 -33
- package/dist/esm/snk-taskbar.entry.js +238 -169
- package/dist/esm/{sortable.esm-842f85a3.js → sortable.esm-bc277c12.js} +76 -90
- package/dist/esm/taskbar-elements-63651ca7.js +149 -0
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/p-09ba6bd4.js +1 -0
- package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
- package/dist/sankhyablocks/p-10f27dc6.entry.js +1 -0
- package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
- package/dist/sankhyablocks/p-20af4b6a.entry.js +1 -0
- package/dist/sankhyablocks/p-251aee41.entry.js +11 -0
- package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-27e0cd68.entry.js} +1 -1
- package/dist/sankhyablocks/p-2af815bb.entry.js +1 -0
- package/dist/sankhyablocks/p-2af8aca3.js +1 -0
- package/dist/sankhyablocks/p-2b3c284c.entry.js +1 -0
- package/dist/sankhyablocks/p-2c9d0870.js +2 -0
- package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
- package/dist/sankhyablocks/p-3072136e.js +1 -0
- package/dist/sankhyablocks/p-33492640.entry.js +1 -0
- package/dist/sankhyablocks/p-35317d9a.entry.js +1 -0
- package/dist/sankhyablocks/{p-1c2971e4.js → p-3704bf1b.js} +1 -1
- package/dist/sankhyablocks/p-3870748a.js +28 -0
- package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
- package/dist/sankhyablocks/{p-78ff8734.js → p-3c990841.js} +2 -2
- package/dist/sankhyablocks/p-420b39b5.js +1 -0
- package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
- package/dist/sankhyablocks/p-46f75667.entry.js +1 -0
- package/dist/sankhyablocks/{p-53599b26.js → p-4f7adf97.js} +2 -2
- package/dist/sankhyablocks/p-554c0e54.js +1 -0
- package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
- package/dist/sankhyablocks/p-68c1a093.js +1 -0
- package/dist/sankhyablocks/p-6ae7543b.entry.js +1 -0
- package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
- package/dist/sankhyablocks/p-771b137e.js +1 -0
- package/dist/sankhyablocks/p-77f608bc.entry.js +1 -0
- package/dist/sankhyablocks/p-7c8bf699.entry.js +1 -0
- package/dist/sankhyablocks/p-855ccf64.entry.js +1 -0
- package/dist/sankhyablocks/p-8a8900a9.entry.js +1 -0
- package/dist/sankhyablocks/p-8b4d6719.js +1 -0
- package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
- package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
- package/dist/sankhyablocks/p-95af0bb1.entry.js +1 -0
- package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-9742ea0e.entry.js} +1 -1
- package/dist/sankhyablocks/p-98241c21.entry.js +1 -0
- package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
- package/dist/sankhyablocks/p-9e7dc97d.entry.js +1 -0
- package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
- package/dist/sankhyablocks/p-a46ac091.js +1 -0
- package/dist/sankhyablocks/p-a73b6b00.js +1 -0
- package/dist/sankhyablocks/p-ab12f544.entry.js +1 -0
- package/dist/sankhyablocks/p-ab5e12fa.js +1 -0
- package/dist/sankhyablocks/p-ac384a1e.entry.js +1 -0
- package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
- package/dist/sankhyablocks/p-aff2d081.entry.js +1 -0
- package/dist/sankhyablocks/p-b3b51693.entry.js +1 -0
- package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
- package/dist/sankhyablocks/p-bab4cde4.entry.js +1 -0
- package/dist/sankhyablocks/p-c3ec6642.js +19 -0
- package/dist/sankhyablocks/p-cbb8e351.js +7 -0
- package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
- package/dist/sankhyablocks/p-ce3b284c.entry.js +1 -0
- package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
- package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
- package/dist/sankhyablocks/p-d972a9c1.js +60 -0
- package/dist/sankhyablocks/p-da455c82.js +12 -0
- package/dist/sankhyablocks/p-e5a3711f.js +1 -0
- package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-e737fd5a.entry.js} +1 -1
- package/dist/sankhyablocks/p-ee56dda6.entry.js +1 -0
- package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
- package/dist/sankhyablocks/p-efd18bc2.entry.js +1 -0
- package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
- package/dist/sankhyablocks/p-f185d5ad.js +1 -0
- package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
- package/dist/types/components/snk-application/snk-application.d.ts +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +20 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +37 -9
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +12 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +28 -18
- package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
- package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +5 -1
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +33 -16
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +6 -1
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +9 -2
- package/dist/types/components/snk-grid/snk-grid.d.ts +29 -1
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +11 -0
- package/dist/types/components/snk-image-input/snk-image-input.d.ts +56 -0
- package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
- package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
- package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +37 -23
- package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
- package/dist/types/components.d.ts +377 -5
- package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
- package/package.json +6 -7
- package/react/components.d.ts +4 -0
- package/react/components.js +4 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
- package/dist/cjs/taskbar-elements-fb5d1e08.js +0 -132
- package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
- package/dist/esm/snk-simple-bar.entry.js +0 -41
- package/dist/esm/taskbar-elements-faaf5d8f.js +0 -129
- package/dist/esm/taskbar-processor-3436124c.js +0 -51
- package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
- package/dist/sankhyablocks/p-0e279e7a.js +0 -1
- package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
- package/dist/sankhyablocks/p-1858c023.entry.js +0 -1
- package/dist/sankhyablocks/p-1a0caadb.js +0 -1
- package/dist/sankhyablocks/p-21107f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-26e0f63c.entry.js +0 -1
- package/dist/sankhyablocks/p-34df7eca.entry.js +0 -1
- package/dist/sankhyablocks/p-34f447ba.entry.js +0 -1
- package/dist/sankhyablocks/p-38e56b68.entry.js +0 -1
- package/dist/sankhyablocks/p-3abeeefa.entry.js +0 -1
- package/dist/sankhyablocks/p-3d021bef.entry.js +0 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-44939a0e.entry.js +0 -1
- package/dist/sankhyablocks/p-51833248.js +0 -7
- package/dist/sankhyablocks/p-5304753a.js +0 -60
- package/dist/sankhyablocks/p-557368df.entry.js +0 -1
- package/dist/sankhyablocks/p-55798617.js +0 -1
- package/dist/sankhyablocks/p-583151c5.entry.js +0 -1
- package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
- package/dist/sankhyablocks/p-6180de07.entry.js +0 -1
- package/dist/sankhyablocks/p-80014119.entry.js +0 -1
- package/dist/sankhyablocks/p-8f73da95.js +0 -1
- package/dist/sankhyablocks/p-91a9abb6.entry.js +0 -1
- package/dist/sankhyablocks/p-9317942f.js +0 -26
- package/dist/sankhyablocks/p-988afe78.js +0 -1
- package/dist/sankhyablocks/p-a2ed1ebd.entry.js +0 -1
- package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
- package/dist/sankhyablocks/p-a644a956.js +0 -1
- package/dist/sankhyablocks/p-ae108ffd.entry.js +0 -11
- package/dist/sankhyablocks/p-b4322b87.entry.js +0 -1
- package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
- package/dist/sankhyablocks/p-b987e15d.js +0 -1
- package/dist/sankhyablocks/p-bb2f5f38.js +0 -1
- package/dist/sankhyablocks/p-d8d8169b.js +0 -2
- package/dist/sankhyablocks/p-d9c54991.js +0 -1
- package/dist/sankhyablocks/p-dc851b6e.entry.js +0 -1
- package/dist/sankhyablocks/p-e9021f79.entry.js +0 -1
- package/dist/sankhyablocks/p-f15478a1.js +0 -1
- package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ApplicationContext, ElementIDUtils, StringUtils } from '@sankhyalabs/core';
|
|
1
|
+
import { ApplicationContext, ElementIDUtils, StringUtils, UserInterface } from '@sankhyalabs/core';
|
|
2
2
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
3
3
|
import { h, Host } from '@stencil/core';
|
|
4
4
|
import { ConfigStorage } from '../../lib/configs/ConfigStorage';
|
|
5
5
|
import { ORDER_VALUES } from '../../lib/utils/constants';
|
|
6
|
+
import { GRID_COLUMN_DEFAULT_WIDTHS } from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
6
7
|
export class SnkGridConfig {
|
|
7
8
|
constructor() {
|
|
8
9
|
this._orderListItems = [];
|
|
@@ -13,10 +14,12 @@ export class SnkGridConfig {
|
|
|
13
14
|
this._dataChanged = false;
|
|
14
15
|
this._componenteInternalKey = Date.now();
|
|
15
16
|
this.selectedIndex = 0;
|
|
16
|
-
this.columns =
|
|
17
|
+
this.columns = [];
|
|
18
|
+
this.originalColumns = [];
|
|
17
19
|
this.config = undefined;
|
|
18
20
|
this.configName = undefined;
|
|
19
21
|
this.resourceID = undefined;
|
|
22
|
+
this.metadata = undefined;
|
|
20
23
|
this._collapsibleBoxListOrder = true;
|
|
21
24
|
this._collapsibleBoxListSelect = false;
|
|
22
25
|
}
|
|
@@ -48,31 +51,49 @@ export class SnkGridConfig {
|
|
|
48
51
|
return newList;
|
|
49
52
|
}
|
|
50
53
|
createOrderList() {
|
|
54
|
+
var _a;
|
|
51
55
|
let newSortableList = this.getSortableColumns();
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
if (((_a = this._orderPriorityList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
57
|
+
const orderedList = [];
|
|
58
|
+
this._orderPriorityList.forEach((priorityItem) => {
|
|
59
|
+
const item = newSortableList.find(col => col.id === priorityItem.id);
|
|
60
|
+
if (item) {
|
|
61
|
+
orderedList.push(item);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
newSortableList.forEach(item => {
|
|
65
|
+
if (!orderedList.find(o => o.id === item.id)) {
|
|
66
|
+
orderedList.push(item);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
this._orderListItems = orderedList;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
newSortableList.sort((a, b) => {
|
|
73
|
+
//OS dois tem order index 0 e pelo menos um deles tem orientação de ordenação.
|
|
74
|
+
if (a.orderIndex == 0 && b.orderIndex == 0 && (a.ascending != undefined || b.ascending != undefined)) {
|
|
75
|
+
if (a.ascending != undefined)
|
|
76
|
+
return -1;
|
|
77
|
+
if (b.ascending != undefined)
|
|
78
|
+
return 1;
|
|
79
|
+
return 0;
|
|
80
|
+
//Pelo menos um deles tem order index diferente de 0 e os dois tem orientação de ordenação.
|
|
81
|
+
}
|
|
82
|
+
else if (a.ascending != undefined && b.ascending != undefined) {
|
|
83
|
+
return (a.orderIndex - b.orderIndex);
|
|
84
|
+
//Pelo menos um deles tem order index diferente de 0 e pelo menos um deles tem orientação de ordenação.
|
|
85
|
+
}
|
|
86
|
+
else if (a.ascending != undefined || b.ascending != undefined) {
|
|
87
|
+
if (a.ascending != undefined)
|
|
88
|
+
return -1;
|
|
89
|
+
if (b.ascending != undefined)
|
|
90
|
+
return 1;
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
63
93
|
return (a.orderIndex - b.orderIndex);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if (a.ascending != undefined)
|
|
68
|
-
return -1;
|
|
69
|
-
if (b.ascending != undefined)
|
|
70
|
-
return 1;
|
|
71
|
-
return 0;
|
|
72
|
-
}
|
|
73
|
-
return (a.orderIndex - b.orderIndex);
|
|
74
|
-
});
|
|
75
|
-
this._orderListItems = newSortableList;
|
|
94
|
+
});
|
|
95
|
+
this._orderListItems = newSortableList;
|
|
96
|
+
}
|
|
76
97
|
}
|
|
77
98
|
createColumnList() {
|
|
78
99
|
const visibleGroup = this.buildVisibleGroup();
|
|
@@ -105,7 +126,8 @@ export class SnkGridConfig {
|
|
|
105
126
|
};
|
|
106
127
|
}
|
|
107
128
|
createOrderListSlotDataElementId(item) {
|
|
108
|
-
|
|
129
|
+
var _a;
|
|
130
|
+
return `${this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME)}_configItem_${StringUtils.toCamelCase((_a = item.id) !== null && _a !== void 0 ? _a : item.label)}`;
|
|
109
131
|
}
|
|
110
132
|
buildOrderListSlot(item) {
|
|
111
133
|
const dataElementId = this.createOrderListSlotDataElementId(item);
|
|
@@ -115,22 +137,25 @@ export class SnkGridConfig {
|
|
|
115
137
|
}
|
|
116
138
|
return (h("snk-select-box", { selectedOption: selectedOption, key: 'snk-select-box-' + this._componenteInternalKey + '-' + item, "data-element-id": dataElementId, onEzChange: (evt) => {
|
|
117
139
|
evt.stopPropagation();
|
|
118
|
-
this.updateOrder(evt.detail, item.
|
|
140
|
+
this.updateOrder(evt.detail, item.id);
|
|
119
141
|
}, preventAutoFocus: true }));
|
|
120
142
|
}
|
|
121
|
-
updateOrder(sortOrder,
|
|
143
|
+
updateOrder(sortOrder, updatedItemId) {
|
|
122
144
|
var _a;
|
|
123
145
|
this._dataChanged = true;
|
|
124
146
|
let newList = [...this.columns];
|
|
125
|
-
let newItem = newList.find((item) => item.
|
|
147
|
+
let newItem = newList.find((item) => item.name === updatedItemId);
|
|
126
148
|
if (newItem) {
|
|
127
149
|
newItem.sort = sortOrder.value === ORDER_VALUES.none.value ? undefined : sortOrder.value;
|
|
128
150
|
}
|
|
129
151
|
let orderArray;
|
|
130
152
|
if (((_a = this._orderPriorityList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
131
|
-
this._orderPriorityList.find((item) => item.
|
|
132
|
-
|
|
133
|
-
|
|
153
|
+
const priorityItem = this._orderPriorityList.find((item) => item.id === newItem.name);
|
|
154
|
+
if (priorityItem) {
|
|
155
|
+
priorityItem.sort = sortOrder.value === ORDER_VALUES.none.value ? undefined : sortOrder.value;
|
|
156
|
+
}
|
|
157
|
+
this._orderPriorityList.filter((item) => item.sort != undefined).forEach((item, index) => {
|
|
158
|
+
if (item.id === newItem.name) {
|
|
134
159
|
newItem.sortIndex = index;
|
|
135
160
|
}
|
|
136
161
|
});
|
|
@@ -138,10 +163,10 @@ export class SnkGridConfig {
|
|
|
138
163
|
else {
|
|
139
164
|
orderArray = newList.filter((item) => item.sort && item.hidden !== true)
|
|
140
165
|
.map((item, index) => {
|
|
141
|
-
return {
|
|
166
|
+
return { name: item.name, orderIndex: index };
|
|
142
167
|
});
|
|
143
168
|
orderArray.forEach((element) => {
|
|
144
|
-
newList.find((item) => item.
|
|
169
|
+
newList.find((item) => item.name === element.name).sortIndex = element.orderIndex;
|
|
145
170
|
});
|
|
146
171
|
}
|
|
147
172
|
this.columns = newList;
|
|
@@ -155,14 +180,15 @@ export class SnkGridConfig {
|
|
|
155
180
|
this._dataChanged = false;
|
|
156
181
|
this.closeConfig();
|
|
157
182
|
this.save();
|
|
183
|
+
this._orderPriorityList = [];
|
|
158
184
|
}
|
|
159
185
|
updateColumns() {
|
|
160
186
|
this.columns = this._columListItems.flatMap((group) => group.items.map((item) => this.buildColumnFromListItem(item, group)));
|
|
161
187
|
}
|
|
162
188
|
buildColumnFromListItem(item, group) {
|
|
163
|
-
const baseColumn = this.columns.find((column) => column.
|
|
189
|
+
const baseColumn = this.columns.find((column) => column.name === item.id);
|
|
164
190
|
if (!baseColumn) {
|
|
165
|
-
throw new Error(`Column with
|
|
191
|
+
throw new Error(`Column with name "${item.id}" not found.`);
|
|
166
192
|
}
|
|
167
193
|
return Object.assign(Object.assign({}, baseColumn), { hidden: group.group === this.getMessage('snkGridConfig.group.hidden') });
|
|
168
194
|
}
|
|
@@ -177,12 +203,12 @@ export class SnkGridConfig {
|
|
|
177
203
|
let orderArray = [];
|
|
178
204
|
orderArray = columns.filter((item) => item.sort && item.hidden !== true)
|
|
179
205
|
.map((item) => {
|
|
180
|
-
return {
|
|
206
|
+
return { name: item.name, orderIndex: 0 };
|
|
181
207
|
});
|
|
182
208
|
let indexCount = 0;
|
|
183
209
|
let newOrderArray = [];
|
|
184
210
|
orderPriorityList.forEach((orderPriorityItem) => {
|
|
185
|
-
let item = orderArray.find((column) => column.
|
|
211
|
+
let item = orderArray.find((column) => column.name === orderPriorityItem.id);
|
|
186
212
|
if (item) {
|
|
187
213
|
item.orderIndex = indexCount;
|
|
188
214
|
newOrderArray.push(item);
|
|
@@ -212,11 +238,8 @@ export class SnkGridConfig {
|
|
|
212
238
|
let _newColumnConfig = _newConfig.columns.find((_newColumnConfig) => column.name === _newColumnConfig.name);
|
|
213
239
|
if (column.hidden === true && _newColumnConfig)
|
|
214
240
|
return;
|
|
215
|
-
if (_newColumnConfig) {
|
|
216
|
-
_newColumnConfig
|
|
217
|
-
}
|
|
218
|
-
else if (column.hidden === false) {
|
|
219
|
-
_newColumnConfig = { name: column.name, width: column.width, orderIndex: 0 };
|
|
241
|
+
if (!_newColumnConfig && column.hidden === false) {
|
|
242
|
+
_newColumnConfig = { name: column.name, orderIndex: 0 };
|
|
220
243
|
}
|
|
221
244
|
if (_newColumnConfig) {
|
|
222
245
|
if (column.sort) {
|
|
@@ -240,7 +263,7 @@ export class SnkGridConfig {
|
|
|
240
263
|
this.saveGridConfigOnStorage(_newConfig);
|
|
241
264
|
function adjustPriorityOrder(column, _newColumnConfig) {
|
|
242
265
|
if (orderArray) {
|
|
243
|
-
let orderItem = orderArray.find((item) => item.
|
|
266
|
+
let orderItem = orderArray.find((item) => item.name === column.name);
|
|
244
267
|
if (orderItem) {
|
|
245
268
|
_newColumnConfig.orderIndex = orderItem.orderIndex;
|
|
246
269
|
}
|
|
@@ -281,6 +304,7 @@ export class SnkGridConfig {
|
|
|
281
304
|
.then((response) => {
|
|
282
305
|
if (!response) {
|
|
283
306
|
this._dataChanged = false;
|
|
307
|
+
this._orderPriorityList = [];
|
|
284
308
|
this.configCancel.emit();
|
|
285
309
|
this._componenteInternalKey = Date.now();
|
|
286
310
|
}
|
|
@@ -345,29 +369,61 @@ export class SnkGridConfig {
|
|
|
345
369
|
if (!this.resourceID)
|
|
346
370
|
return;
|
|
347
371
|
this._dataChanged = true;
|
|
372
|
+
this._orderPriorityList = [];
|
|
348
373
|
const config = await ConfigStorage.getDefaultGridConfig(this.resourceID);
|
|
349
374
|
const defaultVisibleCols = (_a = config === null || config === void 0 ? void 0 : config.columns.map(col => col.name)) !== null && _a !== void 0 ? _a : [];
|
|
375
|
+
const isEmptyConfig = defaultVisibleCols.length === 0;
|
|
350
376
|
const visibleGroup = this.buildVisibleGroup();
|
|
351
377
|
const hiddenGroup = this.buildHiddenGroup();
|
|
352
378
|
const visibleItemsMap = new Map();
|
|
353
|
-
this.
|
|
379
|
+
const columnsToIterate = isEmptyConfig ? this.originalColumns : this.columns;
|
|
380
|
+
columnsToIterate.forEach(column => {
|
|
354
381
|
const item = this.buildListItemFromColumn(column);
|
|
355
|
-
if (defaultVisibleCols.includes(column.name)) {
|
|
382
|
+
if (isEmptyConfig || defaultVisibleCols.includes(column.name)) {
|
|
383
|
+
item['width'] = this.getDefaultWidthBasedOnMetadata(column.name);
|
|
356
384
|
visibleItemsMap.set(column.name, item);
|
|
357
385
|
}
|
|
358
386
|
else {
|
|
359
387
|
hiddenGroup.items.push(item);
|
|
360
388
|
}
|
|
361
389
|
});
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
.
|
|
390
|
+
if (isEmptyConfig) {
|
|
391
|
+
const itemsToAdd = [];
|
|
392
|
+
visibleItemsMap.forEach((item) => itemsToAdd.push(item));
|
|
393
|
+
visibleGroup.items = itemsToAdd;
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
visibleGroup.items = defaultVisibleCols
|
|
397
|
+
.map(name => visibleItemsMap.get(name))
|
|
398
|
+
.filter(item => item);
|
|
399
|
+
}
|
|
365
400
|
this._columListItems = [visibleGroup, hiddenGroup];
|
|
366
401
|
this._visibleList = visibleGroup.items;
|
|
367
402
|
this._hiddenList = hiddenGroup.items;
|
|
403
|
+
if (this.config) {
|
|
404
|
+
this.config['columns'] = this.transformListToConfig(visibleGroup.items);
|
|
405
|
+
}
|
|
368
406
|
this.updateColumns();
|
|
369
407
|
this.createOrderList();
|
|
370
408
|
}
|
|
409
|
+
transformListToConfig(list) {
|
|
410
|
+
return list.map((item, index) => {
|
|
411
|
+
return {
|
|
412
|
+
name: item.id,
|
|
413
|
+
hidden: false,
|
|
414
|
+
orderIndex: Number(item.sort) || index,
|
|
415
|
+
width: item.width,
|
|
416
|
+
};
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
getDefaultWidthBasedOnMetadata(columnName) {
|
|
420
|
+
var _a, _b;
|
|
421
|
+
if (!this.metadata) {
|
|
422
|
+
return undefined;
|
|
423
|
+
}
|
|
424
|
+
const columnMetadata = (_b = (_a = this.metadata) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b.find(col => col.name === columnName);
|
|
425
|
+
return GRID_COLUMN_DEFAULT_WIDTHS[columnMetadata === null || columnMetadata === void 0 ? void 0 : columnMetadata.userInterface] || GRID_COLUMN_DEFAULT_WIDTHS[UserInterface.SHORTTEXT];
|
|
426
|
+
}
|
|
371
427
|
buildListItemFromColumn(column) {
|
|
372
428
|
var _a;
|
|
373
429
|
return {
|
|
@@ -375,13 +431,14 @@ export class SnkGridConfig {
|
|
|
375
431
|
selected: false,
|
|
376
432
|
sort: (_a = column === null || column === void 0 ? void 0 : column.sort) !== null && _a !== void 0 ? _a : ORDER_VALUES.asc.value,
|
|
377
433
|
id: column.name,
|
|
434
|
+
width: column.width,
|
|
378
435
|
};
|
|
379
436
|
}
|
|
380
437
|
render() {
|
|
381
438
|
return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "ez-margin-bottom--medium" }, h("label", { class: "title" }, this.getMessage('snkGridConfig.gridConfiguration')), h("label", { class: "subtitle" }, this.getMessage('snkGridConfig.columnVisibilityOrder'))), h("div", { class: "button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", class: "ez-button--tertiary", onClick: () => this.closeConfig() })))), h("div", { class: 'grid-config__body' }, h("ez-collapsible-box", { id: 'group-select-columns', label: this.getMessage('snkGridConfig.columnsSelection'), "header-size": "medium", key: 'key_group-select-columns', value: this._collapsibleBoxListSelect, onEzChange: ({ detail }) => this._collapsibleBoxListOrder = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { leftList: this._hiddenList, leftTitle: this.getMessage('snkGridConfig.availableColumns'), rightList: this._visibleList, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), onEzRightListChanged: ({ detail }) => this.handleRightListChange(detail), emptyMessage: {
|
|
382
439
|
LEFT_LIST: this.getMessage('snkGridConfig.emptyMensage.left'),
|
|
383
440
|
RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
|
|
384
|
-
}, entityLabel: 'coluna', entityLabelPlural: 'colunas' }))), h("ez-collapsible-box", { id: 'ID_group-order-columns', label: this.getMessage('snkGridConfig.dataOrdering'), "header-size": "medium", key: 'KEY_group-order-columns', value: this._collapsibleBoxListOrder, onEzChange: ({ detail }) => this._collapsibleBoxListSelect = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { rightList: this._orderListItems, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), useOnlyRightList: true, slotsListBuilder: this.getListSlots(), emptyMessage: {
|
|
441
|
+
}, entityLabel: 'coluna', entityLabelPlural: 'colunas' }))), h("ez-collapsible-box", { id: 'ID_group-order-columns', label: this.getMessage('snkGridConfig.dataOrdering'), "header-size": "medium", key: 'KEY_group-order-columns', value: this._collapsibleBoxListOrder, onEzChange: ({ detail }) => this._collapsibleBoxListSelect = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { rightList: this._orderListItems, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), useOnlyRightList: true, slotsListBuilder: this.getListSlots(), onEzRightListChanged: (evt) => this.handleOrderListChange(evt), emptyMessage: {
|
|
385
442
|
RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
|
|
386
443
|
}, entityLabel: 'coluna', entityLabelPlural: 'colunas' })))), h("div", { class: "grid-config__footer" }, this.renderResetConfigBtn(), h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.cancel'), onClick: () => this.closeConfig() }), h("ez-button", { label: this.getMessage('snkGridConfig.complete'), class: "ez-button--primary", onClick: () => this.finish() }))));
|
|
387
444
|
}
|
|
@@ -439,7 +496,32 @@ export class SnkGridConfig {
|
|
|
439
496
|
"docs": {
|
|
440
497
|
"tags": [],
|
|
441
498
|
"text": "Colunas da grade."
|
|
442
|
-
}
|
|
499
|
+
},
|
|
500
|
+
"defaultValue": "[]"
|
|
501
|
+
},
|
|
502
|
+
"originalColumns": {
|
|
503
|
+
"type": "unknown",
|
|
504
|
+
"mutable": true,
|
|
505
|
+
"complexType": {
|
|
506
|
+
"original": "Array<EzGridColumn>",
|
|
507
|
+
"resolved": "EzGridColumn[]",
|
|
508
|
+
"references": {
|
|
509
|
+
"Array": {
|
|
510
|
+
"location": "global"
|
|
511
|
+
},
|
|
512
|
+
"EzGridColumn": {
|
|
513
|
+
"location": "import",
|
|
514
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"required": false,
|
|
519
|
+
"optional": false,
|
|
520
|
+
"docs": {
|
|
521
|
+
"tags": [],
|
|
522
|
+
"text": "Lista de Colunas original."
|
|
523
|
+
},
|
|
524
|
+
"defaultValue": "[]"
|
|
443
525
|
},
|
|
444
526
|
"config": {
|
|
445
527
|
"type": "unknown",
|
|
@@ -494,6 +576,26 @@ export class SnkGridConfig {
|
|
|
494
576
|
},
|
|
495
577
|
"attribute": "resource-i-d",
|
|
496
578
|
"reflect": false
|
|
579
|
+
},
|
|
580
|
+
"metadata": {
|
|
581
|
+
"type": "unknown",
|
|
582
|
+
"mutable": false,
|
|
583
|
+
"complexType": {
|
|
584
|
+
"original": "UnitMetadata",
|
|
585
|
+
"resolved": "UnitMetadata",
|
|
586
|
+
"references": {
|
|
587
|
+
"UnitMetadata": {
|
|
588
|
+
"location": "import",
|
|
589
|
+
"path": "@sankhyalabs/core"
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
"required": false,
|
|
594
|
+
"optional": false,
|
|
595
|
+
"docs": {
|
|
596
|
+
"tags": [],
|
|
597
|
+
"text": "Define a propriedade metadata da inst\u00E2ncia"
|
|
598
|
+
}
|
|
497
599
|
}
|
|
498
600
|
};
|
|
499
601
|
}
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { ApplicationContext } from '@sankhyalabs/core';
|
|
2
|
+
import { h, Host } from '@stencil/core';
|
|
3
|
+
import { SnkMessageBuilder } from '../../lib/message/SnkMessageBuilder';
|
|
4
|
+
import { base64ToBlob, buildFileKey, downloadImage, getPKs, sessionFileUpload } from './utils/ImageUtils';
|
|
5
|
+
import { Action } from '@sankhyalabs/core';
|
|
6
|
+
export class SnkImageInput {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.dataUnitObserver = async (action) => {
|
|
9
|
+
var _a;
|
|
10
|
+
const actionsMoveSelection = [Action.NEXT_SELECTED, Action.PREVIOUS_SELECTED];
|
|
11
|
+
if (actionsMoveSelection.includes(action.type)) {
|
|
12
|
+
await this.loadImage();
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const selection = ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.selection) || [];
|
|
16
|
+
if (action.type === Action.SELECTION_CHANGED && selection.length > 0) {
|
|
17
|
+
await this.loadImage();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (action.type === Action.RECORDS_ADDED) {
|
|
21
|
+
await this.clearImage();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.dataUnit = undefined;
|
|
26
|
+
this.fieldName = undefined;
|
|
27
|
+
this.entityName = undefined;
|
|
28
|
+
this.enabled = true;
|
|
29
|
+
this.acceptType = undefined;
|
|
30
|
+
this.maxSize = undefined;
|
|
31
|
+
this.label = undefined;
|
|
32
|
+
this.imageValue = undefined;
|
|
33
|
+
this.loading = true;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Força o reload da imagem
|
|
37
|
+
*/
|
|
38
|
+
async reloadImage(pks) {
|
|
39
|
+
await this.loadImage(pks);
|
|
40
|
+
}
|
|
41
|
+
getMessage(key, params) {
|
|
42
|
+
if (!this.messagesBuilder) {
|
|
43
|
+
this.messagesBuilder = new SnkMessageBuilder();
|
|
44
|
+
}
|
|
45
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
46
|
+
}
|
|
47
|
+
async clearImage() {
|
|
48
|
+
this.imageValue = undefined;
|
|
49
|
+
}
|
|
50
|
+
async handleImageChange(event) {
|
|
51
|
+
const base64 = event.detail;
|
|
52
|
+
if (!base64) {
|
|
53
|
+
await this.clearImage();
|
|
54
|
+
await this.updatedataUnitField(true);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const blob = await base64ToBlob(base64);
|
|
58
|
+
if (this.maxSize && blob.size > this.maxSize * 1024) {
|
|
59
|
+
const errorMsg = this.getMessage('snkImageInput.errorImageSize') + this.maxSize + '(KB)';
|
|
60
|
+
this.imageError.emit(errorMsg);
|
|
61
|
+
if (this.application) {
|
|
62
|
+
await this.application.error(this.getMessage('snkImageInput.errorTitle'), errorMsg);
|
|
63
|
+
}
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.imageValue = base64;
|
|
67
|
+
await sessionFileUpload(blob, this.entityName, this.fieldName);
|
|
68
|
+
await this.updatedataUnitField();
|
|
69
|
+
}
|
|
70
|
+
async updatedataUnitField(deleted = false) {
|
|
71
|
+
if (!this.dataUnit || !this.dataUnit.getSelectedRecord()) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (deleted) {
|
|
75
|
+
await this.dataUnit.setFieldValue(this.fieldName, 'deletado');
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
await this.dataUnit.setFieldValue(this.fieldName, `$file.session.key{${buildFileKey(this.entityName, this.fieldName)}}`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async handleImageError(event) {
|
|
82
|
+
this.imageError.emit(event.detail);
|
|
83
|
+
if (this.application) {
|
|
84
|
+
await this.application.error(this.getMessage('snkImageInput.errorTitle'), event.detail);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
getPksFromDataUnit() {
|
|
88
|
+
if (!this.dataUnit) {
|
|
89
|
+
return undefined;
|
|
90
|
+
}
|
|
91
|
+
const selectedRecord = this.dataUnit.getSelectedRecord();
|
|
92
|
+
if (!selectedRecord) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
const fieldValue = selectedRecord[this.fieldName];
|
|
96
|
+
if (!fieldValue) {
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
const pk = JSON.parse(fieldValue);
|
|
101
|
+
return pk;
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
console.error('Error parsing PK from data unit field:', error);
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
async loadImage(pks) {
|
|
109
|
+
var _a;
|
|
110
|
+
this.loading = true;
|
|
111
|
+
if (this.dataUnit && this.entityName) {
|
|
112
|
+
pks = (_a = pks !== null && pks !== void 0 ? pks : this.getPksFromDataUnit()) !== null && _a !== void 0 ? _a : getPKs(this.dataUnit);
|
|
113
|
+
this.imageValue = await downloadImage(pks, this.fieldName, this.entityName);
|
|
114
|
+
}
|
|
115
|
+
this.loading = false;
|
|
116
|
+
}
|
|
117
|
+
async componentWillLoad() {
|
|
118
|
+
this.application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
119
|
+
if (!this.messagesBuilder) {
|
|
120
|
+
this.messagesBuilder = new SnkMessageBuilder();
|
|
121
|
+
}
|
|
122
|
+
if (this.dataUnit) {
|
|
123
|
+
this.dataUnit.subscribe(this.dataUnitObserver);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
disconnectedCallback() {
|
|
127
|
+
if (this.dataUnit) {
|
|
128
|
+
this.dataUnit.unsubscribe(this.dataUnitObserver);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async componentDidLoad() {
|
|
132
|
+
await this.loadImage();
|
|
133
|
+
}
|
|
134
|
+
render() {
|
|
135
|
+
return (h(Host, null, h("ez-image-input", { enabled: this.enabled, label: this.label, name: this.fieldName, value: this.imageValue, maxFileSize: this.maxSize ? this.maxSize * 1024 : undefined, accept: this.acceptType || 'image/png,image/jpeg,image/gif', onEzChange: (e) => this.handleImageChange(e), onEzError: (e) => this.handleImageError(e), loading: this.loading })));
|
|
136
|
+
}
|
|
137
|
+
static get is() { return "snk-image-input"; }
|
|
138
|
+
static get encapsulation() { return "shadow"; }
|
|
139
|
+
static get originalStyleUrls() {
|
|
140
|
+
return {
|
|
141
|
+
"$": ["snk-image-input.css"]
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
static get styleUrls() {
|
|
145
|
+
return {
|
|
146
|
+
"$": ["snk-image-input.css"]
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static get properties() {
|
|
150
|
+
return {
|
|
151
|
+
"dataUnit": {
|
|
152
|
+
"type": "unknown",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "DataUnit",
|
|
156
|
+
"resolved": "DataUnit",
|
|
157
|
+
"references": {
|
|
158
|
+
"DataUnit": {
|
|
159
|
+
"location": "import",
|
|
160
|
+
"path": "@sankhyalabs/core"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": false,
|
|
165
|
+
"optional": true,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [],
|
|
168
|
+
"text": "DataUnit associado ao componente"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"fieldName": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"mutable": false,
|
|
174
|
+
"complexType": {
|
|
175
|
+
"original": "string",
|
|
176
|
+
"resolved": "string",
|
|
177
|
+
"references": {}
|
|
178
|
+
},
|
|
179
|
+
"required": false,
|
|
180
|
+
"optional": false,
|
|
181
|
+
"docs": {
|
|
182
|
+
"tags": [],
|
|
183
|
+
"text": "Nome do campo no DataUnit"
|
|
184
|
+
},
|
|
185
|
+
"attribute": "field-name",
|
|
186
|
+
"reflect": false
|
|
187
|
+
},
|
|
188
|
+
"entityName": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "string",
|
|
193
|
+
"resolved": "string",
|
|
194
|
+
"references": {}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": true,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": "Nome da entidade (usado quando n\u00E3o h\u00E1 DataUnit)"
|
|
201
|
+
},
|
|
202
|
+
"attribute": "entity-name",
|
|
203
|
+
"reflect": false
|
|
204
|
+
},
|
|
205
|
+
"enabled": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "boolean",
|
|
210
|
+
"resolved": "boolean",
|
|
211
|
+
"references": {}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": false,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": "Define se est\u00E1 habilitado"
|
|
218
|
+
},
|
|
219
|
+
"attribute": "enabled",
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"defaultValue": "true"
|
|
222
|
+
},
|
|
223
|
+
"acceptType": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"mutable": false,
|
|
226
|
+
"complexType": {
|
|
227
|
+
"original": "string",
|
|
228
|
+
"resolved": "string",
|
|
229
|
+
"references": {}
|
|
230
|
+
},
|
|
231
|
+
"required": false,
|
|
232
|
+
"optional": true,
|
|
233
|
+
"docs": {
|
|
234
|
+
"tags": [],
|
|
235
|
+
"text": "Tipos MIME aceitos (separados por v\u00EDrgula)"
|
|
236
|
+
},
|
|
237
|
+
"attribute": "accept-type",
|
|
238
|
+
"reflect": false
|
|
239
|
+
},
|
|
240
|
+
"maxSize": {
|
|
241
|
+
"type": "number",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "number",
|
|
245
|
+
"resolved": "number",
|
|
246
|
+
"references": {}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": true,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": "Tamanho m\u00E1ximo do arquivo em KB"
|
|
253
|
+
},
|
|
254
|
+
"attribute": "max-size",
|
|
255
|
+
"reflect": false
|
|
256
|
+
},
|
|
257
|
+
"label": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "string",
|
|
262
|
+
"resolved": "string",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": true,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Label do componente"
|
|
270
|
+
},
|
|
271
|
+
"attribute": "label",
|
|
272
|
+
"reflect": false
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
static get states() {
|
|
277
|
+
return {
|
|
278
|
+
"imageValue": {},
|
|
279
|
+
"loading": {}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
static get events() {
|
|
283
|
+
return [{
|
|
284
|
+
"method": "imageError",
|
|
285
|
+
"name": "imageError",
|
|
286
|
+
"bubbles": true,
|
|
287
|
+
"cancelable": true,
|
|
288
|
+
"composed": true,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "Evento disparado quando h\u00E1 erro"
|
|
292
|
+
},
|
|
293
|
+
"complexType": {
|
|
294
|
+
"original": "string",
|
|
295
|
+
"resolved": "string",
|
|
296
|
+
"references": {}
|
|
297
|
+
}
|
|
298
|
+
}];
|
|
299
|
+
}
|
|
300
|
+
static get methods() {
|
|
301
|
+
return {
|
|
302
|
+
"reloadImage": {
|
|
303
|
+
"complexType": {
|
|
304
|
+
"signature": "(pks?: Record<string, any>) => Promise<void>",
|
|
305
|
+
"parameters": [{
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": ""
|
|
308
|
+
}],
|
|
309
|
+
"references": {
|
|
310
|
+
"Promise": {
|
|
311
|
+
"location": "global"
|
|
312
|
+
},
|
|
313
|
+
"Record": {
|
|
314
|
+
"location": "global"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"return": "Promise<void>"
|
|
318
|
+
},
|
|
319
|
+
"docs": {
|
|
320
|
+
"text": "For\u00E7a o reload da imagem",
|
|
321
|
+
"tags": []
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
}
|