@sankhyalabs/ezui 1.1.113 → 1.1.116
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/ez-combo-box.cjs.entry.js +13 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-filter-input.cjs.entry.js +73 -0
- package/dist/cjs/ez-grid.cjs.entry.js +74 -12
- package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-search.cjs.entry.js +17 -13
- package/dist/cjs/ez-text-area.cjs.entry.js +28 -9
- package/dist/cjs/ez-text-input.cjs.entry.js +11 -6
- package/dist/cjs/ez-time-input.cjs.entry.js +7 -2
- package/dist/cjs/ez-toast.cjs.entry.js +3 -2
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/test-du.cjs.entry.js +2 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +31 -4
- package/dist/collection/components/ez-date-input/ez-date-input.js +24 -2
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +24 -2
- package/dist/collection/components/ez-filter-input/ez-filter-input.css +4 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +248 -0
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +14 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +60 -11
- package/dist/collection/components/ez-number-input/ez-number-input.js +23 -1
- package/dist/collection/components/ez-search/ez-search.js +35 -13
- package/dist/collection/components/ez-text-area/ez-text-area.css +71 -1
- package/dist/collection/components/ez-text-area/ez-text-area.js +67 -9
- package/dist/collection/components/ez-text-input/ez-text-input.css +78 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +29 -6
- package/dist/collection/components/ez-time-input/ez-time-input.js +25 -2
- package/dist/collection/components/ez-toast/ez-toast.css +1 -1
- package/dist/collection/components/ez-toast/ez-toast.js +2 -1
- package/dist/collection/components/test-du/test-du.js +2 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +250 -63
- package/dist/esm/ez-combo-box.entry.js +13 -4
- package/dist/esm/ez-date-input.entry.js +6 -2
- package/dist/esm/ez-date-time-input.entry.js +6 -2
- package/dist/esm/ez-filter-input.entry.js +69 -0
- package/dist/esm/ez-grid.entry.js +74 -12
- package/dist/esm/ez-number-input.entry.js +5 -1
- package/dist/esm/ez-search.entry.js +17 -13
- package/dist/esm/ez-text-area.entry.js +28 -9
- package/dist/esm/ez-text-input.entry.js +11 -6
- package/dist/esm/ez-time-input.entry.js +7 -2
- package/dist/esm/ez-toast.entry.js +3 -2
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/test-du.entry.js +2 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-01169201.entry.js +1 -0
- package/dist/ezui/p-055f1b6a.entry.js +1 -0
- package/dist/ezui/p-2f14fe3d.entry.js +1 -0
- package/dist/ezui/{p-a038e7a5.entry.js → p-3cd17150.entry.js} +1 -1
- package/dist/ezui/p-43feac7d.entry.js +1 -0
- package/dist/ezui/p-6f39077b.entry.js +1 -0
- package/dist/ezui/p-7247379d.entry.js +1 -0
- package/dist/ezui/p-83d5f1ca.entry.js +1 -0
- package/dist/ezui/p-8c447785.entry.js +1 -0
- package/dist/ezui/p-8f2d46f8.entry.js +1 -0
- package/dist/ezui/p-d3d3e2ac.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -0
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +52 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +16 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
- package/dist/types/components/ez-search/ez-search.d.ts +24 -20
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +11 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
- package/dist/types/components/ez-toast/ez-toast.d.ts +1 -0
- package/dist/types/components.d.ts +153 -0
- package/package.json +6 -5
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-25e87823.entry.js +0 -1
- package/dist/ezui/p-3a8bf0a8.entry.js +0 -1
- package/dist/ezui/p-44d4f8d6.entry.js +0 -1
- package/dist/ezui/p-65893e25.entry.js +0 -1
- package/dist/ezui/p-9aecc079.entry.js +0 -1
- package/dist/ezui/p-9ea5b22e.entry.js +0 -1
- package/dist/ezui/p-bc2834fa.entry.js +0 -1
- package/dist/ezui/p-c27495d9.entry.js +0 -1
- package/dist/ezui/p-fb73f557.entry.js +0 -1
package/dist/cjs/ezui.cjs.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ez-grid.cjs",[[6,"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]}]]],["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-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"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[64]}]]],["ez-search.cjs",[[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"],"suppressEmptyOption":[4,"suppress-empty-option"],"setFocus":[64],"setBlur":[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"],"
|
|
18
|
+
return index.bootstrapLazy([["ez-grid.cjs",[[6,"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]}]]],["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-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"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"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[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"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-search.cjs",[[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"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"setFocus":[64],"setBlur":[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"],"mode":[513],"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"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}]]],["test-du.cjs",[[0,"test-du"]]],["select-box.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-list.cjs",[[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]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-upload.cjs",[[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],"setFocus":[64],"setBlur":[64]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["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],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"_preSelection":[32],"_visibleOptions":[32],"setFocus":[64],"setBlur":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]]], options);
|
|
19
19
|
});
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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-grid.cjs",[[6,"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]}]]],["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-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"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"setFocus":[64],"setBlur":[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"],"setFocus":[64],"setBlur":[64]}]]],["ez-search.cjs",[[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"],"suppressEmptyOption":[4,"suppress-empty-option"],"setFocus":[64],"setBlur":[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"],"
|
|
17
|
+
return index.bootstrapLazy([["ez-grid.cjs",[[6,"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]}]]],["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-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"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"],"canClose":[1028,"can-close"],"show":[64]}]]],["grid-config.cjs",[[2,"grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-date-input.cjs",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[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"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-search.cjs",[[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"],"suppressEmptyOption":[4,"suppress-empty-option"],"mode":[513],"setFocus":[64],"setBlur":[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"],"mode":[513],"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"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-collapsible-box.cjs",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"showHide":[64]}]]],["test-du.cjs",[[0,"test-du"]]],["select-box.cjs",[[1,"select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-list.cjs",[[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]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-upload.cjs",[[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],"setFocus":[64],"setBlur":[64]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["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],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"_preSelection":[32],"_visibleOptions":[32],"setFocus":[64],"setBlur":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -17,7 +17,8 @@ let TestDu = class {
|
|
|
17
17
|
private _ezDateTimeInput// : HTMLEzDateTimeInput;
|
|
18
18
|
private _ezNumberInput// : HTMLEzNumberInput
|
|
19
19
|
private _ezSearch// : HTMLEzSearch
|
|
20
|
-
private _ezUpload// : HTMLEzUpload
|
|
20
|
+
private _ezUpload// : HTMLEzUpload
|
|
21
|
+
private _ezFilterInput// : HTMLEzFilterInput*/
|
|
21
22
|
componentWillLoad() {
|
|
22
23
|
this.dataUnit = new core.DataUnit("testes_com_formulario");
|
|
23
24
|
this.dataUnit.metadata = {
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"./components/ez-date-input/ez-date-input.js",
|
|
15
15
|
"./components/ez-date-time-input/ez-date-time-input.js",
|
|
16
16
|
"./components/ez-dialog/ez-dialog.js",
|
|
17
|
+
"./components/ez-filter-input/ez-filter-input.js",
|
|
17
18
|
"./components/ez-grid/ez-grid.js",
|
|
18
19
|
"./components/ez-grid/subcomponents/gridconfig/grid-config.js",
|
|
19
20
|
"./components/ez-grid/subcomponents/select-box/select-box.js",
|
|
@@ -23,6 +23,10 @@ export class EzComboBox {
|
|
|
23
23
|
* Permite exibir a mensagem de erro.
|
|
24
24
|
*/
|
|
25
25
|
this.canShowError = true;
|
|
26
|
+
/**
|
|
27
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
28
|
+
*/
|
|
29
|
+
this.mode = "regular";
|
|
26
30
|
}
|
|
27
31
|
internalUpdate() {
|
|
28
32
|
if (this._inputElement) {
|
|
@@ -84,7 +88,7 @@ export class EzComboBox {
|
|
|
84
88
|
//FIXME: Provavelmente isso fará com que o popup abra em uma
|
|
85
89
|
//posição errada no futuro. Preferi fazer simples no começo,
|
|
86
90
|
//porque não quis onerar o text input com essa funcionalidade...
|
|
87
|
-
const top = (this.errorMessage || !this.canShowError) ? "0px" : "-
|
|
91
|
+
const top = (this.errorMessage || !this.canShowError || this.mode == "slim") ? "0px" : "-19px";
|
|
88
92
|
this._floatingID = FloatingManager.float(this._optionsList, this._listContainer, { autoClose: true, top });
|
|
89
93
|
window.requestAnimationFrame(() => {
|
|
90
94
|
this._optionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
@@ -151,8 +155,13 @@ export class EzComboBox {
|
|
|
151
155
|
this.updateVisibleOptions();
|
|
152
156
|
}
|
|
153
157
|
else {
|
|
154
|
-
|
|
155
|
-
|
|
158
|
+
if (Array.isArray(source)) {
|
|
159
|
+
this._source = source;
|
|
160
|
+
this.updateVisibleOptions();
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
this.value = source;
|
|
164
|
+
}
|
|
156
165
|
}
|
|
157
166
|
}
|
|
158
167
|
loadOptions(mode, argument = "") {
|
|
@@ -257,7 +266,7 @@ export class EzComboBox {
|
|
|
257
266
|
}
|
|
258
267
|
render() {
|
|
259
268
|
return (h(Host, null,
|
|
260
|
-
h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage }, this.searchMode ?
|
|
269
|
+
h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, this.searchMode ?
|
|
261
270
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-search", onClick: () => { this.loadOptions("ADVANCED"); }, slot: "leftIcon" })
|
|
262
271
|
:
|
|
263
272
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-options", slot: "rightIcon", onClick: () => this.showOptions() })),
|
|
@@ -475,6 +484,24 @@ export class EzComboBox {
|
|
|
475
484
|
"attribute": "can-show-error",
|
|
476
485
|
"reflect": true,
|
|
477
486
|
"defaultValue": "true"
|
|
487
|
+
},
|
|
488
|
+
"mode": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"mutable": false,
|
|
491
|
+
"complexType": {
|
|
492
|
+
"original": "string",
|
|
493
|
+
"resolved": "string",
|
|
494
|
+
"references": {}
|
|
495
|
+
},
|
|
496
|
+
"required": false,
|
|
497
|
+
"optional": false,
|
|
498
|
+
"docs": {
|
|
499
|
+
"tags": [],
|
|
500
|
+
"text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
|
|
501
|
+
},
|
|
502
|
+
"attribute": "mode",
|
|
503
|
+
"reflect": true,
|
|
504
|
+
"defaultValue": "\"regular\""
|
|
478
505
|
}
|
|
479
506
|
}; }
|
|
480
507
|
static get states() { return {
|
|
@@ -7,6 +7,10 @@ export class EzDateInput {
|
|
|
7
7
|
* Deixa o campo disponível ou não para uso.
|
|
8
8
|
*/
|
|
9
9
|
this.enabled = true;
|
|
10
|
+
/**
|
|
11
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
12
|
+
*/
|
|
13
|
+
this.mode = "regular";
|
|
10
14
|
}
|
|
11
15
|
setLabel() {
|
|
12
16
|
this._textInput.label = this.label;
|
|
@@ -47,7 +51,7 @@ export class EzDateInput {
|
|
|
47
51
|
//FIXME: Provavelmente isso fará com que o popup abra em uma
|
|
48
52
|
//posição errada no futuro. Preferi fazer simples no começo,
|
|
49
53
|
//porque não quis onerar o text input com essa funcionalidade...
|
|
50
|
-
const top = this._textInput.errorMessage ? 0 : -
|
|
54
|
+
const top = this._textInput.errorMessage || this.mode == "slim" ? 0 : -19;
|
|
51
55
|
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
52
56
|
}
|
|
53
57
|
hideCalendar() {
|
|
@@ -78,7 +82,7 @@ export class EzDateInput {
|
|
|
78
82
|
render() {
|
|
79
83
|
return (h(Host, null,
|
|
80
84
|
h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { if (event.key === "H" || event.key === "h")
|
|
81
|
-
this.changeValue(new Date()); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage },
|
|
85
|
+
this.changeValue(new Date()); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode },
|
|
82
86
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })),
|
|
83
87
|
h("ez-calendar", { onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
|
|
84
88
|
}
|
|
@@ -161,6 +165,24 @@ export class EzDateInput {
|
|
|
161
165
|
},
|
|
162
166
|
"attribute": "error-message",
|
|
163
167
|
"reflect": true
|
|
168
|
+
},
|
|
169
|
+
"mode": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"mutable": false,
|
|
172
|
+
"complexType": {
|
|
173
|
+
"original": "string",
|
|
174
|
+
"resolved": "string",
|
|
175
|
+
"references": {}
|
|
176
|
+
},
|
|
177
|
+
"required": false,
|
|
178
|
+
"optional": false,
|
|
179
|
+
"docs": {
|
|
180
|
+
"tags": [],
|
|
181
|
+
"text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
|
|
182
|
+
},
|
|
183
|
+
"attribute": "mode",
|
|
184
|
+
"reflect": true,
|
|
185
|
+
"defaultValue": "\"regular\""
|
|
164
186
|
}
|
|
165
187
|
}; }
|
|
166
188
|
static get events() { return [{
|
|
@@ -11,6 +11,10 @@ export class EzDateTimeInput {
|
|
|
11
11
|
* Exibe ou não os segundos no input
|
|
12
12
|
*/
|
|
13
13
|
this.showSeconds = false;
|
|
14
|
+
/**
|
|
15
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
16
|
+
*/
|
|
17
|
+
this.mode = "regular";
|
|
14
18
|
}
|
|
15
19
|
setLabel() {
|
|
16
20
|
this._textInput.label = this.label;
|
|
@@ -83,7 +87,7 @@ export class EzDateTimeInput {
|
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
showCalendar() {
|
|
86
|
-
const top = this._textInput.errorMessage ? 0 : -
|
|
90
|
+
const top = this._textInput.errorMessage || this.mode == "slim" ? 0 : -19;
|
|
87
91
|
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
88
92
|
this._calendar.style.visibility = 'inherit';
|
|
89
93
|
}
|
|
@@ -123,7 +127,7 @@ export class EzDateTimeInput {
|
|
|
123
127
|
}
|
|
124
128
|
render() {
|
|
125
129
|
return (h(Host, null,
|
|
126
|
-
h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { this.onChangeKeyDown(event); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, onFocus: () => this.onFocused(), onClick: () => this.onClicked() },
|
|
130
|
+
h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { this.onChangeKeyDown(event); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onFocus: () => this.onFocused(), onClick: () => this.onClicked() },
|
|
127
131
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })),
|
|
128
132
|
h("ez-calendar", { onEzChange: (event) => { this.changeValue(this._calendar.value); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
|
|
129
133
|
}
|
|
@@ -224,6 +228,24 @@ export class EzDateTimeInput {
|
|
|
224
228
|
"attribute": "show-seconds",
|
|
225
229
|
"reflect": true,
|
|
226
230
|
"defaultValue": "false"
|
|
231
|
+
},
|
|
232
|
+
"mode": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "string",
|
|
237
|
+
"resolved": "string",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": false,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [],
|
|
244
|
+
"text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
|
|
245
|
+
},
|
|
246
|
+
"attribute": "mode",
|
|
247
|
+
"reflect": true,
|
|
248
|
+
"defaultValue": "\"regular\""
|
|
227
249
|
}
|
|
228
250
|
}; }
|
|
229
251
|
static get events() { return [{
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { Component, h, Event, Prop, Watch, Element, Method } from "@stencil/core";
|
|
2
|
+
import CSSVarsUtils from "../../utils/CSSVarsUtils";
|
|
3
|
+
export class EzFilterInput {
|
|
4
|
+
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Deixa o campo disponível ou não para uso.
|
|
7
|
+
*/
|
|
8
|
+
this.enabled = true;
|
|
9
|
+
/**
|
|
10
|
+
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
11
|
+
*/
|
|
12
|
+
this.mode = "regular";
|
|
13
|
+
}
|
|
14
|
+
setLabel() {
|
|
15
|
+
if (this._textInput) {
|
|
16
|
+
this._textInput.label = this.label;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
setErrorMessage() {
|
|
20
|
+
if (this._textInput) {
|
|
21
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
applyValueToInput() {
|
|
25
|
+
if (this._textInput) {
|
|
26
|
+
this._textInput.value = this.value;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Realiza o foco no componente de input
|
|
31
|
+
*/
|
|
32
|
+
async setFocus() {
|
|
33
|
+
this._textInput.setFocus();
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Remove o foco no componente de input
|
|
37
|
+
*/
|
|
38
|
+
async setBlur() {
|
|
39
|
+
this._textInput.setBlur();
|
|
40
|
+
}
|
|
41
|
+
changeValue(evt) {
|
|
42
|
+
const newValue = evt.detail;
|
|
43
|
+
this.errorMessage = "";
|
|
44
|
+
if (newValue !== this.value) {
|
|
45
|
+
this.value = newValue;
|
|
46
|
+
this.ezChange.emit(this.value);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
componentDidLoad() {
|
|
50
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (h("ez-text-input", { ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.changeValue(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, loading: this.loading, mode: this.mode },
|
|
54
|
+
h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
55
|
+
}
|
|
56
|
+
static get is() { return "ez-filter-input"; }
|
|
57
|
+
static get encapsulation() { return "shadow"; }
|
|
58
|
+
static get originalStyleUrls() { return {
|
|
59
|
+
"$": ["ez-filter-input.css"]
|
|
60
|
+
}; }
|
|
61
|
+
static get styleUrls() { return {
|
|
62
|
+
"$": ["ez-filter-input.css"]
|
|
63
|
+
}; }
|
|
64
|
+
static get properties() { return {
|
|
65
|
+
"label": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "string",
|
|
70
|
+
"resolved": "string",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": "T\u00EDtulo do campo"
|
|
78
|
+
},
|
|
79
|
+
"attribute": "label",
|
|
80
|
+
"reflect": false
|
|
81
|
+
},
|
|
82
|
+
"value": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": true,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string",
|
|
87
|
+
"resolved": "string",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "O valor informado pelo usu\u00E1rio"
|
|
95
|
+
},
|
|
96
|
+
"attribute": "value",
|
|
97
|
+
"reflect": true
|
|
98
|
+
},
|
|
99
|
+
"enabled": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"mutable": false,
|
|
102
|
+
"complexType": {
|
|
103
|
+
"original": "boolean",
|
|
104
|
+
"resolved": "boolean",
|
|
105
|
+
"references": {}
|
|
106
|
+
},
|
|
107
|
+
"required": false,
|
|
108
|
+
"optional": false,
|
|
109
|
+
"docs": {
|
|
110
|
+
"tags": [],
|
|
111
|
+
"text": "Deixa o campo dispon\u00EDvel ou n\u00E3o para uso."
|
|
112
|
+
},
|
|
113
|
+
"attribute": "enabled",
|
|
114
|
+
"reflect": false,
|
|
115
|
+
"defaultValue": "true"
|
|
116
|
+
},
|
|
117
|
+
"loading": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "boolean",
|
|
122
|
+
"resolved": "boolean",
|
|
123
|
+
"references": {}
|
|
124
|
+
},
|
|
125
|
+
"required": false,
|
|
126
|
+
"optional": false,
|
|
127
|
+
"docs": {
|
|
128
|
+
"tags": [],
|
|
129
|
+
"text": "Deixa o componente em modo \"carregando\"."
|
|
130
|
+
},
|
|
131
|
+
"attribute": "loading",
|
|
132
|
+
"reflect": true
|
|
133
|
+
},
|
|
134
|
+
"errorMessage": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"mutable": true,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "string",
|
|
139
|
+
"resolved": "string",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": "Quando h\u00E1 um problema de valida\u00E7\u00E3o, serve como orienta\u00E7\u00E3o ao usu\u00E1rio"
|
|
147
|
+
},
|
|
148
|
+
"attribute": "error-message",
|
|
149
|
+
"reflect": true
|
|
150
|
+
},
|
|
151
|
+
"restrict": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"mutable": false,
|
|
154
|
+
"complexType": {
|
|
155
|
+
"original": "string",
|
|
156
|
+
"resolved": "string",
|
|
157
|
+
"references": {}
|
|
158
|
+
},
|
|
159
|
+
"required": false,
|
|
160
|
+
"optional": false,
|
|
161
|
+
"docs": {
|
|
162
|
+
"tags": [],
|
|
163
|
+
"text": "Restringe o que o usu\u00E1rio pode digitar. Cada caractere digitado ser\u00E1 testado\ne deve estar contido nessa string ou ser\u00E1 descartado."
|
|
164
|
+
},
|
|
165
|
+
"attribute": "restrict",
|
|
166
|
+
"reflect": false
|
|
167
|
+
},
|
|
168
|
+
"mode": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"mutable": false,
|
|
171
|
+
"complexType": {
|
|
172
|
+
"original": "string",
|
|
173
|
+
"resolved": "string",
|
|
174
|
+
"references": {}
|
|
175
|
+
},
|
|
176
|
+
"required": false,
|
|
177
|
+
"optional": false,
|
|
178
|
+
"docs": {
|
|
179
|
+
"tags": [],
|
|
180
|
+
"text": "Define o modo do tamanho do campo; op\u00E7\u00F5es: slim e regular."
|
|
181
|
+
},
|
|
182
|
+
"attribute": "mode",
|
|
183
|
+
"reflect": true,
|
|
184
|
+
"defaultValue": "\"regular\""
|
|
185
|
+
}
|
|
186
|
+
}; }
|
|
187
|
+
static get events() { return [{
|
|
188
|
+
"method": "ezChange",
|
|
189
|
+
"name": "ezChange",
|
|
190
|
+
"bubbles": true,
|
|
191
|
+
"cancelable": true,
|
|
192
|
+
"composed": true,
|
|
193
|
+
"docs": {
|
|
194
|
+
"tags": [],
|
|
195
|
+
"text": "Evento disparado quando o estado do componente \u00E9 alterado (onEzChange)."
|
|
196
|
+
},
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
}
|
|
202
|
+
}]; }
|
|
203
|
+
static get methods() { return {
|
|
204
|
+
"setFocus": {
|
|
205
|
+
"complexType": {
|
|
206
|
+
"signature": "() => Promise<void>",
|
|
207
|
+
"parameters": [],
|
|
208
|
+
"references": {
|
|
209
|
+
"Promise": {
|
|
210
|
+
"location": "global"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"return": "Promise<void>"
|
|
214
|
+
},
|
|
215
|
+
"docs": {
|
|
216
|
+
"text": "Realiza o foco no componente de input",
|
|
217
|
+
"tags": []
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"setBlur": {
|
|
221
|
+
"complexType": {
|
|
222
|
+
"signature": "() => Promise<void>",
|
|
223
|
+
"parameters": [],
|
|
224
|
+
"references": {
|
|
225
|
+
"Promise": {
|
|
226
|
+
"location": "global"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"return": "Promise<void>"
|
|
230
|
+
},
|
|
231
|
+
"docs": {
|
|
232
|
+
"text": "Remove o foco no componente de input",
|
|
233
|
+
"tags": []
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}; }
|
|
237
|
+
static get elementRef() { return "_elem"; }
|
|
238
|
+
static get watchers() { return [{
|
|
239
|
+
"propName": "label",
|
|
240
|
+
"methodName": "setLabel"
|
|
241
|
+
}, {
|
|
242
|
+
"propName": "errorMessage",
|
|
243
|
+
"methodName": "setErrorMessage"
|
|
244
|
+
}, {
|
|
245
|
+
"propName": "value",
|
|
246
|
+
"methodName": "applyValueToInput"
|
|
247
|
+
}]; }
|
|
248
|
+
}
|
|
@@ -11,12 +11,25 @@ export default class DataUnitBridge {
|
|
|
11
11
|
this._gridController.setColumnsDef(this.buildColumnDefs(), true);
|
|
12
12
|
break;
|
|
13
13
|
case Action.RECORDS_REMOVED:
|
|
14
|
-
|
|
14
|
+
const { records } = action.payload;
|
|
15
|
+
this._gridController.removeRows(records);
|
|
16
|
+
break;
|
|
15
17
|
case Action.RECORDS_ADDED:
|
|
16
18
|
case Action.RECORDS_COPIED:
|
|
19
|
+
this._gridController.addRows(action.payload);
|
|
20
|
+
break;
|
|
21
|
+
case Action.EDITION_CANCELED:
|
|
17
22
|
case Action.DATA_SAVED:
|
|
18
23
|
this._gridController.refresh();
|
|
19
24
|
break;
|
|
25
|
+
case Action.SELECTION_CHANGED:
|
|
26
|
+
const { selection } = action.payload;
|
|
27
|
+
this._gridController.selectRows(selection);
|
|
28
|
+
break;
|
|
29
|
+
case Action.DATA_CHANGED:
|
|
30
|
+
const changes = Object.assign({}, action.payload);
|
|
31
|
+
delete changes.records;
|
|
32
|
+
this._gridController.changeValues(changes, action.payload.records);
|
|
20
33
|
}
|
|
21
34
|
}
|
|
22
35
|
buildColumnDefs() {
|