@arpproject/recrate 0.1.5 → 0.1.7-test
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/package.json +8 -8
- package/dist/app/App.d.ts +0 -2
- package/dist/app/EmbeddedComponent.d.ts +0 -3
- package/dist/app/index.d.ts +0 -0
- package/dist/app/lookup.d.ts +0 -82
- package/dist/crate-builder/CrateManager/contexts.d.ts +0 -6
- package/dist/crate-builder/CrateManager/crate-manager-benchmarking.spec.d.ts +0 -1
- package/dist/crate-builder/CrateManager/crate-manager-loading-exporting.spec.d.ts +0 -1
- package/dist/crate-builder/CrateManager/crate-manager-operations.spec.d.ts +0 -0
- package/dist/crate-builder/CrateManager/crate-manager.d.ts +0 -641
- package/dist/crate-builder/CrateManager/crate-manager.spec.d.ts +0 -1
- package/dist/crate-builder/CrateManager/lib.d.ts +0 -26
- package/dist/crate-builder/CrateManager/lib.spec.d.ts +0 -1
- package/dist/crate-builder/CrateManager/profile-manager.d.ts +0 -143
- package/dist/crate-builder/CrateManager/profile-manager.spec.d.ts +0 -1
- package/dist/crate-builder/CrateManager/schema-type-definitions.json.d.ts +0 -35125
- package/dist/crate-builder/CrateManager/validate-identifier.d.ts +0 -10
- package/dist/crate-builder/CrateManager/validate-identifier.spec.d.ts +0 -1
- package/dist/crate-builder/RenderEntity/Add.d.ts +0 -26
- package/dist/crate-builder/RenderEntity/AddControl.d.ts +0 -14
- package/dist/crate-builder/RenderEntity/AddControl.stories.d.ts +0 -29
- package/dist/crate-builder/RenderEntity/AutoComplete.d.ts +0 -12
- package/dist/crate-builder/RenderEntity/BulkAdd.d.ts +0 -10
- package/dist/crate-builder/RenderEntity/DeleteProperty.d.ts +0 -8
- package/dist/crate-builder/RenderEntity/DialogAddProperty.d.ts +0 -9
- package/dist/crate-builder/RenderEntity/DialogBrowseEntities.d.ts +0 -8
- package/dist/crate-builder/RenderEntity/DialogEditContext.d.ts +0 -8
- package/dist/crate-builder/RenderEntity/DialogPreviewCrate.d.ts +0 -7
- package/dist/crate-builder/RenderEntity/DialogSaveCrateAsTemplate.d.ts +0 -13
- package/dist/crate-builder/RenderEntity/DialogSaveEntityTemplate.d.ts +0 -14
- package/dist/crate-builder/RenderEntity/DisplayPropertyName.d.ts +0 -8
- package/dist/crate-builder/RenderEntity/DisplayPropertyName.stories.d.ts +0 -6
- package/dist/crate-builder/RenderEntity/EntityId.d.ts +0 -13
- package/dist/crate-builder/RenderEntity/EntityName.d.ts +0 -13
- package/dist/crate-builder/RenderEntity/EntityProperty.d.ts +0 -19
- package/dist/crate-builder/RenderEntity/EntityPropertyInstance.d.ts +0 -25
- package/dist/crate-builder/RenderEntity/EntityType.d.ts +0 -12
- package/dist/crate-builder/RenderEntity/ItemLink.d.ts +0 -14
- package/dist/crate-builder/RenderEntity/PaginateLinkedEntities.d.ts +0 -23
- package/dist/crate-builder/RenderEntity/PaginateLinkedEntities.stories.d.ts +0 -7
- package/dist/crate-builder/RenderEntity/PropertyHelp.d.ts +0 -6
- package/dist/crate-builder/RenderEntity/RenderControls.d.ts +0 -22
- package/dist/crate-builder/RenderEntity/RenderLinkedItem.d.ts +0 -20
- package/dist/crate-builder/RenderEntity/RenderPropertyHelp.d.ts +0 -6
- package/dist/crate-builder/RenderEntity/RenderReverseConnections.d.ts +0 -16
- package/dist/crate-builder/RenderEntity/RenderTypes.d.ts +0 -6
- package/dist/crate-builder/RenderEntity/Shell2.d.ts +0 -14
- package/dist/crate-builder/RenderEntity/UnlinkEntity.d.ts +0 -14
- package/dist/crate-builder/RenderEntity/auto-complete.lib.d.ts +0 -25
- package/dist/crate-builder/RenderEntity/keys.d.ts +0 -4
- package/dist/crate-builder/RenderEntity/layout.d.ts +0 -14
- package/dist/crate-builder/RenderEntity/layout.spec.d.ts +0 -1
- package/dist/crate-builder/Shell.d.ts +0 -40
- package/dist/crate-builder/editor-state.d.ts +0 -72
- package/dist/crate-builder/emotionCache.d.ts +0 -1
- package/dist/crate-builder/helpers.d.ts +0 -9
- package/dist/crate-builder/i18n.d.ts +0 -2
- package/dist/crate-builder/lib/validate-iri.d.ts +0 -6
- package/dist/crate-builder/locales/en.d.ts +0 -79
- package/dist/crate-builder/locales/hu.d.ts +0 -79
- package/dist/crate-builder/primitives/Boolean.d.ts +0 -11
- package/dist/crate-builder/primitives/Boolean.stories.d.ts +0 -7
- package/dist/crate-builder/primitives/Date.d.ts +0 -11
- package/dist/crate-builder/primitives/Date.stories.d.ts +0 -5
- package/dist/crate-builder/primitives/DateTime.d.ts +0 -11
- package/dist/crate-builder/primitives/DateTime.stories.d.ts +0 -5
- package/dist/crate-builder/primitives/Geo.d.ts +0 -12
- package/dist/crate-builder/primitives/Geo.stories.d.ts +0 -26
- package/dist/crate-builder/primitives/Map.SelectArea.d.ts +0 -9
- package/dist/crate-builder/primitives/Map.d.ts +0 -15
- package/dist/crate-builder/primitives/Map.stories.d.ts +0 -6
- package/dist/crate-builder/primitives/Number.d.ts +0 -16
- package/dist/crate-builder/primitives/Number.stories.d.ts +0 -10
- package/dist/crate-builder/primitives/Select.d.ts +0 -15
- package/dist/crate-builder/primitives/Select.stories.d.ts +0 -9
- package/dist/crate-builder/primitives/SelectObject.d.ts +0 -13
- package/dist/crate-builder/primitives/SelectObject.stories.d.ts +0 -5
- package/dist/crate-builder/primitives/SelectUrl.d.ts +0 -14
- package/dist/crate-builder/primitives/SelectUrl.stories.d.ts +0 -7
- package/dist/crate-builder/primitives/Text.d.ts +0 -19
- package/dist/crate-builder/primitives/Text.stories.d.ts +0 -13
- package/dist/crate-builder/primitives/Time.d.ts +0 -11
- package/dist/crate-builder/primitives/Time.stories.d.ts +0 -7
- package/dist/crate-builder/primitives/Url.d.ts +0 -11
- package/dist/crate-builder/primitives/Url.stories.d.ts +0 -7
- package/dist/crate-builder/primitives/Value.d.ts +0 -7
- package/dist/crate-builder/primitives/Value.stories.d.ts +0 -7
- package/dist/crate-builder/primitives/date-libs.d.ts +0 -1
- package/dist/crate-builder/property-definitions.d.ts +0 -78
- package/dist/crate-builder/store.d.ts +0 -8
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.html +0 -43
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/manifest.json +0 -25
- package/dist/marker-icon.png +0 -0
- package/dist/marker-shadow.png +0 -0
- package/dist/recrate.css +0 -1896
- package/dist/recrate.es.js +0 -117895
- package/dist/recrate.umd.js +0 -117913
- package/dist/robots.txt +0 -3
- package/dist/types.d.ts +0 -42
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type ValidateIdParams = {
|
|
2
|
-
id: string | undefined;
|
|
3
|
-
type: string | string[];
|
|
4
|
-
};
|
|
5
|
-
type ValidateIdResponse = {
|
|
6
|
-
isValid: boolean;
|
|
7
|
-
message?: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function validateId({ id, type }: ValidateIdParams): ValidateIdResponse;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface AddProps {
|
|
3
|
-
property: string;
|
|
4
|
-
definition: {
|
|
5
|
-
id: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
minLength?: number;
|
|
8
|
-
maxLength?: number;
|
|
9
|
-
regex?: string;
|
|
10
|
-
dateFormat?: string[];
|
|
11
|
-
minValue?: number;
|
|
12
|
-
maxValue?: number;
|
|
13
|
-
numberType?: string[];
|
|
14
|
-
values?: string[];
|
|
15
|
-
style?: 'dropdown' | 'radio' | 'checkbox';
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
embedded?: boolean;
|
|
19
|
-
placeholder?: string;
|
|
20
|
-
crateManager: any;
|
|
21
|
-
onCreateProperty: (data: any) => void;
|
|
22
|
-
onCreateEntity: (data: any) => void;
|
|
23
|
-
onLinkEntity: (data: any) => void;
|
|
24
|
-
}
|
|
25
|
-
declare const Add: React.FC<AddProps>;
|
|
26
|
-
export default Add;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface AddControlProps {
|
|
3
|
-
crateManager: any;
|
|
4
|
-
types: string | string[];
|
|
5
|
-
selectedType: string;
|
|
6
|
-
primitives: string[];
|
|
7
|
-
onAdd: (data: {
|
|
8
|
-
type: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
onBulkAdd: () => void;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const AddControl: React.FC<AddControlProps>;
|
|
14
|
-
export default AddControl;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react';
|
|
2
|
-
declare const _default: Meta;
|
|
3
|
-
export default _default;
|
|
4
|
-
interface AddControlProps {
|
|
5
|
-
crateManager: any;
|
|
6
|
-
types: string | string[];
|
|
7
|
-
selectedType: string;
|
|
8
|
-
primitives: string[];
|
|
9
|
-
onAdd: (data: {
|
|
10
|
-
type: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
onBulkAdd: () => void;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
help?: string;
|
|
15
|
-
multiple?: boolean;
|
|
16
|
-
embedded?: boolean;
|
|
17
|
-
values?: Array<string | {
|
|
18
|
-
'@id': string;
|
|
19
|
-
'@type': string;
|
|
20
|
-
name: string;
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
23
|
-
export declare const TextPrimitives: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AddControlProps>;
|
|
24
|
-
export declare const DateTimePrimitives: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AddControlProps>;
|
|
25
|
-
export declare const NumberPrimitives: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AddControlProps>;
|
|
26
|
-
export declare const SelectPrimitive: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AddControlProps>;
|
|
27
|
-
export declare const SelectUrlPrimitive: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AddControlProps>;
|
|
28
|
-
export declare const SelectObjectPrimitive: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AddControlProps>;
|
|
29
|
-
export declare const GeoPrimitives: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, AddControlProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface AutoCompleteProps {
|
|
3
|
-
type: string;
|
|
4
|
-
onLinkEntity: (data: {
|
|
5
|
-
json: any;
|
|
6
|
-
}) => void;
|
|
7
|
-
onCreateEntity: (data: {
|
|
8
|
-
json: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}
|
|
11
|
-
declare const AutoComplete: React.FC<AutoCompleteProps>;
|
|
12
|
-
export default AutoComplete;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface DialogAddPropertyProps {
|
|
3
|
-
entity: any;
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
open: boolean;
|
|
6
|
-
onAddPropertyPlaceholder: (property: string) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const DialogAddProperty: React.FC<DialogAddPropertyProps>;
|
|
9
|
-
export default DialogAddProperty;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface DialogBrowseEntitiesProps {
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
open: boolean;
|
|
5
|
-
onLoadEntity: (entity: any) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const DialogBrowseEntities: React.FC<DialogBrowseEntitiesProps>;
|
|
8
|
-
export default DialogBrowseEntities;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface DialogEditContextProps {
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
onUpdateContext: (context: any) => void;
|
|
5
|
-
open: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const DialogEditContext: React.FC<DialogEditContextProps>;
|
|
8
|
-
export default DialogEditContext;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface DialogSaveCrateAsTemplateProps {
|
|
3
|
-
entity: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
open: boolean;
|
|
8
|
-
onSaveCrateTemplate: (data: {
|
|
9
|
-
name: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const DialogSaveCrateAsTemplate: React.FC<DialogSaveCrateAsTemplateProps>;
|
|
13
|
-
export default DialogSaveCrateAsTemplate;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface DialogSaveEntityTemplateProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@id': string;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
open: boolean;
|
|
9
|
-
onSaveEntityTemplate: (data: {
|
|
10
|
-
resolveDepth: number;
|
|
11
|
-
}) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const DialogSaveEntityTemplate: React.FC<DialogSaveEntityTemplateProps>;
|
|
14
|
-
export default DialogSaveEntityTemplate;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as DisplayPropertyName } from './DisplayPropertyName';
|
|
3
|
-
declare const meta: Meta<typeof DisplayPropertyName>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof DisplayPropertyName>;
|
|
6
|
-
export declare const Default: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface EntityIdProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@id': string;
|
|
5
|
-
'@type': string | string[];
|
|
6
|
-
};
|
|
7
|
-
onUpdate: (data: {
|
|
8
|
-
property: string;
|
|
9
|
-
value: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const EntityId: React.FC<EntityIdProps>;
|
|
13
|
-
export default EntityId;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface EntityNameProps {
|
|
3
|
-
entity: {
|
|
4
|
-
name: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
};
|
|
7
|
-
onUpdate: (data: {
|
|
8
|
-
property: string;
|
|
9
|
-
value: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const EntityName: React.FC<EntityNameProps>;
|
|
13
|
-
export default EntityName;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface EntityPropertyProps {
|
|
3
|
-
entity: any;
|
|
4
|
-
property: string;
|
|
5
|
-
values: any[];
|
|
6
|
-
highlightRequired?: boolean;
|
|
7
|
-
savedProperty?: boolean;
|
|
8
|
-
onLoadEntity: (data: {
|
|
9
|
-
id: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
onCreateProperty: (data: any) => void;
|
|
12
|
-
onCreateEntity: (data: any) => void;
|
|
13
|
-
onLinkEntity: (data: any) => void;
|
|
14
|
-
onSaveProperty: (data: any) => void;
|
|
15
|
-
onDeleteProperty: (data: any) => void;
|
|
16
|
-
onUnlinkEntity: (data: any) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const EntityProperty: React.FC<EntityPropertyProps>;
|
|
19
|
-
export default EntityProperty;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface EntityPropertyInstanceProps {
|
|
3
|
-
property: string;
|
|
4
|
-
value: string | number | boolean | Date | any[];
|
|
5
|
-
idx: number;
|
|
6
|
-
definition: {
|
|
7
|
-
type: string;
|
|
8
|
-
value?: any;
|
|
9
|
-
values?: string[];
|
|
10
|
-
minValue?: number;
|
|
11
|
-
maxValue?: number;
|
|
12
|
-
numberType?: string[];
|
|
13
|
-
style?: 'dropdown' | 'radio' | 'checkbox';
|
|
14
|
-
minLength?: number;
|
|
15
|
-
maxLength?: number;
|
|
16
|
-
regex?: string;
|
|
17
|
-
dateFormat?: string[];
|
|
18
|
-
};
|
|
19
|
-
className?: string;
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
onSaveProperty: (data: any) => void;
|
|
22
|
-
onCreateEntity: (data: any) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare const EntityPropertyInstance: React.FC<EntityPropertyInstanceProps>;
|
|
25
|
-
export default EntityPropertyInstance;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface EntityTypeProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@type': string[];
|
|
5
|
-
};
|
|
6
|
-
onUpdateEntity: (data: {
|
|
7
|
-
property: string;
|
|
8
|
-
value: string[];
|
|
9
|
-
}) => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const EntityType: React.FC<EntityTypeProps>;
|
|
12
|
-
export default EntityType;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface ItemLinkProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@id': string;
|
|
5
|
-
'@type': string[];
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
|
-
onLoadEntity: (data: {
|
|
9
|
-
id: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const ItemLink: React.FC<ItemLinkProps>;
|
|
14
|
-
export default ItemLink;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface PaginateLinkedEntitiesProps {
|
|
3
|
-
entities: Array<{
|
|
4
|
-
idx: number;
|
|
5
|
-
value: {
|
|
6
|
-
'@id': string;
|
|
7
|
-
'@type': string[];
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
}>;
|
|
11
|
-
property: string;
|
|
12
|
-
readonly?: boolean;
|
|
13
|
-
className?: string;
|
|
14
|
-
onLoadEntity: (data: {
|
|
15
|
-
id: string;
|
|
16
|
-
}) => void;
|
|
17
|
-
onUnlinkEntity: (data: {
|
|
18
|
-
property: string;
|
|
19
|
-
tgtEntityId: string;
|
|
20
|
-
}) => void;
|
|
21
|
-
}
|
|
22
|
-
declare const PaginateLinkedEntities: React.FC<PaginateLinkedEntitiesProps>;
|
|
23
|
-
export default PaginateLinkedEntities;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as PaginateLinkedEntities } from './PaginateLinkedEntities';
|
|
3
|
-
declare const meta: Meta<typeof PaginateLinkedEntities>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof PaginateLinkedEntities>;
|
|
6
|
-
export declare const ValidEntityInputWithOneEntity: Story;
|
|
7
|
-
export declare const ValidEntityInputWithOneHundredEntities: Story;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface RenderControlsProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@id': string;
|
|
5
|
-
'@type': string[];
|
|
6
|
-
etype?: string;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
onLoadEntity: (data: {
|
|
10
|
-
id: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
onBack: () => void;
|
|
13
|
-
onForward: () => void;
|
|
14
|
-
onAddPropertyPlaceholder: (property: any) => void;
|
|
15
|
-
onDeleteEntity: (data: {
|
|
16
|
-
id: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
onSaveEntityTemplate: (data: any) => void;
|
|
19
|
-
onUpdateContext: (data: any) => void;
|
|
20
|
-
}
|
|
21
|
-
declare const RenderControls: React.FC<RenderControlsProps>;
|
|
22
|
-
export default RenderControls;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface RenderLinkedItemProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@id': string;
|
|
5
|
-
'@type': string[];
|
|
6
|
-
name?: string;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
};
|
|
9
|
-
property: string;
|
|
10
|
-
readonly: boolean;
|
|
11
|
-
onLoadEntity: (entity: {
|
|
12
|
-
id: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
onUnlinkEntity: (data: {
|
|
15
|
-
property: string;
|
|
16
|
-
tgtEntityId: string;
|
|
17
|
-
}) => void;
|
|
18
|
-
}
|
|
19
|
-
declare const RenderLinkedItem: React.FC<RenderLinkedItemProps>;
|
|
20
|
-
export default RenderLinkedItem;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface RenderReverseConnectionsProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@id': string;
|
|
5
|
-
'@type': string[];
|
|
6
|
-
'@reverse'?: {
|
|
7
|
-
[key: string]: any[];
|
|
8
|
-
};
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
onLoadEntity: (data: {
|
|
12
|
-
id: string;
|
|
13
|
-
}) => void;
|
|
14
|
-
}
|
|
15
|
-
declare const RenderReverseConnections: React.FC<RenderReverseConnectionsProps>;
|
|
16
|
-
export default RenderReverseConnections;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface RenderEntityProps {
|
|
3
|
-
entity: any;
|
|
4
|
-
onLoadEntity: (params: {
|
|
5
|
-
id: string;
|
|
6
|
-
updateState?: boolean;
|
|
7
|
-
}) => void;
|
|
8
|
-
onSaveCrate: () => void;
|
|
9
|
-
onSaveEntityTemplate: () => void;
|
|
10
|
-
onWarning: () => void;
|
|
11
|
-
onError: () => void;
|
|
12
|
-
}
|
|
13
|
-
declare const RenderEntity: React.ForwardRefExoticComponent<RenderEntityProps & React.RefAttributes<any>>;
|
|
14
|
-
export default RenderEntity;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface UnlinkEntityProps {
|
|
3
|
-
entity: {
|
|
4
|
-
'@id': string;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
onUnlinkEntity: (data: {
|
|
8
|
-
entity: {
|
|
9
|
-
'@id': string;
|
|
10
|
-
};
|
|
11
|
-
}) => void;
|
|
12
|
-
}
|
|
13
|
-
declare const UnlinkEntity: React.FC<UnlinkEntityProps>;
|
|
14
|
-
export default UnlinkEntity;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
interface LookupConfig {
|
|
2
|
-
config: any;
|
|
3
|
-
lookup: any;
|
|
4
|
-
crateManager: any;
|
|
5
|
-
}
|
|
6
|
-
interface LookupResult {
|
|
7
|
-
endpoint: string;
|
|
8
|
-
documents: any[];
|
|
9
|
-
}
|
|
10
|
-
export declare class Lookup {
|
|
11
|
-
private config;
|
|
12
|
-
private lookup;
|
|
13
|
-
private crateManager;
|
|
14
|
-
constructor({ config, lookup, crateManager }: LookupConfig);
|
|
15
|
-
getEntities(type: string, queryString: string): Promise<LookupResult>;
|
|
16
|
-
dataPacks(type: string, queryString: string): Promise<LookupResult>;
|
|
17
|
-
entities(type: string, queryString: string): Promise<LookupResult>;
|
|
18
|
-
entityTemplates(type: string, queryString: string): Promise<LookupResult>;
|
|
19
|
-
ror(queryString: string): Promise<LookupResult>;
|
|
20
|
-
}
|
|
21
|
-
export declare function awaitTimeout(delay: number, reason?: any): Promise<any>;
|
|
22
|
-
export declare function wrapPromise<T>(promise: Promise<T>, delay: number, reason?: {
|
|
23
|
-
reason: string;
|
|
24
|
-
}): Promise<T>;
|
|
25
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ProfileManagerType, ProfileLayoutGroup, NormalisedEntityDefinition } from '../types';
|
|
2
|
-
export declare function applyLayout({ configuration, entity, extraProperties, profileManager: pm, }: {
|
|
3
|
-
configuration: {
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
6
|
-
entity: NormalisedEntityDefinition;
|
|
7
|
-
extraProperties: string[];
|
|
8
|
-
profileManager: ProfileManagerType;
|
|
9
|
-
}): {
|
|
10
|
-
renderTabs: boolean;
|
|
11
|
-
missingRequiredData: boolean;
|
|
12
|
-
entity: NormalisedEntityDefinition;
|
|
13
|
-
tabs: ProfileLayoutGroup[];
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { default as React, JSX } from 'react';
|
|
2
|
-
import { CrateManagerType, ProfileManagerType } from './types';
|
|
3
|
-
export interface DescriboCrateBuilderProps {
|
|
4
|
-
crate?: CrateManagerType["crate"];
|
|
5
|
-
profile?: ProfileManagerType["profile"];
|
|
6
|
-
entityId?: string;
|
|
7
|
-
lookup?: any;
|
|
8
|
-
enableContextEditor?: boolean;
|
|
9
|
-
enableCratePreview?: boolean;
|
|
10
|
-
enableBrowseEntities?: boolean;
|
|
11
|
-
enableTemplateSave?: boolean;
|
|
12
|
-
enableReverseLinkBrowser?: boolean;
|
|
13
|
-
enableUrlMarkup?: boolean;
|
|
14
|
-
enableEntityTimestamps?: boolean;
|
|
15
|
-
purgeUnlinkedEntities?: boolean;
|
|
16
|
-
readonly?: boolean;
|
|
17
|
-
webComponent?: boolean;
|
|
18
|
-
tabLocation?: string;
|
|
19
|
-
showControls?: boolean;
|
|
20
|
-
language?: string;
|
|
21
|
-
resetTabOnEntityChange?: boolean;
|
|
22
|
-
resetTabOnProfileChange?: boolean;
|
|
23
|
-
onReady?: () => void;
|
|
24
|
-
onError?: (errors: any) => void;
|
|
25
|
-
onWarning?: (warnings: any) => void;
|
|
26
|
-
onNavigation?: (info: {
|
|
27
|
-
"@id": string;
|
|
28
|
-
"@type": string[];
|
|
29
|
-
name: string;
|
|
30
|
-
}) => void;
|
|
31
|
-
onSaveCrate?: (saveData: {
|
|
32
|
-
crate: any;
|
|
33
|
-
}) => void;
|
|
34
|
-
onSaveEntityTemplate?: (entity: any) => void;
|
|
35
|
-
}
|
|
36
|
-
export declare const ProfileManagerContext: React.Context<any>;
|
|
37
|
-
export declare const CrateManagerContext: React.Context<any>;
|
|
38
|
-
export declare const LookupsContext: React.Context<any>;
|
|
39
|
-
export declare function DescriboCrateBuilder(props: DescriboCrateBuilderProps): JSX.Element;
|
|
40
|
-
export default DescriboCrateBuilder;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
interface State {
|
|
2
|
-
id: string;
|
|
3
|
-
[key: string]: any;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @class
|
|
7
|
-
*
|
|
8
|
-
* EditorState
|
|
9
|
-
*
|
|
10
|
-
* A class to work with the internal editor state of the component
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare class EditorState {
|
|
14
|
-
history: State[];
|
|
15
|
-
current: number;
|
|
16
|
-
constructor();
|
|
17
|
-
/**
|
|
18
|
-
* Reset the internal state
|
|
19
|
-
*/
|
|
20
|
-
reset(): void;
|
|
21
|
-
/**
|
|
22
|
-
* Push a new state onto the history stack
|
|
23
|
-
*
|
|
24
|
-
* A new state is an entry with the id of the currently displayed entity.
|
|
25
|
-
*
|
|
26
|
-
* @param {Object} options
|
|
27
|
-
* @param {String} options.id - the id of the entity that is currently displayed
|
|
28
|
-
*/
|
|
29
|
-
push({ id }: State): void;
|
|
30
|
-
/**
|
|
31
|
-
* Go back through the state
|
|
32
|
-
*/
|
|
33
|
-
back(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Go forward through the state
|
|
36
|
-
*/
|
|
37
|
-
forward(): void;
|
|
38
|
-
/**
|
|
39
|
-
* Return the current entry
|
|
40
|
-
*/
|
|
41
|
-
latest(): State;
|
|
42
|
-
/**
|
|
43
|
-
* Update the current entry
|
|
44
|
-
*
|
|
45
|
-
* @param {Object} an object to be merged into the current entry
|
|
46
|
-
*/
|
|
47
|
-
update(newState: State): void;
|
|
48
|
-
/**
|
|
49
|
-
* Delete a property from the current entry
|
|
50
|
-
*
|
|
51
|
-
* @param {Object} object
|
|
52
|
-
* @param {String} object.property - the property to remove from the current entry
|
|
53
|
-
*/
|
|
54
|
-
deleteFromState({ property }: {
|
|
55
|
-
property: string;
|
|
56
|
-
}): void;
|
|
57
|
-
/**
|
|
58
|
-
* Replace an id in the state
|
|
59
|
-
*
|
|
60
|
-
* When we change an entity id, we also need to update the history
|
|
61
|
-
* so we don't try to navigate back to a non-existent entity
|
|
62
|
-
*
|
|
63
|
-
* @param {Object} object
|
|
64
|
-
* @param {String} object.id - the id to replace
|
|
65
|
-
* @param {String} object.newId - the replacement
|
|
66
|
-
*/
|
|
67
|
-
replaceId({ id, newId }: {
|
|
68
|
-
id: string;
|
|
69
|
-
newId: string;
|
|
70
|
-
}): void;
|
|
71
|
-
}
|
|
72
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createScopedCache(scope: string): import('@emotion/cache').EmotionCache;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare function validateProfile(profile: any): {
|
|
2
|
-
valid: false;
|
|
3
|
-
description: string;
|
|
4
|
-
data: import('ajv').ErrorObject<string, Record<string, any>, unknown>[] | null | undefined;
|
|
5
|
-
} | {
|
|
6
|
-
valid: true;
|
|
7
|
-
description?: undefined;
|
|
8
|
-
data?: undefined;
|
|
9
|
-
};
|