@docupace/ihub-config 1.1.19 → 1.1.20

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 (37) 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 -379
  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 +80 -80
  10. package/dist/model/graphs/config/selectOptions.graphql +47 -47
  11. package/dist/model/graphs/config/table.graphql +182 -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/dist/types/graphql.d.ts +317 -2
  19. package/dist/types/graphql.d.ts.map +1 -1
  20. package/dist/types/graphql.js.map +1 -1
  21. package/model/graphs/config/common.graphql +7 -7
  22. package/model/graphs/config/fields.graphql +382 -379
  23. package/model/graphs/config/menu.graphql +54 -54
  24. package/model/graphs/config/mutation.graphql +30 -30
  25. package/model/graphs/config/page.graphql +256 -256
  26. package/model/graphs/config/panel.graphql +30 -30
  27. package/model/graphs/config/query.graphql +84 -84
  28. package/model/graphs/config/rules.graphql +80 -80
  29. package/model/graphs/config/selectOptions.graphql +47 -47
  30. package/model/graphs/config/table.graphql +182 -182
  31. package/model/graphs/config/tests.graphql +16 -16
  32. package/model/graphs/config/theme.graphql +41 -41
  33. package/model/graphs/config/ui-components.graphql +10 -10
  34. package/model/graphs/domains/scalars.graphql +3 -3
  35. package/model/graphs/filter.graphql +5 -5
  36. package/model/graphs/schema.graphql +7 -7
  37. package/package.json +81 -79
@@ -1,379 +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
-
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
- validation: FieldValidation
117
- }
118
-
119
- type DateField implements IField & IRowElement & IElement {
120
- cols: Int
121
- defaultValue: String
122
- hidden: Boolean
123
- label: String
124
- name: String!
125
- path: String!
126
- readonly: Boolean
127
- required: Boolean
128
- requiredCondition: String
129
- skipQuery: Boolean
130
- excludeFromQueryInput: Boolean
131
- visibilityCondition: String
132
- disabledCondition: String
133
- minDate: String # e.q. "now" or "2025-03-20"
134
- maxDate: String # e.q. "now" or "2025-03-20"
135
- validation: FieldValidation
136
- }
137
-
138
- type DateRangeField implements IDateRangeField & IRowElement & IElement {
139
- cols: Int
140
- defaultValue: [String!] # [startDate, endDate]
141
- defaultValueExpressions: [String!] # [startDate, endDate]
142
- format: String
143
- hidden: Boolean
144
- label: String
145
- name: String!
146
- paths: [String!]!
147
- readonly: Boolean
148
- required: Boolean
149
- requiredCondition: String
150
- skipQuery: Boolean
151
- excludeFromQueryInput: Boolean
152
- visibilityCondition: String
153
- disabledCondition: String
154
- }
155
-
156
- type SelectField implements IField & IRowElement & IElement {
157
- cols: Int
158
- defaultValue: String
159
- defaultValuePath: String
160
- disableClearable: Boolean
161
- hidden: Boolean
162
- label: String
163
- multiple: Boolean
164
- name: String!
165
- path: String!
166
- placeholder: String
167
- readonly: Boolean
168
- required: Boolean
169
- requiredCondition: String
170
- selectOptions: ISelectOptions!
171
- skipQuery: Boolean
172
- excludeFromQueryInput: Boolean
173
- visibilityCondition: String
174
- disabledCondition: String
175
- excludeId: Boolean
176
- helperText: String
177
- autoSelectSingleOption: Boolean
178
- validation: FieldValidation
179
- }
180
-
181
- type ToggleField implements IField & IRowElement & IElement {
182
- cols: Int
183
- defaultValue: String
184
- disableClearable: Boolean
185
- hidden: Boolean
186
- label: String
187
- multiple: Boolean
188
- name: String!
189
- path: String!
190
- readonly: Boolean
191
- required: Boolean
192
- requiredCondition: String
193
- selectOptions: ISelectOptions!
194
- size: String # see https://mui.com/material-ui/react-toggle-button/#size
195
- skipQuery: Boolean
196
- excludeFromQueryInput: Boolean
197
- visibilityCondition: String
198
- disabledCondition: String
199
- linkedFields: [String!]
200
- validation: FieldValidation
201
- }
202
-
203
- type BooleanField implements IField & IRowElement & IElement {
204
- cols: Int
205
- defaultValue: String
206
- hidden: Boolean
207
- label: String
208
- name: String!
209
- path: String!
210
- readonly: Boolean
211
- required: Boolean
212
- requiredCondition: String
213
- skipQuery: Boolean
214
- excludeFromQueryInput: Boolean
215
- visibilityCondition: String
216
- disabledCondition: String
217
- linkedFields: [String!]
218
- validation: FieldValidation
219
- }
220
-
221
- type ChipSelectWithInputField implements IField & IRowElement & IElement {
222
- cols: Int
223
- defaultValue: String
224
- defaultValuePath: String
225
- hidden: Boolean
226
- input: InputField
227
- label: String
228
- name: String!
229
- path: String!
230
- labelPath: String
231
- readonly: Boolean
232
- multiple: Boolean
233
- required: Boolean
234
- requiredCondition: String
235
- selectOptions: ISelectOptions!
236
- skipQuery: Boolean
237
- excludeFromQueryInput: Boolean
238
- subTitle: String
239
- title: String
240
- visibilityCondition: String
241
- disabledCondition: String
242
- linkedFields: [String!]
243
- validation: ChipSelectValidation
244
- }
245
-
246
- type CustomField implements IField & IRowElement & IElement {
247
- cols: Int
248
- component: String!
249
- config: JSON
250
- defaultValue: String
251
- hidden: Boolean
252
- label: String
253
- name: String!
254
- path: String!
255
- readonly: Boolean
256
- required: Boolean
257
- requiredCondition: String
258
- skipQuery: Boolean
259
- excludeFromQueryInput: Boolean
260
- visibilityCondition: String
261
- disabledCondition: String
262
- validation: FieldValidation
263
- }
264
-
265
- type StatusChipField implements IField & IRowElement & IElement {
266
- align: String
267
- cols: Int
268
- label: String
269
- name: String!
270
- path: String!
271
- validation: FieldValidation
272
- }
273
-
274
- type CheckboxGroupValue {
275
- label: String!
276
- path: String!
277
- skipQuery: Boolean
278
- excludeFromQueryInput: Boolean
279
- value: JSON!
280
- }
281
-
282
- type CheckboxGroup implements IRowElement & IElement {
283
- cols: Int
284
- name: String!
285
- required: Boolean
286
- requiredCondition: String
287
- subTitle: String
288
- title: String
289
- values: [CheckboxGroupValue!]!
290
- visibilityCondition: String
291
- disabledCondition: String
292
- }
293
-
294
- enum FieldValueType {
295
- Int
296
- Float
297
- }
298
-
299
- type FieldValidation {
300
- expression: String
301
- message: String
302
- }
303
-
304
- type StringValidationRule {
305
- message: String
306
- value: String
307
- }
308
-
309
- type IntValidationRule {
310
- message: String
311
- value: Int
312
- }
313
-
314
- type FloatValidationRule {
315
- message: String
316
- value: Float
317
- }
318
-
319
- type FormatValidationRule {
320
- name: String
321
- description: String
322
- message: String
323
- expression: String
324
- condition: String
325
- }
326
-
327
- type InputValidation {
328
- email: StringValidationRule
329
- length: IntValidationRule
330
- format: [FormatValidationRule!]
331
- min: FloatValidationRule
332
- max: FloatValidationRule
333
- }
334
-
335
- type ChipSelectValidation {
336
- compatibleWith: CompatibleWithRule
337
- uniqueInList: UniqueInListRule
338
- }
339
-
340
- type CompatibleWithRule {
341
- field: String!
342
- rules: [CompatibleWithRuleEntry!]!
343
- }
344
-
345
- type CompatibleWithRuleEntry {
346
- when: WhenClause!
347
- allowed: [String!]!
348
- message: String!
349
- }
350
-
351
- type WhenClause {
352
- equals: String
353
- in: [String!]
354
- }
355
-
356
- type UniqueInListRule {
357
- listPaths: [String!]!
358
- itemValuePath: String!
359
- value: String
360
- message: String!
361
- }
362
-
363
- # see more https://s-yadav.github.io/react-number-format/docs/props
364
- type PatternMasking {
365
- dynamic: Boolean
366
- format: String!
367
- mask: String
368
- }
369
-
370
- # see more https://s-yadav.github.io/react-number-format/docs/props
371
- type NumericMasking {
372
- thousandSeparator: String
373
- decimalSeparator: String
374
- decimalScale: Number
375
- fixedDecimalScale: Boolean
376
- allowNegative: Boolean
377
- }
378
-
379
- 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