linear-react-components-ui 0.4.77-beta.27 → 0.4.77-beta.29
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/.eslintrc.json +3 -76
- package/.husky/pre-commit +4 -0
- package/.vscode/settings.json +2 -2
- package/jest.config.js +3 -3
- package/lib/alerts/AlertContainer.js +19 -14
- package/lib/alerts/AlertProvider.js +9 -4
- package/lib/alerts/BaseAlert.js +8 -5
- package/lib/alerts/Message.js +40 -31
- package/lib/alerts/alert.spec.js +133 -0
- package/lib/alerts/helpers.js +5 -2
- package/lib/alerts/withAlert.js +2 -2
- package/lib/assets/styles/commons.scss +10 -0
- package/lib/assets/styles/dropdown.scss +36 -2
- package/lib/assets/styles/effects.scss +11 -0
- package/lib/assets/styles/list.scss +8 -0
- package/lib/assets/styles/table.scss +2 -7
- package/lib/avatar/avatar.spec.js +190 -0
- package/lib/avatar/index.js +58 -13
- package/lib/badge/badge.spec.js +127 -0
- package/lib/badge/index.js +22 -6
- package/lib/buttons/ActivateButton.js +3 -3
- package/lib/buttons/AddButton.js +1 -1
- package/lib/buttons/Button.js +11 -19
- package/lib/buttons/ButtonGroups.js +5 -0
- package/lib/buttons/CancelButton.js +3 -16
- package/lib/buttons/DangerButton.js +19 -14
- package/lib/buttons/DefaultButton.js +127 -65
- package/lib/buttons/DestroyButton.js +3 -12
- package/lib/buttons/EditButton.js +3 -3
- package/lib/buttons/InactivateButton.js +3 -3
- package/lib/buttons/InfoButton.js +19 -14
- package/lib/buttons/PrimaryButton.js +19 -14
- package/lib/buttons/RestoreButton.js +3 -3
- package/lib/buttons/SaveButton.js +2 -15
- package/lib/buttons/SpinnerLoading.js +230 -0
- package/lib/buttons/SuccessButton.js +18 -13
- package/lib/buttons/WarningButton.js +18 -13
- package/lib/buttons/button_container/index.js +18 -5
- package/lib/buttons/buttons.spec.js +504 -0
- package/lib/buttons/index.js +28 -28
- package/lib/buttons/split_button/index.js +30 -13
- package/lib/calendar/DangerCalendar.js +2 -11
- package/lib/calendar/InfoCalendar.js +2 -11
- package/lib/calendar/PrimaryCalendar.js +2 -11
- package/lib/calendar/SuccessCalendar.js +2 -11
- package/lib/calendar/WarningCalendar.js +2 -11
- package/lib/calendar/base/Day.js +8 -2
- package/lib/calendar/base/Month.js +5 -0
- package/lib/calendar/base/Week.js +6 -0
- package/lib/calendar/base/helpers.js +9 -9
- package/lib/calendar/base/index.js +36 -33
- package/lib/calendar/calendar.spec.js +171 -0
- package/lib/calendar/index.js +10 -10
- package/lib/checkbox/Label.js +12 -2
- package/lib/checkbox/checkbox.spec.js +215 -0
- package/lib/checkbox/index.js +79 -42
- package/lib/dialog/Alert.js +8 -3
- package/lib/dialog/Custom.js +25 -17
- package/lib/dialog/Error.js +6 -1
- package/lib/dialog/Information.js +6 -1
- package/lib/dialog/Question.js +17 -6
- package/lib/dialog/Warning.js +6 -1
- package/lib/dialog/base/Content.js +9 -0
- package/lib/dialog/base/Footer.js +8 -2
- package/lib/dialog/base/Header.js +22 -8
- package/lib/dialog/base/index.js +28 -6
- package/lib/dialog/dialog.spec.js +488 -0
- package/lib/dialog/form/index.js +32 -22
- package/lib/dialog/index.js +6 -6
- package/lib/drawer/Content.js +10 -1
- package/lib/drawer/Drawer.js +50 -29
- package/lib/drawer/Drawer.spec.js +258 -0
- package/lib/drawer/Header.js +31 -12
- package/lib/drawer/helpers.js +1 -1
- package/lib/drawer/index.js +4 -4
- package/lib/dropdown/Popup.js +16 -32
- package/lib/dropdown/dropdown.spec.js +169 -0
- package/lib/dropdown/helper.js +2 -2
- package/lib/dropdown/withDropdown.js +43 -18
- package/lib/fieldset/fieldset.spec.js +329 -0
- package/lib/fieldset/index.js +43 -12
- package/lib/form/Field.js +41 -14
- package/lib/form/FieldArray.js +50 -20
- package/lib/form/FieldNumber.js +44 -12
- package/lib/form/FieldPeriod.js +41 -19
- package/lib/form/form.spec.js +293 -0
- package/lib/form/helpers.js +16 -10
- package/lib/form/index.js +92 -57
- package/lib/form/withFieldHOC.js +120 -40
- package/lib/form/withFormSecurity.js +38 -17
- package/lib/gridlayout/GridCol.js +18 -3
- package/lib/gridlayout/GridRow.js +24 -4
- package/lib/gridlayout/gridLayout.spec.js +169 -0
- package/lib/icons/helper.js +571 -560
- package/lib/icons/icons.spec.js +86 -0
- package/lib/icons/index.js +40 -23
- package/lib/index.js +12 -12
- package/lib/inputs/base/InputTextBase.js +149 -40
- package/lib/inputs/base/base.spec.js +690 -0
- package/lib/inputs/base/helpers.js +4 -4
- package/lib/inputs/base/index.js +1 -0
- package/lib/inputs/color/color_input.spec.js +174 -0
- package/lib/inputs/color/index.js +29 -31
- package/lib/inputs/date/Dialog.js +8 -1
- package/lib/inputs/date/Dropdown.js +70 -18
- package/lib/inputs/date/date.spec.js +354 -0
- package/lib/inputs/date/helpers.js +1 -1
- package/lib/inputs/date/index.js +411 -255
- package/lib/inputs/inputHOC.js +96 -44
- package/lib/inputs/mask/BaseMask.js +45 -16
- package/lib/inputs/mask/Cnpj.js +19 -12
- package/lib/inputs/mask/Cpf.js +22 -14
- package/lib/inputs/mask/Phone.js +9 -1
- package/lib/inputs/mask/ZipCode.js +1 -1
- package/lib/inputs/mask/helpers.js +36 -21
- package/lib/inputs/mask/imaskHOC.js +255 -186
- package/lib/inputs/mask/index.js +4 -4
- package/lib/inputs/mask/input_mask.spec.js +607 -0
- package/lib/inputs/multiSelect/ActionButtons.js +14 -2
- package/lib/inputs/multiSelect/Dropdown.js +70 -43
- package/lib/inputs/multiSelect/index.js +80 -60
- package/lib/inputs/number/BaseNumber.js +62 -27
- package/lib/inputs/number/Currency.js +14 -4
- package/lib/inputs/number/format_number.js +1 -1
- package/lib/inputs/number/index.js +15 -9
- package/lib/inputs/number/numberfield.spec.js +215 -0
- package/lib/inputs/period/Dialog.js +8 -1
- package/lib/inputs/period/Dropdown.js +70 -16
- package/lib/inputs/period/PeriodList.js +19 -6
- package/lib/inputs/period/helper.js +71 -30
- package/lib/inputs/period/index.js +160 -112
- package/lib/inputs/search/index.js +261 -129
- package/lib/inputs/search/search_input.spec.js +209 -0
- package/lib/inputs/select/ActionButtons.js +20 -14
- package/lib/inputs/select/Dropdown.js +63 -30
- package/lib/inputs/select/helper.js +16 -18
- package/lib/inputs/select/index.js +13 -14
- package/lib/inputs/select/multiple/Selecteds.js +13 -5
- package/lib/inputs/select/multiple/index.js +414 -289
- package/lib/inputs/select/select.spec.js +395 -0
- package/lib/inputs/select/simple/index.js +461 -322
- package/lib/inputs/text/index.js +0 -1
- package/lib/inputs/text/textfield.spec.js +215 -0
- package/lib/inputs/textarea/index.js +15 -5
- package/lib/inputs/textarea/textarea.spec.js +59 -0
- package/lib/internals/constants.js +1 -1
- package/lib/internals/withTooltip.js +34 -26
- package/lib/labelMessages/index.js +45 -27
- package/lib/labelMessages/labelMessages.spec.js +176 -0
- package/lib/labels/DangerLabel.js +4 -13
- package/lib/labels/DefaultLabel.js +57 -25
- package/lib/labels/InfoLabel.js +4 -13
- package/lib/labels/PrimaryLabel.js +4 -13
- package/lib/labels/SuccessLabel.js +4 -13
- package/lib/labels/WarningLabel.js +4 -13
- package/lib/labels/index.js +10 -10
- package/lib/labels/label.spec.js +162 -0
- package/lib/labels/label_container/index.js +12 -2
- package/lib/list/Header.js +13 -0
- package/lib/list/Item.js +65 -27
- package/lib/list/helpers.js +2 -2
- package/lib/list/index.js +51 -31
- package/lib/list/list.spec.js +769 -0
- package/lib/menus/float/MenuItem.js +42 -10
- package/lib/menus/float/SubMenuContainer.js +95 -0
- package/lib/menus/float/float-menu.spec.js +221 -0
- package/lib/menus/float/helpers.js +1 -1
- package/lib/menus/float/index.js +39 -9
- package/lib/menus/sidenav/ExpandMenu.js +13 -1
- package/lib/menus/sidenav/MenuLink.js +14 -0
- package/lib/menus/sidenav/NavMenuGroup.js +12 -1
- package/lib/menus/sidenav/NavMenuItem.js +45 -19
- package/lib/menus/sidenav/NavSubMenuItem.js +15 -4
- package/lib/menus/sidenav/helpers.js +3 -3
- package/lib/menus/sidenav/index.js +60 -30
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +11 -2
- package/lib/menus/sidenav/popup_menu_search/index.js +11 -14
- package/lib/menus/sidenav/sidenav.spec.js +379 -0
- package/lib/panel/Content.js +18 -6
- package/lib/panel/DangerPanel.js +1 -1
- package/lib/panel/Default.js +45 -18
- package/lib/panel/Header.js +29 -7
- package/lib/panel/InfoPanel.js +1 -1
- package/lib/panel/PrimaryPanel.js +1 -1
- package/lib/panel/SuccessPanel.js +1 -1
- package/lib/panel/ToolBar.js +5 -0
- package/lib/panel/WarningPanel.js +1 -1
- package/lib/panel/helpers.js +3 -7
- package/lib/panel/index.js +14 -14
- package/lib/panel/panel.spec.js +216 -0
- package/lib/permissionValidations.js +12 -14
- package/lib/popover/PopoverText.js +5 -0
- package/lib/popover/PopoverTitle.js +5 -0
- package/lib/popover/index.js +40 -26
- package/lib/popover/popover.spec.js +146 -0
- package/lib/progress/Bar.js +47 -37
- package/lib/progress/index.js +18 -8
- package/lib/progress/progress.spec.js +94 -0
- package/lib/radio/index.js +46 -22
- package/lib/radio/radio.spec.js +189 -0
- package/lib/skeleton/SkeletonContainer.js +13 -0
- package/lib/skeleton/index.js +26 -7
- package/lib/spinner/SpinnerLoading.js +12 -4
- package/lib/spinner/index.js +29 -24
- package/lib/spinner/spinner.spec.js +152 -0
- package/lib/split/Split.js +62 -45
- package/lib/split/SplitSide.js +21 -1
- package/lib/split/helpers.js +1 -1
- package/lib/split/split.spec.js +163 -0
- package/lib/table/Body.js +16 -9
- package/lib/table/Header.js +19 -40
- package/lib/table/HeaderColumn.js +20 -6
- package/lib/table/Row.js +28 -7
- package/lib/table/RowColumn.js +30 -12
- package/lib/table/helpers.js +3 -3
- package/lib/table/index.js +53 -15
- package/lib/table/table.spec.js +352 -0
- package/lib/tabs/DropdownItems.js +53 -39
- package/lib/tabs/Menu.js +20 -16
- package/lib/tabs/MenuItems.js +39 -25
- package/lib/tabs/Panel.js +51 -18
- package/lib/tabs/index.js +75 -81
- package/lib/tabs/tabHelpers.js +8 -10
- package/lib/tabs/tabs.spec.js +321 -0
- package/lib/toolbar/ButtonBar.js +13 -32
- package/lib/toolbar/LabelBar.js +18 -31
- package/lib/toolbar/ToolBarGroup.js +12 -6
- package/lib/toolbar/helpers.js +1 -1
- package/lib/toolbar/index.js +33 -25
- package/lib/toolbar/toolbar.spec.js +394 -0
- package/lib/tooltip/index.js +34 -25
- package/lib/tooltip/tooltip.spec.js +215 -0
- package/lib/treeview/Header.js +12 -0
- package/lib/treeview/Node.js +387 -261
- package/lib/treeview/constants.js +2 -1
- package/lib/treeview/index.js +548 -363
- package/lib/treeview/treeview.spec.js +279 -0
- package/lib/treeview_old/Node.js +6 -6
- package/lib/uitour/helpers.js +1 -1
- package/lib/uitour/index.js +32 -15
- package/lib/uitour/uitour.spec.js +176 -0
- package/package.json +16 -40
- package/.husky/pre-push +0 -4
- package/babel.config.json +0 -11
- package/lib/@types/Align.d.ts +0 -3
- 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 -3
- 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 -3
- 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/alerts/AlertContainer.d.ts +0 -16
- package/lib/alerts/AlertProvider.d.ts +0 -7
- package/lib/alerts/BaseAlert.d.ts +0 -7
- package/lib/alerts/Message.d.ts +0 -7
- package/lib/alerts/helpers.d.ts +0 -7
- package/lib/alerts/index.d.ts +0 -6
- package/lib/alerts/types.d.ts +0 -48
- package/lib/alerts/types.js +0 -5
- package/lib/alerts/withAlert.d.ts +0 -7
- package/lib/avatar/index.d.ts +0 -12
- 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/types.d.ts +0 -13
- package/lib/badge/types.js +0 -5
- package/lib/buttons/ActivateButton.d.ts +0 -9
- package/lib/buttons/AddButton.d.ts +0 -9
- package/lib/buttons/Button.d.ts +0 -12
- package/lib/buttons/ButtonGroups.d.ts +0 -8
- package/lib/buttons/CancelButton.d.ts +0 -9
- package/lib/buttons/DangerButton.d.ts +0 -9
- package/lib/buttons/DefaultButton.d.ts +0 -12
- package/lib/buttons/DestroyButton.d.ts +0 -9
- package/lib/buttons/EditButton.d.ts +0 -9
- package/lib/buttons/InactivateButton.d.ts +0 -9
- package/lib/buttons/InfoButton.d.ts +0 -9
- package/lib/buttons/PrimaryButton.d.ts +0 -9
- package/lib/buttons/RestoreButton.d.ts +0 -9
- package/lib/buttons/SaveButton.d.ts +0 -9
- package/lib/buttons/SuccessButton.d.ts +0 -9
- package/lib/buttons/WarningButton.d.ts +0 -9
- package/lib/buttons/button_container/index.d.ts +0 -12
- package/lib/buttons/index.d.ts +0 -21
- package/lib/buttons/split_button/index.d.ts +0 -9
- package/lib/buttons/types.d.ts +0 -44
- package/lib/buttons/types.js +0 -5
- package/lib/calendar/DangerCalendar.d.ts +0 -7
- package/lib/calendar/InfoCalendar.d.ts +0 -7
- package/lib/calendar/PrimaryCalendar.d.ts +0 -7
- package/lib/calendar/SuccessCalendar.d.ts +0 -7
- package/lib/calendar/WarningCalendar.d.ts +0 -7
- package/lib/calendar/base/Day.d.ts +0 -7
- package/lib/calendar/base/Month.d.ts +0 -7
- package/lib/calendar/base/Week.d.ts +0 -7
- package/lib/calendar/base/helpers.d.ts +0 -62
- package/lib/calendar/base/index.d.ts +0 -7
- package/lib/calendar/index.d.ts +0 -10
- package/lib/calendar/types.d.ts +0 -25
- package/lib/calendar/types.js +0 -5
- package/lib/checkbox/Label.d.ts +0 -11
- package/lib/checkbox/index.d.ts +0 -13
- package/lib/checkbox/types.d.ts +0 -42
- package/lib/checkbox/types.js +0 -5
- package/lib/dialog/Alert.d.ts +0 -6
- package/lib/dialog/Custom.d.ts +0 -6
- package/lib/dialog/Error.d.ts +0 -6
- package/lib/dialog/Information.d.ts +0 -6
- package/lib/dialog/Question.d.ts +0 -6
- package/lib/dialog/Warning.d.ts +0 -6
- package/lib/dialog/base/Content.d.ts +0 -6
- package/lib/dialog/base/Footer.d.ts +0 -6
- package/lib/dialog/base/Header.d.ts +0 -6
- package/lib/dialog/base/index.d.ts +0 -6
- package/lib/dialog/form/index.d.ts +0 -6
- package/lib/dialog/index.d.ts +0 -10
- package/lib/dialog/types.d.ts +0 -68
- package/lib/dialog/types.js +0 -5
- package/lib/drawer/Content.d.ts +0 -7
- package/lib/drawer/Drawer.d.ts +0 -7
- package/lib/drawer/Header.d.ts +0 -7
- package/lib/drawer/helpers.d.ts +0 -7
- package/lib/drawer/index.d.ts +0 -9
- package/lib/drawer/types.d.ts +0 -34
- package/lib/drawer/types.js +0 -5
- package/lib/dropdown/Popup.d.ts +0 -6
- package/lib/dropdown/helper.d.ts +0 -4
- package/lib/dropdown/types.d.ts +0 -43
- package/lib/dropdown/types.js +0 -5
- package/lib/dropdown/withDropdown.d.ts +0 -10
- package/lib/fieldset/index.d.ts +0 -8
- package/lib/fieldset/types.d.ts +0 -28
- package/lib/fieldset/types.js +0 -5
- package/lib/form/Field.d.ts +0 -6
- package/lib/form/FieldArray.d.ts +0 -6
- package/lib/form/FieldNumber.d.ts +0 -6
- package/lib/form/FieldPeriod.d.ts +0 -6
- package/lib/form/helpers.d.ts +0 -11
- package/lib/form/index.d.ts +0 -9
- package/lib/form/types.d.ts +0 -168
- package/lib/form/types.js +0 -5
- package/lib/form/withFieldHOC.d.ts +0 -6
- package/lib/form/withFormSecurity.d.ts +0 -7
- package/lib/gridlayout/GridCol.d.ts +0 -6
- package/lib/gridlayout/GridRow.d.ts +0 -6
- package/lib/gridlayout/index.d.ts +0 -5
- package/lib/gridlayout/types.d.ts +0 -20
- package/lib/gridlayout/types.js +0 -5
- package/lib/icons/helper.d.ts +0 -560
- package/lib/icons/index.d.ts +0 -8
- package/lib/icons/types.d.ts +0 -28
- package/lib/icons/types.js +0 -5
- package/lib/index.d.ts +0 -35
- package/lib/inputs/base/InputTextBase.d.ts +0 -8
- package/lib/inputs/base/helpers.d.ts +0 -14
- package/lib/inputs/base/types.d.ts +0 -68
- package/lib/inputs/base/types.js +0 -5
- package/lib/inputs/color/index.d.ts +0 -7
- package/lib/inputs/color/types.d.ts +0 -14
- package/lib/inputs/color/types.js +0 -5
- package/lib/inputs/date/Dialog.d.ts +0 -10
- package/lib/inputs/date/Dropdown.d.ts +0 -10
- package/lib/inputs/date/helpers.d.ts +0 -14
- package/lib/inputs/date/index.d.ts +0 -10
- package/lib/inputs/date/types.d.ts +0 -53
- package/lib/inputs/date/types.js +0 -5
- package/lib/inputs/inputHOC.d.ts +0 -11
- package/lib/inputs/mask/BaseMask.d.ts +0 -12
- package/lib/inputs/mask/Cnpj.d.ts +0 -12
- package/lib/inputs/mask/Cpf.d.ts +0 -12
- package/lib/inputs/mask/Phone.d.ts +0 -9
- package/lib/inputs/mask/ZipCode.d.ts +0 -9
- package/lib/inputs/mask/helpers.d.ts +0 -14
- package/lib/inputs/mask/imaskHOC.d.ts +0 -14
- package/lib/inputs/mask/index.d.ts +0 -11
- package/lib/inputs/mask/types.d.ts +0 -66
- package/lib/inputs/mask/types.js +0 -5
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -10
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -10
- package/lib/inputs/multiSelect/helper.d.ts +0 -9
- package/lib/inputs/multiSelect/index.d.ts +0 -10
- package/lib/inputs/multiSelect/types.d.ts +0 -49
- package/lib/inputs/multiSelect/types.js +0 -5
- package/lib/inputs/number/BaseNumber.d.ts +0 -12
- package/lib/inputs/number/Currency.d.ts +0 -12
- package/lib/inputs/number/Decimal.d.ts +0 -12
- package/lib/inputs/number/format_number.d.ts +0 -4
- package/lib/inputs/number/index.d.ts +0 -14
- package/lib/inputs/number/types.d.ts +0 -30
- package/lib/inputs/number/types.js +0 -5
- package/lib/inputs/period/Dialog.d.ts +0 -11
- package/lib/inputs/period/Dropdown.d.ts +0 -11
- package/lib/inputs/period/PeriodList.d.ts +0 -11
- package/lib/inputs/period/helper.d.ts +0 -19
- package/lib/inputs/period/index.d.ts +0 -11
- package/lib/inputs/period/types.d.ts +0 -58
- package/lib/inputs/period/types.js +0 -5
- package/lib/inputs/search/index.d.ts +0 -11
- package/lib/inputs/select/ActionButtons.d.ts +0 -11
- package/lib/inputs/select/Dropdown.d.ts +0 -11
- package/lib/inputs/select/helper.d.ts +0 -25
- package/lib/inputs/select/index.d.ts +0 -10
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -10
- package/lib/inputs/select/multiple/index.d.ts +0 -10
- package/lib/inputs/select/simple/index.d.ts +0 -10
- package/lib/inputs/select/types.d.ts +0 -98
- package/lib/inputs/select/types.js +0 -5
- package/lib/inputs/text/index.d.ts +0 -11
- package/lib/inputs/text/types.d.ts +0 -25
- package/lib/inputs/text/types.js +0 -5
- package/lib/inputs/textarea/index.d.ts +0 -9
- package/lib/inputs/textarea/types.d.ts +0 -13
- package/lib/inputs/textarea/types.js +0 -5
- package/lib/inputs/types.d.ts +0 -146
- package/lib/inputs/types.js +0 -5
- package/lib/internals/colorStyles.d.ts +0 -9
- package/lib/internals/constants.d.ts +0 -11
- package/lib/internals/types.d.ts +0 -21
- package/lib/internals/types.js +0 -5
- package/lib/internals/withTooltip.d.ts +0 -11
- package/lib/labelMessages/index.d.ts +0 -7
- package/lib/labelMessages/types.d.ts +0 -18
- package/lib/labelMessages/types.js +0 -5
- package/lib/labels/DangerLabel.d.ts +0 -9
- package/lib/labels/DefaultLabel.d.ts +0 -12
- package/lib/labels/InfoLabel.d.ts +0 -9
- package/lib/labels/PrimaryLabel.d.ts +0 -9
- package/lib/labels/SuccessLabel.d.ts +0 -9
- package/lib/labels/WarningLabel.d.ts +0 -9
- package/lib/labels/index.d.ts +0 -13
- package/lib/labels/label_container/index.d.ts +0 -12
- package/lib/labels/types.d.ts +0 -24
- package/lib/labels/types.js +0 -5
- package/lib/list/Header.d.ts +0 -7
- package/lib/list/Item.d.ts +0 -7
- package/lib/list/Separator.d.ts +0 -3
- package/lib/list/helpers.d.ts +0 -12
- package/lib/list/index.d.ts +0 -10
- package/lib/list/types.d.ts +0 -64
- package/lib/list/types.js +0 -5
- package/lib/menus/float/MenuItem.d.ts +0 -7
- package/lib/menus/float/helpers.d.ts +0 -7
- package/lib/menus/float/index.d.ts +0 -8
- package/lib/menus/float/types.d.ts +0 -27
- package/lib/menus/float/types.js +0 -5
- package/lib/menus/index.d.ts +0 -6
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -10
- package/lib/menus/sidenav/MenuLink.d.ts +0 -13
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -10
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -13
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -10
- package/lib/menus/sidenav/helpers.d.ts +0 -12
- package/lib/menus/sidenav/index.d.ts +0 -14
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -10
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -10
- package/lib/menus/sidenav/types.d.ts +0 -82
- package/lib/menus/sidenav/types.js +0 -5
- package/lib/noPermission/index.d.ts +0 -3
- package/lib/panel/Content.d.ts +0 -8
- package/lib/panel/DangerPanel.d.ts +0 -8
- package/lib/panel/Default.d.ts +0 -8
- package/lib/panel/Header.d.ts +0 -8
- package/lib/panel/InfoPanel.d.ts +0 -8
- package/lib/panel/PrimaryPanel.d.ts +0 -8
- package/lib/panel/SuccessPanel.d.ts +0 -8
- package/lib/panel/ToolBar.d.ts +0 -8
- package/lib/panel/WarningPanel.d.ts +0 -8
- package/lib/panel/helpers.d.ts +0 -4
- package/lib/panel/index.d.ts +0 -13
- package/lib/panel/types.d.ts +0 -4
- package/lib/panel/types.js +0 -5
- package/lib/permissionValidations.d.ts +0 -14
- package/lib/popover/PopoverText.d.ts +0 -8
- package/lib/popover/PopoverTitle.d.ts +0 -8
- package/lib/popover/index.d.ts +0 -13
- package/lib/popover/types.d.ts +0 -21
- package/lib/popover/types.js +0 -5
- package/lib/progress/Bar.d.ts +0 -6
- package/lib/progress/index.d.ts +0 -7
- package/lib/progress/types.d.ts +0 -37
- package/lib/progress/types.js +0 -5
- package/lib/radio/index.d.ts +0 -12
- package/lib/radio/types.d.ts +0 -18
- package/lib/radio/types.js +0 -5
- package/lib/skeleton/SkeletonContainer.d.ts +0 -7
- package/lib/skeleton/index.d.ts +0 -8
- 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/index.d.ts +0 -7
- 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/SplitSide.d.ts +0 -6
- package/lib/split/helpers.d.ts +0 -10
- package/lib/split/index.d.ts +0 -5
- package/lib/split/types.d.ts +0 -34
- package/lib/split/types.js +0 -5
- package/lib/table/Body.d.ts +0 -6
- package/lib/table/Header.d.ts +0 -6
- package/lib/table/HeaderColumn.d.ts +0 -6
- package/lib/table/Row.d.ts +0 -6
- package/lib/table/RowColumn.d.ts +0 -6
- package/lib/table/helpers.d.ts +0 -8
- package/lib/table/index.d.ts +0 -11
- package/lib/table/types.d.ts +0 -84
- package/lib/table/types.js +0 -5
- package/lib/tabs/DropdownItems.d.ts +0 -9
- package/lib/tabs/Menu.d.ts +0 -9
- package/lib/tabs/MenuItems.d.ts +0 -9
- package/lib/tabs/Panel.d.ts +0 -9
- package/lib/tabs/index.d.ts +0 -10
- package/lib/tabs/tabHelpers.d.ts +0 -21
- package/lib/tabs/types.d.ts +0 -63
- package/lib/tabs/types.js +0 -5
- package/lib/toolbar/ButtonBar.d.ts +0 -10
- package/lib/toolbar/LabelBar.d.ts +0 -10
- package/lib/toolbar/Separator.d.ts +0 -3
- package/lib/toolbar/ToolBarGroup.d.ts +0 -10
- package/lib/toolbar/helpers.d.ts +0 -10
- package/lib/toolbar/index.d.ts +0 -14
- package/lib/toolbar/types.d.ts +0 -43
- package/lib/toolbar/types.js +0 -5
- package/lib/tooltip/index.d.ts +0 -6
- package/lib/tooltip/types.d.ts +0 -16
- package/lib/tooltip/types.js +0 -5
- package/lib/treeview/Header.d.ts +0 -7
- package/lib/treeview/Node.d.ts +0 -7
- package/lib/treeview/constants.d.ts +0 -7
- package/lib/treeview/index.d.ts +0 -9
- package/lib/treeview/types.d.ts +0 -104
- package/lib/treeview/types.js +0 -5
- package/lib/types-3c6f1c20.d.ts +0 -46
- package/lib/uitour/helpers.d.ts +0 -8
- package/lib/uitour/index.d.ts +0 -6
- package/lib/uitour/types.d.ts +0 -30
- package/lib/uitour/types.js +0 -5
- package/tsconfig.json +0 -32
- package/tsup.config.ts +0 -10
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { DateTypes } from './types.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../@types/ColorStyles.js';
|
|
5
|
-
import '../../@types/Period.js';
|
|
6
|
-
import '../../@types/PermissionAttr.js';
|
|
7
|
-
import '../base/types.js';
|
|
8
|
-
|
|
9
|
-
declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width }: {
|
|
10
|
-
topPosition: number | string;
|
|
11
|
-
leftPosition: number | string;
|
|
12
|
-
width: number | string;
|
|
13
|
-
}) => string;
|
|
14
|
-
|
|
15
|
-
declare const getDropdownItemCssClass: (selected?: boolean, disabled?: boolean, striped?: boolean) => string;
|
|
16
|
-
declare const CalcDatesByPeriod: (dateType: DateTypes) => Moment[];
|
|
17
|
-
declare const isDateValid: (date: Moment) => boolean;
|
|
18
|
-
|
|
19
|
-
export { CalcDatesByPeriod, getCalendarDropdownStyle as default, getDropdownItemCssClass, isDateValid };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IPeriodPickerProps } from './types.js';
|
|
2
|
-
import 'moment';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../@types/ColorStyles.js';
|
|
5
|
-
import '../../@types/Period.js';
|
|
6
|
-
import '../../@types/PermissionAttr.js';
|
|
7
|
-
import '../base/types.js';
|
|
8
|
-
|
|
9
|
-
declare const PeriodPicker: (props: IPeriodPickerProps) => JSX.Element | null;
|
|
10
|
-
|
|
11
|
-
export { PeriodPicker as default };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ColorStyles } from '../../@types/ColorStyles.js';
|
|
4
|
-
import { Period } from '../../@types/Period.js';
|
|
5
|
-
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
6
|
-
import { CustomInputEvent } from '../base/types.js';
|
|
7
|
-
|
|
8
|
-
declare type DateTypes = 'today' | 'week' | 'lastweek' | 'last15' | 'month' | 'lastmonth';
|
|
9
|
-
interface IPeriodOptions {
|
|
10
|
-
id: DateTypes | 'custom';
|
|
11
|
-
label?: string;
|
|
12
|
-
}
|
|
13
|
-
interface IDialogProps {
|
|
14
|
-
children: ReactNode | ReactNode[];
|
|
15
|
-
handlerClose: () => void;
|
|
16
|
-
dialogSize: {
|
|
17
|
-
width: string;
|
|
18
|
-
height: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
interface IPeriodDropdownProps {
|
|
22
|
-
topPosition: number | string;
|
|
23
|
-
leftPosition: number | string;
|
|
24
|
-
width: number | string;
|
|
25
|
-
children: JSX.Element | JSX.Element[];
|
|
26
|
-
dropdownRef: (el: HTMLElement) => void;
|
|
27
|
-
targetElement?: HTMLDivElement | HTMLInputElement | null;
|
|
28
|
-
}
|
|
29
|
-
interface IPeriodPickerProps {
|
|
30
|
-
label?: string;
|
|
31
|
-
value?: {
|
|
32
|
-
valueInitial?: Moment | string;
|
|
33
|
-
valueFinal?: Moment | string;
|
|
34
|
-
};
|
|
35
|
-
customClassForLabel?: string;
|
|
36
|
-
labelUppercase?: boolean;
|
|
37
|
-
showButtonOpen?: boolean;
|
|
38
|
-
shouldCloseOnSelect?: boolean;
|
|
39
|
-
openOnFocus?: boolean;
|
|
40
|
-
showCalendarInDialog?: boolean;
|
|
41
|
-
dialogSize?: {
|
|
42
|
-
width: string;
|
|
43
|
-
height: string;
|
|
44
|
-
};
|
|
45
|
-
calendarColorStyle?: ColorStyles;
|
|
46
|
-
required?: boolean;
|
|
47
|
-
onChange?: (event?: CustomInputEvent, maskValue?: string, date?: Period) => void;
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
permissionAttr?: PermissionAttr;
|
|
50
|
-
errorMessages?: string[];
|
|
51
|
-
name?: string;
|
|
52
|
-
}
|
|
53
|
-
interface IPeriodListProps {
|
|
54
|
-
handleOnSelect: (value: DateTypes | 'custom', date: Moment[] | null) => void;
|
|
55
|
-
selected?: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { DateTypes, IDialogProps, IPeriodDropdownProps, IPeriodListProps, IPeriodOptions, IPeriodPickerProps };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ISearchProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/PermissionAttr.js';
|
|
4
|
-
import '../../@types/DataCombo.js';
|
|
5
|
-
import '../select/types.js';
|
|
6
|
-
import '../base/types.js';
|
|
7
|
-
import '../../@types/Period.js';
|
|
8
|
-
|
|
9
|
-
declare const SearchField: (props: ISearchProps) => JSX.Element | null;
|
|
10
|
-
|
|
11
|
-
export { SearchField as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IActionButtonsSelectProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/PermissionAttr.js';
|
|
4
|
-
import '../../@types/DataCombo.js';
|
|
5
|
-
import './types.js';
|
|
6
|
-
import '../base/types.js';
|
|
7
|
-
import '../../@types/Period.js';
|
|
8
|
-
|
|
9
|
-
declare const ActionButtons: (props: IActionButtonsSelectProps) => JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { ActionButtons as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IDropdownSelectProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/PermissionAttr.js';
|
|
4
|
-
import '../../@types/DataCombo.js';
|
|
5
|
-
import './types.js';
|
|
6
|
-
import '../base/types.js';
|
|
7
|
-
import '../../@types/Period.js';
|
|
8
|
-
|
|
9
|
-
declare const Dropdown: (props: IDropdownSelectProps) => JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { Dropdown as default };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DataCombo } from '../../@types/DataCombo.js';
|
|
2
|
-
import { IDropdownSelectProps } from '../types.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../@types/PermissionAttr.js';
|
|
5
|
-
import './types.js';
|
|
6
|
-
import '../base/types.js';
|
|
7
|
-
import '../../@types/Period.js';
|
|
8
|
-
|
|
9
|
-
declare const contentClass: (props: IDropdownSelectProps) => string;
|
|
10
|
-
declare const getDropdownItemCssClass: (selected: boolean, disabled: boolean, striped: boolean) => string;
|
|
11
|
-
interface GetFilteredParams {
|
|
12
|
-
dataSource: DataCombo[];
|
|
13
|
-
descriptionKey: string;
|
|
14
|
-
inputText: string;
|
|
15
|
-
currents: DataCombo[];
|
|
16
|
-
}
|
|
17
|
-
declare const getFilteredSimpleDataCombo: ({ dataSource, descriptionKey, inputText, }: Omit<GetFilteredParams, 'currents'>) => any[];
|
|
18
|
-
declare const getFilteredMultipleDataCombo: ({ dataSource, inputText, descriptionKey, currents, }: GetFilteredParams) => any[];
|
|
19
|
-
declare const returnDropdownDynamicStyles: ({ selectFieldRef, dropdownMaxHeight, dropdownRef }: IDropdownSelectProps) => {
|
|
20
|
-
maxHeight: number;
|
|
21
|
-
top: number;
|
|
22
|
-
left: number;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export { contentClass, getDropdownItemCssClass, getFilteredMultipleDataCombo, getFilteredSimpleDataCombo, returnDropdownDynamicStyles };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ISelectFieldProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/DataCombo.js';
|
|
4
|
-
import '../../@types/PermissionAttr.js';
|
|
5
|
-
import '../base/types.js';
|
|
6
|
-
import '../../@types/Period.js';
|
|
7
|
-
|
|
8
|
-
declare const SelectField: (props: ISelectFieldProps) => JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { SelectField as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ISelectedsMultipleProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../../@types/DataCombo.js';
|
|
4
|
-
import '../../../@types/PermissionAttr.js';
|
|
5
|
-
import '../../base/types.js';
|
|
6
|
-
import '../../../@types/Period.js';
|
|
7
|
-
|
|
8
|
-
declare const Selecteds: ({ currents, descriptionKey, idKey, handleOnUnselect, }: ISelectedsMultipleProps) => JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { Selecteds as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IMultipleSelectProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../../@types/DataCombo.js';
|
|
4
|
-
import '../../../@types/PermissionAttr.js';
|
|
5
|
-
import '../../base/types.js';
|
|
6
|
-
import '../../../@types/Period.js';
|
|
7
|
-
|
|
8
|
-
declare const MultipleSelect: (props: IMultipleSelectProps) => JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { MultipleSelect as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ISimpleSelectProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../../@types/DataCombo.js';
|
|
4
|
-
import '../../../@types/PermissionAttr.js';
|
|
5
|
-
import '../../base/types.js';
|
|
6
|
-
import '../../../@types/Period.js';
|
|
7
|
-
|
|
8
|
-
declare const SimpleSelect: (props: ISimpleSelectProps) => JSX.Element;
|
|
9
|
-
|
|
10
|
-
export { SimpleSelect as default };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { DataCombo } from '../../@types/DataCombo.js';
|
|
3
|
-
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
4
|
-
import { CustomInputEvent } from '../base/types.js';
|
|
5
|
-
import '../../@types/Period.js';
|
|
6
|
-
|
|
7
|
-
interface ISimpleSelectProps {
|
|
8
|
-
idKey: string;
|
|
9
|
-
descriptionKey: string;
|
|
10
|
-
dataSource?: DataCombo[];
|
|
11
|
-
id?: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
placeHolder?: string;
|
|
14
|
-
hint?: string;
|
|
15
|
-
value?: string | number | boolean | number[];
|
|
16
|
-
textAlign?: string;
|
|
17
|
-
errorMessages?: string[];
|
|
18
|
-
showClearButton?: boolean;
|
|
19
|
-
searchOnDropdown?: boolean;
|
|
20
|
-
searchNotFoundText?: string;
|
|
21
|
-
onChange?: (e: CustomInputEvent) => void;
|
|
22
|
-
undigitable?: boolean;
|
|
23
|
-
name?: string;
|
|
24
|
-
selectFirstOnEnter?: boolean;
|
|
25
|
-
openDropdownOnFocus?: boolean;
|
|
26
|
-
onSearch?: (value: string) => void;
|
|
27
|
-
remoteSearch?: boolean;
|
|
28
|
-
onBlur?: (e: CustomInputEvent) => void;
|
|
29
|
-
onClick?: () => void;
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
readOnly?: boolean;
|
|
32
|
-
gridLayout?: string;
|
|
33
|
-
inputText?: string;
|
|
34
|
-
striped?: boolean | false;
|
|
35
|
-
permissionAttr?: PermissionAttr;
|
|
36
|
-
maxLength?: number;
|
|
37
|
-
dropdownMaxHeight?: number;
|
|
38
|
-
multiple?: boolean;
|
|
39
|
-
rounded?: boolean;
|
|
40
|
-
required?: boolean;
|
|
41
|
-
autoFocus?: boolean;
|
|
42
|
-
onFocus?: () => void;
|
|
43
|
-
allOptions?: {
|
|
44
|
-
idValue: number | null;
|
|
45
|
-
label: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
interface ISelectFieldProps extends Omit<ISimpleSelectProps, 'idKey' | 'descriptionKey'> {
|
|
49
|
-
multiple?: boolean;
|
|
50
|
-
gridLayout?: string;
|
|
51
|
-
descriptionKey?: string;
|
|
52
|
-
idKey?: string;
|
|
53
|
-
dataSource?: DataCombo[];
|
|
54
|
-
showClearButton?: boolean;
|
|
55
|
-
searchOnDropdown?: boolean;
|
|
56
|
-
searchNotFoundText?: string;
|
|
57
|
-
inputText?: string | '';
|
|
58
|
-
striped?: boolean | false;
|
|
59
|
-
readOnly?: boolean;
|
|
60
|
-
undigitable?: boolean;
|
|
61
|
-
rounded?: boolean;
|
|
62
|
-
selectFirstOnEnter?: boolean;
|
|
63
|
-
remoteSearch?: boolean;
|
|
64
|
-
openDropdownOnFocus?: boolean;
|
|
65
|
-
autoFocus?: boolean;
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
required?: boolean;
|
|
68
|
-
}
|
|
69
|
-
interface IMultipleSelectProps extends Omit<ISimpleSelectProps, 'idKey' | 'value' | 'descriptionKey'> {
|
|
70
|
-
descriptionKey: string;
|
|
71
|
-
idKey: string;
|
|
72
|
-
dataSource: DataCombo[];
|
|
73
|
-
searchNotFoundText?: string;
|
|
74
|
-
searchOnDropdown?: boolean;
|
|
75
|
-
value?: number[] | string[];
|
|
76
|
-
showClearButton?: boolean;
|
|
77
|
-
readOnly?: boolean;
|
|
78
|
-
onSearch?: (value: string) => void;
|
|
79
|
-
onSelect?: (data?: string | string[]) => DataCombo;
|
|
80
|
-
remoteSearch?: boolean;
|
|
81
|
-
onBlur?: (e: CustomInputEvent) => void;
|
|
82
|
-
handlerClear?: () => void;
|
|
83
|
-
disabled?: boolean;
|
|
84
|
-
gridLayout?: string;
|
|
85
|
-
}
|
|
86
|
-
interface ISelectedsMultipleProps {
|
|
87
|
-
idKey: string;
|
|
88
|
-
descriptionKey: string;
|
|
89
|
-
currents: DataCombo[];
|
|
90
|
-
handleOnUnselect: (id: string) => void;
|
|
91
|
-
}
|
|
92
|
-
interface IAdvancedFilterProps {
|
|
93
|
-
onStateChange?: (bol?: boolean) => void;
|
|
94
|
-
headerTitle?: string;
|
|
95
|
-
content?: ReactNode | ReactNode[];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export { IAdvancedFilterProps, IMultipleSelectProps, ISelectFieldProps, ISelectedsMultipleProps, ISimpleSelectProps };
|
|
@@ -1,11 +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 '../../internals/types.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
|
|
9
|
-
declare const TextField: (props: ITextField) => JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { TextField as default };
|
|
@@ -1,25 +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 { WithTooltipProps } from '../../internals/types.js';
|
|
5
|
-
import 'react';
|
|
6
|
-
import '../../@types/Position.js';
|
|
7
|
-
|
|
8
|
-
declare type CommonProperties = Pick<WithTooltipProps, 'tooltip' | 'tooltipPosition' | 'tooltipWidth'>;
|
|
9
|
-
interface ITextField extends IBaseProps, CommonProperties {
|
|
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
|
-
textAlign?: string;
|
|
22
|
-
gridLayout?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { ITextField };
|
package/lib/inputs/text/types.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ITextAreaProps } from './types.js';
|
|
2
|
-
import '../base/types.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../../@types/Period.js';
|
|
5
|
-
import '../../@types/PermissionAttr.js';
|
|
6
|
-
|
|
7
|
-
declare const TextArea: (props: ITextAreaProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { TextArea as default };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IBaseProps } from '../base/types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/Period.js';
|
|
4
|
-
import '../../@types/PermissionAttr.js';
|
|
5
|
-
|
|
6
|
-
interface ITextAreaProps extends IBaseProps {
|
|
7
|
-
rows?: number;
|
|
8
|
-
cols?: number;
|
|
9
|
-
customClass?: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { ITextAreaProps };
|
package/lib/inputs/types.d.ts
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { MouseEvent, MutableRefObject, CSSProperties, ReactNode, KeyboardEvent, ReactElement } from 'react';
|
|
2
|
-
import { PermissionAttr, OnDenied } from '../@types/PermissionAttr.js';
|
|
3
|
-
import { DataCombo } from '../@types/DataCombo.js';
|
|
4
|
-
import { IAdvancedFilterProps } from './select/types.js';
|
|
5
|
-
import { IBaseProps, CustomInputEvent } from './base/types.js';
|
|
6
|
-
import '../@types/Period.js';
|
|
7
|
-
|
|
8
|
-
interface ISearchProps extends IBaseProps {
|
|
9
|
-
resetButton?: boolean;
|
|
10
|
-
onReset?: (event?: CustomInputEvent) => void;
|
|
11
|
-
onChange?: (event?: CustomInputEvent) => void;
|
|
12
|
-
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
13
|
-
textAlign?: string;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
readOnly?: boolean;
|
|
16
|
-
value?: string;
|
|
17
|
-
placeHolder?: string;
|
|
18
|
-
permissionAttr?: PermissionAttr;
|
|
19
|
-
advancedFilterProps?: IAdvancedFilterProps;
|
|
20
|
-
rounded?: boolean;
|
|
21
|
-
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null>;
|
|
22
|
-
style?: CSSProperties;
|
|
23
|
-
}
|
|
24
|
-
interface IDropdownProps {
|
|
25
|
-
children: ReactNode | ReactNode[];
|
|
26
|
-
dropdownRef: (el: HTMLDivElement) => void;
|
|
27
|
-
topPosition: number | string;
|
|
28
|
-
leftPosition: number | string;
|
|
29
|
-
width: number | string;
|
|
30
|
-
}
|
|
31
|
-
interface IInputHOCProps {
|
|
32
|
-
value?: string | string[];
|
|
33
|
-
required?: boolean;
|
|
34
|
-
gridLayout?: string;
|
|
35
|
-
visible?: boolean;
|
|
36
|
-
rows?: number;
|
|
37
|
-
cols?: number;
|
|
38
|
-
type?: string;
|
|
39
|
-
}
|
|
40
|
-
interface IMaskHOCProps {
|
|
41
|
-
label?: string;
|
|
42
|
-
value?: string;
|
|
43
|
-
unmask?: boolean;
|
|
44
|
-
name?: string;
|
|
45
|
-
commit?: () => void;
|
|
46
|
-
onChange?: (event: CustomInputEvent, maskValue?: string, date?: string | {
|
|
47
|
-
initial: string;
|
|
48
|
-
final: string;
|
|
49
|
-
}) => void;
|
|
50
|
-
onFocus?: (e: CustomInputEvent) => void;
|
|
51
|
-
onComplete?: (e: CustomInputEvent, maskValue?: string, date?: string) => void;
|
|
52
|
-
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
53
|
-
placeholderChar?: string;
|
|
54
|
-
lazy?: boolean;
|
|
55
|
-
definitions?: object;
|
|
56
|
-
groups?: object;
|
|
57
|
-
pattern?: string;
|
|
58
|
-
format?: () => void;
|
|
59
|
-
parse?: () => void;
|
|
60
|
-
radix?: string;
|
|
61
|
-
thousandsSeparator?: string;
|
|
62
|
-
mapToRadix?: string[];
|
|
63
|
-
scale?: number;
|
|
64
|
-
signed?: boolean;
|
|
65
|
-
normalizeZeros?: boolean;
|
|
66
|
-
padFractionalZeros?: boolean;
|
|
67
|
-
min?: number;
|
|
68
|
-
max?: number;
|
|
69
|
-
dispatch?: () => void;
|
|
70
|
-
permissionAttr?: PermissionAttr;
|
|
71
|
-
handlerSetOnDenied?: (onDeniedValue: OnDenied) => void;
|
|
72
|
-
isNumeric?: boolean;
|
|
73
|
-
required?: boolean;
|
|
74
|
-
onKeyDown?: (e: KeyboardEvent<Element>) => void;
|
|
75
|
-
rightElements?: JSX.Element | JSX.Element[];
|
|
76
|
-
labelUppercase?: boolean;
|
|
77
|
-
readOnly?: boolean;
|
|
78
|
-
disabled?: boolean;
|
|
79
|
-
gridLayout?: string;
|
|
80
|
-
placeHolder?: string;
|
|
81
|
-
customClass?: string;
|
|
82
|
-
customClassForInputContent?: string;
|
|
83
|
-
customClassForLabel?: string;
|
|
84
|
-
textAlign?: string;
|
|
85
|
-
onBlur?: (e: {
|
|
86
|
-
target: {
|
|
87
|
-
value: string;
|
|
88
|
-
name?: string;
|
|
89
|
-
};
|
|
90
|
-
}) => void;
|
|
91
|
-
leftElements?: JSX.Element | JSX.Element[];
|
|
92
|
-
rounded?: boolean;
|
|
93
|
-
errorMessages?: string[];
|
|
94
|
-
skeletonize?: boolean;
|
|
95
|
-
mask?: string | NumberConstructor;
|
|
96
|
-
}
|
|
97
|
-
interface IDropdownSelectProps {
|
|
98
|
-
idKey: string;
|
|
99
|
-
descriptionKey: string;
|
|
100
|
-
dropdownWidth: number;
|
|
101
|
-
showClearButton?: boolean;
|
|
102
|
-
handleOnSelect: (item?: DataCombo) => void;
|
|
103
|
-
handleOnFilter: (value: string) => void;
|
|
104
|
-
handleOnKeydown: (e: KeyboardEvent<Element>) => void;
|
|
105
|
-
handleOnBlur: (item: DataCombo) => void;
|
|
106
|
-
handleOnFocus: () => void;
|
|
107
|
-
opened: boolean;
|
|
108
|
-
dropdownRef: MutableRefObject<HTMLDivElement | null>;
|
|
109
|
-
dataCombo: DataCombo[];
|
|
110
|
-
searchOnDropdown?: boolean;
|
|
111
|
-
searchNotFoundText?: string;
|
|
112
|
-
imgSrcKey?: string;
|
|
113
|
-
selected?: {
|
|
114
|
-
[key: string]: number;
|
|
115
|
-
};
|
|
116
|
-
currents?: DataCombo[];
|
|
117
|
-
imageAlign?: 'left' | 'right';
|
|
118
|
-
striped?: boolean;
|
|
119
|
-
gridWrapperStyle?: {
|
|
120
|
-
paddingLeft: string;
|
|
121
|
-
paddingRight: string;
|
|
122
|
-
};
|
|
123
|
-
selectFieldRef?: MutableRefObject<HTMLInputElement | null>;
|
|
124
|
-
dropdownMaxHeight?: number;
|
|
125
|
-
inputValue?: string;
|
|
126
|
-
align?: 'left' | 'right';
|
|
127
|
-
}
|
|
128
|
-
interface IActionButtonsSelectProps {
|
|
129
|
-
handleClear: () => void;
|
|
130
|
-
handleOpenClose: () => void;
|
|
131
|
-
dropDownOpened: boolean;
|
|
132
|
-
showClearButton?: boolean;
|
|
133
|
-
disabled?: boolean;
|
|
134
|
-
}
|
|
135
|
-
interface IButtonsProps {
|
|
136
|
-
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
137
|
-
icon: ReactElement;
|
|
138
|
-
key: string;
|
|
139
|
-
boxShadow: boolean;
|
|
140
|
-
readOnly?: boolean;
|
|
141
|
-
style: CSSProperties;
|
|
142
|
-
transparent: boolean;
|
|
143
|
-
disabled?: boolean;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export { IActionButtonsSelectProps, IButtonsProps, IDropdownProps, IDropdownSelectProps, IInputHOCProps, IMaskHOCProps, ISearchProps };
|
package/lib/inputs/types.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const keyCodes: {
|
|
2
|
-
TAB: number;
|
|
3
|
-
ENTER: number;
|
|
4
|
-
ARROW_UP: number;
|
|
5
|
-
ARROW_DOWN: number;
|
|
6
|
-
BACKSPACE: number;
|
|
7
|
-
F: number;
|
|
8
|
-
};
|
|
9
|
-
declare const PARA_ENGANAR_O_ESLINT_JA_QUE_TENHO_SO_UMA_CONSTANTE = 1;
|
|
10
|
-
|
|
11
|
-
export { PARA_ENGANAR_O_ESLINT_JA_QUE_TENHO_SO_UMA_CONSTANTE, keyCodes };
|
package/lib/internals/types.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { OnDenied } from '../@types/PermissionAttr.js';
|
|
3
|
-
import { Position } from '../@types/Position.js';
|
|
4
|
-
|
|
5
|
-
interface WithTooltipProps {
|
|
6
|
-
tooltipWidth?: string | number;
|
|
7
|
-
space?: number;
|
|
8
|
-
tooltip?: string;
|
|
9
|
-
tooltipPosition?: Exclude<Position, 'center'>;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
handlerSetOnDenied?: (onDeniedValue: OnDenied) => void;
|
|
12
|
-
}
|
|
13
|
-
interface GetDisplayNameParams {
|
|
14
|
-
displayName?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
}
|
|
17
|
-
interface HasToolTipParams {
|
|
18
|
-
tooltip?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { GetDisplayNameParams, HasToolTipParams, WithTooltipProps };
|
package/lib/internals/types.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { WithTooltipProps } from './types.js';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
|
|
6
|
-
declare const withTooltip: <ComponentProps extends WithTooltipProps>(WrappedComponent: React__default.ComponentType<ComponentProps>) => {
|
|
7
|
-
(props: ComponentProps): JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export { withTooltip as default };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ILabelMessagesProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/LabelStyles.js';
|
|
4
|
-
|
|
5
|
-
declare const LabelMessages: ({ style, icon, flat, iconName, handlerClosed, square, visible, children, customClass, type, showCloseButton }: ILabelMessagesProps) => JSX.Element | null;
|
|
6
|
-
|
|
7
|
-
export { LabelMessages as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { LabelStyles } from '../@types/LabelStyles.js';
|
|
3
|
-
|
|
4
|
-
interface ILabelMessagesProps {
|
|
5
|
-
style?: CSSProperties;
|
|
6
|
-
type?: LabelStyles;
|
|
7
|
-
iconName?: string;
|
|
8
|
-
icon?: ReactNode | null;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
customClass?: string;
|
|
11
|
-
handlerClosed?: () => void;
|
|
12
|
-
square?: boolean;
|
|
13
|
-
flat?: boolean;
|
|
14
|
-
showCloseButton?: boolean;
|
|
15
|
-
visible?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { ILabelMessagesProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ILabelProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const DangerLabel: ({ className, ...rest }: ILabelProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
export { DangerLabel as default };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ILabelProps } from './types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../@types/PermissionAttr.js';
|
|
4
|
-
import '../@types/Position.js';
|
|
5
|
-
import '../@types/Size.js';
|
|
6
|
-
|
|
7
|
-
declare const _default: {
|
|
8
|
-
(props: ILabelProps): JSX.Element;
|
|
9
|
-
displayName: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export { _default as default };
|