@sankhyalabs/sankhyablocks 1.1.27 → 1.3.0
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 +3 -3
- package/dist/cjs/sankhyablocks.cjs.js +3 -3
- package/dist/cjs/snk-application.cjs.entry.js +954 -656
- package/dist/collection/collection-manifest.json +6 -35
- package/dist/collection/components/snk-application/snk-application.css +5 -5
- package/dist/collection/components/snk-application/snk-application.js +492 -495
- 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 +945 -647
- package/dist/esm/index-72d4e2e0.js +709 -0
- package/dist/esm/loader.js +3 -3
- 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 +3 -3
- package/dist/esm/snk-application.entry.js +916 -618
- 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/components.d.ts +6 -2
- 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-bd004f63.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-6ac5268e.js +0 -1769
- 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-98074c9c.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-df166135.js +0 -1738
- 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-08e1cded.entry.js +0 -1
- package/dist/sankhyablocks/p-0a77ac95.entry.js +0 -57
- package/dist/sankhyablocks/p-112455b1.js +0 -1
- package/dist/sankhyablocks/p-126c4aaa.entry.js +0 -1
- package/dist/sankhyablocks/p-1421b89a.entry.js +0 -1
- package/dist/sankhyablocks/p-1beadcaf.entry.js +0 -1
- package/dist/sankhyablocks/p-1c423f5d.entry.js +0 -1
- package/dist/sankhyablocks/p-28a0dbf0.entry.js +0 -1
- package/dist/sankhyablocks/p-4763d5c2.js +0 -1
- package/dist/sankhyablocks/p-4c66200a.entry.js +0 -1
- package/dist/sankhyablocks/p-5dc772be.entry.js +0 -1
- package/dist/sankhyablocks/p-5ff3e300.entry.js +0 -1
- package/dist/sankhyablocks/p-7122cec4.entry.js +0 -1
- package/dist/sankhyablocks/p-811b4b9d.js +0 -1
- package/dist/sankhyablocks/p-813fe4f7.js +0 -1
- package/dist/sankhyablocks/p-9b33a005.entry.js +0 -1
- package/dist/sankhyablocks/p-9e22ec87.entry.js +0 -1
- package/dist/sankhyablocks/p-9f7239df.entry.js +0 -1
- package/dist/sankhyablocks/p-9f7e6e48.js +0 -1
- package/dist/sankhyablocks/p-a47e0537.entry.js +0 -1
- package/dist/sankhyablocks/p-a9aba60a.entry.js +0 -1
- package/dist/sankhyablocks/p-afda7940.entry.js +0 -1
- package/dist/sankhyablocks/p-b3a83eaf.entry.js +0 -1
- package/dist/sankhyablocks/p-b96a8d40.entry.js +0 -1
- package/dist/sankhyablocks/p-c61c0e40.entry.js +0 -1
- package/dist/sankhyablocks/p-ca29d028.entry.js +0 -1
- package/dist/sankhyablocks/p-cd17abb1.entry.js +0 -1
- package/dist/sankhyablocks/p-d3a5366d.entry.js +0 -369
- package/dist/sankhyablocks/p-d5703a41.entry.js +0 -1
- package/dist/sankhyablocks/p-e5f77a59.entry.js +0 -1
- package/dist/sankhyablocks/p-e9e94d51.entry.js +0 -1
package/dist/node_modules/@sankhyalabs/ezui/dist/collection/components/ez-upload/ez-upload.css
DELETED
|
@@ -1,568 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
|
|
3
|
-
/* dimensions */
|
|
4
|
-
/*@doc Define a altura do componente.*/
|
|
5
|
-
--ez-upload--height: 42px;
|
|
6
|
-
/*@doc Define a largura do componente.*/
|
|
7
|
-
--ez-upload--width: 100%;
|
|
8
|
-
/*@doc Define a largura do slot que contém o ícone.*/
|
|
9
|
-
--ez-upload__icon--width: 48px;
|
|
10
|
-
|
|
11
|
-
/* box--container */
|
|
12
|
-
/*@doc Define a cor de fundo do container.*/
|
|
13
|
-
--ez-upload__container--background-color: var(--background--medium, #d2dce9);
|
|
14
|
-
|
|
15
|
-
/* colors */
|
|
16
|
-
/*@doc Define a cor de fundo do container.*/
|
|
17
|
-
--ez-upload__color--primary: var(--color--primary, #008561);
|
|
18
|
-
|
|
19
|
-
/* espaçamento */
|
|
20
|
-
/*@doc Define os espaçamentos extra pequenos no componente.*/
|
|
21
|
-
--ez-upload--padding--extra-small: var(--space--extra-small, 3px);
|
|
22
|
-
/*@doc Define os espaçamentos pequenos no componente.*/
|
|
23
|
-
--ez-upload--padding--small: var(--space--small, 6px);
|
|
24
|
-
/*@doc Define os espaçamentos médios no componente.*/
|
|
25
|
-
--ez-upload--padding--medium: var(--space--medium, 12px);
|
|
26
|
-
/*@doc Define os espaçamentos grandes no componente.*/
|
|
27
|
-
--ez-upload--padding--large: var(--space--large, 24px);
|
|
28
|
-
|
|
29
|
-
/* border */
|
|
30
|
-
/*@doc Define a cor das bordas no componente.*/
|
|
31
|
-
--ez-upload__border--color: var(--color-strokes, #DCE0E8);
|
|
32
|
-
|
|
33
|
-
/* text */
|
|
34
|
-
/*@doc Define as sombras dos textos do componente.*/
|
|
35
|
-
--ez-upload--text-shadow: var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);
|
|
36
|
-
/*@doc Define a cor dos textos do componente.*/
|
|
37
|
-
--ez-upload--text--primary: var(--text-primary, #626e82);
|
|
38
|
-
/*@doc Define o tamanho dos textos do componente.*/
|
|
39
|
-
--ez-upload--font-size: var(--text--medium, 14px);
|
|
40
|
-
/*@doc Define a família dos textos do componente.*/
|
|
41
|
-
--ez-upload--font-family: var(--font-pattern, Arial);
|
|
42
|
-
/*@doc Define o peso dos textos do componente.*/
|
|
43
|
-
--ez-upload--font-weight: var(--text-weight--large, 500);
|
|
44
|
-
|
|
45
|
-
/*@doc Contém o ícone de cancelamento.*/
|
|
46
|
-
--ez-upload__btn__cancel-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="8x" width="8px"><path d="M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z"/></svg>');
|
|
47
|
-
/*@doc Contém o ícone de arquivo.*/
|
|
48
|
-
--ez-upload__file-icon-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="11x" width="9px"><path d="M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z"/></svg>');
|
|
49
|
-
|
|
50
|
-
/*private*/
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-wrap: wrap;
|
|
53
|
-
position: relative;
|
|
54
|
-
|
|
55
|
-
/*public*/
|
|
56
|
-
font-family: var(--ez-upload--font-family);
|
|
57
|
-
font-size: var(--ez-upload--font-size);
|
|
58
|
-
width: var(--ez-upload--width);
|
|
59
|
-
font-weight: var(--ez-upload--font-weight);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.iu {
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-wrap: wrap;
|
|
65
|
-
background-color: var(--ez-upload__container--background-color);
|
|
66
|
-
padding: var(--ez-upload--padding--small);
|
|
67
|
-
width: 100%;
|
|
68
|
-
border-radius: 12px;
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.iu__container {
|
|
73
|
-
width: 100%;
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-wrap: wrap;
|
|
76
|
-
justify-content: center;
|
|
77
|
-
align-items: center;
|
|
78
|
-
border: 2px dashed var(--ez-upload__border--color);
|
|
79
|
-
border-radius: 6px;
|
|
80
|
-
box-sizing: border-box;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.iu__footer {
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-wrap: wrap;
|
|
86
|
-
justify-content: flex-start;
|
|
87
|
-
width: 100%;
|
|
88
|
-
padding: 0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);
|
|
89
|
-
box-sizing: border-box;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.iu__item {
|
|
93
|
-
display: flex;
|
|
94
|
-
width: 100%;
|
|
95
|
-
justify-content: flex-start;
|
|
96
|
-
align-items: center;
|
|
97
|
-
align-self: center;
|
|
98
|
-
padding-bottom: var(--ez-upload--padding--extra-small);
|
|
99
|
-
box-sizing: border-box;
|
|
100
|
-
white-space: nowrap;
|
|
101
|
-
overflow: hidden;
|
|
102
|
-
text-overflow: ellipsis;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.iu__item-label {
|
|
106
|
-
display: flex;
|
|
107
|
-
max-width: 80%;
|
|
108
|
-
align-self: stretch;
|
|
109
|
-
align-items: center;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.file__name {
|
|
113
|
-
font-weight: 200;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.box__content {
|
|
117
|
-
width: 100%;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
align-items: center;
|
|
120
|
-
height: 100%;
|
|
121
|
-
border: 1px dashed var(--ez-upload__border--color);
|
|
122
|
-
border-radius: 6px;
|
|
123
|
-
box-sizing: border-box;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.box__container {
|
|
127
|
-
display: flex;
|
|
128
|
-
flex-wrap: wrap;
|
|
129
|
-
background-color: var(--ez-upload__container--background-color);
|
|
130
|
-
padding: 6px;
|
|
131
|
-
width: 100%;
|
|
132
|
-
border-radius: 12px;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/* LINK WITH DOWNLOAD URL */
|
|
136
|
-
a:-webkit-any-link {
|
|
137
|
-
color: #008561;
|
|
138
|
-
fill: #008561;
|
|
139
|
-
cursor: pointer;
|
|
140
|
-
text-decoration: none;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/* PROGRESS BAR */
|
|
144
|
-
progress[value] {
|
|
145
|
-
display: flex;
|
|
146
|
-
width: 100%;
|
|
147
|
-
appearance: none;
|
|
148
|
-
border: 1px solid var(--ez-upload__border--color);
|
|
149
|
-
height: 12px;
|
|
150
|
-
justify-content: flex-start;
|
|
151
|
-
align-items: center;
|
|
152
|
-
border-radius: 3px;
|
|
153
|
-
position: relative;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
progress[value]::-webkit-progress-bar {
|
|
157
|
-
display: flex;
|
|
158
|
-
-webkit-appearance: none;
|
|
159
|
-
width: 100%;
|
|
160
|
-
background-color: rgb(255, 255, 255);
|
|
161
|
-
border-radius: 2px;
|
|
162
|
-
padding: 2px;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
progress[value]::-webkit-progress-value {
|
|
166
|
-
display: flex;
|
|
167
|
-
width: 100%;
|
|
168
|
-
background-color: var(--ez-upload__color--primary);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.text--center {
|
|
172
|
-
text-align: center;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.align--middle {
|
|
176
|
-
align-self: center;
|
|
177
|
-
align-items: center;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.text {
|
|
181
|
-
font-family: "Sora", "Algerian";
|
|
182
|
-
text-shadow: 0 0 0 #353535, 0 0 1px transparent;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.text--primary {
|
|
186
|
-
color: var(--ez-upload--text--primary);
|
|
187
|
-
text-shadow: var(--ez-upload--text-shadow);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.text--ellipsis {
|
|
191
|
-
white-space: nowrap;
|
|
192
|
-
overflow: hidden;
|
|
193
|
-
text-overflow: ellipsis;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.text--medium {
|
|
197
|
-
font-size: 14px;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.text--small {
|
|
201
|
-
font-size: 12px;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.btn-cancel {
|
|
205
|
-
outline: none;
|
|
206
|
-
border: none;
|
|
207
|
-
background-color: unset;
|
|
208
|
-
cursor: pointer;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.btn-cancel::after {
|
|
212
|
-
content: '';
|
|
213
|
-
display: flex;
|
|
214
|
-
background-color: var(--text--primary, #008561);
|
|
215
|
-
width: 8px;
|
|
216
|
-
height: 8px;
|
|
217
|
-
-webkit-mask-image: var(--ez-upload__btn__cancel-image);
|
|
218
|
-
mask-image: var(--ez-upload__btn__cancel-image);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.iu_header {
|
|
222
|
-
display: flex;
|
|
223
|
-
flex-direction: column;
|
|
224
|
-
width: 100%;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.iu__label {
|
|
228
|
-
padding: var(--space--small);
|
|
229
|
-
box-sizing: border-box;
|
|
230
|
-
overflow: hidden;
|
|
231
|
-
text-overflow: ellipsis;
|
|
232
|
-
white-space: nowrap;
|
|
233
|
-
|
|
234
|
-
/*public*/
|
|
235
|
-
font-family: var(--ez-upload--font-family);
|
|
236
|
-
font-size: var(--text--extra-small);
|
|
237
|
-
font-weight: var(--ez-upload--font-weight);
|
|
238
|
-
color: var(--ez-upload--text--primary);
|
|
239
|
-
text-shadow: var(--ez-upload--text-shadow);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.iu__file-icon {
|
|
243
|
-
outline: none;
|
|
244
|
-
border: none;
|
|
245
|
-
background-color: unset;
|
|
246
|
-
cursor: pointer;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.iu__file-icon:disabled {
|
|
250
|
-
cursor: unset;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.iu__file-icon::after {
|
|
254
|
-
content: '';
|
|
255
|
-
display: flex;
|
|
256
|
-
background-color: var(--text--primary, #626e82);
|
|
257
|
-
width: 9px;
|
|
258
|
-
height: 11px;
|
|
259
|
-
-webkit-mask-image: var(--ez-upload__file-icon-image);
|
|
260
|
-
mask-image: var(--ez-upload__file-icon-image);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.iu__file-icon:disabled::after {
|
|
264
|
-
background-color: var(--text--disable, #AFB6C0);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
.iu__icon-label {
|
|
268
|
-
justify-content: center;
|
|
269
|
-
display: flex;
|
|
270
|
-
cursor: pointer;
|
|
271
|
-
padding: var(--ez-upload--padding--large) 0px;
|
|
272
|
-
box-sizing: border-box;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.background--disabled {
|
|
276
|
-
background-color: var(--color--disable-secondary, #F2F5F8);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.text--disabled {
|
|
280
|
-
color: var(--text--disable, #AFB6C0);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.mouse-pointer--disabled {
|
|
284
|
-
cursor: unset;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.appearanceNone{
|
|
288
|
-
width: 0px;
|
|
289
|
-
height: 0px;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
/* //////// GRID SYSTEM //////// */
|
|
294
|
-
|
|
295
|
-
.row {
|
|
296
|
-
width: 100%;
|
|
297
|
-
display: flex;
|
|
298
|
-
flex-wrap: wrap;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.col {
|
|
302
|
-
display: flex;
|
|
303
|
-
flex-wrap: wrap;
|
|
304
|
-
align-self: flex-start;
|
|
305
|
-
box-sizing: border-box;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.col--stretch {
|
|
309
|
-
align-self: stretch;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.col--undefined {
|
|
313
|
-
width: unset;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.col--nowrap {
|
|
317
|
-
flex-wrap: nowrap;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
@media screen and (min-width: 320px) {
|
|
321
|
-
.col--sd-1 {
|
|
322
|
-
width: 8.33333%;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.col--sd-2 {
|
|
326
|
-
width: 16.66667%;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.col--sd-3 {
|
|
330
|
-
width: 25%;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.col--sd-4 {
|
|
334
|
-
width: 33.33333%;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.col--sd-5 {
|
|
338
|
-
width: 41.66667%;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.col--sd-6 {
|
|
342
|
-
width: 50%;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.col--sd-7 {
|
|
346
|
-
width: 58.33333%;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.col--sd-8 {
|
|
350
|
-
width: 66.66667%;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.col--sd-9 {
|
|
354
|
-
width: 75%;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.col--sd-10 {
|
|
358
|
-
width: 83.33333%;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.col--sd-11 {
|
|
362
|
-
width: 91.66667%;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.col--sd-12 {
|
|
366
|
-
width: 100%;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
@media screen and (min-width: 480px) {
|
|
371
|
-
.col--pn-1 {
|
|
372
|
-
width: 8.33333%;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.col--pn-2 {
|
|
376
|
-
width: 16.66667%;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.col--pn-3 {
|
|
380
|
-
width: 25%;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.col--pn-4 {
|
|
384
|
-
width: 33.33333%;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
.col--pn-5 {
|
|
388
|
-
width: 41.66667%;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.col--pn-6 {
|
|
392
|
-
width: 50%;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.col--pn-7 {
|
|
396
|
-
width: 58.33333%;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.col--pn-8 {
|
|
400
|
-
width: 66.66667%;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.col--pn-9 {
|
|
404
|
-
width: 75%;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.col--pn-10 {
|
|
408
|
-
width: 83.33333%;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.col--pn-11 {
|
|
412
|
-
width: 91.66667%;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.col--pn-12 {
|
|
416
|
-
width: 100%;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
@media screen and (min-width: 768px) {
|
|
421
|
-
.col--tb-1 {
|
|
422
|
-
width: 8.33333%;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.col--tb-2 {
|
|
426
|
-
width: 16.66667%;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.col--tb-3 {
|
|
430
|
-
width: 25%;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.col--tb-4 {
|
|
434
|
-
width: 33.33333%;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.col--tb-5 {
|
|
438
|
-
width: 41.66667%;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
.col--tb-6 {
|
|
442
|
-
width: 50%;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.col--tb-7 {
|
|
446
|
-
width: 58.33333%;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.col--tb-8 {
|
|
450
|
-
width: 66.66667%;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.col--tb-9 {
|
|
454
|
-
width: 75%;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.col--tb-10 {
|
|
458
|
-
width: 83.33333%;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.col--tb-11 {
|
|
462
|
-
width: 91.66667%;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.col--tb-12 {
|
|
466
|
-
width: 100%;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
@media screen and (min-width: 992px) {
|
|
471
|
-
.col--md-1 {
|
|
472
|
-
width: 8.33333%;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.col--md-2 {
|
|
476
|
-
width: 16.66667%;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.col--md-3 {
|
|
480
|
-
width: 25%;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
.col--md-4 {
|
|
484
|
-
width: 33.33333%;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.col--md-5 {
|
|
488
|
-
width: 41.66667%;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.col--md-6 {
|
|
492
|
-
width: 50%;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.col--md-7 {
|
|
496
|
-
width: 58.33333%;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.col--md-8 {
|
|
500
|
-
width: 66.66667%;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.col--md-9 {
|
|
504
|
-
width: 75%;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.col--md-10 {
|
|
508
|
-
width: 83.33333%;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.col--md-11 {
|
|
512
|
-
width: 91.66667%;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.col--md-12 {
|
|
516
|
-
width: 100%;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
@media screen and (min-width: 1200px) {
|
|
521
|
-
.col--ld-1 {
|
|
522
|
-
width: 8.33333%;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
.col--ld-2 {
|
|
526
|
-
width: 16.66667%;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
.col--ld-3 {
|
|
530
|
-
width: 25%;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.col--ld-4 {
|
|
534
|
-
width: 33.33333%;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.col--ld-5 {
|
|
538
|
-
width: 41.66667%;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
.col--ld-6 {
|
|
542
|
-
width: 50%;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
.col--ld-7 {
|
|
546
|
-
width: 58.33333%;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
.col--ld-8 {
|
|
550
|
-
width: 66.66667%;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.col--ld-9 {
|
|
554
|
-
width: 75%;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.col--ld-10 {
|
|
558
|
-
width: 83.33333%;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
.col--ld-11 {
|
|
562
|
-
width: 91.66667%;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
.col--ld-12 {
|
|
566
|
-
width: 100%;
|
|
567
|
-
}
|
|
568
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as e,H as o}from"./p-9f7e6e48.js";import{g as d}from"./p-4763d5c2.js";import{StringUtils as l}from"@sankhyalabs/core";const a=class{constructor(e){i(this,e),this.ezCloseModal=t(this,"ezCloseModal",7),this.opened=!0,this.closeEsc=!1,this.closeOutsideClick=!1,this.handleKeyboardEvent=i=>{"Escape"===(null==i?void 0:i.key)&&this.closeEsc&&this.closeModal()}}handleopenedChange(){this.opened?document.addEventListener("keydown",this.handleKeyboardEvent):document.removeEventListener("keydown",this.handleKeyboardEvent)}closeModal(){this.opened=!1,this.ezCloseModal.emit(this.opened)}componentDidLoad(){this.handleopenedChange()}onMouseDownHandler(i){this.closeOutsideClick&&i.target===this._overlay&&this.closeModal()}render(){const i="left"===this.align?"left":"right";return e(o,null,this.opened?e("div",{class:"modal",onMouseDown:i=>this.onMouseDownHandler(i)},e("div",{class:`modal__container modal__container--${i}`,ref:i=>this._overlay=i},e("div",{class:`modal__content modal__content--${i} ${this.modalSize}`},e("slot",null)))):void 0)}static get watchers(){return{opened:["handleopenedChange"]}}};a.style=":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%}}";const s=class{constructor(e){i(this,e),this.configFinish=t(this,"configFinish",7),this.configCancel=t(this,"configCancel",7),this._columnListHistory=[],this._orderListItems=[],this._columListItems=[],this.selectedTab="Colunas",this._selectedIndex=-1}createOrderList(){var i;let t=[];(null===(i=this._columnListHistory)||void 0===i?void 0:i.length)>0?this._columnListHistory.find((i=>"Visíveis"===i.group)).items.forEach((i=>{t.push({label:i.label})})):this.columns.forEach((i=>{i.hidden||t.push({name:i.name,label:i.label})})),this._orderListItems=t}createColumnList(){let i={group:"Visíveis",items:[]},t={group:"Ocultas",items:[],sort:"ASC"};this.columns.forEach((e=>{let o={label:e.label};e.hidden?t.items.push(o):i.items.push(o)})),this._columnListHistory.length<=0&&(this._columListItems=[i,t])}buildColumnListSlot(i,t){return e("div",null,e("ez-check",{mode:"switch",id:"switch"+i+t,value:"Visíveis"===t.group,onEzChange:t=>{this.switchColumnGroup(t,i)}}))}buildOrderListSlot(i){let t=this.columns.find((t=>t.label===i.label));return e("div",null,e("select-box",{selectedOption:null==t?void 0:t.sort,key:"select-box"+i,onEzChange:t=>{t.stopPropagation(),this.updateOrder(t.detail,i)}}))}updateOrder(i,t){let e=[...this.columns],o=e.find((i=>i.label===t.label));o&&(o.sort=i.value),this.columns=e}switchColumnGroup(i,t){i.stopPropagation();let e=[...this._columListItems];if(!0===i.detail){let i=e.find((i=>"Ocultas"===i.group)),o=i.items.findIndex((i=>i.label===t.label));o>=0&&i.items.splice(o,1),e.find((i=>"Visíveis"===i.group)).items.push(t),this._columListItems=e,this.createOrderList()}else if(!1===i.detail){let i=e.find((i=>"Visíveis"===i.group)),o=i.items.findIndex((i=>i.label===t.label));o>=0&&i.items.splice(o,1),e.find((i=>"Ocultas"===i.group)).items.push(t),this._columListItems=e,this.createOrderList()}}finish(){let i=[];this._columListItems.forEach((t=>{t.items.forEach((e=>{const o=this.columns.find((i=>i.label===e.label));let d=Object.assign({},o);d.hidden="Ocultas"===t.group,i.push(d)}))})),this._columnListHistory=[],this.columns=i,this.configFinish.emit(this.columns)}async locateColumn(i,t){var e;const o="Enter"===i.key;t||(t=null===(e=i.currentTarget)||void 0===e?void 0:e.value);let d=-1;if("Ordenação das linhas"===this.selectedTab)if(t){const i=[];let e,l;if(await this._orderList.getList().then((o=>{e=o,e.forEach(((e,o)=>{this.compareWords(e,t)&&i.push(o)}))})),i.length>0){if(o)for(let t=0;t<i.length;t++)if(i[t]>this._selectedIndex){d=i[t];break}-1===d&&(d=i[0])}this._selectedIndex=d,l=e[d],l?this._orderList.setSelection({label:l.label},!0):this._orderList.setSelection(void 0)}else this._orderList.setSelection(void 0);else if(t){const i=[];if(this.columns.forEach(((e,o)=>{this.compareWords(e,t)&&i.push(o)})),i.length>0){if(o)for(let t=0;t<i.length;t++)if(i[t]>this._selectedIndex){d=i[t];break}-1===d&&(d=i[0])}this._selectedIndex=d;let e=this.columns[d];e?this._columnList.setSelection({label:e.label},!0):this._columnList.setSelection(void 0)}else this._columnList.setSelection(void 0)}compareWords(i,t){return l.replaceAccentuatedChars(i.label).indexOf(l.replaceAccentuatedChars(t))>-1}closeConfig(){this._columnListHistory=[],this.configCancel.emit()}handleTabChange(i){var t;(null===(t=null==i?void 0:i.target)||void 0===t?void 0:t.selectedTab)&&("Ordenação das linhas"===i.target.selectedTab&&(this._columnListHistory=this._columnList.dataSource,this.createOrderList()),this.selectedTab=i.target.selectedTab)}handleColumnListChange(i){var t;if(i.detail){let e=null===(t=i.detail.find((i=>"Visíveis"===i.group)))||void 0===t?void 0:t.items;e&&(this._orderListItems=e)}}componentWillRender(){var i;(null===(i=this.columns)||void 0===i?void 0:i.length)>0&&(this.createColumnList(),this.createOrderList())}componentDidRender(){var i;(null===(i=this.columns)||void 0===i?void 0:i.length)>0&&this.locateColumn(new KeyboardEvent("arrow-right",{key:"ArrowRight"}),this._searchElement.value)}render(){return e(o,null,e("div",{class:"grid-config__header"},e("div",{class:"title-container"},e("div",{class:""},e("label",{class:"title"},"Configuração da Grade"),e("label",{class:"subtitle"},"Defina visibilidade e ordem das colunas.")),e("div",{class:"button-close"},e("ez-button",{mode:"icon",image:d("close"),size:"medium",onClick:()=>this.closeConfig()}))),e("div",{class:"tabselector-container"},e("ez-tabselector",{selectedTab:this.selectedTab,selectedIndex:0,onEzChange:i=>{this.handleTabChange(i)},tabs:"Colunas, Ordenação das linhas"})),e("div",null,e("ez-text-input",{ref:i=>this._searchElement=i,label:"Localizar coluna",onKeyUp:i=>this.locateColumn(i)},e("ez-icon",{slot:"leftIcon",size:"medium",href:d("search")})))),e("div",{class:"grid-config__main"},e("ez-list",{ref:i=>this._columnList=i,class:"Colunas"===this.selectedTab?"":"hidden",dataSource:this._columListItems,onEzChange:i=>this.handleColumnListChange(i),ezDraggable:!0,ezSelectable:!0,itemSlotBuilder:(i,t)=>this.buildColumnListSlot(i,t),useGroups:!0}),e("div",{class:"Ordenação das linhas"===this.selectedTab?"group-name":"hidden"},"Sequência da ordenação"),e("ez-list",{ref:i=>this._orderList=i,class:"Ordenação das linhas"===this.selectedTab?"heigth-calc":"hidden",dataSource:this._orderListItems,ezSelectable:!0,ezDraggable:!0,itemSlotBuilder:i=>this.buildOrderListSlot(i)})),e("div",{class:"grid-config__footer"},e("ez-button",{class:"padding-right--medium",label:"Cancelar",onClick:()=>this.closeConfig()}),e("ez-button",{label:"Concluir",class:"button--primary",onClick:()=>this.finish()})))}static get assetsDirs(){return["../assets"]}};s.style='.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)}';export{a as ez_modal,s as grid_config}
|