@tsed/react-formio 2.1.2 → 2.1.4
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/coverage.json +4 -4
- package/dist/components/actions-table/actionsTable.component.d.ts +3 -2
- package/dist/components/actions-table/actionsTable.stories.d.ts +2 -1
- package/dist/components/alert/alert.component.d.ts +2 -1
- package/dist/components/alert/alert.stories.d.ts +2 -1
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.stories.d.ts +2 -1
- package/dist/components/form/form.component.d.ts +2 -1
- package/dist/components/form/form.stories.d.ts +5 -4
- package/dist/components/form-access/formAccess.stories.d.ts +2 -1
- package/dist/components/form-access/formAccess.utils.d.ts +3 -3
- package/dist/components/form-action/formAction.stories.d.ts +2 -1
- package/dist/components/form-builder/formBuilder.component.d.ts +1 -1
- package/dist/components/form-builder/formBuilder.stories.d.ts +7 -6
- package/dist/components/form-control/formControl.component.d.ts +1 -1
- package/dist/components/form-control/formControl.stories.d.ts +11 -10
- package/dist/components/form-edit/formEdit.component.d.ts +2 -1
- package/dist/components/form-edit/formEdit.stories.d.ts +17 -16
- package/dist/components/form-settings/formSettings.component.d.ts +2 -1
- package/dist/components/form-settings/formSettings.stories.d.ts +2 -1
- package/dist/components/form-settings/formSettings.utils.d.ts +1 -1
- package/dist/components/forms-table/components/formCell.component.d.ts +2 -1
- package/dist/components/forms-table/formsTable.component.d.ts +3 -2
- package/dist/components/forms-table/formsTable.stories.d.ts +3 -2
- package/dist/components/input-tags/inputTags.component.d.ts +2 -1
- package/dist/components/input-tags/inputTags.stories.d.ts +4 -3
- package/dist/components/input-text/inputText.component.d.ts +2 -1
- package/dist/components/input-text/inputText.stories.d.ts +6 -5
- package/dist/components/loader/loader.component.d.ts +2 -2
- package/dist/components/loader/loader.stories.d.ts +2 -1
- package/dist/components/modal/modal.component.d.ts +1 -1
- package/dist/components/modal/modal.stories.d.ts +5 -4
- package/dist/components/modal/removeModal.component.d.ts +2 -2
- package/dist/components/pagination/pagination.component.d.ts +2 -1
- package/dist/components/pagination/pagination.stories.d.ts +2 -1
- package/dist/components/react-component/reactComponent.component.d.ts +1 -1
- package/dist/components/select/select.stories.d.ts +9 -8
- package/dist/components/submissions-table/submissionsTable.component.d.ts +3 -2
- package/dist/components/submissions-table/submissionsTable.stories.d.ts +2 -1
- package/dist/components/table/components/defaultArrowSort.component.d.ts +2 -1
- package/dist/components/table/components/defaultCellHeader.component.d.ts +2 -1
- package/dist/components/table/components/defaultCellOperations.component.d.ts +2 -1
- package/dist/components/table/components/defaultCells.component.d.ts +2 -1
- package/dist/components/table/components/defaultOperationButton.component.d.ts +2 -1
- package/dist/components/table/components/defaultRow.component.d.ts +3 -3
- package/dist/components/table/components/dragNDropContainer.d.ts +2 -2
- package/dist/components/table/filters/defaultColumnFilter.component.d.ts +2 -1
- package/dist/components/table/filters/selectColumnFilter.component.d.ts +2 -1
- package/dist/components/table/filters/sliderColumnFilter.component.d.ts +2 -1
- package/dist/components/table/hooks/useCustomTable.hook.d.ts +7 -85
- package/dist/components/table/hooks/useDragnDropRow.hook.d.ts +25 -18
- package/dist/components/table/hooks/useOperations.hook.d.ts +1 -1
- package/dist/components/table/table.component.d.ts +2 -2
- package/dist/components/table/table.stories.d.ts +3 -2
- package/dist/components/tabs/tabs.component.d.ts +3 -3
- package/dist/components/tabs/tabs.component.stories.d.ts +3 -2
- package/dist/index.js +439 -493
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +57 -100
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces/FormSchema.d.ts +1 -1
- package/dist/interfaces/Operation.d.ts +2 -2
- package/dist/interfaces/QueryOptions.d.ts +1 -1
- package/package.json +4 -3
- package/readme.md +17 -195
- package/src/components/form/form.stories.tsx +128 -122
- package/src/components/form/useForm.hook.ts +1 -1
- package/src/components/form-builder/formBuilder.stories.tsx +3540 -3537
- package/src/components/form-edit/formEdit.stories.tsx +320 -317
- package/src/components/forms-table/formsTable.component.tsx +1 -1
- package/src/components/modal/removeModal.component.tsx +3 -4
- package/src/components/table/components/defaultCellHeader.component.tsx +3 -3
- package/src/components/table/components/defaultCells.component.tsx +1 -1
- package/src/components/table/filters/defaultColumnFilter.component.tsx +1 -1
- package/src/components/table/hooks/useCustomTable.hook.tsx +16 -5
- package/tsconfig.json +2 -1
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
import { FormEdit } from "./formEdit.component";
|
|
4
4
|
import { defaultDisplayChoices } from "./formParameters.component";
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export default {
|
|
7
7
|
title: "ReactFormio/FormEdit",
|
|
8
8
|
component: FormEdit,
|
|
@@ -45,327 +45,330 @@ export default {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
export const Sandbox =
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
Sandbox.args = {
|
|
53
|
-
form: {
|
|
54
|
-
type: "form",
|
|
55
|
-
tags: [],
|
|
56
|
-
owner: "5d0797a382461b6656d2c790",
|
|
57
|
-
components: [
|
|
58
|
-
{
|
|
59
|
-
label: "Text Field",
|
|
60
|
-
labelPosition: "top",
|
|
61
|
-
placeholder: "",
|
|
62
|
-
description: "",
|
|
63
|
-
tooltip: "",
|
|
64
|
-
prefix: "",
|
|
65
|
-
suffix: "",
|
|
66
|
-
widget: { type: "input" },
|
|
67
|
-
inputMask: "",
|
|
68
|
-
allowMultipleMasks: false,
|
|
69
|
-
customClass: "",
|
|
70
|
-
tabindex: "",
|
|
71
|
-
autocomplete: "",
|
|
72
|
-
hidden: false,
|
|
73
|
-
hideLabel: false,
|
|
74
|
-
showWordCount: false,
|
|
75
|
-
showCharCount: false,
|
|
76
|
-
mask: false,
|
|
77
|
-
autofocus: false,
|
|
78
|
-
spellcheck: true,
|
|
79
|
-
disabled: false,
|
|
80
|
-
tableView: true,
|
|
81
|
-
modalEdit: false,
|
|
82
|
-
multiple: false,
|
|
83
|
-
persistent: true,
|
|
84
|
-
inputFormat: "plain",
|
|
85
|
-
protected: false,
|
|
86
|
-
dbIndex: false,
|
|
87
|
-
case: "",
|
|
88
|
-
encrypted: false,
|
|
89
|
-
redrawOn: "",
|
|
90
|
-
clearOnHide: true,
|
|
91
|
-
customDefaultValue: "",
|
|
92
|
-
calculateValue: "",
|
|
93
|
-
calculateServer: false,
|
|
94
|
-
allowCalculateOverride: false,
|
|
95
|
-
validateOn: "change",
|
|
96
|
-
validate: {
|
|
97
|
-
required: true,
|
|
98
|
-
pattern: "",
|
|
99
|
-
customMessage: "",
|
|
100
|
-
custom: "",
|
|
101
|
-
customPrivate: false,
|
|
102
|
-
json: "",
|
|
103
|
-
minLength: "",
|
|
104
|
-
maxLength: "",
|
|
105
|
-
strictDateValidation: false,
|
|
106
|
-
multiple: false,
|
|
107
|
-
unique: false
|
|
108
|
-
},
|
|
109
|
-
unique: false,
|
|
110
|
-
errorLabel: "",
|
|
111
|
-
key: "textField",
|
|
112
|
-
tags: [],
|
|
113
|
-
properties: {},
|
|
114
|
-
conditional: { show: null, when: null, eq: "", json: "" },
|
|
115
|
-
customConditional: "",
|
|
116
|
-
logic: [],
|
|
117
|
-
attributes: {},
|
|
118
|
-
overlay: {
|
|
119
|
-
style: "",
|
|
120
|
-
page: "",
|
|
121
|
-
left: "",
|
|
122
|
-
top: "",
|
|
123
|
-
width: "",
|
|
124
|
-
height: ""
|
|
125
|
-
},
|
|
126
|
-
type: "textfield",
|
|
127
|
-
input: true,
|
|
128
|
-
refreshOn: "",
|
|
129
|
-
inputType: "text",
|
|
130
|
-
id: "eqb1o4r",
|
|
131
|
-
defaultValue: ""
|
|
132
|
-
}
|
|
133
|
-
],
|
|
134
|
-
title: "text-field",
|
|
135
|
-
display: "form",
|
|
136
|
-
access: [
|
|
137
|
-
{
|
|
138
|
-
roles: ["5d0797bc872fc747da559858", "5d0797bc872fc71d05559859", "5d0797bc872fc7da3b55985a"],
|
|
139
|
-
type: "read_all"
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
submissionAccess: [],
|
|
143
|
-
controller: "",
|
|
144
|
-
properties: {},
|
|
145
|
-
settings: {},
|
|
146
|
-
name: "textField",
|
|
147
|
-
path: "textfield",
|
|
148
|
-
machineName: "tcspjwhsevrzpcd:textField"
|
|
48
|
+
export const Sandbox = {
|
|
49
|
+
render: ({ form, typeChoices, displayChoices, enableTags, options }: any) => {
|
|
50
|
+
return <FormEdit form={form} typeChoices={typeChoices} displayChoices={displayChoices} enableTags={enableTags} options={options} />;
|
|
149
51
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
displayChoices: defaultDisplayChoices,
|
|
155
|
-
enableTags: true,
|
|
156
|
-
options: { template: "tailwind", iconset: "bx" }
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export const WithoutTypeChoices = (args: any) => {
|
|
160
|
-
return <FormEdit {...args} />;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
WithoutTypeChoices.args = {
|
|
164
|
-
form: {
|
|
165
|
-
type: "form",
|
|
166
|
-
tags: [],
|
|
167
|
-
owner: "5d0797a382461b6656d2c790",
|
|
168
|
-
components: [
|
|
169
|
-
{
|
|
170
|
-
label: "Text Field",
|
|
171
|
-
labelPosition: "top",
|
|
172
|
-
placeholder: "",
|
|
173
|
-
description: "",
|
|
174
|
-
tooltip: "",
|
|
175
|
-
prefix: "",
|
|
176
|
-
suffix: "",
|
|
177
|
-
widget: { type: "input" },
|
|
178
|
-
inputMask: "",
|
|
179
|
-
allowMultipleMasks: false,
|
|
180
|
-
customClass: "",
|
|
181
|
-
tabindex: "",
|
|
182
|
-
autocomplete: "",
|
|
183
|
-
hidden: false,
|
|
184
|
-
hideLabel: false,
|
|
185
|
-
showWordCount: false,
|
|
186
|
-
showCharCount: false,
|
|
187
|
-
mask: false,
|
|
188
|
-
autofocus: false,
|
|
189
|
-
spellcheck: true,
|
|
190
|
-
disabled: false,
|
|
191
|
-
tableView: true,
|
|
192
|
-
modalEdit: false,
|
|
193
|
-
multiple: false,
|
|
194
|
-
persistent: true,
|
|
195
|
-
inputFormat: "plain",
|
|
196
|
-
protected: false,
|
|
197
|
-
dbIndex: false,
|
|
198
|
-
case: "",
|
|
199
|
-
encrypted: false,
|
|
200
|
-
redrawOn: "",
|
|
201
|
-
clearOnHide: true,
|
|
202
|
-
customDefaultValue: "",
|
|
203
|
-
calculateValue: "",
|
|
204
|
-
calculateServer: false,
|
|
205
|
-
allowCalculateOverride: false,
|
|
206
|
-
validateOn: "change",
|
|
207
|
-
validate: {
|
|
208
|
-
required: true,
|
|
209
|
-
pattern: "",
|
|
210
|
-
customMessage: "",
|
|
211
|
-
custom: "",
|
|
212
|
-
customPrivate: false,
|
|
213
|
-
json: "",
|
|
214
|
-
minLength: "",
|
|
215
|
-
maxLength: "",
|
|
216
|
-
strictDateValidation: false,
|
|
217
|
-
multiple: false,
|
|
218
|
-
unique: false
|
|
219
|
-
},
|
|
220
|
-
unique: false,
|
|
221
|
-
errorLabel: "",
|
|
222
|
-
key: "textField",
|
|
223
|
-
tags: [],
|
|
224
|
-
properties: {},
|
|
225
|
-
conditional: { show: null, when: null, eq: "", json: "" },
|
|
226
|
-
customConditional: "",
|
|
227
|
-
logic: [],
|
|
228
|
-
attributes: {},
|
|
229
|
-
overlay: {
|
|
230
|
-
style: "",
|
|
231
|
-
page: "",
|
|
232
|
-
left: "",
|
|
233
|
-
top: "",
|
|
234
|
-
width: "",
|
|
235
|
-
height: ""
|
|
236
|
-
},
|
|
237
|
-
type: "textfield",
|
|
238
|
-
input: true,
|
|
239
|
-
refreshOn: "",
|
|
240
|
-
inputType: "text",
|
|
241
|
-
id: "eqb1o4r",
|
|
242
|
-
defaultValue: ""
|
|
243
|
-
}
|
|
52
|
+
args: {
|
|
53
|
+
typeChoices: [
|
|
54
|
+
{ label: "Form", value: "form" },
|
|
55
|
+
{ label: "Resources", value: "resource" }
|
|
244
56
|
],
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
57
|
+
displayChoices: defaultDisplayChoices,
|
|
58
|
+
enableTags: true,
|
|
59
|
+
options: { template: "tailwind", iconset: "bx" },
|
|
60
|
+
form: {
|
|
61
|
+
type: "form",
|
|
62
|
+
tags: [],
|
|
63
|
+
owner: "5d0797a382461b6656d2c790",
|
|
64
|
+
components: [
|
|
65
|
+
{
|
|
66
|
+
label: "Text Field",
|
|
67
|
+
labelPosition: "top",
|
|
68
|
+
placeholder: "",
|
|
69
|
+
description: "",
|
|
70
|
+
tooltip: "",
|
|
71
|
+
prefix: "",
|
|
72
|
+
suffix: "",
|
|
73
|
+
widget: { type: "input" },
|
|
74
|
+
inputMask: "",
|
|
75
|
+
allowMultipleMasks: false,
|
|
76
|
+
customClass: "",
|
|
77
|
+
tabindex: "",
|
|
78
|
+
autocomplete: "",
|
|
79
|
+
hidden: false,
|
|
80
|
+
hideLabel: false,
|
|
81
|
+
showWordCount: false,
|
|
82
|
+
showCharCount: false,
|
|
83
|
+
mask: false,
|
|
84
|
+
autofocus: false,
|
|
85
|
+
spellcheck: true,
|
|
86
|
+
disabled: false,
|
|
87
|
+
tableView: true,
|
|
88
|
+
modalEdit: false,
|
|
89
|
+
multiple: false,
|
|
90
|
+
persistent: true,
|
|
91
|
+
inputFormat: "plain",
|
|
92
|
+
protected: false,
|
|
93
|
+
dbIndex: false,
|
|
94
|
+
case: "",
|
|
95
|
+
encrypted: false,
|
|
96
|
+
redrawOn: "",
|
|
97
|
+
clearOnHide: true,
|
|
98
|
+
customDefaultValue: "",
|
|
99
|
+
calculateValue: "",
|
|
100
|
+
calculateServer: false,
|
|
101
|
+
allowCalculateOverride: false,
|
|
102
|
+
validateOn: "change",
|
|
103
|
+
validate: {
|
|
104
|
+
required: true,
|
|
105
|
+
pattern: "",
|
|
106
|
+
customMessage: "",
|
|
107
|
+
custom: "",
|
|
108
|
+
customPrivate: false,
|
|
109
|
+
json: "",
|
|
110
|
+
minLength: "",
|
|
111
|
+
maxLength: "",
|
|
112
|
+
strictDateValidation: false,
|
|
113
|
+
multiple: false,
|
|
114
|
+
unique: false
|
|
115
|
+
},
|
|
116
|
+
unique: false,
|
|
117
|
+
errorLabel: "",
|
|
118
|
+
key: "textField",
|
|
119
|
+
tags: [],
|
|
120
|
+
properties: {},
|
|
121
|
+
conditional: { show: null, when: null, eq: "", json: "" },
|
|
122
|
+
customConditional: "",
|
|
123
|
+
logic: [],
|
|
124
|
+
attributes: {},
|
|
125
|
+
overlay: {
|
|
126
|
+
style: "",
|
|
127
|
+
page: "",
|
|
128
|
+
left: "",
|
|
129
|
+
top: "",
|
|
130
|
+
width: "",
|
|
131
|
+
height: ""
|
|
132
|
+
},
|
|
133
|
+
type: "textfield",
|
|
134
|
+
input: true,
|
|
135
|
+
refreshOn: "",
|
|
136
|
+
inputType: "text",
|
|
137
|
+
id: "eqb1o4r",
|
|
138
|
+
defaultValue: ""
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
title: "text-field",
|
|
142
|
+
display: "form",
|
|
143
|
+
access: [
|
|
144
|
+
{
|
|
145
|
+
roles: ["5d0797bc872fc747da559858", "5d0797bc872fc71d05559859", "5d0797bc872fc7da3b55985a"],
|
|
146
|
+
type: "read_all"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
submissionAccess: [],
|
|
150
|
+
controller: "",
|
|
151
|
+
properties: {},
|
|
152
|
+
settings: {},
|
|
153
|
+
name: "textField",
|
|
154
|
+
path: "textfield",
|
|
155
|
+
machineName: "tcspjwhsevrzpcd:textField"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
264
158
|
};
|
|
265
159
|
|
|
266
|
-
export const
|
|
267
|
-
|
|
160
|
+
export const WithoutTypeChoices = {
|
|
161
|
+
render: (args: any) => {
|
|
162
|
+
return <FormEdit {...args} />;
|
|
163
|
+
},
|
|
164
|
+
args: {
|
|
165
|
+
form: {
|
|
166
|
+
type: "form",
|
|
167
|
+
tags: [],
|
|
168
|
+
owner: "5d0797a382461b6656d2c790",
|
|
169
|
+
components: [
|
|
170
|
+
{
|
|
171
|
+
label: "Text Field",
|
|
172
|
+
labelPosition: "top",
|
|
173
|
+
placeholder: "",
|
|
174
|
+
description: "",
|
|
175
|
+
tooltip: "",
|
|
176
|
+
prefix: "",
|
|
177
|
+
suffix: "",
|
|
178
|
+
widget: { type: "input" },
|
|
179
|
+
inputMask: "",
|
|
180
|
+
allowMultipleMasks: false,
|
|
181
|
+
customClass: "",
|
|
182
|
+
tabindex: "",
|
|
183
|
+
autocomplete: "",
|
|
184
|
+
hidden: false,
|
|
185
|
+
hideLabel: false,
|
|
186
|
+
showWordCount: false,
|
|
187
|
+
showCharCount: false,
|
|
188
|
+
mask: false,
|
|
189
|
+
autofocus: false,
|
|
190
|
+
spellcheck: true,
|
|
191
|
+
disabled: false,
|
|
192
|
+
tableView: true,
|
|
193
|
+
modalEdit: false,
|
|
194
|
+
multiple: false,
|
|
195
|
+
persistent: true,
|
|
196
|
+
inputFormat: "plain",
|
|
197
|
+
protected: false,
|
|
198
|
+
dbIndex: false,
|
|
199
|
+
case: "",
|
|
200
|
+
encrypted: false,
|
|
201
|
+
redrawOn: "",
|
|
202
|
+
clearOnHide: true,
|
|
203
|
+
customDefaultValue: "",
|
|
204
|
+
calculateValue: "",
|
|
205
|
+
calculateServer: false,
|
|
206
|
+
allowCalculateOverride: false,
|
|
207
|
+
validateOn: "change",
|
|
208
|
+
validate: {
|
|
209
|
+
required: true,
|
|
210
|
+
pattern: "",
|
|
211
|
+
customMessage: "",
|
|
212
|
+
custom: "",
|
|
213
|
+
customPrivate: false,
|
|
214
|
+
json: "",
|
|
215
|
+
minLength: "",
|
|
216
|
+
maxLength: "",
|
|
217
|
+
strictDateValidation: false,
|
|
218
|
+
multiple: false,
|
|
219
|
+
unique: false
|
|
220
|
+
},
|
|
221
|
+
unique: false,
|
|
222
|
+
errorLabel: "",
|
|
223
|
+
key: "textField",
|
|
224
|
+
tags: [],
|
|
225
|
+
properties: {},
|
|
226
|
+
conditional: { show: null, when: null, eq: "", json: "" },
|
|
227
|
+
customConditional: "",
|
|
228
|
+
logic: [],
|
|
229
|
+
attributes: {},
|
|
230
|
+
overlay: {
|
|
231
|
+
style: "",
|
|
232
|
+
page: "",
|
|
233
|
+
left: "",
|
|
234
|
+
top: "",
|
|
235
|
+
width: "",
|
|
236
|
+
height: ""
|
|
237
|
+
},
|
|
238
|
+
type: "textfield",
|
|
239
|
+
input: true,
|
|
240
|
+
refreshOn: "",
|
|
241
|
+
inputType: "text",
|
|
242
|
+
id: "eqb1o4r",
|
|
243
|
+
defaultValue: ""
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
title: "text-field",
|
|
247
|
+
display: "form",
|
|
248
|
+
access: [
|
|
249
|
+
{
|
|
250
|
+
roles: ["5d0797bc872fc747da559858", "5d0797bc872fc71d05559859", "5d0797bc872fc7da3b55985a"],
|
|
251
|
+
type: "read_all"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
submissionAccess: [],
|
|
255
|
+
controller: "",
|
|
256
|
+
properties: {},
|
|
257
|
+
settings: {},
|
|
258
|
+
name: "textField",
|
|
259
|
+
path: "textfield",
|
|
260
|
+
machineName: "tcspjwhsevrzpcd:textField"
|
|
261
|
+
},
|
|
262
|
+
displayChoices: defaultDisplayChoices,
|
|
263
|
+
enableTags: true,
|
|
264
|
+
options: { template: "tailwind", iconset: "bx" }
|
|
265
|
+
}
|
|
268
266
|
};
|
|
269
267
|
|
|
270
|
-
WithoutTags
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
tags: [],
|
|
274
|
-
owner: "5d0797a382461b6656d2c790",
|
|
275
|
-
components: [
|
|
276
|
-
{
|
|
277
|
-
label: "Text Field",
|
|
278
|
-
labelPosition: "top",
|
|
279
|
-
placeholder: "",
|
|
280
|
-
description: "",
|
|
281
|
-
tooltip: "",
|
|
282
|
-
prefix: "",
|
|
283
|
-
suffix: "",
|
|
284
|
-
widget: { type: "input" },
|
|
285
|
-
inputMask: "",
|
|
286
|
-
allowMultipleMasks: false,
|
|
287
|
-
customClass: "",
|
|
288
|
-
tabindex: "",
|
|
289
|
-
autocomplete: "",
|
|
290
|
-
hidden: false,
|
|
291
|
-
hideLabel: false,
|
|
292
|
-
showWordCount: false,
|
|
293
|
-
showCharCount: false,
|
|
294
|
-
mask: false,
|
|
295
|
-
autofocus: false,
|
|
296
|
-
spellcheck: true,
|
|
297
|
-
disabled: false,
|
|
298
|
-
tableView: true,
|
|
299
|
-
modalEdit: false,
|
|
300
|
-
multiple: false,
|
|
301
|
-
persistent: true,
|
|
302
|
-
inputFormat: "plain",
|
|
303
|
-
protected: false,
|
|
304
|
-
dbIndex: false,
|
|
305
|
-
case: "",
|
|
306
|
-
encrypted: false,
|
|
307
|
-
redrawOn: "",
|
|
308
|
-
clearOnHide: true,
|
|
309
|
-
customDefaultValue: "",
|
|
310
|
-
calculateValue: "",
|
|
311
|
-
calculateServer: false,
|
|
312
|
-
allowCalculateOverride: false,
|
|
313
|
-
validateOn: "change",
|
|
314
|
-
validate: {
|
|
315
|
-
required: true,
|
|
316
|
-
pattern: "",
|
|
317
|
-
customMessage: "",
|
|
318
|
-
custom: "",
|
|
319
|
-
customPrivate: false,
|
|
320
|
-
json: "",
|
|
321
|
-
minLength: "",
|
|
322
|
-
maxLength: "",
|
|
323
|
-
strictDateValidation: false,
|
|
324
|
-
multiple: false,
|
|
325
|
-
unique: false
|
|
326
|
-
},
|
|
327
|
-
unique: false,
|
|
328
|
-
errorLabel: "",
|
|
329
|
-
key: "textField",
|
|
330
|
-
tags: [],
|
|
331
|
-
properties: {},
|
|
332
|
-
conditional: { show: null, when: null, eq: "", json: "" },
|
|
333
|
-
customConditional: "",
|
|
334
|
-
logic: [],
|
|
335
|
-
attributes: {},
|
|
336
|
-
overlay: {
|
|
337
|
-
style: "",
|
|
338
|
-
page: "",
|
|
339
|
-
left: "",
|
|
340
|
-
top: "",
|
|
341
|
-
width: "",
|
|
342
|
-
height: ""
|
|
343
|
-
},
|
|
344
|
-
type: "textfield",
|
|
345
|
-
input: true,
|
|
346
|
-
refreshOn: "",
|
|
347
|
-
inputType: "text",
|
|
348
|
-
id: "eqb1o4r",
|
|
349
|
-
defaultValue: ""
|
|
350
|
-
}
|
|
351
|
-
],
|
|
352
|
-
title: "text-field",
|
|
353
|
-
display: "form",
|
|
354
|
-
access: [
|
|
355
|
-
{
|
|
356
|
-
roles: ["5d0797bc872fc747da559858", "5d0797bc872fc71d05559859", "5d0797bc872fc7da3b55985a"],
|
|
357
|
-
type: "read_all"
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
submissionAccess: [],
|
|
361
|
-
controller: "",
|
|
362
|
-
properties: {},
|
|
363
|
-
settings: {},
|
|
364
|
-
name: "textField",
|
|
365
|
-
path: "textfield",
|
|
366
|
-
machineName: "tcspjwhsevrzpcd:textField"
|
|
268
|
+
export const WithoutTags = {
|
|
269
|
+
render: (args: any) => {
|
|
270
|
+
return <FormEdit {...args} />;
|
|
367
271
|
},
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
272
|
+
args: {
|
|
273
|
+
form: {
|
|
274
|
+
type: "form",
|
|
275
|
+
tags: [],
|
|
276
|
+
owner: "5d0797a382461b6656d2c790",
|
|
277
|
+
components: [
|
|
278
|
+
{
|
|
279
|
+
label: "Text Field",
|
|
280
|
+
labelPosition: "top",
|
|
281
|
+
placeholder: "",
|
|
282
|
+
description: "",
|
|
283
|
+
tooltip: "",
|
|
284
|
+
prefix: "",
|
|
285
|
+
suffix: "",
|
|
286
|
+
widget: { type: "input" },
|
|
287
|
+
inputMask: "",
|
|
288
|
+
allowMultipleMasks: false,
|
|
289
|
+
customClass: "",
|
|
290
|
+
tabindex: "",
|
|
291
|
+
autocomplete: "",
|
|
292
|
+
hidden: false,
|
|
293
|
+
hideLabel: false,
|
|
294
|
+
showWordCount: false,
|
|
295
|
+
showCharCount: false,
|
|
296
|
+
mask: false,
|
|
297
|
+
autofocus: false,
|
|
298
|
+
spellcheck: true,
|
|
299
|
+
disabled: false,
|
|
300
|
+
tableView: true,
|
|
301
|
+
modalEdit: false,
|
|
302
|
+
multiple: false,
|
|
303
|
+
persistent: true,
|
|
304
|
+
inputFormat: "plain",
|
|
305
|
+
protected: false,
|
|
306
|
+
dbIndex: false,
|
|
307
|
+
case: "",
|
|
308
|
+
encrypted: false,
|
|
309
|
+
redrawOn: "",
|
|
310
|
+
clearOnHide: true,
|
|
311
|
+
customDefaultValue: "",
|
|
312
|
+
calculateValue: "",
|
|
313
|
+
calculateServer: false,
|
|
314
|
+
allowCalculateOverride: false,
|
|
315
|
+
validateOn: "change",
|
|
316
|
+
validate: {
|
|
317
|
+
required: true,
|
|
318
|
+
pattern: "",
|
|
319
|
+
customMessage: "",
|
|
320
|
+
custom: "",
|
|
321
|
+
customPrivate: false,
|
|
322
|
+
json: "",
|
|
323
|
+
minLength: "",
|
|
324
|
+
maxLength: "",
|
|
325
|
+
strictDateValidation: false,
|
|
326
|
+
multiple: false,
|
|
327
|
+
unique: false
|
|
328
|
+
},
|
|
329
|
+
unique: false,
|
|
330
|
+
errorLabel: "",
|
|
331
|
+
key: "textField",
|
|
332
|
+
tags: [],
|
|
333
|
+
properties: {},
|
|
334
|
+
conditional: { show: null, when: null, eq: "", json: "" },
|
|
335
|
+
customConditional: "",
|
|
336
|
+
logic: [],
|
|
337
|
+
attributes: {},
|
|
338
|
+
overlay: {
|
|
339
|
+
style: "",
|
|
340
|
+
page: "",
|
|
341
|
+
left: "",
|
|
342
|
+
top: "",
|
|
343
|
+
width: "",
|
|
344
|
+
height: ""
|
|
345
|
+
},
|
|
346
|
+
type: "textfield",
|
|
347
|
+
input: true,
|
|
348
|
+
refreshOn: "",
|
|
349
|
+
inputType: "text",
|
|
350
|
+
id: "eqb1o4r",
|
|
351
|
+
defaultValue: ""
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
title: "text-field",
|
|
355
|
+
display: "form",
|
|
356
|
+
access: [
|
|
357
|
+
{
|
|
358
|
+
roles: ["5d0797bc872fc747da559858", "5d0797bc872fc71d05559859", "5d0797bc872fc7da3b55985a"],
|
|
359
|
+
type: "read_all"
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
submissionAccess: [],
|
|
363
|
+
controller: "",
|
|
364
|
+
properties: {},
|
|
365
|
+
settings: {},
|
|
366
|
+
name: "textField",
|
|
367
|
+
path: "textfield",
|
|
368
|
+
machineName: "tcspjwhsevrzpcd:textField"
|
|
369
|
+
},
|
|
370
|
+
displayChoices: defaultDisplayChoices,
|
|
371
|
+
enableTags: false,
|
|
372
|
+
options: { template: "tailwind", iconset: "bx" }
|
|
373
|
+
}
|
|
371
374
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
|
-
import noop from "lodash/noop";
|
|
3
2
|
import React, { PropsWithChildren, useState } from "react";
|
|
4
3
|
|
|
5
4
|
import { iconClass } from "../../utils/iconClass";
|
|
@@ -37,7 +36,7 @@ export interface RemoveModalProps extends ModalProps {
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export function RemoveModal({ maxWidth = "300px", children, ...props }: PropsWithChildren<RemoveModalProps>) {
|
|
40
|
-
const { i18n =
|
|
39
|
+
const { i18n = (f) => f } = props;
|
|
41
40
|
const [value, setValue] = useState();
|
|
42
41
|
|
|
43
42
|
return (
|
|
@@ -49,8 +48,8 @@ export function RemoveModal({ maxWidth = "300px", children, ...props }: PropsWit
|
|
|
49
48
|
value={value}
|
|
50
49
|
footer={RemoveModalFooter}
|
|
51
50
|
>
|
|
52
|
-
<div className=
|
|
53
|
-
<div className=
|
|
51
|
+
<div className='px-4 pt-3 pb-5'>
|
|
52
|
+
<div className='pb-1'>
|
|
54
53
|
{children}
|
|
55
54
|
{i18n("To drop")} <strong>{props.valueToCompare}</strong>,
|
|
56
55
|
{i18n("type the")}
|
|
@@ -9,11 +9,11 @@ export function DefaultCellHeader<Data extends Record<string, unknown> = {}>({ c
|
|
|
9
9
|
return (
|
|
10
10
|
<div className={"table-cell-header"}>
|
|
11
11
|
<div className='table-cell-header__label' {...column.getSortByToggleProps()}>
|
|
12
|
-
<span>{column.render("Header")}</span>
|
|
12
|
+
<span>{column.render("Header") as any}</span>
|
|
13
13
|
|
|
14
|
-
{column.render("ArrowSort")}
|
|
14
|
+
{column.render("ArrowSort") as any}
|
|
15
15
|
</div>
|
|
16
|
-
{column.canFilter ? <div className='table-cell-header__filter'>{column.render("Filter")}</div> : null}
|
|
16
|
+
{column.canFilter ? <div className='table-cell-header__filter'>{column.render("Filter") as any}</div> : null}
|
|
17
17
|
</div>
|
|
18
18
|
);
|
|
19
19
|
}
|