@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,42 @@
|
|
|
1
|
+
import { ChipVariant } from '@mantine/core';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
|
+
export interface ArchbaseChipGroupProps<T, ID, O> {
|
|
5
|
+
/** Fonte de dados onde será atribuido o valor do ChipGroup (V1 ou V2) */
|
|
6
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
7
|
+
/** Campo onde deverá ser atribuido o valor do ChipGroup na fonte de dados */
|
|
8
|
+
dataField?: string;
|
|
9
|
+
/** Evento quando um valor é selecionado */
|
|
10
|
+
onSelectValue?: (value: any) => void;
|
|
11
|
+
/** Function que retorna o label de uma ChipItem */
|
|
12
|
+
getOptionLabel?: (option: O) => string;
|
|
13
|
+
/** Function que retorna o valor de uma ChipItem */
|
|
14
|
+
getOptionValue?: (option: O) => any;
|
|
15
|
+
/** Function que converte os valores do datasource para uma lista de chips selecionados do tipo padrão string[] ou string */
|
|
16
|
+
convertToValue?: (source: any) => string[] | string;
|
|
17
|
+
/** Function que converte o valor selecionado do tipo padrão string[] ou string para o tipo desejado */
|
|
18
|
+
convertFromValue?: (selected: string[] | string) => any;
|
|
19
|
+
/** Opções de seleção iniciais */
|
|
20
|
+
initialOptions?: O[] | object;
|
|
21
|
+
/** Coleção de ChipItem[] que representam as opções do select */
|
|
22
|
+
children?: ReactNode | ReactNode[];
|
|
23
|
+
/** Valor de entrada controlado */
|
|
24
|
+
value?: any;
|
|
25
|
+
/** Valor padrão de entrada não controlado */
|
|
26
|
+
defaultValue?: any;
|
|
27
|
+
/** Controla a aparência do chip, sendo padrão "filled" para dark theme e "outline" para light theme. ("outline" | "light" | "filled")*/
|
|
28
|
+
variant?: ChipVariant;
|
|
29
|
+
/** Tipo do chip */
|
|
30
|
+
type?: 'checkbox' | 'radio';
|
|
31
|
+
/** Permite que múltiplos valores sejam selecionados */
|
|
32
|
+
multiple?: boolean;
|
|
33
|
+
/** Estilo do chip */
|
|
34
|
+
style?: CSSProperties;
|
|
35
|
+
/** Último erro ocorrido no chip */
|
|
36
|
+
error?: string;
|
|
37
|
+
/** Título do edit */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** Descrição do edit */
|
|
40
|
+
description?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function ArchbaseChipGroup<T, ID, O>({ dataSource, dataField, onSelectValue, getOptionLabel, getOptionValue, convertToValue, convertFromValue, value, defaultValue, initialOptions, children, variant, type, multiple, error, style, label, description, }: ArchbaseChipGroupProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChipVariant } from '@mantine/core';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
export interface ArchbaseChipItemProps<T> {
|
|
4
|
+
/** Texto a ser apresentado no select */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Cor de fundo do item */
|
|
7
|
+
value?: T;
|
|
8
|
+
/** Controla a aparência do chip, sendo padrão "filled" para dark theme e "outline" para light theme. ("outline" | "light" | "filled")*/
|
|
9
|
+
variant?: ChipVariant;
|
|
10
|
+
/** Tipo do chip */
|
|
11
|
+
type?: 'checkbox' | 'radio';
|
|
12
|
+
/** Estilo do chip */
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
export declare function ArchbaseChipItem<T>(_props: ArchbaseChipItemProps<T>): any;
|
|
16
|
+
export declare namespace ArchbaseChipItem {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface ArchbaseCronExpressionEditProps {
|
|
2
|
+
/** The current cron expression value */
|
|
3
|
+
value: string;
|
|
4
|
+
/** Callback function to handle changes in the cron expression */
|
|
5
|
+
onChange: (newValue: string) => void;
|
|
6
|
+
/** Label for the input field */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Error message to display (if any) */
|
|
9
|
+
error?: string;
|
|
10
|
+
/** Whether the component is in a read-only state */
|
|
11
|
+
readOnly?: boolean;
|
|
12
|
+
/** Placeholder text for the input field */
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function ArchbaseCronExpressionEdit({ value, onChange, label, error, readOnly, placeholder }: ArchbaseCronExpressionEditProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type ArchbaseCronExpressionEditorProps = {
|
|
2
|
+
onChange: (value: any) => void;
|
|
3
|
+
readOnly?: boolean;
|
|
4
|
+
initialValue: any;
|
|
5
|
+
label?: any;
|
|
6
|
+
error?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function ArchbaseCronExpressionEditor({ label, initialValue, onChange, readOnly, error }: ArchbaseCronExpressionEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { __InputProps, CloseButtonProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, PopoverProps, StylesApiProps } from '@mantine/core';
|
|
2
|
+
import { CalendarBaseProps, CalendarLevel, CalendarStylesNames, DecadeLevelSettings, MonthLevelSettings, YearLevelSettings } from '@mantine/dates';
|
|
3
|
+
type DateValue = Date | null;
|
|
4
|
+
import React, { CSSProperties } from 'react';
|
|
5
|
+
import { type IArchbaseDataSourceBase } from '@archbase/data';
|
|
6
|
+
export declare function assignTime(originalDate: DateValue, resultDate: DateValue): Date;
|
|
7
|
+
export type ArchbaseDatePickerEditStylesNames = CalendarStylesNames | InputStylesNames | InputWrapperStylesNames;
|
|
8
|
+
export interface ArchbaseDatePickerEditProps<T, ID> extends StylesApiProps<ArchbaseDatePickerEditFactory>, __InputProps, CalendarBaseProps, DecadeLevelSettings, YearLevelSettings, MonthLevelSettings, Omit<React.ComponentPropsWithoutRef<'input'>, 'size' | 'value' | 'defaultValue' | 'onChange'> {
|
|
9
|
+
/** Analisa a entrada do usuário para convertê-la em um objeto Date */
|
|
10
|
+
dateParser?: (value: string) => DateValue;
|
|
11
|
+
/** Valor do componente controlado */
|
|
12
|
+
value?: DateValue | string;
|
|
13
|
+
/** Valor padrão para componente não controlado */
|
|
14
|
+
defaultValue?: DateValue | string;
|
|
15
|
+
/** Chamado quando o valor muda */
|
|
16
|
+
onChange?(value: DateValue): void;
|
|
17
|
+
/** Evento quando o valor é alterado */
|
|
18
|
+
onChangeValue?: (value: any, event: any) => void;
|
|
19
|
+
/** Adereços adicionados ao componente Popover */
|
|
20
|
+
popoverProps?: Partial<Omit<PopoverProps, 'children'>>;
|
|
21
|
+
/** Determina se o valor de entrada pode ser limpo, adiciona o botão limpar à seção direita, falso por padrão */
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
/** Adereços adicionados ao botão limpar */
|
|
24
|
+
clearButtonProps?: CloseButtonProps;
|
|
25
|
+
/** Determina se o valor de entrada deve ser revertido para o último valor válido conhecido no desfoque, verdadeiro por padrão */
|
|
26
|
+
fixOnBlur?: boolean;
|
|
27
|
+
/** Determina se o valor pode ser desmarcado quando o usuário clica na data selecionada no calendário ou apaga o conteúdo da entrada, verdadeiro se prop limpável estiver definido, falso por padrão */
|
|
28
|
+
allowDeselect?: boolean;
|
|
29
|
+
/** Determina se o tempo (horas, minutos, segundos e milissegundos) deve ser preservado quando uma nova data é escolhida, verdadeiro por padrão */
|
|
30
|
+
preserveTime?: boolean;
|
|
31
|
+
/** Nível máximo que o usuário pode atingir (década, ano, mês), o padrão é década */
|
|
32
|
+
maxLevel?: CalendarLevel;
|
|
33
|
+
/** Nível inicial exibido ao usuário (década, ano, mês), usado para componente não controlado */
|
|
34
|
+
defaultLevel?: CalendarLevel;
|
|
35
|
+
/** Nível atual exibido ao usuário (década, ano, mês), usado para componente controlado */
|
|
36
|
+
level?: CalendarLevel;
|
|
37
|
+
/** Chamado quando o nível muda */
|
|
38
|
+
onLevelChange?(level: CalendarLevel): void;
|
|
39
|
+
/** Fonte de dados onde será atribuido o valor do datePicker (V1 ou V2) */
|
|
40
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
41
|
+
/** Campo onde deverá ser atribuido o valor do datePicker na fonte de dados */
|
|
42
|
+
dataField?: string;
|
|
43
|
+
/** Indicador se o date picker está desabilitado */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** Indicador se o date picker é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
46
|
+
readOnly?: boolean;
|
|
47
|
+
/** Estilo do date picker */
|
|
48
|
+
style?: CSSProperties;
|
|
49
|
+
/** Tamanho do date picker */
|
|
50
|
+
size?: MantineSize;
|
|
51
|
+
/** Largura do date picker */
|
|
52
|
+
width?: string | number | undefined;
|
|
53
|
+
/** Possíveis formatos para a data */
|
|
54
|
+
dateFormat?: 'DD/MM/YYYY' | 'DD-MM-YYYY' | 'YYYY/MM/DD' | 'YYYY-MM-DD';
|
|
55
|
+
/** Caracter a ser mostrado quando não houver um valor*/
|
|
56
|
+
placeholderChar?: string;
|
|
57
|
+
/** Indicador se o caracter deve ser mostrado quando não houver um valor */
|
|
58
|
+
showPlaceholderFormat?: boolean;
|
|
59
|
+
/** Evento quando o foco sai do date picker */
|
|
60
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
61
|
+
/** Evento quando o date picker recebe o foco */
|
|
62
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
63
|
+
/** Indica se o date picker tem o preenchimento obrigatório */
|
|
64
|
+
required?: boolean;
|
|
65
|
+
/** Referência para o componente interno */
|
|
66
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
67
|
+
/** Último erro ocorrido no datepicker */
|
|
68
|
+
error?: string;
|
|
69
|
+
/** Título do edit */
|
|
70
|
+
title?: string;
|
|
71
|
+
/** Título do edit */
|
|
72
|
+
label?: string;
|
|
73
|
+
}
|
|
74
|
+
export type ArchbaseDatePickerEditFactory = PolymorphicFactory<{
|
|
75
|
+
props: ArchbaseDatePickerEditProps<any, any>;
|
|
76
|
+
defaultRef: HTMLInputElement;
|
|
77
|
+
defaultComponent: 'input';
|
|
78
|
+
stylesNames: ArchbaseDatePickerEditStylesNames;
|
|
79
|
+
variant: InputVariant;
|
|
80
|
+
}>;
|
|
81
|
+
export declare function ArchbaseDatePickerEdit<T, ID>(props: ArchbaseDatePickerEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export declare namespace ArchbaseDatePickerEdit {
|
|
83
|
+
var displayName: string;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { MantineSize } from '@mantine/core';
|
|
2
|
+
import { DateValue } from '@mantine/dates';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
5
|
+
export interface ArchbaseDatePickerRangeProps {
|
|
6
|
+
/** Indicador se o date picker range está desabilitado */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** Indicador se o date picker range é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
/** Indicador se o preenchimento do date picker range é obrigatório */
|
|
11
|
+
required?: boolean;
|
|
12
|
+
/** Valor inicial */
|
|
13
|
+
value?: string;
|
|
14
|
+
/** Estilo do date picker range */
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
/** Tamanho do date picker range */
|
|
17
|
+
size?: MantineSize;
|
|
18
|
+
/** Largura do date picker range */
|
|
19
|
+
width?: string | number | undefined;
|
|
20
|
+
/** Icone à direita */
|
|
21
|
+
icon?: ReactNode;
|
|
22
|
+
/** Texto sugestão do date picker range */
|
|
23
|
+
placeholderStart?: string;
|
|
24
|
+
/** Texto sugestão do date picker range */
|
|
25
|
+
placeholderEnd?: string;
|
|
26
|
+
/** Título do date picker range */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** Descrição do date picker range */
|
|
29
|
+
description?: string;
|
|
30
|
+
/** Último erro ocorrido no date picker range */
|
|
31
|
+
error?: string;
|
|
32
|
+
/** Evento quando o foco sai do date picker range */
|
|
33
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
34
|
+
/** Evento quando o date picker range recebe o foco */
|
|
35
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
36
|
+
/** Evento quando o valor do date picker range é alterado */
|
|
37
|
+
onChangeValue?: (value: any, event: any) => void;
|
|
38
|
+
onKeyDown?: (event: any) => void;
|
|
39
|
+
onKeyUp?: (event: any) => void;
|
|
40
|
+
/** Evento quando o valor do range do date picker range é alterado */
|
|
41
|
+
onSelectDateRange?: (value: DateValue[]) => void;
|
|
42
|
+
/** Referência para o componente interno data inicial*/
|
|
43
|
+
innerRefStart?: React.RefObject<HTMLInputElement> | undefined;
|
|
44
|
+
/** Referência para o componente interno data final*/
|
|
45
|
+
innerRefEnd?: React.RefObject<HTMLInputElement> | undefined;
|
|
46
|
+
}
|
|
47
|
+
export declare function ArchbaseDatePickerRange({ label, disabled, readOnly, size, width, style, onSelectDateRange, onFocusEnter, onFocusExit, placeholderStart, placeholderEnd, error, }: ArchbaseDatePickerRangeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DateTimePickerProps } from '@mantine/dates';
|
|
2
|
+
import type { CSSProperties, ForwardedRef } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
|
+
type OmittedDateTimePickerProps = Omit<DateTimePickerProps, 'value' | 'onChange'>;
|
|
6
|
+
export interface ArchbaseDateTimePickerEditProps<T, ID> extends OmittedDateTimePickerProps {
|
|
7
|
+
/** Data source where the edit value will be assigned (V1 ou V2) */
|
|
8
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
9
|
+
/** Field where the edit value should be assigned in the data source */
|
|
10
|
+
dataField?: string;
|
|
11
|
+
/** Indicates if the edit is disabled */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Indicates if the edit is read-only. Note: used in conjunction with data source status */
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
/** Indicates if filling the edit is required */
|
|
16
|
+
required?: boolean;
|
|
17
|
+
/** Initial value */
|
|
18
|
+
value?: Date | null;
|
|
19
|
+
/** Edit style */
|
|
20
|
+
style?: CSSProperties;
|
|
21
|
+
/** Edit width */
|
|
22
|
+
width?: string | number | undefined;
|
|
23
|
+
/** Event occurs when focus exits the edit */
|
|
24
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
25
|
+
/** Event occurs when the edit receives focus */
|
|
26
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
27
|
+
/** Event when the edit value changes (internal use) */
|
|
28
|
+
onChange?: (value: Date | null) => void;
|
|
29
|
+
/** Event when the edit value changes (external use) */
|
|
30
|
+
onChangeValue?: (value: Date | null) => void;
|
|
31
|
+
/** Clear button properties */
|
|
32
|
+
clearButtonProps?: Record<string, any>;
|
|
33
|
+
/** With seconds input */
|
|
34
|
+
withSeconds?: boolean;
|
|
35
|
+
/** Value format */
|
|
36
|
+
valueFormat?: string;
|
|
37
|
+
/** Error message */
|
|
38
|
+
error?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare const ArchbaseDateTimePickerEdit: <T, ID>(props: ArchbaseDateTimePickerEditProps<T, ID> & {
|
|
41
|
+
ref?: ForwardedRef<HTMLButtonElement>;
|
|
42
|
+
}) => React.JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { MantineSize } from '@mantine/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
|
+
export interface ArchbaseDateTimePickerRangeProps<T, ID> {
|
|
6
|
+
/** Data source where the range values will be assigned (V1 ou V2) */
|
|
7
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
8
|
+
/** Field for start date in the data source */
|
|
9
|
+
dataFieldStart?: string;
|
|
10
|
+
/** Field for end date in the data source */
|
|
11
|
+
dataFieldEnd?: string;
|
|
12
|
+
/** Indicates if the date picker range is disabled */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Indicates if the date picker range is read-only */
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
/** Indicates if filling the date picker range is required */
|
|
17
|
+
required?: boolean;
|
|
18
|
+
/** Initial value */
|
|
19
|
+
value?: [Date | null, Date | null];
|
|
20
|
+
/** Style of the date picker range */
|
|
21
|
+
style?: CSSProperties;
|
|
22
|
+
/** Size of the date picker range */
|
|
23
|
+
size?: MantineSize;
|
|
24
|
+
/** Width of the date picker range */
|
|
25
|
+
width?: string | number | undefined;
|
|
26
|
+
/** Custom right section icon */
|
|
27
|
+
icon?: ReactNode;
|
|
28
|
+
/** Placeholder text for start date */
|
|
29
|
+
placeholderStart?: string;
|
|
30
|
+
/** Placeholder text for end date */
|
|
31
|
+
placeholderEnd?: string;
|
|
32
|
+
/** Label for the date picker range */
|
|
33
|
+
label?: string;
|
|
34
|
+
/** Description for the date picker range */
|
|
35
|
+
description?: string;
|
|
36
|
+
/** Error message */
|
|
37
|
+
error?: string;
|
|
38
|
+
/** Event when range value changes */
|
|
39
|
+
onRangeChange?: (value: [Date | null, Date | null]) => void;
|
|
40
|
+
/** Event when key down */
|
|
41
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
42
|
+
/** Event when key up */
|
|
43
|
+
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
44
|
+
/** Minimum date allowed */
|
|
45
|
+
minDate?: Date;
|
|
46
|
+
/** Maximum date allowed */
|
|
47
|
+
maxDate?: Date;
|
|
48
|
+
/** Date format */
|
|
49
|
+
valueFormat?: string;
|
|
50
|
+
/** With seconds input */
|
|
51
|
+
withSeconds?: boolean;
|
|
52
|
+
/** Clear button properties */
|
|
53
|
+
clearButtonProps?: Record<string, any>;
|
|
54
|
+
}
|
|
55
|
+
export declare function ArchbaseDateTimePickerRange<T, ID>({ dataSource, dataFieldStart, dataFieldEnd, label, disabled, readOnly, size, width, style, description, onRangeChange, placeholderStart, placeholderEnd, icon, error, value, minDate, maxDate, valueFormat, withSeconds, clearButtonProps, required, }: ArchbaseDateTimePickerRangeProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare namespace ArchbaseDateTimePickerRange {
|
|
57
|
+
var displayName: string;
|
|
58
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArchbaseEdit — input texto integrado ao DataSource (v1/v2) com suporte a validação e estado controlado.
|
|
3
|
+
* @status stable
|
|
4
|
+
*/
|
|
5
|
+
import { ActionIconVariant, MantineSize } from '@mantine/core';
|
|
6
|
+
import type { CSSProperties, FocusEventHandler, ReactNode } from 'react';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
9
|
+
export interface ArchbaseEditProps<T, ID> {
|
|
10
|
+
/** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
|
|
11
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
12
|
+
/** Campo onde deverá ser atribuido o valor do edit na fonte de dados */
|
|
13
|
+
dataField?: string;
|
|
14
|
+
/** Indicador se o edit está desabilitado */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Indicador se o edit é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
/** Indicador se o preenchimento do edit é obrigatório */
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/** Valor inicial */
|
|
21
|
+
value?: string;
|
|
22
|
+
/** Estilo do edit */
|
|
23
|
+
style?: CSSProperties;
|
|
24
|
+
/** Tamanho do edit */
|
|
25
|
+
size?: MantineSize;
|
|
26
|
+
/** Largura do edit */
|
|
27
|
+
width?: string | number | undefined;
|
|
28
|
+
/** Icone à direita */
|
|
29
|
+
icon?: ReactNode;
|
|
30
|
+
/** Dica para botão localizar */
|
|
31
|
+
tooltipIconSearch?: ReactNode;
|
|
32
|
+
/** Evento ocorre quando clica no botão localizar */
|
|
33
|
+
onActionSearchExecute?: () => void;
|
|
34
|
+
/** Texto sugestão do edit */
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
/** Título do edit */
|
|
37
|
+
label?: string;
|
|
38
|
+
/** Descrição do edit */
|
|
39
|
+
description?: string;
|
|
40
|
+
/** Último erro ocorrido no edit */
|
|
41
|
+
error?: string;
|
|
42
|
+
/** Evento quando o foco sai do edit */
|
|
43
|
+
onFocusExit?: FocusEventHandler<T> | undefined;
|
|
44
|
+
/** Evento quando o edit recebe o foco */
|
|
45
|
+
onFocusEnter?: FocusEventHandler<T> | undefined;
|
|
46
|
+
/** Evento quando o valor do edit é alterado */
|
|
47
|
+
onChangeValue?: (value: any, event: any) => void;
|
|
48
|
+
onKeyDown?: (event: any) => void;
|
|
49
|
+
onKeyUp?: (event: any) => void;
|
|
50
|
+
/** Referência para o componente interno */
|
|
51
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
52
|
+
variant?: ActionIconVariant;
|
|
53
|
+
minLength?: number;
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
}
|
|
56
|
+
export declare function ArchbaseEdit<T, ID>({ dataSource, dataField, disabled, readOnly, style, placeholder, label, description, error, required, size, width, innerRef, value, icon, onKeyDown, onKeyUp, onActionSearchExecute, tooltipIconSearch, onFocusExit, onFocusEnter, onChangeValue, variant, minLength, maxLength }: ArchbaseEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exemplo prático: ArchbaseEdit híbrido suportando V1 e V2
|
|
3
|
+
*
|
|
4
|
+
* Este exemplo demonstra como o mesmo componente ArchbaseEdit
|
|
5
|
+
* funciona transparentemente com ambas as versões do DataSource
|
|
6
|
+
*/
|
|
7
|
+
export declare const ArchbaseEditExamples: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ArchbaseEditExamples;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Attachment {
|
|
3
|
+
name: string;
|
|
4
|
+
type: string;
|
|
5
|
+
size: number;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ArchbaseFileAttachmentProps {
|
|
9
|
+
attachments: Attachment[];
|
|
10
|
+
accept?: string[];
|
|
11
|
+
acceptDescription?: string;
|
|
12
|
+
onAttachmentAdd: (newAttachment: Attachment) => void;
|
|
13
|
+
onAttachmentRemove: (removedAttachment: Attachment) => void;
|
|
14
|
+
height?: number | string;
|
|
15
|
+
width?: number | string;
|
|
16
|
+
}
|
|
17
|
+
export declare const ArchbaseFileAttachment: React.FC<ArchbaseFileAttachmentProps>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ActionIconVariant, ImageProps } from '@mantine/core';
|
|
2
|
+
import React, { CSSProperties } from 'react';
|
|
3
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
|
+
export interface ArchbaseImageEditProps<T, ID> extends ImageProps {
|
|
5
|
+
/** Fonte de dados onde será atribuido o valor do rich edit (V1 ou V2) */
|
|
6
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
7
|
+
/** Campo onde deverá ser atribuido o valor do rich edit na fonte de dados */
|
|
8
|
+
dataField?: string;
|
|
9
|
+
/** Indicador se o rich edit está desabilitado */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Indicador se o rich edit é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
/** Indicador se o preenchimento do rich edit é obrigatório */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** Estilo do checkbox */
|
|
16
|
+
style?: CSSProperties;
|
|
17
|
+
/** Título do rich edit */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Descrição do rich edit */
|
|
20
|
+
description?: string;
|
|
21
|
+
/** Último erro ocorrido no rich edit */
|
|
22
|
+
error?: string;
|
|
23
|
+
/** Controla a aparência dos botões, sendo padrão "transparent". ("filled" | "light" | "outline" | "transparent" | "white" | "subtle" | "default" | "gradient")*/
|
|
24
|
+
variant?: ActionIconVariant;
|
|
25
|
+
/** Image src */
|
|
26
|
+
src?: string | null;
|
|
27
|
+
/** Texto alternativo da imagem, usado como título para espaço reservado se a imagem não foi carregada */
|
|
28
|
+
alt?: string;
|
|
29
|
+
/** Largura da imagem, padrão de 100%, não pode exceder 100% */
|
|
30
|
+
width?: number | string;
|
|
31
|
+
/** Altura da imagem, o padrão é a altura da imagem original ajustada para determinada largura */
|
|
32
|
+
height?: number | string;
|
|
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
|
+
/** Obter ref do elemento de imagem */
|
|
36
|
+
imageRef?: React.ForwardedRef<HTMLImageElement>;
|
|
37
|
+
/** Legenda da imagem, exibida abaixo da imagem */
|
|
38
|
+
caption?: React.ReactNode;
|
|
39
|
+
aspectRatio?: number | null;
|
|
40
|
+
objectFit?: 'cover' | 'contain' | 'fill' | 'revert' | 'scale-down';
|
|
41
|
+
compressInitial?: number | undefined | null;
|
|
42
|
+
onChangeImage?: (image: any) => void;
|
|
43
|
+
/** Desabilita conversão do conteúdo em base64 antes de salvar na fonte de dados */
|
|
44
|
+
disabledBase64Convertion?: boolean;
|
|
45
|
+
/** Referência para o componente interno */
|
|
46
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
47
|
+
/** Cor de fundo da imagem */
|
|
48
|
+
imageBackgroundColor?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare function ArchbaseImageEdit<T, ID>({ width, height, dataSource, dataField, disabled, readOnly, required, label, description, error, src, radius, aspectRatio, objectFit, compressInitial, onChangeImage, disabledBase64Convertion, innerRef, variant, imageBackgroundColor, ...otherProps }: ArchbaseImageEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ArchbaseJsonEditProps<T, ID> {
|
|
6
|
+
/** Fonte de dados onde será atribuido o valor do json input (V1 ou V2) */
|
|
7
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
8
|
+
/** Campo onde deverá ser atribuido o valor do json input na fonte de dados */
|
|
9
|
+
dataField?: string;
|
|
10
|
+
/** Indicador se o json input está desabilitado */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Indicador se o json input é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
/** Indicador se o preenchimento do json input é obrigatório */
|
|
15
|
+
required?: boolean;
|
|
16
|
+
/** Estilo do json input */
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
/** Tamanho do json input */
|
|
19
|
+
size?: MantineSize;
|
|
20
|
+
/** Largura do json input */
|
|
21
|
+
width?: string | number | undefined;
|
|
22
|
+
/** Indicador se json input crescerá com o conteúdo até que maxRows sejam atingidos */
|
|
23
|
+
autosize?: boolean;
|
|
24
|
+
/** Número mínimo de linhas obrigatórias */
|
|
25
|
+
minRows?: number;
|
|
26
|
+
/** Número máximo de linhas aceitas */
|
|
27
|
+
maxRows?: number;
|
|
28
|
+
/** Tamanho máximo em caracteres aceitos */
|
|
29
|
+
maxLength?: number;
|
|
30
|
+
/** Desabilita conversão do conteúdo em base64 antes de salvar na fonte de dados */
|
|
31
|
+
disabledBase64Convertion?: boolean;
|
|
32
|
+
/** Texto sugestão do json input */
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
/** Título do json input */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** Descrição do json input */
|
|
37
|
+
description?: string;
|
|
38
|
+
/** Último erro ocorrido no json input */
|
|
39
|
+
error?: string;
|
|
40
|
+
/** Evento quando o foco sai do json input */
|
|
41
|
+
onFocusExit?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
42
|
+
/** Evento quando o json input recebe o foco */
|
|
43
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
44
|
+
/** Evento quando o valor do json input é alterado */
|
|
45
|
+
onChangeValue?: (value: any) => void;
|
|
46
|
+
/** Referência para o componente interno */
|
|
47
|
+
innerRef?: React.RefObject<HTMLTextAreaElement> | undefined;
|
|
48
|
+
}
|
|
49
|
+
export declare function ArchbaseJsonEdit<T, ID>({ dataSource, dataField, disabled, readOnly, style, placeholder, label, description, error, onFocusExit, onFocusEnter, onChangeValue, autosize, minRows, maxRows, maxLength, required, disabledBase64Convertion, innerRef, }: ArchbaseJsonEditProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface ArchbaseKeyValueEditorProps {
|
|
2
|
+
initialValue: string;
|
|
3
|
+
keyLabel?: string;
|
|
4
|
+
valueLabel?: string;
|
|
5
|
+
valueOptions?: {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
onChangeKeyValue: (value: string) => void;
|
|
10
|
+
pairSeparator?: string;
|
|
11
|
+
keyValueSeparator?: string;
|
|
12
|
+
useBraces?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
error?: string;
|
|
16
|
+
tooltipAdd?: string;
|
|
17
|
+
tooltipRemove?: string;
|
|
18
|
+
layout?: 'horizontal' | 'vertical';
|
|
19
|
+
spacing?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
20
|
+
}
|
|
21
|
+
export declare function ArchbaseKeyValueEditor({ initialValue, keyLabel, valueLabel, valueOptions, onChangeKeyValue, pairSeparator, keyValueSeparator, useBraces, readOnly, label, error, tooltipAdd, tooltipRemove, layout, spacing }: ArchbaseKeyValueEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { MantineSize } from '@mantine/core';
|
|
2
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
|
+
export interface ArchbaseLookupEditProps<T, ID, O> {
|
|
6
|
+
/** Fonte de dados onde será atribuido o valor do lookup edit (V1 ou V2) */
|
|
7
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
8
|
+
/** Campo onde deverá ser atribuido o valor do lookup edit na fonte de dados */
|
|
9
|
+
dataField?: string;
|
|
10
|
+
/** Campo da fonte de dados que será usado para apresentar o valor no lookup edit */
|
|
11
|
+
lookupField?: string;
|
|
12
|
+
/** Indicador se o lookup edit está desabilitado */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Indicador se o lookup edit é somente leitura. Obs: usado em conjunto com o status da fonte de dados */
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
/** Indicador se o preenchimento do lookup edit é obrigatório */
|
|
17
|
+
required?: boolean;
|
|
18
|
+
/** Validar ao sair do campo se localizou o valor */
|
|
19
|
+
validateOnExit?: boolean;
|
|
20
|
+
/** Mensagem caso falhe ao localizar o valor */
|
|
21
|
+
validateMessage?: string;
|
|
22
|
+
/** Estilo do lookup edit */
|
|
23
|
+
style?: CSSProperties;
|
|
24
|
+
/** Tamanho do campo */
|
|
25
|
+
size?: MantineSize;
|
|
26
|
+
/** Largura do lookup edit */
|
|
27
|
+
width?: string | number | undefined;
|
|
28
|
+
/** Texto sugestão do lookup edit */
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/** Título do lookup edit */
|
|
31
|
+
label?: string;
|
|
32
|
+
/** Descrição do lookup edit */
|
|
33
|
+
description?: string;
|
|
34
|
+
/** Último erro ocorrido no lookup edit */
|
|
35
|
+
error?: string;
|
|
36
|
+
/** Icone para apresentar lado direito do lookup edit que representa a busca */
|
|
37
|
+
iconSearch?: ReactNode;
|
|
38
|
+
/** Dica para botão localizar */
|
|
39
|
+
tooltipIconSearch?: string;
|
|
40
|
+
/** Evento ocorre quando clica no botão localizar */
|
|
41
|
+
onActionSearchExecute?: () => void;
|
|
42
|
+
/** Evento quando o foco sai do lookup edit */
|
|
43
|
+
onFocusExit?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
44
|
+
/** Evento quando o lookup edit recebe o foco */
|
|
45
|
+
onFocusEnter?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
46
|
+
/** Evento quando o valor do lookup edit é alterado */
|
|
47
|
+
onChangeValue?: (value: any, event: any) => void;
|
|
48
|
+
/** Evento ocorre quando um valor é localizado */
|
|
49
|
+
onLookupResult?: (value: O) => void;
|
|
50
|
+
/** Evento ocorre quando se obtém um erro ao localizar valor */
|
|
51
|
+
onLookupError?: (error: string) => void;
|
|
52
|
+
/** Função responsável por localizar um valor */
|
|
53
|
+
lookupValueDelegator: (value: any) => Promise<O>;
|
|
54
|
+
/** Referência para o componente interno */
|
|
55
|
+
innerRef?: React.RefObject<HTMLInputElement> | undefined;
|
|
56
|
+
}
|
|
57
|
+
export declare function ArchbaseLookupEdit<T, ID, O>({ dataSource, dataField, lookupField, iconSearch, disabled, readOnly, style, placeholder, label, description, error, required, size, width, lookupValueDelegator, onLookupError, onLookupResult, validateMessage, tooltipIconSearch, validateOnExit, onFocusExit, onFocusEnter, onChangeValue, onActionSearchExecute, innerRef, }: ArchbaseLookupEditProps<T, ID, O>): import("react/jsx-runtime").JSX.Element;
|