@ids-group-ltd/ids-design-system 1.0.0 → 1.0.2
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/CHANGELOG.md +108 -23
- package/agent/forms/ds-autocomplete.md +1 -1
- package/agent/forms/ds-button.md +3 -3
- package/agent/forms/ds-checkbox.md +1 -1
- package/agent/forms/ds-color-picker.md +1 -1
- package/agent/forms/ds-date-picker.md +1 -1
- package/agent/forms/ds-icon-button.md +1 -1
- package/agent/forms/ds-input.md +1 -1
- package/agent/forms/ds-multi-select.md +1 -1
- package/agent/forms/ds-otp-input.md +1 -1
- package/agent/forms/ds-radio-group.md +1 -1
- package/agent/forms/ds-radio.md +1 -1
- package/agent/forms/ds-search.md +1 -1
- package/agent/forms/ds-segmented.md +1 -1
- package/agent/forms/ds-select.md +1 -1
- package/agent/forms/ds-slider.md +1 -1
- package/agent/forms/ds-switch.md +1 -1
- package/agent/forms/ds-textarea.md +1 -1
- package/agent/forms/ds-time-picker.md +1 -1
- package/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
- package/components.md +22 -22
- package/design-system.md +24 -0
- package/eslint/deprecated-api.json +7 -210
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +22 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +4 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +27 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +8 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +4 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +4 -13
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +62 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +3 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +10 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +58 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +53 -43
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +2 -3
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.15.1.json +4 -2
- package/migrations/0.15.3.json +14 -4
- package/migrations/1.0.0.json +0 -333
- package/migrations/1.0.1.json +36 -0
- package/migrations/1.0.2.json +70 -0
- package/package.json +5 -9
- package/schematics/check-overrides/surface.json +4 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +11 -4
- package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +2 -1
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +6 -1
- package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +26 -2
- package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +0 -1
- package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +7 -0
- package/types/ids-group-ltd-ids-design-system-components.d.ts +25 -21
- package/types/ids-group-ltd-ids-design-system.d.ts +3 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs +0 -52
- package/fesm2022/ids-group-ltd-ids-design-system-components-submitted.mjs.map +0 -1
- package/types/ids-group-ltd-ids-design-system-components-submitted.d.ts +0 -27
|
@@ -262,6 +262,20 @@ function readOnHostResize(host, read, initial, equal) {
|
|
|
262
262
|
});
|
|
263
263
|
return value.asReadonly();
|
|
264
264
|
}
|
|
265
|
+
const fontsReady = signal(false, ...(ngDevMode ? [{ debugName: "fontsReady" }] : /* istanbul ignore next */ []));
|
|
266
|
+
let fontsWatched = false;
|
|
267
|
+
/** `true` once the page's web fonts have loaded, for an effect that measures rendered text: reading
|
|
268
|
+
* it re-runs the measure taken against the fallback face. The wait starts on the first call, so
|
|
269
|
+
* call it in the browser, after the text it measures has rendered.
|
|
270
|
+
*
|
|
271
|
+
* @internal */
|
|
272
|
+
function fontsLoaded() {
|
|
273
|
+
if (!fontsWatched) {
|
|
274
|
+
fontsWatched = true;
|
|
275
|
+
void document.fonts?.ready.then(() => fontsReady.set(true));
|
|
276
|
+
}
|
|
277
|
+
return fontsReady();
|
|
278
|
+
}
|
|
265
279
|
const widths = new WeakMap();
|
|
266
280
|
let observer$1 = null;
|
|
267
281
|
// One observer for every chart on the page: a resize is one callback carrying every entry.
|
|
@@ -1401,11 +1415,6 @@ const NO_ERRORS = [];
|
|
|
1401
1415
|
* warning state and does NOT make the control invalid.
|
|
1402
1416
|
*/
|
|
1403
1417
|
const DS_FIELD_WARNING_KIND = 'warning';
|
|
1404
|
-
/**
|
|
1405
|
-
* The submit flag `[dsSubmitted]` provides to the fields inside it: validation errors show only
|
|
1406
|
-
* while it reads `true`.
|
|
1407
|
-
*/
|
|
1408
|
-
const DS_SUBMITTED = new InjectionToken('DS_SUBMITTED');
|
|
1409
1418
|
/**
|
|
1410
1419
|
* `errors` input transform. Accepts a bare string, a single error, or the array signal forms
|
|
1411
1420
|
* assigns.
|
|
@@ -1426,7 +1435,7 @@ function trimmedText(value) {
|
|
|
1426
1435
|
const EMPTY_MESSAGE = { text: '', state: 'default' };
|
|
1427
1436
|
const NO_CONTROL = {
|
|
1428
1437
|
errors: NO_ERRORS,
|
|
1429
|
-
|
|
1438
|
+
touched: false,
|
|
1430
1439
|
pending: false,
|
|
1431
1440
|
dirty: false,
|
|
1432
1441
|
};
|
|
@@ -1436,17 +1445,15 @@ const NO_CONTROL = {
|
|
|
1436
1445
|
* Precedence, highest first:
|
|
1437
1446
|
*
|
|
1438
1447
|
* 1. `error` - an explicit string. Shown immediately: the consumer decided.
|
|
1439
|
-
* 2. `errors` - validation errors. Shown once the
|
|
1440
|
-
* `
|
|
1448
|
+
* 2. `errors` - validation errors. Shown once the user has interacted, so a
|
|
1449
|
+
* `required` error does not greet an untouched form.
|
|
1441
1450
|
* 3. `warning` - advisory, not blocking.
|
|
1442
1451
|
* 4. `errors` whose kind is `DS_FIELD_WARNING_KIND` - the same, raised by the form model.
|
|
1443
1452
|
* 5. `success` - confirmation.
|
|
1444
1453
|
* 6. `hint` - helper text.
|
|
1445
1454
|
*
|
|
1446
|
-
* Signal forms binds `errors` and `
|
|
1447
|
-
* template-driven forms expose the same through `NgControl`, read here.
|
|
1448
|
-
* behind it waits for the submit like them; `invalid` alone was set by the consumer and paints
|
|
1449
|
-
* immediately.
|
|
1455
|
+
* Signal forms binds `errors` and `touched` by input name (`FormUiControl`); reactive and
|
|
1456
|
+
* template-driven forms expose the same through `NgControl`, read here.
|
|
1450
1457
|
*
|
|
1451
1458
|
* Every rung carries its OWN text; `hint` is never recoloured into another state. `invalid` has
|
|
1452
1459
|
* no text: it paints the control and sets `aria-invalid`.
|
|
@@ -1456,27 +1463,26 @@ const NO_CONTROL = {
|
|
|
1456
1463
|
*/
|
|
1457
1464
|
function resolveFieldMessage(sources) {
|
|
1458
1465
|
const config = inject(DS_CONFIG);
|
|
1459
|
-
const submittedFlag = inject(DS_SUBMITTED, { optional: true });
|
|
1460
1466
|
const controlState = watchNgControl();
|
|
1461
1467
|
const errors = computed(() => {
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1464
|
-
const own = sources.ownErrors?.() ?? NO_ERRORS;
|
|
1465
|
-
return own.length ? [...own, ...fromForm] : fromForm;
|
|
1468
|
+
const own = sources.errors();
|
|
1469
|
+
return own.length ? own : controlState().errors;
|
|
1466
1470
|
}, ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
1467
|
-
const
|
|
1471
|
+
const interacted = computed(() => (sources.touched?.() ?? false) ||
|
|
1472
|
+
(sources.touchedSelf?.() ?? false) ||
|
|
1473
|
+
controlState().touched, ...(ngDevMode ? [{ debugName: "interacted" }] : /* istanbul ignore next */ []));
|
|
1468
1474
|
const blocking = computed(() => errors().filter((error) => error.kind !== DS_FIELD_WARNING_KIND), ...(ngDevMode ? [{ debugName: "blocking" }] : /* istanbul ignore next */ []));
|
|
1469
1475
|
const advisory = computed(() => errors().filter((error) => error.kind === DS_FIELD_WARNING_KIND), ...(ngDevMode ? [{ debugName: "advisory" }] : /* istanbul ignore next */ []));
|
|
1470
1476
|
const errorText = computed(() => {
|
|
1471
1477
|
const current = blocking();
|
|
1472
|
-
if (!current.length || !
|
|
1478
|
+
if (!current.length || !interacted()) {
|
|
1473
1479
|
return '';
|
|
1474
1480
|
}
|
|
1475
1481
|
return textFor(current, config.field?.errorMessages);
|
|
1476
1482
|
}, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
1477
1483
|
const advisoryText = computed(() => {
|
|
1478
1484
|
const current = advisory();
|
|
1479
|
-
if (!current.length || !
|
|
1485
|
+
if (!current.length || !interacted()) {
|
|
1480
1486
|
return '';
|
|
1481
1487
|
}
|
|
1482
1488
|
return textFor(current, config.field?.errorMessages);
|
|
@@ -1485,8 +1491,9 @@ function resolveFieldMessage(sources) {
|
|
|
1485
1491
|
// Disabled wins: `aria-invalid` on a NATIVELY disabled input still reports invalid in
|
|
1486
1492
|
// Chrome's accessibility tree.
|
|
1487
1493
|
const invalid = computed(() => !(sources.disabled?.() ?? false) &&
|
|
1488
|
-
(sources.
|
|
1489
|
-
(
|
|
1494
|
+
(sources.invalid() ||
|
|
1495
|
+
sources.error().length > 0 ||
|
|
1496
|
+
(blocking().length > 0 && interacted())), ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
1490
1497
|
// Relies on message inputs trimming via `trimmedText`; one declared without it breaks this quietly.
|
|
1491
1498
|
const message = computed(() => {
|
|
1492
1499
|
const explicit = sources.error();
|
|
@@ -1530,7 +1537,7 @@ function resolveFieldMessage(sources) {
|
|
|
1530
1537
|
* `NgControl` cannot be injected in the constructor (`NG_VALUE_ACCESSOR` points at the field
|
|
1531
1538
|
* itself: a DI cycle), so it is resolved after first render.
|
|
1532
1539
|
*
|
|
1533
|
-
* `events`, not `statusChanges`:
|
|
1540
|
+
* `events`, not `statusChanges`: touching a control emits `TouchedChangeEvent`, not a status change.
|
|
1534
1541
|
*/
|
|
1535
1542
|
function watchNgControl() {
|
|
1536
1543
|
const injector = inject(Injector);
|
|
@@ -1548,24 +1555,17 @@ function watchNgControl() {
|
|
|
1548
1555
|
const submitted = () => parentFormGroup?.submitted || parentForm?.submitted || false;
|
|
1549
1556
|
const sync = () => state.set({
|
|
1550
1557
|
errors: fromValidationErrors(control.errors),
|
|
1551
|
-
|
|
1558
|
+
touched: control.touched || submitted(),
|
|
1552
1559
|
pending: control.pending,
|
|
1553
1560
|
dirty: control.dirty,
|
|
1554
1561
|
});
|
|
1555
|
-
// `resetForm()` resets the controls (their events fire here) BEFORE it clears `submitted`.
|
|
1556
|
-
const syncNowAndAfterReset = () => {
|
|
1557
|
-
sync();
|
|
1558
|
-
queueMicrotask(sync);
|
|
1559
|
-
};
|
|
1560
1562
|
// Signal forms bridges an NgControl whose `control` has no `events` stream. Staying at
|
|
1561
|
-
// NO_CONTROL is deliberate: the component's own inputs carry errors and
|
|
1563
|
+
// NO_CONTROL is deliberate: the component's own inputs carry errors and touched there.
|
|
1562
1564
|
if (typeof control.events?.pipe !== 'function') {
|
|
1563
1565
|
return;
|
|
1564
1566
|
}
|
|
1565
1567
|
sync();
|
|
1566
|
-
control.events
|
|
1567
|
-
.pipe(takeUntilDestroyed(destroyRef))
|
|
1568
|
-
.subscribe(syncNowAndAfterReset);
|
|
1568
|
+
control.events.pipe(takeUntilDestroyed(destroyRef)).subscribe(sync);
|
|
1569
1569
|
const parentSubmit = parentFormGroup?.ngSubmit ?? parentForm?.ngSubmit;
|
|
1570
1570
|
parentSubmit?.pipe(takeUntilDestroyed(destroyRef)).subscribe(sync);
|
|
1571
1571
|
});
|
|
@@ -1639,22 +1639,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
|
|
|
1639
1639
|
* @internal
|
|
1640
1640
|
*/
|
|
1641
1641
|
class DsFieldBase extends DsMessageBase {
|
|
1642
|
-
/** Validation errors, shown once the
|
|
1643
|
-
* reactive
|
|
1644
|
-
* forms are read through `NgControl`. */
|
|
1642
|
+
/** Validation errors, shown once the user has interacted. Bound by signal forms;
|
|
1643
|
+
* reactive and template-driven forms are read through `NgControl`. */
|
|
1645
1644
|
errors = input([], { ...(ngDevMode ? { debugName: "errors" } : /* istanbul ignore next */ {}), transform: normalizeFieldErrors });
|
|
1646
|
-
/** Paints the error state and sets `aria-invalid` WITHOUT a message; use `error` to show text.
|
|
1647
|
-
* Signal forms binds it alongside `errors`, and then it waits for the submit like them. */
|
|
1645
|
+
/** Paints the error state and sets `aria-invalid` WITHOUT a message; use `error` to show text. */
|
|
1648
1646
|
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1647
|
+
/** Whether the user has interacted with the field. Bound by signal forms; gates `errors`. */
|
|
1648
|
+
touched = input(false, { ...(ngDevMode ? { debugName: "touched" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1649
1649
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsFieldBase, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1650
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsFieldBase, isStandalone: true, inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1650
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.22", type: DsFieldBase, isStandalone: true, inputs: { errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
1651
1651
|
}
|
|
1652
1652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: DsFieldBase, decorators: [{
|
|
1653
1653
|
type: Directive
|
|
1654
|
-
}], propDecorators: { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
|
|
1654
|
+
}], propDecorators: { errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }] } });
|
|
1655
1655
|
/**
|
|
1656
1656
|
* The form-state inputs of a DS value control: what signal forms binds by name beyond `errors`
|
|
1657
|
-
* and `
|
|
1657
|
+
* and `touched`. Reactive and template-driven forms are read through `NgControl` instead.
|
|
1658
1658
|
* @internal
|
|
1659
1659
|
*/
|
|
1660
1660
|
class DsFormControlBase extends DsFieldBase {
|
|
@@ -1691,6 +1691,7 @@ const TRIGGER_ELEMENTS = `button${NOT_ROVED}, [tabindex="0"]${NOT_ROVED}`;
|
|
|
1691
1691
|
*/
|
|
1692
1692
|
function valueControlBridge(model) {
|
|
1693
1693
|
const formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
1694
|
+
const touchedSelf = signal(false, ...(ngDevMode ? [{ debugName: "touchedSelf" }] : /* istanbul ignore next */ []));
|
|
1694
1695
|
let onChange = () => { };
|
|
1695
1696
|
let onTouched = () => { };
|
|
1696
1697
|
// Stops the effect echoing a form-driven write back as a user change.
|
|
@@ -1711,7 +1712,11 @@ function valueControlBridge(model) {
|
|
|
1711
1712
|
});
|
|
1712
1713
|
return {
|
|
1713
1714
|
formDisabled,
|
|
1714
|
-
|
|
1715
|
+
touchedSelf,
|
|
1716
|
+
markTouched: () => {
|
|
1717
|
+
touchedSelf.set(true);
|
|
1718
|
+
onTouched();
|
|
1719
|
+
},
|
|
1715
1720
|
writeValue: (next) => {
|
|
1716
1721
|
hasSynced = true;
|
|
1717
1722
|
synced = next;
|
|
@@ -1768,6 +1773,9 @@ class DsControlValueAccessor extends DsFormControlBase {
|
|
|
1768
1773
|
}
|
|
1769
1774
|
bridge = valueControlBridge(() => this.value);
|
|
1770
1775
|
formDisabled = this.bridge.formDisabled;
|
|
1776
|
+
// Separate from the control's `touched`, which only exists once `NgControl`
|
|
1777
|
+
// resolves: too late to gate the first blur.
|
|
1778
|
+
touchedSelf = this.bridge.touchedSelf;
|
|
1771
1779
|
markTouched() {
|
|
1772
1780
|
this.bridge.markTouched();
|
|
1773
1781
|
}
|
|
@@ -1811,6 +1819,7 @@ class DsBooleanControlValueAccessor extends DsFormControlBase {
|
|
|
1811
1819
|
blurOwnControl(this.hostElement.nativeElement);
|
|
1812
1820
|
}
|
|
1813
1821
|
formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
1822
|
+
touchedSelf = signal(false, ...(ngDevMode ? [{ debugName: "touchedSelf" }] : /* istanbul ignore next */ []));
|
|
1814
1823
|
onChange = () => { };
|
|
1815
1824
|
onTouched = () => { };
|
|
1816
1825
|
synced;
|
|
@@ -1833,6 +1842,7 @@ class DsBooleanControlValueAccessor extends DsFormControlBase {
|
|
|
1833
1842
|
});
|
|
1834
1843
|
}
|
|
1835
1844
|
markTouched() {
|
|
1845
|
+
this.touchedSelf.set(true);
|
|
1836
1846
|
this.onTouched();
|
|
1837
1847
|
}
|
|
1838
1848
|
writeValue(value) {
|
|
@@ -2692,5 +2702,5 @@ function createTypeAhead() {
|
|
|
2692
2702
|
* Generated bundle index. Do not edit.
|
|
2693
2703
|
*/
|
|
2694
2704
|
|
|
2695
|
-
export { CHART_GLIDE_HEAD_START_MS, CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, CHART_SKELETON_COUNT, CHART_TOOLTIP_LINGER_MS, DS_FIELD_WARNING_KIND,
|
|
2705
|
+
export { CHART_GLIDE_HEAD_START_MS, CHART_HEAT_COLORS, CHART_RAMP_COLORS, CHART_RENDER_GATE_PASSED, CHART_SERIES_COLORS, CHART_SKELETON_COUNT, CHART_TOOLTIP_LINGER_MS, DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChartBase, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsFormControlBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, afterTwoFrames, announceOptionCount, areaPath, bandPath, bandScale, chartColors, chartDelay, chartDwell, chartHoverDelayMs, chartOf, chartRenderGate, chartTiming, chartValueFormat, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, decimationTarget, describeSeries, describeShare, dimmedBy, disposeWithLeave, domainMinOf, dropdownMinWidth, dropdownOverlay, dsAriaCurrent, dsDestination, dwellHighlight, elementWidth, focusIsInside, focusMark, focusRescue, fontsLoaded, formatPercent, formatTick, formatValue, formatWholePercent, forwardOverlayTokens, labelInterval, largestRemainder, leaveMark, leftMark, linePath, lineSegments, linearScale, listenForEscape, listenForMarkFocus, lttbDecimate, markAt, markOf, minMaxDecimate, moveFocusOutOf, needsDecimating, nextControlId, nextRovingIndex, niceDomain, overlayPlacementOf, panelClassesOf, prepareOverlayEnter, readOnHostResize, resolveBrandValue, resolveChartDefaults, resolveFieldMessage, rotationWouldFit, roundStepAtLeast, rovingMarks, scrollActiveOptionIntoView, shareOfTotal, skeletonColumnHeights, skeletonFunnelClips, skeletonLineClip, skeletonMarkCount, skeletonWaterfallSteps, staggerDelay, tickValues, trimmedText, tweenMarks, valueControlBridge, watchElementWidth };
|
|
2696
2706
|
//# sourceMappingURL=ids-group-ltd-ids-design-system-components.mjs.map
|