@mosaicoo/form-angular 0.5.0 → 0.7.0

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.
@@ -72,11 +72,21 @@ declare class FormNodeComponent {
72
72
  readonly childScope: _angular_core.Signal<string>;
73
73
  rowScope(index: number): string;
74
74
  visible(): boolean;
75
- containerLayout(): 'columns' | 'tabs' | 'array' | 'block';
75
+ containerLayout(): 'columns' | 'tabs' | 'accordion' | 'array' | 'block';
76
+ /** Open accordion sections; the first one starts expanded. */
77
+ private readonly openSections;
78
+ isSectionOpen(index: number): boolean;
79
+ toggleSection(index: number): void;
76
80
  columns(): FieldNode[][];
77
81
  columnsTemplate(): string;
78
82
  value(): unknown;
79
83
  stringValue(): string;
84
+ /** Tracks focus so numeric formatting steps aside during typing. */
85
+ readonly focused: _angular_core.WritableSignal<boolean>;
86
+ onFocus(): void;
87
+ onBlur(): void;
88
+ /** Numeric inputs stay `text` when formatted (a number input rejects `R$`). */
89
+ numericFormatted(): boolean;
80
90
  mapValue(): Record<string, unknown>;
81
91
  rows(): unknown[];
82
92
  required(): boolean;
@@ -87,11 +97,21 @@ declare class FormNodeComponent {
87
97
  setValue(value: unknown): void;
88
98
  setString(event: Event): void;
89
99
  setSelect(event: Event): void;
100
+ /** Selection state for single and multi-value choice fields. */
101
+ isSelected(optionValue: string | number | boolean): boolean;
90
102
  setChecked(event: Event): void;
91
103
  toggleMap(option: string, event: Event): void;
104
+ /** Client-side rejection message (size/type), cleared on the next pick. */
105
+ readonly fileRejection: _angular_core.WritableSignal<string | null>;
106
+ acceptAttr(): string | null;
92
107
  setFiles(event: Event): void;
93
- /** Names shown under a `file` control (refs or plain names). */
94
- fileNames(): string[];
108
+ /** Normalized view of the stored value: name + optional preview url. */
109
+ fileEntries(): Array<{
110
+ name: string;
111
+ url: string | null;
112
+ }>;
113
+ showThumbnails(): boolean;
114
+ removeFile(index: number): void;
95
115
  prefix(): string | null;
96
116
  suffix(): string | null;
97
117
  tagValues(): string[];
@@ -103,6 +123,15 @@ declare class FormNodeComponent {
103
123
  private refTimer;
104
124
  /** Label of the chosen option (falls back to the raw value). */
105
125
  readonly refLabel: _angular_core.WritableSignal<string | null>;
126
+ /** Last query typed, replayed when `refreshOn` invalidates the results. */
127
+ private refQuery;
128
+ private refRefreshKey;
129
+ /**
130
+ * `refreshOn` for autocomplete: when the observed data changes, cached
131
+ * results are dropped so the next search runs against the new context
132
+ * (e.g. properties filtered by the selected client).
133
+ */
134
+ private watchReferenceRefresh;
106
135
  refDisplay(): string;
107
136
  refSearch(event: Event): void;
108
137
  private refResolve;
@@ -182,7 +211,11 @@ declare class FormRendererComponent {
182
211
  readonly errorSummary: _angular_core.WritableSignal<FieldError[]>;
183
212
  constructor();
184
213
  previousStep(): void;
185
- nextStep(): void;
214
+ /**
215
+ * Advances only when the step is valid INCLUDING async rules, so a
216
+ * server-side check can still block the transition.
217
+ */
218
+ nextStep(): Promise<void>;
186
219
  onSubmit(event: Event): Promise<void>;
187
220
  /** Finds the wizard step that owns a (possibly row-indexed) data path. */
188
221
  private stepIndexForPath;