@sankhyalabs/sankhyablocks 1.4.0-beta.1 → 1.4.0-beta.10
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/{SnkMessageBuilder-7717f1e4.js → SnkMessageBuilder-6c2f7bcd.js} +107 -131
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/configurableElementsStorage-93459c72.js +20 -0
- package/dist/cjs/constants-9056ca9e.js +84 -0
- package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
- package/dist/cjs/{filter-item-type.enum-e2e1bc5b.js → filter-item-type.enum-3daf58d3.js} +2 -0
- package/dist/cjs/form-config-fetcher-2de7c16a.js +6895 -0
- package/dist/cjs/{index-b0b676c5.js → index-20e8b68a.js} +165 -1473
- package/dist/cjs/loader.cjs.js +2 -18
- package/dist/cjs/sankhyablocks.cjs.js +4 -116
- package/dist/cjs/snk-application.cjs.entry.js +330 -7196
- package/dist/cjs/snk-config-modal.cjs.entry.js +62 -0
- package/dist/cjs/snk-config-options.cjs.entry.js +230 -0
- package/dist/cjs/snk-configurator_6.cjs.entry.js +1156 -0
- package/dist/cjs/snk-crud.cjs.entry.js +21 -13
- package/dist/cjs/snk-data-unit.cjs.entry.js +24 -32
- package/dist/cjs/snk-field-config_2.cjs.entry.js +135 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +5 -2
- package/dist/cjs/snk-filter-detail.cjs.entry.js +62 -5
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +6 -3
- package/dist/cjs/snk-filter-number.cjs.entry.js +6 -3
- package/dist/cjs/snk-filter-period.cjs.entry.js +5 -2
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +89 -0
- package/dist/cjs/snk-filter-search.cjs.entry.js +7 -13
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-config.cjs.entry.js +957 -0
- package/dist/cjs/snk-form.cjs.entry.js +41 -28
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/snk-tab-config.cjs.entry.js +321 -0
- package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-9a4b1e19.js} +10 -6
- package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +29 -1
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -1
- package/dist/collection/components/snk-application/snk-application.js +236 -37
- package/dist/collection/components/snk-configurator/snk-configurator.js +261 -0
- package/dist/collection/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.js +16 -0
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.css +122 -0
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.js +137 -0
- package/dist/collection/components/snk-crud/snk-crud.js +46 -17
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +1 -28
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +100 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +23 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +24 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +24 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +23 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +180 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +22 -38
- 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/filter-item-type.enum.js +2 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +80 -20
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +65 -31
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +85 -19
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +222 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +39 -4
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +250 -141
- package/dist/collection/components/snk-form/snk-form.css +4 -0
- package/dist/collection/components/snk-form/snk-form.js +108 -30
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +9 -0
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +315 -0
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +164 -0
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +140 -0
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +185 -0
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1062 -0
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +272 -0
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +476 -0
- package/dist/collection/components/snk-grid/snk-grid.js +94 -26
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -5
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +35 -3
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +3 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +35 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +18 -10
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +106 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +15 -15
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +9 -1
- package/dist/collection/lib/index.js +1 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/collection/lib/message/resources/crud-utils.msg.js +4 -0
- package/dist/collection/lib/message/resources/snk-configurator.msg.js +11 -0
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -2
- package/dist/collection/lib/message/resources/snk-form.msg.js +59 -2
- package/dist/collection/lib/message/resources/snk-taskbar.msg.js +1 -1
- package/dist/collection/lib/utils/CrudUtils.js +73 -0
- package/dist/collection/lib/utils/constants.js +72 -0
- package/dist/components/SnkMessageBuilder.js +108 -131
- package/dist/components/_commonjsHelpers.js +17 -0
- package/dist/components/constants.js +74 -0
- package/dist/components/filter-item-type.enum.js +2 -0
- package/dist/{sankhyablocks/snk-application.entry.js → components/form-config-fetcher.js} +88 -1347
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +8 -4
- package/dist/components/snk-application2.js +313 -7173
- package/dist/components/snk-config-modal.d.ts +11 -0
- package/dist/components/snk-config-modal.js +6 -0
- package/dist/components/snk-config-modal2.js +91 -0
- package/dist/components/snk-config-options.d.ts +11 -0
- package/dist/components/snk-config-options.js +6 -0
- package/dist/components/snk-config-options2.js +245 -0
- package/dist/components/snk-configurator.d.ts +11 -0
- package/dist/components/snk-configurator.js +6 -0
- package/dist/components/snk-configurator2.js +212 -0
- package/dist/components/snk-crud.js +76 -26
- package/dist/components/snk-data-unit.js +4 -13
- package/dist/components/snk-field-config.d.ts +11 -0
- package/dist/components/snk-field-config.js +6 -0
- package/dist/components/snk-field-config2.js +70 -0
- package/dist/components/snk-filter-bar2.js +354 -148
- package/dist/components/snk-filter-binary-select.js +5 -1
- package/dist/components/snk-filter-detail2.js +62 -5
- package/dist/components/snk-filter-item2.js +52 -33
- package/dist/components/snk-filter-list2.js +60 -22
- package/dist/components/snk-filter-modal.d.ts +11 -0
- package/dist/components/snk-filter-modal.js +6 -0
- package/dist/components/snk-filter-modal2.js +84 -0
- package/dist/components/snk-filter-multi-select.js +6 -2
- package/dist/components/snk-filter-number.js +6 -2
- package/dist/components/snk-filter-period.js +5 -1
- package/dist/components/snk-filter-personalized.d.ts +11 -0
- package/dist/components/snk-filter-personalized.js +108 -0
- package/dist/components/snk-filter-search.js +5 -12
- package/dist/components/snk-filter-text.js +1 -1
- package/dist/components/snk-form-config.d.ts +11 -0
- package/dist/components/snk-form-config.js +6 -0
- package/dist/components/snk-form-config2.js +996 -0
- package/dist/components/snk-form2.js +79 -29
- package/dist/components/snk-grid2.js +57 -32
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-tab-config.d.ts +11 -0
- package/dist/components/snk-tab-config.js +6 -0
- package/dist/components/snk-tab-config2.js +7220 -0
- package/dist/components/snk-taskbar2.js +28 -10
- package/dist/components/teste-pesquisa.js +1 -1
- package/dist/{sankhyablocks/SnkMessageBuilder-a7da466b.js → esm/SnkMessageBuilder-5792c260.js} +108 -131
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/configurableElementsStorage-cdc144b5.js +18 -0
- package/dist/esm/constants-c6039d3d.js +74 -0
- package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
- package/dist/esm/{filter-item-type.enum-61fbf80a.js → filter-item-type.enum-a79b2fa8.js} +2 -0
- package/dist/esm/form-config-fetcher-96c6c2dc.js +6889 -0
- package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-e4121713.js} +165 -1466
- package/dist/esm/loader.js +2 -18
- package/dist/esm/sankhyablocks.js +4 -116
- package/dist/esm/snk-application.entry.js +308 -7174
- package/dist/esm/snk-config-modal.entry.js +58 -0
- package/dist/esm/snk-config-options.entry.js +226 -0
- package/dist/esm/snk-configurator_6.entry.js +1147 -0
- package/dist/esm/snk-crud.entry.js +20 -12
- package/dist/esm/snk-data-unit.entry.js +5 -13
- package/dist/esm/snk-field-config_2.entry.js +130 -0
- package/dist/esm/snk-filter-binary-select.entry.js +5 -2
- package/dist/esm/snk-filter-detail.entry.js +62 -5
- package/dist/esm/snk-filter-multi-select.entry.js +6 -3
- package/dist/esm/snk-filter-number.entry.js +6 -3
- package/dist/esm/snk-filter-period.entry.js +5 -2
- package/dist/esm/snk-filter-personalized.entry.js +85 -0
- package/dist/esm/snk-filter-search.entry.js +6 -12
- package/dist/esm/snk-filter-text.entry.js +2 -2
- package/dist/esm/snk-form-config.entry.js +953 -0
- package/dist/esm/snk-form.entry.js +40 -27
- package/dist/esm/snk-pesquisa.entry.js +2 -2
- package/dist/esm/snk-tab-config.entry.js +317 -0
- package/dist/{sankhyablocks/taskbar-elements-35d64ff9.js → esm/taskbar-elements-e2ed0536.js} +10 -6
- package/dist/esm/teste-pesquisa.entry.js +2 -2
- package/dist/sankhyablocks/index.esm.js +0 -1
- package/dist/sankhyablocks/p-029ae4e4.entry.js +1 -0
- package/dist/sankhyablocks/p-03f9c407.js +1 -0
- package/dist/sankhyablocks/p-112455b1.js +1 -0
- package/dist/sankhyablocks/p-12ad2a19.entry.js +1 -0
- package/dist/sankhyablocks/p-1feabfc7.entry.js +1 -0
- package/dist/sankhyablocks/p-21c8929b.js +1 -0
- package/dist/sankhyablocks/p-2284c850.entry.js +1 -0
- package/dist/sankhyablocks/p-2b891c4a.entry.js +1 -0
- package/dist/sankhyablocks/p-2dc76d79.entry.js +1 -0
- package/dist/sankhyablocks/p-361299e8.js +26 -0
- package/dist/sankhyablocks/p-3a276f3d.entry.js +1 -0
- package/dist/sankhyablocks/p-400cc777.entry.js +1 -0
- package/dist/sankhyablocks/p-44ce5b90.entry.js +1 -0
- package/dist/sankhyablocks/p-521c96f0.entry.js +1 -0
- package/dist/sankhyablocks/p-6988f4a6.entry.js +1 -0
- package/dist/sankhyablocks/p-776ff4d1.entry.js +1 -0
- package/dist/sankhyablocks/p-7b4a4a50.entry.js +1 -0
- package/dist/sankhyablocks/p-9ba3df4c.js +2 -0
- package/dist/sankhyablocks/p-9dc4426d.entry.js +1 -0
- package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
- package/dist/sankhyablocks/p-a17a4fca.entry.js +1 -0
- package/dist/sankhyablocks/p-a5b26df2.js +1 -0
- package/dist/sankhyablocks/p-b6d6b172.js +1 -0
- package/dist/sankhyablocks/p-cc4bef9f.entry.js +1 -0
- package/dist/sankhyablocks/p-d50651a3.js +1 -0
- package/dist/sankhyablocks/p-d690b6b5.entry.js +75 -0
- package/dist/sankhyablocks/p-d9fbb26f.js +1 -0
- package/dist/sankhyablocks/p-deb1f523.entry.js +1 -0
- package/dist/sankhyablocks/p-e871aa92.entry.js +1 -0
- package/dist/sankhyablocks/p-e9beab79.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
- package/dist/types/components/snk-application/snk-application.d.ts +38 -16
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +46 -0
- package/dist/types/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.d.ts +8 -0
- package/dist/types/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.d.ts +38 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +50 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +92 -0
- package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +2 -0
- 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/editors/snk-filter-personalized.d.ts +24 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +4 -5
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +3 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +7 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +40 -0
- package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +8 -3
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +26 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +31 -17
- package/dist/types/components/snk-form/snk-form.d.ts +71 -0
- package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +51 -0
- package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +32 -0
- package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +139 -0
- package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +97 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +59 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +6 -5
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -3
- package/dist/types/components.d.ts +424 -24
- package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +21 -3
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +7 -7
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/message/resources/crud-utils.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-form.msg.d.ts +5 -2
- package/dist/types/lib/utils/CrudUtils.d.ts +6 -0
- package/dist/types/lib/utils/constants.d.ts +76 -0
- package/dist/types/lib/utils/pesquisa.d.ts +2 -1
- package/package.json +4 -3
- package/react/components.d.ts +25 -0
- package/react/components.js +25 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-b8158822.js +0 -6
- package/dist/cjs/dom-36862b77.js +0 -75
- package/dist/cjs/index-02201bc9.js +0 -2397
- package/dist/cjs/shadow-css-346c0795.js +0 -389
- package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -278
- package/dist/cjs/snk-filter-item.cjs.entry.js +0 -154
- package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
- package/dist/cjs/snk-grid.cjs.entry.js +0 -79
- package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
- package/dist/components/index2.js +0 -2384
- package/dist/esm/SnkMessageBuilder-a7da466b.js +0 -303
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-b3f2ee8d.js +0 -4
- package/dist/esm/dom-665d6011.js +0 -73
- package/dist/esm/index-2b4d2d14.js +0 -3262
- package/dist/esm/index-f1d3e4da.js +0 -2384
- package/dist/esm/shadow-css-b18e99d7.js +0 -387
- package/dist/esm/snk-filter-bar.entry.js +0 -274
- package/dist/esm/snk-filter-item.entry.js +0 -150
- package/dist/esm/snk-filter-list.entry.js +0 -87
- package/dist/esm/snk-grid.entry.js +0 -75
- package/dist/esm/snk-taskbar.entry.js +0 -156
- package/dist/esm/taskbar-elements-35d64ff9.js +0 -90
- package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
- package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
- package/dist/sankhyablocks/dom-665d6011.js +0 -73
- package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +0 -12
- package/dist/sankhyablocks/index-f1d3e4da.js +0 -2384
- package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
- package/dist/sankhyablocks/snk-crud.entry.js +0 -66
- package/dist/sankhyablocks/snk-data-unit.entry.js +0 -276
- package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -274
- package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
- package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -45
- package/dist/sankhyablocks/snk-filter-item.entry.js +0 -150
- package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
- package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
- package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
- package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
- package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
- package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
- package/dist/sankhyablocks/snk-form.entry.js +0 -129
- package/dist/sankhyablocks/snk-grid.entry.js +0 -75
- package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
- package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
- package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
- package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t}from"./p-112455b1.js";var e=t((function(t){var e;window,e=function(){return function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,function(e){return t[e]}.bind(null,i));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=66)}([function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(64))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(60))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(51);Object.defineProperty(e,"closest",{enumerable:!0,get:function(){return r(s).default}});var i=n(49);function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"requestNextAnimationFrame",{enumerable:!0,get:function(){return r(i).default}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(44);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(47))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(14);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var i=n(13);Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}));var r=n(12);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var o=n(6);Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}));var a,u=(a=n(37))&&a.__esModule?a:{default:a};e.default=u.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(4);Object.defineProperty(e,"Sensor",{enumerable:!0,get:function(){return h(s).default}});var i=n(46);Object.defineProperty(e,"MouseSensor",{enumerable:!0,get:function(){return h(i).default}});var r=n(43);Object.defineProperty(e,"TouchSensor",{enumerable:!0,get:function(){return h(r).default}});var o=n(41);Object.defineProperty(e,"DragSensor",{enumerable:!0,get:function(){return h(o).default}});var a=n(39);Object.defineProperty(e,"ForceTouchSensor",{enumerable:!0,get:function(){return h(a).default}});var u=n(3);function h(t){return t&&t.__esModule?t:{default:t}}Object.keys(u).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(18);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(23);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(27);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(30);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(33);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(62);Object.defineProperty(e,"Announcement",{enumerable:!0,get:function(){return a(s).default}}),Object.defineProperty(e,"defaultAnnouncementOptions",{enumerable:!0,get:function(){return s.defaultOptions}});var i=n(59);Object.defineProperty(e,"Focusable",{enumerable:!0,get:function(){return a(i).default}});var r=n(57);Object.defineProperty(e,"Mirror",{enumerable:!0,get:function(){return a(r).default}}),Object.defineProperty(e,"defaultMirrorOptions",{enumerable:!0,get:function(){return r.defaultOptions}});var o=n(53);function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"Scrollable",{enumerable:!0,get:function(){return a(o).default}}),Object.defineProperty(e,"defaultScrollableOptions",{enumerable:!0,get:function(){return o.defaultOptions}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(63);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(65);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(1))&&s.__esModule?s:{default:s};const o=Symbol("onSortableSorted"),a=e.defaultOptions={duration:150,easingFunction:"ease-in-out",horizontal:!1};function u(t,e,{duration:n,easingFunction:s,horizontal:i}){for(const n of[t,e])n.style.pointerEvents="none";if(i){const n=t.offsetWidth;t.style.transform=`translate3d(${n}px, 0, 0)`,e.style.transform=`translate3d(-${n}px, 0, 0)`}else{const n=t.offsetHeight;t.style.transform=`translate3d(0, ${n}px, 0)`,e.style.transform=`translate3d(0, -${n}px, 0)`}requestAnimationFrame((()=>{for(const i of[t,e])i.addEventListener("transitionend",h),i.style.transition=`transform ${n}ms ${s}`,i.style.transform=""}))}function h(t){t.target.style.transition="",t.target.style.pointerEvents="",t.target.removeEventListener("transitionend",h)}e.default=class extends r.default{constructor(t){super(t),this.options=i({},a,this.getOptions()),this.lastAnimationFrame=null,this[o]=this[o].bind(this)}attach(){this.draggable.on("sortable:sorted",this[o])}detach(){this.draggable.off("sortable:sorted",this[o])}getOptions(){return this.draggable.options.swapAnimation||{}}[o]({oldIndex:t,newIndex:e,dragEvent:n}){const{source:s,over:i}=n;cancelAnimationFrame(this.lastAnimationFrame),this.lastAnimationFrame=requestAnimationFrame((()=>{t>=e?u(s,i,this.options):u(i,s,this.options)}))}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=n(15),r=(s=i)&&s.__esModule?s:{default:s};e.default=r.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(1))&&s.__esModule?s:{default:s},r=n(7);const o=Symbol("onDragStart"),a=Symbol("onDragStop"),u=Symbol("onDragOver"),h=Symbol("onDragOut"),c=Symbol("onMirrorCreated"),l=Symbol("onMirrorDestroy");e.default=class extends i.default{constructor(t){super(t),this.firstSource=null,this.mirror=null,this[o]=this[o].bind(this),this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this),this[l]=this[l].bind(this)}attach(){this.draggable.on("drag:start",this[o]).on("drag:stop",this[a]).on("drag:over",this[u]).on("drag:out",this[h]).on("droppable:over",this[u]).on("droppable:out",this[h]).on("mirror:created",this[c]).on("mirror:destroy",this[l])}detach(){this.draggable.off("drag:start",this[o]).off("drag:stop",this[a]).off("drag:over",this[u]).off("drag:out",this[h]).off("droppable:over",this[u]).off("droppable:out",this[h]).off("mirror:created",this[c]).off("mirror:destroy",this[l])}[o](t){t.canceled()||(this.firstSource=t.source)}[a](){this.firstSource=null}[u](t){if(t.canceled())return;const e=t.source||t.dragEvent.source;if(e===this.firstSource)return void(this.firstSource=null);const n=new r.SnapInEvent({dragEvent:t,snappable:t.over||t.droppable});this.draggable.trigger(n),n.canceled()||(this.mirror&&(this.mirror.style.display="none"),e.classList.remove(this.draggable.getClassNameFor("source:dragging")),e.classList.add(this.draggable.getClassNameFor("source:placed")),setTimeout((()=>{e.classList.remove(this.draggable.getClassNameFor("source:placed"))}),this.draggable.options.placedTimeout))}[h](t){if(t.canceled())return;const e=t.source||t.dragEvent.source,n=new r.SnapOutEvent({dragEvent:t,snappable:t.over||t.droppable});this.draggable.trigger(n),n.canceled()||(this.mirror&&(this.mirror.style.display=""),e.classList.add(this.draggable.getClassNameFor("source:dragging")))}[c]({mirror:t}){this.mirror=t}[l](){this.mirror=null}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SnapOutEvent=e.SnapInEvent=e.SnapEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get dragEvent(){return this.data.dragEvent}get snappable(){return this.data.snappable}}e.SnapEvent=r,r.type="snap";class o extends r{}e.SnapInEvent=o,o.type="snap:in",o.cancelable=!0;class a extends r{}e.SnapOutEvent=a,a.type="snap:out",a.cancelable=!0},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(7);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var i,r=(i=n(17))&&i.__esModule?i:{default:i};e.default=r.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(1))&&s.__esModule?s:{default:s},o=n(2);const a=Symbol("onMirrorCreated"),u=Symbol("onMirrorDestroy"),h=Symbol("onDragOver"),c=Symbol("resize"),l=e.defaultOptions={};e.default=class extends r.default{constructor(t){super(t),this.options=i({},l,this.getOptions()),this.lastWidth=0,this.lastHeight=0,this.mirror=null,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this)}attach(){this.draggable.on("mirror:created",this[a]).on("drag:over",this[h]).on("drag:over:container",this[h])}detach(){this.draggable.off("mirror:created",this[a]).off("mirror:destroy",this[u]).off("drag:over",this[h]).off("drag:over:container",this[h])}getOptions(){return this.draggable.options.resizeMirror||{}}[a]({mirror:t}){this.mirror=t}[u](){this.mirror=null}[h](t){this[c](t)}[c]({overContainer:t,over:e}){requestAnimationFrame((()=>{this.mirror.parentNode!==t&&t.appendChild(this.mirror);const n=e||this.draggable.getDraggableElementsForContainer(t)[0];n&&(0,o.requestNextAnimationFrame)((()=>{const t=n.getBoundingClientRect();this.lastHeight===t.height&&this.lastWidth===t.width||(this.mirror.style.width=`${t.width}px`,this.mirror.style.height=`${t.height}px`,this.lastWidth=t.width,this.lastHeight=t.height)}))}))}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=n(20),r=(s=i)&&s.__esModule?s:{default:s};e.default=r.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(1))&&s.__esModule?s:{default:s},r=n(2),o=n(8);const a=Symbol("onDragMove"),u=Symbol("onDragStop"),h=Symbol("onRequestAnimationFrame");e.default=class extends i.default{constructor(t){super(t),this.currentlyCollidingElement=null,this.lastCollidingElement=null,this.currentAnimationFrame=null,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this)}attach(){this.draggable.on("drag:move",this[a]).on("drag:stop",this[u])}detach(){this.draggable.off("drag:move",this[a]).off("drag:stop",this[u])}getCollidables(){const t=this.draggable.options.collidables;return"string"==typeof t?Array.prototype.slice.call(document.querySelectorAll(t)):t instanceof NodeList||t instanceof Array?Array.prototype.slice.call(t):t instanceof HTMLElement?[t]:"function"==typeof t?t():[]}[a](t){this.currentAnimationFrame=requestAnimationFrame(this[h](t.sensorEvent.target)),this.currentlyCollidingElement&&t.cancel();const e=new o.CollidableInEvent({dragEvent:t,collidingElement:this.currentlyCollidingElement}),n=new o.CollidableOutEvent({dragEvent:t,collidingElement:this.lastCollidingElement}),s=Boolean(this.currentlyCollidingElement&&this.lastCollidingElement!==this.currentlyCollidingElement),i=Boolean(!this.currentlyCollidingElement&&this.lastCollidingElement);s?(this.lastCollidingElement&&this.draggable.trigger(n),this.draggable.trigger(e)):i&&this.draggable.trigger(n),this.lastCollidingElement=this.currentlyCollidingElement}[u](t){const e=this.currentlyCollidingElement||this.lastCollidingElement,n=new o.CollidableOutEvent({dragEvent:t,collidingElement:e});e&&this.draggable.trigger(n),this.lastCollidingElement=null,this.currentlyCollidingElement=null}[h](t){return()=>{const e=this.getCollidables();this.currentlyCollidingElement=(0,r.closest)(t,(t=>e.includes(t)))}}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CollidableOutEvent=e.CollidableInEvent=e.CollidableEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get dragEvent(){return this.data.dragEvent}}e.CollidableEvent=r,r.type="collidable";class o extends r{get collidingElement(){return this.data.collidingElement}}e.CollidableInEvent=o,o.type="collidable:in";class a extends r{get collidingElement(){return this.data.collidingElement}}e.CollidableOutEvent=a,a.type="collidable:out"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(8);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var i,r=(i=n(22))&&i.__esModule?i:{default:i};e.default=r.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(24);Object.defineProperty(e,"Collidable",{enumerable:!0,get:function(){return a(s).default}});var i=n(21);Object.defineProperty(e,"ResizeMirror",{enumerable:!0,get:function(){return a(i).default}}),Object.defineProperty(e,"defaultResizeMirrorOptions",{enumerable:!0,get:function(){return i.defaultOptions}});var r=n(19);Object.defineProperty(e,"Snappable",{enumerable:!0,get:function(){return a(r).default}});var o=n(16);function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"SwapAnimation",{enumerable:!0,get:function(){return a(o).default}}),Object.defineProperty(e,"defaultSwapAnimationOptions",{enumerable:!0,get:function(){return o.defaultOptions}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(5))&&s.__esModule?s:{default:s},o=n(9);const a=Symbol("onDragStart"),u=Symbol("onDragOverContainer"),h=Symbol("onDragOver"),c=Symbol("onDragStop"),l={"sortable:sorted":function({dragEvent:t}){const e=t.source.textContent.trim()||t.source.id||"sortable element";if(t.over){const n=t.over.textContent.trim()||t.over.id||"sortable element";return t.source.compareDocumentPosition(t.over)&Node.DOCUMENT_POSITION_FOLLOWING?`Placed ${e} after ${n}`:`Placed ${e} before ${n}`}return`Placed ${e} into a different container`}};function d(t){return Array.prototype.indexOf.call(t.parentNode.children,t)}function g({source:t,over:e,overContainer:n,children:s}){const i=t.parentNode!==n;return s.length?e&&!i?function(t,e){const n=d(t),s=d(e);return t.parentNode.insertBefore(t,n<s?e.nextElementSibling:e),{oldContainer:t.parentNode,newContainer:t.parentNode}}(t,e):i?function(t,e,n){const s=t.parentNode;return e?e.parentNode.insertBefore(t,e):n.appendChild(t),{oldContainer:s,newContainer:t.parentNode}}(t,e,n):null:function(t,e){const n=t.parentNode;return e.appendChild(t),{oldContainer:n,newContainer:e}}(t,n)}e.default=class extends r.default{constructor(t=[],e={}){super(t,i({},e,{announcements:i({},l,e.announcements||{})})),this.startIndex=null,this.startContainer=null,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this),this.on("drag:start",this[a]).on("drag:over:container",this[u]).on("drag:over",this[h]).on("drag:stop",this[c])}destroy(){super.destroy(),this.off("drag:start",this[a]).off("drag:over:container",this[u]).off("drag:over",this[h]).off("drag:stop",this[c])}index(t){return this.getDraggableElementsForContainer(t.parentNode).indexOf(t)}[a](t){this.startContainer=t.source.parentNode,this.startIndex=this.index(t.source);const e=new o.SortableStartEvent({dragEvent:t,startIndex:this.startIndex,startContainer:this.startContainer});this.trigger(e),e.canceled()&&t.cancel()}[u](t){if(t.canceled())return;const{source:e,over:n,overContainer:s}=t,i=this.index(e),r=new o.SortableSortEvent({dragEvent:t,currentIndex:i,source:e,over:n});if(this.trigger(r),r.canceled())return;const a=g({source:e,over:n,overContainer:s,children:this.getDraggableElementsForContainer(s)});if(!a)return;const{oldContainer:u,newContainer:h}=a,c=this.index(t.source),l=new o.SortableSortedEvent({dragEvent:t,oldIndex:i,newIndex:c,oldContainer:u,newContainer:h});this.trigger(l)}[h](t){if(t.over===t.originalSource||t.over===t.source)return;const{source:e,over:n,overContainer:s}=t,i=this.index(e),r=new o.SortableSortEvent({dragEvent:t,currentIndex:i,source:e,over:n});if(this.trigger(r),r.canceled())return;const a=g({source:e,over:n,overContainer:s,children:this.getDraggableElementsForContainer(s)});if(!a)return;const{oldContainer:u,newContainer:h}=a,c=this.index(e),l=new o.SortableSortedEvent({dragEvent:t,oldIndex:i,newIndex:c,oldContainer:u,newContainer:h});this.trigger(l)}[c](t){const e=new o.SortableStopEvent({dragEvent:t,oldIndex:this.startIndex,newIndex:this.index(t.source),oldContainer:this.startContainer,newContainer:t.source.parentNode});this.trigger(e),this.startIndex=null,this.startContainer=null}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SortableStopEvent=e.SortableSortedEvent=e.SortableSortEvent=e.SortableStartEvent=e.SortableEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get dragEvent(){return this.data.dragEvent}}e.SortableEvent=r,r.type="sortable";class o extends r{get startIndex(){return this.data.startIndex}get startContainer(){return this.data.startContainer}}e.SortableStartEvent=o,o.type="sortable:start",o.cancelable=!0;class a extends r{get currentIndex(){return this.data.currentIndex}get over(){return this.data.oldIndex}get overContainer(){return this.data.newIndex}}e.SortableSortEvent=a,a.type="sortable:sort",a.cancelable=!0;class u extends r{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}e.SortableSortedEvent=u,u.type="sortable:sorted";class h extends r{get oldIndex(){return this.data.oldIndex}get newIndex(){return this.data.newIndex}get oldContainer(){return this.data.oldContainer}get newContainer(){return this.data.newContainer}}e.SortableStopEvent=h,h.type="sortable:stop"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(9);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var i,r=(i=n(26))&&i.__esModule?i:{default:i};e.default=r.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(5))&&s.__esModule?s:{default:s},o=n(10);const a=Symbol("onDragStart"),u=Symbol("onDragOver"),h=Symbol("onDragStop"),c={"swappabled:swapped":function({dragEvent:t,swappedElement:e}){return`Swapped ${t.source.textContent.trim()||t.source.id||"swappable element"} with ${e.textContent.trim()||e.id||"swappable element"}`}};function l(t,e){const n=e.parentNode,s=t.parentNode;!function(){const i=document.createElement("div");(i=>{s.insertBefore(i,t),n.insertBefore(t,e),s.insertBefore(e,i)})(i),i.parentNode.removeChild(i)}()}e.default=class extends r.default{constructor(t=[],e={}){super(t,i({},e,{announcements:i({},c,e.announcements||{})})),this.lastOver=null,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this.on("drag:start",this[a]).on("drag:over",this[u]).on("drag:stop",this[h])}destroy(){super.destroy(),this.off("drag:start",this._onDragStart).off("drag:over",this._onDragOver).off("drag:stop",this._onDragStop)}[a](t){const e=new o.SwappableStartEvent({dragEvent:t});this.trigger(e),e.canceled()&&t.cancel()}[u](t){if(t.over===t.originalSource||t.over===t.source||t.canceled())return;const e=new o.SwappableSwapEvent({dragEvent:t,over:t.over,overContainer:t.overContainer});if(this.trigger(e),e.canceled())return;this.lastOver&&this.lastOver!==t.over&&l(this.lastOver,t.source),this.lastOver=this.lastOver===t.over?null:t.over,l(t.source,t.over);const n=new o.SwappableSwappedEvent({dragEvent:t,swappedElement:t.over});this.trigger(n)}[h](t){const e=new o.SwappableStopEvent({dragEvent:t});this.trigger(e),this.lastOver=null}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SwappableStopEvent=e.SwappableSwappedEvent=e.SwappableSwapEvent=e.SwappableStartEvent=e.SwappableEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get dragEvent(){return this.data.dragEvent}}e.SwappableEvent=r,r.type="swappable";class o extends r{}e.SwappableStartEvent=o,o.type="swappable:start",o.cancelable=!0;class a extends r{get over(){return this.data.over}get overContainer(){return this.data.overContainer}}e.SwappableSwapEvent=a,a.type="swappable:swap",a.cancelable=!0;class u extends r{get swappedElement(){return this.data.swappedElement}}e.SwappableSwappedEvent=u,u.type="swappable:swapped";class h extends r{}e.SwappableStopEvent=h,h.type="swappable:stop"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(10);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var i,r=(i=n(29))&&i.__esModule?i:{default:i};e.default=r.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=n(2),o=(s=n(5))&&s.__esModule?s:{default:s},a=n(11);const u=Symbol("onDragStart"),h=Symbol("onDragMove"),c=Symbol("onDragStop"),l=Symbol("dropInDropZone"),d=Symbol("returnToOriginalDropzone"),g=Symbol("closestDropzone"),f=Symbol("getDropzones"),v={"droppable:dropped":function({dragEvent:t,dropzone:e}){return`Dropped ${t.source.textContent.trim()||t.source.id||"draggable element"} into ${e.textContent.trim()||e.id||"droppable element"}`},"droppable:returned":function({dragEvent:t,dropzone:e}){return`Returned ${t.source.textContent.trim()||t.source.id||"draggable element"} from ${e.textContent.trim()||e.id||"droppable element"}`}},m={"droppable:active":"draggable-dropzone--active","droppable:occupied":"draggable-dropzone--occupied"},b={dropzone:".draggable-droppable"};e.default=class extends o.default{constructor(t=[],e={}){super(t,i({},b,e,{classes:i({},m,e.classes||{}),announcements:i({},v,e.announcements||{})})),this.dropzones=null,this.lastDropzone=null,this.initialDropzone=null,this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this),this.on("drag:start",this[u]).on("drag:move",this[h]).on("drag:stop",this[c])}destroy(){super.destroy(),this.off("drag:start",this[u]).off("drag:move",this[h]).off("drag:stop",this[c])}[u](t){if(t.canceled())return;this.dropzones=[...this[f]()];const e=(0,r.closest)(t.sensorEvent.target,this.options.dropzone);if(!e)return void t.cancel();const n=new a.DroppableStartEvent({dragEvent:t,dropzone:e});if(this.trigger(n),n.canceled())t.cancel();else{this.initialDropzone=e;for(const t of this.dropzones)t.classList.contains(this.getClassNameFor("droppable:occupied"))||t.classList.add(this.getClassNameFor("droppable:active"))}}[h](t){if(t.canceled())return;const e=this[g](t.sensorEvent.target);e&&!e.classList.contains(this.getClassNameFor("droppable:occupied"))&&this[l](t,e)?this.lastDropzone=e:e&&e!==this.initialDropzone||!this.lastDropzone||(this[d](t),this.lastDropzone=null)}[c](t){const e=new a.DroppableStopEvent({dragEvent:t,dropzone:this.lastDropzone||this.initialDropzone});this.trigger(e);const n=this.getClassNameFor("droppable:occupied");for(const t of this.dropzones)t.classList.remove(this.getClassNameFor("droppable:active"));this.lastDropzone&&this.lastDropzone!==this.initialDropzone&&this.initialDropzone.classList.remove(n),this.dropzones=null,this.lastDropzone=null,this.initialDropzone=null}[l](t,e){const n=new a.DroppableDroppedEvent({dragEvent:t,dropzone:e});if(this.trigger(n),n.canceled())return!1;const s=this.getClassNameFor("droppable:occupied");return this.lastDropzone&&this.lastDropzone.classList.remove(s),e.appendChild(t.source),e.classList.add(s),!0}[d](t){const e=new a.DroppableReturnedEvent({dragEvent:t,dropzone:this.lastDropzone});this.trigger(e),e.canceled()||(this.initialDropzone.appendChild(t.source),this.lastDropzone.classList.remove(this.getClassNameFor("droppable:occupied")))}[g](t){return this.dropzones?(0,r.closest)(t,this.dropzones):null}[f](){const t=this.options.dropzone;return"string"==typeof t?document.querySelectorAll(t):t instanceof NodeList||t instanceof Array?t:"function"==typeof t?t():[]}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DroppableStopEvent=e.DroppableReturnedEvent=e.DroppableDroppedEvent=e.DroppableStartEvent=e.DroppableEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get dragEvent(){return this.data.dragEvent}}e.DroppableEvent=r,r.type="droppable";class o extends r{get dropzone(){return this.data.dropzone}}e.DroppableStartEvent=o,o.type="droppable:start",o.cancelable=!0;class a extends r{get dropzone(){return this.data.dropzone}}e.DroppableDroppedEvent=a,a.type="droppable:dropped",a.cancelable=!0;class u extends r{get dropzone(){return this.data.dropzone}}e.DroppableReturnedEvent=u,u.type="droppable:returned",u.cancelable=!0;class h extends r{get dropzone(){return this.data.dropzone}}e.DroppableStopEvent=h,h.type="droppable:stop",h.cancelable=!0},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(11);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var i,r=(i=n(32))&&i.__esModule?i:{default:i};e.default=r.default},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(){this.callbacks={}}on(t,...e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(...e),this}off(t,e){if(!this.callbacks[t])return null;const n=this.callbacks[t].slice(0);for(let s=0;s<n.length;s++)e===n[s]&&this.callbacks[t].splice(s,1);return this}trigger(t){if(!this.callbacks[t.type])return null;const e=[...this.callbacks[t.type]],n=[];for(let s=e.length-1;s>=0;s--){const i=e[s];try{i(t)}catch(t){n.push(t)}}return n.length&&console.error(`Draggable caught errors while triggering '${t.type}'`,n),this}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(35))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=n(2),o=n(12),a=(s=n(36))&&s.__esModule?s:{default:s},u=n(6),h=n(13),c=n(14);const l=Symbol("onDragStart"),d=Symbol("onDragMove"),g=Symbol("onDragStop"),f=Symbol("onDragPressure"),v={"drag:start":t=>`Picked up ${t.source.textContent.trim()||t.source.id||"draggable element"}`,"drag:stop":t=>`Released ${t.source.textContent.trim()||t.source.id||"draggable element"}`},m={"container:dragging":"draggable-container--is-dragging","source:dragging":"draggable-source--is-dragging","source:placed":"draggable-source--placed","container:placed":"draggable-container--placed","body:dragging":"draggable--is-dragging","draggable:over":"draggable--over","container:over":"draggable-container--over","source:original":"draggable--original",mirror:"draggable-mirror"},b=e.defaultOptions={draggable:".draggable-source",handle:null,delay:100,placedTimeout:800,plugins:[],sensors:[]};class p{constructor(t=[document.body],e={}){if(t instanceof NodeList||t instanceof Array)this.containers=[...t];else{if(!(t instanceof HTMLElement))throw new Error("Draggable containers are expected to be of type `NodeList`, `HTMLElement[]` or `HTMLElement`");this.containers=[t]}this.options=i({},b,e,{classes:i({},m,e.classes||{}),announcements:i({},v,e.announcements||{})}),this.emitter=new a.default,this.dragging=!1,this.plugins=[],this.sensors=[],this[l]=this[l].bind(this),this[d]=this[d].bind(this),this[g]=this[g].bind(this),this[f]=this[f].bind(this),document.addEventListener("drag:start",this[l],!0),document.addEventListener("drag:move",this[d],!0),document.addEventListener("drag:stop",this[g],!0),document.addEventListener("drag:pressure",this[f],!0);const n=Object.values(p.Plugins).map((t=>t)),s=[u.MouseSensor,u.TouchSensor];this.addPlugin(...n,...this.options.plugins),this.addSensor(...s,...this.options.sensors);const r=new h.DraggableInitializedEvent({draggable:this});this.on("mirror:created",(({mirror:t})=>this.mirror=t)),this.on("mirror:destroy",(()=>this.mirror=null)),this.trigger(r)}destroy(){document.removeEventListener("drag:start",this[l],!0),document.removeEventListener("drag:move",this[d],!0),document.removeEventListener("drag:stop",this[g],!0),document.removeEventListener("drag:pressure",this[f],!0);const t=new h.DraggableDestroyEvent({draggable:this});this.trigger(t),this.removePlugin(...this.plugins.map((t=>t.constructor))),this.removeSensor(...this.sensors.map((t=>t.constructor)))}addPlugin(...t){const e=t.map((t=>new t(this)));return e.forEach((t=>t.attach())),this.plugins=[...this.plugins,...e],this}removePlugin(...t){return this.plugins.filter((e=>t.includes(e.constructor))).forEach((t=>t.detach())),this.plugins=this.plugins.filter((e=>!t.includes(e.constructor))),this}addSensor(...t){const e=t.map((t=>new t(this.containers,this.options)));return e.forEach((t=>t.attach())),this.sensors=[...this.sensors,...e],this}removeSensor(...t){return this.sensors.filter((e=>t.includes(e.constructor))).forEach((t=>t.detach())),this.sensors=this.sensors.filter((e=>!t.includes(e.constructor))),this}addContainer(...t){return this.containers=[...this.containers,...t],this.sensors.forEach((e=>e.addContainer(...t))),this}removeContainer(...t){return this.containers=this.containers.filter((e=>!t.includes(e))),this.sensors.forEach((e=>e.removeContainer(...t))),this}on(t,...e){return this.emitter.on(t,...e),this}off(t,e){return this.emitter.off(t,e),this}trigger(t){return this.emitter.trigger(t),this}getClassNameFor(t){return this.options.classes[t]}isDragging(){return Boolean(this.dragging)}getDraggableElements(){return this.containers.reduce(((t,e)=>[...t,...this.getDraggableElementsForContainer(e)]),[])}getDraggableElementsForContainer(t){return[...t.querySelectorAll(this.options.draggable)].filter((t=>t!==this.originalSource&&t!==this.mirror))}[l](t){const e=O(t),{target:n,container:s}=e;if(!this.containers.includes(s))return;if(this.options.handle&&n&&!(0,r.closest)(n,this.options.handle))return void e.cancel();if(this.originalSource=(0,r.closest)(n,this.options.draggable),this.sourceContainer=s,!this.originalSource)return void e.cancel();this.lastPlacedSource&&this.lastPlacedContainer&&(clearTimeout(this.placedTimeoutID),this.lastPlacedSource.classList.remove(this.getClassNameFor("source:placed")),this.lastPlacedContainer.classList.remove(this.getClassNameFor("container:placed"))),this.source=this.originalSource.cloneNode(!0),this.originalSource.parentNode.insertBefore(this.source,this.originalSource),this.originalSource.style.display="none";const o=new c.DragStartEvent({source:this.source,originalSource:this.originalSource,sourceContainer:s,sensorEvent:e});if(this.trigger(o),this.dragging=!o.canceled(),o.canceled())return this.source.parentNode.removeChild(this.source),void(this.originalSource.style.display=null);this.originalSource.classList.add(this.getClassNameFor("source:original")),this.source.classList.add(this.getClassNameFor("source:dragging")),this.sourceContainer.classList.add(this.getClassNameFor("container:dragging")),document.body.classList.add(this.getClassNameFor("body:dragging")),_(document.body,"none"),requestAnimationFrame((()=>{const e=O(t).clone({target:this.source});this[d](i({},t,{detail:e}))}))}[d](t){if(!this.dragging)return;const e=O(t),{container:n}=e;let s=e.target;const i=new c.DragMoveEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e});this.trigger(i),i.canceled()&&e.cancel(),s=(0,r.closest)(s,this.options.draggable);const o=(0,r.closest)(e.target,this.containers),a=e.overContainer||o,u=this.currentOverContainer&&a!==this.currentOverContainer,h=a&&this.currentOverContainer!==a,l=o&&s&&this.currentOver!==s;if(this.currentOver&&s!==this.currentOver){const t=new c.DragOutEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,over:this.currentOver});this.currentOver.classList.remove(this.getClassNameFor("draggable:over")),this.currentOver=null,this.trigger(t)}if(u){const t=new c.DragOutContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,overContainer:this.currentOverContainer});this.currentOverContainer.classList.remove(this.getClassNameFor("container:over")),this.currentOverContainer=null,this.trigger(t)}if(h){a.classList.add(this.getClassNameFor("container:over"));const t=new c.DragOverContainerEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,overContainer:a});this.currentOverContainer=a,this.trigger(t)}if(l){s.classList.add(this.getClassNameFor("draggable:over"));const t=new c.DragOverEvent({source:this.source,originalSource:this.originalSource,sourceContainer:n,sensorEvent:e,overContainer:a,over:s});this.currentOver=s,this.trigger(t)}}[g](t){if(!this.dragging)return;this.dragging=!1;const e=new c.DragStopEvent({source:this.source,originalSource:this.originalSource,sensorEvent:t.sensorEvent,sourceContainer:this.sourceContainer});this.trigger(e),this.source.parentNode.insertBefore(this.originalSource,this.source),this.source.parentNode.removeChild(this.source),this.originalSource.style.display="",this.source.classList.remove(this.getClassNameFor("source:dragging")),this.originalSource.classList.remove(this.getClassNameFor("source:original")),this.originalSource.classList.add(this.getClassNameFor("source:placed")),this.sourceContainer.classList.add(this.getClassNameFor("container:placed")),this.sourceContainer.classList.remove(this.getClassNameFor("container:dragging")),document.body.classList.remove(this.getClassNameFor("body:dragging")),_(document.body,""),this.currentOver&&this.currentOver.classList.remove(this.getClassNameFor("draggable:over")),this.currentOverContainer&&this.currentOverContainer.classList.remove(this.getClassNameFor("container:over")),this.lastPlacedSource=this.originalSource,this.lastPlacedContainer=this.sourceContainer,this.placedTimeoutID=setTimeout((()=>{this.lastPlacedSource&&this.lastPlacedSource.classList.remove(this.getClassNameFor("source:placed")),this.lastPlacedContainer&&this.lastPlacedContainer.classList.remove(this.getClassNameFor("container:placed")),this.lastPlacedSource=null,this.lastPlacedContainer=null}),this.options.placedTimeout),this.source=null,this.originalSource=null,this.currentOverContainer=null,this.currentOver=null,this.sourceContainer=null}[f](t){if(!this.dragging)return;const e=O(t),n=this.source||(0,r.closest)(e.originalEvent.target,this.options.draggable),s=new c.DragPressureEvent({sensorEvent:e,source:n,pressure:e.pressure});this.trigger(s)}}function O(t){return t.detail}function _(t,e){t.style.webkitUserSelect=e,t.style.mozUserSelect=e,t.style.msUserSelect=e,t.style.oUserSelect=e,t.style.userSelect=e}e.default=p,p.Plugins={Announcement:o.Announcement,Focusable:o.Focusable,Mirror:o.Mirror,Scrollable:o.Scrollable}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(4))&&s.__esModule?s:{default:s},r=n(3);const o=Symbol("onMouseForceWillBegin"),a=Symbol("onMouseForceDown"),u=Symbol("onMouseDown"),h=Symbol("onMouseForceChange"),c=Symbol("onMouseMove"),l=Symbol("onMouseUp"),d=Symbol("onMouseForceGlobalChange");e.default=class extends i.default{constructor(t=[],e={}){super(t,e),this.mightDrag=!1,this[o]=this[o].bind(this),this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this),this[l]=this[l].bind(this)}attach(){for(const t of this.containers)t.addEventListener("webkitmouseforcewillbegin",this[o],!1),t.addEventListener("webkitmouseforcedown",this[a],!1),t.addEventListener("mousedown",this[u],!0),t.addEventListener("webkitmouseforcechanged",this[h],!1);document.addEventListener("mousemove",this[c]),document.addEventListener("mouseup",this[l])}detach(){for(const t of this.containers)t.removeEventListener("webkitmouseforcewillbegin",this[o],!1),t.removeEventListener("webkitmouseforcedown",this[a],!1),t.removeEventListener("mousedown",this[u],!0),t.removeEventListener("webkitmouseforcechanged",this[h],!1);document.removeEventListener("mousemove",this[c]),document.removeEventListener("mouseup",this[l])}[o](t){t.preventDefault(),this.mightDrag=!0}[a](t){if(this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=t.currentTarget,s=new r.DragStartSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,s),this.currentContainer=n,this.dragging=!s.canceled(),this.mightDrag=!1}[l](t){if(!this.dragging)return;const e=new r.DragStopSensorEvent({clientX:t.clientX,clientY:t.clientY,target:null,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,e),this.currentContainer=null,this.dragging=!1,this.mightDrag=!1}[u](t){this.mightDrag&&(t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault())}[c](t){if(!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=new r.DragMoveSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,n)}[h](t){if(this.dragging)return;const e=t.currentTarget,n=new r.DragPressureSensorEvent({pressure:t.webkitForce,clientX:t.clientX,clientY:t.clientY,target:t.target,container:e,originalEvent:t});this.trigger(e,n)}[d](t){if(!this.dragging)return;const e=new r.DragPressureSensorEvent({pressure:t.webkitForce,clientX:t.clientX,clientY:t.clientY,target:t.target,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,e)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(38))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(2),r=(s=n(4))&&s.__esModule?s:{default:s},o=n(3);const a=Symbol("onMouseDown"),u=Symbol("onMouseUp"),h=Symbol("onDragStart"),c=Symbol("onDragOver"),l=Symbol("onDragEnd"),d=Symbol("onDrop"),g=Symbol("reset");e.default=class extends r.default{constructor(t=[],e={}){super(t,e),this.mouseDownTimeout=null,this.draggableElement=null,this.nativeDraggableElement=null,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this),this[l]=this[l].bind(this),this[d]=this[d].bind(this)}attach(){document.addEventListener("mousedown",this[a],!0)}detach(){document.removeEventListener("mousedown",this[a],!0)}[h](t){t.dataTransfer.setData("text",""),t.dataTransfer.effectAllowed=this.options.type;const e=document.elementFromPoint(t.clientX,t.clientY);if(this.currentContainer=(0,i.closest)(t.target,this.containers),!this.currentContainer)return;const n=new o.DragStartSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});setTimeout((()=>{this.trigger(this.currentContainer,n),this.dragging=!n.canceled()}),0)}[c](t){if(!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=this.currentContainer,s=new o.DragMoveSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,s),s.canceled()||(t.preventDefault(),t.dataTransfer.dropEffect=this.options.type)}[l](t){if(!this.dragging)return;document.removeEventListener("mouseup",this[u],!0);const e=document.elementFromPoint(t.clientX,t.clientY),n=this.currentContainer,s=new o.DragStopSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,s),this.dragging=!1,this[g]()}[d](t){t.preventDefault()}[a](t){if(t.target&&(t.target.form||t.target.contenteditable))return;const e=(0,i.closest)(t.target,(t=>t.draggable));e&&(e.draggable=!1,this.nativeDraggableElement=e),document.addEventListener("mouseup",this[u],!0),document.addEventListener("dragstart",this[h],!1),document.addEventListener("dragover",this[c],!1),document.addEventListener("dragend",this[l],!1),document.addEventListener("drop",this[d],!1);const n=(0,i.closest)(t.target,this.options.draggable);n&&(this.mouseDownTimeout=setTimeout((()=>{n.draggable=!0,this.draggableElement=n}),this.options.delay))}[u](){this[g]()}[g](){clearTimeout(this.mouseDownTimeout),document.removeEventListener("mouseup",this[u],!0),document.removeEventListener("dragstart",this[h],!1),document.removeEventListener("dragover",this[c],!1),document.removeEventListener("dragend",this[l],!1),document.removeEventListener("drop",this[d],!1),this.nativeDraggableElement&&(this.nativeDraggableElement.draggable=!0,this.nativeDraggableElement=null),this.draggableElement&&(this.draggableElement.draggable=!1,this.draggableElement=null)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(40))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(2),r=(s=n(4))&&s.__esModule?s:{default:s},o=n(3);const a=Symbol("onTouchStart"),u=Symbol("onTouchHold"),h=Symbol("onTouchEnd"),c=Symbol("onTouchMove");let l=!1;function d(t){t.preventDefault(),t.stopPropagation()}window.addEventListener("touchmove",(t=>{l&&t.preventDefault()}),{passive:!1}),e.default=class extends r.default{constructor(t=[],e={}){super(t,e),this.currentScrollableParent=null,this.tapTimeout=null,this.touchMoved=!1,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this)}attach(){document.addEventListener("touchstart",this[a])}detach(){document.removeEventListener("touchstart",this[a])}[a](t){const e=(0,i.closest)(t.target,this.containers);e&&(document.addEventListener("touchmove",this[c]),document.addEventListener("touchend",this[h]),document.addEventListener("touchcancel",this[h]),e.addEventListener("contextmenu",d),this.currentContainer=e,this.tapTimeout=setTimeout(this[u](t,e),this.options.delay))}[u](t,e){return()=>{if(this.touchMoved)return;const n=t.touches[0]||t.changedTouches[0],s=new o.DragStartSensorEvent({clientX:n.pageX,clientY:n.pageY,target:t.target,container:e,originalEvent:t});this.trigger(e,s),this.dragging=!s.canceled(),l=this.dragging}}[c](t){if(this.touchMoved=!0,!this.dragging)return;const e=t.touches[0]||t.changedTouches[0],n=document.elementFromPoint(e.pageX-window.scrollX,e.pageY-window.scrollY),s=new o.DragMoveSensorEvent({clientX:e.pageX,clientY:e.pageY,target:n,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,s)}[h](t){if(this.touchMoved=!1,l=!1,document.removeEventListener("touchend",this[h]),document.removeEventListener("touchcancel",this[h]),document.removeEventListener("touchmove",this[c]),this.currentContainer&&this.currentContainer.removeEventListener("contextmenu",d),clearTimeout(this.tapTimeout),!this.dragging)return;const e=t.touches[0]||t.changedTouches[0],n=document.elementFromPoint(e.pageX-window.scrollX,e.pageY-window.scrollY);t.preventDefault();const s=new o.DragStopSensorEvent({clientX:e.pageX,clientY:e.pageY,target:n,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,s),this.currentContainer=null,this.dragging=!1}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(42))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DragPressureSensorEvent=e.DragStopSensorEvent=e.DragMoveSensorEvent=e.DragStartSensorEvent=e.SensorEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get originalEvent(){return this.data.originalEvent}get clientX(){return this.data.clientX}get clientY(){return this.data.clientY}get target(){return this.data.target}get container(){return this.data.container}get pressure(){return this.data.pressure}}e.SensorEvent=r;class o extends r{}e.DragStartSensorEvent=o,o.type="drag:start";class a extends r{}e.DragMoveSensorEvent=a,a.type="drag:move";class u extends r{}e.DragStopSensorEvent=u,u.type="drag:stop";class h extends r{}e.DragPressureSensorEvent=h,h.type="drag:pressure"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=n(2),r=(s=n(4))&&s.__esModule?s:{default:s},o=n(3);const a=Symbol("onContextMenuWhileDragging"),u=Symbol("onMouseDown"),h=Symbol("onMouseMove"),c=Symbol("onMouseUp");function l(t){t.preventDefault()}e.default=class extends r.default{constructor(t=[],e={}){super(t,e),this.mouseDown=!1,this.mouseDownTimeout=null,this.openedContextMenu=!1,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this)}attach(){document.addEventListener("mousedown",this[u],!0)}detach(){document.removeEventListener("mousedown",this[u],!0)}[u](t){if(0!==t.button||t.ctrlKey||t.metaKey)return;document.addEventListener("mouseup",this[c]);const e=document.elementFromPoint(t.clientX,t.clientY),n=(0,i.closest)(e,this.containers);n&&(document.addEventListener("dragstart",l),this.mouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout((()=>{if(!this.mouseDown)return;const s=new o.DragStartSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:n,originalEvent:t});this.trigger(n,s),this.currentContainer=n,this.dragging=!s.canceled(),this.dragging&&(document.addEventListener("contextmenu",this[a]),document.addEventListener("mousemove",this[h]))}),this.options.delay))}[h](t){if(!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=new o.DragMoveSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,n)}[c](t){if(this.mouseDown=Boolean(this.openedContextMenu),this.openedContextMenu)return void(this.openedContextMenu=!1);if(document.removeEventListener("mouseup",this[c]),document.removeEventListener("dragstart",l),!this.dragging)return;const e=document.elementFromPoint(t.clientX,t.clientY),n=new o.DragStopSensorEvent({clientX:t.clientX,clientY:t.clientY,target:e,container:this.currentContainer,originalEvent:t});this.trigger(this.currentContainer,n),document.removeEventListener("contextmenu",this[a]),document.removeEventListener("mousemove",this[h]),this.currentContainer=null,this.dragging=!1}[a](t){t.preventDefault(),this.openedContextMenu=!0}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(45))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t};e.default=class{constructor(t=[],e={}){this.containers=[...t],this.options=n({},e),this.dragging=!1,this.currentContainer=null}attach(){return this}detach(){return this}addContainer(...t){this.containers=[...this.containers,...t]}removeContainer(...t){this.containers=this.containers.filter((e=>!t.includes(e)))}trigger(t,e){const n=document.createEvent("Event");return n.detail=e,n.initEvent(e.type,!0,!0),t.dispatchEvent(n),this.lastEvent=e,e}}},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return requestAnimationFrame((()=>{requestAnimationFrame(t)}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(48))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(!t)return null;const s=e,i=e,r=e,o=e,a=Boolean("string"==typeof e),u=Boolean("function"==typeof e),h=Boolean(e instanceof NodeList||e instanceof Array),c=Boolean(e instanceof HTMLElement);let l=t;do{if(l=l.correspondingUseElement||l.correspondingElement||l,(d=l)?a?n.call(d,s):h?[...r].includes(d):c?o===d:u&&i(d):d)return l;l=l.parentNode}while(l&&l!==document.body&&l!==document);var d;return null};const n=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(50))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.scroll=e.onDragStop=e.onDragMove=e.onDragStart=void 0;var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(1))&&s.__esModule?s:{default:s},o=n(2);const a=e.onDragStart=Symbol("onDragStart"),u=e.onDragMove=Symbol("onDragMove"),h=e.onDragStop=Symbol("onDragStop"),c=e.scroll=Symbol("scroll"),l=e.defaultOptions={speed:6,sensitivity:50,scrollableElements:[]};function d(){return document.scrollingElement||document.documentElement}e.default=class extends r.default{constructor(t){super(t),this.options=i({},l,this.getOptions()),this.currentMousePosition=null,this.scrollAnimationFrame=null,this.scrollableElement=null,this.findScrollableElementFrame=null,this[a]=this[a].bind(this),this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this)}attach(){this.draggable.on("drag:start",this[a]).on("drag:move",this[u]).on("drag:stop",this[h])}detach(){this.draggable.off("drag:start",this[a]).off("drag:move",this[u]).off("drag:stop",this[h])}getOptions(){return this.draggable.options.scrollable||{}}getScrollableElement(t){return this.hasDefinedScrollableElements()?(0,o.closest)(t,this.options.scrollableElements)||document.documentElement:function(t){if(!t)return d();const e=getComputedStyle(t).getPropertyValue("position"),n="absolute"===e,s=(0,o.closest)(t,(t=>(!n||!function(t){return"static"===getComputedStyle(t).getPropertyValue("position")}(t))&&function(t){const e=getComputedStyle(t,null),n=e.getPropertyValue("overflow")+e.getPropertyValue("overflow-y")+e.getPropertyValue("overflow-x");return/(auto|scroll)/.test(n)}(t)));return"fixed"!==e&&s?s:d()}(t)}hasDefinedScrollableElements(){return Boolean(0!==this.options.scrollableElements.length)}[a](t){this.findScrollableElementFrame=requestAnimationFrame((()=>{this.scrollableElement=this.getScrollableElement(t.source)}))}[u](t){if(this.findScrollableElementFrame=requestAnimationFrame((()=>{this.scrollableElement=this.getScrollableElement(t.sensorEvent.target)})),!this.scrollableElement)return;const e=t.sensorEvent,n={x:0,y:0};"ontouchstart"in window&&(n.y=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,n.x=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0),this.currentMousePosition={clientX:e.clientX-n.x,clientY:e.clientY-n.y},this.scrollAnimationFrame=requestAnimationFrame(this[c])}[h](){cancelAnimationFrame(this.scrollAnimationFrame),cancelAnimationFrame(this.findScrollableElementFrame),this.scrollableElement=null,this.scrollAnimationFrame=null,this.findScrollableElementFrame=null,this.currentMousePosition=null}[c](){if(!this.scrollableElement||!this.currentMousePosition)return;cancelAnimationFrame(this.scrollAnimationFrame);const{speed:t,sensitivity:e}=this.options,n=this.scrollableElement.getBoundingClientRect(),s=n.bottom>window.innerHeight,i=n.top<0||s,r=d(),o=this.scrollableElement,a=this.currentMousePosition.clientX,u=this.currentMousePosition.clientY;if(o===document.body||o===document.documentElement||i){const{innerHeight:n,innerWidth:s}=window;u<e?r.scrollTop-=t:n-u<e&&(r.scrollTop+=t),a<e?r.scrollLeft-=t:s-a<e&&(r.scrollLeft+=t)}else{const{offsetHeight:s,offsetWidth:i}=o;n.top+s-u<e?o.scrollTop+=t:u-n.top<e&&(o.scrollTop-=t),n.left+i-a<e?o.scrollLeft+=t:a-n.left<e&&(o.scrollLeft-=t)}this.scrollAnimationFrame=requestAnimationFrame(this[c])}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=n(52),r=(s=i)&&s.__esModule?s:{default:s};e.default=r.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MirrorDestroyEvent=e.MirrorMoveEvent=e.MirrorAttachedEvent=e.MirrorCreatedEvent=e.MirrorCreateEvent=e.MirrorEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get dragEvent(){return this.data.dragEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}e.MirrorEvent=r;class o extends r{}e.MirrorCreateEvent=o,o.type="mirror:create";class a extends r{get mirror(){return this.data.mirror}}e.MirrorCreatedEvent=a,a.type="mirror:created";class u extends r{get mirror(){return this.data.mirror}}e.MirrorAttachedEvent=u,u.type="mirror:attached";class h extends r{get mirror(){return this.data.mirror}}e.MirrorMoveEvent=h,h.type="mirror:move",h.cancelable=!0;class c extends r{get mirror(){return this.data.mirror}}e.MirrorDestroyEvent=c,c.type="mirror:destroy",c.cancelable=!0},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s=n(54);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.getAppendableContainer=e.onScroll=e.onMirrorMove=e.onMirrorCreated=e.onDragStop=e.onDragMove=e.onDragStart=void 0;var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(1))&&s.__esModule?s:{default:s},o=n(55);function a(t,e){var n={};for(var s in t)e.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n}const u=e.onDragStart=Symbol("onDragStart"),h=e.onDragMove=Symbol("onDragMove"),c=e.onDragStop=Symbol("onDragStop"),l=e.onMirrorCreated=Symbol("onMirrorCreated"),d=e.onMirrorMove=Symbol("onMirrorMove"),g=e.onScroll=Symbol("onScroll"),f=e.getAppendableContainer=Symbol("getAppendableContainer"),v=e.defaultOptions={constrainDimensions:!1,xAxis:!0,yAxis:!0,cursorOffsetX:null,cursorOffsetY:null};function m(t){let{source:e}=t,n=a(t,["source"]);return w((t=>{const s=e.getBoundingClientRect();t(i({source:e,sourceRect:s},n))}))}function b(t){let{sensorEvent:e,sourceRect:n,options:s}=t,r=a(t,["sensorEvent","sourceRect","options"]);return w((t=>{t(i({sensorEvent:e,sourceRect:n,mirrorOffset:{top:null===s.cursorOffsetY?e.clientY-n.top:s.cursorOffsetY,left:null===s.cursorOffsetX?e.clientX-n.left:s.cursorOffsetX},options:s},r))}))}function p(t){let{mirror:e,source:n,options:s}=t,r=a(t,["mirror","source","options"]);return w((t=>{let o,a;if(s.constrainDimensions){const t=getComputedStyle(n);o=t.getPropertyValue("height"),a=t.getPropertyValue("width")}e.style.position="fixed",e.style.pointerEvents="none",e.style.top=0,e.style.left=0,e.style.margin=0,s.constrainDimensions&&(e.style.height=o,e.style.width=a),t(i({mirror:e,source:n,options:s},r))}))}function O(t){let{mirror:e,mirrorClass:n}=t,s=a(t,["mirror","mirrorClass"]);return w((t=>{e.classList.add(n),t(i({mirror:e,mirrorClass:n},s))}))}function _(t){let{mirror:e}=t,n=a(t,["mirror"]);return w((t=>{e.removeAttribute("id"),delete e.id,t(i({mirror:e},n))}))}function j({withFrame:t=!1,initial:e=!1}={}){return n=>{let{mirror:s,sensorEvent:r,mirrorOffset:o,initialY:u,initialX:h,scrollOffset:c,options:l}=n,d=a(n,["mirror","sensorEvent","mirrorOffset","initialY","initialX","scrollOffset","options"]);return w((t=>{const n=i({mirror:s,sensorEvent:r,mirrorOffset:o,options:l},d);if(o){const t=r.clientX-o.left-c.x,i=r.clientY-o.top-c.y;l.xAxis&&l.yAxis||e?s.style.transform=`translate3d(${t}px, ${i}px, 0)`:l.xAxis&&!l.yAxis?s.style.transform=`translate3d(${t}px, ${u}px, 0)`:l.yAxis&&!l.xAxis&&(s.style.transform=`translate3d(${h}px, ${i}px, 0)`),e&&(n.initialX=t,n.initialY=i)}t(n)}),{frame:t})}}function w(t,{raf:e=!1}={}){return new Promise(((n,s)=>{e?requestAnimationFrame((()=>{t(n,s)})):t(n,s)}))}e.default=class extends r.default{constructor(t){super(t),this.options=i({},v,this.getOptions()),this.scrollOffset={x:0,y:0},this.initialScrollOffset={x:window.scrollX,y:window.scrollY},this[u]=this[u].bind(this),this[h]=this[h].bind(this),this[c]=this[c].bind(this),this[l]=this[l].bind(this),this[d]=this[d].bind(this),this[g]=this[g].bind(this)}attach(){this.draggable.on("drag:start",this[u]).on("drag:move",this[h]).on("drag:stop",this[c]).on("mirror:created",this[l]).on("mirror:move",this[d])}detach(){this.draggable.off("drag:start",this[u]).off("drag:move",this[h]).off("drag:stop",this[c]).off("mirror:created",this[l]).off("mirror:move",this[d])}getOptions(){return this.draggable.options.mirror||{}}[u](t){if(t.canceled())return;"ontouchstart"in window&&document.addEventListener("scroll",this[g],!0),this.initialScrollOffset={x:window.scrollX,y:window.scrollY};const{source:e,originalSource:n,sourceContainer:s,sensorEvent:i}=t,r=new o.MirrorCreateEvent({source:e,originalSource:n,sourceContainer:s,sensorEvent:i,dragEvent:t});if(this.draggable.trigger(r),function(t){return/^drag/.test(t.originalEvent.type)}(i)||r.canceled())return;const a=this[f](e)||s;this.mirror=e.cloneNode(!0);const u=new o.MirrorCreatedEvent({source:e,originalSource:n,sourceContainer:s,sensorEvent:i,dragEvent:t,mirror:this.mirror}),h=new o.MirrorAttachedEvent({source:e,originalSource:n,sourceContainer:s,sensorEvent:i,dragEvent:t,mirror:this.mirror});this.draggable.trigger(u),a.appendChild(this.mirror),this.draggable.trigger(h)}[h](t){if(!this.mirror||t.canceled())return;const{source:e,originalSource:n,sourceContainer:s,sensorEvent:i}=t,r=new o.MirrorMoveEvent({source:e,originalSource:n,sourceContainer:s,sensorEvent:i,dragEvent:t,mirror:this.mirror});this.draggable.trigger(r)}[c](t){if("ontouchstart"in window&&document.removeEventListener("scroll",this[g],!0),this.initialScrollOffset={x:0,y:0},this.scrollOffset={x:0,y:0},!this.mirror)return;const{source:e,sourceContainer:n,sensorEvent:s}=t,i=new o.MirrorDestroyEvent({source:e,mirror:this.mirror,sourceContainer:n,sensorEvent:s,dragEvent:t});this.draggable.trigger(i),i.canceled()||this.mirror.parentNode.removeChild(this.mirror)}[g](){this.scrollOffset={x:window.scrollX-this.initialScrollOffset.x,y:window.scrollY-this.initialScrollOffset.y}}[l]({mirror:t,source:e,sensorEvent:n}){const s=this.draggable.getClassNameFor("mirror");return Promise.resolve({mirror:t,source:e,sensorEvent:n,mirrorClass:s,scrollOffset:this.scrollOffset,options:this.options}).then(m).then(b).then(p).then(O).then(j({initial:!0})).then(_).then((t=>{let{mirrorOffset:e,initialX:n,initialY:s}=t,r=a(t,["mirrorOffset","initialX","initialY"]);return this.mirrorOffset=e,this.initialX=n,this.initialY=s,i({mirrorOffset:e,initialX:n,initialY:s},r)}))}[d](t){return t.canceled()?null:Promise.resolve({mirror:t.mirror,sensorEvent:t.sensorEvent,mirrorOffset:this.mirrorOffset,options:this.options,initialX:this.initialX,initialY:this.initialY,scrollOffset:this.scrollOffset}).then(j({raf:!0}))}[f](t){const e=this.options.appendTo;return"string"==typeof e?document.querySelector(e):e instanceof HTMLElement?e:"function"==typeof e?e(t):t.parentNode}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=n(56),r=(s=i)&&s.__esModule?s:{default:s};e.default=r.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(1))&&s.__esModule?s:{default:s};const o=Symbol("onInitialize"),a=Symbol("onDestroy"),u={};e.default=class extends r.default{constructor(t){super(t),this.options=i({},u,this.getOptions()),this[o]=this[o].bind(this),this[a]=this[a].bind(this)}attach(){this.draggable.on("draggable:initialize",this[o]).on("draggable:destroy",this[a])}detach(){this.draggable.off("draggable:initialize",this[o]).off("draggable:destroy",this[a])}getOptions(){return this.draggable.options.focusable||{}}getElements(){return[...this.draggable.containers,...this.draggable.getDraggableElements()]}[o](){requestAnimationFrame((()=>{this.getElements().forEach((t=>function(t){Boolean(!t.getAttribute("tabindex")&&-1===t.tabIndex)&&(h.push(t),t.tabIndex=0)}(t)))}))}[a](){requestAnimationFrame((()=>{this.getElements().forEach((t=>function(t){const e=h.indexOf(t);-1!==e&&(t.tabIndex=-1,h.splice(e,1))}(t)))}))}};const h=[]},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var s,i=(s=n(58))&&s.__esModule?s:{default:s};e.default=i.default},function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(t){this.draggable=t}attach(){throw new Error("Not Implemented")}detach(){throw new Error("Not Implemented")}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},r=(s=n(1))&&s.__esModule?s:{default:s};const o=Symbol("onInitialize"),a=Symbol("onDestroy"),u=Symbol("announceEvent"),h=Symbol("announceMessage"),c=e.defaultOptions={expire:7e3};e.default=class extends r.default{constructor(t){super(t),this.options=i({},c,this.getOptions()),this.originalTriggerMethod=this.draggable.trigger,this[o]=this[o].bind(this),this[a]=this[a].bind(this)}attach(){this.draggable.on("draggable:initialize",this[o])}detach(){this.draggable.off("draggable:destroy",this[a])}getOptions(){return this.draggable.options.announcements||{}}[u](t){const e=this.options[t.type];e&&"string"==typeof e&&this[h](e),e&&"function"==typeof e&&this[h](e(t))}[h](t){!function(t,{expire:e}){const n=document.createElement("div");n.textContent=t,l.appendChild(n),setTimeout((()=>{l.removeChild(n)}),e)}(t,{expire:this.options.expire})}[o](){this.draggable.trigger=t=>{try{this[u](t)}finally{this.originalTriggerMethod.call(this.draggable,t)}}}[a](){this.draggable.trigger=this.originalTriggerMethod}};const l=function(){const t=document.createElement("div");return t.setAttribute("id","draggable-live-region"),t.setAttribute("aria-relevant","additions"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","assertive"),t.setAttribute("role","log"),t.style.position="fixed",t.style.width="1px",t.style.height="1px",t.style.top="-1px",t.style.overflow="hidden",t}();document.addEventListener("DOMContentLoaded",(()=>{document.body.appendChild(l)}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=void 0;var s,i=n(61),r=(s=i)&&s.__esModule?s:{default:s};e.default=r.default,e.defaultOptions=i.defaultOptions},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DraggableDestroyEvent=e.DraggableInitializedEvent=e.DraggableEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get draggable(){return this.data.draggable}}e.DraggableEvent=r,r.type="draggable";class o extends r{}e.DraggableInitializedEvent=o,o.type="draggable:initialize";class a extends r{}e.DraggableDestroyEvent=a,a.type="draggable:destroy"},function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t};const s=Symbol("canceled");class i{constructor(t){this[s]=!1,this.data=t}get type(){return this.constructor.type}get cancelable(){return this.constructor.cancelable}cancel(){this[s]=!0}canceled(){return Boolean(this[s])}clone(t){return new this.constructor(n({},this.data,t))}}e.default=i,i.type="event",i.cancelable=!1},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.DragStopEvent=e.DragPressureEvent=e.DragOutContainerEvent=e.DragOverContainerEvent=e.DragOutEvent=e.DragOverEvent=e.DragMoveEvent=e.DragStartEvent=e.DragEvent=void 0;var s,i=(s=n(0))&&s.__esModule?s:{default:s};class r extends i.default{get source(){return this.data.source}get originalSource(){return this.data.originalSource}get mirror(){return this.data.mirror}get sourceContainer(){return this.data.sourceContainer}get sensorEvent(){return this.data.sensorEvent}get originalEvent(){return this.sensorEvent?this.sensorEvent.originalEvent:null}}e.DragEvent=r,r.type="drag";class o extends r{}e.DragStartEvent=o,o.type="drag:start",o.cancelable=!0;class a extends r{}e.DragMoveEvent=a,a.type="drag:move";class u extends r{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}e.DragOverEvent=u,u.type="drag:over",u.cancelable=!0;class h extends r{get overContainer(){return this.data.overContainer}get over(){return this.data.over}}e.DragOutEvent=h,h.type="drag:out";class c extends r{get overContainer(){return this.data.overContainer}}e.DragOverContainerEvent=c,c.type="drag:over:container";class l extends r{get overContainer(){return this.data.overContainer}}e.DragOutContainerEvent=l,l.type="drag:out:container";class d extends r{get pressure(){return this.data.pressure}}e.DragPressureEvent=d,d.type="drag:pressure";class g extends r{}e.DragStopEvent=g,g.type="drag:stop"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Plugins=e.Sensors=e.Sortable=e.Swappable=e.Droppable=e.Draggable=e.BasePlugin=e.BaseEvent=void 0;var s=n(5);Object.defineProperty(e,"Draggable",{enumerable:!0,get:function(){return d(s).default}});var i=n(34);Object.defineProperty(e,"Droppable",{enumerable:!0,get:function(){return d(i).default}});var r=n(31);Object.defineProperty(e,"Swappable",{enumerable:!0,get:function(){return d(r).default}});var o=n(28);Object.defineProperty(e,"Sortable",{enumerable:!0,get:function(){return d(o).default}});var a=d(n(0)),u=d(n(1)),h=l(n(6)),c=l(n(25));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function d(t){return t&&t.__esModule?t:{default:t}}e.BaseEvent=a.default,e.BasePlugin=u.default,e.Sensors=h,e.Plugins=c}])},t.exports=e()}));export{e as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as i}from"./p-9ba3df4c.js";import{F as r}from"./p-9dd2b8cb.js";const t=class{constructor(i){s(this,i)}ezChangeListener(s){this.value=s.detail}async show(){this._numberElement.setFocus()}render(){var s;if(this.config&&this.config.type===r.NUMBER)return i("ez-number-input",{ref:s=>this._numberElement=s,label:this.config.label,value:this.config.value,precision:null===(s=this.config.props)||void 0===s?void 0:s.precision})}};export{t as snk_filter_number}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class t{static setGrid(t,s){this._gridById.set(t,s)}static setForm(t,s){this._formById.set(t,s)}static getGrid(t){return this._gridById.get(t)}static getForm(t){return this._formById.get(t)}}t._gridById=new Map,t._formById=new Map;export{t as C}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import{r as t,c as e,h as s}from"./p-9ba3df4c.js";import{WaitingChangeException as i,WarningException as r,ErrorException as n,ObjectUtils as a,DataType as o,DataUnit as c,StringUtils as h,ChangeOperation as u,DateUtils as l,DependencyType as d,ApplicationContext as p,ErrorTracking as m}from"@sankhyalabs/core";import{d as f,D as y,R as g,U as v,F as w}from"./p-361299e8.js";import{ApplicationUtils as I}from"@sankhyalabs/ezui/dist/collection/utils";import{S as P}from"./p-21c8929b.js";import"./p-112455b1.js";class ${constructor(t){this._app=t,window.addEventListener("error",(t=>this.errorHandler(t))),window.addEventListener("unhandledrejection",(t=>this.rejectionHandler(t)))}rejectionHandler(t){const e=t.reason;e instanceof i||(e?this.processException(e):this._app.isDebugMode().then((t=>{t&&this._app.error("Promise rejeitada","Erro interno: Uma promise foi rejeitada sem razão determinada.")})))}errorHandler(t){this.processException(t.error)}buildErrorCodeHTML(t){return'<br><a href="#" onclick="try{window.workspace.openHelp(\'_tbcode:'+t.errorCode+"')} catch(e){alert('Não é possível abrir a ajuda fora do workspace Sankhya');}\">Código: "+t.errorCode+"</a>"}processException(t){t.errorCode&&(t.message+=this.buildErrorCodeHTML(t)),t instanceof i||t instanceof r?this._app.alert(t.title,t.message):t instanceof n?this._app.error(t.title,t.message):this._app.isDebugMode().then((e=>{if(e)if(t instanceof Error)this._app.error(t.name,t.message);else{const e=(null==t?void 0:t.title)||"Erro detectado",s="string"==typeof t?t:t.message||`Erro interno "${a.objectToString(t)}"`;this._app.error(e,s)}}))}}class _{constructor(){this._defaultPageSize=100,this._templateByQuery=new Map,this.buldTemplates()}buldTemplates(){this._templateByQuery.set("search",f.gql`query($entityName: String! $argument: String $criteria: InputSearchCriteria $options: InputSearchOptions) {
|
|
2
|
+
$queryAlias$: search(entityName: $entityName argument: $argument criteria: $criteria options: $options){
|
|
3
|
+
value
|
|
4
|
+
label
|
|
5
|
+
}
|
|
6
|
+
}`)}loadSearchOptions(t,e,s,i){const r=(null==e?void 0:e.trim())||void 0;return e=isNaN(Number(r))&&r?`%${r}`:r,new Promise(((r,n)=>{y.get().callGraphQL({values:{argument:e,entityName:t,criteria:s,options:i},query:this._templateByQuery.get("search")}).then((t=>{r(t)})).catch((t=>{n(t)}))}))}loadAdvancedSearch(t,e,s,i){const r={query:{$:null==s?void 0:s.expression}};(null==s?void 0:s.params.length)>0&&(r.params={param:s.params.map((t=>({$:t.value,type:S(t.dataType)})))});const n={serviceName:"PesquisaSP.getSuggestion",requestBody:{criteria:{entityName:t,compacted:!1,ignoreEntityCriteria:!1,limit:this._defaultPageSize,query:{$:e},orderByDesc:!1,externalCriteria:r,localEntityName:null==i?void 0:i.rootEntity},clientEventList:{clientEvent:[]}}};return new Promise(((t,e)=>{y.get().callServiceBroker("PesquisaSP.getSuggestion",JSON.stringify(n)).then((e=>t(e))).catch((t=>e(t)))}))}}function S(t){switch(t){case o.NUMBER:return"I";case o.DATE:return"D";default:return"S"}}function D(){const t=["2909523kXwted","CompanyName=Sankhya Jiva Tecnologia e Inovao Ltda,LicensedApplication=Sankhya Gestao,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=0,AssetReference=AG-019460,ExpiryDate=9_November_2022_[v2]_MTY2Nzk1MjAwMDAwMA==10487151e296ee4360f80961ca960869","1131048CARoeW","502909mLEPmu","447255iQEXuN","428UHbJwW","270AFTxAV","194369jhGqTI","1540nWuTrj","2044062GicUQI","30CkXPWg"];return(D=function(){return t})()}const C=A;function A(t,e){const s=D();return(A=function(t){return s[t-=392]})(t,e)}!function(){const t=A,e=D();for(;;)try{if(951926==-parseInt(t(398))/1+-parseInt(t(393))/2+parseInt(t(395))/3+-parseInt(t(400))/4*(parseInt(t(392))/5)+-parseInt(t(401))/6*(-parseInt(t(402))/7)+parseInt(t(397))/8+-parseInt(t(399))/9*(-parseInt(t(394))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const T=C(396);class N{constructor(){this.templateByQuery=new Map,this.buldTemplates()}buldTemplates(){this.templateByQuery.set("fetchTotals",f.gql`query($filters: [InputFilter!] $name: String!) {
|
|
7
|
+
$queryAlias$: fetchTotals(name: $name, filters: $filters ){
|
|
8
|
+
name
|
|
9
|
+
value
|
|
10
|
+
}
|
|
11
|
+
}`)}async getTotals(t,e,s){let i={name:`totals://${t}/${e}`,filters:s};return y.get().callGraphQL({values:i,query:this.templateByQuery.get("fetchTotals")})}fetchTotals(t,e,s=[]){return new Promise(((i,r)=>{this.getTotals(t,e,s).then((t=>{if(t.length>0){const e=new Map;t.forEach((t=>{e.set(t.name,parseFloat(t.value))})),i(e)}else r("Não foi possível recuperar os totalizadores")})).catch((t=>{r(t)}))}))}}class E{constructor(){this.templateByQuery=new Map,this._loadDataTimeout={},this.buldTemplates()}buldTemplates(){this.templateByQuery.set("fetchDataUnit",f.gql`query($name: String!) {
|
|
12
|
+
$queryAlias$: fetchDataUnit(name: $name){
|
|
13
|
+
name
|
|
14
|
+
fields{
|
|
15
|
+
name
|
|
16
|
+
defaultValue
|
|
17
|
+
label
|
|
18
|
+
visible
|
|
19
|
+
readOnly
|
|
20
|
+
required
|
|
21
|
+
dataType
|
|
22
|
+
userInterface
|
|
23
|
+
calculated
|
|
24
|
+
properties{
|
|
25
|
+
name
|
|
26
|
+
value
|
|
27
|
+
}
|
|
28
|
+
dependencies{
|
|
29
|
+
masterFields
|
|
30
|
+
type
|
|
31
|
+
expression
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}`),this.templateByQuery.set("fetchData",f.gql`query($dataunit: String! $limit: Int $offset:Int $filters: [InputFilter!] $sort: [InputSort!]) {
|
|
36
|
+
$queryAlias$: fetchDataUnit(name: $dataunit){
|
|
37
|
+
data(limit: $limit offset: $offset filters: $filters sort: $sort){
|
|
38
|
+
limit
|
|
39
|
+
offset
|
|
40
|
+
total
|
|
41
|
+
hasMore
|
|
42
|
+
records{
|
|
43
|
+
id
|
|
44
|
+
fields {
|
|
45
|
+
name
|
|
46
|
+
value
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}`),this.templateByQuery.set("saveData",f.gql`mutation($changes: [InputBatchChange!]!) {
|
|
52
|
+
$queryAlias$: batchOperationDataUnit(changes: $changes){
|
|
53
|
+
oldId
|
|
54
|
+
id
|
|
55
|
+
fields {
|
|
56
|
+
name
|
|
57
|
+
value
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}`),this.templateByQuery.set("fetchDataRecord",f.gql`query($dataunit: String! $recordID: [String!]) {
|
|
61
|
+
$queryAlias$: fetchDataUnit(name: $dataunit){
|
|
62
|
+
record(id: $recordID){
|
|
63
|
+
id
|
|
64
|
+
fields {
|
|
65
|
+
name
|
|
66
|
+
value
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}`)}getDataUnit(t,e){const s=new c(`dd://${t}/${e}`);return s.metadataLoader=t=>this.loadMetadata(t),s.dataLoader=(t,e)=>this.loadData(t,e),s.saveLoader=(t,e)=>this.saveData(t,e),s.removeLoader=(t,e)=>this.removeRecords(t,e),s.recordLoader=(t,e)=>this.loadRecord(t,e),s}loadMetadata(t){return new Promise(((e,s)=>{y.get().callGraphQL({values:{name:t.name},query:this.templateByQuery.get("fetchDataUnit")}).then((t=>{var s;const i={name:t.name,label:t.name,fields:[]};null===(s=t.fields)||void 0===s||s.forEach((t=>{let e;Array.isArray(t.properties)&&(e={},t.calculated&&(e.gridHeaderTooltip="Campos calculados não podem ser ordenados"),t.properties.forEach((t=>e[t.name]=t.value))),i.fields.push(Object.assign(Object.assign({},t),{properties:e}))})),e(i)})).catch((t=>{s(t)}))}))}loadData(t,e){const s=t.name;return this._loadDataTimeout[s]&&(clearTimeout(this._loadDataTimeout[s]),delete this._loadDataTimeout[s]),new Promise(((i,r)=>{this._loadDataTimeout[s]=setTimeout((()=>{delete this._loadDataTimeout[s],this.doLoadData(t,e).then((t=>i(t))).catch((t=>r(t)))}),200)}))}doLoadData(t,e){return new Promise(((s,i)=>{var r;const{sort:n,filters:a,limit:c,offset:u,quickFilter:l}=e,d={dataunit:t.name,sort:n,filters:a};if(d.limit=c,d.offset=u,!h.isEmpty(null==l?void 0:l.term)){void 0===d.filter&&(d.filter=[]);const t={name:"__QUICK_FILTER__",expression:"__QUICK_FILTER__",params:[{name:"term",dataType:o.TEXT,value:l.term}]};(null===(r=null==l?void 0:l.fields)||void 0===r?void 0:r.length)>0&&t.params.push({name:"fields",dataType:o.OBJECT,value:l.fields}),d.filter.push(t)}y.get().callGraphQL({values:d,query:this.templateByQuery.get("fetchData")}).then((e=>{const{limit:i,offset:r,total:n,hasMore:a,records:o}=e.data;let c;i&&(c={firstRecord:0==n?0:r+1,lastRecord:r+Math.min(o.length,i),total:n,currentPage:r/i,hasMore:a});const h=[];o.forEach((e=>{const s={__record__id__:e.id};e.fields.forEach((({name:e,value:i})=>{s[e]=t.valueFromString(e,i)})),h.push(s)})),s({paginationInfo:c,records:h})})).catch((t=>{i(t)}))}))}saveData(t,e){const s=e.map((e=>{const{dataUnit:s,record:i,updatingFields:r,operation:n}=e;let a;r&&(a=Object.entries(r).map((([e,s])=>{const i=t.getField(e);return{fieldName:e,dataType:i?i.dataType:o.TEXT,value:t.valueToString(e,s)}})));const c={dataUnit:s,fields:a,operation:n,recordId:i.__record__id__};return e.sourceId&&(c.sourceId=e.sourceId),c}));return new Promise(((e,i)=>{y.get().callGraphQL({values:{changes:s},query:this.templateByQuery.get("saveData")}).then((s=>{const i=[];null==s||s.forEach((e=>{const s={__record__id__:e.id};e.oldId&&(s.__old__id__=e.oldId),e.fields.forEach((({name:e,value:i})=>{s[e]=t.valueFromString(e,i)})),i.push(s)})),e(i)})).catch((t=>{i(t)}))}))}removeRecords(t,e){const s=e.map((e=>({dataUnit:t.name,operation:u.DELETE,recordId:e})));return new Promise(((t,i)=>{y.get().callGraphQL({values:{changes:s},query:this.templateByQuery.get("saveData")}).then((()=>{t(e)})).catch((t=>{i(t)}))}))}loadRecord(t,e){return new Promise(((s,i)=>{y.get().callGraphQL({values:{recordID:e,dataunit:t.name},query:this.templateByQuery.get("fetchDataRecord")}).then((e=>{const i=[];e.record.forEach((e=>{const s={__record__id__:e.id};e.fields.forEach((({name:e,value:i})=>{s[e]=t.valueFromString(e,i)})),i.push(s)})),s(i)})).catch((t=>{i(t)}))}))}}var b;class q{static openAppActivity(t,e){var s;null===(s=window.workspace)||void 0===s||s.openAppActivity(t,e)}}q.resourceID=null===(b=window.workspace)||void 0===b?void 0:b.resourceID;class U{constructor(){this.templateByQuery=new Map,this.buldTemplates()}buldTemplates(){this.templateByQuery.set("fetchParam",f.gql`query($name: String!) {
|
|
71
|
+
$queryAlias$: fetchResource(name: $name){
|
|
72
|
+
name
|
|
73
|
+
resource
|
|
74
|
+
}
|
|
75
|
+
}`)}async getParam(t){const e=`param://application?params=${t}`;return y.get().callGraphQL({values:{name:e},query:this.templateByQuery.get("fetchParam")})}async asString(t){const e=await this.getParam(t);return this.getValue(e)}async asInteger(t){const e=await this.getParam(t);return parseInt(this.getValue(e))}async asFloat(t){const e=await this.getParam(t);return parseFloat(this.getValue(e))}async asBoolean(t){const e=await this.getParam(t);return this.getValue(e).includes('"S"')}async asDate(t){const e=await this.getParam(t);return l.strToDate(this.getValue(e))}async getBatchParams(t){const e=await this.getParam(t.join(",")),s={};return e.forEach((t=>s[t.name]=t.resource)),s}getValue(t={}){return Array.isArray(t)&&t.length>0&&(t=t[0]),h.isEmpty(t.resource)?"":t.resource}}const O=F;function F(t,e){const s=R();return(F=function(t){return s[t-=378]})(t,e)}function R(){const t=["true","863GKWjmo","parse","56355fjjjAm","isSup","putAccess","4324480sjuCdS","hasOwnProperty","239748okvJLB","name","6055770tXeRaU","actions","forEach","7RPRvzn","1042CHxkUw","2988126NIwRMm","20MTNzmH","authorizationSf","item","string","hasAccess","isArray","Objeto não pode ser indefinido.","3071943fWslZp","parseFromJSON"];return(R=function(){return t})()}!function(){const t=F,e=R();for(;;)try{if(281287==parseInt(t(399))/1*(-parseInt(t(387))/2)+-parseInt(t(401))/3+parseInt(t(381))/4*(-parseInt(t(389))/5)+parseInt(t(388))/6*(-parseInt(t(386))/7)+parseInt(t(379))/8+parseInt(t(396))/9+parseInt(t(383))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class L{[O(397)](t){const e=O;if(typeof(t=utxt(t[e(390)]))==e(392)&&(t=JSON[e(400)](t)),null==t)throw Error(e(395));const s=new j("S"===t[e(402)]||!0===t[e(402)]);return Array[e(394)](t[e(391)])&&t[e(391)][e(385)]((t=>s.putAccess(t[e(382)],String(t.status)==e(398)))),s}}class j{constructor(t){const e=O;this.isSup=t,this[e(384)]={}}[O(378)](t,e){this[O(384)][t]=e}[O(393)](t){const e=O;if(this[e(402)])return!0;let s=!0;return this[e(384)][e(380)](t)&&(s=this.actions[t]),s}isUserSup(){return this.isSup}}class k extends g{constructor(){super(...arguments),this.GRID_CONFIG_VERSION="V3:"}getConfig(t,e){const s=`cfg://grid/${this.GRID_CONFIG_VERSION}${e}`;return new Promise(((t,e)=>{this.loadResource(s).then((e=>{let s;e&&(s=JSON.parse(e)),t(s)})).catch((t=>{e(t)}))}))}saveConfig(t,e){const s=`cfg://grid/${this.GRID_CONFIG_VERSION}${e}`;return new Promise(((e,i)=>{this.saveResource(t,s).then((t=>{e(t)})).catch((t=>{i(t)}))}))}}class M extends g{getData(t){const e=`cfg://auth/${t}`;return new Promise(((t,s)=>{this.loadResource(e).then((e=>{let s=a.stringToObject(e);s&&"object"==typeof s&&t(s)})).catch((t=>{s(t)}))}))}}var x;function B(t){if(null==t)return t;if(t instanceof Date)return t.toISOString();if("object"==typeof t){if(t instanceof Array)return t.map((t=>B(t)));{const e=Object.assign({},t);return Object.keys(t).forEach((s=>{t[s]?e[s]=B(t[s]):delete e[s]})),e}}return t}!function(t){t.INSERT="I",t.UPDATE="A",t.REMOVE="E",t.SHOW="C",t.CONFIG="F",t.CONFIG_NUMBER="N",t.CLONE="D",t.CONFIG_GRID="G"}(x||(x={}));class z extends g{saveConfig(t,e,s){const i=t.map((t=>{const{id:e,value:s,fixed:i,visible:r}=t,n={id:e};return s&&(n.value=B(s)),i&&(n.fixed=i),r&&(n.visible=!0),n}));return this.saveResource(i,`cfg://filter/FilterBarState:${e}/${s}`)}getConfig(t,e){return new Promise(((s,i)=>{this.loadResource(`cfg://filter/FilterBarState:${t}/${e}`).then((t=>{let e;t&&(e=JSON.parse(t).items),s(e||[])})).catch((t=>{i(t)}))}))}}const J=class{constructor(s){t(this,s),this.applicationLoaded=e(this,"applicationLoaded",7),this.applicationLoading=e(this,"applicationLoading",7),this._authPromises=[],this._duCache=new Map,this._duPromises=new Map,this._requestListener=new G}get parameters(){return this._parameters||(this._parameters=new U),this._parameters}get resourceID(){return this._resourceID||(this._resourceID=this.urlParams.get("workspaceResourceID")||this.urlParams.get("resourceID")||q.resourceID||"unknown.resource.id"),this._resourceID}get auth(){return this._auth?Promise.resolve(this._auth):new Promise(((t,e)=>{const s=this._authPromises.length>0;this._authPromises.push(new H(t,e)),s||this.authFetcher.getData(this.resourceID).then((t=>{for(this._auth=t;this._authPromises.length>0;)this._authPromises.pop().resolve(this._auth)})).catch((t=>{for(;this._authPromises.length>0;)this._authPromises.pop().reject(t)}))}))}async isUserSup(){return new Promise(((t,e)=>{this.auth.then((s=>{this.getAuthList(s).then((e=>{t(e.isSup)})).catch((t=>e(t)))}))}))}async hasAccess(t){return new Promise(((e,s)=>{this.auth.then((i=>{this.getAuthList(i).then((s=>{e(s.isSup||s.actions[t])})).catch((t=>s(t)))}))}))}async getAllAccess(){return new Promise(((t,e)=>{this.auth.then((s=>{this.getAuthList(s).then((e=>{const s={};s.isSup=e.isSup,Object.entries(x).forEach((t=>{s[t[0]]=e.actions[t[1]]||!1})),t(s)})).catch((t=>e(t)))}))}))}async getStringParam(t){return this.parameters.asString(t)}async getIntParam(t){return this.parameters.asInteger(t)}async getFloatParam(t){return this.parameters.asFloat(t)}async getBooleanParam(t){return this.parameters.asBoolean(t)}async getDateParam(t){return this.parameters.asDate(t)}async showPopUp(t,e="full"){this.clearContent(this._popUp),"EZ-MODAL-CONTAINER"===t.tagName&&(this._popUp.useHeader=!1),this._popUp.appendChild(t),this._popUp.opened=!0,this._popUp.heightMode=e}async showModal(t){this.clearContent(this._rightModal),this._rightModal.appendChild(t),this._rightModal.opened=!0}async closeModal(){this.clearContent(this._rightModal),this._rightModal.opened=!1}async closePopUp(){this.clearContent(this._popUp),this._popUp.opened=!1,this._popUp.useHeader=!0,this._popUp.heightMode="full"}async temOpcional(t){const e=t.split(",");return new Promise(((t,s)=>{this.getAttributeFromHTMLWrapper("opc0009").then((i=>{"1"===i?t(!0):Promise.all(e.map((t=>this.getAttributeFromHTMLWrapper("opc"+t)))).then((e=>{t(e.includes("1"))})).catch((t=>{s(t)}))})).catch((t=>{s(t)}))}))}async getConfig(t){let e={serviceName:"SystemUtilsSP.getConf",requestBody:{config:{chave:t,tipo:"T"}}};return new Promise(((t,s)=>{y.get().callServiceBroker("SystemUtilsSP.getConf",JSON.stringify(e)).then((e=>{var s;return t(null===(s=e.config)||void 0===s?void 0:s.data)})).catch((t=>s(t)))}))}async saveConfig(t,e){let s={serviceName:"SystemUtilsSP.saveConf",requestBody:{config:{chave:t,tipo:"T",data:e}}};return new Promise(((t,e)=>{y.get().callServiceBroker("SystemUtilsSP.saveConf",JSON.stringify(s)).then((e=>t(e))).catch((t=>e(t)))}))}async getAttributeFromHTMLWrapper(t){return Promise.resolve(window[t])}async openApp(t,e){q.openAppActivity(t,e)}getDuPromissesStack(t){let e;return t&&(e=this._duPromises.get(t),e||(e=[],this._duPromises.set(t,e))),e||[]}async createDataunit(t,e){return new Promise(((s,i)=>{const r=this.getDuPromissesStack(e),n=r.length>0;if(r.push(new H(s,i)),!n){const s=this.dataUnitFetcher.getDataUnit(t,this.resourceID);s.loadMetadata().then((()=>{for(e&&this._duCache.set(e,s);r.length>0;)r.pop().resolve(s)})).catch((t=>{for(;r.length>0;)r.pop().reject(t)}))}}))}async getDataUnit(t,e){return new Promise(((s,i)=>{const r=this._duCache.get(e);r?s(r):this.createDataunit(t,e).then((t=>{s(t)})).catch((t=>i(t)))}))}async getResourceID(){return Promise.resolve(this.resourceID)}async getUserID(){return Promise.resolve(window.UID)}async alert(t,e,s,i){return I.alert(t,e,s,i)}async error(t,e,s,i){return I.error(t,e,s,i)}async success(t,e,s,i){return I.success(t,e,s,i)}async message(t,e,s,i){return I.message(t,e,s,i)}async confirm(t,e,s,i,r){return I.confirm(t,e,s,i,r)}async info(t,e){return I.info(t,e)}async loadFormConfig(t){return this.formConfigFetcher.loadFormConfig(t,this.resourceID)}async loadGridConfig(t){return this.gridConfigFetcher.getConfig(t,this.resourceID)}async fetchUserAvailableConfigs(t){return this.formConfigFetcher.fetchUserAvailableConfigs(t,this.resourceID)}async fetchLegacyConfig(t){return this.formConfigFetcher.fetchLegacyConfig(t,this.resourceID)}async fetchDefaultConfig(t){return this.formConfigFetcher.fetchDefaultConfig(t,this.resourceID)}async loadTotals(t,e,s){return this.totalsFetcher.fetchTotals(t,e,s)}async saveGridConfig(t){return this.gridConfigFetcher.saveConfig(t,this.resourceID)}async getFilterBarConfig(t){return new Promise(((e,s)=>{this.configName===t&&this._filterBarConfig?e(this._filterBarConfig):this.configName===t&&null!=this._filterConfigPromise?Promise.all([this._filterConfigPromise]).then((t=>e(t[0]))).catch((t=>s(t[0]))):this.filterBarConfigFetcher.getConfig(this.resourceID,t).then((t=>e(t))).catch((t=>s(t)))}))}async saveFilterBarConfig(t,e){return this.filterBarConfigFetcher.saveConfig(t,this.resourceID,e)}async saveFormConfig(t,e){return this.formConfigFetcher.saveConfig(t,e,this.resourceID)}async getAuthList(t){return await(new L).parseFromJSON(t)}get urlParams(){return this._urlParams||(this._urlParams=v.getQueryParams(location.search)),this._urlParams}get dataUnitFetcher(){return this._dataUnitFetcher||(this._dataUnitFetcher=new E),this._dataUnitFetcher}get formConfigFetcher(){return this._formConfigFetcher||(this._formConfigFetcher=new w),this._formConfigFetcher}get gridConfigFetcher(){return this._gridConfigFetcher||(this._gridConfigFetcher=new k),this._gridConfigFetcher}get totalsFetcher(){return this._totalsFetcher||(this._totalsFetcher=new N),this._totalsFetcher}get pesquisaFetcher(){return this._pesquisaFetcher||(this._pesquisaFetcher=new _),this._pesquisaFetcher}get authFetcher(){return this._authFetcher||(this._authFetcher=new M),this._authFetcher}get filterBarConfigFetcher(){return this._filterBarConfigFetcher||(this._filterBarConfigFetcher=new z),this._filterBarConfigFetcher}async executeSearch(t,e,s){const i=null==s?void 0:s.getField(e);if(i){const{mode:e,argument:r}=t,{ENTITYNAME:n,CODEFIELD:a,DESCRIPTIONFIELD:c,ROOTENTITY:h,DESCRIPTIONENTITY:u}=i.properties,l=i.dependencies;let p;const m={rootEntity:h,descriptionFieldName:c,codeFieldName:a,showInactives:!1};return null==l||l.filter((t=>{var e;return null===(e=t.masterFields)||void 0===e?void 0:e.every((t=>{var e;return null===(e=s.getField(t))||void 0===e?void 0:e.visible}))})).forEach((t=>{var e;t.type===d.SEARCHING&&(null===(e=t.masterFields)||void 0===e?void 0:e.length)>0&&(p={expression:t.expression,params:t.masterFields.map((t=>{const e=s.getField(t),i=(null==e?void 0:e.dataType)||o.TEXT,r=s.getFieldValue(t);if(null==r)throw this.alert("Erro ao pesquisar",`É necessario informar o campo ${e.label} para executar a pesquisa.`),new Error(`É necessario informar o campo ${e.label} para executar a pesquisa.`);return{name:t,value:r,dataType:i}}))})})),this.executePreparedSearch(e,r,{entity:n,entityDescription:u,criteria:p,searchOptions:m})}}async executePreparedSearch(t,e,s){const{entity:i,entityDescription:r,criteria:n,searchOptions:a}=s;return"ADVANCED"===t?new Promise((t=>{const s=document.createElement("snk-pesquisa");s.argument=e,s.searchLoader=t=>this.pesquisaFetcher.loadAdvancedSearch(i,t,n,a),s.selectItem=e=>{t(e),this.clearPopUpTitle(),this.closePopUp()},this.setPopUpTitle(r),this.showPopUp(s)})):this.pesquisaFetcher.loadSearchOptions(i,e,n,a)}async isDebugMode(){return new Promise((t=>{t(window.isDebugMode)}))}clearContent(t){t&&Array.from(t.children).forEach((e=>{t.removeChild(e)}))}clearPopUpTitle(){this._popUp.ezTitle=""}setPopUpTitle(t){this._popUp.ezTitle=t}componentWillLoad(){this._errorHandler=new $(this),this.messagesBuilder=new P,p.setContextValue("__EZUI__UPLOAD__ADD__URL__",`${v.getUrlBase()}/mge/upload/file`),p.setContextValue("__EZUI__SEARCH__OPTION__LOADER__",((t,e,s)=>this.executeSearch(t,e,s))),p.setContextValue("__EZUI__GRID_LICENSE__",T),this.configName&&(this._filterConfigPromise=new Promise(((t,e)=>{this.filterBarConfigFetcher.getConfig(this.resourceID,this.configName).then((e=>{this._filterBarConfig=e,t(e)})).catch((t=>e(t)))}))),m.init()}connectedCallback(){p.setContextValue("__SNK__APPLICATION__",this),y.addRequestListener(this._requestListener)}disconnectedCallback(){y.removeRequestListener(this._requestListener)}componentDidLoad(){this.applicationLoading.emit(!0),window.requestAnimationFrame((()=>{this.applicationLoaded.emit(!0)}))}render(){return s("div",null,s("ez-loading-bar",{ref:t=>this._requestListener.loadingBar=t}),s("ez-popup",{opened:!1,ref:t=>this._popUp=t,onEzClosePopup:()=>this.closePopUp()}),s("ez-modal",{opened:!1,ref:t=>this._rightModal=t,"modal-size":"col col--sd-3",closeOutsideClick:!0,closeEsc:!0}))}};class G{constructor(){this._debounceTime=1e3,this._ignoredNameTypes=["totals"],this._countRequest=0}onRequestStart(t){this.isIgnoreLoadingOnRequest(t)||(this._countRequest++,this.loadingBar.show(),this._timerLoading&&clearTimeout(this._timerLoading))}onRequestEnd(t){this.isIgnoreLoadingOnRequest(t)||(this._countRequest--,this._timerLoading=setTimeout((()=>{this._countRequest<=0&&this.loadingBar.hide()}),this._debounceTime))}isIgnoreLoadingOnRequest(t){var e;if(1==(null===(e=null==t?void 0:t.requestBody)||void 0===e?void 0:e.length)){const{name:e}=t.requestBody[0].variables;if(e){const t=e.split(":");return this._ignoredNameTypes.indexOf(t[0])>=0}}return!1}}class H{constructor(t,e){this.resolve=t,this.reject=e}}J.style=".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";export{J as snk_application}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./p-9ba3df4c.js";var n,t,a;!function(e){e.PREVIOUS="PREVIOUS",e.NEXT="NEXT",e.REFRESH="REFRESH",e.UPDATE="UPDATE",e.CLONE="CLONE",e.REMOVE="REMOVE",e.INSERT="INSERT",e.CANCEL="CANCEL",e.SAVE="SAVE",e.GRID_MODE="GRID_MODE",e.FORM_MODE="FORM_MODE",e.MORE_OPTIONS="MORE_OPTIONS",e.DIVIDER="DIVIDER",e.CONFIGURATOR="CONFIGURATOR"}(n||(n={})),function(e){e.UPDATE="UPDATE",e.CLONE="CLONE",e.REMOVE="REMOVE",e.INSERT="INSERT",e.CONFIGURATOR="CONFIGURATOR"}(t||(t={})),function(e){e.CONFIG_GRID="CONFIG_GRID",e.CONFIGURATOR="CONFIGURATOR"}(a||(a={}));const r=(e,n,t,a)=>{const{hint:r,text:s,iconName:l}=e;return l?s?o(l,e.name,n,r,s,t,a):i(l,e.name,n,r,t,a):c(e.name,n,s,r,t,a)},s=(t,a,r,s,l,u,E)=>{const d=r(t);switch(t){case n.PREVIOUS:return i("chevron-left",t,a,d,s,l);case n.NEXT:return i("chevron-right",t,a,d,s,l);case n.REFRESH:return i("sync",t,a,d,s,l);case n.UPDATE:return i("edit",t,a,d,s,l);case n.CLONE:return i("copy",t,a,d,s,l);case n.REMOVE:return i("delete",t,a,d,s,l);case n.INSERT:return o("plus",t,a,d,d,s,l);case n.CANCEL:return c(t,a,d,d,s,l);case n.SAVE:return o("save",t,a,d,d,s,l);case n.GRID_MODE:return i("table",t,a,d,s,l);case n.FORM_MODE:return i("list",t,a,d,s,l);case n.CONFIGURATOR:return function(n,t,a,r,s,c){return e("snk-configurator",{key:"configurator",configName:c,title:a(n),class:t,enabled:s(n),onChangeViewMode:e=>r(null==e?void 0:e.detail)})}(t,a,r,s,l,E);case n.MORE_OPTIONS:return u&&u.length>0?e("ez-actions-button",{title:d,size:"small",class:a,enabled:l(t),onEzAction:e=>s(e.detail.value),actions:u}):void 0;case n.DIVIDER:return e("hr",{class:"ez-divider-vertical ez-divider--dark ez-margin-horizontal--medium"})}};function c(n,t,a,r,s,c){return e("ez-button",{title:r,label:a,size:"small",class:t,enabled:c(n),onClick:()=>s(n)})}function i(n,t,a,r,s,c){return e("ez-button",{name:n,title:r,mode:"icon",size:"small",class:a,iconName:n,enabled:c(t),onClick:()=>s(t)})}function o(n,t,a,r,s,c,i){return e("ez-button",{name:n,title:s,label:r,size:"small",class:a,enabled:i(t),onClick:()=>c(t)},e("ez-icon",{class:"ez-padding-right--small",slot:"leftIcon",iconName:n}))}export{t as A,n as T,a as V,r as a,s as b}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as s}from"./p-9ba3df4c.js";import{ApplicationUtils as r}from"@sankhyalabs/ezui/dist/collection/utils";import{F as l}from"./p-9dd2b8cb.js";const n=class{constructor(i){t(this,i),this.filterChange=e(this,"filterChange",7)}async show(){this._editor.show()}changeConfig(t){this.filterChange.emit(t)}getContentEditor(){switch(this.config.type){case l.BINARY_SELECT:return"snk-filter-binary-select";case l.MULTI_SELECT:return"snk-filter-multi-select";case l.PERIOD:return"snk-filter-period";case l.SEARCH:return"snk-filter-search";case l.NUMBER:return"snk-filter-number";case l.PERSONALIZED:return"snk-filter-personalized"}return"snk-filter-text"}removeItem(){this.changeConfig(Object.assign(Object.assign({},this.config),{visible:!1,fixed:!1,value:void 0}))}getPopUpHeaderButtons(){if(!this.config.hardFixed)return[this.buildIcon(this.getMessage("snkFilterBar.removeFilter"),"delete",(()=>this.removeItem())),this.buildIcon(this.getMessage(this.config.fixed?"snkFilterBar.unpinFilter":"snkFilterBar.pinFilter"),this.config.fixed?"un-pin":"push-pin",(()=>this.changeConfig(Object.assign(Object.assign({},this.config),{fixed:!this.config.fixed}))))]}buildIcon(t,e,s){return i("button",{onClick:()=>s(),class:"sc-snk-filter-bar snk-filter-item__editor-header-button"},i("ez-icon",{title:t,iconName:e}))}apply(){var t;let e=this._editor.value,i=!0;if(this.config.type===l.PERSONALIZED){const s=((null===(t=this.config.props.personalizedFilter)||void 0===t?void 0:t.parameters)||[]).length;0===s?e=[]:i=this.validateAllFilled(s,e)}i&&this.changeConfig(Object.assign(Object.assign({},this.config),{value:e}))}validateAllFilled(t,e){let i=!0;return null!=e&&t>1&&(t>e.length?i=!1:e.forEach((t=>{null==t&&(i=!1)}))),i||r.alert("Filtro parcialmente preenchido","Favor completar todas as informações do filtro."),i}clear(){this.changeConfig(Object.assign(Object.assign({},this.config),{value:void 0}))}onKeyDonwListener(t){"Enter"===t.key&&this._applyButton.setFocus().then((()=>this.apply()))}render(){const t=this.getContentEditor();return i(s,null,i("div",{class:"col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center"},i("div",{class:"ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header"},this.config.detailTitle),this.getPopUpHeaderButtons()),i(t,{ref:t=>this._editor=t,value:this.config.value,config:this.config,onKeyDown:t=>this.onKeyDonwListener(t)}),i("hr",{class:"sc-snk-filter-bar snk-filter__popover-rule"}),i("div",{class:"ez-col ez-col--sd-12 ez-align--right"},i("ez-button",{label:this.getMessage("snkFilterBar.cleanFilter"),onClick:()=>this.clear(),size:"small"}),i("ez-button",{ref:t=>this._applyButton=t,label:this.getMessage("snkFilterBar.applyFilter"),onClick:()=>this.apply(),size:"small",class:"ez-button--primary ez-padding-left--medium"})))}};export{n as snk_filter_detail}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as e,h as t,H as l,g as s}from"./p-9ba3df4c.js";import{UserInterface as n,ObjectUtils as o,ApplicationContext as a}from"@sankhyalabs/core";import{DataType as r,getConvertedValue as d}from"@sankhyalabs/core/dist/dataunit/metadata/DataType";import{CheckMode as u}from"@sankhyalabs/ezui/dist/collection/utils";import{V as h,D as c,a as v}from"./p-a5b26df2.js";const p=class{constructor(t){i(this,t),this.configOptionsChanged=e(this,"configOptionsChanged",7),this.fieldConfig={}}onConfigDefault(i){null!=i&&(this._defaultType=i,this.fieldConfig.defaultValue={type:this._defaultType},this.configOptionsChanged.emit(this.fieldConfig))}buildOptions(){var i,e,t;const l=null===(t=null===(i=this.dataUnit)||void 0===i?void 0:i.getField(null===(e=this.fieldConfig)||void 0===e?void 0:e.name))||void 0===t?void 0:t.userInterface;return h.UserInterface[l]}enabledValueDefault(){var i,e,t;const l=null===(i=this.dataUnit)||void 0===i?void 0:i.getField(null===(e=this.fieldConfig)||void 0===e?void 0:e.name),s=null===(t=null==l?void 0:l.properties)||void 0===t?void 0:t.allowDefault,n=h.UserInterface.hasOwnProperty(null==l?void 0:l.userInterface);return!(null!=s&&"true"!==s||!n)}isAllowDefault(){var i,e;const t=null===(e=null===(i=this._fieldProperties)||void 0===i?void 0:i.properties)||void 0===e?void 0:e.allowDefault;return null==t||"true"===t}loadDefaultValue(){var i;null==this.fieldConfig?(this._defaultType=c.fixed,this.fieldConfig={defaultValue:{type:this._defaultType}}):null==(null===(i=this.fieldConfig.defaultValue)||void 0===i?void 0:i.type)?(this._defaultType=c.fixed,this.fieldConfig.defaultValue={type:this._defaultType}):this._defaultType=this.fieldConfig.defaultValue.type}getFieldProperties(i){var e;if(null!=i)return null===(e=this.dataUnit)||void 0===e?void 0:e.getField(i)}getMessage(i,e){return this._application.messagesBuilder.getMessage(i,e)}getDefaultType(){var i;return null!==(i=this.fieldConfig.defaultValue.type)&&void 0!==i?i:c.fixed}getEnabledByProperty(i){const e=this._fieldProperties;return null==e||!0!==e[i]}getValueByProperty(i){const e=this._fieldProperties;return null!=e&&!0===e[i]||this.fieldConfig[i]}getValidatedValue(i){var e,t;if(null==i)return;const l=null===(e=this.dataUnit)||void 0===e?void 0:e.getField(null===(t=this.fieldConfig)||void 0===t?void 0:t.name),s=null==l?void 0:l.dataType;if(null==s)return;const n=null!=(null==i?void 0:i.waitmessage)?void 0:s!==r.OBJECT&&s!==r.DATE&&"object"==typeof i?i.value:i;return s===r.OBJECT?JSON.stringify(n):n}buildInputDefault({value:i,enabled:e,label:l,name:s,required:a,userInterface:r},d,u){let h,c=0,p=0;const b=null==r||null==v[r]?v.DEFAULT:v[r];if(r===n.OPTIONSELECTOR){const i=null==d?void 0:d.options;if("string"==typeof i){const e=o.stringToObject(i);h=Object.keys(e).map((i=>({value:i,label:e[i]})))}else h=i}else r===n.DECIMALNUMBER&&(c=Number((null==d?void 0:d.precision)||2),p=Number((null==d?void 0:d.prettyPrecision)||c));return t(b,Object.assign({value:i,enabled:e,label:l,"data-field-name":s,key:s,onEzChange:i=>this.onChange(null==i?void 0:i.detail)},this.getConditionalAttributes(r,a,h,c,p,u)))}getConditionalAttributes(i,e,t,l,s,o){switch(i){case n.SEARCH:return{suppressEmptyOption:e,optionLoader:i=>this.onSearch(i)};case n.OPTIONSELECTOR:return{suppressEmptyOption:e,options:t};case n.CHECKBOX:case n.SWITCH:return{mode:o};case n.INTEGERNUMBER:case n.DECIMALNUMBER:return{precision:l,prettyPrecision:s,onEzStartChange:i=>this.onChange(null==i?void 0:i.detail)};case n.DATE:case n.DATETIME:case n.TIME:return{onEzStartChange:i=>this.onChange(null==i?void 0:i.detail)};default:return{}}}onChange(i){this.fieldConfig.defaultValue.value=this.getValidatedValue(i),this.configOptionsChanged.emit(this.fieldConfig)}onSearch(i){if(null!=this._application&&null!=this.fieldConfig)return this._application.executeSearch(i,this.fieldConfig.name,this.dataUnit)}buildField(i){const{config:e,descriptor:t}=i,{name:l,label:s,readOnly:o,required:a,defaultValue:r}=e,{userInterface:h,properties:c}=t,v=null!=(null==c?void 0:c.allowDefault)?"true"===c.allowDefault:!o;let p;v&&(p=null==r?void 0:r.value,null!=p&&(p=d(null==t?void 0:t.dataType,p)));const b={value:p,enabled:v,label:s,name:l,required:a,userInterface:h};switch(h){case n.SWITCH:return this.buildInputDefault(b,void 0,u.SWITCH);case n.CHECKBOX:return this.buildInputDefault(b,void 0,u.REGULAR);case n.OPTIONSELECTOR:case n.DECIMALNUMBER:return this.buildInputDefault(b,c);default:return this.buildInputDefault(b)}}componentWillLoad(){var i;this.loadDefaultValue(),this._application=a.getContextValue("__SNK__APPLICATION__"),this._fieldProperties=this.getFieldProperties(null===(i=this.fieldConfig)||void 0===i?void 0:i.name)}render(){var i,e;return t(l,null,t("div",{id:this.idConfig},t("div",{class:"ez-row ez-padding--medium"},t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-text-input",{label:this.getMessage("snkConfigOptions.label.nameField"),value:null===(i=this.fieldConfig)||void 0===i?void 0:i.label,onEzChange:i=>{this.fieldConfig.label=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-combo-box",{label:this.getMessage("snkConfigOptions.label.typeValueDefault"),suppressEmptyOption:!0,enabled:this.enabledValueDefault(),onEzChange:i=>{var e;return this.onConfigDefault(null===(e=i.detail)||void 0===e?void 0:e.value)},value:this.getDefaultType()},t("option",{value:c.fixed},this.getMessage("snkConfigOptions.options.valueFixed")),t("option",{value:c.variable},this.getMessage("snkConfigOptions.options.variable")))),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},this._defaultType===c.variable?t("ez-combo-box",{label:this.getMessage("snkConfigOptions.label.valueDefault"),enabled:this.isAllowDefault(),onEzChange:i=>{var e;this.fieldConfig.defaultValue.value=null===(e=i.detail)||void 0===e?void 0:e.value,this.configOptionsChanged.emit(this.fieldConfig)},value:this.fieldConfig.defaultValue.value,options:this.buildOptions()}):(null===(e=this._fieldProperties)||void 0===e?void 0:e.userInterface)&&this.buildField({descriptor:this._fieldProperties,config:this.fieldConfig}))),t("div",{class:"ez-row ez-padding--medium config-options__switch-row"},t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-check",{mode:u.SWITCH,label:this.getMessage("snkConfigOptions.label.clearDuplicate"),value:this.fieldConfig.cleanOnCopy,onEzChange:i=>{this.fieldConfig.cleanOnCopy=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-check",{mode:u.SWITCH,label:this.getMessage("snkConfigOptions.label.requiredField"),enabled:this.getEnabledByProperty("required"),value:this.getValueByProperty("required"),onEzChange:i=>{this.fieldConfig.required=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})),t("div",{class:"ez-col ez-col--sd-12 ez-col--tb-4 ez-padding--small"},t("ez-check",{mode:u.SWITCH,label:this.getMessage("snkConfigOptions.label.protectedField"),enabled:this.getEnabledByProperty("readOnly"),value:this.getValueByProperty("readOnly"),onEzChange:i=>{this.fieldConfig.readOnly=i.detail,this.configOptionsChanged.emit(this.fieldConfig)}})))))}get _element(){return s(this)}};p.style=".sc-snk-config-options-h{width:100%;border:2px solid var(--color--secondary-200);border-radius:15px}.config-options__switch-row.sc-snk-config-options{margin-top:-30px}";export{p as snk_config_options}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e}from"./p-9ba3df4c.js";const s=class{constructor(e){t(this,e)}ezChangeListener(t){this.value=t.detail}render(){if(this.config)return e("ez-text-input",{ref:t=>this._textInputElement=t,label:this.config.label,value:this.config.value})}};export{s as snk_filter_text}
|
|
@@ -1,129 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
3
|
-
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
8
|
-
const patchBrowser = () => {
|
|
9
|
-
// NOTE!! This fn cannot use async/await!
|
|
10
|
-
if (BUILD.isDev && !BUILD.isTesting) {
|
|
11
|
-
consoleDevInfo('Running in development mode.');
|
|
12
|
-
}
|
|
13
|
-
if (BUILD.cssVarShim) {
|
|
14
|
-
// shim css vars
|
|
15
|
-
plt.$cssShim$ = win.__cssshim;
|
|
16
|
-
}
|
|
17
|
-
if (BUILD.cloneNodeFix) {
|
|
18
|
-
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
19
|
-
patchCloneNodeFix(H.prototype);
|
|
20
|
-
}
|
|
21
|
-
if (BUILD.profile && !performance.mark) {
|
|
22
|
-
// not all browsers support performance.mark/measure (Safari 10)
|
|
23
|
-
// because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,
|
|
24
|
-
// simply stub the implementations out.
|
|
25
|
-
// TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
performance.mark = performance.measure = () => {
|
|
28
|
-
/*noop*/
|
|
29
|
-
};
|
|
30
|
-
performance.getEntriesByName = () => [];
|
|
31
|
-
}
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
|
|
34
|
-
? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
|
|
35
|
-
s.getAttribute('data-stencil-namespace') === NAMESPACE)
|
|
36
|
-
: null;
|
|
37
|
-
const importMeta = import.meta.url;
|
|
38
|
-
const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};
|
|
39
|
-
if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {
|
|
40
|
-
// Safari < v11 support: This IF is true if it's Safari below v11.
|
|
41
|
-
// This fn cannot use async/await since Safari didn't support it until v11,
|
|
42
|
-
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
|
|
43
|
-
// so both the ESM file and nomodule file would get downloaded. Only Safari
|
|
44
|
-
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
|
|
45
|
-
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
|
|
46
|
-
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
|
|
47
|
-
return {
|
|
48
|
-
then() {
|
|
49
|
-
/* promise noop */
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
if (!BUILD.safari10 && importMeta !== '') {
|
|
54
|
-
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
55
|
-
}
|
|
56
|
-
else if (BUILD.dynamicImportShim || BUILD.safari10) {
|
|
57
|
-
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
|
|
58
|
-
if (BUILD.dynamicImportShim) {
|
|
59
|
-
patchDynamicImport(opts.resourcesUrl, scriptElm);
|
|
60
|
-
}
|
|
61
|
-
if (BUILD.dynamicImportShim && !win.customElements) {
|
|
62
|
-
// module support, but no custom elements support (Old Edge)
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
return import(/* webpackChunkName: "polyfills-dom" */ './dom-665d6011.js').then(() => opts);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return promiseResolve(opts);
|
|
68
|
-
};
|
|
69
|
-
const patchDynamicImport = (base, orgScriptElm) => {
|
|
70
|
-
const importFunctionName = getDynamicImportFunction(NAMESPACE);
|
|
71
|
-
try {
|
|
72
|
-
// test if this browser supports dynamic imports
|
|
73
|
-
// There is a caching issue in V8, that breaks using import() in Function
|
|
74
|
-
// By generating a random string, we can workaround it
|
|
75
|
-
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
|
|
76
|
-
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
|
|
77
|
-
}
|
|
78
|
-
catch (e) {
|
|
79
|
-
// this shim is specifically for browsers that do support "esm" imports
|
|
80
|
-
// however, they do NOT support "dynamic" imports
|
|
81
|
-
// basically this code is for old Edge, v18 and below
|
|
82
|
-
const moduleMap = new Map();
|
|
83
|
-
win[importFunctionName] = (src) => {
|
|
84
|
-
const url = new URL(src, base).href;
|
|
85
|
-
let mod = moduleMap.get(url);
|
|
86
|
-
if (!mod) {
|
|
87
|
-
const script = doc.createElement('script');
|
|
88
|
-
script.type = 'module';
|
|
89
|
-
script.crossOrigin = orgScriptElm.crossOrigin;
|
|
90
|
-
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
|
|
91
|
-
type: 'application/javascript',
|
|
92
|
-
}));
|
|
93
|
-
mod = new Promise((resolve) => {
|
|
94
|
-
script.onload = () => {
|
|
95
|
-
resolve(win[importFunctionName].m);
|
|
96
|
-
script.remove();
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
moduleMap.set(url, mod);
|
|
100
|
-
doc.head.appendChild(script);
|
|
101
|
-
}
|
|
102
|
-
return mod;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
107
|
-
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
108
|
-
HTMLElementPrototype.cloneNode = function (deep) {
|
|
109
|
-
if (this.nodeName === 'TEMPLATE') {
|
|
110
|
-
return nativeCloneNodeFn.call(this, deep);
|
|
111
|
-
}
|
|
112
|
-
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
113
|
-
const srcChildNodes = this.childNodes;
|
|
114
|
-
if (deep) {
|
|
115
|
-
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
116
|
-
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
117
|
-
if (srcChildNodes[i].nodeType !== 2) {
|
|
118
|
-
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return clonedNode;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
patchBrowser().then(options => {
|
|
127
|
-
globalScripts();
|
|
128
|
-
return bootstrapLazy([["snk-crud",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[8,"status-resolver"],"_dataUnit":[32],"_dataState":[32]}]]],["teste-pesquisa",[[1,"teste-pesquisa"]]],["snk-data-unit",[[2,"snk-data-unit",{"dataState":[1040],"dataUnitName":[1,"data-unit-name"],"entityName":[1,"entity-name"],"pageSize":[2,"page-size"],"dataUnit":[1040],"beforeSave":[16],"afterSave":[16],"autoLoad":[4,"auto-load"],"getDataUnit":[64]}]]],["snk-filter-binary-select",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number",[[0,"snk-filter-number",{"config":[16],"value":[2]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period",[[0,"snk-filter-period",{"config":[16],"value":[8]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-search",[[0,"snk-filter-search",{"config":[16],"value":[16],"fix":[16],"unfix":[16]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-bar",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040]},[[0,"filterChange","filterChangeListener"]]]]],["snk-taskbar",[[6,"snk-taskbar",{"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}]]],["snk-grid",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[8,"status-resolver"],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_gridConfig":[32]}]]],["snk-application",[[2,"snk-application",{"messagesBuilder":[1040],"configName":[1,"config-name"],"isUserSup":[64],"hasAccess":[64],"getAllAccess":[64],"getStringParam":[64],"getIntParam":[64],"getFloatParam":[64],"getBooleanParam":[64],"getDateParam":[64],"showPopUp":[64],"closePopUp":[64],"temOpcional":[64],"getConfig":[64],"saveConfig":[64],"getAttributeFromHTMLWrapper":[64],"openApp":[64],"createDataunit":[64],"getDataUnit":[64],"getResourceID":[64],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadFormConfig":[64],"loadGridConfig":[64],"loadTotals":[64],"saveGridConfig":[64],"getFilterBarConfig":[64],"saveFilterBarConfig":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64]}]]],["snk-form",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_configLoaded":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32]}]]],["snk-pesquisa",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-filter-detail",[[0,"snk-filter-detail",{"config":[1040],"keepOpened":[1028,"keep-opened"],"getMessage":[16]}]]],["snk-filter-item",[[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]]]],["snk-filter-list",[[4,"snk-filter-list",{"label":[1],"iconName":[1,"icon-name"],"items":[16],"getMessage":[16],"emptyText":[1,"empty-text"],"findFilterText":[1,"find-filter-text"],"buttonClass":[1,"button-class"],"_filterArgument":[32],"_showAll":[32]}]]]], options);
|
|
129
|
-
});
|
|
1
|
+
import{p as e,b as t}from"./p-9ba3df4c.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-44ce5b90",[[1,"teste-pesquisa"]]],["p-400cc777",[[2,"snk-data-unit",{dataState:[1040],dataUnitName:[1,"data-unit-name"],entityName:[1,"entity-name"],pageSize:[2,"page-size"],dataUnit:[1040],beforeSave:[16],afterSave:[16],getDataUnit:[64]}]]],["p-9dc4426d",[[0,"snk-filter-binary-select",{value:[1544],config:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-3a276f3d",[[0,"snk-filter-multi-select",{value:[1544],config:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-cc4bef9f",[[0,"snk-filter-number",{config:[16],value:[2],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-029ae4e4",[[0,"snk-filter-period",{config:[16],value:[8],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-12ad2a19",[[0,"snk-filter-personalized",{config:[16],value:[1040],fix:[16],unfix:[16],show:[64]}]]],["p-2dc76d79",[[0,"snk-filter-search",{config:[16],value:[16],show:[64]},[[0,"ezChange","ezChangeListener"]]]]],["p-e9beab79",[[0,"snk-filter-text",{config:[16],value:[1]},[[0,"ezChange","ezChangeListener"]]]]],["p-6988f4a6",[[2,"snk-pesquisa",{searchLoader:[16],selectItem:[16],argument:[1025],_itemList:[32],_startLoading:[32]}]]],["p-e871aa92",[[2,"snk-config-options",{fieldConfig:[16],idConfig:[513,"id-config"],dataUnit:[16],_defaultType:[32]}]]],["p-2284c850",[[6,"snk-tab-config",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1],_processedTabs:[32],_activeEditText:[32],_activeEditTextIndex:[32],_actionsHide:[32],_actionsShow:[32]}]]],["p-deb1f523",[[0,"snk-filter-detail",{config:[1040],getMessage:[16],show:[64]}]]],["p-776ff4d1",[[6,"snk-grid",{configName:[1,"config-name"],actionsList:[16],taskbarManager:[16],statusResolver:[16],_dataUnit:[32],_dataState:[32],_gridConfig:[32],setShowGridConfig:[64],setConfig:[64]}],[2,"snk-field-config",{isConfigActive:[16],fieldConfig:[16],modeInsertion:[516,"mode-insertion"]}]]],["p-1feabfc7",[[2,"snk-form-config",{dataUnit:[16],formConfig:[16],parentForm:[16],_formConfigOptions:[32],_fieldConfigSelected:[32],_layoutFormConfig:[32],_fieldsAvailable:[32],_formConfig:[32],_formConfigChanged:[32],_optionFormConfigSelected:[32],_optionFormConfigChanged:[32],_tempGroups:[32]}]]],["p-7b4a4a50",[[2,"snk-config-modal",{configName:[1,"config-name"],gridMode:[4,"grid-mode"]}]]],["p-521c96f0",[[2,"snk-filter-bar",{dataUnit:[1040],configName:[1,"config-name"],filterConfig:[1040],allowDefault:[32]},[[0,"filterChange","filterChangeListener"]]],[6,"snk-taskbar",{configName:[1,"config-name"],buttons:[1],customButtons:[16],actionsList:[16],primaryButton:[1,"primary-button"],disabledButtons:[16],dataUnit:[16],_permissions:[32]}],[0,"snk-filter-item",{config:[1040],getMessage:[16],detailIsVisible:[32],showUp:[64],hideDetail:[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]],[4,"snk-filter-list",{label:[1],iconName:[1,"icon-name"],items:[16],getMessage:[16],emptyText:[1,"empty-text"],findFilterText:[1,"find-filter-text"],buttonClass:[1,"button-class"],_filterArgument:[32],_showAll:[32],hideDetail:[64]},[[2,"keydown","keyDownHandler"]]],[0,"snk-filter-modal",{getMessage:[16],items:[1040],modalTitle:[1,"modal-title"],modalSubTitle:[1,"modal-sub-title"],cancelButtonLabel:[1,"cancel-button-label"],okButtonLabel:[1,"ok-button-label"],infoText:[1,"info-text"],useSearch:[4,"use-search"],processModalAction:[16],_filterArgument:[32]}],[2,"snk-configurator",{configName:[1,"config-name"],name:[1],enabled:[4]}]]],["p-2b891c4a",[[2,"snk-form",{configName:[1,"config-name"],recordsValidator:[16],actionsList:[16],taskbarManager:[16],_dataUnit:[32],_dataState:[32],_editionFormConfig:[32],_insertionFormConfig:[32],_showFormConfig:[32],setShowFormConfig:[64],setConfig:[64]}]]],["p-a17a4fca",[[6,"snk-crud",{configName:[1025,"config-name"],actionsList:[16],taskbarManager:[16],recordsValidator:[16],statusResolver:[16],_dataUnit:[32],_dataState:[32],goToView:[64]}]]],["p-d690b6b5",[[2,"snk-application",{messagesBuilder:[1040],configName:[1,"config-name"],isUserSup:[64],hasAccess:[64],getAllAccess:[64],getStringParam:[64],getIntParam:[64],getFloatParam:[64],getBooleanParam:[64],getDateParam:[64],showPopUp:[64],showModal:[64],closeModal:[64],closePopUp:[64],temOpcional:[64],getConfig:[64],saveConfig:[64],getAttributeFromHTMLWrapper:[64],openApp:[64],createDataunit:[64],getDataUnit:[64],getResourceID:[64],getUserID:[64],alert:[64],error:[64],success:[64],message:[64],confirm:[64],info:[64],loadFormConfig:[64],loadGridConfig:[64],fetchUserAvailableConfigs:[64],fetchLegacyConfig:[64],fetchDefaultConfig:[64],loadTotals:[64],saveGridConfig:[64],getFilterBarConfig:[64],saveFilterBarConfig:[64],saveFormConfig:[64],executeSearch:[64],executePreparedSearch:[64],isDebugMode:[64]}]]]],e)));
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
-
import { DataUnit } from "@sankhyalabs/core";
|
|
3
|
-
import
|
|
2
|
+
import { DataUnit, Filter } from "@sankhyalabs/core";
|
|
3
|
+
import { IFormConfig } from "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form";
|
|
4
4
|
import { RequestListener, RequestListenerParams } from "../../lib/http/data-fetcher/DataFetcher";
|
|
5
|
-
import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
|
|
6
5
|
import { MessageOptions, DialogType } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
7
|
-
import { FormConfigFetcher } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
8
|
-
import { FieldConfig } from "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form";
|
|
9
6
|
import { IGridConfig } from "@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController";
|
|
10
|
-
import
|
|
11
|
-
import { PesquisaFetcher } from "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher";
|
|
12
|
-
import { Option } from "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box";
|
|
13
|
-
import AuthFetcher, { AutorizationType } from "../../lib/http/data-fetcher/fetchers/auth-fetcher";
|
|
7
|
+
import { IOption, ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box";
|
|
14
8
|
import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
|
|
9
|
+
import { FormConfigFetcher, IUserConfig } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
10
|
+
import { PesquisaFetcher } from "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher";
|
|
15
11
|
import { TotalsFetcher } from "../../lib/http/data-fetcher/fetchers/totals-fetcher";
|
|
16
12
|
import { SnkMessageBuilder } from "../../lib/message/SnkMessageBuilder";
|
|
17
|
-
import FilterBarConfigFetcher from "../../lib/http/data-fetcher/fetchers/filter-bar-config-fetcher";
|
|
18
13
|
import { SnkFilterItemConfig } from "../snk-filter-bar/filter-item/snk-filter-item";
|
|
19
|
-
import
|
|
14
|
+
import DataUnitFetcher from "../../lib/http/data-fetcher/fetchers/dataunit-fetcher";
|
|
15
|
+
import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
|
|
16
|
+
import GridConfigFetcher from "../../lib/http/data-fetcher/fetchers/grid-config-fetcher";
|
|
17
|
+
import AuthFetcher, { AutorizationType } from "../../lib/http/data-fetcher/fetchers/auth-fetcher";
|
|
18
|
+
import FilterBarConfigFetcher from "../../lib/http/data-fetcher/fetchers/filter-bar-config-fetcher";
|
|
20
19
|
export declare class SnkApplication {
|
|
21
20
|
_parameters: ParametersFetcher;
|
|
22
21
|
_urlParams: Map<string, any>;
|
|
@@ -29,6 +28,7 @@ export declare class SnkApplication {
|
|
|
29
28
|
_filterBarConfigFetcher: FilterBarConfigFetcher;
|
|
30
29
|
_resourceID: string;
|
|
31
30
|
_popUp: HTMLEzPopupElement;
|
|
31
|
+
_rightModal: HTMLEzModalElement;
|
|
32
32
|
_errorHandler: SnkErrorHandler;
|
|
33
33
|
_authPromises: Array<PendingPromise>;
|
|
34
34
|
_filterConfigPromise: Promise<Array<SnkFilterItemConfig>>;
|
|
@@ -84,7 +84,9 @@ export declare class SnkApplication {
|
|
|
84
84
|
/**
|
|
85
85
|
* Mostra o conteúdo passado em um Popup
|
|
86
86
|
*/
|
|
87
|
-
showPopUp(content: HTMLElement): Promise<void>;
|
|
87
|
+
showPopUp(content: HTMLElement, size?: string): Promise<void>;
|
|
88
|
+
showModal(content: HTMLElement): Promise<void>;
|
|
89
|
+
closeModal(): Promise<void>;
|
|
88
90
|
/**
|
|
89
91
|
* Fecha o popup, liberando o conteúdo.
|
|
90
92
|
*/
|
|
@@ -124,6 +126,10 @@ export declare class SnkApplication {
|
|
|
124
126
|
* Retorna o resourceID da tela em questão.
|
|
125
127
|
*/
|
|
126
128
|
getResourceID(): Promise<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Retorna o resourceID da tela em questão.
|
|
131
|
+
*/
|
|
132
|
+
getUserID(): Promise<string>;
|
|
127
133
|
/**
|
|
128
134
|
* Mostra o diálogo de alerta de acordo com os parâmetros passados.
|
|
129
135
|
*/
|
|
@@ -151,11 +157,23 @@ export declare class SnkApplication {
|
|
|
151
157
|
/**
|
|
152
158
|
* Busca a configuração de formulário.
|
|
153
159
|
*/
|
|
154
|
-
loadFormConfig(name: string): Promise<
|
|
160
|
+
loadFormConfig(name: string): Promise<IFormConfig>;
|
|
155
161
|
/**
|
|
156
162
|
* Busca a configuração de grade.
|
|
157
163
|
*/
|
|
158
164
|
loadGridConfig(name: string): Promise<IGridConfig>;
|
|
165
|
+
/**
|
|
166
|
+
* Busca lista de configurações de formulário do usuário.
|
|
167
|
+
*/
|
|
168
|
+
fetchUserAvailableConfigs(name: string): Promise<Array<IUserConfig>>;
|
|
169
|
+
/**
|
|
170
|
+
* Busca a configuração de formulário do usuário.
|
|
171
|
+
*/
|
|
172
|
+
fetchLegacyConfig(name: string): Promise<IFormConfig>;
|
|
173
|
+
/**
|
|
174
|
+
* Busca a configuração padrão de formulário.
|
|
175
|
+
*/
|
|
176
|
+
fetchDefaultConfig(name: string): Promise<IFormConfig>;
|
|
159
177
|
/**
|
|
160
178
|
* Busca os totalizadores da grade.
|
|
161
179
|
*/
|
|
@@ -172,6 +190,10 @@ export declare class SnkApplication {
|
|
|
172
190
|
* Salva as configurações da barra de filtros
|
|
173
191
|
*/
|
|
174
192
|
saveFilterBarConfig(config: Array<SnkFilterItemConfig>, name: string): Promise<boolean>;
|
|
193
|
+
/**
|
|
194
|
+
* Salva a configuração de formulário.
|
|
195
|
+
*/
|
|
196
|
+
saveFormConfig(config: IFormConfig, name: string): Promise<boolean>;
|
|
175
197
|
/**
|
|
176
198
|
* Evento disparado quando a aplicação for carregada.
|
|
177
199
|
*/
|
|
@@ -189,10 +211,10 @@ export declare class SnkApplication {
|
|
|
189
211
|
private get pesquisaFetcher();
|
|
190
212
|
private get authFetcher();
|
|
191
213
|
private get filterBarConfigFetcher();
|
|
192
|
-
executeSearch(searchArgument:
|
|
193
|
-
executePreparedSearch(mode: string, argument: string, options: any): Promise<Array<
|
|
214
|
+
executeSearch(searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit): Promise<Array<IOption> | IOption>;
|
|
215
|
+
executePreparedSearch(mode: string, argument: string, options: any): Promise<Array<IOption> | IOption>;
|
|
194
216
|
isDebugMode(): Promise<boolean>;
|
|
195
|
-
private
|
|
217
|
+
private clearContent;
|
|
196
218
|
private clearPopUpTitle;
|
|
197
219
|
private setPopUpTitle;
|
|
198
220
|
componentWillLoad(): void;
|