@smartsoft001/angular 2.128.0 → 2.130.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.
package/package.json
CHANGED
|
@@ -2272,15 +2272,28 @@ declare class DateEditPresetComponent extends DateEditBaseComponent {
|
|
|
2272
2272
|
}
|
|
2273
2273
|
|
|
2274
2274
|
declare class DateEditComponent implements ControlValueAccessor {
|
|
2275
|
-
private cd;
|
|
2276
2275
|
variant: _angular_core.InputSignal<DateEditVariantName>;
|
|
2277
2276
|
cssClass: _angular_core.InputSignal<string>;
|
|
2277
|
+
/** Two-way value binding, e.g. `[(ngModel)]="date"` without FormsModule. */
|
|
2278
2278
|
ngModel: _angular_core.ModelSignal<string>;
|
|
2279
2279
|
validChange: _angular_core.OutputEmitterRef<boolean>;
|
|
2280
|
+
/**
|
|
2281
|
+
* What the template actually renders — deliberately separate from `ngModel`.
|
|
2282
|
+
*
|
|
2283
|
+
* A consumer that imports FormsModule makes the NgModel directive match
|
|
2284
|
+
* `<smart-date-edit>` alongside this component's own `ngModel` model() input.
|
|
2285
|
+
* NgModel seeds its FormControl with `null` and pushes that through
|
|
2286
|
+
* `writeValue()` before writing the real value on the microtask queue. If
|
|
2287
|
+
* `writeValue()` wrote to `ngModel`, that model() output would fire and shove
|
|
2288
|
+
* the `null` straight back into the consumer's own property mid-check —
|
|
2289
|
+
* NG0100, and the supplied date lost. So form writes land here, and only a
|
|
2290
|
+
* genuine user edit is allowed to emit through `ngModel`.
|
|
2291
|
+
*/
|
|
2292
|
+
protected value: _angular_core.WritableSignal<string>;
|
|
2280
2293
|
private propagateChange;
|
|
2281
2294
|
private propagateTouched;
|
|
2282
|
-
onInnerChange(
|
|
2283
|
-
writeValue(
|
|
2295
|
+
onInnerChange(newValue: string): void;
|
|
2296
|
+
writeValue(newValue: string): void;
|
|
2284
2297
|
registerOnChange(fn: (val: unknown) => void): void;
|
|
2285
2298
|
registerOnTouched(fn: () => void): void;
|
|
2286
2299
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateEditComponent, never>;
|