linear-react-components-ui 1.1.27-rc.0 → 2.0.0-beta.0
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/lib/@types/Align.d.ts +2 -4
- package/lib/@types/ButtonTypes.d.ts +1 -3
- package/lib/@types/ColorStyles.d.ts +2 -4
- package/lib/@types/DataCombo.d.ts +1 -3
- package/lib/@types/Icon.d.ts +2 -5
- package/lib/@types/LabelStyles.d.ts +1 -3
- package/lib/@types/Period.d.ts +1 -3
- package/lib/@types/PermissionAttr.d.ts +2 -4
- package/lib/@types/PointerEvents.d.ts +1 -3
- package/lib/@types/Position.d.ts +2 -4
- package/lib/@types/PositionAlert.d.ts +1 -3
- package/lib/@types/Size.d.ts +1 -3
- package/lib/@types/SizePixels.d.ts +1 -3
- package/lib/@types/StorageMock.d.ts +1 -3
- package/lib/_virtual/_rolldown/runtime.js +23 -0
- package/lib/alerts/AlertContainer.d.ts +2 -8
- package/lib/alerts/AlertContainer.js +68 -79
- package/lib/alerts/AlertContainer.js.map +1 -0
- package/lib/alerts/AlertProvider.d.ts +3 -9
- package/lib/alerts/AlertProvider.js +46 -71
- package/lib/alerts/AlertProvider.js.map +1 -0
- package/lib/alerts/BaseAlert.d.ts +3 -9
- package/lib/alerts/BaseAlert.js +19 -33
- package/lib/alerts/BaseAlert.js.map +1 -0
- package/lib/alerts/Message.d.ts +3 -9
- package/lib/alerts/Message.js +89 -112
- package/lib/alerts/Message.js.map +1 -0
- package/lib/alerts/helpers.d.ts +3 -9
- package/lib/alerts/helpers.js +6 -8
- package/lib/alerts/helpers.js.map +1 -0
- package/lib/alerts/index.d.ts +4 -11
- package/lib/alerts/index.js +7 -15
- package/lib/alerts/index.js.map +1 -0
- package/lib/alerts/types.d.ts +10 -14
- package/lib/alerts/withAlert.d.ts +4 -9
- package/lib/alerts/withAlert.js +15 -22
- package/lib/alerts/withAlert.js.map +1 -0
- package/lib/assets/styles/alerts.css +1 -0
- package/lib/assets/styles/avatar.css +1 -0
- package/lib/assets/styles/badge.css +1 -0
- package/lib/assets/styles/button.css +1 -0
- package/lib/assets/styles/calendar.css +1 -0
- package/lib/assets/styles/checkbox.css +1 -0
- package/lib/assets/styles/checkbox2.css +1 -0
- package/lib/assets/styles/colorpicker.css +1 -0
- package/lib/assets/styles/datepicker.css +1 -0
- package/lib/assets/styles/datepicker2.css +1 -0
- package/lib/assets/styles/dialog.css +1 -0
- package/lib/assets/styles/drawers.css +1 -0
- package/lib/assets/styles/dropdown.css +1 -0
- package/lib/assets/styles/error.css +1 -0
- package/lib/assets/styles/fieldset.css +1 -0
- package/lib/assets/styles/file.css +1 -0
- package/lib/assets/styles/filefield.css +1 -0
- package/lib/assets/styles/floatMenu.css +1 -0
- package/lib/assets/styles/form.css +1 -0
- package/lib/assets/styles/gridlayout.css +1 -0
- package/lib/assets/styles/hint.css +1 -0
- package/lib/assets/styles/icon.css +1 -0
- package/lib/assets/styles/input.css +1 -0
- package/lib/assets/styles/label.css +1 -0
- package/lib/assets/styles/labelMessages.css +1 -0
- package/lib/assets/styles/list.css +1 -0
- package/lib/assets/styles/multiSelect.css +1 -0
- package/lib/assets/styles/noPermission.css +1 -0
- package/lib/assets/styles/numberfield.css +1 -0
- package/lib/assets/styles/numbers.css +1 -0
- package/lib/assets/styles/panel.css +1 -0
- package/lib/assets/styles/periodpicker.css +1 -0
- package/lib/assets/styles/popover.css +1 -0
- package/lib/assets/styles/progress.css +1 -0
- package/lib/assets/styles/radio.css +1 -0
- package/lib/assets/styles/radiofield.css +1 -0
- package/lib/assets/styles/search.css +1 -0
- package/lib/assets/styles/select.css +1 -0
- package/lib/assets/styles/selectfield.css +1 -0
- package/lib/assets/styles/shortcuts.css +1 -0
- package/lib/assets/styles/sidenav.css +1 -0
- package/lib/assets/styles/skeleton.css +1 -0
- package/lib/assets/styles/slot.css +1 -0
- package/lib/assets/styles/spinner.css +1 -0
- package/lib/assets/styles/split.css +1 -0
- package/lib/assets/styles/table.css +1 -0
- package/lib/assets/styles/tabs.css +1 -0
- package/lib/assets/styles/textContent.css +1 -0
- package/lib/assets/styles/textfield.css +1 -0
- package/lib/assets/styles/toolbar.css +1 -0
- package/lib/assets/styles/tooltip.css +1 -0
- package/lib/assets/styles/treetable.css +1 -0
- package/lib/assets/styles/treeview.css +1 -0
- package/lib/assets/styles/uitour.css +1 -0
- package/lib/assets/styles/wizard.css +1 -0
- package/lib/avatar/index.d.ts +3 -9
- package/lib/avatar/index.js +50 -88
- package/lib/avatar/index.js.map +1 -0
- package/lib/avatar/types.d.ts +4 -8
- package/lib/badge/index.d.ts +3 -6
- package/lib/badge/index.js +20 -29
- package/lib/badge/index.js.map +1 -0
- package/lib/badge/types.d.ts +1 -4
- package/lib/buttons/ActivateButton.d.ts +3 -12
- package/lib/buttons/ActivateButton.js +10 -13
- package/lib/buttons/ActivateButton.js.map +1 -0
- package/lib/buttons/AddButton.d.ts +3 -12
- package/lib/buttons/AddButton.js +14 -17
- package/lib/buttons/AddButton.js.map +1 -0
- package/lib/buttons/Button.d.ts +3 -12
- package/lib/buttons/Button.js +9 -21
- package/lib/buttons/Button.js.map +1 -0
- package/lib/buttons/ButtonGroups.d.ts +2 -4
- package/lib/buttons/CancelButton.d.ts +3 -12
- package/lib/buttons/CancelButton.js +10 -22
- package/lib/buttons/CancelButton.js.map +1 -0
- package/lib/buttons/DangerButton.d.ts +3 -12
- package/lib/buttons/DangerButton.js +10 -22
- package/lib/buttons/DangerButton.js.map +1 -0
- package/lib/buttons/DefaultButton.d.ts +3 -12
- package/lib/buttons/DefaultButton.js +107 -183
- package/lib/buttons/DefaultButton.js.map +1 -0
- package/lib/buttons/DestroyButton.d.ts +3 -12
- package/lib/buttons/DestroyButton.js +14 -21
- package/lib/buttons/DestroyButton.js.map +1 -0
- package/lib/buttons/EditButton.d.ts +3 -12
- package/lib/buttons/EditButton.js +10 -13
- package/lib/buttons/EditButton.js.map +1 -0
- package/lib/buttons/InactivateButton.d.ts +3 -12
- package/lib/buttons/InactivateButton.js +10 -13
- package/lib/buttons/InactivateButton.js.map +1 -0
- package/lib/buttons/InfoButton.d.ts +3 -12
- package/lib/buttons/InfoButton.js +10 -22
- package/lib/buttons/InfoButton.js.map +1 -0
- package/lib/buttons/PrimaryButton.d.ts +3 -12
- package/lib/buttons/PrimaryButton.js +10 -22
- package/lib/buttons/PrimaryButton.js.map +1 -0
- package/lib/buttons/RestoreButton.d.ts +3 -12
- package/lib/buttons/RestoreButton.js +10 -13
- package/lib/buttons/RestoreButton.js.map +1 -0
- package/lib/buttons/SaveButton.d.ts +3 -12
- package/lib/buttons/SaveButton.js +10 -22
- package/lib/buttons/SaveButton.js.map +1 -0
- package/lib/buttons/SuccessButton.d.ts +3 -12
- package/lib/buttons/SuccessButton.js +10 -22
- package/lib/buttons/SuccessButton.js.map +1 -0
- package/lib/buttons/WarningButton.d.ts +3 -12
- package/lib/buttons/WarningButton.js +10 -22
- package/lib/buttons/WarningButton.js.map +1 -0
- package/lib/buttons/button_container/index.d.ts +4 -6
- package/lib/buttons/button_container/index.js +14 -29
- package/lib/buttons/button_container/index.js.map +1 -0
- package/lib/buttons/index.d.ts +17 -27
- package/lib/buttons/index.js +21 -107
- package/lib/buttons/index.js.map +1 -0
- package/lib/buttons/split_button/index.d.ts +3 -12
- package/lib/buttons/split_button/index.js +49 -62
- package/lib/buttons/split_button/index.js.map +1 -0
- package/lib/buttons/types.d.ts +9 -13
- package/lib/calendar/DangerCalendar.d.ts +3 -8
- package/lib/calendar/DangerCalendar.js +10 -17
- package/lib/calendar/DangerCalendar.js.map +1 -0
- package/lib/calendar/InfoCalendar.d.ts +3 -8
- package/lib/calendar/InfoCalendar.js +10 -17
- package/lib/calendar/InfoCalendar.js.map +1 -0
- package/lib/calendar/PrimaryCalendar.d.ts +3 -8
- package/lib/calendar/PrimaryCalendar.js +10 -17
- package/lib/calendar/PrimaryCalendar.js.map +1 -0
- package/lib/calendar/SuccessCalendar.d.ts +3 -8
- package/lib/calendar/SuccessCalendar.js +10 -17
- package/lib/calendar/SuccessCalendar.js.map +1 -0
- package/lib/calendar/WarningCalendar.d.ts +3 -8
- package/lib/calendar/WarningCalendar.js +10 -17
- package/lib/calendar/WarningCalendar.js.map +1 -0
- package/lib/calendar/base/helpers.d.ts +14 -18
- package/lib/calendar/base/helpers.js +40 -116
- package/lib/calendar/base/helpers.js.map +1 -0
- package/lib/calendar/base/index.d.ts +3 -8
- package/lib/calendar/base/index.js +137 -205
- package/lib/calendar/base/index.js.map +1 -0
- package/lib/calendar/index.d.ts +8 -14
- package/lib/calendar/index.js +11 -43
- package/lib/calendar/index.js.map +1 -0
- package/lib/calendar/types.d.ts +5 -8
- package/lib/checkbox/index.d.ts +3 -8
- package/lib/checkbox/index.js +109 -144
- package/lib/checkbox/index.js.map +1 -0
- package/lib/checkbox/types.d.ts +5 -7
- package/lib/dialog/Alert.d.ts +3 -9
- package/lib/dialog/Alert.js +23 -31
- package/lib/dialog/Alert.js.map +1 -0
- package/lib/dialog/Custom.d.ts +3 -9
- package/lib/dialog/Custom.js +48 -54
- package/lib/dialog/Custom.js.map +1 -0
- package/lib/dialog/Error.d.ts +3 -9
- package/lib/dialog/Error.js +23 -31
- package/lib/dialog/Error.js.map +1 -0
- package/lib/dialog/Information.d.ts +3 -9
- package/lib/dialog/Information.js +23 -31
- package/lib/dialog/Information.js.map +1 -0
- package/lib/dialog/Question.d.ts +3 -9
- package/lib/dialog/Question.js +47 -62
- package/lib/dialog/Question.js.map +1 -0
- package/lib/dialog/Warning.d.ts +3 -9
- package/lib/dialog/Warning.js +23 -31
- package/lib/dialog/Warning.js.map +1 -0
- package/lib/dialog/base/Content.d.ts +3 -9
- package/lib/dialog/base/Content.js +13 -21
- package/lib/dialog/base/Content.js.map +1 -0
- package/lib/dialog/base/Footer.d.ts +3 -9
- package/lib/dialog/base/Footer.js +9 -11
- package/lib/dialog/base/Footer.js.map +1 -0
- package/lib/dialog/base/Header.d.ts +3 -9
- package/lib/dialog/base/Header.js +41 -56
- package/lib/dialog/base/Header.js.map +1 -0
- package/lib/dialog/base/index.d.ts +8 -10
- package/lib/dialog/base/index.js +103 -202
- package/lib/dialog/base/index.js.map +1 -0
- package/lib/dialog/base/style.d.ts +7 -0
- package/lib/dialog/base/style.js +10 -12
- package/lib/dialog/base/style.js.map +1 -0
- package/lib/dialog/form/index.d.ts +4 -10
- package/lib/dialog/form/index.js +88 -126
- package/lib/dialog/form/index.js.map +1 -0
- package/lib/dialog/index.d.ts +9 -16
- package/lib/dialog/index.js +12 -50
- package/lib/dialog/index.js.map +1 -0
- package/lib/dialog/types.d.ts +21 -24
- package/lib/dialog/wizard/index.d.ts +8 -13
- package/lib/dialog/wizard/index.js +45 -78
- package/lib/dialog/wizard/index.js.map +1 -0
- package/lib/dialog/wizard/progressbar.d.ts +2 -5
- package/lib/dialog/wizard/progressbar.js +37 -37
- package/lib/dialog/wizard/progressbar.js.map +1 -0
- package/lib/dialog/wizard/step.d.ts +2 -9
- package/lib/dialog/wizard/step.js +18 -21
- package/lib/dialog/wizard/step.js.map +1 -0
- package/lib/dialog/wizard/useWizard.d.ts +2 -9
- package/lib/dialog/wizard/useWizard.js +42 -46
- package/lib/dialog/wizard/useWizard.js.map +1 -0
- package/lib/drawer/Content.d.ts +3 -10
- package/lib/drawer/Content.js +17 -24
- package/lib/drawer/Content.js.map +1 -0
- package/lib/drawer/Drawer.d.ts +3 -10
- package/lib/drawer/Drawer.js +75 -143
- package/lib/drawer/Drawer.js.map +1 -0
- package/lib/drawer/Header.d.ts +3 -10
- package/lib/drawer/Header.js +59 -74
- package/lib/drawer/Header.js.map +1 -0
- package/lib/drawer/helpers.d.ts +3 -10
- package/lib/drawer/helpers.js +6 -9
- package/lib/drawer/helpers.js.map +1 -0
- package/lib/drawer/index.d.ts +5 -12
- package/lib/drawer/index.js +10 -24
- package/lib/drawer/index.js.map +1 -0
- package/lib/drawer/types.d.ts +7 -11
- package/lib/dropdown/Popup.d.ts +3 -6
- package/lib/dropdown/Popup.js +35 -89
- package/lib/dropdown/Popup.js.map +1 -0
- package/lib/dropdown/helper.d.ts +2 -4
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +7 -0
- package/lib/dropdown/index.js.map +1 -0
- package/lib/dropdown/types.d.ts +7 -10
- package/lib/dropdown/withDropdown.d.ts +7 -8
- package/lib/dropdown/withDropdown.js +50 -91
- package/lib/dropdown/withDropdown.js.map +1 -0
- package/lib/fieldset/index.d.ts +3 -8
- package/lib/fieldset/index.js +50 -81
- package/lib/fieldset/index.js.map +1 -0
- package/lib/fieldset/types.d.ts +5 -8
- package/lib/form/Field.d.ts +2 -14
- package/lib/form/Field.js +83 -133
- package/lib/form/Field.js.map +1 -0
- package/lib/form/FieldArray.d.ts +2 -14
- package/lib/form/FieldArray.js +68 -100
- package/lib/form/FieldArray.js.map +1 -0
- package/lib/form/FieldNumber.d.ts +2 -14
- package/lib/form/FieldNumber.js +46 -75
- package/lib/form/FieldNumber.js.map +1 -0
- package/lib/form/FieldPeriod.d.ts +2 -14
- package/lib/form/FieldPeriod.js +66 -99
- package/lib/form/FieldPeriod.js.map +1 -0
- package/lib/form/helpers.d.ts +11 -19
- package/lib/form/helpers.js +17 -49
- package/lib/form/helpers.js.map +1 -0
- package/lib/form/index.d.ts +8 -18
- package/lib/form/index.js +147 -306
- package/lib/form/index.js.map +1 -0
- package/lib/form/types.d.ts +25 -35
- package/lib/form/withFieldHOC.d.ts +4 -14
- package/lib/form/withFieldHOC.js +61 -71
- package/lib/form/withFieldHOC.js.map +1 -0
- package/lib/form/withFormSecurity.d.ts +6 -15
- package/lib/form/withFormSecurity.js +33 -53
- package/lib/form/withFormSecurity.js.map +1 -0
- package/lib/form2/helpers.d.ts +5 -8
- package/lib/form2/helpers.js +21 -40
- package/lib/form2/helpers.js.map +1 -0
- package/lib/form2/index.d.ts +6 -8
- package/lib/form2/index.js +19 -35
- package/lib/form2/index.js.map +1 -0
- package/lib/form2/types.d.ts +26 -22
- package/lib/form2/useForm/index.d.ts +2 -4
- package/lib/form2/useForm/index.js +121 -209
- package/lib/form2/useForm/index.js.map +1 -0
- package/lib/gridlayout/GridCol.d.ts +3 -6
- package/lib/gridlayout/GridCol.js +17 -33
- package/lib/gridlayout/GridCol.js.map +1 -0
- package/lib/gridlayout/GridRow.d.ts +3 -6
- package/lib/gridlayout/GridRow.js +20 -30
- package/lib/gridlayout/GridRow.js.map +1 -0
- package/lib/gridlayout/index.d.ts +4 -8
- package/lib/gridlayout/index.js +7 -15
- package/lib/gridlayout/index.js.map +1 -0
- package/lib/gridlayout/types.d.ts +3 -6
- package/lib/hint/helpers.d.ts +1 -3
- package/lib/hint/helpers.js +13 -20
- package/lib/hint/helpers.js.map +1 -0
- package/lib/hint/index.d.ts +3 -7
- package/lib/hint/index.js +22 -29
- package/lib/hint/index.js.map +1 -0
- package/lib/hint/types.d.ts +2 -5
- package/lib/icons/helper.d.ts +1 -2
- package/lib/icons/helper.js +862 -671
- package/lib/icons/helper.js.map +1 -0
- package/lib/icons/index.d.ts +3 -13
- package/lib/icons/index.js +44 -77
- package/lib/icons/index.js.map +1 -0
- package/lib/icons/types.d.ts +8 -12
- package/lib/index.d.ts +10 -40
- package/lib/index.js +10 -69
- package/lib/inputs/base/InputTextBase.d.ts +3 -11
- package/lib/inputs/base/InputTextBase.js +197 -277
- package/lib/inputs/base/InputTextBase.js.map +1 -0
- package/lib/inputs/base/helpers.d.ts +9 -16
- package/lib/inputs/base/helpers.js +18 -41
- package/lib/inputs/base/helpers.js.map +1 -0
- package/lib/inputs/base/types.d.ts +8 -12
- package/lib/inputs/color/index.d.ts +3 -7
- package/lib/inputs/color/index.js +58 -93
- package/lib/inputs/color/index.js.map +1 -0
- package/lib/inputs/color/types.d.ts +2 -5
- package/lib/inputs/date/Dialog.d.ts +3 -13
- package/lib/inputs/date/Dialog.js +16 -25
- package/lib/inputs/date/Dialog.js.map +1 -0
- package/lib/inputs/date/Dropdown.d.ts +3 -13
- package/lib/inputs/date/Dropdown.js +14 -39
- package/lib/inputs/date/Dropdown.js.map +1 -0
- package/lib/inputs/date/helpers.d.ts +7 -10
- package/lib/inputs/date/helpers.js +37 -47
- package/lib/inputs/date/helpers.js.map +1 -0
- package/lib/inputs/date/index.d.ts +3 -13
- package/lib/inputs/date/index.js +158 -299
- package/lib/inputs/date/index.js.map +1 -0
- package/lib/inputs/date/types.d.ts +7 -14
- package/lib/inputs/errorMessage/index.d.ts +3 -16
- package/lib/inputs/errorMessage/index.js +18 -24
- package/lib/inputs/errorMessage/index.js.map +1 -0
- package/lib/inputs/file/DefaultFile.d.ts +3 -13
- package/lib/inputs/file/DefaultFile.js +88 -79
- package/lib/inputs/file/DefaultFile.js.map +1 -0
- package/lib/inputs/file/DragDropFile.d.ts +3 -13
- package/lib/inputs/file/DragDropFile.js +202 -272
- package/lib/inputs/file/DragDropFile.js.map +1 -0
- package/lib/inputs/file/File.d.ts +3 -13
- package/lib/inputs/file/File.js +38 -63
- package/lib/inputs/file/File.js.map +1 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +3 -13
- package/lib/inputs/file/FileButtonSettings.js +21 -32
- package/lib/inputs/file/FileButtonSettings.js.map +1 -0
- package/lib/inputs/file/helpers.d.ts +2 -13
- package/lib/inputs/file/helpers.js +12 -20
- package/lib/inputs/file/helpers.js.map +1 -0
- package/lib/inputs/file/index.d.ts +5 -16
- package/lib/inputs/file/index.js +8 -22
- package/lib/inputs/file/index.js.map +1 -0
- package/lib/inputs/file/types.d.ts +8 -16
- package/lib/inputs/index.d.ts +14 -0
- package/lib/inputs/index.js +24 -0
- package/lib/inputs/index.js.map +1 -0
- package/lib/inputs/inputHOC.d.ts +4 -16
- package/lib/inputs/inputHOC.js +39 -42
- package/lib/inputs/inputHOC.js.map +1 -0
- package/lib/inputs/mask/BaseMask.d.ts +3 -12
- package/lib/inputs/mask/BaseMask.js +105 -170
- package/lib/inputs/mask/BaseMask.js.map +1 -0
- package/lib/inputs/mask/Cnpj.d.ts +3 -12
- package/lib/inputs/mask/Cnpj.js +42 -57
- package/lib/inputs/mask/Cnpj.js.map +1 -0
- package/lib/inputs/mask/Cpf.d.ts +3 -12
- package/lib/inputs/mask/Cpf.js +43 -54
- package/lib/inputs/mask/Cpf.js.map +1 -0
- package/lib/inputs/mask/Phone.d.ts +3 -12
- package/lib/inputs/mask/Phone.js +13 -18
- package/lib/inputs/mask/Phone.js.map +1 -0
- package/lib/inputs/mask/ZipCode.d.ts +3 -12
- package/lib/inputs/mask/ZipCode.js +10 -13
- package/lib/inputs/mask/ZipCode.js.map +1 -0
- package/lib/inputs/mask/helpers.d.ts +4 -14
- package/lib/inputs/mask/helpers.js +44 -118
- package/lib/inputs/mask/helpers.js.map +1 -0
- package/lib/inputs/mask/index.d.ts +7 -17
- package/lib/inputs/mask/index.js +10 -36
- package/lib/inputs/mask/index.js.map +1 -0
- package/lib/inputs/mask/types.d.ts +9 -15
- package/lib/inputs/multiSelect/ActionButtons.d.ts +3 -13
- package/lib/inputs/multiSelect/ActionButtons.js +38 -49
- package/lib/inputs/multiSelect/ActionButtons.js.map +1 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +3 -13
- package/lib/inputs/multiSelect/Dropdown.js +107 -136
- package/lib/inputs/multiSelect/Dropdown.js.map +1 -0
- package/lib/inputs/multiSelect/helper.d.ts +2 -12
- package/lib/inputs/multiSelect/helper.js +5 -20
- package/lib/inputs/multiSelect/helper.js.map +1 -0
- package/lib/inputs/multiSelect/index.d.ts +3 -13
- package/lib/inputs/multiSelect/index.js +129 -236
- package/lib/inputs/multiSelect/index.js.map +1 -0
- package/lib/inputs/multiSelect/types.d.ts +7 -15
- package/lib/inputs/number/Currency.d.ts +3 -17
- package/lib/inputs/number/Currency.js +71 -28
- package/lib/inputs/number/Currency.js.map +1 -0
- package/lib/inputs/number/Decimal.d.ts +3 -17
- package/lib/inputs/number/Decimal.js +67 -10
- package/lib/inputs/number/Decimal.js.map +1 -0
- package/lib/inputs/number/format_number.d.ts +3 -5
- package/lib/inputs/number/format_number.js +13 -28
- package/lib/inputs/number/format_number.js.map +1 -0
- package/lib/inputs/number/index.d.ts +6 -19
- package/lib/inputs/number/index.js +68 -63
- package/lib/inputs/number/index.js.map +1 -0
- package/lib/inputs/number/types.d.ts +16 -18
- package/lib/inputs/period/Dialog.d.ts +3 -14
- package/lib/inputs/period/Dialog.js +16 -26
- package/lib/inputs/period/Dialog.js.map +1 -0
- package/lib/inputs/period/Dropdown.d.ts +3 -14
- package/lib/inputs/period/Dropdown.js +14 -38
- package/lib/inputs/period/Dropdown.js.map +1 -0
- package/lib/inputs/period/PeriodList.d.ts +3 -14
- package/lib/inputs/period/PeriodList.js +47 -51
- package/lib/inputs/period/PeriodList.js.map +1 -0
- package/lib/inputs/period/helper.d.ts +5 -16
- package/lib/inputs/period/helper.js +25 -63
- package/lib/inputs/period/helper.js.map +1 -0
- package/lib/inputs/period/index.d.ts +3 -14
- package/lib/inputs/period/index.js +297 -543
- package/lib/inputs/period/index.js.map +1 -0
- package/lib/inputs/period/types.d.ts +13 -19
- package/lib/inputs/search/index.d.ts +3 -16
- package/lib/inputs/search/index.js +90 -131
- package/lib/inputs/search/index.js.map +1 -0
- package/lib/inputs/select/ActionButtons.d.ts +3 -16
- package/lib/inputs/select/ActionButtons.js +31 -38
- package/lib/inputs/select/ActionButtons.js.map +1 -0
- package/lib/inputs/select/Dropdown.d.ts +3 -16
- package/lib/inputs/select/Dropdown.js +86 -112
- package/lib/inputs/select/Dropdown.js.map +1 -0
- package/lib/inputs/select/helper.d.ts +7 -21
- package/lib/inputs/select/helper.js +23 -110
- package/lib/inputs/select/helper.js.map +1 -0
- package/lib/inputs/select/index.d.ts +3 -13
- package/lib/inputs/select/index.js +28 -41
- package/lib/inputs/select/index.js.map +1 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +3 -13
- package/lib/inputs/select/multiple/Selecteds.js +15 -26
- package/lib/inputs/select/multiple/Selecteds.js.map +1 -0
- package/lib/inputs/select/multiple/index.d.ts +3 -13
- package/lib/inputs/select/multiple/index.js +168 -288
- package/lib/inputs/select/multiple/index.js.map +1 -0
- package/lib/inputs/select/simple/index.d.ts +3 -13
- package/lib/inputs/select/simple/index.js +167 -317
- package/lib/inputs/select/simple/index.js.map +1 -0
- package/lib/inputs/select/types.d.ts +14 -20
- package/lib/inputs/text/index.d.ts +3 -12
- package/lib/inputs/text/index.js +7 -12
- package/lib/inputs/text/index.js.map +1 -0
- package/lib/inputs/text/types.d.ts +5 -11
- package/lib/inputs/textarea/index.d.ts +3 -12
- package/lib/inputs/textarea/index.js +16 -24
- package/lib/inputs/textarea/index.js.map +1 -0
- package/lib/inputs/textarea/types.d.ts +2 -11
- package/lib/inputs/types.d.ts +17 -24
- package/lib/inputs2/checkboxfield/base.d.ts +9 -11
- package/lib/inputs2/checkboxfield/base.js +109 -133
- package/lib/inputs2/checkboxfield/base.js.map +1 -0
- package/lib/inputs2/checkboxfield/index.d.ts +11 -8
- package/lib/inputs2/checkboxfield/index.js +34 -56
- package/lib/inputs2/checkboxfield/index.js.map +1 -0
- package/lib/inputs2/colorfield/index.d.ts +8 -10
- package/lib/inputs2/colorfield/index.js +69 -118
- package/lib/inputs2/colorfield/index.js.map +1 -0
- package/lib/inputs2/date/base/constants.d.ts +3 -6
- package/lib/inputs2/date/base/constants.js +30 -43
- package/lib/inputs2/date/base/constants.js.map +1 -0
- package/lib/inputs2/date/base/index.d.ts +6 -12
- package/lib/inputs2/date/base/index.js +121 -172
- package/lib/inputs2/date/base/index.js.map +1 -0
- package/lib/inputs2/date/datefield/base.d.ts +3 -13
- package/lib/inputs2/date/datefield/base.js +220 -329
- package/lib/inputs2/date/datefield/base.js.map +1 -0
- package/lib/inputs2/date/datefield/calendarbox.d.ts +5 -6
- package/lib/inputs2/date/datefield/calendarbox.js +111 -115
- package/lib/inputs2/date/datefield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/datefield/context.d.ts +2 -12
- package/lib/inputs2/date/datefield/context.js +10 -14
- package/lib/inputs2/date/datefield/context.js.map +1 -0
- package/lib/inputs2/date/datefield/index.d.ts +5 -10
- package/lib/inputs2/date/datefield/index.js +29 -56
- package/lib/inputs2/date/datefield/index.js.map +1 -0
- package/lib/inputs2/date/datefield/triggers.d.ts +3 -3
- package/lib/inputs2/date/datefield/triggers.js +31 -45
- package/lib/inputs2/date/datefield/triggers.js.map +1 -0
- package/lib/inputs2/date/datefield/types.d.ts +15 -17
- package/lib/inputs2/date/dateperiodfield/base.d.ts +3 -13
- package/lib/inputs2/date/dateperiodfield/base.js +385 -594
- package/lib/inputs2/date/dateperiodfield/base.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +5 -6
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +120 -137
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +2 -12
- package/lib/inputs2/date/dateperiodfield/context.js +10 -16
- package/lib/inputs2/date/dateperiodfield/context.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +5 -10
- package/lib/inputs2/date/dateperiodfield/index.js +29 -56
- package/lib/inputs2/date/dateperiodfield/index.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +1 -2
- package/lib/inputs2/date/dateperiodfield/triggers.js +82 -124
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/types.d.ts +23 -25
- package/lib/inputs2/date/helpers.d.ts +9 -20
- package/lib/inputs2/date/helpers.js +59 -61
- package/lib/inputs2/date/helpers.js.map +1 -0
- package/lib/inputs2/date/types.d.ts +13 -14
- package/lib/inputs2/date/types.js +7 -18
- package/lib/inputs2/date/types.js.map +1 -0
- package/lib/inputs2/filefield/index.d.ts +11 -10
- package/lib/inputs2/filefield/index.js +146 -173
- package/lib/inputs2/filefield/index.js.map +1 -0
- package/lib/inputs2/index.d.ts +17 -38
- package/lib/inputs2/index.js +17 -37
- package/lib/inputs2/mask/Cnpj.d.ts +9 -12
- package/lib/inputs2/mask/Cnpj.js +71 -55
- package/lib/inputs2/mask/Cnpj.js.map +1 -0
- package/lib/inputs2/mask/Cpf.d.ts +9 -12
- package/lib/inputs2/mask/Cpf.js +57 -51
- package/lib/inputs2/mask/Cpf.js.map +1 -0
- package/lib/inputs2/mask/Phone.d.ts +8 -12
- package/lib/inputs2/mask/Phone.js +20 -24
- package/lib/inputs2/mask/Phone.js.map +1 -0
- package/lib/inputs2/mask/ZipCode.d.ts +7 -12
- package/lib/inputs2/mask/ZipCode.js +20 -21
- package/lib/inputs2/mask/ZipCode.js.map +1 -0
- package/lib/inputs2/mask/helpers.d.ts +2 -4
- package/lib/inputs2/mask/helpers.js +27 -56
- package/lib/inputs2/mask/helpers.js.map +1 -0
- package/lib/inputs2/mask/index.d.ts +6 -0
- package/lib/inputs2/mask/index.js +68 -0
- package/lib/inputs2/mask/index.js.map +1 -0
- package/lib/inputs2/mask/types.d.ts +16 -0
- package/lib/inputs2/numberfield/currency.d.ts +3 -13
- package/lib/inputs2/numberfield/currency.js +85 -90
- package/lib/inputs2/numberfield/currency.js.map +1 -0
- package/lib/inputs2/numberfield/decimal.d.ts +3 -13
- package/lib/inputs2/numberfield/decimal.js +77 -84
- package/lib/inputs2/numberfield/decimal.js.map +1 -0
- package/lib/inputs2/numberfield/helpers.d.ts +1 -3
- package/lib/inputs2/numberfield/helpers.js +16 -52
- package/lib/inputs2/numberfield/helpers.js.map +1 -0
- package/lib/inputs2/numberfield/index.d.ts +8 -13
- package/lib/inputs2/numberfield/index.js +82 -120
- package/lib/inputs2/numberfield/index.js.map +1 -0
- package/lib/inputs2/numberfield/types.d.ts +6 -17
- package/lib/inputs2/radiofield/base.d.ts +3 -12
- package/lib/inputs2/radiofield/base.js +112 -155
- package/lib/inputs2/radiofield/base.js.map +1 -0
- package/lib/inputs2/radiofield/index.d.ts +5 -9
- package/lib/inputs2/radiofield/index.js +34 -54
- package/lib/inputs2/radiofield/index.js.map +1 -0
- package/lib/inputs2/radiofield/types.d.ts +12 -14
- package/lib/inputs2/selectfield/base.d.ts +3 -11
- package/lib/inputs2/selectfield/base.js +311 -512
- package/lib/inputs2/selectfield/base.js.map +1 -0
- package/lib/inputs2/selectfield/context.d.ts +12 -13
- package/lib/inputs2/selectfield/context.js +10 -14
- package/lib/inputs2/selectfield/context.js.map +1 -0
- package/lib/inputs2/selectfield/helpers.d.ts +5 -6
- package/lib/inputs2/selectfield/helpers.js +35 -24
- package/lib/inputs2/selectfield/helpers.js.map +1 -0
- package/lib/inputs2/selectfield/index.d.ts +9 -11
- package/lib/inputs2/selectfield/index.js +41 -83
- package/lib/inputs2/selectfield/index.js.map +1 -0
- package/lib/inputs2/selectfield/item.d.ts +6 -7
- package/lib/inputs2/selectfield/item.js +53 -88
- package/lib/inputs2/selectfield/item.js.map +1 -0
- package/lib/inputs2/selectfield/listbox.d.ts +6 -6
- package/lib/inputs2/selectfield/listbox.js +65 -116
- package/lib/inputs2/selectfield/listbox.js.map +1 -0
- package/lib/inputs2/selectfield/options.d.ts +6 -7
- package/lib/inputs2/selectfield/options.js +19 -25
- package/lib/inputs2/selectfield/options.js.map +1 -0
- package/lib/inputs2/selectfield/search.d.ts +5 -6
- package/lib/inputs2/selectfield/search.js +50 -69
- package/lib/inputs2/selectfield/search.js.map +1 -0
- package/lib/inputs2/selectfield/selections.d.ts +5 -6
- package/lib/inputs2/selectfield/selections.js +61 -86
- package/lib/inputs2/selectfield/selections.js.map +1 -0
- package/lib/inputs2/selectfield/simple.d.ts +9 -0
- package/lib/inputs2/selectfield/simple.js +22 -0
- package/lib/inputs2/selectfield/simple.js.map +1 -0
- package/lib/inputs2/selectfield/triggers.d.ts +3 -3
- package/lib/inputs2/selectfield/triggers.js +109 -108
- package/lib/inputs2/selectfield/triggers.js.map +1 -0
- package/lib/inputs2/selectfield/types.d.ts +14 -15
- package/lib/inputs2/selectfield/types.js +9 -20
- package/lib/inputs2/selectfield/types.js.map +1 -0
- package/lib/inputs2/slot/index.d.ts +11 -8
- package/lib/inputs2/slot/index.js +50 -45
- package/lib/inputs2/slot/index.js.map +1 -0
- package/lib/inputs2/textareafield/base.d.ts +7 -10
- package/lib/inputs2/textareafield/base.js +118 -165
- package/lib/inputs2/textareafield/base.js.map +1 -0
- package/lib/inputs2/textareafield/index.d.ts +12 -9
- package/lib/inputs2/textareafield/index.js +39 -69
- package/lib/inputs2/textareafield/index.js.map +1 -0
- package/lib/inputs2/textfield/base.d.ts +7 -10
- package/lib/inputs2/textfield/base.js +100 -130
- package/lib/inputs2/textfield/base.js.map +1 -0
- package/lib/inputs2/textfield/index.d.ts +12 -9
- package/lib/inputs2/textfield/index.js +39 -69
- package/lib/inputs2/textfield/index.js.map +1 -0
- package/lib/internals/colorStyles.d.ts +1 -2
- package/lib/internals/colorStyles.js +11 -13
- package/lib/internals/colorStyles.js.map +1 -0
- package/lib/internals/constants.d.ts +3 -5
- package/lib/internals/constants.js +12 -17
- package/lib/internals/constants.js.map +1 -0
- package/lib/internals/types.d.ts +2 -4
- package/lib/labelMessages/index.d.ts +3 -9
- package/lib/labelMessages/index.js +48 -57
- package/lib/labelMessages/index.js.map +1 -0
- package/lib/labelMessages/types.d.ts +3 -7
- package/lib/labels/DangerLabel.d.ts +3 -12
- package/lib/labels/DangerLabel.js +10 -17
- package/lib/labels/DangerLabel.js.map +1 -0
- package/lib/labels/DefaultLabel.d.ts +3 -12
- package/lib/labels/DefaultLabel.js +29 -58
- package/lib/labels/DefaultLabel.js.map +1 -0
- package/lib/labels/InfoLabel.d.ts +3 -12
- package/lib/labels/InfoLabel.js +10 -17
- package/lib/labels/InfoLabel.js.map +1 -0
- package/lib/labels/PrimaryLabel.d.ts +3 -12
- package/lib/labels/PrimaryLabel.js +10 -17
- package/lib/labels/PrimaryLabel.js.map +1 -0
- package/lib/labels/SuccessLabel.d.ts +3 -12
- package/lib/labels/SuccessLabel.js +10 -17
- package/lib/labels/SuccessLabel.js.map +1 -0
- package/lib/labels/WarningLabel.d.ts +3 -12
- package/lib/labels/WarningLabel.js +10 -17
- package/lib/labels/WarningLabel.js.map +1 -0
- package/lib/labels/index.d.ts +9 -19
- package/lib/labels/index.js +13 -51
- package/lib/labels/index.js.map +1 -0
- package/lib/labels/label_container/index.d.ts +4 -6
- package/lib/labels/label_container/index.js +10 -21
- package/lib/labels/label_container/index.js.map +1 -0
- package/lib/labels/types.d.ts +8 -12
- package/lib/list/Header.d.ts +3 -11
- package/lib/list/Header.js +13 -22
- package/lib/list/Header.js.map +1 -0
- package/lib/list/Item.d.ts +3 -11
- package/lib/list/Item.js +89 -164
- package/lib/list/Item.js.map +1 -0
- package/lib/list/Separator.d.ts +2 -3
- package/lib/list/Separator.js +6 -11
- package/lib/list/Separator.js.map +1 -0
- package/lib/list/helpers.d.ts +3 -11
- package/lib/list/helpers.js +10 -13
- package/lib/list/helpers.js.map +1 -0
- package/lib/list/index.d.ts +7 -14
- package/lib/list/index.js +74 -179
- package/lib/list/index.js.map +1 -0
- package/lib/list/types.d.ts +12 -17
- package/lib/menus/float/MenuItem.d.ts +3 -9
- package/lib/menus/float/MenuItem.js +59 -67
- package/lib/menus/float/MenuItem.js.map +1 -0
- package/lib/menus/float/SubMenuContainer.d.ts +29 -0
- package/lib/menus/float/SubMenuContainer.js +61 -74
- package/lib/menus/float/SubMenuContainer.js.map +1 -0
- package/lib/menus/float/helpers.d.ts +3 -9
- package/lib/menus/float/helpers.js +6 -9
- package/lib/menus/float/helpers.js.map +1 -0
- package/lib/menus/float/index.d.ts +6 -40
- package/lib/menus/float/index.js +37 -67
- package/lib/menus/float/index.js.map +1 -0
- package/lib/menus/float/types.d.ts +5 -9
- package/lib/menus/index.d.ts +2 -12
- package/lib/menus/index.js +6 -8
- package/lib/menus/index.js.map +1 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +3 -12
- package/lib/menus/sidenav/ExpandMenu.js +17 -26
- package/lib/menus/sidenav/ExpandMenu.js.map +1 -0
- package/lib/menus/sidenav/MenuLink.d.ts +3 -12
- package/lib/menus/sidenav/MenuLink.js +23 -36
- package/lib/menus/sidenav/MenuLink.js.map +1 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +3 -12
- package/lib/menus/sidenav/NavMenuGroup.js +18 -24
- package/lib/menus/sidenav/NavMenuGroup.js.map +1 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +3 -12
- package/lib/menus/sidenav/NavMenuItem.js +95 -150
- package/lib/menus/sidenav/NavMenuItem.js.map +1 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +3 -12
- package/lib/menus/sidenav/NavSubMenuItem.js +36 -41
- package/lib/menus/sidenav/NavSubMenuItem.js.map +1 -0
- package/lib/menus/sidenav/helpers.d.ts +4 -13
- package/lib/menus/sidenav/helpers.js +9 -17
- package/lib/menus/sidenav/helpers.js.map +1 -0
- package/lib/menus/sidenav/index.d.ts +8 -16
- package/lib/menus/sidenav/index.js +96 -182
- package/lib/menus/sidenav/index.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +3 -12
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +17 -25
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +3 -12
- package/lib/menus/sidenav/popup_menu_search/index.js +79 -114
- package/lib/menus/sidenav/popup_menu_search/index.js.map +1 -0
- package/lib/menus/sidenav/types.d.ts +18 -23
- package/lib/noPermission/index.d.ts +2 -3
- package/lib/noPermission/index.js +26 -22
- package/lib/noPermission/index.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +32 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +29 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +41 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input-history.js +32 -0
- package/lib/node_modules/imask/esm/controls/input-history.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input.js +179 -0
- package/lib/node_modules/imask/esm/controls/input.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js +31 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/core/action-details.js +36 -0
- package/lib/node_modules/imask/esm/core/action-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/change-details.js +32 -0
- package/lib/node_modules/imask/esm/core/change-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +39 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/holder.js +8 -0
- package/lib/node_modules/imask/esm/core/holder.js.map +1 -0
- package/lib/node_modules/imask/esm/core/utils.js +58 -0
- package/lib/node_modules/imask/esm/core/utils.js.map +1 -0
- package/lib/node_modules/imask/esm/imask.js +8 -0
- package/lib/node_modules/imask/esm/index.js +31 -0
- package/lib/node_modules/imask/esm/index.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/base.js +199 -0
- package/lib/node_modules/imask/esm/masked/base.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/date.js +102 -0
- package/lib/node_modules/imask/esm/masked/date.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js +201 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/enum.js +65 -0
- package/lib/node_modules/imask/esm/masked/enum.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/factory.js +35 -0
- package/lib/node_modules/imask/esm/masked/factory.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/function.js +20 -0
- package/lib/node_modules/imask/esm/masked/function.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/number.js +177 -0
- package/lib/node_modules/imask/esm/masked/number.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +85 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +86 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +93 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +112 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern.js +285 -0
- package/lib/node_modules/imask/esm/masked/pattern.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pipe.js +21 -0
- package/lib/node_modules/imask/esm/masked/pipe.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/range.js +67 -0
- package/lib/node_modules/imask/esm/masked/range.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/regexp.js +18 -0
- package/lib/node_modules/imask/esm/masked/regexp.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/repeat.js +90 -0
- package/lib/node_modules/imask/esm/masked/repeat.js.map +1 -0
- package/lib/node_modules/lodash/_Hash.js +23 -0
- package/lib/node_modules/lodash/_Hash.js.map +1 -0
- package/lib/node_modules/lodash/_ListCache.js +23 -0
- package/lib/node_modules/lodash/_ListCache.js.map +1 -0
- package/lib/node_modules/lodash/_Map.js +12 -0
- package/lib/node_modules/lodash/_Map.js.map +1 -0
- package/lib/node_modules/lodash/_MapCache.js +23 -0
- package/lib/node_modules/lodash/_MapCache.js.map +1 -0
- package/lib/node_modules/lodash/_Symbol.js +11 -0
- package/lib/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/node_modules/lodash/_assocIndexOf.js +16 -0
- package/lib/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetTag.js +17 -0
- package/lib/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNative.js +18 -0
- package/lib/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/node_modules/lodash/_coreJsData.js +11 -0
- package/lib/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/node_modules/lodash/_freeGlobal.js +10 -0
- package/lib/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/lib/node_modules/lodash/_getMapData.js +16 -0
- package/lib/node_modules/lodash/_getMapData.js.map +1 -0
- package/lib/node_modules/lodash/_getNative.js +17 -0
- package/lib/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/node_modules/lodash/_getRawTag.js +21 -0
- package/lib/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/node_modules/lodash/_getValue.js +13 -0
- package/lib/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/node_modules/lodash/_hashClear.js +15 -0
- package/lib/node_modules/lodash/_hashClear.js.map +1 -0
- package/lib/node_modules/lodash/_hashDelete.js +14 -0
- package/lib/node_modules/lodash/_hashDelete.js.map +1 -0
- package/lib/node_modules/lodash/_hashGet.js +20 -0
- package/lib/node_modules/lodash/_hashGet.js.map +1 -0
- package/lib/node_modules/lodash/_hashHas.js +16 -0
- package/lib/node_modules/lodash/_hashHas.js.map +1 -0
- package/lib/node_modules/lodash/_hashSet.js +16 -0
- package/lib/node_modules/lodash/_hashSet.js.map +1 -0
- package/lib/node_modules/lodash/_isKeyable.js +14 -0
- package/lib/node_modules/lodash/_isKeyable.js.map +1 -0
- package/lib/node_modules/lodash/_isMasked.js +18 -0
- package/lib/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheClear.js +13 -0
- package/lib/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheDelete.js +16 -0
- package/lib/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheGet.js +16 -0
- package/lib/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheHas.js +15 -0
- package/lib/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheSet.js +16 -0
- package/lib/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheClear.js +21 -0
- package/lib/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheGet.js +15 -0
- package/lib/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheHas.js +15 -0
- package/lib/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheSet.js +16 -0
- package/lib/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_nativeCreate.js +11 -0
- package/lib/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/node_modules/lodash/_objectToString.js +14 -0
- package/lib/node_modules/lodash/_objectToString.js.map +1 -0
- package/lib/node_modules/lodash/_root.js +12 -0
- package/lib/node_modules/lodash/_root.js.map +1 -0
- package/lib/node_modules/lodash/_toSource.js +22 -0
- package/lib/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/node_modules/lodash/eq.js +13 -0
- package/lib/node_modules/lodash/eq.js.map +1 -0
- package/lib/node_modules/lodash/isFunction.js +18 -0
- package/lib/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/node_modules/lodash/isObject.js +14 -0
- package/lib/node_modules/lodash/isObject.js.map +1 -0
- package/lib/node_modules/lodash/lodash.js +3295 -0
- package/lib/node_modules/lodash/lodash.js.map +1 -0
- package/lib/node_modules/lodash/memoize.js +22 -0
- package/lib/node_modules/lodash/memoize.js.map +1 -0
- package/lib/node_modules/moment/dist/moment.js +1934 -0
- package/lib/node_modules/moment/dist/moment.js.map +1 -0
- package/lib/node_modules/object-assign/index.js +41 -0
- package/lib/node_modules/object-assign/index.js.map +1 -0
- package/lib/node_modules/prop-types/checkPropTypes.js +46 -0
- package/lib/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +49 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +272 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/lib/node_modules/prop-types/index.js +16 -0
- package/lib/node_modules/prop-types/index.js.map +1 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/lib/node_modules/prop-types/lib/has.js +10 -0
- package/lib/node_modules/prop-types/lib/has.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +84 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +64 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +12 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js +16 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js +13 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +1 -0
- package/lib/node_modules/react/compiler-runtime.js +12 -0
- package/lib/node_modules/react/compiler-runtime.js.map +1 -0
- package/lib/node_modules/react-imask/esm/hook.js +58 -0
- package/lib/node_modules/react-imask/esm/hook.js.map +1 -0
- package/lib/node_modules/react-imask/esm/index.js +7 -0
- package/lib/node_modules/react-imask/esm/input.js +18 -0
- package/lib/node_modules/react-imask/esm/input.js.map +1 -0
- package/lib/node_modules/react-imask/esm/mixin.js +129 -0
- package/lib/node_modules/react-imask/esm/mixin.js.map +1 -0
- package/lib/node_modules/uuid/dist/native.js +5 -0
- package/lib/node_modules/uuid/dist/native.js.map +1 -0
- package/lib/node_modules/uuid/dist/rng.js +13 -0
- package/lib/node_modules/uuid/dist/rng.js.map +1 -0
- package/lib/node_modules/uuid/dist/stringify.js +10 -0
- package/lib/node_modules/uuid/dist/stringify.js.map +1 -0
- package/lib/node_modules/uuid/dist/v1.js +36 -0
- package/lib/node_modules/uuid/dist/v1.js.map +1 -0
- package/lib/node_modules/uuid/dist/v4.js +22 -0
- package/lib/node_modules/uuid/dist/v4.js.map +1 -0
- package/lib/panel/Content.d.ts +3 -10
- package/lib/panel/Content.js +41 -82
- package/lib/panel/Content.js.map +1 -0
- package/lib/panel/DangerPanel.d.ts +3 -10
- package/lib/panel/DangerPanel.js +11 -14
- package/lib/panel/DangerPanel.js.map +1 -0
- package/lib/panel/Default.d.ts +3 -10
- package/lib/panel/Default.js +44 -65
- package/lib/panel/Default.js.map +1 -0
- package/lib/panel/Header.d.ts +3 -10
- package/lib/panel/Header.js +50 -73
- package/lib/panel/Header.js.map +1 -0
- package/lib/panel/InfoPanel.d.ts +3 -10
- package/lib/panel/InfoPanel.js +11 -14
- package/lib/panel/InfoPanel.js.map +1 -0
- package/lib/panel/PrimaryPanel.d.ts +3 -10
- package/lib/panel/PrimaryPanel.js +11 -14
- package/lib/panel/PrimaryPanel.js.map +1 -0
- package/lib/panel/SuccessPanel.d.ts +3 -10
- package/lib/panel/SuccessPanel.js +11 -14
- package/lib/panel/SuccessPanel.js.map +1 -0
- package/lib/panel/ToolBar.d.ts +3 -10
- package/lib/panel/WarningPanel.d.ts +3 -10
- package/lib/panel/WarningPanel.js +11 -14
- package/lib/panel/WarningPanel.js.map +1 -0
- package/lib/panel/helpers.d.ts +4 -11
- package/lib/panel/helpers.js +12 -24
- package/lib/panel/helpers.js.map +1 -0
- package/lib/panel/index.d.ts +10 -18
- package/lib/panel/index.js +14 -58
- package/lib/panel/index.js.map +1 -0
- package/lib/panel/types.d.ts +11 -15
- package/lib/permissionValidations.d.ts +4 -6
- package/lib/permissionValidations.js +39 -58
- package/lib/permissionValidations.js.map +1 -0
- package/lib/popover/PopoverText.d.ts +3 -11
- package/lib/popover/PopoverText.js +18 -27
- package/lib/popover/PopoverText.js.map +1 -0
- package/lib/popover/PopoverTitle.d.ts +3 -11
- package/lib/popover/PopoverTitle.js +9 -16
- package/lib/popover/PopoverTitle.js.map +1 -0
- package/lib/popover/index.d.ts +6 -13
- package/lib/popover/index.js +39 -69
- package/lib/popover/index.js.map +1 -0
- package/lib/popover/types.d.ts +8 -12
- package/lib/progress/Bar.d.ts +3 -6
- package/lib/progress/Bar.js +40 -73
- package/lib/progress/Bar.js.map +1 -0
- package/lib/progress/index.d.ts +5 -7
- package/lib/progress/index.js +19 -37
- package/lib/progress/index.js.map +1 -0
- package/lib/progress/types.d.ts +4 -7
- package/lib/radio/index.d.ts +3 -8
- package/lib/radio/index.js +87 -112
- package/lib/radio/index.js.map +1 -0
- package/lib/radio/types.d.ts +3 -6
- package/lib/shortcuts/index.d.ts +3 -7
- package/lib/shortcuts/index.js +21 -27
- package/lib/shortcuts/index.js.map +1 -0
- package/lib/shortcuts/types.d.ts +2 -5
- package/lib/skeleton/SkeletonContainer.d.ts +3 -7
- package/lib/skeleton/SkeletonContainer.js +11 -21
- package/lib/skeleton/SkeletonContainer.js.map +1 -0
- package/lib/skeleton/index.d.ts +5 -8
- package/lib/skeleton/index.js +28 -50
- package/lib/skeleton/index.js.map +1 -0
- package/lib/skeleton/types.d.ts +3 -6
- package/lib/spinner/SpinnerLoading.d.ts +3 -7
- package/lib/spinner/SpinnerLoading.js +248 -219
- package/lib/spinner/SpinnerLoading.js.map +1 -0
- package/lib/spinner/index.d.ts +5 -7
- package/lib/spinner/index.js +47 -58
- package/lib/spinner/index.js.map +1 -0
- package/lib/spinner/types.d.ts +3 -6
- package/lib/split/Split.d.ts +3 -6
- package/lib/split/Split.js +194 -290
- package/lib/split/Split.js.map +1 -0
- package/lib/split/SplitSide.d.ts +3 -6
- package/lib/split/SplitSide.js +20 -40
- package/lib/split/SplitSide.js.map +1 -0
- package/lib/split/helpers.d.ts +3 -6
- package/lib/split/helpers.js +6 -9
- package/lib/split/helpers.js.map +1 -0
- package/lib/split/index.d.ts +4 -8
- package/lib/split/index.js +8 -16
- package/lib/split/index.js.map +1 -0
- package/lib/split/types.d.ts +3 -6
- package/lib/table/Body.d.ts +3 -8
- package/lib/table/Body.js +41 -69
- package/lib/table/Body.js.map +1 -0
- package/lib/table/Header.d.ts +3 -8
- package/lib/table/Header.js +55 -91
- package/lib/table/Header.js.map +1 -0
- package/lib/table/HeaderColumn.d.ts +3 -8
- package/lib/table/HeaderColumn.js +40 -53
- package/lib/table/HeaderColumn.js.map +1 -0
- package/lib/table/Row.d.ts +3 -8
- package/lib/table/Row.js +47 -87
- package/lib/table/Row.js.map +1 -0
- package/lib/table/RowColumn.d.ts +3 -8
- package/lib/table/RowColumn.js +46 -78
- package/lib/table/RowColumn.js.map +1 -0
- package/lib/table/helpers.d.ts +5 -9
- package/lib/table/helpers.js +6 -14
- package/lib/table/helpers.js.map +1 -0
- package/lib/table/index.d.ts +9 -13
- package/lib/table/index.js +69 -151
- package/lib/table/index.js.map +1 -0
- package/lib/table/types.d.ts +8 -13
- package/lib/tabs/DropdownTabs.d.ts +3 -11
- package/lib/tabs/DropdownTabs.js +69 -85
- package/lib/tabs/DropdownTabs.js.map +1 -0
- package/lib/tabs/Menu.d.ts +3 -11
- package/lib/tabs/Menu.js +34 -47
- package/lib/tabs/Menu.js.map +1 -0
- package/lib/tabs/MenuTabs.d.ts +3 -11
- package/lib/tabs/MenuTabs.js +59 -89
- package/lib/tabs/MenuTabs.js.map +1 -0
- package/lib/tabs/Panel.d.ts +3 -11
- package/lib/tabs/Panel.js +41 -84
- package/lib/tabs/Panel.js.map +1 -0
- package/lib/tabs/context.d.ts +3 -12
- package/lib/tabs/context.js +81 -130
- package/lib/tabs/context.js.map +1 -0
- package/lib/tabs/index.d.ts +5 -12
- package/lib/tabs/index.js +53 -74
- package/lib/tabs/index.js.map +1 -0
- package/lib/tabs/tabHelpers.d.ts +25 -10
- package/lib/tabs/tabHelpers.js +37 -65
- package/lib/tabs/tabHelpers.js.map +1 -0
- package/lib/tabs/types.d.ts +16 -19
- package/lib/tabs/useTabs.d.ts +1 -11
- package/lib/tabs/useTabs.js +9 -10
- package/lib/tabs/useTabs.js.map +1 -0
- package/lib/textContent/index.d.ts +6 -9
- package/lib/textContent/index.js +27 -45
- package/lib/textContent/index.js.map +1 -0
- package/lib/toolbar/ButtonBar.d.ts +3 -12
- package/lib/toolbar/ButtonBar.js +53 -64
- package/lib/toolbar/ButtonBar.js.map +1 -0
- package/lib/toolbar/LabelBar.d.ts +3 -12
- package/lib/toolbar/LabelBar.js +39 -56
- package/lib/toolbar/LabelBar.js.map +1 -0
- package/lib/toolbar/Separator.d.ts +2 -3
- package/lib/toolbar/Separator.js +6 -11
- package/lib/toolbar/Separator.js.map +1 -0
- package/lib/toolbar/ToolBarGroup.d.ts +3 -12
- package/lib/toolbar/ToolBarGroup.js +10 -18
- package/lib/toolbar/ToolBarGroup.js.map +1 -0
- package/lib/toolbar/helpers.d.ts +3 -12
- package/lib/toolbar/helpers.js +6 -8
- package/lib/toolbar/helpers.js.map +1 -0
- package/lib/toolbar/index.d.ts +8 -16
- package/lib/toolbar/index.js +23 -64
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/types.d.ts +10 -14
- package/lib/tooltip/TooltipContent.d.ts +3 -7
- package/lib/tooltip/TooltipContent.js +32 -63
- package/lib/tooltip/TooltipContent.js.map +1 -0
- package/lib/tooltip/index.d.ts +3 -7
- package/lib/tooltip/index.js +40 -45
- package/lib/tooltip/index.js.map +1 -0
- package/lib/tooltip/types.d.ts +11 -10
- package/lib/tooltip/useTooltip.d.ts +6 -9
- package/lib/tooltip/useTooltip.js +77 -152
- package/lib/tooltip/useTooltip.js.map +1 -0
- package/lib/treetable/Body.d.ts +2 -3
- package/lib/treetable/Body.js +25 -32
- package/lib/treetable/Body.js.map +1 -0
- package/lib/treetable/Header.d.ts +2 -3
- package/lib/treetable/Header.js +26 -22
- package/lib/treetable/Header.js.map +1 -0
- package/lib/treetable/Row.d.ts +3 -9
- package/lib/treetable/Row.js +154 -235
- package/lib/treetable/Row.js.map +1 -0
- package/lib/treetable/helpers.d.ts +10 -17
- package/lib/treetable/helpers.js +12 -31
- package/lib/treetable/helpers.js.map +1 -0
- package/lib/treetable/index.d.ts +4 -10
- package/lib/treetable/index.js +21 -27
- package/lib/treetable/index.js.map +1 -0
- package/lib/treeview/Header.d.ts +3 -7
- package/lib/treeview/Header.js +15 -20
- package/lib/treeview/Header.js.map +1 -0
- package/lib/treeview/Node.d.ts +3 -7
- package/lib/treeview/Node.js +150 -243
- package/lib/treeview/Node.js.map +1 -0
- package/lib/treeview/constants.d.ts +2 -7
- package/lib/treeview/constants.js +6 -8
- package/lib/treeview/constants.js.map +1 -0
- package/lib/treeview/index.d.ts +6 -9
- package/lib/treeview/index.js +181 -318
- package/lib/treeview/index.js.map +1 -0
- package/lib/treeview/types.d.ts +12 -14
- package/lib/uitour/helpers.d.ts +1 -2
- package/lib/uitour/helpers.js +8 -11
- package/lib/uitour/helpers.js.map +1 -0
- package/lib/uitour/index.d.ts +3 -7
- package/lib/uitour/index.js +183 -255
- package/lib/uitour/index.js.map +1 -0
- package/lib/uitour/types.d.ts +7 -10
- package/package.json +349 -85
- package/lib/@types/Align.js +0 -5
- package/lib/@types/ButtonTypes.js +0 -5
- package/lib/@types/ColorStyles.js +0 -5
- package/lib/@types/DataCombo.js +0 -5
- package/lib/@types/Icon.js +0 -5
- package/lib/@types/LabelStyles.js +0 -5
- package/lib/@types/Period.js +0 -5
- package/lib/@types/PermissionAttr.js +0 -5
- package/lib/@types/PointerEvents.js +0 -5
- package/lib/@types/Position.js +0 -5
- package/lib/@types/PositionAlert.js +0 -5
- package/lib/@types/Size.js +0 -5
- package/lib/@types/SizePixels.js +0 -5
- package/lib/@types/StorageMock.js +0 -5
- package/lib/BaseMask-78847f45.d.ts +0 -24
- package/lib/Cnpj-8366781f.d.ts +0 -18
- package/lib/Cpf-3dfd54eb.d.ts +0 -18
- package/lib/Phone-1962c0f2.d.ts +0 -18
- package/lib/ZipCode-be9c5b3b.d.ts +0 -13
- package/lib/alerts/types.js +0 -5
- package/lib/assets/fonts/Roboto-Black.woff +0 -0
- package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Light.woff +0 -0
- package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
- package/lib/assets/images/logo.png +0 -0
- package/lib/assets/styles/alerts.scss +0 -149
- package/lib/assets/styles/avatar.scss +0 -42
- package/lib/assets/styles/badge.scss +0 -48
- package/lib/assets/styles/button.scss +0 -373
- package/lib/assets/styles/calendar.scss +0 -311
- package/lib/assets/styles/checkbox.scss +0 -108
- package/lib/assets/styles/checkbox2.scss +0 -199
- package/lib/assets/styles/colorpicker.scss +0 -12
- package/lib/assets/styles/colors.scss +0 -180
- package/lib/assets/styles/commons.scss +0 -138
- package/lib/assets/styles/datepicker.scss +0 -36
- package/lib/assets/styles/datepicker2.scss +0 -336
- package/lib/assets/styles/dialog.scss +0 -200
- package/lib/assets/styles/drawers.scss +0 -158
- package/lib/assets/styles/dropdown.scss +0 -179
- package/lib/assets/styles/effects.scss +0 -821
- package/lib/assets/styles/error.scss +0 -9
- package/lib/assets/styles/fieldset.scss +0 -96
- package/lib/assets/styles/file.scss +0 -229
- package/lib/assets/styles/filefield.scss +0 -42
- package/lib/assets/styles/floatMenu.scss +0 -15
- package/lib/assets/styles/fonts.scss +0 -86
- package/lib/assets/styles/form.scss +0 -23
- package/lib/assets/styles/gridlayout.scss +0 -2055
- package/lib/assets/styles/hint.scss +0 -30
- package/lib/assets/styles/icon.scss +0 -42
- package/lib/assets/styles/input.scss +0 -156
- package/lib/assets/styles/label.scss +0 -118
- package/lib/assets/styles/labelMessages.scss +0 -81
- package/lib/assets/styles/list.scss +0 -124
- package/lib/assets/styles/multiSelect.scss +0 -125
- package/lib/assets/styles/noPermission.scss +0 -25
- package/lib/assets/styles/numberfield.scss +0 -18
- package/lib/assets/styles/numbers.scss +0 -5
- package/lib/assets/styles/panel.scss +0 -95
- package/lib/assets/styles/periodpicker.scss +0 -109
- package/lib/assets/styles/popover.scss +0 -44
- package/lib/assets/styles/progress.scss +0 -72
- package/lib/assets/styles/radio.scss +0 -156
- package/lib/assets/styles/radiofield.scss +0 -185
- package/lib/assets/styles/search.scss +0 -13
- package/lib/assets/styles/select.scss +0 -159
- package/lib/assets/styles/selectfield.scss +0 -411
- package/lib/assets/styles/shortcuts.scss +0 -59
- package/lib/assets/styles/sidenav.scss +0 -409
- package/lib/assets/styles/skeleton.scss +0 -48
- package/lib/assets/styles/slot.scss +0 -34
- package/lib/assets/styles/spinner.scss +0 -34
- package/lib/assets/styles/split.scss +0 -80
- package/lib/assets/styles/table.scss +0 -185
- package/lib/assets/styles/tabs.scss +0 -308
- package/lib/assets/styles/textContent.scss +0 -9
- package/lib/assets/styles/textfield.scss +0 -186
- package/lib/assets/styles/toolbar.scss +0 -74
- package/lib/assets/styles/tooltip.scss +0 -96
- package/lib/assets/styles/treetable.scss +0 -100
- package/lib/assets/styles/treeview.scss +0 -112
- package/lib/assets/styles/uitour.scss +0 -112
- package/lib/assets/styles/wizard.scss +0 -186
- package/lib/avatar/types.js +0 -5
- package/lib/badge/types.js +0 -5
- package/lib/buttons/ButtonGroups.js +0 -17
- package/lib/buttons/types.js +0 -5
- package/lib/calendar/types.js +0 -5
- package/lib/checkbox/types.js +0 -5
- package/lib/dialog/types.js +0 -5
- package/lib/drawer/types.js +0 -5
- package/lib/dropdown/helper.js +0 -16
- package/lib/dropdown/types.js +0 -5
- package/lib/fieldset/types.js +0 -5
- package/lib/form/types.js +0 -5
- package/lib/form2/types.js +0 -5
- package/lib/gridlayout/types.js +0 -5
- package/lib/hint/types.js +0 -5
- package/lib/icons/types.js +0 -5
- package/lib/index-02a27c19.d.ts +0 -26
- package/lib/index-053f615b.d.ts +0 -26
- package/lib/index-25b80f32.d.ts +0 -22
- package/lib/index-368f781f.d.ts +0 -15
- package/lib/index-696662fe.d.ts +0 -15
- package/lib/index-6f5c772d.d.ts +0 -23
- package/lib/index-6fcf446c.d.ts +0 -26
- package/lib/index-7159df18.d.ts +0 -21
- package/lib/index-c9247c1f.d.ts +0 -15
- package/lib/index-ecafc8c6.d.ts +0 -30
- package/lib/inputs/base/types.js +0 -5
- package/lib/inputs/color/types.js +0 -5
- package/lib/inputs/date/types.js +0 -5
- package/lib/inputs/file/types.js +0 -5
- package/lib/inputs/mask/types.js +0 -5
- package/lib/inputs/multiSelect/types.js +0 -5
- package/lib/inputs/number/BaseNumber.d.ts +0 -17
- package/lib/inputs/number/BaseNumber.js +0 -78
- package/lib/inputs/number/types.js +0 -5
- package/lib/inputs/period/types.js +0 -5
- package/lib/inputs/select/types.js +0 -5
- package/lib/inputs/text/types.js +0 -5
- package/lib/inputs/textarea/types.js +0 -5
- package/lib/inputs/types.js +0 -5
- package/lib/inputs2/date/datefield/types.js +0 -5
- package/lib/inputs2/date/dateperiodfield/types.js +0 -19
- package/lib/inputs2/mask/BaseMask.d.ts +0 -11
- package/lib/inputs2/mask/BaseMask.js +0 -95
- package/lib/inputs2/numberfield/types.js +0 -5
- package/lib/inputs2/radiofield/types.js +0 -5
- package/lib/internals/types.js +0 -5
- package/lib/labelMessages/types.js +0 -5
- package/lib/labels/types.js +0 -5
- package/lib/list/types.js +0 -5
- package/lib/menus/float/types.js +0 -5
- package/lib/menus/sidenav/types.js +0 -5
- package/lib/panel/ToolBar.js +0 -22
- package/lib/panel/types.js +0 -5
- package/lib/popover/types.js +0 -5
- package/lib/progress/types.js +0 -5
- package/lib/radio/types.js +0 -5
- package/lib/shortcuts/types.js +0 -5
- package/lib/skeleton/types.js +0 -5
- package/lib/spinner/types.js +0 -5
- package/lib/split/types.js +0 -5
- package/lib/table/types.js +0 -5
- package/lib/tabs/types.js +0 -5
- package/lib/toolbar/types.js +0 -5
- package/lib/tooltip/types.js +0 -5
- package/lib/treetable/types.d.js +0 -5
- package/lib/treeview/types.js +0 -5
- package/lib/types.d-b477e076.d.ts +0 -47
- package/lib/uitour/types.js +0 -5
|
@@ -1,121 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { __exportAll as e, __toESM as t } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { require_lodash as n } from "../../node_modules/lodash/lodash.js";
|
|
3
|
+
import { mergeRefs as r } from "../../form2/helpers.js";
|
|
4
|
+
import { useIMask as i } from "../../node_modules/react-imask/esm/hook.js";
|
|
5
|
+
import "../../node_modules/react-imask/esm/index.js";
|
|
6
|
+
import { LeftSlot as a, RightSlot as o } from "../slot/index.js";
|
|
7
|
+
import { Input as s } from "../textfield/index.js";
|
|
8
|
+
import { Decimal as c } from "./decimal.js";
|
|
9
|
+
import { Currency as l } from "./currency.js";
|
|
10
|
+
import { convertToSafeNumber as u } from "./helpers.js";
|
|
11
|
+
import { forwardRef as d, useCallback as f, useEffect as p, useRef as m } from "react";
|
|
12
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
13
|
+
//#region src/lib/inputs2/numberfield/index.tsx
|
|
14
|
+
var g = /* @__PURE__ */ e({
|
|
15
|
+
Currency: () => l,
|
|
16
|
+
Decimal: () => c,
|
|
17
|
+
Input: () => v,
|
|
18
|
+
LeftSlot: () => a,
|
|
19
|
+
RightSlot: () => o
|
|
20
|
+
}), _ = /* @__PURE__ */ t(n(), 1), v = d((e, t) => {
|
|
21
|
+
let { min: n = void 0, max: a = void 0, to: o = void 0, from: c = void 0, enum: l = void 0, onChange: d = null, onBlur: g = null, allowNegative: v = !0, returnAsString: y = !1, textAlign: b = "right", children: x = null, ...S } = e, C = m(null), { value: w, setValue: T, unmaskedValue: E } = i({
|
|
22
|
+
mask: Number,
|
|
23
|
+
scale: 0,
|
|
24
|
+
enum: l,
|
|
25
|
+
min: _.default.isNil(n) ? v ? void 0 : 0 : n,
|
|
26
|
+
max: a,
|
|
27
|
+
to: o,
|
|
28
|
+
from: c
|
|
29
|
+
}, {
|
|
30
|
+
ref: C,
|
|
31
|
+
onAccept: (t, n, r) => {
|
|
32
|
+
let i = u(t, y);
|
|
33
|
+
d?.({
|
|
34
|
+
...r,
|
|
35
|
+
target: {
|
|
36
|
+
...r?.target,
|
|
37
|
+
name: e?.name,
|
|
38
|
+
value: i
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}), D = f((t) => {
|
|
43
|
+
if (!_.default.isNil(n)) {
|
|
44
|
+
let r = u(E, !1);
|
|
45
|
+
(_.default.isNaN(r) || r < n) && (T(_.default.toString(n)), d?.({
|
|
46
|
+
...t,
|
|
47
|
+
target: {
|
|
48
|
+
...t?.target,
|
|
49
|
+
name: e?.name,
|
|
50
|
+
value: y ? _.default.toString(n) : n
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
g?.(t);
|
|
55
|
+
}, [
|
|
56
|
+
n,
|
|
57
|
+
E,
|
|
58
|
+
d,
|
|
59
|
+
g,
|
|
60
|
+
T,
|
|
61
|
+
e.name,
|
|
62
|
+
y
|
|
63
|
+
]);
|
|
64
|
+
return p(() => {
|
|
65
|
+
let t = Number(E || "0");
|
|
66
|
+
!_.default.isNil(e?.value) && (!_.default.isEqual(e?.value, t) || _.default.isEqual(e?.value, 0)) && T(_.default.toString(e?.value));
|
|
67
|
+
}, [e?.value]), /* @__PURE__ */ h(s, {
|
|
68
|
+
...S,
|
|
69
|
+
ref: r(t, C),
|
|
70
|
+
type: "text",
|
|
71
|
+
inputMode: "numeric",
|
|
72
|
+
value: w,
|
|
73
|
+
textAlign: b,
|
|
74
|
+
onBlur: D,
|
|
75
|
+
onChange: () => {},
|
|
76
|
+
children: x
|
|
77
|
+
});
|
|
24
78
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
31
|
-
var _react = _interopRequireDefault(require("react"));
|
|
32
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
33
|
-
var _reactImask = require("react-imask");
|
|
34
|
-
var _2 = require("..");
|
|
35
|
-
var _helpers = require("../../form2/helpers");
|
|
36
|
-
var _slot = require("../slot");
|
|
37
|
-
var _decimal = require("./decimal");
|
|
38
|
-
var _currency = require("./currency");
|
|
39
|
-
var _helpers2 = require("./helpers");
|
|
40
|
-
const _excluded = ["min", "max", "to", "from", "enum", "onChange", "onBlur", "allowNegative", "returnAsString", "textAlign", "children"];
|
|
41
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
42
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
43
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
46
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
47
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
48
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
49
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
50
|
-
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
51
|
-
const {
|
|
52
|
-
min = undefined,
|
|
53
|
-
max = undefined,
|
|
54
|
-
to = undefined,
|
|
55
|
-
from = undefined,
|
|
56
|
-
enum: interval = undefined,
|
|
57
|
-
onChange = null,
|
|
58
|
-
onBlur = null,
|
|
59
|
-
allowNegative = true,
|
|
60
|
-
returnAsString = false,
|
|
61
|
-
textAlign = 'right',
|
|
62
|
-
children = null
|
|
63
|
-
} = props,
|
|
64
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
65
|
-
const numberInputRef = _react.default.useRef(null);
|
|
66
|
-
const {
|
|
67
|
-
value: maskedValue,
|
|
68
|
-
setValue: setMaskedValue,
|
|
69
|
-
unmaskedValue
|
|
70
|
-
} = (0, _reactImask.useIMask)({
|
|
71
|
-
mask: Number,
|
|
72
|
-
scale: 0,
|
|
73
|
-
enum: interval,
|
|
74
|
-
min: allowNegative ? undefined : 0,
|
|
75
|
-
max,
|
|
76
|
-
to,
|
|
77
|
-
from
|
|
78
|
-
}, {
|
|
79
|
-
ref: numberInputRef,
|
|
80
|
-
onAccept: (value, __, event) => {
|
|
81
|
-
const parsedValue = (0, _helpers2.convertToSafeNumber)(value, returnAsString);
|
|
82
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
|
|
83
|
-
target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
|
|
84
|
-
name: props === null || props === void 0 ? void 0 : props.name,
|
|
85
|
-
value: parsedValue
|
|
86
|
-
})
|
|
87
|
-
}));
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
const handleBlur = _react.default.useCallback(event => {
|
|
91
|
-
if (!_lodash.default.isNil(min)) {
|
|
92
|
-
const currentValue = (0, _helpers2.convertToSafeNumber)(unmaskedValue, false);
|
|
93
|
-
if (_lodash.default.isNaN(currentValue) || currentValue < min) {
|
|
94
|
-
setMaskedValue(_lodash.default.toString(min));
|
|
95
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
|
|
96
|
-
target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
|
|
97
|
-
name: props === null || props === void 0 ? void 0 : props.name,
|
|
98
|
-
value: returnAsString ? _lodash.default.toString(min) : min
|
|
99
|
-
})
|
|
100
|
-
}));
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
104
|
-
}, [min, unmaskedValue, onChange, onBlur, props === null || props === void 0 ? void 0 : props.name, returnAsString]);
|
|
105
|
-
_react.default.useEffect(() => {
|
|
106
|
-
const floatUnmaskedValue = Number(unmaskedValue || '0');
|
|
107
|
-
if (!_lodash.default.isNil(props === null || props === void 0 ? void 0 : props.value) && (!_lodash.default.isEqual(props === null || props === void 0 ? void 0 : props.value, floatUnmaskedValue) || _lodash.default.isEqual(props === null || props === void 0 ? void 0 : props.value, 0))) {
|
|
108
|
-
setMaskedValue(_lodash.default.toString(props === null || props === void 0 ? void 0 : props.value));
|
|
109
|
-
}
|
|
110
|
-
}, [props === null || props === void 0 ? void 0 : props.value]);
|
|
111
|
-
return /*#__PURE__*/_react.default.createElement(_2.TextField.Input, _extends({}, rest, {
|
|
112
|
-
ref: (0, _helpers.mergeRefs)(ref, numberInputRef),
|
|
113
|
-
type: "text",
|
|
114
|
-
inputMode: "numeric",
|
|
115
|
-
value: maskedValue,
|
|
116
|
-
textAlign: textAlign,
|
|
117
|
-
onBlur: handleBlur,
|
|
118
|
-
onChange: () => {}
|
|
119
|
-
}), children);
|
|
120
|
-
});
|
|
121
|
-
Input.displayName = 'NumberFieldInput';
|
|
79
|
+
v.displayName = "NumberFieldInput";
|
|
80
|
+
//#endregion
|
|
81
|
+
export { l as Currency, c as Decimal, v as Input, a as LeftSlot, o as RightSlot, g as numberfield_exports };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/lib/inputs2/numberfield/index.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useRef, type ChangeEvent } from 'react';\nimport _ from 'lodash';\nimport { useIMask } from 'react-imask';\nimport { Decimal } from './decimal';\nimport { Currency } from './currency';\nimport { convertToSafeNumber } from './helpers';\nimport { TextField } from '..';\nimport { LeftSlot, RightSlot } from '../slot';\nimport { mergeRefs } from '../../form2/helpers';\nimport type { NumberFieldInputProps, DecimalFieldInputProps, CurrencyFieldInputProps } from './types';\n\nconst Input = forwardRef<HTMLInputElement, NumberFieldInputProps>((props, ref) => {\n const {\n min = undefined, max = undefined, to = undefined, from = undefined, enum: interval = undefined,\n onChange = null, onBlur = null, allowNegative = true, returnAsString = false, textAlign = 'right', \n children = null, ...rest\n } = props;\n const numberInputRef = useRef<HTMLInputElement | null>(null);\n\n const { value: maskedValue, setValue: setMaskedValue, unmaskedValue } = useIMask({\n mask: Number,\n scale: 0,\n enum: interval,\n min: !_.isNil(min) ? min : (allowNegative ? undefined : 0),\n max,\n to,\n from,\n }, {\n ref: numberInputRef,\n onAccept: (value, __, event) => {\n const parsedValue = convertToSafeNumber(value, returnAsString);\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: parsedValue as any,\n },\n } as ChangeEvent<HTMLInputElement>);\n },\n });\n\n /**\n * Função sobrescrevendo o evento onBlur para tratar o valor mínimo ao sair do campo, \n * garantindo que o valor não seja menor que o mínimo definido.\n */\n const handleBlur = useCallback((event: React.FocusEvent<HTMLInputElement>) => {\n if (!_.isNil(min)) {\n const currentValue = convertToSafeNumber(unmaskedValue, false) as number;\n if (_.isNaN(currentValue) || currentValue < min) {\n setMaskedValue(_.toString(min));\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: (returnAsString ? _.toString(min) : min) as any,\n },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n }\n onBlur?.(event);\n }, [min, unmaskedValue, onChange, onBlur, setMaskedValue, props.name, returnAsString]);\n\n useEffect(() => {\n const floatUnmaskedValue = Number(unmaskedValue || '0');\n if (!_.isNil(props?.value) && (!_.isEqual(props?.value,\n floatUnmaskedValue) || _.isEqual(props?.value, 0))) {\n setMaskedValue(_.toString(props?.value));\n }\n }, [props?.value]);\n\n return (\n <TextField.Input\n {...rest}\n ref={mergeRefs(ref, numberInputRef)}\n type=\"text\"\n inputMode=\"numeric\"\n value={maskedValue}\n textAlign={textAlign}\n onBlur={handleBlur}\n onChange={() => { }}>\n {children}\n </TextField.Input>\n );\n});\n\nInput.displayName = 'NumberFieldInput';\n\nexport { Input, Decimal, Currency, LeftSlot, RightSlot };\nexport type { \n NumberFieldInputProps, \n DecimalFieldInputProps, \n CurrencyFieldInputProps, \n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;mCAWM,IAAQ,GAAqD,GAAO,MAAQ;CAChF,IAAM,EACJ,SAAM,KAAA,GAAW,SAAM,KAAA,GAAW,QAAK,KAAA,GAAW,UAAO,KAAA,GAAW,MAAM,IAAW,KAAA,GACrF,cAAW,MAAM,YAAS,MAAM,mBAAgB,IAAM,oBAAiB,IAAO,eAAY,SAC1F,cAAW,MAAM,GAAG,MAClB,GACE,IAAiB,EAAgC,KAAK,EAEtD,EAAE,OAAO,GAAa,UAAU,GAAgB,qBAAkB,EAAS;EAC/E,MAAM;EACN,OAAO;EACP,MAAM;EACN,KAAM,EAAA,QAAE,MAAM,EAAI,GAAU,IAAgB,KAAA,IAAY,IAAnC;EACrB;EACA;EACA;EACD,EAAE;EACD,KAAK;EACL,WAAW,GAAO,GAAI,MAAU;GAC9B,IAAM,IAAc,EAAoB,GAAO,EAAe;AAC9D,OAAW;IACT,GAAG;IACH,QAAQ;KACN,GAAG,GAAO;KACV,MAAM,GAAO;KACb,OAAO;;IAEV,CAAkC;;EAEtC,CAAC,EAMI,IAAa,GAAa,MAA8C;AAC5E,MAAI,CAAC,EAAA,QAAE,MAAM,EAAI,EAAE;GACjB,IAAM,IAAe,EAAoB,GAAe,GAAM;AAC9D,IAAI,EAAA,QAAE,MAAM,EAAa,IAAI,IAAe,OAC1C,EAAe,EAAA,QAAE,SAAS,EAAI,CAAC,EAC/B,IAAW;IACT,GAAG;IACH,QAAQ;KACN,GAAG,GAAO;KACV,MAAM,GAAO;KACb,OAAQ,IAAiB,EAAA,QAAE,SAAS,EAAI,GAAG;;IAE9C,CAAwC;;AAG7C,MAAS,EAAM;IACd;EAAC;EAAK;EAAe;EAAU;EAAQ;EAAgB,EAAM;EAAM;EAAe,CAAC;AAUtF,QARA,QAAgB;EACd,IAAM,IAAqB,OAAO,KAAiB,IAAI;AACvD,EAAI,CAAC,EAAA,QAAE,MAAM,GAAO,MAAM,KAAK,CAAC,EAAA,QAAE,QAAQ,GAAO,OAC/C,EAAmB,IAAI,EAAA,QAAE,QAAQ,GAAO,OAAO,EAAE,KACjD,EAAe,EAAA,QAAE,SAAS,GAAO,MAAM,CAAC;IAEzC,CAAC,GAAO,MAAM,CAAC,EAGhB,kBAAC,GAAD;EACE,GAAI;EACJ,KAAK,EAAU,GAAK,EAAe;EACnC,MAAK;EACL,WAAU;EACV,OAAO;EACI;EACX,QAAQ;EACR,gBAAgB;EACf;EACe,CAAA;EAEpB;AAEF,EAAM,cAAc"}
|
|
@@ -1,37 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import '../slot/index.js';
|
|
5
|
-
import '../textfield/base.js';
|
|
6
|
-
import '../../tooltip/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
import '../../@types/Align.js';
|
|
9
|
-
import '../../@types/ColorStyles.js';
|
|
10
|
-
|
|
11
|
-
type BaseInputProps = Omit<TextFieldInputProps, 'type' | 'max' | 'min' | 'enum'>;
|
|
12
|
-
type BaseMaskNumberInputProps = {
|
|
1
|
+
import { TextFieldInputProps } from '../textfield';
|
|
2
|
+
export type BaseInputProps = Omit<TextFieldInputProps, 'type' | 'max' | 'min' | 'enum'>;
|
|
3
|
+
export type BaseMaskNumberInputProps = {
|
|
13
4
|
min?: number;
|
|
14
5
|
max?: number;
|
|
15
6
|
to?: number;
|
|
16
7
|
from?: number;
|
|
17
8
|
enum?: string[];
|
|
18
9
|
};
|
|
19
|
-
interface NumberFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
10
|
+
export interface NumberFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
20
11
|
allowNegative?: boolean;
|
|
21
12
|
returnAsString?: boolean;
|
|
22
13
|
}
|
|
23
|
-
interface DecimalFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
14
|
+
export interface DecimalFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
24
15
|
scale?: number;
|
|
25
16
|
allowNegative?: boolean;
|
|
26
17
|
normalizeZeros?: boolean;
|
|
27
18
|
padFractionalZeros?: boolean;
|
|
28
19
|
}
|
|
29
|
-
interface CurrencyFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
20
|
+
export interface CurrencyFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
30
21
|
currencySymbol?: string;
|
|
31
22
|
scale?: number;
|
|
32
23
|
allowNegative?: boolean;
|
|
33
24
|
normalizeZeros?: boolean;
|
|
34
25
|
padFractionalZeros?: boolean;
|
|
35
26
|
}
|
|
36
|
-
|
|
37
|
-
export { BaseInputProps, BaseMaskNumberInputProps, CurrencyFieldInputProps, DecimalFieldInputProps, NumberFieldInputProps };
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { RadioFieldInputProps } from './types
|
|
3
|
-
|
|
4
|
-
import '../../@types/Align.js';
|
|
5
|
-
import '../../@types/ColorStyles.js';
|
|
6
|
-
import '../../tooltip/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
import '../../@types/PermissionAttr.js';
|
|
9
|
-
|
|
10
|
-
declare const InputBase: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "src" | "alt" | "max" | "min" | "fieldId" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
11
|
-
|
|
12
|
-
export { InputBase };
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RadioFieldInputProps } from './types';
|
|
3
|
+
export declare const InputBase: React.ForwardRefExoticComponent<Omit<RadioFieldInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,156 +1,113 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
readOnly: isReadOnly,
|
|
109
|
-
disabled: isDisabled || isReadOnly,
|
|
110
|
-
className: "input ".concat(customClass),
|
|
111
|
-
tabIndex: !isReadOnly ? 0 : -1,
|
|
112
|
-
placeholder: rest.placeholder,
|
|
113
|
-
"data-state-size": size,
|
|
114
|
-
"data-state-error": hasValidationErrors,
|
|
115
|
-
"data-state-read-only": isReadOnly,
|
|
116
|
-
"data-state-text-align": textAlign,
|
|
117
|
-
"data-state-skeletonize": skeletonize,
|
|
118
|
-
onClick: handleOnClick,
|
|
119
|
-
onChange: handleOnChange
|
|
120
|
-
})), hasLabel && /*#__PURE__*/_react.default.createElement("span", {
|
|
121
|
-
className: "root-label ".concat(customClassLabel),
|
|
122
|
-
"data-state-skeletonize": skeletonize
|
|
123
|
-
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
124
|
-
className: "label",
|
|
125
|
-
title: label,
|
|
126
|
-
htmlFor: inputId,
|
|
127
|
-
"data-state-disabled": isDisabled,
|
|
128
|
-
"data-state-read-only": isReadOnly,
|
|
129
|
-
"data-state-input-required": props.required,
|
|
130
|
-
"data-state-label-uppercase": labelUppercase
|
|
131
|
-
}, label), hasHintMessages && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
132
|
-
customClass: "label-popover",
|
|
133
|
-
theme: themePopover,
|
|
134
|
-
align: popoverAlign,
|
|
135
|
-
iconColor: "#03bde2"
|
|
136
|
-
}, hint))), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
137
|
-
customClass: "hint",
|
|
138
|
-
description: hint,
|
|
139
|
-
disabled: isDisabled,
|
|
140
|
-
skeletonize: skeletonize,
|
|
141
|
-
visible: hasHintMessages
|
|
142
|
-
}), hasValidationErrors && /*#__PURE__*/_react.default.createElement("span", {
|
|
143
|
-
"data-testid": "test-radio-field-list-errors",
|
|
144
|
-
className: "error",
|
|
145
|
-
"data-state-skeletonize": skeletonize,
|
|
146
|
-
"aria-describedby": String(props.name).concat('-errors')
|
|
147
|
-
}, errors === null || errors === void 0 ? void 0 : errors.map((error, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
148
|
-
key: "".concat(index + 1, "-").concat(error)
|
|
149
|
-
}, error, "\xA0"))))), /*#__PURE__*/_react.default.createElement(Tooltip.Tooltip, {
|
|
150
|
-
targetRef: inputContainerRef,
|
|
151
|
-
text: tooltip,
|
|
152
|
-
width: tooltipWidth,
|
|
153
|
-
position: tooltipPosition
|
|
154
|
-
}));
|
|
1
|
+
import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import t from "../../node_modules/uuid/dist/v1.js";
|
|
3
|
+
import { Tooltip as n } from "../../tooltip/index.js";
|
|
4
|
+
import { require_lodash as r } from "../../node_modules/lodash/lodash.js";
|
|
5
|
+
import { OPTIONS_ON_DENIED as i, actionsOnPermissionDenied as a } from "../../permissionValidations.js";
|
|
6
|
+
import o from "../../popover/index.js";
|
|
7
|
+
import s from "../../hint/index.js";
|
|
8
|
+
import '../../assets/styles/radiofield.css';/* empty css */
|
|
9
|
+
import c from "react";
|
|
10
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
|
+
//#region src/lib/inputs2/radiofield/base.tsx
|
|
12
|
+
var d = /* @__PURE__ */ e(r(), 1), f = [
|
|
13
|
+
i.disabled,
|
|
14
|
+
i.unvisible,
|
|
15
|
+
i.readOnly,
|
|
16
|
+
i.hideContent
|
|
17
|
+
], p = c.forwardRef((e, r) => {
|
|
18
|
+
let { label: i, errors: p, tooltip: m, tooltipPosition: h, tooltipWidth: g, hint: _, size: v = "medium", onDeniedActions: y = void 0, permissionAttr: b = void 0, labelUppercase: x = !1, customClassLabel: S = "", customClassInputContainer: C = "", customClass: w = "", customClassWrapper: T = "", textAlign: E = "left", skeletonize: D = !1, hintPosition: O = "below", themePopover: k = "light", popoverAlign: A = "left", ...j } = e, M = c.useMemo(() => y || a(f, b), [y, b]), { hideContent: N, unvisible: P } = M, F = c.useRef(null), I = e?.id || e?.fieldId || t(), L = !d.default.isEmpty(e?.label), R = !!(e.readOnly || M.readOnly), z = !!(e.disabled || M.disabled), B = !!_?.length, V = !!p?.length, H = e?.checked || d.default.isEqual(e?.value, e?.fieldId), U = (t) => {
|
|
19
|
+
if (R) {
|
|
20
|
+
t.preventDefault(), t.stopPropagation();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
let n = {
|
|
24
|
+
...t,
|
|
25
|
+
target: {
|
|
26
|
+
...t.target,
|
|
27
|
+
value: e?.fieldId
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
j.onChange?.(n);
|
|
31
|
+
}, W = (e) => {
|
|
32
|
+
if (R) {
|
|
33
|
+
e.preventDefault(), e.stopPropagation();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
j.onClick?.(e);
|
|
37
|
+
};
|
|
38
|
+
return P || N ? null : /* @__PURE__ */ u(c.Fragment, { children: [/* @__PURE__ */ u("div", {
|
|
39
|
+
"data-testid": "test-radio-field-root",
|
|
40
|
+
"data-state-error": V,
|
|
41
|
+
className: `radio-field-root ${T}`,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ u("div", {
|
|
44
|
+
ref: F,
|
|
45
|
+
"data-state-skeletonize": D,
|
|
46
|
+
className: `container ${C}`,
|
|
47
|
+
children: [/* @__PURE__ */ l("input", {
|
|
48
|
+
"data-testid": "test-radio-field-input",
|
|
49
|
+
...d.default.omit(j, ["fieldId"]),
|
|
50
|
+
ref: r,
|
|
51
|
+
id: I,
|
|
52
|
+
type: "radio",
|
|
53
|
+
checked: H,
|
|
54
|
+
readOnly: R,
|
|
55
|
+
disabled: z || R,
|
|
56
|
+
className: `input ${w}`,
|
|
57
|
+
tabIndex: R ? -1 : 0,
|
|
58
|
+
placeholder: j.placeholder,
|
|
59
|
+
"data-state-size": v,
|
|
60
|
+
"data-state-error": V,
|
|
61
|
+
"data-state-read-only": R,
|
|
62
|
+
"data-state-text-align": E,
|
|
63
|
+
"data-state-skeletonize": D,
|
|
64
|
+
onClick: W,
|
|
65
|
+
onChange: U
|
|
66
|
+
}), L && /* @__PURE__ */ u("span", {
|
|
67
|
+
className: `root-label ${S}`,
|
|
68
|
+
"data-state-skeletonize": D,
|
|
69
|
+
children: [/* @__PURE__ */ l("label", {
|
|
70
|
+
className: "label",
|
|
71
|
+
title: i,
|
|
72
|
+
htmlFor: I,
|
|
73
|
+
"data-state-disabled": z,
|
|
74
|
+
"data-state-read-only": R,
|
|
75
|
+
"data-state-input-required": e.required,
|
|
76
|
+
"data-state-label-uppercase": x,
|
|
77
|
+
children: i
|
|
78
|
+
}), B && O === "onLabelRight" && !D && /* @__PURE__ */ l(o, {
|
|
79
|
+
customClass: "label-popover",
|
|
80
|
+
theme: k,
|
|
81
|
+
align: A,
|
|
82
|
+
iconColor: "#03bde2",
|
|
83
|
+
children: _
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
}),
|
|
87
|
+
O === "below" && /* @__PURE__ */ l(s, {
|
|
88
|
+
customClass: "hint",
|
|
89
|
+
description: _,
|
|
90
|
+
disabled: z,
|
|
91
|
+
skeletonize: D,
|
|
92
|
+
visible: B
|
|
93
|
+
}),
|
|
94
|
+
V && /* @__PURE__ */ l("span", {
|
|
95
|
+
"data-testid": "test-radio-field-list-errors",
|
|
96
|
+
className: "error",
|
|
97
|
+
"data-state-skeletonize": D,
|
|
98
|
+
"aria-describedby": String(e.name).concat("-errors"),
|
|
99
|
+
children: p?.map((e, t) => /* @__PURE__ */ u(c.Fragment, { children: [e, " "] }, `${t + 1}-${e}`))
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
}), /* @__PURE__ */ l(n, {
|
|
103
|
+
targetRef: F,
|
|
104
|
+
text: m,
|
|
105
|
+
width: g,
|
|
106
|
+
position: h
|
|
107
|
+
})] });
|
|
155
108
|
});
|
|
156
|
-
|
|
109
|
+
p.displayName = "RadioFieldInputBase";
|
|
110
|
+
//#endregion
|
|
111
|
+
export { p as InputBase };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","names":[],"sources":["../../../src/lib/inputs2/radiofield/base.tsx"],"sourcesContent":["import '../../assets/styles/radiofield.scss';\n\nimport React from 'react';\nimport _ from 'lodash';\nimport { v1 as uuid } from 'uuid';\nimport Hint from '../../hint';\nimport Popover from '../../popover';\nimport * as Tooltip from '../../tooltip';\nimport type { OnDenied } from '../../@types/PermissionAttr';\nimport { actionsOnPermissionDenied, OPTIONS_ON_DENIED } from '../../permissionValidations';\nimport type { RadioFieldInputProps } from './types';\n\nconst options = [\n OPTIONS_ON_DENIED.disabled,\n OPTIONS_ON_DENIED.unvisible,\n OPTIONS_ON_DENIED.readOnly,\n OPTIONS_ON_DENIED.hideContent,\n];\nexport const InputBase = React.forwardRef<HTMLInputElement, RadioFieldInputProps>((props, ref) => {\n const { \n label, errors, tooltip, tooltipPosition, tooltipWidth, hint, size = 'medium', onDeniedActions = undefined, \n permissionAttr = undefined, labelUppercase = false, customClassLabel = '', customClassInputContainer = '', customClass = '',\n customClassWrapper = '', textAlign = 'left', skeletonize = false, hintPosition = 'below', themePopover = 'light', \n popoverAlign = 'left', ...rest\n } = props;\n const onDenied: OnDenied = React.useMemo(() => {\n return onDeniedActions || actionsOnPermissionDenied(options, permissionAttr);\n }, [onDeniedActions, permissionAttr]);\n const { hideContent, unvisible } = onDenied;\n const inputContainerRef = React.useRef<HTMLInputElement | null>(null);\n\n const inputId = props?.id || props?.fieldId || uuid();\n const hasLabel = !_.isEmpty(props?.label);\n const isReadOnly = Boolean(props.readOnly || onDenied.readOnly);\n const isDisabled = Boolean(props.disabled || onDenied.disabled);\n const hasHintMessages = Boolean(hint?.length);\n const hasValidationErrors = Boolean(errors?.length);\n const isChecked = props?.checked || _.isEqual(props?.value, props?.fieldId);\n\n const handleOnChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n if (isReadOnly) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n const syntheticEvent = {\n ...event,\n target: {\n ...event.target,\n value: props?.fieldId,\n },\n } as typeof event;\n rest.onChange?.(syntheticEvent);\n };\n \n const handleOnClick = (event: React.MouseEvent<HTMLInputElement>) => {\n if (isReadOnly) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n rest.onClick?.(event);\n };\n\n if (unvisible || hideContent) return null;\n\n return (\n <React.Fragment>\n <div\n data-testid=\"test-radio-field-root\"\n data-state-error={hasValidationErrors}\n className={`radio-field-root ${customClassWrapper}`}>\n <div\n ref={inputContainerRef}\n data-state-skeletonize={skeletonize}\n className={`container ${customClassInputContainer}`}>\n <input\n data-testid=\"test-radio-field-input\"\n {..._.omit(rest, ['fieldId'])}\n ref={ref}\n id={inputId}\n type=\"radio\"\n checked={isChecked}\n readOnly={isReadOnly}\n disabled={isDisabled || isReadOnly}\n className={`input ${customClass}`}\n tabIndex={!isReadOnly ? 0 : -1}\n placeholder={rest.placeholder}\n data-state-size={size}\n data-state-error={hasValidationErrors}\n data-state-read-only={isReadOnly}\n data-state-text-align={textAlign}\n data-state-skeletonize={skeletonize}\n onClick={handleOnClick}\n onChange={handleOnChange} />\n {hasLabel && (\n <span\n className={`root-label ${customClassLabel}`}\n data-state-skeletonize={skeletonize}>\n <label\n className=\"label\"\n title={label}\n htmlFor={inputId}\n data-state-disabled={isDisabled}\n data-state-read-only={isReadOnly}\n data-state-input-required={props.required}\n data-state-label-uppercase={labelUppercase}>\n {label}\n </label>\n {hasHintMessages && hintPosition === 'onLabelRight' && !skeletonize && (\n <Popover\n customClass=\"label-popover\"\n theme={themePopover}\n align={popoverAlign}\n iconColor=\"#03bde2\">\n {hint}\n </Popover>\n )}\n </span>\n )}\n </div>\n {hintPosition === 'below' && (\n <Hint\n customClass=\"hint\"\n description={hint}\n disabled={isDisabled}\n skeletonize={skeletonize}\n visible={hasHintMessages} />\n )}\n {hasValidationErrors && (\n <span\n data-testid=\"test-radio-field-list-errors\"\n className=\"error\"\n data-state-skeletonize={skeletonize}\n aria-describedby={String(props.name).concat('-errors')}>\n {errors?.map((error, index) => (\n <React.Fragment key={`${index + 1}-${error}`}>\n {error}\n {' '}\n </React.Fragment>\n ))}\n </span>\n )}\n </div>\n <Tooltip.Tooltip\n targetRef={inputContainerRef}\n text={tooltip}\n width={tooltipWidth}\n position={tooltipPosition} />\n </React.Fragment>\n );\n});\n\nInputBase.displayName = 'RadioFieldInputBase';\n"],"mappings":";;;;;;;;;;;mCAYM,IAAU;CACd,EAAkB;CAClB,EAAkB;CAClB,EAAkB;CAClB,EAAkB;CACnB,EACY,IAAY,EAAM,YAAoD,GAAO,MAAQ;CAChG,IAAM,EACJ,UAAO,WAAQ,YAAS,oBAAiB,iBAAc,SAAM,UAAO,UAAU,qBAAkB,KAAA,GAChG,oBAAiB,KAAA,GAAW,oBAAiB,IAAO,sBAAmB,IAAI,+BAA4B,IAAI,iBAAc,IACzH,wBAAqB,IAAI,eAAY,QAAQ,iBAAc,IAAO,kBAAe,SAAS,kBAAe,SACzG,kBAAe,QAAQ,GAAG,MACxB,GACE,IAAqB,EAAM,cACxB,KAAmB,EAA0B,GAAS,EAAe,EAC3E,CAAC,GAAiB,EAAe,CAAC,EAC/B,EAAE,gBAAa,iBAAc,GAC7B,IAAoB,EAAM,OAAgC,KAAK,EAE/D,IAAU,GAAO,MAAM,GAAO,WAAW,GAAM,EAC/C,IAAW,CAAC,EAAA,QAAE,QAAQ,GAAO,MAAM,EACnC,IAAa,GAAQ,EAAM,YAAY,EAAS,WAChD,IAAa,GAAQ,EAAM,YAAY,EAAS,WAChD,IAAkB,EAAQ,GAAM,QAChC,IAAsB,EAAQ,GAAQ,QACtC,IAAY,GAAO,WAAW,EAAA,QAAE,QAAQ,GAAO,OAAO,GAAO,QAAQ,EAErE,KAAkB,MAA+C;AACrE,MAAI,GAAY;AAEd,GADA,EAAM,gBAAgB,EACtB,EAAM,iBAAiB;AACvB;;EAEF,IAAM,IAAiB;GACrB,GAAG;GACH,QAAQ;IACN,GAAG,EAAM;IACT,OAAO,GAAO;;GAEjB;AACD,IAAK,WAAW,EAAe;IAG3B,KAAiB,MAA8C;AACnE,MAAI,GAAY;AAEd,GADA,EAAM,gBAAgB,EACtB,EAAM,iBAAiB;AACvB;;AAEF,IAAK,UAAU,EAAM;;AAKvB,QAFI,KAAa,IAAoB,OAGnC,kBAAC,EAAM,UAAP,EAAA,UAAA,CACE,kBAAC,OAAD;EACE,eAAY;EACZ,oBAAkB;EAClB,WAAW,oBAAoB;YAHjC;GAIE,kBAAC,OAAD;IACE,KAAK;IACL,0BAAwB;IACxB,WAAW,aAAa;cAH1B,CAIE,kBAAC,SAAD;KACE,eAAY;KACZ,GAAI,EAAA,QAAE,KAAK,GAAM,CAAC,UAAU,CAAC;KACxB;KACL,IAAI;KACJ,MAAK;KACL,SAAS;KACT,UAAU;KACV,UAAU,KAAc;KACxB,WAAW,SAAS;KACpB,UAAW,IAAiB,KAAJ;KACxB,aAAa,EAAK;KAClB,mBAAiB;KACjB,oBAAkB;KAClB,wBAAsB;KACtB,yBAAuB;KACvB,0BAAwB;KACxB,SAAS;KACT,UAAU;KAAkB,CAAA,EAC7B,KACC,kBAAC,QAAD;KACE,WAAW,cAAc;KACzB,0BAAwB;eAF1B,CAGE,kBAAC,SAAD;MACE,WAAU;MACV,OAAO;MACP,SAAS;MACT,uBAAqB;MACrB,wBAAsB;MACtB,6BAA2B,EAAM;MACjC,8BAA4B;gBAC3B;MACK,CAAA,EACP,KAAmB,MAAiB,kBAAkB,CAAC,KACtD,kBAAC,GAAD;MACE,aAAY;MACZ,OAAO;MACP,OAAO;MACP,WAAU;gBACT;MACO,CAAA,CAAA;;;GAKjB,MAAiB,WAChB,kBAAC,GAAD;IACE,aAAY;IACZ,aAAa;IACb,UAAU;IACG;IACb,SAAS;IAAmB,CAAA;GAE/B,KACC,kBAAC,QAAD;IACE,eAAY;IACZ,WAAU;IACV,0BAAwB;IACxB,oBAAkB,OAAO,EAAM,KAAK,CAAC,OAAO,UAAU;cACrD,GAAQ,KAAK,GAAO,MACnB,kBAAC,EAAM,UAAP,EAAA,UAAA,CACG,GACA,IAAA,EACc,EAHI,GAAG,IAAQ,EAAA,GAAK,IAGpB,CAAA;IAEd,CAAA;GAAA;KAGX,kBAAC,GAAD;EACE,WAAW;EACX,MAAM;EACN,OAAO;EACP,UAAU;EAAmB,CAAA,CAAA,EAChB,CAAA;EAEnB;AAEF,EAAU,cAAc"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import '../../@types/ColorStyles.js';
|
|
7
|
-
import '../../tooltip/types.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
9
|
-
import '../../@types/PermissionAttr.js';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RadioFieldInputProps } from './types';
|
|
3
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<RadioFieldInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
4
|
+
export { Input };
|
|
5
|
+
export type { RadioFieldInputProps };
|