@judo/model-parser 0.1.0

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.
@@ -0,0 +1,651 @@
1
+ /**
2
+ * EMF Default Values Module
3
+ *
4
+ * EMF models do not serialize attributes when their values equal the default.
5
+ * This module defines all default values from the ui.ecore meta-model to ensure
6
+ * the runtime has explicit values for all properties.
7
+ *
8
+ * Source: meta-model/ui.ecore (defaultValueLiteral attributes)
9
+ *
10
+ * @module emf-defaults
11
+ */
12
+ /**
13
+ * Default values for VisualElement properties.
14
+ * Maps to: ui:VisualElement
15
+ */
16
+ export declare const VISUAL_ELEMENT_DEFAULTS: {
17
+ /** Default column span - 4 columns */
18
+ readonly col: 4;
19
+ /** Default row span - 1 row */
20
+ readonly row: 1;
21
+ /** Default fit behavior */
22
+ readonly fit: "NONE";
23
+ /** Default stretch behavior */
24
+ readonly stretch: "NONE";
25
+ /** Not disabled by default */
26
+ readonly disabled: false;
27
+ /** Not in card by default */
28
+ readonly isInCard: false;
29
+ /** Not read-only by default */
30
+ readonly isReadOnly: false;
31
+ };
32
+ /**
33
+ * Default values for Flex container.
34
+ * Maps to: ui:Flex
35
+ *
36
+ * Note: Flex inherits from Container which inherits from VisualElement.
37
+ * direction, mainAxisAlignment, and mainAxisSize use EMF first enum literal defaults.
38
+ */
39
+ export declare const FLEX_DEFAULTS: {
40
+ /** EMF default is first enum literal: HORIZONTAL */
41
+ readonly direction: "HORIZONTAL";
42
+ /** EMF default is first enum literal: CENTER */
43
+ readonly mainAxisAlignment: "CENTER";
44
+ /** Explicit default: START (from meta-model) */
45
+ readonly crossAxisAlignment: "START";
46
+ /** EMF default is first enum literal: MIN */
47
+ readonly mainAxisSize: "MIN";
48
+ /** Default column span - 4 columns */
49
+ readonly col: 4;
50
+ /** Default row span - 1 row */
51
+ readonly row: 1;
52
+ /** Default fit behavior */
53
+ readonly fit: "NONE";
54
+ /** Default stretch behavior */
55
+ readonly stretch: "NONE";
56
+ /** Not disabled by default */
57
+ readonly disabled: false;
58
+ /** Not in card by default */
59
+ readonly isInCard: false;
60
+ /** Not read-only by default */
61
+ readonly isReadOnly: false;
62
+ };
63
+ /**
64
+ * Default values for PageContainer.
65
+ * Maps to: ui:PageContainer
66
+ */
67
+ export declare const PAGE_CONTAINER_DEFAULTS: {
68
+ /** EMF default is first enum literal: TABLE */
69
+ readonly type: "TABLE";
70
+ /** Not generating visual properties hook by default */
71
+ readonly generateVisualPropertiesHook: false;
72
+ /** EMF default is first enum literal: HORIZONTAL */
73
+ readonly direction: "HORIZONTAL";
74
+ /** EMF default is first enum literal: CENTER */
75
+ readonly mainAxisAlignment: "CENTER";
76
+ /** Explicit default: START (from meta-model) */
77
+ readonly crossAxisAlignment: "START";
78
+ /** EMF default is first enum literal: MIN */
79
+ readonly mainAxisSize: "MIN";
80
+ /** Default column span - 4 columns */
81
+ readonly col: 4;
82
+ /** Default row span - 1 row */
83
+ readonly row: 1;
84
+ /** Default fit behavior */
85
+ readonly fit: "NONE";
86
+ /** Default stretch behavior */
87
+ readonly stretch: "NONE";
88
+ /** Not disabled by default */
89
+ readonly disabled: false;
90
+ /** Not in card by default */
91
+ readonly isInCard: false;
92
+ /** Not read-only by default */
93
+ readonly isReadOnly: false;
94
+ };
95
+ /**
96
+ * Default values for Size.
97
+ * Maps to: ui:Size
98
+ */
99
+ export declare const SIZE_DEFAULTS: {
100
+ /** -1 means unset/auto */
101
+ readonly width: -1;
102
+ /** -1 means unset/auto */
103
+ readonly height: -1;
104
+ };
105
+ /**
106
+ * Default values for SizeConstraint.
107
+ * Maps to: ui:SizeConstraint
108
+ */
109
+ export declare const SIZE_CONSTRAINT_DEFAULTS: {
110
+ /** -1 means no minimum */
111
+ readonly minWidth: -1;
112
+ /** -1 means no minimum */
113
+ readonly minHeight: -1;
114
+ /** -1 means no maximum */
115
+ readonly maxWidth: -1;
116
+ /** -1 means no maximum */
117
+ readonly maxHeight: -1;
118
+ };
119
+ /**
120
+ * Default values for Frame.
121
+ * Maps to: ui:Frame
122
+ */
123
+ export declare const FRAME_DEFAULTS: {
124
+ /** Default elevation */
125
+ readonly elevation: 4;
126
+ /** Default border radius */
127
+ readonly radius: 10;
128
+ };
129
+ /**
130
+ * Default values for TabController.
131
+ * Maps to: ui:TabController
132
+ */
133
+ export declare const TAB_CONTROLLER_DEFAULTS: {
134
+ /** Default controller row */
135
+ readonly controllerRow: 1;
136
+ /** Default column span - 4 columns */
137
+ readonly col: 4;
138
+ /** Default row span - 1 row */
139
+ readonly row: 1;
140
+ /** Default fit behavior */
141
+ readonly fit: "NONE";
142
+ /** Default stretch behavior */
143
+ readonly stretch: "NONE";
144
+ /** Not disabled by default */
145
+ readonly disabled: false;
146
+ /** Not in card by default */
147
+ readonly isInCard: false;
148
+ /** Not read-only by default */
149
+ readonly isReadOnly: false;
150
+ };
151
+ /**
152
+ * Default values for Table.
153
+ * Maps to: ui:Table
154
+ */
155
+ export declare const TABLE_DEFAULTS: {
156
+ /** Default CRUD operations displayed count */
157
+ readonly crudOperationsDisplayed: 2;
158
+ /** Not a small table by default */
159
+ readonly isSmallTable: false;
160
+ /** Default rows per page */
161
+ readonly rowsPerPage: 10;
162
+ /** Not eager loading by default */
163
+ readonly isEager: false;
164
+ /** Single selection by default */
165
+ readonly allowSelectMultiple: false;
166
+ /** Default transfer operations displayed count */
167
+ readonly transferOperationsDisplayed: 0;
168
+ /** Don't show total count by default */
169
+ readonly showTotalCount: false;
170
+ /** Checkbox selection enabled by default */
171
+ readonly checkboxSelection: "ENABLED";
172
+ /** Default representation is TABLE */
173
+ readonly representationComponent: "TABLE";
174
+ /** Default column span - 4 columns */
175
+ readonly col: 4;
176
+ /** Default row span - 1 row */
177
+ readonly row: 1;
178
+ /** Default fit behavior */
179
+ readonly fit: "NONE";
180
+ /** Default stretch behavior */
181
+ readonly stretch: "NONE";
182
+ /** Not disabled by default */
183
+ readonly disabled: false;
184
+ /** Not in card by default */
185
+ readonly isInCard: false;
186
+ /** Not read-only by default */
187
+ readonly isReadOnly: false;
188
+ };
189
+ /**
190
+ * Default values for Column.
191
+ * Maps to: ui:Column
192
+ */
193
+ export declare const COLUMN_DEFAULTS: {
194
+ /** No sorting by default */
195
+ readonly sort: "NONE";
196
+ /** Default sort precedence */
197
+ readonly sortPrecedence: 0;
198
+ /** Format numeric values by default */
199
+ readonly formatValue: true;
200
+ /** Default column span - 4 columns */
201
+ readonly col: 4;
202
+ /** Default row span - 1 row */
203
+ readonly row: 1;
204
+ /** Default fit behavior */
205
+ readonly fit: "NONE";
206
+ /** Default stretch behavior */
207
+ readonly stretch: "NONE";
208
+ /** Not disabled by default */
209
+ readonly disabled: false;
210
+ /** Not in card by default */
211
+ readonly isInCard: false;
212
+ /** Not read-only by default */
213
+ readonly isReadOnly: false;
214
+ };
215
+ /**
216
+ * Default values for Filter.
217
+ * Maps to: ui:Filter
218
+ */
219
+ export declare const FILTER_DEFAULTS: {
220
+ /** Not always shown by default */
221
+ readonly alwaysShown: false;
222
+ /** Not a range filter by default */
223
+ readonly range: false;
224
+ /** Not multi-value by default */
225
+ readonly multiValue: false;
226
+ /** Default column span - 4 columns */
227
+ readonly col: 4;
228
+ /** Default row span - 1 row */
229
+ readonly row: 1;
230
+ /** Default fit behavior */
231
+ readonly fit: "NONE";
232
+ /** Default stretch behavior */
233
+ readonly stretch: "NONE";
234
+ /** Not disabled by default */
235
+ readonly disabled: false;
236
+ /** Not in card by default */
237
+ readonly isInCard: false;
238
+ /** Not read-only by default */
239
+ readonly isReadOnly: false;
240
+ };
241
+ /**
242
+ * Default values for Link.
243
+ * Maps to: ui:Link
244
+ */
245
+ export declare const LINK_DEFAULTS: {
246
+ /** Not eager loading by default */
247
+ readonly isEager: false;
248
+ /** Default column span - 4 columns */
249
+ readonly col: 4;
250
+ /** Default row span - 1 row */
251
+ readonly row: 1;
252
+ /** Default fit behavior */
253
+ readonly fit: "NONE";
254
+ /** Default stretch behavior */
255
+ readonly stretch: "NONE";
256
+ /** Not disabled by default */
257
+ readonly disabled: false;
258
+ /** Not in card by default */
259
+ readonly isInCard: false;
260
+ /** Not read-only by default */
261
+ readonly isReadOnly: false;
262
+ };
263
+ /**
264
+ * Default values for Input (abstract base).
265
+ * Maps to: ui:Input
266
+ */
267
+ export declare const INPUT_DEFAULTS: {
268
+ /** Not required by default */
269
+ readonly required: false;
270
+ /** Default column span - 4 columns */
271
+ readonly col: 4;
272
+ /** Default row span - 1 row */
273
+ readonly row: 1;
274
+ /** Default fit behavior */
275
+ readonly fit: "NONE";
276
+ /** Default stretch behavior */
277
+ readonly stretch: "NONE";
278
+ /** Not disabled by default */
279
+ readonly disabled: false;
280
+ /** Not in card by default */
281
+ readonly isInCard: false;
282
+ /** Not read-only by default */
283
+ readonly isReadOnly: false;
284
+ };
285
+ /**
286
+ * Default values for TextInput.
287
+ * Maps to: ui:TextInput
288
+ */
289
+ export declare const TEXT_INPUT_DEFAULTS: {
290
+ /** Not a type-ahead field by default */
291
+ readonly isTypeAheadField: false;
292
+ /** Not required by default */
293
+ readonly required: false;
294
+ /** Default column span - 4 columns */
295
+ readonly col: 4;
296
+ /** Default row span - 1 row */
297
+ readonly row: 1;
298
+ /** Default fit behavior */
299
+ readonly fit: "NONE";
300
+ /** Default stretch behavior */
301
+ readonly stretch: "NONE";
302
+ /** Not disabled by default */
303
+ readonly disabled: false;
304
+ /** Not in card by default */
305
+ readonly isInCard: false;
306
+ /** Not read-only by default */
307
+ readonly isReadOnly: false;
308
+ };
309
+ /**
310
+ * Default values for TextArea.
311
+ * Maps to: ui:TextArea
312
+ */
313
+ export declare const TEXT_AREA_DEFAULTS: {
314
+ /** Single line by default */
315
+ readonly lines: 1;
316
+ /** Not required by default */
317
+ readonly required: false;
318
+ /** Default column span - 4 columns */
319
+ readonly col: 4;
320
+ /** Default row span - 1 row */
321
+ readonly row: 1;
322
+ /** Default fit behavior */
323
+ readonly fit: "NONE";
324
+ /** Default stretch behavior */
325
+ readonly stretch: "NONE";
326
+ /** Not disabled by default */
327
+ readonly disabled: false;
328
+ /** Not in card by default */
329
+ readonly isInCard: false;
330
+ /** Not read-only by default */
331
+ readonly isReadOnly: false;
332
+ };
333
+ /**
334
+ * Default values for NumericInput.
335
+ * Maps to: ui:NumericInput
336
+ */
337
+ export declare const NUMERIC_INPUT_DEFAULTS: {
338
+ /** Format values by default */
339
+ readonly formatValue: true;
340
+ /** Not required by default */
341
+ readonly required: false;
342
+ /** Default column span - 4 columns */
343
+ readonly col: 4;
344
+ /** Default row span - 1 row */
345
+ readonly row: 1;
346
+ /** Default fit behavior */
347
+ readonly fit: "NONE";
348
+ /** Default stretch behavior */
349
+ readonly stretch: "NONE";
350
+ /** Not disabled by default */
351
+ readonly disabled: false;
352
+ /** Not in card by default */
353
+ readonly isInCard: false;
354
+ /** Not read-only by default */
355
+ readonly isReadOnly: false;
356
+ };
357
+ /**
358
+ * Default values for DateTimeInput.
359
+ * Maps to: ui:DateTimeInput
360
+ */
361
+ export declare const DATE_TIME_INPUT_DEFAULTS: {
362
+ /** Base unit is SECOND */
363
+ readonly baseUnit: "SECOND";
364
+ /** Not required by default */
365
+ readonly required: false;
366
+ /** Default column span - 4 columns */
367
+ readonly col: 4;
368
+ /** Default row span - 1 row */
369
+ readonly row: 1;
370
+ /** Default fit behavior */
371
+ readonly fit: "NONE";
372
+ /** Default stretch behavior */
373
+ readonly stretch: "NONE";
374
+ /** Not disabled by default */
375
+ readonly disabled: false;
376
+ /** Not in card by default */
377
+ readonly isInCard: false;
378
+ /** Not read-only by default */
379
+ readonly isReadOnly: false;
380
+ };
381
+ /**
382
+ * Default values for TimeInput.
383
+ * Maps to: ui:TimeInput
384
+ */
385
+ export declare const TIME_INPUT_DEFAULTS: {
386
+ /** Base unit is SECOND */
387
+ readonly baseUnit: "SECOND";
388
+ /** Not required by default */
389
+ readonly required: false;
390
+ /** Default column span - 4 columns */
391
+ readonly col: 4;
392
+ /** Default row span - 1 row */
393
+ readonly row: 1;
394
+ /** Default fit behavior */
395
+ readonly fit: "NONE";
396
+ /** Default stretch behavior */
397
+ readonly stretch: "NONE";
398
+ /** Not disabled by default */
399
+ readonly disabled: false;
400
+ /** Not in card by default */
401
+ readonly isInCard: false;
402
+ /** Not read-only by default */
403
+ readonly isReadOnly: false;
404
+ };
405
+ /**
406
+ * Default values for Checkbox.
407
+ * Maps to: ui:Checkbox
408
+ */
409
+ export declare const CHECKBOX_DEFAULTS: {
410
+ /** Not checked by default */
411
+ readonly checked: false;
412
+ /** Default label placement */
413
+ readonly valueLabelPlacement: "DEFAULT";
414
+ /** Not required by default */
415
+ readonly required: false;
416
+ /** Default column span - 4 columns */
417
+ readonly col: 4;
418
+ /** Default row span - 1 row */
419
+ readonly row: 1;
420
+ /** Default fit behavior */
421
+ readonly fit: "NONE";
422
+ /** Default stretch behavior */
423
+ readonly stretch: "NONE";
424
+ /** Not disabled by default */
425
+ readonly disabled: false;
426
+ /** Not in card by default */
427
+ readonly isInCard: false;
428
+ /** Not read-only by default */
429
+ readonly isReadOnly: false;
430
+ };
431
+ /**
432
+ * Default values for Switch.
433
+ * Maps to: ui:Switch
434
+ */
435
+ export declare const SWITCH_DEFAULTS: {
436
+ /** Default label placement */
437
+ readonly valueLabelPlacement: "DEFAULT";
438
+ /** Not required by default */
439
+ readonly required: false;
440
+ /** Default column span - 4 columns */
441
+ readonly col: 4;
442
+ /** Default row span - 1 row */
443
+ readonly row: 1;
444
+ /** Default fit behavior */
445
+ readonly fit: "NONE";
446
+ /** Default stretch behavior */
447
+ readonly stretch: "NONE";
448
+ /** Not disabled by default */
449
+ readonly disabled: false;
450
+ /** Not in card by default */
451
+ readonly isInCard: false;
452
+ /** Not read-only by default */
453
+ readonly isReadOnly: false;
454
+ };
455
+ /**
456
+ * Default values for Option.
457
+ * Maps to: ui:Option
458
+ */
459
+ export declare const OPTION_DEFAULTS: {
460
+ /** Not selected by default */
461
+ readonly selected: false;
462
+ };
463
+ /**
464
+ * Default values for ButtonGroup.
465
+ * Maps to: ui:ButtonGroup
466
+ */
467
+ export declare const BUTTON_GROUP_DEFAULTS: {
468
+ /** No featured actions by default */
469
+ readonly featuredActions: 0;
470
+ /** Default column span - 4 columns */
471
+ readonly col: 4;
472
+ /** Default row span - 1 row */
473
+ readonly row: 1;
474
+ /** Default fit behavior */
475
+ readonly fit: "NONE";
476
+ /** Default stretch behavior */
477
+ readonly stretch: "NONE";
478
+ /** Not disabled by default */
479
+ readonly disabled: false;
480
+ /** Not in card by default */
481
+ readonly isInCard: false;
482
+ /** Not read-only by default */
483
+ readonly isReadOnly: false;
484
+ };
485
+ /**
486
+ * Default values for PageDefinition.
487
+ * Maps to: ui:PageDefinition
488
+ */
489
+ export declare const PAGE_DEFINITION_DEFAULTS: {
490
+ /** Not a dashboard by default */
491
+ readonly dashboard: false;
492
+ /** Don't generate actions hook by default */
493
+ readonly generateActionsHook: false;
494
+ };
495
+ /**
496
+ * Default values for Application.
497
+ * Maps to: ui:Application
498
+ */
499
+ export declare const APPLICATION_DEFAULTS: {
500
+ /** Default language */
501
+ readonly defaultLanguage: "en-US";
502
+ /** Version placeholder */
503
+ readonly version: "$MODEL_VERSION_PLACEHOLDER$";
504
+ /** No guest access by default */
505
+ readonly supportGuestAccess: false;
506
+ };
507
+ /**
508
+ * Default values for Action.
509
+ * Maps to: ui:Action
510
+ */
511
+ export declare const ACTION_DEFAULTS: {
512
+ /** Not a menu action by default */
513
+ readonly isMenuAction: false;
514
+ };
515
+ /**
516
+ * Default values for ActionDefinition.
517
+ * Maps to: ui:ActionDefinition
518
+ */
519
+ export declare const ACTION_DEFINITION_DEFAULTS: {
520
+ /** Not transient by default */
521
+ readonly isTransient: false;
522
+ };
523
+ /**
524
+ * Default values for Confirmation.
525
+ * Maps to: ui:Confirmation
526
+ */
527
+ export declare const CONFIRMATION_DEFAULTS: {
528
+ /** No confirmation by default */
529
+ readonly confirmationType: "NONE";
530
+ };
531
+ /**
532
+ * Default values for ClassType.
533
+ * Maps to: data:ClassType
534
+ */
535
+ export declare const CLASS_TYPE_DEFAULTS: {
536
+ /** Mapped by default */
537
+ isMapped: boolean;
538
+ /** Not a principal by default */
539
+ isPrincipal: boolean;
540
+ /** Not an actor by default */
541
+ isActor: boolean;
542
+ /** Not optional by default */
543
+ isOptional: boolean;
544
+ /** Not for create/update by default */
545
+ isForCreateOrUpdateType: boolean;
546
+ /** Empty package tokens by default */
547
+ packageNameTokens: string[];
548
+ };
549
+ /**
550
+ * Default values for RelationType.
551
+ * Maps to: data:RelationType
552
+ */
553
+ export declare const RELATION_TYPE_DEFAULTS: {
554
+ /** Default relation kind */
555
+ readonly relationKind: "ASSOCIATION";
556
+ /** Default member type */
557
+ readonly memberType: "STORED";
558
+ /** Not an access relation by default */
559
+ readonly isAccess: false;
560
+ /** Not read-only by default */
561
+ readonly isReadOnly: false;
562
+ /** Is a collection by default */
563
+ readonly isCollection: true;
564
+ /** Is optional by default */
565
+ readonly isOptional: true;
566
+ /** Not orderable by default */
567
+ readonly isOrderable: false;
568
+ };
569
+ /**
570
+ * Default values for AttributeType.
571
+ * Maps to: data:AttributeType
572
+ */
573
+ export declare const ATTRIBUTE_TYPE_DEFAULTS: {
574
+ /** Default member type */
575
+ readonly memberType: "STORED";
576
+ /** Read-only by default */
577
+ readonly isReadOnly: true;
578
+ /** Not a profile picture by default */
579
+ readonly isProfilePicture: false;
580
+ };
581
+ /**
582
+ * Default values for OperationType.
583
+ * Maps to: data:OperationType
584
+ */
585
+ export declare const OPERATION_TYPE_DEFAULTS: {
586
+ /** Default operation type */
587
+ readonly operationType: "MAPPED";
588
+ /** Stateful by default */
589
+ readonly isStateful: true;
590
+ };
591
+ /**
592
+ * Default values for ReferenceType (abstract).
593
+ * Maps to: data:ReferenceType
594
+ */
595
+ export declare const REFERENCE_TYPE_DEFAULTS: {
596
+ /** Is a collection by default */
597
+ readonly isCollection: true;
598
+ /** Is optional by default */
599
+ readonly isOptional: true;
600
+ /** Not orderable by default */
601
+ readonly isOrderable: false;
602
+ };
603
+ /**
604
+ * Default values for BinaryType.
605
+ * Maps to: data:BinaryType
606
+ */
607
+ export declare const BINARY_TYPE_DEFAULTS: {
608
+ /** No size limit by default */
609
+ readonly maxFileSize: 0;
610
+ };
611
+ /**
612
+ * Map of @type discriminators to their default value objects.
613
+ * Used by the parser to apply defaults based on element type.
614
+ */
615
+ export declare const TYPE_DEFAULTS_MAP: Record<string, Record<string, unknown>>;
616
+ /**
617
+ * Defaults for contained objects (not typed elements).
618
+ * These are applied based on the property name.
619
+ */
620
+ export declare const PROPERTY_DEFAULTS_MAP: Record<string, Record<string, unknown>>;
621
+ /**
622
+ * Apply EMF defaults to an element based on its @type.
623
+ * Only sets values for properties that are undefined.
624
+ *
625
+ * @param element - The element to apply defaults to
626
+ * @param type - The @type discriminator
627
+ * @returns The element with defaults applied (mutated in place for performance)
628
+ */
629
+ export declare function applyTypeDefaults(element: Record<string, unknown>, type: string): Record<string, unknown>;
630
+ /**
631
+ * Apply EMF defaults to a contained object based on property name.
632
+ *
633
+ * @param element - The contained object to apply defaults to
634
+ * @param propertyName - The name of the containing property
635
+ * @returns The element with defaults applied (mutated in place for performance)
636
+ */
637
+ export declare function applyPropertyDefaults(element: Record<string, unknown>, propertyName: string): Record<string, unknown>;
638
+ /**
639
+ * Apply defaults to action definitions.
640
+ * All action definitions share the same base defaults.
641
+ */
642
+ export declare function applyActionDefinitionDefaults(element: Record<string, unknown>): Record<string, unknown>;
643
+ /**
644
+ * Apply defaults to page definitions.
645
+ */
646
+ export declare function applyPageDefinitionDefaults(element: Record<string, unknown>): Record<string, unknown>;
647
+ /**
648
+ * Apply defaults to action elements.
649
+ */
650
+ export declare function applyActionDefaults(element: Record<string, unknown>): Record<string, unknown>;
651
+ //# sourceMappingURL=emf-defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emf-defaults.d.ts","sourceRoot":"","sources":["../src/emf-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAyBH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;IACnC,sCAAsC;;IAEtC,+B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B;;IAE7B,+BAA+B;;CAEtB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAChC,+BAA+B;;CAEtB,CAAC;AAMX;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgDrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAMzE,CAAC;AAMF;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAazG;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAarH;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQvG;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQrG;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQ7F"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @judo/model-parser
3
+ *
4
+ * Parse ECore XMI/XML model files into typed TypeScript objects.
5
+ */
6
+ export { parseModel, parseModelWithOptions, ModelParseError, ModelReferenceError, type ParseOptions, type ParseResult, type ParseError, } from './parser';
7
+ export { ReferenceResolver } from './reference-resolver';
8
+ export { buildContainmentTree, attachParentReferences, getParent } from './containment-builder';
9
+ export { discriminateType, inferTypeFromTag, TYPE_MAP } from './type-discriminator';
10
+ export { VISUAL_ELEMENT_DEFAULTS, FLEX_DEFAULTS, PAGE_CONTAINER_DEFAULTS, SIZE_DEFAULTS, SIZE_CONSTRAINT_DEFAULTS, FRAME_DEFAULTS, TAB_CONTROLLER_DEFAULTS, TABLE_DEFAULTS, COLUMN_DEFAULTS, FILTER_DEFAULTS, LINK_DEFAULTS, INPUT_DEFAULTS, TEXT_INPUT_DEFAULTS, TEXT_AREA_DEFAULTS, NUMERIC_INPUT_DEFAULTS, DATE_TIME_INPUT_DEFAULTS, TIME_INPUT_DEFAULTS, CHECKBOX_DEFAULTS, SWITCH_DEFAULTS, OPTION_DEFAULTS, BUTTON_GROUP_DEFAULTS, PAGE_DEFINITION_DEFAULTS, APPLICATION_DEFAULTS, ACTION_DEFAULTS, ACTION_DEFINITION_DEFAULTS, CONFIRMATION_DEFAULTS, CLASS_TYPE_DEFAULTS, RELATION_TYPE_DEFAULTS, ATTRIBUTE_TYPE_DEFAULTS, OPERATION_TYPE_DEFAULTS, REFERENCE_TYPE_DEFAULTS, BINARY_TYPE_DEFAULTS, TYPE_DEFAULTS_MAP, PROPERTY_DEFAULTS_MAP, applyTypeDefaults, applyPropertyDefaults, applyActionDefinitionDefaults, applyPageDefinitionDefaults, applyActionDefaults, } from './emf-defaults';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACN,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,UAAU,GACf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEhG,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGpF,OAAO,EAEN,uBAAuB,EACvB,aAAa,EACb,uBAAuB,EACvB,aAAa,EACb,wBAAwB,EACxB,cAAc,EACd,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,eAAe,EACf,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,0BAA0B,EAC1B,qBAAqB,EAErB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EAEpB,iBAAiB,EACjB,qBAAqB,EAErB,iBAAiB,EACjB,qBAAqB,EACrB,6BAA6B,EAC7B,2BAA2B,EAC3B,mBAAmB,GACnB,MAAM,gBAAgB,CAAC"}