ngx-render-material-forms 0.0.6 → 0.0.9

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.
@@ -1,100 +1,100 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, Component, Input, ViewChild, ViewContainerRef, ViewChildren, EventEmitter, Output, forwardRef, Directive, Optional, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
- import * as i2 from '@angular/forms';
6
- import { FormControl, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
7
- import * as i4$3 from '@angular/material/input';
8
- import { MAT_INPUT_VALUE_ACCESSOR, MatInputModule } from '@angular/material/input';
9
- import * as i2$1 from '@angular/material/button';
10
- import { MatButtonModule } from '@angular/material/button';
11
- import * as i3 from '@angular/material/form-field';
12
- import { MatFormFieldModule } from '@angular/material/form-field';
13
- import * as i4$6 from '@angular/material/checkbox';
14
- import { MatCheckboxModule } from '@angular/material/checkbox';
15
- import * as i4$7 from '@angular/material/radio';
16
- import { MatRadioModule } from '@angular/material/radio';
17
- import * as i4$4 from '@angular/material/select';
18
- import { MatSelectModule } from '@angular/material/select';
19
- import { MatListModule } from '@angular/material/list';
20
- import * as i4$5 from '@angular/material/chips';
21
- import { MatChipsModule } from '@angular/material/chips';
22
- import * as i2$2 from '@angular/material/expansion';
23
- import { MatExpansionModule } from '@angular/material/expansion';
24
- import * as i4 from '@angular/material/card';
25
- import { MatCardModule } from '@angular/material/card';
26
- import * as i2$3 from '@angular/material/tabs';
27
- import { MatTabsModule } from '@angular/material/tabs';
28
- import * as i3$2 from '@angular/material/table';
29
- import { MatTableDataSource, MatTableModule } from '@angular/material/table';
30
- import * as i5$2 from '@angular/material/datepicker';
31
- import { MatDatepickerModule } from '@angular/material/datepicker';
32
- import * as i3$4 from '@angular/material/progress-spinner';
33
- import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
34
- import * as i4$1 from '@angular/material/icon';
35
- import { MatIconModule } from '@angular/material/icon';
36
- import * as i5$1 from '@angular/material/core';
37
- import { MatNativeDateModule } from '@angular/material/core';
38
- import Webform from 'formiojs/Webform.js';
39
- import FormioComponent$2 from 'formiojs/components/_classes/component/Component.js';
40
- import TextFieldComponent from 'formiojs/components/textfield/TextField.js';
41
- import Validator from 'formiojs/validator/Validator.js';
42
- import unescape from 'lodash/unescape';
43
- import get from 'lodash/get';
44
- import * as i5 from '@angular/flex-layout/flex';
45
- import * as i4$2 from '@angular/flex-layout/extended';
46
- import * as i3$1 from '@angular/material/tooltip';
47
- import { MatTooltipModule } from '@angular/material/tooltip';
48
- import PasswordComponent from 'formiojs/components/password/Password.js';
49
- import EmailComponent from 'formiojs/components/email/Email.js';
50
- import UrlComponent from 'formiojs/components/url/Url.js';
51
- import PhoneNumberComponent from 'formiojs/components/phonenumber/PhoneNumber.js';
52
- import NumberComponent from 'formiojs/components/number/Number.js';
53
- import _, { get as get$1 } from 'lodash';
54
- import CurrencyComponent from 'formiojs/components/currency/Currency.js';
55
- import DayComponent from 'formiojs/components/day/Day.js';
56
- import { momentDate } from 'formiojs/utils/utils.js';
57
- import HiddenComponent from 'formiojs/components/hidden/Hidden.js';
58
- import HtmlComponent from 'formiojs/components/html/HTML.js';
59
- import { ENTER, COMMA } from '@angular/cdk/keycodes';
60
- import TagsComponent from 'formiojs/components/tags/Tags.js';
61
- import ButtonComponent from 'formiojs/components/button/Button.js';
62
- import TextAreaComponent from 'formiojs/components/textarea/TextArea.js';
63
- import isNil from 'lodash/isNil';
64
- import PanelComponent from 'formiojs/components/panel/Panel.js';
65
- import ColumnsComponent from 'formiojs/components/columns/Columns.js';
66
- import ContainerComponent from 'formiojs/components/container/Container.js';
67
- import TabsComponent from 'formiojs/components/tabs/Tabs.js';
68
- import DateTimeComponent from 'formiojs/components/datetime/DateTime.js';
69
- import TimeComponent from 'formiojs/components/time/Time.js';
70
- import * as moment_ from 'moment';
71
- import CheckboxComponent from 'formiojs/components/checkbox/Checkbox.js';
72
- import FieldsetComponent from 'formiojs/components/fieldset/Fieldset.js';
73
- import ContentComponent from 'formiojs/components/content/Content.js';
74
- import SignatureComponent from 'formiojs/components/signature/Signature.js';
75
- import SurveyComponent from 'formiojs/components/survey/Survey.js';
76
- import RadioComponent from 'formiojs/components/radio/Radio.js';
77
- import SelectBoxesComponent from 'formiojs/components/selectboxes/SelectBoxes.js';
78
- import SelectComponent from 'formiojs/components/select/Select.js';
79
- import { Subject, takeUntil } from 'rxjs';
80
- import * as i7 from 'ngx-mat-select-search';
81
- import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
82
- import WellComponent from 'formiojs/components/well/Well.js';
83
- import DataGridComponent from 'formiojs/components/datagrid/DataGrid.js';
84
- import * as i7$1 from '@angular/cdk/drag-drop';
85
- import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
86
- import EditGridComponent from 'formiojs/components/editgrid/EditGrid.js';
87
- import Components$2 from 'formiojs/components/Components';
88
- import isString from 'lodash/isString';
89
- import TableComponent from 'formiojs/components/table/Table.js';
90
- import Wizard from 'formiojs/Wizard';
91
- import Displays from 'formiojs/displays/Displays';
92
- import * as i3$3 from '@angular/material/stepper';
93
- import { MatStepperModule } from '@angular/material/stepper';
94
- import * as i1$1 from '@formio/angular';
95
- import { FormioBaseComponent } from '@formio/angular';
96
- import { FlexLayoutModule } from '@angular/flex-layout';
97
-
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, Input, ViewChild, ViewContainerRef, ViewChildren, EventEmitter, Output, forwardRef, Directive, Optional, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i2 from '@angular/forms';
6
+ import { FormControl, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
7
+ import * as i4$3 from '@angular/material/input';
8
+ import { MAT_INPUT_VALUE_ACCESSOR, MatInputModule } from '@angular/material/input';
9
+ import * as i2$1 from '@angular/material/button';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import * as i3 from '@angular/material/form-field';
12
+ import { MatFormFieldModule } from '@angular/material/form-field';
13
+ import * as i4$6 from '@angular/material/checkbox';
14
+ import { MatCheckboxModule } from '@angular/material/checkbox';
15
+ import * as i4$7 from '@angular/material/radio';
16
+ import { MatRadioModule } from '@angular/material/radio';
17
+ import * as i4$4 from '@angular/material/select';
18
+ import { MatSelectModule } from '@angular/material/select';
19
+ import { MatListModule } from '@angular/material/list';
20
+ import * as i4$5 from '@angular/material/chips';
21
+ import { MatChipsModule } from '@angular/material/chips';
22
+ import * as i2$2 from '@angular/material/expansion';
23
+ import { MatExpansionModule } from '@angular/material/expansion';
24
+ import * as i4 from '@angular/material/card';
25
+ import { MatCardModule } from '@angular/material/card';
26
+ import * as i2$3 from '@angular/material/tabs';
27
+ import { MatTabsModule } from '@angular/material/tabs';
28
+ import * as i3$2 from '@angular/material/table';
29
+ import { MatTableDataSource, MatTableModule } from '@angular/material/table';
30
+ import * as i5$2 from '@angular/material/datepicker';
31
+ import { MatDatepickerModule } from '@angular/material/datepicker';
32
+ import * as i3$4 from '@angular/material/progress-spinner';
33
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
34
+ import * as i4$1 from '@angular/material/icon';
35
+ import { MatIconModule } from '@angular/material/icon';
36
+ import * as i5$1 from '@angular/material/core';
37
+ import { MatNativeDateModule } from '@angular/material/core';
38
+ import Webform from 'formiojs/Webform.js';
39
+ import FormioComponent$2 from 'formiojs/components/_classes/component/Component.js';
40
+ import TextFieldComponent from 'formiojs/components/textfield/TextField.js';
41
+ import Validator from 'formiojs/validator/Validator.js';
42
+ import unescape from 'lodash/unescape';
43
+ import get from 'lodash/get';
44
+ import * as i5 from '@angular/flex-layout/flex';
45
+ import * as i4$2 from '@angular/flex-layout/extended';
46
+ import * as i3$1 from '@angular/material/tooltip';
47
+ import { MatTooltipModule } from '@angular/material/tooltip';
48
+ import PasswordComponent from 'formiojs/components/password/Password.js';
49
+ import EmailComponent from 'formiojs/components/email/Email.js';
50
+ import UrlComponent from 'formiojs/components/url/Url.js';
51
+ import PhoneNumberComponent from 'formiojs/components/phonenumber/PhoneNumber.js';
52
+ import NumberComponent from 'formiojs/components/number/Number.js';
53
+ import _, { get as get$1 } from 'lodash';
54
+ import CurrencyComponent from 'formiojs/components/currency/Currency.js';
55
+ import DayComponent from 'formiojs/components/day/Day.js';
56
+ import { momentDate } from 'formiojs/utils/utils.js';
57
+ import HiddenComponent from 'formiojs/components/hidden/Hidden.js';
58
+ import HtmlComponent from 'formiojs/components/html/HTML.js';
59
+ import { ENTER, COMMA } from '@angular/cdk/keycodes';
60
+ import TagsComponent from 'formiojs/components/tags/Tags.js';
61
+ import ButtonComponent from 'formiojs/components/button/Button.js';
62
+ import TextAreaComponent from 'formiojs/components/textarea/TextArea.js';
63
+ import isNil from 'lodash/isNil';
64
+ import PanelComponent from 'formiojs/components/panel/Panel.js';
65
+ import ColumnsComponent from 'formiojs/components/columns/Columns.js';
66
+ import ContainerComponent from 'formiojs/components/container/Container.js';
67
+ import TabsComponent from 'formiojs/components/tabs/Tabs.js';
68
+ import DateTimeComponent from 'formiojs/components/datetime/DateTime.js';
69
+ import TimeComponent from 'formiojs/components/time/Time.js';
70
+ import * as moment_ from 'moment';
71
+ import CheckboxComponent from 'formiojs/components/checkbox/Checkbox.js';
72
+ import FieldsetComponent from 'formiojs/components/fieldset/Fieldset.js';
73
+ import ContentComponent from 'formiojs/components/content/Content.js';
74
+ import SignatureComponent from 'formiojs/components/signature/Signature.js';
75
+ import SurveyComponent from 'formiojs/components/survey/Survey.js';
76
+ import RadioComponent from 'formiojs/components/radio/Radio.js';
77
+ import SelectBoxesComponent from 'formiojs/components/selectboxes/SelectBoxes.js';
78
+ import SelectComponent from 'formiojs/components/select/Select.js';
79
+ import { Subject, takeUntil } from 'rxjs';
80
+ import * as i7 from 'ngx-mat-select-search';
81
+ import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
82
+ import WellComponent from 'formiojs/components/well/Well.js';
83
+ import DataGridComponent from 'formiojs/components/datagrid/DataGrid.js';
84
+ import * as i7$1 from '@angular/cdk/drag-drop';
85
+ import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
86
+ import EditGridComponent from 'formiojs/components/editgrid/EditGrid.js';
87
+ import Components$2 from 'formiojs/components/Components';
88
+ import isString from 'lodash/isString';
89
+ import TableComponent from 'formiojs/components/table/Table.js';
90
+ import Wizard from 'formiojs/Wizard';
91
+ import Displays from 'formiojs/displays/Displays';
92
+ import * as i3$3 from '@angular/material/stepper';
93
+ import { MatStepperModule } from '@angular/material/stepper';
94
+ import * as i1$1 from '@formio/angular';
95
+ import { FormioBaseComponent } from '@formio/angular';
96
+ import { FlexLayoutModule } from '@angular/flex-layout';
97
+
98
98
  class NgxRenderMaterialFormsService {
99
99
  constructor() { }
100
100
  }
@@ -105,28 +105,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
105
105
  args: [{
106
106
  providedIn: 'root'
107
107
  }]
108
- }], ctorParameters: function () { return []; } });
109
-
108
+ }], ctorParameters: function () { return []; } });
109
+
110
110
  class NgxRenderMaterialFormsComponent {
111
111
  constructor() { }
112
112
  ngOnInit() {
113
113
  }
114
114
  }
115
115
  NgxRenderMaterialFormsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NgxRenderMaterialFormsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
116
- NgxRenderMaterialFormsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: NgxRenderMaterialFormsComponent, selector: "NgxMat-NgxRenderMaterialForms", ngImport: i0, template: `
117
- <p>
118
- ngx-render-material-forms works!
119
- </p>
116
+ NgxRenderMaterialFormsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: NgxRenderMaterialFormsComponent, selector: "NgxMat-NgxRenderMaterialForms", ngImport: i0, template: `
117
+ <p>
118
+ ngx-render-material-forms works!
119
+ </p>
120
120
  `, isInline: true });
121
121
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NgxRenderMaterialFormsComponent, decorators: [{
122
122
  type: Component,
123
- args: [{ selector: 'NgxMat-NgxRenderMaterialForms', template: `
124
- <p>
125
- ngx-render-material-forms works!
126
- </p>
123
+ args: [{ selector: 'NgxMat-NgxRenderMaterialForms', template: `
124
+ <p>
125
+ ngx-render-material-forms works!
126
+ </p>
127
127
  ` }]
128
- }], ctorParameters: function () { return []; } });
129
-
128
+ }], ctorParameters: function () { return []; } });
129
+
130
130
  console.log('Webform=>', Webform);
131
131
  Webform.prototype.redraw = function () {
132
132
  return this.render();
@@ -143,8 +143,8 @@ Webform.prototype.render = function () {
143
143
  this.renderComponents();
144
144
  this.setValue(this._submission);
145
145
  }
146
- };
147
-
146
+ };
147
+
148
148
  var FormioComponent$1 = (() => {
149
149
  const beforeSubmit = FormioComponent$2.prototype.beforeSubmit;
150
150
  FormioComponent$2.prototype.beforeSubmit = function (...args) {
@@ -174,8 +174,8 @@ var FormioComponent$1 = (() => {
174
174
  }
175
175
  });
176
176
  return FormioComponent$2;
177
- })();
178
-
177
+ })();
178
+
179
179
  // @dynamic
180
180
  class FormioControl extends FormControl {
181
181
  constructor(...args) {
@@ -208,8 +208,8 @@ class FormioControl extends FormControl {
208
208
  }
209
209
  };
210
210
  }
211
- }
212
-
211
+ }
212
+
213
213
  class MaterialComponent {
214
214
  constructor(element, ref) {
215
215
  this.element = element;
@@ -345,8 +345,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
345
345
  }], control: [{
346
346
  type: Input
347
347
  }] } });
348
- FormioComponent$1.MaterialComponent = MaterialComponent;
349
-
348
+ FormioComponent$1.MaterialComponent = MaterialComponent;
349
+
350
350
  var LabelPositions;
351
351
  (function (LabelPositions) {
352
352
  LabelPositions["RIGHT_RIGHT"] = "right-right";
@@ -355,8 +355,8 @@ var LabelPositions;
355
355
  LabelPositions["LEFT_RIGHT"] = "left-right";
356
356
  LabelPositions["BOTTOM"] = "bottom";
357
357
  LabelPositions["TOP"] = "top";
358
- })(LabelPositions || (LabelPositions = {}));
359
-
358
+ })(LabelPositions || (LabelPositions = {}));
359
+
360
360
  class LabelComponent {
361
361
  }
362
362
  LabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -366,8 +366,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
366
366
  args: [{ selector: 'span[matFormioLabel]', template: "<ng-container *ngIf=\"instance\">\n {{ instance.component.label }}<span class=\"required-star\" *ngIf=\"instance.component.validate.required\">*</span>\n <mat-icon *ngIf=\"instance.component.tooltip\" style=\"font-size: 1rem;\"\n matTooltip=\"{{ instance.component.tooltip }}\" matSuffix\n >\n info\n </mat-icon>\n</ng-container>\n", styles: [":host{pointer-events:all;display:block}.required-star{margin-left:.2rem;color:red;font-size:.8rem;vertical-align:top}\n"] }]
367
367
  }], propDecorators: { instance: [{
368
368
  type: Input
369
- }] } });
370
-
369
+ }] } });
370
+
371
371
  class FormioFormFieldComponent {
372
372
  constructor() {
373
373
  this.labelPositions = LabelPositions;
@@ -416,38 +416,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
416
416
  args: ['instance']
417
417
  }], componentTemplate: [{
418
418
  type: Input
419
- }] } });
420
-
421
- const TEXTFIELD_TEMPLATE = `
422
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
423
- <ng-template #componentTemplate let-hasLabel>
424
- <mat-form-field [appearance]="getFormFieldAppearance()" fxFill>
425
-
426
- <mat-label *ngIf="hasLabel">
427
- <span [instance]="instance" matFormioLabel></span>
428
- </mat-label>
429
-
430
- <span *ngIf="instance.component.prefix && instance.type !== 'currency'"
431
- matPrefix
432
- >
433
- {{ instance.component.prefix }}&nbsp;
434
- </span>
435
- <input matInput
436
- type="{{ inputType }}"
437
- [formControl]="control"
438
- [placeholder]="instance.component.placeholder"
439
- (input)="onChange()" #input
440
- >
441
- <span *ngIf="instance.component.suffix" matSuffix>{{ instance.component.suffix }}</span>
442
-
443
- <mat-hint *ngIf="instance.component.showWordCount || instance.component.showCharCount">
444
- {{ getHint() }}
445
- </mat-hint>
446
-
447
- <br/>
448
- <mat-error *ngIf="isError()" >{{ getErrorMessage() }}</mat-error>
449
- </mat-form-field>
450
- </ng-template>
419
+ }] } });
420
+
421
+ const TEXTFIELD_TEMPLATE = `
422
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
423
+ <ng-template #componentTemplate let-hasLabel>
424
+ <mat-form-field [appearance]="getFormFieldAppearance()" fxFill>
425
+
426
+ <mat-label *ngIf="hasLabel">
427
+ <span [instance]="instance" matFormioLabel></span>
428
+ </mat-label>
429
+
430
+ <span *ngIf="instance.component.prefix && instance.type !== 'currency'"
431
+ matPrefix
432
+ >
433
+ {{ instance.component.prefix }}&nbsp;
434
+ </span>
435
+ <input matInput
436
+ type="{{ inputType }}"
437
+ [formControl]="control"
438
+ [placeholder]="instance.component.placeholder"
439
+ (input)="onChange()" #input
440
+ >
441
+ <span *ngIf="instance.component.suffix" matSuffix>{{ instance.component.suffix }}</span>
442
+
443
+ <mat-hint *ngIf="instance.component.showWordCount || instance.component.showCharCount">
444
+ {{ getHint() }}
445
+ </mat-hint>
446
+
447
+ <br/>
448
+ <mat-error *ngIf="isError()" >{{ getErrorMessage() }}</mat-error>
449
+ </mat-form-field>
450
+ </ng-template>
451
451
  `;
452
452
  class MaterialTextfieldComponent extends MaterialComponent {
453
453
  constructor() {
@@ -512,8 +512,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
512
512
  template: TEXTFIELD_TEMPLATE
513
513
  }]
514
514
  }] });
515
- TextFieldComponent.MaterialComponent = MaterialTextfieldComponent;
516
-
515
+ TextFieldComponent.MaterialComponent = MaterialTextfieldComponent;
516
+
517
517
  class MaterialPasswordComponent extends MaterialTextfieldComponent {
518
518
  constructor() {
519
519
  super(...arguments);
@@ -529,8 +529,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
529
529
  template: TEXTFIELD_TEMPLATE
530
530
  }]
531
531
  }] });
532
- PasswordComponent.MaterialComponent = MaterialPasswordComponent;
533
-
532
+ PasswordComponent.MaterialComponent = MaterialPasswordComponent;
533
+
534
534
  class MaterialEmailComponent extends MaterialTextfieldComponent {
535
535
  constructor() {
536
536
  super(...arguments);
@@ -546,8 +546,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
546
546
  template: TEXTFIELD_TEMPLATE
547
547
  }]
548
548
  }] });
549
- EmailComponent.MaterialComponent = MaterialEmailComponent;
550
-
549
+ EmailComponent.MaterialComponent = MaterialEmailComponent;
550
+
551
551
  class MaterialUrlComponent extends MaterialTextfieldComponent {
552
552
  constructor() {
553
553
  super(...arguments);
@@ -563,8 +563,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
563
563
  template: TEXTFIELD_TEMPLATE
564
564
  }]
565
565
  }] });
566
- UrlComponent.MaterialComponent = MaterialUrlComponent;
567
-
566
+ UrlComponent.MaterialComponent = MaterialUrlComponent;
567
+
568
568
  class MaterialPhoneNumberComponent extends MaterialTextfieldComponent {
569
569
  constructor() {
570
570
  super(...arguments);
@@ -580,8 +580,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
580
580
  template: TEXTFIELD_TEMPLATE
581
581
  }]
582
582
  }] });
583
- PhoneNumberComponent.MaterialComponent = MaterialPhoneNumberComponent;
584
-
583
+ PhoneNumberComponent.MaterialComponent = MaterialPhoneNumberComponent;
584
+
585
585
  class MaterialNumberComponent extends MaterialTextfieldComponent {
586
586
  constructor(element, ref, renderer) {
587
587
  super(element, ref);
@@ -633,8 +633,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
633
633
  template: TEXTFIELD_TEMPLATE
634
634
  }]
635
635
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }]; } });
636
- NumberComponent.MaterialComponent = MaterialNumberComponent;
637
-
636
+ NumberComponent.MaterialComponent = MaterialNumberComponent;
637
+
638
638
  class MaterialCurrencyComponent extends MaterialNumberComponent {
639
639
  constructor() {
640
640
  super(...arguments);
@@ -654,8 +654,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
654
654
  template: TEXTFIELD_TEMPLATE
655
655
  }]
656
656
  }] });
657
- CurrencyComponent.MaterialComponent = MaterialCurrencyComponent;
658
-
657
+ CurrencyComponent.MaterialComponent = MaterialCurrencyComponent;
658
+
659
659
  DayComponent.prototype.getFieldValue = function (name) {
660
660
  return this.refs[name] ? this.refs[name].value : '';
661
661
  };
@@ -706,96 +706,96 @@ class MaterialDayComponent extends MaterialComponent {
706
706
  }
707
707
  }
708
708
  MaterialDayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDayComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
709
- MaterialDayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialDayComponent, selector: "mat-formio-day", usesInheritance: true, ngImport: i0, template: `
710
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
711
- <ng-template #componentTemplate let-hasLabel>
712
- <mat-label *ngIf="hasLabel">
713
- <span [instance]="instance" matFormioLabel></span>
714
- </mat-label>
715
- <mat-form-field *ngIf="instance.dayFirst && instance.showDay">
716
- <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
717
- <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
718
- <mat-option *ngFor="let day of instance.days" [value]="day.value">
719
- {{day.label}}
720
- </mat-option>
721
- </mat-select>
722
- </mat-form-field>
723
- <mat-form-field *ngIf="instance.showMonth">
724
- <mat-label *ngIf="!instance.component.hideInputLabels">Month</mat-label>
725
- <mat-select [formControl]="monthControl" (selectionChange)="onChange()" [required]="instance.monthRequired">
726
- <mat-option *ngFor="let month of instance.months" [value]="month.value">
727
- {{month.label}}
728
- </mat-option>
729
- </mat-select>
730
- </mat-form-field>
731
- <mat-form-field *ngIf="!instance.dayFirst && instance.showDay">
732
- <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
733
- <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
734
- <mat-option *ngFor="let day of instance.days" [value]="day.value">
735
- {{day.label}}
736
- </mat-option>
737
- </mat-select>
738
- </mat-form-field>
739
- <mat-form-field *ngIf="instance.showYear">
740
- <mat-label *ngIf="!instance.component.hideInputLabels">Year</mat-label>
741
- <mat-select [formControl]="yearControl" (selectionChange)="onChange()" [required]="instance.yearRequired">
742
- <mat-option *ngFor="let year of instance.years" [value]="year.value">
743
- {{year.label}}
744
- </mat-option>
745
- </mat-select>
746
- </mat-form-field>
747
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
748
- </ng-template>
709
+ MaterialDayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialDayComponent, selector: "mat-formio-day", usesInheritance: true, ngImport: i0, template: `
710
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
711
+ <ng-template #componentTemplate let-hasLabel>
712
+ <mat-label *ngIf="hasLabel">
713
+ <span [instance]="instance" matFormioLabel></span>
714
+ </mat-label>
715
+ <mat-form-field *ngIf="instance.dayFirst && instance.showDay">
716
+ <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
717
+ <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
718
+ <mat-option *ngFor="let day of instance.days" [value]="day.value">
719
+ {{day.label}}
720
+ </mat-option>
721
+ </mat-select>
722
+ </mat-form-field>
723
+ <mat-form-field *ngIf="instance.showMonth">
724
+ <mat-label *ngIf="!instance.component.hideInputLabels">Month</mat-label>
725
+ <mat-select [formControl]="monthControl" (selectionChange)="onChange()" [required]="instance.monthRequired">
726
+ <mat-option *ngFor="let month of instance.months" [value]="month.value">
727
+ {{month.label}}
728
+ </mat-option>
729
+ </mat-select>
730
+ </mat-form-field>
731
+ <mat-form-field *ngIf="!instance.dayFirst && instance.showDay">
732
+ <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
733
+ <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
734
+ <mat-option *ngFor="let day of instance.days" [value]="day.value">
735
+ {{day.label}}
736
+ </mat-option>
737
+ </mat-select>
738
+ </mat-form-field>
739
+ <mat-form-field *ngIf="instance.showYear">
740
+ <mat-label *ngIf="!instance.component.hideInputLabels">Year</mat-label>
741
+ <mat-select [formControl]="yearControl" (selectionChange)="onChange()" [required]="instance.yearRequired">
742
+ <mat-option *ngFor="let year of instance.years" [value]="year.value">
743
+ {{year.label}}
744
+ </mat-option>
745
+ </mat-select>
746
+ </mat-form-field>
747
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
748
+ </ng-template>
749
749
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4$4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
750
750
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDayComponent, decorators: [{
751
751
  type: Component,
752
752
  args: [{
753
753
  selector: 'mat-formio-day',
754
- template: `
755
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
756
- <ng-template #componentTemplate let-hasLabel>
757
- <mat-label *ngIf="hasLabel">
758
- <span [instance]="instance" matFormioLabel></span>
759
- </mat-label>
760
- <mat-form-field *ngIf="instance.dayFirst && instance.showDay">
761
- <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
762
- <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
763
- <mat-option *ngFor="let day of instance.days" [value]="day.value">
764
- {{day.label}}
765
- </mat-option>
766
- </mat-select>
767
- </mat-form-field>
768
- <mat-form-field *ngIf="instance.showMonth">
769
- <mat-label *ngIf="!instance.component.hideInputLabels">Month</mat-label>
770
- <mat-select [formControl]="monthControl" (selectionChange)="onChange()" [required]="instance.monthRequired">
771
- <mat-option *ngFor="let month of instance.months" [value]="month.value">
772
- {{month.label}}
773
- </mat-option>
774
- </mat-select>
775
- </mat-form-field>
776
- <mat-form-field *ngIf="!instance.dayFirst && instance.showDay">
777
- <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
778
- <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
779
- <mat-option *ngFor="let day of instance.days" [value]="day.value">
780
- {{day.label}}
781
- </mat-option>
782
- </mat-select>
783
- </mat-form-field>
784
- <mat-form-field *ngIf="instance.showYear">
785
- <mat-label *ngIf="!instance.component.hideInputLabels">Year</mat-label>
786
- <mat-select [formControl]="yearControl" (selectionChange)="onChange()" [required]="instance.yearRequired">
787
- <mat-option *ngFor="let year of instance.years" [value]="year.value">
788
- {{year.label}}
789
- </mat-option>
790
- </mat-select>
791
- </mat-form-field>
792
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
793
- </ng-template>
754
+ template: `
755
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
756
+ <ng-template #componentTemplate let-hasLabel>
757
+ <mat-label *ngIf="hasLabel">
758
+ <span [instance]="instance" matFormioLabel></span>
759
+ </mat-label>
760
+ <mat-form-field *ngIf="instance.dayFirst && instance.showDay">
761
+ <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
762
+ <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
763
+ <mat-option *ngFor="let day of instance.days" [value]="day.value">
764
+ {{day.label}}
765
+ </mat-option>
766
+ </mat-select>
767
+ </mat-form-field>
768
+ <mat-form-field *ngIf="instance.showMonth">
769
+ <mat-label *ngIf="!instance.component.hideInputLabels">Month</mat-label>
770
+ <mat-select [formControl]="monthControl" (selectionChange)="onChange()" [required]="instance.monthRequired">
771
+ <mat-option *ngFor="let month of instance.months" [value]="month.value">
772
+ {{month.label}}
773
+ </mat-option>
774
+ </mat-select>
775
+ </mat-form-field>
776
+ <mat-form-field *ngIf="!instance.dayFirst && instance.showDay">
777
+ <mat-label *ngIf="!instance.component.hideInputLabels">Day</mat-label>
778
+ <mat-select [formControl]="dayControl" (selectionChange)="onChange()" [required]="instance.dayRequired">
779
+ <mat-option *ngFor="let day of instance.days" [value]="day.value">
780
+ {{day.label}}
781
+ </mat-option>
782
+ </mat-select>
783
+ </mat-form-field>
784
+ <mat-form-field *ngIf="instance.showYear">
785
+ <mat-label *ngIf="!instance.component.hideInputLabels">Year</mat-label>
786
+ <mat-select [formControl]="yearControl" (selectionChange)="onChange()" [required]="instance.yearRequired">
787
+ <mat-option *ngFor="let year of instance.years" [value]="year.value">
788
+ {{year.label}}
789
+ </mat-option>
790
+ </mat-select>
791
+ </mat-form-field>
792
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
793
+ </ng-template>
794
794
  `
795
795
  }]
796
796
  }] });
797
- DayComponent.MaterialComponent = MaterialDayComponent;
798
-
797
+ DayComponent.MaterialComponent = MaterialDayComponent;
798
+
799
799
  class MaterialHiddenComponent extends MaterialComponent {
800
800
  }
801
801
  MaterialHiddenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialHiddenComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
@@ -807,8 +807,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
807
807
  template: `<input matInput type="hidden" [formControl]="control" #input>`
808
808
  }]
809
809
  }] });
810
- HiddenComponent.MaterialComponent = MaterialHiddenComponent;
811
-
810
+ HiddenComponent.MaterialComponent = MaterialHiddenComponent;
811
+
812
812
  class MaterialHtmlComponent extends MaterialComponent {
813
813
  ngAfterViewInit() {
814
814
  super.ngAfterViewInit();
@@ -831,8 +831,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
831
831
  type: ViewChild,
832
832
  args: ['htmlBody']
833
833
  }] } });
834
- HtmlComponent.MaterialComponent = MaterialHtmlComponent;
835
-
834
+ HtmlComponent.MaterialComponent = MaterialHtmlComponent;
835
+
836
836
  class MaterialTagsComponent extends MaterialComponent {
837
837
  constructor() {
838
838
  super(...arguments);
@@ -870,72 +870,72 @@ class MaterialTagsComponent extends MaterialComponent {
870
870
  }
871
871
  }
872
872
  MaterialTagsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTagsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
873
- MaterialTagsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTagsComponent, selector: "mat-formio-tags", usesInheritance: true, ngImport: i0, template: `
874
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
875
- <ng-template #componentTemplate let-hasLabel>
876
- <mat-form-field class="example-chip-list" fxFill>
877
-
878
- <mat-label *ngIf="hasLabel">
879
- <span [instance]="instance" matFormioLabel></span>
880
- </mat-label>
881
-
882
- <mat-chip-list #chipList [attr.aria-label]="instance.component.label">
883
- <mat-chip *ngFor="let tag of tags; index as i;"
884
- [selectable]="true"
885
- [removable]="true"
886
- (removed)="remove(i)"
887
- >
888
- {{tag}}
889
- <mat-icon matChipRemove>cancel</mat-icon>
890
- </mat-chip>
891
-
892
- <input [formControl]="control"
893
- [matChipInputFor]="chipList"
894
- [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
895
- [matChipInputAddOnBlur]="true"
896
- (matChipInputTokenEnd)="add($event)"
897
- >
898
- </mat-chip-list>
899
- </mat-form-field>
900
- </ng-template>
873
+ MaterialTagsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTagsComponent, selector: "mat-formio-tags", usesInheritance: true, ngImport: i0, template: `
874
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
875
+ <ng-template #componentTemplate let-hasLabel>
876
+ <mat-form-field class="example-chip-list" fxFill>
877
+
878
+ <mat-label *ngIf="hasLabel">
879
+ <span [instance]="instance" matFormioLabel></span>
880
+ </mat-label>
881
+
882
+ <mat-chip-list #chipList [attr.aria-label]="instance.component.label">
883
+ <mat-chip *ngFor="let tag of tags; index as i;"
884
+ [selectable]="true"
885
+ [removable]="true"
886
+ (removed)="remove(i)"
887
+ >
888
+ {{tag}}
889
+ <mat-icon matChipRemove>cancel</mat-icon>
890
+ </mat-chip>
891
+
892
+ <input [formControl]="control"
893
+ [matChipInputFor]="chipList"
894
+ [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
895
+ [matChipInputAddOnBlur]="true"
896
+ (matChipInputTokenEnd)="add($event)"
897
+ >
898
+ </mat-chip-list>
899
+ </mat-form-field>
900
+ </ng-template>
901
901
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4$5.MatChipList, selector: "mat-chip-list", inputs: ["role", "aria-describedby", "errorStateMatcher", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "aria-orientation", "selectable", "tabIndex"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }, { kind: "directive", type: i4$5.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "role", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { kind: "directive", type: i4$5.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i4$5.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
902
902
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTagsComponent, decorators: [{
903
903
  type: Component,
904
904
  args: [{
905
905
  selector: 'mat-formio-tags',
906
- template: `
907
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
908
- <ng-template #componentTemplate let-hasLabel>
909
- <mat-form-field class="example-chip-list" fxFill>
910
-
911
- <mat-label *ngIf="hasLabel">
912
- <span [instance]="instance" matFormioLabel></span>
913
- </mat-label>
914
-
915
- <mat-chip-list #chipList [attr.aria-label]="instance.component.label">
916
- <mat-chip *ngFor="let tag of tags; index as i;"
917
- [selectable]="true"
918
- [removable]="true"
919
- (removed)="remove(i)"
920
- >
921
- {{tag}}
922
- <mat-icon matChipRemove>cancel</mat-icon>
923
- </mat-chip>
924
-
925
- <input [formControl]="control"
926
- [matChipInputFor]="chipList"
927
- [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
928
- [matChipInputAddOnBlur]="true"
929
- (matChipInputTokenEnd)="add($event)"
930
- >
931
- </mat-chip-list>
932
- </mat-form-field>
933
- </ng-template>
906
+ template: `
907
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
908
+ <ng-template #componentTemplate let-hasLabel>
909
+ <mat-form-field class="example-chip-list" fxFill>
910
+
911
+ <mat-label *ngIf="hasLabel">
912
+ <span [instance]="instance" matFormioLabel></span>
913
+ </mat-label>
914
+
915
+ <mat-chip-list #chipList [attr.aria-label]="instance.component.label">
916
+ <mat-chip *ngFor="let tag of tags; index as i;"
917
+ [selectable]="true"
918
+ [removable]="true"
919
+ (removed)="remove(i)"
920
+ >
921
+ {{tag}}
922
+ <mat-icon matChipRemove>cancel</mat-icon>
923
+ </mat-chip>
924
+
925
+ <input [formControl]="control"
926
+ [matChipInputFor]="chipList"
927
+ [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
928
+ [matChipInputAddOnBlur]="true"
929
+ (matChipInputTokenEnd)="add($event)"
930
+ >
931
+ </mat-chip-list>
932
+ </mat-form-field>
933
+ </ng-template>
934
934
  `
935
935
  }]
936
936
  }] });
937
- TagsComponent.MaterialComponent = MaterialTagsComponent;
938
-
937
+ TagsComponent.MaterialComponent = MaterialTagsComponent;
938
+
939
939
  var ButtonsThemes;
940
940
  (function (ButtonsThemes) {
941
941
  ButtonsThemes["PRIMARY"] = "primary";
@@ -951,8 +951,8 @@ var AngularButtonsThemes;
951
951
  AngularButtonsThemes["PRIMARY"] = "primary";
952
952
  AngularButtonsThemes["BASIC"] = "basic";
953
953
  AngularButtonsThemes["ACCENT"] = "accent";
954
- })(AngularButtonsThemes || (AngularButtonsThemes = {}));
955
-
954
+ })(AngularButtonsThemes || (AngularButtonsThemes = {}));
955
+
956
956
  class MaterialButtonComponent extends MaterialComponent {
957
957
  constructor() {
958
958
  super(...arguments);
@@ -1032,8 +1032,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
1032
1032
  type: Component,
1033
1033
  args: [{ selector: 'mat-formio-button', template: "<button *ngIf=\"instance\"\n [ngClass]=\"buttonClass\"\n type=\"{{ instance.component.action }}\"\n mat-raised-button [color]=\"color\"\n [disabled]=\"disabled\"\n (click)=\"instance.onClick($event)\"\n>\n <mat-icon *ngIf=\"instance.component.leftIcon\">{{instance.component.leftIcon}}</mat-icon>\n <mat-icon *ngIf=\"done\">done</mat-icon>\n <mat-icon *ngIf=\"error\">close</mat-icon>\n <mat-icon class=\"mat-icon-spin\" *ngIf=\"loading\">autorenew</mat-icon>\n {{ instance.component.label }}\n <mat-icon *ngIf=\"instance.component.rightIcon\">{{instance.component.rightIcon}}</mat-icon>\n</button>\n", styles: ["@-webkit-keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host .mat-icon-spin{-webkit-animation-name:spin;animation-name:spin;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}.mat-formio-theme-success{background-color:#63d644!important}.mat-formio-theme-info{background-color:#49d9f4!important}.mat-formio-button-sm{font-size:14px;padding:8px 12px}.mat-formio-button-xs{font-size:14px;padding:4px 6px}.mat-formio-button-md{font-size:15px;padding:8px 12px}.mat-formio-button-lg{font-size:19px;padding:16px 20px}.mat-formio-button-block{display:block;width:100%}\n"] }]
1034
1034
  }] });
1035
- ButtonComponent.MaterialComponent = MaterialButtonComponent;
1036
-
1035
+ ButtonComponent.MaterialComponent = MaterialButtonComponent;
1036
+
1037
1037
  class MaterialTextareaComponent extends MaterialComponent {
1038
1038
  ngAfterViewInit() {
1039
1039
  // Attach the element so the wysiwyg will work.
@@ -1044,64 +1044,64 @@ class MaterialTextareaComponent extends MaterialComponent {
1044
1044
  }
1045
1045
  }
1046
1046
  MaterialTextareaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTextareaComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1047
- MaterialTextareaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTextareaComponent, selector: "mat-formio-textarea", viewQueries: [{ propertyName: "textarea", first: true, predicate: ["textarea"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1048
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1049
- <ng-template #componentTemplate let-hasLabel>
1050
- <mat-form-field class="mat-formio-textarea"
1051
- [ngClass]="{'editor-enabled': !!instance.component.editor}"
1052
- fxFill
1053
- fxFlexAlign="center"
1054
- >
1055
- <mat-label fxFill *ngIf="hasLabel">
1056
- <span [instance]="instance" matFormioLabel></span>
1057
- </mat-label>
1058
- <span *ngIf="instance.component.prefix" matPrefix>{{ instance.component.prefix }}&nbsp;</span>
1059
- <textarea matInput
1060
- [placeholder]="instance.component.placeholder"
1061
- [formControl]="control"
1062
- [rows]="(instance.component.rows || 3)"
1063
- (input)="onChange()"
1064
- #textarea
1065
- >
1066
- </textarea>
1067
- <span *ngIf="instance.component.suffix" matSuffix>{{ instance.component.suffix }}</span>
1068
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1069
- </mat-form-field>
1070
- </ng-template>
1047
+ MaterialTextareaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTextareaComponent, selector: "mat-formio-textarea", viewQueries: [{ propertyName: "textarea", first: true, predicate: ["textarea"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1048
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1049
+ <ng-template #componentTemplate let-hasLabel>
1050
+ <mat-form-field class="mat-formio-textarea"
1051
+ [ngClass]="{'editor-enabled': !!instance.component.editor}"
1052
+ fxFill
1053
+ fxFlexAlign="center"
1054
+ >
1055
+ <mat-label fxFill *ngIf="hasLabel">
1056
+ <span [instance]="instance" matFormioLabel></span>
1057
+ </mat-label>
1058
+ <span *ngIf="instance.component.prefix" matPrefix>{{ instance.component.prefix }}&nbsp;</span>
1059
+ <textarea matInput
1060
+ [placeholder]="instance.component.placeholder"
1061
+ [formControl]="control"
1062
+ [rows]="(instance.component.rows || 3)"
1063
+ (input)="onChange()"
1064
+ #textarea
1065
+ >
1066
+ </textarea>
1067
+ <span *ngIf="instance.component.suffix" matSuffix>{{ instance.component.suffix }}</span>
1068
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1069
+ </mat-form-field>
1070
+ </ng-template>
1071
1071
  `, isInline: true, styles: [".mat-input-element{min-height:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i4$3.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"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i5.DefaultFlexAlignDirective, selector: " [fxFlexAlign], [fxFlexAlign.xs], [fxFlexAlign.sm], [fxFlexAlign.md], [fxFlexAlign.lg], [fxFlexAlign.xl], [fxFlexAlign.lt-sm], [fxFlexAlign.lt-md], [fxFlexAlign.lt-lg], [fxFlexAlign.lt-xl], [fxFlexAlign.gt-xs], [fxFlexAlign.gt-sm], [fxFlexAlign.gt-md], [fxFlexAlign.gt-lg]", inputs: ["fxFlexAlign", "fxFlexAlign.xs", "fxFlexAlign.sm", "fxFlexAlign.md", "fxFlexAlign.lg", "fxFlexAlign.xl", "fxFlexAlign.lt-sm", "fxFlexAlign.lt-md", "fxFlexAlign.lt-lg", "fxFlexAlign.lt-xl", "fxFlexAlign.gt-xs", "fxFlexAlign.gt-sm", "fxFlexAlign.gt-md", "fxFlexAlign.gt-lg"] }, { kind: "directive", type: i4$2.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
1072
1072
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTextareaComponent, decorators: [{
1073
1073
  type: Component,
1074
- args: [{ selector: 'mat-formio-textarea', template: `
1075
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1076
- <ng-template #componentTemplate let-hasLabel>
1077
- <mat-form-field class="mat-formio-textarea"
1078
- [ngClass]="{'editor-enabled': !!instance.component.editor}"
1079
- fxFill
1080
- fxFlexAlign="center"
1081
- >
1082
- <mat-label fxFill *ngIf="hasLabel">
1083
- <span [instance]="instance" matFormioLabel></span>
1084
- </mat-label>
1085
- <span *ngIf="instance.component.prefix" matPrefix>{{ instance.component.prefix }}&nbsp;</span>
1086
- <textarea matInput
1087
- [placeholder]="instance.component.placeholder"
1088
- [formControl]="control"
1089
- [rows]="(instance.component.rows || 3)"
1090
- (input)="onChange()"
1091
- #textarea
1092
- >
1093
- </textarea>
1094
- <span *ngIf="instance.component.suffix" matSuffix>{{ instance.component.suffix }}</span>
1095
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1096
- </mat-form-field>
1097
- </ng-template>
1074
+ args: [{ selector: 'mat-formio-textarea', template: `
1075
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1076
+ <ng-template #componentTemplate let-hasLabel>
1077
+ <mat-form-field class="mat-formio-textarea"
1078
+ [ngClass]="{'editor-enabled': !!instance.component.editor}"
1079
+ fxFill
1080
+ fxFlexAlign="center"
1081
+ >
1082
+ <mat-label fxFill *ngIf="hasLabel">
1083
+ <span [instance]="instance" matFormioLabel></span>
1084
+ </mat-label>
1085
+ <span *ngIf="instance.component.prefix" matPrefix>{{ instance.component.prefix }}&nbsp;</span>
1086
+ <textarea matInput
1087
+ [placeholder]="instance.component.placeholder"
1088
+ [formControl]="control"
1089
+ [rows]="(instance.component.rows || 3)"
1090
+ (input)="onChange()"
1091
+ #textarea
1092
+ >
1093
+ </textarea>
1094
+ <span *ngIf="instance.component.suffix" matSuffix>{{ instance.component.suffix }}</span>
1095
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1096
+ </mat-form-field>
1097
+ </ng-template>
1098
1098
  `, styles: [".mat-input-element{min-height:16px}\n"] }]
1099
1099
  }], propDecorators: { textarea: [{
1100
1100
  type: ViewChild,
1101
1101
  args: ['textarea']
1102
1102
  }] } });
1103
- TextAreaComponent.MaterialComponent = MaterialTextareaComponent;
1104
-
1103
+ TextAreaComponent.MaterialComponent = MaterialTextareaComponent;
1104
+
1105
1105
  class MaterialNestedComponent extends MaterialComponent {
1106
1106
  setInstance(instance) {
1107
1107
  instance.viewContainer = () => {
@@ -1135,56 +1135,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
1135
1135
  }], propDecorators: { components: [{
1136
1136
  type: ViewChildren,
1137
1137
  args: ['components', { read: ViewContainerRef }]
1138
- }] } });
1139
-
1138
+ }] } });
1139
+
1140
1140
  class MaterialPanelComponent extends MaterialNestedComponent {
1141
1141
  }
1142
1142
  MaterialPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialPanelComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1143
- MaterialPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialPanelComponent, selector: "mat-formio-panel", usesInheritance: true, ngImport: i0, template: `
1144
- <mat-card *ngIf="!instance.component.collapsible">
1145
- <mat-card-title *ngIf="instance?.component?.title">
1146
- {{ instance.component.title }}
1147
- </mat-card-title>
1148
- <mat-card-content fxLayout="column" fxLayoutGap="1em">
1149
- <ng-template #components></ng-template>
1150
- </mat-card-content>
1151
- </mat-card>
1152
- <mat-expansion-panel *ngIf="instance.component.collapsible"
1153
- [expanded]="!instance.component.collapsed"
1154
- >
1155
- <mat-expansion-panel-header *ngIf="instance?.component?.title">
1156
- <mat-panel-title>
1157
- {{ instance.component.title }}
1158
- </mat-panel-title>
1159
- </mat-expansion-panel-header>
1160
- <ng-template #components></ng-template>
1161
- </mat-expansion-panel>
1143
+ MaterialPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialPanelComponent, selector: "mat-formio-panel", usesInheritance: true, ngImport: i0, template: `
1144
+ <mat-card *ngIf="!instance.component.collapsible">
1145
+ <mat-card-title *ngIf="instance?.component?.title">
1146
+ {{ instance.component.title }}
1147
+ </mat-card-title>
1148
+ <mat-card-content fxLayout="column" fxLayoutGap="1em">
1149
+ <ng-template #components></ng-template>
1150
+ </mat-card-content>
1151
+ </mat-card>
1152
+ <mat-expansion-panel *ngIf="instance.component.collapsible"
1153
+ [expanded]="!instance.component.collapsed"
1154
+ >
1155
+ <mat-expansion-panel-header *ngIf="instance?.component?.title">
1156
+ <mat-panel-title>
1157
+ {{ instance.component.title }}
1158
+ </mat-panel-title>
1159
+ </mat-expansion-panel-header>
1160
+ <ng-template #components></ng-template>
1161
+ </mat-expansion-panel>
1162
1162
  `, isInline: true, styles: [":host{margin-bottom:1em}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i2$2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i2$2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "component", type: i4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "directive", type: i4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i4.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }] });
1163
1163
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialPanelComponent, decorators: [{
1164
1164
  type: Component,
1165
- args: [{ selector: 'mat-formio-panel', template: `
1166
- <mat-card *ngIf="!instance.component.collapsible">
1167
- <mat-card-title *ngIf="instance?.component?.title">
1168
- {{ instance.component.title }}
1169
- </mat-card-title>
1170
- <mat-card-content fxLayout="column" fxLayoutGap="1em">
1171
- <ng-template #components></ng-template>
1172
- </mat-card-content>
1173
- </mat-card>
1174
- <mat-expansion-panel *ngIf="instance.component.collapsible"
1175
- [expanded]="!instance.component.collapsed"
1176
- >
1177
- <mat-expansion-panel-header *ngIf="instance?.component?.title">
1178
- <mat-panel-title>
1179
- {{ instance.component.title }}
1180
- </mat-panel-title>
1181
- </mat-expansion-panel-header>
1182
- <ng-template #components></ng-template>
1183
- </mat-expansion-panel>
1165
+ args: [{ selector: 'mat-formio-panel', template: `
1166
+ <mat-card *ngIf="!instance.component.collapsible">
1167
+ <mat-card-title *ngIf="instance?.component?.title">
1168
+ {{ instance.component.title }}
1169
+ </mat-card-title>
1170
+ <mat-card-content fxLayout="column" fxLayoutGap="1em">
1171
+ <ng-template #components></ng-template>
1172
+ </mat-card-content>
1173
+ </mat-card>
1174
+ <mat-expansion-panel *ngIf="instance.component.collapsible"
1175
+ [expanded]="!instance.component.collapsed"
1176
+ >
1177
+ <mat-expansion-panel-header *ngIf="instance?.component?.title">
1178
+ <mat-panel-title>
1179
+ {{ instance.component.title }}
1180
+ </mat-panel-title>
1181
+ </mat-expansion-panel-header>
1182
+ <ng-template #components></ng-template>
1183
+ </mat-expansion-panel>
1184
1184
  `, styles: [":host{margin-bottom:1em}\n"] }]
1185
1185
  }] });
1186
- PanelComponent.MaterialComponent = MaterialPanelComponent;
1187
-
1186
+ PanelComponent.MaterialComponent = MaterialPanelComponent;
1187
+
1188
1188
  class MaterialColumnsComponent extends MaterialNestedComponent {
1189
1189
  constructor() {
1190
1190
  super(...arguments);
@@ -1208,64 +1208,64 @@ class MaterialColumnsComponent extends MaterialNestedComponent {
1208
1208
  }
1209
1209
  }
1210
1210
  MaterialColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialColumnsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1211
- MaterialColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialColumnsComponent, selector: "mat-formio-columns", usesInheritance: true, ngImport: i0, template: `
1212
- <div class="container"
1213
- fxLayout="row"
1214
- fxLayout.xs="column"
1215
- fxLayoutWrap
1216
- fxLayoutGap="{{ flexGap }}%"
1217
- fxLayoutAlign="center"
1218
- >
1219
- <div
1220
- *ngFor="let column of instance.component.columns; let i = index"
1221
- [fxFlex]="flexWidth(column, i)"
1222
- fxLayout="column"
1223
- fxLayoutGap="1em">
1224
- <ng-template #components></ng-template>
1225
- </div>
1226
- </div>
1211
+ MaterialColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialColumnsComponent, selector: "mat-formio-columns", usesInheritance: true, ngImport: i0, template: `
1212
+ <div class="container"
1213
+ fxLayout="row"
1214
+ fxLayout.xs="column"
1215
+ fxLayoutWrap
1216
+ fxLayoutGap="{{ flexGap }}%"
1217
+ fxLayoutAlign="center"
1218
+ >
1219
+ <div
1220
+ *ngFor="let column of instance.component.columns; let i = index"
1221
+ [fxFlex]="flexWidth(column, i)"
1222
+ fxLayout="column"
1223
+ fxLayoutGap="1em">
1224
+ <ng-template #components></ng-template>
1225
+ </div>
1226
+ </div>
1227
1227
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
1228
1228
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialColumnsComponent, decorators: [{
1229
1229
  type: Component,
1230
- args: [{ selector: 'mat-formio-columns', template: `
1231
- <div class="container"
1232
- fxLayout="row"
1233
- fxLayout.xs="column"
1234
- fxLayoutWrap
1235
- fxLayoutGap="{{ flexGap }}%"
1236
- fxLayoutAlign="center"
1237
- >
1238
- <div
1239
- *ngFor="let column of instance.component.columns; let i = index"
1240
- [fxFlex]="flexWidth(column, i)"
1241
- fxLayout="column"
1242
- fxLayoutGap="1em">
1243
- <ng-template #components></ng-template>
1244
- </div>
1245
- </div>
1230
+ args: [{ selector: 'mat-formio-columns', template: `
1231
+ <div class="container"
1232
+ fxLayout="row"
1233
+ fxLayout.xs="column"
1234
+ fxLayoutWrap
1235
+ fxLayoutGap="{{ flexGap }}%"
1236
+ fxLayoutAlign="center"
1237
+ >
1238
+ <div
1239
+ *ngFor="let column of instance.component.columns; let i = index"
1240
+ [fxFlex]="flexWidth(column, i)"
1241
+ fxLayout="column"
1242
+ fxLayoutGap="1em">
1243
+ <ng-template #components></ng-template>
1244
+ </div>
1245
+ </div>
1246
1246
  ` }]
1247
1247
  }] });
1248
- ColumnsComponent.MaterialComponent = MaterialColumnsComponent;
1249
-
1248
+ ColumnsComponent.MaterialComponent = MaterialColumnsComponent;
1249
+
1250
1250
  class MaterialContainerComponent extends MaterialNestedComponent {
1251
1251
  }
1252
1252
  MaterialContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1253
- MaterialContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialContainerComponent, selector: "mat-formio-container", usesInheritance: true, ngImport: i0, template: `
1254
- <div fxLayout="column" fxLayoutGap="1em">
1255
- <ng-template #components></ng-template>
1253
+ MaterialContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialContainerComponent, selector: "mat-formio-container", usesInheritance: true, ngImport: i0, template: `
1254
+ <div fxLayout="column" fxLayoutGap="1em">
1255
+ <ng-template #components></ng-template>
1256
1256
  </div>`, isInline: true, dependencies: [{ kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }] });
1257
1257
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialContainerComponent, decorators: [{
1258
1258
  type: Component,
1259
1259
  args: [{
1260
1260
  selector: 'mat-formio-container',
1261
- template: `
1262
- <div fxLayout="column" fxLayoutGap="1em">
1263
- <ng-template #components></ng-template>
1261
+ template: `
1262
+ <div fxLayout="column" fxLayoutGap="1em">
1263
+ <ng-template #components></ng-template>
1264
1264
  </div>`
1265
1265
  }]
1266
1266
  }] });
1267
- ContainerComponent.MaterialComponent = MaterialContainerComponent;
1268
-
1267
+ ContainerComponent.MaterialComponent = MaterialContainerComponent;
1268
+
1269
1269
  class MaterialTabsComponent extends MaterialNestedComponent {
1270
1270
  setInstance(instance) {
1271
1271
  super.setInstance(instance);
@@ -1275,32 +1275,32 @@ class MaterialTabsComponent extends MaterialNestedComponent {
1275
1275
  }
1276
1276
  }
1277
1277
  MaterialTabsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTabsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1278
- MaterialTabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTabsComponent, selector: "mat-formio-tabs", usesInheritance: true, ngImport: i0, template: `
1279
- <mat-tab-group>
1280
- <mat-tab *ngFor="let tab of instance.component.components" [label]="tab.label">
1281
- <div fxLayout="column" fxLayoutGap="1em" style="border: 1px dotted rgba(0, 0, 0, 0.125)">
1282
- <ng-template #components></ng-template>
1283
- </div>
1284
- </mat-tab>
1285
- </mat-tab-group>
1278
+ MaterialTabsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTabsComponent, selector: "mat-formio-tabs", usesInheritance: true, ngImport: i0, template: `
1279
+ <mat-tab-group>
1280
+ <mat-tab *ngFor="let tab of instance.component.components" [label]="tab.label">
1281
+ <div fxLayout="column" fxLayoutGap="1em" style="border: 1px dotted rgba(0, 0, 0, 0.125)">
1282
+ <ng-template #components></ng-template>
1283
+ </div>
1284
+ </mat-tab>
1285
+ </mat-tab-group>
1286
1286
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i2$3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }] });
1287
1287
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTabsComponent, decorators: [{
1288
1288
  type: Component,
1289
1289
  args: [{
1290
1290
  selector: 'mat-formio-tabs',
1291
- template: `
1292
- <mat-tab-group>
1293
- <mat-tab *ngFor="let tab of instance.component.components" [label]="tab.label">
1294
- <div fxLayout="column" fxLayoutGap="1em" style="border: 1px dotted rgba(0, 0, 0, 0.125)">
1295
- <ng-template #components></ng-template>
1296
- </div>
1297
- </mat-tab>
1298
- </mat-tab-group>
1291
+ template: `
1292
+ <mat-tab-group>
1293
+ <mat-tab *ngFor="let tab of instance.component.components" [label]="tab.label">
1294
+ <div fxLayout="column" fxLayoutGap="1em" style="border: 1px dotted rgba(0, 0, 0, 0.125)">
1295
+ <ng-template #components></ng-template>
1296
+ </div>
1297
+ </mat-tab>
1298
+ </mat-tab-group>
1299
1299
  `
1300
1300
  }]
1301
1301
  }] });
1302
- TabsComponent.MaterialComponent = MaterialTabsComponent;
1303
-
1302
+ TabsComponent.MaterialComponent = MaterialTabsComponent;
1303
+
1304
1304
  class MaterialTimeComponent extends MaterialComponent {
1305
1305
  constructor() {
1306
1306
  super(...arguments);
@@ -1368,117 +1368,117 @@ class MaterialTimeComponent extends MaterialComponent {
1368
1368
  }
1369
1369
  }
1370
1370
  MaterialTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1371
- MaterialTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTimeComponent, selector: "mat-formio-time", inputs: { hourStep: "hourStep", minuteStep: "minuteStep", secondStep: "secondStep", renderElementOnly: "renderElementOnly" }, outputs: { selectedEvent: "selectedEvent" }, usesInheritance: true, ngImport: i0, template: `
1372
- <mat-formio-form-field
1373
- [instance]="instance"
1374
- [componentTemplate]="componentTemplate"
1375
- [renderElementOnly]="renderElementOnly"
1376
- ></mat-formio-form-field>
1377
- <ng-template #componentTemplate let-hasLabel>
1378
- <mat-label fxFill *ngIf="hasLabel">
1379
- <span [instance]="instance" matFormioLabel></span>
1380
- </mat-label>
1381
-
1382
- <div style="display: block">
1383
- <div fxLayout="row" fxLayoutGap="5%">
1384
- <input
1385
- [formControl]="hourControl"
1386
- [step]="hourStep"
1387
- [min]="0"
1388
- [max]="12"
1389
- type="number"
1390
- fxFlex="25%"
1391
- (input)="onChange()"
1392
- >
1393
- <input
1394
- [formControl]="minuteControl"
1395
- [step]="minuteStep"
1396
- [min]="0"
1397
- [max]="59"
1398
- type="number"
1399
- fxFlex="25%"
1400
- (input)="onChange()"
1401
- >
1402
- <input
1403
- [formControl]="secondControl"
1404
- [step]="secondStep"
1405
- [min]="0"
1406
- [max]="59"
1407
- type="number"
1408
- fxFlex="25%"
1409
- (input)="onChange()"
1410
- *ngIf="instance?.component?.dataFormat === 'HH:mm:ss' ||
1411
- instance?.component?.dataFormat === 'HH:mm:ss.SSS'"
1412
- >
1413
- <button
1414
- [disabled]="instance?.component?.disabled"
1415
- fxFlex="25%"
1416
- (click)="changePeriod()"
1417
- >
1418
- {{period}}
1419
- </button>
1420
- </div>
1421
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1422
- </div>
1423
- </ng-template>
1371
+ MaterialTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTimeComponent, selector: "mat-formio-time", inputs: { hourStep: "hourStep", minuteStep: "minuteStep", secondStep: "secondStep", renderElementOnly: "renderElementOnly" }, outputs: { selectedEvent: "selectedEvent" }, usesInheritance: true, ngImport: i0, template: `
1372
+ <mat-formio-form-field
1373
+ [instance]="instance"
1374
+ [componentTemplate]="componentTemplate"
1375
+ [renderElementOnly]="renderElementOnly"
1376
+ ></mat-formio-form-field>
1377
+ <ng-template #componentTemplate let-hasLabel>
1378
+ <mat-label fxFill *ngIf="hasLabel">
1379
+ <span [instance]="instance" matFormioLabel></span>
1380
+ </mat-label>
1381
+
1382
+ <div style="display: block">
1383
+ <div fxLayout="row" fxLayoutGap="5%">
1384
+ <input
1385
+ [formControl]="hourControl"
1386
+ [step]="hourStep"
1387
+ [min]="0"
1388
+ [max]="12"
1389
+ type="number"
1390
+ fxFlex="25%"
1391
+ (input)="onChange()"
1392
+ >
1393
+ <input
1394
+ [formControl]="minuteControl"
1395
+ [step]="minuteStep"
1396
+ [min]="0"
1397
+ [max]="59"
1398
+ type="number"
1399
+ fxFlex="25%"
1400
+ (input)="onChange()"
1401
+ >
1402
+ <input
1403
+ [formControl]="secondControl"
1404
+ [step]="secondStep"
1405
+ [min]="0"
1406
+ [max]="59"
1407
+ type="number"
1408
+ fxFlex="25%"
1409
+ (input)="onChange()"
1410
+ *ngIf="instance?.component?.dataFormat === 'HH:mm:ss' ||
1411
+ instance?.component?.dataFormat === 'HH:mm:ss.SSS'"
1412
+ >
1413
+ <button
1414
+ [disabled]="instance?.component?.disabled"
1415
+ fxFlex="25%"
1416
+ (click)="changePeriod()"
1417
+ >
1418
+ {{period}}
1419
+ </button>
1420
+ </div>
1421
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1422
+ </div>
1423
+ </ng-template>
1424
1424
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
1425
1425
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTimeComponent, decorators: [{
1426
1426
  type: Component,
1427
1427
  args: [{
1428
1428
  selector: 'mat-formio-time',
1429
- template: `
1430
- <mat-formio-form-field
1431
- [instance]="instance"
1432
- [componentTemplate]="componentTemplate"
1433
- [renderElementOnly]="renderElementOnly"
1434
- ></mat-formio-form-field>
1435
- <ng-template #componentTemplate let-hasLabel>
1436
- <mat-label fxFill *ngIf="hasLabel">
1437
- <span [instance]="instance" matFormioLabel></span>
1438
- </mat-label>
1439
-
1440
- <div style="display: block">
1441
- <div fxLayout="row" fxLayoutGap="5%">
1442
- <input
1443
- [formControl]="hourControl"
1444
- [step]="hourStep"
1445
- [min]="0"
1446
- [max]="12"
1447
- type="number"
1448
- fxFlex="25%"
1449
- (input)="onChange()"
1450
- >
1451
- <input
1452
- [formControl]="minuteControl"
1453
- [step]="minuteStep"
1454
- [min]="0"
1455
- [max]="59"
1456
- type="number"
1457
- fxFlex="25%"
1458
- (input)="onChange()"
1459
- >
1460
- <input
1461
- [formControl]="secondControl"
1462
- [step]="secondStep"
1463
- [min]="0"
1464
- [max]="59"
1465
- type="number"
1466
- fxFlex="25%"
1467
- (input)="onChange()"
1468
- *ngIf="instance?.component?.dataFormat === 'HH:mm:ss' ||
1469
- instance?.component?.dataFormat === 'HH:mm:ss.SSS'"
1470
- >
1471
- <button
1472
- [disabled]="instance?.component?.disabled"
1473
- fxFlex="25%"
1474
- (click)="changePeriod()"
1475
- >
1476
- {{period}}
1477
- </button>
1478
- </div>
1479
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1480
- </div>
1481
- </ng-template>
1429
+ template: `
1430
+ <mat-formio-form-field
1431
+ [instance]="instance"
1432
+ [componentTemplate]="componentTemplate"
1433
+ [renderElementOnly]="renderElementOnly"
1434
+ ></mat-formio-form-field>
1435
+ <ng-template #componentTemplate let-hasLabel>
1436
+ <mat-label fxFill *ngIf="hasLabel">
1437
+ <span [instance]="instance" matFormioLabel></span>
1438
+ </mat-label>
1439
+
1440
+ <div style="display: block">
1441
+ <div fxLayout="row" fxLayoutGap="5%">
1442
+ <input
1443
+ [formControl]="hourControl"
1444
+ [step]="hourStep"
1445
+ [min]="0"
1446
+ [max]="12"
1447
+ type="number"
1448
+ fxFlex="25%"
1449
+ (input)="onChange()"
1450
+ >
1451
+ <input
1452
+ [formControl]="minuteControl"
1453
+ [step]="minuteStep"
1454
+ [min]="0"
1455
+ [max]="59"
1456
+ type="number"
1457
+ fxFlex="25%"
1458
+ (input)="onChange()"
1459
+ >
1460
+ <input
1461
+ [formControl]="secondControl"
1462
+ [step]="secondStep"
1463
+ [min]="0"
1464
+ [max]="59"
1465
+ type="number"
1466
+ fxFlex="25%"
1467
+ (input)="onChange()"
1468
+ *ngIf="instance?.component?.dataFormat === 'HH:mm:ss' ||
1469
+ instance?.component?.dataFormat === 'HH:mm:ss.SSS'"
1470
+ >
1471
+ <button
1472
+ [disabled]="instance?.component?.disabled"
1473
+ fxFlex="25%"
1474
+ (click)="changePeriod()"
1475
+ >
1476
+ {{period}}
1477
+ </button>
1478
+ </div>
1479
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1480
+ </div>
1481
+ </ng-template>
1482
1482
  `
1483
1483
  }]
1484
1484
  }], propDecorators: { selectedEvent: [{
@@ -1492,8 +1492,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
1492
1492
  }], renderElementOnly: [{
1493
1493
  type: Input
1494
1494
  }] } });
1495
- TimeComponent.MaterialComponent = MaterialTimeComponent;
1496
-
1495
+ TimeComponent.MaterialComponent = MaterialTimeComponent;
1496
+
1497
1497
  class MaterialCalendarComponent extends MaterialComponent {
1498
1498
  constructor() {
1499
1499
  super(...arguments);
@@ -1531,65 +1531,65 @@ class MaterialCalendarComponent extends MaterialComponent {
1531
1531
  }
1532
1532
  }
1533
1533
  MaterialCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialCalendarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1534
- MaterialCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialCalendarComponent, selector: "mat-formio-calendar", inputs: { enableDate: "enableDate", enableTime: "enableTime", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", hourStep: "hourStep", minuteStep: "minuteStep" }, outputs: { timeSelectEvent: "timeSelectEvent", dateSelectEvent: "dateSelectEvent" }, viewQueries: [{ propertyName: "time", first: true, predicate: ["time"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1535
- <div class="container" fxLayout="row" fxLayout.xs="column" fxLayoutGap="0.5%">
1536
- <div [ngStyle]="getPopupStyles()">
1537
- <mat-card style="padding: 0;">
1538
- <mat-calendar
1539
- [dateFilter]="dateFilter"
1540
- [maxDate]="maxDate"
1541
- [minDate]="minDate"
1542
- [selected]="selectedDate"
1543
- (selectedChange)="onDate($event)"
1544
- class="calendar"
1545
- *ngIf="enableDate !== false"
1546
- >
1547
- </mat-calendar>
1548
- <mat-formio-time
1549
- #time
1550
- [hourStep]="hourStep"
1551
- [instance]="instance"
1552
- [renderElementOnly]="true"
1553
- [minuteStep]="minuteStep"
1554
- (selectedEvent)="onTime($event)"
1555
- class="ml-3 formio-time"
1556
- *ngIf="enableTime"
1557
- >
1558
- </mat-formio-time>
1559
- </mat-card>
1560
- </div>
1561
- </div>
1534
+ MaterialCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialCalendarComponent, selector: "mat-formio-calendar", inputs: { enableDate: "enableDate", enableTime: "enableTime", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", hourStep: "hourStep", minuteStep: "minuteStep" }, outputs: { timeSelectEvent: "timeSelectEvent", dateSelectEvent: "dateSelectEvent" }, viewQueries: [{ propertyName: "time", first: true, predicate: ["time"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1535
+ <div class="container" fxLayout="row" fxLayout.xs="column" fxLayoutGap="0.5%">
1536
+ <div [ngStyle]="getPopupStyles()">
1537
+ <mat-card style="padding: 0;">
1538
+ <mat-calendar
1539
+ [dateFilter]="dateFilter"
1540
+ [maxDate]="maxDate"
1541
+ [minDate]="minDate"
1542
+ [selected]="selectedDate"
1543
+ (selectedChange)="onDate($event)"
1544
+ class="calendar"
1545
+ *ngIf="enableDate !== false"
1546
+ >
1547
+ </mat-calendar>
1548
+ <mat-formio-time
1549
+ #time
1550
+ [hourStep]="hourStep"
1551
+ [instance]="instance"
1552
+ [renderElementOnly]="true"
1553
+ [minuteStep]="minuteStep"
1554
+ (selectedEvent)="onTime($event)"
1555
+ class="ml-3 formio-time"
1556
+ *ngIf="enableTime"
1557
+ >
1558
+ </mat-formio-time>
1559
+ </mat-card>
1560
+ </div>
1561
+ </div>
1562
1562
  `, isInline: true, styles: [".calendar,.formio-time{padding:16px;background-color:#fff;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.formio-time{display:flex}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i5$2.MatCalendar, selector: "mat-calendar", inputs: ["headerComponent", "startAt", "startView", "selected", "minDate", "maxDate", "dateFilter", "dateClass", "comparisonStart", "comparisonEnd"], outputs: ["selectedChange", "yearSelected", "monthSelected", "viewChanged", "_userSelection"], exportAs: ["matCalendar"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i4$2.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: i4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: MaterialTimeComponent, selector: "mat-formio-time", inputs: ["hourStep", "minuteStep", "secondStep", "renderElementOnly"], outputs: ["selectedEvent"] }] });
1563
1563
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialCalendarComponent, decorators: [{
1564
1564
  type: Component,
1565
- args: [{ selector: 'mat-formio-calendar', template: `
1566
- <div class="container" fxLayout="row" fxLayout.xs="column" fxLayoutGap="0.5%">
1567
- <div [ngStyle]="getPopupStyles()">
1568
- <mat-card style="padding: 0;">
1569
- <mat-calendar
1570
- [dateFilter]="dateFilter"
1571
- [maxDate]="maxDate"
1572
- [minDate]="minDate"
1573
- [selected]="selectedDate"
1574
- (selectedChange)="onDate($event)"
1575
- class="calendar"
1576
- *ngIf="enableDate !== false"
1577
- >
1578
- </mat-calendar>
1579
- <mat-formio-time
1580
- #time
1581
- [hourStep]="hourStep"
1582
- [instance]="instance"
1583
- [renderElementOnly]="true"
1584
- [minuteStep]="minuteStep"
1585
- (selectedEvent)="onTime($event)"
1586
- class="ml-3 formio-time"
1587
- *ngIf="enableTime"
1588
- >
1589
- </mat-formio-time>
1590
- </mat-card>
1591
- </div>
1592
- </div>
1565
+ args: [{ selector: 'mat-formio-calendar', template: `
1566
+ <div class="container" fxLayout="row" fxLayout.xs="column" fxLayoutGap="0.5%">
1567
+ <div [ngStyle]="getPopupStyles()">
1568
+ <mat-card style="padding: 0;">
1569
+ <mat-calendar
1570
+ [dateFilter]="dateFilter"
1571
+ [maxDate]="maxDate"
1572
+ [minDate]="minDate"
1573
+ [selected]="selectedDate"
1574
+ (selectedChange)="onDate($event)"
1575
+ class="calendar"
1576
+ *ngIf="enableDate !== false"
1577
+ >
1578
+ </mat-calendar>
1579
+ <mat-formio-time
1580
+ #time
1581
+ [hourStep]="hourStep"
1582
+ [instance]="instance"
1583
+ [renderElementOnly]="true"
1584
+ [minuteStep]="minuteStep"
1585
+ (selectedEvent)="onTime($event)"
1586
+ class="ml-3 formio-time"
1587
+ *ngIf="enableTime"
1588
+ >
1589
+ </mat-formio-time>
1590
+ </mat-card>
1591
+ </div>
1592
+ </div>
1593
1593
  `, styles: [".calendar,.formio-time{padding:16px;background-color:#fff;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.formio-time{display:flex}\n"] }]
1594
1594
  }], propDecorators: { time: [{
1595
1595
  type: ViewChild,
@@ -1612,8 +1612,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
1612
1612
  type: Output
1613
1613
  }], dateSelectEvent: [{
1614
1614
  type: Output
1615
- }] } });
1616
-
1615
+ }] } });
1616
+
1617
1617
  class MaskDirective {
1618
1618
  constructor(elementRef) {
1619
1619
  this.elementRef = elementRef;
@@ -1673,8 +1673,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
1673
1673
  }], value: [{
1674
1674
  type: Input,
1675
1675
  args: ['value']
1676
- }] } });
1677
-
1676
+ }] } });
1677
+
1678
1678
  class MaterialDateComponent extends MaterialComponent {
1679
1679
  constructor() {
1680
1680
  super(...arguments);
@@ -1852,63 +1852,63 @@ class MaterialDateComponent extends MaterialComponent {
1852
1852
  }
1853
1853
  }
1854
1854
  MaterialDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDateComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1855
- MaterialDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialDateComponent, selector: "mat-formio-date", host: { listeners: { "document:click": "clickOutside($event)" } }, viewQueries: [{ propertyName: "calendar", first: true, predicate: ["calendar"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1856
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1857
- <ng-template #componentTemplate let-hasLabel>
1858
- <mat-label *ngIf="hasLabel" fxFill>
1859
- <span [instance]="instance" matFormioLabel></span>
1860
- </mat-label>
1861
-
1862
- <form class="example-form">
1863
- <mat-datepicker-toggle [disabled]="isDisabled()" (click)="toggleCalendar($event)">
1864
- <mat-icon matDatepickerToggleIcon *ngIf="enableTime && !enableDate">schedule</mat-icon>
1865
- </mat-datepicker-toggle>
1866
- <mat-form-field class="example-full-width">
1867
- <input
1868
- *ngIf="enableTime && enableDate"
1869
- matInput
1870
- type="datetime-local"
1871
- [placeholder]="instance.component.placeholder"
1872
- [formControl]="displayControl"
1873
- (input)="onChangeInput()"
1874
- [readonly]="!allowManualInput"
1875
- >
1876
- <input
1877
- *ngIf="enableTime && !enableDate"
1878
- matInput
1879
- [placeholder]="instance.component.placeholder"
1880
- [formControl]="displayControl"
1881
- [matMask]="formatTime"
1882
- (input)="onChangeInput()"
1883
- [readonly]="!allowManualInput"
1884
- >
1885
- <input
1886
- *ngIf="!enableTime && enableDate"
1887
- matInput
1888
- [placeholder]="instance.component.placeholder"
1889
- [formControl]="displayControl"
1890
- (input)="onChangeInput()"
1891
- [readonly]="!allowManualInput"
1892
- >
1893
- </mat-form-field>
1894
-
1895
- <mat-formio-calendar
1896
- #calendar
1897
- [minDate]="instance.component.datePicker.minDate || ''"
1898
- [maxDate]="instance.component.datePicker.maxDate || ''"
1899
- [dateFilter]="dateFilter"
1900
- [hidden]="!isPickerOpened"
1901
- (dateSelectEvent)="onChangeDate($event)"
1902
- (timeSelectEvent)="onChangeTime($event)"
1903
- [enableDate]="enableDate"
1904
- [enableTime]="enableTime"
1905
- [hourStep]="instance.component.timePicker.hourStep"
1906
- [minuteStep]="instance.component.timePicker.minuteStep"
1907
- [instance]="instance"
1908
- ></mat-formio-calendar>
1909
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1910
- </form>
1911
- </ng-template>
1855
+ MaterialDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialDateComponent, selector: "mat-formio-date", host: { listeners: { "document:click": "clickOutside($event)" } }, viewQueries: [{ propertyName: "calendar", first: true, predicate: ["calendar"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
1856
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1857
+ <ng-template #componentTemplate let-hasLabel>
1858
+ <mat-label *ngIf="hasLabel" fxFill>
1859
+ <span [instance]="instance" matFormioLabel></span>
1860
+ </mat-label>
1861
+
1862
+ <form class="example-form">
1863
+ <mat-datepicker-toggle [disabled]="isDisabled()" (click)="toggleCalendar($event)">
1864
+ <mat-icon matDatepickerToggleIcon *ngIf="enableTime && !enableDate">schedule</mat-icon>
1865
+ </mat-datepicker-toggle>
1866
+ <mat-form-field class="example-full-width">
1867
+ <input
1868
+ *ngIf="enableTime && enableDate"
1869
+ matInput
1870
+ type="datetime-local"
1871
+ [placeholder]="instance.component.placeholder"
1872
+ [formControl]="displayControl"
1873
+ (input)="onChangeInput()"
1874
+ [readonly]="!allowManualInput"
1875
+ >
1876
+ <input
1877
+ *ngIf="enableTime && !enableDate"
1878
+ matInput
1879
+ [placeholder]="instance.component.placeholder"
1880
+ [formControl]="displayControl"
1881
+ [matMask]="formatTime"
1882
+ (input)="onChangeInput()"
1883
+ [readonly]="!allowManualInput"
1884
+ >
1885
+ <input
1886
+ *ngIf="!enableTime && enableDate"
1887
+ matInput
1888
+ [placeholder]="instance.component.placeholder"
1889
+ [formControl]="displayControl"
1890
+ (input)="onChangeInput()"
1891
+ [readonly]="!allowManualInput"
1892
+ >
1893
+ </mat-form-field>
1894
+
1895
+ <mat-formio-calendar
1896
+ #calendar
1897
+ [minDate]="instance.component.datePicker.minDate || ''"
1898
+ [maxDate]="instance.component.datePicker.maxDate || ''"
1899
+ [dateFilter]="dateFilter"
1900
+ [hidden]="!isPickerOpened"
1901
+ (dateSelectEvent)="onChangeDate($event)"
1902
+ (timeSelectEvent)="onChangeTime($event)"
1903
+ [enableDate]="enableDate"
1904
+ [enableTime]="enableTime"
1905
+ [hourStep]="instance.component.timePicker.hourStep"
1906
+ [minuteStep]="instance.component.timePicker.minuteStep"
1907
+ [instance]="instance"
1908
+ ></mat-formio-calendar>
1909
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1910
+ </form>
1911
+ </ng-template>
1912
1912
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$3.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"] }, { kind: "component", type: i5$2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "directive", type: i5$2.MatDatepickerToggleIcon, selector: "[matDatepickerToggleIcon]" }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: MaterialCalendarComponent, selector: "mat-formio-calendar", inputs: ["enableDate", "enableTime", "minDate", "maxDate", "dateFilter", "hourStep", "minuteStep"], outputs: ["timeSelectEvent", "dateSelectEvent"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }, { kind: "directive", type: MaskDirective, selector: "input[matMask]", inputs: ["matMask", "value"] }] });
1913
1913
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDateComponent, decorators: [{
1914
1914
  type: Component,
@@ -1917,150 +1917,150 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
1917
1917
  host: {
1918
1918
  '(document:click)': 'clickOutside($event)',
1919
1919
  },
1920
- template: `
1921
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1922
- <ng-template #componentTemplate let-hasLabel>
1923
- <mat-label *ngIf="hasLabel" fxFill>
1924
- <span [instance]="instance" matFormioLabel></span>
1925
- </mat-label>
1926
-
1927
- <form class="example-form">
1928
- <mat-datepicker-toggle [disabled]="isDisabled()" (click)="toggleCalendar($event)">
1929
- <mat-icon matDatepickerToggleIcon *ngIf="enableTime && !enableDate">schedule</mat-icon>
1930
- </mat-datepicker-toggle>
1931
- <mat-form-field class="example-full-width">
1932
- <input
1933
- *ngIf="enableTime && enableDate"
1934
- matInput
1935
- type="datetime-local"
1936
- [placeholder]="instance.component.placeholder"
1937
- [formControl]="displayControl"
1938
- (input)="onChangeInput()"
1939
- [readonly]="!allowManualInput"
1940
- >
1941
- <input
1942
- *ngIf="enableTime && !enableDate"
1943
- matInput
1944
- [placeholder]="instance.component.placeholder"
1945
- [formControl]="displayControl"
1946
- [matMask]="formatTime"
1947
- (input)="onChangeInput()"
1948
- [readonly]="!allowManualInput"
1949
- >
1950
- <input
1951
- *ngIf="!enableTime && enableDate"
1952
- matInput
1953
- [placeholder]="instance.component.placeholder"
1954
- [formControl]="displayControl"
1955
- (input)="onChangeInput()"
1956
- [readonly]="!allowManualInput"
1957
- >
1958
- </mat-form-field>
1959
-
1960
- <mat-formio-calendar
1961
- #calendar
1962
- [minDate]="instance.component.datePicker.minDate || ''"
1963
- [maxDate]="instance.component.datePicker.maxDate || ''"
1964
- [dateFilter]="dateFilter"
1965
- [hidden]="!isPickerOpened"
1966
- (dateSelectEvent)="onChangeDate($event)"
1967
- (timeSelectEvent)="onChangeTime($event)"
1968
- [enableDate]="enableDate"
1969
- [enableTime]="enableTime"
1970
- [hourStep]="instance.component.timePicker.hourStep"
1971
- [minuteStep]="instance.component.timePicker.minuteStep"
1972
- [instance]="instance"
1973
- ></mat-formio-calendar>
1974
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1975
- </form>
1976
- </ng-template>
1920
+ template: `
1921
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
1922
+ <ng-template #componentTemplate let-hasLabel>
1923
+ <mat-label *ngIf="hasLabel" fxFill>
1924
+ <span [instance]="instance" matFormioLabel></span>
1925
+ </mat-label>
1926
+
1927
+ <form class="example-form">
1928
+ <mat-datepicker-toggle [disabled]="isDisabled()" (click)="toggleCalendar($event)">
1929
+ <mat-icon matDatepickerToggleIcon *ngIf="enableTime && !enableDate">schedule</mat-icon>
1930
+ </mat-datepicker-toggle>
1931
+ <mat-form-field class="example-full-width">
1932
+ <input
1933
+ *ngIf="enableTime && enableDate"
1934
+ matInput
1935
+ type="datetime-local"
1936
+ [placeholder]="instance.component.placeholder"
1937
+ [formControl]="displayControl"
1938
+ (input)="onChangeInput()"
1939
+ [readonly]="!allowManualInput"
1940
+ >
1941
+ <input
1942
+ *ngIf="enableTime && !enableDate"
1943
+ matInput
1944
+ [placeholder]="instance.component.placeholder"
1945
+ [formControl]="displayControl"
1946
+ [matMask]="formatTime"
1947
+ (input)="onChangeInput()"
1948
+ [readonly]="!allowManualInput"
1949
+ >
1950
+ <input
1951
+ *ngIf="!enableTime && enableDate"
1952
+ matInput
1953
+ [placeholder]="instance.component.placeholder"
1954
+ [formControl]="displayControl"
1955
+ (input)="onChangeInput()"
1956
+ [readonly]="!allowManualInput"
1957
+ >
1958
+ </mat-form-field>
1959
+
1960
+ <mat-formio-calendar
1961
+ #calendar
1962
+ [minDate]="instance.component.datePicker.minDate || ''"
1963
+ [maxDate]="instance.component.datePicker.maxDate || ''"
1964
+ [dateFilter]="dateFilter"
1965
+ [hidden]="!isPickerOpened"
1966
+ (dateSelectEvent)="onChangeDate($event)"
1967
+ (timeSelectEvent)="onChangeTime($event)"
1968
+ [enableDate]="enableDate"
1969
+ [enableTime]="enableTime"
1970
+ [hourStep]="instance.component.timePicker.hourStep"
1971
+ [minuteStep]="instance.component.timePicker.minuteStep"
1972
+ [instance]="instance"
1973
+ ></mat-formio-calendar>
1974
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1975
+ </form>
1976
+ </ng-template>
1977
1977
  `
1978
1978
  }]
1979
1979
  }], propDecorators: { calendar: [{
1980
1980
  type: ViewChild,
1981
1981
  args: ['calendar']
1982
1982
  }] } });
1983
- DateTimeComponent.MaterialComponent = MaterialDateComponent;
1984
-
1983
+ DateTimeComponent.MaterialComponent = MaterialDateComponent;
1984
+
1985
1985
  class MaterialCheckboxComponent extends MaterialComponent {
1986
1986
  getValue() {
1987
1987
  return _.isNil(this.control.value) ? '' : this.control.value;
1988
1988
  }
1989
1989
  }
1990
1990
  MaterialCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1991
- MaterialCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialCheckboxComponent, selector: "mat-formio-checkbox", usesInheritance: true, ngImport: i0, template: `
1992
- <mat-checkbox (change)="onChange()" [ngClass]="{'validation-error' : !!instance.error}"
1993
- [formControl]="control"
1994
- >
1995
- <span matFormioLabel [instance]="instance"></span>
1996
- <mat-icon *ngIf="instance.component.tooltip" matSuffix
1997
- matTooltip="{{ instance.component.tooltip }}" style="font-size: 1rem;">info
1998
- </mat-icon>
1999
- </mat-checkbox>
2000
- <mat-hint>
2001
- {{ instance.component.description }}
2002
- </mat-hint>
2003
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
1991
+ MaterialCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialCheckboxComponent, selector: "mat-formio-checkbox", usesInheritance: true, ngImport: i0, template: `
1992
+ <mat-checkbox (change)="onChange()" [ngClass]="{'validation-error' : !!instance.error}"
1993
+ [formControl]="control"
1994
+ >
1995
+ <span matFormioLabel [instance]="instance"></span>
1996
+ <mat-icon *ngIf="instance.component.tooltip" matSuffix
1997
+ matTooltip="{{ instance.component.tooltip }}" style="font-size: 1rem;">info
1998
+ </mat-icon>
1999
+ </mat-checkbox>
2000
+ <mat-hint>
2001
+ {{ instance.component.description }}
2002
+ </mat-hint>
2003
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2004
2004
  `, isInline: true, styles: ["::ng-deep .mat-checkbox.validation-error .mat-checkbox-frame{border-color:red}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "component", type: i4$6.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i3$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i4$2.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
2005
2005
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialCheckboxComponent, decorators: [{
2006
2006
  type: Component,
2007
- args: [{ selector: 'mat-formio-checkbox', template: `
2008
- <mat-checkbox (change)="onChange()" [ngClass]="{'validation-error' : !!instance.error}"
2009
- [formControl]="control"
2010
- >
2011
- <span matFormioLabel [instance]="instance"></span>
2012
- <mat-icon *ngIf="instance.component.tooltip" matSuffix
2013
- matTooltip="{{ instance.component.tooltip }}" style="font-size: 1rem;">info
2014
- </mat-icon>
2015
- </mat-checkbox>
2016
- <mat-hint>
2017
- {{ instance.component.description }}
2018
- </mat-hint>
2019
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2007
+ args: [{ selector: 'mat-formio-checkbox', template: `
2008
+ <mat-checkbox (change)="onChange()" [ngClass]="{'validation-error' : !!instance.error}"
2009
+ [formControl]="control"
2010
+ >
2011
+ <span matFormioLabel [instance]="instance"></span>
2012
+ <mat-icon *ngIf="instance.component.tooltip" matSuffix
2013
+ matTooltip="{{ instance.component.tooltip }}" style="font-size: 1rem;">info
2014
+ </mat-icon>
2015
+ </mat-checkbox>
2016
+ <mat-hint>
2017
+ {{ instance.component.description }}
2018
+ </mat-hint>
2019
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2020
2020
  `, styles: ["::ng-deep .mat-checkbox.validation-error .mat-checkbox-frame{border-color:red}\n"] }]
2021
2021
  }] });
2022
- CheckboxComponent.MaterialComponent = MaterialCheckboxComponent;
2023
-
2022
+ CheckboxComponent.MaterialComponent = MaterialCheckboxComponent;
2023
+
2024
2024
  class MaterialFieldsetComponent extends MaterialNestedComponent {
2025
2025
  }
2026
2026
  MaterialFieldsetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialFieldsetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2027
- MaterialFieldsetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialFieldsetComponent, selector: "mat-formio-fieldset", usesInheritance: true, ngImport: i0, template: `
2028
- <fieldset>
2029
- <legend [attr.ref]="'header'">
2030
- {{ instance.component.legend }}
2031
- <mat-icon *ngIf="instance.component.tooltip"
2032
- matSuffix
2033
- matTooltip="{{ instance.component.tooltip }}"
2034
- >
2035
- info
2036
- </mat-icon>
2037
- </legend>
2038
- <div class="fieldset-body" [attr.ref]="instance.component.key" fxLayout="column" fxLayoutGap="1em">
2039
- <ng-template #components></ng-template>
2040
- </div>
2041
- </fieldset>
2027
+ MaterialFieldsetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialFieldsetComponent, selector: "mat-formio-fieldset", usesInheritance: true, ngImport: i0, template: `
2028
+ <fieldset>
2029
+ <legend [attr.ref]="'header'">
2030
+ {{ instance.component.legend }}
2031
+ <mat-icon *ngIf="instance.component.tooltip"
2032
+ matSuffix
2033
+ matTooltip="{{ instance.component.tooltip }}"
2034
+ >
2035
+ info
2036
+ </mat-icon>
2037
+ </legend>
2038
+ <div class="fieldset-body" [attr.ref]="instance.component.key" fxLayout="column" fxLayoutGap="1em">
2039
+ <ng-template #components></ng-template>
2040
+ </div>
2041
+ </fieldset>
2042
2042
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i3$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }] });
2043
2043
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialFieldsetComponent, decorators: [{
2044
2044
  type: Component,
2045
- args: [{ selector: 'mat-formio-fieldset', template: `
2046
- <fieldset>
2047
- <legend [attr.ref]="'header'">
2048
- {{ instance.component.legend }}
2049
- <mat-icon *ngIf="instance.component.tooltip"
2050
- matSuffix
2051
- matTooltip="{{ instance.component.tooltip }}"
2052
- >
2053
- info
2054
- </mat-icon>
2055
- </legend>
2056
- <div class="fieldset-body" [attr.ref]="instance.component.key" fxLayout="column" fxLayoutGap="1em">
2057
- <ng-template #components></ng-template>
2058
- </div>
2059
- </fieldset>
2045
+ args: [{ selector: 'mat-formio-fieldset', template: `
2046
+ <fieldset>
2047
+ <legend [attr.ref]="'header'">
2048
+ {{ instance.component.legend }}
2049
+ <mat-icon *ngIf="instance.component.tooltip"
2050
+ matSuffix
2051
+ matTooltip="{{ instance.component.tooltip }}"
2052
+ >
2053
+ info
2054
+ </mat-icon>
2055
+ </legend>
2056
+ <div class="fieldset-body" [attr.ref]="instance.component.key" fxLayout="column" fxLayoutGap="1em">
2057
+ <ng-template #components></ng-template>
2058
+ </div>
2059
+ </fieldset>
2060
2060
  ` }]
2061
2061
  }] });
2062
- FieldsetComponent.MaterialComponent = MaterialFieldsetComponent;
2063
-
2062
+ FieldsetComponent.MaterialComponent = MaterialFieldsetComponent;
2063
+
2064
2064
  class MaterialContentComponent extends MaterialComponent {
2065
2065
  }
2066
2066
  MaterialContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
@@ -2072,8 +2072,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
2072
2072
  template: `<div [innerHTML]="instance.content"></div>`
2073
2073
  }]
2074
2074
  }] });
2075
- ContentComponent.MaterialComponent = MaterialContentComponent;
2076
-
2075
+ ContentComponent.MaterialComponent = MaterialContentComponent;
2076
+
2077
2077
  class MaterialSignatureComponent extends MaterialComponent {
2078
2078
  renderComponents() {
2079
2079
  if (this.signatureElement) {
@@ -2085,85 +2085,85 @@ class MaterialSignatureComponent extends MaterialComponent {
2085
2085
  }
2086
2086
  }
2087
2087
  MaterialSignatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSignatureComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2088
- MaterialSignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSignatureComponent, selector: "mat-formio-signature", viewQueries: [{ propertyName: "signatureElement", first: true, predicate: ["signature"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
2089
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2090
- <ng-template #componentTemplate let-hasLabel>
2091
- <div #signature>
2092
-
2093
- <mat-label *ngIf="hasLabel">
2094
- <span [instance]="instance" matFormioLabel></span>
2095
- </mat-label>
2096
-
2097
- <button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
2098
- <mat-icon>refresh</mat-icon>
2099
- </button>
2100
-
2101
- <div class="signature-pad-body"
2102
- [ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
2103
- [attr.tabindex]="instance.component.tabindex || 0"
2104
- ref="padBody"
2105
- >
2106
- <canvas class="signature-pad-canvas"
2107
- [attr.height]="instance.component.height"
2108
- ref="canvas"
2109
- ></canvas>
2110
- <img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
2111
- </div>
2112
- <div *ngIf="instance.component.footer"
2113
- class="signature-pad-footer"
2114
- fxLayout="row"
2115
- fxLayoutAlign="center center"
2116
- >
2117
- <mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
2118
- </div>
2119
- </div>
2120
- </ng-template>
2088
+ MaterialSignatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSignatureComponent, selector: "mat-formio-signature", viewQueries: [{ propertyName: "signatureElement", first: true, predicate: ["signature"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
2089
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2090
+ <ng-template #componentTemplate let-hasLabel>
2091
+ <div #signature>
2092
+
2093
+ <mat-label *ngIf="hasLabel">
2094
+ <span [instance]="instance" matFormioLabel></span>
2095
+ </mat-label>
2096
+
2097
+ <button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
2098
+ <mat-icon>refresh</mat-icon>
2099
+ </button>
2100
+
2101
+ <div class="signature-pad-body"
2102
+ [ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
2103
+ [attr.tabindex]="instance.component.tabindex || 0"
2104
+ ref="padBody"
2105
+ >
2106
+ <canvas class="signature-pad-canvas"
2107
+ [attr.height]="instance.component.height"
2108
+ ref="canvas"
2109
+ ></canvas>
2110
+ <img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
2111
+ </div>
2112
+ <div *ngIf="instance.component.footer"
2113
+ class="signature-pad-footer"
2114
+ fxLayout="row"
2115
+ fxLayoutAlign="center center"
2116
+ >
2117
+ <mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
2118
+ </div>
2119
+ </div>
2120
+ </ng-template>
2121
2121
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "directive", type: i4$2.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
2122
2122
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSignatureComponent, decorators: [{
2123
2123
  type: Component,
2124
2124
  args: [{
2125
2125
  selector: 'mat-formio-signature',
2126
- template: `
2127
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2128
- <ng-template #componentTemplate let-hasLabel>
2129
- <div #signature>
2130
-
2131
- <mat-label *ngIf="hasLabel">
2132
- <span [instance]="instance" matFormioLabel></span>
2133
- </mat-label>
2134
-
2135
- <button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
2136
- <mat-icon>refresh</mat-icon>
2137
- </button>
2138
-
2139
- <div class="signature-pad-body"
2140
- [ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
2141
- [attr.tabindex]="instance.component.tabindex || 0"
2142
- ref="padBody"
2143
- >
2144
- <canvas class="signature-pad-canvas"
2145
- [attr.height]="instance.component.height"
2146
- ref="canvas"
2147
- ></canvas>
2148
- <img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
2149
- </div>
2150
- <div *ngIf="instance.component.footer"
2151
- class="signature-pad-footer"
2152
- fxLayout="row"
2153
- fxLayoutAlign="center center"
2154
- >
2155
- <mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
2156
- </div>
2157
- </div>
2158
- </ng-template>
2126
+ template: `
2127
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2128
+ <ng-template #componentTemplate let-hasLabel>
2129
+ <div #signature>
2130
+
2131
+ <mat-label *ngIf="hasLabel">
2132
+ <span [instance]="instance" matFormioLabel></span>
2133
+ </mat-label>
2134
+
2135
+ <button mat-icon-button [ngStyle]="{position: 'absolute'}" ref="refresh">
2136
+ <mat-icon>refresh</mat-icon>
2137
+ </button>
2138
+
2139
+ <div class="signature-pad-body"
2140
+ [ngStyle]="{width: instance.component.width, height: instance.component.height, padding: 0, margin: 0}"
2141
+ [attr.tabindex]="instance.component.tabindex || 0"
2142
+ ref="padBody"
2143
+ >
2144
+ <canvas class="signature-pad-canvas"
2145
+ [attr.height]="instance.component.height"
2146
+ ref="canvas"
2147
+ ></canvas>
2148
+ <img fxFlexFill [ngStyle]="{display: 'none' }" ref="signatureImage">
2149
+ </div>
2150
+ <div *ngIf="instance.component.footer"
2151
+ class="signature-pad-footer"
2152
+ fxLayout="row"
2153
+ fxLayoutAlign="center center"
2154
+ >
2155
+ <mat-hint>{{ instance.t(instance.component.footer) }}</mat-hint>
2156
+ </div>
2157
+ </div>
2158
+ </ng-template>
2159
2159
  `
2160
2160
  }]
2161
2161
  }], propDecorators: { signatureElement: [{
2162
2162
  type: ViewChild,
2163
2163
  args: ['signature']
2164
2164
  }] } });
2165
- SignatureComponent.MaterialComponent = MaterialSignatureComponent;
2166
-
2165
+ SignatureComponent.MaterialComponent = MaterialSignatureComponent;
2166
+
2167
2167
  class MaterialSurveyComponent extends MaterialComponent {
2168
2168
  constructor() {
2169
2169
  super(...arguments);
@@ -2210,114 +2210,114 @@ class MaterialSurveyComponent extends MaterialComponent {
2210
2210
  }
2211
2211
  }
2212
2212
  MaterialSurveyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSurveyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2213
- MaterialSurveyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSurveyComponent, selector: "mat-formio-survey", usesInheritance: true, ngImport: i0, template: `
2214
-
2215
- <mat-formio-form-field
2216
- [instance]="instance"
2217
- [componentTemplate]="componentTemplate"
2218
- [showDescription]="false"
2219
- ></mat-formio-form-field>
2220
- <ng-template #componentTemplate let-hasLabel>
2221
-
2222
- <table class="mat-elevation-z8 mat-table" fxFill>
2223
- <thead>
2224
- <tr class="mat-header-row">
2225
- <th class="mat-header-cell">
2226
- <h2 *ngIf="hasLabel">
2227
- <span [instance]="instance" matFormioLabel></span>
2228
- </h2>
2229
- </th>
2230
- <th class="mat-header-cell"
2231
- *ngFor="let value of instance.component.values"
2232
- style="text-align: center;"
2233
- >
2234
- {{ value.label }}
2235
- </th>
2236
- </tr>
2237
- </thead>
2238
-
2239
- <tbody>
2240
- <tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
2241
- <td class="mat-cell">{{ question.label }}</td>
2242
- <td class="mat-cell"
2243
- *ngFor="let value of instance.component.values; index as j;"
2244
- style="text-align: center;"
2245
- >
2246
- <mat-radio-group (change)="onChange()"
2247
- [formControl]="getFormControl(question.value)"
2248
- [name]="getUniqueName(question.value)"
2249
- >
2250
- <mat-radio-button [value]="value.value"></mat-radio-button>
2251
- </mat-radio-group>
2252
- </td>
2253
- </tr>
2254
- <mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
2255
- {{ instance.component.description }}
2256
- </mat-hint>
2257
- </tbody>
2258
-
2259
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2260
- </table>
2261
- </ng-template>
2213
+ MaterialSurveyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSurveyComponent, selector: "mat-formio-survey", usesInheritance: true, ngImport: i0, template: `
2214
+
2215
+ <mat-formio-form-field
2216
+ [instance]="instance"
2217
+ [componentTemplate]="componentTemplate"
2218
+ [showDescription]="false"
2219
+ ></mat-formio-form-field>
2220
+ <ng-template #componentTemplate let-hasLabel>
2221
+
2222
+ <table class="mat-elevation-z8 mat-table" fxFill>
2223
+ <thead>
2224
+ <tr class="mat-header-row">
2225
+ <th class="mat-header-cell">
2226
+ <h2 *ngIf="hasLabel">
2227
+ <span [instance]="instance" matFormioLabel></span>
2228
+ </h2>
2229
+ </th>
2230
+ <th class="mat-header-cell"
2231
+ *ngFor="let value of instance.component.values"
2232
+ style="text-align: center;"
2233
+ >
2234
+ {{ value.label }}
2235
+ </th>
2236
+ </tr>
2237
+ </thead>
2238
+
2239
+ <tbody>
2240
+ <tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
2241
+ <td class="mat-cell">{{ question.label }}</td>
2242
+ <td class="mat-cell"
2243
+ *ngFor="let value of instance.component.values; index as j;"
2244
+ style="text-align: center;"
2245
+ >
2246
+ <mat-radio-group (change)="onChange()"
2247
+ [formControl]="getFormControl(question.value)"
2248
+ [name]="getUniqueName(question.value)"
2249
+ >
2250
+ <mat-radio-button [value]="value.value"></mat-radio-button>
2251
+ </mat-radio-group>
2252
+ </td>
2253
+ </tr>
2254
+ <mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
2255
+ {{ instance.component.description }}
2256
+ </mat-hint>
2257
+ </tbody>
2258
+
2259
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2260
+ </table>
2261
+ </ng-template>
2262
2262
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4$7.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$7.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
2263
2263
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSurveyComponent, decorators: [{
2264
2264
  type: Component,
2265
2265
  args: [{
2266
2266
  selector: 'mat-formio-survey',
2267
- template: `
2268
-
2269
- <mat-formio-form-field
2270
- [instance]="instance"
2271
- [componentTemplate]="componentTemplate"
2272
- [showDescription]="false"
2273
- ></mat-formio-form-field>
2274
- <ng-template #componentTemplate let-hasLabel>
2275
-
2276
- <table class="mat-elevation-z8 mat-table" fxFill>
2277
- <thead>
2278
- <tr class="mat-header-row">
2279
- <th class="mat-header-cell">
2280
- <h2 *ngIf="hasLabel">
2281
- <span [instance]="instance" matFormioLabel></span>
2282
- </h2>
2283
- </th>
2284
- <th class="mat-header-cell"
2285
- *ngFor="let value of instance.component.values"
2286
- style="text-align: center;"
2287
- >
2288
- {{ value.label }}
2289
- </th>
2290
- </tr>
2291
- </thead>
2292
-
2293
- <tbody>
2294
- <tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
2295
- <td class="mat-cell">{{ question.label }}</td>
2296
- <td class="mat-cell"
2297
- *ngFor="let value of instance.component.values; index as j;"
2298
- style="text-align: center;"
2299
- >
2300
- <mat-radio-group (change)="onChange()"
2301
- [formControl]="getFormControl(question.value)"
2302
- [name]="getUniqueName(question.value)"
2303
- >
2304
- <mat-radio-button [value]="value.value"></mat-radio-button>
2305
- </mat-radio-group>
2306
- </td>
2307
- </tr>
2308
- <mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
2309
- {{ instance.component.description }}
2310
- </mat-hint>
2311
- </tbody>
2312
-
2313
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2314
- </table>
2315
- </ng-template>
2267
+ template: `
2268
+
2269
+ <mat-formio-form-field
2270
+ [instance]="instance"
2271
+ [componentTemplate]="componentTemplate"
2272
+ [showDescription]="false"
2273
+ ></mat-formio-form-field>
2274
+ <ng-template #componentTemplate let-hasLabel>
2275
+
2276
+ <table class="mat-elevation-z8 mat-table" fxFill>
2277
+ <thead>
2278
+ <tr class="mat-header-row">
2279
+ <th class="mat-header-cell">
2280
+ <h2 *ngIf="hasLabel">
2281
+ <span [instance]="instance" matFormioLabel></span>
2282
+ </h2>
2283
+ </th>
2284
+ <th class="mat-header-cell"
2285
+ *ngFor="let value of instance.component.values"
2286
+ style="text-align: center;"
2287
+ >
2288
+ {{ value.label }}
2289
+ </th>
2290
+ </tr>
2291
+ </thead>
2292
+
2293
+ <tbody>
2294
+ <tr class="mat-row" *ngFor="let question of instance.component.questions; index as i;">
2295
+ <td class="mat-cell">{{ question.label }}</td>
2296
+ <td class="mat-cell"
2297
+ *ngFor="let value of instance.component.values; index as j;"
2298
+ style="text-align: center;"
2299
+ >
2300
+ <mat-radio-group (change)="onChange()"
2301
+ [formControl]="getFormControl(question.value)"
2302
+ [name]="getUniqueName(question.value)"
2303
+ >
2304
+ <mat-radio-button [value]="value.value"></mat-radio-button>
2305
+ </mat-radio-group>
2306
+ </td>
2307
+ </tr>
2308
+ <mat-hint *ngIf="instance.component.description" class="mat-formio-component-description">
2309
+ {{ instance.component.description }}
2310
+ </mat-hint>
2311
+ </tbody>
2312
+
2313
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2314
+ </table>
2315
+ </ng-template>
2316
2316
  `
2317
2317
  }]
2318
2318
  }] });
2319
- SurveyComponent.MaterialComponent = MaterialSurveyComponent;
2320
-
2319
+ SurveyComponent.MaterialComponent = MaterialSurveyComponent;
2320
+
2321
2321
  class MaterialRadioComponent extends MaterialComponent {
2322
2322
  getLayout() {
2323
2323
  return this.instance.component.inline ? 'row' : 'column';
@@ -2338,70 +2338,70 @@ class MaterialRadioComponent extends MaterialComponent {
2338
2338
  }
2339
2339
  }
2340
2340
  MaterialRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2341
- MaterialRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialRadioComponent, selector: "mat-formio-radio", usesInheritance: true, ngImport: i0, template: `
2342
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2343
- <ng-template #componentTemplate let-hasLabel>
2344
- <div fxLayout="column">
2345
- <mat-label *ngIf="hasLabel">
2346
- <span [instance]="instance" matFormioLabel></span>
2347
- </mat-label>
2348
-
2349
- <mat-radio-group
2350
- (change)="onChange()"
2351
- [formControl]="control"
2352
- fxFlexOffset="10px"
2353
- fxLayout="{{ getLayout() }}"
2354
- fxLayoutGap="10px"
2355
- >
2356
- <mat-radio-button *ngFor="let option of instance.component.values"
2357
- value="{{ option.value }}"
2358
- [checked]="isRadioChecked(option)"
2359
- (keyup.space)="clearValue($event, option)"
2360
- (click)="clearValue($event, option)"
2361
- >
2362
- {{ option.label }}
2363
- </mat-radio-button>
2364
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2365
- </mat-radio-group>
2366
- </div>
2367
- </ng-template>
2341
+ MaterialRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialRadioComponent, selector: "mat-formio-radio", usesInheritance: true, ngImport: i0, template: `
2342
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2343
+ <ng-template #componentTemplate let-hasLabel>
2344
+ <div fxLayout="column">
2345
+ <mat-label *ngIf="hasLabel">
2346
+ <span [instance]="instance" matFormioLabel></span>
2347
+ </mat-label>
2348
+
2349
+ <mat-radio-group
2350
+ (change)="onChange()"
2351
+ [formControl]="control"
2352
+ fxFlexOffset="10px"
2353
+ fxLayout="{{ getLayout() }}"
2354
+ fxLayoutGap="10px"
2355
+ >
2356
+ <mat-radio-button *ngFor="let option of instance.component.values"
2357
+ value="{{ option.value }}"
2358
+ [checked]="isRadioChecked(option)"
2359
+ (keyup.space)="clearValue($event, option)"
2360
+ (click)="clearValue($event, option)"
2361
+ >
2362
+ {{ option.label }}
2363
+ </mat-radio-button>
2364
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2365
+ </mat-radio-group>
2366
+ </div>
2367
+ </ng-template>
2368
2368
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$7.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$7.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexOffsetDirective, selector: " [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md], [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md], [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm], [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]", inputs: ["fxFlexOffset", "fxFlexOffset.xs", "fxFlexOffset.sm", "fxFlexOffset.md", "fxFlexOffset.lg", "fxFlexOffset.xl", "fxFlexOffset.lt-sm", "fxFlexOffset.lt-md", "fxFlexOffset.lt-lg", "fxFlexOffset.lt-xl", "fxFlexOffset.gt-xs", "fxFlexOffset.gt-sm", "fxFlexOffset.gt-md", "fxFlexOffset.gt-lg"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
2369
2369
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialRadioComponent, decorators: [{
2370
2370
  type: Component,
2371
2371
  args: [{
2372
2372
  selector: 'mat-formio-radio',
2373
- template: `
2374
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2375
- <ng-template #componentTemplate let-hasLabel>
2376
- <div fxLayout="column">
2377
- <mat-label *ngIf="hasLabel">
2378
- <span [instance]="instance" matFormioLabel></span>
2379
- </mat-label>
2380
-
2381
- <mat-radio-group
2382
- (change)="onChange()"
2383
- [formControl]="control"
2384
- fxFlexOffset="10px"
2385
- fxLayout="{{ getLayout() }}"
2386
- fxLayoutGap="10px"
2387
- >
2388
- <mat-radio-button *ngFor="let option of instance.component.values"
2389
- value="{{ option.value }}"
2390
- [checked]="isRadioChecked(option)"
2391
- (keyup.space)="clearValue($event, option)"
2392
- (click)="clearValue($event, option)"
2393
- >
2394
- {{ option.label }}
2395
- </mat-radio-button>
2396
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2397
- </mat-radio-group>
2398
- </div>
2399
- </ng-template>
2373
+ template: `
2374
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2375
+ <ng-template #componentTemplate let-hasLabel>
2376
+ <div fxLayout="column">
2377
+ <mat-label *ngIf="hasLabel">
2378
+ <span [instance]="instance" matFormioLabel></span>
2379
+ </mat-label>
2380
+
2381
+ <mat-radio-group
2382
+ (change)="onChange()"
2383
+ [formControl]="control"
2384
+ fxFlexOffset="10px"
2385
+ fxLayout="{{ getLayout() }}"
2386
+ fxLayoutGap="10px"
2387
+ >
2388
+ <mat-radio-button *ngFor="let option of instance.component.values"
2389
+ value="{{ option.value }}"
2390
+ [checked]="isRadioChecked(option)"
2391
+ (keyup.space)="clearValue($event, option)"
2392
+ (click)="clearValue($event, option)"
2393
+ >
2394
+ {{ option.label }}
2395
+ </mat-radio-button>
2396
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2397
+ </mat-radio-group>
2398
+ </div>
2399
+ </ng-template>
2400
2400
  `
2401
2401
  }]
2402
2402
  }] });
2403
- RadioComponent.MaterialComponent = MaterialRadioComponent;
2404
-
2403
+ RadioComponent.MaterialComponent = MaterialRadioComponent;
2404
+
2405
2405
  class MaterialSelectBoxesComponent extends MaterialRadioComponent {
2406
2406
  constructor() {
2407
2407
  super(...arguments);
@@ -2434,64 +2434,64 @@ class MaterialSelectBoxesComponent extends MaterialRadioComponent {
2434
2434
  }
2435
2435
  }
2436
2436
  MaterialSelectBoxesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectBoxesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2437
- MaterialSelectBoxesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSelectBoxesComponent, selector: "mat-formio-selectboxes", usesInheritance: true, ngImport: i0, template: `
2438
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2439
- <ng-template #componentTemplate let-hasLabel>
2440
- <div fxLayout="column">
2441
- <mat-label *ngIf="hasLabel">
2442
- <span [instance]="instance" matFormioLabel></span>
2443
- </mat-label>
2444
- <div
2445
- fxFlexOffset="10px"
2446
- fxLayout="{{ getLayout() }}"
2447
- fxLayoutGap="10px"
2448
- >
2449
- <mat-checkbox
2450
- *ngFor="let option of instance.component.values"
2451
- (change)="onChange()"
2452
- [(ngModel)]="value[option.value]"
2453
- [disabled]="disabled"
2454
- >
2455
- {{ option.label }}
2456
- </mat-checkbox>
2457
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2458
- </div>
2459
- </div>
2460
- </ng-template>
2437
+ MaterialSelectBoxesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSelectBoxesComponent, selector: "mat-formio-selectboxes", usesInheritance: true, ngImport: i0, template: `
2438
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2439
+ <ng-template #componentTemplate let-hasLabel>
2440
+ <div fxLayout="column">
2441
+ <mat-label *ngIf="hasLabel">
2442
+ <span [instance]="instance" matFormioLabel></span>
2443
+ </mat-label>
2444
+ <div
2445
+ fxFlexOffset="10px"
2446
+ fxLayout="{{ getLayout() }}"
2447
+ fxLayoutGap="10px"
2448
+ >
2449
+ <mat-checkbox
2450
+ *ngFor="let option of instance.component.values"
2451
+ (change)="onChange()"
2452
+ [(ngModel)]="value[option.value]"
2453
+ [disabled]="disabled"
2454
+ >
2455
+ {{ option.label }}
2456
+ </mat-checkbox>
2457
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2458
+ </div>
2459
+ </div>
2460
+ </ng-template>
2461
2461
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4$6.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexOffsetDirective, selector: " [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md], [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md], [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm], [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]", inputs: ["fxFlexOffset", "fxFlexOffset.xs", "fxFlexOffset.sm", "fxFlexOffset.md", "fxFlexOffset.lg", "fxFlexOffset.xl", "fxFlexOffset.lt-sm", "fxFlexOffset.lt-md", "fxFlexOffset.lt-lg", "fxFlexOffset.lt-xl", "fxFlexOffset.gt-xs", "fxFlexOffset.gt-sm", "fxFlexOffset.gt-md", "fxFlexOffset.gt-lg"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
2462
2462
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectBoxesComponent, decorators: [{
2463
2463
  type: Component,
2464
2464
  args: [{
2465
2465
  selector: 'mat-formio-selectboxes',
2466
- template: `
2467
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2468
- <ng-template #componentTemplate let-hasLabel>
2469
- <div fxLayout="column">
2470
- <mat-label *ngIf="hasLabel">
2471
- <span [instance]="instance" matFormioLabel></span>
2472
- </mat-label>
2473
- <div
2474
- fxFlexOffset="10px"
2475
- fxLayout="{{ getLayout() }}"
2476
- fxLayoutGap="10px"
2477
- >
2478
- <mat-checkbox
2479
- *ngFor="let option of instance.component.values"
2480
- (change)="onChange()"
2481
- [(ngModel)]="value[option.value]"
2482
- [disabled]="disabled"
2483
- >
2484
- {{ option.label }}
2485
- </mat-checkbox>
2486
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2487
- </div>
2488
- </div>
2489
- </ng-template>
2466
+ template: `
2467
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2468
+ <ng-template #componentTemplate let-hasLabel>
2469
+ <div fxLayout="column">
2470
+ <mat-label *ngIf="hasLabel">
2471
+ <span [instance]="instance" matFormioLabel></span>
2472
+ </mat-label>
2473
+ <div
2474
+ fxFlexOffset="10px"
2475
+ fxLayout="{{ getLayout() }}"
2476
+ fxLayoutGap="10px"
2477
+ >
2478
+ <mat-checkbox
2479
+ *ngFor="let option of instance.component.values"
2480
+ (change)="onChange()"
2481
+ [(ngModel)]="value[option.value]"
2482
+ [disabled]="disabled"
2483
+ >
2484
+ {{ option.label }}
2485
+ </mat-checkbox>
2486
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2487
+ </div>
2488
+ </div>
2489
+ </ng-template>
2490
2490
  `
2491
2491
  }]
2492
2492
  }] });
2493
- SelectBoxesComponent.MaterialComponent = MaterialSelectBoxesComponent;
2494
-
2493
+ SelectBoxesComponent.MaterialComponent = MaterialSelectBoxesComponent;
2494
+
2495
2495
  class MaterialSelectComponent extends MaterialComponent {
2496
2496
  constructor() {
2497
2497
  super(...arguments);
@@ -2550,101 +2550,101 @@ class MaterialSelectComponent extends MaterialComponent {
2550
2550
  }
2551
2551
  }
2552
2552
  MaterialSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2553
- MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSelectComponent, selector: "mat-formio-select", viewQueries: [{ propertyName: "multiSelect", first: true, predicate: ["multiSelect"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
2554
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2555
- <ng-template #componentTemplate let-hasLabel>
2556
- <mat-form-field fxFill>
2557
-
2558
- <mat-label *ngIf="hasLabel">
2559
- <span [instance]="instance" matFormioLabel></span>
2560
- </mat-label>
2561
-
2562
- <span *ngIf="instance.component.prefix" matPrefix>
2563
- {{ instance.component.prefix }}&nbsp;
2564
- </span>
2565
- <mat-select
2566
- [multiple]="instance.component.multiple"
2567
- [formControl]="control"
2568
- [placeholder]="instance.component.placeholder"
2569
- (selectionChange)="onChange()"
2570
- [compareWith]="compareObjects"
2571
- >
2572
-
2573
- <mat-option>
2574
- <ngx-mat-select-search placeholderLabel="Find country..." [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
2575
- </mat-option>
2576
-
2577
- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2578
- <span [innerHTML]="option.label"></span>
2579
- </mat-option>
2580
-
2581
- <!-- <div class="mat-option">
2582
- <input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
2583
- </div> -->
2584
- <mat-option *ngIf="!filteredOptionsLength" disabled>
2585
- <span>Nothing was found</span>
2586
- </mat-option>
2587
- <!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2588
- <span [innerHTML]="option.label"></span>
2589
- </mat-option> -->
2590
- </mat-select>
2591
-
2592
- <span *ngIf="instance.component.suffix" matSuffix>
2593
- {{ instance.component.suffix }}
2594
- </span>
2595
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2596
- </mat-form-field>
2597
- </ng-template>
2553
+ MaterialSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialSelectComponent, selector: "mat-formio-select", viewQueries: [{ propertyName: "multiSelect", first: true, predicate: ["multiSelect"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
2554
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2555
+ <ng-template #componentTemplate let-hasLabel>
2556
+ <mat-form-field fxFill>
2557
+
2558
+ <mat-label *ngIf="hasLabel">
2559
+ <span [instance]="instance" matFormioLabel></span>
2560
+ </mat-label>
2561
+
2562
+ <span *ngIf="instance.component.prefix" matPrefix>
2563
+ {{ instance.component.prefix }}&nbsp;
2564
+ </span>
2565
+ <mat-select
2566
+ [multiple]="instance.component.multiple"
2567
+ [formControl]="control"
2568
+ [placeholder]="instance.component.placeholder"
2569
+ (selectionChange)="onChange()"
2570
+ [compareWith]="compareObjects"
2571
+ >
2572
+
2573
+ <mat-option>
2574
+ <ngx-mat-select-search placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
2575
+ </mat-option>
2576
+
2577
+ <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2578
+ <span [innerHTML]="option.label"></span>
2579
+ </mat-option>
2580
+
2581
+ <!-- <div class="mat-option">
2582
+ <input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
2583
+ </div> -->
2584
+ <mat-option *ngIf="!filteredOptionsLength" disabled>
2585
+ <span>Nothing was found</span>
2586
+ </mat-option>
2587
+ <!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2588
+ <span [innerHTML]="option.label"></span>
2589
+ </mat-option> -->
2590
+ </mat-select>
2591
+
2592
+ <span *ngIf="instance.component.suffix" matSuffix>
2593
+ {{ instance.component.suffix }}
2594
+ </span>
2595
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2596
+ </mat-form-field>
2597
+ </ng-template>
2598
2598
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix]" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix]" }, { kind: "component", type: i4$4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: i7.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "indexAndLengthScreenReaderText", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toogleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
2599
2599
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialSelectComponent, decorators: [{
2600
2600
  type: Component,
2601
2601
  args: [{
2602
2602
  selector: 'mat-formio-select',
2603
- template: `
2604
- <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2605
- <ng-template #componentTemplate let-hasLabel>
2606
- <mat-form-field fxFill>
2607
-
2608
- <mat-label *ngIf="hasLabel">
2609
- <span [instance]="instance" matFormioLabel></span>
2610
- </mat-label>
2611
-
2612
- <span *ngIf="instance.component.prefix" matPrefix>
2613
- {{ instance.component.prefix }}&nbsp;
2614
- </span>
2615
- <mat-select
2616
- [multiple]="instance.component.multiple"
2617
- [formControl]="control"
2618
- [placeholder]="instance.component.placeholder"
2619
- (selectionChange)="onChange()"
2620
- [compareWith]="compareObjects"
2621
- >
2622
-
2623
- <mat-option>
2624
- <ngx-mat-select-search placeholderLabel="Find country..." [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
2625
- </mat-option>
2626
-
2627
- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2628
- <span [innerHTML]="option.label"></span>
2629
- </mat-option>
2630
-
2631
- <!-- <div class="mat-option">
2632
- <input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
2633
- </div> -->
2634
- <mat-option *ngIf="!filteredOptionsLength" disabled>
2635
- <span>Nothing was found</span>
2636
- </mat-option>
2637
- <!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2638
- <span [innerHTML]="option.label"></span>
2639
- </mat-option> -->
2640
- </mat-select>
2641
-
2642
- <span *ngIf="instance.component.suffix" matSuffix>
2643
- {{ instance.component.suffix }}
2644
- </span>
2645
- <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2646
- </mat-form-field>
2647
- </ng-template>
2603
+ template: `
2604
+ <mat-formio-form-field [instance]="instance" [componentTemplate]="componentTemplate"></mat-formio-form-field>
2605
+ <ng-template #componentTemplate let-hasLabel>
2606
+ <mat-form-field fxFill>
2607
+
2608
+ <mat-label *ngIf="hasLabel">
2609
+ <span [instance]="instance" matFormioLabel></span>
2610
+ </mat-label>
2611
+
2612
+ <span *ngIf="instance.component.prefix" matPrefix>
2613
+ {{ instance.component.prefix }}&nbsp;
2614
+ </span>
2615
+ <mat-select
2616
+ [multiple]="instance.component.multiple"
2617
+ [formControl]="control"
2618
+ [placeholder]="instance.component.placeholder"
2619
+ (selectionChange)="onChange()"
2620
+ [compareWith]="compareObjects"
2621
+ >
2622
+
2623
+ <mat-option>
2624
+ <ngx-mat-select-search placeholderLabel="Type to search" [formControl]="websiteMultiFilterCtrl"></ngx-mat-select-search>
2625
+ </mat-option>
2626
+
2627
+ <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2628
+ <span [innerHTML]="option.label"></span>
2629
+ </mat-option>
2630
+
2631
+ <!-- <div class="mat-option">
2632
+ <input class="mat-input-element" placeholder="Type to search the risk" (input)="onFilter($event.target.value)">
2633
+ </div> -->
2634
+ <mat-option *ngIf="!filteredOptionsLength" disabled>
2635
+ <span>Nothing was found</span>
2636
+ </mat-option>
2637
+ <!-- <mat-option *ngFor="let option of filteredOptions | async" [value]="option.value">
2638
+ <span [innerHTML]="option.label"></span>
2639
+ </mat-option> -->
2640
+ </mat-select>
2641
+
2642
+ <span *ngIf="instance.component.suffix" matSuffix>
2643
+ {{ instance.component.suffix }}
2644
+ </span>
2645
+ <mat-error *ngIf="instance.error">{{ instance.error.message }}</mat-error>
2646
+ </mat-form-field>
2647
+ </ng-template>
2648
2648
  `
2649
2649
  }]
2650
2650
  }], propDecorators: { multiSelect: [{
@@ -2659,42 +2659,42 @@ SelectComponent.prototype.setItems = function (...args) {
2659
2659
  if (this.materialComponent && this.materialComponent.selectOptionsResolve) {
2660
2660
  this.materialComponent.selectOptionsResolve(this.selectOptions);
2661
2661
  }
2662
- };
2663
-
2662
+ };
2663
+
2664
2664
  class MaterialWellComponent extends MaterialNestedComponent {
2665
2665
  }
2666
2666
  MaterialWellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialWellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2667
- MaterialWellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialWellComponent, selector: "mat-formio-well", usesInheritance: true, ngImport: i0, template: `
2668
- <mat-card>
2669
- <mat-card-content fxLayout="column"
2670
- fxLayoutGap="1em"
2671
- [ngStyle]="{
2672
- 'background-color':'#f5f5f5',
2673
- 'padding': '1.5em'
2674
- }"
2675
- >
2676
- <ng-template #components></ng-template>
2677
- </mat-card-content>
2678
- </mat-card>
2667
+ MaterialWellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialWellComponent, selector: "mat-formio-well", usesInheritance: true, ngImport: i0, template: `
2668
+ <mat-card>
2669
+ <mat-card-content fxLayout="column"
2670
+ fxLayoutGap="1em"
2671
+ [ngStyle]="{
2672
+ 'background-color':'#f5f5f5',
2673
+ 'padding': '1.5em'
2674
+ }"
2675
+ >
2676
+ <ng-template #components></ng-template>
2677
+ </mat-card-content>
2678
+ </mat-card>
2679
2679
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i4$2.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: i4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "directive", type: i4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }] });
2680
2680
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialWellComponent, decorators: [{
2681
2681
  type: Component,
2682
- args: [{ selector: 'mat-formio-well', template: `
2683
- <mat-card>
2684
- <mat-card-content fxLayout="column"
2685
- fxLayoutGap="1em"
2686
- [ngStyle]="{
2687
- 'background-color':'#f5f5f5',
2688
- 'padding': '1.5em'
2689
- }"
2690
- >
2691
- <ng-template #components></ng-template>
2692
- </mat-card-content>
2693
- </mat-card>
2682
+ args: [{ selector: 'mat-formio-well', template: `
2683
+ <mat-card>
2684
+ <mat-card-content fxLayout="column"
2685
+ fxLayoutGap="1em"
2686
+ [ngStyle]="{
2687
+ 'background-color':'#f5f5f5',
2688
+ 'padding': '1.5em'
2689
+ }"
2690
+ >
2691
+ <ng-template #components></ng-template>
2692
+ </mat-card-content>
2693
+ </mat-card>
2694
2694
  ` }]
2695
2695
  }] });
2696
- WellComponent.MaterialComponent = MaterialWellComponent;
2697
-
2696
+ WellComponent.MaterialComponent = MaterialWellComponent;
2697
+
2698
2698
  class MaterialDataGridComponent extends MaterialNestedComponent {
2699
2699
  constructor() {
2700
2700
  super(...arguments);
@@ -2774,155 +2774,155 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
2774
2774
  }
2775
2775
  }
2776
2776
  MaterialDataGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDataGridComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2777
- MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialDataGridComponent, selector: "mat-formio-datagrid", usesInheritance: true, ngImport: i0, template: `
2778
- <mat-formio-form-field [instance]="instance"
2779
- [componentTemplate]="componentTemplate"
2780
- [labelTemplate]="labelTemplate"
2781
- ></mat-formio-form-field>
2782
- <ng-template #componentTemplate let-hasLabel>
2783
- <mat-card fxFill>
2784
- <ng-container *ngIf="hasLabel">
2785
- <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
2786
- </ng-container>
2787
- <mat-card-content>
2788
- <mat-card-actions
2789
- *ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
2790
- <button mat-raised-button color="primary" (click)="addAnother()">
2791
- <mat-icon>add</mat-icon>
2792
- {{instance.component.addAnother || 'Add Another'}}
2793
- </button>
2794
- </mat-card-actions>
2795
- <table
2796
- mat-table
2797
- [dataSource]="dataSource"
2798
- class="mat-elevation-z8"
2799
- fxFill
2800
- cdkDropList
2801
- [cdkDropListData]="dataSource"
2802
- (cdkDropListDropped)="dropTable($event)">
2803
- >
2804
- <ng-container *ngFor="let column of formColumns" [matColumnDef]="column">
2805
- <th mat-header-cell *matHeaderCellDef>{{ getColumnLabel(columns[column]) }}</th>
2806
- <td mat-cell *matCellDef="let i = index;" [attr.rowIndex]="i" [attr.component]="column">
2807
- <ng-template #components></ng-template>
2808
- </td>
2809
- </ng-container>
2810
- <ng-container matColumnDef="__removeRow">
2811
- <th mat-header-cell *matHeaderCellDef></th>
2812
- <td mat-cell *matCellDef="let i = index;">
2813
- <button mat-button *ngIf="instance.hasRemoveButtons()" (click)="removeRow(i)">
2814
- <mat-icon aria-hidden="false" aria-label="Remove row">delete</mat-icon>
2815
- </button>
2816
- </td>
2817
- </ng-container>
2818
- <ng-container matColumnDef="position" *ngIf="instance.component.reorder">
2819
- <th mat-header-cell *matHeaderCellDef> No.</th>
2820
- <td mat-cell *matCellDef="let element">
2821
- <mat-icon cdkDragHandle>reorder</mat-icon>
2822
- </td>
2823
- </ng-container>
2824
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
2825
- <div *ngIf="instance?.component?.reorder">
2826
- <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;" cdkDrag
2827
- [cdkDragData]="row"></tr>
2828
- </div>
2829
- <div *ngIf="!instance?.component?.reorder">
2830
- <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
2831
- </div>
2832
- </table>
2833
- </mat-card-content>
2834
- <mat-card-actions *ngIf="instance.hasAddButton() && instance.component.addAnotherPosition !== 'top'">
2835
- <button mat-raised-button color="primary" (click)="addAnother()">
2836
- <mat-icon>add</mat-icon>
2837
- {{instance.component.addAnother || 'Add Another'}}
2838
- </button>
2839
- </mat-card-actions>
2840
- </mat-card>
2841
- </ng-template>
2842
-
2843
- <ng-template #labelTemplate>
2844
- <mat-card-title>
2845
- <span [instance]="instance" matFormioLabel></span>
2846
- </mat-card-title>
2847
- </ng-template>
2777
+ MaterialDataGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialDataGridComponent, selector: "mat-formio-datagrid", usesInheritance: true, ngImport: i0, template: `
2778
+ <mat-formio-form-field [instance]="instance"
2779
+ [componentTemplate]="componentTemplate"
2780
+ [labelTemplate]="labelTemplate"
2781
+ ></mat-formio-form-field>
2782
+ <ng-template #componentTemplate let-hasLabel>
2783
+ <mat-card fxFill>
2784
+ <ng-container *ngIf="hasLabel">
2785
+ <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
2786
+ </ng-container>
2787
+ <mat-card-content>
2788
+ <mat-card-actions
2789
+ *ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
2790
+ <button mat-raised-button color="primary" (click)="addAnother()">
2791
+ <mat-icon>add</mat-icon>
2792
+ {{instance.component.addAnother || 'Add Another'}}
2793
+ </button>
2794
+ </mat-card-actions>
2795
+ <table
2796
+ mat-table
2797
+ [dataSource]="dataSource"
2798
+ class="mat-elevation-z8"
2799
+ fxFill
2800
+ cdkDropList
2801
+ [cdkDropListData]="dataSource"
2802
+ (cdkDropListDropped)="dropTable($event)">
2803
+ >
2804
+ <ng-container *ngFor="let column of formColumns" [matColumnDef]="column">
2805
+ <th mat-header-cell *matHeaderCellDef>{{ getColumnLabel(columns[column]) }}</th>
2806
+ <td mat-cell *matCellDef="let i = index;" [attr.rowIndex]="i" [attr.component]="column">
2807
+ <ng-template #components></ng-template>
2808
+ </td>
2809
+ </ng-container>
2810
+ <ng-container matColumnDef="__removeRow">
2811
+ <th mat-header-cell *matHeaderCellDef></th>
2812
+ <td mat-cell *matCellDef="let i = index;">
2813
+ <button mat-button *ngIf="instance.hasRemoveButtons()" (click)="removeRow(i)">
2814
+ <mat-icon aria-hidden="false" aria-label="Remove row">delete</mat-icon>
2815
+ </button>
2816
+ </td>
2817
+ </ng-container>
2818
+ <ng-container matColumnDef="position" *ngIf="instance.component.reorder">
2819
+ <th mat-header-cell *matHeaderCellDef> No.</th>
2820
+ <td mat-cell *matCellDef="let element">
2821
+ <mat-icon cdkDragHandle>reorder</mat-icon>
2822
+ </td>
2823
+ </ng-container>
2824
+ <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
2825
+ <div *ngIf="instance?.component?.reorder">
2826
+ <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;" cdkDrag
2827
+ [cdkDragData]="row"></tr>
2828
+ </div>
2829
+ <div *ngIf="!instance?.component?.reorder">
2830
+ <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
2831
+ </div>
2832
+ </table>
2833
+ </mat-card-content>
2834
+ <mat-card-actions *ngIf="instance.hasAddButton() && instance.component.addAnotherPosition !== 'top'">
2835
+ <button mat-raised-button color="primary" (click)="addAnother()">
2836
+ <mat-icon>add</mat-icon>
2837
+ {{instance.component.addAnother || 'Add Another'}}
2838
+ </button>
2839
+ </mat-card-actions>
2840
+ </mat-card>
2841
+ </ng-template>
2842
+
2843
+ <ng-template #labelTemplate>
2844
+ <mat-card-title>
2845
+ <span [instance]="instance" matFormioLabel></span>
2846
+ </mat-card-title>
2847
+ </ng-template>
2848
2848
  `, isInline: true, styles: [".datagrid-row{height:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3$2.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$2.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$2.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$2.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i3$2.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$2.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$2.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$2.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$2.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$2.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { kind: "component", type: i4.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "directive", type: i4.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i4.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i4.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i7$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i7$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i7$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: FormioFormFieldComponent, selector: "mat-formio-form-field", inputs: ["labelTemplate", "renderTopLabel", "showDescription", "renderElementOnly", "instance", "componentTemplate"] }, { kind: "component", type: LabelComponent, selector: "span[matFormioLabel]", inputs: ["instance"] }] });
2849
2849
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialDataGridComponent, decorators: [{
2850
2850
  type: Component,
2851
- args: [{ selector: 'mat-formio-datagrid', template: `
2852
- <mat-formio-form-field [instance]="instance"
2853
- [componentTemplate]="componentTemplate"
2854
- [labelTemplate]="labelTemplate"
2855
- ></mat-formio-form-field>
2856
- <ng-template #componentTemplate let-hasLabel>
2857
- <mat-card fxFill>
2858
- <ng-container *ngIf="hasLabel">
2859
- <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
2860
- </ng-container>
2861
- <mat-card-content>
2862
- <mat-card-actions
2863
- *ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
2864
- <button mat-raised-button color="primary" (click)="addAnother()">
2865
- <mat-icon>add</mat-icon>
2866
- {{instance.component.addAnother || 'Add Another'}}
2867
- </button>
2868
- </mat-card-actions>
2869
- <table
2870
- mat-table
2871
- [dataSource]="dataSource"
2872
- class="mat-elevation-z8"
2873
- fxFill
2874
- cdkDropList
2875
- [cdkDropListData]="dataSource"
2876
- (cdkDropListDropped)="dropTable($event)">
2877
- >
2878
- <ng-container *ngFor="let column of formColumns" [matColumnDef]="column">
2879
- <th mat-header-cell *matHeaderCellDef>{{ getColumnLabel(columns[column]) }}</th>
2880
- <td mat-cell *matCellDef="let i = index;" [attr.rowIndex]="i" [attr.component]="column">
2881
- <ng-template #components></ng-template>
2882
- </td>
2883
- </ng-container>
2884
- <ng-container matColumnDef="__removeRow">
2885
- <th mat-header-cell *matHeaderCellDef></th>
2886
- <td mat-cell *matCellDef="let i = index;">
2887
- <button mat-button *ngIf="instance.hasRemoveButtons()" (click)="removeRow(i)">
2888
- <mat-icon aria-hidden="false" aria-label="Remove row">delete</mat-icon>
2889
- </button>
2890
- </td>
2891
- </ng-container>
2892
- <ng-container matColumnDef="position" *ngIf="instance.component.reorder">
2893
- <th mat-header-cell *matHeaderCellDef> No.</th>
2894
- <td mat-cell *matCellDef="let element">
2895
- <mat-icon cdkDragHandle>reorder</mat-icon>
2896
- </td>
2897
- </ng-container>
2898
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
2899
- <div *ngIf="instance?.component?.reorder">
2900
- <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;" cdkDrag
2901
- [cdkDragData]="row"></tr>
2902
- </div>
2903
- <div *ngIf="!instance?.component?.reorder">
2904
- <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
2905
- </div>
2906
- </table>
2907
- </mat-card-content>
2908
- <mat-card-actions *ngIf="instance.hasAddButton() && instance.component.addAnotherPosition !== 'top'">
2909
- <button mat-raised-button color="primary" (click)="addAnother()">
2910
- <mat-icon>add</mat-icon>
2911
- {{instance.component.addAnother || 'Add Another'}}
2912
- </button>
2913
- </mat-card-actions>
2914
- </mat-card>
2915
- </ng-template>
2916
-
2917
- <ng-template #labelTemplate>
2918
- <mat-card-title>
2919
- <span [instance]="instance" matFormioLabel></span>
2920
- </mat-card-title>
2921
- </ng-template>
2851
+ args: [{ selector: 'mat-formio-datagrid', template: `
2852
+ <mat-formio-form-field [instance]="instance"
2853
+ [componentTemplate]="componentTemplate"
2854
+ [labelTemplate]="labelTemplate"
2855
+ ></mat-formio-form-field>
2856
+ <ng-template #componentTemplate let-hasLabel>
2857
+ <mat-card fxFill>
2858
+ <ng-container *ngIf="hasLabel">
2859
+ <ng-container *ngTemplateOutlet="labelTemplate"></ng-container>
2860
+ </ng-container>
2861
+ <mat-card-content>
2862
+ <mat-card-actions
2863
+ *ngIf="instance.hasAddButton() && (instance.component.addAnotherPosition === 'both' || instance.component.addAnotherPosition === 'top')">
2864
+ <button mat-raised-button color="primary" (click)="addAnother()">
2865
+ <mat-icon>add</mat-icon>
2866
+ {{instance.component.addAnother || 'Add Another'}}
2867
+ </button>
2868
+ </mat-card-actions>
2869
+ <table
2870
+ mat-table
2871
+ [dataSource]="dataSource"
2872
+ class="mat-elevation-z8"
2873
+ fxFill
2874
+ cdkDropList
2875
+ [cdkDropListData]="dataSource"
2876
+ (cdkDropListDropped)="dropTable($event)">
2877
+ >
2878
+ <ng-container *ngFor="let column of formColumns" [matColumnDef]="column">
2879
+ <th mat-header-cell *matHeaderCellDef>{{ getColumnLabel(columns[column]) }}</th>
2880
+ <td mat-cell *matCellDef="let i = index;" [attr.rowIndex]="i" [attr.component]="column">
2881
+ <ng-template #components></ng-template>
2882
+ </td>
2883
+ </ng-container>
2884
+ <ng-container matColumnDef="__removeRow">
2885
+ <th mat-header-cell *matHeaderCellDef></th>
2886
+ <td mat-cell *matCellDef="let i = index;">
2887
+ <button mat-button *ngIf="instance.hasRemoveButtons()" (click)="removeRow(i)">
2888
+ <mat-icon aria-hidden="false" aria-label="Remove row">delete</mat-icon>
2889
+ </button>
2890
+ </td>
2891
+ </ng-container>
2892
+ <ng-container matColumnDef="position" *ngIf="instance.component.reorder">
2893
+ <th mat-header-cell *matHeaderCellDef> No.</th>
2894
+ <td mat-cell *matCellDef="let element">
2895
+ <mat-icon cdkDragHandle>reorder</mat-icon>
2896
+ </td>
2897
+ </ng-container>
2898
+ <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
2899
+ <div *ngIf="instance?.component?.reorder">
2900
+ <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;" cdkDrag
2901
+ [cdkDragData]="row"></tr>
2902
+ </div>
2903
+ <div *ngIf="!instance?.component?.reorder">
2904
+ <tr class="datagrid-row" mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
2905
+ </div>
2906
+ </table>
2907
+ </mat-card-content>
2908
+ <mat-card-actions *ngIf="instance.hasAddButton() && instance.component.addAnotherPosition !== 'top'">
2909
+ <button mat-raised-button color="primary" (click)="addAnother()">
2910
+ <mat-icon>add</mat-icon>
2911
+ {{instance.component.addAnother || 'Add Another'}}
2912
+ </button>
2913
+ </mat-card-actions>
2914
+ </mat-card>
2915
+ </ng-template>
2916
+
2917
+ <ng-template #labelTemplate>
2918
+ <mat-card-title>
2919
+ <span [instance]="instance" matFormioLabel></span>
2920
+ </mat-card-title>
2921
+ </ng-template>
2922
2922
  `, styles: [".datagrid-row{height:auto}\n"] }]
2923
2923
  }] });
2924
- DataGridComponent.MaterialComponent = MaterialDataGridComponent;
2925
-
2924
+ DataGridComponent.MaterialComponent = MaterialDataGridComponent;
2925
+
2926
2926
  var EditRowState;
2927
2927
  (function (EditRowState) {
2928
2928
  EditRowState["NEW"] = "new";
@@ -2966,29 +2966,29 @@ EditGridComponent.prototype.checkRow = function (data, editRow, flags = {}) {
2966
2966
  /* tslint:enable only-arrow-functions */
2967
2967
  const DEFAULT_HEADER_TEMPLATES = [
2968
2968
  hashCode(EditGridComponent.defaultHeaderTemplate),
2969
- hashCode(`
2970
- <div class="row">
2971
- {% (components || []).forEach(function(component) { %}
2972
- <div class="col-sm-2">{{ component.label }}</div>
2973
- {% }) %}
2969
+ hashCode(`
2970
+ <div class="row">
2971
+ {% (components || []).forEach(function(component) { %}
2972
+ <div class="col-sm-2">{{ component.label }}</div>
2973
+ {% }) %}
2974
2974
  </div>`)
2975
2975
  ];
2976
2976
  const DEFAULT_ROW_TEMPLATES = [
2977
2977
  hashCode(EditGridComponent.defaultRowTemplate),
2978
- hashCode(`<div class="row">
2979
- {% util.eachComponent(components, function(component) { %}
2980
- <div class="col-sm-2">
2981
- {{ getView(component, row[component.key]) }}
2982
- </div>
2983
- {% }) %}
2984
- {% if (!instance.options.readOnly) { %}
2985
- <div class="col-sm-2">
2986
- <div class="btn-group pull-right">
2987
- <button class="btn btn-default btn-sm editRow">Edit</button>
2988
- <button class="btn btn-danger btn-sm removeRow">Delete</button>
2989
- </div>
2990
- </div>
2991
- {% } %}
2978
+ hashCode(`<div class="row">
2979
+ {% util.eachComponent(components, function(component) { %}
2980
+ <div class="col-sm-2">
2981
+ {{ getView(component, row[component.key]) }}
2982
+ </div>
2983
+ {% }) %}
2984
+ {% if (!instance.options.readOnly) { %}
2985
+ <div class="col-sm-2">
2986
+ <div class="btn-group pull-right">
2987
+ <button class="btn btn-default btn-sm editRow">Edit</button>
2988
+ <button class="btn btn-danger btn-sm removeRow">Delete</button>
2989
+ </div>
2990
+ </div>
2991
+ {% } %}
2992
2992
  </div>`)
2993
2993
  ];
2994
2994
  class MaterialEditGridComponent extends MaterialNestedComponent {
@@ -3000,12 +3000,12 @@ class MaterialEditGridComponent extends MaterialNestedComponent {
3000
3000
  this.RowStates = EditRowState;
3001
3001
  }
3002
3002
  getRowTemplate(content) {
3003
- return `<mat-list style="display: flex;">
3004
- {% (components || []).forEach(function(component) { %}
3005
- {% if (!component.hasOwnProperty('tableView') || component.tableView) { %}
3006
- <mat-list-item style="width: {{ colWidth }}%; margin: 0 0.8rem">${content}</mat-list-item>
3007
- {% } %}
3008
- {% }) %}
3003
+ return `<mat-list style="display: flex;">
3004
+ {% (components || []).forEach(function(component) { %}
3005
+ {% if (!component.hasOwnProperty('tableView') || component.tableView) { %}
3006
+ <mat-list-item style="width: {{ colWidth }}%; margin: 0 0.8rem">${content}</mat-list-item>
3007
+ {% } %}
3008
+ {% }) %}
3009
3009
  </mat-list>`;
3010
3010
  }
3011
3011
  validate(index) {
@@ -3157,8 +3157,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
3157
3157
  type: ViewChildren,
3158
3158
  args: ['forms']
3159
3159
  }] } });
3160
- EditGridComponent.MaterialComponent = MaterialEditGridComponent;
3161
-
3160
+ EditGridComponent.MaterialComponent = MaterialEditGridComponent;
3161
+
3162
3162
  class MaterialTableComponent extends MaterialNestedComponent {
3163
3163
  setInstance(instance) {
3164
3164
  super.setInstance(instance);
@@ -3177,75 +3177,75 @@ class MaterialTableComponent extends MaterialNestedComponent {
3177
3177
  }
3178
3178
  }
3179
3179
  MaterialTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3180
- MaterialTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTableComponent, selector: "mat-formio-table", usesInheritance: true, ngImport: i0, template: `
3181
- <table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
3182
- <thead>
3183
- <tr class="mat-header-row">
3184
- <th *ngFor="let header of instance.component.header"
3185
- class="mat-header-cell"
3186
- >
3187
- {{ instance.t(header) }}
3188
- </th>
3189
- </tr>
3190
- </thead>
3191
-
3192
- <tbody>
3193
- <tr *ngFor="let row of instance.table; let i = index"
3194
- role="row"
3195
- class="mat-row"
3196
- [ngClass]="{
3197
- 'is-hover': instance.component.hover,
3198
- 'is-striped': instance.component.striped && i % 2 === 0
3199
- }"
3200
- >
3201
- <td *ngFor="let col of row"
3202
- role="gridcell"
3203
- class="mat-cell"
3204
- [ngClass]="getTableColClasses()"
3205
- >
3206
- <ng-template #components></ng-template>
3207
- </td>
3208
- </tr>
3209
- </tbody>
3210
- </table>
3180
+ MaterialTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialTableComponent, selector: "mat-formio-table", usesInheritance: true, ngImport: i0, template: `
3181
+ <table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
3182
+ <thead>
3183
+ <tr class="mat-header-row">
3184
+ <th *ngFor="let header of instance.component.header"
3185
+ class="mat-header-cell"
3186
+ >
3187
+ {{ instance.t(header) }}
3188
+ </th>
3189
+ </tr>
3190
+ </thead>
3191
+
3192
+ <tbody>
3193
+ <tr *ngFor="let row of instance.table; let i = index"
3194
+ role="row"
3195
+ class="mat-row"
3196
+ [ngClass]="{
3197
+ 'is-hover': instance.component.hover,
3198
+ 'is-striped': instance.component.striped && i % 2 === 0
3199
+ }"
3200
+ >
3201
+ <td *ngFor="let col of row"
3202
+ role="gridcell"
3203
+ class="mat-cell"
3204
+ [ngClass]="getTableColClasses()"
3205
+ >
3206
+ <ng-template #components></ng-template>
3207
+ </td>
3208
+ </tr>
3209
+ </tbody>
3210
+ </table>
3211
3211
  `, isInline: true, styles: [".mat-table.is-bordered{border:1px solid #ddd}.mat-row.is-hover:hover{background-color:#f5f5f5}.mat-cell{padding:8px}.mat-cell.is-condensed{padding:3px}.mat-row.is-striped{background-color:#eee}.mat-cell.center{text-align:center}.mat-cell.right{text-align:right}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$2.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }] });
3212
3212
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialTableComponent, decorators: [{
3213
3213
  type: Component,
3214
- args: [{ selector: 'mat-formio-table', template: `
3215
- <table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
3216
- <thead>
3217
- <tr class="mat-header-row">
3218
- <th *ngFor="let header of instance.component.header"
3219
- class="mat-header-cell"
3220
- >
3221
- {{ instance.t(header) }}
3222
- </th>
3223
- </tr>
3224
- </thead>
3225
-
3226
- <tbody>
3227
- <tr *ngFor="let row of instance.table; let i = index"
3228
- role="row"
3229
- class="mat-row"
3230
- [ngClass]="{
3231
- 'is-hover': instance.component.hover,
3232
- 'is-striped': instance.component.striped && i % 2 === 0
3233
- }"
3234
- >
3235
- <td *ngFor="let col of row"
3236
- role="gridcell"
3237
- class="mat-cell"
3238
- [ngClass]="getTableColClasses()"
3239
- >
3240
- <ng-template #components></ng-template>
3241
- </td>
3242
- </tr>
3243
- </tbody>
3244
- </table>
3214
+ args: [{ selector: 'mat-formio-table', template: `
3215
+ <table class="mat-table" style="width: 100%;" [ngClass]="{'is-bordered' : instance.component.bordered}">
3216
+ <thead>
3217
+ <tr class="mat-header-row">
3218
+ <th *ngFor="let header of instance.component.header"
3219
+ class="mat-header-cell"
3220
+ >
3221
+ {{ instance.t(header) }}
3222
+ </th>
3223
+ </tr>
3224
+ </thead>
3225
+
3226
+ <tbody>
3227
+ <tr *ngFor="let row of instance.table; let i = index"
3228
+ role="row"
3229
+ class="mat-row"
3230
+ [ngClass]="{
3231
+ 'is-hover': instance.component.hover,
3232
+ 'is-striped': instance.component.striped && i % 2 === 0
3233
+ }"
3234
+ >
3235
+ <td *ngFor="let col of row"
3236
+ role="gridcell"
3237
+ class="mat-cell"
3238
+ [ngClass]="getTableColClasses()"
3239
+ >
3240
+ <ng-template #components></ng-template>
3241
+ </td>
3242
+ </tr>
3243
+ </tbody>
3244
+ </table>
3245
3245
  `, styles: [".mat-table.is-bordered{border:1px solid #ddd}.mat-row.is-hover:hover{background-color:#f5f5f5}.mat-cell{padding:8px}.mat-cell.is-condensed{padding:3px}.mat-row.is-striped{background-color:#eee}.mat-cell.center{text-align:center}.mat-cell.right{text-align:right}\n"] }]
3246
3246
  }] });
3247
- TableComponent.MaterialComponent = MaterialTableComponent;
3248
-
3247
+ TableComponent.MaterialComponent = MaterialTableComponent;
3248
+
3249
3249
  class MaterialWizardComponent extends MaterialNestedComponent {
3250
3250
  constructor() {
3251
3251
  super(...arguments);
@@ -3292,39 +3292,39 @@ class MaterialWizardComponent extends MaterialNestedComponent {
3292
3292
  }
3293
3293
  }
3294
3294
  MaterialWizardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialWizardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3295
- MaterialWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialWizardComponent, selector: "mat-formio-wizard", viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
3296
- <mat-horizontal-stepper [linear]="isLinear" #stepper>
3297
- <mat-step *ngFor="let page of instance.pages" [label]="page.component.title">
3298
- <ng-template #components></ng-template>
3299
- <div class="navigation-button-row">
3300
- <button *ngIf="instance.hasButton('cancel')" mat-raised-button (click)="resetWizard()">Cancel</button>
3301
- <button *ngIf="instance.hasButton('previous')" mat-raised-button color="primary" (click)="prevPage()">Previous</button>
3302
- <button *ngIf="instance.hasButton('next')" mat-raised-button color="primary" (click)="nextPage()">Next</button>
3303
- <button *ngIf="instance.hasButton('submit')" mat-raised-button color="primary" (click)="submit()">Submit</button>
3304
- </div>
3305
- </mat-step>
3306
- </mat-horizontal-stepper>`, isInline: true, styles: [":host .navigation-button-row{margin-top:8px}\n", ":host .navigation-button-row button{margin-right:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3$3.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "component", type: i3$3.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["selectedIndex", "disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }] });
3295
+ MaterialWizardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: MaterialWizardComponent, selector: "mat-formio-wizard", viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
3296
+ <mat-horizontal-stepper [linear]="isLinear" #stepper>
3297
+ <mat-step *ngFor="let page of instance.pages" [label]="page.component.title">
3298
+ <ng-template #components></ng-template>
3299
+ <div class="navigation-button-row">
3300
+ <button *ngIf="instance.hasButton('cancel')" mat-raised-button (click)="resetWizard()">Cancel</button>
3301
+ <button *ngIf="instance.hasButton('previous')" mat-raised-button color="primary" (click)="prevPage()">Previous</button>
3302
+ <button *ngIf="instance.hasButton('next')" mat-raised-button color="primary" (click)="nextPage()">Next</button>
3303
+ <button *ngIf="instance.hasButton('submit')" mat-raised-button color="primary" (click)="submit()">Submit</button>
3304
+ </div>
3305
+ </mat-step>
3306
+ </mat-horizontal-stepper>`, isInline: true, styles: [":host .navigation-button-row{margin-top:8px}\n", ":host .navigation-button-row button{margin-right:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3$3.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "component", type: i3$3.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["selectedIndex", "disableRipple", "color", "labelPosition", "headerPosition", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper"] }] });
3307
3307
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialWizardComponent, decorators: [{
3308
3308
  type: Component,
3309
- args: [{ selector: 'mat-formio-wizard', template: `
3310
- <mat-horizontal-stepper [linear]="isLinear" #stepper>
3311
- <mat-step *ngFor="let page of instance.pages" [label]="page.component.title">
3312
- <ng-template #components></ng-template>
3313
- <div class="navigation-button-row">
3314
- <button *ngIf="instance.hasButton('cancel')" mat-raised-button (click)="resetWizard()">Cancel</button>
3315
- <button *ngIf="instance.hasButton('previous')" mat-raised-button color="primary" (click)="prevPage()">Previous</button>
3316
- <button *ngIf="instance.hasButton('next')" mat-raised-button color="primary" (click)="nextPage()">Next</button>
3317
- <button *ngIf="instance.hasButton('submit')" mat-raised-button color="primary" (click)="submit()">Submit</button>
3318
- </div>
3319
- </mat-step>
3309
+ args: [{ selector: 'mat-formio-wizard', template: `
3310
+ <mat-horizontal-stepper [linear]="isLinear" #stepper>
3311
+ <mat-step *ngFor="let page of instance.pages" [label]="page.component.title">
3312
+ <ng-template #components></ng-template>
3313
+ <div class="navigation-button-row">
3314
+ <button *ngIf="instance.hasButton('cancel')" mat-raised-button (click)="resetWizard()">Cancel</button>
3315
+ <button *ngIf="instance.hasButton('previous')" mat-raised-button color="primary" (click)="prevPage()">Previous</button>
3316
+ <button *ngIf="instance.hasButton('next')" mat-raised-button color="primary" (click)="nextPage()">Next</button>
3317
+ <button *ngIf="instance.hasButton('submit')" mat-raised-button color="primary" (click)="submit()">Submit</button>
3318
+ </div>
3319
+ </mat-step>
3320
3320
  </mat-horizontal-stepper>`, styles: [":host .navigation-button-row{margin-top:8px}\n", ":host .navigation-button-row button{margin-right:8px}\n"] }]
3321
3321
  }], propDecorators: { stepper: [{
3322
3322
  type: ViewChild,
3323
3323
  args: ['stepper', { static: true }]
3324
3324
  }] } });
3325
3325
  Wizard.MaterialComponent = MaterialWizardComponent;
3326
- Displays.addDisplay('wizard', Wizard);
3327
-
3326
+ Displays.addDisplay('wizard', Wizard);
3327
+
3328
3328
  const Components$1 = require('formiojs/components/Components').default;
3329
3329
  // Set the components.
3330
3330
  const components = {
@@ -3414,8 +3414,8 @@ function registerComponent(name, CompClass) {
3414
3414
  return setValue.call(this, ...args);
3415
3415
  });
3416
3416
  Components$1.addComponent(name, formIOComp);
3417
- }
3418
-
3417
+ }
3418
+
3419
3419
  const Components = require('formiojs/components/Components').default;
3420
3420
  const Formio = require('formiojs/Formio').default;
3421
3421
  const Form = require('formiojs/Form').default;
@@ -3424,8 +3424,8 @@ function initRenderer() {
3424
3424
  Components.setComponents(getComponents());
3425
3425
  Formio.Components = Components;
3426
3426
  Formio.Templates = {};
3427
- }
3428
-
3427
+ }
3428
+
3429
3429
  class FormioComponent extends FormioBaseComponent {
3430
3430
  constructor(resolver, cd, ngZone, config) {
3431
3431
  super(ngZone, config);
@@ -3460,35 +3460,35 @@ class FormioComponent extends FormioBaseComponent {
3460
3460
  }
3461
3461
  }
3462
3462
  FormioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: FormioComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$1.FormioAppConfig, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3463
- FormioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: FormioComponent, selector: "mat-formio", viewQueries: [{ propertyName: "formioViewContainer", first: true, predicate: ["formio"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `
3464
- <mat-spinner *ngIf="isLoading"></mat-spinner>
3465
- <div *ngIf="!this.options?.disableAlerts">
3466
- <div *ngFor="let alert of alerts.alerts"
3467
- class="alert alert-{{ alert.type }}"
3468
- role="alert"
3469
- >
3470
- {{ alert.message }}
3471
- </div>
3472
- </div>
3473
- <div fxLayout="column" fxLayoutGap="1em">
3474
- <ng-template #formio></ng-template>
3475
- </div>
3463
+ FormioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: FormioComponent, selector: "mat-formio", viewQueries: [{ propertyName: "formioViewContainer", first: true, predicate: ["formio"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `
3464
+ <mat-spinner *ngIf="isLoading"></mat-spinner>
3465
+ <div *ngIf="!this.options?.disableAlerts">
3466
+ <div *ngFor="let alert of alerts.alerts"
3467
+ class="alert alert-{{ alert.type }}"
3468
+ role="alert"
3469
+ >
3470
+ {{ alert.message }}
3471
+ </div>
3472
+ </div>
3473
+ <div fxLayout="column" fxLayoutGap="1em">
3474
+ <ng-template #formio></ng-template>
3475
+ </div>
3476
3476
  `, isInline: true, styles: [".alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:.5rem;border:1px solid transparent;border-radius:.25rem}::ng-deep mat-card{box-sizing:border-box;-moz-box-sizing:border-box}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }] });
3477
3477
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: FormioComponent, decorators: [{
3478
3478
  type: Component,
3479
- args: [{ selector: 'mat-formio', template: `
3480
- <mat-spinner *ngIf="isLoading"></mat-spinner>
3481
- <div *ngIf="!this.options?.disableAlerts">
3482
- <div *ngFor="let alert of alerts.alerts"
3483
- class="alert alert-{{ alert.type }}"
3484
- role="alert"
3485
- >
3486
- {{ alert.message }}
3487
- </div>
3488
- </div>
3489
- <div fxLayout="column" fxLayoutGap="1em">
3490
- <ng-template #formio></ng-template>
3491
- </div>
3479
+ args: [{ selector: 'mat-formio', template: `
3480
+ <mat-spinner *ngIf="isLoading"></mat-spinner>
3481
+ <div *ngIf="!this.options?.disableAlerts">
3482
+ <div *ngFor="let alert of alerts.alerts"
3483
+ class="alert alert-{{ alert.type }}"
3484
+ role="alert"
3485
+ >
3486
+ {{ alert.message }}
3487
+ </div>
3488
+ </div>
3489
+ <div fxLayout="column" fxLayoutGap="1em">
3490
+ <ng-template #formio></ng-template>
3491
+ </div>
3492
3492
  `, styles: [".alert-danger{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.alert-success{color:#155724;background-color:#d4edda;border-color:#c3e6cb}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:.5rem;border:1px solid transparent;border-radius:.25rem}::ng-deep mat-card{box-sizing:border-box;-moz-box-sizing:border-box}\n"] }]
3493
3493
  }], ctorParameters: function () {
3494
3494
  return [{ type: i0.ComponentFactoryResolver }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$1.FormioAppConfig, decorators: [{
@@ -3497,8 +3497,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
3497
3497
  }, propDecorators: { formioViewContainer: [{
3498
3498
  type: ViewChild,
3499
3499
  args: ['formio', { static: true, read: ViewContainerRef }]
3500
- }] } });
3501
-
3500
+ }] } });
3501
+
3502
3502
  class NgxRenderMaterialFormsModule {
3503
3503
  constructor() {
3504
3504
  initRenderer();
@@ -3773,15 +3773,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
3773
3773
  MaterialWizardComponent
3774
3774
  ]
3775
3775
  }]
3776
- }], ctorParameters: function () { return []; } });
3777
-
3776
+ }], ctorParameters: function () { return []; } });
3777
+
3778
3778
  /*
3779
3779
  * Public API Surface of ngx-render-material-forms
3780
- */
3781
-
3780
+ */
3781
+
3782
3782
  /**
3783
3783
  * Generated bundle index. Do not edit.
3784
- */
3785
-
3786
- export { Components, Form, Formio, FormioComponent, MaterialButtonComponent, MaterialCheckboxComponent, MaterialColumnsComponent, MaterialComponent, MaterialContainerComponent, MaterialContentComponent, MaterialCurrencyComponent, MaterialDataGridComponent, MaterialDateComponent, MaterialDayComponent, MaterialEditGridComponent, MaterialEmailComponent, MaterialFieldsetComponent, MaterialHiddenComponent, MaterialHtmlComponent, MaterialNestedComponent, MaterialNumberComponent, MaterialPanelComponent, MaterialPasswordComponent, MaterialPhoneNumberComponent, MaterialRadioComponent, MaterialSelectBoxesComponent, MaterialSelectComponent, MaterialSignatureComponent, MaterialSurveyComponent, MaterialTableComponent, MaterialTabsComponent, MaterialTagsComponent, MaterialTextareaComponent, MaterialTextfieldComponent, MaterialTimeComponent, MaterialUrlComponent, MaterialWellComponent, NgxRenderMaterialFormsComponent, NgxRenderMaterialFormsModule, NgxRenderMaterialFormsService, Utils, initRenderer, registerComponent };
3787
- //# sourceMappingURL=ngx-render-material-forms.mjs.map
3784
+ */
3785
+
3786
+ export { Components, Form, Formio, FormioComponent, MaterialButtonComponent, MaterialCheckboxComponent, MaterialColumnsComponent, MaterialComponent, MaterialContainerComponent, MaterialContentComponent, MaterialCurrencyComponent, MaterialDataGridComponent, MaterialDateComponent, MaterialDayComponent, MaterialEditGridComponent, MaterialEmailComponent, MaterialFieldsetComponent, MaterialHiddenComponent, MaterialHtmlComponent, MaterialNestedComponent, MaterialNumberComponent, MaterialPanelComponent, MaterialPasswordComponent, MaterialPhoneNumberComponent, MaterialRadioComponent, MaterialSelectBoxesComponent, MaterialSelectComponent, MaterialSignatureComponent, MaterialSurveyComponent, MaterialTableComponent, MaterialTabsComponent, MaterialTagsComponent, MaterialTextareaComponent, MaterialTextfieldComponent, MaterialTimeComponent, MaterialUrlComponent, MaterialWellComponent, NgxRenderMaterialFormsComponent, NgxRenderMaterialFormsModule, NgxRenderMaterialFormsService, Utils, initRenderer, registerComponent };
3787
+ //# sourceMappingURL=ngx-render-material-forms.mjs.map