@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.
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/yoo-card-feed.cjs.entry.js +1 -1
- package/dist/cjs/yoo-draw-flow.cjs.entry.js +26 -15
- package/dist/cjs/yoo-form-dynamic.cjs.entry.js +4 -4
- package/dist/cjs/yoo-form-input-container.cjs.entry.js +1 -1
- package/dist/cjs/yoo-form-text-editor.cjs.entry.js +50 -50
- package/dist/cjs/yoo-grid-calendar.cjs.entry.js +1 -1
- package/dist/cjs/yoo-grid.cjs.entry.js +1 -1
- package/dist/cjs/yoo-markdown.cjs.entry.js +1 -1
- package/dist/cjs/yoo-truncate.cjs.entry.js +1 -1
- package/dist/cjs/yoo-waitlist-location-start.cjs.entry.js +1 -1
- package/dist/collection/components/1.atoms/collapsible/collapsible.js +22 -0
- package/dist/collection/components/1.atoms/markdown/markdown.css +1 -1
- package/dist/collection/components/1.atoms/truncate/truncate.css +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.css +1 -1
- package/dist/collection/components/form/form-dynamic/form-dynamic.js +2 -2
- package/dist/collection/components/form/form-dynamic/helpers/index.js +1 -1
- package/dist/collection/components/form/form-input-container/form-input-container.css +5 -1
- package/dist/collection/components/grid/grid/grid.js +1 -1
- package/dist/collection/components/grid/grid-calendar/grid-calendar.css +1 -1
- package/dist/collection/feature-communicate/feed/card-feed/default/card-feed.css +1 -1
- package/dist/collection/feature-operate/waitlist/waitlist-location-start/waitlist-location-start.css +1 -1
- package/dist/collection/feature-platform/admin/draw-flow/draw-flow.css +239 -107
- package/dist/collection/feature-platform/admin/draw-flow/draw-flow.js +26 -14
- package/dist/design-system/design-system.css +18 -18
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/yoo-card-feed.entry.js +1 -1
- package/dist/design-system/yoo-draw-flow.entry.js +27 -16
- package/dist/design-system/yoo-form-dynamic.entry.js +4 -4
- package/dist/design-system/yoo-form-input-container.entry.js +1 -1
- package/dist/design-system/yoo-form-text-editor.entry.js +50 -50
- package/dist/design-system/yoo-grid-calendar.entry.js +1 -1
- package/dist/design-system/yoo-grid.entry.js +1 -1
- package/dist/design-system/yoo-markdown.entry.js +1 -1
- package/dist/design-system/yoo-truncate.entry.js +1 -1
- package/dist/design-system/yoo-waitlist-location-start.entry.js +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/yoo-card-feed.entry.js +1 -1
- package/dist/esm/yoo-draw-flow.entry.js +27 -16
- package/dist/esm/yoo-form-dynamic.entry.js +4 -4
- package/dist/esm/yoo-form-input-container.entry.js +1 -1
- package/dist/esm/yoo-form-text-editor.entry.js +50 -50
- package/dist/esm/yoo-grid-calendar.entry.js +1 -1
- package/dist/esm/yoo-grid.entry.js +1 -1
- package/dist/esm/yoo-markdown.entry.js +1 -1
- package/dist/esm/yoo-truncate.entry.js +1 -1
- package/dist/esm/yoo-waitlist-location-start.entry.js +1 -1
- package/dist/types/components/1.atoms/collapsible/collapsible.d.ts +2 -1
- package/dist/types/components.d.ts +2 -0
- package/dist/types/feature-platform/admin/draw-flow/draw-flow.d.ts +1 -0
- 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
|
|
11
|
-
const
|
|
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 +
|
|
26
|
-
y = previousNode.pos_y +
|
|
16
|
+
x = previousNode.pos_x + 250;
|
|
17
|
+
y = previousNode.pos_y + 250;
|
|
27
18
|
}
|
|
28
|
-
this.editor.addNode(block.type, (
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
*/
|