linear-react-components-ui 2.0.0-beta.0 → 2.0.0-beta.1
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/package.json +4 -6
- package/lib/@types/Align.d.ts +0 -2
- package/lib/@types/ButtonTypes.d.ts +0 -1
- package/lib/@types/ColorStyles.d.ts +0 -2
- package/lib/@types/DataCombo.d.ts +0 -1
- package/lib/@types/Icon.d.ts +0 -2
- package/lib/@types/LabelStyles.d.ts +0 -1
- package/lib/@types/Period.d.ts +0 -4
- package/lib/@types/PermissionAttr.d.ts +0 -12
- package/lib/@types/PointerEvents.d.ts +0 -1
- package/lib/@types/Position.d.ts +0 -2
- package/lib/@types/PositionAlert.d.ts +0 -1
- package/lib/@types/Size.d.ts +0 -1
- package/lib/@types/SizePixels.d.ts +0 -1
- package/lib/@types/StorageMock.d.ts +0 -3
- package/lib/_virtual/_rolldown/runtime.js +0 -23
- package/lib/alerts/AlertContainer.d.ts +0 -12
- package/lib/alerts/AlertContainer.js +0 -69
- package/lib/alerts/AlertContainer.js.map +0 -1
- package/lib/alerts/AlertProvider.d.ts +0 -3
- package/lib/alerts/AlertProvider.js +0 -47
- package/lib/alerts/AlertProvider.js.map +0 -1
- package/lib/alerts/BaseAlert.d.ts +0 -3
- package/lib/alerts/BaseAlert.js +0 -20
- package/lib/alerts/BaseAlert.js.map +0 -1
- package/lib/alerts/Message.d.ts +0 -3
- package/lib/alerts/Message.js +0 -90
- package/lib/alerts/Message.js.map +0 -1
- package/lib/alerts/helpers.d.ts +0 -3
- package/lib/alerts/helpers.js +0 -7
- package/lib/alerts/helpers.js.map +0 -1
- package/lib/alerts/index.d.ts +0 -4
- package/lib/alerts/index.js +0 -8
- package/lib/alerts/index.js.map +0 -1
- package/lib/alerts/types.d.ts +0 -47
- package/lib/alerts/withAlert.d.ts +0 -4
- package/lib/alerts/withAlert.js +0 -16
- package/lib/alerts/withAlert.js.map +0 -1
- package/lib/assets/styles/alerts.css +0 -1
- package/lib/assets/styles/avatar.css +0 -1
- package/lib/assets/styles/badge.css +0 -1
- package/lib/assets/styles/button.css +0 -1
- package/lib/assets/styles/calendar.css +0 -1
- package/lib/assets/styles/checkbox.css +0 -1
- package/lib/assets/styles/checkbox2.css +0 -1
- package/lib/assets/styles/colorpicker.css +0 -1
- package/lib/assets/styles/datepicker.css +0 -1
- package/lib/assets/styles/datepicker2.css +0 -1
- package/lib/assets/styles/dialog.css +0 -1
- package/lib/assets/styles/drawers.css +0 -1
- package/lib/assets/styles/dropdown.css +0 -1
- package/lib/assets/styles/error.css +0 -1
- package/lib/assets/styles/fieldset.css +0 -1
- package/lib/assets/styles/file.css +0 -1
- package/lib/assets/styles/filefield.css +0 -1
- package/lib/assets/styles/floatMenu.css +0 -1
- package/lib/assets/styles/form.css +0 -1
- package/lib/assets/styles/gridlayout.css +0 -1
- package/lib/assets/styles/hint.css +0 -1
- package/lib/assets/styles/icon.css +0 -1
- package/lib/assets/styles/input.css +0 -1
- package/lib/assets/styles/label.css +0 -1
- package/lib/assets/styles/labelMessages.css +0 -1
- package/lib/assets/styles/list.css +0 -1
- package/lib/assets/styles/multiSelect.css +0 -1
- package/lib/assets/styles/noPermission.css +0 -1
- package/lib/assets/styles/numberfield.css +0 -1
- package/lib/assets/styles/numbers.css +0 -1
- package/lib/assets/styles/panel.css +0 -1
- package/lib/assets/styles/periodpicker.css +0 -1
- package/lib/assets/styles/popover.css +0 -1
- package/lib/assets/styles/progress.css +0 -1
- package/lib/assets/styles/radio.css +0 -1
- package/lib/assets/styles/radiofield.css +0 -1
- package/lib/assets/styles/search.css +0 -1
- package/lib/assets/styles/select.css +0 -1
- package/lib/assets/styles/selectfield.css +0 -1
- package/lib/assets/styles/shortcuts.css +0 -1
- package/lib/assets/styles/sidenav.css +0 -1
- package/lib/assets/styles/skeleton.css +0 -1
- package/lib/assets/styles/slot.css +0 -1
- package/lib/assets/styles/spinner.css +0 -1
- package/lib/assets/styles/split.css +0 -1
- package/lib/assets/styles/table.css +0 -1
- package/lib/assets/styles/tabs.css +0 -1
- package/lib/assets/styles/textContent.css +0 -1
- package/lib/assets/styles/textfield.css +0 -1
- package/lib/assets/styles/toolbar.css +0 -1
- package/lib/assets/styles/tooltip.css +0 -1
- package/lib/assets/styles/treetable.css +0 -1
- package/lib/assets/styles/treeview.css +0 -1
- package/lib/assets/styles/uitour.css +0 -1
- package/lib/assets/styles/wizard.css +0 -1
- package/lib/avatar/index.d.ts +0 -6
- package/lib/avatar/index.js +0 -51
- package/lib/avatar/index.js.map +0 -1
- package/lib/avatar/types.d.ts +0 -27
- package/lib/badge/index.d.ts +0 -3
- package/lib/badge/index.js +0 -21
- package/lib/badge/index.js.map +0 -1
- package/lib/badge/types.d.ts +0 -10
- package/lib/buttons/ActivateButton.d.ts +0 -3
- package/lib/buttons/ActivateButton.js +0 -11
- package/lib/buttons/ActivateButton.js.map +0 -1
- package/lib/buttons/AddButton.d.ts +0 -3
- package/lib/buttons/AddButton.js +0 -15
- package/lib/buttons/AddButton.js.map +0 -1
- package/lib/buttons/Button.d.ts +0 -6
- package/lib/buttons/Button.js +0 -10
- package/lib/buttons/Button.js.map +0 -1
- package/lib/buttons/ButtonGroups.d.ts +0 -6
- package/lib/buttons/CancelButton.d.ts +0 -3
- package/lib/buttons/CancelButton.js +0 -11
- package/lib/buttons/CancelButton.js.map +0 -1
- package/lib/buttons/DangerButton.d.ts +0 -3
- package/lib/buttons/DangerButton.js +0 -11
- package/lib/buttons/DangerButton.js.map +0 -1
- package/lib/buttons/DefaultButton.d.ts +0 -6
- package/lib/buttons/DefaultButton.js +0 -108
- package/lib/buttons/DefaultButton.js.map +0 -1
- package/lib/buttons/DestroyButton.d.ts +0 -3
- package/lib/buttons/DestroyButton.js +0 -15
- package/lib/buttons/DestroyButton.js.map +0 -1
- package/lib/buttons/EditButton.d.ts +0 -3
- package/lib/buttons/EditButton.js +0 -11
- package/lib/buttons/EditButton.js.map +0 -1
- package/lib/buttons/InactivateButton.d.ts +0 -3
- package/lib/buttons/InactivateButton.js +0 -11
- package/lib/buttons/InactivateButton.js.map +0 -1
- package/lib/buttons/InfoButton.d.ts +0 -3
- package/lib/buttons/InfoButton.js +0 -11
- package/lib/buttons/InfoButton.js.map +0 -1
- package/lib/buttons/PrimaryButton.d.ts +0 -3
- package/lib/buttons/PrimaryButton.js +0 -11
- package/lib/buttons/PrimaryButton.js.map +0 -1
- package/lib/buttons/RestoreButton.d.ts +0 -3
- package/lib/buttons/RestoreButton.js +0 -11
- package/lib/buttons/RestoreButton.js.map +0 -1
- package/lib/buttons/SaveButton.d.ts +0 -3
- package/lib/buttons/SaveButton.js +0 -11
- package/lib/buttons/SaveButton.js.map +0 -1
- package/lib/buttons/SuccessButton.d.ts +0 -3
- package/lib/buttons/SuccessButton.js +0 -11
- package/lib/buttons/SuccessButton.js.map +0 -1
- package/lib/buttons/WarningButton.d.ts +0 -3
- package/lib/buttons/WarningButton.js +0 -11
- package/lib/buttons/WarningButton.js.map +0 -1
- package/lib/buttons/button_container/index.d.ts +0 -10
- package/lib/buttons/button_container/index.js +0 -15
- package/lib/buttons/button_container/index.js.map +0 -1
- package/lib/buttons/index.d.ts +0 -17
- package/lib/buttons/index.js +0 -22
- package/lib/buttons/index.js.map +0 -1
- package/lib/buttons/split_button/index.d.ts +0 -3
- package/lib/buttons/split_button/index.js +0 -50
- package/lib/buttons/split_button/index.js.map +0 -1
- package/lib/buttons/types.d.ts +0 -46
- package/lib/calendar/DangerCalendar.d.ts +0 -3
- package/lib/calendar/DangerCalendar.js +0 -11
- package/lib/calendar/DangerCalendar.js.map +0 -1
- package/lib/calendar/InfoCalendar.d.ts +0 -3
- package/lib/calendar/InfoCalendar.js +0 -11
- package/lib/calendar/InfoCalendar.js.map +0 -1
- package/lib/calendar/PrimaryCalendar.d.ts +0 -3
- package/lib/calendar/PrimaryCalendar.js +0 -11
- package/lib/calendar/PrimaryCalendar.js.map +0 -1
- package/lib/calendar/SuccessCalendar.d.ts +0 -3
- package/lib/calendar/SuccessCalendar.js +0 -11
- package/lib/calendar/SuccessCalendar.js.map +0 -1
- package/lib/calendar/WarningCalendar.d.ts +0 -3
- package/lib/calendar/WarningCalendar.js +0 -11
- package/lib/calendar/WarningCalendar.js.map +0 -1
- package/lib/calendar/base/helpers.d.ts +0 -58
- package/lib/calendar/base/helpers.js +0 -41
- package/lib/calendar/base/helpers.js.map +0 -1
- package/lib/calendar/base/index.d.ts +0 -3
- package/lib/calendar/base/index.js +0 -138
- package/lib/calendar/base/index.js.map +0 -1
- package/lib/calendar/index.d.ts +0 -8
- package/lib/calendar/index.js +0 -12
- package/lib/calendar/index.js.map +0 -1
- package/lib/calendar/types.d.ts +0 -27
- package/lib/checkbox/index.d.ts +0 -8
- package/lib/checkbox/index.js +0 -111
- package/lib/checkbox/index.js.map +0 -1
- package/lib/checkbox/types.d.ts +0 -46
- package/lib/dialog/Alert.d.ts +0 -3
- package/lib/dialog/Alert.js +0 -24
- package/lib/dialog/Alert.js.map +0 -1
- package/lib/dialog/Custom.d.ts +0 -3
- package/lib/dialog/Custom.js +0 -49
- package/lib/dialog/Custom.js.map +0 -1
- package/lib/dialog/Error.d.ts +0 -3
- package/lib/dialog/Error.js +0 -24
- package/lib/dialog/Error.js.map +0 -1
- package/lib/dialog/Information.d.ts +0 -3
- package/lib/dialog/Information.js +0 -24
- package/lib/dialog/Information.js.map +0 -1
- package/lib/dialog/Question.d.ts +0 -3
- package/lib/dialog/Question.js +0 -48
- package/lib/dialog/Question.js.map +0 -1
- package/lib/dialog/Warning.d.ts +0 -3
- package/lib/dialog/Warning.js +0 -24
- package/lib/dialog/Warning.js.map +0 -1
- package/lib/dialog/base/Content.d.ts +0 -3
- package/lib/dialog/base/Content.js +0 -14
- package/lib/dialog/base/Content.js.map +0 -1
- package/lib/dialog/base/Footer.d.ts +0 -3
- package/lib/dialog/base/Footer.js +0 -10
- package/lib/dialog/base/Footer.js.map +0 -1
- package/lib/dialog/base/Header.d.ts +0 -3
- package/lib/dialog/base/Header.js +0 -42
- package/lib/dialog/base/Header.js.map +0 -1
- package/lib/dialog/base/index.d.ts +0 -13
- package/lib/dialog/base/index.js +0 -104
- package/lib/dialog/base/index.js.map +0 -1
- package/lib/dialog/base/style.d.ts +0 -7
- package/lib/dialog/base/style.js +0 -11
- package/lib/dialog/base/style.js.map +0 -1
- package/lib/dialog/form/index.d.ts +0 -4
- package/lib/dialog/form/index.js +0 -89
- package/lib/dialog/form/index.js.map +0 -1
- package/lib/dialog/index.d.ts +0 -9
- package/lib/dialog/index.js +0 -13
- package/lib/dialog/index.js.map +0 -1
- package/lib/dialog/types.d.ts +0 -113
- package/lib/dialog/wizard/index.d.ts +0 -8
- package/lib/dialog/wizard/index.js +0 -46
- package/lib/dialog/wizard/index.js.map +0 -1
- package/lib/dialog/wizard/progressbar.d.ts +0 -11
- package/lib/dialog/wizard/progressbar.js +0 -38
- package/lib/dialog/wizard/progressbar.js.map +0 -1
- package/lib/dialog/wizard/step.d.ts +0 -2
- package/lib/dialog/wizard/step.js +0 -19
- package/lib/dialog/wizard/step.js.map +0 -1
- package/lib/dialog/wizard/useWizard.d.ts +0 -2
- package/lib/dialog/wizard/useWizard.js +0 -43
- package/lib/dialog/wizard/useWizard.js.map +0 -1
- package/lib/drawer/Content.d.ts +0 -3
- package/lib/drawer/Content.js +0 -18
- package/lib/drawer/Content.js.map +0 -1
- package/lib/drawer/Drawer.d.ts +0 -3
- package/lib/drawer/Drawer.js +0 -76
- package/lib/drawer/Drawer.js.map +0 -1
- package/lib/drawer/Header.d.ts +0 -3
- package/lib/drawer/Header.js +0 -60
- package/lib/drawer/Header.js.map +0 -1
- package/lib/drawer/helpers.d.ts +0 -3
- package/lib/drawer/helpers.js +0 -7
- package/lib/drawer/helpers.js.map +0 -1
- package/lib/drawer/index.d.ts +0 -5
- package/lib/drawer/index.js +0 -11
- package/lib/drawer/index.js.map +0 -1
- package/lib/drawer/types.d.ts +0 -38
- package/lib/dropdown/Popup.d.ts +0 -3
- package/lib/dropdown/Popup.js +0 -36
- package/lib/dropdown/Popup.js.map +0 -1
- package/lib/dropdown/helper.d.ts +0 -2
- package/lib/dropdown/index.d.ts +0 -3
- package/lib/dropdown/index.js +0 -7
- package/lib/dropdown/index.js.map +0 -1
- package/lib/dropdown/types.d.ts +0 -45
- package/lib/dropdown/withDropdown.d.ts +0 -9
- package/lib/dropdown/withDropdown.js +0 -51
- package/lib/dropdown/withDropdown.js.map +0 -1
- package/lib/fieldset/index.d.ts +0 -3
- package/lib/fieldset/index.js +0 -51
- package/lib/fieldset/index.js.map +0 -1
- package/lib/fieldset/types.d.ts +0 -27
- package/lib/form/Field.d.ts +0 -2
- package/lib/form/Field.js +0 -84
- package/lib/form/Field.js.map +0 -1
- package/lib/form/FieldArray.d.ts +0 -2
- package/lib/form/FieldArray.js +0 -69
- package/lib/form/FieldArray.js.map +0 -1
- package/lib/form/FieldNumber.d.ts +0 -2
- package/lib/form/FieldNumber.js +0 -47
- package/lib/form/FieldNumber.js.map +0 -1
- package/lib/form/FieldPeriod.d.ts +0 -2
- package/lib/form/FieldPeriod.js +0 -67
- package/lib/form/FieldPeriod.js.map +0 -1
- package/lib/form/helpers.d.ts +0 -11
- package/lib/form/helpers.js +0 -18
- package/lib/form/helpers.js.map +0 -1
- package/lib/form/index.d.ts +0 -8
- package/lib/form/index.js +0 -148
- package/lib/form/index.js.map +0 -1
- package/lib/form/types.d.ts +0 -245
- package/lib/form/withFieldHOC.d.ts +0 -4
- package/lib/form/withFieldHOC.js +0 -62
- package/lib/form/withFieldHOC.js.map +0 -1
- package/lib/form/withFormSecurity.d.ts +0 -6
- package/lib/form/withFormSecurity.js +0 -34
- package/lib/form/withFormSecurity.js.map +0 -1
- package/lib/form2/helpers.d.ts +0 -5
- package/lib/form2/helpers.js +0 -22
- package/lib/form2/helpers.js.map +0 -1
- package/lib/form2/index.d.ts +0 -7
- package/lib/form2/index.js +0 -20
- package/lib/form2/index.js.map +0 -1
- package/lib/form2/types.d.ts +0 -133
- package/lib/form2/useForm/index.d.ts +0 -3
- package/lib/form2/useForm/index.js +0 -122
- package/lib/form2/useForm/index.js.map +0 -1
- package/lib/gridlayout/GridCol.d.ts +0 -3
- package/lib/gridlayout/GridCol.js +0 -18
- package/lib/gridlayout/GridCol.js.map +0 -1
- package/lib/gridlayout/GridRow.d.ts +0 -3
- package/lib/gridlayout/GridRow.js +0 -21
- package/lib/gridlayout/GridRow.js.map +0 -1
- package/lib/gridlayout/index.d.ts +0 -4
- package/lib/gridlayout/index.js +0 -8
- package/lib/gridlayout/index.js.map +0 -1
- package/lib/gridlayout/types.d.ts +0 -17
- package/lib/hint/helpers.d.ts +0 -1
- package/lib/hint/helpers.js +0 -14
- package/lib/hint/helpers.js.map +0 -1
- package/lib/hint/index.d.ts +0 -3
- package/lib/hint/index.js +0 -23
- package/lib/hint/index.js.map +0 -1
- package/lib/hint/types.d.ts +0 -11
- package/lib/icons/helper.d.ts +0 -667
- package/lib/icons/helper.js +0 -863
- package/lib/icons/helper.js.map +0 -1
- package/lib/icons/index.d.ts +0 -3
- package/lib/icons/index.js +0 -45
- package/lib/icons/index.js.map +0 -1
- package/lib/icons/types.d.ts +0 -42
- package/lib/index.d.ts +0 -10
- package/lib/index.js +0 -10
- package/lib/inputs/base/InputTextBase.d.ts +0 -3
- package/lib/inputs/base/InputTextBase.js +0 -198
- package/lib/inputs/base/InputTextBase.js.map +0 -1
- package/lib/inputs/base/helpers.d.ts +0 -10
- package/lib/inputs/base/helpers.js +0 -19
- package/lib/inputs/base/helpers.js.map +0 -1
- package/lib/inputs/base/types.d.ts +0 -88
- package/lib/inputs/color/index.d.ts +0 -3
- package/lib/inputs/color/index.js +0 -59
- package/lib/inputs/color/index.js.map +0 -1
- package/lib/inputs/color/types.d.ts +0 -16
- package/lib/inputs/date/Dialog.d.ts +0 -3
- package/lib/inputs/date/Dialog.js +0 -17
- package/lib/inputs/date/Dialog.js.map +0 -1
- package/lib/inputs/date/Dropdown.d.ts +0 -3
- package/lib/inputs/date/Dropdown.js +0 -15
- package/lib/inputs/date/Dropdown.js.map +0 -1
- package/lib/inputs/date/helpers.d.ts +0 -34
- package/lib/inputs/date/helpers.js +0 -38
- package/lib/inputs/date/helpers.js.map +0 -1
- package/lib/inputs/date/index.d.ts +0 -3
- package/lib/inputs/date/index.js +0 -159
- package/lib/inputs/date/index.js.map +0 -1
- package/lib/inputs/date/types.d.ts +0 -57
- package/lib/inputs/errorMessage/index.d.ts +0 -3
- package/lib/inputs/errorMessage/index.js +0 -19
- package/lib/inputs/errorMessage/index.js.map +0 -1
- package/lib/inputs/file/DefaultFile.d.ts +0 -3
- package/lib/inputs/file/DefaultFile.js +0 -89
- package/lib/inputs/file/DefaultFile.js.map +0 -1
- package/lib/inputs/file/DragDropFile.d.ts +0 -3
- package/lib/inputs/file/DragDropFile.js +0 -203
- package/lib/inputs/file/DragDropFile.js.map +0 -1
- package/lib/inputs/file/File.d.ts +0 -3
- package/lib/inputs/file/File.js +0 -39
- package/lib/inputs/file/File.js.map +0 -1
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -3
- package/lib/inputs/file/FileButtonSettings.js +0 -22
- package/lib/inputs/file/FileButtonSettings.js.map +0 -1
- package/lib/inputs/file/helpers.d.ts +0 -2
- package/lib/inputs/file/helpers.js +0 -13
- package/lib/inputs/file/helpers.js.map +0 -1
- package/lib/inputs/file/index.d.ts +0 -5
- package/lib/inputs/file/index.js +0 -9
- package/lib/inputs/file/index.js.map +0 -1
- package/lib/inputs/file/types.d.ts +0 -49
- package/lib/inputs/index.d.ts +0 -14
- package/lib/inputs/index.js +0 -24
- package/lib/inputs/index.js.map +0 -1
- package/lib/inputs/inputHOC.d.ts +0 -4
- package/lib/inputs/inputHOC.js +0 -40
- package/lib/inputs/inputHOC.js.map +0 -1
- package/lib/inputs/mask/BaseMask.d.ts +0 -3
- package/lib/inputs/mask/BaseMask.js +0 -106
- package/lib/inputs/mask/BaseMask.js.map +0 -1
- package/lib/inputs/mask/Cnpj.d.ts +0 -6
- package/lib/inputs/mask/Cnpj.js +0 -44
- package/lib/inputs/mask/Cnpj.js.map +0 -1
- package/lib/inputs/mask/Cpf.d.ts +0 -6
- package/lib/inputs/mask/Cpf.js +0 -45
- package/lib/inputs/mask/Cpf.js.map +0 -1
- package/lib/inputs/mask/Phone.d.ts +0 -3
- package/lib/inputs/mask/Phone.js +0 -14
- package/lib/inputs/mask/Phone.js.map +0 -1
- package/lib/inputs/mask/ZipCode.d.ts +0 -3
- package/lib/inputs/mask/ZipCode.js +0 -11
- package/lib/inputs/mask/ZipCode.js.map +0 -1
- package/lib/inputs/mask/helpers.d.ts +0 -5
- package/lib/inputs/mask/helpers.js +0 -45
- package/lib/inputs/mask/helpers.js.map +0 -1
- package/lib/inputs/mask/index.d.ts +0 -7
- package/lib/inputs/mask/index.js +0 -11
- package/lib/inputs/mask/index.js.map +0 -1
- package/lib/inputs/mask/types.d.ts +0 -74
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -3
- package/lib/inputs/multiSelect/ActionButtons.js +0 -39
- package/lib/inputs/multiSelect/ActionButtons.js.map +0 -1
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -3
- package/lib/inputs/multiSelect/Dropdown.js +0 -108
- package/lib/inputs/multiSelect/Dropdown.js.map +0 -1
- package/lib/inputs/multiSelect/helper.d.ts +0 -3
- package/lib/inputs/multiSelect/helper.js +0 -6
- package/lib/inputs/multiSelect/helper.js.map +0 -1
- package/lib/inputs/multiSelect/index.d.ts +0 -3
- package/lib/inputs/multiSelect/index.js +0 -130
- package/lib/inputs/multiSelect/index.js.map +0 -1
- package/lib/inputs/multiSelect/types.d.ts +0 -59
- package/lib/inputs/number/Currency.d.ts +0 -3
- package/lib/inputs/number/Currency.js +0 -72
- package/lib/inputs/number/Currency.js.map +0 -1
- package/lib/inputs/number/Decimal.d.ts +0 -3
- package/lib/inputs/number/Decimal.js +0 -68
- package/lib/inputs/number/Decimal.js.map +0 -1
- package/lib/inputs/number/format_number.d.ts +0 -3
- package/lib/inputs/number/format_number.js +0 -14
- package/lib/inputs/number/format_number.js.map +0 -1
- package/lib/inputs/number/index.d.ts +0 -6
- package/lib/inputs/number/index.js +0 -69
- package/lib/inputs/number/index.js.map +0 -1
- package/lib/inputs/number/types.d.ts +0 -37
- package/lib/inputs/period/Dialog.d.ts +0 -3
- package/lib/inputs/period/Dialog.js +0 -17
- package/lib/inputs/period/Dialog.js.map +0 -1
- package/lib/inputs/period/Dropdown.d.ts +0 -3
- package/lib/inputs/period/Dropdown.js +0 -15
- package/lib/inputs/period/Dropdown.js.map +0 -1
- package/lib/inputs/period/PeriodList.d.ts +0 -3
- package/lib/inputs/period/PeriodList.js +0 -48
- package/lib/inputs/period/PeriodList.js.map +0 -1
- package/lib/inputs/period/helper.d.ts +0 -11
- package/lib/inputs/period/helper.js +0 -26
- package/lib/inputs/period/helper.js.map +0 -1
- package/lib/inputs/period/index.d.ts +0 -3
- package/lib/inputs/period/index.js +0 -298
- package/lib/inputs/period/index.js.map +0 -1
- package/lib/inputs/period/types.d.ts +0 -72
- package/lib/inputs/search/index.d.ts +0 -3
- package/lib/inputs/search/index.js +0 -91
- package/lib/inputs/search/index.js.map +0 -1
- package/lib/inputs/select/ActionButtons.d.ts +0 -3
- package/lib/inputs/select/ActionButtons.js +0 -32
- package/lib/inputs/select/ActionButtons.js.map +0 -1
- package/lib/inputs/select/Dropdown.d.ts +0 -3
- package/lib/inputs/select/Dropdown.js +0 -87
- package/lib/inputs/select/Dropdown.js.map +0 -1
- package/lib/inputs/select/helper.d.ts +0 -11
- package/lib/inputs/select/helper.js +0 -24
- package/lib/inputs/select/helper.js.map +0 -1
- package/lib/inputs/select/index.d.ts +0 -3
- package/lib/inputs/select/index.js +0 -29
- package/lib/inputs/select/index.js.map +0 -1
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -3
- package/lib/inputs/select/multiple/Selecteds.js +0 -16
- package/lib/inputs/select/multiple/Selecteds.js.map +0 -1
- package/lib/inputs/select/multiple/index.d.ts +0 -3
- package/lib/inputs/select/multiple/index.js +0 -169
- package/lib/inputs/select/multiple/index.js.map +0 -1
- package/lib/inputs/select/simple/index.d.ts +0 -3
- package/lib/inputs/select/simple/index.js +0 -168
- package/lib/inputs/select/simple/index.js.map +0 -1
- package/lib/inputs/select/types.d.ts +0 -119
- package/lib/inputs/text/index.d.ts +0 -3
- package/lib/inputs/text/index.js +0 -8
- package/lib/inputs/text/index.js.map +0 -1
- package/lib/inputs/text/types.d.ts +0 -18
- package/lib/inputs/textarea/index.d.ts +0 -3
- package/lib/inputs/textarea/index.js +0 -17
- package/lib/inputs/textarea/index.js.map +0 -1
- package/lib/inputs/textarea/types.d.ts +0 -7
- package/lib/inputs/types.d.ts +0 -152
- package/lib/inputs2/checkboxfield/base.d.ts +0 -27
- package/lib/inputs2/checkboxfield/base.js +0 -110
- package/lib/inputs2/checkboxfield/base.js.map +0 -1
- package/lib/inputs2/checkboxfield/index.d.ts +0 -11
- package/lib/inputs2/checkboxfield/index.js +0 -35
- package/lib/inputs2/checkboxfield/index.js.map +0 -1
- package/lib/inputs2/colorfield/index.d.ts +0 -8
- package/lib/inputs2/colorfield/index.js +0 -70
- package/lib/inputs2/colorfield/index.js.map +0 -1
- package/lib/inputs2/date/base/constants.d.ts +0 -4
- package/lib/inputs2/date/base/constants.js +0 -31
- package/lib/inputs2/date/base/constants.js.map +0 -1
- package/lib/inputs2/date/base/index.d.ts +0 -6
- package/lib/inputs2/date/base/index.js +0 -126
- package/lib/inputs2/date/base/index.js.map +0 -1
- package/lib/inputs2/date/datefield/base.d.ts +0 -3
- package/lib/inputs2/date/datefield/base.js +0 -221
- package/lib/inputs2/date/datefield/base.js.map +0 -1
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -6
- package/lib/inputs2/date/datefield/calendarbox.js +0 -112
- package/lib/inputs2/date/datefield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/datefield/context.d.ts +0 -4
- package/lib/inputs2/date/datefield/context.js +0 -11
- package/lib/inputs2/date/datefield/context.js.map +0 -1
- package/lib/inputs2/date/datefield/index.d.ts +0 -5
- package/lib/inputs2/date/datefield/index.js +0 -30
- package/lib/inputs2/date/datefield/index.js.map +0 -1
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -32
- package/lib/inputs2/date/datefield/triggers.js.map +0 -1
- package/lib/inputs2/date/datefield/types.d.ts +0 -63
- package/lib/inputs2/date/dateperiodfield/base.d.ts +0 -3
- package/lib/inputs2/date/dateperiodfield/base.js +0 -386
- package/lib/inputs2/date/dateperiodfield/base.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -121
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -4
- package/lib/inputs2/date/dateperiodfield/context.js +0 -11
- package/lib/inputs2/date/dateperiodfield/context.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -5
- package/lib/inputs2/date/dateperiodfield/index.js +0 -30
- package/lib/inputs2/date/dateperiodfield/index.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -5
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -83
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -101
- package/lib/inputs2/date/helpers.d.ts +0 -10
- package/lib/inputs2/date/helpers.js +0 -60
- package/lib/inputs2/date/helpers.js.map +0 -1
- package/lib/inputs2/date/types.d.ts +0 -59
- package/lib/inputs2/date/types.js +0 -8
- package/lib/inputs2/date/types.js.map +0 -1
- package/lib/inputs2/filefield/index.d.ts +0 -11
- package/lib/inputs2/filefield/index.js +0 -147
- package/lib/inputs2/filefield/index.js.map +0 -1
- package/lib/inputs2/index.d.ts +0 -17
- package/lib/inputs2/index.js +0 -17
- package/lib/inputs2/mask/Cnpj.d.ts +0 -9
- package/lib/inputs2/mask/Cnpj.js +0 -72
- package/lib/inputs2/mask/Cnpj.js.map +0 -1
- package/lib/inputs2/mask/Cpf.d.ts +0 -9
- package/lib/inputs2/mask/Cpf.js +0 -58
- package/lib/inputs2/mask/Cpf.js.map +0 -1
- package/lib/inputs2/mask/Phone.d.ts +0 -8
- package/lib/inputs2/mask/Phone.js +0 -21
- package/lib/inputs2/mask/Phone.js.map +0 -1
- package/lib/inputs2/mask/ZipCode.d.ts +0 -7
- package/lib/inputs2/mask/ZipCode.js +0 -21
- package/lib/inputs2/mask/ZipCode.js.map +0 -1
- package/lib/inputs2/mask/helpers.d.ts +0 -2
- package/lib/inputs2/mask/helpers.js +0 -28
- package/lib/inputs2/mask/helpers.js.map +0 -1
- package/lib/inputs2/mask/index.d.ts +0 -6
- package/lib/inputs2/mask/index.js +0 -68
- package/lib/inputs2/mask/index.js.map +0 -1
- package/lib/inputs2/mask/types.d.ts +0 -16
- package/lib/inputs2/numberfield/currency.d.ts +0 -4
- package/lib/inputs2/numberfield/currency.js +0 -86
- package/lib/inputs2/numberfield/currency.js.map +0 -1
- package/lib/inputs2/numberfield/decimal.d.ts +0 -4
- package/lib/inputs2/numberfield/decimal.js +0 -78
- package/lib/inputs2/numberfield/decimal.js.map +0 -1
- package/lib/inputs2/numberfield/helpers.d.ts +0 -28
- package/lib/inputs2/numberfield/helpers.js +0 -17
- package/lib/inputs2/numberfield/helpers.js.map +0 -1
- package/lib/inputs2/numberfield/index.d.ts +0 -8
- package/lib/inputs2/numberfield/index.js +0 -83
- package/lib/inputs2/numberfield/index.js.map +0 -1
- package/lib/inputs2/numberfield/types.d.ts +0 -26
- package/lib/inputs2/radiofield/base.d.ts +0 -3
- package/lib/inputs2/radiofield/base.js +0 -113
- package/lib/inputs2/radiofield/base.js.map +0 -1
- package/lib/inputs2/radiofield/index.d.ts +0 -5
- package/lib/inputs2/radiofield/index.js +0 -35
- package/lib/inputs2/radiofield/index.js.map +0 -1
- package/lib/inputs2/radiofield/types.d.ts +0 -34
- package/lib/inputs2/selectfield/base.d.ts +0 -3
- package/lib/inputs2/selectfield/base.js +0 -312
- package/lib/inputs2/selectfield/base.js.map +0 -1
- package/lib/inputs2/selectfield/context.d.ts +0 -38
- package/lib/inputs2/selectfield/context.js +0 -11
- package/lib/inputs2/selectfield/context.js.map +0 -1
- package/lib/inputs2/selectfield/helpers.d.ts +0 -5
- package/lib/inputs2/selectfield/helpers.js +0 -36
- package/lib/inputs2/selectfield/helpers.js.map +0 -1
- package/lib/inputs2/selectfield/index.d.ts +0 -9
- package/lib/inputs2/selectfield/index.js +0 -42
- package/lib/inputs2/selectfield/index.js.map +0 -1
- package/lib/inputs2/selectfield/item.d.ts +0 -11
- package/lib/inputs2/selectfield/item.js +0 -54
- package/lib/inputs2/selectfield/item.js.map +0 -1
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -66
- package/lib/inputs2/selectfield/listbox.js.map +0 -1
- package/lib/inputs2/selectfield/options.d.ts +0 -8
- package/lib/inputs2/selectfield/options.js +0 -20
- package/lib/inputs2/selectfield/options.js.map +0 -1
- package/lib/inputs2/selectfield/search.d.ts +0 -6
- package/lib/inputs2/selectfield/search.js +0 -51
- package/lib/inputs2/selectfield/search.js.map +0 -1
- package/lib/inputs2/selectfield/selections.d.ts +0 -9
- package/lib/inputs2/selectfield/selections.js +0 -62
- package/lib/inputs2/selectfield/selections.js.map +0 -1
- package/lib/inputs2/selectfield/simple.d.ts +0 -9
- package/lib/inputs2/selectfield/simple.js +0 -22
- package/lib/inputs2/selectfield/simple.js.map +0 -1
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -110
- package/lib/inputs2/selectfield/triggers.js.map +0 -1
- package/lib/inputs2/selectfield/types.d.ts +0 -55
- package/lib/inputs2/selectfield/types.js +0 -10
- package/lib/inputs2/selectfield/types.js.map +0 -1
- package/lib/inputs2/slot/index.d.ts +0 -17
- package/lib/inputs2/slot/index.js +0 -52
- package/lib/inputs2/slot/index.js.map +0 -1
- package/lib/inputs2/textareafield/base.d.ts +0 -23
- package/lib/inputs2/textareafield/base.js +0 -119
- package/lib/inputs2/textareafield/base.js.map +0 -1
- package/lib/inputs2/textareafield/index.d.ts +0 -12
- package/lib/inputs2/textareafield/index.js +0 -40
- package/lib/inputs2/textareafield/index.js.map +0 -1
- package/lib/inputs2/textfield/base.d.ts +0 -23
- package/lib/inputs2/textfield/base.js +0 -101
- package/lib/inputs2/textfield/base.js.map +0 -1
- package/lib/inputs2/textfield/index.d.ts +0 -12
- package/lib/inputs2/textfield/index.js +0 -40
- package/lib/inputs2/textfield/index.js.map +0 -1
- package/lib/internals/colorStyles.d.ts +0 -8
- package/lib/internals/colorStyles.js +0 -12
- package/lib/internals/colorStyles.js.map +0 -1
- package/lib/internals/constants.d.ts +0 -12
- package/lib/internals/constants.js +0 -13
- package/lib/internals/constants.js.map +0 -1
- package/lib/internals/types.d.ts +0 -7
- package/lib/labelMessages/index.d.ts +0 -3
- package/lib/labelMessages/index.js +0 -49
- package/lib/labelMessages/index.js.map +0 -1
- package/lib/labelMessages/types.d.ts +0 -16
- package/lib/labels/DangerLabel.d.ts +0 -3
- package/lib/labels/DangerLabel.js +0 -11
- package/lib/labels/DangerLabel.js.map +0 -1
- package/lib/labels/DefaultLabel.d.ts +0 -3
- package/lib/labels/DefaultLabel.js +0 -30
- package/lib/labels/DefaultLabel.js.map +0 -1
- package/lib/labels/InfoLabel.d.ts +0 -3
- package/lib/labels/InfoLabel.js +0 -11
- package/lib/labels/InfoLabel.js.map +0 -1
- package/lib/labels/PrimaryLabel.d.ts +0 -3
- package/lib/labels/PrimaryLabel.js +0 -11
- package/lib/labels/PrimaryLabel.js.map +0 -1
- package/lib/labels/SuccessLabel.d.ts +0 -3
- package/lib/labels/SuccessLabel.js +0 -11
- package/lib/labels/SuccessLabel.js.map +0 -1
- package/lib/labels/WarningLabel.d.ts +0 -3
- package/lib/labels/WarningLabel.js +0 -11
- package/lib/labels/WarningLabel.js.map +0 -1
- package/lib/labels/index.d.ts +0 -9
- package/lib/labels/index.js +0 -14
- package/lib/labels/index.js.map +0 -1
- package/lib/labels/label_container/index.d.ts +0 -10
- package/lib/labels/label_container/index.js +0 -11
- package/lib/labels/label_container/index.js.map +0 -1
- package/lib/labels/types.d.ts +0 -19
- package/lib/list/Header.d.ts +0 -3
- package/lib/list/Header.js +0 -14
- package/lib/list/Header.js.map +0 -1
- package/lib/list/Item.d.ts +0 -3
- package/lib/list/Item.js +0 -90
- package/lib/list/Item.js.map +0 -1
- package/lib/list/Separator.d.ts +0 -2
- package/lib/list/Separator.js +0 -7
- package/lib/list/Separator.js.map +0 -1
- package/lib/list/helpers.d.ts +0 -8
- package/lib/list/helpers.js +0 -11
- package/lib/list/helpers.js.map +0 -1
- package/lib/list/index.d.ts +0 -7
- package/lib/list/index.js +0 -75
- package/lib/list/index.js.map +0 -1
- package/lib/list/types.d.ts +0 -66
- package/lib/menus/float/MenuItem.d.ts +0 -3
- package/lib/menus/float/MenuItem.js +0 -60
- package/lib/menus/float/MenuItem.js.map +0 -1
- package/lib/menus/float/SubMenuContainer.d.ts +0 -29
- package/lib/menus/float/SubMenuContainer.js +0 -63
- package/lib/menus/float/SubMenuContainer.js.map +0 -1
- package/lib/menus/float/helpers.d.ts +0 -3
- package/lib/menus/float/helpers.js +0 -7
- package/lib/menus/float/helpers.js.map +0 -1
- package/lib/menus/float/index.d.ts +0 -6
- package/lib/menus/float/index.js +0 -38
- package/lib/menus/float/index.js.map +0 -1
- package/lib/menus/float/types.d.ts +0 -26
- package/lib/menus/index.d.ts +0 -2
- package/lib/menus/index.js +0 -7
- package/lib/menus/index.js.map +0 -1
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -3
- package/lib/menus/sidenav/ExpandMenu.js +0 -18
- package/lib/menus/sidenav/ExpandMenu.js.map +0 -1
- package/lib/menus/sidenav/MenuLink.d.ts +0 -3
- package/lib/menus/sidenav/MenuLink.js +0 -24
- package/lib/menus/sidenav/MenuLink.js.map +0 -1
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuGroup.js +0 -19
- package/lib/menus/sidenav/NavMenuGroup.js.map +0 -1
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuItem.js +0 -96
- package/lib/menus/sidenav/NavMenuItem.js.map +0 -1
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -37
- package/lib/menus/sidenav/NavSubMenuItem.js.map +0 -1
- package/lib/menus/sidenav/helpers.d.ts +0 -5
- package/lib/menus/sidenav/helpers.js +0 -10
- package/lib/menus/sidenav/helpers.js.map +0 -1
- package/lib/menus/sidenav/index.d.ts +0 -8
- package/lib/menus/sidenav/index.js +0 -97
- package/lib/menus/sidenav/index.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -18
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -80
- package/lib/menus/sidenav/popup_menu_search/index.js.map +0 -1
- package/lib/menus/sidenav/types.d.ts +0 -85
- package/lib/noPermission/index.d.ts +0 -2
- package/lib/noPermission/index.js +0 -27
- package/lib/noPermission/index.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -32
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +0 -29
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +0 -41
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input-history.js +0 -32
- package/lib/node_modules/imask/esm/controls/input-history.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input.js +0 -179
- package/lib/node_modules/imask/esm/controls/input.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/mask-element.js +0 -31
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/core/action-details.js +0 -36
- package/lib/node_modules/imask/esm/core/action-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/change-details.js +0 -32
- package/lib/node_modules/imask/esm/core/change-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +0 -39
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/holder.js +0 -8
- package/lib/node_modules/imask/esm/core/holder.js.map +0 -1
- package/lib/node_modules/imask/esm/core/utils.js +0 -58
- package/lib/node_modules/imask/esm/core/utils.js.map +0 -1
- package/lib/node_modules/imask/esm/imask.js +0 -8
- package/lib/node_modules/imask/esm/index.js +0 -31
- package/lib/node_modules/imask/esm/index.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/base.js +0 -199
- package/lib/node_modules/imask/esm/masked/base.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/date.js +0 -102
- package/lib/node_modules/imask/esm/masked/date.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/dynamic.js +0 -201
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/enum.js +0 -65
- package/lib/node_modules/imask/esm/masked/enum.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/factory.js +0 -35
- package/lib/node_modules/imask/esm/masked/factory.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/function.js +0 -20
- package/lib/node_modules/imask/esm/masked/function.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/number.js +0 -177
- package/lib/node_modules/imask/esm/masked/number.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -85
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +0 -86
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -93
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +0 -112
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern.js +0 -285
- package/lib/node_modules/imask/esm/masked/pattern.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pipe.js +0 -21
- package/lib/node_modules/imask/esm/masked/pipe.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/range.js +0 -67
- package/lib/node_modules/imask/esm/masked/range.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/regexp.js +0 -18
- package/lib/node_modules/imask/esm/masked/regexp.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/repeat.js +0 -90
- package/lib/node_modules/imask/esm/masked/repeat.js.map +0 -1
- package/lib/node_modules/lodash/_Hash.js +0 -23
- package/lib/node_modules/lodash/_Hash.js.map +0 -1
- package/lib/node_modules/lodash/_ListCache.js +0 -23
- package/lib/node_modules/lodash/_ListCache.js.map +0 -1
- package/lib/node_modules/lodash/_Map.js +0 -12
- package/lib/node_modules/lodash/_Map.js.map +0 -1
- package/lib/node_modules/lodash/_MapCache.js +0 -23
- package/lib/node_modules/lodash/_MapCache.js.map +0 -1
- package/lib/node_modules/lodash/_Symbol.js +0 -11
- package/lib/node_modules/lodash/_Symbol.js.map +0 -1
- package/lib/node_modules/lodash/_assocIndexOf.js +0 -16
- package/lib/node_modules/lodash/_assocIndexOf.js.map +0 -1
- package/lib/node_modules/lodash/_baseGetTag.js +0 -17
- package/lib/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/lib/node_modules/lodash/_baseIsNative.js +0 -18
- package/lib/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/lib/node_modules/lodash/_coreJsData.js +0 -11
- package/lib/node_modules/lodash/_coreJsData.js.map +0 -1
- package/lib/node_modules/lodash/_freeGlobal.js +0 -10
- package/lib/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/lib/node_modules/lodash/_getMapData.js +0 -16
- package/lib/node_modules/lodash/_getMapData.js.map +0 -1
- package/lib/node_modules/lodash/_getNative.js +0 -17
- package/lib/node_modules/lodash/_getNative.js.map +0 -1
- package/lib/node_modules/lodash/_getRawTag.js +0 -21
- package/lib/node_modules/lodash/_getRawTag.js.map +0 -1
- package/lib/node_modules/lodash/_getValue.js +0 -13
- package/lib/node_modules/lodash/_getValue.js.map +0 -1
- package/lib/node_modules/lodash/_hashClear.js +0 -15
- package/lib/node_modules/lodash/_hashClear.js.map +0 -1
- package/lib/node_modules/lodash/_hashDelete.js +0 -14
- package/lib/node_modules/lodash/_hashDelete.js.map +0 -1
- package/lib/node_modules/lodash/_hashGet.js +0 -20
- package/lib/node_modules/lodash/_hashGet.js.map +0 -1
- package/lib/node_modules/lodash/_hashHas.js +0 -16
- package/lib/node_modules/lodash/_hashHas.js.map +0 -1
- package/lib/node_modules/lodash/_hashSet.js +0 -16
- package/lib/node_modules/lodash/_hashSet.js.map +0 -1
- package/lib/node_modules/lodash/_isKeyable.js +0 -14
- package/lib/node_modules/lodash/_isKeyable.js.map +0 -1
- package/lib/node_modules/lodash/_isMasked.js +0 -18
- package/lib/node_modules/lodash/_isMasked.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheClear.js +0 -13
- package/lib/node_modules/lodash/_listCacheClear.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheDelete.js +0 -16
- package/lib/node_modules/lodash/_listCacheDelete.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheGet.js +0 -16
- package/lib/node_modules/lodash/_listCacheGet.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheHas.js +0 -15
- package/lib/node_modules/lodash/_listCacheHas.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheSet.js +0 -16
- package/lib/node_modules/lodash/_listCacheSet.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheClear.js +0 -21
- package/lib/node_modules/lodash/_mapCacheClear.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheDelete.js +0 -16
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheGet.js +0 -15
- package/lib/node_modules/lodash/_mapCacheGet.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheHas.js +0 -15
- package/lib/node_modules/lodash/_mapCacheHas.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheSet.js +0 -16
- package/lib/node_modules/lodash/_mapCacheSet.js.map +0 -1
- package/lib/node_modules/lodash/_nativeCreate.js +0 -11
- package/lib/node_modules/lodash/_nativeCreate.js.map +0 -1
- package/lib/node_modules/lodash/_objectToString.js +0 -14
- package/lib/node_modules/lodash/_objectToString.js.map +0 -1
- package/lib/node_modules/lodash/_root.js +0 -12
- package/lib/node_modules/lodash/_root.js.map +0 -1
- package/lib/node_modules/lodash/_toSource.js +0 -22
- package/lib/node_modules/lodash/_toSource.js.map +0 -1
- package/lib/node_modules/lodash/eq.js +0 -13
- package/lib/node_modules/lodash/eq.js.map +0 -1
- package/lib/node_modules/lodash/isFunction.js +0 -18
- package/lib/node_modules/lodash/isFunction.js.map +0 -1
- package/lib/node_modules/lodash/isObject.js +0 -14
- package/lib/node_modules/lodash/isObject.js.map +0 -1
- package/lib/node_modules/lodash/lodash.js +0 -3295
- package/lib/node_modules/lodash/lodash.js.map +0 -1
- package/lib/node_modules/lodash/memoize.js +0 -22
- package/lib/node_modules/lodash/memoize.js.map +0 -1
- package/lib/node_modules/moment/dist/moment.js +0 -1934
- package/lib/node_modules/moment/dist/moment.js.map +0 -1
- package/lib/node_modules/object-assign/index.js +0 -41
- package/lib/node_modules/object-assign/index.js.map +0 -1
- package/lib/node_modules/prop-types/checkPropTypes.js +0 -46
- package/lib/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -49
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +0 -272
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/lib/node_modules/prop-types/index.js +0 -16
- package/lib/node_modules/prop-types/index.js.map +0 -1
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/lib/node_modules/prop-types/lib/has.js +0 -10
- package/lib/node_modules/prop-types/lib/has.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -84
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -64
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +0 -12
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js +0 -16
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js.map +0 -1
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js +0 -13
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
- package/lib/node_modules/react/compiler-runtime.js +0 -12
- package/lib/node_modules/react/compiler-runtime.js.map +0 -1
- package/lib/node_modules/react-imask/esm/hook.js +0 -58
- package/lib/node_modules/react-imask/esm/hook.js.map +0 -1
- package/lib/node_modules/react-imask/esm/index.js +0 -7
- package/lib/node_modules/react-imask/esm/input.js +0 -18
- package/lib/node_modules/react-imask/esm/input.js.map +0 -1
- package/lib/node_modules/react-imask/esm/mixin.js +0 -129
- package/lib/node_modules/react-imask/esm/mixin.js.map +0 -1
- package/lib/node_modules/uuid/dist/native.js +0 -5
- package/lib/node_modules/uuid/dist/native.js.map +0 -1
- package/lib/node_modules/uuid/dist/rng.js +0 -13
- package/lib/node_modules/uuid/dist/rng.js.map +0 -1
- package/lib/node_modules/uuid/dist/stringify.js +0 -10
- package/lib/node_modules/uuid/dist/stringify.js.map +0 -1
- package/lib/node_modules/uuid/dist/v1.js +0 -36
- package/lib/node_modules/uuid/dist/v1.js.map +0 -1
- package/lib/node_modules/uuid/dist/v4.js +0 -22
- package/lib/node_modules/uuid/dist/v4.js.map +0 -1
- package/lib/panel/Content.d.ts +0 -3
- package/lib/panel/Content.js +0 -42
- package/lib/panel/Content.js.map +0 -1
- package/lib/panel/DangerPanel.d.ts +0 -3
- package/lib/panel/DangerPanel.js +0 -12
- package/lib/panel/DangerPanel.js.map +0 -1
- package/lib/panel/Default.d.ts +0 -3
- package/lib/panel/Default.js +0 -45
- package/lib/panel/Default.js.map +0 -1
- package/lib/panel/Header.d.ts +0 -3
- package/lib/panel/Header.js +0 -51
- package/lib/panel/Header.js.map +0 -1
- package/lib/panel/InfoPanel.d.ts +0 -3
- package/lib/panel/InfoPanel.js +0 -12
- package/lib/panel/InfoPanel.js.map +0 -1
- package/lib/panel/PrimaryPanel.d.ts +0 -3
- package/lib/panel/PrimaryPanel.js +0 -12
- package/lib/panel/PrimaryPanel.js.map +0 -1
- package/lib/panel/SuccessPanel.d.ts +0 -3
- package/lib/panel/SuccessPanel.js +0 -12
- package/lib/panel/SuccessPanel.js.map +0 -1
- package/lib/panel/ToolBar.d.ts +0 -3
- package/lib/panel/WarningPanel.d.ts +0 -3
- package/lib/panel/WarningPanel.js +0 -12
- package/lib/panel/WarningPanel.js.map +0 -1
- package/lib/panel/helpers.d.ts +0 -4
- package/lib/panel/helpers.js +0 -13
- package/lib/panel/helpers.js.map +0 -1
- package/lib/panel/index.d.ts +0 -10
- package/lib/panel/index.js +0 -15
- package/lib/panel/index.js.map +0 -1
- package/lib/panel/types.d.ts +0 -43
- package/lib/permissionValidations.d.ts +0 -12
- package/lib/permissionValidations.js +0 -40
- package/lib/permissionValidations.js.map +0 -1
- package/lib/popover/PopoverText.d.ts +0 -3
- package/lib/popover/PopoverText.js +0 -19
- package/lib/popover/PopoverText.js.map +0 -1
- package/lib/popover/PopoverTitle.d.ts +0 -3
- package/lib/popover/PopoverTitle.js +0 -10
- package/lib/popover/PopoverTitle.js.map +0 -1
- package/lib/popover/index.d.ts +0 -6
- package/lib/popover/index.js +0 -40
- package/lib/popover/index.js.map +0 -1
- package/lib/popover/types.d.ts +0 -32
- package/lib/progress/Bar.d.ts +0 -3
- package/lib/progress/Bar.js +0 -41
- package/lib/progress/Bar.js.map +0 -1
- package/lib/progress/index.d.ts +0 -5
- package/lib/progress/index.js +0 -20
- package/lib/progress/index.js.map +0 -1
- package/lib/progress/types.d.ts +0 -34
- package/lib/radio/index.d.ts +0 -11
- package/lib/radio/index.js +0 -88
- package/lib/radio/index.js.map +0 -1
- package/lib/radio/types.d.ts +0 -25
- package/lib/shortcuts/index.d.ts +0 -3
- package/lib/shortcuts/index.js +0 -22
- package/lib/shortcuts/index.js.map +0 -1
- package/lib/shortcuts/types.d.ts +0 -9
- package/lib/skeleton/SkeletonContainer.d.ts +0 -3
- package/lib/skeleton/SkeletonContainer.js +0 -12
- package/lib/skeleton/SkeletonContainer.js.map +0 -1
- package/lib/skeleton/index.d.ts +0 -5
- package/lib/skeleton/index.js +0 -29
- package/lib/skeleton/index.js.map +0 -1
- package/lib/skeleton/types.d.ts +0 -18
- package/lib/spinner/SpinnerLoading.d.ts +0 -3
- package/lib/spinner/SpinnerLoading.js +0 -249
- package/lib/spinner/SpinnerLoading.js.map +0 -1
- package/lib/spinner/index.d.ts +0 -5
- package/lib/spinner/index.js +0 -48
- package/lib/spinner/index.js.map +0 -1
- package/lib/spinner/types.d.ts +0 -17
- package/lib/split/Split.d.ts +0 -3
- package/lib/split/Split.js +0 -195
- package/lib/split/Split.js.map +0 -1
- package/lib/split/SplitSide.d.ts +0 -3
- package/lib/split/SplitSide.js +0 -21
- package/lib/split/SplitSide.js.map +0 -1
- package/lib/split/helpers.d.ts +0 -7
- package/lib/split/helpers.js +0 -7
- package/lib/split/helpers.js.map +0 -1
- package/lib/split/index.d.ts +0 -4
- package/lib/split/index.js +0 -9
- package/lib/split/index.js.map +0 -1
- package/lib/split/types.d.ts +0 -31
- package/lib/table/Body.d.ts +0 -3
- package/lib/table/Body.js +0 -42
- package/lib/table/Body.js.map +0 -1
- package/lib/table/Header.d.ts +0 -3
- package/lib/table/Header.js +0 -56
- package/lib/table/Header.js.map +0 -1
- package/lib/table/HeaderColumn.d.ts +0 -3
- package/lib/table/HeaderColumn.js +0 -41
- package/lib/table/HeaderColumn.js.map +0 -1
- package/lib/table/Row.d.ts +0 -3
- package/lib/table/Row.js +0 -48
- package/lib/table/Row.js.map +0 -1
- package/lib/table/RowColumn.d.ts +0 -3
- package/lib/table/RowColumn.js +0 -48
- package/lib/table/RowColumn.js.map +0 -1
- package/lib/table/helpers.d.ts +0 -6
- package/lib/table/helpers.js +0 -7
- package/lib/table/helpers.js.map +0 -1
- package/lib/table/index.d.ts +0 -9
- package/lib/table/index.js +0 -70
- package/lib/table/index.js.map +0 -1
- package/lib/table/types.d.ts +0 -95
- package/lib/tabs/DropdownTabs.d.ts +0 -3
- package/lib/tabs/DropdownTabs.js +0 -70
- package/lib/tabs/DropdownTabs.js.map +0 -1
- package/lib/tabs/Menu.d.ts +0 -3
- package/lib/tabs/Menu.js +0 -35
- package/lib/tabs/Menu.js.map +0 -1
- package/lib/tabs/MenuTabs.d.ts +0 -3
- package/lib/tabs/MenuTabs.js +0 -60
- package/lib/tabs/MenuTabs.js.map +0 -1
- package/lib/tabs/Panel.d.ts +0 -3
- package/lib/tabs/Panel.js +0 -42
- package/lib/tabs/Panel.js.map +0 -1
- package/lib/tabs/context.d.ts +0 -3
- package/lib/tabs/context.js +0 -82
- package/lib/tabs/context.js.map +0 -1
- package/lib/tabs/index.d.ts +0 -5
- package/lib/tabs/index.js +0 -54
- package/lib/tabs/index.js.map +0 -1
- package/lib/tabs/tabHelpers.d.ts +0 -27
- package/lib/tabs/tabHelpers.js +0 -42
- package/lib/tabs/tabHelpers.js.map +0 -1
- package/lib/tabs/types.d.ts +0 -102
- package/lib/tabs/useTabs.d.ts +0 -1
- package/lib/tabs/useTabs.js +0 -10
- package/lib/tabs/useTabs.js.map +0 -1
- package/lib/textContent/index.d.ts +0 -14
- package/lib/textContent/index.js +0 -28
- package/lib/textContent/index.js.map +0 -1
- package/lib/toolbar/ButtonBar.d.ts +0 -3
- package/lib/toolbar/ButtonBar.js +0 -54
- package/lib/toolbar/ButtonBar.js.map +0 -1
- package/lib/toolbar/LabelBar.d.ts +0 -3
- package/lib/toolbar/LabelBar.js +0 -40
- package/lib/toolbar/LabelBar.js.map +0 -1
- package/lib/toolbar/Separator.d.ts +0 -2
- package/lib/toolbar/Separator.js +0 -7
- package/lib/toolbar/Separator.js.map +0 -1
- package/lib/toolbar/ToolBarGroup.d.ts +0 -3
- package/lib/toolbar/ToolBarGroup.js +0 -11
- package/lib/toolbar/ToolBarGroup.js.map +0 -1
- package/lib/toolbar/helpers.d.ts +0 -3
- package/lib/toolbar/helpers.js +0 -7
- package/lib/toolbar/helpers.js.map +0 -1
- package/lib/toolbar/index.d.ts +0 -8
- package/lib/toolbar/index.js +0 -24
- package/lib/toolbar/index.js.map +0 -1
- package/lib/toolbar/types.d.ts +0 -43
- package/lib/tooltip/TooltipContent.d.ts +0 -3
- package/lib/tooltip/TooltipContent.js +0 -33
- package/lib/tooltip/TooltipContent.js.map +0 -1
- package/lib/tooltip/index.d.ts +0 -3
- package/lib/tooltip/index.js +0 -41
- package/lib/tooltip/index.js.map +0 -1
- package/lib/tooltip/types.d.ts +0 -40
- package/lib/tooltip/useTooltip.d.ts +0 -27
- package/lib/tooltip/useTooltip.js +0 -78
- package/lib/tooltip/useTooltip.js.map +0 -1
- package/lib/treetable/Body.d.ts +0 -2
- package/lib/treetable/Body.js +0 -26
- package/lib/treetable/Body.js.map +0 -1
- package/lib/treetable/Header.d.ts +0 -2
- package/lib/treetable/Header.js +0 -27
- package/lib/treetable/Header.js.map +0 -1
- package/lib/treetable/Row.d.ts +0 -3
- package/lib/treetable/Row.js +0 -155
- package/lib/treetable/Row.js.map +0 -1
- package/lib/treetable/helpers.d.ts +0 -14
- package/lib/treetable/helpers.js +0 -13
- package/lib/treetable/helpers.js.map +0 -1
- package/lib/treetable/index.d.ts +0 -4
- package/lib/treetable/index.js +0 -22
- package/lib/treetable/index.js.map +0 -1
- package/lib/treeview/Header.d.ts +0 -3
- package/lib/treeview/Header.js +0 -16
- package/lib/treeview/Header.js.map +0 -1
- package/lib/treeview/Node.d.ts +0 -3
- package/lib/treeview/Node.js +0 -151
- package/lib/treeview/Node.js.map +0 -1
- package/lib/treeview/constants.d.ts +0 -2
- package/lib/treeview/constants.js +0 -7
- package/lib/treeview/constants.js.map +0 -1
- package/lib/treeview/index.d.ts +0 -6
- package/lib/treeview/index.js +0 -182
- package/lib/treeview/index.js.map +0 -1
- package/lib/treeview/types.d.ts +0 -106
- package/lib/uitour/helpers.d.ts +0 -7
- package/lib/uitour/helpers.js +0 -9
- package/lib/uitour/helpers.js.map +0 -1
- package/lib/uitour/index.d.ts +0 -3
- package/lib/uitour/index.js +0 -184
- package/lib/uitour/index.js.map +0 -1
- package/lib/uitour/types.d.ts +0 -35
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","names":[],"sources":["../../../src/lib/inputs/period/Dropdown.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react';\nimport ReactDOM from 'react-dom';\nimport { IPeriodDropdownProps } from './types';\n\nconst CALENDAR_MIN_WIDTH = 250;\nconst Dropdown = (props: IPeriodDropdownProps) => {\n const { children, dropdownRef, containerRef, inputDimensions } = props;\n const elementRef = useRef(document.createElement('div'));\n const width = inputDimensions && inputDimensions.width || CALENDAR_MIN_WIDTH;\n\n useEffect(() => {\n elementRef.current.className = 'datepicker-component';\n elementRef.current.style.width = String(width).concat('px');\n elementRef.current.style.top = String(inputDimensions?.bottom).concat('px');\n\n containerRef.current?.appendChild(elementRef.current);\n dropdownRef(elementRef.current);\n\n return () => {\n containerRef.current?.removeChild(elementRef.current);\n };\n }, []);\n\n useEffect(() => {\n elementRef.current.style.width = String(width).concat('px');\n elementRef.current.style.top = String(props.inputDimensions?.bottom).concat('px');\n }, [props]);\n\n return ReactDOM.createPortal(children, elementRef.current);\n};\n\nexport default Dropdown;\n"],"mappings":";;;AAIA,IAAM,IAAqB,KACrB,KAAY,MAAgC;CAChD,IAAM,EAAE,aAAU,gBAAa,iBAAc,uBAAoB,GAC3D,IAAa,EAAO,SAAS,cAAc,MAAM,CAAC,EAClD,IAAQ,KAAmB,EAAgB,SAAS;AAoB1D,QAlBA,SACE,EAAW,QAAQ,YAAY,wBAC/B,EAAW,QAAQ,MAAM,QAAQ,OAAO,EAAM,CAAC,OAAO,KAAK,EAC3D,EAAW,QAAQ,MAAM,MAAM,OAAO,GAAiB,OAAO,CAAC,OAAO,KAAK,EAE3E,EAAa,SAAS,YAAY,EAAW,QAAQ,EACrD,EAAY,EAAW,QAAQ,QAElB;AACX,IAAa,SAAS,YAAY,EAAW,QAAQ;KAEtD,EAAE,CAAC,EAEN,QAAgB;AAEd,EADA,EAAW,QAAQ,MAAM,QAAQ,OAAO,EAAM,CAAC,OAAO,KAAK,EAC3D,EAAW,QAAQ,MAAM,MAAM,OAAO,EAAM,iBAAiB,OAAO,CAAC,OAAO,KAAK;IAChF,CAAC,EAAM,CAAC,EAEJ,EAAS,aAAa,GAAU,EAAW,QAAQ"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CalcDatesByPeriod as e, getDropdownItemCssClass as t } from "./helper.js";
|
|
2
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
-
//#region src/lib/inputs/period/PeriodList.tsx
|
|
4
|
-
var r = [
|
|
5
|
-
{
|
|
6
|
-
id: "today",
|
|
7
|
-
label: "Hoje"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
id: "week",
|
|
11
|
-
label: "Semana Atual"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
id: "lastweek",
|
|
15
|
-
label: "Última Semana"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
id: "last15",
|
|
19
|
-
label: "Últimos 15 dias"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: "month",
|
|
23
|
-
label: "Mês atual"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: "lastmonth",
|
|
27
|
-
label: "Último Mês"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "custom",
|
|
31
|
-
label: "Customizar"
|
|
32
|
-
}
|
|
33
|
-
], i = ({ selected: i, handleOnSelect: a }) => /* @__PURE__ */ n("div", {
|
|
34
|
-
className: "dropdown-period",
|
|
35
|
-
children: r.map((r) => /* @__PURE__ */ n("button", {
|
|
36
|
-
tabIndex: -1,
|
|
37
|
-
className: t(i === r.id),
|
|
38
|
-
onClick: () => {
|
|
39
|
-
let t = r.id === "custom" ? null : e(r.id);
|
|
40
|
-
a(r.id, t);
|
|
41
|
-
},
|
|
42
|
-
children: r.label
|
|
43
|
-
}, `item-${r.id}`))
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
|
-
export { i as default };
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=PeriodList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PeriodList.js","names":[],"sources":["../../../src/lib/inputs/period/PeriodList.tsx"],"sourcesContent":["import { CalcDatesByPeriod, getDropdownItemCssClass } from './helper';\nimport { IPeriodOptions, IPeriodListProps } from './types';\n\nconst periodOptions: IPeriodOptions[] = [\n { id: 'today', label: 'Hoje' },\n { id: 'week', label: 'Semana Atual' },\n { id: 'lastweek', label: 'Última Semana' },\n { id: 'last15', label: 'Últimos 15 dias' },\n { id: 'month', label: 'Mês atual' },\n { id: 'lastmonth', label: 'Último Mês' },\n { id: 'custom', label: 'Customizar' },\n];\n\nconst PeriodList = ({ selected, handleOnSelect }: IPeriodListProps) => (\n <div className=\"dropdown-period\">\n {\n periodOptions.map((item) => {\n const itemSelected = (selected === item.id);\n return (\n <button\n key={String('item-').concat(item.id)}\n tabIndex={-1}\n className={getDropdownItemCssClass(itemSelected)}\n onClick={() => {\n const dates = item.id !== 'custom' ? CalcDatesByPeriod(item.id) : null;\n handleOnSelect(item.id, dates);\n }}>\n {item.label}\n </button>\n );\n })}\n </div>\n);\n\nexport default PeriodList;\n"],"mappings":";;;AAGA,IAAM,IAAkC;CACtC;EAAE,IAAI;EAAS,OAAO;EAAQ;CAC9B;EAAE,IAAI;EAAQ,OAAO;EAAgB;CACrC;EAAE,IAAI;EAAY,OAAO;EAAiB;CAC1C;EAAE,IAAI;EAAU,OAAO;EAAmB;CAC1C;EAAE,IAAI;EAAS,OAAO;EAAa;CACnC;EAAE,IAAI;EAAa,OAAO;EAAc;CACxC;EAAE,IAAI;EAAU,OAAO;EAAc;CACtC,EAEK,KAAc,EAAE,aAAU,wBAC9B,kBAAC,OAAD;CAAK,WAAU;WAEX,EAAc,KAAK,MAGf,kBAAC,UAAD;EAEE,UAAU;EACV,WAAW,EALO,MAAa,EAAK,GAKY;EAChD,eAAe;GACb,IAAM,IAAQ,EAAK,OAAO,WAAwC,OAA7B,EAAkB,EAAK,GAAG;AAC/D,KAAe,EAAK,IAAI,EAAM;;YAE/B,EAAK;EACC,EARF,QAAuB,EAAK,KAQ1B;CAGX,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { DateTypes } from './types';
|
|
3
|
-
declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width }: {
|
|
4
|
-
topPosition: number | string;
|
|
5
|
-
leftPosition: number | string;
|
|
6
|
-
width: number | string;
|
|
7
|
-
}) => string;
|
|
8
|
-
export default getCalendarDropdownStyle;
|
|
9
|
-
export declare const getDropdownItemCssClass: (selected?: boolean, disabled?: boolean, striped?: boolean) => string;
|
|
10
|
-
export declare const CalcDatesByPeriod: (dateType: DateTypes) => Moment[];
|
|
11
|
-
export declare const isDateValid: (date: Moment) => boolean;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import e from "../../node_modules/moment/dist/moment.js";
|
|
2
|
-
//#region src/lib/inputs/period/helper.ts
|
|
3
|
-
var t = (e = !1, t = !1, n = !1) => {
|
|
4
|
-
let r = "item";
|
|
5
|
-
return r += e && !t ? " -selected " : "", r += t ? " -disabled" : "", r += !e && !t && n ? " -striped " : "", r;
|
|
6
|
-
}, n = (t) => {
|
|
7
|
-
let n = e();
|
|
8
|
-
return {
|
|
9
|
-
today: () => [n, n],
|
|
10
|
-
week: () => [n.clone().startOf("week"), n.clone().endOf("week")],
|
|
11
|
-
lastweek: () => {
|
|
12
|
-
let e = n.subtract(1, "weeks");
|
|
13
|
-
return [e.clone().startOf("week"), e.clone().endOf("week")];
|
|
14
|
-
},
|
|
15
|
-
last15: () => [e(n).subtract(15, "days"), n],
|
|
16
|
-
month: () => [n.clone().startOf("month"), n.clone().endOf("month")],
|
|
17
|
-
lastmonth: () => {
|
|
18
|
-
let e = n.subtract(1, "months");
|
|
19
|
-
return [e.clone().startOf("month"), e.clone().endOf("month")];
|
|
20
|
-
}
|
|
21
|
-
}[t]();
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
export { n as CalcDatesByPeriod, t as getDropdownItemCssClass };
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=helper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","names":[],"sources":["../../../src/lib/inputs/period/helper.ts"],"sourcesContent":["import moment, { Moment } from 'moment';\nimport { DateTypes } from './types';\n\nconst getCalendarDropdownStyle = ({ topPosition, leftPosition, width }:\n{ topPosition: number | string, leftPosition: number | string, width: number | string }) => (\n `top: ${topPosition}px;\n left: ${leftPosition}px;\n width:${width}px`\n);\nexport default getCalendarDropdownStyle;\n\nexport const getDropdownItemCssClass = (selected = false, disabled = false, striped = false) => {\n let className = 'item';\n className += (selected && !disabled ? ' -selected ' : '');\n className += disabled ? ' -disabled' : '';\n className += (!selected && !disabled && striped ? ' -striped ' : '');\n return className;\n};\n\nexport const CalcDatesByPeriod = (dateType: DateTypes): Moment[] => {\n const currentDate = moment();\n const dateTypes = {\n today: () => [currentDate, currentDate],\n week: () => {\n const weekStart = currentDate.clone().startOf('week');\n const weekEnd = currentDate.clone().endOf('week');\n return [weekStart, weekEnd];\n },\n lastweek: () => {\n const lastWeek = currentDate.subtract(1, 'weeks');\n const weekStart = lastWeek.clone().startOf('week');\n const weekEnd = lastWeek.clone().endOf('week');\n return [weekStart, weekEnd];\n },\n last15: () => {\n const last15Day = moment(currentDate);\n return [last15Day.subtract(15, 'days'), currentDate];\n },\n month: () => {\n const monthStart = currentDate.clone().startOf('month');\n const monthEnd = currentDate.clone().endOf('month');\n return [monthStart, monthEnd];\n },\n lastmonth: () => {\n const lastMonth = currentDate.subtract(1, 'months');\n const monthStart = lastMonth.clone().startOf('month');\n const monthEnd = lastMonth.clone().endOf('month');\n return [monthStart, monthEnd];\n },\n };\n return dateTypes[dateType]();\n};\n\nexport const isDateValid = (date: Moment) => date && moment(date).isValid();\n"],"mappings":";;AAWA,IAAa,KAA2B,IAAW,IAAO,IAAW,IAAO,IAAU,OAAU;CAC9F,IAAI,IAAY;AAIhB,QAHA,KAAc,KAAY,CAAC,IAAW,gBAAgB,IACtD,KAAa,IAAW,eAAe,IACvC,KAAc,CAAC,KAAY,CAAC,KAAY,IAAU,eAAe,IAC1D;GAGI,KAAqB,MAAkC;CAClE,IAAM,IAAc,GAAQ;AA8B5B,QA7BkB;EAChB,aAAa,CAAC,GAAa,EAAY;EACvC,YAGS,CAFW,EAAY,OAAO,CAAC,QAAQ,OAAO,EACrC,EAAY,OAAO,CAAC,MAAM,OAAO,CACtB;EAE7B,gBAAgB;GACd,IAAM,IAAW,EAAY,SAAS,GAAG,QAAQ;AAGjD,UAAO,CAFW,EAAS,OAAO,CAAC,QAAQ,OAAO,EAClC,EAAS,OAAO,CAAC,MAAM,OAAO,CACnB;;EAE7B,cAES,CADW,EAAO,EAAY,CACnB,SAAS,IAAI,OAAO,EAAE,EAAY;EAEtD,aAGS,CAFY,EAAY,OAAO,CAAC,QAAQ,QAAQ,EACtC,EAAY,OAAO,CAAC,MAAM,QAAQ,CACtB;EAE/B,iBAAiB;GACf,IAAM,IAAY,EAAY,SAAS,GAAG,SAAS;AAGnD,UAAO,CAFY,EAAU,OAAO,CAAC,QAAQ,QAAQ,EACpC,EAAU,OAAO,CAAC,MAAM,QAAQ,CACpB;;EAEhC,CACgB,IAAW"}
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
import e from "../../gridlayout/index.js";
|
|
2
|
-
import t from "../../icons/index.js";
|
|
3
|
-
import n from "../../buttons/index.js";
|
|
4
|
-
import { ErrorMessage as r } from "../errorMessage/index.js";
|
|
5
|
-
import i from "../../textContent/index.js";
|
|
6
|
-
import ee from "../../popover/index.js";
|
|
7
|
-
import te from "../../hint/index.js";
|
|
8
|
-
import a from "../../node_modules/moment/dist/moment.js";
|
|
9
|
-
import ne from "../../calendar/index.js";
|
|
10
|
-
import { getInputWrapperClass as re } from "../base/helpers.js";
|
|
11
|
-
import o from "../mask/BaseMask.js";
|
|
12
|
-
import '../../assets/styles/periodpicker.css';/* empty css */
|
|
13
|
-
import ie from "./PeriodList.js";
|
|
14
|
-
import s from "./Dropdown.js";
|
|
15
|
-
import c from "./Dialog.js";
|
|
16
|
-
import { useCallback as l, useEffect as u, useId as ae, useRef as d, useState as f } from "react";
|
|
17
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
18
|
-
//#region src/lib/inputs/period/index.tsx
|
|
19
|
-
var h = (h) => {
|
|
20
|
-
let { showButtonOpen: g = !0, openOnFocus: oe = !0, shouldCloseOnSelect: _ = !0, calendarColorStyle: v, showCalendarInDialog: y = !1, dialogSize: b = {
|
|
21
|
-
width: "350px",
|
|
22
|
-
height: "350px"
|
|
23
|
-
}, hint: x, hintPosition: se = "below", themePopover: ce = "light", popoverAlign: le = "left", gridLayout: ue } = h, de = ae(), fe = ae(), [S, C] = f(h.value && a(h.value.initial, "DD/MM/YYYY")), [w, T] = f(h.value && a(h.value.final, "DD/MM/YYYY")), [E, D] = f("week"), [O, k] = f(!1), [A, j] = f(!1), [M, N] = f(!1), [P, F] = f(), [I, L] = f(), [R, z] = f("valueInitial"), B = d(null), V = d(null), H = d(null), pe = d(null), U = d(null), me = d(null), W = d(null), G = d(null), K = d(null), q = () => {
|
|
24
|
-
F(V?.current?.getBoundingClientRect());
|
|
25
|
-
}, he = (e) => {
|
|
26
|
-
let t = !B.current?.contains(e.relatedTarget);
|
|
27
|
-
!y && O && t && k(!1), !y && A && t && j(!1);
|
|
28
|
-
}, ge = (e) => {
|
|
29
|
-
let { target: t } = e, n = t;
|
|
30
|
-
K.current && e && e.key && e.key === "Escape" && (e.preventDefault(), n.focus(), O && (n.id !== "valueInitial" && H.current?.focus(), k(!1)), A && (n.id !== "valueFinal" && G.current?.focus(), j(!1)), M && (N(!1), G.current?.focus(), j(!1))), e.stopPropagation();
|
|
31
|
-
}, J = () => {
|
|
32
|
-
let e = V.current?.getBoundingClientRect(), t = e && e.bottom;
|
|
33
|
-
W && W.current && e && (W.current.style.top = String(t).concat("px"));
|
|
34
|
-
}, _e = (e) => {
|
|
35
|
-
e === "valueInitial" && (z("valueInitial"), j(!1), O || (H.current?.focus(), y && setTimeout(() => {
|
|
36
|
-
U.current?.focus();
|
|
37
|
-
}, 100), k(!0))), e === "valueFinal" && (z("valueFinal"), k(!1), A || (G.current?.focus(), y && setTimeout(() => {
|
|
38
|
-
U.current?.focus();
|
|
39
|
-
}, 100), j(!0))), V.current && F(V.current.getBoundingClientRect());
|
|
40
|
-
}, ve = (e) => {
|
|
41
|
-
e === "valueInitial" && H.current?.focus(), e === "valueFinal" && G.current?.focus(), k(!1), j(!1);
|
|
42
|
-
}, ye = (e) => {
|
|
43
|
-
let t = e.initial ? e.initial.format("YYYY-MM-DD") : "", n = e.final ? e.final.format("YYYY-MM-DD") : "";
|
|
44
|
-
h?.onChange?.(void 0, "", {
|
|
45
|
-
initial: t,
|
|
46
|
-
final: n
|
|
47
|
-
});
|
|
48
|
-
}, Y = (e) => {
|
|
49
|
-
setTimeout(() => {
|
|
50
|
-
e === "valueInitial" && (H.current?.focus(), k(!1)), e === "valueFinal" && (G.current?.focus(), j(!1)), e === "periodSelection" && (N(!1), G.current?.focus(), j(!1));
|
|
51
|
-
}, 100);
|
|
52
|
-
}, be = (e) => {
|
|
53
|
-
let { name: t } = e.target;
|
|
54
|
-
oe && _e(t), h.onFocus && h.onFocus(e);
|
|
55
|
-
}, xe = (e) => {
|
|
56
|
-
h.onBlur && h.onBlur(e);
|
|
57
|
-
}, Se = (e) => {
|
|
58
|
-
if (e) {
|
|
59
|
-
let { name: t, value: n } = e.target;
|
|
60
|
-
String(n).trim().length === 0 && (t === "valueInitial" ? C(void 0) : T(void 0));
|
|
61
|
-
}
|
|
62
|
-
}, X = (e, t, n = !0) => {
|
|
63
|
-
let r = e ? e.target.name : "", i = a(t, "DD/MM/YYYY");
|
|
64
|
-
O && H.current?.focus(), A && G.current?.focus(), r === "valueInitial" ? (C(i), ye({
|
|
65
|
-
initial: i,
|
|
66
|
-
final: w
|
|
67
|
-
})) : (T(i), ye({
|
|
68
|
-
initial: S,
|
|
69
|
-
final: i
|
|
70
|
-
})), r === "valueInitial" && !w && n && (G.current?.focus(), j(!0)), _ && (k(!1), j(!1));
|
|
71
|
-
}, Z = () => {
|
|
72
|
-
let { disabled: e } = h;
|
|
73
|
-
return e || I && (I.disabled || I.hideContent);
|
|
74
|
-
}, Ce = l(() => g ? /* @__PURE__ */ p(n, {
|
|
75
|
-
boxShadow: !1,
|
|
76
|
-
disabled: Z(),
|
|
77
|
-
customClass: "calendar-button",
|
|
78
|
-
icon: /* @__PURE__ */ p(t, { name: "calendar" }),
|
|
79
|
-
onClick: () => {
|
|
80
|
-
A || O ? ve(R) : _e(R);
|
|
81
|
-
},
|
|
82
|
-
tabIndex: -1,
|
|
83
|
-
targetRef: (e) => {
|
|
84
|
-
pe.current = e;
|
|
85
|
-
}
|
|
86
|
-
}, "button-open") : null, [A, O]), we = (e, t) => /* @__PURE__ */ p(ie, {
|
|
87
|
-
selected: e,
|
|
88
|
-
handleOnSelect: t
|
|
89
|
-
}), Te = () => {
|
|
90
|
-
j(!1), k(!1), N(!0), V.current && F(V.current.getBoundingClientRect());
|
|
91
|
-
}, Ee = () => {
|
|
92
|
-
N(!1), G.current?.focus(), j(!1);
|
|
93
|
-
}, De = l(() => /* @__PURE__ */ p(n, {
|
|
94
|
-
disabled: Z(),
|
|
95
|
-
tabIndex: -1,
|
|
96
|
-
customClass: "calendar-button",
|
|
97
|
-
icon: /* @__PURE__ */ p(t, { name: "more1" }),
|
|
98
|
-
onBlur: () => setTimeout(() => N(!1), 100),
|
|
99
|
-
onClick: () => M ? Ee() : Te(),
|
|
100
|
-
targetRef: (e) => {
|
|
101
|
-
me.current = e;
|
|
102
|
-
}
|
|
103
|
-
}, "button-select-period"), [M]), Q = (e, t, n) => /* @__PURE__ */ p(ne, {
|
|
104
|
-
colorStyle: t,
|
|
105
|
-
currentDate: e === void 0 ? a() : a(e),
|
|
106
|
-
calendarContainer: (e) => {
|
|
107
|
-
K.current = e;
|
|
108
|
-
},
|
|
109
|
-
onDateChange: (e) => X({ target: { name: n } }, e),
|
|
110
|
-
currentDateButton: (e) => U.current = e
|
|
111
|
-
}), Oe = (e, t) => {
|
|
112
|
-
if (e === "custom") {
|
|
113
|
-
H.current?.focus(), D(e), N(!1);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
D(e), t && (C(t[0]), T(t[1])), _ && N(!1), G.current?.focus(), j(!1);
|
|
117
|
-
}, ke = () => I && I.readOnly ? null : (K && K.current && (K.current.id = "valueInitial"), y ? /* @__PURE__ */ p(c, {
|
|
118
|
-
handlerClose: () => Y("valueInitial"),
|
|
119
|
-
dialogSize: b,
|
|
120
|
-
onOpenChange: k,
|
|
121
|
-
children: Q(S, v, "valueInitial")
|
|
122
|
-
}) : /* @__PURE__ */ p(s, {
|
|
123
|
-
containerRef: B,
|
|
124
|
-
showButtonOpen: g,
|
|
125
|
-
inputDimensions: P,
|
|
126
|
-
dropdownRef: (e) => {
|
|
127
|
-
W.current = e;
|
|
128
|
-
},
|
|
129
|
-
children: Q(S, v, "valueInitial")
|
|
130
|
-
})), Ae = () => I && I.readOnly ? null : (K && K.current && (K.current.id = "valueFinal"), y ? /* @__PURE__ */ p(c, {
|
|
131
|
-
handlerClose: () => Y("valueFinal"),
|
|
132
|
-
dialogSize: b,
|
|
133
|
-
onOpenChange: j,
|
|
134
|
-
children: Q(w, v, "valueFinal")
|
|
135
|
-
}) : /* @__PURE__ */ p(s, {
|
|
136
|
-
containerRef: B,
|
|
137
|
-
showButtonOpen: g,
|
|
138
|
-
inputDimensions: P,
|
|
139
|
-
dropdownRef: (e) => {
|
|
140
|
-
W.current = e;
|
|
141
|
-
},
|
|
142
|
-
children: Q(w, v, "valueFinal")
|
|
143
|
-
})), je = () => y ? /* @__PURE__ */ p(c, {
|
|
144
|
-
handlerClose: () => Y("periodSelection"),
|
|
145
|
-
dialogSize: b,
|
|
146
|
-
onOpenChange: N,
|
|
147
|
-
children: we(E, Oe)
|
|
148
|
-
}) : /* @__PURE__ */ p(s, {
|
|
149
|
-
containerRef: B,
|
|
150
|
-
showButtonOpen: g,
|
|
151
|
-
inputDimensions: P,
|
|
152
|
-
dropdownRef: (e) => {
|
|
153
|
-
W.current = e;
|
|
154
|
-
},
|
|
155
|
-
children: we(E, Oe)
|
|
156
|
-
});
|
|
157
|
-
if (u(() => (window.addEventListener("resize", q), document.addEventListener("scroll", J), document.getElementById("modal-dialog-content")?.addEventListener("scroll", J), V.current && q(), H && H.current && (H.current.id = de), G && G.current && (G.current.id = fe), () => {
|
|
158
|
-
window.removeEventListener("resize", q), document.removeEventListener("scroll", J), document.getElementById("modal-dialog-content")?.removeEventListener("scroll", J);
|
|
159
|
-
}), []), u(() => (document.addEventListener("keydown", ge), () => {
|
|
160
|
-
document.removeEventListener("keydown", ge);
|
|
161
|
-
}), [
|
|
162
|
-
A,
|
|
163
|
-
O,
|
|
164
|
-
M,
|
|
165
|
-
K.current
|
|
166
|
-
]), u(() => {
|
|
167
|
-
if (w && S && a(w).isBefore(a(S))) C(w), T(S);
|
|
168
|
-
else if (h.onChange) {
|
|
169
|
-
let e = S ? S.format("YYYY-MM-DD") : "", t = w ? w.format("YYYY-MM-DD") : "";
|
|
170
|
-
h.onChange(void 0, "", {
|
|
171
|
-
initial: e,
|
|
172
|
-
final: t
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}, [S, w]), u(() => {
|
|
176
|
-
if (h.value && !(a(h.value.initial).isSame(S) || a(h.value.final).isSame(w))) {
|
|
177
|
-
let { initial: e, final: t } = h.value, n, r;
|
|
178
|
-
a(e, "YYYY-MM-DD", !0).isValid() && (n = a(e, "YYYY-MM-DD")), a(t, "YYYY-MM-DD", !0).isValid() && (r = a(t, "YYYY-MM-DD")), C(n), T(r);
|
|
179
|
-
}
|
|
180
|
-
}, [h.value]), I && I.unvisible) return null;
|
|
181
|
-
let $ = () => /* @__PURE__ */ m("div", {
|
|
182
|
-
ref: B,
|
|
183
|
-
onBlur: he,
|
|
184
|
-
className: "input-base-component datepicker-period-container",
|
|
185
|
-
children: [
|
|
186
|
-
h.label && /* @__PURE__ */ m("div", {
|
|
187
|
-
className: "labelcontainer",
|
|
188
|
-
children: [
|
|
189
|
-
/* @__PURE__ */ p(i, {
|
|
190
|
-
required: h.required,
|
|
191
|
-
className: h.customClassForLabel,
|
|
192
|
-
labelUppercase: h.labelUppercase
|
|
193
|
-
}),
|
|
194
|
-
/* @__PURE__ */ p("div", {
|
|
195
|
-
className: "text-content",
|
|
196
|
-
style: { display: "flex" },
|
|
197
|
-
children: /* @__PURE__ */ m("div", {
|
|
198
|
-
className: `label ${h.customClassForLabel} ${h.labelUppercase && " -uppercase"}`,
|
|
199
|
-
style: { alignSelf: "center" },
|
|
200
|
-
children: [
|
|
201
|
-
h.label,
|
|
202
|
-
h.required && /* @__PURE__ */ p("span", {
|
|
203
|
-
className: "-requiredlabel",
|
|
204
|
-
children: "*"
|
|
205
|
-
}),
|
|
206
|
-
!!x && se === "onLabelRight" && /* @__PURE__ */ p(ee, {
|
|
207
|
-
theme: ce,
|
|
208
|
-
align: le,
|
|
209
|
-
iconColor: "#03bde2",
|
|
210
|
-
customClass: "-hint",
|
|
211
|
-
style: {
|
|
212
|
-
margin: "0px 5px",
|
|
213
|
-
height: "auto",
|
|
214
|
-
width: 20
|
|
215
|
-
},
|
|
216
|
-
children: x
|
|
217
|
-
})
|
|
218
|
-
]
|
|
219
|
-
})
|
|
220
|
-
}),
|
|
221
|
-
/* @__PURE__ */ p(i, {})
|
|
222
|
-
]
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ m("div", {
|
|
225
|
-
className: `periodpicker-component ${re({
|
|
226
|
-
...h,
|
|
227
|
-
value: S ? a(S).format("DD/MM/YYYY") : "",
|
|
228
|
-
disabled: Z()
|
|
229
|
-
})}`,
|
|
230
|
-
ref: V,
|
|
231
|
-
children: [
|
|
232
|
-
/* @__PURE__ */ p(o, {
|
|
233
|
-
gridLayout: void 0,
|
|
234
|
-
permissionAttr: h.permissionAttr,
|
|
235
|
-
name: "valueInitial",
|
|
236
|
-
value: S ? a(S).format("DD/MM/YYYY") : "",
|
|
237
|
-
mask: "00/00/0000",
|
|
238
|
-
onComplete: (e) => {
|
|
239
|
-
X(e, e.target.value, !0);
|
|
240
|
-
},
|
|
241
|
-
onFocus: be,
|
|
242
|
-
onBlur: (e) => xe(e),
|
|
243
|
-
onChange: Se,
|
|
244
|
-
inputRef: (e) => {
|
|
245
|
-
H.current = e;
|
|
246
|
-
},
|
|
247
|
-
handlerSetOnDenied: (e) => {
|
|
248
|
-
L(e);
|
|
249
|
-
},
|
|
250
|
-
required: h.required
|
|
251
|
-
}),
|
|
252
|
-
/* @__PURE__ */ p(t, {
|
|
253
|
-
name: "arrow_right",
|
|
254
|
-
customClass: "separation_icon"
|
|
255
|
-
}),
|
|
256
|
-
/* @__PURE__ */ p(o, {
|
|
257
|
-
gridLayout: void 0,
|
|
258
|
-
permissionAttr: h.permissionAttr,
|
|
259
|
-
name: "valueFinal",
|
|
260
|
-
value: w ? a(w).format("DD/MM/YYYY") : "",
|
|
261
|
-
mask: "00/00/0000",
|
|
262
|
-
onComplete: (e) => {
|
|
263
|
-
X(e, e.target.value, !0);
|
|
264
|
-
},
|
|
265
|
-
onFocus: be,
|
|
266
|
-
onBlur: (e) => xe(e),
|
|
267
|
-
onChange: Se,
|
|
268
|
-
inputRef: (e) => {
|
|
269
|
-
G.current = e;
|
|
270
|
-
},
|
|
271
|
-
handlerSetOnDenied: (e) => L(e),
|
|
272
|
-
required: h.required
|
|
273
|
-
}),
|
|
274
|
-
Ce(),
|
|
275
|
-
De()
|
|
276
|
-
]
|
|
277
|
-
}),
|
|
278
|
-
O && ke(),
|
|
279
|
-
A && Ae(),
|
|
280
|
-
M && je(),
|
|
281
|
-
/* @__PURE__ */ p(te, {
|
|
282
|
-
visible: !!x && se === "below",
|
|
283
|
-
customClass: "hint",
|
|
284
|
-
description: x
|
|
285
|
-
}),
|
|
286
|
-
/* @__PURE__ */ p(r, { messages: h.errorMessages })
|
|
287
|
-
]
|
|
288
|
-
});
|
|
289
|
-
return ue ? /* @__PURE__ */ p(e, {
|
|
290
|
-
customClass: "-withinput",
|
|
291
|
-
cols: ue,
|
|
292
|
-
children: $()
|
|
293
|
-
}) : $();
|
|
294
|
-
};
|
|
295
|
-
//#endregion
|
|
296
|
-
export { h as default };
|
|
297
|
-
|
|
298
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/lib/inputs/period/index.tsx"],"sourcesContent":["import '../../assets/styles/periodpicker.scss';\n\nimport { useEffect, useRef, useState, FocusEvent as ReactFocusEvent, useCallback, useId } from 'react';\nimport moment, { Moment } from 'moment';\nimport PeriodList from './PeriodList';\nimport BaseMask from '../mask/BaseMask';\nimport Dropdown from './Dropdown';\nimport Calendar from '../../calendar';\nimport Button from '../../buttons';\nimport Icon from '../../icons';\nimport Dialog from './Dialog';\nimport Hint from '../../hint';\nimport Grid from '../../gridlayout';\nimport * as helperBase from '../base/helpers';\nimport { ColorStyles } from '../../@types/ColorStyles';\nimport { OnDenied } from '../../@types/PermissionAttr';\nimport { ChangeInputPeriodEvent, TypeCurrentDate, DateTypes, IPeriodPickerProps } from './types';\nimport { CustomInputEvent } from '../base/types';\nimport { ErrorMessage } from '../errorMessage';\nimport TextContent from '../../textContent';\nimport Popover from '../../popover';\n\nconst PeriodPicker = (props: IPeriodPickerProps) => {\n const {\n showButtonOpen = true, openOnFocus = true, shouldCloseOnSelect = true, calendarColorStyle,\n showCalendarInDialog = false, dialogSize = { width: '350px', height: '350px' }, hint, hintPosition = 'below',\n themePopover = 'light', popoverAlign = 'left', gridLayout,\n } = props;\n const idValueInitial = useId();\n const idValueFinal = useId();\n\n const [valueInitial, setValueInitial] = useState<moment.Moment | undefined>(props.value && moment(props.value.initial, 'DD/MM/YYYY'));\n const [valueFinal, setValueFinal] = useState<moment.Moment | undefined>(props.value && moment(props.value.final, 'DD/MM/YYYY'));\n const [valuePeriodSelection, setValuePeriodSelection] = useState('week');\n const [showCalendarValueInitial, setShowCalendarValueInitial] = useState(false);\n const [showCalendarValueFinal, setShowCalendarValueFinal] = useState(false);\n const [showPeriodSelection, setShowPeriodSelection] = useState(false);\n const [inputDimensions, setInputDimensions] = useState<DOMRect>();\n const [onDenied, setOnDenied] = useState<OnDenied>();\n const [currentTypeDate, setCurrentTypeDate] = useState<TypeCurrentDate>('valueInitial');\n\n const wrapperBaseInputPeriodRef = useRef<HTMLDivElement | null>(null);\n const inputContainerRef = useRef<HTMLDivElement>(null);\n const inputInitialRef = useRef<HTMLInputElement | HTMLTextAreaElement | null>(null);\n const buttonOpenRef = useRef<HTMLButtonElement | null>(null);\n const currentDateButtonRef = useRef<HTMLButtonElement>(null);\n const buttonSelectPeriodRef = useRef<HTMLButtonElement | null>(null);\n const dropdownCalendarContainer = useRef<HTMLDivElement | null>(null);\n const inputFinalRef = useRef<HTMLInputElement | HTMLTextAreaElement | null>(null);\n const calendarContainerRef = useRef<HTMLDivElement | null>(null);\n\n const onScreenResize = () => {\n setInputDimensions(inputContainerRef?.current?.getBoundingClientRect());\n };\n\n const onBlurWithoutWrapper = (event: ReactFocusEvent<HTMLDivElement>) => {\n const focusOnAnotherField = !wrapperBaseInputPeriodRef.current?.contains(event.relatedTarget);\n if (!showCalendarInDialog && showCalendarValueInitial && focusOnAnotherField) { \n setShowCalendarValueInitial(false); \n }\n if (!showCalendarInDialog && showCalendarValueFinal && focusOnAnotherField) { \n setShowCalendarValueFinal(false); \n }\n };\n\n const onKeyDownPress = (event: KeyboardEvent) => {\n const { target } = event;\n const targetElement = target as HTMLInputElement;\n if (calendarContainerRef.current && event && event.key && event.key === 'Escape') {\n event.preventDefault();\n targetElement.focus();\n if (showCalendarValueInitial) {\n if (targetElement.id !== 'valueInitial') {\n inputInitialRef.current?.focus();\n }\n setShowCalendarValueInitial(false);\n }\n if (showCalendarValueFinal) {\n if (targetElement.id !== 'valueFinal') {\n inputFinalRef.current?.focus();\n }\n setShowCalendarValueFinal(false);\n }\n\n if (showPeriodSelection) {\n setShowPeriodSelection(false);\n inputFinalRef.current?.focus();\n setShowCalendarValueFinal(false);\n }\n }\n event.stopPropagation();\n };\n\n const keepPositionCalendarByScroll = () => {\n const inputDateDimensions = inputContainerRef.current?.getBoundingClientRect();\n const positionTop = inputDateDimensions && inputDateDimensions.bottom;\n if (dropdownCalendarContainer && dropdownCalendarContainer.current && inputDateDimensions) {\n dropdownCalendarContainer.current.style.top = String(positionTop).concat('px');\n }\n };\n\n const openCalendar = (calendarName: string) => {\n if (calendarName === 'valueInitial') {\n setCurrentTypeDate('valueInitial');\n setShowCalendarValueFinal(false);\n if (!showCalendarValueInitial) {\n inputInitialRef.current?.focus();\n if (showCalendarInDialog) {\n setTimeout(() => {\n currentDateButtonRef.current?.focus();\n }, 100);\n }\n setShowCalendarValueInitial(true);\n }\n }\n if (calendarName === 'valueFinal') {\n setCurrentTypeDate('valueFinal');\n setShowCalendarValueInitial(false);\n if (!showCalendarValueFinal) {\n inputFinalRef.current?.focus();\n if (showCalendarInDialog) {\n setTimeout(() => {\n currentDateButtonRef.current?.focus();\n }, 100);\n }\n setShowCalendarValueFinal(true);\n }\n }\n if (inputContainerRef.current) {\n setInputDimensions(inputContainerRef.current.getBoundingClientRect());\n }\n };\n\n const closeCalendar = (calendarName: TypeCurrentDate) => {\n if (calendarName === 'valueInitial') { inputInitialRef.current?.focus(); }\n if (calendarName === 'valueFinal') { inputFinalRef.current?.focus(); }\n setShowCalendarValueInitial(false);\n setShowCalendarValueFinal(false);\n };\n\n const onDateChange = (date: { initial?: Moment, final?: Moment }) => {\n const initial = date.initial ? date.initial.format('YYYY-MM-DD') : '';\n const final = date.final ? date.final.format('YYYY-MM-DD') : '';\n props?.onChange?.(undefined, '', { initial, final });\n };\n\n const onCloseDateDialog = (calendarName: TypeCurrentDate | 'periodSelection') => {\n setTimeout(() => {\n if (calendarName === 'valueInitial') {\n inputInitialRef.current?.focus();\n setShowCalendarValueInitial(false);\n }\n if (calendarName === 'valueFinal') {\n inputFinalRef.current?.focus();\n setShowCalendarValueFinal(false);\n }\n if (calendarName === 'periodSelection') {\n setShowPeriodSelection(false);\n inputFinalRef.current?.focus();\n setShowCalendarValueFinal(false);\n }\n }, 100);\n };\n\n const onInputFocus = (e: CustomInputEvent) => {\n const { name } = e.target as HTMLInputElement;\n\n if (openOnFocus) openCalendar(name);\n if (props.onFocus) props.onFocus(e);\n };\n\n const onInputBlur = (e: CustomInputEvent) => {\n if (props.onBlur) props.onBlur(e);\n };\n\n const onInputChange = (event?: ChangeInputPeriodEvent) => {\n if (event) {\n const { name: changingAux, value } = event.target as HTMLInputElement;\n if (String(value).trim().length === 0) {\n if (changingAux === 'valueInitial') {\n setValueInitial(undefined);\n } else {\n setValueFinal(undefined);\n }\n }\n }\n };\n\n const setValue = (\n event: ChangeInputPeriodEvent,\n value?: Moment | string,\n shouldOpenDropdown = true,\n ) => {\n const valueDateName = event ? event.target.name : '';\n const dateObj = moment(value, 'DD/MM/YYYY');\n if (showCalendarValueInitial) inputInitialRef.current?.focus();\n if (showCalendarValueFinal) inputFinalRef.current?.focus();\n\n if (valueDateName === 'valueInitial') {\n setValueInitial(dateObj);\n onDateChange({ initial: dateObj, final: valueFinal });\n } else {\n setValueFinal(dateObj);\n onDateChange({ initial: valueInitial, final: dateObj });\n }\n\n if (valueDateName === 'valueInitial' && !valueFinal && shouldOpenDropdown) {\n inputFinalRef.current?.focus();\n setShowCalendarValueFinal(true);\n }\n\n if (shouldCloseOnSelect) {\n setShowCalendarValueInitial(false);\n setShowCalendarValueFinal(false);\n }\n };\n\n const shouldDisable = () => {\n const { disabled } = props;\n return disabled || (onDenied && (onDenied.disabled || onDenied.hideContent));\n };\n\n const getButtonOpen = useCallback(() => {\n if (!showButtonOpen) return null;\n\n return (\n <Button\n key=\"button-open\"\n boxShadow={false}\n disabled={shouldDisable()}\n customClass=\"calendar-button\"\n icon={<Icon name=\"calendar\" />}\n onClick={() => {\n if (showCalendarValueFinal || showCalendarValueInitial) {\n closeCalendar(currentTypeDate);\n } else {\n openCalendar(currentTypeDate);\n }\n }}\n tabIndex={-1}\n targetRef={(ref) => { buttonOpenRef.current = ref; }} />\n );\n }, [showCalendarValueFinal, showCalendarValueInitial]);\n\n const getPeriodSelection = (\n valuePeriodSelectionAux: string,\n setPeriodDates: (value: DateTypes | 'custom', date: Moment[] | null) => void,\n ) => (\n <PeriodList selected={valuePeriodSelectionAux} handleOnSelect={setPeriodDates} />\n );\n\n const openPeriodSelecion = () => {\n setShowCalendarValueFinal(false);\n setShowCalendarValueInitial(false);\n setShowPeriodSelection(true);\n if (inputContainerRef.current) {\n setInputDimensions(inputContainerRef.current.getBoundingClientRect());\n }\n };\n\n const closePeriodSelection = () => {\n setShowPeriodSelection(false);\n inputFinalRef.current?.focus();\n setShowCalendarValueFinal(false);\n };\n\n const getButtonSelectPeriod = useCallback(() => {\n return (\n <Button\n key=\"button-select-period\"\n disabled={shouldDisable()}\n tabIndex={-1}\n customClass=\"calendar-button\"\n icon={<Icon name=\"more1\" />}\n onBlur={() => setTimeout(() => setShowPeriodSelection(false), 100)}\n onClick={() => !showPeriodSelection ? openPeriodSelecion() : closePeriodSelection()}\n targetRef={(ref) => { buttonSelectPeriodRef.current = ref; }} />\n );\n }, [showPeriodSelection]);\n\n const getCalendar = (\n value?: Moment,\n calendarColorStyleCalendar?: ColorStyles,\n valueDateName?: string,\n ) => (\n <Calendar\n colorStyle={calendarColorStyleCalendar}\n currentDate={value !== undefined ? moment(value) : moment()}\n calendarContainer={(ref) => { calendarContainerRef.current = ref; }}\n onDateChange={date => setValue({ target: { name: valueDateName } }, date)}\n currentDateButton={buttonElement => currentDateButtonRef.current = buttonElement} />\n );\n\n const setPeriodDates = (selected: DateTypes | 'custom', dates: Moment[] | null) => {\n if (selected === 'custom') {\n inputInitialRef.current?.focus();\n setValuePeriodSelection(selected);\n setShowPeriodSelection(false);\n return;\n }\n\n setValuePeriodSelection(selected);\n if (dates) {\n setValueInitial(dates[0]);\n setValueFinal(dates[1]);\n }\n\n if (shouldCloseOnSelect) {\n setShowPeriodSelection(false);\n }\n\n inputFinalRef.current?.focus();\n setShowCalendarValueFinal(false);\n };\n\n const getCalendarInitial = () => {\n if (onDenied && onDenied.readOnly) return null;\n if (calendarContainerRef && calendarContainerRef.current) calendarContainerRef.current.id = 'valueInitial';\n if (showCalendarInDialog) {\n return (\n <Dialog\n handlerClose={() => onCloseDateDialog('valueInitial')}\n dialogSize={dialogSize}\n onOpenChange={setShowCalendarValueInitial}>\n {getCalendar(valueInitial, calendarColorStyle, 'valueInitial')}\n </Dialog>\n );\n }\n return (\n <Dropdown\n containerRef={wrapperBaseInputPeriodRef as any}\n showButtonOpen={showButtonOpen}\n inputDimensions={inputDimensions}\n dropdownRef={(el: HTMLDivElement) => { dropdownCalendarContainer.current = el; }}>\n {getCalendar(valueInitial, calendarColorStyle, 'valueInitial')}\n </Dropdown>\n );\n };\n\n const getCalendarFinal = () => {\n if (onDenied && onDenied.readOnly) return null;\n if (calendarContainerRef && calendarContainerRef.current) calendarContainerRef.current.id = 'valueFinal';\n if (showCalendarInDialog) {\n return (\n <Dialog\n handlerClose={() => onCloseDateDialog('valueFinal')}\n dialogSize={dialogSize}\n onOpenChange={setShowCalendarValueFinal}>\n {getCalendar(valueFinal, calendarColorStyle, 'valueFinal')}\n </Dialog>\n );\n }\n return (\n <Dropdown\n containerRef={wrapperBaseInputPeriodRef as any}\n showButtonOpen={showButtonOpen}\n inputDimensions={inputDimensions}\n dropdownRef={(el: HTMLDivElement) => { dropdownCalendarContainer.current = el; }}>\n {getCalendar(valueFinal, calendarColorStyle, 'valueFinal')}\n </Dropdown>\n );\n };\n\n const getPeriodOfDatesSelection = () => {\n if (showCalendarInDialog) {\n return (\n <Dialog\n handlerClose={() => onCloseDateDialog('periodSelection')}\n dialogSize={dialogSize}\n onOpenChange={setShowPeriodSelection}>\n {getPeriodSelection(valuePeriodSelection, setPeriodDates)}\n </Dialog>\n );\n }\n return (\n <Dropdown\n containerRef={wrapperBaseInputPeriodRef as any}\n showButtonOpen={showButtonOpen}\n inputDimensions={inputDimensions}\n dropdownRef={(el: HTMLDivElement) => { dropdownCalendarContainer.current = el; }}>\n {getPeriodSelection(valuePeriodSelection, setPeriodDates)}\n </Dropdown>\n );\n };\n\n useEffect(() => {\n window.addEventListener('resize', onScreenResize);\n document.addEventListener('scroll', keepPositionCalendarByScroll);\n document.getElementById('modal-dialog-content')?.addEventListener('scroll', keepPositionCalendarByScroll);\n\n if (inputContainerRef.current) onScreenResize();\n\n if (inputInitialRef && inputInitialRef.current) inputInitialRef.current.id = idValueInitial;\n if (inputFinalRef && inputFinalRef.current) inputFinalRef.current.id = idValueFinal;\n\n return () => {\n window.removeEventListener('resize', onScreenResize);\n document.removeEventListener('scroll', keepPositionCalendarByScroll);\n document.getElementById('modal-dialog-content')?.removeEventListener('scroll', keepPositionCalendarByScroll);\n };\n }, []);\n\n useEffect(() => {\n document.addEventListener('keydown', onKeyDownPress);\n return () => {\n document.removeEventListener('keydown', onKeyDownPress);\n };\n }, [\n showCalendarValueFinal,\n showCalendarValueInitial,\n showPeriodSelection,\n calendarContainerRef.current,\n ]);\n\n useEffect(() => {\n if (valueFinal && valueInitial && moment(valueFinal).isBefore(moment(valueInitial))) {\n setValueInitial(valueFinal);\n setValueFinal(valueInitial);\n } else if (props.onChange) {\n const initial = valueInitial ? valueInitial.format('YYYY-MM-DD') : '';\n const final = valueFinal ? valueFinal.format('YYYY-MM-DD') : '';\n props.onChange(undefined, '', { initial, final });\n }\n }, [valueInitial, valueFinal]);\n\n useEffect(() => {\n if (props.value && !(moment(props.value.initial).isSame(valueInitial) ||\n moment(props.value.final).isSame(valueFinal))) {\n const { initial: valueInitialProp, final: valueFinalProp } = props.value;\n\n let newValueInitial;\n let newValueFinal;\n\n if (moment(valueInitialProp, 'YYYY-MM-DD', true).isValid()) {\n newValueInitial = moment(valueInitialProp, 'YYYY-MM-DD');\n }\n\n if (moment(valueFinalProp, 'YYYY-MM-DD', true).isValid()) {\n newValueFinal = moment(valueFinalProp, 'YYYY-MM-DD');\n }\n setValueInitial(newValueInitial);\n setValueFinal(newValueFinal);\n }\n }, [props.value]);\n\n if (onDenied && onDenied.unvisible) return null;\n\n const component = () => (\n <div\n ref={wrapperBaseInputPeriodRef}\n onBlur={onBlurWithoutWrapper}\n className=\"input-base-component datepicker-period-container\">\n {props.label && (\n <div className=\"labelcontainer\">\n <TextContent\n required={props.required}\n className={props.customClassForLabel}\n labelUppercase={props.labelUppercase} />\n <div className=\"text-content\" style={{ display: 'flex' }}>\n <div\n className={`label ${props.customClassForLabel} ${props.labelUppercase && ' -uppercase'}`}\n style={{ alignSelf: 'center' }}>\n {props.label}\n {props.required && <span className=\"-requiredlabel\">*</span>}\n {!!hint && hintPosition === 'onLabelRight' && (\n <Popover\n theme={themePopover}\n align={popoverAlign}\n iconColor=\"#03bde2\"\n customClass=\"-hint\"\n style={{ margin: '0px 5px', height: 'auto', width: 20 }}>\n {hint}\n </Popover>\n )}\n </div>\n </div>\n <TextContent />\n </div>\n )}\n <div\n className={\n `periodpicker-component ${helperBase.getInputWrapperClass({\n ...props,\n value: !valueInitial ? '' : moment(valueInitial).format('DD/MM/YYYY'),\n disabled: shouldDisable(),\n })\n }`\n }\n ref={inputContainerRef}>\n <BaseMask\n gridLayout={undefined}\n permissionAttr={props.permissionAttr}\n name='valueInitial'\n value={!valueInitial ? '' : moment(valueInitial).format('DD/MM/YYYY')}\n mask=\"00/00/0000\"\n onComplete={(e: CustomInputEvent) => { setValue(e, e.target.value, true); }}\n onFocus={onInputFocus}\n onBlur={e => onInputBlur(e)}\n onChange={onInputChange}\n inputRef={(el) => { inputInitialRef.current = el; }}\n handlerSetOnDenied={(denied: OnDenied) => { setOnDenied(denied);}}\n required={props.required} />\n <Icon name=\"arrow_right\" customClass=\"separation_icon\" />\n <BaseMask\n gridLayout={undefined}\n permissionAttr={props.permissionAttr}\n name='valueFinal'\n value={!valueFinal ? '' : moment(valueFinal).format('DD/MM/YYYY')}\n mask=\"00/00/0000\"\n onComplete={(e: CustomInputEvent) => { setValue(e, e.target.value, true); }}\n onFocus={onInputFocus}\n onBlur={e => onInputBlur(e)}\n onChange={onInputChange}\n inputRef={(el) => { inputFinalRef.current = el; }}\n handlerSetOnDenied={(denied: OnDenied) => setOnDenied(denied)}\n required={props.required} />\n {getButtonOpen()}\n {getButtonSelectPeriod()}\n </div>\n {showCalendarValueInitial && getCalendarInitial()}\n {showCalendarValueFinal && getCalendarFinal()}\n {showPeriodSelection && getPeriodOfDatesSelection()}\n <Hint visible={!!hint && hintPosition === 'below'} customClass=\"hint\" description={hint} />\n <ErrorMessage messages={props.errorMessages} />\n </div>\n );\n\n return (!gridLayout ? component() : <Grid customClass=\"-withinput\" cols={gridLayout}>{component()}</Grid>);\n};\n\nexport default PeriodPicker;\n"],"mappings":"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"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { MouseEvent, ReactNode, RefObject } from 'react';
|
|
3
|
-
import { ColorStyles } from '../../@types/ColorStyles';
|
|
4
|
-
import { Period } from '../../@types/Period';
|
|
5
|
-
import { PermissionAttr } from '../../@types/PermissionAttr';
|
|
6
|
-
import { CustomInputEvent } from '../base/types';
|
|
7
|
-
export type DateTypes = 'today' | 'week' | 'lastweek' | 'last15' | 'month' | 'lastmonth';
|
|
8
|
-
export type TypeCurrentDate = 'valueInitial' | 'valueFinal';
|
|
9
|
-
export interface ChangeInputPeriodEvent {
|
|
10
|
-
target: {
|
|
11
|
-
value?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface IPeriodOptions {
|
|
16
|
-
id: DateTypes | 'custom';
|
|
17
|
-
label?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IDialogProps {
|
|
20
|
-
children: ReactNode | ReactNode[];
|
|
21
|
-
onOpenChange: (open: boolean) => void;
|
|
22
|
-
dialogSize: {
|
|
23
|
-
width: string;
|
|
24
|
-
height: string;
|
|
25
|
-
};
|
|
26
|
-
handlerClose: (open: boolean) => void;
|
|
27
|
-
}
|
|
28
|
-
export interface IPeriodDropdownProps {
|
|
29
|
-
children: ReactNode | ReactNode[];
|
|
30
|
-
dropdownRef: (el: HTMLDivElement) => void;
|
|
31
|
-
containerRef: RefObject<HTMLDivElement | HTMLElement>;
|
|
32
|
-
showButtonOpen: boolean;
|
|
33
|
-
inputDimensions?: DOMRect;
|
|
34
|
-
}
|
|
35
|
-
export interface IPeriodPickerProps {
|
|
36
|
-
label?: string;
|
|
37
|
-
value?: {
|
|
38
|
-
initial?: Moment | string;
|
|
39
|
-
final?: Moment | string;
|
|
40
|
-
};
|
|
41
|
-
customClassForLabel?: string;
|
|
42
|
-
labelUppercase?: boolean;
|
|
43
|
-
showButtonOpen?: boolean;
|
|
44
|
-
shouldCloseOnSelect?: boolean;
|
|
45
|
-
openOnFocus?: boolean;
|
|
46
|
-
showCalendarInDialog?: boolean;
|
|
47
|
-
dialogSize?: {
|
|
48
|
-
width: string;
|
|
49
|
-
height: string;
|
|
50
|
-
};
|
|
51
|
-
calendarColorStyle?: ColorStyles;
|
|
52
|
-
required?: boolean;
|
|
53
|
-
onChange?: (event?: CustomInputEvent, maskValue?: string, date?: Period) => void;
|
|
54
|
-
onClick?: (event?: MouseEvent) => void;
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
permissionAttr?: PermissionAttr;
|
|
57
|
-
errorMessages?: string[];
|
|
58
|
-
name?: string;
|
|
59
|
-
hint?: string;
|
|
60
|
-
nameDateInitial?: string;
|
|
61
|
-
nameDateFinal?: string;
|
|
62
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
63
|
-
onBlur?: (e: CustomInputEvent) => void;
|
|
64
|
-
onFocus?: (e: CustomInputEvent) => void;
|
|
65
|
-
gridLayout?: string;
|
|
66
|
-
themePopover?: 'light' | 'dark';
|
|
67
|
-
popoverAlign?: 'right' | 'left';
|
|
68
|
-
}
|
|
69
|
-
export interface IPeriodListProps {
|
|
70
|
-
handleOnSelect: (value: DateTypes | 'custom', date: Moment[] | null) => void;
|
|
71
|
-
selected?: string;
|
|
72
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { require_compiler_runtime as e } from "../../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import t from "../../icons/index.js";
|
|
3
|
-
import n from "../../buttons/index.js";
|
|
4
|
-
import r from "../../drawer/Header.js";
|
|
5
|
-
import i from "../../drawer/Content.js";
|
|
6
|
-
import a from "../../drawer/index.js";
|
|
7
|
-
import o from "../base/InputTextBase.js";
|
|
8
|
-
import '../../assets/styles/search.css';/* empty css */
|
|
9
|
-
import { Fragment as s, useEffect as c, useState as l } from "react";
|
|
10
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
-
//#region src/lib/inputs/search/index.tsx
|
|
12
|
-
var f = e(), p = (e) => {
|
|
13
|
-
let p = (0, f.c)(18), { resetButton: m, advancedFilterProps: h, value: g, drawerFilterIsOpened: _ } = e, v = m === void 0 ? !0 : m, y = h === void 0 ? {} : h, b = _ === void 0 ? !1 : _, [x, S] = l(b), [C, w] = l(""), [T, E] = l(), { headerTitle: D, content: O, onStateChange: k, ...A } = y, j;
|
|
14
|
-
p[0] === e ? j = p[1] : (j = (t) => {
|
|
15
|
-
e.onReset && e.onReset(t), w("");
|
|
16
|
-
}, p[0] = e, p[1] = j);
|
|
17
|
-
let M = j, N;
|
|
18
|
-
p[2] === e ? N = p[3] : (N = (t) => {
|
|
19
|
-
t && (e.onChange && e.onChange(t), w(t.target.value));
|
|
20
|
-
}, p[2] = e, p[3] = N);
|
|
21
|
-
let P = N, F;
|
|
22
|
-
p[4] !== T || p[5] !== e.disabled ? (F = () => e.disabled || T && (T.disabled || T.hideContent), p[4] = T, p[5] = e.disabled, p[6] = F) : F = p[6];
|
|
23
|
-
let I = F, L;
|
|
24
|
-
p[7] !== T || p[8] !== e.readOnly ? (L = () => e.readOnly || T && T.readOnly, p[7] = T, p[8] = e.readOnly, p[9] = L) : L = p[9];
|
|
25
|
-
let R = L, z = T?.hideContent, B = () => {
|
|
26
|
-
let n = R() || I() || z, r = {
|
|
27
|
-
icon: u(t, {
|
|
28
|
-
name: "filter1",
|
|
29
|
-
color: "#a9a8a8"
|
|
30
|
-
}, "filter-icon"),
|
|
31
|
-
key: "advanced-filter-button",
|
|
32
|
-
boxShadow: !1,
|
|
33
|
-
readOnly: R(),
|
|
34
|
-
style: {
|
|
35
|
-
padding: "0 0 0 5px",
|
|
36
|
-
width: 30
|
|
37
|
-
},
|
|
38
|
-
transparent: !0,
|
|
39
|
-
disabled: I()
|
|
40
|
-
};
|
|
41
|
-
return n || (r = {
|
|
42
|
-
...r,
|
|
43
|
-
onClick: (t) => {
|
|
44
|
-
e.onClick && e.onClick(t), S(!x), k && k(!x);
|
|
45
|
-
},
|
|
46
|
-
...r
|
|
47
|
-
}), r;
|
|
48
|
-
}, V = () => {
|
|
49
|
-
let e = Object.keys(y).length > 0, r = [u(t, {
|
|
50
|
-
name: "search",
|
|
51
|
-
color: "#a9a8a8",
|
|
52
|
-
disabled: I()
|
|
53
|
-
}, "search-icon")], i = u(t, {
|
|
54
|
-
name: "cancel2",
|
|
55
|
-
color: "#a9a8a8",
|
|
56
|
-
style: {
|
|
57
|
-
cursor: "pointer",
|
|
58
|
-
pointerEvents: "auto"
|
|
59
|
-
},
|
|
60
|
-
onClick: M
|
|
61
|
-
}, "inputSearchIcon"), a = u(n, { ...B() });
|
|
62
|
-
return e && (r = [...r, a]), v && C.trim() !== "" && (r = [i, ...r]), r;
|
|
63
|
-
}, H;
|
|
64
|
-
p[10] !== C || p[11] !== g ? (H = () => {
|
|
65
|
-
g !== void 0 && g !== C && w(g);
|
|
66
|
-
}, p[10] = C, p[11] = g, p[12] = H) : H = p[12];
|
|
67
|
-
let U;
|
|
68
|
-
p[13] === g ? U = p[14] : (U = [g], p[13] = g, p[14] = U), c(H, U);
|
|
69
|
-
let W, G;
|
|
70
|
-
return p[15] === b ? (W = p[16], G = p[17]) : (G = () => {
|
|
71
|
-
S(b);
|
|
72
|
-
}, W = [b], p[15] = b, p[16] = W, p[17] = G), c(G, W), T && T.unvisible ? null : d(s, { children: [u(o, {
|
|
73
|
-
...e,
|
|
74
|
-
onReset: M,
|
|
75
|
-
onChange: P,
|
|
76
|
-
value: C,
|
|
77
|
-
customClass: "",
|
|
78
|
-
handlerSetOnDenied: E,
|
|
79
|
-
rightElements: V()
|
|
80
|
-
}), x && d(a, {
|
|
81
|
-
handlerClose: () => {
|
|
82
|
-
S(!1), k && k(!1);
|
|
83
|
-
},
|
|
84
|
-
...A,
|
|
85
|
-
children: [D && u(r, { title: D }), u(i, { children: O })]
|
|
86
|
-
})] });
|
|
87
|
-
};
|
|
88
|
-
//#endregion
|
|
89
|
-
export { p as default };
|
|
90
|
-
|
|
91
|
-
//# sourceMappingURL=index.js.map
|