@magmonium/cli 0.8.26 → 0.8.27

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 (2) hide show
  1. package/codegen/index.js +808 -98
  2. package/package.json +1 -1
package/codegen/index.js CHANGED
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  ACTION_NAME_READER: () => ACTION_NAME_READER,
24
+ ACTION_SELECTION_KEY: () => ACTION_SELECTION_KEY,
24
25
  ALL_VARIANT: () => ALL_VARIANT,
25
26
  API_SEGMENT: () => API_SEGMENT,
26
27
  APP_CONFIG_SOURCE: () => APP_CONFIG_SOURCE,
@@ -56,6 +57,8 @@ __export(index_exports, {
56
57
  BUSY_VARIANT_ID: () => BUSY_VARIANT_ID,
57
58
  BUSY_VARIANT_NAME: () => BUSY_VARIANT_NAME,
58
59
  BUTTON_CLICK_OUTPUT: () => BUTTON_CLICK_OUTPUT,
60
+ BUTTON_KEY_CONFIG_KEY: () => BUTTON_KEY_CONFIG_KEY,
61
+ BUTTON_KEY_PATTERN: () => BUTTON_KEY_PATTERN,
59
62
  CALL_ARG_SOURCES: () => CALL_ARG_SOURCES,
60
63
  CALL_ARG_TRANSFORM_LEAVES: () => CALL_ARG_TRANSFORM_LEAVES,
61
64
  CALL_CONDITION_KINDS: () => CALL_CONDITION_KINDS,
@@ -318,6 +321,7 @@ __export(index_exports, {
318
321
  STYLE_DIRECTIVE_FORM: () => STYLE_DIRECTIVE_FORM,
319
322
  STYLE_DIRECTIVE_KEYS: () => STYLE_DIRECTIVE_KEYS,
320
323
  STYLE_DIRECTIVE_NAMES: () => STYLE_DIRECTIVE_NAMES,
324
+ SUBMIT_TARGET_KEY: () => SUBMIT_TARGET_KEY,
321
325
  TEST_RUNNER_DEV_DEPS: () => TEST_RUNNER_DEV_DEPS,
322
326
  TEXT_SOURCE: () => TEXT_SOURCE,
323
327
  TEXT_SOURCES: () => TEXT_SOURCES,
@@ -354,6 +358,7 @@ __export(index_exports, {
354
358
  actionEnumValues: () => actionEnumValues,
355
359
  actionEnums: () => actionEnums,
356
360
  actionRenderIds: () => actionRenderIds,
361
+ actionSelectionKey: () => actionSelectionKey,
357
362
  activeBackendUrl: () => activeBackendUrl,
358
363
  activeHosts: () => activeHosts,
359
364
  addMenuGroup: () => addMenuGroup,
@@ -446,6 +451,7 @@ __export(index_exports, {
446
451
  callArgStorageRead: () => callArgStorageRead,
447
452
  callArgTargetKey: () => callArgTargetKey,
448
453
  callArgTargets: () => callArgTargets,
454
+ callArgTransformSignature: () => callArgTransformSignature,
449
455
  callArgTypeMismatch: () => callArgTypeMismatch,
450
456
  callArgumentsExpression: () => callArgumentsExpression,
451
457
  callError: () => callError,
@@ -466,6 +472,7 @@ __export(index_exports, {
466
472
  canFillFormKey: () => canFillFormKey,
467
473
  canHostDefaultChild: () => canHostDefaultChild,
468
474
  canHostNavChildren: () => canHostNavChildren,
475
+ canNameSubmitTarget: () => canNameSubmitTarget,
469
476
  canOfferAddChild: () => canOfferAddChild,
470
477
  canOfferReplaceParent: () => canOfferReplaceParent,
471
478
  canOutputCall: () => canOutputCall,
@@ -616,6 +623,7 @@ __export(index_exports, {
616
623
  defaultScreenEmitValue: () => defaultScreenEmitValue,
617
624
  defaultScreenWriteValue: () => defaultScreenWriteValue,
618
625
  defaultStateWriteValue: () => defaultStateWriteValue,
626
+ defaultSubmitTarget: () => defaultSubmitTarget,
619
627
  denialDialogOf: () => denialDialogOf,
620
628
  denialTranslationKeys: () => denialTranslationKeys,
621
629
  derivePaths: () => derivePaths,
@@ -639,6 +647,7 @@ __export(index_exports, {
639
647
  drawnVariants: () => drawnVariants,
640
648
  dropChainStep: () => dropChainStep,
641
649
  dropFormEventMember: () => dropFormEventMember,
650
+ dropOutputBlock: () => dropOutputBlock,
642
651
  dropStaleTrackKeys: () => dropStaleTrackKeys,
643
652
  duplicateMemberName: () => duplicateMemberName,
644
653
  duplicateShapeName: () => duplicateShapeName,
@@ -739,6 +748,7 @@ __export(index_exports, {
739
748
  foldedButtonNames: () => foldedButtonNames,
740
749
  foldedButtons: () => foldedButtons,
741
750
  foldedRouterLink: () => foldedRouterLink,
751
+ formEventFieldTypes: () => formEventFieldTypes,
742
752
  formEventMembers: () => formEventMembers,
743
753
  formFieldIds: () => formFieldIds,
744
754
  formFields: () => formFields,
@@ -747,13 +757,17 @@ __export(index_exports, {
747
757
  formInterfaceName: () => formInterfaceName,
748
758
  formModelFor: () => formModelFor,
749
759
  formModelKeyIssue: () => formModelKeyIssue,
760
+ formModelKeyMismatch: () => formModelKeyMismatch,
761
+ formModelKeySignature: () => formModelKeySignature,
750
762
  formModelKeyType: () => formModelKeyType,
751
763
  formModelKeyZero: () => formModelKeyZero,
764
+ formModelLandedType: () => formModelLandedType,
752
765
  formModelScreenOptions: () => formModelScreenOptions,
753
766
  formModelShapeKeys: () => formModelShapeKeys,
754
767
  formModelSourceReaders: () => formModelSourceReaders,
755
768
  formModelSourceType: () => formModelSourceType,
756
769
  formModelStateOptions: () => formModelStateOptions,
770
+ formModelTransforms: () => formModelTransforms,
757
771
  formRefName: () => formRefName,
758
772
  formRefNames: () => formRefNames,
759
773
  formResetDepths: () => formResetDepths,
@@ -843,12 +857,14 @@ __export(index_exports, {
843
857
  hasRouterOutlet: () => hasRouterOutlet,
844
858
  hasScreenVariableActionEnumConflict: () => hasScreenVariableActionEnumConflict,
845
859
  hasStore: () => hasStore,
860
+ hasSubmitTargetButton: () => hasSubmitTargetButton,
846
861
  hasTextSource: () => hasTextSource,
847
862
  hasValueSource: () => hasValueSource,
848
863
  hasVariableDrift: () => hasVariableDrift,
849
864
  heldFieldIds: () => heldFieldIds,
850
865
  heldProperties: () => heldProperties,
851
866
  holdKey: () => holdKey,
867
+ holdOutputBlock: () => holdOutputBlock,
852
868
  hostRoutesConst: () => hostRoutesConst,
853
869
  iconControlEmitConfigs: () => iconControlEmitConfigs,
854
870
  iconControlGlyph: () => iconControlGlyph,
@@ -908,6 +924,7 @@ __export(index_exports, {
908
924
  isFieldCheckEligible: () => isFieldCheckEligible,
909
925
  isFieldOptionSelected: () => isFieldOptionSelected,
910
926
  isFolderPickSupported: () => isFolderPickSupported,
927
+ isFormModelReadSource: () => isFormModelReadSource,
911
928
  isFormatPipeName: () => isFormatPipeName,
912
929
  isFunctionCheckBound: () => isFunctionCheckBound,
913
930
  isFunctionInUse: () => isFunctionInUse,
@@ -954,6 +971,7 @@ __export(index_exports, {
954
971
  isOutputCallBound: () => isOutputCallBound,
955
972
  isOutputCallKey: () => isOutputCallKey,
956
973
  isOutputConditional: () => isOutputConditional,
974
+ isOutputSelfEmit: () => isOutputSelfEmit,
957
975
  isOverlayDirectiveName: () => isOverlayDirectiveName,
958
976
  isOverlayType: () => isOverlayType,
959
977
  isPassthroughComputed: () => isPassthroughComputed,
@@ -991,6 +1009,7 @@ __export(index_exports, {
991
1009
  isTaglessFamily: () => isTaglessFamily,
992
1010
  isTextSource: () => isTextSource,
993
1011
  isTimerComplete: () => isTimerComplete,
1012
+ isToggleAction: () => isToggleAction,
994
1013
  isUnaryMenuActionOperator: () => isUnaryMenuActionOperator,
995
1014
  isUnaryOperator: () => isUnaryOperator,
996
1015
  isUnaryOutputArmOperator: () => isUnaryOutputArmOperator,
@@ -1288,6 +1307,7 @@ __export(index_exports, {
1288
1307
  outputOpenStatement: () => outputOpenStatement,
1289
1308
  outputOpenTargets: () => outputOpenTargets,
1290
1309
  outputOpenValueKinds: () => outputOpenValueKinds,
1310
+ outputSelfEmitCall: () => outputSelfEmitCall,
1291
1311
  overlayWidgetRefs: () => overlayWidgetRefs,
1292
1312
  overlayWidgetScreenIds: () => overlayWidgetScreenIds,
1293
1313
  overlayWidgetsProviderBlock: () => overlayWidgetsProviderBlock,
@@ -1333,6 +1353,7 @@ __export(index_exports, {
1333
1353
  persistableOptionSetRows: () => persistableOptionSetRows,
1334
1354
  pickFolder: () => pickFolder,
1335
1355
  pickedNavTail: () => pickedNavTail,
1356
+ placeOutputBlock: () => placeOutputBlock,
1336
1357
  planScreenEmit: () => planScreenEmit,
1337
1358
  pluginContractResync: () => pluginContractResync,
1338
1359
  pluginContracts: () => pluginContracts,
@@ -1344,6 +1365,7 @@ __export(index_exports, {
1344
1365
  pluginPortOf: () => pluginPortOf,
1345
1366
  pluginSourceOf: () => pluginSourceOf,
1346
1367
  presetHosts: () => presetHosts,
1368
+ projectionSlotOf: () => projectionSlotOf,
1347
1369
  propertiesWithComputeds: () => propertiesWithComputeds,
1348
1370
  propertyKey: () => propertyKey,
1349
1371
  pruneFormEventReads: () => pruneFormEventReads,
@@ -1601,6 +1623,7 @@ __export(index_exports, {
1601
1623
  signatureEnums: () => signatureEnums,
1602
1624
  signatureFormIds: () => signatureFormIds,
1603
1625
  signatureNamesOptionRow: () => signatureNamesOptionRow,
1626
+ signaturePipeIndex: () => signaturePipeIndex,
1604
1627
  signatureShapeIds: () => signatureShapeIds,
1605
1628
  signatureText: () => signatureText,
1606
1629
  slug: () => slug,
@@ -1608,6 +1631,7 @@ __export(index_exports, {
1608
1631
  slugifyMessage: () => slugifyMessage,
1609
1632
  sortRowEnumId: () => sortRowEnumId,
1610
1633
  sourceCarriesTrackKey: () => sourceCarriesTrackKey,
1634
+ splitAutoCallEmits: () => splitAutoCallEmits,
1611
1635
  stableId: () => stableId,
1612
1636
  staleCases: () => staleCases,
1613
1637
  staleMenuActionItems: () => staleMenuActionItems,
@@ -1656,9 +1680,15 @@ __export(index_exports, {
1656
1680
  subStoreSuffixError: () => subStoreSuffixError,
1657
1681
  subStoresOf: () => subStoresOf,
1658
1682
  subStoresReachedByMain: () => subStoresReachedByMain,
1683
+ submitTargetForms: () => submitTargetForms,
1684
+ submitTargetLink: () => submitTargetLink,
1685
+ submitTargetOf: () => submitTargetOf,
1659
1686
  successResponse: () => successResponse,
1660
1687
  suggestFormModelName: () => suggestFormModelName,
1661
1688
  suggestMethodName: () => suggestMethodName,
1689
+ suggestNavVariantName: () => suggestNavVariantName,
1690
+ suggestVariantName: () => suggestVariantName,
1691
+ suggestedButtonKeys: () => suggestedButtonKeys,
1662
1692
  survivingNavId: () => survivingNavId,
1663
1693
  swaggerUrlFromBackend: () => swaggerUrlFromBackend,
1664
1694
  syncScreenVariable: () => syncScreenVariable,
@@ -1704,6 +1734,7 @@ __export(index_exports, {
1704
1734
  typeLabel: () => typeLabel,
1705
1735
  typeSigil: () => typeSigil,
1706
1736
  typesMatch: () => typesMatch,
1737
+ typesMatchExactly: () => typesMatchExactly,
1707
1738
  unaryCall: () => unaryCall,
1708
1739
  unboundParams: () => unboundParams,
1709
1740
  unfilledVariables: () => unfilledVariables,
@@ -1712,6 +1743,7 @@ __export(index_exports, {
1712
1743
  updateRuleNode: () => updateRuleNode,
1713
1744
  usesAuthProperty: () => usesAuthProperty,
1714
1745
  usesStorage: () => usesStorage,
1746
+ validateButtonKey: () => validateButtonKey,
1715
1747
  validateCallArgs: () => validateCallArgs,
1716
1748
  validateFeatureName: () => validateFeatureName,
1717
1749
  validateFormName: () => validateFormName,
@@ -1778,6 +1810,7 @@ __export(index_exports, {
1778
1810
  withEventTransform: () => withEventTransform,
1779
1811
  withFormShapes: () => withFormShapes,
1780
1812
  withListRowShape: () => withListRowShape,
1813
+ withOutputSelfEmit: () => withOutputSelfEmit,
1781
1814
  withPropertyEnums: () => withPropertyEnums,
1782
1815
  withScreenEnums: () => withScreenEnums,
1783
1816
  withScreenMethodCallSites: () => withScreenMethodCallSites,
@@ -1880,6 +1913,7 @@ function isReservedVariantName(name3) {
1880
1913
  }
1881
1914
  var LEGACY_VARIANT_JOIN = "or";
1882
1915
  var isLinkedVariable = (variable) => variable.kind === "linked" && !!variable.source;
1916
+ var isFormModelReadSource = (source) => source.source !== "empty" && source.source !== "fixed";
1883
1917
  var isLinkedKeySource = (source) => source.source === "input" || source.source === "computed" || source.source === "path";
1884
1918
  var isLinkedFormModel = (model) => Object.values(model.keys).some(isLinkedKeySource);
1885
1919
  var screenAutoCallWhen = (call) => call.when ?? (call.args.some((row) => row.source === "input") || (call.emits ?? []).some(isMovingScreenEmit) || !!call.reads?.length ? "on-change" : "once");
@@ -1891,6 +1925,74 @@ var screenAutoCallError = (call) => {
1891
1925
  (row) => row.source === "input" || row.source === "binding"
1892
1926
  ) || (call.emits ?? []).some(isMovingScreenEmit) || !!call.reads?.length ? void 0 : "auto-call-never-fires";
1893
1927
  };
1928
+ var isOutputSelfEmit = (call) => {
1929
+ if (call.methodId || call.reads?.length || call.emits?.length !== 1)
1930
+ return false;
1931
+ if (!call.emits[0].value) return false;
1932
+ const { when: _drop, ...derived } = call;
1933
+ return !call.when || call.when === screenAutoCallWhen(derived);
1934
+ };
1935
+ var outputSelfEmitCall = (calls, outputId) => (calls ?? []).find(
1936
+ (call) => isOutputSelfEmit(call) && call.emits?.[0].outputId === outputId
1937
+ );
1938
+ var withOutputSelfEmit = (calls, outputId, value, mintId) => {
1939
+ const own = outputSelfEmitCall(calls, outputId);
1940
+ const rest = (calls ?? []).filter((call) => call !== own);
1941
+ if (!value) return rest;
1942
+ return [
1943
+ ...rest,
1944
+ {
1945
+ id: own?.id ?? mintId(),
1946
+ args: [],
1947
+ emits: [{ id: own?.emits?.[0].id ?? mintId(), outputId, value }]
1948
+ }
1949
+ ];
1950
+ };
1951
+ var splitAutoCallEmits = (calls, inputs = {}) => {
1952
+ const result = [];
1953
+ const selfFired = /* @__PURE__ */ new Set();
1954
+ const push = (call) => {
1955
+ if (isOutputSelfEmit(call)) {
1956
+ const outputId = call.emits?.[0].outputId ?? "";
1957
+ if (selfFired.has(outputId)) return;
1958
+ selfFired.add(outputId);
1959
+ }
1960
+ result.push(call);
1961
+ };
1962
+ for (const call of calls) {
1963
+ const emits = call.emits ?? [];
1964
+ if (!emits.length || !call.methodId && emits.length === 1) {
1965
+ push(call);
1966
+ continue;
1967
+ }
1968
+ const when = screenAutoCallWhen(call);
1969
+ const reads = [...call.reads ?? []];
1970
+ if (call.methodId) {
1971
+ const { emits: _drop, ...rest } = call;
1972
+ push(rest);
1973
+ if (when === "on-change") {
1974
+ const seen = new Set(reads.map((read) => JSON.stringify(read)));
1975
+ for (const row of call.args) {
1976
+ const id = row.source === "input" ? Object.values(inputs).find((one) => one.name === row.input)?.id : void 0;
1977
+ const read = row.source === "binding" ? row.binding : id ? { root: { kind: "input", id }, path: [] } : void 0;
1978
+ if (!read || seen.has(JSON.stringify(read))) continue;
1979
+ seen.add(JSON.stringify(read));
1980
+ reads.push(read);
1981
+ }
1982
+ }
1983
+ }
1984
+ emits.forEach((emit, at) => {
1985
+ const piece = {
1986
+ id: !call.methodId && at === 0 ? call.id : `${call.id}-${emit.id}`,
1987
+ args: [],
1988
+ emits: [emit],
1989
+ ...reads.length ? { reads } : {}
1990
+ };
1991
+ push(screenAutoCallWhen(piece) === when ? piece : { ...piece, when });
1992
+ });
1993
+ }
1994
+ return result;
1995
+ };
1894
1996
  var MENU_ACTION_MEMBERS = [
1895
1997
  "id",
1896
1998
  "label",
@@ -1979,15 +2081,19 @@ var hasRouterLink = (configs) => {
1979
2081
  };
1980
2082
 
1981
2083
  // libs/codegen/src/lib/action-fold-helper.ts
2084
+ var BUTTON_KEY_CONFIG_KEY = "buttonKey";
2085
+ var ACTION_SELECTION_KEY = "selection";
2086
+ var BUTTON_KEY_PATTERN = /^[a-zA-Z0-9_-]+$/;
1982
2087
  var foldedButtonName = (node) => {
1983
2088
  const uuid = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
1984
- const candidates = ["name", "label", "icon"].map((key2) => node.configs?.[key2]).map((value) => String(value ?? "").trim()).find((value) => value && !uuid.test(value));
2089
+ const candidates = [BUTTON_KEY_CONFIG_KEY, "name", "label", "icon"].map((key2) => node.configs?.[key2]).map((value) => String(value ?? "").trim()).find((value) => value && !uuid.test(value));
1985
2090
  return candidates || "button";
1986
2091
  };
1987
2092
  var foldedButtons = (node) => node.type === "section_action" /* SECTION_ACTION */ ? node.childrens.filter((child) => child.type === "button" /* BUTTON */) : [];
1988
2093
  var foldedConfigs = (node) => {
1989
2094
  const configs = { ...node.configs ?? {} };
1990
2095
  delete configs["name"];
2096
+ delete configs[BUTTON_KEY_CONFIG_KEY];
1991
2097
  Object.entries(configs).forEach(([key2, value]) => {
1992
2098
  if (value === "" || value === void 0 || value === null) {
1993
2099
  delete configs[key2];
@@ -2055,6 +2161,22 @@ var actionButtonEntries = (node) => {
2055
2161
  return [name3, button];
2056
2162
  });
2057
2163
  };
2164
+ var isToggleAction = (node) => node?.type === "section_action" /* SECTION_ACTION */ && node.configs?.["variant"] === "toggle";
2165
+ var actionSelectionKey = (node) => {
2166
+ if (!isToggleAction(node)) return void 0;
2167
+ const id = node.configs?.[ACTION_SELECTION_KEY];
2168
+ if (typeof id !== "string" || !id) return void 0;
2169
+ return actionButtonEntries(node).find(([, button]) => button.id === id)?.[0];
2170
+ };
2171
+ var suggestedButtonKeys = (node) => new Map(actionButtonEntries(node).map(([name3, button]) => [button.id, name3]));
2172
+ var validateButtonKey = (bar, buttonId, key2) => {
2173
+ const trimmed = key2.trim();
2174
+ if (!BUTTON_KEY_PATTERN.test(trimmed)) return "button-key-invalid";
2175
+ const taken = actionButtonEntries(bar ?? {}).some(
2176
+ ([name3, button]) => button.id !== buttonId && name3 === trimmed
2177
+ );
2178
+ return taken ? "button-key-taken" : void 0;
2179
+ };
2058
2180
 
2059
2181
  // libs/codegen/src/lib/app-release-doc.ts
2060
2182
  var APP_RELEASE_DOC = `# Releasing an mm App
@@ -4759,6 +4881,29 @@ var CONTROL_CODEGEN = {
4759
4881
  importFrom: "@angular/router"
4760
4882
  }
4761
4883
  };
4884
+ var NAMED_SLOT_TAGS = /* @__PURE__ */ new Set([
4885
+ "m-section-header",
4886
+ "m-section-hero",
4887
+ "m-jumbotron",
4888
+ "m-section-search",
4889
+ "m-section-stepper",
4890
+ "m-section-badges",
4891
+ "m-section-toggle",
4892
+ "m-action",
4893
+ "m-one-action",
4894
+ "m-section-back",
4895
+ "m-section-filter",
4896
+ "m-section-filter-group",
4897
+ "m-carousel",
4898
+ "m-one-carousel",
4899
+ "m-section-pagination",
4900
+ "m-section-footer",
4901
+ "m-app-logo"
4902
+ ]);
4903
+ function projectionSlotOf(node) {
4904
+ const tag = CONTROL_CODEGEN[node.type]?.tag.split(" ")[0];
4905
+ return tag && NAMED_SLOT_TAGS.has(tag) ? tag : "";
4906
+ }
4762
4907
 
4763
4908
  // libs/codegen/src/lib/option-set-helper.ts
4764
4909
  function isValidOptionSetName(name3) {
@@ -6734,6 +6879,13 @@ var SURFACE_LEAVES = {
6734
6879
  };
6735
6880
  var sameType2 = (a, b) => a.type === "shape" && b.type === "shape" ? a.shapeId === b.shapeId : a.type === b.type;
6736
6881
  var typesMatch = (a, b) => sameType2(a.dataType, b.dataType) && a.cardinality === b.cardinality;
6882
+ var typesMatchExactly = (a, b) => typesMatch(a, b) && enumIdOf(a.dataType) === enumIdOf(b.dataType) && (a.dataType.type !== "enum" || b.dataType.type !== "enum" || a.dataType.enumId === b.dataType.enumId);
6883
+ var signaturePipeIndex = (params, returnType, signature) => typesMatchExactly(returnType, signature.expected) ? params.findIndex(
6884
+ (param) => typesMatchExactly(
6885
+ { dataType: param.dataType, cardinality: param.cardinality },
6886
+ signature.pipe
6887
+ )
6888
+ ) : -1;
6737
6889
  var memberRead = (name3, ctx) => ctx.scope === "class" ? `this.${name3}` : name3;
6738
6890
  var isCall = (expr) => expr.kind === "call";
6739
6891
  var pipeParamValid = (expr, arity) => Number.isInteger(expr.pipeParam) && (expr.pipeParam >= 0 && expr.pipeParam < arity || expr.pipeParam === -1 && !expr.args.some((arg) => arg.kind === "pipe"));
@@ -7370,7 +7522,12 @@ var BINDING_SLOT = {
7370
7522
  // A [ScoreSet]'s Score Date, named for the `m-score-set` input it lands on.
7371
7523
  // Content by the `total` test: whether the set reads stale *is* the datum's
7372
7524
  // age, read off the same record its Scores are.
7373
- scoreDate: "scoreDate"
7525
+ scoreDate: "scoreDate",
7526
+ // A toggle SectionAction's pick, named for the `m-action` input it lands on:
7527
+ // the ButtonKey the bar is lit on, followed rather than owned — a press still
7528
+ // moves it (m-one-ui ADR 0213). Exclusive with the static pick held in
7529
+ // `configs.selection`, a Button's Control id.
7530
+ selection: "selection"
7374
7531
  };
7375
7532
  var USER_VALUE_SLOTS = [
7376
7533
  BINDING_SLOT.id,
@@ -8382,7 +8539,7 @@ function fieldKeyType(configs) {
8382
8539
  if (type === "toggle" /* TOGGLE */ || type === "checkbox" /* CHECKBOX */) {
8383
8540
  return { dataType: { type: "boolean" }, cardinality: "one" };
8384
8541
  }
8385
- if (type === "rating" /* RATING */) {
8542
+ if (type === "rating" /* RATING */ || type === "number" /* NUMBER */ || type === "money" /* MONEY */ || type === "range" /* RANGE */) {
8386
8543
  return { dataType: { type: "number" }, cardinality: "one" };
8387
8544
  }
8388
8545
  if (type === "multi_range" /* MULTI_RANGE */) {
@@ -8486,6 +8643,14 @@ function formShapeMap(controlMap) {
8486
8643
  function formEventMembers(controlMap, formId) {
8487
8644
  return buildFormShape(controlMap, formId)?.keys.map((key2) => key2.name) ?? [];
8488
8645
  }
8646
+ function formEventFieldTypes(controlMap, formId) {
8647
+ return Object.fromEntries(
8648
+ (buildFormShape(controlMap, formId)?.keys ?? []).map((key2) => [
8649
+ key2.name,
8650
+ { dataType: key2.dataType, cardinality: key2.cardinality }
8651
+ ])
8652
+ );
8653
+ }
8489
8654
  var OUTPUT_EVENT_MAPS = [
8490
8655
  "outputArgs",
8491
8656
  "outputWrites",
@@ -8932,7 +9097,7 @@ var bindingExpression = (binding, scope, guardAlias) => {
8932
9097
  const leafRead = (leaf) => bindingExpression(leaf, scope);
8933
9098
  const leaves = transformBindingLeaves(binding.transform);
8934
9099
  if (leaves.some((leaf) => !leafRead(leaf))) return void 0;
8935
- return emitTransformExpr(binding.transform, expr, {
9100
+ const call = emitTransformExpr(binding.transform, expr, {
8936
9101
  bindingRead: leafRead,
8937
9102
  functions: scope.functions ?? {},
8938
9103
  properties: roots,
@@ -8947,6 +9112,38 @@ var bindingExpression = (binding, scope, guardAlias) => {
8947
9112
  // one binding never spells the store two ways.
8948
9113
  storeReceiver: (rootId) => scope.storePropOf?.(rootId) ?? scope.storeProp ?? "store"
8949
9114
  });
9115
+ const guards = functionCallGuards(binding, expr, scope, leafRead);
9116
+ if (!guards.length) return call;
9117
+ const hoisted = scope.memberPrefix ? void 0 : guards.map((read) => scope.hoist?.(read));
9118
+ if (hoisted?.every((name3) => !!name3)) {
9119
+ const named = [...guards].map((read, i) => ({ read, name: hoisted[i] })).sort((a, b) => b.read.length - a.read.length).reduce((text3, { read, name: name3 }) => text3.split(read).join(name3), call);
9120
+ return `(${hoisted.map((name3) => `${name3} === undefined`).join(" || ")} ? undefined : ${named})`;
9121
+ }
9122
+ return `(${guards.map((read) => `${read} === undefined`).join(" || ")} ? undefined : ${call})`;
9123
+ };
9124
+ var functionCallGuards = (binding, pipeRead, scope, leafRead) => {
9125
+ if (binding.source !== "function") return [];
9126
+ const call = outerCall(binding.transform);
9127
+ const target = call?.target;
9128
+ if (!call || !target || !("functionId" in target)) return [];
9129
+ const fn = scope.functions?.[target.functionId];
9130
+ if (!fn) return [];
9131
+ const absent = (read, text3) => text3.includes("?.") || !rootIsPresent(read, scope);
9132
+ const guards = [];
9133
+ call.args.forEach((arg, i) => {
9134
+ if (fn.params[i]?.acceptsUndefined || "target" in arg) return;
9135
+ if (arg.kind === "pipe") {
9136
+ if (binding.root.kind !== "none" && absent(binding, pipeRead)) {
9137
+ guards.push(pipeRead);
9138
+ }
9139
+ return;
9140
+ }
9141
+ if (arg.kind === "binding" && arg.binding) {
9142
+ const read = leafRead(arg.binding);
9143
+ if (read && absent(arg.binding, read)) guards.push(read);
9144
+ }
9145
+ });
9146
+ return [...new Set(guards)];
8950
9147
  };
8951
9148
  var guardedBindingRead = (binding, scope, alias) => {
8952
9149
  const root = rootExpression(binding, scope);
@@ -9720,6 +9917,14 @@ var bindingPipeType = (row, target, scope) => {
9720
9917
  if (!picked?.dataType) return void 0;
9721
9918
  return { dataType: picked.dataType, cardinality: picked.cardinality };
9722
9919
  };
9920
+ function callArgTransformSignature(row, target, scope) {
9921
+ if (!target?.dataType) return void 0;
9922
+ const expected = {
9923
+ dataType: target.dataType,
9924
+ cardinality: target.cardinality
9925
+ };
9926
+ return { pipe: bindingPipeType(row, target, scope) ?? expected, expected };
9927
+ }
9723
9928
  var rowComplete = (row, target, payload, fieldNames, constants, functions, scope) => {
9724
9929
  if (!target) return "call-arg-unknown-target";
9725
9930
  if (!row.source) return "call-arg-incomplete";
@@ -10520,16 +10725,22 @@ function screenWriteToggleAllowed(variable) {
10520
10725
  function screenWriteEventAllowed(payload) {
10521
10726
  return payload !== "void";
10522
10727
  }
10523
- function writeEventReadType(value, payload) {
10524
- if (value.kind !== "event" || value.path?.length) return void 0;
10728
+ var PRIMITIVES = ["string", "number", "boolean"];
10729
+ function writeEventReadType(value, payload, fields = {}) {
10730
+ if (value.kind !== "event") return void 0;
10731
+ if (value.path?.length) {
10732
+ return value.path.length === 1 ? fields[value.path[0]] : void 0;
10733
+ }
10525
10734
  if (payload === "string" || payload === "number" || payload === "boolean") {
10526
10735
  return { dataType: { type: payload }, cardinality: "one" };
10527
10736
  }
10528
10737
  return void 0;
10529
10738
  }
10530
- function writeEventIssue(value, payload, target, functions) {
10739
+ var readMisfits = (read, target) => read.cardinality === "one" && target.cardinality === "one" && PRIMITIVES.includes(read.dataType.type) && read.dataType.type !== target.dataType.type;
10740
+ var typeName2 = (type) => type.cardinality === "many" ? `${type.dataType.type}[]` : type.dataType.type;
10741
+ function writeEventIssue(value, payload, target, functions, fields = {}) {
10531
10742
  if (value.kind !== "event") return void 0;
10532
- const read = writeEventReadType(value, payload);
10743
+ const read = writeEventReadType(value, payload, fields);
10533
10744
  if (value.transform) {
10534
10745
  const err = validateTransform(
10535
10746
  value.transform,
@@ -10541,19 +10752,26 @@ function writeEventIssue(value, payload, target, functions) {
10541
10752
  if (!err) return void 0;
10542
10753
  return err === "value-transform-incomplete" ? "incomplete" : "type-mismatch";
10543
10754
  }
10544
- if (!read || target.cardinality !== "one") return void 0;
10545
- return read.dataType.type === target.dataType.type ? void 0 : "type-mismatch";
10755
+ return read && readMisfits(read, target) ? "type-mismatch" : void 0;
10546
10756
  }
10547
- function writeEventMismatch(value, payload, target) {
10548
- if (value.kind !== "event" || value.transform) return void 0;
10549
- const read = writeEventReadType(value, payload);
10550
- if (!read || target.cardinality !== "one" || read.dataType.type === target.dataType.type) {
10551
- return void 0;
10757
+ function writeEventMismatch(value, payload, target, functions = {}, fields = {}) {
10758
+ if (value.kind !== "event") return void 0;
10759
+ const read = writeEventReadType(value, payload, fields);
10760
+ if (value.transform) {
10761
+ const inferred = inferTransformType(
10762
+ value.transform,
10763
+ read ?? target,
10764
+ "call-arg",
10765
+ functions
10766
+ );
10767
+ if (!inferred.ok || typesMatch(inferred.type, target)) return void 0;
10768
+ return { from: typeName2(inferred.type), to: typeName2(target) };
10552
10769
  }
10770
+ if (!read || !readMisfits(read, target)) return void 0;
10553
10771
  const fix = castTransform(read, target);
10554
10772
  return {
10555
- from: read.dataType.type,
10556
- to: target.dataType.type,
10773
+ from: typeName2(read),
10774
+ to: typeName2(target),
10557
10775
  ...fix ? { fix } : {}
10558
10776
  };
10559
10777
  }
@@ -10619,7 +10837,7 @@ function nextScreenWriteRow(variables, rows, payload, inputs, constants = {}) {
10619
10837
  value: defaultScreenWriteValue(free.variable, payload, inputs, constants)
10620
10838
  };
10621
10839
  }
10622
- function validateScreenWrites(variables, rows, payload, fieldNames, inputs, constants = {}, functions = {}) {
10840
+ function validateScreenWrites(variables, rows, payload, fieldNames, inputs, constants = {}, functions = {}, fields = {}) {
10623
10841
  const seen = /* @__PURE__ */ new Set();
10624
10842
  for (const row of rows) {
10625
10843
  if (seen.has(row.variableId)) return "screen-write-duplicate";
@@ -10658,7 +10876,8 @@ function validateScreenWrites(variables, rows, payload, fieldNames, inputs, cons
10658
10876
  value,
10659
10877
  payload,
10660
10878
  { dataType: { type: variable.dataType }, cardinality: variable.cardinality },
10661
- functions
10879
+ functions,
10880
+ fields
10662
10881
  );
10663
10882
  if (issue === "incomplete") return "screen-write-incomplete";
10664
10883
  if (issue) return "screen-write-type-mismatch";
@@ -10957,7 +11176,7 @@ function nextStateWriteRow(properties, rows, payload, inputs, constants = {}) {
10957
11176
  value: defaultStateWriteValue(free.property, payload, inputs, constants)
10958
11177
  };
10959
11178
  }
10960
- function validateStateWrites(properties, rows, payload, fieldNames, inputs, constants = {}, functions = {}) {
11179
+ function validateStateWrites(properties, rows, payload, fieldNames, inputs, constants = {}, functions = {}, fields = {}) {
10961
11180
  const seen = /* @__PURE__ */ new Set();
10962
11181
  for (const row of rows) {
10963
11182
  if (seen.has(row.propertyId)) return "state-write-duplicate";
@@ -10996,7 +11215,8 @@ function validateStateWrites(properties, rows, payload, fieldNames, inputs, cons
10996
11215
  value,
10997
11216
  payload,
10998
11217
  { dataType: property.dataType, cardinality: property.cardinality },
10999
- functions
11218
+ functions,
11219
+ fields
11000
11220
  );
11001
11221
  if (issue === "incomplete") return "state-write-incomplete";
11002
11222
  if (issue) return "state-write-type-mismatch";
@@ -11730,6 +11950,40 @@ function moveOutputBlock(control, from, block2, to) {
11730
11950
  [map]: writeKey(writeKey(all, from, void 0), to, row)
11731
11951
  };
11732
11952
  }
11953
+ var HELD_BLOCK_KEY = "__held-block";
11954
+ var detach = (value) => JSON.parse(JSON.stringify(value));
11955
+ function holdOutputBlock(control, from, block2) {
11956
+ if (block2.kind === "call" && !isOutputCallBound(control, outputCallKeys(control, from)[block2.index] ?? "")) {
11957
+ return void 0;
11958
+ }
11959
+ const lifted = moveOutputBlock(control, from, block2, HELD_BLOCK_KEY);
11960
+ if (!lifted || lifted === control) return void 0;
11961
+ return {
11962
+ kind: block2.kind,
11963
+ rows: detach(rowsAt(lifted, HELD_BLOCK_KEY))
11964
+ };
11965
+ }
11966
+ function dropOutputBlock(control, from, block2) {
11967
+ const lifted = moveOutputBlock(control, from, block2, HELD_BLOCK_KEY);
11968
+ if (!lifted || lifted === control) return void 0;
11969
+ return clearOutputGroupRows(lifted, HELD_BLOCK_KEY);
11970
+ }
11971
+ function placeOutputBlock(control, held, to) {
11972
+ if (held.kind === "close") return void 0;
11973
+ const seeded = { ...control };
11974
+ for (const [map, row] of Object.entries(held.rows)) {
11975
+ seeded[map] = {
11976
+ ...control[map] ?? {},
11977
+ [HELD_BLOCK_KEY]: detach(row)
11978
+ };
11979
+ }
11980
+ return moveOutputBlock(
11981
+ seeded,
11982
+ HELD_BLOCK_KEY,
11983
+ { kind: held.kind, index: 0 },
11984
+ to
11985
+ );
11986
+ }
11733
11987
  var outputGroupHoldsBlocks = (control, key2) => Object.keys(rowsAt(control, key2)).length > 0 || outputCallIds(control, key2).length > 0;
11734
11988
  function tidyOutputArms(control, output) {
11735
11989
  let next = control;
@@ -11863,6 +12117,82 @@ function validateVariantName(name3, variants, propertyNames, currentId) {
11863
12117
  ) || propertyNames.includes(name3);
11864
12118
  return taken ? "variant-name-taken" : null;
11865
12119
  }
12120
+ var SUGGESTED_NAME_MAX = 40;
12121
+ var OPERATOR_WORDS = {
12122
+ "==": "is",
12123
+ "!=": "is_not",
12124
+ ">": "gt",
12125
+ ">=": "gte",
12126
+ "<": "lt",
12127
+ "<=": "lte",
12128
+ contains: "has",
12129
+ not_contains: "lacks",
12130
+ exists: "has",
12131
+ not_exists: "no"
12132
+ };
12133
+ var toNameWords = (raw) => raw.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
12134
+ var joinWords = (...parts) => parts.filter(Boolean).join("_");
12135
+ var navWords = (navId) => joinWords(toNameWords(navId.split("/").at(-1) ?? ""), "open");
12136
+ function suggestVariantName(rule, sources, isTaken) {
12137
+ const { properties, shapes, functions = {} } = sources;
12138
+ const complete = (node) => ruleError(node, properties, shapes, functions) === null;
12139
+ const segmentNames = (path) => resolvePath(path, properties, shapes).map((segment) => segment.name);
12140
+ const checks = [];
12141
+ const collect2 = (node) => {
12142
+ if (node.kind === "group") node.children.forEach(collect2);
12143
+ else if (node.kind === "check" && complete(node)) checks.push(node);
12144
+ };
12145
+ collect2(rule);
12146
+ const lastCounts = /* @__PURE__ */ new Map();
12147
+ for (const check of checks) {
12148
+ const last = segmentNames(check.path).at(-1) ?? "";
12149
+ lastCounts.set(last, (lastCounts.get(last) ?? 0) + 1);
12150
+ }
12151
+ const pathWords = (path) => {
12152
+ const names = segmentNames(path);
12153
+ const last = names.at(-1) ?? "";
12154
+ return toNameWords(
12155
+ (lastCounts.get(last) ?? 0) > 1 ? names.join("_") : last
12156
+ );
12157
+ };
12158
+ const checkWords = (check) => {
12159
+ const path = joinWords(pathWords(check.path), check.count ? "count" : "");
12160
+ const quantifier = check.quantifier === "every" ? "all" : check.quantifier === "none" ? "no" : "";
12161
+ const op = OPERATOR_WORDS[check.operator];
12162
+ if (check.operator === "exists" || check.operator === "not_exists")
12163
+ return joinWords(quantifier, op, path);
12164
+ const right = check.operand.kind === "path" ? toNameWords(segmentNames(check.operand.path).at(-1) ?? "") : toNameWords(String(check.operand.value)) || "empty";
12165
+ return joinWords(quantifier, path, op, right);
12166
+ };
12167
+ const leaves = [];
12168
+ const words = (node) => {
12169
+ if (node.kind === "group") {
12170
+ const parts = node.children.map(words).filter(Boolean);
12171
+ if (!parts.length) return "";
12172
+ const joined = parts.join(node.connective === "all" ? "_and_" : "_or_");
12173
+ return node.negated ? joinWords("not", joined) : joined;
12174
+ }
12175
+ if (!complete(node)) return "";
12176
+ const leaf = node.kind === "check" ? checkWords(node) : node.kind === "call" ? toNameWords(globalRuleOf(node.ruleId)?.member ?? node.ruleId) : node.kind === "function" ? toNameWords(functions[node.functionId]?.name ?? "") : navWords(node.navId);
12177
+ if (leaf) leaves.push(leaf);
12178
+ return leaf;
12179
+ };
12180
+ const full = words(rule);
12181
+ const name3 = full.length > SUGGESTED_NAME_MAX ? joinWords(leaves[0], "etc") : full;
12182
+ return freeVariantName(name3, isTaken);
12183
+ }
12184
+ function suggestNavVariantName(navId, isTaken) {
12185
+ return navId ? freeVariantName(navWords(navId), isTaken) : "";
12186
+ }
12187
+ function freeVariantName(raw, isTaken) {
12188
+ if (!raw) return "";
12189
+ const name3 = /^[a-z]/.test(raw) ? raw : `v_${raw}`;
12190
+ const unavailable = (candidate) => candidate === BASE_VARIANT_NAME || isReservedVariantName(candidate) || isTaken(candidate);
12191
+ if (!unavailable(name3)) return name3;
12192
+ let n = 2;
12193
+ while (unavailable(`${name3}_${n}`)) n += 1;
12194
+ return `${name3}_${n}`;
12195
+ }
11866
12196
  function isKnownVariantId(id, variants) {
11867
12197
  if (variants[id]) return true;
11868
12198
  if (isBusyVariantId(id)) return true;
@@ -14491,7 +14821,9 @@ var FORMAT_PIPE_CATALOG = [
14491
14821
  // two are offered rather than typed.
14492
14822
  { name: "system", dataType: STR2, options: ["IN", "INTL"], default: "IN" },
14493
14823
  { name: "symbol", dataType: STR2, default: "\u20B9" },
14494
- { name: "forceSign", dataType: BOOL2, default: false }
14824
+ { name: "forceSign", dataType: BOOL2, default: false },
14825
+ // The modulus — the amount printed with no sign, negative or not.
14826
+ { name: "mod", dataType: BOOL2, default: false }
14495
14827
  ]
14496
14828
  },
14497
14829
  {
@@ -15667,6 +15999,79 @@ function openError(open, screens) {
15667
15999
  var drawnOpen = (method, screens) => method.open && !openError(method.open, screens) ? method.open : void 0;
15668
16000
  var openScreenIds = (methods) => Object.values(methods).map((method) => method.open?.screenId).filter((id) => !!id);
15669
16001
 
16002
+ // libs/codegen/src/lib/submit-target-helper.ts
16003
+ var SUBMIT_TARGET_KEY = "submitTarget";
16004
+ var ancestors = (control, controls) => {
16005
+ const chain = [];
16006
+ const seen = /* @__PURE__ */ new Set();
16007
+ for (let id = control.parentId; id && !seen.has(id) && controls[id]; id = controls[id].parentId) {
16008
+ seen.add(id);
16009
+ chain.push(controls[id]);
16010
+ }
16011
+ return chain;
16012
+ };
16013
+ var opensScope = (control) => isTaglessFamily(control.type) || control.type === "content" /* CONTENT */ || (control.variants?.length ?? 0) > 0;
16014
+ var scopeOf = (control, controls) => [control, ...ancestors(control, controls)].find(opensScope);
16015
+ function canNameSubmitTarget(button, controls) {
16016
+ if (button.type !== "button" /* BUTTON */) return false;
16017
+ if (button.configs?.["isSubmit"] !== true) return false;
16018
+ if (button.configs?.["href"]) return false;
16019
+ if (hasRouterLinkDirective(button)) return false;
16020
+ return !ancestors(button, controls).some(
16021
+ (parent) => parent.type === "form" /* FORM */ || parent.type === "section_action" /* SECTION_ACTION */
16022
+ );
16023
+ }
16024
+ var refReaches = (button, buttonChain, form, controls) => {
16025
+ const scope = scopeOf(form, controls);
16026
+ if (!scope) return true;
16027
+ if (!buttonChain.has(scope.id)) return false;
16028
+ if (scope.type !== "branch_arm" /* BRANCH_ARM */) return true;
16029
+ const formSide = armChildOf(scope.id, form, controls);
16030
+ const buttonSide = armChildOf(scope.id, button, controls);
16031
+ return !!formSide && !!buttonSide && projectionSlotOf(formSide) === projectionSlotOf(buttonSide);
16032
+ };
16033
+ var queryReaches = (form, controls) => ![form, ...ancestors(form, controls)].some(
16034
+ (node) => isRepeatFamily(node.type) || node.type === "content" /* CONTENT */
16035
+ );
16036
+ var accessTo = (button, form, controls) => {
16037
+ if (form.type !== "form" /* FORM */) return void 0;
16038
+ const buttonChain = /* @__PURE__ */ new Set([
16039
+ button.id,
16040
+ ...ancestors(button, controls).map((parent) => parent.id)
16041
+ ]);
16042
+ if (refReaches(button, buttonChain, form, controls)) return "ref";
16043
+ return queryReaches(form, controls) ? "query" : void 0;
16044
+ };
16045
+ function submitTargetForms(button, controls) {
16046
+ if (!canNameSubmitTarget(button, controls)) return [];
16047
+ return Object.values(controls).filter(
16048
+ (form) => accessTo(button, form, controls) !== void 0
16049
+ );
16050
+ }
16051
+ var armChildOf = (armId, control, controls) => [control, ...ancestors(control, controls)].find(
16052
+ (node) => node.parentId === armId
16053
+ );
16054
+ function submitTargetOf(button, controls) {
16055
+ return submitTargetLink(button, controls)?.form;
16056
+ }
16057
+ function submitTargetLink(button, controls) {
16058
+ if (!canNameSubmitTarget(button, controls)) return void 0;
16059
+ const id = button.configs?.[SUBMIT_TARGET_KEY];
16060
+ if (typeof id !== "string" || !id) return void 0;
16061
+ const form = controls[id];
16062
+ const access = form ? accessTo(button, form, controls) : void 0;
16063
+ return form && access ? { form, access } : void 0;
16064
+ }
16065
+ function hasSubmitTargetButton(formId, controls) {
16066
+ return Object.values(controls).some(
16067
+ (control) => control.type === "button" /* BUTTON */ && submitTargetOf(control, controls)?.id === formId
16068
+ );
16069
+ }
16070
+ function defaultSubmitTarget(button, controls) {
16071
+ const forms = submitTargetForms(button, controls);
16072
+ return forms.length === 1 ? forms[0].id : void 0;
16073
+ }
16074
+
15670
16075
  // libs/codegen/src/lib/call-outcome-helper.ts
15671
16076
  var OUTCOME_ARMS = [
15672
16077
  "success",
@@ -15875,6 +16280,8 @@ function formRefNames(controls) {
15875
16280
  if (!form || form.type !== "form" /* FORM */) continue;
15876
16281
  refs.set(form.id, formRefName(form));
15877
16282
  }
16283
+ const target = submitTargetOf(control, controls);
16284
+ if (target) refs.set(target.id, formRefName(target));
15878
16285
  }
15879
16286
  return refs;
15880
16287
  }
@@ -20153,11 +20560,13 @@ var STOCK_VALIDATOR = {
20153
20560
  function stockStatement(kind, check, fieldName, controlMap, limitRead) {
20154
20561
  const call = STOCK_VALIDATOR[kind];
20155
20562
  const limit = limitRead ? `state.${limitRead.name}` : `${check.limit}`;
20563
+ const drawn = takesLimit(kind) ? (check.message ?? "").trim() : "";
20564
+ const message = drawn ? `, '${drawn.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'${limitRead ? `, '${limitRead.name}'` : ""}` : "";
20156
20565
  if (kind === "email" || kind === "url") {
20157
20566
  return ` ${call}(tree['${fieldName}'] as SchemaPath<string>);`;
20158
20567
  }
20159
20568
  if (kind === "minAge") {
20160
- return ` ${call}(tree['${fieldName}'] as SchemaPath<string>, ${limit});`;
20569
+ return ` ${call}(tree['${fieldName}'] as SchemaPath<string>, ${limit}${message ? `, undefined${message}` : ""});`;
20161
20570
  }
20162
20571
  if (kind === "matchField") {
20163
20572
  const target = check.matchFieldId ? controlMap[check.matchFieldId] : void 0;
@@ -20176,7 +20585,7 @@ function stockStatement(kind, check, fieldName, controlMap, limitRead) {
20176
20585
  ` );`
20177
20586
  ].join("\n");
20178
20587
  }
20179
- return ` ${call}(tree, ['${fieldName}'], ${limit});`;
20588
+ return ` ${call}(tree, ['${fieldName}'], ${limit}${message});`;
20180
20589
  }
20181
20590
  function generateFormValidation(controlMap, formId, functions, properties = {}, sources = {}) {
20182
20591
  const shape = buildFormShape(controlMap, formId);
@@ -20705,10 +21114,41 @@ function formModelSourceType(source, scope) {
20705
21114
  return void 0;
20706
21115
  }
20707
21116
  function canFillFormKey(source, key2) {
20708
- if (source.cardinality !== key2.cardinality) return false;
21117
+ if (source.cardinality === "many" && key2.cardinality === "one") return false;
21118
+ if (source.dataType === "file" || key2.dataType === "file") {
21119
+ return source.dataType === key2.dataType;
21120
+ }
20709
21121
  if (key2.dataType === "string") return true;
20710
21122
  return source.dataType === key2.dataType;
20711
21123
  }
21124
+ var asTransformType = (type) => ({
21125
+ dataType: { type: type.dataType === "file" ? "string" : type.dataType },
21126
+ cardinality: type.cardinality
21127
+ });
21128
+ var fromTransformType = (type) => {
21129
+ const { type: dataType } = type.dataType;
21130
+ if (dataType !== "string" && dataType !== "number" && dataType !== "boolean") {
21131
+ return void 0;
21132
+ }
21133
+ if (!isKeyCardinality(type.cardinality)) return void 0;
21134
+ return { dataType, cardinality: type.cardinality };
21135
+ };
21136
+ var keyTypeLabel = (type) => `${type.dataType}${type.cardinality === "many" ? "[]" : ""}`;
21137
+ function transformedKeyType(transform, sourceType, scope) {
21138
+ if (transformIncomplete(transform, scope.functions)) {
21139
+ return { ok: false, issue: "transform-incomplete" };
21140
+ }
21141
+ const inferred = inferTransformType(
21142
+ transform,
21143
+ asTransformType(sourceType),
21144
+ "call-arg",
21145
+ scope.functions
21146
+ );
21147
+ if (inferred.ok === false) return { ok: false, issue: "transform-incomplete" };
21148
+ const type = fromTransformType(inferred.type);
21149
+ if (!type) return { ok: false, issue: "transform-type-mismatch" };
21150
+ return { ok: true, type };
21151
+ }
20712
21152
  function formModelKeyIssue(key2, source, scope) {
20713
21153
  const keyType = formModelKeyType(key2);
20714
21154
  if (!keyType) return "source-type-mismatch";
@@ -20724,8 +21164,45 @@ function formModelKeyIssue(key2, source, scope) {
20724
21164
  }
20725
21165
  const sourceType = formModelSourceType(source, scope);
20726
21166
  if (!sourceType) return "source-missing";
21167
+ if (isFormModelReadSource(source) && source.transform) {
21168
+ const out = transformedKeyType(source.transform, sourceType, scope);
21169
+ if (out.ok === false) return out.issue;
21170
+ return canFillFormKey(out.type, keyType) ? void 0 : "transform-type-mismatch";
21171
+ }
20727
21172
  return canFillFormKey(sourceType, keyType) ? void 0 : "source-type-mismatch";
20728
21173
  }
21174
+ function formModelKeyMismatch(key2, source, scope) {
21175
+ if (!isFormModelReadSource(source) || source.transform) return void 0;
21176
+ const keyType = formModelKeyType(key2);
21177
+ const sourceType = formModelSourceType(source, scope);
21178
+ if (!keyType || !sourceType || canFillFormKey(sourceType, keyType)) {
21179
+ return void 0;
21180
+ }
21181
+ const fix = keyType.dataType === "file" ? void 0 : castTransform(asTransformType(sourceType), asTransformType(keyType));
21182
+ return {
21183
+ from: keyTypeLabel(sourceType),
21184
+ to: keyTypeLabel(keyType),
21185
+ ...fix ? { fix } : {}
21186
+ };
21187
+ }
21188
+ function formModelKeySignature(key2, source, scope) {
21189
+ if (!isFormModelReadSource(source)) return void 0;
21190
+ const keyType = formModelKeyType(key2);
21191
+ const sourceType = formModelSourceType(source, scope);
21192
+ if (!keyType || !sourceType || keyType.dataType === "file") return void 0;
21193
+ return {
21194
+ pipe: asTransformType(sourceType),
21195
+ expected: asTransformType(keyType)
21196
+ };
21197
+ }
21198
+ function formModelLandedType(source, scope) {
21199
+ const sourceType = formModelSourceType(source, scope);
21200
+ if (!sourceType) return void 0;
21201
+ if (!isFormModelReadSource(source) || !source.transform) return sourceType;
21202
+ const out = transformedKeyType(source.transform, sourceType, scope);
21203
+ return out.ok ? out.type : void 0;
21204
+ }
21205
+ var isDemoted = (issue) => !!issue && issue !== "source-type-mismatch" && issue !== "transform-incomplete" && issue !== "transform-type-mismatch";
20729
21206
  function reconcileFormModel(model, controlMap, scope) {
20730
21207
  const form = controlMap[model.formId];
20731
21208
  if (!form) return void 0;
@@ -20733,10 +21210,21 @@ function reconcileFormModel(model, controlMap, scope) {
20733
21210
  const keys = {};
20734
21211
  shapeKeys.forEach((key2) => {
20735
21212
  const stored = model.keys[key2.id] ?? { source: "empty" };
20736
- keys[key2.id] = formModelKeyIssue(key2, stored, scope) ? { source: "empty" } : stored;
21213
+ keys[key2.id] = isDemoted(formModelKeyIssue(key2, stored, scope)) ? { source: "empty" } : stored;
20737
21214
  });
20738
21215
  return { ...model, keys };
20739
21216
  }
21217
+ function formModelTransforms(models, controlMap, scope) {
21218
+ return models.flatMap(
21219
+ (model) => formModelShapeKeys(controlMap, model.formId).flatMap((key2) => {
21220
+ const source = model.keys[key2.id];
21221
+ if (!source || !isFormModelReadSource(source) || !source.transform) {
21222
+ return [];
21223
+ }
21224
+ return formModelKeyIssue(key2, source, scope) ? [] : [source.transform];
21225
+ })
21226
+ );
21227
+ }
20740
21228
  function reconcileFormModels(models, controlMap, scope) {
20741
21229
  const next = {};
20742
21230
  Object.entries(models).forEach(([id, model]) => {
@@ -20805,16 +21293,18 @@ function decodeKeySource(value) {
20805
21293
  if (kind === "fixed") return { source: "fixed", value: "" };
20806
21294
  return { source: "empty" };
20807
21295
  }
21296
+ var isPrimitive = (type) => type === "string" || type === "number" || type === "boolean";
21297
+ var sourceOptionLabel = (label, type, key2) => canFillFormKey(type, key2) ? label : `${label} (${keyTypeLabel(type)})`;
20808
21298
  function formModelScreenOptions(key2, scope) {
20809
21299
  const found = [];
20810
21300
  const walk = (prefix, label, dataType, cardinality, member, depth) => {
20811
21301
  if (dataType.type !== "shape" && dataType.type !== "form") {
20812
- const type = isKeyCardinality(cardinality) ? {
20813
- dataType: dataType.type,
20814
- cardinality
20815
- } : void 0;
20816
- if (type && canFillFormKey(type, key2)) {
20817
- found.push({ value: `${prefix}|${member.join(".")}`, label });
21302
+ const type = isKeyCardinality(cardinality) && isPrimitive(dataType.type) ? { dataType: dataType.type, cardinality } : void 0;
21303
+ if (type) {
21304
+ found.push({
21305
+ value: `${prefix}|${member.join(".")}`,
21306
+ label: sourceOptionLabel(label, type, key2)
21307
+ });
20818
21308
  }
20819
21309
  return;
20820
21310
  }
@@ -20847,9 +21337,14 @@ function formModelScreenOptions(key2, scope) {
20847
21337
  );
20848
21338
  });
20849
21339
  Object.values(scope.constants).forEach((constant) => {
20850
- if (canFillFormKey({ dataType: constant.dataType, cardinality: "one" }, key2)) {
20851
- found.push({ value: `constant|${constant.id}`, label: constant.name });
20852
- }
21340
+ found.push({
21341
+ value: `constant|${constant.id}`,
21342
+ label: sourceOptionLabel(
21343
+ constant.name,
21344
+ { dataType: constant.dataType, cardinality: "one" },
21345
+ key2
21346
+ )
21347
+ });
20853
21348
  });
20854
21349
  return found.sort((a, b) => a.label.localeCompare(b.label));
20855
21350
  }
@@ -20859,9 +21354,12 @@ function formModelStateOptions(key2, scope) {
20859
21354
  const found = [];
20860
21355
  const walk = (path, label, dataType, cardinality, depth) => {
20861
21356
  if (dataType.type !== "shape" && dataType.type !== "form") {
20862
- const type = isKeyCardinality(cardinality) ? { dataType: dataType.type, cardinality } : void 0;
20863
- if (type && canFillFormKey(type, key2)) {
20864
- found.push({ value: `path|${path.join(".")}`, label });
21357
+ const type = isKeyCardinality(cardinality) && isPrimitive(dataType.type) ? { dataType: dataType.type, cardinality } : void 0;
21358
+ if (type) {
21359
+ found.push({
21360
+ value: `path|${path.join(".")}`,
21361
+ label: sourceOptionLabel(label, type, key2)
21362
+ });
20865
21363
  }
20866
21364
  return;
20867
21365
  }
@@ -21229,6 +21727,15 @@ function bodyConfigs(node) {
21229
21727
  if (node.type === "audience_picker" /* AUDIENCE_PICKER */) {
21230
21728
  delete configs[AUDIENCE_PICKER_LEVELS_KEY];
21231
21729
  }
21730
+ if (node.type === "button" /* BUTTON */) {
21731
+ delete configs[SUBMIT_TARGET_KEY];
21732
+ delete configs[BUTTON_KEY_CONFIG_KEY];
21733
+ }
21734
+ if (node.type === "section_action" /* SECTION_ACTION */) {
21735
+ const key2 = actionSelectionKey(node);
21736
+ if (key2) configs[ACTION_SELECTION_KEY] = key2;
21737
+ else delete configs[ACTION_SELECTION_KEY];
21738
+ }
21232
21739
  if (node.type === "section_table" /* SECTION_TABLE */) {
21233
21740
  for (const key2 of Object.keys(configs)) {
21234
21741
  if (!SECTION_TABLE_INPUTS.has(key2)) delete configs[key2];
@@ -21359,7 +21866,11 @@ var RAW_BOUND_SLOTS = {
21359
21866
  ["heat_swatch" /* HEAT_SWATCH */]: [BINDING_SLOT.value],
21360
21867
  ["score_set_item" /* SCORE_SET_ITEM */]: [BINDING_SLOT.value],
21361
21868
  ["score_set" /* SCORE_SET */]: [BINDING_SLOT.scoreDate],
21362
- ["scale_mark" /* SCALE_MARK */]: [BINDING_SLOT.value]
21869
+ ["scale_mark" /* SCALE_MARK */]: [BINDING_SLOT.value],
21870
+ // A toggle SectionAction's pick: a ButtonKey or nothing, and `m-action` reads
21871
+ // nothing — or a key none of its Buttons hold — as its first Button
21872
+ // (m-one-ui ADR 0213).
21873
+ ["section_action" /* SECTION_ACTION */]: [BINDING_SLOT.selection]
21363
21874
  };
21364
21875
  var SECTION_TABLE_INPUTS = /* @__PURE__ */ new Set([
21365
21876
  "sticky",
@@ -21734,29 +22245,6 @@ function renderBranch(node, indent2, names, methods, operationOf, storeProp, ctx
21734
22245
  };
21735
22246
  return slots.map(chainFor).join("\n");
21736
22247
  }
21737
- var NAMED_SLOT_TAGS = /* @__PURE__ */ new Set([
21738
- "m-section-header",
21739
- "m-section-hero",
21740
- "m-jumbotron",
21741
- "m-section-search",
21742
- "m-section-stepper",
21743
- "m-section-badges",
21744
- "m-section-toggle",
21745
- "m-action",
21746
- "m-one-action",
21747
- "m-section-back",
21748
- "m-section-filter",
21749
- "m-section-filter-group",
21750
- "m-carousel",
21751
- "m-one-carousel",
21752
- "m-section-pagination",
21753
- "m-section-footer",
21754
- "m-app-logo"
21755
- ]);
21756
- function projectionSlotOf(node) {
21757
- const tag = codegenFor(node.type)?.tag.split(" ")[0];
21758
- return tag && NAMED_SLOT_TAGS.has(tag) ? tag : "";
21759
- }
21760
22248
  function branchSlots(arms) {
21761
22249
  const named = /* @__PURE__ */ new Set();
21762
22250
  let hasDefault = false;
@@ -21942,7 +22430,11 @@ function renderNode(node, indent2, names, methods, operationOf, storeProp, ctx,
21942
22430
  const guard = isScreenOwnedKind(node.variantKind) ? screenVariantGuard(node, ctx.screenVariants ?? {}) : variantGuard(node, names, storeProp);
21943
22431
  const inner = guard ? indent2 + 1 : indent2;
21944
22432
  const gaps = bindingGapComments(node, ctx, storeProp, " ".repeat(indent2));
21945
- const tag = renderTag(
22433
+ ctx.letNames ??= /* @__PURE__ */ new Set();
22434
+ const outerSink = ctx.letSink;
22435
+ const lets = [];
22436
+ ctx.letSink = lets;
22437
+ const drawn = renderTag(
21946
22438
  node,
21947
22439
  inner,
21948
22440
  names,
@@ -21953,9 +22445,24 @@ function renderNode(node, indent2, names, methods, operationOf, storeProp, ctx,
21953
22445
  wires,
21954
22446
  payloads
21955
22447
  );
21956
- if (!tag) return "";
22448
+ ctx.letSink = outerSink;
22449
+ if (!drawn) return "";
22450
+ const innerPad = " ".repeat(inner);
22451
+ const tag = `${lets.map((line) => `${innerPad}${line}
22452
+ `).join("")}${drawn}`;
21957
22453
  return `${gaps}${wrapInGuard(tag, guard, " ".repeat(indent2))}`;
21958
22454
  }
22455
+ var hoistLet = (ctx, read) => {
22456
+ const sink = ctx.letSink;
22457
+ const taken = ctx.letNames;
22458
+ if (!sink || !taken) return void 0;
22459
+ const base = `${/([A-Za-z_$][\w$]*)\W*$/.exec(read)?.[1] ?? "arg"}Value`;
22460
+ let name3 = base;
22461
+ for (let n = 2; taken.has(name3); n += 1) name3 = `${base}${n}`;
22462
+ taken.add(name3);
22463
+ sink.push(`@let ${name3} = ${read};`);
22464
+ return name3;
22465
+ };
21959
22466
  var attrBindingSlots = (type) => {
21960
22467
  if (type === "form" /* FORM */) return [BINDING_SLOT.data];
21961
22468
  if (type === "field" /* FIELD */ || type === "context_menu" /* CONTEXT_MENU */)
@@ -22029,6 +22536,9 @@ var checkLimitSources = (ctx) => limitSources({
22029
22536
  storePropOf: ctx.storePropOf
22030
22537
  });
22031
22538
  var bindingScope = (ctx, storeProp) => ({
22539
+ // The render path hands its EmitContext here; any other caller carries no
22540
+ // `letSink`, and the read stays inline.
22541
+ hoist: (read) => hoistLet(ctx, read),
22032
22542
  properties: ctx.properties,
22033
22543
  shapes: ctx.shapes,
22034
22544
  computeds: ctx.computeds,
@@ -22256,6 +22766,7 @@ function boundAttrs(node, ctx, storeProp) {
22256
22766
  if (total) parts.push(` [total]="${total.read}"`);
22257
22767
  for (const slot of RAW_BOUND_SLOTS[node.type] ?? []) {
22258
22768
  if (!bindings?.[slot]) continue;
22769
+ if (slot === BINDING_SLOT.selection && !isToggleAction(node)) continue;
22259
22770
  const expr = bindingExpression(bindings[slot], scope);
22260
22771
  if (expr) parts.push(` [${slot}]="${expr}"`);
22261
22772
  }
@@ -22356,6 +22867,41 @@ var inSectionHeader = (node, ctx) => {
22356
22867
  const parentId = ctx.controlMap?.[node.id]?.parentId;
22357
22868
  return !!parentId && ctx.controlMap?.[parentId]?.type === "section_header" /* SECTION_HEADER */;
22358
22869
  };
22870
+ var submitTargetMember = (form) => `${formRefName(form).replace(/Ref$/, "")}SubmitTarget`;
22871
+ function submitTargetReads(node, ctx) {
22872
+ if (node.type !== "button" /* BUTTON */) return void 0;
22873
+ const controls = ctx.controlMap ?? {};
22874
+ const button = controls[node.id];
22875
+ const link = button ? submitTargetLink(button, controls) : void 0;
22876
+ if (!link) return void 0;
22877
+ if (link.access === "ref") {
22878
+ const ref = formRefName(link.form);
22879
+ return { blocked: `${ref}.blocked()`, submit: `${ref}.submitNow()` };
22880
+ }
22881
+ const member = submitTargetMember(link.form);
22882
+ return {
22883
+ blocked: `${member}()?.blocked() ?? true`,
22884
+ submit: `${member}()?.submitNow()`
22885
+ };
22886
+ }
22887
+ function submitTargetQueriesBlock(controls) {
22888
+ const forms = /* @__PURE__ */ new Map();
22889
+ for (const control of Object.values(controls)) {
22890
+ const link = submitTargetLink(control, controls);
22891
+ if (link?.access === "query") forms.set(link.form.id, link.form);
22892
+ }
22893
+ return [...forms.values()].map(
22894
+ (form) => `
22895
+ protected readonly ${submitTargetMember(
22896
+ form
22897
+ )} = viewChild<SectionFormComponent>('${formRefName(form)}');
22898
+ `
22899
+ ).join("");
22900
+ }
22901
+ function withSubmitCall(outputs, submit) {
22902
+ if (!submit) return outputs;
22903
+ return outputs.includes(' (clicked)="') ? outputs.replace(' (clicked)="', ` (clicked)="${submit}; `) : `${outputs} (clicked)="${submit}"`;
22904
+ }
22359
22905
  function tagAttrs(node, ctx, storeProp) {
22360
22906
  if (node.type === "audience_picker" /* AUDIENCE_PICKER */) {
22361
22907
  const config = ctx.audiencePickerConfigNames?.get(node.id);
@@ -22384,6 +22930,14 @@ function tagAttrs(node, ctx, storeProp) {
22384
22930
  const ref = formRefNames(ctx.controlMap ?? {}).get(node.id);
22385
22931
  return `${ref ? ` #${ref}` : ""}${inlineAttrs(node)}${member ? ` [validation]="${member}"` : ""}${boundAttrs(node, ctx, storeProp)}`;
22386
22932
  }
22933
+ const submitReads = submitTargetReads(node, ctx);
22934
+ if (submitReads) {
22935
+ const configs2 = { ...node.configs ?? {} };
22936
+ delete configs2["isSubmit"];
22937
+ const locked = configs2["disabled"] === true;
22938
+ if (!locked) delete configs2["disabled"];
22939
+ return `${inlineAttrs({ ...node, configs: configs2 })}${locked ? "" : ` [disabled]="${submitReads.blocked}"`}${boundAttrs(node, ctx, storeProp)}`;
22940
+ }
22387
22941
  if (node.type === "section_carousel" /* SECTION_CAROUSEL */) {
22388
22942
  const slides = cardEmit(
22389
22943
  node,
@@ -23078,7 +23632,7 @@ ${" ".repeat(indent2 + index)}}`,
23078
23632
  ctx.overlayNames,
23079
23633
  bindingScope(ctx, storeProp),
23080
23634
  ctx.controlMap?.[node.id]?.bindings
23081
- )}${sectionTableRowItemAttr(node, ctx.controlMap)}${foldedName ? "" : outputAttrs(node, methods, operationOf, storeProp, ctx)}`;
23635
+ )}${sectionTableRowItemAttr(node, ctx.controlMap)}${foldedName ? "" : withSubmitCall(outputAttrs(node, methods, operationOf, storeProp, ctx), submitTargetReads(node, ctx)?.submit)}`;
23082
23636
  const totalGuard = paginationTotalRead(node, ctx, storeProp)?.guard;
23083
23637
  if (totalGuard) {
23084
23638
  return `${pad2}@if (${totalGuard}; as ${PAGINATION_TOTAL_ALIAS}) {
@@ -23603,8 +24157,18 @@ var formModelDeclsBlock = (models, scope) => {
23603
24157
  }
23604
24158
  return void 0;
23605
24159
  };
23606
- const coerce = (read, type) => {
23607
- if (type.cardinality === "many") return `${read} ?? []`;
24160
+ const keyScope = {
24161
+ inputs: scope.inputs,
24162
+ computeds: scope.computeds,
24163
+ constants: scope.constants,
24164
+ functions: scope.functions,
24165
+ shapes: scope.shapes,
24166
+ ...scope.storeProp ? { properties: scope.properties } : {}
24167
+ };
24168
+ const coerce = (read, type, landed) => {
24169
+ if (type.cardinality === "many") {
24170
+ return landed?.cardinality === "one" ? `[${read}].filter((value) => value !== undefined)` : `${read} ?? []`;
24171
+ }
23608
24172
  if (type.dataType === "boolean") return `${read} ?? false`;
23609
24173
  if (type.dataType === "number" || type.dataType === "file") return read;
23610
24174
  return `String(${read} ?? '')`;
@@ -23620,13 +24184,21 @@ var formModelDeclsBlock = (models, scope) => {
23620
24184
  const keyType = formModelKeyType(key2);
23621
24185
  if (!keyType) return ` ${key2.name}: undefined,`;
23622
24186
  const source = model.keys[key2.id] ?? { source: "empty" };
24187
+ if (formModelKeyIssue(key2, source, keyScope)) {
24188
+ return ` ${key2.name}: ${formModelKeyZero(keyType)},`;
24189
+ }
23623
24190
  if (source.source === "fixed") {
23624
24191
  return ` ${key2.name}: ${literalExpression(source.value, {
23625
24192
  type: keyType.dataType
23626
24193
  })},`;
23627
24194
  }
23628
- const read = sourceRead(source);
23629
- return ` ${key2.name}: ${read ? coerce(read, keyType) : formModelKeyZero(keyType)},`;
24195
+ const raw = sourceRead(source);
24196
+ const read = raw && isFormModelReadSource(source) && source.transform ? emitTransformExpr(source.transform, raw, {
24197
+ functions: scope.functions,
24198
+ constants: scope.constants,
24199
+ scope: "class"
24200
+ }) : raw;
24201
+ return ` ${key2.name}: ${read ? coerce(read, keyType, formModelLandedType(source, keyScope)) : formModelKeyZero(keyType)},`;
23630
24202
  });
23631
24203
  const body = rows.length ? `
23632
24204
  ${rows.join("\n")}
@@ -23872,7 +24444,7 @@ ${statements.map((line) => ` ${line};`).join("\n")}
23872
24444
  });
23873
24445
  return emitted.join("");
23874
24446
  }
23875
- function outputOpenEmit(node, output, ctx, storeProp, indent2 = " ", methods = {}, operationOf = () => void 0) {
24447
+ function outputOpenEmit(node, output, ctx, storeProp, indent2 = " ", methods = {}, operationOf = () => void 0, aliasArgs = false) {
23876
24448
  const open = outputOpenOf(node.outputOpens, output);
23877
24449
  if (!open?.screenId) return void 0;
23878
24450
  const ref = ctx.outputOpenRef?.(open.screenId);
@@ -23881,6 +24453,10 @@ function outputOpenEmit(node, output, ctx, storeProp, indent2 = " ", methods
23881
24453
  if (ref.inputs.some((input) => input.required && !filled.has(input.id)))
23882
24454
  return void 0;
23883
24455
  const payload = nodePayloadShape(node, output, ctx);
24456
+ const aliasParams = /* @__PURE__ */ new Map();
24457
+ const readsAlias = (binding) => binding.root.kind === "alias" || transformBindingLeaves(binding.transform).some(
24458
+ (leaf) => leaf.root.kind === "alias"
24459
+ );
23884
24460
  const entries = outputOpenInputEntries(
23885
24461
  open,
23886
24462
  ref.inputs,
@@ -23898,14 +24474,24 @@ function outputOpenEmit(node, output, ctx, storeProp, indent2 = " ", methods
23898
24474
  const member = screenMemberExpression(binding, ctx);
23899
24475
  return member ? `this.${member}` : void 0;
23900
24476
  },
23901
- (binding) => bindingExpression(binding, {
23902
- ...bindingScope(ctx, storeProp),
23903
- memberPrefix: "this."
23904
- }),
24477
+ (binding) => {
24478
+ if (!readsAlias(binding))
24479
+ return bindingExpression(binding, {
24480
+ ...bindingScope(ctx, storeProp),
24481
+ memberPrefix: "this."
24482
+ });
24483
+ if (!aliasArgs || binding.transform) return void 0;
24484
+ const read = bindingExpression(binding, bindingScope(ctx, storeProp));
24485
+ if (!read) return void 0;
24486
+ const param = aliasParams.get(read) ?? `$row${aliasParams.size}`;
24487
+ aliasParams.set(read, param);
24488
+ return param;
24489
+ },
23905
24490
  screenSourceReader(ctx, bindingScope(ctx, storeProp))
23906
24491
  );
23907
24492
  if (!entries) return void 0;
23908
24493
  return {
24494
+ aliasReads: [...aliasParams.keys()],
23909
24495
  member: outputOpenMemberName(node.id, output),
23910
24496
  // A member reading nothing off the gesture takes no parameter, so a void
23911
24497
  // output such as `clicked` opens the overlay with an empty call.
@@ -24088,11 +24674,14 @@ function outputOpenCall(node, output, ctx, scope, storeProp, methods, operationO
24088
24674
  storeProp,
24089
24675
  " ",
24090
24676
  methods,
24091
- operationOf
24677
+ operationOf,
24678
+ true
24092
24679
  );
24093
24680
  if (!emit) return "";
24681
+ if (scope === "class" && emit.aliasReads.length) return "";
24094
24682
  const self = scope === "class" ? "this." : "";
24095
- return `${self}${emit.member}(${emit.readsEvent ? "$event" : ""})`;
24683
+ const args = [...emit.readsEvent ? ["$event"] : [], ...emit.aliasReads];
24684
+ return `${self}${emit.member}(${args.join(", ")})`;
24096
24685
  }
24097
24686
  function outputOpenMembersBlock(tree, ctx, payloads, storeProp, methods, operationOf) {
24098
24687
  const emitted = [];
@@ -24109,13 +24698,19 @@ function outputOpenMembersBlock(tree, ctx, payloads, storeProp, methods, operati
24109
24698
  storeProp,
24110
24699
  " ",
24111
24700
  methods,
24112
- operationOf
24701
+ operationOf,
24702
+ true
24113
24703
  );
24114
24704
  if (!emit) continue;
24115
24705
  const payload = nodePayloadShape(node, output, ctx);
24116
- const param = emit.readsEvent ? `$event: ${payloads.get(node.id)?.type ?? handlerEventType(payload, node.type, output)}` : "";
24706
+ const params = [
24707
+ ...emit.readsEvent ? [
24708
+ `$event: ${payloads.get(node.id)?.type ?? handlerEventType(payload, node.type, output)}`
24709
+ ] : [],
24710
+ ...emit.aliasReads.map((_, index) => `$row${index}: unknown`)
24711
+ ].join(", ");
24117
24712
  emitted.push(`
24118
- protected readonly ${emit.member} = (${param}): void => {
24713
+ protected readonly ${emit.member} = (${params}): void => {
24119
24714
  ${emit.statement}
24120
24715
  };
24121
24716
  `);
@@ -26513,9 +27108,13 @@ ${tables.map(
26513
27108
  ctx.storePropOf,
26514
27109
  ctx.outputs ?? {}
26515
27110
  );
27111
+ const submitTargetQueriesBody = submitTargetQueriesBlock(
27112
+ ctx.controlMap ?? {}
27113
+ );
26516
27114
  const angularCore = [
26517
27115
  "ChangeDetectionStrategy",
26518
27116
  "Component",
27117
+ ...submitTargetQueriesBody ? ["viewChild"] : [],
26519
27118
  ...screenComputedsBody || screenVariantsBody || cardsBody || messageParamsBody ? ["computed"] : [],
26520
27119
  ...autoCalls.length ? ["effect"] : [],
26521
27120
  ...autoCallsBody.includes("untracked(") ? ["untracked"] : [],
@@ -26544,6 +27143,24 @@ ${tables.map(
26544
27143
  if (fn) screenFunctions.set(fn.name, fn);
26545
27144
  }
26546
27145
  for (const fn of variantFunctions) screenFunctions.set(fn.name, fn);
27146
+ for (const id of templateTransformRefs(
27147
+ formModelTransforms(
27148
+ Object.values(ctx.formModels ?? {}),
27149
+ ctx.controlMap ?? {},
27150
+ {
27151
+ inputs: ctx.inputs ?? {},
27152
+ computeds: screenComputeds,
27153
+ constants,
27154
+ functions: ctx.functions ?? {},
27155
+ shapes,
27156
+ ...needsStore ? { properties: ctx.properties ?? {} } : {}
27157
+ }
27158
+ ),
27159
+ ctx.functions ?? {}
27160
+ ).functionIds) {
27161
+ const fn = (ctx.functions ?? {})[id];
27162
+ if (fn) screenFunctions.set(fn.name, fn);
27163
+ }
26547
27164
  for (const handler of Object.values(ctx.screenMethods ?? {})) {
26548
27165
  for (const one of screenMethodCalls(handler)) {
26549
27166
  const fn = (ctx.functions ?? {})[one.functionId ?? ""];
@@ -26793,7 +27410,7 @@ ${`${outcomeHandlersBody}${menuActionHandlersBody}`.includes("$event: MenuItem")
26793
27410
  width: 100%
26794
27411
  \`,
26795
27412
  })
26796
- export class ${naming.className} {${storeBody}${busyBody}${authBody}${globalStoreBody}${modalBody}${overlayRefBody}${navRefBody}${navRouterBody}${imgApiOriginBody}${inputsBody}${constantsBody}${screenComputedsBody}${variablesBody}${formModelsBody}${screenVariantsBody}${cardsBody}${searchBody}${messageParamsBody}${outputsBody}${wiresBody}${overlayProps}${contextMenuConfigBody}${audiencePickerConfigBody}${payloadsBody}${transformMembersBody}${memberEnumsBody}${payloadReadersBody}${sectionTablesBody}${checksBody}${screenMethodsBody}${outputOpenBody}${outputLinkBody}${outcomeHandlersBody}${menuActionHandlersBody}${menuConditionBody}${outputArmHandlersBody}${autoCallsBody}}
27413
+ export class ${naming.className} {${storeBody}${busyBody}${authBody}${globalStoreBody}${modalBody}${overlayRefBody}${navRefBody}${navRouterBody}${imgApiOriginBody}${inputsBody}${constantsBody}${screenComputedsBody}${variablesBody}${formModelsBody}${screenVariantsBody}${cardsBody}${searchBody}${messageParamsBody}${outputsBody}${wiresBody}${overlayProps}${contextMenuConfigBody}${audiencePickerConfigBody}${payloadsBody}${transformMembersBody}${memberEnumsBody}${payloadReadersBody}${sectionTablesBody}${submitTargetQueriesBody}${checksBody}${screenMethodsBody}${outputOpenBody}${outputLinkBody}${outcomeHandlersBody}${menuActionHandlersBody}${menuConditionBody}${outputArmHandlersBody}${autoCallsBody}}
26797
27414
  `;
26798
27415
  }
26799
27416
  function assetName(node) {
@@ -27131,7 +27748,7 @@ __export(package_exports, {
27131
27748
  version: () => version
27132
27749
  });
27133
27750
  var name = "@magmonium/one";
27134
- var version = "0.4.96";
27751
+ var version = "0.4.109";
27135
27752
  var description = "Magmonium One \u2014 Angular design-system primitives for mm Apps";
27136
27753
  var author = "magmonium";
27137
27754
  var license = "MIT";
@@ -27199,7 +27816,7 @@ __export(package_exports2, {
27199
27816
  version: () => version2
27200
27817
  });
27201
27818
  var name2 = "@magmonium/cli";
27202
- var version2 = "0.8.26";
27819
+ var version2 = "0.8.27";
27203
27820
  var description2 = "A powerful and extensible asset compilation tool that can be shared across multiple projects";
27204
27821
  var bin = {
27205
27822
  "mag-cli": "bin/cli.js"
@@ -27498,6 +28115,49 @@ var migrateLadder = (id, ladder, out) => {
27498
28115
  };
27499
28116
  };
27500
28117
 
28118
+ // libs/codegen/src/lib/button-key-migration.ts
28119
+ var recordOf2 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
28120
+ var backfillButtonKeys = (controlMap) => {
28121
+ const map = recordOf2(controlMap);
28122
+ if (!map) return controlMap;
28123
+ const out = { ...map };
28124
+ for (const [id, raw] of Object.entries(map)) {
28125
+ const bar = recordOf2(raw);
28126
+ if (bar?.["type"] !== "section_action" /* SECTION_ACTION */) continue;
28127
+ const childIds = (Array.isArray(bar["childrens"]) ? bar["childrens"] : []).filter(
28128
+ (c) => typeof c === "string"
28129
+ );
28130
+ const childrens = childIds.flatMap((childId) => {
28131
+ const child = recordOf2(map[childId]);
28132
+ if (!child) return [];
28133
+ return [
28134
+ {
28135
+ id: childId,
28136
+ type: child["type"],
28137
+ configs: recordOf2(child["configs"]) ?? {},
28138
+ childrens: []
28139
+ }
28140
+ ];
28141
+ });
28142
+ const keys = suggestedButtonKeys({
28143
+ id,
28144
+ type: "section_action" /* SECTION_ACTION */,
28145
+ configs: recordOf2(bar["configs"]) ?? {},
28146
+ childrens
28147
+ });
28148
+ for (const [buttonId, key2] of keys) {
28149
+ const button = recordOf2(out[buttonId]);
28150
+ const configs = recordOf2(button?.["configs"]) ?? {};
28151
+ if (!button || configs[BUTTON_KEY_CONFIG_KEY]) continue;
28152
+ out[buttonId] = {
28153
+ ...button,
28154
+ configs: { ...configs, [BUTTON_KEY_CONFIG_KEY]: key2 }
28155
+ };
28156
+ }
28157
+ }
28158
+ return out;
28159
+ };
28160
+
27501
28161
  // libs/codegen/src/model/control-group.ts
27502
28162
  var CONTROL_GROUP_NAME_MAX = 40;
27503
28163
  var NAME_PATTERN = /^[a-z0-9][a-z0-9-]*$/;
@@ -28974,7 +29634,7 @@ var caseEquals = (actual, expected) => {
28974
29634
  };
28975
29635
 
28976
29636
  // libs/codegen/src/lib/workspace-codec.ts
28977
- var WORKSPACE_SCHEMA_VERSION = 31;
29637
+ var WORKSPACE_SCHEMA_VERSION = 32;
28978
29638
  var MIGRATION_FLOOR = 18;
28979
29639
  var DEPLOY_TOKEN_METHOD_IDS = {
28980
29640
  "@UserStore.ensureDeployToken": "@AuthStore.ensureDeployToken",
@@ -29090,34 +29750,34 @@ var SCREEN_OUTPUT_SIBLINGS = [
29090
29750
  ["screenOutputScreenWrites", "outputScreenWrites"],
29091
29751
  ["screenOutputOutcomes", "outputOutcomes"]
29092
29752
  ];
29093
- var recordOf2 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
29753
+ var recordOf3 = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : void 0;
29094
29754
  var migrateScreenOutputMaps = (control) => {
29095
29755
  if (!Object.keys(control).some((key2) => key2.startsWith("screenOutput"))) {
29096
29756
  return control;
29097
29757
  }
29098
29758
  const next = { ...control };
29099
29759
  const merge = (field, key2, value) => {
29100
- next[field] = { ...recordOf2(next[field]) ?? {}, [key2]: value };
29760
+ next[field] = { ...recordOf3(next[field]) ?? {}, [key2]: value };
29101
29761
  };
29102
29762
  for (const [from, to] of SCREEN_OUTPUT_SIBLINGS) {
29103
- for (const [key2, value] of Object.entries(recordOf2(control[from]) ?? {})) {
29763
+ for (const [key2, value] of Object.entries(recordOf3(control[from]) ?? {})) {
29104
29764
  merge(to, key2, value);
29105
29765
  }
29106
29766
  delete next[from];
29107
29767
  }
29108
- const emits = recordOf2(control["screenOutputEmits"]) ?? {};
29768
+ const emits = recordOf3(control["screenOutputEmits"]) ?? {};
29109
29769
  for (const [key2, rows] of Object.entries(emits)) {
29110
29770
  merge("outputEmits", key2, rows);
29111
29771
  }
29112
29772
  delete next["screenOutputEmits"];
29113
- const bindings = recordOf2(control["screenOutputs"]) ?? {};
29773
+ const bindings = recordOf3(control["screenOutputs"]) ?? {};
29114
29774
  for (const [key2, raw] of Object.entries(bindings)) {
29115
29775
  const binding = raw;
29116
29776
  if (binding?.kind === "method") {
29117
29777
  merge("outputs", key2, binding.methodId);
29118
29778
  if (binding.args?.length) merge("outputArgs", key2, binding.args);
29119
29779
  } else if (binding?.kind === "output") {
29120
- const drawn = recordOf2(next["outputEmits"])?.[key2];
29780
+ const drawn = recordOf3(next["outputEmits"])?.[key2];
29121
29781
  merge("outputEmits", key2, [
29122
29782
  ...Array.isArray(drawn) ? drawn : [],
29123
29783
  { id: `reemit-${key2}`, outputId: binding.outputId, value: { kind: "event" } }
@@ -29224,6 +29884,10 @@ var screenOnly = (step) => ({
29224
29884
  step
29225
29885
  });
29226
29886
  var MIGRATIONS = {
29887
+ // 31 → 32: every folded Button keeps the name its bar rendered it under as
29888
+ // its ButtonKey, in a Screen's ControlMap and in every ControlGroup
29889
+ // (m-one-ui ADR 0213).
29890
+ 31: everyKind((blob) => mapBlobControlMaps(blob, backfillButtonKeys)),
29227
29891
  // 30 → 31: a PriceLadder becomes a Scale — its marks ScaleMarks, its chips
29228
29892
  // and picked indicators ScaleRelations — in a Screen's ControlMap and in
29229
29893
  // every ControlGroup (libs/one GLOSSARY.md Scale).
@@ -29506,9 +30170,7 @@ function sanitizeShapes(shapes, reachable = {}, owner = "feature") {
29506
30170
  const raw = value.keys;
29507
30171
  if (!Array.isArray(raw)) continue;
29508
30172
  const takenKeys = /* @__PURE__ */ new Set();
29509
- named[id].keys = raw.filter((key2) => !!key2 && typeof key2 === "object").filter(
29510
- (key2) => typeof key2.name === "string" && isValidPropertyName(key2.name)
29511
- ).filter(
30173
+ named[id].keys = raw.filter((key2) => !!key2 && typeof key2 === "object").filter((key2) => typeof key2.name === "string" && key2.name.trim() !== "").filter(
29512
30174
  (key2) => !takenKeys.has(key2.name) && takenKeys.add(key2.name) !== null
29513
30175
  ).map((key2) => {
29514
30176
  const dataType = sanitizeDataType(key2.dataType, {
@@ -30600,6 +31262,11 @@ function sanitizeFormKeySource(value, scope) {
30600
31262
  const source = value;
30601
31263
  const member = source.member;
30602
31264
  const walk = Array.isArray(member) && member.every((id) => typeof id === "string") ? member : void 0;
31265
+ const transform = sanitizeTransform(
31266
+ source.transform,
31267
+ scope.functions
31268
+ );
31269
+ const fit = transform ? { transform } : {};
30603
31270
  if (source.source === "fixed") {
30604
31271
  return typeof source.value === "string" && source.value.trim() ? { source: "fixed", value: source.value } : EMPTY_KEY;
30605
31272
  }
@@ -30607,24 +31274,26 @@ function sanitizeFormKeySource(value, scope) {
30607
31274
  return scope.inputs[source.inputId] ? {
30608
31275
  source: "input",
30609
31276
  inputId: source.inputId,
30610
- ...walk ? { member: walk } : {}
31277
+ ...walk ? { member: walk } : {},
31278
+ ...fit
30611
31279
  } : EMPTY_KEY;
30612
31280
  }
30613
31281
  if (source.source === "computed") {
30614
31282
  return scope.computedIds.has(source.computedId) ? {
30615
31283
  source: "computed",
30616
31284
  computedId: source.computedId,
30617
- ...walk ? { member: walk } : {}
31285
+ ...walk ? { member: walk } : {},
31286
+ ...fit
30618
31287
  } : EMPTY_KEY;
30619
31288
  }
30620
31289
  if (source.source === "constant") {
30621
- return scope.constants[source.constantId] ? { source: "constant", constantId: source.constantId } : EMPTY_KEY;
31290
+ return scope.constants[source.constantId] ? { source: "constant", constantId: source.constantId, ...fit } : EMPTY_KEY;
30622
31291
  }
30623
31292
  if (source.source === "path") {
30624
31293
  if (!scope.hasStore) return EMPTY_KEY;
30625
31294
  if (!Array.isArray(source.path) || !source.path.length) return EMPTY_KEY;
30626
31295
  if (!source.path.every((id) => typeof id === "string")) return EMPTY_KEY;
30627
- return scope.properties[source.path[0]] ? { source: "path", path: source.path } : EMPTY_KEY;
31296
+ return scope.properties[source.path[0]] ? { source: "path", path: source.path, ...fit } : EMPTY_KEY;
30628
31297
  }
30629
31298
  return EMPTY_KEY;
30630
31299
  }
@@ -30749,7 +31418,10 @@ function sanitizeScreens(screens, features, appFunctions, sharedShapes = {}, enu
30749
31418
  if (Object.keys(variants).length) meta.variants = variants;
30750
31419
  const outputs = sanitizeScreenOutputs(screen.outputs, kind);
30751
31420
  if (Object.keys(outputs).length) meta.outputs = outputs;
30752
- const autoCalls = sanitizeAutoCalls(screen.autoCalls, kind);
31421
+ const autoCalls = splitAutoCallEmits(
31422
+ sanitizeAutoCalls(screen.autoCalls, kind),
31423
+ inputs
31424
+ );
30753
31425
  if (autoCalls.length) meta.autoCalls = autoCalls;
30754
31426
  if (screen.exposed === true && kind !== "page") meta.exposed = true;
30755
31427
  const taken = /* @__PURE__ */ new Set([
@@ -30809,7 +31481,8 @@ function sanitizeScreens(screens, features, appFunctions, sharedShapes = {}, enu
30809
31481
  constants,
30810
31482
  computedIds: new Set(Object.keys(computeds)),
30811
31483
  properties: feature?.properties ?? {},
30812
- hasStore: hasStore(kind)
31484
+ hasStore: hasStore(kind),
31485
+ functions: feature ? { ...appFunctions, ...feature.functions } : appFunctions
30813
31486
  });
30814
31487
  if (Object.keys(formModels).length) meta.formModels = formModels;
30815
31488
  const screenMethods = sanitizeScreenMethods(screen.methods, taken);
@@ -35574,6 +36247,10 @@ var HISTORY_LABELS = [
35574
36247
  // Screen's slot riding it beside the target's (GLOSSARY.md ScreenLink).
35575
36248
  "paste-screen-link",
35576
36249
  "paste-control",
36250
+ // A block row's Cut, so `undo` knows to empty the OutputBlockClipboard the
36251
+ // way it empties the Control clipboard after `cut-control`; and its Paste.
36252
+ "cut-output-block",
36253
+ "paste-output-block",
35577
36254
  "edit-control",
35578
36255
  "edit-binding",
35579
36256
  "edit-variant",
@@ -35629,6 +36306,7 @@ var HISTORY_SELECTION_KEYS = [
35629
36306
  // Annotate the CommonJS export names for ESM import in node:
35630
36307
  0 && (module.exports = {
35631
36308
  ACTION_NAME_READER,
36309
+ ACTION_SELECTION_KEY,
35632
36310
  ALL_VARIANT,
35633
36311
  API_SEGMENT,
35634
36312
  APP_CONFIG_SOURCE,
@@ -35664,6 +36342,8 @@ var HISTORY_SELECTION_KEYS = [
35664
36342
  BUSY_VARIANT_ID,
35665
36343
  BUSY_VARIANT_NAME,
35666
36344
  BUTTON_CLICK_OUTPUT,
36345
+ BUTTON_KEY_CONFIG_KEY,
36346
+ BUTTON_KEY_PATTERN,
35667
36347
  CALL_ARG_SOURCES,
35668
36348
  CALL_ARG_TRANSFORM_LEAVES,
35669
36349
  CALL_CONDITION_KINDS,
@@ -35926,6 +36606,7 @@ var HISTORY_SELECTION_KEYS = [
35926
36606
  STYLE_DIRECTIVE_FORM,
35927
36607
  STYLE_DIRECTIVE_KEYS,
35928
36608
  STYLE_DIRECTIVE_NAMES,
36609
+ SUBMIT_TARGET_KEY,
35929
36610
  TEST_RUNNER_DEV_DEPS,
35930
36611
  TEXT_SOURCE,
35931
36612
  TEXT_SOURCES,
@@ -35962,6 +36643,7 @@ var HISTORY_SELECTION_KEYS = [
35962
36643
  actionEnumValues,
35963
36644
  actionEnums,
35964
36645
  actionRenderIds,
36646
+ actionSelectionKey,
35965
36647
  activeBackendUrl,
35966
36648
  activeHosts,
35967
36649
  addMenuGroup,
@@ -36054,6 +36736,7 @@ var HISTORY_SELECTION_KEYS = [
36054
36736
  callArgStorageRead,
36055
36737
  callArgTargetKey,
36056
36738
  callArgTargets,
36739
+ callArgTransformSignature,
36057
36740
  callArgTypeMismatch,
36058
36741
  callArgumentsExpression,
36059
36742
  callError,
@@ -36074,6 +36757,7 @@ var HISTORY_SELECTION_KEYS = [
36074
36757
  canFillFormKey,
36075
36758
  canHostDefaultChild,
36076
36759
  canHostNavChildren,
36760
+ canNameSubmitTarget,
36077
36761
  canOfferAddChild,
36078
36762
  canOfferReplaceParent,
36079
36763
  canOutputCall,
@@ -36224,6 +36908,7 @@ var HISTORY_SELECTION_KEYS = [
36224
36908
  defaultScreenEmitValue,
36225
36909
  defaultScreenWriteValue,
36226
36910
  defaultStateWriteValue,
36911
+ defaultSubmitTarget,
36227
36912
  denialDialogOf,
36228
36913
  denialTranslationKeys,
36229
36914
  derivePaths,
@@ -36247,6 +36932,7 @@ var HISTORY_SELECTION_KEYS = [
36247
36932
  drawnVariants,
36248
36933
  dropChainStep,
36249
36934
  dropFormEventMember,
36935
+ dropOutputBlock,
36250
36936
  dropStaleTrackKeys,
36251
36937
  duplicateMemberName,
36252
36938
  duplicateShapeName,
@@ -36347,6 +37033,7 @@ var HISTORY_SELECTION_KEYS = [
36347
37033
  foldedButtonNames,
36348
37034
  foldedButtons,
36349
37035
  foldedRouterLink,
37036
+ formEventFieldTypes,
36350
37037
  formEventMembers,
36351
37038
  formFieldIds,
36352
37039
  formFields,
@@ -36355,13 +37042,17 @@ var HISTORY_SELECTION_KEYS = [
36355
37042
  formInterfaceName,
36356
37043
  formModelFor,
36357
37044
  formModelKeyIssue,
37045
+ formModelKeyMismatch,
37046
+ formModelKeySignature,
36358
37047
  formModelKeyType,
36359
37048
  formModelKeyZero,
37049
+ formModelLandedType,
36360
37050
  formModelScreenOptions,
36361
37051
  formModelShapeKeys,
36362
37052
  formModelSourceReaders,
36363
37053
  formModelSourceType,
36364
37054
  formModelStateOptions,
37055
+ formModelTransforms,
36365
37056
  formRefName,
36366
37057
  formRefNames,
36367
37058
  formResetDepths,
@@ -36451,12 +37142,14 @@ var HISTORY_SELECTION_KEYS = [
36451
37142
  hasRouterOutlet,
36452
37143
  hasScreenVariableActionEnumConflict,
36453
37144
  hasStore,
37145
+ hasSubmitTargetButton,
36454
37146
  hasTextSource,
36455
37147
  hasValueSource,
36456
37148
  hasVariableDrift,
36457
37149
  heldFieldIds,
36458
37150
  heldProperties,
36459
37151
  holdKey,
37152
+ holdOutputBlock,
36460
37153
  hostRoutesConst,
36461
37154
  iconControlEmitConfigs,
36462
37155
  iconControlGlyph,
@@ -36516,6 +37209,7 @@ var HISTORY_SELECTION_KEYS = [
36516
37209
  isFieldCheckEligible,
36517
37210
  isFieldOptionSelected,
36518
37211
  isFolderPickSupported,
37212
+ isFormModelReadSource,
36519
37213
  isFormatPipeName,
36520
37214
  isFunctionCheckBound,
36521
37215
  isFunctionInUse,
@@ -36562,6 +37256,7 @@ var HISTORY_SELECTION_KEYS = [
36562
37256
  isOutputCallBound,
36563
37257
  isOutputCallKey,
36564
37258
  isOutputConditional,
37259
+ isOutputSelfEmit,
36565
37260
  isOverlayDirectiveName,
36566
37261
  isOverlayType,
36567
37262
  isPassthroughComputed,
@@ -36599,6 +37294,7 @@ var HISTORY_SELECTION_KEYS = [
36599
37294
  isTaglessFamily,
36600
37295
  isTextSource,
36601
37296
  isTimerComplete,
37297
+ isToggleAction,
36602
37298
  isUnaryMenuActionOperator,
36603
37299
  isUnaryOperator,
36604
37300
  isUnaryOutputArmOperator,
@@ -36896,6 +37592,7 @@ var HISTORY_SELECTION_KEYS = [
36896
37592
  outputOpenStatement,
36897
37593
  outputOpenTargets,
36898
37594
  outputOpenValueKinds,
37595
+ outputSelfEmitCall,
36899
37596
  overlayWidgetRefs,
36900
37597
  overlayWidgetScreenIds,
36901
37598
  overlayWidgetsProviderBlock,
@@ -36941,6 +37638,7 @@ var HISTORY_SELECTION_KEYS = [
36941
37638
  persistableOptionSetRows,
36942
37639
  pickFolder,
36943
37640
  pickedNavTail,
37641
+ placeOutputBlock,
36944
37642
  planScreenEmit,
36945
37643
  pluginContractResync,
36946
37644
  pluginContracts,
@@ -36952,6 +37650,7 @@ var HISTORY_SELECTION_KEYS = [
36952
37650
  pluginPortOf,
36953
37651
  pluginSourceOf,
36954
37652
  presetHosts,
37653
+ projectionSlotOf,
36955
37654
  propertiesWithComputeds,
36956
37655
  propertyKey,
36957
37656
  pruneFormEventReads,
@@ -37209,6 +37908,7 @@ var HISTORY_SELECTION_KEYS = [
37209
37908
  signatureEnums,
37210
37909
  signatureFormIds,
37211
37910
  signatureNamesOptionRow,
37911
+ signaturePipeIndex,
37212
37912
  signatureShapeIds,
37213
37913
  signatureText,
37214
37914
  slug,
@@ -37216,6 +37916,7 @@ var HISTORY_SELECTION_KEYS = [
37216
37916
  slugifyMessage,
37217
37917
  sortRowEnumId,
37218
37918
  sourceCarriesTrackKey,
37919
+ splitAutoCallEmits,
37219
37920
  stableId,
37220
37921
  staleCases,
37221
37922
  staleMenuActionItems,
@@ -37264,9 +37965,15 @@ var HISTORY_SELECTION_KEYS = [
37264
37965
  subStoreSuffixError,
37265
37966
  subStoresOf,
37266
37967
  subStoresReachedByMain,
37968
+ submitTargetForms,
37969
+ submitTargetLink,
37970
+ submitTargetOf,
37267
37971
  successResponse,
37268
37972
  suggestFormModelName,
37269
37973
  suggestMethodName,
37974
+ suggestNavVariantName,
37975
+ suggestVariantName,
37976
+ suggestedButtonKeys,
37270
37977
  survivingNavId,
37271
37978
  swaggerUrlFromBackend,
37272
37979
  syncScreenVariable,
@@ -37312,6 +38019,7 @@ var HISTORY_SELECTION_KEYS = [
37312
38019
  typeLabel,
37313
38020
  typeSigil,
37314
38021
  typesMatch,
38022
+ typesMatchExactly,
37315
38023
  unaryCall,
37316
38024
  unboundParams,
37317
38025
  unfilledVariables,
@@ -37320,6 +38028,7 @@ var HISTORY_SELECTION_KEYS = [
37320
38028
  updateRuleNode,
37321
38029
  usesAuthProperty,
37322
38030
  usesStorage,
38031
+ validateButtonKey,
37323
38032
  validateCallArgs,
37324
38033
  validateFeatureName,
37325
38034
  validateFormName,
@@ -37386,6 +38095,7 @@ var HISTORY_SELECTION_KEYS = [
37386
38095
  withEventTransform,
37387
38096
  withFormShapes,
37388
38097
  withListRowShape,
38098
+ withOutputSelfEmit,
37389
38099
  withPropertyEnums,
37390
38100
  withScreenEnums,
37391
38101
  withScreenMethodCallSites,