@sankhyalabs/ezui 1.1.75 → 1.1.78
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-dd585fba.js +24 -0
- package/dist/cjs/CSSVarsUtils-66e86394.js +18 -0
- package/dist/cjs/DataUnit-fdd7c70e.js +474 -0
- package/dist/cjs/DateUtils-716769e0.js +46 -0
- package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +26 -0
- package/dist/cjs/ez-button_11.cjs.entry.js +111771 -0
- package/dist/cjs/ez-calendar.cjs.entry.js +217 -0
- package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +634 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +254 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +133 -0
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1838 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +36 -212
- package/dist/cjs/ez-popover.cjs.entry.js +3 -3
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +10 -9
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/form-metadata.cjs.entry.js +129 -0
- package/dist/cjs/index-40ebb2be.js +7422 -0
- package/dist/cjs/{index-4d2896bb.js → index-4e4bae01.js} +3 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +8 -3
- package/dist/collection/components/ez-application/ez-application.css +3 -0
- package/dist/collection/components/ez-application/ez-application.js +35 -0
- package/dist/collection/components/ez-button/ez-button.css +78 -44
- package/dist/collection/components/ez-button/ez-button.js +36 -4
- package/dist/collection/components/ez-calendar/ez-calendar.css +70 -3
- package/dist/collection/components/ez-calendar/ez-calendar.js +173 -24
- package/dist/collection/components/ez-check/ez-check.css +78 -78
- package/dist/collection/components/ez-check/ez-check.js +3 -3
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +34 -34
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -12
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +65 -54
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +17 -3
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -3
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +44 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +243 -0
- package/dist/collection/components/ez-form/ez-form.js +37 -35
- package/dist/collection/components/ez-form/store/Form.actions.js +16 -16
- package/dist/collection/components/ez-form/store/Form.reducer.js +17 -17
- package/dist/collection/components/ez-form/subcomponents/DataUnit.js +11 -11
- package/dist/collection/components/ez-form/subcomponents/form-metadata.js +12 -12
- package/dist/collection/components/ez-form/subcomponents/place-holder.js +1 -1
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +21 -21
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +1 -1
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +9 -9
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +21 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +203 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +41 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +12 -0
- package/dist/collection/components/ez-grid/ez-grid.css +15 -0
- package/dist/collection/components/ez-grid/ez-grid.js +414 -0
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +105 -0
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +354 -0
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +7 -0
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +66 -0
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-list/ez-list.css +227 -44
- package/dist/collection/components/ez-list/ez-list.js +529 -149
- package/dist/collection/components/ez-modal/ez-modal.css +4 -4
- package/dist/collection/components/ez-modal/ez-modal.js +1 -1
- package/dist/collection/components/ez-number-input/ez-number-input.css +1 -165
- package/dist/collection/components/ez-number-input/ez-number-input.js +53 -339
- package/dist/collection/components/ez-popover/ez-popover.css +10 -6
- package/dist/collection/components/ez-popup/ez-popup.css +25 -27
- package/dist/collection/components/ez-search/ez-search.js +6 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +0 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +3 -3
- package/dist/collection/components/ez-text-area/ez-text-area.js +1 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +60 -60
- package/dist/collection/components/ez-text-input/ez-text-input.js +17 -16
- package/dist/collection/components/ez-time-input/ez-time-input.js +3 -2
- package/dist/collection/components/ez-upload/ez-upload.js +3 -3
- package/dist/collection/components/test-du/test-du.css +3 -0
- package/dist/collection/components/test-du/test-du.js +45 -0
- package/dist/collection/servidor.js +94 -94
- package/dist/collection/utils/{Application.js → ApplicationUtils.js} +4 -4
- package/dist/collection/utils/AssetsUtils.js +19 -0
- package/dist/collection/utils/CSSVarsUtils.js +6 -6
- package/dist/custom-elements/index.d.ts +36 -6
- package/dist/custom-elements/index.js +120886 -2964
- package/dist/esm/ApplicationUtils-01280a9d.js +33 -0
- package/dist/esm/AssetsUtils-3803e935.js +22 -0
- package/dist/esm/CSSVarsUtils-aeee9825.js +16 -0
- package/dist/esm/DataUnit-1cd45202.js +464 -0
- package/dist/esm/DateUtils-0a1bbd7a.js +44 -0
- package/dist/esm/ez-action-chip.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +22 -0
- package/dist/esm/ez-button_11.entry.js +111757 -0
- package/dist/esm/ez-calendar.entry.js +213 -0
- package/dist/esm/ez-collapsible-box_6.entry.js +625 -0
- package/dist/esm/ez-combo-box.entry.js +250 -0
- package/dist/esm/ez-date-time-input.entry.js +129 -0
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1834 -0
- package/dist/esm/ez-label-chip.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +36 -212
- package/dist/esm/ez-popover.entry.js +3 -3
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +5 -4
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/form-metadata.entry.js +125 -0
- package/dist/esm/{index-33153059.js → index-1dacecd3.js} +3 -6
- package/dist/esm/index-ca8700cb.js +7414 -0
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-14bee38e.entry.js +1 -0
- package/dist/ezui/p-37a611ea.js +1 -0
- package/dist/ezui/p-3a09c678.entry.js +1 -0
- package/dist/ezui/p-43c15c94.entry.js +1 -0
- package/dist/ezui/{p-34d288d0.entry.js → p-516d0e0f.entry.js} +1 -1
- package/dist/ezui/{p-0d476efb.entry.js → p-5a86e18a.entry.js} +1 -1
- package/dist/ezui/{p-47406a6e.entry.js → p-5da66d3e.entry.js} +1 -1
- package/dist/ezui/p-7107d7ef.js +1 -0
- package/dist/ezui/p-72ff3c95.entry.js +1 -0
- package/dist/ezui/p-74f978db.entry.js +369 -0
- package/dist/ezui/p-88f45a83.entry.js +1 -0
- package/dist/ezui/p-8b099482.js +1 -0
- package/dist/ezui/p-8d6cdd3e.entry.js +1 -0
- package/dist/ezui/p-8f4851a6.js +1 -0
- package/dist/ezui/p-9dfd537e.js +1 -0
- package/dist/ezui/p-a0331955.entry.js +1 -0
- package/dist/ezui/p-a15093e3.entry.js +1 -0
- package/dist/ezui/{p-8818da66.entry.js → p-a18a2d7b.entry.js} +1 -1
- package/dist/ezui/p-a19f2af3.entry.js +1 -0
- package/dist/ezui/p-c6d469fc.entry.js +1 -0
- package/dist/ezui/p-c89629eb.js +1 -0
- package/dist/ezui/p-da929c01.js +1 -0
- package/dist/ezui/p-f3c5f27e.entry.js +1 -0
- package/dist/types/components/ez-application/ez-application.d.ts +10 -0
- package/dist/types/components/ez-button/ez-button.d.ts +5 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +21 -0
- package/dist/types/components/ez-check/ez-check.d.ts +1 -1
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +3 -3
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +42 -0
- package/dist/types/components/ez-form/ez-form.d.ts +9 -9
- package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +1 -1
- package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +8 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +195 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +34 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +78 -0
- package/dist/types/components/ez-grid/subcomponents/gridconfig/grid-config.d.ts +30 -0
- package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +9 -0
- package/dist/types/components/ez-list/ez-list.d.ts +70 -17
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +29 -63
- package/dist/types/components/ez-search/ez-search.d.ts +2 -0
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -1
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -1
- package/dist/types/components/test-du/test-du.d.ts +6 -0
- package/dist/types/components.d.ts +289 -139
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/{Application.d.ts → ApplicationUtils.d.ts} +1 -1
- package/dist/types/utils/AssetsUtils.d.ts +1 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -1
- package/package.json +10 -8
- package/react/components.d.ts +6 -1
- package/react/components.js +6 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/CSSVarsUtils-f8827674.js +0 -18
- package/dist/cjs/RequestMetadata-2cd01e8a.js +0 -531
- package/dist/cjs/ez-button_16.cjs.entry.js +0 -4071
- package/dist/cjs/ez-list.cjs.entry.js +0 -174
- package/dist/cjs/ez-modal.cjs.entry.js +0 -65
- package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +0 -13
- package/dist/collection/components/ez-numeric-input/ez-numeric-input.js +0 -185
- package/dist/esm/CSSVarsUtils-e0128b01.js +0 -16
- package/dist/esm/RequestMetadata-c265c9d5.js +0 -527
- package/dist/esm/ez-button_16.entry.js +0 -4052
- package/dist/esm/ez-list.entry.js +0 -170
- package/dist/esm/ez-modal.entry.js +0 -61
- package/dist/ezui/p-061d21ba.entry.js +0 -1
- package/dist/ezui/p-15743b09.entry.js +0 -1
- package/dist/ezui/p-46d07e59.entry.js +0 -1
- package/dist/ezui/p-4df6f855.js +0 -1
- package/dist/ezui/p-50464bdf.entry.js +0 -1
- package/dist/ezui/p-67410dfa.entry.js +0 -1
- package/dist/ezui/p-7be54779.entry.js +0 -1
- package/dist/ezui/p-7f3bc6d9.entry.js +0 -1
- package/dist/ezui/p-9dfccb16.js +0 -1
- package/dist/ezui/p-d1889704.js +0 -1
- package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
|
@@ -1199,11 +1199,7 @@ const connectedCallback = (elm) => {
|
|
|
1199
1199
|
};
|
|
1200
1200
|
const disconnectedCallback = (elm) => {
|
|
1201
1201
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1202
|
-
|
|
1203
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1204
|
-
{
|
|
1205
|
-
safeCall(instance, 'disconnectedCallback');
|
|
1206
|
-
}
|
|
1202
|
+
getHostRef(elm);
|
|
1207
1203
|
}
|
|
1208
1204
|
};
|
|
1209
1205
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
@@ -1305,6 +1301,7 @@ const getAssetPath = (path) => {
|
|
|
1305
1301
|
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
1306
1302
|
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
1307
1303
|
};
|
|
1304
|
+
const setAssetPath = (path) => (plt.$resourcesUrl$ = path);
|
|
1308
1305
|
const hostRefs = new WeakMap();
|
|
1309
1306
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1310
1307
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
@@ -1400,3 +1397,4 @@ exports.getElement = getElement;
|
|
|
1400
1397
|
exports.h = h;
|
|
1401
1398
|
exports.promiseResolve = promiseResolve;
|
|
1402
1399
|
exports.registerInstance = registerInstance;
|
|
1400
|
+
exports.setAssetPath = setAssetPath;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-4e4bae01.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -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",{"metadataExecutor":[1,"metadata-executor"],"loadExecutor":[1,"load-executor"],"saveExecutor":[1,"save-executor"],"removeExecutor":[1,"remove-executor"],"fieldSearchExecutor":[1,"field-search-executor"],"ignoreSaveValidation":[4,"ignore-save-validation"],"metadata":[16],"slaveMode":[4,"slave-mode"],"enabled":[4],"loading":[1540],"validate":[64],"getChanges":[64],"changeFieldValue":[64]}]]],["ez-date-time-input.cjs",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}]]],["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-number-input.cjs",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"]}]]],["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]}]]],["form-metadata.cjs",[[1,"form-metadata",{"name":[1],"label":[1],"dataunit":[1025],"many":[4],"autoload":[4],"metadata":[1040]}]]],["ez-button_11.cjs",[[0,"test-du"],[0,"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]}],[1,"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-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-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"size":[513]}],[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-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-collapsible-box_6.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}],[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-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]}],[1,"place-holder"]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -5,19 +5,23 @@
|
|
|
5
5
|
"./components/ez-list/ez-list.js",
|
|
6
6
|
"./components/ez-upload/ez-upload.js",
|
|
7
7
|
"./components/ez-action-chip/ez-action-chip.js",
|
|
8
|
+
"./components/ez-application/ez-application.js",
|
|
8
9
|
"./components/ez-button/ez-button.js",
|
|
9
10
|
"./components/ez-calendar/ez-calendar.js",
|
|
10
11
|
"./components/ez-check/ez-check.js",
|
|
11
12
|
"./components/ez-collapsible-box/ez-collapsible-box.js",
|
|
12
13
|
"./components/ez-date-input/ez-date-input.js",
|
|
14
|
+
"./components/ez-date-time-input/ez-date-time-input.js",
|
|
13
15
|
"./components/ez-dialog/ez-dialog.js",
|
|
14
16
|
"./components/ez-form/subcomponents/form-metadata.js",
|
|
15
17
|
"./components/ez-form/subcomponents/place-holder.js",
|
|
18
|
+
"./components/ez-grid/ez-grid.js",
|
|
19
|
+
"./components/ez-grid/subcomponents/gridconfig/grid-config.js",
|
|
20
|
+
"./components/ez-grid/subcomponents/select-box/select-box.js",
|
|
16
21
|
"./components/ez-icon/ez-icon.js",
|
|
17
22
|
"./components/ez-label-chip/ez-label-chip.js",
|
|
18
23
|
"./components/ez-modal/ez-modal.js",
|
|
19
24
|
"./components/ez-number-input/ez-number-input.js",
|
|
20
|
-
"./components/ez-numeric-input/ez-numeric-input.js",
|
|
21
25
|
"./components/ez-popover/ez-popover.js",
|
|
22
26
|
"./components/ez-popup/ez-popup.js",
|
|
23
27
|
"./components/ez-search/ez-search.js",
|
|
@@ -25,11 +29,12 @@
|
|
|
25
29
|
"./components/ez-text-area/ez-text-area.js",
|
|
26
30
|
"./components/ez-text-input/ez-text-input.js",
|
|
27
31
|
"./components/ez-time-input/ez-time-input.js",
|
|
28
|
-
"./components/ez-toast/ez-toast.js"
|
|
32
|
+
"./components/ez-toast/ez-toast.js",
|
|
33
|
+
"./components/test-du/test-du.js"
|
|
29
34
|
],
|
|
30
35
|
"compiler": {
|
|
31
36
|
"name": "@stencil/core",
|
|
32
|
-
"version": "2.
|
|
37
|
+
"version": "2.13.0",
|
|
33
38
|
"typescriptVersion": "4.3.5"
|
|
34
39
|
},
|
|
35
40
|
"collections": [],
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component, h, Event } from "@stencil/core";
|
|
2
|
+
export class EzApplication {
|
|
3
|
+
componentWillLoad() {
|
|
4
|
+
//Initizalize application
|
|
5
|
+
}
|
|
6
|
+
componentDidLoad() {
|
|
7
|
+
this.applicationLoaded.emit(true);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("div", null));
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "ez-application"; }
|
|
13
|
+
static get originalStyleUrls() { return {
|
|
14
|
+
"$": ["ez-application.css"]
|
|
15
|
+
}; }
|
|
16
|
+
static get styleUrls() { return {
|
|
17
|
+
"$": ["ez-application.css"]
|
|
18
|
+
}; }
|
|
19
|
+
static get events() { return [{
|
|
20
|
+
"method": "applicationLoaded",
|
|
21
|
+
"name": "applicationLoaded",
|
|
22
|
+
"bubbles": true,
|
|
23
|
+
"cancelable": true,
|
|
24
|
+
"composed": true,
|
|
25
|
+
"docs": {
|
|
26
|
+
"tags": [],
|
|
27
|
+
"text": "Evento disparado quando a aplica\u00E7\u00E3o for carregada."
|
|
28
|
+
},
|
|
29
|
+
"complexType": {
|
|
30
|
+
"original": "boolean",
|
|
31
|
+
"resolved": "boolean",
|
|
32
|
+
"references": {}
|
|
33
|
+
}
|
|
34
|
+
}]; }
|
|
35
|
+
}
|
|
@@ -2,56 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
/* dimensions */
|
|
4
4
|
/*@doc Define a largura do componente.*/
|
|
5
|
-
--button--min-width: 100px;
|
|
5
|
+
--ez-button--min-width: 100px;
|
|
6
6
|
|
|
7
7
|
/* dimensions */
|
|
8
8
|
/*@doc Define a altura do componente.*/
|
|
9
|
-
--button--height: 42px;
|
|
9
|
+
--ez-button--height: 42px;
|
|
10
10
|
/*@doc Define a largura do slot que contém o ícone.*/
|
|
11
|
-
--button__icon--width: 18px;
|
|
11
|
+
--ez-button__icon--width: 18px;
|
|
12
12
|
/*@doc Define o espaçamento entre o ícone e o label.*/
|
|
13
|
-
--button__inline__icon--padding: 12px;
|
|
13
|
+
--ez-button__inline__icon--padding: 12px;
|
|
14
14
|
|
|
15
15
|
/*@doc Define o espaçamento superior ao label.*/
|
|
16
|
-
--button--padding-top: var(--space--medium, 12px);
|
|
16
|
+
--ez-button--padding-top: var(--space--medium, 12px);
|
|
17
17
|
/*@doc Define o espaçamento inferior ao label.*/
|
|
18
|
-
--button--padding-bottom: var(--space--medium, 12px);
|
|
18
|
+
--ez-button--padding-bottom: var(--space--medium, 12px);
|
|
19
19
|
/*@doc Define o espaçamento à direita do label.*/
|
|
20
|
-
--button--padding-right: var(--space--large, 24px);
|
|
20
|
+
--ez-button--padding-right: var(--space--large, 24px);
|
|
21
21
|
/*@doc Define o espaçamento à esquerda do label.*/
|
|
22
|
-
--button--padding-left: var(--space--large, 24px);
|
|
22
|
+
--ez-button--padding-left: var(--space--large, 24px);
|
|
23
23
|
|
|
24
24
|
/* general */
|
|
25
25
|
/*@doc Define a cor do label.*/
|
|
26
|
-
--button--color: var(--text--primary, #FFF);
|
|
26
|
+
--ez-button--color: var(--text--primary, #FFF);
|
|
27
27
|
/*@doc Define o tamanho do label.*/
|
|
28
|
-
--button--font-size: var(--text--medium, 14px);
|
|
28
|
+
--ez-button--font-size: var(--text--medium, 14px);
|
|
29
29
|
/*@doc Define a família da fonte do label.*/
|
|
30
|
-
--button--font-family: var(--font-pattern, Arial);
|
|
30
|
+
--ez-button--font-family: var(--font-pattern, Arial);
|
|
31
31
|
/*@doc Define o peso da fonte do label.*/
|
|
32
|
-
--button--font-weight: var(--text-weight--large);
|
|
32
|
+
--ez-button--font-weight: var(--text-weight--large);
|
|
33
33
|
/*@doc Define a cor de fundo do botão.*/
|
|
34
|
-
--button--background-color: var(--background--medium, #c0c0c0);
|
|
34
|
+
--ez-button--background-color: var(--background--medium, #c0c0c0);
|
|
35
35
|
/*@doc Define o raio da borda do botão.*/
|
|
36
|
-
--button--border-radius: var(--border--radius-large, 12px);
|
|
36
|
+
--ez-button--border-radius: var(--border--radius-large, 12px);
|
|
37
37
|
/*@doc Define o estilo da borda do botão.*/
|
|
38
|
-
--button--border: none;
|
|
38
|
+
--ez-button--border: none;
|
|
39
39
|
|
|
40
40
|
/*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
|
|
41
|
-
--button--hover--background-color: var(--background--strong, var(--button--background-color));
|
|
41
|
+
--ez-button--hover--background-color: var(--background--strong, var(--ez-button--background-color));
|
|
42
42
|
|
|
43
43
|
/*@doc Define a cor do texto quando o botão está desabilitado.*/
|
|
44
|
-
--button--disabled-color: var(--text--disable);
|
|
44
|
+
--ez-button--disabled-color: var(--text--disable);
|
|
45
45
|
/*@doc Define a cor de fundo quando o botão está desabilitado.*/
|
|
46
|
-
--button--disabled--background-color: var(--color--disable-secondary);
|
|
46
|
+
--ez-button--disabled--background-color: var(--color--disable-secondary);
|
|
47
47
|
|
|
48
48
|
/*@doc Define o estido da borda quando o botão está selecionado.*/
|
|
49
|
-
--button--focus--border: var(--button--border);
|
|
49
|
+
--ez-button--focus--border: var(--ez-button--border);
|
|
50
50
|
/*@doc Define a sombra do botão quando selecionado.*/
|
|
51
|
-
--button--focus--box-shadow: none;
|
|
51
|
+
--ez-button--focus--box-shadow: none;
|
|
52
52
|
|
|
53
53
|
/*@doc Define a cor do texto do botão no modo link.*/
|
|
54
|
-
--button--link-color: var(--title--primary, '#C0C0C0');
|
|
54
|
+
--ez-button--link-color: var(--title--primary, '#C0C0C0');
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
ez-icon {
|
|
@@ -68,52 +68,86 @@ button {
|
|
|
68
68
|
transition: background-color 0.2s linear;
|
|
69
69
|
|
|
70
70
|
/*public*/
|
|
71
|
-
min-width: var(--button--min-width);
|
|
72
|
-
height: var(--button--height);
|
|
73
|
-
font-family: var(--button--font-family);
|
|
74
|
-
font-size: var(--button--font-size);
|
|
75
|
-
font-weight: var(--button--font-weight);
|
|
76
|
-
padding: var(--button--padding-top) var(--button--padding-right) var(--button--padding-bottom) var(--button--padding-left);
|
|
77
|
-
border-radius: var(--button--border-radius);
|
|
78
|
-
|
|
79
|
-
background-color: var(--button--background-color);
|
|
80
|
-
color: var(--button--color);
|
|
81
|
-
fill: var(--button--color);
|
|
82
|
-
border: var(--button--border);
|
|
71
|
+
min-width: var(--ez-button--min-width);
|
|
72
|
+
height: var(--ez-button--height);
|
|
73
|
+
font-family: var(--ez-button--font-family);
|
|
74
|
+
font-size: var(--ez-button--font-size);
|
|
75
|
+
font-weight: var(--ez-button--font-weight);
|
|
76
|
+
padding: var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);
|
|
77
|
+
border-radius: var(--ez-button--border-radius);
|
|
78
|
+
|
|
79
|
+
background-color: var(--ez-button--background-color);
|
|
80
|
+
color: var(--ez-button--color);
|
|
81
|
+
fill: var(--ez-button--color);
|
|
82
|
+
border: var(--ez-button--border);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
button:hover {
|
|
86
|
-
background-color: var(--button--hover--background-color);
|
|
86
|
+
background-color: var(--ez-button--hover--background-color);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
button:focus {
|
|
90
90
|
/*FIXME: Estranho o botão não dar nenhuma indicação de que recebeu foco*/
|
|
91
91
|
outline: none;
|
|
92
|
-
border: var(--button--focus--border);
|
|
93
|
-
box-shadow: var(--button--focus--box-shadow);
|
|
92
|
+
border: var(--ez-button--focus--border);
|
|
93
|
+
box-shadow: var(--ez-button--focus--box-shadow);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
button:disabled {
|
|
97
|
-
background-color: var(--button--disabled--background-color);
|
|
98
|
-
color: var(--button--disabled-color);
|
|
99
|
-
fill: var(--button--disabled-color);
|
|
97
|
+
background-color: var(--ez-button--disabled--background-color);
|
|
98
|
+
color: var(--ez-button--disabled-color);
|
|
99
|
+
fill: var(--ez-button--disabled-color);
|
|
100
100
|
border: none;
|
|
101
101
|
cursor: no-drop;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
button.icon {
|
|
105
|
+
padding: 0px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
button.small {
|
|
109
|
+
width: 32px;
|
|
110
|
+
min-width: 32px;
|
|
111
|
+
height: 32px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
button.medium {
|
|
105
115
|
width: 42px;
|
|
106
116
|
min-width: 42px;
|
|
107
117
|
height: 42px;
|
|
108
|
-
padding: 0px;
|
|
109
118
|
}
|
|
110
119
|
|
|
120
|
+
button.large {
|
|
121
|
+
width: 52px;
|
|
122
|
+
min-width: 52px;
|
|
123
|
+
height: 52px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.label-icon {
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
align-items: center;
|
|
130
|
+
color: var(--ez-button--color);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.label-icon label {
|
|
134
|
+
max-width: 150px;
|
|
135
|
+
white-space: nowrap;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
text-overflow: ellipsis;
|
|
138
|
+
cursor: pointer;
|
|
139
|
+
font-family: var(--ez-button--font-family);
|
|
140
|
+
font-size: var(--ez-button--font-size);
|
|
141
|
+
font-weight: var(--ez-button--font-weight);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
111
145
|
a {
|
|
112
146
|
/*private*/
|
|
113
|
-
font-family: var(--button--font-family);
|
|
114
|
-
font-size: var(--button--font-size);
|
|
115
|
-
font-weight: var(--button--font-weight);
|
|
116
|
-
color: var(--button--link-color);
|
|
147
|
+
font-family: var(--ez-button--font-family);
|
|
148
|
+
font-size: var(--ez-button--font-size);
|
|
149
|
+
font-weight: var(--ez-button--font-weight);
|
|
150
|
+
color: var(--ez-button--link-color);
|
|
117
151
|
cursor: pointer;
|
|
118
152
|
display: flex;
|
|
119
153
|
align-items: center;
|
|
@@ -9,6 +9,13 @@ export class EzButton {
|
|
|
9
9
|
* Define o modo de uso do botão; opções: icon, link e regular
|
|
10
10
|
*/
|
|
11
11
|
this.mode = "regular";
|
|
12
|
+
/**
|
|
13
|
+
* Quando em modo "icon" pode-se escolher entre [small,medium,large] (somente para o modo "icon")
|
|
14
|
+
*/
|
|
15
|
+
this.size = "medium";
|
|
16
|
+
}
|
|
17
|
+
getIconSize() {
|
|
18
|
+
return this.size;
|
|
12
19
|
}
|
|
13
20
|
handleSlotChange(ev) {
|
|
14
21
|
const slot = ev.target;
|
|
@@ -16,10 +23,10 @@ export class EzButton {
|
|
|
16
23
|
if (this.mode == "link") {
|
|
17
24
|
content.style.display = "inline";
|
|
18
25
|
if (slot.name == "leftIcon") {
|
|
19
|
-
content.style.paddingRight = "var(--button__inline__icon--padding)";
|
|
26
|
+
content.style.paddingRight = "var(--ez-button__inline__icon--padding)";
|
|
20
27
|
}
|
|
21
28
|
else if (slot.name == "rightIcon") {
|
|
22
|
-
content.style.paddingLeft = "var(--button__inline__icon--padding)";
|
|
29
|
+
content.style.paddingLeft = "var(--ez-button__inline__icon--padding)";
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
else {
|
|
@@ -28,10 +35,17 @@ export class EzButton {
|
|
|
28
35
|
}
|
|
29
36
|
render() {
|
|
30
37
|
if (this.mode == "icon") {
|
|
31
|
-
return (h("button", { class: "icon", type: "button", disabled: !this.enabled },
|
|
32
|
-
h("ez-icon", { class: "icon", href: this.image, size:
|
|
38
|
+
return (h("button", { class: "icon " + this.size, type: "button", disabled: !this.enabled },
|
|
39
|
+
h("ez-icon", { class: "icon", href: this.image, size: this.getIconSize(), onClick: evt => { if (!this.enabled)
|
|
33
40
|
evt.stopPropagation(); } })));
|
|
34
41
|
}
|
|
42
|
+
else if (this.mode == "label-icon") {
|
|
43
|
+
return (h("div", { class: "label-icon" },
|
|
44
|
+
h("button", { class: "icon", type: "button", disabled: !this.enabled },
|
|
45
|
+
h("ez-icon", { class: "icon", href: this.image, size: "large", onClick: evt => { if (!this.enabled)
|
|
46
|
+
evt.stopPropagation(); } })),
|
|
47
|
+
h("label", { title: this.label }, this.label)));
|
|
48
|
+
}
|
|
35
49
|
else if (this.mode == "link") {
|
|
36
50
|
return (h("a", null,
|
|
37
51
|
h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
@@ -123,6 +137,24 @@ export class EzButton {
|
|
|
123
137
|
},
|
|
124
138
|
"attribute": "image",
|
|
125
139
|
"reflect": true
|
|
140
|
+
},
|
|
141
|
+
"size": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "string",
|
|
146
|
+
"resolved": "string",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": "Quando em modo \"icon\" pode-se escolher entre [small,medium,large] (somente para o modo \"icon\")"
|
|
154
|
+
},
|
|
155
|
+
"attribute": "size",
|
|
156
|
+
"reflect": true,
|
|
157
|
+
"defaultValue": "\"medium\""
|
|
126
158
|
}
|
|
127
159
|
}; }
|
|
128
160
|
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
/* cal__body */
|
|
10
10
|
/*@doc Define a cor de fundo do corpo do calendário.*/
|
|
11
11
|
--ez-calendar__body--background-color: var(--background--xlight, #FFF);
|
|
12
|
+
/*@doc Define a cor de fundo do corpo da hora do calendário.*/
|
|
13
|
+
--ez-calendar__Time--background-color: var(--background--xlight, #FAFAFA);
|
|
12
14
|
/*@doc Define o espaçamento do corpo do calendário.*/
|
|
13
15
|
--ez-calendar__body--padding: var(--space--medium, 12px);
|
|
14
16
|
/*@doc Define o raio da borda do corpo do calendário.*/
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
/*@doc Define o raio da borda das células.*/
|
|
47
49
|
--ez-calendar__cell--border-radius: var(--border--radius-small, 6px);
|
|
48
50
|
/*@doc Define a cor de fundo das células.*/
|
|
49
|
-
--ez-calendar__cell--over--background-color: var(--color--strokes, #
|
|
51
|
+
--ez-calendar__cell--over--background-color: var(--color--strokes, #E2F4EF);
|
|
50
52
|
/*@doc Define a cor do texto para células secundárias (fora do mês selecionado).*/
|
|
51
53
|
--ez-calendar__cell--outset--color: var(--color--strokes, #C0C0C0);
|
|
52
54
|
/*@doc Define a cor de fundo das células selecionadas.*/
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
/*@doc Define a cor do texto do botão "Hoje".*/
|
|
59
61
|
--ez-calendar__btn-today--color: var(--color--primary);
|
|
60
62
|
/*@doc Define a cor de fundo do botão "Hoje" quando o cursor está sobre ele.*/
|
|
61
|
-
--ez-calendar__btn-today--hover--background-color: var(--color--strokes, #
|
|
63
|
+
--ez-calendar__btn-today--hover--background-color: var(--color--strokes, #E2F4EF);
|
|
62
64
|
/*@doc Define o raio da borda do botão "Hoje".*/
|
|
63
65
|
--ez-calendar__btn-today--border-radius: var(--border--radius-small, 6px);
|
|
64
66
|
|
|
@@ -236,4 +238,69 @@
|
|
|
236
238
|
.calendar__btn-today:hover {
|
|
237
239
|
/*public*/
|
|
238
240
|
background-color: var(--ez-calendar__btn-today--hover--background-color);
|
|
239
|
-
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
section{
|
|
244
|
+
display: flex;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.calendarTime {
|
|
248
|
+
/*private*/
|
|
249
|
+
margin-left: -10px;
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-direction: column;
|
|
252
|
+
padding: 12px 6px;
|
|
253
|
+
padding-left: 16px;
|
|
254
|
+
padding-bottom: 0px;
|
|
255
|
+
|
|
256
|
+
/*public*/
|
|
257
|
+
/*TODO Criar variavel para color o calendar_time var(--ez-calendar__body-time--background-color)*/
|
|
258
|
+
background-color: var(--ez-calendar__Time--background-color);
|
|
259
|
+
border-top-right-radius: var(--ez-calendar__body--border-radius);
|
|
260
|
+
border-bottom-right-radius: var(--ez-calendar__body--border-radius);
|
|
261
|
+
box-shadow: var(--ez-calendar__body--shadow);
|
|
262
|
+
}
|
|
263
|
+
.calendar__column {
|
|
264
|
+
height: 180px;
|
|
265
|
+
padding: 0px;
|
|
266
|
+
margin: 0px;
|
|
267
|
+
overflow: auto;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Scrollbar definido como 0 para não exibir o scroll mas permitir a rolagem */
|
|
271
|
+
.calendar__column::-webkit-scrollbar {
|
|
272
|
+
width: 0px;
|
|
273
|
+
max-width: 0px;
|
|
274
|
+
min-width: 0px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.calendarTime__header{
|
|
278
|
+
/*private*/
|
|
279
|
+
padding-left: 6px;
|
|
280
|
+
padding-right: 6px;
|
|
281
|
+
display: flex;
|
|
282
|
+
justify-content: space-between;
|
|
283
|
+
padding-bottom: var(--space--medium, 12px);
|
|
284
|
+
margin: var(--space--small, 6px) var(--space--, 12px);
|
|
285
|
+
font-weight: var(--text-weight--large, 600);
|
|
286
|
+
font-size: var(--title--medium, 16px);
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
/*public*/
|
|
290
|
+
font-family: var(--ez-calendar--font-family);
|
|
291
|
+
color: var(--ez-calendar--color);
|
|
292
|
+
text-shadow: var(--ez-calendar--text-shadow);
|
|
293
|
+
border-bottom: solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);
|
|
294
|
+
font-family: var(--ez-calendar--font-family);
|
|
295
|
+
color: var(--ez-calendar--color);
|
|
296
|
+
text-shadow: var(--ez-calendar--text-shadow);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.separatorTime{
|
|
300
|
+
color: #A2ABB9;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.endHidden {
|
|
304
|
+
-webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%);
|
|
305
|
+
}
|
|
306
|
+
|