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,180 @@
|
|
|
1
|
+
import { j as oe } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as Me } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { _ as _e } from "../../chunks/lodash.CIAK_hAg.js";
|
|
4
|
+
import { useState as d, useRef as Ae, useEffect as se } from "react";
|
|
5
|
+
import Te from "../base/InputTextBase.js";
|
|
6
|
+
import qe from "./ActionButtons.js";
|
|
7
|
+
import ze from "./Dropdown.js";
|
|
8
|
+
import Fe from "./helper.js";
|
|
9
|
+
import { v as Ke } from "../../chunks/v1.Ds1rkxUj.js";
|
|
10
|
+
import '../../assets/index22.css';const Ye = (r) => {
|
|
11
|
+
const e = Me.c(98), {
|
|
12
|
+
onSelect: c,
|
|
13
|
+
idKey: i,
|
|
14
|
+
disabled: ye,
|
|
15
|
+
dataSource: n,
|
|
16
|
+
descriptionKey: f,
|
|
17
|
+
value: A,
|
|
18
|
+
onBlur: F,
|
|
19
|
+
gridLayout: ie,
|
|
20
|
+
dropdownAlignButton: De
|
|
21
|
+
} = r, ce = ye === void 0 ? !1 : ye, re = De === void 0 ? "left" : De;
|
|
22
|
+
let L;
|
|
23
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (L = Ke(), e[0] = L) : L = e[0];
|
|
24
|
+
const Le = `multiSelect-component${L}`, [s, O] = d(n), [o, B] = d(), [h, ae] = d(""), [de, Oe] = d("Nenhum selecionado"), [p, fe] = d(0), [me, Be] = d(!1), [a, ue] = d(!1), [x, We] = d(), [he, Ie] = d(!1), [pe, Re] = d(), W = Ae(null), m = Ae(null);
|
|
25
|
+
let I;
|
|
26
|
+
e[1] !== i || e[2] !== c || e[3] !== o ? (I = (t) => {
|
|
27
|
+
if (t === null)
|
|
28
|
+
return;
|
|
29
|
+
let l = o;
|
|
30
|
+
l && (l.find((u) => u[i] === t[i]) ? l = l.filter((u) => u[i] !== t[i]) : l = [...l, t], c && c(l.map((u) => u[i]))), B(l);
|
|
31
|
+
}, e[1] = i, e[2] = c, e[3] = o, e[4] = I) : I = e[4];
|
|
32
|
+
const Se = I;
|
|
33
|
+
let R;
|
|
34
|
+
e[5] !== p ? (R = () => {
|
|
35
|
+
let t;
|
|
36
|
+
t = m.current ? m.current.clientWidth : p, ue(!0), fe(t);
|
|
37
|
+
}, e[5] = p, e[6] = R) : R = e[6];
|
|
38
|
+
const S = R;
|
|
39
|
+
let j;
|
|
40
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (j = (t) => {
|
|
41
|
+
const l = t.target;
|
|
42
|
+
if (l?.className === "")
|
|
43
|
+
return;
|
|
44
|
+
const k = ["item", "menubutton", "filterinput", "filtercontainer", "label"].includes(l?.className);
|
|
45
|
+
Ie(k);
|
|
46
|
+
}, e[7] = j) : j = e[7];
|
|
47
|
+
const ke = j;
|
|
48
|
+
let N;
|
|
49
|
+
e[8] !== n || e[9] !== he || e[10] !== F ? (N = (t) => {
|
|
50
|
+
F && F(t), he || (ae(""), O(n));
|
|
51
|
+
}, e[8] = n, e[9] = he, e[10] = F, e[11] = N) : N = e[11];
|
|
52
|
+
const b = N;
|
|
53
|
+
let M;
|
|
54
|
+
e[12] !== n || e[13] !== f ? (M = (t) => {
|
|
55
|
+
let l = n;
|
|
56
|
+
t !== "" && n && (l = Fe({
|
|
57
|
+
dataSource: n,
|
|
58
|
+
descriptionKey: f,
|
|
59
|
+
inputText: t
|
|
60
|
+
})), O(l), ae(t);
|
|
61
|
+
}, e[12] = n, e[13] = f, e[14] = M) : M = e[14];
|
|
62
|
+
const be = M;
|
|
63
|
+
let T;
|
|
64
|
+
e[15] !== a ? (T = () => {
|
|
65
|
+
ue(!a), m.current && fe(m.current.clientWidth);
|
|
66
|
+
}, e[15] = a, e[16] = T) : T = e[16];
|
|
67
|
+
const we = T;
|
|
68
|
+
let q;
|
|
69
|
+
e[17] !== s || e[18] !== n || e[19] !== i || e[20] !== c ? (q = (t) => {
|
|
70
|
+
const k = (t === void 0 ? !1 : t) ? s : n;
|
|
71
|
+
c && k && c(k.map((u) => u[i])), B(k);
|
|
72
|
+
}, e[17] = s, e[18] = n, e[19] = i, e[20] = c, e[21] = q) : q = e[21];
|
|
73
|
+
const w = q;
|
|
74
|
+
let z;
|
|
75
|
+
e[22] !== c ? (z = () => {
|
|
76
|
+
c && c(), B([]);
|
|
77
|
+
}, e[22] = c, e[23] = z) : z = e[23];
|
|
78
|
+
const C = z;
|
|
79
|
+
let K;
|
|
80
|
+
e[24] === Symbol.for("react.memo_cache_sentinel") ? (K = () => {
|
|
81
|
+
m.current && fe(m.current.clientWidth);
|
|
82
|
+
}, e[24] = K) : K = e[24];
|
|
83
|
+
const xe = K;
|
|
84
|
+
let U;
|
|
85
|
+
e[25] !== n ? (U = (t) => {
|
|
86
|
+
const {
|
|
87
|
+
target: l
|
|
88
|
+
} = t;
|
|
89
|
+
l !== W.current && !W.current?.contains(l) && (ue(!1), O(n), ae(""));
|
|
90
|
+
}, e[25] = n, e[26] = U) : U = e[26];
|
|
91
|
+
const $ = U;
|
|
92
|
+
let G;
|
|
93
|
+
e[27] === Symbol.for("react.memo_cache_sentinel") ? (G = (t) => {
|
|
94
|
+
We(t);
|
|
95
|
+
}, e[27] = G) : G = e[27];
|
|
96
|
+
const je = G;
|
|
97
|
+
let V;
|
|
98
|
+
e[28] !== ce || e[29] !== x ? (V = () => !!(ce || x && (x.disabled || x.hideContent)), e[28] = ce, e[29] = x, e[30] = V) : V = e[30];
|
|
99
|
+
const Ne = V;
|
|
100
|
+
let H;
|
|
101
|
+
e[31] !== n || e[32] !== f || e[33] !== o ? (H = () => {
|
|
102
|
+
const t = _e.isEqual(o, n);
|
|
103
|
+
let l;
|
|
104
|
+
t ? l = "Todos" : o && o.length > 1 ? l = "Múltiplos" : o && o.length === 1 ? l = typeof f == "string" ? o[0][f] : f(o[0]) : l = "Nenhum selecionado", Oe(l);
|
|
105
|
+
}, e[31] = n, e[32] = f, e[33] = o, e[34] = H) : H = e[34];
|
|
106
|
+
const Ce = H;
|
|
107
|
+
let J;
|
|
108
|
+
e[35] !== ie || e[36] !== $ ? (J = () => {
|
|
109
|
+
if (ie) {
|
|
110
|
+
const t = m.current?.parentElement;
|
|
111
|
+
t && Re(window.getComputedStyle(t));
|
|
112
|
+
}
|
|
113
|
+
return window.addEventListener("resize", xe), document.addEventListener("click", $), document.addEventListener("mousemove", ke), () => {
|
|
114
|
+
window.removeEventListener("resize", xe), document.removeEventListener("click", $), document.removeEventListener("mousemove", ke);
|
|
115
|
+
};
|
|
116
|
+
}, e[35] = ie, e[36] = $, e[37] = J) : J = e[37];
|
|
117
|
+
let P;
|
|
118
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (P = [], e[38] = P) : P = e[38], se(J, P);
|
|
119
|
+
let Q;
|
|
120
|
+
e[39] !== n || e[40] !== i || e[41] !== A ? (Q = () => {
|
|
121
|
+
if (n && n.length > 0) {
|
|
122
|
+
const t = n.filter((l) => A?.includes(l[i]));
|
|
123
|
+
B(t);
|
|
124
|
+
}
|
|
125
|
+
}, e[39] = n, e[40] = i, e[41] = A, e[42] = Q) : Q = e[42];
|
|
126
|
+
const ve = A?.length, ge = n?.length;
|
|
127
|
+
let X;
|
|
128
|
+
e[43] !== ve || e[44] !== ge ? (X = [ve, ge], e[43] = ve, e[44] = ge, e[45] = X) : X = e[45], se(Q, X);
|
|
129
|
+
let Y;
|
|
130
|
+
e[46] !== s || e[47] !== n || e[48] !== h || e[49] !== r ? (Y = () => {
|
|
131
|
+
if (n && s && !_e.isEqual(n, s)) {
|
|
132
|
+
const t = Fe({
|
|
133
|
+
...r,
|
|
134
|
+
dataSource: n || void 0,
|
|
135
|
+
inputText: h
|
|
136
|
+
});
|
|
137
|
+
O(t);
|
|
138
|
+
}
|
|
139
|
+
}, e[46] = s, e[47] = n, e[48] = h, e[49] = r, e[50] = Y) : Y = e[50];
|
|
140
|
+
let Z;
|
|
141
|
+
e[51] !== n ? (Z = [n], e[51] = n, e[52] = Z) : Z = e[52], se(Y, Z);
|
|
142
|
+
let ee;
|
|
143
|
+
e[53] !== s || e[54] !== Ce || e[55] !== o ? (ee = () => {
|
|
144
|
+
const t = _e.isEqual(s, o);
|
|
145
|
+
Be(t), Ce();
|
|
146
|
+
}, e[53] = s, e[54] = Ce, e[55] = o, e[56] = ee) : ee = e[56];
|
|
147
|
+
let te;
|
|
148
|
+
e[57] !== s || e[58] !== o ? (te = [o, s], e[57] = s, e[58] = o, e[59] = te) : te = e[59], se(ee, te);
|
|
149
|
+
let v;
|
|
150
|
+
e[60] !== S ? (v = () => {
|
|
151
|
+
S();
|
|
152
|
+
}, e[60] = S, e[61] = v) : v = e[61];
|
|
153
|
+
let g;
|
|
154
|
+
e[62] !== b ? (g = (t) => {
|
|
155
|
+
b(t);
|
|
156
|
+
}, e[62] = b, e[63] = g) : g = e[63];
|
|
157
|
+
let ne;
|
|
158
|
+
e[64] === Symbol.for("react.memo_cache_sentinel") ? (ne = (t) => {
|
|
159
|
+
m.current = t;
|
|
160
|
+
}, e[64] = ne) : ne = e[64];
|
|
161
|
+
const Ee = Ne();
|
|
162
|
+
let E;
|
|
163
|
+
e[65] !== we ? (E = () => {
|
|
164
|
+
we();
|
|
165
|
+
}, e[65] = we, e[66] = E) : E = e[66];
|
|
166
|
+
let _;
|
|
167
|
+
e[67] !== re || e[68] !== w || e[69] !== C || e[70] !== a || e[71] !== Ee || e[72] !== E ? (_ = /* @__PURE__ */ oe.jsx(qe, { dropdownAlignButton: re, disabled: Ee, dropdownOpened: a, handleOpenClose: E, handleCheckAll: w, handleUncheckAll: C }), e[67] = re, e[68] = w, e[69] = C, e[70] = a, e[71] = Ee, e[72] = E, e[73] = _) : _ = e[73];
|
|
168
|
+
let y;
|
|
169
|
+
e[74] !== de || e[75] !== r || e[76] !== v || e[77] !== g || e[78] !== _ ? (y = /* @__PURE__ */ oe.jsx(Te, { ...r, value: de, onFocus: v, onBlur: g, customClassForWrapper: "selectwrapper -undigitable", customClassForInputContent: "multiselect", inputBaseRef: ne, handlerSetOnDenied: je, rightElements: _ }), e[74] = de, e[75] = r, e[76] = v, e[77] = g, e[78] = _, e[79] = y) : y = e[79];
|
|
170
|
+
let D;
|
|
171
|
+
e[80] !== s || e[81] !== p || e[82] !== pe || e[83] !== be || e[84] !== Se || e[85] !== h || e[86] !== me || e[87] !== b || e[88] !== w || e[89] !== S || e[90] !== C || e[91] !== a || e[92] !== r || e[93] !== o ? (D = a && /* @__PURE__ */ oe.jsx(ze, { ...r, opened: a, dataCombo: s, selecteds: o, inputValue: h, isAllChecked: me, onCheckAll: w, onUncheckAll: C, dropdownWidth: p, selectFieldRef: W, onSelect: Se, onFilter: be, onFocus: S, onBlur: b, gridWrapperStyle: pe }), e[80] = s, e[81] = p, e[82] = pe, e[83] = be, e[84] = Se, e[85] = h, e[86] = me, e[87] = b, e[88] = w, e[89] = S, e[90] = C, e[91] = a, e[92] = r, e[93] = o, e[94] = D) : D = e[94];
|
|
172
|
+
let le;
|
|
173
|
+
return e[95] !== y || e[96] !== D ? (le = /* @__PURE__ */ oe.jsxs("span", { id: Le, ref: W, className: "multiSelect-component", children: [
|
|
174
|
+
y,
|
|
175
|
+
D
|
|
176
|
+
] }), e[95] = y, e[96] = D, e[97] = le) : le = e[97], le;
|
|
177
|
+
};
|
|
178
|
+
export {
|
|
179
|
+
Ye as default
|
|
180
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ChangeEvent, RefObject } from 'react';
|
|
2
|
+
import { DataCombo } from '../../@types/DataCombo';
|
|
3
|
+
import { CustomInputEvent } from '../base/types';
|
|
4
|
+
export type DescriptionKey = string | ((dataSelected: DataCombo) => string);
|
|
5
|
+
export interface GetFilteredParams {
|
|
6
|
+
dataSource: DataCombo[];
|
|
7
|
+
descriptionKey: DescriptionKey;
|
|
8
|
+
inputText: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IActionButtonsProps {
|
|
11
|
+
handleOpenClose: () => void;
|
|
12
|
+
handleCheckAll: () => void;
|
|
13
|
+
handleUncheckAll: () => void;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
dropdownOpened?: boolean;
|
|
16
|
+
dropdownAlignButton?: 'left' | 'right';
|
|
17
|
+
}
|
|
18
|
+
export interface IDropdownMultiSelectProps {
|
|
19
|
+
dataCombo?: DataCombo[];
|
|
20
|
+
idKey: string;
|
|
21
|
+
descriptionKey: DescriptionKey;
|
|
22
|
+
inputValue: string;
|
|
23
|
+
isAllChecked: boolean;
|
|
24
|
+
dropdownWidth: number;
|
|
25
|
+
onBlur: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
26
|
+
onFocus: () => void;
|
|
27
|
+
onSelect: (data: DataCombo) => void;
|
|
28
|
+
onFilter: (value: string) => void;
|
|
29
|
+
onUncheckAll: (checkAll: boolean) => void;
|
|
30
|
+
onCheckAll: (checkAll: boolean) => void;
|
|
31
|
+
opened: boolean;
|
|
32
|
+
selecteds?: DataCombo[] | null;
|
|
33
|
+
imgSrcKey?: string;
|
|
34
|
+
imageAlign?: 'left' | 'right';
|
|
35
|
+
gridWrapperStyle?: {
|
|
36
|
+
paddingLeft: string;
|
|
37
|
+
paddingRight: string;
|
|
38
|
+
};
|
|
39
|
+
selectFieldRef?: RefObject<HTMLDivElement>;
|
|
40
|
+
dropdownMaxHeight?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface IMultiSelectProps {
|
|
43
|
+
dataSource?: DataCombo[];
|
|
44
|
+
idKey: string;
|
|
45
|
+
descriptionKey: DescriptionKey;
|
|
46
|
+
value?: any[];
|
|
47
|
+
gridLayout?: string;
|
|
48
|
+
onSelect?: (data?: string[]) => void;
|
|
49
|
+
onBlur?: (e: CustomInputEvent) => void;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
dropdownAlignButton?: 'left' | 'right';
|
|
52
|
+
label?: string;
|
|
53
|
+
hint?: string | string[];
|
|
54
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
55
|
+
themePopover?: 'light' | 'dark';
|
|
56
|
+
popoverAlign?: 'right' | 'left';
|
|
57
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { j as s } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as i } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import c from "../mask/BaseMask.js";
|
|
4
|
+
import { numberToPtBR as f, numberToEnUS as d } from "./format_number.js";
|
|
5
|
+
const m = (t, e) => {
|
|
6
|
+
if (t.returnFormattedValueOnBlur || t.returnFormattedValueOnKeyDown) {
|
|
7
|
+
const {
|
|
8
|
+
value: n,
|
|
9
|
+
name: r
|
|
10
|
+
} = e.target;
|
|
11
|
+
return {
|
|
12
|
+
...e,
|
|
13
|
+
target: {
|
|
14
|
+
value: d(n),
|
|
15
|
+
name: r
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return e;
|
|
20
|
+
}, B = (t) => {
|
|
21
|
+
const {
|
|
22
|
+
returnFormattedValueOnBlur: e,
|
|
23
|
+
returnFormattedValueOnKeyDown: n
|
|
24
|
+
} = t;
|
|
25
|
+
return t.isNumeric ? {} : {
|
|
26
|
+
onBlur: (r) => {
|
|
27
|
+
if (t.onBlur) {
|
|
28
|
+
const o = e ? m(t, r) : r;
|
|
29
|
+
t.onBlur(o);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
onKeyDown: (r) => {
|
|
33
|
+
if (t.onKeyDown) {
|
|
34
|
+
const o = n ? m(t, r) : r;
|
|
35
|
+
t.onKeyDown(o);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}, w = (t) => {
|
|
40
|
+
const e = i.c(4);
|
|
41
|
+
let n;
|
|
42
|
+
if (e[0] !== t) {
|
|
43
|
+
const {
|
|
44
|
+
value: r,
|
|
45
|
+
...o
|
|
46
|
+
} = t, l = {
|
|
47
|
+
...o,
|
|
48
|
+
returnFormattedValueOnBlur: !0,
|
|
49
|
+
returnFormattedValueOnKeyDown: !0
|
|
50
|
+
}, a = r ?? 0;
|
|
51
|
+
let u;
|
|
52
|
+
e[2] !== a ? (u = f(a), e[2] = a, e[3] = u) : u = e[3], n = /* @__PURE__ */ s.jsx(c, { value: u, thousandsSeparator: ".", radix: ",", mask: Number, isNumeric: !0, ...o, ...B(l) }), e[0] = t, e[1] = n;
|
|
53
|
+
} else
|
|
54
|
+
n = e[1];
|
|
55
|
+
return n;
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
w as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { j as i } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as p } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import u from "./BaseNumber.js";
|
|
4
|
+
const x = (l) => {
|
|
5
|
+
const e = p.c(9);
|
|
6
|
+
let s, r;
|
|
7
|
+
e[0] !== l ? ({
|
|
8
|
+
displayCurrencySymbol: s,
|
|
9
|
+
...r
|
|
10
|
+
} = l, e[0] = l, e[1] = s, e[2] = r) : (s = e[1], r = e[2]);
|
|
11
|
+
const {
|
|
12
|
+
currencySymbol: n
|
|
13
|
+
} = r, c = n === void 0 ? "R$" : n;
|
|
14
|
+
let t;
|
|
15
|
+
e[3] !== c || e[4] !== s ? (t = s ? /* @__PURE__ */ i.jsx("span", { className: "currency-symbol", children: c }) : [], e[3] = c, e[4] = s, e[5] = t) : t = e[5];
|
|
16
|
+
const m = t;
|
|
17
|
+
let o;
|
|
18
|
+
return e[6] !== m || e[7] !== r ? (o = /* @__PURE__ */ i.jsx(u, { leftElements: m, ...r }), e[6] = m, e[7] = r, e[8] = o) : o = e[8], o;
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
x as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { j as r } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as o } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import i from "./BaseNumber.js";
|
|
4
|
+
const l = (m) => {
|
|
5
|
+
const t = o.c(2);
|
|
6
|
+
let e;
|
|
7
|
+
return t[0] !== m ? (e = /* @__PURE__ */ r.jsx(i, { ...m }), t[0] = m, t[1] = e) : e = t[1], e;
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
l as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const e = (r) => r !== void 0 && typeof r == "number" ? r.toLocaleString("pt-BR") : r, n = (r) => {
|
|
2
|
+
let t;
|
|
3
|
+
return r && (t = r.replaceAll(".", "").replaceAll(",", "."), Number(t));
|
|
4
|
+
}, o = (r) => r.replace(/[._\-/()\s+]/g, "");
|
|
5
|
+
export {
|
|
6
|
+
o as formatOnlyNumbers,
|
|
7
|
+
n as numberToEnUS,
|
|
8
|
+
e as numberToPtBR
|
|
9
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as CurrencyField } from './Currency';
|
|
2
|
+
import { default as DecimalField } from './Decimal';
|
|
3
|
+
import { INumberFieldProps } from './types';
|
|
4
|
+
declare const NumberField: (props: INumberFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default NumberField;
|
|
6
|
+
export { CurrencyField, DecimalField, };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { j } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as E } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as F, useEffect as I } from "react";
|
|
4
|
+
import { default as T } from "./Currency.js";
|
|
5
|
+
import { default as k } from "./Decimal.js";
|
|
6
|
+
import y from "../base/InputTextBase.js";
|
|
7
|
+
import '../../assets/index23.css';const S = (t) => {
|
|
8
|
+
const e = E.c(15), {
|
|
9
|
+
textAlign: p,
|
|
10
|
+
value: h,
|
|
11
|
+
themePopover: b,
|
|
12
|
+
popoverAlign: A,
|
|
13
|
+
removeZeroLeft: V,
|
|
14
|
+
min: n,
|
|
15
|
+
max: r
|
|
16
|
+
} = t, m = p === void 0 ? "left" : p, l = h === void 0 ? "" : h, c = b === void 0 ? "light" : b, f = A === void 0 ? "left" : A, v = V === void 0 ? !0 : V, [g, d] = F();
|
|
17
|
+
let i;
|
|
18
|
+
e[0] !== r || e[1] !== n || e[2] !== t || e[3] !== v ? (i = (C) => {
|
|
19
|
+
const o = C.target.value.replace(/\D/g, "");
|
|
20
|
+
n && parseInt(o, 10) < n || r && parseInt(o, 10) > r || (v && o.charAt(0) === "0" && o.length > 1 ? d(o.substring(1)) : d(o), t.onChange && t.onChange(C));
|
|
21
|
+
}, e[0] = r, e[1] = n, e[2] = t, e[3] = v, e[4] = i) : i = e[4];
|
|
22
|
+
const x = i;
|
|
23
|
+
let a, u;
|
|
24
|
+
e[5] !== l ? (a = () => {
|
|
25
|
+
d(l?.toString() ?? "");
|
|
26
|
+
}, u = [l], e[5] = l, e[6] = a, e[7] = u) : (a = e[6], u = e[7]), I(a, u);
|
|
27
|
+
let s;
|
|
28
|
+
return e[8] !== g || e[9] !== x || e[10] !== f || e[11] !== t || e[12] !== m || e[13] !== c ? (s = /* @__PURE__ */ j.jsx(y, { ...t, value: g, textAlign: m, themePopover: c, popoverAlign: f, onChange: x, type: "number" }), e[8] = g, e[9] = x, e[10] = f, e[11] = t, e[12] = m, e[13] = c, e[14] = s) : s = e[14], s;
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
T as CurrencyField,
|
|
32
|
+
k as DecimalField,
|
|
33
|
+
S as default
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PermissionAttr } from 'src/lib/@types/PermissionAttr';
|
|
2
|
+
import { TextAlign } from 'src/lib/@types/Align';
|
|
3
|
+
import { CustomInputEvent } from '../base/types';
|
|
4
|
+
import { IMaskHOCProps } from '../types';
|
|
5
|
+
export interface INumberFieldProps extends IMaskHOCProps {
|
|
6
|
+
value?: string;
|
|
7
|
+
permissionAttr?: PermissionAttr;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
hint?: string | string[];
|
|
10
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
11
|
+
themePopover?: 'light' | 'dark';
|
|
12
|
+
popoverAlign?: 'right' | 'left';
|
|
13
|
+
onChange?: (e?: CustomInputEvent) => void;
|
|
14
|
+
removeZeroLeft?: boolean;
|
|
15
|
+
textAlign?: TextAlign;
|
|
16
|
+
}
|
|
17
|
+
export interface IBaseNumberProps extends IMaskHOCProps {
|
|
18
|
+
returnFormattedValueOnBlur?: boolean;
|
|
19
|
+
returnFormattedValueOnKeyDown?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ICurrencyProps extends IMaskHOCProps {
|
|
22
|
+
currencySymbol?: string;
|
|
23
|
+
displayCurrencySymbol?: boolean;
|
|
24
|
+
hint?: string | string[];
|
|
25
|
+
hintPosition?: 'below' | 'onLabelRight';
|
|
26
|
+
themePopover?: 'light' | 'dark';
|
|
27
|
+
popoverAlign?: 'right' | 'left';
|
|
28
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as h } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as n } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { B as c } from "../../chunks/index.aw0XaUkg.js";
|
|
4
|
+
const g = (a) => {
|
|
5
|
+
const e = n.c(8), {
|
|
6
|
+
onOpenChange: o,
|
|
7
|
+
handlerClose: l,
|
|
8
|
+
children: r,
|
|
9
|
+
dialogSize: t
|
|
10
|
+
} = a;
|
|
11
|
+
let i;
|
|
12
|
+
e[0] !== l ? (i = () => l(!1), e[0] = l, e[1] = i) : i = e[1];
|
|
13
|
+
let s;
|
|
14
|
+
return e[2] !== r || e[3] !== t.height || e[4] !== t.width || e[5] !== o || e[6] !== i ? (s = /* @__PURE__ */ h.jsx(c, { closeOnOutsideClick: !0, closeOnEsc: !0, wrapperClassName: "", width: t.width, height: t.height, onOpenChange: o, handlerClose: i, children: r }), e[2] = r, e[3] = t.height, e[4] = t.width, e[5] = o, e[6] = i, e[7] = s) : s = e[7], s;
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
g as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useRef as s, useEffect as o } from "react";
|
|
2
|
+
import a from "react-dom";
|
|
3
|
+
const d = 250, l = (e) => {
|
|
4
|
+
const {
|
|
5
|
+
children: i,
|
|
6
|
+
dropdownRef: u,
|
|
7
|
+
containerRef: r,
|
|
8
|
+
inputDimensions: n
|
|
9
|
+
} = e, t = s(document.createElement("div")), c = n && n.width || d;
|
|
10
|
+
return o(() => (t.current.className = "datepicker-component", t.current.style.width = String(c).concat("px"), t.current.style.top = String(n?.bottom).concat("px"), r.current?.appendChild(t.current), u(t.current), () => {
|
|
11
|
+
r.current?.removeChild(t.current);
|
|
12
|
+
}), []), o(() => {
|
|
13
|
+
t.current.style.width = String(c).concat("px"), t.current.style.top = String(e.inputDimensions?.bottom).concat("px");
|
|
14
|
+
}, [e]), a.createPortal(i, t.current);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { j as i } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { getDropdownItemCssClass as m, CalcDatesByPeriod as p } from "./helper.js";
|
|
4
|
+
const u = [{
|
|
5
|
+
id: "today",
|
|
6
|
+
label: "Hoje"
|
|
7
|
+
}, {
|
|
8
|
+
id: "week",
|
|
9
|
+
label: "Semana Atual"
|
|
10
|
+
}, {
|
|
11
|
+
id: "lastweek",
|
|
12
|
+
label: "Última Semana"
|
|
13
|
+
}, {
|
|
14
|
+
id: "last15",
|
|
15
|
+
label: "Últimos 15 dias"
|
|
16
|
+
}, {
|
|
17
|
+
id: "month",
|
|
18
|
+
label: "Mês atual"
|
|
19
|
+
}, {
|
|
20
|
+
id: "lastmonth",
|
|
21
|
+
label: "Último Mês"
|
|
22
|
+
}, {
|
|
23
|
+
id: "custom",
|
|
24
|
+
label: "Customizar"
|
|
25
|
+
}], h = (d) => {
|
|
26
|
+
const e = c.c(5), {
|
|
27
|
+
selected: a,
|
|
28
|
+
handleOnSelect: o
|
|
29
|
+
} = d;
|
|
30
|
+
let t;
|
|
31
|
+
e[0] !== o || e[1] !== a ? (t = u.map((l) => {
|
|
32
|
+
const n = a === l.id;
|
|
33
|
+
return /* @__PURE__ */ i.jsx("button", { tabIndex: -1, className: m(n), onClick: () => {
|
|
34
|
+
const r = l.id !== "custom" ? p(l.id) : null;
|
|
35
|
+
o(l.id, r);
|
|
36
|
+
}, children: l.label }, "item-".concat(l.id));
|
|
37
|
+
}), e[0] = o, e[1] = a, e[2] = t) : t = e[2];
|
|
38
|
+
let s;
|
|
39
|
+
return e[3] !== t ? (s = /* @__PURE__ */ i.jsx("div", { className: "dropdown-period", children: t }), e[3] = t, e[4] = s) : s = e[4], s;
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
h as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Moment } from 'moment';
|
|
2
|
+
import { DateTypes } from './types';
|
|
3
|
+
declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width }: {
|
|
4
|
+
topPosition: number | string;
|
|
5
|
+
leftPosition: number | string;
|
|
6
|
+
width: number | string;
|
|
7
|
+
}) => string;
|
|
8
|
+
export default getCalendarDropdownStyle;
|
|
9
|
+
export declare const getDropdownItemCssClass: (selected?: boolean, disabled?: boolean, striped?: boolean) => string;
|
|
10
|
+
export declare const CalcDatesByPeriod: (dateType: DateTypes) => Moment[];
|
|
11
|
+
export declare const isDateValid: (date: Moment) => boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { h as r } from "../../chunks/moment.DMLRxgRE.js";
|
|
2
|
+
const l = ({
|
|
3
|
+
topPosition: n,
|
|
4
|
+
leftPosition: t,
|
|
5
|
+
width: o
|
|
6
|
+
}) => `top: ${n}px;
|
|
7
|
+
left: ${t}px;
|
|
8
|
+
width:${o}px`, d = (n = !1, t = !1, o = !1) => {
|
|
9
|
+
let e = "item";
|
|
10
|
+
return e += n && !t ? " -selected " : "", e += t ? " -disabled" : "", e += !n && !t && o ? " -striped " : "", e;
|
|
11
|
+
}, m = (n) => {
|
|
12
|
+
const t = r();
|
|
13
|
+
return {
|
|
14
|
+
today: () => [t, t],
|
|
15
|
+
week: () => {
|
|
16
|
+
const e = t.clone().startOf("week"), s = t.clone().endOf("week");
|
|
17
|
+
return [e, s];
|
|
18
|
+
},
|
|
19
|
+
lastweek: () => {
|
|
20
|
+
const e = t.subtract(1, "weeks"), s = e.clone().startOf("week"), a = e.clone().endOf("week");
|
|
21
|
+
return [s, a];
|
|
22
|
+
},
|
|
23
|
+
last15: () => [r(t).subtract(15, "days"), t],
|
|
24
|
+
month: () => {
|
|
25
|
+
const e = t.clone().startOf("month"), s = t.clone().endOf("month");
|
|
26
|
+
return [e, s];
|
|
27
|
+
},
|
|
28
|
+
lastmonth: () => {
|
|
29
|
+
const e = t.subtract(1, "months"), s = e.clone().startOf("month"), a = e.clone().endOf("month");
|
|
30
|
+
return [s, a];
|
|
31
|
+
}
|
|
32
|
+
}[n]();
|
|
33
|
+
}, h = (n) => n && r(n).isValid();
|
|
34
|
+
export {
|
|
35
|
+
m as CalcDatesByPeriod,
|
|
36
|
+
l as default,
|
|
37
|
+
d as getDropdownItemCssClass,
|
|
38
|
+
h as isDateValid
|
|
39
|
+
};
|