@sankhyalabs/ezui 1.1.80 → 1.1.83
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 +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-a2266984.js → index-2fc1b5fa.js} +115 -72
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ez-form/DataBinder.js +7 -1
- 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-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 +150 -116
- 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-afe19542.js → index-015d8d70.js} +116 -73
- 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-5509ee41.entry.js → p-058b8138.entry.js} +46 -46
- package/dist/ezui/{p-7a1f2e0e.entry.js → p-07d2c50f.entry.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-62ee7026.entry.js +1 -0
- package/dist/ezui/p-7107d7ef.js +1 -0
- package/dist/ezui/{p-7de3c95d.js → p-7c101b34.js} +1 -1
- package/dist/ezui/{p-857ead8e.entry.js → p-8592635e.entry.js} +1 -1
- package/dist/ezui/p-93ce25bc.entry.js +1 -0
- package/dist/ezui/p-96c336db.js +1 -0
- package/dist/ezui/p-a06aa43a.entry.js +1 -0
- 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-ca3dac07.entry.js +1 -0
- package/dist/ezui/p-f87c7082.js +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/react/{readme.md → .keepfolder} +0 -0
- 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 -2421
- 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 -2405
- 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-49f3432a.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-2fc1b5fa.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-2fc1b5fa.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,11 +808,8 @@ class AddedRecordsReducerImpl {
|
|
|
803
808
|
reduce(_stateManager, currentState, action) {
|
|
804
809
|
switch (action.type) {
|
|
805
810
|
case exports.Action.RECORDS_ADDED:
|
|
806
|
-
|
|
807
|
-
action.payload
|
|
808
|
-
newState.push(Object.assign({ __record__id__: "NEW_" + (newState.length + 1) }, r));
|
|
809
|
-
});
|
|
810
|
-
return newState;
|
|
811
|
+
case exports.Action.RECORDS_COPIED:
|
|
812
|
+
return (currentState || []).concat(action.payload);
|
|
811
813
|
case exports.Action.DATA_SAVED:
|
|
812
814
|
case exports.Action.EDITION_CANCELED:
|
|
813
815
|
return undefined;
|
|
@@ -819,6 +821,10 @@ const AddedRecordsReducer = new AddedRecordsReducerImpl();
|
|
|
819
821
|
const getAddedRecords = (stateManager) => {
|
|
820
822
|
return stateManager.select(AddedRecordsReducer.sliceName, (state) => state);
|
|
821
823
|
};
|
|
824
|
+
const prepareAddedRecordId = (stateManager, source) => {
|
|
825
|
+
let index = (getAddedRecords(stateManager) || []).length;
|
|
826
|
+
return source.map(item => { return Object.assign(Object.assign({}, item), { __record__id__: "NEW_" + (index++) }); });
|
|
827
|
+
};
|
|
822
828
|
|
|
823
829
|
class ChangesReducerImpl {
|
|
824
830
|
constructor() {
|
|
@@ -831,7 +837,9 @@ class ChangesReducerImpl {
|
|
|
831
837
|
if (selection) {
|
|
832
838
|
const newState = new Map(currentState);
|
|
833
839
|
selection.forEach(recordId => {
|
|
834
|
-
|
|
840
|
+
const newChanges = Object.assign(Object.assign({}, newState.get(recordId)), action.payload);
|
|
841
|
+
delete newChanges.records;
|
|
842
|
+
newState.set(recordId, newChanges);
|
|
835
843
|
});
|
|
836
844
|
return newState;
|
|
837
845
|
}
|
|
@@ -860,16 +868,14 @@ const getChangesToSave = (dataUnit, stateManager) => {
|
|
|
860
868
|
const result = [];
|
|
861
869
|
const changes = getChanges(stateManager);
|
|
862
870
|
const records = getRecords(stateManager);
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
result.push(new Change(dataUnit, r, c, ChangeOperation.UPDATE));
|
|
869
|
-
}
|
|
871
|
+
records === null || records === void 0 ? void 0 : records.forEach(r => {
|
|
872
|
+
if (changes) {
|
|
873
|
+
const c = changes.get(r.__record__id__);
|
|
874
|
+
if (c) {
|
|
875
|
+
result.push(new Change(dataUnit, r, c, ChangeOperation.UPDATE));
|
|
870
876
|
}
|
|
871
|
-
}
|
|
872
|
-
}
|
|
877
|
+
}
|
|
878
|
+
});
|
|
873
879
|
const addedRecords = getAddedRecords(stateManager);
|
|
874
880
|
if (addedRecords) {
|
|
875
881
|
addedRecords.forEach(r => {
|
|
@@ -878,7 +884,7 @@ const getChangesToSave = (dataUnit, stateManager) => {
|
|
|
878
884
|
}
|
|
879
885
|
const removedRecords = getRemovedRecords(stateManager);
|
|
880
886
|
const recordsById = {};
|
|
881
|
-
records.forEach(r => recordsById[r.__record__id__] = r);
|
|
887
|
+
records === null || records === void 0 ? void 0 : records.forEach(r => recordsById[r.__record__id__] = r);
|
|
882
888
|
if (removedRecords) {
|
|
883
889
|
removedRecords.forEach(id => {
|
|
884
890
|
result.push(new Change(dataUnit, recordsById[id], undefined, ChangeOperation.DELETE));
|
|
@@ -934,6 +940,9 @@ class SelectionReducerImpl {
|
|
|
934
940
|
}
|
|
935
941
|
reduce(stateManager, currentState, action) {
|
|
936
942
|
switch (action.type) {
|
|
943
|
+
case exports.Action.RECORDS_ADDED:
|
|
944
|
+
case exports.Action.RECORDS_COPIED:
|
|
945
|
+
return action.payload.map((r) => r.__record__id__);
|
|
937
946
|
case exports.Action.DATA_SAVED:
|
|
938
947
|
return updateSavedIds(stateManager, action.payload.records);
|
|
939
948
|
case exports.Action.RECORDS_REMOVED:
|
|
@@ -1035,6 +1044,15 @@ function updateSavedIds(stateManager, savedRecords) {
|
|
|
1035
1044
|
return currentSelection;
|
|
1036
1045
|
}
|
|
1037
1046
|
|
|
1047
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
1048
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
1049
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
1050
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
1051
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
1052
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
1053
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
1054
|
+
});
|
|
1055
|
+
};
|
|
1038
1056
|
class DataUnit {
|
|
1039
1057
|
constructor(name) {
|
|
1040
1058
|
this._name = name;
|
|
@@ -1051,6 +1069,7 @@ class DataUnit {
|
|
|
1051
1069
|
this._observers = [];
|
|
1052
1070
|
this._filterProviders = [];
|
|
1053
1071
|
this._sortingProvider = undefined;
|
|
1072
|
+
this._interceptors = [];
|
|
1054
1073
|
}
|
|
1055
1074
|
get name() {
|
|
1056
1075
|
return this._name;
|
|
@@ -1076,34 +1095,51 @@ class DataUnit {
|
|
|
1076
1095
|
}
|
|
1077
1096
|
// Loaders
|
|
1078
1097
|
loadMetadata() {
|
|
1079
|
-
this
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1099
|
+
this.dispatchAction(exports.Action.LOADING_METADATA);
|
|
1100
|
+
return new Promise((resolve, fail) => {
|
|
1101
|
+
if (this.metadataLoader) {
|
|
1102
|
+
this.metadataLoader(this._name).then(metadata => {
|
|
1103
|
+
this.metadata = metadata;
|
|
1104
|
+
resolve(this.metadata);
|
|
1105
|
+
}).catch(error => fail(error));
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
});
|
|
1083
1109
|
}
|
|
1084
1110
|
loadData() {
|
|
1085
|
-
this
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
this.records
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1112
|
+
this.dispatchAction(exports.Action.LOADING_DATA);
|
|
1113
|
+
return new Promise((resolve, fail) => {
|
|
1114
|
+
if (this.dataLoader) {
|
|
1115
|
+
const sort = this.getSort();
|
|
1116
|
+
const filters = this.getFilters();
|
|
1117
|
+
this.dataLoader(this._name, sort, filters).then(records => {
|
|
1118
|
+
this.records = records;
|
|
1119
|
+
resolve(this.records);
|
|
1120
|
+
}).catch(error => fail(error));
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1095
1123
|
});
|
|
1096
1124
|
}
|
|
1097
1125
|
saveData() {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1127
|
+
const changes = getChangesToSave(this._name, this._stateManager);
|
|
1128
|
+
if (changes.length > 0) {
|
|
1129
|
+
this.dispatchAction(exports.Action.SAVING_DATA);
|
|
1130
|
+
return new Promise((resolve, fail) => {
|
|
1131
|
+
if (this.saveLoader) {
|
|
1132
|
+
this.saveLoader(this._name, changes).then(records => this.dispatchAction(exports.Action.DATA_SAVED, { changes, records })).catch(error => fail(error));
|
|
1133
|
+
}
|
|
1134
|
+
});
|
|
1103
1135
|
}
|
|
1104
|
-
|
|
1136
|
+
return Promise.resolve();
|
|
1137
|
+
});
|
|
1105
1138
|
}
|
|
1106
1139
|
// API
|
|
1140
|
+
addInterceptor(interceptor) {
|
|
1141
|
+
this._interceptors.push(interceptor);
|
|
1142
|
+
}
|
|
1107
1143
|
addFilterProvider(provider) {
|
|
1108
1144
|
this._filterProviders.push(provider);
|
|
1109
1145
|
}
|
|
@@ -1127,7 +1163,13 @@ class DataUnit {
|
|
|
1127
1163
|
return getField(this._stateManager, fieldName);
|
|
1128
1164
|
}
|
|
1129
1165
|
addRecord() {
|
|
1130
|
-
this.dispatchAction(exports.Action.RECORDS_ADDED, [{}]);
|
|
1166
|
+
this.dispatchAction(exports.Action.RECORDS_ADDED, prepareAddedRecordId(this._stateManager, [{}]));
|
|
1167
|
+
}
|
|
1168
|
+
copySelected() {
|
|
1169
|
+
const selectedRecords = this.getSelectedRecords();
|
|
1170
|
+
if (selectedRecords) {
|
|
1171
|
+
this.dispatchAction(exports.Action.RECORDS_COPIED, prepareAddedRecordId(this._stateManager, selectedRecords));
|
|
1172
|
+
}
|
|
1131
1173
|
}
|
|
1132
1174
|
removeSelectedRecords() {
|
|
1133
1175
|
const selection = getSelection(this._stateManager);
|
|
@@ -1154,6 +1196,13 @@ class DataUnit {
|
|
|
1154
1196
|
setSelectionByIndex(selection) {
|
|
1155
1197
|
this.dispatchAction(exports.Action.SELECTION_CHANGED, { type: "index", selection });
|
|
1156
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
|
+
}
|
|
1157
1206
|
nextRecord() {
|
|
1158
1207
|
this.dispatchAction(exports.Action.NEXT_SELECTED);
|
|
1159
1208
|
}
|
|
@@ -1186,10 +1235,17 @@ class DataUnit {
|
|
|
1186
1235
|
}
|
|
1187
1236
|
// Actions / State manager
|
|
1188
1237
|
dispatchAction(actionType, payload) {
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
this.
|
|
1192
|
-
|
|
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
|
+
}
|
|
1193
1249
|
}
|
|
1194
1250
|
subscribe(observer) {
|
|
1195
1251
|
this._observers.push(observer);
|
|
@@ -1200,9 +1256,9 @@ class DataUnit {
|
|
|
1200
1256
|
}
|
|
1201
1257
|
var ChangeOperation;
|
|
1202
1258
|
(function (ChangeOperation) {
|
|
1203
|
-
ChangeOperation[
|
|
1204
|
-
ChangeOperation[
|
|
1205
|
-
ChangeOperation[
|
|
1259
|
+
ChangeOperation["INSERT"] = "INSERT";
|
|
1260
|
+
ChangeOperation["UPDATE"] = "UPDATE";
|
|
1261
|
+
ChangeOperation["DELETE"] = "DELETE";
|
|
1206
1262
|
})(ChangeOperation || (ChangeOperation = {}));
|
|
1207
1263
|
class Change {
|
|
1208
1264
|
constructor(dataUnit, record, updates, operation) {
|
|
@@ -1211,6 +1267,9 @@ class Change {
|
|
|
1211
1267
|
this.updatingFields = updates;
|
|
1212
1268
|
this._operation = operation;
|
|
1213
1269
|
}
|
|
1270
|
+
get operation() {
|
|
1271
|
+
return this._operation.toString();
|
|
1272
|
+
}
|
|
1214
1273
|
isInsert() {
|
|
1215
1274
|
return this._operation === ChangeOperation.INSERT;
|
|
1216
1275
|
}
|
|
@@ -1264,22 +1323,6 @@ var LoadType;
|
|
|
1264
1323
|
LoadType["APP_LOAD"] = "APP_LOAD";
|
|
1265
1324
|
})(LoadType || (LoadType = {}));
|
|
1266
1325
|
|
|
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
1326
|
var browserPonyfill = createCommonjsModule(function (module, exports) {
|
|
1284
1327
|
var global = typeof self !== 'undefined' ? self : commonjsGlobal;
|
|
1285
1328
|
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 => {
|
|
@@ -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
|
+
};
|