linear-react-components-ui 1.1.27-rc.1 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +347 -85
- package/lib/@types/Align.d.ts +0 -4
- package/lib/@types/Align.js +0 -5
- package/lib/@types/ButtonTypes.d.ts +0 -3
- package/lib/@types/ButtonTypes.js +0 -5
- package/lib/@types/ColorStyles.d.ts +0 -4
- package/lib/@types/ColorStyles.js +0 -5
- package/lib/@types/DataCombo.d.ts +0 -3
- package/lib/@types/DataCombo.js +0 -5
- package/lib/@types/Icon.d.ts +0 -5
- package/lib/@types/Icon.js +0 -5
- package/lib/@types/LabelStyles.d.ts +0 -3
- package/lib/@types/LabelStyles.js +0 -5
- package/lib/@types/Period.d.ts +0 -6
- package/lib/@types/Period.js +0 -5
- package/lib/@types/PermissionAttr.d.ts +0 -14
- package/lib/@types/PermissionAttr.js +0 -5
- package/lib/@types/PointerEvents.d.ts +0 -3
- package/lib/@types/PointerEvents.js +0 -5
- package/lib/@types/Position.d.ts +0 -4
- package/lib/@types/Position.js +0 -5
- package/lib/@types/PositionAlert.d.ts +0 -3
- package/lib/@types/PositionAlert.js +0 -5
- package/lib/@types/Size.d.ts +0 -3
- package/lib/@types/Size.js +0 -5
- package/lib/@types/SizePixels.d.ts +0 -3
- package/lib/@types/SizePixels.js +0 -5
- package/lib/@types/StorageMock.d.ts +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/AlertContainer.d.ts +0 -18
- package/lib/alerts/AlertContainer.js +0 -80
- package/lib/alerts/AlertProvider.d.ts +0 -9
- package/lib/alerts/AlertProvider.js +0 -72
- package/lib/alerts/BaseAlert.d.ts +0 -9
- package/lib/alerts/BaseAlert.js +0 -34
- package/lib/alerts/Message.d.ts +0 -9
- package/lib/alerts/Message.js +0 -113
- package/lib/alerts/helpers.d.ts +0 -9
- package/lib/alerts/helpers.js +0 -9
- package/lib/alerts/index.d.ts +0 -11
- package/lib/alerts/index.js +0 -16
- package/lib/alerts/types.d.ts +0 -51
- package/lib/alerts/types.js +0 -5
- package/lib/alerts/withAlert.d.ts +0 -9
- package/lib/alerts/withAlert.js +0 -23
- 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 -183
- 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/index.d.ts +0 -12
- package/lib/avatar/index.js +0 -89
- package/lib/avatar/types.d.ts +0 -31
- package/lib/avatar/types.js +0 -5
- package/lib/badge/index.d.ts +0 -6
- package/lib/badge/index.js +0 -30
- package/lib/badge/types.d.ts +0 -13
- package/lib/badge/types.js +0 -5
- package/lib/buttons/ActivateButton.d.ts +0 -12
- package/lib/buttons/ActivateButton.js +0 -14
- package/lib/buttons/AddButton.d.ts +0 -12
- package/lib/buttons/AddButton.js +0 -18
- package/lib/buttons/Button.d.ts +0 -15
- package/lib/buttons/Button.js +0 -22
- package/lib/buttons/ButtonGroups.d.ts +0 -8
- package/lib/buttons/ButtonGroups.js +0 -17
- package/lib/buttons/CancelButton.d.ts +0 -12
- package/lib/buttons/CancelButton.js +0 -23
- package/lib/buttons/DangerButton.d.ts +0 -12
- package/lib/buttons/DangerButton.js +0 -23
- package/lib/buttons/DefaultButton.d.ts +0 -15
- package/lib/buttons/DefaultButton.js +0 -184
- package/lib/buttons/DestroyButton.d.ts +0 -12
- package/lib/buttons/DestroyButton.js +0 -22
- package/lib/buttons/EditButton.d.ts +0 -12
- package/lib/buttons/EditButton.js +0 -14
- package/lib/buttons/InactivateButton.d.ts +0 -12
- package/lib/buttons/InactivateButton.js +0 -14
- package/lib/buttons/InfoButton.d.ts +0 -12
- package/lib/buttons/InfoButton.js +0 -23
- package/lib/buttons/PrimaryButton.d.ts +0 -12
- package/lib/buttons/PrimaryButton.js +0 -23
- package/lib/buttons/RestoreButton.d.ts +0 -12
- package/lib/buttons/RestoreButton.js +0 -14
- package/lib/buttons/SaveButton.d.ts +0 -12
- package/lib/buttons/SaveButton.js +0 -23
- package/lib/buttons/SuccessButton.d.ts +0 -12
- package/lib/buttons/SuccessButton.js +0 -23
- package/lib/buttons/WarningButton.d.ts +0 -12
- package/lib/buttons/WarningButton.js +0 -23
- package/lib/buttons/button_container/index.d.ts +0 -12
- package/lib/buttons/button_container/index.js +0 -30
- package/lib/buttons/index.d.ts +0 -27
- package/lib/buttons/index.js +0 -108
- package/lib/buttons/split_button/index.d.ts +0 -12
- package/lib/buttons/split_button/index.js +0 -63
- package/lib/buttons/types.d.ts +0 -50
- package/lib/buttons/types.js +0 -5
- package/lib/calendar/DangerCalendar.d.ts +0 -8
- package/lib/calendar/DangerCalendar.js +0 -18
- package/lib/calendar/InfoCalendar.d.ts +0 -8
- package/lib/calendar/InfoCalendar.js +0 -18
- package/lib/calendar/PrimaryCalendar.d.ts +0 -8
- package/lib/calendar/PrimaryCalendar.js +0 -18
- package/lib/calendar/SuccessCalendar.d.ts +0 -8
- package/lib/calendar/SuccessCalendar.js +0 -18
- package/lib/calendar/WarningCalendar.d.ts +0 -8
- package/lib/calendar/WarningCalendar.js +0 -18
- package/lib/calendar/base/helpers.d.ts +0 -62
- package/lib/calendar/base/helpers.js +0 -117
- package/lib/calendar/base/index.d.ts +0 -8
- package/lib/calendar/base/index.js +0 -206
- package/lib/calendar/index.d.ts +0 -14
- package/lib/calendar/index.js +0 -44
- package/lib/calendar/types.d.ts +0 -30
- package/lib/calendar/types.js +0 -5
- package/lib/checkbox/index.d.ts +0 -13
- package/lib/checkbox/index.js +0 -146
- package/lib/checkbox/types.d.ts +0 -48
- package/lib/checkbox/types.js +0 -5
- package/lib/dialog/Alert.d.ts +0 -9
- package/lib/dialog/Alert.js +0 -32
- package/lib/dialog/Custom.d.ts +0 -9
- package/lib/dialog/Custom.js +0 -55
- package/lib/dialog/Error.d.ts +0 -9
- package/lib/dialog/Error.js +0 -32
- package/lib/dialog/Information.d.ts +0 -9
- package/lib/dialog/Information.js +0 -32
- package/lib/dialog/Question.d.ts +0 -9
- package/lib/dialog/Question.js +0 -63
- package/lib/dialog/Warning.d.ts +0 -9
- package/lib/dialog/Warning.js +0 -32
- package/lib/dialog/base/Content.d.ts +0 -9
- package/lib/dialog/base/Content.js +0 -22
- package/lib/dialog/base/Footer.d.ts +0 -9
- package/lib/dialog/base/Footer.js +0 -12
- package/lib/dialog/base/Header.d.ts +0 -9
- package/lib/dialog/base/Header.js +0 -57
- package/lib/dialog/base/index.d.ts +0 -15
- package/lib/dialog/base/index.js +0 -203
- package/lib/dialog/base/style.js +0 -13
- package/lib/dialog/form/index.d.ts +0 -10
- package/lib/dialog/form/index.js +0 -127
- package/lib/dialog/index.d.ts +0 -16
- package/lib/dialog/index.js +0 -51
- package/lib/dialog/types.d.ts +0 -116
- package/lib/dialog/types.js +0 -5
- package/lib/dialog/wizard/index.d.ts +0 -13
- package/lib/dialog/wizard/index.js +0 -79
- package/lib/dialog/wizard/progressbar.d.ts +0 -14
- package/lib/dialog/wizard/progressbar.js +0 -38
- package/lib/dialog/wizard/step.d.ts +0 -9
- package/lib/dialog/wizard/step.js +0 -22
- package/lib/dialog/wizard/useWizard.d.ts +0 -9
- package/lib/dialog/wizard/useWizard.js +0 -47
- package/lib/drawer/Content.d.ts +0 -10
- package/lib/drawer/Content.js +0 -25
- package/lib/drawer/Drawer.d.ts +0 -10
- package/lib/drawer/Drawer.js +0 -144
- package/lib/drawer/Header.d.ts +0 -10
- package/lib/drawer/Header.js +0 -75
- package/lib/drawer/helpers.d.ts +0 -10
- package/lib/drawer/helpers.js +0 -10
- package/lib/drawer/index.d.ts +0 -12
- package/lib/drawer/index.js +0 -25
- package/lib/drawer/types.d.ts +0 -42
- package/lib/drawer/types.js +0 -5
- package/lib/dropdown/Popup.d.ts +0 -6
- package/lib/dropdown/Popup.js +0 -90
- package/lib/dropdown/helper.d.ts +0 -4
- package/lib/dropdown/helper.js +0 -16
- package/lib/dropdown/types.d.ts +0 -48
- package/lib/dropdown/types.js +0 -5
- package/lib/dropdown/withDropdown.d.ts +0 -10
- package/lib/dropdown/withDropdown.js +0 -92
- package/lib/fieldset/index.d.ts +0 -8
- package/lib/fieldset/index.js +0 -82
- package/lib/fieldset/types.d.ts +0 -30
- package/lib/fieldset/types.js +0 -5
- package/lib/form/Field.d.ts +0 -14
- package/lib/form/Field.js +0 -134
- package/lib/form/FieldArray.d.ts +0 -14
- package/lib/form/FieldArray.js +0 -101
- package/lib/form/FieldNumber.d.ts +0 -14
- package/lib/form/FieldNumber.js +0 -76
- package/lib/form/FieldPeriod.d.ts +0 -14
- package/lib/form/FieldPeriod.js +0 -100
- package/lib/form/helpers.d.ts +0 -19
- package/lib/form/helpers.js +0 -50
- package/lib/form/index.d.ts +0 -18
- package/lib/form/index.js +0 -307
- package/lib/form/types.d.ts +0 -255
- package/lib/form/types.js +0 -5
- package/lib/form/withFieldHOC.d.ts +0 -14
- package/lib/form/withFieldHOC.js +0 -72
- package/lib/form/withFormSecurity.d.ts +0 -15
- package/lib/form/withFormSecurity.js +0 -54
- package/lib/form2/helpers.d.ts +0 -8
- package/lib/form2/helpers.js +0 -41
- package/lib/form2/index.d.ts +0 -9
- package/lib/form2/index.js +0 -36
- package/lib/form2/types.d.ts +0 -129
- package/lib/form2/types.js +0 -5
- package/lib/form2/useForm/index.d.ts +0 -5
- package/lib/form2/useForm/index.js +0 -210
- package/lib/gridlayout/GridCol.d.ts +0 -6
- package/lib/gridlayout/GridCol.js +0 -34
- package/lib/gridlayout/GridRow.d.ts +0 -6
- package/lib/gridlayout/GridRow.js +0 -31
- package/lib/gridlayout/index.d.ts +0 -8
- package/lib/gridlayout/index.js +0 -16
- package/lib/gridlayout/types.d.ts +0 -20
- package/lib/gridlayout/types.js +0 -5
- package/lib/hint/helpers.d.ts +0 -3
- package/lib/hint/helpers.js +0 -21
- package/lib/hint/index.d.ts +0 -7
- package/lib/hint/index.js +0 -30
- package/lib/hint/types.d.ts +0 -14
- package/lib/hint/types.js +0 -5
- package/lib/icons/helper.d.ts +0 -668
- package/lib/icons/helper.js +0 -672
- package/lib/icons/index.d.ts +0 -13
- package/lib/icons/index.js +0 -78
- package/lib/icons/types.d.ts +0 -46
- 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/index.d.ts +0 -40
- package/lib/index.js +0 -69
- package/lib/inputs/base/InputTextBase.d.ts +0 -11
- package/lib/inputs/base/InputTextBase.js +0 -278
- package/lib/inputs/base/helpers.d.ts +0 -17
- package/lib/inputs/base/helpers.js +0 -42
- package/lib/inputs/base/types.d.ts +0 -92
- package/lib/inputs/base/types.js +0 -5
- package/lib/inputs/color/index.d.ts +0 -7
- package/lib/inputs/color/index.js +0 -94
- package/lib/inputs/color/types.d.ts +0 -19
- package/lib/inputs/color/types.js +0 -5
- package/lib/inputs/date/Dialog.d.ts +0 -13
- package/lib/inputs/date/Dialog.js +0 -26
- package/lib/inputs/date/Dropdown.d.ts +0 -13
- package/lib/inputs/date/Dropdown.js +0 -40
- package/lib/inputs/date/helpers.d.ts +0 -37
- package/lib/inputs/date/helpers.js +0 -48
- package/lib/inputs/date/index.d.ts +0 -13
- package/lib/inputs/date/index.js +0 -300
- package/lib/inputs/date/types.d.ts +0 -64
- package/lib/inputs/date/types.js +0 -5
- package/lib/inputs/errorMessage/index.d.ts +0 -16
- package/lib/inputs/errorMessage/index.js +0 -25
- package/lib/inputs/file/DefaultFile.d.ts +0 -13
- package/lib/inputs/file/DefaultFile.js +0 -80
- package/lib/inputs/file/DragDropFile.d.ts +0 -13
- package/lib/inputs/file/DragDropFile.js +0 -273
- package/lib/inputs/file/File.d.ts +0 -13
- package/lib/inputs/file/File.js +0 -64
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -13
- package/lib/inputs/file/FileButtonSettings.js +0 -33
- package/lib/inputs/file/helpers.d.ts +0 -13
- package/lib/inputs/file/helpers.js +0 -21
- package/lib/inputs/file/index.d.ts +0 -16
- package/lib/inputs/file/index.js +0 -23
- package/lib/inputs/file/types.d.ts +0 -57
- package/lib/inputs/file/types.js +0 -5
- package/lib/inputs/inputHOC.d.ts +0 -16
- package/lib/inputs/inputHOC.js +0 -43
- package/lib/inputs/mask/BaseMask.d.ts +0 -12
- package/lib/inputs/mask/BaseMask.js +0 -171
- package/lib/inputs/mask/Cnpj.d.ts +0 -15
- package/lib/inputs/mask/Cnpj.js +0 -59
- package/lib/inputs/mask/Cpf.d.ts +0 -15
- package/lib/inputs/mask/Cpf.js +0 -56
- package/lib/inputs/mask/Phone.d.ts +0 -12
- package/lib/inputs/mask/Phone.js +0 -19
- package/lib/inputs/mask/ZipCode.d.ts +0 -12
- package/lib/inputs/mask/ZipCode.js +0 -14
- package/lib/inputs/mask/helpers.d.ts +0 -15
- package/lib/inputs/mask/helpers.js +0 -119
- package/lib/inputs/mask/index.d.ts +0 -17
- package/lib/inputs/mask/index.js +0 -37
- package/lib/inputs/mask/types.d.ts +0 -80
- package/lib/inputs/mask/types.js +0 -5
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -13
- package/lib/inputs/multiSelect/ActionButtons.js +0 -50
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -13
- package/lib/inputs/multiSelect/Dropdown.js +0 -137
- package/lib/inputs/multiSelect/helper.d.ts +0 -13
- package/lib/inputs/multiSelect/helper.js +0 -21
- package/lib/inputs/multiSelect/index.d.ts +0 -13
- package/lib/inputs/multiSelect/index.js +0 -237
- package/lib/inputs/multiSelect/types.d.ts +0 -67
- 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/Currency.d.ts +0 -17
- package/lib/inputs/number/Currency.js +0 -29
- package/lib/inputs/number/Decimal.d.ts +0 -17
- package/lib/inputs/number/Decimal.js +0 -11
- package/lib/inputs/number/format_number.d.ts +0 -5
- package/lib/inputs/number/format_number.js +0 -29
- package/lib/inputs/number/index.d.ts +0 -19
- package/lib/inputs/number/index.js +0 -64
- package/lib/inputs/number/types.d.ts +0 -39
- package/lib/inputs/number/types.js +0 -5
- package/lib/inputs/period/Dialog.d.ts +0 -14
- package/lib/inputs/period/Dialog.js +0 -27
- package/lib/inputs/period/Dropdown.d.ts +0 -14
- package/lib/inputs/period/Dropdown.js +0 -39
- package/lib/inputs/period/PeriodList.d.ts +0 -14
- package/lib/inputs/period/PeriodList.js +0 -52
- package/lib/inputs/period/helper.d.ts +0 -22
- package/lib/inputs/period/helper.js +0 -64
- package/lib/inputs/period/index.d.ts +0 -14
- package/lib/inputs/period/index.js +0 -544
- package/lib/inputs/period/types.d.ts +0 -78
- package/lib/inputs/period/types.js +0 -5
- package/lib/inputs/search/index.d.ts +0 -16
- package/lib/inputs/search/index.js +0 -132
- package/lib/inputs/select/ActionButtons.d.ts +0 -16
- package/lib/inputs/select/ActionButtons.js +0 -39
- package/lib/inputs/select/Dropdown.d.ts +0 -16
- package/lib/inputs/select/Dropdown.js +0 -113
- package/lib/inputs/select/helper.d.ts +0 -25
- package/lib/inputs/select/helper.js +0 -111
- package/lib/inputs/select/index.d.ts +0 -13
- package/lib/inputs/select/index.js +0 -42
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -13
- package/lib/inputs/select/multiple/Selecteds.js +0 -27
- package/lib/inputs/select/multiple/index.d.ts +0 -13
- package/lib/inputs/select/multiple/index.js +0 -289
- package/lib/inputs/select/simple/index.d.ts +0 -13
- package/lib/inputs/select/simple/index.js +0 -318
- package/lib/inputs/select/types.d.ts +0 -125
- package/lib/inputs/select/types.js +0 -5
- package/lib/inputs/text/index.d.ts +0 -12
- package/lib/inputs/text/index.js +0 -13
- package/lib/inputs/text/types.d.ts +0 -24
- package/lib/inputs/text/types.js +0 -5
- package/lib/inputs/textarea/index.d.ts +0 -12
- package/lib/inputs/textarea/index.js +0 -25
- package/lib/inputs/textarea/types.d.ts +0 -16
- package/lib/inputs/textarea/types.js +0 -5
- package/lib/inputs/types.d.ts +0 -159
- package/lib/inputs/types.js +0 -5
- package/lib/inputs2/checkboxfield/base.d.ts +0 -29
- package/lib/inputs2/checkboxfield/base.js +0 -134
- package/lib/inputs2/checkboxfield/index.d.ts +0 -8
- package/lib/inputs2/checkboxfield/index.js +0 -57
- package/lib/inputs2/colorfield/index.d.ts +0 -10
- package/lib/inputs2/colorfield/index.js +0 -119
- package/lib/inputs2/date/base/constants.d.ts +0 -7
- package/lib/inputs2/date/base/constants.js +0 -44
- package/lib/inputs2/date/base/index.d.ts +0 -12
- package/lib/inputs2/date/base/index.js +0 -177
- package/lib/inputs2/date/datefield/base.d.ts +0 -13
- package/lib/inputs2/date/datefield/base.js +0 -330
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/datefield/calendarbox.js +0 -116
- package/lib/inputs2/date/datefield/context.d.ts +0 -14
- package/lib/inputs2/date/datefield/context.js +0 -15
- package/lib/inputs2/date/datefield/index.d.ts +0 -10
- package/lib/inputs2/date/datefield/index.js +0 -57
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -46
- package/lib/inputs2/date/datefield/types.d.ts +0 -65
- package/lib/inputs2/date/datefield/types.js +0 -5
- package/lib/inputs2/date/dateperiodfield/base.d.ts +0 -13
- package/lib/inputs2/date/dateperiodfield/base.js +0 -595
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -138
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -14
- package/lib/inputs2/date/dateperiodfield/context.js +0 -17
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -10
- package/lib/inputs2/date/dateperiodfield/index.js +0 -57
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -125
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -103
- package/lib/inputs2/date/dateperiodfield/types.js +0 -19
- package/lib/inputs2/date/helpers.d.ts +0 -21
- package/lib/inputs2/date/helpers.js +0 -62
- package/lib/inputs2/date/types.d.ts +0 -60
- package/lib/inputs2/date/types.js +0 -19
- package/lib/inputs2/filefield/index.d.ts +0 -10
- package/lib/inputs2/filefield/index.js +0 -174
- package/lib/inputs2/index.d.ts +0 -38
- package/lib/inputs2/index.js +0 -37
- package/lib/inputs2/mask/BaseMask.d.ts +0 -11
- package/lib/inputs2/mask/BaseMask.js +0 -95
- package/lib/inputs2/mask/Cnpj.d.ts +0 -12
- package/lib/inputs2/mask/Cnpj.js +0 -56
- package/lib/inputs2/mask/Cpf.d.ts +0 -12
- package/lib/inputs2/mask/Cpf.js +0 -52
- package/lib/inputs2/mask/Phone.d.ts +0 -12
- package/lib/inputs2/mask/Phone.js +0 -25
- package/lib/inputs2/mask/ZipCode.d.ts +0 -12
- package/lib/inputs2/mask/ZipCode.js +0 -22
- package/lib/inputs2/mask/helpers.d.ts +0 -4
- package/lib/inputs2/mask/helpers.js +0 -57
- package/lib/inputs2/numberfield/currency.d.ts +0 -14
- package/lib/inputs2/numberfield/currency.js +0 -91
- package/lib/inputs2/numberfield/decimal.d.ts +0 -14
- package/lib/inputs2/numberfield/decimal.js +0 -85
- package/lib/inputs2/numberfield/helpers.d.ts +0 -30
- package/lib/inputs2/numberfield/helpers.js +0 -53
- package/lib/inputs2/numberfield/index.d.ts +0 -13
- package/lib/inputs2/numberfield/index.js +0 -121
- package/lib/inputs2/numberfield/types.d.ts +0 -37
- package/lib/inputs2/numberfield/types.js +0 -5
- package/lib/inputs2/radiofield/base.d.ts +0 -12
- package/lib/inputs2/radiofield/base.js +0 -156
- package/lib/inputs2/radiofield/index.d.ts +0 -9
- package/lib/inputs2/radiofield/index.js +0 -55
- package/lib/inputs2/radiofield/types.d.ts +0 -36
- package/lib/inputs2/radiofield/types.js +0 -5
- package/lib/inputs2/selectfield/base.d.ts +0 -11
- package/lib/inputs2/selectfield/base.js +0 -513
- package/lib/inputs2/selectfield/context.d.ts +0 -39
- package/lib/inputs2/selectfield/context.js +0 -15
- package/lib/inputs2/selectfield/helpers.d.ts +0 -6
- package/lib/inputs2/selectfield/helpers.js +0 -25
- package/lib/inputs2/selectfield/index.d.ts +0 -11
- package/lib/inputs2/selectfield/index.js +0 -84
- package/lib/inputs2/selectfield/item.d.ts +0 -12
- package/lib/inputs2/selectfield/item.js +0 -89
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -117
- package/lib/inputs2/selectfield/options.d.ts +0 -9
- package/lib/inputs2/selectfield/options.js +0 -26
- package/lib/inputs2/selectfield/search.d.ts +0 -7
- package/lib/inputs2/selectfield/search.js +0 -70
- package/lib/inputs2/selectfield/selections.d.ts +0 -10
- package/lib/inputs2/selectfield/selections.js +0 -87
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -109
- package/lib/inputs2/selectfield/types.d.ts +0 -56
- package/lib/inputs2/selectfield/types.js +0 -21
- package/lib/inputs2/slot/index.d.ts +0 -14
- package/lib/inputs2/slot/index.js +0 -47
- package/lib/inputs2/textareafield/base.d.ts +0 -26
- package/lib/inputs2/textareafield/base.js +0 -166
- package/lib/inputs2/textareafield/index.d.ts +0 -9
- package/lib/inputs2/textareafield/index.js +0 -70
- package/lib/inputs2/textfield/base.d.ts +0 -26
- package/lib/inputs2/textfield/base.js +0 -131
- package/lib/inputs2/textfield/index.d.ts +0 -9
- package/lib/inputs2/textfield/index.js +0 -70
- package/lib/internals/colorStyles.d.ts +0 -9
- package/lib/internals/colorStyles.js +0 -14
- package/lib/internals/constants.d.ts +0 -14
- package/lib/internals/constants.js +0 -18
- package/lib/internals/types.d.ts +0 -9
- package/lib/internals/types.js +0 -5
- package/lib/labelMessages/index.d.ts +0 -9
- package/lib/labelMessages/index.js +0 -58
- package/lib/labelMessages/types.d.ts +0 -20
- package/lib/labelMessages/types.js +0 -5
- package/lib/labels/DangerLabel.d.ts +0 -12
- package/lib/labels/DangerLabel.js +0 -18
- package/lib/labels/DefaultLabel.d.ts +0 -12
- package/lib/labels/DefaultLabel.js +0 -59
- package/lib/labels/InfoLabel.d.ts +0 -12
- package/lib/labels/InfoLabel.js +0 -18
- package/lib/labels/PrimaryLabel.d.ts +0 -12
- package/lib/labels/PrimaryLabel.js +0 -18
- package/lib/labels/SuccessLabel.d.ts +0 -12
- package/lib/labels/SuccessLabel.js +0 -18
- package/lib/labels/WarningLabel.d.ts +0 -12
- package/lib/labels/WarningLabel.js +0 -18
- package/lib/labels/index.d.ts +0 -19
- package/lib/labels/index.js +0 -52
- package/lib/labels/label_container/index.d.ts +0 -12
- package/lib/labels/label_container/index.js +0 -22
- package/lib/labels/types.d.ts +0 -23
- package/lib/labels/types.js +0 -5
- package/lib/list/Header.d.ts +0 -11
- package/lib/list/Header.js +0 -23
- package/lib/list/Item.d.ts +0 -11
- package/lib/list/Item.js +0 -165
- package/lib/list/Separator.d.ts +0 -3
- package/lib/list/Separator.js +0 -12
- package/lib/list/helpers.d.ts +0 -16
- package/lib/list/helpers.js +0 -14
- package/lib/list/index.d.ts +0 -14
- package/lib/list/index.js +0 -180
- package/lib/list/types.d.ts +0 -71
- package/lib/list/types.js +0 -5
- package/lib/menus/float/MenuItem.d.ts +0 -9
- package/lib/menus/float/MenuItem.js +0 -68
- package/lib/menus/float/SubMenuContainer.js +0 -76
- package/lib/menus/float/helpers.d.ts +0 -9
- package/lib/menus/float/helpers.js +0 -10
- package/lib/menus/float/index.d.ts +0 -40
- package/lib/menus/float/index.js +0 -68
- package/lib/menus/float/types.d.ts +0 -30
- package/lib/menus/float/types.js +0 -5
- package/lib/menus/index.d.ts +0 -12
- package/lib/menus/index.js +0 -9
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -12
- package/lib/menus/sidenav/ExpandMenu.js +0 -27
- package/lib/menus/sidenav/MenuLink.d.ts +0 -12
- package/lib/menus/sidenav/MenuLink.js +0 -37
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -12
- package/lib/menus/sidenav/NavMenuGroup.js +0 -25
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -12
- package/lib/menus/sidenav/NavMenuItem.js +0 -151
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -12
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -42
- package/lib/menus/sidenav/helpers.d.ts +0 -14
- package/lib/menus/sidenav/helpers.js +0 -18
- package/lib/menus/sidenav/index.d.ts +0 -16
- package/lib/menus/sidenav/index.js +0 -183
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -12
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -26
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -12
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -115
- package/lib/menus/sidenav/types.d.ts +0 -90
- package/lib/menus/sidenav/types.js +0 -5
- package/lib/noPermission/index.d.ts +0 -3
- package/lib/noPermission/index.js +0 -23
- package/lib/panel/Content.d.ts +0 -10
- package/lib/panel/Content.js +0 -83
- package/lib/panel/DangerPanel.d.ts +0 -10
- package/lib/panel/DangerPanel.js +0 -15
- package/lib/panel/Default.d.ts +0 -10
- package/lib/panel/Default.js +0 -66
- package/lib/panel/Header.d.ts +0 -10
- package/lib/panel/Header.js +0 -74
- package/lib/panel/InfoPanel.d.ts +0 -10
- package/lib/panel/InfoPanel.js +0 -15
- package/lib/panel/PrimaryPanel.d.ts +0 -10
- package/lib/panel/PrimaryPanel.js +0 -15
- package/lib/panel/SuccessPanel.d.ts +0 -10
- package/lib/panel/SuccessPanel.js +0 -15
- package/lib/panel/ToolBar.d.ts +0 -10
- package/lib/panel/ToolBar.js +0 -22
- package/lib/panel/WarningPanel.d.ts +0 -10
- package/lib/panel/WarningPanel.js +0 -15
- package/lib/panel/helpers.d.ts +0 -11
- package/lib/panel/helpers.js +0 -25
- package/lib/panel/index.d.ts +0 -18
- package/lib/panel/index.js +0 -59
- package/lib/panel/types.d.ts +0 -47
- package/lib/panel/types.js +0 -5
- package/lib/permissionValidations.d.ts +0 -14
- package/lib/permissionValidations.js +0 -59
- package/lib/popover/PopoverText.d.ts +0 -11
- package/lib/popover/PopoverText.js +0 -28
- package/lib/popover/PopoverTitle.d.ts +0 -11
- package/lib/popover/PopoverTitle.js +0 -17
- package/lib/popover/index.d.ts +0 -13
- package/lib/popover/index.js +0 -70
- package/lib/popover/types.d.ts +0 -36
- package/lib/popover/types.js +0 -5
- package/lib/progress/Bar.d.ts +0 -6
- package/lib/progress/Bar.js +0 -74
- package/lib/progress/index.d.ts +0 -7
- package/lib/progress/index.js +0 -38
- package/lib/progress/types.d.ts +0 -37
- package/lib/progress/types.js +0 -5
- package/lib/radio/index.d.ts +0 -16
- package/lib/radio/index.js +0 -114
- package/lib/radio/types.d.ts +0 -28
- package/lib/radio/types.js +0 -5
- package/lib/shortcuts/index.d.ts +0 -7
- package/lib/shortcuts/index.js +0 -28
- package/lib/shortcuts/types.d.ts +0 -12
- package/lib/shortcuts/types.js +0 -5
- package/lib/skeleton/SkeletonContainer.d.ts +0 -7
- package/lib/skeleton/SkeletonContainer.js +0 -22
- package/lib/skeleton/index.d.ts +0 -8
- package/lib/skeleton/index.js +0 -51
- package/lib/skeleton/types.d.ts +0 -21
- package/lib/skeleton/types.js +0 -5
- package/lib/spinner/SpinnerLoading.d.ts +0 -7
- package/lib/spinner/SpinnerLoading.js +0 -220
- package/lib/spinner/index.d.ts +0 -7
- package/lib/spinner/index.js +0 -59
- package/lib/spinner/types.d.ts +0 -20
- package/lib/spinner/types.js +0 -5
- package/lib/split/Split.d.ts +0 -6
- package/lib/split/Split.js +0 -291
- package/lib/split/SplitSide.d.ts +0 -6
- package/lib/split/SplitSide.js +0 -41
- package/lib/split/helpers.d.ts +0 -10
- package/lib/split/helpers.js +0 -10
- package/lib/split/index.d.ts +0 -8
- package/lib/split/index.js +0 -17
- package/lib/split/types.d.ts +0 -34
- package/lib/split/types.js +0 -5
- package/lib/table/Body.d.ts +0 -8
- package/lib/table/Body.js +0 -70
- package/lib/table/Header.d.ts +0 -8
- package/lib/table/Header.js +0 -92
- package/lib/table/HeaderColumn.d.ts +0 -8
- package/lib/table/HeaderColumn.js +0 -54
- package/lib/table/Row.d.ts +0 -8
- package/lib/table/Row.js +0 -88
- package/lib/table/RowColumn.d.ts +0 -8
- package/lib/table/RowColumn.js +0 -80
- package/lib/table/helpers.d.ts +0 -10
- package/lib/table/helpers.js +0 -15
- package/lib/table/index.d.ts +0 -13
- package/lib/table/index.js +0 -152
- package/lib/table/types.d.ts +0 -100
- package/lib/table/types.js +0 -5
- package/lib/tabs/DropdownTabs.d.ts +0 -11
- package/lib/tabs/DropdownTabs.js +0 -86
- package/lib/tabs/Menu.d.ts +0 -11
- package/lib/tabs/Menu.js +0 -48
- package/lib/tabs/MenuTabs.d.ts +0 -11
- package/lib/tabs/MenuTabs.js +0 -90
- package/lib/tabs/Panel.d.ts +0 -11
- package/lib/tabs/Panel.js +0 -85
- package/lib/tabs/context.d.ts +0 -12
- package/lib/tabs/context.js +0 -131
- package/lib/tabs/index.d.ts +0 -12
- package/lib/tabs/index.js +0 -75
- package/lib/tabs/tabHelpers.d.ts +0 -12
- package/lib/tabs/tabHelpers.js +0 -70
- package/lib/tabs/types.d.ts +0 -105
- package/lib/tabs/types.js +0 -5
- package/lib/tabs/useTabs.d.ts +0 -11
- package/lib/tabs/useTabs.js +0 -11
- package/lib/textContent/index.d.ts +0 -17
- package/lib/textContent/index.js +0 -46
- package/lib/toolbar/ButtonBar.d.ts +0 -12
- package/lib/toolbar/ButtonBar.js +0 -65
- package/lib/toolbar/LabelBar.d.ts +0 -12
- package/lib/toolbar/LabelBar.js +0 -57
- package/lib/toolbar/Separator.d.ts +0 -3
- package/lib/toolbar/Separator.js +0 -12
- package/lib/toolbar/ToolBarGroup.d.ts +0 -12
- package/lib/toolbar/ToolBarGroup.js +0 -19
- package/lib/toolbar/helpers.d.ts +0 -12
- package/lib/toolbar/helpers.js +0 -9
- package/lib/toolbar/index.d.ts +0 -16
- package/lib/toolbar/index.js +0 -65
- package/lib/toolbar/types.d.ts +0 -47
- package/lib/toolbar/types.js +0 -5
- package/lib/tooltip/TooltipContent.d.ts +0 -7
- package/lib/tooltip/TooltipContent.js +0 -64
- package/lib/tooltip/index.d.ts +0 -7
- package/lib/tooltip/index.js +0 -46
- package/lib/tooltip/types.d.ts +0 -39
- package/lib/tooltip/types.js +0 -5
- package/lib/tooltip/useTooltip.d.ts +0 -30
- package/lib/tooltip/useTooltip.js +0 -153
- package/lib/treetable/Body.d.ts +0 -3
- package/lib/treetable/Body.js +0 -33
- package/lib/treetable/Header.d.ts +0 -3
- package/lib/treetable/Header.js +0 -23
- package/lib/treetable/Row.d.ts +0 -9
- package/lib/treetable/Row.js +0 -236
- package/lib/treetable/helpers.d.ts +0 -21
- package/lib/treetable/helpers.js +0 -32
- package/lib/treetable/index.d.ts +0 -10
- package/lib/treetable/index.js +0 -28
- package/lib/treetable/types.d.js +0 -5
- package/lib/treeview/Header.d.ts +0 -7
- package/lib/treeview/Header.js +0 -21
- package/lib/treeview/Node.d.ts +0 -7
- package/lib/treeview/Node.js +0 -244
- package/lib/treeview/constants.d.ts +0 -7
- package/lib/treeview/constants.js +0 -9
- package/lib/treeview/index.d.ts +0 -9
- package/lib/treeview/index.js +0 -319
- package/lib/treeview/types.d.ts +0 -108
- package/lib/treeview/types.js +0 -5
- package/lib/types.d-b477e076.d.ts +0 -47
- package/lib/uitour/helpers.d.ts +0 -8
- package/lib/uitour/helpers.js +0 -12
- package/lib/uitour/index.d.ts +0 -7
- package/lib/uitour/index.js +0 -256
- package/lib/uitour/types.d.ts +0 -38
- package/lib/uitour/types.js +0 -5
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { TextAlign } from '../../@types/Align.js';
|
|
2
|
-
import { DataCombo } from '../../@types/DataCombo.js';
|
|
3
|
-
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
4
|
-
import { CustomInputEvent } from '../base/types.js';
|
|
5
|
-
import { MutableRefObject } from 'react';
|
|
6
|
-
import '../../@types/Period.js';
|
|
7
|
-
import '../../tooltip/types.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
9
|
-
|
|
10
|
-
type AllOptions = {
|
|
11
|
-
idValue?: number | null;
|
|
12
|
-
label: string;
|
|
13
|
-
};
|
|
14
|
-
type DescriptionKey = string | ((dataSelected: DataCombo) => string);
|
|
15
|
-
interface ISimpleSelectProps {
|
|
16
|
-
idKey: string;
|
|
17
|
-
descriptionKey: DescriptionKey;
|
|
18
|
-
dataSource?: DataCombo[];
|
|
19
|
-
id?: string;
|
|
20
|
-
label?: string;
|
|
21
|
-
placeHolder?: string;
|
|
22
|
-
hint?: string;
|
|
23
|
-
value?: string | number | boolean | number[];
|
|
24
|
-
textAlign?: TextAlign;
|
|
25
|
-
errorMessages?: string[];
|
|
26
|
-
showClearButton?: boolean;
|
|
27
|
-
searchOnDropdown?: boolean;
|
|
28
|
-
searchNotFoundText?: string;
|
|
29
|
-
onChange?: (e: CustomInputEvent) => void;
|
|
30
|
-
undigitable?: boolean;
|
|
31
|
-
name?: string;
|
|
32
|
-
selectFirstOnEnter?: boolean;
|
|
33
|
-
openDropdownOnFocus?: boolean;
|
|
34
|
-
onSearch?: (value: string) => void;
|
|
35
|
-
remoteSearch?: boolean;
|
|
36
|
-
onBlur?: (e: CustomInputEvent) => void;
|
|
37
|
-
onClick?: () => void;
|
|
38
|
-
disabled?: boolean;
|
|
39
|
-
readOnly?: boolean;
|
|
40
|
-
gridLayout?: string;
|
|
41
|
-
inputText?: string;
|
|
42
|
-
striped?: boolean | false;
|
|
43
|
-
permissionAttr?: PermissionAttr;
|
|
44
|
-
maxLength?: number;
|
|
45
|
-
dropdownMaxHeight?: number;
|
|
46
|
-
multiple?: boolean;
|
|
47
|
-
rounded?: boolean;
|
|
48
|
-
required?: boolean;
|
|
49
|
-
autoFocus?: boolean;
|
|
50
|
-
onFocus?: () => void;
|
|
51
|
-
allOptions?: AllOptions;
|
|
52
|
-
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
53
|
-
customClassForWrapper?: string;
|
|
54
|
-
customClassForInputContent?: string;
|
|
55
|
-
customClassForLabel?: string;
|
|
56
|
-
customClassForSideButtons?: string;
|
|
57
|
-
rightElements?: JSX.Element[];
|
|
58
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
59
|
-
themePopover?: 'light' | 'dark';
|
|
60
|
-
popoverAlign?: 'right' | 'left';
|
|
61
|
-
dropdownMaxWidth?: number;
|
|
62
|
-
}
|
|
63
|
-
interface ISelectFieldProps extends Omit<ISimpleSelectProps, 'idKey' | 'value' | 'descriptionKey'> {
|
|
64
|
-
multiple?: boolean;
|
|
65
|
-
gridLayout?: string;
|
|
66
|
-
descriptionKey?: DescriptionKey;
|
|
67
|
-
idKey?: string;
|
|
68
|
-
dataSource?: DataCombo[];
|
|
69
|
-
value?: number | number[] | string | string[];
|
|
70
|
-
showClearButton?: boolean;
|
|
71
|
-
searchOnDropdown?: boolean;
|
|
72
|
-
searchNotFoundText?: string;
|
|
73
|
-
inputText?: string | '';
|
|
74
|
-
striped?: boolean | false;
|
|
75
|
-
readOnly?: boolean;
|
|
76
|
-
undigitable?: boolean;
|
|
77
|
-
rounded?: boolean;
|
|
78
|
-
selectFirstOnEnter?: boolean;
|
|
79
|
-
remoteSearch?: boolean;
|
|
80
|
-
openDropdownOnFocus?: boolean;
|
|
81
|
-
autoFocus?: boolean;
|
|
82
|
-
disabled?: boolean;
|
|
83
|
-
required?: boolean;
|
|
84
|
-
onSelect?: (data?: string | string[]) => DataCombo;
|
|
85
|
-
}
|
|
86
|
-
interface IMultipleSelectProps extends Omit<ISimpleSelectProps, 'idKey' | 'value' | 'descriptionKey'> {
|
|
87
|
-
descriptionKey: DescriptionKey;
|
|
88
|
-
idKey: string;
|
|
89
|
-
dataSource: DataCombo[];
|
|
90
|
-
searchNotFoundText?: string;
|
|
91
|
-
searchOnDropdown?: boolean;
|
|
92
|
-
value?: number[] | string[];
|
|
93
|
-
showClearButton?: boolean;
|
|
94
|
-
readOnly?: boolean;
|
|
95
|
-
onSearch?: (value: string) => void;
|
|
96
|
-
onSelect?: (data?: string | string[]) => DataCombo;
|
|
97
|
-
remoteSearch?: boolean;
|
|
98
|
-
onBlur?: (e: CustomInputEvent) => void;
|
|
99
|
-
handlerClear?: () => void;
|
|
100
|
-
disabled?: boolean;
|
|
101
|
-
gridLayout?: string;
|
|
102
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
103
|
-
themePopover?: 'light' | 'dark';
|
|
104
|
-
popoverAlign?: 'right' | 'left';
|
|
105
|
-
}
|
|
106
|
-
interface ISelectedsMultipleProps {
|
|
107
|
-
disabled?: boolean;
|
|
108
|
-
idKey: string;
|
|
109
|
-
descriptionKey: DescriptionKey;
|
|
110
|
-
currents: DataCombo[];
|
|
111
|
-
handlerOnUnselect: (id: string) => void;
|
|
112
|
-
}
|
|
113
|
-
interface GetFilteredParams {
|
|
114
|
-
dataSource: DataCombo[];
|
|
115
|
-
descriptionKey: DescriptionKey;
|
|
116
|
-
currents: DataCombo[];
|
|
117
|
-
}
|
|
118
|
-
interface GetSimpleFilteredParams extends GetFilteredParams {
|
|
119
|
-
inputText: number | string;
|
|
120
|
-
}
|
|
121
|
-
interface GetMultipleFilteredParams extends GetFilteredParams {
|
|
122
|
-
inputText: number[] | string[];
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { AllOptions, DescriptionKey, GetFilteredParams, GetMultipleFilteredParams, GetSimpleFilteredParams, IMultipleSelectProps, ISelectFieldProps, ISelectedsMultipleProps, ISimpleSelectProps };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ITextField } from './types.js';
|
|
2
|
-
import '../../@types/Period.js';
|
|
3
|
-
import '../../@types/PermissionAttr.js';
|
|
4
|
-
import '../base/types.js';
|
|
5
|
-
import 'react';
|
|
6
|
-
import '../../@types/Align.js';
|
|
7
|
-
import '../../tooltip/types.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
9
|
-
|
|
10
|
-
declare const TextField: (props: ITextField) => JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { TextField as default };
|
package/lib/inputs/text/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _InputTextBase = _interopRequireDefault(require("../base/InputTextBase"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
// eslint-disable-next-line import/no-named-as-default
|
|
11
|
-
|
|
12
|
-
const TextField = props => /*#__PURE__*/_react.default.createElement(_InputTextBase.default, props);
|
|
13
|
-
var _default = exports.default = TextField;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Period } from '../../@types/Period.js';
|
|
2
|
-
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
3
|
-
import { IBaseProps, CustomInputEvent } from '../base/types.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '../../@types/Align.js';
|
|
6
|
-
import '../../tooltip/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
|
|
9
|
-
interface ITextField extends IBaseProps {
|
|
10
|
-
value?: string | string[];
|
|
11
|
-
required?: boolean;
|
|
12
|
-
name?: string;
|
|
13
|
-
label?: string | string[];
|
|
14
|
-
onChange?: (e?: CustomInputEvent, maskValue?: string, date?: {
|
|
15
|
-
initial: string;
|
|
16
|
-
final: string;
|
|
17
|
-
}, period?: Period) => void;
|
|
18
|
-
leftElements?: JSX.Element | JSX.Element[];
|
|
19
|
-
rightElements?: JSX.Element | JSX.Element[];
|
|
20
|
-
permissionAttr?: PermissionAttr;
|
|
21
|
-
gridLayout?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { ITextField };
|
package/lib/inputs/text/types.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ITextAreaProps } from './types.js';
|
|
2
|
-
import '../base/types.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../@types/Align.js';
|
|
5
|
-
import '../../@types/Period.js';
|
|
6
|
-
import '../../@types/PermissionAttr.js';
|
|
7
|
-
import '../../tooltip/types.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
9
|
-
|
|
10
|
-
declare const TextArea: (props: ITextAreaProps) => JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { TextArea as default };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _InputTextBase = _interopRequireDefault(require("../base/InputTextBase"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
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); } // eslint-disable-next-line import/no-named-as-default
|
|
11
|
-
const TextArea = props => {
|
|
12
|
-
const {
|
|
13
|
-
rows,
|
|
14
|
-
cols,
|
|
15
|
-
customClass,
|
|
16
|
-
type = 'textarea'
|
|
17
|
-
} = props;
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
|
|
19
|
-
rows: rows,
|
|
20
|
-
type: type,
|
|
21
|
-
cols: cols,
|
|
22
|
-
customClass: "textarea-container ".concat(customClass)
|
|
23
|
-
}));
|
|
24
|
-
};
|
|
25
|
-
var _default = exports.default = TextArea;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IBaseProps } from '../base/types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/Align.js';
|
|
4
|
-
import '../../@types/Period.js';
|
|
5
|
-
import '../../@types/PermissionAttr.js';
|
|
6
|
-
import '../../tooltip/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
|
|
9
|
-
interface ITextAreaProps extends IBaseProps {
|
|
10
|
-
rows?: number;
|
|
11
|
-
cols?: number;
|
|
12
|
-
customClass?: string;
|
|
13
|
-
type?: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { ITextAreaProps };
|
package/lib/inputs/types.d.ts
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { ReactNode, MouseEvent, MutableRefObject, CSSProperties, KeyboardEvent, ReactElement } from 'react';
|
|
2
|
-
import { PermissionAttr, OnDenied } from '../@types/PermissionAttr.js';
|
|
3
|
-
import { DataCombo } from '../@types/DataCombo.js';
|
|
4
|
-
import { IBaseProps, CustomInputEvent } from './base/types.js';
|
|
5
|
-
import { IDrawerProps } from '../drawer/types.js';
|
|
6
|
-
import { TextAlign } from '../@types/Align.js';
|
|
7
|
-
import '../@types/Period.js';
|
|
8
|
-
import '../tooltip/types.js';
|
|
9
|
-
import '../@types/Position.js';
|
|
10
|
-
import '../@types/Icon.js';
|
|
11
|
-
import '../icons/helper.js';
|
|
12
|
-
|
|
13
|
-
type DescriptionKey = string | ((dataSelected: DataCombo) => string);
|
|
14
|
-
interface IAdvancedFilterProps extends Omit<IDrawerProps, 'content'> {
|
|
15
|
-
onStateChange?: (value?: boolean) => void;
|
|
16
|
-
headerTitle?: string;
|
|
17
|
-
content?: ReactNode | ReactNode[];
|
|
18
|
-
}
|
|
19
|
-
interface ISearchProps extends IBaseProps {
|
|
20
|
-
resetButton?: boolean;
|
|
21
|
-
onReset?: (event?: CustomInputEvent) => void;
|
|
22
|
-
onChange?: (event?: CustomInputEvent) => void;
|
|
23
|
-
onClick?: (event: MouseEvent<Element>) => void;
|
|
24
|
-
textAlign?: TextAlign;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
readOnly?: boolean;
|
|
27
|
-
value?: string;
|
|
28
|
-
placeHolder?: string;
|
|
29
|
-
permissionAttr?: PermissionAttr;
|
|
30
|
-
advancedFilterProps?: IAdvancedFilterProps;
|
|
31
|
-
rounded?: boolean;
|
|
32
|
-
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null>;
|
|
33
|
-
style?: CSSProperties;
|
|
34
|
-
drawerFilterIsOpened?: boolean;
|
|
35
|
-
}
|
|
36
|
-
interface IDropdownProps {
|
|
37
|
-
children: ReactNode | ReactNode[];
|
|
38
|
-
dropdownRef: (el: HTMLDivElement) => void;
|
|
39
|
-
topPosition: number | string;
|
|
40
|
-
leftPosition: number | string;
|
|
41
|
-
width: number | string;
|
|
42
|
-
}
|
|
43
|
-
interface IInputHOCProps {
|
|
44
|
-
value?: string | string[];
|
|
45
|
-
required?: boolean;
|
|
46
|
-
gridLayout?: string;
|
|
47
|
-
visible?: boolean;
|
|
48
|
-
rows?: number;
|
|
49
|
-
cols?: number;
|
|
50
|
-
type?: string;
|
|
51
|
-
}
|
|
52
|
-
interface IMaskHOCProps {
|
|
53
|
-
label?: string;
|
|
54
|
-
value?: string | number;
|
|
55
|
-
unmask?: boolean;
|
|
56
|
-
name?: string;
|
|
57
|
-
commit?: () => void;
|
|
58
|
-
onChange?: (event: CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
59
|
-
onFocus?: (e: CustomInputEvent) => void;
|
|
60
|
-
onComplete?: (e: CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
61
|
-
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
62
|
-
placeholderChar?: string;
|
|
63
|
-
lazy?: boolean;
|
|
64
|
-
definitions?: any;
|
|
65
|
-
groups?: object;
|
|
66
|
-
pattern?: string;
|
|
67
|
-
format?: () => void;
|
|
68
|
-
parse?: () => void;
|
|
69
|
-
radix?: string;
|
|
70
|
-
thousandsSeparator?: string;
|
|
71
|
-
mapToRadix?: string[];
|
|
72
|
-
scale?: number;
|
|
73
|
-
signed?: boolean;
|
|
74
|
-
normalizeZeros?: boolean;
|
|
75
|
-
padFractionalZeros?: boolean;
|
|
76
|
-
min?: number;
|
|
77
|
-
max?: number;
|
|
78
|
-
dispatch?: () => void;
|
|
79
|
-
permissionAttr?: PermissionAttr;
|
|
80
|
-
handlerSetOnDenied?: (onDeniedValue: OnDenied) => void;
|
|
81
|
-
isNumeric?: boolean;
|
|
82
|
-
required?: boolean;
|
|
83
|
-
onKeyDown?: (e: CustomInputEvent | KeyboardEvent<Element>) => void;
|
|
84
|
-
rightElements?: JSX.Element | JSX.Element[];
|
|
85
|
-
labelUppercase?: boolean;
|
|
86
|
-
readOnly?: boolean;
|
|
87
|
-
disabled?: boolean;
|
|
88
|
-
gridLayout?: string;
|
|
89
|
-
placeHolder?: string;
|
|
90
|
-
customClass?: string;
|
|
91
|
-
customClassForInputContent?: string;
|
|
92
|
-
customClassForLabel?: string;
|
|
93
|
-
textAlign?: TextAlign;
|
|
94
|
-
onBlur?: (e: CustomInputEvent) => void;
|
|
95
|
-
leftElements?: JSX.Element | JSX.Element[];
|
|
96
|
-
rounded?: boolean;
|
|
97
|
-
errorMessages?: string[];
|
|
98
|
-
skeletonize?: boolean;
|
|
99
|
-
mask?: any;
|
|
100
|
-
isDateField?: boolean;
|
|
101
|
-
autoCompleteMask?: 'left' | 'right';
|
|
102
|
-
}
|
|
103
|
-
interface IDropdownSelectProps {
|
|
104
|
-
idKey: string;
|
|
105
|
-
descriptionKey: DescriptionKey;
|
|
106
|
-
dropdownWidth: number;
|
|
107
|
-
showClearButton?: boolean;
|
|
108
|
-
handleOnSelect: (item?: DataCombo) => void;
|
|
109
|
-
handleOnFilter: (value: string) => void;
|
|
110
|
-
handleOnKeydown: (e: CustomInputEvent | KeyboardEvent) => void;
|
|
111
|
-
handleOnBlur: (item: DataCombo) => void;
|
|
112
|
-
handleOnFocus: () => void;
|
|
113
|
-
handlerSelecionadoAgora?: (bool: boolean) => void;
|
|
114
|
-
opened: boolean;
|
|
115
|
-
dropdownRef: MutableRefObject<HTMLDivElement | null>;
|
|
116
|
-
dataCombo: DataCombo[];
|
|
117
|
-
searchOnDropdown?: boolean;
|
|
118
|
-
searchNotFoundText?: string;
|
|
119
|
-
imgSrcKey?: string;
|
|
120
|
-
selected?: {
|
|
121
|
-
[key: string]: number;
|
|
122
|
-
};
|
|
123
|
-
currents?: DataCombo[];
|
|
124
|
-
imageAlign?: 'left' | 'right';
|
|
125
|
-
striped?: boolean;
|
|
126
|
-
gridWrapperStyle?: {
|
|
127
|
-
paddingLeft: string;
|
|
128
|
-
paddingRight: string;
|
|
129
|
-
};
|
|
130
|
-
selectFieldRef?: MutableRefObject<HTMLInputElement | null>;
|
|
131
|
-
dropdownMaxHeight?: number;
|
|
132
|
-
inputValue?: string;
|
|
133
|
-
align?: 'left' | 'right';
|
|
134
|
-
}
|
|
135
|
-
interface IActionButtonsSelectProps {
|
|
136
|
-
handlerClear: () => void;
|
|
137
|
-
handlerOpenClose: () => void;
|
|
138
|
-
dropDownOpened: boolean;
|
|
139
|
-
showClearButton?: boolean;
|
|
140
|
-
disabled?: boolean;
|
|
141
|
-
customClassForSideButtons?: string;
|
|
142
|
-
}
|
|
143
|
-
interface IButtonsProps {
|
|
144
|
-
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
145
|
-
icon: ReactElement;
|
|
146
|
-
key: string;
|
|
147
|
-
boxShadow: boolean;
|
|
148
|
-
readOnly?: boolean;
|
|
149
|
-
style: CSSProperties;
|
|
150
|
-
transparent: boolean;
|
|
151
|
-
disabled?: boolean;
|
|
152
|
-
}
|
|
153
|
-
interface ErrorProps {
|
|
154
|
-
customClass?: string;
|
|
155
|
-
style?: React.CSSProperties;
|
|
156
|
-
messages?: string | string[];
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export { ErrorProps, IActionButtonsSelectProps, IAdvancedFilterProps, IButtonsProps, IDropdownProps, IDropdownSelectProps, IInputHOCProps, IMaskHOCProps, ISearchProps };
|
package/lib/inputs/types.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { Size } from '../../@types/Size.js';
|
|
3
|
-
import { ColorTheme } from '../../@types/ColorStyles.js';
|
|
4
|
-
import { ITooltipCommonProps } from '../../tooltip/types.js';
|
|
5
|
-
import { HintPosition, Position } from '../../@types/Position.js';
|
|
6
|
-
|
|
7
|
-
type InputHTMLProps = Omit<React__default.ComponentPropsWithoutRef<'input'>, 'size' | 'type'>;
|
|
8
|
-
interface CheckboxFieldInputBaseProps extends InputHTMLProps, ITooltipCommonProps {
|
|
9
|
-
hint?: string;
|
|
10
|
-
label?: string;
|
|
11
|
-
size?: Exclude<Size, 'mini'>;
|
|
12
|
-
variant?: 'default' | 'secondary';
|
|
13
|
-
errors?: string[];
|
|
14
|
-
customClass?: string;
|
|
15
|
-
customClassLabel?: string;
|
|
16
|
-
customClassWrapper?: string;
|
|
17
|
-
customClassInputContainer?: string;
|
|
18
|
-
rounded?: boolean;
|
|
19
|
-
readOnly?: boolean;
|
|
20
|
-
skeletonize?: boolean;
|
|
21
|
-
labelUppercase?: boolean;
|
|
22
|
-
hintPosition?: HintPosition;
|
|
23
|
-
themePopover?: ColorTheme;
|
|
24
|
-
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
25
|
-
tabIndex?: number;
|
|
26
|
-
}
|
|
27
|
-
declare const InputBase: React__default.ForwardRefExoticComponent<CheckboxFieldInputBaseProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
28
|
-
|
|
29
|
-
export { CheckboxFieldInputBaseProps, InputBase };
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.InputBase = void 0;
|
|
7
|
-
require("../../assets/styles/checkbox2.scss");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
|
-
var _hint = _interopRequireDefault(require("../../hint"));
|
|
11
|
-
var _icons = _interopRequireDefault(require("../../icons"));
|
|
12
|
-
var _popover = _interopRequireWildcard(require("../../popover"));
|
|
13
|
-
var _tooltip = require("../../tooltip");
|
|
14
|
-
const _excluded = ["name", "label", "errors", "onChange", "size", "tooltip", "tooltipPosition", "tooltipWidth", "tabIndex", "variant", "customClass", "customClassLabel", "customClassWrapper", "labelUppercase", "rounded", "customClassInputContainer", "skeletonize", "hintPosition", "themePopover", "popoverAlign", "disabled", "readOnly"];
|
|
15
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
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); }
|
|
18
|
-
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; }
|
|
19
|
-
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; }
|
|
20
|
-
const InputBase = exports.InputBase = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
21
|
-
var _props$checked, _props$hint;
|
|
22
|
-
const {
|
|
23
|
-
name,
|
|
24
|
-
label,
|
|
25
|
-
errors,
|
|
26
|
-
onChange,
|
|
27
|
-
size = 'default',
|
|
28
|
-
tooltip,
|
|
29
|
-
tooltipPosition,
|
|
30
|
-
tooltipWidth,
|
|
31
|
-
tabIndex = 0,
|
|
32
|
-
variant = 'default',
|
|
33
|
-
customClass = '',
|
|
34
|
-
customClassLabel = '',
|
|
35
|
-
customClassWrapper = '',
|
|
36
|
-
labelUppercase = false,
|
|
37
|
-
rounded = false,
|
|
38
|
-
customClassInputContainer = '',
|
|
39
|
-
skeletonize = false,
|
|
40
|
-
hintPosition = 'below',
|
|
41
|
-
themePopover = 'light',
|
|
42
|
-
popoverAlign = 'left',
|
|
43
|
-
disabled,
|
|
44
|
-
readOnly
|
|
45
|
-
} = props,
|
|
46
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
47
|
-
const inputId = _react.default.useMemo(() => props.id || "checkboxfield-".concat(name), [props.id, name]);
|
|
48
|
-
const inputRootRef = _react.default.useRef(null);
|
|
49
|
-
const isChecked = (_props$checked = props.checked) !== null && _props$checked !== void 0 ? _props$checked : Boolean(props.value);
|
|
50
|
-
const hasLabel = !_lodash.default.isEmpty(props === null || props === void 0 ? void 0 : props.label);
|
|
51
|
-
const hasHintMessages = Boolean((_props$hint = props.hint) === null || _props$hint === void 0 ? void 0 : _props$hint.length);
|
|
52
|
-
const hasValidationErrors = Boolean(errors === null || errors === void 0 ? void 0 : errors.length);
|
|
53
|
-
const handleOnChange = _react.default.useCallback(event => {
|
|
54
|
-
if (readOnly || disabled) return;
|
|
55
|
-
Object.defineProperty(event.target, 'value', {
|
|
56
|
-
value: event.target.checked,
|
|
57
|
-
writable: true,
|
|
58
|
-
enumerable: true,
|
|
59
|
-
configurable: true
|
|
60
|
-
});
|
|
61
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
62
|
-
}, [readOnly, disabled, onChange]);
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
-
ref: inputRootRef,
|
|
65
|
-
"data-testid": "test-chebox-field-root",
|
|
66
|
-
className: "checkbox-field-root ".concat(customClassWrapper),
|
|
67
|
-
"data-state-error": hasValidationErrors
|
|
68
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
-
"data-state-skeletonize": skeletonize,
|
|
70
|
-
className: "container ".concat(customClassInputContainer)
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
-
className: "input-root"
|
|
73
|
-
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
74
|
-
ref: ref,
|
|
75
|
-
id: inputId,
|
|
76
|
-
name: name,
|
|
77
|
-
readOnly: readOnly,
|
|
78
|
-
disabled: disabled,
|
|
79
|
-
className: "input ".concat(customClass),
|
|
80
|
-
tabIndex: !readOnly && !tabIndex ? 0 : -1,
|
|
81
|
-
"data-testid": "test-checkbox-field-input",
|
|
82
|
-
"data-state-size": size,
|
|
83
|
-
"data-state-error": hasValidationErrors,
|
|
84
|
-
"data-state-variant": variant,
|
|
85
|
-
"data-state-rounded": rounded,
|
|
86
|
-
"data-state-read-only": readOnly,
|
|
87
|
-
"data-state-skeletonize": skeletonize
|
|
88
|
-
}, rest, {
|
|
89
|
-
type: "checkbox",
|
|
90
|
-
checked: isChecked,
|
|
91
|
-
onChange: handleOnChange
|
|
92
|
-
})), /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
93
|
-
customClass: "checkmark",
|
|
94
|
-
name: "checkmark",
|
|
95
|
-
colorStyle: "default"
|
|
96
|
-
})), hasLabel && /*#__PURE__*/_react.default.createElement("label", {
|
|
97
|
-
className: "label ".concat(customClassLabel),
|
|
98
|
-
title: label,
|
|
99
|
-
htmlFor: inputId,
|
|
100
|
-
"aria-readonly": readOnly,
|
|
101
|
-
"aria-disabled": disabled,
|
|
102
|
-
"data-testid": "test-checkbox-field-label",
|
|
103
|
-
"data-state-skeletonize": skeletonize,
|
|
104
|
-
"data-state-disabled": disabled,
|
|
105
|
-
"data-state-read-only": readOnly,
|
|
106
|
-
"data-state-uppercase": labelUppercase,
|
|
107
|
-
"data-state-input-required": props.required
|
|
108
|
-
}, label), hasLabel && hasHintMessages && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
109
|
-
customClass: "label-popover",
|
|
110
|
-
theme: themePopover,
|
|
111
|
-
align: popoverAlign,
|
|
112
|
-
iconColor: "#03bde2"
|
|
113
|
-
}, /*#__PURE__*/_react.default.createElement(_popover.PopoverText, {
|
|
114
|
-
text: props === null || props === void 0 ? void 0 : props.hint
|
|
115
|
-
}))), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
116
|
-
customClass: "hint",
|
|
117
|
-
description: props.hint,
|
|
118
|
-
disabled: disabled,
|
|
119
|
-
skeletonize: skeletonize,
|
|
120
|
-
visible: hasHintMessages
|
|
121
|
-
}), hasValidationErrors && /*#__PURE__*/_react.default.createElement("span", {
|
|
122
|
-
className: "error",
|
|
123
|
-
"data-state-skeletonize": skeletonize,
|
|
124
|
-
"aria-describedby": String(name).concat('-errors')
|
|
125
|
-
}, errors === null || errors === void 0 ? void 0 : errors.map((error, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
126
|
-
key: "".concat(index + 1, "-").concat(error)
|
|
127
|
-
}, error, "\xA0")))), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
|
|
128
|
-
targetRef: inputRootRef,
|
|
129
|
-
text: tooltip,
|
|
130
|
-
width: tooltipWidth,
|
|
131
|
-
position: tooltipPosition
|
|
132
|
-
}));
|
|
133
|
-
});
|
|
134
|
-
InputBase.displayName = 'CheckboxFieldInputBase';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import '../../@types/PermissionAttr.js';
|
|
3
|
-
import './base.js';
|
|
4
|
-
export { C as CheckboxFieldInputProps, I as Input } from '../../index-7159df18.js';
|
|
5
|
-
import '../../@types/Size.js';
|
|
6
|
-
import '../../@types/ColorStyles.js';
|
|
7
|
-
import '../../tooltip/types.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Input = void 0;
|
|
7
|
-
require("../../assets/styles/checkbox2.scss");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
|
|
10
|
-
var _permissionValidations = require("../../permissionValidations");
|
|
11
|
-
var _base = require("./base");
|
|
12
|
-
const _excluded = ["onDeniedActions", "permissionAttr", "gridLayout", "readOnly", "disabled"];
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
|
-
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; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
|
-
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); }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
23
|
-
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
24
|
-
let {
|
|
25
|
-
onDeniedActions,
|
|
26
|
-
permissionAttr,
|
|
27
|
-
gridLayout,
|
|
28
|
-
readOnly,
|
|
29
|
-
disabled
|
|
30
|
-
} = _ref,
|
|
31
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
32
|
-
const onDenied = _react.default.useMemo(() => {
|
|
33
|
-
return onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr);
|
|
34
|
-
}, [onDeniedActions, permissionAttr]);
|
|
35
|
-
const {
|
|
36
|
-
hideContent,
|
|
37
|
-
unvisible
|
|
38
|
-
} = onDenied;
|
|
39
|
-
const isReadOnly = Boolean(readOnly || onDenied.readOnly);
|
|
40
|
-
const isDisabled = Boolean(disabled || onDenied.disabled);
|
|
41
|
-
const inputProps = _objectSpread({
|
|
42
|
-
readOnly: isReadOnly,
|
|
43
|
-
disabled: isDisabled
|
|
44
|
-
}, props);
|
|
45
|
-
if (unvisible || hideContent) return null;
|
|
46
|
-
if (gridLayout) {
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
48
|
-
cols: gridLayout
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_base.InputBase, _extends({
|
|
50
|
-
ref: ref
|
|
51
|
-
}, inputProps)));
|
|
52
|
-
}
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(_base.InputBase, _extends({
|
|
54
|
-
ref: ref
|
|
55
|
-
}, inputProps));
|
|
56
|
-
});
|
|
57
|
-
Input.displayName = 'CheckboxFieldInput';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { LeftSlot, RightSlot } from '../slot/index.js';
|
|
3
|
-
import '../../index-02a27c19.js';
|
|
4
|
-
export { C as ColorFieldInputProps, I as Input } from '../../index-6f5c772d.js';
|
|
5
|
-
import '../../@types/PermissionAttr.js';
|
|
6
|
-
import '../textfield/base.js';
|
|
7
|
-
import '../../tooltip/types.js';
|
|
8
|
-
import '../../@types/Position.js';
|
|
9
|
-
import '../../@types/Align.js';
|
|
10
|
-
import '../../@types/ColorStyles.js';
|