@sankhyalabs/sankhyablocks 1.1.28 → 1.3.1
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/LICENSE +21 -21
- package/README.md +75 -75
- package/dist/cjs/index-4720dab8.js +735 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +668 -653
- package/dist/collection/collection-manifest.json +5 -34
- package/dist/collection/components/snk-application/snk-application.css +5 -5
- package/dist/collection/components/snk-application/snk-application.js +492 -492
- package/dist/collection/index.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +158 -158
- package/dist/collection/lib/http/data-fetcher/fetchers/application-config-fetcher.js +23 -23
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +188 -188
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +25 -25
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +2 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +59 -59
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +30 -30
- package/dist/collection/lib/http/data-fetcher/state/LoadStateManager.js +66 -66
- package/dist/collection/lib/utils/pesquisa.js +16 -16
- package/dist/collection/lib/utils/urlutils.js +23 -23
- package/dist/collection/lib/workspace/workspace.js +7 -7
- package/dist/components/snk-application.js +655 -640
- package/dist/esm/index-72d4e2e0.js +709 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/sankhyablocks.js +2 -2
- package/dist/esm/snk-application.entry.js +626 -611
- package/dist/sankhyablocks/p-5d8ddbda.entry.js +57 -0
- package/dist/sankhyablocks/p-a33afc3b.js +2 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +44 -44
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +15 -15
- package/dist/types/lib/http/data-fetcher/fetchers/application-config-fetcher.d.ts +6 -6
- package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +12 -12
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +5 -5
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +2 -2
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +13 -13
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +6 -6
- package/dist/types/lib/http/data-fetcher/state/LoadStateManager.d.ts +23 -23
- package/dist/types/lib/utils/pesquisa.d.ts +2 -2
- package/dist/types/lib/utils/urlutils.d.ts +4 -4
- package/dist/types/lib/workspace/workspace.d.ts +4 -4
- package/package.json +63 -52
- package/react/.keepfolder +1 -0
- package/react/components.d.ts +3 -32
- package/react/components.js +5 -34
- package/react/components.js.map +1 -1
- package/react/react-component-lib/createComponent.d.ts +10 -10
- package/react/react-component-lib/createComponent.js +58 -74
- package/react/react-component-lib/createComponent.js.map +1 -1
- package/react/react-component-lib/createOverlayComponent.d.ts +20 -21
- package/react/react-component-lib/createOverlayComponent.js +88 -108
- package/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/react/react-component-lib/index.d.ts +2 -2
- package/react/react-component-lib/index.js +2 -2
- package/react/react-component-lib/interfaces.d.ts +29 -29
- package/react/react-component-lib/utils/attachProps.d.ts +12 -12
- package/react/react-component-lib/utils/attachProps.js +95 -97
- package/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/react/react-component-lib/utils/case.d.ts +2 -2
- package/react/react-component-lib/utils/case.js +6 -6
- package/react/react-component-lib/utils/dev.d.ts +2 -2
- package/react/react-component-lib/utils/dev.js +12 -12
- package/react/react-component-lib/utils/index.d.ts +7 -10
- package/react/react-component-lib/utils/index.js +20 -33
- package/react/react-component-lib/utils/index.js.map +1 -1
- package/dist/cjs/ApplicationUtils-05b74ee9.js +0 -39
- package/dist/cjs/AssetsUtils-7e3c38f9.js +0 -24
- package/dist/cjs/CSSVarsUtils-75ca9c64.js +0 -19
- package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
- package/dist/cjs/ez-action-chip.cjs.entry.js +0 -27
- package/dist/cjs/ez-application.cjs.entry.js +0 -26
- package/dist/cjs/ez-button_4.cjs.entry.js +0 -660
- package/dist/cjs/ez-calendar.cjs.entry.js +0 -223
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +0 -47
- package/dist/cjs/ez-combo-box.cjs.entry.js +0 -278
- package/dist/cjs/ez-date-input.cjs.entry.js +0 -102
- package/dist/cjs/ez-date-time-input.cjs.entry.js +0 -145
- package/dist/cjs/ez-dialog.cjs.entry.js +0 -89
- package/dist/cjs/ez-form.cjs.entry.js +0 -785
- package/dist/cjs/ez-grid.cjs.entry.js +0 -110485
- package/dist/cjs/ez-icon.cjs.entry.js +0 -41
- package/dist/cjs/ez-label-chip.cjs.entry.js +0 -104
- package/dist/cjs/ez-modal_2.cjs.entry.js +0 -316
- package/dist/cjs/ez-number-input.cjs.entry.js +0 -86
- package/dist/cjs/ez-popover.cjs.entry.js +0 -120
- package/dist/cjs/ez-popup.cjs.entry.js +0 -48
- package/dist/cjs/ez-search.cjs.entry.js +0 -64
- package/dist/cjs/ez-tabselector.cjs.entry.js +0 -198
- package/dist/cjs/ez-text-area.cjs.entry.js +0 -114
- package/dist/cjs/ez-text-input.cjs.entry.js +0 -201
- package/dist/cjs/ez-time-input.cjs.entry.js +0 -118
- package/dist/cjs/ez-toast.cjs.entry.js +0 -44
- package/dist/cjs/ez-upload.cjs.entry.js +0 -356
- package/dist/cjs/index-682c98b2.js +0 -1771
- package/dist/cjs/test-du.cjs.entry.js +0 -76
- package/dist/components/ApplicationUtils.js +0 -37
- package/dist/components/AssetsUtils.js +0 -22
- package/dist/components/CSSVarsUtils.js +0 -17
- package/dist/components/_commonjsHelpers.js +0 -17
- package/dist/components/ez-action-chip.js +0 -44
- package/dist/components/ez-application.js +0 -39
- package/dist/components/ez-button.js +0 -6
- package/dist/components/ez-button2.js +0 -105
- package/dist/components/ez-calendar.js +0 -6
- package/dist/components/ez-calendar2.js +0 -242
- package/dist/components/ez-check.js +0 -6
- package/dist/components/ez-check2.js +0 -94
- package/dist/components/ez-collapsible-box.js +0 -67
- package/dist/components/ez-combo-box.js +0 -6
- package/dist/components/ez-combo-box2.js +0 -311
- package/dist/components/ez-date-input.js +0 -135
- package/dist/components/ez-date-time-input.js +0 -179
- package/dist/components/ez-dialog.js +0 -124
- package/dist/components/ez-form.js +0 -6
- package/dist/components/ez-form2.js +0 -807
- package/dist/components/ez-grid.js +0 -110576
- package/dist/components/ez-icon.js +0 -6
- package/dist/components/ez-icon2.js +0 -56
- package/dist/components/ez-label-chip.js +0 -125
- package/dist/components/ez-list.js +0 -6
- package/dist/components/ez-list2.js +0 -523
- package/dist/components/ez-modal.js +0 -6
- package/dist/components/ez-modal2.js +0 -82
- package/dist/components/ez-number-input.js +0 -115
- package/dist/components/ez-popover.js +0 -145
- package/dist/components/ez-popup.js +0 -67
- package/dist/components/ez-search.js +0 -100
- package/dist/components/ez-tabselector.js +0 -6
- package/dist/components/ez-tabselector2.js +0 -213
- package/dist/components/ez-text-area.js +0 -137
- package/dist/components/ez-text-input.js +0 -6
- package/dist/components/ez-text-input2.js +0 -223
- package/dist/components/ez-time-input.js +0 -153
- package/dist/components/ez-toast.js +0 -64
- package/dist/components/ez-upload.js +0 -382
- package/dist/components/grid-config.js +0 -6
- package/dist/components/grid-config2.js +0 -318
- package/dist/components/select-box.js +0 -6
- package/dist/components/select-box2.js +0 -47
- package/dist/components/test-du.js +0 -101
- package/dist/esm/ApplicationUtils-e0b6d857.js +0 -37
- package/dist/esm/AssetsUtils-6e6624dc.js +0 -22
- package/dist/esm/CSSVarsUtils-0787c3f3.js +0 -17
- package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
- package/dist/esm/ez-action-chip.entry.js +0 -23
- package/dist/esm/ez-application.entry.js +0 -22
- package/dist/esm/ez-button_4.entry.js +0 -653
- package/dist/esm/ez-calendar.entry.js +0 -219
- package/dist/esm/ez-collapsible-box.entry.js +0 -43
- package/dist/esm/ez-combo-box.entry.js +0 -274
- package/dist/esm/ez-date-input.entry.js +0 -98
- package/dist/esm/ez-date-time-input.entry.js +0 -141
- package/dist/esm/ez-dialog.entry.js +0 -85
- package/dist/esm/ez-form.entry.js +0 -781
- package/dist/esm/ez-grid.entry.js +0 -110481
- package/dist/esm/ez-icon.entry.js +0 -37
- package/dist/esm/ez-label-chip.entry.js +0 -100
- package/dist/esm/ez-modal_2.entry.js +0 -311
- package/dist/esm/ez-number-input.entry.js +0 -82
- package/dist/esm/ez-popover.entry.js +0 -116
- package/dist/esm/ez-popup.entry.js +0 -44
- package/dist/esm/ez-search.entry.js +0 -60
- package/dist/esm/ez-tabselector.entry.js +0 -194
- package/dist/esm/ez-text-area.entry.js +0 -110
- package/dist/esm/ez-text-input.entry.js +0 -197
- package/dist/esm/ez-time-input.entry.js +0 -114
- package/dist/esm/ez-toast.entry.js +0 -40
- package/dist/esm/ez-upload.entry.js +0 -352
- package/dist/esm/index-35088a3f.js +0 -1740
- package/dist/esm/test-du.entry.js +0 -72
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-action-chip/ez-action-chip.css +0 -67
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-application/ez-application.css +0 -3
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-button/ez-button.css +0 -180
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-calendar/ez-calendar.css +0 -319
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-check/ez-check.css +0 -327
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +0 -162
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-combo-box/ez-combo-box.css +0 -217
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-date-input/ez-date-input.css +0 -49
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-date-time-input/ez-date-time-input.css +0 -44
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-dialog/ez-dialog.css +0 -527
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-form/ez-form.css +0 -5
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-grid/ez-grid.css +0 -31
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +0 -129
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +0 -10
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-icon/ez-icon.css +0 -176
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-label-chip/ez-label-chip.css +0 -139
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-list/ez-list.css +0 -335
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-modal/ez-modal.css +0 -358
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-number-input/ez-number-input.css +0 -4
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-popover/ez-popover.css +0 -44
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-popup/ez-popup.css +0 -405
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-search/ez-search.css +0 -3
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-tabselector/ez-tabselector.css +0 -138
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-text-area/ez-text-area.css +0 -165
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-text-input/ez-text-input.css +0 -196
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-time-input/ez-time-input.css +0 -10
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-toast/ez-toast.css +0 -127
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-upload/ez-upload.css +0 -568
- package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/test-du/test-du.css +0 -3
- package/dist/sankhyablocks/p-0183d259.entry.js +0 -1
- package/dist/sankhyablocks/p-01f23a70.entry.js +0 -1
- package/dist/sankhyablocks/p-07c32f68.entry.js +0 -1
- package/dist/sankhyablocks/p-0f90499d.entry.js +0 -1
- package/dist/sankhyablocks/p-105724a3.entry.js +0 -1
- package/dist/sankhyablocks/p-112455b1.js +0 -1
- package/dist/sankhyablocks/p-2ac02d48.entry.js +0 -1
- package/dist/sankhyablocks/p-35364a97.entry.js +0 -1
- package/dist/sankhyablocks/p-3f6aa9a7.entry.js +0 -1
- package/dist/sankhyablocks/p-4811bc0a.entry.js +0 -369
- package/dist/sankhyablocks/p-5f9af495.entry.js +0 -1
- package/dist/sankhyablocks/p-60967cf0.js +0 -1
- package/dist/sankhyablocks/p-70ad6c16.entry.js +0 -1
- package/dist/sankhyablocks/p-710bfffe.entry.js +0 -1
- package/dist/sankhyablocks/p-73397a0f.entry.js +0 -57
- package/dist/sankhyablocks/p-811b4b9d.js +0 -1
- package/dist/sankhyablocks/p-813fe4f7.js +0 -1
- package/dist/sankhyablocks/p-85a9446b.js +0 -2
- package/dist/sankhyablocks/p-89a1100f.entry.js +0 -1
- package/dist/sankhyablocks/p-8b543003.entry.js +0 -1
- package/dist/sankhyablocks/p-9750632b.entry.js +0 -1
- package/dist/sankhyablocks/p-a96272f7.entry.js +0 -1
- package/dist/sankhyablocks/p-ac8842e5.entry.js +0 -1
- package/dist/sankhyablocks/p-ba64cc41.entry.js +0 -1
- package/dist/sankhyablocks/p-c1ede043.entry.js +0 -1
- package/dist/sankhyablocks/p-d90ebb85.entry.js +0 -1
- package/dist/sankhyablocks/p-e5355a29.entry.js +0 -1
- package/dist/sankhyablocks/p-ef04b633.entry.js +0 -1
- package/dist/sankhyablocks/p-f6db07fb.entry.js +0 -1
- package/dist/sankhyablocks/p-f80cabc7.entry.js +0 -1
- package/dist/sankhyablocks/p-fcd9bd92.entry.js +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-682c98b2.js');
|
|
6
|
-
const core = require('@sankhyalabs/core');
|
|
7
|
-
|
|
8
|
-
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-account-outline:before{content:\"\\ea01\"}.ez-icon-account:before{content:\"\\ea02\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea03\"}.ez-icon-alert-circle:before{content:\"\\ea04\"}.ez-icon-alert-mail:before{content:\"\\ea05\"}.ez-icon-alert-outline:before{content:\"\\ea06\"}.ez-icon-alert-popup:before{content:\"\\ea07\"}.ez-icon-apps:before{content:\"\\ea08\"}.ez-icon-arrow_back:before{content:\"\\ea09\"}.ez-icon-bell-inverted:before{content:\"\\ea0a\"}.ez-icon-bell:before{content:\"\\ea0b\"}.ez-icon-business-center:before{content:\"\\ea0c\"}.ez-icon-calendar-text:before{content:\"\\ea0d\"}.ez-icon-calendar:before{content:\"\\ea0e\"}.ez-icon-check-circle-inverted:before{content:\"\\ea0f\"}.ez-icon-check-circle:before{content:\"\\ea10\"}.ez-icon-check:before{content:\"\\ea11\"}.ez-icon-chevron-down:before{content:\"\\ea12\"}.ez-icon-chevron-left:before{content:\"\\ea13\"}.ez-icon-chevron-right:before{content:\"\\ea14\"}.ez-icon-chevron-up:before{content:\"\\ea15\"}.ez-icon-circle--medium:before{content:\"\\ea16\"}.ez-icon-circle:before{content:\"\\ea17\"}.ez-icon-clipboard:before{content:\"\\ea18\"}.ez-icon-close-circle-inverted:before{content:\"\\ea19\"}.ez-icon-close-circle:before{content:\"\\ea1a\"}.ez-icon-close:before{content:\"\\ea1b\"}.ez-icon-comment-inverted:before{content:\"\\ea1c\"}.ez-icon-comment:before{content:\"\\ea1d\"}.ez-icon-configuration:before{content:\"\\ea1e\"}.ez-icon-copy:before{content:\"\\ea1f\"}.ez-icon-crop:before{content:\"\\ea20\"}.ez-icon-delete:before{content:\"\\ea21\"}.ez-icon-description:before{content:\"\\ea22\"}.ez-icon-dot-notification:before{content:\"\\ea23\"}.ez-icon-dots-horizontal:before{content:\"\\ea24\"}.ez-icon-dots-vertical:before{content:\"\\ea25\"}.ez-icon-drag-indicator:before{content:\"\\ea26\"}.ez-icon-edit-file:before{content:\"\\ea27\"}.ez-icon-edit-table:before{content:\"\\ea28\"}.ez-icon-edit-time:before{content:\"\\ea29\"}.ez-icon-edit:before{content:\"\\ea2a\"}.ez-icon-email-inverted:before{content:\"\\ea2b\"}.ez-icon-email:before{content:\"\\ea2c\"}.ez-icon-error-octagon:before{content:\"\\ea2d\"}.ez-icon-expand:before{content:\"\\ea2e\"}.ez-icon-eye-off:before{content:\"\\ea2f\"}.ez-icon-eye:before{content:\"\\ea30\"}.ez-icon-favorite:before{content:\"\\ea31\"}.ez-icon-file-download:before{content:\"\\ea32\"}.ez-icon-file-upload:before{content:\"\\ea33\"}.ez-icon-filter:before{content:\"\\ea34\"}.ez-icon-find-file:before{content:\"\\ea35\"}.ez-icon-find-page:before{content:\"\\ea36\"}.ez-icon-format-color-fill:before{content:\"\\ea37\"}.ez-icon-help-circle-outline:before{content:\"\\ea38\"}.ez-icon-help-inverted:before{content:\"\\ea39\"}.ez-icon-help:before{content:\"\\ea3a\"}.ez-icon-home:before{content:\"\\ea3b\"}.ez-icon-language:before{content:\"\\ea3c\"}.ez-icon-launch:before{content:\"\\ea3d\"}.ez-icon-lightbulb:before{content:\"\\ea3e\"}.ez-icon-list:before{content:\"\\ea3f\"}.ez-icon-loading:before{content:\"\\ea40\"}.ez-icon-lock-outline:before{content:\"\\ea41\"}.ez-icon-lock:before{content:\"\\ea42\"}.ez-icon-menu:before{content:\"\\ea43\"}.ez-icon-minus-circle-inverted:before{content:\"\\ea44\"}.ez-icon-minus:before{content:\"\\ea45\"}.ez-icon-money-off:before{content:\"\\ea46\"}.ez-icon-money:before{content:\"\\ea47\"}.ez-icon-north-west:before{content:\"\\ea48\"}.ez-icon-pause:before{content:\"\\ea49\"}.ez-icon-payments:before{content:\"\\ea4a\"}.ez-icon-play:before{content:\"\\ea4b\"}.ez-icon-plus-circle-inverted:before{content:\"\\ea4c\"}.ez-icon-plus-circle:before{content:\"\\ea4d\"}.ez-icon-plus:before{content:\"\\ea4e\"}.ez-icon-power:before{content:\"\\ea4f\"}.ez-icon-push-pin:before{content:\"\\ea50\"}.ez-icon-restore:before{content:\"\\ea51\"}.ez-icon-return:before{content:\"\\ea52\"}.ez-icon-rotate:before{content:\"\\ea53\"}.ez-icon-save:before{content:\"\\ea54\"}.ez-icon-search:before{content:\"\\ea55\"}.ez-icon-settings-inverted:before{content:\"\\ea56\"}.ez-icon-settings:before{content:\"\\ea57\"}.ez-icon-share:before{content:\"\\ea58\"}.ez-icon-shield:before{content:\"\\ea59\"}.ez-icon-south-east:before{content:\"\\ea5a\"}.ez-icon-success-circle:before{content:\"\\ea5b\"}.ez-icon-sync:before{content:\"\\ea5c\"}.ez-icon-table:before{content:\"\\ea5d\"}.ez-icon-timer-outline:before{content:\"\\ea5e\"}.ez-icon-user-circle:before{content:\"\\ea5f\"}.ez-icon-warning-minus:before{content:\"\\ea60\"}.ez-icon-warning-triangle:before{content:\"\\ea61\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|
|
9
|
-
|
|
10
|
-
const EzIcon = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
/**
|
|
14
|
-
* Tamanho do ícone
|
|
15
|
-
*/
|
|
16
|
-
this.size = 'medium';
|
|
17
|
-
}
|
|
18
|
-
isSprite() {
|
|
19
|
-
return this.href && this.href.indexOf('#') > -1;
|
|
20
|
-
}
|
|
21
|
-
getIconClassName() {
|
|
22
|
-
return `ez-icon-${this.iconName}`;
|
|
23
|
-
}
|
|
24
|
-
getIconContent() {
|
|
25
|
-
if (this.isSprite()) {
|
|
26
|
-
return index.h("svg", { class: this.size, role: "img" }, index.h("use", { xlinkHref: this.href }));
|
|
27
|
-
}
|
|
28
|
-
else if (!core.StringUtils.isEmpty(this.iconName)) {
|
|
29
|
-
return index.h("span", { class: `icon-content ${this.getIconClassName()} ${this.size}--font` });
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return index.h("img", { class: this.size, src: this.href });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
return (index.h(index.Host, null, this.getIconContent()));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
EzIcon.style = ezIconCss;
|
|
40
|
-
|
|
41
|
-
exports.ez_icon = EzIcon;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-682c98b2.js');
|
|
6
|
-
|
|
7
|
-
const ezLabelChipCss = ":host{--ez-label-chip--height:36px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--large, 600);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #919191);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:#0085610F;--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--hover:var(--color--primary-600, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-200, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__btn__close--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"8\" viewBox=\"0 0 8 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 4.7098145,3.9968334 7.8535703,0.85318776 C 7.9473034,0.75946455 8,0.63233985 8,0.49978585 8,0.36723841 7.947304,0.24011361 7.8535703,0.14638378 7.7598354,0.05266059 7.6327257,6.48e-8 7.500152,6.48e-8 7.3676457,6.48e-8 7.2404691,0.0526608 7.1467354,0.14638378 L 4.00298,3.2900293 0.8591984,0.14638378 C 0.76546463,0.05266059 0.63834103,6.48e-8 0.50578123,6.48e-8 0.3732281,6.48e-8 0.24609783,0.05266059 0.15236397,0.14638378 0.05863012,0.24011361 0.00597395,0.36723841 0.00597395,0.49978585 c 0,0.132554 0.05265617,0.2596787 0.14639002,0.35340191 L 3.2961455,3.9968334 0.15236397,7.1411589 C 0.10466427,7.1872561 0.06663114,7.2424161 0.04046961,7.303371 0.01431473,7.3643212 5.6180845e-4,7.429943 1.6859246e-5,7.4962264 -5.2808998e-4,7.5625744 0.01214297,7.6283944 0.03729854,7.6897476 c 0.02514888,0.061416 0.06227604,0.1171794 0.1092096,0.1640783 0.0469402,0.046903 0.10274083,0.083936 0.16415749,0.1090508 0.0614166,0.025114 0.12721688,0.037703 0.19355667,0.037103 0.06634,-5.714e-4 0.13190027,-0.014457 0.19284393,-0.04064 0.0609507,-0.026246 0.11606474,-0.064351 0.16213217,-0.1120492 L 4.00298,4.7036374 7.1467354,7.8472967 c 0.093734,0.09373 0.2209103,0.1463572 0.3534166,0.1463572 0.1325737,0 0.2596834,-0.052623 0.3534183,-0.1463572 C 7.9473034,7.753567 8,7.6264624 8,7.493895 8,7.3613281 7.9473086,7.2342224 7.8535703,7.1404927 Z\"/></svg>')}.btn-close{align-items:flex-start;display:flex;outline:none;border:none;padding:0px 0px 0px 6px;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-label-chip__label__container--color-primary);width:8px;height:8px;-webkit-mask-image:var(--ez-label-chip__btn__close--image);mask-image:var(--ez-label-chip__btn__close--image)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;background-color:#FFFFFF;align-self:center;color:var(--ez-label-chip__label--title--primary);fill:var(--ez-label-chip__label--title--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover)}.label__container--active{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);fill:var(--ez-label-chip__label__container--color-primary);color:var(--ez-label-chip__label__container--color-primary);border-color:var(--ez-label-chip__label__container--border-color);background-color:var(--ez-label-chip__label__container--background-color)}.label__container--disabled{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);border-radius:var(--ez-label-chip__label__container--border-radius);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);background-color:var(--ez-label-chip__label__container-color--disable-secondary)}label{display:flex;align-items:center;font-weight:var(--ez-label-chip__label--font-weight);cursor:pointer;height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size)}.label__icon{display:flex;cursor:pointer}";
|
|
8
|
-
|
|
9
|
-
const EzLabelChip = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.valueChange = index.createEvent(this, "valueChange", 7);
|
|
13
|
-
this.removeChip = index.createEvent(this, "removeChip", 7);
|
|
14
|
-
/**
|
|
15
|
-
* Deixa o componente disponível ou não para seleção.
|
|
16
|
-
*/
|
|
17
|
-
this.enabled = true;
|
|
18
|
-
/**
|
|
19
|
-
* Indica se o componente terá a opção de ser removido.
|
|
20
|
-
*/
|
|
21
|
-
this.removable = false;
|
|
22
|
-
/**
|
|
23
|
-
* Indica se o componente está ou não ativado.
|
|
24
|
-
*/
|
|
25
|
-
this.value = false;
|
|
26
|
-
}
|
|
27
|
-
//---------------------------------------------
|
|
28
|
-
// Public methods
|
|
29
|
-
//---------------------------------------------
|
|
30
|
-
/**
|
|
31
|
-
* Faz o foco no componente de input
|
|
32
|
-
*/
|
|
33
|
-
async setFocus() {
|
|
34
|
-
this._labelElem.focus();
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Remove o foco no componente de input
|
|
38
|
-
*/
|
|
39
|
-
async setBlur() {
|
|
40
|
-
this._labelElem.blur();
|
|
41
|
-
}
|
|
42
|
-
//---------------------------------------------
|
|
43
|
-
// Event handlers
|
|
44
|
-
//---------------------------------------------
|
|
45
|
-
handleClick(ev) {
|
|
46
|
-
const target = ev.target;
|
|
47
|
-
if (target.assignedSlot === null && !target.classList.contains("label__icon")) {
|
|
48
|
-
this.valueChange.emit(this.value);
|
|
49
|
-
this.swichState();
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
swichState() {
|
|
53
|
-
if (this.enabled) {
|
|
54
|
-
this.value = !this.value;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
reflectChange() {
|
|
58
|
-
if (this._divElem) {
|
|
59
|
-
this._divElem.classList.remove("label__container--active");
|
|
60
|
-
this._divElem.classList.remove("label__container");
|
|
61
|
-
if (this.value) {
|
|
62
|
-
this._divElem.classList.add("label__container--active");
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
this._divElem.classList.add("label__container");
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
//---------------------------------------------
|
|
70
|
-
// Lifecycle web component
|
|
71
|
-
//---------------------------------------------
|
|
72
|
-
componentDidLoad() {
|
|
73
|
-
if (this._divElem) {
|
|
74
|
-
if (this.value) {
|
|
75
|
-
this._divElem.classList.add("label__container--active");
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.handleEnabledState();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
handleEnabledState() {
|
|
83
|
-
this._divElem.classList.remove("label__container--disabled");
|
|
84
|
-
if (!this.enabled) {
|
|
85
|
-
this._divElem.classList.remove("label__container");
|
|
86
|
-
this._divElem.classList.add("label__container--disabled");
|
|
87
|
-
if (this._labelElem) {
|
|
88
|
-
this._labelElem.style.cursor = "default";
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
render() {
|
|
93
|
-
return (index.h("div", { onClick: (ev) => this.handleClick(ev), class: this.value ? "label__container--active" : "label__container", ref: (el) => this._divElem = el }, index.h("slot", { name: "leftIcon" }), index.h("label", { ref: (el) => this._labelElem = el }, this.label), this.removable ?
|
|
94
|
-
index.h("button", { class: "btn-close", onClick: () => { this.removeChip.emit(); } })
|
|
95
|
-
: null, index.h("slot", { name: "rightIcon" })));
|
|
96
|
-
}
|
|
97
|
-
static get watchers() { return {
|
|
98
|
-
"value": ["reflectChange"],
|
|
99
|
-
"enabled": ["handleEnabledState"]
|
|
100
|
-
}; }
|
|
101
|
-
};
|
|
102
|
-
EzLabelChip.style = ezLabelChipCss;
|
|
103
|
-
|
|
104
|
-
exports.ez_label_chip = EzLabelChip;
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-682c98b2.js');
|
|
6
|
-
const AssetsUtils = require('./AssetsUtils-7e3c38f9.js');
|
|
7
|
-
const core = require('@sankhyalabs/core');
|
|
8
|
-
|
|
9
|
-
const ezModalCss = ":host{--ez-modal-z-index:var(--most-visible, 3);--ez-modal-vertical-padding:var(--space--large, 24px);display:block}.modal{position:fixed;padding:var(--ez-modal-vertical-padding) 0;display:flex;top:0px;z-index:var(--ez-modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;max-height:calc(100% - 48px);height:100%;overflow-y:auto;background-color:rgb(255, 255, 255);padding:24px;border-radius:12px 0px 0px 12px;box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
10
|
-
|
|
11
|
-
const EzModal = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.ezCloseModal = index.createEvent(this, "ezCloseModal", 7);
|
|
15
|
-
/**
|
|
16
|
-
* Controle de exibição do Modal
|
|
17
|
-
*/
|
|
18
|
-
this.opened = true;
|
|
19
|
-
/**
|
|
20
|
-
* Define se o modal será fechado ao clicar ESC
|
|
21
|
-
*/
|
|
22
|
-
this.closeEsc = false;
|
|
23
|
-
/**
|
|
24
|
-
* Define se o modal será fechado ao clicar fora do conteúdo.
|
|
25
|
-
*/
|
|
26
|
-
this.closeOutsideClick = false;
|
|
27
|
-
this.handleKeyboardEvent = (ev) => {
|
|
28
|
-
if ((ev === null || ev === void 0 ? void 0 : ev.key) === "Escape" && this.closeEsc) {
|
|
29
|
-
this.closeModal();
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
handleopenedChange() {
|
|
34
|
-
if (this.opened) {
|
|
35
|
-
document.addEventListener("keydown", this.handleKeyboardEvent);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
document.removeEventListener("keydown", this.handleKeyboardEvent);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
closeModal() {
|
|
42
|
-
this.opened = false;
|
|
43
|
-
this.ezCloseModal.emit(this.opened);
|
|
44
|
-
}
|
|
45
|
-
componentDidLoad() {
|
|
46
|
-
this.handleopenedChange();
|
|
47
|
-
}
|
|
48
|
-
onMouseDownHandler(event) {
|
|
49
|
-
if (this.closeOutsideClick && event.target === this._overlay) {
|
|
50
|
-
this.closeModal();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
const positionSufix = this.align === "left" ? "left" : "right";
|
|
55
|
-
return (index.h(index.Host, null, this.opened
|
|
56
|
-
?
|
|
57
|
-
index.h("div", { class: "modal", onMouseDown: evt => this.onMouseDownHandler(evt) }, index.h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, index.h("div", { class: `modal__content modal__content--${positionSufix} ${this.modalSize}` }, index.h("slot", null))))
|
|
58
|
-
:
|
|
59
|
-
undefined));
|
|
60
|
-
}
|
|
61
|
-
static get watchers() { return {
|
|
62
|
-
"opened": ["handleopenedChange"]
|
|
63
|
-
}; }
|
|
64
|
-
};
|
|
65
|
-
EzModal.style = ezModalCss;
|
|
66
|
-
|
|
67
|
-
const gridConfigCss = ".sc-grid-config-h{--ez-grid-config__footer--padding-top:var(--space--medium, 12px);--ez-grid-config__main--padding-right:var(--space--medium, 12px);--ez-grid-config__tabselector-container--padding:var(--space--medium, 12px);--ez-grid-config__button-close--padding-left:var(--space--medium, 12px);--ez-grid-config__subtitle--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-weight:var(--text-weight--large, 700);--ez-grid-config__subtitle--font-size:var(--text--medium, 14px);--ez-grid-config__scrollbar--width:var(--space--medium, 12px);--ez-grid-config__main__scrollbar--background-color:var(--text--primary, #626e82);--ez-grid-config__main__scrollbar--border-radius:var(--border--radius-medium, 12px);--ez-grid__group--font-family:var(--font-pattern, \"Sora\");--ez-grid__group--font-size:var(--text--medium, 14px);--ez-grid__group--font-weight:var(--text-weight--large, 600);--ez-grid__group--padding-bottom:var(--space-small, 6px);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}.padding-right--medium.sc-grid-config{padding-right:var(--space--medium)}ez-list.sc-grid-config{height:100%}.heigth-calc.sc-grid-config{max-height:calc(100% - 24px)}.grid-config__footer.sc-grid-config{padding-top:var(--ez-grid-config__footer--padding-top);display:flex;justify-content:flex-end;width:100%}.hidden.sc-grid-config{display:none}.grid-config__main.sc-grid-config{padding-right:var(--ez-grid-config__main--padding-right);overflow-y:auto}.tabselector-container.sc-grid-config{padding:var(--ez-grid-config__tabselector-container--padding) 0}.button-close.sc-grid-config{padding-left:var(--ez-grid-config__button-close--padding-left)}.title-container.sc-grid-config{display:flex;justify-content:space-between;align-items:center;width:359px}.subtitle.sc-grid-config{font-family:var(--ez-grid-config__subtitle--font-family);font-size:var(--ez-grid-config__subtitle--font-size);color:var(--text--primary)}.title.sc-grid-config{display:flex;margin:0;font-family:var(--ez-grid-config__title--font-family);font-size:var(--title--large);font-weight:var(--ez-grid-config__title--font-weight);line-height:normal;letter-spacing:0em;text-align:left;color:var(--title--primary)}.grid-config__main.sc-grid-config::-webkit-scrollbar-track{background-color:#f0f2f5}.grid-config__main.sc-grid-config::-webkit-scrollbar-thumb{background-color:var(--ez-grid-config__main__scrollbar--background-color);border-radius:var(--ez-grid-config__main__scrollbar--border-radius)}.grid-config__main.sc-grid-config::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-grid-config__scrollbar--width);max-width:var(--ez-grid-config__scrollbar--width);min-width:var(--ez-grid-config__scrollbar--width)}.group-name.sc-grid-config{font-family:var(--ez-grid__group--font-family);font-size:var(--ez-grid__group--font-size);font-weight:var(--ez-grid__group--font-weight);padding-bottom:var(--ez-grid__group--padding-bottom)}";
|
|
68
|
-
|
|
69
|
-
const GridConfig = class {
|
|
70
|
-
constructor(hostRef) {
|
|
71
|
-
index.registerInstance(this, hostRef);
|
|
72
|
-
this.configFinish = index.createEvent(this, "configFinish", 7);
|
|
73
|
-
this.configCancel = index.createEvent(this, "configCancel", 7);
|
|
74
|
-
this._columnListHistory = [];
|
|
75
|
-
this._orderListItems = [];
|
|
76
|
-
this._columListItems = [];
|
|
77
|
-
this.selectedTab = "Colunas";
|
|
78
|
-
this._selectedIndex = -1;
|
|
79
|
-
}
|
|
80
|
-
/* Creation Methods */
|
|
81
|
-
createOrderList() {
|
|
82
|
-
var _a;
|
|
83
|
-
let newList = [];
|
|
84
|
-
if (((_a = this._columnListHistory) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
85
|
-
this._columnListHistory.find(group => group.group === "Visíveis").items.forEach(column => {
|
|
86
|
-
let item = { label: column.label };
|
|
87
|
-
newList.push(item);
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
this.columns.forEach(column => {
|
|
92
|
-
let item = { name: column.name, label: column.label };
|
|
93
|
-
if (!column.hidden) {
|
|
94
|
-
newList.push(item);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
this._orderListItems = newList;
|
|
99
|
-
}
|
|
100
|
-
createColumnList() {
|
|
101
|
-
let visibleGroup = {
|
|
102
|
-
group: 'Visíveis',
|
|
103
|
-
items: [],
|
|
104
|
-
};
|
|
105
|
-
let hiddenGroup = {
|
|
106
|
-
group: 'Ocultas',
|
|
107
|
-
items: [],
|
|
108
|
-
sort: 'ASC'
|
|
109
|
-
};
|
|
110
|
-
this.columns.forEach(column => {
|
|
111
|
-
let item = { label: column.label };
|
|
112
|
-
if (column.hidden) {
|
|
113
|
-
hiddenGroup.items.push(item);
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
visibleGroup.items.push(item);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
if (this._columnListHistory.length <= 0) {
|
|
120
|
-
this._columListItems = [visibleGroup, hiddenGroup];
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
buildColumnListSlot(item, group) {
|
|
124
|
-
return (index.h("div", null, index.h("ez-check", { mode: 'switch', id: 'switch' + item + group, value: group.group === "Visíveis", onEzChange: (ev) => { this.switchColumnGroup(ev, item); } })));
|
|
125
|
-
}
|
|
126
|
-
buildOrderListSlot(item) {
|
|
127
|
-
let existingItem = this.columns.find(columnItem => columnItem.label === item.label);
|
|
128
|
-
return (index.h("div", null, index.h("select-box", { selectedOption: existingItem === null || existingItem === void 0 ? void 0 : existingItem.sort, key: 'select-box' + item, onEzChange: (ev) => { ev.stopPropagation(); this.updateOrder(ev.detail, item); } })));
|
|
129
|
-
}
|
|
130
|
-
updateOrder(sortOrder, updatedItem) {
|
|
131
|
-
let newList = [...this.columns];
|
|
132
|
-
let newItem = newList.find(item => item.label === updatedItem.label);
|
|
133
|
-
if (newItem) {
|
|
134
|
-
newItem.sort = sortOrder.value;
|
|
135
|
-
}
|
|
136
|
-
this.columns = newList;
|
|
137
|
-
}
|
|
138
|
-
/* Actions Methods */
|
|
139
|
-
switchColumnGroup(ev, switchedItem) {
|
|
140
|
-
ev.stopPropagation();
|
|
141
|
-
let newList = [...this._columListItems];
|
|
142
|
-
if (ev.detail === true) {
|
|
143
|
-
let hiddenGroup = newList.find(group => group.group === "Ocultas");
|
|
144
|
-
let index = hiddenGroup.items.findIndex(item => item.label === switchedItem.label);
|
|
145
|
-
if (index >= 0) {
|
|
146
|
-
hiddenGroup.items.splice(index, 1);
|
|
147
|
-
}
|
|
148
|
-
let visibleGroup = newList.find(group => group.group === "Visíveis");
|
|
149
|
-
visibleGroup.items.push(switchedItem);
|
|
150
|
-
this._columListItems = newList;
|
|
151
|
-
this.createOrderList();
|
|
152
|
-
}
|
|
153
|
-
else if (ev.detail === false) {
|
|
154
|
-
let visibleGroup = newList.find(group => group.group === "Visíveis");
|
|
155
|
-
let index = visibleGroup.items.findIndex(item => item.label === switchedItem.label);
|
|
156
|
-
if (index >= 0) {
|
|
157
|
-
visibleGroup.items.splice(index, 1);
|
|
158
|
-
}
|
|
159
|
-
let hiddenGroup = newList.find(group => group.group === "Ocultas");
|
|
160
|
-
hiddenGroup.items.push(switchedItem);
|
|
161
|
-
this._columListItems = newList;
|
|
162
|
-
this.createOrderList();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
finish() {
|
|
166
|
-
let newColumnList = [];
|
|
167
|
-
this._columListItems.forEach(group => {
|
|
168
|
-
group.items.forEach(item => {
|
|
169
|
-
const baseColumn = this.columns.find(column => column.label === item.label);
|
|
170
|
-
let newColumnItem = Object.assign({}, baseColumn);
|
|
171
|
-
if (group.group === "Ocultas") {
|
|
172
|
-
newColumnItem.hidden = true;
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
newColumnItem.hidden = false;
|
|
176
|
-
}
|
|
177
|
-
newColumnList.push(newColumnItem);
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
this._columnListHistory = [];
|
|
181
|
-
this.columns = newColumnList;
|
|
182
|
-
this.configFinish.emit(this.columns);
|
|
183
|
-
}
|
|
184
|
-
async locateColumn(evt, searchingText) {
|
|
185
|
-
var _a;
|
|
186
|
-
const hitEnter = evt.key === "Enter";
|
|
187
|
-
if (!searchingText) {
|
|
188
|
-
searchingText = (_a = evt.currentTarget) === null || _a === void 0 ? void 0 : _a.value;
|
|
189
|
-
}
|
|
190
|
-
let newSelected = -1;
|
|
191
|
-
if (this.selectedTab === "Ordenação das linhas") {
|
|
192
|
-
if (searchingText) {
|
|
193
|
-
const matchedIndexes = [];
|
|
194
|
-
let orderListDatasource;
|
|
195
|
-
await this._orderList.getList().then(listGroup => {
|
|
196
|
-
orderListDatasource = listGroup;
|
|
197
|
-
orderListDatasource.forEach((column, index) => {
|
|
198
|
-
if (this.compareWords(column, searchingText)) {
|
|
199
|
-
matchedIndexes.push(index);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
if (matchedIndexes.length > 0) {
|
|
204
|
-
if (hitEnter) {
|
|
205
|
-
for (let j = 0; j < matchedIndexes.length; j++) {
|
|
206
|
-
if (matchedIndexes[j] > this._selectedIndex) {
|
|
207
|
-
newSelected = matchedIndexes[j];
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
if (newSelected === -1) {
|
|
213
|
-
newSelected = matchedIndexes[0];
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
this._selectedIndex = newSelected;
|
|
217
|
-
let selectedColumn;
|
|
218
|
-
selectedColumn = orderListDatasource[newSelected];
|
|
219
|
-
if (selectedColumn) {
|
|
220
|
-
this._orderList.setSelection({ label: selectedColumn.label }, true);
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
this._orderList.setSelection(undefined);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
else {
|
|
227
|
-
this._orderList.setSelection(undefined);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
else {
|
|
231
|
-
if (searchingText) {
|
|
232
|
-
const matchedIndexes = [];
|
|
233
|
-
this.columns.forEach((column, index) => {
|
|
234
|
-
if (this.compareWords(column, searchingText)) {
|
|
235
|
-
matchedIndexes.push(index);
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
if (matchedIndexes.length > 0) {
|
|
239
|
-
if (hitEnter) {
|
|
240
|
-
for (let j = 0; j < matchedIndexes.length; j++) {
|
|
241
|
-
if (matchedIndexes[j] > this._selectedIndex) {
|
|
242
|
-
newSelected = matchedIndexes[j];
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
if (newSelected === -1) {
|
|
248
|
-
newSelected = matchedIndexes[0];
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
this._selectedIndex = newSelected;
|
|
252
|
-
let selectedColumn = this.columns[newSelected];
|
|
253
|
-
if (selectedColumn) {
|
|
254
|
-
this._columnList.setSelection({ label: selectedColumn.label }, true);
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
this._columnList.setSelection(undefined);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
this._columnList.setSelection(undefined);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
compareWords(column, searchingText) {
|
|
266
|
-
if (core.StringUtils.replaceAccentuatedChars(column.label).indexOf(core.StringUtils.replaceAccentuatedChars(searchingText)) > -1) {
|
|
267
|
-
return true;
|
|
268
|
-
}
|
|
269
|
-
return false;
|
|
270
|
-
}
|
|
271
|
-
closeConfig() {
|
|
272
|
-
this._columnListHistory = [];
|
|
273
|
-
this.configCancel.emit();
|
|
274
|
-
}
|
|
275
|
-
/* Handlers */
|
|
276
|
-
handleTabChange(ev) {
|
|
277
|
-
var _a;
|
|
278
|
-
if ((_a = ev === null || ev === void 0 ? void 0 : ev.target) === null || _a === void 0 ? void 0 : _a.selectedTab) {
|
|
279
|
-
if (ev.target.selectedTab === "Ordenação das linhas") {
|
|
280
|
-
this._columnListHistory = this._columnList.dataSource;
|
|
281
|
-
this.createOrderList();
|
|
282
|
-
}
|
|
283
|
-
this.selectedTab = ev.target.selectedTab;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
handleColumnListChange(ev) {
|
|
287
|
-
var _a;
|
|
288
|
-
if (ev.detail) {
|
|
289
|
-
let visibleItems = (_a = ev.detail.find(group => group.group === "Visíveis")) === null || _a === void 0 ? void 0 : _a.items;
|
|
290
|
-
if (visibleItems) {
|
|
291
|
-
this._orderListItems = visibleItems;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
componentWillRender() {
|
|
296
|
-
var _a;
|
|
297
|
-
if (((_a = this.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
298
|
-
this.createColumnList();
|
|
299
|
-
this.createOrderList();
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
componentDidRender() {
|
|
303
|
-
var _a;
|
|
304
|
-
if (((_a = this.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
305
|
-
this.locateColumn(new KeyboardEvent("arrow-right", { key: "ArrowRight" }), this._searchElement.value);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
render() {
|
|
309
|
-
return (index.h(index.Host, null, index.h("div", { class: "grid-config__header" }, index.h("div", { class: "title-container" }, index.h("div", { class: "" }, index.h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), index.h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), index.h("div", { class: "button-close" }, index.h("ez-button", { mode: 'icon', image: AssetsUtils.getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), index.h("div", { class: "tabselector-container" }, index.h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), index.h("div", null, index.h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, index.h("ez-icon", { slot: "leftIcon", size: "medium", href: AssetsUtils.getSpritePath("search") })))), index.h("div", { class: "grid-config__main" }, index.h("ez-list", { ref: (el) => this._columnList = el, class: this.selectedTab === "Colunas" ? "" : "hidden", dataSource: this._columListItems, onEzChange: ev => this.handleColumnListChange(ev), ezDraggable: true, ezSelectable: true, itemSlotBuilder: (item, group) => this.buildColumnListSlot(item, group), useGroups: true }), index.h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), index.h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), index.h("div", { class: "grid-config__footer" }, index.h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), index.h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
|
|
310
|
-
}
|
|
311
|
-
static get assetsDirs() { return ["../assets"]; }
|
|
312
|
-
};
|
|
313
|
-
GridConfig.style = gridConfigCss;
|
|
314
|
-
|
|
315
|
-
exports.ez_modal = EzModal;
|
|
316
|
-
exports.grid_config = GridConfig;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-682c98b2.js');
|
|
6
|
-
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-75ca9c64.js');
|
|
8
|
-
|
|
9
|
-
const ezNumberInputCss = ":host{display:block;width:100%}";
|
|
10
|
-
|
|
11
|
-
const EzNumberInput = class {
|
|
12
|
-
constructor(hostRef) {
|
|
13
|
-
index.registerInstance(this, hostRef);
|
|
14
|
-
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
15
|
-
/**
|
|
16
|
-
* Deixa o campo disponível ou não para uso.
|
|
17
|
-
*/
|
|
18
|
-
this.enabled = true;
|
|
19
|
-
}
|
|
20
|
-
setLabel() {
|
|
21
|
-
this._textInput.label = this.label;
|
|
22
|
-
}
|
|
23
|
-
setErrorMessage() {
|
|
24
|
-
this._textInput.errorMessage = this.errorMessage;
|
|
25
|
-
}
|
|
26
|
-
applyValueToInput() {
|
|
27
|
-
if (this._textInput) {
|
|
28
|
-
this._textInput.value = this.getTextValue(this.value);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Realiza o foco no componente de input
|
|
33
|
-
*/
|
|
34
|
-
async setFocus() {
|
|
35
|
-
this._textInput.setFocus();
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Remove o foco no componente de input
|
|
39
|
-
*/
|
|
40
|
-
async setBlur() {
|
|
41
|
-
this._textInput.setBlur();
|
|
42
|
-
}
|
|
43
|
-
changeValue(newValue) {
|
|
44
|
-
this.errorMessage = "";
|
|
45
|
-
if (newValue && newValue !== this.value) {
|
|
46
|
-
this.value = newValue;
|
|
47
|
-
this.ezChange.emit(this.value);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
parseNumber() {
|
|
51
|
-
const parsedNumber = this._textInput.value ? core.NumberUtils.stringToNumber(this._textInput.value) : null;
|
|
52
|
-
if (parsedNumber != null && isNaN(parsedNumber)) {
|
|
53
|
-
this.errorMessage = "O valor digitado não é um número válido";
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
try {
|
|
57
|
-
this.changeValue(parsedNumber);
|
|
58
|
-
}
|
|
59
|
-
catch (e) {
|
|
60
|
-
this.errorMessage = e.message;
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
getTextValue(value) {
|
|
66
|
-
if (value) {
|
|
67
|
-
return this.precision > 0 ? core.NumberUtils.format(value.toString(), Number(this.precision), Number(this.prettyPrecision)) : value.toString();
|
|
68
|
-
}
|
|
69
|
-
return null;
|
|
70
|
-
}
|
|
71
|
-
componentDidLoad() {
|
|
72
|
-
CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
73
|
-
}
|
|
74
|
-
render() {
|
|
75
|
-
return (index.h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage }));
|
|
76
|
-
}
|
|
77
|
-
get _elem() { return index.getElement(this); }
|
|
78
|
-
static get watchers() { return {
|
|
79
|
-
"label": ["setLabel"],
|
|
80
|
-
"errorMessage": ["setErrorMessage"],
|
|
81
|
-
"value": ["applyValueToInput"]
|
|
82
|
-
}; }
|
|
83
|
-
};
|
|
84
|
-
EzNumberInput.style = ezNumberInputCss;
|
|
85
|
-
|
|
86
|
-
exports.ez_number_input = EzNumberInput;
|