@bizdoc/core 2.3.17 → 2.3.20
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/esm2022/lib/admin/admin-menu.component.mjs +9 -10
- package/esm2022/lib/admin/architecture/cube-axes-filter.component.mjs +11 -11
- package/esm2022/lib/admin/architecture/designer-element.component.mjs +4 -4
- package/esm2022/lib/admin/architecture/designer-privileges.component.mjs +15 -16
- package/esm2022/lib/admin/architecture/designer.component.mjs +16 -15
- package/esm2022/lib/admin/architecture/elements/analysis-view.component.mjs +13 -14
- package/esm2022/lib/admin/architecture/elements/analysis-widget.component.mjs +11 -12
- package/esm2022/lib/admin/architecture/elements/anomaly-rule.component.mjs +4 -5
- package/esm2022/lib/admin/architecture/elements/attribute.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/box-form.component.mjs +11 -12
- package/esm2022/lib/admin/architecture/elements/configuration-datasource.component.mjs +13 -14
- package/esm2022/lib/admin/architecture/elements/cube-index-utility.component.mjs +9 -10
- package/esm2022/lib/admin/architecture/elements/cube-view.component.mjs +11 -12
- package/esm2022/lib/admin/architecture/elements/cube.component.mjs +23 -24
- package/esm2022/lib/admin/architecture/elements/document-state-widget.component.mjs +11 -12
- package/esm2022/lib/admin/architecture/elements/documents-report.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/documents-widget.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/explore-view.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/folder.component.mjs +16 -17
- package/esm2022/lib/admin/architecture/elements/form-invite.dialog.mjs +17 -18
- package/esm2022/lib/admin/architecture/elements/form.component.mjs +22 -23
- package/esm2022/lib/admin/architecture/elements/guide.component.mjs +16 -17
- package/esm2022/lib/admin/architecture/elements/job.component.mjs +12 -13
- package/esm2022/lib/admin/architecture/elements/matrix-view.component.mjs +9 -10
- package/esm2022/lib/admin/architecture/elements/parallel-view.component.mjs +12 -13
- package/esm2022/lib/admin/architecture/elements/performance-report.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/performance-widget.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/pivot-view.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/report.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/return-to-role-action.component.mjs +8 -9
- package/esm2022/lib/admin/architecture/elements/role.component.mjs +13 -14
- package/esm2022/lib/admin/architecture/elements/sum-view.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/elements/tasks-report.component.mjs +13 -13
- package/esm2022/lib/admin/architecture/elements/type.component.mjs +18 -19
- package/esm2022/lib/admin/architecture/elements/usage-report.component.mjs +11 -12
- package/esm2022/lib/admin/architecture/elements/widget.component.mjs +10 -11
- package/esm2022/lib/admin/architecture/icon-picker.component.mjs +7 -8
- package/esm2022/lib/admin/core/color-picker.input.mjs +5 -6
- package/esm2022/lib/admin/core/localized-string.component.mjs +10 -11
- package/esm2022/lib/admin/diff/configuration-diff.component.mjs +11 -11
- package/esm2022/lib/admin/document-trace/document-trace.component.mjs +18 -18
- package/esm2022/lib/admin/document-trace/reassign.dialog.mjs +12 -12
- package/esm2022/lib/admin/document-trace/trace-element.component.mjs +13 -12
- package/esm2022/lib/admin/form/designer/box-designer.component.mjs +24 -60
- package/esm2022/lib/admin/form/designer/declarations.mjs +1 -1
- package/esm2022/lib/admin/form/designer/design-control.component.mjs +41 -0
- package/esm2022/lib/admin/form/designer/properties.component.mjs +11 -12
- package/esm2022/lib/admin/form/designer/section.component.mjs +11 -12
- package/esm2022/lib/admin/form/workflow/node.component.mjs +9 -10
- package/esm2022/lib/admin/form/workflow/role-node.component.mjs +15 -16
- package/esm2022/lib/admin/form/workflow/workflow.component.mjs +3 -3
- package/esm2022/lib/admin/indices/manage-cube-index.component.mjs +13 -13
- package/esm2022/lib/admin/patterns/patterns.component.mjs +19 -19
- package/esm2022/lib/admin/permissions/permissions.component.mjs +14 -15
- package/esm2022/lib/admin/positions/positions-popup.component.mjs +11 -11
- package/esm2022/lib/admin/positions/positions.component.mjs +23 -24
- package/esm2022/lib/admin/profiler/outofoffice.component.mjs +13 -13
- package/esm2022/lib/admin/profiler/profiler.component.mjs +15 -15
- package/esm2022/lib/browse/browse-items.component.mjs +3 -3
- package/esm2022/lib/browse/browse.mobile.component.mjs +15 -16
- package/esm2022/lib/browse/browse.pane.component.mjs +14 -15
- package/esm2022/lib/browse/expanded-item/expanded-item.component.mjs +14 -15
- package/esm2022/lib/browse/filter/filter.component.mjs +13 -13
- package/esm2022/lib/browse/folders-menu.component.mjs +10 -11
- package/esm2022/lib/chat/chat.mobile.component.mjs +5 -6
- package/esm2022/lib/chat/contacts.component.mjs +16 -16
- package/esm2022/lib/chat/conversation.component.mjs +13 -14
- package/esm2022/lib/compose/action/action-picker.component.mjs +9 -10
- package/esm2022/lib/compose/action/action.dialog.mjs +8 -9
- package/esm2022/lib/compose/action/action.pane.dialog.exp.mjs +6 -7
- package/esm2022/lib/compose/action/assign-action.component.mjs +12 -12
- package/esm2022/lib/compose/action/moveto-action.component.mjs +11 -11
- package/esm2022/lib/compose/action/return-action.component.mjs +9 -9
- package/esm2022/lib/compose/attachments/attachments.component.mjs +11 -12
- package/esm2022/lib/compose/attachments/preview/attachment-preview.component.mjs +8 -9
- package/esm2022/lib/compose/box/box.component.mjs +7 -8
- package/esm2022/lib/compose/comments/comment.component.mjs +14 -15
- package/esm2022/lib/compose/comments/comments.component.mjs +8 -9
- package/esm2022/lib/compose/comments/edits.component.mjs +5 -5
- package/esm2022/lib/compose/comments/quick-comment.component.exp.mjs +5 -6
- package/esm2022/lib/compose/comments/votes.component.mjs +8 -8
- package/esm2022/lib/compose/compose.mobile.component.mjs +16 -17
- package/esm2022/lib/compose/compose.pane.component.mjs +15 -16
- package/esm2022/lib/compose/copy/copy.dialog.mjs +11 -11
- package/esm2022/lib/compose/events/events.component.mjs +7 -8
- package/esm2022/lib/compose/form-selector/form-selector.sheet.mjs +7 -8
- package/esm2022/lib/compose/form.component.mjs +5 -5
- package/esm2022/lib/compose/new-menu.component.mjs +8 -9
- package/esm2022/lib/compose/tag/tags.component.mjs +10 -10
- package/esm2022/lib/compose/trace/people.component.mjs +4 -5
- package/esm2022/lib/compose/version-compare/version.pane.component.mjs +10 -11
- package/esm2022/lib/core/animations.mjs +8 -4
- package/esm2022/lib/core/checkbox.mjs +20 -17
- package/esm2022/lib/core/fields/address.field.mjs +35 -26
- package/esm2022/lib/core/fields/autocomplete.field.mjs +68 -52
- package/esm2022/lib/core/fields/checkbox.field.mjs +9 -10
- package/esm2022/lib/core/fields/checklist.designer.mjs +66 -47
- package/esm2022/lib/core/fields/checklist.field.mjs +8 -9
- package/esm2022/lib/core/fields/date-range.field.mjs +6 -6
- package/esm2022/lib/core/fields/date.field.mjs +10 -11
- package/esm2022/lib/core/fields/expression.field.mjs +31 -23
- package/esm2022/lib/core/fields/file.field.mjs +8 -9
- package/esm2022/lib/core/fields/html.field.mjs +9 -10
- package/esm2022/lib/core/fields/input.field.mjs +8 -9
- package/esm2022/lib/core/fields/numeric.field.mjs +7 -7
- package/esm2022/lib/core/fields/options.component.mjs +11 -12
- package/esm2022/lib/core/fields/radio-button.designer.mjs +10 -11
- package/esm2022/lib/core/fields/radio-button.field.mjs +8 -9
- package/esm2022/lib/core/fields/select.designer.mjs +71 -52
- package/esm2022/lib/core/fields/select.field.mjs +9 -10
- package/esm2022/lib/core/fields/signature.field.mjs +10 -11
- package/esm2022/lib/core/fields/switch.field.mjs +8 -9
- package/esm2022/lib/core/fields/tags.field.mjs +9 -10
- package/esm2022/lib/core/fields/textarea.field.mjs +9 -10
- package/esm2022/lib/core/fields/time.field.mjs +9 -10
- package/esm2022/lib/core/fields/timespan.field.mjs +33 -26
- package/esm2022/lib/core/fields/yesno.designer.mjs +70 -55
- package/esm2022/lib/core/fields/yesno.field.mjs +8 -9
- package/esm2022/lib/core/guide/guide.component.mjs +7 -8
- package/esm2022/lib/core/guide/help-tip.component.mjs +21 -18
- package/esm2022/lib/core/identity/identity.component.mjs +5 -6
- package/esm2022/lib/core/inputs/address.input.mjs +24 -21
- package/esm2022/lib/core/inputs/auto-complete.input.mjs +42 -26
- package/esm2022/lib/core/inputs/combination-picker-body.mjs +12 -13
- package/esm2022/lib/core/inputs/combination-picker.mjs +8 -5
- package/esm2022/lib/core/inputs/combination-pool.mjs +7 -8
- package/esm2022/lib/core/inputs/file.input.mjs +11 -12
- package/esm2022/lib/core/inputs/select.input.mjs +39 -23
- package/esm2022/lib/core/inputs/time-picker.mjs +6 -7
- package/esm2022/lib/core/mailbox.service.mjs +1 -1
- package/esm2022/lib/core/models.mjs +1 -1
- package/esm2022/lib/core/none.component.mjs +19 -22
- package/esm2022/lib/core/pipes/translate.pipe.mjs +2 -1
- package/esm2022/lib/core/slots/slots.component.mjs +13 -14
- package/esm2022/lib/core/tagging/documents.component.mjs +7 -7
- package/esm2022/lib/core/tagging/edit-input.component.mjs +12 -13
- package/esm2022/lib/core/tagging/users.component.mjs +7 -7
- package/esm2022/lib/core/translations.mjs +2 -2
- package/esm2022/lib/cube/cube-menu.component.mjs +8 -9
- package/esm2022/lib/cube/explore/explore-items.component.mjs +8 -8
- package/esm2022/lib/cube/filter/filter-tags.component.exp.mjs +6 -7
- package/esm2022/lib/cube/filter/filter.component.mjs +11 -11
- package/esm2022/lib/cube/grid/spreadsheet.component.mjs +1 -2
- package/esm2022/lib/cube/matrix/matrix.mobile.component.mjs +12 -12
- package/esm2022/lib/cube/matrix/matrix.pane.component.mjs +12 -12
- package/esm2022/lib/cube/matrix/popup.component.mjs +10 -10
- package/esm2022/lib/cube/matrix/table.component.mjs +3 -4
- package/esm2022/lib/cube/parallel/parallel.component.mjs +4 -5
- package/esm2022/lib/cube/sum/sum.component.mjs +3 -3
- package/esm2022/lib/cube/view.mobile.component.mjs +16 -17
- package/esm2022/lib/cube/view.pane.component.mjs +12 -13
- package/esm2022/lib/dashboard/dashboard.component.mjs +12 -13
- package/esm2022/lib/dashboard/recents/recents.widget.mjs +11 -12
- package/esm2022/lib/dashboard/score/activity.widget.mjs +4 -5
- package/esm2022/lib/dashboard/score/peers-performance.widget.mjs +5 -5
- package/esm2022/lib/dashboard/score/pending-results.widget.mjs +11 -12
- package/esm2022/lib/dashboard/score/personal-score.widget.mjs +3 -2
- package/esm2022/lib/designer.module.mjs +6 -5
- package/esm2022/lib/home/about/about.dialog.mjs +7 -8
- package/esm2022/lib/home/home.desktop.component.mjs +17 -18
- package/esm2022/lib/home/home.mobile.component.mjs +16 -17
- package/esm2022/lib/home/notifications/notifications.component.mjs +3 -3
- package/esm2022/lib/home/options/options.component.mjs +11 -11
- package/esm2022/lib/home/outofoffice/outofoffice.component.mjs +8 -9
- package/esm2022/lib/home/tools.component.mjs +13 -13
- package/esm2022/lib/impersonate/impersonate.component.mjs +10 -10
- package/esm2022/lib/modules/gantt.module.mjs +4 -2
- package/esm2022/lib/modules/grid.module.mjs +3 -3
- package/esm2022/lib/notifications/notifications-table.component.mjs +3 -3
- package/esm2022/lib/notifications/types/commented.notification.mjs +19 -12
- package/esm2022/lib/notifications/types/escalated.notification.mjs +6 -6
- package/esm2022/lib/notifications/types/liked.notification.mjs +19 -12
- package/esm2022/lib/notifications/types/tagged.notification.mjs +9 -9
- package/esm2022/lib/notifications/types/text.notification.mjs +6 -3
- package/esm2022/lib/options/options.component.mjs +52 -28
- package/esm2022/lib/options/options.service.mjs +26 -6
- package/esm2022/lib/reports/cube/table-documents.component.mjs +10 -10
- package/esm2022/lib/reports/report.mobile.component.mjs +12 -13
- package/esm2022/lib/reports/report.pane.component.mjs +10 -11
- package/esm2022/lib/reports/reports-menu.component.mjs +7 -8
- package/esm2022/lib/reports/substitution/substitution.component.mjs +10 -11
- package/esm2022/lib/reports/table/table-view.component.mjs +5 -6
- package/esm2022/lib/search/path.component.mjs +17 -18
- package/esm2022/lib/shared.module.mjs +4 -2
- package/esm2022/lib/system.module.mjs +5 -5
- package/esm2022/lib/views/cube/chart.component.mjs +6 -7
- package/esm2022/lib/views/cube/explore.component.mjs +10 -10
- package/esm2022/lib/views/cube/matrix.component.mjs +11 -11
- package/esm2022/lib/views/cube/parallel.component.mjs +4 -5
- package/esm2022/lib/views/cube/pivot.component.mjs +4 -5
- package/esm2022/lib/views/cube/sum.component.mjs +12 -10
- package/esm2022/lib/views/cube/view.component.mjs +11 -12
- package/esm2022/lib/views/timeline/timeline.component.exp.mjs +191 -192
- package/esm2022/lib/views/views.component.mjs +4 -5
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/bizdoc-core.mjs +3714 -3502
- package/fesm2022/bizdoc-core.mjs.map +1 -1
- package/lib/admin/architecture/elements/analysis-view.component.d.ts +2 -2
- package/lib/admin/architecture/elements/cube-view.component.d.ts +2 -2
- package/lib/admin/architecture/elements/form.component.d.ts +5 -5
- package/lib/admin/architecture/elements/matrix-view.component.d.ts +17 -9
- package/lib/admin/architecture/elements/parallel-view.component.d.ts +5 -5
- package/lib/admin/architecture/elements/tasks-report.component.d.ts +3 -2
- package/lib/admin/form/designer/box-designer.component.d.ts +26 -23
- package/lib/admin/form/designer/declarations.d.ts +2 -2
- package/lib/admin/form/designer/design-control.component.d.ts +19 -0
- package/lib/admin/form/designer/section.component.d.ts +3 -3
- package/lib/compose/attachments/attachments.component.d.ts +2 -2
- package/lib/core/animations.d.ts +2 -1
- package/lib/core/inputs/combination-picker.d.ts +1 -0
- package/lib/core/mailbox.service.d.ts +4 -3
- package/lib/core/models.d.ts +1 -1
- package/lib/core/pipes/translate.pipe.d.ts +1 -0
- package/lib/cube/matrix/table.component.d.ts +2 -2
- package/lib/dashboard/score/peers-performance.widget.d.ts +1 -1
- package/lib/designer.module.d.ts +27 -26
- package/lib/notifications/types/escalated.notification.d.ts +1 -1
- package/lib/notifications/types/tagged.notification.d.ts +1 -1
- package/lib/notifications/types/text.notification.d.ts +1 -1
- package/lib/options/options.component.d.ts +6 -4
- package/lib/options/options.service.d.ts +7 -2
- package/lib/shared.module.d.ts +1 -1
- package/lib/system.module.d.ts +25 -25
- package/lib/views/cube/sum.component.d.ts +1 -0
- package/lib/views/timeline/timeline.component.exp.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
@@ -7,10 +7,10 @@ import { TypeAutocomplete } from '../inputs/auto-complete.input';
|
|
7
7
|
import { OptionsControlDesigner } from './options.base';
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "../datasource.service";
|
10
|
-
import * as i2 from "@angular/
|
11
|
-
import * as i3 from "@angular/
|
12
|
-
import * as i4 from "
|
13
|
-
import * as i5 from "
|
10
|
+
import * as i2 from "@angular/forms";
|
11
|
+
import * as i3 from "@angular/material/form-field";
|
12
|
+
import * as i4 from "../inputs/auto-complete.input";
|
13
|
+
import * as i5 from "@angular/common";
|
14
14
|
import * as i6 from "../pipes/localized-string.pipe";
|
15
15
|
import * as i7 from "../pipes/type-value.pipe";
|
16
16
|
import * as i8 from "../pipes/translate.pipe";
|
@@ -35,7 +35,7 @@ let AutocompleteField = class AutocompleteField {
|
|
35
35
|
this._destroy.complete();
|
36
36
|
}
|
37
37
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: AutocompleteField, deps: [{ token: i1.DatasourceService }], target: i0.ɵɵFactoryTarget.Component }); }
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: AutocompleteField, selector: "ng-component", inputs: { params: "params" }, host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: TypeAutocomplete, descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label |localizedString}}</mat-label>\n <bizdoc-autocomplete [placeholder]=\"placeholder |localizedString\" [formControl]=control\n [required]=\"required\" [type]=\"dataType\"></bizdoc-autocomplete>\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n </mat-form-field>\n} @else {\n {{control.value | typeValue: dataType | async}}\n}\n", dependencies: [{ kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i4.TypeAutocomplete, selector: "bizdoc-autocomplete", inputs: ["type", "placeholder", "text", "required", "disabled", "value", "minimumChars", "textFormControlName", "textFormControl"], outputs: ["textChange", "optionSelected"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i7.TypeValuePipe, name: "typeValue" }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] }); }
|
39
39
|
};
|
40
40
|
AutocompleteField = __decorate([
|
41
41
|
BizDoc({ selector: 'autocomplete-control' })
|
@@ -43,7 +43,7 @@ AutocompleteField = __decorate([
|
|
43
43
|
export { AutocompleteField };
|
44
44
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: AutocompleteField, decorators: [{
|
45
45
|
type: Component,
|
46
|
-
args: [{ host: { class: 'field' }, template: "<mat-form-field [appearance]=appearance
|
46
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label |localizedString}}</mat-label>\n <bizdoc-autocomplete [placeholder]=\"placeholder |localizedString\" [formControl]=control\n [required]=\"required\" [type]=\"dataType\"></bizdoc-autocomplete>\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n </mat-form-field>\n} @else {\n {{control.value | typeValue: dataType | async}}\n}\n" }]
|
47
47
|
}], ctorParameters: () => [{ type: i1.DatasourceService }], propDecorators: { params: [{
|
48
48
|
type: Input
|
49
49
|
}], input: [{
|
@@ -62,29 +62,37 @@ let AutocompleteControlDesigner = class AutocompleteControlDesigner extends Opti
|
|
62
62
|
hint: null,
|
63
63
|
});
|
64
64
|
}
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: AutocompleteControlDesigner, deps: [{ token: i9.SystemService }, { token:
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
67
|
-
<form autocomplete="off" [formGroup]="form" class="column">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
<mat-form-field>
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: AutocompleteControlDesigner, deps: [{ token: i9.SystemService }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
66
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: AutocompleteControlDesigner, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
67
|
+
<form autocomplete="off" [formGroup]="form" class="column">
|
68
|
+
<mat-checkbox formControlName="multiple">{{'Multiple'|translate}}</mat-checkbox>
|
69
|
+
<mat-form-field>
|
70
|
+
<mat-label>{{'Placeholder'|translate}}</mat-label>
|
71
|
+
<input matInput formControlName="placeholder" />
|
72
|
+
</mat-form-field>
|
73
|
+
<mat-form-field>
|
74
|
+
<mat-label>{{'DataType'|translate}}</mat-label>
|
75
|
+
<mat-select formControlName="dataType" required>
|
76
|
+
@for (t of (datatypes|async)['_'].elements|sort: 'title'; track t) {
|
77
|
+
<mat-option [value]="t.name">
|
78
|
+
{{t.title}}
|
79
|
+
</mat-option>
|
80
|
+
}
|
81
|
+
@for (g of datatypes|async|sort: 'title'; track g) {
|
82
|
+
<mat-optgroup [label]="g.title">
|
83
|
+
@for (t of g.elements|sort: 'title'; track t) {
|
84
|
+
<mat-option [value]="t.name">
|
85
|
+
{{t.title}}
|
86
|
+
</mat-option>
|
87
|
+
}
|
88
|
+
</mat-optgroup>
|
89
|
+
}
|
90
|
+
</mat-select>
|
91
|
+
@if (form.controls.dataType.hasError('required')) {
|
92
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:'DataType'"></mat-error>
|
93
|
+
}
|
94
|
+
</mat-form-field>
|
95
|
+
</form>`, isInline: true, dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i10.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i10.MatOptgroup, selector: "mat-optgroup", inputs: ["label", "disabled"], exportAs: ["matOptgroup"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i11.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i12.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i13.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i14.ArraySortPipe, name: "sort" }, { kind: "pipe", type: i8.TranslatePipe, name: "translate" }] }); }
|
88
96
|
};
|
89
97
|
AutocompleteControlDesigner = __decorate([
|
90
98
|
BizDoc({ selector: 'autocomplete-control-designer' })
|
@@ -93,28 +101,36 @@ export { AutocompleteControlDesigner };
|
|
93
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: AutocompleteControlDesigner, decorators: [{
|
94
102
|
type: Component,
|
95
103
|
args: [{
|
96
|
-
template: `
|
97
|
-
<form autocomplete="off" [formGroup]="form" class="column">
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
<mat-form-field>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
104
|
+
template: `
|
105
|
+
<form autocomplete="off" [formGroup]="form" class="column">
|
106
|
+
<mat-checkbox formControlName="multiple">{{'Multiple'|translate}}</mat-checkbox>
|
107
|
+
<mat-form-field>
|
108
|
+
<mat-label>{{'Placeholder'|translate}}</mat-label>
|
109
|
+
<input matInput formControlName="placeholder" />
|
110
|
+
</mat-form-field>
|
111
|
+
<mat-form-field>
|
112
|
+
<mat-label>{{'DataType'|translate}}</mat-label>
|
113
|
+
<mat-select formControlName="dataType" required>
|
114
|
+
@for (t of (datatypes|async)['_'].elements|sort: 'title'; track t) {
|
115
|
+
<mat-option [value]="t.name">
|
116
|
+
{{t.title}}
|
117
|
+
</mat-option>
|
118
|
+
}
|
119
|
+
@for (g of datatypes|async|sort: 'title'; track g) {
|
120
|
+
<mat-optgroup [label]="g.title">
|
121
|
+
@for (t of g.elements|sort: 'title'; track t) {
|
122
|
+
<mat-option [value]="t.name">
|
123
|
+
{{t.title}}
|
124
|
+
</mat-option>
|
125
|
+
}
|
126
|
+
</mat-optgroup>
|
127
|
+
}
|
128
|
+
</mat-select>
|
129
|
+
@if (form.controls.dataType.hasError('required')) {
|
130
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:'DataType'"></mat-error>
|
131
|
+
}
|
132
|
+
</mat-form-field>
|
117
133
|
</form>`
|
118
134
|
}]
|
119
|
-
}], ctorParameters: () => [{ type: i9.SystemService }, { type:
|
120
|
-
//# sourceMappingURL=data:application/json;base64,
|
135
|
+
}], ctorParameters: () => [{ type: i9.SystemService }, { type: i2.FormBuilder }] });
|
136
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLmZpZWxkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9jb3JlL2ZpZWxkcy9hdXRvY29tcGxldGUuZmllbGQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2NvcmUvZmllbGRzL2F1dG9jb21wbGV0ZS5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBcUIsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQy9FLE9BQU8sRUFBZSxXQUFXLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFdEUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXZDLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLCtCQUErQixDQUFDO0FBR2pFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7Ozs7Ozs7Ozs7Oz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Jpbmd9fTwvbWF0LWxhYmVsPlxuICAgIDxiaXpkb2MtYXV0b2NvbXBsZXRlIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlciB8bG9jYWxpemVkU3RyaW5nXCIgW2Zvcm1Db250cm9sXT1jb250cm9sXG4gICAgW3JlcXVpcmVkXT1cInJlcXVpcmVkXCIgW3R5cGVdPVwiZGF0YVR5cGVcIj48L2JpemRvYy1hdXRvY29tcGxldGU+XG4gICAgQGlmIChoaW50KSB7XG4gICAgICA8bWF0LWhpbnQ+IHt7IGhpbnQgfGxvY2FsaXplZFN0cmluZ319PC9tYXQtaGludD5cbiAgICB9XG4gICAgQGlmIChjb250cm9sLmhhc0Vycm9yKCdyZXF1aXJlZCcpKSB7XG4gICAgICA8bWF0LWVycm9yIFtpbm5lckhUTUxdPVwiJ1JlcXVpcmVkRXJyJ3x0cmFuc2xhdGU6KGxhYmVsfGxvY2FsaXplZFN0cmluZylcIj48L21hdC1lcnJvcj5cbiAgICB9XG4gIDwvbWF0LWZvcm0tZmllbGQ+XG59IEBlbHNlIHtcbiAge3tjb250cm9sLnZhbHVlIHwgdHlwZVZhbHVlOiBkYXRhVHlwZSB8IGFzeW5jfX1cbn1cbiJdfQ==
|
@@ -4,13 +4,12 @@ import { FormControl, Validators } from '@angular/forms';
|
|
4
4
|
import { MatCheckbox } from '@angular/material/checkbox';
|
5
5
|
import { BizDoc } from '../decorators';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
-
import * as i1 from "@angular/
|
8
|
-
import * as i2 from "@angular/
|
9
|
-
import * as i3 from "@angular/material/
|
10
|
-
import * as i4 from "
|
11
|
-
import * as i5 from "../
|
12
|
-
import * as i6 from "../pipes/
|
13
|
-
import * as i7 from "../pipes/translate.pipe";
|
7
|
+
import * as i1 from "@angular/forms";
|
8
|
+
import * as i2 from "@angular/material/form-field";
|
9
|
+
import * as i3 from "@angular/material/checkbox";
|
10
|
+
import * as i4 from "../checkbox";
|
11
|
+
import * as i5 from "../pipes/localized-string.pipe";
|
12
|
+
import * as i6 from "../pipes/translate.pipe";
|
14
13
|
let CheckboxField = class CheckboxField {
|
15
14
|
constructor() {
|
16
15
|
this.control = new FormControl(false);
|
@@ -20,7 +19,7 @@ let CheckboxField = class CheckboxField {
|
|
20
19
|
this.required && this.control.addValidators(Validators.requiredTrue);
|
21
20
|
}
|
22
21
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: CheckboxField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: CheckboxField, selector: "ng-component", host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: MatCheckbox, descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n <div>\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n <mat-checkbox [formControl]=control> {{ label |localizedString}}</mat-checkbox>\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n </div>\n} @else {\n <bizdoc-checkbox [checked]=\"control.value\">{{label|localizedString}}</bizdoc-checkbox>\n}\n", dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4.CheckboxComponent, selector: "bizdoc-checkbox", inputs: ["checked", "color", "icon"] }, { kind: "pipe", type: i5.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
24
23
|
};
|
25
24
|
CheckboxField = __decorate([
|
26
25
|
BizDoc({ selector: 'checkbox-control' })
|
@@ -28,9 +27,9 @@ CheckboxField = __decorate([
|
|
28
27
|
export { CheckboxField };
|
29
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: CheckboxField, decorators: [{
|
30
29
|
type: Component,
|
31
|
-
args: [{ host: { class: 'field' }, template: "
|
30
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <div>\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n <mat-checkbox [formControl]=control> {{ label |localizedString}}</mat-checkbox>\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n </div>\n} @else {\n <bizdoc-checkbox [checked]=\"control.value\">{{label|localizedString}}</bizdoc-checkbox>\n}\n" }]
|
32
31
|
}], propDecorators: { input: [{
|
33
32
|
type: ViewChild,
|
34
33
|
args: [MatCheckbox]
|
35
34
|
}] } });
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3guZmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2NvcmUvZmllbGRzL2NoZWNrYm94LmZpZWxkLnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9jb3JlL2ZpZWxkcy9jaGVja2JveC5maWVsZ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IDxtYXQtaGludD4ge3sgaGludCB8bG9jYWxpemVkU3RyaW5nfX08L21hdC1oaW50PlxuICAgIH1cbiAgICA8bWF0LWNoZWNrYm94IFtmb3JtQ29udHJvbF09Y29udHJvbD4ge3sgbGFiZWwgfGxvY2FsaXplZFN0cmluZ319PC9tYXQtY2hlY2tib3g+XG4gICAgQGlmIChjb250cm9sLmhhc0Vycm9yKCdyZXF1aXJlZCcpKSB7XG4gICAgICA8bWF0LWVycm9yIFtpbm5lckhUTUxdPVwiJ1JlcXVpcmVkRXJyJ3x0cmFuc2xhdGU6KGxhYmVsfGxvY2FsaXplZFN0cmluZylcIj48L21hdC1lcnJvcj5cbiAgICB9XG4gIDwvZGl2PlxufSBAZWxzZSB7XG4gIDxiaXpkb2MtY2hlY2tib3ggW2NoZWNrZWRdPVwiY29udHJvbC52YWx1ZVwiPnt7bGFiZWx8bG9jYWxpemVkU3RyaW5nfX08L2JpemRvYy1jaGVja2JveD5cbn1cbiJdfQ==
|
@@ -5,14 +5,13 @@ import { OptionsControlDesigner } from './options.base';
|
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
import * as i1 from "../../admin/system.service";
|
7
7
|
import * as i2 from "@angular/forms";
|
8
|
-
import * as i3 from "@angular/
|
9
|
-
import * as i4 from "@angular/material/
|
10
|
-
import * as i5 from "@angular/material/
|
11
|
-
import * as i6 from "@angular/material/
|
12
|
-
import * as i7 from "
|
13
|
-
import * as i8 from "
|
14
|
-
import * as i9 from "../pipes/
|
15
|
-
import * as i10 from "../pipes/translate.pipe";
|
8
|
+
import * as i3 from "@angular/material/core";
|
9
|
+
import * as i4 from "@angular/material/form-field";
|
10
|
+
import * as i5 from "@angular/material/select";
|
11
|
+
import * as i6 from "@angular/material/checkbox";
|
12
|
+
import * as i7 from "./options.component";
|
13
|
+
import * as i8 from "../pipes/sort.pipe";
|
14
|
+
import * as i9 from "../pipes/translate.pipe";
|
16
15
|
let ChecklistControlDesigner = class ChecklistControlDesigner extends OptionsControlDesigner {
|
17
16
|
constructor(service, _fb) {
|
18
17
|
super(service);
|
@@ -28,25 +27,35 @@ let ChecklistControlDesigner = class ChecklistControlDesigner extends OptionsCon
|
|
28
27
|
this.model = model;
|
29
28
|
}
|
30
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ChecklistControlDesigner, deps: [{ token: i1.SystemService }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
31
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
32
|
-
<form autocomplete="off" [formGroup]="form" class="column">
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: ChecklistControlDesigner, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
31
|
+
<form autocomplete="off" [formGroup]="form" class="column">
|
32
|
+
<mat-checkbox formControlName="multiple">{{'Multiple'|translate}}</mat-checkbox>
|
33
|
+
@if (datatypes) {
|
34
|
+
<mat-form-field>
|
35
|
+
<mat-label>{{'DataType'|translate}}</mat-label>
|
36
|
+
<mat-select formControlName="dataType">
|
37
|
+
@for (t of datatypes['_'].elements|sort: 'title'; track t) {
|
38
|
+
<mat-option [value]="t.name">
|
39
|
+
{{t.title}}
|
40
|
+
</mat-option>
|
41
|
+
}
|
42
|
+
@for (g of datatypes|sort: 'title'; track g) {
|
43
|
+
<mat-optgroup [label]="g.title">
|
44
|
+
@for (t of g.elements|sort: 'title'; track t) {
|
45
|
+
<mat-option [value]="t.name">
|
46
|
+
{{t.title}}
|
47
|
+
</mat-option>
|
48
|
+
}
|
49
|
+
</mat-optgroup>
|
50
|
+
}
|
51
|
+
</mat-select>
|
52
|
+
@if (form.controls.dataType.hasError('required')) {
|
53
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:('DataType'|translate)"></mat-error>
|
54
|
+
}
|
55
|
+
</mat-form-field>
|
56
|
+
}
|
57
|
+
<bizdoc-design-options [form]="form" [model]="model"></bizdoc-design-options>
|
58
|
+
</form>`, isInline: true, dependencies: [{ kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i3.MatOptgroup, selector: "mat-optgroup", inputs: ["label", "disabled"], exportAs: ["matOptgroup"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i7.ControlOptionsComponent, selector: "bizdoc-design-options", inputs: ["form", "model"] }, { kind: "pipe", type: i8.ArraySortPipe, name: "sort" }, { kind: "pipe", type: i9.TranslatePipe, name: "translate" }] }); }
|
50
59
|
};
|
51
60
|
ChecklistControlDesigner = __decorate([
|
52
61
|
BizDoc({ selector: 'checklist-control-designer' })
|
@@ -55,25 +64,35 @@ export { ChecklistControlDesigner };
|
|
55
64
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ChecklistControlDesigner, decorators: [{
|
56
65
|
type: Component,
|
57
66
|
args: [{
|
58
|
-
template: `
|
59
|
-
<form autocomplete="off" [formGroup]="form" class="column">
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
67
|
+
template: `
|
68
|
+
<form autocomplete="off" [formGroup]="form" class="column">
|
69
|
+
<mat-checkbox formControlName="multiple">{{'Multiple'|translate}}</mat-checkbox>
|
70
|
+
@if (datatypes) {
|
71
|
+
<mat-form-field>
|
72
|
+
<mat-label>{{'DataType'|translate}}</mat-label>
|
73
|
+
<mat-select formControlName="dataType">
|
74
|
+
@for (t of datatypes['_'].elements|sort: 'title'; track t) {
|
75
|
+
<mat-option [value]="t.name">
|
76
|
+
{{t.title}}
|
77
|
+
</mat-option>
|
78
|
+
}
|
79
|
+
@for (g of datatypes|sort: 'title'; track g) {
|
80
|
+
<mat-optgroup [label]="g.title">
|
81
|
+
@for (t of g.elements|sort: 'title'; track t) {
|
82
|
+
<mat-option [value]="t.name">
|
83
|
+
{{t.title}}
|
84
|
+
</mat-option>
|
85
|
+
}
|
86
|
+
</mat-optgroup>
|
87
|
+
}
|
88
|
+
</mat-select>
|
89
|
+
@if (form.controls.dataType.hasError('required')) {
|
90
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:('DataType'|translate)"></mat-error>
|
91
|
+
}
|
92
|
+
</mat-form-field>
|
93
|
+
}
|
94
|
+
<bizdoc-design-options [form]="form" [model]="model"></bizdoc-design-options>
|
95
|
+
</form>`
|
77
96
|
}]
|
78
97
|
}], ctorParameters: () => [{ type: i1.SystemService }, { type: i2.FormBuilder }] });
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tsaXN0LmRlc2lnbmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9jb3JlL2ZpZWxkcy9jaGVja2xpc3QuZGVzaWduZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFJMUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV2QyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7Ozs7Ozs7QUFpQ2pELElBQU0sd0JBQXdCLEdBQTlCLE1BQU0sd0JBQXlCLFNBQVEsc0JBQXNCO0lBUWxFLFlBQ0UsT0FBc0IsRUFDZCxHQUFnQjtRQUN4QixLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFEUCxRQUFHLEdBQUgsR0FBRyxDQUFhO1FBUmpCLFNBQUksR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLEtBQU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uICB9KTtcclxuICBjb25zdHJ1Y3RvcihcclxuICAgIHNlcnZpY2U6IFN5c3RlbVNlcnZpY2UsXHJcbiAgICBwcml2YXRlIF9mYjogRm9ybUJ1aWxkZXIpIHtcclxuICAgIHN1cGVyKHNlcnZpY2UpO1xyXG4gIH1cclxuICBvbkJpbmQobW9kZWw6IENoZWNrbGlzdE1vZGVsKSB7XHJcbiAgICB0aGlzLm1vZGVsID0gbW9kZWw7XHJcbiAgfVxyXG59XHJcbmludGVyZmFjZSBDaGVja2xpc3RNb2RlbCB7XHJcbiAgbXVsdGlwbGU/OiBib29sZWFuO1xyXG4gIGRhdGFUeXBlPzogc3RyaW5nO1xyXG4gIGxhYmVsPzogc3RyaW5nO1xyXG4gIGhpbnQ/OiBzdHJpbmc7XHJcbiAgcmVxdWlyZWQ/OiBib29sZWFuO1xyXG4gIG9wdGlvbnM/OiB7IGtleTogc3RyaW5nOyB2YWx1ZTogTG9jYWxpemVkU3RyaW5nIH1bXTtcclxufVxyXG4iXX0=
|
@@ -5,12 +5,11 @@ import { MatSelectionList } from '@angular/material/list';
|
|
5
5
|
import { BizDoc } from '../decorators';
|
6
6
|
import { OptionsControlField } from './options.base';
|
7
7
|
import * as i0 from "@angular/core";
|
8
|
-
import * as i1 from "@angular/
|
9
|
-
import * as i2 from "@angular/
|
10
|
-
import * as i3 from "@angular/material/
|
11
|
-
import * as i4 from "
|
12
|
-
import * as i5 from "../pipes/
|
13
|
-
import * as i6 from "../pipes/translate.pipe";
|
8
|
+
import * as i1 from "@angular/forms";
|
9
|
+
import * as i2 from "@angular/material/list";
|
10
|
+
import * as i3 from "@angular/material/form-field";
|
11
|
+
import * as i4 from "../pipes/localized-string.pipe";
|
12
|
+
import * as i5 from "../pipes/translate.pipe";
|
14
13
|
let ChecklistField = class ChecklistField extends OptionsControlField {
|
15
14
|
constructor() {
|
16
15
|
super(...arguments);
|
@@ -19,7 +18,7 @@ let ChecklistField = class ChecklistField extends OptionsControlField {
|
|
19
18
|
}
|
20
19
|
focus() { this.input.focus(); }
|
21
20
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ChecklistField, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: ChecklistField, selector: "ng-component", inputs: { params: "params" }, host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: MatSelectionList, descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (mode==='compose') {\n <div>\n @if (label) {\n <mat-label>{{label |localizedString}}</mat-label>\n }\n <mat-selection-list [formControl]=\"control\" [multiple]=\"multiple\">\n @for (o of options; track o) {\n <mat-list-option [value]=\"o.key\">{{o.value|localizedString}}</mat-list-option>\n }\n </mat-selection-list>\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:((label|localizedString)||'')\"></mat-error>\n }\n </div>\n} @else {\n @if (control.value) {\n @for (o of control.value; track o; let index = $index) {\n @if (index>0) {\n , \n }\n {{optionOf(o)|localizedString}}\n }\n }\n}\n", dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatSelectionList, selector: "mat-selection-list", inputs: ["color", "compareWith", "multiple", "hideSingleSelectionIndicator", "disabled"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { kind: "component", type: i2.MatListOption, selector: "mat-list-option", inputs: ["togglePosition", "checkboxPosition", "color", "value", "selected"], outputs: ["selectedChange"], exportAs: ["matListOption"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "pipe", type: i4.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
|
23
22
|
};
|
24
23
|
ChecklistField = __decorate([
|
25
24
|
BizDoc({ selector: 'checklist-control' })
|
@@ -27,11 +26,11 @@ ChecklistField = __decorate([
|
|
27
26
|
export { ChecklistField };
|
28
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ChecklistField, decorators: [{
|
29
28
|
type: Component,
|
30
|
-
args: [{ host: { class: 'field' }, template: "
|
29
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <div>\n @if (label) {\n <mat-label>{{label |localizedString}}</mat-label>\n }\n <mat-selection-list [formControl]=\"control\" [multiple]=\"multiple\">\n @for (o of options; track o) {\n <mat-list-option [value]=\"o.key\">{{o.value|localizedString}}</mat-list-option>\n }\n </mat-selection-list>\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:((label|localizedString)||'')\"></mat-error>\n }\n </div>\n} @else {\n @if (control.value) {\n @for (o of control.value; track o; let index = $index) {\n @if (index>0) {\n , \n }\n {{optionOf(o)|localizedString}}\n }\n }\n}\n" }]
|
31
30
|
}], propDecorators: { params: [{
|
32
31
|
type: Input
|
33
32
|
}], input: [{
|
34
33
|
type: ViewChild,
|
35
34
|
args: [MatSelectionList]
|
36
35
|
}] } });
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tsaXN0LmZpZWxkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4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