@sankhyalabs/ezui 1.1.79 → 1.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/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 +728 -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-a2266984.js → index-d5d5a77c.js} +84 -56
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ez-form/DataBinder.js +7 -1
- package/dist/collection/components/ez-form/ez-form.js +6 -2
- package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +2 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +4 -0
- 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 +106 -77
- 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 +724 -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-afe19542.js → index-2bb35caf.js} +85 -57
- 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-7a1f2e0e.entry.js → p-2bb74de5.entry.js} +1 -1
- package/dist/ezui/p-3749c696.js +1 -0
- package/dist/ezui/{p-a4a39579.entry.js → p-39218c31.entry.js} +1 -1
- package/dist/ezui/{p-5509ee41.entry.js → p-48eddf77.entry.js} +46 -46
- package/dist/ezui/p-513f2d2e.entry.js +1 -0
- 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-920bb8c9.entry.js → p-a52b3368.entry.js} +1 -1
- package/dist/ezui/{p-0a2056d9.entry.js → p-b678dc80.entry.js} +1 -1
- package/dist/ezui/p-c151c043.entry.js +1 -0
- package/dist/ezui/p-da6ac011.entry.js +1 -0
- package/dist/ezui/p-e346a7ff.entry.js +1 -0
- package/dist/ezui/{p-857ead8e.entry.js → p-ec261c08.entry.js} +1 -1
- package/dist/ezui/p-f87c7082.js +1 -0
- package/dist/types/components/ez-form/ez-form.d.ts +1 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +4 -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 +2 -2
- package/dist/cjs/DateUtils-716769e0.js +0 -46
- package/dist/cjs/ez-button_3.cjs.entry.js +0 -520
- package/dist/cjs/ez-calendar_13.cjs.entry.js +0 -2417
- package/dist/cjs/ez-date-time-input.cjs.entry.js +0 -133
- package/dist/cjs/ez-icon.cjs.entry.js +0 -30
- package/dist/cjs/ez-modal_2.cjs.entry.js +0 -370
- package/dist/esm/DateUtils-0a1bbd7a.js +0 -44
- package/dist/esm/ez-button_3.entry.js +0 -514
- package/dist/esm/ez-calendar_13.entry.js +0 -2401
- package/dist/esm/ez-date-time-input.entry.js +0 -129
- package/dist/esm/ez-icon.entry.js +0 -26
- package/dist/esm/ez-modal_2.entry.js +0 -365
- package/dist/ezui/p-00b837e2.js +0 -1
- package/dist/ezui/p-0d8368fc.entry.js +0 -1
- package/dist/ezui/p-1e36e3ff.entry.js +0 -1
- package/dist/ezui/p-446ec85b.js +0 -1
- package/dist/ezui/p-9be02ecf.entry.js +0 -1
- package/dist/ezui/p-c89629eb.js +0 -1
- package/dist/ezui/p-d5699f29.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-d5d5a77c.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-d5d5a77c.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
|
|
@@ -803,11 +819,7 @@ class AddedRecordsReducerImpl {
|
|
|
803
819
|
reduce(_stateManager, currentState, action) {
|
|
804
820
|
switch (action.type) {
|
|
805
821
|
case exports.Action.RECORDS_ADDED:
|
|
806
|
-
|
|
807
|
-
action.payload.forEach((r) => {
|
|
808
|
-
newState.push(Object.assign({ __record__id__: "NEW_" + (newState.length + 1) }, r));
|
|
809
|
-
});
|
|
810
|
-
return newState;
|
|
822
|
+
return (currentState || []).concat(action.payload);
|
|
811
823
|
case exports.Action.DATA_SAVED:
|
|
812
824
|
case exports.Action.EDITION_CANCELED:
|
|
813
825
|
return undefined;
|
|
@@ -819,6 +831,10 @@ const AddedRecordsReducer = new AddedRecordsReducerImpl();
|
|
|
819
831
|
const getAddedRecords = (stateManager) => {
|
|
820
832
|
return stateManager.select(AddedRecordsReducer.sliceName, (state) => state);
|
|
821
833
|
};
|
|
834
|
+
const prepareAddedRecordId = (stateManager, source) => {
|
|
835
|
+
let index = (getAddedRecords(stateManager) || []).length;
|
|
836
|
+
return source.map(item => { return Object.assign(Object.assign({}, item), { __record__id__: "NEW_" + (index++) }); });
|
|
837
|
+
};
|
|
822
838
|
|
|
823
839
|
class ChangesReducerImpl {
|
|
824
840
|
constructor() {
|
|
@@ -831,7 +847,9 @@ class ChangesReducerImpl {
|
|
|
831
847
|
if (selection) {
|
|
832
848
|
const newState = new Map(currentState);
|
|
833
849
|
selection.forEach(recordId => {
|
|
834
|
-
|
|
850
|
+
const newChanges = Object.assign(Object.assign({}, newState.get(recordId)), action.payload);
|
|
851
|
+
delete newChanges.records;
|
|
852
|
+
newState.set(recordId, newChanges);
|
|
835
853
|
});
|
|
836
854
|
return newState;
|
|
837
855
|
}
|
|
@@ -860,16 +878,14 @@ const getChangesToSave = (dataUnit, stateManager) => {
|
|
|
860
878
|
const result = [];
|
|
861
879
|
const changes = getChanges(stateManager);
|
|
862
880
|
const records = getRecords(stateManager);
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
result.push(new Change(dataUnit, r, c, ChangeOperation.UPDATE));
|
|
869
|
-
}
|
|
881
|
+
records === null || records === void 0 ? void 0 : records.forEach(r => {
|
|
882
|
+
if (changes) {
|
|
883
|
+
const c = changes.get(r.__record__id__);
|
|
884
|
+
if (c) {
|
|
885
|
+
result.push(new Change(dataUnit, r, c, ChangeOperation.UPDATE));
|
|
870
886
|
}
|
|
871
|
-
}
|
|
872
|
-
}
|
|
887
|
+
}
|
|
888
|
+
});
|
|
873
889
|
const addedRecords = getAddedRecords(stateManager);
|
|
874
890
|
if (addedRecords) {
|
|
875
891
|
addedRecords.forEach(r => {
|
|
@@ -878,7 +894,7 @@ const getChangesToSave = (dataUnit, stateManager) => {
|
|
|
878
894
|
}
|
|
879
895
|
const removedRecords = getRemovedRecords(stateManager);
|
|
880
896
|
const recordsById = {};
|
|
881
|
-
records.forEach(r => recordsById[r.__record__id__] = r);
|
|
897
|
+
records === null || records === void 0 ? void 0 : records.forEach(r => recordsById[r.__record__id__] = r);
|
|
882
898
|
if (removedRecords) {
|
|
883
899
|
removedRecords.forEach(id => {
|
|
884
900
|
result.push(new Change(dataUnit, recordsById[id], undefined, ChangeOperation.DELETE));
|
|
@@ -934,6 +950,8 @@ class SelectionReducerImpl {
|
|
|
934
950
|
}
|
|
935
951
|
reduce(stateManager, currentState, action) {
|
|
936
952
|
switch (action.type) {
|
|
953
|
+
case exports.Action.RECORDS_ADDED:
|
|
954
|
+
return action.payload.map((r) => r.__record__id__);
|
|
937
955
|
case exports.Action.DATA_SAVED:
|
|
938
956
|
return updateSavedIds(stateManager, action.payload.records);
|
|
939
957
|
case exports.Action.RECORDS_REMOVED:
|
|
@@ -1035,6 +1053,15 @@ function updateSavedIds(stateManager, savedRecords) {
|
|
|
1035
1053
|
return currentSelection;
|
|
1036
1054
|
}
|
|
1037
1055
|
|
|
1056
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1057
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1058
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1059
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1060
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1061
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1062
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1063
|
+
});
|
|
1064
|
+
};
|
|
1038
1065
|
class DataUnit {
|
|
1039
1066
|
constructor(name) {
|
|
1040
1067
|
this._name = name;
|
|
@@ -1076,32 +1103,46 @@ class DataUnit {
|
|
|
1076
1103
|
}
|
|
1077
1104
|
// Loaders
|
|
1078
1105
|
loadMetadata() {
|
|
1079
|
-
this
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1107
|
+
this.dispatchAction(exports.Action.LOADING_METADATA);
|
|
1108
|
+
return new Promise((resolve, fail) => {
|
|
1109
|
+
if (this.metadataLoader) {
|
|
1110
|
+
this.metadataLoader(this._name).then(metadata => {
|
|
1111
|
+
this.metadata = metadata;
|
|
1112
|
+
resolve(this.metadata);
|
|
1113
|
+
}).catch(error => fail(error));
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
});
|
|
1083
1117
|
}
|
|
1084
1118
|
loadData() {
|
|
1085
|
-
this
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
this.records
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1120
|
+
this.dispatchAction(exports.Action.LOADING_DATA);
|
|
1121
|
+
return new Promise((resolve, fail) => {
|
|
1122
|
+
if (this.dataLoader) {
|
|
1123
|
+
const sort = this.getSort();
|
|
1124
|
+
const filters = this.getFilters();
|
|
1125
|
+
this.dataLoader(this._name, sort, filters).then(records => {
|
|
1126
|
+
this.records = records;
|
|
1127
|
+
resolve(this.records);
|
|
1128
|
+
}).catch(error => fail(error));
|
|
1129
|
+
}
|
|
1130
|
+
});
|
|
1095
1131
|
});
|
|
1096
1132
|
}
|
|
1097
1133
|
saveData() {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1135
|
+
const changes = getChangesToSave(this._name, this._stateManager);
|
|
1136
|
+
if (changes.length > 0) {
|
|
1137
|
+
this.dispatchAction(exports.Action.SAVING_DATA);
|
|
1138
|
+
return new Promise((resolve, fail) => {
|
|
1139
|
+
if (this.saveLoader) {
|
|
1140
|
+
this.saveLoader(this._name, changes).then(records => this.dispatchAction(exports.Action.DATA_SAVED, { changes, records })).catch(error => fail(error));
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1103
1143
|
}
|
|
1104
|
-
|
|
1144
|
+
return Promise.resolve();
|
|
1145
|
+
});
|
|
1105
1146
|
}
|
|
1106
1147
|
// API
|
|
1107
1148
|
addFilterProvider(provider) {
|
|
@@ -1127,7 +1168,7 @@ class DataUnit {
|
|
|
1127
1168
|
return getField(this._stateManager, fieldName);
|
|
1128
1169
|
}
|
|
1129
1170
|
addRecord() {
|
|
1130
|
-
this.dispatchAction(exports.Action.RECORDS_ADDED, [{}]);
|
|
1171
|
+
this.dispatchAction(exports.Action.RECORDS_ADDED, prepareAddedRecordId(this._stateManager, [{}]));
|
|
1131
1172
|
}
|
|
1132
1173
|
removeSelectedRecords() {
|
|
1133
1174
|
const selection = getSelection(this._stateManager);
|
|
@@ -1200,9 +1241,9 @@ class DataUnit {
|
|
|
1200
1241
|
}
|
|
1201
1242
|
var ChangeOperation;
|
|
1202
1243
|
(function (ChangeOperation) {
|
|
1203
|
-
ChangeOperation[
|
|
1204
|
-
ChangeOperation[
|
|
1205
|
-
ChangeOperation[
|
|
1244
|
+
ChangeOperation["INSERT"] = "INSERT";
|
|
1245
|
+
ChangeOperation["UPDATE"] = "UPDATE";
|
|
1246
|
+
ChangeOperation["DELETE"] = "DELETE";
|
|
1206
1247
|
})(ChangeOperation || (ChangeOperation = {}));
|
|
1207
1248
|
class Change {
|
|
1208
1249
|
constructor(dataUnit, record, updates, operation) {
|
|
@@ -1211,6 +1252,9 @@ class Change {
|
|
|
1211
1252
|
this.updatingFields = updates;
|
|
1212
1253
|
this._operation = operation;
|
|
1213
1254
|
}
|
|
1255
|
+
get operation() {
|
|
1256
|
+
return this._operation.toString();
|
|
1257
|
+
}
|
|
1214
1258
|
isInsert() {
|
|
1215
1259
|
return this._operation === ChangeOperation.INSERT;
|
|
1216
1260
|
}
|
|
@@ -1264,22 +1308,6 @@ var LoadType;
|
|
|
1264
1308
|
LoadType["APP_LOAD"] = "APP_LOAD";
|
|
1265
1309
|
})(LoadType || (LoadType = {}));
|
|
1266
1310
|
|
|
1267
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1268
|
-
|
|
1269
|
-
function createCommonjsModule(fn, basedir, module) {
|
|
1270
|
-
return module = {
|
|
1271
|
-
path: basedir,
|
|
1272
|
-
exports: {},
|
|
1273
|
-
require: function (path, base) {
|
|
1274
|
-
return commonjsRequire();
|
|
1275
|
-
}
|
|
1276
|
-
}, fn(module, module.exports), module.exports;
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
function commonjsRequire () {
|
|
1280
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
1311
|
var browserPonyfill = createCommonjsModule(function (module, exports) {
|
|
1284
1312
|
var global = typeof self !== 'undefined' ? self : commonjsGlobal;
|
|
1285
1313
|
var __self__ = (function () {
|
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
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export default class DataBinder {
|
|
2
2
|
constructor(dataUnit) {
|
|
3
|
-
this._dataUnit = dataUnit;
|
|
4
3
|
this._fields = new Map();
|
|
4
|
+
this._dataUnit = dataUnit;
|
|
5
|
+
this._dataUnit.subscribe(_action => {
|
|
6
|
+
var _a;
|
|
7
|
+
(_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
|
|
8
|
+
this.updateValue(field.fieldName, field.field);
|
|
9
|
+
});
|
|
10
|
+
});
|
|
5
11
|
}
|
|
6
12
|
bind(fields) {
|
|
7
13
|
fields.forEach(fieldElement => {
|
|
@@ -67,11 +67,15 @@ export class EzForm {
|
|
|
67
67
|
return result;
|
|
68
68
|
}
|
|
69
69
|
processMetadata() {
|
|
70
|
-
if (!this.
|
|
70
|
+
if (!this.isStatic()) {
|
|
71
71
|
const metadata = this.config && this.config.length > 0 ? buildFromConfig(this.config, this.dataUnit) : buildFromDataUnit(this.dataUnit);
|
|
72
72
|
this._store.dispatch(loadMetadata(metadata));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
isStatic() {
|
|
76
|
+
var _a;
|
|
77
|
+
return ((_a = this._staticFields) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
78
|
+
}
|
|
75
79
|
componentWillLoad() {
|
|
76
80
|
if (this.dataUnit === undefined) {
|
|
77
81
|
this.dataUnit = new DataUnit("ez-form");
|
|
@@ -91,7 +95,7 @@ export class EzForm {
|
|
|
91
95
|
this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")));
|
|
92
96
|
}
|
|
93
97
|
render() {
|
|
94
|
-
return (h(Host, null, this.
|
|
98
|
+
return (h(Host, null, this.isStatic() ? null : this.getDynamicContent()));
|
|
95
99
|
}
|
|
96
100
|
static get is() { return "ez-form"; }
|
|
97
101
|
static get originalStyleUrls() { return {
|
|
@@ -5,7 +5,7 @@ import { buildCheckBox, buildSwitch } from "./tpl/CheckBox.tpl";
|
|
|
5
5
|
import { buildComboBox } from "./tpl/ComboBox.tpl";
|
|
6
6
|
import { buildSearch } from "./tpl/SearchInput.tpl";
|
|
7
7
|
import { buildFile } from "./tpl/FileInput.tpl";
|
|
8
|
-
import { buildDate } from "./tpl/DateInput.tpl";
|
|
8
|
+
import { buildDate, buildTimeDate } from "./tpl/DateInput.tpl";
|
|
9
9
|
import { buildInteger, buildDecimal } from "./tpl/NumberInput.tpl";
|
|
10
10
|
const uiBuilders = new Map();
|
|
11
11
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
@@ -15,6 +15,7 @@ uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
|
|
|
15
15
|
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
16
16
|
uiBuilders.set(UserInterface.FILE, buildFile);
|
|
17
17
|
uiBuilders.set(UserInterface.DATE, buildDate);
|
|
18
|
+
uiBuilders.set(UserInterface.DATETIME, buildTimeDate);
|
|
18
19
|
uiBuilders.set(UserInterface.DECIMALNUMBER, buildDecimal);
|
|
19
20
|
uiBuilders.set(UserInterface.INTEGERNUMBER, buildInteger);
|
|
20
21
|
export const buildField = (field) => {
|
|
@@ -3,3 +3,7 @@ export const buildDate = ({ name, label }) => {
|
|
|
3
3
|
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
4
4
|
h("ez-date-input", { label: label, "data-field-name": name, key: name })));
|
|
5
5
|
};
|
|
6
|
+
export const buildTimeDate = ({ name, label }) => {
|
|
7
|
+
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
8
|
+
h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
|
|
9
|
+
};
|
|
@@ -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 {
|