@ids-group-ltd/ids-design-system 0.6.0 → 0.6.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.
package/package.json
CHANGED
|
@@ -1216,8 +1216,9 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
1216
1216
|
protected readonly fieldPlaceholder: _angular_core.Signal<string>;
|
|
1217
1217
|
/** `size` attribute so the field hugs its mask width instead of stretching.
|
|
1218
1218
|
* +1 covers `size` under-counting the mask's wide glyphs (M/D/Y), which
|
|
1219
|
-
* otherwise clip the last chars of the longer range mask.
|
|
1220
|
-
* `
|
|
1219
|
+
* otherwise clip the last chars of the longer range mask. The field's
|
|
1220
|
+
* `font-family: var(--font-mono)` keeps every glyph equal width, so the
|
|
1221
|
+
* width never shifts as you type. */
|
|
1221
1222
|
protected readonly fieldSize: _angular_core.Signal<number>;
|
|
1222
1223
|
/** Per-slot overlay runs: digits at normal weight, unfilled positions
|
|
1223
1224
|
* (format letters or `_` padding) muted — see displayParts(). */
|
|
@@ -1250,20 +1251,31 @@ declare class DatePickerComponent extends DsControlValueAccessor<Date | RangeVal
|
|
|
1250
1251
|
protected close(): void;
|
|
1251
1252
|
ngOnDestroy(): void;
|
|
1252
1253
|
protected onFieldClick(): void;
|
|
1254
|
+
private mobileEdit;
|
|
1253
1255
|
protected onFieldInput(event: Event): void;
|
|
1254
|
-
/**
|
|
1255
|
-
*
|
|
1256
|
-
*
|
|
1257
|
-
* A non-collapsed selection is handled here too (never natively erased) —
|
|
1258
|
-
* only IME/paste fall through to the stream re-mask in onFieldInput/onFieldPaste. */
|
|
1256
|
+
/** Physical-keyboard editing (desktop): typed digits fill the caret's slot;
|
|
1257
|
+
* Backspace/Delete never shift digits across a separator. Delegates to the
|
|
1258
|
+
* shared segment editor. */
|
|
1259
1259
|
protected onFieldKeydown(event: KeyboardEvent): void;
|
|
1260
|
+
/** Mobile keyboards don't fire a reliable `keydown` (Gboard reports keyCode 229 /
|
|
1261
|
+
* "Unidentified"), so edits are routed here via `beforeinput`'s `inputType` instead.
|
|
1262
|
+
* Android Chrome can also ignore `preventDefault()` here, so the intended result is
|
|
1263
|
+
* stashed and re-asserted in `onFieldInput`; the microtask expires the stash once
|
|
1264
|
+
* preventDefault worked (no following `input` in the same task). */
|
|
1265
|
+
protected onFieldBeforeInput(event: InputEvent): void;
|
|
1266
|
+
/** Apply one segment edit (type a digit / Backspace / Delete) at the caret or
|
|
1267
|
+
* over the selection, then write the fixed-width value + caret back. A
|
|
1268
|
+
* selection is cleared through the model so `_` placeholders are never
|
|
1269
|
+
* natively erased — only digits are editable. Shared by keydown + beforeinput. */
|
|
1270
|
+
private runSegmentEdit;
|
|
1260
1271
|
/** Paste digits into the segment model at the caret slot — never a global
|
|
1261
1272
|
* flatten — so existing digits elsewhere in the field survive untouched. */
|
|
1262
1273
|
protected onFieldPaste(event: ClipboardEvent): void;
|
|
1263
1274
|
private countDigits;
|
|
1264
|
-
/** Rebuild `raw` as a digit stream (IME /
|
|
1265
|
-
*
|
|
1266
|
-
*
|
|
1275
|
+
/** Rebuild `raw` as a digit stream (IME / autofill / suggestion fallback —
|
|
1276
|
+
* any `input` event with no preceding handled `beforeinput`), split per slot
|
|
1277
|
+
* by its fixed width, then render fixed-width so it matches the overlay —
|
|
1278
|
+
* empty when no digits remain. */
|
|
1267
1279
|
private commitRaw;
|
|
1268
1280
|
/** Write masked text + caret into the DOM, then parse and validate it. */
|
|
1269
1281
|
private applyEditedText;
|