@yoobic/yobi 8.3.0-35 → 8.3.0-36

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 (53) hide show
  1. package/dist/cjs/design-system.cjs.js +1 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/yoo-card-feed.cjs.entry.js +1 -1
  4. package/dist/cjs/yoo-draw-flow.cjs.entry.js +26 -15
  5. package/dist/cjs/yoo-form-dynamic.cjs.entry.js +4 -4
  6. package/dist/cjs/yoo-form-input-container.cjs.entry.js +1 -1
  7. package/dist/cjs/yoo-form-text-editor.cjs.entry.js +50 -50
  8. package/dist/cjs/yoo-grid-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
  10. package/dist/cjs/yoo-markdown.cjs.entry.js +1 -1
  11. package/dist/cjs/yoo-truncate.cjs.entry.js +1 -1
  12. package/dist/cjs/yoo-waitlist-location-start.cjs.entry.js +1 -1
  13. package/dist/collection/components/1.atoms/collapsible/collapsible.js +22 -0
  14. package/dist/collection/components/1.atoms/markdown/markdown.css +1 -1
  15. package/dist/collection/components/1.atoms/truncate/truncate.css +1 -1
  16. package/dist/collection/components/form/form-dynamic/form-dynamic.css +1 -1
  17. package/dist/collection/components/form/form-dynamic/form-dynamic.js +2 -2
  18. package/dist/collection/components/form/form-dynamic/helpers/index.js +1 -1
  19. package/dist/collection/components/form/form-input-container/form-input-container.css +5 -1
  20. package/dist/collection/components/grid/grid/grid.js +1 -1
  21. package/dist/collection/components/grid/grid-calendar/grid-calendar.css +1 -1
  22. package/dist/collection/feature-communicate/feed/card-feed/default/card-feed.css +1 -1
  23. package/dist/collection/feature-operate/waitlist/waitlist-location-start/waitlist-location-start.css +1 -1
  24. package/dist/collection/feature-platform/admin/draw-flow/draw-flow.css +239 -107
  25. package/dist/collection/feature-platform/admin/draw-flow/draw-flow.js +26 -14
  26. package/dist/design-system/design-system.css +18 -18
  27. package/dist/design-system/design-system.esm.js +1 -1
  28. package/dist/design-system/yoo-card-feed.entry.js +1 -1
  29. package/dist/design-system/yoo-draw-flow.entry.js +27 -16
  30. package/dist/design-system/yoo-form-dynamic.entry.js +4 -4
  31. package/dist/design-system/yoo-form-input-container.entry.js +1 -1
  32. package/dist/design-system/yoo-form-text-editor.entry.js +50 -50
  33. package/dist/design-system/yoo-grid-calendar.entry.js +1 -1
  34. package/dist/design-system/yoo-grid.entry.js +1 -1
  35. package/dist/design-system/yoo-markdown.entry.js +1 -1
  36. package/dist/design-system/yoo-truncate.entry.js +1 -1
  37. package/dist/design-system/yoo-waitlist-location-start.entry.js +1 -1
  38. package/dist/esm/design-system.js +1 -1
  39. package/dist/esm/loader.js +1 -1
  40. package/dist/esm/yoo-card-feed.entry.js +1 -1
  41. package/dist/esm/yoo-draw-flow.entry.js +27 -16
  42. package/dist/esm/yoo-form-dynamic.entry.js +4 -4
  43. package/dist/esm/yoo-form-input-container.entry.js +1 -1
  44. package/dist/esm/yoo-form-text-editor.entry.js +50 -50
  45. package/dist/esm/yoo-grid-calendar.entry.js +1 -1
  46. package/dist/esm/yoo-grid.entry.js +1 -1
  47. package/dist/esm/yoo-markdown.entry.js +1 -1
  48. package/dist/esm/yoo-truncate.entry.js +1 -1
  49. package/dist/esm/yoo-waitlist-location-start.entry.js +1 -1
  50. package/dist/types/components/1.atoms/collapsible/collapsible.d.ts +2 -1
  51. package/dist/types/components.d.ts +2 -0
  52. package/dist/types/feature-platform/admin/draw-flow/draw-flow.d.ts +1 -0
  53. package/package.json +1 -1
@@ -7,25 +7,21 @@ export class YooDrawFlowComponent {
7
7
  this.exportTriggers = ['nodeCreated', 'nodeRemoved', 'nodeMoved', 'connectionCreated', 'connectionRemoved', 'moduleCreated', 'moduleChanged', 'moduleRemoved'];
8
8
  }
9
9
  async addBlock(block) {
10
- var _a, _b, _c;
11
- const template = `
12
- <div>
13
- <div class="title-box">
14
- <yoo-icon class="margin-right" name="${block.icon}" ></yoo-icon>
15
- ${translate(block.title)}
16
- <yoo-icon class="margin-left" name="settings" ></yoo-icon>
17
- </div>
18
- <div class="description-box">${translate((_a = block.config) === null || _a === void 0 ? void 0 : _a.description)}</div>
19
- </div>
20
- `;
10
+ var _a, _b;
11
+ const html = this.getNodeTemplate(block);
21
12
  let x = 10;
22
13
  let y = 10;
23
14
  if (this.lastCreatedId) {
24
15
  const previousNode = this.editor.getNodeFromId(this.lastCreatedId);
25
- x = previousNode.pos_x + 100;
26
- y = previousNode.pos_y + 100;
16
+ x = previousNode.pos_x + 250;
17
+ y = previousNode.pos_y + 250;
27
18
  }
28
- this.editor.addNode(block.type, (_b = block.config) === null || _b === void 0 ? void 0 : _b.inputsNumber, (_c = block.config) === null || _c === void 0 ? void 0 : _c.outputsNumber, x, y, block.category, { title: block.title, category: block.category, type: block.type }, template, false);
19
+ this.editor.addNode(block.type, (_a = block.config) === null || _a === void 0 ? void 0 : _a.inputsNumber, (_b = block.config) === null || _b === void 0 ? void 0 : _b.outputsNumber, x, y, block.category, {
20
+ title: block.title,
21
+ category: block.category,
22
+ type: block.type,
23
+ slotName: block.slotName
24
+ }, html, false);
29
25
  }
30
26
  async updateNodeConfig(nodeId, config) {
31
27
  const node = this.editor.getNodeFromId(nodeId);
@@ -103,6 +99,21 @@ export class YooDrawFlowComponent {
103
99
  var _a;
104
100
  (_a = this.editor) === null || _a === void 0 ? void 0 : _a.zoom_reset();
105
101
  }
102
+ getNodeTemplate(block) {
103
+ var _a;
104
+ const template = `
105
+ <div class="block-container">
106
+ <div class="title-box">
107
+ <yoo-icon class="margin-right" name="${block.icon}" ></yoo-icon>
108
+ <span class="title-text">${translate(block.title)}</span>
109
+ <yoo-icon class="margin-left" name="settings" ></yoo-icon>
110
+ </div>
111
+ <div class="description-box">${translate((_a = block.config) === null || _a === void 0 ? void 0 : _a.description)}</div>
112
+ <slot name="block-${block.slotName}"></slot>
113
+ </div>
114
+ `;
115
+ return template;
116
+ }
106
117
  render() {
107
118
  var _a;
108
119
  return (h("div", { class: "drawflow-container" },
@@ -115,6 +126,7 @@ export class YooDrawFlowComponent {
115
126
  h("yoo-icon", { name: "circle-plus", size: "medium", onClick: () => this.onZoomIn() }))));
116
127
  }
117
128
  static get is() { return "yoo-draw-flow"; }
129
+ static get encapsulation() { return "shadow"; }
118
130
  static get originalStyleUrls() { return {
119
131
  "$": ["draw-flow.scss"]
120
132
  }; }
@@ -413,7 +413,7 @@ null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override
413
413
  }
414
414
 
415
415
  /*!
416
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
416
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
417
417
  * License https://froala.com/wysiwyg-editor/terms/
418
418
  * Copyright 2014-2022 Froala Labs
419
419
  */
@@ -1856,7 +1856,7 @@ span.fr-sr-only {
1856
1856
  position: relative !important; }
1857
1857
 
1858
1858
  /*!
1859
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
1859
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
1860
1860
  * License https://froala.com/wysiwyg-editor/terms/
1861
1861
  * Copyright 2014-2022 Froala Labs
1862
1862
  */
@@ -4042,7 +4042,7 @@ span.fr-sr-only {
4042
4042
  fill: #0098f7; }
4043
4043
 
4044
4044
  /*!
4045
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
4045
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
4046
4046
  * License https://froala.com/wysiwyg-editor/terms/
4047
4047
  * Copyright 2014-2022 Froala Labs
4048
4048
  */
@@ -6228,7 +6228,7 @@ span.fr-sr-only {
6228
6228
  fill: #0098f7; }
6229
6229
 
6230
6230
  /*!
6231
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6231
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6232
6232
  * License https://froala.com/wysiwyg-editor/terms/
6233
6233
  * Copyright 2014-2022 Froala Labs
6234
6234
  */
@@ -6326,7 +6326,7 @@ textarea.fr-code {
6326
6326
  background: #ebebeb; }
6327
6327
 
6328
6328
  /*!
6329
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6329
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6330
6330
  * License https://froala.com/wysiwyg-editor/terms/
6331
6331
  * Copyright 2014-2022 Froala Labs
6332
6332
  */
@@ -6425,7 +6425,7 @@ textarea.fr-code {
6425
6425
  -o-transform: translate3d(100%, 0, 0); }
6426
6426
 
6427
6427
  /*!
6428
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6428
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6429
6429
  * License https://froala.com/wysiwyg-editor/terms/
6430
6430
  * Copyright 2014-2022 Froala Labs
6431
6431
  */
@@ -6467,7 +6467,7 @@ textarea.fr-code {
6467
6467
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; }
6468
6468
 
6469
6469
  /*!
6470
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6470
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6471
6471
  * License https://froala.com/wysiwyg-editor/terms/
6472
6472
  * Copyright 2014-2022 Froala Labs
6473
6473
  */
@@ -6502,7 +6502,7 @@ textarea.fr-code {
6502
6502
  width: 368px; } }
6503
6503
 
6504
6504
  /*!
6505
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6505
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6506
6506
  * License https://froala.com/wysiwyg-editor/terms/
6507
6507
  * Copyright 2014-2022 Froala Labs
6508
6508
  */
@@ -6631,7 +6631,7 @@ textarea.fr-code {
6631
6631
  left: 100%; } }
6632
6632
 
6633
6633
  /*!
6634
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6634
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6635
6635
  * License https://froala.com/wysiwyg-editor/terms/
6636
6636
  * Copyright 2014-2022 Froala Labs
6637
6637
  */
@@ -6711,7 +6711,7 @@ body.fr-fullscreen {
6711
6711
  overflow: visible !important; }
6712
6712
 
6713
6713
  /*!
6714
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6714
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6715
6715
  * License https://froala.com/wysiwyg-editor/terms/
6716
6716
  * Copyright 2014-2022 Froala Labs
6717
6717
  */
@@ -6948,7 +6948,7 @@ div.fr-modal-body {
6948
6948
  background: #ebebeb; }
6949
6949
 
6950
6950
  /*!
6951
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
6951
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
6952
6952
  * License https://froala.com/wysiwyg-editor/terms/
6953
6953
  * Copyright 2014-2022 Froala Labs
6954
6954
  */
@@ -7165,7 +7165,7 @@ img.fr-draggable {
7165
7165
  user-select: none; }
7166
7166
 
7167
7167
  /*!
7168
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
7168
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
7169
7169
  * License https://froala.com/wysiwyg-editor/terms/
7170
7170
  * Copyright 2014-2022 Froala Labs
7171
7171
  */
@@ -7204,7 +7204,7 @@ img.fr-draggable {
7204
7204
  width: 24px; }
7205
7205
 
7206
7206
  /*!
7207
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
7207
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
7208
7208
  * License https://froala.com/wysiwyg-editor/terms/
7209
7209
  * Copyright 2014-2022 Froala Labs
7210
7210
  */
@@ -7277,7 +7277,7 @@ img.fr-draggable {
7277
7277
  -o-transform: scale(1); }
7278
7278
 
7279
7279
  /*!
7280
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
7280
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
7281
7281
  * License https://froala.com/wysiwyg-editor/terms/
7282
7282
  * Copyright 2014-2022 Froala Labs
7283
7283
  */
@@ -7311,7 +7311,7 @@ img.fr-draggable {
7311
7311
  width: 368px; } }
7312
7312
 
7313
7313
  /*!
7314
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
7314
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
7315
7315
  * License https://froala.com/wysiwyg-editor/terms/
7316
7316
  * Copyright 2014-2022 Froala Labs
7317
7317
  */
@@ -7416,7 +7416,7 @@ img.fr-draggable {
7416
7416
  white-space: nowrap; }
7417
7417
 
7418
7418
  /*!
7419
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
7419
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
7420
7420
  * License https://froala.com/wysiwyg-editor/terms/
7421
7421
  * Copyright 2014-2022 Froala Labs
7422
7422
  */
@@ -7618,7 +7618,7 @@ img.fr-draggable {
7618
7618
  margin-top: 0px !important; }
7619
7619
 
7620
7620
  /*!
7621
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
7621
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
7622
7622
  * License https://froala.com/wysiwyg-editor/terms/
7623
7623
  * Copyright 2014-2022 Froala Labs
7624
7624
  */
@@ -7985,7 +7985,7 @@ span.fr-img-caption.fr-view {
7985
7985
  max-width: calc(100% - 5px); }
7986
7986
 
7987
7987
  /*!
7988
- * froala_editor v4.0.12 (https://www.froala.com/wysiwyg-editor)
7988
+ * froala_editor v4.0.13 (https://www.froala.com/wysiwyg-editor)
7989
7989
  * License https://froala.com/wysiwyg-editor/terms/
7990
7990
  * Copyright 2014-2022 Froala Labs
7991
7991
  */