@ajf/material 12.1.5 → 12.1.8

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.
Files changed (191) hide show
  1. package/bundles/material-barcode.umd.js +3 -7
  2. package/bundles/material-barcode.umd.js.map +1 -1
  3. package/bundles/material-calendar.umd.js +5 -17
  4. package/bundles/material-calendar.umd.js.map +1 -1
  5. package/bundles/material-checkbox-group.umd.js +4 -14
  6. package/bundles/material-checkbox-group.umd.js.map +1 -1
  7. package/bundles/material-form-builder.umd.js +523 -484
  8. package/bundles/material-form-builder.umd.js.map +1 -1
  9. package/bundles/material-forms.umd.js +95 -63
  10. package/bundles/material-forms.umd.js.map +1 -1
  11. package/bundles/material-image.umd.js +3 -10
  12. package/bundles/material-image.umd.js.map +1 -1
  13. package/bundles/material-monaco-editor.umd.js +4 -7
  14. package/bundles/material-monaco-editor.umd.js.map +1 -1
  15. package/bundles/material-node-icon.umd.js +3 -10
  16. package/bundles/material-node-icon.umd.js.map +1 -1
  17. package/bundles/material-page-slider.umd.js +2 -7
  18. package/bundles/material-page-slider.umd.js.map +1 -1
  19. package/bundles/material-reports.umd.js +68 -12
  20. package/bundles/material-reports.umd.js.map +1 -1
  21. package/bundles/material-time.umd.js +4 -12
  22. package/bundles/material-time.umd.js.map +1 -1
  23. package/calendar/index.metadata.json +1 -1
  24. package/checkbox-group/index.metadata.json +1 -1
  25. package/esm2015/barcode/barcode-module.js +3 -7
  26. package/esm2015/barcode/barcode.js +3 -3
  27. package/esm2015/calendar/calendar-module.js +4 -14
  28. package/esm2015/calendar/calendar.js +4 -6
  29. package/esm2015/checkbox-group/checkbox-group-item.js +3 -3
  30. package/esm2015/checkbox-group/checkbox-group-module.js +4 -14
  31. package/esm2015/form-builder/branch-line.js +2 -2
  32. package/esm2015/form-builder/choices-origin-data-source.js +1 -1
  33. package/esm2015/form-builder/choices-origin-editor-dialog.js +7 -4
  34. package/esm2015/form-builder/choices-origin-editor.js +1 -1
  35. package/esm2015/form-builder/condition-editor-dialog.js +1 -1
  36. package/esm2015/form-builder/condition-editor.js +9 -8
  37. package/esm2015/form-builder/form-builder-module.js +29 -14
  38. package/esm2015/form-builder/form-builder-service.js +132 -125
  39. package/esm2015/form-builder/form-builder-utils.js +4 -3
  40. package/esm2015/form-builder/form-builder.js +30 -26
  41. package/esm2015/form-builder/node-entry.js +7 -5
  42. package/esm2015/form-builder/node-properties.js +317 -312
  43. package/esm2015/form-builder/node-type-entry.js +2 -2
  44. package/esm2015/form-builder/string-identifier-dialog.js +5 -7
  45. package/esm2015/form-builder/validation-condition-editor-dialog.js +1 -1
  46. package/esm2015/form-builder/warning-condition-editor-dialog.js +1 -1
  47. package/esm2015/forms/barcode-field.js +3 -3
  48. package/esm2015/forms/boolean-field.js +3 -3
  49. package/esm2015/forms/date-field.js +2 -2
  50. package/esm2015/forms/date-input-field.js +3 -3
  51. package/esm2015/forms/empty-field.js +3 -3
  52. package/esm2015/forms/field-service.js +42 -42
  53. package/esm2015/forms/field-warning-dialog.js +1 -1
  54. package/esm2015/forms/field.js +2 -2
  55. package/esm2015/forms/form.js +2 -2
  56. package/esm2015/forms/forms-module.js +55 -23
  57. package/esm2015/forms/input-field.js +2 -2
  58. package/esm2015/forms/multiple-choice-field.js +3 -3
  59. package/esm2015/forms/range-field.js +3 -3
  60. package/esm2015/forms/single-choice-field.js +3 -3
  61. package/esm2015/forms/table-field.js +3 -3
  62. package/esm2015/forms/text-field.js +2 -2
  63. package/esm2015/forms/time-field.js +3 -3
  64. package/esm2015/forms/video-url-field.js +2 -2
  65. package/esm2015/forms/warning-alert-service.js +1 -1
  66. package/esm2015/image/image-module.js +4 -11
  67. package/esm2015/image/image.js +2 -2
  68. package/esm2015/monaco-editor/autocomplete-singleton-model.js +3 -2
  69. package/esm2015/monaco-editor/editor-options-model.js +1 -1
  70. package/esm2015/monaco-editor/monaco-editor-module.js +3 -7
  71. package/esm2015/monaco-editor/monaco-editor.js +3 -3
  72. package/esm2015/node-icon/node-icon-module.js +4 -11
  73. package/esm2015/node-icon/node-icon.js +1 -1
  74. package/esm2015/page-slider/page-slider-module.js +3 -8
  75. package/esm2015/page-slider/page-slider.js +2 -2
  76. package/esm2015/reports/chart-widget.js +2 -2
  77. package/esm2015/reports/filter-widget.js +78 -0
  78. package/esm2015/reports/formula-widget.js +2 -2
  79. package/esm2015/reports/image-container-widget.js +2 -2
  80. package/esm2015/reports/image-widget.js +2 -2
  81. package/esm2015/reports/map-widget.js +2 -2
  82. package/esm2015/reports/page-break-widget.js +2 -2
  83. package/esm2015/reports/public-api.js +2 -1
  84. package/esm2015/reports/report.js +2 -2
  85. package/esm2015/reports/reports-module.js +7 -6
  86. package/esm2015/reports/table-widget.js +3 -3
  87. package/esm2015/reports/text-widget.js +2 -2
  88. package/esm2015/reports/widget.js +7 -4
  89. package/esm2015/time/time-module.js +4 -12
  90. package/esm2015/time/time.js +3 -3
  91. package/fesm2015/barcode.js +3 -7
  92. package/fesm2015/barcode.js.map +1 -1
  93. package/fesm2015/calendar.js +5 -17
  94. package/fesm2015/calendar.js.map +1 -1
  95. package/fesm2015/checkbox-group.js +4 -14
  96. package/fesm2015/checkbox-group.js.map +1 -1
  97. package/fesm2015/form-builder.js +521 -485
  98. package/fesm2015/form-builder.js.map +1 -1
  99. package/fesm2015/forms.js +95 -63
  100. package/fesm2015/forms.js.map +1 -1
  101. package/fesm2015/image.js +3 -10
  102. package/fesm2015/image.js.map +1 -1
  103. package/fesm2015/monaco-editor.js +5 -8
  104. package/fesm2015/monaco-editor.js.map +1 -1
  105. package/fesm2015/node-icon.js +3 -10
  106. package/fesm2015/node-icon.js.map +1 -1
  107. package/fesm2015/page-slider.js +2 -7
  108. package/fesm2015/page-slider.js.map +1 -1
  109. package/fesm2015/reports.js +89 -13
  110. package/fesm2015/reports.js.map +1 -1
  111. package/fesm2015/time.js +4 -12
  112. package/fesm2015/time.js.map +1 -1
  113. package/form-builder/index.metadata.json +1 -1
  114. package/form-builder/node-properties.d.ts +1 -0
  115. package/forms/index.metadata.json +1 -1
  116. package/image/index.metadata.json +1 -1
  117. package/monaco-editor/index.metadata.json +1 -1
  118. package/node-icon/index.metadata.json +1 -1
  119. package/package.json +2 -4
  120. package/page-slider/index.metadata.json +1 -1
  121. package/{report-builder/widget-toolbar-button.d.ts → reports/filter-widget.d.ts} +11 -5
  122. package/reports/index.metadata.json +1 -1
  123. package/reports/public-api.d.ts +1 -0
  124. package/time/index.metadata.json +1 -1
  125. package/bundles/material-report-builder.umd.js +0 -5814
  126. package/bundles/material-report-builder.umd.js.map +0 -1
  127. package/esm2015/report-builder/column.js +0 -97
  128. package/esm2015/report-builder/condition-editor.js +0 -159
  129. package/esm2015/report-builder/content.js +0 -255
  130. package/esm2015/report-builder/custom-widget-dialog.js +0 -51
  131. package/esm2015/report-builder/custom-widget-toolbar-button.js +0 -70
  132. package/esm2015/report-builder/custom-widgets-toolbar.js +0 -124
  133. package/esm2015/report-builder/forms-analyzer-dialog.js +0 -315
  134. package/esm2015/report-builder/forms-analyzer.js +0 -264
  135. package/esm2015/report-builder/image-filter.js +0 -32
  136. package/esm2015/report-builder/image-group.js +0 -106
  137. package/esm2015/report-builder/index.js +0 -25
  138. package/esm2015/report-builder/models.js +0 -23
  139. package/esm2015/report-builder/operations.js +0 -23
  140. package/esm2015/report-builder/properties.js +0 -765
  141. package/esm2015/report-builder/public-api.js +0 -26
  142. package/esm2015/report-builder/quill-editor.js +0 -299
  143. package/esm2015/report-builder/renderer-widget.js +0 -238
  144. package/esm2015/report-builder/report-builder-drag-data.js +0 -23
  145. package/esm2015/report-builder/report-builder-module.js +0 -114
  146. package/esm2015/report-builder/report-builder-service.js +0 -1685
  147. package/esm2015/report-builder/report-builder.externs.js +0 -6
  148. package/esm2015/report-builder/report-builder.js +0 -69
  149. package/esm2015/report-builder/theme-color-dialog.js +0 -90
  150. package/esm2015/report-builder/theme-color.js +0 -215
  151. package/esm2015/report-builder/tokens.js +0 -24
  152. package/esm2015/report-builder/toolbar-dialog.js +0 -56
  153. package/esm2015/report-builder/toolbar.js +0 -90
  154. package/esm2015/report-builder/utils.js +0 -48
  155. package/esm2015/report-builder/widget-toolbar-button.js +0 -47
  156. package/esm2015/report-builder/widgets-row-buttons.js +0 -133
  157. package/esm2015/report-builder/widgets-toolbar.js +0 -79
  158. package/fesm2015/report-builder.js +0 -5332
  159. package/fesm2015/report-builder.js.map +0 -1
  160. package/report-builder/_report-builder.scss +0 -0
  161. package/report-builder/column.d.ts +0 -63
  162. package/report-builder/condition-editor.d.ts +0 -67
  163. package/report-builder/content.d.ts +0 -142
  164. package/report-builder/custom-widget-dialog.d.ts +0 -31
  165. package/report-builder/custom-widget-toolbar-button.d.ts +0 -45
  166. package/report-builder/custom-widgets-toolbar.d.ts +0 -71
  167. package/report-builder/forms-analyzer-dialog.d.ts +0 -91
  168. package/report-builder/forms-analyzer.d.ts +0 -102
  169. package/report-builder/image-filter.d.ts +0 -25
  170. package/report-builder/image-group.d.ts +0 -69
  171. package/report-builder/index.d.ts +0 -24
  172. package/report-builder/index.metadata.json +0 -1
  173. package/report-builder/models.d.ts +0 -43
  174. package/report-builder/operations.d.ts +0 -45
  175. package/report-builder/package.json +0 -9
  176. package/report-builder/properties.d.ts +0 -365
  177. package/report-builder/public-api.d.ts +0 -26
  178. package/report-builder/quill-editor.d.ts +0 -113
  179. package/report-builder/renderer-widget.d.ts +0 -80
  180. package/report-builder/report-builder-drag-data.d.ts +0 -32
  181. package/report-builder/report-builder-module.d.ts +0 -23
  182. package/report-builder/report-builder-service.d.ts +0 -722
  183. package/report-builder/report-builder.d.ts +0 -36
  184. package/report-builder/theme-color-dialog.d.ts +0 -42
  185. package/report-builder/theme-color.d.ts +0 -108
  186. package/report-builder/tokens.d.ts +0 -24
  187. package/report-builder/toolbar-dialog.d.ts +0 -30
  188. package/report-builder/toolbar.d.ts +0 -48
  189. package/report-builder/utils.d.ts +0 -29
  190. package/report-builder/widgets-row-buttons.d.ts +0 -57
  191. package/report-builder/widgets-toolbar.d.ts +0 -44
package/fesm2015/forms.js CHANGED
@@ -667,72 +667,72 @@ AjfVideoUrlFieldComponent.ctorParameters = () => [
667
667
  class AjfFieldService extends AjfFieldService$1 {
668
668
  constructor() {
669
669
  super();
670
- this.componentsMap[AjfFieldType.String] = {
670
+ (this.componentsMap[AjfFieldType.String] = {
671
671
  component: AjfInputFieldComponent,
672
- readOnlyComponent: AjfReadOnlyFieldComponent
673
- },
674
- this.componentsMap[AjfFieldType.Text] = {
672
+ readOnlyComponent: AjfReadOnlyFieldComponent,
673
+ }),
674
+ (this.componentsMap[AjfFieldType.Text] = {
675
675
  component: AjfTextFieldComponent,
676
- readOnlyComponent: AjfReadOnlyFieldComponent
677
- },
678
- this.componentsMap[AjfFieldType.Number] = {
676
+ readOnlyComponent: AjfReadOnlyFieldComponent,
677
+ }),
678
+ (this.componentsMap[AjfFieldType.Number] = {
679
679
  component: AjfInputFieldComponent,
680
680
  readOnlyComponent: AjfReadOnlyFieldComponent,
681
- inputs: { type: 'number' }
682
- },
683
- this.componentsMap[AjfFieldType.Boolean] = {
681
+ inputs: { type: 'number' },
682
+ }),
683
+ (this.componentsMap[AjfFieldType.Boolean] = {
684
684
  component: AjfBooleanFieldComponent,
685
- readOnlyComponent: AjfReadOnlyFieldComponent
686
- },
687
- this.componentsMap[AjfFieldType.Formula] = {
685
+ readOnlyComponent: AjfReadOnlyFieldComponent,
686
+ }),
687
+ (this.componentsMap[AjfFieldType.Formula] = {
688
688
  component: AjfInputFieldComponent,
689
689
  readOnlyComponent: AjfReadOnlyFieldComponent,
690
- inputs: { readonly: true }
691
- },
692
- this.componentsMap[AjfFieldType.Date] = {
690
+ inputs: { readonly: true },
691
+ }),
692
+ (this.componentsMap[AjfFieldType.Date] = {
693
693
  component: AjfDateFieldComponent,
694
- readOnlyComponent: AjfReadOnlyFieldComponent
695
- },
696
- this.componentsMap[AjfFieldType.DateInput] = {
694
+ readOnlyComponent: AjfReadOnlyFieldComponent,
695
+ }),
696
+ (this.componentsMap[AjfFieldType.DateInput] = {
697
697
  component: AjfDateInputFieldComponent,
698
- readOnlyComponent: AjfReadOnlyFieldComponent
699
- },
700
- this.componentsMap[AjfFieldType.Table] = {
698
+ readOnlyComponent: AjfReadOnlyFieldComponent,
699
+ }),
700
+ (this.componentsMap[AjfFieldType.Table] = {
701
701
  component: AjfTableFieldComponent,
702
- readOnlyComponent: AjfReadOnlyTableFieldComponent
703
- },
704
- this.componentsMap[AjfFieldType.Empty] = { component: AjfEmptyFieldComponent },
705
- this.componentsMap[AjfFieldType.SingleChoice] = {
702
+ readOnlyComponent: AjfReadOnlyTableFieldComponent,
703
+ }),
704
+ (this.componentsMap[AjfFieldType.Empty] = { component: AjfEmptyFieldComponent }),
705
+ (this.componentsMap[AjfFieldType.SingleChoice] = {
706
706
  component: AjfSingleChoiceFieldComponent,
707
- readOnlyComponent: AjfReadOnlySelectFieldComponent
708
- },
709
- this.componentsMap[AjfFieldType.MultipleChoice] = {
707
+ readOnlyComponent: AjfReadOnlySelectFieldComponent,
708
+ }),
709
+ (this.componentsMap[AjfFieldType.MultipleChoice] = {
710
710
  component: AjfMultipleChoiceFieldComponent,
711
- readOnlyComponent: AjfReadOnlySelectFieldComponent
712
- },
713
- this.componentsMap[AjfFieldType.Time] = {
711
+ readOnlyComponent: AjfReadOnlySelectFieldComponent,
712
+ }),
713
+ (this.componentsMap[AjfFieldType.Time] = {
714
714
  component: AjfTimeFieldComponent,
715
- readOnlyComponent: AjfReadOnlyFieldComponent
716
- },
717
- this.componentsMap[AjfFieldType.Barcode] = {
715
+ readOnlyComponent: AjfReadOnlyFieldComponent,
716
+ }),
717
+ (this.componentsMap[AjfFieldType.Barcode] = {
718
718
  component: AjfBarcodeFieldComponent,
719
- readOnlyComponent: AjfReadOnlyFieldComponent
720
- };
719
+ readOnlyComponent: AjfReadOnlyFieldComponent,
720
+ });
721
721
  this.componentsMap[AjfFieldType.File] = {
722
722
  component: AjfFileFieldComponent,
723
- readOnlyComponent: AjfReadOnlyFileFieldComponent
723
+ readOnlyComponent: AjfReadOnlyFileFieldComponent,
724
724
  };
725
725
  this.componentsMap[AjfFieldType.Image] = {
726
726
  component: AjfImageFieldComponent,
727
- readOnlyComponent: AjfReadOnlyImageFieldComponent
727
+ readOnlyComponent: AjfReadOnlyImageFieldComponent,
728
728
  };
729
729
  this.componentsMap[AjfFieldType.VideoUrl] = {
730
730
  component: AjfVideoUrlFieldComponent,
731
- readOnlyComponent: AjfReadOnlyVideoUrlFieldComponent
731
+ readOnlyComponent: AjfReadOnlyVideoUrlFieldComponent,
732
732
  };
733
733
  this.componentsMap[AjfFieldType.Range] = {
734
734
  component: AjfRangeFieldComponent,
735
- readOnlyComponent: AjfReadOnlyFieldComponent
735
+ readOnlyComponent: AjfReadOnlyFieldComponent,
736
736
  };
737
737
  }
738
738
  }
@@ -853,39 +853,71 @@ class AjfFormsModule {
853
853
  static forRoot() {
854
854
  return {
855
855
  ngModule: AjfFormsModule,
856
- providers: [
857
- AjfFieldService,
858
- ],
856
+ providers: [AjfFieldService],
859
857
  };
860
858
  }
861
859
  }
862
860
  AjfFormsModule.decorators = [
863
861
  { type: NgModule, args: [{
864
862
  imports: [
865
- AjfBarcodeModule, AjfCalendarModule, AjfCommonModule, AjfFormsModule$1,
866
- AjfCheckboxGroupModule, AjfPageSliderModule, AjfTimeModule, AjfTranslocoModule,
867
- CommonModule, MatButtonModule, MatCardModule, MatDialogModule,
868
- MatFormFieldModule, MatIconModule, MatInputModule, MatRadioModule,
869
- MatSelectModule, MatSlideToggleModule, MatToolbarModule, MatTooltipModule,
870
- ReactiveFormsModule, TextFieldModule, MatSliderModule
863
+ AjfBarcodeModule,
864
+ AjfCalendarModule,
865
+ AjfCommonModule,
866
+ AjfFormsModule$1,
867
+ AjfCheckboxGroupModule,
868
+ AjfPageSliderModule,
869
+ AjfTimeModule,
870
+ AjfTranslocoModule,
871
+ CommonModule,
872
+ MatButtonModule,
873
+ MatCardModule,
874
+ MatDialogModule,
875
+ MatFormFieldModule,
876
+ MatIconModule,
877
+ MatInputModule,
878
+ MatRadioModule,
879
+ MatSelectModule,
880
+ MatSlideToggleModule,
881
+ MatToolbarModule,
882
+ MatTooltipModule,
883
+ ReactiveFormsModule,
884
+ TextFieldModule,
885
+ MatSliderModule,
871
886
  ],
872
887
  declarations: [
873
- AjfBarcodeFieldComponent, AjfBooleanFieldComponent, AjfDateFieldComponent,
874
- AjfDateInputFieldComponent, AjfEmptyFieldComponent, AjfFieldWarningDialog, AjfFormField,
875
- AjfFormRenderer, AjfInputFieldComponent, AjfMultipleChoiceFieldComponent,
876
- AjfRangeFieldComponent, AjfSingleChoiceFieldComponent, AjfTableFieldComponent,
877
- AjfTextFieldComponent, AjfTimeFieldComponent, AjfVideoUrlFieldComponent
878
- ],
879
- entryComponents: [
880
- AjfBarcodeFieldComponent, AjfBooleanFieldComponent, AjfDateFieldComponent,
881
- AjfDateInputFieldComponent, AjfEmptyFieldComponent, AjfInputFieldComponent,
882
- AjfMultipleChoiceFieldComponent, AjfRangeFieldComponent, AjfSingleChoiceFieldComponent,
883
- AjfTableFieldComponent, AjfTextFieldComponent, AjfTimeFieldComponent, AjfVideoUrlFieldComponent
884
- ],
885
- exports: [
888
+ AjfBarcodeFieldComponent,
889
+ AjfBooleanFieldComponent,
890
+ AjfDateFieldComponent,
891
+ AjfDateInputFieldComponent,
892
+ AjfEmptyFieldComponent,
893
+ AjfFieldWarningDialog,
886
894
  AjfFormField,
887
895
  AjfFormRenderer,
896
+ AjfInputFieldComponent,
897
+ AjfMultipleChoiceFieldComponent,
898
+ AjfRangeFieldComponent,
899
+ AjfSingleChoiceFieldComponent,
900
+ AjfTableFieldComponent,
901
+ AjfTextFieldComponent,
902
+ AjfTimeFieldComponent,
903
+ AjfVideoUrlFieldComponent,
904
+ ],
905
+ entryComponents: [
906
+ AjfBarcodeFieldComponent,
907
+ AjfBooleanFieldComponent,
908
+ AjfDateFieldComponent,
909
+ AjfDateInputFieldComponent,
910
+ AjfEmptyFieldComponent,
911
+ AjfInputFieldComponent,
912
+ AjfMultipleChoiceFieldComponent,
913
+ AjfRangeFieldComponent,
914
+ AjfSingleChoiceFieldComponent,
915
+ AjfTableFieldComponent,
916
+ AjfTextFieldComponent,
917
+ AjfTimeFieldComponent,
918
+ AjfVideoUrlFieldComponent,
888
919
  ],
920
+ exports: [AjfFormField, AjfFormRenderer],
889
921
  providers: [
890
922
  AjfFieldService,
891
923
  { provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService },
@@ -1 +1 @@
1
- {"version":3,"file":"forms.js","sources":["../../../../../../src/material/forms/field-warning-dialog.ts","../../../../../../src/material/forms/warning-alert-service.ts","../../../../../../src/material/forms/boolean-field.ts","../../../../../../src/material/forms/date-field.ts","../../../../../../src/material/forms/date-input-field.ts","../../../../../../src/material/forms/empty-field.ts","../../../../../../src/material/forms/barcode-field.ts","../../../../../../src/material/forms/input-field.ts","../../../../../../src/material/forms/multiple-choice-field.ts","../../../../../../src/material/forms/range-field.ts","../../../../../../src/material/forms/single-choice-field.ts","../../../../../../src/material/forms/table-field.ts","../../../../../../src/material/forms/text-field.ts","../../../../../../src/material/forms/time-field.ts","../../../../../../src/material/forms/video-url-field.ts","../../../../../../src/material/forms/field-service.ts","../../../../../../src/material/forms/field.ts","../../../../../../src/material/forms/form.ts","../../../../../../src/material/forms/forms-module.ts","../../../../../../src/material/forms/public-api.ts","../../../../../../src/material/forms/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n\n@Component({\n templateUrl: 'field-warning-dialog.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class AjfFieldWarningDialog {\n message: string;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AjfFieldWarningAlertResult,\n AjfWarningAlertService as CoreWarningAlertService\n} from '@ajf/core/forms';\nimport {Injectable} from '@angular/core';\nimport {MatDialog} from '@angular/material/dialog';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {AjfFieldWarningDialog} from './field-warning-dialog';\n\n@Injectable()\nexport class AjfWarningAlertService implements CoreWarningAlertService {\n constructor(private _dialog: MatDialog) {}\n\n showWarningAlertPrompt(warnings: string[]): Observable<AjfFieldWarningAlertResult> {\n const dialog = this._dialog.open(AjfFieldWarningDialog);\n dialog.componentInstance.message = warnings.join('<br>');\n return dialog.afterClosed().pipe(map((result: boolean) => ({result})));\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfFormRendererService\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n@Component({\n templateUrl: 'boolean-field.html',\n styleUrls: ['boolean-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfBooleanFieldComponent extends AjfBaseFieldComponent {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfDateFieldInstance,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'date-field.html',\n styleUrls: ['date-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfDateFieldComponent extends AjfBaseFieldComponent<AjfDateFieldInstance> {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfDateFieldInstance,\n AjfDateValueStringPipe,\n AjfFormRendererService\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {MatInput} from '@angular/material/input';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'date-input-field.html',\n styleUrls: ['date-input-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfDateInputFieldComponent extends AjfBaseFieldComponent<AjfDateFieldInstance> {\n @ViewChild(MatInput, {static: false}) input: MatInput;\n\n private _minDateStr: string|undefined;\n private _maxDateStr: string|undefined;\n\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n private _dvs: AjfDateValueStringPipe) {\n super(cdr, service, was);\n }\n\n onChange(): void {\n if (this.input == null) {\n return;\n }\n const val = this.input.value || '';\n if (val.length > 0) {\n if ((this._minDateStr != null && val < this._minDateStr) ||\n (this._maxDateStr != null && val > this._maxDateStr)) {\n this.input.value = '';\n }\n }\n }\n\n protected override _onInstanceChange(): void {\n this._minDateStr = this._dvs.transform(this.instance.node.minDate);\n this._maxDateStr = this._dvs.transform(this.instance.node.maxDate);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfEmptyFieldInstance,\n AjfFormRendererService\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'empty-field.html',\n styleUrls: ['empty-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfEmptyFieldComponent extends AjfBaseFieldComponent<AjfEmptyFieldInstance> {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfFormRendererService\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'barcode-field.html',\n styleUrls: ['barcode-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfBarcodeFieldComponent extends AjfBaseFieldComponent {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfInputFieldComponent as CoreComponent,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'input-field.html',\n styleUrls: ['input-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfInputFieldComponent extends CoreComponent {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_SEARCH_ALERT_THRESHOLD,\n AJF_WARNING_ALERT_SERVICE,\n AjfFieldWithChoicesComponent,\n AjfFormRendererService\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Optional,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'multiple-choice-field.html',\n styleUrls: ['multiple-choice-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfMultipleChoiceFieldComponent<T> extends AjfFieldWithChoicesComponent<T> {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n @Optional() @Inject(AJF_SEARCH_ALERT_THRESHOLD) searchThreshold: number) {\n super(cdr, service, was, searchThreshold);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {AjfRange} from '@ajf/core/range';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n selector: 'ajf-range',\n templateUrl: 'range-field.html',\n styleUrls: ['range-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfRangeFieldComponent extends AjfRange {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_SEARCH_ALERT_THRESHOLD,\n AJF_WARNING_ALERT_SERVICE,\n AjfFieldWithChoicesComponent,\n AjfFormRendererService\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Optional,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'single-choice-field.html',\n styleUrls: ['single-choice-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfSingleChoiceFieldComponent<T> extends AjfFieldWithChoicesComponent<T> {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n @Optional() @Inject(AJF_SEARCH_ALERT_THRESHOLD) searchThreshold: number) {\n super(cdr, service, was, searchThreshold);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfTableFieldComponent as AjfCoreTableFieldComponent\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'table-field.html',\n styleUrls: ['table-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfTableFieldComponent extends AjfCoreTableFieldComponent {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfInputFieldComponent as CoreComponent,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'text-field.html',\n styleUrls: ['text-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfTextFieldComponent extends CoreComponent {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfFormRendererService\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'time-field.html',\n styleUrls: ['time-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfTimeFieldComponent extends AjfBaseFieldComponent {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfVideoUrlFieldComponent as CoreComponent,\n} from '@ajf/core/forms';\nimport {HttpClient} from '@angular/common/http';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation\n} from '@angular/core';\nimport {DomSanitizer} from '@angular/platform-browser';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'video-url-field.html',\n styleUrls: ['video-url-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfVideoUrlFieldComponent extends CoreComponent {\n constructor(\n cdr: ChangeDetectorRef, service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService, domSanitizer: DomSanitizer,\n httpClient: HttpClient) {\n super(cdr, service, was, domSanitizer, httpClient);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AjfFieldService as CoreService,\n AjfFieldType,\n AjfFileFieldComponent,\n AjfImageFieldComponent,\n AjfReadOnlyFieldComponent,\n AjfReadOnlyFileFieldComponent,\n AjfReadOnlyImageFieldComponent,\n AjfReadOnlySelectFieldComponent,\n AjfReadOnlyTableFieldComponent,\n AjfReadOnlyVideoUrlFieldComponent,\n} from '@ajf/core/forms';\nimport {Injectable} from '@angular/core';\n\nimport {AjfBarcodeFieldComponent} from './barcode-field';\nimport {AjfBooleanFieldComponent} from './boolean-field';\nimport {AjfDateFieldComponent} from './date-field';\nimport {AjfDateInputFieldComponent} from './date-input-field';\nimport {AjfEmptyFieldComponent} from './empty-field';\nimport {AjfInputFieldComponent} from './input-field';\nimport {AjfMultipleChoiceFieldComponent} from './multiple-choice-field';\nimport {AjfRangeFieldComponent} from './range-field';\nimport {AjfSingleChoiceFieldComponent} from './single-choice-field';\nimport {AjfTableFieldComponent} from './table-field';\nimport {AjfTextFieldComponent} from './text-field';\nimport {AjfTimeFieldComponent} from './time-field';\nimport {AjfVideoUrlFieldComponent} from './video-url-field';\n\n@Injectable({providedIn: 'root'})\nexport class AjfFieldService extends CoreService {\n constructor() {\n super();\n this.componentsMap[AjfFieldType.String] = {\n component: AjfInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n },\n this.componentsMap[AjfFieldType.Text] = {\n component: AjfTextFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n },\n this.componentsMap[AjfFieldType.Number] = {\n component: AjfInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n inputs: {type: 'number'}\n },\n this.componentsMap[AjfFieldType.Boolean] = {\n component: AjfBooleanFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n },\n this.componentsMap[AjfFieldType.Formula] = {\n component: AjfInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n inputs: {readonly: true}\n },\n this.componentsMap[AjfFieldType.Date] = {\n component: AjfDateFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n },\n this.componentsMap[AjfFieldType.DateInput] = {\n component: AjfDateInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n },\n this.componentsMap[AjfFieldType.Table] = {\n component: AjfTableFieldComponent,\n readOnlyComponent: AjfReadOnlyTableFieldComponent\n },\n this.componentsMap[AjfFieldType.Empty] = {component: AjfEmptyFieldComponent},\n this.componentsMap[AjfFieldType.SingleChoice] = {\n component: AjfSingleChoiceFieldComponent,\n readOnlyComponent: AjfReadOnlySelectFieldComponent\n },\n this.componentsMap[AjfFieldType.MultipleChoice] = {\n component: AjfMultipleChoiceFieldComponent,\n readOnlyComponent: AjfReadOnlySelectFieldComponent\n },\n this.componentsMap[AjfFieldType.Time] = {\n component: AjfTimeFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n },\n this.componentsMap[AjfFieldType.Barcode] = {\n component: AjfBarcodeFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n };\n this.componentsMap[AjfFieldType.File] = {\n component: AjfFileFieldComponent,\n readOnlyComponent: AjfReadOnlyFileFieldComponent\n };\n this.componentsMap[AjfFieldType.Image] = {\n component: AjfImageFieldComponent,\n readOnlyComponent: AjfReadOnlyImageFieldComponent\n };\n this.componentsMap[AjfFieldType.VideoUrl] = {\n component: AjfVideoUrlFieldComponent,\n readOnlyComponent: AjfReadOnlyVideoUrlFieldComponent\n };\n this.componentsMap[AjfFieldType.Range] = {\n component: AjfRangeFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent\n };\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfFieldComponentsMap, AjfFormField as CoreFormField} from '@ajf/core/forms';\nimport {BooleanInput} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ComponentFactoryResolver,\n ViewEncapsulation\n} from '@angular/core';\n\nimport {AjfFieldService} from './field-service';\n\n@Component({\n selector: 'ajf-field,ajf-form-field',\n templateUrl: 'field.html',\n styleUrls: ['field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfFormField extends CoreFormField {\n readonly componentsMap: AjfFieldComponentsMap;\n\n constructor(\n cdr: ChangeDetectorRef, cfr: ComponentFactoryResolver, fieldService: AjfFieldService) {\n super(cdr, cfr);\n this.componentsMap = fieldService.componentsMap;\n }\n\n static ngAcceptInputType_readonly: BooleanInput;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfFormRenderer as AjfCoreFormRenderer, AjfFormRendererService} from '@ajf/core/forms';\nimport {BooleanInput} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n ViewEncapsulation\n} from '@angular/core';\n\n@Component({\n selector: 'ajf-form',\n templateUrl: 'form.html',\n styleUrls: ['form.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AjfFormRenderer extends AjfCoreFormRenderer {\n @Input() topBar: boolean = false;\n\n constructor(rendererService: AjfFormRendererService, changeDetectorRef: ChangeDetectorRef) {\n super(rendererService, changeDetectorRef);\n }\n\n static ngAcceptInputType_fixedOrientation: BooleanInput;\n static ngAcceptInputType_hasEndMessage: BooleanInput;\n static ngAcceptInputType_hasStartMessage: BooleanInput;\n static ngAcceptInputType_hideBottomToolbar: BooleanInput;\n static ngAcceptInputType_hideNavigationButtons: BooleanInput;\n static ngAcceptInputType_hideTopToolbar: BooleanInput;\n static ngAcceptInputType_readonly: BooleanInput;\n static ngAcceptInputType_saveDisabled: BooleanInput;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfCommonModule} from '@ajf/core/common';\nimport {AJF_WARNING_ALERT_SERVICE, AjfFormsModule as AjfCoreFormsModule} from '@ajf/core/forms';\nimport {AjfTranslocoModule} from '@ajf/core/transloco';\nimport {AjfBarcodeModule} from '@ajf/material/barcode';\nimport {AjfCalendarModule} from '@ajf/material/calendar';\nimport {AjfCheckboxGroupModule} from '@ajf/material/checkbox-group';\nimport {AjfPageSliderModule} from '@ajf/material/page-slider';\nimport {AjfTimeModule} from '@ajf/material/time';\nimport {TextFieldModule} from '@angular/cdk/text-field';\nimport {CommonModule} from '@angular/common';\nimport {ModuleWithProviders, NgModule} from '@angular/core';\nimport {ReactiveFormsModule} from '@angular/forms';\nimport {MatButtonModule} from '@angular/material/button';\nimport {MatCardModule} from '@angular/material/card';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatInputModule} from '@angular/material/input';\nimport {MatRadioModule} from '@angular/material/radio';\nimport {MatSelectModule} from '@angular/material/select';\nimport {MatSlideToggleModule} from '@angular/material/slide-toggle';\nimport {MatSliderModule} from '@angular/material/slider';\nimport {MatToolbarModule} from '@angular/material/toolbar';\nimport {MatTooltipModule} from '@angular/material/tooltip';\n\nimport {AjfBarcodeFieldComponent} from './barcode-field';\nimport {AjfBooleanFieldComponent} from './boolean-field';\nimport {AjfDateFieldComponent} from './date-field';\nimport {AjfDateInputFieldComponent} from './date-input-field';\nimport {AjfEmptyFieldComponent} from './empty-field';\nimport {AjfFormField} from './field';\nimport {AjfFieldService} from './field-service';\nimport {AjfFieldWarningDialog} from './field-warning-dialog';\nimport {AjfFormRenderer} from './form';\nimport {AjfInputFieldComponent} from './input-field';\nimport {AjfMultipleChoiceFieldComponent} from './multiple-choice-field';\nimport {AjfRangeFieldComponent} from './range-field';\nimport {AjfSingleChoiceFieldComponent} from './single-choice-field';\nimport {AjfTableFieldComponent} from './table-field';\nimport {AjfTextFieldComponent} from './text-field';\nimport {AjfTimeFieldComponent} from './time-field';\nimport {AjfVideoUrlFieldComponent} from './video-url-field';\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@NgModule({\n imports: [\n AjfBarcodeModule, AjfCalendarModule, AjfCommonModule, AjfCoreFormsModule,\n AjfCheckboxGroupModule, AjfPageSliderModule, AjfTimeModule, AjfTranslocoModule,\n CommonModule, MatButtonModule, MatCardModule, MatDialogModule,\n MatFormFieldModule, MatIconModule, MatInputModule, MatRadioModule,\n MatSelectModule, MatSlideToggleModule, MatToolbarModule, MatTooltipModule,\n ReactiveFormsModule, TextFieldModule, MatSliderModule\n ],\n declarations: [\n AjfBarcodeFieldComponent, AjfBooleanFieldComponent, AjfDateFieldComponent,\n AjfDateInputFieldComponent, AjfEmptyFieldComponent, AjfFieldWarningDialog, AjfFormField,\n AjfFormRenderer, AjfInputFieldComponent, AjfMultipleChoiceFieldComponent,\n AjfRangeFieldComponent, AjfSingleChoiceFieldComponent, AjfTableFieldComponent,\n AjfTextFieldComponent, AjfTimeFieldComponent, AjfVideoUrlFieldComponent\n ],\n entryComponents: [\n AjfBarcodeFieldComponent, AjfBooleanFieldComponent, AjfDateFieldComponent,\n AjfDateInputFieldComponent, AjfEmptyFieldComponent, AjfInputFieldComponent,\n AjfMultipleChoiceFieldComponent, AjfRangeFieldComponent, AjfSingleChoiceFieldComponent,\n AjfTableFieldComponent, AjfTextFieldComponent, AjfTimeFieldComponent, AjfVideoUrlFieldComponent\n ],\n exports: [\n AjfFormField,\n AjfFormRenderer,\n ],\n providers: [\n AjfFieldService,\n {provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService},\n ],\n})\nexport class AjfFormsModule {\n static forRoot(): ModuleWithProviders<AjfFormsModule> {\n return {\n ngModule: AjfFormsModule,\n providers: [\n AjfFieldService,\n ],\n };\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './boolean-field';\nexport * from './date-field';\nexport * from './date-input-field';\nexport * from './empty-field';\nexport * from './field';\nexport * from './field-service';\nexport * from './field-warning-dialog';\nexport * from './input-field';\nexport * from './form';\nexport * from './forms-module';\nexport * from './multiple-choice-field';\nexport * from './single-choice-field';\nexport * from './table-field';\nexport * from './time-field';\nexport * from './warning-alert-service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {AjfBarcodeFieldComponent as ɵgc_ajf_src_material_forms_forms_a} from './barcode-field';\nexport {AjfRangeFieldComponent as ɵgc_ajf_src_material_forms_forms_b} from './range-field';\nexport {AjfTextFieldComponent as ɵgc_ajf_src_material_forms_forms_c} from './text-field';\nexport {AjfVideoUrlFieldComponent as ɵgc_ajf_src_material_forms_forms_d} from './video-url-field';"],"names":["CoreComponent","AjfCoreTableFieldComponent","CoreService","CoreFormField","AjfCoreFormRenderer","AjfCoreFormsModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MA8Ba,qBAAqB;;;YALjC,SAAS,SAAC;gBACT,wQAAwC;gBACxC,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;aACtC;;;AC7BD;;;;;;;;;;;;;;;;;;;;;MAkCa,sBAAsB;IACjC,YAAoB,OAAkB;QAAlB,YAAO,GAAP,OAAO,CAAW;KAAI;IAE1C,sBAAsB,CAAC,QAAkB;QACvC,MAAM,MAAM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,EAAI,cAAc;oBAC9E,eAAe,EAAS,oBAAoB,EAAE,gBAAgB,EAAE,gBAAgB;oBAChF,mBAAmB,EAAK,eAAe,EAAO,eAAe;iBAC9D;gBACD,YAAY,EAAE;oBACZ,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB;oBACzE,0BAA0B,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,YAAY;oBACvF,eAAe,EAAE,sBAAsB,EAAE,+BAA+B;oBACxE,sBAAsB,EAAE,6BAA6B,EAAE,sBAAsB;oBAC7E,qBAAqB,EAAE,qBAAqB,EAAE,yBAAyB;iBACxE;gBACD,eAAe,EAAE;oBACf,wBAAwB,EAAE,wBAAwB,EAAE,qBAAqB;oBACzE,0BAA0B,EAAE,sBAAsB,EAAE,sBAAsB;oBAC1E,+BAA+B,EAAE,sBAAsB,EAAE,6BAA6B;oBACtF,sBAAsB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,yBAAyB;iBAChG;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,eAAe;iBAChB;gBACD,SAAS,EAAE;oBACT,eAAe;oBACf,EAAC,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,sBAAsB,EAAC;iBACvE;aACF;;;AChGD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"forms.js","sources":["../../../../../../src/material/forms/field-warning-dialog.ts","../../../../../../src/material/forms/warning-alert-service.ts","../../../../../../src/material/forms/boolean-field.ts","../../../../../../src/material/forms/date-field.ts","../../../../../../src/material/forms/date-input-field.ts","../../../../../../src/material/forms/empty-field.ts","../../../../../../src/material/forms/barcode-field.ts","../../../../../../src/material/forms/input-field.ts","../../../../../../src/material/forms/multiple-choice-field.ts","../../../../../../src/material/forms/range-field.ts","../../../../../../src/material/forms/single-choice-field.ts","../../../../../../src/material/forms/table-field.ts","../../../../../../src/material/forms/text-field.ts","../../../../../../src/material/forms/time-field.ts","../../../../../../src/material/forms/video-url-field.ts","../../../../../../src/material/forms/field-service.ts","../../../../../../src/material/forms/field.ts","../../../../../../src/material/forms/form.ts","../../../../../../src/material/forms/forms-module.ts","../../../../../../src/material/forms/public-api.ts","../../../../../../src/material/forms/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n templateUrl: 'field-warning-dialog.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfFieldWarningDialog {\n message: string;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AjfFieldWarningAlertResult,\n AjfWarningAlertService as CoreWarningAlertService,\n} from '@ajf/core/forms';\nimport {Injectable} from '@angular/core';\nimport {MatDialog} from '@angular/material/dialog';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {AjfFieldWarningDialog} from './field-warning-dialog';\n\n@Injectable()\nexport class AjfWarningAlertService implements CoreWarningAlertService {\n constructor(private _dialog: MatDialog) {}\n\n showWarningAlertPrompt(warnings: string[]): Observable<AjfFieldWarningAlertResult> {\n const dialog = this._dialog.open(AjfFieldWarningDialog);\n dialog.componentInstance.message = warnings.join('<br>');\n return dialog.afterClosed().pipe(map((result: boolean) => ({result})));\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n@Component({\n templateUrl: 'boolean-field.html',\n styleUrls: ['boolean-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfBooleanFieldComponent extends AjfBaseFieldComponent {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfDateFieldInstance,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'date-field.html',\n styleUrls: ['date-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfDateFieldComponent extends AjfBaseFieldComponent<AjfDateFieldInstance> {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfDateFieldInstance,\n AjfDateValueStringPipe,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {MatInput} from '@angular/material/input';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'date-input-field.html',\n styleUrls: ['date-input-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfDateInputFieldComponent extends AjfBaseFieldComponent<AjfDateFieldInstance> {\n @ViewChild(MatInput, {static: false}) input: MatInput;\n\n private _minDateStr: string | undefined;\n private _maxDateStr: string | undefined;\n\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n private _dvs: AjfDateValueStringPipe,\n ) {\n super(cdr, service, was);\n }\n\n onChange(): void {\n if (this.input == null) {\n return;\n }\n const val = this.input.value || '';\n if (val.length > 0) {\n if (\n (this._minDateStr != null && val < this._minDateStr) ||\n (this._maxDateStr != null && val > this._maxDateStr)\n ) {\n this.input.value = '';\n }\n }\n }\n\n protected override _onInstanceChange(): void {\n this._minDateStr = this._dvs.transform(this.instance.node.minDate);\n this._maxDateStr = this._dvs.transform(this.instance.node.maxDate);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfEmptyFieldInstance,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'empty-field.html',\n styleUrls: ['empty-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfEmptyFieldComponent extends AjfBaseFieldComponent<AjfEmptyFieldInstance> {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'barcode-field.html',\n styleUrls: ['barcode-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfBarcodeFieldComponent extends AjfBaseFieldComponent {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfInputFieldComponent as CoreComponent,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'input-field.html',\n styleUrls: ['input-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfInputFieldComponent extends CoreComponent {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_SEARCH_ALERT_THRESHOLD,\n AJF_WARNING_ALERT_SERVICE,\n AjfFieldWithChoicesComponent,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Optional,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'multiple-choice-field.html',\n styleUrls: ['multiple-choice-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfMultipleChoiceFieldComponent<T> extends AjfFieldWithChoicesComponent<T> {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n @Optional() @Inject(AJF_SEARCH_ALERT_THRESHOLD) searchThreshold: number,\n ) {\n super(cdr, service, was, searchThreshold);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AJF_WARNING_ALERT_SERVICE, AjfFormRendererService} from '@ajf/core/forms';\nimport {AjfRange} from '@ajf/core/range';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n selector: 'ajf-range',\n templateUrl: 'range-field.html',\n styleUrls: ['range-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfRangeFieldComponent extends AjfRange {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_SEARCH_ALERT_THRESHOLD,\n AJF_WARNING_ALERT_SERVICE,\n AjfFieldWithChoicesComponent,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n Optional,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'single-choice-field.html',\n styleUrls: ['single-choice-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfSingleChoiceFieldComponent<T> extends AjfFieldWithChoicesComponent<T> {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n @Optional() @Inject(AJF_SEARCH_ALERT_THRESHOLD) searchThreshold: number,\n ) {\n super(cdr, service, was, searchThreshold);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfTableFieldComponent as AjfCoreTableFieldComponent,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'table-field.html',\n styleUrls: ['table-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfTableFieldComponent extends AjfCoreTableFieldComponent {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfInputFieldComponent as CoreComponent,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'text-field.html',\n styleUrls: ['text-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfTextFieldComponent extends CoreComponent {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfBaseFieldComponent,\n AjfFormRendererService,\n} from '@ajf/core/forms';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'time-field.html',\n styleUrls: ['time-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfTimeFieldComponent extends AjfBaseFieldComponent {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n ) {\n super(cdr, service, was);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AJF_WARNING_ALERT_SERVICE,\n AjfFormRendererService,\n AjfVideoUrlFieldComponent as CoreComponent,\n} from '@ajf/core/forms';\nimport {HttpClient} from '@angular/common/http';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {DomSanitizer} from '@angular/platform-browser';\n\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@Component({\n templateUrl: 'video-url-field.html',\n styleUrls: ['video-url-field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfVideoUrlFieldComponent extends CoreComponent {\n constructor(\n cdr: ChangeDetectorRef,\n service: AjfFormRendererService,\n @Inject(AJF_WARNING_ALERT_SERVICE) was: AjfWarningAlertService,\n domSanitizer: DomSanitizer,\n httpClient: HttpClient,\n ) {\n super(cdr, service, was, domSanitizer, httpClient);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {\n AjfFieldService as CoreService,\n AjfFieldType,\n AjfFileFieldComponent,\n AjfImageFieldComponent,\n AjfReadOnlyFieldComponent,\n AjfReadOnlyFileFieldComponent,\n AjfReadOnlyImageFieldComponent,\n AjfReadOnlySelectFieldComponent,\n AjfReadOnlyTableFieldComponent,\n AjfReadOnlyVideoUrlFieldComponent,\n} from '@ajf/core/forms';\nimport {Injectable} from '@angular/core';\n\nimport {AjfBarcodeFieldComponent} from './barcode-field';\nimport {AjfBooleanFieldComponent} from './boolean-field';\nimport {AjfDateFieldComponent} from './date-field';\nimport {AjfDateInputFieldComponent} from './date-input-field';\nimport {AjfEmptyFieldComponent} from './empty-field';\nimport {AjfInputFieldComponent} from './input-field';\nimport {AjfMultipleChoiceFieldComponent} from './multiple-choice-field';\nimport {AjfRangeFieldComponent} from './range-field';\nimport {AjfSingleChoiceFieldComponent} from './single-choice-field';\nimport {AjfTableFieldComponent} from './table-field';\nimport {AjfTextFieldComponent} from './text-field';\nimport {AjfTimeFieldComponent} from './time-field';\nimport {AjfVideoUrlFieldComponent} from './video-url-field';\n\n@Injectable({providedIn: 'root'})\nexport class AjfFieldService extends CoreService {\n constructor() {\n super();\n (this.componentsMap[AjfFieldType.String] = {\n component: AjfInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.Text] = {\n component: AjfTextFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.Number] = {\n component: AjfInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n inputs: {type: 'number'},\n }),\n (this.componentsMap[AjfFieldType.Boolean] = {\n component: AjfBooleanFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.Formula] = {\n component: AjfInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n inputs: {readonly: true},\n }),\n (this.componentsMap[AjfFieldType.Date] = {\n component: AjfDateFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.DateInput] = {\n component: AjfDateInputFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.Table] = {\n component: AjfTableFieldComponent,\n readOnlyComponent: AjfReadOnlyTableFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.Empty] = {component: AjfEmptyFieldComponent}),\n (this.componentsMap[AjfFieldType.SingleChoice] = {\n component: AjfSingleChoiceFieldComponent,\n readOnlyComponent: AjfReadOnlySelectFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.MultipleChoice] = {\n component: AjfMultipleChoiceFieldComponent,\n readOnlyComponent: AjfReadOnlySelectFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.Time] = {\n component: AjfTimeFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n }),\n (this.componentsMap[AjfFieldType.Barcode] = {\n component: AjfBarcodeFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n });\n this.componentsMap[AjfFieldType.File] = {\n component: AjfFileFieldComponent,\n readOnlyComponent: AjfReadOnlyFileFieldComponent,\n };\n this.componentsMap[AjfFieldType.Image] = {\n component: AjfImageFieldComponent,\n readOnlyComponent: AjfReadOnlyImageFieldComponent,\n };\n this.componentsMap[AjfFieldType.VideoUrl] = {\n component: AjfVideoUrlFieldComponent,\n readOnlyComponent: AjfReadOnlyVideoUrlFieldComponent,\n };\n this.componentsMap[AjfFieldType.Range] = {\n component: AjfRangeFieldComponent,\n readOnlyComponent: AjfReadOnlyFieldComponent,\n };\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfFieldComponentsMap, AjfFormField as CoreFormField} from '@ajf/core/forms';\nimport {BooleanInput} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ComponentFactoryResolver,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {AjfFieldService} from './field-service';\n\n@Component({\n selector: 'ajf-field,ajf-form-field',\n templateUrl: 'field.html',\n styleUrls: ['field.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfFormField extends CoreFormField {\n readonly componentsMap: AjfFieldComponentsMap;\n\n constructor(\n cdr: ChangeDetectorRef,\n cfr: ComponentFactoryResolver,\n fieldService: AjfFieldService,\n ) {\n super(cdr, cfr);\n this.componentsMap = fieldService.componentsMap;\n }\n\n static ngAcceptInputType_readonly: BooleanInput;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfFormRenderer as AjfCoreFormRenderer, AjfFormRendererService} from '@ajf/core/forms';\nimport {BooleanInput} from '@angular/cdk/coercion';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\n\n@Component({\n selector: 'ajf-form',\n templateUrl: 'form.html',\n styleUrls: ['form.css'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AjfFormRenderer extends AjfCoreFormRenderer {\n @Input() topBar: boolean = false;\n\n constructor(rendererService: AjfFormRendererService, changeDetectorRef: ChangeDetectorRef) {\n super(rendererService, changeDetectorRef);\n }\n\n static ngAcceptInputType_fixedOrientation: BooleanInput;\n static ngAcceptInputType_hasEndMessage: BooleanInput;\n static ngAcceptInputType_hasStartMessage: BooleanInput;\n static ngAcceptInputType_hideBottomToolbar: BooleanInput;\n static ngAcceptInputType_hideNavigationButtons: BooleanInput;\n static ngAcceptInputType_hideTopToolbar: BooleanInput;\n static ngAcceptInputType_readonly: BooleanInput;\n static ngAcceptInputType_saveDisabled: BooleanInput;\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfCommonModule} from '@ajf/core/common';\nimport {AJF_WARNING_ALERT_SERVICE, AjfFormsModule as AjfCoreFormsModule} from '@ajf/core/forms';\nimport {AjfTranslocoModule} from '@ajf/core/transloco';\nimport {AjfBarcodeModule} from '@ajf/material/barcode';\nimport {AjfCalendarModule} from '@ajf/material/calendar';\nimport {AjfCheckboxGroupModule} from '@ajf/material/checkbox-group';\nimport {AjfPageSliderModule} from '@ajf/material/page-slider';\nimport {AjfTimeModule} from '@ajf/material/time';\nimport {TextFieldModule} from '@angular/cdk/text-field';\nimport {CommonModule} from '@angular/common';\nimport {ModuleWithProviders, NgModule} from '@angular/core';\nimport {ReactiveFormsModule} from '@angular/forms';\nimport {MatButtonModule} from '@angular/material/button';\nimport {MatCardModule} from '@angular/material/card';\nimport {MatDialogModule} from '@angular/material/dialog';\nimport {MatFormFieldModule} from '@angular/material/form-field';\nimport {MatIconModule} from '@angular/material/icon';\nimport {MatInputModule} from '@angular/material/input';\nimport {MatRadioModule} from '@angular/material/radio';\nimport {MatSelectModule} from '@angular/material/select';\nimport {MatSlideToggleModule} from '@angular/material/slide-toggle';\nimport {MatSliderModule} from '@angular/material/slider';\nimport {MatToolbarModule} from '@angular/material/toolbar';\nimport {MatTooltipModule} from '@angular/material/tooltip';\n\nimport {AjfBarcodeFieldComponent} from './barcode-field';\nimport {AjfBooleanFieldComponent} from './boolean-field';\nimport {AjfDateFieldComponent} from './date-field';\nimport {AjfDateInputFieldComponent} from './date-input-field';\nimport {AjfEmptyFieldComponent} from './empty-field';\nimport {AjfFormField} from './field';\nimport {AjfFieldService} from './field-service';\nimport {AjfFieldWarningDialog} from './field-warning-dialog';\nimport {AjfFormRenderer} from './form';\nimport {AjfInputFieldComponent} from './input-field';\nimport {AjfMultipleChoiceFieldComponent} from './multiple-choice-field';\nimport {AjfRangeFieldComponent} from './range-field';\nimport {AjfSingleChoiceFieldComponent} from './single-choice-field';\nimport {AjfTableFieldComponent} from './table-field';\nimport {AjfTextFieldComponent} from './text-field';\nimport {AjfTimeFieldComponent} from './time-field';\nimport {AjfVideoUrlFieldComponent} from './video-url-field';\nimport {AjfWarningAlertService} from './warning-alert-service';\n\n@NgModule({\n imports: [\n AjfBarcodeModule,\n AjfCalendarModule,\n AjfCommonModule,\n AjfCoreFormsModule,\n AjfCheckboxGroupModule,\n AjfPageSliderModule,\n AjfTimeModule,\n AjfTranslocoModule,\n CommonModule,\n MatButtonModule,\n MatCardModule,\n MatDialogModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatRadioModule,\n MatSelectModule,\n MatSlideToggleModule,\n MatToolbarModule,\n MatTooltipModule,\n ReactiveFormsModule,\n TextFieldModule,\n MatSliderModule,\n ],\n declarations: [\n AjfBarcodeFieldComponent,\n AjfBooleanFieldComponent,\n AjfDateFieldComponent,\n AjfDateInputFieldComponent,\n AjfEmptyFieldComponent,\n AjfFieldWarningDialog,\n AjfFormField,\n AjfFormRenderer,\n AjfInputFieldComponent,\n AjfMultipleChoiceFieldComponent,\n AjfRangeFieldComponent,\n AjfSingleChoiceFieldComponent,\n AjfTableFieldComponent,\n AjfTextFieldComponent,\n AjfTimeFieldComponent,\n AjfVideoUrlFieldComponent,\n ],\n entryComponents: [\n AjfBarcodeFieldComponent,\n AjfBooleanFieldComponent,\n AjfDateFieldComponent,\n AjfDateInputFieldComponent,\n AjfEmptyFieldComponent,\n AjfInputFieldComponent,\n AjfMultipleChoiceFieldComponent,\n AjfRangeFieldComponent,\n AjfSingleChoiceFieldComponent,\n AjfTableFieldComponent,\n AjfTextFieldComponent,\n AjfTimeFieldComponent,\n AjfVideoUrlFieldComponent,\n ],\n exports: [AjfFormField, AjfFormRenderer],\n providers: [\n AjfFieldService,\n {provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService},\n ],\n})\nexport class AjfFormsModule {\n static forRoot(): ModuleWithProviders<AjfFormsModule> {\n return {\n ngModule: AjfFormsModule,\n providers: [AjfFieldService],\n };\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './boolean-field';\nexport * from './date-field';\nexport * from './date-input-field';\nexport * from './empty-field';\nexport * from './field';\nexport * from './field-service';\nexport * from './field-warning-dialog';\nexport * from './input-field';\nexport * from './form';\nexport * from './forms-module';\nexport * from './multiple-choice-field';\nexport * from './single-choice-field';\nexport * from './table-field';\nexport * from './time-field';\nexport * from './warning-alert-service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {AjfBarcodeFieldComponent as ɵgc_ajf_src_material_forms_forms_a} from './barcode-field';\nexport {AjfRangeFieldComponent as ɵgc_ajf_src_material_forms_forms_b} from './range-field';\nexport {AjfTextFieldComponent as ɵgc_ajf_src_material_forms_forms_c} from './text-field';\nexport {AjfVideoUrlFieldComponent as ɵgc_ajf_src_material_forms_forms_d} from './video-url-field';"],"names":["CoreComponent","AjfCoreTableFieldComponent","CoreService","CoreFormField","AjfCoreFormRenderer","AjfCoreFormsModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MA6Ba,qBAAqB;;;YALjC,SAAS,SAAC;gBACT,wQAAwC;gBACxC,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;aACtC;;;AC5BD;;;;;;;;;;;;;;;;;;;;;MAkCa,sBAAsB;IACjC,YAAoB,OAAkB;QAAlB,YAAO,GAAP,OAAO,CAAW;KAAI;IAE1C,sBAAsB,CAAC,QAAkB;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACxD,MAAM,CAAC,iBAAiB,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAe,MAAM,EAAC,MAAM,EAAC,CAAC,CAAC,CAAC,CAAC;KACxE;;;YARF,UAAU;;;YANH,SAAS;;;AC3BjB;;;;;;;;;;;;;;;;;;;;;MA0Ca,wBAAyB,SAAQ,qBAAqB;IACjE,YACE,GAAsB,EACtB,OAA+B,EACI,GAA2B;QAE9D,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;KAC1B;;;Y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oBAC1B,sBAAsB;oBACtB,sBAAsB;oBACtB,+BAA+B;oBAC/B,sBAAsB;oBACtB,6BAA6B;oBAC7B,sBAAsB;oBACtB,qBAAqB;oBACrB,qBAAqB;oBACrB,yBAAyB;iBAC1B;gBACD,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC;gBACxC,SAAS,EAAE;oBACT,eAAe;oBACf,EAAC,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,sBAAsB,EAAC;iBACvE;aACF;;;AClID;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
package/fesm2015/image.js CHANGED
@@ -70,16 +70,9 @@ class AjfImageModule {
70
70
  }
71
71
  AjfImageModule.decorators = [
72
72
  { type: NgModule, args: [{
73
- imports: [
74
- CommonModule,
75
- MatIconModule,
76
- ],
77
- declarations: [
78
- AjfImage,
79
- ],
80
- exports: [
81
- AjfImage,
82
- ],
73
+ imports: [CommonModule, MatIconModule],
74
+ declarations: [AjfImage],
75
+ exports: [AjfImage],
83
76
  },] }
84
77
  ];
85
78
 
@@ -1 +1 @@
1
- {"version":3,"file":"image.js","sources":["../../../../../../src/material/image/image.ts","../../../../../../src/material/image/image-module.ts","../../../../../../src/material/image/public-api.ts","../../../../../../src/material/image/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfImage as AjfCoreImage} from '@ajf/core/image';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Renderer2,\n ViewEncapsulation\n} from '@angular/core';\nimport {DomSanitizer} from '@angular/platform-browser';\n\n@Component({\n selector: 'ajf-image',\n templateUrl: 'image.html',\n styleUrls: ['image.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfImage extends AjfCoreImage {\n constructor(el: ElementRef, renderer: Renderer2, ds: DomSanitizer) {\n super(el, renderer, ds);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatIconModule} from '@angular/material/icon';\n\nimport {AjfImage} from './image';\n\n@NgModule({\n imports: [\n CommonModule,\n MatIconModule,\n ],\n declarations: [\n AjfImage,\n ],\n exports: [\n AjfImage,\n ],\n})\nexport class AjfImageModule {\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './image-module';\nexport * from './image';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AjfCoreImage"],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MAuCa,QAAS,SAAQA,UAAY;IACxC,YAAY,EAAc,EAAE,QAAmB,EAAE,EAAgB;QAC/D,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;KACzB;;;YAVF,SAAS,SAAC;gBACT,QAAQ,EAAE,WAAW;gBACrB,yeAAyB;gBAEzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;aACtC;;;YAZC,UAAU;YACV,SAAS;YAGH,YAAY;;;AC9BpB;;;;;;;;;;;;;;;;;;;;;MAwCa,cAAc;;;YAZ1B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,aAAa;iBACd;gBACD,YAAY,EAAE;oBACZ,QAAQ;iBACT;gBACD,OAAO,EAAE;oBACP,QAAQ;iBACT;aACF;;;ACvCD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
1
+ {"version":3,"file":"image.js","sources":["../../../../../../src/material/image/image.ts","../../../../../../src/material/image/image-module.ts","../../../../../../src/material/image/public-api.ts","../../../../../../src/material/image/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {AjfImage as AjfCoreImage} from '@ajf/core/image';\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Renderer2,\n ViewEncapsulation,\n} from '@angular/core';\nimport {DomSanitizer} from '@angular/platform-browser';\n\n@Component({\n selector: 'ajf-image',\n templateUrl: 'image.html',\n styleUrls: ['image.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class AjfImage extends AjfCoreImage {\n constructor(el: ElementRef, renderer: Renderer2, ds: DomSanitizer) {\n super(el, renderer, ds);\n }\n}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nimport {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {MatIconModule} from '@angular/material/icon';\n\nimport {AjfImage} from './image';\n\n@NgModule({\n imports: [CommonModule, MatIconModule],\n declarations: [AjfImage],\n exports: [AjfImage],\n})\nexport class AjfImageModule {}\n","/**\n * @license\n * Copyright (C) Gnucoop soc. coop.\n *\n * This file is part of the Advanced JSON forms (ajf).\n *\n * Advanced JSON forms (ajf) is free software: you can redistribute it and/or\n * modify it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the License,\n * or (at your option) any later version.\n *\n * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero\n * General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Advanced JSON forms (ajf).\n * If not, see http://www.gnu.org/licenses/.\n *\n */\n\nexport * from './image-module';\nexport * from './image';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["AjfCoreImage"],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;MAuCa,QAAS,SAAQA,UAAY;IACxC,YAAY,EAAc,EAAE,QAAmB,EAAE,EAAgB;QAC/D,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;KACzB;;;YAVF,SAAS,SAAC;gBACT,QAAQ,EAAE,WAAW;gBACrB,yeAAyB;gBAEzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;;aACtC;;;YAZC,UAAU;YACV,SAAS;YAGH,YAAY;;;AC9BpB;;;;;;;;;;;;;;;;;;;;;MAiCa,cAAc;;;YAL1B,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;gBACtC,YAAY,EAAE,CAAC,QAAQ,CAAC;gBACxB,OAAO,EAAE,CAAC,QAAQ,CAAC;aACpB;;;AChCD;;;;;;;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -216,7 +216,8 @@ class AutoCompleteSingleton {
216
216
  regex.lastIndex++;
217
217
  }
218
218
  // Add Element only if it not already existing in autoComplete list and in tempList
219
- if (m[1] && !this._autoCompleteValues[IEditorLanguage.JSON].find(obj => obj.label === m[1]) &&
219
+ if (m[1] &&
220
+ !this._autoCompleteValues[IEditorLanguage.JSON].find(obj => obj.label === m[1]) &&
220
221
  !tempList.find(obj => obj.label === m[1])) {
221
222
  let obj = new AutoCompleteItem()
222
223
  .setLabel(m[1])
@@ -556,7 +557,7 @@ class AjfMonacoEditor {
556
557
  options.lineHeight = this.lineHeight;
557
558
  options.value = this._value;
558
559
  options.language = this.language;
559
- Object.keys(options).forEach((key) => {
560
+ Object.keys(options).forEach(key => {
560
561
  if (options[key] === undefined) {
561
562
  delete options[key]; // Remove all undefined properties
562
563
  }
@@ -702,12 +703,8 @@ class AjfMonacoEditorModule {
702
703
  }
703
704
  AjfMonacoEditorModule.decorators = [
704
705
  { type: NgModule, args: [{
705
- declarations: [
706
- AjfMonacoEditor,
707
- ],
708
- exports: [
709
- AjfMonacoEditor,
710
- ]
706
+ declarations: [AjfMonacoEditor],
707
+ exports: [AjfMonacoEditor],
711
708
  },] }
712
709
  ];
713
710