@dso-toolkit/angular 103.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
|
;
|
|
@@ -1889,11 +1890,16 @@ let DsoIconButton = class DsoIconButton {
|
|
|
1889
1890
|
set icon(_) { }
|
|
1890
1891
|
;
|
|
1891
1892
|
/**
|
|
1892
|
-
* The
|
|
1893
|
+
* The accessible name of the Icon Button. Also shown as tooltip when `tooltip` is not set.
|
|
1893
1894
|
*/
|
|
1894
1895
|
set label(_) { }
|
|
1895
1896
|
;
|
|
1896
1897
|
/**
|
|
1898
|
+
* Optional shorter text for the tooltip. Must occur as whole words in `label`, preferably at the start.
|
|
1899
|
+
*/
|
|
1900
|
+
set tooltip(_) { }
|
|
1901
|
+
;
|
|
1902
|
+
/**
|
|
1897
1903
|
* The variant of the Icon Button. @default "secondary"
|
|
1898
1904
|
*/
|
|
1899
1905
|
set variant(_) { }
|
|
@@ -1937,12 +1943,12 @@ for a wrapping component passing an element across a shadow boundary.
|
|
|
1937
1943
|
this.el = r.nativeElement;
|
|
1938
1944
|
}
|
|
1939
1945
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoIconButton, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1940
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: DsoIconButton, isStandalone: true, selector: "dso-icon-button", inputs: { controlsElement: "controlsElement", describedByElement: "describedByElement", disabled: "disabled", expanded: "expanded", icon: "icon", label: "label", toggled: "toggled", tooltipPlacement: "tooltipPlacement", variant: "variant" }, outputs: { dsoClick: "dsoClick" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1946
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: DsoIconButton, isStandalone: true, selector: "dso-icon-button", inputs: { controlsElement: "controlsElement", describedByElement: "describedByElement", disabled: "disabled", expanded: "expanded", icon: "icon", label: "label", toggled: "toggled", tooltip: "tooltip", tooltipPlacement: "tooltipPlacement", variant: "variant" }, outputs: { dsoClick: "dsoClick" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1941
1947
|
};
|
|
1942
1948
|
DsoIconButton = __decorate([
|
|
1943
1949
|
ProxyCmp({
|
|
1944
1950
|
defineCustomElementFn: defineCustomElement$y,
|
|
1945
|
-
inputs: ['controlsElement', 'describedByElement', 'disabled', 'expanded', 'icon', 'label', 'toggled', 'tooltipPlacement', 'variant'],
|
|
1951
|
+
inputs: ['controlsElement', 'describedByElement', 'disabled', 'expanded', 'icon', 'label', 'toggled', 'tooltip', 'tooltipPlacement', 'variant'],
|
|
1946
1952
|
methods: ['setFocus']
|
|
1947
1953
|
})
|
|
1948
1954
|
], DsoIconButton);
|
|
@@ -1953,7 +1959,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
1953
1959
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1954
1960
|
template: '<ng-content></ng-content>',
|
|
1955
1961
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
1956
|
-
inputs: ['controlsElement', 'describedByElement', 'disabled', 'expanded', { name: 'icon', required: true }, { name: 'label', required: true }, 'toggled', 'tooltipPlacement', 'variant'],
|
|
1962
|
+
inputs: ['controlsElement', 'describedByElement', 'disabled', 'expanded', { name: 'icon', required: true }, { name: 'label', required: true }, 'toggled', 'tooltip', 'tooltipPlacement', 'variant'],
|
|
1957
1963
|
outputs: ['dsoClick'],
|
|
1958
1964
|
}]
|
|
1959
1965
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { dsoClick: [{
|
|
@@ -2004,6 +2010,12 @@ let DsoInfo = class DsoInfo {
|
|
|
2004
2010
|
*/
|
|
2005
2011
|
set active(_) { }
|
|
2006
2012
|
;
|
|
2013
|
+
/**
|
|
2014
|
+
* The accessible label of the close button. Make this specific, for example `Sluit toelichting [label]`.
|
|
2015
|
+
Defaults to "Sluiten".
|
|
2016
|
+
*/
|
|
2017
|
+
set closeLabel(_) { }
|
|
2018
|
+
;
|
|
2007
2019
|
dsoClose = new EventEmitter();
|
|
2008
2020
|
constructor(c, r, z) {
|
|
2009
2021
|
this.z = z;
|
|
@@ -2011,12 +2023,12 @@ let DsoInfo = class DsoInfo {
|
|
|
2011
2023
|
this.el = r.nativeElement;
|
|
2012
2024
|
}
|
|
2013
2025
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoInfo, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2014
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: DsoInfo, isStandalone: true, selector: "dso-info", inputs: { active: "active", fixed: "fixed" }, outputs: { dsoClose: "dsoClose" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2026
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: DsoInfo, isStandalone: true, selector: "dso-info", inputs: { active: "active", closeLabel: "closeLabel", fixed: "fixed" }, outputs: { dsoClose: "dsoClose" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2015
2027
|
};
|
|
2016
2028
|
DsoInfo = __decorate([
|
|
2017
2029
|
ProxyCmp({
|
|
2018
2030
|
defineCustomElementFn: defineCustomElement$A,
|
|
2019
|
-
inputs: ['active', 'fixed']
|
|
2031
|
+
inputs: ['active', 'closeLabel', 'fixed']
|
|
2020
2032
|
})
|
|
2021
2033
|
], DsoInfo);
|
|
2022
2034
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoInfo, decorators: [{
|
|
@@ -2026,7 +2038,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
2026
2038
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2027
2039
|
template: '<ng-content></ng-content>',
|
|
2028
2040
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
2029
|
-
inputs: ['active', 'fixed'],
|
|
2041
|
+
inputs: ['active', 'closeLabel', 'fixed'],
|
|
2030
2042
|
outputs: ['dsoClose'],
|
|
2031
2043
|
}]
|
|
2032
2044
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { dsoClose: [{
|
|
@@ -3480,6 +3492,12 @@ Can be used to indicate child Selectables that are a mix of checked and unchecke
|
|
|
3480
3492
|
*/
|
|
3481
3493
|
set infoFixed(_) { }
|
|
3482
3494
|
;
|
|
3495
|
+
/**
|
|
3496
|
+
* The accessible label of the close button of the Info. Make this specific, for example `Sluit toelichting [label]`.
|
|
3497
|
+
Defaults to "Sluiten".
|
|
3498
|
+
*/
|
|
3499
|
+
set infoCloseLabel(_) { }
|
|
3500
|
+
;
|
|
3483
3501
|
dsoChange = new EventEmitter();
|
|
3484
3502
|
constructor(c, r, z) {
|
|
3485
3503
|
this.z = z;
|
|
@@ -3487,12 +3505,12 @@ Can be used to indicate child Selectables that are a mix of checked and unchecke
|
|
|
3487
3505
|
this.el = r.nativeElement;
|
|
3488
3506
|
}
|
|
3489
3507
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoSelectable, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
3490
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: DsoSelectable, isStandalone: true, selector: "dso-selectable", inputs: { checked: "checked", describedById: "describedById", disabled: "disabled", errormessage: "errormessage", identifier: "identifier", indeterminate: "indeterminate", infoFixed: "infoFixed", invalid: "invalid", labelledById: "labelledById", name: "name", required: "required", type: "type", value: "value" }, outputs: { dsoChange: "dsoChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3508
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: DsoSelectable, isStandalone: true, selector: "dso-selectable", inputs: { checked: "checked", describedById: "describedById", disabled: "disabled", errormessage: "errormessage", identifier: "identifier", indeterminate: "indeterminate", infoCloseLabel: "infoCloseLabel", infoFixed: "infoFixed", invalid: "invalid", labelledById: "labelledById", name: "name", required: "required", type: "type", value: "value" }, outputs: { dsoChange: "dsoChange" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3491
3509
|
};
|
|
3492
3510
|
DsoSelectable = __decorate([
|
|
3493
3511
|
ProxyCmp({
|
|
3494
3512
|
defineCustomElementFn: defineCustomElement$12,
|
|
3495
|
-
inputs: ['checked', 'describedById', 'disabled', 'errormessage', 'identifier', 'indeterminate', 'infoFixed', 'invalid', 'labelledById', 'name', 'required', 'type', 'value'],
|
|
3513
|
+
inputs: ['checked', 'describedById', 'disabled', 'errormessage', 'identifier', 'indeterminate', 'infoCloseLabel', 'infoFixed', 'invalid', 'labelledById', 'name', 'required', 'type', 'value'],
|
|
3496
3514
|
methods: ['toggleInfo']
|
|
3497
3515
|
})
|
|
3498
3516
|
], DsoSelectable);
|
|
@@ -3503,7 +3521,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
3503
3521
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3504
3522
|
template: '<ng-content></ng-content>',
|
|
3505
3523
|
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
|
3506
|
-
inputs: ['checked', 'describedById', 'disabled', 'errormessage', 'identifier', 'indeterminate', 'infoFixed', 'invalid', 'labelledById', 'name', 'required', { name: 'type', required: true }, 'value'],
|
|
3524
|
+
inputs: ['checked', 'describedById', 'disabled', 'errormessage', 'identifier', 'indeterminate', 'infoCloseLabel', 'infoFixed', 'invalid', 'labelledById', 'name', 'required', { name: 'type', required: true }, 'value'],
|
|
3507
3525
|
outputs: ['dsoChange'],
|
|
3508
3526
|
}]
|
|
3509
3527
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { dsoChange: [{
|
|
@@ -4346,8 +4364,13 @@ class DsoSelectableRadioGroupFieldControl {
|
|
|
4346
4364
|
touched = model(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
4347
4365
|
touch = output();
|
|
4348
4366
|
options = contentChildren(DsoSelectable, { ...(ngDevMode ? { debugName: "options" } : /* istanbul ignore next */ {}), descendants: true, read: ElementRef });
|
|
4349
|
-
constructor(elementRef) {
|
|
4367
|
+
constructor(elementRef, destroyRef) {
|
|
4350
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 }));
|
|
4351
4374
|
afterRenderEffect({
|
|
4352
4375
|
write: () => {
|
|
4353
4376
|
const selectedValue = this.value();
|
|
@@ -4411,8 +4434,8 @@ class DsoSelectableRadioGroupFieldControl {
|
|
|
4411
4434
|
const radios = Array.from(group.querySelectorAll('input[type="radio"]:not(:disabled)')).filter((radio) => radio.closest("fieldset[dsoSelectableRadioGroup]") === group);
|
|
4412
4435
|
(radios.find((radio) => radio.checked) ?? radios[0])?.focus(options);
|
|
4413
4436
|
}
|
|
4414
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoSelectableRadioGroupFieldControl, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4415
|
-
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 });
|
|
4416
4439
|
}
|
|
4417
4440
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: DsoSelectableRadioGroupFieldControl, decorators: [{
|
|
4418
4441
|
type: Directive,
|
|
@@ -4420,10 +4443,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImpo
|
|
|
4420
4443
|
selector: "fieldset[dsoSelectableRadioGroup][formField]",
|
|
4421
4444
|
standalone: true,
|
|
4422
4445
|
}]
|
|
4423
|
-
}], 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 }] }],
|
|
4424
|
-
type: HostListener,
|
|
4425
|
-
args: ["dsoChange", ["$event"]]
|
|
4426
|
-
}], 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: [{
|
|
4427
4447
|
type: HostListener,
|
|
4428
4448
|
args: ["focusout", ["$event"]]
|
|
4429
4449
|
}] } });
|