@arquimedes.co/eureka-forms 2.0.54 → 2.0.56
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/dist/@Types/Condition.d.ts +54 -2
- package/dist/@Types/Draft/Draft.d.ts +12 -0
- package/dist/@Types/Draft/Draft.js +1 -0
- package/dist/@Types/Draft/DraftEntityData.d.ts +50 -0
- package/dist/@Types/Draft/DraftEntityData.js +1 -0
- package/dist/@Types/Entity.d.ts +33 -0
- package/dist/@Types/Entity.js +1 -0
- package/dist/@Types/Form.d.ts +7 -0
- package/dist/@Types/FormStep.d.ts +7 -0
- package/dist/App/App.css +14 -0
- package/dist/App/AppFunctions.d.ts +2 -2
- package/dist/App/AppFunctions.js +167 -156
- package/dist/App/AppHooks.js +12 -8
- package/dist/Contexts/FormContext.d.ts +2 -0
- package/dist/Contexts/FormContext.js +49 -0
- package/dist/Form/ConfirmationDialog/ConfirmationDialog.js +30 -5
- package/dist/Form/ConfirmationDialog/ConfirmationDialog.module.css +5 -3
- package/dist/Form/Form.js +1 -1
- package/dist/Form/FormFunctions.js +15 -12
- package/dist/Form/FormTypes/StepperForm/StepperForm.js +10 -7
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.d.ts +12 -0
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.js +49 -0
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValueDialog/MaterialEntityValueDialog.module.css +60 -0
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +103 -49
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElementComponent.d.ts +3 -0
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElementComponent.js +3 -0
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.d.ts +5 -0
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.js +204 -0
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PagedMapperElement/PagedMapperElement.module.css +75 -0
- package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +6 -2
- package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.js +44 -14
- package/dist/FormSteps/StepFunctions.d.ts +11 -1
- package/dist/FormSteps/StepFunctions.js +146 -1
- package/dist/FormSteps/StepHooks.js +12 -4
- package/dist/Shared/CustomBtn/CustomBtn.d.ts +7 -2
- package/dist/Shared/CustomBtn/CustomBtn.js +14 -5
- package/dist/Shared/CustomBtn/CustomBtn.module.css +0 -2
- package/dist/States/GlobalSlice.d.ts +9 -0
- package/dist/States/GlobalSlice.js +5 -0
- package/dist/States/SiteSlice.d.ts +32 -3
- package/dist/States/SiteSlice.js +50 -5
- package/dist/Utils/DraftFunctions.d.ts +21 -0
- package/dist/Utils/DraftFunctions.js +239 -0
- package/dist/constants/ConditionTypes.d.ts +6 -1
- package/dist/constants/ConditionTypes.js +5 -0
- package/dist/constants/Draft/DraftEntityDataTypes.d.ts +10 -0
- package/dist/constants/Draft/DraftEntityDataTypes.js +12 -0
- package/dist/constants/Draft/DraftEntityTypes.d.ts +3 -0
- package/dist/constants/Draft/DraftEntityTypes.js +4 -0
- package/dist/constants/Draft/DraftStyleTypes.d.ts +7 -0
- package/dist/constants/Draft/DraftStyleTypes.js +8 -0
- package/dist/constants/EntityPropertyTypes.d.ts +9 -0
- package/dist/constants/EntityPropertyTypes.js +10 -0
- package/dist/constants/FormStepTypes.d.ts +1 -0
- package/dist/constants/FormStepTypes.js +1 -0
- package/dist/constants/TicketPropertyTypes.d.ts +3 -0
- package/dist/constants/TicketPropertyTypes.js +4 -0
- package/package.json +2 -2
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { nanoid } from '@reduxjs/toolkit';
|
|
2
|
+
import { DraftEntityDataMappingTypes, DraftEntityDataTypes, } from '../constants/Draft/DraftEntityDataTypes';
|
|
3
|
+
import { DraftEntityTypes } from '../constants/Draft/DraftEntityTypes';
|
|
4
|
+
import { evaluateCondition } from '../FormSteps/StepFunctions';
|
|
5
|
+
import { getLocale } from '../Form/Form';
|
|
6
|
+
import { TicketPropertyTypes } from '../constants/TicketPropertyTypes';
|
|
7
|
+
import { format } from 'date-fns';
|
|
8
|
+
import EntityPropertyTypes from '../constants/EntityPropertyTypes';
|
|
2
9
|
export function stringToDraft(text) {
|
|
3
10
|
var draftStructure = {
|
|
4
11
|
blocks: [],
|
|
@@ -41,3 +48,235 @@ export var getRawText = function (draft, text) {
|
|
|
41
48
|
};
|
|
42
49
|
}
|
|
43
50
|
};
|
|
51
|
+
export function mapDraftEntities(cache, draft) {
|
|
52
|
+
var newBlocks = [];
|
|
53
|
+
var blocks = draft.blocks, entityMap = draft.entityMap;
|
|
54
|
+
for (var _i = 0, blocks_1 = blocks; _i < blocks_1.length; _i++) {
|
|
55
|
+
var block = blocks_1[_i];
|
|
56
|
+
newBlocks.push.apply(newBlocks, setBlockEntities(cache, block, entityMap));
|
|
57
|
+
}
|
|
58
|
+
return { blocks: blocks, entityMap: entityMap };
|
|
59
|
+
}
|
|
60
|
+
function setBlockEntities(cache, block, entityMap) {
|
|
61
|
+
//Con esta funcion saca el texto remplazado de la entidad
|
|
62
|
+
var entities = block.entityRanges.sort(function (s1, s2) { return s2.offset - s1.offset; });
|
|
63
|
+
var newEntities = [];
|
|
64
|
+
for (var _i = 0, entities_1 = entities; _i < entities_1.length; _i++) {
|
|
65
|
+
var entity = entities_1[_i];
|
|
66
|
+
var styles = block.inlineStyleRanges.sort(function (s1, s2) { return s2.offset - s1.offset; });
|
|
67
|
+
var entityEnd = entity.offset + entity.length - 1;
|
|
68
|
+
var entityData = entityMap[entity.key];
|
|
69
|
+
if (entityData.type === DraftEntityTypes.EUREKA) {
|
|
70
|
+
var mappedBlock = handleEntityMapper(cache, entityData.data);
|
|
71
|
+
var entityText = mappedBlock.text;
|
|
72
|
+
var entitySizeDelta = entityText.length - entity.length;
|
|
73
|
+
for (var _a = 0, styles_1 = styles; _a < styles_1.length; _a++) {
|
|
74
|
+
var style = styles_1[_a];
|
|
75
|
+
var styleEnd = style.offset + style.length - 1;
|
|
76
|
+
//revisa si el estilo termina después del inicio del entity, de lo contrario el estilo no se ve afectado por el entity
|
|
77
|
+
if (styleEnd > entity.offset) {
|
|
78
|
+
//si el estilo termina en la mitad del entity
|
|
79
|
+
if (styleEnd < entityEnd) {
|
|
80
|
+
style.length = entityEnd - style.offset + 1;
|
|
81
|
+
}
|
|
82
|
+
//si el estilo empieza en la mitad del entity
|
|
83
|
+
if (style.offset < entityEnd &&
|
|
84
|
+
style.offset > entity.offset) {
|
|
85
|
+
style.length =
|
|
86
|
+
style.length + style.offset - entity.offset;
|
|
87
|
+
style.offset = entity.offset;
|
|
88
|
+
}
|
|
89
|
+
//Ahora se modifica el style con base en el tamaño del entityText a reemplazar
|
|
90
|
+
//Caso 1: Si el estilo rodea el entity
|
|
91
|
+
if (style.offset <= entity.offset) {
|
|
92
|
+
style.length = style.length + entitySizeDelta;
|
|
93
|
+
}
|
|
94
|
+
//Caso 2: Si el estilo empieza después del entity
|
|
95
|
+
if (style.offset > entityEnd + 1) {
|
|
96
|
+
style.offset = style.offset + entitySizeDelta;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//reemplaza el entity por su text
|
|
101
|
+
var originalBlockText = block.text;
|
|
102
|
+
block.text =
|
|
103
|
+
block.text.substring(0, entity.offset) +
|
|
104
|
+
entityText +
|
|
105
|
+
originalBlockText.substring(entityEnd + 1, originalBlockText.length);
|
|
106
|
+
block.entityRanges = block.entityRanges.filter(function (entity) {
|
|
107
|
+
return newEntities.includes(entity.key);
|
|
108
|
+
});
|
|
109
|
+
delete entityMap[entity.key];
|
|
110
|
+
/** Add new block styles */
|
|
111
|
+
if (!mappedBlock.inlineStyleRanges)
|
|
112
|
+
continue;
|
|
113
|
+
var _loop_1 = function (style) {
|
|
114
|
+
style.offset += entity.offset;
|
|
115
|
+
/** Obs: no hay estilos(ya existentes) que se partan en la mitad de la entidad! */
|
|
116
|
+
/** If new style intersects with current style of same type modify the current one */
|
|
117
|
+
var currentInStart = block.inlineStyleRanges.find(function (blockStyle) {
|
|
118
|
+
return blockStyle.offset <= style.offset &&
|
|
119
|
+
blockStyle.offset + blockStyle.length > style.offset &&
|
|
120
|
+
blockStyle.style === style.style;
|
|
121
|
+
});
|
|
122
|
+
if (currentInStart) {
|
|
123
|
+
//If the current style covers the new style's range, ignore it
|
|
124
|
+
if (currentInStart.offset + currentInStart.length >
|
|
125
|
+
style.offset + style.length)
|
|
126
|
+
return "continue";
|
|
127
|
+
else {
|
|
128
|
+
//Modify the current style to cover the new style's range
|
|
129
|
+
currentInStart.length =
|
|
130
|
+
style.offset + style.length - currentInStart.offset;
|
|
131
|
+
return "continue";
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
var currentInEnd = block.inlineStyleRanges.find(function (blockStyle) {
|
|
135
|
+
return blockStyle.offset < style.offset + style.length &&
|
|
136
|
+
blockStyle.offset + blockStyle.length >
|
|
137
|
+
style.offset + style.length &&
|
|
138
|
+
blockStyle.style === style.style;
|
|
139
|
+
});
|
|
140
|
+
if (currentInEnd) {
|
|
141
|
+
if (currentInEnd.offset < style.offset)
|
|
142
|
+
return "continue";
|
|
143
|
+
currentInEnd.offset = style.offset;
|
|
144
|
+
return "continue";
|
|
145
|
+
}
|
|
146
|
+
block.inlineStyleRanges.push(style);
|
|
147
|
+
};
|
|
148
|
+
for (var _b = 0, _c = mappedBlock.inlineStyleRanges; _b < _c.length; _b++) {
|
|
149
|
+
var style = _c[_b];
|
|
150
|
+
_loop_1(style);
|
|
151
|
+
}
|
|
152
|
+
//No filtrar sino cambiar? o poner en estado "Mappeado?"
|
|
153
|
+
//Actualmente el draft queda sin entityMap y sin entityRanges en los bloques. para cambiarlo quitar el delete y el filter
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
newEntities.push(entity);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
block.entityRanges = newEntities;
|
|
160
|
+
return [block];
|
|
161
|
+
}
|
|
162
|
+
var handleEntityMapper = function (cache, entityData) {
|
|
163
|
+
var _a;
|
|
164
|
+
if (entityData.condition &&
|
|
165
|
+
entityData.type !== DraftEntityDataTypes.CONDITION_MET) {
|
|
166
|
+
if (!evaluateCondition(entityData.condition, cache.dependencies))
|
|
167
|
+
return { text: '' };
|
|
168
|
+
}
|
|
169
|
+
var value = entityMapper(cache, entityData);
|
|
170
|
+
if (!(value === null || value === void 0 ? void 0 : value.text) && entityData.fallback) {
|
|
171
|
+
value = { text: entityData.fallback };
|
|
172
|
+
}
|
|
173
|
+
if ((value === null || value === void 0 ? void 0 : value.text) && entityData.prefix) {
|
|
174
|
+
value.text = entityData.prefix + value.text;
|
|
175
|
+
}
|
|
176
|
+
if ((value === null || value === void 0 ? void 0 : value.text) && entityData.suffix) {
|
|
177
|
+
value.text = value.text + entityData.suffix;
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
text: (_a = value === null || value === void 0 ? void 0 : value.text) !== null && _a !== void 0 ? _a : '',
|
|
181
|
+
inlineStyleRanges: value === null || value === void 0 ? void 0 : value.inlineStyleRanges,
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
var entityMapper = function (cache, entityData) {
|
|
185
|
+
var _a, _b, _c, _d, _e, _f;
|
|
186
|
+
switch (entityData.type) {
|
|
187
|
+
case DraftEntityDataTypes.CONDITION_MET: {
|
|
188
|
+
if (evaluateCondition(entityData.condition, cache.dependencies)) {
|
|
189
|
+
return { text: (_a = entityData.ifTrue) !== null && _a !== void 0 ? _a : 'Sí' };
|
|
190
|
+
}
|
|
191
|
+
return { text: (_b = entityData.ifFalse) !== null && _b !== void 0 ? _b : 'No' };
|
|
192
|
+
}
|
|
193
|
+
case DraftEntityDataMappingTypes.ENTITYVALUE_MAPPING: {
|
|
194
|
+
if (!(cache === null || cache === void 0 ? void 0 : cache.entityValue))
|
|
195
|
+
throw new Error('Invalid EntityValue Mapping');
|
|
196
|
+
var property = (_c = cache.entity) === null || _c === void 0 ? void 0 : _c.steps[entityData.idProperty];
|
|
197
|
+
if (!property)
|
|
198
|
+
return null;
|
|
199
|
+
var text = calcEntityProperty(property, cache.entityValue[entityData.idProperty]);
|
|
200
|
+
return text ? { text: text } : null;
|
|
201
|
+
}
|
|
202
|
+
case DraftEntityDataTypes.COMPANY: {
|
|
203
|
+
var company = cache.company;
|
|
204
|
+
if (company) {
|
|
205
|
+
var property = (_d = cache.entity) === null || _d === void 0 ? void 0 : _d.steps[entityData.idProperty];
|
|
206
|
+
if (!property)
|
|
207
|
+
return null;
|
|
208
|
+
var text = calcEntityProperty(property, company[entityData.idProperty]);
|
|
209
|
+
return text ? { text: text } : null;
|
|
210
|
+
}
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
case DraftEntityDataTypes.TICKET: {
|
|
214
|
+
var text = calcTicketProperty(cache, entityData);
|
|
215
|
+
return text ? { text: text } : null;
|
|
216
|
+
}
|
|
217
|
+
case DraftEntityDataTypes.NESTED: {
|
|
218
|
+
var blocks = setBlockEntities(cache, JSON.parse(JSON.stringify(entityData.block)), JSON.parse(JSON.stringify(entityData.entityMap)));
|
|
219
|
+
var block = { text: '', inlineStyleRanges: [] };
|
|
220
|
+
for (var i = 0; i < blocks.length; i++) {
|
|
221
|
+
var nested = blocks[i];
|
|
222
|
+
if (i > 0)
|
|
223
|
+
block.text += ' ';
|
|
224
|
+
var offset = block.text.length;
|
|
225
|
+
block.text += nested.text;
|
|
226
|
+
for (var _i = 0, _g = nested.inlineStyleRanges; _i < _g.length; _i++) {
|
|
227
|
+
var style = _g[_i];
|
|
228
|
+
style.offset += offset;
|
|
229
|
+
(_e = block.inlineStyleRanges) === null || _e === void 0 ? void 0 : _e.push(style);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return block;
|
|
233
|
+
}
|
|
234
|
+
case DraftEntityDataTypes.DATE: {
|
|
235
|
+
var millis = entityData.days * 86400000 +
|
|
236
|
+
entityData.hours * 3600000 +
|
|
237
|
+
entityData.minutes * 60000;
|
|
238
|
+
var subtract = false;
|
|
239
|
+
var date = new Date(new Date().getTime() + (subtract ? -millis : millis));
|
|
240
|
+
return {
|
|
241
|
+
text: format(date, (_f = entityData.format) !== null && _f !== void 0 ? _f : 'Pp', {
|
|
242
|
+
locale: getLocale(),
|
|
243
|
+
}),
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
default:
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
return null;
|
|
250
|
+
};
|
|
251
|
+
function calcTicketProperty(cache, entityData) {
|
|
252
|
+
var _a, _b;
|
|
253
|
+
var property = entityData.property;
|
|
254
|
+
switch (property) {
|
|
255
|
+
case TicketPropertyTypes.CASENUMBER:
|
|
256
|
+
return (_b = (_a = cache.ticket) === null || _a === void 0 ? void 0 : _a.caseNumber) !== null && _b !== void 0 ? _b : null;
|
|
257
|
+
default:
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
return null;
|
|
261
|
+
}
|
|
262
|
+
function calcEntityProperty(property, value) {
|
|
263
|
+
if (!value)
|
|
264
|
+
return null;
|
|
265
|
+
switch (property.type) {
|
|
266
|
+
case EntityPropertyTypes.TEXTAREA:
|
|
267
|
+
return value.value;
|
|
268
|
+
case EntityPropertyTypes.NAME:
|
|
269
|
+
case EntityPropertyTypes.TEXTINPUT:
|
|
270
|
+
case EntityPropertyTypes.SELECTOR:
|
|
271
|
+
return value;
|
|
272
|
+
case EntityPropertyTypes.DATEPICKER:
|
|
273
|
+
return format(new Date(value), property.pickTime ? 'Pp' : 'P', {
|
|
274
|
+
locale: getLocale(),
|
|
275
|
+
});
|
|
276
|
+
case EntityPropertyTypes.CHECKBOX:
|
|
277
|
+
return value ? 'Si' : 'No';
|
|
278
|
+
default:
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum ConditionTypes {
|
|
2
2
|
EXPRESSION = "EXPRESSION",
|
|
3
|
-
FORM_STEP = "FORM_STEP"
|
|
3
|
+
FORM_STEP = "FORM_STEP",
|
|
4
|
+
ENTITYVALUE = "ENTITYVALUE"
|
|
4
5
|
}
|
|
5
6
|
export default ConditionTypes;
|
|
6
7
|
export declare enum ExpressionTypes {
|
|
@@ -17,6 +18,10 @@ export declare enum OperatorTypes {
|
|
|
17
18
|
NOTINCLUDES = "NOTINCLUDES",
|
|
18
19
|
LESS = "LESS",
|
|
19
20
|
MORE = "MORE",
|
|
21
|
+
PAST_RELATIVE_LESS = "PAST_RELATIVE_LESS",
|
|
22
|
+
PAST_RELATIVE_MORE = "PAST_RELATIVE_MORE",
|
|
23
|
+
FUTURE_RELATIVE_LESS = "FUTURE_RELATIVE_LESS",
|
|
24
|
+
FUTURE_RELATIVE_MORE = "FUTURE_RELATIVE_MORE",
|
|
20
25
|
EXISTS = "EXISTS",
|
|
21
26
|
NOTEXISTS = "NOTEXISTS"
|
|
22
27
|
}
|
|
@@ -2,6 +2,7 @@ export var ConditionTypes;
|
|
|
2
2
|
(function (ConditionTypes) {
|
|
3
3
|
ConditionTypes["EXPRESSION"] = "EXPRESSION";
|
|
4
4
|
ConditionTypes["FORM_STEP"] = "FORM_STEP";
|
|
5
|
+
ConditionTypes["ENTITYVALUE"] = "ENTITYVALUE";
|
|
5
6
|
})(ConditionTypes || (ConditionTypes = {}));
|
|
6
7
|
export default ConditionTypes;
|
|
7
8
|
export var ExpressionTypes;
|
|
@@ -20,6 +21,10 @@ export var OperatorTypes;
|
|
|
20
21
|
OperatorTypes["NOTINCLUDES"] = "NOTINCLUDES";
|
|
21
22
|
OperatorTypes["LESS"] = "LESS";
|
|
22
23
|
OperatorTypes["MORE"] = "MORE";
|
|
24
|
+
OperatorTypes["PAST_RELATIVE_LESS"] = "PAST_RELATIVE_LESS";
|
|
25
|
+
OperatorTypes["PAST_RELATIVE_MORE"] = "PAST_RELATIVE_MORE";
|
|
26
|
+
OperatorTypes["FUTURE_RELATIVE_LESS"] = "FUTURE_RELATIVE_LESS";
|
|
27
|
+
OperatorTypes["FUTURE_RELATIVE_MORE"] = "FUTURE_RELATIVE_MORE";
|
|
23
28
|
OperatorTypes["EXISTS"] = "EXISTS";
|
|
24
29
|
OperatorTypes["NOTEXISTS"] = "NOTEXISTS";
|
|
25
30
|
})(OperatorTypes || (OperatorTypes = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum DraftEntityDataTypes {
|
|
2
|
+
DATE = "DATE",
|
|
3
|
+
NESTED = "NESTED",
|
|
4
|
+
TICKET = "TICKET",
|
|
5
|
+
COMPANY = "COMPANY",
|
|
6
|
+
CONDITION_MET = "CONDITION_MET"
|
|
7
|
+
}
|
|
8
|
+
export declare enum DraftEntityDataMappingTypes {
|
|
9
|
+
ENTITYVALUE_MAPPING = "ENTITYVALUE_MAPPING"
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var DraftEntityDataTypes;
|
|
2
|
+
(function (DraftEntityDataTypes) {
|
|
3
|
+
DraftEntityDataTypes["DATE"] = "DATE";
|
|
4
|
+
DraftEntityDataTypes["NESTED"] = "NESTED";
|
|
5
|
+
DraftEntityDataTypes["TICKET"] = "TICKET";
|
|
6
|
+
DraftEntityDataTypes["COMPANY"] = "COMPANY";
|
|
7
|
+
DraftEntityDataTypes["CONDITION_MET"] = "CONDITION_MET";
|
|
8
|
+
})(DraftEntityDataTypes || (DraftEntityDataTypes = {}));
|
|
9
|
+
export var DraftEntityDataMappingTypes;
|
|
10
|
+
(function (DraftEntityDataMappingTypes) {
|
|
11
|
+
DraftEntityDataMappingTypes["ENTITYVALUE_MAPPING"] = "ENTITYVALUE_MAPPING";
|
|
12
|
+
})(DraftEntityDataMappingTypes || (DraftEntityDataMappingTypes = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var DraftStyleTypes;
|
|
2
|
+
(function (DraftStyleTypes) {
|
|
3
|
+
DraftStyleTypes["BOLD"] = "BOLD";
|
|
4
|
+
DraftStyleTypes["ITALIC"] = "ITALIC";
|
|
5
|
+
DraftStyleTypes["UNDERLINE"] = "UNDERLINE";
|
|
6
|
+
DraftStyleTypes["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
7
|
+
DraftStyleTypes["NESTED"] = "NESTED";
|
|
8
|
+
})(DraftStyleTypes || (DraftStyleTypes = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export var EntityPropertyTypes;
|
|
2
|
+
(function (EntityPropertyTypes) {
|
|
3
|
+
EntityPropertyTypes["NAME"] = "NAME";
|
|
4
|
+
EntityPropertyTypes["TEXTAREA"] = "TEXTAREA";
|
|
5
|
+
EntityPropertyTypes["DATEPICKER"] = "DATEPICKER";
|
|
6
|
+
EntityPropertyTypes["TEXTINPUT"] = "TEXTINPUT";
|
|
7
|
+
EntityPropertyTypes["SELECTOR"] = "SELECTOR";
|
|
8
|
+
EntityPropertyTypes["CHECKBOX"] = "CHECKBOX";
|
|
9
|
+
})(EntityPropertyTypes || (EntityPropertyTypes = {}));
|
|
10
|
+
export default EntityPropertyTypes;
|
|
@@ -59,6 +59,7 @@ export var MapperStyleTypes;
|
|
|
59
59
|
(function (MapperStyleTypes) {
|
|
60
60
|
MapperStyleTypes["PILL"] = "PILL";
|
|
61
61
|
MapperStyleTypes["LIST"] = "LIST";
|
|
62
|
+
MapperStyleTypes["PAGED"] = "PAGED";
|
|
62
63
|
MapperStyleTypes["INLINE"] = "INLINE";
|
|
63
64
|
})(MapperStyleTypes || (MapperStyleTypes = {}));
|
|
64
65
|
export var EntityValueDataTypes;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arquimedes.co/eureka-forms",
|
|
3
3
|
"repository": "git://github.com/Arquimede5/Eureka-Forms.git",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.56",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "react-scripts start",
|
|
7
7
|
"build": "react-scripts build",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
|
82
82
|
"@typescript-eslint/parser": "^6.13.1",
|
|
83
83
|
"chromatic": "^10.0.0",
|
|
84
|
-
"cypress": "^13.
|
|
84
|
+
"cypress": "^13.7.1",
|
|
85
85
|
"dotenv-webpack": "^8.0.1",
|
|
86
86
|
"eslint": "^8.55.0",
|
|
87
87
|
"eslint-config-prettier": "^9.1.0",
|