@sankhyalabs/ezui 1.1.81 → 1.1.84
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/README.md +2 -1
- package/dist/cjs/ApplicationUtils-d1c1db56.js +35 -0
- package/dist/cjs/{AssetsUtils-02db4f46.js → AssetsUtils-caf95dab.js} +1 -1
- package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/{ez-grid.cjs.entry.js → ez-button_11.cjs.entry.js} +1448 -22
- package/dist/cjs/ez-calendar.cjs.entry.js +217 -0
- package/dist/cjs/ez-collapsible-box_7.cjs.entry.js +853 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +254 -0
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +722 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +2 -2
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +3 -3
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/{index-2003dec4.js → index-0bce1636.js} +3 -0
- package/dist/cjs/{index-4fc4a0a4.js → index-789fa661.js} +56 -42
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +19 -25
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +10 -7
- package/dist/collection/components/ez-grid/ez-grid.css +4 -1
- package/dist/collection/components/ez-grid/ez-grid.js +4 -0
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +1 -1
- package/dist/collection/components/test-du/test-du.js +3 -27
- package/dist/custom-elements/index.js +79 -85
- package/dist/esm/ApplicationUtils-01280a9d.js +33 -0
- package/dist/esm/{AssetsUtils-76ca41e1.js → AssetsUtils-9b1d9c38.js} +1 -1
- package/dist/esm/ez-action-chip.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/{ez-grid.entry.js → ez-button_11.entry.js} +1428 -12
- package/dist/esm/ez-calendar.entry.js +213 -0
- package/dist/esm/ez-collapsible-box_7.entry.js +843 -0
- package/dist/esm/ez-combo-box.entry.js +250 -0
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +718 -0
- package/dist/esm/ez-label-chip.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +2 -2
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +3 -3
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ezui.js +2 -2
- package/dist/esm/{index-e31373d9.js → index-461f1302.js} +57 -43
- package/dist/esm/{index-077c7fcf.js → index-d80a8d1f.js} +3 -0
- package/dist/esm/loader.js +2 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-57ea4b84.entry.js → p-091b27f2.entry.js} +1 -1
- package/dist/ezui/{p-6d157776.entry.js → p-19d8a928.entry.js} +1 -1
- package/dist/ezui/{p-a4a39579.entry.js → p-39218c31.entry.js} +1 -1
- package/dist/ezui/{p-da31cd21.entry.js → p-6206515e.entry.js} +1 -1
- package/dist/ezui/p-7107d7ef.js +1 -0
- package/dist/ezui/{p-7de3c95d.js → p-7c101b34.js} +1 -1
- package/dist/ezui/p-7c4d4946.js +1 -0
- package/dist/ezui/p-88e84ff2.entry.js +1 -0
- package/dist/ezui/p-8b7a4a16.entry.js +1 -0
- package/dist/ezui/p-9f98c4d1.entry.js +1 -0
- package/dist/ezui/{p-920bb8c9.entry.js → p-a52b3368.entry.js} +1 -1
- package/dist/ezui/p-b1d7488d.entry.js +1 -0
- package/dist/ezui/{p-0a2056d9.entry.js → p-b678dc80.entry.js} +1 -1
- package/dist/ezui/{p-1c8d64d0.entry.js → p-ca6240ff.entry.js} +46 -46
- package/dist/ezui/{p-da63000f.entry.js → p-cc448554.entry.js} +1 -1
- package/dist/ezui/{p-aef3394b.entry.js → p-d93a3e2b.entry.js} +1 -1
- package/dist/ezui/p-f87c7082.js +1 -0
- package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +2 -1
- package/dist/types/components/test-du/test-du.d.ts +0 -6
- package/package.json +3 -3
- package/react/{readme.md → .keepfolder} +0 -0
- package/dist/cjs/ez-button_3.cjs.entry.js +0 -520
- package/dist/cjs/ez-calendar_14.cjs.entry.js +0 -2598
- package/dist/cjs/ez-icon.cjs.entry.js +0 -30
- package/dist/cjs/ez-modal_2.cjs.entry.js +0 -370
- package/dist/esm/ez-button_3.entry.js +0 -514
- package/dist/esm/ez-calendar_14.entry.js +0 -2581
- package/dist/esm/ez-icon.entry.js +0 -26
- package/dist/esm/ez-modal_2.entry.js +0 -365
- package/dist/ezui/p-1e36e3ff.entry.js +0 -1
- package/dist/ezui/p-446ec85b.js +0 -1
- package/dist/ezui/p-8b9ef58b.entry.js +0 -1
- package/dist/ezui/p-983bd291.js +0 -1
- package/dist/ezui/p-9dbf569a.entry.js +0 -1
- package/dist/ezui/p-d64a3939.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0bce1636.js');
|
|
6
6
|
|
|
7
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
8
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
require('./index-
|
|
5
|
+
const index = require('./index-0bce1636.js');
|
|
6
|
+
require('./index-789fa661.js');
|
|
7
7
|
const FloatingManager = require('./FloatingManager-6cfeb947.js');
|
|
8
8
|
|
|
9
9
|
const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible, 1);position:relative;display:flex;user-select:none;width:100%}.box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.box--fit-content{width:fit-content}.box--full-width{width:100%}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0bce1636.js');
|
|
6
6
|
|
|
7
7
|
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--most-visible, 3);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"'Sora', 'Algerian'\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;overflow-y:auto;height:100%;width:100%}.popup__header{padding-bottom:var(--ez-popup__header--padding-bottom);width:100%;display:flex}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.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%}}";
|
|
8
8
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
5
|
+
const index = require('./index-0bce1636.js');
|
|
6
|
+
const index$1 = require('./index-789fa661.js');
|
|
7
7
|
const CSSVarsUtils = require('./CSSVarsUtils-66e86394.js');
|
|
8
|
-
const AssetsUtils = require('./AssetsUtils-
|
|
8
|
+
const AssetsUtils = require('./AssetsUtils-caf95dab.js');
|
|
9
9
|
|
|
10
10
|
const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}";
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0bce1636.js');
|
|
6
6
|
|
|
7
7
|
const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:30%;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:\"Sora\", \"Algerian\";text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.message__conteiner--icon{padding-left:var(--ez-toast__icon--padding-left);width:80%}.btn-close{display:flex;justify-content:flex-end;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--oppened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@-webkit-keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}";
|
|
8
8
|
|
package/dist/cjs/ezui.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-0bce1636.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
6
|
Stencil Client Patch Browser v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ez-
|
|
18
|
+
return index.bootstrapLazy([["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-button_11.cjs",[[0,"test-du"],[2,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}],[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}],[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}],[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"setSelection":[64],"getSelection":[64],"getList":[64]}],[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"size":[513]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-tabselector",{"selectedIndex":[1537,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}],[1,"ez-icon",{"size":[513],"href":[513]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-combo-box.cjs",[[1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"_preSelection":[32],"_visibleOptions":[32]}]]],["ez-collapsible-box_7.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}],[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64]}]]]], options);
|
|
19
19
|
});
|
|
@@ -124,6 +124,9 @@ const attachStyles = (hostRef) => {
|
|
|
124
124
|
// DOM WRITE!!
|
|
125
125
|
elm['s-sc'] = scopeId;
|
|
126
126
|
elm.classList.add(scopeId + '-h');
|
|
127
|
+
if (flags & 2 /* scopedCssEncapsulation */) {
|
|
128
|
+
elm.classList.add(scopeId + '-s');
|
|
129
|
+
}
|
|
127
130
|
}
|
|
128
131
|
endAttachStyles();
|
|
129
132
|
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
|
+
|
|
5
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
6
|
+
return module = {
|
|
7
|
+
path: basedir,
|
|
8
|
+
exports: {},
|
|
9
|
+
require: function (path, base) {
|
|
10
|
+
return commonjsRequire();
|
|
11
|
+
}
|
|
12
|
+
}, fn(module, module.exports), module.exports;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function commonjsRequire () {
|
|
16
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
17
|
+
}
|
|
18
|
+
|
|
3
19
|
const NUMBERINPUTS_REGEX_SCIENTIFIC_PARTS = /^([+-])?(\d+).?(\d*)[eE]([-+]?\d+)$/;
|
|
4
20
|
/**
|
|
5
21
|
* `NumberUtils` é uma biblioteca para manipulação de números
|
|
@@ -574,6 +590,7 @@ exports.Action = void 0;
|
|
|
574
590
|
Action["DATA_SAVED"] = "dataSaved";
|
|
575
591
|
Action["RECORDS_REMOVED"] = "recordsRemoved";
|
|
576
592
|
Action["RECORDS_ADDED"] = "recordsAdded";
|
|
593
|
+
Action["RECORDS_COPIED"] = "recordsCopied";
|
|
577
594
|
Action["DATA_CHANGED"] = "dataChanged";
|
|
578
595
|
Action["EDITION_CANCELED"] = "editionCanceled";
|
|
579
596
|
Action["CHANGE_UNDONE"] = "changeUndone";
|
|
@@ -612,7 +629,6 @@ class StateManager {
|
|
|
612
629
|
}
|
|
613
630
|
process(action) {
|
|
614
631
|
const oldPresent = this._present;
|
|
615
|
-
let hasChange = false;
|
|
616
632
|
let hasHistChange = false;
|
|
617
633
|
this._histClean = false;
|
|
618
634
|
this._reducers.forEach(reducer => {
|
|
@@ -622,7 +638,6 @@ class StateManager {
|
|
|
622
638
|
const newSlice = reducer.reduce(this, oldSlice, action);
|
|
623
639
|
if (newSlice !== oldSlice) {
|
|
624
640
|
this.updateSlice(sliceName, newSlice, isHistoric);
|
|
625
|
-
hasChange = true;
|
|
626
641
|
hasHistChange || (hasHistChange = isHistoric);
|
|
627
642
|
}
|
|
628
643
|
});
|
|
@@ -631,16 +646,6 @@ class StateManager {
|
|
|
631
646
|
this._future = [];
|
|
632
647
|
document.dispatchEvent(new CustomEvent("undoableAction", { detail: this }));
|
|
633
648
|
}
|
|
634
|
-
if (hasChange) {
|
|
635
|
-
console.log(JSON.stringify(this, (_key, value) => {
|
|
636
|
-
if (value instanceof Map) {
|
|
637
|
-
return { dataType: "Map", value: Array.from(value.entries()) };
|
|
638
|
-
}
|
|
639
|
-
else {
|
|
640
|
-
return value;
|
|
641
|
-
}
|
|
642
|
-
}, 3));
|
|
643
|
-
}
|
|
644
649
|
}
|
|
645
650
|
select(sliceName, selector) {
|
|
646
651
|
const isHistoric = this.isHistoric(sliceName);
|
|
@@ -803,6 +808,7 @@ class AddedRecordsReducerImpl {
|
|
|
803
808
|
reduce(_stateManager, currentState, action) {
|
|
804
809
|
switch (action.type) {
|
|
805
810
|
case exports.Action.RECORDS_ADDED:
|
|
811
|
+
case exports.Action.RECORDS_COPIED:
|
|
806
812
|
return (currentState || []).concat(action.payload);
|
|
807
813
|
case exports.Action.DATA_SAVED:
|
|
808
814
|
case exports.Action.EDITION_CANCELED:
|
|
@@ -935,6 +941,7 @@ class SelectionReducerImpl {
|
|
|
935
941
|
reduce(stateManager, currentState, action) {
|
|
936
942
|
switch (action.type) {
|
|
937
943
|
case exports.Action.RECORDS_ADDED:
|
|
944
|
+
case exports.Action.RECORDS_COPIED:
|
|
938
945
|
return action.payload.map((r) => r.__record__id__);
|
|
939
946
|
case exports.Action.DATA_SAVED:
|
|
940
947
|
return updateSavedIds(stateManager, action.payload.records);
|
|
@@ -1062,6 +1069,7 @@ class DataUnit {
|
|
|
1062
1069
|
this._observers = [];
|
|
1063
1070
|
this._filterProviders = [];
|
|
1064
1071
|
this._sortingProvider = undefined;
|
|
1072
|
+
this._interceptors = [];
|
|
1065
1073
|
}
|
|
1066
1074
|
get name() {
|
|
1067
1075
|
return this._name;
|
|
@@ -1129,6 +1137,9 @@ class DataUnit {
|
|
|
1129
1137
|
});
|
|
1130
1138
|
}
|
|
1131
1139
|
// API
|
|
1140
|
+
addInterceptor(interceptor) {
|
|
1141
|
+
this._interceptors.push(interceptor);
|
|
1142
|
+
}
|
|
1132
1143
|
addFilterProvider(provider) {
|
|
1133
1144
|
this._filterProviders.push(provider);
|
|
1134
1145
|
}
|
|
@@ -1154,6 +1165,12 @@ class DataUnit {
|
|
|
1154
1165
|
addRecord() {
|
|
1155
1166
|
this.dispatchAction(exports.Action.RECORDS_ADDED, prepareAddedRecordId(this._stateManager, [{}]));
|
|
1156
1167
|
}
|
|
1168
|
+
copySelected() {
|
|
1169
|
+
const selectedRecords = this.getSelectedRecords();
|
|
1170
|
+
if (selectedRecords) {
|
|
1171
|
+
this.dispatchAction(exports.Action.RECORDS_COPIED, prepareAddedRecordId(this._stateManager, selectedRecords));
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1157
1174
|
removeSelectedRecords() {
|
|
1158
1175
|
const selection = getSelection(this._stateManager);
|
|
1159
1176
|
if (selection) {
|
|
@@ -1179,6 +1196,13 @@ class DataUnit {
|
|
|
1179
1196
|
setSelectionByIndex(selection) {
|
|
1180
1197
|
this.dispatchAction(exports.Action.SELECTION_CHANGED, { type: "index", selection });
|
|
1181
1198
|
}
|
|
1199
|
+
getSelectedRecords() {
|
|
1200
|
+
const selection = this.getSelection();
|
|
1201
|
+
if (selection) {
|
|
1202
|
+
const currentRecords = this.records;
|
|
1203
|
+
return currentRecords === null || currentRecords === void 0 ? void 0 : currentRecords.filter(r => selection.includes(r.__record__id__));
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1182
1206
|
nextRecord() {
|
|
1183
1207
|
this.dispatchAction(exports.Action.NEXT_SELECTED);
|
|
1184
1208
|
}
|
|
@@ -1211,10 +1235,17 @@ class DataUnit {
|
|
|
1211
1235
|
}
|
|
1212
1236
|
// Actions / State manager
|
|
1213
1237
|
dispatchAction(actionType, payload) {
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
this.
|
|
1217
|
-
|
|
1238
|
+
var _a;
|
|
1239
|
+
let action = new DataUnitAction(actionType, payload);
|
|
1240
|
+
(_a = this._interceptors) === null || _a === void 0 ? void 0 : _a.forEach(interceptor => {
|
|
1241
|
+
if (action) {
|
|
1242
|
+
action = interceptor.interceptAction(action);
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
if (action) {
|
|
1246
|
+
this._stateManager.process(action);
|
|
1247
|
+
this._observers.forEach(f => f(action));
|
|
1248
|
+
}
|
|
1218
1249
|
}
|
|
1219
1250
|
subscribe(observer) {
|
|
1220
1251
|
this._observers.push(observer);
|
|
@@ -1292,22 +1323,6 @@ var LoadType;
|
|
|
1292
1323
|
LoadType["APP_LOAD"] = "APP_LOAD";
|
|
1293
1324
|
})(LoadType || (LoadType = {}));
|
|
1294
1325
|
|
|
1295
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1296
|
-
|
|
1297
|
-
function createCommonjsModule(fn, basedir, module) {
|
|
1298
|
-
return module = {
|
|
1299
|
-
path: basedir,
|
|
1300
|
-
exports: {},
|
|
1301
|
-
require: function (path, base) {
|
|
1302
|
-
return commonjsRequire();
|
|
1303
|
-
}
|
|
1304
|
-
}, fn(module, module.exports), module.exports;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
function commonjsRequire () {
|
|
1308
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
1326
|
var browserPonyfill = createCommonjsModule(function (module, exports) {
|
|
1312
1327
|
var global = typeof self !== 'undefined' ? self : commonjsGlobal;
|
|
1313
1328
|
var __self__ = (function () {
|
|
@@ -2030,7 +2045,7 @@ exports.printError = printError;
|
|
|
2030
2045
|
|
|
2031
2046
|
|
|
2032
2047
|
|
|
2033
|
-
function
|
|
2048
|
+
function toNormalizedOptions(args) {
|
|
2034
2049
|
const firstArg = args[0];
|
|
2035
2050
|
|
|
2036
2051
|
if (firstArg == null || 'kind' in firstArg || 'length' in firstArg) {
|
|
@@ -2097,13 +2112,13 @@ class GraphQLError extends Error {
|
|
|
2097
2112
|
*/
|
|
2098
2113
|
|
|
2099
2114
|
/**
|
|
2100
|
-
* @deprecated Please use the `
|
|
2115
|
+
* @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
|
|
2101
2116
|
*/
|
|
2102
2117
|
constructor(message, ...rawArgs) {
|
|
2103
2118
|
var _this$nodes, _nodeLocations$, _ref;
|
|
2104
2119
|
|
|
2105
2120
|
const { nodes, source, positions, path, originalError, extensions } =
|
|
2106
|
-
|
|
2121
|
+
toNormalizedOptions(rawArgs);
|
|
2107
2122
|
super(message);
|
|
2108
2123
|
this.name = 'GraphQLError';
|
|
2109
2124
|
this.path = path !== null && path !== void 0 ? path : undefined;
|
|
@@ -2276,7 +2291,7 @@ function printError(error) {
|
|
|
2276
2291
|
* Given a GraphQLError, format it according to the rules described by the
|
|
2277
2292
|
* Response Format, Errors section of the GraphQL Specification.
|
|
2278
2293
|
*
|
|
2279
|
-
* @deprecated Please use `error.
|
|
2294
|
+
* @deprecated Please use `error.toJSON` instead. Will be removed in v17
|
|
2280
2295
|
*/
|
|
2281
2296
|
|
|
2282
2297
|
function formatError(error) {
|
|
@@ -2298,12 +2313,10 @@ exports.syntaxError = syntaxError;
|
|
|
2298
2313
|
* descriptive information about the syntax error's position in the source.
|
|
2299
2314
|
*/
|
|
2300
2315
|
function syntaxError(source, position, description) {
|
|
2301
|
-
return new GraphQLError_1.GraphQLError(
|
|
2302
|
-
`Syntax Error: ${description}`,
|
|
2303
|
-
undefined,
|
|
2316
|
+
return new GraphQLError_1.GraphQLError(`Syntax Error: ${description}`, {
|
|
2304
2317
|
source,
|
|
2305
|
-
[position],
|
|
2306
|
-
);
|
|
2318
|
+
positions: [position],
|
|
2319
|
+
});
|
|
2307
2320
|
}
|
|
2308
2321
|
});
|
|
2309
2322
|
|
|
@@ -4124,8 +4137,9 @@ exports.instanceOf = void 0;
|
|
|
4124
4137
|
* See: https://webpack.js.org/guides/production/
|
|
4125
4138
|
*/
|
|
4126
4139
|
const instanceOf =
|
|
4127
|
-
/* c8 ignore next
|
|
4140
|
+
/* c8 ignore next 6 */
|
|
4128
4141
|
// FIXME: https://github.com/graphql/graphql-js/issues/2317
|
|
4142
|
+
// eslint-disable-next-line no-undef
|
|
4129
4143
|
function instanceOf(value, constructor) {
|
|
4130
4144
|
return value instanceof constructor;
|
|
4131
4145
|
}
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-0bce1636.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ez-
|
|
17
|
+
return index.bootstrapLazy([["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-time-input.cjs",[[1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"setFocus":[64],"setBlur":[64]}]]],["ez-action-chip.cjs",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-label-chip.cjs",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover.cjs",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-button_11.cjs",[[0,"test-du"],[2,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"pageSize":[2,"page-size"],"serverUrl":[1,"server-url"],"dataUnit":[16],"_navigationHasPrevious":[32],"_navigationHasNext":[32],"_navigationFirstRow":[32],"_navigationLastRow":[32],"_navigationTotalRows":[32],"_popUpVisible":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64]}],[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}],[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}],[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"setSelection":[64],"getSelection":[64],"getList":[64]}],[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"size":[513]}],[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}],[1,"ez-tabselector",{"selectedIndex":[1537,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}],[1,"ez-icon",{"size":[513],"href":[513]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-combo-box.cjs",[[1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"_preSelection":[32],"_visibleOptions":[32]}]]],["ez-collapsible-box_7.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}],[1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"]}],[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}],[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"setFocus":[64],"setBlur":[64]}],[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -41,36 +41,30 @@ export const buildFromConfig = (fields, dataUnit) => {
|
|
|
41
41
|
if (config.visible !== false) {
|
|
42
42
|
const tab = config.tab || "Geral";
|
|
43
43
|
const descriptor = dataUnit.getField(config.name);
|
|
44
|
-
if (
|
|
45
|
-
sheets.
|
|
46
|
-
|
|
47
|
-
let isRequired = false;
|
|
48
|
-
if (config.required === undefined) {
|
|
49
|
-
if (descriptor) {
|
|
50
|
-
isRequired = descriptor.required;
|
|
44
|
+
if (descriptor) {
|
|
45
|
+
if (!sheets.has(tab)) {
|
|
46
|
+
sheets.set(tab, new Map());
|
|
51
47
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
48
|
+
const isRequired = config.required === undefined ? descriptor.required : config.required;
|
|
49
|
+
if (isRequired) {
|
|
50
|
+
requiredFields.push(config.name);
|
|
51
|
+
}
|
|
52
|
+
const tabItens = sheets.get(tab);
|
|
53
|
+
const fieldMD = { config, descriptor };
|
|
54
|
+
const group = config.group;
|
|
55
|
+
if (group) {
|
|
56
|
+
const key = `group::${group}`;
|
|
57
|
+
if (!tabItens.has(key)) {
|
|
58
|
+
tabItens.set(key, { label: group, items: [fieldMD] });
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
tabItens.get(key).items.push(fieldMD);
|
|
62
|
+
}
|
|
66
63
|
}
|
|
67
64
|
else {
|
|
68
|
-
tabItens.
|
|
65
|
+
tabItens.set(config.name, fieldMD);
|
|
69
66
|
}
|
|
70
67
|
}
|
|
71
|
-
else {
|
|
72
|
-
tabItens.set(config.name, fieldMD);
|
|
73
|
-
}
|
|
74
68
|
}
|
|
75
69
|
});
|
|
76
70
|
const metadata = new FormMetadata();
|
|
@@ -8,14 +8,17 @@ export default class DataUnitBridge {
|
|
|
8
8
|
processAction(action) {
|
|
9
9
|
switch (action.type) {
|
|
10
10
|
case Action.METADATA_LOADED:
|
|
11
|
-
|
|
12
|
-
this._dataUnit.metadata.fields.forEach(f => {
|
|
13
|
-
if (f.visible !== false) {
|
|
14
|
-
columnDefs.push({ label: f.label, name: f.name });
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
this._gridController.setColumnsDef(columnDefs, true);
|
|
11
|
+
this._gridController.setColumnsDef(this.buildColumnDefs(), true);
|
|
18
12
|
break;
|
|
19
13
|
}
|
|
20
14
|
}
|
|
15
|
+
buildColumnDefs() {
|
|
16
|
+
const columnDefs = [];
|
|
17
|
+
this._dataUnit.metadata.fields.forEach(f => {
|
|
18
|
+
if (f.visible !== false) {
|
|
19
|
+
columnDefs.push({ label: f.label, name: f.name });
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return columnDefs;
|
|
23
|
+
}
|
|
21
24
|
}
|
|
@@ -77,6 +77,9 @@ export class EzGrid {
|
|
|
77
77
|
serverURL: this.serverUrl,
|
|
78
78
|
dataUnit: this.dataUnit
|
|
79
79
|
});
|
|
80
|
+
if (this._dataUnitBridge) {
|
|
81
|
+
this._gridController.setColumnsDef(this._dataUnitBridge.buildColumnDefs(), true);
|
|
82
|
+
}
|
|
80
83
|
}
|
|
81
84
|
getPaginationControl() {
|
|
82
85
|
if (this.pageSize === -1) {
|
|
@@ -113,6 +116,7 @@ export class EzGrid {
|
|
|
113
116
|
h("grid-config", { ref: ref => this._gridConfig = ref, selectedTab: "Colunas", onConfigFinish: evt => this.applyConfig(evt.detail), onConfigCancel: _evt => this.closeConfig() }))));
|
|
114
117
|
}
|
|
115
118
|
static get is() { return "ez-grid"; }
|
|
119
|
+
static get encapsulation() { return "scoped"; }
|
|
116
120
|
static get originalStyleUrls() { return {
|
|
117
121
|
"$": ["ez-grid.css"]
|
|
118
122
|
}; }
|
|
@@ -261,7 +261,7 @@ export class GridConfig {
|
|
|
261
261
|
h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
|
|
262
262
|
}
|
|
263
263
|
static get is() { return "grid-config"; }
|
|
264
|
-
static get encapsulation() { return "
|
|
264
|
+
static get encapsulation() { return "scoped"; }
|
|
265
265
|
static get originalStyleUrls() { return {
|
|
266
266
|
"$": ["grid-config.css"]
|
|
267
267
|
}; }
|
|
@@ -39,15 +39,7 @@ export class TestDu {
|
|
|
39
39
|
}
|
|
40
40
|
]
|
|
41
41
|
};
|
|
42
|
-
this.
|
|
43
|
-
{ name: "CODPARC", label: "Parceiro" },
|
|
44
|
-
{ name: "NOMEPARC", label: "Mamão" },
|
|
45
|
-
{ name: "P", label: "Pêra", group: "Grupo 1" },
|
|
46
|
-
{ name: "ME", label: "Melancia", tab: "aba 1", group: "Grupo 2" },
|
|
47
|
-
{ name: "L", label: "Laranja", tab: "aba 1", group: "Grupo 1" },
|
|
48
|
-
{ name: "LI", label: "Limão", tab: "aba 1", group: "Grupo 2" }
|
|
49
|
-
];
|
|
50
|
-
this.dataUnit.records = [
|
|
42
|
+
this.dataUnit.dataLoader = () => new Promise(accept => accept([
|
|
51
43
|
{
|
|
52
44
|
__record__id__: "1321321321321321",
|
|
53
45
|
CODPARC: 10,
|
|
@@ -56,26 +48,10 @@ export class TestDu {
|
|
|
56
48
|
L: "Bagaço",
|
|
57
49
|
LI: "Azedo"
|
|
58
50
|
}
|
|
59
|
-
];
|
|
51
|
+
]));
|
|
60
52
|
}
|
|
61
53
|
render() {
|
|
62
|
-
|
|
63
|
-
//return this.somenteDataUnit();
|
|
64
|
-
return this.configurado();
|
|
65
|
-
}
|
|
66
|
-
conteudoEstatico() {
|
|
67
|
-
return (h("div", null,
|
|
68
|
-
h("button", { onClick: () => this.form.validate() }, "Validate"),
|
|
69
|
-
h("ez-form", { ref: ref => this.form = ref },
|
|
70
|
-
h("div", null,
|
|
71
|
-
h("ez-text-input", { label: "Nome (Label est\u00E1tico)", "data-field-name": "NOMEPARC", "data-required": "true" }),
|
|
72
|
-
h("ez-text-input", { label: "C\u00F3d parc (Label est\u00E1tico)", "data-field-name": "CODPARC", "data-required": "true" })))));
|
|
73
|
-
}
|
|
74
|
-
somenteDataUnit() {
|
|
75
|
-
return (h("ez-form", { dataUnit: this.dataUnit }));
|
|
76
|
-
}
|
|
77
|
-
configurado() {
|
|
78
|
-
return (h("ez-form", { dataUnit: this.dataUnit, config: this.formConfig, ref: ref => this.form = ref }));
|
|
54
|
+
return (h("ez-grid", { dataUnit: this.dataUnit }));
|
|
79
55
|
}
|
|
80
56
|
static get is() { return "test-du"; }
|
|
81
57
|
static get originalStyleUrls() { return {
|