@docupace/ihub-config 1.1.21 → 1.1.22

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