@guillotinaweb/react-gmi 0.18.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/CHANGELOG.md +210 -0
- package/LICENSE +23 -0
- package/README.md +126 -0
- package/dist/actions/add_item.d.ts +1 -0
- package/dist/actions/change_pass.d.ts +1 -0
- package/dist/actions/copy_item.d.ts +1 -0
- package/dist/actions/copy_items.d.ts +1 -0
- package/dist/actions/index.d.ts +2 -0
- package/dist/actions/move_item.d.ts +1 -0
- package/dist/actions/move_items.d.ts +1 -0
- package/dist/actions/remove_item.d.ts +1 -0
- package/dist/actions/remove_items.d.ts +1 -0
- package/dist/components/Link.d.ts +6 -0
- package/dist/components/TdLink.d.ts +5 -0
- package/dist/components/behavior_view.d.ts +5 -0
- package/dist/components/behaviors/iattachment.d.ts +4 -0
- package/dist/components/behaviors/idublincore.d.ts +4 -0
- package/dist/components/behaviors/imultiattachment.d.ts +4 -0
- package/dist/components/context_toolbar.d.ts +5 -0
- package/dist/components/error_boundary.d.ts +5 -0
- package/dist/components/error_zone.d.ts +13 -0
- package/dist/components/fields/downloadField.d.ts +3 -0
- package/dist/components/fields/editComponent.d.ts +2 -0
- package/dist/components/fields/editableField.d.ts +10 -0
- package/dist/components/fields/renderField.d.ts +4 -0
- package/dist/components/flash.d.ts +1 -0
- package/dist/components/guillotina.d.ts +4 -0
- package/dist/components/index.d.ts +48 -0
- package/dist/components/input/button.d.ts +10 -0
- package/dist/components/input/checkbox.d.ts +17 -0
- package/dist/components/input/dropdown.d.ts +10 -0
- package/dist/components/input/email.d.ts +5 -0
- package/dist/components/input/form.d.ts +20 -0
- package/dist/components/input/form_builder.d.ts +12 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/input.d.ts +1 -0
- package/dist/components/input/input_list.d.ts +1 -0
- package/dist/components/input/password.d.ts +4 -0
- package/dist/components/input/search_input.d.ts +25 -0
- package/dist/components/input/select.d.ts +1 -0
- package/dist/components/input/textarea.d.ts +1 -0
- package/dist/components/input/upload.d.ts +5 -0
- package/dist/components/item.d.ts +13 -0
- package/dist/components/layout.d.ts +5 -0
- package/dist/components/login.d.ts +14 -0
- package/dist/components/modal.d.ts +14 -0
- package/dist/components/notallowed.d.ts +1 -0
- package/dist/components/notfound.d.ts +1 -0
- package/dist/components/pagination.d.ts +6 -0
- package/dist/components/panel/actions.d.ts +24 -0
- package/dist/components/panel/addons.d.ts +1 -0
- package/dist/components/panel/behaviors.d.ts +1 -0
- package/dist/components/panel/index.d.ts +1 -0
- package/dist/components/panel/items.d.ts +1 -0
- package/dist/components/panel/permissions.d.ts +5 -0
- package/dist/components/panel/permissions_prinperm.d.ts +6 -0
- package/dist/components/panel/permissions_prinrole.d.ts +6 -0
- package/dist/components/panel/permissions_roleperm.d.ts +6 -0
- package/dist/components/panel/properties.d.ts +1 -0
- package/dist/components/panel/requester.d.ts +1 -0
- package/dist/components/path.d.ts +1 -0
- package/dist/components/properties_view.d.ts +2 -0
- package/dist/components/searchLabels.d.ts +1 -0
- package/dist/components/selected_items_actions.d.ts +32 -0
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/ui/delete.d.ts +5 -0
- package/dist/components/ui/icon.d.ts +5 -0
- package/dist/components/ui/index.d.ts +6 -0
- package/dist/components/ui/loading.d.ts +3 -0
- package/dist/components/ui/notification.d.ts +4 -0
- package/dist/components/ui/table.d.ts +5 -0
- package/dist/components/ui/tag.d.ts +6 -0
- package/dist/components/widgets/index.d.ts +1 -0
- package/dist/components/widgets/tags.d.ts +8 -0
- package/dist/contexts/index.d.ts +13 -0
- package/dist/css/style.css +7792 -0
- package/dist/forms/base.d.ts +7 -0
- package/dist/forms/required_fields.d.ts +8 -0
- package/dist/forms/users.d.ts +5 -0
- package/dist/hooks/useAsync.d.ts +1 -0
- package/dist/hooks/useAsyncFn.d.ts +3 -0
- package/dist/hooks/useClickAway.d.ts +1 -0
- package/dist/hooks/useConfig.d.ts +15 -0
- package/dist/hooks/useCrudContext.d.ts +1 -0
- package/dist/hooks/useInput.d.ts +7 -0
- package/dist/hooks/useLocation.d.ts +1 -0
- package/dist/hooks/useMountedState.d.ts +1 -0
- package/dist/hooks/useRegistry.d.ts +90 -0
- package/dist/hooks/useRemoteField.d.ts +1 -0
- package/dist/hooks/useSetState.d.ts +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/lib/auth.d.ts +31 -0
- package/dist/lib/client.d.ts +49 -0
- package/dist/lib/helpers.d.ts +7 -0
- package/dist/lib/rest.d.ts +21 -0
- package/dist/lib/search.d.ts +2 -0
- package/dist/lib/search.test.d.ts +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/validators.d.ts +12 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/sharing.d.ts +9 -0
- package/dist/react-gmi.esm.js +7521 -0
- package/dist/react-gmi.esm.js.map +1 -0
- package/dist/react-gmi.js +7658 -0
- package/dist/react-gmi.js.map +1 -0
- package/dist/react-gmi.modern.js +6163 -0
- package/dist/react-gmi.modern.js.map +1 -0
- package/dist/react-gmi.umd.js +7660 -0
- package/dist/react-gmi.umd.js.map +1 -0
- package/dist/reducers/guillotina.d.ts +19 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/views/application.d.ts +5 -0
- package/dist/views/base.d.ts +1 -0
- package/dist/views/container.d.ts +1 -0
- package/dist/views/folder.d.ts +1 -0
- package/dist/views/groups.d.ts +3 -0
- package/dist/views/item.d.ts +1 -0
- package/dist/views/users.d.ts +3 -0
- package/package.json +78 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
|
|
2
|
+
0.18.0
|
|
3
|
+
------
|
|
4
|
+
- Add itemsColumn in registry to allow configure columns in items panel by type #142
|
|
5
|
+
|
|
6
|
+
0.17.0
|
|
7
|
+
------
|
|
8
|
+
- Search: use always search function and allow to configure depth param #133
|
|
9
|
+
|
|
10
|
+
0.16.0
|
|
11
|
+
------
|
|
12
|
+
- Add GMI project #97
|
|
13
|
+
- Add search engine configuration #97
|
|
14
|
+
|
|
15
|
+
0.15.1
|
|
16
|
+
------
|
|
17
|
+
- Normalize upload file name #129
|
|
18
|
+
|
|
19
|
+
0.15.0
|
|
20
|
+
------
|
|
21
|
+
- Make more generic the search input field #125
|
|
22
|
+
|
|
23
|
+
0.14.1
|
|
24
|
+
------
|
|
25
|
+
- Allow open new tab navigation #116
|
|
26
|
+
- Fix microbundle bundle bug #115
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
0.14.0
|
|
30
|
+
------
|
|
31
|
+
- Add key as fallback to value.title + hide table if all properties are ignored + update docs (#109)
|
|
32
|
+
- e2e cypress retry failed tests (#110)
|
|
33
|
+
- Implement refresh without spinner (transparent=true) (#111)
|
|
34
|
+
- Add data-test property in createBtn context tool bar (#113)
|
|
35
|
+
- Add datatest search input (#114)
|
|
36
|
+
|
|
37
|
+
0.13.1
|
|
38
|
+
------
|
|
39
|
+
- Add classNameInput prop in checkbox and modify placeholder input_list (#106)
|
|
40
|
+
- Add error message in search_input (#106)
|
|
41
|
+
- Add loading in add item action (#106)
|
|
42
|
+
|
|
43
|
+
0.13.0
|
|
44
|
+
------
|
|
45
|
+
- Add filter type in items panel. (#105)
|
|
46
|
+
|
|
47
|
+
0.12.2
|
|
48
|
+
------
|
|
49
|
+
- Fix open new tab downloadFile, firefox (#104)
|
|
50
|
+
|
|
51
|
+
0.12.1
|
|
52
|
+
------
|
|
53
|
+
- Fix attachment and multiattachment behaviors (#103)
|
|
54
|
+
|
|
55
|
+
0.12.0
|
|
56
|
+
------
|
|
57
|
+
- Add querycondition prop in search_input (#100)
|
|
58
|
+
- Fix - Export actions panel (#101)
|
|
59
|
+
- Edit properties fields (#96)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
0.11.0
|
|
63
|
+
------
|
|
64
|
+
- add actions panel in container folder and item types (#99)
|
|
65
|
+
|
|
66
|
+
0.10.0
|
|
67
|
+
------
|
|
68
|
+
- Improve build (#95)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
0.9.0
|
|
72
|
+
------
|
|
73
|
+
- Isolate client (#91)
|
|
74
|
+
- Improvement fields (#90)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
0.8.0
|
|
78
|
+
------
|
|
79
|
+
|
|
80
|
+
- Replace react-use to own hooks (#82)
|
|
81
|
+
- Add prettier (#83)
|
|
82
|
+
- Add LICENSE and CONTRIBUTING.md (#86)
|
|
83
|
+
- e2e test own project (#84)
|
|
84
|
+
- Some fixes (#88)
|
|
85
|
+
- CI run workflows (#89)
|
|
86
|
+
|
|
87
|
+
0.7.1
|
|
88
|
+
------
|
|
89
|
+
- e2e test own project
|
|
90
|
+
- fix github actions
|
|
91
|
+
|
|
92
|
+
0.7.0
|
|
93
|
+
------
|
|
94
|
+
- Package upgrades
|
|
95
|
+
- More resource personalized from registry
|
|
96
|
+
|
|
97
|
+
0.6.4
|
|
98
|
+
------
|
|
99
|
+
- Allow to add a custom flash function on config
|
|
100
|
+
|
|
101
|
+
0.4.11
|
|
102
|
+
----
|
|
103
|
+
- Fix issue with React and microbundle
|
|
104
|
+
|
|
105
|
+
0.4.10
|
|
106
|
+
----
|
|
107
|
+
- Fix open breadcrumb links in a new browser tab [aralroca]
|
|
108
|
+
|
|
109
|
+
0.4.9
|
|
110
|
+
----
|
|
111
|
+
- Add pagination also in the bottom of the page [aralroca]
|
|
112
|
+
|
|
113
|
+
0.4.8
|
|
114
|
+
----
|
|
115
|
+
- Allow modify id copying items [aralroca]
|
|
116
|
+
- Fill current path as default path when copying items [aralroca]
|
|
117
|
+
|
|
118
|
+
0.4.7
|
|
119
|
+
----
|
|
120
|
+
- Move column definition to GuillotinaClient to overwrite in an easier way [aralroca]
|
|
121
|
+
|
|
122
|
+
0.4.6
|
|
123
|
+
----
|
|
124
|
+
- Fix duplicate items in same folder (add a suffix to the id) [aralroca]
|
|
125
|
+
|
|
126
|
+
0.4.5
|
|
127
|
+
----
|
|
128
|
+
- Fix TabsPanel crash when 'current' tab doesn't exist in 'tabs'
|
|
129
|
+
[masipcat]
|
|
130
|
+
|
|
131
|
+
0.4.4
|
|
132
|
+
----
|
|
133
|
+
- Fix return value of rest.getHeaders() and auth.getHeadres() when not authenticated
|
|
134
|
+
[masipcat]
|
|
135
|
+
|
|
136
|
+
0.4.3
|
|
137
|
+
----
|
|
138
|
+
- Scroll to top after call to Ctx.flash
|
|
139
|
+
|
|
140
|
+
0.4.2
|
|
141
|
+
----
|
|
142
|
+
- fix bug on behaviors change
|
|
143
|
+
|
|
144
|
+
0.4.1
|
|
145
|
+
----
|
|
146
|
+
- Add ErrorBoundary as view in registry that can be overwritten
|
|
147
|
+
[masipcat]
|
|
148
|
+
- Remove panel requester (too much bundle size for what it provides)
|
|
149
|
+
|
|
150
|
+
0.4.0
|
|
151
|
+
----
|
|
152
|
+
- e2e first test
|
|
153
|
+
- e2e github action
|
|
154
|
+
- e2e test content
|
|
155
|
+
[psanlorenzo]
|
|
156
|
+
|
|
157
|
+
- Fix issue when selecting multiple items on different depths with same id
|
|
158
|
+
- Return back the delete button (it's more ergonomic)
|
|
159
|
+
- Fix compatibility with braking changes on Guillotina 6
|
|
160
|
+
- Correctly report failed delete actions, showing a stringify version of the error
|
|
161
|
+
- Add a preload spinner on delete.
|
|
162
|
+
- Add a new config setting to be able to set a delay after delete
|
|
163
|
+
(That's mostly to workaround elastic delay index)
|
|
164
|
+
[jordic]
|
|
165
|
+
|
|
166
|
+
0.3.4
|
|
167
|
+
----
|
|
168
|
+
- Be able to setup default properties showing on panel properties
|
|
169
|
+
- Fix auth header on client
|
|
170
|
+
|
|
171
|
+
0.3.3
|
|
172
|
+
----
|
|
173
|
+
- If there is no @addable-type hide the button
|
|
174
|
+
- Swap columns modified/created (are wrong)
|
|
175
|
+
- Be able to customize properties view
|
|
176
|
+
|
|
177
|
+
0.3.2
|
|
178
|
+
----
|
|
179
|
+
- If there is only one @addable-type just show it (without dropdown)
|
|
180
|
+
|
|
181
|
+
0.3.1
|
|
182
|
+
----
|
|
183
|
+
- Small UI improvements
|
|
184
|
+
- Fix bug when search pagination it's not reset
|
|
185
|
+
|
|
186
|
+
0.3.0
|
|
187
|
+
----
|
|
188
|
+
- Move/copy/delete multiple items
|
|
189
|
+
[aralroca]
|
|
190
|
+
- Some fixes
|
|
191
|
+
[jordic]
|
|
192
|
+
|
|
193
|
+
0.2.2 alpha
|
|
194
|
+
---
|
|
195
|
+
- Fix issue on container creation
|
|
196
|
+
- Be able to personalize icons for custom content types
|
|
197
|
+
- Fix bug when providing custom config
|
|
198
|
+
- Compat layer on serializer for G5
|
|
199
|
+
|
|
200
|
+
0.1.0alpha
|
|
201
|
+
---
|
|
202
|
+
- Don't let registry fail when looking up new from content-types
|
|
203
|
+
- Added initial view for editing group properties
|
|
204
|
+
- Added microbundle to package the library as npm package
|
|
205
|
+
- Added an integration example (still rude) of guillotina with
|
|
206
|
+
next.js
|
|
207
|
+
- Fix some issues with ciruclar dependencies when exporting the npm package.
|
|
208
|
+
- Never use the registry directly, The registry should be obtained throught the Context.
|
|
209
|
+
|
|
210
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2021 Jordi Collell
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# 🔌 Guillotina Management Interface
|
|
2
|
+
|
|
3
|
+
It's build around the idea of a framework to roll you own GMI.
|
|
4
|
+
|
|
5
|
+
Provides an interface to access all Guillotina content depending on user permissions and allowing you to apply actions like create/modify/remove content, UI interactions like displaying flash messages, etc.
|
|
6
|
+
|
|
7
|
+
All this with the flexibility to build it your way, adding your own content with your forms, your icons, etc. It's build around the idea to act as a framework,
|
|
8
|
+
layer that could be extended from outside.
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
|
|
12
|
+
- React +16.12.0
|
|
13
|
+
|
|
14
|
+
## Status
|
|
15
|
+
|
|
16
|
+
Alpha version. The app is usable, but still needs some love.
|
|
17
|
+
|
|
18
|
+
## Roll your own guillotina
|
|
19
|
+
|
|
20
|
+
### With create react app
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
|
|
24
|
+
npx create-react-app gmi_demo
|
|
25
|
+
cd gmi_demo
|
|
26
|
+
|
|
27
|
+
yarn add @guillotinaweb/react-gmi
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
App.js
|
|
32
|
+
|
|
33
|
+
```jsx
|
|
34
|
+
import React from 'react'
|
|
35
|
+
import { Layout } from '@guillotinaweb/react-gmi'
|
|
36
|
+
import { Auth } from '@guillotinaweb/react-gmi'
|
|
37
|
+
import { Guillotina } from '@guillotinaweb/react-gmi'
|
|
38
|
+
import { Login } from '@guillotinaweb/react-gmi'
|
|
39
|
+
import { getClient } from '@guillotinaweb/react-gmi'
|
|
40
|
+
import { ClientProvider } from '@guillotinaweb/react-gmi'
|
|
41
|
+
import { useState } from 'react'
|
|
42
|
+
import '@guillotinaweb/react-gmi/dist/css/style.css'
|
|
43
|
+
|
|
44
|
+
// guillotina url
|
|
45
|
+
let url = 'http://localhost:8080/'
|
|
46
|
+
|
|
47
|
+
const auth = new Auth(url)
|
|
48
|
+
const client = getClient(url, auth)
|
|
49
|
+
|
|
50
|
+
function App() {
|
|
51
|
+
const [isLogged, setLogged] = useState(auth.isLogged)
|
|
52
|
+
|
|
53
|
+
// You can do whatever you want on login, this includes,
|
|
54
|
+
// if you have a router, move it to it's user home folder,
|
|
55
|
+
// or the root...
|
|
56
|
+
const onLogin = () => {
|
|
57
|
+
setLogged(true)
|
|
58
|
+
}
|
|
59
|
+
const onLogout = () => setLogged(false)
|
|
60
|
+
|
|
61
|
+
auth.onLogout = onLogout
|
|
62
|
+
|
|
63
|
+
return (
|
|
64
|
+
<ClientProvider client={client}>
|
|
65
|
+
<Layout auth={auth} onLogout={onLogout}>
|
|
66
|
+
{isLogged && <Guillotina auth={auth} url={url} />}
|
|
67
|
+
{!isLogged && (
|
|
68
|
+
<div className="columns is-centered">
|
|
69
|
+
<div className="columns is-half">
|
|
70
|
+
<Login onLogin={onLogin} auth={auth} />
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
)}
|
|
74
|
+
</Layout>
|
|
75
|
+
</ClientProvider>
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export default App
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### To add icons:
|
|
83
|
+
|
|
84
|
+
Add the icons to the default public/index.html header
|
|
85
|
+
|
|
86
|
+
```diff
|
|
87
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
88
|
+
+ <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
|
|
89
|
+
<meta
|
|
90
|
+
name="description"
|
|
91
|
+
content="Web site created using create-react-app"
|
|
92
|
+
/>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
- Copy guillotina logo to your public
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
curl https://raw.githubusercontent.com/guillotinaweb/guillotina_react/master/public/logo.svg > public/logo.svg
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Docs?
|
|
103
|
+
|
|
104
|
+
- [Howto Extend Guillotina React form outside?](docs/extend.md)
|
|
105
|
+
- [Narrative Docs](docs/api.md)
|
|
106
|
+
|
|
107
|
+
## Develop
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
run a local guillotina
|
|
111
|
+
yarn
|
|
112
|
+
yarn start
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Screenshots
|
|
117
|
+
|
|
118
|
+

|
|
119
|
+

|
|
120
|
+

|
|
121
|
+
|
|
122
|
+
## Sponsors
|
|
123
|
+
|
|
124
|
+
This project is sponsored by <a href="https://www.vinissimus.com">Vinissimus Wine Shop</a>
|
|
125
|
+
|
|
126
|
+
<a href="https://www.vinissimus.com"><img src="https://cdn.vinissimus.com/front/static/images/vinissimus-logo.svg" /></a>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function AddItem(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function ChangePassword(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function CopyItem(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function CopyItems(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function MoveItem(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function MoveItems(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function RemoveItem(props: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function RemoveItems(props: any): any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default ErrorZone;
|
|
2
|
+
declare function ErrorZone({ children, id, className }: {
|
|
3
|
+
children: any;
|
|
4
|
+
id: any;
|
|
5
|
+
className: any;
|
|
6
|
+
}): any;
|
|
7
|
+
declare namespace ErrorZone {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
const children: any;
|
|
10
|
+
const id: any;
|
|
11
|
+
const className: any;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function EditableField({ field, value, ns, schema, modifyContent, required, }: {
|
|
2
|
+
field: any;
|
|
3
|
+
value: any;
|
|
4
|
+
ns: any;
|
|
5
|
+
schema?: any;
|
|
6
|
+
modifyContent: any;
|
|
7
|
+
required: any;
|
|
8
|
+
}): any;
|
|
9
|
+
export const DEFAULT_VALUE_EDITABLE_FIELD: "Click to edit";
|
|
10
|
+
export const DEFAULT_VALUE_NO_EDITABLE_FIELD: " -- ";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function Flash(): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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/upload";
|
|
10
|
+
export * from "./input/textarea";
|
|
11
|
+
export * from "./input/search_input";
|
|
12
|
+
export * from "./input/input_list";
|
|
13
|
+
export * from "./input/dropdown";
|
|
14
|
+
export * from "./fields/editableField";
|
|
15
|
+
export * from "./fields/renderField";
|
|
16
|
+
export * from "./fields/downloadField";
|
|
17
|
+
export * from "./behaviors/iattachment";
|
|
18
|
+
export * from "./behaviors/imultiattachment";
|
|
19
|
+
export * from "./behaviors/idublincore";
|
|
20
|
+
export * from "./panel/actions";
|
|
21
|
+
export * from "./panel/addons";
|
|
22
|
+
export * from "./panel/behaviors";
|
|
23
|
+
export * from "./panel/items";
|
|
24
|
+
export * from "./panel/properties";
|
|
25
|
+
export * from "./panel/permissions";
|
|
26
|
+
export * from "./panel/permissions_prinperm";
|
|
27
|
+
export * from "./panel/permissions_prinrole";
|
|
28
|
+
export * from "./panel/permissions_roleperm";
|
|
29
|
+
export * from "./ui";
|
|
30
|
+
export * from "./widgets";
|
|
31
|
+
export * from "./behavior_view";
|
|
32
|
+
export * from "./properties_view";
|
|
33
|
+
export * from "./context_toolbar";
|
|
34
|
+
export * from "./error_zone";
|
|
35
|
+
export * from "./flash";
|
|
36
|
+
export * from "./guillotina";
|
|
37
|
+
export * from "./item";
|
|
38
|
+
export * from "./Link";
|
|
39
|
+
export * from "./layout";
|
|
40
|
+
export * from "./login";
|
|
41
|
+
export * from "./modal";
|
|
42
|
+
export * from "./notallowed";
|
|
43
|
+
export * from "./pagination";
|
|
44
|
+
export * from "./path";
|
|
45
|
+
export * from "./searchLabels";
|
|
46
|
+
export * from "./tabs";
|
|
47
|
+
export * from "./selected_items_actions";
|
|
48
|
+
export * from "./TdLink";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export function Button({ children, className, onClick, type, loading, disabled, dataTest, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick: any;
|
|
6
|
+
type?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
dataTest: any;
|
|
10
|
+
}): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function Checkbox({ id, className, classNameInput, loading, disabled, indeterminate, value, color, backgroundColor, borderColor, children, placeholder, onChange, dataTest, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
id: any;
|
|
4
|
+
className: any;
|
|
5
|
+
classNameInput: any;
|
|
6
|
+
loading: any;
|
|
7
|
+
disabled: any;
|
|
8
|
+
indeterminate?: boolean;
|
|
9
|
+
value?: boolean;
|
|
10
|
+
color: any;
|
|
11
|
+
backgroundColor: any;
|
|
12
|
+
borderColor: any;
|
|
13
|
+
children: any;
|
|
14
|
+
placeholder: any;
|
|
15
|
+
onChange: any;
|
|
16
|
+
dataTest: any;
|
|
17
|
+
}): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default function Dropdown({ children, disabled, id, isRight, onChange, optionDisabledWhen, options, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
disabled: any;
|
|
5
|
+
id: any;
|
|
6
|
+
isRight: any;
|
|
7
|
+
onChange: any;
|
|
8
|
+
optionDisabledWhen: any;
|
|
9
|
+
options: any;
|
|
10
|
+
}): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function Form({ children, className, onSubmit, onReset, autoComplete, title, error, dataTest, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
className?: string;
|
|
5
|
+
onSubmit?: () => void;
|
|
6
|
+
onReset?: () => void;
|
|
7
|
+
autoComplete?: string;
|
|
8
|
+
title: any;
|
|
9
|
+
error: any;
|
|
10
|
+
dataTest: any;
|
|
11
|
+
}): any;
|
|
12
|
+
export namespace Form {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
const children: any;
|
|
15
|
+
const className: any;
|
|
16
|
+
const onSubmit: any;
|
|
17
|
+
const onReset: any;
|
|
18
|
+
const autoComplete: any;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function FormBuilder({ schema, formData, title, onSubmit, actionName, children, exclude, remotes, submitButton, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
schema: any;
|
|
4
|
+
formData: any;
|
|
5
|
+
title: any;
|
|
6
|
+
onSubmit: any;
|
|
7
|
+
actionName: any;
|
|
8
|
+
children: any;
|
|
9
|
+
exclude?: any[];
|
|
10
|
+
remotes?: any[];
|
|
11
|
+
submitButton?: boolean;
|
|
12
|
+
}): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Input: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const InputList: any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function SearchInput({ onChange, error, errorZoneClassName, traversal, path, qs, queryCondition, value, btnClass, dataTestWrapper, dataTestSearchInput, dataTestItem, renderTextItemOption, }: {
|
|
2
|
+
onChange: any;
|
|
3
|
+
error: any;
|
|
4
|
+
errorZoneClassName: any;
|
|
5
|
+
traversal?: any;
|
|
6
|
+
path?: any;
|
|
7
|
+
qs?: any[];
|
|
8
|
+
queryCondition?: string;
|
|
9
|
+
value: any;
|
|
10
|
+
btnClass?: string;
|
|
11
|
+
dataTestWrapper?: string;
|
|
12
|
+
dataTestSearchInput?: string;
|
|
13
|
+
dataTestItem?: string;
|
|
14
|
+
renderTextItemOption?: any;
|
|
15
|
+
}): any;
|
|
16
|
+
export namespace SearchInput {
|
|
17
|
+
namespace propTypes {
|
|
18
|
+
const onChange: any;
|
|
19
|
+
const value: any;
|
|
20
|
+
const client: any;
|
|
21
|
+
const path: any;
|
|
22
|
+
const PageSize: any;
|
|
23
|
+
const btnClass: any;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Select: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const Textarea: any;
|