@bizdoc/core 2.3.18 → 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 +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 +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 +11 -12
- 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/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 +3509 -3296
- 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 +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/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
@@ -5,9 +5,9 @@ import { BizDoc } from '../decorators';
|
|
5
5
|
import { isMobile } from '../functions';
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
import * as i1 from "@angular/forms";
|
8
|
-
import * as i2 from "@angular/
|
9
|
-
import * as i3 from "@angular/material/
|
10
|
-
import * as i4 from "
|
8
|
+
import * as i2 from "@angular/material/datepicker";
|
9
|
+
import * as i3 from "@angular/material/form-field";
|
10
|
+
import * as i4 from "../pipes/localized-string.pipe";
|
11
11
|
import * as i5 from "../pipes/daterange.pipe";
|
12
12
|
import * as i6 from "../pipes/translate.pipe";
|
13
13
|
let DateRangeField = class DateRangeField {
|
@@ -30,7 +30,7 @@ let DateRangeField = class DateRangeField {
|
|
30
30
|
this.inp.nativeElement.focus();
|
31
31
|
}
|
32
32
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DateRangeField, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
33
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: DateRangeField, selector: "ng-component", host: { classAttribute: "field" }, viewQueries: [{ propertyName: "inp", first: true, predicate: ["inp"], descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n<mat-form-field [appearance]=appearance>\n <mat-label>{{label }}</mat-label>\n <mat-date-range-input [formGroup]=\"control\" [rangePicker]=\"picker\"\n [required]=\"required\" [min]=\"min\" [max]=\"max\">\n <input matStartDate formControlName=\"start\" [placeholder]=\"startPlaceholder\" #inp>\n <input matEndDate formControlName=\"end\" [placeholder]=\"endPlaceholder\">\n </mat-date-range-input>\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker [touchUi]=\"isMobile\"></mat-date-range-picker>\n @if (hint) {\n <mat-hint> {{ hint }}</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<span>{{control.controls.start.value|dateRange:control.controls.end.value}}</span>\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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i2.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i2.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i2.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i2.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { 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: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "pipe", type: i4.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i5.DateRangePipe, name: "dateRange" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
34
34
|
};
|
35
35
|
DateRangeField = __decorate([
|
36
36
|
BizDoc({ selector: 'date-range-control' })
|
@@ -38,9 +38,9 @@ DateRangeField = __decorate([
|
|
38
38
|
export { DateRangeField };
|
39
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DateRangeField, decorators: [{
|
40
40
|
type: Component,
|
41
|
-
args: [{ host: { class: 'field' }, template: "<mat-form-field [appearance]=appearance
|
41
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n<mat-form-field [appearance]=appearance>\n <mat-label>{{label }}</mat-label>\n <mat-date-range-input [formGroup]=\"control\" [rangePicker]=\"picker\"\n [required]=\"required\" [min]=\"min\" [max]=\"max\">\n <input matStartDate formControlName=\"start\" [placeholder]=\"startPlaceholder\" #inp>\n <input matEndDate formControlName=\"end\" [placeholder]=\"endPlaceholder\">\n </mat-date-range-input>\n <mat-datepicker-toggle matSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker [touchUi]=\"isMobile\"></mat-date-range-picker>\n @if (hint) {\n <mat-hint> {{ hint }}</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<span>{{control.controls.start.value|dateRange:control.controls.end.value}}</span>\n}\n" }]
|
42
42
|
}], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { inp: [{
|
43
43
|
type: ViewChild,
|
44
44
|
args: ['inp']
|
45
45
|
}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IDxtYXQtZGF0ZXBpY2tlci10b2dnbGUgbWF0U3VmZml4IFtmb3JdPVwicGlja2VyXCI+PC9tYXQtZGF0ZXBpY2tlci10b2dnbGU+XG4gIDxtYXQtZGF0ZS1yYW5nZS1waWNrZXIgI3BpY2tlciBbdG91Y2hVaV09XCJpc01vYmlsZVwiPjwvbWF0LWRhdGUtcmFuZ2UtcGlja2VyPlxuICBAaWYgKGhpbnQpIHtcbiAgPG1hdC1oaW50PiB7eyBoaW50IH19PC9tYXQtaGludD5cbiAgfVxuICBAaWYgKGNvbnRyb2wuaGFzRXJyb3IoJ3JlcXVpcmVkJykpIHtcbiAgPG1hdC1lcnJvciBbaW5uZXJIVE1MXT1cIidSZXF1aXJlZEVycid8dHJhbnNsYXRlOihsYWJlbHxsb2NhbGl6ZWRTdHJpbmcpXCI+PC9tYXQtZXJyb3I+XG4gIH1cbjwvbWF0LWZvcm0tZmllbGQ+XG59IEBlbHNlIHtcbjxzcGFuPnt7Y29udHJvbC5jb250cm9scy5zdGFydC52YWx1ZXxkYXRlUmFuZ2U6Y29udHJvbC5jb250cm9scy5lbmQudmFsdWV9fTwvc3Bhbj5cbn1cbiJdfQ==
|
@@ -5,14 +5,13 @@ 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 "@angular/material/
|
11
|
-
import * as i4 from "@angular/material/
|
12
|
-
import * as i5 from "
|
13
|
-
import * as i6 from "../pipes/
|
14
|
-
import * as i7 from "../pipes/
|
15
|
-
import * as i8 from "../pipes/translate.pipe";
|
8
|
+
import * as i1 from "@angular/forms";
|
9
|
+
import * as i2 from "@angular/material/datepicker";
|
10
|
+
import * as i3 from "@angular/material/form-field";
|
11
|
+
import * as i4 from "@angular/material/input";
|
12
|
+
import * as i5 from "../pipes/localized-string.pipe";
|
13
|
+
import * as i6 from "../pipes/date-format.pipe";
|
14
|
+
import * as i7 from "../pipes/translate.pipe";
|
16
15
|
let DateField = class DateField {
|
17
16
|
constructor() {
|
18
17
|
this.isMobile = isMobile();
|
@@ -25,7 +24,7 @@ let DateField = class DateField {
|
|
25
24
|
this.max && this.control.addValidators(Validators.max(this.max));
|
26
25
|
}
|
27
26
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DateField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: DateField, 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 <input matInput [placeholder]=\"placeholder|localizedString\" [formControl]=control\n [required]=\"required\" [min]=\"min\" [max]=\"max\"\n [matDatepicker]=\"picker\" />\n <mat-datepicker-toggle [for]=\"picker\" matSuffix></mat-datepicker-toggle>\n <mat-datepicker #picker [touchUi]=\"isMobile\"></mat-datepicker>\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.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.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i2.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { 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: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.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.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i6.DateFormatPipe, name: "amDateFormat" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
|
29
28
|
};
|
30
29
|
DateField = __decorate([
|
31
30
|
BizDoc({ selector: 'date-control' })
|
@@ -33,9 +32,9 @@ DateField = __decorate([
|
|
33
32
|
export { DateField };
|
34
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DateField, decorators: [{
|
35
34
|
type: Component,
|
36
|
-
args: [{ host: { class: 'field' }, template: "<mat-form-field [appearance]=appearance
|
35
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label|localizedString}}</mat-label>\n <input matInput [placeholder]=\"placeholder|localizedString\" [formControl]=control\n [required]=\"required\" [min]=\"min\" [max]=\"max\"\n [matDatepicker]=\"picker\" />\n <mat-datepicker-toggle [for]=\"picker\" matSuffix></mat-datepicker-toggle>\n <mat-datepicker #picker [touchUi]=\"isMobile\"></mat-datepicker>\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" }]
|
37
36
|
}], propDecorators: { input: [{
|
38
37
|
type: ViewChild,
|
39
38
|
args: [MatInput]
|
40
39
|
}] } });
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS5maWVsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvZGF0ZS5maWVsZC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvZGF0ZS5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBQUUsV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ICA8bWF0LWRhdGVwaWNrZXItdG9nZ2xlIFtmb3JdPVwicGlja2VyXCIgbWF0U3VmZml4PjwvbWF0LWRhdGVwaWNrZXItdG9nZ2xlPlxuICAgICAgPG1hdC1kYXRlcGlja2VyICNwaWNrZXIgW3RvdWNoVWldPVwiaXNNb2JpbGVcIj48L21hdC1kYXRlcGlja2VyPlxuICAgICAgQGlmIChoaW50KSB7XG4gICAgICAgIDxtYXQtaGludD4ge3sgaGludHxsb2NhbGl6ZWRTdHJpbmcgfX08L21hdC1oaW50PlxuICAgICAgfVxuICAgICAgQGlmIChjb250cm9sLmhhc0Vycm9yKCdyZXF1aXJlZCcpKSB7XG4gICAgICAgIDxtYXQtZXJyb3IgW2lubmVySFRNTF09XCInUmVxdWlyZWRFcnInfHRyYW5zbGF0ZToobGFiZWx8bG9jYWxpemVkU3RyaW5nKVwiPjwvbWF0LWVycm9yPlxuICAgICAgfVxuICAgIDwvbWF0LWZvcm0tZmllbGQ+XG4gIH0gQGVsc2Uge1xuICAgIEBpZiAoY29udHJvbC52YWx1ZSkge1xuICAgICAgPHNwYW4+e3tjb250cm9sLnZhbHVlIHwgYW1EYXRlRm9ybWF0OiAnbGwnfX08L3NwYW4+XG4gICAgfVxuICB9XG4iXX0=
|
@@ -4,10 +4,10 @@ import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
4
4
|
import { AceInput } from '../../admin/core/ace.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 "
|
10
|
-
import * as i4 from "
|
7
|
+
import * as i1 from "@angular/forms";
|
8
|
+
import * as i2 from "@angular/material/form-field";
|
9
|
+
import * as i3 from "../../admin/core/ace.input";
|
10
|
+
import * as i4 from "../pipes/localized-string.pipe";
|
11
11
|
import * as i5 from "../pipes/translate.pipe";
|
12
12
|
let ExpressionField = class ExpressionField {
|
13
13
|
constructor() {
|
@@ -18,15 +18,19 @@ let ExpressionField = class ExpressionField {
|
|
18
18
|
}
|
19
19
|
focus() { this.input.focus(); }
|
20
20
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ExpressionField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
[params]="params"></bizdoc-ace-input>
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: ExpressionField, selector: "ng-component", inputs: { params: "params" }, host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: AceInput, descendants: true }], ngImport: i0, template: `<mat-form-field>
|
22
|
+
<mat-label >{{label }}</mat-label>
|
23
|
+
<bizdoc-ace-input
|
24
|
+
[placeholder]="placeholder" [formControl]=control
|
25
|
+
[required]="required"
|
26
|
+
[params]="params"></bizdoc-ace-input>
|
27
|
+
@if (hint) {
|
28
|
+
<mat-hint> {{ hint }}</mat-hint>
|
29
|
+
}
|
30
|
+
@if (control.hasError('required')) {
|
31
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:(label|localizedString)"></mat-error>
|
32
|
+
}
|
33
|
+
</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: "component", type: i3.AceInput, selector: "bizdoc-ace-input", inputs: ["params", "placeholder", "required", "disabled", "value"] }, { kind: "pipe", type: i4.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
|
30
34
|
};
|
31
35
|
ExpressionField = __decorate([
|
32
36
|
BizDoc({ selector: 'programmable-expression-control' })
|
@@ -36,15 +40,19 @@ export { ExpressionField };
|
|
36
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: ExpressionField, decorators: [{
|
37
41
|
type: Component,
|
38
42
|
args: [{
|
39
|
-
template: `<mat-form-field>
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
[params]="params"></bizdoc-ace-input>
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
template: `<mat-form-field>
|
44
|
+
<mat-label >{{label }}</mat-label>
|
45
|
+
<bizdoc-ace-input
|
46
|
+
[placeholder]="placeholder" [formControl]=control
|
47
|
+
[required]="required"
|
48
|
+
[params]="params"></bizdoc-ace-input>
|
49
|
+
@if (hint) {
|
50
|
+
<mat-hint> {{ hint }}</mat-hint>
|
51
|
+
}
|
52
|
+
@if (control.hasError('required')) {
|
53
|
+
<mat-error [innerHTML]="'RequiredErr'|translate:(label|localizedString)"></mat-error>
|
54
|
+
}
|
55
|
+
</mat-form-field>`,
|
48
56
|
host: { class: 'field' }
|
49
57
|
}]
|
50
58
|
}], propDecorators: { input: [{
|
@@ -76,4 +84,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImpor
|
|
76
84
|
template: ``
|
77
85
|
}]
|
78
86
|
}] });
|
79
|
-
//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VsZEFwcGVhcmFuY2U7XHJcbiAgICBtb2RlOiBWaWV3TW9kZTtcclxufVxyXG4iXX0=
|
@@ -4,12 +4,11 @@ import { FormControl, Validators } from '@angular/forms';
|
|
4
4
|
import { FileInput } from '../inputs/file.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 "
|
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/form-field";
|
9
|
+
import * as i3 from "../inputs/file.input";
|
10
|
+
import * as i4 from "../pipes/localized-string.pipe";
|
11
|
+
import * as i5 from "../pipes/translate.pipe";
|
13
12
|
let FileField = class FileField {
|
14
13
|
constructor() {
|
15
14
|
this.control = new FormControl();
|
@@ -20,7 +19,7 @@ let FileField = class FileField {
|
|
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: FileField, 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: FileField, selector: "ng-component", viewQueries: [{ propertyName: "input", first: true, predicate: FileInput, descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label |localizedString}}</mat-label>\n <bizdoc-file-upload [formControl]=control [placeholder]=\"placeholder|localizedString\"\n [required]=\"required\" [multiple]=\"multiple\"></bizdoc-file-upload>\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 <span>\n </span>\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.FileInput, selector: "bizdoc-file-upload", inputs: ["multiple", "accept", "icon", "value", "placeholder", "required", "disabled"] }, { kind: "pipe", type: i4.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
|
24
23
|
};
|
25
24
|
FileField = __decorate([
|
26
25
|
BizDoc({ selector: 'file-control' })
|
@@ -28,9 +27,9 @@ FileField = __decorate([
|
|
28
27
|
export { FileField };
|
29
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: FileField, decorators: [{
|
30
29
|
type: Component,
|
31
|
-
args: [{ template: "
|
30
|
+
args: [{ template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label |localizedString}}</mat-label>\n <bizdoc-file-upload [formControl]=control [placeholder]=\"placeholder|localizedString\"\n [required]=\"required\" [multiple]=\"multiple\"></bizdoc-file-upload>\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 <span>\n </span>\n}\n" }]
|
32
31
|
}], propDecorators: { input: [{
|
33
32
|
type: ViewChild,
|
34
33
|
args: [FileInput]
|
35
34
|
}] } });
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS5maWVsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvZmlsZS5maWVsZC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvZmlsZS5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQWUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBR3RFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7Ozs7O0FBTWhDLElBQU0sU0FBUyxHQUFmLE1BQU0sU0FBUztJQUFmO1FBVUksWUFBTyxHQUFHLElBQUksV0FBVyxFQUFFLENBQUM7S0FLdEM7SUFQQyxLQUFLO0lBQ0wsQ0FBQztJQUdELFFBQVE7UUFDTixJQUFJLENBQUMsUUFBUSxJQUFJLElBQUksQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNuRSxDQ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3x0cmFuc2xhdGU6KGxhYmVsfGxvY2FsaXplZFN0cmluZylcIj48L21hdC1lcnJvcj5cbiAgICB9XG4gIDwvbWF0LWZvcm0tZmllbGQ+XG59IEBlbHNlIHtcbiAgPHNwYW4+XG4gIDwvc3Bhbj5cbn1cbiJdfQ==
|
@@ -4,13 +4,12 @@ import { FormControl, Validators } from '@angular/forms';
|
|
4
4
|
import { RichTextEditorComponent, ToolbarType } from '@syncfusion/ej2-angular-richtexteditor';
|
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 "@
|
10
|
-
import * as i4 from "
|
11
|
-
import * as i5 from "../pipes/
|
12
|
-
import * as i6 from "../pipes/
|
13
|
-
import * as i7 from "../pipes/sanitize-html.pipe";
|
7
|
+
import * as i1 from "@angular/forms";
|
8
|
+
import * as i2 from "@syncfusion/ej2-angular-richtexteditor";
|
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";
|
12
|
+
import * as i6 from "../pipes/sanitize-html.pipe";
|
14
13
|
let HtmlField = class HtmlField {
|
15
14
|
constructor() {
|
16
15
|
this.toolbarSettings = {
|
@@ -29,7 +28,7 @@ let HtmlField = class HtmlField {
|
|
29
28
|
this.maxLength && this.control.addValidators(Validators.maxLength(this.maxLength));
|
30
29
|
}
|
31
30
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: HtmlField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
31
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: HtmlField, selector: "ng-component", host: { classAttribute: "field" }, viewQueries: [{ propertyName: "input", first: true, predicate: RichTextEditorComponent, descendants: true }], ngImport: i0, template: "@if (mode==='compose') {\n <div class=\"flex\">\n <mat-label>{{label |localizedString}}</mat-label>\n <ejs-richtexteditor [formControl]=control [toolbarSettings]=\"toolbarSettings\"\n [placeholder]=\"placeholder|localizedString\" [maxlength]=\"maxLength\"\n [required]=\"required\" width=\"100%\"></ejs-richtexteditor>\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 </div>\n} @else {\n <p [innerHTML]=\"control.value|sanitizeHtml\"></p>\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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.RichTextEditorComponent, selector: "ejs-richtexteditor", inputs: ["autoSaveOnIdle", "backgroundColor", "bulletFormatList", "cssClass", "editorMode", "emojiPickerSettings", "enableAutoUrl", "enableHtmlEncode", "enableHtmlSanitizer", "enablePersistence", "enableResize", "enableRtl", "enableTabKey", "enableXhtml", "enabled", "enterKey", "fileManagerSettings", "floatingToolbarOffset", "fontColor", "fontFamily", "fontSize", "format", "formatPainterSettings", "formatter", "height", "htmlAttributes", "iframeSettings", "inlineMode", "insertAudioSettings", "insertImageSettings", "insertVideoSettings", "keyConfig", "locale", "maxLength", "numberFormatList", "pasteCleanupSettings", "placeholder", "quickToolbarSettings", "readonly", "saveInterval", "shiftEnterKey", "showCharCount", "showTooltip", "tableSettings", "toolbarSettings", "undoRedoSteps", "undoRedoTimer", "value", "valueTemplate", "width"], outputs: ["actionBegin", "actionComplete", "afterImageDelete", "afterMediaDelete", "afterPasteCleanup", "beforeDialogClose", "beforeDialogOpen", "beforeFileUpload", "beforeImageDrop", "beforeImageUpload", "beforePasteCleanup", "beforeQuickToolbarOpen", "beforeSanitizeHtml", "blur", "change", "created", "destroyed", "dialogClose", "dialogOpen", "fileRemoving", "fileSelected", "fileUploadFailed", "fileUploadSuccess", "fileUploading", "focus", "imageRemoving", "imageSelected", "imageUploadFailed", "imageUploadSuccess", "imageUploading", "quickToolbarClose", "quickToolbarOpen", "resizeStart", "resizeStop", "resizing", "toolbarClick", "toolbarStatusUpdate", "updatedToolbarStatus", "valueChange"] }, { 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" }, { kind: "pipe", type: i6.SanitizeHtmlPipe, name: "sanitizeHtml" }] }); }
|
33
32
|
};
|
34
33
|
HtmlField = __decorate([
|
35
34
|
BizDoc({ selector: 'html-control' })
|
@@ -37,9 +36,9 @@ HtmlField = __decorate([
|
|
37
36
|
export { HtmlField };
|
38
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: HtmlField, decorators: [{
|
39
38
|
type: Component,
|
40
|
-
args: [{ host: { class: 'field' }, template: "
|
39
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <div class=\"flex\">\n <mat-label>{{label |localizedString}}</mat-label>\n <ejs-richtexteditor [formControl]=control [toolbarSettings]=\"toolbarSettings\"\n [placeholder]=\"placeholder|localizedString\" [maxlength]=\"maxLength\"\n [required]=\"required\" width=\"100%\"></ejs-richtexteditor>\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 </div>\n} @else {\n <p [innerHTML]=\"control.value|sanitizeHtml\"></p>\n}\n" }]
|
41
40
|
}], propDecorators: { input: [{
|
42
41
|
type: ViewChild,
|
43
42
|
args: [RichTextEditorComponent]
|
44
43
|
}] } });
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbC5maWVsZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvaHRtbC5maWVsZC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnJhcmllcy9jb3JlL3NyYy9saWIvY29yZS9maWVsZHMvaHRtbC5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXpELE9BQU8sRUFBRSx1QkFBdUIsRUFBd0IsV0FBVyxFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFFcEgsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7QUFPaEMsSUFBTSxTQUFTLEdBQWYsTUFBTSxTQUFTO0lBQWY7UUFVSSxvQkF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RlPT09J2NvbXBvc2UnKSB7XG4gIDxkaXYgY2xhc3M9XCJmbGV4XCI+XG4gICAgPG1hdC1sYWJlbD57e2xhYmVsIHxsb2NhbGl6ZWRTdHJpbmd9fTwvbWF0LWxhYmVsPlxuICAgIDxlanMtcmljaHRleHRlZGl0b3IgW2Zvcm1Db250cm9sXT1jb250cm9sIFt0b29sYmFyU2V0dGluZ3NdPVwidG9vbGJhclNldHRpbmdzXCJcbiAgICAgIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlcnxsb2NhbGl6ZWRTdHJpbmdcIiBbbWF4bGVuZ3RoXT1cIm1heExlbmd0aFwiXG4gICAgW3JlcXVpcmVkXT1cInJlcXVpcmVkXCIgd2lkdGg9XCIxMDAlXCI+PC9lanMtcmljaHRleHRlZGl0b3I+XG4gICAgQGlmIChjb250cm9sLmhhc0Vycm9yKCdyZXF1aXJlZCcpKSB7XG4gICAgICA8bWF0LWVycm9yIFtpbm5lckhUTUxdPVwiJ1JlcXVpcmVkRXJyJ3x0cmFuc2xhdGU6KGxhYmVsfGxvY2FsaXplZFN0cmluZylcIj48L21hdC1lcnJvcj5cbiAgICB9XG4gICAgQGlmIChoaW50KSB7XG4gICAgICA8bWF0LWhpbnQ+IHt7IGhpbnQgfGxvY2FsaXplZFN0cmluZ319PC9tYXQtaGludD5cbiAgICB9XG4gICAgQGlmIChtYXhMZW5ndGgpIHtcbiAgICAgIDxtYXQtaGludCBhbGlnbj1cImVuZFwiPnt7Y29udHJvbC52YWx1ZT8ubGVuZ3RoIHx8IDB9fSAvIHt7bWF4TGVuZ3RofX08L21hdC1oaW50PlxuICAgIH1cbiAgPC9kaXY+XG59IEBlbHNlIHtcbiAgPHAgW2lubmVySFRNTF09XCJjb250cm9sLnZhbHVlfHNhbml0aXplSHRtbFwiPjwvcD5cbn1cbiJdfQ==
|
@@ -5,12 +5,11 @@ import { MatInput } from '@angular/material/input';
|
|
5
5
|
import { BizDoc } from '../decorators';
|
6
6
|
import { FieldKind } from '../models';
|
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/form-field";
|
10
|
+
import * as i3 from "@angular/material/input";
|
11
|
+
import * as i4 from "../pipes/localized-string.pipe";
|
12
|
+
import * as i5 from "../pipes/translate.pipe";
|
14
13
|
let InputField = class InputField {
|
15
14
|
constructor() {
|
16
15
|
this.control = new FormControl();
|
@@ -39,7 +38,7 @@ let InputField = class InputField {
|
|
39
38
|
}
|
40
39
|
focus() { this.input.focus(); }
|
41
40
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: InputField, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
42
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.1.1", type: InputField, 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 <input matInput [formControl]=control [placeholder]=\"placeholder|localizedString\"\n [required]=\"required\" [minlength]=\"minLength\" [maxlength]=\"maxLength\" [pattern]=\"pattern\" />\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 @if (control.hasError('minLength')) {\n <mat-error [innerHTML]=\"'MinLengthErr'|translate:(label|localizedString):minLength\"></mat-error>\n }\n @if (control.hasError('maxLength')) {\n <mat-error [innerHTML]=\"'MaxLengthErr'|translate:(label|localizedString):maxLength\"></mat-error>\n }\n @if (control.hasError('email')) {\n <mat-error [innerHTML]=\"'EmailErr'|translate:(label|localizedString)\"></mat-error>\n }\n @if (control.hasError('pattern')) {\n <mat-error [innerHTML]=\"'PatternErr'|translate:(label|localizedString)\"></mat-error>\n }\n </mat-form-field>\n } @else {\n @switch (kind) {\n @case ('PhoneNumber') {\n <a [href]=\"'tel:'+control.value\">{{control.value}}</a>\n }\n @case ('EmailAddress') {\n <a [href]=\"control.value\">{{control.value}}</a>\n }\n @case ('Url') {\n <a [href]=\"control.value\">{{control.value}}</a>\n }\n @case ('Password') {\n <span>\n </span>\n }\n @default {\n <span>{{control.value}}</span>\n }\n }\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: "pipe", type: i4.LocalizedStringPipe, name: "localizedString" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
|
43
42
|
};
|
44
43
|
InputField = __decorate([
|
45
44
|
BizDoc({ selector: 'text-control' })
|
@@ -47,9 +46,9 @@ InputField = __decorate([
|
|
47
46
|
export { InputField };
|
48
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: InputField, decorators: [{
|
49
48
|
type: Component,
|
50
|
-
args: [{ host: { class: 'field' }, template: "<mat-form-field [appearance]=appearance
|
49
|
+
args: [{ host: { class: 'field' }, template: "@if (mode==='compose') {\n <mat-form-field [appearance]=appearance>\n <mat-label>{{label |localizedString}}</mat-label>\n <input matInput [formControl]=control [placeholder]=\"placeholder|localizedString\"\n [required]=\"required\" [minlength]=\"minLength\" [maxlength]=\"maxLength\" [pattern]=\"pattern\" />\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 @if (control.hasError('minLength')) {\n <mat-error [innerHTML]=\"'MinLengthErr'|translate:(label|localizedString):minLength\"></mat-error>\n }\n @if (control.hasError('maxLength')) {\n <mat-error [innerHTML]=\"'MaxLengthErr'|translate:(label|localizedString):maxLength\"></mat-error>\n }\n @if (control.hasError('email')) {\n <mat-error [innerHTML]=\"'EmailErr'|translate:(label|localizedString)\"></mat-error>\n }\n @if (control.hasError('pattern')) {\n <mat-error [innerHTML]=\"'PatternErr'|translate:(label|localizedString)\"></mat-error>\n }\n </mat-form-field>\n } @else {\n @switch (kind) {\n @case ('PhoneNumber') {\n <a [href]=\"'tel:'+control.value\">{{control.value}}</a>\n }\n @case ('EmailAddress') {\n <a [href]=\"control.value\">{{control.value}}</a>\n }\n @case ('Url') {\n <a [href]=\"control.value\">{{control.value}}</a>\n }\n @case ('Password') {\n <span>\n </span>\n }\n @default {\n <span>{{control.value}}</span>\n }\n }\n }\n" }]
|
51
50
|
}], propDecorators: { input: [{
|
52
51
|
type: ViewChild,
|
53
52
|
args: [MatInput]
|
54
53
|
}] } });
|
55
|
-
//# sourceMappingURL=data:application/json;base64,
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuZmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJyYXJpZXMvY29yZS9zcmMvbGliL2NvcmUvZmllbGRzL2lucHV0LmZpZWxkLnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicmFyaWVzL2NvcmUvc3JjL2xpYi9jb3JlL2ZpZWxkcy9pbnB1dC5maWVsZC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3RCxPQUFPLEVBQWUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRXRFLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVuRCxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxXQUFXLENBQUM7Ozs7Ozs7QUFPL0Is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