@sankhyalabs/ezui 1.1.76 → 1.1.79
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/AssetsUtils-02db4f46.js +24 -0
- package/dist/cjs/CSSVarsUtils-66e86394.js +18 -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_3.cjs.entry.js +520 -0
- package/dist/cjs/ez-calendar_13.cjs.entry.js +2417 -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-grid.cjs.entry.js +110375 -0
- package/dist/cjs/ez-icon.cjs.entry.js +30 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal_2.cjs.entry.js +370 -0
- 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 -28
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/{index-9431aeeb.js → index-2003dec4.js} +1 -15
- package/dist/cjs/index-a2266984.js +7417 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +8 -5
- 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 +16 -1
- package/dist/collection/components/ez-button/ez-button.js +27 -2
- 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-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 +2 -2
- package/dist/collection/components/ez-date-input/ez-date-input.js +1 -1
- 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/DataBinder.js +44 -0
- package/dist/collection/components/ez-form/ez-form.css +1 -15
- package/dist/collection/components/ez-form/ez-form.js +109 -428
- package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +45 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +11 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +14 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +13 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +5 -0
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +5 -0
- package/dist/collection/components/ez-form/store/form.slice.js +38 -0
- package/dist/collection/components/ez-form/structure/FormItem.js +11 -0
- package/dist/collection/components/ez-form/structure/FormSheet.js +5 -0
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +86 -0
- 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.js +1 -0
- 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 +87 -0
- package/dist/collection/servidor.js +94 -94
- package/dist/collection/utils/{Application.js → ApplicationUtils.js} +4 -4
- package/dist/collection/utils/CSSVarsUtils.js +6 -6
- package/dist/custom-elements/index.d.ts +32 -14
- package/dist/custom-elements/index.js +119419 -3209
- package/dist/esm/AssetsUtils-76ca41e1.js +22 -0
- package/dist/esm/CSSVarsUtils-aeee9825.js +16 -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_3.entry.js +514 -0
- package/dist/esm/ez-calendar_13.entry.js +2401 -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-grid.entry.js +110371 -0
- package/dist/esm/ez-icon.entry.js +26 -0
- package/dist/esm/ez-label-chip.entry.js +1 -1
- package/dist/esm/ez-modal_2.entry.js +365 -0
- 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 +4 -22
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/{index-fd3c8023.js → index-077c7fcf.js} +1 -15
- package/dist/esm/index-afe19542.js +7410 -0
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-00b837e2.js +1 -0
- package/dist/ezui/{p-a0b6eee2.entry.js → p-0a2056d9.entry.js} +1 -1
- package/dist/ezui/p-0d8368fc.entry.js +1 -0
- package/dist/ezui/p-1e36e3ff.entry.js +1 -0
- package/dist/ezui/p-446ec85b.js +1 -0
- package/dist/ezui/p-5509ee41.entry.js +369 -0
- package/dist/ezui/{p-d443f020.entry.js → p-57ea4b84.entry.js} +1 -1
- package/dist/ezui/{p-66954a04.entry.js → p-6d157776.entry.js} +1 -1
- package/dist/ezui/p-7a1f2e0e.entry.js +1 -0
- package/dist/ezui/p-7de3c95d.js +1 -0
- package/dist/ezui/p-857ead8e.entry.js +1 -0
- package/dist/ezui/p-8b099482.js +1 -0
- package/dist/ezui/p-920bb8c9.entry.js +1 -0
- package/dist/ezui/p-9be02ecf.entry.js +1 -0
- package/dist/ezui/p-a4a39579.entry.js +1 -0
- package/dist/ezui/p-c89629eb.js +1 -0
- package/dist/ezui/p-d5699f29.entry.js +1 -0
- package/dist/ezui/p-d64a3939.entry.js +1 -0
- package/dist/ezui/{p-823ff0a0.entry.js → p-da31cd21.entry.js} +1 -1
- 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-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/DataBinder.d.ts +10 -0
- package/dist/types/components/ez-form/ez-form.d.ts +24 -32
- package/dist/types/components/ez-form/fieldbuilder/FieldBuilder.d.ts +2 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.d.ts +3 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/FileInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +8 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/TextArea.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/fieldbuilder/tpl/TextInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form/store/form.slice.d.ts +24 -0
- package/dist/types/components/ez-form/structure/FormItem.d.ts +9 -0
- package/dist/types/components/ez-form/structure/FormSheet.d.ts +9 -0
- package/dist/types/components/ez-form/structure/FormSheetMetadata.d.ts +27 -0
- 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/test-du/test-du.d.ts +12 -0
- package/dist/types/components.d.ts +271 -175
- 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/CSSVarsUtils.d.ts +1 -1
- package/package.json +10 -8
- package/react/components.d.ts +6 -3
- package/react/components.js +6 -3
- 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 -4079
- package/dist/cjs/ez-list.cjs.entry.js +0 -174
- package/dist/cjs/ez-modal.cjs.entry.js +0 -65
- package/dist/cjs/ez-number-input.cjs.entry.js +0 -250
- package/dist/collection/components/ez-form/assets/trash-can-outline.svg +0 -3
- package/dist/collection/components/ez-form/store/Form.actions.js +0 -132
- package/dist/collection/components/ez-form/store/Form.reducer.js +0 -194
- package/dist/collection/components/ez-form/store/Form.selectors.js +0 -44
- package/dist/collection/components/ez-form/subcomponents/DataUnit.js +0 -301
- package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +0 -8
- package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +0 -24
- package/dist/collection/components/ez-form/subcomponents/form-metadata.js +0 -227
- package/dist/collection/components/ez-form/subcomponents/place-holder.js +0 -14
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +0 -95
- package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +0 -27
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +0 -41
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +0 -37
- 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 -4060
- package/dist/esm/ez-list.entry.js +0 -170
- package/dist/esm/ez-modal.entry.js +0 -61
- package/dist/esm/ez-number-input.entry.js +0 -246
- package/dist/ezui/assets/trash-can-outline.svg +0 -3
- package/dist/ezui/p-11ae4ae7.entry.js +0 -1
- package/dist/ezui/p-47fa3d6c.entry.js +0 -1
- package/dist/ezui/p-8ab6168f.entry.js +0 -1
- package/dist/ezui/p-9c1fb51c.entry.js +0 -1
- package/dist/ezui/p-9d85125b.entry.js +0 -1
- package/dist/ezui/p-9dfccb16.js +0 -1
- package/dist/ezui/p-a7b546b2.entry.js +0 -1
- package/dist/ezui/p-c833c94f.entry.js +0 -1
- package/dist/ezui/p-d1889704.js +0 -1
- package/dist/ezui/p-e0ab3746.js +0 -1
- package/dist/types/components/ez-form/store/Form.actions.d.ts +0 -111
- package/dist/types/components/ez-form/store/Form.reducer.d.ts +0 -20
- package/dist/types/components/ez-form/store/Form.selectors.d.ts +0 -14
- package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +0 -91
- package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +0 -24
- package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +0 -16
- package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +0 -3
- package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +0 -11
- package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +0 -13
- package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +0 -14
- package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +0 -19
- package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
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-2003dec4.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-grid.cjs",[[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]}]]],["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-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-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513]}]]],["ez-button_3.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]}],[1,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"size":[513]}]]],["ez-calendar_13.cjs",[[0,"test-du"],[0,"ez-form",{"dataUnit":[1040],"config":[16],"submit":[64],"cancel":[64],"validate":[64]}],[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-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]}],[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]}],[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}],[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-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-modal_2.cjs",[[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"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -5,19 +5,21 @@
|
|
|
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
|
-
"./components/ez-
|
|
15
|
-
"./components/ez-
|
|
16
|
+
"./components/ez-grid/ez-grid.js",
|
|
17
|
+
"./components/ez-grid/subcomponents/gridconfig/grid-config.js",
|
|
18
|
+
"./components/ez-grid/subcomponents/select-box/select-box.js",
|
|
16
19
|
"./components/ez-icon/ez-icon.js",
|
|
17
20
|
"./components/ez-label-chip/ez-label-chip.js",
|
|
18
21
|
"./components/ez-modal/ez-modal.js",
|
|
19
22
|
"./components/ez-number-input/ez-number-input.js",
|
|
20
|
-
"./components/ez-numeric-input/ez-numeric-input.js",
|
|
21
23
|
"./components/ez-popover/ez-popover.js",
|
|
22
24
|
"./components/ez-popup/ez-popup.js",
|
|
23
25
|
"./components/ez-search/ez-search.js",
|
|
@@ -25,11 +27,12 @@
|
|
|
25
27
|
"./components/ez-text-area/ez-text-area.js",
|
|
26
28
|
"./components/ez-text-input/ez-text-input.js",
|
|
27
29
|
"./components/ez-time-input/ez-time-input.js",
|
|
28
|
-
"./components/ez-toast/ez-toast.js"
|
|
30
|
+
"./components/ez-toast/ez-toast.js",
|
|
31
|
+
"./components/test-du/test-du.js"
|
|
29
32
|
],
|
|
30
33
|
"compiler": {
|
|
31
34
|
"name": "@stencil/core",
|
|
32
|
-
"version": "2.
|
|
35
|
+
"version": "2.13.0",
|
|
33
36
|
"typescriptVersion": "4.3.5"
|
|
34
37
|
},
|
|
35
38
|
"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
|
+
}
|
|
@@ -102,10 +102,25 @@ button:disabled {
|
|
|
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
|
-
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
button.large {
|
|
121
|
+
width: 52px;
|
|
122
|
+
min-width: 52px;
|
|
123
|
+
height: 52px;
|
|
109
124
|
}
|
|
110
125
|
|
|
111
126
|
.label-icon {
|
|
@@ -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;
|
|
@@ -28,8 +35,8 @@ 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
|
}
|
|
35
42
|
else if (this.mode == "label-icon") {
|
|
@@ -130,6 +137,24 @@ export class EzButton {
|
|
|
130
137
|
},
|
|
131
138
|
"attribute": "image",
|
|
132
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\""
|
|
133
158
|
}
|
|
134
159
|
}; }
|
|
135
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
|
+
|
|
@@ -6,6 +6,8 @@ export class EzCalendar {
|
|
|
6
6
|
this._todayLabel = "Hoje";
|
|
7
7
|
this._weekDayLabels = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
8
8
|
this._monthLabels = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
|
|
9
|
+
this._hoursLabel = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"];
|
|
10
|
+
this._minutosLabel = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59"];
|
|
9
11
|
/**
|
|
10
12
|
* A data selecionada no calendário
|
|
11
13
|
*/
|
|
@@ -15,6 +17,14 @@ export class EzCalendar {
|
|
|
15
17
|
* quando o método show() for acionado.
|
|
16
18
|
*/
|
|
17
19
|
this.floating = false;
|
|
20
|
+
/**
|
|
21
|
+
* Exibe ou não as horas e minutos no calendario
|
|
22
|
+
*/
|
|
23
|
+
this.time = false;
|
|
24
|
+
/**
|
|
25
|
+
* Exibe ou não os segundos no calendario
|
|
26
|
+
*/
|
|
27
|
+
this.showSeconds = false;
|
|
18
28
|
}
|
|
19
29
|
/**
|
|
20
30
|
* Usado no modo floating. Faz com que o componente seja exibido.
|
|
@@ -72,48 +82,151 @@ export class EzCalendar {
|
|
|
72
82
|
forceUpdate(this);
|
|
73
83
|
}
|
|
74
84
|
selectDate(d) {
|
|
75
|
-
|
|
85
|
+
let newDate = d;
|
|
86
|
+
if (this.value && (this.time || this.showSeconds)) {
|
|
87
|
+
newDate.setHours(this.value.getHours());
|
|
88
|
+
newDate.setMinutes(this.value.getMinutes());
|
|
89
|
+
if (this.showSeconds) {
|
|
90
|
+
newDate.setSeconds(this.value.getSeconds());
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
newDate.setSeconds(0);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
this.value = newDate;
|
|
97
|
+
this.ezChange.emit();
|
|
98
|
+
}
|
|
99
|
+
selectHours(hour) {
|
|
100
|
+
if (!this.value) {
|
|
101
|
+
this.value = new Date();
|
|
102
|
+
}
|
|
103
|
+
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), hour, this.value.getMinutes(), this.value.getSeconds());
|
|
76
104
|
this.ezChange.emit();
|
|
77
105
|
}
|
|
106
|
+
selectMinutes(minute) {
|
|
107
|
+
if (!this.value) {
|
|
108
|
+
this.value = new Date();
|
|
109
|
+
}
|
|
110
|
+
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), minute, this.value.getSeconds());
|
|
111
|
+
this.ezChange.emit();
|
|
112
|
+
}
|
|
113
|
+
selectSeconds(second) {
|
|
114
|
+
if (!this.value) {
|
|
115
|
+
this.value = new Date();
|
|
116
|
+
}
|
|
117
|
+
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), this.value.getMinutes(), second);
|
|
118
|
+
this.ezChange.emit();
|
|
119
|
+
}
|
|
120
|
+
updateScroll(element) {
|
|
121
|
+
if (element) {
|
|
122
|
+
const { scrollHeight, clientHeight, scrollTop } = element;
|
|
123
|
+
const remainingScroll = scrollHeight - clientHeight - Math.ceil(scrollTop);
|
|
124
|
+
if (remainingScroll > 0) {
|
|
125
|
+
element.classList.add("endHidden");
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
element.classList.remove("endHidden");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
78
132
|
componentDidRender() {
|
|
79
133
|
if (this.floating && this._firstRender) {
|
|
80
134
|
this._calendarHeight = this._box.clientHeight;
|
|
81
135
|
this._box.remove();
|
|
82
136
|
this._firstRender = false;
|
|
83
137
|
}
|
|
138
|
+
this.updateScroll(this._hoursScroll);
|
|
139
|
+
this.updateScroll(this._minutesScroll);
|
|
140
|
+
this.updateScroll(this._secondsScroll);
|
|
141
|
+
}
|
|
142
|
+
componentDidLoad() {
|
|
143
|
+
if (this.time || this.showSeconds) {
|
|
144
|
+
this._hoursScroll.scrollTop = this._hoursSelect.offsetTop - 64;
|
|
145
|
+
this._minutesScroll.scrollTop = this._minutesSelect.offsetTop - 64;
|
|
146
|
+
if (this.showSeconds) {
|
|
147
|
+
this._secondsScroll.scrollTop = this._secondsSelect.offsetTop - 64;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
84
150
|
}
|
|
85
151
|
render() {
|
|
86
152
|
if (this._currentPosition == null) {
|
|
87
153
|
this._currentPosition = new Date();
|
|
88
|
-
|
|
154
|
+
if (this.value) {
|
|
155
|
+
this._currentPosition.setTime(this.value.getTime());
|
|
156
|
+
}
|
|
89
157
|
this._currentPosition.setDate(1);
|
|
90
158
|
}
|
|
91
159
|
const firstDate = new Date();
|
|
92
160
|
firstDate.setTime(this._currentPosition.getTime());
|
|
93
161
|
firstDate.setDate(1 - firstDate.getDay());
|
|
94
162
|
return (h("section", { ref: elem => this._container = elem },
|
|
95
|
-
h("div", {
|
|
96
|
-
h("div", { class: "
|
|
97
|
-
h("
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
h("div", { class: "
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
h("
|
|
163
|
+
h("div", { ref: elem => this._box = elem, style: { display: 'flex' } },
|
|
164
|
+
h("div", { class: "calendar" },
|
|
165
|
+
h("div", { class: "calendar__header" },
|
|
166
|
+
h("button", { class: "calendar__btn-previous", onClick: () => this.changeMonth(-1) }),
|
|
167
|
+
h("label", { class: "calendar__lbl-month" }, this.getMonthLabel()),
|
|
168
|
+
h("button", { class: "calendar__btn-next", onClick: () => this.changeMonth(1) })),
|
|
169
|
+
h("div", { class: "calendar__body" },
|
|
170
|
+
h("div", { class: "calendar__line" }, this._weekDayLabels.map(day => h("div", { class: "calendar__cell calendar__cell--unselectable" }, day))),
|
|
171
|
+
[0, 7, 14, 21, 28, 35].map(offset => h("div", { class: "calendar__line" }, [0, 1, 2, 3, 4, 5, 6].map(index => {
|
|
172
|
+
const date = new Date();
|
|
173
|
+
date.setTime(firstDate.getTime());
|
|
174
|
+
date.setDate(date.getDate() + offset + index);
|
|
175
|
+
let classNames = "calendar__cell";
|
|
176
|
+
if (this._currentPosition.getMonth() != date.getMonth()) {
|
|
177
|
+
classNames += " calendar__cell--secondary";
|
|
178
|
+
}
|
|
179
|
+
else if (this.isSelectedDate(date)) {
|
|
180
|
+
classNames += " calendar__cell--selected";
|
|
181
|
+
}
|
|
182
|
+
return h("div", { class: classNames, onClick: () => this.selectDate(date) }, date.getDate());
|
|
183
|
+
})))),
|
|
184
|
+
h("div", { class: "calendar__footer" },
|
|
185
|
+
h("button", { class: "calendar__btn-today", onClick: () => this.selectDate(new Date()) }, this._todayLabel))),
|
|
186
|
+
(this.time || this.showSeconds) &&
|
|
187
|
+
h("div", { class: "calendarTime" },
|
|
188
|
+
h("div", { class: "calendarTime__header" },
|
|
189
|
+
h("div", null, "H"),
|
|
190
|
+
h("div", { class: "separatorTime" }, ":"),
|
|
191
|
+
h("div", null, "M"),
|
|
192
|
+
this.showSeconds &&
|
|
193
|
+
h("div", { class: "separatorTime" }, ":"),
|
|
194
|
+
this.showSeconds &&
|
|
195
|
+
h("div", null, "S")),
|
|
196
|
+
h("div", { class: "calendar__body ", style: { display: 'flex', paddingLeft: '6px', paddingRight: '6px' } },
|
|
197
|
+
h("div", { class: "calendar__column", ref: elem => this._hoursScroll = elem, onScroll: () => this.updateScroll(this._hoursScroll) }, this._hoursLabel.map((offset, index) => {
|
|
198
|
+
if (index === this.value.getHours()) {
|
|
199
|
+
return (h("div", { style: { display: 'flex' }, ref: elem => this._hoursSelect = elem },
|
|
200
|
+
h("div", { class: "calendar__cell calendar__cell--selected", onClick: () => this.selectHours(index) }, offset),
|
|
201
|
+
h("div", { class: "separatorTime" }, ":")));
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
return (h("div", { style: { display: 'flex' } },
|
|
205
|
+
h("div", { class: "calendar__cell", onClick: () => this.selectHours(index) }, offset),
|
|
206
|
+
h("div", { class: "separatorTime" }, ":")));
|
|
207
|
+
}
|
|
208
|
+
})),
|
|
209
|
+
h("div", { class: "calendar__column", ref: elem => this._minutesScroll = elem, onScroll: () => this.updateScroll(this._minutesScroll) }, this._minutosLabel.map((offset, index) => {
|
|
210
|
+
if (index === this.value.getMinutes()) {
|
|
211
|
+
return (h("div", { style: { display: 'flex' }, ref: elem => this._minutesSelect = elem },
|
|
212
|
+
h("div", { class: "calendar__cell calendar__cell--selected", onClick: () => this.selectMinutes(index) }, offset),
|
|
213
|
+
this.showSeconds && h("div", { class: "separatorTime" }, ":")));
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
return (h("div", { style: { display: 'flex' } },
|
|
217
|
+
h("div", { class: "calendar__cell", onClick: () => this.selectMinutes(index) }, offset),
|
|
218
|
+
this.showSeconds && h("div", { class: "separatorTime" }, ":")));
|
|
219
|
+
}
|
|
220
|
+
})),
|
|
221
|
+
this.showSeconds &&
|
|
222
|
+
h("div", { class: "calendar__column", ref: elem => this._secondsScroll = elem, onScroll: () => this.updateScroll(this._secondsScroll) }, this._minutosLabel.map((offset, index) => {
|
|
223
|
+
if (index === this.value.getSeconds()) {
|
|
224
|
+
return (h("div", { class: "calendar__cell calendar__cell--selected", onClick: () => this.selectSeconds(index), ref: elem => this._secondsSelect = elem }, offset));
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
return (h("div", { class: "calendar__cell", onClick: () => this.selectSeconds(index) }, offset));
|
|
228
|
+
}
|
|
229
|
+
})))))));
|
|
117
230
|
}
|
|
118
231
|
static get is() { return "ez-calendar"; }
|
|
119
232
|
static get encapsulation() { return "shadow"; }
|
|
@@ -161,6 +274,42 @@ export class EzCalendar {
|
|
|
161
274
|
"attribute": "floating",
|
|
162
275
|
"reflect": true,
|
|
163
276
|
"defaultValue": "false"
|
|
277
|
+
},
|
|
278
|
+
"time": {
|
|
279
|
+
"type": "boolean",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "boolean",
|
|
283
|
+
"resolved": "boolean",
|
|
284
|
+
"references": {}
|
|
285
|
+
},
|
|
286
|
+
"required": false,
|
|
287
|
+
"optional": false,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": "Exibe ou n\u00E3o as horas e minutos no calendario"
|
|
291
|
+
},
|
|
292
|
+
"attribute": "time",
|
|
293
|
+
"reflect": true,
|
|
294
|
+
"defaultValue": "false"
|
|
295
|
+
},
|
|
296
|
+
"showSeconds": {
|
|
297
|
+
"type": "boolean",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "boolean",
|
|
301
|
+
"resolved": "boolean",
|
|
302
|
+
"references": {}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": false,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "Exibe ou n\u00E3o os segundos no calendario"
|
|
309
|
+
},
|
|
310
|
+
"attribute": "show-seconds",
|
|
311
|
+
"reflect": true,
|
|
312
|
+
"defaultValue": "false"
|
|
164
313
|
}
|
|
165
314
|
}; }
|
|
166
315
|
static get events() { return [{
|