@esfaenza/flow-builder 20.3.40 → 20.3.41

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/index.d.ts CHANGED
@@ -253,6 +253,12 @@ interface FlowScreenField {
253
253
  defaultSelectedChoiceReference?: string;
254
254
  /** Nomi di `FlowChoice` o `FlowDynamicChoiceSet`, **nell'ordine di presentazione**. */
255
255
  choiceReferences?: string[];
256
+ /**
257
+ * §5.2 — con **una sola** opzione risolta il campo la sceglie da se'. Serve alle tendine che
258
+ * dipendono da un'altra tendina; dove il campo non presenta opzioni non ha effetto ed e'
259
+ * `SCREEN_FIELD_CONFIGURATION_INVALID` (avviso).
260
+ */
261
+ autoSelectSingleChoice?: boolean;
256
262
  scale?: number;
257
263
  maxLength?: number;
258
264
  /** 1..12 nella griglia della schermata: il frontend puo' ignorarla. */
@@ -6198,6 +6204,8 @@ declare class DynamicScreenInspectorComponent extends NodeInspectorBase {
6198
6204
  readonly hasOutputConflict: _angular_core.Signal<boolean>;
6199
6205
  /** §5.2 — la choice di default fuori dall'elenco e' un avviso, non un errore. */
6200
6206
  readonly defaultChoiceIsForeign: _angular_core.Signal<boolean>;
6207
+ /** §5.2 — spunta spenta per default: si scrive solo il `true`. */
6208
+ readonly selectedAutoSelectsSingleChoice: _angular_core.Signal<boolean>;
6201
6209
  /** §5.2 — `scale` su un campo non numerico e' `SCALE_NOT_APPLICABLE`. */
6202
6210
  readonly scaleApplies: _angular_core.Signal<boolean>;
6203
6211
  readonly requiresObjectType: _angular_core.Signal<boolean>;
@@ -6225,6 +6233,11 @@ declare class DynamicScreenInspectorComponent extends NodeInspectorBase {
6225
6233
  setRequired(value: boolean): void;
6226
6234
  /** `isEditable` ha default `true`: si scrive solo il `false`, che e' la scelta significativa. */
6227
6235
  setEditable(value: boolean): void;
6236
+ /**
6237
+ * §5.2 — la spunta e' spenta per default, quindi nel documento va **solo** il `true`: scriverla
6238
+ * a `false` sarebbe una scelta che nessuno ha fatto su un campo che il contratto omette.
6239
+ */
6240
+ setAutoSelectSingleChoice(value: boolean): void;
6228
6241
  addChoice(name: string | undefined): void;
6229
6242
  removeChoice(index: number): void;
6230
6243
  moveChoice(index: number, direction: -1 | 1): void;
@@ -6276,6 +6289,13 @@ declare class DynamicScreenInspectorComponent extends NodeInspectorBase {
6276
6289
  actionHasNoTrigger(action: FlowScreenAction): boolean;
6277
6290
  /** §5.2 — senza campo e senza `initBehavior` il trigger non scattera' mai: `SCREEN_TRIGGER_WITHOUT_CAUSE`. */
6278
6291
  triggerHasNoCause(trigger: FlowScreenTrigger): boolean;
6292
+ /**
6293
+ * §5.2 — `runOnLoad` **non serve** per il caso comune: un trigger il cui campo osservato porta un
6294
+ * `defaultValue` non vuoto scatta comunque all'arrivo sulla schermata, perche' un campo precompilato
6295
+ * dal flow conta come un campo che ha preso un valore. Dirlo qui evita di scriverlo per sicurezza e
6296
+ * poi chiedersi perche' l'action gira due volte.
6297
+ */
6298
+ triggerFiresOnLoadByDefault(trigger: FlowScreenTrigger): boolean;
6279
6299
  /**
6280
6300
  * §5.2 — l'unico valore ammesso e' `runOnLoad`. Il `runOnRevisit` della specifica Salesforce e'
6281
6301
  * `SCREEN_TRIGGER_INIT_BEHAVIOR_UNKNOWN`, e vale la pena dirlo qui: chi arriva da quella
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/flow-builder",
3
- "version": "20.3.40",
3
+ "version": "20.3.41",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^20.2.14",
6
6
  "@angular/common": "^20.3.28",