@magmonium/cli 0.8.13 → 0.8.17
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/bin/README.md +19 -22
- package/codegen/index.js +306 -62
- package/package.json +1 -1
- package/src/compilers/logo-compiler.d.ts +2 -0
- package/src/compilers/logo-compiler.d.ts.map +1 -1
- package/src/compilers/logo-compiler.js +50 -9
- package/src/compilers/logo-compiler.js.map +1 -1
- package/src/compilers/web-component/lib/config-data.d.ts.map +1 -1
- package/src/compilers/web-component/lib/config-data.js +4 -0
- package/src/compilers/web-component/lib/config-data.js.map +1 -1
- package/src/compilers/web-component/model/type.d.ts +2 -5
- package/src/compilers/web-component/model/type.d.ts.map +1 -1
- package/src/core/config.d.ts.map +1 -1
- package/src/core/config.js +3 -1
- package/src/core/config.js.map +1 -1
- package/src/utils/app-logo-svg.d.ts +11 -0
- package/src/utils/app-logo-svg.d.ts.map +1 -0
- package/src/utils/app-logo-svg.js +50 -0
- package/src/utils/app-logo-svg.js.map +1 -0
- package/src/utils/pwa-utils.d.ts +6 -0
- package/src/utils/pwa-utils.d.ts.map +1 -1
- package/src/utils/pwa-utils.js.map +1 -1
package/codegen/index.js
CHANGED
|
@@ -23,6 +23,8 @@ __export(index_exports, {
|
|
|
23
23
|
ALL_VARIANT: () => ALL_VARIANT,
|
|
24
24
|
API_SEGMENT: () => API_SEGMENT,
|
|
25
25
|
APP_CONFIG_SOURCE: () => APP_CONFIG_SOURCE,
|
|
26
|
+
APP_LOGO_VALUE_ASSET: () => APP_LOGO_VALUE_ASSET,
|
|
27
|
+
APP_LOGO_VALUE_SLOTS: () => APP_LOGO_VALUE_SLOTS,
|
|
26
28
|
APP_MODES: () => APP_MODES,
|
|
27
29
|
APP_RELEASE_DOC: () => APP_RELEASE_DOC,
|
|
28
30
|
APP_ROOT_IMPORTS: () => APP_ROOT_IMPORTS,
|
|
@@ -121,6 +123,7 @@ __export(index_exports, {
|
|
|
121
123
|
EMPTY_STORE_METHODS: () => EMPTY_STORE_METHODS,
|
|
122
124
|
EMPTY_WC_CONFIG: () => EMPTY_WC_CONFIG,
|
|
123
125
|
ENVIRONMENT_PRESETS: () => ENVIRONMENT_PRESETS,
|
|
126
|
+
FALLBACK_APP_COLOR: () => FALLBACK_APP_COLOR,
|
|
124
127
|
FALLBACK_SLOTS: () => FALLBACK_SLOTS,
|
|
125
128
|
FEATURES_ROOT: () => FEATURES_ROOT,
|
|
126
129
|
FIELD_BOOLEAN_READER: () => FIELD_BOOLEAN_READER,
|
|
@@ -249,7 +252,9 @@ __export(index_exports, {
|
|
|
249
252
|
QUANTIFIER_LABELS: () => QUANTIFIER_LABELS,
|
|
250
253
|
RANGED_SURFACE_KEYS: () => RANGED_SURFACE_KEYS,
|
|
251
254
|
RAW_CONFIG_SOURCE: () => RAW_CONFIG_SOURCE,
|
|
255
|
+
REMOTE_APP_COLOR_KEY: () => REMOTE_APP_COLOR_KEY,
|
|
252
256
|
REMOTE_BETA_KEY: () => REMOTE_BETA_KEY,
|
|
257
|
+
REMOTE_GLYPH_KEY: () => REMOTE_GLYPH_KEY,
|
|
253
258
|
REMOTE_MOUNT_KEY: () => REMOTE_MOUNT_KEY,
|
|
254
259
|
REMOTE_MOUNT_NAME_KEY: () => REMOTE_MOUNT_NAME_KEY,
|
|
255
260
|
REMOTE_URL_SLOT_KEY: () => REMOTE_URL_SLOT_KEY,
|
|
@@ -261,7 +266,6 @@ __export(index_exports, {
|
|
|
261
266
|
RESERVED_PROPERTY_NAMES: () => RESERVED_PROPERTY_NAMES,
|
|
262
267
|
RESERVED_STORE_MEMBERS: () => RESERVED_STORE_MEMBERS,
|
|
263
268
|
ROOT_NAV_ID: () => ROOT_NAV_ID,
|
|
264
|
-
ROOT_NAV_LOGO: () => ROOT_NAV_LOGO,
|
|
265
269
|
ROUTED_ONLY_CONTROLS: () => ROUTED_ONLY_CONTROLS,
|
|
266
270
|
ROUTER_LINK_ASCENT: () => ROUTER_LINK_ASCENT,
|
|
267
271
|
ROUTER_LINK_MODES: () => ROUTER_LINK_MODES,
|
|
@@ -399,6 +403,7 @@ __export(index_exports, {
|
|
|
399
403
|
cacheMethodReads: () => cacheMethodReads,
|
|
400
404
|
callArgBindingOptions: () => callArgBindingOptions,
|
|
401
405
|
callArgBindingRead: () => callArgBindingRead,
|
|
406
|
+
callArgCoverage: () => callArgCoverage,
|
|
402
407
|
callArgEventAllowed: () => callArgEventAllowed,
|
|
403
408
|
callArgEventKey: () => callArgEventKey,
|
|
404
409
|
callArgEventMismatch: () => callArgEventMismatch,
|
|
@@ -907,7 +912,6 @@ __export(index_exports, {
|
|
|
907
912
|
isSharedIconName: () => isSharedIconName,
|
|
908
913
|
isSharedShapeId: () => isSharedShapeId,
|
|
909
914
|
isSlotFamily: () => isSlotFamily,
|
|
910
|
-
isSquareViewBox: () => isSquareViewBox,
|
|
911
915
|
isStatSlotFamily: () => isStatSlotFamily,
|
|
912
916
|
isStorageMethod: () => isStorageMethod,
|
|
913
917
|
isStyleDirectiveName: () => isStyleDirectiveName,
|
|
@@ -1024,7 +1028,6 @@ __export(index_exports, {
|
|
|
1024
1028
|
mintOutputArm: () => mintOutputArm,
|
|
1025
1029
|
mintOutputCall: () => mintOutputCall,
|
|
1026
1030
|
mintScreenOutputCall: () => mintScreenOutputCall,
|
|
1027
|
-
missingWcFields: () => missingWcFields,
|
|
1028
1031
|
mistypedScreenArgs: () => mistypedScreenArgs,
|
|
1029
1032
|
mistypedStateArgs: () => mistypedStateArgs,
|
|
1030
1033
|
moduleTest: () => moduleTest,
|
|
@@ -1036,8 +1039,10 @@ __export(index_exports, {
|
|
|
1036
1039
|
moveMenuGroup: () => moveMenuGroup,
|
|
1037
1040
|
moveMenuItem: () => moveMenuItem,
|
|
1038
1041
|
moveOutputArm: () => moveOutputArm,
|
|
1042
|
+
moveOutputBlock: () => moveOutputBlock,
|
|
1039
1043
|
moveOutputCall: () => moveOutputCall,
|
|
1040
1044
|
moveOutputCallRows: () => moveOutputCallRows,
|
|
1045
|
+
moveOutputCallTo: () => moveOutputCallTo,
|
|
1041
1046
|
moveRuleNode: () => moveRuleNode,
|
|
1042
1047
|
moveSpacingToStyleDirectives: () => moveSpacingToStyleDirectives,
|
|
1043
1048
|
namedShapes: () => namedShapes,
|
|
@@ -1163,6 +1168,7 @@ __export(index_exports, {
|
|
|
1163
1168
|
outputCallKey: () => outputCallKey,
|
|
1164
1169
|
outputCallKeys: () => outputCallKeys,
|
|
1165
1170
|
outputCallLabel: () => outputCallLabel,
|
|
1171
|
+
outputGroupHoldsBlocks: () => outputGroupHoldsBlocks,
|
|
1166
1172
|
outputLinkBindingTargets: () => outputLinkBindingTargets,
|
|
1167
1173
|
outputLinkMemberName: () => outputLinkMemberName,
|
|
1168
1174
|
outputLinkParamType: () => outputLinkParamType,
|
|
@@ -1268,6 +1274,7 @@ __export(index_exports, {
|
|
|
1268
1274
|
redirectRouteLiteral: () => redirectRouteLiteral,
|
|
1269
1275
|
referencedShapeIds: () => referencedShapeIds,
|
|
1270
1276
|
relationshipParent: () => relationshipParent,
|
|
1277
|
+
releaseBlocker: () => releaseBlocker,
|
|
1271
1278
|
remapControlMapNavs: () => remapControlMapNavs,
|
|
1272
1279
|
remapControlNavs: () => remapControlNavs,
|
|
1273
1280
|
remapNavSourceNavs: () => remapNavSourceNavs,
|
|
@@ -1290,6 +1297,7 @@ __export(index_exports, {
|
|
|
1290
1297
|
removeMenuGroup: () => removeMenuGroup,
|
|
1291
1298
|
removeMenuItem: () => removeMenuItem,
|
|
1292
1299
|
removeOutputArm: () => removeOutputArm,
|
|
1300
|
+
removeOutputArmKeepingBlocks: () => removeOutputArmKeepingBlocks,
|
|
1293
1301
|
removeOutputCall: () => removeOutputCall,
|
|
1294
1302
|
removeRuleNode: () => removeRuleNode,
|
|
1295
1303
|
removeScreenOutputCall: () => removeScreenOutputCall,
|
|
@@ -1544,6 +1552,7 @@ __export(index_exports, {
|
|
|
1544
1552
|
textSourcesFor: () => textSourcesFor,
|
|
1545
1553
|
themeFileSource: () => themeFileSource,
|
|
1546
1554
|
themeVarsStyle: () => themeVarsStyle,
|
|
1555
|
+
tidyOutputArms: () => tidyOutputArms,
|
|
1547
1556
|
tierOf: () => tierOf,
|
|
1548
1557
|
timerError: () => timerError,
|
|
1549
1558
|
timerPropertyIds: () => timerPropertyIds,
|
|
@@ -1679,6 +1688,7 @@ var ControlType = /* @__PURE__ */ ((ControlType2) => {
|
|
|
1679
1688
|
ControlType2["ICON"] = "icon";
|
|
1680
1689
|
ControlType2["NAV_HEADER"] = "nav_header";
|
|
1681
1690
|
ControlType2["LOGO"] = "logo";
|
|
1691
|
+
ControlType2["APP_LOGO"] = "app_logo";
|
|
1682
1692
|
ControlType2["IMG"] = "img";
|
|
1683
1693
|
ControlType2["DOC"] = "doc";
|
|
1684
1694
|
ControlType2["USER"] = "user";
|
|
@@ -2940,6 +2950,71 @@ var SHARED_ICONS = [
|
|
|
2940
2950
|
"zap"
|
|
2941
2951
|
];
|
|
2942
2952
|
|
|
2953
|
+
// libs/one/src/lib/shared/lib/app-identity/app-logo-icon.ts
|
|
2954
|
+
var APP_LOGO_ICON = "app_logo";
|
|
2955
|
+
|
|
2956
|
+
// libs/one/src/lib/shared/lib/app-identity/logo-glyph.ts
|
|
2957
|
+
var LOGO_GLYPH_MAX_BYTES = 16 * 1024;
|
|
2958
|
+
var APP_COLOR = /^#[0-9a-fA-F]{6}$/;
|
|
2959
|
+
var normalizeAppColor = (value) => APP_COLOR.test(value.trim()) ? value.trim().toLowerCase() : void 0;
|
|
2960
|
+
var logoGlyphMaskUrl = (svg) => `url("data:image/svg+xml;utf8,${encodeURIComponent(svg)}")`;
|
|
2961
|
+
|
|
2962
|
+
// libs/one/src/lib/shared/lib/app-identity/splash.ts
|
|
2963
|
+
var SPLASH_ID = "m-splash";
|
|
2964
|
+
var escapeHtml = (value) => value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
2965
|
+
var splashHtml = ({ appColor, glyph, link }) => {
|
|
2966
|
+
const color = normalizeAppColor(appColor) ?? "#0f172a";
|
|
2967
|
+
const mark = glyph?.trim() ? `<div class="${SPLASH_ID}__glyph"></div>` : `<div class="${SPLASH_ID}__letter">${escapeHtml(link.trim().charAt(0).toUpperCase())}</div>`;
|
|
2968
|
+
const mask = glyph?.trim() ? `
|
|
2969
|
+
#${SPLASH_ID} .${SPLASH_ID}__glyph {
|
|
2970
|
+
width: 100%;
|
|
2971
|
+
height: 100%;
|
|
2972
|
+
background: #fff;
|
|
2973
|
+
-webkit-mask: ${logoGlyphMaskUrl(glyph.trim())} center / contain no-repeat;
|
|
2974
|
+
mask: ${logoGlyphMaskUrl(glyph.trim())} center / contain no-repeat;
|
|
2975
|
+
}` : "";
|
|
2976
|
+
return ` <div id="${SPLASH_ID}">
|
|
2977
|
+
<div class="${SPLASH_ID}__mark" aria-hidden="true">${mark}</div>
|
|
2978
|
+
<style>
|
|
2979
|
+
#${SPLASH_ID} {
|
|
2980
|
+
position: fixed;
|
|
2981
|
+
inset: 0;
|
|
2982
|
+
display: flex;
|
|
2983
|
+
align-items: center;
|
|
2984
|
+
justify-content: center;
|
|
2985
|
+
background: ${color};
|
|
2986
|
+
z-index: 99999;
|
|
2987
|
+
transition: opacity 0.35s ease, visibility 0.35s ease;
|
|
2988
|
+
}
|
|
2989
|
+
#${SPLASH_ID}.hidden {
|
|
2990
|
+
opacity: 0;
|
|
2991
|
+
visibility: hidden;
|
|
2992
|
+
pointer-events: none;
|
|
2993
|
+
}
|
|
2994
|
+
#${SPLASH_ID} .${SPLASH_ID}__mark {
|
|
2995
|
+
display: flex;
|
|
2996
|
+
align-items: center;
|
|
2997
|
+
justify-content: center;
|
|
2998
|
+
width: 72px;
|
|
2999
|
+
height: 72px;
|
|
3000
|
+
animation: m-splash-breathe 1.6s ease-in-out infinite;
|
|
3001
|
+
}${mask}
|
|
3002
|
+
#${SPLASH_ID} .${SPLASH_ID}__letter {
|
|
3003
|
+
color: #fff;
|
|
3004
|
+
font: 700 56px/1 system-ui, sans-serif;
|
|
3005
|
+
}
|
|
3006
|
+
@keyframes m-splash-breathe {
|
|
3007
|
+
0%, 100% { opacity: 1; transform: scale(1); }
|
|
3008
|
+
50% { opacity: 0.55; transform: scale(0.93); }
|
|
3009
|
+
}
|
|
3010
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3011
|
+
#${SPLASH_ID} .${SPLASH_ID}__mark { animation: none; }
|
|
3012
|
+
}
|
|
3013
|
+
</style>
|
|
3014
|
+
</div>
|
|
3015
|
+
`;
|
|
3016
|
+
};
|
|
3017
|
+
|
|
2943
3018
|
// libs/one/src/lib/shared/ui/doc/doc-style.ts
|
|
2944
3019
|
var DEFAULT_DOC_VARIANT = "plain";
|
|
2945
3020
|
var DEFAULT_DOC_DENSITY = "default";
|
|
@@ -3107,6 +3182,7 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3107
3182
|
"text" /* TEXT_OUTPUT */,
|
|
3108
3183
|
"icon" /* ICON */,
|
|
3109
3184
|
"logo" /* LOGO */,
|
|
3185
|
+
"app_logo" /* APP_LOGO */,
|
|
3110
3186
|
"img" /* IMG */,
|
|
3111
3187
|
"doc" /* DOC */,
|
|
3112
3188
|
"remote" /* REMOTE */,
|
|
@@ -3159,6 +3235,7 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3159
3235
|
"text" /* TEXT_OUTPUT */,
|
|
3160
3236
|
"icon" /* ICON */,
|
|
3161
3237
|
"logo" /* LOGO */,
|
|
3238
|
+
"app_logo" /* APP_LOGO */,
|
|
3162
3239
|
"img" /* IMG */,
|
|
3163
3240
|
"user" /* USER */,
|
|
3164
3241
|
"stat" /* STAT */,
|
|
@@ -3179,6 +3256,7 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3179
3256
|
"text" /* TEXT_OUTPUT */,
|
|
3180
3257
|
"icon" /* ICON */,
|
|
3181
3258
|
"logo" /* LOGO */,
|
|
3259
|
+
"app_logo" /* APP_LOGO */,
|
|
3182
3260
|
"img" /* IMG */,
|
|
3183
3261
|
"doc" /* DOC */,
|
|
3184
3262
|
"remote" /* REMOTE */,
|
|
@@ -3209,6 +3287,7 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3209
3287
|
"text" /* TEXT_OUTPUT */,
|
|
3210
3288
|
"icon" /* ICON */,
|
|
3211
3289
|
"logo" /* LOGO */,
|
|
3290
|
+
"app_logo" /* APP_LOGO */,
|
|
3212
3291
|
"img" /* IMG */,
|
|
3213
3292
|
"doc" /* DOC */,
|
|
3214
3293
|
"remote" /* REMOTE */,
|
|
@@ -3243,6 +3322,7 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3243
3322
|
"text" /* TEXT_OUTPUT */,
|
|
3244
3323
|
"icon" /* ICON */,
|
|
3245
3324
|
"logo" /* LOGO */,
|
|
3325
|
+
"app_logo" /* APP_LOGO */,
|
|
3246
3326
|
"img" /* IMG */,
|
|
3247
3327
|
"doc" /* DOC */,
|
|
3248
3328
|
"remote" /* REMOTE */,
|
|
@@ -3273,6 +3353,7 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3273
3353
|
"text" /* TEXT_OUTPUT */,
|
|
3274
3354
|
"icon" /* ICON */,
|
|
3275
3355
|
"logo" /* LOGO */,
|
|
3356
|
+
"app_logo" /* APP_LOGO */,
|
|
3276
3357
|
"img" /* IMG */,
|
|
3277
3358
|
"doc" /* DOC */,
|
|
3278
3359
|
"remote" /* REMOTE */,
|
|
@@ -3336,6 +3417,7 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3336
3417
|
"text" /* TEXT_OUTPUT */,
|
|
3337
3418
|
"icon" /* ICON */,
|
|
3338
3419
|
"logo" /* LOGO */,
|
|
3420
|
+
"app_logo" /* APP_LOGO */,
|
|
3339
3421
|
"img" /* IMG */,
|
|
3340
3422
|
"doc" /* DOC */,
|
|
3341
3423
|
"remote" /* REMOTE */,
|
|
@@ -3396,6 +3478,8 @@ var CONTROL_RELATIONSHIPS = {
|
|
|
3396
3478
|
["icon" /* ICON */]: [],
|
|
3397
3479
|
// Same leaf rule as an Icon — a brand mark is content, not structure.
|
|
3398
3480
|
["logo" /* LOGO */]: [],
|
|
3481
|
+
// A leaf for the Logo's reason: an AppLogo is content, not structure.
|
|
3482
|
+
["app_logo" /* APP_LOGO */]: [],
|
|
3399
3483
|
["doc" /* DOC */]: [],
|
|
3400
3484
|
["remote" /* REMOTE */]: [],
|
|
3401
3485
|
["plugin" /* PLUGIN */]: [],
|
|
@@ -3637,6 +3721,7 @@ var OWN_DIRECTIVES = {
|
|
|
3637
3721
|
["text" /* TEXT_OUTPUT */]: ["routerLink"],
|
|
3638
3722
|
["icon" /* ICON */]: ["routerLink"],
|
|
3639
3723
|
["logo" /* LOGO */]: ["routerLink"],
|
|
3724
|
+
["app_logo" /* APP_LOGO */]: ["routerLink"],
|
|
3640
3725
|
// A document carries no directive: it is prose, not a link and not a target.
|
|
3641
3726
|
["doc" /* DOC */]: [],
|
|
3642
3727
|
["remote" /* REMOTE */]: [],
|
|
@@ -3796,6 +3881,8 @@ var CONTROL_LABEL = {
|
|
|
3796
3881
|
["text" /* TEXT_OUTPUT */]: "text",
|
|
3797
3882
|
["icon" /* ICON */]: "icon",
|
|
3798
3883
|
["logo" /* LOGO */]: "logo",
|
|
3884
|
+
// Not `app-logo`: a palette chip needs a key of its own.
|
|
3885
|
+
["app_logo" /* APP_LOGO */]: "app-logo-control",
|
|
3799
3886
|
["img" /* IMG */]: "img",
|
|
3800
3887
|
["doc" /* DOC */]: "doc",
|
|
3801
3888
|
["remote" /* REMOTE */]: "remote-control",
|
|
@@ -3859,6 +3946,7 @@ var CONTROL_ICON = {
|
|
|
3859
3946
|
["text" /* TEXT_OUTPUT */]: "control_text",
|
|
3860
3947
|
["icon" /* ICON */]: "control_icon",
|
|
3861
3948
|
["logo" /* LOGO */]: "control_logo",
|
|
3949
|
+
["app_logo" /* APP_LOGO */]: "control_logo",
|
|
3862
3950
|
["img" /* IMG */]: "control_img",
|
|
3863
3951
|
// Reuse the code-file glyph until document artwork joins the shared set.
|
|
3864
3952
|
["doc" /* DOC */]: "control_text",
|
|
@@ -4066,6 +4154,12 @@ var CONTROL_CODEGEN = {
|
|
|
4066
4154
|
// `fill`, `width`, `height`, `priority`, `sizes`, `ngSrcset`, `remote`,
|
|
4067
4155
|
// `data` and `dataType` as individual inputs rather than a `config` bag, so
|
|
4068
4156
|
// there is nothing a `name="<id>"` could resolve.
|
|
4157
|
+
// Folderless for the Logo's reason — AppLogoComponent takes `link`,
|
|
4158
|
+
// `variant`, `tone` and `size` as individual inputs.
|
|
4159
|
+
["app_logo" /* APP_LOGO */]: {
|
|
4160
|
+
tag: "m-app-logo",
|
|
4161
|
+
component: "AppLogoComponent"
|
|
4162
|
+
},
|
|
4069
4163
|
["img" /* IMG */]: {
|
|
4070
4164
|
tag: "m-img",
|
|
4071
4165
|
component: "ImgComponent"
|
|
@@ -6471,6 +6565,7 @@ var FALLBACK_SLOTS = [
|
|
|
6471
6565
|
];
|
|
6472
6566
|
var IMG_VALUE_SLOTS = [BINDING_SLOT.src];
|
|
6473
6567
|
var REMOTE_VALUE_SLOTS = [BINDING_SLOT.link, BINDING_SLOT.path];
|
|
6568
|
+
var APP_LOGO_VALUE_SLOTS = [BINDING_SLOT.link];
|
|
6474
6569
|
var AUDIENCE_PICKER_VALUE_SLOTS = [
|
|
6475
6570
|
BINDING_SLOT.audience,
|
|
6476
6571
|
BINDING_SLOT.source
|
|
@@ -6556,6 +6651,9 @@ var REMOTE_VALUE_ASSET = {
|
|
|
6556
6651
|
[BINDING_SLOT.link]: "remote_link",
|
|
6557
6652
|
[BINDING_SLOT.path]: "remote_path"
|
|
6558
6653
|
};
|
|
6654
|
+
var APP_LOGO_VALUE_ASSET = {
|
|
6655
|
+
[BINDING_SLOT.link]: "app_logo_link"
|
|
6656
|
+
};
|
|
6559
6657
|
var REMOTE_VALUE_LABEL = {
|
|
6560
6658
|
[BINDING_SLOT.link]: "remote-link",
|
|
6561
6659
|
[BINDING_SLOT.path]: "remote-path"
|
|
@@ -8525,6 +8623,16 @@ var rowComplete = (row, target, payload, fieldNames, constants, functions, scope
|
|
|
8525
8623
|
}
|
|
8526
8624
|
return void 0;
|
|
8527
8625
|
};
|
|
8626
|
+
function callArgCoverage(args, rows) {
|
|
8627
|
+
const leaves = requiredCallArgLeaves(args);
|
|
8628
|
+
const mapped = rows.map((row) => targetKey(row.target));
|
|
8629
|
+
return {
|
|
8630
|
+
covered: leaves.filter(
|
|
8631
|
+
(leaf) => mapped.some((key2) => covers(key2, targetKey(leaf.path)))
|
|
8632
|
+
).length,
|
|
8633
|
+
total: leaves.length
|
|
8634
|
+
};
|
|
8635
|
+
}
|
|
8528
8636
|
function validateCallArgs(args, rows, payload, fieldNames = [], constants = {}, functions = {}, scope = {}) {
|
|
8529
8637
|
const targets = callArgTargets(args);
|
|
8530
8638
|
const keys = targets.map((t) => targetKey(t.target));
|
|
@@ -8936,6 +9044,20 @@ function moveOutputCall(control, key2, delta) {
|
|
|
8936
9044
|
])
|
|
8937
9045
|
);
|
|
8938
9046
|
}
|
|
9047
|
+
function moveOutputCallTo(control, key2, toGroup) {
|
|
9048
|
+
if (outputCallGroupKey(key2) === toGroup) return { control, key: key2 };
|
|
9049
|
+
const bag = callRowsAt(control, key2);
|
|
9050
|
+
const left = removeOutputCall(control, key2);
|
|
9051
|
+
const opensGroup = !isOutputCallBound(left, toGroup) && !Object.keys(callRowsAt(left, toGroup)).length && !outputCallIds(left, toGroup).length;
|
|
9052
|
+
if (opensGroup) {
|
|
9053
|
+
return { control: writeCallRows(left, [[toGroup, bag]]), key: toGroup };
|
|
9054
|
+
}
|
|
9055
|
+
const minted = mintOutputCall(left, toGroup);
|
|
9056
|
+
return {
|
|
9057
|
+
control: writeCallRows(minted.control, [[minted.key, bag]]),
|
|
9058
|
+
key: minted.key
|
|
9059
|
+
};
|
|
9060
|
+
}
|
|
8939
9061
|
function moveOutputCallRows(control, from, to) {
|
|
8940
9062
|
const ids = outputCallIds(control, from);
|
|
8941
9063
|
if (!ids.length) return control;
|
|
@@ -10014,6 +10136,103 @@ function removeOutputArm(control, output, armId) {
|
|
|
10014
10136
|
);
|
|
10015
10137
|
return clearRows(dropped, outputArmKey(output, armId));
|
|
10016
10138
|
}
|
|
10139
|
+
var BLOCK_LIST_MAPS = {
|
|
10140
|
+
"state-write": "outputWrites",
|
|
10141
|
+
"screen-write": "outputScreenWrites",
|
|
10142
|
+
emit: "outputEmits"
|
|
10143
|
+
};
|
|
10144
|
+
var BLOCK_ONE_MAPS = {
|
|
10145
|
+
open: "outputOpens",
|
|
10146
|
+
navigate: "outputNavs",
|
|
10147
|
+
"new-tab": "outputNewTabs"
|
|
10148
|
+
};
|
|
10149
|
+
var writeKey = (rows, key2, value) => {
|
|
10150
|
+
const { [key2]: _dropped, ...rest } = rows ?? {};
|
|
10151
|
+
const next = value === void 0 ? rest : { ...rest, [key2]: value };
|
|
10152
|
+
return Object.keys(next).length ? next : void 0;
|
|
10153
|
+
};
|
|
10154
|
+
function moveOutputBlock(control, from, block2, to) {
|
|
10155
|
+
if (from === to) return control;
|
|
10156
|
+
if (block2.kind === "call") {
|
|
10157
|
+
const key2 = outputCallKeys(control, from)[block2.index];
|
|
10158
|
+
if (!key2) return void 0;
|
|
10159
|
+
return moveOutputCallTo(control, key2, to).control;
|
|
10160
|
+
}
|
|
10161
|
+
if (block2.kind in BLOCK_LIST_MAPS) {
|
|
10162
|
+
const map2 = BLOCK_LIST_MAPS[block2.kind];
|
|
10163
|
+
const all2 = control[map2];
|
|
10164
|
+
const rows = all2?.[from] ?? [];
|
|
10165
|
+
const row2 = rows[block2.index];
|
|
10166
|
+
if (row2 === void 0) return void 0;
|
|
10167
|
+
const left = rows.filter((_, index) => index !== block2.index);
|
|
10168
|
+
const withLeft = writeKey(all2, from, left.length ? left : void 0);
|
|
10169
|
+
return {
|
|
10170
|
+
...control,
|
|
10171
|
+
[map2]: writeKey(withLeft, to, [...all2?.[to] ?? [], row2])
|
|
10172
|
+
};
|
|
10173
|
+
}
|
|
10174
|
+
const map = BLOCK_ONE_MAPS[block2.kind];
|
|
10175
|
+
const all = control[map];
|
|
10176
|
+
const row = all?.[from];
|
|
10177
|
+
if (!row) return void 0;
|
|
10178
|
+
const destinations = block2.kind === "new-tab" ? [map] : ["outputOpens", "outputNavs"];
|
|
10179
|
+
if (destinations.some(
|
|
10180
|
+
(one) => control[one]?.[to]
|
|
10181
|
+
)) {
|
|
10182
|
+
return void 0;
|
|
10183
|
+
}
|
|
10184
|
+
return {
|
|
10185
|
+
...control,
|
|
10186
|
+
[map]: writeKey(writeKey(all, from, void 0), to, row)
|
|
10187
|
+
};
|
|
10188
|
+
}
|
|
10189
|
+
var outputGroupHoldsBlocks = (control, key2) => Object.keys(rowsAt(control, key2)).length > 0 || (control.outputEmits?.[key2]?.length ?? 0) > 0 || outputCallIds(control, key2).length > 0;
|
|
10190
|
+
function tidyOutputArms(control, output) {
|
|
10191
|
+
let next = control;
|
|
10192
|
+
for (const arm of outputArms(next, output)) {
|
|
10193
|
+
const key2 = outputArmKey(output, arm.id);
|
|
10194
|
+
if (outputArmMode(arm) === "condition" && !outputGroupHoldsBlocks(next, key2)) {
|
|
10195
|
+
next = removeOutputArm(next, output, arm.id);
|
|
10196
|
+
}
|
|
10197
|
+
}
|
|
10198
|
+
const folds = outputArms(next, output).filter(
|
|
10199
|
+
(arm) => outputArmMode(arm) === "always" || outputArmMode(arm) === "default" && !scannedOutputArms(next, output).length
|
|
10200
|
+
);
|
|
10201
|
+
for (const arm of folds) {
|
|
10202
|
+
next = foldOutputGroup(next, outputArmKey(output, arm.id), output);
|
|
10203
|
+
if (!outputGroupHoldsBlocks(next, outputArmKey(output, arm.id))) {
|
|
10204
|
+
next = removeOutputArm(next, output, arm.id);
|
|
10205
|
+
}
|
|
10206
|
+
}
|
|
10207
|
+
return next;
|
|
10208
|
+
}
|
|
10209
|
+
var foldOutputGroup = (control, from, to) => {
|
|
10210
|
+
let next = control;
|
|
10211
|
+
const tryMove = (block2) => {
|
|
10212
|
+
const moved = moveOutputBlock(next, from, block2, to);
|
|
10213
|
+
if (!moved) return false;
|
|
10214
|
+
next = moved;
|
|
10215
|
+
return true;
|
|
10216
|
+
};
|
|
10217
|
+
const firstCallHeld = isOutputCallBound(next, from) || !!next.outputArgs?.[from] || !!next.outputOutcomes?.[from];
|
|
10218
|
+
let calls = outputCallIds(next, from).length + (firstCallHeld ? 1 : 0);
|
|
10219
|
+
while (calls-- > 0) tryMove({ kind: "call", index: 0 });
|
|
10220
|
+
Object.keys(BLOCK_LIST_MAPS).forEach(
|
|
10221
|
+
(kind) => {
|
|
10222
|
+
const lists = next[BLOCK_LIST_MAPS[kind]];
|
|
10223
|
+
let left = lists?.[from]?.length ?? 0;
|
|
10224
|
+
while (left-- > 0) tryMove({ kind, index: 0 });
|
|
10225
|
+
}
|
|
10226
|
+
);
|
|
10227
|
+
Object.keys(BLOCK_ONE_MAPS).forEach(
|
|
10228
|
+
(kind) => void tryMove({ kind, index: 0 })
|
|
10229
|
+
);
|
|
10230
|
+
return next;
|
|
10231
|
+
};
|
|
10232
|
+
function removeOutputArmKeepingBlocks(control, output, armId) {
|
|
10233
|
+
const folded = foldOutputGroup(control, outputArmKey(output, armId), output);
|
|
10234
|
+
return tidyOutputArms(removeOutputArm(folded, output, armId), output);
|
|
10235
|
+
}
|
|
10017
10236
|
var newOutputArmCheck = (source = "event") => ({ id: genId(), source, operator: "==" });
|
|
10018
10237
|
var outputArmReadsVariable = (control, variableId) => everyOutputArmCheck(control).some(
|
|
10019
10238
|
(check) => check.source === "binding" && check.binding?.root.kind === "screen_variable" && check.binding.root.id === variableId
|
|
@@ -12271,21 +12490,8 @@ function appSlug(appName) {
|
|
|
12271
12490
|
var appFileBase = (appName) => appSlug(appName) || "app";
|
|
12272
12491
|
var wcClassName = (appName) => `${toPascalCase(appSlug(appName))}WebComponent`;
|
|
12273
12492
|
var wcSelector = (appName) => `${appSlug(appName)}-wc`;
|
|
12274
|
-
function
|
|
12275
|
-
|
|
12276
|
-
if (!match) return true;
|
|
12277
|
-
const parts = match[1].trim().split(/[\s,]+/).map(Number);
|
|
12278
|
-
if (parts.length !== 4 || parts.some((n) => !isFinite(n))) return true;
|
|
12279
|
-
const [, , width, height] = parts;
|
|
12280
|
-
return width === height;
|
|
12281
|
-
}
|
|
12282
|
-
var isSvgMarkup = (svg) => /<svg[\s>]/i.test(svg.trim());
|
|
12283
|
-
function missingWcFields(config) {
|
|
12284
|
-
const missing = [];
|
|
12285
|
-
if (!config.description.trim()) missing.push("description");
|
|
12286
|
-
if (!config.company.trim()) missing.push("company");
|
|
12287
|
-
if (!config.logoSvg.trim()) missing.push("logo-source");
|
|
12288
|
-
return missing;
|
|
12493
|
+
function releaseBlocker(config, linked) {
|
|
12494
|
+
return linked && !config.open && !config.logoGlyph.trim() ? "app-logo" : "";
|
|
12289
12495
|
}
|
|
12290
12496
|
|
|
12291
12497
|
// libs/codegen/src/lib/app-target-helper.ts
|
|
@@ -12396,16 +12602,13 @@ function downloadName(appName) {
|
|
|
12396
12602
|
var INITIAL_WC_VERSION = "0.0.1";
|
|
12397
12603
|
var EMPTY_WC_CONFIG = {
|
|
12398
12604
|
description: "",
|
|
12399
|
-
|
|
12400
|
-
|
|
12401
|
-
|
|
12402
|
-
// chrome, which reads as a bug rather than as a default nobody chose.
|
|
12403
|
-
pwaColor: "#0f172a",
|
|
12404
|
-
pwaBgColor: "#0f172a",
|
|
12405
|
-
logoSvg: "",
|
|
12605
|
+
appColor: "",
|
|
12606
|
+
logoGlyph: "",
|
|
12607
|
+
open: false,
|
|
12406
12608
|
theme: "",
|
|
12407
12609
|
version: INITIAL_WC_VERSION
|
|
12408
12610
|
};
|
|
12611
|
+
var FALLBACK_APP_COLOR = "#0f172a";
|
|
12409
12612
|
var isReleaseVersion = (value) => /^\d+\.\d+\.\d+$/.test(value);
|
|
12410
12613
|
var bumpVersion = (version3, bump) => {
|
|
12411
12614
|
const [major, minor, patch] = isReleaseVersion(version3) ? version3.split(".").map(Number) : INITIAL_WC_VERSION.split(".").map(Number);
|
|
@@ -12461,10 +12664,9 @@ function sanitizeWcConfig(value) {
|
|
|
12461
12664
|
// DesignSource byte for byte.
|
|
12462
12665
|
...name3 && { name: name3 },
|
|
12463
12666
|
description: asString(stored.description),
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
logoSvg: asString(stored.logoSvg),
|
|
12667
|
+
appColor: asString(stored.appColor),
|
|
12668
|
+
logoGlyph: asString(stored.logoGlyph),
|
|
12669
|
+
open: stored.open === true,
|
|
12468
12670
|
theme: asString(stored.theme),
|
|
12469
12671
|
// A record from before the field, or one holding anything but `X.Y.Z`,
|
|
12470
12672
|
// starts where a fresh scaffold does.
|
|
@@ -17492,6 +17694,8 @@ var REMOTE_URL_SYNC_KEY = "urlSync";
|
|
|
17492
17694
|
var REMOTE_URL_SLOT_KEY = "urlSlot";
|
|
17493
17695
|
var REMOTE_MOUNT_KEY = "mount";
|
|
17494
17696
|
var REMOTE_BETA_KEY = "beta";
|
|
17697
|
+
var REMOTE_GLYPH_KEY = "glyph";
|
|
17698
|
+
var REMOTE_APP_COLOR_KEY = "appColor";
|
|
17495
17699
|
var remoteUrlModeOf = (configs) => {
|
|
17496
17700
|
const sync = configs?.[REMOTE_URL_SYNC_KEY];
|
|
17497
17701
|
if (sync === true) {
|
|
@@ -17815,7 +18019,8 @@ function validateIconName(raw, existing) {
|
|
|
17815
18019
|
const name3 = raw.trim().toLowerCase();
|
|
17816
18020
|
if (!name3) return "icon-name-empty";
|
|
17817
18021
|
if (!isValidIconName(name3)) return "icon-name-invalid";
|
|
17818
|
-
if (SHARED_ICON_NAMES.has(name3)
|
|
18022
|
+
if (SHARED_ICON_NAMES.has(name3) || name3 === APP_LOGO_ICON)
|
|
18023
|
+
return "icon-name-reserved";
|
|
17819
18024
|
if (existing[name3] !== void 0) return "icon-name-taken";
|
|
17820
18025
|
return void 0;
|
|
17821
18026
|
}
|
|
@@ -17855,6 +18060,9 @@ function detectSvgColorMode(svg) {
|
|
|
17855
18060
|
if (/stroke="(?!none")[^"]+"/.test(svg)) return "stroke";
|
|
17856
18061
|
return "fill";
|
|
17857
18062
|
}
|
|
18063
|
+
function isSvgMarkup(value) {
|
|
18064
|
+
return /<svg[\s>]/i.test(value.trim());
|
|
18065
|
+
}
|
|
17858
18066
|
function collectReferencedIcons(controlMap) {
|
|
17859
18067
|
const referenced = /* @__PURE__ */ new Set();
|
|
17860
18068
|
const readConfigs = (configs) => {
|
|
@@ -19076,6 +19284,10 @@ function bodyConfigs(node) {
|
|
|
19076
19284
|
const path = String(configs["path"] ?? "").trim();
|
|
19077
19285
|
const beta = configs[REMOTE_BETA_KEY] === true;
|
|
19078
19286
|
const createMenu = configs["createMenu"] === true && urlMode !== "none";
|
|
19287
|
+
const glyph = String(configs[REMOTE_GLYPH_KEY] ?? "").trim();
|
|
19288
|
+
const appColor = normalizeAppColor(
|
|
19289
|
+
String(configs[REMOTE_APP_COLOR_KEY] ?? "")
|
|
19290
|
+
);
|
|
19079
19291
|
for (const key2 of Object.keys(configs)) delete configs[key2];
|
|
19080
19292
|
if (link) configs["link"] = link;
|
|
19081
19293
|
if (mountName) configs["name"] = mountName;
|
|
@@ -19084,6 +19296,19 @@ function bodyConfigs(node) {
|
|
|
19084
19296
|
if (urlMode === "none" && path) configs["path"] = path;
|
|
19085
19297
|
if (beta) configs["beta"] = true;
|
|
19086
19298
|
if (createMenu) configs["createMenu"] = true;
|
|
19299
|
+
if (glyph) configs[REMOTE_GLYPH_KEY] = escapeAttributeValue(glyph);
|
|
19300
|
+
if (appColor) configs[REMOTE_APP_COLOR_KEY] = appColor;
|
|
19301
|
+
}
|
|
19302
|
+
if (node.type === "app_logo" /* APP_LOGO */) {
|
|
19303
|
+
const link = String(configs["link"] ?? "").trim();
|
|
19304
|
+
const variant = configs["variant"] === "glow" ? "glow" : "tile";
|
|
19305
|
+
const tone = configs["tone"] === "light" ? "light" : "app";
|
|
19306
|
+
const size = String(configs["size"] ?? "").trim();
|
|
19307
|
+
for (const key2 of Object.keys(configs)) delete configs[key2];
|
|
19308
|
+
if (link) configs["link"] = link;
|
|
19309
|
+
if (variant === "glow") configs["variant"] = variant;
|
|
19310
|
+
if (variant === "glow" && tone === "light") configs["tone"] = tone;
|
|
19311
|
+
if (size) configs["size"] = size;
|
|
19087
19312
|
}
|
|
19088
19313
|
if (node.type === "plugin" /* PLUGIN */) {
|
|
19089
19314
|
const link = String(configs[PLUGIN_LINK_KEY] ?? "").trim();
|
|
@@ -19132,6 +19357,7 @@ var numberOnlyValue = (value) => {
|
|
|
19132
19357
|
const parsed2 = Number(value);
|
|
19133
19358
|
return Number.isFinite(parsed2) ? parsed2 : void 0;
|
|
19134
19359
|
};
|
|
19360
|
+
var escapeAttributeValue = (value) => value.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
19135
19361
|
function attrsFrom(configs, numberOnlyKeys = NUMBER_ONLY_KEYS) {
|
|
19136
19362
|
return Object.entries(configs).map(([key2, value]) => {
|
|
19137
19363
|
const figure = numberOnlyKeys.has(key2) ? numberOnlyValue(value) : void 0;
|
|
@@ -19597,6 +19823,7 @@ var attrBindingSlots = (type) => {
|
|
|
19597
19823
|
if (type === "audience_picker" /* AUDIENCE_PICKER */) return AUDIENCE_PICKER_VALUE_SLOTS;
|
|
19598
19824
|
if (type === "img" /* IMG */) return [BINDING_SLOT.src];
|
|
19599
19825
|
if (type === "remote" /* REMOTE */) return REMOTE_VALUE_SLOTS;
|
|
19826
|
+
if (type === "app_logo" /* APP_LOGO */) return APP_LOGO_VALUE_SLOTS;
|
|
19600
19827
|
if (type === "section_pagination" /* SECTION_PAGINATION */) return [BINDING_SLOT.total];
|
|
19601
19828
|
return hasTextSource(type) ? [BINDING_SLOT.label] : [];
|
|
19602
19829
|
};
|
|
@@ -19844,6 +20071,11 @@ function boundAttrs(node, ctx, storeProp) {
|
|
|
19844
20071
|
}
|
|
19845
20072
|
}
|
|
19846
20073
|
}
|
|
20074
|
+
if (node.type === "app_logo" /* APP_LOGO */) {
|
|
20075
|
+
const binding = bindings?.[BINDING_SLOT.link];
|
|
20076
|
+
const expr = binding && textBindingExpression(binding, scope);
|
|
20077
|
+
if (expr) parts.push(` [link]="${expr}"`);
|
|
20078
|
+
}
|
|
19847
20079
|
if (node.type === "user" /* USER */) {
|
|
19848
20080
|
for (const slot of USER_VALUE_SLOTS) {
|
|
19849
20081
|
const binding = bindings?.[slot];
|
|
@@ -19962,7 +20194,7 @@ function tagAttrs(node, ctx, storeProp) {
|
|
|
19962
20194
|
const resultAttrs = results ? ` [element]="${results.elementMember}" resultInput="${results.resultInput}"` : "";
|
|
19963
20195
|
return `${inlineAttrs(node)}${boundAttrs(node, ctx, storeProp)}${resultAttrs}`;
|
|
19964
20196
|
}
|
|
19965
|
-
if (node.type === "remote" /* REMOTE */ && ctx.controlMap?.[node.id]?.bindings?.[BINDING_SLOT.link]) {
|
|
20197
|
+
if ((node.type === "remote" /* REMOTE */ || node.type === "app_logo" /* APP_LOGO */) && ctx.controlMap?.[node.id]?.bindings?.[BINDING_SLOT.link]) {
|
|
19966
20198
|
const configs2 = { ...node.configs ?? {} };
|
|
19967
20199
|
delete configs2["link"];
|
|
19968
20200
|
return `${inlineAttrs({ ...node, configs: configs2 })}${boundAttrs(node, ctx, storeProp)}`;
|
|
@@ -20189,7 +20421,7 @@ function outputAttrs(node, methods, operationOf, storeProp, ctx) {
|
|
|
20189
20421
|
// with no handler attribute at all.
|
|
20190
20422
|
...Object.keys(node.outputEmits ?? {})
|
|
20191
20423
|
]);
|
|
20192
|
-
const gated =
|
|
20424
|
+
const gated = new Set(dispatched);
|
|
20193
20425
|
for (const key2 of [...outputs]) {
|
|
20194
20426
|
if (outputCallGroupKey(key2) !== key2) {
|
|
20195
20427
|
outputs.delete(key2);
|
|
@@ -22245,7 +22477,10 @@ function dispatchedOutputs(node, methods, operationOf, storeProp, ctx) {
|
|
|
22245
22477
|
}
|
|
22246
22478
|
function dispatcherFormRefs(node, output, methods, operationOf, storeProp, ctx) {
|
|
22247
22479
|
const folded = output === FOLDED_OUTPUT ? foldedClickGroups(node, methods, operationOf, storeProp, ctx) : [];
|
|
22248
|
-
const own =
|
|
22480
|
+
const own = [
|
|
22481
|
+
...directFormRefs(node, output, ctx),
|
|
22482
|
+
...gatedOutputs(node).includes(output) ? outputArmFormRefs(node, output, ctx, storeProp) : []
|
|
22483
|
+
];
|
|
22249
22484
|
const seen = /* @__PURE__ */ new Map();
|
|
22250
22485
|
[...own, ...folded.flatMap((group) => group.refs)].forEach(([id, ref]) => {
|
|
22251
22486
|
if (!seen.has(id)) seen.set(id, ref);
|
|
@@ -22292,7 +22527,7 @@ ${format(
|
|
|
22292
22527
|
)}
|
|
22293
22528
|
}`
|
|
22294
22529
|
);
|
|
22295
|
-
const direct =
|
|
22530
|
+
const direct = format(groupOf(output), " ");
|
|
22296
22531
|
const always = alwaysOutputArms(control, output).map((arm) => bodyOf(arm, " ")).filter(Boolean);
|
|
22297
22532
|
const chain = wired.map(({ arm, expr }) => {
|
|
22298
22533
|
const body2 = bodyOf(arm, " ");
|
|
@@ -24336,7 +24571,7 @@ __export(package_exports, {
|
|
|
24336
24571
|
version: () => version
|
|
24337
24572
|
});
|
|
24338
24573
|
var name = "@magmonium/one";
|
|
24339
|
-
var version = "0.4.
|
|
24574
|
+
var version = "0.4.47";
|
|
24340
24575
|
var description = "Magmonium One \u2014 Angular design-system primitives for mm Apps";
|
|
24341
24576
|
var author = "magmonium";
|
|
24342
24577
|
var license = "MIT";
|
|
@@ -24404,7 +24639,7 @@ __export(package_exports2, {
|
|
|
24404
24639
|
version: () => version2
|
|
24405
24640
|
});
|
|
24406
24641
|
var name2 = "@magmonium/cli";
|
|
24407
|
-
var version2 = "0.8.
|
|
24642
|
+
var version2 = "0.8.17";
|
|
24408
24643
|
var description2 = "A powerful and extensible asset compilation tool that can be shared across multiple projects";
|
|
24409
24644
|
var bin = {
|
|
24410
24645
|
"mag-cli": "bin/cli.js"
|
|
@@ -25608,7 +25843,6 @@ var sanitizeNavMap = (value) => {
|
|
|
25608
25843
|
}
|
|
25609
25844
|
return result;
|
|
25610
25845
|
};
|
|
25611
|
-
var ROOT_NAV_LOGO = "assets/logo/icon.svg";
|
|
25612
25846
|
var navAsset = (nav, children, landing) => ({
|
|
25613
25847
|
navId: nav.navId,
|
|
25614
25848
|
...nav.label ? { title: nav.label } : {},
|
|
@@ -25622,7 +25856,7 @@ var navAsset = (nav, children, landing) => ({
|
|
|
25622
25856
|
...nav.tail ? { tail: nav.tail } : {},
|
|
25623
25857
|
...children.length ? { children } : {}
|
|
25624
25858
|
});
|
|
25625
|
-
var navAssetFiles = (navMap, {
|
|
25859
|
+
var navAssetFiles = (navMap, { appName } = {}) => {
|
|
25626
25860
|
const isApp = (navId) => !!navMap[navId] && navMap[navId].platform !== true;
|
|
25627
25861
|
const drawsRows = (navId) => {
|
|
25628
25862
|
const nav = navMap[navId];
|
|
@@ -25650,8 +25884,7 @@ var navAssetFiles = (navMap, { logo, appName } = {}) => {
|
|
|
25650
25884
|
path: `navs/${ROOT_NAV_ID}.yml`,
|
|
25651
25885
|
nav: {
|
|
25652
25886
|
...rootAsset,
|
|
25653
|
-
title: appSlug(appName ?? "") || rootAsset.title
|
|
25654
|
-
...logo?.trim() ? { logo: logo.trim() } : {}
|
|
25887
|
+
title: appSlug(appName ?? "") || rootAsset.title
|
|
25655
25888
|
}
|
|
25656
25889
|
});
|
|
25657
25890
|
}
|
|
@@ -29680,10 +29913,14 @@ var indexHtml = (appName, config) => `<!doctype html>
|
|
|
29680
29913
|
<link rel="icon" type="image/png" sizes="32x32" href="assets/logo/32x32.png" />
|
|
29681
29914
|
<link rel="icon" href="assets/logo/favicon.ico" />
|
|
29682
29915
|
<link rel="apple-touch-icon" sizes="180x180" href="assets/logo/180x180.png" />
|
|
29683
|
-
<meta name="theme-color" content="${config.
|
|
29916
|
+
<meta name="theme-color" content="${config.appColor || FALLBACK_APP_COLOR}" />
|
|
29684
29917
|
</head>
|
|
29685
29918
|
<body>
|
|
29686
|
-
${
|
|
29919
|
+
${splashHtml({
|
|
29920
|
+
appColor: config.appColor || FALLBACK_APP_COLOR,
|
|
29921
|
+
glyph: config.logoGlyph,
|
|
29922
|
+
link: appName
|
|
29923
|
+
})}${RUN_ASSET_CACHE_RESET} <m-one-root></m-one-root>
|
|
29687
29924
|
${RUN_FETCH_BRIDGE}${RUN_ROUTE_REPORTER} </body>
|
|
29688
29925
|
</html>
|
|
29689
29926
|
`;
|
|
@@ -29894,23 +30131,29 @@ ${p2.required?.length ? ` required: [${p2.required.join(", ")}]
|
|
|
29894
30131
|
` : ""} outputs: [${p2.outputs.join(", ")}]
|
|
29895
30132
|
`
|
|
29896
30133
|
).join("")}` : "";
|
|
30134
|
+
var yamlQuoted = (value) => `'${value.replace(/'/g, "''")}'`;
|
|
30135
|
+
var pwaYml = (appName, config) => {
|
|
30136
|
+
if (config.open) return "";
|
|
30137
|
+
const color = config.appColor || FALLBACK_APP_COLOR;
|
|
30138
|
+
return [
|
|
30139
|
+
"pwa:",
|
|
30140
|
+
` name: ${yamlQuoted(config.name?.trim() || appDisplayName(appName))}`,
|
|
30141
|
+
` desc: ${yamlQuoted(config.description)}`,
|
|
30142
|
+
` color: '${color}'`,
|
|
30143
|
+
` bgcolor: '${color}'`,
|
|
30144
|
+
...config.logoGlyph.trim() ? [` glyph: ${yamlQuoted(config.logoGlyph.trim())}`] : [],
|
|
30145
|
+
""
|
|
30146
|
+
].join("\n");
|
|
30147
|
+
};
|
|
29897
30148
|
var remoteManifest = (app, appName, config, className, selector, plugins) => `app: ${app}
|
|
29898
30149
|
version: ${config.version}
|
|
29899
|
-
name: ${config.name?.trim() || appDisplayName(appName)}
|
|
29900
|
-
description: ${config.description}
|
|
29901
|
-
company: ${config.company}
|
|
29902
30150
|
componentPath: src/app
|
|
29903
30151
|
componentName: wc
|
|
29904
30152
|
className: ${className}
|
|
29905
30153
|
appConfigPath: src/app/wc.config
|
|
29906
30154
|
selector: ${selector}
|
|
29907
|
-
logo: assets/logo/icon.svg
|
|
29908
30155
|
${config.theme ? `theme: ${config.theme}
|
|
29909
|
-
` : ""}
|
|
29910
|
-
desc: ${config.description}
|
|
29911
|
-
color: '${config.pwaColor}'
|
|
29912
|
-
bgcolor: '${config.pwaBgColor}'
|
|
29913
|
-
${pluginsYml(plugins)}`;
|
|
30156
|
+
` : ""}${pwaYml(appName, config)}${pluginsYml(plugins)}`;
|
|
29914
30157
|
var envManifest = (app, className, selector) => `app: ${app}
|
|
29915
30158
|
componentPath: src/app
|
|
29916
30159
|
componentName: wc
|
|
@@ -30386,13 +30629,6 @@ function scaffoldFiles(appName, config, environment, extraDeps = {}, plugins = [
|
|
|
30386
30629
|
// and emitted from the NavMap, root included (ADR 0014). A scaffold-side
|
|
30387
30630
|
// placeholder would be overwritten by it and, until it was, would ship a
|
|
30388
30631
|
// root with no `navId`, no `kind` and no children.
|
|
30389
|
-
// Newline-terminated like every other emitted file: the LogoSource is
|
|
30390
|
-
// pasted in by a User and arrives however their source left it, and a file
|
|
30391
|
-
// without one shows up in git as "" forever.
|
|
30392
|
-
{
|
|
30393
|
-
path: "mag_assets/logo/source.svg",
|
|
30394
|
-
contents: endWithNewline(config.logoSvg)
|
|
30395
|
-
},
|
|
30396
30632
|
...WC_ENVIRONMENTS.map((env) => ({
|
|
30397
30633
|
path: `mag_assets_env/${env}/remote/${app}.yml`,
|
|
30398
30634
|
contents: envManifest(app, className, selector)
|
|
@@ -31883,7 +32119,6 @@ var emitAuthoredAssets = (ws, stringify) => {
|
|
|
31883
32119
|
contents: svg
|
|
31884
32120
|
}));
|
|
31885
32121
|
navAssetFiles(ws.navMap, {
|
|
31886
|
-
logo: ws.wcConfig.logoSvg.trim() ? ROOT_NAV_LOGO : void 0,
|
|
31887
32122
|
appName: ws.appTarget.appName
|
|
31888
32123
|
}).forEach((asset) => {
|
|
31889
32124
|
files3.push({
|
|
@@ -32134,6 +32369,8 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
32134
32369
|
ALL_VARIANT,
|
|
32135
32370
|
API_SEGMENT,
|
|
32136
32371
|
APP_CONFIG_SOURCE,
|
|
32372
|
+
APP_LOGO_VALUE_ASSET,
|
|
32373
|
+
APP_LOGO_VALUE_SLOTS,
|
|
32137
32374
|
APP_MODES,
|
|
32138
32375
|
APP_RELEASE_DOC,
|
|
32139
32376
|
APP_ROOT_IMPORTS,
|
|
@@ -32232,6 +32469,7 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
32232
32469
|
EMPTY_STORE_METHODS,
|
|
32233
32470
|
EMPTY_WC_CONFIG,
|
|
32234
32471
|
ENVIRONMENT_PRESETS,
|
|
32472
|
+
FALLBACK_APP_COLOR,
|
|
32235
32473
|
FALLBACK_SLOTS,
|
|
32236
32474
|
FEATURES_ROOT,
|
|
32237
32475
|
FIELD_BOOLEAN_READER,
|
|
@@ -32360,7 +32598,9 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
32360
32598
|
QUANTIFIER_LABELS,
|
|
32361
32599
|
RANGED_SURFACE_KEYS,
|
|
32362
32600
|
RAW_CONFIG_SOURCE,
|
|
32601
|
+
REMOTE_APP_COLOR_KEY,
|
|
32363
32602
|
REMOTE_BETA_KEY,
|
|
32603
|
+
REMOTE_GLYPH_KEY,
|
|
32364
32604
|
REMOTE_MOUNT_KEY,
|
|
32365
32605
|
REMOTE_MOUNT_NAME_KEY,
|
|
32366
32606
|
REMOTE_URL_SLOT_KEY,
|
|
@@ -32372,7 +32612,6 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
32372
32612
|
RESERVED_PROPERTY_NAMES,
|
|
32373
32613
|
RESERVED_STORE_MEMBERS,
|
|
32374
32614
|
ROOT_NAV_ID,
|
|
32375
|
-
ROOT_NAV_LOGO,
|
|
32376
32615
|
ROUTED_ONLY_CONTROLS,
|
|
32377
32616
|
ROUTER_LINK_ASCENT,
|
|
32378
32617
|
ROUTER_LINK_MODES,
|
|
@@ -32510,6 +32749,7 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
32510
32749
|
cacheMethodReads,
|
|
32511
32750
|
callArgBindingOptions,
|
|
32512
32751
|
callArgBindingRead,
|
|
32752
|
+
callArgCoverage,
|
|
32513
32753
|
callArgEventAllowed,
|
|
32514
32754
|
callArgEventKey,
|
|
32515
32755
|
callArgEventMismatch,
|
|
@@ -33018,7 +33258,6 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
33018
33258
|
isSharedIconName,
|
|
33019
33259
|
isSharedShapeId,
|
|
33020
33260
|
isSlotFamily,
|
|
33021
|
-
isSquareViewBox,
|
|
33022
33261
|
isStatSlotFamily,
|
|
33023
33262
|
isStorageMethod,
|
|
33024
33263
|
isStyleDirectiveName,
|
|
@@ -33135,7 +33374,6 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
33135
33374
|
mintOutputArm,
|
|
33136
33375
|
mintOutputCall,
|
|
33137
33376
|
mintScreenOutputCall,
|
|
33138
|
-
missingWcFields,
|
|
33139
33377
|
mistypedScreenArgs,
|
|
33140
33378
|
mistypedStateArgs,
|
|
33141
33379
|
moduleTest,
|
|
@@ -33147,8 +33385,10 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
33147
33385
|
moveMenuGroup,
|
|
33148
33386
|
moveMenuItem,
|
|
33149
33387
|
moveOutputArm,
|
|
33388
|
+
moveOutputBlock,
|
|
33150
33389
|
moveOutputCall,
|
|
33151
33390
|
moveOutputCallRows,
|
|
33391
|
+
moveOutputCallTo,
|
|
33152
33392
|
moveRuleNode,
|
|
33153
33393
|
moveSpacingToStyleDirectives,
|
|
33154
33394
|
namedShapes,
|
|
@@ -33274,6 +33514,7 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
33274
33514
|
outputCallKey,
|
|
33275
33515
|
outputCallKeys,
|
|
33276
33516
|
outputCallLabel,
|
|
33517
|
+
outputGroupHoldsBlocks,
|
|
33277
33518
|
outputLinkBindingTargets,
|
|
33278
33519
|
outputLinkMemberName,
|
|
33279
33520
|
outputLinkParamType,
|
|
@@ -33379,6 +33620,7 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
33379
33620
|
redirectRouteLiteral,
|
|
33380
33621
|
referencedShapeIds,
|
|
33381
33622
|
relationshipParent,
|
|
33623
|
+
releaseBlocker,
|
|
33382
33624
|
remapControlMapNavs,
|
|
33383
33625
|
remapControlNavs,
|
|
33384
33626
|
remapNavSourceNavs,
|
|
@@ -33401,6 +33643,7 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
33401
33643
|
removeMenuGroup,
|
|
33402
33644
|
removeMenuItem,
|
|
33403
33645
|
removeOutputArm,
|
|
33646
|
+
removeOutputArmKeepingBlocks,
|
|
33404
33647
|
removeOutputCall,
|
|
33405
33648
|
removeRuleNode,
|
|
33406
33649
|
removeScreenOutputCall,
|
|
@@ -33655,6 +33898,7 @@ var HISTORY_SELECTION_KEYS = [
|
|
|
33655
33898
|
textSourcesFor,
|
|
33656
33899
|
themeFileSource,
|
|
33657
33900
|
themeVarsStyle,
|
|
33901
|
+
tidyOutputArms,
|
|
33658
33902
|
tierOf,
|
|
33659
33903
|
timerError,
|
|
33660
33904
|
timerPropertyIds,
|