fui-material 0.2.59 → 0.2.61
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/README.md +15 -1
- package/dist/bundle.css +1980 -0
- package/dist/bundle.esm.css +1980 -0
- package/dist/bundle.esm.js +1341 -0
- package/dist/bundle.js +1398 -0
- package/dist/{esm/types/function-elements → function-elements}/fPrompt/fPrompt.d.ts +1 -0
- package/dist/{cjs/types/icons → icons}/FArrowIcon/FArrowIcon.d.ts +1 -1
- package/dist/{esm/types/icons → icons}/FCheckIcon/FCheckIcon.d.ts +1 -1
- package/dist/{cjs/types/icons/FPenIcon/FPenIcon.d.ts → icons/FCloseIcon/FCloseIcon.d.ts} +4 -4
- package/dist/{esm/types/icons → icons}/FCopyAddIcon/FCopyAdd.d.ts +1 -1
- package/dist/{esm/types/icons → icons}/FDownloadIcon/FDownloadIcon.d.ts +1 -1
- package/dist/{cjs/types/icons → icons}/FFilterIcon/FFilterIcon.d.ts +1 -1
- package/dist/{cjs/types/icons → icons}/FListIcon/FListIcon.d.ts +1 -1
- package/dist/{cjs/types/icons → icons}/FLoadIcon/FLoadIcon.d.ts +1 -1
- package/dist/{esm/types/icons → icons}/FPenIcon/FPenIcon.d.ts +1 -1
- package/dist/{esm/types/icons → icons}/FPlusIcon/FPlusIcon.d.ts +1 -1
- package/dist/{cjs/types/icons → icons}/FTrashIcon/FTrashIcon.d.ts +1 -1
- package/dist/{cjs/types/icons → icons}/FUnlinkIcon/FUnlinkIcon.d.ts +1 -1
- package/dist/index.d.ts +3 -667
- package/dist/{cjs/types/material → material}/FButton/FButton.d.ts +1 -1
- package/dist/{esm/types/material → material}/FButtonFile/FButtonFile.d.ts +1 -1
- package/package.json +27 -75
- package/dist/cjs/index.js +0 -10
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/function-elements/fAlert/fAlert.stories.d.ts +0 -9
- package/dist/cjs/types/function-elements/fConfirm/fConfirm.stories.d.ts +0 -9
- package/dist/cjs/types/function-elements/fPrompt/fPrompt.d.ts +0 -7
- package/dist/cjs/types/function-elements/fPrompt/fPrompt.stories.d.ts +0 -9
- package/dist/cjs/types/icons/FArrowIcon/FArrowIcon.stories.d.ts +0 -12
- package/dist/cjs/types/icons/FCheckIcon/FCheckIcon.d.ts +0 -12
- package/dist/cjs/types/icons/FCheckIcon/FCheckIcon.stories.d.ts +0 -11
- package/dist/cjs/types/icons/FCloseIcon/FCloseIcon.d.ts +0 -11
- package/dist/cjs/types/icons/FCloseIcon/FCloseIcon.stories.d.ts +0 -10
- package/dist/cjs/types/icons/FCopyAddIcon/FCopyAdd.d.ts +0 -12
- package/dist/cjs/types/icons/FCopyAddIcon/FCopyAdd.stories.d.ts +0 -11
- package/dist/cjs/types/icons/FDownloadIcon/FDownloadIcon.d.ts +0 -11
- package/dist/cjs/types/icons/FDownloadIcon/FDownloadIcon.stories.d.ts +0 -11
- package/dist/cjs/types/icons/FFilterIcon/FTrashIcon.stories.d.ts +0 -16
- package/dist/cjs/types/icons/FListIcon/FListIcon.stories.d.ts +0 -11
- package/dist/cjs/types/icons/FLoadIcon/FLoadIcon.stories.d.ts +0 -16
- package/dist/cjs/types/icons/FPenIcon/FPenIcon.stories.d.ts +0 -11
- package/dist/cjs/types/icons/FPlusIcon/FPlusIcon.d.ts +0 -12
- package/dist/cjs/types/icons/FPlusIcon/FPlusIcon.stories.d.ts +0 -11
- package/dist/cjs/types/icons/FTrashIcon/FTrashIcon.stories.d.ts +0 -16
- package/dist/cjs/types/icons/FUnlinkIcon/FUnlinkIcon.stories.d.ts +0 -11
- package/dist/cjs/types/index.d.ts +0 -3
- package/dist/cjs/types/material/Dialog/FDialog.stories.d.ts +0 -10
- package/dist/cjs/types/material/Dropdown/FDropdown/FDropdown.stories.d.ts +0 -10
- package/dist/cjs/types/material/Dropdown/FDropdownItem/FDropdownItem.stories.d.ts +0 -10
- package/dist/cjs/types/material/FAccordion/FAccordion.stories.d.ts +0 -10
- package/dist/cjs/types/material/FAlert/FAlert.stories.d.ts +0 -24
- package/dist/cjs/types/material/FButton/FButton.stories.d.ts +0 -17
- package/dist/cjs/types/material/FButton/FButton.test.d.ts +0 -1
- package/dist/cjs/types/material/FButtonFile/FButtonFile.d.ts +0 -21
- package/dist/cjs/types/material/FButtonFile/FButtonFile.stories.d.ts +0 -17
- package/dist/cjs/types/material/FCheckbox/FCheckbox.stories.d.ts +0 -10
- package/dist/cjs/types/material/FContainer/FContainer.stories.d.ts +0 -16
- package/dist/cjs/types/material/FFile/FFile.stories.d.ts +0 -10
- package/dist/cjs/types/material/FFullDateField/FFullDateField.stories.d.ts +0 -16
- package/dist/cjs/types/material/FGrid/FGrid.stories.d.ts +0 -12
- package/dist/cjs/types/material/FInputFileForm/FInputFileForm.stories.d.ts +0 -10
- package/dist/cjs/types/material/FNative/FNative.stories.d.ts +0 -17
- package/dist/cjs/types/material/FOpenImgFull/FOpenImgFull.stories.d.ts +0 -10
- package/dist/cjs/types/material/FPagination/FPagination.stories.d.ts +0 -11
- package/dist/cjs/types/material/FPaper/FPaper.stories.d.ts +0 -12
- package/dist/cjs/types/material/FPreloader/FPreloader.stories.d.ts +0 -10
- package/dist/cjs/types/material/FProgress/FProgress.stories.d.ts +0 -10
- package/dist/cjs/types/material/FRadioButton/FRadioButton.stories.d.ts +0 -9
- package/dist/cjs/types/material/FSearchBox/FSearchBox.stories.d.ts +0 -26
- package/dist/cjs/types/material/FSelectSearchDb/FSelectSearchDb.stories.d.ts +0 -15
- package/dist/cjs/types/material/FSelectSearchDb/FSelectSearchDbLegacy.d.ts +0 -1
- package/dist/cjs/types/material/FStack/FStack.stories.d.ts +0 -16
- package/dist/cjs/types/material/FTextArea/FTextArea.stories.d.ts +0 -16
- package/dist/cjs/types/material/FTextField/FTextField.stories.d.ts +0 -23
- package/dist/cjs/types/material/FTimelineComponents/FTimeline.stories.d.ts +0 -10
- package/dist/cjs/types/material/SelectComponents/FSelect.stories.d.ts +0 -21
- package/dist/cjs/types/material/TableComponents/FTable.stories.d.ts +0 -21
- package/dist/cjs/types/material/Tabs/FTabs.stories.d.ts +0 -10
- package/dist/cjs/types/stories/Button.d.ts +0 -28
- package/dist/cjs/types/stories/Header.d.ts +0 -12
- package/dist/cjs/types/stories/Page.d.ts +0 -3
- package/dist/cjs/types/stories/Page.stories.d.ts +0 -13
- package/dist/esm/index.js +0 -10
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/function-elements/fAlert/fAlert.d.ts +0 -8
- package/dist/esm/types/function-elements/fAlert/fAlert.stories.d.ts +0 -9
- package/dist/esm/types/function-elements/fAlert/index.d.ts +0 -1
- package/dist/esm/types/function-elements/fConfirm/fConfirm.d.ts +0 -7
- package/dist/esm/types/function-elements/fConfirm/fConfirm.stories.d.ts +0 -9
- package/dist/esm/types/function-elements/fConfirm/index.d.ts +0 -1
- package/dist/esm/types/function-elements/fPrompt/fPrompt.stories.d.ts +0 -9
- package/dist/esm/types/function-elements/fPrompt/index.d.ts +0 -1
- package/dist/esm/types/function-elements/index.d.ts +0 -3
- package/dist/esm/types/icons/FArrowIcon/FArrowIcon.d.ts +0 -13
- package/dist/esm/types/icons/FArrowIcon/FArrowIcon.stories.d.ts +0 -12
- package/dist/esm/types/icons/FArrowIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FCheckIcon/FCheckIcon.stories.d.ts +0 -11
- package/dist/esm/types/icons/FCheckIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FCloseIcon/FCloseIcon.d.ts +0 -11
- package/dist/esm/types/icons/FCloseIcon/FCloseIcon.stories.d.ts +0 -10
- package/dist/esm/types/icons/FCloseIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FCopyAddIcon/FCopyAdd.stories.d.ts +0 -11
- package/dist/esm/types/icons/FCopyAddIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FDownloadIcon/FDownloadIcon.stories.d.ts +0 -11
- package/dist/esm/types/icons/FDownloadIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FFilterIcon/FFilterIcon.d.ts +0 -11
- package/dist/esm/types/icons/FFilterIcon/FTrashIcon.stories.d.ts +0 -16
- package/dist/esm/types/icons/FFilterIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FListIcon/FListIcon.d.ts +0 -12
- package/dist/esm/types/icons/FListIcon/FListIcon.stories.d.ts +0 -11
- package/dist/esm/types/icons/FListIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FLoadIcon/FLoadIcon.d.ts +0 -12
- package/dist/esm/types/icons/FLoadIcon/FLoadIcon.stories.d.ts +0 -16
- package/dist/esm/types/icons/FLoadIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FPenIcon/FPenIcon.stories.d.ts +0 -11
- package/dist/esm/types/icons/FPenIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FPlusIcon/FPlusIcon.stories.d.ts +0 -11
- package/dist/esm/types/icons/FPlusIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FTrashIcon/FTrashIcon.d.ts +0 -12
- package/dist/esm/types/icons/FTrashIcon/FTrashIcon.stories.d.ts +0 -16
- package/dist/esm/types/icons/FTrashIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/FUnlinkIcon/FUnlinkIcon.d.ts +0 -12
- package/dist/esm/types/icons/FUnlinkIcon/FUnlinkIcon.stories.d.ts +0 -11
- package/dist/esm/types/icons/FUnlinkIcon/index.d.ts +0 -1
- package/dist/esm/types/icons/index.d.ts +0 -12
- package/dist/esm/types/index.d.ts +0 -3
- package/dist/esm/types/material/Dialog/FDialog/FDialog.d.ts +0 -14
- package/dist/esm/types/material/Dialog/FDialog/index.d.ts +0 -1
- package/dist/esm/types/material/Dialog/FDialog.stories.d.ts +0 -10
- package/dist/esm/types/material/Dialog/FDialogBody/FDialogBody.d.ts +0 -8
- package/dist/esm/types/material/Dialog/FDialogBody/index.d.ts +0 -1
- package/dist/esm/types/material/Dialog/FDialogFooter/FDialogFooter.d.ts +0 -6
- package/dist/esm/types/material/Dialog/FDialogFooter/index.d.ts +0 -1
- package/dist/esm/types/material/Dialog/FDialogHeader/FDialogHeader.d.ts +0 -7
- package/dist/esm/types/material/Dialog/FDialogHeader/index.d.ts +0 -1
- package/dist/esm/types/material/Dropdown/FDropdown/FDropdown.d.ts +0 -15
- package/dist/esm/types/material/Dropdown/FDropdown/FDropdown.stories.d.ts +0 -10
- package/dist/esm/types/material/Dropdown/FDropdown/index.d.ts +0 -1
- package/dist/esm/types/material/Dropdown/FDropdownItem/FDropdownItem.d.ts +0 -11
- package/dist/esm/types/material/Dropdown/FDropdownItem/FDropdownItem.stories.d.ts +0 -10
- package/dist/esm/types/material/Dropdown/FDropdownItem/index.d.ts +0 -1
- package/dist/esm/types/material/FAccordion/FAccordion.d.ts +0 -13
- package/dist/esm/types/material/FAccordion/FAccordion.stories.d.ts +0 -10
- package/dist/esm/types/material/FAccordion/index.d.ts +0 -1
- package/dist/esm/types/material/FAlert/FAlert.d.ts +0 -18
- package/dist/esm/types/material/FAlert/FAlert.stories.d.ts +0 -24
- package/dist/esm/types/material/FAlert/index.d.ts +0 -1
- package/dist/esm/types/material/FButton/FButton.d.ts +0 -18
- package/dist/esm/types/material/FButton/FButton.stories.d.ts +0 -17
- package/dist/esm/types/material/FButton/FButton.test.d.ts +0 -1
- package/dist/esm/types/material/FButton/index.d.ts +0 -1
- package/dist/esm/types/material/FButtonFile/FButtonFile.stories.d.ts +0 -17
- package/dist/esm/types/material/FButtonFile/index.d.ts +0 -1
- package/dist/esm/types/material/FCheckbox/FCheckbox.d.ts +0 -14
- package/dist/esm/types/material/FCheckbox/FCheckbox.stories.d.ts +0 -10
- package/dist/esm/types/material/FCheckbox/index.d.ts +0 -1
- package/dist/esm/types/material/FContainer/FContainer.d.ts +0 -11
- package/dist/esm/types/material/FContainer/FContainer.stories.d.ts +0 -16
- package/dist/esm/types/material/FContainer/index.d.ts +0 -1
- package/dist/esm/types/material/FFile/FFile.d.ts +0 -10
- package/dist/esm/types/material/FFile/FFile.stories.d.ts +0 -10
- package/dist/esm/types/material/FFile/index.d.ts +0 -1
- package/dist/esm/types/material/FFullDateField/FFullDateField.d.ts +0 -24
- package/dist/esm/types/material/FFullDateField/FFullDateField.stories.d.ts +0 -16
- package/dist/esm/types/material/FFullDateField/index.d.ts +0 -1
- package/dist/esm/types/material/FGrid/FGrid.d.ts +0 -17
- package/dist/esm/types/material/FGrid/FGrid.stories.d.ts +0 -12
- package/dist/esm/types/material/FGrid/index.d.ts +0 -1
- package/dist/esm/types/material/FInputFileForm/FInputFileForm.d.ts +0 -20
- package/dist/esm/types/material/FInputFileForm/FInputFileForm.stories.d.ts +0 -10
- package/dist/esm/types/material/FInputFileForm/index.d.ts +0 -1
- package/dist/esm/types/material/FNative/FNative.d.ts +0 -19
- package/dist/esm/types/material/FNative/FNative.stories.d.ts +0 -17
- package/dist/esm/types/material/FNative/index.d.ts +0 -1
- package/dist/esm/types/material/FOpenImgFull/FOpenImgFull.d.ts +0 -14
- package/dist/esm/types/material/FOpenImgFull/FOpenImgFull.stories.d.ts +0 -10
- package/dist/esm/types/material/FOpenImgFull/index.d.ts +0 -1
- package/dist/esm/types/material/FPagination/FPagination.d.ts +0 -14
- package/dist/esm/types/material/FPagination/FPagination.stories.d.ts +0 -11
- package/dist/esm/types/material/FPagination/hooks/usePagination.d.ts +0 -9
- package/dist/esm/types/material/FPagination/index.d.ts +0 -1
- package/dist/esm/types/material/FPaper/FPaper.d.ts +0 -18
- package/dist/esm/types/material/FPaper/FPaper.stories.d.ts +0 -12
- package/dist/esm/types/material/FPaper/index.d.ts +0 -1
- package/dist/esm/types/material/FPreloader/FPreloader.d.ts +0 -10
- package/dist/esm/types/material/FPreloader/FPreloader.stories.d.ts +0 -10
- package/dist/esm/types/material/FPreloader/index.d.ts +0 -1
- package/dist/esm/types/material/FProgress/FProgress.d.ts +0 -8
- package/dist/esm/types/material/FProgress/FProgress.stories.d.ts +0 -10
- package/dist/esm/types/material/FProgress/index.d.ts +0 -1
- package/dist/esm/types/material/FRadioButton/FRadioButton.d.ts +0 -13
- package/dist/esm/types/material/FRadioButton/FRadioButton.stories.d.ts +0 -9
- package/dist/esm/types/material/FRadioButton/index.d.ts +0 -1
- package/dist/esm/types/material/FSearchBox/FSearchBox.d.ts +0 -32
- package/dist/esm/types/material/FSearchBox/FSearchBox.stories.d.ts +0 -26
- package/dist/esm/types/material/FSearchBox/index.d.ts +0 -1
- package/dist/esm/types/material/FSelectSearchDb/FSelectSearchDb.d.ts +0 -21
- package/dist/esm/types/material/FSelectSearchDb/FSelectSearchDb.stories.d.ts +0 -15
- package/dist/esm/types/material/FSelectSearchDb/FSelectSearchDbLegacy.d.ts +0 -1
- package/dist/esm/types/material/FSelectSearchDb/index.d.ts +0 -1
- package/dist/esm/types/material/FStack/FStack.d.ts +0 -14
- package/dist/esm/types/material/FStack/FStack.stories.d.ts +0 -16
- package/dist/esm/types/material/FStack/index.d.ts +0 -1
- package/dist/esm/types/material/FTextArea/FTextArea.d.ts +0 -23
- package/dist/esm/types/material/FTextArea/FTextArea.stories.d.ts +0 -16
- package/dist/esm/types/material/FTextArea/index.d.ts +0 -1
- package/dist/esm/types/material/FTextField/FTextField.d.ts +0 -26
- package/dist/esm/types/material/FTextField/FTextField.stories.d.ts +0 -23
- package/dist/esm/types/material/FTextField/index.d.ts +0 -1
- package/dist/esm/types/material/FTimelineComponents/FTimeline/FTimeline.d.ts +0 -10
- package/dist/esm/types/material/FTimelineComponents/FTimeline/index.d.ts +0 -1
- package/dist/esm/types/material/FTimelineComponents/FTimeline.stories.d.ts +0 -10
- package/dist/esm/types/material/FTimelineComponents/FTimelineCard/FTimelineCard.d.ts +0 -10
- package/dist/esm/types/material/FTimelineComponents/FTimelineCard/index.d.ts +0 -1
- package/dist/esm/types/material/SelectComponents/FSelect/FSelect.d.ts +0 -21
- package/dist/esm/types/material/SelectComponents/FSelect/index.d.ts +0 -1
- package/dist/esm/types/material/SelectComponents/FSelect.stories.d.ts +0 -21
- package/dist/esm/types/material/SelectComponents/FSelectItem/FSelectItem.d.ts +0 -13
- package/dist/esm/types/material/SelectComponents/FSelectItem/index.d.ts +0 -1
- package/dist/esm/types/material/TableComponents/FTable/FTable.d.ts +0 -12
- package/dist/esm/types/material/TableComponents/FTable/index.d.ts +0 -1
- package/dist/esm/types/material/TableComponents/FTable.stories.d.ts +0 -21
- package/dist/esm/types/material/TableComponents/FTableBody/FTableBody.d.ts +0 -10
- package/dist/esm/types/material/TableComponents/FTableBody/index.d.ts +0 -1
- package/dist/esm/types/material/TableComponents/FTableDataCell/FTableDataCell.d.ts +0 -14
- package/dist/esm/types/material/TableComponents/FTableDataCell/index.d.ts +0 -1
- package/dist/esm/types/material/TableComponents/FTableFooter/FTableFooter.d.ts +0 -10
- package/dist/esm/types/material/TableComponents/FTableFooter/index.d.ts +0 -1
- package/dist/esm/types/material/TableComponents/FTableHead/FTableHead.d.ts +0 -10
- package/dist/esm/types/material/TableComponents/FTableHead/index.d.ts +0 -1
- package/dist/esm/types/material/TableComponents/FTableHeaderCell/FTableHeaderCell.d.ts +0 -12
- package/dist/esm/types/material/TableComponents/FTableHeaderCell/index.d.ts +0 -1
- package/dist/esm/types/material/TableComponents/FTableRow/FTableRow.d.ts +0 -10
- package/dist/esm/types/material/TableComponents/FTableRow/index.d.ts +0 -1
- package/dist/esm/types/material/Tabs/FTab/FTab.d.ts +0 -13
- package/dist/esm/types/material/Tabs/FTab/index.d.ts +0 -1
- package/dist/esm/types/material/Tabs/FTabs/FTabs.d.ts +0 -10
- package/dist/esm/types/material/Tabs/FTabs/index.d.ts +0 -1
- package/dist/esm/types/material/Tabs/FTabs.stories.d.ts +0 -10
- package/dist/esm/types/material/index.d.ts +0 -41
- package/dist/esm/types/stories/Button.d.ts +0 -28
- package/dist/esm/types/stories/Header.d.ts +0 -12
- package/dist/esm/types/stories/Page.d.ts +0 -3
- package/dist/esm/types/stories/Page.stories.d.ts +0 -13
- /package/dist/{cjs/types/function-elements → function-elements}/fAlert/fAlert.d.ts +0 -0
- /package/dist/{cjs/types/function-elements → function-elements}/fAlert/index.d.ts +0 -0
- /package/dist/{cjs/types/function-elements → function-elements}/fConfirm/fConfirm.d.ts +0 -0
- /package/dist/{cjs/types/function-elements → function-elements}/fConfirm/index.d.ts +0 -0
- /package/dist/{cjs/types/function-elements → function-elements}/fPrompt/index.d.ts +0 -0
- /package/dist/{cjs/types/function-elements → function-elements}/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FArrowIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FCheckIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FCloseIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FCopyAddIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FDownloadIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FFilterIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FListIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FLoadIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FPenIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FPlusIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FTrashIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/FUnlinkIcon/index.d.ts +0 -0
- /package/dist/{cjs/types/icons → icons}/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialog/FDialog.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialog/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialogBody/FDialogBody.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialogBody/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialogFooter/FDialogFooter.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialogFooter/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialogHeader/FDialogHeader.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dialog/FDialogHeader/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dropdown/FDropdown/FDropdown.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dropdown/FDropdown/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dropdown/FDropdownItem/FDropdownItem.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Dropdown/FDropdownItem/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FAccordion/FAccordion.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FAccordion/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FAlert/FAlert.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FAlert/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FButton/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FButtonFile/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FCheckbox/FCheckbox.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FCheckbox/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FContainer/FContainer.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FContainer/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FFile/FFile.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FFile/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FFullDateField/FFullDateField.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FFullDateField/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FGrid/FGrid.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FGrid/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FInputFileForm/FInputFileForm.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FInputFileForm/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FNative/FNative.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FNative/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FOpenImgFull/FOpenImgFull.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FOpenImgFull/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FPagination/FPagination.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FPagination/hooks/usePagination.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FPagination/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FPaper/FPaper.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FPaper/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FPreloader/FPreloader.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FPreloader/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FProgress/FProgress.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FProgress/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FRadioButton/FRadioButton.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FRadioButton/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FSearchBox/FSearchBox.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FSearchBox/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FSelectSearchDb/FSelectSearchDb.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FSelectSearchDb/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FStack/FStack.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FStack/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTextArea/FTextArea.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTextArea/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTextField/FTextField.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTextField/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTimelineComponents/FTimeline/FTimeline.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTimelineComponents/FTimeline/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTimelineComponents/FTimelineCard/FTimelineCard.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/FTimelineComponents/FTimelineCard/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/SelectComponents/FSelect/FSelect.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/SelectComponents/FSelect/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/SelectComponents/FSelectItem/FSelectItem.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/SelectComponents/FSelectItem/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTable/FTable.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTable/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableBody/FTableBody.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableBody/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableDataCell/FTableDataCell.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableDataCell/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableFooter/FTableFooter.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableFooter/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableHead/FTableHead.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableHead/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableHeaderCell/FTableHeaderCell.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableHeaderCell/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableRow/FTableRow.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/TableComponents/FTableRow/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Tabs/FTab/FTab.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Tabs/FTab/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Tabs/FTabs/FTabs.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/Tabs/FTabs/index.d.ts +0 -0
- /package/dist/{cjs/types/material → material}/index.d.ts +0 -0
package/dist/bundle.js
ADDED
|
@@ -0,0 +1,1398 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
|
|
5
|
+
const FButton = ({ children, variant = 'contained', color = 'primary', size = 'btn-sm', disabled, onClick, st, className, fullWidth, id, type = 'button' }) => {
|
|
6
|
+
if (fullWidth) {
|
|
7
|
+
if (st === undefined) {
|
|
8
|
+
st = {
|
|
9
|
+
width: '100%'
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
st.width = '100%';
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
if (st === undefined) {
|
|
18
|
+
st = {
|
|
19
|
+
width: "fit-content"
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
st.width = "fit-content";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return (React.createElement(React.Fragment, null,
|
|
27
|
+
React.createElement("button", { disabled: disabled, type: type, className: `btn ${variant === 'contained' ? 'btn' : 'btn-default'}-${color} ${size} ${className !== undefined ? className : ''}`, onClick: onClick, style: st, id: id }, children)));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const FButtonFile = ({ children, variant = 'contained', color = 'primary', size = 'btn-sm', disabled, st, className, fullWidth, id, onChange, multiple = false, maxCount, accept, spacing, direction }) => {
|
|
31
|
+
const fileRef = React.useRef();
|
|
32
|
+
const [files, setFiles] = React.useState([]);
|
|
33
|
+
if (fullWidth) {
|
|
34
|
+
if (st === undefined) {
|
|
35
|
+
st = {
|
|
36
|
+
width: '100%'
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
st.width = '100%';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return (React.createElement(React.Fragment, null,
|
|
44
|
+
React.createElement("button", { disabled: disabled, className: `btn ${variant === 'contained' ? 'btn' : 'btn-default'}-${color} ${size} ${className !== undefined ? className : ''}`, style: st, id: id,
|
|
45
|
+
//@ts-ignore
|
|
46
|
+
onClick: () => fileRef.current.click() }, children),
|
|
47
|
+
React.createElement("input", { style: { display: 'none' },
|
|
48
|
+
//@ts-ignore
|
|
49
|
+
ref: fileRef, onChange: (e) => {
|
|
50
|
+
const newFiles = [...files];
|
|
51
|
+
//@ts-ignore
|
|
52
|
+
Object.values(e.target.files).map((opt) => {
|
|
53
|
+
//@ts-ignore
|
|
54
|
+
newFiles.push(opt);
|
|
55
|
+
});
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
setFiles(newFiles);
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
onChange(newFiles);
|
|
60
|
+
}, multiple: multiple, type: "file", hidden: true, maxCount: maxCount, accept: accept }),
|
|
61
|
+
React.createElement("div", { className: "custom-files-preview", id: "files", style: { marginTop: '16px' } },
|
|
62
|
+
React.createElement(FStack, { direction: direction, spacing: spacing }, files !== undefined &&
|
|
63
|
+
files.map((opt, index) => {
|
|
64
|
+
return (React.createElement("span", {
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
key: `file-${opt.name}-${Math.round(+opt.size / 1024)}}`, className: "tag tag-default tag-file tag-block", style: {
|
|
67
|
+
width: 'fit-content',
|
|
68
|
+
display: 'flex',
|
|
69
|
+
justifyContent: 'flex-end',
|
|
70
|
+
} },
|
|
71
|
+
React.createElement("span", { className: "tag-file-name" }, opt.name),
|
|
72
|
+
React.createElement("span", { className: "tag-file-size" },
|
|
73
|
+
"(",
|
|
74
|
+
Math.round(+opt.size / 1024),
|
|
75
|
+
" \u041A\u0411)"),
|
|
76
|
+
React.createElement("div", { className: "cl-btn-3", style: {
|
|
77
|
+
marginLeft: '16px',
|
|
78
|
+
marginTop: '2px',
|
|
79
|
+
width: '10px',
|
|
80
|
+
height: '10px',
|
|
81
|
+
}, onClick: () => {
|
|
82
|
+
let arFiles = [...files];
|
|
83
|
+
arFiles.splice(index, 1);
|
|
84
|
+
//@ts-ignore
|
|
85
|
+
setFiles(arFiles);
|
|
86
|
+
if (arFiles.length === 0) {
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
fileRef.current.value = null;
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
onChange(null);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
onChange(arFiles);
|
|
95
|
+
}
|
|
96
|
+
} },
|
|
97
|
+
React.createElement("span", { className: "top" }),
|
|
98
|
+
React.createElement("span", { className: "bot" }))));
|
|
99
|
+
})))));
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const FLoadIcon = ({ size = 35, st, id, className, color = 'primary' }) => {
|
|
103
|
+
const randomId = React.useRef((Math.random() + 1).toString(36).substring(2));
|
|
104
|
+
return (React.createElement("div", { style: { margin: 0, padding: 0 } },
|
|
105
|
+
React.createElement("style", null,
|
|
106
|
+
`
|
|
107
|
+
.f-load-icon-${randomId.current} {
|
|
108
|
+
width: ${size}px;
|
|
109
|
+
height: ${size * 2.25}px;
|
|
110
|
+
-webkit-animation: anim-f-load-icon-${randomId.current} 2s linear infinite alternate;
|
|
111
|
+
animation: anim-f-load-icon-${randomId.current} 2s linear infinite alternate;
|
|
112
|
+
transform: perspective(${size * 2.5}px) rotateX(-45deg);
|
|
113
|
+
border-width: ${size / 10}px !important;
|
|
114
|
+
}
|
|
115
|
+
`,
|
|
116
|
+
`@-webkit-keyframes anim-f-load-icon-${randomId.current} {
|
|
117
|
+
0% {
|
|
118
|
+
box-shadow: 0 0 inset;
|
|
119
|
+
}
|
|
120
|
+
100% {
|
|
121
|
+
box-shadow: 0 calc((${size * 2.25}px - 2px) * -1) inset;
|
|
122
|
+
}
|
|
123
|
+
}`,
|
|
124
|
+
`@keyframes anim-f-load-icon-${randomId.current} {
|
|
125
|
+
0% {
|
|
126
|
+
box-shadow: 0 0 inset;
|
|
127
|
+
}
|
|
128
|
+
100% {
|
|
129
|
+
box-shadow: 0 calc((${size * 2.25}px - 2px) * -1) inset;
|
|
130
|
+
}
|
|
131
|
+
}`),
|
|
132
|
+
React.createElement("span", { className: `f-load-icon f-load-icon-${randomId.current} ${color} ${className !== undefined ? className : ''}`, style: st, id: id })));
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const FTextField = ({ label, value, onChange, type = 'text', onBlur, onFocus, fullWidth, disabled, readOnly, defaultValue, errText, helpText, onInput, st, id, className, load = false, min, max, placeholder, }) => {
|
|
136
|
+
if (fullWidth) {
|
|
137
|
+
if (st === undefined) {
|
|
138
|
+
st = {
|
|
139
|
+
width: '100%'
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
st.width = '100%';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
if (st === undefined) {
|
|
148
|
+
st = {
|
|
149
|
+
width: 'fit-content'
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
st.width = 'fit-content';
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
let style = {
|
|
157
|
+
whiteSpace: 'nowrap',
|
|
158
|
+
overflow: 'hidden',
|
|
159
|
+
textOverflow: 'ellipsis',
|
|
160
|
+
};
|
|
161
|
+
st = Object.assign({}, st, style);
|
|
162
|
+
if (value === null) {
|
|
163
|
+
value = '';
|
|
164
|
+
}
|
|
165
|
+
if (type === 'number' && (value === undefined)) {
|
|
166
|
+
value = '';
|
|
167
|
+
}
|
|
168
|
+
return (React.createElement(React.Fragment, null,
|
|
169
|
+
React.createElement("div", { className: `
|
|
170
|
+
form-group ${className !== undefined ? className : ''}`, style: st, id: id },
|
|
171
|
+
label &&
|
|
172
|
+
React.createElement("label", { className: "control-label with-offset", style: {
|
|
173
|
+
whiteSpace: 'nowrap',
|
|
174
|
+
overflow: 'hidden',
|
|
175
|
+
textOverflow: 'ellipsis'
|
|
176
|
+
} }, label),
|
|
177
|
+
React.createElement("div", { className: `${load ? 'ui left icon input loading' : ''}` },
|
|
178
|
+
React.createElement("input", { placeholder: placeholder, style: {
|
|
179
|
+
borderColor: errText !== undefined && errText.length > 0 ? 'red' : '#C4C4C4'
|
|
180
|
+
}, min: min, max: max, disabled: disabled, defaultValue: defaultValue, required: true, onInput: onInput, readOnly: readOnly || load, value: value,
|
|
181
|
+
//@ts-ignore
|
|
182
|
+
onChange: onChange, type: type, className: "form-control", onBlur: onBlur, onFocus: onFocus }),
|
|
183
|
+
helpText !== undefined &&
|
|
184
|
+
React.createElement("span", { style: {
|
|
185
|
+
whiteSpace: 'initial',
|
|
186
|
+
color: '#a6a3a3',
|
|
187
|
+
fontSize: '12px'
|
|
188
|
+
} }, helpText),
|
|
189
|
+
errText !== undefined && errText.length > 0 &&
|
|
190
|
+
React.createElement(FStack, { direction: 'column', st: { paddingLeft: '11px' } }, errText === null || errText === void 0 ? void 0 : errText.map((opt, index) => {
|
|
191
|
+
return (React.createElement("span", { key: index, style: {
|
|
192
|
+
whiteSpace: 'initial',
|
|
193
|
+
color: 'red'
|
|
194
|
+
} }, opt));
|
|
195
|
+
})),
|
|
196
|
+
load &&
|
|
197
|
+
React.createElement("div", { className: 'input-load' },
|
|
198
|
+
React.createElement(FLoadIcon, { size: 10 }))))));
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
const FStack = ({ children, alignItems, justifyContent, direction = 'column', spacing = 0, className, st, id }) => {
|
|
202
|
+
let style = {
|
|
203
|
+
gap: `${+spacing * 8}px`,
|
|
204
|
+
display: 'flex',
|
|
205
|
+
flexDirection: direction,
|
|
206
|
+
// @ts-ignore
|
|
207
|
+
WebkitBoxPack: justifyContent,
|
|
208
|
+
justifyContent: justifyContent,
|
|
209
|
+
// @ts-ignore
|
|
210
|
+
WebkitBoxAlign: alignItems,
|
|
211
|
+
alignItems: alignItems,
|
|
212
|
+
};
|
|
213
|
+
if (st !== undefined) {
|
|
214
|
+
style = Object.assign(style, st);
|
|
215
|
+
}
|
|
216
|
+
return (React.createElement(React.Fragment, null,
|
|
217
|
+
React.createElement("div", { className: className, style: style, id: id }, children)));
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
const FGrid = ({ children, className, st, id, obj, xs, sm, md, lg, xl, xxl, colAuto }) => {
|
|
221
|
+
let style = {
|
|
222
|
+
paddingBottom: '16px'
|
|
223
|
+
};
|
|
224
|
+
if (st !== undefined) {
|
|
225
|
+
style = Object.assign(style, st);
|
|
226
|
+
}
|
|
227
|
+
return (React.createElement(React.Fragment, null,
|
|
228
|
+
obj === 'container' &&
|
|
229
|
+
React.createElement("div", { className: `container` },
|
|
230
|
+
React.createElement("div", { className: `row ${className !== undefined ? className : ''}`, style: st, id: id }, children)),
|
|
231
|
+
obj === 'item' &&
|
|
232
|
+
React.createElement("div", { className: `${className !== undefined ? className : ''} ${xs !== undefined ? `col-${xs}` : ''} ${sm !== undefined ? `col-sm-${sm}` : ''} ${md !== undefined ? `col-md-${md}` : ''} ${lg !== undefined ? `col-lg-${lg}` : ''} ${xl !== undefined ? `col-lg-${lg}` : ''} ${xxl !== undefined ? `col-xxl-${xxl}` : ''} ${colAuto !== undefined ? colAuto : ''}`, style: style, id: id }, children),
|
|
233
|
+
obj === undefined &&
|
|
234
|
+
React.createElement("div", null, children)));
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
const FContainer = ({ children, className, st, id, maxWidth = 'container-xs' }) => {
|
|
238
|
+
return (React.createElement(React.Fragment, null,
|
|
239
|
+
React.createElement("div", { className: `${className !== undefined ? className : ''} ${maxWidth} f-container`, style: st, id: id }, children)));
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
const FPaper = ({ label, children, st, fontSizeLabel, id, className, fontSizeBody, onAnimationEnd, animated }) => {
|
|
243
|
+
React.useEffect(() => {
|
|
244
|
+
if (animated !== undefined) {
|
|
245
|
+
const element = document.getElementsByClassName(`animated-${animated.name}`)[0];
|
|
246
|
+
element === null || element === void 0 ? void 0 : element.setAttribute(animated.name, animated.value);
|
|
247
|
+
}
|
|
248
|
+
}, [animated === null || animated === void 0 ? void 0 : animated.value]);
|
|
249
|
+
return (React.createElement(React.Fragment, null,
|
|
250
|
+
React.createElement("div", { className: `panel panel-default ${className} ${animated !== undefined ? `animated-${animated.name}` : ''}`, style: st, id: id, onAnimationEnd: onAnimationEnd },
|
|
251
|
+
label &&
|
|
252
|
+
React.createElement("div", { className: "panel-heading" },
|
|
253
|
+
React.createElement("h3", { style: { fontSize: fontSizeLabel }, className: "panel-title" }, label)),
|
|
254
|
+
React.createElement("div", { className: "panel-body", style: { fontSize: fontSizeBody } }, children))));
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
const FTable = ({ st, children, id, className, onClick, overflowX = "auto" }) => {
|
|
258
|
+
return (React.createElement(React.Fragment, null,
|
|
259
|
+
React.createElement(FStack, { direction: 'row', spacing: 2, st: { overflowX: overflowX } },
|
|
260
|
+
React.createElement("table", { className: `table table-bordered table-bordered-half ${className}`, style: st, id: id, onClick: onClick }, children))));
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
const FTableHead = ({ st, children, id, className, onClick }) => {
|
|
264
|
+
return (React.createElement(React.Fragment, null,
|
|
265
|
+
React.createElement("thead", { style: st, id: id, className: className, onClick: onClick }, children)));
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
const FTableBody = ({ st, children, id, className, onClick }) => {
|
|
269
|
+
return (React.createElement(React.Fragment, null,
|
|
270
|
+
React.createElement("tbody", { style: st, className: className, id: id, onClick: onClick }, children)));
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
const FTableRow = ({ st, children, onClick, id, className }) => {
|
|
274
|
+
return (React.createElement(React.Fragment, null,
|
|
275
|
+
React.createElement("tr", { style: st, onClick: onClick, id: id, className: className }, children)));
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
const FTableHeaderCell = ({ st, row, col, children, onClick, id, className }) => {
|
|
279
|
+
return (React.createElement(React.Fragment, null,
|
|
280
|
+
React.createElement("th", { style: st, rowSpan: row, colSpan: col, onClick: onClick, id: id, className: className }, children)));
|
|
281
|
+
};
|
|
282
|
+
|
|
283
|
+
const FTableDataCell = ({ st, row, col, children, onClick, id, onBlur, onFocus, className }) => {
|
|
284
|
+
return (React.createElement(React.Fragment, null,
|
|
285
|
+
React.createElement("td", { style: st, rowSpan: row, colSpan: col, onClick: onClick, id: id, onBlur: onBlur, onFocus: onFocus, className: className }, children)));
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
const FTableFooter = ({ st, children, id, className, onClick }) => {
|
|
289
|
+
return (React.createElement(React.Fragment, null,
|
|
290
|
+
React.createElement("tfoot", { style: st, id: id, className: className, onClick: onClick }, children)));
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
// *********************************************************************************************************************
|
|
294
|
+
// Родительский компонет диалогового окна
|
|
295
|
+
// *********************************************************************************************************************
|
|
296
|
+
const FDialog = ({ openAndClose, closeButtonBackPage, hide, children, id, className, st, width = 'lg' }) => {
|
|
297
|
+
React.useEffect(() => {
|
|
298
|
+
if (document.getElementsByClassName("active-dialog").length > 0) {
|
|
299
|
+
document.body.classList.add('open-dialog');
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
document.body.classList.remove('open-dialog');
|
|
303
|
+
}
|
|
304
|
+
}, [openAndClose]);
|
|
305
|
+
return (React.createElement(React.Fragment, null,
|
|
306
|
+
React.createElement("div", { className: `${openAndClose ? 'f-dialog active-dialog' : 'f-dialog'} ${className !== undefined ? className : ''}`, onClick: () => closeButtonBackPage && closeButtonBackPage(false), id: id, style: st },
|
|
307
|
+
React.createElement("div", { className: `${openAndClose ? 'f-dialog-content active' : 'f-dialog-content'} ${hide ? 'hide' : ''}`, style: {
|
|
308
|
+
width: width === 'xxl' ? '95vw' : width === 'lg' ? '80vw' : width === 'md' ? '65vw' : width === 'xs' ? '50vw' : 'fit-content'
|
|
309
|
+
}, onClick: (e) => e.stopPropagation() }, children))));
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
// *********************************************************************************************************************
|
|
313
|
+
// Головная часть компонента диалогового окна
|
|
314
|
+
// *********************************************************************************************************************
|
|
315
|
+
const FDialogHeader = ({ title, handleClose, }) => {
|
|
316
|
+
return (React.createElement(React.Fragment, null,
|
|
317
|
+
React.createElement("div", { className: "dialog-header" },
|
|
318
|
+
React.createElement("div", null,
|
|
319
|
+
React.createElement("h3", { className: "dialog-title", style: { margin: 0 } }, title === undefined ? '' : title)),
|
|
320
|
+
handleClose !== undefined &&
|
|
321
|
+
React.createElement("div", null,
|
|
322
|
+
React.createElement("div", { className: "cl-btn-3", onClick: handleClose },
|
|
323
|
+
React.createElement("span", { className: "top" }),
|
|
324
|
+
React.createElement("span", { className: "bot" }))))));
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
// *********************************************************************************************************************
|
|
328
|
+
// Основная часть компонента диалогового окна
|
|
329
|
+
// *********************************************************************************************************************
|
|
330
|
+
const FDialogBody = ({ st, children, scroll }) => {
|
|
331
|
+
let style = {};
|
|
332
|
+
if (scroll) {
|
|
333
|
+
style['overflowY'] = 'auto';
|
|
334
|
+
}
|
|
335
|
+
if (st !== undefined) {
|
|
336
|
+
style = Object.assign(style, st);
|
|
337
|
+
}
|
|
338
|
+
return (React.createElement(React.Fragment, null,
|
|
339
|
+
React.createElement("div", { className: "dialog-body", style: style }, children)));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
// *********************************************************************************************************************
|
|
343
|
+
// Нижняя часть компонента диалогового окна
|
|
344
|
+
// *********************************************************************************************************************
|
|
345
|
+
const FDialogFooter = ({ children }) => {
|
|
346
|
+
return (React.createElement(React.Fragment, null,
|
|
347
|
+
React.createElement("div", { className: 'dialog-footer' }, children)));
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
// *********************************************************************************************************************
|
|
351
|
+
// Родительский компонет прогресс бара
|
|
352
|
+
// *********************************************************************************************************************
|
|
353
|
+
const FProgress = ({ st, color = 'primary' }) => {
|
|
354
|
+
let style = {
|
|
355
|
+
borderTopColor: color === 'primary' ? '#007bff' :
|
|
356
|
+
color === 'secondary' ? '#6c757d' :
|
|
357
|
+
color === 'success' ? '#28a745' :
|
|
358
|
+
color === 'danger' ? '#dc3545' :
|
|
359
|
+
color === 'warning' ? '#ffc107' :
|
|
360
|
+
color === 'info' ? '#17a2b8' :
|
|
361
|
+
color === 'light' ? '#f8f9fa' :
|
|
362
|
+
color === 'dark' ? '#343a40' : '#007bff'
|
|
363
|
+
};
|
|
364
|
+
if (st !== undefined) {
|
|
365
|
+
style = Object.assign(style, st);
|
|
366
|
+
}
|
|
367
|
+
return (React.createElement(React.Fragment, null,
|
|
368
|
+
React.createElement("div", { style: style, className: 'f-progress' })));
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
// *********************************************************************************************************************
|
|
372
|
+
// Родительский компонет прелоадера
|
|
373
|
+
// *********************************************************************************************************************
|
|
374
|
+
const FPreloader = ({ st, backgroundColor = '#e0e0e0', children, open }) => {
|
|
375
|
+
if (open) {
|
|
376
|
+
document.body.style.overflow = 'hidden';
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
document.body.style.overflow = 'auto';
|
|
380
|
+
}
|
|
381
|
+
let style = {
|
|
382
|
+
backgroundColor: backgroundColor,
|
|
383
|
+
display: open ? 'block' : 'none'
|
|
384
|
+
};
|
|
385
|
+
if (st !== undefined) {
|
|
386
|
+
style = Object.assign(style, st);
|
|
387
|
+
}
|
|
388
|
+
return (React.createElement(React.Fragment, null,
|
|
389
|
+
React.createElement("div", { className: "f-preloader", style: style },
|
|
390
|
+
React.createElement("div", { className: "f-preloader-row" }, children))));
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
const FCheckbox = ({ label, onChange, defaultChecked, className, id, st, checked, disabled }) => {
|
|
394
|
+
return (React.createElement(React.Fragment, null,
|
|
395
|
+
React.createElement("div", { className: `f-checkbox ${className !== undefined ? className : ''}`, id: id, style: st },
|
|
396
|
+
React.createElement("label", null,
|
|
397
|
+
React.createElement("input", { defaultChecked: defaultChecked, type: "checkbox", onChange: onChange, checked: checked, disabled: disabled }),
|
|
398
|
+
label))));
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
const FRadioButton = ({ label, onClick, className, id, st, checked, disabled }) => {
|
|
402
|
+
return (React.createElement(React.Fragment, null,
|
|
403
|
+
React.createElement("div", { className: `f-radio ${className !== undefined ? className : ''}`, id: id, style: st },
|
|
404
|
+
React.createElement("label", null,
|
|
405
|
+
React.createElement("input", { type: "radio", onClick: onClick, checked: checked, disabled: disabled }),
|
|
406
|
+
label))));
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
const DOTS = '...';
|
|
410
|
+
const range = (start, end) => {
|
|
411
|
+
let length = end - start + 1;
|
|
412
|
+
return Array.from({ length }, (_, idx) => idx + start);
|
|
413
|
+
};
|
|
414
|
+
const usePagination = ({ totalCount, pageSize, siblingCount = 1, currentPage }) => {
|
|
415
|
+
const paginationRange = React.useMemo(() => {
|
|
416
|
+
const totalPageCount = Math.ceil(totalCount / pageSize);
|
|
417
|
+
const totalPageNumbers = siblingCount + 5;
|
|
418
|
+
if (totalPageNumbers >= totalPageCount) {
|
|
419
|
+
return range(1, totalPageCount);
|
|
420
|
+
}
|
|
421
|
+
const leftSiblingIndex = Math.max(currentPage - siblingCount, 1);
|
|
422
|
+
const rightSiblingIndex = Math.min(currentPage + siblingCount, totalPageCount);
|
|
423
|
+
const shouldShowLeftDots = leftSiblingIndex > 2;
|
|
424
|
+
const shouldShowRightDots = rightSiblingIndex < totalPageCount - 2;
|
|
425
|
+
const firstPageIndex = 1;
|
|
426
|
+
const lastPageIndex = totalPageCount;
|
|
427
|
+
if (!shouldShowLeftDots && shouldShowRightDots) {
|
|
428
|
+
let leftItemCount = 3 + 2 * siblingCount;
|
|
429
|
+
let leftRange = range(1, leftItemCount);
|
|
430
|
+
return [...leftRange, DOTS, totalPageCount];
|
|
431
|
+
}
|
|
432
|
+
if (shouldShowLeftDots && !shouldShowRightDots) {
|
|
433
|
+
let rightItemCount = 3 + 2 * siblingCount;
|
|
434
|
+
let rightRange = range(totalPageCount - rightItemCount + 1, totalPageCount);
|
|
435
|
+
return [firstPageIndex, DOTS, ...rightRange];
|
|
436
|
+
}
|
|
437
|
+
if (shouldShowLeftDots && shouldShowRightDots) {
|
|
438
|
+
let middleRange = range(leftSiblingIndex, rightSiblingIndex);
|
|
439
|
+
return [firstPageIndex, DOTS, ...middleRange, DOTS, lastPageIndex];
|
|
440
|
+
}
|
|
441
|
+
}, [totalCount, pageSize, siblingCount, currentPage]);
|
|
442
|
+
return paginationRange;
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
const FPagination = ({ currentPage, totalCount, pageSize, onPageChange, id, className, st, siblingCount }) => {
|
|
446
|
+
const paginationRange = usePagination({
|
|
447
|
+
currentPage,
|
|
448
|
+
totalCount,
|
|
449
|
+
siblingCount,
|
|
450
|
+
pageSize
|
|
451
|
+
});
|
|
452
|
+
// @ts-ignore
|
|
453
|
+
if (currentPage === 0 || paginationRange.length < 2) {
|
|
454
|
+
return null;
|
|
455
|
+
}
|
|
456
|
+
const onNext = () => {
|
|
457
|
+
onPageChange(currentPage + 1);
|
|
458
|
+
};
|
|
459
|
+
const onPrevious = () => {
|
|
460
|
+
onPageChange(currentPage - 1);
|
|
461
|
+
};
|
|
462
|
+
// @ts-ignore
|
|
463
|
+
let lastPage = paginationRange[paginationRange.length - 1];
|
|
464
|
+
return (React.createElement(React.Fragment, null,
|
|
465
|
+
React.createElement("ul", { className: `pagination-container ${className !== undefined ? className : ''}`, style: st, id: `${id !== undefined ? id : ''}` },
|
|
466
|
+
React.createElement("li", { className: `pagination-item ${currentPage === 1 ? 'disabled' : ''}`, onClick: onPrevious },
|
|
467
|
+
React.createElement("div", { className: "arrow left" })),
|
|
468
|
+
paginationRange.map(pageNumber => {
|
|
469
|
+
if (pageNumber === DOTS) {
|
|
470
|
+
return React.createElement("li", { className: "pagination-item dots" }, "\u2026");
|
|
471
|
+
}
|
|
472
|
+
return (React.createElement("li", { className: `pagination-item ${pageNumber === currentPage ? 'selected' : ''}`, id: 'test-id', onClick: () => onPageChange(pageNumber) }, pageNumber));
|
|
473
|
+
}),
|
|
474
|
+
React.createElement("li", { className: `pagination-item ${currentPage === lastPage ? 'disabled' : ''}`, onClick: onNext },
|
|
475
|
+
React.createElement("div", { className: "arrow right" })))));
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
const FTimeline = ({ children, st, id, className }) => {
|
|
479
|
+
return (React.createElement(React.Fragment, null,
|
|
480
|
+
React.createElement("div", { className: `fv-timeline ${className !== undefined ? className : ''}`, style: st, id: id }, children)));
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
const FTimelineCard = ({ children, st, title, id, className }) => {
|
|
484
|
+
return (React.createElement(React.Fragment, null,
|
|
485
|
+
React.createElement("div", { className: `fv-tl-block-card ${className !== undefined ? className : ''}`, id: id },
|
|
486
|
+
React.createElement("div", { className: 'fv-tl-line-circle' }),
|
|
487
|
+
React.createElement(FPaper, { label: title, st: st, className: 'fv-tl-card' }, children))));
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
const FCloseIcon = ({ color = 'primary', size = 70, st, id, className, handleClose }) => {
|
|
491
|
+
return (React.createElement("svg", { width: size, style: st, className: `bi bi-x-lg ${color} ${className !== undefined ? className : ''}`, viewBox: "0 0 16 16", onClick: handleClose, id: id },
|
|
492
|
+
React.createElement("path", { d: "M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z" })));
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
const FArrowIcon = ({ color = 'primary', size = 32, st, direction = 'right', handleClick, id, className }) => {
|
|
496
|
+
const style = {
|
|
497
|
+
transform: `rotate(
|
|
498
|
+
${direction === 'down' ? 90 :
|
|
499
|
+
direction === 'up' ? -90 :
|
|
500
|
+
direction === 'right' ? 0 :
|
|
501
|
+
180}deg)`
|
|
502
|
+
};
|
|
503
|
+
st = Object.assign({}, style, st);
|
|
504
|
+
return (React.createElement("svg", { width: size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", className: `arrow-icon ${color} ${className !== undefined ? className : ''}`, style: st, onClick: handleClick, id: id },
|
|
505
|
+
React.createElement("path", { d: "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z" })));
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
const FPlusIcon = ({ color = 'primary', size = 32, st, className, id, handleClick }) => {
|
|
509
|
+
return (React.createElement("svg", { onClick: handleClick, className: `MuiSvgIcon-root MuiSvgIcon-fontSizeMedium ${color} ${className !== undefined ? className : ''}`, id: id, width: size, style: st, focusable: "false", "aria-hidden": "true", viewBox: "0 0 24 24", "data-testid": "AddCircleOutlineOutlinedIcon" },
|
|
510
|
+
React.createElement("path", { d: "M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" })));
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
const FTrashIcon = ({ color = "primary", size = 32, st, id, className, handleClick, }) => {
|
|
514
|
+
return (React.createElement("svg", { onClick: handleClick, xmlns: "http://www.w3.org/2000/svg", width: size, style: st, className: `bi bi-trash ${color} ${className !== undefined ? className : ''}`, viewBox: "0 0 16 16", id: id },
|
|
515
|
+
React.createElement("path", { d: "M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z" }),
|
|
516
|
+
React.createElement("path", { fillRule: "evenodd", d: "M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z" })));
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
const FCheckIcon = ({ color = 'success', size = 30, st, id, className, handleClick }) => {
|
|
520
|
+
return (React.createElement("svg", { width: size, viewBox: "0 0 16 16", className: `${color} ${className !== undefined ? className : ''}`, id: id, onClick: handleClick, style: st },
|
|
521
|
+
React.createElement("path", { clipRule: "evenodd", d: "M15.4142 4.41421L6 13.8284L0.585785 8.41421L3.41421 5.58578L6 8.17157L12.5858 1.58578L15.4142 4.41421Z", fillRule: "evenodd" })));
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
const FListIcon = ({ color = 'dark', size = 32, st, id, className, handleClick }) => {
|
|
525
|
+
return (React.createElement("svg", { width: size, style: st, className: `bi bi-card-list ${color} ${className !== undefined ? className : ''}`, viewBox: "0 0 16 16", id: id, onClick: handleClick },
|
|
526
|
+
React.createElement("path", { d: "M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z" }),
|
|
527
|
+
React.createElement("path", { d: "M5 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 8zm0-2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0 5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-1-5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM4 8a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm0 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z" })));
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
const FPenIcon = ({ color = 'dark', size = 30, st, id, className, handleClick }) => {
|
|
531
|
+
return (React.createElement("svg", { width: size, style: st, className: `bi bi-pencil ${color} ${className !== undefined ? className : ''}`, viewBox: "0 0 16 16", onClick: handleClick, id: id },
|
|
532
|
+
React.createElement("path", { d: "M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z" })));
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
const FDownloadIcon = ({ color = 'dark', size = 32, st, id, className, handleClick }) => {
|
|
536
|
+
return (React.createElement("svg", { style: st, id: id, width: size, onClick: handleClick, className: `bi bi-download download-icon ${color} ${className}`, viewBox: "0 0 16 16" },
|
|
537
|
+
React.createElement("path", { d: "M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z" }),
|
|
538
|
+
React.createElement("path", { d: "M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z" })));
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
const FCopyAddIcon = ({ color = 'dark', size = 30, st, id, className, handleClick }) => {
|
|
542
|
+
return (React.createElement("svg", { width: size, style: st, className: `bi bi-pencil ${color} ${className !== undefined ? className : ''}`, viewBox: "0 0 32 32", onClick: handleClick, id: id },
|
|
543
|
+
React.createElement("path", { d: "M27.2,8.22H23.78V5.42A3.42,3.42,0,0,0,20.36,2H5.42A3.42,3.42,0,0,0,2,5.42V20.36a3.42,3.42,0,0,0,3.42,3.42h2.8V27.2A2.81,2.81,0,0,0,11,30H27.2A2.81,2.81,0,0,0,30,27.2V11A2.81,2.81,0,0,0,27.2,8.22ZM5.42,21.91a1.55,1.55,0,0,1-1.55-1.55V5.42A1.54,1.54,0,0,1,5.42,3.87H20.36a1.55,1.55,0,0,1,1.55,1.55v2.8H11A2.81,2.81,0,0,0,8.22,11V21.91ZM28.13,27.2a.93.93,0,0,1-.93.93H11a.93.93,0,0,1-.93-.93V11a.93.93,0,0,1,.93-.93H27.2a.93.93,0,0,1,.93.93Z" }),
|
|
544
|
+
React.createElement("path", { d: "M24.09,18.18H20v-4a.93.93,0,1,0-1.86,0v4h-4a.93.93,0,0,0,0,1.86h4v4.05a.93.93,0,1,0,1.86,0V20h4.05a.93.93,0,1,0,0-1.86Z" })));
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
const FUnlinkIcon = ({ color = 'dark', size = 30, st, id, className, handleClick }) => {
|
|
548
|
+
return (React.createElement("svg", { width: size, style: st, className: `bi bi-pencil ${color} ${className !== undefined ? className : ''}`, viewBox: "-0.5 0 25 25", onClick: handleClick, id: id, fill: 'none' },
|
|
549
|
+
React.createElement("path", { d: "M9.23993 17.55L7.95993 18.84C7.33993 19.47 6.51992 19.79 5.69992 19.79C4.87992 19.79 4.05994 19.47 3.43994 18.84C2.18994 17.58 2.18994 15.54 3.43994 14.29L4.70993 13.02L6.11993 11.6L8.82993 8.86", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
550
|
+
React.createElement("path", { d: "M8.82996 3.86V6.86", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
551
|
+
React.createElement("path", { d: "M5.32996 5.22L6.82996 7.81", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
552
|
+
React.createElement("path", { d: "M9.23993 17.55L7.95993 18.84C7.33993 19.47 6.51992 19.79 5.69992 19.79C4.87992 19.79 4.05994 19.47 3.43994 18.84C2.18994 17.58 2.18994 15.54 3.43994 14.29L4.70993 13.02L6.11993 11.6L8.82993 8.86", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
553
|
+
React.createElement("path", { d: "M14.7599 7.45L16.0399 6.16C16.6599 5.53 17.4799 5.21 18.2999 5.21C19.1199 5.21 19.9399 5.53 20.5599 6.16C21.8099 7.42 21.8099 9.46 20.5599 10.71L19.2899 11.98L17.8799 13.4L15.1699 16.14", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
554
|
+
React.createElement("path", { d: "M12.33 5.22L10.83 7.81", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
555
|
+
React.createElement("path", { d: "M15.1699 21.14V18.14", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
556
|
+
React.createElement("path", { d: "M18.6699 19.79L17.1699 17.19", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
557
|
+
React.createElement("path", { d: "M11.6699 19.79L13.1699 17.19", stroke: "#0F0F0F", "stroke-miterlimit": "10", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
const FFilterIcon = ({ color = 'dark', size = 30, st, id, className, handleClick }) => {
|
|
561
|
+
return (React.createElement("svg", { width: size, viewBox: "0 0 24 24", className: `${color} ${className !== undefined ? className : ''}`, id: id, onClick: handleClick, style: st },
|
|
562
|
+
React.createElement("path", { fill: "none", d: "M0 0h24v24H0z" }),
|
|
563
|
+
React.createElement("path", { fillRule: "nonzero", d: "M14 14v6l-4 2v-8L4 5V3h16v2l-6 9zM6.404 5L12 13.394 17.596 5H6.404z" })));
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
const FOpenImgFull = ({ id, className, st, imagesUrl, selectedImg, setSelectedImg, handleClose, openAndClose }) => {
|
|
567
|
+
let style = {
|
|
568
|
+
boxShadow: '2px 2px 10px 5px rgb(0 0 0 / 0%)',
|
|
569
|
+
backgroundColor: "inherit",
|
|
570
|
+
overflow: "inherit",
|
|
571
|
+
display: 'flex',
|
|
572
|
+
alignItems: 'center',
|
|
573
|
+
justifyContent: 'center',
|
|
574
|
+
maxWidth: '80%',
|
|
575
|
+
maxHeight: '80%',
|
|
576
|
+
padding: '90px'
|
|
577
|
+
};
|
|
578
|
+
if (st !== undefined) {
|
|
579
|
+
style = Object.assign(style, st);
|
|
580
|
+
}
|
|
581
|
+
return (React.createElement(React.Fragment, null, imagesUrl.length !== 0 && selectedImg >= 0 && selectedImg < imagesUrl.length &&
|
|
582
|
+
React.createElement(FDialog, { openAndClose: openAndClose, st: style, className: className, id: id },
|
|
583
|
+
React.createElement("div", { className: 'fv-opn-img-full-body' },
|
|
584
|
+
React.createElement(FStack, { direction: 'row-reverse', spacing: 2 },
|
|
585
|
+
React.createElement("div", { style: {
|
|
586
|
+
position: 'fixed',
|
|
587
|
+
top: '70px',
|
|
588
|
+
right: '20px'
|
|
589
|
+
} }, handleClose !== undefined &&
|
|
590
|
+
React.createElement(FCloseIcon, { handleClose: () => {
|
|
591
|
+
handleClose();
|
|
592
|
+
document.body.style.overflow = 'auto';
|
|
593
|
+
} })),
|
|
594
|
+
React.createElement(FStack, { direction: 'row', spacing: 2, alignItems: 'center', justifyContent: 'center' },
|
|
595
|
+
selectedImg > 0 ?
|
|
596
|
+
React.createElement(FArrowIcon, { direction: 'left', handleClick: () => setSelectedImg(selectedImg - 1) })
|
|
597
|
+
:
|
|
598
|
+
React.createElement("div", { style: { width: '35px', height: '35px' } }, "\u3164"),
|
|
599
|
+
React.createElement("img", { className: 'open-full-img', src: imagesUrl[selectedImg], style: {
|
|
600
|
+
objectFit: 'contain',
|
|
601
|
+
width: '100%',
|
|
602
|
+
maxHeight: '80%',
|
|
603
|
+
} }),
|
|
604
|
+
selectedImg < imagesUrl.length - 1 ?
|
|
605
|
+
React.createElement(FArrowIcon, { direction: 'right', handleClick: () => setSelectedImg(selectedImg + 1) })
|
|
606
|
+
:
|
|
607
|
+
React.createElement("div", { style: { width: '35px', height: '35px' } }, "\u3164")))))));
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
const FAccordion = ({ variant = 'info', title, children, id, className, st, defaultOpen }) => {
|
|
611
|
+
return (React.createElement(React.Fragment, null,
|
|
612
|
+
React.createElement("div", { className: `card ${className !== undefined ? className : ''}`, id: id },
|
|
613
|
+
React.createElement("details", { className: `${variant}`, open: defaultOpen, style: st },
|
|
614
|
+
React.createElement("summary", { className: 'fv-accord-title' }, title),
|
|
615
|
+
children))));
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
const FInputFileForm = ({ id, className, st, dataMaxSize, name, accept, multiple = false, onChange, disabled = false, deleteFile, title }) => {
|
|
619
|
+
let disabledColor = {
|
|
620
|
+
customFileLabel: undefined,
|
|
621
|
+
svgIcon: undefined,
|
|
622
|
+
span: undefined,
|
|
623
|
+
b: undefined,
|
|
624
|
+
};
|
|
625
|
+
if (disabled) {
|
|
626
|
+
disabledColor = {
|
|
627
|
+
customFileLabel: {
|
|
628
|
+
backgroundColor: '#F3F3F3',
|
|
629
|
+
borderRadius: '8px',
|
|
630
|
+
border: '1px dashed #C4C4C4'
|
|
631
|
+
},
|
|
632
|
+
svgIcon: {
|
|
633
|
+
color: '#888888'
|
|
634
|
+
},
|
|
635
|
+
span: {
|
|
636
|
+
color: '#C4C4C4'
|
|
637
|
+
},
|
|
638
|
+
b: {
|
|
639
|
+
color: '#888888'
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
const inputRef = React.useRef({
|
|
644
|
+
value: undefined
|
|
645
|
+
});
|
|
646
|
+
React.useEffect(() => {
|
|
647
|
+
if (deleteFile) {
|
|
648
|
+
inputRef.current.value = null;
|
|
649
|
+
}
|
|
650
|
+
}, [deleteFile]);
|
|
651
|
+
return (React.createElement(React.Fragment, null,
|
|
652
|
+
React.createElement("div", { className: "custom-file custom-file-dropzone", style: st },
|
|
653
|
+
React.createElement("input", { accept: accept, type: "file", className: `custom-file-input ${className !== undefined ? className : ''}`, name: name, id: id, title: title, "data-max-size": dataMaxSize === null || dataMaxSize === void 0 ? void 0 : dataMaxSize.size, multiple: multiple, onChange: (e) => {
|
|
654
|
+
if (e.target.files && e.target.files[0]) {
|
|
655
|
+
let maximumSize = undefined;
|
|
656
|
+
if ((dataMaxSize === null || dataMaxSize === void 0 ? void 0 : dataMaxSize.dimension) === 'МБ') {
|
|
657
|
+
maximumSize = dataMaxSize.size * 1024 * 1024; // Перевод из мегабайт в байты
|
|
658
|
+
}
|
|
659
|
+
else if ((dataMaxSize === null || dataMaxSize === void 0 ? void 0 : dataMaxSize.dimension) === 'КБ')
|
|
660
|
+
(maximumSize = dataMaxSize.size * 1024 // Перевод из килобайт в байты
|
|
661
|
+
);
|
|
662
|
+
if (maximumSize !== undefined) {
|
|
663
|
+
const dt = new DataTransfer();
|
|
664
|
+
Object.values(e.target.files).forEach((file) => {
|
|
665
|
+
//@ts-ignore
|
|
666
|
+
if (file.size <= maximumSize)
|
|
667
|
+
dt.items.add(file);
|
|
668
|
+
});
|
|
669
|
+
onChange(dt.files);
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
onChange(e.target.files);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}, disabled: disabled,
|
|
676
|
+
//@ts-ignore
|
|
677
|
+
ref: inputRef }),
|
|
678
|
+
React.createElement("label", { className: "custom-file-label", style: disabledColor.customFileLabel },
|
|
679
|
+
React.createElement("svg", { className: "svg-icon icon-md", focusable: "false", role: "img", viewBox: "0 0 36 35", style: disabledColor.svgIcon },
|
|
680
|
+
React.createElement("path", { d: "M19.035 16.465a1.458 1.458 0 0 0-2.041 0l-4.376 4.229a1.459 1.459 0 1 0 2.013 2.1l1.91-1.852v8.225a1.458 1.458 0 1 0 2.917 0v-8.152l1.881 1.895a1.459 1.459 0 0 0 2.071 0 1.457 1.457 0 0 0 0-2.07l-4.375-4.375z" }),
|
|
681
|
+
React.createElement("path", { d: "M26.269 10.208a8.75 8.75 0 0 0-16.538 0 7.292 7.292 0 0 0-4.491 12.06 1.457 1.457 0 1 0 2.187-1.851 4.375 4.375 0 0 1 3.282-7.292h.145a1.458 1.458 0 0 0 1.459-1.167 5.833 5.833 0 0 1 11.433 0 1.458 1.458 0 0 0 1.458 1.167h.088a4.376 4.376 0 0 1 3.281 7.292 1.457 1.457 0 0 0 .131 2.07 1.458 1.458 0 0 0 1.563.235c.189-.085.357-.21.494-.366a7.292 7.292 0 0 0-4.492-12.148z" })),
|
|
682
|
+
React.createElement("br", null),
|
|
683
|
+
React.createElement("span", { style: disabledColor.span },
|
|
684
|
+
React.createElement("b", { style: disabledColor.b }, "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435"),
|
|
685
|
+
" \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u0435 \u0444\u0430\u0439\u043B \u0434\u043B\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438",
|
|
686
|
+
React.createElement("br", null),
|
|
687
|
+
" ",
|
|
688
|
+
React.createElement("small", null,
|
|
689
|
+
"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0430\u0437\u043C\u0435\u0440 ", dataMaxSize === null || dataMaxSize === void 0 ? void 0 :
|
|
690
|
+
dataMaxSize.size,
|
|
691
|
+
" ", dataMaxSize === null || dataMaxSize === void 0 ? void 0 :
|
|
692
|
+
dataMaxSize.dimension))))));
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
const FFile = ({ id, className, st, handleDelete, name }) => {
|
|
696
|
+
return (React.createElement(React.Fragment, null,
|
|
697
|
+
React.createElement(FStack, { direction: 'row', spacing: 1, className: className, id: id, st: st },
|
|
698
|
+
React.createElement("svg", { className: "svg-icon text-primary", focusable: "false", role: "img", viewBox: "0 0 24 24" },
|
|
699
|
+
React.createElement("path", { d: "M15 16H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2zm-6-2h3a1 1 0 0 0 0-2H9a1 1 0 0 0 0 2z" }),
|
|
700
|
+
React.createElement("path", { d: "M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85V5zm3.44 15H6.56a.532.532 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z" })),
|
|
701
|
+
React.createElement(FStack, { direction: 'row', justifyContent: 'space-between', st: { width: '100%' } },
|
|
702
|
+
React.createElement("span", null, name),
|
|
703
|
+
React.createElement(FCloseIcon, { handleClose: handleDelete, st: {
|
|
704
|
+
width: '10px',
|
|
705
|
+
height: '10px',
|
|
706
|
+
marginTop: '7px',
|
|
707
|
+
marginRight: '15px',
|
|
708
|
+
marginLeft: '8px'
|
|
709
|
+
} })))));
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
const FSelect = ({ label, st, onChange, children, value, multiple, size, fullWidth, disabled, defaultValue, id, className, load = false, errText, helpText, }) => {
|
|
713
|
+
return (React.createElement(React.Fragment, null,
|
|
714
|
+
React.createElement("div", { className: `form-group ${className !== undefined ? className : ''}`, style: {
|
|
715
|
+
width: fullWidth ? '100%' : 'fit-content',
|
|
716
|
+
whiteSpace: 'nowrap',
|
|
717
|
+
overflow: 'hidden',
|
|
718
|
+
textOverflow: 'ellipsis'
|
|
719
|
+
}, id: id },
|
|
720
|
+
React.createElement("label", { className: "control-label with-offset", style: {
|
|
721
|
+
whiteSpace: 'nowrap',
|
|
722
|
+
overflow: 'hidden',
|
|
723
|
+
textOverflow: 'ellipsis'
|
|
724
|
+
} }, label),
|
|
725
|
+
React.createElement("div", { className: `${load ? 'ui left icon input loading' : ''}` },
|
|
726
|
+
React.createElement("select", { disabled: disabled || load, style: Object.assign({}, st, { borderColor: errText !== undefined && errText.length > 0 ? 'red' : '#C4C4C4' }), className: "form-control", onChange: onChange, value: load ? undefined : value, multiple: multiple, size: size, defaultValue: defaultValue }, !load &&
|
|
727
|
+
children),
|
|
728
|
+
helpText !== undefined &&
|
|
729
|
+
React.createElement("span", { style: {
|
|
730
|
+
whiteSpace: 'initial',
|
|
731
|
+
color: '#a6a3a3',
|
|
732
|
+
fontSize: '12px'
|
|
733
|
+
} }, helpText),
|
|
734
|
+
errText !== undefined && errText.length > 0 &&
|
|
735
|
+
React.createElement(FStack, { direction: 'column', st: { paddingLeft: '11px' } }, errText === null || errText === void 0 ? void 0 : errText.map((opt, index) => {
|
|
736
|
+
return (React.createElement("span", { key: index, style: {
|
|
737
|
+
whiteSpace: 'initial',
|
|
738
|
+
color: 'red'
|
|
739
|
+
} }, opt));
|
|
740
|
+
})),
|
|
741
|
+
load &&
|
|
742
|
+
React.createElement("div", { className: 'input-load' },
|
|
743
|
+
React.createElement(FLoadIcon, { size: 10 }))))));
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
const FSelectItem = ({ st, value, children, onClick, disabled, className, id }) => {
|
|
747
|
+
return (React.createElement(React.Fragment, null,
|
|
748
|
+
React.createElement("option", { selected: true, disabled: disabled, onClick: onClick, style: st, value: value, className: className, id: id }, children)));
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
const FFullDateField = ({ label, st, value, onChange, fullWidth, defaultValue, disabled, readOnly, onkeydown, min, max, load = false, errText, helpText, onBlur, onFocus }) => {
|
|
752
|
+
let style = {
|
|
753
|
+
whiteSpace: 'nowrap',
|
|
754
|
+
overflow: 'hidden',
|
|
755
|
+
textOverflow: 'ellipsis',
|
|
756
|
+
width: fullWidth ? '100%' : 'fit-content'
|
|
757
|
+
};
|
|
758
|
+
st = Object.assign({}, st, style);
|
|
759
|
+
if (typeof value === 'number') {
|
|
760
|
+
value = new Date(value).toISOString().split('T')[0];
|
|
761
|
+
}
|
|
762
|
+
else if (value === undefined || value === null) {
|
|
763
|
+
value = '';
|
|
764
|
+
}
|
|
765
|
+
return (React.createElement(React.Fragment, null,
|
|
766
|
+
React.createElement("div", { className: `form - group ${load ? 'ui left icon input loading' : ''}`, style: st },
|
|
767
|
+
label &&
|
|
768
|
+
React.createElement("label", { className: "control-label", style: {
|
|
769
|
+
whiteSpace: 'nowrap',
|
|
770
|
+
overflow: 'hidden',
|
|
771
|
+
textOverflow: 'ellipsis'
|
|
772
|
+
} }, label),
|
|
773
|
+
React.createElement("input", { min: min, max: max, onKeyDown: onkeydown, readOnly: readOnly, onBlur: onBlur, onFocus: onFocus, disabled: disabled || load, required: true, style: {
|
|
774
|
+
borderColor: errText !== undefined && errText.length > 0 ? 'red' : '#C4C4C4'
|
|
775
|
+
}, defaultValue: defaultValue, value: load ? '' : value,
|
|
776
|
+
//@ts-ignore
|
|
777
|
+
onChange: onChange, type: 'date', className: "form-control" }),
|
|
778
|
+
helpText !== undefined &&
|
|
779
|
+
React.createElement("span", { style: {
|
|
780
|
+
whiteSpace: 'initial',
|
|
781
|
+
color: '#a6a3a3',
|
|
782
|
+
fontSize: '12px'
|
|
783
|
+
} }, helpText),
|
|
784
|
+
errText !== undefined && errText.length > 0 &&
|
|
785
|
+
React.createElement(FStack, { direction: 'column', st: { paddingLeft: '11px' } }, errText === null || errText === void 0 ? void 0 : errText.map((opt, index) => {
|
|
786
|
+
return (React.createElement("span", { key: index, style: {
|
|
787
|
+
whiteSpace: 'initial',
|
|
788
|
+
color: 'red'
|
|
789
|
+
} }, opt));
|
|
790
|
+
})),
|
|
791
|
+
load &&
|
|
792
|
+
React.createElement("div", { className: 'input-load' },
|
|
793
|
+
React.createElement(FLoadIcon, { size: 10 })))));
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
const FSelectSearchDb = ({ fetchingFunc, selectedElement, selectItem, st, id, className, disabled, readOnly, fullWidth, label, onBlur, onFocus, errText, helpText, minLengthText }) => {
|
|
797
|
+
const [valueInput, setValueInput] = React.useState('');
|
|
798
|
+
const [arrObject, setArrObject] = React.useState([]);
|
|
799
|
+
const timerDebounceRef = React.useRef();
|
|
800
|
+
const [load, setLoad] = React.useState(false);
|
|
801
|
+
const handlerOnChange = (e) => {
|
|
802
|
+
const text = e.target.value;
|
|
803
|
+
setValueInput(text);
|
|
804
|
+
if (timerDebounceRef.current) {
|
|
805
|
+
clearTimeout(timerDebounceRef.current);
|
|
806
|
+
}
|
|
807
|
+
if (text !== '') {
|
|
808
|
+
if (minLengthText !== undefined && text.length === minLengthText) {
|
|
809
|
+
timerDebounceRef.current = setTimeout(() => {
|
|
810
|
+
setLoad(true);
|
|
811
|
+
fetchingFunc(e.target.value).then(r => {
|
|
812
|
+
setArrObject(r);
|
|
813
|
+
setLoad(false);
|
|
814
|
+
});
|
|
815
|
+
}, 1000);
|
|
816
|
+
}
|
|
817
|
+
else {
|
|
818
|
+
timerDebounceRef.current = setTimeout(() => {
|
|
819
|
+
setLoad(true);
|
|
820
|
+
fetchingFunc(e.target.value).then(r => {
|
|
821
|
+
setArrObject(r);
|
|
822
|
+
setLoad(false);
|
|
823
|
+
});
|
|
824
|
+
}, 1000);
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
setArrObject([]);
|
|
829
|
+
setLoad(false);
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
let style = {
|
|
833
|
+
whiteSpace: 'nowrap',
|
|
834
|
+
textOverflow: 'ellipsis',
|
|
835
|
+
width: 'fit-content'
|
|
836
|
+
};
|
|
837
|
+
st = Object.assign({}, st, style);
|
|
838
|
+
if (fullWidth) {
|
|
839
|
+
st.width = '100%';
|
|
840
|
+
}
|
|
841
|
+
return (React.createElement(React.Fragment, null,
|
|
842
|
+
React.createElement("div", { className: `select-search-db ${className !== undefined ? className : ''} ${load ? 'ui left icon input loading' : ''}`, style: st, id: id },
|
|
843
|
+
label &&
|
|
844
|
+
React.createElement("label", { className: "control-label with-offset", style: {
|
|
845
|
+
whiteSpace: 'nowrap',
|
|
846
|
+
textOverflow: 'ellipsis'
|
|
847
|
+
} }, label),
|
|
848
|
+
React.createElement("div", { className: 'select-search-db-input-block' },
|
|
849
|
+
React.createElement("input", { readOnly: readOnly, disabled: disabled || load, required: true, style: {
|
|
850
|
+
borderColor: errText !== undefined && errText.length > 0 ? 'red' : '#C4C4C4'
|
|
851
|
+
}, type: 'text', className: "form-control select-search-db-input", value: valueInput, onChange: handlerOnChange, onFocus: onFocus, onBlur: onBlur }),
|
|
852
|
+
(!load && !disabled) &&
|
|
853
|
+
React.createElement("div", { className: 'select-search-db-input-arrow' },
|
|
854
|
+
React.createElement(FArrowIcon, { direction: 'down', size: 15 })),
|
|
855
|
+
load &&
|
|
856
|
+
React.createElement("div", { className: 'select-search-db-input-load' },
|
|
857
|
+
React.createElement(FLoadIcon, { size: 10 }))),
|
|
858
|
+
(!load && arrObject !== undefined && arrObject.length > 0) &&
|
|
859
|
+
React.createElement("div", { className: 'select-search-db-dropdown' },
|
|
860
|
+
React.createElement(FStack, { direction: 'column', st: { paddingLeft: '11px' } }, arrObject.slice(0, 10).map((opt, index) => (React.createElement("li", { key: index, onClick: (e) => {
|
|
861
|
+
selectedElement(opt);
|
|
862
|
+
//@ts-ignore
|
|
863
|
+
setValueInput(e.target.textContent);
|
|
864
|
+
} }, selectItem(opt)))))),
|
|
865
|
+
helpText !== undefined &&
|
|
866
|
+
React.createElement("span", { style: {
|
|
867
|
+
whiteSpace: 'initial',
|
|
868
|
+
color: '#a6a3a3',
|
|
869
|
+
fontSize: '12px'
|
|
870
|
+
} }, helpText),
|
|
871
|
+
errText !== undefined && errText.length > 0 &&
|
|
872
|
+
React.createElement(FStack, { direction: 'column', st: { paddingLeft: '11px' } }, errText === null || errText === void 0 ? void 0 : errText.map((opt, index) => {
|
|
873
|
+
return (React.createElement("span", { key: index, style: {
|
|
874
|
+
whiteSpace: 'initial',
|
|
875
|
+
color: 'red'
|
|
876
|
+
} }, opt));
|
|
877
|
+
})))));
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
const FTextArea = ({ label, st, value, cols, rows, placeholder, readOnly, disabled, autoComplete, className, id, fullWidth, onChange, onClick, onFocus, errText, helpText, load, }) => {
|
|
881
|
+
return (React.createElement(React.Fragment, null,
|
|
882
|
+
React.createElement("div", { style: {
|
|
883
|
+
width: fullWidth ? '100%' : 'fit-content'
|
|
884
|
+
}, className: `control-group ${className !== undefined ? className : ''}`, id: id },
|
|
885
|
+
React.createElement("div", { className: `${load ? 'ui left icon input loading' : ''} form-group`, style: st },
|
|
886
|
+
label &&
|
|
887
|
+
React.createElement("label", { className: "control-label with-offset required" }, label),
|
|
888
|
+
React.createElement("textarea", { onClick: onClick, onFocus: onFocus, cols: cols, rows: rows, style: {
|
|
889
|
+
borderColor: errText !== undefined && errText.length > 0 ? 'red' : '#C4C4C4'
|
|
890
|
+
}, disabled: disabled || load, readOnly: readOnly,
|
|
891
|
+
//@ts-ignore
|
|
892
|
+
autoComplete: autoComplete, required: true, value: load ? undefined : value, placeholder: placeholder, className: "form-control", onChange: onChange }),
|
|
893
|
+
helpText !== undefined &&
|
|
894
|
+
React.createElement("span", { style: {
|
|
895
|
+
whiteSpace: 'initial',
|
|
896
|
+
color: '#a6a3a3',
|
|
897
|
+
fontSize: '12px'
|
|
898
|
+
} }, helpText),
|
|
899
|
+
errText !== undefined && errText.length > 0 &&
|
|
900
|
+
React.createElement(FStack, { direction: 'column', st: { paddingLeft: '11px' } }, errText === null || errText === void 0 ? void 0 : errText.map((opt, index) => {
|
|
901
|
+
return (React.createElement("span", { key: index, style: {
|
|
902
|
+
whiteSpace: 'initial',
|
|
903
|
+
color: 'red'
|
|
904
|
+
} }, opt));
|
|
905
|
+
})),
|
|
906
|
+
load &&
|
|
907
|
+
React.createElement("div", { className: 'input-load' },
|
|
908
|
+
React.createElement(FLoadIcon, { size: 10 }))))));
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
const FAlert = ({ title, body, variant = 'info', displayTime, open, onClose, vertical = 'center', horizontal = 'center', buttonClose = false, size }) => {
|
|
912
|
+
const visible = React.useRef();
|
|
913
|
+
const hidden = React.useRef();
|
|
914
|
+
const close = React.useRef();
|
|
915
|
+
const randomId = React.useRef((Math.random() + 1).toString(36).substring(2));
|
|
916
|
+
let newTime = displayTime;
|
|
917
|
+
React.useEffect(() => {
|
|
918
|
+
const progress = document.getElementById(`f-alert-progress-value-${randomId.current}`);
|
|
919
|
+
visible.current = setTimeout(() => {
|
|
920
|
+
if (open) {
|
|
921
|
+
const el = document.querySelector(`#f-block-alert-${randomId.current}`);
|
|
922
|
+
el.classList.add('f-alert-visible');
|
|
923
|
+
if (progress !== null) {
|
|
924
|
+
progress.style.width = '0';
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
});
|
|
928
|
+
if (newTime !== undefined && open && onClose !== undefined) {
|
|
929
|
+
if (newTime < 1)
|
|
930
|
+
newTime = 1;
|
|
931
|
+
const el = document.querySelector(`#f-block-alert-${randomId.current}`);
|
|
932
|
+
progress.style.transition = `${newTime}s linear`;
|
|
933
|
+
hidden.current = setTimeout(() => {
|
|
934
|
+
el.classList.remove('f-alert-visible');
|
|
935
|
+
el.classList.add('f-alert-hidden');
|
|
936
|
+
}, (newTime - 1) * 1000);
|
|
937
|
+
close.current = setTimeout(() => {
|
|
938
|
+
onClose(false);
|
|
939
|
+
el.classList.remove('f-alert-hidden');
|
|
940
|
+
el.classList.remove('f-alert-visible');
|
|
941
|
+
}, newTime * 1000);
|
|
942
|
+
}
|
|
943
|
+
}, [open]);
|
|
944
|
+
const handlerIco = () => {
|
|
945
|
+
let ico = React.createElement(React.Fragment, null,
|
|
946
|
+
React.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }),
|
|
947
|
+
React.createElement("path", { d: "m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" }));
|
|
948
|
+
switch (variant) {
|
|
949
|
+
case 'info':
|
|
950
|
+
ico = React.createElement(React.Fragment, null,
|
|
951
|
+
React.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }),
|
|
952
|
+
React.createElement("path", { d: "m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" }));
|
|
953
|
+
break;
|
|
954
|
+
case "success":
|
|
955
|
+
ico = React.createElement(React.Fragment, null,
|
|
956
|
+
React.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }),
|
|
957
|
+
React.createElement("path", { d: "M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.235.235 0 0 1 .02-.022z" }));
|
|
958
|
+
break;
|
|
959
|
+
case 'error':
|
|
960
|
+
ico = React.createElement(React.Fragment, null,
|
|
961
|
+
React.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }),
|
|
962
|
+
React.createElement("path", { d: "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" }));
|
|
963
|
+
break;
|
|
964
|
+
case 'warning':
|
|
965
|
+
ico = React.createElement(React.Fragment, null,
|
|
966
|
+
React.createElement("path", { d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }),
|
|
967
|
+
React.createElement("path", { d: "M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z" }));
|
|
968
|
+
break;
|
|
969
|
+
}
|
|
970
|
+
return ico;
|
|
971
|
+
};
|
|
972
|
+
const handlerPosition = () => {
|
|
973
|
+
const styleVertical = {};
|
|
974
|
+
const styleHorizontal = {};
|
|
975
|
+
switch (vertical) {
|
|
976
|
+
case 'top':
|
|
977
|
+
styleVertical.top = 0;
|
|
978
|
+
break;
|
|
979
|
+
case 'bottom':
|
|
980
|
+
styleVertical.bottom = 0;
|
|
981
|
+
break;
|
|
982
|
+
case 'center':
|
|
983
|
+
if (vertical === 'center' && horizontal !== 'center') {
|
|
984
|
+
styleVertical.transform = 'translateY(-50%)';
|
|
985
|
+
}
|
|
986
|
+
styleVertical.top = '50%';
|
|
987
|
+
break;
|
|
988
|
+
}
|
|
989
|
+
switch (horizontal) {
|
|
990
|
+
case 'left':
|
|
991
|
+
styleHorizontal.left = 0;
|
|
992
|
+
break;
|
|
993
|
+
case 'right':
|
|
994
|
+
styleHorizontal.right = 0;
|
|
995
|
+
break;
|
|
996
|
+
case 'center':
|
|
997
|
+
if (vertical === 'center' && horizontal === 'center') {
|
|
998
|
+
styleHorizontal.transform = 'translate(-50%, -50%)';
|
|
999
|
+
}
|
|
1000
|
+
else {
|
|
1001
|
+
styleHorizontal.transform = 'translateX(-50%)';
|
|
1002
|
+
}
|
|
1003
|
+
styleHorizontal.left = '50%';
|
|
1004
|
+
break;
|
|
1005
|
+
}
|
|
1006
|
+
return Object.assign({}, styleHorizontal, styleVertical);
|
|
1007
|
+
};
|
|
1008
|
+
return (React.createElement(React.Fragment, null, open &&
|
|
1009
|
+
React.createElement("div", { className: 'f-block-alert', id: `f-block-alert-${randomId.current}` },
|
|
1010
|
+
React.createElement("div", { className: "f-alert-component", style: handlerPosition() },
|
|
1011
|
+
React.createElement("div", { className: 'f-alert' },
|
|
1012
|
+
React.createElement("div", { className: `f-alert-ico ${variant}` },
|
|
1013
|
+
React.createElement("svg", { width: "28", height: "28", viewBox: "0 0 16 16" }, handlerIco())),
|
|
1014
|
+
React.createElement("div", { className: 'f-alert-inside', style: { width: size !== undefined ? `${size}` : "fit-content" } },
|
|
1015
|
+
React.createElement("div", { className: 'f-alert-header' },
|
|
1016
|
+
React.createElement("h4", null, title !== undefined ? title : ''),
|
|
1017
|
+
(buttonClose && onClose) &&
|
|
1018
|
+
React.createElement(FCloseIcon, { size: 25, st: {
|
|
1019
|
+
cursor: 'pointer'
|
|
1020
|
+
}, handleClose: () => {
|
|
1021
|
+
const el = document.querySelector(`#f-block-alert-${randomId.current}`);
|
|
1022
|
+
el.classList.remove('f-alert-visible');
|
|
1023
|
+
el.classList.add('f-alert-hidden');
|
|
1024
|
+
onClose(false);
|
|
1025
|
+
el.classList.remove('f-alert-visible');
|
|
1026
|
+
el.classList.remove('f-alert-hidden');
|
|
1027
|
+
clearTimeout(visible.current);
|
|
1028
|
+
clearTimeout(hidden.current);
|
|
1029
|
+
clearTimeout(close.current);
|
|
1030
|
+
} })),
|
|
1031
|
+
React.createElement("div", { className: 'f-alert-body' },
|
|
1032
|
+
React.createElement("span", null, body))),
|
|
1033
|
+
newTime &&
|
|
1034
|
+
React.createElement("div", { className: 'f-alert-progress' },
|
|
1035
|
+
React.createElement("div", { className: "f-alert-progress-bar" },
|
|
1036
|
+
React.createElement("div", { className: `f-alert-progress-value ${variant}`, id: `f-alert-progress-value-${randomId.current}` }))))))));
|
|
1037
|
+
};
|
|
1038
|
+
|
|
1039
|
+
const FNative = ({ label, id, className, st, children, value, singleChoice, multipleChoice, disabled, size = 4, overflowX, width = '-webkit-fill-available', fullWidth }) => {
|
|
1040
|
+
const handleSingleChoice = (event) => {
|
|
1041
|
+
if (singleChoice) {
|
|
1042
|
+
let a = [];
|
|
1043
|
+
a.push(event.target.value);
|
|
1044
|
+
singleChoice(a);
|
|
1045
|
+
}
|
|
1046
|
+
};
|
|
1047
|
+
const handlerMultipleChoice = (event) => {
|
|
1048
|
+
const { options } = event.target;
|
|
1049
|
+
const value = [];
|
|
1050
|
+
for (let i = 0, l = options.length; i < l; i += 1) {
|
|
1051
|
+
if (options[i].selected) {
|
|
1052
|
+
value.push(options[i].value);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
if (multipleChoice) {
|
|
1056
|
+
multipleChoice(value);
|
|
1057
|
+
}
|
|
1058
|
+
};
|
|
1059
|
+
if (fullWidth) {
|
|
1060
|
+
if (st === undefined) {
|
|
1061
|
+
st = {
|
|
1062
|
+
width: '100%'
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
else {
|
|
1066
|
+
st.width = '100%';
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
return (React.createElement(React.Fragment, null,
|
|
1070
|
+
React.createElement("div", { className: `f-form-native ${className !== undefined ? className : ''}`, style: st, id: id },
|
|
1071
|
+
React.createElement("label", { className: 'f-native-label' }, label),
|
|
1072
|
+
React.createElement("select", { style: {
|
|
1073
|
+
overflowX: overflowX ? 'auto' : 'hidden',
|
|
1074
|
+
width: width
|
|
1075
|
+
}, size: size, disabled: disabled,
|
|
1076
|
+
//@ts-ignore
|
|
1077
|
+
value: value, multiple: true, className: 'f-native', onChange: (event) => {
|
|
1078
|
+
if (singleChoice) {
|
|
1079
|
+
handleSingleChoice(event);
|
|
1080
|
+
}
|
|
1081
|
+
else if (multipleChoice) {
|
|
1082
|
+
handlerMultipleChoice(event);
|
|
1083
|
+
}
|
|
1084
|
+
} }, children))));
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
const FTabs = ({ children, id, className, st }) => {
|
|
1088
|
+
return (React.createElement(React.Fragment, null,
|
|
1089
|
+
React.createElement("div", { className: `f-tabs ${className !== undefined ? className : ''}`, id: id, style: st }, children)));
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
const FTab = ({ children, id, className, st, onClick, disabled, active }) => {
|
|
1093
|
+
return (React.createElement(React.Fragment, null,
|
|
1094
|
+
React.createElement("button", { className: `f-tabs-btn ${active ? 'active' : ''} ${className !== undefined ? className : ''}`, disabled: disabled, onClick: onClick, id: id, style: st }, children)));
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIAEAQAAAAO4cAyAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAAAqo0jMgAAAAlwSFlzAAAAYAAAAGAA8GtCzwAAQPRJREFUeNrt3XfAFNXVBvDnDAIRjGAiYIyAXdRobNFoovTeJCJNEQuoYG9YozGxd4ldgiCISrXQpL0gWGKMYomCHWw06R3e+3x/TPhiobxld8/OzvP7T4G9Z+7M7Dk75VxARERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERKR8GGrVIitU8I5DpDTIChUYatXyjkNEJJEY6tZl+PRTcuBAMoq84xEpCdKM4bHHyLlzyX328Y5HRCRRyL32Ij//nP9vwAAVAZLvSDPy4Yf/d9zOm8ew337ecYmIJAJ5wAHkV1/x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GRBCErVCCHDClz7g/DhjHssIP3doiIiEgpxUXA00+XPvuPGKHkLyIikmAMFSuSo0eXPPmPGsVQsaJ33CIiIlJODJUqkc8/v/3kP348Q+XK3vGKiIhIhsRFwIsvbj35v/QS+bOfeccpIiIiGcZQuTLDuHE/feBv0iQlfxERkQJGVqlCTp36v+w/YwZZtap3XCIiIpJlZJUqDEVF5MyZDDvt5B2PiIiI5AjDz3+u5C8iIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiktf+D48X9l4bZ9x3AAAAAElFTkSuQmCC";
|
|
1098
|
+
|
|
1099
|
+
const FDropdown = ({ label, variant = 'contained', color = 'primary', size = 'btn-sm', disabled, st, className, id, children }) => {
|
|
1100
|
+
return (React.createElement(React.Fragment, null,
|
|
1101
|
+
React.createElement("div", { className: 'f-dropdown' },
|
|
1102
|
+
React.createElement(FButton, { variant: variant, color: color, size: size, disabled: disabled, st: st, className: `f-dropdown-bottom ${className !== undefined ? className : ''}`, id: id, onClick: () => {
|
|
1103
|
+
document.getElementsByClassName('#heading');
|
|
1104
|
+
} },
|
|
1105
|
+
React.createElement(FStack, { direction: 'row', spacing: 1, justifyContent: "center", alignItems: 'center' },
|
|
1106
|
+
label,
|
|
1107
|
+
React.createElement("img", { className: 'f-dropdown-down-arrow', src: img }))),
|
|
1108
|
+
React.createElement("div", { className: "f-dropdown-content" }, children))));
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
const FDropdownItem = ({ disabled, st, className, id, children, onClick }) => {
|
|
1112
|
+
return (React.createElement(React.Fragment, null,
|
|
1113
|
+
React.createElement("li", { className: `f-dropdown-link ${className !== undefined ? className : ''} ${disabled ? 'disabled' : ''}`, id: id, style: st, onClick: onClick }, children)));
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
const FSearchBox = ({ label, value, onChange, type, onBlur, onFocus, fullWidth, disabled, readOnly, defaultValue, errText, helpText, onInput, st, id, className, load = false, min, max, placeholder, children, onClick, color, variant }) => {
|
|
1117
|
+
let style = {
|
|
1118
|
+
whiteSpace: 'nowrap',
|
|
1119
|
+
overflow: 'hidden',
|
|
1120
|
+
textOverflow: 'ellipsis',
|
|
1121
|
+
};
|
|
1122
|
+
st = Object.assign({}, st, style);
|
|
1123
|
+
if (fullWidth) {
|
|
1124
|
+
if (st === undefined) {
|
|
1125
|
+
st = {
|
|
1126
|
+
width: '100%'
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
else {
|
|
1130
|
+
st.width = '100%';
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
else {
|
|
1134
|
+
if (st === undefined) {
|
|
1135
|
+
st = {
|
|
1136
|
+
width: 'fit-content'
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
st.width = 'fit-content';
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
return (React.createElement(React.Fragment, null,
|
|
1144
|
+
React.createElement("div", { className: `f-search-box
|
|
1145
|
+
form-group`, style: st },
|
|
1146
|
+
label &&
|
|
1147
|
+
React.createElement("label", { className: "control-label with-offset", style: {
|
|
1148
|
+
whiteSpace: 'nowrap',
|
|
1149
|
+
overflow: 'hidden',
|
|
1150
|
+
textOverflow: 'ellipsis'
|
|
1151
|
+
} }, label),
|
|
1152
|
+
React.createElement("div", { className: 'f-search-box-box' },
|
|
1153
|
+
React.createElement("div", { className: `${load ? 'ui left icon input loading' : ''}`, style: { width: '100%' } },
|
|
1154
|
+
React.createElement("input", { id: id, placeholder: placeholder, style: {
|
|
1155
|
+
borderColor: errText !== undefined && errText.length > 0 ? 'red' : '#C4C4C4'
|
|
1156
|
+
}, min: min, max: max, disabled: disabled, defaultValue: defaultValue, required: true, onInput: onInput, readOnly: readOnly || load, value: value,
|
|
1157
|
+
//@ts-ignore
|
|
1158
|
+
onChange: onChange, type: type === undefined ? 'text' : type, className: `form-control f-search-box-inp ${className !== undefined ? className : ''}`, onBlur: onBlur, onFocus: onFocus }),
|
|
1159
|
+
helpText !== undefined &&
|
|
1160
|
+
React.createElement("span", { style: {
|
|
1161
|
+
whiteSpace: 'initial',
|
|
1162
|
+
color: '#a6a3a3',
|
|
1163
|
+
fontSize: '12px'
|
|
1164
|
+
} }, helpText),
|
|
1165
|
+
errText !== undefined && errText.length > 0 &&
|
|
1166
|
+
React.createElement(FStack, { direction: 'column', st: { paddingLeft: '11px' } }, errText === null || errText === void 0 ? void 0 : errText.map((opt, index) => {
|
|
1167
|
+
return (React.createElement("span", { key: index, style: {
|
|
1168
|
+
whiteSpace: 'initial',
|
|
1169
|
+
color: 'red'
|
|
1170
|
+
} }, opt));
|
|
1171
|
+
})),
|
|
1172
|
+
load &&
|
|
1173
|
+
React.createElement("div", { className: 'input-load' },
|
|
1174
|
+
React.createElement(FLoadIcon, { size: 10 }))),
|
|
1175
|
+
React.createElement(FButton, { st: {
|
|
1176
|
+
borderTopLeftRadius: '0',
|
|
1177
|
+
borderBottomLeftRadius: '0',
|
|
1178
|
+
height: '34px',
|
|
1179
|
+
whiteSpace: 'nowrap',
|
|
1180
|
+
textAlign: 'center',
|
|
1181
|
+
}, disabled: disabled, onClick: onClick, color: color, variant: variant }, children)))));
|
|
1182
|
+
};
|
|
1183
|
+
|
|
1184
|
+
const fAlert = ({ title, body, variant = 'info' }) => {
|
|
1185
|
+
let ico = '';
|
|
1186
|
+
switch (variant) {
|
|
1187
|
+
case 'info':
|
|
1188
|
+
ico = '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>';
|
|
1189
|
+
break;
|
|
1190
|
+
case "success":
|
|
1191
|
+
ico = '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/><path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.235.235 0 0 1 .02-.022z"/>';
|
|
1192
|
+
break;
|
|
1193
|
+
case 'error':
|
|
1194
|
+
ico = '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>';
|
|
1195
|
+
break;
|
|
1196
|
+
case 'warning':
|
|
1197
|
+
ico = '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/><path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z"/>';
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
window.document.body.insertAdjacentHTML('afterbegin', `
|
|
1201
|
+
<div class='f-function-block-alert' id='f-function-block-alert'>
|
|
1202
|
+
<div class='f-function-alert'>
|
|
1203
|
+
<div class='f-function-alert-ico ${variant}-alert'>
|
|
1204
|
+
<svg width="28" height="28" viewBox="0 0 16 16">
|
|
1205
|
+
${ico}
|
|
1206
|
+
</svg>
|
|
1207
|
+
</div>
|
|
1208
|
+
<div class='f-function-alert-inside'>
|
|
1209
|
+
<div class='f-function-alert-header'>
|
|
1210
|
+
<h4>${title !== undefined ? title : ''}</h4>
|
|
1211
|
+
</div>
|
|
1212
|
+
<div class='f-function-alert-body'>
|
|
1213
|
+
<span>${body}</span>
|
|
1214
|
+
</div>
|
|
1215
|
+
<div class='f-function-alert-footer'>
|
|
1216
|
+
<button
|
|
1217
|
+
class='btn btn-primary btn-sm'
|
|
1218
|
+
onclick='document.querySelector("#f-function-block-alert").remove()'
|
|
1219
|
+
>
|
|
1220
|
+
Закрыть
|
|
1221
|
+
</button>
|
|
1222
|
+
</div>
|
|
1223
|
+
</div>
|
|
1224
|
+
</div>
|
|
1225
|
+
</div>
|
|
1226
|
+
`);
|
|
1227
|
+
};
|
|
1228
|
+
|
|
1229
|
+
const fConfirm = ({ title, body }) => {
|
|
1230
|
+
return new Promise((resolve) => {
|
|
1231
|
+
window.document.body.insertAdjacentHTML('afterbegin', `
|
|
1232
|
+
<div class='f-function-block-confirm' id='f-function-block-confirm'>
|
|
1233
|
+
<div class='f-function-confirm'>
|
|
1234
|
+
<div class='f-function-confirm-ico warning'>
|
|
1235
|
+
<svg width="28" height="28" viewBox="0 0 16 16">
|
|
1236
|
+
<path
|
|
1237
|
+
d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
|
1238
|
+
<path
|
|
1239
|
+
d="M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"/>
|
|
1240
|
+
</svg>
|
|
1241
|
+
</div>
|
|
1242
|
+
<div class='f-function-confirm-inside'>
|
|
1243
|
+
<div class='f-function-confirm-header'>
|
|
1244
|
+
<h4>${title !== undefined ? title : ''}</h4>
|
|
1245
|
+
</div>
|
|
1246
|
+
<div class='f-function-confirm-body'>
|
|
1247
|
+
<span>${body}</span>
|
|
1248
|
+
</div>
|
|
1249
|
+
<div class='f-function-confirm-footer'>
|
|
1250
|
+
<button
|
|
1251
|
+
id="f-function-confirm-ok"
|
|
1252
|
+
class='btn btn-success btn-sm'
|
|
1253
|
+
onclick='document.querySelector("#f-function-block-confirm").remove()'
|
|
1254
|
+
>
|
|
1255
|
+
Ок
|
|
1256
|
+
</button>
|
|
1257
|
+
<button
|
|
1258
|
+
id="f-function-confirm-cancellation"
|
|
1259
|
+
class='btn btn-danger btn-sm'
|
|
1260
|
+
onclick='document.querySelector("#f-function-block-confirm").remove()'
|
|
1261
|
+
>
|
|
1262
|
+
Отменить
|
|
1263
|
+
</button>
|
|
1264
|
+
</div>
|
|
1265
|
+
</div>
|
|
1266
|
+
</div>
|
|
1267
|
+
</div>
|
|
1268
|
+
`);
|
|
1269
|
+
let ok = document.querySelector('#f-function-confirm-ok');
|
|
1270
|
+
let cancellation = document.querySelector('#f-function-confirm-cancellation');
|
|
1271
|
+
ok.addEventListener('click', function () {
|
|
1272
|
+
resolve(true);
|
|
1273
|
+
});
|
|
1274
|
+
cancellation.addEventListener('click', function () {
|
|
1275
|
+
resolve(false);
|
|
1276
|
+
});
|
|
1277
|
+
});
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
function getValue(element) {
|
|
1281
|
+
if (element) {
|
|
1282
|
+
return element.value;
|
|
1283
|
+
}
|
|
1284
|
+
else {
|
|
1285
|
+
return null;
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
const fPrompt = ({ title, body }) => {
|
|
1289
|
+
return new Promise((resolve) => {
|
|
1290
|
+
window.document.body.insertAdjacentHTML('afterbegin', `
|
|
1291
|
+
<div class='f-function-block-prompt' id='f-function-block-prompt'>
|
|
1292
|
+
<div class='f-function-prompt'>
|
|
1293
|
+
<div class='f-function-prompt-ico warning'>
|
|
1294
|
+
<svg width="28" height="28" viewBox="0 0 16 16">
|
|
1295
|
+
<path d="M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333 6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
|
1296
|
+
<path d="M5 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
|
|
1297
|
+
</svg>
|
|
1298
|
+
</div>
|
|
1299
|
+
<div class='f-function-prompt-inside'>
|
|
1300
|
+
<div class='f-function-prompt-header'>
|
|
1301
|
+
<h4>${title}</h4>
|
|
1302
|
+
</div>
|
|
1303
|
+
<div class='f-function-prompt-body'>
|
|
1304
|
+
<span>${body}</span>
|
|
1305
|
+
<input
|
|
1306
|
+
type="text"
|
|
1307
|
+
id="f-function-prompt-input"
|
|
1308
|
+
class="form-control f-function-prompt-input"
|
|
1309
|
+
/>
|
|
1310
|
+
</div>
|
|
1311
|
+
<div class='f-function-prompt-footer'>
|
|
1312
|
+
<button
|
|
1313
|
+
id="f-function-prompt-ok"
|
|
1314
|
+
class='btn btn-success btn-sm'
|
|
1315
|
+
onclick='document.querySelector("#f-function-block-prompt").remove()'
|
|
1316
|
+
>
|
|
1317
|
+
Ок
|
|
1318
|
+
</button>
|
|
1319
|
+
<button
|
|
1320
|
+
id="f-function-prompt-cancellation"
|
|
1321
|
+
class='btn btn-danger btn-sm'
|
|
1322
|
+
onclick='document.querySelector("#f-function-block-prompt").remove()'
|
|
1323
|
+
>
|
|
1324
|
+
Отменить
|
|
1325
|
+
</button>
|
|
1326
|
+
</div>
|
|
1327
|
+
</div>
|
|
1328
|
+
</div>
|
|
1329
|
+
</div>
|
|
1330
|
+
`);
|
|
1331
|
+
let ok = document.querySelector('#f-function-prompt-ok');
|
|
1332
|
+
let cancellation = document.querySelector('#f-function-prompt-cancellation');
|
|
1333
|
+
let submit = document.querySelector('#f-function-prompt-input');
|
|
1334
|
+
ok.addEventListener('click', function () {
|
|
1335
|
+
resolve(getValue(submit));
|
|
1336
|
+
});
|
|
1337
|
+
cancellation.addEventListener('click', function () {
|
|
1338
|
+
resolve(null);
|
|
1339
|
+
});
|
|
1340
|
+
});
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
exports.FAccordion = FAccordion;
|
|
1344
|
+
exports.FAlert = FAlert;
|
|
1345
|
+
exports.FArrowIcon = FArrowIcon;
|
|
1346
|
+
exports.FButton = FButton;
|
|
1347
|
+
exports.FButtonFile = FButtonFile;
|
|
1348
|
+
exports.FCheckIcon = FCheckIcon;
|
|
1349
|
+
exports.FCheckbox = FCheckbox;
|
|
1350
|
+
exports.FCloseIcon = FCloseIcon;
|
|
1351
|
+
exports.FContainer = FContainer;
|
|
1352
|
+
exports.FCopyAddIcon = FCopyAddIcon;
|
|
1353
|
+
exports.FDialog = FDialog;
|
|
1354
|
+
exports.FDialogBody = FDialogBody;
|
|
1355
|
+
exports.FDialogFooter = FDialogFooter;
|
|
1356
|
+
exports.FDialogHeader = FDialogHeader;
|
|
1357
|
+
exports.FDownloadIcon = FDownloadIcon;
|
|
1358
|
+
exports.FDropdown = FDropdown;
|
|
1359
|
+
exports.FDropdownItem = FDropdownItem;
|
|
1360
|
+
exports.FFile = FFile;
|
|
1361
|
+
exports.FFilterIcon = FFilterIcon;
|
|
1362
|
+
exports.FFullDateField = FFullDateField;
|
|
1363
|
+
exports.FGrid = FGrid;
|
|
1364
|
+
exports.FInputFileForm = FInputFileForm;
|
|
1365
|
+
exports.FListIcon = FListIcon;
|
|
1366
|
+
exports.FLoadIcon = FLoadIcon;
|
|
1367
|
+
exports.FNative = FNative;
|
|
1368
|
+
exports.FOpenImgFull = FOpenImgFull;
|
|
1369
|
+
exports.FPagination = FPagination;
|
|
1370
|
+
exports.FPaper = FPaper;
|
|
1371
|
+
exports.FPenIcon = FPenIcon;
|
|
1372
|
+
exports.FPlusIcon = FPlusIcon;
|
|
1373
|
+
exports.FPreloader = FPreloader;
|
|
1374
|
+
exports.FProgress = FProgress;
|
|
1375
|
+
exports.FRadioButton = FRadioButton;
|
|
1376
|
+
exports.FSearchBox = FSearchBox;
|
|
1377
|
+
exports.FSelect = FSelect;
|
|
1378
|
+
exports.FSelectItem = FSelectItem;
|
|
1379
|
+
exports.FSelectSearchDb = FSelectSearchDb;
|
|
1380
|
+
exports.FStack = FStack;
|
|
1381
|
+
exports.FTab = FTab;
|
|
1382
|
+
exports.FTable = FTable;
|
|
1383
|
+
exports.FTableBody = FTableBody;
|
|
1384
|
+
exports.FTableDataCell = FTableDataCell;
|
|
1385
|
+
exports.FTableFooter = FTableFooter;
|
|
1386
|
+
exports.FTableHead = FTableHead;
|
|
1387
|
+
exports.FTableHeaderCell = FTableHeaderCell;
|
|
1388
|
+
exports.FTableRow = FTableRow;
|
|
1389
|
+
exports.FTabs = FTabs;
|
|
1390
|
+
exports.FTextArea = FTextArea;
|
|
1391
|
+
exports.FTextField = FTextField;
|
|
1392
|
+
exports.FTimeline = FTimeline;
|
|
1393
|
+
exports.FTimelineCard = FTimelineCard;
|
|
1394
|
+
exports.FTrashIcon = FTrashIcon;
|
|
1395
|
+
exports.FUnlinkIcon = FUnlinkIcon;
|
|
1396
|
+
exports.fAlert = fAlert;
|
|
1397
|
+
exports.fConfirm = fConfirm;
|
|
1398
|
+
exports.fPrompt = fPrompt;
|