@sankhyalabs/ezui 7.1.0-dev.21 → 7.1.0-dev.23
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-4fb87a9e.js → ApplicationUtils-006ca96f.js} +1 -1
- package/dist/cjs/FormLayout-fe8da83c.js +9 -0
- package/dist/cjs/{app-globals-cb31a206.js → app-globals-5cb12916.js} +1 -1
- package/dist/cjs/{ez-combo-box-list_5.cjs.entry.js → classic-search-list_7.cjs.entry.js} +212 -5
- package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js +36 -15
- package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
- package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
- package/dist/cjs/ez-classic-input.cjs.entry.js +99 -18
- package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
- package/dist/cjs/ez-classic-search-plus.cjs.entry.js +407 -0
- package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
- package/dist/cjs/ez-classic-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-time-input.cjs.entry.js +197 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
- package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +121 -35
- package/dist/cjs/ez-form.cjs.entry.js +11 -7
- package/dist/cjs/ez-grid.cjs.entry.js +7 -6
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +7 -6
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +10 -9
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +13 -14
- package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
- package/dist/cjs/ez-text-input.cjs.entry.js +37 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-e61642ff.js → index-350d0fa0.js} +30 -0
- package/dist/cjs/index-a7b0c73d.js +42 -18
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-51e50b59.js → search-column-fbf680d7.js} +10 -5
- package/dist/cjs/searchFormatters-051f8677.js +23 -0
- package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
- package/dist/collection/collection-manifest.json +58 -5
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +77 -18
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +155 -19
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
- package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +406 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +988 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +511 -0
- package/dist/collection/components/ez-form/ez-form.js +9 -5
- package/dist/collection/components/ez-form-view/ez-form-view.css +8 -3
- package/dist/collection/components/ez-form-view/ez-form-view.js +40 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +6 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/structure/index.js +1 -1
- package/dist/collection/components/ez-icon/ez-icon.css +1 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +2 -3
- package/dist/collection/components/ez-split-button/ez-split-button.js +18 -13
- package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
- package/dist/collection/utils/form/DataBinder.js +2 -2
- package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
- package/dist/collection/utils/i18n/locales/en-us.js +10 -0
- package/dist/collection/utils/i18n/locales/es-es.js +10 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +10 -0
- package/dist/collection/utils/searchColumn/search-column.js +6 -1
- package/dist/custom-elements/index.d.ts +48 -0
- package/dist/custom-elements/index.js +2722 -337
- package/dist/esm/{ApplicationUtils-985c24ae.js → ApplicationUtils-0c5cb207.js} +1 -1
- package/dist/esm/FormLayout-bda67973.js +9 -0
- package/dist/esm/{app-globals-75f8a758.js → app-globals-1db10325.js} +1 -1
- package/dist/esm/{ez-combo-box-list_5.entry.js → classic-search-list_7.entry.js} +212 -7
- package/dist/esm/ez-actions-button.entry.js +4 -3
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-classic-combo-box.entry.js +36 -15
- package/dist/esm/ez-classic-date-input.entry.js +197 -0
- package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
- package/dist/esm/ez-classic-input.entry.js +100 -19
- package/dist/esm/ez-classic-number-input.entry.js +201 -0
- package/dist/esm/ez-classic-search-plus.entry.js +403 -0
- package/dist/esm/ez-classic-search.entry.js +679 -0
- package/dist/esm/ez-classic-text-area.entry.js +1 -1
- package/dist/esm/ez-classic-time-input.entry.js +193 -0
- package/dist/esm/ez-collapsible-box.entry.js +4 -3
- package/dist/esm/ez-combo-box.entry.js +4 -3
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +121 -35
- package/dist/esm/ez-form.entry.js +11 -7
- package/dist/esm/ez-grid.entry.js +5 -4
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-pagination.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +4 -3
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +4 -3
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-sortable-list.entry.js +1 -1
- package/dist/esm/ez-spinner.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +13 -14
- package/dist/esm/ez-split-item.entry.js +4 -3
- package/dist/esm/ez-text-input.entry.js +37 -0
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-a3b24b5d.js → index-225aa0c3.js} +30 -0
- package/dist/esm/index-baa5e267.js +42 -18
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-0c42248b.js → search-column-40a78cac.js} +10 -5
- package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
- package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-1c3f43e8.entry.js → p-0248846f.entry.js} +1 -1
- package/dist/ezui/p-0625743b.entry.js +1 -0
- package/dist/ezui/p-07fb22c3.entry.js +1 -0
- package/dist/ezui/p-26cd4c2e.entry.js +1 -0
- package/dist/ezui/{p-2fd16ff2.entry.js → p-2da9faf1.entry.js} +1 -1
- package/dist/ezui/{p-1bf40959.entry.js → p-34d459e4.entry.js} +1 -1
- package/dist/ezui/p-44183c39.entry.js +1 -0
- package/dist/ezui/p-47e4a8ce.js +1 -0
- package/dist/ezui/p-4af745e1.entry.js +1 -0
- package/dist/ezui/{p-6c484770.entry.js → p-4c2a4435.entry.js} +1 -1
- package/dist/ezui/{p-782fe2e3.entry.js → p-4c76b365.entry.js} +1 -1
- package/dist/ezui/p-4e576bb9.entry.js +1 -0
- package/dist/ezui/{p-5e6de2c1.entry.js → p-4e869617.entry.js} +1 -1
- package/dist/ezui/{p-0e325699.entry.js → p-4f7ad3ee.entry.js} +1 -1
- package/dist/ezui/{p-582c3f90.entry.js → p-544605c4.entry.js} +1 -1
- package/dist/ezui/p-556bf329.entry.js +1 -0
- package/dist/ezui/{p-2676e2a3.entry.js → p-56565777.entry.js} +1 -1
- package/dist/ezui/p-57b68d43.entry.js +1 -0
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/{p-714452c7.entry.js → p-5abb220b.entry.js} +1 -1
- package/dist/ezui/p-619225ce.entry.js +1 -0
- package/dist/ezui/p-679a2942.entry.js +1 -0
- package/dist/ezui/{p-474076b3.js → p-6a794336.js} +1 -1
- package/dist/ezui/{p-4ea5c8a7.entry.js → p-6ac056d7.entry.js} +1 -1
- package/dist/ezui/p-7134726a.entry.js +1 -0
- package/dist/ezui/{p-67f9fadb.entry.js → p-729bd1be.entry.js} +1 -1
- package/dist/ezui/p-7953ecb9.entry.js +1 -0
- package/dist/ezui/{p-e2e0dd76.entry.js → p-7edc3ef7.entry.js} +1 -1
- package/dist/ezui/p-88a115b3.js +1 -0
- package/dist/ezui/{p-f45ddc1f.entry.js → p-8e5f1c74.entry.js} +1 -1
- package/dist/ezui/p-951b32a1.entry.js +1 -0
- package/dist/ezui/{p-9568a93d.entry.js → p-97312709.entry.js} +1 -1
- package/dist/ezui/{p-0ec5c128.js → p-9825c1d2.js} +1 -1
- package/dist/ezui/p-987185c4.entry.js +1 -0
- package/dist/ezui/p-a0f51b99.entry.js +1 -0
- package/dist/ezui/p-a3bad8f8.entry.js +1 -0
- package/dist/ezui/{p-6570ca10.entry.js → p-a4351519.entry.js} +1 -1
- package/dist/ezui/{p-7624767b.entry.js → p-a872c642.entry.js} +1 -1
- package/dist/ezui/p-b0a716ef.entry.js +1 -0
- package/dist/ezui/p-b36475f9.entry.js +1 -0
- package/dist/ezui/{p-2b23906a.entry.js → p-b705b342.entry.js} +1 -1
- package/dist/ezui/{p-9771ea3c.entry.js → p-b8078832.entry.js} +1 -1
- package/dist/ezui/p-c0ae79fa.entry.js +1 -0
- package/dist/ezui/{p-98218fbc.js → p-c178730b.js} +1 -1
- package/dist/ezui/{p-a1a63294.entry.js → p-c56ee8c0.entry.js} +1 -1
- package/dist/ezui/{p-3d71e8e1.entry.js → p-cd8be0c7.entry.js} +1 -1
- package/dist/ezui/{p-a13e65a4.entry.js → p-ce0a0036.entry.js} +1 -1
- package/dist/ezui/{p-0aafbc30.entry.js → p-df802548.entry.js} +1 -1
- package/dist/ezui/p-e2689b33.entry.js +1 -0
- package/dist/ezui/{p-dc192d01.entry.js → p-e2972977.entry.js} +1 -1
- package/dist/ezui/{p-47d9256e.entry.js → p-e3a42f47.entry.js} +1 -1
- package/dist/ezui/p-e3cd5080.entry.js +1 -0
- package/dist/ezui/{p-28af6826.entry.js → p-e493ad57.entry.js} +1 -1
- package/dist/ezui/{p-3fcf79c7.entry.js → p-f5552540.entry.js} +1 -1
- package/dist/ezui/p-ff4312d5.js +1 -0
- package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +9 -3
- package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
- package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +18 -1
- package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
- package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
- package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
- package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +186 -0
- package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
- package/dist/types/components/ez-form/ez-form.d.ts +1 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +7 -0
- package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +7 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
- package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components.d.ts +2967 -1814
- package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
- package/dist/types/utils/i18n/locales/en-us.d.ts +10 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +10 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +10 -0
- package/dist/types/utils/i18n/translations.d.ts +30 -0
- package/package.json +1 -1
- package/react/components.d.ts +8 -0
- package/react/components.js +8 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-2e5de2a7.entry.js +0 -1
- package/dist/ezui/p-30ffb9ed.js +0 -1
- package/dist/ezui/p-48effc69.entry.js +0 -1
- package/dist/ezui/p-6a982147.js +0 -1
- package/dist/ezui/p-6d7f2fdc.entry.js +0 -1
- package/dist/ezui/p-6f466aec.entry.js +0 -1
- package/dist/ezui/p-7fe97ef5.entry.js +0 -1
- package/dist/ezui/p-8709c4f6.entry.js +0 -1
- package/dist/ezui/p-8a8006e6.entry.js +0 -1
- package/dist/ezui/p-8d626d2b.entry.js +0 -1
- package/dist/ezui/p-9b2e6438.entry.js +0 -1
- package/dist/ezui/p-9d004e22.entry.js +0 -1
- package/dist/ezui/p-c711900a.entry.js +0 -1
- package/dist/ezui/p-dee18824.entry.js +0 -1
- package/dist/ezui/p-e4a579f2.entry.js +0 -1
- package/dist/ezui/p-e82a12c6.entry.js +0 -1
- package/dist/ezui/p-f1bbf23f.entry.js +0 -1
|
@@ -0,0 +1,541 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
import { DateUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
+
import CSSVarsUtils from '../../utils/CSSVarsUtils';
|
|
4
|
+
import initI18n from '../../utils/i18n';
|
|
5
|
+
export class EzClassicDateInput {
|
|
6
|
+
constructor() {
|
|
7
|
+
this._changePending = false;
|
|
8
|
+
this._focused = false;
|
|
9
|
+
this._valuePromiseCallbacks = [];
|
|
10
|
+
this.label = undefined;
|
|
11
|
+
this.value = undefined;
|
|
12
|
+
this.enabled = true;
|
|
13
|
+
this.errorMessage = undefined;
|
|
14
|
+
this.mode = "regular";
|
|
15
|
+
this.size = "default";
|
|
16
|
+
this.required = false;
|
|
17
|
+
this.canShowError = true;
|
|
18
|
+
this.autoFocus = false;
|
|
19
|
+
this.alternativePlaceholder = undefined;
|
|
20
|
+
}
|
|
21
|
+
observeLabel() {
|
|
22
|
+
if (this._textInput) {
|
|
23
|
+
this._textInput.label = this.label;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
observeErrorMessage() {
|
|
27
|
+
var _a;
|
|
28
|
+
if (this._textInput) {
|
|
29
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
30
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
31
|
+
this.setInputValue();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
observeValue(newValue, oldValue) {
|
|
36
|
+
if (this._textInput && newValue != oldValue) {
|
|
37
|
+
const newValueValidated = DateUtils.validateDate(newValue);
|
|
38
|
+
const oldValueValidated = DateUtils.validateDate(oldValue);
|
|
39
|
+
if ((newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime()) !== (oldValueValidated === null || oldValueValidated === void 0 ? void 0 : oldValueValidated.getTime())) {
|
|
40
|
+
const textValue = this.getTextValue(newValueValidated) || '';
|
|
41
|
+
const parsedDate = DateUtils.strToDate(textValue);
|
|
42
|
+
if ((parsedDate || !this._focused) && (this._textInput.value || '') !== textValue) {
|
|
43
|
+
this._textInput.value = textValue;
|
|
44
|
+
this._focused = false;
|
|
45
|
+
this.errorMessage = "";
|
|
46
|
+
}
|
|
47
|
+
const valueEmitted = newValueValidated === null ? undefined : newValueValidated;
|
|
48
|
+
this.ezChange.emit(valueEmitted);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
this._changePending = false;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Aplica o foco no campo.
|
|
55
|
+
*/
|
|
56
|
+
async setFocus(options) {
|
|
57
|
+
this._textInput.setFocus(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Remove o foco do campo.
|
|
61
|
+
*/
|
|
62
|
+
async setBlur() {
|
|
63
|
+
this._textInput.setBlur();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Retorna se o conteúdo é inválido.
|
|
67
|
+
*/
|
|
68
|
+
async isInvalid() {
|
|
69
|
+
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
70
|
+
}
|
|
71
|
+
/*
|
|
72
|
+
* Retorna uma promise com o valor da opção selecionada,
|
|
73
|
+
* que será resolvida quando o backend devolver este dado.
|
|
74
|
+
*/
|
|
75
|
+
async getValueAsync() {
|
|
76
|
+
if (this._changePending) {
|
|
77
|
+
return new Promise(accept => {
|
|
78
|
+
this._valuePromiseCallbacks.push(accept);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return Promise.resolve(this.value);
|
|
82
|
+
}
|
|
83
|
+
changeValue(newValue) {
|
|
84
|
+
const currentValue = DateUtils.validateDate(this.value);
|
|
85
|
+
const newValueValidated = DateUtils.validateDate(newValue);
|
|
86
|
+
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
87
|
+
this.value = newValueValidated;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
this._changePending = false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
async handleChangeCalendar(event) {
|
|
94
|
+
this.changeValue(this._calendar.value);
|
|
95
|
+
this.ezInput.emit(this._calendar.value);
|
|
96
|
+
this._popover.hide();
|
|
97
|
+
await this.setFocus();
|
|
98
|
+
event.stopPropagation();
|
|
99
|
+
}
|
|
100
|
+
handleBlur() {
|
|
101
|
+
if (!this._changePending) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
const strValue = this._textInput.value;
|
|
106
|
+
const newValue = DateUtils.strToDate(strValue);
|
|
107
|
+
if (newValue || !strValue) {
|
|
108
|
+
this.errorMessage = "";
|
|
109
|
+
const currentValue = DateUtils.validateDate(this.value);
|
|
110
|
+
const newValueValidated = DateUtils.validateDate(newValue);
|
|
111
|
+
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) === (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
112
|
+
if (newValueValidated) {
|
|
113
|
+
this._textInput.value = this.getTextValue(newValueValidated) || '';
|
|
114
|
+
this._focused = false;
|
|
115
|
+
}
|
|
116
|
+
this.ezCancelWaitingChange.emit();
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
this._focused = false;
|
|
120
|
+
this.changeValue(newValueValidated);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
this.changeValue(undefined);
|
|
125
|
+
this.ezCancelWaitingChange.emit();
|
|
126
|
+
this.errorMessage = this.i18n("ez-classic-date-input.invalidDate");
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
finally {
|
|
130
|
+
for (const callback of this._valuePromiseCallbacks) {
|
|
131
|
+
callback(this.value);
|
|
132
|
+
}
|
|
133
|
+
this._valuePromiseCallbacks = [];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
getTextValue(d) {
|
|
137
|
+
return d ? DateUtils.formatDate(d) : undefined;
|
|
138
|
+
}
|
|
139
|
+
handleInput(event) {
|
|
140
|
+
const strValue = this._textInput.value;
|
|
141
|
+
const newValue = DateUtils.strToDate(strValue);
|
|
142
|
+
const currentValue = DateUtils.validateDate(this.value);
|
|
143
|
+
const newValueValidated = DateUtils.validateDate(newValue);
|
|
144
|
+
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
145
|
+
this._changePending = true;
|
|
146
|
+
this._focused = true;
|
|
147
|
+
this.ezStartChange.emit({ waitmessage: "", blocking: false });
|
|
148
|
+
}
|
|
149
|
+
if (event['data'] === "H" || event['data'] === "h") {
|
|
150
|
+
const currentDate = new Date();
|
|
151
|
+
this.ezInput.emit(currentDate);
|
|
152
|
+
this.changeValue(currentDate);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
setInputValue() {
|
|
156
|
+
const textValue = this.getTextValue(this.value) || '';
|
|
157
|
+
if ((this._textInput.value || '') !== textValue) {
|
|
158
|
+
this._textInput.value = textValue;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
disconnectedCallback() {
|
|
162
|
+
this._popover.hide();
|
|
163
|
+
}
|
|
164
|
+
async componentWillLoad() {
|
|
165
|
+
this.i18n = await initI18n();
|
|
166
|
+
}
|
|
167
|
+
componentDidLoad() {
|
|
168
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
169
|
+
this.setInputValue();
|
|
170
|
+
if (this.autoFocus) {
|
|
171
|
+
requestAnimationFrame(() => {
|
|
172
|
+
this.setFocus({ selectText: true });
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
render() {
|
|
177
|
+
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
178
|
+
return (h(Host, null, h("ez-classic-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (elem) => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, size: this.size, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder, required: this.required, leftIconName: "calendar", leftIconClickable: this.enabled, onIconClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, onEzChange: (event) => event.stopPropagation() }), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', "data-element-id": this._elem.getAttribute("data-element-id"), onEzVisibilityChange: (event) => event.stopPropagation() }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => this.handleChangeCalendar(event), value: this.value }))));
|
|
179
|
+
}
|
|
180
|
+
static get is() { return "ez-classic-date-input"; }
|
|
181
|
+
static get encapsulation() { return "shadow"; }
|
|
182
|
+
static get originalStyleUrls() {
|
|
183
|
+
return {
|
|
184
|
+
"$": ["ez-classic-date-input.css"]
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
static get styleUrls() {
|
|
188
|
+
return {
|
|
189
|
+
"$": ["ez-classic-date-input.css"]
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
static get properties() {
|
|
193
|
+
return {
|
|
194
|
+
"label": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": "Texto a ser apresentado como t\u00EDtulo do campo."
|
|
207
|
+
},
|
|
208
|
+
"attribute": "label",
|
|
209
|
+
"reflect": true
|
|
210
|
+
},
|
|
211
|
+
"value": {
|
|
212
|
+
"type": "unknown",
|
|
213
|
+
"mutable": true,
|
|
214
|
+
"complexType": {
|
|
215
|
+
"original": "Date",
|
|
216
|
+
"resolved": "Date",
|
|
217
|
+
"references": {
|
|
218
|
+
"Date": {
|
|
219
|
+
"location": "global"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"required": false,
|
|
224
|
+
"optional": false,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": "Define o valor do campo."
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"enabled": {
|
|
231
|
+
"type": "boolean",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "boolean",
|
|
235
|
+
"resolved": "boolean",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": false,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
243
|
+
},
|
|
244
|
+
"attribute": "enabled",
|
|
245
|
+
"reflect": true,
|
|
246
|
+
"defaultValue": "true"
|
|
247
|
+
},
|
|
248
|
+
"errorMessage": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"mutable": true,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "string",
|
|
253
|
+
"resolved": "string",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": false,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
|
|
261
|
+
},
|
|
262
|
+
"attribute": "error-message",
|
|
263
|
+
"reflect": true
|
|
264
|
+
},
|
|
265
|
+
"mode": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"mutable": false,
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "\"slim\" | \"regular\"",
|
|
270
|
+
"resolved": "\"regular\" | \"slim\"",
|
|
271
|
+
"references": {}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": false,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": "Define o tamanho do campo."
|
|
278
|
+
},
|
|
279
|
+
"attribute": "mode",
|
|
280
|
+
"reflect": true,
|
|
281
|
+
"defaultValue": "\"regular\""
|
|
282
|
+
},
|
|
283
|
+
"size": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"mutable": false,
|
|
286
|
+
"complexType": {
|
|
287
|
+
"original": "\"default\" | \"small\" | \"xsmall\"",
|
|
288
|
+
"resolved": "\"default\" | \"small\" | \"xsmall\"",
|
|
289
|
+
"references": {}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": true,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": "Tamanho do input"
|
|
296
|
+
},
|
|
297
|
+
"attribute": "size",
|
|
298
|
+
"reflect": false,
|
|
299
|
+
"defaultValue": "\"default\""
|
|
300
|
+
},
|
|
301
|
+
"required": {
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"mutable": false,
|
|
304
|
+
"complexType": {
|
|
305
|
+
"original": "boolean",
|
|
306
|
+
"resolved": "boolean",
|
|
307
|
+
"references": {}
|
|
308
|
+
},
|
|
309
|
+
"required": false,
|
|
310
|
+
"optional": true,
|
|
311
|
+
"docs": {
|
|
312
|
+
"tags": [],
|
|
313
|
+
"text": "Define se o campo \u00E9 obrigat\u00F3rio"
|
|
314
|
+
},
|
|
315
|
+
"attribute": "required",
|
|
316
|
+
"reflect": false,
|
|
317
|
+
"defaultValue": "false"
|
|
318
|
+
},
|
|
319
|
+
"canShowError": {
|
|
320
|
+
"type": "boolean",
|
|
321
|
+
"mutable": false,
|
|
322
|
+
"complexType": {
|
|
323
|
+
"original": "boolean",
|
|
324
|
+
"resolved": "boolean",
|
|
325
|
+
"references": {}
|
|
326
|
+
},
|
|
327
|
+
"required": false,
|
|
328
|
+
"optional": false,
|
|
329
|
+
"docs": {
|
|
330
|
+
"tags": [],
|
|
331
|
+
"text": "Se false deixa de exibir a mensagem de erro dentro do campo."
|
|
332
|
+
},
|
|
333
|
+
"attribute": "can-show-error",
|
|
334
|
+
"reflect": true,
|
|
335
|
+
"defaultValue": "true"
|
|
336
|
+
},
|
|
337
|
+
"autoFocus": {
|
|
338
|
+
"type": "boolean",
|
|
339
|
+
"mutable": false,
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "boolean",
|
|
342
|
+
"resolved": "boolean",
|
|
343
|
+
"references": {}
|
|
344
|
+
},
|
|
345
|
+
"required": false,
|
|
346
|
+
"optional": false,
|
|
347
|
+
"docs": {
|
|
348
|
+
"tags": [],
|
|
349
|
+
"text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
|
|
350
|
+
},
|
|
351
|
+
"attribute": "auto-focus",
|
|
352
|
+
"reflect": false,
|
|
353
|
+
"defaultValue": "false"
|
|
354
|
+
},
|
|
355
|
+
"alternativePlaceholder": {
|
|
356
|
+
"type": "string",
|
|
357
|
+
"mutable": false,
|
|
358
|
+
"complexType": {
|
|
359
|
+
"original": "string",
|
|
360
|
+
"resolved": "string",
|
|
361
|
+
"references": {}
|
|
362
|
+
},
|
|
363
|
+
"required": false,
|
|
364
|
+
"optional": false,
|
|
365
|
+
"docs": {
|
|
366
|
+
"tags": [],
|
|
367
|
+
"text": "Texto alternativo ser apresentado como t\u00EDtulo do campo."
|
|
368
|
+
},
|
|
369
|
+
"attribute": "alternative-placeholder",
|
|
370
|
+
"reflect": true
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
static get events() {
|
|
375
|
+
return [{
|
|
376
|
+
"method": "ezChange",
|
|
377
|
+
"name": "ezChange",
|
|
378
|
+
"bubbles": true,
|
|
379
|
+
"cancelable": true,
|
|
380
|
+
"composed": true,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [],
|
|
383
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
|
|
384
|
+
},
|
|
385
|
+
"complexType": {
|
|
386
|
+
"original": "Date",
|
|
387
|
+
"resolved": "Date",
|
|
388
|
+
"references": {
|
|
389
|
+
"Date": {
|
|
390
|
+
"location": "global"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}, {
|
|
395
|
+
"method": "ezStartChange",
|
|
396
|
+
"name": "ezStartChange",
|
|
397
|
+
"bubbles": true,
|
|
398
|
+
"cancelable": true,
|
|
399
|
+
"composed": true,
|
|
400
|
+
"docs": {
|
|
401
|
+
"tags": [],
|
|
402
|
+
"text": "Emitido ao iniciar a altera\u00E7\u00E3o (digita\u00E7\u00E3o incompleta)."
|
|
403
|
+
},
|
|
404
|
+
"complexType": {
|
|
405
|
+
"original": "WaitingChange",
|
|
406
|
+
"resolved": "WaitingChange",
|
|
407
|
+
"references": {
|
|
408
|
+
"WaitingChange": {
|
|
409
|
+
"location": "import",
|
|
410
|
+
"path": "@sankhyalabs/core"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}, {
|
|
415
|
+
"method": "ezCancelWaitingChange",
|
|
416
|
+
"name": "ezCancelWaitingChange",
|
|
417
|
+
"bubbles": true,
|
|
418
|
+
"cancelable": true,
|
|
419
|
+
"composed": true,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "Emitido quando n\u00E3o foi poss\u00EDvel completar a altera\u00E7\u00E3o entre o evento ezStartChange e ezChange."
|
|
423
|
+
},
|
|
424
|
+
"complexType": {
|
|
425
|
+
"original": "void",
|
|
426
|
+
"resolved": "void",
|
|
427
|
+
"references": {}
|
|
428
|
+
}
|
|
429
|
+
}, {
|
|
430
|
+
"method": "ezInput",
|
|
431
|
+
"name": "ezInput",
|
|
432
|
+
"bubbles": true,
|
|
433
|
+
"cancelable": true,
|
|
434
|
+
"composed": true,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": "Emitido quando o usu\u00E1rio digita uma data v\u00E1lida no campo."
|
|
438
|
+
},
|
|
439
|
+
"complexType": {
|
|
440
|
+
"original": "Date",
|
|
441
|
+
"resolved": "Date",
|
|
442
|
+
"references": {
|
|
443
|
+
"Date": {
|
|
444
|
+
"location": "global"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}];
|
|
449
|
+
}
|
|
450
|
+
static get methods() {
|
|
451
|
+
return {
|
|
452
|
+
"setFocus": {
|
|
453
|
+
"complexType": {
|
|
454
|
+
"signature": "(options?: TFocusOptions) => Promise<void>",
|
|
455
|
+
"parameters": [{
|
|
456
|
+
"tags": [],
|
|
457
|
+
"text": ""
|
|
458
|
+
}],
|
|
459
|
+
"references": {
|
|
460
|
+
"Promise": {
|
|
461
|
+
"location": "global"
|
|
462
|
+
},
|
|
463
|
+
"TFocusOptions": {
|
|
464
|
+
"location": "import",
|
|
465
|
+
"path": "../ez-classic-input/ez-classic-input"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"return": "Promise<void>"
|
|
469
|
+
},
|
|
470
|
+
"docs": {
|
|
471
|
+
"text": "Aplica o foco no campo.",
|
|
472
|
+
"tags": []
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"setBlur": {
|
|
476
|
+
"complexType": {
|
|
477
|
+
"signature": "() => Promise<void>",
|
|
478
|
+
"parameters": [],
|
|
479
|
+
"references": {
|
|
480
|
+
"Promise": {
|
|
481
|
+
"location": "global"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"return": "Promise<void>"
|
|
485
|
+
},
|
|
486
|
+
"docs": {
|
|
487
|
+
"text": "Remove o foco do campo.",
|
|
488
|
+
"tags": []
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"isInvalid": {
|
|
492
|
+
"complexType": {
|
|
493
|
+
"signature": "() => Promise<boolean>",
|
|
494
|
+
"parameters": [],
|
|
495
|
+
"references": {
|
|
496
|
+
"Promise": {
|
|
497
|
+
"location": "global"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"return": "Promise<boolean>"
|
|
501
|
+
},
|
|
502
|
+
"docs": {
|
|
503
|
+
"text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
|
|
504
|
+
"tags": []
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"getValueAsync": {
|
|
508
|
+
"complexType": {
|
|
509
|
+
"signature": "() => Promise<Date>",
|
|
510
|
+
"parameters": [],
|
|
511
|
+
"references": {
|
|
512
|
+
"Promise": {
|
|
513
|
+
"location": "global"
|
|
514
|
+
},
|
|
515
|
+
"Date": {
|
|
516
|
+
"location": "global"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"return": "Promise<Date>"
|
|
520
|
+
},
|
|
521
|
+
"docs": {
|
|
522
|
+
"text": "",
|
|
523
|
+
"tags": []
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
static get elementRef() { return "_elem"; }
|
|
529
|
+
static get watchers() {
|
|
530
|
+
return [{
|
|
531
|
+
"propName": "label",
|
|
532
|
+
"methodName": "observeLabel"
|
|
533
|
+
}, {
|
|
534
|
+
"propName": "errorMessage",
|
|
535
|
+
"methodName": "observeErrorMessage"
|
|
536
|
+
}, {
|
|
537
|
+
"propName": "value",
|
|
538
|
+
"methodName": "observeValue"
|
|
539
|
+
}];
|
|
540
|
+
}
|
|
541
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
/*@doc Define a cor de fundo do input.*/
|
|
5
|
+
--ez-classic-date-input__input--background-color: var(--background--medium, #e0e0e0);
|
|
6
|
+
/*@doc Define a cor da borda do input.*/
|
|
7
|
+
--ez-classic-date-input__input--border-color: var(--ez-classic-date-input__input--background-color);
|
|
8
|
+
/*@doc Contém a imagem do calendário.*/
|
|
9
|
+
--ez-classic-date-input__calendar-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="15px"><path d="M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z"/></svg>');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.btn-open-cal {
|
|
13
|
+
outline: none;
|
|
14
|
+
border: none;
|
|
15
|
+
background-color: unset;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.btn-open-cal:disabled {
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.btn-open-cal::after {
|
|
24
|
+
content: '';
|
|
25
|
+
display: flex;
|
|
26
|
+
background-color: var(--text--primary, #008561);
|
|
27
|
+
width: 15px;
|
|
28
|
+
height: 16px;
|
|
29
|
+
-webkit-mask-image: var(--ez-classic-date-input__calendar-image);
|
|
30
|
+
mask-image: var(--ez-classic-date-input__calendar-image);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.btn-open-cal:disabled:after {
|
|
34
|
+
background-color: var(--text--disable, #AFB6C0);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.btn-open-cal:enabled:hover::after {
|
|
38
|
+
background-color: var(--color--primary, #4e4e4e);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
ez-classic-input {
|
|
42
|
+
--text-input__input--background-color: var(--ez-classic-date-input__input--background-color, #FFFFFF);
|
|
43
|
+
--text-input__input--border-color: var(--ez-classic-date-input__input--border-color, #DCE0E8);
|
|
44
|
+
}
|