linear-react-components-ui 1.1.20-beta.33 → 1.1.20-beta.34
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 +4 -0
- package/lib/@types/Align.js +5 -0
- package/lib/@types/ButtonTypes.d.ts +3 -0
- package/lib/@types/ButtonTypes.js +5 -0
- package/lib/@types/ColorStyles.d.ts +3 -0
- package/lib/@types/ColorStyles.js +5 -0
- package/lib/@types/DataCombo.d.ts +3 -0
- package/lib/@types/DataCombo.js +5 -0
- package/lib/@types/Icon.d.ts +5 -0
- package/lib/@types/Icon.js +5 -0
- package/lib/@types/LabelStyles.d.ts +3 -0
- package/lib/@types/LabelStyles.js +5 -0
- package/lib/@types/Period.d.ts +6 -0
- package/lib/@types/Period.js +5 -0
- package/lib/@types/PermissionAttr.d.ts +14 -0
- package/lib/@types/PermissionAttr.js +5 -0
- package/lib/@types/PointerEvents.d.ts +3 -0
- package/lib/@types/PointerEvents.js +5 -0
- package/lib/@types/Position.d.ts +3 -0
- package/lib/@types/Position.js +5 -0
- package/lib/@types/PositionAlert.d.ts +3 -0
- package/lib/@types/PositionAlert.js +5 -0
- package/lib/@types/Size.d.ts +3 -0
- package/lib/@types/Size.js +5 -0
- package/lib/@types/SizePixels.d.ts +3 -0
- package/lib/@types/SizePixels.js +5 -0
- package/lib/@types/StorageMock.d.ts +5 -0
- package/lib/@types/StorageMock.js +5 -0
- package/lib/alerts/AlertContainer.d.ts +18 -0
- package/lib/alerts/AlertContainer.js +80 -0
- package/lib/alerts/AlertProvider.d.ts +9 -0
- package/lib/alerts/AlertProvider.js +73 -0
- package/lib/alerts/BaseAlert.d.ts +9 -0
- package/lib/alerts/BaseAlert.js +34 -0
- package/lib/alerts/Message.d.ts +9 -0
- package/lib/alerts/Message.js +114 -0
- package/lib/alerts/helpers.d.ts +9 -0
- package/lib/alerts/helpers.js +9 -0
- package/lib/alerts/index.d.ts +11 -0
- package/lib/alerts/index.js +16 -0
- package/lib/alerts/types.d.ts +51 -0
- package/lib/alerts/types.js +5 -0
- package/lib/alerts/withAlert.d.ts +9 -0
- package/lib/alerts/withAlert.js +24 -0
- 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 +149 -0
- package/lib/assets/styles/avatar.scss +42 -0
- package/lib/assets/styles/badge.scss +48 -0
- package/lib/assets/styles/button.scss +345 -0
- package/lib/assets/styles/calendar.scss +172 -0
- package/lib/assets/styles/checkbox.scss +108 -0
- package/lib/assets/styles/colorpicker.scss +17 -0
- package/lib/assets/styles/colors.scss +144 -0
- package/lib/assets/styles/commons.scss +138 -0
- package/lib/assets/styles/datepicker.scss +16 -0
- package/lib/assets/styles/dialog.scss +200 -0
- package/lib/assets/styles/drawers.scss +159 -0
- package/lib/assets/styles/dropdown.scss +179 -0
- package/lib/assets/styles/effects.scss +823 -0
- package/lib/assets/styles/error.scss +9 -0
- package/lib/assets/styles/fieldset.scss +96 -0
- package/lib/assets/styles/file.scss +224 -0
- package/lib/assets/styles/floatMenu.scss +17 -0
- package/lib/assets/styles/fonts.scss +86 -0
- package/lib/assets/styles/form.scss +23 -0
- package/lib/assets/styles/gridlayout.scss +2054 -0
- package/lib/assets/styles/hint.scss +30 -0
- package/lib/assets/styles/icon.scss +42 -0
- package/lib/assets/styles/input.scss +156 -0
- package/lib/assets/styles/label.scss +116 -0
- package/lib/assets/styles/labelMessages.scss +81 -0
- package/lib/assets/styles/list.scss +124 -0
- package/lib/assets/styles/multiSelect.scss +125 -0
- package/lib/assets/styles/noPermission.scss +25 -0
- package/lib/assets/styles/numbers.scss +5 -0
- package/lib/assets/styles/panel.scss +95 -0
- package/lib/assets/styles/periodpicker.scss +69 -0
- package/lib/assets/styles/popover.scss +44 -0
- package/lib/assets/styles/progress.scss +72 -0
- package/lib/assets/styles/radio.scss +156 -0
- package/lib/assets/styles/search.scss +13 -0
- package/lib/assets/styles/select.scss +155 -0
- package/lib/assets/styles/shortcuts.scss +59 -0
- package/lib/assets/styles/sidenav.scss +408 -0
- package/lib/assets/styles/skeleton.scss +48 -0
- package/lib/assets/styles/spinner.scss +34 -0
- package/lib/assets/styles/split.scss +80 -0
- package/lib/assets/styles/table.scss +179 -0
- package/lib/assets/styles/tabs.scss +266 -0
- package/lib/assets/styles/textContent.scss +9 -0
- package/lib/assets/styles/toolbar.scss +74 -0
- package/lib/assets/styles/tooltip.scss +95 -0
- package/lib/assets/styles/treetable.scss +100 -0
- package/lib/assets/styles/treeview.scss +96 -0
- package/lib/assets/styles/uitour.scss +112 -0
- package/lib/assets/styles/wizard.scss +125 -0
- package/lib/avatar/index.d.ts +12 -0
- package/lib/avatar/index.js +91 -0
- package/lib/avatar/types.d.ts +31 -0
- package/lib/avatar/types.js +5 -0
- package/lib/badge/index.d.ts +6 -0
- package/lib/badge/index.js +30 -0
- package/lib/badge/types.d.ts +13 -0
- package/lib/badge/types.js +5 -0
- package/lib/buttons/ActivateButton.d.ts +11 -0
- package/lib/buttons/ActivateButton.js +14 -0
- package/lib/buttons/AddButton.d.ts +11 -0
- package/lib/buttons/AddButton.js +18 -0
- package/lib/buttons/Button.d.ts +14 -0
- package/lib/buttons/Button.js +23 -0
- package/lib/buttons/ButtonGroups.d.ts +8 -0
- package/lib/buttons/ButtonGroups.js +17 -0
- package/lib/buttons/CancelButton.d.ts +11 -0
- package/lib/buttons/CancelButton.js +23 -0
- package/lib/buttons/DangerButton.d.ts +11 -0
- package/lib/buttons/DangerButton.js +23 -0
- package/lib/buttons/DefaultButton.d.ts +14 -0
- package/lib/buttons/DefaultButton.js +176 -0
- package/lib/buttons/DestroyButton.d.ts +11 -0
- package/lib/buttons/DestroyButton.js +27 -0
- package/lib/buttons/EditButton.d.ts +11 -0
- package/lib/buttons/EditButton.js +14 -0
- package/lib/buttons/InactivateButton.d.ts +11 -0
- package/lib/buttons/InactivateButton.js +14 -0
- package/lib/buttons/InfoButton.d.ts +11 -0
- package/lib/buttons/InfoButton.js +23 -0
- package/lib/buttons/PrimaryButton.d.ts +11 -0
- package/lib/buttons/PrimaryButton.js +23 -0
- package/lib/buttons/RestoreButton.d.ts +11 -0
- package/lib/buttons/RestoreButton.js +14 -0
- package/lib/buttons/SaveButton.d.ts +11 -0
- package/lib/buttons/SaveButton.js +23 -0
- package/lib/buttons/SuccessButton.d.ts +11 -0
- package/lib/buttons/SuccessButton.js +23 -0
- package/lib/buttons/WarningButton.d.ts +11 -0
- package/lib/buttons/WarningButton.js +23 -0
- package/lib/buttons/button_container/index.d.ts +12 -0
- package/lib/buttons/button_container/index.js +30 -0
- package/lib/buttons/index.d.ts +26 -0
- package/lib/buttons/index.js +108 -0
- package/lib/buttons/split_button/index.d.ts +11 -0
- package/lib/buttons/split_button/index.js +57 -0
- package/lib/buttons/types.d.ts +49 -0
- package/lib/buttons/types.js +5 -0
- package/lib/calendar/DangerCalendar.d.ts +7 -0
- package/lib/calendar/DangerCalendar.js +23 -0
- package/lib/calendar/InfoCalendar.d.ts +7 -0
- package/lib/calendar/InfoCalendar.js +23 -0
- package/lib/calendar/PrimaryCalendar.d.ts +7 -0
- package/lib/calendar/PrimaryCalendar.js +23 -0
- package/lib/calendar/SuccessCalendar.d.ts +7 -0
- package/lib/calendar/SuccessCalendar.js +23 -0
- package/lib/calendar/WarningCalendar.d.ts +7 -0
- package/lib/calendar/WarningCalendar.js +23 -0
- package/lib/calendar/base/Day.d.ts +7 -0
- package/lib/calendar/base/Day.js +32 -0
- package/lib/calendar/base/Month.d.ts +7 -0
- package/lib/calendar/base/Month.js +37 -0
- package/lib/calendar/base/Week.d.ts +7 -0
- package/lib/calendar/base/Week.js +35 -0
- package/lib/calendar/base/helpers.d.ts +62 -0
- package/lib/calendar/base/helpers.js +117 -0
- package/lib/calendar/base/index.d.ts +7 -0
- package/lib/calendar/base/index.js +79 -0
- package/lib/calendar/index.d.ts +13 -0
- package/lib/calendar/index.js +44 -0
- package/lib/calendar/types.d.ts +25 -0
- package/lib/calendar/types.js +5 -0
- package/lib/checkbox/index.d.ts +13 -0
- package/lib/checkbox/index.js +145 -0
- package/lib/checkbox/types.d.ts +47 -0
- package/lib/checkbox/types.js +5 -0
- package/lib/dialog/Alert.d.ts +9 -0
- package/lib/dialog/Alert.js +28 -0
- package/lib/dialog/Custom.d.ts +9 -0
- package/lib/dialog/Custom.js +56 -0
- package/lib/dialog/Error.d.ts +9 -0
- package/lib/dialog/Error.js +28 -0
- package/lib/dialog/Information.d.ts +9 -0
- package/lib/dialog/Information.js +28 -0
- package/lib/dialog/Question.d.ts +9 -0
- package/lib/dialog/Question.js +60 -0
- package/lib/dialog/Warning.d.ts +9 -0
- package/lib/dialog/Warning.js +28 -0
- package/lib/dialog/base/Content.d.ts +9 -0
- package/lib/dialog/base/Content.js +22 -0
- package/lib/dialog/base/Footer.d.ts +9 -0
- package/lib/dialog/base/Footer.js +12 -0
- package/lib/dialog/base/Header.d.ts +9 -0
- package/lib/dialog/base/Header.js +59 -0
- package/lib/dialog/base/index.d.ts +15 -0
- package/lib/dialog/base/index.js +157 -0
- package/lib/dialog/base/style.js +13 -0
- package/lib/dialog/form/index.d.ts +10 -0
- package/lib/dialog/form/index.js +84 -0
- package/lib/dialog/index.d.ts +16 -0
- package/lib/dialog/index.js +51 -0
- package/lib/dialog/types.d.ts +105 -0
- package/lib/dialog/types.js +5 -0
- package/lib/dialog/wizard/index.d.ts +13 -0
- package/lib/dialog/wizard/index.js +74 -0
- package/lib/dialog/wizard/progressbar.d.ts +13 -0
- package/lib/dialog/wizard/progressbar.js +36 -0
- package/lib/dialog/wizard/step.d.ts +9 -0
- package/lib/dialog/wizard/step.js +22 -0
- package/lib/dialog/wizard/useWizard.d.ts +9 -0
- package/lib/dialog/wizard/useWizard.js +48 -0
- package/lib/drawer/Content.d.ts +10 -0
- package/lib/drawer/Content.js +26 -0
- package/lib/drawer/Drawer.d.ts +10 -0
- package/lib/drawer/Drawer.js +138 -0
- package/lib/drawer/Header.d.ts +10 -0
- package/lib/drawer/Header.js +76 -0
- package/lib/drawer/helpers.d.ts +10 -0
- package/lib/drawer/helpers.js +10 -0
- package/lib/drawer/index.d.ts +12 -0
- package/lib/drawer/index.js +25 -0
- package/lib/drawer/types.d.ts +41 -0
- package/lib/drawer/types.js +5 -0
- package/lib/dropdown/Popup.d.ts +6 -0
- package/lib/dropdown/Popup.js +69 -0
- package/lib/dropdown/helper.d.ts +4 -0
- package/lib/dropdown/helper.js +16 -0
- package/lib/dropdown/types.d.ts +44 -0
- package/lib/dropdown/types.js +5 -0
- package/lib/dropdown/withDropdown.d.ts +10 -0
- package/lib/dropdown/withDropdown.js +92 -0
- package/lib/fieldset/index.d.ts +8 -0
- package/lib/fieldset/index.js +83 -0
- package/lib/fieldset/types.d.ts +30 -0
- package/lib/fieldset/types.js +5 -0
- package/lib/form/Field.d.ts +14 -0
- package/lib/form/Field.js +118 -0
- package/lib/form/FieldArray.d.ts +14 -0
- package/lib/form/FieldArray.js +105 -0
- package/lib/form/FieldNumber.d.ts +14 -0
- package/lib/form/FieldNumber.js +68 -0
- package/lib/form/FieldPeriod.d.ts +14 -0
- package/lib/form/FieldPeriod.js +98 -0
- package/lib/form/helpers.d.ts +19 -0
- package/lib/form/helpers.js +50 -0
- package/lib/form/index.d.ts +18 -0
- package/lib/form/index.js +283 -0
- package/lib/form/types.d.ts +243 -0
- package/lib/form/types.js +5 -0
- package/lib/form/withFieldHOC.d.ts +14 -0
- package/lib/form/withFieldHOC.js +71 -0
- package/lib/form/withFormSecurity.d.ts +15 -0
- package/lib/form/withFormSecurity.js +55 -0
- package/lib/gridlayout/GridCol.d.ts +6 -0
- package/lib/gridlayout/GridCol.js +34 -0
- package/lib/gridlayout/GridRow.d.ts +6 -0
- package/lib/gridlayout/GridRow.js +34 -0
- package/lib/gridlayout/index.d.ts +8 -0
- package/lib/gridlayout/index.js +16 -0
- package/lib/gridlayout/types.d.ts +20 -0
- package/lib/gridlayout/types.js +5 -0
- package/lib/hint/helpers.d.ts +3 -0
- package/lib/hint/helpers.js +21 -0
- package/lib/hint/index.d.ts +7 -0
- package/lib/hint/index.js +36 -0
- package/lib/hint/types.d.ts +14 -0
- package/lib/hint/types.js +5 -0
- package/lib/icons/helper.d.ts +636 -0
- package/lib/icons/helper.js +640 -0
- package/lib/icons/index.d.ts +15 -0
- package/lib/icons/index.js +71 -0
- package/lib/icons/types.d.ts +49 -0
- package/lib/icons/types.js +5 -0
- package/lib/index.d.ts +39 -0
- package/lib/index.js +69 -0
- package/lib/inputs/base/InputTextBase.d.ts +11 -0
- package/lib/inputs/base/InputTextBase.js +261 -0
- package/lib/inputs/base/Label.d.ts +14 -0
- package/lib/inputs/base/Label.js +35 -0
- package/lib/inputs/base/helpers.d.ts +17 -0
- package/lib/inputs/base/helpers.js +46 -0
- package/lib/inputs/base/types.d.ts +100 -0
- package/lib/inputs/base/types.js +5 -0
- package/lib/inputs/color/index.d.ts +7 -0
- package/lib/inputs/color/index.js +95 -0
- package/lib/inputs/color/types.d.ts +19 -0
- package/lib/inputs/color/types.js +5 -0
- package/lib/inputs/date/Dialog.d.ts +13 -0
- package/lib/inputs/date/Dialog.js +25 -0
- package/lib/inputs/date/Dropdown.d.ts +13 -0
- package/lib/inputs/date/Dropdown.js +32 -0
- package/lib/inputs/date/helpers.d.ts +17 -0
- package/lib/inputs/date/helpers.js +31 -0
- package/lib/inputs/date/index.d.ts +13 -0
- package/lib/inputs/date/index.js +251 -0
- package/lib/inputs/date/types.d.ts +62 -0
- package/lib/inputs/date/types.js +5 -0
- package/lib/inputs/errorMessage/index.d.ts +16 -0
- package/lib/inputs/errorMessage/index.js +26 -0
- package/lib/inputs/file/DefaultFile.d.ts +13 -0
- package/lib/inputs/file/DefaultFile.js +80 -0
- package/lib/inputs/file/DragDropFile.d.ts +13 -0
- package/lib/inputs/file/DragDropFile.js +272 -0
- package/lib/inputs/file/File.d.ts +13 -0
- package/lib/inputs/file/File.js +63 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +13 -0
- package/lib/inputs/file/FileButtonSettings.js +34 -0
- package/lib/inputs/file/helpers.d.ts +13 -0
- package/lib/inputs/file/helpers.js +21 -0
- package/lib/inputs/file/index.d.ts +16 -0
- package/lib/inputs/file/index.js +24 -0
- package/lib/inputs/file/types.d.ts +57 -0
- package/lib/inputs/file/types.js +5 -0
- package/lib/inputs/inputHOC.d.ts +16 -0
- package/lib/inputs/inputHOC.js +44 -0
- package/lib/inputs/mask/BaseMask.d.ts +12 -0
- package/lib/inputs/mask/BaseMask.js +167 -0
- package/lib/inputs/mask/Cnpj.d.ts +15 -0
- package/lib/inputs/mask/Cnpj.js +60 -0
- package/lib/inputs/mask/Cpf.d.ts +15 -0
- package/lib/inputs/mask/Cpf.js +57 -0
- package/lib/inputs/mask/Phone.d.ts +12 -0
- package/lib/inputs/mask/Phone.js +19 -0
- package/lib/inputs/mask/ZipCode.d.ts +12 -0
- package/lib/inputs/mask/ZipCode.js +14 -0
- package/lib/inputs/mask/helpers.d.ts +62 -0
- package/lib/inputs/mask/helpers.js +138 -0
- package/lib/inputs/mask/index.d.ts +17 -0
- package/lib/inputs/mask/index.js +37 -0
- package/lib/inputs/mask/types.d.ts +79 -0
- package/lib/inputs/mask/types.js +5 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +13 -0
- package/lib/inputs/multiSelect/ActionButtons.js +51 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +13 -0
- package/lib/inputs/multiSelect/Dropdown.js +136 -0
- package/lib/inputs/multiSelect/helper.d.ts +13 -0
- package/lib/inputs/multiSelect/helper.js +20 -0
- package/lib/inputs/multiSelect/index.d.ts +13 -0
- package/lib/inputs/multiSelect/index.js +218 -0
- package/lib/inputs/multiSelect/types.d.ts +65 -0
- package/lib/inputs/multiSelect/types.js +5 -0
- package/lib/inputs/number/BaseNumber.d.ts +17 -0
- package/lib/inputs/number/BaseNumber.js +70 -0
- package/lib/inputs/number/Currency.d.ts +17 -0
- package/lib/inputs/number/Currency.js +22 -0
- package/lib/inputs/number/Decimal.d.ts +17 -0
- package/lib/inputs/number/Decimal.js +11 -0
- package/lib/inputs/number/format_number.d.ts +5 -0
- package/lib/inputs/number/format_number.js +27 -0
- package/lib/inputs/number/index.d.ts +19 -0
- package/lib/inputs/number/index.js +64 -0
- package/lib/inputs/number/types.d.ts +39 -0
- package/lib/inputs/number/types.js +5 -0
- package/lib/inputs/period/Dialog.d.ts +14 -0
- package/lib/inputs/period/Dialog.js +25 -0
- package/lib/inputs/period/Dropdown.d.ts +14 -0
- package/lib/inputs/period/Dropdown.js +28 -0
- package/lib/inputs/period/PeriodList.d.ts +14 -0
- package/lib/inputs/period/PeriodList.js +61 -0
- package/lib/inputs/period/helper.d.ts +22 -0
- package/lib/inputs/period/helper.js +66 -0
- package/lib/inputs/period/index.d.ts +14 -0
- package/lib/inputs/period/index.js +423 -0
- package/lib/inputs/period/types.d.ts +73 -0
- package/lib/inputs/period/types.js +5 -0
- package/lib/inputs/search/index.d.ts +16 -0
- package/lib/inputs/search/index.js +129 -0
- package/lib/inputs/select/ActionButtons.d.ts +16 -0
- package/lib/inputs/select/ActionButtons.js +38 -0
- package/lib/inputs/select/Dropdown.d.ts +16 -0
- package/lib/inputs/select/Dropdown.js +112 -0
- package/lib/inputs/select/helper.d.ts +25 -0
- package/lib/inputs/select/helper.js +108 -0
- package/lib/inputs/select/index.d.ts +13 -0
- package/lib/inputs/select/index.js +42 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +13 -0
- package/lib/inputs/select/multiple/Selecteds.js +25 -0
- package/lib/inputs/select/multiple/index.d.ts +13 -0
- package/lib/inputs/select/multiple/index.js +276 -0
- package/lib/inputs/select/simple/index.d.ts +13 -0
- package/lib/inputs/select/simple/index.js +302 -0
- package/lib/inputs/select/types.d.ts +119 -0
- package/lib/inputs/select/types.js +5 -0
- package/lib/inputs/text/index.d.ts +12 -0
- package/lib/inputs/text/index.js +13 -0
- package/lib/inputs/text/types.d.ts +25 -0
- package/lib/inputs/text/types.js +5 -0
- package/lib/inputs/textarea/index.d.ts +12 -0
- package/lib/inputs/textarea/index.js +25 -0
- package/lib/inputs/textarea/types.d.ts +16 -0
- package/lib/inputs/textarea/types.js +5 -0
- package/lib/inputs/types.d.ts +157 -0
- package/lib/inputs/types.js +5 -0
- package/lib/internals/colorStyles.d.ts +9 -0
- package/lib/internals/colorStyles.js +14 -0
- package/lib/internals/constants.d.ts +11 -0
- package/lib/internals/constants.js +15 -0
- package/lib/internals/types.d.ts +25 -0
- package/lib/internals/types.js +5 -0
- package/lib/internals/withTooltip.d.ts +12 -0
- package/lib/internals/withTooltip.js +172 -0
- package/lib/labelMessages/index.d.ts +9 -0
- package/lib/labelMessages/index.js +60 -0
- package/lib/labelMessages/types.d.ts +20 -0
- package/lib/labelMessages/types.js +5 -0
- package/lib/labels/DangerLabel.d.ts +11 -0
- package/lib/labels/DangerLabel.js +23 -0
- package/lib/labels/DefaultLabel.d.ts +14 -0
- package/lib/labels/DefaultLabel.js +55 -0
- package/lib/labels/InfoLabel.d.ts +11 -0
- package/lib/labels/InfoLabel.js +23 -0
- package/lib/labels/PrimaryLabel.d.ts +11 -0
- package/lib/labels/PrimaryLabel.js +23 -0
- package/lib/labels/SuccessLabel.d.ts +11 -0
- package/lib/labels/SuccessLabel.js +23 -0
- package/lib/labels/WarningLabel.d.ts +11 -0
- package/lib/labels/WarningLabel.js +23 -0
- package/lib/labels/index.d.ts +18 -0
- package/lib/labels/index.js +52 -0
- package/lib/labels/label_container/index.d.ts +12 -0
- package/lib/labels/label_container/index.js +22 -0
- package/lib/labels/types.d.ts +26 -0
- package/lib/labels/types.js +5 -0
- package/lib/list/Header.d.ts +10 -0
- package/lib/list/Header.js +23 -0
- package/lib/list/Item.d.ts +13 -0
- package/lib/list/Item.js +162 -0
- package/lib/list/Separator.d.ts +3 -0
- package/lib/list/Separator.js +12 -0
- package/lib/list/helpers.d.ts +15 -0
- package/lib/list/helpers.js +14 -0
- package/lib/list/index.d.ts +13 -0
- package/lib/list/index.js +182 -0
- package/lib/list/types.d.ts +73 -0
- package/lib/list/types.js +5 -0
- package/lib/menus/float/MenuItem.d.ts +9 -0
- package/lib/menus/float/MenuItem.js +69 -0
- package/lib/menus/float/SubMenuContainer.js +77 -0
- package/lib/menus/float/helpers.d.ts +9 -0
- package/lib/menus/float/helpers.js +10 -0
- package/lib/menus/float/index.d.ts +40 -0
- package/lib/menus/float/index.js +68 -0
- package/lib/menus/float/types.d.ts +30 -0
- package/lib/menus/float/types.js +5 -0
- package/lib/menus/index.d.ts +12 -0
- package/lib/menus/index.js +9 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +12 -0
- package/lib/menus/sidenav/ExpandMenu.js +27 -0
- package/lib/menus/sidenav/MenuLink.d.ts +15 -0
- package/lib/menus/sidenav/MenuLink.js +29 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +12 -0
- package/lib/menus/sidenav/NavMenuGroup.js +26 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +15 -0
- package/lib/menus/sidenav/NavMenuItem.js +150 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +12 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +43 -0
- package/lib/menus/sidenav/helpers.d.ts +14 -0
- package/lib/menus/sidenav/helpers.js +18 -0
- package/lib/menus/sidenav/index.d.ts +16 -0
- package/lib/menus/sidenav/index.js +184 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +12 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +26 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +12 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +116 -0
- package/lib/menus/sidenav/types.d.ts +90 -0
- package/lib/menus/sidenav/types.js +5 -0
- package/lib/noPermission/index.d.ts +3 -0
- package/lib/noPermission/index.js +23 -0
- package/lib/panel/Content.d.ts +10 -0
- package/lib/panel/Content.js +79 -0
- package/lib/panel/DangerPanel.d.ts +10 -0
- package/lib/panel/DangerPanel.js +15 -0
- package/lib/panel/Default.d.ts +10 -0
- package/lib/panel/Default.js +67 -0
- package/lib/panel/Header.d.ts +10 -0
- package/lib/panel/Header.js +77 -0
- package/lib/panel/InfoPanel.d.ts +10 -0
- package/lib/panel/InfoPanel.js +15 -0
- package/lib/panel/PrimaryPanel.d.ts +10 -0
- package/lib/panel/PrimaryPanel.js +15 -0
- package/lib/panel/SuccessPanel.d.ts +10 -0
- package/lib/panel/SuccessPanel.js +15 -0
- package/lib/panel/ToolBar.d.ts +10 -0
- package/lib/panel/ToolBar.js +22 -0
- package/lib/panel/WarningPanel.d.ts +10 -0
- package/lib/panel/WarningPanel.js +15 -0
- package/lib/panel/helpers.d.ts +11 -0
- package/lib/panel/helpers.js +25 -0
- package/lib/panel/index.d.ts +18 -0
- package/lib/panel/index.js +59 -0
- package/lib/panel/types.d.ts +47 -0
- package/lib/panel/types.js +5 -0
- package/lib/permissionValidations.d.ts +14 -0
- package/lib/permissionValidations.js +59 -0
- package/lib/popover/PopoverText.d.ts +10 -0
- package/lib/popover/PopoverText.js +20 -0
- package/lib/popover/PopoverTitle.d.ts +10 -0
- package/lib/popover/PopoverTitle.js +17 -0
- package/lib/popover/index.d.ts +15 -0
- package/lib/popover/index.js +63 -0
- package/lib/popover/types.d.ts +24 -0
- package/lib/popover/types.js +5 -0
- package/lib/progress/Bar.d.ts +6 -0
- package/lib/progress/Bar.js +74 -0
- package/lib/progress/index.d.ts +7 -0
- package/lib/progress/index.js +38 -0
- package/lib/progress/types.d.ts +37 -0
- package/lib/progress/types.js +5 -0
- package/lib/radio/index.d.ts +13 -0
- package/lib/radio/index.js +113 -0
- package/lib/radio/types.d.ts +28 -0
- package/lib/radio/types.js +5 -0
- package/lib/shortcuts/index.d.ts +7 -0
- package/lib/shortcuts/index.js +28 -0
- package/lib/shortcuts/types.d.ts +12 -0
- package/lib/shortcuts/types.js +5 -0
- package/lib/skeleton/SkeletonContainer.d.ts +7 -0
- package/lib/skeleton/SkeletonContainer.js +23 -0
- package/lib/skeleton/index.d.ts +8 -0
- package/lib/skeleton/index.js +54 -0
- package/lib/skeleton/types.d.ts +21 -0
- package/lib/skeleton/types.js +5 -0
- package/lib/spinner/SpinnerLoading.d.ts +7 -0
- package/lib/spinner/SpinnerLoading.js +219 -0
- package/lib/spinner/index.d.ts +7 -0
- package/lib/spinner/index.js +60 -0
- package/lib/spinner/types.d.ts +20 -0
- package/lib/spinner/types.js +5 -0
- package/lib/split/Split.d.ts +6 -0
- package/lib/split/Split.js +292 -0
- package/lib/split/SplitSide.d.ts +6 -0
- package/lib/split/SplitSide.js +42 -0
- package/lib/split/helpers.d.ts +10 -0
- package/lib/split/helpers.js +10 -0
- package/lib/split/index.d.ts +8 -0
- package/lib/split/index.js +17 -0
- package/lib/split/types.d.ts +34 -0
- package/lib/split/types.js +5 -0
- package/lib/table/Body.d.ts +6 -0
- package/lib/table/Body.js +71 -0
- package/lib/table/Header.d.ts +6 -0
- package/lib/table/Header.js +90 -0
- package/lib/table/HeaderColumn.d.ts +6 -0
- package/lib/table/HeaderColumn.js +55 -0
- package/lib/table/Row.d.ts +6 -0
- package/lib/table/Row.js +78 -0
- package/lib/table/RowColumn.d.ts +6 -0
- package/lib/table/RowColumn.js +81 -0
- package/lib/table/helpers.d.ts +8 -0
- package/lib/table/helpers.js +15 -0
- package/lib/table/index.d.ts +11 -0
- package/lib/table/index.js +154 -0
- package/lib/table/types.d.ts +97 -0
- package/lib/table/types.js +5 -0
- package/lib/tabs/DropdownTabs.d.ts +11 -0
- package/lib/tabs/DropdownTabs.js +73 -0
- package/lib/tabs/Menu.d.ts +11 -0
- package/lib/tabs/Menu.js +46 -0
- package/lib/tabs/MenuTabs.d.ts +11 -0
- package/lib/tabs/MenuTabs.js +84 -0
- package/lib/tabs/Panel.d.ts +11 -0
- package/lib/tabs/Panel.js +84 -0
- package/lib/tabs/context.d.ts +12 -0
- package/lib/tabs/context.js +127 -0
- package/lib/tabs/index.d.ts +12 -0
- package/lib/tabs/index.js +70 -0
- package/lib/tabs/tabHelpers.d.ts +12 -0
- package/lib/tabs/tabHelpers.js +75 -0
- package/lib/tabs/types.d.ts +98 -0
- package/lib/tabs/types.js +5 -0
- package/lib/tabs/useTabs.d.ts +11 -0
- package/lib/tabs/useTabs.js +11 -0
- package/lib/textContent/index.d.ts +22 -0
- package/lib/textContent/index.js +42 -0
- package/lib/toolbar/ButtonBar.d.ts +12 -0
- package/lib/toolbar/ButtonBar.js +66 -0
- package/lib/toolbar/LabelBar.d.ts +12 -0
- package/lib/toolbar/LabelBar.js +58 -0
- package/lib/toolbar/Separator.d.ts +3 -0
- package/lib/toolbar/Separator.js +12 -0
- package/lib/toolbar/ToolBarGroup.d.ts +12 -0
- package/lib/toolbar/ToolBarGroup.js +19 -0
- package/lib/toolbar/helpers.d.ts +12 -0
- package/lib/toolbar/helpers.js +9 -0
- package/lib/toolbar/index.d.ts +16 -0
- package/lib/toolbar/index.js +65 -0
- package/lib/toolbar/types.d.ts +46 -0
- package/lib/toolbar/types.js +5 -0
- package/lib/tooltip/index.d.ts +6 -0
- package/lib/tooltip/index.js +63 -0
- package/lib/tooltip/types.d.ts +17 -0
- package/lib/tooltip/types.js +5 -0
- package/lib/treetable/Body.d.ts +3 -0
- package/lib/treetable/Body.js +34 -0
- package/lib/treetable/Header.d.ts +3 -0
- package/lib/treetable/Header.js +24 -0
- package/lib/treetable/Row.d.ts +7 -0
- package/lib/treetable/Row.js +209 -0
- package/lib/treetable/helpers.d.ts +19 -0
- package/lib/treetable/helpers.js +32 -0
- package/lib/treetable/index.d.ts +8 -0
- package/lib/treetable/index.js +28 -0
- package/lib/treetable/types.d.js +5 -0
- package/lib/treeview/Header.d.ts +7 -0
- package/lib/treeview/Header.js +21 -0
- package/lib/treeview/Node.d.ts +7 -0
- package/lib/treeview/Node.js +245 -0
- package/lib/treeview/constants.d.ts +7 -0
- package/lib/treeview/constants.js +9 -0
- package/lib/treeview/index.d.ts +9 -0
- package/lib/treeview/index.js +320 -0
- package/lib/treeview/types.d.ts +108 -0
- package/lib/treeview/types.js +5 -0
- package/lib/types.d-73cece43.d.ts +46 -0
- package/lib/uitour/helpers.d.ts +8 -0
- package/lib/uitour/helpers.js +12 -0
- package/lib/uitour/index.d.ts +7 -0
- package/lib/uitour/index.js +255 -0
- package/lib/uitour/types.d.ts +38 -0
- package/lib/uitour/types.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DrawerContent", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Content.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "DrawerHeader", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Header.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.default = void 0;
|
|
19
|
+
var _Drawer = _interopRequireDefault(require("./Drawer"));
|
|
20
|
+
var _Header = _interopRequireDefault(require("./Header"));
|
|
21
|
+
var _Content = _interopRequireDefault(require("./Content"));
|
|
22
|
+
require("../assets/styles/drawers.scss");
|
|
23
|
+
var _withFormSecurity = _interopRequireDefault(require("../form/withFormSecurity"));
|
|
24
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
+
var _default = exports.default = (0, _withFormSecurity.default)(_Drawer.default);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React__default, { ReactNode, ReactElement } from 'react';
|
|
2
|
+
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
|
+
import { Position } from '../@types/Position.js';
|
|
4
|
+
import { IconNames } from '../@types/Icon.js';
|
|
5
|
+
import '../icons/helper.js';
|
|
6
|
+
|
|
7
|
+
interface IDrawerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
overlay?: boolean;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
customClass?: string;
|
|
11
|
+
customClassForContent?: string;
|
|
12
|
+
customClassForDrawer?: string;
|
|
13
|
+
position?: Exclude<Position, 'center'>;
|
|
14
|
+
handlerClose?: () => void;
|
|
15
|
+
closeOnEsc?: boolean;
|
|
16
|
+
targetId?: string;
|
|
17
|
+
permissionAttr?: PermissionAttr | PermissionAttr[];
|
|
18
|
+
skeletonize?: boolean;
|
|
19
|
+
closeOnOutsideClick?: boolean;
|
|
20
|
+
content?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
isWaiting?: boolean;
|
|
23
|
+
}
|
|
24
|
+
interface IDrawerHeaderProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
25
|
+
showCloseButton?: boolean;
|
|
26
|
+
customClass?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
titleRightContent?: ReactElement;
|
|
29
|
+
titleContent?: ReactElement;
|
|
30
|
+
subTitle?: string;
|
|
31
|
+
subTitleContent?: ReactElement;
|
|
32
|
+
icon?: ReactElement;
|
|
33
|
+
titleIcon?: IconNames;
|
|
34
|
+
}
|
|
35
|
+
interface IDrawerContext {
|
|
36
|
+
handlerClose?: () => void;
|
|
37
|
+
hideContent?: boolean;
|
|
38
|
+
skeletonize?: boolean;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { IDrawerContext, IDrawerHeaderProps, IDrawerProps };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPopUpProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
declare const DropdownPopup: ({ id, customClassForDropdown, align, isFloatMenu, topPosition, leftPosition, rightPosition, minWidth, ...props }: IPopUpProps) => React.ReactPortal;
|
|
5
|
+
|
|
6
|
+
export { DropdownPopup as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
|
+
var _uuid = require("uuid");
|
|
10
|
+
const _excluded = ["id", "customClassForDropdown", "align", "isFloatMenu", "topPosition", "leftPosition", "rightPosition", "minWidth"];
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
13
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
14
|
+
const getCalendarDropdownStyle = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
topPosition,
|
|
17
|
+
leftPosition,
|
|
18
|
+
rightPosition,
|
|
19
|
+
align,
|
|
20
|
+
isFloatMenu,
|
|
21
|
+
minWidth
|
|
22
|
+
} = _ref;
|
|
23
|
+
let style = `top: ${topPosition + (isFloatMenu ? 6 : 2)}px; min-width: ${minWidth}px;`;
|
|
24
|
+
if (align === 'left') {
|
|
25
|
+
style += `left: ${leftPosition}px;`;
|
|
26
|
+
} else if (align === 'right') {
|
|
27
|
+
style += `right: ${rightPosition}px;`;
|
|
28
|
+
}
|
|
29
|
+
return style;
|
|
30
|
+
};
|
|
31
|
+
const body = document.getElementsByTagName('body')[0];
|
|
32
|
+
const DropdownPopup = _ref2 => {
|
|
33
|
+
let {
|
|
34
|
+
id,
|
|
35
|
+
customClassForDropdown = '',
|
|
36
|
+
align = 'left',
|
|
37
|
+
isFloatMenu = false,
|
|
38
|
+
topPosition = 0,
|
|
39
|
+
leftPosition = 0,
|
|
40
|
+
rightPosition = 0,
|
|
41
|
+
minWidth = 0
|
|
42
|
+
} = _ref2,
|
|
43
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
44
|
+
const popup = (0, _react.useRef)(document.createElement('div'));
|
|
45
|
+
popup.current.className = `dropdown-component ${customClassForDropdown}`;
|
|
46
|
+
popup.current.dataset.testid = 'dropdown-component';
|
|
47
|
+
popup.current.style.cssText = getCalendarDropdownStyle({
|
|
48
|
+
topPosition,
|
|
49
|
+
leftPosition,
|
|
50
|
+
rightPosition,
|
|
51
|
+
align,
|
|
52
|
+
isFloatMenu,
|
|
53
|
+
minWidth
|
|
54
|
+
});
|
|
55
|
+
if (popup && popup.current) {
|
|
56
|
+
const modalContainers = document.body.getElementsByClassName('modalcontainer');
|
|
57
|
+
const lastModalContainer = modalContainers[modalContainers.length - 1];
|
|
58
|
+
popup.current.style.zIndex = `${modalContainers.length ? Number(lastModalContainer.style.zIndex) + 1 : 99999}`;
|
|
59
|
+
}
|
|
60
|
+
(0, _react.useEffect)(() => {
|
|
61
|
+
body.appendChild(popup.current);
|
|
62
|
+
popup.current.id = id || `dropdown-component-${(0, _uuid.v1)()}`;
|
|
63
|
+
return () => {
|
|
64
|
+
body.removeChild(popup.current);
|
|
65
|
+
};
|
|
66
|
+
}, []);
|
|
67
|
+
return /*#__PURE__*/_reactDom.default.createPortal(props.children, popup.current);
|
|
68
|
+
};
|
|
69
|
+
var _default = exports.default = DropdownPopup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDropdownItemCssClass = exports.contentClass = void 0;
|
|
7
|
+
const contentClass = showClearButton => `content ${showClearButton ? '' : 'noclear'}`;
|
|
8
|
+
exports.contentClass = contentClass;
|
|
9
|
+
const getDropdownItemCssClass = (selected, disabled, striped) => {
|
|
10
|
+
let className = 'item';
|
|
11
|
+
className += selected && !disabled ? ' -selected ' : '';
|
|
12
|
+
className += disabled ? ' -disabled' : '';
|
|
13
|
+
className += !selected && !disabled && striped ? ' -striped ' : '';
|
|
14
|
+
return className;
|
|
15
|
+
};
|
|
16
|
+
exports.getDropdownItemCssClass = getDropdownItemCssClass;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReactNode, Ref, ReactElement } from 'react';
|
|
2
|
+
|
|
3
|
+
interface WithDropdownProps {
|
|
4
|
+
dropdown?: boolean;
|
|
5
|
+
dropdownOpened?: boolean;
|
|
6
|
+
dropdownAlign?: 'left' | 'right';
|
|
7
|
+
isDropdownOpened?: boolean;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
customClassForDropdown?: string;
|
|
10
|
+
closeDropdownOnClickOutside?: boolean;
|
|
11
|
+
showDropdown?: () => void;
|
|
12
|
+
isFloatMenu?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface WrappedComponentProps extends WithDropdownProps {
|
|
15
|
+
getDropdownPopup?: (ref: Ref<HTMLElement | null>) => ReactElement;
|
|
16
|
+
}
|
|
17
|
+
interface GetDisplayNameParams {
|
|
18
|
+
displayName?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
interface WithDropdownContextProps {
|
|
22
|
+
handleDropdownClose: () => void;
|
|
23
|
+
}
|
|
24
|
+
interface IPopUpProps {
|
|
25
|
+
id?: string;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
customClassForDropdown?: string;
|
|
28
|
+
align: 'left' | 'right';
|
|
29
|
+
isFloatMenu?: boolean;
|
|
30
|
+
topPosition?: number;
|
|
31
|
+
leftPosition?: number;
|
|
32
|
+
rightPosition?: number;
|
|
33
|
+
minWidth?: number;
|
|
34
|
+
}
|
|
35
|
+
interface GetCalendarDropdownStyleParams {
|
|
36
|
+
align: 'left' | 'right';
|
|
37
|
+
minWidth: number;
|
|
38
|
+
isFloatMenu: boolean;
|
|
39
|
+
topPosition: number;
|
|
40
|
+
leftPosition: number;
|
|
41
|
+
rightPosition: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { GetCalendarDropdownStyleParams, GetDisplayNameParams, IPopUpProps, WithDropdownContextProps, WithDropdownProps, WrappedComponentProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { WithDropdownContextProps, WithDropdownProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
declare const WithDropdownContext: React__default.Context<WithDropdownContextProps>;
|
|
5
|
+
declare const withDropdown: <ComponentProps extends WithDropdownProps>(WrappedComponent: React__default.ComponentType<ComponentProps>) => {
|
|
6
|
+
(props: ComponentProps): JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { WithDropdownContext, withDropdown as default };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.WithDropdownContext = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _Popup = _interopRequireDefault(require("./Popup"));
|
|
9
|
+
require("../assets/styles/dropdown.scss");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
+
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); }
|
|
14
|
+
const WithDropdownContext = exports.WithDropdownContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
15
|
+
const getDisplayName = Component => Component.displayName || Component.name || 'Component';
|
|
16
|
+
const withDropdown = WrappedComponent => {
|
|
17
|
+
const EnhancedComponent = props => {
|
|
18
|
+
const {
|
|
19
|
+
dropdownOpened,
|
|
20
|
+
showDropdown,
|
|
21
|
+
dropdown,
|
|
22
|
+
closeDropdownOnClickOutside = true,
|
|
23
|
+
customClassForDropdown,
|
|
24
|
+
children,
|
|
25
|
+
dropdownAlign = 'left',
|
|
26
|
+
isFloatMenu,
|
|
27
|
+
isDropdownOpened
|
|
28
|
+
} = props;
|
|
29
|
+
const [opened, setOpened] = (0, _react.useState)(dropdownOpened);
|
|
30
|
+
const [prevOpened, setPrevOpened] = (0, _react.useState)(dropdownOpened);
|
|
31
|
+
const popupRef = (0, _react.useRef)(null);
|
|
32
|
+
const wrappedComponentRef = (0, _react.useRef)(null);
|
|
33
|
+
if (dropdownOpened !== prevOpened) {
|
|
34
|
+
setOpened(dropdownOpened);
|
|
35
|
+
setPrevOpened(dropdownOpened);
|
|
36
|
+
}
|
|
37
|
+
const onClickOutside = event => {
|
|
38
|
+
const {
|
|
39
|
+
target
|
|
40
|
+
} = event;
|
|
41
|
+
if (popupRef?.current && target !== popupRef?.current && !event.composedPath().includes(popupRef.current) && wrappedComponentRef.current !== target) {
|
|
42
|
+
setOpened(false);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
const onDropdownClick = () => {
|
|
46
|
+
setOpened(prevState => !prevState);
|
|
47
|
+
};
|
|
48
|
+
const getDropdown = targetRef => {
|
|
49
|
+
if (!targetRef || !opened) return null;
|
|
50
|
+
wrappedComponentRef.current = targetRef;
|
|
51
|
+
const targetDimensions = targetRef.getBoundingClientRect();
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_Popup.default, {
|
|
53
|
+
topPosition: targetDimensions.top + window.scrollY + targetDimensions.height,
|
|
54
|
+
rightPosition: !isFloatMenu ? window.innerWidth - targetDimensions.x - targetDimensions.width - 4 : undefined,
|
|
55
|
+
leftPosition: targetDimensions.left,
|
|
56
|
+
align: dropdownAlign,
|
|
57
|
+
customClassForDropdown: customClassForDropdown,
|
|
58
|
+
isFloatMenu: isFloatMenu
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
+
className: isFloatMenu ? 'items' : undefined,
|
|
61
|
+
ref: r => {
|
|
62
|
+
popupRef.current = r;
|
|
63
|
+
}
|
|
64
|
+
}, children));
|
|
65
|
+
};
|
|
66
|
+
(0, _react.useEffect)(() => {
|
|
67
|
+
if (dropdown && closeDropdownOnClickOutside) {
|
|
68
|
+
document.addEventListener('click', onClickOutside);
|
|
69
|
+
}
|
|
70
|
+
return () => {
|
|
71
|
+
if (dropdown && closeDropdownOnClickOutside) {
|
|
72
|
+
document.removeEventListener('click', onClickOutside);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}, []);
|
|
76
|
+
const contextValues = {
|
|
77
|
+
handleDropdownClose: onDropdownClick
|
|
78
|
+
};
|
|
79
|
+
const newProps = {
|
|
80
|
+
getDropdownPopup: targetRef => getDropdown(targetRef),
|
|
81
|
+
showDropdown: !showDropdown ? () => setOpened(!opened) : showDropdown,
|
|
82
|
+
isDropdownOpened: isDropdownOpened || opened
|
|
83
|
+
};
|
|
84
|
+
if (!dropdown) return /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
85
|
+
return /*#__PURE__*/_react.default.createElement(WithDropdownContext.Provider, {
|
|
86
|
+
value: contextValues
|
|
87
|
+
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, _extends({}, props, newProps)));
|
|
88
|
+
};
|
|
89
|
+
EnhancedComponent.displayName = `withDropdown(${getDisplayName(WrappedComponent)})`;
|
|
90
|
+
return EnhancedComponent;
|
|
91
|
+
};
|
|
92
|
+
var _default = exports.default = withDropdown;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _gridlayout = _interopRequireDefault(require("../gridlayout"));
|
|
9
|
+
var _permissionValidations = require("../permissionValidations");
|
|
10
|
+
var _noPermission = _interopRequireDefault(require("../noPermission"));
|
|
11
|
+
require("../assets/styles/fieldset.scss");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
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
|
+
const Fieldset = props => {
|
|
21
|
+
const {
|
|
22
|
+
gridCols,
|
|
23
|
+
children,
|
|
24
|
+
title,
|
|
25
|
+
titleAlign = 'left',
|
|
26
|
+
style,
|
|
27
|
+
styleContent,
|
|
28
|
+
styleTitle,
|
|
29
|
+
template = 'none',
|
|
30
|
+
titleCustomClass,
|
|
31
|
+
permissionAttr,
|
|
32
|
+
leftElements = null,
|
|
33
|
+
rightElements = null
|
|
34
|
+
} = props;
|
|
35
|
+
const {
|
|
36
|
+
hideContent,
|
|
37
|
+
unvisible
|
|
38
|
+
} = _permissionValidations.OPTIONS_ON_DENIED;
|
|
39
|
+
const [onDenied] = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)([hideContent, unvisible], permissionAttr));
|
|
40
|
+
const getCssClass = _ref => {
|
|
41
|
+
let {
|
|
42
|
+
type,
|
|
43
|
+
customClass,
|
|
44
|
+
hasError
|
|
45
|
+
} = _ref;
|
|
46
|
+
let cssClass = `fieldset-component ${customClass}`;
|
|
47
|
+
if (type) cssClass = `${cssClass} -${type}`;
|
|
48
|
+
if (hasError) cssClass = `${cssClass} -witherror`;
|
|
49
|
+
return cssClass;
|
|
50
|
+
};
|
|
51
|
+
const getContentStyle = _ref2 => {
|
|
52
|
+
let {
|
|
53
|
+
colsCount = 2,
|
|
54
|
+
rowsCount = 2
|
|
55
|
+
} = _ref2;
|
|
56
|
+
if (template === 'rows') {
|
|
57
|
+
return {
|
|
58
|
+
gridTemplateRows: `repeat(${rowsCount}, 1fr)`
|
|
59
|
+
};
|
|
60
|
+
} else if (template === 'columns') {
|
|
61
|
+
return {
|
|
62
|
+
gridTemplateColumns: `repeat(${colsCount}, 1fr)`
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
return {};
|
|
66
|
+
};
|
|
67
|
+
const renderContent = () => /*#__PURE__*/_react.default.createElement("fieldset", {
|
|
68
|
+
style: style,
|
|
69
|
+
className: getCssClass(_objectSpread({}, props))
|
|
70
|
+
}, onDenied.hideContent ? /*#__PURE__*/_react.default.createElement(_noPermission.default, null) : /*#__PURE__*/_react.default.createElement(_react.Fragment, null, title && /*#__PURE__*/_react.default.createElement("legend", {
|
|
71
|
+
style: styleTitle,
|
|
72
|
+
align: titleAlign,
|
|
73
|
+
className: `legend ${titleCustomClass}`
|
|
74
|
+
}, leftElements, title, rightElements), /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
+
className: `contentfieldset -template${template} `,
|
|
76
|
+
style: Object.assign(getContentStyle(props), styleContent)
|
|
77
|
+
}, children)));
|
|
78
|
+
if (onDenied.unvisible) return null;
|
|
79
|
+
return gridCols ? /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
80
|
+
cols: gridCols
|
|
81
|
+
}, renderContent()) : renderContent();
|
|
82
|
+
};
|
|
83
|
+
var _default = exports.default = Fieldset;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
import { PermissionAttr } from '../@types/PermissionAttr.js';
|
|
3
|
+
import { Position } from '../@types/Position.js';
|
|
4
|
+
|
|
5
|
+
interface IFieldsetProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
customClass?: string;
|
|
8
|
+
template?: 'none' | 'columns' | 'rows';
|
|
9
|
+
titleAlign?: Extract<Position, 'left' | 'right'>;
|
|
10
|
+
title?: string;
|
|
11
|
+
titleCustomClass?: string;
|
|
12
|
+
colsCount?: string | number;
|
|
13
|
+
rowsCount?: number;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
styleContent?: CSSProperties;
|
|
16
|
+
styleTitle?: CSSProperties;
|
|
17
|
+
type?: 'primary' | 'danger' | 'success' | 'warning' | 'info';
|
|
18
|
+
hasError?: boolean;
|
|
19
|
+
gridCols?: string;
|
|
20
|
+
permissionAttr?: PermissionAttr | PermissionAttr[];
|
|
21
|
+
leftElements?: ReactNode;
|
|
22
|
+
rightElements?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
interface ExpandedElement extends Element {
|
|
25
|
+
name?: string;
|
|
26
|
+
value?: string;
|
|
27
|
+
align?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { ExpandedElement, IFieldsetProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { IFieldProps } from './types.js';
|
|
3
|
+
import '../inputs/select/types.js';
|
|
4
|
+
import '../@types/Align.js';
|
|
5
|
+
import '../@types/DataCombo.js';
|
|
6
|
+
import '../@types/PermissionAttr.js';
|
|
7
|
+
import '../inputs/base/types.js';
|
|
8
|
+
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
10
|
+
import '../@types/Position.js';
|
|
11
|
+
|
|
12
|
+
declare const _default: React__default.ForwardRefExoticComponent<Pick<IFieldProps & React__default.RefAttributes<unknown>, "key" | keyof IFieldProps> & React__default.RefAttributes<HTMLElement>>;
|
|
13
|
+
|
|
14
|
+
export { _default as default };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
+
var _withFieldHOC = _interopRequireDefault(require("./withFieldHOC"));
|
|
10
|
+
var _helpers = require("./helpers");
|
|
11
|
+
const _excluded = ["handlerFieldChange", "handlerFieldValidate", "onChange", "onBlur", "name", "validators", "data", "fieldErrors", "handlerStoreValidators", "handlerRemoveValidators", "component", "externalFieldErrors", "originalData"];
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
18
|
+
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; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
20
|
+
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); }
|
|
21
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
22
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
23
|
+
const getEvents = _ref => {
|
|
24
|
+
let {
|
|
25
|
+
validators = [],
|
|
26
|
+
name,
|
|
27
|
+
onBlur,
|
|
28
|
+
handlerFieldValidate,
|
|
29
|
+
validatorFromComponent,
|
|
30
|
+
handlerFieldChange,
|
|
31
|
+
onChange
|
|
32
|
+
} = _ref;
|
|
33
|
+
if (!(validators || validatorFromComponent || onBlur || onChange)) return {};
|
|
34
|
+
const validatorsArray = (0, _helpers.getValidatorsArray)(validators, validatorFromComponent);
|
|
35
|
+
return {
|
|
36
|
+
onBlur: e => {
|
|
37
|
+
if (validatorsArray && e.target && handlerFieldValidate) {
|
|
38
|
+
handlerFieldValidate(name, e.target.value, validatorsArray);
|
|
39
|
+
}
|
|
40
|
+
if (onBlur) onBlur(e);
|
|
41
|
+
},
|
|
42
|
+
onChange: e => {
|
|
43
|
+
if (validatorsArray && e.target && handlerFieldValidate) {
|
|
44
|
+
handlerFieldValidate(name, e.target.value, validatorsArray);
|
|
45
|
+
}
|
|
46
|
+
if (handlerFieldChange) handlerFieldChange(e);
|
|
47
|
+
if (onChange) onChange(e);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
const getCustomProps = (props, handlerSetComponentValidator) => {
|
|
52
|
+
const {
|
|
53
|
+
value,
|
|
54
|
+
data,
|
|
55
|
+
name,
|
|
56
|
+
fieldId,
|
|
57
|
+
componentType,
|
|
58
|
+
component
|
|
59
|
+
} = props;
|
|
60
|
+
if (componentType && componentType.toLowerCase() === 'radio') {
|
|
61
|
+
return {
|
|
62
|
+
checked: _lodash.default.get(data, name) === value,
|
|
63
|
+
id: fieldId
|
|
64
|
+
};
|
|
65
|
+
} else if (componentType && componentType.toLowerCase() === 'checkbox') {
|
|
66
|
+
return {
|
|
67
|
+
checked: _lodash.default.get(data, name),
|
|
68
|
+
id: fieldId
|
|
69
|
+
};
|
|
70
|
+
} else if (component.displayName === 'CpfField' || component.displayName === 'CnpjField') {
|
|
71
|
+
return {
|
|
72
|
+
value: _lodash.default.get(data, name),
|
|
73
|
+
handlerSetComponentValidator
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
value: _lodash.default.get(data, name)
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
const Field = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
81
|
+
const {
|
|
82
|
+
handlerFieldChange,
|
|
83
|
+
handlerFieldValidate,
|
|
84
|
+
onChange,
|
|
85
|
+
onBlur,
|
|
86
|
+
name,
|
|
87
|
+
validators,
|
|
88
|
+
data,
|
|
89
|
+
fieldErrors,
|
|
90
|
+
handlerStoreValidators,
|
|
91
|
+
handlerRemoveValidators,
|
|
92
|
+
component: Component,
|
|
93
|
+
externalFieldErrors,
|
|
94
|
+
originalData
|
|
95
|
+
} = props,
|
|
96
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
97
|
+
const {
|
|
98
|
+
handlerSetValidatorFromComponent,
|
|
99
|
+
validatorFromComponent
|
|
100
|
+
} = (0, _react.useContext)(_helpers.withFieldContext);
|
|
101
|
+
return /*#__PURE__*/_react.default.createElement(Component, _extends({}, rest, getEvents({
|
|
102
|
+
name,
|
|
103
|
+
validators,
|
|
104
|
+
onBlur,
|
|
105
|
+
validatorFromComponent,
|
|
106
|
+
handlerFieldValidate,
|
|
107
|
+
handlerFieldChange,
|
|
108
|
+
onChange
|
|
109
|
+
}), getCustomProps(props, handlerSetValidatorFromComponent), {
|
|
110
|
+
ref: ref,
|
|
111
|
+
name: name,
|
|
112
|
+
errorMessages: (0, _helpers.getErrorMessages)(_objectSpread(_objectSpread({}, props), {}, {
|
|
113
|
+
fieldErrors: props.fieldErrors
|
|
114
|
+
}))
|
|
115
|
+
}));
|
|
116
|
+
});
|
|
117
|
+
Field.displayName = 'Field';
|
|
118
|
+
var _default = exports.default = (0, _withFieldHOC.default)(Field);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { IFieldArrayProps } from './types.js';
|
|
3
|
+
import '../inputs/select/types.js';
|
|
4
|
+
import '../@types/Align.js';
|
|
5
|
+
import '../@types/DataCombo.js';
|
|
6
|
+
import '../@types/PermissionAttr.js';
|
|
7
|
+
import '../inputs/base/types.js';
|
|
8
|
+
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
10
|
+
import '../@types/Position.js';
|
|
11
|
+
|
|
12
|
+
declare const _default: React__default.ForwardRefExoticComponent<IFieldArrayProps & React__default.RefAttributes<HTMLElement>>;
|
|
13
|
+
|
|
14
|
+
export { _default as default };
|