@ngx-formly/material 6.3.10 → 7.0.0-alpha.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/README.md +1 -0
- package/checkbox/checkbox.config.d.ts +2 -0
- package/checkbox/checkbox.type.d.ts +1 -1
- package/checkbox/public_api.d.ts +1 -0
- package/datepicker/datepicker.config.d.ts +2 -0
- package/datepicker/datepicker.type.d.ts +1 -1
- package/datepicker/public_api.d.ts +1 -0
- package/esm2022/checkbox/checkbox.config.mjs +17 -0
- package/esm2022/checkbox/checkbox.module.mjs +36 -0
- package/esm2022/checkbox/checkbox.type.mjs +113 -0
- package/esm2022/checkbox/public_api.mjs +4 -0
- package/esm2022/datepicker/datepicker.config.mjs +13 -0
- package/esm2022/datepicker/datepicker.module.mjs +40 -0
- package/esm2022/datepicker/datepicker.type.mjs +153 -0
- package/esm2022/datepicker/public_api.mjs +4 -0
- package/{esm2020 → esm2022}/form-field/field.type.mjs +4 -4
- package/esm2022/form-field/form-field.config.mjs +12 -0
- package/esm2022/form-field/form-field.module.mjs +23 -0
- package/esm2022/form-field/form-field.wrapper.mjs +159 -0
- package/esm2022/form-field/public_api.mjs +4 -0
- package/esm2022/input/input.config.mjs +32 -0
- package/esm2022/input/input.module.mjs +36 -0
- package/{esm2020 → esm2022}/input/input.type.mjs +8 -8
- package/esm2022/input/public_api.mjs +4 -0
- package/esm2022/lib/material.config.mjs +19 -0
- package/esm2022/lib/ui-material.mjs +4 -0
- package/esm2022/lib/ui-material.module.mjs +41 -0
- package/esm2022/multicheckbox/multicheckbox.config.mjs +13 -0
- package/esm2022/multicheckbox/multicheckbox.module.mjs +40 -0
- package/{esm2020 → esm2022}/multicheckbox/multicheckbox.type.mjs +10 -10
- package/esm2022/multicheckbox/public_api.mjs +4 -0
- package/esm2022/native-select/native-select.config.mjs +13 -0
- package/esm2022/native-select/native-select.module.mjs +40 -0
- package/{esm2020 → esm2022}/native-select/native-select.type.mjs +11 -11
- package/esm2022/native-select/public_api.mjs +4 -0
- package/esm2022/radio/public_api.mjs +4 -0
- package/esm2022/radio/radio.config.mjs +13 -0
- package/esm2022/radio/radio.module.mjs +40 -0
- package/esm2022/radio/radio.type.mjs +89 -0
- package/esm2022/select/public_api.mjs +4 -0
- package/esm2022/select/select.config.mjs +14 -0
- package/esm2022/select/select.module.mjs +44 -0
- package/esm2022/select/select.type.mjs +164 -0
- package/esm2022/slider/public_api.mjs +4 -0
- package/esm2022/slider/slider.config.mjs +13 -0
- package/esm2022/slider/slider.module.mjs +43 -0
- package/esm2022/slider/slider.type.mjs +67 -0
- package/esm2022/textarea/public_api.mjs +4 -0
- package/esm2022/textarea/textarea.config.mjs +13 -0
- package/esm2022/textarea/textarea.module.mjs +36 -0
- package/{esm2020 → esm2022}/textarea/textarea.type.mjs +12 -12
- package/esm2022/toggle/public_api.mjs +4 -0
- package/esm2022/toggle/toggle.config.mjs +13 -0
- package/esm2022/toggle/toggle.module.mjs +36 -0
- package/{esm2020 → esm2022}/toggle/toggle.type.mjs +8 -8
- package/{fesm2015 → fesm2022}/ngx-formly-material-checkbox.mjs +39 -49
- package/fesm2022/ngx-formly-material-checkbox.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-material-datepicker.mjs +33 -39
- package/fesm2022/ngx-formly-material-datepicker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-material-form-field.mjs +30 -45
- package/fesm2022/ngx-formly-material-form-field.mjs.map +1 -0
- package/fesm2022/ngx-formly-material-input.mjs +151 -0
- package/fesm2022/ngx-formly-material-input.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-material-multicheckbox.mjs +36 -42
- package/fesm2022/ngx-formly-material-multicheckbox.mjs.map +1 -0
- package/fesm2022/ngx-formly-material-native-select.mjs +128 -0
- package/fesm2022/ngx-formly-material-native-select.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ngx-formly-material-radio.mjs +37 -43
- package/fesm2022/ngx-formly-material-radio.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-material-select.mjs +42 -49
- package/fesm2022/ngx-formly-material-select.mjs.map +1 -0
- package/fesm2022/ngx-formly-material-slider.mjs +123 -0
- package/fesm2022/ngx-formly-material-slider.mjs.map +1 -0
- package/fesm2022/ngx-formly-material-textarea.mjs +125 -0
- package/fesm2022/ngx-formly-material-textarea.mjs.map +1 -0
- package/fesm2022/ngx-formly-material-toggle.mjs +111 -0
- package/fesm2022/ngx-formly-material-toggle.mjs.map +1 -0
- package/fesm2022/ngx-formly-material.mjs +65 -0
- package/fesm2022/ngx-formly-material.mjs.map +1 -0
- package/form-field/field.type.d.ts +1 -1
- package/form-field/form-field.config.d.ts +2 -0
- package/form-field/form-field.wrapper.d.ts +1 -1
- package/form-field/public_api.d.ts +1 -0
- package/input/input.config.d.ts +2 -0
- package/input/input.type.d.ts +1 -1
- package/input/public_api.d.ts +1 -0
- package/lib/material.config.d.ts +1 -0
- package/lib/ui-material.d.ts +1 -0
- package/multicheckbox/multicheckbox.config.d.ts +2 -0
- package/multicheckbox/multicheckbox.type.d.ts +1 -1
- package/multicheckbox/public_api.d.ts +1 -0
- package/native-select/native-select.config.d.ts +2 -0
- package/native-select/native-select.type.d.ts +1 -1
- package/native-select/public_api.d.ts +1 -0
- package/package.json +53 -81
- package/radio/public_api.d.ts +1 -0
- package/radio/radio.config.d.ts +2 -0
- package/radio/radio.type.d.ts +1 -1
- package/select/public_api.d.ts +1 -0
- package/select/select.config.d.ts +2 -0
- package/select/select.type.d.ts +1 -1
- package/slider/public_api.d.ts +3 -4
- package/slider/slider.config.d.ts +2 -0
- package/slider/slider.module.d.ts +7 -9
- package/slider/slider.type.d.ts +5 -15
- package/textarea/public_api.d.ts +1 -0
- package/textarea/textarea.config.d.ts +2 -0
- package/textarea/textarea.type.d.ts +1 -1
- package/toggle/public_api.d.ts +1 -0
- package/toggle/toggle.config.d.ts +2 -0
- package/toggle/toggle.type.d.ts +1 -1
- package/checkbox/package.json +0 -10
- package/datepicker/package.json +0 -10
- package/esm2020/checkbox/checkbox.module.mjs +0 -61
- package/esm2020/checkbox/checkbox.type.mjs +0 -113
- package/esm2020/checkbox/public_api.mjs +0 -3
- package/esm2020/datepicker/datepicker.module.mjs +0 -57
- package/esm2020/datepicker/datepicker.type.mjs +0 -153
- package/esm2020/datepicker/public_api.mjs +0 -3
- package/esm2020/form-field/form-field.module.mjs +0 -48
- package/esm2020/form-field/form-field.wrapper.mjs +0 -159
- package/esm2020/form-field/public_api.mjs +0 -3
- package/esm2020/input/input.module.mjs +0 -91
- package/esm2020/input/public_api.mjs +0 -3
- package/esm2020/lib/ui-material.mjs +0 -3
- package/esm2020/lib/ui-material.module.mjs +0 -43
- package/esm2020/multicheckbox/multicheckbox.module.mjs +0 -57
- package/esm2020/multicheckbox/public_api.mjs +0 -3
- package/esm2020/native-select/native-select.module.mjs +0 -57
- package/esm2020/native-select/public_api.mjs +0 -3
- package/esm2020/radio/public_api.mjs +0 -3
- package/esm2020/radio/radio.module.mjs +0 -57
- package/esm2020/radio/radio.type.mjs +0 -89
- package/esm2020/select/public_api.mjs +0 -3
- package/esm2020/select/select.module.mjs +0 -63
- package/esm2020/select/select.type.mjs +0 -164
- package/esm2020/slider/public_api.mjs +0 -7
- package/esm2020/slider/slider-input.mjs +0 -446
- package/esm2020/slider/slider-interface.mjs +0 -15
- package/esm2020/slider/slider-mdc.type.mjs +0 -97
- package/esm2020/slider/slider.module.mjs +0 -65
- package/esm2020/slider/slider.type.mjs +0 -80
- package/esm2020/textarea/public_api.mjs +0 -3
- package/esm2020/textarea/textarea.module.mjs +0 -53
- package/esm2020/toggle/public_api.mjs +0 -3
- package/esm2020/toggle/toggle.module.mjs +0 -53
- package/fesm2015/ngx-formly-material-checkbox.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-datepicker.mjs +0 -214
- package/fesm2015/ngx-formly-material-datepicker.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-form-field.mjs +0 -351
- package/fesm2015/ngx-formly-material-form-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-input.mjs +0 -176
- package/fesm2015/ngx-formly-material-input.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-multicheckbox.mjs +0 -143
- package/fesm2015/ngx-formly-material-multicheckbox.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-native-select.mjs +0 -134
- package/fesm2015/ngx-formly-material-native-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-radio.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-select.mjs +0 -230
- package/fesm2015/ngx-formly-material-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-slider.mjs +0 -693
- package/fesm2015/ngx-formly-material-slider.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-textarea.mjs +0 -131
- package/fesm2015/ngx-formly-material-textarea.mjs.map +0 -1
- package/fesm2015/ngx-formly-material-toggle.mjs +0 -117
- package/fesm2015/ngx-formly-material-toggle.mjs.map +0 -1
- package/fesm2015/ngx-formly-material.mjs +0 -55
- package/fesm2015/ngx-formly-material.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-checkbox.mjs +0 -175
- package/fesm2020/ngx-formly-material-checkbox.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-datepicker.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-form-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-input.mjs +0 -176
- package/fesm2020/ngx-formly-material-input.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-multicheckbox.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-native-select.mjs +0 -134
- package/fesm2020/ngx-formly-material-native-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-radio.mjs +0 -146
- package/fesm2020/ngx-formly-material-radio.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-slider.mjs +0 -689
- package/fesm2020/ngx-formly-material-slider.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-textarea.mjs +0 -131
- package/fesm2020/ngx-formly-material-textarea.mjs.map +0 -1
- package/fesm2020/ngx-formly-material-toggle.mjs +0 -117
- package/fesm2020/ngx-formly-material-toggle.mjs.map +0 -1
- package/fesm2020/ngx-formly-material.mjs +0 -55
- package/fesm2020/ngx-formly-material.mjs.map +0 -1
- package/form-field/package.json +0 -10
- package/input/package.json +0 -10
- package/multicheckbox/package.json +0 -10
- package/native-select/package.json +0 -10
- package/radio/package.json +0 -10
- package/select/package.json +0 -10
- package/slider/package.json +0 -10
- package/slider/slider-input.d.ts +0 -179
- package/slider/slider-interface.d.ts +0 -138
- package/slider/slider-mdc.type.d.ts +0 -13
- package/textarea/package.json +0 -10
- package/toggle/package.json +0 -10
- /package/checkbox/{ngx-formly-material-checkbox.d.ts → index.d.ts} +0 -0
- /package/datepicker/{ngx-formly-material-datepicker.d.ts → index.d.ts} +0 -0
- /package/{esm2020 → esm2022}/checkbox/ngx-formly-material-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/ngx-formly-material-datepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ngx-formly-material-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/input/ngx-formly-material-input.mjs +0 -0
- /package/{esm2020 → esm2022}/multicheckbox/ngx-formly-material-multicheckbox.mjs +0 -0
- /package/{esm2020 → esm2022}/native-select/ngx-formly-material-native-select.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-formly-material.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ngx-formly-material-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ngx-formly-material-select.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/ngx-formly-material-slider.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ngx-formly-material-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/ngx-formly-material-toggle.mjs +0 -0
- /package/form-field/{ngx-formly-material-form-field.d.ts → index.d.ts} +0 -0
- /package/{ngx-formly-material.d.ts → index.d.ts} +0 -0
- /package/input/{ngx-formly-material-input.d.ts → index.d.ts} +0 -0
- /package/multicheckbox/{ngx-formly-material-multicheckbox.d.ts → index.d.ts} +0 -0
- /package/native-select/{ngx-formly-material-native-select.d.ts → index.d.ts} +0 -0
- /package/radio/{ngx-formly-material-radio.d.ts → index.d.ts} +0 -0
- /package/select/{ngx-formly-material-select.d.ts → index.d.ts} +0 -0
- /package/slider/{ngx-formly-material-slider.d.ts → index.d.ts} +0 -0
- /package/textarea/{ngx-formly-material-textarea.d.ts → index.d.ts} +0 -0
- /package/toggle/{ngx-formly-material-toggle.d.ts → index.d.ts} +0 -0
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, ViewChildren, NgModule } from '@angular/core';
|
|
3
|
-
import * as i2 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
import * as i3 from '@ngx-formly/core';
|
|
7
|
-
import { FormlyModule } from '@ngx-formly/core';
|
|
8
|
-
import * as i4 from '@ngx-formly/core/select';
|
|
9
|
-
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
10
|
-
import { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
|
|
11
|
-
import * as i1 from '@angular/material/checkbox';
|
|
12
|
-
import { MatCheckbox, MatCheckboxModule } from '@angular/material/checkbox';
|
|
13
|
-
|
|
14
|
-
class FormlyFieldMultiCheckbox extends FieldType {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.defaultOptions = {
|
|
18
|
-
props: {
|
|
19
|
-
hideFieldUnderline: true,
|
|
20
|
-
floatLabel: 'always',
|
|
21
|
-
color: 'accent', // workaround for https://github.com/angular/components/issues/18465
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
onChange(value, checked) {
|
|
26
|
-
this.formControl.markAsDirty();
|
|
27
|
-
if (this.props.type === 'array') {
|
|
28
|
-
this.formControl.patchValue(checked
|
|
29
|
-
? [...(this.formControl.value || []), value]
|
|
30
|
-
: [...(this.formControl.value || [])].filter((o) => o !== value));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
this.formControl.patchValue(Object.assign(Object.assign({}, this.formControl.value), { [value]: checked }));
|
|
34
|
-
}
|
|
35
|
-
this.formControl.markAsTouched();
|
|
36
|
-
}
|
|
37
|
-
// TODO: find a solution to prevent scroll on focus
|
|
38
|
-
onContainerClick() { }
|
|
39
|
-
isChecked(option) {
|
|
40
|
-
const value = this.formControl.value;
|
|
41
|
-
return value && (this.props.type === 'array' ? value.indexOf(option.value) !== -1 : value[option.value]);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
FormlyFieldMultiCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldMultiCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
-
FormlyFieldMultiCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldMultiCheckbox, selector: "formly-field-mat-multicheckbox", host: { properties: { "id": "id" } }, viewQueries: [{ propertyName: "checkboxes", predicate: MatCheckbox, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
46
|
-
<ng-container *ngFor="let option of props.options | formlySelectOptions : field | async; let i = index">
|
|
47
|
-
<mat-checkbox
|
|
48
|
-
[id]="id + '_' + i"
|
|
49
|
-
[formlyAttributes]="field"
|
|
50
|
-
[tabIndex]="props.tabindex"
|
|
51
|
-
[color]="props.color"
|
|
52
|
-
[labelPosition]="props.labelPosition"
|
|
53
|
-
[checked]="isChecked(option)"
|
|
54
|
-
[disabled]="formControl.disabled || option.disabled"
|
|
55
|
-
(change)="onChange(option.value, $event.checked)"
|
|
56
|
-
>
|
|
57
|
-
{{ option.label }}
|
|
58
|
-
</mat-checkbox>
|
|
59
|
-
</ng-container>
|
|
60
|
-
`, isInline: true, components: [{ type: i1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], pipes: { "async": i2.AsyncPipe, "formlySelectOptions": i4.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldMultiCheckbox, decorators: [{
|
|
62
|
-
type: Component,
|
|
63
|
-
args: [{
|
|
64
|
-
selector: 'formly-field-mat-multicheckbox',
|
|
65
|
-
template: `
|
|
66
|
-
<ng-container *ngFor="let option of props.options | formlySelectOptions : field | async; let i = index">
|
|
67
|
-
<mat-checkbox
|
|
68
|
-
[id]="id + '_' + i"
|
|
69
|
-
[formlyAttributes]="field"
|
|
70
|
-
[tabIndex]="props.tabindex"
|
|
71
|
-
[color]="props.color"
|
|
72
|
-
[labelPosition]="props.labelPosition"
|
|
73
|
-
[checked]="isChecked(option)"
|
|
74
|
-
[disabled]="formControl.disabled || option.disabled"
|
|
75
|
-
(change)="onChange(option.value, $event.checked)"
|
|
76
|
-
>
|
|
77
|
-
{{ option.label }}
|
|
78
|
-
</mat-checkbox>
|
|
79
|
-
</ng-container>
|
|
80
|
-
`,
|
|
81
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
82
|
-
host: {
|
|
83
|
-
'[id]': 'id',
|
|
84
|
-
},
|
|
85
|
-
}]
|
|
86
|
-
}], propDecorators: { checkboxes: [{
|
|
87
|
-
type: ViewChildren,
|
|
88
|
-
args: [MatCheckbox]
|
|
89
|
-
}] } });
|
|
90
|
-
|
|
91
|
-
class FormlyMatMultiCheckboxModule {
|
|
92
|
-
}
|
|
93
|
-
FormlyMatMultiCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatMultiCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
94
|
-
FormlyMatMultiCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatMultiCheckboxModule, declarations: [FormlyFieldMultiCheckbox], imports: [CommonModule,
|
|
95
|
-
ReactiveFormsModule,
|
|
96
|
-
MatCheckboxModule,
|
|
97
|
-
FormlyMatFormFieldModule,
|
|
98
|
-
FormlySelectModule, i3.FormlyModule] });
|
|
99
|
-
FormlyMatMultiCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatMultiCheckboxModule, imports: [[
|
|
100
|
-
CommonModule,
|
|
101
|
-
ReactiveFormsModule,
|
|
102
|
-
MatCheckboxModule,
|
|
103
|
-
FormlyMatFormFieldModule,
|
|
104
|
-
FormlySelectModule,
|
|
105
|
-
FormlyModule.forChild({
|
|
106
|
-
types: [
|
|
107
|
-
{
|
|
108
|
-
name: 'multicheckbox',
|
|
109
|
-
component: FormlyFieldMultiCheckbox,
|
|
110
|
-
wrappers: ['form-field'],
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
}),
|
|
114
|
-
]] });
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatMultiCheckboxModule, decorators: [{
|
|
116
|
-
type: NgModule,
|
|
117
|
-
args: [{
|
|
118
|
-
declarations: [FormlyFieldMultiCheckbox],
|
|
119
|
-
imports: [
|
|
120
|
-
CommonModule,
|
|
121
|
-
ReactiveFormsModule,
|
|
122
|
-
MatCheckboxModule,
|
|
123
|
-
FormlyMatFormFieldModule,
|
|
124
|
-
FormlySelectModule,
|
|
125
|
-
FormlyModule.forChild({
|
|
126
|
-
types: [
|
|
127
|
-
{
|
|
128
|
-
name: 'multicheckbox',
|
|
129
|
-
component: FormlyFieldMultiCheckbox,
|
|
130
|
-
wrappers: ['form-field'],
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
}),
|
|
134
|
-
],
|
|
135
|
-
}]
|
|
136
|
-
}] });
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Generated bundle index. Do not edit.
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
export { FormlyFieldMultiCheckbox, FormlyMatMultiCheckboxModule };
|
|
143
|
-
//# sourceMappingURL=ngx-formly-material-multicheckbox.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-material-multicheckbox.mjs","sources":["../../../../src/ui/material/multicheckbox/src/multicheckbox.type.ts","../../../../src/ui/material/multicheckbox/src/multicheckbox.module.ts","../../../../src/ui/material/multicheckbox/src/ngx-formly-material-multicheckbox.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewChildren, QueryList, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';\n\ninterface MultiCheckboxProps extends FormlyFieldProps {\n labelPosition?: 'before' | 'after';\n}\n\nexport interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {\n type: 'multicheckbox' | Type<FormlyFieldMultiCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-mat-multicheckbox',\n template: `\n <ng-container *ngFor=\"let option of props.options | formlySelectOptions : field | async; let i = index\">\n <mat-checkbox\n [id]=\"id + '_' + i\"\n [formlyAttributes]=\"field\"\n [tabIndex]=\"props.tabindex\"\n [color]=\"props.color\"\n [labelPosition]=\"props.labelPosition\"\n [checked]=\"isChecked(option)\"\n [disabled]=\"formControl.disabled || option.disabled\"\n (change)=\"onChange(option.value, $event.checked)\"\n >\n {{ option.label }}\n </mat-checkbox>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[id]': 'id',\n },\n})\nexport class FormlyFieldMultiCheckbox extends FieldType<FieldTypeConfig<MultiCheckboxProps>> {\n @ViewChildren(MatCheckbox) checkboxes!: QueryList<MatCheckbox>;\n\n override defaultOptions = {\n props: {\n hideFieldUnderline: true,\n floatLabel: 'always' as const,\n color: 'accent' as const, // workaround for https://github.com/angular/components/issues/18465\n },\n };\n\n onChange(value: any, checked: boolean) {\n this.formControl.markAsDirty();\n if (this.props.type === 'array') {\n this.formControl.patchValue(\n checked\n ? [...(this.formControl.value || []), value]\n : [...(this.formControl.value || [])].filter((o) => o !== value),\n );\n } else {\n this.formControl.patchValue({ ...this.formControl.value, [value]: checked });\n }\n this.formControl.markAsTouched();\n }\n\n // TODO: find a solution to prevent scroll on focus\n override onContainerClick() {}\n\n isChecked(option: any) {\n const value = this.formControl.value;\n\n return value && (this.props.type === 'array' ? value.indexOf(option.value) !== -1 : value[option.value]);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\n\nimport { FormlyFieldMultiCheckbox } from './multicheckbox.type';\n\n@NgModule({\n declarations: [FormlyFieldMultiCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n MatCheckboxModule,\n\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'multicheckbox',\n component: FormlyFieldMultiCheckbox,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyMatMultiCheckboxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAoCM,MAAO,wBAAyB,SAAQ,SAA8C,CAAA;AAvB5F,IAAA,WAAA,GAAA;;QA0BW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,UAAU,EAAE,QAAiB;gBAC7B,KAAK,EAAE,QAAiB;AACzB,aAAA;SACF,CAAC;KAwBH;IAtBC,QAAQ,CAAC,KAAU,EAAE,OAAgB,EAAA;AACnC,QAAA,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;AAC/B,QAAA,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,EAAE;AAC/B,YAAA,IAAI,CAAC,WAAW,CAAC,UAAU,CACzB,OAAO;AACL,kBAAE,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC;kBAC1C,CAAC,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,CACnE,CAAC;AACH,SAAA;AAAM,aAAA;AACL,YAAA,IAAI,CAAC,WAAW,CAAC,UAAU,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAM,IAAI,CAAC,WAAW,CAAC,KAAK,KAAE,CAAC,KAAK,GAAG,OAAO,IAAG,CAAC;AAC9E,SAAA;AACD,QAAA,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;KAClC;;AAGQ,IAAA,gBAAgB,MAAK;AAE9B,I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CAAA;YACP,YAAY;YACZ,mBAAmB;YAEnB,iBAAiB;YAEjB,wBAAwB;YACxB,kBAAkB;YAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,KAAK,EAAE;AACL,oBAAA;AACE,wBAAA,IAAI,EAAE,eAAe;AACrB,wBAAA,SAAS,EAAE,wBAAwB;wBACnC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;4FAEU,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBArBxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,wBAAwB,CAAC;AACxC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBAEnB,iBAAiB;wBAEjB,wBAAwB;wBACxB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,eAAe;AACrB,oCAAA,SAAS,EAAE,wBAAwB;oCACnC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
-
import * as i4 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i3 from '@ngx-formly/core';
|
|
6
|
-
import { FormlyModule } from '@ngx-formly/core';
|
|
7
|
-
import * as i5 from '@ngx-formly/core/select';
|
|
8
|
-
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
9
|
-
import * as i2 from '@angular/forms';
|
|
10
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
11
|
-
import { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
|
|
12
|
-
import * as i1 from '@angular/material/input';
|
|
13
|
-
import { MatInputModule } from '@angular/material/input';
|
|
14
|
-
|
|
15
|
-
class FormlyFieldNativeSelect extends FieldType {
|
|
16
|
-
}
|
|
17
|
-
FormlyFieldNativeSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldNativeSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
FormlyFieldNativeSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldNativeSelect, selector: "formly-field-mat-native-select", usesInheritance: true, ngImport: i0, template: `
|
|
19
|
-
<select
|
|
20
|
-
matNativeControl
|
|
21
|
-
[id]="id"
|
|
22
|
-
[name]="field.name"
|
|
23
|
-
[readonly]="props.readonly"
|
|
24
|
-
[required]="required"
|
|
25
|
-
[errorStateMatcher]="errorStateMatcher"
|
|
26
|
-
[formControl]="formControl"
|
|
27
|
-
[formlyAttributes]="field"
|
|
28
|
-
>
|
|
29
|
-
<option *ngIf="props.placeholder" [ngValue]="undefined">{{ props.placeholder }}</option>
|
|
30
|
-
<ng-container *ngIf="props.options | formlySelectOptions : field | async as opts">
|
|
31
|
-
<ng-container *ngFor="let opt of opts">
|
|
32
|
-
<option *ngIf="!opt.group; else optgroup" [ngValue]="opt.value" [disabled]="opt.disabled">
|
|
33
|
-
{{ opt.label }}
|
|
34
|
-
</option>
|
|
35
|
-
<ng-template #optgroup>
|
|
36
|
-
<optgroup [label]="opt.label">
|
|
37
|
-
<option *ngFor="let child of opt.group" [ngValue]="child.value" [disabled]="child.disabled">
|
|
38
|
-
{{ child.label }}
|
|
39
|
-
</option>
|
|
40
|
-
</optgroup>
|
|
41
|
-
</ng-template>
|
|
42
|
-
</ng-container>
|
|
43
|
-
</ng-container>
|
|
44
|
-
</select>
|
|
45
|
-
`, isInline: true, directives: [{ type: i1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i4.AsyncPipe, "formlySelectOptions": i5.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldNativeSelect, decorators: [{
|
|
47
|
-
type: Component,
|
|
48
|
-
args: [{
|
|
49
|
-
selector: 'formly-field-mat-native-select',
|
|
50
|
-
template: `
|
|
51
|
-
<select
|
|
52
|
-
matNativeControl
|
|
53
|
-
[id]="id"
|
|
54
|
-
[name]="field.name"
|
|
55
|
-
[readonly]="props.readonly"
|
|
56
|
-
[required]="required"
|
|
57
|
-
[errorStateMatcher]="errorStateMatcher"
|
|
58
|
-
[formControl]="formControl"
|
|
59
|
-
[formlyAttributes]="field"
|
|
60
|
-
>
|
|
61
|
-
<option *ngIf="props.placeholder" [ngValue]="undefined">{{ props.placeholder }}</option>
|
|
62
|
-
<ng-container *ngIf="props.options | formlySelectOptions : field | async as opts">
|
|
63
|
-
<ng-container *ngFor="let opt of opts">
|
|
64
|
-
<option *ngIf="!opt.group; else optgroup" [ngValue]="opt.value" [disabled]="opt.disabled">
|
|
65
|
-
{{ opt.label }}
|
|
66
|
-
</option>
|
|
67
|
-
<ng-template #optgroup>
|
|
68
|
-
<optgroup [label]="opt.label">
|
|
69
|
-
<option *ngFor="let child of opt.group" [ngValue]="child.value" [disabled]="child.disabled">
|
|
70
|
-
{{ child.label }}
|
|
71
|
-
</option>
|
|
72
|
-
</optgroup>
|
|
73
|
-
</ng-template>
|
|
74
|
-
</ng-container>
|
|
75
|
-
</ng-container>
|
|
76
|
-
</select>
|
|
77
|
-
`,
|
|
78
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
79
|
-
}]
|
|
80
|
-
}] });
|
|
81
|
-
|
|
82
|
-
class FormlyMatNativeSelectModule {
|
|
83
|
-
}
|
|
84
|
-
FormlyMatNativeSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatNativeSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
85
|
-
FormlyMatNativeSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatNativeSelectModule, declarations: [FormlyFieldNativeSelect], imports: [CommonModule,
|
|
86
|
-
ReactiveFormsModule,
|
|
87
|
-
MatInputModule,
|
|
88
|
-
FormlyMatFormFieldModule,
|
|
89
|
-
FormlySelectModule, i3.FormlyModule] });
|
|
90
|
-
FormlyMatNativeSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatNativeSelectModule, imports: [[
|
|
91
|
-
CommonModule,
|
|
92
|
-
ReactiveFormsModule,
|
|
93
|
-
MatInputModule,
|
|
94
|
-
FormlyMatFormFieldModule,
|
|
95
|
-
FormlySelectModule,
|
|
96
|
-
FormlyModule.forChild({
|
|
97
|
-
types: [
|
|
98
|
-
{
|
|
99
|
-
name: 'native-select',
|
|
100
|
-
component: FormlyFieldNativeSelect,
|
|
101
|
-
wrappers: ['form-field'],
|
|
102
|
-
},
|
|
103
|
-
],
|
|
104
|
-
}),
|
|
105
|
-
]] });
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatNativeSelectModule, decorators: [{
|
|
107
|
-
type: NgModule,
|
|
108
|
-
args: [{
|
|
109
|
-
declarations: [FormlyFieldNativeSelect],
|
|
110
|
-
imports: [
|
|
111
|
-
CommonModule,
|
|
112
|
-
ReactiveFormsModule,
|
|
113
|
-
MatInputModule,
|
|
114
|
-
FormlyMatFormFieldModule,
|
|
115
|
-
FormlySelectModule,
|
|
116
|
-
FormlyModule.forChild({
|
|
117
|
-
types: [
|
|
118
|
-
{
|
|
119
|
-
name: 'native-select',
|
|
120
|
-
component: FormlyFieldNativeSelect,
|
|
121
|
-
wrappers: ['form-field'],
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
}),
|
|
125
|
-
],
|
|
126
|
-
}]
|
|
127
|
-
}] });
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Generated bundle index. Do not edit.
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
export { FormlyFieldNativeSelect, FormlyMatNativeSelectModule };
|
|
134
|
-
//# sourceMappingURL=ngx-formly-material-native-select.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-material-native-select.mjs","sources":["../../../../src/ui/material/native-select/src/native-select.type.ts","../../../../src/ui/material/native-select/src/native-select.module.ts","../../../../src/ui/material/native-select/src/ngx-formly-material-native-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';\n\ninterface NativeSelectProps extends FormlyFieldProps, FormlyFieldSelectProps {}\n\nexport interface FormlyNativeSelectFieldConfig extends FormlyFieldConfig<NativeSelectProps> {\n type: 'native-select' | Type<FormlyFieldNativeSelect>;\n}\n\n@Component({\n selector: 'formly-field-mat-native-select',\n template: `\n <select\n matNativeControl\n [id]=\"id\"\n [name]=\"field.name\"\n [readonly]=\"props.readonly\"\n [required]=\"required\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n >\n <option *ngIf=\"props.placeholder\" [ngValue]=\"undefined\">{{ props.placeholder }}</option>\n <ng-container *ngIf=\"props.options | formlySelectOptions : field | async as opts\">\n <ng-container *ngFor=\"let opt of opts\">\n <option *ngIf=\"!opt.group; else optgroup\" [ngValue]=\"opt.value\" [disabled]=\"opt.disabled\">\n {{ opt.label }}\n </option>\n <ng-template #optgroup>\n <optgroup [label]=\"opt.label\">\n <option *ngFor=\"let child of opt.group\" [ngValue]=\"child.value\" [disabled]=\"child.disabled\">\n {{ child.label }}\n </option>\n </optgroup>\n </ng-template>\n </ng-container>\n </ng-container>\n </select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldNativeSelect extends FieldType<FieldTypeConfig<NativeSelectProps>> {}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\n\nimport { FormlyFieldNativeSelect } from './native-select.type';\n\n@NgModule({\n declarations: [FormlyFieldNativeSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatInputModule,\n\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'native-select',\n component: FormlyFieldNativeSelect,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyMatNativeSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AA2CM,MAAO,uBAAwB,SAAQ,SAA6C,CAAA;;qHAA7E,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,EA9BxB,QAAA,EAAA,gCAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,QAAA,EAAA,QAAA,EAAA,yHAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,IAAA,EAAA,aAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,mBAAA,EAAA,kBAAA,EAAA,OAAA,EAAA,UAAA,CAAA,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,6GAAA,EAAA,MAAA,EAAA,CAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,wIAAA,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AK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,eAAe;AACrB,oCAAA,SAAS,EAAE,uBAAuB;oCAClC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-material-radio.mjs","sources":["../../../../src/ui/material/radio/src/radio.type.ts","../../../../src/ui/material/radio/src/radio.module.ts","../../../../src/ui/material/radio/src/ngx-formly-material-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewChild, AfterViewInit, OnDestroy, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';\nimport { MatRadioGroup } from '@angular/material/radio';\nimport { ɵobserve as observe } from '@ngx-formly/core';\n\ninterface RadioProps extends FormlyFieldProps {\n labelPosition?: 'before' | 'after';\n}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-mat-radio',\n template: `\n <mat-radio-group\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [required]=\"required\"\n [tabindex]=\"props.tabindex\"\n >\n <mat-radio-button\n *ngFor=\"let option of props.options | formlySelectOptions : field | async; let i = index\"\n [id]=\"id + '_' + i\"\n [color]=\"props.color\"\n [labelPosition]=\"props.labelPosition\"\n [disabled]=\"option.disabled\"\n [value]=\"option.value\"\n >\n {{ option.label }}\n </mat-radio-button>\n </mat-radio-group>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> implements AfterViewInit, OnDestroy {\n @ViewChild(MatRadioGroup, { static: true }) radioGroup!: MatRadioGroup;\n override defaultOptions = {\n props: {\n hideFieldUnderline: true,\n floatLabel: 'always' as const,\n tabindex: -1,\n },\n };\n\n private focusObserver!: ReturnType<typeof observe>;\n ngAfterViewInit() {\n this.focusObserver = observe(this.field, ['focus'], ({ currentValue }) => {\n if (this.props.tabindex === -1 && currentValue && this.radioGroup._radios.length > 0) {\n // https://github.com/ngx-formly/ngx-formly/issues/2498\n setTimeout(() => {\n const radio = this.radioGroup.selected ? this.radioGroup.selected : this.radioGroup._radios.first;\n radio.focus();\n });\n }\n });\n }\n\n // TODO: find a solution to prevent scroll on focus\n override onContainerClick() {}\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this.focusObserver && this.focusObserver.unsubscribe();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatRadioModule } from '@angular/material/radio';\n\nimport { FormlyFieldRadio } from './radio.type';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatRadioModule,\n\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n})\nexport class FormlyMatRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["observe","i1"],"mappings":";;;;;;;;;;;;;;AAqCM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAvB5E,IAAA,WAAA,GAAA;;QAyBW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,UAAU,EAAE,QAAiB;gBAC7B,QAAQ,EAAE,CAAC,CAAC;AACb,aAAA;SACF,CAAC;KAsBH;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YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import * as i5 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i3 from '@angular/forms';
|
|
6
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import * as i4 from '@ngx-formly/core';
|
|
8
|
-
import { ɵobserve, FormlyModule } from '@ngx-formly/core';
|
|
9
|
-
import * as i6 from '@ngx-formly/core/select';
|
|
10
|
-
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
11
|
-
import { FieldType, FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';
|
|
12
|
-
import * as i2 from '@angular/material/select';
|
|
13
|
-
import { MatSelect, MatSelectModule } from '@angular/material/select';
|
|
14
|
-
import * as i1 from '@angular/material/core';
|
|
15
|
-
import { MatPseudoCheckboxModule } from '@angular/material/core';
|
|
16
|
-
|
|
17
|
-
class FormlyFieldSelect extends FieldType {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.defaultOptions = {
|
|
21
|
-
props: {
|
|
22
|
-
compareWith(o1, o2) {
|
|
23
|
-
return o1 === o2;
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
set select(select) {
|
|
29
|
-
ɵobserve(select, ['_parentFormField', '_textField'], ({ currentValue }) => {
|
|
30
|
-
if (currentValue) {
|
|
31
|
-
select._preferredOverlayOrigin = select._parentFormField.getConnectedOverlayOrigin();
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
getSelectAllState(options) {
|
|
36
|
-
if (this.empty || this.value.length === 0) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return this.value.length !== this.getSelectAllValue(options).length ? 'indeterminate' : 'checked';
|
|
40
|
-
}
|
|
41
|
-
toggleSelectAll(options) {
|
|
42
|
-
const selectAllValue = this.getSelectAllValue(options);
|
|
43
|
-
this.formControl.markAsDirty();
|
|
44
|
-
this.formControl.setValue(!this.value || this.value.length !== selectAllValue.length ? selectAllValue : []);
|
|
45
|
-
}
|
|
46
|
-
change($event) {
|
|
47
|
-
var _a, _b;
|
|
48
|
-
(_b = (_a = this.props).change) === null || _b === void 0 ? void 0 : _b.call(_a, this.field, $event);
|
|
49
|
-
}
|
|
50
|
-
_getAriaLabelledby() {
|
|
51
|
-
var _a, _b;
|
|
52
|
-
if ((_a = this.props.attributes) === null || _a === void 0 ? void 0 : _a['aria-labelledby']) {
|
|
53
|
-
return this.props.attributes['aria-labelledby'];
|
|
54
|
-
}
|
|
55
|
-
return (_b = this.formField) === null || _b === void 0 ? void 0 : _b._labelId;
|
|
56
|
-
}
|
|
57
|
-
_getAriaLabel() {
|
|
58
|
-
var _a;
|
|
59
|
-
return (_a = this.props.attributes) === null || _a === void 0 ? void 0 : _a['aria-label'];
|
|
60
|
-
}
|
|
61
|
-
getSelectAllValue(options) {
|
|
62
|
-
if (!this.selectAllValue || options !== this.selectAllValue.options) {
|
|
63
|
-
const flatOptions = [];
|
|
64
|
-
options.forEach((o) => (o.group ? flatOptions.push(...o.group) : flatOptions.push(o)));
|
|
65
|
-
this.selectAllValue = {
|
|
66
|
-
options,
|
|
67
|
-
value: flatOptions.filter((o) => !o.disabled).map((o) => o.value),
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
return this.selectAllValue.value;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
-
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldSelect, selector: "formly-field-mat-select", viewQueries: [{ propertyName: "select", first: true, predicate: MatSelect, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
75
|
-
<ng-template #selectAll let-selectOptions="selectOptions">
|
|
76
|
-
<mat-option (click)="toggleSelectAll(selectOptions)">
|
|
77
|
-
<mat-pseudo-checkbox class="mat-option-pseudo-checkbox" [state]="getSelectAllState(selectOptions)">
|
|
78
|
-
</mat-pseudo-checkbox>
|
|
79
|
-
{{ props.selectAllOption }}
|
|
80
|
-
</mat-option>
|
|
81
|
-
</ng-template>
|
|
82
|
-
|
|
83
|
-
<mat-select
|
|
84
|
-
[id]="id"
|
|
85
|
-
[formControl]="formControl"
|
|
86
|
-
[formlyAttributes]="field"
|
|
87
|
-
[placeholder]="props.placeholder"
|
|
88
|
-
[tabIndex]="props.tabindex"
|
|
89
|
-
[required]="required"
|
|
90
|
-
[compareWith]="props.compareWith"
|
|
91
|
-
[multiple]="props.multiple"
|
|
92
|
-
(selectionChange)="change($event)"
|
|
93
|
-
[errorStateMatcher]="errorStateMatcher"
|
|
94
|
-
[aria-label]="_getAriaLabel()"
|
|
95
|
-
[aria-labelledby]="_getAriaLabelledby()"
|
|
96
|
-
[disableOptionCentering]="props.disableOptionCentering"
|
|
97
|
-
[typeaheadDebounceInterval]="props.typeaheadDebounceInterval"
|
|
98
|
-
[panelClass]="props.panelClass"
|
|
99
|
-
>
|
|
100
|
-
<ng-container *ngIf="props.options | formlySelectOptions : field | async as selectOptions">
|
|
101
|
-
<ng-container
|
|
102
|
-
*ngIf="props.multiple && props.selectAllOption"
|
|
103
|
-
[ngTemplateOutlet]="selectAll"
|
|
104
|
-
[ngTemplateOutletContext]="{ selectOptions: selectOptions }"
|
|
105
|
-
>
|
|
106
|
-
</ng-container>
|
|
107
|
-
<ng-container *ngFor="let item of selectOptions">
|
|
108
|
-
<mat-optgroup *ngIf="item.group" [label]="item.label">
|
|
109
|
-
<mat-option *ngFor="let child of item.group" [value]="child.value" [disabled]="child.disabled">
|
|
110
|
-
{{ child.label }}
|
|
111
|
-
</mat-option>
|
|
112
|
-
</mat-optgroup>
|
|
113
|
-
<mat-option *ngIf="!item.group" [value]="item.value" [disabled]="item.disabled">{{ item.label }}</mat-option>
|
|
114
|
-
</ng-container>
|
|
115
|
-
</ng-container>
|
|
116
|
-
</mat-select>
|
|
117
|
-
`, isInline: true, components: [{ type: i1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i1.MatPseudoCheckbox, selector: "mat-pseudo-checkbox", inputs: ["state", "disabled"] }, { type: i2.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i1.MatOptgroup, selector: "mat-optgroup", inputs: ["disabled"], exportAs: ["matOptgroup"] }], directives: [{ type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i5.AsyncPipe, "formlySelectOptions": i6.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
119
|
-
type: Component,
|
|
120
|
-
args: [{
|
|
121
|
-
selector: 'formly-field-mat-select',
|
|
122
|
-
template: `
|
|
123
|
-
<ng-template #selectAll let-selectOptions="selectOptions">
|
|
124
|
-
<mat-option (click)="toggleSelectAll(selectOptions)">
|
|
125
|
-
<mat-pseudo-checkbox class="mat-option-pseudo-checkbox" [state]="getSelectAllState(selectOptions)">
|
|
126
|
-
</mat-pseudo-checkbox>
|
|
127
|
-
{{ props.selectAllOption }}
|
|
128
|
-
</mat-option>
|
|
129
|
-
</ng-template>
|
|
130
|
-
|
|
131
|
-
<mat-select
|
|
132
|
-
[id]="id"
|
|
133
|
-
[formControl]="formControl"
|
|
134
|
-
[formlyAttributes]="field"
|
|
135
|
-
[placeholder]="props.placeholder"
|
|
136
|
-
[tabIndex]="props.tabindex"
|
|
137
|
-
[required]="required"
|
|
138
|
-
[compareWith]="props.compareWith"
|
|
139
|
-
[multiple]="props.multiple"
|
|
140
|
-
(selectionChange)="change($event)"
|
|
141
|
-
[errorStateMatcher]="errorStateMatcher"
|
|
142
|
-
[aria-label]="_getAriaLabel()"
|
|
143
|
-
[aria-labelledby]="_getAriaLabelledby()"
|
|
144
|
-
[disableOptionCentering]="props.disableOptionCentering"
|
|
145
|
-
[typeaheadDebounceInterval]="props.typeaheadDebounceInterval"
|
|
146
|
-
[panelClass]="props.panelClass"
|
|
147
|
-
>
|
|
148
|
-
<ng-container *ngIf="props.options | formlySelectOptions : field | async as selectOptions">
|
|
149
|
-
<ng-container
|
|
150
|
-
*ngIf="props.multiple && props.selectAllOption"
|
|
151
|
-
[ngTemplateOutlet]="selectAll"
|
|
152
|
-
[ngTemplateOutletContext]="{ selectOptions: selectOptions }"
|
|
153
|
-
>
|
|
154
|
-
</ng-container>
|
|
155
|
-
<ng-container *ngFor="let item of selectOptions">
|
|
156
|
-
<mat-optgroup *ngIf="item.group" [label]="item.label">
|
|
157
|
-
<mat-option *ngFor="let child of item.group" [value]="child.value" [disabled]="child.disabled">
|
|
158
|
-
{{ child.label }}
|
|
159
|
-
</mat-option>
|
|
160
|
-
</mat-optgroup>
|
|
161
|
-
<mat-option *ngIf="!item.group" [value]="item.value" [disabled]="item.disabled">{{ item.label }}</mat-option>
|
|
162
|
-
</ng-container>
|
|
163
|
-
</ng-container>
|
|
164
|
-
</mat-select>
|
|
165
|
-
`,
|
|
166
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
167
|
-
}]
|
|
168
|
-
}], propDecorators: { select: [{
|
|
169
|
-
type: ViewChild,
|
|
170
|
-
args: [MatSelect, { static: true }]
|
|
171
|
-
}] } });
|
|
172
|
-
|
|
173
|
-
class FormlyMatSelectModule {
|
|
174
|
-
}
|
|
175
|
-
FormlyMatSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
176
|
-
FormlyMatSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
177
|
-
ReactiveFormsModule,
|
|
178
|
-
MatSelectModule,
|
|
179
|
-
MatPseudoCheckboxModule,
|
|
180
|
-
FormlyMatFormFieldModule,
|
|
181
|
-
FormlySelectModule, i4.FormlyModule] });
|
|
182
|
-
FormlyMatSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatSelectModule, imports: [[
|
|
183
|
-
CommonModule,
|
|
184
|
-
ReactiveFormsModule,
|
|
185
|
-
MatSelectModule,
|
|
186
|
-
MatPseudoCheckboxModule,
|
|
187
|
-
FormlyMatFormFieldModule,
|
|
188
|
-
FormlySelectModule,
|
|
189
|
-
FormlyModule.forChild({
|
|
190
|
-
types: [
|
|
191
|
-
{
|
|
192
|
-
name: 'select',
|
|
193
|
-
component: FormlyFieldSelect,
|
|
194
|
-
wrappers: ['form-field'],
|
|
195
|
-
},
|
|
196
|
-
{ name: 'enum', extends: 'select' },
|
|
197
|
-
],
|
|
198
|
-
}),
|
|
199
|
-
]] });
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyMatSelectModule, decorators: [{
|
|
201
|
-
type: NgModule,
|
|
202
|
-
args: [{
|
|
203
|
-
declarations: [FormlyFieldSelect],
|
|
204
|
-
imports: [
|
|
205
|
-
CommonModule,
|
|
206
|
-
ReactiveFormsModule,
|
|
207
|
-
MatSelectModule,
|
|
208
|
-
MatPseudoCheckboxModule,
|
|
209
|
-
FormlyMatFormFieldModule,
|
|
210
|
-
FormlySelectModule,
|
|
211
|
-
FormlyModule.forChild({
|
|
212
|
-
types: [
|
|
213
|
-
{
|
|
214
|
-
name: 'select',
|
|
215
|
-
component: FormlyFieldSelect,
|
|
216
|
-
wrappers: ['form-field'],
|
|
217
|
-
},
|
|
218
|
-
{ name: 'enum', extends: 'select' },
|
|
219
|
-
],
|
|
220
|
-
}),
|
|
221
|
-
],
|
|
222
|
-
}]
|
|
223
|
-
}] });
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Generated bundle index. Do not edit.
|
|
227
|
-
*/
|
|
228
|
-
|
|
229
|
-
export { FormlyFieldSelect, FormlyMatSelectModule };
|
|
230
|
-
//# sourceMappingURL=ngx-formly-material-select.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-material-select.mjs","sources":["../../../../src/ui/material/select/src/select.type.ts","../../../../src/ui/material/select/src/select.module.ts","../../../../src/ui/material/select/src/ngx-formly-material-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type, ViewChild } from '@angular/core';\nimport { MatSelect, MatSelectChange } from '@angular/material/select';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\nimport { ɵobserve as observe } from '@ngx-formly/core';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {\n multiple?: boolean;\n selectAllOption?: string;\n disableOptionCentering?: boolean;\n typeaheadDebounceInterval?: number;\n compareWith?: (o1: any, o2: any) => boolean;\n panelClass?: string;\n}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-mat-select',\n template: `\n <ng-template #selectAll let-selectOptions=\"selectOptions\">\n <mat-option (click)=\"toggleSelectAll(selectOptions)\">\n <mat-pseudo-checkbox class=\"mat-option-pseudo-checkbox\" [state]=\"getSelectAllState(selectOptions)\">\n </mat-pseudo-checkbox>\n {{ props.selectAllOption }}\n </mat-option>\n </ng-template>\n\n <mat-select\n [id]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"props.placeholder\"\n [tabIndex]=\"props.tabindex\"\n [required]=\"required\"\n [compareWith]=\"props.compareWith\"\n [multiple]=\"props.multiple\"\n (selectionChange)=\"change($event)\"\n [errorStateMatcher]=\"errorStateMatcher\"\n [aria-label]=\"_getAriaLabel()\"\n [aria-labelledby]=\"_getAriaLabelledby()\"\n [disableOptionCentering]=\"props.disableOptionCentering\"\n [typeaheadDebounceInterval]=\"props.typeaheadDebounceInterval\"\n [panelClass]=\"props.panelClass\"\n >\n <ng-container *ngIf=\"props.options | formlySelectOptions : field | async as selectOptions\">\n <ng-container\n *ngIf=\"props.multiple && props.selectAllOption\"\n [ngTemplateOutlet]=\"selectAll\"\n [ngTemplateOutletContext]=\"{ selectOptions: selectOptions }\"\n >\n </ng-container>\n <ng-container *ngFor=\"let item of selectOptions\">\n <mat-optgroup *ngIf=\"item.group\" [label]=\"item.label\">\n <mat-option *ngFor=\"let child of item.group\" [value]=\"child.value\" [disabled]=\"child.disabled\">\n {{ child.label }}\n </mat-option>\n </mat-optgroup>\n <mat-option *ngIf=\"!item.group\" [value]=\"item.value\" [disabled]=\"item.disabled\">{{ item.label }}</mat-option>\n </ng-container>\n </ng-container>\n </mat-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n @ViewChild(MatSelect, { static: true }) set select(select: any) {\n observe(select, ['_parentFormField', '_textField'], ({ currentValue }) => {\n if (currentValue) {\n select._preferredOverlayOrigin = select._parentFormField.getConnectedOverlayOrigin();\n }\n });\n }\n override defaultOptions = {\n props: {\n compareWith(o1: any, o2: any) {\n return o1 === o2;\n },\n },\n };\n\n private selectAllValue!: { options: any; value: any[] };\n\n getSelectAllState(options: any[]) {\n if (this.empty || this.value.length === 0) {\n return null;\n }\n\n return this.value.length !== this.getSelectAllValue(options).length ? 'indeterminate' : 'checked';\n }\n\n toggleSelectAll(options: any[]) {\n const selectAllValue = this.getSelectAllValue(options);\n this.formControl.markAsDirty();\n this.formControl.setValue(!this.value || this.value.length !== selectAllValue.length ? selectAllValue : []);\n }\n\n change($event: MatSelectChange) {\n this.props.change?.(this.field, $event);\n }\n\n _getAriaLabelledby() {\n if (this.props.attributes?.['aria-labelledby']) {\n return this.props.attributes['aria-labelledby'] as string;\n }\n\n return this.formField?._labelId;\n }\n\n _getAriaLabel() {\n return this.props.attributes?.['aria-label'] as string;\n }\n\n private getSelectAllValue(options: any[]) {\n if (!this.selectAllValue || options !== this.selectAllValue.options) {\n const flatOptions: any[] = [];\n options.forEach((o) => (o.group ? flatOptions.push(...o.group) : flatOptions.push(o)));\n\n this.selectAllValue = {\n options,\n value: flatOptions.filter((o) => !o.disabled).map((o) => o.value),\n };\n }\n\n return this.selectAllValue.value;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyMatFormFieldModule } from '@ngx-formly/material/form-field';\nimport { MatSelectModule } from '@angular/material/select';\n\nimport { FormlyFieldSelect } from './select.type';\nimport { MatPseudoCheckboxModule } from '@angular/material/core';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n MatSelectModule,\n MatPseudoCheckboxModule,\n\n FormlyMatFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n }),\n ],\n})\nexport class FormlyMatSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["observe","i1"],"mappings":";;;;;;;;;;;;;;;;AAoEM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAhD9E,IAAA,WAAA,GAAA;;QAwDW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,CAAC,EAAO,EAAE,EAAO,EAAA;oBAC1B,OAAO,EAAE,KAAK,EAAE,CAAC;iBAClB;AACF,aAAA;SACF,CAAC;KA+CH;IA5DC,IAA4C,MAAM,CAAC,MAAW,EAAA;AAC5D,QAAAA,QAAO,CAAC,MAAM,EAAE,CAAC,kBAAkB,EAAE,YAAY,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,KAAI;AACvE,YAAA,IAAI,YAAY,EAAE;gBAChB,MAAM,CAAC,uBAAuB,GAAG,MAAM,CAAC,gBAAgB,CAAC,yBAAyB,EAAE,CAAC;AACtF,aAAA;AACH,SAAC,CAAC,CAAC;KACJ;AAWD,IAAA,i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