@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,9 @@
|
|
|
1
|
+
import { PrintConfig } from './print-data';
|
|
2
|
+
export interface PrintModalProps {
|
|
3
|
+
opened: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onPrint: (config: PrintConfig) => void;
|
|
6
|
+
columns: any[];
|
|
7
|
+
defaultConfig?: Partial<PrintConfig>;
|
|
8
|
+
}
|
|
9
|
+
export declare function PrintModal({ opened, onClose, onPrint, columns, defaultConfig }: PrintModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface para props do modal de exportação
|
|
3
|
+
*/
|
|
4
|
+
export interface ExportModalProps {
|
|
5
|
+
opened: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onExport: (config: any) => void;
|
|
8
|
+
columns: any[];
|
|
9
|
+
defaultConfig?: Partial<any>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Interface para props do modal de impressão
|
|
13
|
+
*/
|
|
14
|
+
export interface PrintModalProps {
|
|
15
|
+
opened: boolean;
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
onPrint: (config: any) => void;
|
|
18
|
+
columns: any[];
|
|
19
|
+
defaultConfig?: Partial<any>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Interface para props de paginação
|
|
23
|
+
*/
|
|
24
|
+
export interface PaginationProps {
|
|
25
|
+
currentPage: number;
|
|
26
|
+
pageSize: number;
|
|
27
|
+
totalRecords: number;
|
|
28
|
+
pageSizeOptions?: number[];
|
|
29
|
+
onPageChange: (page: number) => void;
|
|
30
|
+
onPageSizeChange: (pageSize: number) => void;
|
|
31
|
+
showPageSizeSelector?: boolean;
|
|
32
|
+
showNavigationButtons?: boolean;
|
|
33
|
+
showRecordInfo?: boolean;
|
|
34
|
+
labels: {
|
|
35
|
+
totalRecords?: string;
|
|
36
|
+
pageSize?: string;
|
|
37
|
+
currentPage?: string;
|
|
38
|
+
of?: string;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Interface para props de pesquisa global
|
|
43
|
+
*/
|
|
44
|
+
export interface GlobalSearchInputProps {
|
|
45
|
+
value: string;
|
|
46
|
+
onChange: (value: string) => void;
|
|
47
|
+
onClear: () => void;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grid-props';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Função para formatar valor com base no tipo de dados
|
|
3
|
+
*/
|
|
4
|
+
export declare function getFormattedValueByDataType(value: any, dataType: string, appContext: any, maskOptions?: any): string | number | boolean | null;
|
|
5
|
+
/**
|
|
6
|
+
* Função para formatar valor para exportação
|
|
7
|
+
*/
|
|
8
|
+
export declare function getFormattedValueForExport(value: any, dataType: string, appContext: any, dateFormat?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Formata um valor decimal com número específico de casas decimais
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatDecimal(value: number | string | undefined, decimalPlaces?: number, useThousandSeparator?: boolean): string;
|
|
13
|
+
/**
|
|
14
|
+
* Formata um valor como moeda
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatCurrency(value: number | string | undefined, currency?: string, locale?: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Formata um valor como data
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatDate(value: string | Date | undefined, dateFormat?: string): string;
|
|
21
|
+
/**
|
|
22
|
+
* Formata um valor como data e hora
|
|
23
|
+
*/
|
|
24
|
+
export declare function formatDateTime(value: string | Date | undefined, dateTimeFormat?: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Formata um valor como hora
|
|
27
|
+
*/
|
|
28
|
+
export declare function formatTime(value: string | Date | number | undefined, timeFormat?: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Formata um valor booleano
|
|
31
|
+
*/
|
|
32
|
+
export declare function formatBoolean(value: boolean | undefined | null, trueLabel?: string, falseLabel?: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Formata um valor enum com base em opções
|
|
35
|
+
*/
|
|
36
|
+
export declare function formatEnum(value: any, options: {
|
|
37
|
+
value: any;
|
|
38
|
+
label: string;
|
|
39
|
+
}[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './formatter';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import './ArchbaseJsonPathPicker.css';
|
|
3
|
+
export interface ArchbaseJsonPathPickerOptions {
|
|
4
|
+
outputCollapsed: boolean;
|
|
5
|
+
outputWithQuotes: boolean;
|
|
6
|
+
pathNotation: string;
|
|
7
|
+
pathQuotesType: string;
|
|
8
|
+
processKeys: boolean;
|
|
9
|
+
keyReplaceRegexPattern: string | undefined;
|
|
10
|
+
keyReplaceRegexFlags: string | undefined;
|
|
11
|
+
keyReplacementText: string;
|
|
12
|
+
pickerIcon: string;
|
|
13
|
+
withoutPicker: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ArchbaseJsonPathPickerProps {
|
|
16
|
+
data: any;
|
|
17
|
+
onSelect: (path: string) => void;
|
|
18
|
+
options?: ArchbaseJsonPathPickerOptions;
|
|
19
|
+
}
|
|
20
|
+
export declare class ArchbaseJsonPathPicker extends Component<ArchbaseJsonPathPickerProps> {
|
|
21
|
+
static defaultProps: {
|
|
22
|
+
options: ArchbaseJsonPathPickerOptions;
|
|
23
|
+
};
|
|
24
|
+
private pickerRef;
|
|
25
|
+
private destRef;
|
|
26
|
+
private jsonPathPickerInstance;
|
|
27
|
+
constructor(props: ArchbaseJsonPathPickerProps);
|
|
28
|
+
json2jsx: (json: any, options: any) => import("react/jsx-runtime").JSX.Element | "[]" | "{}";
|
|
29
|
+
handlerEventToggle: (elm: any, event: any) => void;
|
|
30
|
+
toggleEventListener: (event: any) => void;
|
|
31
|
+
simulateClickHandler: (elm: any, event: any) => void;
|
|
32
|
+
simulateClickEventListener: (event: any) => void;
|
|
33
|
+
pickPathHandler: (elm: any) => void;
|
|
34
|
+
pickEventListener: (event: any) => void;
|
|
35
|
+
componentDidMount(): void;
|
|
36
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ArchbaseJsonPathPicker } from './ArchbaseJsonPathPicker';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface StyleProps {
|
|
2
|
+
container: string;
|
|
3
|
+
basicChildStyle: string;
|
|
4
|
+
expander: string;
|
|
5
|
+
label: string;
|
|
6
|
+
nullValue: string;
|
|
7
|
+
undefinedValue: string;
|
|
8
|
+
numberValue: string;
|
|
9
|
+
stringValue: string;
|
|
10
|
+
booleanValue: string;
|
|
11
|
+
otherValue: string;
|
|
12
|
+
punctuation: string;
|
|
13
|
+
pointer: string;
|
|
14
|
+
}
|
|
15
|
+
export interface JsonRenderProps<T> {
|
|
16
|
+
field?: string;
|
|
17
|
+
value: T;
|
|
18
|
+
lastElement: boolean;
|
|
19
|
+
level: number;
|
|
20
|
+
style: StyleProps;
|
|
21
|
+
shouldInitiallyExpand: (level: number, value: any, field?: string) => boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ExpandableRenderProps {
|
|
24
|
+
field?: string;
|
|
25
|
+
value: Array<any> | object;
|
|
26
|
+
data: Array<[string | undefined, any]>;
|
|
27
|
+
openBracket: string;
|
|
28
|
+
closeBracket: string;
|
|
29
|
+
lastElement: boolean;
|
|
30
|
+
level: number;
|
|
31
|
+
style: StyleProps;
|
|
32
|
+
shouldInitiallyExpand: (level: number, value: any, field?: string) => boolean;
|
|
33
|
+
}
|
|
34
|
+
export default function ArchbaseJsonViewDataRender(props: JsonRenderProps<any>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const isBoolean: (data: any) => data is boolean | Boolean;
|
|
2
|
+
export declare const isNumber: (data: any) => data is number | Number;
|
|
3
|
+
export declare const isBigInt: (data: any) => data is bigint | BigInt;
|
|
4
|
+
export declare const isString: (data: any) => data is string | String;
|
|
5
|
+
export declare const isArray: (data: any) => data is any[];
|
|
6
|
+
export declare const isObject: (data: any) => boolean;
|
|
7
|
+
export declare const isNull: (data: any) => boolean;
|
|
8
|
+
export declare const isUndefined: (data: any) => boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StyleProps } from './ArchbaseJsonViewDataRenderer';
|
|
2
|
+
export interface ArchbaseJsonViewProps {
|
|
3
|
+
data: NonNullable<unknown> | Array<any>;
|
|
4
|
+
style?: StyleProps;
|
|
5
|
+
shouldInitiallyExpand?: (level: number, value: any, field?: string) => boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultStyles: StyleProps;
|
|
8
|
+
export declare const darkStyles: StyleProps;
|
|
9
|
+
export declare const allExpanded: () => boolean;
|
|
10
|
+
export declare const collapseAllNested: (level: number) => boolean;
|
|
11
|
+
export declare const ArchbaseJsonView: ({ data, style, shouldInitiallyExpand, }: ArchbaseJsonViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ArchbaseDebugInspectorProps {
|
|
2
|
+
/** Título a ser exibido */
|
|
3
|
+
title?: string;
|
|
4
|
+
/** Título a ser exibido*/
|
|
5
|
+
icon?: string | HTMLImageElement;
|
|
6
|
+
/** Comando para abrir e fechar o Object Inspector */
|
|
7
|
+
debugObjectInspectorHotKey?: string;
|
|
8
|
+
/** Lista de objetos a serem inspecionados */
|
|
9
|
+
objectsToInspect?: ArchbaseObjectToInspect[];
|
|
10
|
+
/** Indica se o Object Inspector será visível inicialmente ou não */
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
/** Altura inicial do Object Inspector */
|
|
13
|
+
height?: number;
|
|
14
|
+
/** Largura inicial do Object Inspector */
|
|
15
|
+
width?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ArchbaseObjectToInspect {
|
|
18
|
+
/**Nome do objeto a ser inspecionado*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**Objeto a ser inspecionado*/
|
|
21
|
+
object: NonNullable<unknown>;
|
|
22
|
+
}
|
|
23
|
+
export declare function ArchbaseDebugInspector({ title, icon, debugObjectInspectorHotKey, objectsToInspect, visible, height, width, }: ArchbaseDebugInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './ArchbaseFloatingWindow.css';
|
|
3
|
+
export interface ArchbaseFloatingWindowProps {
|
|
4
|
+
id: string;
|
|
5
|
+
children?: any;
|
|
6
|
+
height: number;
|
|
7
|
+
width: number;
|
|
8
|
+
top?: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
resizable?: boolean;
|
|
11
|
+
titleBar?: {
|
|
12
|
+
icon?: string | HTMLImageElement;
|
|
13
|
+
title?: string;
|
|
14
|
+
buttons?: {
|
|
15
|
+
minimize?: boolean;
|
|
16
|
+
maximize?: boolean;
|
|
17
|
+
close?: () => void;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
/** Referência para o container que envolve o componente filho */
|
|
22
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare const ArchbaseFloatingWindow: React.FC<ArchbaseFloatingWindowProps>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { FloatingPosition, MantineSize, OptionsFilter, ScrollAreaProps } from '@mantine/core';
|
|
2
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
|
+
export type OptionsResult<O> = {
|
|
5
|
+
options: O[];
|
|
6
|
+
page: number;
|
|
7
|
+
totalPages: number;
|
|
8
|
+
};
|
|
9
|
+
export interface ArchbaseAsyncMultiSelectProps<T, ID, O> {
|
|
10
|
+
/** Permite ou não desselecionar um item */
|
|
11
|
+
allowDeselect?: boolean;
|
|
12
|
+
/** Indicador se permite limpar o select */
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
/** Fonte de dados onde será atribuido o item selecionado (V1 ou V2) */
|
|
15
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
16
|
+
/** Campo onde deverá ser atribuido o item selecionado na fonte de dados */
|
|
17
|
+
dataField?: string;
|
|
18
|
+
/** Tempo de espero antes de realizar a busca */
|
|
19
|
+
debounceTime?: number;
|
|
20
|
+
/** Minimo caracteres para busca */
|
|
21
|
+
minCharsToSearch?: number;
|
|
22
|
+
/** Indicador se o select está desabilitado */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** Indicador se o select é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
/** Texto explicativo do select */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/** Título do select */
|
|
29
|
+
label?: string;
|
|
30
|
+
/** Descrição do select */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Último erro ocorrido no select */
|
|
33
|
+
error?: string;
|
|
34
|
+
/** Permite pesquisar no select */
|
|
35
|
+
searchable?: boolean;
|
|
36
|
+
/** Icon a esquerda do select */
|
|
37
|
+
icon?: ReactNode;
|
|
38
|
+
/** Largura do icone a esquerda do select */
|
|
39
|
+
iconWidth?: MantineSize;
|
|
40
|
+
/** Valor de entrada controlado */
|
|
41
|
+
value?: any;
|
|
42
|
+
/** Valor padrão de entrada não controlado */
|
|
43
|
+
defaultValue?: any;
|
|
44
|
+
/** Função com base em quais itens no menu suspenso são filtrados */
|
|
45
|
+
filter?: OptionsFilter;
|
|
46
|
+
/** Estilo do select */
|
|
47
|
+
style?: CSSProperties;
|
|
48
|
+
/** Tamanho do campo */
|
|
49
|
+
size?: MantineSize;
|
|
50
|
+
/** Largura do select */
|
|
51
|
+
width?: number | string | undefined;
|
|
52
|
+
/** Estado aberto do menu suspenso inicial */
|
|
53
|
+
initiallyOpened?: boolean;
|
|
54
|
+
/** Alterar renderizador de item */
|
|
55
|
+
itemComponent?: React.FC<any>;
|
|
56
|
+
/** Alterar renderizador de item selecionado */
|
|
57
|
+
selectedItemComponent?: React.FC<any>;
|
|
58
|
+
/** Chamado quando o menu suspenso é aberto */
|
|
59
|
+
onDropdownOpen?(): void;
|
|
60
|
+
/** Chamado quando o menu suspenso é aberto */
|
|
61
|
+
onDropdownClose?(): void;
|
|
62
|
+
/** Limite a quantidade de itens exibidos por vez para seleção pesquisável */
|
|
63
|
+
limit?: number;
|
|
64
|
+
/** Rótulo nada encontrado */
|
|
65
|
+
nothingFound?: React.ReactNode;
|
|
66
|
+
/** Índice z dropdown */
|
|
67
|
+
zIndex?: React.CSSProperties['zIndex'];
|
|
68
|
+
/** Comportamento de posicionamento dropdown */
|
|
69
|
+
dropdownPosition?: FloatingPosition;
|
|
70
|
+
/** Evento quando os valores selecionados são alterados */
|
|
71
|
+
onChangeValues?: (values: O[]) => void;
|
|
72
|
+
/** Evento quando o foco sai do select */
|
|
73
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
74
|
+
/** Evento quando o select recebe o foco */
|
|
75
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
76
|
+
/** Opções de seleção iniciais */
|
|
77
|
+
initialOptions?: OptionsResult<O>;
|
|
78
|
+
/** Function que retorna o label de uma opção */
|
|
79
|
+
getOptionLabel: (option: O) => string;
|
|
80
|
+
/** Function que retorna o valor de uma opção */
|
|
81
|
+
getOptionValue: (option: O) => any;
|
|
82
|
+
/** Function que retorna a imagem de uma opção */
|
|
83
|
+
getOptionImage?: (option: O) => any | undefined | null;
|
|
84
|
+
/** Function responsável por retornar uma promessa contendo opções. Usado para buscar dados remotos. */
|
|
85
|
+
getOptions: (page: number, value: string) => Promise<OptionsResult<O>>;
|
|
86
|
+
/** Evento quando ocorreu um erro carregando dados através da promessa fornecida por getOptions. */
|
|
87
|
+
onErrorLoadOptions?: (error: string) => void;
|
|
88
|
+
/** Indica se o select tem o preenchimento obrigatório */
|
|
89
|
+
required?: boolean;
|
|
90
|
+
/** Chamado sempre que o valor da pesquisa muda */
|
|
91
|
+
onSearchChange?(query: string): void;
|
|
92
|
+
/** Converte o valor antes de atribuir ao field do registro atual no datasource */
|
|
93
|
+
converter?: (value: O) => any;
|
|
94
|
+
/** Function que busca o valor original antes de converter pelo valor de retorno do converter */
|
|
95
|
+
getConvertedOption?: (value: any) => Promise<O>;
|
|
96
|
+
}
|
|
97
|
+
export declare const SelectItem: ({ image, label, description, values, value, ...others }: {
|
|
98
|
+
[x: string]: any;
|
|
99
|
+
image: any;
|
|
100
|
+
label: any;
|
|
101
|
+
description: any;
|
|
102
|
+
values: any;
|
|
103
|
+
value: any;
|
|
104
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
105
|
+
export declare const SelectedItem: ({ item, value, onRemove, label }: {
|
|
106
|
+
item: any;
|
|
107
|
+
value: any;
|
|
108
|
+
onRemove: any;
|
|
109
|
+
label: any;
|
|
110
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
111
|
+
export declare function ArchbaseAsyncMultiSelect<T, ID, O>({ allowDeselect, clearable, dataSource, dataField, disabled, debounceTime, minCharsToSearch, readOnly, placeholder, initialOptions, searchable, label, description, error, icon, iconWidth, required, getOptionLabel, getOptionValue, getOptionImage, getOptions, onFocusEnter, onFocusExit, onChangeValues, value, defaultValue, filter, size, style, width, initiallyOpened, itemComponent: ItemComponent, selectedItemComponent: SelectedItemComponent, onDropdownOpen, onDropdownClose, limit, nothingFound, zIndex, dropdownPosition, onErrorLoadOptions, onSearchChange, converter, getConvertedOption }: ArchbaseAsyncMultiSelectProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
export declare const CustomSelectScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ArchbaseAsyncSelectContextValue {
|
|
3
|
+
/** Function para notificar o select que o dropdown chegou ao final da lista*/
|
|
4
|
+
handleDropdownScrollEnded?: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const ArchbaseAsyncSelectContext: React.Context<ArchbaseAsyncSelectContextValue>;
|
|
7
|
+
declare const ArchbaseAsyncSelectProvider: React.Provider<ArchbaseAsyncSelectContextValue>;
|
|
8
|
+
export { ArchbaseAsyncSelectProvider, ArchbaseAsyncSelectContext };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArchbaseAsyncSelect — select assíncrono com dataSource opcional, suporta paginação/scroll e loading.
|
|
3
|
+
* @status stable
|
|
4
|
+
*/
|
|
5
|
+
import { FloatingPosition, MantineSize, OptionsFilter, ScrollAreaProps } from '@mantine/core';
|
|
6
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
7
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
8
|
+
export type OptionsResult<O> = {
|
|
9
|
+
options: O[];
|
|
10
|
+
page: number;
|
|
11
|
+
totalPages: number;
|
|
12
|
+
};
|
|
13
|
+
export interface ArchbaseAsyncSelectProps<T, ID, O> {
|
|
14
|
+
/** Permite ou não desselecionar um item */
|
|
15
|
+
allowDeselect?: boolean;
|
|
16
|
+
/** Indicador se permite limpar o select */
|
|
17
|
+
clearable?: boolean;
|
|
18
|
+
/** Fonte de dados onde será atribuido o item selecionado (V1 ou V2) */
|
|
19
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
20
|
+
/** Campo onde deverá ser atribuido o item selecionado na fonte de dados */
|
|
21
|
+
dataField?: string;
|
|
22
|
+
/** Tempo de espero antes de realizar a busca */
|
|
23
|
+
debounceTime?: number;
|
|
24
|
+
/** Minimo caracteres para busca */
|
|
25
|
+
minCharsToSearch?: number;
|
|
26
|
+
/** Indicador se o select está desabilitado */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** Indicador se o select é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
29
|
+
readOnly?: boolean;
|
|
30
|
+
/** Texto explicativo do select */
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
/** Título do select */
|
|
33
|
+
label?: string;
|
|
34
|
+
/** Descrição do select */
|
|
35
|
+
description?: string;
|
|
36
|
+
/** Último erro ocorrido no select */
|
|
37
|
+
error?: string;
|
|
38
|
+
/** Permite pesquisar no select */
|
|
39
|
+
searchable?: boolean;
|
|
40
|
+
/** Icon a esquerda do select */
|
|
41
|
+
icon?: ReactNode;
|
|
42
|
+
/** Largura do icone a esquerda do select */
|
|
43
|
+
iconWidth?: MantineSize;
|
|
44
|
+
/** Valor de entrada controlado */
|
|
45
|
+
value?: any;
|
|
46
|
+
/** Valor padrão de entrada não controlado */
|
|
47
|
+
defaultValue?: any;
|
|
48
|
+
/** Função com base em quais itens no menu suspenso são filtrados */
|
|
49
|
+
filter?: OptionsFilter;
|
|
50
|
+
/** Estilo do select */
|
|
51
|
+
style?: CSSProperties;
|
|
52
|
+
/** Tamanho do campo */
|
|
53
|
+
size?: MantineSize;
|
|
54
|
+
/** Largura do select */
|
|
55
|
+
width?: number | string | undefined;
|
|
56
|
+
/** Estado aberto do menu suspenso inicial */
|
|
57
|
+
initiallyOpened?: boolean;
|
|
58
|
+
/** Alterar renderizador de item */
|
|
59
|
+
itemComponent?: React.FC<any>;
|
|
60
|
+
/** Chamado quando o menu suspenso é aberto */
|
|
61
|
+
onDropdownOpen?(): void;
|
|
62
|
+
/** Chamado quando o menu suspenso é aberto */
|
|
63
|
+
onDropdownClose?(): void;
|
|
64
|
+
/** Limite a quantidade de itens exibidos por vez para seleção pesquisável */
|
|
65
|
+
limit?: number;
|
|
66
|
+
/** Rótulo nada encontrado */
|
|
67
|
+
nothingFound?: React.ReactNode;
|
|
68
|
+
/** Índice z dropdown */
|
|
69
|
+
zIndex?: React.CSSProperties['zIndex'];
|
|
70
|
+
/** Comportamento de posicionamento dropdown */
|
|
71
|
+
dropdownPosition?: FloatingPosition;
|
|
72
|
+
/** Evento quando um valor é selecionado */
|
|
73
|
+
onSelectValue?: (value: O) => void;
|
|
74
|
+
/** Evento quando o foco sai do select */
|
|
75
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
76
|
+
/** Evento quando o select recebe o foco */
|
|
77
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
78
|
+
/** Opções de seleção iniciais */
|
|
79
|
+
initialOptions?: OptionsResult<O>;
|
|
80
|
+
/** Function que retorna o label de uma opção */
|
|
81
|
+
getOptionLabel: (option: O) => string;
|
|
82
|
+
/** Function que retorna o valor de uma opção */
|
|
83
|
+
getOptionValue: (option: O) => any;
|
|
84
|
+
/** Function que retorna a imagem de uma opção */
|
|
85
|
+
getOptionImage?: (option: O) => any | undefined | null;
|
|
86
|
+
/** Function responsável por retornar uma promessa contendo opções. Usado para buscar dados remotos. */
|
|
87
|
+
getOptions: (page: number, value: string) => Promise<OptionsResult<O>>;
|
|
88
|
+
/** Evento quando ocorreu um erro carregando dados através da promessa fornecida por getOptions. */
|
|
89
|
+
onErrorLoadOptions?: (error: string) => void;
|
|
90
|
+
/** Indica se o select tem o preenchimento obrigatório */
|
|
91
|
+
required?: boolean;
|
|
92
|
+
/** Referência para o componente interno */
|
|
93
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
94
|
+
/** Chamado sempre que o valor da pesquisa muda */
|
|
95
|
+
onSearchChange?(query: string): void;
|
|
96
|
+
/** Converte o valor antes de atribuir ao field do registro atual no datasource */
|
|
97
|
+
converter?: (value: O) => any;
|
|
98
|
+
/** Function que busca o valor original antes de converter pelo valor de retorno do converter */
|
|
99
|
+
getConvertedOption?: (value: any) => Promise<O>;
|
|
100
|
+
}
|
|
101
|
+
export declare function ArchbaseAsyncSelect<T, ID, O>({ allowDeselect, clearable, dataSource, dataField, disabled, debounceTime, minCharsToSearch, readOnly, placeholder, initialOptions, searchable, label, description, error, icon, iconWidth, required, getOptionLabel, getOptionValue, getOptionImage, getOptions, onFocusEnter, onFocusExit, onSelectValue, value, defaultValue, filter, size, style, width, initiallyOpened, itemComponent: ItemComponent, onDropdownOpen, onDropdownClose, limit, nothingFound, zIndex, dropdownPosition, onErrorLoadOptions, innerRef, onSearchChange, converter, getConvertedOption }: ArchbaseAsyncSelectProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
export declare const CustomSelectScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ActionIconVariant } from '@mantine/core';
|
|
2
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
import React, { CSSProperties } from 'react';
|
|
4
|
+
export interface ArchbaseAvatarEditProps<T, ID> {
|
|
5
|
+
/** Fonte de dados onde será atribuido o valor do avatar (V1 ou V2) */
|
|
6
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
7
|
+
/** Campo onde deverá ser atribuido o valor do avatar na fonte de dados */
|
|
8
|
+
dataField?: string;
|
|
9
|
+
/** Indicador se o avatar está desabilitado */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Indicador se o avatar é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
/** Indicador se o preenchimento do avatar é obrigatório */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** Estilo do avatar */
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
/** Título do avatar */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Descrição do avatar */
|
|
20
|
+
description?: string;
|
|
21
|
+
/** Último erro ocorrido no avatar */
|
|
22
|
+
error?: string;
|
|
23
|
+
/** Controla a aparência dos botões, sendo padrão "transparent". */
|
|
24
|
+
variant?: ActionIconVariant;
|
|
25
|
+
/** Image src */
|
|
26
|
+
src?: string | null;
|
|
27
|
+
/** Largura do avatar, padrão 200 */
|
|
28
|
+
width?: number;
|
|
29
|
+
/** Altura do avatar, padrão 200 */
|
|
30
|
+
height?: number;
|
|
31
|
+
/** Zoom inicial do avatar, padrão 1 */
|
|
32
|
+
initialZoom?: number;
|
|
33
|
+
/** Chave de theme.radius ou qualquer valor CSS válido para definir border-radius, 0 por padrão */
|
|
34
|
+
radius?: string | number | undefined;
|
|
35
|
+
/** Referência para o componente interno */
|
|
36
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
37
|
+
/** Callback quando a imagem for alterada */
|
|
38
|
+
onChangeImage?: (image: any) => void;
|
|
39
|
+
/** Desabilita conversão do conteúdo em base64 antes de salvar na fonte de dados */
|
|
40
|
+
disabledBase64Convertion?: boolean;
|
|
41
|
+
/** Cor de fundo de hover do avatar */
|
|
42
|
+
hoverBackgroundColor?: string;
|
|
43
|
+
/** Tamanho máximo da imagem em kilobytes */
|
|
44
|
+
maxSizeKB?: number;
|
|
45
|
+
/** Qualidade da compressão da imagem (0 a 1), sendo 1 melhor qualidade */
|
|
46
|
+
imageQuality?: number;
|
|
47
|
+
}
|
|
48
|
+
export declare function ArchbaseAvatarEdit<T, ID>({ width, height, dataSource, dataField, disabled, readOnly, required, label, description, error, src, radius, initialZoom, onChangeImage, disabledBase64Convertion, innerRef, variant, hoverBackgroundColor, maxSizeKB, // 0 significa sem limite
|
|
49
|
+
imageQuality, ...otherProps }: ArchbaseAvatarEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { MantineSize } from '@mantine/core';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
import React, { ReactNode } from 'react';
|
|
4
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
|
+
export interface ArchbaseCheckboxProps<T, ID> {
|
|
6
|
+
/** Fonte de dados onde será atribuido o valor do checkbox (V1 ou V2) */
|
|
7
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
8
|
+
/** Campo onde deverá ser atribuido o valor do checkbox na fonte de dados */
|
|
9
|
+
dataField?: string;
|
|
10
|
+
/** Indicador se o checkbox está desabilitado */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Indicador se o checkbox é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
/** Indicador se o preenchimento do checkbox é obrigatório */
|
|
15
|
+
required?: boolean;
|
|
16
|
+
/** Estilo do checkbox */
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
/** Chave de theme.radius ou qualquer valor CSS válido para definir border-radius, theme.defaultRadius por padrão */
|
|
19
|
+
radius?: string | number | undefined;
|
|
20
|
+
/** Valor quando o checkbox estiver true */
|
|
21
|
+
trueValue?: any;
|
|
22
|
+
/** Valor quando o checkbox estiver false */
|
|
23
|
+
falseValue?: any;
|
|
24
|
+
/** Indicador se o checkbox está marcado */
|
|
25
|
+
isChecked?: boolean;
|
|
26
|
+
/** Título do checkbox */
|
|
27
|
+
label?: ReactNode;
|
|
28
|
+
/** Largura do checkbox */
|
|
29
|
+
width?: string | number | undefined;
|
|
30
|
+
/** Descrição do checkbox */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Último erro ocorrido no checkbox */
|
|
33
|
+
error?: string;
|
|
34
|
+
/** Valor de tamanho predefinido */
|
|
35
|
+
size?: MantineSize;
|
|
36
|
+
/** Evento quando o foco sai do checkbox */
|
|
37
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
38
|
+
/** Evento quando o checkbox recebe o foco */
|
|
39
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
40
|
+
/** Evento quando o valor do checkbox é alterado */
|
|
41
|
+
onChangeValue?: (value: any, event: any) => void;
|
|
42
|
+
/** Referência para o componente interno */
|
|
43
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
44
|
+
}
|
|
45
|
+
export declare function ArchbaseCheckbox<T, ID>({ dataSource, dataField, disabled, readOnly, required, style, trueValue, falseValue, isChecked, width, label, description, error, size, radius, onFocusExit, onFocusEnter, onChangeValue, innerRef, }: ArchbaseCheckboxProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MantineSize } from '@mantine/core';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
|
+
export interface ArchbaseChipProps<T, ID> {
|
|
6
|
+
/** Fonte de dados onde será atribuido o valor do chip (V1 ou V2) */
|
|
7
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
8
|
+
/** Campo onde deverá ser atribuido o valor do chip na fonte de dados */
|
|
9
|
+
dataField?: string;
|
|
10
|
+
/** Indicador se o chip está desabilitado */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Indicador se o chip é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
/** Indicador se o preenchimento do chip é obrigatório */
|
|
15
|
+
required?: boolean;
|
|
16
|
+
/** Estilo do chip */
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
/** Chave de theme.radius ou qualquer valor CSS válido para definir border-radius, theme.defaultRadius por padrão */
|
|
19
|
+
radius?: string | number | undefined;
|
|
20
|
+
/** Valor quando o chip estiver true */
|
|
21
|
+
trueValue?: any;
|
|
22
|
+
/** Valor quando o chip estiver false */
|
|
23
|
+
falseValue?: any;
|
|
24
|
+
/** Indicador se o chip está marcado */
|
|
25
|
+
isChecked?: boolean;
|
|
26
|
+
/** Título do chip */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Largura do chip */
|
|
29
|
+
width?: string | number | undefined;
|
|
30
|
+
/** Valor de tamanho predefinido */
|
|
31
|
+
size?: MantineSize;
|
|
32
|
+
/** Evento quando o foco sai do chip */
|
|
33
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
34
|
+
/** Evento quando o chip recebe o foco */
|
|
35
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
36
|
+
/** Evento quando o valor do chip é alterado */
|
|
37
|
+
onChangeValue?: (value: any) => void;
|
|
38
|
+
/** Referência para o componente interno */
|
|
39
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
40
|
+
/** Último erro ocorrido no chip */
|
|
41
|
+
error?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function ArchbaseChip<T, ID>({ dataSource, dataField, disabled, readOnly, required, style, trueValue, falseValue, isChecked, width, label, size, radius, error, onFocusExit, onFocusEnter, onChangeValue, innerRef, }: ArchbaseChipProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|