@ajf/material 15.3.13 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/{esm2020 → esm2022}/barcode/barcode-module.mjs +19 -19
  2. package/{esm2020 → esm2022}/barcode/barcode.mjs +4 -4
  3. package/{esm2020 → esm2022}/calendar/calendar-module.mjs +5 -5
  4. package/{esm2020 → esm2022}/calendar/calendar.mjs +4 -4
  5. package/{esm2020 → esm2022}/checkbox-group/checkbox-group-item.mjs +4 -4
  6. package/{esm2020 → esm2022}/checkbox-group/checkbox-group-module.mjs +5 -5
  7. package/esm2022/form-builder/branch-line.mjs +69 -0
  8. package/{esm2020 → esm2022}/form-builder/choices-origin-editor-dialog.mjs +7 -7
  9. package/{esm2020 → esm2022}/form-builder/choices-origin-editor.mjs +5 -5
  10. package/{esm2020 → esm2022}/form-builder/condition-editor-dialog.mjs +7 -7
  11. package/{esm2020 → esm2022}/form-builder/condition-editor.mjs +9 -9
  12. package/{esm2020 → esm2022}/form-builder/form-builder-module.mjs +64 -64
  13. package/esm2022/form-builder/form-builder-service.mjs +923 -0
  14. package/esm2022/form-builder/form-builder.mjs +183 -0
  15. package/esm2022/form-builder/node-entry.mjs +267 -0
  16. package/{esm2020 → esm2022}/form-builder/node-properties-name-validator.mjs +4 -4
  17. package/esm2022/form-builder/node-properties.mjs +1030 -0
  18. package/{esm2020 → esm2022}/form-builder/node-type-entry.mjs +7 -7
  19. package/{esm2020 → esm2022}/form-builder/string-identifier-dialog.mjs +4 -4
  20. package/{esm2020 → esm2022}/form-builder/validation-condition-editor-dialog.mjs +7 -7
  21. package/{esm2020 → esm2022}/form-builder/warning-condition-editor-dialog.mjs +7 -7
  22. package/{esm2020 → esm2022}/forms/barcode-field.mjs +4 -4
  23. package/{esm2020 → esm2022}/forms/boolean-field.mjs +4 -4
  24. package/{esm2020 → esm2022}/forms/date-field.mjs +4 -4
  25. package/{esm2020 → esm2022}/forms/date-input-field.mjs +4 -4
  26. package/{esm2020 → esm2022}/forms/empty-field.mjs +4 -4
  27. package/{esm2020 → esm2022}/forms/field-service.mjs +4 -4
  28. package/{esm2020 → esm2022}/forms/field-warning-dialog.mjs +4 -4
  29. package/{esm2020 → esm2022}/forms/field.mjs +4 -4
  30. package/esm2022/forms/form.mjs +58 -0
  31. package/{esm2020 → esm2022}/forms/forms-module.mjs +81 -81
  32. package/{esm2020 → esm2022}/forms/geolocation-field.mjs +4 -4
  33. package/{esm2020 → esm2022}/forms/input-field.mjs +4 -4
  34. package/{esm2020 → esm2022}/forms/multiple-choice-field.mjs +4 -4
  35. package/{esm2020 → esm2022}/forms/range-field.mjs +4 -4
  36. package/{esm2020 → esm2022}/forms/signature-field.mjs +4 -4
  37. package/{esm2020 → esm2022}/forms/single-choice-field.mjs +4 -4
  38. package/{esm2020 → esm2022}/forms/table-field.mjs +4 -4
  39. package/{esm2020 → esm2022}/forms/text-field.mjs +4 -4
  40. package/{esm2020 → esm2022}/forms/time-field.mjs +4 -4
  41. package/{esm2020 → esm2022}/forms/video-url-field.mjs +4 -4
  42. package/{esm2020 → esm2022}/forms/warning-alert-service.mjs +4 -4
  43. package/{esm2020 → esm2022}/geolocation/geolocation-module.mjs +15 -15
  44. package/{esm2020 → esm2022}/geolocation/geolocation.mjs +4 -4
  45. package/{esm2020 → esm2022}/image/image-module.mjs +5 -5
  46. package/{esm2020 → esm2022}/image/image.mjs +4 -4
  47. package/{esm2020 → esm2022}/node-icon/node-icon-module.mjs +5 -5
  48. package/{esm2020 → esm2022}/node-icon/node-icon.mjs +4 -4
  49. package/{esm2020 → esm2022}/page-slider/page-slider-module.mjs +5 -5
  50. package/{esm2020 → esm2022}/page-slider/page-slider.mjs +4 -4
  51. package/{esm2020 → esm2022}/reports/chart-widget.mjs +4 -4
  52. package/{esm2020 → esm2022}/reports/filter-widget.mjs +4 -4
  53. package/{esm2020 → esm2022}/reports/formula-widget.mjs +4 -4
  54. package/{esm2020 → esm2022}/reports/graph-widget.mjs +4 -4
  55. package/{esm2020 → esm2022}/reports/heat-map-widget.mjs +4 -4
  56. package/{esm2020 → esm2022}/reports/image-container-widget.mjs +4 -4
  57. package/{esm2020 → esm2022}/reports/image-widget.mjs +4 -4
  58. package/{esm2020 → esm2022}/reports/map-widget.mjs +4 -4
  59. package/{esm2020 → esm2022}/reports/page-break-widget.mjs +4 -4
  60. package/{esm2020 → esm2022}/reports/report.mjs +4 -4
  61. package/{esm2020 → esm2022}/reports/reports-module.mjs +50 -50
  62. package/{esm2020 → esm2022}/reports/table-widget.mjs +4 -4
  63. package/{esm2020 → esm2022}/reports/text-widget.mjs +4 -4
  64. package/esm2022/reports/widget.mjs +368 -0
  65. package/{esm2020 → esm2022}/signature/signature-module.mjs +15 -15
  66. package/{esm2020 → esm2022}/signature/signature.mjs +4 -4
  67. package/{esm2020 → esm2022}/time/time-module.mjs +5 -5
  68. package/{esm2020 → esm2022}/time/time.mjs +4 -4
  69. package/{fesm2020 → fesm2022}/ajf-material-barcode.mjs +21 -21
  70. package/{fesm2020 → fesm2022}/ajf-material-barcode.mjs.map +1 -1
  71. package/{fesm2020 → fesm2022}/ajf-material-calendar.mjs +7 -7
  72. package/{fesm2015 → fesm2022}/ajf-material-calendar.mjs.map +1 -1
  73. package/{fesm2020 → fesm2022}/ajf-material-checkbox-group.mjs +7 -7
  74. package/{fesm2015 → fesm2022}/ajf-material-checkbox-group.mjs.map +1 -1
  75. package/{fesm2020 → fesm2022}/ajf-material-form-builder.mjs +284 -284
  76. package/fesm2022/ajf-material-form-builder.mjs.map +1 -0
  77. package/fesm2022/ajf-material-forms.mjs +1102 -0
  78. package/fesm2022/ajf-material-forms.mjs.map +1 -0
  79. package/{fesm2015 → fesm2022}/ajf-material-geolocation.mjs +17 -17
  80. package/{fesm2015 → fesm2022}/ajf-material-geolocation.mjs.map +1 -1
  81. package/{fesm2015 → fesm2022}/ajf-material-image.mjs +7 -7
  82. package/{fesm2020 → fesm2022}/ajf-material-image.mjs.map +1 -1
  83. package/{fesm2015 → fesm2022}/ajf-material-node-icon.mjs +7 -7
  84. package/{fesm2020 → fesm2022}/ajf-material-node-icon.mjs.map +1 -1
  85. package/{fesm2020 → fesm2022}/ajf-material-page-slider.mjs +7 -7
  86. package/{fesm2015 → fesm2022}/ajf-material-page-slider.mjs.map +1 -1
  87. package/{fesm2020 → fesm2022}/ajf-material-reports.mjs +135 -135
  88. package/{fesm2015 → fesm2022}/ajf-material-reports.mjs.map +1 -1
  89. package/{fesm2020 → fesm2022}/ajf-material-signature.mjs +17 -17
  90. package/{fesm2020 → fesm2022}/ajf-material-signature.mjs.map +1 -1
  91. package/{fesm2015 → fesm2022}/ajf-material-time.mjs +7 -7
  92. package/{fesm2020 → fesm2022}/ajf-material-time.mjs.map +1 -1
  93. package/form-builder/branch-line.d.ts +1 -1
  94. package/form-builder/choices-origin-data-source.d.ts +1 -1
  95. package/form-builder/choices-origin-editor.d.ts +1 -1
  96. package/form-builder/condition-editor.d.ts +1 -1
  97. package/form-builder/form-builder-service.d.ts +2 -2
  98. package/form-builder/form-builder.d.ts +1 -1
  99. package/form-builder/node-entry.d.ts +1 -1
  100. package/form-builder/node-type-entry.d.ts +1 -1
  101. package/forms/form.d.ts +1 -1
  102. package/package.json +49 -79
  103. package/esm2020/form-builder/branch-line.mjs +0 -69
  104. package/esm2020/form-builder/form-builder-service.mjs +0 -923
  105. package/esm2020/form-builder/form-builder.mjs +0 -183
  106. package/esm2020/form-builder/node-entry.mjs +0 -267
  107. package/esm2020/form-builder/node-properties.mjs +0 -1030
  108. package/esm2020/forms/form.mjs +0 -58
  109. package/esm2020/reports/widget.mjs +0 -368
  110. package/fesm2015/ajf-material-barcode.mjs +0 -170
  111. package/fesm2015/ajf-material-barcode.mjs.map +0 -1
  112. package/fesm2015/ajf-material-calendar.mjs +0 -116
  113. package/fesm2015/ajf-material-checkbox-group.mjs +0 -120
  114. package/fesm2015/ajf-material-form-builder.mjs +0 -3120
  115. package/fesm2015/ajf-material-form-builder.mjs.map +0 -1
  116. package/fesm2015/ajf-material-forms.mjs +0 -1134
  117. package/fesm2015/ajf-material-forms.mjs.map +0 -1
  118. package/fesm2015/ajf-material-image.mjs.map +0 -1
  119. package/fesm2015/ajf-material-node-icon.mjs.map +0 -1
  120. package/fesm2015/ajf-material-page-slider.mjs +0 -109
  121. package/fesm2015/ajf-material-reports.mjs +0 -943
  122. package/fesm2015/ajf-material-signature.mjs +0 -164
  123. package/fesm2015/ajf-material-signature.mjs.map +0 -1
  124. package/fesm2015/ajf-material-time.mjs.map +0 -1
  125. package/fesm2020/ajf-material-calendar.mjs.map +0 -1
  126. package/fesm2020/ajf-material-checkbox-group.mjs.map +0 -1
  127. package/fesm2020/ajf-material-form-builder.mjs.map +0 -1
  128. package/fesm2020/ajf-material-forms.mjs +0 -1102
  129. package/fesm2020/ajf-material-forms.mjs.map +0 -1
  130. package/fesm2020/ajf-material-geolocation.mjs +0 -136
  131. package/fesm2020/ajf-material-geolocation.mjs.map +0 -1
  132. package/fesm2020/ajf-material-image.mjs +0 -105
  133. package/fesm2020/ajf-material-node-icon.mjs +0 -149
  134. package/fesm2020/ajf-material-page-slider.mjs.map +0 -1
  135. package/fesm2020/ajf-material-reports.mjs.map +0 -1
  136. package/fesm2020/ajf-material-time.mjs +0 -111
  137. package/fesm2020/ajf-material.mjs +0 -28
  138. package/fesm2020/ajf-material.mjs.map +0 -1
  139. /package/{esm2020 → esm2022}/ajf-material.mjs +0 -0
  140. /package/{esm2020 → esm2022}/barcode/ajf-material-barcode.mjs +0 -0
  141. /package/{esm2020 → esm2022}/barcode/public_api.mjs +0 -0
  142. /package/{esm2020 → esm2022}/calendar/ajf-material-calendar.mjs +0 -0
  143. /package/{esm2020 → esm2022}/calendar/public_api.mjs +0 -0
  144. /package/{esm2020 → esm2022}/checkbox-group/ajf-material-checkbox-group.mjs +0 -0
  145. /package/{esm2020 → esm2022}/checkbox-group/public_api.mjs +0 -0
  146. /package/{esm2020 → esm2022}/form-builder/ajf-material-form-builder.mjs +0 -0
  147. /package/{esm2020 → esm2022}/form-builder/choices-origin-data-source.mjs +0 -0
  148. /package/{esm2020 → esm2022}/form-builder/form-builder-utils.mjs +0 -0
  149. /package/{esm2020 → esm2022}/form-builder/operations.mjs +0 -0
  150. /package/{esm2020 → esm2022}/form-builder/public_api.mjs +0 -0
  151. /package/{esm2020 → esm2022}/forms/ajf-material-forms.mjs +0 -0
  152. /package/{esm2020 → esm2022}/forms/public_api.mjs +0 -0
  153. /package/{esm2020 → esm2022}/geolocation/ajf-material-geolocation.mjs +0 -0
  154. /package/{esm2020 → esm2022}/geolocation/public_api.mjs +0 -0
  155. /package/{esm2020 → esm2022}/image/ajf-material-image.mjs +0 -0
  156. /package/{esm2020 → esm2022}/image/public_api.mjs +0 -0
  157. /package/{esm2020 → esm2022}/node-icon/ajf-material-node-icon.mjs +0 -0
  158. /package/{esm2020 → esm2022}/node-icon/public_api.mjs +0 -0
  159. /package/{esm2020 → esm2022}/page-slider/ajf-material-page-slider.mjs +0 -0
  160. /package/{esm2020 → esm2022}/page-slider/public_api.mjs +0 -0
  161. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  162. /package/{esm2020 → esm2022}/reports/ajf-material-reports.mjs +0 -0
  163. /package/{esm2020 → esm2022}/reports/public_api.mjs +0 -0
  164. /package/{esm2020 → esm2022}/signature/ajf-material-signature.mjs +0 -0
  165. /package/{esm2020 → esm2022}/signature/public_api.mjs +0 -0
  166. /package/{esm2020 → esm2022}/time/ajf-material-time.mjs +0 -0
  167. /package/{esm2020 → esm2022}/time/public_api.mjs +0 -0
  168. /package/{fesm2015 → fesm2022}/ajf-material.mjs +0 -0
  169. /package/{fesm2015 → fesm2022}/ajf-material.mjs.map +0 -0
@@ -1,943 +0,0 @@
1
- import * as i2 from '@ajf/core/reports';
2
- import { AjfBaseWidgetComponent, widgetToWidgetInstance, AjfWidgetType, AjfWidgetService as AjfWidgetService$1, AjfReportWidget as AjfReportWidget$1, AjfReportRenderer as AjfReportRenderer$1, AjfReportsModule as AjfReportsModule$1 } from '@ajf/core/reports';
3
- import * as i0 from '@angular/core';
4
- import { Component, ChangeDetectionStrategy, ViewEncapsulation, Output, Injectable, TemplateRef, ViewChild, NgModule } from '@angular/core';
5
- import * as i1 from '@ajf/core/chart';
6
- import { AjfChartModule } from '@ajf/core/chart';
7
- import * as i1$1 from '@angular/common';
8
- import { CommonModule } from '@angular/common';
9
- import * as i2$1 from '@ajf/core/forms';
10
- import { AjfFormRendererService } from '@ajf/core/forms';
11
- import { evaluateExpression } from '@ajf/core/models';
12
- import { filter, switchMap, distinctUntilChanged, map } from 'rxjs/operators';
13
- import * as i1$2 from '@ajf/core/transloco';
14
- import { AjfTranslocoModule } from '@ajf/core/transloco';
15
- import * as i3 from '@ajf/material/forms';
16
- import { AjfFormsModule } from '@ajf/material/forms';
17
- import * as i1$3 from '@ajf/core/text';
18
- import { AjfTextModule } from '@ajf/core/text';
19
- import * as i1$4 from '@ajf/core/heat-map';
20
- import { AjfHeatMapModule } from '@ajf/core/heat-map';
21
- import { AjfImageType } from '@ajf/core/image';
22
- import * as i1$5 from '@ajf/core/common';
23
- import { AjfCommonModule } from '@ajf/core/common';
24
- import * as i2$2 from '@ajf/material/image';
25
- import { AjfImageModule } from '@ajf/material/image';
26
- import * as i1$6 from '@ajf/core/map';
27
- import { AjfMapModule } from '@ajf/core/map';
28
- import * as i1$7 from '@ajf/core/page-break';
29
- import { AjfPageBreakModule } from '@ajf/core/page-break';
30
- import { BehaviorSubject } from 'rxjs';
31
- import * as i1$8 from '@ajf/core/graph';
32
- import { AjfGraphModule } from '@ajf/core/graph';
33
- import * as i1$9 from '@ajf/core/table';
34
- import { AjfTableModule } from '@ajf/core/table';
35
- import * as i3$1 from '@ngneat/transloco';
36
- import * as i4 from '@angular/material/dialog';
37
- import { MatDialogModule } from '@angular/material/dialog';
38
- import * as i6 from '@angular/material/form-field';
39
- import * as i7 from '@angular/material/select';
40
- import { MatSelectModule } from '@angular/material/select';
41
- import * as i8 from '@angular/material/core';
42
-
43
- /**
44
- * @license
45
- * Copyright (C) Gnucoop soc. coop.
46
- *
47
- * This file is part of the Advanced JSON forms (ajf).
48
- *
49
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
50
- * modify it under the terms of the GNU Affero General Public License as
51
- * published by the Free Software Foundation, either version 3 of the License,
52
- * or (at your option) any later version.
53
- *
54
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
55
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
56
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
57
- * General Public License for more details.
58
- *
59
- * You should have received a copy of the GNU Affero General Public License
60
- * along with Advanced JSON forms (ajf).
61
- * If not, see http://www.gnu.org/licenses/.
62
- *
63
- */
64
- class AjfChartWidgetComponent extends AjfBaseWidgetComponent {
65
- constructor(cdr, el) {
66
- super(cdr, el);
67
- }
68
- }
69
- AjfChartWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfChartWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
70
- AjfChartWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfChartWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-widget-export *ngIf=\"instance\"\n [widgetType]=\"instance.widgetType\"\n [data]=\"instance.data\"\n [enable]=\"instance.exportable\">\n <ajf-chart\n [chartType]=\"instance.chartType\"\n [options]=\"instance.widget.options\"\n [data]=\"instance.data\"\n [instance]=\"instance\">\n </ajf-chart>\n</ajf-widget-export>\n", styles: [""], dependencies: [{ kind: "component", type: i1.AjfChartComponent, selector: "ajf-chart", inputs: ["data", "options", "chartType", "instance"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AjfWidgetExport, selector: "ajf-widget-export", inputs: ["widgetType", "data", "widgets", "overlay", "enable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfChartWidgetComponent, decorators: [{
72
- type: Component,
73
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-widget-export *ngIf=\"instance\"\n [widgetType]=\"instance.widgetType\"\n [data]=\"instance.data\"\n [enable]=\"instance.exportable\">\n <ajf-chart\n [chartType]=\"instance.chartType\"\n [options]=\"instance.widget.options\"\n [data]=\"instance.data\"\n [instance]=\"instance\">\n </ajf-chart>\n</ajf-widget-export>\n" }]
74
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
75
-
76
- /**
77
- * @license
78
- * Copyright (C) Gnucoop soc. coop.
79
- *
80
- * This file is part of the Advanced JSON forms (ajf).
81
- *
82
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
83
- * modify it under the terms of the GNU Affero General Public License as
84
- * published by the Free Software Foundation, either version 3 of the License,
85
- * or (at your option) any later version.
86
- *
87
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
88
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
89
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
90
- * General Public License for more details.
91
- *
92
- * You should have received a copy of the GNU Affero General Public License
93
- * along with Advanced JSON forms (ajf).
94
- * If not, see http://www.gnu.org/licenses/.
95
- *
96
- */
97
- class AjfFilterWidgetComponent extends AjfBaseWidgetComponent {
98
- constructor(cdr, el, _ts, _formRenderer) {
99
- super(cdr, el);
100
- this._ts = _ts;
101
- this._formRenderer = _formRenderer;
102
- this.filteredInstance = this._formRenderer.formGroup.pipe(filter(fg => this.instance != null && this.instance.filter != null && fg != null), switchMap(formGroup => formGroup.valueChanges), distinctUntilChanged((a, b) => JSON.stringify(a) === JSON.stringify(b)), map(a => {
103
- const instance = this.instance;
104
- const filter = instance.filter;
105
- const newConst = Object.assign(Object.assign({}, (filter.context || {})), a);
106
- if (filter.variables != null) {
107
- (filter.variables || []).forEach(variable => {
108
- newConst[variable.name] = evaluateExpression(variable.formula.formula, newConst);
109
- });
110
- }
111
- this.instance = widgetToWidgetInstance(instance.widget, newConst, this._ts, filter.variables);
112
- return this.instance;
113
- }));
114
- }
115
- }
116
- AjfFilterWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfFilterWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1$2.TranslocoService }, { token: i2$1.AjfFormRendererService }], target: i0.ɵɵFactoryTarget.Component });
117
- AjfFilterWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfFilterWidgetComponent, selector: "ajf-filter-widget", outputs: { filteredInstance: "filteredInstance" }, providers: [AjfFormRendererService], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"instance\">\n <div *ngIf=\"instance.filter as filter\" class=\"ajf-filter-container\">\n <ajf-form\n [form]=\"filter.form\"\n [hasStartMessage]=\"false\"\n [hasEndMessage]=\"false\"\n [hideTopToolbar]=\"true\"\n [hideBottomToolbar]=\"true\"\n [hideNavigationButtons]=\"true\"\n ></ajf-form>\n </div>\n</ng-container>\n", styles: ["ajf-filter-widget .ajf-filter-container ajf-page-slider-item{flex:auto!important}ajf-filter-widget .ajf-filter-container ajf-page-slider-item .ajf-page-slider-item-content{position:relative}ajf-filter-widget .ajf-filter-container .ajf-form-container{position:relative}ajf-filter-widget .ajf-filter-container .ajf-form-container .mat-mdc-card-header{display:none}ajf-filter-widget .ajf-field-entry{width:unset!important;min-width:200px}\n"], dependencies: [{ kind: "component", type: i3.AjfFormRenderer, selector: "ajf-form", inputs: ["topBar", "centeredFieldsContent", "maxColumns"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
118
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfFilterWidgetComponent, decorators: [{
119
- type: Component,
120
- args: [{ selector: 'ajf-filter-widget', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [AjfFormRendererService], template: "<ng-container *ngIf=\"instance\">\n <div *ngIf=\"instance.filter as filter\" class=\"ajf-filter-container\">\n <ajf-form\n [form]=\"filter.form\"\n [hasStartMessage]=\"false\"\n [hasEndMessage]=\"false\"\n [hideTopToolbar]=\"true\"\n [hideBottomToolbar]=\"true\"\n [hideNavigationButtons]=\"true\"\n ></ajf-form>\n </div>\n</ng-container>\n", styles: ["ajf-filter-widget .ajf-filter-container ajf-page-slider-item{flex:auto!important}ajf-filter-widget .ajf-filter-container ajf-page-slider-item .ajf-page-slider-item-content{position:relative}ajf-filter-widget .ajf-filter-container .ajf-form-container{position:relative}ajf-filter-widget .ajf-filter-container .ajf-form-container .mat-mdc-card-header{display:none}ajf-filter-widget .ajf-field-entry{width:unset!important;min-width:200px}\n"] }]
121
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1$2.TranslocoService }, { type: i2$1.AjfFormRendererService }]; }, propDecorators: { filteredInstance: [{
122
- type: Output
123
- }] } });
124
-
125
- /**
126
- * @license
127
- * Copyright (C) Gnucoop soc. coop.
128
- *
129
- * This file is part of the Advanced JSON forms (ajf).
130
- *
131
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
132
- * modify it under the terms of the GNU Affero General Public License as
133
- * published by the Free Software Foundation, either version 3 of the License,
134
- * or (at your option) any later version.
135
- *
136
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
137
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
138
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
139
- * General Public License for more details.
140
- *
141
- * You should have received a copy of the GNU Affero General Public License
142
- * along with Advanced JSON forms (ajf).
143
- * If not, see http://www.gnu.org/licenses/.
144
- *
145
- */
146
- class AjfFormulaWidgetComponent extends AjfBaseWidgetComponent {
147
- constructor(cdr, el) {
148
- super(cdr, el);
149
- }
150
- }
151
- AjfFormulaWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfFormulaWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
152
- AjfFormulaWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfFormulaWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-text *ngIf=\"instance\" [htmlText]=\"instance.formula\"></ajf-text>\n", styles: [""], dependencies: [{ kind: "component", type: i1$3.AjfTextComponent, selector: "ajf-text", inputs: ["htmlText"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
153
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfFormulaWidgetComponent, decorators: [{
154
- type: Component,
155
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-text *ngIf=\"instance\" [htmlText]=\"instance.formula\"></ajf-text>\n" }]
156
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
157
-
158
- /**
159
- * @license
160
- * Copyright (C) Gnucoop soc. coop.
161
- *
162
- * This file is part of the Advanced JSON forms (ajf).
163
- *
164
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
165
- * modify it under the terms of the GNU Affero General Public License as
166
- * published by the Free Software Foundation, either version 3 of the License,
167
- * or (at your option) any later version.
168
- *
169
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
170
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
171
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
172
- * General Public License for more details.
173
- *
174
- * You should have received a copy of the GNU Affero General Public License
175
- * along with Advanced JSON forms (ajf).
176
- * If not, see http://www.gnu.org/licenses/.
177
- *
178
- */
179
- class AjfHeatMapWidgetComponent extends AjfBaseWidgetComponent {
180
- constructor(cdr, el) {
181
- super(cdr, el);
182
- }
183
- }
184
- AjfHeatMapWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfHeatMapWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
185
- AjfHeatMapWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfHeatMapWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-heat-map\n *ngIf=\"instance\"\n [idProp]=\"instance.idProp\"\n [features]=\"instance.features\"\n [values]=\"instance.values\"\n [startColor]=\"instance.startColor\"\n [endColor]=\"instance.endColor\"\n [highlightColor]=\"instance.highlightColor\"\n [showVisualMap]=\"instance.showVisualMap\"\n [action]=\"instance.action\"\n></ajf-heat-map>\n", styles: ["ajf-widget ajf-heat-map{flex:1;height:100%}\n"], dependencies: [{ kind: "component", type: i1$4.AjfHeatMap, selector: "ajf-heat-map", inputs: ["features", "startColor", "endColor", "highlightColor", "values", "action", "idProp", "showVisualMap"], outputs: ["featureSelected"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfHeatMapWidgetComponent, decorators: [{
187
- type: Component,
188
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-heat-map\n *ngIf=\"instance\"\n [idProp]=\"instance.idProp\"\n [features]=\"instance.features\"\n [values]=\"instance.values\"\n [startColor]=\"instance.startColor\"\n [endColor]=\"instance.endColor\"\n [highlightColor]=\"instance.highlightColor\"\n [showVisualMap]=\"instance.showVisualMap\"\n [action]=\"instance.action\"\n></ajf-heat-map>\n", styles: ["ajf-widget ajf-heat-map{flex:1;height:100%}\n"] }]
189
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
190
-
191
- /**
192
- * @license
193
- * Copyright (C) Gnucoop soc. coop.
194
- *
195
- * This file is part of the Advanced JSON forms (ajf).
196
- *
197
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
198
- * modify it under the terms of the GNU Affero General Public License as
199
- * published by the Free Software Foundation, either version 3 of the License,
200
- * or (at your option) any later version.
201
- *
202
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
203
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
204
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
205
- * General Public License for more details.
206
- *
207
- * You should have received a copy of the GNU Affero General Public License
208
- * along with Advanced JSON forms (ajf).
209
- * If not, see http://www.gnu.org/licenses/.
210
- *
211
- */
212
- class AjfImageContainerWidgetComponent extends AjfBaseWidgetComponent {
213
- constructor(cdr, el) {
214
- super(cdr, el);
215
- this.imageTypes = AjfImageType;
216
- }
217
- }
218
- AjfImageContainerWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfImageContainerWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
219
- AjfImageContainerWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfImageContainerWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"instance\" class=\"ajf-image-container ajf-columns\" [ngSwitch]=\"instance.widget.imageType\">\n <ng-template [ngSwitchCase]=\"imageTypes.Image\">\n <div *ngFor=\"let icw of instance.urls; let idx = index\" class=\"ajf-column\">\n <ajf-image\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"icw\"\n [icon]=\"null\"\n [flag]=\"null\"\n [applyStyles]=\"instance.widget!.styles\"\n ></ajf-image>\n </div>\n </ng-template>\n <ng-template [ngSwitchCase]=\"imageTypes.Flag\">\n <div *ngFor=\"let icw of instance.flags; let idx = index\" class=\"ajf-column\">\n <ajf-image\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"null\"\n [icon]=\"null\"\n [flag]=\"icw\"\n [applyStyles]=\"instance.widget!.styles\"\n ></ajf-image>\n </div>\n </ng-template>\n <ng-template [ngSwitchCase]=\"imageTypes.Icon\">\n <div *ngFor=\"let icw of instance.icons; let idx = index\" class=\"ajf-column\">\n <ajf-image\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"null\"\n [icon]=\"icw\"\n [flag]=\"null\"\n [applyStyles]=\"instance.widget!.styles\"\n ></ajf-image>\n </div>\n </ng-template>\n</div>\n", styles: [".ajf-image-container img{max-width:none;max-height:none}\n"], dependencies: [{ kind: "directive", type: i1$5.ApplyStylesDirective, selector: "[applyStyles]", inputs: ["applyStyles"] }, { kind: "component", type: i2$2.AjfImage, selector: "ajf-image" }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfImageContainerWidgetComponent, decorators: [{
221
- type: Component,
222
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"instance\" class=\"ajf-image-container ajf-columns\" [ngSwitch]=\"instance.widget.imageType\">\n <ng-template [ngSwitchCase]=\"imageTypes.Image\">\n <div *ngFor=\"let icw of instance.urls; let idx = index\" class=\"ajf-column\">\n <ajf-image\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"icw\"\n [icon]=\"null\"\n [flag]=\"null\"\n [applyStyles]=\"instance.widget!.styles\"\n ></ajf-image>\n </div>\n </ng-template>\n <ng-template [ngSwitchCase]=\"imageTypes.Flag\">\n <div *ngFor=\"let icw of instance.flags; let idx = index\" class=\"ajf-column\">\n <ajf-image\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"null\"\n [icon]=\"null\"\n [flag]=\"icw\"\n [applyStyles]=\"instance.widget!.styles\"\n ></ajf-image>\n </div>\n </ng-template>\n <ng-template [ngSwitchCase]=\"imageTypes.Icon\">\n <div *ngFor=\"let icw of instance.icons; let idx = index\" class=\"ajf-column\">\n <ajf-image\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"null\"\n [icon]=\"icw\"\n [flag]=\"null\"\n [applyStyles]=\"instance.widget!.styles\"\n ></ajf-image>\n </div>\n </ng-template>\n</div>\n", styles: [".ajf-image-container img{max-width:none;max-height:none}\n"] }]
223
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
224
-
225
- /**
226
- * @license
227
- * Copyright (C) Gnucoop soc. coop.
228
- *
229
- * This file is part of the Advanced JSON forms (ajf).
230
- *
231
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
232
- * modify it under the terms of the GNU Affero General Public License as
233
- * published by the Free Software Foundation, either version 3 of the License,
234
- * or (at your option) any later version.
235
- *
236
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
237
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
238
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
239
- * General Public License for more details.
240
- *
241
- * You should have received a copy of the GNU Affero General Public License
242
- * along with Advanced JSON forms (ajf).
243
- * If not, see http://www.gnu.org/licenses/.
244
- *
245
- */
246
- class AjfImageWidgetComponent extends AjfBaseWidgetComponent {
247
- constructor(cdr, el) {
248
- super(cdr, el);
249
- }
250
- }
251
- AjfImageWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfImageWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
252
- AjfImageWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfImageWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-image *ngIf=\"instance\"\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"instance.url\"\n [icon]=\"instance.icon\"\n [flag]=\"instance.flag\"\n></ajf-image>\n", styles: [""], dependencies: [{ kind: "component", type: i2$2.AjfImage, selector: "ajf-image" }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfImageWidgetComponent, decorators: [{
254
- type: Component,
255
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-image *ngIf=\"instance\"\n [type]=\"instance.widget.imageType\"\n [imageUrl]=\"instance.url\"\n [icon]=\"instance.icon\"\n [flag]=\"instance.flag\"\n></ajf-image>\n" }]
256
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
257
-
258
- /**
259
- * @license
260
- * Copyright (C) Gnucoop soc. coop.
261
- *
262
- * This file is part of the Advanced JSON forms (ajf).
263
- *
264
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
265
- * modify it under the terms of the GNU Affero General Public License as
266
- * published by the Free Software Foundation, either version 3 of the License,
267
- * or (at your option) any later version.
268
- *
269
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
270
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
271
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
272
- * General Public License for more details.
273
- *
274
- * You should have received a copy of the GNU Affero General Public License
275
- * along with Advanced JSON forms (ajf).
276
- * If not, see http://www.gnu.org/licenses/.
277
- *
278
- */
279
- class AjfMapWidgetComponent extends AjfBaseWidgetComponent {
280
- constructor(cdr, el) {
281
- super(cdr, el);
282
- }
283
- }
284
- AjfMapWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfMapWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
285
- AjfMapWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfMapWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-map *ngIf=\"instance\"\n [coordinate]=\"instance.coordinate\"\n [tileLayer]=\"instance.widget.tileLayer\"\n [attribution]=\"instance.widget.attribution\"\n [disabled]=\"instance.widget.disabled\"\n></ajf-map>\n", styles: [""], dependencies: [{ kind: "component", type: i1$6.AjfMapComponent, selector: "ajf-map", inputs: ["coordinate", "tileLayer", "attribution", "disabled"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfMapWidgetComponent, decorators: [{
287
- type: Component,
288
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-map *ngIf=\"instance\"\n [coordinate]=\"instance.coordinate\"\n [tileLayer]=\"instance.widget.tileLayer\"\n [attribution]=\"instance.widget.attribution\"\n [disabled]=\"instance.widget.disabled\"\n></ajf-map>\n" }]
289
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
290
-
291
- /**
292
- * @license
293
- * Copyright (C) Gnucoop soc. coop.
294
- *
295
- * This file is part of the Advanced JSON forms (ajf).
296
- *
297
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
298
- * modify it under the terms of the GNU Affero General Public License as
299
- * published by the Free Software Foundation, either version 3 of the License,
300
- * or (at your option) any later version.
301
- *
302
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
303
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
304
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
305
- * General Public License for more details.
306
- *
307
- * You should have received a copy of the GNU Affero General Public License
308
- * along with Advanced JSON forms (ajf).
309
- * If not, see http://www.gnu.org/licenses/.
310
- *
311
- */
312
- class AjfPageBreakWidgetComponent extends AjfBaseWidgetComponent {
313
- constructor(cdr, el) {
314
- super(cdr, el);
315
- }
316
- }
317
- AjfPageBreakWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfPageBreakWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
318
- AjfPageBreakWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfPageBreakWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-page-break></ajf-page-break>\n", styles: [""], dependencies: [{ kind: "component", type: i1$7.AjfPageBreakComponent, selector: "ajf-page-break" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
319
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfPageBreakWidgetComponent, decorators: [{
320
- type: Component,
321
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-page-break></ajf-page-break>\n" }]
322
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
323
-
324
- /**
325
- * @license
326
- * Copyright (C) Gnucoop soc. coop.
327
- *
328
- * This file is part of the Advanced JSON forms (ajf).
329
- *
330
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
331
- * modify it under the terms of the GNU Affero General Public License as
332
- * published by the Free Software Foundation, either version 3 of the License,
333
- * or (at your option) any later version.
334
- *
335
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
336
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
337
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
338
- * General Public License for more details.
339
- *
340
- * You should have received a copy of the GNU Affero General Public License
341
- * along with Advanced JSON forms (ajf).
342
- * If not, see http://www.gnu.org/licenses/.
343
- *
344
- */
345
- class AjfGraphWidgetComponent extends AjfBaseWidgetComponent {
346
- constructor(cdr, el) {
347
- super(cdr, el);
348
- }
349
- }
350
- AjfGraphWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfGraphWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
351
- AjfGraphWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfGraphWidgetComponent, selector: "ajf-graph-widget", usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"instance\" class=\"ajf-graph-container\">\n <ajf-graph [nodes]=\"instance.nodes\"></ajf-graph>\n</div>\n", styles: ["ajf-graph-widget{width:100%;height:600px}\n"], dependencies: [{ kind: "component", type: i1$8.AjfGraphComponent, selector: "ajf-graph", inputs: ["nodes"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfGraphWidgetComponent, decorators: [{
353
- type: Component,
354
- args: [{ selector: 'ajf-graph-widget', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"instance\" class=\"ajf-graph-container\">\n <ajf-graph [nodes]=\"instance.nodes\"></ajf-graph>\n</div>\n", styles: ["ajf-graph-widget{width:100%;height:600px}\n"] }]
355
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
356
-
357
- /**
358
- * @license
359
- * Copyright (C) Gnucoop soc. coop.
360
- *
361
- * This file is part of the Advanced JSON forms (ajf).
362
- *
363
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
364
- * modify it under the terms of the GNU Affero General Public License as
365
- * published by the Free Software Foundation, either version 3 of the License,
366
- * or (at your option) any later version.
367
- *
368
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
369
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
370
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
371
- * General Public License for more details.
372
- *
373
- * You should have received a copy of the GNU Affero General Public License
374
- * along with Advanced JSON forms (ajf).
375
- * If not, see http://www.gnu.org/licenses/.
376
- *
377
- */
378
- class AjfTableWidgetComponent extends AjfBaseWidgetComponent {
379
- constructor(cdr, el) {
380
- super(cdr, el);
381
- }
382
- }
383
- AjfTableWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfTableWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
384
- AjfTableWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfTableWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-widget-export\n *ngIf=\"instance\"\n [widgetType]=\"instance.widgetType\"\n [data]=\"instance.data\"\n [enable]=\"instance.exportable\"\n>\n <ajf-table [data]=\"instance.data\"></ajf-table>\n</ajf-widget-export>\n", styles: ["table{border-spacing:0}table tr th,table tr td{padding:10px}table tr td .read_more_cell{cursor:pointer;margin:0;white-space:nowrap;display:inline-block}table tr td .read_more_text{padding-right:5px;margin:0;display:inline-block;white-space:nowrap}table tr td .material-icons{vertical-align:middle;cursor:pointer}\n"], dependencies: [{ kind: "component", type: i1$9.AjfTable, selector: "ajf-table", inputs: ["data", "cellpadding"], outputs: ["sortSelected"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AjfWidgetExport, selector: "ajf-widget-export", inputs: ["widgetType", "data", "widgets", "overlay", "enable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfTableWidgetComponent, decorators: [{
386
- type: Component,
387
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-widget-export\n *ngIf=\"instance\"\n [widgetType]=\"instance.widgetType\"\n [data]=\"instance.data\"\n [enable]=\"instance.exportable\"\n>\n <ajf-table [data]=\"instance.data\"></ajf-table>\n</ajf-widget-export>\n", styles: ["table{border-spacing:0}table tr th,table tr td{padding:10px}table tr td .read_more_cell{cursor:pointer;margin:0;white-space:nowrap;display:inline-block}table tr td .read_more_text{padding-right:5px;margin:0;display:inline-block;white-space:nowrap}table tr td .material-icons{vertical-align:middle;cursor:pointer}\n"] }]
388
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
389
-
390
- /**
391
- * @license
392
- * Copyright (C) Gnucoop soc. coop.
393
- *
394
- * This file is part of the Advanced JSON forms (ajf).
395
- *
396
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
397
- * modify it under the terms of the GNU Affero General Public License as
398
- * published by the Free Software Foundation, either version 3 of the License,
399
- * or (at your option) any later version.
400
- *
401
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
402
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
403
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
404
- * General Public License for more details.
405
- *
406
- * You should have received a copy of the GNU Affero General Public License
407
- * along with Advanced JSON forms (ajf).
408
- * If not, see http://www.gnu.org/licenses/.
409
- *
410
- */
411
- class AjfTextWidgetComponent extends AjfBaseWidgetComponent {
412
- constructor(cdr, el) {
413
- super(cdr, el);
414
- }
415
- }
416
- AjfTextWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfTextWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
417
- AjfTextWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfTextWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-text *ngIf=\"instance\" [htmlText]=\"instance.htmlText | transloco\"></ajf-text>\n", styles: [""], dependencies: [{ kind: "component", type: i1$3.AjfTextComponent, selector: "ajf-text", inputs: ["htmlText"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i3$1.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfTextWidgetComponent, decorators: [{
419
- type: Component,
420
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-text *ngIf=\"instance\" [htmlText]=\"instance.htmlText | transloco\"></ajf-text>\n" }]
421
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
422
-
423
- /**
424
- * @license
425
- * Copyright (C) Gnucoop soc. coop.
426
- *
427
- * This file is part of the Advanced JSON forms (ajf).
428
- *
429
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
430
- * modify it under the terms of the GNU Affero General Public License as
431
- * published by the Free Software Foundation, either version 3 of the License,
432
- * or (at your option) any later version.
433
- *
434
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
435
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
436
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
437
- * General Public License for more details.
438
- *
439
- * You should have received a copy of the GNU Affero General Public License
440
- * along with Advanced JSON forms (ajf).
441
- * If not, see http://www.gnu.org/licenses/.
442
- *
443
- */
444
- const defaultWidgetsFactory = () => {
445
- const defaultWidgets = {};
446
- defaultWidgets[AjfWidgetType.Layout] = { component: AjfLayoutWidgetComponent };
447
- defaultWidgets[AjfWidgetType.PageBreak] = { component: AjfPageBreakWidgetComponent };
448
- defaultWidgets[AjfWidgetType.Image] = { component: AjfImageWidgetComponent };
449
- defaultWidgets[AjfWidgetType.Text] = { component: AjfTextWidgetComponent };
450
- defaultWidgets[AjfWidgetType.Chart] = { component: AjfChartWidgetComponent };
451
- defaultWidgets[AjfWidgetType.Table] = { component: AjfTableWidgetComponent };
452
- defaultWidgets[AjfWidgetType.DynamicTable] = { component: AjfTableWidgetComponent };
453
- defaultWidgets[AjfWidgetType.Map] = { component: AjfMapWidgetComponent };
454
- defaultWidgets[AjfWidgetType.Column] = { component: AjfColumnWidgetComponent };
455
- defaultWidgets[AjfWidgetType.Formula] = { component: AjfFormulaWidgetComponent };
456
- defaultWidgets[AjfWidgetType.ImageContainer] = { component: AjfImageContainerWidgetComponent };
457
- defaultWidgets[AjfWidgetType.Graph] = { component: AjfGraphWidgetComponent };
458
- defaultWidgets[AjfWidgetType.PaginatedList] = { component: AjfPaginatedListWidgetComponent };
459
- defaultWidgets[AjfWidgetType.PaginatedTable] = { component: AjfPaginatedTableWidgetComponent };
460
- defaultWidgets[AjfWidgetType.Dialog] = { component: AjfDialogWidgetComponent };
461
- defaultWidgets[AjfWidgetType.HeatMap] = { component: AjfHeatMapWidgetComponent };
462
- return defaultWidgets;
463
- };
464
- class AjfWidgetService extends AjfWidgetService$1 {
465
- constructor() {
466
- super(defaultWidgetsFactory());
467
- }
468
- }
469
- AjfWidgetService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
470
- AjfWidgetService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfWidgetService, providedIn: 'root' });
471
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfWidgetService, decorators: [{
472
- type: Injectable,
473
- args: [{ providedIn: 'root' }]
474
- }], ctorParameters: function () { return []; } });
475
- class AjfReportWidget extends AjfReportWidget$1 {
476
- constructor(renderer, widgetService) {
477
- super(renderer);
478
- this.widgetsMap = widgetService.componentsMap;
479
- }
480
- }
481
- AjfReportWidget.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfReportWidget, deps: [{ token: i0.Renderer2 }, { token: AjfWidgetService }], target: i0.ɵɵFactoryTarget.Component });
482
- AjfReportWidget.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfReportWidget, selector: "ajf-widget", usesInheritance: true, ngImport: i0, template: "<ajf-filter-widget\n *ngIf=\"instance && instance.filter\"\n [instance]=\"instance\"\n (filteredInstance)=\"instance = $event\"\n>\n</ajf-filter-widget>\n<ng-template ajf-widget-host></ng-template>\n", styles: ["ajf-widget{display:flex;flex:1 1 auto;box-sizing:border-box;flex-direction:column}ajf-widget>ng-component{flex:1 1 auto;display:flex;align-items:center;box-sizing:border-box;background-color:transparent}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.AjfWidgetHost, selector: "[ajf-widget-host]" }, { kind: "component", type: AjfFilterWidgetComponent, selector: "ajf-filter-widget", outputs: ["filteredInstance"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
483
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfReportWidget, decorators: [{
484
- type: Component,
485
- args: [{ selector: 'ajf-widget', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ajf-filter-widget\n *ngIf=\"instance && instance.filter\"\n [instance]=\"instance\"\n (filteredInstance)=\"instance = $event\"\n>\n</ajf-filter-widget>\n<ng-template ajf-widget-host></ng-template>\n", styles: ["ajf-widget{display:flex;flex:1 1 auto;box-sizing:border-box;flex-direction:column}ajf-widget>ng-component{flex:1 1 auto;display:flex;align-items:center;box-sizing:border-box;background-color:transparent}\n"] }]
486
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: AjfWidgetService }]; } });
487
- class AjfColumnWidgetComponent extends AjfBaseWidgetComponent {
488
- constructor(cdr, el) {
489
- super(cdr, el);
490
- }
491
- }
492
- AjfColumnWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfColumnWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
493
- AjfColumnWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfColumnWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"instance\" class=\"ajf-column-container\">\n <ng-container *ngFor=\"let w of instance.content\">\n <ajf-widget [instance]=\"w\">\n </ajf-widget>\n </ng-container>\n</div>\n", styles: [".ajf-column-container{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AjfReportWidget, selector: "ajf-widget" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
494
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfColumnWidgetComponent, decorators: [{
495
- type: Component,
496
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"instance\" class=\"ajf-column-container\">\n <ng-container *ngFor=\"let w of instance.content\">\n <ajf-widget [instance]=\"w\">\n </ajf-widget>\n </ng-container>\n</div>\n", styles: [".ajf-column-container{width:100%}\n"] }]
497
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
498
- class AjfLayoutWidgetComponent extends AjfBaseWidgetComponent {
499
- constructor(cdr, el) {
500
- super(cdr, el);
501
- this._allcolumnsRendered$ = new BehaviorSubject(false);
502
- this.allcolumnsRendered$ = this
503
- ._allcolumnsRendered$;
504
- }
505
- ngAfterContentChecked() {
506
- this._allcolumnsRendered$.next(true);
507
- }
508
- }
509
- AjfLayoutWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfLayoutWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
510
- AjfLayoutWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfLayoutWidgetComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"instance\" class=\"ajf-columns\">\n <div\n *ngFor=\"let column of instance.widget.columns; let idx = index\"\n [ngStyle]=\"{'flex-grow': column > -1 ? 1 : null, 'flex-basis' : column > -1 ? (column * 100) + '%' : null}\"\n class=\"ajf-column\"\n >\n <ng-container *ngIf=\"allcolumnsRendered$|async\">\n <ajf-widget *ngIf=\"(instance|ajfGetColumnContent:idx) as cc\" [instance]=\"cc!\">\n </ajf-widget>\n </ng-container>\n </div>\n</div>\n", styles: [".ajf-columns{flex:1 1 auto;display:flex;align-items:inherit;box-sizing:border-box}.ajf-columns>.ajf-column{box-sizing:border-box;display:flex;align-items:inherit;flex-shrink:1}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: AjfReportWidget, selector: "ajf-widget" }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.AjfGetColumnContentPipe, name: "ajfGetColumnContent" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
511
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfLayoutWidgetComponent, decorators: [{
512
- type: Component,
513
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"instance\" class=\"ajf-columns\">\n <div\n *ngFor=\"let column of instance.widget.columns; let idx = index\"\n [ngStyle]=\"{'flex-grow': column > -1 ? 1 : null, 'flex-basis' : column > -1 ? (column * 100) + '%' : null}\"\n class=\"ajf-column\"\n >\n <ng-container *ngIf=\"allcolumnsRendered$|async\">\n <ajf-widget *ngIf=\"(instance|ajfGetColumnContent:idx) as cc\" [instance]=\"cc!\">\n </ajf-widget>\n </ng-container>\n </div>\n</div>\n", styles: [".ajf-columns{flex:1 1 auto;display:flex;align-items:inherit;box-sizing:border-box}.ajf-columns>.ajf-column{box-sizing:border-box;display:flex;align-items:inherit;flex-shrink:1}\n"] }]
514
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
515
- class AjfDialogWidgetComponent extends AjfBaseWidgetComponent {
516
- constructor(cdr, el, _dialog) {
517
- super(cdr, el);
518
- this._dialog = _dialog;
519
- }
520
- openDialog() {
521
- this._dialog.open(this.dialogContent);
522
- }
523
- }
524
- AjfDialogWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfDialogWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
525
- AjfDialogWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfDialogWidgetComponent, selector: "ng-component", viewQueries: [{ propertyName: "dialogContent", first: true, predicate: ["dialogContent"], descendants: true, read: TemplateRef }], usesInheritance: true, ngImport: i0, template: "<a *ngIf=\"instance\" class=\"ajf-dialog-toggle\" (click)=\"openDialog()\">\n <ajf-widget [instance]=\"instance.toggle\"></ajf-widget>\n</a>\n<ng-template #dialogContent>\n <ng-container *ngIf=\"instance\">\n <ng-container *ngFor=\"let item of instance.content\">\n <ajf-widget [instance]=\"item\"></ajf-widget>\n </ng-container>\n </ng-container>\n</ng-template>\n", styles: [".ajf-dialog-toggle{display:block;cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AjfReportWidget, selector: "ajf-widget" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
526
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfDialogWidgetComponent, decorators: [{
527
- type: Component,
528
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<a *ngIf=\"instance\" class=\"ajf-dialog-toggle\" (click)=\"openDialog()\">\n <ajf-widget [instance]=\"instance.toggle\"></ajf-widget>\n</a>\n<ng-template #dialogContent>\n <ng-container *ngIf=\"instance\">\n <ng-container *ngFor=\"let item of instance.content\">\n <ajf-widget [instance]=\"item\"></ajf-widget>\n </ng-container>\n </ng-container>\n</ng-template>\n", styles: [".ajf-dialog-toggle{display:block;cursor:pointer}\n"] }]
529
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i4.MatDialog }]; }, propDecorators: { dialogContent: [{
530
- type: ViewChild,
531
- args: ['dialogContent', { read: TemplateRef }]
532
- }] } });
533
- class AjfPaginatedListWidgetComponent extends AjfBaseWidgetComponent {
534
- constructor(cdr, el) {
535
- super(cdr, el);
536
- this._currentPage = 0;
537
- this._pages = 0;
538
- this._currentContent = [];
539
- this._canGoForward = false;
540
- this._canGoBackward = false;
541
- }
542
- get currentPage() {
543
- return this._currentPage;
544
- }
545
- get pages() {
546
- return this._pages;
547
- }
548
- get currentContent() {
549
- return this._currentContent;
550
- }
551
- get canGoForward() {
552
- return this._canGoForward;
553
- }
554
- get canGoBackward() {
555
- return this._canGoBackward;
556
- }
557
- ngOnChanges(changes) {
558
- if (changes['instance']) {
559
- this._updateCurrentContent();
560
- }
561
- }
562
- ngOnInit() {
563
- this._updateCurrentContent();
564
- }
565
- goToPage(direction) {
566
- const diff = direction === 'next' ? 1 : -1;
567
- const newPage = this._currentPage + diff;
568
- if (newPage <= 0 || newPage > this._pages) {
569
- return;
570
- }
571
- this._currentPage = newPage;
572
- this._canGoForward = newPage < this._pages;
573
- this._canGoBackward = newPage > 1;
574
- this._fillCurrentContent();
575
- }
576
- _updateCurrentContent() {
577
- this._canGoBackward = false;
578
- if (this.instance == null || this.instance.content.length === 0) {
579
- this._currentPage = 0;
580
- this._pages = 0;
581
- }
582
- else {
583
- this._currentPage = 1;
584
- const { content } = this.instance;
585
- const { pageSize } = this.instance.widget;
586
- this._pages = Math.ceil(content.length / pageSize);
587
- this._canGoForward = this._pages > 1;
588
- }
589
- this._fillCurrentContent();
590
- }
591
- _fillCurrentContent() {
592
- if (this.instance == null || this.instance.content.length === 0) {
593
- this._currentContent = [];
594
- return;
595
- }
596
- const { content } = this.instance;
597
- const { pageSize } = this.instance.widget;
598
- const start = (this._currentPage - 1) * pageSize;
599
- this._currentContent = content.slice(start, start + pageSize);
600
- this._cdr.markForCheck();
601
- }
602
- }
603
- AjfPaginatedListWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfPaginatedListWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
604
- AjfPaginatedListWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfPaginatedListWidgetComponent, selector: "ng-component", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"ajf-paginated-list\" *ngIf=\"instance && pages > 0\">\n <div class=\"ajf-paginated-list-title-container\">\n <div class=\"ajf-paginated-list-title\">{{ instance.widget.title }}</div>\n <div class=\"ajf-spacer\"></div>\n <div class=\"ajf-paginated-list-paginator\">\n <a (click)=\"goToPage('previous')\" class=\"ajf-paginated-list-btn ajf-paginated-list-back-btn\"\n [class.ajf-paginated-list-btn-disabled]=\"canGoBackward === false\"></a>\n <div class=\"ajf-paginated-list-paginator-page\">{{ currentPage }}</div>\n <div class=\"ajf-paginated-list-paginator-separator\"></div>\n <div class=\"ajf-paginated-list-paginator-pages\">{{ pages }}</div>\n <a (click)=\"goToPage('next')\" class=\"ajf-paginated-list-btn ajf-paginated-list-forward-btn\"\n [class.ajf-paginated-list-btn-disabled]=\"canGoForward === false\"></a>\n </div>\n </div>\n <div class=\"ajf-paginated-list-item\" *ngFor=\"let item of currentContent\">\n <ajf-widget [instance]=\"item\"></ajf-widget>\n </div>\n</div>\n", styles: [".ajf-paginated-list-title-container{display:flex;align-items:center}.ajf-spacer{flex:1 0 auto}.ajf-paginated-list-btn{cursor:pointer;display:block;width:32px;height:32px;position:relative}.ajf-paginated-list-btn:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.ajf-paginated-list-paginator-separator{width:16px;height:32px;position:relative}.ajf-paginated-list-paginator-separator:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center;content:\"/\"}.ajf-paginated-list-btn-disabled{opacity:.5;cursor:default}.ajf-paginated-list-back-btn:after{content:\"<\"}.ajf-paginated-list-forward-btn:after{content:\">\"}.ajf-paginated-list-paginator{display:flex;align-items:center}.ajf-paginated-list-paginator>*{margin:0 .5em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AjfReportWidget, selector: "ajf-widget" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
605
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfPaginatedListWidgetComponent, decorators: [{
606
- type: Component,
607
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ajf-paginated-list\" *ngIf=\"instance && pages > 0\">\n <div class=\"ajf-paginated-list-title-container\">\n <div class=\"ajf-paginated-list-title\">{{ instance.widget.title }}</div>\n <div class=\"ajf-spacer\"></div>\n <div class=\"ajf-paginated-list-paginator\">\n <a (click)=\"goToPage('previous')\" class=\"ajf-paginated-list-btn ajf-paginated-list-back-btn\"\n [class.ajf-paginated-list-btn-disabled]=\"canGoBackward === false\"></a>\n <div class=\"ajf-paginated-list-paginator-page\">{{ currentPage }}</div>\n <div class=\"ajf-paginated-list-paginator-separator\"></div>\n <div class=\"ajf-paginated-list-paginator-pages\">{{ pages }}</div>\n <a (click)=\"goToPage('next')\" class=\"ajf-paginated-list-btn ajf-paginated-list-forward-btn\"\n [class.ajf-paginated-list-btn-disabled]=\"canGoForward === false\"></a>\n </div>\n </div>\n <div class=\"ajf-paginated-list-item\" *ngFor=\"let item of currentContent\">\n <ajf-widget [instance]=\"item\"></ajf-widget>\n </div>\n</div>\n", styles: [".ajf-paginated-list-title-container{display:flex;align-items:center}.ajf-spacer{flex:1 0 auto}.ajf-paginated-list-btn{cursor:pointer;display:block;width:32px;height:32px;position:relative}.ajf-paginated-list-btn:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.ajf-paginated-list-paginator-separator{width:16px;height:32px;position:relative}.ajf-paginated-list-paginator-separator:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center;content:\"/\"}.ajf-paginated-list-btn-disabled{opacity:.5;cursor:default}.ajf-paginated-list-back-btn:after{content:\"<\"}.ajf-paginated-list-forward-btn:after{content:\">\"}.ajf-paginated-list-paginator{display:flex;align-items:center}.ajf-paginated-list-paginator>*{margin:0 .5em}\n"] }]
608
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
609
- class AjfPaginatedTableWidgetComponent extends AjfBaseWidgetComponent {
610
- constructor(cdr, el) {
611
- super(cdr, el);
612
- this.paginatorConfig = {
613
- pageSize: 10,
614
- pageSizeOptions: [5, 10, 15, 20, 25, 30, 50, 100, 500],
615
- };
616
- this._currentPage = 0;
617
- this._pages = 0;
618
- this._orderBy = 0;
619
- this._currentContent = [];
620
- /**
621
- * full data table
622
- */
623
- this._allDataContent = [];
624
- /**
625
- * full sorted data table
626
- */
627
- this._sortedAllDataContent = [];
628
- this._headerContent = [];
629
- this._canGoForward = false;
630
- this._canGoBackward = false;
631
- }
632
- get currentPage() {
633
- return this._currentPage;
634
- }
635
- get pages() {
636
- return this._pages;
637
- }
638
- get orderBy() {
639
- return this._orderBy;
640
- }
641
- get currentContent() {
642
- return this._currentContent;
643
- }
644
- get headerContent() {
645
- return this._headerContent;
646
- }
647
- get canGoForward() {
648
- return this._canGoForward;
649
- }
650
- get canGoBackward() {
651
- return this._canGoBackward;
652
- }
653
- /**
654
- * Set initial data for the table on instance changes
655
- * @param changes
656
- */
657
- ngOnChanges(changes) {
658
- if (changes['instance']) {
659
- if (this.instance != null &&
660
- this.instance.widget.pageSize &&
661
- this.instance.widget.pageSize > 0) {
662
- this.paginatorConfig.pageSize = this.instance.widget.pageSize;
663
- }
664
- this._updateCurrentContent();
665
- }
666
- }
667
- ngOnInit() {
668
- if (this.instance != null &&
669
- this.instance.widget.pageSize &&
670
- this.instance.widget.pageSize > 0) {
671
- this.paginatorConfig.pageSize = this.instance.widget.pageSize;
672
- }
673
- this._updateCurrentContent();
674
- }
675
- /**
676
- * Got to next or previous page
677
- * @param direction
678
- * @returns
679
- */
680
- goToPage(direction) {
681
- const diff = direction === 'next' ? 1 : -1;
682
- const newPage = this._currentPage + diff;
683
- if (newPage <= 0 || newPage > this._pages) {
684
- return;
685
- }
686
- this._currentPage = newPage;
687
- this._canGoForward = newPage < this._pages;
688
- this._canGoBackward = newPage > 1;
689
- this._fillCurrentContent();
690
- }
691
- onPageSizeChange(_pageSize) {
692
- this.paginatorConfig.pageSize = _pageSize;
693
- this._updateCurrentContent();
694
- }
695
- /**
696
- * Sort all data for the table, not only current page data
697
- * @param sort
698
- * @returns
699
- */
700
- sortPaginatedData(sort) {
701
- if (this._allDataContent.length > 1) {
702
- if (!sort.active || sort.direction === '') {
703
- this._sortedAllDataContent = this._allDataContent.slice();
704
- }
705
- else {
706
- this._currentPage = 1;
707
- this._canGoForward = this._currentPage < this._pages;
708
- this._canGoBackward = false;
709
- const columnIdx = parseInt(sort.active.slice(-1)) || 0;
710
- this._sortedAllDataContent = this._allDataContent.slice().sort((a, b) => {
711
- const isAsc = sort.direction === 'asc';
712
- return this._compare(a[columnIdx], b[columnIdx], isAsc);
713
- });
714
- }
715
- this._fillCurrentContent();
716
- }
717
- }
718
- _compare(a, b, isAsc) {
719
- return (a.value < b.value ? -1 : 1) * (isAsc ? 1 : -1);
720
- }
721
- /**
722
- * Set current header and data for the table, starting from page 1
723
- */
724
- _updateCurrentContent() {
725
- this._canGoBackward = false;
726
- if (this.instance == null || this.instance.data.length === 0) {
727
- this._currentPage = 0;
728
- this._pages = 0;
729
- this._headerContent = [];
730
- this._currentContent = [];
731
- this._allDataContent = [];
732
- this._sortedAllDataContent = [];
733
- }
734
- else {
735
- this._headerContent = this.instance.data[0];
736
- this._allDataContent = this.instance.data.slice(1);
737
- this._sortedAllDataContent = [...this._allDataContent];
738
- this._currentPage = 1;
739
- this._pages = Math.ceil(this._allDataContent.length / this.paginatorConfig.pageSize);
740
- this._canGoForward = this._pages > 1;
741
- }
742
- this._fillCurrentContent();
743
- }
744
- /**
745
- * Update current data for the table, using page and sorted data
746
- */
747
- _fillCurrentContent() {
748
- if (this._sortedAllDataContent.length === 0 && this._headerContent.length > 0) {
749
- this._currentContent = [this._headerContent];
750
- }
751
- else {
752
- const start = (this._currentPage - 1) * this.paginatorConfig.pageSize;
753
- this._currentContent = [
754
- this._headerContent,
755
- ...this._sortedAllDataContent.slice(start, start + this.paginatorConfig.pageSize),
756
- ];
757
- }
758
- this._cdr.markForCheck();
759
- }
760
- }
761
- AjfPaginatedTableWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfPaginatedTableWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
762
- AjfPaginatedTableWidgetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfPaginatedTableWidgetComponent, selector: "ng-component", usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"ajf-paginated-table\" *ngIf=\"instance\">\n <div class=\"ajf-paginated-table-title-container\" *ngIf=\"pages > 0\">\n <div class=\"ajf-paginated-table-page-selector\">\n <mat-label class=\"ajf-paginated-table-page-selector-label\"\n >{{'Items per page:'|transloco}}</mat-label\n >\n <mat-select\n [value]=\"paginatorConfig.pageSize\"\n (selectionChange)=\"onPageSizeChange($event.value)\"\n >\n <mat-option\n [value]=\"pageSizeOpt\"\n *ngFor=\"let pageSizeOpt of paginatorConfig.pageSizeOptions\"\n >\n {{ pageSizeOpt }}\n </mat-option>\n </mat-select>\n </div>\n <div class=\"ajf-spacer\"></div>\n <div class=\"ajf-paginated-table-paginator\">\n <a\n (click)=\"goToPage('previous')\"\n class=\"ajf-paginated-table-btn ajf-paginated-table-back-btn\"\n [class.ajf-paginated-table-btn-disabled]=\"canGoBackward === false\"\n ></a>\n <div class=\"ajf-paginated-table-paginator-page\">{{ currentPage }}</div>\n <div class=\"ajf-paginated-table-paginator-separator\"></div>\n <div class=\"ajf-paginated-table-paginator-pages\">{{ pages }}</div>\n <a\n (click)=\"goToPage('next')\"\n class=\"ajf-paginated-table-btn ajf-paginated-table-forward-btn\"\n [class.ajf-paginated-table-btn-disabled]=\"canGoForward === false\"\n ></a>\n </div>\n </div>\n <div class=\"ajf-paginated-table-item\">\n <ajf-widget-export\n *ngIf=\"instance\"\n [widgetType]=\"instance.widgetType\"\n [data]=\"currentContent\"\n [enable]=\"instance.exportable\"\n >\n <ajf-table [data]=\"currentContent\" (sortSelected)=\"sortPaginatedData($event)\"></ajf-table>\n </ajf-widget-export>\n </div>\n</div>\n", styles: ["table{border-spacing:0}table td{padding:10px}.ajf-paginated-table{width:100%;overflow-x:auto}.ajf-paginated-table table{min-width:100%}.ajf-paginated-table-page-selector{display:flex;align-items:baseline}.ajf-paginated-table-page-selector .ajf-paginated-table-page-selector-label{white-space:nowrap;margin-right:4px;font-size:.9em}.ajf-paginated-table-page-selector .mat-mdc-select{width:70px;font-size:.9em}.ajf-paginated-table-title-container{display:flex;align-items:center}.ajf-spacer{flex:1 0 auto}.ajf-paginated-table-btn{cursor:pointer;display:block;width:32px;height:32px;position:relative}.ajf-paginated-table-btn:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.ajf-paginated-table-paginator-separator{width:16px;height:32px;position:relative}.ajf-paginated-table-paginator-separator:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center;content:\"/\"}.ajf-paginated-table-btn-disabled{opacity:.5;cursor:default}.ajf-paginated-table-back-btn:after{content:\"<\"}.ajf-paginated-table-forward-btn:after{content:\">\"}.ajf-paginated-table-paginator{display:flex;align-items:center;font-size:.9em}.ajf-paginated-table-paginator>*{margin:0 .5em}\n"], dependencies: [{ kind: "component", type: i1$9.AjfTable, selector: "ajf-table", inputs: ["data", "cellpadding"], outputs: ["sortSelected"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AjfWidgetExport, selector: "ajf-widget-export", inputs: ["widgetType", "data", "widgets", "overlay", "enable"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "component", type: i7.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "pipe", type: i3$1.TranslocoPipe, name: "transloco" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
763
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfPaginatedTableWidgetComponent, decorators: [{
764
- type: Component,
765
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ajf-paginated-table\" *ngIf=\"instance\">\n <div class=\"ajf-paginated-table-title-container\" *ngIf=\"pages > 0\">\n <div class=\"ajf-paginated-table-page-selector\">\n <mat-label class=\"ajf-paginated-table-page-selector-label\"\n >{{'Items per page:'|transloco}}</mat-label\n >\n <mat-select\n [value]=\"paginatorConfig.pageSize\"\n (selectionChange)=\"onPageSizeChange($event.value)\"\n >\n <mat-option\n [value]=\"pageSizeOpt\"\n *ngFor=\"let pageSizeOpt of paginatorConfig.pageSizeOptions\"\n >\n {{ pageSizeOpt }}\n </mat-option>\n </mat-select>\n </div>\n <div class=\"ajf-spacer\"></div>\n <div class=\"ajf-paginated-table-paginator\">\n <a\n (click)=\"goToPage('previous')\"\n class=\"ajf-paginated-table-btn ajf-paginated-table-back-btn\"\n [class.ajf-paginated-table-btn-disabled]=\"canGoBackward === false\"\n ></a>\n <div class=\"ajf-paginated-table-paginator-page\">{{ currentPage }}</div>\n <div class=\"ajf-paginated-table-paginator-separator\"></div>\n <div class=\"ajf-paginated-table-paginator-pages\">{{ pages }}</div>\n <a\n (click)=\"goToPage('next')\"\n class=\"ajf-paginated-table-btn ajf-paginated-table-forward-btn\"\n [class.ajf-paginated-table-btn-disabled]=\"canGoForward === false\"\n ></a>\n </div>\n </div>\n <div class=\"ajf-paginated-table-item\">\n <ajf-widget-export\n *ngIf=\"instance\"\n [widgetType]=\"instance.widgetType\"\n [data]=\"currentContent\"\n [enable]=\"instance.exportable\"\n >\n <ajf-table [data]=\"currentContent\" (sortSelected)=\"sortPaginatedData($event)\"></ajf-table>\n </ajf-widget-export>\n </div>\n</div>\n", styles: ["table{border-spacing:0}table td{padding:10px}.ajf-paginated-table{width:100%;overflow-x:auto}.ajf-paginated-table table{min-width:100%}.ajf-paginated-table-page-selector{display:flex;align-items:baseline}.ajf-paginated-table-page-selector .ajf-paginated-table-page-selector-label{white-space:nowrap;margin-right:4px;font-size:.9em}.ajf-paginated-table-page-selector .mat-mdc-select{width:70px;font-size:.9em}.ajf-paginated-table-title-container{display:flex;align-items:center}.ajf-spacer{flex:1 0 auto}.ajf-paginated-table-btn{cursor:pointer;display:block;width:32px;height:32px;position:relative}.ajf-paginated-table-btn:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.ajf-paginated-table-paginator-separator{width:16px;height:32px;position:relative}.ajf-paginated-table-paginator-separator:after{width:100%;height:100%;display:flex;justify-content:center;align-items:center;content:\"/\"}.ajf-paginated-table-btn-disabled{opacity:.5;cursor:default}.ajf-paginated-table-back-btn:after{content:\"<\"}.ajf-paginated-table-forward-btn:after{content:\">\"}.ajf-paginated-table-paginator{display:flex;align-items:center;font-size:.9em}.ajf-paginated-table-paginator>*{margin:0 .5em}\n"] }]
766
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; } });
767
-
768
- /**
769
- * @license
770
- * Copyright (C) Gnucoop soc. coop.
771
- *
772
- * This file is part of the Advanced JSON forms (ajf).
773
- *
774
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
775
- * modify it under the terms of the GNU Affero General Public License as
776
- * published by the Free Software Foundation, either version 3 of the License,
777
- * or (at your option) any later version.
778
- *
779
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
780
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
781
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
782
- * General Public License for more details.
783
- *
784
- * You should have received a copy of the GNU Affero General Public License
785
- * along with Advanced JSON forms (ajf).
786
- * If not, see http://www.gnu.org/licenses/.
787
- *
788
- */
789
- class AjfReportRenderer extends AjfReportRenderer$1 {
790
- constructor(cdr) {
791
- super(cdr);
792
- }
793
- }
794
- AjfReportRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfReportRenderer, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
795
- AjfReportRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AjfReportRenderer, selector: "ajf-report", usesInheritance: true, ngImport: i0, template: "<ng-template [ngIf]=\"instance\">\n <div *ngIf=\"instance.header\" @.disabled [applyStyles]=\"instance.header.styles\" class=\"ajf-report-header\">\n <ng-template ngFor let-instance [ngForOf]=\"instance.header.content\">\n <ajf-widget *ngIf=\"instance.visible\" [instance]=\"instance\"></ajf-widget>\n </ng-template>\n </div>\n <div *ngIf=\"instance.content\" @.disabled [applyStyles]=\"instance.content.styles\" class=\"ajf-report-content\">\n <ajf-widget-export *ngIf=\"enableExportAll\"\n [overlay]=\"false\"\n [widgets]=\"instance.content.content\"\n [enable]=\"true\"></ajf-widget-export>\n <ng-template ngFor let-instance [ngForOf]=\"instance.content.content\">\n <ajf-widget *ngIf=\"instance.visible\" [instance]=\"instance\"></ajf-widget>\n </ng-template>\n </div>\n <div *ngIf=\"instance.footer\" @.disabled [applyStyles]=\"instance.footer.styles\" class=\"ajf-report-footer\">\n <ng-template ngFor let-instance [ngForOf]=\"instance.footer.content\">\n <ajf-widget *ngIf=\"instance.visible\" [instance]=\"instance\"></ajf-widget>\n </ng-template>\n </div>\n</ng-template>", styles: ["ajf-report{display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;position:relative;width:100%}ajf-report h1,ajf-report h2,ajf-report h3,ajf-report h4,ajf-report h5,ajf-report h6,ajf-report p{padding:0;margin:0}ajf-report .ajf-loading{position:absolute;inset:0;min-height:300px;padding:100px;text-align:center;background-color:#f0f0f066;display:flex;justify-content:center}\n"], dependencies: [{ kind: "directive", type: i1$5.ApplyStylesDirective, selector: "[applyStyles]", inputs: ["applyStyles"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AjfWidgetExport, selector: "ajf-widget-export", inputs: ["widgetType", "data", "widgets", "overlay", "enable"] }, { kind: "component", type: AjfReportWidget, selector: "ajf-widget" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
796
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfReportRenderer, decorators: [{
797
- type: Component,
798
- args: [{ selector: 'ajf-report', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template [ngIf]=\"instance\">\n <div *ngIf=\"instance.header\" @.disabled [applyStyles]=\"instance.header.styles\" class=\"ajf-report-header\">\n <ng-template ngFor let-instance [ngForOf]=\"instance.header.content\">\n <ajf-widget *ngIf=\"instance.visible\" [instance]=\"instance\"></ajf-widget>\n </ng-template>\n </div>\n <div *ngIf=\"instance.content\" @.disabled [applyStyles]=\"instance.content.styles\" class=\"ajf-report-content\">\n <ajf-widget-export *ngIf=\"enableExportAll\"\n [overlay]=\"false\"\n [widgets]=\"instance.content.content\"\n [enable]=\"true\"></ajf-widget-export>\n <ng-template ngFor let-instance [ngForOf]=\"instance.content.content\">\n <ajf-widget *ngIf=\"instance.visible\" [instance]=\"instance\"></ajf-widget>\n </ng-template>\n </div>\n <div *ngIf=\"instance.footer\" @.disabled [applyStyles]=\"instance.footer.styles\" class=\"ajf-report-footer\">\n <ng-template ngFor let-instance [ngForOf]=\"instance.footer.content\">\n <ajf-widget *ngIf=\"instance.visible\" [instance]=\"instance\"></ajf-widget>\n </ng-template>\n </div>\n</ng-template>", styles: ["ajf-report{display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;position:relative;width:100%}ajf-report h1,ajf-report h2,ajf-report h3,ajf-report h4,ajf-report h5,ajf-report h6,ajf-report p{padding:0;margin:0}ajf-report .ajf-loading{position:absolute;inset:0;min-height:300px;padding:100px;text-align:center;background-color:#f0f0f066;display:flex;justify-content:center}\n"] }]
799
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
800
-
801
- /**
802
- * @license
803
- * Copyright (C) Gnucoop soc. coop.
804
- *
805
- * This file is part of the Advanced JSON forms (ajf).
806
- *
807
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
808
- * modify it under the terms of the GNU Affero General Public License as
809
- * published by the Free Software Foundation, either version 3 of the License,
810
- * or (at your option) any later version.
811
- *
812
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
813
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
814
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
815
- * General Public License for more details.
816
- *
817
- * You should have received a copy of the GNU Affero General Public License
818
- * along with Advanced JSON forms (ajf).
819
- * If not, see http://www.gnu.org/licenses/.
820
- *
821
- */
822
- class AjfReportsModule {
823
- }
824
- AjfReportsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfReportsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
825
- AjfReportsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: AjfReportsModule, declarations: [AjfChartWidgetComponent,
826
- AjfColumnWidgetComponent,
827
- AjfDialogWidgetComponent,
828
- AjfFilterWidgetComponent,
829
- AjfFormulaWidgetComponent,
830
- AjfHeatMapWidgetComponent,
831
- AjfImageContainerWidgetComponent,
832
- AjfImageWidgetComponent,
833
- AjfGraphWidgetComponent,
834
- AjfLayoutWidgetComponent,
835
- AjfMapWidgetComponent,
836
- AjfPageBreakWidgetComponent,
837
- AjfPaginatedListWidgetComponent,
838
- AjfPaginatedTableWidgetComponent,
839
- AjfReportRenderer,
840
- AjfReportWidget,
841
- AjfTableWidgetComponent,
842
- AjfTextWidgetComponent], imports: [AjfChartModule,
843
- AjfCommonModule,
844
- AjfImageModule,
845
- AjfFormsModule,
846
- AjfGraphModule,
847
- AjfHeatMapModule,
848
- AjfMapModule,
849
- AjfPageBreakModule,
850
- AjfTableModule,
851
- AjfTextModule,
852
- AjfTranslocoModule,
853
- CommonModule,
854
- AjfReportsModule$1,
855
- MatDialogModule,
856
- MatSelectModule], exports: [AjfReportRenderer, AjfReportWidget] });
857
- AjfReportsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfReportsModule, imports: [AjfChartModule,
858
- AjfCommonModule,
859
- AjfImageModule,
860
- AjfFormsModule,
861
- AjfGraphModule,
862
- AjfHeatMapModule,
863
- AjfMapModule,
864
- AjfPageBreakModule,
865
- AjfTableModule,
866
- AjfTextModule,
867
- AjfTranslocoModule,
868
- CommonModule,
869
- AjfReportsModule$1,
870
- MatDialogModule,
871
- MatSelectModule] });
872
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AjfReportsModule, decorators: [{
873
- type: NgModule,
874
- args: [{
875
- imports: [
876
- AjfChartModule,
877
- AjfCommonModule,
878
- AjfImageModule,
879
- AjfFormsModule,
880
- AjfGraphModule,
881
- AjfHeatMapModule,
882
- AjfMapModule,
883
- AjfPageBreakModule,
884
- AjfTableModule,
885
- AjfTextModule,
886
- AjfTranslocoModule,
887
- CommonModule,
888
- AjfReportsModule$1,
889
- MatDialogModule,
890
- MatSelectModule,
891
- ],
892
- declarations: [
893
- AjfChartWidgetComponent,
894
- AjfColumnWidgetComponent,
895
- AjfDialogWidgetComponent,
896
- AjfFilterWidgetComponent,
897
- AjfFormulaWidgetComponent,
898
- AjfHeatMapWidgetComponent,
899
- AjfImageContainerWidgetComponent,
900
- AjfImageWidgetComponent,
901
- AjfGraphWidgetComponent,
902
- AjfLayoutWidgetComponent,
903
- AjfMapWidgetComponent,
904
- AjfPageBreakWidgetComponent,
905
- AjfPaginatedListWidgetComponent,
906
- AjfPaginatedTableWidgetComponent,
907
- AjfReportRenderer,
908
- AjfReportWidget,
909
- AjfTableWidgetComponent,
910
- AjfTextWidgetComponent,
911
- ],
912
- exports: [AjfReportRenderer, AjfReportWidget],
913
- }]
914
- }] });
915
-
916
- /**
917
- * @license
918
- * Copyright (C) Gnucoop soc. coop.
919
- *
920
- * This file is part of the Advanced JSON forms (ajf).
921
- *
922
- * Advanced JSON forms (ajf) is free software: you can redistribute it and/or
923
- * modify it under the terms of the GNU Affero General Public License as
924
- * published by the Free Software Foundation, either version 3 of the License,
925
- * or (at your option) any later version.
926
- *
927
- * Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
928
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
929
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
930
- * General Public License for more details.
931
- *
932
- * You should have received a copy of the GNU Affero General Public License
933
- * along with Advanced JSON forms (ajf).
934
- * If not, see http://www.gnu.org/licenses/.
935
- *
936
- */
937
-
938
- /**
939
- * Generated bundle index. Do not edit.
940
- */
941
-
942
- export { AjfChartWidgetComponent, AjfColumnWidgetComponent, AjfDialogWidgetComponent, AjfFilterWidgetComponent, AjfFormulaWidgetComponent, AjfHeatMapWidgetComponent, AjfImageContainerWidgetComponent, AjfImageWidgetComponent, AjfLayoutWidgetComponent, AjfMapWidgetComponent, AjfPageBreakWidgetComponent, AjfPaginatedListWidgetComponent, AjfPaginatedTableWidgetComponent, AjfReportRenderer, AjfReportWidget, AjfReportsModule, AjfTableWidgetComponent, AjfTextWidgetComponent, AjfWidgetService };
943
- //# sourceMappingURL=ajf-material-reports.mjs.map