linear-react-components-ui 1.1.26-beta.6 → 1.1.26-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -10
- package/lib/@types/Align.d.ts +0 -2
- package/lib/@types/ButtonTypes.d.ts +0 -1
- package/lib/@types/ColorStyles.d.ts +0 -1
- package/lib/@types/DataCombo.d.ts +0 -1
- package/lib/@types/Icon.d.ts +0 -2
- package/lib/@types/LabelStyles.d.ts +0 -1
- package/lib/@types/Period.d.ts +0 -4
- package/lib/@types/PermissionAttr.d.ts +0 -12
- package/lib/@types/PointerEvents.d.ts +0 -1
- package/lib/@types/Position.d.ts +0 -1
- package/lib/@types/PositionAlert.d.ts +0 -1
- package/lib/@types/Size.d.ts +0 -1
- package/lib/@types/SizePixels.d.ts +0 -1
- package/lib/@types/StorageMock.d.ts +0 -3
- package/lib/alerts/AlertContainer.d.ts +0 -12
- package/lib/alerts/AlertContainer.js +0 -64
- package/lib/alerts/AlertProvider.d.ts +0 -3
- package/lib/alerts/AlertProvider.js +0 -40
- package/lib/alerts/BaseAlert.d.ts +0 -3
- package/lib/alerts/BaseAlert.js +0 -18
- package/lib/alerts/Message.d.ts +0 -3
- package/lib/alerts/Message.js +0 -67
- package/lib/alerts/alert.spec.d.ts +0 -0
- package/lib/alerts/helpers.d.ts +0 -3
- package/lib/alerts/helpers.js +0 -5
- package/lib/alerts/index.d.ts +0 -4
- package/lib/alerts/index.js +0 -6
- package/lib/alerts/types.d.ts +0 -47
- package/lib/alerts/withAlert.d.ts +0 -4
- package/lib/alerts/withAlert.js +0 -10
- package/lib/assets/BaseAlert.css +0 -1
- package/lib/assets/Content.css +0 -1
- package/lib/assets/DefaultFile.css +0 -1
- package/lib/assets/Drawer.css +0 -1
- package/lib/assets/InputTextBase.css +0 -1
- package/lib/assets/button.css +0 -1
- package/lib/assets/gridlayout.css +0 -1
- package/lib/assets/index.css +0 -1
- package/lib/assets/index10.css +0 -1
- package/lib/assets/index11.css +0 -1
- package/lib/assets/index12.css +0 -1
- package/lib/assets/index13.css +0 -1
- package/lib/assets/index14.css +0 -1
- package/lib/assets/index15.css +0 -1
- package/lib/assets/index16.css +0 -1
- package/lib/assets/index17.css +0 -1
- package/lib/assets/index18.css +0 -1
- package/lib/assets/index19.css +0 -1
- package/lib/assets/index2.css +0 -1
- package/lib/assets/index20.css +0 -1
- package/lib/assets/index21.css +0 -1
- package/lib/assets/index22.css +0 -1
- package/lib/assets/index23.css +0 -1
- package/lib/assets/index24.css +0 -1
- package/lib/assets/index25.css +0 -1
- package/lib/assets/index26.css +0 -1
- package/lib/assets/index27.css +0 -1
- package/lib/assets/index28.css +0 -1
- package/lib/assets/index3.css +0 -1
- package/lib/assets/index4.css +0 -1
- package/lib/assets/index5.css +0 -1
- package/lib/assets/index6.css +0 -1
- package/lib/assets/index7.css +0 -1
- package/lib/assets/index8.css +0 -1
- package/lib/assets/index9.css +0 -1
- package/lib/assets/label.css +0 -1
- package/lib/assets/noPermission.css +0 -1
- package/lib/assets/panel.css +0 -1
- package/lib/assets/progressbar.css +0 -1
- package/lib/assets/radio.css +0 -1
- package/lib/assets/skeleton.css +0 -1
- package/lib/assets/table.css +0 -1
- package/lib/assets/tabs.css +0 -1
- package/lib/assets/toolbar.css +0 -1
- package/lib/assets/withDropdown.css +0 -1
- package/lib/avatar/avatar.spec.d.ts +0 -1
- package/lib/avatar/index.d.ts +0 -6
- package/lib/avatar/index.js +0 -77
- package/lib/avatar/types.d.ts +0 -27
- package/lib/badge/badge.spec.d.ts +0 -1
- package/lib/badge/index.d.ts +0 -3
- package/lib/badge/index.js +0 -26
- package/lib/badge/types.d.ts +0 -10
- package/lib/buttons/ActivateButton.d.ts +0 -3
- package/lib/buttons/ActivateButton.js +0 -6
- package/lib/buttons/AddButton.d.ts +0 -3
- package/lib/buttons/AddButton.js +0 -7
- package/lib/buttons/Button.d.ts +0 -6
- package/lib/buttons/Button.js +0 -8
- package/lib/buttons/ButtonGroups.d.ts +0 -6
- package/lib/buttons/ButtonGroups.js +0 -5
- package/lib/buttons/CancelButton.d.ts +0 -3
- package/lib/buttons/CancelButton.js +0 -6
- package/lib/buttons/DangerButton.d.ts +0 -3
- package/lib/buttons/DangerButton.js +0 -6
- package/lib/buttons/DefaultButton.d.ts +0 -6
- package/lib/buttons/DefaultButton.js +0 -129
- package/lib/buttons/DestroyButton.d.ts +0 -3
- package/lib/buttons/DestroyButton.js +0 -7
- package/lib/buttons/EditButton.d.ts +0 -3
- package/lib/buttons/EditButton.js +0 -6
- package/lib/buttons/InactivateButton.d.ts +0 -3
- package/lib/buttons/InactivateButton.js +0 -6
- package/lib/buttons/InfoButton.d.ts +0 -3
- package/lib/buttons/InfoButton.js +0 -6
- package/lib/buttons/PrimaryButton.d.ts +0 -3
- package/lib/buttons/PrimaryButton.js +0 -6
- package/lib/buttons/RestoreButton.d.ts +0 -3
- package/lib/buttons/RestoreButton.js +0 -6
- package/lib/buttons/SaveButton.d.ts +0 -3
- package/lib/buttons/SaveButton.js +0 -6
- package/lib/buttons/SuccessButton.d.ts +0 -3
- package/lib/buttons/SuccessButton.js +0 -6
- package/lib/buttons/WarningButton.d.ts +0 -3
- package/lib/buttons/WarningButton.js +0 -6
- package/lib/buttons/button_container/index.d.ts +0 -10
- package/lib/buttons/button_container/index.js +0 -18
- package/lib/buttons/buttons.spec.d.ts +0 -0
- package/lib/buttons/index.d.ts +0 -17
- package/lib/buttons/index.js +0 -33
- package/lib/buttons/split_button/index.d.ts +0 -3
- package/lib/buttons/split_button/index.js +0 -60
- package/lib/buttons/types.d.ts +0 -46
- package/lib/calendar/DangerCalendar.d.ts +0 -3
- package/lib/calendar/DangerCalendar.js +0 -6
- package/lib/calendar/InfoCalendar.d.ts +0 -3
- package/lib/calendar/InfoCalendar.js +0 -6
- package/lib/calendar/PrimaryCalendar.d.ts +0 -3
- package/lib/calendar/PrimaryCalendar.js +0 -6
- package/lib/calendar/SuccessCalendar.d.ts +0 -3
- package/lib/calendar/SuccessCalendar.js +0 -6
- package/lib/calendar/WarningCalendar.d.ts +0 -3
- package/lib/calendar/WarningCalendar.js +0 -6
- package/lib/calendar/base/Day.d.ts +0 -3
- package/lib/calendar/base/Day.js +0 -27
- package/lib/calendar/base/Month.d.ts +0 -3
- package/lib/calendar/base/Month.js +0 -25
- package/lib/calendar/base/Week.d.ts +0 -3
- package/lib/calendar/base/Week.js +0 -23
- package/lib/calendar/base/helpers.d.ts +0 -59
- package/lib/calendar/base/helpers.js +0 -108
- package/lib/calendar/base/index.d.ts +0 -3
- package/lib/calendar/base/index.js +0 -103
- package/lib/calendar/calendar.spec.d.ts +0 -0
- package/lib/calendar/index.d.ts +0 -8
- package/lib/calendar/index.js +0 -14
- package/lib/calendar/types.d.ts +0 -27
- package/lib/checkbox/checkbox.spec.d.ts +0 -1
- package/lib/checkbox/index.d.ts +0 -9
- package/lib/checkbox/index.js +0 -31
- package/lib/checkbox/types.d.ts +0 -45
- package/lib/chunks/index.CM1aLH2W.js +0 -205
- package/lib/chunks/index.Df3kt2LQ.js +0 -667
- package/lib/chunks/jsx-runtime.C7wFtzyj.js +0 -284
- package/lib/chunks/lodash.CIAK_hAg.js +0 -3684
- package/lib/chunks/moment.DMLRxgRE.js +0 -2589
- package/lib/chunks/tabs.D0L_nVfP.js +0 -245
- package/lib/chunks/v1.Ds1rkxUj.js +0 -49
- package/lib/dialog/Alert.d.ts +0 -3
- package/lib/dialog/Alert.js +0 -23
- package/lib/dialog/Custom.d.ts +0 -3
- package/lib/dialog/Custom.js +0 -33
- package/lib/dialog/Error.d.ts +0 -3
- package/lib/dialog/Error.js +0 -23
- package/lib/dialog/Information.d.ts +0 -3
- package/lib/dialog/Information.js +0 -23
- package/lib/dialog/Question.d.ts +0 -3
- package/lib/dialog/Question.js +0 -60
- package/lib/dialog/Warning.d.ts +0 -3
- package/lib/dialog/Warning.js +0 -23
- package/lib/dialog/base/Content.d.ts +0 -3
- package/lib/dialog/base/Content.js +0 -6
- package/lib/dialog/base/Footer.d.ts +0 -3
- package/lib/dialog/base/Footer.js +0 -5
- package/lib/dialog/base/Header.d.ts +0 -3
- package/lib/dialog/base/Header.js +0 -7
- package/lib/dialog/base/index.d.ts +0 -10
- package/lib/dialog/base/index.js +0 -9
- package/lib/dialog/base/style.d.ts +0 -7
- package/lib/dialog/dialog.spec.d.ts +0 -0
- package/lib/dialog/form/index.d.ts +0 -5
- package/lib/dialog/form/index.js +0 -15
- package/lib/dialog/index.d.ts +0 -9
- package/lib/dialog/index.js +0 -16
- package/lib/dialog/types.d.ts +0 -107
- package/lib/dialog/wizard/index.d.ts +0 -9
- package/lib/dialog/wizard/index.js +0 -14
- package/lib/dialog/wizard/progressbar.d.ts +0 -11
- package/lib/dialog/wizard/progressbar.js +0 -89
- package/lib/dialog/wizard/step.d.ts +0 -2
- package/lib/dialog/wizard/step.js +0 -5
- package/lib/dialog/wizard/useWizard.d.ts +0 -2
- package/lib/dialog/wizard/useWizard.js +0 -32
- package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
- package/lib/drawer/Content.d.ts +0 -3
- package/lib/drawer/Content.js +0 -11
- package/lib/drawer/Drawer.d.ts +0 -4
- package/lib/drawer/Drawer.js +0 -72
- package/lib/drawer/Drawer.spec.d.ts +0 -1
- package/lib/drawer/Header.d.ts +0 -3
- package/lib/drawer/Header.js +0 -43
- package/lib/drawer/helpers.d.ts +0 -4
- package/lib/drawer/helpers.js +0 -5
- package/lib/drawer/index.d.ts +0 -5
- package/lib/drawer/index.js +0 -10
- package/lib/drawer/types.d.ts +0 -37
- package/lib/dropdown/Popup.d.ts +0 -3
- package/lib/dropdown/Popup.js +0 -49
- package/lib/dropdown/dropdown.spec.d.ts +0 -1
- package/lib/dropdown/helper.d.ts +0 -2
- package/lib/dropdown/helper.js +0 -8
- package/lib/dropdown/types.d.ts +0 -45
- package/lib/dropdown/withDropdown.d.ts +0 -9
- package/lib/dropdown/withDropdown.js +0 -55
- package/lib/fieldset/fieldset.spec.d.ts +0 -1
- package/lib/fieldset/index.d.ts +0 -3
- package/lib/fieldset/index.js +0 -51
- package/lib/fieldset/types.d.ts +0 -27
- package/lib/form/Field.d.ts +0 -2
- package/lib/form/Field.js +0 -72
- package/lib/form/FieldArray.d.ts +0 -2
- package/lib/form/FieldArray.js +0 -89
- package/lib/form/FieldNumber.d.ts +0 -2
- package/lib/form/FieldNumber.js +0 -44
- package/lib/form/FieldPeriod.d.ts +0 -2
- package/lib/form/FieldPeriod.js +0 -64
- package/lib/form/form.spec.d.ts +0 -0
- package/lib/form/helpers.d.ts +0 -8
- package/lib/form/helpers.js +0 -25
- package/lib/form/index.d.ts +0 -8
- package/lib/form/index.js +0 -162
- package/lib/form/types.d.ts +0 -233
- package/lib/form/withFieldHOC.d.ts +0 -4
- package/lib/form/withFieldHOC.js +0 -53
- package/lib/form/withFormSecurity.d.ts +0 -6
- package/lib/form/withFormSecurity.js +0 -33
- package/lib/gridlayout/GridCol.d.ts +0 -3
- package/lib/gridlayout/GridCol.js +0 -26
- package/lib/gridlayout/GridRow.d.ts +0 -3
- package/lib/gridlayout/GridRow.js +0 -24
- package/lib/gridlayout/gridLayout.spec.d.ts +0 -1
- package/lib/gridlayout/index.d.ts +0 -4
- package/lib/gridlayout/index.js +0 -6
- package/lib/gridlayout/types.d.ts +0 -17
- package/lib/hint/helpers.d.ts +0 -1
- package/lib/hint/helpers.js +0 -8
- package/lib/hint/hint.spec.d.ts +0 -1
- package/lib/hint/index.d.ts +0 -3
- package/lib/hint/index.js +0 -28
- package/lib/hint/types.d.ts +0 -11
- package/lib/icons/helper.d.ts +0 -635
- package/lib/icons/helper.js +0 -1064
- package/lib/icons/icons.spec.d.ts +0 -1
- package/lib/icons/index.d.ts +0 -6
- package/lib/icons/index.js +0 -58
- package/lib/icons/types.d.ts +0 -46
- package/lib/index.d.ts +0 -10
- package/lib/index.js +0 -27
- package/lib/inputs/base/InputTextBase.d.ts +0 -3
- package/lib/inputs/base/InputTextBase.js +0 -267
- package/lib/inputs/base/Label.d.ts +0 -6
- package/lib/inputs/base/Label.js +0 -32
- package/lib/inputs/base/base.spec.d.ts +0 -1
- package/lib/inputs/base/helpers.d.ts +0 -10
- package/lib/inputs/base/helpers.js +0 -28
- package/lib/inputs/base/types.d.ts +0 -98
- package/lib/inputs/color/color_input.spec.d.ts +0 -0
- package/lib/inputs/color/index.d.ts +0 -3
- package/lib/inputs/color/index.js +0 -78
- package/lib/inputs/color/types.d.ts +0 -16
- package/lib/inputs/date/Dialog.d.ts +0 -3
- package/lib/inputs/date/Dialog.js +0 -18
- package/lib/inputs/date/Dropdown.d.ts +0 -3
- package/lib/inputs/date/Dropdown.js +0 -13
- package/lib/inputs/date/date.spec.d.ts +0 -1
- package/lib/inputs/date/helpers.d.ts +0 -5
- package/lib/inputs/date/helpers.js +0 -10
- package/lib/inputs/date/index.d.ts +0 -3
- package/lib/inputs/date/index.js +0 -170
- package/lib/inputs/date/types.d.ts +0 -56
- package/lib/inputs/errorMessage/error.spec.d.ts +0 -1
- package/lib/inputs/errorMessage/index.d.ts +0 -4
- package/lib/inputs/errorMessage/index.js +0 -16
- package/lib/inputs/file/DefaultFile.d.ts +0 -3
- package/lib/inputs/file/DefaultFile.js +0 -70
- package/lib/inputs/file/DragDropFile.d.ts +0 -3
- package/lib/inputs/file/DragDropFile.js +0 -189
- package/lib/inputs/file/File.d.ts +0 -3
- package/lib/inputs/file/File.js +0 -45
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -3
- package/lib/inputs/file/FileButtonSettings.js +0 -21
- package/lib/inputs/file/filefield.spec.d.ts +0 -1
- package/lib/inputs/file/helpers.d.ts +0 -2
- package/lib/inputs/file/helpers.js +0 -11
- package/lib/inputs/file/index.d.ts +0 -5
- package/lib/inputs/file/index.js +0 -8
- package/lib/inputs/file/types.d.ts +0 -49
- package/lib/inputs/inputHOC.d.ts +0 -4
- package/lib/inputs/inputHOC.js +0 -24
- package/lib/inputs/mask/BaseMask.d.ts +0 -3
- package/lib/inputs/mask/BaseMask.js +0 -2651
- package/lib/inputs/mask/Cnpj.d.ts +0 -6
- package/lib/inputs/mask/Cnpj.js +0 -40
- package/lib/inputs/mask/Cpf.d.ts +0 -6
- package/lib/inputs/mask/Cpf.js +0 -36
- package/lib/inputs/mask/Phone.d.ts +0 -3
- package/lib/inputs/mask/Phone.js +0 -9
- package/lib/inputs/mask/ZipCode.d.ts +0 -3
- package/lib/inputs/mask/ZipCode.js +0 -6
- package/lib/inputs/mask/helpers.d.ts +0 -52
- package/lib/inputs/mask/helpers.js +0 -63
- package/lib/inputs/mask/index.d.ts +0 -7
- package/lib/inputs/mask/index.js +0 -12
- package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
- package/lib/inputs/mask/types.d.ts +0 -73
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -3
- package/lib/inputs/multiSelect/ActionButtons.js +0 -50
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -3
- package/lib/inputs/multiSelect/Dropdown.js +0 -136
- package/lib/inputs/multiSelect/helper.d.ts +0 -3
- package/lib/inputs/multiSelect/helper.js +0 -8
- package/lib/inputs/multiSelect/index.d.ts +0 -3
- package/lib/inputs/multiSelect/index.js +0 -138
- package/lib/inputs/multiSelect/multiSelect.spec.d.ts +0 -1
- package/lib/inputs/multiSelect/types.d.ts +0 -57
- package/lib/inputs/number/BaseNumber.d.ts +0 -3
- package/lib/inputs/number/BaseNumber.js +0 -47
- package/lib/inputs/number/Currency.d.ts +0 -3
- package/lib/inputs/number/Currency.js +0 -15
- package/lib/inputs/number/Decimal.d.ts +0 -3
- package/lib/inputs/number/Decimal.js +0 -6
- package/lib/inputs/number/format_number.d.ts +0 -3
- package/lib/inputs/number/format_number.js +0 -9
- package/lib/inputs/number/index.d.ts +0 -6
- package/lib/inputs/number/index.js +0 -38
- package/lib/inputs/number/numberfield.spec.d.ts +0 -1
- package/lib/inputs/number/types.d.ts +0 -28
- package/lib/inputs/period/Dialog.d.ts +0 -3
- package/lib/inputs/period/Dialog.js +0 -18
- package/lib/inputs/period/Dropdown.d.ts +0 -3
- package/lib/inputs/period/Dropdown.js +0 -13
- package/lib/inputs/period/PeriodList.d.ts +0 -3
- package/lib/inputs/period/PeriodList.js +0 -29
- package/lib/inputs/period/helper.d.ts +0 -11
- package/lib/inputs/period/helper.js +0 -35
- package/lib/inputs/period/index.d.ts +0 -3
- package/lib/inputs/period/index.js +0 -335
- package/lib/inputs/period/types.d.ts +0 -69
- package/lib/inputs/search/index.d.ts +0 -3
- package/lib/inputs/search/index.js +0 -80
- package/lib/inputs/search/search_input.spec.d.ts +0 -1
- package/lib/inputs/select/ActionButtons.d.ts +0 -3
- package/lib/inputs/select/ActionButtons.js +0 -49
- package/lib/inputs/select/Dropdown.d.ts +0 -3
- package/lib/inputs/select/Dropdown.js +0 -119
- package/lib/inputs/select/helper.d.ts +0 -11
- package/lib/inputs/select/helper.js +0 -44
- package/lib/inputs/select/index.d.ts +0 -3
- package/lib/inputs/select/index.js +0 -29
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -3
- package/lib/inputs/select/multiple/Selecteds.js +0 -21
- package/lib/inputs/select/multiple/index.d.ts +0 -3
- package/lib/inputs/select/multiple/index.js +0 -192
- package/lib/inputs/select/select.spec.d.ts +0 -1
- package/lib/inputs/select/simple/index.d.ts +0 -3
- package/lib/inputs/select/simple/index.js +0 -219
- package/lib/inputs/select/types.d.ts +0 -117
- package/lib/inputs/text/index.d.ts +0 -3
- package/lib/inputs/text/index.js +0 -6
- package/lib/inputs/text/textfield.spec.d.ts +0 -1
- package/lib/inputs/text/types.d.ts +0 -21
- package/lib/inputs/textarea/index.d.ts +0 -3
- package/lib/inputs/textarea/index.js +0 -18
- package/lib/inputs/textarea/textarea.spec.d.ts +0 -1
- package/lib/inputs/textarea/types.d.ts +0 -7
- package/lib/inputs/types.d.ts +0 -151
- package/lib/internals/colorStyles.d.ts +0 -8
- package/lib/internals/colorStyles.js +0 -10
- package/lib/internals/constants.d.ts +0 -9
- package/lib/internals/constants.js +0 -12
- package/lib/internals/types.d.ts +0 -22
- package/lib/internals/withTooltip.d.ts +0 -8
- package/lib/internals/withTooltip.js +0 -75
- package/lib/labelMessages/index.d.ts +0 -3
- package/lib/labelMessages/index.js +0 -48
- package/lib/labelMessages/labelMessages.spec.d.ts +0 -1
- package/lib/labelMessages/types.d.ts +0 -16
- package/lib/labels/DangerLabel.d.ts +0 -3
- package/lib/labels/DangerLabel.js +0 -6
- package/lib/labels/DefaultLabel.d.ts +0 -6
- package/lib/labels/DefaultLabel.js +0 -41
- package/lib/labels/InfoLabel.d.ts +0 -3
- package/lib/labels/InfoLabel.js +0 -6
- package/lib/labels/PrimaryLabel.d.ts +0 -3
- package/lib/labels/PrimaryLabel.js +0 -6
- package/lib/labels/SuccessLabel.d.ts +0 -3
- package/lib/labels/SuccessLabel.js +0 -6
- package/lib/labels/WarningLabel.d.ts +0 -3
- package/lib/labels/WarningLabel.js +0 -6
- package/lib/labels/index.d.ts +0 -9
- package/lib/labels/index.js +0 -17
- package/lib/labels/label.spec.d.ts +0 -1
- package/lib/labels/label_container/index.d.ts +0 -10
- package/lib/labels/label_container/index.js +0 -12
- package/lib/labels/types.d.ts +0 -22
- package/lib/list/Header.d.ts +0 -3
- package/lib/list/Header.js +0 -8
- package/lib/list/Item.d.ts +0 -6
- package/lib/list/Item.js +0 -13
- package/lib/list/Separator.d.ts +0 -2
- package/lib/list/Separator.js +0 -5
- package/lib/list/helpers.d.ts +0 -9
- package/lib/list/helpers.js +0 -10
- package/lib/list/index.d.ts +0 -7
- package/lib/list/index.js +0 -101
- package/lib/list/list.spec.d.ts +0 -1
- package/lib/list/types.d.ts +0 -69
- package/lib/menus/float/MenuItem.d.ts +0 -3
- package/lib/menus/float/MenuItem.js +0 -58
- package/lib/menus/float/SubMenuContainer.d.ts +0 -29
- package/lib/menus/float/float-menu.spec.d.ts +0 -0
- package/lib/menus/float/helpers.d.ts +0 -4
- package/lib/menus/float/helpers.js +0 -5
- package/lib/menus/float/index.d.ts +0 -6
- package/lib/menus/float/index.js +0 -92
- package/lib/menus/float/types.d.ts +0 -26
- package/lib/menus/index.d.ts +0 -2
- package/lib/menus/index.js +0 -4
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -3
- package/lib/menus/sidenav/ExpandMenu.js +0 -17
- package/lib/menus/sidenav/MenuLink.d.ts +0 -6
- package/lib/menus/sidenav/MenuLink.js +0 -17
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuGroup.js +0 -17
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -6
- package/lib/menus/sidenav/NavMenuItem.js +0 -114
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -23
- package/lib/menus/sidenav/helpers.d.ts +0 -6
- package/lib/menus/sidenav/helpers.js +0 -10
- package/lib/menus/sidenav/index.d.ts +0 -8
- package/lib/menus/sidenav/index.js +0 -128
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -19
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -4
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -90
- package/lib/menus/sidenav/sidenav.spec.d.ts +0 -1
- package/lib/menus/sidenav/types.d.ts +0 -85
- package/lib/noPermission/index.d.ts +0 -2
- package/lib/noPermission/index.js +0 -11
- package/lib/panel/Content.d.ts +0 -3
- package/lib/panel/Content.js +0 -45
- package/lib/panel/DangerPanel.d.ts +0 -3
- package/lib/panel/DangerPanel.js +0 -7
- package/lib/panel/Default.d.ts +0 -3
- package/lib/panel/Default.js +0 -42
- package/lib/panel/Header.d.ts +0 -3
- package/lib/panel/Header.js +0 -42
- package/lib/panel/InfoPanel.d.ts +0 -3
- package/lib/panel/InfoPanel.js +0 -7
- package/lib/panel/PrimaryPanel.d.ts +0 -3
- package/lib/panel/PrimaryPanel.js +0 -7
- package/lib/panel/SuccessPanel.d.ts +0 -3
- package/lib/panel/SuccessPanel.js +0 -7
- package/lib/panel/ToolBar.d.ts +0 -3
- package/lib/panel/ToolBar.js +0 -6
- package/lib/panel/WarningPanel.d.ts +0 -3
- package/lib/panel/WarningPanel.js +0 -7
- package/lib/panel/helpers.d.ts +0 -5
- package/lib/panel/helpers.js +0 -12
- package/lib/panel/index.d.ts +0 -10
- package/lib/panel/index.js +0 -19
- package/lib/panel/panel.spec.d.ts +0 -0
- package/lib/panel/types.d.ts +0 -43
- package/lib/permissionValidations.d.ts +0 -12
- package/lib/permissionValidations.js +0 -42
- package/lib/popover/PopoverText.d.ts +0 -4
- package/lib/popover/PopoverText.js +0 -7
- package/lib/popover/PopoverTitle.d.ts +0 -3
- package/lib/popover/PopoverTitle.js +0 -5
- package/lib/popover/index.d.ts +0 -6
- package/lib/popover/index.js +0 -59
- package/lib/popover/popover.spec.d.ts +0 -1
- package/lib/popover/types.d.ts +0 -31
- package/lib/progress/Bar.d.ts +0 -3
- package/lib/progress/Bar.js +0 -42
- package/lib/progress/index.d.ts +0 -5
- package/lib/progress/index.js +0 -21
- package/lib/progress/progress.spec.d.ts +0 -1
- package/lib/progress/types.d.ts +0 -34
- package/lib/radio/index.d.ts +0 -8
- package/lib/radio/index.js +0 -96
- package/lib/radio/radio.spec.d.ts +0 -1
- package/lib/radio/types.d.ts +0 -25
- package/lib/shortcuts/index.d.ts +0 -3
- package/lib/shortcuts/index.js +0 -9
- package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
- package/lib/shortcuts/types.d.ts +0 -9
- package/lib/skeleton/SkeletonContainer.d.ts +0 -3
- package/lib/skeleton/SkeletonContainer.js +0 -9
- package/lib/skeleton/index.d.ts +0 -5
- package/lib/skeleton/index.js +0 -25
- package/lib/skeleton/types.d.ts +0 -18
- package/lib/spinner/SpinnerLoading.d.ts +0 -3
- package/lib/spinner/SpinnerLoading.js +0 -18
- package/lib/spinner/index.d.ts +0 -3
- package/lib/spinner/index.js +0 -41
- package/lib/spinner/spinner.spec.d.ts +0 -1
- package/lib/spinner/types.d.ts +0 -17
- package/lib/split/Split.d.ts +0 -3
- package/lib/split/Split.js +0 -189
- package/lib/split/SplitSide.d.ts +0 -3
- package/lib/split/SplitSide.js +0 -19
- package/lib/split/helpers.d.ts +0 -8
- package/lib/split/helpers.js +0 -5
- package/lib/split/index.d.ts +0 -4
- package/lib/split/index.js +0 -6
- package/lib/split/split.spec.d.ts +0 -0
- package/lib/split/types.d.ts +0 -31
- package/lib/table/Body.d.ts +0 -3
- package/lib/table/Body.js +0 -59
- package/lib/table/Header.d.ts +0 -3
- package/lib/table/Header.js +0 -39
- package/lib/table/HeaderColumn.d.ts +0 -3
- package/lib/table/HeaderColumn.js +0 -30
- package/lib/table/Row.d.ts +0 -3
- package/lib/table/Row.js +0 -54
- package/lib/table/RowColumn.d.ts +0 -3
- package/lib/table/RowColumn.js +0 -46
- package/lib/table/helpers.d.ts +0 -7
- package/lib/table/helpers.js +0 -7
- package/lib/table/index.d.ts +0 -9
- package/lib/table/index.js +0 -109
- package/lib/table/table.spec.d.ts +0 -1
- package/lib/table/types.d.ts +0 -94
- package/lib/tabs/DropdownTabs.d.ts +0 -3
- package/lib/tabs/DropdownTabs.js +0 -81
- package/lib/tabs/Menu.d.ts +0 -3
- package/lib/tabs/Menu.js +0 -52
- package/lib/tabs/MenuTabs.d.ts +0 -4
- package/lib/tabs/MenuTabs.js +0 -89
- package/lib/tabs/Panel.d.ts +0 -3
- package/lib/tabs/Panel.js +0 -51
- package/lib/tabs/context.d.ts +0 -4
- package/lib/tabs/context.js +0 -64
- package/lib/tabs/index.d.ts +0 -5
- package/lib/tabs/index.js +0 -68
- package/lib/tabs/tabHelpers.d.ts +0 -9
- package/lib/tabs/tabHelpers.js +0 -46
- package/lib/tabs/tabs.spec.d.ts +0 -0
- package/lib/tabs/types.d.ts +0 -95
- package/lib/tabs/useTabs.d.ts +0 -1
- package/lib/tabs/useTabs.js +0 -8
- package/lib/textContent/index.d.ts +0 -18
- package/lib/textContent/index.js +0 -35
- package/lib/textContent/textContent.spec.d.ts +0 -1
- package/lib/toolbar/ButtonBar.d.ts +0 -3
- package/lib/toolbar/ButtonBar.js +0 -63
- package/lib/toolbar/LabelBar.d.ts +0 -3
- package/lib/toolbar/LabelBar.js +0 -43
- package/lib/toolbar/Separator.d.ts +0 -2
- package/lib/toolbar/Separator.js +0 -5
- package/lib/toolbar/ToolBarGroup.d.ts +0 -3
- package/lib/toolbar/ToolBarGroup.js +0 -5
- package/lib/toolbar/helpers.d.ts +0 -3
- package/lib/toolbar/helpers.js +0 -5
- package/lib/toolbar/index.d.ts +0 -8
- package/lib/toolbar/index.js +0 -33
- package/lib/toolbar/toolbar.spec.d.ts +0 -1
- package/lib/toolbar/types.d.ts +0 -43
- package/lib/tooltip/index.d.ts +0 -4
- package/lib/tooltip/index.js +0 -39
- package/lib/tooltip/tooltip.spec.d.ts +0 -1
- package/lib/tooltip/types.d.ts +0 -15
- package/lib/treetable/Body.d.ts +0 -2
- package/lib/treetable/Body.js +0 -35
- package/lib/treetable/Header.d.ts +0 -2
- package/lib/treetable/Header.js +0 -26
- package/lib/treetable/Row.d.ts +0 -3
- package/lib/treetable/Row.js +0 -157
- package/lib/treetable/helpers.d.ts +0 -13
- package/lib/treetable/helpers.js +0 -25
- package/lib/treetable/index.d.ts +0 -4
- package/lib/treetable/index.js +0 -18
- package/lib/treeview/Header.d.ts +0 -3
- package/lib/treeview/Header.js +0 -8
- package/lib/treeview/Node.d.ts +0 -3
- package/lib/treeview/Node.js +0 -183
- package/lib/treeview/constants.d.ts +0 -3
- package/lib/treeview/constants.js +0 -5
- package/lib/treeview/index.d.ts +0 -6
- package/lib/treeview/index.js +0 -185
- package/lib/treeview/treeview.spec.d.ts +0 -0
- package/lib/treeview/types.d.ts +0 -106
- package/lib/uitour/helpers.d.ts +0 -7
- package/lib/uitour/helpers.js +0 -9
- package/lib/uitour/index.d.ts +0 -4
- package/lib/uitour/index.js +0 -186
- package/lib/uitour/types.d.ts +0 -35
- package/lib/uitour/uitour.spec.d.ts +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { createContext as L, useState as h, useRef as x, useEffect as O } from "react";
|
|
3
|
-
import R from "./Popup.js";
|
|
4
|
-
import '../assets/withDropdown.css';const A = L({}), M = (o) => o.displayName || o.name || "Component", b = (o) => {
|
|
5
|
-
const u = (c) => {
|
|
6
|
-
const {
|
|
7
|
-
dropdownOpened: n,
|
|
8
|
-
showDropdown: a,
|
|
9
|
-
dropdown: i,
|
|
10
|
-
closeDropdownOnClickOutside: w = !0,
|
|
11
|
-
handlerClose: p,
|
|
12
|
-
customClassForDropdown: v,
|
|
13
|
-
children: C,
|
|
14
|
-
dropdownAlign: j = "left",
|
|
15
|
-
isFloatMenu: f,
|
|
16
|
-
isDropdownOpened: P
|
|
17
|
-
} = c, [l, t] = h(n), [k, E] = h(n), s = x(null), m = x(null);
|
|
18
|
-
n !== k && (t(n), E(n));
|
|
19
|
-
const D = (e) => {
|
|
20
|
-
const { target: d } = e;
|
|
21
|
-
s?.current && d !== s?.current && !e.composedPath().includes(s.current) && m.current !== d && t(!1);
|
|
22
|
-
}, g = () => {
|
|
23
|
-
t((e) => !e);
|
|
24
|
-
}, N = (e) => !e || !l ? null : (m.current = e, /* @__PURE__ */ r.jsx(
|
|
25
|
-
R,
|
|
26
|
-
{
|
|
27
|
-
targetRef: e,
|
|
28
|
-
align: j,
|
|
29
|
-
customClassForDropdown: v,
|
|
30
|
-
isFloatMenu: f,
|
|
31
|
-
children: /* @__PURE__ */ r.jsx("div", { className: f ? "items" : void 0, ref: (d) => {
|
|
32
|
-
s.current = d;
|
|
33
|
-
}, children: C })
|
|
34
|
-
}
|
|
35
|
-
));
|
|
36
|
-
O(() => (i && w && document.addEventListener("click", D), () => {
|
|
37
|
-
i && w && document.removeEventListener("click", D);
|
|
38
|
-
}), []), O(() => {
|
|
39
|
-
p && p(() => t(!1));
|
|
40
|
-
}, [p]);
|
|
41
|
-
const y = {
|
|
42
|
-
handleDropdownClose: g
|
|
43
|
-
}, F = {
|
|
44
|
-
getDropdownPopup: (e) => N(e),
|
|
45
|
-
showDropdown: a || (() => t(!l)),
|
|
46
|
-
isDropdownOpened: P || l
|
|
47
|
-
};
|
|
48
|
-
return i ? /* @__PURE__ */ r.jsx(A.Provider, { value: y, children: /* @__PURE__ */ r.jsx(o, { ...c, ...F }) }) : /* @__PURE__ */ r.jsx(o, { ...c });
|
|
49
|
-
};
|
|
50
|
-
return u.displayName = `withDropdown(${M(o)})`, u;
|
|
51
|
-
};
|
|
52
|
-
export {
|
|
53
|
-
A as WithDropdownContext,
|
|
54
|
-
b as default
|
|
55
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/fieldset/index.d.ts
DELETED
package/lib/fieldset/index.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { useState as O, Fragment as D } from "react";
|
|
3
|
-
import '../assets/gridlayout.css';import '../assets/index12.css';/* empty css */
|
|
4
|
-
import T from "../gridlayout/GridCol.js";
|
|
5
|
-
import { actionsOnPermissionDenied as b, OPTIONS_ON_DENIED as v } from "../permissionValidations.js";
|
|
6
|
-
import w from "../noPermission/index.js";
|
|
7
|
-
const _ = (n) => {
|
|
8
|
-
const {
|
|
9
|
-
gridCols: r,
|
|
10
|
-
children: c,
|
|
11
|
-
title: o,
|
|
12
|
-
titleAlign: d = "left",
|
|
13
|
-
style: f,
|
|
14
|
-
styleContent: u,
|
|
15
|
-
styleTitle: C,
|
|
16
|
-
template: l = "none",
|
|
17
|
-
titleCustomClass: g,
|
|
18
|
-
permissionAttr: p,
|
|
19
|
-
leftElements: h = null,
|
|
20
|
-
rightElements: j = null
|
|
21
|
-
} = n, { hideContent: x, unvisible: $ } = v, [m] = O(b([x, $], p)), N = ({ type: s, customClass: i, hasError: E }) => {
|
|
22
|
-
let t = `fieldset-component ${i}`;
|
|
23
|
-
return s && (t = `${t} -${s}`), E && (t = `${t} -witherror`), t;
|
|
24
|
-
}, y = ({ colsCount: s = 2, rowsCount: i = 2 }) => l === "rows" ? { gridTemplateRows: `repeat(${i}, 1fr)` } : l === "columns" ? { gridTemplateColumns: `repeat(${s}, 1fr)` } : {}, a = () => /* @__PURE__ */ e.jsx("fieldset", { style: f, className: N({ ...n }), children: m.hideContent ? /* @__PURE__ */ e.jsx(w, {}) : /* @__PURE__ */ e.jsxs(D, { children: [
|
|
25
|
-
o && /* @__PURE__ */ e.jsxs(
|
|
26
|
-
"legend",
|
|
27
|
-
{
|
|
28
|
-
style: C,
|
|
29
|
-
align: d,
|
|
30
|
-
className: `legend ${g}`,
|
|
31
|
-
children: [
|
|
32
|
-
h,
|
|
33
|
-
o,
|
|
34
|
-
j
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
/* @__PURE__ */ e.jsx(
|
|
39
|
-
"div",
|
|
40
|
-
{
|
|
41
|
-
className: `contentfieldset -template${l} `,
|
|
42
|
-
style: Object.assign(y(n), u),
|
|
43
|
-
children: c
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
] }) });
|
|
47
|
-
return m.unvisible ? null : r ? /* @__PURE__ */ e.jsx(T, { cols: r, children: a() }) : a();
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
_ as default
|
|
51
|
-
};
|
package/lib/fieldset/types.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { PermissionAttr } from '../@types/PermissionAttr';
|
|
3
|
-
import { Position } from '../@types/Position';
|
|
4
|
-
export interface IFieldsetProps {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
customClass?: string;
|
|
7
|
-
template?: 'none' | 'columns' | 'rows';
|
|
8
|
-
titleAlign?: Extract<Position, 'left' | 'right'>;
|
|
9
|
-
title?: string;
|
|
10
|
-
titleCustomClass?: string;
|
|
11
|
-
colsCount?: string | number;
|
|
12
|
-
rowsCount?: number;
|
|
13
|
-
style?: CSSProperties;
|
|
14
|
-
styleContent?: CSSProperties;
|
|
15
|
-
styleTitle?: CSSProperties;
|
|
16
|
-
type?: 'primary' | 'danger' | 'success' | 'warning' | 'info';
|
|
17
|
-
hasError?: boolean;
|
|
18
|
-
gridCols?: string;
|
|
19
|
-
permissionAttr?: PermissionAttr | PermissionAttr[];
|
|
20
|
-
leftElements?: ReactNode;
|
|
21
|
-
rightElements?: ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export interface ExpandedElement extends Element {
|
|
24
|
-
name?: string;
|
|
25
|
-
value?: string;
|
|
26
|
-
align?: string;
|
|
27
|
-
}
|
package/lib/form/Field.d.ts
DELETED
package/lib/form/Field.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { j as p } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { forwardRef as C, useContext as v } from "react";
|
|
3
|
-
import { _ as l } from "../chunks/lodash.CIAK_hAg.js";
|
|
4
|
-
import x from "./withFieldHOC.js";
|
|
5
|
-
import { withFieldContext as E, getErrorMessages as F, getValidatorsArray as h } from "./helpers.js";
|
|
6
|
-
const y = ({
|
|
7
|
-
validators: t = [],
|
|
8
|
-
name: d,
|
|
9
|
-
onBlur: s,
|
|
10
|
-
handlerFieldValidate: e,
|
|
11
|
-
validatorFromComponent: o,
|
|
12
|
-
handlerFieldChange: n,
|
|
13
|
-
onChange: r
|
|
14
|
-
}) => {
|
|
15
|
-
if (!(t || o || s || r)) return {};
|
|
16
|
-
const a = h(t, o);
|
|
17
|
-
return {
|
|
18
|
-
onBlur: (i) => {
|
|
19
|
-
a && i.target && e && e(d, i.target.value, a), s && s(i);
|
|
20
|
-
},
|
|
21
|
-
onChange: (i) => {
|
|
22
|
-
a && i.target && e && e(d, i.target.value, a), n && n(i), r && r(i);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
}, w = (t, d) => {
|
|
26
|
-
const { value: s, data: e, name: o, fieldId: n, componentType: r, component: a } = t;
|
|
27
|
-
return r && r.toLowerCase() === "radio" ? { checked: l.get(e, o) === s, id: n } : r && r.toLowerCase() === "checkbox" ? { checked: l.get(e, o), id: n } : a.displayName === "CpfField" || a.displayName === "CnpjField" ? { value: l.get(e, o), handlerSetComponentValidator: d } : { value: l.get(e, o) };
|
|
28
|
-
}, m = C((t, d) => {
|
|
29
|
-
const {
|
|
30
|
-
handlerFieldChange: s,
|
|
31
|
-
handlerFieldValidate: e,
|
|
32
|
-
onChange: o,
|
|
33
|
-
onBlur: n,
|
|
34
|
-
name: r,
|
|
35
|
-
validators: a,
|
|
36
|
-
data: i,
|
|
37
|
-
fieldErrors: j,
|
|
38
|
-
handlerStoreValidators: k,
|
|
39
|
-
handlerRemoveValidators: N,
|
|
40
|
-
component: f,
|
|
41
|
-
externalFieldErrors: R,
|
|
42
|
-
originalData: A,
|
|
43
|
-
...c
|
|
44
|
-
} = t, { handlerSetValidatorFromComponent: u, validatorFromComponent: g } = v(E);
|
|
45
|
-
return /* @__PURE__ */ p.jsx(
|
|
46
|
-
f,
|
|
47
|
-
{
|
|
48
|
-
...c,
|
|
49
|
-
...y({
|
|
50
|
-
name: r,
|
|
51
|
-
validators: a,
|
|
52
|
-
onBlur: n,
|
|
53
|
-
validatorFromComponent: g,
|
|
54
|
-
handlerFieldValidate: e,
|
|
55
|
-
handlerFieldChange: s,
|
|
56
|
-
onChange: o
|
|
57
|
-
}),
|
|
58
|
-
...w(t, u),
|
|
59
|
-
ref: d,
|
|
60
|
-
name: r,
|
|
61
|
-
errorMessages: F({
|
|
62
|
-
...t,
|
|
63
|
-
fieldErrors: t.fieldErrors
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
});
|
|
68
|
-
m.displayName = "Field";
|
|
69
|
-
const D = x(m);
|
|
70
|
-
export {
|
|
71
|
-
D as default
|
|
72
|
-
};
|
package/lib/form/FieldArray.d.ts
DELETED
package/lib/form/FieldArray.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { Fragment as C, useCallback as u } from "react";
|
|
3
|
-
import { _ as x } from "../chunks/lodash.CIAK_hAg.js";
|
|
4
|
-
import E from "./withFieldHOC.js";
|
|
5
|
-
import '../assets/gridlayout.css';/* empty css */
|
|
6
|
-
import F from "../gridlayout/GridCol.js";
|
|
7
|
-
import b from "../fieldset/index.js";
|
|
8
|
-
import { getErrorMessages as h } from "./helpers.js";
|
|
9
|
-
const g = (e) => {
|
|
10
|
-
const {
|
|
11
|
-
valuePropName: i = "value",
|
|
12
|
-
changePropName: r = "onSelect",
|
|
13
|
-
data: m,
|
|
14
|
-
name: n,
|
|
15
|
-
handlerFieldChange: l,
|
|
16
|
-
handlerSelecionados: s,
|
|
17
|
-
onBlur: a
|
|
18
|
-
} = e;
|
|
19
|
-
return {
|
|
20
|
-
onBlur: u((o) => {
|
|
21
|
-
a && a(o);
|
|
22
|
-
}, [a]),
|
|
23
|
-
[i]: x.get(m, n),
|
|
24
|
-
[r]: u((o) => {
|
|
25
|
-
l && l({ target: { value: o, name: n } }), s && s(o);
|
|
26
|
-
}, [l, s, r])
|
|
27
|
-
};
|
|
28
|
-
}, j = (e) => {
|
|
29
|
-
const {
|
|
30
|
-
cols: i,
|
|
31
|
-
label: r,
|
|
32
|
-
bordered: m,
|
|
33
|
-
labelContainerStyle: n,
|
|
34
|
-
skipLabel: l,
|
|
35
|
-
data: s,
|
|
36
|
-
name: a,
|
|
37
|
-
handlerStoreValidators: o,
|
|
38
|
-
component: f,
|
|
39
|
-
handlerFieldChange: p,
|
|
40
|
-
handlerFieldValidate: v,
|
|
41
|
-
changePropName: y,
|
|
42
|
-
fieldErrors: P,
|
|
43
|
-
externalMessagesErrors: S,
|
|
44
|
-
handlerRemoveValidators: M,
|
|
45
|
-
validators: N,
|
|
46
|
-
valuePropName: V,
|
|
47
|
-
originalData: k,
|
|
48
|
-
handlerSelecionados: A,
|
|
49
|
-
...c
|
|
50
|
-
} = e;
|
|
51
|
-
let d = null;
|
|
52
|
-
return f && (!l && r ? d = /* @__PURE__ */ t.jsx(
|
|
53
|
-
b,
|
|
54
|
-
{
|
|
55
|
-
title: r,
|
|
56
|
-
customClass: `arraycontainer ${m && "-bordered"}`,
|
|
57
|
-
style: n,
|
|
58
|
-
titleCustomClass: "label",
|
|
59
|
-
children: /* @__PURE__ */ t.jsx(
|
|
60
|
-
f,
|
|
61
|
-
{
|
|
62
|
-
...c,
|
|
63
|
-
...g(e),
|
|
64
|
-
label: r,
|
|
65
|
-
name: a,
|
|
66
|
-
errorMessages: h({
|
|
67
|
-
...e,
|
|
68
|
-
fieldErrors: e.fieldErrors
|
|
69
|
-
})
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
}
|
|
73
|
-
) : d = /* @__PURE__ */ t.jsx(C, { children: /* @__PURE__ */ t.jsx(
|
|
74
|
-
f,
|
|
75
|
-
{
|
|
76
|
-
...c,
|
|
77
|
-
...g(e),
|
|
78
|
-
label: r,
|
|
79
|
-
name: a,
|
|
80
|
-
errorMessages: h({
|
|
81
|
-
...e,
|
|
82
|
-
fieldErrors: e.fieldErrors
|
|
83
|
-
})
|
|
84
|
-
}
|
|
85
|
-
) })), i ? /* @__PURE__ */ t.jsx(F, { cols: i, children: d }) : d;
|
|
86
|
-
}, O = E(j);
|
|
87
|
-
export {
|
|
88
|
-
O as default
|
|
89
|
-
};
|
package/lib/form/FieldNumber.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { j as c } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { _ as E } from "../chunks/lodash.CIAK_hAg.js";
|
|
3
|
-
import g from "./withFieldHOC.js";
|
|
4
|
-
import { getErrorMessages as x } from "./helpers.js";
|
|
5
|
-
import { keyCodes as N } from "../internals/constants.js";
|
|
6
|
-
const b = ({
|
|
7
|
-
name: r,
|
|
8
|
-
validators: f,
|
|
9
|
-
onBlur: o,
|
|
10
|
-
onKeyDown: u,
|
|
11
|
-
onChange: e,
|
|
12
|
-
handlerFieldValidate: m,
|
|
13
|
-
handlerFieldChange: s,
|
|
14
|
-
component: i
|
|
15
|
-
}) => ({
|
|
16
|
-
onBlur: (t) => {
|
|
17
|
-
i?.name !== "NumberField" && s && s(t), f && m && m(r, t.target.value, f), o && o(t);
|
|
18
|
-
},
|
|
19
|
-
onKeyDown: (t) => {
|
|
20
|
-
[N.ENTER].includes(t.keyCode) && (f && m?.(r, t.target.value, f), u && u(t));
|
|
21
|
-
},
|
|
22
|
-
onChange: (t) => {
|
|
23
|
-
i?.name === "NumberField" && (f && t.target && m && m(r, t.target.value, f), s && s(t)), e && e(t);
|
|
24
|
-
}
|
|
25
|
-
}), j = (r) => {
|
|
26
|
-
const { data: f, name: o } = r, u = E.get(f, o);
|
|
27
|
-
return /* @__PURE__ */ c.jsx(
|
|
28
|
-
r.component,
|
|
29
|
-
{
|
|
30
|
-
...r,
|
|
31
|
-
...b({
|
|
32
|
-
...r
|
|
33
|
-
}),
|
|
34
|
-
errorMessages: x({
|
|
35
|
-
...r,
|
|
36
|
-
fieldErrors: r.fieldErrors
|
|
37
|
-
}),
|
|
38
|
-
value: u
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
}, w = g(j);
|
|
42
|
-
export {
|
|
43
|
-
w as default
|
|
44
|
-
};
|
package/lib/form/FieldPeriod.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { j as x } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { useState as V, useEffect as $ } from "react";
|
|
3
|
-
import { _ as e } from "../chunks/lodash.CIAK_hAg.js";
|
|
4
|
-
import '../assets/gridlayout.css';/* empty css */
|
|
5
|
-
import j from "../gridlayout/GridCol.js";
|
|
6
|
-
import w from "./withFieldHOC.js";
|
|
7
|
-
import { getErrorMessages as D } from "./helpers.js";
|
|
8
|
-
const q = (m) => {
|
|
9
|
-
const {
|
|
10
|
-
data: s,
|
|
11
|
-
nameDateInitial: a,
|
|
12
|
-
nameDateFinal: o,
|
|
13
|
-
handlerFieldChange: f,
|
|
14
|
-
handlerFieldValidate: g,
|
|
15
|
-
fieldErrors: y,
|
|
16
|
-
externalMessagesErrors: C,
|
|
17
|
-
onChange: u,
|
|
18
|
-
validators: c,
|
|
19
|
-
originalData: F,
|
|
20
|
-
gridLayout: h,
|
|
21
|
-
component: p,
|
|
22
|
-
name: r,
|
|
23
|
-
externalFieldErrors: _
|
|
24
|
-
} = m;
|
|
25
|
-
let i = null;
|
|
26
|
-
const [v, l] = V(!1), t = e.get(s, r), E = e.get(F, r);
|
|
27
|
-
$(() => {
|
|
28
|
-
!e.isEqual(t, E) && t && (t || t === 0 || Array.isArray(t) && t.length > 0) ? l(!0) : (e.isEmpty(s) || e.every(s, e.isEmpty) || e.isEqual(t, E)) && l(!1);
|
|
29
|
-
}, [t]);
|
|
30
|
-
const M = D({
|
|
31
|
-
name: r,
|
|
32
|
-
fieldErrors: v ? y : {},
|
|
33
|
-
externalFieldErrors: _,
|
|
34
|
-
externalMessagesErrors: C
|
|
35
|
-
});
|
|
36
|
-
return p && (i = /* @__PURE__ */ x.jsx(
|
|
37
|
-
p,
|
|
38
|
-
{
|
|
39
|
-
...m,
|
|
40
|
-
errorMessages: M,
|
|
41
|
-
onChange: (A, P, { initial: n, final: d }) => {
|
|
42
|
-
c && g && (g(a, {
|
|
43
|
-
[a]: n,
|
|
44
|
-
[o]: d
|
|
45
|
-
}, c), l(!0)), f && f({
|
|
46
|
-
target: {
|
|
47
|
-
name: r,
|
|
48
|
-
value: {
|
|
49
|
-
[a]: n,
|
|
50
|
-
[o]: d
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}), u && u({ initial: n, final: d });
|
|
54
|
-
},
|
|
55
|
-
value: {
|
|
56
|
-
initial: e.get(s, `${r}.${a}`),
|
|
57
|
-
final: e.get(s, `${r}.${o}`)
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
)), h !== void 0 ? /* @__PURE__ */ x.jsx(j, { customClass: "-withinput", cols: h, style: { height: "100%" }, children: i }) : i;
|
|
61
|
-
}, b = w(q);
|
|
62
|
-
export {
|
|
63
|
-
b as default
|
|
64
|
-
};
|
package/lib/form/form.spec.d.ts
DELETED
|
File without changes
|
package/lib/form/helpers.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FormContextProps, IGetErrorMessagesParams, IWithFieldContext, Validator } from './types';
|
|
3
|
-
export declare const securityBeforeUnload = "securityBeforeUnload";
|
|
4
|
-
export declare const FormContext: React.Context<FormContextProps>;
|
|
5
|
-
export declare const withFieldContext: React.Context<IWithFieldContext>;
|
|
6
|
-
export declare const changeValue: (data: object, target: HTMLInputElement) => any;
|
|
7
|
-
export declare const getErrorMessages: ({ name, fieldErrors, externalFieldErrors, externalMessagesErrors, }: IGetErrorMessagesParams) => string[];
|
|
8
|
-
export declare const getValidatorsArray: (validators?: Validator | Validator[], validatorFromComponent?: Validator | Validator[]) => Validator[];
|
package/lib/form/helpers.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { _ as y } from "../chunks/lodash.CIAK_hAg.js";
|
|
2
|
-
import u from "react";
|
|
3
|
-
const h = "securityBeforeUnload", x = u.createContext({}), B = u.createContext({}), J = (e, c) => {
|
|
4
|
-
const { name: t, value: s } = c;
|
|
5
|
-
return y.set(JSON.parse(JSON.stringify(e)), t, s);
|
|
6
|
-
}, N = ({
|
|
7
|
-
name: e,
|
|
8
|
-
fieldErrors: c,
|
|
9
|
-
externalFieldErrors: t,
|
|
10
|
-
externalMessagesErrors: s
|
|
11
|
-
}) => {
|
|
12
|
-
let f = s ? [...s] : [];
|
|
13
|
-
return c && c[e] && (f = [...f, ...c[e]]), t && t[e] && (f = [...f, ...t[e]]), f;
|
|
14
|
-
}, O = (e, c) => {
|
|
15
|
-
let t = [];
|
|
16
|
-
return e && c ? (t = y.isArray(e) ? e : [e], t = y.isArray(c) ? [...t, ...c] : [...t, c]) : c ? t = y.isArray(c) ? c : [c] : e && (t = e instanceof Array ? e : [e]), t;
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
x as FormContext,
|
|
20
|
-
J as changeValue,
|
|
21
|
-
N as getErrorMessages,
|
|
22
|
-
O as getValidatorsArray,
|
|
23
|
-
h as securityBeforeUnload,
|
|
24
|
-
B as withFieldContext
|
|
25
|
-
};
|
package/lib/form/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as Field } from './Field';
|
|
2
|
-
import { default as FieldNumber } from './FieldNumber';
|
|
3
|
-
import { default as FieldArray } from './FieldArray';
|
|
4
|
-
import { default as FieldPeriod } from './FieldPeriod';
|
|
5
|
-
import { FormProps } from './types';
|
|
6
|
-
declare const Form: ({ submitOnPressEnterKey, dataSource, securityBeforeUnload, handlerReset, handlerSubmit, handlerValidates, style, customClass, securityTitle, securityText, securityData, onDataChange, onValidateForm, externalFieldErrors, onSubmit, skeletonize, disabled, children, useInternalState, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default Form;
|
|
8
|
-
export { Field, FieldNumber, FieldArray, FieldPeriod, };
|
package/lib/form/index.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { j as x } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
-
import { useState as d, useContext as ar, useRef as U, useCallback as q, useEffect as F, Fragment as ur } from "react";
|
|
3
|
-
import { _ as f } from "../chunks/lodash.CIAK_hAg.js";
|
|
4
|
-
import { changeValue as B, FormContext as dr } from "./helpers.js";
|
|
5
|
-
import { default as br } from "./Field.js";
|
|
6
|
-
import { default as Rr } from "./FieldNumber.js";
|
|
7
|
-
import { default as Sr } from "./FieldArray.js";
|
|
8
|
-
import { default as Pr } from "./FieldPeriod.js";
|
|
9
|
-
import "../chunks/index.CM1aLH2W.js";
|
|
10
|
-
import "../buttons/DefaultButton.js";
|
|
11
|
-
import "../icons/index.js";
|
|
12
|
-
import '../assets/button.css';import '../assets/index13.css';/* empty css */
|
|
13
|
-
import mr from "../dialog/Question.js";
|
|
14
|
-
import { FormSecurityContext as pr } from "./withFormSecurity.js";
|
|
15
|
-
import { v as Fr } from "../chunks/v1.Ds1rkxUj.js";
|
|
16
|
-
const wr = ({
|
|
17
|
-
submitOnPressEnterKey: g = !0,
|
|
18
|
-
dataSource: m,
|
|
19
|
-
securityBeforeUnload: j,
|
|
20
|
-
handlerReset: k,
|
|
21
|
-
handlerSubmit: L,
|
|
22
|
-
handlerValidates: w,
|
|
23
|
-
style: M,
|
|
24
|
-
customClass: z,
|
|
25
|
-
securityTitle: _,
|
|
26
|
-
securityText: $,
|
|
27
|
-
securityData: C,
|
|
28
|
-
onDataChange: u,
|
|
29
|
-
onValidateForm: p,
|
|
30
|
-
externalFieldErrors: G,
|
|
31
|
-
onSubmit: H,
|
|
32
|
-
skeletonize: T,
|
|
33
|
-
disabled: V,
|
|
34
|
-
children: W,
|
|
35
|
-
useInternalState: l = !1
|
|
36
|
-
}) => {
|
|
37
|
-
const X = Fr(), [h, J] = d(m), [E, Y] = d(m), [b, Z] = d(g), [v, O] = d({}), [A, K] = d(0), [I, rr] = d(!1), c = ar(pr), tr = U(null), a = U({}), i = l ? h : m, R = (r, t) => {
|
|
38
|
-
const e = r instanceof Array ? r : [r];
|
|
39
|
-
let o = [];
|
|
40
|
-
return e.forEach((s) => {
|
|
41
|
-
if (typeof s == "function") {
|
|
42
|
-
const n = s(t);
|
|
43
|
-
n && (o = [...o, n]);
|
|
44
|
-
}
|
|
45
|
-
}), o;
|
|
46
|
-
}, or = (r, t) => {
|
|
47
|
-
const e = r || i;
|
|
48
|
-
let o = f.pickBy(v, (s, n) => Object.keys(t).includes(n));
|
|
49
|
-
return f.forEach(t, (s, n) => {
|
|
50
|
-
const P = f.get(e, n), lr = R(s, P);
|
|
51
|
-
o = { ...o, [n]: lr };
|
|
52
|
-
}), o;
|
|
53
|
-
}, y = (r, t = !0, e = null) => {
|
|
54
|
-
const o = or(r, e || a.current), s = Object.values(o).every((n) => n.length === 0);
|
|
55
|
-
return t && rr(s), s;
|
|
56
|
-
}, er = q((r) => {
|
|
57
|
-
const { target: t } = r;
|
|
58
|
-
!l && u ? u((e) => B(e, t)) : J((e) => B(e, t));
|
|
59
|
-
}, []), sr = (r, t, e) => {
|
|
60
|
-
if (e) {
|
|
61
|
-
let o = v;
|
|
62
|
-
const s = R(e, t);
|
|
63
|
-
s.length === 0 ? o = f.omit(o, r) : o = { ...o, [r]: s }, O(o);
|
|
64
|
-
}
|
|
65
|
-
}, Q = q((r) => {
|
|
66
|
-
r && (r.preventDefault(), r.stopPropagation()), y(i) && H(i);
|
|
67
|
-
}, [i]), S = (r, t) => {
|
|
68
|
-
const e = t ? t instanceof Array ? t : [t] : [];
|
|
69
|
-
e.length > 0 ? (r((o) => {
|
|
70
|
-
const s = JSON.parse(JSON.stringify(o));
|
|
71
|
-
return e.forEach((n) => {
|
|
72
|
-
n && f.set(s, n, f.get(E, n));
|
|
73
|
-
}), s;
|
|
74
|
-
}), O((o) => (e.forEach((s) => {
|
|
75
|
-
delete o[s];
|
|
76
|
-
}), o))) : (r(JSON.parse(JSON.stringify(E))), O({}));
|
|
77
|
-
}, ir = (r) => {
|
|
78
|
-
S(!l && u ? u : J, r);
|
|
79
|
-
}, nr = (r) => {
|
|
80
|
-
const t = f.omit(a, r);
|
|
81
|
-
a.current = t;
|
|
82
|
-
}, N = (r) => {
|
|
83
|
-
r.preventDefault(), f.isEqual(i, E);
|
|
84
|
-
}, fr = () => {
|
|
85
|
-
let r = null;
|
|
86
|
-
return V || (r = {
|
|
87
|
-
onSubmit: (t) => t.preventDefault(),
|
|
88
|
-
onKeyPress: (t) => {
|
|
89
|
-
t && t.key === "Enter" && (t.preventDefault(), t.stopPropagation(), b && Q());
|
|
90
|
-
}
|
|
91
|
-
}), r;
|
|
92
|
-
}, D = () => {
|
|
93
|
-
if (!f.isEmpty(c)) {
|
|
94
|
-
const { onChangedData: r } = c;
|
|
95
|
-
C && !f.isEqual(i, C) ? r(!0) : r(!1);
|
|
96
|
-
}
|
|
97
|
-
u && l && u(i), p && p(y(i, !0)), V || (L(Q), k && k(ir), w && w(() => y(i))), f.isEmpty(i) && Y(i);
|
|
98
|
-
};
|
|
99
|
-
F(() => {
|
|
100
|
-
l && D();
|
|
101
|
-
}, [JSON.stringify(h), l]), F(() => {
|
|
102
|
-
!l && u && D();
|
|
103
|
-
}, [JSON.stringify(m), l]), F(() => (j && (c && c.setSecurityBeforeUnload(!0), window.addEventListener("beforeunload", N)), () => window.removeEventListener("beforeunload", N)), [j, N]), F(() => {
|
|
104
|
-
!V && g !== b && Z(g);
|
|
105
|
-
}, [g]), F(() => {
|
|
106
|
-
const r = Object.values(a.current).reduce((t, e) => t + (e?.length || 0), 0);
|
|
107
|
-
a.current && p && A !== r && (K(r), p(y(i, !0, a.current)));
|
|
108
|
-
}, [
|
|
109
|
-
a.current,
|
|
110
|
-
A,
|
|
111
|
-
p,
|
|
112
|
-
JSON.stringify(i)
|
|
113
|
-
]);
|
|
114
|
-
const cr = {
|
|
115
|
-
skeletonize: T,
|
|
116
|
-
handlerFieldChange: er,
|
|
117
|
-
handlerFieldValidate: sr,
|
|
118
|
-
handlerStoreValidators: (r, t) => {
|
|
119
|
-
a.current = { ...a.current, [r]: t };
|
|
120
|
-
},
|
|
121
|
-
handlerRemoveValidators: nr,
|
|
122
|
-
data: l ? h : m,
|
|
123
|
-
originalData: E,
|
|
124
|
-
fieldErrors: v,
|
|
125
|
-
externalFieldErrors: G,
|
|
126
|
-
isFormValid: I
|
|
127
|
-
};
|
|
128
|
-
return /* @__PURE__ */ x.jsxs(ur, { children: [
|
|
129
|
-
/* @__PURE__ */ x.jsx(dr.Provider, { value: cr, children: /* @__PURE__ */ x.jsx(
|
|
130
|
-
"form",
|
|
131
|
-
{
|
|
132
|
-
id: X,
|
|
133
|
-
ref: tr,
|
|
134
|
-
style: M,
|
|
135
|
-
...fr(),
|
|
136
|
-
role: "presentation",
|
|
137
|
-
className: `form-component ${z}`,
|
|
138
|
-
children: W
|
|
139
|
-
}
|
|
140
|
-
) }),
|
|
141
|
-
/* @__PURE__ */ x.jsx(
|
|
142
|
-
mr,
|
|
143
|
-
{
|
|
144
|
-
zIndex: "99999999",
|
|
145
|
-
title: _ || "Dados Alterados",
|
|
146
|
-
text: $ || "Você possui dados alterados, confirma o fechamento?",
|
|
147
|
-
visible: !f.isEmpty(c) && c.showQuestion,
|
|
148
|
-
onConfirmClick: c ? c.onConfirmClick : () => {
|
|
149
|
-
},
|
|
150
|
-
onUnconfirmClick: c ? c.onUnconfirmClick : () => {
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
] });
|
|
155
|
-
};
|
|
156
|
-
export {
|
|
157
|
-
br as Field,
|
|
158
|
-
Sr as FieldArray,
|
|
159
|
-
Rr as FieldNumber,
|
|
160
|
-
Pr as FieldPeriod,
|
|
161
|
-
wr as default
|
|
162
|
-
};
|