@useinsider/guido 3.12.0-beta.840207a → 3.12.0-beta.86e34da
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/@types/config/schemas.js +6 -6
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +1 -1
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +8 -8
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +5 -5
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +10 -10
- package/dist/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue.js +8 -6
- package/dist/components/organisms/extensions/recommendation/StrategyDetailDrawer.vue2.js +98 -71
- package/dist/composables/usePreviewInteractionGuard.js +36 -11
- package/dist/composables/useRecommendation.js +63 -78
- package/dist/composables/useRecommendationPreview.js +61 -60
- package/dist/enums/extensions/filteringV2.js +1017 -1
- package/dist/enums/extensions/recommendationBlock.js +34 -19
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/blockBackground/index.js +10 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +24 -20
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +245 -106
- package/dist/extensions/Blocks/Recommendation/extension.js +23 -21
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +17 -3
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +257 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +41 -40
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +310 -117
- package/dist/extensions/Blocks/Recommendation/utils/strategyNavigation.js +8 -0
- package/dist/extensions/Blocks/Recommendation/utils/strategySummary.js +93 -8
- package/dist/extensions/Blocks/Recommendation/utils/strategyUrl.js +43 -0
- package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +18 -16
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +3 -2
- package/dist/extensions/Blocks/common-control.js +2 -1
- package/dist/extensions/Blocks/controlFactories.js +125 -75
- package/dist/guido.css +1 -1
- package/dist/services/recommendationApi.js +90 -45
- package/dist/services/stripoApi.js +18 -18
- package/dist/src/@types/config/schemas.d.ts +2 -2
- package/dist/src/composables/usePreviewInteractionGuard.d.ts +1 -1
- package/dist/src/enums/extensions/recommendationBlock.d.ts +25 -2
- package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/blockBackground/index.d.ts +14 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +7 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +59 -45
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +301 -4
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyNavigation.d.ts +10 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyUrl.d.ts +51 -0
- package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +5 -0
- package/dist/src/extensions/Blocks/Unsubscribe/utils/constants.d.ts +1 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +2 -1
- package/dist/src/extensions/Blocks/controlFactories.d.ts +36 -0
- package/dist/src/mock/api/recommendation-strategies.d.ts +2 -0
- package/dist/src/services/recommendationApi.d.ts +3 -1
- package/dist/src/utils/urlSchemes.d.ts +6 -0
- package/dist/static/styles/base.css.js +0 -15
- package/dist/static/styles/components/base-input.css.js +6 -7
- package/dist/utils/templatePreparation.js +56 -47
- package/dist/utils/urlSchemes.js +4 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtensionBuilder as
|
|
1
|
+
import { ExtensionBuilder as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
2
|
import { RecommendationBlock as m } from "./block.js";
|
|
3
3
|
import n from "./canvasPreview.css.js";
|
|
4
4
|
import { RecommendationBlockControl as i } from "./controls/main/index.js";
|
|
@@ -6,42 +6,44 @@ import "./constants/selectors.js";
|
|
|
6
6
|
import "./store/recommendation.js";
|
|
7
7
|
import "./utils/captureStyleTemplates.js";
|
|
8
8
|
import { NameControls as e } from "./controls/name/index.js";
|
|
9
|
-
import { PriceControls as
|
|
10
|
-
import { OldPriceControls as
|
|
9
|
+
import { PriceControls as l } from "./controls/price/index.js";
|
|
10
|
+
import { OldPriceControls as s } from "./controls/oldPrice/index.js";
|
|
11
11
|
import { OmnibusPriceControls as p } from "./controls/omnibusPrice/index.js";
|
|
12
12
|
import { OmnibusDiscountControls as a } from "./controls/omnibusDiscount/index.js";
|
|
13
13
|
import { ButtonControls as c } from "./controls/button/index.js";
|
|
14
|
-
import { ImageControls as
|
|
15
|
-
import { CustomAttributeControls as
|
|
14
|
+
import { ImageControls as C } from "./controls/image/index.js";
|
|
15
|
+
import { CustomAttributeControls as f } from "./controls/customAttribute/index.js";
|
|
16
16
|
import { SpacingControl as d } from "./controls/spacing/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
17
|
+
import { BlockBackgroundColorControl as u } from "./controls/blockBackground/index.js";
|
|
18
|
+
import { CardBackgroundColorControl as g } from "./controls/cardBackground/index.js";
|
|
19
|
+
import { RecommendationCardCompositionControl as y } from "./controls/cardComposition/index.js";
|
|
20
|
+
import { SyncInfoMessageControl as B } from "./controls/syncInfoMessage.js";
|
|
20
21
|
import { RecommendationIconsRegistry as P } from "./iconsRegistry.js";
|
|
21
22
|
import R from "./recommendation.css.js";
|
|
22
23
|
import { SettingsPanel as S } from "./settingsPanel.js";
|
|
23
|
-
const
|
|
24
|
+
const k = [
|
|
24
25
|
e,
|
|
25
|
-
s,
|
|
26
26
|
l,
|
|
27
|
+
s,
|
|
27
28
|
p,
|
|
28
29
|
a,
|
|
29
30
|
c,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
],
|
|
31
|
+
C,
|
|
32
|
+
f
|
|
33
|
+
], w = [
|
|
33
34
|
i,
|
|
34
35
|
u,
|
|
35
|
-
d,
|
|
36
36
|
g,
|
|
37
|
-
|
|
37
|
+
d,
|
|
38
|
+
y,
|
|
39
|
+
B
|
|
38
40
|
], b = [
|
|
39
|
-
...
|
|
40
|
-
...
|
|
41
|
-
],
|
|
42
|
-
(o,
|
|
43
|
-
new
|
|
41
|
+
...w,
|
|
42
|
+
...k.flatMap((o) => Object.values(o))
|
|
43
|
+
], W = b.reduce(
|
|
44
|
+
(o, r) => o.addControl(r),
|
|
45
|
+
new t().addBlock(m).withSettingsPanelRegistry(S)
|
|
44
46
|
).addStyles(R).withPreviewStyles(n).withIconsRegistry(P).build();
|
|
45
47
|
export {
|
|
46
|
-
|
|
48
|
+
W as default
|
|
47
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r from "../../../static/assets/info.svg.js";
|
|
2
2
|
import { IconsRegistry as C } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
3
|
-
class
|
|
3
|
+
class l extends C {
|
|
4
4
|
registerIconsSvg(t) {
|
|
5
5
|
t["recommendation-icon"] = `
|
|
6
6
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
|
|
@@ -74,9 +74,23 @@ class h extends C {
|
|
|
74
74
|
<path d="M17 2V18C17 18.5523 16.5523 19 16 19H10V1H16C16.5523 1 17 1.44772 17 2Z" stroke="currentColor"
|
|
75
75
|
stroke-width="2" fill="none"/>
|
|
76
76
|
</svg>
|
|
77
|
-
`, t["
|
|
77
|
+
`, t["strategy-settings-icon"] = `
|
|
78
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
|
|
79
|
+
fill="currentColor">
|
|
80
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14 4a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v.757c0
|
|
81
|
+
.891-1.077 1.337-1.707.708l-.536-.536a1 1 0 0 0-1.414 0L4.93 6.343a1 1 0 0 0 0
|
|
82
|
+
1.414l.535.536c.63.63.184 1.707-.707 1.707H4a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h.757c.891 0
|
|
83
|
+
1.337 1.077.708 1.707l-.536.536a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414
|
|
84
|
+
0l.536-.535c.63-.63 1.707-.184 1.707.707V20a1 1 0 0 0 1 1h2a1 1 0 0 0
|
|
85
|
+
1-1v-.757c0-.891 1.077-1.337 1.707-.707l.536.535a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0
|
|
86
|
+
0-1.414l-.536-.536c-.63-.63-.183-1.707.708-1.707H20a1 1 0 0 0 1-1v-2a1 1 0 0
|
|
87
|
+
0-1-1h-.757c-.891 0-1.337-1.077-.707-1.707l.535-.536a1 1 0 0 0
|
|
88
|
+
0-1.414L17.657 4.93a1 1 0 0 0-1.414 0l-.536.536c-.63.63-1.707.183-1.707-.708V4zm3 8a5 5 0
|
|
89
|
+
1 1-10 0 5 5 0 0 1 10 0zm-5 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"></path>
|
|
90
|
+
</svg>
|
|
91
|
+
`, t["migration-info-icon"] = r;
|
|
78
92
|
}
|
|
79
93
|
}
|
|
80
94
|
export {
|
|
81
|
-
|
|
95
|
+
l as RecommendationIconsRegistry
|
|
82
96
|
};
|
|
@@ -289,6 +289,263 @@ ue-orderable.orderable-disabled .droppable-icon {
|
|
|
289
289
|
font-weight: 400;
|
|
290
290
|
line-height: 16px;
|
|
291
291
|
}
|
|
292
|
+
|
|
293
|
+
/*
|
|
294
|
+
* Recommendation Strategy picker (controls/main/strategy.ts).
|
|
295
|
+
*
|
|
296
|
+
* Lives inside the settings panel, so it scrolls with it and needs no positioning
|
|
297
|
+
* code. Only the hover card escapes the panel, via \`position: fixed\`.
|
|
298
|
+
*
|
|
299
|
+
* The values below are the design system's own, read from its stylesheets
|
|
300
|
+
* (\`combobox.css\` for the trigger, \`InInfoBox\`'s CSS for the card). The \`In*\`
|
|
301
|
+
* components themselves cannot render in this shadow root — they are styled from
|
|
302
|
+
* the host document, and copying their stylesheets across drags normalize.css and
|
|
303
|
+
* a global \`*\`/\`svg\` reset into Stripo's panel.
|
|
304
|
+
*/
|
|
305
|
+
|
|
306
|
+
/*
|
|
307
|
+
* Anchors the dropdown. Without a positioned wrapper the menu is a grid item of
|
|
308
|
+
* the column container, and its absolute static position resolves to that
|
|
309
|
+
* container's top — so it opens over the label instead of under the trigger.
|
|
310
|
+
*/
|
|
311
|
+
.strategy-control__field {
|
|
312
|
+
position: relative;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.strategy-control__row {
|
|
316
|
+
display: flex;
|
|
317
|
+
align-items: center;
|
|
318
|
+
gap: 8px;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/*
|
|
322
|
+
* Same tokens as \`ue-select .button\` in components/combobox.css, so the strategy
|
|
323
|
+
* trigger is indistinguishable from Recommendation Locale / Currency beside it.
|
|
324
|
+
* It cannot simply reuse that rule: the selector is scoped to \`ue-select\`, and a
|
|
325
|
+
* Stripo select cannot render this control's per-option hover card.
|
|
326
|
+
*/
|
|
327
|
+
.strategy-select {
|
|
328
|
+
display: flex;
|
|
329
|
+
flex: 1;
|
|
330
|
+
align-items: center;
|
|
331
|
+
justify-content: space-between;
|
|
332
|
+
gap: 8px;
|
|
333
|
+
min-width: 0;
|
|
334
|
+
min-height: 40px;
|
|
335
|
+
padding: 8px;
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
background-color: var(--guido-color-gray-0);
|
|
338
|
+
border: 1px solid var(--guido-color-gray-300);
|
|
339
|
+
border-radius: 4px;
|
|
340
|
+
box-shadow: none;
|
|
341
|
+
cursor: pointer;
|
|
342
|
+
font-size: 13px;
|
|
343
|
+
color: var(--guido-color-gray-800);
|
|
344
|
+
text-align: left;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.strategy-select:hover {
|
|
348
|
+
border-color: var(--guido-color-primary-500);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* Matches the focus ring Stripo paints on an open select. */
|
|
352
|
+
.strategy-select--open {
|
|
353
|
+
border-color: var(--guido-color-primary-500);
|
|
354
|
+
box-shadow: 0 0 0 3px var(--guido-color-primary-200);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.strategy-select__value {
|
|
358
|
+
overflow: hidden;
|
|
359
|
+
text-overflow: ellipsis;
|
|
360
|
+
white-space: nowrap;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.strategy-select__value--placeholder {
|
|
364
|
+
color: var(--guido-color-gray-700);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.strategy-select__value--missing {
|
|
368
|
+
color: var(--guido-color-danger-500);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.strategy-select__caret {
|
|
372
|
+
display: flex;
|
|
373
|
+
flex: none;
|
|
374
|
+
color: var(--guido-color-gray-800);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* The gear button sits beside the trigger and must not stretch with it. */
|
|
378
|
+
.strategy-control__details {
|
|
379
|
+
flex: none;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.strategy-menu {
|
|
383
|
+
position: absolute;
|
|
384
|
+
z-index: 5;
|
|
385
|
+
top: 100%;
|
|
386
|
+
right: 0;
|
|
387
|
+
left: 0;
|
|
388
|
+
margin-top: 4px;
|
|
389
|
+
overflow: hidden;
|
|
390
|
+
background: var(--guido-color-white);
|
|
391
|
+
border: 1px solid var(--guido-color-gray-300);
|
|
392
|
+
border-radius: 4px;
|
|
393
|
+
box-shadow: var(--guido-box-shadow);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.strategy-menu[hidden] {
|
|
397
|
+
display: none;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.strategy-menu__search {
|
|
401
|
+
padding: 8px;
|
|
402
|
+
border-bottom: 1px solid var(--guido-color-gray-300);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.strategy-menu__search-input {
|
|
406
|
+
box-sizing: border-box;
|
|
407
|
+
width: 100%;
|
|
408
|
+
height: 32px;
|
|
409
|
+
padding: 4px 8px;
|
|
410
|
+
border: 1px solid var(--guido-color-gray-300);
|
|
411
|
+
border-radius: 4px;
|
|
412
|
+
font: inherit;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.strategy-menu__list {
|
|
416
|
+
max-height: 240px;
|
|
417
|
+
margin: 0;
|
|
418
|
+
padding: 0;
|
|
419
|
+
overflow-y: auto;
|
|
420
|
+
list-style: none;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.strategy-menu__option {
|
|
424
|
+
overflow: hidden;
|
|
425
|
+
padding: 8px 12px;
|
|
426
|
+
cursor: pointer;
|
|
427
|
+
font-size: 13px;
|
|
428
|
+
text-overflow: ellipsis;
|
|
429
|
+
white-space: nowrap;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.strategy-menu__option:hover {
|
|
433
|
+
background: var(--guido-color-gray-100);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.strategy-menu__option--selected {
|
|
437
|
+
color: var(--guido-color-primary-500);
|
|
438
|
+
background: var(--guido-color-primary-0);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.strategy-menu__empty {
|
|
442
|
+
padding: 12px;
|
|
443
|
+
color: var(--guido-color-gray-600);
|
|
444
|
+
font-size: 13px;
|
|
445
|
+
text-align: center;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.strategy-control__create-row {
|
|
449
|
+
margin-top: 8px;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/*
|
|
453
|
+
* \`_GuButton\` renders <ue-button> > .control-shadow-wrapper > button.button, and
|
|
454
|
+
* every level is shrink-to-fit. Stretching only the innermost one leaves the
|
|
455
|
+
* button its intrinsic width, which is why the design's full-width row needs all
|
|
456
|
+
* three.
|
|
457
|
+
*/
|
|
458
|
+
.strategy-control__create-row ue-button,
|
|
459
|
+
.strategy-control__create-row .control-shadow-wrapper,
|
|
460
|
+
.strategy-control__create-row .button {
|
|
461
|
+
display: block;
|
|
462
|
+
width: 100%;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/*
|
|
466
|
+
* Hover card. Reproduces the design system's \`InInfoBox\` — same 240px medium
|
|
467
|
+
* width, 4px information-blue top rule, 16px body, and a divided footer for the
|
|
468
|
+
* View More button.
|
|
469
|
+
*
|
|
470
|
+
* \`position: fixed\` so the card sits beside the narrow panel instead of being
|
|
471
|
+
* clipped by it.
|
|
472
|
+
*/
|
|
473
|
+
.strategy-card {
|
|
474
|
+
position: fixed;
|
|
475
|
+
z-index: 10;
|
|
476
|
+
width: 240px;
|
|
477
|
+
background: var(--guido-color-white);
|
|
478
|
+
border-top: 4px solid var(--guido-color-border-onpage-message-info);
|
|
479
|
+
border-radius: 4px;
|
|
480
|
+
box-shadow: 0 4px 12px rgba(57, 57, 57, 0.15);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.strategy-card[hidden] {
|
|
484
|
+
display: none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.strategy-card__body {
|
|
488
|
+
padding: 16px;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.strategy-card__title {
|
|
492
|
+
margin: 0;
|
|
493
|
+
color: var(--guido-color-gray-800);
|
|
494
|
+
font-size: 16px;
|
|
495
|
+
font-weight: 600;
|
|
496
|
+
line-height: 24px;
|
|
497
|
+
word-break: break-word;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.strategy-card__updated {
|
|
501
|
+
margin: 4px 0 0;
|
|
502
|
+
color: var(--guido-color-gray-600);
|
|
503
|
+
font-size: 13px;
|
|
504
|
+
font-weight: 400;
|
|
505
|
+
line-height: 16px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.strategy-card__rows {
|
|
509
|
+
margin-top: 16px;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.strategy-card__row + .strategy-card__row {
|
|
513
|
+
margin-top: 12px;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.strategy-card__row-title {
|
|
517
|
+
margin: 0;
|
|
518
|
+
color: var(--guido-color-gray-600);
|
|
519
|
+
font-size: 12px;
|
|
520
|
+
line-height: 16px;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.strategy-card__row-value {
|
|
524
|
+
margin: 0;
|
|
525
|
+
color: var(--guido-color-gray-800);
|
|
526
|
+
font-size: 13px;
|
|
527
|
+
line-height: 18px;
|
|
528
|
+
word-break: break-word;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.strategy-card__footer {
|
|
532
|
+
padding: 8px 16px;
|
|
533
|
+
border-top: 1px solid var(--guido-color-gray-300);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.strategy-card__more {
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
gap: 4px;
|
|
540
|
+
padding: 0;
|
|
541
|
+
color: var(--guido-color-primary-500);
|
|
542
|
+
background: none;
|
|
543
|
+
border: 0;
|
|
544
|
+
cursor: pointer;
|
|
545
|
+
font-size: 13px;
|
|
546
|
+
font-weight: 600;
|
|
547
|
+
line-height: 16px;
|
|
548
|
+
}
|
|
292
549
|
`;
|
|
293
550
|
export {
|
|
294
551
|
n as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SettingsPanelRegistry as E, SettingsPanelTab as _, SettingsTab as
|
|
2
|
-
import { BLOCK_ID as
|
|
1
|
+
import { SettingsPanelRegistry as E, SettingsPanelTab as _, SettingsTab as I, ContainerControls as C } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
import { BLOCK_ID as R } from "./block.js";
|
|
3
3
|
import { RecommendationBlockId as S } from "./constants/blockIds.js";
|
|
4
4
|
import { RecommendationControlId as T } from "./constants/controlIds.js";
|
|
5
5
|
import "./constants/selectors.js";
|
|
6
|
-
import { CONTROL_BLOCK_ID as
|
|
6
|
+
import { CONTROL_BLOCK_ID as U } from "./controls/main/index.js";
|
|
7
7
|
import "./store/recommendation.js";
|
|
8
8
|
import "./utils/captureStyleTemplates.js";
|
|
9
9
|
import "./controls/name/index.js";
|
|
@@ -13,37 +13,38 @@ import "./controls/omnibusPrice/index.js";
|
|
|
13
13
|
import "./controls/omnibusDiscount/index.js";
|
|
14
14
|
import "./controls/button/index.js";
|
|
15
15
|
import "./controls/image/index.js";
|
|
16
|
-
import { SPACING_CONTROL_ID as
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
16
|
+
import { SPACING_CONTROL_ID as A } from "./controls/spacing/index.js";
|
|
17
|
+
import "./controls/blockBackground/index.js";
|
|
18
|
+
import { CARD_BACKGROUND_COLOR_CONTROL_ID as L } from "./controls/cardBackground/index.js";
|
|
19
|
+
import { COMPOSITION_CONTROL_BLOCK_ID as D } from "./controls/cardComposition/index.js";
|
|
19
20
|
import { SYNC_INFO_MESSAGE_CONTROL_ID as N } from "./controls/syncInfoMessage.js";
|
|
20
|
-
class
|
|
21
|
-
registerBlockControls(
|
|
22
|
-
|
|
21
|
+
class s extends E {
|
|
22
|
+
registerBlockControls(O) {
|
|
23
|
+
O[R] = [
|
|
23
24
|
new _(
|
|
24
|
-
|
|
25
|
+
I.SETTINGS,
|
|
25
26
|
[
|
|
26
|
-
|
|
27
|
+
U,
|
|
27
28
|
C.EXTERNAL_INDENTS
|
|
28
29
|
]
|
|
29
30
|
),
|
|
30
31
|
new _(
|
|
31
|
-
|
|
32
|
+
I.STYLES,
|
|
32
33
|
[
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
T.BLOCK_BACKGROUND,
|
|
35
|
+
L,
|
|
36
|
+
A
|
|
36
37
|
]
|
|
37
38
|
),
|
|
38
39
|
new _(
|
|
39
40
|
"Card Composition",
|
|
40
41
|
[
|
|
41
|
-
|
|
42
|
+
D
|
|
42
43
|
]
|
|
43
44
|
).withLabel(this.api.translate("Card Composition"))
|
|
44
|
-
],
|
|
45
|
+
], O[S.NAME] = [
|
|
45
46
|
new _(
|
|
46
|
-
|
|
47
|
+
I.SETTINGS,
|
|
47
48
|
[
|
|
48
49
|
N,
|
|
49
50
|
T.NAME_STYLE,
|
|
@@ -53,7 +54,7 @@ class d extends E {
|
|
|
53
54
|
]
|
|
54
55
|
),
|
|
55
56
|
new _(
|
|
56
|
-
|
|
57
|
+
I.STYLES,
|
|
57
58
|
[
|
|
58
59
|
T.NAME_BACKGROUND,
|
|
59
60
|
T.NAME_FONT_FAMILY,
|
|
@@ -61,9 +62,9 @@ class d extends E {
|
|
|
61
62
|
T.NAME_COLOR
|
|
62
63
|
]
|
|
63
64
|
)
|
|
64
|
-
],
|
|
65
|
+
], O[S.PRICE] = [
|
|
65
66
|
new _(
|
|
66
|
-
|
|
67
|
+
I.SETTINGS,
|
|
67
68
|
[
|
|
68
69
|
N,
|
|
69
70
|
T.PRICE_STYLE,
|
|
@@ -72,7 +73,7 @@ class d extends E {
|
|
|
72
73
|
]
|
|
73
74
|
),
|
|
74
75
|
new _(
|
|
75
|
-
|
|
76
|
+
I.STYLES,
|
|
76
77
|
[
|
|
77
78
|
T.PRICE_BACKGROUND,
|
|
78
79
|
T.PRICE_FONT_FAMILY,
|
|
@@ -80,9 +81,9 @@ class d extends E {
|
|
|
80
81
|
T.PRICE_COLOR
|
|
81
82
|
]
|
|
82
83
|
)
|
|
83
|
-
],
|
|
84
|
+
], O[S.OLD_PRICE] = [
|
|
84
85
|
new _(
|
|
85
|
-
|
|
86
|
+
I.SETTINGS,
|
|
86
87
|
[
|
|
87
88
|
N,
|
|
88
89
|
T.OLD_PRICE_STYLE,
|
|
@@ -91,7 +92,7 @@ class d extends E {
|
|
|
91
92
|
]
|
|
92
93
|
),
|
|
93
94
|
new _(
|
|
94
|
-
|
|
95
|
+
I.STYLES,
|
|
95
96
|
[
|
|
96
97
|
T.OLD_PRICE_BACKGROUND,
|
|
97
98
|
T.OLD_PRICE_FONT_FAMILY,
|
|
@@ -99,9 +100,9 @@ class d extends E {
|
|
|
99
100
|
T.OLD_PRICE_COLOR
|
|
100
101
|
]
|
|
101
102
|
)
|
|
102
|
-
],
|
|
103
|
+
], O[S.OMNIBUS_PRICE] = [
|
|
103
104
|
new _(
|
|
104
|
-
|
|
105
|
+
I.SETTINGS,
|
|
105
106
|
[
|
|
106
107
|
N,
|
|
107
108
|
T.OMNIBUS_PRICE_TEXT_BEFORE,
|
|
@@ -112,7 +113,7 @@ class d extends E {
|
|
|
112
113
|
]
|
|
113
114
|
),
|
|
114
115
|
new _(
|
|
115
|
-
|
|
116
|
+
I.STYLES,
|
|
116
117
|
[
|
|
117
118
|
T.OMNIBUS_PRICE_BACKGROUND,
|
|
118
119
|
T.OMNIBUS_PRICE_FONT_FAMILY,
|
|
@@ -120,9 +121,9 @@ class d extends E {
|
|
|
120
121
|
T.OMNIBUS_PRICE_COLOR
|
|
121
122
|
]
|
|
122
123
|
)
|
|
123
|
-
],
|
|
124
|
+
], O[S.OMNIBUS_DISCOUNT] = [
|
|
124
125
|
new _(
|
|
125
|
-
|
|
126
|
+
I.SETTINGS,
|
|
126
127
|
[
|
|
127
128
|
N,
|
|
128
129
|
T.OMNIBUS_DISCOUNT_TEXT_BEFORE,
|
|
@@ -133,7 +134,7 @@ class d extends E {
|
|
|
133
134
|
]
|
|
134
135
|
),
|
|
135
136
|
new _(
|
|
136
|
-
|
|
137
|
+
I.STYLES,
|
|
137
138
|
[
|
|
138
139
|
T.OMNIBUS_DISCOUNT_BACKGROUND,
|
|
139
140
|
T.OMNIBUS_DISCOUNT_FONT_FAMILY,
|
|
@@ -141,9 +142,9 @@ class d extends E {
|
|
|
141
142
|
T.OMNIBUS_DISCOUNT_COLOR
|
|
142
143
|
]
|
|
143
144
|
)
|
|
144
|
-
],
|
|
145
|
+
], O[S.BUTTON] = [
|
|
145
146
|
new _(
|
|
146
|
-
|
|
147
|
+
I.SETTINGS,
|
|
147
148
|
[
|
|
148
149
|
N,
|
|
149
150
|
T.BUTTON_TEXT,
|
|
@@ -153,7 +154,7 @@ class d extends E {
|
|
|
153
154
|
]
|
|
154
155
|
),
|
|
155
156
|
new _(
|
|
156
|
-
|
|
157
|
+
I.STYLES,
|
|
157
158
|
[
|
|
158
159
|
T.BUTTON_COLOR,
|
|
159
160
|
T.BUTTON_FONT_FAMILY,
|
|
@@ -164,9 +165,9 @@ class d extends E {
|
|
|
164
165
|
T.BUTTON_BORDER
|
|
165
166
|
]
|
|
166
167
|
)
|
|
167
|
-
],
|
|
168
|
+
], O[S.CUSTOM_ATTRIBUTE] = [
|
|
168
169
|
new _(
|
|
169
|
-
|
|
170
|
+
I.SETTINGS,
|
|
170
171
|
[
|
|
171
172
|
T.CUSTOM_ATTR_STYLE,
|
|
172
173
|
T.CUSTOM_ATTR_ALIGN,
|
|
@@ -175,7 +176,7 @@ class d extends E {
|
|
|
175
176
|
]
|
|
176
177
|
),
|
|
177
178
|
new _(
|
|
178
|
-
|
|
179
|
+
I.STYLES,
|
|
179
180
|
[
|
|
180
181
|
T.CUSTOM_ATTR_BACKGROUND,
|
|
181
182
|
T.CUSTOM_ATTR_FONT_FAMILY,
|
|
@@ -183,9 +184,9 @@ class d extends E {
|
|
|
183
184
|
T.CUSTOM_ATTR_COLOR
|
|
184
185
|
]
|
|
185
186
|
)
|
|
186
|
-
],
|
|
187
|
+
], O[S.IMAGE] = [
|
|
187
188
|
new _(
|
|
188
|
-
|
|
189
|
+
I.SETTINGS,
|
|
189
190
|
[
|
|
190
191
|
N,
|
|
191
192
|
T.IMAGE_SIZE,
|
|
@@ -196,5 +197,5 @@ class d extends E {
|
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
export {
|
|
199
|
-
|
|
200
|
+
s as SettingsPanel
|
|
200
201
|
};
|