@contrail/document-generation 2.1.19 → 2.1.21

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 (45) hide show
  1. package/lib/board-document-generator.d.ts +23 -0
  2. package/lib/board-document-generator.js +241 -0
  3. package/lib/components/component-generator.d.ts +6 -0
  4. package/lib/components/component-generator.js +55 -0
  5. package/lib/components/component-grid-generator.d.ts +7 -0
  6. package/lib/components/component-grid-generator.js +102 -0
  7. package/lib/components/component-util.d.ts +5 -0
  8. package/lib/components/component-util.js +43 -0
  9. package/lib/document-generator.d.ts +6 -0
  10. package/lib/document-generator.js +11 -0
  11. package/lib/frames/frame-generator.d.ts +12 -0
  12. package/lib/frames/frame-generator.js +160 -0
  13. package/lib/frames/frame.d.ts +18 -0
  14. package/lib/frames/frame.js +71 -0
  15. package/lib/frames/index.d.ts +2 -0
  16. package/lib/frames/index.js +18 -0
  17. package/lib/index.d.ts +6 -0
  18. package/lib/index.js +22 -0
  19. package/lib/info-panel/info-panel-generator.d.ts +6 -0
  20. package/lib/info-panel/info-panel-generator.js +56 -0
  21. package/lib/interfaces.d.ts +73 -0
  22. package/lib/interfaces.js +8 -0
  23. package/lib/scripts/test-board.d.ts +1 -0
  24. package/lib/scripts/test-board.js +230 -0
  25. package/lib/scripts/test-showcase.d.ts +1 -0
  26. package/lib/scripts/test-showcase.js +257 -0
  27. package/lib/showcase-frame-generator.d.ts +8 -0
  28. package/lib/showcase-frame-generator.js +44 -0
  29. package/lib/test-data.d.ts +72 -0
  30. package/lib/test-data.js +187 -0
  31. package/lib/util/document-dynamic-text-element-util.d.ts +9 -0
  32. package/lib/util/document-dynamic-text-element-util.js +61 -0
  33. package/lib/util/document-property-util.d.ts +9 -0
  34. package/lib/util/document-property-util.js +103 -0
  35. package/lib/util/document-text-element-util.d.ts +12 -0
  36. package/lib/util/document-text-element-util.js +148 -0
  37. package/lib/util/document-util.d.ts +8 -0
  38. package/lib/util/document-util.js +22 -0
  39. package/lib/util/index.d.ts +2 -0
  40. package/lib/util/index.js +18 -0
  41. package/lib/util/text-util.d.ts +4 -0
  42. package/lib/util/text-util.js +28 -0
  43. package/package.json +1 -1
  44. package/mocks/test-type-data.ts +0 -146
  45. package/testdocument.json +0 -25972
@@ -1,146 +0,0 @@
1
- export const typeMap = {
2
- item: {
3
- pk: 731,
4
- id: 'ivE7yP0zkKHIkfU-',
5
- createdOn: '2021-07-09T14:01:49.217Z',
6
- updatedOn: '2021-07-09T14:01:49.217Z',
7
- createdById: 'G5YQopiRBlfmnDn3',
8
- updatedById: 'G5YQopiRBlfmnDn3',
9
- isArchived: false,
10
- orgId: 'Z5KDga-mUfxIXk21',
11
- slug: 'item',
12
- label: 'Item',
13
- typePath: 'item',
14
- typeRootId: '3735b33f-52c4-4ff5-a52c-95c0f97f16c3',
15
- parentId: null,
16
- typePolicyIds: [],
17
- typePolicies: [],
18
- typeProperties: [
19
- {
20
- pk: 2370,
21
- id: '4hL2d44GPxAzmr1S',
22
- createdOn: '2022-05-26T18:30:35.057Z',
23
- updatedOn: '2023-05-05T21:17:06.810Z',
24
- createdById: 'G5YQopiRBlfmnDn3',
25
- updatedById: 'G5YQopiRBlfmnDn3',
26
- isArchived: false,
27
- orgId: 'Z5KDga-mUfxIXk21',
28
- propertyType: 'string',
29
- slug: 'overridableProp',
30
- label: 'Overridable Prop',
31
- editable: true,
32
- core: false,
33
- typePropertyOptionSetId: null,
34
- typePropertyUserListId: null,
35
- carryOverBehavior: null,
36
- carryOverDefault: null,
37
- copyBehavior: null,
38
- copyDefault: null,
39
- formula: null,
40
- numberFormat: {
41
- format: null,
42
- currency: 'USD',
43
- },
44
- referencedTypeRootSlug: null,
45
- referencedTypeRole: null,
46
- referencedTypeFilterProperties: null,
47
- referencedTypeId: null,
48
- referencedTypePath: null,
49
- defaultValue: null,
50
- propertyLevel: 'overridable',
51
- formulaFunction: null,
52
- validationFunction: '',
53
- description: null,
54
- apiDetails: null,
55
- notes: null,
56
- searchable: false,
57
- isFederationProperty: false,
58
- isUniqueProperty: false,
59
- isUniquePropertyInFamily: false,
60
- required: false,
61
- sequenceSeedValue: null,
62
- optionsSet: null,
63
- inherited: false,
64
- used: true,
65
- overriddenPropertySlugs: [],
66
- typePropertyPolicyIds: [],
67
- canRead: true,
68
- canUpdate: true,
69
- canDelete: true,
70
- canCreate: true,
71
- },
72
- ],
73
- },
74
- projectItem: {
75
- pk: 1291,
76
- id: 'ina_V3kyFcasfKXE',
77
- createdOn: '2022-07-08T18:48:05.530Z',
78
- updatedOn: '2022-07-08T18:48:05.530Z',
79
- createdById: 'G5YQopiRBlfmnDn3',
80
- updatedById: 'G5YQopiRBlfmnDn3',
81
- isArchived: false,
82
- orgId: 'Z5KDga-mUfxIXk21',
83
- slug: 'project-item',
84
- label: 'ProjectItem',
85
- typePath: 'project-item',
86
- typeRootId: 'AX-F0PADgcRGENr3',
87
- parentId: null,
88
- typePolicyIds: [],
89
- typePolicies: [],
90
- typeProperties: [
91
- {
92
- id: 'mkO5HfQAELNJ__Yt',
93
- createdOn: '2022-07-16T15:49:03.102Z',
94
- updatedOn: '2025-07-28T04:09:25.706Z',
95
- createdById: 'G5YQopiRBlfmnDn3',
96
- updatedById: 'G5YQopiRBlfmnDn3',
97
- isArchived: false,
98
- orgId: 'Z5KDga-mUfxIXk21',
99
- propertyType: 'currency',
100
- slug: 'outletPrice',
101
- label: 'Outlet Price',
102
- editable: true,
103
- core: false,
104
- typePropertyOptionSetId: null,
105
- typePropertyUserListId: null,
106
- carryOverBehavior: null,
107
- carryOverDefault: null,
108
- copyBehavior: null,
109
- copyDefault: null,
110
- formula: null,
111
- numberFormat: {
112
- format: 'currency',
113
- currency: 'USD',
114
- precision: 2,
115
- },
116
- referencedTypeRootSlug: null,
117
- referencedTypeRole: null,
118
- referencedTypeFilterProperties: null,
119
- referencedTypeId: null,
120
- referencedTypePath: null,
121
- defaultValue: null,
122
- propertyLevel: 'option',
123
- formulaFunction: null,
124
- validationFunction: '',
125
- description: null,
126
- apiDetails: null,
127
- notes: null,
128
- searchable: false,
129
- isFederationProperty: false,
130
- isUniqueProperty: false,
131
- isUniquePropertyInFamily: false,
132
- required: false,
133
- sequenceSeedValue: null,
134
- optionsSet: null,
135
- inherited: false,
136
- used: true,
137
- overriddenPropertySlugs: [],
138
- typePropertyPolicyIds: ['daLwIOoOfKEaAm9F'],
139
- canRead: true,
140
- canUpdate: true,
141
- canDelete: false,
142
- canCreate: false,
143
- },
144
- ],
145
- },
146
- };