linear-react-components-ui 1.1.26-beta.7 → 1.1.26-beta.9
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 +2 -2
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
export interface WithDropdownProps {
|
|
3
|
+
dropdown?: boolean;
|
|
4
|
+
dropdownOpened?: boolean;
|
|
5
|
+
dropdownAlign?: 'left' | 'right';
|
|
6
|
+
isDropdownOpened?: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
customClassForDropdown?: string;
|
|
9
|
+
closeDropdownOnClickOutside?: boolean;
|
|
10
|
+
showDropdown?: () => void;
|
|
11
|
+
isFloatMenu?: boolean;
|
|
12
|
+
handlerClose?: (cb: () => void) => void;
|
|
13
|
+
}
|
|
14
|
+
export interface WrappedComponentProps extends WithDropdownProps {
|
|
15
|
+
getDropdownPopup?: (ref: Ref<HTMLElement | null>) => ReactElement;
|
|
16
|
+
}
|
|
17
|
+
export interface GetDisplayNameParams {
|
|
18
|
+
displayName?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface WithDropdownContextProps {
|
|
22
|
+
handleDropdownClose: () => void;
|
|
23
|
+
}
|
|
24
|
+
export interface IPopupProps {
|
|
25
|
+
id?: string;
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
customClassForDropdown?: string;
|
|
28
|
+
align: 'left' | 'right';
|
|
29
|
+
isFloatMenu?: boolean;
|
|
30
|
+
topPosition?: number;
|
|
31
|
+
leftPosition?: number;
|
|
32
|
+
rightPosition?: number;
|
|
33
|
+
minWidth?: number;
|
|
34
|
+
targetRef?: HTMLElement | HTMLInputElement | null;
|
|
35
|
+
}
|
|
36
|
+
export interface GetDropdownStyleParams {
|
|
37
|
+
align: 'left' | 'right';
|
|
38
|
+
minWidth: number;
|
|
39
|
+
isFloatMenu: boolean;
|
|
40
|
+
topPosition: number;
|
|
41
|
+
leftPosition: number;
|
|
42
|
+
rightPosition: number;
|
|
43
|
+
container?: HTMLDivElement;
|
|
44
|
+
target?: HTMLElement | HTMLInputElement | null;
|
|
45
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { WithDropdownProps, WithDropdownContextProps } from './types';
|
|
3
|
+
declare const WithDropdownContext: React.Context<WithDropdownContextProps>;
|
|
4
|
+
declare const withDropdown: <ComponentProps extends WithDropdownProps>(WrappedComponent: React.ComponentType<ComponentProps>) => {
|
|
5
|
+
(props: ComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export default withDropdown;
|
|
9
|
+
export { WithDropdownContext };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { j as f } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as K } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { createContext as Q, useState as V, useRef as q, useEffect as z } from "react";
|
|
4
|
+
import T from "./Popup.js";
|
|
5
|
+
import '../assets/withDropdown.css';const U = Q({}), X = (o) => o.displayName || o.name || "Component", oe = (o) => {
|
|
6
|
+
const A = (n) => {
|
|
7
|
+
const e = K.c(30), {
|
|
8
|
+
dropdownOpened: c,
|
|
9
|
+
showDropdown: m,
|
|
10
|
+
dropdown: i,
|
|
11
|
+
closeDropdownOnClickOutside: F,
|
|
12
|
+
handlerClose: d,
|
|
13
|
+
customClassForDropdown: P,
|
|
14
|
+
children: g,
|
|
15
|
+
dropdownAlign: L,
|
|
16
|
+
isFloatMenu: p,
|
|
17
|
+
isDropdownOpened: B
|
|
18
|
+
} = n, a = F === void 0 ? !0 : F, S = L === void 0 ? "left" : L, [s, u] = V(c), [G, H] = V(c), w = q(null), $ = q(null);
|
|
19
|
+
c !== G && (u(c), H(c));
|
|
20
|
+
let h;
|
|
21
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (h = (t) => {
|
|
22
|
+
const {
|
|
23
|
+
target: E
|
|
24
|
+
} = t;
|
|
25
|
+
w?.current && E !== w?.current && !t.composedPath().includes(w.current) && $.current !== E && u(!1);
|
|
26
|
+
}, e[0] = h) : h = e[0];
|
|
27
|
+
const M = h;
|
|
28
|
+
let D;
|
|
29
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (D = () => {
|
|
30
|
+
u(Y);
|
|
31
|
+
}, e[1] = D) : D = e[1];
|
|
32
|
+
const I = D;
|
|
33
|
+
let x;
|
|
34
|
+
e[2] !== g || e[3] !== P || e[4] !== S || e[5] !== p || e[6] !== s ? (x = (t) => !t || !s ? null : ($.current = t, /* @__PURE__ */ f.jsx(T, { targetRef: t, align: S, customClassForDropdown: P, isFloatMenu: p, children: /* @__PURE__ */ f.jsx("div", { className: p ? "items" : void 0, ref: (E) => {
|
|
35
|
+
w.current = E;
|
|
36
|
+
}, children: g }) })), e[2] = g, e[3] = P, e[4] = S, e[5] = p, e[6] = s, e[7] = x) : x = e[7];
|
|
37
|
+
const b = x;
|
|
38
|
+
let O;
|
|
39
|
+
e[8] !== a || e[9] !== i ? (O = () => (i && a && document.addEventListener("click", M), () => {
|
|
40
|
+
i && a && document.removeEventListener("click", M);
|
|
41
|
+
}), e[8] = a, e[9] = i, e[10] = O) : O = e[10];
|
|
42
|
+
let v;
|
|
43
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (v = [], e[11] = v) : v = e[11], z(O, v);
|
|
44
|
+
let C, _;
|
|
45
|
+
e[12] !== d ? (C = () => {
|
|
46
|
+
d && d(() => u(!1));
|
|
47
|
+
}, _ = [d], e[12] = d, e[13] = C, e[14] = _) : (C = e[13], _ = e[14]), z(C, _);
|
|
48
|
+
let j;
|
|
49
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (j = {
|
|
50
|
+
handleDropdownClose: I
|
|
51
|
+
}, e[15] = j) : j = e[15];
|
|
52
|
+
const J = j;
|
|
53
|
+
let r;
|
|
54
|
+
e[16] !== b ? (r = (t) => b(t), e[16] = b, e[17] = r) : r = e[17];
|
|
55
|
+
let l;
|
|
56
|
+
e[18] !== s || e[19] !== m ? (l = m || (() => u(!s)), e[18] = s, e[19] = m, e[20] = l) : l = e[20];
|
|
57
|
+
const N = B || s;
|
|
58
|
+
let y;
|
|
59
|
+
e[21] !== r || e[22] !== l || e[23] !== N ? (y = {
|
|
60
|
+
getDropdownPopup: r,
|
|
61
|
+
showDropdown: l,
|
|
62
|
+
isDropdownOpened: N
|
|
63
|
+
}, e[21] = r, e[22] = l, e[23] = N, e[24] = y) : y = e[24];
|
|
64
|
+
const R = y;
|
|
65
|
+
if (!i) {
|
|
66
|
+
let t;
|
|
67
|
+
return e[25] !== n ? (t = /* @__PURE__ */ f.jsx(o, { ...n }), e[25] = n, e[26] = t) : t = e[26], t;
|
|
68
|
+
}
|
|
69
|
+
let k;
|
|
70
|
+
return e[27] !== R || e[28] !== n ? (k = /* @__PURE__ */ f.jsx(U.Provider, { value: J, children: /* @__PURE__ */ f.jsx(o, { ...n, ...R }) }), e[27] = R, e[28] = n, e[29] = k) : k = e[29], k;
|
|
71
|
+
};
|
|
72
|
+
return A.displayName = `withDropdown(${X(o)})`, A;
|
|
73
|
+
};
|
|
74
|
+
function Y(o) {
|
|
75
|
+
return !o;
|
|
76
|
+
}
|
|
77
|
+
export {
|
|
78
|
+
U as WithDropdownContext,
|
|
79
|
+
oe as default
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { j as l } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as _ } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as F, Fragment as I } from "react";
|
|
4
|
+
import '../assets/gridlayout.css';import '../assets/index12.css';/* empty css */
|
|
5
|
+
import G from "../gridlayout/GridCol.js";
|
|
6
|
+
import { actionsOnPermissionDenied as k, OPTIONS_ON_DENIED as q } from "../permissionValidations.js";
|
|
7
|
+
import z from "../noPermission/index.js";
|
|
8
|
+
const V = (s) => {
|
|
9
|
+
const t = _.c(21), {
|
|
10
|
+
gridCols: o,
|
|
11
|
+
children: i,
|
|
12
|
+
title: e,
|
|
13
|
+
titleAlign: $,
|
|
14
|
+
style: u,
|
|
15
|
+
styleContent: C,
|
|
16
|
+
styleTitle: g,
|
|
17
|
+
template: y,
|
|
18
|
+
titleCustomClass: p,
|
|
19
|
+
permissionAttr: h,
|
|
20
|
+
leftElements: N,
|
|
21
|
+
rightElements: w
|
|
22
|
+
} = s, x = $ === void 0 ? "left" : $, n = y === void 0 ? "none" : y, j = N === void 0 ? null : N, v = w === void 0 ? null : w, {
|
|
23
|
+
hideContent: T,
|
|
24
|
+
unvisible: b
|
|
25
|
+
} = q;
|
|
26
|
+
let r;
|
|
27
|
+
t[0] !== h ? (r = k([T, b], h), t[0] = h, t[1] = r) : r = t[1];
|
|
28
|
+
const [c] = F(r), A = B;
|
|
29
|
+
let m;
|
|
30
|
+
t[2] !== n ? (m = (P) => {
|
|
31
|
+
const {
|
|
32
|
+
colsCount: O,
|
|
33
|
+
rowsCount: D
|
|
34
|
+
} = P, R = O === void 0 ? 2 : O, S = D === void 0 ? 2 : D;
|
|
35
|
+
return n === "rows" ? {
|
|
36
|
+
gridTemplateRows: `repeat(${S}, 1fr)`
|
|
37
|
+
} : n === "columns" ? {
|
|
38
|
+
gridTemplateColumns: `repeat(${R}, 1fr)`
|
|
39
|
+
} : {};
|
|
40
|
+
}, t[2] = n, t[3] = m) : m = t[3];
|
|
41
|
+
const E = m;
|
|
42
|
+
let d;
|
|
43
|
+
t[4] !== i || t[5] !== E || t[6] !== j || t[7] !== c.hideContent || t[8] !== s || t[9] !== v || t[10] !== u || t[11] !== C || t[12] !== g || t[13] !== n || t[14] !== e || t[15] !== x || t[16] !== p ? (d = () => /* @__PURE__ */ l.jsx("fieldset", { style: u, className: A({
|
|
44
|
+
...s
|
|
45
|
+
}), children: c.hideContent ? /* @__PURE__ */ l.jsx(z, {}) : /* @__PURE__ */ l.jsxs(I, { children: [
|
|
46
|
+
e && /* @__PURE__ */ l.jsxs("legend", { style: g, align: x, className: `legend ${p}`, children: [
|
|
47
|
+
j,
|
|
48
|
+
e,
|
|
49
|
+
v
|
|
50
|
+
] }),
|
|
51
|
+
/* @__PURE__ */ l.jsx("div", { className: `contentfieldset -template${n} `, style: Object.assign(E(s), C), children: i })
|
|
52
|
+
] }) }), t[4] = i, t[5] = E, t[6] = j, t[7] = c.hideContent, t[8] = s, t[9] = v, t[10] = u, t[11] = C, t[12] = g, t[13] = n, t[14] = e, t[15] = x, t[16] = p, t[17] = d) : d = t[17];
|
|
53
|
+
const a = d;
|
|
54
|
+
if (c.unvisible)
|
|
55
|
+
return null;
|
|
56
|
+
let f;
|
|
57
|
+
return t[18] !== o || t[19] !== a ? (f = o ? /* @__PURE__ */ l.jsx(G, { cols: o, children: a() }) : a(), t[18] = o, t[19] = a, t[20] = f) : f = t[20], f;
|
|
58
|
+
};
|
|
59
|
+
function B(s) {
|
|
60
|
+
const {
|
|
61
|
+
type: t,
|
|
62
|
+
customClass: o,
|
|
63
|
+
hasError: i
|
|
64
|
+
} = s;
|
|
65
|
+
let e = `fieldset-component ${o}`;
|
|
66
|
+
return t && (e = `${e} -${t}`), i && (e = `${e} -witherror`), e;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
V as default
|
|
70
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { j as N } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as V } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { forwardRef as A, useContext as L } from "react";
|
|
4
|
+
import { _ as C } from "../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import M from "./withFieldHOC.js";
|
|
6
|
+
import { withFieldContext as S, getErrorMessages as $, getValidatorsArray as b } from "./helpers.js";
|
|
7
|
+
const B = ({
|
|
8
|
+
validators: o = [],
|
|
9
|
+
name: s,
|
|
10
|
+
onBlur: e,
|
|
11
|
+
handlerFieldValidate: r,
|
|
12
|
+
validatorFromComponent: l,
|
|
13
|
+
handlerFieldChange: n,
|
|
14
|
+
onChange: t
|
|
15
|
+
}) => {
|
|
16
|
+
if (!(o || l || e || t)) return {};
|
|
17
|
+
const i = b(o, l);
|
|
18
|
+
return {
|
|
19
|
+
onBlur: (a) => {
|
|
20
|
+
i && a.target && r && r(s, a.target.value, i), e && e(a);
|
|
21
|
+
},
|
|
22
|
+
onChange: (a) => {
|
|
23
|
+
i && a.target && r && r(s, a.target.value, i), n && n(a), t && t(a);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}, D = (o, s) => {
|
|
27
|
+
const {
|
|
28
|
+
value: e,
|
|
29
|
+
data: r,
|
|
30
|
+
name: l,
|
|
31
|
+
fieldId: n,
|
|
32
|
+
componentType: t,
|
|
33
|
+
component: i
|
|
34
|
+
} = o;
|
|
35
|
+
return t && t.toLowerCase() === "radio" ? {
|
|
36
|
+
checked: C.get(r, l) === e,
|
|
37
|
+
id: n
|
|
38
|
+
} : t && t.toLowerCase() === "checkbox" ? {
|
|
39
|
+
checked: C.get(r, l),
|
|
40
|
+
id: n
|
|
41
|
+
} : i.displayName === "CpfField" || i.displayName === "CnpjField" ? {
|
|
42
|
+
value: C.get(r, l),
|
|
43
|
+
handlerSetComponentValidator: s
|
|
44
|
+
} : {
|
|
45
|
+
value: C.get(r, l)
|
|
46
|
+
};
|
|
47
|
+
}, x = A((o, s) => {
|
|
48
|
+
const e = V.c(30);
|
|
49
|
+
let r, l, n, t, i, a, d, m;
|
|
50
|
+
if (e[0] !== o) {
|
|
51
|
+
const {
|
|
52
|
+
handlerFieldChange: F,
|
|
53
|
+
handlerFieldValidate: E,
|
|
54
|
+
onChange: y,
|
|
55
|
+
onBlur: w,
|
|
56
|
+
name: j,
|
|
57
|
+
validators: p,
|
|
58
|
+
data: H,
|
|
59
|
+
fieldErrors: I,
|
|
60
|
+
handlerStoreValidators: O,
|
|
61
|
+
handlerRemoveValidators: P,
|
|
62
|
+
component: R,
|
|
63
|
+
externalFieldErrors: T,
|
|
64
|
+
originalData: _,
|
|
65
|
+
...k
|
|
66
|
+
} = o;
|
|
67
|
+
l = F, n = E, a = y, i = w, t = j, m = p, r = R, d = k, e[0] = o, e[1] = r, e[2] = l, e[3] = n, e[4] = t, e[5] = i, e[6] = a, e[7] = d, e[8] = m;
|
|
68
|
+
} else
|
|
69
|
+
r = e[1], l = e[2], n = e[3], t = e[4], i = e[5], a = e[6], d = e[7], m = e[8];
|
|
70
|
+
const {
|
|
71
|
+
handlerSetValidatorFromComponent: h,
|
|
72
|
+
validatorFromComponent: v
|
|
73
|
+
} = L(S);
|
|
74
|
+
let f;
|
|
75
|
+
e[9] !== l || e[10] !== n || e[11] !== t || e[12] !== i || e[13] !== a || e[14] !== v || e[15] !== m ? (f = B({
|
|
76
|
+
name: t,
|
|
77
|
+
validators: m,
|
|
78
|
+
onBlur: i,
|
|
79
|
+
validatorFromComponent: v,
|
|
80
|
+
handlerFieldValidate: n,
|
|
81
|
+
handlerFieldChange: l,
|
|
82
|
+
onChange: a
|
|
83
|
+
}), e[9] = l, e[10] = n, e[11] = t, e[12] = i, e[13] = a, e[14] = v, e[15] = m, e[16] = f) : f = e[16];
|
|
84
|
+
let c;
|
|
85
|
+
e[17] !== h || e[18] !== o ? (c = D(o, h), e[17] = h, e[18] = o, e[19] = c) : c = e[19];
|
|
86
|
+
let u;
|
|
87
|
+
e[20] !== o ? (u = $({
|
|
88
|
+
...o,
|
|
89
|
+
fieldErrors: o.fieldErrors
|
|
90
|
+
}), e[20] = o, e[21] = u) : u = e[21];
|
|
91
|
+
let g;
|
|
92
|
+
return e[22] !== r || e[23] !== t || e[24] !== s || e[25] !== d || e[26] !== f || e[27] !== c || e[28] !== u ? (g = /* @__PURE__ */ N.jsx(r, { ...d, ...f, ...c, ref: s, name: t, errorMessages: u }), e[22] = r, e[23] = t, e[24] = s, e[25] = d, e[26] = f, e[27] = c, e[28] = u, e[29] = g) : g = e[29], g;
|
|
93
|
+
});
|
|
94
|
+
x.displayName = "Field";
|
|
95
|
+
const U = M(x);
|
|
96
|
+
export {
|
|
97
|
+
U as default
|
|
98
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.D1SHvdVE.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 "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
6
|
+
import '../assets/gridlayout.css';/* empty css */
|
|
7
|
+
import F from "../gridlayout/GridCol.js";
|
|
8
|
+
import b from "../fieldset/index.js";
|
|
9
|
+
import { getErrorMessages as h } from "./helpers.js";
|
|
10
|
+
const g = (e) => {
|
|
11
|
+
const {
|
|
12
|
+
valuePropName: i = "value",
|
|
13
|
+
changePropName: r = "onSelect",
|
|
14
|
+
data: m,
|
|
15
|
+
name: n,
|
|
16
|
+
handlerFieldChange: l,
|
|
17
|
+
handlerSelecionados: s,
|
|
18
|
+
onBlur: a
|
|
19
|
+
} = e;
|
|
20
|
+
return {
|
|
21
|
+
onBlur: u((o) => {
|
|
22
|
+
a && a(o);
|
|
23
|
+
}, [a]),
|
|
24
|
+
[i]: x.get(m, n),
|
|
25
|
+
[r]: u((o) => {
|
|
26
|
+
l && l({
|
|
27
|
+
target: {
|
|
28
|
+
value: o,
|
|
29
|
+
name: n
|
|
30
|
+
}
|
|
31
|
+
}), s && s(o);
|
|
32
|
+
}, [l, s, r])
|
|
33
|
+
};
|
|
34
|
+
}, j = (e) => {
|
|
35
|
+
const {
|
|
36
|
+
cols: i,
|
|
37
|
+
label: r,
|
|
38
|
+
bordered: m,
|
|
39
|
+
labelContainerStyle: n,
|
|
40
|
+
skipLabel: l,
|
|
41
|
+
data: s,
|
|
42
|
+
name: a,
|
|
43
|
+
handlerStoreValidators: o,
|
|
44
|
+
component: f,
|
|
45
|
+
handlerFieldChange: p,
|
|
46
|
+
handlerFieldValidate: v,
|
|
47
|
+
changePropName: y,
|
|
48
|
+
fieldErrors: P,
|
|
49
|
+
externalMessagesErrors: S,
|
|
50
|
+
handlerRemoveValidators: M,
|
|
51
|
+
validators: N,
|
|
52
|
+
valuePropName: V,
|
|
53
|
+
originalData: k,
|
|
54
|
+
handlerSelecionados: A,
|
|
55
|
+
...c
|
|
56
|
+
} = e;
|
|
57
|
+
let d = null;
|
|
58
|
+
return f && (!l && r ? d = /* @__PURE__ */ t.jsx(b, { title: r, customClass: `arraycontainer ${m && "-bordered"}`, style: n, titleCustomClass: "label", children: /* @__PURE__ */ t.jsx(f, { ...c, ...g(e), label: r, name: a, errorMessages: h({
|
|
59
|
+
...e,
|
|
60
|
+
fieldErrors: e.fieldErrors
|
|
61
|
+
}) }) }) : d = /* @__PURE__ */ t.jsx(C, { children: /* @__PURE__ */ t.jsx(f, { ...c, ...g(e), label: r, name: a, errorMessages: h({
|
|
62
|
+
...e,
|
|
63
|
+
fieldErrors: e.fieldErrors
|
|
64
|
+
}) }) })), i ? /* @__PURE__ */ t.jsx(F, { cols: i, children: d }) : d;
|
|
65
|
+
}, _ = E(j);
|
|
66
|
+
export {
|
|
67
|
+
_ as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { j as E } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as g } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { _ as x } from "../chunks/lodash.CIAK_hAg.js";
|
|
4
|
+
import n from "./withFieldHOC.js";
|
|
5
|
+
import { getErrorMessages as N } from "./helpers.js";
|
|
6
|
+
import { keyCodes as b } from "../internals/constants.js";
|
|
7
|
+
const j = ({
|
|
8
|
+
name: f,
|
|
9
|
+
validators: t,
|
|
10
|
+
onBlur: o,
|
|
11
|
+
onKeyDown: s,
|
|
12
|
+
onChange: i,
|
|
13
|
+
handlerFieldValidate: m,
|
|
14
|
+
handlerFieldChange: u,
|
|
15
|
+
component: r
|
|
16
|
+
}) => ({
|
|
17
|
+
onBlur: (e) => {
|
|
18
|
+
r?.name !== "NumberField" && u && u(e), t && m && m(f, e.target.value, t), o && o(e);
|
|
19
|
+
},
|
|
20
|
+
onKeyDown: (e) => {
|
|
21
|
+
[b.ENTER].includes(e.keyCode) && (t && m?.(f, e.target.value, t), s && s(e));
|
|
22
|
+
},
|
|
23
|
+
onChange: (e) => {
|
|
24
|
+
r?.name === "NumberField" && (t && e.target && m && m(f, e.target.value, t), u && u(e)), i && i(e);
|
|
25
|
+
}
|
|
26
|
+
}), k = (f) => {
|
|
27
|
+
const t = g.c(12), {
|
|
28
|
+
data: o,
|
|
29
|
+
name: s
|
|
30
|
+
} = f;
|
|
31
|
+
let i;
|
|
32
|
+
t[0] !== o || t[1] !== s ? (i = x.get(o, s), t[0] = o, t[1] = s, t[2] = i) : i = t[2];
|
|
33
|
+
const m = i, u = f.component;
|
|
34
|
+
let r;
|
|
35
|
+
t[3] !== f ? (r = j({
|
|
36
|
+
...f
|
|
37
|
+
}), t[3] = f, t[4] = r) : r = t[4];
|
|
38
|
+
let e;
|
|
39
|
+
t[5] !== f ? (e = N({
|
|
40
|
+
...f,
|
|
41
|
+
fieldErrors: f.fieldErrors
|
|
42
|
+
}), t[5] = f, t[6] = e) : e = t[6];
|
|
43
|
+
let c;
|
|
44
|
+
return t[7] !== m || t[8] !== f || t[9] !== r || t[10] !== e ? (c = /* @__PURE__ */ E.jsx(u, { ...f, ...r, errorMessages: e, value: m }), t[7] = m, t[8] = f, t[9] = r, t[10] = e, t[11] = c) : c = t[11], c;
|
|
45
|
+
}, O = n(k);
|
|
46
|
+
export {
|
|
47
|
+
O as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { j as b } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as H } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as I, useEffect as L } from "react";
|
|
4
|
+
import { _ as a } from "../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import '../assets/gridlayout.css';/* empty css */
|
|
6
|
+
import O from "../gridlayout/GridCol.js";
|
|
7
|
+
import k from "./withFieldHOC.js";
|
|
8
|
+
import { getErrorMessages as z } from "./helpers.js";
|
|
9
|
+
const B = (d) => {
|
|
10
|
+
const e = H.c(47), {
|
|
11
|
+
data: i,
|
|
12
|
+
nameDateInitial: o,
|
|
13
|
+
nameDateFinal: n,
|
|
14
|
+
handlerFieldChange: u,
|
|
15
|
+
handlerFieldValidate: g,
|
|
16
|
+
fieldErrors: V,
|
|
17
|
+
externalMessagesErrors: j,
|
|
18
|
+
onChange: h,
|
|
19
|
+
validators: E,
|
|
20
|
+
originalData: w,
|
|
21
|
+
gridLayout: p,
|
|
22
|
+
component: x,
|
|
23
|
+
name: t,
|
|
24
|
+
externalFieldErrors: D
|
|
25
|
+
} = d;
|
|
26
|
+
let c = null;
|
|
27
|
+
const [S, q] = I(!1);
|
|
28
|
+
let y;
|
|
29
|
+
e[0] !== i || e[1] !== t ? (y = a.get(i, t), e[0] = i, e[1] = t, e[2] = y) : y = e[2];
|
|
30
|
+
const l = y;
|
|
31
|
+
let _;
|
|
32
|
+
e[3] !== t || e[4] !== w ? (_ = a.get(w, t), e[3] = t, e[4] = w, e[5] = _) : _ = e[5];
|
|
33
|
+
const C = _;
|
|
34
|
+
let F;
|
|
35
|
+
e[6] !== l || e[7] !== i || e[8] !== C ? (F = () => {
|
|
36
|
+
!a.isEqual(l, C) && l && (l || l === 0 || Array.isArray(l) && l.length > 0) ? q(!0) : (a.isEmpty(i) || a.every(i, a.isEmpty) || a.isEqual(l, C)) && q(!1);
|
|
37
|
+
}, e[6] = l, e[7] = i, e[8] = C, e[9] = F) : F = e[9];
|
|
38
|
+
let $;
|
|
39
|
+
e[10] !== l ? ($ = [l], e[10] = l, e[11] = $) : $ = e[11], L(F, $);
|
|
40
|
+
let v;
|
|
41
|
+
e[12] !== D || e[13] !== j || e[14] !== V || e[15] !== t || e[16] !== S ? (v = z({
|
|
42
|
+
name: t,
|
|
43
|
+
fieldErrors: S ? V : {},
|
|
44
|
+
externalFieldErrors: D,
|
|
45
|
+
externalMessagesErrors: j
|
|
46
|
+
}), e[12] = D, e[13] = j, e[14] = V, e[15] = t, e[16] = S, e[17] = v) : v = e[17];
|
|
47
|
+
const A = v;
|
|
48
|
+
if (x) {
|
|
49
|
+
let s;
|
|
50
|
+
e[18] !== u || e[19] !== g || e[20] !== t || e[21] !== n || e[22] !== o || e[23] !== h || e[24] !== E ? (s = (J, K, G) => {
|
|
51
|
+
const {
|
|
52
|
+
initial: P,
|
|
53
|
+
final: R
|
|
54
|
+
} = G;
|
|
55
|
+
E && g && (g(o, {
|
|
56
|
+
[o]: P,
|
|
57
|
+
[n]: R
|
|
58
|
+
}, E), q(!0)), u && u({
|
|
59
|
+
target: {
|
|
60
|
+
name: t,
|
|
61
|
+
value: {
|
|
62
|
+
[o]: P,
|
|
63
|
+
[n]: R
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}), h && h({
|
|
67
|
+
initial: P,
|
|
68
|
+
final: R
|
|
69
|
+
});
|
|
70
|
+
}, e[18] = u, e[19] = g, e[20] = t, e[21] = n, e[22] = o, e[23] = h, e[24] = E, e[25] = s) : s = e[25];
|
|
71
|
+
let r;
|
|
72
|
+
e[26] !== i || e[27] !== t || e[28] !== o ? (r = a.get(i, `${t}.${o}`), e[26] = i, e[27] = t, e[28] = o, e[29] = r) : r = e[29];
|
|
73
|
+
let f;
|
|
74
|
+
e[30] !== i || e[31] !== t || e[32] !== n ? (f = a.get(i, `${t}.${n}`), e[30] = i, e[31] = t, e[32] = n, e[33] = f) : f = e[33];
|
|
75
|
+
let m;
|
|
76
|
+
e[34] !== r || e[35] !== f ? (m = {
|
|
77
|
+
initial: r,
|
|
78
|
+
final: f
|
|
79
|
+
}, e[34] = r, e[35] = f, e[36] = m) : m = e[36];
|
|
80
|
+
let M;
|
|
81
|
+
e[37] !== x || e[38] !== A || e[39] !== d || e[40] !== s || e[41] !== m ? (M = /* @__PURE__ */ b.jsx(x, { ...d, errorMessages: A, onChange: s, value: m }), e[37] = x, e[38] = A, e[39] = d, e[40] = s, e[41] = m, e[42] = M) : M = e[42], c = M;
|
|
82
|
+
}
|
|
83
|
+
if (p !== void 0) {
|
|
84
|
+
let s;
|
|
85
|
+
e[43] === Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
86
|
+
height: "100%"
|
|
87
|
+
}, e[43] = s) : s = e[43];
|
|
88
|
+
let r;
|
|
89
|
+
return e[44] !== c || e[45] !== p ? (r = /* @__PURE__ */ b.jsx(O, { customClass: "-withinput", cols: p, style: s, children: c }), e[44] = c, e[45] = p, e[46] = r) : r = e[46], r;
|
|
90
|
+
}
|
|
91
|
+
return c;
|
|
92
|
+
}, ee = k(B);
|
|
93
|
+
export {
|
|
94
|
+
ee as default
|
|
95
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
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[];
|
|
@@ -0,0 +1,28 @@
|
|
|
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 {
|
|
5
|
+
name: t,
|
|
6
|
+
value: s
|
|
7
|
+
} = c;
|
|
8
|
+
return y.set(JSON.parse(JSON.stringify(e)), t, s);
|
|
9
|
+
}, N = ({
|
|
10
|
+
name: e,
|
|
11
|
+
fieldErrors: c,
|
|
12
|
+
externalFieldErrors: t,
|
|
13
|
+
externalMessagesErrors: s
|
|
14
|
+
}) => {
|
|
15
|
+
let f = s ? [...s] : [];
|
|
16
|
+
return c && c[e] && (f = [...f, ...c[e]]), t && t[e] && (f = [...f, ...t[e]]), f;
|
|
17
|
+
}, O = (e, c) => {
|
|
18
|
+
let t = [];
|
|
19
|
+
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;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
x as FormContext,
|
|
23
|
+
J as changeValue,
|
|
24
|
+
N as getErrorMessages,
|
|
25
|
+
O as getValidatorsArray,
|
|
26
|
+
h as securityBeforeUnload,
|
|
27
|
+
B as withFieldContext
|
|
28
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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, };
|