@dso-toolkit/angular 104.0.0 → 105.0.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.
|
@@ -858,7 +858,8 @@ let DsoBadge = class DsoBadge {
|
|
|
858
858
|
set status(_) { }
|
|
859
859
|
;
|
|
860
860
|
/**
|
|
861
|
-
* The
|
|
861
|
+
* The label of the interactive Badge with Toggletip. It is shown in the Tooltip and added to the accessible name,
|
|
862
|
+
after the visible text of the Badge.
|
|
862
863
|
*/
|
|
863
864
|
set label(_) { }
|
|
864
865
|
;
|
|
@@ -4363,8 +4364,13 @@ class DsoSelectableRadioGroupFieldControl {
|
|
|
4363
4364
|
touched = model(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
4364
4365
|
touch = output();
|
|
4365
4366
|
options = contentChildren(DsoSelectable, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), descendants: true, read: ElementRef });
|
|
4366
|
-
constructor(elementRef) {
|
|
4367
|
+
constructor(elementRef, destroyRef) {
|
|
4367
4368
|
this.elementRef = elementRef;
|
|
4369
|
+
// dsoChange does not bubble, so listen in the capture phase to receive it from the radios in this fieldset.
|
|
4370
|
+
const fieldset = elementRef.nativeElement;
|
|
4371
|
+
const dsoChangeListener = (event) => this.onDsoChange(event);
|
|
4372
|
+
fieldset.addEventListener("dsoChange", dsoChangeListener, { capture: true });
|
|
4373
|
+
destroyRef.onDestroy(() => fieldset.removeEventListener("dsoChange", dsoChangeListener, { capture: true }));
|
|
4368
4374
|
afterRenderEffect({
|
|
4369
4375
|
write: () => {
|
|
4370
4376
|
const selectedValue = this.value();
|
|
@@ -4428,8 +4434,8 @@ class DsoSelectableRadioGroupFieldControl {
|
|
|
4428
4434
|
const radios = Array.from(group.querySelectorAll('input[type="radio"]:not(:disabled)')).filter((radio) => radio.closest("fieldset[dsoSelectableRadioGroup]") === group);
|
|
4429
4435
|
(radios.find((radio) => radio.checked) ?? radios[0])?.focus(options);
|
|
4430
4436
|
}
|
|
4431
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoSelectableRadioGroupFieldControl, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4432
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.25", type: DsoSelectableRadioGroupFieldControl, isStandalone: true, selector: "fieldset[dsoSelectableRadioGroup][formField]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", 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 } }, outputs: { value: "valueChange", touched: "touchedChange", touch: "touch" }, host: { listeners: { "
|
|
4437
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoSelectableRadioGroupFieldControl, deps: [{ token: i0.ElementRef }, { token: i0.DestroyRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4438
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "21.2.25", type: DsoSelectableRadioGroupFieldControl, isStandalone: true, selector: "fieldset[dsoSelectableRadioGroup][formField]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", 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 } }, outputs: { value: "valueChange", touched: "touchedChange", touch: "touch" }, host: { listeners: { "focusout": "onFocusOut($event)" } }, queries: [{ propertyName: "options", predicate: DsoSelectable, descendants: true, read: ElementRef, isSignal: true }], ngImport: i0 });
|
|
4433
4439
|
}
|
|
4434
4440
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoSelectableRadioGroupFieldControl, decorators: [{
|
|
4435
4441
|
type: Directive,
|
|
@@ -4437,10 +4443,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
4437
4443
|
selector: "fieldset[dsoSelectableRadioGroup][formField]",
|
|
4438
4444
|
standalone: true,
|
|
4439
4445
|
}]
|
|
4440
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], options: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => DsoSelectable), { ...{ descendants: true, read: ElementRef }, isSignal: true }] }],
|
|
4441
|
-
type: HostListener,
|
|
4442
|
-
args: ["dsoChange", ["$event"]]
|
|
4443
|
-
}], onFocusOut: [{
|
|
4446
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.DestroyRef }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], touch: [{ type: i0.Output, args: ["touch"] }], options: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => DsoSelectable), { ...{ descendants: true, read: ElementRef }, isSignal: true }] }], onFocusOut: [{
|
|
4444
4447
|
type: HostListener,
|
|
4445
4448
|
args: ["focusout", ["$event"]]
|
|
4446
4449
|
}] } });
|