@docupace/ihub-config 1.1.6 → 1.1.7

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.
Files changed (32) hide show
  1. package/README.md +182 -182
  2. package/dist/model/graphs/config/common.graphql +7 -7
  3. package/dist/model/graphs/config/fields.graphql +338 -338
  4. package/dist/model/graphs/config/menu.graphql +48 -48
  5. package/dist/model/graphs/config/mutation.graphql +30 -30
  6. package/dist/model/graphs/config/page.graphql +241 -241
  7. package/dist/model/graphs/config/panel.graphql +30 -30
  8. package/dist/model/graphs/config/query.graphql +55 -55
  9. package/dist/model/graphs/config/selectOptions.graphql +47 -47
  10. package/dist/model/graphs/config/table.graphql +168 -166
  11. package/dist/model/graphs/config/tests.graphql +16 -16
  12. package/dist/model/graphs/config/theme.graphql +41 -41
  13. package/dist/model/graphs/config/ui-components.graphql +10 -10
  14. package/dist/model/graphs/domains/scalars.graphql +3 -3
  15. package/dist/model/graphs/filter.graphql +5 -5
  16. package/dist/model/graphs/schema.graphql +7 -7
  17. package/model/graphs/config/common.graphql +7 -7
  18. package/model/graphs/config/fields.graphql +338 -338
  19. package/model/graphs/config/menu.graphql +48 -48
  20. package/model/graphs/config/mutation.graphql +30 -30
  21. package/model/graphs/config/page.graphql +241 -241
  22. package/model/graphs/config/panel.graphql +30 -30
  23. package/model/graphs/config/query.graphql +55 -55
  24. package/model/graphs/config/selectOptions.graphql +47 -47
  25. package/model/graphs/config/table.graphql +168 -166
  26. package/model/graphs/config/tests.graphql +16 -16
  27. package/model/graphs/config/theme.graphql +41 -41
  28. package/model/graphs/config/ui-components.graphql +10 -10
  29. package/model/graphs/domains/scalars.graphql +3 -3
  30. package/model/graphs/filter.graphql +5 -5
  31. package/model/graphs/schema.graphql +7 -7
  32. package/package.json +80 -78
@@ -1,338 +1,338 @@
1
- interface IField {
2
- defaultValue: String
3
- hidden: Boolean
4
- label: String
5
- name: String!
6
- path: String!
7
- readonly: Boolean
8
- required: Boolean
9
- requiredCondition: String
10
- skipQuery: Boolean
11
- excludeFromQueryInput: Boolean
12
- visibilityCondition: String
13
- disabledCondition: String
14
- }
15
-
16
- interface IDateRangeField {
17
- defaultValue: [String] # [startDate, endDate]
18
- defaultValueExpressions: [String] # [startDate, endDate]
19
- format: String
20
- hidden: Boolean
21
- label: String
22
- name: String!
23
- paths: [String!]!
24
- readonly: Boolean
25
- required: Boolean
26
- requiredCondition: String
27
- skipQuery: Boolean
28
- excludeFromQueryInput: Boolean
29
- visibilityCondition: String
30
- disabledCondition: String
31
- }
32
-
33
- type InputField implements IField & IRowElement & IElement {
34
- cols: Int
35
- defaultValue: String
36
- helperText: String
37
- hidden: Boolean
38
- label: String
39
- masking: FieldMasking
40
- maxLength: Int
41
- minLength: Int
42
- name: String!
43
- path: String!
44
- placeholder: String
45
- readonly: Boolean
46
- required: Boolean
47
- requiredCondition: String
48
- skipQuery: Boolean
49
- excludeFromQueryInput: Boolean
50
- startAdornment: String
51
- type: FieldValueType
52
- validation: InputValidation
53
- visibilityCondition: String
54
- disabledCondition: String
55
- skipDirtyCheck: Boolean
56
- # Start of text area configuration, see https://mui.com/material-ui/react-text-field/#multiline
57
- multiline: Boolean # optional if at least one other text area parameter is provided
58
- rows: Int
59
- maxRows: Int
60
- minRows: Int
61
- # End of text area configuration
62
- }
63
-
64
- type CustomValidator implements IRowElement & IElement {
65
- validationRule: String
66
- errorMessage: String
67
- paths: [String!]!
68
- }
69
-
70
- union Fields = InputField | PhoneField | DateField | DateRangeField | SelectField | ToggleField | BooleanField | TextElement
71
-
72
- type ItemValidation {
73
- type: String!
74
- fields: [String!]!
75
- errorMessage: String
76
- }
77
-
78
- type RepeaterField implements IRowElement & IElement {
79
- path: String!
80
- title: String
81
- label: String
82
- buttonLabel: String
83
- required: Boolean
84
- skipId: Boolean
85
- fields: [Fields!]!
86
- visibilityCondition: String
87
- maxFields: String
88
- validateUnique: Boolean
89
- duplicateMessage: String
90
- itemValidation: ItemValidation
91
- }
92
-
93
- type ControlGroup implements IRowElement & IElement {
94
- path: String!
95
- title: String
96
- skipId: Boolean
97
- controlOptions: ISelectOptions!
98
- fields: [Fields!]!
99
- }
100
-
101
- type PhoneField implements IField & IRowElement & IElement {
102
- cols: Int
103
- defaultValue: String
104
- hidden: Boolean
105
- label: String
106
- name: String!
107
- path: String!
108
- placeholder: String
109
- readonly: Boolean
110
- required: Boolean
111
- requiredCondition: String
112
- skipQuery: Boolean
113
- excludeFromQueryInput: Boolean
114
- visibilityCondition: String
115
- disabledCondition: String
116
- }
117
-
118
- type DateField implements IField & IRowElement & IElement {
119
- cols: Int
120
- defaultValue: String
121
- hidden: Boolean
122
- label: String
123
- name: String!
124
- path: String!
125
- readonly: Boolean
126
- required: Boolean
127
- requiredCondition: String
128
- skipQuery: Boolean
129
- excludeFromQueryInput: Boolean
130
- visibilityCondition: String
131
- disabledCondition: String
132
- minDate: String # e.q. "now" or "2025-03-20"
133
- maxDate: String # e.q. "now" or "2025-03-20"
134
- }
135
-
136
- type DateRangeField implements IDateRangeField & IRowElement & IElement {
137
- cols: Int
138
- defaultValue: [String!] # [startDate, endDate]
139
- defaultValueExpressions: [String!] # [startDate, endDate]
140
- format: String
141
- hidden: Boolean
142
- label: String
143
- name: String!
144
- paths: [String!]!
145
- readonly: Boolean
146
- required: Boolean
147
- requiredCondition: String
148
- skipQuery: Boolean
149
- excludeFromQueryInput: Boolean
150
- visibilityCondition: String
151
- disabledCondition: String
152
- }
153
-
154
- type SelectField implements IField & IRowElement & IElement {
155
- cols: Int
156
- defaultValue: String
157
- defaultValuePath: String
158
- disableClearable: Boolean
159
- hidden: Boolean
160
- label: String
161
- multiple: Boolean
162
- name: String!
163
- path: String!
164
- placeholder: String
165
- readonly: Boolean
166
- required: Boolean
167
- requiredCondition: String
168
- selectOptions: ISelectOptions!
169
- skipQuery: Boolean
170
- excludeFromQueryInput: Boolean
171
- visibilityCondition: String
172
- disabledCondition: String
173
- excludeId: Boolean
174
- helperText: String
175
- autoSelectSingleOption: Boolean
176
- }
177
-
178
- type ToggleField implements IField & IRowElement & IElement {
179
- cols: Int
180
- defaultValue: String
181
- disableClearable: Boolean
182
- hidden: Boolean
183
- label: String
184
- multiple: Boolean
185
- name: String!
186
- path: String!
187
- readonly: Boolean
188
- required: Boolean
189
- requiredCondition: String
190
- selectOptions: ISelectOptions!
191
- size: String # see https://mui.com/material-ui/react-toggle-button/#size
192
- skipQuery: Boolean
193
- excludeFromQueryInput: Boolean
194
- visibilityCondition: String
195
- disabledCondition: String
196
- linkedFields: [String!]
197
- }
198
-
199
- type BooleanField implements IField & IRowElement & IElement {
200
- cols: Int
201
- defaultValue: String
202
- hidden: Boolean
203
- label: String
204
- name: String!
205
- path: String!
206
- readonly: Boolean
207
- required: Boolean
208
- requiredCondition: String
209
- skipQuery: Boolean
210
- excludeFromQueryInput: Boolean
211
- visibilityCondition: String
212
- disabledCondition: String
213
- linkedFields: [String!]
214
- }
215
-
216
- type ChipSelectWithInputField implements IField & IRowElement & IElement {
217
- cols: Int
218
- defaultValue: String
219
- defaultValuePath: String
220
- hidden: Boolean
221
- input: InputField
222
- label: String
223
- name: String!
224
- path: String!
225
- labelPath: String
226
- readonly: Boolean
227
- multiple: Boolean
228
- required: Boolean
229
- requiredCondition: String
230
- selectOptions: ISelectOptions!
231
- skipQuery: Boolean
232
- excludeFromQueryInput: Boolean
233
- subTitle: String
234
- title: String
235
- visibilityCondition: String
236
- disabledCondition: String
237
- linkedFields: [String!]
238
- }
239
-
240
- type CustomField implements IField & IRowElement & IElement {
241
- cols: Int
242
- component: String!
243
- config: JSON
244
- defaultValue: String
245
- hidden: Boolean
246
- label: String
247
- name: String!
248
- path: String!
249
- readonly: Boolean
250
- required: Boolean
251
- requiredCondition: String
252
- skipQuery: Boolean
253
- excludeFromQueryInput: Boolean
254
- visibilityCondition: String
255
- disabledCondition: String
256
- }
257
-
258
- type StatusChipField implements IField & IRowElement & IElement {
259
- align: String
260
- cols: Int
261
- label: String
262
- name: String!
263
- path: String!
264
- }
265
-
266
- type CheckboxGroupValue {
267
- label: String!
268
- path: String!
269
- skipQuery: Boolean
270
- excludeFromQueryInput: Boolean
271
- value: JSON!
272
- }
273
-
274
- type CheckboxGroup implements IRowElement & IElement {
275
- cols: Int
276
- name: String!
277
- required: Boolean
278
- requiredCondition: String
279
- subTitle: String
280
- title: String
281
- values: [CheckboxGroupValue!]!
282
- visibilityCondition: String
283
- disabledCondition: String
284
- }
285
-
286
- enum FieldValueType {
287
- Int
288
- Float
289
- }
290
-
291
- type StringValidationRule {
292
- message: String
293
- value: String
294
- }
295
-
296
- type IntValidationRule {
297
- message: String
298
- value: Int
299
- }
300
-
301
- type FloatValidationRule {
302
- message: String
303
- value: Float
304
- }
305
-
306
- type FormatValidationRule {
307
- name: String
308
- description: String
309
- message: String
310
- expression: String
311
- condition: String
312
- }
313
-
314
- type InputValidation {
315
- email: StringValidationRule
316
- length: IntValidationRule
317
- format: [FormatValidationRule!]
318
- min: FloatValidationRule
319
- max: FloatValidationRule
320
- }
321
-
322
- # see more https://s-yadav.github.io/react-number-format/docs/props
323
- type PatternMasking {
324
- dynamic: Boolean
325
- format: String!
326
- mask: String
327
- }
328
-
329
- # see more https://s-yadav.github.io/react-number-format/docs/props
330
- type NumericMasking {
331
- thousandSeparator: String
332
- decimalSeparator: String
333
- decimalScale: Number
334
- fixedDecimalScale: Boolean
335
- allowNegative: Boolean
336
- }
337
-
338
- union FieldMasking = PatternMasking | NumericMasking
1
+ interface IField {
2
+ defaultValue: String
3
+ hidden: Boolean
4
+ label: String
5
+ name: String!
6
+ path: String!
7
+ readonly: Boolean
8
+ required: Boolean
9
+ requiredCondition: String
10
+ skipQuery: Boolean
11
+ excludeFromQueryInput: Boolean
12
+ visibilityCondition: String
13
+ disabledCondition: String
14
+ }
15
+
16
+ interface IDateRangeField {
17
+ defaultValue: [String] # [startDate, endDate]
18
+ defaultValueExpressions: [String] # [startDate, endDate]
19
+ format: String
20
+ hidden: Boolean
21
+ label: String
22
+ name: String!
23
+ paths: [String!]!
24
+ readonly: Boolean
25
+ required: Boolean
26
+ requiredCondition: String
27
+ skipQuery: Boolean
28
+ excludeFromQueryInput: Boolean
29
+ visibilityCondition: String
30
+ disabledCondition: String
31
+ }
32
+
33
+ type InputField implements IField & IRowElement & IElement {
34
+ cols: Int
35
+ defaultValue: String
36
+ helperText: String
37
+ hidden: Boolean
38
+ label: String
39
+ masking: FieldMasking
40
+ maxLength: Int
41
+ minLength: Int
42
+ name: String!
43
+ path: String!
44
+ placeholder: String
45
+ readonly: Boolean
46
+ required: Boolean
47
+ requiredCondition: String
48
+ skipQuery: Boolean
49
+ excludeFromQueryInput: Boolean
50
+ startAdornment: String
51
+ type: FieldValueType
52
+ validation: InputValidation
53
+ visibilityCondition: String
54
+ disabledCondition: String
55
+ skipDirtyCheck: Boolean
56
+ # Start of text area configuration, see https://mui.com/material-ui/react-text-field/#multiline
57
+ multiline: Boolean # optional if at least one other text area parameter is provided
58
+ rows: Int
59
+ maxRows: Int
60
+ minRows: Int
61
+ # End of text area configuration
62
+ }
63
+
64
+ type CustomValidator implements IRowElement & IElement {
65
+ validationRule: String
66
+ errorMessage: String
67
+ paths: [String!]!
68
+ }
69
+
70
+ union Fields = InputField | PhoneField | DateField | DateRangeField | SelectField | ToggleField | BooleanField | TextElement
71
+
72
+ type ItemValidation {
73
+ type: String!
74
+ fields: [String!]!
75
+ errorMessage: String
76
+ }
77
+
78
+ type RepeaterField implements IRowElement & IElement {
79
+ path: String!
80
+ title: String
81
+ label: String
82
+ buttonLabel: String
83
+ required: Boolean
84
+ skipId: Boolean
85
+ fields: [Fields!]!
86
+ visibilityCondition: String
87
+ maxFields: String
88
+ validateUnique: Boolean
89
+ duplicateMessage: String
90
+ itemValidation: ItemValidation
91
+ }
92
+
93
+ type ControlGroup implements IRowElement & IElement {
94
+ path: String!
95
+ title: String
96
+ skipId: Boolean
97
+ controlOptions: ISelectOptions!
98
+ fields: [Fields!]!
99
+ }
100
+
101
+ type PhoneField implements IField & IRowElement & IElement {
102
+ cols: Int
103
+ defaultValue: String
104
+ hidden: Boolean
105
+ label: String
106
+ name: String!
107
+ path: String!
108
+ placeholder: String
109
+ readonly: Boolean
110
+ required: Boolean
111
+ requiredCondition: String
112
+ skipQuery: Boolean
113
+ excludeFromQueryInput: Boolean
114
+ visibilityCondition: String
115
+ disabledCondition: String
116
+ }
117
+
118
+ type DateField implements IField & IRowElement & IElement {
119
+ cols: Int
120
+ defaultValue: String
121
+ hidden: Boolean
122
+ label: String
123
+ name: String!
124
+ path: String!
125
+ readonly: Boolean
126
+ required: Boolean
127
+ requiredCondition: String
128
+ skipQuery: Boolean
129
+ excludeFromQueryInput: Boolean
130
+ visibilityCondition: String
131
+ disabledCondition: String
132
+ minDate: String # e.q. "now" or "2025-03-20"
133
+ maxDate: String # e.q. "now" or "2025-03-20"
134
+ }
135
+
136
+ type DateRangeField implements IDateRangeField & IRowElement & IElement {
137
+ cols: Int
138
+ defaultValue: [String!] # [startDate, endDate]
139
+ defaultValueExpressions: [String!] # [startDate, endDate]
140
+ format: String
141
+ hidden: Boolean
142
+ label: String
143
+ name: String!
144
+ paths: [String!]!
145
+ readonly: Boolean
146
+ required: Boolean
147
+ requiredCondition: String
148
+ skipQuery: Boolean
149
+ excludeFromQueryInput: Boolean
150
+ visibilityCondition: String
151
+ disabledCondition: String
152
+ }
153
+
154
+ type SelectField implements IField & IRowElement & IElement {
155
+ cols: Int
156
+ defaultValue: String
157
+ defaultValuePath: String
158
+ disableClearable: Boolean
159
+ hidden: Boolean
160
+ label: String
161
+ multiple: Boolean
162
+ name: String!
163
+ path: String!
164
+ placeholder: String
165
+ readonly: Boolean
166
+ required: Boolean
167
+ requiredCondition: String
168
+ selectOptions: ISelectOptions!
169
+ skipQuery: Boolean
170
+ excludeFromQueryInput: Boolean
171
+ visibilityCondition: String
172
+ disabledCondition: String
173
+ excludeId: Boolean
174
+ helperText: String
175
+ autoSelectSingleOption: Boolean
176
+ }
177
+
178
+ type ToggleField implements IField & IRowElement & IElement {
179
+ cols: Int
180
+ defaultValue: String
181
+ disableClearable: Boolean
182
+ hidden: Boolean
183
+ label: String
184
+ multiple: Boolean
185
+ name: String!
186
+ path: String!
187
+ readonly: Boolean
188
+ required: Boolean
189
+ requiredCondition: String
190
+ selectOptions: ISelectOptions!
191
+ size: String # see https://mui.com/material-ui/react-toggle-button/#size
192
+ skipQuery: Boolean
193
+ excludeFromQueryInput: Boolean
194
+ visibilityCondition: String
195
+ disabledCondition: String
196
+ linkedFields: [String!]
197
+ }
198
+
199
+ type BooleanField implements IField & IRowElement & IElement {
200
+ cols: Int
201
+ defaultValue: String
202
+ hidden: Boolean
203
+ label: String
204
+ name: String!
205
+ path: String!
206
+ readonly: Boolean
207
+ required: Boolean
208
+ requiredCondition: String
209
+ skipQuery: Boolean
210
+ excludeFromQueryInput: Boolean
211
+ visibilityCondition: String
212
+ disabledCondition: String
213
+ linkedFields: [String!]
214
+ }
215
+
216
+ type ChipSelectWithInputField implements IField & IRowElement & IElement {
217
+ cols: Int
218
+ defaultValue: String
219
+ defaultValuePath: String
220
+ hidden: Boolean
221
+ input: InputField
222
+ label: String
223
+ name: String!
224
+ path: String!
225
+ labelPath: String
226
+ readonly: Boolean
227
+ multiple: Boolean
228
+ required: Boolean
229
+ requiredCondition: String
230
+ selectOptions: ISelectOptions!
231
+ skipQuery: Boolean
232
+ excludeFromQueryInput: Boolean
233
+ subTitle: String
234
+ title: String
235
+ visibilityCondition: String
236
+ disabledCondition: String
237
+ linkedFields: [String!]
238
+ }
239
+
240
+ type CustomField implements IField & IRowElement & IElement {
241
+ cols: Int
242
+ component: String!
243
+ config: JSON
244
+ defaultValue: String
245
+ hidden: Boolean
246
+ label: String
247
+ name: String!
248
+ path: String!
249
+ readonly: Boolean
250
+ required: Boolean
251
+ requiredCondition: String
252
+ skipQuery: Boolean
253
+ excludeFromQueryInput: Boolean
254
+ visibilityCondition: String
255
+ disabledCondition: String
256
+ }
257
+
258
+ type StatusChipField implements IField & IRowElement & IElement {
259
+ align: String
260
+ cols: Int
261
+ label: String
262
+ name: String!
263
+ path: String!
264
+ }
265
+
266
+ type CheckboxGroupValue {
267
+ label: String!
268
+ path: String!
269
+ skipQuery: Boolean
270
+ excludeFromQueryInput: Boolean
271
+ value: JSON!
272
+ }
273
+
274
+ type CheckboxGroup implements IRowElement & IElement {
275
+ cols: Int
276
+ name: String!
277
+ required: Boolean
278
+ requiredCondition: String
279
+ subTitle: String
280
+ title: String
281
+ values: [CheckboxGroupValue!]!
282
+ visibilityCondition: String
283
+ disabledCondition: String
284
+ }
285
+
286
+ enum FieldValueType {
287
+ Int
288
+ Float
289
+ }
290
+
291
+ type StringValidationRule {
292
+ message: String
293
+ value: String
294
+ }
295
+
296
+ type IntValidationRule {
297
+ message: String
298
+ value: Int
299
+ }
300
+
301
+ type FloatValidationRule {
302
+ message: String
303
+ value: Float
304
+ }
305
+
306
+ type FormatValidationRule {
307
+ name: String
308
+ description: String
309
+ message: String
310
+ expression: String
311
+ condition: String
312
+ }
313
+
314
+ type InputValidation {
315
+ email: StringValidationRule
316
+ length: IntValidationRule
317
+ format: [FormatValidationRule!]
318
+ min: FloatValidationRule
319
+ max: FloatValidationRule
320
+ }
321
+
322
+ # see more https://s-yadav.github.io/react-number-format/docs/props
323
+ type PatternMasking {
324
+ dynamic: Boolean
325
+ format: String!
326
+ mask: String
327
+ }
328
+
329
+ # see more https://s-yadav.github.io/react-number-format/docs/props
330
+ type NumericMasking {
331
+ thousandSeparator: String
332
+ decimalSeparator: String
333
+ decimalScale: Number
334
+ fixedDecimalScale: Boolean
335
+ allowNegative: Boolean
336
+ }
337
+
338
+ union FieldMasking = PatternMasking | NumericMasking