@guillotinaweb/react-gmi 0.34.0 → 0.34.2
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/README.md +120 -72
- package/dist/css/style.css +336 -334
- package/dist/css/style.css.map +1 -1
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +1821 -30
- package/dist/index.html +44 -0
- package/dist/logo.svg +35 -0
- package/dist/logo512.png +0 -0
- package/dist/manifest.json +25 -0
- package/dist/react-gmi.js +24141 -14138
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +24265 -14128
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/robots.txt +2 -0
- package/package.json +54 -53
- package/dist/actions/add_item.d.ts +0 -5
- package/dist/actions/change_pass.d.ts +0 -1
- package/dist/actions/copy_item.d.ts +0 -6
- package/dist/actions/copy_items.d.ts +0 -8
- package/dist/actions/index.d.ts +0 -2
- package/dist/actions/move_item.d.ts +0 -6
- package/dist/actions/move_items.d.ts +0 -8
- package/dist/actions/remove_item.d.ts +0 -6
- package/dist/actions/remove_items.d.ts +0 -7
- package/dist/components/Link.d.ts +0 -11
- package/dist/components/TdLink.d.ts +0 -11
- package/dist/components/behavior_view.d.ts +0 -8
- package/dist/components/behaviors/iattachment.d.ts +0 -11
- package/dist/components/behaviors/idublincore.d.ts +0 -10
- package/dist/components/behaviors/iimageattachment.d.ts +0 -9
- package/dist/components/behaviors/imultiattachment.d.ts +0 -11
- package/dist/components/behaviors/imultiimageattachment.d.ts +0 -11
- package/dist/components/behaviors/imultiimageorderedattachment.d.ts +0 -11
- package/dist/components/behaviors/iworkflow.d.ts +0 -1
- package/dist/components/context_toolbar.d.ts +0 -7
- package/dist/components/error_boundary.d.ts +0 -6
- package/dist/components/error_zone.d.ts +0 -16
- package/dist/components/fields/downloadField.d.ts +0 -11
- package/dist/components/fields/editComponent.d.ts +0 -15
- package/dist/components/fields/editableField.d.ts +0 -12
- package/dist/components/fields/renderField.d.ts +0 -34
- package/dist/components/flash.d.ts +0 -1
- package/dist/components/guillotina.d.ts +0 -12
- package/dist/components/index.d.ts +0 -56
- package/dist/components/input/button.d.ts +0 -12
- package/dist/components/input/checkbox.d.ts +0 -18
- package/dist/components/input/dropdown.d.ts +0 -15
- package/dist/components/input/email.d.ts +0 -10
- package/dist/components/input/form.d.ts +0 -13
- package/dist/components/input/form_builder.d.ts +0 -15
- package/dist/components/input/index.d.ts +0 -14
- package/dist/components/input/input.d.ts +0 -26
- package/dist/components/input/input_list.d.ts +0 -9
- package/dist/components/input/password.d.ts +0 -11
- package/dist/components/input/search_input.d.ts +0 -21
- package/dist/components/input/search_input_list.d.ts +0 -21
- package/dist/components/input/select.d.ts +0 -25
- package/dist/components/input/select_vocabulary.d.ts +0 -15
- package/dist/components/input/textarea.d.ts +0 -15
- package/dist/components/input/upload.d.ts +0 -8
- package/dist/components/item.d.ts +0 -22
- package/dist/components/layout.d.ts +0 -9
- package/dist/components/login.d.ts +0 -10
- package/dist/components/modal.d.ts +0 -24
- package/dist/components/notallowed.d.ts +0 -1
- package/dist/components/notfound.d.ts +0 -1
- package/dist/components/pagination.d.ts +0 -8
- package/dist/components/panel/actions.d.ts +0 -1
- package/dist/components/panel/addons.d.ts +0 -1
- package/dist/components/panel/behaviors.d.ts +0 -1
- package/dist/components/panel/index.d.ts +0 -4
- package/dist/components/panel/items.d.ts +0 -1
- package/dist/components/panel/permissions.d.ts +0 -7
- package/dist/components/panel/permissions_prinperm.d.ts +0 -17
- package/dist/components/panel/permissions_prinrole.d.ts +0 -17
- package/dist/components/panel/permissions_roleperm.d.ts +0 -17
- package/dist/components/panel/properties.d.ts +0 -1
- package/dist/components/path.d.ts +0 -1
- package/dist/components/properties_view.d.ts +0 -3
- package/dist/components/search_labels.d.ts +0 -5
- package/dist/components/search_options_labels.d.ts +0 -9
- package/dist/components/search_vocabulary_labels.d.ts +0 -6
- package/dist/components/selected_items_actions.d.ts +0 -49
- package/dist/components/tabs.d.ts +0 -13
- package/dist/components/ui/delete.d.ts +0 -8
- package/dist/components/ui/icon.d.ts +0 -7
- package/dist/components/ui/index.d.ts +0 -6
- package/dist/components/ui/loading.d.ts +0 -6
- package/dist/components/ui/notification.d.ts +0 -7
- package/dist/components/ui/table.d.ts +0 -8
- package/dist/components/ui/tag.d.ts +0 -9
- package/dist/components/widgets/index.d.ts +0 -1
- package/dist/components/widgets/tags.d.ts +0 -13
- package/dist/contexts/index.d.ts +0 -57
- package/dist/forms/base.d.ts +0 -12
- package/dist/forms/required_fields.d.ts +0 -11
- package/dist/forms/users.d.ts +0 -13
- package/dist/hooks/useClickAway.d.ts +0 -2
- package/dist/hooks/useConfig.d.ts +0 -19
- package/dist/hooks/useCrudContext.d.ts +0 -21
- package/dist/hooks/useInput.d.ts +0 -11
- package/dist/hooks/useLocation.d.ts +0 -6
- package/dist/hooks/useMountedState.d.ts +0 -1
- package/dist/hooks/useRegistry.d.ts +0 -90
- package/dist/hooks/useRemoteField.d.ts +0 -2
- package/dist/hooks/useSetState.d.ts +0 -6
- package/dist/hooks/useVocabulary.d.ts +0 -8
- package/dist/lib/auth.d.ts +0 -26
- package/dist/lib/client.d.ts +0 -61
- package/dist/lib/helpers.d.ts +0 -16
- package/dist/lib/processResponse.d.ts +0 -9
- package/dist/lib/rest.d.ts +0 -16
- package/dist/lib/search.d.ts +0 -2
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/validators.d.ts +0 -12
- package/dist/locales/generic_messages.d.ts +0 -248
- package/dist/models/index.d.ts +0 -17
- package/dist/models/sharing.d.ts +0 -12
- package/dist/react-gmi.umd.js +0 -14783
- package/dist/react-gmi.umd.js.map +0 -1
- package/dist/reducers/guillotina.d.ts +0 -35
- package/dist/types/global.d.ts +0 -17
- package/dist/types/guillotina.d.ts +0 -280
- package/dist/views/application.d.ts +0 -13
- package/dist/views/base.d.ts +0 -5
- package/dist/views/container.d.ts +0 -1
- package/dist/views/folder.d.ts +0 -1
- package/dist/views/groups.d.ts +0 -3
- package/dist/views/item.d.ts +0 -1
- package/dist/views/users.d.ts +0 -3
package/dist/robots.txt
ADDED
package/package.json
CHANGED
|
@@ -1,25 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"name": "@guillotinaweb/react-gmi",
|
|
3
|
+
"version": "0.34.2",
|
|
4
|
+
"description": "React framework for building Guillotina admin interfaces",
|
|
3
5
|
"repository": {
|
|
4
6
|
"type": "git",
|
|
5
7
|
"url": "git@github.com:guillotinaweb/guillotina_react.git"
|
|
6
8
|
},
|
|
9
|
+
"author": "Jordi Collell <jordic@gmail.com>",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/guillotinaweb/guillotina_react/",
|
|
12
|
+
"type": "module",
|
|
7
13
|
"files": [
|
|
8
14
|
"dist"
|
|
9
15
|
],
|
|
10
|
-
"source": "./src/guillo-gmi/index.ts",
|
|
11
16
|
"main": "./dist/react-gmi.js",
|
|
12
17
|
"module": "./dist/react-gmi.modern.js",
|
|
13
18
|
"types": "./dist/index.d.ts",
|
|
14
|
-
"unpkg": "./dist/react-gmi.umd.js",
|
|
15
19
|
"exports": {
|
|
16
20
|
".": {
|
|
17
21
|
"import": "./dist/react-gmi.modern.js",
|
|
18
22
|
"require": "./dist/react-gmi.js",
|
|
19
23
|
"types": "./dist/index.d.ts"
|
|
20
|
-
}
|
|
24
|
+
},
|
|
25
|
+
"./css/style.css": "./dist/css/style.css"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"dev": "vite --config playground/vite.config.ts",
|
|
29
|
+
"build": "vite build && pnpm build:css",
|
|
30
|
+
"build:css": "rm -rf ./dist/css && mkdir -p ./dist/css && sass ./src/guillo-gmi/scss/styles.sass ./dist/css/style.css",
|
|
31
|
+
"build:playground": "vite build --config playground/vite.config.ts --outDir ../playground/dist",
|
|
32
|
+
"preview": "vite preview --config playground/vite.config.ts",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"test:e2e": "pnpm -C e2e playwright:test",
|
|
35
|
+
"lint": "eslint src",
|
|
36
|
+
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
|
37
|
+
"format:check": "prettier --check \"src/**/*.{js,ts,tsx}\"",
|
|
38
|
+
"intl-extract": "formatjs extract 'src/**/*.js' --out-file src/guillo-gmi/locales/en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
|
|
39
|
+
"intl-compile-en": "formatjs compile src/guillo-gmi/locales/en.json --ast --out-file src/guillo-gmi/locales/compiled/en.json",
|
|
40
|
+
"intl-compile-ca": "formatjs compile src/guillo-gmi/locales/ca.json --ast --out-file src/guillo-gmi/locales/compiled/ca.json",
|
|
41
|
+
"intl-compile-es": "formatjs compile src/guillo-gmi/locales/es.json --ast --out-file src/guillo-gmi/locales/compiled/es.json",
|
|
42
|
+
"intl-compile": "pnpm intl-compile-en && pnpm intl-compile-es && pnpm intl-compile-ca",
|
|
43
|
+
"prepublishOnly": "pnpm build"
|
|
21
44
|
},
|
|
22
|
-
"name": "@guillotinaweb/react-gmi",
|
|
23
45
|
"dependencies": {
|
|
24
46
|
"brace": "0.11.1",
|
|
25
47
|
"bulma": "0.9.4",
|
|
@@ -31,50 +53,34 @@
|
|
|
31
53
|
"uuid": "9.0.1"
|
|
32
54
|
},
|
|
33
55
|
"peerDependencies": {
|
|
34
|
-
"react": "^16.12.0 || ^17.0.0 ||
|
|
35
|
-
"react-dom": "^16.12.0 || ^17.0.0 ||
|
|
56
|
+
"react": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
57
|
+
"react-dom": "^16.12.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
36
58
|
},
|
|
37
59
|
"devDependencies": {
|
|
38
|
-
"@babel/cli": "7.12.10",
|
|
39
|
-
"@babel/core": "7.12.10",
|
|
40
60
|
"@formatjs/cli": "^6.2.4",
|
|
41
61
|
"@formatjs/ts-transformer": "^3.13.11",
|
|
42
|
-
"@testing-library/jest-dom": "
|
|
43
|
-
"@testing-library/react": "
|
|
44
|
-
"@testing-library/user-event": "
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@types/
|
|
48
|
-
"
|
|
49
|
-
"eslint": "^
|
|
62
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
63
|
+
"@testing-library/react": "^14.2.1",
|
|
64
|
+
"@testing-library/user-event": "^14.5.2",
|
|
65
|
+
"@types/react": "^19.0.0",
|
|
66
|
+
"@types/react-beautiful-dnd": "^13.1.8",
|
|
67
|
+
"@types/react-dom": "^19.0.0",
|
|
68
|
+
"@types/uuid": "^9.0.8",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
70
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
71
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
72
|
+
"eslint": "^8.57.0",
|
|
50
73
|
"eslint-plugin-react": "^7.33.2",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"prettier": "
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
|
62
|
-
"format:tests": "prettier --write \"e2e/cypress/**/*.js\"",
|
|
63
|
-
"format:check": "prettier --check \"src/**/*.js\"",
|
|
64
|
-
"build": "yarn build:js && yarn build:css",
|
|
65
|
-
"build:js": "rm -rf ./dist && microbundle --jsx React.createElement --no-compress --sourcemap",
|
|
66
|
-
"build:css": "rm -rf ./dist/css && mkdir -p ./dist/css && sass ./src/guillo-gmi/scss/styles.sass ./dist/css/style.css",
|
|
67
|
-
"prepublish": "yarn build",
|
|
68
|
-
"test": "vitest run",
|
|
69
|
-
"lint": "eslint src",
|
|
70
|
-
"intl-extract": "formatjs extract 'src/**/*.js' --out-file src/guillo-gmi/locales/en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
|
|
71
|
-
"intl-compile-en": "formatjs compile src/guillo-gmi/locales/en.json --ast --out-file src/guillo-gmi/locales/compiled/en.json",
|
|
72
|
-
"intl-compile-ca": "formatjs compile src/guillo-gmi/locales/ca.json --ast --out-file src/guillo-gmi/locales/compiled/ca.json",
|
|
73
|
-
"intl-compile-es": "formatjs compile src/guillo-gmi/locales/es.json --ast --out-file src/guillo-gmi/locales/compiled/es.json",
|
|
74
|
-
"intl-compile": "npm run intl-compile-en && npm run intl-compile-es && npm run intl-compile-ca"
|
|
75
|
-
},
|
|
76
|
-
"eslintConfig": {
|
|
77
|
-
"extends": "react-app"
|
|
74
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
75
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
76
|
+
"prettier": "^3.2.5",
|
|
77
|
+
"react": "^19.0.0",
|
|
78
|
+
"react-dom": "^19.0.0",
|
|
79
|
+
"sass": "^1.71.1",
|
|
80
|
+
"typescript": "^5.4.5",
|
|
81
|
+
"vite": "^5.4.0",
|
|
82
|
+
"vite-plugin-dts": "^4.0.0",
|
|
83
|
+
"vitest": "^2.0.0"
|
|
78
84
|
},
|
|
79
85
|
"browserslist": {
|
|
80
86
|
"production": [
|
|
@@ -88,19 +94,14 @@
|
|
|
88
94
|
"last 1 safari version"
|
|
89
95
|
]
|
|
90
96
|
},
|
|
91
|
-
"husky": {
|
|
92
|
-
"hooks": {
|
|
93
|
-
"pre-commit": "prettier --write \"src/**/*.js\""
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
97
|
"prettier": {
|
|
97
98
|
"trailingComma": "es5",
|
|
98
99
|
"tabWidth": 2,
|
|
99
100
|
"semi": false,
|
|
100
101
|
"singleQuote": true
|
|
101
102
|
},
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
"packageManager": "pnpm@9.15.0",
|
|
104
|
+
"engines": {
|
|
105
|
+
"node": ">=20"
|
|
106
|
+
}
|
|
106
107
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ChangePassword(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ItemModel } from '../models';
|
|
2
|
-
import { GuillotinaCommonObject } from '../types/guillotina';
|
|
3
|
-
import { SearchItem } from '../types/guillotina';
|
|
4
|
-
interface Props {
|
|
5
|
-
items: Array<ItemModel<SearchItem | GuillotinaCommonObject>>;
|
|
6
|
-
}
|
|
7
|
-
export declare function CopyItems(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
package/dist/actions/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ItemModel } from '../models';
|
|
2
|
-
import { GuillotinaCommonObject } from '../types/guillotina';
|
|
3
|
-
import { SearchItem } from '../types/guillotina';
|
|
4
|
-
interface Props {
|
|
5
|
-
items: ItemModel<SearchItem | GuillotinaCommonObject>[];
|
|
6
|
-
}
|
|
7
|
-
export declare function MoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ItemModel } from '../models';
|
|
2
|
-
import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
|
|
3
|
-
interface Props {
|
|
4
|
-
items: ItemModel<SearchItem | GuillotinaCommonObject>[];
|
|
5
|
-
}
|
|
6
|
-
export declare function RemoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ItemModel } from '../models';
|
|
3
|
-
import { GuillotinaCommonObject, SearchItem } from '../types/guillotina';
|
|
4
|
-
interface Props {
|
|
5
|
-
aRef?: React.Ref<HTMLAnchorElement>;
|
|
6
|
-
model: ItemModel<SearchItem | GuillotinaCommonObject>;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function Link({ aRef, model, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ItemModel } from '../models';
|
|
3
|
-
import { IndexSignature } from '../types/global';
|
|
4
|
-
import { SearchOrCommonObject } from '../types/guillotina';
|
|
5
|
-
interface Props<T extends SearchOrCommonObject = SearchOrCommonObject> {
|
|
6
|
-
model: ItemModel<T>;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
style?: IndexSignature;
|
|
9
|
-
}
|
|
10
|
-
export declare function TdLink({ model, children, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GuillotinaCommonObject, GuillotinaSchema } from '../types/guillotina';
|
|
2
|
-
interface Props {
|
|
3
|
-
context: GuillotinaCommonObject;
|
|
4
|
-
schema: GuillotinaSchema;
|
|
5
|
-
}
|
|
6
|
-
export declare function BehaviorsView({ context, schema }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare function BehaviorNotImplemented(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GuillotinaFile, GuillotinaSchemaProperty } from '../../types/guillotina';
|
|
2
|
-
interface Props {
|
|
3
|
-
properties: {
|
|
4
|
-
file: GuillotinaSchemaProperty;
|
|
5
|
-
};
|
|
6
|
-
values: {
|
|
7
|
-
file: GuillotinaFile;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export declare function IAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
|
|
2
|
-
interface Props {
|
|
3
|
-
properties: GuillotinaSchemaProperties;
|
|
4
|
-
values: {
|
|
5
|
-
image: GuillotinaFile;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export declare function IImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
|
|
2
|
-
interface Props {
|
|
3
|
-
properties: GuillotinaSchemaProperties;
|
|
4
|
-
values: {
|
|
5
|
-
files: {
|
|
6
|
-
[key: string]: GuillotinaFile;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export declare function IMultiAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
|
|
2
|
-
interface Props {
|
|
3
|
-
properties: GuillotinaSchemaProperties;
|
|
4
|
-
values: {
|
|
5
|
-
images: {
|
|
6
|
-
[key: string]: GuillotinaFile;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export declare function IMultiImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
|
|
2
|
-
interface Props {
|
|
3
|
-
properties: GuillotinaSchemaProperties;
|
|
4
|
-
values: {
|
|
5
|
-
images: {
|
|
6
|
-
[key: string]: GuillotinaFile;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
export declare function IMultiImageOrderedAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function IWorkflow(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function CreateButton(): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
-
interface Props {
|
|
4
|
-
AddButton?: React.FC;
|
|
5
|
-
}
|
|
6
|
-
export declare function ContextToolbar({ AddButton }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
interface Props {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
id?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const ErrorZone: {
|
|
9
|
-
({ children, id, className }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
propTypes: {
|
|
11
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
-
id: PropTypes.Requireable<string>;
|
|
13
|
-
className: PropTypes.Requireable<string>;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default ErrorZone;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GuillotinaSchemaProperty } from '../../types/guillotina';
|
|
3
|
-
import { EditableFieldValue } from '../../types/global';
|
|
4
|
-
interface Props {
|
|
5
|
-
schema: GuillotinaSchemaProperty;
|
|
6
|
-
val: EditableFieldValue;
|
|
7
|
-
setValue: (value: EditableFieldValue) => void;
|
|
8
|
-
dataTest?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
id?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const EditComponent: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
|
|
15
|
-
export default EditComponent;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { EditableFieldValue } from '../../types/global';
|
|
2
|
-
import { GuillotinaSchemaProperty } from '../../types/guillotina';
|
|
3
|
-
interface Props {
|
|
4
|
-
field: string;
|
|
5
|
-
value: EditableFieldValue;
|
|
6
|
-
ns?: string;
|
|
7
|
-
schema?: GuillotinaSchemaProperty;
|
|
8
|
-
modifyContent?: boolean;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare function EditableField({ field, value, ns, schema, modifyContent, required, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GuillotinaSchemaProperty } from '../../types/guillotina';
|
|
3
|
-
import { EditableFieldValue } from '../../types/global';
|
|
4
|
-
type PlainType = string | boolean | number;
|
|
5
|
-
interface RenderFieldProps {
|
|
6
|
-
value: EditableFieldValue;
|
|
7
|
-
Widget?: React.ComponentType<{
|
|
8
|
-
value: EditableFieldValue;
|
|
9
|
-
schema?: GuillotinaSchemaProperty;
|
|
10
|
-
modifyContent?: boolean;
|
|
11
|
-
}>;
|
|
12
|
-
schema?: GuillotinaSchemaProperty;
|
|
13
|
-
}
|
|
14
|
-
export declare function RenderField({ value, Widget, schema }: RenderFieldProps): import("react/jsx-runtime").JSX.Element | import("react/jsx-runtime").JSX.Element[] | PlainType;
|
|
15
|
-
interface SearchRenderFieldProps {
|
|
16
|
-
schema: GuillotinaSchemaProperty;
|
|
17
|
-
value: string | string[];
|
|
18
|
-
modifyContent: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const SearchRenderField: ({ schema, value, modifyContent, }: SearchRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
interface VocabularyRenderFieldProps {
|
|
22
|
-
schema: GuillotinaSchemaProperty;
|
|
23
|
-
value: string | string[];
|
|
24
|
-
modifyContent: boolean;
|
|
25
|
-
}
|
|
26
|
-
export declare const VocabularyRenderField: ({ schema, value, modifyContent, }: VocabularyRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
interface RenderFieldComponentProps {
|
|
28
|
-
schema: GuillotinaSchemaProperty;
|
|
29
|
-
field: string;
|
|
30
|
-
val: EditableFieldValue;
|
|
31
|
-
modifyContent?: boolean;
|
|
32
|
-
}
|
|
33
|
-
export declare function RenderFieldComponent({ schema, field, val, modifyContent, }: RenderFieldComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function Flash(): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IConfig } from '../hooks/useConfig';
|
|
2
|
-
import { IRegistry } from '../hooks/useRegistry';
|
|
3
|
-
import { Auth } from '../lib/auth';
|
|
4
|
-
interface GuillotinaProps {
|
|
5
|
-
auth: Auth;
|
|
6
|
-
locale: string;
|
|
7
|
-
url: string;
|
|
8
|
-
config?: Partial<IConfig>;
|
|
9
|
-
registry: Partial<IRegistry>;
|
|
10
|
-
}
|
|
11
|
-
export declare function Guillotina({ auth, locale, ...props }: GuillotinaProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export * from './input/button';
|
|
2
|
-
export * from './input/checkbox';
|
|
3
|
-
export * from './input/email';
|
|
4
|
-
export * from './input/form_builder';
|
|
5
|
-
export * from './input/form';
|
|
6
|
-
export * from './input/input';
|
|
7
|
-
export * from './input/password';
|
|
8
|
-
export * from './input/select';
|
|
9
|
-
export * from './input/select_vocabulary';
|
|
10
|
-
export * from './input/upload';
|
|
11
|
-
export * from './input/textarea';
|
|
12
|
-
export * from './input/search_input';
|
|
13
|
-
export * from './input/search_input_list';
|
|
14
|
-
export * from './input/input_list';
|
|
15
|
-
export * from './input/dropdown';
|
|
16
|
-
export * from './fields/editableField';
|
|
17
|
-
export * from './fields/renderField';
|
|
18
|
-
export * from './fields/downloadField';
|
|
19
|
-
export * from './fields/editComponent';
|
|
20
|
-
export * from './behaviors/iattachment';
|
|
21
|
-
export * from './behaviors/imultiattachment';
|
|
22
|
-
export * from './behaviors/iimageattachment';
|
|
23
|
-
export * from './behaviors/imultiimageattachment';
|
|
24
|
-
export * from './behaviors/imultiimageorderedattachment';
|
|
25
|
-
export * from './behaviors/iworkflow';
|
|
26
|
-
export * from './panel/actions';
|
|
27
|
-
export * from './panel/addons';
|
|
28
|
-
export * from './panel/behaviors';
|
|
29
|
-
export * from './panel/items';
|
|
30
|
-
export * from './panel/properties';
|
|
31
|
-
export * from './panel/permissions';
|
|
32
|
-
export * from './panel/permissions_prinperm';
|
|
33
|
-
export * from './panel/permissions_prinrole';
|
|
34
|
-
export * from './panel/permissions_roleperm';
|
|
35
|
-
export * from './ui';
|
|
36
|
-
export * from './widgets';
|
|
37
|
-
export * from './behavior_view';
|
|
38
|
-
export * from './properties_view';
|
|
39
|
-
export * from './context_toolbar';
|
|
40
|
-
export * from './error_zone';
|
|
41
|
-
export * from './flash';
|
|
42
|
-
export * from './guillotina';
|
|
43
|
-
export * from './item';
|
|
44
|
-
export * from './Link';
|
|
45
|
-
export * from './layout';
|
|
46
|
-
export * from './login';
|
|
47
|
-
export * from './modal';
|
|
48
|
-
export * from './notallowed';
|
|
49
|
-
export * from './pagination';
|
|
50
|
-
export * from './path';
|
|
51
|
-
export * from './search_labels';
|
|
52
|
-
export * from './search_options_labels';
|
|
53
|
-
export * from './search_vocabulary_labels';
|
|
54
|
-
export * from './tabs';
|
|
55
|
-
export * from './selected_items_actions';
|
|
56
|
-
export * from './TdLink';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface Props {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
-
type?: 'submit' | 'reset' | 'button';
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
dataTest?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const Button: ({ children, className, onClick, type, loading, disabled, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface Props {
|
|
3
|
-
className?: string;
|
|
4
|
-
classNameInput?: string;
|
|
5
|
-
loading?: boolean;
|
|
6
|
-
indeterminate?: boolean;
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
borderColor?: string;
|
|
9
|
-
dataTest?: string;
|
|
10
|
-
onChange: (value: boolean) => void;
|
|
11
|
-
id?: string;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
checked?: boolean;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const Checkbox: ({ id, className, classNameInput, loading, disabled, indeterminate, checked, children, placeholder, onChange, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface Props {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
id?: string;
|
|
6
|
-
isRight?: boolean;
|
|
7
|
-
onChange: (value: string) => void;
|
|
8
|
-
optionDisabledWhen?: (option: any) => boolean;
|
|
9
|
-
options: {
|
|
10
|
-
text: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
}
|
|
14
|
-
export default function Dropdown({ children, disabled, id, isRight, onChange, optionDisabledWhen, options, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface Props {
|
|
2
|
-
value?: string;
|
|
3
|
-
dataTest?: string;
|
|
4
|
-
onChange: (value: string) => void;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const EmailInput: ({ value, dataTest, placeholder, id, onChange, required, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface Props {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
6
|
-
onReset?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
7
|
-
autoComplete?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
error?: string;
|
|
10
|
-
dataTest?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const Form: ({ children, className, onSubmit, onReset, autoComplete, title, error, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IndexSignature } from '../../types/global';
|
|
3
|
-
import { GuillotinaSchema } from '../../types/guillotina';
|
|
4
|
-
interface Props {
|
|
5
|
-
schema: GuillotinaSchema;
|
|
6
|
-
formData?: IndexSignature;
|
|
7
|
-
onSubmit: (formData: IndexSignature, initialData: IndexSignature) => void;
|
|
8
|
-
actionName: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
exclude?: string[];
|
|
11
|
-
remotes?: IndexSignature;
|
|
12
|
-
submitButton?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function FormBuilder({ schema, formData, onSubmit, actionName, children, exclude, remotes, submitButton, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './button';
|
|
2
|
-
export * from './checkbox';
|
|
3
|
-
export * from './email';
|
|
4
|
-
export * from './form';
|
|
5
|
-
export * from './form_builder';
|
|
6
|
-
export * from './input';
|
|
7
|
-
export * from './password';
|
|
8
|
-
export * from './select';
|
|
9
|
-
export * from './select_vocabulary';
|
|
10
|
-
export * from './search_input';
|
|
11
|
-
export * from './search_input_list';
|
|
12
|
-
export * from './input_list';
|
|
13
|
-
export * from './textarea';
|
|
14
|
-
export * from './upload';
|