@bizdoc/core 2.3.18 → 2.3.21
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/assets/themes/brown.min.css +4 -4
- package/assets/themes/dark.min.css +4 -4
- package/assets/themes/deep-purple-light-blue.min.css +4 -4
- package/assets/themes/deep-purple-teal.min.css +4 -4
- package/assets/themes/default.min.css +4 -4
- package/assets/themes/green.min.css +4 -4
- package/assets/themes/indigo.min.css +4 -4
- 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 +4 -4
- 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 +30 -24
- 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 +7 -1
- 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/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 +4 -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 +10 -8
- 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 +11 -12
- package/esm2022/lib/dashboard/recents/recents.widget.mjs +14 -13
- 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/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 +6 -6
- package/esm2022/lib/views/cube/chart.component.mjs +6 -7
- package/esm2022/lib/views/cube/cube-base.mjs +11 -6
- package/esm2022/lib/views/cube/explore.component.mjs +10 -10
- package/esm2022/lib/views/cube/matrix.component.mjs +13 -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 +199 -200
- package/esm2022/lib/views/views.component.mjs +4 -5
- package/esm2022/lib/views/views.pane.component.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/bizdoc-core.mjs +3552 -3319
- 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/browse/browse-items.component.d.ts +1 -1
- package/lib/compose/attachments/attachments.component.d.ts +2 -2
- package/lib/compose/compose.pane.component.d.ts +4 -2
- package/lib/core/animations.d.ts +1 -0
- 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/translations.d.ts +2 -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/cube-base.d.ts +1 -1
- package/lib/views/cube/sum.component.d.ts +1 -0
- package/lib/views/timeline/timeline.component.exp.d.ts +12 -4
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
@@ -4,13 +4,12 @@ import { FormControl, Validators } from '@angular/forms';
|
|
4
4
|
import { MatInput } from '@angular/material/input';
|
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 "@angular/
|
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/input";
|
10
|
+
import * as i4 from "@angular/cdk/text-field";
|
11
|
+
import * as i5 from "../pipes/localized-string.pipe";
|
12
|
+
import * as i6 from "../pipes/translate.pipe";
|
14
13
|
let TextareaField = class TextareaField {
|
15
14
|
constructor() {
|
16
15
|
this.control = new FormControl();
|
@@ -22,7 +21,7 @@ let TextareaField = class TextareaField {
|
|
22
21
|
}
|
23
22
|
focus() { this.input.focus(); }
|
24
23
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: TextareaField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: TextareaField, selector: "ng-component", host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: MatInput, descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance class=\"flex\">\n <mat-label>{{label |localizedString}}</mat-label>\n <textarea matInput [formControl]=control cdkTextareaAutosize [placeholder]=\"placeholder|localizedString\"\n [required]=\"required\" [minlength]=\"minLength\" [maxlength]=\"maxLength\" [pattern]=\"pattern\"></textarea>\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n @if (maxLength) {\n <mat-hint align=\"end\">{{control.value?.length || 0}} / {{maxLength}}</mat-hint>\n }\n </mat-form-field>\n} @else {\n <p [innerHTML]=\"control.value\"></p>\n}\n", dependencies: [{ kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: ["minlength"] }, { kind: "directive", type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.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: "directive", type: i4.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "pipe", type: i5.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
26
25
|
};
|
27
26
|
TextareaField = __decorate([
|
28
27
|
BizDoc({ selector: 'textarea-control' })
|
@@ -30,9 +29,9 @@ TextareaField = __decorate([
|
|
30
29
|
export { TextareaField };
|
31
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: TextareaField, decorators: [{
|
32
31
|
type: Component,
|
33
|
-
args: [{ host: { class: 'field' }, template: "<mat-form-field [appearance]=appearance
|
32
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance class=\"flex\">\n <mat-label>{{label |localizedString}}</mat-label>\n <textarea matInput [formControl]=control cdkTextareaAutosize [placeholder]=\"placeholder|localizedString\"\n [required]=\"required\" [minlength]=\"minLength\" [maxlength]=\"maxLength\" [pattern]=\"pattern\"></textarea>\n @if (control.hasError('required')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n @if (maxLength) {\n <mat-hint align=\"end\">{{control.value?.length || 0}} / {{maxLength}}</mat-hint>\n }\n </mat-form-field>\n} @else {\n <p [innerHTML]=\"control.value\"></p>\n}\n" }]
|
34
33
|
}], propDecorators: { input: [{
|
35
34
|
type: ViewChild,
|
36
35
|
args: [MatInput]
|
37
36
|
}] } });
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEuZmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2NvcmUvZmllbGRzL3RleHRhcmVhLmZpZWxkLnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9jb3JlL2ZpZWxkcy90ZXh0YXJlYS5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXpELE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVuRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7OztBQU9oQyxJQUFNLGFBQWEsR0FBbkIsTUFBTSxhQUFhO0lBQW5CO1FBaUJJLFlBQU8sR0FBRyxJQUFJLFdBQVcsRUFBRSxDQUFDO0tBQ3RDO0lBUkMsUUFBUTtRQUNOLElBQUksQ0FBQyxTQUFTLElBQUksSUFBSSxDQUFDLE9B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sLnZhbHVlPy5sZW5ndGggfHwgMH19IC8ge3ttYXhMZW5ndGh9fTwvbWF0LWhpbnQ+XG4gICAgfVxuICA8L21hdC1mb3JtLWZpZWxkPlxufSBAZWxzZSB7XG4gIDxwIFtpbm5lckhUTUxdPVwiY29udHJvbC52YWx1ZVwiPjwvcD5cbn1cbiJdfQ==
|
@@ -5,13 +5,12 @@ import { MatInput } from '@angular/material/input';
|
|
5
5
|
import { BizDoc } from '../decorators';
|
6
6
|
import { isMobile } from '../functions';
|
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 "
|
11
|
-
import * as i4 from "../
|
12
|
-
import * as i5 from "../pipes/
|
13
|
-
import * as i6 from "../pipes/
|
14
|
-
import * as i7 from "../pipes/translate.pipe";
|
8
|
+
import * as i1 from "@angular/forms";
|
9
|
+
import * as i2 from "@angular/material/form-field";
|
10
|
+
import * as i3 from "../inputs/time-picker";
|
11
|
+
import * as i4 from "../pipes/localized-string.pipe";
|
12
|
+
import * as i5 from "../pipes/date-format.pipe";
|
13
|
+
import * as i6 from "../pipes/translate.pipe";
|
15
14
|
let TimeField = class TimeField {
|
16
15
|
constructor() {
|
17
16
|
this.isMobile = isMobile();
|
@@ -24,7 +23,7 @@ let TimeField = class TimeField {
|
|
24
23
|
this.max && this.control.addValidators(Validators.max(this.max));
|
25
24
|
}
|
26
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: TimeField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: TimeField, selector: "ng-component", host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: MatInput, descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label|localizedString}}</mat-label>\n <mat-time-picker [placeholder]=\"placeholder|localizedString\" [formControl]=control\n [required]=\"required\">\n </mat-time-picker>\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 @if (control.value) {\n <span>{{control.value | amDateFormat: 'll'}}</span>\n }\n}\n", dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { 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.TimePicker, selector: "mat-time-picker", inputs: ["dateControlName", "placeholder", "required", "disabled", "value"] }, { kind: "pipe", type: i4.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i5.DateFormatPipe, name: "amDateFormat" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
28
27
|
};
|
29
28
|
TimeField = __decorate([
|
30
29
|
BizDoc({ selector: 'time-control' })
|
@@ -32,9 +31,9 @@ TimeField = __decorate([
|
|
32
31
|
export { TimeField };
|
33
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: TimeField, decorators: [{
|
34
33
|
type: Component,
|
35
|
-
args: [{ host: { class: 'field' }, template: "<mat-form-field [appearance]=appearance
|
34
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label|localizedString}}</mat-label>\n <mat-time-picker [placeholder]=\"placeholder|localizedString\" [formControl]=control\n [required]=\"required\">\n </mat-time-picker>\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 @if (control.value) {\n <span>{{control.value | amDateFormat: 'll'}}</span>\n }\n}\n" }]
|
36
35
|
}], propDecorators: { input: [{
|
37
36
|
type: ViewChild,
|
38
37
|
args: [MatInput]
|
39
38
|
}] } });
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS5maWVsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvdGltZS5maWVsZC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvdGltZS5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXpELE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVuRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQ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InfHRyYW5zbGF0ZToobGFiZWx8bG9jYWxpemVkU3RyaW5nKVwiPjwvbWF0LWVycm9yPlxuICAgIH1cbiAgPC9tYXQtZm9ybS1maWVsZD5cbn0gQGVsc2Uge1xuICBAaWYgKGNvbnRyb2wudmFsdWUpIHtcbiAgICA8c3Bhbj57e2NvbnRyb2wudmFsdWUgfCBhbURhdGVGb3JtYXQ6ICdsbCd9fTwvc3Bhbj5cbiAgfVxufVxuIl19
|
@@ -4,13 +4,12 @@ import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
4
4
|
import { TimespanInput } from '../inputs/timespan.input';
|
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/icon";
|
10
|
+
import * as i4 from "../inputs/timespan.input";
|
11
|
+
import * as i5 from "../pipes/localized-string.pipe";
|
12
|
+
import * as i6 from "../pipes/translate.pipe";
|
14
13
|
let TimespanField = class TimespanField {
|
15
14
|
constructor() {
|
16
15
|
this.control = new FormControl();
|
@@ -20,15 +19,19 @@ let TimespanField = class TimespanField {
|
|
20
19
|
this.required && this.control.addValidators(Validators.required);
|
21
20
|
}
|
22
21
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: TimespanField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
24
|
-
|
25
|
-
<bizdoc-timespan-input
|
26
|
-
[placeholder]="placeholder|localizedString" [formControl]=control
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: TimespanField, selector: "ng-component", host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: TimespanInput, descendants: true }], ngImport: i0, template: `<mat-form-field [appearance]=appearance>
|
23
|
+
<mat-label >{{label |localizedString}}</mat-label>
|
24
|
+
<bizdoc-timespan-input
|
25
|
+
[placeholder]="placeholder|localizedString" [formControl]=control
|
26
|
+
[required]="required"></bizdoc-timespan-input>
|
27
|
+
<mat-icon matSuffix>timer</mat-icon>
|
28
|
+
@if (hint) {
|
29
|
+
<mat-hint> {{ hint |localizedString}}</mat-hint>
|
30
|
+
}
|
31
|
+
@if (control.hasError('required')) {
|
32
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:(label|localizedString)"></mat-error>
|
33
|
+
}
|
34
|
+
</mat-form-field>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.TimespanInput, selector: "bizdoc-timespan-input", inputs: ["placeholder", "required", "disabled", "value"] }, { kind: "pipe", type: i5.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
32
35
|
};
|
33
36
|
TimespanField = __decorate([
|
34
37
|
BizDoc({ selector: 'timespan-control' })
|
@@ -37,15 +40,19 @@ export { TimespanField };
|
|
37
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: TimespanField, decorators: [{
|
38
41
|
type: Component,
|
39
42
|
args: [{
|
40
|
-
template: `<mat-form-field [appearance]=appearance>
|
41
|
-
|
42
|
-
<bizdoc-timespan-input
|
43
|
-
[placeholder]="placeholder|localizedString" [formControl]=control
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
template: `<mat-form-field [appearance]=appearance>
|
44
|
+
<mat-label >{{label |localizedString}}</mat-label>
|
45
|
+
<bizdoc-timespan-input
|
46
|
+
[placeholder]="placeholder|localizedString" [formControl]=control
|
47
|
+
[required]="required"></bizdoc-timespan-input>
|
48
|
+
<mat-icon matSuffix>timer</mat-icon>
|
49
|
+
@if (hint) {
|
50
|
+
<mat-hint> {{ hint |localizedString}}</mat-hint>
|
51
|
+
}
|
52
|
+
@if (control.hasError('required')) {
|
53
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:(label|localizedString)"></mat-error>
|
54
|
+
}
|
55
|
+
</mat-form-field>`,
|
49
56
|
host: { class: 'field' }
|
50
57
|
}]
|
51
58
|
}], propDecorators: { input: [{
|
@@ -69,4 +76,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImpor
|
|
69
76
|
type: Component,
|
70
77
|
args: [{ template: `` }]
|
71
78
|
}] });
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
79
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HBlYXJhbmNlO1xyXG4gIG1vZGU6IFZpZXdNb2RlO1xyXG4gIHBsYWNlaG9sZGVyPzogc3RyaW5nO1xyXG4gIGxhYmVsPzogc3RyaW5nO1xyXG4gIGhpbnQ/OiBzdHJpbmc7XHJcbiAgcmVxdWlyZWQ/OiBib29sZWFuO1xyXG4gIEBWaWV3Q2hpbGQoVGltZXNwYW5JbnB1dCkgaW5wdXQ6IFRpbWVzcGFuSW5wdXQ7XHJcbiAgcmVhZG9ubHkgY29udHJvbCA9IG5ldyBGb3JtQ29udHJvbCgpO1xyXG4gIGZvY3VzKCkgeyB0aGlzLmlucHV0LmZvY3VzKCk7IH1cclxuICBuZ09uSW5pdCgpOiB2b2lkIHtcclxuICAgIHRoaXMucmVxdWlyZWQgJiYgdGhpcy5jb250cm9sLmFkZFZhbGlkYXRvcnMoVmFsaWRhdG9ycy5yZXF1aXJlZCk7XHJcbiAgfVxyXG59XHJcbkBDb21wb25lbnQoe3RlbXBsYXRlOiBgYH0pXHJcbkBCaXpEb2MoeyBzZWxlY3RvcjogJ3RpbWVzcGFuLWNvbnRyb2wtZGVzaWduZXInIH0pXHJcbmV4cG9ydCBjbGFzcyBUaW1lc3BhbkNvbnRyb2xEZXNpZ25lciBpbXBsZW1lbnRzIENvbnRyb2xEZXNpZ25lciwgT25Jbml0IHtcclxuICAgIG5nT25Jbml0KCk6IHZvaWQge1xyXG4gICAgfVxyXG4gICAgYXBwZWFyYW5jZT86IE1hdEZvcm1GaWVsZEFwcGVhcmFuY2U7XHJcbiAgICBtb2RlOiBWaWV3TW9kZTtcclxuICByZWFkb25seSBmb3JtID0gbmV3IEZvcm1Hcm91cCh7fSk7XHJcblxyXG59XHJcbiJdfQ==
|
@@ -5,12 +5,11 @@ 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 "
|
12
|
-
import * as i7 from "../pipes/
|
13
|
-
import * as i8 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 "../pipes/sort.pipe";
|
12
|
+
import * as i7 from "../pipes/translate.pipe";
|
14
13
|
let YesNoControlDesigner = class YesNoControlDesigner extends OptionsControlDesigner {
|
15
14
|
constructor(service, _fb) {
|
16
15
|
super(service);
|
@@ -22,30 +21,38 @@ let YesNoControlDesigner = class YesNoControlDesigner extends OptionsControlDesi
|
|
22
21
|
});
|
23
22
|
}
|
24
23
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: YesNoControlDesigner, deps: [{ token: i1.SystemService }, { token: i2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
26
|
-
<form autocomplete="off" [formGroup]="form" class="column">
|
27
|
-
|
28
|
-
<mat-
|
29
|
-
|
30
|
-
<mat-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: YesNoControlDesigner, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
25
|
+
<form autocomplete="off" [formGroup]="form" class="column">
|
26
|
+
@if (datatypes) {
|
27
|
+
<mat-form-field>
|
28
|
+
<mat-label>{{'DataType'|translate}}</mat-label>
|
29
|
+
<mat-select formControlName="dataType">
|
30
|
+
@for (t of datatypes['_'].elements|sort: 'title'; track t) {
|
31
|
+
<mat-option [value]="t.name">
|
32
|
+
{{t.title}}
|
33
|
+
</mat-option>
|
34
|
+
}
|
35
|
+
@for (g of datatypes|sort: 'title'; track g) {
|
36
|
+
<mat-optgroup [label]="g.title">
|
37
|
+
@for (t of g.elements|sort: 'title'; track t) {
|
38
|
+
<mat-option [value]="t.name">
|
39
|
+
{{t.title}}
|
40
|
+
</mat-option>
|
41
|
+
}
|
42
|
+
</mat-optgroup>
|
43
|
+
}
|
44
|
+
</mat-select>
|
45
|
+
</mat-form-field>
|
46
|
+
}
|
47
|
+
<mat-form-field>
|
48
|
+
<mat-label>{{'DefaultValue'|translate}}</mat-label>
|
49
|
+
<mat-select formControlName="defaultValue">
|
50
|
+
<mat-option>{{'None'|translate}}</mat-option>
|
51
|
+
<mat-option [value]="true">{{'Yes'|translate}}</mat-option>
|
52
|
+
<mat-option [value]="false">{{'No'|translate}}</mat-option>
|
53
|
+
</mat-select>
|
54
|
+
</mat-form-field>
|
55
|
+
</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: "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: "pipe", type: i6.ArraySortPipe, name: "sort" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
|
49
56
|
};
|
50
57
|
YesNoControlDesigner = __decorate([
|
51
58
|
BizDoc({ selector: 'yesno-control-designer' })
|
@@ -54,30 +61,38 @@ export { YesNoControlDesigner };
|
|
54
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: YesNoControlDesigner, decorators: [{
|
55
62
|
type: Component,
|
56
63
|
args: [{
|
57
|
-
template: `
|
58
|
-
<form autocomplete="off" [formGroup]="form" class="column">
|
59
|
-
|
60
|
-
<mat-
|
61
|
-
|
62
|
-
<mat-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
64
|
+
template: `
|
65
|
+
<form autocomplete="off" [formGroup]="form" class="column">
|
66
|
+
@if (datatypes) {
|
67
|
+
<mat-form-field>
|
68
|
+
<mat-label>{{'DataType'|translate}}</mat-label>
|
69
|
+
<mat-select formControlName="dataType">
|
70
|
+
@for (t of datatypes['_'].elements|sort: 'title'; track t) {
|
71
|
+
<mat-option [value]="t.name">
|
72
|
+
{{t.title}}
|
73
|
+
</mat-option>
|
74
|
+
}
|
75
|
+
@for (g of datatypes|sort: 'title'; track g) {
|
76
|
+
<mat-optgroup [label]="g.title">
|
77
|
+
@for (t of g.elements|sort: 'title'; track t) {
|
78
|
+
<mat-option [value]="t.name">
|
79
|
+
{{t.title}}
|
80
|
+
</mat-option>
|
81
|
+
}
|
82
|
+
</mat-optgroup>
|
83
|
+
}
|
84
|
+
</mat-select>
|
85
|
+
</mat-form-field>
|
86
|
+
}
|
87
|
+
<mat-form-field>
|
88
|
+
<mat-label>{{'DefaultValue'|translate}}</mat-label>
|
89
|
+
<mat-select formControlName="defaultValue">
|
90
|
+
<mat-option>{{'None'|translate}}</mat-option>
|
91
|
+
<mat-option [value]="true">{{'Yes'|translate}}</mat-option>
|
92
|
+
<mat-option [value]="false">{{'No'|translate}}</mat-option>
|
93
|
+
</mat-select>
|
94
|
+
</mat-form-field>
|
95
|
+
</form>`
|
81
96
|
}]
|
82
97
|
}], ctorParameters: () => [{ type: i1.SystemService }, { type: i2.FormBuilder }] });
|
83
|
-
//# sourceMappingURL=data:application/json;base64,
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWVzbm8uZGVzaWduZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2NvcmUvZmllbGRzL3llc25vLmRlc2lnbmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBSTFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7Ozs7Ozs7OztBQW9DakQsSUFBTSxvQkFBb0IsR0FBMUIsTUFBTSxvQkFBc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yZmFjZSBZZXNOb01vZGVsIHtcclxuICBkYXRhVHlwZT86IHN0cmluZztcclxuICBoaW50Pzogc3RyaW5nO1xyXG4gIHJlcXVpcmVkPzogYm9vbGVhbjtcclxuICBkZWZhdWx0VmFsdWU/OiBib29sZWFuO1xyXG59XHJcbiJdfQ==
|
@@ -4,12 +4,11 @@ import { FormControl, Validators } from '@angular/forms';
|
|
4
4
|
import { MatRadioButton } from '@angular/material/radio';
|
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 "../pipes/
|
12
|
-
import * as i6 from "../pipes/translate.pipe";
|
7
|
+
import * as i1 from "@angular/forms";
|
8
|
+
import * as i2 from "@angular/material/radio";
|
9
|
+
import * as i3 from "@angular/material/form-field";
|
10
|
+
import * as i4 from "../pipes/localized-string.pipe";
|
11
|
+
import * as i5 from "../pipes/translate.pipe";
|
13
12
|
let YesNoField = class YesNoField {
|
14
13
|
constructor() {
|
15
14
|
this.control = new FormControl(false);
|
@@ -19,7 +18,7 @@ let YesNoField = class YesNoField {
|
|
19
18
|
this.required && this.control.addValidators(Validators.requiredTrue);
|
20
19
|
}
|
21
20
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: YesNoField, deps: [], 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: YesNoField, selector: "ng-component", host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: MatRadioButton, descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n <div>\n <!-- <mat-label *ngIf=label>{{label|localizedString}}</mat-label>-->\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n <mat-radio-group [formControl]=control>\n <mat-radio-button [value]=\"true\">{{'Yes'|translate}}</mat-radio-button>\n <mat-radio-button [value]=\"false\">{{'No'|translate}}</mat-radio-button>\n </mat-radio-group>\n @if (control.hasError('requiredTrue')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n </div>\n} @else {\n {{(control.value?'Yes':'No')|translate}}\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.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i2.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color"], outputs: ["change"], exportAs: ["matRadioButton"] }, { 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
|
YesNoField = __decorate([
|
25
24
|
BizDoc({ selector: 'yesno-control' })
|
@@ -27,9 +26,9 @@ YesNoField = __decorate([
|
|
27
26
|
export { YesNoField };
|
28
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: YesNoField, decorators: [{
|
29
28
|
type: Component,
|
30
|
-
args: [{ host: { class: 'field' }, template: "
|
29
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <div>\n <!-- <mat-label *ngIf=label>{{label|localizedString}}</mat-label>-->\n @if (hint) {\n <mat-hint> {{ hint |localizedString}}</mat-hint>\n }\n <mat-radio-group [formControl]=control>\n <mat-radio-button [value]=\"true\">{{'Yes'|translate}}</mat-radio-button>\n <mat-radio-button [value]=\"false\">{{'No'|translate}}</mat-radio-button>\n </mat-radio-group>\n @if (control.hasError('requiredTrue')) {\n <mat-error [innerHTML]=\"'RequiredErr'|translate:(label|localizedString)\"></mat-error>\n }\n </div>\n} @else {\n {{(control.value?'Yes':'No')|translate}}\n}\n" }]
|
31
30
|
}], propDecorators: { input: [{
|
32
31
|
type: ViewChild,
|
33
32
|
args: [MatRadioButton]
|
34
33
|
}] } });
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieWVzbm8uZmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2NvcmUvZmllbGRzL3llc25vLmZpZWxkLnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9jb3JlL2ZpZWxkcy95ZXNuby5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ3pELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUV6RCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7O0FBT2hDLElBQU0sVUFBVSxHQUFoQixNQUFNLFVBQVU7SUFBa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