@ajf/material 13.0.0-next.2 → 13.0.0-rc.1
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/barcode/barcode-module.d.ts +11 -21
- package/barcode/barcode.d.ts +3 -0
- package/barcode/barcode_public_index.d.ts +4 -0
- package/barcode/index.d.ts +19 -1
- package/barcode/package.json +6 -6
- package/calendar/calendar-module.d.ts +10 -21
- package/calendar/calendar.d.ts +3 -0
- package/calendar/calendar_public_index.d.ts +4 -0
- package/calendar/index.d.ts +19 -1
- package/calendar/package.json +6 -6
- package/checkbox-group/checkbox-group-item.d.ts +3 -0
- package/checkbox-group/checkbox-group-module.d.ts +9 -21
- package/checkbox-group/checkbox-group_public_index.d.ts +4 -0
- package/checkbox-group/index.d.ts +19 -1
- package/checkbox-group/package.json +6 -6
- package/esm2020/barcode/barcode-module.mjs +63 -0
- package/esm2020/barcode/barcode.mjs +51 -0
- package/esm2020/barcode/barcode_public_index.mjs +5 -0
- package/esm2020/barcode/index.mjs +23 -0
- package/{esm2015/barcode/public-api.js → esm2020/barcode/public-api.mjs} +0 -0
- package/esm2020/calendar/calendar-module.mjs +43 -0
- package/esm2020/calendar/calendar.mjs +49 -0
- package/esm2020/calendar/calendar_public_index.mjs +5 -0
- package/esm2020/calendar/index.mjs +23 -0
- package/{esm2015/calendar/public-api.js → esm2020/calendar/public-api.mjs} +0 -0
- package/esm2020/checkbox-group/checkbox-group-item.mjs +51 -0
- package/esm2020/checkbox-group/checkbox-group-module.mjs +42 -0
- package/esm2020/checkbox-group/checkbox-group_public_index.mjs +5 -0
- package/{esm2015/report-builder/image-filter.js → esm2020/checkbox-group/index.mjs} +2 -11
- package/{esm2015/checkbox-group/public-api.js → esm2020/checkbox-group/public-api.mjs} +0 -0
- package/esm2020/form-builder/branch-line.mjs +68 -0
- package/{esm2015/form-builder/choices-origin-data-source.js → esm2020/form-builder/choices-origin-data-source.mjs} +1 -1
- package/esm2020/form-builder/choices-origin-editor-dialog.mjs +40 -0
- package/esm2020/form-builder/choices-origin-editor.mjs +83 -0
- package/esm2020/form-builder/condition-editor-dialog.mjs +38 -0
- package/esm2020/form-builder/condition-editor.mjs +147 -0
- package/esm2020/form-builder/form-builder-module.mjs +179 -0
- package/esm2020/form-builder/form-builder-service.mjs +766 -0
- package/{esm2015/form-builder/form-builder-utils.js → esm2020/form-builder/form-builder-utils.mjs} +4 -3
- package/esm2020/form-builder/form-builder.mjs +180 -0
- package/esm2020/form-builder/form-builder_public_index.mjs +5 -0
- package/esm2020/form-builder/index.mjs +23 -0
- package/esm2020/form-builder/node-entry.mjs +260 -0
- package/esm2020/form-builder/node-properties.mjs +960 -0
- package/esm2020/form-builder/node-type-entry.mjs +46 -0
- package/{esm2015/form-builder/operations.js → esm2020/form-builder/operations.mjs} +0 -0
- package/{esm2015/form-builder/public-api.js → esm2020/form-builder/public-api.mjs} +0 -0
- package/esm2020/form-builder/string-identifier-dialog.mjs +79 -0
- package/esm2020/form-builder/validation-condition-editor-dialog.mjs +41 -0
- package/esm2020/form-builder/warning-condition-editor-dialog.mjs +41 -0
- package/esm2020/forms/barcode-field.mjs +45 -0
- package/esm2020/forms/boolean-field.mjs +45 -0
- package/esm2020/forms/date-field.mjs +45 -0
- package/esm2020/forms/date-input-field.mjs +67 -0
- package/esm2020/forms/empty-field.mjs +43 -0
- package/esm2020/forms/field-service.mjs +116 -0
- package/esm2020/forms/field-warning-dialog.mjs +34 -0
- package/esm2020/forms/field.mjs +42 -0
- package/esm2020/forms/form.mjs +51 -0
- package/esm2020/forms/forms-module.mjs +208 -0
- package/esm2020/forms/forms_public_index.mjs +5 -0
- package/esm2020/forms/index.mjs +23 -0
- package/esm2020/forms/input-field.mjs +46 -0
- package/esm2020/forms/multiple-choice-field.mjs +54 -0
- package/{esm2015/forms/public-api.js → esm2020/forms/public-api.mjs} +0 -0
- package/esm2020/forms/range-field.mjs +46 -0
- package/esm2020/forms/single-choice-field.mjs +53 -0
- package/esm2020/forms/table-field.mjs +45 -0
- package/esm2020/forms/text-field.mjs +47 -0
- package/esm2020/forms/time-field.mjs +45 -0
- package/esm2020/forms/video-url-field.mjs +50 -0
- package/esm2020/forms/warning-alert-service.mjs +22 -0
- package/esm2020/image/image-module.mjs +40 -0
- package/esm2020/image/image.mjs +40 -0
- package/esm2020/image/image_public_index.mjs +5 -0
- package/esm2020/image/index.mjs +23 -0
- package/{esm2015/image/public-api.js → esm2020/image/public-api.mjs} +0 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/monaco-editor/auto-complete-item-model.js → esm2020/monaco-editor/auto-complete-item-model.mjs} +0 -0
- package/{esm2015/monaco-editor/autocomplete-singleton-model.js → esm2020/monaco-editor/autocomplete-singleton-model.mjs} +3 -2
- package/{esm2015/monaco-editor/editor-language-model.js → esm2020/monaco-editor/editor-language-model.mjs} +0 -0
- package/{esm2015/monaco-editor/editor-options-model.js → esm2020/monaco-editor/editor-options-model.mjs} +1 -1
- package/{esm2015/monaco-editor/editor-scrollbar-options.js → esm2020/monaco-editor/editor-scrollbar-options.mjs} +0 -0
- package/{esm2015/monaco-editor/editor-theme.js → esm2020/monaco-editor/editor-theme.mjs} +0 -0
- package/esm2020/monaco-editor/index.mjs +23 -0
- package/esm2020/monaco-editor/monaco-editor-module.mjs +37 -0
- package/esm2020/monaco-editor/monaco-editor.mjs +451 -0
- package/esm2020/monaco-editor/monaco-editor_public_index.mjs +5 -0
- package/{esm2015/monaco-editor/public-api.js → esm2020/monaco-editor/public-api.mjs} +0 -0
- package/esm2020/node-icon/index.mjs +23 -0
- package/esm2020/node-icon/node-icon-module.mjs +40 -0
- package/esm2020/node-icon/node-icon.mjs +35 -0
- package/esm2020/node-icon/node-icon_public_index.mjs +5 -0
- package/{esm2015/node-icon/public-api.js → esm2020/node-icon/public-api.mjs} +0 -0
- package/esm2020/page-slider/index.mjs +23 -0
- package/esm2020/page-slider/page-slider-module.mjs +59 -0
- package/esm2020/page-slider/page-slider.mjs +42 -0
- package/esm2020/page-slider/page-slider_public_index.mjs +5 -0
- package/{esm2015/page-slider/public-api.js → esm2020/page-slider/public-api.mjs} +0 -0
- package/esm2020/reports/chart-widget.mjs +38 -0
- package/esm2020/reports/formula-widget.mjs +37 -0
- package/esm2020/reports/image-container-widget.mjs +41 -0
- package/esm2020/reports/image-widget.mjs +37 -0
- package/esm2020/reports/index.mjs +23 -0
- package/{esm2015/reports/layout-widget.js → esm2020/reports/layout-widget.mjs} +0 -0
- package/esm2020/reports/map-widget.mjs +37 -0
- package/esm2020/reports/page-break-widget.mjs +37 -0
- package/{esm2015/reports/public-api.js → esm2020/reports/public-api.mjs} +0 -0
- package/esm2020/reports/report.mjs +39 -0
- package/esm2020/reports/reports-module.mjs +112 -0
- package/esm2020/reports/reports_public_index.mjs +5 -0
- package/esm2020/reports/table-widget.mjs +38 -0
- package/esm2020/reports/text-widget.mjs +38 -0
- package/esm2020/reports/widget.mjs +102 -0
- package/{esm2015/report-builder/operations.js → esm2020/time/index.mjs} +2 -2
- package/{esm2015/time/public-api.js → esm2020/time/public-api.mjs} +0 -0
- package/esm2020/time/time-module.mjs +41 -0
- package/esm2020/time/time.mjs +45 -0
- package/esm2020/time/time_public_index.mjs +5 -0
- package/fesm2015/barcode.mjs +162 -0
- package/fesm2015/barcode.mjs.map +1 -0
- package/fesm2015/calendar.mjs +138 -0
- package/fesm2015/calendar.mjs.map +1 -0
- package/fesm2015/checkbox-group.mjs +142 -0
- package/fesm2015/checkbox-group.mjs.map +1 -0
- package/fesm2015/form-builder.mjs +2922 -0
- package/fesm2015/form-builder.mjs.map +1 -0
- package/fesm2015/forms.mjs +1011 -0
- package/fesm2015/forms.mjs.map +1 -0
- package/fesm2015/image.mjs +127 -0
- package/fesm2015/image.mjs.map +1 -0
- package/fesm2015/{material.js → material.mjs} +1 -1
- package/{bundles/material.umd.js.map → fesm2015/material.mjs.map} +1 -1
- package/fesm2015/{monaco-editor.js → monaco-editor.mjs} +179 -124
- package/fesm2015/monaco-editor.mjs.map +1 -0
- package/fesm2015/node-icon.mjs +123 -0
- package/fesm2015/node-icon.mjs.map +1 -0
- package/fesm2015/page-slider.mjs +147 -0
- package/fesm2015/page-slider.mjs.map +1 -0
- package/fesm2015/reports.mjs +551 -0
- package/fesm2015/reports.mjs.map +1 -0
- package/fesm2015/time.mjs +133 -0
- package/fesm2015/time.mjs.map +1 -0
- package/fesm2020/barcode.mjs +162 -0
- package/fesm2020/barcode.mjs.map +1 -0
- package/fesm2020/calendar.mjs +138 -0
- package/fesm2020/calendar.mjs.map +1 -0
- package/fesm2020/checkbox-group.mjs +140 -0
- package/fesm2020/checkbox-group.mjs.map +1 -0
- package/fesm2020/form-builder.mjs +2921 -0
- package/fesm2020/form-builder.mjs.map +1 -0
- package/fesm2020/forms.mjs +985 -0
- package/fesm2020/forms.mjs.map +1 -0
- package/fesm2020/image.mjs +127 -0
- package/fesm2020/image.mjs.map +1 -0
- package/{report-builder/image-filter.d.ts → fesm2020/material.mjs} +9 -4
- package/fesm2020/material.mjs.map +1 -0
- package/fesm2020/monaco-editor.mjs +826 -0
- package/fesm2020/monaco-editor.mjs.map +1 -0
- package/fesm2020/node-icon.mjs +123 -0
- package/fesm2020/node-icon.mjs.map +1 -0
- package/fesm2020/page-slider.mjs +147 -0
- package/fesm2020/page-slider.mjs.map +1 -0
- package/fesm2020/reports.mjs +551 -0
- package/fesm2020/reports.mjs.map +1 -0
- package/fesm2020/time.mjs +133 -0
- package/fesm2020/time.mjs.map +1 -0
- package/form-builder/branch-line.d.ts +3 -0
- package/form-builder/choices-origin-editor-dialog.d.ts +3 -0
- package/form-builder/choices-origin-editor.d.ts +3 -0
- package/form-builder/condition-editor-dialog.d.ts +3 -0
- package/form-builder/condition-editor.d.ts +3 -0
- package/form-builder/form-builder-module.d.ts +41 -21
- package/form-builder/form-builder-service.d.ts +3 -0
- package/form-builder/form-builder.d.ts +3 -0
- package/form-builder/form-builder_public_index.d.ts +4 -0
- package/form-builder/index.d.ts +19 -12
- package/form-builder/node-entry.d.ts +3 -0
- package/form-builder/node-properties.d.ts +3 -0
- package/form-builder/node-type-entry.d.ts +3 -0
- package/form-builder/package.json +6 -6
- package/form-builder/string-identifier-dialog.d.ts +3 -0
- package/form-builder/validation-condition-editor-dialog.d.ts +3 -0
- package/form-builder/warning-condition-editor-dialog.d.ts +3 -0
- package/forms/barcode-field.d.ts +3 -0
- package/forms/boolean-field.d.ts +3 -0
- package/forms/date-field.d.ts +3 -0
- package/forms/date-input-field.d.ts +3 -0
- package/forms/empty-field.d.ts +3 -0
- package/forms/field-service.d.ts +3 -0
- package/forms/field-warning-dialog.d.ts +3 -21
- package/forms/field.d.ts +3 -0
- package/forms/form.d.ts +3 -0
- package/forms/forms-module.d.ts +43 -21
- package/forms/forms_public_index.d.ts +4 -0
- package/forms/index.d.ts +19 -5
- package/forms/input-field.d.ts +3 -0
- package/forms/multiple-choice-field.d.ts +3 -0
- package/forms/package.json +6 -6
- package/forms/range-field.d.ts +3 -0
- package/forms/single-choice-field.d.ts +3 -0
- package/forms/table-field.d.ts +3 -0
- package/forms/text-field.d.ts +3 -0
- package/forms/time-field.d.ts +3 -0
- package/forms/video-url-field.d.ts +3 -0
- package/forms/warning-alert-service.d.ts +3 -0
- package/image/image-module.d.ts +7 -21
- package/image/image.d.ts +3 -0
- package/image/image_public_index.d.ts +4 -0
- package/image/index.d.ts +19 -1
- package/image/package.json +6 -6
- package/monaco-editor/index.d.ts +19 -1
- package/monaco-editor/monaco-editor-module.d.ts +5 -21
- package/monaco-editor/monaco-editor.d.ts +3 -0
- package/monaco-editor/monaco-editor_public_index.d.ts +4 -0
- package/monaco-editor/package.json +6 -6
- package/node-icon/index.d.ts +19 -1
- package/node-icon/node-icon-module.d.ts +7 -21
- package/node-icon/node-icon.d.ts +3 -0
- package/node-icon/node-icon_public_index.d.ts +4 -0
- package/node-icon/package.json +6 -6
- package/package.json +111 -11
- package/page-slider/index.d.ts +19 -1
- package/page-slider/package.json +6 -6
- package/page-slider/page-slider-module.d.ts +10 -21
- package/page-slider/page-slider.d.ts +3 -0
- package/page-slider/page-slider_public_index.d.ts +4 -0
- package/reports/chart-widget.d.ts +3 -0
- package/reports/formula-widget.d.ts +3 -0
- package/reports/image-container-widget.d.ts +3 -0
- package/reports/image-widget.d.ts +3 -0
- package/reports/index.d.ts +19 -1
- package/reports/map-widget.d.ts +3 -0
- package/reports/package.json +6 -6
- package/reports/page-break-widget.d.ts +3 -0
- package/reports/report.d.ts +3 -0
- package/reports/reports-module.d.ts +24 -21
- package/reports/reports_public_index.d.ts +4 -0
- package/reports/table-widget.d.ts +3 -0
- package/reports/text-widget.d.ts +3 -0
- package/reports/widget.d.ts +9 -0
- package/time/index.d.ts +19 -1
- package/time/package.json +6 -6
- package/time/time-module.d.ts +8 -21
- package/time/time.d.ts +3 -0
- package/time/time_public_index.d.ts +4 -0
- package/barcode/index.metadata.json +0 -1
- package/bundles/material-barcode.umd.js +0 -433
- package/bundles/material-barcode.umd.js.map +0 -1
- package/bundles/material-calendar.umd.js +0 -435
- package/bundles/material-calendar.umd.js.map +0 -1
- package/bundles/material-checkbox-group.umd.js +0 -432
- package/bundles/material-checkbox-group.umd.js.map +0 -1
- package/bundles/material-form-builder.umd.js +0 -3558
- package/bundles/material-form-builder.umd.js.map +0 -1
- package/bundles/material-forms.umd.js +0 -968
- package/bundles/material-forms.umd.js.map +0 -1
- package/bundles/material-image.umd.js +0 -420
- package/bundles/material-image.umd.js.map +0 -1
- package/bundles/material-monaco-editor.umd.js +0 -755
- package/bundles/material-monaco-editor.umd.js.map +0 -1
- package/bundles/material-node-icon.umd.js +0 -415
- package/bundles/material-node-icon.umd.js.map +0 -1
- package/bundles/material-page-slider.umd.js +0 -424
- package/bundles/material-page-slider.umd.js.map +0 -1
- package/bundles/material-report-builder.umd.js +0 -5814
- package/bundles/material-report-builder.umd.js.map +0 -1
- package/bundles/material-reports.umd.js +0 -731
- package/bundles/material-reports.umd.js.map +0 -1
- package/bundles/material-time.umd.js +0 -424
- package/bundles/material-time.umd.js.map +0 -1
- package/bundles/material.umd.js +0 -40
- package/calendar/index.metadata.json +0 -1
- package/checkbox-group/index.metadata.json +0 -1
- package/esm2015/barcode/barcode-module.js +0 -50
- package/esm2015/barcode/barcode.externs.js +0 -6
- package/esm2015/barcode/barcode.js +0 -52
- package/esm2015/barcode/index.js +0 -5
- package/esm2015/calendar/calendar-module.js +0 -48
- package/esm2015/calendar/calendar.externs.js +0 -6
- package/esm2015/calendar/calendar.js +0 -55
- package/esm2015/calendar/index.js +0 -5
- package/esm2015/checkbox-group/checkbox-group-item.js +0 -51
- package/esm2015/checkbox-group/checkbox-group-module.js +0 -47
- package/esm2015/checkbox-group/checkbox-group.externs.js +0 -6
- package/esm2015/checkbox-group/index.js +0 -5
- package/esm2015/form-builder/branch-line.js +0 -73
- package/esm2015/form-builder/choices-origin-editor-dialog.js +0 -57
- package/esm2015/form-builder/choices-origin-editor.js +0 -78
- package/esm2015/form-builder/condition-editor-dialog.js +0 -59
- package/esm2015/form-builder/condition-editor.js +0 -143
- package/esm2015/form-builder/form-builder-module.js +0 -96
- package/esm2015/form-builder/form-builder-service.js +0 -764
- package/esm2015/form-builder/form-builder.externs.js +0 -6
- package/esm2015/form-builder/form-builder.js +0 -187
- package/esm2015/form-builder/index.js +0 -16
- package/esm2015/form-builder/node-entry.js +0 -245
- package/esm2015/form-builder/node-properties.js +0 -968
- package/esm2015/form-builder/node-type-entry.js +0 -50
- package/esm2015/form-builder/string-identifier-dialog.js +0 -94
- package/esm2015/form-builder/validation-condition-editor-dialog.js +0 -59
- package/esm2015/form-builder/warning-condition-editor-dialog.js +0 -59
- package/esm2015/forms/barcode-field.js +0 -43
- package/esm2015/forms/boolean-field.js +0 -43
- package/esm2015/forms/date-field.js +0 -43
- package/esm2015/forms/date-input-field.js +0 -65
- package/esm2015/forms/empty-field.js +0 -43
- package/esm2015/forms/field-service.js +0 -115
- package/esm2015/forms/field-warning-dialog.js +0 -32
- package/esm2015/forms/field.js +0 -45
- package/esm2015/forms/form.js +0 -46
- package/esm2015/forms/forms-module.js +0 -107
- package/esm2015/forms/forms.externs.js +0 -6
- package/esm2015/forms/index.js +0 -9
- package/esm2015/forms/input-field.js +0 -43
- package/esm2015/forms/multiple-choice-field.js +0 -44
- package/esm2015/forms/range-field.js +0 -45
- package/esm2015/forms/single-choice-field.js +0 -44
- package/esm2015/forms/table-field.js +0 -43
- package/esm2015/forms/text-field.js +0 -43
- package/esm2015/forms/time-field.js +0 -43
- package/esm2015/forms/video-url-field.js +0 -47
- package/esm2015/forms/warning-alert-service.js +0 -42
- package/esm2015/image/image-module.js +0 -42
- package/esm2015/image/image.externs.js +0 -6
- package/esm2015/image/image.js +0 -44
- package/esm2015/image/index.js +0 -5
- package/esm2015/material.externs.js +0 -0
- package/esm2015/monaco-editor/index.js +0 -5
- package/esm2015/monaco-editor/monaco-editor-module.js +0 -36
- package/esm2015/monaco-editor/monaco-editor.externs.js +0 -6
- package/esm2015/monaco-editor/monaco-editor.js +0 -389
- package/esm2015/node-icon/index.js +0 -5
- package/esm2015/node-icon/node-icon-module.js +0 -42
- package/esm2015/node-icon/node-icon.externs.js +0 -6
- package/esm2015/node-icon/node-icon.js +0 -35
- package/esm2015/page-slider/index.js +0 -5
- package/esm2015/page-slider/page-slider-module.js +0 -49
- package/esm2015/page-slider/page-slider.externs.js +0 -6
- package/esm2015/page-slider/page-slider.js +0 -44
- package/esm2015/report-builder/column.js +0 -97
- package/esm2015/report-builder/condition-editor.js +0 -159
- package/esm2015/report-builder/content.js +0 -255
- package/esm2015/report-builder/custom-widget-dialog.js +0 -51
- package/esm2015/report-builder/custom-widget-toolbar-button.js +0 -70
- package/esm2015/report-builder/custom-widgets-toolbar.js +0 -124
- package/esm2015/report-builder/forms-analyzer-dialog.js +0 -315
- package/esm2015/report-builder/forms-analyzer.js +0 -264
- package/esm2015/report-builder/image-group.js +0 -106
- package/esm2015/report-builder/index.js +0 -25
- package/esm2015/report-builder/models.js +0 -23
- package/esm2015/report-builder/properties.js +0 -765
- package/esm2015/report-builder/public-api.js +0 -26
- package/esm2015/report-builder/quill-editor.js +0 -299
- package/esm2015/report-builder/renderer-widget.js +0 -238
- package/esm2015/report-builder/report-builder-drag-data.js +0 -23
- package/esm2015/report-builder/report-builder-module.js +0 -114
- package/esm2015/report-builder/report-builder-service.js +0 -1685
- package/esm2015/report-builder/report-builder.externs.js +0 -6
- package/esm2015/report-builder/report-builder.js +0 -69
- package/esm2015/report-builder/theme-color-dialog.js +0 -90
- package/esm2015/report-builder/theme-color.js +0 -215
- package/esm2015/report-builder/tokens.js +0 -24
- package/esm2015/report-builder/toolbar-dialog.js +0 -56
- package/esm2015/report-builder/toolbar.js +0 -90
- package/esm2015/report-builder/utils.js +0 -48
- package/esm2015/report-builder/widget-toolbar-button.js +0 -47
- package/esm2015/report-builder/widgets-row-buttons.js +0 -133
- package/esm2015/report-builder/widgets-toolbar.js +0 -79
- package/esm2015/reports/chart-widget.js +0 -41
- package/esm2015/reports/formula-widget.js +0 -41
- package/esm2015/reports/image-container-widget.js +0 -43
- package/esm2015/reports/image-widget.js +0 -41
- package/esm2015/reports/index.js +0 -5
- package/esm2015/reports/map-widget.js +0 -41
- package/esm2015/reports/page-break-widget.js +0 -41
- package/esm2015/reports/report.js +0 -41
- package/esm2015/reports/reports-module.js +0 -79
- package/esm2015/reports/reports.externs.js +0 -6
- package/esm2015/reports/table-widget.js +0 -41
- package/esm2015/reports/text-widget.js +0 -41
- package/esm2015/reports/widget.js +0 -120
- package/esm2015/time/index.js +0 -5
- package/esm2015/time/time-module.js +0 -44
- package/esm2015/time/time.externs.js +0 -6
- package/esm2015/time/time.js +0 -46
- package/fesm2015/barcode.js +0 -129
- package/fesm2015/barcode.js.map +0 -1
- package/fesm2015/calendar.js +0 -128
- package/fesm2015/calendar.js.map +0 -1
- package/fesm2015/checkbox-group.js +0 -124
- package/fesm2015/checkbox-group.js.map +0 -1
- package/fesm2015/form-builder.js +0 -2987
- package/fesm2015/form-builder.js.map +0 -1
- package/fesm2015/forms.js +0 -923
- package/fesm2015/forms.js.map +0 -1
- package/fesm2015/image.js +0 -113
- package/fesm2015/image.js.map +0 -1
- package/fesm2015/material.js.map +0 -1
- package/fesm2015/monaco-editor.js.map +0 -1
- package/fesm2015/node-icon.js +0 -104
- package/fesm2015/node-icon.js.map +0 -1
- package/fesm2015/page-slider.js +0 -119
- package/fesm2015/page-slider.js.map +0 -1
- package/fesm2015/report-builder.js +0 -5332
- package/fesm2015/report-builder.js.map +0 -1
- package/fesm2015/reports.js +0 -560
- package/fesm2015/reports.js.map +0 -1
- package/fesm2015/time.js +0 -116
- package/fesm2015/time.js.map +0 -1
- package/form-builder/index.metadata.json +0 -1
- package/forms/index.metadata.json +0 -1
- package/image/index.metadata.json +0 -1
- package/monaco-editor/index.metadata.json +0 -1
- package/node-icon/index.metadata.json +0 -1
- package/page-slider/index.metadata.json +0 -1
- package/report-builder/_report-builder.scss +0 -0
- package/report-builder/column.d.ts +0 -63
- package/report-builder/condition-editor.d.ts +0 -67
- package/report-builder/content.d.ts +0 -142
- package/report-builder/custom-widget-dialog.d.ts +0 -31
- package/report-builder/custom-widget-toolbar-button.d.ts +0 -45
- package/report-builder/custom-widgets-toolbar.d.ts +0 -71
- package/report-builder/forms-analyzer-dialog.d.ts +0 -91
- package/report-builder/forms-analyzer.d.ts +0 -102
- package/report-builder/image-group.d.ts +0 -69
- package/report-builder/index.d.ts +0 -24
- package/report-builder/index.metadata.json +0 -1
- package/report-builder/models.d.ts +0 -43
- package/report-builder/operations.d.ts +0 -45
- package/report-builder/package.json +0 -9
- package/report-builder/properties.d.ts +0 -365
- package/report-builder/public-api.d.ts +0 -26
- package/report-builder/quill-editor.d.ts +0 -113
- package/report-builder/renderer-widget.d.ts +0 -80
- package/report-builder/report-builder-drag-data.d.ts +0 -32
- package/report-builder/report-builder-module.d.ts +0 -23
- package/report-builder/report-builder-service.d.ts +0 -722
- package/report-builder/report-builder.d.ts +0 -36
- package/report-builder/theme-color-dialog.d.ts +0 -42
- package/report-builder/theme-color.d.ts +0 -108
- package/report-builder/tokens.d.ts +0 -24
- package/report-builder/toolbar-dialog.d.ts +0 -30
- package/report-builder/toolbar.d.ts +0 -48
- package/report-builder/utils.d.ts +0 -29
- package/report-builder/widget-toolbar-button.d.ts +0 -28
- package/report-builder/widgets-row-buttons.d.ts +0 -57
- package/report-builder/widgets-toolbar.d.ts +0 -44
- package/reports/index.metadata.json +0 -1
- package/time/index.metadata.json +0 -1
|
@@ -0,0 +1,1011 @@
|
|
|
1
|
+
import * as i1$1 from '@ajf/core/forms';
|
|
2
|
+
import { AjfBaseFieldComponent, AJF_WARNING_ALERT_SERVICE, AjfInputFieldComponent as AjfInputFieldComponent$1, AjfFieldWithChoicesComponent, AJF_SEARCH_ALERT_THRESHOLD, AjfTableFieldComponent as AjfTableFieldComponent$1, AjfVideoUrlFieldComponent as AjfVideoUrlFieldComponent$1, AjfFieldService as AjfFieldService$1, AjfFieldType, AjfReadOnlyFieldComponent, AjfReadOnlyTableFieldComponent, AjfReadOnlySelectFieldComponent, AjfFileFieldComponent, AjfReadOnlyFileFieldComponent, AjfImageFieldComponent, AjfReadOnlyImageFieldComponent, AjfReadOnlyVideoUrlFieldComponent, AjfFormField as AjfFormField$1, AjfFormRenderer as AjfFormRenderer$1, AjfFormsModule as AjfFormsModule$1 } from '@ajf/core/forms';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Injectable, Inject, ViewChild, Optional, Input, NgModule } from '@angular/core';
|
|
5
|
+
import * as i2$1 from '@angular/material/slide-toggle';
|
|
6
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
7
|
+
import * as i3 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import * as i4 from '@angular/forms';
|
|
10
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
11
|
+
import { map } from 'rxjs/operators';
|
|
12
|
+
import * as i1 from '@angular/material/button';
|
|
13
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
+
import * as i2 from '@angular/material/dialog';
|
|
15
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
16
|
+
import * as i2$2 from '@ajf/material/calendar';
|
|
17
|
+
import { AjfCalendarModule } from '@ajf/material/calendar';
|
|
18
|
+
import * as i4$1 from '@angular/material/input';
|
|
19
|
+
import { MatInput, MatInputModule } from '@angular/material/input';
|
|
20
|
+
import * as i2$3 from '@angular/material/form-field';
|
|
21
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
22
|
+
import * as i2$4 from '@ngneat/transloco';
|
|
23
|
+
import * as i2$5 from '@ajf/material/barcode';
|
|
24
|
+
import { AjfBarcodeModule } from '@ajf/material/barcode';
|
|
25
|
+
import * as i2$6 from '@angular/material/select';
|
|
26
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
27
|
+
import * as i3$1 from '@angular/material/core';
|
|
28
|
+
import * as i4$2 from '@ajf/material/checkbox-group';
|
|
29
|
+
import { AjfCheckboxGroupModule } from '@ajf/material/checkbox-group';
|
|
30
|
+
import * as i7 from '@ajf/core/checkbox-group';
|
|
31
|
+
import { AjfRange } from '@ajf/core/range';
|
|
32
|
+
import * as i2$7 from '@angular/material/slider';
|
|
33
|
+
import { MatSliderModule } from '@angular/material/slider';
|
|
34
|
+
import * as i4$3 from '@angular/material/radio';
|
|
35
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
36
|
+
import * as i4$4 from '@ajf/core/common';
|
|
37
|
+
import { AjfCommonModule } from '@ajf/core/common';
|
|
38
|
+
import * as i5 from '@angular/cdk/text-field';
|
|
39
|
+
import { TextFieldModule } from '@angular/cdk/text-field';
|
|
40
|
+
import * as i2$8 from '@ajf/material/time';
|
|
41
|
+
import { AjfTimeModule } from '@ajf/material/time';
|
|
42
|
+
import * as i2$9 from '@angular/platform-browser';
|
|
43
|
+
import * as i3$2 from '@angular/common/http';
|
|
44
|
+
import * as i2$a from '@angular/material/toolbar';
|
|
45
|
+
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
46
|
+
import * as i4$5 from '@ajf/material/page-slider';
|
|
47
|
+
import { AjfPageSliderModule } from '@ajf/material/page-slider';
|
|
48
|
+
import * as i5$1 from '@ajf/core/page-slider';
|
|
49
|
+
import * as i6 from '@angular/material/card';
|
|
50
|
+
import { MatCardModule } from '@angular/material/card';
|
|
51
|
+
import * as i7$1 from '@angular/material/icon';
|
|
52
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
53
|
+
import * as i11 from '@angular/material/tooltip';
|
|
54
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
55
|
+
import { AjfTranslocoModule } from '@ajf/core/transloco';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @license
|
|
59
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
60
|
+
*
|
|
61
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
62
|
+
*
|
|
63
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
64
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
65
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
66
|
+
* or (at your option) any later version.
|
|
67
|
+
*
|
|
68
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
69
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
70
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
71
|
+
* General Public License for more details.
|
|
72
|
+
*
|
|
73
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
74
|
+
* along with Advanced JSON forms (ajf).
|
|
75
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
class AjfFieldWarningDialog {
|
|
79
|
+
}
|
|
80
|
+
AjfFieldWarningDialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldWarningDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
AjfFieldWarningDialog.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfFieldWarningDialog, selector: "ng-component", ngImport: i0, template: "<mat-dialog-content><div [innerHTML]=\"message\"></div></mat-dialog-content>\n<mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\">Ok</button>\n <button mat-button [mat-dialog-close]=\"false\">Cancel</button>\n</mat-dialog-actions>\n", components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldWarningDialog, decorators: [{
|
|
83
|
+
type: Component,
|
|
84
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-dialog-content><div [innerHTML]=\"message\"></div></mat-dialog-content>\n<mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\">Ok</button>\n <button mat-button [mat-dialog-close]=\"false\">Cancel</button>\n</mat-dialog-actions>\n" }]
|
|
85
|
+
}] });
|
|
86
|
+
|
|
87
|
+
class AjfWarningAlertService {
|
|
88
|
+
constructor(_dialog) {
|
|
89
|
+
this._dialog = _dialog;
|
|
90
|
+
}
|
|
91
|
+
showWarningAlertPrompt(warnings) {
|
|
92
|
+
const dialog = this._dialog.open(AjfFieldWarningDialog);
|
|
93
|
+
dialog.componentInstance.message = warnings.join('<br>');
|
|
94
|
+
return dialog.afterClosed().pipe(map((result) => ({ result })));
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
AjfWarningAlertService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfWarningAlertService, deps: [{ token: i2.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
98
|
+
AjfWarningAlertService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfWarningAlertService });
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfWarningAlertService, decorators: [{
|
|
100
|
+
type: Injectable
|
|
101
|
+
}], ctorParameters: function () { return [{ type: i2.MatDialog }]; } });
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @license
|
|
105
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
106
|
+
*
|
|
107
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
108
|
+
*
|
|
109
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
110
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
111
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
112
|
+
* or (at your option) any later version.
|
|
113
|
+
*
|
|
114
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
115
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
116
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
117
|
+
* General Public License for more details.
|
|
118
|
+
*
|
|
119
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
120
|
+
* along with Advanced JSON forms (ajf).
|
|
121
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
class AjfBooleanFieldComponent extends AjfBaseFieldComponent {
|
|
125
|
+
constructor(cdr, service, was) {
|
|
126
|
+
super(cdr, service, was);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
AjfBooleanFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBooleanFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
130
|
+
AjfBooleanFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfBooleanFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<mat-slide-toggle *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></mat-slide-toggle>\n", styles: ["\n"], components: [{ type: i2$1.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex", "name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "checked"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBooleanFieldComponent, decorators: [{
|
|
132
|
+
type: Component,
|
|
133
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-slide-toggle *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></mat-slide-toggle>\n", styles: ["\n"] }]
|
|
134
|
+
}], ctorParameters: function () {
|
|
135
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
136
|
+
type: Inject,
|
|
137
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
138
|
+
}] }];
|
|
139
|
+
} });
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @license
|
|
143
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
144
|
+
*
|
|
145
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
146
|
+
*
|
|
147
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
148
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
149
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
150
|
+
* or (at your option) any later version.
|
|
151
|
+
*
|
|
152
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
153
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
154
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
155
|
+
* General Public License for more details.
|
|
156
|
+
*
|
|
157
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
158
|
+
* along with Advanced JSON forms (ajf).
|
|
159
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
class AjfDateFieldComponent extends AjfBaseFieldComponent {
|
|
163
|
+
constructor(cdr, service, was) {
|
|
164
|
+
super(cdr, service, was);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
AjfDateFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
168
|
+
AjfDateFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfDateFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-calendar\n *ngIf=\"control|async as ctrl\"\n selectionMode=\"day\"\n [dateOnlyForDay]=\"true\"\n [minDate]=\"instance.node.minDate|ajfDateValue\"\n [maxDate]=\"instance.node.maxDate|ajfDateValue\"\n [formControl]=\"ctrl!\"\n></ajf-calendar>\n", styles: ["\n"], components: [{ type: i2$2.AjfCalendarComponent, selector: "ajf-calendar", outputs: ["change"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "ajfDateValue": i1$1.AjfDateValuePipe, "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateFieldComponent, decorators: [{
|
|
170
|
+
type: Component,
|
|
171
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-calendar\n *ngIf=\"control|async as ctrl\"\n selectionMode=\"day\"\n [dateOnlyForDay]=\"true\"\n [minDate]=\"instance.node.minDate|ajfDateValue\"\n [maxDate]=\"instance.node.maxDate|ajfDateValue\"\n [formControl]=\"ctrl!\"\n></ajf-calendar>\n", styles: ["\n"] }]
|
|
172
|
+
}], ctorParameters: function () {
|
|
173
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
174
|
+
type: Inject,
|
|
175
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
176
|
+
}] }];
|
|
177
|
+
} });
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @license
|
|
181
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
182
|
+
*
|
|
183
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
184
|
+
*
|
|
185
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
186
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
187
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
188
|
+
* or (at your option) any later version.
|
|
189
|
+
*
|
|
190
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
191
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
192
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
193
|
+
* General Public License for more details.
|
|
194
|
+
*
|
|
195
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
196
|
+
* along with Advanced JSON forms (ajf).
|
|
197
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
class AjfDateInputFieldComponent extends AjfBaseFieldComponent {
|
|
201
|
+
constructor(cdr, service, was, _dvs) {
|
|
202
|
+
super(cdr, service, was);
|
|
203
|
+
this._dvs = _dvs;
|
|
204
|
+
}
|
|
205
|
+
onChange() {
|
|
206
|
+
if (this.input == null) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const val = this.input.value || '';
|
|
210
|
+
if (val.length > 0) {
|
|
211
|
+
if ((this._minDateStr != null && val < this._minDateStr) ||
|
|
212
|
+
(this._maxDateStr != null && val > this._maxDateStr)) {
|
|
213
|
+
this.input.value = '';
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
_onInstanceChange() {
|
|
218
|
+
this._minDateStr = this._dvs.transform(this.instance.node.minDate);
|
|
219
|
+
this._maxDateStr = this._dvs.transform(this.instance.node.maxDate);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
AjfDateInputFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateInputFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: i1$1.AjfDateValueStringPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
223
|
+
AjfDateInputFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfDateInputFieldComponent, selector: "ng-component", viewQueries: [{ propertyName: "input", first: true, predicate: MatInput, descendants: true }], usesInheritance: true, ngImport: i0, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput type=\"date\"\n [attr.aria-label]=\"instance|ajfNodeCompleteName\"\n [min]=\"instance.node.minDate|ajfDateValueString\"\n [max]=\"instance.node.maxDate|ajfDateValueString\"\n (change)=\"onChange()\"\n [formControl]=\"ctrl!\">\n</mat-form-field>\n", styles: ["\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe, "ajfNodeCompleteName": i1$1.AjfNodeCompleteNamePipe, "ajfDateValueString": i1$1.AjfDateValueStringPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfDateInputFieldComponent, decorators: [{
|
|
225
|
+
type: Component,
|
|
226
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput type=\"date\"\n [attr.aria-label]=\"instance|ajfNodeCompleteName\"\n [min]=\"instance.node.minDate|ajfDateValueString\"\n [max]=\"instance.node.maxDate|ajfDateValueString\"\n (change)=\"onChange()\"\n [formControl]=\"ctrl!\">\n</mat-form-field>\n", styles: ["\n"] }]
|
|
227
|
+
}], ctorParameters: function () {
|
|
228
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
229
|
+
type: Inject,
|
|
230
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
231
|
+
}] }, { type: i1$1.AjfDateValueStringPipe }];
|
|
232
|
+
}, propDecorators: { input: [{
|
|
233
|
+
type: ViewChild,
|
|
234
|
+
args: [MatInput, { static: false }]
|
|
235
|
+
}] } });
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @license
|
|
239
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
240
|
+
*
|
|
241
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
242
|
+
*
|
|
243
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
244
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
245
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
246
|
+
* or (at your option) any later version.
|
|
247
|
+
*
|
|
248
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
249
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
250
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
251
|
+
* General Public License for more details.
|
|
252
|
+
*
|
|
253
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
254
|
+
* along with Advanced JSON forms (ajf).
|
|
255
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
256
|
+
*
|
|
257
|
+
*/
|
|
258
|
+
class AjfEmptyFieldComponent extends AjfBaseFieldComponent {
|
|
259
|
+
constructor(cdr, service, was) {
|
|
260
|
+
super(cdr, service, was);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
AjfEmptyFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfEmptyFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
264
|
+
AjfEmptyFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfEmptyFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<h1 [innerHTML]=\"instance.node.label | transloco\"></h1>\n<div [innerHTML]=\"instance.node.HTML | transloco\"></div>\n", styles: ["\n"], pipes: { "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfEmptyFieldComponent, decorators: [{
|
|
266
|
+
type: Component,
|
|
267
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<h1 [innerHTML]=\"instance.node.label | transloco\"></h1>\n<div [innerHTML]=\"instance.node.HTML | transloco\"></div>\n", styles: ["\n"] }]
|
|
268
|
+
}], ctorParameters: function () {
|
|
269
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
270
|
+
type: Inject,
|
|
271
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
272
|
+
}] }];
|
|
273
|
+
} });
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @license
|
|
277
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
278
|
+
*
|
|
279
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
280
|
+
*
|
|
281
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
282
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
283
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
284
|
+
* or (at your option) any later version.
|
|
285
|
+
*
|
|
286
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
287
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
288
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
289
|
+
* General Public License for more details.
|
|
290
|
+
*
|
|
291
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
292
|
+
* along with Advanced JSON forms (ajf).
|
|
293
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
294
|
+
*
|
|
295
|
+
*/
|
|
296
|
+
class AjfBarcodeFieldComponent extends AjfBaseFieldComponent {
|
|
297
|
+
constructor(cdr, service, was) {
|
|
298
|
+
super(cdr, service, was);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
AjfBarcodeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBarcodeFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
302
|
+
AjfBarcodeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfBarcodeFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-barcode *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-barcode>\n", styles: ["\n"], components: [{ type: i2$5.AjfBarcodeComponent, selector: "ajf-barcode" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfBarcodeFieldComponent, decorators: [{
|
|
304
|
+
type: Component,
|
|
305
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-barcode *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-barcode>\n", styles: ["\n"] }]
|
|
306
|
+
}], ctorParameters: function () {
|
|
307
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
308
|
+
type: Inject,
|
|
309
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
310
|
+
}] }];
|
|
311
|
+
} });
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @license
|
|
315
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
316
|
+
*
|
|
317
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
318
|
+
*
|
|
319
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
320
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
321
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
322
|
+
* or (at your option) any later version.
|
|
323
|
+
*
|
|
324
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
325
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
326
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
327
|
+
* General Public License for more details.
|
|
328
|
+
*
|
|
329
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
330
|
+
* along with Advanced JSON forms (ajf).
|
|
331
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
332
|
+
*
|
|
333
|
+
*/
|
|
334
|
+
class AjfInputFieldComponent extends AjfInputFieldComponent$1 {
|
|
335
|
+
constructor(cdr, service, was) {
|
|
336
|
+
super(cdr, service, was);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
AjfInputFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfInputFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
340
|
+
AjfInputFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfInputFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput *ngIf=\"type === 'text'\" type=\"text\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n <input matInput *ngIf=\"type === 'number'\" type=\"number\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n</mat-form-field>\n", styles: ["\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }], pipes: { "async": i3.AsyncPipe, "ajfIsReadonlyInputField": i1$1.AjfIsReadonlyInputFieldPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfInputFieldComponent, decorators: [{
|
|
342
|
+
type: Component,
|
|
343
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <input matInput *ngIf=\"type === 'text'\" type=\"text\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n <input matInput *ngIf=\"type === 'number'\" type=\"number\" [formControl]=\"ctrl!\"\n [readonly]=\"instance|ajfIsReadonlyInputField\" [attr.aria-labelledby]=\"instance.node.name\">\n</mat-form-field>\n", styles: ["\n"] }]
|
|
344
|
+
}], ctorParameters: function () {
|
|
345
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
346
|
+
type: Inject,
|
|
347
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
348
|
+
}] }];
|
|
349
|
+
} });
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @license
|
|
353
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
354
|
+
*
|
|
355
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
356
|
+
*
|
|
357
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
358
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
359
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
360
|
+
* or (at your option) any later version.
|
|
361
|
+
*
|
|
362
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
363
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
364
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
365
|
+
* General Public License for more details.
|
|
366
|
+
*
|
|
367
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
368
|
+
* along with Advanced JSON forms (ajf).
|
|
369
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
370
|
+
*
|
|
371
|
+
*/
|
|
372
|
+
class AjfMultipleChoiceFieldComponent extends AjfFieldWithChoicesComponent {
|
|
373
|
+
constructor(cdr, service, was, searchThreshold) {
|
|
374
|
+
super(cdr, service, was, searchThreshold);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
AjfMultipleChoiceFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMultipleChoiceFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: AJF_SEARCH_ALERT_THRESHOLD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
378
|
+
AjfMultipleChoiceFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfMultipleChoiceFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold); else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\" [multiple]=\"true\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <ajf-checkbox-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [formControl]=\"ctrl!\">\n <ajf-checkbox-group-item *ngFor=\"let choice of instance.filteredChoices\"\n [value]=\"choice.value\">\n {{ choice.label | transloco }}\n </ajf-checkbox-group-item>\n </ajf-checkbox-group>\n</ng-template>\n", styles: ["\n"], components: [{ type: i2$6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i4$2.CheckboxGroupItem, selector: "ajf-checkbox-group-item" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.AjfCheckboxGroup, selector: "ajf-checkbox-group,[ajf-checkbox-group]", inputs: ["value", "name", "disabled"], outputs: ["change"] }], pipes: { "ajfExpandFieldWithChoices": i1$1.AjfExpandFieldWithChoicesPipe, "async": i3.AsyncPipe, "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfMultipleChoiceFieldComponent, decorators: [{
|
|
380
|
+
type: Component,
|
|
381
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold); else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\" [multiple]=\"true\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <ajf-checkbox-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [formControl]=\"ctrl!\">\n <ajf-checkbox-group-item *ngFor=\"let choice of instance.filteredChoices\"\n [value]=\"choice.value\">\n {{ choice.label | transloco }}\n </ajf-checkbox-group-item>\n </ajf-checkbox-group>\n</ng-template>\n", styles: ["\n"] }]
|
|
382
|
+
}], ctorParameters: function () {
|
|
383
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
384
|
+
type: Inject,
|
|
385
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
386
|
+
}] }, { type: undefined, decorators: [{
|
|
387
|
+
type: Optional
|
|
388
|
+
}, {
|
|
389
|
+
type: Inject,
|
|
390
|
+
args: [AJF_SEARCH_ALERT_THRESHOLD]
|
|
391
|
+
}] }];
|
|
392
|
+
} });
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* @license
|
|
396
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
397
|
+
*
|
|
398
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
399
|
+
*
|
|
400
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
401
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
402
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
403
|
+
* or (at your option) any later version.
|
|
404
|
+
*
|
|
405
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
406
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
407
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
408
|
+
* General Public License for more details.
|
|
409
|
+
*
|
|
410
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
411
|
+
* along with Advanced JSON forms (ajf).
|
|
412
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
413
|
+
*
|
|
414
|
+
*/
|
|
415
|
+
class AjfRangeFieldComponent extends AjfRange {
|
|
416
|
+
constructor(cdr, service, was) {
|
|
417
|
+
super(cdr, service, was);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
AjfRangeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfRangeFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
421
|
+
AjfRangeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfRangeFieldComponent, selector: "ajf-range", usesInheritance: true, ngImport: i0, template: "<mat-slider\n *ngIf=\"control|async as ctrl\"\n thumbLabel\n [formControl]=\"ctrl!\"\n [tickInterval]=\"step\"\n [step]=\"step\"\n [min]=\"start\"\n [max]=\"end\"\n [attr.aria-label]=\"name\"\n [attr.name]=\"name\"\n></mat-slider>\n", styles: ["\n"], components: [{ type: i2$7.MatSlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "displayWith", "valueText", "vertical"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfRangeFieldComponent, decorators: [{
|
|
423
|
+
type: Component,
|
|
424
|
+
args: [{ selector: 'ajf-range', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-slider\n *ngIf=\"control|async as ctrl\"\n thumbLabel\n [formControl]=\"ctrl!\"\n [tickInterval]=\"step\"\n [step]=\"step\"\n [min]=\"start\"\n [max]=\"end\"\n [attr.aria-label]=\"name\"\n [attr.name]=\"name\"\n></mat-slider>\n", styles: ["\n"] }]
|
|
425
|
+
}], ctorParameters: function () {
|
|
426
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
427
|
+
type: Inject,
|
|
428
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
429
|
+
}] }];
|
|
430
|
+
} });
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @license
|
|
434
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
435
|
+
*
|
|
436
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
437
|
+
*
|
|
438
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
439
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
440
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
441
|
+
* or (at your option) any later version.
|
|
442
|
+
*
|
|
443
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
444
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
445
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
446
|
+
* General Public License for more details.
|
|
447
|
+
*
|
|
448
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
449
|
+
* along with Advanced JSON forms (ajf).
|
|
450
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
451
|
+
*
|
|
452
|
+
*/
|
|
453
|
+
class AjfSingleChoiceFieldComponent extends AjfFieldWithChoicesComponent {
|
|
454
|
+
constructor(cdr, service, was, searchThreshold) {
|
|
455
|
+
super(cdr, service, was, searchThreshold);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
AjfSingleChoiceFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfSingleChoiceFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: AJF_SEARCH_ALERT_THRESHOLD, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
459
|
+
AjfSingleChoiceFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfSingleChoiceFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold) ; else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <mat-radio-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [attr.aria-labelledby]=\"instance.node.name\"\n [formControl]=\"ctrl!\">\n <mat-radio-button [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-radio-button>\n </mat-radio-group>\n</ng-template>\n", styles: ["\n"], components: [{ type: i2$6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i3$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i4$3.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4$3.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }], pipes: { "ajfExpandFieldWithChoices": i1$1.AjfExpandFieldWithChoicesPipe, "async": i3.AsyncPipe, "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfSingleChoiceFieldComponent, decorators: [{
|
|
461
|
+
type: Component,
|
|
462
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"!(instance|ajfExpandFieldWithChoices:searchThreshold) ; else expanded\">\n <mat-select *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\">\n <mat-option [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-option>\n </mat-select>\n</ng-container>\n<ng-template #expanded>\n <mat-radio-group *ngIf=\"control|async as ctrl\" class=\"ajf-choices-container\"\n [attr.aria-labelledby]=\"instance.node.name\"\n [formControl]=\"ctrl!\">\n <mat-radio-button [value]=\"choice.value\"\n *ngFor=\"let choice of instance.filteredChoices\">\n {{ choice.label | transloco }}\n </mat-radio-button>\n </mat-radio-group>\n</ng-template>\n", styles: ["\n"] }]
|
|
463
|
+
}], ctorParameters: function () {
|
|
464
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
465
|
+
type: Inject,
|
|
466
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
467
|
+
}] }, { type: undefined, decorators: [{
|
|
468
|
+
type: Optional
|
|
469
|
+
}, {
|
|
470
|
+
type: Inject,
|
|
471
|
+
args: [AJF_SEARCH_ALERT_THRESHOLD]
|
|
472
|
+
}] }];
|
|
473
|
+
} });
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @license
|
|
477
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
478
|
+
*
|
|
479
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
480
|
+
*
|
|
481
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
482
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
483
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
484
|
+
* or (at your option) any later version.
|
|
485
|
+
*
|
|
486
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
487
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
488
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
489
|
+
* General Public License for more details.
|
|
490
|
+
*
|
|
491
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
492
|
+
* along with Advanced JSON forms (ajf).
|
|
493
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
494
|
+
*
|
|
495
|
+
*/
|
|
496
|
+
class AjfTableFieldComponent extends AjfTableFieldComponent$1 {
|
|
497
|
+
constructor(cdr, service, was) {
|
|
498
|
+
super(cdr, service, was);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
AjfTableFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTableFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
502
|
+
AjfTableFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfTableFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<table class=\"ajf-table-field\">\n <ng-container *ngIf=\"instance.node as node\">\n <ng-container *ngFor=\"let columns of instance.controls; let row = index\">\n <tr [ngClass]=\"row | ajfTableRowClass\">\n <td>\n <ng-container *ngIf=\"columns.length > 0 && columns[0] != null\">\n {{ columns[0] | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n </td>\n <ng-container *ngIf=\"columns.length > 1\">\n <td *ngFor=\"let c of columns[1]; let column = index\">\n <ng-container *ngIf=\"row == 0; else controlCell\">\n {{ c | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n <ng-template #controlCell>\n <ng-container *ngIf=\"c|ajfGetTableCellControl as contr\">\n <ng-container *ngIf=\"contr != null\">\n <ng-container\n *ngIf=\"contr!.show && (node.rows[row-1][column]|ajfIsCellEditable); else plainTextCell\"\n >\n <ng-container\n *ngIf=\"contr.type === 'number';else genericInput\"\n >\n <input\n (focusout)=\"contr!.show = false\"\n type=\"number\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-container>\n <ng-template #genericInput>\n <input\n (focusout)=\"contr!.show = false\"\n [type]=\"contr.type\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-template>\n </ng-container>\n\n <ng-template #plainTextCell>\n <span class=\"ajf-table-cell\" (click)=\"goToCell(row, column)\"\n >{{ contr.control!.value | ajfTranslateIfString |\n ajfFormatIfNumber: '.0-2' }}</span\n >\n </ng-template>\n </ng-container>\n </ng-container>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n</table>\n", styles: ["table.ajf-table-field{border-collapse:collapse;border-spacing:0;width:100%}table.ajf-table-field tr td{position:relative;min-width:1em}table.ajf-table-field tr td span,table.ajf-table-field tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table.ajf-table-field tr td:last-child span,table.ajf-table-field tr td:last-child input{border-right-color:#ccc}table.ajf-table-field tr:last-of-type td span,table.ajf-table-field tr:last-of-type td input{border-bottom-color:#ccc}\n"], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "ajfTableRowClass": i1$1.AjfTableRowClass, "ajfFormatIfNumber": i4$4.FormatIfNumber, "ajfTranslateIfString": i4$4.TranslateIfString, "ajfGetTableCellControl": i1$1.AjfGetTableCellControlPipe, "ajfIsCellEditable": i1$1.AjfIsCellEditablePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTableFieldComponent, decorators: [{
|
|
504
|
+
type: Component,
|
|
505
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<table class=\"ajf-table-field\">\n <ng-container *ngIf=\"instance.node as node\">\n <ng-container *ngFor=\"let columns of instance.controls; let row = index\">\n <tr [ngClass]=\"row | ajfTableRowClass\">\n <td>\n <ng-container *ngIf=\"columns.length > 0 && columns[0] != null\">\n {{ columns[0] | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n </td>\n <ng-container *ngIf=\"columns.length > 1\">\n <td *ngFor=\"let c of columns[1]; let column = index\">\n <ng-container *ngIf=\"row == 0; else controlCell\">\n {{ c | ajfTranslateIfString | ajfFormatIfNumber: '.0-2' }}\n </ng-container>\n <ng-template #controlCell>\n <ng-container *ngIf=\"c|ajfGetTableCellControl as contr\">\n <ng-container *ngIf=\"contr != null\">\n <ng-container\n *ngIf=\"contr!.show && (node.rows[row-1][column]|ajfIsCellEditable); else plainTextCell\"\n >\n <ng-container\n *ngIf=\"contr.type === 'number';else genericInput\"\n >\n <input\n (focusout)=\"contr!.show = false\"\n type=\"number\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-container>\n <ng-template #genericInput>\n <input\n (focusout)=\"contr!.show = false\"\n [type]=\"contr.type\"\n [formControl]=\"contr.control\"\n (keydown.tab)=\"goToNextCell($event, row, column)\"\n autofocus\n />\n </ng-template>\n </ng-container>\n\n <ng-template #plainTextCell>\n <span class=\"ajf-table-cell\" (click)=\"goToCell(row, column)\"\n >{{ contr.control!.value | ajfTranslateIfString |\n ajfFormatIfNumber: '.0-2' }}</span\n >\n </ng-template>\n </ng-container>\n </ng-container>\n </ng-template>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n</table>\n", styles: ["table.ajf-table-field{border-collapse:collapse;border-spacing:0;width:100%}table.ajf-table-field tr td{position:relative;min-width:1em}table.ajf-table-field tr td span,table.ajf-table-field tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table.ajf-table-field tr td:last-child span,table.ajf-table-field tr td:last-child input{border-right-color:#ccc}table.ajf-table-field tr:last-of-type td span,table.ajf-table-field tr:last-of-type td input{border-bottom-color:#ccc}\n"] }]
|
|
506
|
+
}], ctorParameters: function () {
|
|
507
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
508
|
+
type: Inject,
|
|
509
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
510
|
+
}] }];
|
|
511
|
+
} });
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @license
|
|
515
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
516
|
+
*
|
|
517
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
518
|
+
*
|
|
519
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
520
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
521
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
522
|
+
* or (at your option) any later version.
|
|
523
|
+
*
|
|
524
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
525
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
526
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
527
|
+
* General Public License for more details.
|
|
528
|
+
*
|
|
529
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
530
|
+
* along with Advanced JSON forms (ajf).
|
|
531
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
532
|
+
*
|
|
533
|
+
*/
|
|
534
|
+
class AjfTextFieldComponent extends AjfInputFieldComponent$1 {
|
|
535
|
+
constructor(cdr, service, was) {
|
|
536
|
+
super(cdr, service, was);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
AjfTextFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTextFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
540
|
+
AjfTextFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfTextFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <textarea matInput cdkTextareaAutosize [formControl]=\"ctrl!\"></textarea>\n</mat-form-field>\n", styles: ["\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i5.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTextFieldComponent, decorators: [{
|
|
542
|
+
type: Component,
|
|
543
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<mat-form-field *ngIf=\"control|async as ctrl\">\n <textarea matInput cdkTextareaAutosize [formControl]=\"ctrl!\"></textarea>\n</mat-form-field>\n", styles: ["\n"] }]
|
|
544
|
+
}], ctorParameters: function () {
|
|
545
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
546
|
+
type: Inject,
|
|
547
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
548
|
+
}] }];
|
|
549
|
+
} });
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* @license
|
|
553
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
554
|
+
*
|
|
555
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
556
|
+
*
|
|
557
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
558
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
559
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
560
|
+
* or (at your option) any later version.
|
|
561
|
+
*
|
|
562
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
563
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
564
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
565
|
+
* General Public License for more details.
|
|
566
|
+
*
|
|
567
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
568
|
+
* along with Advanced JSON forms (ajf).
|
|
569
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
570
|
+
*
|
|
571
|
+
*/
|
|
572
|
+
class AjfTimeFieldComponent extends AjfBaseFieldComponent {
|
|
573
|
+
constructor(cdr, service, was) {
|
|
574
|
+
super(cdr, service, was);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
AjfTimeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTimeFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
578
|
+
AjfTimeFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfTimeFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ajf-time *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-time>\n", styles: ["\n"], components: [{ type: i2$8.AjfTime, selector: "ajf-time" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfTimeFieldComponent, decorators: [{
|
|
580
|
+
type: Component,
|
|
581
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ajf-time *ngIf=\"control|async as ctrl\" [formControl]=\"ctrl!\"></ajf-time>\n", styles: ["\n"] }]
|
|
582
|
+
}], ctorParameters: function () {
|
|
583
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
584
|
+
type: Inject,
|
|
585
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
586
|
+
}] }];
|
|
587
|
+
} });
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* @license
|
|
591
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
592
|
+
*
|
|
593
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
594
|
+
*
|
|
595
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
596
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
597
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
598
|
+
* or (at your option) any later version.
|
|
599
|
+
*
|
|
600
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
601
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
602
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
603
|
+
* General Public License for more details.
|
|
604
|
+
*
|
|
605
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
606
|
+
* along with Advanced JSON forms (ajf).
|
|
607
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
608
|
+
*
|
|
609
|
+
*/
|
|
610
|
+
class AjfVideoUrlFieldComponent extends AjfVideoUrlFieldComponent$1 {
|
|
611
|
+
constructor(cdr, service, was, domSanitizer, httpClient) {
|
|
612
|
+
super(cdr, service, was, domSanitizer, httpClient);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
AjfVideoUrlFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfVideoUrlFieldComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.AjfFormRendererService }, { token: AJF_WARNING_ALERT_SERVICE }, { token: i2$9.DomSanitizer }, { token: i3$2.HttpClient }], target: i0.ɵɵFactoryTarget.Component });
|
|
616
|
+
AjfVideoUrlFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfVideoUrlFieldComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"control|async as ctrl\">\n <mat-form-field class=\"ajf-video-input\">\n <input matInput type=\"url\" [formControl]=\"ctrl!\">\n </mat-form-field>\n <div class=\"ajf-video-thumbnail\">\n <ng-container *ngIf=\"validUrl|async\">\n <a target=\"_blank\" [href]=\"ctrl.value\">\n <img *ngIf=\"videoThumbnail|async as thumb\" [src]=\"thumb\" class=\"\" alt=\"\">\n </a>\n </ng-container>\n </div>\n</ng-container>\n", styles: [".ajf-video-input{width:100%}.ajf-video-thumbnail{width:212px;height:120px;background-color:#eee;display:flex;align-items:center;justify-content:center}.ajf-video-thumbnail img{flex:1 1 auto}\n"], components: [{ type: i2$3.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfVideoUrlFieldComponent, decorators: [{
|
|
618
|
+
type: Component,
|
|
619
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"control|async as ctrl\">\n <mat-form-field class=\"ajf-video-input\">\n <input matInput type=\"url\" [formControl]=\"ctrl!\">\n </mat-form-field>\n <div class=\"ajf-video-thumbnail\">\n <ng-container *ngIf=\"validUrl|async\">\n <a target=\"_blank\" [href]=\"ctrl.value\">\n <img *ngIf=\"videoThumbnail|async as thumb\" [src]=\"thumb\" class=\"\" alt=\"\">\n </a>\n </ng-container>\n </div>\n</ng-container>\n", styles: [".ajf-video-input{width:100%}.ajf-video-thumbnail{width:212px;height:120px;background-color:#eee;display:flex;align-items:center;justify-content:center}.ajf-video-thumbnail img{flex:1 1 auto}\n"] }]
|
|
620
|
+
}], ctorParameters: function () {
|
|
621
|
+
return [{ type: i0.ChangeDetectorRef }, { type: i1$1.AjfFormRendererService }, { type: AjfWarningAlertService, decorators: [{
|
|
622
|
+
type: Inject,
|
|
623
|
+
args: [AJF_WARNING_ALERT_SERVICE]
|
|
624
|
+
}] }, { type: i2$9.DomSanitizer }, { type: i3$2.HttpClient }];
|
|
625
|
+
} });
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @license
|
|
629
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
630
|
+
*
|
|
631
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
632
|
+
*
|
|
633
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
634
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
635
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
636
|
+
* or (at your option) any later version.
|
|
637
|
+
*
|
|
638
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
639
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
640
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
641
|
+
* General Public License for more details.
|
|
642
|
+
*
|
|
643
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
644
|
+
* along with Advanced JSON forms (ajf).
|
|
645
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
646
|
+
*
|
|
647
|
+
*/
|
|
648
|
+
class AjfFieldService extends AjfFieldService$1 {
|
|
649
|
+
constructor() {
|
|
650
|
+
super();
|
|
651
|
+
(this.componentsMap[AjfFieldType.String] = {
|
|
652
|
+
component: AjfInputFieldComponent,
|
|
653
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
654
|
+
}),
|
|
655
|
+
(this.componentsMap[AjfFieldType.Text] = {
|
|
656
|
+
component: AjfTextFieldComponent,
|
|
657
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
658
|
+
}),
|
|
659
|
+
(this.componentsMap[AjfFieldType.Number] = {
|
|
660
|
+
component: AjfInputFieldComponent,
|
|
661
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
662
|
+
inputs: { type: 'number' },
|
|
663
|
+
}),
|
|
664
|
+
(this.componentsMap[AjfFieldType.Boolean] = {
|
|
665
|
+
component: AjfBooleanFieldComponent,
|
|
666
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
667
|
+
}),
|
|
668
|
+
(this.componentsMap[AjfFieldType.Formula] = {
|
|
669
|
+
component: AjfInputFieldComponent,
|
|
670
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
671
|
+
inputs: { readonly: true },
|
|
672
|
+
}),
|
|
673
|
+
(this.componentsMap[AjfFieldType.Date] = {
|
|
674
|
+
component: AjfDateFieldComponent,
|
|
675
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
676
|
+
}),
|
|
677
|
+
(this.componentsMap[AjfFieldType.DateInput] = {
|
|
678
|
+
component: AjfDateInputFieldComponent,
|
|
679
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
680
|
+
}),
|
|
681
|
+
(this.componentsMap[AjfFieldType.Table] = {
|
|
682
|
+
component: AjfTableFieldComponent,
|
|
683
|
+
readOnlyComponent: AjfReadOnlyTableFieldComponent,
|
|
684
|
+
}),
|
|
685
|
+
(this.componentsMap[AjfFieldType.Empty] = { component: AjfEmptyFieldComponent }),
|
|
686
|
+
(this.componentsMap[AjfFieldType.SingleChoice] = {
|
|
687
|
+
component: AjfSingleChoiceFieldComponent,
|
|
688
|
+
readOnlyComponent: AjfReadOnlySelectFieldComponent,
|
|
689
|
+
}),
|
|
690
|
+
(this.componentsMap[AjfFieldType.MultipleChoice] = {
|
|
691
|
+
component: AjfMultipleChoiceFieldComponent,
|
|
692
|
+
readOnlyComponent: AjfReadOnlySelectFieldComponent,
|
|
693
|
+
}),
|
|
694
|
+
(this.componentsMap[AjfFieldType.Time] = {
|
|
695
|
+
component: AjfTimeFieldComponent,
|
|
696
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
697
|
+
}),
|
|
698
|
+
(this.componentsMap[AjfFieldType.Barcode] = {
|
|
699
|
+
component: AjfBarcodeFieldComponent,
|
|
700
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
701
|
+
});
|
|
702
|
+
this.componentsMap[AjfFieldType.File] = {
|
|
703
|
+
component: AjfFileFieldComponent,
|
|
704
|
+
readOnlyComponent: AjfReadOnlyFileFieldComponent,
|
|
705
|
+
};
|
|
706
|
+
this.componentsMap[AjfFieldType.Image] = {
|
|
707
|
+
component: AjfImageFieldComponent,
|
|
708
|
+
readOnlyComponent: AjfReadOnlyImageFieldComponent,
|
|
709
|
+
};
|
|
710
|
+
this.componentsMap[AjfFieldType.VideoUrl] = {
|
|
711
|
+
component: AjfVideoUrlFieldComponent,
|
|
712
|
+
readOnlyComponent: AjfReadOnlyVideoUrlFieldComponent,
|
|
713
|
+
};
|
|
714
|
+
this.componentsMap[AjfFieldType.Range] = {
|
|
715
|
+
component: AjfRangeFieldComponent,
|
|
716
|
+
readOnlyComponent: AjfReadOnlyFieldComponent,
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
AjfFieldService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
721
|
+
AjfFieldService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, providedIn: 'root' });
|
|
722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFieldService, decorators: [{
|
|
723
|
+
type: Injectable,
|
|
724
|
+
args: [{ providedIn: 'root' }]
|
|
725
|
+
}], ctorParameters: function () { return []; } });
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* @license
|
|
729
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
730
|
+
*
|
|
731
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
732
|
+
*
|
|
733
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
734
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
735
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
736
|
+
* or (at your option) any later version.
|
|
737
|
+
*
|
|
738
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
739
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
740
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
741
|
+
* General Public License for more details.
|
|
742
|
+
*
|
|
743
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
744
|
+
* along with Advanced JSON forms (ajf).
|
|
745
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
746
|
+
*
|
|
747
|
+
*/
|
|
748
|
+
class AjfFormField extends AjfFormField$1 {
|
|
749
|
+
constructor(cdr, cfr, fieldService) {
|
|
750
|
+
super(cdr, cfr);
|
|
751
|
+
this.componentsMap = fieldService.componentsMap;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
AjfFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormField, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: AjfFieldService }], target: i0.ɵɵFactoryTarget.Component });
|
|
755
|
+
AjfFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfFormField, selector: "ajf-field,ajf-form-field", usesInheritance: true, ngImport: i0, template: "<div\n [ngClass]=\"'ajf-field-' + (instance|ajfNodeCompleteName)\"\n [class.ajf-validated]=\"instance.validationResults|ajfFieldIsValid\"\n>\n <ng-template ajf-field-host></ng-template>\n</div>\n<ng-container *ngIf=\"instance && instance.node && instance.node.attachments\">\n <a *ngFor=\"let attachment of instance.node.attachments\"\n [href]=\"attachment.value\" target=\"_blank\">{{attachment.label | transloco}}</a>\n</ng-container>\n<div *ngIf=\"!readonly && instance && instance.validationResults\" class=\"ajf-errors\">\n <ng-container *ngFor=\"let res of instance.validationResults\">\n <div class=\"error\" *ngIf=\"!res.result\">\n {{ res.error|transloco }} \n </div>\n </ng-container>\n</div>\n", styles: ["ajf-field .ajf-choices-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch}ajf-field .ajf-item-container{position:relative}ajf-field .ajf-errors{font-style:italic;padding:5px}ajf-field tr.ajf-row-odd{background-color:gray}table{border-collapse:collapse;border-spacing:0}table tr td{position:relative}table tr td span,table tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table tr td:last-child span,table tr td:last-child input{border-right-color:#ccc}table tr:last-of-type td span,table tr:last-of-type td input{border-bottom-color:#ccc}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}\n"], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.AjfFieldHost, selector: "[ajf-field-host]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "ajfNodeCompleteName": i1$1.AjfNodeCompleteNamePipe, "ajfFieldIsValid": i1$1.AjfFieldIsValidPipe, "transloco": i2$4.TranslocoPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormField, decorators: [{
|
|
757
|
+
type: Component,
|
|
758
|
+
args: [{ selector: 'ajf-field,ajf-form-field', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div\n [ngClass]=\"'ajf-field-' + (instance|ajfNodeCompleteName)\"\n [class.ajf-validated]=\"instance.validationResults|ajfFieldIsValid\"\n>\n <ng-template ajf-field-host></ng-template>\n</div>\n<ng-container *ngIf=\"instance && instance.node && instance.node.attachments\">\n <a *ngFor=\"let attachment of instance.node.attachments\"\n [href]=\"attachment.value\" target=\"_blank\">{{attachment.label | transloco}}</a>\n</ng-container>\n<div *ngIf=\"!readonly && instance && instance.validationResults\" class=\"ajf-errors\">\n <ng-container *ngFor=\"let res of instance.validationResults\">\n <div class=\"error\" *ngIf=\"!res.result\">\n {{ res.error|transloco }} \n </div>\n </ng-container>\n</div>\n", styles: ["ajf-field .ajf-choices-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch}ajf-field .ajf-item-container{position:relative}ajf-field .ajf-errors{font-style:italic;padding:5px}ajf-field tr.ajf-row-odd{background-color:gray}table{border-collapse:collapse;border-spacing:0}table tr td{position:relative}table tr td span,table tr td input{cursor:text;position:absolute;width:100%;box-sizing:border-box;outline:none;top:0;right:0;bottom:0;left:0;display:inline-block;border-top:solid 1px #ccc;border-right:solid 1px transparent;border-bottom:solid 1px transparent;border-left:solid 1px #ccc;font-family:inherit;font-size:inherit;line-height:inherit;text-align:center}table tr td:last-child span,table tr td:last-child input{border-right-color:#ccc}table tr:last-of-type td span,table tr:last-of-type td input{border-bottom-color:#ccc}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}\n"] }]
|
|
759
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: AjfFieldService }]; } });
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* @license
|
|
763
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
764
|
+
*
|
|
765
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
766
|
+
*
|
|
767
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
768
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
769
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
770
|
+
* or (at your option) any later version.
|
|
771
|
+
*
|
|
772
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
773
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
774
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
775
|
+
* General Public License for more details.
|
|
776
|
+
*
|
|
777
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
778
|
+
* along with Advanced JSON forms (ajf).
|
|
779
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
780
|
+
*
|
|
781
|
+
*/
|
|
782
|
+
class AjfFormRenderer extends AjfFormRenderer$1 {
|
|
783
|
+
constructor(rendererService, changeDetectorRef) {
|
|
784
|
+
super(rendererService, changeDetectorRef);
|
|
785
|
+
this.topBar = false;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
AjfFormRenderer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormRenderer, deps: [{ token: i1$1.AjfFormRendererService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
789
|
+
AjfFormRenderer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0-rc.3", type: AjfFormRenderer, selector: "ajf-form", inputs: { topBar: "topBar" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"formGroup|async as fg\">\n <form novalidate [formGroup]=\"fg!\">\n <div class=\"ajf-form-container\">\n <mat-toolbar *ngIf=\"!hideTopToolbar && topBar\" class=\"ajf-btn-strip\">\n <ng-template\n ngFor\n let-slideInstance\n [ngForOf]=\"slides|async\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <button\n mat-button\n class=\"ajf-topbar-button\"\n *ngIf=\"slideInstance.node != null && slideInstance.node.label != null && slideInstance.node.label.length > 0\"\n (click)=\"scrollToSlide(slideInstance)\"\n >\n {{slideInstance.node.label | transloco}}\n </button>\n </ng-template>\n </mat-toolbar>\n <mat-toolbar *ngIf=\"!hideTopToolbar\">\n {{ title }}\n <span class=\"ajf-spacer\"></span>\n <!-- this content projection allow to add buttons on toolbar -->\n <ng-content select=\"[ajfFormTopToolbarButtons]\"></ng-content>\n <!-- apply a default save button only when ajfFormSaveButton is empty -->\n <span *ngIf=\"!saveDisabled\" (click)=\"onSave($event)\">\n <span #saveButton\n ><ng-content select=\"[ajfFormSaveButton]\"></ng-content\n ></span>\n <button\n *ngIf=\"saveButton != null && saveButton.childNodes != null && saveButton.childNodes.length == 0\"\n mat-button\n default\n >\n {{'Save'|transloco}}\n </button>\n </span>\n </mat-toolbar>\n <div class=\"ajf-slider-container\">\n <ajf-page-slider\n (orientationChange)=\"orientationChangeHandler($event)\"\n [fixedOrientation]=\"fixedOrientation\"\n [hideNavigationButtons]=\"hideNavigationButtons\"\n [orientation]=\"orientation\"\n #formSlider\n >\n <ng-container *ngIf=\"(slides|async) as curSlides\">\n <ng-container *ngIf=\"curSlides!.length > 0 && hasStartMessage\">\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"> 1 → </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormStartMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormStartMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <ng-container\n *ngFor=\"let slideInstance of curSlides; trackBy:trackNodeById\"\n >\n <!-- non repeating slides -->\n <ng-container *ngIf=\"slideInstance.visible\">\n <ng-container\n *ngIf=\"!(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position + (hasStartMessage |\n ajfBoolToInt) }} →</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!slideInstance.valid\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"slideInstance.valid\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.flatNodes\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node.fieldType !== 7\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || !slideInstance.editable\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <!-- repeating slides -->\n <ng-container\n *ngIf=\"(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item\n *ngFor=\"let curRep of ((slideInstance|ajfAsRepeatingSlideInstance).reps|ajfRange); let idx = index; let lastSlide = last\"\n >\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position|ajfIncrement:idx +\n (hasStartMessage | ajfBoolToInt) }} →</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!(slideInstance|ajfValidSlide:idx)\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"(slideInstance|ajfValidSlide:idx)\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <div\n *ngIf=\"lastSlide && !readonly\"\n class=\"ajf-group-actions\"\n >\n <button\n (click)=\"addGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canAdd || ((slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval && !slideInstance.valid)\"\n mat-mini-fab\n >\n <mat-icon>add</mat-icon>\n </button>\n <button\n (click)=\"removeGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canRemove || (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval\"\n mat-mini-fab\n >\n <mat-icon>remove</mat-icon>\n </button>\n </div>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.slideNodes[idx]\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || (!lastSlide && (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval)\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"curSlides && curSlides!.length > 0 && hasEndMessage\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span\n *ngIf=\"(slidesNum|async) as snum\"\n class=\"ajf-form-header-number\"\n >\n {{ snum! + (hasStartMessage | ajfBoolToInt ) + 1 }}\n →\n </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormEndMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormEndMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n <div ajfPageSliderBar *ngIf=\"!hideBottomToolbar\">\n <div class=\"ajf-left-bar\">\n <div class=\"ajf-errors\" *ngIf=\"((errors | async) || 0) > 0\">\n <button mat-button (click)=\"goToPrevError()\" danger>\n <mat-icon>arrow_upward</mat-icon>\n </button>\n <button mat-button (click)=\"goToNextError()\" danger>\n <mat-icon>arrow_downward</mat-icon>\n </button>\n </div>\n <div class=\"ajf-info-box ajf-error\">\n <div class=\"ajf-title\">{{'Errors'|transloco}}</div>\n <div class=\"ajf-content\">\n {{ errors | async }} / {{ slidesNum|async }}\n </div>\n </div>\n </div>\n </div>\n </ajf-page-slider>\n </div>\n </div>\n </form>\n</ng-container>\n", styles: ["ajf-form{display:block}ajf-form .ajf-form-container{display:flex;flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip{overflow:auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button{flex:1 1 auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button *{display:block;width:100%;overflow:hidden;text-overflow:ellipsis}ajf-form .ajf-form-container mat-toolbar.ajf-hidden{opacity:0}ajf-form .ajf-form-container .ajf-topbar-button{margin-right:10px}ajf-form .ajf-form-container>.ajf-slider-container{flex:1;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider{height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content{padding:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page{flex:1;max-height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card{margin:1em 0 3em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content{display:flex;flex-wrap:wrap;flex-direction:row;align-content:flex-start;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content .ajf-group-actions{position:absolute;right:0;top:-30px;padding:15px;z-index:10}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry{flex:1 0 auto;padding-left:10px;padding-right:10px;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry .mat-icon{vertical-align:bottom;margin-left:5px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-normal{width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-small{width:50%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-smaller{width:33%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-tiny{width:25%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-mini{width:20%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header{display:flex;align-items:center;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2{flex:1}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2>.ajf-form-header-number{margin-right:.5em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-warning{color:#f53d3d}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-success{color:#32db64}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header h2>.ajf-title{display:inline-block;margin-right:40px;white-space:normal;vertical-align:top}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar{display:flex;align-items:flex-start;flex-direction:row;position:absolute;bottom:0}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-right-button{float:right}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-button-icon-only ion-icon{padding:0 .1em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box{height:40px;padding:4px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div{height:16px;line-height:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div.ajf-content{font-weight:bold}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box.ajf-error{order:2;color:red}ajf-form .ajf-form-container .ajf-spacer{flex:1 0 auto}\n"], components: [{ type: i2$a.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$5.AjfPageSlider, selector: "ajf-page-slider" }, { type: i5$1.AjfPageSliderItem, selector: "ajf-page-slider-item", outputs: ["scroll"] }, { type: i6.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i6.MatCardHeader, selector: "mat-card-header" }, { type: i7$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: AjfFormField, selector: "ajf-field,ajf-form-field" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i11.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "async": i3.AsyncPipe, "transloco": i2$4.TranslocoPipe, "ajfIsRepeatingSlideInstance": i1$1.AjfIsRepeatingSlideInstancePipe, "ajfBoolToInt": i1$1.AjfBoolToIntPipe, "ajfAsFieldInstance": i1$1.AjfAsFieldInstancePipe, "ajfFieldIcon": i1$1.AjfFieldIconPipe, "ajfRange": i1$1.AjfRangePipe, "ajfAsRepeatingSlideInstance": i1$1.AjfAsRepeatingSlideInstancePipe, "ajfIncrement": i1$1.AjfIncrementPipe, "ajfValidSlide": i1$1.AjfValidSlidePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormRenderer, decorators: [{
|
|
791
|
+
type: Component,
|
|
792
|
+
args: [{ selector: 'ajf-form', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"formGroup|async as fg\">\n <form novalidate [formGroup]=\"fg!\">\n <div class=\"ajf-form-container\">\n <mat-toolbar *ngIf=\"!hideTopToolbar && topBar\" class=\"ajf-btn-strip\">\n <ng-template\n ngFor\n let-slideInstance\n [ngForOf]=\"slides|async\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <button\n mat-button\n class=\"ajf-topbar-button\"\n *ngIf=\"slideInstance.node != null && slideInstance.node.label != null && slideInstance.node.label.length > 0\"\n (click)=\"scrollToSlide(slideInstance)\"\n >\n {{slideInstance.node.label | transloco}}\n </button>\n </ng-template>\n </mat-toolbar>\n <mat-toolbar *ngIf=\"!hideTopToolbar\">\n {{ title }}\n <span class=\"ajf-spacer\"></span>\n <!-- this content projection allow to add buttons on toolbar -->\n <ng-content select=\"[ajfFormTopToolbarButtons]\"></ng-content>\n <!-- apply a default save button only when ajfFormSaveButton is empty -->\n <span *ngIf=\"!saveDisabled\" (click)=\"onSave($event)\">\n <span #saveButton\n ><ng-content select=\"[ajfFormSaveButton]\"></ng-content\n ></span>\n <button\n *ngIf=\"saveButton != null && saveButton.childNodes != null && saveButton.childNodes.length == 0\"\n mat-button\n default\n >\n {{'Save'|transloco}}\n </button>\n </span>\n </mat-toolbar>\n <div class=\"ajf-slider-container\">\n <ajf-page-slider\n (orientationChange)=\"orientationChangeHandler($event)\"\n [fixedOrientation]=\"fixedOrientation\"\n [hideNavigationButtons]=\"hideNavigationButtons\"\n [orientation]=\"orientation\"\n #formSlider\n >\n <ng-container *ngIf=\"(slides|async) as curSlides\">\n <ng-container *ngIf=\"curSlides!.length > 0 && hasStartMessage\">\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"> 1 → </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormStartMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormStartMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <ng-container\n *ngFor=\"let slideInstance of curSlides; trackBy:trackNodeById\"\n >\n <!-- non repeating slides -->\n <ng-container *ngIf=\"slideInstance.visible\">\n <ng-container\n *ngIf=\"!(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position + (hasStartMessage |\n ajfBoolToInt) }} →</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!slideInstance.valid\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"slideInstance.valid\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.flatNodes\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node.fieldType !== 7\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || !slideInstance.editable\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n <!-- repeating slides -->\n <ng-container\n *ngIf=\"(slideInstance|ajfIsRepeatingSlideInstance)\"\n >\n <ajf-page-slider-item\n *ngFor=\"let curRep of ((slideInstance|ajfAsRepeatingSlideInstance).reps|ajfRange); let idx = index; let lastSlide = last\"\n >\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span class=\"ajf-form-header-number\"\n >{{ slideInstance.position|ajfIncrement:idx +\n (hasStartMessage | ajfBoolToInt) }} →</span\n >\n <span\n [innerHTML]=\"slideInstance.node.label | transloco\"\n ></span>\n </h2>\n <mat-icon\n class=\"ajf-warning\"\n *ngIf=\"!(slideInstance|ajfValidSlide:idx)\"\n >warning</mat-icon\n >\n <mat-icon\n class=\"ajf-success\"\n *ngIf=\"(slideInstance|ajfValidSlide:idx)\"\n >check</mat-icon\n >\n </div>\n </mat-card-header>\n <mat-card-content>\n <div\n *ngIf=\"lastSlide && !readonly\"\n class=\"ajf-group-actions\"\n >\n <button\n (click)=\"addGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canAdd || ((slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval && !slideInstance.valid)\"\n mat-mini-fab\n >\n <mat-icon>add</mat-icon>\n </button>\n <button\n (click)=\"removeGroup(slideInstance)\"\n [disabled]=\"!(slideInstance|ajfAsRepeatingSlideInstance).canRemove || (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval\"\n mat-mini-fab\n >\n <mat-icon>remove</mat-icon>\n </button>\n </div>\n <ng-template\n ngFor\n let-fieldInstance\n [ngForOf]=\"slideInstance.slideNodes[idx]\"\n [ngForTrackBy]=\"trackNodeById\"\n >\n <div\n [ngClass]=\"'ajf-' + (fieldInstance|ajfAsFieldInstance).node.size\"\n class=\"ajf-field-entry\"\n *ngIf=\"fieldInstance.visible\"\n >\n <i\n [class]=\"(fieldInstance|ajfAsFieldInstance).node.fieldType | ajfFieldIcon\"\n item-right\n ></i>\n <p>\n {{\n ((fieldInstance|ajfAsFieldInstance).node.description\n || '') | transloco }}\n </p>\n <label\n [attr.id]=\"fieldInstance.node.name\"\n [innerHTML]=\"fieldInstance.node.label | transloco\"\n ></label>\n <mat-icon\n class=\"ajf-tooltip-icon\"\n *ngIf=\"(fieldInstance|ajfAsFieldInstance).node?.hint as hint\"\n [matTooltip]=\"hint\"\n matTooltipPosition=\"right\"\n >\n {{(fieldInstance|ajfAsFieldInstance).node?.hintIcon\n || 'help'}}</mat-icon\n >\n <ajf-field\n [instance]=\"fieldInstance|ajfAsFieldInstance\"\n [readonly]=\"readonly || (!lastSlide && (slideInstance|ajfAsRepeatingSlideInstance).node?.disableRemoval)\"\n >\n </ajf-field>\n </div>\n </ng-template>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container\n *ngIf=\"curSlides && curSlides!.length > 0 && hasEndMessage\"\n >\n <ajf-page-slider-item>\n <div class=\"ajf-form-page\">\n <mat-card>\n <mat-card-header>\n <div class=\"ajf-page-slider-item-header\">\n <h2>\n <span\n *ngIf=\"(slidesNum|async) as snum\"\n class=\"ajf-form-header-number\"\n >\n {{ snum! + (hasStartMessage | ajfBoolToInt ) + 1 }}\n →\n </span>\n <span class=\"ajf-title\">\n <ng-content\n select=\"[ajfFormEndMessageTitle]\"\n ></ng-content>\n </span>\n </h2>\n </div>\n </mat-card-header>\n <mat-card-content>\n <ng-content select=\"[ajfFormEndMessage]\"></ng-content>\n </mat-card-content>\n </mat-card>\n </div>\n </ajf-page-slider-item>\n </ng-container>\n </ng-container>\n <div ajfPageSliderBar *ngIf=\"!hideBottomToolbar\">\n <div class=\"ajf-left-bar\">\n <div class=\"ajf-errors\" *ngIf=\"((errors | async) || 0) > 0\">\n <button mat-button (click)=\"goToPrevError()\" danger>\n <mat-icon>arrow_upward</mat-icon>\n </button>\n <button mat-button (click)=\"goToNextError()\" danger>\n <mat-icon>arrow_downward</mat-icon>\n </button>\n </div>\n <div class=\"ajf-info-box ajf-error\">\n <div class=\"ajf-title\">{{'Errors'|transloco}}</div>\n <div class=\"ajf-content\">\n {{ errors | async }} / {{ slidesNum|async }}\n </div>\n </div>\n </div>\n </div>\n </ajf-page-slider>\n </div>\n </div>\n </form>\n</ng-container>\n", styles: ["ajf-form{display:block}ajf-form .ajf-form-container{display:flex;flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip{overflow:auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button{flex:1 1 auto}ajf-form .ajf-form-container mat-toolbar.ajf-btn-strip button.ajf-topbar-button.mat-button *{display:block;width:100%;overflow:hidden;text-overflow:ellipsis}ajf-form .ajf-form-container mat-toolbar.ajf-hidden{opacity:0}ajf-form .ajf-form-container .ajf-topbar-button{margin-right:10px}ajf-form .ajf-form-container>.ajf-slider-container{flex:1;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider{height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content{padding:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page{flex:1;max-height:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card{margin:1em 0 3em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content{display:flex;flex-wrap:wrap;flex-direction:row;align-content:flex-start;position:relative}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content .ajf-group-actions{position:absolute;right:0;top:-30px;padding:15px;z-index:10}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry{flex:1 0 auto;padding-left:10px;padding-right:10px;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry .mat-icon{vertical-align:bottom;margin-left:5px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-normal{width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-small{width:50%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-smaller{width:33%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-tiny{width:25%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider ajf-page-slider-item .ajf-page-slider-item-content .ajf-form-page>mat-card>mat-card-content>.ajf-field-entry.ajf-mini{width:20%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header{display:flex;align-items:center;width:100%}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2{flex:1}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header>h2>.ajf-form-header-number{margin-right:.5em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-warning{color:#f53d3d}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header mat-icon.ajf-success{color:#32db64}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider .ajf-page-slider-item-header h2>.ajf-title{display:inline-block;margin-right:40px;white-space:normal;vertical-align:top}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar{display:flex;align-items:flex-start;flex-direction:row;position:absolute;bottom:0}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-right-button{float:right}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-button-icon-only ion-icon{padding:0 .1em}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box{height:40px;padding:4px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div{height:16px;line-height:16px}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box>div.ajf-content{font-weight:bold}ajf-form .ajf-form-container>.ajf-slider-container>ajf-page-slider [ajfPageSliderBar] .ajf-left-bar .ajf-info-box.ajf-error{order:2;color:red}ajf-form .ajf-form-container .ajf-spacer{flex:1 0 auto}\n"] }]
|
|
793
|
+
}], ctorParameters: function () { return [{ type: i1$1.AjfFormRendererService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { topBar: [{
|
|
794
|
+
type: Input
|
|
795
|
+
}] } });
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* @license
|
|
799
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
800
|
+
*
|
|
801
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
802
|
+
*
|
|
803
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
804
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
805
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
806
|
+
* or (at your option) any later version.
|
|
807
|
+
*
|
|
808
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
809
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
810
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
811
|
+
* General Public License for more details.
|
|
812
|
+
*
|
|
813
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
814
|
+
* along with Advanced JSON forms (ajf).
|
|
815
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
816
|
+
*
|
|
817
|
+
*/
|
|
818
|
+
class AjfFormsModule {
|
|
819
|
+
static forRoot() {
|
|
820
|
+
return {
|
|
821
|
+
ngModule: AjfFormsModule,
|
|
822
|
+
providers: [AjfFieldService],
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
AjfFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
827
|
+
AjfFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, declarations: [AjfBarcodeFieldComponent,
|
|
828
|
+
AjfBooleanFieldComponent,
|
|
829
|
+
AjfDateFieldComponent,
|
|
830
|
+
AjfDateInputFieldComponent,
|
|
831
|
+
AjfEmptyFieldComponent,
|
|
832
|
+
AjfFieldWarningDialog,
|
|
833
|
+
AjfFormField,
|
|
834
|
+
AjfFormRenderer,
|
|
835
|
+
AjfInputFieldComponent,
|
|
836
|
+
AjfMultipleChoiceFieldComponent,
|
|
837
|
+
AjfRangeFieldComponent,
|
|
838
|
+
AjfSingleChoiceFieldComponent,
|
|
839
|
+
AjfTableFieldComponent,
|
|
840
|
+
AjfTextFieldComponent,
|
|
841
|
+
AjfTimeFieldComponent,
|
|
842
|
+
AjfVideoUrlFieldComponent], imports: [AjfBarcodeModule,
|
|
843
|
+
AjfCalendarModule,
|
|
844
|
+
AjfCommonModule,
|
|
845
|
+
AjfFormsModule$1,
|
|
846
|
+
AjfCheckboxGroupModule,
|
|
847
|
+
AjfPageSliderModule,
|
|
848
|
+
AjfTimeModule,
|
|
849
|
+
AjfTranslocoModule,
|
|
850
|
+
CommonModule,
|
|
851
|
+
MatButtonModule,
|
|
852
|
+
MatCardModule,
|
|
853
|
+
MatDialogModule,
|
|
854
|
+
MatFormFieldModule,
|
|
855
|
+
MatIconModule,
|
|
856
|
+
MatInputModule,
|
|
857
|
+
MatRadioModule,
|
|
858
|
+
MatSelectModule,
|
|
859
|
+
MatSlideToggleModule,
|
|
860
|
+
MatToolbarModule,
|
|
861
|
+
MatTooltipModule,
|
|
862
|
+
ReactiveFormsModule,
|
|
863
|
+
TextFieldModule,
|
|
864
|
+
MatSliderModule], exports: [AjfFormField, AjfFormRenderer] });
|
|
865
|
+
AjfFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, providers: [
|
|
866
|
+
AjfFieldService,
|
|
867
|
+
{ provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService },
|
|
868
|
+
], imports: [[
|
|
869
|
+
AjfBarcodeModule,
|
|
870
|
+
AjfCalendarModule,
|
|
871
|
+
AjfCommonModule,
|
|
872
|
+
AjfFormsModule$1,
|
|
873
|
+
AjfCheckboxGroupModule,
|
|
874
|
+
AjfPageSliderModule,
|
|
875
|
+
AjfTimeModule,
|
|
876
|
+
AjfTranslocoModule,
|
|
877
|
+
CommonModule,
|
|
878
|
+
MatButtonModule,
|
|
879
|
+
MatCardModule,
|
|
880
|
+
MatDialogModule,
|
|
881
|
+
MatFormFieldModule,
|
|
882
|
+
MatIconModule,
|
|
883
|
+
MatInputModule,
|
|
884
|
+
MatRadioModule,
|
|
885
|
+
MatSelectModule,
|
|
886
|
+
MatSlideToggleModule,
|
|
887
|
+
MatToolbarModule,
|
|
888
|
+
MatTooltipModule,
|
|
889
|
+
ReactiveFormsModule,
|
|
890
|
+
TextFieldModule,
|
|
891
|
+
MatSliderModule,
|
|
892
|
+
]] });
|
|
893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0-rc.3", ngImport: i0, type: AjfFormsModule, decorators: [{
|
|
894
|
+
type: NgModule,
|
|
895
|
+
args: [{
|
|
896
|
+
imports: [
|
|
897
|
+
AjfBarcodeModule,
|
|
898
|
+
AjfCalendarModule,
|
|
899
|
+
AjfCommonModule,
|
|
900
|
+
AjfFormsModule$1,
|
|
901
|
+
AjfCheckboxGroupModule,
|
|
902
|
+
AjfPageSliderModule,
|
|
903
|
+
AjfTimeModule,
|
|
904
|
+
AjfTranslocoModule,
|
|
905
|
+
CommonModule,
|
|
906
|
+
MatButtonModule,
|
|
907
|
+
MatCardModule,
|
|
908
|
+
MatDialogModule,
|
|
909
|
+
MatFormFieldModule,
|
|
910
|
+
MatIconModule,
|
|
911
|
+
MatInputModule,
|
|
912
|
+
MatRadioModule,
|
|
913
|
+
MatSelectModule,
|
|
914
|
+
MatSlideToggleModule,
|
|
915
|
+
MatToolbarModule,
|
|
916
|
+
MatTooltipModule,
|
|
917
|
+
ReactiveFormsModule,
|
|
918
|
+
TextFieldModule,
|
|
919
|
+
MatSliderModule,
|
|
920
|
+
],
|
|
921
|
+
declarations: [
|
|
922
|
+
AjfBarcodeFieldComponent,
|
|
923
|
+
AjfBooleanFieldComponent,
|
|
924
|
+
AjfDateFieldComponent,
|
|
925
|
+
AjfDateInputFieldComponent,
|
|
926
|
+
AjfEmptyFieldComponent,
|
|
927
|
+
AjfFieldWarningDialog,
|
|
928
|
+
AjfFormField,
|
|
929
|
+
AjfFormRenderer,
|
|
930
|
+
AjfInputFieldComponent,
|
|
931
|
+
AjfMultipleChoiceFieldComponent,
|
|
932
|
+
AjfRangeFieldComponent,
|
|
933
|
+
AjfSingleChoiceFieldComponent,
|
|
934
|
+
AjfTableFieldComponent,
|
|
935
|
+
AjfTextFieldComponent,
|
|
936
|
+
AjfTimeFieldComponent,
|
|
937
|
+
AjfVideoUrlFieldComponent,
|
|
938
|
+
],
|
|
939
|
+
entryComponents: [
|
|
940
|
+
AjfBarcodeFieldComponent,
|
|
941
|
+
AjfBooleanFieldComponent,
|
|
942
|
+
AjfDateFieldComponent,
|
|
943
|
+
AjfDateInputFieldComponent,
|
|
944
|
+
AjfEmptyFieldComponent,
|
|
945
|
+
AjfInputFieldComponent,
|
|
946
|
+
AjfMultipleChoiceFieldComponent,
|
|
947
|
+
AjfRangeFieldComponent,
|
|
948
|
+
AjfSingleChoiceFieldComponent,
|
|
949
|
+
AjfTableFieldComponent,
|
|
950
|
+
AjfTextFieldComponent,
|
|
951
|
+
AjfTimeFieldComponent,
|
|
952
|
+
AjfVideoUrlFieldComponent,
|
|
953
|
+
],
|
|
954
|
+
exports: [AjfFormField, AjfFormRenderer],
|
|
955
|
+
providers: [
|
|
956
|
+
AjfFieldService,
|
|
957
|
+
{ provide: AJF_WARNING_ALERT_SERVICE, useClass: AjfWarningAlertService },
|
|
958
|
+
],
|
|
959
|
+
}]
|
|
960
|
+
}] });
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* @license
|
|
964
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
965
|
+
*
|
|
966
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
967
|
+
*
|
|
968
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
969
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
970
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
971
|
+
* or (at your option) any later version.
|
|
972
|
+
*
|
|
973
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
974
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
975
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
976
|
+
* General Public License for more details.
|
|
977
|
+
*
|
|
978
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
979
|
+
* along with Advanced JSON forms (ajf).
|
|
980
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
981
|
+
*
|
|
982
|
+
*/
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* @license
|
|
986
|
+
* Copyright (C) Gnucoop soc. coop.
|
|
987
|
+
*
|
|
988
|
+
* This file is part of the Advanced JSON forms (ajf).
|
|
989
|
+
*
|
|
990
|
+
* Advanced JSON forms (ajf) is free software: you can redistribute it and/or
|
|
991
|
+
* modify it under the terms of the GNU Affero General Public License as
|
|
992
|
+
* published by the Free Software Foundation, either version 3 of the License,
|
|
993
|
+
* or (at your option) any later version.
|
|
994
|
+
*
|
|
995
|
+
* Advanced JSON forms (ajf) is distributed in the hope that it will be useful,
|
|
996
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
997
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
|
|
998
|
+
* General Public License for more details.
|
|
999
|
+
*
|
|
1000
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
1001
|
+
* along with Advanced JSON forms (ajf).
|
|
1002
|
+
* If not, see http://www.gnu.org/licenses/.
|
|
1003
|
+
*
|
|
1004
|
+
*/
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Generated bundle index. Do not edit.
|
|
1008
|
+
*/
|
|
1009
|
+
|
|
1010
|
+
export { AjfBooleanFieldComponent, AjfDateFieldComponent, AjfDateInputFieldComponent, AjfEmptyFieldComponent, AjfFieldService, AjfFieldWarningDialog, AjfFormField, AjfFormRenderer, AjfFormsModule, AjfInputFieldComponent, AjfMultipleChoiceFieldComponent, AjfSingleChoiceFieldComponent, AjfTableFieldComponent, AjfTimeFieldComponent, AjfWarningAlertService };
|
|
1011
|
+
//# sourceMappingURL=forms.mjs.map
|