@archbase/components 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/types.d.ts +65 -0
- package/dist/archbase-components-3.0.0.tgz +0 -0
- package/dist/buttons/ActionsDemo.d.ts +2 -0
- package/dist/buttons/ArchbaseActionButtons.d.ts +61 -0
- package/dist/buttons/index.d.ts +2 -0
- package/dist/charts/ArchbaseTimeline.d.ts +24 -0
- package/dist/charts/index.d.ts +3 -0
- package/dist/charts/vis-timeline/ArchbaseVisTimeline.d.ts +9 -0
- package/dist/charts/vis-timeline/ArchbaseVisTimeline.types.d.ts +284 -0
- package/dist/charts/vis-timeline/index.d.ts +9 -0
- package/dist/charts/vis-timeline/utils/timelineOptions.d.ts +68 -0
- package/dist/datagrid/components/index.d.ts +6 -0
- package/dist/datagrid/components/pagination/grid-pagination.d.ts +7 -0
- package/dist/datagrid/components/render/archbase-data-grid-item-renderer.d.ts +10 -0
- package/dist/datagrid/components/toolbar/global-search-input.d.ts +16 -0
- package/dist/datagrid/components/toolbar/grid-toolbar.d.ts +19 -0
- package/dist/datagrid/hooks/index.d.ts +3 -0
- package/dist/datagrid/hooks/use-grid-data-stable-rendering.d.ts +15 -0
- package/dist/datagrid/hooks/use-grid-data.d.ts +32 -0
- package/dist/datagrid/hooks/use-grid-details-panel.d.ts +51 -0
- package/dist/datagrid/index.d.ts +6 -0
- package/dist/datagrid/main/archbase-data-grid-column.d.ts +26 -0
- package/dist/datagrid/main/archbase-data-grid-formatters.d.ts +57 -0
- package/dist/datagrid/main/archbase-data-grid-pagination.d.ts +8 -0
- package/dist/datagrid/main/archbase-data-grid-toolbar.d.ts +7 -0
- package/dist/datagrid/main/archbase-data-grid-types.d.ts +252 -0
- package/dist/datagrid/main/archbase-data-grid-utils.d.ts +45 -0
- package/dist/datagrid/main/archbase-data-grid.d.ts +9 -0
- package/dist/datagrid/main/archbase-detail-panel-component.d.ts +52 -0
- package/dist/datagrid/main/archbase-expand-button.d.ts +22 -0
- package/dist/datagrid/main/archbase-grid-popover.d.ts +37 -0
- package/dist/datagrid/main/grid-row-actions.d.ts +15 -0
- package/dist/datagrid/main/index.d.ts +21 -0
- package/dist/datagrid/modals/export-data.d.ts +13 -0
- package/dist/datagrid/modals/export-modal.d.ts +9 -0
- package/dist/datagrid/modals/index.d.ts +6 -0
- package/dist/datagrid/modals/print-data.d.ts +16 -0
- package/dist/datagrid/modals/print-modal.d.ts +9 -0
- package/dist/datagrid/types/grid-props.d.ts +48 -0
- package/dist/datagrid/types/index.d.ts +1 -0
- package/dist/datagrid/utils/formatter.d.ts +39 -0
- package/dist/datagrid/utils/index.d.ts +1 -0
- package/dist/debug/index.d.ts +4 -0
- package/dist/debug/jsonpathpicker/ArchbaseJsonPathPicker.d.ts +37 -0
- package/dist/debug/jsonpathpicker/index.d.ts +1 -0
- package/dist/debug/jsonview/ArchbaseJsonViewDataRenderer.d.ts +34 -0
- package/dist/debug/jsonview/ArchbaseJsonViewDataTypeDetection.d.ts +8 -0
- package/dist/debug/jsonview/index.d.ts +11 -0
- package/dist/debug/objectinspector/ArchbaseDebugInspector.d.ts +23 -0
- package/dist/debug/objectinspector/ArchbaseFloatingWindow.d.ts +24 -0
- package/dist/debug/objectinspector/ArchbaseObjectInspector.d.ts +6 -0
- package/dist/debug/objectinspector/index.d.ts +3 -0
- package/dist/display/index.d.ts +4 -0
- package/dist/editors/ArchbaseAsyncMultiSelect.d.ts +112 -0
- package/dist/editors/ArchbaseAsyncSelect.context.d.ts +8 -0
- package/dist/editors/ArchbaseAsyncSelect.d.ts +102 -0
- package/dist/editors/ArchbaseAvatarEdit.d.ts +49 -0
- package/dist/editors/ArchbaseCheckbox.d.ts +45 -0
- package/dist/editors/ArchbaseChip.d.ts +43 -0
- package/dist/editors/ArchbaseChipGroup.d.ts +42 -0
- package/dist/editors/ArchbaseChipItem.d.ts +18 -0
- package/dist/editors/ArchbaseColorPicker.d.ts +3 -0
- package/dist/editors/ArchbaseCountdownProgress.d.ts +5 -0
- package/dist/editors/ArchbaseCronExpressionEdit.d.ts +16 -0
- package/dist/editors/ArchbaseCronExpressionEditor.d.ts +8 -0
- package/dist/editors/ArchbaseDatePicker.d.ts +2 -0
- package/dist/editors/ArchbaseDatePickerEdit.d.ts +85 -0
- package/dist/editors/ArchbaseDatePickerRange.d.ts +47 -0
- package/dist/editors/ArchbaseDateTimePickerEdit.d.ts +43 -0
- package/dist/editors/ArchbaseDateTimePickerRange.d.ts +58 -0
- package/dist/editors/ArchbaseEdit.d.ts +56 -0
- package/dist/editors/ArchbaseEdit.example.d.ts +8 -0
- package/dist/editors/ArchbaseFileAttachment.d.ts +17 -0
- package/dist/editors/ArchbaseImageEdit.d.ts +50 -0
- package/dist/editors/ArchbaseJsonEdit.d.ts +49 -0
- package/dist/editors/ArchbaseKeyValueEditor.d.ts +22 -0
- package/dist/editors/ArchbaseLookupEdit.d.ts +57 -0
- package/dist/editors/ArchbaseLookupNumber.d.ts +69 -0
- package/dist/editors/ArchbaseLookupSelect.d.ts +9 -0
- package/dist/editors/ArchbaseMarkdownEdit.d.ts +52 -0
- package/dist/editors/ArchbaseMaskEdit.d.ts +79 -0
- package/dist/editors/ArchbaseNumberEdit.d.ts +51 -0
- package/dist/editors/ArchbaseNumberInput.d.ts +2 -0
- package/dist/editors/ArchbaseOperationHoursEditor.d.ts +8 -0
- package/dist/editors/ArchbasePasswordEdit.d.ts +44 -0
- package/dist/editors/ArchbasePasswordInput.d.ts +2 -0
- package/dist/editors/ArchbaseRadio.d.ts +2 -0
- package/dist/editors/ArchbaseRadioGroup.d.ts +45 -0
- package/dist/editors/ArchbaseRadioItem.d.ts +12 -0
- package/dist/editors/ArchbaseRating.d.ts +52 -0
- package/dist/editors/ArchbaseRichTextEdit.d.ts +80 -0
- package/dist/editors/ArchbaseSelect.context.d.ts +8 -0
- package/dist/editors/ArchbaseSelect.d.ts +107 -0
- package/dist/editors/ArchbaseSelectItem.d.ts +15 -0
- package/dist/editors/ArchbaseSwitch.d.ts +53 -0
- package/dist/editors/ArchbaseTextArea.d.ts +47 -0
- package/dist/editors/ArchbaseTimeEdit.d.ts +52 -0
- package/dist/editors/ArchbaseTimeRangeSelector.d.ts +40 -0
- package/dist/editors/ArchbaseTreeSelect.d.ts +65 -0
- package/dist/editors/index.d.ts +81 -0
- package/dist/feedback/index.d.ts +4 -0
- package/dist/filters/ArchbaseCompositeFilters.d.ts +23 -0
- package/dist/filters/ArchbaseCompositeFilters.types.d.ts +303 -0
- package/dist/filters/ArchbaseCompositeFilters.utils.d.ts +69 -0
- package/dist/filters/components/FilterPill.d.ts +5 -0
- package/dist/filters/hooks/index.d.ts +4 -0
- package/dist/filters/hooks/useArchbaseFilterHistory.d.ts +24 -0
- package/dist/filters/hooks/useArchbaseFilterPresets.d.ts +23 -0
- package/dist/filters/hooks/useArchbaseFilters.d.ts +32 -0
- package/dist/filters/hooks/useArchbaseQuickFilters.d.ts +26 -0
- package/dist/filters/index.d.ts +8 -0
- package/dist/forms/index.d.ts +3 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useArchbaseContainerDimensions.d.ts +4 -0
- package/dist/hooks/useArchbaseElementSizeArea.d.ts +6 -0
- package/dist/hooks/useArchbaseListContext.d.ts +2 -0
- package/dist/hooks/useArchbaseNavigateParams.d.ts +3 -0
- package/dist/hooks/useArchbaseVisible.d.ts +2 -0
- package/dist/image/ArchbaseImage.d.ts +33 -0
- package/dist/image/ArchbaseMicrosoftAvatar.d.ts +7 -0
- package/dist/image/editor/components/BasicFilters/BasicFilter.d.ts +9 -0
- package/dist/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.d.ts +12 -0
- package/dist/image/editor/components/EditImage/ArchbaseEditImage.d.ts +11 -0
- package/dist/image/editor/components/Input/Input.d.ts +9 -0
- package/dist/image/editor/components/Tab/Tab.d.ts +23 -0
- package/dist/image/editor/functions/croppr/box.d.ts +95 -0
- package/dist/image/editor/functions/croppr/core.d.ts +121 -0
- package/dist/image/editor/functions/croppr/croppr.d.ts +68 -0
- package/dist/image/editor/functions/croppr/handle.d.ts +23 -0
- package/dist/image/editor/functions/croppr/index.d.ts +2 -0
- package/dist/image/editor/functions/croppr/touch.d.ts +10 -0
- package/dist/image/editor/functions/image-processing.d.ts +11 -0
- package/dist/image/editor/index.d.ts +12 -0
- package/dist/image/editor/models/index.models.d.ts +45 -0
- package/dist/image/index.d.ts +7 -0
- package/dist/image/languages.d.ts +299 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +18368 -0
- package/dist/jsonschema/ArchbaseJsonSchemaEditor.types.d.ts +131 -0
- package/dist/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.d.ts +7 -0
- package/dist/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.d.ts +9 -0
- package/dist/jsonschema/JsonSchemaEditor/advanced-boolean/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/advanced-number/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/advanced-string/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/drop-plus/index.d.ts +10 -0
- package/dist/jsonschema/JsonSchemaEditor/index.d.ts +2 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-advanced/index.d.ts +6 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-array/index.d.ts +8 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-item/index.d.ts +11 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-object/index.d.ts +7 -0
- package/dist/jsonschema/JsonSchemaEditor/schema-root/index.d.ts +8 -0
- package/dist/jsonschema/JsonSchemaEditor/utils.d.ts +25 -0
- package/dist/jsonschema/JsonSchemaEditor/whoops.d.ts +2 -0
- package/dist/jsonschema/index.d.ts +2 -0
- package/dist/list/ArchbaseList.context.d.ts +27 -0
- package/dist/list/ArchbaseList.d.ts +104 -0
- package/dist/list/ArchbaseListItem.d.ts +59 -0
- package/dist/list/index.d.ts +8 -0
- package/dist/list/treeview/ArchbaseTreeView.d.ts +44 -0
- package/dist/list/treeview/ArchbaseTreeView.types.d.ts +40 -0
- package/dist/list/treeview/ArchbaseTreeViewItem.d.ts +19 -0
- package/dist/list/treeview/index.d.ts +5 -0
- package/dist/list-view/ArchbaseListViewTable.d.ts +111 -0
- package/dist/list-view/index.d.ts +2 -0
- package/dist/markdown/ArchbaseMarkdown.d.ts +23 -0
- package/dist/markdown/ArchbaseMarkdown.types.d.ts +181 -0
- package/dist/markdown/components/CodeBlock.d.ts +23 -0
- package/dist/markdown/components/LinkRenderer.d.ts +16 -0
- package/dist/markdown/index.d.ts +11 -0
- package/dist/masonry/ArchbaseMasonry.context.d.ts +21 -0
- package/dist/masonry/ArchbaseMasonry.d.ts +35 -0
- package/dist/masonry/index.d.ts +5 -0
- package/dist/navigation/index.d.ts +3 -0
- package/dist/notification/ArchbaseAlert.d.ts +22 -0
- package/dist/notification/ArchbaseDialog.d.ts +16 -0
- package/dist/notification/ArchbaseNotifications.d.ts +5 -0
- package/dist/notification/index.d.ts +4 -0
- package/dist/onboarding/ArchbaseOnboardingTour.d.ts +99 -0
- package/dist/onboarding/index.d.ts +2 -0
- package/dist/printer/ArchbaseThermalPrinter.d.ts +27 -0
- package/dist/printer/ArchbaseThermalPrinter.types.d.ts +199 -0
- package/dist/printer/index.d.ts +9 -0
- package/dist/printer/utils/escpos.d.ts +127 -0
- package/dist/spreadsheet/ArchbaseSpreadsheetImport.d.ts +4 -0
- package/dist/spreadsheet/ArchbaseSpreadsheetImport.types.d.ts +65 -0
- package/dist/spreadsheet/index.d.ts +2 -0
- package/dist/theme-editor/ArchbaseThemeEditor.d.ts +17 -0
- package/dist/theme-editor/ArchbaseThemeEditor.types.d.ts +187 -0
- package/dist/theme-editor/index.d.ts +9 -0
- package/dist/theme-editor/utils/themeExport.d.ts +198 -0
- package/dist/themes/ArchbaseThemeEditor.d.ts +49 -0
- package/dist/types/index.d.ts +106 -0
- package/dist/video/ArchbaseVideoPlayer.d.ts +18 -0
- package/dist/video/ArchbaseVideoPlayer.types.d.ts +200 -0
- package/dist/video/hooks/useVideoPlayer.d.ts +58 -0
- package/dist/video/index.d.ts +10 -0
- package/dist/viewers/ArchbasePDFViewer.annotations.d.ts +20 -0
- package/dist/viewers/ArchbasePDFViewer.d.ts +2 -0
- package/dist/viewers/ArchbasePDFViewer.toolbar.d.ts +20 -0
- package/dist/viewers/ArchbasePDFViewer.types.d.ts +68 -0
- package/dist/viewers/file-preview/ArchbaseFilePreviewer.d.ts +19 -0
- package/dist/viewers/file-preview/ArchbaseFilePreviewer.types.d.ts +153 -0
- package/dist/viewers/file-preview/index.d.ts +13 -0
- package/dist/viewers/file-preview/utils/fileTypeDetector.d.ts +33 -0
- package/dist/viewers/index.d.ts +5 -0
- package/package.json +154 -0
- package/src/admin/types.ts +73 -0
- package/src/arco.css +6 -0
- package/src/buttons/ActionsDemo.tsx +107 -0
- package/src/buttons/ArchbaseActionButtons.d.ts.map +1 -0
- package/src/buttons/ArchbaseActionButtons.tsx +387 -0
- package/src/buttons/index.d.ts.map +1 -0
- package/src/buttons/index.ts +7 -0
- package/src/charts/ArchbaseTimeline.d.ts.map +1 -0
- package/src/charts/ArchbaseTimeline.tsx +332 -0
- package/src/charts/index.d.ts.map +1 -0
- package/src/charts/index.ts +5 -0
- package/src/charts/vis-timeline/ArchbaseVisTimeline.tsx +401 -0
- package/src/charts/vis-timeline/ArchbaseVisTimeline.types.ts +294 -0
- package/src/charts/vis-timeline/index.ts +36 -0
- package/src/charts/vis-timeline/utils/timelineOptions.ts +213 -0
- package/src/datagrid/components/index.d.ts.map +1 -0
- package/src/datagrid/components/index.tsx +14 -0
- package/src/datagrid/components/pagination/grid-pagination.d.ts.map +1 -0
- package/src/datagrid/components/pagination/grid-pagination.tsx +150 -0
- package/src/datagrid/components/render/archbase-data-grid-item-renderer.tsx +26 -0
- package/src/datagrid/components/toolbar/global-search-input.d.ts.map +1 -0
- package/src/datagrid/components/toolbar/global-search-input.tsx +118 -0
- package/src/datagrid/components/toolbar/grid-toolbar.d.ts.map +1 -0
- package/src/datagrid/components/toolbar/grid-toolbar.tsx +106 -0
- package/src/datagrid/hooks/index.d.ts.map +1 -0
- package/src/datagrid/hooks/index.tsx +18 -0
- package/src/datagrid/hooks/use-grid-data-stable-rendering.d.ts.map +1 -0
- package/src/datagrid/hooks/use-grid-data-stable-rendering.ts +168 -0
- package/src/datagrid/hooks/use-grid-data.d.ts.map +1 -0
- package/src/datagrid/hooks/use-grid-data.tsx +598 -0
- package/src/datagrid/hooks/use-grid-details-panel.d.ts.map +1 -0
- package/src/datagrid/hooks/use-grid-details-panel.ts +316 -0
- package/src/datagrid/index.d.ts.map +1 -0
- package/src/datagrid/index.tsx +12 -0
- package/src/datagrid/main/archbase-data-grid-column.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-column.ts +46 -0
- package/src/datagrid/main/archbase-data-grid-formatters.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-formatters.tsx +384 -0
- package/src/datagrid/main/archbase-data-grid-pagination.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-pagination.tsx +63 -0
- package/src/datagrid/main/archbase-data-grid-toolbar.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-toolbar.tsx +160 -0
- package/src/datagrid/main/archbase-data-grid-types.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-types.tsx +327 -0
- package/src/datagrid/main/archbase-data-grid-utils.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid-utils.ts +494 -0
- package/src/datagrid/main/archbase-data-grid.d.ts.map +1 -0
- package/src/datagrid/main/archbase-data-grid.tsx +1462 -0
- package/src/datagrid/main/archbase-detail-panel-component.d.ts.map +1 -0
- package/src/datagrid/main/archbase-detail-panel-component.tsx +186 -0
- package/src/datagrid/main/archbase-expand-button.d.ts.map +1 -0
- package/src/datagrid/main/archbase-expand-button.tsx +83 -0
- package/src/datagrid/main/archbase-grid-popover.d.ts.map +1 -0
- package/src/datagrid/main/archbase-grid-popover.tsx +188 -0
- package/src/datagrid/main/grid-row-actions.d.ts.map +1 -0
- package/src/datagrid/main/grid-row-actions.tsx +97 -0
- package/src/datagrid/main/index.d.ts.map +1 -0
- package/src/datagrid/main/index.tsx +75 -0
- package/src/datagrid/modals/export-data.d.ts.map +1 -0
- package/src/datagrid/modals/export-data.tsx +183 -0
- package/src/datagrid/modals/export-modal.d.ts.map +1 -0
- package/src/datagrid/modals/export-modal.tsx +168 -0
- package/src/datagrid/modals/index.d.ts.map +1 -0
- package/src/datagrid/modals/index.tsx +6 -0
- package/src/datagrid/modals/print-data.d.ts.map +1 -0
- package/src/datagrid/modals/print-data.tsx +267 -0
- package/src/datagrid/modals/print-modal.d.ts.map +1 -0
- package/src/datagrid/modals/print-modal.tsx +200 -0
- package/src/datagrid/types/grid-props.d.ts.map +1 -0
- package/src/datagrid/types/grid-props.tsx +53 -0
- package/src/datagrid/types/index.d.ts.map +1 -0
- package/src/datagrid/types/index.tsx +1 -0
- package/src/datagrid/utils/formatter.d.ts.map +1 -0
- package/src/datagrid/utils/formatter.tsx +308 -0
- package/src/datagrid/utils/index.d.ts.map +1 -0
- package/src/datagrid/utils/index.tsx +1 -0
- package/src/debug/index.d.ts.map +1 -0
- package/src/debug/index.ts +4 -0
- package/src/debug/jsonpathpicker/ArchbaseJsonPathPicker.css +46 -0
- package/src/debug/jsonpathpicker/ArchbaseJsonPathPicker.d.ts.map +1 -0
- package/src/debug/jsonpathpicker/ArchbaseJsonPathPicker.tsx +341 -0
- package/src/debug/jsonpathpicker/index.d.ts.map +1 -0
- package/src/debug/jsonpathpicker/index.ts +1 -0
- package/src/debug/jsonview/.eslintrc +5 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataRenderer.d.ts.map +1 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataRenderer.tsx +206 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataTypeDetection.d.ts.map +1 -0
- package/src/debug/jsonview/ArchbaseJsonViewDataTypeDetection.ts +31 -0
- package/src/debug/jsonview/index.d.ts.map +1 -0
- package/src/debug/jsonview/index.tsx +60 -0
- package/src/debug/jsonview/styles.module.css +118 -0
- package/src/debug/jsonview/styles.module.css.d.ts +4 -0
- package/src/debug/objectinspector/ArchbaseDebugInspector.d.ts.map +1 -0
- package/src/debug/objectinspector/ArchbaseDebugInspector.tsx +79 -0
- package/src/debug/objectinspector/ArchbaseFloatingWindow.css +70 -0
- package/src/debug/objectinspector/ArchbaseFloatingWindow.d.ts.map +1 -0
- package/src/debug/objectinspector/ArchbaseFloatingWindow.tsx +266 -0
- package/src/debug/objectinspector/ArchbaseObjectInspector.d.ts.map +1 -0
- package/src/debug/objectinspector/ArchbaseObjectInspector.tsx +21 -0
- package/src/debug/objectinspector/index.d.ts.map +1 -0
- package/src/debug/objectinspector/index.ts +3 -0
- package/src/display/index.d.ts.map +1 -0
- package/src/display/index.ts +5 -0
- package/src/editors/ArchbaseAsyncMultiSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseAsyncMultiSelect.tsx +667 -0
- package/src/editors/ArchbaseAsyncSelect.context.d.ts.map +1 -0
- package/src/editors/ArchbaseAsyncSelect.context.ts +9 -0
- package/src/editors/ArchbaseAsyncSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseAsyncSelect.tsx +581 -0
- package/src/editors/ArchbaseAvatarEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseAvatarEdit.tsx +625 -0
- package/src/editors/ArchbaseCheckbox.d.ts.map +1 -0
- package/src/editors/ArchbaseCheckbox.tsx +250 -0
- package/src/editors/ArchbaseChip.d.ts.map +1 -0
- package/src/editors/ArchbaseChip.tsx +233 -0
- package/src/editors/ArchbaseChipGroup.d.ts.map +1 -0
- package/src/editors/ArchbaseChipGroup.tsx +282 -0
- package/src/editors/ArchbaseChipItem.d.ts.map +1 -0
- package/src/editors/ArchbaseChipItem.tsx +21 -0
- package/src/editors/ArchbaseColorPicker.d.ts.map +1 -0
- package/src/editors/ArchbaseColorPicker.tsx +7 -0
- package/src/editors/ArchbaseCountdownProgress.d.ts.map +1 -0
- package/src/editors/ArchbaseCountdownProgress.tsx +57 -0
- package/src/editors/ArchbaseCronExpressionEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseCronExpressionEdit.tsx +86 -0
- package/src/editors/ArchbaseCronExpressionEditor.d.ts.map +1 -0
- package/src/editors/ArchbaseCronExpressionEditor.tsx +133 -0
- package/src/editors/ArchbaseDatePicker.tsx +3 -0
- package/src/editors/ArchbaseDatePickerEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseDatePickerEdit.tsx +785 -0
- package/src/editors/ArchbaseDatePickerRange.d.ts.map +1 -0
- package/src/editors/ArchbaseDatePickerRange.tsx +142 -0
- package/src/editors/ArchbaseDateTimePickerEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseDateTimePickerEdit.tsx +259 -0
- package/src/editors/ArchbaseDateTimePickerRange.d.ts.map +1 -0
- package/src/editors/ArchbaseDateTimePickerRange.tsx +220 -0
- package/src/editors/ArchbaseEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseEdit.example.tsx +240 -0
- package/src/editors/ArchbaseEdit.tsx +325 -0
- package/src/editors/ArchbaseFileAttachment.d.ts.map +1 -0
- package/src/editors/ArchbaseFileAttachment.tsx +259 -0
- package/src/editors/ArchbaseImageEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseImageEdit.tsx +255 -0
- package/src/editors/ArchbaseJsonEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseJsonEdit.tsx +257 -0
- package/src/editors/ArchbaseKeyValueEditor.d.ts.map +1 -0
- package/src/editors/ArchbaseKeyValueEditor.tsx +180 -0
- package/src/editors/ArchbaseLookupEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseLookupEdit.tsx +368 -0
- package/src/editors/ArchbaseLookupNumber.d.ts.map +1 -0
- package/src/editors/ArchbaseLookupNumber.tsx +390 -0
- package/src/editors/ArchbaseLookupSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseLookupSelect.tsx +225 -0
- package/src/editors/ArchbaseMarkdownEdit.tsx +367 -0
- package/src/editors/ArchbaseMaskEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseMaskEdit.tsx +346 -0
- package/src/editors/ArchbaseNumberEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseNumberEdit.tsx +626 -0
- package/src/editors/ArchbaseNumberInput.tsx +3 -0
- package/src/editors/ArchbaseOperationHoursEditor.d.ts.map +1 -0
- package/src/editors/ArchbaseOperationHoursEditor.tsx +206 -0
- package/src/editors/ArchbasePasswordEdit.d.ts.map +1 -0
- package/src/editors/ArchbasePasswordEdit.tsx +265 -0
- package/src/editors/ArchbasePasswordInput.tsx +3 -0
- package/src/editors/ArchbaseRadio.tsx +3 -0
- package/src/editors/ArchbaseRadioGroup.d.ts.map +1 -0
- package/src/editors/ArchbaseRadioGroup.tsx +293 -0
- package/src/editors/ArchbaseRadioItem.d.ts.map +1 -0
- package/src/editors/ArchbaseRadioItem.tsx +14 -0
- package/src/editors/ArchbaseRating.d.ts.map +1 -0
- package/src/editors/ArchbaseRating.tsx +236 -0
- package/src/editors/ArchbaseRichTextEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseRichTextEdit.tsx +435 -0
- package/src/editors/ArchbaseSelect.context.d.ts.map +1 -0
- package/src/editors/ArchbaseSelect.context.ts +9 -0
- package/src/editors/ArchbaseSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseSelect.tsx +550 -0
- package/src/editors/ArchbaseSelectItem.d.ts.map +1 -0
- package/src/editors/ArchbaseSelectItem.tsx +18 -0
- package/src/editors/ArchbaseSwitch.d.ts.map +1 -0
- package/src/editors/ArchbaseSwitch.tsx +266 -0
- package/src/editors/ArchbaseTextArea.d.ts.map +1 -0
- package/src/editors/ArchbaseTextArea.tsx +263 -0
- package/src/editors/ArchbaseTimeEdit.d.ts.map +1 -0
- package/src/editors/ArchbaseTimeEdit.tsx +319 -0
- package/src/editors/ArchbaseTimeRangeSelector.d.ts.map +1 -0
- package/src/editors/ArchbaseTimeRangeSelector.tsx +397 -0
- package/src/editors/ArchbaseTreeSelect.d.ts.map +1 -0
- package/src/editors/ArchbaseTreeSelect.tsx +434 -0
- package/src/editors/index.d.ts.map +1 -0
- package/src/editors/index.tsx +121 -0
- package/src/editors/intro.mdx +4 -0
- package/src/feedback/index.d.ts.map +1 -0
- package/src/feedback/index.ts +5 -0
- package/src/filters/ArchbaseCompositeFilters.tsx +696 -0
- package/src/filters/ArchbaseCompositeFilters.types.ts +402 -0
- package/src/filters/ArchbaseCompositeFilters.utils.ts +378 -0
- package/src/filters/components/FilterPill.tsx +100 -0
- package/src/filters/hooks/index.ts +4 -0
- package/src/filters/hooks/useArchbaseFilterHistory.ts +111 -0
- package/src/filters/hooks/useArchbaseFilterPresets.ts +157 -0
- package/src/filters/hooks/useArchbaseFilters.ts +279 -0
- package/src/filters/hooks/useArchbaseQuickFilters.ts +80 -0
- package/src/filters/index.ts +55 -0
- package/src/forms/index.d.ts.map +1 -0
- package/src/forms/index.ts +4 -0
- package/src/hooks/index.d.ts.map +1 -0
- package/src/hooks/index.ts +5 -0
- package/src/hooks/useArchbaseContainerDimensions.d.ts.map +1 -0
- package/src/hooks/useArchbaseContainerDimensions.ts +28 -0
- package/src/hooks/useArchbaseElementSizeArea.d.ts.map +1 -0
- package/src/hooks/useArchbaseElementSizeArea.ts +39 -0
- package/src/hooks/useArchbaseListContext.d.ts.map +1 -0
- package/src/hooks/useArchbaseListContext.ts +10 -0
- package/src/hooks/useArchbaseNavigateParams.d.ts.map +1 -0
- package/src/hooks/useArchbaseNavigateParams.ts +17 -0
- package/src/hooks/useArchbaseVisible.d.ts.map +1 -0
- package/src/hooks/useArchbaseVisible.ts +35 -0
- package/src/image/.placeholder +0 -0
- package/src/image/ArchbaseImage.d.ts.map +1 -0
- package/src/image/ArchbaseImage.tsx +56 -0
- package/src/image/ArchbaseMicrosoftAvatar.d.ts.map +1 -0
- package/src/image/ArchbaseMicrosoftAvatar.tsx +50 -0
- package/src/image/editor/components/BasicFilters/BasicFilter.d.ts.map +1 -0
- package/src/image/editor/components/BasicFilters/BasicFilter.tsx +179 -0
- package/src/image/editor/components/CropprWrapper/ArchbaseCropper.scss +73 -0
- package/src/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.d.ts.map +1 -0
- package/src/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.tsx +50 -0
- package/src/image/editor/components/EditImage/ArchbaseEditImage.d.ts.map +1 -0
- package/src/image/editor/components/EditImage/ArchbaseEditImage.scss +221 -0
- package/src/image/editor/components/EditImage/ArchbaseEditImage.tsx +469 -0
- package/src/image/editor/components/Input/Input.d.ts.map +1 -0
- package/src/image/editor/components/Input/Input.tsx +70 -0
- package/src/image/editor/components/Tab/Tab.d.ts.map +1 -0
- package/src/image/editor/components/Tab/Tab.tsx +150 -0
- package/src/image/editor/components/Tab/TabsStyles.scss +72 -0
- package/src/image/editor/functions/croppr/box.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/box.ts +272 -0
- package/src/image/editor/functions/croppr/core.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/core.ts +820 -0
- package/src/image/editor/functions/croppr/croppr.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/croppr.ts +136 -0
- package/src/image/editor/functions/croppr/handle.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/handle.ts +75 -0
- package/src/image/editor/functions/croppr/index.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/index.ts +4 -0
- package/src/image/editor/functions/croppr/touch.d.ts.map +1 -0
- package/src/image/editor/functions/croppr/touch.ts +41 -0
- package/src/image/editor/functions/image-processing.d.ts.map +1 -0
- package/src/image/editor/functions/image-processing.ts +202 -0
- package/src/image/editor/image_editor_styles.scss +284 -0
- package/src/image/editor/index.d.ts.map +1 -0
- package/src/image/editor/index.tsx +437 -0
- package/src/image/editor/models/index.models.d.ts.map +1 -0
- package/src/image/editor/models/index.models.ts +48 -0
- package/src/image/index.d.ts.map +1 -0
- package/src/image/index.ts +7 -0
- package/src/image/intro.mdx +4 -0
- package/src/image/languages.d.ts.map +1 -0
- package/src/image/languages.ts +302 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +50 -0
- package/src/jsonschema/ArchbaseJsonSchemaEditor.types.d.ts.map +1 -0
- package/src/jsonschema/ArchbaseJsonSchemaEditor.types.ts +171 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.tsx +8 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.tsx +99 -0
- package/src/jsonschema/JsonSchemaEditor/JsonSchemaEditor.scss +19 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-boolean/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-boolean/index.tsx +33 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-number/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-number/index.tsx +119 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-string/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/advanced-string/index.tsx +146 -0
- package/src/jsonschema/JsonSchemaEditor/drop-plus/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/drop-plus/index.tsx +80 -0
- package/src/jsonschema/JsonSchemaEditor/index.ts +2 -0
- package/src/jsonschema/JsonSchemaEditor/schema-advanced/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-advanced/index.tsx +32 -0
- package/src/jsonschema/JsonSchemaEditor/schema-array/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-array/index.tsx +164 -0
- package/src/jsonschema/JsonSchemaEditor/schema-item/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-item/index.tsx +213 -0
- package/src/jsonschema/JsonSchemaEditor/schema-object/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-object/index.tsx +68 -0
- package/src/jsonschema/JsonSchemaEditor/schema-root/index.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/schema-root/index.tsx +103 -0
- package/src/jsonschema/JsonSchemaEditor/utils.d.ts.map +1 -0
- package/src/jsonschema/JsonSchemaEditor/utils.ts +195 -0
- package/src/jsonschema/JsonSchemaEditor/whoops.tsx +79 -0
- package/src/jsonschema/index.d.ts.map +1 -0
- package/src/jsonschema/index.ts +2 -0
- package/src/list/ArchbaseList.context.d.ts.map +1 -0
- package/src/list/ArchbaseList.context.ts +28 -0
- package/src/list/ArchbaseList.d.ts.map +1 -0
- package/src/list/ArchbaseList.tsx +533 -0
- package/src/list/ArchbaseListItem.d.ts.map +1 -0
- package/src/list/ArchbaseListItem.tsx +161 -0
- package/src/list/index.d.ts.map +1 -0
- package/src/list/index.ts +9 -0
- package/src/list/treeview/ArchbaseTreeView.d.ts.map +1 -0
- package/src/list/treeview/ArchbaseTreeView.module.css +66 -0
- package/src/list/treeview/ArchbaseTreeView.tsx +657 -0
- package/src/list/treeview/ArchbaseTreeView.types.d.ts.map +1 -0
- package/src/list/treeview/ArchbaseTreeView.types.tsx +42 -0
- package/src/list/treeview/ArchbaseTreeViewItem.d.ts.map +1 -0
- package/src/list/treeview/ArchbaseTreeViewItem.tsx +210 -0
- package/src/list/treeview/index.d.ts.map +1 -0
- package/src/list/treeview/index.ts +5 -0
- package/src/list-view/ArchbaseListViewTable.tsx +150 -0
- package/src/list-view/index.ts +2 -0
- package/src/markdown/ArchbaseMarkdown.tsx +463 -0
- package/src/markdown/ArchbaseMarkdown.types.ts +213 -0
- package/src/markdown/components/CodeBlock.tsx +197 -0
- package/src/markdown/components/LinkRenderer.tsx +98 -0
- package/src/markdown/index.ts +29 -0
- package/src/masonry/ArchbaseMasonry.context.d.ts.map +1 -0
- package/src/masonry/ArchbaseMasonry.context.ts +24 -0
- package/src/masonry/ArchbaseMasonry.d.ts.map +1 -0
- package/src/masonry/ArchbaseMasonry.tsx +156 -0
- package/src/masonry/index.d.ts.map +1 -0
- package/src/masonry/index.ts +5 -0
- package/src/navigation/index.d.ts.map +1 -0
- package/src/navigation/index.ts +4 -0
- package/src/notification/ArchbaseAlert.d.ts.map +1 -0
- package/src/notification/ArchbaseAlert.tsx +77 -0
- package/src/notification/ArchbaseDialog.d.ts.map +1 -0
- package/src/notification/ArchbaseDialog.tsx +212 -0
- package/src/notification/ArchbaseNotifications.d.ts.map +1 -0
- package/src/notification/ArchbaseNotifications.tsx +64 -0
- package/src/notification/index.d.ts.map +1 -0
- package/src/notification/index.ts +4 -0
- package/src/notification/intro.mdx +4 -0
- package/src/onboarding/ArchbaseOnboardingTour.tsx +147 -0
- package/src/onboarding/index.ts +2 -0
- package/src/printer/ArchbaseThermalPrinter.tsx +465 -0
- package/src/printer/ArchbaseThermalPrinter.types.ts +221 -0
- package/src/printer/index.ts +54 -0
- package/src/printer/utils/escpos.ts +531 -0
- package/src/spreadsheet/ArchbaseSpreadsheetImport.tsx +223 -0
- package/src/spreadsheet/ArchbaseSpreadsheetImport.types.ts +66 -0
- package/src/spreadsheet/index.ts +10 -0
- package/src/theme-editor/ArchbaseThemeEditor.tsx +728 -0
- package/src/theme-editor/ArchbaseThemeEditor.types.ts +207 -0
- package/src/theme-editor/index.ts +45 -0
- package/src/theme-editor/utils/themeExport.ts +351 -0
- package/src/themes/.placeholder +0 -0
- package/src/themes/ArchbaseThemeEditor.d.ts.map +1 -0
- package/src/themes/ArchbaseThemeEditor.tsx +110 -0
- package/src/treeviews.scss +80 -0
- package/src/types/index.d.ts.map +1 -0
- package/src/types/index.ts +115 -0
- package/src/video/ArchbaseVideoPlayer.tsx +706 -0
- package/src/video/ArchbaseVideoPlayer.types.ts +221 -0
- package/src/video/hooks/useVideoPlayer.ts +362 -0
- package/src/video/index.ts +28 -0
- package/src/viewers/ArchbasePDFViewer.annotations.tsx +423 -0
- package/src/viewers/ArchbasePDFViewer.toolbar.tsx +218 -0
- package/src/viewers/ArchbasePDFViewer.tsx +317 -0
- package/src/viewers/ArchbasePDFViewer.types.ts +85 -0
- package/src/viewers/file-preview/ArchbaseFilePreviewer.tsx +756 -0
- package/src/viewers/file-preview/ArchbaseFilePreviewer.types.ts +186 -0
- package/src/viewers/file-preview/index.ts +43 -0
- package/src/viewers/file-preview/utils/fileTypeDetector.ts +317 -0
- package/src/viewers/index.ts +17 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { GridRowId } from '@mui/x-data-grid';
|
|
2
|
+
/**
|
|
3
|
+
* Hook personalizado para gerenciar os painéis de detalhes
|
|
4
|
+
*/
|
|
5
|
+
export declare function useDetailPanels<T extends object = any>({ allowMultipleDetailPanels, onDetailPanelChange, detailPanelMinHeight }?: {
|
|
6
|
+
allowMultipleDetailPanels?: boolean;
|
|
7
|
+
onDetailPanelChange?: (expandedRowIds: GridRowId[]) => void;
|
|
8
|
+
detailPanelMinHeight?: number;
|
|
9
|
+
}): {
|
|
10
|
+
expandedRowIds: Set<GridRowId>;
|
|
11
|
+
detailPanelHeight: number;
|
|
12
|
+
detailPanelRefs: import("react").RefObject<Map<GridRowId, HTMLDivElement>>;
|
|
13
|
+
toggleExpand: (rowId: GridRowId) => void;
|
|
14
|
+
closeDetailPanel: (rowId: GridRowId) => void;
|
|
15
|
+
closeAllDetailPanels: () => void;
|
|
16
|
+
expandDetailPanel: (rowId: GridRowId) => void;
|
|
17
|
+
setExpandedRowIds: import("react").Dispatch<import("react").SetStateAction<Set<GridRowId>>>;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Hook para detectar cliques fora e scroll para fechar os painéis de detalhes
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDetailPanelAutoClose({ containerRef, expandedRowIds, detailPanelRefs, closeAllDetailPanels }: {
|
|
23
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
24
|
+
expandedRowIds: Set<GridRowId>;
|
|
25
|
+
detailPanelRefs: React.MutableRefObject<Map<GridRowId, HTMLDivElement>>;
|
|
26
|
+
closeAllDetailPanels: () => void;
|
|
27
|
+
}): void;
|
|
28
|
+
/**
|
|
29
|
+
* Hook para calcular as posições dos painéis de detalhes inline
|
|
30
|
+
*/
|
|
31
|
+
export declare function useDetailPanelPositions<T extends object = any>({ rows, getRowId, safeGetRowId, expandedRowIds, detailPanelHeights, rowHeight, headerHeight, detailPanelMinHeight }: {
|
|
32
|
+
rows: T[];
|
|
33
|
+
getRowId?: (row: T) => any;
|
|
34
|
+
safeGetRowId: (row: T, getRowId?: any) => any;
|
|
35
|
+
expandedRowIds: Set<GridRowId>;
|
|
36
|
+
detailPanelHeights: Map<GridRowId, number>;
|
|
37
|
+
rowHeight?: number;
|
|
38
|
+
headerHeight?: number;
|
|
39
|
+
detailPanelMinHeight?: number;
|
|
40
|
+
}): () => Map<GridRowId, number>;
|
|
41
|
+
/**
|
|
42
|
+
* Hook para verificar o espaço disponível na viewport
|
|
43
|
+
*/
|
|
44
|
+
export declare function useAvailableSpace<T extends object = any>({ containerRef, rows, getRowId, safeGetRowId, rowHeight, detailPanelMinHeight }: {
|
|
45
|
+
containerRef: React.RefObject<HTMLElement | null>;
|
|
46
|
+
rows: T[];
|
|
47
|
+
getRowId?: (row: T) => any;
|
|
48
|
+
safeGetRowId: (row: T, getRowId?: any) => any;
|
|
49
|
+
rowHeight?: number;
|
|
50
|
+
detailPanelMinHeight?: number;
|
|
51
|
+
}): boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ArchbaseDataGridColumnProps } from './archbase-data-grid-types';
|
|
2
|
+
export type GridFieldDataType = 'text' | 'integer' | 'currency' | 'boolean' | 'date' | 'datetime' | 'time' | 'enum' | 'image' | 'uuid';
|
|
3
|
+
export type InputFieldType = 'text' | 'select' | 'multi-select' | 'range' | 'checkbox' | 'date' | 'date-range';
|
|
4
|
+
export type AlignType = 'left' | 'center' | 'right';
|
|
5
|
+
export type EnumValuesColumnFilter = {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
declare function ArchbaseDataGridColumn<T>(_props: ArchbaseDataGridColumnProps<T>): any;
|
|
10
|
+
declare namespace ArchbaseDataGridColumn {
|
|
11
|
+
var defaultProps: {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
size: number;
|
|
14
|
+
align: string;
|
|
15
|
+
enableColumnFilter: boolean;
|
|
16
|
+
enableGlobalFilter: boolean;
|
|
17
|
+
headerAlign: string;
|
|
18
|
+
footerAlign: string;
|
|
19
|
+
enableClickToCopy: boolean;
|
|
20
|
+
enableSorting: boolean;
|
|
21
|
+
dataType: string;
|
|
22
|
+
inputFilterType: string;
|
|
23
|
+
enumValues: any[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export default ArchbaseDataGridColumn;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MaskOptions } from '@archbase/core';
|
|
3
|
+
/**
|
|
4
|
+
* Renderiza texto com máscara opcional e decodificação automática de base64
|
|
5
|
+
*/
|
|
6
|
+
export declare const renderText: (cell: any, maskOptions?: MaskOptions) => ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Renderiza números inteiros
|
|
9
|
+
*/
|
|
10
|
+
export declare const renderInteger: (cell: any) => ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Renderiza valores monetários
|
|
13
|
+
*/
|
|
14
|
+
export declare const renderCurrency: (cell: any) => ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Renderiza valores com decimais
|
|
17
|
+
*/
|
|
18
|
+
export declare const renderFloat: (cell: any) => ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Renderiza valores percentuais
|
|
21
|
+
*/
|
|
22
|
+
export declare const renderPercent: (cell: any, decimalPlaces?: number) => ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Renderiza valores booleanos com checkbox
|
|
25
|
+
*/
|
|
26
|
+
export declare const renderBoolean: (cell: any) => ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Renderiza datas
|
|
29
|
+
*/
|
|
30
|
+
export declare const renderDate: (cell: any, dateFormat?: string) => ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Renderiza data e hora
|
|
33
|
+
*/
|
|
34
|
+
export declare const renderDateTime: (cell: any, dateTimeFormat?: string) => ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Renderiza valores de hora
|
|
37
|
+
*/
|
|
38
|
+
export declare const renderTime: (cell: any, timeFormat?: string) => ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Renderiza valores de enum/lista
|
|
41
|
+
*/
|
|
42
|
+
export declare const renderEnum: (cell: any, enumValues: Array<{
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}>) => ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Renderiza UUID formatado
|
|
48
|
+
*/
|
|
49
|
+
export declare const renderUUID: (cell: any) => ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Retorna o renderer adequado com base no tipo de dado
|
|
52
|
+
*/
|
|
53
|
+
export declare const getRendererByDataType: (dataType: string, customRender?: (data: any) => ReactNode, options?: any) => ((cell: any) => ReactNode);
|
|
54
|
+
/**
|
|
55
|
+
* Retorna o alinhamento recomendado com base no tipo de dado
|
|
56
|
+
*/
|
|
57
|
+
export declare const getAlignmentByDataType: (dataType: string, customAlign?: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArchbaseDataGridPaginationProps } from './archbase-data-grid-types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente de paginação da grid
|
|
5
|
+
* Extraído para fora da grid para melhor organização
|
|
6
|
+
*/
|
|
7
|
+
export declare const ArchbaseDataGridPagination: React.NamedExoticComponent<ArchbaseDataGridPaginationProps>;
|
|
8
|
+
export default ArchbaseDataGridPagination;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArchbaseDataGridToolbarProps } from './archbase-data-grid-types';
|
|
3
|
+
/**
|
|
4
|
+
* Componente da barra de ferramentas da grid
|
|
5
|
+
* Extraído para fora da grid para evitar problemas de foco em inputs
|
|
6
|
+
*/
|
|
7
|
+
export declare const ArchbaseDataGridToolbar: React.NamedExoticComponent<ArchbaseDataGridToolbarProps>;
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MutableRefObject, ReactNode, RefObject } from 'react';
|
|
3
|
+
import { GridRowId, GridFilterModel, GridPaginationModel } from '@mui/x-data-grid';
|
|
4
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
|
+
import type { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
|
|
6
|
+
/**
|
|
7
|
+
* DataGrid Types - V1/V2 Compatible
|
|
8
|
+
*
|
|
9
|
+
* These types support both V1 and V2 DataSource versions.
|
|
10
|
+
* The actual V1/V2 compatibility logic is handled in the
|
|
11
|
+
* components that use these types (like ArchbaseDataGrid and useGridData).
|
|
12
|
+
*/
|
|
13
|
+
export interface ArchbaseDataGridRef<T = any> {
|
|
14
|
+
/**
|
|
15
|
+
* Obtém as linhas selecionadas
|
|
16
|
+
*/
|
|
17
|
+
getSelectedRows: () => T[];
|
|
18
|
+
/**
|
|
19
|
+
* Limpa a seleção
|
|
20
|
+
*/
|
|
21
|
+
clearSelection: () => void;
|
|
22
|
+
/**
|
|
23
|
+
* Atualiza os dados da grid
|
|
24
|
+
*/
|
|
25
|
+
refreshData: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Exporta os dados da grid
|
|
28
|
+
*/
|
|
29
|
+
exportData: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Imprime os dados da grid
|
|
32
|
+
*/
|
|
33
|
+
printData: () => void;
|
|
34
|
+
expandRow: (rowId: GridRowId) => void;
|
|
35
|
+
collapseRow: (rowId: GridRowId) => void;
|
|
36
|
+
collapseAllRows: () => void;
|
|
37
|
+
getExpandedRows: () => GridRowId[];
|
|
38
|
+
}
|
|
39
|
+
export interface GridToolBarActionsProps {
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export interface GridColumnsProps {
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
}
|
|
45
|
+
export interface ArchbaseDataGridToolbarProps {
|
|
46
|
+
dataSource: IArchbaseDataSourceBase<any>;
|
|
47
|
+
filterModel: GridFilterModel;
|
|
48
|
+
enableGlobalFilter?: boolean;
|
|
49
|
+
enableTopToolbarActions?: boolean;
|
|
50
|
+
allowExportData?: boolean;
|
|
51
|
+
allowPrintData?: boolean;
|
|
52
|
+
toolbarAlignment?: 'left' | 'right' | 'center';
|
|
53
|
+
toolbarLeftContent?: ReactNode;
|
|
54
|
+
renderToolbarActions?: () => ReactNode;
|
|
55
|
+
renderToolbarInternalActions?: (props: {
|
|
56
|
+
table: any;
|
|
57
|
+
}) => ReactNode | null;
|
|
58
|
+
theme: any;
|
|
59
|
+
onFilterModelChange: (newFilterModel: GridFilterModel) => void;
|
|
60
|
+
onRefresh: () => void;
|
|
61
|
+
onExport: () => void;
|
|
62
|
+
onPrint: () => void;
|
|
63
|
+
apiRef: any;
|
|
64
|
+
children: ReactNode;
|
|
65
|
+
useCompositeFilters?: boolean;
|
|
66
|
+
filterDefinitions?: ArchbaseFilterDefinition[];
|
|
67
|
+
activeFilters?: ArchbaseActiveFilter[];
|
|
68
|
+
onFiltersChange?: (filters: ArchbaseActiveFilter[], rsql?: string) => void;
|
|
69
|
+
hideMuiFilters?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface ArchbaseDataGridPaginationProps {
|
|
72
|
+
paginationModel: GridPaginationModel;
|
|
73
|
+
totalRecords: number;
|
|
74
|
+
onPaginationModelChange: (model: GridPaginationModel) => void;
|
|
75
|
+
paginationLabels?: {
|
|
76
|
+
totalRecords?: string;
|
|
77
|
+
pageSize?: string;
|
|
78
|
+
currentPage?: string;
|
|
79
|
+
of?: string;
|
|
80
|
+
};
|
|
81
|
+
bottomToolbarMinHeight?: string | number;
|
|
82
|
+
theme: any;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Componente para definir ações na barra de ferramentas
|
|
86
|
+
*/
|
|
87
|
+
export declare function GridToolBarActions(props: GridToolBarActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
/**
|
|
89
|
+
* Componente para agrupar as definições de colunas
|
|
90
|
+
*/
|
|
91
|
+
export declare function Columns(props: GridColumnsProps): import("react/jsx-runtime").JSX.Element;
|
|
92
|
+
export declare namespace Columns {
|
|
93
|
+
var componentName: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Componente para definir uma coluna na grid
|
|
97
|
+
* Este componente é apenas declarativo e não renderiza nada
|
|
98
|
+
*/
|
|
99
|
+
export declare function ArchbaseDataGridColumn<T>(_props: ArchbaseDataGridColumnProps<T>): any;
|
|
100
|
+
export declare namespace ArchbaseDataGridColumn {
|
|
101
|
+
var defaultProps: {
|
|
102
|
+
visible: boolean;
|
|
103
|
+
size: number;
|
|
104
|
+
align: string;
|
|
105
|
+
enableColumnFilter: boolean;
|
|
106
|
+
enableGlobalFilter: boolean;
|
|
107
|
+
headerAlign: string;
|
|
108
|
+
footerAlign: string;
|
|
109
|
+
enableClickToCopy: boolean;
|
|
110
|
+
enableSorting: boolean;
|
|
111
|
+
dataType: string;
|
|
112
|
+
inputFilterType: string;
|
|
113
|
+
enumValues: any[];
|
|
114
|
+
hideWhenNoPermission: boolean;
|
|
115
|
+
autoRegisterPermission: boolean;
|
|
116
|
+
fallbackContent: string;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export interface ArchbaseDataGridProps<T extends object = any, ID = any> {
|
|
120
|
+
dataSource: IArchbaseDataSourceBase<T>;
|
|
121
|
+
getRowId?: (row: T) => ID;
|
|
122
|
+
/** Nome do recurso para ativar segurança no grid */
|
|
123
|
+
resourceName?: string;
|
|
124
|
+
/** Descrição do recurso para contexto de segurança */
|
|
125
|
+
resourceDescription?: string;
|
|
126
|
+
/** Configurações de segurança para colunas */
|
|
127
|
+
columnSecurityOptions?: {
|
|
128
|
+
/** Fallback padrão para colunas sem permissão */
|
|
129
|
+
defaultFallback?: ReactNode | string;
|
|
130
|
+
/** Se true, oculta colunas sem permissão por padrão */
|
|
131
|
+
hideByDefault?: boolean;
|
|
132
|
+
/** Prefixo para auto-registro de permissões de coluna */
|
|
133
|
+
permissionPrefix?: string;
|
|
134
|
+
};
|
|
135
|
+
enableColumnResizing?: boolean;
|
|
136
|
+
enableRowNumbers?: boolean;
|
|
137
|
+
enableRowSelection?: boolean;
|
|
138
|
+
enableRowActions?: boolean;
|
|
139
|
+
enableColumnFilterModes?: boolean;
|
|
140
|
+
enableGlobalFilter?: boolean;
|
|
141
|
+
enableTopToolbar?: boolean;
|
|
142
|
+
enableTopToolbarActions?: boolean;
|
|
143
|
+
showPagination?: boolean;
|
|
144
|
+
manualFiltering?: boolean;
|
|
145
|
+
manualPagination?: boolean;
|
|
146
|
+
manualSorting?: boolean;
|
|
147
|
+
isLoading?: boolean;
|
|
148
|
+
isError?: boolean;
|
|
149
|
+
error?: any;
|
|
150
|
+
height?: string | number;
|
|
151
|
+
width?: string | number;
|
|
152
|
+
pageSize?: number;
|
|
153
|
+
pageIndex?: number;
|
|
154
|
+
children?: ReactNode;
|
|
155
|
+
renderRowActions?: (row: T) => ReactNode;
|
|
156
|
+
renderToolbarActions?: () => ReactNode;
|
|
157
|
+
renderToolbarInternalActions?: (props: {
|
|
158
|
+
table: any;
|
|
159
|
+
}) => ReactNode | null;
|
|
160
|
+
renderTopToolbar?: ReactNode;
|
|
161
|
+
renderDetailPanel?: (props: {
|
|
162
|
+
row: T;
|
|
163
|
+
}) => ReactNode;
|
|
164
|
+
allowMultipleDetailPanels?: boolean;
|
|
165
|
+
detailPanelMinHeight?: number;
|
|
166
|
+
detailPanelStyle?: React.CSSProperties;
|
|
167
|
+
detailPanelClassName?: string;
|
|
168
|
+
onDetailPanelChange?: (expandedRowIds: GridRowId[]) => void;
|
|
169
|
+
detailPanelDisplayMode?: 'auto' | 'inline' | 'modal' | 'drawer';
|
|
170
|
+
detailPanelTitle?: string | ((rowId: GridRowId, rowData: T) => string);
|
|
171
|
+
detailPanelPosition?: 'right' | 'left' | 'bottom' | 'top';
|
|
172
|
+
detailPanelSize?: string | number;
|
|
173
|
+
allowColumnFilters?: boolean;
|
|
174
|
+
allowExportData?: boolean;
|
|
175
|
+
allowPrintData?: boolean;
|
|
176
|
+
useCompositeFilters?: boolean;
|
|
177
|
+
filterDefinitions?: ArchbaseFilterDefinition[];
|
|
178
|
+
activeFilters?: ArchbaseActiveFilter[];
|
|
179
|
+
onFiltersChange?: (filters: ArchbaseActiveFilter[], rsql?: string) => void;
|
|
180
|
+
hideMuiFilters?: boolean;
|
|
181
|
+
withBorder?: boolean;
|
|
182
|
+
withColumnBorders?: boolean;
|
|
183
|
+
highlightOnHover?: boolean;
|
|
184
|
+
striped?: boolean;
|
|
185
|
+
className?: string;
|
|
186
|
+
variant?: 'filled' | 'outlined';
|
|
187
|
+
fontSize?: string | number;
|
|
188
|
+
cellPadding?: string | number;
|
|
189
|
+
tableHeadCellPadding?: string;
|
|
190
|
+
columnAutoWidth?: boolean;
|
|
191
|
+
rowHeight?: number;
|
|
192
|
+
printTitle?: string;
|
|
193
|
+
logoPrint?: string;
|
|
194
|
+
globalDateFormat?: string;
|
|
195
|
+
csvOptions?: any;
|
|
196
|
+
toolbarAlignment?: 'left' | 'right' | 'center';
|
|
197
|
+
positionActionsColumn?: 'first' | 'last';
|
|
198
|
+
toolbarLeftContent?: ReactNode;
|
|
199
|
+
bottomToolbarMinHeight?: string | number;
|
|
200
|
+
paginationLabels?: Record<string, string>;
|
|
201
|
+
showProgressBars?: boolean;
|
|
202
|
+
onSelectedRowsChanged?: (rows: T[]) => void;
|
|
203
|
+
onCellDoubleClick?: (params: {
|
|
204
|
+
id: any;
|
|
205
|
+
columnName: string;
|
|
206
|
+
rowData: T;
|
|
207
|
+
}) => void;
|
|
208
|
+
onExport?: (callback: () => void) => void;
|
|
209
|
+
onPrint?: (callback: () => void) => void;
|
|
210
|
+
gridRef?: RefObject<ArchbaseDataGridRef<T>> | MutableRefObject<ArchbaseDataGridRef<T> | null>;
|
|
211
|
+
}
|
|
212
|
+
export interface CellClickEvent {
|
|
213
|
+
id: GridRowId;
|
|
214
|
+
columnName: string;
|
|
215
|
+
rowData: any;
|
|
216
|
+
}
|
|
217
|
+
export type FieldDataType = 'text' | 'integer' | 'float' | 'currency' | 'boolean' | 'date' | 'datetime' | 'time' | 'enum' | 'image' | 'uuid';
|
|
218
|
+
export interface ArchbaseDataGridColumnProps<T = any> {
|
|
219
|
+
header: string;
|
|
220
|
+
footer?: string;
|
|
221
|
+
dataField: string;
|
|
222
|
+
enableColumnFilter?: boolean;
|
|
223
|
+
enableGlobalFilter?: boolean;
|
|
224
|
+
dataFieldAcessorFn?: (originalRow: T) => any;
|
|
225
|
+
dataType: FieldDataType;
|
|
226
|
+
maskOptions?: any;
|
|
227
|
+
inputFilterType?: string;
|
|
228
|
+
enumValues?: Array<{
|
|
229
|
+
label: string;
|
|
230
|
+
value: string;
|
|
231
|
+
}>;
|
|
232
|
+
minSize?: number;
|
|
233
|
+
maxSize?: number;
|
|
234
|
+
render?: (data: any) => ReactNode;
|
|
235
|
+
visible: boolean;
|
|
236
|
+
size: number;
|
|
237
|
+
enableClickToCopy: boolean;
|
|
238
|
+
enableSorting: boolean;
|
|
239
|
+
align?: string;
|
|
240
|
+
headerAlign?: string;
|
|
241
|
+
footerAlign?: string;
|
|
242
|
+
/** Nome da permissão para visualizar esta coluna */
|
|
243
|
+
viewPermission?: string;
|
|
244
|
+
/** Nome da permissão para editar esta coluna (futuro) */
|
|
245
|
+
editPermission?: string;
|
|
246
|
+
/** Componente/texto a ser exibido quando não tem permissão */
|
|
247
|
+
fallbackContent?: ReactNode | string;
|
|
248
|
+
/** Se true, oculta coluna completamente sem permissão. Se false, mostra fallback */
|
|
249
|
+
hideWhenNoPermission?: boolean;
|
|
250
|
+
/** Auto-registra a permissão da coluna (padrão: true) */
|
|
251
|
+
autoRegisterPermission?: boolean;
|
|
252
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GridFilterModel, GridRowId, GridSortModel, GridColDef } from '@mui/x-data-grid';
|
|
2
|
+
import type { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
|
|
3
|
+
/**
|
|
4
|
+
* Obtém o ID de uma linha de forma segura
|
|
5
|
+
*/
|
|
6
|
+
export declare const safeGetRowId: <T extends object>(row: T, getRowId?: (row: T) => any) => GridRowId | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Constrói uma expressão de busca global
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildGlobalFilterExpression: (filterValue: string, columns: any[]) => string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Constrói uma expressão de filtro
|
|
13
|
+
*/
|
|
14
|
+
export declare const buildFilterExpression: (filterModel: GridFilterModel, columns: any[]) => string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Converte valores hexadecimais para RGB
|
|
17
|
+
*/
|
|
18
|
+
export declare const getRgbValues: (hexColor: string) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Obtém o modelo de ordenação inicial a partir do DataSource
|
|
21
|
+
*/
|
|
22
|
+
export declare const getInitialSortModel: (dataSource: any) => GridSortModel;
|
|
23
|
+
/**
|
|
24
|
+
* Converte RSQL para GridFilterModel do MUI X DataGrid
|
|
25
|
+
* Permite compatibilidade entre ArchbaseCompositeFilters e o sistema nativo do MUI
|
|
26
|
+
*/
|
|
27
|
+
export declare const convertRSQLToFilterModel: (rsql: string | undefined, columns: GridColDef[]) => GridFilterModel;
|
|
28
|
+
/**
|
|
29
|
+
* Converte ArchbaseActiveFilter[] para GridFilterModel
|
|
30
|
+
*/
|
|
31
|
+
export declare const convertActiveFiltersToFilterModel: (activeFilters: ArchbaseActiveFilter[]) => GridFilterModel;
|
|
32
|
+
/**
|
|
33
|
+
* Converte colunas do Grid para ArchbaseFilterDefinition[]
|
|
34
|
+
* Permite gerar automaticamente as definições de filtro a partir das colunas
|
|
35
|
+
*/
|
|
36
|
+
export declare const convertColumnsToFilterDefinitions: (columns: GridColDef[], options?: {
|
|
37
|
+
includeColumns?: string[];
|
|
38
|
+
excludeColumns?: string[];
|
|
39
|
+
onlyFilterable?: boolean;
|
|
40
|
+
}) => ArchbaseFilterDefinition[];
|
|
41
|
+
/**
|
|
42
|
+
* Converte ArchbaseFilterDefinition para GridColDef[]
|
|
43
|
+
* Útil para criar colunas automaticamente a partir de definições de filtro
|
|
44
|
+
*/
|
|
45
|
+
export declare const convertFilterDefinitionsToColumns: (definitions: ArchbaseFilterDefinition[]) => GridColDef[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ArchbaseDataGridProps } from './archbase-data-grid-types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente ArchbaseDataGrid - Grid avançada baseada no MUI X DataGrid
|
|
4
|
+
* com toolbar e paginação extraídos para fora da grid para evitar problemas de foco
|
|
5
|
+
*
|
|
6
|
+
* Suporta tanto ArchbaseDataSource (V1) quanto ArchbaseRemoteDataSourceV2 (V2)
|
|
7
|
+
*/
|
|
8
|
+
declare function ArchbaseDataGrid<T extends object = any, ID = any>(props: ArchbaseDataGridProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ArchbaseDataGrid;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridRowId } from '@mui/x-data-grid';
|
|
3
|
+
/**
|
|
4
|
+
* Componente para renderizar o painel de detalhes inline (diretamente abaixo da linha na grid)
|
|
5
|
+
*/
|
|
6
|
+
export declare function ArchbaseDetailPanel<T extends object = any>({ rowData, rowId, renderDetailPanel, onClose, theme, className, style, title, fixed }: {
|
|
7
|
+
rowData: T;
|
|
8
|
+
rowId: GridRowId;
|
|
9
|
+
renderDetailPanel: (props: {
|
|
10
|
+
row: T;
|
|
11
|
+
}) => React.ReactNode;
|
|
12
|
+
onClose: (rowId: GridRowId) => void;
|
|
13
|
+
theme: any;
|
|
14
|
+
className?: string;
|
|
15
|
+
style?: React.CSSProperties;
|
|
16
|
+
title?: string;
|
|
17
|
+
fixed?: boolean;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/**
|
|
20
|
+
* Componente para renderizar o painel de detalhes como modal
|
|
21
|
+
*/
|
|
22
|
+
export declare function ArchbaseDetailModal<T extends object = any>({ rowId, rowData, renderDetailPanel, onClose, theme, className, style, opened, title }: {
|
|
23
|
+
rowId: GridRowId;
|
|
24
|
+
rowData: T;
|
|
25
|
+
renderDetailPanel: (props: {
|
|
26
|
+
row: T;
|
|
27
|
+
}) => React.ReactNode;
|
|
28
|
+
onClose: (rowId: GridRowId) => void;
|
|
29
|
+
theme: any;
|
|
30
|
+
className?: string;
|
|
31
|
+
style?: React.CSSProperties;
|
|
32
|
+
opened: boolean;
|
|
33
|
+
title?: string;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* Componente para renderizar o painel de detalhes como drawer (desliza da direita/esquerda)
|
|
37
|
+
*/
|
|
38
|
+
export declare function ArchbaseDetailDrawer<T extends object = any>({ rowId, rowData, renderDetailPanel, onClose, theme, className, style, opened, title, position, size }: {
|
|
39
|
+
rowId: GridRowId;
|
|
40
|
+
rowData: T;
|
|
41
|
+
renderDetailPanel: (props: {
|
|
42
|
+
row: T;
|
|
43
|
+
}) => React.ReactNode;
|
|
44
|
+
onClose: (rowId: GridRowId) => void;
|
|
45
|
+
theme: any;
|
|
46
|
+
className?: string;
|
|
47
|
+
style?: React.CSSProperties;
|
|
48
|
+
opened: boolean;
|
|
49
|
+
title?: string;
|
|
50
|
+
position?: 'left' | 'right' | 'top' | 'bottom';
|
|
51
|
+
size?: string | number;
|
|
52
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridRowId } from '@mui/x-data-grid';
|
|
3
|
+
/**
|
|
4
|
+
* Componente que renderiza o botão de expansão para mostrar/ocultar detalhes
|
|
5
|
+
*/
|
|
6
|
+
export declare function ArchbaseExpandButton({ rowId, expanded, onClick, buttonRef }: {
|
|
7
|
+
rowId: GridRowId;
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
onClick: (rowId: GridRowId) => void;
|
|
10
|
+
buttonRef?: React.RefObject<HTMLButtonElement>;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Função auxiliar para criar a coluna de expansão com referências aos botões
|
|
14
|
+
*/
|
|
15
|
+
export declare function createExpandColumn(expandedRowIds: Set<GridRowId>, onToggleExpand: (rowId: GridRowId) => void, buttonRefs?: Map<GridRowId, React.RefObject<HTMLButtonElement>>): {
|
|
16
|
+
field: string;
|
|
17
|
+
headerName: string;
|
|
18
|
+
sortable: boolean;
|
|
19
|
+
filterable: boolean;
|
|
20
|
+
width: number;
|
|
21
|
+
renderCell: (params: any) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridRowId } from '@mui/x-data-grid';
|
|
3
|
+
/**
|
|
4
|
+
* Componente para renderizar o painel de detalhes como popover quando não há espaço suficiente
|
|
5
|
+
*/
|
|
6
|
+
export declare function ArchbaseDetailPopover<T extends object = any>({ rowId, rowData, renderDetailPanel, onClose, theme, className, style, opened, targetRef, // Referência ao elemento alvo (botão de expandir)
|
|
7
|
+
width, maxHeight }: {
|
|
8
|
+
rowId: GridRowId;
|
|
9
|
+
rowData: T;
|
|
10
|
+
renderDetailPanel: (props: {
|
|
11
|
+
row: T;
|
|
12
|
+
}) => React.ReactNode;
|
|
13
|
+
onClose: (rowId: GridRowId) => void;
|
|
14
|
+
theme: any;
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
opened: boolean;
|
|
18
|
+
targetRef: React.RefObject<HTMLElement>;
|
|
19
|
+
width?: number | string;
|
|
20
|
+
maxHeight?: number;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* Componente alternativo usando HoverCard (útil quando quiser mostrar detalhes ao passar o mouse)
|
|
24
|
+
*/
|
|
25
|
+
export declare function ArchbaseDetailHoverCard<T extends object = any>({ rowId, rowData, renderDetailPanel, onClose, theme, className, style, targetRef, width }: {
|
|
26
|
+
rowId: GridRowId;
|
|
27
|
+
rowData: T;
|
|
28
|
+
renderDetailPanel: (props: {
|
|
29
|
+
row: T;
|
|
30
|
+
}) => React.ReactNode;
|
|
31
|
+
onClose: (rowId: GridRowId) => void;
|
|
32
|
+
theme: any;
|
|
33
|
+
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
targetRef: React.RefObject<HTMLElement>;
|
|
36
|
+
width?: number | string;
|
|
37
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ArchbaseGridRowActionsProps<T extends Object> {
|
|
2
|
+
onEditRow?: (row: T) => void;
|
|
3
|
+
onRemoveRow?: (row: T) => void;
|
|
4
|
+
onViewRow?: (row: T) => void;
|
|
5
|
+
row: T;
|
|
6
|
+
variant?: string;
|
|
7
|
+
table?: any;
|
|
8
|
+
cell?: any;
|
|
9
|
+
}
|
|
10
|
+
export declare function ArchbaseGridRowActions<T extends Object>({ onEditRow, onRemoveRow, onViewRow, row, variant, table, cell }: ArchbaseGridRowActionsProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function createDataTableRowActions<T extends Object>(onEditRow?: (row: T) => void, onRemoveRow?: (row: T) => void, onViewRow?: (row: T) => void, variant?: string): ({ row, table }: {
|
|
12
|
+
row: any;
|
|
13
|
+
table: any;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default ArchbaseGridRowActions;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './archbase-data-grid';
|
|
2
|
+
export * from './archbase-data-grid-types';
|
|
3
|
+
export * from './archbase-data-grid-column';
|
|
4
|
+
export * from './archbase-data-grid-toolbar';
|
|
5
|
+
export * from './archbase-data-grid-pagination';
|
|
6
|
+
export * from './archbase-detail-panel-component';
|
|
7
|
+
export * from './archbase-expand-button';
|
|
8
|
+
export * from './archbase-grid-popover';
|
|
9
|
+
export * from './grid-row-actions';
|
|
10
|
+
export * from './archbase-data-grid-formatters';
|
|
11
|
+
export * from './archbase-data-grid-utils';
|
|
12
|
+
export { default as ArchbaseDataGrid } from './archbase-data-grid';
|
|
13
|
+
export { ArchbaseDataGridColumn, Columns, GridToolBarActions } from './archbase-data-grid-types';
|
|
14
|
+
export { ArchbaseDataGridToolbar } from './archbase-data-grid-toolbar';
|
|
15
|
+
export { ArchbaseDataGridPagination } from './archbase-data-grid-pagination';
|
|
16
|
+
export { ArchbaseDetailPanel, ArchbaseDetailModal, ArchbaseDetailDrawer } from './archbase-detail-panel-component';
|
|
17
|
+
export { ArchbaseExpandButton, createExpandColumn } from './archbase-expand-button';
|
|
18
|
+
export { ArchbaseDetailPopover, ArchbaseDetailHoverCard } from './archbase-grid-popover';
|
|
19
|
+
export { ArchbaseGridRowActions, createDataTableRowActions } from './grid-row-actions';
|
|
20
|
+
export { renderText, renderInteger, renderCurrency, renderFloat, renderPercent, renderBoolean, renderDate, renderDateTime, renderTime, renderEnum, renderUUID, getRendererByDataType, getAlignmentByDataType } from './archbase-data-grid-formatters';
|
|
21
|
+
export { safeGetRowId, buildGlobalFilterExpression, buildFilterExpression, getRgbValues, getInitialSortModel } from './archbase-data-grid-utils';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ExportFormat = 'csv' | 'excel' | 'pdf';
|
|
2
|
+
export interface ExportConfig {
|
|
3
|
+
format: ExportFormat;
|
|
4
|
+
filename?: string;
|
|
5
|
+
includeHeaders?: boolean;
|
|
6
|
+
delimiter?: string;
|
|
7
|
+
encoding?: string;
|
|
8
|
+
sheetName?: string;
|
|
9
|
+
selectedColumns?: string[];
|
|
10
|
+
dateFormat?: string;
|
|
11
|
+
numberFormat?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function exportData(data: any[], columns: any[], config: ExportConfig): Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExportConfig } from './export-data';
|
|
2
|
+
export interface ExportModalProps {
|
|
3
|
+
opened: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onExport: (config: ExportConfig) => void;
|
|
6
|
+
columns: any[];
|
|
7
|
+
defaultConfig?: Partial<ExportConfig>;
|
|
8
|
+
}
|
|
9
|
+
export declare function ExportModal({ opened, onClose, onExport, columns, defaultConfig }: ExportModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import 'jspdf-autotable';
|
|
2
|
+
export interface PrintConfig {
|
|
3
|
+
title?: string;
|
|
4
|
+
subtitle?: string;
|
|
5
|
+
orientation?: 'portrait' | 'landscape';
|
|
6
|
+
pageSize?: 'A4' | 'A3' | 'Letter';
|
|
7
|
+
showHeader?: boolean;
|
|
8
|
+
showFooter?: boolean;
|
|
9
|
+
headerText?: string;
|
|
10
|
+
footerText?: string;
|
|
11
|
+
showPageNumbers?: boolean;
|
|
12
|
+
showDate?: boolean;
|
|
13
|
+
logo?: string;
|
|
14
|
+
selectedColumns?: string[];
|
|
15
|
+
}
|
|
16
|
+
export declare function printData<T>(data: T[], columns: any[], config: PrintConfig): void;
|