@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 @@
|
|
|
1
|
+
{"version":3,"file":"server-data-grid.js","sourceRoot":"","sources":["../../src/data-grid/server-data-grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,GAIT,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAS3C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,8BAA8B,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,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,mBAAmB,IAAC,OAAO,QAAC,KAAK,EAAC,oBAAe,GAAG,CACtD,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,CACP,KAAC,cAAc,IACb,OAAO,EAAC,SAAS,EACjB,KAAK,EAAC,yBAAoB,EAC1B,WAAW,EAAE,KAAK,EAClB,OAAO,EAAE,WAAW,EACpB,UAAU,EAAC,OAAO,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,wBAAwB,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;AACjE,wBAAwB,CAAC,WAAW,GAAG,iBAAiB,CAAA;AAExD;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,wBAId,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { ColumnState, GridApi, IDatasource } from "ag-grid-community";
|
|
2
|
+
import { type ServerFetchParams, type ServerFetchResult, type ServerFilter } from "./pagination";
|
|
3
|
+
import type { XlsxCell } from "@iamsaroj/smart-ui/lib/xlsx";
|
|
4
|
+
/**
|
|
5
|
+
* Pure, stateless helpers extracted from {@link SmartServerGrid} so the
|
|
6
|
+
* component file stays focused on wiring AG Grid to React, and so the tricky
|
|
7
|
+
* bits (the infinite-model datasource, state persistence, export shaping,
|
|
8
|
+
* error coercion, filter merging) can be unit-tested directly.
|
|
9
|
+
*
|
|
10
|
+
* **Internal** — the data-grid barrel does not re-export this module.
|
|
11
|
+
*/
|
|
12
|
+
/** The grid state persisted to `localStorage` under `persistStateKey`. */
|
|
13
|
+
export interface PersistedGridState {
|
|
14
|
+
columnState?: ColumnState[];
|
|
15
|
+
filterModel?: Record<string, unknown>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Read the persisted column/filter state for `key`. Returns `null` when nothing
|
|
19
|
+
* is stored or when storage is unavailable / the value is corrupt (so callers
|
|
20
|
+
* just start fresh).
|
|
21
|
+
*/
|
|
22
|
+
export declare const readPersistedGridState: (key: string) => PersistedGridState | null;
|
|
23
|
+
/** Persist column/filter state under `key`; silently no-ops if storage fails. */
|
|
24
|
+
export declare const writePersistedGridState: (key: string, state: PersistedGridState) => void;
|
|
25
|
+
/** Tiny trailing debounce — keeps persistence off the hot path of resize/scroll. */
|
|
26
|
+
export declare const debounce: <A extends unknown[]>(fn: (...args: A) => void, ms: number) => ((...args: A) => void);
|
|
27
|
+
/** Best-effort message from an unknown thrown value (incl. `NormalizedApiError`). */
|
|
28
|
+
export declare const errorMessage: (error: unknown) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Merge external (search-form) filters on top of the grid's own column filters.
|
|
31
|
+
* Returns `base` untouched when there are no external filters.
|
|
32
|
+
*/
|
|
33
|
+
export declare const mergeServerFilters: (base: ServerFilter[], external: ServerFilter[] | undefined) => ServerFilter[];
|
|
34
|
+
/**
|
|
35
|
+
* Wiring {@link createGridDatasource} needs from the component. The getters
|
|
36
|
+
* read mutable refs so the datasource object itself can stay **stable** for the
|
|
37
|
+
* grid's lifetime — handing AG Grid a new datasource purges its cache.
|
|
38
|
+
*/
|
|
39
|
+
export interface CreateGridDatasourceOptions<TRow> {
|
|
40
|
+
/** Read the latest `fetchRows` prop. */
|
|
41
|
+
getFetchRows: () => (params: ServerFetchParams, signal: AbortSignal) => Promise<ServerFetchResult<TRow>>;
|
|
42
|
+
/** Read the latest external (search-form) filters. */
|
|
43
|
+
getExternalFilters: () => ServerFilter[] | undefined;
|
|
44
|
+
/** Live registry of in-flight requests (for abort-on-unmount etc.). */
|
|
45
|
+
controllers: Set<AbortController>;
|
|
46
|
+
/** A block fetch started — drives the "loading more" indicator. */
|
|
47
|
+
onFetchStart: () => void;
|
|
48
|
+
/** A block resolved — clear any error state. */
|
|
49
|
+
onSuccess: () => void;
|
|
50
|
+
/** A block failed (not aborted) — surface the error overlay. */
|
|
51
|
+
onError: (message: string) => void;
|
|
52
|
+
/** A block settled either way — clear the initial-loading overlay. */
|
|
53
|
+
onSettled: () => void;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The infinite-row-model datasource behind {@link SmartServerGrid}: translates
|
|
57
|
+
* AG Grid's `IGetRowsParams` into normalized {@link ServerFetchParams}, merges
|
|
58
|
+
* external filters over column filters, tracks an `AbortController` per block,
|
|
59
|
+
* and routes the outcome into the success/fail callbacks — swallowing
|
|
60
|
+
* rejections of blocks that were aborted (an abort is not an error).
|
|
61
|
+
*/
|
|
62
|
+
export declare const createGridDatasource: <TRow>(options: CreateGridDatasourceOptions<TRow>) => IDatasource;
|
|
63
|
+
/** A grid's loaded rows shaped into a header row + body rows for `.xlsx` export. */
|
|
64
|
+
export interface GridExportTable {
|
|
65
|
+
headers: string[];
|
|
66
|
+
rows: XlsxCell[][];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Collect the currently-displayed columns and loaded rows into a flat table for
|
|
70
|
+
* export, using each cell's *displayed* (formatted) value. Respects column
|
|
71
|
+
* visibility and order. Only rows present in the grid's cache are included
|
|
72
|
+
* (the infinite row model never holds every page at once).
|
|
73
|
+
*
|
|
74
|
+
* AG Grid's internal utility columns (checkbox selection, auto-group, row
|
|
75
|
+
* numbers — all prefixed `ag-Grid-`) carry no data and are excluded, as are
|
|
76
|
+
* columns flagged non-exportable (the action column, unless `exportable`).
|
|
77
|
+
*/
|
|
78
|
+
export declare const collectGridExport: <TRow>(api: GridApi<TRow>) => GridExportTable;
|
|
79
|
+
//# sourceMappingURL=server-grid-internals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-grid-internals.d.ts","sourceRoot":"","sources":["../../src/data-grid/server-grid-internals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,OAAO,EACP,WAAW,EAEZ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,cAAc,CAAA;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AS,EAAE,MAAM,IAAI,CAAA;IACrB,gEAAgE;IAChE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,sEAAsE;IACtE,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAAI,IAAI,EACvC,SAAS,2BAA2B,CAAC,IAAI,CAAC,KACzC,WAsCD,CAAA;AAIF,oFAAoF;AACpF,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAA;CACnB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,IAAI,EACpC,KAAK,OAAO,CAAC,IAAI,CAAC,KACjB,eA+BF,CAAA"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { buildServerFetchParams, } from "./pagination";
|
|
2
|
+
import { escapeCsvFormula } from "./formula-guard";
|
|
3
|
+
import { isExportSuppressed } from "./action-column";
|
|
4
|
+
/**
|
|
5
|
+
* Read the persisted column/filter state for `key`. Returns `null` when nothing
|
|
6
|
+
* is stored or when storage is unavailable / the value is corrupt (so callers
|
|
7
|
+
* just start fresh).
|
|
8
|
+
*/
|
|
9
|
+
export const readPersistedGridState = (key) => {
|
|
10
|
+
try {
|
|
11
|
+
const raw = localStorage.getItem(key);
|
|
12
|
+
if (!raw)
|
|
13
|
+
return null;
|
|
14
|
+
return JSON.parse(raw);
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
/* storage unavailable (private mode / quota) or corrupt — ignore */
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
/** Persist column/filter state under `key`; silently no-ops if storage fails. */
|
|
22
|
+
export const writePersistedGridState = (key, state) => {
|
|
23
|
+
try {
|
|
24
|
+
localStorage.setItem(key, JSON.stringify(state));
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
/* storage unavailable (private mode / quota) — non-fatal */
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
/* --------------------------------- debounce -------------------------------- */
|
|
31
|
+
/** Tiny trailing debounce — keeps persistence off the hot path of resize/scroll. */
|
|
32
|
+
export const debounce = (fn, ms) => {
|
|
33
|
+
let timer;
|
|
34
|
+
return (...args) => {
|
|
35
|
+
if (timer)
|
|
36
|
+
clearTimeout(timer);
|
|
37
|
+
timer = setTimeout(() => fn(...args), ms);
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/* ------------------------------- error coercion ---------------------------- */
|
|
41
|
+
/** Best-effort message from an unknown thrown value (incl. `NormalizedApiError`). */
|
|
42
|
+
export const errorMessage = (error) => {
|
|
43
|
+
if (error &&
|
|
44
|
+
typeof error === "object" &&
|
|
45
|
+
"message" in error &&
|
|
46
|
+
typeof error.message === "string") {
|
|
47
|
+
return error.message;
|
|
48
|
+
}
|
|
49
|
+
return "Failed to load data.";
|
|
50
|
+
};
|
|
51
|
+
/* ------------------------------- filter merge ------------------------------ */
|
|
52
|
+
/**
|
|
53
|
+
* Merge external (search-form) filters on top of the grid's own column filters.
|
|
54
|
+
* Returns `base` untouched when there are no external filters.
|
|
55
|
+
*/
|
|
56
|
+
export const mergeServerFilters = (base, external) => {
|
|
57
|
+
if (!external || external.length === 0)
|
|
58
|
+
return base;
|
|
59
|
+
return [...base, ...external];
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* The infinite-row-model datasource behind {@link SmartServerGrid}: translates
|
|
63
|
+
* AG Grid's `IGetRowsParams` into normalized {@link ServerFetchParams}, merges
|
|
64
|
+
* external filters over column filters, tracks an `AbortController` per block,
|
|
65
|
+
* and routes the outcome into the success/fail callbacks — swallowing
|
|
66
|
+
* rejections of blocks that were aborted (an abort is not an error).
|
|
67
|
+
*/
|
|
68
|
+
export const createGridDatasource = (options) => ({
|
|
69
|
+
getRows: (params) => {
|
|
70
|
+
options.onFetchStart();
|
|
71
|
+
const serverParams = buildServerFetchParams({
|
|
72
|
+
startRow: params.startRow,
|
|
73
|
+
endRow: params.endRow,
|
|
74
|
+
sortModel: params.sortModel,
|
|
75
|
+
filterModel: (params.filterModel ?? null),
|
|
76
|
+
});
|
|
77
|
+
// Merge any external (search-form) filters on top of column filters.
|
|
78
|
+
serverParams.filters = mergeServerFilters(serverParams.filters, options.getExternalFilters());
|
|
79
|
+
const controller = new AbortController();
|
|
80
|
+
options.controllers.add(controller);
|
|
81
|
+
options
|
|
82
|
+
.getFetchRows()(serverParams, controller.signal)
|
|
83
|
+
.then((result) => {
|
|
84
|
+
// `lastRow` = the known total, so the grid sizes the scrollbar exactly.
|
|
85
|
+
params.successCallback(result.rows, result.total);
|
|
86
|
+
options.onSuccess();
|
|
87
|
+
}, (reason) => {
|
|
88
|
+
if (controller.signal.aborted)
|
|
89
|
+
return;
|
|
90
|
+
params.failCallback();
|
|
91
|
+
options.onError(errorMessage(reason));
|
|
92
|
+
})
|
|
93
|
+
.finally(() => {
|
|
94
|
+
options.controllers.delete(controller);
|
|
95
|
+
options.onSettled();
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Collect the currently-displayed columns and loaded rows into a flat table for
|
|
101
|
+
* export, using each cell's *displayed* (formatted) value. Respects column
|
|
102
|
+
* visibility and order. Only rows present in the grid's cache are included
|
|
103
|
+
* (the infinite row model never holds every page at once).
|
|
104
|
+
*
|
|
105
|
+
* AG Grid's internal utility columns (checkbox selection, auto-group, row
|
|
106
|
+
* numbers — all prefixed `ag-Grid-`) carry no data and are excluded, as are
|
|
107
|
+
* columns flagged non-exportable (the action column, unless `exportable`).
|
|
108
|
+
*/
|
|
109
|
+
export const collectGridExport = (api) => {
|
|
110
|
+
const displayed = api
|
|
111
|
+
.getAllDisplayedColumns()
|
|
112
|
+
.filter((column) => !column.getColId().startsWith("ag-Grid-") &&
|
|
113
|
+
!isExportSuppressed(column.getColDef().context));
|
|
114
|
+
const headers = displayed.map((column) => {
|
|
115
|
+
const headerName = column.getColDef().headerName;
|
|
116
|
+
return typeof headerName === "string" && headerName.length > 0
|
|
117
|
+
? headerName
|
|
118
|
+
: column.getColId();
|
|
119
|
+
});
|
|
120
|
+
const rows = [];
|
|
121
|
+
api.forEachNode((node) => {
|
|
122
|
+
if (!node.data)
|
|
123
|
+
return;
|
|
124
|
+
rows.push(displayed.map((column) => {
|
|
125
|
+
const value = api.getCellValue({
|
|
126
|
+
rowNode: node,
|
|
127
|
+
colKey: column,
|
|
128
|
+
useFormatter: true,
|
|
129
|
+
});
|
|
130
|
+
// Guard against spreadsheet formula injection if the .xlsx is re-saved
|
|
131
|
+
// as CSV — a leading =/+/-/@ in a string is neutralized with a quote.
|
|
132
|
+
return escapeCsvFormula(value ?? "");
|
|
133
|
+
}));
|
|
134
|
+
});
|
|
135
|
+
return { headers, rows };
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=server-grid-internals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-grid-internals.js","sourceRoot":"","sources":["../../src/data-grid/server-grid-internals.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,sBAAsB,GAIvB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAmBpD;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,GAAW,EACgB,EAAE;IAC7B,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;QACrC,IAAI,CAAC,GAAG;YAAE,OAAO,IAAI,CAAA;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAuB,CAAA;IAC9C,CAAC;IAAC,MAAM,CAAC;QACP,oEAAoE;QACpE,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC,CAAA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0,0 +1,22 @@
|
|
|
1
|
+
import type { DataGridColumn } from "./grid-internals";
|
|
2
|
+
import { type GridActionColumnOptions } from "./action-column";
|
|
3
|
+
/**
|
|
4
|
+
* Turn the `actionColumn` prop into a ColDef (or `null` when the column should
|
|
5
|
+
* not exist — disabled, or every action statically hidden).
|
|
6
|
+
*
|
|
7
|
+
* Performance contract: consumers inline `actionColumn` with fresh callbacks on
|
|
8
|
+
* every render (`loading: (row) => deletingId === row.id`), but recreating the
|
|
9
|
+
* ColDef each time would make AG Grid re-diff its column model. So the ColDef
|
|
10
|
+
* is memoized on the *structural* signature only, and the latest options flow
|
|
11
|
+
* to the cells through a tiny external store: each mounted action cell
|
|
12
|
+
* subscribes via `useSyncExternalStore` and re-renders when the options object
|
|
13
|
+
* changes identity — no AG Grid refresh round-trip, no stale callbacks, and
|
|
14
|
+
* only the visible action cells re-render.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGridActionColumn: <TRow>(options: GridActionColumnOptions<TRow> | undefined) => DataGridColumn<TRow> | null;
|
|
17
|
+
/**
|
|
18
|
+
* Insert the action column into a column list: first when pinned left
|
|
19
|
+
* (the default), last when pinned right or unpinned.
|
|
20
|
+
*/
|
|
21
|
+
export declare const withActionColumn: <TRow>(columns: DataGridColumn<TRow>[], actionColumn: DataGridColumn<TRow> | null) => DataGridColumn<TRow>[];
|
|
22
|
+
//# sourceMappingURL=use-action-column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-action-column.d.ts","sourceRoot":"","sources":["../../src/data-grid/use-action-column.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,iBAAiB,CAAA;AAMxB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,EACtC,SAAS,uBAAuB,CAAC,IAAI,CAAC,GAAG,SAAS,KACjD,cAAc,CAAC,IAAI,CAAC,GAAG,IAuCzB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,IAAI,EACnC,SAAS,cAAc,CAAC,IAAI,CAAC,EAAE,EAC/B,cAAc,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,KACxC,cAAc,CAAC,IAAI,CAAC,EAKtB,CAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { useLayoutEffect, useMemo, useRef } from "react";
|
|
2
|
+
import { actionColumnSignature, isActionColumnEnabled, } from "./action-column";
|
|
3
|
+
import { buildActionColumnDef, } from "./action-column-cell";
|
|
4
|
+
/**
|
|
5
|
+
* Turn the `actionColumn` prop into a ColDef (or `null` when the column should
|
|
6
|
+
* not exist — disabled, or every action statically hidden).
|
|
7
|
+
*
|
|
8
|
+
* Performance contract: consumers inline `actionColumn` with fresh callbacks on
|
|
9
|
+
* every render (`loading: (row) => deletingId === row.id`), but recreating the
|
|
10
|
+
* ColDef each time would make AG Grid re-diff its column model. So the ColDef
|
|
11
|
+
* is memoized on the *structural* signature only, and the latest options flow
|
|
12
|
+
* to the cells through a tiny external store: each mounted action cell
|
|
13
|
+
* subscribes via `useSyncExternalStore` and re-renders when the options object
|
|
14
|
+
* changes identity — no AG Grid refresh round-trip, no stale callbacks, and
|
|
15
|
+
* only the visible action cells re-render.
|
|
16
|
+
*/
|
|
17
|
+
export const useGridActionColumn = (options) => {
|
|
18
|
+
const optionsRef = useRef(options);
|
|
19
|
+
const versionRef = useRef(0);
|
|
20
|
+
const listenersRef = useRef(new Set());
|
|
21
|
+
// Publish the new options to the mounted cells. Layout effect so the cells
|
|
22
|
+
// (which render after the grid commits) never see a stale snapshot.
|
|
23
|
+
useLayoutEffect(() => {
|
|
24
|
+
optionsRef.current = options;
|
|
25
|
+
versionRef.current += 1;
|
|
26
|
+
listenersRef.current.forEach((listener) => listener());
|
|
27
|
+
}, [options]);
|
|
28
|
+
// Stable store handed to every action cell through cellRendererParams. The
|
|
29
|
+
// refs are only read when a cell renders or when AG Grid invokes the
|
|
30
|
+
// callbacks — never during this hook's own render.
|
|
31
|
+
const store = useMemo(() => ({
|
|
32
|
+
getOptions: () => optionsRef.current ?? {},
|
|
33
|
+
getVersion: () => versionRef.current,
|
|
34
|
+
subscribe: (listener) => {
|
|
35
|
+
listenersRef.current.add(listener);
|
|
36
|
+
return () => listenersRef.current.delete(listener);
|
|
37
|
+
},
|
|
38
|
+
}), []);
|
|
39
|
+
const signature = actionColumnSignature(options);
|
|
40
|
+
return useMemo(() => {
|
|
41
|
+
if (!isActionColumnEnabled(options))
|
|
42
|
+
return null;
|
|
43
|
+
// `options` is fresh from the render that changed `signature`; afterwards
|
|
44
|
+
// the cells keep reading the latest value through the store. The ColDef
|
|
45
|
+
// only *stores* the getters — they run when a cell renders or AG Grid
|
|
46
|
+
// calls back, never during this hook's render.
|
|
47
|
+
// eslint-disable-next-line react-hooks/refs -- refs-for-latest-props, same pattern as the SmartServerGrid datasource
|
|
48
|
+
return buildActionColumnDef(options, store);
|
|
49
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- `signature` covers every structural field; per-row callbacks intentionally don't rebuild the ColDef
|
|
50
|
+
}, [signature, store]);
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Insert the action column into a column list: first when pinned left
|
|
54
|
+
* (the default), last when pinned right or unpinned.
|
|
55
|
+
*/
|
|
56
|
+
export const withActionColumn = (columns, actionColumn) => {
|
|
57
|
+
if (!actionColumn)
|
|
58
|
+
return columns;
|
|
59
|
+
return actionColumn.pinned === "left"
|
|
60
|
+
? [actionColumn, ...columns]
|
|
61
|
+
: [...columns, actionColumn];
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=use-action-column.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-action-column.js","sourceRoot":"","sources":["../../src/data-grid/use-action-column.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAA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ChD,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;YAAE,OAAO,IAAI,CAAA;QAChD,0EAA0E;QAC1E,wEAAwE;QACxE,sEAAsE;QACtE,+CAA+C;QAC/C,qHAAqH;QACrH,OAAO,oBAAoB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAC3C,8JAA8J;IAChK,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;AACxB,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAA+B,EAC/B,YAAyC,EACjB,EAAE;IAC1B,IAAI,CAAC,YAAY;QAAE,OAAO,OAAO,CAAA;IACjC,OAAO,YAAY,CAAC,MAAM,KAAK,MAAM;QACnC,CAAC,CAAC,CAAC,YAAY,EAAE,GAAG,OAAO,CAAC;QAC5B,CAAC,CAAC,CAAC,GAAG,OAAO,EAAE,YAAY,CAAC,CAAA;AAChC,CAAC,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
import type { GridApi, RowSelectedEvent } from "ag-grid-community";
|
|
3
|
+
/** What changed in a {@link SmartServerGridProps.onSelectionChange} event. */
|
|
4
|
+
export interface ServerSelection<TRow> {
|
|
5
|
+
/** Selected rows that are currently loaded in the grid cache. */
|
|
6
|
+
rows: TRow[];
|
|
7
|
+
/** Every selected row id, including rows on pages not currently loaded. */
|
|
8
|
+
ids: string[];
|
|
9
|
+
}
|
|
10
|
+
/** The selection API returned by {@link useServerGridSelection}. */
|
|
11
|
+
export interface ServerGridSelection<TRow> {
|
|
12
|
+
/** Count of every selected id (drives the toolbar "{n} selected" label). */
|
|
13
|
+
selectedCount: number;
|
|
14
|
+
/** Selected rows currently loaded in the grid cache. */
|
|
15
|
+
collectLoadedSelectedRows: () => TRow[];
|
|
16
|
+
/** All selected row ids (including rows not currently loaded). */
|
|
17
|
+
getSelectedIds: () => string[];
|
|
18
|
+
/** Recompute the count and fire `onSelectionChange`. */
|
|
19
|
+
emitSelection: () => void;
|
|
20
|
+
/** Re-select loaded nodes whose id is in the set — wire to `onModelUpdated`. */
|
|
21
|
+
reapplySelection: () => void;
|
|
22
|
+
/** Track a user selection toggle — wire to `onRowSelected`. */
|
|
23
|
+
handleRowSelected: (event: RowSelectedEvent<TRow>) => void;
|
|
24
|
+
/** Clear the selection (grid + id set) and emit. */
|
|
25
|
+
clearSelection: () => void;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Cross-page selection for {@link SmartServerGrid}. The **id set is the source
|
|
29
|
+
* of truth** so a selection survives block reloads: when AG Grid's infinite row
|
|
30
|
+
* model purges and re-fetches blocks, {@link ServerGridSelection.reapplySelection}
|
|
31
|
+
* re-selects any loaded node whose id is still in the set. Drive it from AG
|
|
32
|
+
* Grid's `onRowSelected` (user toggles) and `onModelUpdated` (blocks arrive).
|
|
33
|
+
*/
|
|
34
|
+
export declare const useServerGridSelection: <TRow>(gridApiRef: RefObject<GridApi<TRow> | null>, onSelectionChange?: (selection: ServerSelection<TRow>) => void) => ServerGridSelection<TRow>;
|
|
35
|
+
//# sourceMappingURL=use-server-grid-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-server-grid-selection.d.ts","sourceRoot":"","sources":["../../src/data-grid/use-server-grid-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAElE,8EAA8E;AAC9E,MAAM,WAAW,eAAe,CAAC,IAAI;IACnC,iEAAiE;IACjE,IAAI,EAAE,IAAI,EAAE,CAAA;IACZ,2EAA2E;IAC3E,GAAG,EAAE,MAAM,EAAE,CAAA;CACd;AAED,oEAAoE;AACpE,MAAM,WAAW,mBAAmB,CAAC,IAAI;IACvC,4EAA4E;IAC5E,aAAa,EAAE,MAAM,CAAA;IACrB,wDAAwD;IACxD,yBAAyB,EAAE,MAAM,IAAI,EAAE,CAAA;IACvC,kEAAkE;IAClE,cAAc,EAAE,MAAM,MAAM,EAAE,CAAA;IAC9B,wDAAwD;IACxD,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,gFAAgF;IAChF,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,+DAA+D;IAC/D,iBAAiB,EAAE,CAAC,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,IAAI,CAAA;IAC1D,oDAAoD;IACpD,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,IAAI,EACzC,YAAY,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,EAC3C,oBAAoB,CAAC,SAAS,EAAE,eAAe,CAAC,IAAI,CAAC,KAAK,IAAI,KAC7D,mBAAmB,CAAC,IAAI,CAiF1B,CAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Cross-page selection for {@link SmartServerGrid}. The **id set is the source
|
|
4
|
+
* of truth** so a selection survives block reloads: when AG Grid's infinite row
|
|
5
|
+
* model purges and re-fetches blocks, {@link ServerGridSelection.reapplySelection}
|
|
6
|
+
* re-selects any loaded node whose id is still in the set. Drive it from AG
|
|
7
|
+
* Grid's `onRowSelected` (user toggles) and `onModelUpdated` (blocks arrive).
|
|
8
|
+
*/
|
|
9
|
+
export const useServerGridSelection = (gridApiRef, onSelectionChange) => {
|
|
10
|
+
// Selection that survives block reloads: the id set is the source of truth.
|
|
11
|
+
const selectedIdsRef = useRef(new Set());
|
|
12
|
+
// Guards against treating our own programmatic re-selection as a user action.
|
|
13
|
+
const applyingSelectionRef = useRef(false);
|
|
14
|
+
// Latest callback read without re-creating the memoized handlers.
|
|
15
|
+
const onSelectionChangeRef = useRef(onSelectionChange);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
onSelectionChangeRef.current = onSelectionChange;
|
|
18
|
+
});
|
|
19
|
+
const [selectedCount, setSelectedCount] = useState(0);
|
|
20
|
+
const collectLoadedSelectedRows = useCallback(() => {
|
|
21
|
+
const api = gridApiRef.current;
|
|
22
|
+
const rows = [];
|
|
23
|
+
if (!api)
|
|
24
|
+
return rows;
|
|
25
|
+
api.forEachNode((node) => {
|
|
26
|
+
if (node.data && node.id != null && selectedIdsRef.current.has(node.id)) {
|
|
27
|
+
rows.push(node.data);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return rows;
|
|
31
|
+
}, [gridApiRef]);
|
|
32
|
+
const getSelectedIds = useCallback(() => Array.from(selectedIdsRef.current), []);
|
|
33
|
+
const emitSelection = useCallback(() => {
|
|
34
|
+
const ids = Array.from(selectedIdsRef.current);
|
|
35
|
+
setSelectedCount(ids.length);
|
|
36
|
+
onSelectionChangeRef.current?.({ rows: collectLoadedSelectedRows(), ids });
|
|
37
|
+
}, [collectLoadedSelectedRows]);
|
|
38
|
+
// Re-select nodes whose id is in the set whenever new blocks arrive.
|
|
39
|
+
const reapplySelection = useCallback(() => {
|
|
40
|
+
const api = gridApiRef.current;
|
|
41
|
+
if (!api || selectedIdsRef.current.size === 0)
|
|
42
|
+
return;
|
|
43
|
+
applyingSelectionRef.current = true;
|
|
44
|
+
api.forEachNode((node) => {
|
|
45
|
+
if (node.id != null &&
|
|
46
|
+
selectedIdsRef.current.has(node.id) &&
|
|
47
|
+
!node.isSelected()) {
|
|
48
|
+
node.setSelected(true);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
applyingSelectionRef.current = false;
|
|
52
|
+
}, [gridApiRef]);
|
|
53
|
+
const handleRowSelected = useCallback((event) => {
|
|
54
|
+
if (applyingSelectionRef.current)
|
|
55
|
+
return; // ignore programmatic re-selection
|
|
56
|
+
const { node } = event;
|
|
57
|
+
if (node.id == null)
|
|
58
|
+
return;
|
|
59
|
+
if (node.isSelected())
|
|
60
|
+
selectedIdsRef.current.add(node.id);
|
|
61
|
+
else
|
|
62
|
+
selectedIdsRef.current.delete(node.id);
|
|
63
|
+
emitSelection();
|
|
64
|
+
}, [emitSelection]);
|
|
65
|
+
const clearSelection = useCallback(() => {
|
|
66
|
+
gridApiRef.current?.deselectAll();
|
|
67
|
+
selectedIdsRef.current.clear();
|
|
68
|
+
setSelectedCount(0);
|
|
69
|
+
emitSelection();
|
|
70
|
+
}, [gridApiRef, emitSelection]);
|
|
71
|
+
return {
|
|
72
|
+
selectedCount,
|
|
73
|
+
collectLoadedSelectedRows,
|
|
74
|
+
getSelectedIds,
|
|
75
|
+
emitSelection,
|
|
76
|
+
reapplySelection,
|
|
77
|
+
handleRowSelected,
|
|
78
|
+
clearSelection,
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=use-server-grid-selection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-server-grid-selection.js","sourceRoot":"","sources":["../../src/data-grid/use-server-grid-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AA6BhF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,UAA2C,EAC3C,iBAA8D,EACnC,EAAE;IAC7B,4EAA4E;IAC5E,MAAM,cAAc,GAAG,MAAM,CAAc,IAAI,GAAG,EAAE,CAAC,CAAA;IACrD,8EAA8E;IAC9E,MAAM,oBAAoB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAC1C,kEAAkE;IAClE,MAAM,oBAAoB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACtD,SAAS,CAAC,GAAG,EAAE;QACb,oBAAoB,CAAC,OAAO,GAAG,iBAAiB,CAAA;IACl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AAa,CAAC,CAAC,CAAA;IAE/B,OAAO;QACL,aAAa;QACb,yBAAyB;QACzB,cAAc;QACd,aAAa;QACb,gBAAgB;QAChB,iBAAiB;QACjB,cAAc;KACf,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Shared props for every controlled field in the form-engine layer.
|
|
4
|
+
* All fields are driven by the `data` / `setData` pair.
|
|
5
|
+
*/
|
|
6
|
+
export interface FieldBaseProps<T> {
|
|
7
|
+
data: T;
|
|
8
|
+
setData: (value: T) => void;
|
|
9
|
+
label?: ReactNode;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
error?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/form-engine/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAA;IACP,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/form-engine/base.ts"],"names":[],"mappings":""}
|