linear-react-components-ui 1.1.26-beta.7 → 1.1.26-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/@types/Align.d.ts +2 -0
- package/lib/@types/ButtonTypes.d.ts +1 -0
- package/lib/@types/ColorStyles.d.ts +1 -0
- package/lib/@types/DataCombo.d.ts +1 -0
- package/lib/@types/Icon.d.ts +2 -0
- package/lib/@types/LabelStyles.d.ts +1 -0
- package/lib/@types/Period.d.ts +4 -0
- package/lib/@types/PermissionAttr.d.ts +12 -0
- package/lib/@types/PointerEvents.d.ts +1 -0
- package/lib/@types/Position.d.ts +1 -0
- package/lib/@types/PositionAlert.d.ts +1 -0
- package/lib/@types/Size.d.ts +1 -0
- package/lib/@types/SizePixels.d.ts +1 -0
- package/lib/@types/StorageMock.d.ts +3 -0
- package/lib/alerts/AlertContainer.d.ts +12 -0
- package/lib/alerts/AlertContainer.js +70 -0
- package/lib/alerts/AlertProvider.d.ts +3 -0
- package/lib/alerts/AlertProvider.js +46 -0
- package/lib/alerts/BaseAlert.d.ts +3 -0
- package/lib/alerts/BaseAlert.js +20 -0
- package/lib/alerts/Message.d.ts +3 -0
- package/lib/alerts/Message.js +94 -0
- package/lib/alerts/alert.spec.d.ts +0 -0
- package/lib/alerts/helpers.d.ts +3 -0
- package/lib/alerts/helpers.js +5 -0
- package/lib/alerts/index.d.ts +4 -0
- package/lib/alerts/index.js +6 -0
- package/lib/alerts/types.d.ts +47 -0
- package/lib/alerts/withAlert.d.ts +4 -0
- package/lib/alerts/withAlert.js +14 -0
- package/lib/assets/BaseAlert.css +1 -0
- package/lib/assets/Content.css +1 -0
- package/lib/assets/DefaultFile.css +1 -0
- package/lib/assets/Drawer.css +1 -0
- package/lib/assets/InputTextBase.css +1 -0
- package/lib/assets/button.css +1 -0
- package/lib/assets/gridlayout.css +1 -0
- package/lib/assets/index.css +1 -0
- package/lib/assets/index10.css +1 -0
- package/lib/assets/index11.css +1 -0
- package/lib/assets/index12.css +1 -0
- package/lib/assets/index13.css +1 -0
- package/lib/assets/index14.css +1 -0
- package/lib/assets/index15.css +1 -0
- package/lib/assets/index16.css +1 -0
- package/lib/assets/index17.css +1 -0
- package/lib/assets/index18.css +1 -0
- package/lib/assets/index19.css +1 -0
- package/lib/assets/index2.css +1 -0
- package/lib/assets/index20.css +1 -0
- package/lib/assets/index21.css +1 -0
- package/lib/assets/index22.css +1 -0
- package/lib/assets/index23.css +1 -0
- package/lib/assets/index24.css +1 -0
- package/lib/assets/index25.css +1 -0
- package/lib/assets/index26.css +1 -0
- package/lib/assets/index27.css +1 -0
- package/lib/assets/index28.css +1 -0
- package/lib/assets/index3.css +1 -0
- package/lib/assets/index4.css +1 -0
- package/lib/assets/index5.css +1 -0
- package/lib/assets/index6.css +1 -0
- package/lib/assets/index7.css +1 -0
- package/lib/assets/index8.css +1 -0
- package/lib/assets/index9.css +1 -0
- package/lib/assets/label.css +1 -0
- package/lib/assets/noPermission.css +1 -0
- package/lib/assets/panel.css +1 -0
- package/lib/assets/progressbar.css +1 -0
- package/lib/assets/radio.css +1 -0
- package/lib/assets/skeleton.css +1 -0
- package/lib/assets/table.css +1 -0
- package/lib/assets/tabs.css +1 -0
- package/lib/assets/toolbar.css +1 -0
- package/lib/assets/withDropdown.css +1 -0
- package/lib/avatar/avatar.spec.d.ts +1 -0
- package/lib/avatar/index.d.ts +6 -0
- package/lib/avatar/index.js +55 -0
- package/lib/avatar/types.d.ts +27 -0
- package/lib/badge/badge.spec.d.ts +1 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/badge/index.js +28 -0
- package/lib/badge/types.d.ts +10 -0
- package/lib/buttons/ActivateButton.d.ts +3 -0
- package/lib/buttons/ActivateButton.js +11 -0
- package/lib/buttons/AddButton.d.ts +3 -0
- package/lib/buttons/AddButton.js +14 -0
- package/lib/buttons/Button.d.ts +6 -0
- package/lib/buttons/Button.js +19 -0
- package/lib/buttons/ButtonGroups.d.ts +6 -0
- package/lib/buttons/ButtonGroups.js +12 -0
- package/lib/buttons/CancelButton.d.ts +3 -0
- package/lib/buttons/CancelButton.js +16 -0
- package/lib/buttons/DangerButton.d.ts +3 -0
- package/lib/buttons/DangerButton.js +17 -0
- package/lib/buttons/DefaultButton.d.ts +6 -0
- package/lib/buttons/DefaultButton.js +95 -0
- package/lib/buttons/DestroyButton.d.ts +3 -0
- package/lib/buttons/DestroyButton.js +23 -0
- package/lib/buttons/EditButton.d.ts +3 -0
- package/lib/buttons/EditButton.js +11 -0
- package/lib/buttons/InactivateButton.d.ts +3 -0
- package/lib/buttons/InactivateButton.js +11 -0
- package/lib/buttons/InfoButton.d.ts +3 -0
- package/lib/buttons/InfoButton.js +17 -0
- package/lib/buttons/PrimaryButton.d.ts +3 -0
- package/lib/buttons/PrimaryButton.js +17 -0
- package/lib/buttons/RestoreButton.d.ts +3 -0
- package/lib/buttons/RestoreButton.js +11 -0
- package/lib/buttons/SaveButton.d.ts +3 -0
- package/lib/buttons/SaveButton.js +16 -0
- package/lib/buttons/SuccessButton.d.ts +3 -0
- package/lib/buttons/SuccessButton.js +17 -0
- package/lib/buttons/WarningButton.d.ts +3 -0
- package/lib/buttons/WarningButton.js +17 -0
- package/lib/buttons/button_container/index.d.ts +10 -0
- package/lib/buttons/button_container/index.js +23 -0
- package/lib/buttons/buttons.spec.d.ts +0 -0
- package/lib/buttons/index.d.ts +17 -0
- package/lib/buttons/index.js +33 -0
- package/lib/buttons/split_button/index.d.ts +3 -0
- package/lib/buttons/split_button/index.js +58 -0
- package/lib/buttons/types.d.ts +46 -0
- package/lib/calendar/DangerCalendar.d.ts +3 -0
- package/lib/calendar/DangerCalendar.js +20 -0
- package/lib/calendar/InfoCalendar.d.ts +3 -0
- package/lib/calendar/InfoCalendar.js +20 -0
- package/lib/calendar/PrimaryCalendar.d.ts +3 -0
- package/lib/calendar/PrimaryCalendar.js +20 -0
- package/lib/calendar/SuccessCalendar.d.ts +3 -0
- package/lib/calendar/SuccessCalendar.js +20 -0
- package/lib/calendar/WarningCalendar.d.ts +3 -0
- package/lib/calendar/WarningCalendar.js +20 -0
- package/lib/calendar/base/Day.d.ts +3 -0
- package/lib/calendar/base/Day.js +37 -0
- package/lib/calendar/base/Month.d.ts +3 -0
- package/lib/calendar/base/Month.js +28 -0
- package/lib/calendar/base/Week.d.ts +3 -0
- package/lib/calendar/base/Week.js +24 -0
- package/lib/calendar/base/helpers.d.ts +59 -0
- package/lib/calendar/base/helpers.js +100 -0
- package/lib/calendar/base/index.d.ts +3 -0
- package/lib/calendar/base/index.js +137 -0
- package/lib/calendar/calendar.spec.d.ts +0 -0
- package/lib/calendar/index.d.ts +8 -0
- package/lib/calendar/index.js +14 -0
- package/lib/calendar/types.d.ts +27 -0
- package/lib/checkbox/checkbox.spec.d.ts +1 -0
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/checkbox/index.js +32 -0
- package/lib/checkbox/types.d.ts +45 -0
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/index.Df3kt2LQ.js +667 -0
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.d.ts +3 -0
- package/lib/dialog/Alert.js +24 -0
- package/lib/dialog/Custom.d.ts +3 -0
- package/lib/dialog/Custom.js +47 -0
- package/lib/dialog/Error.d.ts +3 -0
- package/lib/dialog/Error.js +24 -0
- package/lib/dialog/Information.d.ts +3 -0
- package/lib/dialog/Information.js +24 -0
- package/lib/dialog/Question.d.ts +3 -0
- package/lib/dialog/Question.js +47 -0
- package/lib/dialog/Warning.d.ts +3 -0
- package/lib/dialog/Warning.js +24 -0
- package/lib/dialog/base/Content.d.ts +3 -0
- package/lib/dialog/base/Content.js +15 -0
- package/lib/dialog/base/Footer.d.ts +3 -0
- package/lib/dialog/base/Footer.js +10 -0
- package/lib/dialog/base/Header.d.ts +3 -0
- package/lib/dialog/base/Header.js +8 -0
- package/lib/dialog/base/index.d.ts +10 -0
- package/lib/dialog/base/index.js +10 -0
- package/lib/dialog/base/style.d.ts +7 -0
- package/lib/dialog/dialog.spec.d.ts +0 -0
- package/lib/dialog/form/index.d.ts +5 -0
- package/lib/dialog/form/index.js +16 -0
- package/lib/dialog/index.d.ts +9 -0
- package/lib/dialog/index.js +16 -0
- package/lib/dialog/types.d.ts +107 -0
- package/lib/dialog/wizard/index.d.ts +9 -0
- package/lib/dialog/wizard/index.js +15 -0
- package/lib/dialog/wizard/progressbar.d.ts +11 -0
- package/lib/dialog/wizard/progressbar.js +98 -0
- package/lib/dialog/wizard/step.d.ts +2 -0
- package/lib/dialog/wizard/step.js +6 -0
- package/lib/dialog/wizard/useWizard.d.ts +2 -0
- package/lib/dialog/wizard/useWizard.js +45 -0
- package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
- package/lib/drawer/Content.d.ts +3 -0
- package/lib/drawer/Content.js +18 -0
- package/lib/drawer/Drawer.d.ts +4 -0
- package/lib/drawer/Drawer.js +75 -0
- package/lib/drawer/Drawer.spec.d.ts +1 -0
- package/lib/drawer/Header.d.ts +3 -0
- package/lib/drawer/Header.js +56 -0
- package/lib/drawer/helpers.d.ts +4 -0
- package/lib/drawer/helpers.js +5 -0
- package/lib/drawer/index.d.ts +5 -0
- package/lib/drawer/index.js +10 -0
- package/lib/drawer/types.d.ts +37 -0
- package/lib/dropdown/Popup.d.ts +3 -0
- package/lib/dropdown/Popup.js +51 -0
- package/lib/dropdown/dropdown.spec.d.ts +1 -0
- package/lib/dropdown/helper.d.ts +2 -0
- package/lib/dropdown/helper.js +8 -0
- package/lib/dropdown/types.d.ts +45 -0
- package/lib/dropdown/withDropdown.d.ts +9 -0
- package/lib/dropdown/withDropdown.js +80 -0
- package/lib/fieldset/fieldset.spec.d.ts +1 -0
- package/lib/fieldset/index.d.ts +3 -0
- package/lib/fieldset/index.js +70 -0
- package/lib/fieldset/types.d.ts +27 -0
- package/lib/form/Field.d.ts +2 -0
- package/lib/form/Field.js +98 -0
- package/lib/form/FieldArray.d.ts +2 -0
- package/lib/form/FieldArray.js +68 -0
- package/lib/form/FieldNumber.d.ts +2 -0
- package/lib/form/FieldNumber.js +48 -0
- package/lib/form/FieldPeriod.d.ts +2 -0
- package/lib/form/FieldPeriod.js +95 -0
- package/lib/form/form.spec.d.ts +0 -0
- package/lib/form/helpers.d.ts +8 -0
- package/lib/form/helpers.js +28 -0
- package/lib/form/index.d.ts +8 -0
- package/lib/form/index.js +150 -0
- package/lib/form/types.d.ts +233 -0
- package/lib/form/withFieldHOC.d.ts +4 -0
- package/lib/form/withFieldHOC.js +62 -0
- package/lib/form/withFormSecurity.d.ts +6 -0
- package/lib/form/withFormSecurity.js +30 -0
- package/lib/gridlayout/GridCol.d.ts +3 -0
- package/lib/gridlayout/GridCol.js +27 -0
- package/lib/gridlayout/GridRow.d.ts +3 -0
- package/lib/gridlayout/GridRow.js +26 -0
- package/lib/gridlayout/gridLayout.spec.d.ts +1 -0
- package/lib/gridlayout/index.d.ts +4 -0
- package/lib/gridlayout/index.js +6 -0
- package/lib/gridlayout/types.d.ts +17 -0
- package/lib/hint/helpers.d.ts +1 -0
- package/lib/hint/helpers.js +12 -0
- package/lib/hint/hint.spec.d.ts +1 -0
- package/lib/hint/index.d.ts +3 -0
- package/lib/hint/index.js +30 -0
- package/lib/hint/types.d.ts +11 -0
- package/lib/icons/helper.d.ts +635 -0
- package/lib/icons/helper.js +637 -0
- package/lib/icons/icons.spec.d.ts +1 -0
- package/lib/icons/index.d.ts +6 -0
- package/lib/icons/index.js +66 -0
- package/lib/icons/types.d.ts +46 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +28 -0
- package/lib/inputs/base/InputTextBase.d.ts +3 -0
- package/lib/inputs/base/InputTextBase.js +183 -0
- package/lib/inputs/base/Label.d.ts +6 -0
- package/lib/inputs/base/Label.js +30 -0
- package/lib/inputs/base/base.spec.d.ts +1 -0
- package/lib/inputs/base/helpers.d.ts +10 -0
- package/lib/inputs/base/helpers.js +30 -0
- package/lib/inputs/base/types.d.ts +98 -0
- package/lib/inputs/color/color_input.spec.d.ts +0 -0
- package/lib/inputs/color/index.d.ts +3 -0
- package/lib/inputs/color/index.js +57 -0
- package/lib/inputs/color/types.d.ts +16 -0
- package/lib/inputs/date/Dialog.d.ts +3 -0
- package/lib/inputs/date/Dialog.js +17 -0
- package/lib/inputs/date/Dropdown.d.ts +3 -0
- package/lib/inputs/date/Dropdown.js +19 -0
- package/lib/inputs/date/date.spec.d.ts +1 -0
- package/lib/inputs/date/helpers.d.ts +5 -0
- package/lib/inputs/date/helpers.js +10 -0
- package/lib/inputs/date/index.d.ts +3 -0
- package/lib/inputs/date/index.js +136 -0
- package/lib/inputs/date/types.d.ts +56 -0
- package/lib/inputs/errorMessage/error.spec.d.ts +1 -0
- package/lib/inputs/errorMessage/index.d.ts +4 -0
- package/lib/inputs/errorMessage/index.js +24 -0
- package/lib/inputs/file/DefaultFile.d.ts +3 -0
- package/lib/inputs/file/DefaultFile.js +68 -0
- package/lib/inputs/file/DragDropFile.d.ts +3 -0
- package/lib/inputs/file/DragDropFile.js +135 -0
- package/lib/inputs/file/File.d.ts +3 -0
- package/lib/inputs/file/File.js +31 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +3 -0
- package/lib/inputs/file/FileButtonSettings.js +24 -0
- package/lib/inputs/file/filefield.spec.d.ts +1 -0
- package/lib/inputs/file/helpers.d.ts +2 -0
- package/lib/inputs/file/helpers.js +11 -0
- package/lib/inputs/file/index.d.ts +5 -0
- package/lib/inputs/file/index.js +8 -0
- package/lib/inputs/file/types.d.ts +49 -0
- package/lib/inputs/inputHOC.d.ts +4 -0
- package/lib/inputs/inputHOC.js +42 -0
- package/lib/inputs/mask/BaseMask.d.ts +3 -0
- package/lib/inputs/mask/BaseMask.js +2672 -0
- package/lib/inputs/mask/Cnpj.d.ts +6 -0
- package/lib/inputs/mask/Cnpj.js +46 -0
- package/lib/inputs/mask/Cpf.d.ts +6 -0
- package/lib/inputs/mask/Cpf.js +48 -0
- package/lib/inputs/mask/Phone.d.ts +3 -0
- package/lib/inputs/mask/Phone.js +13 -0
- package/lib/inputs/mask/ZipCode.d.ts +3 -0
- package/lib/inputs/mask/ZipCode.js +11 -0
- package/lib/inputs/mask/helpers.d.ts +52 -0
- package/lib/inputs/mask/helpers.js +63 -0
- package/lib/inputs/mask/index.d.ts +7 -0
- package/lib/inputs/mask/index.js +12 -0
- package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
- package/lib/inputs/mask/types.d.ts +73 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +3 -0
- package/lib/inputs/multiSelect/ActionButtons.js +39 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +3 -0
- package/lib/inputs/multiSelect/Dropdown.js +98 -0
- package/lib/inputs/multiSelect/helper.d.ts +3 -0
- package/lib/inputs/multiSelect/helper.js +8 -0
- package/lib/inputs/multiSelect/index.d.ts +3 -0
- package/lib/inputs/multiSelect/index.js +180 -0
- package/lib/inputs/multiSelect/multiSelect.spec.d.ts +1 -0
- package/lib/inputs/multiSelect/types.d.ts +57 -0
- package/lib/inputs/number/BaseNumber.d.ts +3 -0
- package/lib/inputs/number/BaseNumber.js +59 -0
- package/lib/inputs/number/Currency.d.ts +3 -0
- package/lib/inputs/number/Currency.js +22 -0
- package/lib/inputs/number/Decimal.d.ts +3 -0
- package/lib/inputs/number/Decimal.js +11 -0
- package/lib/inputs/number/format_number.d.ts +3 -0
- package/lib/inputs/number/format_number.js +9 -0
- package/lib/inputs/number/index.d.ts +6 -0
- package/lib/inputs/number/index.js +34 -0
- package/lib/inputs/number/numberfield.spec.d.ts +1 -0
- package/lib/inputs/number/types.d.ts +28 -0
- package/lib/inputs/period/Dialog.d.ts +3 -0
- package/lib/inputs/period/Dialog.js +18 -0
- package/lib/inputs/period/Dropdown.d.ts +3 -0
- package/lib/inputs/period/Dropdown.js +18 -0
- package/lib/inputs/period/PeriodList.d.ts +3 -0
- package/lib/inputs/period/PeriodList.js +43 -0
- package/lib/inputs/period/helper.d.ts +11 -0
- package/lib/inputs/period/helper.js +39 -0
- package/lib/inputs/period/index.d.ts +3 -0
- package/lib/inputs/period/index.js +213 -0
- package/lib/inputs/period/types.d.ts +69 -0
- package/lib/inputs/search/index.d.ts +3 -0
- package/lib/inputs/search/index.js +104 -0
- package/lib/inputs/search/search_input.spec.d.ts +1 -0
- package/lib/inputs/select/ActionButtons.d.ts +3 -0
- package/lib/inputs/select/ActionButtons.js +28 -0
- package/lib/inputs/select/Dropdown.d.ts +3 -0
- package/lib/inputs/select/Dropdown.js +70 -0
- package/lib/inputs/select/helper.d.ts +11 -0
- package/lib/inputs/select/helper.js +48 -0
- package/lib/inputs/select/index.d.ts +3 -0
- package/lib/inputs/select/index.js +27 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +3 -0
- package/lib/inputs/select/multiple/Selecteds.js +25 -0
- package/lib/inputs/select/multiple/index.d.ts +3 -0
- package/lib/inputs/select/multiple/index.js +126 -0
- package/lib/inputs/select/select.spec.d.ts +1 -0
- package/lib/inputs/select/simple/index.d.ts +3 -0
- package/lib/inputs/select/simple/index.js +156 -0
- package/lib/inputs/select/types.d.ts +117 -0
- package/lib/inputs/text/index.d.ts +3 -0
- package/lib/inputs/text/index.js +11 -0
- package/lib/inputs/text/textfield.spec.d.ts +1 -0
- package/lib/inputs/text/types.d.ts +21 -0
- package/lib/inputs/textarea/index.d.ts +3 -0
- package/lib/inputs/textarea/index.js +16 -0
- package/lib/inputs/textarea/textarea.spec.d.ts +1 -0
- package/lib/inputs/textarea/types.d.ts +7 -0
- package/lib/inputs/types.d.ts +151 -0
- package/lib/internals/colorStyles.d.ts +8 -0
- package/lib/internals/colorStyles.js +10 -0
- package/lib/internals/constants.d.ts +9 -0
- package/lib/internals/constants.js +12 -0
- package/lib/internals/types.d.ts +22 -0
- package/lib/internals/withTooltip.d.ts +8 -0
- package/lib/internals/withTooltip.js +122 -0
- package/lib/labelMessages/index.d.ts +3 -0
- package/lib/labelMessages/index.js +53 -0
- package/lib/labelMessages/labelMessages.spec.d.ts +1 -0
- package/lib/labelMessages/types.d.ts +16 -0
- package/lib/labels/DangerLabel.d.ts +3 -0
- package/lib/labels/DangerLabel.js +20 -0
- package/lib/labels/DefaultLabel.d.ts +6 -0
- package/lib/labels/DefaultLabel.js +55 -0
- package/lib/labels/InfoLabel.d.ts +3 -0
- package/lib/labels/InfoLabel.js +20 -0
- package/lib/labels/PrimaryLabel.d.ts +3 -0
- package/lib/labels/PrimaryLabel.js +20 -0
- package/lib/labels/SuccessLabel.d.ts +3 -0
- package/lib/labels/SuccessLabel.js +20 -0
- package/lib/labels/WarningLabel.d.ts +3 -0
- package/lib/labels/WarningLabel.js +20 -0
- package/lib/labels/index.d.ts +9 -0
- package/lib/labels/index.js +17 -0
- package/lib/labels/label.spec.d.ts +1 -0
- package/lib/labels/label_container/index.d.ts +10 -0
- package/lib/labels/label_container/index.js +18 -0
- package/lib/labels/types.d.ts +22 -0
- package/lib/list/Header.d.ts +3 -0
- package/lib/list/Header.js +20 -0
- package/lib/list/Item.d.ts +6 -0
- package/lib/list/Item.js +14 -0
- package/lib/list/Separator.d.ts +2 -0
- package/lib/list/Separator.js +10 -0
- package/lib/list/helpers.d.ts +9 -0
- package/lib/list/helpers.js +10 -0
- package/lib/list/index.d.ts +7 -0
- package/lib/list/index.js +104 -0
- package/lib/list/list.spec.d.ts +1 -0
- package/lib/list/types.d.ts +69 -0
- package/lib/menus/float/MenuItem.d.ts +3 -0
- package/lib/menus/float/MenuItem.js +55 -0
- package/lib/menus/float/SubMenuContainer.d.ts +29 -0
- package/lib/menus/float/float-menu.spec.d.ts +0 -0
- package/lib/menus/float/helpers.d.ts +4 -0
- package/lib/menus/float/helpers.js +5 -0
- package/lib/menus/float/index.d.ts +6 -0
- package/lib/menus/float/index.js +113 -0
- package/lib/menus/float/types.d.ts +26 -0
- package/lib/menus/index.d.ts +2 -0
- package/lib/menus/index.js +4 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +3 -0
- package/lib/menus/sidenav/ExpandMenu.js +19 -0
- package/lib/menus/sidenav/MenuLink.d.ts +6 -0
- package/lib/menus/sidenav/MenuLink.js +24 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +3 -0
- package/lib/menus/sidenav/NavMenuGroup.js +22 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +6 -0
- package/lib/menus/sidenav/NavMenuItem.js +136 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +3 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +39 -0
- package/lib/menus/sidenav/helpers.d.ts +6 -0
- package/lib/menus/sidenav/helpers.js +10 -0
- package/lib/menus/sidenav/index.d.ts +8 -0
- package/lib/menus/sidenav/index.js +150 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +3 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +23 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +4 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +56 -0
- package/lib/menus/sidenav/sidenav.spec.d.ts +1 -0
- package/lib/menus/sidenav/types.d.ts +85 -0
- package/lib/noPermission/index.d.ts +2 -0
- package/lib/noPermission/index.js +16 -0
- package/lib/panel/Content.d.ts +3 -0
- package/lib/panel/Content.js +55 -0
- package/lib/panel/DangerPanel.d.ts +3 -0
- package/lib/panel/DangerPanel.js +12 -0
- package/lib/panel/Default.d.ts +3 -0
- package/lib/panel/Default.js +68 -0
- package/lib/panel/Header.d.ts +3 -0
- package/lib/panel/Header.js +58 -0
- package/lib/panel/InfoPanel.d.ts +3 -0
- package/lib/panel/InfoPanel.js +12 -0
- package/lib/panel/PrimaryPanel.d.ts +3 -0
- package/lib/panel/PrimaryPanel.js +12 -0
- package/lib/panel/SuccessPanel.d.ts +3 -0
- package/lib/panel/SuccessPanel.js +12 -0
- package/lib/panel/ToolBar.d.ts +3 -0
- package/lib/panel/ToolBar.js +19 -0
- package/lib/panel/WarningPanel.d.ts +3 -0
- package/lib/panel/WarningPanel.js +12 -0
- package/lib/panel/helpers.d.ts +5 -0
- package/lib/panel/helpers.js +15 -0
- package/lib/panel/index.d.ts +10 -0
- package/lib/panel/index.js +19 -0
- package/lib/panel/panel.spec.d.ts +0 -0
- package/lib/panel/types.d.ts +43 -0
- package/lib/permissionValidations.d.ts +12 -0
- package/lib/permissionValidations.js +46 -0
- package/lib/popover/PopoverText.d.ts +4 -0
- package/lib/popover/PopoverText.js +14 -0
- package/lib/popover/PopoverTitle.d.ts +3 -0
- package/lib/popover/PopoverTitle.js +12 -0
- package/lib/popover/index.d.ts +6 -0
- package/lib/popover/index.js +39 -0
- package/lib/popover/popover.spec.d.ts +1 -0
- package/lib/popover/types.d.ts +31 -0
- package/lib/progress/Bar.d.ts +3 -0
- package/lib/progress/Bar.js +51 -0
- package/lib/progress/index.d.ts +5 -0
- package/lib/progress/index.js +26 -0
- package/lib/progress/progress.spec.d.ts +1 -0
- package/lib/progress/types.d.ts +34 -0
- package/lib/radio/index.d.ts +8 -0
- package/lib/radio/index.js +112 -0
- package/lib/radio/radio.spec.d.ts +1 -0
- package/lib/radio/types.d.ts +25 -0
- package/lib/shortcuts/index.d.ts +3 -0
- package/lib/shortcuts/index.js +22 -0
- package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
- package/lib/shortcuts/types.d.ts +9 -0
- package/lib/skeleton/SkeletonContainer.d.ts +3 -0
- package/lib/skeleton/SkeletonContainer.js +19 -0
- package/lib/skeleton/index.d.ts +5 -0
- package/lib/skeleton/index.js +49 -0
- package/lib/skeleton/types.d.ts +18 -0
- package/lib/spinner/SpinnerLoading.d.ts +3 -0
- package/lib/spinner/SpinnerLoading.js +55 -0
- package/lib/spinner/index.d.ts +3 -0
- package/lib/spinner/index.js +51 -0
- package/lib/spinner/spinner.spec.d.ts +1 -0
- package/lib/spinner/types.d.ts +17 -0
- package/lib/split/Split.d.ts +3 -0
- package/lib/split/Split.js +193 -0
- package/lib/split/SplitSide.d.ts +3 -0
- package/lib/split/SplitSide.js +27 -0
- package/lib/split/helpers.d.ts +8 -0
- package/lib/split/helpers.js +5 -0
- package/lib/split/index.d.ts +4 -0
- package/lib/split/index.js +6 -0
- package/lib/split/split.spec.d.ts +0 -0
- package/lib/split/types.d.ts +31 -0
- package/lib/table/Body.d.ts +3 -0
- package/lib/table/Body.js +46 -0
- package/lib/table/Header.d.ts +3 -0
- package/lib/table/Header.js +52 -0
- package/lib/table/HeaderColumn.d.ts +3 -0
- package/lib/table/HeaderColumn.js +43 -0
- package/lib/table/Row.d.ts +3 -0
- package/lib/table/Row.js +53 -0
- package/lib/table/RowColumn.d.ts +3 -0
- package/lib/table/RowColumn.js +58 -0
- package/lib/table/helpers.d.ts +7 -0
- package/lib/table/helpers.js +9 -0
- package/lib/table/index.d.ts +9 -0
- package/lib/table/index.js +106 -0
- package/lib/table/table.spec.d.ts +1 -0
- package/lib/table/types.d.ts +94 -0
- package/lib/tabs/DropdownTabs.d.ts +3 -0
- package/lib/tabs/DropdownTabs.js +84 -0
- package/lib/tabs/Menu.d.ts +3 -0
- package/lib/tabs/Menu.js +38 -0
- package/lib/tabs/MenuTabs.d.ts +4 -0
- package/lib/tabs/MenuTabs.js +64 -0
- package/lib/tabs/Panel.d.ts +3 -0
- package/lib/tabs/Panel.js +62 -0
- package/lib/tabs/context.d.ts +4 -0
- package/lib/tabs/context.js +64 -0
- package/lib/tabs/index.d.ts +5 -0
- package/lib/tabs/index.js +73 -0
- package/lib/tabs/tabHelpers.d.ts +9 -0
- package/lib/tabs/tabHelpers.js +48 -0
- package/lib/tabs/tabs.spec.d.ts +0 -0
- package/lib/tabs/types.d.ts +95 -0
- package/lib/tabs/useTabs.d.ts +1 -0
- package/lib/tabs/useTabs.js +8 -0
- package/lib/textContent/index.d.ts +18 -0
- package/lib/textContent/index.js +33 -0
- package/lib/textContent/textContent.spec.d.ts +1 -0
- package/lib/toolbar/ButtonBar.d.ts +3 -0
- package/lib/toolbar/ButtonBar.js +67 -0
- package/lib/toolbar/LabelBar.d.ts +3 -0
- package/lib/toolbar/LabelBar.js +51 -0
- package/lib/toolbar/Separator.d.ts +2 -0
- package/lib/toolbar/Separator.js +10 -0
- package/lib/toolbar/ToolBarGroup.d.ts +3 -0
- package/lib/toolbar/ToolBarGroup.js +16 -0
- package/lib/toolbar/helpers.d.ts +3 -0
- package/lib/toolbar/helpers.js +5 -0
- package/lib/toolbar/index.d.ts +8 -0
- package/lib/toolbar/index.js +39 -0
- package/lib/toolbar/toolbar.spec.d.ts +1 -0
- package/lib/toolbar/types.d.ts +43 -0
- package/lib/tooltip/index.d.ts +4 -0
- package/lib/tooltip/index.js +39 -0
- package/lib/tooltip/tooltip.spec.d.ts +1 -0
- package/lib/tooltip/types.d.ts +15 -0
- package/lib/treetable/Body.d.ts +2 -0
- package/lib/treetable/Body.js +34 -0
- package/lib/treetable/Header.d.ts +2 -0
- package/lib/treetable/Header.js +30 -0
- package/lib/treetable/Row.d.ts +3 -0
- package/lib/treetable/Row.js +220 -0
- package/lib/treetable/helpers.d.ts +13 -0
- package/lib/treetable/helpers.js +17 -0
- package/lib/treetable/index.d.ts +4 -0
- package/lib/treetable/index.js +28 -0
- package/lib/treeview/Header.d.ts +3 -0
- package/lib/treeview/Header.js +16 -0
- package/lib/treeview/Node.d.ts +3 -0
- package/lib/treeview/Node.js +206 -0
- package/lib/treeview/constants.d.ts +3 -0
- package/lib/treeview/constants.js +5 -0
- package/lib/treeview/index.d.ts +6 -0
- package/lib/treeview/index.js +268 -0
- package/lib/treeview/treeview.spec.d.ts +0 -0
- package/lib/treeview/types.d.ts +106 -0
- package/lib/uitour/helpers.d.ts +7 -0
- package/lib/uitour/helpers.js +9 -0
- package/lib/uitour/index.d.ts +4 -0
- package/lib/uitour/index.js +187 -0
- package/lib/uitour/types.d.ts +35 -0
- package/lib/uitour/uitour.spec.d.ts +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { j as x } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { useState as m, 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 mr } from "./helpers.js";
|
|
5
|
+
import { default as Ar } from "./Field.js";
|
|
6
|
+
import { default as Qr } from "./FieldNumber.js";
|
|
7
|
+
import { default as Dr } from "./FieldArray.js";
|
|
8
|
+
import { default as Ur } from "./FieldPeriod.js";
|
|
9
|
+
import "../chunks/index.aw0XaUkg.js";
|
|
10
|
+
import "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
11
|
+
import "../buttons/DefaultButton.js";
|
|
12
|
+
import "../icons/index.js";
|
|
13
|
+
import '../assets/button.css';import '../assets/index13.css';/* empty css */
|
|
14
|
+
import dr from "../dialog/Question.js";
|
|
15
|
+
import { FormSecurityContext as pr } from "./withFormSecurity.js";
|
|
16
|
+
import { v as Fr } from "../chunks/v1.Ds1rkxUj.js";
|
|
17
|
+
const Cr = ({
|
|
18
|
+
submitOnPressEnterKey: g = !0,
|
|
19
|
+
dataSource: d,
|
|
20
|
+
securityBeforeUnload: j,
|
|
21
|
+
handlerReset: k,
|
|
22
|
+
handlerSubmit: L,
|
|
23
|
+
handlerValidates: w,
|
|
24
|
+
style: M,
|
|
25
|
+
customClass: z,
|
|
26
|
+
securityTitle: $,
|
|
27
|
+
securityText: G,
|
|
28
|
+
securityData: C,
|
|
29
|
+
onDataChange: u,
|
|
30
|
+
onValidateForm: p,
|
|
31
|
+
externalFieldErrors: H,
|
|
32
|
+
onSubmit: T,
|
|
33
|
+
skeletonize: W,
|
|
34
|
+
disabled: V,
|
|
35
|
+
children: X,
|
|
36
|
+
useInternalState: l = !1
|
|
37
|
+
}) => {
|
|
38
|
+
const Y = Fr(), [h, J] = m(d), [E, Z] = m(d), [b, K] = m(g), [v, O] = m({}), [A, _] = m(0), [I, rr] = m(!1), c = ar(pr), tr = U(null), a = U({}), i = l ? h : d, R = (r, t) => {
|
|
39
|
+
const e = r instanceof Array ? r : [r];
|
|
40
|
+
let o = [];
|
|
41
|
+
return e.forEach((s) => {
|
|
42
|
+
if (typeof s == "function") {
|
|
43
|
+
const n = s(t);
|
|
44
|
+
n && (o = [...o, n]);
|
|
45
|
+
}
|
|
46
|
+
}), o;
|
|
47
|
+
}, or = (r, t) => {
|
|
48
|
+
const e = r || i;
|
|
49
|
+
let o = f.pickBy(v, (s, n) => Object.keys(t).includes(n));
|
|
50
|
+
return f.forEach(t, (s, n) => {
|
|
51
|
+
const P = f.get(e, n), lr = R(s, P);
|
|
52
|
+
o = {
|
|
53
|
+
...o,
|
|
54
|
+
[n]: lr
|
|
55
|
+
};
|
|
56
|
+
}), o;
|
|
57
|
+
}, y = (r, t = !0, e = null) => {
|
|
58
|
+
const o = or(r, e || a.current), s = Object.values(o).every((n) => n.length === 0);
|
|
59
|
+
return t && rr(s), s;
|
|
60
|
+
}, er = q((r) => {
|
|
61
|
+
const {
|
|
62
|
+
target: t
|
|
63
|
+
} = r;
|
|
64
|
+
!l && u ? u((e) => B(e, t)) : J((e) => B(e, t));
|
|
65
|
+
}, []), sr = (r, t, e) => {
|
|
66
|
+
if (e) {
|
|
67
|
+
let o = v;
|
|
68
|
+
const s = R(e, t);
|
|
69
|
+
s.length === 0 ? o = f.omit(o, r) : o = {
|
|
70
|
+
...o,
|
|
71
|
+
[r]: s
|
|
72
|
+
}, O(o);
|
|
73
|
+
}
|
|
74
|
+
}, Q = q((r) => {
|
|
75
|
+
r && (r.preventDefault(), r.stopPropagation()), y(i) && T(i);
|
|
76
|
+
}, [i]), S = (r, t) => {
|
|
77
|
+
const e = t ? t instanceof Array ? t : [t] : [];
|
|
78
|
+
e.length > 0 ? (r((o) => {
|
|
79
|
+
const s = JSON.parse(JSON.stringify(o));
|
|
80
|
+
return e.forEach((n) => {
|
|
81
|
+
n && f.set(s, n, f.get(E, n));
|
|
82
|
+
}), s;
|
|
83
|
+
}), O((o) => (e.forEach((s) => {
|
|
84
|
+
delete o[s];
|
|
85
|
+
}), o))) : (r(JSON.parse(JSON.stringify(E))), O({}));
|
|
86
|
+
}, ir = (r) => {
|
|
87
|
+
S(!l && u ? u : J, r);
|
|
88
|
+
}, nr = (r) => {
|
|
89
|
+
const t = f.omit(a, r);
|
|
90
|
+
a.current = t;
|
|
91
|
+
}, N = (r) => {
|
|
92
|
+
r.preventDefault(), f.isEqual(i, E);
|
|
93
|
+
}, fr = () => {
|
|
94
|
+
let r = null;
|
|
95
|
+
return V || (r = {
|
|
96
|
+
onSubmit: (t) => t.preventDefault(),
|
|
97
|
+
onKeyPress: (t) => {
|
|
98
|
+
t && t.key === "Enter" && (t.preventDefault(), t.stopPropagation(), b && Q());
|
|
99
|
+
}
|
|
100
|
+
}), r;
|
|
101
|
+
}, D = () => {
|
|
102
|
+
if (!f.isEmpty(c)) {
|
|
103
|
+
const {
|
|
104
|
+
onChangedData: r
|
|
105
|
+
} = c;
|
|
106
|
+
C && !f.isEqual(i, C) ? r(!0) : r(!1);
|
|
107
|
+
}
|
|
108
|
+
u && l && u(i), p && p(y(i, !0)), V || (L(Q), k && k(ir), w && w(() => y(i))), f.isEmpty(i) && Z(i);
|
|
109
|
+
};
|
|
110
|
+
F(() => {
|
|
111
|
+
l && D();
|
|
112
|
+
}, [JSON.stringify(h), l]), F(() => {
|
|
113
|
+
!l && u && D();
|
|
114
|
+
}, [JSON.stringify(d), l]), F(() => (j && (c && c.setSecurityBeforeUnload(!0), window.addEventListener("beforeunload", N)), () => window.removeEventListener("beforeunload", N)), [j, N]), F(() => {
|
|
115
|
+
!V && g !== b && K(g);
|
|
116
|
+
}, [g]), F(() => {
|
|
117
|
+
const r = Object.values(a.current).reduce((t, e) => t + (e?.length || 0), 0);
|
|
118
|
+
a.current && p && A !== r && (_(r), p(y(i, !0, a.current)));
|
|
119
|
+
}, [a.current, A, p, JSON.stringify(i)]);
|
|
120
|
+
const cr = {
|
|
121
|
+
skeletonize: W,
|
|
122
|
+
handlerFieldChange: er,
|
|
123
|
+
handlerFieldValidate: sr,
|
|
124
|
+
handlerStoreValidators: (r, t) => {
|
|
125
|
+
a.current = {
|
|
126
|
+
...a.current,
|
|
127
|
+
[r]: t
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
handlerRemoveValidators: nr,
|
|
131
|
+
data: l ? h : d,
|
|
132
|
+
originalData: E,
|
|
133
|
+
fieldErrors: v,
|
|
134
|
+
externalFieldErrors: H,
|
|
135
|
+
isFormValid: I
|
|
136
|
+
};
|
|
137
|
+
return /* @__PURE__ */ x.jsxs(ur, { children: [
|
|
138
|
+
/* @__PURE__ */ x.jsx(mr.Provider, { value: cr, children: /* @__PURE__ */ x.jsx("form", { id: Y, ref: tr, style: M, ...fr(), role: "presentation", className: `form-component ${z}`, children: X }) }),
|
|
139
|
+
/* @__PURE__ */ x.jsx(dr, { zIndex: "99999999", title: $ || "Dados Alterados", text: G || "Você possui dados alterados, confirma o fechamento?", visible: !f.isEmpty(c) && c.showQuestion, onConfirmClick: c ? c.onConfirmClick : () => {
|
|
140
|
+
}, onUnconfirmClick: c ? c.onUnconfirmClick : () => {
|
|
141
|
+
} })
|
|
142
|
+
] });
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
Ar as Field,
|
|
146
|
+
Dr as FieldArray,
|
|
147
|
+
Qr as FieldNumber,
|
|
148
|
+
Ur as FieldPeriod,
|
|
149
|
+
Cr as default
|
|
150
|
+
};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { ChangeEvent, ComponentType, CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { AllOptions } from '../inputs/select/types';
|
|
3
|
+
export type Validator = (value: string) => string | undefined;
|
|
4
|
+
export type PeriodValidator = (value: {
|
|
5
|
+
inicial: string;
|
|
6
|
+
final: string;
|
|
7
|
+
}) => string | undefined;
|
|
8
|
+
export type OnFielChangeEvent = Event & {
|
|
9
|
+
target: HTMLInputElement;
|
|
10
|
+
};
|
|
11
|
+
export type CustomKeyboardEvent = ChangeEvent<HTMLInputElement> & {
|
|
12
|
+
keyCode: number;
|
|
13
|
+
};
|
|
14
|
+
type BaseFormProps = {
|
|
15
|
+
dataSource: object;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
onSubmit: (data: object) => void;
|
|
18
|
+
handlerSubmit: (value: () => void) => void;
|
|
19
|
+
handlerReset?: (value: () => void) => void;
|
|
20
|
+
handlerValidates?: (value: any) => void;
|
|
21
|
+
onValidateForm?: (value: boolean) => void;
|
|
22
|
+
submitOnPressEnterKey?: boolean;
|
|
23
|
+
style?: CSSProperties;
|
|
24
|
+
customClass?: string;
|
|
25
|
+
securityBeforeUnload?: boolean;
|
|
26
|
+
securityTitle?: string;
|
|
27
|
+
securityText?: string;
|
|
28
|
+
securityData?: object;
|
|
29
|
+
externalFieldErrors?: object;
|
|
30
|
+
skeletonize?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
};
|
|
33
|
+
type OnDataChange = React.Dispatch<React.SetStateAction<object>>;
|
|
34
|
+
export type FormProps = BaseFormProps & ({
|
|
35
|
+
useInternalState?: false;
|
|
36
|
+
onDataChange: OnDataChange;
|
|
37
|
+
} | {
|
|
38
|
+
useInternalState: true;
|
|
39
|
+
onDataChange?: OnDataChange;
|
|
40
|
+
});
|
|
41
|
+
type Data = {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
};
|
|
44
|
+
export interface IFieldProps extends WithFieldProps {
|
|
45
|
+
data?: Data;
|
|
46
|
+
originalData?: Data;
|
|
47
|
+
dataSource?: Data;
|
|
48
|
+
name: string;
|
|
49
|
+
value?: string;
|
|
50
|
+
label?: string;
|
|
51
|
+
handlerFieldChange?: (event: ChangeEvent<HTMLInputElement> | CustomKeyboardEvent) => ChangeEvent;
|
|
52
|
+
handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
53
|
+
component: ComponentType<any>;
|
|
54
|
+
componentType?: 'Radio' | 'Checkbox';
|
|
55
|
+
onChange?: (event: ChangeEvent) => ChangeEvent;
|
|
56
|
+
onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
57
|
+
onKeyDown?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
58
|
+
validators?: Validator | Validator[];
|
|
59
|
+
fieldErrors?: {
|
|
60
|
+
[name: string]: string[];
|
|
61
|
+
};
|
|
62
|
+
externalFieldErrors?: {
|
|
63
|
+
[name: string]: string[];
|
|
64
|
+
};
|
|
65
|
+
externalMessagesErrors?: string[];
|
|
66
|
+
fieldId?: string;
|
|
67
|
+
scale?: number;
|
|
68
|
+
required?: boolean;
|
|
69
|
+
idKey?: string;
|
|
70
|
+
descriptionKey?: string;
|
|
71
|
+
showClearButton?: boolean;
|
|
72
|
+
gridLayout?: string;
|
|
73
|
+
allOptions?: AllOptions;
|
|
74
|
+
searchNotFoundText?: string;
|
|
75
|
+
min?: number;
|
|
76
|
+
max?: number;
|
|
77
|
+
autoFocus?: boolean;
|
|
78
|
+
autoCompleteMask?: 'left' | 'right';
|
|
79
|
+
mask?: string;
|
|
80
|
+
hint?: string | string[];
|
|
81
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
82
|
+
themePopover?: 'light' | 'dark';
|
|
83
|
+
popoverAlign?: 'right' | 'left';
|
|
84
|
+
displayCurrencySymbol?: boolean;
|
|
85
|
+
removeZeroLeft?: boolean;
|
|
86
|
+
textAlign?: 'left' | 'right';
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
currencySymbol?: string;
|
|
89
|
+
checked?: boolean;
|
|
90
|
+
}
|
|
91
|
+
export interface CustomEvent {
|
|
92
|
+
target: {
|
|
93
|
+
value: string[];
|
|
94
|
+
name: string;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export interface IFieldArrayProps extends WithFieldProps {
|
|
98
|
+
data?: Data;
|
|
99
|
+
originalData?: Data;
|
|
100
|
+
dataSource?: Data;
|
|
101
|
+
name: string;
|
|
102
|
+
handlerFieldChange?: (event: CustomEvent) => void;
|
|
103
|
+
fieldErrors?: {
|
|
104
|
+
[name: string]: string[];
|
|
105
|
+
};
|
|
106
|
+
validators?: Validator | Validator[];
|
|
107
|
+
valuePropName?: string;
|
|
108
|
+
changePropName?: string;
|
|
109
|
+
handlerSelecionados?: (ids: string[]) => void;
|
|
110
|
+
label?: string;
|
|
111
|
+
skipLabel?: boolean;
|
|
112
|
+
bordered?: boolean;
|
|
113
|
+
cols?: string;
|
|
114
|
+
labelContainerStyle?: object;
|
|
115
|
+
externalMessagesErrors?: string[];
|
|
116
|
+
idKey?: string;
|
|
117
|
+
descriptionKey?: string;
|
|
118
|
+
showClearButton?: boolean;
|
|
119
|
+
gridLayout?: string;
|
|
120
|
+
multiple?: boolean;
|
|
121
|
+
disabled?: boolean;
|
|
122
|
+
onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
123
|
+
handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
124
|
+
required?: boolean;
|
|
125
|
+
hint?: string | string[];
|
|
126
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
127
|
+
themePopover?: 'light' | 'dark';
|
|
128
|
+
popoverAlign?: 'right' | 'left';
|
|
129
|
+
}
|
|
130
|
+
export type PeriodChangeEvent = {
|
|
131
|
+
initial: string;
|
|
132
|
+
final: string;
|
|
133
|
+
};
|
|
134
|
+
type PeriodFieldChangeEvent = {
|
|
135
|
+
target: {
|
|
136
|
+
name: string;
|
|
137
|
+
value: {
|
|
138
|
+
[valueDate: string]: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
export interface IFieldPeriodProps extends WithFieldProps {
|
|
143
|
+
data?: Data;
|
|
144
|
+
originalData?: Data;
|
|
145
|
+
nameDateInitial: string;
|
|
146
|
+
nameDateFinal: string;
|
|
147
|
+
handlerFieldChange?: (event: PeriodFieldChangeEvent) => PeriodFieldChangeEvent;
|
|
148
|
+
label?: string;
|
|
149
|
+
onBlur?: () => void;
|
|
150
|
+
validators?: PeriodValidator | PeriodValidator[];
|
|
151
|
+
fieldErrors?: {
|
|
152
|
+
[name: string]: string[];
|
|
153
|
+
};
|
|
154
|
+
externalMessagesErrors?: string[];
|
|
155
|
+
externalFieldErrors?: {
|
|
156
|
+
[name: string]: string[];
|
|
157
|
+
};
|
|
158
|
+
handlerFieldValidate?: (name: string, value: object, validatorsArray: PeriodValidator[] | PeriodValidator) => void;
|
|
159
|
+
onChange?: (event: PeriodChangeEvent) => PeriodChangeEvent;
|
|
160
|
+
gridLayout?: string;
|
|
161
|
+
hint?: string | string[];
|
|
162
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
163
|
+
themePopover?: 'light' | 'dark';
|
|
164
|
+
popoverAlign?: 'right' | 'left';
|
|
165
|
+
}
|
|
166
|
+
export interface FormContextProps {
|
|
167
|
+
skeletonize?: boolean;
|
|
168
|
+
handlerFieldChange: (event: OnFielChangeEvent) => void;
|
|
169
|
+
handlerFieldValidate: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
170
|
+
handlerStoreValidators: (fieldName: string, fieldValidates: Validator) => void;
|
|
171
|
+
handlerRemoveValidators: (fieldName: string) => void;
|
|
172
|
+
data: object;
|
|
173
|
+
originalData: object;
|
|
174
|
+
fieldErrors: object;
|
|
175
|
+
externalFieldErrors?: object;
|
|
176
|
+
isFormValid?: boolean;
|
|
177
|
+
}
|
|
178
|
+
export interface WithFieldProps {
|
|
179
|
+
name: string;
|
|
180
|
+
data?: Data;
|
|
181
|
+
handlerStoreValidators?: (name: string, validators: Validator | Validator[]) => void;
|
|
182
|
+
handlerRemoveValidators?: (name: string) => void;
|
|
183
|
+
validators?: Validator | Validator[] | PeriodValidator | PeriodValidator[];
|
|
184
|
+
customClass?: string;
|
|
185
|
+
component: ComponentType<any>;
|
|
186
|
+
}
|
|
187
|
+
export interface IWithFieldContext {
|
|
188
|
+
validatorFromComponent: Validator | Validator[] | undefined;
|
|
189
|
+
handlerSetValidatorFromComponent: (validator: Validator | Validator[]) => void;
|
|
190
|
+
}
|
|
191
|
+
export interface IWithFormSecurity {
|
|
192
|
+
onOpenChange?: (open: boolean) => void;
|
|
193
|
+
handlerClose?: () => void;
|
|
194
|
+
onClick?: MouseEventHandler;
|
|
195
|
+
children?: ReactNode;
|
|
196
|
+
}
|
|
197
|
+
export interface IFormSecurityContext {
|
|
198
|
+
onChangedData: (value: boolean) => void;
|
|
199
|
+
showQuestion: boolean;
|
|
200
|
+
onConfirmClick: () => void;
|
|
201
|
+
onUnconfirmClick: () => void;
|
|
202
|
+
setSecurityBeforeUnload: (value: boolean) => void;
|
|
203
|
+
securityBeforeUnload?: boolean;
|
|
204
|
+
}
|
|
205
|
+
export interface IEventParams {
|
|
206
|
+
name: string;
|
|
207
|
+
data?: object;
|
|
208
|
+
validators?: Validator | Validator[];
|
|
209
|
+
onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
210
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
211
|
+
onKeyDown?: (event: CustomKeyboardEvent) => void;
|
|
212
|
+
handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
213
|
+
handlerFieldChange?: (event: ChangeEvent<HTMLInputElement> | CustomKeyboardEvent) => void;
|
|
214
|
+
validatorFromComponent?: Validator | Validator[];
|
|
215
|
+
component?: ComponentType<any>;
|
|
216
|
+
}
|
|
217
|
+
export interface IGetErrorMessagesParams {
|
|
218
|
+
name: string;
|
|
219
|
+
fieldErrors?: {
|
|
220
|
+
[name: string]: string[];
|
|
221
|
+
};
|
|
222
|
+
externalFieldErrors?: {
|
|
223
|
+
[name: string]: string[];
|
|
224
|
+
};
|
|
225
|
+
externalMessagesErrors?: string[];
|
|
226
|
+
}
|
|
227
|
+
export type FieldErrors = {
|
|
228
|
+
[name: string]: string[];
|
|
229
|
+
};
|
|
230
|
+
export type FieldValidator = {
|
|
231
|
+
[name: string]: Validator | Validator[];
|
|
232
|
+
};
|
|
233
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { j as v } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as y } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import E, { useState as _, useEffect as j } from "react";
|
|
4
|
+
import { FormContext as b, withFieldContext as A, getValidatorsArray as g } from "./helpers.js";
|
|
5
|
+
const k = (F) => {
|
|
6
|
+
const w = (a) => {
|
|
7
|
+
const e = y.c(23), {
|
|
8
|
+
name: o,
|
|
9
|
+
validators: t,
|
|
10
|
+
handlerStoreValidators: n,
|
|
11
|
+
handlerRemoveValidators: i
|
|
12
|
+
} = a, [r, R] = _(void 0);
|
|
13
|
+
let s;
|
|
14
|
+
e[0] !== n || e[1] !== o || e[2] !== r || e[3] !== t ? (s = () => {
|
|
15
|
+
const p = g(t, r);
|
|
16
|
+
p && n && n(o, p);
|
|
17
|
+
}, e[0] = n, e[1] = o, e[2] = r, e[3] = t, e[4] = s) : s = e[4];
|
|
18
|
+
const l = s;
|
|
19
|
+
let f;
|
|
20
|
+
e[5] !== i || e[6] !== o || e[7] !== l || e[8] !== t ? (f = () => (l(), () => {
|
|
21
|
+
t && i && i(o);
|
|
22
|
+
}), e[5] = i, e[6] = o, e[7] = l, e[8] = t, e[9] = f) : f = e[9];
|
|
23
|
+
let d;
|
|
24
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (d = [], e[10] = d) : d = e[10], j(f, d);
|
|
25
|
+
let c;
|
|
26
|
+
e[11] !== l ? (c = () => {
|
|
27
|
+
l();
|
|
28
|
+
}, e[11] = l, e[12] = c) : c = e[12];
|
|
29
|
+
let u;
|
|
30
|
+
e[13] !== t ? (u = [t], e[13] = t, e[14] = u) : u = e[14], j(c, u);
|
|
31
|
+
let x;
|
|
32
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (x = (p) => {
|
|
33
|
+
R(p);
|
|
34
|
+
}, e[15] = x) : x = e[15];
|
|
35
|
+
let h;
|
|
36
|
+
e[16] !== r ? (h = {
|
|
37
|
+
validatorFromComponent: r,
|
|
38
|
+
handlerSetValidatorFromComponent: x
|
|
39
|
+
}, e[16] = r, e[17] = h) : h = e[17];
|
|
40
|
+
const V = h;
|
|
41
|
+
let m;
|
|
42
|
+
e[18] !== a ? (m = /* @__PURE__ */ v.jsx(F, { ...a }), e[18] = a, e[19] = m) : m = e[19];
|
|
43
|
+
let C;
|
|
44
|
+
return e[20] !== V || e[21] !== m ? (C = /* @__PURE__ */ v.jsx(A.Provider, { value: V, children: m }), e[20] = V, e[21] = m, e[22] = C) : C = e[22], C;
|
|
45
|
+
};
|
|
46
|
+
function S(a, e) {
|
|
47
|
+
return /* @__PURE__ */ v.jsx(b.Consumer, { children: ({
|
|
48
|
+
handlerFieldChange: o,
|
|
49
|
+
handlerFieldValidate: t,
|
|
50
|
+
data: n,
|
|
51
|
+
fieldErrors: i,
|
|
52
|
+
externalFieldErrors: r,
|
|
53
|
+
handlerStoreValidators: R,
|
|
54
|
+
handlerRemoveValidators: s,
|
|
55
|
+
skeletonize: l
|
|
56
|
+
}) => /* @__PURE__ */ v.jsx(w, { ...a, skeletonize: l, handlerFieldChange: o, handlerFieldValidate: t, handlerStoreValidators: R, handlerRemoveValidators: s, data: n, fieldErrors: i, externalFieldErrors: r, forwardedRef: e }) });
|
|
57
|
+
}
|
|
58
|
+
return E.forwardRef(S);
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
k as default
|
|
62
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IFormSecurityContext, IWithFormSecurity } from './types';
|
|
3
|
+
declare const FormSecurityContext: React.Context<IFormSecurityContext>;
|
|
4
|
+
declare const withFormSecurity: <ComponentProps extends IWithFormSecurity>(WrappedComponent: React.ComponentType<ComponentProps>) => (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default withFormSecurity;
|
|
6
|
+
export { FormSecurityContext };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import d, { useRef as i, useState as m } from "react";
|
|
3
|
+
const h = d.createContext({}), k = (l) => (r) => {
|
|
4
|
+
const {
|
|
5
|
+
onOpenChange: e,
|
|
6
|
+
handlerClose: n
|
|
7
|
+
} = r, s = i(!1), o = i(!1), [f, c] = m(!1), u = () => {
|
|
8
|
+
s.current && o.current ? c(!0) : e ? e(!1) : n && n();
|
|
9
|
+
}, C = {
|
|
10
|
+
onChangedData: (t) => {
|
|
11
|
+
s.current = t;
|
|
12
|
+
},
|
|
13
|
+
showQuestion: f,
|
|
14
|
+
onConfirmClick: () => {
|
|
15
|
+
e && e(!1), n && n();
|
|
16
|
+
},
|
|
17
|
+
onUnconfirmClick: () => {
|
|
18
|
+
c(!1);
|
|
19
|
+
},
|
|
20
|
+
setSecurityBeforeUnload: (t) => {
|
|
21
|
+
o.current = t;
|
|
22
|
+
},
|
|
23
|
+
securityBeforeUnload: o.current
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ a.jsx(h.Provider, { value: C, children: /* @__PURE__ */ a.jsx(l, { ...r, handlerClose: u }) });
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
h as FormSecurityContext,
|
|
29
|
+
k as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { j as d } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as p } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import '../assets/gridlayout.css';/* empty css */
|
|
4
|
+
const $ = (o) => {
|
|
5
|
+
const s = o ? o.split(" ") : [];
|
|
6
|
+
let t = "grid-container ";
|
|
7
|
+
return s[0] && (t += `col-xs-${s[0]}`), s[1] && (t += ` col-sm-${s[1]}`), s[2] && (t += ` col-md-${s[2]}`), s[3] && (t += ` col-lg-${s[3]}`), t;
|
|
8
|
+
}, C = (o) => {
|
|
9
|
+
const s = p.c(6), {
|
|
10
|
+
cols: t,
|
|
11
|
+
customClass: a,
|
|
12
|
+
children: i,
|
|
13
|
+
style: c,
|
|
14
|
+
visible: m
|
|
15
|
+
} = o, f = m === void 0 ? !0 : m, r = t || "";
|
|
16
|
+
let l;
|
|
17
|
+
s[0] !== r ? (l = $(r), s[0] = r, s[1] = l) : l = s[1];
|
|
18
|
+
const u = l;
|
|
19
|
+
if (!f)
|
|
20
|
+
return null;
|
|
21
|
+
const n = `${a} ${u}`;
|
|
22
|
+
let e;
|
|
23
|
+
return s[2] !== i || s[3] !== c || s[4] !== n ? (e = /* @__PURE__ */ d.jsx("div", { className: n, style: c, children: i }), s[2] = i, s[3] = c, s[4] = n, s[5] = e) : e = s[5], e;
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
C as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import '../assets/gridlayout.css';/* empty css */
|
|
4
|
+
const v = (i) => `row ${i.customClass}
|
|
5
|
+
${i.withTrim && " -withtrim"}
|
|
6
|
+
${i.verticalAlign && ` align-items-${i.verticalAlign}`}
|
|
7
|
+
${i.horizontalAlign && ` justify-content-${i.horizontalAlign}`}`, d = (i) => {
|
|
8
|
+
const t = m.c(7), {
|
|
9
|
+
style: n,
|
|
10
|
+
children: s,
|
|
11
|
+
verticalAlign: c,
|
|
12
|
+
visible: o
|
|
13
|
+
} = i, r = c === void 0 ? "start" : c;
|
|
14
|
+
if (!(o === void 0 ? !0 : o))
|
|
15
|
+
return null;
|
|
16
|
+
let l;
|
|
17
|
+
t[0] !== i || t[1] !== r ? (l = v({
|
|
18
|
+
...i,
|
|
19
|
+
verticalAlign: r
|
|
20
|
+
}), t[0] = i, t[1] = r, t[2] = l) : l = t[2];
|
|
21
|
+
let e;
|
|
22
|
+
return t[3] !== s || t[4] !== n || t[5] !== l ? (e = /* @__PURE__ */ a.jsx("div", { style: n, className: l, children: s }), t[3] = s, t[4] = n, t[5] = l, t[6] = e) : e = t[6], e;
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
d as default
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
export interface IGridCol {
|
|
3
|
+
children?: ReactNode | ReactNode[];
|
|
4
|
+
cols?: string;
|
|
5
|
+
customClass?: string;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IGridRow {
|
|
10
|
+
children?: ReactNode | ReactNode[];
|
|
11
|
+
verticalAlign?: 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
12
|
+
horizontalAlign?: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
withTrim?: boolean;
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
customClass?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const showHintList: (arrayHint: string[]) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { j as s } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
const n = (t) => /* @__PURE__ */ s.jsx("div", { className: "rules-list", style: {
|
|
3
|
+
padding: "15px 0px"
|
|
4
|
+
}, children: /* @__PURE__ */ s.jsx("ul", { style: {
|
|
5
|
+
listStyleType: "none"
|
|
6
|
+
}, children: t.map((i, e) => /* @__PURE__ */ s.jsxs("li", { children: [
|
|
7
|
+
"-",
|
|
8
|
+
i
|
|
9
|
+
] }, e.toString())) }) });
|
|
10
|
+
export {
|
|
11
|
+
n as showHintList
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { j as c } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as v } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { showHintList as x } from "./helpers.js";
|
|
4
|
+
import '../assets/index8.css';const k = (m) => {
|
|
5
|
+
const s = v.c(8), {
|
|
6
|
+
visible: n,
|
|
7
|
+
description: t,
|
|
8
|
+
customClass: p,
|
|
9
|
+
skeletonize: a,
|
|
10
|
+
style: l,
|
|
11
|
+
disabled: d,
|
|
12
|
+
color: f
|
|
13
|
+
} = m, u = n === void 0 ? !0 : n, b = a === void 0 ? !1 : a, e = d === void 0 ? !1 : d;
|
|
14
|
+
if (!u || !t)
|
|
15
|
+
return null;
|
|
16
|
+
const r = `
|
|
17
|
+
hint-component
|
|
18
|
+
${p}
|
|
19
|
+
${b ? "-skeletonized" : ""}
|
|
20
|
+
${e ? "-disabled" : ""}
|
|
21
|
+
-${f}
|
|
22
|
+
`;
|
|
23
|
+
let i;
|
|
24
|
+
s[0] !== t || s[1] !== e ? (i = Array.isArray(t) ? x(t) : /* @__PURE__ */ c.jsx("span", { "aria-disabled": e, children: t }), s[0] = t, s[1] = e, s[2] = i) : i = s[2];
|
|
25
|
+
let o;
|
|
26
|
+
return s[3] !== e || s[4] !== l || s[5] !== r || s[6] !== i ? (o = /* @__PURE__ */ c.jsx("div", { "aria-disabled": e, style: l, className: r, children: i }), s[3] = e, s[4] = l, s[5] = r, s[6] = i, s[7] = o) : o = s[7], o;
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
k as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ColorStyles } from '../@types/ColorStyles';
|
|
3
|
+
export interface HintProps {
|
|
4
|
+
description?: string | string[];
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
customClass?: string;
|
|
7
|
+
skeletonize?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
color?: ColorStyles;
|
|
11
|
+
}
|