@pdfme/schemas 3.4.3 → 4.0.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.
Files changed (138) hide show
  1. package/dist/cjs/__tests__/text.test.js +5 -4
  2. package/dist/cjs/__tests__/text.test.js.map +1 -1
  3. package/dist/cjs/__tests__/utils.test.js +3 -0
  4. package/dist/cjs/__tests__/utils.test.js.map +1 -1
  5. package/dist/cjs/src/barcodes/propPanel.js +23 -11
  6. package/dist/cjs/src/barcodes/propPanel.js.map +1 -1
  7. package/dist/cjs/src/barcodes/uiRender.js +1 -1
  8. package/dist/cjs/src/barcodes/uiRender.js.map +1 -1
  9. package/dist/cjs/src/graphics/image.js +8 -11
  10. package/dist/cjs/src/graphics/image.js.map +1 -1
  11. package/dist/cjs/src/graphics/svg.js +4 -3
  12. package/dist/cjs/src/graphics/svg.js.map +1 -1
  13. package/dist/cjs/src/index.js +7 -1
  14. package/dist/cjs/src/index.js.map +1 -1
  15. package/dist/cjs/src/shapes/line.js +5 -8
  16. package/dist/cjs/src/shapes/line.js.map +1 -1
  17. package/dist/cjs/src/shapes/rectAndEllipse.js +12 -5
  18. package/dist/cjs/src/shapes/rectAndEllipse.js.map +1 -1
  19. package/dist/cjs/src/tables/cell.js +125 -0
  20. package/dist/cjs/src/tables/cell.js.map +1 -0
  21. package/dist/cjs/src/tables/classes.js +467 -0
  22. package/dist/cjs/src/tables/classes.js.map +1 -0
  23. package/dist/cjs/src/tables/dynamicTemplate.js +71 -0
  24. package/dist/cjs/src/tables/dynamicTemplate.js.map +1 -0
  25. package/dist/cjs/src/tables/helper.js +171 -0
  26. package/dist/cjs/src/tables/helper.js.map +1 -0
  27. package/dist/cjs/src/tables/index.js +12 -0
  28. package/dist/cjs/src/tables/index.js.map +1 -0
  29. package/dist/cjs/src/tables/pdfRender.js +93 -0
  30. package/dist/cjs/src/tables/pdfRender.js.map +1 -0
  31. package/dist/cjs/src/tables/propPanel.js +88 -0
  32. package/dist/cjs/src/tables/propPanel.js.map +1 -0
  33. package/dist/cjs/src/tables/tableHelper.js +231 -0
  34. package/dist/cjs/src/tables/tableHelper.js.map +1 -0
  35. package/dist/cjs/src/tables/types.js +3 -0
  36. package/dist/cjs/src/tables/types.js.map +1 -0
  37. package/dist/cjs/src/tables/uiRender.js +342 -0
  38. package/dist/cjs/src/tables/uiRender.js.map +1 -0
  39. package/dist/cjs/src/text/helper.js +21 -6
  40. package/dist/cjs/src/text/helper.js.map +1 -1
  41. package/dist/cjs/src/text/index.js +1 -1
  42. package/dist/cjs/src/text/index.js.map +1 -1
  43. package/dist/cjs/src/text/pdfRender.js +6 -9
  44. package/dist/cjs/src/text/pdfRender.js.map +1 -1
  45. package/dist/cjs/src/text/propPanel.js +7 -4
  46. package/dist/cjs/src/text/propPanel.js.map +1 -1
  47. package/dist/cjs/src/text/uiRender.js +18 -17
  48. package/dist/cjs/src/text/uiRender.js.map +1 -1
  49. package/dist/cjs/src/utils.js +3 -1
  50. package/dist/cjs/src/utils.js.map +1 -1
  51. package/dist/esm/__tests__/text.test.js +5 -4
  52. package/dist/esm/__tests__/text.test.js.map +1 -1
  53. package/dist/esm/__tests__/utils.test.js +3 -0
  54. package/dist/esm/__tests__/utils.test.js.map +1 -1
  55. package/dist/esm/src/barcodes/propPanel.js +23 -11
  56. package/dist/esm/src/barcodes/propPanel.js.map +1 -1
  57. package/dist/esm/src/barcodes/uiRender.js +1 -1
  58. package/dist/esm/src/barcodes/uiRender.js.map +1 -1
  59. package/dist/esm/src/graphics/image.js +6 -9
  60. package/dist/esm/src/graphics/image.js.map +1 -1
  61. package/dist/esm/src/graphics/svg.js +4 -3
  62. package/dist/esm/src/graphics/svg.js.map +1 -1
  63. package/dist/esm/src/index.js +4 -1
  64. package/dist/esm/src/index.js.map +1 -1
  65. package/dist/esm/src/shapes/line.js +5 -8
  66. package/dist/esm/src/shapes/line.js.map +1 -1
  67. package/dist/esm/src/shapes/rectAndEllipse.js +12 -5
  68. package/dist/esm/src/shapes/rectAndEllipse.js.map +1 -1
  69. package/dist/esm/src/tables/cell.js +120 -0
  70. package/dist/esm/src/tables/cell.js.map +1 -0
  71. package/dist/esm/src/tables/classes.js +460 -0
  72. package/dist/esm/src/tables/classes.js.map +1 -0
  73. package/dist/esm/src/tables/dynamicTemplate.js +66 -0
  74. package/dist/esm/src/tables/dynamicTemplate.js.map +1 -0
  75. package/dist/esm/src/tables/helper.js +163 -0
  76. package/dist/esm/src/tables/helper.js.map +1 -0
  77. package/dist/esm/src/tables/index.js +10 -0
  78. package/dist/esm/src/tables/index.js.map +1 -0
  79. package/dist/esm/src/tables/pdfRender.js +86 -0
  80. package/dist/esm/src/tables/pdfRender.js.map +1 -0
  81. package/dist/esm/src/tables/propPanel.js +85 -0
  82. package/dist/esm/src/tables/propPanel.js.map +1 -0
  83. package/dist/esm/src/tables/tableHelper.js +226 -0
  84. package/dist/esm/src/tables/tableHelper.js.map +1 -0
  85. package/dist/esm/src/tables/types.js +2 -0
  86. package/dist/esm/src/tables/types.js.map +1 -0
  87. package/dist/esm/src/tables/uiRender.js +335 -0
  88. package/dist/esm/src/tables/uiRender.js.map +1 -0
  89. package/dist/esm/src/text/helper.js +19 -5
  90. package/dist/esm/src/text/helper.js.map +1 -1
  91. package/dist/esm/src/text/index.js +1 -1
  92. package/dist/esm/src/text/index.js.map +1 -1
  93. package/dist/esm/src/text/pdfRender.js +7 -10
  94. package/dist/esm/src/text/pdfRender.js.map +1 -1
  95. package/dist/esm/src/text/propPanel.js +7 -4
  96. package/dist/esm/src/text/propPanel.js.map +1 -1
  97. package/dist/esm/src/text/uiRender.js +19 -18
  98. package/dist/esm/src/text/uiRender.js.map +1 -1
  99. package/dist/esm/src/utils.js +1 -0
  100. package/dist/esm/src/utils.js.map +1 -1
  101. package/dist/types/src/index.d.ts +3 -1
  102. package/dist/types/src/shapes/rectAndEllipse.d.ts +19 -27
  103. package/dist/types/src/tables/cell.d.ts +4 -0
  104. package/dist/types/src/tables/classes.d.ts +68 -0
  105. package/dist/types/src/tables/dynamicTemplate.d.ts +13 -0
  106. package/dist/types/src/tables/helper.d.ts +252 -0
  107. package/dist/types/src/tables/index.d.ts +4 -0
  108. package/dist/types/src/tables/pdfRender.d.ts +3 -0
  109. package/dist/types/src/tables/propPanel.d.ts +3 -0
  110. package/dist/types/src/tables/tableHelper.d.ts +11 -0
  111. package/dist/types/src/tables/types.d.ts +91 -0
  112. package/dist/types/src/tables/uiRender.d.ts +3 -0
  113. package/dist/types/src/text/helper.d.ts +8 -1
  114. package/dist/types/src/utils.d.ts +1 -0
  115. package/package.json +1 -1
  116. package/src/barcodes/propPanel.ts +26 -12
  117. package/src/barcodes/uiRender.ts +1 -1
  118. package/src/graphics/image.ts +8 -11
  119. package/src/graphics/svg.ts +4 -3
  120. package/src/index.ts +7 -0
  121. package/src/shapes/line.ts +4 -8
  122. package/src/shapes/rectAndEllipse.ts +16 -7
  123. package/src/tables/cell.ts +157 -0
  124. package/src/tables/classes.ts +398 -0
  125. package/src/tables/dynamicTemplate.ts +81 -0
  126. package/src/tables/helper.ts +198 -0
  127. package/src/tables/index.ts +12 -0
  128. package/src/tables/pdfRender.ts +113 -0
  129. package/src/tables/propPanel.ts +91 -0
  130. package/src/tables/tableHelper.ts +322 -0
  131. package/src/tables/types.ts +88 -0
  132. package/src/tables/uiRender.ts +393 -0
  133. package/src/text/helper.ts +29 -6
  134. package/src/text/index.ts +1 -1
  135. package/src/text/pdfRender.ts +9 -13
  136. package/src/text/propPanel.ts +7 -4
  137. package/src/text/uiRender.ts +18 -18
  138. package/src/utils.ts +1 -0
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.isFirefox = exports.calculateDynamicFontSize = exports.getSplittedLines = exports.getFontKitFont = exports.widthOfTextAtSize = exports.heightOfFontAtSize = exports.getFontDescentInPt = exports.getBrowserVerticalFontAdjustments = void 0;
26
+ exports.isFirefox = exports.splitTextToSize = exports.calculateDynamicFontSize = exports.getSplittedLines = exports.getFontKitFont = exports.widthOfTextAtSize = exports.heightOfFontAtSize = exports.getFontDescentInPt = exports.getBrowserVerticalFontAdjustments = void 0;
27
27
  const fontkit = __importStar(require("fontkit"));
28
28
  const common_1 = require("@pdfme/common");
29
29
  const buffer_1 = require("buffer");
@@ -89,13 +89,13 @@ const getFallbackFont = (font) => {
89
89
  return font[fallbackFontName];
90
90
  };
91
91
  const getCacheKey = (fontName) => `getFontKitFont-${fontName}`;
92
- const getFontKitFont = async (textSchema, font, _cache) => {
93
- const fontName = textSchema.fontName || (0, common_1.getFallbackFontName)(font);
94
- const cacheKey = getCacheKey(fontName);
92
+ const getFontKitFont = async (fontName, font, _cache) => {
93
+ const fntNm = fontName || (0, common_1.getFallbackFontName)(font);
94
+ const cacheKey = getCacheKey(fntNm);
95
95
  if (_cache.has(cacheKey)) {
96
96
  return _cache.get(cacheKey);
97
97
  }
98
- const currentFont = font[fontName] || getFallbackFont(font) || (0, common_1.getDefaultFont)()[common_1.DEFAULT_FONT_NAME];
98
+ const currentFont = font[fntNm] || getFallbackFont(font) || (0, common_1.getDefaultFont)()[common_1.DEFAULT_FONT_NAME];
99
99
  let fontData = currentFont.data;
100
100
  if (typeof fontData === 'string') {
101
101
  fontData = fontData.startsWith('http')
@@ -192,7 +192,7 @@ const calculateDynamicFontSize = async ({ textSchema, font, value, startingFontS
192
192
  if (dynamicFontSizeSetting.max < dynamicFontSizeSetting.min)
193
193
  return fontSize;
194
194
  const characterSpacing = schemaCharacterSpacing ?? constants_js_1.DEFAULT_CHARACTER_SPACING;
195
- const fontKitFont = await (0, exports.getFontKitFont)(textSchema, font, _cache);
195
+ const fontKitFont = await (0, exports.getFontKitFont)(textSchema.fontName, font, _cache);
196
196
  const paragraphs = value.split('\n');
197
197
  let dynamicFontSize = fontSize;
198
198
  if (dynamicFontSize < dynamicFontSizeSetting.min) {
@@ -276,6 +276,21 @@ const calculateDynamicFontSize = async ({ textSchema, font, value, startingFontS
276
276
  return dynamicFontSize;
277
277
  };
278
278
  exports.calculateDynamicFontSize = calculateDynamicFontSize;
279
+ const splitTextToSize = (arg) => {
280
+ const { value, characterSpacing, fontSize, fontKitFont, boxWidthInPt } = arg;
281
+ const fontWidthCalcValues = {
282
+ font: fontKitFont,
283
+ fontSize,
284
+ characterSpacing,
285
+ boxWidthInPt,
286
+ };
287
+ let lines = [];
288
+ value.split(/\r\n|\r|\n|\f|\u000B/g).forEach((line) => {
289
+ lines = lines.concat((0, exports.getSplittedLines)(line, fontWidthCalcValues));
290
+ });
291
+ return lines;
292
+ };
293
+ exports.splitTextToSize = splitTextToSize;
279
294
  const isFirefox = () => navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
280
295
  exports.isFirefox = isFirefox;
281
296
  //# sourceMappingURL=helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../../src/text/helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AAEnC,0CASuB;AACvB,mCAAgC;AAEhC,iDASwB;AAEjB,MAAM,iCAAiC,GAAG,CAC/C,WAAwB,EACxB,QAAgB,EAChB,UAAkB,EAClB,iBAAyB,EACzB,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC;IAEpD,8FAA8F;IAC9F,MAAM,kBAAkB,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,UAAU,CAAC;IAE3D,6BAA6B;IAC7B,6FAA6F;IAC7F,wDAAwD;IACxD,+FAA+F;IAC/F,qFAAqF;IACrF,MAAM,aAAa,GAAG,CAAC,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAErE,IAAI,iBAAiB,KAAK,iCAAkB,EAAE;QAC5C,OAAO,EAAE,MAAM,EAAE,IAAA,cAAK,EAAC,aAAa,CAAC,EAAE,SAAS,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E,GAAG,oBAAoB,CAAC,eAAe,CAAC,CAAC,CAAC;KAC/E;IAED,OAAO,eAAe,CAAC;AACzB,CAAC,CAAC;AAvHW,QAAA,wBAAwB,4BAuHnC;AAEK,MAAM,eAAe,GAAG,CAAC,GAM/B,EAAE,EAAE;IACH,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC;IAC7E,MAAM,mBAAmB,GAAwB;QAC/C,IAAI,EAAE,WAAW;QACjB,QAAQ;QACR,gBAAgB;QAChB,YAAY;KACb,CAAC;IACF,IAAI,KAAK,GAAa,EAAE,CAAC;IACzB,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,EAAE;QAC5D,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAA,wBAAgB,EAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAnBW,QAAA,eAAe,mBAmB1B;AACK,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAA5E,QAAA,SAAS,aAAmE"}
@@ -14,8 +14,8 @@ exports.readOnlyText = {
14
14
  defaultSchema: {
15
15
  ...textSchema.propPanel.defaultSchema,
16
16
  type: 'readOnlyText',
17
+ icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-type"><polyline points="4 7 4 4 20 4 20 7"/><line x1="9" x2="15" y1="20" y2="20"/><line x1="12" x2="12" y1="4" y2="20"/></svg>',
17
18
  readOnly: true,
18
- readOnlyValue: textSchema.propPanel.defaultValue,
19
19
  },
20
20
  },
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/text/index.ts"],"names":[],"mappings":";;;AACA,iDAA2C;AAC3C,iDAA2C;AAC3C,+CAAyC;AAGzC,MAAM,UAAU,GAAuB,EAAE,GAAG,EAAE,wBAAS,EAAE,EAAE,EAAE,sBAAQ,EAAE,SAAS,EAAT,wBAAS,EAAE,CAAC;AAEnF,kBAAe,UAAU,CAAC;AAEb,QAAA,YAAY,GAAuB;IAC9C,GAAG,EAAE,UAAU,CAAC,GAAG;IACnB,EAAE,EAAE,UAAU,CAAC,EAAE;IACjB,SAAS,EAAE;QACT,GAAG,UAAU,CAAC,SAAS;QACvB,aAAa,EAAE;YACb,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa;YACrC,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,IAAI;YACd,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC,YAAY;SACjD;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/text/index.ts"],"names":[],"mappings":";;;AACA,iDAA2C;AAC3C,iDAA2C;AAC3C,+CAAyC;AAGzC,MAAM,UAAU,GAAuB,EAAE,GAAG,EAAE,wBAAS,EAAE,EAAE,EAAE,sBAAQ,EAAE,SAAS,EAAT,wBAAS,EAAE,CAAC;AAEnF,kBAAe,UAAU,CAAC;AAEb,QAAA,YAAY,GAAuB;IAC9C,GAAG,EAAE,UAAU,CAAC,GAAG;IACnB,EAAE,EAAE,UAAU,CAAC,EAAE;IACjB,SAAS,EAAE;QACT,GAAG,UAAU,CAAC,SAAS;QACvB,aAAa,EAAE;YACb,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa;YACrC,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,0UAA0U;YAChV,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
@@ -44,8 +44,8 @@ const pdfRender = async (arg) => {
44
44
  const { font = (0, common_1.getDefaultFont)(), colorType } = options;
45
45
  const [pdfFontObj, fontKitFont, fontProp] = await Promise.all([
46
46
  embedAndGetFontObj({ pdfDoc, font, _cache }),
47
- (0, helper_js_1.getFontKitFont)(schema, font, _cache),
48
- getFontProp({ value, font, schema, _cache, colorType }),
47
+ (0, helper_js_1.getFontKitFont)(schema.fontName, font, _cache),
48
+ getFontProp({ value, font, schema, _cache }),
49
49
  ]);
50
50
  const { fontSize, color, alignment, verticalAlignment, lineHeight, characterSpacing } = fontProp;
51
51
  const fontName = (schema.fontName ? schema.fontName : (0, common_1.getFallbackFontName)(font));
@@ -60,15 +60,12 @@ const pdfRender = async (arg) => {
60
60
  const firstLineTextHeight = (0, helper_js_1.heightOfFontAtSize)(fontKitFont, fontSize);
61
61
  const descent = (0, helper_js_1.getFontDescentInPt)(fontKitFont, fontSize);
62
62
  const halfLineHeightAdjustment = lineHeight === 0 ? 0 : ((lineHeight - 1) * fontSize) / 2;
63
- const fontWidthCalcValues = {
64
- font: fontKitFont,
65
- fontSize,
63
+ const lines = (0, helper_js_1.splitTextToSize)({
64
+ value,
66
65
  characterSpacing,
66
+ fontSize,
67
+ fontKitFont,
67
68
  boxWidthInPt: width,
68
- };
69
- let lines = [];
70
- value.split(/\r\n|\r|\n|\f|\u000B/g).forEach((line) => {
71
- lines = lines.concat((0, helper_js_1.getSplittedLines)(line, fontWidthCalcValues));
72
69
  });
73
70
  // Text lines are rendered from the bottom upwards, we need to adjust the position down
74
71
  let yOffset = 0;
@@ -1 +1 @@
1
- {"version":3,"file":"pdfRender.js","sourceRoot":"","sources":["../../../../src/text/pdfRender.ts"],"names":[],"mappings":";;;AAEA,0CAOuB;AACvB,iDAUwB;AACxB,2CAOqB;AACrB,0CAAuF;AAEvF,MAAM,kBAAkB,GAAG,KAAK,EAAE,GAIjC,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;IACrC,IAAI,MAAM,CAAC,GAAG,CAAC,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,EAAE;YAC1B,KAAK,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;SAClC;aAAM,IAAI,SAAS,KAAK,OAAO,EAAE;YAChC,KAAK,IAAI,KAAK,GAAG,SAAS,CAAC;SAC5B;QAED,IAAI,KAAK,GAAG,UAAU,GAAG,IAAA,cAAK,EAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,UAAU,CAAC;QAEzE,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC,EAAE;YACtB,iGAAiG;YACjG,qGAAqG;YACrG,MAAM,YAAY,GAAG,IAAA,sBAAW,EAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACnF,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC;YACvB,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC;SACxB;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;YAClB,CAAC,EAAE,KAAK;YACR,CAAC,EAAE,KAAK;YACR,MAAM;YACN,IAAI,EAAE,QAAQ;YACd,KAAK;YACL,UAAU,EAAE,UAAU,GAAG,QAAQ;YACjC,IAAI,EAAE,YAAY;YAClB,OAAO;SACR,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAhGW,QAAA,SAAS,aAgGpB"}
@@ -46,12 +46,14 @@ exports.propPanel = {
46
46
  widget: 'inputNumber',
47
47
  span: 6,
48
48
  disabled: enableDynamicFont,
49
+ props: { min: 0 },
49
50
  },
50
51
  characterSpacing: {
51
52
  title: i18n('schemas.text.spacing'),
52
53
  type: 'number',
53
54
  widget: 'inputNumber',
54
55
  span: 6,
56
+ props: { min: 0 },
55
57
  },
56
58
  alignment: {
57
59
  title: i18n('schemas.text.textAlign'),
@@ -83,9 +85,7 @@ exports.propPanel = {
83
85
  title: i18n('schemas.text.lineHeight'),
84
86
  type: 'number',
85
87
  widget: 'inputNumber',
86
- props: {
87
- step: 0.1,
88
- },
88
+ props: { step: 0.1, min: 0 },
89
89
  span: 8,
90
90
  },
91
91
  useDynamicFontSize: { type: 'boolean', widget: 'UseDynamicFontSize', bind: false, span: 16 },
@@ -99,12 +99,14 @@ exports.propPanel = {
99
99
  type: 'number',
100
100
  widget: 'inputNumber',
101
101
  hidden: !enableDynamicFont,
102
+ props: { min: 0 },
102
103
  },
103
104
  max: {
104
105
  title: i18n('schemas.text.max'),
105
106
  type: 'number',
106
107
  widget: 'inputNumber',
107
108
  hidden: !enableDynamicFont,
109
+ props: { min: 0 },
108
110
  },
109
111
  fit: {
110
112
  title: i18n('schemas.text.fit'),
@@ -146,9 +148,10 @@ exports.propPanel = {
146
148
  return textSchema;
147
149
  },
148
150
  widgets: { UseDynamicFontSize },
149
- defaultValue: 'Type Something...',
150
151
  defaultSchema: {
151
152
  type: 'text',
153
+ icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-text-cursor-input"><path d="M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1"/><path d="M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5"/><path d="M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1"/><path d="M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7"/><path d="M9 7v10"/></svg>',
154
+ content: 'Type Something...',
152
155
  position: { x: 0, y: 0 },
153
156
  width: 45,
154
157
  height: 10,
@@ -1 +1 @@
1
- {"version":3,"file":"propPanel.js","sourceRoot":"","sources":["../../../../src/text/propPanel.ts"],"names":[],"mappings":";;;AAAA,0CAMuB;AAEvB,iDAiBwB;AACxB,kDAAqE;AAErE,MAAM,kBAAkB,GAAG,CAAC,KAA2B,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,aA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wBACE,OAAO,EAAE,gCAAiB;wBAC1B,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC;qBAChC;iBACF;aACF;YACD,eAAe,EAAE;gBACf,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC;gBAC9B,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE;oBACL;wBACE,OAAO,EAAE,gCAAiB;wBAC1B,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC;qBAChC;iBACF;aACF;SACF,CAAC;QAEF,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,EAAE,EAAE,kBAAkB,EAAE;IAC/B,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,mcAAmc;QACzc,OAAO,EAAE,mBAAmB;QAC5B,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;QACxB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,uGAAuG;QACvG,4GAA4G;QAC5G,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,gCAAiB;QAC5B,iBAAiB,EAAE,yCAA0B;QAC7C,QAAQ,EAAE,gCAAiB;QAC3B,UAAU,EAAE,kCAAmB;QAC/B,gBAAgB,EAAE,wCAAyB;QAC3C,eAAe,EAAE,SAAS;QAC1B,SAAS,EAAE,iCAAkB;QAC7B,QAAQ,EAAE,SAAS;QACnB,eAAe,EAAE,EAAE;QACnB,OAAO,EAAE,8BAAe;KACzB;CACF,CAAC"}
@@ -16,15 +16,13 @@ const mapVerticalAlignToFlex = (verticalAlignmentValue) => {
16
16
  }
17
17
  return 'flex-start';
18
18
  };
19
- const getBackgroundColor = (value, schema, defaultBackgroundColor) => {
20
- if (!value)
19
+ const getBackgroundColor = (value, schema) => {
20
+ if (!value || !schema.backgroundColor)
21
21
  return 'transparent';
22
- if (schema.backgroundColor)
23
- return schema.backgroundColor;
24
- return defaultBackgroundColor;
22
+ return schema.backgroundColor;
25
23
  };
26
24
  const uiRender = async (arg) => {
27
- const { value, schema, rootElement, mode, onChange, stopEditing, tabIndex, placeholder, options, theme, _cache, } = arg;
25
+ const { value, schema, rootElement, mode, onChange, stopEditing, tabIndex, placeholder, options, _cache, } = arg;
28
26
  const font = options?.font || (0, common_1.getDefaultFont)();
29
27
  let dynamicFontSize = undefined;
30
28
  const getCdfArg = (v) => ({
@@ -37,7 +35,7 @@ const uiRender = async (arg) => {
37
35
  if (schema.dynamicFontSize && value) {
38
36
  dynamicFontSize = await (0, helper_js_1.calculateDynamicFontSize)(getCdfArg(value));
39
37
  }
40
- const fontKitFont = await (0, helper_js_1.getFontKitFont)(schema, font, _cache);
38
+ const fontKitFont = await (0, helper_js_1.getFontKitFont)(schema.fontName, font, _cache);
41
39
  // Depending on vertical alignment, we need to move the top or bottom of the font to keep
42
40
  // it within it's defined box and align it with the generated pdf.
43
41
  const { topAdj, bottomAdj } = (0, helper_js_1.getBrowserVerticalFontAdjustments)(fontKitFont, dynamicFontSize ?? schema.fontSize ?? constants_js_1.DEFAULT_FONT_SIZE, schema.lineHeight ?? constants_js_1.DEFAULT_LINE_HEIGHT, schema.verticalAlignment ?? constants_js_1.DEFAULT_VERTICAL_ALIGNMENT);
@@ -47,13 +45,14 @@ const uiRender = async (arg) => {
47
45
  const containerStyle = {
48
46
  padding: 0,
49
47
  resize: 'none',
50
- backgroundColor: getBackgroundColor(value, schema, (0, utils_js_1.addAlphaToHex)(theme.colorPrimaryBg, 30)),
48
+ backgroundColor: getBackgroundColor(value, schema),
51
49
  border: 'none',
52
50
  display: 'flex',
53
51
  flexDirection: 'column',
54
52
  justifyContent: mapVerticalAlignToFlex(schema.verticalAlignment),
55
53
  width: '100%',
56
54
  height: '100%',
55
+ cursor: (0, utils_js_1.isEditable)(mode, schema) ? 'text' : 'default',
57
56
  };
58
57
  Object.assign(container.style, containerStyle);
59
58
  rootElement.innerHTML = '';
@@ -104,7 +103,7 @@ const uiRender = async (arg) => {
104
103
  textBlock.tabIndex = tabIndex || 0;
105
104
  textBlock.innerText = value;
106
105
  textBlock.addEventListener('blur', (e) => {
107
- onChange && onChange(e.target.innerText);
106
+ onChange && onChange({ key: 'content', value: e.target.innerText });
108
107
  stopEditing && stopEditing();
109
108
  });
110
109
  if (schema.dynamicFontSize) {
@@ -138,14 +137,16 @@ const uiRender = async (arg) => {
138
137
  }
139
138
  container.appendChild(textBlock);
140
139
  if (mode === 'designer') {
141
- textBlock.focus();
142
- // Set the focus to the end of the editable element when you focus, as we would for a textarea
143
- const selection = window.getSelection();
144
- const range = document.createRange();
145
- range.selectNodeContents(textBlock);
146
- range.collapse(false); // Collapse range to the end
147
- selection?.removeAllRanges();
148
- selection?.addRange(range);
140
+ setTimeout(() => {
141
+ textBlock.focus();
142
+ // Set the focus to the end of the editable element when you focus, as we would for a textarea
143
+ const selection = window.getSelection();
144
+ const range = document.createRange();
145
+ range.selectNodeContents(textBlock);
146
+ range.collapse(false); // Collapse range to the end
147
+ selection?.removeAllRanges();
148
+ selection?.addRange(range);
149
+ });
149
150
  }
150
151
  }
151
152
  else {
@@ -1 +1 @@
1
- {"version":3,"file":"uiRender.js","sourceRoot":"","sources":["../../../../src/text/uiRender.ts"],"names":[],"mappings":";;;AACA,0CAAsE;AAEtE,iDAWwB;AACxB,2CAKqB;AACrB,0CAAwD;AAExD,MAAM,sBAAsB,GAAG,CAAC,sBAA0C,EAAE,EAAE;IAC5E,QAAQ,sBAAsB,EAAE;QAC9B,KAAK,iCAAkB;YACrB,OAAO,YAAY,CAAC;QACtB,KAAK,oCAAqB;YACxB,OAAO,QAAQ,CAAC;QAClB,KAAK,oCAAqB;YACxB,OAAO,UAAU,CAAC;KACrB;IACD,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAE,MAAc,EAAE,sBAA8B,EAAE,EAAE;IAC3F,IAAI,CAAC,KAAK;QAAE,OAAO,aAAa,CAAC;IACjC,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AS,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,IAAI,iCAAkB,CAAC;iBAChE;YACH,CAAC,CAAC,CAAC;SACJ;QAED,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QAEjC,IAAI,IAAI,KAAK,UAAU,EAAE;YACvB,UAAU,CAAC,GAAG,EAAE;gBACd,SAAS,CAAC,KAAK,EAAE,CAAC;gBAClB,8FAA8F;gBAC9F,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;gBACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACrC,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;gBACpC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,4BAA4B;gBACnD,SAAS,EAAE,eAAe,EAAE,CAAC;gBAC7B,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC;SACJ;KACF;SAAM;QACL,SAAS,CAAC,SAAS,GAAG,KAAK;aACxB,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CACF,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CACvB,+BACE,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SACvC,MAAM,CAAC,SAAS,CACnB;aACA,IAAI,CAAC,EAAE,CAAC,CAAC;QAEZ,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;KAClC;AACH,CAAC,CAAC;AA5KW,QAAA,QAAQ,YA4KnB"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createErrorElm = exports.readFile = exports.hex2PrintingColor = exports.hex2CmykColor = exports.hex2RgbColor = exports.isEditable = exports.addAlphaToHex = exports.rotatePoint = exports.convertForPdfLayoutProps = void 0;
3
+ exports.cloneDeep = exports.createErrorElm = exports.readFile = exports.hex2PrintingColor = exports.hex2CmykColor = exports.hex2RgbColor = exports.isEditable = exports.addAlphaToHex = exports.rotatePoint = exports.convertForPdfLayoutProps = void 0;
4
4
  const pdf_lib_1 = require("@pdfme/pdf-lib");
5
5
  const common_1 = require("@pdfme/common");
6
6
  const convertForPdfLayoutProps = ({ schema, pageHeight, applyRotateTranslate = true, }) => {
@@ -167,4 +167,6 @@ const createErrorElm = () => {
167
167
  return container;
168
168
  };
169
169
  exports.createErrorElm = createErrorElm;
170
+ const cloneDeep = (value) => JSON.parse(JSON.stringify(value));
171
+ exports.cloneDeep = cloneDeep;
170
172
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":";;;AACA,4CAAsE;AACtE,0CAA2E;AAEpE,MAAM,wBAAwB,GAAG,CAAC,EACvC,MAAM,EACN,UAAU,EACV,oBAAoB,GAAG,IAAI,GAK5B,EAAE,EAAE;IACH,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;IAC/E,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAC;IAEpC,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC;IAC7B,MAAM,MAAM,GAAG,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAC;IAC/B,IAAI,CAAC,GAAG,IAAA,cAAK,EAAC,GAAG,CAAC,CAAC;IACnB,2FAA2F;IAC3F,IAAI,CAAC,GAAG,UAAU,GAAG,IAAA,cAAK,EAAC,GAAG,CAAC,GAAG,MAAM,C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I,KAAQ,EAAK,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAAlE,QAAA,SAAS,aAAyD"}
@@ -11,6 +11,7 @@ const getSampleFont = () => ({
11
11
  const getTextSchema = () => {
12
12
  const textSchema = {
13
13
  type: 'text',
14
+ content: 'test',
14
15
  position: { x: 0, y: 0 },
15
16
  width: 50,
16
17
  height: 20,
@@ -89,7 +90,7 @@ describe('getSplittedLines test with real font width calculations', () => {
89
90
  };
90
91
  it('should not split a line when the text is shorter than the width', async () => {
91
92
  const _cache = new Map();
92
- await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
93
+ await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
93
94
  const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
94
95
  const result = getSplittedLines('short', fontWidthCalcs);
95
96
  expect(result).toEqual(['short']);
@@ -97,7 +98,7 @@ describe('getSplittedLines test with real font width calculations', () => {
97
98
  });
98
99
  it('should split a line when the text is longer than the width', async () => {
99
100
  const _cache = new Map();
100
- await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
101
+ await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
101
102
  const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
102
103
  const result = getSplittedLines('this will wrap', fontWidthCalcs);
103
104
  expect(result).toEqual(['this', 'will', 'wrap']);
@@ -105,7 +106,7 @@ describe('getSplittedLines test with real font width calculations', () => {
105
106
  });
106
107
  it('should split a line in the middle when unspaced text will not fit on a line', async () => {
107
108
  const _cache = new Map();
108
- await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
109
+ await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
109
110
  const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
110
111
  const result = getSplittedLines('thiswillbecut', fontWidthCalcs);
111
112
  expect(result).toEqual(['thiswi', 'llbecu', 't']);
@@ -113,7 +114,7 @@ describe('getSplittedLines test with real font width calculations', () => {
113
114
  });
114
115
  it('should not split text when it is impossible due to size constraints', async () => {
115
116
  const _cache = new Map();
116
- await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
117
+ await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
117
118
  const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
118
119
  fontWidthCalcs.boxWidthInPt = 2;
119
120
  const result = getSplittedLines('thiswillnotbecut', fontWidthCalcs);
@@ -1 +1 @@
1
- {"version":3,"file":"text.test.js","sourceRoot":"","sources":["../../../__tests__/text.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAQ,cAAc,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,wBAAwB,EACxB,iCAAiC,EACjC,kBAAkB,EAClB,cAAc,EACd,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,CAAC,CAAC;AACxF,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC,CAAC;AAE1F,MAAM,aAAa,GAAG,GAAS,EAAE,CAAC,CAAC;IACjC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,UAAU,GAAe;QAC7B,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EA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;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,uEAAuE,EAAE,GAAG,EAAE;QACjF,MAAM,CAAC,iCAAiC,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YACzE,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,QAAQ;SACpB,CAAC,CAAC;QACH,MAAM,CAAC,iCAAiC,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,kBAAkB;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,CAAC,iCAAiC,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,QAAQ,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAiB,CAAC;QAChF,MAAM,CAAC,iCAAiC,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC7E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -64,6 +64,7 @@ describe('convertForPdfLayoutProps', () => {
64
64
  it('should return correct value without rotation', () => {
65
65
  const schema = {
66
66
  type: 'image',
67
+ content: '',
67
68
  width: 100,
68
69
  height: 100,
69
70
  position: { x: 100, y: 100 },
@@ -82,6 +83,7 @@ describe('convertForPdfLayoutProps', () => {
82
83
  it('should return correct value with rotation', () => {
83
84
  const schema = {
84
85
  type: 'image',
86
+ content: '',
85
87
  width: 50,
86
88
  height: 120,
87
89
  position: { x: 100, y: 100 },
@@ -100,6 +102,7 @@ describe('convertForPdfLayoutProps', () => {
100
102
  it('should not rotate if asked not to', () => {
101
103
  const schema = {
102
104
  type: 'text',
105
+ content: '',
103
106
  width: 50,
104
107
  height: 120,
105
108
  position: { x: 100, y: 100 },
@@ -1 +1 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../../__tests__/utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEnF,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,GAAG,GAAG,SAAS,CAAC;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,GAAG,GAAG,MAAM,CAAC;QACnB,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACvE,CAAC,CAAC,CAA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