@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,131 @@
|
|
|
1
|
+
export type Schema2 = {
|
|
2
|
+
jsonSchema: JSONSchema7;
|
|
3
|
+
isValidSchema?: boolean;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
isReadOnly: boolean;
|
|
6
|
+
fieldId: number;
|
|
7
|
+
};
|
|
8
|
+
export interface AdvancedItemStateProps {
|
|
9
|
+
path: string;
|
|
10
|
+
item: JSONSchema7;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Primitive type
|
|
14
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
15
|
+
*/
|
|
16
|
+
export type JSONSchema7TypeName = 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null';
|
|
17
|
+
/**
|
|
18
|
+
* Primitive type
|
|
19
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
20
|
+
*/
|
|
21
|
+
export type JSONSchema7Type = string | number | boolean | JSONSchema7Object | JSONSchema7Array | null;
|
|
22
|
+
export interface JSONSchema7Object {
|
|
23
|
+
[key: string]: JSONSchema7Type;
|
|
24
|
+
}
|
|
25
|
+
export type JSONSchema7Array = Array<JSONSchema7Type>;
|
|
26
|
+
/**
|
|
27
|
+
* Meta schema
|
|
28
|
+
*
|
|
29
|
+
* Recommended values:
|
|
30
|
+
* - 'http://json-schema.org/schema#'
|
|
31
|
+
* - 'http://json-schema.org/hyper-schema#'
|
|
32
|
+
* - 'http://json-schema.org/draft-07/schema#'
|
|
33
|
+
* - 'http://json-schema.org/draft-07/hyper-schema#'
|
|
34
|
+
*
|
|
35
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
36
|
+
*/
|
|
37
|
+
export type JSONSchema7Version = string;
|
|
38
|
+
/**
|
|
39
|
+
* JSON Schema v7
|
|
40
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
41
|
+
*/
|
|
42
|
+
export type JSONSchema7Definition = JSONSchema7 | boolean;
|
|
43
|
+
export interface JSONSchema7 {
|
|
44
|
+
$id?: string;
|
|
45
|
+
$ref?: string;
|
|
46
|
+
$schema?: JSONSchema7Version;
|
|
47
|
+
$comment?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
50
|
+
*/
|
|
51
|
+
type?: JSONSchema7TypeName | JSONSchema7TypeName[];
|
|
52
|
+
enum?: JSONSchema7Type[];
|
|
53
|
+
const?: JSONSchema7Type;
|
|
54
|
+
/**
|
|
55
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
56
|
+
*/
|
|
57
|
+
multipleOf?: number;
|
|
58
|
+
maximum?: number;
|
|
59
|
+
exclusiveMaximum?: number;
|
|
60
|
+
minimum?: number;
|
|
61
|
+
exclusiveMinimum?: number;
|
|
62
|
+
/**
|
|
63
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
64
|
+
*/
|
|
65
|
+
maxLength?: number;
|
|
66
|
+
minLength?: number;
|
|
67
|
+
pattern?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
70
|
+
*/
|
|
71
|
+
items?: JSONSchema7Definition | JSONSchema7Definition[];
|
|
72
|
+
additionalItems?: JSONSchema7Definition;
|
|
73
|
+
maxItems?: number;
|
|
74
|
+
minItems?: number;
|
|
75
|
+
uniqueItems?: boolean;
|
|
76
|
+
contains?: JSONSchema7;
|
|
77
|
+
/**
|
|
78
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
79
|
+
*/
|
|
80
|
+
maxProperties?: number;
|
|
81
|
+
minProperties?: number;
|
|
82
|
+
required?: string[];
|
|
83
|
+
properties?: {
|
|
84
|
+
[key: string]: JSONSchema7Definition;
|
|
85
|
+
};
|
|
86
|
+
patternProperties?: {
|
|
87
|
+
[key: string]: JSONSchema7Definition;
|
|
88
|
+
};
|
|
89
|
+
additionalProperties?: JSONSchema7Definition;
|
|
90
|
+
dependencies?: {
|
|
91
|
+
[key: string]: JSONSchema7Definition | string[];
|
|
92
|
+
};
|
|
93
|
+
propertyNames?: JSONSchema7Definition;
|
|
94
|
+
/**
|
|
95
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
96
|
+
*/
|
|
97
|
+
if?: JSONSchema7Definition;
|
|
98
|
+
then?: JSONSchema7Definition;
|
|
99
|
+
else?: JSONSchema7Definition;
|
|
100
|
+
/**
|
|
101
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
102
|
+
*/
|
|
103
|
+
allOf?: JSONSchema7Definition[];
|
|
104
|
+
anyOf?: JSONSchema7Definition[];
|
|
105
|
+
oneOf?: JSONSchema7Definition[];
|
|
106
|
+
not?: JSONSchema7Definition;
|
|
107
|
+
/**
|
|
108
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
109
|
+
*/
|
|
110
|
+
format?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-8
|
|
113
|
+
*/
|
|
114
|
+
contentMediaType?: string;
|
|
115
|
+
contentEncoding?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-9
|
|
118
|
+
*/
|
|
119
|
+
definitions?: {
|
|
120
|
+
[key: string]: JSONSchema7Definition;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
124
|
+
*/
|
|
125
|
+
title?: string;
|
|
126
|
+
description?: string;
|
|
127
|
+
default?: JSONSchema7Type;
|
|
128
|
+
readOnly?: boolean;
|
|
129
|
+
writeOnly?: boolean;
|
|
130
|
+
examples?: JSONSchema7Type;
|
|
131
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SetNestedObjectValueOperation } from '@archbase/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ArchbaseJsonSchemaEditorContextValue {
|
|
4
|
+
handleChange?: (path: string, value: any, operation?: SetNestedObjectValueOperation) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ArchbaseJsonSchemaEditorContext: React.Context<ArchbaseJsonSchemaEditorContextValue>;
|
|
7
|
+
export declare const ArchbaseJsonSchemaEditorProvider: React.Provider<ArchbaseJsonSchemaEditorContextValue>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSONSchema7 } from '../ArchbaseJsonSchemaEditor.types';
|
|
2
|
+
export * from '../ArchbaseJsonSchemaEditor.types';
|
|
3
|
+
export interface ArchbaseJsonSchemaEditorProps {
|
|
4
|
+
rootSchema?: JSONSchema7 | undefined;
|
|
5
|
+
defaultRootSchema?: JSONSchema7 | undefined;
|
|
6
|
+
onRootSchemaChange?: (schema: JSONSchema7, isValid: boolean) => void;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ArchbaseJsonSchemaEditor: ({ rootSchema, defaultRootSchema, onRootSchemaChange, readOnly, }: ArchbaseJsonSchemaEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FlexProps } from '@mantine/core';
|
|
2
|
+
import { JSONSchema7 } from '../../ArchbaseJsonSchemaEditor.types';
|
|
3
|
+
export interface DropPlusProps extends FlexProps {
|
|
4
|
+
itemPath: string;
|
|
5
|
+
parentPath: string;
|
|
6
|
+
parent: JSONSchema7;
|
|
7
|
+
item: JSONSchema7;
|
|
8
|
+
isReadOnly: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const DropPlus: ({ itemPath, parentPath, parent, item, isReadOnly, }: DropPlusProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSONSchema7 } from '../../ArchbaseJsonSchemaEditor.types';
|
|
2
|
+
export interface AdvancedSettingsProps {
|
|
3
|
+
path: string;
|
|
4
|
+
item: JSONSchema7;
|
|
5
|
+
}
|
|
6
|
+
export declare const AdvancedSettings: ({ path, item, }: AdvancedSettingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FlexProps } from '@mantine/core';
|
|
2
|
+
import { JSONSchema7 } from '../../ArchbaseJsonSchemaEditor.types';
|
|
3
|
+
export interface SchemaArrayProps extends FlexProps {
|
|
4
|
+
path: string;
|
|
5
|
+
jsonSchema: JSONSchema7;
|
|
6
|
+
isReadOnly: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const SchemaArray: ({ path, jsonSchema, isReadOnly, }: SchemaArrayProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FlexProps } from '@mantine/core';
|
|
2
|
+
import { JSONSchema7 } from '../../ArchbaseJsonSchemaEditor.types';
|
|
3
|
+
export interface SchemaItemProps extends FlexProps {
|
|
4
|
+
jsonSchema: JSONSchema7;
|
|
5
|
+
name: string;
|
|
6
|
+
itemPath: string;
|
|
7
|
+
parentPath: string;
|
|
8
|
+
showadvanced: (item: string) => void;
|
|
9
|
+
isReadOnly: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const SchemaItem: ({ name, showadvanced, jsonSchema, itemPath, parentPath, isReadOnly, }: SchemaItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSONSchema7 } from '../ArchbaseJsonSchemaEditor';
|
|
2
|
+
export interface SchemaObjectProps {
|
|
3
|
+
path: string;
|
|
4
|
+
jsonSchema: JSONSchema7;
|
|
5
|
+
isReadOnly: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const SchemaObject: ({ path, jsonSchema, isReadOnly, }: SchemaObjectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FlexProps } from '@mantine/core';
|
|
2
|
+
import { JSONSchema7 } from '../../ArchbaseJsonSchemaEditor.types';
|
|
3
|
+
export interface SchemaArrayProps extends FlexProps {
|
|
4
|
+
path: string;
|
|
5
|
+
jsonSchema: JSONSchema7;
|
|
6
|
+
isReadOnly: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const SchemaRoot: ({ path, jsonSchema, isReadOnly, }: SchemaArrayProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { JSONSchema7, JSONSchema7TypeName } from '../ArchbaseJsonSchemaEditor.types';
|
|
2
|
+
export declare const JSONPATH_JOIN_CHAR = ".";
|
|
3
|
+
export declare const isValidSchemaValidator: (schema: JSONSchema7) => boolean;
|
|
4
|
+
export declare enum PropertyType {
|
|
5
|
+
SIBLING = 0,
|
|
6
|
+
CHILD = 1
|
|
7
|
+
}
|
|
8
|
+
export declare const StringFormat: {
|
|
9
|
+
name: string;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const SchemaTypes: string[];
|
|
12
|
+
export declare enum DataType {
|
|
13
|
+
string = "string",
|
|
14
|
+
number = "number",
|
|
15
|
+
array = "arrray",
|
|
16
|
+
object = "object",
|
|
17
|
+
boolean = "boolean",
|
|
18
|
+
integer = "integer"
|
|
19
|
+
}
|
|
20
|
+
export declare const getDefaultSchema: (dataType: DataType, includeSchema?: boolean) => JSONSchema7;
|
|
21
|
+
export declare const random: () => string;
|
|
22
|
+
export declare const handleTypeChange: (newValue: JSONSchema7TypeName, rootChange: boolean) => JSONSchema7;
|
|
23
|
+
export declare const renameKeys: any;
|
|
24
|
+
export declare const deleteKey: (key: string, object: any) => any;
|
|
25
|
+
export declare const isValidEnum: (value: any) => boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
export interface ArchbaseListContextValue<T, ID> {
|
|
4
|
+
/** Indica se a lista esta desabilitada */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** Fonte de dados da lista (V1 ou V2) */
|
|
7
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
8
|
+
/** Function para notificar a lista que o item foi selecionado */
|
|
9
|
+
handleSelectItem?: (index: number, data: T) => void;
|
|
10
|
+
/** Id da lista pai */
|
|
11
|
+
ownerId?: any;
|
|
12
|
+
/** Cor de fundo do item ativo definido globalmente na lista */
|
|
13
|
+
activeBackgroundColor?: string;
|
|
14
|
+
/** Cor da fonte do item ativo definido globalmente na lista */
|
|
15
|
+
activeColor?: string;
|
|
16
|
+
/** Alinhamento do item na lista */
|
|
17
|
+
align?: 'left' | 'right' | 'center';
|
|
18
|
+
/** Tipo de lista */
|
|
19
|
+
type?: 'ordered' | 'unordered' | 'none';
|
|
20
|
+
/** Evento gerado quando o mouse está sobre um item */
|
|
21
|
+
onItemEnter?: (event: React.MouseEvent, data: any) => void;
|
|
22
|
+
/** Evento gerado quando o mouse sai de um item */
|
|
23
|
+
onItemLeave?: (event: React.MouseEvent, data: any) => void;
|
|
24
|
+
}
|
|
25
|
+
declare const ArchbaseListContext: React.Context<ArchbaseListContextValue<any, any>>;
|
|
26
|
+
export declare const ArchbaseListProvider: React.Provider<ArchbaseListContextValue<any, any>>;
|
|
27
|
+
export default ArchbaseListContext;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import React, { FocusEventHandler } from 'react';
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
export interface ArchbaseListCustomItemProps<T, _ID> {
|
|
4
|
+
/** Chave */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Id do item */
|
|
7
|
+
id: any;
|
|
8
|
+
/** Indicador se o Item está ativo */
|
|
9
|
+
active: boolean;
|
|
10
|
+
/** Indice dentro da lista */
|
|
11
|
+
index: number;
|
|
12
|
+
/** Registro contendo dados de uma linha na lista */
|
|
13
|
+
recordData: T;
|
|
14
|
+
/** Indicador se item da lista está desabilitado */
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ComponentDefinition {
|
|
18
|
+
type: React.ElementType;
|
|
19
|
+
props?: any;
|
|
20
|
+
}
|
|
21
|
+
export interface ArchbaseListProps<T, ID> {
|
|
22
|
+
/** Cor de fundo do item ativo */
|
|
23
|
+
activeBackgroundColor?: string;
|
|
24
|
+
/** Cor do item ativo */
|
|
25
|
+
activeColor?: string;
|
|
26
|
+
/** Alinhamento dos itens na lista */
|
|
27
|
+
align?: 'left' | 'right' | 'center';
|
|
28
|
+
/** Cor de fundo da lista */
|
|
29
|
+
backgroundColor?: string;
|
|
30
|
+
/** Cor do texto da lista */
|
|
31
|
+
color?: string;
|
|
32
|
+
/** Altura da lista */
|
|
33
|
+
height?: number | string;
|
|
34
|
+
/** Largura da lista */
|
|
35
|
+
width?: number | string;
|
|
36
|
+
/** desabilita todos os itens da lista */
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/** Indicador se os itens da lista devem ser justificados */
|
|
39
|
+
justify?: 'flex-start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
40
|
+
/** Evento que ocorre quando um item da lista é selecionado */
|
|
41
|
+
onSelectListItem?: (index: number, data: any) => void;
|
|
42
|
+
/** Mostra uma borda ao redor da lista */
|
|
43
|
+
withBorder?: boolean;
|
|
44
|
+
/** Cor da borda */
|
|
45
|
+
borderColor?: string;
|
|
46
|
+
/** Arredondamento dos cantos da borda */
|
|
47
|
+
borderRadius?: string | number | undefined;
|
|
48
|
+
/** Propriedade do objeto de dados que representa o texto a ser apresentado na lista */
|
|
49
|
+
dataFieldText?: string;
|
|
50
|
+
/** Propriedade do objeto de dados que representa o ID do item na lista para controle */
|
|
51
|
+
dataFieldId?: string;
|
|
52
|
+
/** Indice do item ativo na lista */
|
|
53
|
+
activeIndex?: number | undefined;
|
|
54
|
+
/** Evento gerado quando o mouse está sobre um item */
|
|
55
|
+
onItemEnter?: (event: React.MouseEvent, data: any) => void;
|
|
56
|
+
/** Evento gerado quando o mouse sai de um item */
|
|
57
|
+
onItemLeave?: (event: React.MouseEvent, data: any) => void;
|
|
58
|
+
/** Permite costumizar o style da lista */
|
|
59
|
+
style?: React.CSSProperties;
|
|
60
|
+
/** Id da lista */
|
|
61
|
+
id?: string;
|
|
62
|
+
/** Fonte de dados a ser usado pela lista (V1 ou V2) */
|
|
63
|
+
dataSource?: IArchbaseDataSourceBase<T>;
|
|
64
|
+
/** Filtro a ser aplicado na lista */
|
|
65
|
+
filter?: string;
|
|
66
|
+
/** Function a ser aplicada na lista para filtrar os itens */
|
|
67
|
+
onFilter?: (record: any) => boolean;
|
|
68
|
+
/** Definições do componente customizado a ser renderizado para um Item da lista */
|
|
69
|
+
component?: ComponentDefinition;
|
|
70
|
+
/** Somente componentes <ArchbaseListItem /> */
|
|
71
|
+
children?: React.ReactNode[];
|
|
72
|
+
/** Tipo de lista: ol,ul,div */
|
|
73
|
+
type?: 'ordered' | 'unordered' | 'none';
|
|
74
|
+
/** Incluir preenchimento à esquerda para compensar a lista do conteúdo principal */
|
|
75
|
+
withPadding?: boolean;
|
|
76
|
+
/** Tamanho da fonte do tema ou número para definir o valor */
|
|
77
|
+
size?: string | number | undefined;
|
|
78
|
+
/** Ícone que deve substituir o ponto do item da lista */
|
|
79
|
+
icon?: React.ReactNode;
|
|
80
|
+
/** Imagem ou source de uma imagem para mostrar no item da lista */
|
|
81
|
+
image?: React.ReactNode | string;
|
|
82
|
+
/** Arredondamento da Imagem */
|
|
83
|
+
imageRadius?: string | number | undefined;
|
|
84
|
+
/** Altura da imagem */
|
|
85
|
+
imageHeight?: number | string;
|
|
86
|
+
/** Largura da Imagem */
|
|
87
|
+
imageWidth?: number | string;
|
|
88
|
+
/** Espaçamento entre os valores do item */
|
|
89
|
+
spacing?: string | number | undefined;
|
|
90
|
+
/** Centralizar itens com ícone */
|
|
91
|
+
center?: boolean;
|
|
92
|
+
/** Lista horizontal */
|
|
93
|
+
horizontal?: boolean;
|
|
94
|
+
/** force update list */
|
|
95
|
+
update?: number;
|
|
96
|
+
/** Estilo de lista */
|
|
97
|
+
listStyleType?: React.CSSProperties['listStyleType'];
|
|
98
|
+
onFocusEnter?: FocusEventHandler<HTMLDivElement> | undefined;
|
|
99
|
+
onFocusExit?: FocusEventHandler<HTMLDivElement> | undefined;
|
|
100
|
+
}
|
|
101
|
+
export declare function ArchbaseList<T, ID>(props: ArchbaseListProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
export declare namespace ArchbaseList {
|
|
103
|
+
var displayName: string;
|
|
104
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ArchbaseListItemProps<T, ID> {
|
|
3
|
+
/** Indicador se o item está ativo(selecionado) */
|
|
4
|
+
active: boolean;
|
|
5
|
+
/** Cor de fundo do item */
|
|
6
|
+
activeBackgroundColor?: string;
|
|
7
|
+
/** Cor do item se ele estiver ativo */
|
|
8
|
+
activeColor?: string;
|
|
9
|
+
/** Alinhamento do texto do item */
|
|
10
|
+
align?: 'left' | 'right' | 'center';
|
|
11
|
+
/** Cor de fundo do item não selecionado */
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
/** Texto do item */
|
|
14
|
+
caption: string;
|
|
15
|
+
/** Cor da fonte do item */
|
|
16
|
+
color: string;
|
|
17
|
+
/** Filhos do item */
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
/** Indicador se o item está desabilitado */
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
/** Icone a ser apresentado ao lado esquerdo do item */
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
/** Id do item */
|
|
24
|
+
id: any;
|
|
25
|
+
/** Posição do item dentro da lista */
|
|
26
|
+
index: number;
|
|
27
|
+
/** Imagem a ser apresentada ao lado esquerdo do item */
|
|
28
|
+
image?: ReactNode | string;
|
|
29
|
+
/** Arredondamento da Imagem */
|
|
30
|
+
imageRadius?: string | number | undefined;
|
|
31
|
+
/** Altura da imagem */
|
|
32
|
+
imageHeight?: number | string;
|
|
33
|
+
/** Largura da Imagem */
|
|
34
|
+
imageWidth?: number | string;
|
|
35
|
+
/** Indicador se o conteúdo do item deve ser justificado */
|
|
36
|
+
justify?: 'flex-start' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
37
|
+
/** Indicador se o item deve ter uma borda */
|
|
38
|
+
withBorder?: boolean;
|
|
39
|
+
/** Cor da borda */
|
|
40
|
+
borderColor?: string;
|
|
41
|
+
/** Arredondamento dos cantos da borda */
|
|
42
|
+
borderRadius?: string | number | undefined;
|
|
43
|
+
/** Dados do item a ser apresentado */
|
|
44
|
+
recordData?: T;
|
|
45
|
+
/** Indicador se o item está visivel na lista */
|
|
46
|
+
visible?: boolean;
|
|
47
|
+
/** Espaçamento entre os valores do item */
|
|
48
|
+
spacing?: string | number | undefined;
|
|
49
|
+
}
|
|
50
|
+
export declare function ArchbaseListItem<T, ID>({ active, activeBackgroundColor, activeColor, backgroundColor, caption, color, disabled, icon, id, index, image, imageRadius, imageHeight, imageWidth, justify, children, recordData, spacing, }: ArchbaseListItemProps<T, ID>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare namespace ArchbaseListItem {
|
|
52
|
+
var defaultProps: {
|
|
53
|
+
align: string;
|
|
54
|
+
justify: boolean;
|
|
55
|
+
showBorder: boolean;
|
|
56
|
+
disabled: boolean;
|
|
57
|
+
};
|
|
58
|
+
var displayName: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ArchbaseListContext from './ArchbaseList.context';
|
|
2
|
+
export { ArchbaseList } from './ArchbaseList';
|
|
3
|
+
export type { ArchbaseListProps, ArchbaseListCustomItemProps } from './ArchbaseList';
|
|
4
|
+
export { ArchbaseListItem } from './ArchbaseListItem';
|
|
5
|
+
export type { ArchbaseListItemProps } from './ArchbaseListItem';
|
|
6
|
+
export type { ArchbaseListContextValue } from './ArchbaseList.context';
|
|
7
|
+
export { ArchbaseListContext };
|
|
8
|
+
export * from './treeview';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ArchbaseTreeNode } from './ArchbaseTreeView.types';
|
|
3
|
+
export interface ArchbaseTreeViewProps {
|
|
4
|
+
id: string;
|
|
5
|
+
selectable?: boolean;
|
|
6
|
+
color?: string;
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
borderColor?: string;
|
|
9
|
+
hoverColor?: string;
|
|
10
|
+
hoverBackgroundColor?: string;
|
|
11
|
+
focusedColor?: string;
|
|
12
|
+
focusedBackgroundColor?: string;
|
|
13
|
+
selectedColor?: string;
|
|
14
|
+
selectedBackgroundColor?: string | 'auto';
|
|
15
|
+
iconColor?: string;
|
|
16
|
+
iconBackgroundColor?: string;
|
|
17
|
+
enableLinks?: boolean;
|
|
18
|
+
highlightSelected?: boolean;
|
|
19
|
+
withBorder?: boolean;
|
|
20
|
+
showTags?: boolean;
|
|
21
|
+
selectChildrenOnParentSelect?: boolean;
|
|
22
|
+
singleSelect?: boolean;
|
|
23
|
+
nodes?: ArchbaseTreeNode[];
|
|
24
|
+
onDoubleClick?: (dataSource: ArchbaseTreeNode[], node: ArchbaseTreeNode) => void;
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
onFocusedNode?: (node: ArchbaseTreeNode) => void;
|
|
27
|
+
onLoosedFocusNode?: (focused: ArchbaseTreeNode) => void;
|
|
28
|
+
onSelectedNode?: (dataSource: ArchbaseTreeNode[], node: ArchbaseTreeNode, selectedNodes: ArchbaseTreeNode[]) => void;
|
|
29
|
+
onUnSelectedNode?: (dataSource: ArchbaseTreeNode[], node: ArchbaseTreeNode, selectedNodes: ArchbaseTreeNode[]) => void;
|
|
30
|
+
onRemovedNode?: (dataSource: ArchbaseTreeNode[]) => void;
|
|
31
|
+
onLoadDataSource?: (node: ArchbaseTreeNode) => Promise<ArchbaseTreeNode[]>;
|
|
32
|
+
onAddedNode?: (node: ArchbaseTreeNode, dataSource: ArchbaseTreeNode[]) => void;
|
|
33
|
+
onExpandedNode?: (dataSource: ArchbaseTreeNode[], expandedNodes: ArchbaseTreeNode[]) => void;
|
|
34
|
+
onCollapsedNode?: (dataSource: ArchbaseTreeNode[], expandedNodes: ArchbaseTreeNode[]) => void;
|
|
35
|
+
onChangedDataSource?: (dataSource: ArchbaseTreeNode[]) => void;
|
|
36
|
+
dataSource: ArchbaseTreeNode[];
|
|
37
|
+
focusedNode?: ArchbaseTreeNode;
|
|
38
|
+
style?: React.CSSProperties;
|
|
39
|
+
height?: string;
|
|
40
|
+
width?: string;
|
|
41
|
+
customRenderText?: (node: ArchbaseTreeNode) => ReactNode;
|
|
42
|
+
update?: number;
|
|
43
|
+
}
|
|
44
|
+
export declare const ArchbaseTreeView: React.FC<ArchbaseTreeViewProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ArchbaseTreeNode {
|
|
3
|
+
id: string;
|
|
4
|
+
nodes?: ArchbaseTreeNode[];
|
|
5
|
+
parentNode?: ArchbaseTreeNode;
|
|
6
|
+
isleaf?: boolean;
|
|
7
|
+
state: {
|
|
8
|
+
selected: boolean;
|
|
9
|
+
expanded: boolean;
|
|
10
|
+
loading: boolean;
|
|
11
|
+
};
|
|
12
|
+
text: string;
|
|
13
|
+
icon?: ReactNode;
|
|
14
|
+
color?: string;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
image?: string;
|
|
17
|
+
data?: any;
|
|
18
|
+
type?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ArchbaseTreeViewOptions {
|
|
21
|
+
selectable: boolean;
|
|
22
|
+
color: string;
|
|
23
|
+
iconColor: string;
|
|
24
|
+
iconBackgroundColor?: string;
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
borderColor: string;
|
|
27
|
+
hoverColor: string;
|
|
28
|
+
hoverBackgroundColor?: string;
|
|
29
|
+
highlightSelected: boolean;
|
|
30
|
+
selectedColor: string;
|
|
31
|
+
selectedBackgroundColor: string;
|
|
32
|
+
focusedColor: string;
|
|
33
|
+
focusedBackgroundColor: string;
|
|
34
|
+
id: string;
|
|
35
|
+
enableLinks: boolean;
|
|
36
|
+
withBorder: boolean;
|
|
37
|
+
showTags: boolean;
|
|
38
|
+
selectChildrenOnParentSelect?: boolean;
|
|
39
|
+
singleSelect?: boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ArchbaseTreeNode, ArchbaseTreeViewOptions } from './ArchbaseTreeView.types';
|
|
3
|
+
export interface ArchbaseTreeViewItemProps {
|
|
4
|
+
id: string;
|
|
5
|
+
node: ArchbaseTreeNode;
|
|
6
|
+
options: ArchbaseTreeViewOptions;
|
|
7
|
+
level: number;
|
|
8
|
+
onLoadDataSource: (id: string) => void;
|
|
9
|
+
onSelectedStatusChanged: (id: string, selected: boolean) => void;
|
|
10
|
+
onExpandedCollapsedChanged: (id: string, expanded: boolean) => void;
|
|
11
|
+
onFocusedChanged: (id: string) => void;
|
|
12
|
+
getFocused: () => ArchbaseTreeNode | undefined;
|
|
13
|
+
onNodeDoubleClicked: (id: string, selected: boolean) => void;
|
|
14
|
+
addNode: (id: string, text: string) => void;
|
|
15
|
+
removeNode: (id: string) => void;
|
|
16
|
+
customRenderText?: (node: ArchbaseTreeNode) => ReactNode;
|
|
17
|
+
update: number;
|
|
18
|
+
}
|
|
19
|
+
export declare const ArchbaseTreeViewItem: React.FC<ArchbaseTreeViewItemProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ArchbaseTreeViewProps } from './ArchbaseTreeView';
|
|
2
|
+
export type { ArchbaseTreeViewItemProps } from './ArchbaseTreeViewItem';
|
|
3
|
+
export { ArchbaseTreeView } from './ArchbaseTreeView';
|
|
4
|
+
export { ArchbaseTreeViewItem } from './ArchbaseTreeViewItem';
|
|
5
|
+
export type { ArchbaseTreeNode, ArchbaseTreeViewOptions } from './ArchbaseTreeView.types';
|