@20baht/angular 0.1.0 → 0.1.1

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.
@@ -2247,7 +2247,7 @@ export declare class BahtWorkflowDirective {
2247
2247
  set busy(v: BahtWorkflow['busy']);
2248
2248
  /** Feature-flag values (spec 01 §12): flag-off steps/fields/rules vanish. */
2249
2249
  set flags(v: BahtWorkflow['flags']);
2250
- /** Debounce (ms) for the approval comment, the one typed field the workflow renders itself; unset = the field default (`BahtFieldBase.defaultDebounce`), 0 = every keystroke. A decision, leaving the box and `getData()` flush what is pending. */
2250
+ /** Debounce (ms) for the approval comment, the one typed field the workflow renders itself; unset = the field default (`BahtFieldBase.defaultDebounce`), 0 = every keystroke. A decision, leaving the box, `back()`, `gotoStart()`, `getData()` and `getState()` flush what is pending; `restore()` and a new `value` drop it. */
2251
2251
  set debounce(v: BahtWorkflow['debounce']);
2252
2252
  /** Render a <baht-steps> progress indicator above the current form. */
2253
2253
  set showSteps(v: BahtWorkflow['showSteps']);
@@ -2271,11 +2271,11 @@ export declare class BahtWorkflowDirective {
2271
2271
  order: number;
2272
2272
  direction: "forward" | "back";
2273
2273
  }>;
2274
- /** Next resolved to no visible step. */
2274
+ /** Next resolved to no visible step, or the last step would submit data whose rules never settled. */
2275
2275
  readonly bahtNavBlocked: import("@angular/core").OutputEmitterRef<{
2276
2276
  form_name: string | null;
2277
2277
  target: string;
2278
- reason: "self-transition" | "target-hidden";
2278
+ reason: "self-transition" | "target-hidden" | "rule-error";
2279
2279
  data: NestedData;
2280
2280
  }>;
2281
2281
  /** The last step was submitted. */
@@ -2303,7 +2303,7 @@ export declare class BahtWorkflowDirective {
2303
2303
  comment: string;
2304
2304
  data: NestedData;
2305
2305
  }>;
2306
- /** One step of the run, after its own events: the message, the state before and after, the events. For a log, a replay (`replayWorkflow`) or undo (`restore(snapshotOf(before))`). */
2306
+ /** One step of the run, after its own events: the message, the state before and after, the events. For a log, a replay (`replayWorkflow`) or undo (`restore(snapshotOf(before))`). The states hold every value entered, `password` fields included: redact before a log leaves the page. */
2307
2307
  readonly bahtTransition: import("@angular/core").OutputEmitterRef<WorkflowTransition>;
2308
2308
  /** The rules' errors changed (a rule aimed at nothing, rules that never settle); empty once they are gone. */
2309
2309
  readonly bahtRuleError: import("@angular/core").OutputEmitterRef<{
package/dist/elements.js CHANGED
@@ -4901,7 +4901,7 @@ export class BahtWorkflowDirective {
4901
4901
  set flags(v) {
4902
4902
  assign(this.element, 'flags', v);
4903
4903
  }
4904
- /** Debounce (ms) for the approval comment, the one typed field the workflow renders itself; unset = the field default (`BahtFieldBase.defaultDebounce`), 0 = every keystroke. A decision, leaving the box and `getData()` flush what is pending. */
4904
+ /** Debounce (ms) for the approval comment, the one typed field the workflow renders itself; unset = the field default (`BahtFieldBase.defaultDebounce`), 0 = every keystroke. A decision, leaving the box, `back()`, `gotoStart()`, `getData()` and `getState()` flush what is pending; `restore()` and a new `value` drop it. */
4905
4905
  set debounce(v) {
4906
4906
  assign(this.element, 'debounce', v);
4907
4907
  }
@@ -4922,7 +4922,7 @@ export class BahtWorkflowDirective {
4922
4922
  this.bahtNext = output();
4923
4923
  /** The visible step changed. */
4924
4924
  this.bahtStepChange = output();
4925
- /** Next resolved to no visible step. */
4925
+ /** Next resolved to no visible step, or the last step would submit data whose rules never settled. */
4926
4926
  this.bahtNavBlocked = output();
4927
4927
  /** The last step was submitted. */
4928
4928
  this.bahtSubmit = output();
@@ -4932,7 +4932,7 @@ export class BahtWorkflowDirective {
4932
4932
  this.bahtApprove = output();
4933
4933
  /** An approval step was rejected. */
4934
4934
  this.bahtReject = output();
4935
- /** One step of the run, after its own events: the message, the state before and after, the events. For a log, a replay (`replayWorkflow`) or undo (`restore(snapshotOf(before))`). */
4935
+ /** One step of the run, after its own events: the message, the state before and after, the events. For a log, a replay (`replayWorkflow`) or undo (`restore(snapshotOf(before))`). The states hold every value entered, `password` fields included: redact before a log leaves the page. */
4936
4936
  this.bahtTransition = output();
4937
4937
  /** The rules' errors changed (a rule aimed at nothing, rules that never settle); empty once they are gone. */
4938
4938
  this.bahtRuleError = output();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20baht/angular",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Angular adapter for @20baht/ui: typed directives on the real <baht-*> elements, with typed outputs, [(value)] two-way binding and the Angular binding gotchas handled. Generated from the elements' manifest.",
6
6
  "license": "MIT",