@ajf/material 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +6 -0
- package/barcode/_barcode.scss +0 -0
- package/barcode/barcode-module.d.ts +23 -0
- package/barcode/barcode.d.ts +30 -0
- package/barcode/index.d.ts +4 -0
- package/barcode/index.metadata.json +1 -0
- package/barcode/package.json +9 -0
- package/barcode/public-api.d.ts +23 -0
- package/bundles/material-barcode.umd.js +433 -0
- package/bundles/material-barcode.umd.js.map +1 -0
- package/bundles/material-calendar.umd.js +435 -0
- package/bundles/material-calendar.umd.js.map +1 -0
- package/bundles/material-checkbox-group.umd.js +432 -0
- package/bundles/material-checkbox-group.umd.js.map +1 -0
- package/bundles/material-form-builder.umd.js +3558 -0
- package/bundles/material-form-builder.umd.js.map +1 -0
- package/bundles/material-forms.umd.js +968 -0
- package/bundles/material-forms.umd.js.map +1 -0
- package/bundles/material-image.umd.js +420 -0
- package/bundles/material-image.umd.js.map +1 -0
- package/bundles/material-monaco-editor.umd.js +755 -0
- package/bundles/material-monaco-editor.umd.js.map +1 -0
- package/bundles/material-node-icon.umd.js +415 -0
- package/bundles/material-node-icon.umd.js.map +1 -0
- package/bundles/material-page-slider.umd.js +424 -0
- package/bundles/material-page-slider.umd.js.map +1 -0
- package/bundles/material-report-builder.umd.js +5814 -0
- package/bundles/material-report-builder.umd.js.map +1 -0
- package/bundles/material-reports.umd.js +731 -0
- package/bundles/material-reports.umd.js.map +1 -0
- package/bundles/material-time.umd.js +424 -0
- package/bundles/material-time.umd.js.map +1 -0
- package/bundles/material.umd.js +40 -0
- package/bundles/material.umd.js.map +1 -0
- package/calendar/_calendar.scss +0 -0
- package/calendar/calendar-module.d.ts +23 -0
- package/calendar/calendar.d.ts +30 -0
- package/calendar/index.d.ts +4 -0
- package/calendar/index.metadata.json +1 -0
- package/calendar/package.json +9 -0
- package/calendar/public-api.d.ts +23 -0
- package/checkbox-group/_checkbox-group.scss +0 -0
- package/checkbox-group/checkbox-group-item.d.ts +25 -0
- package/checkbox-group/checkbox-group-module.d.ts +23 -0
- package/checkbox-group/index.d.ts +4 -0
- package/checkbox-group/index.metadata.json +1 -0
- package/checkbox-group/package.json +9 -0
- package/checkbox-group/public-api.d.ts +23 -0
- package/esm2015/barcode/barcode-module.js +50 -0
- package/esm2015/barcode/barcode.externs.js +6 -0
- package/esm2015/barcode/barcode.js +52 -0
- package/esm2015/barcode/index.js +5 -0
- package/esm2015/barcode/public-api.js +24 -0
- package/esm2015/calendar/calendar-module.js +48 -0
- package/esm2015/calendar/calendar.externs.js +6 -0
- package/esm2015/calendar/calendar.js +55 -0
- package/esm2015/calendar/index.js +5 -0
- package/esm2015/calendar/public-api.js +24 -0
- package/esm2015/checkbox-group/checkbox-group-item.js +51 -0
- package/esm2015/checkbox-group/checkbox-group-module.js +47 -0
- package/esm2015/checkbox-group/checkbox-group.externs.js +6 -0
- package/esm2015/checkbox-group/index.js +5 -0
- package/esm2015/checkbox-group/public-api.js +24 -0
- package/esm2015/form-builder/branch-line.js +73 -0
- package/esm2015/form-builder/choices-origin-data-source.js +38 -0
- package/esm2015/form-builder/choices-origin-editor-dialog.js +57 -0
- package/esm2015/form-builder/choices-origin-editor.js +78 -0
- package/esm2015/form-builder/condition-editor-dialog.js +59 -0
- package/esm2015/form-builder/condition-editor.js +143 -0
- package/esm2015/form-builder/form-builder-module.js +96 -0
- package/esm2015/form-builder/form-builder-service.js +764 -0
- package/esm2015/form-builder/form-builder-utils.js +63 -0
- package/esm2015/form-builder/form-builder.externs.js +6 -0
- package/esm2015/form-builder/form-builder.js +187 -0
- package/esm2015/form-builder/index.js +16 -0
- package/esm2015/form-builder/node-entry.js +245 -0
- package/esm2015/form-builder/node-properties.js +968 -0
- package/esm2015/form-builder/node-type-entry.js +50 -0
- package/esm2015/form-builder/operations.js +23 -0
- package/esm2015/form-builder/public-api.js +26 -0
- package/esm2015/form-builder/string-identifier-dialog.js +94 -0
- package/esm2015/form-builder/validation-condition-editor-dialog.js +59 -0
- package/esm2015/form-builder/warning-condition-editor-dialog.js +59 -0
- package/esm2015/forms/barcode-field.js +43 -0
- package/esm2015/forms/boolean-field.js +43 -0
- package/esm2015/forms/date-field.js +43 -0
- package/esm2015/forms/date-input-field.js +65 -0
- package/esm2015/forms/empty-field.js +43 -0
- package/esm2015/forms/field-service.js +115 -0
- package/esm2015/forms/field-warning-dialog.js +32 -0
- package/esm2015/forms/field.js +45 -0
- package/esm2015/forms/form.js +46 -0
- package/esm2015/forms/forms-module.js +107 -0
- package/esm2015/forms/forms.externs.js +6 -0
- package/esm2015/forms/index.js +9 -0
- package/esm2015/forms/input-field.js +43 -0
- package/esm2015/forms/multiple-choice-field.js +44 -0
- package/esm2015/forms/public-api.js +37 -0
- package/esm2015/forms/range-field.js +45 -0
- package/esm2015/forms/single-choice-field.js +44 -0
- package/esm2015/forms/table-field.js +43 -0
- package/esm2015/forms/text-field.js +43 -0
- package/esm2015/forms/time-field.js +43 -0
- package/esm2015/forms/video-url-field.js +47 -0
- package/esm2015/forms/warning-alert-service.js +42 -0
- package/esm2015/image/image-module.js +42 -0
- package/esm2015/image/image.externs.js +6 -0
- package/esm2015/image/image.js +44 -0
- package/esm2015/image/index.js +5 -0
- package/esm2015/image/public-api.js +24 -0
- package/esm2015/index.js +28 -0
- package/esm2015/material.externs.js +0 -0
- package/esm2015/monaco-editor/auto-complete-item-model.js +44 -0
- package/esm2015/monaco-editor/autocomplete-singleton-model.js +134 -0
- package/esm2015/monaco-editor/editor-language-model.js +60 -0
- package/esm2015/monaco-editor/editor-options-model.js +27 -0
- package/esm2015/monaco-editor/editor-scrollbar-options.js +23 -0
- package/esm2015/monaco-editor/editor-theme.js +30 -0
- package/esm2015/monaco-editor/index.js +5 -0
- package/esm2015/monaco-editor/monaco-editor-module.js +36 -0
- package/esm2015/monaco-editor/monaco-editor.externs.js +6 -0
- package/esm2015/monaco-editor/monaco-editor.js +389 -0
- package/esm2015/monaco-editor/public-api.js +24 -0
- package/esm2015/node-icon/index.js +5 -0
- package/esm2015/node-icon/node-icon-module.js +42 -0
- package/esm2015/node-icon/node-icon.externs.js +6 -0
- package/esm2015/node-icon/node-icon.js +35 -0
- package/esm2015/node-icon/public-api.js +24 -0
- package/esm2015/page-slider/index.js +5 -0
- package/esm2015/page-slider/page-slider-module.js +49 -0
- package/esm2015/page-slider/page-slider.externs.js +6 -0
- package/esm2015/page-slider/page-slider.js +44 -0
- package/esm2015/page-slider/public-api.js +24 -0
- package/esm2015/report-builder/column.js +97 -0
- package/esm2015/report-builder/condition-editor.js +159 -0
- package/esm2015/report-builder/content.js +255 -0
- package/esm2015/report-builder/custom-widget-dialog.js +51 -0
- package/esm2015/report-builder/custom-widget-toolbar-button.js +70 -0
- package/esm2015/report-builder/custom-widgets-toolbar.js +124 -0
- package/esm2015/report-builder/forms-analyzer-dialog.js +315 -0
- package/esm2015/report-builder/forms-analyzer.js +264 -0
- package/esm2015/report-builder/image-filter.js +32 -0
- package/esm2015/report-builder/image-group.js +106 -0
- package/esm2015/report-builder/index.js +25 -0
- package/esm2015/report-builder/models.js +23 -0
- package/esm2015/report-builder/operations.js +23 -0
- package/esm2015/report-builder/properties.js +765 -0
- package/esm2015/report-builder/public-api.js +26 -0
- package/esm2015/report-builder/quill-editor.js +299 -0
- package/esm2015/report-builder/renderer-widget.js +238 -0
- package/esm2015/report-builder/report-builder-drag-data.js +23 -0
- package/esm2015/report-builder/report-builder-module.js +114 -0
- package/esm2015/report-builder/report-builder-service.js +1685 -0
- package/esm2015/report-builder/report-builder.externs.js +6 -0
- package/esm2015/report-builder/report-builder.js +69 -0
- package/esm2015/report-builder/theme-color-dialog.js +90 -0
- package/esm2015/report-builder/theme-color.js +215 -0
- package/esm2015/report-builder/tokens.js +24 -0
- package/esm2015/report-builder/toolbar-dialog.js +56 -0
- package/esm2015/report-builder/toolbar.js +90 -0
- package/esm2015/report-builder/utils.js +48 -0
- package/esm2015/report-builder/widget-toolbar-button.js +47 -0
- package/esm2015/report-builder/widgets-row-buttons.js +133 -0
- package/esm2015/report-builder/widgets-toolbar.js +79 -0
- package/esm2015/reports/chart-widget.js +41 -0
- package/esm2015/reports/formula-widget.js +41 -0
- package/esm2015/reports/image-container-widget.js +43 -0
- package/esm2015/reports/image-widget.js +41 -0
- package/esm2015/reports/index.js +5 -0
- package/esm2015/reports/layout-widget.js +22 -0
- package/esm2015/reports/map-widget.js +41 -0
- package/esm2015/reports/page-break-widget.js +41 -0
- package/esm2015/reports/public-api.js +33 -0
- package/esm2015/reports/report.js +41 -0
- package/esm2015/reports/reports-module.js +79 -0
- package/esm2015/reports/reports.externs.js +6 -0
- package/esm2015/reports/table-widget.js +41 -0
- package/esm2015/reports/text-widget.js +41 -0
- package/esm2015/reports/widget.js +120 -0
- package/esm2015/time/index.js +5 -0
- package/esm2015/time/public-api.js +24 -0
- package/esm2015/time/time-module.js +44 -0
- package/esm2015/time/time.externs.js +6 -0
- package/esm2015/time/time.js +46 -0
- package/fesm2015/barcode.js +129 -0
- package/fesm2015/barcode.js.map +1 -0
- package/fesm2015/calendar.js +128 -0
- package/fesm2015/calendar.js.map +1 -0
- package/fesm2015/checkbox-group.js +124 -0
- package/fesm2015/checkbox-group.js.map +1 -0
- package/fesm2015/form-builder.js +2987 -0
- package/fesm2015/form-builder.js.map +1 -0
- package/fesm2015/forms.js +923 -0
- package/fesm2015/forms.js.map +1 -0
- package/fesm2015/image.js +113 -0
- package/fesm2015/image.js.map +1 -0
- package/fesm2015/material.js +30 -0
- package/fesm2015/material.js.map +1 -0
- package/fesm2015/monaco-editor.js +741 -0
- package/fesm2015/monaco-editor.js.map +1 -0
- package/fesm2015/node-icon.js +104 -0
- package/fesm2015/node-icon.js.map +1 -0
- package/fesm2015/page-slider.js +119 -0
- package/fesm2015/page-slider.js.map +1 -0
- package/fesm2015/report-builder.js +5332 -0
- package/fesm2015/report-builder.js.map +1 -0
- package/fesm2015/reports.js +560 -0
- package/fesm2015/reports.js.map +1 -0
- package/fesm2015/time.js +116 -0
- package/fesm2015/time.js.map +1 -0
- package/form-builder/_form-builder.scss +0 -0
- package/form-builder/branch-line.d.ts +36 -0
- package/form-builder/choices-origin-data-source.d.ts +35 -0
- package/form-builder/choices-origin-editor-dialog.d.ts +34 -0
- package/form-builder/choices-origin-editor.d.ts +43 -0
- package/form-builder/condition-editor-dialog.d.ts +35 -0
- package/form-builder/condition-editor.d.ts +37 -0
- package/form-builder/form-builder-module.d.ts +23 -0
- package/form-builder/form-builder-service.d.ts +191 -0
- package/form-builder/form-builder-utils.d.ts +41 -0
- package/form-builder/form-builder.d.ts +78 -0
- package/form-builder/index.d.ts +15 -0
- package/form-builder/index.metadata.json +1 -0
- package/form-builder/node-entry.d.ts +93 -0
- package/form-builder/node-properties.d.ts +184 -0
- package/form-builder/node-type-entry.d.ts +30 -0
- package/form-builder/operations.d.ts +31 -0
- package/form-builder/package.json +9 -0
- package/form-builder/public-api.d.ts +25 -0
- package/form-builder/string-identifier-dialog.d.ts +45 -0
- package/form-builder/validation-condition-editor-dialog.d.ts +36 -0
- package/form-builder/warning-condition-editor-dialog.d.ts +36 -0
- package/forms/_forms.scss +0 -0
- package/forms/barcode-field.d.ts +27 -0
- package/forms/boolean-field.d.ts +27 -0
- package/forms/date-field.d.ts +27 -0
- package/forms/date-input-field.d.ts +34 -0
- package/forms/empty-field.d.ts +27 -0
- package/forms/field-service.d.ts +25 -0
- package/forms/field-warning-dialog.d.ts +24 -0
- package/forms/field.d.ts +30 -0
- package/forms/form.d.ts +36 -0
- package/forms/forms-module.d.ts +25 -0
- package/forms/index.d.ts +8 -0
- package/forms/index.metadata.json +1 -0
- package/forms/input-field.d.ts +27 -0
- package/forms/multiple-choice-field.d.ts +27 -0
- package/forms/package.json +9 -0
- package/forms/public-api.d.ts +36 -0
- package/forms/range-field.d.ts +28 -0
- package/forms/single-choice-field.d.ts +27 -0
- package/forms/table-field.d.ts +27 -0
- package/forms/text-field.d.ts +27 -0
- package/forms/time-field.d.ts +27 -0
- package/forms/video-url-field.d.ts +29 -0
- package/forms/warning-alert-service.d.ts +29 -0
- package/image/_image.scss +0 -0
- package/image/image-module.d.ts +23 -0
- package/image/image.d.ts +27 -0
- package/image/index.d.ts +4 -0
- package/image/index.metadata.json +1 -0
- package/image/package.json +9 -0
- package/image/public-api.d.ts +23 -0
- package/index.d.ts +22 -0
- package/monaco-editor/_monaco-editor.scss +0 -0
- package/monaco-editor/auto-complete-item-model.d.ts +35 -0
- package/monaco-editor/autocomplete-singleton-model.d.ts +55 -0
- package/monaco-editor/editor-language-model.d.ts +59 -0
- package/monaco-editor/editor-options-model.d.ts +334 -0
- package/monaco-editor/editor-scrollbar-options.d.ts +83 -0
- package/monaco-editor/editor-theme.d.ts +29 -0
- package/monaco-editor/index.d.ts +4 -0
- package/monaco-editor/index.metadata.json +1 -0
- package/monaco-editor/monaco-editor-module.d.ts +23 -0
- package/monaco-editor/monaco-editor.d.ts +152 -0
- package/monaco-editor/package.json +9 -0
- package/monaco-editor/public-api.d.ts +23 -0
- package/node-icon/_node-icon.scss +0 -0
- package/node-icon/index.d.ts +4 -0
- package/node-icon/index.metadata.json +1 -0
- package/node-icon/node-icon-module.d.ts +23 -0
- package/node-icon/node-icon.d.ts +24 -0
- package/node-icon/package.json +9 -0
- package/node-icon/public-api.d.ts +23 -0
- package/package.json +38 -0
- package/page-slider/_page-slider.scss +0 -0
- package/page-slider/index.d.ts +4 -0
- package/page-slider/index.metadata.json +1 -0
- package/page-slider/package.json +9 -0
- package/page-slider/page-slider-module.d.ts +23 -0
- package/page-slider/page-slider.d.ts +30 -0
- package/page-slider/public-api.d.ts +23 -0
- package/report-builder/_report-builder.scss +0 -0
- package/report-builder/column.d.ts +63 -0
- package/report-builder/condition-editor.d.ts +67 -0
- package/report-builder/content.d.ts +142 -0
- package/report-builder/custom-widget-dialog.d.ts +31 -0
- package/report-builder/custom-widget-toolbar-button.d.ts +45 -0
- package/report-builder/custom-widgets-toolbar.d.ts +71 -0
- package/report-builder/forms-analyzer-dialog.d.ts +91 -0
- package/report-builder/forms-analyzer.d.ts +102 -0
- package/report-builder/image-filter.d.ts +25 -0
- package/report-builder/image-group.d.ts +69 -0
- package/report-builder/index.d.ts +24 -0
- package/report-builder/index.metadata.json +1 -0
- package/report-builder/models.d.ts +43 -0
- package/report-builder/operations.d.ts +45 -0
- package/report-builder/package.json +9 -0
- package/report-builder/properties.d.ts +365 -0
- package/report-builder/public-api.d.ts +26 -0
- package/report-builder/quill-editor.d.ts +113 -0
- package/report-builder/renderer-widget.d.ts +80 -0
- package/report-builder/report-builder-drag-data.d.ts +32 -0
- package/report-builder/report-builder-module.d.ts +23 -0
- package/report-builder/report-builder-service.d.ts +722 -0
- package/report-builder/report-builder.d.ts +36 -0
- package/report-builder/theme-color-dialog.d.ts +42 -0
- package/report-builder/theme-color.d.ts +108 -0
- package/report-builder/tokens.d.ts +24 -0
- package/report-builder/toolbar-dialog.d.ts +30 -0
- package/report-builder/toolbar.d.ts +48 -0
- package/report-builder/utils.d.ts +29 -0
- package/report-builder/widget-toolbar-button.d.ts +28 -0
- package/report-builder/widgets-row-buttons.d.ts +57 -0
- package/report-builder/widgets-toolbar.d.ts +44 -0
- package/reports/_reports.scss +0 -0
- package/reports/chart-widget.d.ts +26 -0
- package/reports/formula-widget.d.ts +26 -0
- package/reports/image-container-widget.d.ts +28 -0
- package/reports/image-widget.d.ts +26 -0
- package/reports/index.d.ts +4 -0
- package/reports/index.metadata.json +1 -0
- package/reports/layout-widget.d.ts +21 -0
- package/reports/map-widget.d.ts +26 -0
- package/reports/package.json +9 -0
- package/reports/page-break-widget.d.ts +26 -0
- package/reports/public-api.d.ts +32 -0
- package/reports/report.d.ts +26 -0
- package/reports/reports-module.d.ts +23 -0
- package/reports/table-widget.d.ts +26 -0
- package/reports/text-widget.d.ts +26 -0
- package/reports/widget.d.ts +40 -0
- package/time/_time.scss +0 -0
- package/time/index.d.ts +4 -0
- package/time/index.metadata.json +1 -0
- package/time/package.json +9 -0
- package/time/public-api.d.ts +23 -0
- package/time/time-module.d.ts +23 -0
- package/time/time.d.ts +28 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { AjfCondition } from '@ajf/core/models';
|
|
23
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
24
|
+
import { AjfFormVariables } from './models';
|
|
25
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
26
|
+
export declare class AjfReportBuilderConditionEditor implements OnInit, OnDestroy {
|
|
27
|
+
private _service;
|
|
28
|
+
visibility: AjfCondition;
|
|
29
|
+
formsVariables: AjfFormVariables[];
|
|
30
|
+
isValid: boolean;
|
|
31
|
+
names: string[];
|
|
32
|
+
currentId: number;
|
|
33
|
+
conditionText: string;
|
|
34
|
+
a: any;
|
|
35
|
+
b: any;
|
|
36
|
+
conditionTextArea: any;
|
|
37
|
+
operators: string[];
|
|
38
|
+
private _conditionNamesSub;
|
|
39
|
+
/**
|
|
40
|
+
* this constructor will init current condition by ajfBuilderservice
|
|
41
|
+
* and init condition and availableFieldNames subscriptions
|
|
42
|
+
*/
|
|
43
|
+
constructor(_service: AjfReportBuilderService);
|
|
44
|
+
extractNames(formsVariables: AjfFormVariables[]): void;
|
|
45
|
+
setCurrent(id: number, index: number): void;
|
|
46
|
+
/**
|
|
47
|
+
* this method will return success if the current condtion is valid
|
|
48
|
+
* @return boolean
|
|
49
|
+
*/
|
|
50
|
+
validateCondition(): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* this method will append text to json
|
|
53
|
+
* @param text : string -
|
|
54
|
+
* @param goBackNum : number -
|
|
55
|
+
*/
|
|
56
|
+
appendText(text: string, _goBackNum?: number): void;
|
|
57
|
+
checkValidation(): void;
|
|
58
|
+
/**
|
|
59
|
+
* this method will save current condition
|
|
60
|
+
*/
|
|
61
|
+
saveCondition(): void;
|
|
62
|
+
ngOnInit(): void;
|
|
63
|
+
/**
|
|
64
|
+
* this method will destroy a conditionSubscriptions
|
|
65
|
+
*/
|
|
66
|
+
ngOnDestroy(): void;
|
|
67
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { AjfStyles, AjfWidget } from '@ajf/core/reports';
|
|
23
|
+
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
24
|
+
import { AfterViewChecked, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
25
|
+
import { Observable } from 'rxjs';
|
|
26
|
+
import { AjfReportBuilderDragData } from './report-builder-drag-data';
|
|
27
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
28
|
+
/**
|
|
29
|
+
* manage the content page
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export declare class AjfReportBuilderContent implements OnInit, AfterViewChecked, OnDestroy {
|
|
34
|
+
private _service;
|
|
35
|
+
private _cdRef;
|
|
36
|
+
onMouseOver(): void;
|
|
37
|
+
onMouseLeave(): void;
|
|
38
|
+
canDropPredicate(dropZones: string[]): (item: CdkDrag<AjfReportBuilderDragData>) => boolean;
|
|
39
|
+
reportStyles: Observable<AjfStyles>;
|
|
40
|
+
onDragged: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* observe the status of the fixed zoom
|
|
43
|
+
*
|
|
44
|
+
* @memberOf AjfReportBuilderContent
|
|
45
|
+
*/
|
|
46
|
+
fixedZoom: boolean;
|
|
47
|
+
onDragEnter: any;
|
|
48
|
+
show: boolean;
|
|
49
|
+
headerWidgets: AjfWidget[];
|
|
50
|
+
/**
|
|
51
|
+
* observe the css style of header
|
|
52
|
+
*
|
|
53
|
+
* @memberOf AjfReportBuilderContent
|
|
54
|
+
*/
|
|
55
|
+
headerStyles: Observable<AjfStyles>;
|
|
56
|
+
contentWidgets: AjfWidget[];
|
|
57
|
+
/**
|
|
58
|
+
* observe the css style of content
|
|
59
|
+
*
|
|
60
|
+
* @memberOf AjfReportBuilderContent
|
|
61
|
+
*/
|
|
62
|
+
contentStyles: Observable<AjfStyles>;
|
|
63
|
+
footerWidgets: AjfWidget[];
|
|
64
|
+
onOver: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* observe the css style of footer
|
|
67
|
+
*
|
|
68
|
+
* @memberOf AjfReportBuilderContent
|
|
69
|
+
*/
|
|
70
|
+
footerStyles: Observable<AjfStyles>;
|
|
71
|
+
currentWidget: AjfWidget | null;
|
|
72
|
+
/**
|
|
73
|
+
* if true mouse event is on dragged status
|
|
74
|
+
*
|
|
75
|
+
* @memberOf AjfReportBuilderContent
|
|
76
|
+
*/
|
|
77
|
+
showActions: boolean;
|
|
78
|
+
private _onDraggedSub;
|
|
79
|
+
private _fixedZoomSub;
|
|
80
|
+
private _onDragEnterSub;
|
|
81
|
+
private _headerWidgetsSub;
|
|
82
|
+
private _contentWidgetsSub;
|
|
83
|
+
private _footerWidgetsSub;
|
|
84
|
+
private _onOverSub;
|
|
85
|
+
private _currentWidgetSub;
|
|
86
|
+
constructor(_service: AjfReportBuilderService, _cdRef: ChangeDetectorRef);
|
|
87
|
+
isLayout(widget: AjfWidget): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* sign the start of mouse drag with 200 ms of delay
|
|
90
|
+
*
|
|
91
|
+
* @memberOf AjfReportBuilderContent
|
|
92
|
+
*/
|
|
93
|
+
onDragStartHandler(): void;
|
|
94
|
+
/**
|
|
95
|
+
* sign the end of mouse drag
|
|
96
|
+
*
|
|
97
|
+
* @memberOf AjfReportBuilderContent
|
|
98
|
+
*/
|
|
99
|
+
onDragEndHandler(): void;
|
|
100
|
+
/**
|
|
101
|
+
* sign the enter of mouse drag
|
|
102
|
+
*
|
|
103
|
+
* @memberOf AjfReportBuilderContent
|
|
104
|
+
*/
|
|
105
|
+
onDragEnterHandler(array: string, index: number | undefined): void;
|
|
106
|
+
/**
|
|
107
|
+
* sign the leave of mouse drag
|
|
108
|
+
*
|
|
109
|
+
* @memberOf AjfReportBuilderContent
|
|
110
|
+
*/
|
|
111
|
+
onDragLeaveHandler(): void;
|
|
112
|
+
/**
|
|
113
|
+
* return true if array and index is === with array and index of onDragEnter
|
|
114
|
+
*
|
|
115
|
+
* @param array
|
|
116
|
+
* @param index
|
|
117
|
+
*
|
|
118
|
+
* @memberOf AjfReportBuilderContent
|
|
119
|
+
*/
|
|
120
|
+
onDragEnterCheck(array: string, index: number): boolean;
|
|
121
|
+
/**
|
|
122
|
+
* remove widget element from type array in idx position
|
|
123
|
+
*
|
|
124
|
+
* @param type can be header content or footer
|
|
125
|
+
* @param idx
|
|
126
|
+
*
|
|
127
|
+
* @memberOf AjfReportBuilderContent
|
|
128
|
+
*/
|
|
129
|
+
remove(type: string, idx: number): void;
|
|
130
|
+
/**
|
|
131
|
+
* add widget element into type array in idx position
|
|
132
|
+
*
|
|
133
|
+
* @param type
|
|
134
|
+
* @param event
|
|
135
|
+
*
|
|
136
|
+
* @memberOf AjfReportBuilderContent
|
|
137
|
+
*/
|
|
138
|
+
addToList(arrayTo: string, event: CdkDragDrop<AjfReportBuilderDragData>, to?: number): void;
|
|
139
|
+
ngOnInit(): void;
|
|
140
|
+
ngAfterViewChecked(): void;
|
|
141
|
+
ngOnDestroy(): void;
|
|
142
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
23
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
24
|
+
export declare class AjfReportBuilderCustomWidgetDialog {
|
|
25
|
+
private _service;
|
|
26
|
+
private _dialogRef;
|
|
27
|
+
label: string;
|
|
28
|
+
position: number;
|
|
29
|
+
constructor(_service: AjfReportBuilderService, _dialogRef: MatDialogRef<AjfReportBuilderCustomWidgetDialog>);
|
|
30
|
+
changeLabel(): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { OnInit } from '@angular/core';
|
|
23
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
24
|
+
export declare class AjfReportBuilderCustomWidgetToolbarButton implements OnInit {
|
|
25
|
+
private _service;
|
|
26
|
+
widgetType: string;
|
|
27
|
+
position: number;
|
|
28
|
+
widgetIcon: string;
|
|
29
|
+
widgetLabel: string;
|
|
30
|
+
customWidgets: any[];
|
|
31
|
+
/**
|
|
32
|
+
* this constructor will init icon registry
|
|
33
|
+
*/
|
|
34
|
+
constructor(_service: AjfReportBuilderService);
|
|
35
|
+
/**
|
|
36
|
+
* this method call a service method for remove custom widget
|
|
37
|
+
*
|
|
38
|
+
* @memberOf AjfReportBuilderCustomWidgetToolbarButton
|
|
39
|
+
*/
|
|
40
|
+
remove(): void;
|
|
41
|
+
/**
|
|
42
|
+
* this method will init fieldIcon and fieldLabel
|
|
43
|
+
*/
|
|
44
|
+
ngOnInit(): void;
|
|
45
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
23
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
24
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
25
|
+
export interface AjfStyles {
|
|
26
|
+
[style: string]: any;
|
|
27
|
+
}
|
|
28
|
+
export interface CustomWidget {
|
|
29
|
+
json: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}
|
|
32
|
+
export interface CustomWidgets {
|
|
33
|
+
widgets: CustomWidget[];
|
|
34
|
+
}
|
|
35
|
+
export declare class AjfReportBuilderCustomWidgetsToolbar implements OnDestroy, OnInit {
|
|
36
|
+
private _service;
|
|
37
|
+
dialog: MatDialog;
|
|
38
|
+
customWidgets: CustomWidget[];
|
|
39
|
+
private _customWidgetsSub;
|
|
40
|
+
private _dialogRef;
|
|
41
|
+
private _threeColumnsLayout;
|
|
42
|
+
private _fourColumnsLayout;
|
|
43
|
+
constructor(_service: AjfReportBuilderService, dialog: MatDialog);
|
|
44
|
+
openDialog(idx: number): void;
|
|
45
|
+
/**
|
|
46
|
+
* sign the start of mouse drag with 200 ms of delay
|
|
47
|
+
*
|
|
48
|
+
* @memberOf AjfReportBuilderContent
|
|
49
|
+
*/
|
|
50
|
+
onDragStartHandler(): void;
|
|
51
|
+
/**
|
|
52
|
+
* sign the end of mouse drag
|
|
53
|
+
*
|
|
54
|
+
* @memberOf AjfReportBuilderContent
|
|
55
|
+
*/
|
|
56
|
+
onDragEndHandler(): void;
|
|
57
|
+
/**
|
|
58
|
+
* sign the enter of mouse drag
|
|
59
|
+
*
|
|
60
|
+
* @memberOf AjfReportBuilderContent
|
|
61
|
+
*/
|
|
62
|
+
onDragEnterHandler(array: string, index: number): void;
|
|
63
|
+
/**
|
|
64
|
+
* sign the leave of mouse drag
|
|
65
|
+
*
|
|
66
|
+
* @memberOf AjfReportBuilderContent
|
|
67
|
+
*/
|
|
68
|
+
onDragLeaveHandler(): void;
|
|
69
|
+
ngOnInit(): void;
|
|
70
|
+
ngOnDestroy(): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { AjfValidationService } from '@ajf/core/forms';
|
|
23
|
+
import { AjfAggregationType, AjfDataset, AjfWidget } from '@ajf/core/reports';
|
|
24
|
+
import { AjfMonacoEditor } from '@ajf/material/monaco-editor';
|
|
25
|
+
import { AfterViewChecked, OnDestroy, OnInit } from '@angular/core';
|
|
26
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
27
|
+
import { AjfFormVariables } from './models';
|
|
28
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
29
|
+
export declare const enum AjfDataType {
|
|
30
|
+
MainData = 0,
|
|
31
|
+
Dataset = 1,
|
|
32
|
+
RelatedData = 2,
|
|
33
|
+
LENGTH = 3
|
|
34
|
+
}
|
|
35
|
+
export declare class AjfReportBuilderFormsAnalyzerDialog implements OnInit, AfterViewChecked, OnDestroy {
|
|
36
|
+
private _service;
|
|
37
|
+
private _dialogRef;
|
|
38
|
+
aggregationTypes: string[];
|
|
39
|
+
operators: string[];
|
|
40
|
+
formulaText: string;
|
|
41
|
+
formulaDate: string;
|
|
42
|
+
safeFormulaText: string;
|
|
43
|
+
label: string;
|
|
44
|
+
condition: string;
|
|
45
|
+
aggregationType: AjfAggregationType;
|
|
46
|
+
dataset: AjfDataset;
|
|
47
|
+
currentId: number;
|
|
48
|
+
currentIndex: number;
|
|
49
|
+
labels: string[];
|
|
50
|
+
currentWidget: AjfWidget | null;
|
|
51
|
+
formsVariables: AjfFormVariables[];
|
|
52
|
+
formsVariablesName: string[];
|
|
53
|
+
formsVariablesType: string[];
|
|
54
|
+
isValid: boolean;
|
|
55
|
+
formula: string;
|
|
56
|
+
isFormula: boolean;
|
|
57
|
+
labelText: string;
|
|
58
|
+
aggregation: number;
|
|
59
|
+
init: boolean;
|
|
60
|
+
level: number;
|
|
61
|
+
index: number;
|
|
62
|
+
mainIndex: number;
|
|
63
|
+
reference: any;
|
|
64
|
+
monacoEditor: AjfMonacoEditor;
|
|
65
|
+
private _formAnalyzerSub;
|
|
66
|
+
private _currentWidgetSub;
|
|
67
|
+
private _first;
|
|
68
|
+
constructor(_service: AjfReportBuilderService, _dialogRef: MatDialogRef<AjfReportBuilderFormsAnalyzerDialog>, _: AjfValidationService);
|
|
69
|
+
onEditorInit(): void;
|
|
70
|
+
private _initFormsVariablesNames;
|
|
71
|
+
private _updateVariables;
|
|
72
|
+
private _updateFunctions;
|
|
73
|
+
private _fieldVarType;
|
|
74
|
+
setCurrent(id: number, label: string, index: number): void;
|
|
75
|
+
setCurrentId(id: number): void;
|
|
76
|
+
setAggregationType(type: AjfAggregationType): void;
|
|
77
|
+
checkValidation(): void;
|
|
78
|
+
validateFormula(): boolean;
|
|
79
|
+
saveDataset(): void;
|
|
80
|
+
saveImageFormula(): void;
|
|
81
|
+
saveFormulaHtml(): void;
|
|
82
|
+
saveChartFormula(): void;
|
|
83
|
+
saveTableFormula(): void;
|
|
84
|
+
insertVariable(variable: string): void;
|
|
85
|
+
setVariable(variable: string): void;
|
|
86
|
+
reset(): void;
|
|
87
|
+
close(): void;
|
|
88
|
+
ngOnInit(): void;
|
|
89
|
+
ngAfterViewChecked(): void;
|
|
90
|
+
ngOnDestroy(): void;
|
|
91
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { AjfForm } from '@ajf/core/forms';
|
|
23
|
+
import { AjfWidget } from '@ajf/core/reports';
|
|
24
|
+
import { OnDestroy } from '@angular/core';
|
|
25
|
+
import { ThemePalette } from '@angular/material/core';
|
|
26
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
27
|
+
import { AjfReportBuilderFormsAnalyzerDialog } from './forms-analyzer-dialog';
|
|
28
|
+
import { AjfFormVariables } from './models';
|
|
29
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
30
|
+
/**
|
|
31
|
+
* this component provides the support for connect the form fields with the report
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare class AjfReportBuilderFormsAnalyzer implements OnDestroy {
|
|
36
|
+
private _service;
|
|
37
|
+
dialog: MatDialog;
|
|
38
|
+
currentWidget: AjfWidget | null;
|
|
39
|
+
forms: AjfForm[];
|
|
40
|
+
formsVariables: AjfFormVariables[];
|
|
41
|
+
choicesOrigins: any;
|
|
42
|
+
dialogRef: MatDialogRef<AjfReportBuilderFormsAnalyzerDialog>;
|
|
43
|
+
currentMainDataIndex: number;
|
|
44
|
+
private _dataset;
|
|
45
|
+
private _currentWidgetSub;
|
|
46
|
+
private _formAnalyzerSub;
|
|
47
|
+
constructor(_service: AjfReportBuilderService, dialog: MatDialog);
|
|
48
|
+
setCurrentIndex(index: number): void;
|
|
49
|
+
isSelected(index: number): ThemePalette;
|
|
50
|
+
/**
|
|
51
|
+
* get the X components label of the chart.
|
|
52
|
+
* they are contained in the first row of dataset
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
* @memberof AjfReportBuilderFormsAnalyzer
|
|
56
|
+
*/
|
|
57
|
+
getMainData(): string[];
|
|
58
|
+
/**
|
|
59
|
+
* get the Y components label of the chart.
|
|
60
|
+
* they are contained in the first column of dataset
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* @memberof AjfReportBuilderFormsAnalyzer
|
|
64
|
+
*/
|
|
65
|
+
getDataset(): string[];
|
|
66
|
+
/**
|
|
67
|
+
* get the related data label of the chart.
|
|
68
|
+
* they are contained in the row of the Y component
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* @memberof AjfReportBuilderFormsAnalyzer
|
|
72
|
+
*/
|
|
73
|
+
getRelatedData(): string[];
|
|
74
|
+
getTableHeader(): string[];
|
|
75
|
+
getTableData(): string[];
|
|
76
|
+
needMainData(): boolean;
|
|
77
|
+
removeMainData(index: number): void;
|
|
78
|
+
removeDataset(index: number): void;
|
|
79
|
+
removeTableMainData(index: number): void;
|
|
80
|
+
removeRelatedData(index: number): void;
|
|
81
|
+
removeData(mainIndex: number, index: number): void;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*
|
|
85
|
+
*
|
|
86
|
+
* @param index
|
|
87
|
+
* @param editMode
|
|
88
|
+
*
|
|
89
|
+
* @memberof AjfReportBuilderFormsAnalyzer
|
|
90
|
+
*/
|
|
91
|
+
openDialog(level: number, mainIndex: number, index: number, editMode: boolean): void;
|
|
92
|
+
openDialogAddMainData(): void;
|
|
93
|
+
openDialogChartEditMainData(): void;
|
|
94
|
+
openDialogTableEditMainData(): void;
|
|
95
|
+
openDialogChartAddDataset(): void;
|
|
96
|
+
openDialogTableAddDataset(): void;
|
|
97
|
+
openDialogChartAddDataOfDataset(): void;
|
|
98
|
+
openDialogChartEditDataset(): void;
|
|
99
|
+
openDialogTableEditDataset(index: number): void;
|
|
100
|
+
openDialogChartEditDataOfDataset(index: number): void;
|
|
101
|
+
ngOnDestroy(): void;
|
|
102
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { PipeTransform } from '@angular/core';
|
|
23
|
+
export declare class AjfImageFilterPipe implements PipeTransform {
|
|
24
|
+
transform(items: any[], args: any): any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
4
|
+
*
|
|
5
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
6
|
+
*
|
|
7
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
8
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
9
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
10
|
+
* or (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
15
|
+
* General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
18
|
+
* along with Advanced JSON forms (ajf).
|
|
19
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
import { EventEmitter } from '@angular/core';
|
|
23
|
+
import { AjfReportBuilderService } from './report-builder-service';
|
|
24
|
+
/**
|
|
25
|
+
* this component handle a group of image object
|
|
26
|
+
* there are 2 types of view
|
|
27
|
+
* ajf-icon and class
|
|
28
|
+
*
|
|
29
|
+
* take a json in input
|
|
30
|
+
* 'icon': 'false', // if true ajf-icon activated
|
|
31
|
+
* 'class': ['flag-icon'], // add class in object style
|
|
32
|
+
* 'prefixClass': 'flag-icon-', // prefix of class contained on data set
|
|
33
|
+
* 'title': 'flags', title of data set
|
|
34
|
+
* 'data': [
|
|
35
|
+
* {
|
|
36
|
+
* 'class': 'dz', strind added on prefix
|
|
37
|
+
* 'info': 'Algeria' info related to object (exploit on toolTip)
|
|
38
|
+
* }
|
|
39
|
+
* ]
|
|
40
|
+
* };
|
|
41
|
+
*
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
export declare class AjfReportBuilderImageGroup {
|
|
45
|
+
private _service;
|
|
46
|
+
private _icon;
|
|
47
|
+
private _classes;
|
|
48
|
+
get icon(): {
|
|
49
|
+
fontSet: string;
|
|
50
|
+
fontIcon: string;
|
|
51
|
+
} | null;
|
|
52
|
+
get classes(): string;
|
|
53
|
+
open: boolean;
|
|
54
|
+
valueToSearch: string;
|
|
55
|
+
data: any;
|
|
56
|
+
/**
|
|
57
|
+
* this event is fired when the user click on formula button on quill editor rool barƒ
|
|
58
|
+
*
|
|
59
|
+
* @memberof QuillEditorComponent
|
|
60
|
+
*/
|
|
61
|
+
readonly formulaClick: EventEmitter<any>;
|
|
62
|
+
constructor(_service: AjfReportBuilderService);
|
|
63
|
+
setIcon(fontSet: string, fontIcon: string): void;
|
|
64
|
+
setFlag(value: string): void;
|
|
65
|
+
setSearch(value: any): void;
|
|
66
|
+
emitFormula(): void;
|
|
67
|
+
getFlag(value: string): string;
|
|
68
|
+
toggle(): void;
|
|
69
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
export { AjfReportBuilderColumn as ɵgc_ajf_src_material_report_builder_report_builder_c } from './column';
|
|
6
|
+
export { AjfReportBuilderConditionEditor as ɵgc_ajf_src_material_report_builder_report_builder_d } from './condition-editor';
|
|
7
|
+
export { AjfReportBuilderContent as ɵgc_ajf_src_material_report_builder_report_builder_e } from './content';
|
|
8
|
+
export { AjfReportBuilderCustomWidgetDialog as ɵgc_ajf_src_material_report_builder_report_builder_f } from './custom-widget-dialog';
|
|
9
|
+
export { AjfReportBuilderCustomWidgetToolbarButton as ɵgc_ajf_src_material_report_builder_report_builder_h } from './custom-widget-toolbar-button';
|
|
10
|
+
export { AjfReportBuilderCustomWidgetsToolbar as ɵgc_ajf_src_material_report_builder_report_builder_g } from './custom-widgets-toolbar';
|
|
11
|
+
export { AjfReportBuilderFormsAnalyzer as ɵgc_ajf_src_material_report_builder_report_builder_i } from './forms-analyzer';
|
|
12
|
+
export { AjfReportBuilderFormsAnalyzerDialog as ɵgc_ajf_src_material_report_builder_report_builder_j } from './forms-analyzer-dialog';
|
|
13
|
+
export { AjfImageFilterPipe as ɵgc_ajf_src_material_report_builder_report_builder_a } from './image-filter';
|
|
14
|
+
export { AjfReportBuilderImageGroup as ɵgc_ajf_src_material_report_builder_report_builder_k } from './image-group';
|
|
15
|
+
export { AjfReportBuilderProperties as ɵgc_ajf_src_material_report_builder_report_builder_l } from './properties';
|
|
16
|
+
export { AjfQuillEditor as ɵgc_ajf_src_material_report_builder_report_builder_b } from './quill-editor';
|
|
17
|
+
export { AjfReportBuilderRendererWidget as ɵgc_ajf_src_material_report_builder_report_builder_m } from './renderer-widget';
|
|
18
|
+
export { AjfReportBuilderThemeColor as ɵgc_ajf_src_material_report_builder_report_builder_n } from './theme-color';
|
|
19
|
+
export { AjfReportBuilderThemeColorDialog as ɵgc_ajf_src_material_report_builder_report_builder_o } from './theme-color-dialog';
|
|
20
|
+
export { AjfReportBuilderToolbar as ɵgc_ajf_src_material_report_builder_report_builder_p } from './toolbar';
|
|
21
|
+
export { AjfReportBuilderToolbarDialog as ɵgc_ajf_src_material_report_builder_report_builder_q } from './toolbar-dialog';
|
|
22
|
+
export { AjfReportBuilderWidgetToolbarButton as ɵgc_ajf_src_material_report_builder_report_builder_t } from './widget-toolbar-button';
|
|
23
|
+
export { AjfReportBuilderWidgetsRowButtons as ɵgc_ajf_src_material_report_builder_report_builder_r } from './widgets-row-buttons';
|
|
24
|
+
export { AjfReportBuilderWidgetsToolbar as ɵgc_ajf_src_material_report_builder_report_builder_s } from './widgets-toolbar';
|