@iamsaroj/smart-ui 0.2.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/CHANGELOG.md +35 -0
- package/LICENSE +21 -0
- package/README.md +49 -0
- package/dist/calendar-engine/agenda-view.d.ts +8 -0
- package/dist/calendar-engine/agenda-view.d.ts.map +1 -0
- package/dist/calendar-engine/agenda-view.js +26 -0
- package/dist/calendar-engine/agenda-view.js.map +1 -0
- package/dist/calendar-engine/booking.d.ts +13 -0
- package/dist/calendar-engine/booking.d.ts.map +1 -0
- package/dist/calendar-engine/booking.js +45 -0
- package/dist/calendar-engine/booking.js.map +1 -0
- package/dist/calendar-engine/calendar-utils.d.ts +74 -0
- package/dist/calendar-engine/calendar-utils.d.ts.map +1 -0
- package/dist/calendar-engine/calendar-utils.js +221 -0
- package/dist/calendar-engine/calendar-utils.js.map +1 -0
- package/dist/calendar-engine/calendar.d.ts +62 -0
- package/dist/calendar-engine/calendar.d.ts.map +1 -0
- package/dist/calendar-engine/calendar.js +81 -0
- package/dist/calendar-engine/calendar.js.map +1 -0
- package/dist/calendar-engine/event-color.d.ts +20 -0
- package/dist/calendar-engine/event-color.d.ts.map +1 -0
- package/dist/calendar-engine/event-color.js +59 -0
- package/dist/calendar-engine/event-color.js.map +1 -0
- package/dist/calendar-engine/index.d.ts +11 -0
- package/dist/calendar-engine/index.d.ts.map +1 -0
- package/dist/calendar-engine/index.js +6 -0
- package/dist/calendar-engine/index.js.map +1 -0
- package/dist/calendar-engine/month-view.d.ts +10 -0
- package/dist/calendar-engine/month-view.d.ts.map +1 -0
- package/dist/calendar-engine/month-view.js +72 -0
- package/dist/calendar-engine/month-view.js.map +1 -0
- package/dist/calendar-engine/recurrence.d.ts +47 -0
- package/dist/calendar-engine/recurrence.d.ts.map +1 -0
- package/dist/calendar-engine/recurrence.js +209 -0
- package/dist/calendar-engine/recurrence.js.map +1 -0
- package/dist/calendar-engine/shared.d.ts +72 -0
- package/dist/calendar-engine/shared.d.ts.map +1 -0
- package/dist/calendar-engine/shared.js +34 -0
- package/dist/calendar-engine/shared.js.map +1 -0
- package/dist/calendar-engine/time-grid-view.d.ts +13 -0
- package/dist/calendar-engine/time-grid-view.d.ts.map +1 -0
- package/dist/calendar-engine/time-grid-view.js +203 -0
- package/dist/calendar-engine/time-grid-view.js.map +1 -0
- package/dist/calendar-engine/types.d.ts +138 -0
- package/dist/calendar-engine/types.d.ts.map +1 -0
- package/dist/calendar-engine/types.js +2 -0
- package/dist/calendar-engine/types.js.map +1 -0
- package/dist/calendar-engine/use-calendar.d.ts +7 -0
- package/dist/calendar-engine/use-calendar.d.ts.map +1 -0
- package/dist/calendar-engine/use-calendar.js +25 -0
- package/dist/calendar-engine/use-calendar.js.map +1 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +10 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/alert-dialog.d.ts +19 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +18 -0
- package/dist/components/alert-dialog.js.map +1 -0
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +20 -0
- package/dist/components/alert.js.map +1 -0
- package/dist/components/aspect-ratio.d.ts +5 -0
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +7 -0
- package/dist/components/aspect-ratio.js.map +1 -0
- package/dist/components/avatar.d.ts +12 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +11 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +8 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +33 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +23 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +34 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/calendar.d.ts +11 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +77 -0
- package/dist/components/calendar.js.map +1 -0
- package/dist/components/card.d.ts +12 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +11 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/carousel.d.ts +29 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +94 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/chart.d.ts +45 -0
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +133 -0
- package/dist/components/chart.js.map +1 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +8 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/collapsible.d.ts +6 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +7 -0
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/combobox.d.ts +35 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.js +45 -0
- package/dist/components/combobox.js.map +1 -0
- package/dist/components/command.d.ts +20 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +18 -0
- package/dist/components/command.js.map +1 -0
- package/dist/components/context-menu.d.ts +30 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +22 -0
- package/dist/components/context-menu.js.map +1 -0
- package/dist/components/data-table.d.ts +12 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +44 -0
- package/dist/components/data-table.js.map +1 -0
- package/dist/components/date-picker.d.ts +33 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +29 -0
- package/dist/components/date-picker.js.map +1 -0
- package/dist/components/dialog.d.ts +18 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +18 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/drawer.d.ts +14 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +15 -0
- package/dist/components/drawer.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +30 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +22 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +8 -0
- package/dist/components/hover-card.js.map +1 -0
- package/dist/components/input-group.d.ts +19 -0
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +46 -0
- package/dist/components/input-group.js.map +1 -0
- package/dist/components/input-otp.d.ts +12 -0
- package/dist/components/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp.js +16 -0
- package/dist/components/input-otp.js.map +1 -0
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +6 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/kbd.d.ts +5 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +6 -0
- package/dist/components/kbd.js.map +1 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +5 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/menubar.d.ts +30 -0
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/menubar.js +24 -0
- package/dist/components/menubar.js.map +1 -0
- package/dist/components/navigation-menu.d.ts +12 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu.js +18 -0
- package/dist/components/navigation-menu.js.map +1 -0
- package/dist/components/pagination.d.ts +18 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +13 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +12 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +8 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +10 -0
- package/dist/components/progress.js.map +1 -0
- package/dist/components/radio-group.d.ts +6 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +9 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/scroll-area.d.ts +5 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +8 -0
- package/dist/components/scroll-area.js.map +1 -0
- package/dist/components/select.d.ts +16 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +16 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +6 -0
- package/dist/components/separator.js.map +1 -0
- package/dist/components/sheet.d.ts +15 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +18 -0
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/sidebar.d.ts +64 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +224 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.d.ts +3 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +5 -0
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +13 -0
- package/dist/components/slider.js.map +1 -0
- package/dist/components/sonner.d.ts +4 -0
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +25 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +7 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +11 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +12 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +23 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +4 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +5 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/components/toggle-group.d.ts +11 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +22 -0
- package/dist/components/toggle-group.js.map +1 -0
- package/dist/components/toggle.d.ts +9 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +25 -0
- package/dist/components/toggle.js.map +1 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +10 -0
- package/dist/components/tooltip.js.map +1 -0
- package/dist/data-grid/action-column-cell.d.ts +41 -0
- package/dist/data-grid/action-column-cell.d.ts.map +1 -0
- package/dist/data-grid/action-column-cell.js +114 -0
- package/dist/data-grid/action-column-cell.js.map +1 -0
- package/dist/data-grid/action-column.d.ts +144 -0
- package/dist/data-grid/action-column.d.ts.map +1 -0
- package/dist/data-grid/action-column.js +156 -0
- package/dist/data-grid/action-column.js.map +1 -0
- package/dist/data-grid/create-page-fetcher.d.ts +57 -0
- package/dist/data-grid/create-page-fetcher.d.ts.map +1 -0
- package/dist/data-grid/create-page-fetcher.js +41 -0
- package/dist/data-grid/create-page-fetcher.js.map +1 -0
- package/dist/data-grid/data-grid.d.ts +65 -0
- package/dist/data-grid/data-grid.d.ts.map +1 -0
- package/dist/data-grid/data-grid.js +95 -0
- package/dist/data-grid/data-grid.js.map +1 -0
- package/dist/data-grid/empty-state.d.ts +13 -0
- package/dist/data-grid/empty-state.d.ts.map +1 -0
- package/dist/data-grid/empty-state.js +6 -0
- package/dist/data-grid/empty-state.js.map +1 -0
- package/dist/data-grid/formula-guard.d.ts +22 -0
- package/dist/data-grid/formula-guard.d.ts.map +1 -0
- package/dist/data-grid/formula-guard.js +28 -0
- package/dist/data-grid/formula-guard.js.map +1 -0
- package/dist/data-grid/grid-internals.d.ts +16 -0
- package/dist/data-grid/grid-internals.d.ts.map +1 -0
- package/dist/data-grid/grid-internals.js +73 -0
- package/dist/data-grid/grid-internals.js.map +1 -0
- package/dist/data-grid/grid-theme.d.ts +8 -0
- package/dist/data-grid/grid-theme.d.ts.map +1 -0
- package/dist/data-grid/grid-theme.js +23 -0
- package/dist/data-grid/grid-theme.js.map +1 -0
- package/dist/data-grid/grid-toolbar.d.ts +40 -0
- package/dist/data-grid/grid-toolbar.d.ts.map +1 -0
- package/dist/data-grid/grid-toolbar.js +13 -0
- package/dist/data-grid/grid-toolbar.js.map +1 -0
- package/dist/data-grid/index.d.ts +10 -0
- package/dist/data-grid/index.d.ts.map +1 -0
- package/dist/data-grid/index.js +9 -0
- package/dist/data-grid/index.js.map +1 -0
- package/dist/data-grid/pagination.d.ts +146 -0
- package/dist/data-grid/pagination.d.ts.map +1 -0
- package/dist/data-grid/pagination.js +128 -0
- package/dist/data-grid/pagination.js.map +1 -0
- package/dist/data-grid/server-data-grid.d.ts +109 -0
- package/dist/data-grid/server-data-grid.d.ts.map +1 -0
- package/dist/data-grid/server-data-grid.js +240 -0
- package/dist/data-grid/server-data-grid.js.map +1 -0
- package/dist/data-grid/server-grid-internals.d.ts +79 -0
- package/dist/data-grid/server-grid-internals.d.ts.map +1 -0
- package/dist/data-grid/server-grid-internals.js +137 -0
- package/dist/data-grid/server-grid-internals.js.map +1 -0
- package/dist/data-grid/use-action-column.d.ts +22 -0
- package/dist/data-grid/use-action-column.d.ts.map +1 -0
- package/dist/data-grid/use-action-column.js +63 -0
- package/dist/data-grid/use-action-column.js.map +1 -0
- package/dist/data-grid/use-server-grid-selection.d.ts +35 -0
- package/dist/data-grid/use-server-grid-selection.d.ts.map +1 -0
- package/dist/data-grid/use-server-grid-selection.js +81 -0
- package/dist/data-grid/use-server-grid-selection.js.map +1 -0
- package/dist/form-engine/base.d.ts +19 -0
- package/dist/form-engine/base.d.ts.map +1 -0
- package/dist/form-engine/base.js +2 -0
- package/dist/form-engine/base.js.map +1 -0
- package/dist/form-engine/field-registry.d.ts +285 -0
- package/dist/form-engine/field-registry.d.ts.map +1 -0
- package/dist/form-engine/field-registry.js +306 -0
- package/dist/form-engine/field-registry.js.map +1 -0
- package/dist/form-engine/field-types.d.ts +201 -0
- package/dist/form-engine/field-types.d.ts.map +1 -0
- package/dist/form-engine/field-types.js +14 -0
- package/dist/form-engine/field-types.js.map +1 -0
- package/dist/form-engine/index.d.ts +20 -0
- package/dist/form-engine/index.d.ts.map +1 -0
- package/dist/form-engine/index.js +21 -0
- package/dist/form-engine/index.js.map +1 -0
- package/dist/form-engine/smart-checkbox-field.d.ts +5 -0
- package/dist/form-engine/smart-checkbox-field.d.ts.map +1 -0
- package/dist/form-engine/smart-checkbox-field.js +9 -0
- package/dist/form-engine/smart-checkbox-field.js.map +1 -0
- package/dist/form-engine/smart-checkbox-group-field.d.ts +10 -0
- package/dist/form-engine/smart-checkbox-group-field.d.ts.map +1 -0
- package/dist/form-engine/smart-checkbox-group-field.js +5 -0
- package/dist/form-engine/smart-checkbox-group-field.js.map +1 -0
- package/dist/form-engine/smart-combobox-field.d.ts +11 -0
- package/dist/form-engine/smart-combobox-field.d.ts.map +1 -0
- package/dist/form-engine/smart-combobox-field.js +5 -0
- package/dist/form-engine/smart-combobox-field.js.map +1 -0
- package/dist/form-engine/smart-date-field.d.ts +8 -0
- package/dist/form-engine/smart-date-field.d.ts.map +1 -0
- package/dist/form-engine/smart-date-field.js +17 -0
- package/dist/form-engine/smart-date-field.js.map +1 -0
- package/dist/form-engine/smart-date-range-field.d.ts +15 -0
- package/dist/form-engine/smart-date-range-field.d.ts.map +1 -0
- package/dist/form-engine/smart-date-range-field.js +25 -0
- package/dist/form-engine/smart-date-range-field.js.map +1 -0
- package/dist/form-engine/smart-datetime-field.d.ts +12 -0
- package/dist/form-engine/smart-datetime-field.d.ts.map +1 -0
- package/dist/form-engine/smart-datetime-field.js +12 -0
- package/dist/form-engine/smart-datetime-field.js.map +1 -0
- package/dist/form-engine/smart-form-internals.d.ts +14 -0
- package/dist/form-engine/smart-form-internals.d.ts.map +1 -0
- package/dist/form-engine/smart-form-internals.js +64 -0
- package/dist/form-engine/smart-form-internals.js.map +1 -0
- package/dist/form-engine/smart-form.d.ts +55 -0
- package/dist/form-engine/smart-form.d.ts.map +1 -0
- package/dist/form-engine/smart-form.js +229 -0
- package/dist/form-engine/smart-form.js.map +1 -0
- package/dist/form-engine/smart-input-field.d.ts +9 -0
- package/dist/form-engine/smart-input-field.d.ts.map +1 -0
- package/dist/form-engine/smart-input-field.js +5 -0
- package/dist/form-engine/smart-input-field.js.map +1 -0
- package/dist/form-engine/smart-month-field.d.ts +8 -0
- package/dist/form-engine/smart-month-field.d.ts.map +1 -0
- package/dist/form-engine/smart-month-field.js +12 -0
- package/dist/form-engine/smart-month-field.js.map +1 -0
- package/dist/form-engine/smart-multi-select-field.d.ts +11 -0
- package/dist/form-engine/smart-multi-select-field.d.ts.map +1 -0
- package/dist/form-engine/smart-multi-select-field.js +5 -0
- package/dist/form-engine/smart-multi-select-field.js.map +1 -0
- package/dist/form-engine/smart-number-field.d.ts +22 -0
- package/dist/form-engine/smart-number-field.d.ts.map +1 -0
- package/dist/form-engine/smart-number-field.js +115 -0
- package/dist/form-engine/smart-number-field.js.map +1 -0
- package/dist/form-engine/smart-password-field.d.ts +7 -0
- package/dist/form-engine/smart-password-field.d.ts.map +1 -0
- package/dist/form-engine/smart-password-field.js +5 -0
- package/dist/form-engine/smart-password-field.js.map +1 -0
- package/dist/form-engine/smart-radio-group-field.d.ts +10 -0
- package/dist/form-engine/smart-radio-group-field.d.ts.map +1 -0
- package/dist/form-engine/smart-radio-group-field.js +5 -0
- package/dist/form-engine/smart-radio-group-field.js.map +1 -0
- package/dist/form-engine/smart-segmented-field.d.ts +9 -0
- package/dist/form-engine/smart-segmented-field.d.ts.map +1 -0
- package/dist/form-engine/smart-segmented-field.js +5 -0
- package/dist/form-engine/smart-segmented-field.js.map +1 -0
- package/dist/form-engine/smart-select-field.d.ts +10 -0
- package/dist/form-engine/smart-select-field.d.ts.map +1 -0
- package/dist/form-engine/smart-select-field.js +5 -0
- package/dist/form-engine/smart-select-field.js.map +1 -0
- package/dist/form-engine/smart-slug-field.d.ts +12 -0
- package/dist/form-engine/smart-slug-field.d.ts.map +1 -0
- package/dist/form-engine/smart-slug-field.js +14 -0
- package/dist/form-engine/smart-slug-field.js.map +1 -0
- package/dist/form-engine/smart-switch-field.d.ts +5 -0
- package/dist/form-engine/smart-switch-field.d.ts.map +1 -0
- package/dist/form-engine/smart-switch-field.js +9 -0
- package/dist/form-engine/smart-switch-field.js.map +1 -0
- package/dist/form-engine/smart-tel-field.d.ts +7 -0
- package/dist/form-engine/smart-tel-field.d.ts.map +1 -0
- package/dist/form-engine/smart-tel-field.js +6 -0
- package/dist/form-engine/smart-tel-field.js.map +1 -0
- package/dist/form-engine/smart-text-editor-field.d.ts +15 -0
- package/dist/form-engine/smart-text-editor-field.d.ts.map +1 -0
- package/dist/form-engine/smart-text-editor-field.js +5 -0
- package/dist/form-engine/smart-text-editor-field.js.map +1 -0
- package/dist/form-engine/smart-textarea-field.d.ts +8 -0
- package/dist/form-engine/smart-textarea-field.d.ts.map +1 -0
- package/dist/form-engine/smart-textarea-field.js +5 -0
- package/dist/form-engine/smart-textarea-field.js.map +1 -0
- package/dist/form-engine/smart-time-field.d.ts +10 -0
- package/dist/form-engine/smart-time-field.d.ts.map +1 -0
- package/dist/form-engine/smart-time-field.js +5 -0
- package/dist/form-engine/smart-time-field.js.map +1 -0
- package/dist/form-engine/smart-time-range-field.d.ts +13 -0
- package/dist/form-engine/smart-time-range-field.d.ts.map +1 -0
- package/dist/form-engine/smart-time-range-field.js +5 -0
- package/dist/form-engine/smart-time-range-field.js.map +1 -0
- package/dist/form-engine/smart-year-field.d.ts +8 -0
- package/dist/form-engine/smart-year-field.d.ts.map +1 -0
- package/dist/form-engine/smart-year-field.js +5 -0
- package/dist/form-engine/smart-year-field.js.map +1 -0
- package/dist/form-engine/smart-yesno-field.d.ts +12 -0
- package/dist/form-engine/smart-yesno-field.d.ts.map +1 -0
- package/dist/form-engine/smart-yesno-field.js +14 -0
- package/dist/form-engine/smart-yesno-field.js.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/lexical-text-editor/SmartTextEditor.d.ts +61 -0
- package/dist/lexical-text-editor/SmartTextEditor.d.ts.map +1 -0
- package/dist/lexical-text-editor/SmartTextEditor.js +145 -0
- package/dist/lexical-text-editor/SmartTextEditor.js.map +1 -0
- package/dist/lexical-text-editor/editor-nodes.d.ts +3 -0
- package/dist/lexical-text-editor/editor-nodes.d.ts.map +1 -0
- package/dist/lexical-text-editor/editor-nodes.js +25 -0
- package/dist/lexical-text-editor/editor-nodes.js.map +1 -0
- package/dist/lexical-text-editor/editor-theme.d.ts +3 -0
- package/dist/lexical-text-editor/editor-theme.d.ts.map +1 -0
- package/dist/lexical-text-editor/editor-theme.js +78 -0
- package/dist/lexical-text-editor/editor-theme.js.map +1 -0
- package/dist/lexical-text-editor/index.d.ts +8 -0
- package/dist/lexical-text-editor/index.d.ts.map +1 -0
- package/dist/lexical-text-editor/index.js +6 -0
- package/dist/lexical-text-editor/index.js.map +1 -0
- package/dist/lexical-text-editor/nodes/image-node.d.ts +41 -0
- package/dist/lexical-text-editor/nodes/image-node.d.ts.map +1 -0
- package/dist/lexical-text-editor/nodes/image-node.js +89 -0
- package/dist/lexical-text-editor/nodes/image-node.js.map +1 -0
- package/dist/lexical-text-editor/nodes/page-break-node.d.ts +25 -0
- package/dist/lexical-text-editor/nodes/page-break-node.d.ts.map +1 -0
- package/dist/lexical-text-editor/nodes/page-break-node.js +84 -0
- package/dist/lexical-text-editor/nodes/page-break-node.js.map +1 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.d.ts +3 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.js +12 -0
- package/dist/lexical-text-editor/plugins/auto-link-plugin.js.map +1 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.d.ts +6 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.js +14 -0
- package/dist/lexical-text-editor/plugins/code-highlight-plugin.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.d.ts +7 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.js +8 -0
- package/dist/lexical-text-editor/plugins/toolbar/align-menu.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.d.ts +20 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.js +78 -0
- package/dist/lexical-text-editor/plugins/toolbar/block-format-menu.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.d.ts +36 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.js +67 -0
- package/dist/lexical-text-editor/plugins/toolbar/constants.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.d.ts +14 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.js +129 -0
- package/dist/lexical-text-editor/plugins/toolbar/inline-marks.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.d.ts +8 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.js +87 -0
- package/dist/lexical-text-editor/plugins/toolbar/insert-menu.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.d.ts +11 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.js +51 -0
- package/dist/lexical-text-editor/plugins/toolbar/link-editor.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.d.ts +39 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.js +47 -0
- package/dist/lexical-text-editor/plugins/toolbar/primitives.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.d.ts +9 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.js +29 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-insert-commands.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.d.ts +30 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.js +128 -0
- package/dist/lexical-text-editor/plugins/toolbar/use-toolbar-state.js.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.d.ts +8 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.d.ts.map +1 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.js +51 -0
- package/dist/lexical-text-editor/plugins/toolbar-plugin.js.map +1 -0
- package/dist/lexical-text-editor/sanitize.d.ts +24 -0
- package/dist/lexical-text-editor/sanitize.d.ts.map +1 -0
- package/dist/lexical-text-editor/sanitize.js +140 -0
- package/dist/lexical-text-editor/sanitize.js.map +1 -0
- package/dist/lib/format.d.ts +17 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/format.js +40 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/leading-space.d.ts +28 -0
- package/dist/lib/leading-space.d.ts.map +1 -0
- package/dist/lib/leading-space.js +34 -0
- package/dist/lib/leading-space.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +4 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/lib/xlsx.d.ts +80 -0
- package/dist/lib/xlsx.d.ts.map +1 -0
- package/dist/lib/xlsx.js +377 -0
- package/dist/lib/xlsx.js.map +1 -0
- package/dist/search-engine/build-query.d.ts +29 -0
- package/dist/search-engine/build-query.d.ts.map +1 -0
- package/dist/search-engine/build-query.js +51 -0
- package/dist/search-engine/build-query.js.map +1 -0
- package/dist/search-engine/index.d.ts +15 -0
- package/dist/search-engine/index.d.ts.map +1 -0
- package/dist/search-engine/index.js +13 -0
- package/dist/search-engine/index.js.map +1 -0
- package/dist/search-engine/smart-search-form.d.ts +92 -0
- package/dist/search-engine/smart-search-form.d.ts.map +1 -0
- package/dist/search-engine/smart-search-form.js +136 -0
- package/dist/search-engine/smart-search-form.js.map +1 -0
- package/dist/search-engine/types.d.ts +40 -0
- package/dist/search-engine/types.d.ts.map +1 -0
- package/dist/search-engine/types.js +11 -0
- package/dist/search-engine/types.js.map +1 -0
- package/dist/smart-components/buttons/action-button.d.ts +66 -0
- package/dist/smart-components/buttons/action-button.d.ts.map +1 -0
- package/dist/smart-components/buttons/action-button.js +79 -0
- package/dist/smart-components/buttons/action-button.js.map +1 -0
- package/dist/smart-components/buttons/action-buttons.d.ts +122 -0
- package/dist/smart-components/buttons/action-buttons.d.ts.map +1 -0
- package/dist/smart-components/buttons/action-buttons.js +42 -0
- package/dist/smart-components/buttons/action-buttons.js.map +1 -0
- package/dist/smart-components/buttons/action-config.d.ts +181 -0
- package/dist/smart-components/buttons/action-config.d.ts.map +1 -0
- package/dist/smart-components/buttons/action-config.js +128 -0
- package/dist/smart-components/buttons/action-config.js.map +1 -0
- package/dist/smart-components/buttons/index.d.ts +4 -0
- package/dist/smart-components/buttons/index.d.ts.map +1 -0
- package/dist/smart-components/buttons/index.js +7 -0
- package/dist/smart-components/buttons/index.js.map +1 -0
- package/dist/smart-components/loading-overlay.d.ts +16 -0
- package/dist/smart-components/loading-overlay.d.ts.map +1 -0
- package/dist/smart-components/loading-overlay.js +13 -0
- package/dist/smart-components/loading-overlay.js.map +1 -0
- package/dist/smart-components/page/index.d.ts +19 -0
- package/dist/smart-components/page/index.d.ts.map +1 -0
- package/dist/smart-components/page/index.js +33 -0
- package/dist/smart-components/page/index.js.map +1 -0
- package/dist/smart-components/page/layouts/page-states.d.ts +17 -0
- package/dist/smart-components/page/layouts/page-states.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/page-states.js +12 -0
- package/dist/smart-components/page/layouts/page-states.js.map +1 -0
- package/dist/smart-components/page/layouts/slot-buckets.d.ts +21 -0
- package/dist/smart-components/page/layouts/slot-buckets.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/slot-buckets.js +2 -0
- package/dist/smart-components/page/layouts/slot-buckets.js.map +1 -0
- package/dist/smart-components/page/layouts/split-layout.d.ts +13 -0
- package/dist/smart-components/page/layouts/split-layout.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/split-layout.js +14 -0
- package/dist/smart-components/page/layouts/split-layout.js.map +1 -0
- package/dist/smart-components/page/layouts/standard-layout.d.ts +18 -0
- package/dist/smart-components/page/layouts/standard-layout.d.ts.map +1 -0
- package/dist/smart-components/page/layouts/standard-layout.js +61 -0
- package/dist/smart-components/page/layouts/standard-layout.js.map +1 -0
- package/dist/smart-components/page/page-context.d.ts +51 -0
- package/dist/smart-components/page/page-context.d.ts.map +1 -0
- package/dist/smart-components/page/page-context.js +21 -0
- package/dist/smart-components/page/page-context.js.map +1 -0
- package/dist/smart-components/page/slot.d.ts +19 -0
- package/dist/smart-components/page/slot.d.ts.map +1 -0
- package/dist/smart-components/page/slot.js +18 -0
- package/dist/smart-components/page/slot.js.map +1 -0
- package/dist/smart-components/page/smart-grid-area.d.ts +75 -0
- package/dist/smart-components/page/smart-grid-area.d.ts.map +1 -0
- package/dist/smart-components/page/smart-grid-area.js +61 -0
- package/dist/smart-components/page/smart-grid-area.js.map +1 -0
- package/dist/smart-components/page/smart-page-container.d.ts +66 -0
- package/dist/smart-components/page/smart-page-container.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-container.js +93 -0
- package/dist/smart-components/page/smart-page-container.js.map +1 -0
- package/dist/smart-components/page/smart-page-content.d.ts +70 -0
- package/dist/smart-components/page/smart-page-content.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-content.js +78 -0
- package/dist/smart-components/page/smart-page-content.js.map +1 -0
- package/dist/smart-components/page/smart-page-empty.d.ts +47 -0
- package/dist/smart-components/page/smart-page-empty.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-empty.js +37 -0
- package/dist/smart-components/page/smart-page-empty.js.map +1 -0
- package/dist/smart-components/page/smart-page-error.d.ts +59 -0
- package/dist/smart-components/page/smart-page-error.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-error.js +45 -0
- package/dist/smart-components/page/smart-page-error.js.map +1 -0
- package/dist/smart-components/page/smart-page-filters.d.ts +38 -0
- package/dist/smart-components/page/smart-page-filters.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-filters.js +33 -0
- package/dist/smart-components/page/smart-page-filters.js.map +1 -0
- package/dist/smart-components/page/smart-page-footer.d.ts +49 -0
- package/dist/smart-components/page/smart-page-footer.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-footer.js +49 -0
- package/dist/smart-components/page/smart-page-footer.js.map +1 -0
- package/dist/smart-components/page/smart-page-header.d.ts +145 -0
- package/dist/smart-components/page/smart-page-header.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-header.js +129 -0
- package/dist/smart-components/page/smart-page-header.js.map +1 -0
- package/dist/smart-components/page/smart-page-hero.d.ts +43 -0
- package/dist/smart-components/page/smart-page-hero.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-hero.js +42 -0
- package/dist/smart-components/page/smart-page-hero.js.map +1 -0
- package/dist/smart-components/page/smart-page-loading.d.ts +31 -0
- package/dist/smart-components/page/smart-page-loading.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-loading.js +29 -0
- package/dist/smart-components/page/smart-page-loading.js.map +1 -0
- package/dist/smart-components/page/smart-page-search.d.ts +39 -0
- package/dist/smart-components/page/smart-page-search.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-search.js +38 -0
- package/dist/smart-components/page/smart-page-search.js.map +1 -0
- package/dist/smart-components/page/smart-page-section.d.ts +55 -0
- package/dist/smart-components/page/smart-page-section.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-section.js +41 -0
- package/dist/smart-components/page/smart-page-section.js.map +1 -0
- package/dist/smart-components/page/smart-page-status-bar.d.ts +34 -0
- package/dist/smart-components/page/smart-page-status-bar.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-status-bar.js +33 -0
- package/dist/smart-components/page/smart-page-status-bar.js.map +1 -0
- package/dist/smart-components/page/smart-page-tabs.d.ts +93 -0
- package/dist/smart-components/page/smart-page-tabs.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page-tabs.js +87 -0
- package/dist/smart-components/page/smart-page-tabs.js.map +1 -0
- package/dist/smart-components/page/smart-page.d.ts +141 -0
- package/dist/smart-components/page/smart-page.d.ts.map +1 -0
- package/dist/smart-components/page/smart-page.js +295 -0
- package/dist/smart-components/page/smart-page.js.map +1 -0
- package/dist/smart-components/page/smart-sidebar.d.ts +70 -0
- package/dist/smart-components/page/smart-sidebar.d.ts.map +1 -0
- package/dist/smart-components/page/smart-sidebar.js +54 -0
- package/dist/smart-components/page/smart-sidebar.js.map +1 -0
- package/dist/smart-components/page/smart-toolbar.d.ts +40 -0
- package/dist/smart-components/page/smart-toolbar.d.ts.map +1 -0
- package/dist/smart-components/page/smart-toolbar.js +39 -0
- package/dist/smart-components/page/smart-toolbar.js.map +1 -0
- package/dist/smart-components/search-input.d.ts +20 -0
- package/dist/smart-components/search-input.d.ts.map +1 -0
- package/dist/smart-components/search-input.js +12 -0
- package/dist/smart-components/search-input.js.map +1 -0
- package/dist/smart-components/smart-accordion.d.ts +53 -0
- package/dist/smart-components/smart-accordion.d.ts.map +1 -0
- package/dist/smart-components/smart-accordion.js +33 -0
- package/dist/smart-components/smart-accordion.js.map +1 -0
- package/dist/smart-components/smart-alert.d.ts +44 -0
- package/dist/smart-components/smart-alert.d.ts.map +1 -0
- package/dist/smart-components/smart-alert.js +27 -0
- package/dist/smart-components/smart-alert.js.map +1 -0
- package/dist/smart-components/smart-avatar.d.ts +3 -0
- package/dist/smart-components/smart-avatar.d.ts.map +1 -0
- package/dist/smart-components/smart-avatar.js +4 -0
- package/dist/smart-components/smart-avatar.js.map +1 -0
- package/dist/smart-components/smart-badge.d.ts +28 -0
- package/dist/smart-components/smart-badge.d.ts.map +1 -0
- package/dist/smart-components/smart-badge.js +24 -0
- package/dist/smart-components/smart-badge.js.map +1 -0
- package/dist/smart-components/smart-breadcrumb.d.ts +43 -0
- package/dist/smart-components/smart-breadcrumb.d.ts.map +1 -0
- package/dist/smart-components/smart-breadcrumb.js +37 -0
- package/dist/smart-components/smart-breadcrumb.js.map +1 -0
- package/dist/smart-components/smart-button.d.ts +22 -0
- package/dist/smart-components/smart-button.d.ts.map +1 -0
- package/dist/smart-components/smart-button.js +15 -0
- package/dist/smart-components/smart-button.js.map +1 -0
- package/dist/smart-components/smart-calendar.d.ts +78 -0
- package/dist/smart-components/smart-calendar.d.ts.map +1 -0
- package/dist/smart-components/smart-calendar.js +45 -0
- package/dist/smart-components/smart-calendar.js.map +1 -0
- package/dist/smart-components/smart-card.d.ts +55 -0
- package/dist/smart-components/smart-card.d.ts.map +1 -0
- package/dist/smart-components/smart-card.js +37 -0
- package/dist/smart-components/smart-card.js.map +1 -0
- package/dist/smart-components/smart-checkbox-group.d.ts +48 -0
- package/dist/smart-components/smart-checkbox-group.d.ts.map +1 -0
- package/dist/smart-components/smart-checkbox-group.js +48 -0
- package/dist/smart-components/smart-checkbox-group.js.map +1 -0
- package/dist/smart-components/smart-checkbox.d.ts +34 -0
- package/dist/smart-components/smart-checkbox.d.ts.map +1 -0
- package/dist/smart-components/smart-checkbox.js +34 -0
- package/dist/smart-components/smart-checkbox.js.map +1 -0
- package/dist/smart-components/smart-combobox.d.ts +36 -0
- package/dist/smart-components/smart-combobox.d.ts.map +1 -0
- package/dist/smart-components/smart-combobox.js +32 -0
- package/dist/smart-components/smart-combobox.js.map +1 -0
- package/dist/smart-components/smart-confirm-dialog.d.ts +63 -0
- package/dist/smart-components/smart-confirm-dialog.d.ts.map +1 -0
- package/dist/smart-components/smart-confirm-dialog.js +45 -0
- package/dist/smart-components/smart-confirm-dialog.js.map +1 -0
- package/dist/smart-components/smart-context-menu.d.ts +58 -0
- package/dist/smart-components/smart-context-menu.d.ts.map +1 -0
- package/dist/smart-components/smart-context-menu.js +38 -0
- package/dist/smart-components/smart-context-menu.js.map +1 -0
- package/dist/smart-components/smart-date-picker.d.ts +99 -0
- package/dist/smart-components/smart-date-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-date-picker.js +78 -0
- package/dist/smart-components/smart-date-picker.js.map +1 -0
- package/dist/smart-components/smart-date-range-picker.d.ts +37 -0
- package/dist/smart-components/smart-date-range-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-date-range-picker.js +38 -0
- package/dist/smart-components/smart-date-range-picker.js.map +1 -0
- package/dist/smart-components/smart-dialog.d.ts +75 -0
- package/dist/smart-components/smart-dialog.d.ts.map +1 -0
- package/dist/smart-components/smart-dialog.js +61 -0
- package/dist/smart-components/smart-dialog.js.map +1 -0
- package/dist/smart-components/smart-drawer.d.ts +48 -0
- package/dist/smart-components/smart-drawer.d.ts.map +1 -0
- package/dist/smart-components/smart-drawer.js +32 -0
- package/dist/smart-components/smart-drawer.js.map +1 -0
- package/dist/smart-components/smart-field.d.ts +47 -0
- package/dist/smart-components/smart-field.d.ts.map +1 -0
- package/dist/smart-components/smart-field.js +44 -0
- package/dist/smart-components/smart-field.js.map +1 -0
- package/dist/smart-components/smart-input-group.d.ts +60 -0
- package/dist/smart-components/smart-input-group.d.ts.map +1 -0
- package/dist/smart-components/smart-input-group.js +40 -0
- package/dist/smart-components/smart-input-group.js.map +1 -0
- package/dist/smart-components/smart-input.d.ts +46 -0
- package/dist/smart-components/smart-input.d.ts.map +1 -0
- package/dist/smart-components/smart-input.js +36 -0
- package/dist/smart-components/smart-input.js.map +1 -0
- package/dist/smart-components/smart-label.d.ts +22 -0
- package/dist/smart-components/smart-label.d.ts.map +1 -0
- package/dist/smart-components/smart-label.js +17 -0
- package/dist/smart-components/smart-label.js.map +1 -0
- package/dist/smart-components/smart-month-picker.d.ts +30 -0
- package/dist/smart-components/smart-month-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-month-picker.js +53 -0
- package/dist/smart-components/smart-month-picker.js.map +1 -0
- package/dist/smart-components/smart-multi-select.d.ts +38 -0
- package/dist/smart-components/smart-multi-select.d.ts.map +1 -0
- package/dist/smart-components/smart-multi-select.js +56 -0
- package/dist/smart-components/smart-multi-select.js.map +1 -0
- package/dist/smart-components/smart-native-select.d.ts +45 -0
- package/dist/smart-components/smart-native-select.d.ts.map +1 -0
- package/dist/smart-components/smart-native-select.js +33 -0
- package/dist/smart-components/smart-native-select.js.map +1 -0
- package/dist/smart-components/smart-nav-sidebar.d.ts +47 -0
- package/dist/smart-components/smart-nav-sidebar.d.ts.map +1 -0
- package/dist/smart-components/smart-nav-sidebar.js +37 -0
- package/dist/smart-components/smart-nav-sidebar.js.map +1 -0
- package/dist/smart-components/smart-password-input.d.ts +31 -0
- package/dist/smart-components/smart-password-input.d.ts.map +1 -0
- package/dist/smart-components/smart-password-input.js +30 -0
- package/dist/smart-components/smart-password-input.js.map +1 -0
- package/dist/smart-components/smart-radio-group.d.ts +58 -0
- package/dist/smart-components/smart-radio-group.d.ts.map +1 -0
- package/dist/smart-components/smart-radio-group.js +49 -0
- package/dist/smart-components/smart-radio-group.js.map +1 -0
- package/dist/smart-components/smart-segmented.d.ts +33 -0
- package/dist/smart-components/smart-segmented.d.ts.map +1 -0
- package/dist/smart-components/smart-segmented.js +25 -0
- package/dist/smart-components/smart-segmented.js.map +1 -0
- package/dist/smart-components/smart-select.d.ts +71 -0
- package/dist/smart-components/smart-select.d.ts.map +1 -0
- package/dist/smart-components/smart-select.js +44 -0
- package/dist/smart-components/smart-select.js.map +1 -0
- package/dist/smart-components/smart-separator.d.ts +3 -0
- package/dist/smart-components/smart-separator.d.ts.map +1 -0
- package/dist/smart-components/smart-separator.js +4 -0
- package/dist/smart-components/smart-separator.js.map +1 -0
- package/dist/smart-components/smart-sheet.d.ts +79 -0
- package/dist/smart-components/smart-sheet.d.ts.map +1 -0
- package/dist/smart-components/smart-sheet.js +47 -0
- package/dist/smart-components/smart-sheet.js.map +1 -0
- package/dist/smart-components/smart-stat-card.d.ts +47 -0
- package/dist/smart-components/smart-stat-card.d.ts.map +1 -0
- package/dist/smart-components/smart-stat-card.js +35 -0
- package/dist/smart-components/smart-stat-card.js.map +1 -0
- package/dist/smart-components/smart-stepper.d.ts +24 -0
- package/dist/smart-components/smart-stepper.d.ts.map +1 -0
- package/dist/smart-components/smart-stepper.js +24 -0
- package/dist/smart-components/smart-stepper.js.map +1 -0
- package/dist/smart-components/smart-switch.d.ts +34 -0
- package/dist/smart-components/smart-switch.d.ts.map +1 -0
- package/dist/smart-components/smart-switch.js +34 -0
- package/dist/smart-components/smart-switch.js.map +1 -0
- package/dist/smart-components/smart-textarea.d.ts +38 -0
- package/dist/smart-components/smart-textarea.d.ts.map +1 -0
- package/dist/smart-components/smart-textarea.js +28 -0
- package/dist/smart-components/smart-textarea.js.map +1 -0
- package/dist/smart-components/smart-time-picker.d.ts +59 -0
- package/dist/smart-components/smart-time-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-time-picker.js +129 -0
- package/dist/smart-components/smart-time-picker.js.map +1 -0
- package/dist/smart-components/smart-time-range-picker.d.ts +39 -0
- package/dist/smart-components/smart-time-range-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-time-range-picker.js +26 -0
- package/dist/smart-components/smart-time-range-picker.js.map +1 -0
- package/dist/smart-components/smart-toaster.d.ts +10 -0
- package/dist/smart-components/smart-toaster.d.ts.map +1 -0
- package/dist/smart-components/smart-toaster.js +21 -0
- package/dist/smart-components/smart-toaster.js.map +1 -0
- package/dist/smart-components/smart-year-picker.d.ts +29 -0
- package/dist/smart-components/smart-year-picker.d.ts.map +1 -0
- package/dist/smart-components/smart-year-picker.js +43 -0
- package/dist/smart-components/smart-year-picker.js.map +1 -0
- package/dist/smart-components/spinner.d.ts +10 -0
- package/dist/smart-components/spinner.d.ts.map +1 -0
- package/dist/smart-components/spinner.js +5 -0
- package/dist/smart-components/spinner.js.map +1 -0
- package/dist/transfer-list-engine/index.d.ts +5 -0
- package/dist/transfer-list-engine/index.d.ts.map +1 -0
- package/dist/transfer-list-engine/index.js +3 -0
- package/dist/transfer-list-engine/index.js.map +1 -0
- package/dist/transfer-list-engine/transfer-list.d.ts +53 -0
- package/dist/transfer-list-engine/transfer-list.d.ts.map +1 -0
- package/dist/transfer-list-engine/transfer-list.js +190 -0
- package/dist/transfer-list-engine/transfer-list.js.map +1 -0
- package/dist/transfer-list-engine/transfer-utils.d.ts +30 -0
- package/dist/transfer-list-engine/transfer-utils.d.ts.map +1 -0
- package/dist/transfer-list-engine/transfer-utils.js +69 -0
- package/dist/transfer-list-engine/transfer-utils.js.map +1 -0
- package/dist/transfer-list-engine/types.d.ts +51 -0
- package/dist/transfer-list-engine/types.d.ts.map +1 -0
- package/dist/transfer-list-engine/types.js +2 -0
- package/dist/transfer-list-engine/types.js.map +1 -0
- package/dist/tree-engine/index.d.ts +6 -0
- package/dist/tree-engine/index.d.ts.map +1 -0
- package/dist/tree-engine/index.js +3 -0
- package/dist/tree-engine/index.js.map +1 -0
- package/dist/tree-engine/tree-utils.d.ts +84 -0
- package/dist/tree-engine/tree-utils.d.ts.map +1 -0
- package/dist/tree-engine/tree-utils.js +271 -0
- package/dist/tree-engine/tree-utils.js.map +1 -0
- package/dist/tree-engine/tree.d.ts +98 -0
- package/dist/tree-engine/tree.d.ts.map +1 -0
- package/dist/tree-engine/tree.js +430 -0
- package/dist/tree-engine/tree.js.map +1 -0
- package/dist/tree-engine/types.d.ts +85 -0
- package/dist/tree-engine/types.d.ts.map +1 -0
- package/dist/tree-engine/types.js +2 -0
- package/dist/tree-engine/types.js.map +1 -0
- package/dist/tree-engine/use-tree.d.ts +12 -0
- package/dist/tree-engine/use-tree.d.ts.map +1 -0
- package/dist/tree-engine/use-tree.js +34 -0
- package/dist/tree-engine/use-tree.js.map +1 -0
- package/package.json +158 -0
- package/src/styles/globals.css +161 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type DataGridColumn, type DataGridDensity } from "./grid-internals";
|
|
3
|
+
import { type GridActionColumnOptions } from "./action-column";
|
|
4
|
+
export type { DataGridColumn, DataGridDensity } from "./grid-internals";
|
|
5
|
+
export interface SmartGridProps<TRow> {
|
|
6
|
+
/** Row data. */
|
|
7
|
+
rows: TRow[];
|
|
8
|
+
/** Column definitions. */
|
|
9
|
+
columns: DataGridColumn<TRow>[];
|
|
10
|
+
/**
|
|
11
|
+
* Config-driven Edit/Delete action column — pinned, permission-aware and
|
|
12
|
+
* row-aware, with per-row loading and optional delete confirmation. The
|
|
13
|
+
* column auto-hides when disabled or when every action is statically hidden.
|
|
14
|
+
*/
|
|
15
|
+
actionColumn?: GridActionColumnOptions<TRow>;
|
|
16
|
+
/** Show the branded loading overlay. */
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
/** Optional grid title rendered in the toolbar. */
|
|
19
|
+
title?: ReactNode;
|
|
20
|
+
/** Extra toolbar content rendered on the right. */
|
|
21
|
+
toolbarActions?: ReactNode;
|
|
22
|
+
/** Quick-search box (filters across all columns). Default `true`. */
|
|
23
|
+
quickSearch?: boolean;
|
|
24
|
+
/** Column visibility menu. Default `true`. */
|
|
25
|
+
columnSelector?: boolean;
|
|
26
|
+
/** Export-to-CSV button. Default `true`. */
|
|
27
|
+
exportCsv?: boolean;
|
|
28
|
+
/** CSV file name (without extension). Default `"export"`. */
|
|
29
|
+
exportFileName?: string;
|
|
30
|
+
/** Enable client-side pagination. Default `true`. */
|
|
31
|
+
pagination?: boolean;
|
|
32
|
+
/** Rows per page. Default `10`. */
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
/** Page-size options shown in the selector. */
|
|
35
|
+
pageSizeOptions?: number[];
|
|
36
|
+
/** Row selection mode. Default `"none"`. */
|
|
37
|
+
selection?: "single" | "multiple" | "none";
|
|
38
|
+
/** Fired when the selection changes. */
|
|
39
|
+
onSelectionChange?: (rows: TRow[]) => void;
|
|
40
|
+
/** Stable row id getter (recommended for selection + updates). */
|
|
41
|
+
getRowId?: (row: TRow) => string;
|
|
42
|
+
/** Row density. Default `"normal"`. */
|
|
43
|
+
density?: DataGridDensity;
|
|
44
|
+
/** Grid height. Default `480`. */
|
|
45
|
+
height?: number | string;
|
|
46
|
+
/** Empty-state content shown when there are no rows. */
|
|
47
|
+
emptyState?: {
|
|
48
|
+
title?: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
};
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Enterprise data grid built on AG Grid Community. Hides AG Grid setup behind a
|
|
55
|
+
* small prop API while supporting sorting, filtering, quick search, column
|
|
56
|
+
* visibility, CSV export, row selection, pagination, custom cell renderers and
|
|
57
|
+
* branded loading/empty states.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* <SmartGrid rows={users} columns={columns} loading={isLoading} selection="multiple" />
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare const SmartGrid: <TRow>({ rows, columns, actionColumn, loading, title, toolbarActions, quickSearch, columnSelector, exportCsv, exportFileName, pagination, pageSize, pageSizeOptions, selection, onSelectionChange, getRowId, density, height, emptyState, className, }: SmartGridProps<TRow>) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
//# sourceMappingURL=data-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid.d.ts","sourceRoot":"","sources":["../../src/data-grid/data-grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAgBjE,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,eAAe,EAErB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,iBAAiB,CAAA;AAIxB,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvE,MAAM,WAAW,cAAc,CAAC,IAAI;IAClC,gBAAgB;IAChB,IAAI,EAAE,IAAI,EAAE,CAAA;IACZ,0BAA0B;IAC1B,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAA;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAC,CAAA;IAC5C,wCAAwC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mDAAmD;IACnD,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,mDAAmD;IACnD,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qDAAqD;IACrD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,4CAA4C;IAC5C,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAA;IAC1C,wCAAwC;IACxC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAC1C,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,CAAA;IAChC,uCAAuC;IACvC,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,wDAAwD;IACxD,UAAU,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACrD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,GAAI,IAAI,EAAG,iPAqB9B,cAAc,CAAC,IAAI,CAAC,4CAmJtB,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useRef, useState } from "react";
|
|
3
|
+
import { AgGridReact } from "ag-grid-react";
|
|
4
|
+
import { Download } from "lucide-react";
|
|
5
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
6
|
+
import { SmartLoadingOverlay } from "@iamsaroj/smart-ui/smart-components/loading-overlay";
|
|
7
|
+
import { SmartSearchInput } from "@iamsaroj/smart-ui/smart-components/search-input";
|
|
8
|
+
import { GridToolbar } from "./grid-toolbar";
|
|
9
|
+
import { escapeCsvFormula } from "./formula-guard";
|
|
10
|
+
import { dataGridTheme } from "./grid-theme";
|
|
11
|
+
import { ensureGridModules, NoRowsOverlay, resolveColumnId, resolveColumnLabel, rowHeightByDensity, } from "./grid-internals";
|
|
12
|
+
import { isExportSuppressed, } from "./action-column";
|
|
13
|
+
import { useGridActionColumn, withActionColumn } from "./use-action-column";
|
|
14
|
+
/**
|
|
15
|
+
* Enterprise data grid built on AG Grid Community. Hides AG Grid setup behind a
|
|
16
|
+
* small prop API while supporting sorting, filtering, quick search, column
|
|
17
|
+
* visibility, CSV export, row selection, pagination, custom cell renderers and
|
|
18
|
+
* branded loading/empty states.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <SmartGrid rows={users} columns={columns} loading={isLoading} selection="multiple" />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export const SmartGrid = ({ rows, columns, actionColumn, loading = false, title, toolbarActions, quickSearch = true, columnSelector = true, exportCsv = true, exportFileName = "export", pagination = true, pageSize = 10, pageSizeOptions = [10, 25, 50, 100], selection = "none", onSelectionChange, getRowId, density = "normal", height = 480, emptyState, className, }) => {
|
|
26
|
+
ensureGridModules();
|
|
27
|
+
const gridRef = useRef(null);
|
|
28
|
+
const [gridApi, setGridApi] = useState(null);
|
|
29
|
+
const [quickFilter, setQuickFilter] = useState("");
|
|
30
|
+
const actionColumnDef = useGridActionColumn(actionColumn);
|
|
31
|
+
const effectiveColumns = useMemo(() => withActionColumn(columns, actionColumnDef), [columns, actionColumnDef]);
|
|
32
|
+
const [columnVisibility, setColumnVisibility] = useState(() => {
|
|
33
|
+
const initial = {};
|
|
34
|
+
columns.forEach((column, index) => {
|
|
35
|
+
initial[resolveColumnId(column, index)] = column.hide !== true;
|
|
36
|
+
});
|
|
37
|
+
return initial;
|
|
38
|
+
});
|
|
39
|
+
const defaultColDef = useMemo(() => ({
|
|
40
|
+
sortable: true,
|
|
41
|
+
filter: true,
|
|
42
|
+
resizable: true,
|
|
43
|
+
flex: 1,
|
|
44
|
+
minWidth: 120,
|
|
45
|
+
}), []);
|
|
46
|
+
const rowSelection = useMemo(() => {
|
|
47
|
+
if (selection === "multiple")
|
|
48
|
+
return { mode: "multiRow" };
|
|
49
|
+
if (selection === "single")
|
|
50
|
+
return { mode: "singleRow" };
|
|
51
|
+
return undefined;
|
|
52
|
+
}, [selection]);
|
|
53
|
+
const toggleableColumns = useMemo(() => columns.map((column, index) => {
|
|
54
|
+
const id = resolveColumnId(column, index);
|
|
55
|
+
return { id, label: resolveColumnLabel(column, id) };
|
|
56
|
+
}), [columns]);
|
|
57
|
+
const handleGridReady = (event) => {
|
|
58
|
+
setGridApi(event.api);
|
|
59
|
+
};
|
|
60
|
+
const handleSelectionChanged = (event) => {
|
|
61
|
+
onSelectionChange?.(event.api.getSelectedRows());
|
|
62
|
+
};
|
|
63
|
+
const handleToggleColumn = (id, visible) => {
|
|
64
|
+
setColumnVisibility((prev) => ({ ...prev, [id]: visible }));
|
|
65
|
+
gridApi?.setColumnsVisible([id], visible);
|
|
66
|
+
};
|
|
67
|
+
const handleExport = () => {
|
|
68
|
+
if (!gridApi)
|
|
69
|
+
return;
|
|
70
|
+
// Drop columns flagged non-exportable (e.g. the action column). Only pass
|
|
71
|
+
// columnKeys when something is actually excluded, so AG Grid's default
|
|
72
|
+
// column handling stays in effect otherwise.
|
|
73
|
+
const displayed = gridApi.getAllDisplayedColumns();
|
|
74
|
+
const exportable = displayed.filter((column) => !isExportSuppressed(column.getColDef().context));
|
|
75
|
+
gridApi.exportDataAsCsv({
|
|
76
|
+
fileName: `${exportFileName}.csv`,
|
|
77
|
+
columnKeys: exportable.length === displayed.length
|
|
78
|
+
? undefined
|
|
79
|
+
: exportable.map((column) => column.getColId()),
|
|
80
|
+
// Neutralize spreadsheet formula injection (=/+/-/@ leading strings).
|
|
81
|
+
processCellCallback: (params) => escapeCsvFormula(params.value),
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const showToolbar = title || quickSearch || columnSelector || exportCsv || toolbarActions;
|
|
85
|
+
return (_jsxs("div", { className: cn("flex flex-col gap-3", className), children: [showToolbar ? (_jsx(GridToolbar, { title: title, leadingContent: quickSearch ? (_jsx(SmartSearchInput, { value: quickFilter, onValueChange: setQuickFilter, placeholder: "Search\u2026", className: "h-9 w-full sm:w-64", "aria-label": "Search table" })) : null, toolbarActions: toolbarActions, columns: columnSelector
|
|
86
|
+
? toggleableColumns.map((column) => ({
|
|
87
|
+
...column,
|
|
88
|
+
visible: columnVisibility[column.id] ?? true,
|
|
89
|
+
}))
|
|
90
|
+
: undefined, onToggleColumn: handleToggleColumn, onExport: exportCsv ? handleExport : undefined, exportIcon: _jsx(Download, { className: "h-4 w-4" }) })) : null, _jsx(SmartLoadingOverlay, { loading: loading, label: "Loading data\u2026", children: _jsx("div", { style: { height, width: "100%" }, children: _jsx(AgGridReact, { ref: gridRef, theme: dataGridTheme, rowData: rows, columnDefs: effectiveColumns, suppressCellFocus: true, defaultColDef: defaultColDef, quickFilterText: quickFilter, rowSelection: rowSelection, pagination: pagination, paginationPageSize: pageSize, paginationPageSizeSelector: pageSizeOptions, rowHeight: rowHeightByDensity[density], getRowId: getRowId ? (params) => getRowId(params.data) : undefined, animateRows: true, noRowsOverlayComponent: NoRowsOverlay, noRowsOverlayComponentParams: {
|
|
91
|
+
title: emptyState?.title,
|
|
92
|
+
description: emptyState?.description,
|
|
93
|
+
}, onGridReady: handleGridReady, onSelectionChanged: handleSelectionChanged }) }) })] }));
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=data-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid.js","sourceRoot":"","sources":["../../src/data-grid/data-grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AACjE,OAAO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AAC,mBAAmB,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAC,oBAAe,YAC1D,cAAK,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YACnC,KAAC,WAAW,IACV,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,IAAI,EACb,UAAU,EAAE,gBAAgB,EAC5B,iBAAiB,EAAE,IAAI,EACvB,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,WAAW,EAC5B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,kBAAkB,EAAE,QAAQ,EAC5B,0BAA0B,EAAE,eAAe,EAC3C,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,EACtC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,EAClE,WAAW,QACX,sBAAsB,EAAE,aAAa,EACrC,4BAA4B,EAC1B;4BACE,KAAK,EAAE,UAAU,EAAE,KAAK;4BACxB,WAAW,EAAE,UAAU,EAAE,WAAW;yBACd,EAE1B,WAAW,EAAE,eAAe,EAC5B,kBAAkB,EAAE,sBAAsB,GAC1C,GACE,GACc,IAClB,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export interface SmartEmptyStateProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Optional illustrative icon. */
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
title: string;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
/** Optional call-to-action (e.g. a SmartButton). */
|
|
8
|
+
action?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/** Friendly placeholder for empty lists, tables and search results. */
|
|
11
|
+
declare const SmartEmptyState: ({ icon, title, description, action, className, ...props }: SmartEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { SmartEmptyState };
|
|
13
|
+
//# sourceMappingURL=empty-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/data-grid/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtD,MAAM,WAAW,oBAAqB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC1E,kCAAkC;IAClC,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,oDAAoD;IACpD,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,uEAAuE;AACvE,QAAA,MAAM,eAAe,GAAI,2DAOtB,oBAAoB,4CAuBtB,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
3
|
+
/** Friendly placeholder for empty lists, tables and search results. */
|
|
4
|
+
const SmartEmptyState = ({ icon, title, description, action, className, ...props }) => (_jsxs("div", { className: cn("flex flex-col items-center justify-center gap-3 rounded-lg border border-dashed p-10 text-center", className), ...props, children: [icon ? (_jsx("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-muted text-muted-foreground [&>svg]:size-6", children: icon })) : null, _jsxs("div", { className: "space-y-1", children: [_jsx("h3", { className: "text-sm font-semibold", children: title }), description ? (_jsx("p", { className: "mx-auto max-w-sm text-sm text-muted-foreground", children: description })) : null] }), action ? _jsx("div", { className: "pt-1", children: action }) : null] }));
|
|
5
|
+
export { SmartEmptyState };
|
|
6
|
+
//# sourceMappingURL=empty-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.js","sourceRoot":"","sources":["../../src/data-grid/empty-state.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AAWjD,uEAAuE;AACvE,MAAM,eAAe,GAAG,CAAC,EACvB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,GAAG,KAAK,EACa,EAAE,EAAE,CAAC,CAC1B,eACE,SAAS,EAAE,EAAE,CACX,kGAAkG,EAClG,SAAS,CACV,KACG,KAAK,aAER,IAAI,CAAC,CAAC,CAAC,CACN,cAAK,SAAS,EAAC,uGAAuG,YACnH,IAAI,GACD,CACP,CAAC,CAAC,CAAC,IAAI,EACR,eAAK,SAAS,EAAC,WAAW,aACxB,aAAI,SAAS,EAAC,uBAAuB,YAAE,KAAK,GAAM,EACjD,WAAW,CAAC,CAAC,CAAC,CACb,YAAG,SAAS,EAAC,gDAAgD,YAC1D,WAAW,GACV,CACL,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,MAAM,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,MAAM,YAAE,MAAM,GAAO,CAAC,CAAC,CAAC,IAAI,IACjD,CACP,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spreadsheet **formula-injection** guard for grid exports.
|
|
3
|
+
*
|
|
4
|
+
* A cell whose text starts with `=`, `+`, `-`, `@`, or a leading tab/carriage
|
|
5
|
+
* return is interpreted as a *formula* when the exported file is opened in
|
|
6
|
+
* Excel / Sheets / LibreOffice. With attacker-controlled data that becomes a
|
|
7
|
+
* code-execution / data-exfiltration vector (the classic `=cmd|'/C calc'!A0`
|
|
8
|
+
* and `=HYPERLINK(...)` payloads). Prefixing such values with a single quote
|
|
9
|
+
* (`'`) forces the tool to treat the cell as literal text.
|
|
10
|
+
*
|
|
11
|
+
* `SmartGrid`'s CSV export routes every cell through {@link escapeCsvFormula}
|
|
12
|
+
* (via AG Grid's `processCellCallback`), and the XLSX export path
|
|
13
|
+
* (`collectGridExport`) does the same — belt and braces, since a leading `=`
|
|
14
|
+
* still detonates if a user re-saves an `.xlsx` as CSV.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Prefix a formula-triggering string with `'` so spreadsheets treat it as text.
|
|
18
|
+
* Non-strings (numbers/booleans/null/undefined) are returned unchanged — only
|
|
19
|
+
* the *string* form is dangerous, and quoting a number would corrupt it.
|
|
20
|
+
*/
|
|
21
|
+
export declare const escapeCsvFormula: <T>(value: T) => T | string;
|
|
22
|
+
//# sourceMappingURL=formula-guard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula-guard.d.ts","sourceRoot":"","sources":["../../src/data-grid/formula-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,CAAC,GAAG,MAGlD,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spreadsheet **formula-injection** guard for grid exports.
|
|
3
|
+
*
|
|
4
|
+
* A cell whose text starts with `=`, `+`, `-`, `@`, or a leading tab/carriage
|
|
5
|
+
* return is interpreted as a *formula* when the exported file is opened in
|
|
6
|
+
* Excel / Sheets / LibreOffice. With attacker-controlled data that becomes a
|
|
7
|
+
* code-execution / data-exfiltration vector (the classic `=cmd|'/C calc'!A0`
|
|
8
|
+
* and `=HYPERLINK(...)` payloads). Prefixing such values with a single quote
|
|
9
|
+
* (`'`) forces the tool to treat the cell as literal text.
|
|
10
|
+
*
|
|
11
|
+
* `SmartGrid`'s CSV export routes every cell through {@link escapeCsvFormula}
|
|
12
|
+
* (via AG Grid's `processCellCallback`), and the XLSX export path
|
|
13
|
+
* (`collectGridExport`) does the same — belt and braces, since a leading `=`
|
|
14
|
+
* still detonates if a user re-saves an `.xlsx` as CSV.
|
|
15
|
+
*/
|
|
16
|
+
/** Characters that make a spreadsheet treat a leading cell value as a formula. */
|
|
17
|
+
const FORMULA_TRIGGERS = new Set(["=", "+", "-", "@", "\t", "\r"]);
|
|
18
|
+
/**
|
|
19
|
+
* Prefix a formula-triggering string with `'` so spreadsheets treat it as text.
|
|
20
|
+
* Non-strings (numbers/booleans/null/undefined) are returned unchanged — only
|
|
21
|
+
* the *string* form is dangerous, and quoting a number would corrupt it.
|
|
22
|
+
*/
|
|
23
|
+
export const escapeCsvFormula = (value) => {
|
|
24
|
+
if (typeof value !== "string" || value.length === 0)
|
|
25
|
+
return value;
|
|
26
|
+
return FORMULA_TRIGGERS.has(value[0]) ? `'${value}` : value;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=formula-guard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula-guard.js","sourceRoot":"","sources":["../../src/data-grid/formula-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,kFAAkF;AAClF,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAA;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAI,KAAQ,EAAc,EAAE;IAC1D,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAA;IACjE,OAAO,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;AAC7D,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ColDef } from "ag-grid-community";
|
|
2
|
+
export declare const ensureGridModules: () => void;
|
|
3
|
+
/** Column definition — a thin alias over AG Grid's `ColDef` so consumers needn't import AG Grid. */
|
|
4
|
+
export type DataGridColumn<TRow> = ColDef<TRow>;
|
|
5
|
+
export type DataGridDensity = "compact" | "normal" | "comfortable";
|
|
6
|
+
export declare const rowHeightByDensity: Record<DataGridDensity, number>;
|
|
7
|
+
export interface NoRowsParams {
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const NoRowsOverlay: (props: NoRowsParams) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/** Stable id for a column: explicit `colId`, else `field`, else positional. */
|
|
13
|
+
export declare const resolveColumnId: <TRow>(column: DataGridColumn<TRow>, index: number) => string;
|
|
14
|
+
/** Human label for a column: `headerName`, else `field`, else a fallback. */
|
|
15
|
+
export declare const resolveColumnLabel: <TRow>(column: DataGridColumn<TRow>, fallback: string) => string;
|
|
16
|
+
//# sourceMappingURL=grid-internals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-internals.d.ts","sourceRoot":"","sources":["../../src/data-grid/grid-internals.tsx"],"names":[],"mappings":"AAAA,OAAO,EAmBL,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAA;AAsB1B,eAAO,MAAM,iBAAiB,QAAO,IA+BpC,CAAA;AAED,oGAAoG;AACpG,MAAM,MAAM,cAAc,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,CAAA;AAE/C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAA;AAGlE,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAI9D,CAAA;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,YAAY,4CAQhD,CAAA;AAED,+EAA+E;AAE/E,eAAO,MAAM,eAAe,GAAI,IAAI,EAClC,QAAQ,cAAc,CAAC,IAAI,CAAC,EAC5B,OAAO,MAAM,KACZ,MAIF,CAAA;AAED,6EAA6E;AAE7E,eAAO,MAAM,kBAAkB,GAAI,IAAI,EACrC,QAAQ,cAAc,CAAC,IAAI,CAAC,EAC5B,UAAU,MAAM,KACf,MAIF,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CellApiModule, CellStyleModule, ClientSideRowModelModule, ColumnApiModule, CsvExportModule, DateFilterModule, InfiniteRowModelModule, ModuleRegistry, NumberEditorModule, NumberFilterModule, PaginationModule, QuickFilterModule, RowApiModule, RowSelectionModule, SelectEditorModule, TextEditorModule, TextFilterModule, ValidationModule, } from "ag-grid-community";
|
|
3
|
+
import { SmartEmptyState } from "./empty-state";
|
|
4
|
+
/**
|
|
5
|
+
* Internal helpers shared by {@link SmartGrid} (client-side) and
|
|
6
|
+
* {@link SmartServerGrid} (server-side / infinite). Not part of the public API —
|
|
7
|
+
* the data-grid barrel does not re-export this module.
|
|
8
|
+
*/
|
|
9
|
+
// AG Grid v33+ requires explicit module registration. Only the modules the two
|
|
10
|
+
// grids actually use are registered (not `AllCommunityModule`, which more than
|
|
11
|
+
// doubles the ag-grid chunk). If a new grid feature throws a "missing module"
|
|
12
|
+
// error in dev, add its module here — ValidationModule (registered outside
|
|
13
|
+
// production only) names the exact module to add.
|
|
14
|
+
let modulesRegistered = false;
|
|
15
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
16
|
+
export const ensureGridModules = () => {
|
|
17
|
+
if (!modulesRegistered) {
|
|
18
|
+
ModuleRegistry.registerModules([
|
|
19
|
+
// Row models: SmartGrid (client-side) + SmartServerGrid (infinite)
|
|
20
|
+
ClientSideRowModelModule,
|
|
21
|
+
InfiniteRowModelModule,
|
|
22
|
+
// Column header filters (defaultColDef.filter: true) + quick search
|
|
23
|
+
TextFilterModule,
|
|
24
|
+
NumberFilterModule,
|
|
25
|
+
DateFilterModule,
|
|
26
|
+
QuickFilterModule,
|
|
27
|
+
// Cell editing (editable columns; select/number editors used by demos)
|
|
28
|
+
TextEditorModule,
|
|
29
|
+
NumberEditorModule,
|
|
30
|
+
SelectEditorModule,
|
|
31
|
+
// Row selection (incl. cross-page selection in SmartServerGrid)
|
|
32
|
+
RowSelectionModule,
|
|
33
|
+
PaginationModule,
|
|
34
|
+
CsvExportModule,
|
|
35
|
+
// APIs the wrappers call: column state/visibility, forEachNode,
|
|
36
|
+
// getCellValue (Excel export), cellClass support
|
|
37
|
+
ColumnApiModule,
|
|
38
|
+
RowApiModule,
|
|
39
|
+
CellApiModule,
|
|
40
|
+
CellStyleModule,
|
|
41
|
+
// Dev-only: descriptive errors (e.g. which module a feature needs).
|
|
42
|
+
// Stripped from production bundles via NODE_ENV define-replacement.
|
|
43
|
+
...(process.env.NODE_ENV !== "production" ? [ValidationModule] : []),
|
|
44
|
+
]);
|
|
45
|
+
modulesRegistered = true;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
49
|
+
export const rowHeightByDensity = {
|
|
50
|
+
compact: 36,
|
|
51
|
+
normal: 44,
|
|
52
|
+
comfortable: 56,
|
|
53
|
+
};
|
|
54
|
+
export const NoRowsOverlay = (props) => (_jsx("div", { className: "flex h-full w-full items-center justify-center p-6", children: _jsx(SmartEmptyState, { className: "border-0", title: props.title ?? "No data", description: props.description ?? "There is nothing to display yet." }) }));
|
|
55
|
+
/** Stable id for a column: explicit `colId`, else `field`, else positional. */
|
|
56
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
57
|
+
export const resolveColumnId = (column, index) => {
|
|
58
|
+
if (column.colId)
|
|
59
|
+
return column.colId;
|
|
60
|
+
if (typeof column.field === "string")
|
|
61
|
+
return column.field;
|
|
62
|
+
return `col-${index}`;
|
|
63
|
+
};
|
|
64
|
+
/** Human label for a column: `headerName`, else `field`, else a fallback. */
|
|
65
|
+
// eslint-disable-next-line react-refresh/only-export-components
|
|
66
|
+
export const resolveColumnLabel = (column, fallback) => {
|
|
67
|
+
if (column.headerName)
|
|
68
|
+
return column.headerName;
|
|
69
|
+
if (typeof column.field === "string")
|
|
70
|
+
return column.field;
|
|
71
|
+
return fallback;
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=grid-internals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-internals.js","sourceRoot":"","sources":["../../src/data-grid/grid-internals.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GAEjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/C;;;;GAIG;AAEH,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,kDAAkD;AAClD,IAAI,iBAAiB,GAAG,KAAK,CAAA;AAO7B,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAS,EAAE;IAC1C,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACvB,cAAc,CAAC,eAAe,CAAC;YAC7B,mEAAmE;YACnE,wBAAwB;YACxB,sBAAsB;YACtB,oEAAoE;YACpE,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,iBAAiB;YACjB,uEAAuE;YACvE,gBAAgB;YAChB,kBAAkB;YAClB,kBAAkB;YAClB,gEAAgE;YAChE,kBAAkB;YAClB,gBAAgB;YAChB,eAAe;YAC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Q;QAAE,OAAO,MAAM,CAAC,KAAK,CAAA;IACzD,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Theme } from "ag-grid-community";
|
|
2
|
+
/**
|
|
3
|
+
* AG Grid theme derived from the design tokens. Colors reference the same CSS
|
|
4
|
+
* variables the rest of the system uses, so the grid follows light/dark mode
|
|
5
|
+
* automatically — no separate AG Grid CSS import required (v33+ Theming API).
|
|
6
|
+
*/
|
|
7
|
+
export declare const dataGridTheme: Theme;
|
|
8
|
+
//# sourceMappingURL=grid-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-theme.d.ts","sourceRoot":"","sources":["../../src/data-grid/grid-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE3D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,KAe1B,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { themeQuartz } from "ag-grid-community";
|
|
2
|
+
/**
|
|
3
|
+
* AG Grid theme derived from the design tokens. Colors reference the same CSS
|
|
4
|
+
* variables the rest of the system uses, so the grid follows light/dark mode
|
|
5
|
+
* automatically — no separate AG Grid CSS import required (v33+ Theming API).
|
|
6
|
+
*/
|
|
7
|
+
export const dataGridTheme = themeQuartz.withParams({
|
|
8
|
+
accentColor: "var(--primary)",
|
|
9
|
+
backgroundColor: "var(--background)",
|
|
10
|
+
foregroundColor: "var(--foreground)",
|
|
11
|
+
borderColor: "var(--border)",
|
|
12
|
+
chromeBackgroundColor: "var(--card)",
|
|
13
|
+
headerBackgroundColor: "var(--muted)",
|
|
14
|
+
headerTextColor: "var(--muted-foreground)",
|
|
15
|
+
rowHoverColor: "var(--accent)",
|
|
16
|
+
selectedRowBackgroundColor: "var(--accent)",
|
|
17
|
+
panelBackgroundColor: "var(--card)",
|
|
18
|
+
fontFamily: "inherit",
|
|
19
|
+
headerFontWeight: 600,
|
|
20
|
+
borderRadius: "var(--radius)",
|
|
21
|
+
wrapperBorderRadius: "var(--radius)",
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=grid-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-theme.js","sourceRoot":"","sources":["../../src/data-grid/grid-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,mBAAmB,CAAA;AAE3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAU,WAAW,CAAC,UAAU,CAAC;IACzD,WAAW,EAAE,gBAAgB;IAC7B,eAAe,EAAE,mBAAmB;IACpC,eAAe,EAAE,mBAAmB;IACpC,WAAW,EAAE,eAAe;IAC5B,qBAAqB,EAAE,aAAa;IACpC,qBAAqB,EAAE,cAAc;IACrC,eAAe,EAAE,yBAAyB;IAC1C,aAAa,EAAE,eAAe;IAC9B,0BAA0B,EAAE,eAAe;IAC3C,oBAAoB,EAAE,aAAa;IACnC,UAAU,EAAE,SAAS;IACrB,gBAAgB,EAAE,GAAG;IACrB,YAAY,EAAE,eAAe;IAC7B,mBAAmB,EAAE,eAAe;CACrC,CAAC,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/** A toggleable column shown in the visibility menu. */
|
|
3
|
+
export interface GridToolbarColumn {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface GridToolbarProps {
|
|
9
|
+
/** Title rendered on the left. */
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Extra left-group content after the title — e.g. a quick-search input
|
|
13
|
+
* (client grid) or a selected-count label (server grid).
|
|
14
|
+
*/
|
|
15
|
+
leadingContent?: ReactNode;
|
|
16
|
+
/** Extra content rendered at the start of the right-hand action group. */
|
|
17
|
+
toolbarActions?: ReactNode;
|
|
18
|
+
/** When provided, renders a manual refresh button. */
|
|
19
|
+
onRefresh?: () => void;
|
|
20
|
+
/** When provided, renders the column-visibility menu. */
|
|
21
|
+
columns?: GridToolbarColumn[];
|
|
22
|
+
/** Toggle handler for the column-visibility menu. */
|
|
23
|
+
onToggleColumn?: (id: string, visible: boolean) => void;
|
|
24
|
+
/** When provided, renders an export button. */
|
|
25
|
+
onExport?: () => void;
|
|
26
|
+
/** Icon for the export button (e.g. CSV vs. Excel). */
|
|
27
|
+
exportIcon?: ReactNode;
|
|
28
|
+
/** Export button label. Default `"Export"`. */
|
|
29
|
+
exportLabel?: string;
|
|
30
|
+
/** Extra class names merged onto the toolbar root. */
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Shared toolbar for `SmartGrid` and `SmartServerGrid`. Internal to the
|
|
35
|
+
* data-grid layer (not exported from the package barrel), matching the
|
|
36
|
+
* `*-internals` convention — the two grids compose it with their own left-group
|
|
37
|
+
* content, refresh behaviour and export format.
|
|
38
|
+
*/
|
|
39
|
+
export declare const GridToolbar: ({ title, leadingContent, toolbarActions, onRefresh, columns, onToggleColumn, onExport, exportIcon, exportLabel, className, }: GridToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
//# sourceMappingURL=grid-toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-toolbar.d.ts","sourceRoot":"","sources":["../../src/data-grid/grid-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AActC,wDAAwD;AACxD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,0EAA0E;IAC1E,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,yDAAyD;IACzD,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,qDAAqD;IACrD,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACvD,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,uDAAuD;IACvD,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,8HAWzB,gBAAgB,4CAsDlB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Columns3, RefreshCw } from "lucide-react";
|
|
3
|
+
import { cn } from "@iamsaroj/smart-ui/lib/utils";
|
|
4
|
+
import { Button } from "@iamsaroj/smart-ui/components/button";
|
|
5
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "@iamsaroj/smart-ui/components/dropdown-menu";
|
|
6
|
+
/**
|
|
7
|
+
* Shared toolbar for `SmartGrid` and `SmartServerGrid`. Internal to the
|
|
8
|
+
* data-grid layer (not exported from the package barrel), matching the
|
|
9
|
+
* `*-internals` convention — the two grids compose it with their own left-group
|
|
10
|
+
* content, refresh behaviour and export format.
|
|
11
|
+
*/
|
|
12
|
+
export const GridToolbar = ({ title, leadingContent, toolbarActions, onRefresh, columns, onToggleColumn, onExport, exportIcon, exportLabel = "Export", className, }) => (_jsxs("div", { className: cn("flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", className), children: [_jsxs("div", { className: "flex items-center gap-3", children: [title ? _jsx("h3", { className: "text-base font-semibold", children: title }) : null, leadingContent] }), _jsxs("div", { className: "flex items-center gap-2", children: [toolbarActions, onRefresh ? (_jsxs(Button, { variant: "outline", size: "sm", onClick: onRefresh, children: [_jsx(RefreshCw, { className: "h-4 w-4" }), "Refresh"] })) : null, columns ? (_jsxs(DropdownMenu, { children: [_jsxs(DropdownMenuTrigger, { render: _jsx(Button, { variant: "outline", size: "sm" }), children: [_jsx(Columns3, { className: "h-4 w-4" }), "Columns"] }), _jsx(DropdownMenuContent, { align: "end", className: "w-48", children: _jsxs(DropdownMenuGroup, { children: [_jsx(DropdownMenuLabel, { children: "Toggle columns" }), _jsx(DropdownMenuSeparator, {}), columns.map((column) => (_jsx(DropdownMenuCheckboxItem, { checked: column.visible, onCheckedChange: (checked) => onToggleColumn?.(column.id, checked), onSelect: (event) => event.preventDefault(), children: column.label }, column.id)))] }) })] })) : null, onExport ? (_jsxs(Button, { variant: "outline", size: "sm", onClick: onExport, children: [exportIcon, exportLabel] })) : null] })] }));
|
|
13
|
+
//# sourceMappingURL=grid-toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid-toolbar.js","sourceRoot":"","sources":["../../src/data-grid/grid-toolbar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAA;AAC7D,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,6CAA6C,CAAA;AAmCpD;;;;;GAKG;AACH,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CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,EAAE,YAE1C,MAAM,CAAC,KAAK,IAPR,MAAM,CAAC,EAAE,CAQW,CAC5B,CAAC,IACgB,GACA,IACT,CAChB,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,CACV,MAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,QAAQ,aAClD,UAAU,EACV,WAAW,IACL,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./data-grid";
|
|
2
|
+
export * from "./server-data-grid";
|
|
3
|
+
export * from "./grid-theme";
|
|
4
|
+
export type { ServerSort, ServerFilter, ServerFetchParams, ServerFetchResult, SPageResponse, } from "./pagination";
|
|
5
|
+
export { pageSchema, buildServerFetchParams, toSpringSort, encodeSpringFilter, buildSpringQuery, } from "./pagination";
|
|
6
|
+
export { createPageFetcher, type PageFetcher, type CreatePageFetcherOptions, } from "./create-page-fetcher";
|
|
7
|
+
export { ACTION_COLUMN_ID, type GridActionKind, type GridActionRowValue, type GridActionConfirmOptions, type GridRowActionConfig, type GridRowActionProp, type GridActionColumnActions, type GridActionColumnPin, type GridActionColumnOptions, } from "./action-column";
|
|
8
|
+
export { GridActionCell, buildActionColumnDef, type GridActionCellParams, type GridActionColumnStore, } from "./action-column-cell";
|
|
9
|
+
export { useGridActionColumn, withActionColumn } from "./use-action-column";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,YAAY,EACV,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GACd,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,iBAAiB,EACjB,KAAK,WAAW,EAChB,KAAK,wBAAwB,GAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,GAC7B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,GAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./data-grid";
|
|
2
|
+
export * from "./server-data-grid";
|
|
3
|
+
export * from "./grid-theme";
|
|
4
|
+
export { pageSchema, buildServerFetchParams, toSpringSort, encodeSpringFilter, buildSpringQuery, } from "./pagination";
|
|
5
|
+
export { createPageFetcher, } from "./create-page-fetcher";
|
|
6
|
+
export { ACTION_COLUMN_ID, } from "./action-column";
|
|
7
|
+
export { GridActionCell, buildActionColumnDef, } from "./action-column-cell";
|
|
8
|
+
export { useGridActionColumn, withActionColumn } from "./use-action-column";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/data-grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAQ5B,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,cAAc,CAAA;AACrB,OAAO,EACL,iBAAiB,GAGlB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,gBAAgB,GASjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,cAAc,EACd,oBAAoB,GAGrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA"}
|