@ayasofyazilim/ui 0.0.0 → 0.0.2
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/dist/aria/index.js +2 -0
- package/dist/aria/index.js.map +1 -0
- package/dist/aria/number-field.js +46 -0
- package/dist/aria/number-field.js.map +1 -0
- package/dist/components/accordion.js +66 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.js +148 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.js +69 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.js +12 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/avatar.js +55 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.js +62 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.js +104 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button-group.js +77 -0
- package/dist/components/button-group.js.map +1 -0
- package/dist/components/button.js +56 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.js +196 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.js +91 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.js +200 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.js +250 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.js +33 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.js +36 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/command.js +178 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.js +225 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/dialog.js +139 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.js +234 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/empty.js +100 -0
- package/dist/components/empty.js.map +1 -0
- package/dist/components/field.js +231 -0
- package/dist/components/field.js.map +1 -0
- package/dist/components/form.js +124 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/hover-card.js +40 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.js +156 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-otp.js +68 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.js +22 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/item.js +188 -0
- package/dist/components/item.js.map +1 -0
- package/dist/components/kbd.js +32 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.js +24 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/menubar.js +253 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/navigation-menu.js +171 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.js +125 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.js +82 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.js +33 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.js +47 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/resizable.js +50 -0
- package/dist/components/resizable.js.map +1 -0
- package/dist/components/scroll-area.js +62 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.js +173 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.js +28 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.js +129 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/sidebar.js +759 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.js +16 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.js +65 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.js +40 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/spinner.js +18 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/components/stepper.js +220 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch.js +33 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.js +131 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.js +69 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.js +19 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toggle-group.js +70 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.js +45 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.js +65 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/custom/action-button.js +38 -0
- package/dist/custom/action-button.js.map +1 -0
- package/dist/custom/async-select.js +249 -0
- package/dist/custom/async-select.js.map +1 -0
- package/dist/custom/awesome-not-found.js +113 -0
- package/dist/custom/awesome-not-found.js.map +1 -0
- package/dist/custom/charts/area-chart.js +125 -0
- package/dist/custom/charts/area-chart.js.map +1 -0
- package/dist/custom/charts/bar-chart.js +232 -0
- package/dist/custom/charts/bar-chart.js.map +1 -0
- package/dist/custom/charts/chart-card.js +71 -0
- package/dist/custom/charts/chart-card.js.map +1 -0
- package/dist/custom/charts/index.js +5 -0
- package/dist/custom/charts/index.js.map +1 -0
- package/dist/custom/charts/pie-chart.js +153 -0
- package/dist/custom/charts/pie-chart.js.map +1 -0
- package/dist/custom/charts/radar-chart.js +112 -0
- package/dist/custom/charts/radar-chart.js.map +1 -0
- package/dist/custom/checkbox-tree.js +70 -0
- package/dist/custom/checkbox-tree.js.map +1 -0
- package/dist/custom/combobox.js +233 -0
- package/dist/custom/combobox.js.map +1 -0
- package/dist/custom/confirm-dialog.js +90 -0
- package/dist/custom/confirm-dialog.js.map +1 -0
- package/dist/custom/country-selector.js +151 -0
- package/dist/custom/country-selector.js.map +1 -0
- package/dist/custom/date-picker/calendar-rac.js +91 -0
- package/dist/custom/date-picker/calendar-rac.js.map +1 -0
- package/dist/custom/date-picker/datefield-rac.js +77 -0
- package/dist/custom/date-picker/datefield-rac.js.map +1 -0
- package/dist/custom/date-picker/index.js +251 -0
- package/dist/custom/date-picker/index.js.map +1 -0
- package/dist/custom/date-picker/types/index.js +1 -0
- package/dist/custom/date-picker/types/index.js.map +1 -0
- package/dist/custom/date-picker/utils/index.js +30 -0
- package/dist/custom/date-picker/utils/index.js.map +1 -0
- package/dist/custom/date-picker-old.js +46 -0
- package/dist/custom/date-picker-old.js.map +1 -0
- package/dist/custom/date-tooltip.js +89 -0
- package/dist/custom/date-tooltip.js.map +1 -0
- package/dist/custom/document-scanner/consts.js +13 -0
- package/dist/custom/document-scanner/consts.js.map +1 -0
- package/dist/custom/document-scanner/corner-adjustment/action-buttons.js +24 -0
- package/dist/custom/document-scanner/corner-adjustment/action-buttons.js.map +1 -0
- package/dist/custom/document-scanner/corner-adjustment/corner-handle.js +44 -0
- package/dist/custom/document-scanner/corner-adjustment/corner-handle.js.map +1 -0
- package/dist/custom/document-scanner/corner-adjustment/hooks/use-corner-drag.js +60 -0
- package/dist/custom/document-scanner/corner-adjustment/hooks/use-corner-drag.js.map +1 -0
- package/dist/custom/document-scanner/corner-adjustment/index.js +124 -0
- package/dist/custom/document-scanner/corner-adjustment/index.js.map +1 -0
- package/dist/custom/document-scanner/corner-adjustment/types.js +1 -0
- package/dist/custom/document-scanner/corner-adjustment/types.js.map +1 -0
- package/dist/custom/document-scanner/corner-adjustment/utils/clip-path.js +16 -0
- package/dist/custom/document-scanner/corner-adjustment/utils/clip-path.js.map +1 -0
- package/dist/custom/document-scanner/corner-adjustment/zoom-magnifier.js +85 -0
- package/dist/custom/document-scanner/corner-adjustment/zoom-magnifier.js.map +1 -0
- package/dist/custom/document-scanner/hooks/use-document-capture.js +61 -0
- package/dist/custom/document-scanner/hooks/use-document-capture.js.map +1 -0
- package/dist/custom/document-scanner/hooks/use-document-scanner.js +59 -0
- package/dist/custom/document-scanner/hooks/use-document-scanner.js.map +1 -0
- package/dist/custom/document-scanner/hooks/use-perspective-crop.js +31 -0
- package/dist/custom/document-scanner/hooks/use-perspective-crop.js.map +1 -0
- package/dist/custom/document-scanner/index.js +229 -0
- package/dist/custom/document-scanner/index.js.map +1 -0
- package/dist/custom/document-scanner/lib.js +289 -0
- package/dist/custom/document-scanner/lib.js.map +1 -0
- package/dist/custom/document-scanner/types.js +1 -0
- package/dist/custom/document-scanner/types.js.map +1 -0
- package/dist/custom/document-scanner/utils/perspective-correction.js +100 -0
- package/dist/custom/document-scanner/utils/perspective-correction.js.map +1 -0
- package/dist/custom/document-viewer/controllers.js +76 -0
- package/dist/custom/document-viewer/controllers.js.map +1 -0
- package/dist/custom/document-viewer/index.js +36 -0
- package/dist/custom/document-viewer/index.js.map +1 -0
- package/dist/custom/document-viewer/renderers/image.js +40 -0
- package/dist/custom/document-viewer/renderers/image.js.map +1 -0
- package/dist/custom/document-viewer/renderers/index.js +3 -0
- package/dist/custom/document-viewer/renderers/index.js.map +1 -0
- package/dist/custom/document-viewer/renderers/pdf.js +95 -0
- package/dist/custom/document-viewer/renderers/pdf.js.map +1 -0
- package/dist/custom/email-input/email.js +184 -0
- package/dist/custom/email-input/email.js.map +1 -0
- package/dist/custom/email-input/index.js +8 -0
- package/dist/custom/email-input/index.js.map +1 -0
- package/dist/custom/email-input/types.js +13 -0
- package/dist/custom/email-input/types.js.map +1 -0
- package/dist/custom/file-uploader.js +389 -0
- package/dist/custom/file-uploader.js.map +1 -0
- package/dist/custom/filter-component/fields/async-select.js +31 -0
- package/dist/custom/filter-component/fields/async-select.js.map +1 -0
- package/dist/custom/filter-component/fields/date.js +56 -0
- package/dist/custom/filter-component/fields/date.js.map +1 -0
- package/dist/custom/filter-component/fields/multi-select.js +28 -0
- package/dist/custom/filter-component/fields/multi-select.js.map +1 -0
- package/dist/custom/filter-component/index.js +149 -0
- package/dist/custom/filter-component/index.js.map +1 -0
- package/dist/custom/image-canvas.js +193 -0
- package/dist/custom/image-canvas.js.map +1 -0
- package/dist/custom/json-editor.js +30 -0
- package/dist/custom/json-editor.js.map +1 -0
- package/dist/custom/master-data-grid/components/dialogs/column-settings-dialog.js +84 -0
- package/dist/custom/master-data-grid/components/dialogs/column-settings-dialog.js.map +1 -0
- package/dist/custom/master-data-grid/components/dialogs/index.js +5 -0
- package/dist/custom/master-data-grid/components/dialogs/index.js.map +1 -0
- package/dist/custom/master-data-grid/components/filters/client-filter.js +310 -0
- package/dist/custom/master-data-grid/components/filters/client-filter.js.map +1 -0
- package/dist/custom/master-data-grid/components/filters/filter-input.js +209 -0
- package/dist/custom/master-data-grid/components/filters/filter-input.js.map +1 -0
- package/dist/custom/master-data-grid/components/filters/index.js +9 -0
- package/dist/custom/master-data-grid/components/filters/index.js.map +1 -0
- package/dist/custom/master-data-grid/components/filters/inline-column-filter.js +188 -0
- package/dist/custom/master-data-grid/components/filters/inline-column-filter.js.map +1 -0
- package/dist/custom/master-data-grid/components/filters/multi-filter-dialog.js +65 -0
- package/dist/custom/master-data-grid/components/filters/multi-filter-dialog.js.map +1 -0
- package/dist/custom/master-data-grid/components/filters/server-filter.js +213 -0
- package/dist/custom/master-data-grid/components/filters/server-filter.js.map +1 -0
- package/dist/custom/master-data-grid/components/master-data-grid.js +421 -0
- package/dist/custom/master-data-grid/components/master-data-grid.js.map +1 -0
- package/dist/custom/master-data-grid/components/pagination/index.js +5 -0
- package/dist/custom/master-data-grid/components/pagination/index.js.map +1 -0
- package/dist/custom/master-data-grid/components/pagination/pagination.js +159 -0
- package/dist/custom/master-data-grid/components/pagination/pagination.js.map +1 -0
- package/dist/custom/master-data-grid/components/table/cell-renderer.js +442 -0
- package/dist/custom/master-data-grid/components/table/cell-renderer.js.map +1 -0
- package/dist/custom/master-data-grid/components/table/header-cell.js +116 -0
- package/dist/custom/master-data-grid/components/table/header-cell.js.map +1 -0
- package/dist/custom/master-data-grid/components/table/index.js +5 -0
- package/dist/custom/master-data-grid/components/table/index.js.map +1 -0
- package/dist/custom/master-data-grid/components/table/table-body-renderer.js +79 -0
- package/dist/custom/master-data-grid/components/table/table-body-renderer.js.map +1 -0
- package/dist/custom/master-data-grid/components/table/virtual-body.js +86 -0
- package/dist/custom/master-data-grid/components/table/virtual-body.js.map +1 -0
- package/dist/custom/master-data-grid/components/toolbar/index.js +5 -0
- package/dist/custom/master-data-grid/components/toolbar/index.js.map +1 -0
- package/dist/custom/master-data-grid/components/toolbar/toolbar.js +238 -0
- package/dist/custom/master-data-grid/components/toolbar/toolbar.js.map +1 -0
- package/dist/custom/master-data-grid/hooks/index.js +7 -0
- package/dist/custom/master-data-grid/hooks/index.js.map +1 -0
- package/dist/custom/master-data-grid/hooks/use-columns.js +278 -0
- package/dist/custom/master-data-grid/hooks/use-columns.js.map +1 -0
- package/dist/custom/master-data-grid/hooks/use-editing.js +75 -0
- package/dist/custom/master-data-grid/hooks/use-editing.js.map +1 -0
- package/dist/custom/master-data-grid/hooks/use-table-state-reducer.js +96 -0
- package/dist/custom/master-data-grid/hooks/use-table-state-reducer.js.map +1 -0
- package/dist/custom/master-data-grid/hooks/use-table-state.js +25 -0
- package/dist/custom/master-data-grid/hooks/use-table-state.js.map +1 -0
- package/dist/custom/master-data-grid/index.js +5 -0
- package/dist/custom/master-data-grid/index.js.map +1 -0
- package/dist/custom/master-data-grid/types.js +1 -0
- package/dist/custom/master-data-grid/types.js.map +1 -0
- package/dist/custom/master-data-grid/utils/column-generator.js +203 -0
- package/dist/custom/master-data-grid/utils/column-generator.js.map +1 -0
- package/dist/custom/master-data-grid/utils/export-utils.js +46 -0
- package/dist/custom/master-data-grid/utils/export-utils.js.map +1 -0
- package/dist/custom/master-data-grid/utils/filter-fns.js +218 -0
- package/dist/custom/master-data-grid/utils/filter-fns.js.map +1 -0
- package/dist/custom/master-data-grid/utils/index.js +16 -0
- package/dist/custom/master-data-grid/utils/index.js.map +1 -0
- package/dist/custom/master-data-grid/utils/pinning-utils.js +70 -0
- package/dist/custom/master-data-grid/utils/pinning-utils.js.map +1 -0
- package/dist/custom/master-data-grid/utils/translation-utils.js +33 -0
- package/dist/custom/master-data-grid/utils/translation-utils.js.map +1 -0
- package/dist/custom/multi-select.js +339 -0
- package/dist/custom/multi-select.js.map +1 -0
- package/dist/custom/password-input.js +158 -0
- package/dist/custom/password-input.js.map +1 -0
- package/dist/custom/phone-input.js +127 -0
- package/dist/custom/phone-input.js.map +1 -0
- package/dist/custom/schema-form/custom/index.js +2 -0
- package/dist/custom/schema-form/custom/index.js.map +1 -0
- package/dist/custom/schema-form/custom/label.js +39 -0
- package/dist/custom/schema-form/custom/label.js.map +1 -0
- package/dist/custom/schema-form/fields/base-input-field.js +73 -0
- package/dist/custom/schema-form/fields/base-input-field.js.map +1 -0
- package/dist/custom/schema-form/fields/field.js +72 -0
- package/dist/custom/schema-form/fields/field.js.map +1 -0
- package/dist/custom/schema-form/fields/index.js +6 -0
- package/dist/custom/schema-form/fields/index.js.map +1 -0
- package/dist/custom/schema-form/fields/object.js +9 -0
- package/dist/custom/schema-form/fields/object.js.map +1 -0
- package/dist/custom/schema-form/fields/table-array/array-field-item.js +58 -0
- package/dist/custom/schema-form/fields/table-array/array-field-item.js.map +1 -0
- package/dist/custom/schema-form/fields/table-array/array-field-template.js +104 -0
- package/dist/custom/schema-form/fields/table-array/array-field-template.js.map +1 -0
- package/dist/custom/schema-form/index.js +219 -0
- package/dist/custom/schema-form/index.js.map +1 -0
- package/dist/custom/schema-form/templates/description.js +19 -0
- package/dist/custom/schema-form/templates/description.js.map +1 -0
- package/dist/custom/schema-form/templates/index.js +3 -0
- package/dist/custom/schema-form/templates/index.js.map +1 -0
- package/dist/custom/schema-form/templates/submit.js +31 -0
- package/dist/custom/schema-form/templates/submit.js.map +1 -0
- package/dist/custom/schema-form/types.js +1 -0
- package/dist/custom/schema-form/types.js.map +1 -0
- package/dist/custom/schema-form/utils/index.js +10 -0
- package/dist/custom/schema-form/utils/index.js.map +1 -0
- package/dist/custom/schema-form/utils/schema-dependency.js +349 -0
- package/dist/custom/schema-form/utils/schema-dependency.js.map +1 -0
- package/dist/custom/schema-form/utils/schemas.js +190 -0
- package/dist/custom/schema-form/utils/schemas.js.map +1 -0
- package/dist/custom/schema-form/utils/validation.js +19 -0
- package/dist/custom/schema-form/utils/validation.js.map +1 -0
- package/dist/custom/schema-form/widgets/boolean.js +73 -0
- package/dist/custom/schema-form/widgets/boolean.js.map +1 -0
- package/dist/custom/schema-form/widgets/combobox.js +222 -0
- package/dist/custom/schema-form/widgets/combobox.js.map +1 -0
- package/dist/custom/schema-form/widgets/date.js +56 -0
- package/dist/custom/schema-form/widgets/date.js.map +1 -0
- package/dist/custom/schema-form/widgets/email.js +37 -0
- package/dist/custom/schema-form/widgets/email.js.map +1 -0
- package/dist/custom/schema-form/widgets/index.js +11 -0
- package/dist/custom/schema-form/widgets/index.js.map +1 -0
- package/dist/custom/schema-form/widgets/password.js +42 -0
- package/dist/custom/schema-form/widgets/password.js.map +1 -0
- package/dist/custom/schema-form/widgets/phone.js +39 -0
- package/dist/custom/schema-form/widgets/phone.js.map +1 -0
- package/dist/custom/schema-form/widgets/select.js +78 -0
- package/dist/custom/schema-form/widgets/select.js.map +1 -0
- package/dist/custom/schema-form/widgets/selectable.js +25 -0
- package/dist/custom/schema-form/widgets/selectable.js.map +1 -0
- package/dist/custom/schema-form/widgets/string-array.js +237 -0
- package/dist/custom/schema-form/widgets/string-array.js.map +1 -0
- package/dist/custom/schema-form/widgets/url.js +53 -0
- package/dist/custom/schema-form/widgets/url.js.map +1 -0
- package/dist/custom/section-layout-v2.js +150 -0
- package/dist/custom/section-layout-v2.js.map +1 -0
- package/dist/custom/select-tabs.js +66 -0
- package/dist/custom/select-tabs.js.map +1 -0
- package/dist/custom/selectable.js +231 -0
- package/dist/custom/selectable.js.map +1 -0
- package/dist/custom/stepper.js +166 -0
- package/dist/custom/stepper.js.map +1 -0
- package/dist/custom/tab-layout.js +182 -0
- package/dist/custom/tab-layout.js.map +1 -0
- package/dist/custom/tanstack-table/fields/index.js +13 -0
- package/dist/custom/tanstack-table/fields/index.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-action-dialogs.js +76 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-action-dialogs.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-column-header.js +47 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-column-header.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-filter-date.js +132 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-filter-date.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-filter-faceted.js +131 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-filter-faceted.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-filter-text.js +64 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-filter-text.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-pagination.js +135 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-pagination.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-plain-table.js +111 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-plain-table.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-row-actions-confirmation.js +65 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-row-actions-confirmation.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-row-actions-custom-dialog.js +69 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-row-actions-custom-dialog.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-row-actions.js +119 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-row-actions.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-table-actions-custom-dialog.js +75 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-table-actions-custom-dialog.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-table-actions-schemaform-dialog.js +41 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-table-actions-schemaform-dialog.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-toolbar.js +106 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-toolbar.js.map +1 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-view-options.js +132 -0
- package/dist/custom/tanstack-table/fields/tanstack-table-view-options.js.map +1 -0
- package/dist/custom/tanstack-table/index.js +217 -0
- package/dist/custom/tanstack-table/index.js.map +1 -0
- package/dist/custom/tanstack-table/types/index.js +1 -0
- package/dist/custom/tanstack-table/types/index.js.map +1 -0
- package/dist/custom/tanstack-table/utils/cell-with-actions.js +16 -0
- package/dist/custom/tanstack-table/utils/cell-with-actions.js.map +1 -0
- package/dist/custom/tanstack-table/utils/column-names.js +15 -0
- package/dist/custom/tanstack-table/utils/column-names.js.map +1 -0
- package/dist/custom/tanstack-table/utils/columns-by-row-data.js +246 -0
- package/dist/custom/tanstack-table/utils/columns-by-row-data.js.map +1 -0
- package/dist/custom/tanstack-table/utils/editable-columns-by-row-data.js +187 -0
- package/dist/custom/tanstack-table/utils/editable-columns-by-row-data.js.map +1 -0
- package/dist/custom/tanstack-table/utils/faceted-boolean-options.js +25 -0
- package/dist/custom/tanstack-table/utils/faceted-boolean-options.js.map +1 -0
- package/dist/custom/tanstack-table/utils/index.js +10 -0
- package/dist/custom/tanstack-table/utils/index.js.map +1 -0
- package/dist/custom/tanstack-table/utils/pinning-styles.js +38 -0
- package/dist/custom/tanstack-table/utils/pinning-styles.js.map +1 -0
- package/dist/custom/tanstack-table/utils/table.js +66 -0
- package/dist/custom/tanstack-table/utils/table.js.map +1 -0
- package/dist/custom/tanstack-table/utils/test-conditions.js +10 -0
- package/dist/custom/tanstack-table/utils/test-conditions.js.map +1 -0
- package/dist/custom/timeline.js +165 -0
- package/dist/custom/timeline.js.map +1 -0
- package/dist/custom/tree.js +130 -0
- package/dist/custom/tree.js.map +1 -0
- package/dist/custom/tscanify/browser.js +36 -0
- package/dist/custom/tscanify/browser.js.map +1 -0
- package/dist/custom/tscanify/index.js +34 -0
- package/dist/custom/tscanify/index.js.map +1 -0
- package/dist/custom/tscanify/tscanify-browser.js +363 -0
- package/dist/custom/tscanify/tscanify-browser.js.map +1 -0
- package/dist/custom/tscanify/tscanify.js +197 -0
- package/dist/custom/tscanify/tscanify.js.map +1 -0
- package/dist/custom/tscanify/types.js +1 -0
- package/dist/custom/tscanify/types.js.map +1 -0
- package/dist/custom/webcam.js +519 -0
- package/dist/custom/webcam.js.map +1 -0
- package/dist/hooks/use-callback-ref.js +15 -0
- package/dist/hooks/use-callback-ref.js.map +1 -0
- package/dist/hooks/use-controllable-state.js +49 -0
- package/dist/hooks/use-controllable-state.js.map +1 -0
- package/dist/hooks/use-debounce.js +18 -0
- package/dist/hooks/use-debounce.js.map +1 -0
- package/dist/hooks/use-is-visible.js +22 -0
- package/dist/hooks/use-is-visible.js.map +1 -0
- package/dist/hooks/use-media-query.js +19 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-mobile.js +21 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-on-window-resize.js +15 -0
- package/dist/hooks/use-on-window-resize.js.map +1 -0
- package/dist/hooks/use-scroll.js +20 -0
- package/dist/hooks/use-scroll.js.map +1 -0
- package/dist/lib/utils.js +48 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/zod.js +7 -0
- package/dist/lib/zod.js.map +1 -0
- package/package.json +34 -8
- package/src/aria/index.tsx +1 -1
- package/src/aria/number-field.tsx +41 -41
- package/src/components/accordion.tsx +66 -66
- package/src/components/alert-dialog.tsx +157 -157
- package/src/components/alert.tsx +70 -70
- package/src/components/aspect-ratio.tsx +11 -11
- package/src/components/avatar.tsx +53 -53
- package/src/components/badge.tsx +74 -67
- package/src/components/breadcrumb.tsx +109 -109
- package/src/components/button-group.tsx +83 -83
- package/src/components/button.tsx +69 -68
- package/src/components/calendar.tsx +216 -219
- package/src/components/card.tsx +92 -92
- package/src/components/carousel.tsx +241 -241
- package/src/components/chart.tsx +363 -363
- package/src/components/checkbox.tsx +32 -32
- package/src/components/collapsible.tsx +33 -33
- package/src/components/command.tsx +184 -184
- package/src/components/context-menu.tsx +252 -252
- package/src/components/dialog.tsx +144 -144
- package/src/components/drawer.tsx +135 -135
- package/src/components/dropdown-menu.tsx +258 -258
- package/src/components/empty.tsx +100 -100
- package/src/components/field.tsx +248 -248
- package/src/components/form.tsx +169 -169
- package/src/components/hover-card.tsx +44 -44
- package/src/components/input-group.tsx +170 -170
- package/src/components/input-otp.tsx +77 -77
- package/src/components/input.tsx +21 -21
- package/src/components/item.tsx +193 -193
- package/src/components/kbd.tsx +28 -28
- package/src/components/label.tsx +24 -24
- package/src/components/menubar.tsx +276 -276
- package/src/components/navigation-menu.tsx +168 -168
- package/src/components/pagination.tsx +127 -130
- package/src/components/popover.tsx +88 -88
- package/src/components/progress.tsx +31 -31
- package/src/components/radio-group.tsx +45 -45
- package/src/components/resizable.tsx +56 -56
- package/src/components/scroll-area.tsx +58 -58
- package/src/components/select.tsx +189 -189
- package/src/components/separator.tsx +28 -28
- package/src/components/sheet.tsx +140 -140
- package/src/components/sidebar.tsx +862 -862
- package/src/components/skeleton.tsx +13 -13
- package/src/components/slider.tsx +63 -63
- package/src/components/sonner.tsx +40 -40
- package/src/components/spinner.tsx +16 -16
- package/src/components/stepper.tsx +290 -291
- package/src/components/switch.tsx +31 -31
- package/src/components/table.tsx +133 -133
- package/src/components/tabs.tsx +66 -66
- package/src/components/textarea.tsx +18 -18
- package/src/components/toggle-group.tsx +83 -83
- package/src/components/toggle.tsx +47 -47
- package/src/components/tooltip.tsx +66 -66
- package/src/custom/action-button.tsx +45 -48
- package/src/custom/async-select.tsx +287 -287
- package/src/custom/awesome-not-found.tsx +116 -116
- package/src/custom/charts/area-chart.tsx +147 -147
- package/src/custom/charts/bar-chart.tsx +233 -233
- package/src/custom/charts/chart-card.tsx +103 -103
- package/src/custom/charts/index.tsx +16 -16
- package/src/custom/charts/pie-chart.tsx +168 -168
- package/src/custom/charts/radar-chart.tsx +126 -126
- package/src/custom/checkbox-tree.tsx +100 -100
- package/src/custom/combobox.tsx +296 -296
- package/src/custom/confirm-dialog.tsx +114 -102
- package/src/custom/country-selector.tsx +204 -204
- package/src/custom/date-picker/calendar-rac.tsx +109 -109
- package/src/custom/date-picker/datefield-rac.tsx +84 -84
- package/src/custom/date-picker/index.tsx +273 -273
- package/src/custom/date-picker/types/index.ts +4 -4
- package/src/custom/date-picker/utils/index.ts +42 -42
- package/src/custom/date-picker-old.tsx +50 -50
- package/src/custom/date-tooltip.tsx +98 -98
- package/src/custom/document-scanner/consts.ts +5 -5
- package/src/custom/document-scanner/corner-adjustment/action-buttons.tsx +33 -33
- package/src/custom/document-scanner/corner-adjustment/corner-handle.tsx +43 -43
- package/src/custom/document-scanner/corner-adjustment/hooks/use-corner-drag.ts +85 -85
- package/src/custom/document-scanner/corner-adjustment/index.tsx +125 -125
- package/src/custom/document-scanner/corner-adjustment/types.ts +53 -53
- package/src/custom/document-scanner/corner-adjustment/utils/clip-path.ts +22 -22
- package/src/custom/document-scanner/corner-adjustment/zoom-magnifier.tsx +115 -115
- package/src/custom/document-scanner/hooks/use-document-capture.ts +81 -81
- package/src/custom/document-scanner/hooks/use-document-scanner.ts +80 -80
- package/src/custom/document-scanner/hooks/use-perspective-crop.ts +38 -38
- package/src/custom/document-scanner/index.tsx +255 -255
- package/src/custom/document-scanner/lib.ts +407 -407
- package/src/custom/document-scanner/types.ts +205 -205
- package/src/custom/document-scanner/utils/perspective-correction.ts +139 -139
- package/src/custom/document-viewer/controllers.tsx +98 -98
- package/src/custom/document-viewer/index.tsx +43 -43
- package/src/custom/document-viewer/renderers/image.tsx +37 -37
- package/src/custom/document-viewer/renderers/index.tsx +2 -2
- package/src/custom/document-viewer/renderers/pdf.tsx +105 -105
- package/src/custom/email-input/domains.json +159 -159
- package/src/custom/email-input/email.tsx +231 -229
- package/src/custom/email-input/index.tsx +4 -4
- package/src/custom/email-input/types.ts +104 -104
- package/src/custom/file-uploader.tsx +541 -541
- package/src/custom/filter-component/fields/async-select.tsx +33 -33
- package/src/custom/filter-component/fields/date.tsx +60 -60
- package/src/custom/filter-component/fields/multi-select.tsx +30 -30
- package/src/custom/filter-component/index.tsx +217 -217
- package/src/custom/image-canvas.tsx +260 -260
- package/src/custom/json-editor.tsx +22 -22
- package/src/custom/master-data-grid/components/dialogs/column-settings-dialog.tsx +100 -100
- package/src/custom/master-data-grid/components/dialogs/index.ts +1 -1
- package/src/custom/master-data-grid/components/filters/client-filter.tsx +369 -368
- package/src/custom/master-data-grid/components/filters/filter-input.tsx +256 -256
- package/src/custom/master-data-grid/components/filters/index.ts +3 -3
- package/src/custom/master-data-grid/components/filters/inline-column-filter.tsx +233 -233
- package/src/custom/master-data-grid/components/filters/multi-filter-dialog.tsx +91 -90
- package/src/custom/master-data-grid/components/filters/server-filter.tsx +265 -255
- package/src/custom/master-data-grid/components/master-data-grid.tsx +472 -472
- package/src/custom/master-data-grid/components/pagination/index.ts +1 -1
- package/src/custom/master-data-grid/components/pagination/pagination.tsx +178 -178
- package/src/custom/master-data-grid/components/table/cell-renderer.tsx +621 -634
- package/src/custom/master-data-grid/components/table/header-cell.tsx +162 -162
- package/src/custom/master-data-grid/components/table/index.ts +4 -4
- package/src/custom/master-data-grid/components/table/table-body-renderer.tsx +113 -113
- package/src/custom/master-data-grid/components/table/virtual-body.tsx +138 -138
- package/src/custom/master-data-grid/components/toolbar/index.ts +1 -1
- package/src/custom/master-data-grid/components/toolbar/toolbar.tsx +314 -314
- package/src/custom/master-data-grid/hooks/index.ts +3 -3
- package/src/custom/master-data-grid/hooks/use-columns.tsx +353 -332
- package/src/custom/master-data-grid/hooks/use-editing.ts +106 -106
- package/src/custom/master-data-grid/hooks/use-table-state-reducer.ts +157 -157
- package/src/custom/master-data-grid/hooks/use-table-state.ts +31 -31
- package/src/custom/master-data-grid/index.ts +16 -16
- package/src/custom/master-data-grid/types.ts +487 -466
- package/src/custom/master-data-grid/utils/column-generator.tsx +324 -306
- package/src/custom/master-data-grid/utils/export-utils.ts +67 -67
- package/src/custom/master-data-grid/utils/filter-fns.ts +310 -290
- package/src/custom/master-data-grid/utils/index.ts +8 -8
- package/src/custom/master-data-grid/utils/pinning-utils.ts +88 -88
- package/src/custom/master-data-grid/utils/translation-utils.ts +42 -42
- package/src/custom/multi-select.tsx +434 -432
- package/src/custom/password-input.tsx +194 -194
- package/src/custom/phone-input.tsx +172 -172
- package/src/custom/schema-form/custom/index.tsx +1 -1
- package/src/custom/schema-form/custom/label.tsx +53 -53
- package/src/custom/schema-form/fields/base-input-field.tsx +82 -82
- package/src/custom/schema-form/fields/field.tsx +67 -67
- package/src/custom/schema-form/fields/index.tsx +5 -5
- package/src/custom/schema-form/fields/object.tsx +12 -12
- package/src/custom/schema-form/fields/table-array/array-field-item.tsx +90 -90
- package/src/custom/schema-form/fields/table-array/array-field-template.tsx +115 -115
- package/src/custom/schema-form/index.tsx +259 -259
- package/src/custom/schema-form/templates/description.tsx +20 -20
- package/src/custom/schema-form/templates/index.tsx +2 -2
- package/src/custom/schema-form/templates/submit.tsx +32 -32
- package/src/custom/schema-form/types.ts +64 -64
- package/src/custom/schema-form/utils/index.ts +4 -4
- package/src/custom/schema-form/utils/schema-dependency.ts +655 -655
- package/src/custom/schema-form/utils/schemas.ts +289 -289
- package/src/custom/schema-form/utils/validation.ts +23 -23
- package/src/custom/schema-form/widgets/boolean.tsx +77 -77
- package/src/custom/schema-form/widgets/combobox.tsx +274 -274
- package/src/custom/schema-form/widgets/date.tsx +59 -59
- package/src/custom/schema-form/widgets/email.tsx +34 -34
- package/src/custom/schema-form/widgets/index.tsx +10 -10
- package/src/custom/schema-form/widgets/password.tsx +40 -40
- package/src/custom/schema-form/widgets/phone.tsx +40 -40
- package/src/custom/schema-form/widgets/select.tsx +105 -105
- package/src/custom/schema-form/widgets/selectable.tsx +25 -25
- package/src/custom/schema-form/widgets/string-array.tsx +296 -296
- package/src/custom/schema-form/widgets/url.tsx +56 -56
- package/src/custom/section-layout-v2.tsx +212 -212
- package/src/custom/select-tabs.tsx +109 -109
- package/src/custom/selectable.tsx +316 -316
- package/src/custom/stepper.tsx +236 -236
- package/src/custom/tab-layout.tsx +213 -213
- package/src/custom/tanstack-table/fields/index.tsx +12 -12
- package/src/custom/tanstack-table/fields/tanstack-table-action-dialogs.tsx +89 -89
- package/src/custom/tanstack-table/fields/tanstack-table-column-header.tsx +68 -66
- package/src/custom/tanstack-table/fields/tanstack-table-filter-date.tsx +180 -180
- package/src/custom/tanstack-table/fields/tanstack-table-filter-faceted.tsx +158 -158
- package/src/custom/tanstack-table/fields/tanstack-table-filter-text.tsx +73 -76
- package/src/custom/tanstack-table/fields/tanstack-table-pagination.tsx +136 -136
- package/src/custom/tanstack-table/fields/tanstack-table-plain-table.tsx +142 -142
- package/src/custom/tanstack-table/fields/tanstack-table-row-actions-confirmation.tsx +77 -77
- package/src/custom/tanstack-table/fields/tanstack-table-row-actions-custom-dialog.tsx +87 -87
- package/src/custom/tanstack-table/fields/tanstack-table-row-actions.tsx +151 -151
- package/src/custom/tanstack-table/fields/tanstack-table-table-actions-custom-dialog.tsx +88 -88
- package/src/custom/tanstack-table/fields/tanstack-table-table-actions-schemaform-dialog.tsx +47 -47
- package/src/custom/tanstack-table/fields/tanstack-table-toolbar.tsx +143 -143
- package/src/custom/tanstack-table/fields/tanstack-table-view-options.tsx +171 -171
- package/src/custom/tanstack-table/index.tsx +244 -244
- package/src/custom/tanstack-table/types/index.ts +328 -328
- package/src/custom/tanstack-table/utils/cell-with-actions.tsx +21 -21
- package/src/custom/tanstack-table/utils/column-names.ts +26 -26
- package/src/custom/tanstack-table/utils/columns-by-row-data.tsx +312 -312
- package/src/custom/tanstack-table/utils/editable-columns-by-row-data.tsx +219 -219
- package/src/custom/tanstack-table/utils/faceted-boolean-options.tsx +22 -22
- package/src/custom/tanstack-table/utils/index.tsx +10 -10
- package/src/custom/tanstack-table/utils/pinning-styles.ts +57 -57
- package/src/custom/tanstack-table/utils/table.tsx +83 -83
- package/src/custom/tanstack-table/utils/test-conditions.ts +17 -17
- package/src/custom/timeline.tsx +208 -208
- package/src/custom/tree.tsx +202 -200
- package/src/custom/tscanify/browser.ts +66 -66
- package/src/custom/tscanify/index.ts +51 -51
- package/src/custom/tscanify/tscanify-browser.ts +522 -522
- package/src/custom/tscanify/tscanify.ts +262 -262
- package/src/custom/tscanify/types.ts +22 -22
- package/src/custom/webcam.tsx +737 -737
- package/src/hooks/use-callback-ref.ts +27 -27
- package/src/hooks/use-controllable-state.ts +67 -67
- package/src/hooks/use-debounce.ts +19 -19
- package/src/hooks/use-is-visible.ts +23 -23
- package/src/hooks/use-media-query.ts +21 -21
- package/src/hooks/use-mobile.ts +21 -21
- package/src/hooks/use-on-window-resize.ts +15 -15
- package/src/hooks/use-scroll.tsx +22 -22
- package/src/lib/utils.ts +61 -61
- package/src/lib/zod.ts +2 -2
- package/src/styles/core.css +57 -57
- package/src/test/email-input.test.tsx +217 -217
- package/src/test/password-input.test.tsx +92 -92
- package/src/test/select-tabs.test.tsx +302 -302
- package/src/test/selectable.test.tsx +1093 -1093
- package/__mocks__/canvas.ts +0 -8
- package/components.json +0 -21
- package/eslint.config.js +0 -4
- package/jest-environment.js +0 -37
- package/jest.config.ts +0 -47
- package/jest.setup.ts +0 -69
- package/postcss.config.mjs +0 -6
- package/tsconfig.json +0 -13
- package/tsconfig.lint.json +0 -8
|
@@ -1,466 +1,487 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
export type { Localization };
|
|
18
|
-
|
|
19
|
-
export interface JSONSchemaProperty {
|
|
20
|
-
type: "string" | "number" | "integer" | "boolean" | "array" | "object";
|
|
21
|
-
format?:
|
|
22
|
-
| "int32"
|
|
23
|
-
| "date"
|
|
24
|
-
| "date-time"
|
|
25
|
-
| "email"
|
|
26
|
-
| "uri"
|
|
27
|
-
| "url"
|
|
28
|
-
| "uuid"
|
|
29
|
-
| "time"
|
|
30
|
-
| "badge";
|
|
31
|
-
enum?: Array<string | number>;
|
|
32
|
-
title?: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
minimum?: number;
|
|
35
|
-
maximum?: number;
|
|
36
|
-
minLength?: number;
|
|
37
|
-
maxLength?: number;
|
|
38
|
-
pattern?: string;
|
|
39
|
-
items?: JSONSchemaProperty;
|
|
40
|
-
properties?: Record<string, JSONSchemaProperty>;
|
|
41
|
-
required?: string[];
|
|
42
|
-
default?: unknown;
|
|
43
|
-
readOnly?: boolean;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface JSONSchema {
|
|
47
|
-
type: "object";
|
|
48
|
-
properties: Record<string, JSONSchemaProperty>;
|
|
49
|
-
required?: string[];
|
|
50
|
-
title?: string;
|
|
51
|
-
description?: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type FilterOperator =
|
|
55
|
-
| "equals"
|
|
56
|
-
| "notEquals"
|
|
57
|
-
| "contains"
|
|
58
|
-
| "notContains"
|
|
59
|
-
| "startsWith"
|
|
60
|
-
| "endsWith"
|
|
61
|
-
| "isEmpty"
|
|
62
|
-
| "isNotEmpty"
|
|
63
|
-
| "greaterThan"
|
|
64
|
-
| "greaterThanOrEqual"
|
|
65
|
-
| "lessThan"
|
|
66
|
-
| "lessThanOrEqual"
|
|
67
|
-
| "between"
|
|
68
|
-
| "inRange"
|
|
69
|
-
| "before"
|
|
70
|
-
| "after"
|
|
71
|
-
| "inList"
|
|
72
|
-
| "notInList";
|
|
73
|
-
|
|
74
|
-
export interface ColumnFilter {
|
|
75
|
-
id: string;
|
|
76
|
-
operator: FilterOperator;
|
|
77
|
-
value: unknown;
|
|
78
|
-
value2?: unknown;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface CellEditConfig<TData = unknown> {
|
|
82
|
-
enabled?: boolean;
|
|
83
|
-
mode?: "cell" | "row";
|
|
84
|
-
errorDisplayMode?: "tooltip" | "inline" | "both";
|
|
85
|
-
onRowSave?: (row: TData, changes: Partial<TData>) => void | Promise<void>;
|
|
86
|
-
onRowCancel?: (row: TData) => void;
|
|
87
|
-
isRowEditable?: (row: TData) => boolean;
|
|
88
|
-
isColumnEditable?: (columnId: string, row: TData) => boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
id: string;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
| "
|
|
97
|
-
| "
|
|
98
|
-
| "
|
|
99
|
-
| "
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
validator?: z.ZodType<string
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
interface
|
|
217
|
-
type: "
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export interface
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
export
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
export
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
meta?:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
"
|
|
408
|
-
"
|
|
409
|
-
"
|
|
410
|
-
"
|
|
411
|
-
"
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
416
|
-
"
|
|
417
|
-
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
421
|
-
"
|
|
422
|
-
"
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"
|
|
426
|
-
|
|
427
|
-
"
|
|
428
|
-
"
|
|
429
|
-
"
|
|
430
|
-
"
|
|
431
|
-
"
|
|
432
|
-
"filter
|
|
433
|
-
"
|
|
434
|
-
"
|
|
435
|
-
"
|
|
436
|
-
"
|
|
437
|
-
"
|
|
438
|
-
|
|
439
|
-
"filter.
|
|
440
|
-
"filter.
|
|
441
|
-
"filter.
|
|
442
|
-
"filter.
|
|
443
|
-
"filter.
|
|
444
|
-
"filter.
|
|
445
|
-
"filter.
|
|
446
|
-
"filter.
|
|
447
|
-
"filter.
|
|
448
|
-
"filter.
|
|
449
|
-
"filter.
|
|
450
|
-
"filter.
|
|
451
|
-
"filter.
|
|
452
|
-
"filter.
|
|
453
|
-
"filter.
|
|
454
|
-
"filter.
|
|
455
|
-
"filter.
|
|
456
|
-
"filter.
|
|
457
|
-
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
|
|
463
|
-
"
|
|
464
|
-
|
|
465
|
-
"
|
|
466
|
-
|
|
1
|
+
import { z } from "@ayasofyazilim/ui/lib/zod";
|
|
2
|
+
import { GenericObjectType } from "@rjsf/utils";
|
|
3
|
+
import type {
|
|
4
|
+
CellContext,
|
|
5
|
+
Column,
|
|
6
|
+
ColumnDef,
|
|
7
|
+
ColumnFiltersState,
|
|
8
|
+
ColumnPinningState,
|
|
9
|
+
Row,
|
|
10
|
+
RowSelectionState,
|
|
11
|
+
SortingState,
|
|
12
|
+
VisibilityState,
|
|
13
|
+
} from "@tanstack/react-table";
|
|
14
|
+
import type { LucideIcon } from "lucide-react";
|
|
15
|
+
import type { Localization } from "../date-tooltip";
|
|
16
|
+
|
|
17
|
+
export type { Localization };
|
|
18
|
+
|
|
19
|
+
export interface JSONSchemaProperty {
|
|
20
|
+
type: "string" | "number" | "integer" | "boolean" | "array" | "object";
|
|
21
|
+
format?:
|
|
22
|
+
| "int32"
|
|
23
|
+
| "date"
|
|
24
|
+
| "date-time"
|
|
25
|
+
| "email"
|
|
26
|
+
| "uri"
|
|
27
|
+
| "url"
|
|
28
|
+
| "uuid"
|
|
29
|
+
| "time"
|
|
30
|
+
| "badge";
|
|
31
|
+
enum?: Array<string | number>;
|
|
32
|
+
title?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
minimum?: number;
|
|
35
|
+
maximum?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
maxLength?: number;
|
|
38
|
+
pattern?: string;
|
|
39
|
+
items?: JSONSchemaProperty;
|
|
40
|
+
properties?: Record<string, JSONSchemaProperty>;
|
|
41
|
+
required?: string[];
|
|
42
|
+
default?: unknown;
|
|
43
|
+
readOnly?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface JSONSchema {
|
|
47
|
+
type: "object";
|
|
48
|
+
properties: Record<string, JSONSchemaProperty>;
|
|
49
|
+
required?: string[];
|
|
50
|
+
title?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type FilterOperator =
|
|
55
|
+
| "equals"
|
|
56
|
+
| "notEquals"
|
|
57
|
+
| "contains"
|
|
58
|
+
| "notContains"
|
|
59
|
+
| "startsWith"
|
|
60
|
+
| "endsWith"
|
|
61
|
+
| "isEmpty"
|
|
62
|
+
| "isNotEmpty"
|
|
63
|
+
| "greaterThan"
|
|
64
|
+
| "greaterThanOrEqual"
|
|
65
|
+
| "lessThan"
|
|
66
|
+
| "lessThanOrEqual"
|
|
67
|
+
| "between"
|
|
68
|
+
| "inRange"
|
|
69
|
+
| "before"
|
|
70
|
+
| "after"
|
|
71
|
+
| "inList"
|
|
72
|
+
| "notInList";
|
|
73
|
+
|
|
74
|
+
export interface ColumnFilter {
|
|
75
|
+
id: string;
|
|
76
|
+
operator: FilterOperator;
|
|
77
|
+
value: unknown;
|
|
78
|
+
value2?: unknown;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface CellEditConfig<TData = unknown> {
|
|
82
|
+
enabled?: boolean;
|
|
83
|
+
mode?: "cell" | "row";
|
|
84
|
+
errorDisplayMode?: "tooltip" | "inline" | "both";
|
|
85
|
+
onRowSave?: (row: TData, changes: Partial<TData>) => void | Promise<void>;
|
|
86
|
+
onRowCancel?: (row: TData) => void;
|
|
87
|
+
isRowEditable?: (row: TData) => boolean;
|
|
88
|
+
isColumnEditable?: (columnId: string, row: TData) => boolean;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
interface BaseRowAction<TData = unknown> {
|
|
92
|
+
id: string;
|
|
93
|
+
variant?:
|
|
94
|
+
| "default"
|
|
95
|
+
| "destructive"
|
|
96
|
+
| "outline"
|
|
97
|
+
| "secondary"
|
|
98
|
+
| "ghost"
|
|
99
|
+
| "link";
|
|
100
|
+
disabled?: boolean | ((row: TData) => boolean);
|
|
101
|
+
hidden?: boolean | ((row: TData) => boolean);
|
|
102
|
+
className?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface StandardRowAction<
|
|
106
|
+
TData = unknown,
|
|
107
|
+
> extends BaseRowAction<TData> {
|
|
108
|
+
label: string | ((row: TData) => string);
|
|
109
|
+
icon?: LucideIcon;
|
|
110
|
+
onClick?: (row: TData, event: React.MouseEvent) => void | Promise<void>;
|
|
111
|
+
render?: never;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface CustomRowAction<TData = unknown> extends BaseRowAction<TData> {
|
|
115
|
+
render: (row: TData) => React.ReactNode;
|
|
116
|
+
onClick?: (row: TData, event: React.MouseEvent) => void | Promise<void>;
|
|
117
|
+
label?: never;
|
|
118
|
+
icon?: never;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type RowAction<TData = unknown> =
|
|
122
|
+
| StandardRowAction<TData>
|
|
123
|
+
| CustomRowAction<TData>;
|
|
124
|
+
|
|
125
|
+
export interface TableAction<TData = unknown> {
|
|
126
|
+
id: string;
|
|
127
|
+
label: string;
|
|
128
|
+
icon?: LucideIcon;
|
|
129
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost";
|
|
130
|
+
onClick?: (selectedRows: TData[]) => void | Promise<void>;
|
|
131
|
+
disabled?: boolean | ((selectedRows: TData[]) => boolean);
|
|
132
|
+
hidden?: boolean | ((selectedRows: TData[]) => boolean);
|
|
133
|
+
requiresSelection?: boolean;
|
|
134
|
+
className?: string;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export interface RowExpansionConfig<TData = unknown> {
|
|
138
|
+
enabled?: boolean;
|
|
139
|
+
renderContent?: (row: TData) => React.ReactNode;
|
|
140
|
+
defaultExpanded?: boolean;
|
|
141
|
+
expanderColumns?: Array<keyof TData> | Array<string>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface ColumnMeta {
|
|
145
|
+
schemaProperty?: JSONSchemaProperty;
|
|
146
|
+
filterOperators?: FilterOperator[];
|
|
147
|
+
[key: string]: unknown;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface ColumnConfig<TData = unknown> {
|
|
151
|
+
id: string;
|
|
152
|
+
header?: string | ((info: { column: Column<TData> }) => React.ReactNode);
|
|
153
|
+
extendHeader?: boolean;
|
|
154
|
+
accessorKey?: string;
|
|
155
|
+
accessorFn?: (row: TData) => unknown;
|
|
156
|
+
enableSorting?: boolean;
|
|
157
|
+
enableFiltering?: boolean;
|
|
158
|
+
enableGrouping?: boolean;
|
|
159
|
+
enablePinning?: boolean;
|
|
160
|
+
enableResizing?: boolean;
|
|
161
|
+
enableHiding?: boolean;
|
|
162
|
+
width?: number;
|
|
163
|
+
minWidth?: number;
|
|
164
|
+
maxWidth?: number;
|
|
165
|
+
cell?: (info: {
|
|
166
|
+
getValue: () => unknown;
|
|
167
|
+
row: Row<TData>;
|
|
168
|
+
}) => React.ReactNode;
|
|
169
|
+
footer?: (info: { column: { id: string } }) => React.ReactNode;
|
|
170
|
+
meta?: ColumnMeta;
|
|
171
|
+
isExpanderColumn?: boolean;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface GroupingConfig {
|
|
175
|
+
enabled?: boolean;
|
|
176
|
+
groupBy?: string[];
|
|
177
|
+
expanded?: Record<string, boolean>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface VirtualizationConfig {
|
|
181
|
+
enabled?: boolean;
|
|
182
|
+
estimateSize?: number;
|
|
183
|
+
overscan?: number;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface SelectionConfig<TData = unknown> {
|
|
187
|
+
enabled?: boolean;
|
|
188
|
+
mode?: "single" | "multiple";
|
|
189
|
+
onSelectionChange?: (selectedRows: TData[]) => void;
|
|
190
|
+
rowSelectable?: (row: TData) => boolean;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface PinningConfig {
|
|
194
|
+
left?: string[];
|
|
195
|
+
right?: string[];
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface ExportConfig<TData = unknown> {
|
|
199
|
+
enabled?: boolean;
|
|
200
|
+
formats?: Array<"csv" | "excel" | "json" | "pdf">;
|
|
201
|
+
filename?: string;
|
|
202
|
+
customExport?: (data: TData[], format: string) => void | Promise<void>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface BaseServerFilterConfig {
|
|
206
|
+
key: string;
|
|
207
|
+
label: string;
|
|
208
|
+
placeholder: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface StringServerFilterConfig extends BaseServerFilterConfig {
|
|
212
|
+
type: "string";
|
|
213
|
+
validator?: z.ZodType<string | undefined>;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
interface NumberServerFilterConfig extends BaseServerFilterConfig {
|
|
217
|
+
type: "number";
|
|
218
|
+
validator?: z.ZodType<number | undefined>;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
interface SelectServerFilterConfig extends BaseServerFilterConfig {
|
|
222
|
+
type: "select";
|
|
223
|
+
options: { label: string; value: string }[];
|
|
224
|
+
validator?: z.ZodType<string | undefined>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface ArrayServerFilterConfig extends BaseServerFilterConfig {
|
|
228
|
+
type: "array";
|
|
229
|
+
options: { label: string; value: string }[];
|
|
230
|
+
validator?: z.ZodType<string[] | undefined>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface BooleanServerFilterConfig extends BaseServerFilterConfig {
|
|
234
|
+
type: "boolean";
|
|
235
|
+
options: { label: string; value: boolean }[];
|
|
236
|
+
validator?: z.ZodType<boolean | undefined>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type ServerFilterConfig =
|
|
240
|
+
| StringServerFilterConfig
|
|
241
|
+
| NumberServerFilterConfig
|
|
242
|
+
| SelectServerFilterConfig
|
|
243
|
+
| ArrayServerFilterConfig
|
|
244
|
+
| BooleanServerFilterConfig;
|
|
245
|
+
|
|
246
|
+
export interface MasterDataGridConfig<TData = unknown> {
|
|
247
|
+
schema?: JSONSchema | GenericObjectType;
|
|
248
|
+
columns?: ColumnConfig<TData>[];
|
|
249
|
+
|
|
250
|
+
t?: MasterDataGridResources;
|
|
251
|
+
|
|
252
|
+
serverFilters?: ServerFilterConfig[];
|
|
253
|
+
serverFilterLocation?: "left" | "right" | "top" | "bottom" | "toolbar";
|
|
254
|
+
enableSorting?: boolean;
|
|
255
|
+
enableFiltering?: boolean;
|
|
256
|
+
enableGrouping?: boolean;
|
|
257
|
+
enablePinning?: boolean;
|
|
258
|
+
enableResizing?: boolean;
|
|
259
|
+
enableColumnVisibility?: boolean;
|
|
260
|
+
enableRowSelection?: boolean;
|
|
261
|
+
enableVirtualization?: boolean;
|
|
262
|
+
enableExport?: boolean;
|
|
263
|
+
enableSearch?: boolean;
|
|
264
|
+
|
|
265
|
+
selection?: SelectionConfig<TData>;
|
|
266
|
+
virtualization?: VirtualizationConfig;
|
|
267
|
+
grouping?: GroupingConfig;
|
|
268
|
+
pinning?: PinningConfig;
|
|
269
|
+
editing?: CellEditConfig<TData>;
|
|
270
|
+
expansion?: RowExpansionConfig<TData>;
|
|
271
|
+
export?: ExportConfig<TData>;
|
|
272
|
+
|
|
273
|
+
rowActions?: RowAction<TData>[];
|
|
274
|
+
tableActions?: TableAction<TData>[];
|
|
275
|
+
|
|
276
|
+
className?: string;
|
|
277
|
+
containerClassName?: string;
|
|
278
|
+
tableClassName?: string;
|
|
279
|
+
headerClassName?: string;
|
|
280
|
+
bodyClassName?: string;
|
|
281
|
+
rowClassName?: string | ((row: TData) => string);
|
|
282
|
+
cellClassName?: string | ((cell: { row: TData; columnId: string }) => string);
|
|
283
|
+
|
|
284
|
+
enablePagination?: boolean;
|
|
285
|
+
pageSize?: number;
|
|
286
|
+
pageSizeOptions?: number[];
|
|
287
|
+
loading?: boolean;
|
|
288
|
+
loadingComponent?: React.ReactNode;
|
|
289
|
+
emptyComponent?: React.ReactNode;
|
|
290
|
+
|
|
291
|
+
dateOptions?: Intl.DateTimeFormatOptions;
|
|
292
|
+
localization: Localization;
|
|
293
|
+
|
|
294
|
+
customRenderers?: CustomRenderers<TData>;
|
|
295
|
+
|
|
296
|
+
columnVisibility?: {
|
|
297
|
+
mode: "show" | "hide";
|
|
298
|
+
columns: Array<keyof TData>;
|
|
299
|
+
};
|
|
300
|
+
columnOrder?: Array<keyof TData>;
|
|
301
|
+
schemaColumns?: {
|
|
302
|
+
mode: "include" | "exclude";
|
|
303
|
+
columns: Array<keyof TData>;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
enableMultiSort?: boolean;
|
|
307
|
+
enableMultiFilter?: boolean;
|
|
308
|
+
manualSorting?: boolean;
|
|
309
|
+
manualFiltering?: boolean;
|
|
310
|
+
manualPagination?: boolean;
|
|
311
|
+
rowCount?: number;
|
|
312
|
+
onSortingChange?: (sorting: SortingState) => void;
|
|
313
|
+
onFilteringChange?: (filters: ColumnFiltersState) => void;
|
|
314
|
+
onPaginationChange?: (pagination: {
|
|
315
|
+
pageIndex: number;
|
|
316
|
+
pageSize: number;
|
|
317
|
+
}) => void;
|
|
318
|
+
onRefresh?: () => void;
|
|
319
|
+
|
|
320
|
+
getRowId?: (row: TData, index: number) => string;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export interface MasterDataGridProps<TData = unknown> {
|
|
324
|
+
data: TData[];
|
|
325
|
+
config: MasterDataGridConfig<TData>;
|
|
326
|
+
onDataChange?: (data: TData[]) => void;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export interface TableState {
|
|
330
|
+
sorting: SortingState;
|
|
331
|
+
columnFilters: ColumnFiltersState;
|
|
332
|
+
columnVisibility: VisibilityState;
|
|
333
|
+
rowSelection: RowSelectionState;
|
|
334
|
+
columnPinning: ColumnPinningState;
|
|
335
|
+
grouping: string[];
|
|
336
|
+
expanded: Record<string, boolean> | true;
|
|
337
|
+
pagination: {
|
|
338
|
+
pageIndex: number;
|
|
339
|
+
pageSize: number;
|
|
340
|
+
};
|
|
341
|
+
editingRows?: Record<string, Record<string, unknown>>;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export interface CustomCellRendererProps<TData = unknown> {
|
|
345
|
+
value: unknown;
|
|
346
|
+
row: Row<TData>;
|
|
347
|
+
column: Column<TData>;
|
|
348
|
+
onUpdate?: (value: unknown) => void;
|
|
349
|
+
error?: string;
|
|
350
|
+
schemaProperty?: JSONSchemaProperty;
|
|
351
|
+
t?: MasterDataGridResources;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export type CustomCellRenderer<TData = unknown> = (
|
|
355
|
+
props: CustomCellRendererProps<TData>,
|
|
356
|
+
) => React.ReactNode;
|
|
357
|
+
|
|
358
|
+
export type CustomRenderers<TData> = Partial<
|
|
359
|
+
Record<keyof TData & string, CustomCellRenderer<TData>>
|
|
360
|
+
>;
|
|
361
|
+
|
|
362
|
+
export type GeneratedColumn<TData = unknown> = ColumnDef<TData> & {
|
|
363
|
+
meta?: {
|
|
364
|
+
schemaProperty?: JSONSchemaProperty;
|
|
365
|
+
filterOperators?: FilterOperator[];
|
|
366
|
+
[key: string]: unknown;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
export type CellProps<TData = unknown, TValue = unknown> = CellContext<
|
|
371
|
+
TData,
|
|
372
|
+
TValue
|
|
373
|
+
>;
|
|
374
|
+
|
|
375
|
+
export interface ExpandableColumnMeta extends ColumnMeta {
|
|
376
|
+
isExpanderColumn?: boolean;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export interface ExportColumnDef<TData = unknown> {
|
|
380
|
+
accessorKey?: string;
|
|
381
|
+
accessorFn?: (row: TData, index: number) => unknown;
|
|
382
|
+
header?: string | ((info: any) => React.ReactNode);
|
|
383
|
+
id?: string;
|
|
384
|
+
meta?: ColumnMeta;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export interface CellRendererProps<TData = unknown> {
|
|
388
|
+
value: unknown;
|
|
389
|
+
row: Row<TData>;
|
|
390
|
+
column: Column<TData>;
|
|
391
|
+
columnId: string;
|
|
392
|
+
schemaProperty?: JSONSchemaProperty;
|
|
393
|
+
onUpdate?: (value: unknown) => void;
|
|
394
|
+
isEditing: boolean;
|
|
395
|
+
editable?: boolean;
|
|
396
|
+
error?: string;
|
|
397
|
+
t?: MasterDataGridResources;
|
|
398
|
+
errorDisplayMode?: "tooltip" | "inline" | "both";
|
|
399
|
+
className?: string;
|
|
400
|
+
dateOptions?: Intl.DateTimeFormatOptions;
|
|
401
|
+
localization?: any;
|
|
402
|
+
fieldName?: keyof TData & string;
|
|
403
|
+
customRenderers?: CustomRenderers<TData>;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export interface MasterDataGridResources extends Record<string, string> {
|
|
407
|
+
"toolbar.search": string;
|
|
408
|
+
"toolbar.filters": string;
|
|
409
|
+
"toolbar.client": string;
|
|
410
|
+
"toolbar.server": string;
|
|
411
|
+
"toolbar.columns": string;
|
|
412
|
+
"toolbar.export": string;
|
|
413
|
+
"toolbar.refresh": string;
|
|
414
|
+
"toolbar.reset": string;
|
|
415
|
+
"toolbar.selected": string;
|
|
416
|
+
"toolbar.actions": string;
|
|
417
|
+
|
|
418
|
+
"pagination.rowsPerPage": string;
|
|
419
|
+
"pagination.page": string;
|
|
420
|
+
"pagination.of": string;
|
|
421
|
+
"pagination.rowsSelected": string;
|
|
422
|
+
"pagination.firstPage": string;
|
|
423
|
+
"pagination.previousPage": string;
|
|
424
|
+
"pagination.nextPage": string;
|
|
425
|
+
"pagination.lastPage": string;
|
|
426
|
+
|
|
427
|
+
"column.sortAsc": string;
|
|
428
|
+
"column.sortDesc": string;
|
|
429
|
+
"column.pinLeft": string;
|
|
430
|
+
"column.pinRight": string;
|
|
431
|
+
"column.unpin": string;
|
|
432
|
+
"column.filter": string;
|
|
433
|
+
"column.resetSize": string;
|
|
434
|
+
"column.hide": string;
|
|
435
|
+
"column.edit": string;
|
|
436
|
+
"column.actions": string;
|
|
437
|
+
"column.openMenu": string;
|
|
438
|
+
|
|
439
|
+
"filter.title": string;
|
|
440
|
+
"filter.description": string;
|
|
441
|
+
"filter.where": string;
|
|
442
|
+
"filter.and": string;
|
|
443
|
+
"filter.selectColumn": string;
|
|
444
|
+
"filter.operator": string;
|
|
445
|
+
"filter.operator.equals": string;
|
|
446
|
+
"filter.operator.notEquals": string;
|
|
447
|
+
"filter.operator.contains": string;
|
|
448
|
+
"filter.operator.notContains": string;
|
|
449
|
+
"filter.operator.startsWith": string;
|
|
450
|
+
"filter.operator.endsWith": string;
|
|
451
|
+
"filter.operator.isEmpty": string;
|
|
452
|
+
"filter.operator.isNotEmpty": string;
|
|
453
|
+
"filter.operator.greaterThan": string;
|
|
454
|
+
"filter.operator.greaterThanOrEqual": string;
|
|
455
|
+
"filter.operator.lessThan": string;
|
|
456
|
+
"filter.operator.lessThanOrEqual": string;
|
|
457
|
+
"filter.operator.between": string;
|
|
458
|
+
"filter.operator.inRange": string;
|
|
459
|
+
"filter.operator.before": string;
|
|
460
|
+
"filter.operator.after": string;
|
|
461
|
+
"filter.operator.inList": string;
|
|
462
|
+
"filter.operator.notInList": string;
|
|
463
|
+
"filter.value": string;
|
|
464
|
+
"filter.value2": string;
|
|
465
|
+
"filter.valuePlaceholder": string;
|
|
466
|
+
"filter.value2Placeholder": string;
|
|
467
|
+
"filter.addFilter": string;
|
|
468
|
+
"filter.resetFilters": string;
|
|
469
|
+
"filter.apply": string;
|
|
470
|
+
"filter.close": string;
|
|
471
|
+
"filter.clear": string;
|
|
472
|
+
"filter.clearFilter": string;
|
|
473
|
+
"filter.true": string;
|
|
474
|
+
"filter.false": string;
|
|
475
|
+
"filter.min": string;
|
|
476
|
+
"filter.max": string;
|
|
477
|
+
"filter.to": string;
|
|
478
|
+
|
|
479
|
+
"columnSettings.title": string;
|
|
480
|
+
"columnSettings.description": string;
|
|
481
|
+
"columnSettings.showAll": string;
|
|
482
|
+
"columnSettings.hideAll": string;
|
|
483
|
+
|
|
484
|
+
"table.noResults": string;
|
|
485
|
+
|
|
486
|
+
"validation.invalidString": string;
|
|
487
|
+
}
|