@harjs/react-ui 1.0.0
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/LICENSE +21 -0
- package/README.md +27 -0
- package/dist/assets/css/components/charts/gantt/styles.css +62 -0
- package/dist/assets/css/components/charts/pie/pie.css +90 -0
- package/dist/assets/css/components/data-display/calendar/styles.css +15 -0
- package/dist/assets/css/components/data-display/calendar/styles.week-view.css +144 -0
- package/dist/assets/css/components/data-display/card/statuses.css +377 -0
- package/dist/assets/css/components/data-display/card/styles.css +26 -0
- package/dist/assets/css/components/data-display/chip/chip.css +13 -0
- package/dist/assets/css/components/data-display/diagram/styles.css +125 -0
- package/dist/assets/css/components/data-display/divider/divider.css +8 -0
- package/dist/assets/css/components/data-display/dnd/animations.css +11 -0
- package/dist/assets/css/components/data-display/dnd/shadow.css +26 -0
- package/dist/assets/css/components/data-display/dnd/styles.css +72 -0
- package/dist/assets/css/components/data-display/grid-system/column/position.css +21 -0
- package/dist/assets/css/components/data-display/grid-system/column/styles.css +379 -0
- package/dist/assets/css/components/data-display/grid-system/row/styles.css +35 -0
- package/dist/assets/css/components/data-display/grid-system/styles.css +6 -0
- package/dist/assets/css/components/data-display/kanban-board/styles.css +371 -0
- package/dist/assets/css/components/data-display/paper/styles.css +49 -0
- package/dist/assets/css/components/data-display/syntax-highlighter/core/jsx.template.css +65 -0
- package/dist/assets/css/components/data-display/syntax-highlighter/syntax-highlighter.css +58 -0
- package/dist/assets/css/components/data-display/table/filter-popup.css +11 -0
- package/dist/assets/css/components/data-display/table/properties-popup.css +42 -0
- package/dist/assets/css/components/data-display/table/scroll.css +208 -0
- package/dist/assets/css/components/data-display/table/styles.css +867 -0
- package/dist/assets/css/components/data-display/tabs/tabs.css +245 -0
- package/dist/assets/css/components/data-display/typography/paragraph/align.css +13 -0
- package/dist/assets/css/components/data-display/typography/paragraph/color.css +51 -0
- package/dist/assets/css/components/data-display/typography/paragraph/core.css +6 -0
- package/dist/assets/css/components/data-display/typography/paragraph/size.css +13 -0
- package/dist/assets/css/components/data-display/typography/title/align.css +13 -0
- package/dist/assets/css/components/data-display/typography/title/color.css +0 -0
- package/dist/assets/css/components/data-display/typography/title/core.css +5 -0
- package/dist/assets/css/components/data-display/typography/title/size.css +41 -0
- package/dist/assets/css/components/data-display/typography/typography.css +11 -0
- package/dist/assets/css/components/feedback/alert/statuses.css +224 -0
- package/dist/assets/css/components/feedback/alert/styles.css +61 -0
- package/dist/assets/css/components/feedback/drawer/content.css +7 -0
- package/dist/assets/css/components/feedback/drawer/header.css +56 -0
- package/dist/assets/css/components/feedback/drawer/styles.css +85 -0
- package/dist/assets/css/components/feedback/loading/loading.css +54 -0
- package/dist/assets/css/components/feedback/modal/content.css +6 -0
- package/dist/assets/css/components/feedback/modal/footer.css +9 -0
- package/dist/assets/css/components/feedback/modal/header.css +56 -0
- package/dist/assets/css/components/feedback/modal/media-queries/medium.css +11 -0
- package/dist/assets/css/components/feedback/modal/media-queries/small.css +11 -0
- package/dist/assets/css/components/feedback/modal/media-queries/x-large.css +5 -0
- package/dist/assets/css/components/feedback/modal/styles.css +53 -0
- package/dist/assets/css/components/feedback/notification/notification.css +157 -0
- package/dist/assets/css/components/feedback/popover/styles.css +53 -0
- package/dist/assets/css/components/feedback/popup-confirm/styles.css +165 -0
- package/dist/assets/css/components/feedback/progress/animations.css +10 -0
- package/dist/assets/css/components/feedback/progress/progress.css +50 -0
- package/dist/assets/css/components/feedback/progress/statuses.css +188 -0
- package/dist/assets/css/components/feedback/tooltip/styles.css +60 -0
- package/dist/assets/css/components/form/button/core/icon.css +37 -0
- package/dist/assets/css/components/form/button/core/position.css +19 -0
- package/dist/assets/css/components/form/button/core/shape.css +13 -0
- package/dist/assets/css/components/form/button/core/size.css +14 -0
- package/dist/assets/css/components/form/button/styles.css +32 -0
- package/dist/assets/css/components/form/button-action/styles.css +24 -0
- package/dist/assets/css/components/form/button-group/styles.css +26 -0
- package/dist/assets/css/components/form/checkbox/checkbox.css +53 -0
- package/dist/assets/css/components/form/checkbox/core/border.css +252 -0
- package/dist/assets/css/components/form/date-picker/calendar/calendar.css +14 -0
- package/dist/assets/css/components/form/date-picker/calendar/content.css +62 -0
- package/dist/assets/css/components/form/date-picker/calendar/footer.css +10 -0
- package/dist/assets/css/components/form/date-picker/calendar/header.css +86 -0
- package/dist/assets/css/components/form/date-picker/clock/clock.css +14 -0
- package/dist/assets/css/components/form/date-picker/clock/content.css +48 -0
- package/dist/assets/css/components/form/date-picker/clock/footer.css +6 -0
- package/dist/assets/css/components/form/date-picker/clock/header.css +8 -0
- package/dist/assets/css/components/form/date-picker/date-picker.css +36 -0
- package/dist/assets/css/components/form/input/core/addon.css +11 -0
- package/dist/assets/css/components/form/input/core/border.css +114 -0
- package/dist/assets/css/components/form/input/core/button.css +34 -0
- package/dist/assets/css/components/form/input/core/icon.css +22 -0
- package/dist/assets/css/components/form/input/otp/styles.css +20 -0
- package/dist/assets/css/components/form/input/phone/styles.css +50 -0
- package/dist/assets/css/components/form/input/styles.css +120 -0
- package/dist/assets/css/components/form/radio/core/border.css +252 -0
- package/dist/assets/css/components/form/radio/radio.css +69 -0
- package/dist/assets/css/components/form/select/options.css +117 -0
- package/dist/assets/css/components/form/select/styles.css +184 -0
- package/dist/assets/css/components/form/switch/core/border.css +208 -0
- package/dist/assets/css/components/form/switch/styles.css +61 -0
- package/dist/assets/css/components/form/text-editor/styles.css +130 -0
- package/dist/assets/css/components/form/upload/dropzone.css +166 -0
- package/dist/assets/css/components/form/upload/list-and-gird.css +183 -0
- package/dist/assets/css/components/form/upload/styles.css +215 -0
- package/dist/assets/css/components/layout/layout.css +130 -0
- package/dist/assets/css/components/layout/media-queries/large.css +19 -0
- package/dist/assets/css/components/layout/media-queries/medium.css +19 -0
- package/dist/assets/css/components/layout/media-queries/small.css +19 -0
- package/dist/assets/css/components/layout/media-queries/x-large.css +19 -0
- package/dist/assets/css/components/layout/media-queries/x-small.css +3 -0
- package/dist/assets/css/components/layout/media-queries/xx-large.css +19 -0
- package/dist/assets/css/components/layout/media-queries/xxx-large.css +20 -0
- package/dist/assets/css/components/navigation/breadcrumb/styles.css +0 -0
- package/dist/assets/css/components/navigation/menu/core/open-or-close.css +12 -0
- package/dist/assets/css/components/navigation/menu/styles.css +163 -0
- package/dist/assets/css/components/navigation/menu/variant/horizontal.css +3 -0
- package/dist/assets/css/components/navigation/menu/variant/vertical.css +3 -0
- package/dist/assets/css/components/navigation/pagination/styles.css +169 -0
- package/dist/assets/css/components/navigation/steps/animation.css +8 -0
- package/dist/assets/css/components/navigation/steps/styles.css +146 -0
- package/dist/assets/css/core/animation.css +164 -0
- package/dist/assets/css/core/ar-core.css +192 -0
- package/dist/assets/css/core/color-palette.css +111 -0
- package/dist/assets/css/core/utils.css +16 -0
- package/dist/assets/css/core/variants/animation.css +164 -0
- package/dist/assets/css/core/variants/border.css +18 -0
- package/dist/assets/css/core/variants/borderless.css +362 -0
- package/dist/assets/css/core/variants/dashed.css +362 -0
- package/dist/assets/css/core/variants/filled.css +428 -0
- package/dist/assets/css/core/variants/outlined.css +439 -0
- package/dist/assets/css/core/variants/surface.css +252 -0
- package/dist/assets/fonts/JetBrainsMono-Bold.ttf +0 -0
- package/dist/assets/fonts/JetBrainsMono-Regular.ttf +0 -0
- package/dist/components/charts/gantt/IProps.d.ts +24 -0
- package/dist/components/charts/gantt/IProps.js +1 -0
- package/dist/components/charts/gantt/index.d.ts +5 -0
- package/dist/components/charts/gantt/index.js +308 -0
- package/dist/components/charts/index.d.ts +2 -0
- package/dist/components/charts/index.js +2 -0
- package/dist/components/charts/pie/IProps.d.ts +7 -0
- package/dist/components/charts/pie/IProps.js +1 -0
- package/dist/components/charts/pie/index.d.ts +5 -0
- package/dist/components/charts/pie/index.js +56 -0
- package/dist/components/data-display/calendar/Body.d.ts +23 -0
- package/dist/components/data-display/calendar/Body.js +14 -0
- package/dist/components/data-display/calendar/Header.d.ts +20 -0
- package/dist/components/data-display/calendar/Header.js +26 -0
- package/dist/components/data-display/calendar/IProps.d.ts +14 -0
- package/dist/components/data-display/calendar/IProps.js +1 -0
- package/dist/components/data-display/calendar/index.d.ts +8 -0
- package/dist/components/data-display/calendar/index.js +27 -0
- package/dist/components/data-display/calendar/views/Day.d.ts +3 -0
- package/dist/components/data-display/calendar/views/Day.js +5 -0
- package/dist/components/data-display/calendar/views/Month.d.ts +3 -0
- package/dist/components/data-display/calendar/views/Month.js +5 -0
- package/dist/components/data-display/calendar/views/Week.d.ts +19 -0
- package/dist/components/data-display/calendar/views/Week.js +173 -0
- package/dist/components/data-display/card/IProps.d.ts +10 -0
- package/dist/components/data-display/card/IProps.js +1 -0
- package/dist/components/data-display/card/index.d.ts +5 -0
- package/dist/components/data-display/card/index.js +14 -0
- package/dist/components/data-display/chip/IProps.d.ts +6 -0
- package/dist/components/data-display/chip/IProps.js +1 -0
- package/dist/components/data-display/chip/index.d.ts +5 -0
- package/dist/components/data-display/chip/index.js +17 -0
- package/dist/components/data-display/diagram/IProps.d.ts +6 -0
- package/dist/components/data-display/diagram/IProps.js +1 -0
- package/dist/components/data-display/diagram/index.d.ts +5 -0
- package/dist/components/data-display/diagram/index.js +298 -0
- package/dist/components/data-display/divider/IProps.d.ts +6 -0
- package/dist/components/data-display/divider/IProps.js +1 -0
- package/dist/components/data-display/divider/index.d.ts +5 -0
- package/dist/components/data-display/divider/index.js +5 -0
- package/dist/components/data-display/dnd/IProps.d.ts +12 -0
- package/dist/components/data-display/dnd/IProps.js +1 -0
- package/dist/components/data-display/dnd/index.d.ts +5 -0
- package/dist/components/data-display/dnd/index.js +125 -0
- package/dist/components/data-display/grid-system/box/Box.d.ts +6 -0
- package/dist/components/data-display/grid-system/box/Box.js +13 -0
- package/dist/components/data-display/grid-system/column/Column.d.ts +4 -0
- package/dist/components/data-display/grid-system/column/Column.js +21 -0
- package/dist/components/data-display/grid-system/column/IProps.d.ts +13 -0
- package/dist/components/data-display/grid-system/column/IProps.js +1 -0
- package/dist/components/data-display/grid-system/index.d.ts +10 -0
- package/dist/components/data-display/grid-system/index.js +11 -0
- package/dist/components/data-display/grid-system/row/IProps.d.ts +4 -0
- package/dist/components/data-display/grid-system/row/IProps.js +1 -0
- package/dist/components/data-display/grid-system/row/Row.d.ts +4 -0
- package/dist/components/data-display/grid-system/row/Row.js +6 -0
- package/dist/components/data-display/kanban-board/IProps.d.ts +31 -0
- package/dist/components/data-display/kanban-board/IProps.js +1 -0
- package/dist/components/data-display/kanban-board/filter/DateFilters.d.ts +25 -0
- package/dist/components/data-display/kanban-board/filter/DateFilters.js +55 -0
- package/dist/components/data-display/kanban-board/filter/SelectFilters.d.ts +27 -0
- package/dist/components/data-display/kanban-board/filter/SelectFilters.js +43 -0
- package/dist/components/data-display/kanban-board/filter/index.d.ts +36 -0
- package/dist/components/data-display/kanban-board/filter/index.js +47 -0
- package/dist/components/data-display/kanban-board/index.d.ts +5 -0
- package/dist/components/data-display/kanban-board/index.js +309 -0
- package/dist/components/data-display/paper/IProps.d.ts +6 -0
- package/dist/components/data-display/paper/IProps.js +1 -0
- package/dist/components/data-display/paper/index.d.ts +5 -0
- package/dist/components/data-display/paper/index.js +12 -0
- package/dist/components/data-display/syntax-highlighter/Import.d.ts +4 -0
- package/dist/components/data-display/syntax-highlighter/Import.js +5 -0
- package/dist/components/data-display/syntax-highlighter/classes/Compiler.d.ts +7 -0
- package/dist/components/data-display/syntax-highlighter/classes/Compiler.js +92 -0
- package/dist/components/data-display/syntax-highlighter/classes/Parser.d.ts +9 -0
- package/dist/components/data-display/syntax-highlighter/classes/Parser.js +99 -0
- package/dist/components/data-display/syntax-highlighter/index.d.ts +11 -0
- package/dist/components/data-display/syntax-highlighter/index.js +41 -0
- package/dist/components/data-display/table/FilterPopup.d.ts +20 -0
- package/dist/components/data-display/table/FilterPopup.js +54 -0
- package/dist/components/data-display/table/Helpers.d.ts +2 -0
- package/dist/components/data-display/table/Helpers.js +10 -0
- package/dist/components/data-display/table/IProps.d.ts +99 -0
- package/dist/components/data-display/table/IProps.js +1 -0
- package/dist/components/data-display/table/PropertiesPopup.d.ts +31 -0
- package/dist/components/data-display/table/PropertiesPopup.js +90 -0
- package/dist/components/data-display/table/THeadCell.d.ts +34 -0
- package/dist/components/data-display/table/THeadCell.js +67 -0
- package/dist/components/data-display/table/body/Editable.d.ts +12 -0
- package/dist/components/data-display/table/body/Editable.js +59 -0
- package/dist/components/data-display/table/body/TBody.d.ts +36 -0
- package/dist/components/data-display/table/body/TBody.js +184 -0
- package/dist/components/data-display/table/header/ActionButtons.d.ts +14 -0
- package/dist/components/data-display/table/header/ActionButtons.js +65 -0
- package/dist/components/data-display/table/header/Header.d.ts +15 -0
- package/dist/components/data-display/table/header/Header.js +10 -0
- package/dist/components/data-display/table/index.d.ts +7 -0
- package/dist/components/data-display/table/index.js +639 -0
- package/dist/components/data-display/tabs/IProps.d.ts +9 -0
- package/dist/components/data-display/tabs/IProps.js +1 -0
- package/dist/components/data-display/tabs/index.d.ts +5 -0
- package/dist/components/data-display/tabs/index.js +110 -0
- package/dist/components/data-display/tabs/skeleton.d.ts +4 -0
- package/dist/components/data-display/tabs/skeleton.js +14 -0
- package/dist/components/data-display/typography/index.d.ts +6 -0
- package/dist/components/data-display/typography/index.js +9 -0
- package/dist/components/data-display/typography/paragraph/IProps.d.ts +7 -0
- package/dist/components/data-display/typography/paragraph/IProps.js +1 -0
- package/dist/components/data-display/typography/paragraph/Paragraph.d.ts +4 -0
- package/dist/components/data-display/typography/paragraph/Paragraph.js +14 -0
- package/dist/components/data-display/typography/title/IProps.d.ts +7 -0
- package/dist/components/data-display/typography/title/IProps.js +1 -0
- package/dist/components/data-display/typography/title/Title.d.ts +4 -0
- package/dist/components/data-display/typography/title/Title.js +13 -0
- package/dist/components/feedback/alert/IProps.d.ts +11 -0
- package/dist/components/feedback/alert/IProps.js +1 -0
- package/dist/components/feedback/alert/index.d.ts +5 -0
- package/dist/components/feedback/alert/index.js +50 -0
- package/dist/components/feedback/drawer/IProps.d.ts +18 -0
- package/dist/components/feedback/drawer/IProps.js +1 -0
- package/dist/components/feedback/drawer/index.d.ts +5 -0
- package/dist/components/feedback/drawer/index.js +94 -0
- package/dist/components/feedback/loading/index.d.ts +4 -0
- package/dist/components/feedback/loading/index.js +7 -0
- package/dist/components/feedback/modal/IProps.d.ts +14 -0
- package/dist/components/feedback/modal/IProps.js +1 -0
- package/dist/components/feedback/modal/index.d.ts +5 -0
- package/dist/components/feedback/modal/index.js +91 -0
- package/dist/components/feedback/notification/IProps.d.ts +9 -0
- package/dist/components/feedback/notification/IProps.js +1 -0
- package/dist/components/feedback/notification/index.d.ts +5 -0
- package/dist/components/feedback/notification/index.js +96 -0
- package/dist/components/feedback/popover/IProps.d.ts +16 -0
- package/dist/components/feedback/popover/IProps.js +1 -0
- package/dist/components/feedback/popover/index.d.ts +5 -0
- package/dist/components/feedback/popover/index.js +91 -0
- package/dist/components/feedback/popup-confirm/IProps.d.ts +10 -0
- package/dist/components/feedback/popup-confirm/IProps.js +1 -0
- package/dist/components/feedback/popup-confirm/index.d.ts +5 -0
- package/dist/components/feedback/popup-confirm/index.js +98 -0
- package/dist/components/feedback/progress/IProps.d.ts +6 -0
- package/dist/components/feedback/progress/IProps.js +1 -0
- package/dist/components/feedback/progress/index.d.ts +5 -0
- package/dist/components/feedback/progress/index.js +26 -0
- package/dist/components/feedback/tooltip/IProps.d.ts +6 -0
- package/dist/components/feedback/tooltip/IProps.js +1 -0
- package/dist/components/feedback/tooltip/index.d.ts +5 -0
- package/dist/components/feedback/tooltip/index.js +129 -0
- package/dist/components/form/button/IProps.d.ts +10 -0
- package/dist/components/form/button/IProps.js +1 -0
- package/dist/components/form/button/index.d.ts +5 -0
- package/dist/components/form/button/index.js +41 -0
- package/dist/components/form/button-action/IProps.d.ts +8 -0
- package/dist/components/form/button-action/IProps.js +1 -0
- package/dist/components/form/button-action/index.d.ts +5 -0
- package/dist/components/form/button-action/index.js +68 -0
- package/dist/components/form/button-group/index.d.ts +7 -0
- package/dist/components/form/button-group/index.js +31 -0
- package/dist/components/form/checkbox/IProps.d.ts +5 -0
- package/dist/components/form/checkbox/IProps.js +1 -0
- package/dist/components/form/checkbox/index.d.ts +5 -0
- package/dist/components/form/checkbox/index.js +24 -0
- package/dist/components/form/date-picker/DATE.d.ts +12 -0
- package/dist/components/form/date-picker/DATE.js +27 -0
- package/dist/components/form/date-picker/Props.d.ts +10 -0
- package/dist/components/form/date-picker/Props.js +1 -0
- package/dist/components/form/date-picker/index.d.ts +5 -0
- package/dist/components/form/date-picker/index.js +365 -0
- package/dist/components/form/input/IProps.d.ts +12 -0
- package/dist/components/form/input/IProps.js +1 -0
- package/dist/components/form/input/decimal/Decimal.d.ts +4 -0
- package/dist/components/form/input/decimal/Decimal.js +54 -0
- package/dist/components/form/input/decimal/IProps.d.ts +8 -0
- package/dist/components/form/input/decimal/IProps.js +1 -0
- package/dist/components/form/input/formatted-decimal/FormattedDecimal.d.ts +4 -0
- package/dist/components/form/input/formatted-decimal/FormattedDecimal.js +73 -0
- package/dist/components/form/input/formatted-decimal/IProps.d.ts +12 -0
- package/dist/components/form/input/formatted-decimal/IProps.js +1 -0
- package/dist/components/form/input/index.d.ts +15 -0
- package/dist/components/form/input/index.js +152 -0
- package/dist/components/form/input/otp/IProps.d.ts +6 -0
- package/dist/components/form/input/otp/IProps.js +1 -0
- package/dist/components/form/input/otp/Otp.d.ts +7 -0
- package/dist/components/form/input/otp/Otp.js +122 -0
- package/dist/components/form/input/phone/IProps.d.ts +11 -0
- package/dist/components/form/input/phone/IProps.js +1 -0
- package/dist/components/form/input/phone/Phone.d.ts +4 -0
- package/dist/components/form/input/phone/Phone.js +41 -0
- package/dist/components/form/radio/IProps.d.ts +12 -0
- package/dist/components/form/radio/IProps.js +1 -0
- package/dist/components/form/radio/index.d.ts +5 -0
- package/dist/components/form/radio/index.js +38 -0
- package/dist/components/form/select/Props.d.ts +35 -0
- package/dist/components/form/select/Props.js +1 -0
- package/dist/components/form/select/index.d.ts +5 -0
- package/dist/components/form/select/index.js +312 -0
- package/dist/components/form/switch/IProps.d.ts +5 -0
- package/dist/components/form/switch/IProps.js +1 -0
- package/dist/components/form/switch/index.d.ts +5 -0
- package/dist/components/form/switch/index.js +36 -0
- package/dist/components/form/text-editor/IProps.d.ts +18 -0
- package/dist/components/form/text-editor/IProps.js +1 -0
- package/dist/components/form/text-editor/index.d.ts +5 -0
- package/dist/components/form/text-editor/index.js +300 -0
- package/dist/components/form/upload/Buttons.d.ts +8 -0
- package/dist/components/form/upload/Buttons.js +27 -0
- package/dist/components/form/upload/Dropzone.d.ts +10 -0
- package/dist/components/form/upload/Dropzone.js +55 -0
- package/dist/components/form/upload/List.d.ts +12 -0
- package/dist/components/form/upload/List.js +21 -0
- package/dist/components/form/upload/Props.d.ts +16 -0
- package/dist/components/form/upload/Props.js +1 -0
- package/dist/components/form/upload/index.d.ts +9 -0
- package/dist/components/form/upload/index.js +184 -0
- package/dist/components/icons/Compiler.d.ts +9 -0
- package/dist/components/icons/Compiler.js +156 -0
- package/dist/components/icons/index.d.ts +10 -0
- package/dist/components/icons/index.js +6 -0
- package/dist/components/layout/Footer.d.ts +3 -0
- package/dist/components/layout/Footer.js +8 -0
- package/dist/components/layout/Header.d.ts +4 -0
- package/dist/components/layout/Header.js +8 -0
- package/dist/components/layout/IProps.d.ts +20 -0
- package/dist/components/layout/IProps.js +1 -0
- package/dist/components/layout/LSider.d.ts +4 -0
- package/dist/components/layout/LSider.js +53 -0
- package/dist/components/layout/Main.d.ts +4 -0
- package/dist/components/layout/Main.js +4 -0
- package/dist/components/layout/RSider.d.ts +3 -0
- package/dist/components/layout/RSider.js +13 -0
- package/dist/components/layout/Section.d.ts +4 -0
- package/dist/components/layout/Section.js +10 -0
- package/dist/components/layout/index.d.ts +12 -0
- package/dist/components/layout/index.js +32 -0
- package/dist/components/navigation/breadcrumb/IProps.d.ts +3 -0
- package/dist/components/navigation/breadcrumb/IProps.js +1 -0
- package/dist/components/navigation/breadcrumb/index.d.ts +5 -0
- package/dist/components/navigation/breadcrumb/index.js +8 -0
- package/dist/components/navigation/menu/IProps.d.ts +14 -0
- package/dist/components/navigation/menu/IProps.js +1 -0
- package/dist/components/navigation/menu/index.d.ts +5 -0
- package/dist/components/navigation/menu/index.js +89 -0
- package/dist/components/navigation/pagination/IProps.d.ts +8 -0
- package/dist/components/navigation/pagination/IProps.js +1 -0
- package/dist/components/navigation/pagination/index.d.ts +5 -0
- package/dist/components/navigation/pagination/index.js +74 -0
- package/dist/components/navigation/steps/IProps.d.ts +16 -0
- package/dist/components/navigation/steps/IProps.js +1 -0
- package/dist/components/navigation/steps/index.d.ts +5 -0
- package/dist/components/navigation/steps/index.js +102 -0
- package/dist/libs/core/application/contexts/Config.d.ts +26 -0
- package/dist/libs/core/application/contexts/Config.js +20 -0
- package/dist/libs/core/application/contexts/Language.d.ts +7 -0
- package/dist/libs/core/application/contexts/Language.js +7 -0
- package/dist/libs/core/application/contexts/Loading.d.ts +11 -0
- package/dist/libs/core/application/contexts/Loading.js +13 -0
- package/dist/libs/core/application/contexts/Notification.d.ts +25 -0
- package/dist/libs/core/application/contexts/Notification.js +29 -0
- package/dist/libs/core/application/contexts/index.d.ts +5 -0
- package/dist/libs/core/application/contexts/index.js +5 -0
- package/dist/libs/core/application/hooks/index.d.ts +41 -0
- package/dist/libs/core/application/hooks/index.js +17 -0
- package/dist/libs/core/application/hooks/useNotification.d.ts +16 -0
- package/dist/libs/core/application/hooks/useNotification.js +23 -0
- package/dist/libs/core/application/hooks/useTranslation.d.ts +9 -0
- package/dist/libs/core/application/hooks/useTranslation.js +25 -0
- package/dist/libs/core/application/hooks/useValidation.d.ts +7 -0
- package/dist/libs/core/application/hooks/useValidation.js +151 -0
- package/dist/libs/core/application/locales/index.d.ts +4 -0
- package/dist/libs/core/application/locales/index.js +3 -0
- package/dist/libs/core/application/locales/kanban-board/IKanbanBoardLocale.d.ts +5 -0
- package/dist/libs/core/application/locales/kanban-board/IKanbanBoardLocale.js +1 -0
- package/dist/libs/core/application/locales/kanban-board/en.d.ts +3 -0
- package/dist/libs/core/application/locales/kanban-board/en.js +5 -0
- package/dist/libs/core/application/locales/kanban-board/tr.d.ts +3 -0
- package/dist/libs/core/application/locales/kanban-board/tr.js +5 -0
- package/dist/libs/core/application/locales/notification/INotificationLocale.d.ts +59 -0
- package/dist/libs/core/application/locales/notification/INotificationLocale.js +1 -0
- package/dist/libs/core/application/locales/notification/en.d.ts +3 -0
- package/dist/libs/core/application/locales/notification/en.js +85 -0
- package/dist/libs/core/application/locales/notification/tr.d.ts +3 -0
- package/dist/libs/core/application/locales/notification/tr.js +85 -0
- package/dist/libs/core/application/locales/table/ITableLocale.d.ts +18 -0
- package/dist/libs/core/application/locales/table/ITableLocale.js +1 -0
- package/dist/libs/core/application/locales/table/en.d.ts +3 -0
- package/dist/libs/core/application/locales/table/en.js +22 -0
- package/dist/libs/core/application/locales/table/tr.d.ts +3 -0
- package/dist/libs/core/application/locales/table/tr.js +22 -0
- package/dist/libs/infrastructure/shared/DATE.d.ts +74 -0
- package/dist/libs/infrastructure/shared/DATE.js +148 -0
- package/dist/libs/infrastructure/shared/Enums.d.ts +18 -0
- package/dist/libs/infrastructure/shared/Enums.js +21 -0
- package/dist/libs/infrastructure/shared/NUMBER.d.ts +8 -0
- package/dist/libs/infrastructure/shared/NUMBER.js +10 -0
- package/dist/libs/infrastructure/shared/PHONE.d.ts +8 -0
- package/dist/libs/infrastructure/shared/PHONE.js +126 -0
- package/dist/libs/infrastructure/shared/Utils.d.ts +20 -0
- package/dist/libs/infrastructure/shared/Utils.js +349 -0
- package/dist/libs/infrastructure/shared/_old_DATE.d.ts +28 -0
- package/dist/libs/infrastructure/shared/_old_DATE.js +68 -0
- package/dist/libs/infrastructure/types/IGlobalProps.d.ts +183 -0
- package/dist/libs/infrastructure/types/IGlobalProps.js +1 -0
- package/dist/libs/infrastructure/types/index.d.ts +155 -0
- package/dist/libs/infrastructure/types/index.js +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React, { Fragment, memo, useEffect, useRef, useState } from "react";
|
|
3
|
+
import { ARIcon } from "../../../icons";
|
|
4
|
+
import Checkbox from "../../../form/checkbox";
|
|
5
|
+
import Editable from "./Editable";
|
|
6
|
+
import { useTranslation } from "../../../../libs/core/application/hooks";
|
|
7
|
+
const SubitemList = ({ items, columns, depth, level = 1, parentKey = "", config, methods, states, renderCell, }) => {
|
|
8
|
+
const _subrowSelector = config.subrow?.selector ?? "subitems";
|
|
9
|
+
const _subrowButton = config.subrow?.button ?? true;
|
|
10
|
+
if (config.subrow?.render) {
|
|
11
|
+
return (React.createElement("tr", { className: `subrow-item ${_subrowButton ? "type-b" : "type-a"}`, "data-level": level },
|
|
12
|
+
methods.selections && React.createElement("td", { className: "sticky sticky-left", "data-sticky-position": "left" }),
|
|
13
|
+
_subrowButton && React.createElement("td", { className: "sticky sticky-left", "data-sticky-position": "left" }),
|
|
14
|
+
React.createElement("td", { colSpan: columns.length || 1, style: { ...config.subrow.render.styles, padding: "7.5px 7.5px 7.5px 0" } }, config.subrow?.render.element(items) ?? React.createElement(React.Fragment, null))));
|
|
15
|
+
}
|
|
16
|
+
return (React.createElement(React.Fragment, null, items.map((subitem, subindex) => {
|
|
17
|
+
const id = methods.trackBy?.(subitem) ?? `sub-${subindex}`;
|
|
18
|
+
const key = `${parentKey}.${id}`;
|
|
19
|
+
const _subitem = subitem[_subrowSelector];
|
|
20
|
+
const isHasSubitems = _subrowSelector in subitem;
|
|
21
|
+
return (React.createElement(Fragment, { key: `subitem-wrapper-${key}` },
|
|
22
|
+
React.createElement("tr", { className: `subrow-item ${_subrowButton ? "type-b" : "type-a"}`, "data-level": level },
|
|
23
|
+
methods.selections && (React.createElement("td", { className: "sticky sticky-left", "data-sticky-position": "left", style: { display: "table-cell", verticalAlign: "middle" } })),
|
|
24
|
+
_subrowButton && (React.createElement("td", { className: "subrow-col sticky sticky-left", "data-sticky-position": "left", style: { display: "table-cell", verticalAlign: "middle" } },
|
|
25
|
+
React.createElement("div", { className: "subitem-open-button-wrapper", style: { display: "flex", justifyContent: "center", alignItems: "center" } },
|
|
26
|
+
React.createElement("span", { className: `${(states.showSubitems.get[key] && "opened") ?? ""} ${!isHasSubitems || !_subitem ? "passive passive-arrow" : ""}`, onClick: () => {
|
|
27
|
+
if (!isHasSubitems || !_subitem)
|
|
28
|
+
return;
|
|
29
|
+
states.showSubitems.set((prev) => ({ ...prev, [key]: !prev[key] }));
|
|
30
|
+
} })))),
|
|
31
|
+
columns.map((column, cIndex) => renderCell({
|
|
32
|
+
item: subitem,
|
|
33
|
+
column,
|
|
34
|
+
index: subindex,
|
|
35
|
+
cIndex,
|
|
36
|
+
depth: depth * (config.isTreeView ? 2.25 : 1.75),
|
|
37
|
+
level,
|
|
38
|
+
height: 0,
|
|
39
|
+
isSubrows: true,
|
|
40
|
+
}))),
|
|
41
|
+
states.showSubitems.get[key] && _subitem && (React.createElement(SubitemList, { items: _subitem, columns: columns, depth: depth + 0.75, level: level + 1, parentKey: key, config: config, methods: methods, states: states, renderCell: renderCell }))));
|
|
42
|
+
})));
|
|
43
|
+
};
|
|
44
|
+
function TBody({ data, columns, refs, methods, states, config }) {
|
|
45
|
+
const _tBodyTR = useRef([]);
|
|
46
|
+
const _tHeadTH = useRef([]);
|
|
47
|
+
const [triggerForRender, setTriggerForRender] = useState(false);
|
|
48
|
+
const [rowHeights, setRowHeights] = useState([]);
|
|
49
|
+
const _subrowSelector = config.subrow?.selector ?? "subitems";
|
|
50
|
+
const _subrowButton = config.subrow?.button ?? false;
|
|
51
|
+
const { t } = useTranslation(String(config.locale ?? "tr"));
|
|
52
|
+
const renderCell = ({ item, column, index, cIndex, depth, level, height = 0, isSubrows = false }) => {
|
|
53
|
+
let render;
|
|
54
|
+
const itemTrackId = methods.trackBy?.(item) ?? index.toString();
|
|
55
|
+
if (typeof column.key !== "object")
|
|
56
|
+
render = column.render ? column.render(item) : item[column.key];
|
|
57
|
+
else if (typeof column.key === "object") {
|
|
58
|
+
const _item = item[column.key.field];
|
|
59
|
+
if (_item && typeof _item === "object") {
|
|
60
|
+
render = column.render ? column.render(item) : _item[column.key.nestedKey];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else
|
|
64
|
+
render = null;
|
|
65
|
+
const _className = [];
|
|
66
|
+
if (column.config?.alignContent)
|
|
67
|
+
_className.push(`align-content-${column.config.alignContent}`);
|
|
68
|
+
if (column.config?.sticky)
|
|
69
|
+
_className.push(`sticky-${column.config.sticky}`);
|
|
70
|
+
if (column.config?.textWrap)
|
|
71
|
+
_className.push(`text-${column.config.textWrap}`);
|
|
72
|
+
const firstCleanDataColumn = columns.find((col) => col.config?.sticky === undefined || col.config?.sticky !== "left");
|
|
73
|
+
const isTargetPaddingColumn = firstCleanDataColumn !== undefined && column === firstCleanDataColumn;
|
|
74
|
+
return (React.createElement("td", { key: `cell-${itemTrackId}-${cIndex}`, className: _className.join(" "), style: {
|
|
75
|
+
...(column.config?.sticky ? { height } : {}),
|
|
76
|
+
...(column.config?.width
|
|
77
|
+
? {
|
|
78
|
+
width: column.config.width,
|
|
79
|
+
minWidth: column.config.width,
|
|
80
|
+
maxWidth: column.config.width,
|
|
81
|
+
overflow: "hidden",
|
|
82
|
+
}
|
|
83
|
+
: {}),
|
|
84
|
+
}, "data-sticky-position": column.config?.sticky },
|
|
85
|
+
React.createElement("div", { style: {
|
|
86
|
+
paddingLeft: isTargetPaddingColumn ? `${depth === 0 ? 1 : depth}rem` : "",
|
|
87
|
+
}, className: "table-cell" },
|
|
88
|
+
config.isTreeView && cIndex === 0 && (React.createElement(React.Fragment, null,
|
|
89
|
+
isSubrows &&
|
|
90
|
+
Array.from({ length: level }).map((_, i) => (React.createElement("div", { key: `last-before-${itemTrackId}-${i}`, style: { left: `${(i > 0 ? i * 1.655 : i) + 0.65}rem` }, className: "last-before" }))),
|
|
91
|
+
React.createElement("div", { className: "before" }))),
|
|
92
|
+
React.isValidElement(render) ? (render) : column.editable && methods.onEditable ? (React.createElement(Editable, { key: `editable-${itemTrackId}-${String(column.key)}`, c: column, item: item, trackByValue: itemTrackId, onEditable: methods.onEditable, config: config })) : (React.createElement("span", null, render)),
|
|
93
|
+
config.isTreeView && cIndex === 0 && (React.createElement("div", { className: "after" },
|
|
94
|
+
React.createElement("div", { className: "circle" }))))));
|
|
95
|
+
};
|
|
96
|
+
const renderRow = (item, index, deph, parentKey = "") => {
|
|
97
|
+
const id = methods.trackBy?.(item) ?? index.toString();
|
|
98
|
+
const key = parentKey ? `${parentKey}.${id}` : id;
|
|
99
|
+
const _subitem = item[_subrowSelector];
|
|
100
|
+
const isHasSubitems = _subrowSelector in item;
|
|
101
|
+
const currentRowHeight = rowHeights[index] ?? 0;
|
|
102
|
+
return (React.createElement(Fragment, { key: `row-wrapper-${id}` },
|
|
103
|
+
React.createElement("tr", { ref: (element) => {
|
|
104
|
+
_tBodyTR.current[index] = element;
|
|
105
|
+
}, ...(methods.rowBackgroundColor ? { style: { backgroundColor: methods.rowBackgroundColor(item) } } : {}), ...(methods.onDnD && data.length > 1 ? { className: "draggable", draggable: true } : {}) },
|
|
106
|
+
methods.selections && (React.createElement("td", { ref: (element) => {
|
|
107
|
+
_tHeadTH.current[index] = element;
|
|
108
|
+
}, className: "sticky sticky-left", "data-sticky-position": "left", style: {
|
|
109
|
+
display: "table-cell",
|
|
110
|
+
verticalAlign: "middle",
|
|
111
|
+
} },
|
|
112
|
+
React.createElement("div", { className: "flex justify-content-center align-items-center", style: { width: "100%", height: "100%" } },
|
|
113
|
+
React.createElement(Checkbox, { ref: (element) => {
|
|
114
|
+
if (element)
|
|
115
|
+
refs._checkboxItems.current[index] = element;
|
|
116
|
+
}, variant: "filled", color: "green", checked: refs._selectionItems.current.some((sItem) => methods.trackBy?.(sItem) === methods.trackBy?.(item)), onChange: (event) => {
|
|
117
|
+
const rKey = methods.trackBy?.(item);
|
|
118
|
+
if (event.target.checked) {
|
|
119
|
+
if (!refs._selectionItems.current.some((_item) => methods.trackBy?.(_item) === rKey)) {
|
|
120
|
+
refs._selectionItems.current = [...refs._selectionItems.current, item];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
refs._selectionItems.current = refs._selectionItems.current.filter((_item) => methods.trackBy?.(_item) !== rKey);
|
|
125
|
+
}
|
|
126
|
+
methods.selections?.(refs._selectionItems.current);
|
|
127
|
+
setTriggerForRender((prev) => !prev);
|
|
128
|
+
}, disabled: methods.selectionDisabled?.(item) })))),
|
|
129
|
+
_subrowButton && (React.createElement("td", { className: "subrow-col sticky sticky-left", "data-sticky-position": "left", style: {
|
|
130
|
+
display: "table-cell",
|
|
131
|
+
verticalAlign: "middle",
|
|
132
|
+
} },
|
|
133
|
+
React.createElement("div", { className: "subitem-open-button-wrapper", style: { display: "flex", justifyContent: "center", alignItems: "center" } },
|
|
134
|
+
React.createElement("span", { className: `subitem-open-button ${(states.showSubitems.get[key] && "opened") ?? ""} ${!isHasSubitems || !_subitem ? "passive passive-arrow" : ""}`, onClick: () => {
|
|
135
|
+
if (!isHasSubitems || !_subitem)
|
|
136
|
+
return;
|
|
137
|
+
states.showSubitems.set((prev) => ({ ...prev, [key]: !prev[key] }));
|
|
138
|
+
} })))),
|
|
139
|
+
columns.map((column, cIndex) => renderCell({
|
|
140
|
+
item,
|
|
141
|
+
column,
|
|
142
|
+
index,
|
|
143
|
+
cIndex,
|
|
144
|
+
depth: deph * (config.isTreeView ? 1.75 : 0),
|
|
145
|
+
level: 0,
|
|
146
|
+
height: currentRowHeight,
|
|
147
|
+
}))),
|
|
148
|
+
states.showSubitems.get[key] && _subitem && (React.createElement(SubitemList, { items: _subitem, columns: columns, depth: 1.5, parentKey: key, config: config, methods: methods, states: states, renderCell: renderCell }))));
|
|
149
|
+
};
|
|
150
|
+
// useEffects
|
|
151
|
+
useEffect(() => {
|
|
152
|
+
if (!data || data.length === 0)
|
|
153
|
+
return;
|
|
154
|
+
const heights = _tBodyTR.current.map((el) => (el ? el.getBoundingClientRect().height : 0));
|
|
155
|
+
setRowHeights(heights);
|
|
156
|
+
}, [data.length, data]);
|
|
157
|
+
useEffect(() => {
|
|
158
|
+
if (Array.isArray(refs._checkboxItems.current) && refs._checkboxItems.current.length > 0) {
|
|
159
|
+
const allChecked = refs._checkboxItems.current.every((item) => item?.checked === true);
|
|
160
|
+
states.setSelectAll.set(allChecked);
|
|
161
|
+
}
|
|
162
|
+
}, [triggerForRender]);
|
|
163
|
+
useEffect(() => {
|
|
164
|
+
if (typeof window === "undefined")
|
|
165
|
+
return;
|
|
166
|
+
const tableContainer = _tBodyTR.current[0]?.closest("div");
|
|
167
|
+
if (tableContainer && tableContainer.scrollLeft > 0) {
|
|
168
|
+
const currentScroll = tableContainer.scrollLeft;
|
|
169
|
+
requestAnimationFrame(() => {
|
|
170
|
+
tableContainer.scrollLeft = currentScroll + 1;
|
|
171
|
+
tableContainer.scrollLeft = currentScroll;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}, [states.showSubitems.get]);
|
|
175
|
+
return data.length > 0 ? (data.map((item, index) => {
|
|
176
|
+
const rowKey = methods.trackBy?.(item) ?? index.toString();
|
|
177
|
+
return React.createElement(React.Fragment, { key: `tbody-row-${rowKey}` }, renderRow(item, index, 1));
|
|
178
|
+
})) : (React.createElement("tr", null,
|
|
179
|
+
React.createElement("td", { colSpan: columns.length || 1 },
|
|
180
|
+
React.createElement("div", { className: "no-item" },
|
|
181
|
+
React.createElement(ARIcon, { icon: "Inbox-Fill", fill: "var(--gray-300)", size: 64, style: { position: "relative", zIndex: 1 } }),
|
|
182
|
+
React.createElement("span", null, t("Table.Body.NoData.Text"))))));
|
|
183
|
+
}
|
|
184
|
+
export default memo(TBody);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { Actions } from "../IProps";
|
|
3
|
+
import React from "react";
|
|
4
|
+
interface IProps {
|
|
5
|
+
states: {
|
|
6
|
+
createTrigger: {
|
|
7
|
+
get: boolean;
|
|
8
|
+
set: Dispatch<SetStateAction<boolean>>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
actions: Actions;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.MemoExoticComponent<({ states, actions }: IProps) => React.JSX.Element>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { memo, useState } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import Grid from "../../grid-system";
|
|
4
|
+
import Popover from "../../../feedback/popover";
|
|
5
|
+
import Upload from "../../../form/upload";
|
|
6
|
+
import Tooltip from "../../../feedback/tooltip";
|
|
7
|
+
import Button from "../../../form/button";
|
|
8
|
+
import { ARIcon } from "../../../icons";
|
|
9
|
+
const { Row, Column } = Grid;
|
|
10
|
+
const ActionButtons = ({ states, actions }) => {
|
|
11
|
+
// states
|
|
12
|
+
const [files, setFiles] = useState([]);
|
|
13
|
+
const [formData, setFormData] = useState(undefined);
|
|
14
|
+
const [base64, setBase64] = useState([]);
|
|
15
|
+
return (React.createElement("div", { className: "actions" },
|
|
16
|
+
actions.import && (React.createElement(Popover, { title: actions.import.title ?? "İçeri Aktar", message: actions.import.message ??
|
|
17
|
+
"Seçtiğiniz dosyaları uygulamaya yükleyebilirsiniz. Bu işlem, dosyalardaki verileri sistemimize aktarır ve verilerle işlem yapmanıza olanak tanır.", content: React.createElement(React.Fragment, null,
|
|
18
|
+
actions.import.prefixItem && (React.createElement(Row, null,
|
|
19
|
+
React.createElement(Column, { size: 12 }, actions.import.prefixItem))),
|
|
20
|
+
React.createElement(Row, null,
|
|
21
|
+
React.createElement(Column, { size: 12 },
|
|
22
|
+
React.createElement(Upload, { text: actions.import.buttonText ?? "Belge Yükleyin", allowedTypes: actions.import.allowedTypes, files: files, onChange: (formData, files, base64) => {
|
|
23
|
+
setFormData(formData);
|
|
24
|
+
setFiles(files);
|
|
25
|
+
setBase64(base64);
|
|
26
|
+
}, size: "small", fullWidth: true }))),
|
|
27
|
+
actions.import.suffixItem), onConfirm: (confirm) => {
|
|
28
|
+
if (!confirm) {
|
|
29
|
+
setFiles([]);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (actions.import && actions.import.onClick)
|
|
33
|
+
actions.import.onClick(formData, files, base64);
|
|
34
|
+
}, config: { buttons: { okay: "Yükle", cancel: "İptal" } }, windowBlur: true },
|
|
35
|
+
React.createElement(Tooltip, { text: actions.import.tooltip },
|
|
36
|
+
React.createElement(Button, { variant: "outlined", color: "purple", icon: { element: React.createElement(ARIcon, { icon: "Upload", fill: "currentcolor" }) } })))),
|
|
37
|
+
actions.export && (React.createElement(Popover, { title: actions.export.title ?? "Dışarı Aktar", message: actions.export.message ??
|
|
38
|
+
"Seçtiğiniz verileri bilgisayarınıza indirebilirsiniz. Bu işlem, sistemimizdeki verileri dosya olarak dışa aktarır ve verileri harici olarak kullanmanıza olanak tanır.", content: actions.export.content, onConfirm: (confirm) => {
|
|
39
|
+
if (!confirm) {
|
|
40
|
+
setFiles([]);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (actions.export && actions.export.onClick)
|
|
44
|
+
actions.export.onClick();
|
|
45
|
+
}, config: { buttons: { okay: "Dışarı Aktar", cancel: "İptal" } }, windowBlur: true },
|
|
46
|
+
React.createElement(Tooltip, { text: actions.export.tooltip },
|
|
47
|
+
React.createElement(Button, { variant: "outlined", color: "blue", icon: { element: React.createElement(ARIcon, { icon: "Download", fill: "currentcolor" }) } })))),
|
|
48
|
+
actions.create && (React.createElement(Tooltip, { text: actions.create.tooltip },
|
|
49
|
+
React.createElement(Button, { variant: "outlined", color: "green", icon: { element: React.createElement(ARIcon, { icon: "Add", size: 24 }) }, onClick: (event) => {
|
|
50
|
+
if (!actions.create)
|
|
51
|
+
return;
|
|
52
|
+
actions.create.onClick(event);
|
|
53
|
+
states.createTrigger.set((prev) => !prev);
|
|
54
|
+
} }))),
|
|
55
|
+
actions.delete && (React.createElement(Popover, { title: actions.delete.title ?? "Siliniyor", message: actions.delete.message ??
|
|
56
|
+
"Seçtiğiniz verileri uygulamadan silebilirsiniz. Bu işlem, verilerin sistemimizden tamamen kaldırılmasını sağlar ve bu verilerle artık işlem yapılamaz.", onConfirm: (confirm) => {
|
|
57
|
+
if (!confirm)
|
|
58
|
+
return;
|
|
59
|
+
if (actions.delete && actions.delete.onClick)
|
|
60
|
+
actions.delete.onClick();
|
|
61
|
+
} },
|
|
62
|
+
React.createElement(Tooltip, { text: actions.delete.tooltip },
|
|
63
|
+
React.createElement(Button, { variant: "outlined", color: "red", icon: { element: React.createElement(ARIcon, { icon: "Trash-Fill", fill: "currentcolor" }) } }))))));
|
|
64
|
+
};
|
|
65
|
+
export default memo(ActionButtons);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { Actions } from "../IProps";
|
|
3
|
+
interface IProps {
|
|
4
|
+
states: {
|
|
5
|
+
createTrigger: {
|
|
6
|
+
get: boolean;
|
|
7
|
+
set: Dispatch<SetStateAction<boolean>>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
title?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
actions?: Actions;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: React.MemoExoticComponent<({ states, title, description, actions }: IProps) => React.JSX.Element>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { memo } from "react";
|
|
2
|
+
import ActionButtons from "./ActionButtons";
|
|
3
|
+
const Header = ({ states, title, description, actions }) => {
|
|
4
|
+
return (React.createElement("div", { className: "header" },
|
|
5
|
+
React.createElement("div", { className: "title" },
|
|
6
|
+
React.createElement("h4", null, title),
|
|
7
|
+
description && React.createElement("h5", null, description)),
|
|
8
|
+
actions && React.createElement(ActionButtons, { states: states, actions: actions })));
|
|
9
|
+
};
|
|
10
|
+
export default memo(Header);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "../../../assets/css/components/data-display/table/styles.css";
|
|
2
|
+
import IProps from "./IProps";
|
|
3
|
+
import React from "react";
|
|
4
|
+
declare const _default: <T extends object>(props: IProps<T> & {
|
|
5
|
+
ref?: React.Ref<HTMLTableElement>;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export default _default;
|