barsa-develop-components 0.0.2
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/README.md +25 -0
- package/esm2020/barsa-develop-components.mjs +5 -0
- package/esm2020/lib/avatar/avatar.component.mjs +19 -0
- package/esm2020/lib/barcode-format-pipe.mjs +24 -0
- package/esm2020/lib/barcode-reader/barcode-reader.component.mjs +64 -0
- package/esm2020/lib/barcode-reader-dialog/barcode-reader-dialog.component.mjs +82 -0
- package/esm2020/lib/barcode-reader-video/barcode-reader-video.component.mjs +66 -0
- package/esm2020/lib/barcode.service.mjs +330 -0
- package/esm2020/lib/barsa-develop-components.module.mjs +224 -0
- package/esm2020/lib/card-content-image-and-title/card-content-image-and-title.component.mjs +50 -0
- package/esm2020/lib/card-content-line-chart/card-content-line-chart.component.mjs +38 -0
- package/esm2020/lib/card-header-big-image-title-and-subtitle/card-header-big-image-title-and-subtitle.component.mjs +20 -0
- package/esm2020/lib/card-header-kpi/card-header-kpi.component.mjs +36 -0
- package/esm2020/lib/card-header-logo-title-subtitle/card-header-logo-title-subtitle.component.mjs +46 -0
- package/esm2020/lib/checkbox-button/checkbox-button.component.mjs +23 -0
- package/esm2020/lib/enum-info-micro-proccess-flow/enum-info-micro-proccess-flow.component.mjs +17 -0
- package/esm2020/lib/form-chart-content/form-chart-content.component.mjs +38 -0
- package/esm2020/lib/form-content-quick-view/form-content-quick-view.component.mjs +51 -0
- package/esm2020/lib/g4b-details/g4b-details.component.mjs +28 -0
- package/esm2020/lib/g4b-estelam/g4b-estelam.component.mjs +30 -0
- package/esm2020/lib/login-form/login-form.component.mjs +49 -0
- package/esm2020/lib/login-social-conncetions/login-social-conncetions.component.mjs +30 -0
- package/esm2020/lib/micro-proccess-flow/micro-proccess-flow.component.mjs +48 -0
- package/esm2020/lib/micro-process-flow-view/micro-process-flow-view.component.mjs +24 -0
- package/esm2020/lib/mo-info-micro-proccess-flow/mo-info-micro-proccess-flow.component.mjs +23 -0
- package/esm2020/lib/models/models.mjs +2 -0
- package/esm2020/lib/models/person.mjs +2 -0
- package/esm2020/lib/pipes/datasource-to-flow-item.mjs +22 -0
- package/esm2020/lib/pipes/index.mjs +3 -0
- package/esm2020/lib/pipes/mo-list-to-flow-item.pipe.mjs +22 -0
- package/esm2020/lib/query-string-form-observable/query-string-form-observable.component.mjs +37 -0
- package/esm2020/lib/query-string-observable/query-string-observable.component.mjs +22 -0
- package/esm2020/lib/report-line-chart-view/report-line-chart-view.component.mjs +13 -0
- package/esm2020/lib/report-tab-view/report-tab-view.component.mjs +27 -0
- package/esm2020/lib/resend-verification-code/resend-verification-code.component.mjs +59 -0
- package/esm2020/lib/service-desk-card-content-mojavezhay-akhz-shode/service-desk-card-content-mojavezhay-akhz-shode.component.mjs +28 -0
- package/esm2020/lib/service-desk-form-layout-content-mojavez/service-desk-form-layout-content-mojavez.component.mjs +110 -0
- package/esm2020/lib/service-desk-header/service-desk-header.component.mjs +229 -0
- package/esm2020/lib/service-desk-servcie-detail/service-desk-servcie-detail.component.mjs +147 -0
- package/esm2020/lib/service-desk-view-of-services/service-desk-view-of-services.component.mjs +22 -0
- package/esm2020/lib/setting-form/setting-form.component.mjs +66 -0
- package/esm2020/lib/tab-process-view/tab-process-view.component.mjs +41 -0
- package/esm2020/lib/table-view-vertical-columns/table-view-vertical-columns.component.mjs +15 -0
- package/esm2020/lib/timer-count-down/timer-count-down.component.mjs +79 -0
- package/esm2020/lib/ui-enum-segmented-button/ui-enum-segmented-button.component.mjs +25 -0
- package/esm2020/lib/ui-num-rate/ui-num-rate.component.mjs +18 -0
- package/esm2020/lib/ui-person/ui-person.component.mjs +160 -0
- package/esm2020/lib/ui-person/ui-person.pipe.mjs +40 -0
- package/esm2020/lib/ui-pictures-carousel/ui-pictures-carousel.component.mjs +17 -0
- package/esm2020/lib/ui-text-field-search/ui-text-field-search.component.mjs +30 -0
- package/esm2020/lib/ulv-context-menu-item-show-file-content/ulv-context-menu-item-show-file-content.component.mjs +70 -0
- package/esm2020/public-api.mjs +47 -0
- package/fesm2015/barsa-develop-components.mjs +2368 -0
- package/fesm2015/barsa-develop-components.mjs.map +1 -0
- package/fesm2020/barsa-develop-components.mjs +2344 -0
- package/fesm2020/barsa-develop-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/avatar/avatar.component.d.ts +9 -0
- package/lib/barcode-format-pipe.d.ts +7 -0
- package/lib/barcode-reader/barcode-reader.component.d.ts +19 -0
- package/lib/barcode-reader-dialog/barcode-reader-dialog.component.d.ts +32 -0
- package/lib/barcode-reader-video/barcode-reader-video.component.d.ts +22 -0
- package/lib/barcode.service.d.ts +98 -0
- package/lib/barsa-develop-components.module.d.ts +94 -0
- package/lib/card-content-image-and-title/card-content-image-and-title.component.d.ts +21 -0
- package/lib/card-content-line-chart/card-content-line-chart.component.d.ts +9 -0
- package/lib/card-header-big-image-title-and-subtitle/card-header-big-image-title-and-subtitle.component.d.ts +6 -0
- package/lib/card-header-kpi/card-header-kpi.component.d.ts +14 -0
- package/lib/card-header-logo-title-subtitle/card-header-logo-title-subtitle.component.d.ts +23 -0
- package/lib/checkbox-button/checkbox-button.component.d.ts +13 -0
- package/lib/enum-info-micro-proccess-flow/enum-info-micro-proccess-flow.component.d.ts +8 -0
- package/lib/form-chart-content/form-chart-content.component.d.ts +9 -0
- package/lib/form-content-quick-view/form-content-quick-view.component.d.ts +13 -0
- package/lib/g4b-details/g4b-details.component.d.ts +9 -0
- package/lib/g4b-estelam/g4b-estelam.component.d.ts +11 -0
- package/lib/login-form/login-form.component.d.ts +15 -0
- package/lib/login-social-conncetions/login-social-conncetions.component.d.ts +12 -0
- package/lib/micro-proccess-flow/micro-proccess-flow.component.d.ts +22 -0
- package/lib/micro-process-flow-view/micro-process-flow-view.component.d.ts +14 -0
- package/lib/mo-info-micro-proccess-flow/mo-info-micro-proccess-flow.component.d.ts +9 -0
- package/lib/models/models.d.ts +19 -0
- package/lib/models/person.d.ts +10 -0
- package/lib/pipes/datasource-to-flow-item.d.ts +10 -0
- package/lib/pipes/index.d.ts +2 -0
- package/lib/pipes/mo-list-to-flow-item.pipe.d.ts +10 -0
- package/lib/query-string-form-observable/query-string-form-observable.component.d.ts +13 -0
- package/lib/query-string-observable/query-string-observable.component.d.ts +9 -0
- package/lib/report-line-chart-view/report-line-chart-view.component.d.ts +7 -0
- package/lib/report-tab-view/report-tab-view.component.d.ts +15 -0
- package/lib/resend-verification-code/resend-verification-code.component.d.ts +18 -0
- package/lib/service-desk-card-content-mojavezhay-akhz-shode/service-desk-card-content-mojavezhay-akhz-shode.component.d.ts +15 -0
- package/lib/service-desk-form-layout-content-mojavez/service-desk-form-layout-content-mojavez.component.d.ts +26 -0
- package/lib/service-desk-header/service-desk-header.component.d.ts +57 -0
- package/lib/service-desk-servcie-detail/service-desk-servcie-detail.component.d.ts +39 -0
- package/lib/service-desk-view-of-services/service-desk-view-of-services.component.d.ts +12 -0
- package/lib/setting-form/setting-form.component.d.ts +23 -0
- package/lib/tab-process-view/tab-process-view.component.d.ts +19 -0
- package/lib/table-view-vertical-columns/table-view-vertical-columns.component.d.ts +6 -0
- package/lib/timer-count-down/timer-count-down.component.d.ts +15 -0
- package/lib/ui-enum-segmented-button/ui-enum-segmented-button.component.d.ts +9 -0
- package/lib/ui-num-rate/ui-num-rate.component.d.ts +8 -0
- package/lib/ui-person/ui-person.component.d.ts +31 -0
- package/lib/ui-person/ui-person.pipe.d.ts +7 -0
- package/lib/ui-pictures-carousel/ui-pictures-carousel.component.d.ts +6 -0
- package/lib/ui-text-field-search/ui-text-field-search.component.d.ts +14 -0
- package/lib/ulv-context-menu-item-show-file-content/ulv-context-menu-item-show-file-content.component.d.ts +25 -0
- package/package.json +31 -0
- package/public-api.d.ts +43 -0
|
@@ -0,0 +1,2368 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, Input, ViewChild, Injectable, EventEmitter, Output, Pipe, HostBinding, HostListener, RendererStyleFlags2, ElementRef, ViewEncapsulation, ViewChildren, ViewContainerRef, NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import * as i3$3 from 'barsa-sap-ui';
|
|
4
|
+
import { DeviceInfoFieldBaseComponent, UiMoInfoSubFormUiComponent, UiCheckBoxComponent, UiMoInfoUlvComboComponent, UiSimpleComboComponent, UiPicturesInfoComponent, UiNumIntUiComponent, BarsaSapUiModule } from 'barsa-sap-ui';
|
|
5
|
+
import * as i1 from '@fundamental-ngx/core/toolbar';
|
|
6
|
+
import * as i2 from '@fundamental-ngx/platform/shared';
|
|
7
|
+
import * as i3 from '@fundamental-ngx/platform/search-field';
|
|
8
|
+
import { takeUntil, shareReplay, filter, map, debounceTime, tap, exhaustMap, concatMap, finalize, delay } from 'rxjs/operators';
|
|
9
|
+
import * as i1$2 from 'barsa-novin-ray-core';
|
|
10
|
+
import { ReportViewBaseComponent, FieldBaseComponent, FormBaseComponent, FormPanelService, BaseComponent, BarsaApi, ReportBaseComponent, BaseItemContentPropsComponent, FormPropsBaseComponent, BaseFormToolbaritemPropsComponent, DateService, getDateService, LogService, UploadService, BaseModule, BarsaNovinRayCoreModule } from 'barsa-novin-ray-core';
|
|
11
|
+
import * as i1$3 from '@fundamental-ngx/core';
|
|
12
|
+
import { TabListComponent, PopoverBodyComponent, TabPanelComponent, FundamentalNgxCoreModule } from '@fundamental-ngx/core';
|
|
13
|
+
import * as i1$1 from '@angular/common';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
|
+
import * as i2$1 from '@fundamental-ngx/core/tabs';
|
|
16
|
+
import * as i2$2 from '@angular/forms';
|
|
17
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
18
|
+
import * as i5 from '@fundamental-ngx/core/button';
|
|
19
|
+
import * as i4 from '@fundamental-ngx/core/segmented-button';
|
|
20
|
+
import * as i3$1 from '@fundamental-ngx/core/micro-process-flow';
|
|
21
|
+
import * as i3$2 from '@fundamental-ngx/platform/button';
|
|
22
|
+
import * as i5$1 from '@fundamental-ngx/core/dynamic-side-content';
|
|
23
|
+
import { BehaviorSubject, Subject, of, takeUntil as takeUntil$1 } from 'rxjs';
|
|
24
|
+
import { __awaiter } from 'tslib';
|
|
25
|
+
import { NotFoundException, ChecksumException, FormatException, DecodeHintType, BarcodeFormat } from '@zxing/library';
|
|
26
|
+
import { BrowserMultiFormatReader, BrowserCodeReader } from '@zxing/browser';
|
|
27
|
+
import * as i6 from '@fundamental-ngx/core/bar';
|
|
28
|
+
import * as i5$2 from '@fundamental-ngx/core/dialog';
|
|
29
|
+
import * as i6$1 from '@fundamental-ngx/core/title';
|
|
30
|
+
import * as i12 from '@fundamental-ngx/core/utils';
|
|
31
|
+
import * as i8 from '@fundamental-ngx/core/select';
|
|
32
|
+
import * as i3$4 from '@fundamental-ngx/platform/form';
|
|
33
|
+
import * as i4$1 from '@fundamental-ngx/core/link';
|
|
34
|
+
import * as i5$3 from '@fundamental-ngx/core/card';
|
|
35
|
+
import * as i7 from '@fundamental-ngx/core/form';
|
|
36
|
+
import * as i3$5 from '@fundamental-ngx/core/icon';
|
|
37
|
+
import * as i9 from '@fundamental-ngx/core/list';
|
|
38
|
+
import * as i13 from '@fundamental-ngx/core/popover';
|
|
39
|
+
import * as i4$2 from '@fundamental-ngx/core/quick-view';
|
|
40
|
+
import * as i15 from '@fundamental-ngx/core/table';
|
|
41
|
+
import * as i5$4 from '@fundamental-ngx/core/layout-grid';
|
|
42
|
+
import * as i2$3 from 'barsa-tiles';
|
|
43
|
+
import { TilesViewerContainerComponent, TilesViewerService, TilesViewerGroupComponent, BarsaTilesModule } from 'barsa-tiles';
|
|
44
|
+
import * as i4$3 from '@angular/router';
|
|
45
|
+
import * as i4$4 from '@fundamental-ngx/core/avatar';
|
|
46
|
+
import * as i7$1 from '@fundamental-ngx/core/checkbox';
|
|
47
|
+
import * as i3$6 from '@fundamental-ngx/core/dynamic-page';
|
|
48
|
+
import * as i3$7 from '@angular/platform-browser';
|
|
49
|
+
import * as i2$4 from 'barsa-echarts';
|
|
50
|
+
import { BarsaEchartsModule } from 'barsa-echarts';
|
|
51
|
+
import * as i7$2 from '@fundamental-ngx/core/object-status';
|
|
52
|
+
import * as i4$5 from '@fundamental-ngx/core/carousel';
|
|
53
|
+
import * as i1$4 from '@fundamental-ngx/core/rating-indicator';
|
|
54
|
+
import { FundamentalNgxPlatformModule } from '@fundamental-ngx/platform';
|
|
55
|
+
|
|
56
|
+
class UiTextFieldSearchComponent extends DeviceInfoFieldBaseComponent {
|
|
57
|
+
get MinSize() {
|
|
58
|
+
// this call from outside.corejs
|
|
59
|
+
return { width: 0, height: 30 };
|
|
60
|
+
}
|
|
61
|
+
onSearchSubmit($event) {
|
|
62
|
+
this._valueChange($event.text);
|
|
63
|
+
}
|
|
64
|
+
_valueChange(value) {
|
|
65
|
+
this.value = value;
|
|
66
|
+
this.valueChange.emit(this.value);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
UiTextFieldSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiTextFieldSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
+
UiTextFieldSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: UiTextFieldSearchComponent, selector: "bdc-ui-text-field-search", inputs: { value: "value", MinSize: "MinSize" }, usesInheritance: true, ngImport: i0, template: "<fdp-search-field\n fd-toolbar-item\n style=\"width: 100%\"\n placeholder=\"\u0639\u0628\u0627\u0631\u062A \u062C\u0633\u062A\u062C\u0648\"\n [inputText]=\"value\"\n [suggestions]=\"[]\"\n [contentDensity]=\"'compact'\"\n (searchSubmit)=\"onSearchSubmit($event)\"\n></fdp-search-field>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.ToolbarItemDirective, selector: "[fd-toolbar-item]" }, { kind: "directive", type: i2.PlatformContentDensityDeprecationDirective, selector: " fdp-action-bar[contentDensity], fdp-button[contentDensity], fdp-object-list-item[contentDensity], fdp-standard-list-item[contentDensity], fdp-menu[contentDensity], fdp-menu-button[contentDensity], fdp-panel[contentDensity], fdp-search-field[contentDensity], fdp-split-menu-button[contentDensity], fdp-file-uploader[contentDensity], fdp-upload-collection[contentDensity], fdp-table[contentDensity], fdp-multi-input[contentDensity], fdp-list[contentDensity], fdp-slider[contentDensity], fdp-time-picker[contentDensity], fdp-textarea[contentDensity], fdp-switch[contentDensity], fdp-number-step-input[contentDensity], fdp-select[contentDensity], fdp-date-picker[contentDensity], fdp-checkbox[contentDensity], fdp-checkbox-group[contentDensity], fdp-combobox[contentDensity], fdp-datetime-picker[contentDensity], fdp-input[contentDensity], fdp-radio-group[contentDensity], fdp-radio-button[contentDensity], fdp-multi-combobox[contentDensity], fdp-input-group-addon-body[contentDensity], fdp-input-group[contentDensity], fdp-value-help-dialog[contentDensity], fdp-filter-single-select[contentDensity], fdp-filter-multi-select[contentDensity], fdp-filter-custom[contentDensity] " }, { kind: "component", type: i3.SearchFieldComponent, selector: "fdp-search-field", inputs: ["placeholder", "mobile", "mobileConfig", "disableRefresh", "suggestions", "dataSource", "inputText", "categories", "currentCategory", "categoryLabel", "hideCategoryLabel", "isLoading", "ariaLabel", "ariaLabelledby", "searchSuggestionMessage", "searchSuggestionNavigateMessage"], outputs: ["inputChange", "searchSubmit", "cancelSearch", "isOpenChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiTextFieldSearchComponent, decorators: [{
|
|
72
|
+
type: Component,
|
|
73
|
+
args: [{ selector: 'bdc-ui-text-field-search', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fdp-search-field\n fd-toolbar-item\n style=\"width: 100%\"\n placeholder=\"\u0639\u0628\u0627\u0631\u062A \u062C\u0633\u062A\u062C\u0648\"\n [inputText]=\"value\"\n [suggestions]=\"[]\"\n [contentDensity]=\"'compact'\"\n (searchSubmit)=\"onSearchSubmit($event)\"\n></fdp-search-field>\n" }]
|
|
74
|
+
}], propDecorators: { value: [{
|
|
75
|
+
type: Input
|
|
76
|
+
}], MinSize: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}] } });
|
|
79
|
+
|
|
80
|
+
class TabProcessViewComponent extends ReportViewBaseComponent {
|
|
81
|
+
ngOnInit() {
|
|
82
|
+
super.ngOnInit();
|
|
83
|
+
this.arrowRight = this.rtl ? 'navigation-left-arrow' : 'navigation-right-arrow';
|
|
84
|
+
this.fieldTitle = this.viewSetting.FieldTitle;
|
|
85
|
+
this.fieldSubtitle = this.viewSetting.FieldSubtitle;
|
|
86
|
+
this.fieldIcon = this.viewSetting.FieldIcon;
|
|
87
|
+
this.defaultIcon = this.viewSetting.DefaultIcon;
|
|
88
|
+
this._ulvMainService.moDataList$.pipe(takeUntil(this._onDestroy$)).subscribe((moDataList) => {
|
|
89
|
+
if (moDataList) {
|
|
90
|
+
const selectedIndex = moDataList.findIndex((c) => c.$IsChecked);
|
|
91
|
+
if (this.tabList && selectedIndex > -1) {
|
|
92
|
+
setTimeout(() => this.tabList.tabPanels.toArray()[selectedIndex].open(true), 0);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
onTabChange(e) {
|
|
98
|
+
const index = this.moDataList.findIndex((c) => c.Id === e.id);
|
|
99
|
+
const mo = this.moDataList[index];
|
|
100
|
+
super.onRowCheck({ mo, index });
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
TabProcessViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TabProcessViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
TabProcessViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TabProcessViewComponent, selector: "bdc-tab-process-view", viewQueries: [{ propertyName: "tabList", first: true, predicate: TabListComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<fd-tab-list mode=\"process\" (selectedTabChange)=\"onTabChange($event)\">\r\n <fd-tab\r\n *ngFor=\"let item of moDataList; let index = index; let last = last\"\r\n [id]=\"item.Id\"\r\n [active]=\"item.$IsChecked\"\r\n >\r\n <ng-template fd-tab-title-template>\r\n <span\r\n fd-tab-icon\r\n [icon]=\"(fieldIcon | rval: item:allColumns) ? (fieldIcon | rval: item:allColumns) : defaultIcon\"\r\n ></span>\r\n <div fd-tab-process>\r\n <span fd-tab-label>{{ fieldTitle | rval: item:allColumns }}</span>\r\n <span fd-tab-label>{{ fieldSubtitle | rval: item:allColumns }}</span>\r\n </div>\r\n </ng-template>\r\n </fd-tab>\r\n</fd-tab-list>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$1.TabListComponent, selector: "fd-tab-list", inputs: ["size", "mode", "collapseOverflow", "maxVisibleTabs", "stackContent", "maxContentHeight", "collapsibleTabs", "expandOverflowText", "defaultTab", "selectDefaultOnTabsChange"], outputs: ["selectedTabChange", "visibleItemsCount", "hiddenItemsCount"] }, { kind: "component", type: i2$1.TabPanelComponent, selector: "fd-tab", inputs: ["id", "ariaLabel", "ariaLabelledBy", "title", "count", "glyph", "header", "disabled", "tabState"], outputs: ["opened", "closed"] }, { kind: "directive", type: i2$1.TabTitleDirective, selector: "[fdTabTitleTemplate], [fd-tab-title-template]" }, { kind: "component", type: i2$1.TabIconComponent, selector: "[fd-tab-icon]", inputs: ["class", "icon"] }, { kind: "directive", type: i2$1.TabLabelDirective, selector: "[fdTabLabel], [fd-tab-label]" }, { kind: "directive", type: i2$1.TabProcessDirective, selector: "[fdTabProcess], [fd-tab-process]" }, { kind: "pipe", type: i1$2.MoReportValuePipe, name: "rval" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TabProcessViewComponent, decorators: [{
|
|
106
|
+
type: Component,
|
|
107
|
+
args: [{ selector: 'bdc-tab-process-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-tab-list mode=\"process\" (selectedTabChange)=\"onTabChange($event)\">\r\n <fd-tab\r\n *ngFor=\"let item of moDataList; let index = index; let last = last\"\r\n [id]=\"item.Id\"\r\n [active]=\"item.$IsChecked\"\r\n >\r\n <ng-template fd-tab-title-template>\r\n <span\r\n fd-tab-icon\r\n [icon]=\"(fieldIcon | rval: item:allColumns) ? (fieldIcon | rval: item:allColumns) : defaultIcon\"\r\n ></span>\r\n <div fd-tab-process>\r\n <span fd-tab-label>{{ fieldTitle | rval: item:allColumns }}</span>\r\n <span fd-tab-label>{{ fieldSubtitle | rval: item:allColumns }}</span>\r\n </div>\r\n </ng-template>\r\n </fd-tab>\r\n</fd-tab-list>\r\n" }]
|
|
108
|
+
}], propDecorators: { tabList: [{
|
|
109
|
+
type: ViewChild,
|
|
110
|
+
args: [TabListComponent]
|
|
111
|
+
}] } });
|
|
112
|
+
|
|
113
|
+
class UiEnumSegmentedButtonComponent extends FieldBaseComponent {
|
|
114
|
+
onValueChange(value) {
|
|
115
|
+
const selectedValue = value;
|
|
116
|
+
this.setValue(selectedValue);
|
|
117
|
+
}
|
|
118
|
+
setValue(selectedValue) {
|
|
119
|
+
this.value = selectedValue;
|
|
120
|
+
this.valueChange.emit(this.value);
|
|
121
|
+
this.fireContextEvent('select', this.value);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
UiEnumSegmentedButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiEnumSegmentedButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
125
|
+
UiEnumSegmentedButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: UiEnumSegmentedButtonComponent, selector: "bdc-ui-enum-segmented-button", usesInheritance: true, ngImport: i0, template: "<fd-segmented-button style=\"width: 100%\" [(ngModel)]=\"value\" (ngModelChange)=\"onValueChange($event)\">\r\n <ng-container *ngFor=\"let item of context.store.data[context.store.root]\">\r\n <button\r\n *ngIf=\"item.id !== '0'\"\r\n [disabled]=\"(disableOrReadonly$ | async) === true ? true : false\"\r\n fd-button\r\n [label]=\"item.txt\"\r\n [value]=\"item.id\"\r\n ></button>\r\n </ng-container>\r\n</fd-segmented-button>\r\n", styles: ["button{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i4.SegmentedButtonComponent, selector: "fd-segmented-button", inputs: ["toggle"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiEnumSegmentedButtonComponent, decorators: [{
|
|
127
|
+
type: Component,
|
|
128
|
+
args: [{ selector: 'bdc-ui-enum-segmented-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-segmented-button style=\"width: 100%\" [(ngModel)]=\"value\" (ngModelChange)=\"onValueChange($event)\">\r\n <ng-container *ngFor=\"let item of context.store.data[context.store.root]\">\r\n <button\r\n *ngIf=\"item.id !== '0'\"\r\n [disabled]=\"(disableOrReadonly$ | async) === true ? true : false\"\r\n fd-button\r\n [label]=\"item.txt\"\r\n [value]=\"item.id\"\r\n ></button>\r\n </ng-container>\r\n</fd-segmented-button>\r\n", styles: ["button{width:100%}\n"] }]
|
|
129
|
+
}] });
|
|
130
|
+
|
|
131
|
+
class MicroProcessFlowViewComponent extends ReportViewBaseComponent {
|
|
132
|
+
ngOnInit() {
|
|
133
|
+
super.ngOnInit();
|
|
134
|
+
this.arrowRight = this.rtl ? 'navigation-left-arrow' : 'navigation-right-arrow';
|
|
135
|
+
this.fieldTitle = this.viewSetting.FieldTitle;
|
|
136
|
+
this.fieldIcon = this.viewSetting.FieldIcon;
|
|
137
|
+
this.fieldState = this.viewSetting.FieldState;
|
|
138
|
+
this.mode = this.viewSetting.Mode$Caption;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
MicroProcessFlowViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProcessFlowViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
142
|
+
MicroProcessFlowViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: MicroProcessFlowViewComponent, selector: "bdc-micro-process-flow-view", usesInheritance: true, ngImport: i0, template: "<fd-micro-process-flow style=\"max-width: 100%\">\r\n <fd-micro-process-flow-item *ngFor=\"let item of moDataList; let index = index\">\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n button;\r\n context: {\r\n $implicit: item,\r\n index: index,\r\n arrow: arrowRight\r\n }\r\n \"\r\n ></ng-container>\r\n </fd-micro-process-flow-item>\r\n</fd-micro-process-flow>\r\n<ng-template #button let-mo let-index=\"index\" let-arrow=\"arrow\">\r\n <fdp-button\r\n (click)=\"onRowCheck({mo, index})\"\r\n fd-micro-process-flow-focusable-item\r\n [buttonType]=\"'standard'\"\r\n [label]=\"fieldTitle | rval: mo:allColumns\"\r\n [buttonType]=\"fieldState | rval: mo:allColumns\"\r\n [glyph]=\"fieldIcon | rval: mo:allColumns\"\r\n ></fdp-button>\r\n</ng-template>\r\n", styles: [".fd-link{cursor:pointer;font-size:1.06rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$1.MicroProcessFlowComponent, selector: "fd-micro-process-flow", inputs: ["independentSteps", "transitionSpeed", "transitionTimingFunction"] }, { kind: "component", type: i3$1.MicroProcessFlowItemComponent, selector: "fd-micro-process-flow-item", inputs: ["state", "intermediate"] }, { kind: "directive", type: i3$1.MicroProcessFlowFocusableItemDirective, selector: "[fdMicroProcessFlowFocusableItem], [fd-micro-process-flow-focusable-item]" }, { kind: "component", type: i3$2.ButtonComponent, selector: "fdp-button", inputs: ["glyphPosition", "label", "glyph", "buttonType", "title", "ariaSelected", "ariaDisabled", "ariaExpanded", "ariaControlsId", "ariaPressed", "name", "type", "value"], outputs: ["buttonClicked"] }, { kind: "pipe", type: i1$2.MoReportValuePipe, name: "rval" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProcessFlowViewComponent, decorators: [{
|
|
144
|
+
type: Component,
|
|
145
|
+
args: [{ selector: 'bdc-micro-process-flow-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-micro-process-flow style=\"max-width: 100%\">\r\n <fd-micro-process-flow-item *ngFor=\"let item of moDataList; let index = index\">\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n button;\r\n context: {\r\n $implicit: item,\r\n index: index,\r\n arrow: arrowRight\r\n }\r\n \"\r\n ></ng-container>\r\n </fd-micro-process-flow-item>\r\n</fd-micro-process-flow>\r\n<ng-template #button let-mo let-index=\"index\" let-arrow=\"arrow\">\r\n <fdp-button\r\n (click)=\"onRowCheck({mo, index})\"\r\n fd-micro-process-flow-focusable-item\r\n [buttonType]=\"'standard'\"\r\n [label]=\"fieldTitle | rval: mo:allColumns\"\r\n [buttonType]=\"fieldState | rval: mo:allColumns\"\r\n [glyph]=\"fieldIcon | rval: mo:allColumns\"\r\n ></fdp-button>\r\n</ng-template>\r\n", styles: [".fd-link{cursor:pointer;font-size:1.06rem}\n"] }]
|
|
146
|
+
}] });
|
|
147
|
+
|
|
148
|
+
class SettingFormComponent extends FormBaseComponent {
|
|
149
|
+
constructor(_formPanelService, portalService) {
|
|
150
|
+
super(_formPanelService);
|
|
151
|
+
this._formPanelService = _formPanelService;
|
|
152
|
+
this.portalService = portalService;
|
|
153
|
+
this.deviceSize = 'xl';
|
|
154
|
+
this.selectedSetting = false;
|
|
155
|
+
this.groupSettingFieldCaption = 'گروه تنظیمات2';
|
|
156
|
+
this.objectSettingFieldCaption = 'شی تنظیمات';
|
|
157
|
+
}
|
|
158
|
+
ngOnInit() {
|
|
159
|
+
super.ngOnInit();
|
|
160
|
+
this.rtl$ = this.portalService.rtl$;
|
|
161
|
+
this.portalService.deviceSize$.pipe(takeUntil(this._onDestroy$)).subscribe((deviceSize) => {
|
|
162
|
+
switch (deviceSize) {
|
|
163
|
+
case 's':
|
|
164
|
+
this.deviceSize = 'sm';
|
|
165
|
+
break;
|
|
166
|
+
case 'm':
|
|
167
|
+
this.deviceSize = 'md';
|
|
168
|
+
break;
|
|
169
|
+
default:
|
|
170
|
+
this.deviceSize = 'xl';
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
ngAfterViewInit() {
|
|
175
|
+
super.ngAfterViewInit();
|
|
176
|
+
const fieldUi = Object.values(this.listFieldUi).find((c) => c.Setting.ControlFieldCaption === this.groupSettingFieldCaption);
|
|
177
|
+
if (fieldUi) {
|
|
178
|
+
fieldUi.viewerControl.on({
|
|
179
|
+
rowselect: this._setSelectedSetting.bind(this)
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
this._groupSettingControlUi = fieldUi;
|
|
183
|
+
}
|
|
184
|
+
ngOnDestroy() {
|
|
185
|
+
super.ngOnDestroy();
|
|
186
|
+
if (this._groupSettingControlUi) {
|
|
187
|
+
this._groupSettingControlUi.viewerControl.un('rowselect', this._setSelectedSetting);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
onSettingClick() { }
|
|
191
|
+
onBack() {
|
|
192
|
+
this.selectedSetting = false;
|
|
193
|
+
}
|
|
194
|
+
_setSelectedSetting() {
|
|
195
|
+
this.selectedSetting = true;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
SettingFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SettingFormComponent, deps: [{ token: i1$2.FormPanelService }, { token: i1$2.PortalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
199
|
+
SettingFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: SettingFormComponent, selector: "bdc-setting-form", providers: [FormPanelService], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"mo$ | async as mo; else loading\">\n <ng-container *ngIf=\"layout94$ | async as layout\">\n <div *ngIf=\"deviceSize === 'sm'; else sideContent\" style=\"display: flex; flex-direction: column\">\n <div *ngIf=\"selectedSetting\" style=\"width: 100%\">\n <button\n fd-button\n [fdType]=\"'transparent'\"\n [glyph]=\"(rtl$ | async)!! ? 'arrow-left' : 'arrow-right'\"\n (click)=\"onBack()\"\n ></button>\n </div>\n\n <div [class.hide]=\"selectedSetting\">\n <ng-container\n *ngTemplateOutlet=\"\n renderSetting;\n context: {\n $implicit: layout,\n isMobile: true\n }\n \"\n ></ng-container>\n </div>\n <div [class.hide]=\"!selectedSetting\">\n <ng-container\n *ngTemplateOutlet=\"\n renderForm;\n context: {\n $implicit: layout,\n isMobile: true\n }\n \"\n ></ng-container>\n </div>\n </div>\n <ng-template #sideContent>\n <fd-dynamic-side-content [size]=\"deviceSize\">\n <fd-dynamic-side-content-side>\n <ng-container\n *ngTemplateOutlet=\"\n renderSetting;\n context: {\n $implicit: layout,\n isMobile: false\n }\n \"\n ></ng-container>\n </fd-dynamic-side-content-side>\n <fd-dynamic-side-content-main>\n <ng-container\n *ngTemplateOutlet=\"\n renderForm;\n context: {\n $implicit: layout,\n isMobile: false\n }\n \"\n ></ng-container>\n </fd-dynamic-side-content-main>\n </fd-dynamic-side-content>\n </ng-template>\n </ng-container>\n <ng-template #renderForm let-layout let-isMobile=\"isMobile\">\n <bsu-layout-control\n *ngIf=\"objectSettingFieldCaption | controlUi: layout as layoutConfig\"\n (click)=\"onSettingClick()\"\n class=\"form-setting\"\n [class.is-mobile]=\"isMobile\"\n [caption]=\"objectSettingFieldCaption\"\n [config]=\"layoutConfig\"\n [focus]=\"true\"\n ></bsu-layout-control>\n </ng-template>\n <ng-template #renderSetting let-layout let-isMobile=\"isMobile\">\n <bsu-layout-control\n *ngIf=\"groupSettingFieldCaption | controlUi: layout as layoutConfig\"\n class=\"list-setting\"\n [class.is-mobile]=\"isMobile\"\n [caption]=\"groupSettingFieldCaption\"\n [config]=\"layoutConfig\"\n ></bsu-layout-control>\n </ng-template>\n</ng-container>\n<ng-template #loading>\n <bsu-mask></bsu-mask>\n</ng-template>\n", styles: [":host{width:100%}:host ::ng-deep bsu-ulv-context-menu,:host ::ng-deep li button{display:none}.list-setting{height:100%;border-left:1px solid #ccc}.list-setting ::ng-deep bnrc-field-ui{height:100%;padding:0}.list-setting.is-mobile{border:none}.form-setting{height:100%;padding-top:5px}.form-setting ::ng-deep bnrc-field-ui{height:100%!important}fd-dynamic-side-content{height:100%}fd-dynamic-side-content-main{overflow-y:auto}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$3.MaskComponent, selector: "bsu-mask", inputs: ["size", "marginTop"] }, { kind: "component", type: i3$3.LayoutControlComponent, selector: "bsu-layout-control", inputs: ["inlineEdit", "caption", "focusControl", "showLabel", "maxLabelWidth", "hasHorizontalText", "contentDensity", "RefreshLabel", "SetVisible"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i5$1.DynamicSideContentComponent, selector: "fd-dynamic-side-content", inputs: ["position", "size", "id"] }, { kind: "component", type: i5$1.DynamicSideContentSideComponent, selector: "fd-dynamic-side-content-side", inputs: ["id"] }, { kind: "component", type: i5$1.DynamicSideContentMainComponent, selector: "fd-dynamic-side-content-main", inputs: ["id"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.ControlUiPipe, name: "controlUi" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SettingFormComponent, decorators: [{
|
|
201
|
+
type: Component,
|
|
202
|
+
args: [{ selector: 'bdc-setting-form', changeDetection: ChangeDetectionStrategy.OnPush, providers: [FormPanelService], template: "<ng-container *ngIf=\"mo$ | async as mo; else loading\">\n <ng-container *ngIf=\"layout94$ | async as layout\">\n <div *ngIf=\"deviceSize === 'sm'; else sideContent\" style=\"display: flex; flex-direction: column\">\n <div *ngIf=\"selectedSetting\" style=\"width: 100%\">\n <button\n fd-button\n [fdType]=\"'transparent'\"\n [glyph]=\"(rtl$ | async)!! ? 'arrow-left' : 'arrow-right'\"\n (click)=\"onBack()\"\n ></button>\n </div>\n\n <div [class.hide]=\"selectedSetting\">\n <ng-container\n *ngTemplateOutlet=\"\n renderSetting;\n context: {\n $implicit: layout,\n isMobile: true\n }\n \"\n ></ng-container>\n </div>\n <div [class.hide]=\"!selectedSetting\">\n <ng-container\n *ngTemplateOutlet=\"\n renderForm;\n context: {\n $implicit: layout,\n isMobile: true\n }\n \"\n ></ng-container>\n </div>\n </div>\n <ng-template #sideContent>\n <fd-dynamic-side-content [size]=\"deviceSize\">\n <fd-dynamic-side-content-side>\n <ng-container\n *ngTemplateOutlet=\"\n renderSetting;\n context: {\n $implicit: layout,\n isMobile: false\n }\n \"\n ></ng-container>\n </fd-dynamic-side-content-side>\n <fd-dynamic-side-content-main>\n <ng-container\n *ngTemplateOutlet=\"\n renderForm;\n context: {\n $implicit: layout,\n isMobile: false\n }\n \"\n ></ng-container>\n </fd-dynamic-side-content-main>\n </fd-dynamic-side-content>\n </ng-template>\n </ng-container>\n <ng-template #renderForm let-layout let-isMobile=\"isMobile\">\n <bsu-layout-control\n *ngIf=\"objectSettingFieldCaption | controlUi: layout as layoutConfig\"\n (click)=\"onSettingClick()\"\n class=\"form-setting\"\n [class.is-mobile]=\"isMobile\"\n [caption]=\"objectSettingFieldCaption\"\n [config]=\"layoutConfig\"\n [focus]=\"true\"\n ></bsu-layout-control>\n </ng-template>\n <ng-template #renderSetting let-layout let-isMobile=\"isMobile\">\n <bsu-layout-control\n *ngIf=\"groupSettingFieldCaption | controlUi: layout as layoutConfig\"\n class=\"list-setting\"\n [class.is-mobile]=\"isMobile\"\n [caption]=\"groupSettingFieldCaption\"\n [config]=\"layoutConfig\"\n ></bsu-layout-control>\n </ng-template>\n</ng-container>\n<ng-template #loading>\n <bsu-mask></bsu-mask>\n</ng-template>\n", styles: [":host{width:100%}:host ::ng-deep bsu-ulv-context-menu,:host ::ng-deep li button{display:none}.list-setting{height:100%;border-left:1px solid #ccc}.list-setting ::ng-deep bnrc-field-ui{height:100%;padding:0}.list-setting.is-mobile{border:none}.form-setting{height:100%;padding-top:5px}.form-setting ::ng-deep bnrc-field-ui{height:100%!important}fd-dynamic-side-content{height:100%}fd-dynamic-side-content-main{overflow-y:auto}\n"] }]
|
|
203
|
+
}], ctorParameters: function () { return [{ type: i1$2.FormPanelService }, { type: i1$2.PortalService }]; } });
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Based on zxing-typescript BrowserCodeReader
|
|
207
|
+
*/
|
|
208
|
+
class BrowserMultiFormatContinuousReader extends BrowserMultiFormatReader {
|
|
209
|
+
/**
|
|
210
|
+
* Returns the code reader scanner controls.
|
|
211
|
+
*/
|
|
212
|
+
getScannerControls() {
|
|
213
|
+
if (!this.scannerControls) {
|
|
214
|
+
throw new Error('No scanning is running at the time.');
|
|
215
|
+
}
|
|
216
|
+
return this.scannerControls;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Starts the decoding from the current or a new video element.
|
|
220
|
+
*
|
|
221
|
+
* @param deviceId The device's to be used Id
|
|
222
|
+
* @param previewEl A new video element
|
|
223
|
+
*/
|
|
224
|
+
scanFromDeviceObservable(deviceId, previewEl) {
|
|
225
|
+
var _a;
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
const scan$ = new BehaviorSubject({});
|
|
228
|
+
let ctrls;
|
|
229
|
+
try {
|
|
230
|
+
ctrls = yield this.decodeFromVideoDevice(deviceId, previewEl, (result, error) => {
|
|
231
|
+
var _a;
|
|
232
|
+
if (!error) {
|
|
233
|
+
scan$.next({ result });
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
console.error(error);
|
|
237
|
+
const errorName = error.name;
|
|
238
|
+
// stream cannot stop on fails.
|
|
239
|
+
if (
|
|
240
|
+
// scan Failure - found nothing, no error
|
|
241
|
+
errorName === NotFoundException.name ||
|
|
242
|
+
// scan Error - found the QR but got error on decoding
|
|
243
|
+
errorName === ChecksumException.name ||
|
|
244
|
+
errorName === FormatException.name ||
|
|
245
|
+
error.message.includes('No MultiFormat Readers were able to detect the code.')) {
|
|
246
|
+
scan$.next({ error });
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
// probably fatal error
|
|
250
|
+
scan$.error(error);
|
|
251
|
+
(_a = this.scannerControls) === null || _a === void 0 ? void 0 : _a.stop();
|
|
252
|
+
this.scannerControls = undefined;
|
|
253
|
+
return;
|
|
254
|
+
});
|
|
255
|
+
this.scannerControls = Object.assign(Object.assign({}, ctrls), { stop() {
|
|
256
|
+
ctrls.stop();
|
|
257
|
+
scan$.complete();
|
|
258
|
+
} });
|
|
259
|
+
}
|
|
260
|
+
catch (e) {
|
|
261
|
+
scan$.error(e);
|
|
262
|
+
(_a = this.scannerControls) === null || _a === void 0 ? void 0 : _a.stop();
|
|
263
|
+
this.scannerControls = undefined;
|
|
264
|
+
}
|
|
265
|
+
return scan$.asObservable();
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
class UserMediaBaseService {
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
constructor(_logService) {
|
|
274
|
+
this._logService = _logService;
|
|
275
|
+
this.hasNavigator = false;
|
|
276
|
+
this.isMediaDevicesSupported = false;
|
|
277
|
+
this._camerasSource = new BehaviorSubject([]);
|
|
278
|
+
this.cameras$ = this._camerasSource
|
|
279
|
+
.asObservable()
|
|
280
|
+
.pipe(shareReplay(1))
|
|
281
|
+
.pipe(filter((items) => items && items.length > 0));
|
|
282
|
+
this._permissionResponse = new Subject();
|
|
283
|
+
this.permissionResponse$ = this._permissionResponse.asObservable();
|
|
284
|
+
this._hasDevicesSource = new BehaviorSubject(false);
|
|
285
|
+
this.hasDevices$ = this._hasDevicesSource.asObservable().pipe(shareReplay(1));
|
|
286
|
+
this._permissionSource = new BehaviorSubject(false);
|
|
287
|
+
this.permission$ = this._permissionSource.asObservable().pipe();
|
|
288
|
+
this._camerasNotFoundSource = new Subject();
|
|
289
|
+
this.camerasNotFound$ = this._camerasNotFoundSource.asObservable().pipe(shareReplay(1));
|
|
290
|
+
this.hasNavigator = typeof navigator !== 'undefined';
|
|
291
|
+
this.isMediaDevicesSupported = this.hasNavigator && !!navigator.mediaDevices;
|
|
292
|
+
}
|
|
293
|
+
updateVideoInputDevices() {
|
|
294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
// permissions aren't needed to get devices, but to access them and their info
|
|
296
|
+
const devices = (yield BrowserCodeReader.listVideoInputDevices()) || [];
|
|
297
|
+
const hasDevices = devices && devices.length > 0;
|
|
298
|
+
// stores discovered devices and updates information
|
|
299
|
+
this._hasDevicesSource.next(hasDevices);
|
|
300
|
+
this._camerasSource.next([...devices]);
|
|
301
|
+
if (!hasDevices) {
|
|
302
|
+
const err = {
|
|
303
|
+
code: DOMException.NOT_FOUND_ERR,
|
|
304
|
+
message: 'Device not found.'
|
|
305
|
+
};
|
|
306
|
+
this._camerasNotFoundSource.next(err);
|
|
307
|
+
}
|
|
308
|
+
return devices;
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Gets and registers all cammeras.
|
|
313
|
+
*/
|
|
314
|
+
askForPermission() {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
if (!this.hasNavigator) {
|
|
317
|
+
this._logService.error('user media', `Can't ask permission, navigator is not present.`);
|
|
318
|
+
this._setPermission(false);
|
|
319
|
+
}
|
|
320
|
+
if (!this.isMediaDevicesSupported) {
|
|
321
|
+
this._logService.error('user media', `Can't get user media, this is not supported.`);
|
|
322
|
+
this._setPermission(false);
|
|
323
|
+
}
|
|
324
|
+
let stream;
|
|
325
|
+
let permission = false;
|
|
326
|
+
try {
|
|
327
|
+
// Will try to ask for permission
|
|
328
|
+
stream = yield this._getAnyVideoDevice();
|
|
329
|
+
permission = !!stream;
|
|
330
|
+
}
|
|
331
|
+
catch (err) {
|
|
332
|
+
this._handlePermissionException(err);
|
|
333
|
+
}
|
|
334
|
+
finally {
|
|
335
|
+
this.terminateStream(stream);
|
|
336
|
+
}
|
|
337
|
+
this._setPermission(permission);
|
|
338
|
+
return permission;
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
terminateStream(stream) {
|
|
342
|
+
if (stream) {
|
|
343
|
+
stream.getTracks().forEach((t) => t.stop());
|
|
344
|
+
}
|
|
345
|
+
stream = undefined;
|
|
346
|
+
}
|
|
347
|
+
_setPermission(permission) {
|
|
348
|
+
this._permissionSource.next(permission);
|
|
349
|
+
}
|
|
350
|
+
_getAnyVideoDevice() {
|
|
351
|
+
return navigator.mediaDevices.getUserMedia({ video: true });
|
|
352
|
+
}
|
|
353
|
+
_handlePermissionException(err) {
|
|
354
|
+
console.error('user media', 'Error when asking for permission.', err);
|
|
355
|
+
let permission = false;
|
|
356
|
+
switch (err.name) {
|
|
357
|
+
// usually caused by not secure origins
|
|
358
|
+
case 'NotSupportedError':
|
|
359
|
+
this._logService.warn('user media', err.message);
|
|
360
|
+
// could not claim
|
|
361
|
+
permission = false;
|
|
362
|
+
// can't check devices
|
|
363
|
+
this._hasDevicesSource.next(false);
|
|
364
|
+
break;
|
|
365
|
+
// user denied permission
|
|
366
|
+
case 'NotAllowedError':
|
|
367
|
+
this._logService.warn('user media', err.message);
|
|
368
|
+
// claimed and denied permission
|
|
369
|
+
permission = false;
|
|
370
|
+
// this means that input devices exists
|
|
371
|
+
this._hasDevicesSource.next(true);
|
|
372
|
+
break;
|
|
373
|
+
// the device has no attached input devices
|
|
374
|
+
case 'NotFoundError':
|
|
375
|
+
this._logService.warn('user media', err.message);
|
|
376
|
+
// no permissions claimed
|
|
377
|
+
permission = false;
|
|
378
|
+
// because there was no devices
|
|
379
|
+
this._hasDevicesSource.next(false);
|
|
380
|
+
// tells the listener about the error
|
|
381
|
+
this._camerasNotFoundSource.next(err);
|
|
382
|
+
break;
|
|
383
|
+
case 'NotReadableError':
|
|
384
|
+
this._logService.warn('user media', `Couldn't read the device(s)'s stream, it's probably in use by another app.`);
|
|
385
|
+
// no permissions claimed
|
|
386
|
+
permission = false;
|
|
387
|
+
// there are devices, which I couldn't use
|
|
388
|
+
this._hasDevicesSource.next(false);
|
|
389
|
+
// tells the listener about the error
|
|
390
|
+
this._camerasNotFoundSource.next(err);
|
|
391
|
+
break;
|
|
392
|
+
default:
|
|
393
|
+
this._logService.warn('user media', 'I was not able to define if I have permissions for camera or not.', err);
|
|
394
|
+
// unknown
|
|
395
|
+
permission = false;
|
|
396
|
+
// this.hasDevices.next(undefined;
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
this._setPermission(permission);
|
|
400
|
+
// tells the listener about the error
|
|
401
|
+
this._permissionResponse.next(err);
|
|
402
|
+
return permission;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
UserMediaBaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UserMediaBaseService, deps: [{ token: i1$2.LogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
406
|
+
UserMediaBaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UserMediaBaseService });
|
|
407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UserMediaBaseService, decorators: [{
|
|
408
|
+
type: Injectable
|
|
409
|
+
}], ctorParameters: function () { return [{ type: i1$2.LogService }]; } });
|
|
410
|
+
class WebBarcodeService {
|
|
411
|
+
constructor(userMediaService) {
|
|
412
|
+
this.userMediaService = userMediaService;
|
|
413
|
+
this._device = undefined;
|
|
414
|
+
this._codeReader = undefined;
|
|
415
|
+
this._hints = new Map();
|
|
416
|
+
this._scanErrorSource = new Subject();
|
|
417
|
+
this._scanFailureSource = new Subject();
|
|
418
|
+
this._scanCompleteSource = new Subject();
|
|
419
|
+
this._scanSuccessSource = new Subject();
|
|
420
|
+
this._options = {
|
|
421
|
+
delayBetweenScanAttempts: 50,
|
|
422
|
+
delayBetweenScanSuccess: 500
|
|
423
|
+
};
|
|
424
|
+
this.scanError$ = this._scanErrorSource.asObservable();
|
|
425
|
+
this.scanFailure$ = this._scanFailureSource.asObservable();
|
|
426
|
+
this.scanComplete$ = this._scanCompleteSource.asObservable();
|
|
427
|
+
this.scanSuccess$ = this._scanSuccessSource.asObservable().pipe(map((c) => c.getText()));
|
|
428
|
+
}
|
|
429
|
+
startScan(device, videoEl, options = this._options) {
|
|
430
|
+
// instantly stops the scan before changing devices
|
|
431
|
+
this.scanStop();
|
|
432
|
+
// correctly sets the new (or none) device
|
|
433
|
+
this._device = device || undefined;
|
|
434
|
+
this._videoEl = videoEl;
|
|
435
|
+
this._options = options;
|
|
436
|
+
if (!this._device) {
|
|
437
|
+
// cleans the video because user removed the device
|
|
438
|
+
BrowserCodeReader.cleanVideoSource(videoEl);
|
|
439
|
+
}
|
|
440
|
+
if (this._scanSubscription) {
|
|
441
|
+
throw new Error('There is already a scan proccess running.');
|
|
442
|
+
}
|
|
443
|
+
if (!this._device) {
|
|
444
|
+
throw new Error('No device defined, cannot start scan, please define a device.');
|
|
445
|
+
}
|
|
446
|
+
// if enabled, starts scanning
|
|
447
|
+
if (device) {
|
|
448
|
+
this.scanFromDevice(device.deviceId);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
setFormat(input) {
|
|
452
|
+
if (typeof input === 'string') {
|
|
453
|
+
throw new Error('Invalid formats, make sure the [formats] input is a binding.');
|
|
454
|
+
}
|
|
455
|
+
// formats may be set from html template as BarcodeFormat or string array
|
|
456
|
+
const formats = input.map((f) => this.getBarcodeFormatOrFail(f));
|
|
457
|
+
const hints = this._hints;
|
|
458
|
+
// updates the hints
|
|
459
|
+
hints.set(DecodeHintType.POSSIBLE_FORMATS, formats);
|
|
460
|
+
// handles updating the codeReader
|
|
461
|
+
this._hints = hints;
|
|
462
|
+
}
|
|
463
|
+
scanStop() {
|
|
464
|
+
var _a, _b;
|
|
465
|
+
if (this._scanSubscription) {
|
|
466
|
+
(_a = this._codeReader) === null || _a === void 0 ? void 0 : _a.getScannerControls().stop();
|
|
467
|
+
(_b = this._scanSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
468
|
+
this._scanSubscription = undefined;
|
|
469
|
+
}
|
|
470
|
+
// this.torchCompatible.next(false);
|
|
471
|
+
}
|
|
472
|
+
destroy() {
|
|
473
|
+
// @note apenas necessario por enquanto causa da Torch
|
|
474
|
+
this.scanStop();
|
|
475
|
+
this._codeReader = undefined;
|
|
476
|
+
this._device = undefined;
|
|
477
|
+
}
|
|
478
|
+
getBarcodeFormatOrFail(format) {
|
|
479
|
+
return typeof format === 'string' ? BarcodeFormat[format.trim().toUpperCase()] : format;
|
|
480
|
+
}
|
|
481
|
+
scanFromDevice(deviceId) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const videoElement = this._videoEl;
|
|
484
|
+
const codeReader = this.getCodeReader();
|
|
485
|
+
const scanStream = yield codeReader.scanFromDeviceObservable(deviceId, videoElement);
|
|
486
|
+
if (!scanStream) {
|
|
487
|
+
throw new Error('Undefined decoding stream, aborting.');
|
|
488
|
+
}
|
|
489
|
+
const next = (x) => this._onDecodeResult(x.result, x.error);
|
|
490
|
+
const error = (err) => this._onDecodeError(err);
|
|
491
|
+
const complete = () => { };
|
|
492
|
+
this._scanSubscription = scanStream.subscribe(next, error, complete);
|
|
493
|
+
if (this._scanSubscription.closed) {
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
// const controls = codeReader.getScannerControls();
|
|
497
|
+
// const hasTorchControl = typeof controls.switchTorch !== 'undefined';
|
|
498
|
+
// this.torchCompatible.next(hasTorchControl);
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Handles decode errors.
|
|
503
|
+
*/
|
|
504
|
+
_onDecodeError(err) {
|
|
505
|
+
this._scanErrorSource.next(err);
|
|
506
|
+
// this.reset();
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Handles decode results.
|
|
510
|
+
*/
|
|
511
|
+
_onDecodeResult(result, error) {
|
|
512
|
+
if (result) {
|
|
513
|
+
this._scanSuccessSource.next(result);
|
|
514
|
+
}
|
|
515
|
+
else {
|
|
516
|
+
this._scanFailureSource.next(error);
|
|
517
|
+
}
|
|
518
|
+
if (result) {
|
|
519
|
+
this._scanCompleteSource.next(result);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
getCodeReader() {
|
|
523
|
+
if (!this._codeReader) {
|
|
524
|
+
this._codeReader = new BrowserMultiFormatContinuousReader(this._hints, this._options);
|
|
525
|
+
}
|
|
526
|
+
return this._codeReader;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
WebBarcodeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: WebBarcodeService, deps: [{ token: UserMediaBaseService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
530
|
+
WebBarcodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: WebBarcodeService });
|
|
531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: WebBarcodeService, decorators: [{
|
|
532
|
+
type: Injectable
|
|
533
|
+
}], ctorParameters: function () { return [{ type: UserMediaBaseService }]; } });
|
|
534
|
+
|
|
535
|
+
class BarcodeReaderVideoComponent extends BaseComponent {
|
|
536
|
+
constructor(_webBarcodeService) {
|
|
537
|
+
super();
|
|
538
|
+
this._webBarcodeService = _webBarcodeService;
|
|
539
|
+
this.previewFitMode = 'fill';
|
|
540
|
+
this.scanSuccess = new EventEmitter();
|
|
541
|
+
this._cameraSource = new BehaviorSubject(null);
|
|
542
|
+
}
|
|
543
|
+
set selectedCamera(val) {
|
|
544
|
+
this._cameraSource.next(val);
|
|
545
|
+
}
|
|
546
|
+
ngOnInit() {
|
|
547
|
+
super.ngOnInit();
|
|
548
|
+
this._setFormat(this.allFormats);
|
|
549
|
+
this._cameraSource
|
|
550
|
+
.asObservable()
|
|
551
|
+
.pipe(takeUntil(this._onDestroy$), debounceTime(500), filter((camera) => camera != null), tap((camera) => {
|
|
552
|
+
this._stopScan();
|
|
553
|
+
this._startScan(camera);
|
|
554
|
+
}))
|
|
555
|
+
.subscribe();
|
|
556
|
+
this._webBarcodeService.scanSuccess$.subscribe((result) => {
|
|
557
|
+
this.scanSuccess.emit(result);
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
ngOnDestroy() {
|
|
561
|
+
super.ngOnDestroy();
|
|
562
|
+
this._webBarcodeService.scanStop();
|
|
563
|
+
}
|
|
564
|
+
_setFormat(formats) {
|
|
565
|
+
this._webBarcodeService.setFormat(formats);
|
|
566
|
+
}
|
|
567
|
+
_stopScan() {
|
|
568
|
+
this._webBarcodeService.scanStop();
|
|
569
|
+
}
|
|
570
|
+
_startScan(camera) {
|
|
571
|
+
if (this.videoElement) {
|
|
572
|
+
this._webBarcodeService.startScan(camera, this.videoElement.nativeElement);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
BarcodeReaderVideoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderVideoComponent, deps: [{ token: WebBarcodeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
577
|
+
BarcodeReaderVideoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BarcodeReaderVideoComponent, selector: "bdc-barcode-reader-video", inputs: { allFormats: "allFormats", previewFitMode: "previewFitMode", selectedCamera: "selectedCamera" }, outputs: { scanSuccess: "scanSuccess" }, viewQueries: [{ propertyName: "videoElement", first: true, predicate: ["videoElement"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<video #videoElement [style.object-fit]=\"previewFitMode\">\r\n <p>{{ 'BrowserNotSupport' | bbbTranslate }}</p>\r\n</video>\r\n", styles: [":host,video{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderVideoComponent, decorators: [{
|
|
579
|
+
type: Component,
|
|
580
|
+
args: [{ selector: 'bdc-barcode-reader-video', changeDetection: ChangeDetectionStrategy.OnPush, template: "<video #videoElement [style.object-fit]=\"previewFitMode\">\r\n <p>{{ 'BrowserNotSupport' | bbbTranslate }}</p>\r\n</video>\r\n", styles: [":host,video{display:block;width:100%;height:100%}\n"] }]
|
|
581
|
+
}], ctorParameters: function () { return [{ type: WebBarcodeService }]; }, propDecorators: { allFormats: [{
|
|
582
|
+
type: Input
|
|
583
|
+
}], previewFitMode: [{
|
|
584
|
+
type: Input
|
|
585
|
+
}], scanSuccess: [{
|
|
586
|
+
type: Output
|
|
587
|
+
}], videoElement: [{
|
|
588
|
+
type: ViewChild,
|
|
589
|
+
args: ['videoElement', { static: true }]
|
|
590
|
+
}], selectedCamera: [{
|
|
591
|
+
type: Input
|
|
592
|
+
}] } });
|
|
593
|
+
|
|
594
|
+
class BarcodeReaderDialogComponent extends BaseComponent {
|
|
595
|
+
constructor(_dialogRef, _userMediaService) {
|
|
596
|
+
var _a, _b;
|
|
597
|
+
super();
|
|
598
|
+
this._dialogRef = _dialogRef;
|
|
599
|
+
this._userMediaService = _userMediaService;
|
|
600
|
+
this.value = '';
|
|
601
|
+
this.format = [BarcodeFormat.QR_CODE];
|
|
602
|
+
this.loading = true;
|
|
603
|
+
this._dialogRef.loading(true);
|
|
604
|
+
this.barcodeFormats = (_b = (_a = this._dialogRef.data) === null || _a === void 0 ? void 0 : _a.barcodeFormats) !== null && _b !== void 0 ? _b : [];
|
|
605
|
+
this.selectedFormat = this.barcodeFormats.length > 0 ? this.barcodeFormats[0] : BarcodeFormat.QR_CODE;
|
|
606
|
+
}
|
|
607
|
+
ngAfterViewInit() {
|
|
608
|
+
super.ngAfterViewInit();
|
|
609
|
+
this._initialize();
|
|
610
|
+
}
|
|
611
|
+
onDismiss() {
|
|
612
|
+
this._dialogRef.dismiss();
|
|
613
|
+
}
|
|
614
|
+
onOk() {
|
|
615
|
+
this._close();
|
|
616
|
+
}
|
|
617
|
+
onCameraChange(value) {
|
|
618
|
+
this.selectedCamera = value;
|
|
619
|
+
}
|
|
620
|
+
onFormatChange(format) {
|
|
621
|
+
this.selectedFormat = format;
|
|
622
|
+
}
|
|
623
|
+
onScanSuccess(result) {
|
|
624
|
+
this.value = result;
|
|
625
|
+
this._close();
|
|
626
|
+
}
|
|
627
|
+
onValueChanged(e) {
|
|
628
|
+
this.value = e.target.value;
|
|
629
|
+
}
|
|
630
|
+
_close() {
|
|
631
|
+
this._dialogRef.close(this.value);
|
|
632
|
+
}
|
|
633
|
+
_initialize() {
|
|
634
|
+
of(true)
|
|
635
|
+
.pipe(takeUntil(this._onDestroy$), exhaustMap(() => this._userMediaService.askForPermission()), concatMap((permission) => {
|
|
636
|
+
if (permission) {
|
|
637
|
+
return this._userMediaService.updateVideoInputDevices();
|
|
638
|
+
}
|
|
639
|
+
else {
|
|
640
|
+
return of(true);
|
|
641
|
+
}
|
|
642
|
+
}), finalize(() => {
|
|
643
|
+
this.loading = false;
|
|
644
|
+
this._dialogRef.loading(false);
|
|
645
|
+
}))
|
|
646
|
+
.subscribe();
|
|
647
|
+
this.hasDevice$ = this._userMediaService.hasDevices$;
|
|
648
|
+
this.permission$ = this._userMediaService.permission$;
|
|
649
|
+
this.cameras$ = this._userMediaService.cameras$.pipe(delay(0), tap((cameras) => {
|
|
650
|
+
var _a;
|
|
651
|
+
this.selectedCamera = (_a = cameras.find((c) => c.label.indexOf('back') > -1)) !== null && _a !== void 0 ? _a : cameras[0];
|
|
652
|
+
}));
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
BarcodeReaderDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderDialogComponent, deps: [{ token: i1$3.DialogRef }, { token: UserMediaBaseService }], target: i0.ɵɵFactoryTarget.Component });
|
|
656
|
+
BarcodeReaderDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BarcodeReaderDialogComponent, selector: "bdc-barcode-reader-dialog", usesInheritance: true, ngImport: i0, template: "<fd-dialog>\r\n <fd-dialog-header>\r\n <h1 fd-title>{{ 'BarcodeReader' | bbbTranslate }} {{ selectedCamera?.label }}</h1>\r\n <button fd-dialog-close-button (click)=\"onDismiss()\"></button>\r\n </fd-dialog-header>\r\n <fd-dialog-body>\r\n <ng-container *ngIf=\"!loading\">\r\n <ng-container *ngIf=\"permission$ | async; else noPermission\">\r\n <ng-container *ngIf=\"hasDevice$ | async; else noDevice\">\r\n <bdc-barcode-reader-video\r\n *ngIf=\"selectedCamera\"\r\n [format]=\"format\"\r\n [selectedCamera]=\"selectedCamera\"\r\n [allFormats]=\"barcodeFormats\"\r\n (scanSuccess)=\"onScanSuccess($event)\"\r\n ></bdc-barcode-reader-video>\r\n </ng-container> </ng-container\r\n ></ng-container>\r\n <ng-template #noDevice>\r\n <p>BrowserNotSupport</p>\r\n </ng-template>\r\n <ng-template #noPermission>\r\n <p>NoPermission</p>\r\n </ng-template>\r\n </fd-dialog-body>\r\n <fd-dialog-footer>\r\n <ng-template fdTemplate=\"footer\">\r\n <ng-container *ngIf=\"cameras$ | async as cameraList\">\r\n <div fd-bar-left>\r\n <fd-select\r\n *ngIf=\"cameraList.length > 1\"\r\n [placeholder]=\"'Camera' | bbbTranslate\"\r\n (valueChange)=\"onCameraChange($event)\"\r\n [value]=\"selectedCamera\"\r\n >\r\n <fd-option *ngFor=\"let camera of cameraList\" [value]=\"camera\">{{ camera.label }}</fd-option>\r\n </fd-select>\r\n </div>\r\n <div fd-bar-right></div>\r\n </ng-container>\r\n </ng-template>\r\n </fd-dialog-footer>\r\n</fd-dialog>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.BarLeftDirective, selector: "[fd-bar-left]" }, { kind: "directive", type: i6.BarRightDirective, selector: "[fd-bar-right]" }, { kind: "component", type: i5$2.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i5$2.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i5$2.DialogFooterComponent, selector: "fd-dialog-footer" }, { kind: "component", type: i5$2.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i5$2.DialogCloseButtonComponent, selector: "[fd-dialog-close-button]", inputs: ["mobile", "title"] }, { kind: "component", type: i6$1.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "directive", type: i12.TemplateDirective, selector: "[fdTemplate]", inputs: ["fdTemplate"] }, { kind: "component", type: i8.SelectComponent, selector: "fd-select", inputs: ["controlId", "state", "mobile", "stateMessage", "disabled", "required", "readonly", "placeholder", "value", "extendedBodyTemplate", "maxHeight", "glyph", "closeOnOutsideClick", "fillControlMode", "controlTemplate", "appendTo", "unselectMissingOption", "typeaheadDebounceInterval", "ariaLabelledBy", "ariaLabel", "mobileConfig", "inline"], outputs: ["isOpenChange", "valueChange"] }, { kind: "component", type: i8.OptionComponent, selector: "[fd-option], fd-option", inputs: ["id", "value", "disabled"], outputs: ["selectionChange"] }, { kind: "component", type: BarcodeReaderVideoComponent, selector: "bdc-barcode-reader-video", inputs: ["allFormats", "previewFitMode", "selectedCamera"], outputs: ["scanSuccess"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderDialogComponent, decorators: [{
|
|
658
|
+
type: Component,
|
|
659
|
+
args: [{ selector: 'bdc-barcode-reader-dialog', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-dialog>\r\n <fd-dialog-header>\r\n <h1 fd-title>{{ 'BarcodeReader' | bbbTranslate }} {{ selectedCamera?.label }}</h1>\r\n <button fd-dialog-close-button (click)=\"onDismiss()\"></button>\r\n </fd-dialog-header>\r\n <fd-dialog-body>\r\n <ng-container *ngIf=\"!loading\">\r\n <ng-container *ngIf=\"permission$ | async; else noPermission\">\r\n <ng-container *ngIf=\"hasDevice$ | async; else noDevice\">\r\n <bdc-barcode-reader-video\r\n *ngIf=\"selectedCamera\"\r\n [format]=\"format\"\r\n [selectedCamera]=\"selectedCamera\"\r\n [allFormats]=\"barcodeFormats\"\r\n (scanSuccess)=\"onScanSuccess($event)\"\r\n ></bdc-barcode-reader-video>\r\n </ng-container> </ng-container\r\n ></ng-container>\r\n <ng-template #noDevice>\r\n <p>BrowserNotSupport</p>\r\n </ng-template>\r\n <ng-template #noPermission>\r\n <p>NoPermission</p>\r\n </ng-template>\r\n </fd-dialog-body>\r\n <fd-dialog-footer>\r\n <ng-template fdTemplate=\"footer\">\r\n <ng-container *ngIf=\"cameras$ | async as cameraList\">\r\n <div fd-bar-left>\r\n <fd-select\r\n *ngIf=\"cameraList.length > 1\"\r\n [placeholder]=\"'Camera' | bbbTranslate\"\r\n (valueChange)=\"onCameraChange($event)\"\r\n [value]=\"selectedCamera\"\r\n >\r\n <fd-option *ngFor=\"let camera of cameraList\" [value]=\"camera\">{{ camera.label }}</fd-option>\r\n </fd-select>\r\n </div>\r\n <div fd-bar-right></div>\r\n </ng-container>\r\n </ng-template>\r\n </fd-dialog-footer>\r\n</fd-dialog>\r\n" }]
|
|
660
|
+
}], ctorParameters: function () { return [{ type: i1$3.DialogRef }, { type: UserMediaBaseService }]; } });
|
|
661
|
+
|
|
662
|
+
class BarcodeReaderComponent extends UiMoInfoSubFormUiComponent {
|
|
663
|
+
constructor() {
|
|
664
|
+
super(...arguments);
|
|
665
|
+
this.size = 'large';
|
|
666
|
+
}
|
|
667
|
+
ngOnInit() {
|
|
668
|
+
var _a;
|
|
669
|
+
super.ngOnInit();
|
|
670
|
+
this.barcodeValue = this.context.Setting.FormPanelSetting.Data.Mo.Value;
|
|
671
|
+
const format = (_a = this.context.Setting.CustomFieldInfo) === null || _a === void 0 ? void 0 : _a.Format;
|
|
672
|
+
if (format) {
|
|
673
|
+
this.barcodeFormat = format
|
|
674
|
+
.split(',')
|
|
675
|
+
.filter((c) => c)
|
|
676
|
+
.map((c) => Number(c) - 1);
|
|
677
|
+
}
|
|
678
|
+
this.size = BarsaApi.Bw.GetWindowSize();
|
|
679
|
+
}
|
|
680
|
+
onOpenBarcodeReader() {
|
|
681
|
+
const data = { barcodeFormats: this.barcodeFormat };
|
|
682
|
+
const dialogRef = this._dialogService.open(BarcodeReaderDialogComponent, {
|
|
683
|
+
data,
|
|
684
|
+
fullScreen: this.isMobileDevice ? false : true,
|
|
685
|
+
verticalPadding: true,
|
|
686
|
+
responsivePadding: true,
|
|
687
|
+
mobile: this.isMobileDevice,
|
|
688
|
+
mobileOuterSpacing: true
|
|
689
|
+
});
|
|
690
|
+
dialogRef.afterClosed.pipe(takeUntil(this._onDestroy$)).subscribe((value) => {
|
|
691
|
+
if (value) {
|
|
692
|
+
this._setFieldValue(value);
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
onValueChange(e) {
|
|
697
|
+
this._setFieldValue(e.target.value);
|
|
698
|
+
}
|
|
699
|
+
_addFormControl(formControl) {
|
|
700
|
+
this.customFormPanelUi = formControl;
|
|
701
|
+
}
|
|
702
|
+
_setFieldValue(value) {
|
|
703
|
+
this.barcodeValue = value;
|
|
704
|
+
const valueCustomFieldUi = this.context.formControl._dictFieldUi.Value;
|
|
705
|
+
valueCustomFieldUi.value = value;
|
|
706
|
+
valueCustomFieldUi.fireEvent('change', value);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
BarcodeReaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
710
|
+
BarcodeReaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BarcodeReaderComponent, selector: "bdc-barcode-reader", usesInheritance: true, ngImport: i0, template: "<!-- <fd-input-group\r\n placement=\"after\"\r\n glyph=\"camera\"\r\n [placeholder]=\"'BarcodeReader' | bbbTranslate\"\r\n [button]=\"true\"\r\n ariaLabelledby=\"fd-input-group-button-label-2\"\r\n (addOnButtonClicked)=\"onOpenBarcodeReader()\"\r\n (input)=\"onValueChange($event)\"\r\n>\r\n</fd-input-group> -->\r\n\r\n<fdp-input-group\r\n [placeholder]=\"'BarcodeReader' | bbbTranslate\"\r\n [value]=\"barcodeValue\"\r\n (input)=\"onValueChange($event)\"\r\n [name]=\"'barcode_' + id\"\r\n [contentDensity]=\"(contentDensity$ | async)!!\"\r\n [disabled]=\"(disableOrReadonly$ | async)!!\"\r\n>\r\n <fdp-input-group-input type=\"text\"></fdp-input-group-input>\r\n <fdp-input-group-addon>\r\n <fdp-button glyph=\"camera\" (click)=\"onOpenBarcodeReader()\"></fdp-button>\r\n </fdp-input-group-addon>\r\n</fdp-input-group>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2.PlatformContentDensityDeprecationDirective, selector: " fdp-action-bar[contentDensity], fdp-button[contentDensity], fdp-object-list-item[contentDensity], fdp-standard-list-item[contentDensity], fdp-menu[contentDensity], fdp-menu-button[contentDensity], fdp-panel[contentDensity], fdp-search-field[contentDensity], fdp-split-menu-button[contentDensity], fdp-file-uploader[contentDensity], fdp-upload-collection[contentDensity], fdp-table[contentDensity], fdp-multi-input[contentDensity], fdp-list[contentDensity], fdp-slider[contentDensity], fdp-time-picker[contentDensity], fdp-textarea[contentDensity], fdp-switch[contentDensity], fdp-number-step-input[contentDensity], fdp-select[contentDensity], fdp-date-picker[contentDensity], fdp-checkbox[contentDensity], fdp-checkbox-group[contentDensity], fdp-combobox[contentDensity], fdp-datetime-picker[contentDensity], fdp-input[contentDensity], fdp-radio-group[contentDensity], fdp-radio-button[contentDensity], fdp-multi-combobox[contentDensity], fdp-input-group-addon-body[contentDensity], fdp-input-group[contentDensity], fdp-value-help-dialog[contentDensity], fdp-filter-single-select[contentDensity], fdp-filter-multi-select[contentDensity], fdp-filter-custom[contentDensity] " }, { kind: "component", type: i3$2.ButtonComponent, selector: "fdp-button", inputs: ["glyphPosition", "label", "glyph", "buttonType", "title", "ariaSelected", "ariaDisabled", "ariaExpanded", "ariaControlsId", "ariaPressed", "name", "type", "value"], outputs: ["buttonClicked"] }, { kind: "component", type: i3$4.InputGroupComponent, selector: "fdp-input-group", inputs: ["value"] }, { kind: "component", type: i3$4.InputGroupAddonComponent, selector: "fdp-input-group-addon" }, { kind: "component", type: i3$4.InputGroupInputComponent, selector: "fdp-input-group-input", inputs: ["type"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderComponent, decorators: [{
|
|
712
|
+
type: Component,
|
|
713
|
+
args: [{ selector: 'bdc-barcode-reader', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <fd-input-group\r\n placement=\"after\"\r\n glyph=\"camera\"\r\n [placeholder]=\"'BarcodeReader' | bbbTranslate\"\r\n [button]=\"true\"\r\n ariaLabelledby=\"fd-input-group-button-label-2\"\r\n (addOnButtonClicked)=\"onOpenBarcodeReader()\"\r\n (input)=\"onValueChange($event)\"\r\n>\r\n</fd-input-group> -->\r\n\r\n<fdp-input-group\r\n [placeholder]=\"'BarcodeReader' | bbbTranslate\"\r\n [value]=\"barcodeValue\"\r\n (input)=\"onValueChange($event)\"\r\n [name]=\"'barcode_' + id\"\r\n [contentDensity]=\"(contentDensity$ | async)!!\"\r\n [disabled]=\"(disableOrReadonly$ | async)!!\"\r\n>\r\n <fdp-input-group-input type=\"text\"></fdp-input-group-input>\r\n <fdp-input-group-addon>\r\n <fdp-button glyph=\"camera\" (click)=\"onOpenBarcodeReader()\"></fdp-button>\r\n </fdp-input-group-addon>\r\n</fdp-input-group>\r\n" }]
|
|
714
|
+
}] });
|
|
715
|
+
|
|
716
|
+
class UiPersonPipe {
|
|
717
|
+
transform(value) {
|
|
718
|
+
let transform;
|
|
719
|
+
switch (value) {
|
|
720
|
+
case 'FirstName':
|
|
721
|
+
transform = 'نام';
|
|
722
|
+
break;
|
|
723
|
+
case 'LastName':
|
|
724
|
+
transform = 'نام خانوادگی';
|
|
725
|
+
break;
|
|
726
|
+
case 'NationalCode':
|
|
727
|
+
transform = 'کد ملی';
|
|
728
|
+
break;
|
|
729
|
+
case 'FatherName':
|
|
730
|
+
transform = 'نام پدر';
|
|
731
|
+
break;
|
|
732
|
+
case 'Birthplace':
|
|
733
|
+
transform = 'محل تولد';
|
|
734
|
+
break;
|
|
735
|
+
case 'Mobile':
|
|
736
|
+
transform = 'محل تولد';
|
|
737
|
+
break;
|
|
738
|
+
default:
|
|
739
|
+
transform = '';
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
return transform;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
UiPersonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
746
|
+
UiPersonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: UiPersonPipe, name: "uiPerson" });
|
|
747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonPipe, decorators: [{
|
|
748
|
+
type: Pipe,
|
|
749
|
+
args: [{
|
|
750
|
+
name: 'uiPerson'
|
|
751
|
+
}]
|
|
752
|
+
}] });
|
|
753
|
+
|
|
754
|
+
class UiPersonComponent extends FieldBaseComponent {
|
|
755
|
+
constructor() {
|
|
756
|
+
super(...arguments);
|
|
757
|
+
this.searchResult = [];
|
|
758
|
+
this.personCollection = [
|
|
759
|
+
{
|
|
760
|
+
Id: 1,
|
|
761
|
+
FirstName: 'zahra',
|
|
762
|
+
LastName: 'darbandy',
|
|
763
|
+
FatherName: 'ali',
|
|
764
|
+
Birthplace: 'yazd',
|
|
765
|
+
NationalCode: '123456789'
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
Id: 2,
|
|
769
|
+
FirstName: 'ali',
|
|
770
|
+
LastName: 'kafdary',
|
|
771
|
+
FatherName: 'reza',
|
|
772
|
+
Birthplace: 'shiraz',
|
|
773
|
+
NationalCode: '754123659'
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
Id: 3,
|
|
777
|
+
FirstName: 'sara',
|
|
778
|
+
LastName: 'rezaee',
|
|
779
|
+
FatherName: 'ali',
|
|
780
|
+
Birthplace: 'tehran',
|
|
781
|
+
NationalCode: '123456789'
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
Id: 4,
|
|
785
|
+
FirstName: 'علی',
|
|
786
|
+
LastName: 'خزایی',
|
|
787
|
+
FatherName: 'کمال',
|
|
788
|
+
Birthplace: 'اصفهان',
|
|
789
|
+
NationalCode: '452145698'
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
Id: 5,
|
|
793
|
+
FirstName: 'vahid',
|
|
794
|
+
LastName: 'alipor',
|
|
795
|
+
FatherName: 'ali',
|
|
796
|
+
Birthplace: 'shiraz',
|
|
797
|
+
NationalCode: '756982456'
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
Id: 6,
|
|
801
|
+
FirstName: 'mohammad',
|
|
802
|
+
LastName: 'kamali',
|
|
803
|
+
FatherName: 'vahid',
|
|
804
|
+
Birthplace: 'ahvaz',
|
|
805
|
+
NationalCode: '32165897'
|
|
806
|
+
}
|
|
807
|
+
];
|
|
808
|
+
this.onClose$ = new Subject();
|
|
809
|
+
}
|
|
810
|
+
ngOnInit() {
|
|
811
|
+
super.ngOnInit();
|
|
812
|
+
this.value = {
|
|
813
|
+
Id: 5,
|
|
814
|
+
FirstName: 'وحید',
|
|
815
|
+
LastName: 'علیپور',
|
|
816
|
+
FatherName: 'علی',
|
|
817
|
+
Birthplace: 'شیراز',
|
|
818
|
+
NationalCode: '756982456',
|
|
819
|
+
Mobile: '09175623898'
|
|
820
|
+
};
|
|
821
|
+
this.onClose$.pipe().subscribe(() => {
|
|
822
|
+
// console.log('closed');
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
ngAfterViewInit() {
|
|
826
|
+
super.ngAfterViewInit();
|
|
827
|
+
this.onClose$ = this.popoverBodyDom.onClose;
|
|
828
|
+
}
|
|
829
|
+
filter() {
|
|
830
|
+
this.searchResult = this.personCollection.filter((person) => {
|
|
831
|
+
var _a, _b, _c;
|
|
832
|
+
return person.FirstName.toLowerCase().includes(((_a = this.filterItems) === null || _a === void 0 ? void 0 : _a.FirstName.toLowerCase()) || '') &&
|
|
833
|
+
person.LastName.toLowerCase().includes(((_b = this.filterItems) === null || _b === void 0 ? void 0 : _b.LastName.toLowerCase()) || '') &&
|
|
834
|
+
person.NationalCode.toString().includes(((_c = this.filterItems) === null || _c === void 0 ? void 0 : _c.NationalCode.toString()) || '');
|
|
835
|
+
});
|
|
836
|
+
}
|
|
837
|
+
select(person) {
|
|
838
|
+
this.selectedPerson = person;
|
|
839
|
+
}
|
|
840
|
+
confirm() {
|
|
841
|
+
var _a;
|
|
842
|
+
this.value = (_a = this.selectedPerson) !== null && _a !== void 0 ? _a : this.value;
|
|
843
|
+
this.valueChange.emit(this.value);
|
|
844
|
+
this.close();
|
|
845
|
+
}
|
|
846
|
+
close() {
|
|
847
|
+
this.dialogRef.close();
|
|
848
|
+
this.selectedPerson = null;
|
|
849
|
+
}
|
|
850
|
+
openDialog(template) {
|
|
851
|
+
this.resetTable();
|
|
852
|
+
this.dialogRef = this._dialogService.open(template, {
|
|
853
|
+
minHeight: '500px',
|
|
854
|
+
minWidth: '700px',
|
|
855
|
+
maxHeight: '1000px',
|
|
856
|
+
maxWidth: '1500px',
|
|
857
|
+
draggable: true,
|
|
858
|
+
resizable: true,
|
|
859
|
+
verticalPadding: false
|
|
860
|
+
});
|
|
861
|
+
this.dialogRef.loading(true);
|
|
862
|
+
setTimeout(() => this.dialogRef.loading(false), 500);
|
|
863
|
+
}
|
|
864
|
+
resetTable() {
|
|
865
|
+
this.filterItems = { FirstName: '', LastName: '', NationalCode: '' };
|
|
866
|
+
this.filter();
|
|
867
|
+
}
|
|
868
|
+
edit() { }
|
|
869
|
+
delete() {
|
|
870
|
+
this.value = null;
|
|
871
|
+
this.valueChange.emit(this.value);
|
|
872
|
+
}
|
|
873
|
+
openPopover() {
|
|
874
|
+
if (!this.isPopoverOpened && this.value) {
|
|
875
|
+
setTimeout(() => {
|
|
876
|
+
this.popoverDom.open();
|
|
877
|
+
}, 1000);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
openChange(isOpen) {
|
|
881
|
+
this.isPopoverOpened = isOpen;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
UiPersonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
885
|
+
UiPersonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: UiPersonComponent, selector: "bdc-ui-person", viewQueries: [{ propertyName: "popoverDom", first: true, predicate: ["popover"], descendants: true }, { propertyName: "popoverBodyDom", first: true, predicate: PopoverBodyComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<fd-popover [fillControlMode]=\"'equal'\" #popover (isOpenChange)=\"openChange($event)\">\r\n <fd-popover-control>\r\n <ul fd-list [compact]=\"true\">\r\n <li fd-list-item>\r\n <div fd-list-content>\r\n <div class=\"control-content\" (mouseover)=\"openPopover()\">\r\n <fd-icon glyph=\"person-placeholder\"></fd-icon>\r\n <div>\r\n <span>{{ value?.FirstName }}</span>\r\n </div>\r\n <div>\r\n <span>{{ value?.LastName }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"value; else selectButton\">\r\n <button fd-button fdType=\"transparent\" glyph=\"user-edit\" (click)=\"edit()\"></button>\r\n <button fd-button fdType=\"transparent\" glyph=\"decline\" (click)=\"delete()\"></button>\r\n </ng-container>\r\n <ng-template #selectButton>\r\n <button\r\n fd-button\r\n label=\"\u0627\u0646\u062A\u062E\u0627\u0628 \u0634\u062E\u0635\"\r\n fdType=\"transparent\"\r\n (click)=\"openDialog(dialogTemplate)\"\r\n ></button>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </fd-popover-control>\r\n <fd-popover-body *ngIf=\"value\" #popoverBody>\r\n <div class=\"resize-quick-view\">\r\n <fd-card cardType=\"quickView\">\r\n <fd-card-content>\r\n <fd-quick-view [id]=\"value.id\">\r\n <fd-quick-view-subheader>\r\n <fd-icon glyph=\"user\"></fd-icon>\r\n <fd-quick-view-subheader-title> \u0645\u0634\u062E\u0635\u0627\u062A </fd-quick-view-subheader-title>\r\n </fd-quick-view-subheader>\r\n\r\n <fd-quick-view-group>\r\n <fd-quick-view-group-item *ngFor=\"let item of value | keyvalue\">\r\n <div *ngIf=\"item.key !== 'Id'\" class=\"popover-body-item\">\r\n <fd-quick-view-group-item-label>\r\n {{ (item.key | uiPerson) + ':' }}\r\n </fd-quick-view-group-item-label>\r\n <fd-quick-view-group-item-content>\r\n <ng-container [ngSwitch]=\"item.value\">\r\n <a\r\n *ngSwitchCase=\"\r\n item.key === 'Mobile' || item.key === 'Phone' ? item.key : ''\r\n \"\r\n [href]=\"'tel:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n ></a>\r\n <a\r\n *ngSwitchCase=\"'Email'\"\r\n [href]=\"'mailto:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n ></a>\r\n <div *ngSwitchDefault [innerText]=\"item.value\"></div>\r\n </ng-container>\r\n </fd-quick-view-group-item-content>\r\n </div>\r\n </fd-quick-view-group-item>\r\n </fd-quick-view-group>\r\n </fd-quick-view>\r\n </fd-card-content>\r\n </fd-card>\r\n </div>\r\n </fd-popover-body>\r\n</fd-popover>\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\r\n <fd-dialog-header>\r\n <h1 fd-title>\u062C\u0633\u062A\u062C\u0648\u06CC \u0634\u062E\u0635</h1>\r\n <button fd-dialog-close-button (click)=\"dialog.dismiss('Close button')\"></button>\r\n </fd-dialog-header>\r\n\r\n <fd-dialog-body>\r\n <div class=\"filter\" (keydown.enter)=\"filter()\">\r\n <div fd-form-item>\r\n <label fd-form-label for=\"name\">\u0646\u0627\u0645</label>\r\n <input fd-form-control id=\"name\" [(ngModel)]=\"filterItems.FirstName\" />\r\n </div>\r\n <div fd-form-item>\r\n <label fd-form-label for=\"last-name\">\u0646\u0627\u0645 \u062E\u0627\u0646\u0648\u0627\u062F\u06AF\u06CC</label>\r\n <input fd-form-control id=\"last-name\" [(ngModel)]=\"filterItems.LastName\" />\r\n </div>\r\n <div fd-form-item>\r\n <label fd-form-label for=\"national-code\">\u06A9\u062F\u0645\u0644\u06CC</label>\r\n <input fd-form-control id=\"national-code\" [(ngModel)]=\"filterItems.NationalCode\" />\r\n </div>\r\n\r\n <fd-button-bar fd-initial-focus fdType=\"emphasized\" label=\"\u062C\u0633\u062A\u062C\u0648\" (click)=\"filter()\"> </fd-button-bar>\r\n </div>\r\n\r\n <table fd-table [noBorderX]=\"true\" [noBorderY]=\"true\">\r\n <thead fd-table-header>\r\n <tr fd-table-row>\r\n <th fd-table-cell>\u0646\u0627\u0645</th>\r\n <th fd-table-cell>\u0646\u0627\u0645 \u062E\u0627\u0646\u0648\u0627\u062F\u06AF\u06CC</th>\r\n <th fd-table-cell>\u06A9\u062F \u0645\u0644\u06CC</th>\r\n </tr>\r\n </thead>\r\n <tbody fd-table-body>\r\n <tr\r\n *ngFor=\"let person of searchResult\"\r\n (click)=\"select(person)\"\r\n [class.selected]=\"selectedPerson?.Id === person?.Id\"\r\n fd-table-row\r\n >\r\n <td fd-table-cell>\r\n {{ person.FirstName }}\r\n </td>\r\n <td fd-table-cell>{{ person.LastName }}</td>\r\n <td fd-table-cell>{{ person.NationalCode }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </fd-dialog-body>\r\n\r\n <fd-dialog-footer>\r\n <ng-template fdTemplate=\"footer\">\r\n <div fd-bar-right>\r\n <fd-button-bar fdType=\"emphasized\" label=\"\u062A\u0627\u06CC\u06CC\u062F\" (click)=\"confirm()\"> </fd-button-bar>\r\n <fd-button-bar fd-initial-focus label=\"\u0627\u0646\u0635\u0631\u0627\u0641\" (click)=\"close()\"> </fd-button-bar>\r\n </div>\r\n </ng-template>\r\n </fd-dialog-footer>\r\n </fd-dialog>\r\n</ng-template>\r\n", styles: [":host{display:flex;width:100%}::ng-deep .fd-dialog__body{padding:10px 15px!important}::ng-deep .fd-dialog__body .filter{display:flex;column-gap:5px;align-items:flex-end}::ng-deep .fd-dialog__body .filter fd-button-bar{margin-bottom:5px}::ng-deep .fd-dialog__body table{margin-top:25px}::ng-deep .fd-dialog__body table tr:hover{background-color:#f0f5f8}::ng-deep .fd-dialog__body table .selected{background-color:#d0e5ef}::ng-deep .popover-body-item{display:flex;column-gap:5px;align-items:center}::ng-deep .popover-body-item fd-quick-view-group-item-label .fd-form-label__wrapper{padding-left:0}fd-popover{flex:1}fd-popover fd-popover-body{width:300px}li{height:1.625rem!important;min-height:1.625rem!important;display:flex;margin-top:.1875rem!important;margin-bottom:.25rem!important;border:.0625rem solid #89919a!important;padding-left:0}li .fd-list__content{flex:1}li .fd-list__content .control-content{display:flex;column-gap:5px;margin-top:2px;width:-moz-fit-content;width:fit-content}li .fd-list__content .control-content div{margin-top:2px}li .fd-list__content .control-content fd-icon{margin-left:5px}li .fd-list__content .control-content:hover>*{color:#062b42;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.BarRightDirective, selector: "[fd-bar-right]" }, { kind: "component", type: i6.ButtonBarComponent, selector: "fd-button-bar", inputs: ["fullWidth", "fdType", "title", "ariaLabel", "ariaLabelledby", "id"] }, { kind: "component", type: i4$1.LinkComponent, selector: "[fdLink], [fd-link], [fd-breadcrumb-link]", inputs: ["class", "emphasized", "disabled", "inverted", "subtle", "undecorated"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i5$3.CardComponent, selector: "fd-card", inputs: ["badge", "isLoading", "cardType", "id", "role"] }, { kind: "component", type: i5$3.CardContentComponent, selector: "fd-card-content" }, { kind: "component", type: i7.FormControlComponent, selector: "[fd-form-control]", inputs: ["state", "type", "class"] }, { kind: "directive", type: i7.InputFormControlDirective, selector: "input[fd-form-control]" }, { kind: "component", type: i7.FormItemComponent, selector: "[fd-form-item]", inputs: ["isInline", "horizontal"] }, { kind: "component", type: i7.FormLabelComponent, selector: "[fd-form-label]", inputs: ["required", "colon", "checkbox", "radio", "alignLabelEnd", "inlineHelpTitle", "inlineHelpGlyph", "inlineHelpTriggers", "inlineHelpBodyPlacement", "inlineHelpPlacement", "id"] }, { kind: "component", type: i3$5.IconComponent, selector: "fd-icon", inputs: ["glyph", "font", "class", "ariaLabel"] }, { kind: "component", type: i9.ListComponent, selector: "[fd-list], [fdList]", inputs: ["dropdownMode", "multiInputMode", "mobileMode", "hasMessage", "noBorder", "navigationIndicator", "selection", "keyboardSupport", "byline"], outputs: ["focusEscapeList"] }, { kind: "component", type: i9.ListItemComponent, selector: "[fdListItem] ,[fd-list-item]", inputs: ["selected", "ariaDescribedBy", "noData", "action", "interactive", "growing", "counter", "unread", "selectedListItemScreenReaderText", "navigatedListItemScreenReaderText", "navigatableListItemScreenReaderText"], outputs: ["keyDown"] }, { kind: "directive", type: i9.ListContentDirective, selector: "[fdListContent], [fd-list-content]", inputs: ["twoCol"] }, { kind: "directive", type: i9.DeprecatedListContentDensityDirective, selector: "[fd-list][compact], [fdList][compact]" }, { kind: "component", type: i5$2.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i5$2.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i5$2.DialogFooterComponent, selector: "fd-dialog-footer" }, { kind: "component", type: i5$2.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i5$2.DialogCloseButtonComponent, selector: "[fd-dialog-close-button]", inputs: ["mobile", "title"] }, { kind: "component", type: i6$1.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "directive", type: i12.TemplateDirective, selector: "[fdTemplate]", inputs: ["fdTemplate"] }, { kind: "directive", type: i12.InitialFocusDirective, selector: "[fdInitialFocus], [fd-initial-focus]", inputs: ["fd-initial-focus", "enabled", "focusLastElement"] }, { kind: "component", type: i13.PopoverControlComponent, selector: "fd-popover-control" }, { kind: "component", type: i13.PopoverBodyComponent, selector: "fd-popover-body" }, { kind: "component", type: i13.PopoverComponent, selector: "fd-popover", inputs: ["title", "trigger", "fixedPosition", "id", "mobile", "mobileConfig"] }, { kind: "component", type: i4$2.QuickViewComponent, selector: "fd-quick-view", inputs: ["id"] }, { kind: "component", type: i4$2.QuickViewSubheaderComponent, selector: "fd-quick-view-subheader" }, { kind: "component", type: i4$2.QuickViewSubheaderTitleComponent, selector: "fd-quick-view-subheader-title" }, { kind: "component", type: i4$2.QuickViewGroupComponent, selector: "fd-quick-view-group" }, { kind: "component", type: i4$2.QuickViewGroupItemComponent, selector: "fd-quick-view-group-item", inputs: ["id"] }, { kind: "component", type: i4$2.QuickViewGroupItemLabelComponent, selector: "fd-quick-view-group-item-label" }, { kind: "component", type: i4$2.QuickViewGroupItemContentComponent, selector: "fd-quick-view-group-item-content" }, { kind: "component", type: i15.TableComponent, selector: "table[fd-table]", inputs: ["noBorderX", "noBorderY", "popIn", "responsive", "keys", "allCellsFocusable"], exportAs: ["fd-table"] }, { kind: "directive", type: i15.TableHeaderDirective, selector: "[fdTableHeader], [fd-table-header]", inputs: ["noBorderX", "noBorderY"] }, { kind: "directive", type: i15.TableBodyDirective, selector: "[fdTableBody], [fd-table-body]", inputs: ["noBorderX", "noBorderY"] }, { kind: "directive", type: i15.TableRowDirective, selector: "[fdTableRow], [fd-table-row]", inputs: ["activable", "highlightActive", "hoverable", "focusable", "main", "secondary", "active"] }, { kind: "directive", type: i15.TableCellDirective, selector: "[fdTableCell], [fd-table-cell]", inputs: ["noBorderX", "noBorderY", "activable", "focusable", "tabindex", "hoverable", "fitContent", "noPadding", "noData", "key", "cellFocusedEventAnnouncer"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1$1.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: UiPersonPipe, name: "uiPerson" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonComponent, decorators: [{
|
|
887
|
+
type: Component,
|
|
888
|
+
args: [{ selector: 'bdc-ui-person', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-popover [fillControlMode]=\"'equal'\" #popover (isOpenChange)=\"openChange($event)\">\r\n <fd-popover-control>\r\n <ul fd-list [compact]=\"true\">\r\n <li fd-list-item>\r\n <div fd-list-content>\r\n <div class=\"control-content\" (mouseover)=\"openPopover()\">\r\n <fd-icon glyph=\"person-placeholder\"></fd-icon>\r\n <div>\r\n <span>{{ value?.FirstName }}</span>\r\n </div>\r\n <div>\r\n <span>{{ value?.LastName }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"value; else selectButton\">\r\n <button fd-button fdType=\"transparent\" glyph=\"user-edit\" (click)=\"edit()\"></button>\r\n <button fd-button fdType=\"transparent\" glyph=\"decline\" (click)=\"delete()\"></button>\r\n </ng-container>\r\n <ng-template #selectButton>\r\n <button\r\n fd-button\r\n label=\"\u0627\u0646\u062A\u062E\u0627\u0628 \u0634\u062E\u0635\"\r\n fdType=\"transparent\"\r\n (click)=\"openDialog(dialogTemplate)\"\r\n ></button>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </fd-popover-control>\r\n <fd-popover-body *ngIf=\"value\" #popoverBody>\r\n <div class=\"resize-quick-view\">\r\n <fd-card cardType=\"quickView\">\r\n <fd-card-content>\r\n <fd-quick-view [id]=\"value.id\">\r\n <fd-quick-view-subheader>\r\n <fd-icon glyph=\"user\"></fd-icon>\r\n <fd-quick-view-subheader-title> \u0645\u0634\u062E\u0635\u0627\u062A </fd-quick-view-subheader-title>\r\n </fd-quick-view-subheader>\r\n\r\n <fd-quick-view-group>\r\n <fd-quick-view-group-item *ngFor=\"let item of value | keyvalue\">\r\n <div *ngIf=\"item.key !== 'Id'\" class=\"popover-body-item\">\r\n <fd-quick-view-group-item-label>\r\n {{ (item.key | uiPerson) + ':' }}\r\n </fd-quick-view-group-item-label>\r\n <fd-quick-view-group-item-content>\r\n <ng-container [ngSwitch]=\"item.value\">\r\n <a\r\n *ngSwitchCase=\"\r\n item.key === 'Mobile' || item.key === 'Phone' ? item.key : ''\r\n \"\r\n [href]=\"'tel:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n ></a>\r\n <a\r\n *ngSwitchCase=\"'Email'\"\r\n [href]=\"'mailto:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n ></a>\r\n <div *ngSwitchDefault [innerText]=\"item.value\"></div>\r\n </ng-container>\r\n </fd-quick-view-group-item-content>\r\n </div>\r\n </fd-quick-view-group-item>\r\n </fd-quick-view-group>\r\n </fd-quick-view>\r\n </fd-card-content>\r\n </fd-card>\r\n </div>\r\n </fd-popover-body>\r\n</fd-popover>\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #dialogTemplate>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\r\n <fd-dialog-header>\r\n <h1 fd-title>\u062C\u0633\u062A\u062C\u0648\u06CC \u0634\u062E\u0635</h1>\r\n <button fd-dialog-close-button (click)=\"dialog.dismiss('Close button')\"></button>\r\n </fd-dialog-header>\r\n\r\n <fd-dialog-body>\r\n <div class=\"filter\" (keydown.enter)=\"filter()\">\r\n <div fd-form-item>\r\n <label fd-form-label for=\"name\">\u0646\u0627\u0645</label>\r\n <input fd-form-control id=\"name\" [(ngModel)]=\"filterItems.FirstName\" />\r\n </div>\r\n <div fd-form-item>\r\n <label fd-form-label for=\"last-name\">\u0646\u0627\u0645 \u062E\u0627\u0646\u0648\u0627\u062F\u06AF\u06CC</label>\r\n <input fd-form-control id=\"last-name\" [(ngModel)]=\"filterItems.LastName\" />\r\n </div>\r\n <div fd-form-item>\r\n <label fd-form-label for=\"national-code\">\u06A9\u062F\u0645\u0644\u06CC</label>\r\n <input fd-form-control id=\"national-code\" [(ngModel)]=\"filterItems.NationalCode\" />\r\n </div>\r\n\r\n <fd-button-bar fd-initial-focus fdType=\"emphasized\" label=\"\u062C\u0633\u062A\u062C\u0648\" (click)=\"filter()\"> </fd-button-bar>\r\n </div>\r\n\r\n <table fd-table [noBorderX]=\"true\" [noBorderY]=\"true\">\r\n <thead fd-table-header>\r\n <tr fd-table-row>\r\n <th fd-table-cell>\u0646\u0627\u0645</th>\r\n <th fd-table-cell>\u0646\u0627\u0645 \u062E\u0627\u0646\u0648\u0627\u062F\u06AF\u06CC</th>\r\n <th fd-table-cell>\u06A9\u062F \u0645\u0644\u06CC</th>\r\n </tr>\r\n </thead>\r\n <tbody fd-table-body>\r\n <tr\r\n *ngFor=\"let person of searchResult\"\r\n (click)=\"select(person)\"\r\n [class.selected]=\"selectedPerson?.Id === person?.Id\"\r\n fd-table-row\r\n >\r\n <td fd-table-cell>\r\n {{ person.FirstName }}\r\n </td>\r\n <td fd-table-cell>{{ person.LastName }}</td>\r\n <td fd-table-cell>{{ person.NationalCode }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </fd-dialog-body>\r\n\r\n <fd-dialog-footer>\r\n <ng-template fdTemplate=\"footer\">\r\n <div fd-bar-right>\r\n <fd-button-bar fdType=\"emphasized\" label=\"\u062A\u0627\u06CC\u06CC\u062F\" (click)=\"confirm()\"> </fd-button-bar>\r\n <fd-button-bar fd-initial-focus label=\"\u0627\u0646\u0635\u0631\u0627\u0641\" (click)=\"close()\"> </fd-button-bar>\r\n </div>\r\n </ng-template>\r\n </fd-dialog-footer>\r\n </fd-dialog>\r\n</ng-template>\r\n", styles: [":host{display:flex;width:100%}::ng-deep .fd-dialog__body{padding:10px 15px!important}::ng-deep .fd-dialog__body .filter{display:flex;column-gap:5px;align-items:flex-end}::ng-deep .fd-dialog__body .filter fd-button-bar{margin-bottom:5px}::ng-deep .fd-dialog__body table{margin-top:25px}::ng-deep .fd-dialog__body table tr:hover{background-color:#f0f5f8}::ng-deep .fd-dialog__body table .selected{background-color:#d0e5ef}::ng-deep .popover-body-item{display:flex;column-gap:5px;align-items:center}::ng-deep .popover-body-item fd-quick-view-group-item-label .fd-form-label__wrapper{padding-left:0}fd-popover{flex:1}fd-popover fd-popover-body{width:300px}li{height:1.625rem!important;min-height:1.625rem!important;display:flex;margin-top:.1875rem!important;margin-bottom:.25rem!important;border:.0625rem solid #89919a!important;padding-left:0}li .fd-list__content{flex:1}li .fd-list__content .control-content{display:flex;column-gap:5px;margin-top:2px;width:-moz-fit-content;width:fit-content}li .fd-list__content .control-content div{margin-top:2px}li .fd-list__content .control-content fd-icon{margin-left:5px}li .fd-list__content .control-content:hover>*{color:#062b42;font-weight:700}\n"] }]
|
|
889
|
+
}], propDecorators: { popoverDom: [{
|
|
890
|
+
type: ViewChild,
|
|
891
|
+
args: ['popover']
|
|
892
|
+
}], popoverBodyDom: [{
|
|
893
|
+
type: ViewChild,
|
|
894
|
+
args: [PopoverBodyComponent]
|
|
895
|
+
}] } });
|
|
896
|
+
|
|
897
|
+
class LoginSocialConncetionsComponent extends ReportBaseComponent {
|
|
898
|
+
constructor(_ulvMainService, _portalService, reportValuePipe) {
|
|
899
|
+
super(_portalService, _ulvMainService);
|
|
900
|
+
this._ulvMainService = _ulvMainService;
|
|
901
|
+
this._portalService = _portalService;
|
|
902
|
+
this.reportValuePipe = reportValuePipe;
|
|
903
|
+
this.rtl = BarsaApi.LoginFormData.IsRtl;
|
|
904
|
+
}
|
|
905
|
+
onClick(mo) {
|
|
906
|
+
const provider = this.reportValuePipe.transform('Name', mo, this.allColumns, true);
|
|
907
|
+
const returnUrl = encodeURIComponent(window.location.href);
|
|
908
|
+
BarsaApi.Bw.NavigateTo(`/api/openId/signin?provider=${provider}&returnUrl=${returnUrl}`);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
LoginSocialConncetionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoginSocialConncetionsComponent, deps: [{ token: i1$2.UlvMainService }, { token: i1$2.PortalService }, { token: i1$2.MoReportValuePipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
912
|
+
LoginSocialConncetionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: LoginSocialConncetionsComponent, selector: "bdc-login-social-conncetions", host: { properties: { "attr.rtl": "this.rtl" } }, usesInheritance: true, ngImport: i0, template: "<button\n *ngFor=\"let mo of moDataList$ | async\"\n fd-button\n [label]=\"'Display Text' | rval: mo:allColumns\"\n [fdType]=\"'FdType' | rval: mo:allColumns:true\"\n (click)=\"onClick(mo)\"\n>\n <img\n style=\"max-width: 28px\"\n [src]=\"('Logo' | rval: mo:allColumns)?.FileId | picFieldSrc: 'GetPictureFromFileInfo':null\"\n />\n</button>\n", styles: [":host{display:flex;flex-wrap:wrap;width:100%;justify-content:stretch;margin-top:1rem;column-gap:5px;row-gap:5px}button{flex-grow:1;flex-direction:row-reverse}button img{padding:5px}fd-toolbar{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.MoReportValuePipe, name: "rval" }, { kind: "pipe", type: i1$2.PictureFieldSourcePipe, name: "picFieldSrc" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoginSocialConncetionsComponent, decorators: [{
|
|
914
|
+
type: Component,
|
|
915
|
+
args: [{ selector: 'bdc-login-social-conncetions', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n *ngFor=\"let mo of moDataList$ | async\"\n fd-button\n [label]=\"'Display Text' | rval: mo:allColumns\"\n [fdType]=\"'FdType' | rval: mo:allColumns:true\"\n (click)=\"onClick(mo)\"\n>\n <img\n style=\"max-width: 28px\"\n [src]=\"('Logo' | rval: mo:allColumns)?.FileId | picFieldSrc: 'GetPictureFromFileInfo':null\"\n />\n</button>\n", styles: [":host{display:flex;flex-wrap:wrap;width:100%;justify-content:stretch;margin-top:1rem;column-gap:5px;row-gap:5px}button{flex-grow:1;flex-direction:row-reverse}button img{padding:5px}fd-toolbar{width:100%}\n"] }]
|
|
916
|
+
}], ctorParameters: function () { return [{ type: i1$2.UlvMainService }, { type: i1$2.PortalService }, { type: i1$2.MoReportValuePipe }]; }, propDecorators: { rtl: [{
|
|
917
|
+
type: HostBinding,
|
|
918
|
+
args: ['attr.rtl']
|
|
919
|
+
}] } });
|
|
920
|
+
|
|
921
|
+
class LoginFormComponent extends FormBaseComponent {
|
|
922
|
+
constructor(_controlUiPipe, _portalService, _formPanelService) {
|
|
923
|
+
super(_formPanelService);
|
|
924
|
+
this._controlUiPipe = _controlUiPipe;
|
|
925
|
+
this._portalService = _portalService;
|
|
926
|
+
this._formPanelService = _formPanelService;
|
|
927
|
+
this.onKeyEnter = (_) => {
|
|
928
|
+
const layoutItem = this._controlUiPipe.transform(' ورود', this.layout94);
|
|
929
|
+
if (layoutItem) {
|
|
930
|
+
layoutItem.FieldUi.fireEvent('click', layoutItem.FieldUi);
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
}
|
|
934
|
+
ngOnInit() {
|
|
935
|
+
super.ngOnInit();
|
|
936
|
+
this.layout94$.subscribe((layout94) => {
|
|
937
|
+
this.layout94 = layout94;
|
|
938
|
+
});
|
|
939
|
+
this.size$ = this._portalService.deviceSize$.pipe(map((deviceSize) => {
|
|
940
|
+
switch (deviceSize) {
|
|
941
|
+
case 's':
|
|
942
|
+
return 'sm';
|
|
943
|
+
case 'm':
|
|
944
|
+
return 'md';
|
|
945
|
+
default:
|
|
946
|
+
return 'xl';
|
|
947
|
+
}
|
|
948
|
+
}));
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
LoginFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoginFormComponent, deps: [{ token: i1$2.ControlUiPipe }, { token: i1$2.PortalService }, { token: i1$2.FormPanelService }], target: i0.ɵɵFactoryTarget.Component });
|
|
952
|
+
LoginFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: LoginFormComponent, selector: "bdc-login-form", host: { listeners: { "keydown.enter": "onKeyEnter($event)" } }, providers: [FormPanelService], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"mo$ | async as mo\">\n <bsu-mask *ngIf=\"mo.IsLogging\"></bsu-mask>\n <fd-layout-grid *ngIf=\"(size$ | async) === 'sm'; else sideContent\">\n <div [fdLayoutGridCol]=\"1\"></div>\n\n <div [fdLayoutGridCol]=\"10\">\n <bsu-ly-layout-container-of-root\n [config]=\"layout94$ | async\"\n [isPanel]=\"false\"\n [isRoot]=\"true\"\n ></bsu-ly-layout-container-of-root>\n </div>\n\n <div [fdLayoutGridCol]=\"1\"></div>\n </fd-layout-grid>\n <ng-template #sideContent>\n <fd-dynamic-side-content [size]=\"(size$ | async)!!\">\n <fd-dynamic-side-content-side>\n <bsu-ly-layout-container-of-root\n [config]=\"layout94$ | async\"\n [isPanel]=\"false\"\n [isRoot]=\"true\"\n ></bsu-ly-layout-container-of-root>\n </fd-dynamic-side-content-side>\n <fd-dynamic-side-content-main>\n <!-- <ng-container *ngIf=\"'\u0639\u06A9\u0633 \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647' | controlUi: layout94 as layoutConfig\">\n <bsu-layout-control\n [caption]=\"'\u0639\u06A9\u0633 \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647'\"\n [config]=\"layoutConfig\"\n [showLabel]=\"false\"\n [inlineEdit]=\"true\"\n \n ></bsu-layout-control>\n </ng-container> -->\n <div\n *ngIf=\"'\u0639\u06A9\u0633 \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647' | controlUi: layout94 as layoutConfig\"\n id=\"bgLogin\"\n [style.backgroundImage]=\"\n 'url(' +\n (mo.Background.FileId\n | picFieldSrc: 'PictureFileInfo':null:layoutConfig.FieldUi.Setting.FieldDefId) +\n ')'\n \"\n ></div>\n </fd-dynamic-side-content-main>\n </fd-dynamic-side-content>\n </ng-template>\n</ng-container>\n", styles: [":host{display:block;background-color:#fff}:host ::ng-deep bsu-ly-simple-label{text-align:center}:host ::ng-deep bsu-ly-simple-label:nth-of-type(1){margin-top:15px}:host ::ng-deep bsu-ui-picture-file{text-align:center}:host ::ng-deep .wrap-content>.container-field{max-width:100%!important}fd-dynamic-side-content{min-height:99vh}fd-dynamic-side-content-side{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}bsu-ly-layout-container-of-root{padding:0 1rem;box-sizing:border-box;display:flex;align-items:center;height:100%}#bgLogin{width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat}@media (max-width: 599px){:host ::ng-deep bsu-layout-control{min-width:auto!important}:host ::ng-deep bsu-ly-layout-container-of-root{padding:0}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$3.LyLayoutContainerOfRootComponent, selector: "bsu-ly-layout-container-of-root" }, { kind: "component", type: i3$3.MaskComponent, selector: "bsu-mask", inputs: ["size", "marginTop"] }, { kind: "component", type: i5$1.DynamicSideContentComponent, selector: "fd-dynamic-side-content", inputs: ["position", "size", "id"] }, { kind: "component", type: i5$1.DynamicSideContentSideComponent, selector: "fd-dynamic-side-content-side", inputs: ["id"] }, { kind: "component", type: i5$1.DynamicSideContentMainComponent, selector: "fd-dynamic-side-content-main", inputs: ["id"] }, { kind: "component", type: i5$4.LayoutGridComponent, selector: "fd-layout-grid, [fdLayoutGrid]", inputs: ["class", "noGap", "noHorizontalGap", "noVerticalGap"] }, { kind: "directive", type: i5$4.LayoutGridColDirective, selector: "[fd-layout-grid-col], [fdLayoutGridCol]", inputs: ["fdLayoutGridCol", "colGrow", "colMd", "colLg", "colXl", "colOffset", "colOffsetMd", "colOffsetLg", "colOffsetXl", "class"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.PictureFieldSourcePipe, name: "picFieldSrc" }, { kind: "pipe", type: i1$2.ControlUiPipe, name: "controlUi" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoginFormComponent, decorators: [{
|
|
954
|
+
type: Component,
|
|
955
|
+
args: [{ selector: 'bdc-login-form', changeDetection: ChangeDetectionStrategy.OnPush, providers: [FormPanelService], template: "<ng-container *ngIf=\"mo$ | async as mo\">\n <bsu-mask *ngIf=\"mo.IsLogging\"></bsu-mask>\n <fd-layout-grid *ngIf=\"(size$ | async) === 'sm'; else sideContent\">\n <div [fdLayoutGridCol]=\"1\"></div>\n\n <div [fdLayoutGridCol]=\"10\">\n <bsu-ly-layout-container-of-root\n [config]=\"layout94$ | async\"\n [isPanel]=\"false\"\n [isRoot]=\"true\"\n ></bsu-ly-layout-container-of-root>\n </div>\n\n <div [fdLayoutGridCol]=\"1\"></div>\n </fd-layout-grid>\n <ng-template #sideContent>\n <fd-dynamic-side-content [size]=\"(size$ | async)!!\">\n <fd-dynamic-side-content-side>\n <bsu-ly-layout-container-of-root\n [config]=\"layout94$ | async\"\n [isPanel]=\"false\"\n [isRoot]=\"true\"\n ></bsu-ly-layout-container-of-root>\n </fd-dynamic-side-content-side>\n <fd-dynamic-side-content-main>\n <!-- <ng-container *ngIf=\"'\u0639\u06A9\u0633 \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647' | controlUi: layout94 as layoutConfig\">\n <bsu-layout-control\n [caption]=\"'\u0639\u06A9\u0633 \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647'\"\n [config]=\"layoutConfig\"\n [showLabel]=\"false\"\n [inlineEdit]=\"true\"\n \n ></bsu-layout-control>\n </ng-container> -->\n <div\n *ngIf=\"'\u0639\u06A9\u0633 \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647' | controlUi: layout94 as layoutConfig\"\n id=\"bgLogin\"\n [style.backgroundImage]=\"\n 'url(' +\n (mo.Background.FileId\n | picFieldSrc: 'PictureFileInfo':null:layoutConfig.FieldUi.Setting.FieldDefId) +\n ')'\n \"\n ></div>\n </fd-dynamic-side-content-main>\n </fd-dynamic-side-content>\n </ng-template>\n</ng-container>\n", styles: [":host{display:block;background-color:#fff}:host ::ng-deep bsu-ly-simple-label{text-align:center}:host ::ng-deep bsu-ly-simple-label:nth-of-type(1){margin-top:15px}:host ::ng-deep bsu-ui-picture-file{text-align:center}:host ::ng-deep .wrap-content>.container-field{max-width:100%!important}fd-dynamic-side-content{min-height:99vh}fd-dynamic-side-content-side{box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}bsu-ly-layout-container-of-root{padding:0 1rem;box-sizing:border-box;display:flex;align-items:center;height:100%}#bgLogin{width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat}@media (max-width: 599px){:host ::ng-deep bsu-layout-control{min-width:auto!important}:host ::ng-deep bsu-ly-layout-container-of-root{padding:0}}\n"] }]
|
|
956
|
+
}], ctorParameters: function () { return [{ type: i1$2.ControlUiPipe }, { type: i1$2.PortalService }, { type: i1$2.FormPanelService }]; }, propDecorators: { onKeyEnter: [{
|
|
957
|
+
type: HostListener,
|
|
958
|
+
args: ['keydown.enter', ['$event']]
|
|
959
|
+
}] } });
|
|
960
|
+
|
|
961
|
+
class ServiceDeskHeaderComponent extends TilesViewerContainerComponent {
|
|
962
|
+
constructor(_portalService, _tilesService, _tilesViewerService, _renderer, _viewportScroller, _cdr, _router, _activatedRoute) {
|
|
963
|
+
super(_portalService, _tilesService, _tilesViewerService);
|
|
964
|
+
this._portalService = _portalService;
|
|
965
|
+
this._tilesService = _tilesService;
|
|
966
|
+
this._tilesViewerService = _tilesViewerService;
|
|
967
|
+
this._renderer = _renderer;
|
|
968
|
+
this._viewportScroller = _viewportScroller;
|
|
969
|
+
this._cdr = _cdr;
|
|
970
|
+
this._router = _router;
|
|
971
|
+
this._activatedRoute = _activatedRoute;
|
|
972
|
+
this.selectedTabIndex = 0;
|
|
973
|
+
this.heightOfSpaceHolder = 248;
|
|
974
|
+
this.searchTerm = '';
|
|
975
|
+
this._enableScroll = false;
|
|
976
|
+
this._stickyTopPosition = 66;
|
|
977
|
+
this.observerList = [];
|
|
978
|
+
const root = document.documentElement;
|
|
979
|
+
root.style.setProperty('--absolute-page-top', this._stickyTopPosition + 'px');
|
|
980
|
+
}
|
|
981
|
+
ngOnInit() {
|
|
982
|
+
super.ngOnInit();
|
|
983
|
+
this._portalService.searchTerm$.pipe(takeUntil$1(this._onDestroy$)).subscribe((term) => {
|
|
984
|
+
this.searchTerm = term;
|
|
985
|
+
this._cdr.detectChanges();
|
|
986
|
+
});
|
|
987
|
+
this.appTileGroups$.subscribe((appTileGroups) => appTileGroups.forEach((c) => this._tilesViewerService.loadAppGroup(c)));
|
|
988
|
+
this.heightOfSpaceHolder = 625;
|
|
989
|
+
this._renderer.setStyle(this.navHolder.nativeElement, 'top', this._stickyTopPosition + 'px');
|
|
990
|
+
this.setGridTemplateRows(this.heightOfSpaceHolder);
|
|
991
|
+
this._portalService.deviceSize$.subscribe((c) => {
|
|
992
|
+
let newHeight = this.heightOfSpaceHolder;
|
|
993
|
+
this.tabSize = c;
|
|
994
|
+
if (c === 's') {
|
|
995
|
+
newHeight = 148;
|
|
996
|
+
}
|
|
997
|
+
else if (c === 'm') {
|
|
998
|
+
newHeight = 220;
|
|
999
|
+
}
|
|
1000
|
+
else if (c === 'l') {
|
|
1001
|
+
newHeight = 250;
|
|
1002
|
+
}
|
|
1003
|
+
else {
|
|
1004
|
+
newHeight = 325;
|
|
1005
|
+
}
|
|
1006
|
+
if (this.heightOfSpaceHolder !== newHeight) {
|
|
1007
|
+
this.heightOfSpaceHolder = newHeight;
|
|
1008
|
+
this.setGridTemplateRows(newHeight);
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
ngAfterViewInit() {
|
|
1013
|
+
const deviceSize = this._portalService.deviceSize;
|
|
1014
|
+
let stickyTopPosition = 20;
|
|
1015
|
+
if (deviceSize === 's') {
|
|
1016
|
+
stickyTopPosition = 60;
|
|
1017
|
+
}
|
|
1018
|
+
this._stickyDom(this.aboveSearch.nativeElement, this.searchHolder.nativeElement, -stickyTopPosition, 'sticky');
|
|
1019
|
+
this._stickyDom(this.aboveContent.nativeElement, this.navHolder.nativeElement, -this._stickyTopPosition, 'sticky');
|
|
1020
|
+
this._stickyDom(this.aboveContent.nativeElement, this.bgOuterHolder.nativeElement, -this._stickyTopPosition, 'sticky', () => {
|
|
1021
|
+
this._renderer.setStyle(this.bgOuterHolder.nativeElement, 'height', this._stickyTopPosition + 'px');
|
|
1022
|
+
}, () => {
|
|
1023
|
+
this._renderer.setStyle(this.bgOuterHolder.nativeElement, 'height', '100%');
|
|
1024
|
+
});
|
|
1025
|
+
this._stickyDom(this.aboveSearch.nativeElement, this.contentAndNav.nativeElement, -stickyTopPosition, 'navAndContent_tb', () => {
|
|
1026
|
+
this._renderer.removeAttribute(this.contentAndNav.nativeElement, 'first');
|
|
1027
|
+
}, () => {
|
|
1028
|
+
this._renderer.setAttribute(this.contentAndNav.nativeElement, 'first', 'true');
|
|
1029
|
+
});
|
|
1030
|
+
setTimeout(() => {
|
|
1031
|
+
this._enableScroll = true;
|
|
1032
|
+
}, 1000);
|
|
1033
|
+
this._portalService.navigationStart$.pipe(takeUntil$1(this._onDestroy$)).subscribe((event) => {
|
|
1034
|
+
this._lastScrollPos = window.scrollY;
|
|
1035
|
+
if (event === null) {
|
|
1036
|
+
return;
|
|
1037
|
+
}
|
|
1038
|
+
if ((event === null || event === void 0 ? void 0 : event.url) !== '/home' && (event === null || event === void 0 ? void 0 : event.url) !== '/' && !this._disableIntersection) {
|
|
1039
|
+
this.prepareForm();
|
|
1040
|
+
}
|
|
1041
|
+
});
|
|
1042
|
+
this._portalService.navigationEnd$.pipe(takeUntil$1(this._onDestroy$)).subscribe((event) => {
|
|
1043
|
+
if (event !== null && ((event === null || event === void 0 ? void 0 : event.url) === '/home' || (event === null || event === void 0 ? void 0 : event.url) === '/')) {
|
|
1044
|
+
this.unPrepareForm();
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
onSearchSubmit($event) {
|
|
1049
|
+
const searchTerm = $event.text;
|
|
1050
|
+
this._router.navigateByUrl('home/search?term=' + searchTerm);
|
|
1051
|
+
// var searchMo = BarsaApi.Bw.RunBlMethod('GetSearchMo', this.searchTerm);
|
|
1052
|
+
// BarsaApi.Bw.Form.Show({ Mo: searchMo });
|
|
1053
|
+
}
|
|
1054
|
+
prepareForm() {
|
|
1055
|
+
this._disableIntersection = true;
|
|
1056
|
+
this._cdr.detach();
|
|
1057
|
+
this.disconnectIntersctionObserverList();
|
|
1058
|
+
this._renderer.addClass(this.searchHolder.nativeElement, 'sticky');
|
|
1059
|
+
this._renderer.addClass(this.contentAndNav.nativeElement, 'hide');
|
|
1060
|
+
this.visibleContent(false);
|
|
1061
|
+
const flags = RendererStyleFlags2.Important;
|
|
1062
|
+
this._renderer.setStyle(document.body, 'overflow', 'hidden', flags);
|
|
1063
|
+
this.scrollToTop();
|
|
1064
|
+
}
|
|
1065
|
+
unPrepareForm() {
|
|
1066
|
+
// this.setHeightSearchHolder(this.heightOfSpaceHolder);
|
|
1067
|
+
this.visibleContent(true);
|
|
1068
|
+
// this._renderer.removeClass(this.searchHolder.nativeElement, 'sticky');
|
|
1069
|
+
this._renderer.removeClass(this.searchHolder.nativeElement, 'hide');
|
|
1070
|
+
this._renderer.removeClass(this.contentAndNav.nativeElement, 'hide');
|
|
1071
|
+
const flags = RendererStyleFlags2.Important;
|
|
1072
|
+
this._renderer.setStyle(document.body, 'overflow', 'auto', flags);
|
|
1073
|
+
this.scrollToTop();
|
|
1074
|
+
this._cdr.reattach();
|
|
1075
|
+
this._disableIntersection = false;
|
|
1076
|
+
this.connectIntersctionObserverList();
|
|
1077
|
+
}
|
|
1078
|
+
setHeightSearchHolder(height) {
|
|
1079
|
+
this._renderer.setStyle(this.headerSpaceHolder.nativeElement, 'height', `${height}px`);
|
|
1080
|
+
}
|
|
1081
|
+
visibleContent(visible) {
|
|
1082
|
+
this._renderer.setStyle(this.contentAndNav.nativeElement, 'display', visible ? 'flex' : 'none');
|
|
1083
|
+
}
|
|
1084
|
+
setGridTemplateRows(height) {
|
|
1085
|
+
this._renderer.setStyle(this.headerGrid.nativeElement, 'grid-template-rows', `minmax(78px, 15%) 46px 32px 1fr auto 12%; height:${height}px`);
|
|
1086
|
+
// this._renderer.setStyle(this.headerGrid.nativeElement, 'background-color', `red`);
|
|
1087
|
+
this._renderer.setStyle(this.headerSpaceHolder.nativeElement, 'height', `${height}px`);
|
|
1088
|
+
}
|
|
1089
|
+
onSelectedTabChange3(selectedTab) {
|
|
1090
|
+
var _a;
|
|
1091
|
+
this.scrollToTop();
|
|
1092
|
+
if (selectedTab.id === '0') {
|
|
1093
|
+
return;
|
|
1094
|
+
}
|
|
1095
|
+
const elementRefOfselectedTileGroup = (_a = this.tilesViewerGroupElList.get(Number(selectedTab.id))) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
1096
|
+
elementRefOfselectedTileGroup.scrollIntoView({
|
|
1097
|
+
block: 'start'
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
scrollToLastPos() {
|
|
1101
|
+
this._viewportScroller.scrollToPosition([0, this._lastScrollPos]);
|
|
1102
|
+
}
|
|
1103
|
+
scrollToTop() {
|
|
1104
|
+
if (this._enableScroll) {
|
|
1105
|
+
this._viewportScroller.scrollToPosition([0, this.heightOfSpaceHolder - this._stickyTopPosition]);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
disconnectIntersctionObserverList() {
|
|
1109
|
+
this.observerList.forEach((c) => c.observer.disconnect());
|
|
1110
|
+
}
|
|
1111
|
+
connectIntersctionObserverList() {
|
|
1112
|
+
this.observerList.forEach((c) => c.observer.observe(c.el));
|
|
1113
|
+
}
|
|
1114
|
+
_stickyDom(above, holder, marginTop, className, visibleCallback, hiddenCallBack) {
|
|
1115
|
+
const handler = (entries) => {
|
|
1116
|
+
if (this._disableIntersection) {
|
|
1117
|
+
return;
|
|
1118
|
+
}
|
|
1119
|
+
if (!entries[0].isIntersecting) {
|
|
1120
|
+
this._renderer.addClass(holder, className);
|
|
1121
|
+
if (typeof visibleCallback === 'function') {
|
|
1122
|
+
visibleCallback();
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
else {
|
|
1126
|
+
this._renderer.removeClass(holder, className);
|
|
1127
|
+
if (typeof hiddenCallBack === 'function') {
|
|
1128
|
+
hiddenCallBack();
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
};
|
|
1132
|
+
const options = {
|
|
1133
|
+
rootMargin: `${marginTop}px 0px 0px 0px`,
|
|
1134
|
+
threshold: 0.1
|
|
1135
|
+
};
|
|
1136
|
+
const observer = new window.IntersectionObserver(handler, options);
|
|
1137
|
+
observer.observe(above);
|
|
1138
|
+
this.observerList.push({ el: above, observer });
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
ServiceDeskHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskHeaderComponent, deps: [{ token: i1$2.PortalService }, { token: i2$3.TilesService }, { token: i2$3.TilesViewerService }, { token: i0.Renderer2 }, { token: i1$1.ViewportScroller }, { token: i0.ChangeDetectorRef }, { token: i4$3.Router }, { token: i4$3.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
1142
|
+
ServiceDeskHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ServiceDeskHeaderComponent, selector: "bdc-service-desk-header", providers: [TilesViewerService], viewQueries: [{ propertyName: "headerSpaceHolder", first: true, predicate: ["headerSpaceHolder"], descendants: true, static: true }, { propertyName: "headerGrid", first: true, predicate: ["headerGrid"], descendants: true, static: true }, { propertyName: "aboveSearch", first: true, predicate: ["aboveSearch"], descendants: true, static: true }, { propertyName: "searchHolder", first: true, predicate: ["searchHolder"], descendants: true, static: true }, { propertyName: "navHolder", first: true, predicate: ["navHolder"], descendants: true, static: true }, { propertyName: "aboveContent", first: true, predicate: ["aboveContent"], descendants: true, static: true }, { propertyName: "bgOuterHolder", first: true, predicate: ["bgOuterHolder"], descendants: true, static: true }, { propertyName: "contentAndNav", first: true, predicate: ["contentAndNav"], descendants: true, static: true }, { propertyName: "tilesViewerGroupElList", predicate: TilesViewerGroupComponent, descendants: true, read: ElementRef }, { propertyName: "tabPanelComponents", predicate: TabPanelComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div id=\"headerGrid\" style=\"grid-template-rows: minmax(78px, 15%) 46px 32px 1fr auto 12%; height: 248px\" #headerGrid>\n <div class=\"companyLogoHolder_aboveSearch\" #aboveSearch></div>\n <div id=\"searchHolder\" style=\"grid-row: 2\" #searchHolder>\n <fdp-search-field\n contentDensity=\"cozy\"\n fd-toolbar-item\n [inputText]=\"searchTerm\"\n [placeholder]=\"'Search' | bbbTranslate\"\n [suggestions]=\"[]\"\n (searchSubmit)=\"onSearchSubmit($event)\"\n ></fdp-search-field>\n </div>\n</div>\n<div id=\"headerSpaceHolder\" #headerSpaceHolder>\n <div id=\"bgOuterHolder\" #bgOuterHolder>\n <div id=\"bgInnerHolder\" style=\"height: 100vh\">\n <div class=\"backgroundImage\" id=\"backgroundImage\">\n <img class=\"picture\" src=\"/assets/back.jpg\" loading=\"lazy\" />\n <span id=\"backgroundImageOverlay\" class=\"overlay\"></span>\n </div>\n </div>\n </div>\n</div>\n<div id=\"contentHolderAndNav\" first=\"true\" #contentAndNav>\n <div class=\"aboveContent\" #aboveContent></div>\n <div id=\"contentHolder\">\n <div class=\"nav\" #navHolder>\n <div class=\"nav-container\">\n <ng-container\n *ngTemplateOutlet=\"renderTabs; context: { $implicit: (appTileGroups$ | async)!! }\"\n ></ng-container>\n </div>\n </div>\n <div class=\"nav_surrogate\" style=\"height: 10px\"></div>\n <div class=\"content-feed\">\n <ng-container\n *ngTemplateOutlet=\"renderGroups; context: { $implicit: (appTileGroups$ | async)!! }\"\n ></ng-container>\n </div>\n </div>\n</div>\n<ng-template #renderTabs let-appTileGroups>\n <fd-tab-list\n [size]=\"tabSize\"\n [collapseOverflow]=\"tabSize === 's' || appTileGroups.length > 5\"\n [expandOverflowText]=\"'More' | bbbTranslate\"\n (selectedTabChange)=\"onSelectedTabChange3($event)\"\n >\n <fd-tab\n *ngFor=\"let appTileGroup of appTileGroups; let i = index\"\n [id]=\"'' + i\"\n [title]=\"appTileGroup.navigatorTitle\"\n >\n </fd-tab>\n </fd-tab-list>\n</ng-template>\n<ng-template #renderGroups let-appTileGroups>\n <bt-tiles-viewer-group\n *ngFor=\"let appTileGroup of appTileGroups; let i = index\"\n [attr.index]=\"i\"\n [appTileGroup]=\"appTileGroup\"\n [editHome]=\"false\"\n [stackContent]=\"true\"\n [isAppTileSubGroup]=\"false\"\n ></bt-tiles-viewer-group>\n</ng-template>\n", styles: ["html{scroll-behavior:smooth}body{overflow-y:auto!important;overflow-x:hidden!important}bt-shellbar{position:fixed;top:10px;width:100%;z-index:6}bt-shellbar .fd-shellbar{background:transparent;box-shadow:none}bt-shellbar .fd-shellbar__product{display:none}fdp-search-field .fdp-search-field__input-group{border-radius:3px}bdc-service-desk-header{display:block}bdc-service-desk-header #headerGrid{display:grid;justify-items:center;position:absolute;top:0;width:100%}bdc-service-desk-header #headerSpaceHolder{transition:height .3s ease-out 0s;width:100%}bdc-service-desk-header #searchHolder{z-index:302}bdc-service-desk-header #bgOuterHolder{height:100%;overflow:hidden;position:fixed;width:100%;top:0;right:0}bdc-service-desk-header #bgOuterHolder.sticky{position:fixed;top:0;z-index:5;background:rgb(247,247,247)}bdc-service-desk-header #bgInnerHolder{height:100%;opacity:1;overflow:hidden;top:0;transform:scale(1);width:100%}bdc-service-desk-header .backgroundImage{height:100%;width:100%}bdc-service-desk-header .overlay{background-attachment:fixed;background-image:radial-gradient(rgba(0,0,0,0) 0%,rgba(0,0,0,.5) 100%),radial-gradient(rgba(0,0,0,0) 33%,rgba(0,0,0,.3) 166%);background-position-y:0%;background-repeat:no-repeat;background-size:cover;height:100%;opacity:1;position:absolute;top:0;transition:opacity .3s linear 0s;width:100%}bdc-service-desk-header .picture{background-position:center center;background-repeat:no-repeat;background-size:cover;height:100%;margin:-1px 0 0 -1px;object-fit:cover;padding:0;position:absolute;width:100%}bdc-service-desk-header #searchHolder.sticky{position:fixed;top:15px;will-change:transform}bdc-service-desk-header #contentHolderAndNav{align-items:center;background:rgba(0,0,0,.318);display:flex;flex-direction:column;min-height:100vh;position:relative;transition:background-color .3s ease-out 0s}bdc-service-desk-header #contentHolderAndNav fd-tab-list{background-color:transparent!important;transition:background-color .3s ease-out 0s}bdc-service-desk-header #contentHolderAndNav fd-tab-list fd-tab,bdc-service-desk-header #contentHolderAndNav fd-tab-list .fd-tabs{background-color:transparent!important;box-shadow:none!important;transition:background-color .3s ease-out 0s}bdc-service-desk-header #contentHolderAndNav[first=true] span.fd-tabs__tag{color:#fff!important}bdc-service-desk-header #contentHolderAndNav[first=true] .fd-tabs__link.is-selected>span.fd-tabs__tag:after{background-color:#fff!important}bdc-service-desk-header #contentHolderAndNav[first=true] .fd-layout-panel__title{color:#fff!important}bdc-service-desk-header #contentHolderAndNav.navAndContent_tb{background:rgb(247,247,247)}bdc-service-desk-header #contentHolder{align-items:center;display:flex;flex-direction:column}bdc-service-desk-header .nav-container{align-items:center;display:flex;gap:5px}bdc-service-desk-header .nav-container fd-tab-list{width:100%}bdc-service-desk-header .nav_surrogate{height:1px}bdc-service-desk-header .nav{display:flex;height:50px;justify-content:center;z-index:500;width:100%}bdc-service-desk-header .nav ul{height:auto;overflow:hidden;list-style:none;padding-inline:0px 15px;margin:0;display:inline-flex;align-items:center}bdc-service-desk-header .nav ul li{display:inline;list-style:none;padding:0 16px;color:#fff}bdc-service-desk-header .nav.sticky{background:rgb(247,247,247);position:fixed;will-change:transform}bt-tiles-viewer-group:first-child fd-layout-panel-header{display:none!important}bt-tiles-viewer-group:first-child .fd-panel__content{border-bottom:none}@media (max-width: 480px){.nav-container,.content-feed{width:100%}.content-feed{padding:0 1.5rem}#searchHolder.sticky{display:none}#searchHolder .fdp-search-field{width:250px}}@media (min-width: 481px) and (max-width: 935px){#searchHolder .fdp-search-field{width:360px}}@media (min-width: 936px) and (max-width: 1250px){#searchHolder .fdp-search-field{width:480px}}@media (min-width: 1251px){#searchHolder .fdp-search-field{width:690px}}@media (max-width: 1180){div#searchHolder.sticky .fdp-search-field{width:280px!important}}@media (min-width: 480px) and (max-width: 935px){.nav-container,.content-feed{width:600px}.content-feed{padding:0 2rem}}@media (min-width: 1224px) and (max-width: 1551px){.content-feed{padding:0 2rem}}@media (min-width: 1244px){.nav-container,.content-feed{width:1224px}#searchHolder.sticky .fdp-search-field{width:690px}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$3.TilesViewerGroupComponent, selector: "bt-tiles-viewer-group", inputs: ["appTileGroup", "stackContent", "editHome", "isAppTileSubGroup"], outputs: ["tilesDropped", "hideAppTileClick", "renameAppTileClick", "toggleGroup", "resetGroup", "deleteGroup"] }, { kind: "component", type: i2$1.TabListComponent, selector: "fd-tab-list", inputs: ["size", "mode", "collapseOverflow", "maxVisibleTabs", "stackContent", "maxContentHeight", "collapsibleTabs", "expandOverflowText", "defaultTab", "selectDefaultOnTabsChange"], outputs: ["selectedTabChange", "visibleItemsCount", "hiddenItemsCount"] }, { kind: "component", type: i2$1.TabPanelComponent, selector: "fd-tab", inputs: ["id", "ariaLabel", "ariaLabelledBy", "title", "count", "glyph", "header", "disabled", "tabState"], outputs: ["opened", "closed"] }, { kind: "directive", type: i1.ToolbarItemDirective, selector: "[fd-toolbar-item]" }, { kind: "directive", type: i2.PlatformContentDensityDeprecationDirective, selector: " fdp-action-bar[contentDensity], fdp-button[contentDensity], fdp-object-list-item[contentDensity], fdp-standard-list-item[contentDensity], fdp-menu[contentDensity], fdp-menu-button[contentDensity], fdp-panel[contentDensity], fdp-search-field[contentDensity], fdp-split-menu-button[contentDensity], fdp-file-uploader[contentDensity], fdp-upload-collection[contentDensity], fdp-table[contentDensity], fdp-multi-input[contentDensity], fdp-list[contentDensity], fdp-slider[contentDensity], fdp-time-picker[contentDensity], fdp-textarea[contentDensity], fdp-switch[contentDensity], fdp-number-step-input[contentDensity], fdp-select[contentDensity], fdp-date-picker[contentDensity], fdp-checkbox[contentDensity], fdp-checkbox-group[contentDensity], fdp-combobox[contentDensity], fdp-datetime-picker[contentDensity], fdp-input[contentDensity], fdp-radio-group[contentDensity], fdp-radio-button[contentDensity], fdp-multi-combobox[contentDensity], fdp-input-group-addon-body[contentDensity], fdp-input-group[contentDensity], fdp-value-help-dialog[contentDensity], fdp-filter-single-select[contentDensity], fdp-filter-multi-select[contentDensity], fdp-filter-custom[contentDensity] " }, { kind: "component", type: i3.SearchFieldComponent, selector: "fdp-search-field", inputs: ["placeholder", "mobile", "mobileConfig", "disableRefresh", "suggestions", "dataSource", "inputText", "categories", "currentCategory", "categoryLabel", "hideCategoryLabel", "isLoading", "ariaLabel", "ariaLabelledby", "searchSuggestionMessage", "searchSuggestionNavigateMessage"], outputs: ["inputChange", "searchSubmit", "cancelSearch", "isOpenChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskHeaderComponent, decorators: [{
|
|
1144
|
+
type: Component,
|
|
1145
|
+
args: [{ selector: 'bdc-service-desk-header', providers: [TilesViewerService], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div id=\"headerGrid\" style=\"grid-template-rows: minmax(78px, 15%) 46px 32px 1fr auto 12%; height: 248px\" #headerGrid>\n <div class=\"companyLogoHolder_aboveSearch\" #aboveSearch></div>\n <div id=\"searchHolder\" style=\"grid-row: 2\" #searchHolder>\n <fdp-search-field\n contentDensity=\"cozy\"\n fd-toolbar-item\n [inputText]=\"searchTerm\"\n [placeholder]=\"'Search' | bbbTranslate\"\n [suggestions]=\"[]\"\n (searchSubmit)=\"onSearchSubmit($event)\"\n ></fdp-search-field>\n </div>\n</div>\n<div id=\"headerSpaceHolder\" #headerSpaceHolder>\n <div id=\"bgOuterHolder\" #bgOuterHolder>\n <div id=\"bgInnerHolder\" style=\"height: 100vh\">\n <div class=\"backgroundImage\" id=\"backgroundImage\">\n <img class=\"picture\" src=\"/assets/back.jpg\" loading=\"lazy\" />\n <span id=\"backgroundImageOverlay\" class=\"overlay\"></span>\n </div>\n </div>\n </div>\n</div>\n<div id=\"contentHolderAndNav\" first=\"true\" #contentAndNav>\n <div class=\"aboveContent\" #aboveContent></div>\n <div id=\"contentHolder\">\n <div class=\"nav\" #navHolder>\n <div class=\"nav-container\">\n <ng-container\n *ngTemplateOutlet=\"renderTabs; context: { $implicit: (appTileGroups$ | async)!! }\"\n ></ng-container>\n </div>\n </div>\n <div class=\"nav_surrogate\" style=\"height: 10px\"></div>\n <div class=\"content-feed\">\n <ng-container\n *ngTemplateOutlet=\"renderGroups; context: { $implicit: (appTileGroups$ | async)!! }\"\n ></ng-container>\n </div>\n </div>\n</div>\n<ng-template #renderTabs let-appTileGroups>\n <fd-tab-list\n [size]=\"tabSize\"\n [collapseOverflow]=\"tabSize === 's' || appTileGroups.length > 5\"\n [expandOverflowText]=\"'More' | bbbTranslate\"\n (selectedTabChange)=\"onSelectedTabChange3($event)\"\n >\n <fd-tab\n *ngFor=\"let appTileGroup of appTileGroups; let i = index\"\n [id]=\"'' + i\"\n [title]=\"appTileGroup.navigatorTitle\"\n >\n </fd-tab>\n </fd-tab-list>\n</ng-template>\n<ng-template #renderGroups let-appTileGroups>\n <bt-tiles-viewer-group\n *ngFor=\"let appTileGroup of appTileGroups; let i = index\"\n [attr.index]=\"i\"\n [appTileGroup]=\"appTileGroup\"\n [editHome]=\"false\"\n [stackContent]=\"true\"\n [isAppTileSubGroup]=\"false\"\n ></bt-tiles-viewer-group>\n</ng-template>\n", styles: ["html{scroll-behavior:smooth}body{overflow-y:auto!important;overflow-x:hidden!important}bt-shellbar{position:fixed;top:10px;width:100%;z-index:6}bt-shellbar .fd-shellbar{background:transparent;box-shadow:none}bt-shellbar .fd-shellbar__product{display:none}fdp-search-field .fdp-search-field__input-group{border-radius:3px}bdc-service-desk-header{display:block}bdc-service-desk-header #headerGrid{display:grid;justify-items:center;position:absolute;top:0;width:100%}bdc-service-desk-header #headerSpaceHolder{transition:height .3s ease-out 0s;width:100%}bdc-service-desk-header #searchHolder{z-index:302}bdc-service-desk-header #bgOuterHolder{height:100%;overflow:hidden;position:fixed;width:100%;top:0;right:0}bdc-service-desk-header #bgOuterHolder.sticky{position:fixed;top:0;z-index:5;background:rgb(247,247,247)}bdc-service-desk-header #bgInnerHolder{height:100%;opacity:1;overflow:hidden;top:0;transform:scale(1);width:100%}bdc-service-desk-header .backgroundImage{height:100%;width:100%}bdc-service-desk-header .overlay{background-attachment:fixed;background-image:radial-gradient(rgba(0,0,0,0) 0%,rgba(0,0,0,.5) 100%),radial-gradient(rgba(0,0,0,0) 33%,rgba(0,0,0,.3) 166%);background-position-y:0%;background-repeat:no-repeat;background-size:cover;height:100%;opacity:1;position:absolute;top:0;transition:opacity .3s linear 0s;width:100%}bdc-service-desk-header .picture{background-position:center center;background-repeat:no-repeat;background-size:cover;height:100%;margin:-1px 0 0 -1px;object-fit:cover;padding:0;position:absolute;width:100%}bdc-service-desk-header #searchHolder.sticky{position:fixed;top:15px;will-change:transform}bdc-service-desk-header #contentHolderAndNav{align-items:center;background:rgba(0,0,0,.318);display:flex;flex-direction:column;min-height:100vh;position:relative;transition:background-color .3s ease-out 0s}bdc-service-desk-header #contentHolderAndNav fd-tab-list{background-color:transparent!important;transition:background-color .3s ease-out 0s}bdc-service-desk-header #contentHolderAndNav fd-tab-list fd-tab,bdc-service-desk-header #contentHolderAndNav fd-tab-list .fd-tabs{background-color:transparent!important;box-shadow:none!important;transition:background-color .3s ease-out 0s}bdc-service-desk-header #contentHolderAndNav[first=true] span.fd-tabs__tag{color:#fff!important}bdc-service-desk-header #contentHolderAndNav[first=true] .fd-tabs__link.is-selected>span.fd-tabs__tag:after{background-color:#fff!important}bdc-service-desk-header #contentHolderAndNav[first=true] .fd-layout-panel__title{color:#fff!important}bdc-service-desk-header #contentHolderAndNav.navAndContent_tb{background:rgb(247,247,247)}bdc-service-desk-header #contentHolder{align-items:center;display:flex;flex-direction:column}bdc-service-desk-header .nav-container{align-items:center;display:flex;gap:5px}bdc-service-desk-header .nav-container fd-tab-list{width:100%}bdc-service-desk-header .nav_surrogate{height:1px}bdc-service-desk-header .nav{display:flex;height:50px;justify-content:center;z-index:500;width:100%}bdc-service-desk-header .nav ul{height:auto;overflow:hidden;list-style:none;padding-inline:0px 15px;margin:0;display:inline-flex;align-items:center}bdc-service-desk-header .nav ul li{display:inline;list-style:none;padding:0 16px;color:#fff}bdc-service-desk-header .nav.sticky{background:rgb(247,247,247);position:fixed;will-change:transform}bt-tiles-viewer-group:first-child fd-layout-panel-header{display:none!important}bt-tiles-viewer-group:first-child .fd-panel__content{border-bottom:none}@media (max-width: 480px){.nav-container,.content-feed{width:100%}.content-feed{padding:0 1.5rem}#searchHolder.sticky{display:none}#searchHolder .fdp-search-field{width:250px}}@media (min-width: 481px) and (max-width: 935px){#searchHolder .fdp-search-field{width:360px}}@media (min-width: 936px) and (max-width: 1250px){#searchHolder .fdp-search-field{width:480px}}@media (min-width: 1251px){#searchHolder .fdp-search-field{width:690px}}@media (max-width: 1180){div#searchHolder.sticky .fdp-search-field{width:280px!important}}@media (min-width: 480px) and (max-width: 935px){.nav-container,.content-feed{width:600px}.content-feed{padding:0 2rem}}@media (min-width: 1224px) and (max-width: 1551px){.content-feed{padding:0 2rem}}@media (min-width: 1244px){.nav-container,.content-feed{width:1224px}#searchHolder.sticky .fdp-search-field{width:690px}}\n"] }]
|
|
1146
|
+
}], ctorParameters: function () { return [{ type: i1$2.PortalService }, { type: i2$3.TilesService }, { type: i2$3.TilesViewerService }, { type: i0.Renderer2 }, { type: i1$1.ViewportScroller }, { type: i0.ChangeDetectorRef }, { type: i4$3.Router }, { type: i4$3.ActivatedRoute }]; }, propDecorators: { headerSpaceHolder: [{
|
|
1147
|
+
type: ViewChild,
|
|
1148
|
+
args: ['headerSpaceHolder', { static: true }]
|
|
1149
|
+
}], headerGrid: [{
|
|
1150
|
+
type: ViewChild,
|
|
1151
|
+
args: ['headerGrid', { static: true }]
|
|
1152
|
+
}], aboveSearch: [{
|
|
1153
|
+
type: ViewChild,
|
|
1154
|
+
args: ['aboveSearch', { static: true }]
|
|
1155
|
+
}], searchHolder: [{
|
|
1156
|
+
type: ViewChild,
|
|
1157
|
+
args: ['searchHolder', { static: true }]
|
|
1158
|
+
}], navHolder: [{
|
|
1159
|
+
type: ViewChild,
|
|
1160
|
+
args: ['navHolder', { static: true }]
|
|
1161
|
+
}], aboveContent: [{
|
|
1162
|
+
type: ViewChild,
|
|
1163
|
+
args: ['aboveContent', { static: true }]
|
|
1164
|
+
}], bgOuterHolder: [{
|
|
1165
|
+
type: ViewChild,
|
|
1166
|
+
args: ['bgOuterHolder', { static: true }]
|
|
1167
|
+
}], contentAndNav: [{
|
|
1168
|
+
type: ViewChild,
|
|
1169
|
+
args: ['contentAndNav', { static: true }]
|
|
1170
|
+
}], tilesViewerGroupElList: [{
|
|
1171
|
+
type: ViewChildren,
|
|
1172
|
+
args: [TilesViewerGroupComponent, { read: ElementRef }]
|
|
1173
|
+
}], tabPanelComponents: [{
|
|
1174
|
+
type: ViewChildren,
|
|
1175
|
+
args: [TabPanelComponent]
|
|
1176
|
+
}] } });
|
|
1177
|
+
|
|
1178
|
+
class CardContentImageAndTitleComponent extends BaseItemContentPropsComponent {
|
|
1179
|
+
ngOnInit() {
|
|
1180
|
+
super.ngOnInit();
|
|
1181
|
+
const parameters = this.parameters;
|
|
1182
|
+
if (parameters != null) {
|
|
1183
|
+
this.iconColor = parameters.FontIconColor;
|
|
1184
|
+
this.backgroundColor = parameters.FontIconBackgroundColor;
|
|
1185
|
+
this.backgroundHoverColor = parameters.FontIconHoverBackgroundColor;
|
|
1186
|
+
this.iconHoverColor = parameters.FontIconHoverColor;
|
|
1187
|
+
this.iconPicture = this._rval.transform(parameters.IconPicture, this.mo, this.allColumns);
|
|
1188
|
+
this.title = this._rval.transform(parameters.Title, this.mo, this.allColumns);
|
|
1189
|
+
this.icon = this._rval.transform(parameters.FontIconName, this.mo, this.allColumns);
|
|
1190
|
+
this.prepareNumberSign();
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
prepareNumberSign() {
|
|
1194
|
+
if (this.iconColor.indexOf('#') < 0) {
|
|
1195
|
+
this.iconColor = '#' + this.iconColor;
|
|
1196
|
+
}
|
|
1197
|
+
if (this.backgroundColor.indexOf('#') < 0) {
|
|
1198
|
+
this.backgroundColor = '#' + this.backgroundColor;
|
|
1199
|
+
}
|
|
1200
|
+
if (this.backgroundHoverColor.indexOf('#') < 0) {
|
|
1201
|
+
this.backgroundHoverColor = '#' + this.backgroundHoverColor;
|
|
1202
|
+
}
|
|
1203
|
+
if (this.iconHoverColor.indexOf('#') < 0) {
|
|
1204
|
+
this.iconHoverColor = '#' + this.iconHoverColor;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
CardContentImageAndTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentImageAndTitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1209
|
+
CardContentImageAndTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: CardContentImageAndTitleComponent, selector: "bdc-card-content-image-and-title", viewQueries: [{ propertyName: "iconRef", first: true, predicate: ["iconRef"], descendants: true, read: ElementRef }, { propertyName: "elemRef", first: true, predicate: ["elemRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div class=\"card-content\" #elemRef>\n <div class=\"item-data\">\n <img\n *ngIf=\"iconPicture; else iconTemplate\"\n [imgLazy]=\"iconPicture.FileId | picFieldSrc: 'ID':null:'':100:70\"\n height=\"70\"\n width=\"100\"\n [alt]=\"title\"\n />\n <ng-template #iconTemplate>\n <fd-icon #iconRef *ngIf=\"icon\" [glyph]=\"icon\"> </fd-icon>\n </ng-template>\n </div>\n <h4 fd-title class=\"item-data fd-title--wrap\">\n {{ title }}\n </h4>\n</div>\n", styles: [":host{display:flex;justify-content:center;align-items:stretch;height:100%;width:100%;min-height:180px}:host:hover{cursor:pointer}.card-content{display:flex;align-items:center;flex-direction:column;align-self:stretch;margin-top:auto;margin-bottom:auto;width:100%}.item-data{text-align:center}fd-icon{font-size:2.5rem}h4{height:60px;width:80%;text-align:center}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.ImageLazyDirective, selector: "[imgLazy]", inputs: ["auto", "threshold", "imgLazy"], outputs: ["imageLoaded"] }, { kind: "component", type: i3$5.IconComponent, selector: "fd-icon", inputs: ["glyph", "font", "class", "ariaLabel"] }, { kind: "component", type: i6$1.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "pipe", type: i1$2.PictureFieldSourcePipe, name: "picFieldSrc" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentImageAndTitleComponent, decorators: [{
|
|
1211
|
+
type: Component,
|
|
1212
|
+
args: [{ selector: 'bdc-card-content-image-and-title', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"card-content\" #elemRef>\n <div class=\"item-data\">\n <img\n *ngIf=\"iconPicture; else iconTemplate\"\n [imgLazy]=\"iconPicture.FileId | picFieldSrc: 'ID':null:'':100:70\"\n height=\"70\"\n width=\"100\"\n [alt]=\"title\"\n />\n <ng-template #iconTemplate>\n <fd-icon #iconRef *ngIf=\"icon\" [glyph]=\"icon\"> </fd-icon>\n </ng-template>\n </div>\n <h4 fd-title class=\"item-data fd-title--wrap\">\n {{ title }}\n </h4>\n</div>\n", styles: [":host{display:flex;justify-content:center;align-items:stretch;height:100%;width:100%;min-height:180px}:host:hover{cursor:pointer}.card-content{display:flex;align-items:center;flex-direction:column;align-self:stretch;margin-top:auto;margin-bottom:auto;width:100%}.item-data{text-align:center}fd-icon{font-size:2.5rem}h4{height:60px;width:80%;text-align:center}\n"] }]
|
|
1213
|
+
}], propDecorators: { iconRef: [{
|
|
1214
|
+
type: ViewChild,
|
|
1215
|
+
args: ['iconRef', { read: ElementRef }]
|
|
1216
|
+
}], elemRef: [{
|
|
1217
|
+
type: ViewChild,
|
|
1218
|
+
args: ['elemRef', { read: ElementRef }]
|
|
1219
|
+
}] } });
|
|
1220
|
+
|
|
1221
|
+
class CardHeaderLogoTitleSubtitleComponent extends BaseItemContentPropsComponent {
|
|
1222
|
+
constructor() {
|
|
1223
|
+
super(...arguments);
|
|
1224
|
+
this.events = new EventEmitter();
|
|
1225
|
+
}
|
|
1226
|
+
ngOnInit() {
|
|
1227
|
+
var _a, _b, _c;
|
|
1228
|
+
super.ngOnInit();
|
|
1229
|
+
this.titleDbName =
|
|
1230
|
+
((_a = this._findColumnPipe.transform(this.allColumns, this.parameters.Title)) === null || _a === void 0 ? void 0 : _a.Name) || this.parameters.Title;
|
|
1231
|
+
this.subtitleDbName =
|
|
1232
|
+
((_b = this._findColumnPipe.transform(this.allColumns, this.parameters.Subtitle)) === null || _b === void 0 ? void 0 : _b.Name) || this.parameters.Subtitle;
|
|
1233
|
+
const parameters = this.parameters;
|
|
1234
|
+
if (parameters != null) {
|
|
1235
|
+
this.title = this._rval.transform(parameters.Title, this.mo, this.allColumns, true);
|
|
1236
|
+
this.subtitle = this._rval.transform(parameters.Subtitle, this.mo, this.allColumns, true);
|
|
1237
|
+
this.fontIcon = (_c = parameters.FontIcon) !== null && _c !== void 0 ? _c : 'person-placeholder';
|
|
1238
|
+
this.imageIcon = this._rval.transform(parameters.FontIcon, this.mo, this.allColumns);
|
|
1239
|
+
this.isIconImage = typeof this.imageIcon === 'object';
|
|
1240
|
+
this.hasIcon = parameters.HasIcon;
|
|
1241
|
+
this.avatarCircle = true;
|
|
1242
|
+
if (typeof parameters.AvatarCircle !== 'undefined') {
|
|
1243
|
+
this.avatarCircle = parameters.AvatarCircle;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
CardHeaderLogoTitleSubtitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderLogoTitleSubtitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1249
|
+
CardHeaderLogoTitleSubtitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: CardHeaderLogoTitleSubtitleComponent, selector: "bdc-card-header-logo-title-subtitle", outputs: { events: "events" }, usesInheritance: true, ngImport: i0, template: "<fd-card-header [class.hide-border]=\"parameters.HideBorder\">\r\n <fd-avatar\r\n *ngIf=\"hasIcon\"\r\n [circle]=\"avatarCircle\"\r\n size=\"s\"\r\n ariaLabel=\"avatar image\"\r\n title=\"avatar image\"\r\n alterIcon=\"content|alt|backup|default-icon\"\r\n [glyph]=\"fontIcon\"\r\n [image]=\"isIconImage ? (imageIcon?.FileId | picFieldSrc: 'GetPictureFromFileInfo':null) : ''\"\r\n ></fd-avatar>\r\n <div fd-card-title [style.justify-content]=\"'end'\">\r\n <div style=\"display: flex; justify-content: start; flex-grow: 1\">\r\n <fd-checkbox\r\n *ngIf=\"isCheckList\"\r\n [name]=\"mo.$Caption\"\r\n [ngModel]=\"isChecked\"\r\n (ngModelChange)=\"events.emit({ title: 'rowCheck' })\"\r\n ></fd-checkbox>\r\n <div\r\n *ngIf=\"setting.ContextMenuInFooter && contextMenuItems && contextMenuItems.length > 0\"\r\n ulvContextMenu\r\n [allColumns]=\"allColumns\"\r\n [menuItems]=\"contextMenuItems\"\r\n [conditionalFormats]=\"conditionalFormats\"\r\n [disableOverflowContextMenu]=\"disableOverflowContextMenu\"\r\n [mo]=\"mo\"\r\n (commandClick)=\"events.emit({ title: 'ulvCommand' })\"\r\n ></div>\r\n <h2\r\n #hEl\r\n class=\"fd-card__title\"\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"titleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ title }}\r\n </h2>\r\n </div>\r\n <ng-container *ngIf=\"canView\">\r\n <button\r\n fd-button\r\n (click)=\"events.emit({ title: 'rowClick' })\"\r\n [glyph]=\"navigationArrow\"\r\n fdType=\"transparent\"\r\n ></button>\r\n </ng-container>\r\n </div>\r\n\r\n <h3\r\n fd-card-subtitle\r\n #hEl\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"subtitleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ subtitle }}\r\n </h3>\r\n</fd-card-header>\r\n<div></div>\r\n", styles: ["fd-card-header{cursor:default}fd-card-header .fd-card__title{display:flex;justify-content:space-between;align-items:center;width:100%}fd-card-header .fd-card__title h2{font-size:.9rem}fd-card-header .fd-card__title h3,fd-card-header .fd-card__title h2{margin:0}fd-card-header button{cursor:pointer;z-index:4}fd-card-header.hide-border{border-bottom:none!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i3$3.UlvContextMenuComponent, selector: "bsu-ulv-context-menu,[ulvContextMenu]", inputs: ["onlyOverflow", "deviceName", "menuItems", "allColumns", "index", "mo", "conditionalFormats", "disableOverflowContextMenu", "footerMode"], outputs: ["commandClick"] }, { kind: "directive", type: i3$3.ApplyConditionalFormatsDirective, selector: "[applyConditionalFormats]", inputs: ["applyConditionalFormats", "mo", "hostEl", "dbName"] }, { kind: "component", type: i4$4.AvatarComponent, selector: "fd-avatar", inputs: ["class", "id", "ariaLabel", "ariaLabelledby", "label", "size", "glyph", "zoomGlyph", "circle", "transparent", "contain", "placeholder", "tile", "border", "colorAccent", "random", "clickable", "backgroundImage", "image", "alterIcon", "backupImage"], outputs: ["avatarClicked", "zoomGlyphClicked"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i5$3.CardHeaderComponent, selector: "fd-card-header", inputs: ["interactive", "tabindex"] }, { kind: "directive", type: i5$3.CardTitleDirective, selector: "[fd-card-title]" }, { kind: "directive", type: i5$3.CardSubtitleDirective, selector: "[fd-card-subtitle]" }, { kind: "component", type: i7$1.CheckboxComponent, selector: "fd-checkbox", inputs: ["ariaLabel", "value", "ariaLabelledBy", "ariaDescribedBy", "title", "inputId", "state", "name", "label", "disabled", "tristate", "tristateSelectable", "labelClass", "required", "values"], outputs: ["focusChange"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1$2.PictureFieldSourcePipe, name: "picFieldSrc" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderLogoTitleSubtitleComponent, decorators: [{
|
|
1251
|
+
type: Component,
|
|
1252
|
+
args: [{ selector: 'bdc-card-header-logo-title-subtitle', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-card-header [class.hide-border]=\"parameters.HideBorder\">\r\n <fd-avatar\r\n *ngIf=\"hasIcon\"\r\n [circle]=\"avatarCircle\"\r\n size=\"s\"\r\n ariaLabel=\"avatar image\"\r\n title=\"avatar image\"\r\n alterIcon=\"content|alt|backup|default-icon\"\r\n [glyph]=\"fontIcon\"\r\n [image]=\"isIconImage ? (imageIcon?.FileId | picFieldSrc: 'GetPictureFromFileInfo':null) : ''\"\r\n ></fd-avatar>\r\n <div fd-card-title [style.justify-content]=\"'end'\">\r\n <div style=\"display: flex; justify-content: start; flex-grow: 1\">\r\n <fd-checkbox\r\n *ngIf=\"isCheckList\"\r\n [name]=\"mo.$Caption\"\r\n [ngModel]=\"isChecked\"\r\n (ngModelChange)=\"events.emit({ title: 'rowCheck' })\"\r\n ></fd-checkbox>\r\n <div\r\n *ngIf=\"setting.ContextMenuInFooter && contextMenuItems && contextMenuItems.length > 0\"\r\n ulvContextMenu\r\n [allColumns]=\"allColumns\"\r\n [menuItems]=\"contextMenuItems\"\r\n [conditionalFormats]=\"conditionalFormats\"\r\n [disableOverflowContextMenu]=\"disableOverflowContextMenu\"\r\n [mo]=\"mo\"\r\n (commandClick)=\"events.emit({ title: 'ulvCommand' })\"\r\n ></div>\r\n <h2\r\n #hEl\r\n class=\"fd-card__title\"\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"titleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ title }}\r\n </h2>\r\n </div>\r\n <ng-container *ngIf=\"canView\">\r\n <button\r\n fd-button\r\n (click)=\"events.emit({ title: 'rowClick' })\"\r\n [glyph]=\"navigationArrow\"\r\n fdType=\"transparent\"\r\n ></button>\r\n </ng-container>\r\n </div>\r\n\r\n <h3\r\n fd-card-subtitle\r\n #hEl\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"subtitleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ subtitle }}\r\n </h3>\r\n</fd-card-header>\r\n<div></div>\r\n", styles: ["fd-card-header{cursor:default}fd-card-header .fd-card__title{display:flex;justify-content:space-between;align-items:center;width:100%}fd-card-header .fd-card__title h2{font-size:.9rem}fd-card-header .fd-card__title h3,fd-card-header .fd-card__title h2{margin:0}fd-card-header button{cursor:pointer;z-index:4}fd-card-header.hide-border{border-bottom:none!important}\n"] }]
|
|
1253
|
+
}], propDecorators: { events: [{
|
|
1254
|
+
type: Output
|
|
1255
|
+
}] } });
|
|
1256
|
+
|
|
1257
|
+
class FormContentQuickViewComponent extends FormPropsBaseComponent {
|
|
1258
|
+
constructor() {
|
|
1259
|
+
super(...arguments);
|
|
1260
|
+
this.groups = {};
|
|
1261
|
+
}
|
|
1262
|
+
ngOnInit() {
|
|
1263
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1264
|
+
super.ngOnInit();
|
|
1265
|
+
const groups = {};
|
|
1266
|
+
this.title = (_c = (_b = this._controlUiPipe.transform((_a = this.settings) === null || _a === void 0 ? void 0 : _a.Title, this.layout94)) === null || _b === void 0 ? void 0 : _b.FieldUi) === null || _c === void 0 ? void 0 : _c.value;
|
|
1267
|
+
this.subtitle = (_f = (_e = this._controlUiPipe.transform((_d = this.settings) === null || _d === void 0 ? void 0 : _d.Subtitle, this.layout94)) === null || _e === void 0 ? void 0 : _e.FieldUi) === null || _f === void 0 ? void 0 : _f.value;
|
|
1268
|
+
this.fontIcon = (_j = (_h = this._controlUiPipe.transform((_g = this.settings) === null || _g === void 0 ? void 0 : _g.FontIcon, this.layout94)) === null || _h === void 0 ? void 0 : _h.FieldUi) === null || _j === void 0 ? void 0 : _j.value;
|
|
1269
|
+
const settingGroups = (_k = this.settings) === null || _k === void 0 ? void 0 : _k.Groups;
|
|
1270
|
+
if (settingGroups) {
|
|
1271
|
+
settingGroups.MoDataList.forEach((c) => {
|
|
1272
|
+
groups[c.Title] = c.ListFields
|
|
1273
|
+
.split(',')
|
|
1274
|
+
.map((d) => ({
|
|
1275
|
+
caption: d,
|
|
1276
|
+
fieldUi: this._controlUiPipe.transform(d, this.layout94)
|
|
1277
|
+
}))
|
|
1278
|
+
.map((d) => { var _a, _b; return (Object.assign(Object.assign({}, d), { value: (_b = (_a = d.fieldUi) === null || _a === void 0 ? void 0 : _a.FieldUi) === null || _b === void 0 ? void 0 : _b.value })); })
|
|
1279
|
+
.map((d) => (Object.assign(Object.assign({}, d), { type: this.getFieldType(d.value) })));
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1282
|
+
this.groups = groups;
|
|
1283
|
+
}
|
|
1284
|
+
getFieldType(value) {
|
|
1285
|
+
if (typeof value === 'string') {
|
|
1286
|
+
if (value.startsWith('http')) {
|
|
1287
|
+
return 0;
|
|
1288
|
+
}
|
|
1289
|
+
if (value.startsWith('0') || (value.startsWith('+') && !Number.isNaN(value.substring(1, value.length)))) {
|
|
1290
|
+
return 1;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
FormContentQuickViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormContentQuickViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1296
|
+
FormContentQuickViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: FormContentQuickViewComponent, selector: "bdc-form-content-quick-view", usesInheritance: true, ngImport: i0, template: "<fd-quick-view>\r\n <fd-quick-view-subheader>\r\n <fd-avatar [glyph]=\"fontIcon\" size=\"s\"></fd-avatar>\r\n <fd-quick-view-subheader-title>\r\n {{ title }}\r\n </fd-quick-view-subheader-title>\r\n <fd-quick-view-subheader-subtitle>\r\n {{ subtitle }}\r\n </fd-quick-view-subheader-subtitle>\r\n </fd-quick-view-subheader>\r\n\r\n <fd-quick-view-group *ngFor=\"let group of groups | keyvalue\" [attr.aria-labelledby]=\"group.key\">\r\n <fd-quick-view-group-title [id]=\"group.key\">\r\n {{ group.key }}\r\n </fd-quick-view-group-title>\r\n <fd-quick-view-group-item *ngFor=\"let item of group.value\">\r\n <fd-quick-view-group-item-label>\r\n {{ item.caption }}\r\n </fd-quick-view-group-item-label>\r\n <fd-quick-view-group-item-content>\r\n <ng-container [ngSwitch]=\"item.type\">\r\n <a\r\n *ngSwitchCase=\"1\"\r\n [href]=\"'tel:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n fd-quick-view-group-item-content-element\r\n ></a>\r\n <a\r\n style=\"direction: ltr\"\r\n *ngSwitchCase=\"0\"\r\n [href]=\"'mailto:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n fd-quick-view-group-item-content-element\r\n ></a>\r\n <div *ngSwitchDefault [innerText]=\"item.value\" fd-quick-view-group-item-content-element></div>\r\n </ng-container>\r\n </fd-quick-view-group-item-content>\r\n </fd-quick-view-group-item>\r\n </fd-quick-view-group>\r\n</fd-quick-view>\r\n", styles: [":host{display:block;background-color:var(--sapField_Background)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i4$4.AvatarComponent, selector: "fd-avatar", inputs: ["class", "id", "ariaLabel", "ariaLabelledby", "label", "size", "glyph", "zoomGlyph", "circle", "transparent", "contain", "placeholder", "tile", "border", "colorAccent", "random", "clickable", "backgroundImage", "image", "alterIcon", "backupImage"], outputs: ["avatarClicked", "zoomGlyphClicked"] }, { kind: "component", type: i4$1.LinkComponent, selector: "[fdLink], [fd-link], [fd-breadcrumb-link]", inputs: ["class", "emphasized", "disabled", "inverted", "subtle", "undecorated"] }, { kind: "component", type: i4$2.QuickViewComponent, selector: "fd-quick-view", inputs: ["id"] }, { kind: "component", type: i4$2.QuickViewSubheaderComponent, selector: "fd-quick-view-subheader" }, { kind: "component", type: i4$2.QuickViewSubheaderTitleComponent, selector: "fd-quick-view-subheader-title" }, { kind: "component", type: i4$2.QuickViewSubheaderSubtitleComponent, selector: "fd-quick-view-subheader-subtitle" }, { kind: "component", type: i4$2.QuickViewGroupComponent, selector: "fd-quick-view-group" }, { kind: "component", type: i4$2.QuickViewGroupTitleComponent, selector: "fd-quick-view-group-title", inputs: ["id"] }, { kind: "component", type: i4$2.QuickViewGroupItemComponent, selector: "fd-quick-view-group-item", inputs: ["id"] }, { kind: "component", type: i4$2.QuickViewGroupItemLabelComponent, selector: "fd-quick-view-group-item-label" }, { kind: "component", type: i4$2.QuickViewGroupItemContentComponent, selector: "fd-quick-view-group-item-content" }, { kind: "directive", type: i4$2.QuickViewGroupItemContentElementDirective, selector: "[fd-quick-view-group-item-content-element]" }, { kind: "pipe", type: i1$1.KeyValuePipe, name: "keyvalue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormContentQuickViewComponent, decorators: [{
|
|
1298
|
+
type: Component,
|
|
1299
|
+
args: [{ selector: 'bdc-form-content-quick-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-quick-view>\r\n <fd-quick-view-subheader>\r\n <fd-avatar [glyph]=\"fontIcon\" size=\"s\"></fd-avatar>\r\n <fd-quick-view-subheader-title>\r\n {{ title }}\r\n </fd-quick-view-subheader-title>\r\n <fd-quick-view-subheader-subtitle>\r\n {{ subtitle }}\r\n </fd-quick-view-subheader-subtitle>\r\n </fd-quick-view-subheader>\r\n\r\n <fd-quick-view-group *ngFor=\"let group of groups | keyvalue\" [attr.aria-labelledby]=\"group.key\">\r\n <fd-quick-view-group-title [id]=\"group.key\">\r\n {{ group.key }}\r\n </fd-quick-view-group-title>\r\n <fd-quick-view-group-item *ngFor=\"let item of group.value\">\r\n <fd-quick-view-group-item-label>\r\n {{ item.caption }}\r\n </fd-quick-view-group-item-label>\r\n <fd-quick-view-group-item-content>\r\n <ng-container [ngSwitch]=\"item.type\">\r\n <a\r\n *ngSwitchCase=\"1\"\r\n [href]=\"'tel:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n fd-quick-view-group-item-content-element\r\n ></a>\r\n <a\r\n style=\"direction: ltr\"\r\n *ngSwitchCase=\"0\"\r\n [href]=\"'mailto:' + item.value\"\r\n [innerText]=\"item.value\"\r\n fd-link\r\n fd-quick-view-group-item-content-element\r\n ></a>\r\n <div *ngSwitchDefault [innerText]=\"item.value\" fd-quick-view-group-item-content-element></div>\r\n </ng-container>\r\n </fd-quick-view-group-item-content>\r\n </fd-quick-view-group-item>\r\n </fd-quick-view-group>\r\n</fd-quick-view>\r\n", styles: [":host{display:block;background-color:var(--sapField_Background)}\n"] }]
|
|
1300
|
+
}] });
|
|
1301
|
+
|
|
1302
|
+
class ServiceDeskServcieDetailComponent extends FormPropsBaseComponent {
|
|
1303
|
+
constructor() {
|
|
1304
|
+
super(...arguments);
|
|
1305
|
+
this.moByCaption = {};
|
|
1306
|
+
this.fieldsCaption = [];
|
|
1307
|
+
this.value = '';
|
|
1308
|
+
this.israhnamayTasviri = false;
|
|
1309
|
+
}
|
|
1310
|
+
ngOnInit() {
|
|
1311
|
+
super.ngOnInit();
|
|
1312
|
+
const $FieldDict = this.fieldDict;
|
|
1313
|
+
if (!$FieldDict) {
|
|
1314
|
+
return;
|
|
1315
|
+
}
|
|
1316
|
+
this._prepare($FieldDict, this.mo);
|
|
1317
|
+
}
|
|
1318
|
+
onDownload(item) {
|
|
1319
|
+
if (item.Attachment) {
|
|
1320
|
+
BarsaApi.Common.File.DownloadFileId(item.Attachment.Files[0].Id);
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
ngAfterViewInit() {
|
|
1324
|
+
super.ngAfterViewInit();
|
|
1325
|
+
this.alignTablesTr();
|
|
1326
|
+
}
|
|
1327
|
+
onKhadamatMortabet(item) {
|
|
1328
|
+
BarsaApi.Bw.Form.Show({
|
|
1329
|
+
MoId: item.Id,
|
|
1330
|
+
TypeDefId: this.khadamatmortabetReport.TypeDefId,
|
|
1331
|
+
MoContext: { ReportId: this.khadamatmortabetReport.ReportId }
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
alignTablesTr() {
|
|
1335
|
+
setTimeout(() => {
|
|
1336
|
+
const tablesRef = this.tablesRef.toArray();
|
|
1337
|
+
const firstTableEl = tablesRef[0].nativeElement;
|
|
1338
|
+
const secondTableEl = tablesRef[1].nativeElement;
|
|
1339
|
+
const trFirstTable = firstTableEl.querySelectorAll('tr');
|
|
1340
|
+
const trSecondTable = secondTableEl.querySelectorAll('tr');
|
|
1341
|
+
trFirstTable.forEach((tr, index) => {
|
|
1342
|
+
if (index < trSecondTable.length) {
|
|
1343
|
+
const trSecond = trSecondTable[index];
|
|
1344
|
+
if (tr.offsetHeight > trSecond.offsetHeight) {
|
|
1345
|
+
trSecond.style.height = `${tr.offsetHeight}px`;
|
|
1346
|
+
}
|
|
1347
|
+
else {
|
|
1348
|
+
tr.style.height = `${trSecond.offsetHeight}px`;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
});
|
|
1352
|
+
}, 0);
|
|
1353
|
+
}
|
|
1354
|
+
_prepare($FieldDict, mo) {
|
|
1355
|
+
var _a, _b;
|
|
1356
|
+
Object.keys($FieldDict).forEach((key) => {
|
|
1357
|
+
const fieldName = $FieldDict[key];
|
|
1358
|
+
const item = { caption: key, fieldName };
|
|
1359
|
+
if (key === 'آدرس سایت' ||
|
|
1360
|
+
(typeof mo[fieldName] === 'string' &&
|
|
1361
|
+
(mo[fieldName].startsWith('https://') || mo[fieldName].startsWith('http://')))) {
|
|
1362
|
+
item.type = 'Link';
|
|
1363
|
+
}
|
|
1364
|
+
if (typeof mo[fieldName] === 'object') {
|
|
1365
|
+
if (mo[fieldName].$Type === 'Common.MetaObjectListWeb') {
|
|
1366
|
+
item.type = 'MoList';
|
|
1367
|
+
}
|
|
1368
|
+
else if (mo[fieldName].Ext) {
|
|
1369
|
+
item.type = 'Image';
|
|
1370
|
+
}
|
|
1371
|
+
else if (mo[fieldName].Files) {
|
|
1372
|
+
item.type = 'Files';
|
|
1373
|
+
}
|
|
1374
|
+
else {
|
|
1375
|
+
item.type = 'Relation';
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
this.fieldsCaption.push(item);
|
|
1379
|
+
});
|
|
1380
|
+
this.rahnamayTasviri = this._sanitizer.bypassSecurityTrustResourceUrl(mo[$FieldDict['راهنمای تصویری']]);
|
|
1381
|
+
if (this.rahnamayTasviri) {
|
|
1382
|
+
this.israhnamayTasviri = true;
|
|
1383
|
+
}
|
|
1384
|
+
const filteredControls = this.fieldsCaption.filter((c) => c.caption !== 'شرایط اخذ خدمت' &&
|
|
1385
|
+
c.caption !== 'مراحل اخذ خدمت' &&
|
|
1386
|
+
c.caption !== 'SLA و راهنمای خدمت' &&
|
|
1387
|
+
c.caption !== 'جنس مجوز' &&
|
|
1388
|
+
c.caption !== 'مجوز وابسته' &&
|
|
1389
|
+
c.caption !== 'نوع خدمت' &&
|
|
1390
|
+
c.caption !== 'لینک خدمت' &&
|
|
1391
|
+
c.caption !== 'گروه خدمت' &&
|
|
1392
|
+
c.caption !== 'خدمات مرتبط' &&
|
|
1393
|
+
c.caption !== 'تصوير فلوچارت' &&
|
|
1394
|
+
c.caption !== 'ضوابط خاص اخذ خدمت' &&
|
|
1395
|
+
c.caption !== 'راهنمای تصویری' &&
|
|
1396
|
+
c.caption !== 'مدارک مورد نیاز اخذ خدمت' &&
|
|
1397
|
+
c.caption !== 'پیشنیازهای اخذ خدمت' &&
|
|
1398
|
+
c.caption !== 'بیانیه خدمت' &&
|
|
1399
|
+
c.caption !== 'واحدهای سازمانی ارائه دهنده' &&
|
|
1400
|
+
// c.caption != 'نیاز به استعلام از دستگاههای دیگر' &&
|
|
1401
|
+
c.caption !== 'استعلام سازمان ها' &&
|
|
1402
|
+
// c.caption != 'سایت جداگانه' &&
|
|
1403
|
+
// c.caption != 'سامانه' &&
|
|
1404
|
+
// c.caption != 'نیاز به پرداخت هزینه' &&
|
|
1405
|
+
c.caption !== 'گروه ساختار' &&
|
|
1406
|
+
c.caption !== 'هزینه های خدمت' &&
|
|
1407
|
+
c.caption !== 'عناوین مرتبط' &&
|
|
1408
|
+
c.caption !== 'فایل شناسنامه خدمت' &&
|
|
1409
|
+
c.caption !== 'مبانی قانونی ارائه خدمت' &&
|
|
1410
|
+
c.caption !== 'تعریف خدمت' &&
|
|
1411
|
+
c.caption !== 'تصویر فلوچارت' &&
|
|
1412
|
+
c.caption !== 'سوالات متداول' &&
|
|
1413
|
+
// c.caption != 'نیاز به مراجعه حضوری' &&
|
|
1414
|
+
// c.caption != 'توضیح مراجعه حضوری' &&
|
|
1415
|
+
c.caption !== 'عنوان' &&
|
|
1416
|
+
c.caption !== 'کد خدمت');
|
|
1417
|
+
const controlCount = filteredControls.length;
|
|
1418
|
+
const controlCountMiddle = Math.ceil(filteredControls.length / 2);
|
|
1419
|
+
this.firstArray = filteredControls.slice(0, controlCountMiddle);
|
|
1420
|
+
this.secondArray = filteredControls.slice(controlCountMiddle, controlCount);
|
|
1421
|
+
this.khadamatmortabet = (_b = (_a = mo[$FieldDict['خدمات مرتبط']]) === null || _a === void 0 ? void 0 : _a.MoDataList) !== null && _b !== void 0 ? _b : [];
|
|
1422
|
+
this.filteredControls = filteredControls;
|
|
1423
|
+
this.khadamatmortabetReport = mo[$FieldDict['خدمات مرتبط']];
|
|
1424
|
+
this.isOdd = controlCount % 2 === 0;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
ServiceDeskServcieDetailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskServcieDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1428
|
+
ServiceDeskServcieDetailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ServiceDeskServcieDetailComponent, selector: "bdc-service-desk-servcie-detail", viewQueries: [{ propertyName: "tabContainerRef", first: true, predicate: ["tabContainerRef"], descendants: true }, { propertyName: "tablesRef", predicate: ["tablesRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<fd-dynamic-page [size]=\"isMobile ? 'small' : 'large'\">\n <fd-tab-list\n [collapseOverflow]=\"true\"\n [stackContent]=\"false\"\n maxContentHeight=\"auto\"\n [expandOverflowText]=\"'More' | bbbTranslate\"\n #tablist\n >\n <fd-tab title=\"\u0634\u0646\u0627\u0633\u0646\u0627\u0645\u0647 \u062E\u062F\u0645\u062A\" selected>\n <fd-dynamic-page-content>\n <fd-layout-grid class=\"row\" style=\"margin: 0\">\n <div [fdLayoutGridCol]=\"12\" [colMd]=\"6\" [colLg]=\"6\" [colXl]=\"6\" style=\"padding: 0\">\n <ng-container\n *ngTemplateOutlet=\"\n renderTable;\n context: {\n $implicit: firstArray,\n showKhadamatMortabet: isOdd,\n classNames: 'firstTable'\n }\n \"\n >\n </ng-container>\n </div>\n <div [fdLayoutGridCol]=\"12\" [colMd]=\"6\" [colLg]=\"6\" [colXl]=\"6\" style=\"padding: 0\">\n <ng-container\n *ngTemplateOutlet=\"\n renderTable;\n context: {\n $implicit: secondArray,\n showKhadamatMortabet: !isOdd,\n classNames: 'secondTable'\n }\n \"\n >\n </ng-container>\n </div>\n </fd-layout-grid>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"\u067E\u06CC\u0634\u0646\u06CC\u0627\u0632\u0647\u0627\u06CC \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u067E\u06CC\u0634\u0646\u06CC\u0627\u0632\u0647\u0627\u06CC \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"\u0634\u0631\u0627\u064A\u0637 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u0634\u0631\u0627\u06CC\u0637 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0645\u0631\u0627\u062D\u0644 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u0645\u0631\u0627\u062D\u0644 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0645\u062F\u0627\u0631\u0643 \u0645\u0648\u0631\u062F \u0646\u06CC\u0627\u0632 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u0645\u062F\u0627\u0631\u06A9 \u0645\u0648\u0631\u062F \u0646\u06CC\u0627\u0632 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0647\u0632\u06CC\u0646\u0647 \u0647\u0627\u06CC \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0647\u0632\u06CC\u0646\u0647 \u0647\u0627\u06CC \u062E\u062F\u0645\u062A' | controlUi: layout94 as configUi\"\n caption=\"\u0647\u0632\u06CC\u0646\u0647 \u0647\u0627\u06CC \u062E\u062F\u0645\u062A\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"\u0645\u0628\u0627\u0646\u06CC \u0642\u0627\u0646\u0648\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0645\u0628\u0627\u0646\u06CC \u0642\u0627\u0646\u0648\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062E\u062F\u0645\u062A' | controlUi: layout94 as configUi\"\n caption=\"\u0645\u0628\u0627\u0646\u06CC \u0642\u0627\u0646\u0648\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062E\u062F\u0645\u062A\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0648\u0627\u062D\u062F\u0647\u0627\u06CC \u0627\u0631\u0627\u0626\u0647 \u062F\u0647\u0646\u062F\u0647 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0648\u0627\u062D\u062F\u0647\u0627\u06CC \u0633\u0627\u0632\u0645\u0627\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062F\u0647\u0646\u062F\u0647' | controlUi: layout94 as configUi\"\n caption=\"\u0648\u0627\u062D\u062F\u0647\u0627\u06CC \u0633\u0627\u0632\u0645\u0627\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062F\u0647\u0646\u062F\u0647\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u062F\u0633\u062A\u06AF\u0627\u0647 \u0647\u0627\u06CC \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u062F\u0647\u0646\u062F\u0647\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0633\u0627\u0632\u0645\u0627\u0646 \u0647\u0627' | controlUi: layout94 as configUi\"\n caption=\"\u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0633\u0627\u0632\u0645\u0627\u0646 \u0647\u0627\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"SLA \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06CC \u062E\u062F\u0645\u062A\" *ngIf=\"'SLA \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06CC \u062E\u062F\u0645\u062A' | controlUi: layout94 as configUi\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"configUi\"\n caption=\"SLA \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06CC \u062E\u062F\u0645\u062A\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n </fd-tab-list>\n\n <fd-dynamic-page-footer> </fd-dynamic-page-footer>\n</fd-dynamic-page>\n\n<ng-template #renderTable let-array let-showKhadamatMortabet=\"showKhadamatMortabet\" let-classNames=\"classNames\">\n <table #tablesRef class=\"table-grid\" [ngClass]=\"classNames\">\n <ng-container *ngFor=\"let controlItem of array\">\n <tr>\n <th>{{ controlItem.caption }}</th>\n <td>\n <ng-container [ngSwitch]=\"controlItem.type\">\n <ng-container *ngSwitchCase=\"'Link'\">\n <a target=\"_blank\" [href]=\"mo[controlItem.fieldName]\">{{\n mo[controlItem.fieldName]\n }}</a></ng-container\n >\n <ng-container *ngSwitchCase=\"'Relation'\">\n {{ controlItem.fieldName | val: mo:true }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'MoList'\">\n <div *ngFor=\"let item of mo[controlItem.fieldName]?.MoDataList\" class=\"links\">\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'chain-link'\" style=\"color: #0854a0\"></fd-icon>\n <!-- <fd-icon class=\"fd-icon-link\" [glyph]=\"'pdf-attachment'\"></fd-icon> -->\n <a (click)=\"onDownload(item)\">{{ item.$Caption }}</a>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Image'\"> {{ mo[controlItem.fieldName].Ext }}</ng-container>\n <ng-container *ngSwitchCase=\"'Files'\"> {{ mo[controlItem.fieldName].Files }}</ng-container>\n <ng-container *ngSwitchDefault>\n {{ mo[controlItem.fieldName + '$Caption'] || mo[controlItem.fieldName] }}\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-container>\n <ng-container *ngIf=\"showKhadamatMortabet\">\n <tr>\n <th>\u062E\u062F\u0645\u0627\u062A \u0645\u0631\u062A\u0628\u0637</th>\n <td>\n <div class=\"links\" *ngFor=\"let item of khadamatmortabet\">\n <a (click)=\"onKhadamatMortabet(item)\">{{ item.$Caption }}</a>\n </div>\n </td>\n </tr>\n </ng-container>\n </table>\n</ng-template>\n", styles: ["table{background-color:var(--sapBaseColor)}.cell{font-size:14px}.bod{border-bottom:1px solid gray;border-right:1px solid gray;height:30px;line-height:30px}.bod :first{border-right:0;border-bottom:0}.anwser{line-height:30px;padding:10px;text-align:justify}.box{padding:0 40px 10px 10px;line-height:30px;display:flex;flex-direction:column;column-count:2;flex-wrap:wrap;height:180px;overflow:hidden}.faq-item-link{font-size:16px;padding-right:25px;cursor:pointer;color:gray}.faq-item-link a{color:gray;cursor:pointer}.faq-item-link a:hover{text-decoration:underline!important}.law-page-header{background:#fff;color:#0854a0;font-size:1.3rem;font-weight:500;padding:5px 15px}.wrapper{border-bottom:.0625rem solid var(--sapGroup_TitleBorderColor, #d9d9d9)}table.table-grid{font-family:arial,sans-serif;border-collapse:collapse;width:100%;direction:rtl}.table-grid td,.table-grid th{border:1px solid grey;text-align:left;padding:12px 8px;text-align:right}.table-grid th{background-color:#e2e2e2;font-size:.825rem;font-weight:500;vertical-align:middle;width:150px;font-family:IRANYekanDigits}.table-grid td{font-size:.825rem;vertical-align:middle;font-family:IRANYekanDigits}@media only screen and (max-width: 992px){.secondTable tr:first-child td,.secondTable tr:first-child th{border-top:0}}@media only screen and (min-width: 992px){.secondTable th{border-right:0}}.fd-icon{font-size:2rem;color:#0854a0;padding-left:10px}.links a{line-height:25px;cursor:pointer;display:inline;color:#32363a;vertical-align:top}.links a:hover{text-decoration:underline!important;color:#000}.fd-icon-link{font-size:1rem;padding-left:5px}.VideoGuide{max-width:1280px;margin:0 auto;width:auto;text-align:center}.h_iframe-aparat_embed_frame{position:relative}.h_iframe-aparat_embed_frame .ratio{display:block;width:100%;height:auto}.h_iframe-aparat_embed_frame iframe{position:absolute;top:0;left:0;width:100%;height:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i3$3.LayoutControlComponent, selector: "bsu-layout-control", inputs: ["inlineEdit", "caption", "focusControl", "showLabel", "maxLabelWidth", "hasHorizontalText", "contentDensity", "RefreshLabel", "SetVisible"] }, { kind: "component", type: i3$6.DynamicPageComponent, selector: "fd-dynamic-page", inputs: ["role", "ariaLabel", "background", "autoResponsive", "size", "offset", "expandContent"] }, { kind: "component", type: i3$6.DynamicPageContentComponent, selector: "fd-dynamic-page-content", inputs: ["tabLabel", "id"] }, { kind: "component", type: i3$6.DynamicPageFooterComponent, selector: "fd-dynamic-page-footer" }, { kind: "component", type: i3$5.IconComponent, selector: "fd-icon", inputs: ["glyph", "font", "class", "ariaLabel"] }, { kind: "component", type: i5$4.LayoutGridComponent, selector: "fd-layout-grid, [fdLayoutGrid]", inputs: ["class", "noGap", "noHorizontalGap", "noVerticalGap"] }, { kind: "directive", type: i5$4.LayoutGridColDirective, selector: "[fd-layout-grid-col], [fdLayoutGridCol]", inputs: ["fdLayoutGridCol", "colGrow", "colMd", "colLg", "colXl", "colOffset", "colOffsetMd", "colOffsetLg", "colOffsetXl", "class"] }, { kind: "component", type: i2$1.TabListComponent, selector: "fd-tab-list", inputs: ["size", "mode", "collapseOverflow", "maxVisibleTabs", "stackContent", "maxContentHeight", "collapsibleTabs", "expandOverflowText", "defaultTab", "selectDefaultOnTabsChange"], outputs: ["selectedTabChange", "visibleItemsCount", "hiddenItemsCount"] }, { kind: "component", type: i2$1.TabPanelComponent, selector: "fd-tab", inputs: ["id", "ariaLabel", "ariaLabelledBy", "title", "count", "glyph", "header", "disabled", "tabState"], outputs: ["opened", "closed"] }, { kind: "pipe", type: i1$2.MoValuePipe, name: "val" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }, { kind: "pipe", type: i1$2.ControlUiPipe, name: "controlUi" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskServcieDetailComponent, decorators: [{
|
|
1430
|
+
type: Component,
|
|
1431
|
+
args: [{ selector: 'bdc-service-desk-servcie-detail', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-dynamic-page [size]=\"isMobile ? 'small' : 'large'\">\n <fd-tab-list\n [collapseOverflow]=\"true\"\n [stackContent]=\"false\"\n maxContentHeight=\"auto\"\n [expandOverflowText]=\"'More' | bbbTranslate\"\n #tablist\n >\n <fd-tab title=\"\u0634\u0646\u0627\u0633\u0646\u0627\u0645\u0647 \u062E\u062F\u0645\u062A\" selected>\n <fd-dynamic-page-content>\n <fd-layout-grid class=\"row\" style=\"margin: 0\">\n <div [fdLayoutGridCol]=\"12\" [colMd]=\"6\" [colLg]=\"6\" [colXl]=\"6\" style=\"padding: 0\">\n <ng-container\n *ngTemplateOutlet=\"\n renderTable;\n context: {\n $implicit: firstArray,\n showKhadamatMortabet: isOdd,\n classNames: 'firstTable'\n }\n \"\n >\n </ng-container>\n </div>\n <div [fdLayoutGridCol]=\"12\" [colMd]=\"6\" [colLg]=\"6\" [colXl]=\"6\" style=\"padding: 0\">\n <ng-container\n *ngTemplateOutlet=\"\n renderTable;\n context: {\n $implicit: secondArray,\n showKhadamatMortabet: !isOdd,\n classNames: 'secondTable'\n }\n \"\n >\n </ng-container>\n </div>\n </fd-layout-grid>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"\u067E\u06CC\u0634\u0646\u06CC\u0627\u0632\u0647\u0627\u06CC \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u067E\u06CC\u0634\u0646\u06CC\u0627\u0632\u0647\u0627\u06CC \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"\u0634\u0631\u0627\u064A\u0637 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u0634\u0631\u0627\u06CC\u0637 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0645\u0631\u0627\u062D\u0644 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u0645\u0631\u0627\u062D\u0644 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0645\u062F\u0627\u0631\u0643 \u0645\u0648\u0631\u062F \u0646\u06CC\u0627\u0632 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <div class=\"anwser merge\" [innerHTML]=\"'\u0645\u062F\u0627\u0631\u06A9 \u0645\u0648\u0631\u062F \u0646\u06CC\u0627\u0632 \u0627\u062E\u0630 \u062E\u062F\u0645\u062A' | val: mo\"></div>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0647\u0632\u06CC\u0646\u0647 \u0647\u0627\u06CC \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0647\u0632\u06CC\u0646\u0647 \u0647\u0627\u06CC \u062E\u062F\u0645\u062A' | controlUi: layout94 as configUi\"\n caption=\"\u0647\u0632\u06CC\u0646\u0647 \u0647\u0627\u06CC \u062E\u062F\u0645\u062A\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"\u0645\u0628\u0627\u0646\u06CC \u0642\u0627\u0646\u0648\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0645\u0628\u0627\u0646\u06CC \u0642\u0627\u0646\u0648\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062E\u062F\u0645\u062A' | controlUi: layout94 as configUi\"\n caption=\"\u0645\u0628\u0627\u0646\u06CC \u0642\u0627\u0646\u0648\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062E\u062F\u0645\u062A\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u0648\u0627\u062D\u062F\u0647\u0627\u06CC \u0627\u0631\u0627\u0626\u0647 \u062F\u0647\u0646\u062F\u0647 \u062E\u062F\u0645\u062A\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0648\u0627\u062D\u062F\u0647\u0627\u06CC \u0633\u0627\u0632\u0645\u0627\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062F\u0647\u0646\u062F\u0647' | controlUi: layout94 as configUi\"\n caption=\"\u0648\u0627\u062D\u062F\u0647\u0627\u06CC \u0633\u0627\u0632\u0645\u0627\u0646\u06CC \u0627\u0631\u0627\u0626\u0647 \u062F\u0647\u0646\u062F\u0647\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n\n <fd-tab title=\"\u062F\u0633\u062A\u06AF\u0627\u0647 \u0647\u0627\u06CC \u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u062F\u0647\u0646\u062F\u0647\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"'\u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0633\u0627\u0632\u0645\u0627\u0646 \u0647\u0627' | controlUi: layout94 as configUi\"\n caption=\"\u0627\u0633\u062A\u0639\u0644\u0627\u0645 \u0633\u0627\u0632\u0645\u0627\u0646 \u0647\u0627\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n <fd-tab title=\"SLA \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06CC \u062E\u062F\u0645\u062A\" *ngIf=\"'SLA \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06CC \u062E\u062F\u0645\u062A' | controlUi: layout94 as configUi\">\n <fd-dynamic-page-content>\n <bsu-layout-control\n *ngIf=\"configUi\"\n caption=\"SLA \u0648 \u0631\u0627\u0647\u0646\u0645\u0627\u06CC \u062E\u062F\u0645\u062A\"\n [config]=\"configUi\"\n ></bsu-layout-control>\n </fd-dynamic-page-content>\n </fd-tab>\n </fd-tab-list>\n\n <fd-dynamic-page-footer> </fd-dynamic-page-footer>\n</fd-dynamic-page>\n\n<ng-template #renderTable let-array let-showKhadamatMortabet=\"showKhadamatMortabet\" let-classNames=\"classNames\">\n <table #tablesRef class=\"table-grid\" [ngClass]=\"classNames\">\n <ng-container *ngFor=\"let controlItem of array\">\n <tr>\n <th>{{ controlItem.caption }}</th>\n <td>\n <ng-container [ngSwitch]=\"controlItem.type\">\n <ng-container *ngSwitchCase=\"'Link'\">\n <a target=\"_blank\" [href]=\"mo[controlItem.fieldName]\">{{\n mo[controlItem.fieldName]\n }}</a></ng-container\n >\n <ng-container *ngSwitchCase=\"'Relation'\">\n {{ controlItem.fieldName | val: mo:true }}</ng-container\n >\n <ng-container *ngSwitchCase=\"'MoList'\">\n <div *ngFor=\"let item of mo[controlItem.fieldName]?.MoDataList\" class=\"links\">\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'chain-link'\" style=\"color: #0854a0\"></fd-icon>\n <!-- <fd-icon class=\"fd-icon-link\" [glyph]=\"'pdf-attachment'\"></fd-icon> -->\n <a (click)=\"onDownload(item)\">{{ item.$Caption }}</a>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'Image'\"> {{ mo[controlItem.fieldName].Ext }}</ng-container>\n <ng-container *ngSwitchCase=\"'Files'\"> {{ mo[controlItem.fieldName].Files }}</ng-container>\n <ng-container *ngSwitchDefault>\n {{ mo[controlItem.fieldName + '$Caption'] || mo[controlItem.fieldName] }}\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-container>\n <ng-container *ngIf=\"showKhadamatMortabet\">\n <tr>\n <th>\u062E\u062F\u0645\u0627\u062A \u0645\u0631\u062A\u0628\u0637</th>\n <td>\n <div class=\"links\" *ngFor=\"let item of khadamatmortabet\">\n <a (click)=\"onKhadamatMortabet(item)\">{{ item.$Caption }}</a>\n </div>\n </td>\n </tr>\n </ng-container>\n </table>\n</ng-template>\n", styles: ["table{background-color:var(--sapBaseColor)}.cell{font-size:14px}.bod{border-bottom:1px solid gray;border-right:1px solid gray;height:30px;line-height:30px}.bod :first{border-right:0;border-bottom:0}.anwser{line-height:30px;padding:10px;text-align:justify}.box{padding:0 40px 10px 10px;line-height:30px;display:flex;flex-direction:column;column-count:2;flex-wrap:wrap;height:180px;overflow:hidden}.faq-item-link{font-size:16px;padding-right:25px;cursor:pointer;color:gray}.faq-item-link a{color:gray;cursor:pointer}.faq-item-link a:hover{text-decoration:underline!important}.law-page-header{background:#fff;color:#0854a0;font-size:1.3rem;font-weight:500;padding:5px 15px}.wrapper{border-bottom:.0625rem solid var(--sapGroup_TitleBorderColor, #d9d9d9)}table.table-grid{font-family:arial,sans-serif;border-collapse:collapse;width:100%;direction:rtl}.table-grid td,.table-grid th{border:1px solid grey;text-align:left;padding:12px 8px;text-align:right}.table-grid th{background-color:#e2e2e2;font-size:.825rem;font-weight:500;vertical-align:middle;width:150px;font-family:IRANYekanDigits}.table-grid td{font-size:.825rem;vertical-align:middle;font-family:IRANYekanDigits}@media only screen and (max-width: 992px){.secondTable tr:first-child td,.secondTable tr:first-child th{border-top:0}}@media only screen and (min-width: 992px){.secondTable th{border-right:0}}.fd-icon{font-size:2rem;color:#0854a0;padding-left:10px}.links a{line-height:25px;cursor:pointer;display:inline;color:#32363a;vertical-align:top}.links a:hover{text-decoration:underline!important;color:#000}.fd-icon-link{font-size:1rem;padding-left:5px}.VideoGuide{max-width:1280px;margin:0 auto;width:auto;text-align:center}.h_iframe-aparat_embed_frame{position:relative}.h_iframe-aparat_embed_frame .ratio{display:block;width:100%;height:auto}.h_iframe-aparat_embed_frame iframe{position:absolute;top:0;left:0;width:100%;height:100%}\n"] }]
|
|
1432
|
+
}], propDecorators: { tabContainerRef: [{
|
|
1433
|
+
type: ViewChild,
|
|
1434
|
+
args: ['tabContainerRef']
|
|
1435
|
+
}], tablesRef: [{
|
|
1436
|
+
type: ViewChildren,
|
|
1437
|
+
args: ['tablesRef']
|
|
1438
|
+
}] } });
|
|
1439
|
+
|
|
1440
|
+
class ServiceDeskViewOfServicesComponent extends ReportViewBaseComponent {
|
|
1441
|
+
ngOnInit() {
|
|
1442
|
+
super.ngOnInit();
|
|
1443
|
+
this.fieldIcon = this.viewSetting.FieldIcon;
|
|
1444
|
+
this.fieldTitle = this.viewSetting.FieldTitle;
|
|
1445
|
+
this.fieldDynamicCommand = this.viewSetting.FieldDynamicCommand;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
ServiceDeskViewOfServicesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskViewOfServicesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1449
|
+
ServiceDeskViewOfServicesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ServiceDeskViewOfServicesComponent, selector: "bdc-service-desk-view-of-services", usesInheritance: true, ngImport: i0, template: "<div class=\"services\">\n <div class=\"service-list\">\n <fd-layout-grid>\n <div\n [fdLayoutGridCol]=\"12\"\n [colMd]=\"3\"\n [colLg]=\"3\"\n [colXl]=\"3\"\n *ngFor=\"let mo of moDataList; let i = index\"\n >\n <div class=\"item\">\n <a [dynCommand]=\"fieldDynamicCommand | rval: mo:allColumns\" [mo]=\"mo\">\n <span class=\"item-icon\">\n <fd-icon glyph=\"product\"></fd-icon>\n </span>\n <span class=\"item-content\"> {{ fieldTitle | rval: mo:allColumns | bbbTranslate }}</span>\n <span class=\"item-icon-arrow\">\n <fd-icon [glyph]=\"fieldIcon || 'add'\"></fd-icon>\n </span>\n </a>\n </div>\n </div>\n </fd-layout-grid>\n </div>\n</div>\n", styles: [":host .b-b{padding-right:5px;padding-top:5px}.item{position:relative}.item a{background:#0078d7;cursor:pointer;display:flex;padding:10px 5px;flex-direction:column;cursor:pointer!important}.item a:hover{background:#67b4f3}fd-icon{font-size:1.25rem;color:#fff}.item .item-content{color:#fff;margin-left:35px;margin-right:25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}.item .item-icon{position:absolute;right:5px;top:5px}.item .item-icon-arrow{position:absolute;left:16px;top:9px}.item .item-icon-arrow fd-icon{font-size:1rem;color:#fff}.exe_cell{margin-top:10px;padding:0 5px}.service-list{margin-top:20px}@media only screen and (max-width: 1200px){.services{margin:0 5rem}}.exe_cell:nth-child(1),.exe_cell:nth-child(2),.exe_cell:nth-child(3),.exe_cell:nth-child(4){margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.DynamicCommandDirective, selector: "[dynCommand]", inputs: ["dynCommand", "mo", "enableCommand"], outputs: ["commandClick"] }, { kind: "component", type: i3$5.IconComponent, selector: "fd-icon", inputs: ["glyph", "font", "class", "ariaLabel"] }, { kind: "component", type: i5$4.LayoutGridComponent, selector: "fd-layout-grid, [fdLayoutGrid]", inputs: ["class", "noGap", "noHorizontalGap", "noVerticalGap"] }, { kind: "directive", type: i5$4.LayoutGridColDirective, selector: "[fd-layout-grid-col], [fdLayoutGridCol]", inputs: ["fdLayoutGridCol", "colGrow", "colMd", "colLg", "colXl", "colOffset", "colOffsetMd", "colOffsetLg", "colOffsetXl", "class"] }, { kind: "pipe", type: i1$2.MoReportValuePipe, name: "rval" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskViewOfServicesComponent, decorators: [{
|
|
1451
|
+
type: Component,
|
|
1452
|
+
args: [{ selector: 'bdc-service-desk-view-of-services', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"services\">\n <div class=\"service-list\">\n <fd-layout-grid>\n <div\n [fdLayoutGridCol]=\"12\"\n [colMd]=\"3\"\n [colLg]=\"3\"\n [colXl]=\"3\"\n *ngFor=\"let mo of moDataList; let i = index\"\n >\n <div class=\"item\">\n <a [dynCommand]=\"fieldDynamicCommand | rval: mo:allColumns\" [mo]=\"mo\">\n <span class=\"item-icon\">\n <fd-icon glyph=\"product\"></fd-icon>\n </span>\n <span class=\"item-content\"> {{ fieldTitle | rval: mo:allColumns | bbbTranslate }}</span>\n <span class=\"item-icon-arrow\">\n <fd-icon [glyph]=\"fieldIcon || 'add'\"></fd-icon>\n </span>\n </a>\n </div>\n </div>\n </fd-layout-grid>\n </div>\n</div>\n", styles: [":host .b-b{padding-right:5px;padding-top:5px}.item{position:relative}.item a{background:#0078d7;cursor:pointer;display:flex;padding:10px 5px;flex-direction:column;cursor:pointer!important}.item a:hover{background:#67b4f3}fd-icon{font-size:1.25rem;color:#fff}.item .item-content{color:#fff;margin-left:35px;margin-right:25px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative}.item .item-icon{position:absolute;right:5px;top:5px}.item .item-icon-arrow{position:absolute;left:16px;top:9px}.item .item-icon-arrow fd-icon{font-size:1rem;color:#fff}.exe_cell{margin-top:10px;padding:0 5px}.service-list{margin-top:20px}@media only screen and (max-width: 1200px){.services{margin:0 5rem}}.exe_cell:nth-child(1),.exe_cell:nth-child(2),.exe_cell:nth-child(3),.exe_cell:nth-child(4){margin-top:10px}\n"] }]
|
|
1453
|
+
}] });
|
|
1454
|
+
|
|
1455
|
+
class ServiceDeskCardContentMojavezhayAkhzShodeComponent extends BaseComponent {
|
|
1456
|
+
ngOnInit() {
|
|
1457
|
+
super.ngOnInit();
|
|
1458
|
+
this.fieldTitle = this.parameters.FieldTitle;
|
|
1459
|
+
this.titleOfValue = this.parameters.TitleOfValue;
|
|
1460
|
+
this.fieldValue = this.parameters.FieldValue;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
ServiceDeskCardContentMojavezhayAkhzShodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskCardContentMojavezhayAkhzShodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1464
|
+
ServiceDeskCardContentMojavezhayAkhzShodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ServiceDeskCardContentMojavezhayAkhzShodeComponent, selector: "bdc-service-desk-card-content-mojavezhay-akhz-shode", inputs: { mo: "mo", allColumns: "allColumns", parameters: "parameters", rtl: "rtl" }, usesInheritance: true, ngImport: i0, template: "<div style=\"display: flex; flex-direction: row; width: 100%\">\r\n <h2\r\n fd-title\r\n style=\"\r\n width: 60%;\r\n text-align: right;\r\n font-size: 12px;\r\n font-weight: 600;\r\n padding: 0px 16px 0 0;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n \"\r\n >\r\n {{ fieldTitle | rval: mo:allColumns:true }}\r\n </h2>\r\n <h3\r\n fd-title\r\n style=\"\r\n width: 40%;\r\n text-align: left;\r\n font-size: 12px;\r\n font-weight: 600;\r\n padding: 0px 5px 0 10px;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n display: flex;\r\n \"\r\n >\r\n <div style=\"width: 100%; font-weight: 400\">{{ titleOfValue }}:</div>\r\n <div style=\"padding-right: 5px; text-align: left\">\r\n {{ fieldValue | rval: mo:allColumns }}\r\n </div>\r\n </h3>\r\n</div>\r\n", styles: [":host{display:flex;align-items:center;padding:10px}\n"], dependencies: [{ kind: "component", type: i6$1.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "pipe", type: i1$2.MoReportValuePipe, name: "rval" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskCardContentMojavezhayAkhzShodeComponent, decorators: [{
|
|
1466
|
+
type: Component,
|
|
1467
|
+
args: [{ selector: 'bdc-service-desk-card-content-mojavezhay-akhz-shode', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"display: flex; flex-direction: row; width: 100%\">\r\n <h2\r\n fd-title\r\n style=\"\r\n width: 60%;\r\n text-align: right;\r\n font-size: 12px;\r\n font-weight: 600;\r\n padding: 0px 16px 0 0;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n \"\r\n >\r\n {{ fieldTitle | rval: mo:allColumns:true }}\r\n </h2>\r\n <h3\r\n fd-title\r\n style=\"\r\n width: 40%;\r\n text-align: left;\r\n font-size: 12px;\r\n font-weight: 600;\r\n padding: 0px 5px 0 10px;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n display: flex;\r\n \"\r\n >\r\n <div style=\"width: 100%; font-weight: 400\">{{ titleOfValue }}:</div>\r\n <div style=\"padding-right: 5px; text-align: left\">\r\n {{ fieldValue | rval: mo:allColumns }}\r\n </div>\r\n </h3>\r\n</div>\r\n", styles: [":host{display:flex;align-items:center;padding:10px}\n"] }]
|
|
1468
|
+
}], propDecorators: { mo: [{
|
|
1469
|
+
type: Input
|
|
1470
|
+
}], allColumns: [{
|
|
1471
|
+
type: Input
|
|
1472
|
+
}], parameters: [{
|
|
1473
|
+
type: Input
|
|
1474
|
+
}], rtl: [{
|
|
1475
|
+
type: Input
|
|
1476
|
+
}] } });
|
|
1477
|
+
|
|
1478
|
+
class CardHeaderBigImageTitleAndSubtitleComponent extends CardHeaderLogoTitleSubtitleComponent {
|
|
1479
|
+
}
|
|
1480
|
+
CardHeaderBigImageTitleAndSubtitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderBigImageTitleAndSubtitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1481
|
+
CardHeaderBigImageTitleAndSubtitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: CardHeaderBigImageTitleAndSubtitleComponent, selector: "bdc-card-header-big-image-title-and-subtitle", usesInheritance: true, ngImport: i0, template: "<fd-card-header [class.hide-border]=\"parameters.HideBorder\">\r\n <fd-avatar\r\n *ngIf=\"hasIcon\"\r\n [circle]=\"avatarCircle\"\r\n size=\"s\"\r\n ariaLabel=\"avatar image\"\r\n title=\"avatar image\"\r\n [glyph]=\"fontIcon\"\r\n [image]=\"isIconImage ? (imageIcon?.FileId | picFieldSrc: 'GetPictureFromFileInfo':null) : ''\"\r\n ></fd-avatar>\r\n <div fd-card-title [style.justify-content]=\"'end'\">\r\n <div style=\"display: flex; justify-content: start; flex-grow: 1\">\r\n <fd-checkbox\r\n *ngIf=\"isCheckList\"\r\n [name]=\"mo.$Caption\"\r\n [ngModel]=\"isChecked\"\r\n (ngModelChange)=\"events.emit({ title: 'rowCheck' })\"\r\n ></fd-checkbox>\r\n <div\r\n *ngIf=\"!setting.ContextMenuInFooter && contextMenuItems && contextMenuItems.length > 0\"\r\n ulvContextMenu\r\n [allColumns]=\"allColumns\"\r\n [menuItems]=\"contextMenuItems\"\r\n [conditionalFormats]=\"conditionalFormats\"\r\n [disableOverflowContextMenu]=\"disableOverflowContextMenu\"\r\n [mo]=\"mo\"\r\n (commandClick)=\"events.emit({ title: 'ulvCommand' })\"\r\n ></div>\r\n <h2\r\n #hEl\r\n class=\"fd-card__title\"\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"titleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ title }}\r\n </h2>\r\n </div>\r\n <ng-container *ngIf=\"canView\">\r\n <button\r\n fd-button\r\n (click)=\"events.emit({ title: 'rowClick' })\"\r\n [glyph]=\"navigationArrow\"\r\n fdType=\"transparent\"\r\n ></button>\r\n </ng-container>\r\n </div>\r\n\r\n <h3\r\n fd-card-subtitle\r\n #hEl\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"subtitleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ subtitle }}\r\n </h3>\r\n</fd-card-header>\r\n<div></div>\r\n", styles: [":host ::ng-deep .fd-card__header-text{padding:1rem}fd-card-header{cursor:default;display:flex;flex-direction:column;padding:0}fd-card-header fd-avatar{min-height:160px;max-height:160px;height:160px;width:283px;max-width:100%;min-width:100%}fd-card-header .fd-card__title{display:flex;justify-content:space-between;align-items:center;width:100%}fd-card-header .fd-card__title h2{font-size:1rem;font-weight:700}fd-card-header .fd-card__title h3,fd-card-header .fd-card__title h2{margin:0}fd-card-header button{cursor:pointer;z-index:4}fd-card-header.hide-border{border-bottom:none!important}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i3$3.UlvContextMenuComponent, selector: "bsu-ulv-context-menu,[ulvContextMenu]", inputs: ["onlyOverflow", "deviceName", "menuItems", "allColumns", "index", "mo", "conditionalFormats", "disableOverflowContextMenu", "footerMode"], outputs: ["commandClick"] }, { kind: "directive", type: i3$3.ApplyConditionalFormatsDirective, selector: "[applyConditionalFormats]", inputs: ["applyConditionalFormats", "mo", "hostEl", "dbName"] }, { kind: "component", type: i4$4.AvatarComponent, selector: "fd-avatar", inputs: ["class", "id", "ariaLabel", "ariaLabelledby", "label", "size", "glyph", "zoomGlyph", "circle", "transparent", "contain", "placeholder", "tile", "border", "colorAccent", "random", "clickable", "backgroundImage", "image", "alterIcon", "backupImage"], outputs: ["avatarClicked", "zoomGlyphClicked"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i5$3.CardHeaderComponent, selector: "fd-card-header", inputs: ["interactive", "tabindex"] }, { kind: "directive", type: i5$3.CardTitleDirective, selector: "[fd-card-title]" }, { kind: "directive", type: i5$3.CardSubtitleDirective, selector: "[fd-card-subtitle]" }, { kind: "component", type: i7$1.CheckboxComponent, selector: "fd-checkbox", inputs: ["ariaLabel", "value", "ariaLabelledBy", "ariaDescribedBy", "title", "inputId", "state", "name", "label", "disabled", "tristate", "tristateSelectable", "labelClass", "required", "values"], outputs: ["focusChange"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: i1$2.PictureFieldSourcePipe, name: "picFieldSrc" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderBigImageTitleAndSubtitleComponent, decorators: [{
|
|
1483
|
+
type: Component,
|
|
1484
|
+
args: [{ selector: 'bdc-card-header-big-image-title-and-subtitle', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-card-header [class.hide-border]=\"parameters.HideBorder\">\r\n <fd-avatar\r\n *ngIf=\"hasIcon\"\r\n [circle]=\"avatarCircle\"\r\n size=\"s\"\r\n ariaLabel=\"avatar image\"\r\n title=\"avatar image\"\r\n [glyph]=\"fontIcon\"\r\n [image]=\"isIconImage ? (imageIcon?.FileId | picFieldSrc: 'GetPictureFromFileInfo':null) : ''\"\r\n ></fd-avatar>\r\n <div fd-card-title [style.justify-content]=\"'end'\">\r\n <div style=\"display: flex; justify-content: start; flex-grow: 1\">\r\n <fd-checkbox\r\n *ngIf=\"isCheckList\"\r\n [name]=\"mo.$Caption\"\r\n [ngModel]=\"isChecked\"\r\n (ngModelChange)=\"events.emit({ title: 'rowCheck' })\"\r\n ></fd-checkbox>\r\n <div\r\n *ngIf=\"!setting.ContextMenuInFooter && contextMenuItems && contextMenuItems.length > 0\"\r\n ulvContextMenu\r\n [allColumns]=\"allColumns\"\r\n [menuItems]=\"contextMenuItems\"\r\n [conditionalFormats]=\"conditionalFormats\"\r\n [disableOverflowContextMenu]=\"disableOverflowContextMenu\"\r\n [mo]=\"mo\"\r\n (commandClick)=\"events.emit({ title: 'ulvCommand' })\"\r\n ></div>\r\n <h2\r\n #hEl\r\n class=\"fd-card__title\"\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"titleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ title }}\r\n </h2>\r\n </div>\r\n <ng-container *ngIf=\"canView\">\r\n <button\r\n fd-button\r\n (click)=\"events.emit({ title: 'rowClick' })\"\r\n [glyph]=\"navigationArrow\"\r\n fdType=\"transparent\"\r\n ></button>\r\n </ng-container>\r\n </div>\r\n\r\n <h3\r\n fd-card-subtitle\r\n #hEl\r\n [hostEl]=\"hEl\"\r\n [dbName]=\"subtitleDbName\"\r\n [mo]=\"mo\"\r\n [applyConditionalFormats]=\"conditionalFormats\"\r\n >\r\n {{ subtitle }}\r\n </h3>\r\n</fd-card-header>\r\n<div></div>\r\n", styles: [":host ::ng-deep .fd-card__header-text{padding:1rem}fd-card-header{cursor:default;display:flex;flex-direction:column;padding:0}fd-card-header fd-avatar{min-height:160px;max-height:160px;height:160px;width:283px;max-width:100%;min-width:100%}fd-card-header .fd-card__title{display:flex;justify-content:space-between;align-items:center;width:100%}fd-card-header .fd-card__title h2{font-size:1rem;font-weight:700}fd-card-header .fd-card__title h3,fd-card-header .fd-card__title h2{margin:0}fd-card-header button{cursor:pointer;z-index:4}fd-card-header.hide-border{border-bottom:none!important}\n"] }]
|
|
1485
|
+
}] });
|
|
1486
|
+
|
|
1487
|
+
class ServiceDeskFormLayoutContentMojavezComponent extends FormPropsBaseComponent {
|
|
1488
|
+
constructor() {
|
|
1489
|
+
super(...arguments);
|
|
1490
|
+
this.fieldsCaption = [];
|
|
1491
|
+
}
|
|
1492
|
+
ngOnInit() {
|
|
1493
|
+
super.ngOnInit();
|
|
1494
|
+
let fieldDict = [];
|
|
1495
|
+
if (this.fieldDict) {
|
|
1496
|
+
fieldDict = Object.keys(this.fieldDict);
|
|
1497
|
+
}
|
|
1498
|
+
if (fieldDict) {
|
|
1499
|
+
fieldDict.forEach((key) => {
|
|
1500
|
+
var _a;
|
|
1501
|
+
if (this.fieldDict) {
|
|
1502
|
+
const fieldName = this.fieldDict[key];
|
|
1503
|
+
const item = { caption: key, fieldName, value: '' };
|
|
1504
|
+
const customFiledUi = this._controlUiPipe.transform(key, this.layout94);
|
|
1505
|
+
item.value = this.mo[fieldName];
|
|
1506
|
+
const originalXtype = (_a = customFiledUi === null || customFiledUi === void 0 ? void 0 : customFiledUi.FieldUi) === null || _a === void 0 ? void 0 : _a.originalXtype;
|
|
1507
|
+
if (key === 'آدرس سایت') {
|
|
1508
|
+
item.type = 'Link';
|
|
1509
|
+
}
|
|
1510
|
+
if (this.mo[fieldName + '$Caption']) {
|
|
1511
|
+
item.type = 'Caption';
|
|
1512
|
+
item.value = this.mo[fieldName + '$Caption'];
|
|
1513
|
+
}
|
|
1514
|
+
else if (typeof item.value === 'object') {
|
|
1515
|
+
if (item.value.$Type === 'Common.MetaObjectListWeb') {
|
|
1516
|
+
item.type = 'MoList';
|
|
1517
|
+
}
|
|
1518
|
+
else if (item.value.Ext) {
|
|
1519
|
+
item.type = 'Image';
|
|
1520
|
+
}
|
|
1521
|
+
else if (originalXtype === 'Ui.FileLinearListBox') {
|
|
1522
|
+
item.type = 'Files';
|
|
1523
|
+
}
|
|
1524
|
+
else {
|
|
1525
|
+
item.type = 'Relation';
|
|
1526
|
+
}
|
|
1527
|
+
if (key === 'خدمات قابل انجام') {
|
|
1528
|
+
item.type = 'MoList2';
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
this.fieldsCaption.push(item);
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
this.fieldsCaption = this.fieldsCaption.filter((c) => c.caption !== 'عنوان مجوز' && c.caption !== 'نقش اشخاص در مجوز' && c.caption !== 'فرزند');
|
|
1536
|
+
const controlCount = this.fieldsCaption.length;
|
|
1537
|
+
const controlCountMiddle = Math.ceil(this.fieldsCaption.length / 2);
|
|
1538
|
+
this.firstArray = this.fieldsCaption.slice(0, controlCountMiddle);
|
|
1539
|
+
this.secondArray = this.fieldsCaption.slice(controlCountMiddle, controlCount);
|
|
1540
|
+
this.isOdd = controlCount % 2 === 0;
|
|
1541
|
+
}
|
|
1542
|
+
ngAfterViewInit() {
|
|
1543
|
+
super.ngAfterViewInit();
|
|
1544
|
+
this.alignTablesTr();
|
|
1545
|
+
}
|
|
1546
|
+
onLink(item) {
|
|
1547
|
+
if (item.F34) {
|
|
1548
|
+
window.open(item.F42);
|
|
1549
|
+
}
|
|
1550
|
+
else {
|
|
1551
|
+
BarsaApi.Bw.Msg.Info('سامانه ای تعریف نشده است');
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
onDownload(item) {
|
|
1555
|
+
BarsaApi.Common.File.DownloadFileId(item.Id);
|
|
1556
|
+
}
|
|
1557
|
+
alignTablesTr() {
|
|
1558
|
+
setTimeout(() => {
|
|
1559
|
+
const tablesRef = this.tablesRef.toArray();
|
|
1560
|
+
const firstTableEl = tablesRef[0].nativeElement;
|
|
1561
|
+
const secondTableEl = tablesRef[1].nativeElement;
|
|
1562
|
+
const trFirstTable = firstTableEl.querySelectorAll('tr');
|
|
1563
|
+
const trSecondTable = secondTableEl.querySelectorAll('tr');
|
|
1564
|
+
trFirstTable.forEach((tr, index) => {
|
|
1565
|
+
if (index < trSecondTable.length) {
|
|
1566
|
+
const trSecond = trSecondTable[index];
|
|
1567
|
+
if (tr.offsetHeight > trSecond.offsetHeight) {
|
|
1568
|
+
trSecond.style.height = `${tr.offsetHeight}px`;
|
|
1569
|
+
}
|
|
1570
|
+
else {
|
|
1571
|
+
tr.style.height = `${trSecond.offsetHeight}px`;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
});
|
|
1575
|
+
}, 0);
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
ServiceDeskFormLayoutContentMojavezComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskFormLayoutContentMojavezComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1579
|
+
ServiceDeskFormLayoutContentMojavezComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ServiceDeskFormLayoutContentMojavezComponent, selector: "bdc-service-desk-form-layout-content-mojavez", viewQueries: [{ propertyName: "tabContainerRef", first: true, predicate: ["tabContainerRef"], descendants: true }, { propertyName: "tablesRef", predicate: ["tablesRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<fd-layout-grid>\r\n <div [fdLayoutGridCol]=\"6\" style=\"padding: 0\">\r\n <ng-container *ngTemplateOutlet=\"renderTable; context: { $implicit: firstArray, classNames: 'firstTable' }\">\r\n </ng-container>\r\n </div>\r\n <div [fdLayoutGridCol]=\"6\" style=\"padding: 0\">\r\n <ng-container *ngTemplateOutlet=\"renderTable; context: { $implicit: secondArray, classNames: 'secondTable' }\">\r\n </ng-container>\r\n </div>\r\n</fd-layout-grid>\r\n\r\n<ng-template #renderTable let-array let-classNames=\"classNames\">\r\n <table fd-table #tablesRef class=\"table-grid\" [ngClass]=\"classNames\">\r\n <ng-container *ngFor=\"let controlItem of array\">\r\n <tr fd-table-row>\r\n <th fd-tabel-cell>{{ controlItem.caption }}</th>\r\n <td fd-tabel-cell>\r\n <ng-container [ngSwitch]=\"controlItem.type\">\r\n <ng-container *ngSwitchCase=\"'Link'\">\r\n <a target=\"_blank\" [href]=\"controlItem.value\">{{ controlItem.value }}</a></ng-container\r\n >\r\n <ng-container *ngSwitchCase=\"'Relation'\">{{ controlItem.value.$Caption }}</ng-container>\r\n <ng-container *ngSwitchCase=\"'MoList'\">\r\n <div *ngFor=\"let item of controlItem.value.MoDataList\" class=\"links\">\r\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'pdf-attachment'\"></fd-icon>\r\n <a (click)=\"onDownload(item)\">{{ item.$Caption }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'MoList2'\">\r\n <div *ngFor=\"let item of controlItem.value.MoDataList\" class=\"links\">\r\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'chain-link'\"></fd-icon>\r\n <a (click)=\"onLink(item)\">{{ item.$Caption }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'Caption'\"> {{ controlItem.value }}</ng-container>\r\n <ng-container *ngSwitchCase=\"'Image'\"> {{ controlItem.value.Ext }}</ng-container>\r\n <ng-container *ngSwitchCase=\"'Files'\">\r\n <div *ngFor=\"let item of controlItem.value.Files\" class=\"links\">\r\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'pdf-attachment'\"></fd-icon>\r\n <a (click)=\"onDownload(item)\">{{ item.FileName }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ controlItem.value }}\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </table>\r\n</ng-template>\r\n", styles: [".cell{font-size:14px}.bod{border-bottom:1px solid gray;border-right:1px solid gray;height:30px;line-height:30px}.bod :first{border-right:0;border-bottom:0}.anwser{line-height:30px;padding:10px;text-align:justify}.box{padding:0 40px 10px 10px;line-height:30px;display:flex;flex-direction:column;column-count:2;flex-wrap:wrap;height:180px;overflow:hidden}.faq-item-link{font-size:16px;padding-right:25px;cursor:pointer;color:gray}.faq-item-link a{color:gray;cursor:pointer}.faq-item-link a:hover{text-decoration:underline!important}.law-page-header{background:#fff;color:#0854a0;font-size:1.3rem;font-weight:500;padding:5px 15px}.wrapper{border-bottom:.0625rem solid var(--sapGroup_TitleBorderColor, #d9d9d9)}table.table-grid{border-collapse:collapse;width:100%;direction:rtl;background-color:#fff}.table-grid td,.table-grid th{border:1px solid grey;text-align:left;padding:12px 8px;text-align:right}.table-grid th{background-color:#e2e2e2;font-size:.825rem;font-weight:500;vertical-align:middle;width:200px}.table-grid td{font-size:.825rem;vertical-align:middle}@media only screen and (max-width: 992px){.secondTable tr:first-child td,.secondTable tr:first-child th{border-top:0}}@media only screen and (min-width: 992px){.secondTable th{border-right:0}}.fd-icon{font-size:2rem;color:#0854a0;padding-left:10px}.links a{line-height:25px;cursor:pointer;display:inline;color:#32363a;vertical-align:top}.links a:hover{text-decoration:underline!important;color:#0012af}.fd-icon-link{font-size:1rem;padding-left:5px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i3$5.IconComponent, selector: "fd-icon", inputs: ["glyph", "font", "class", "ariaLabel"] }, { kind: "component", type: i5$4.LayoutGridComponent, selector: "fd-layout-grid, [fdLayoutGrid]", inputs: ["class", "noGap", "noHorizontalGap", "noVerticalGap"] }, { kind: "directive", type: i5$4.LayoutGridColDirective, selector: "[fd-layout-grid-col], [fdLayoutGridCol]", inputs: ["fdLayoutGridCol", "colGrow", "colMd", "colLg", "colXl", "colOffset", "colOffsetMd", "colOffsetLg", "colOffsetXl", "class"] }, { kind: "component", type: i15.TableComponent, selector: "table[fd-table]", inputs: ["noBorderX", "noBorderY", "popIn", "responsive", "keys", "allCellsFocusable"], exportAs: ["fd-table"] }, { kind: "directive", type: i15.TableRowDirective, selector: "[fdTableRow], [fd-table-row]", inputs: ["activable", "highlightActive", "hoverable", "focusable", "main", "secondary", "active"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskFormLayoutContentMojavezComponent, decorators: [{
|
|
1581
|
+
type: Component,
|
|
1582
|
+
args: [{ selector: 'bdc-service-desk-form-layout-content-mojavez', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-layout-grid>\r\n <div [fdLayoutGridCol]=\"6\" style=\"padding: 0\">\r\n <ng-container *ngTemplateOutlet=\"renderTable; context: { $implicit: firstArray, classNames: 'firstTable' }\">\r\n </ng-container>\r\n </div>\r\n <div [fdLayoutGridCol]=\"6\" style=\"padding: 0\">\r\n <ng-container *ngTemplateOutlet=\"renderTable; context: { $implicit: secondArray, classNames: 'secondTable' }\">\r\n </ng-container>\r\n </div>\r\n</fd-layout-grid>\r\n\r\n<ng-template #renderTable let-array let-classNames=\"classNames\">\r\n <table fd-table #tablesRef class=\"table-grid\" [ngClass]=\"classNames\">\r\n <ng-container *ngFor=\"let controlItem of array\">\r\n <tr fd-table-row>\r\n <th fd-tabel-cell>{{ controlItem.caption }}</th>\r\n <td fd-tabel-cell>\r\n <ng-container [ngSwitch]=\"controlItem.type\">\r\n <ng-container *ngSwitchCase=\"'Link'\">\r\n <a target=\"_blank\" [href]=\"controlItem.value\">{{ controlItem.value }}</a></ng-container\r\n >\r\n <ng-container *ngSwitchCase=\"'Relation'\">{{ controlItem.value.$Caption }}</ng-container>\r\n <ng-container *ngSwitchCase=\"'MoList'\">\r\n <div *ngFor=\"let item of controlItem.value.MoDataList\" class=\"links\">\r\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'pdf-attachment'\"></fd-icon>\r\n <a (click)=\"onDownload(item)\">{{ item.$Caption }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'MoList2'\">\r\n <div *ngFor=\"let item of controlItem.value.MoDataList\" class=\"links\">\r\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'chain-link'\"></fd-icon>\r\n <a (click)=\"onLink(item)\">{{ item.$Caption }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'Caption'\"> {{ controlItem.value }}</ng-container>\r\n <ng-container *ngSwitchCase=\"'Image'\"> {{ controlItem.value.Ext }}</ng-container>\r\n <ng-container *ngSwitchCase=\"'Files'\">\r\n <div *ngFor=\"let item of controlItem.value.Files\" class=\"links\">\r\n <fd-icon class=\"fd-icon-link\" [glyph]=\"'pdf-attachment'\"></fd-icon>\r\n <a (click)=\"onDownload(item)\">{{ item.FileName }}</a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ controlItem.value }}\r\n </ng-container>\r\n </ng-container>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n </table>\r\n</ng-template>\r\n", styles: [".cell{font-size:14px}.bod{border-bottom:1px solid gray;border-right:1px solid gray;height:30px;line-height:30px}.bod :first{border-right:0;border-bottom:0}.anwser{line-height:30px;padding:10px;text-align:justify}.box{padding:0 40px 10px 10px;line-height:30px;display:flex;flex-direction:column;column-count:2;flex-wrap:wrap;height:180px;overflow:hidden}.faq-item-link{font-size:16px;padding-right:25px;cursor:pointer;color:gray}.faq-item-link a{color:gray;cursor:pointer}.faq-item-link a:hover{text-decoration:underline!important}.law-page-header{background:#fff;color:#0854a0;font-size:1.3rem;font-weight:500;padding:5px 15px}.wrapper{border-bottom:.0625rem solid var(--sapGroup_TitleBorderColor, #d9d9d9)}table.table-grid{border-collapse:collapse;width:100%;direction:rtl;background-color:#fff}.table-grid td,.table-grid th{border:1px solid grey;text-align:left;padding:12px 8px;text-align:right}.table-grid th{background-color:#e2e2e2;font-size:.825rem;font-weight:500;vertical-align:middle;width:200px}.table-grid td{font-size:.825rem;vertical-align:middle}@media only screen and (max-width: 992px){.secondTable tr:first-child td,.secondTable tr:first-child th{border-top:0}}@media only screen and (min-width: 992px){.secondTable th{border-right:0}}.fd-icon{font-size:2rem;color:#0854a0;padding-left:10px}.links a{line-height:25px;cursor:pointer;display:inline;color:#32363a;vertical-align:top}.links a:hover{text-decoration:underline!important;color:#0012af}.fd-icon-link{font-size:1rem;padding-left:5px}\n"] }]
|
|
1583
|
+
}], propDecorators: { tabContainerRef: [{
|
|
1584
|
+
type: ViewChild,
|
|
1585
|
+
args: ['tabContainerRef']
|
|
1586
|
+
}], tablesRef: [{
|
|
1587
|
+
type: ViewChildren,
|
|
1588
|
+
args: ['tablesRef', { read: ElementRef }]
|
|
1589
|
+
}] } });
|
|
1590
|
+
|
|
1591
|
+
class UlvContextMenuItemShowFileContentComponent extends BaseFormToolbaritemPropsComponent {
|
|
1592
|
+
constructor(_reportValuePipe, _cdr, _dialogService, _sanitize) {
|
|
1593
|
+
super(_reportValuePipe, _cdr);
|
|
1594
|
+
this._reportValuePipe = _reportValuePipe;
|
|
1595
|
+
this._cdr = _cdr;
|
|
1596
|
+
this._dialogService = _dialogService;
|
|
1597
|
+
this._sanitize = _sanitize;
|
|
1598
|
+
this.disabled = false;
|
|
1599
|
+
}
|
|
1600
|
+
ngOnInit() {
|
|
1601
|
+
var _a;
|
|
1602
|
+
super.ngOnInit();
|
|
1603
|
+
const mo = this.mo;
|
|
1604
|
+
this.text = this.parameters.ButtonText;
|
|
1605
|
+
this.fdType = this.parameters.FdType$Caption;
|
|
1606
|
+
this.compact = this.parameters.Compact;
|
|
1607
|
+
this.icon = this.parameters.Icon;
|
|
1608
|
+
this.iconOnly = this.parameters.IconOnly;
|
|
1609
|
+
this.fileType = this._reportValuePipe.transform(this.parameters.FieldType, mo, this.allColumns); // نوع
|
|
1610
|
+
this.file = this._reportValuePipe.transform(this.parameters.FieldFile, mo, this.allColumns);
|
|
1611
|
+
this.videoUrl = this._reportValuePipe.transform(this.parameters.FieldVideoUr, mo, this.allColumns);
|
|
1612
|
+
if (this.fileType === '1' && ((_a = this.file.Files) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
1613
|
+
this.disabled = true;
|
|
1614
|
+
}
|
|
1615
|
+
if (this.fileType === '2' && this.videoUrl) {
|
|
1616
|
+
this.disabled = true;
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
openDialog(dialog) {
|
|
1620
|
+
let finalUrl;
|
|
1621
|
+
if (this.fileType === '1') {
|
|
1622
|
+
finalUrl = this._sanitize.bypassSecurityTrustResourceUrl(BarsaApi.Common.File.CreateAttachmentUrl(this.file.Files[0].Id, true));
|
|
1623
|
+
}
|
|
1624
|
+
if (this.fileType === '2') {
|
|
1625
|
+
finalUrl = this._sanitize.bypassSecurityTrustResourceUrl(this.videoUrl);
|
|
1626
|
+
}
|
|
1627
|
+
const isMobile = this.deviceName === 'mobile';
|
|
1628
|
+
const x = {
|
|
1629
|
+
data: {
|
|
1630
|
+
url: finalUrl,
|
|
1631
|
+
isVideo: this.fileType === '2',
|
|
1632
|
+
responsivePadding: true,
|
|
1633
|
+
mobile: isMobile
|
|
1634
|
+
}
|
|
1635
|
+
};
|
|
1636
|
+
if (!isMobile) {
|
|
1637
|
+
x.width = '60%';
|
|
1638
|
+
x.height = '56%';
|
|
1639
|
+
}
|
|
1640
|
+
this._dialogService.open(dialog, x);
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
UlvContextMenuItemShowFileContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UlvContextMenuItemShowFileContentComponent, deps: [{ token: i1$2.MoReportValuePipe }, { token: i0.ChangeDetectorRef }, { token: i1$3.DialogService }, { token: i3$7.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
1644
|
+
UlvContextMenuItemShowFileContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: UlvContextMenuItemShowFileContentComponent, selector: "bdc-ulv-context-menu-item-show-file-content", usesInheritance: true, ngImport: i0, template: "<button\r\n fd-button\r\n [compact]=\"compact\"\r\n [label]=\"iconOnly ? '' : (text | bbbTranslate)\"\r\n [fdType]=\"fdType\"\r\n [glyph]=\"icon\"\r\n [compact]=\"compact\"\r\n (click)=\"openDialog(pdfDialog)\"\r\n></button>\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #pdfDialog>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\" #dialogTplRef>\r\n <fd-dialog-header>\r\n <ng-template fdTemplate=\"header\">\r\n <div fd-bar-left></div>\r\n <div fd-bar-right>\r\n <fd-button-bar\r\n *ngIf=\"dialogConfig.height !== '100vh'\"\r\n ariaLabel=\"fullscreen\"\r\n [glyph]=\"dialog.data.fullscreen ? 'exitfullscreen' : 'resize'\"\r\n fullscreenDialog\r\n [dialog]=\"dialog\"\r\n [dialogComponent]=\"dialogTplRef\"\r\n ></fd-button-bar>\r\n <fd-button-bar ariaLabel=\"close\" glyph=\"decline\" (click)=\"dialog.dismiss()\"></fd-button-bar>\r\n </div>\r\n </ng-template>\r\n </fd-dialog-header>\r\n\r\n <fd-dialog-body>\r\n <object\r\n *ngIf=\"!dialogConfig.data.isVideo\"\r\n [data]=\"dialogConfig.data.url\"\r\n type=\"application/pdf\"\r\n width=\"100%\"\r\n height=\"98%\"\r\n ></object>\r\n <video *ngIf=\"dialogConfig.data.isVideo\" controls style=\"width: 100%; height: 98%\">\r\n <source [src]=\"dialogConfig.data.url\" type=\"video/mp4\" />\r\n Your browser does not support HTML video.\r\n </video>\r\n </fd-dialog-body>\r\n </fd-dialog>\r\n</ng-template>\r\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$3.FullscreenDialogDirective, selector: "[fullscreenDialog]", inputs: ["dialog", "dialogComponent"] }, { kind: "directive", type: i6.BarLeftDirective, selector: "[fd-bar-left]" }, { kind: "directive", type: i6.BarRightDirective, selector: "[fd-bar-right]" }, { kind: "component", type: i6.ButtonBarComponent, selector: "fd-button-bar", inputs: ["fullWidth", "fdType", "title", "ariaLabel", "ariaLabelledby", "id"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "directive", type: i5.DeprecatedButtonContentDensityDirective, selector: "[fd-button][compact]" }, { kind: "component", type: i5$2.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i5$2.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i5$2.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "directive", type: i12.TemplateDirective, selector: "[fdTemplate]", inputs: ["fdTemplate"] }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UlvContextMenuItemShowFileContentComponent, decorators: [{
|
|
1646
|
+
type: Component,
|
|
1647
|
+
args: [{ selector: 'bdc-ulv-context-menu-item-show-file-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\r\n fd-button\r\n [compact]=\"compact\"\r\n [label]=\"iconOnly ? '' : (text | bbbTranslate)\"\r\n [fdType]=\"fdType\"\r\n [glyph]=\"icon\"\r\n [compact]=\"compact\"\r\n (click)=\"openDialog(pdfDialog)\"\r\n></button>\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #pdfDialog>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\" #dialogTplRef>\r\n <fd-dialog-header>\r\n <ng-template fdTemplate=\"header\">\r\n <div fd-bar-left></div>\r\n <div fd-bar-right>\r\n <fd-button-bar\r\n *ngIf=\"dialogConfig.height !== '100vh'\"\r\n ariaLabel=\"fullscreen\"\r\n [glyph]=\"dialog.data.fullscreen ? 'exitfullscreen' : 'resize'\"\r\n fullscreenDialog\r\n [dialog]=\"dialog\"\r\n [dialogComponent]=\"dialogTplRef\"\r\n ></fd-button-bar>\r\n <fd-button-bar ariaLabel=\"close\" glyph=\"decline\" (click)=\"dialog.dismiss()\"></fd-button-bar>\r\n </div>\r\n </ng-template>\r\n </fd-dialog-header>\r\n\r\n <fd-dialog-body>\r\n <object\r\n *ngIf=\"!dialogConfig.data.isVideo\"\r\n [data]=\"dialogConfig.data.url\"\r\n type=\"application/pdf\"\r\n width=\"100%\"\r\n height=\"98%\"\r\n ></object>\r\n <video *ngIf=\"dialogConfig.data.isVideo\" controls style=\"width: 100%; height: 98%\">\r\n <source [src]=\"dialogConfig.data.url\" type=\"video/mp4\" />\r\n Your browser does not support HTML video.\r\n </video>\r\n </fd-dialog-body>\r\n </fd-dialog>\r\n</ng-template>\r\n", styles: [":host{display:block}\n"] }]
|
|
1648
|
+
}], ctorParameters: function () { return [{ type: i1$2.MoReportValuePipe }, { type: i0.ChangeDetectorRef }, { type: i1$3.DialogService }, { type: i3$7.DomSanitizer }]; } });
|
|
1649
|
+
|
|
1650
|
+
class ResendVerificationCodeComponent extends FieldBaseComponent {
|
|
1651
|
+
constructor() {
|
|
1652
|
+
super(...arguments);
|
|
1653
|
+
this.caption = '00:00';
|
|
1654
|
+
this.timer = 1;
|
|
1655
|
+
this.minutes = '0';
|
|
1656
|
+
this.seconds = '0';
|
|
1657
|
+
this.timeLeft = 120;
|
|
1658
|
+
}
|
|
1659
|
+
ngAfterViewInit() {
|
|
1660
|
+
super.ngAfterViewInit();
|
|
1661
|
+
this.caption = `(${this.caption})`;
|
|
1662
|
+
this._startTimer();
|
|
1663
|
+
}
|
|
1664
|
+
ngOnDestroy() {
|
|
1665
|
+
super.ngOnDestroy();
|
|
1666
|
+
if (this.interval$) {
|
|
1667
|
+
clearInterval(this.interval$);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
onClick() {
|
|
1671
|
+
this.context.fireEvent('click', this.context);
|
|
1672
|
+
}
|
|
1673
|
+
onStartTimer() {
|
|
1674
|
+
this._startTimer();
|
|
1675
|
+
}
|
|
1676
|
+
_startTimer() {
|
|
1677
|
+
this.interval$ = setInterval(() => {
|
|
1678
|
+
if (this.timeLeft > 0) {
|
|
1679
|
+
this.timeLeft--;
|
|
1680
|
+
this.minutes = Math.floor(this.timeLeft / 60).toString();
|
|
1681
|
+
this.seconds = Math.round(this.timeLeft % 60).toString();
|
|
1682
|
+
this.minutes = Number(this.minutes) < 10 ? '0' + this.minutes : this.minutes;
|
|
1683
|
+
this.seconds = Number(this.seconds) < 10 ? '0' + this.seconds : this.seconds;
|
|
1684
|
+
this.caption = `(${this.minutes}:${this.seconds})`;
|
|
1685
|
+
}
|
|
1686
|
+
else {
|
|
1687
|
+
this.timeLeft = 120;
|
|
1688
|
+
this.caption = `${this.caption}`;
|
|
1689
|
+
if (this.interval$ != null) {
|
|
1690
|
+
clearInterval(this.interval$);
|
|
1691
|
+
this.interval$ = null;
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
this._cdr.detectChanges();
|
|
1695
|
+
}, 1000);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
ResendVerificationCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ResendVerificationCodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1699
|
+
ResendVerificationCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ResendVerificationCodeComponent, selector: "bdc-resend-verification-code", usesInheritance: true, ngImport: i0, template: "<button\n (click)=\"onClick()\"\n fd-button\n [attr.disabled]=\"interval$ === null ? null : true\"\n (click)=\"onStartTimer()\"\n [label]=\"'\u0627\u0631\u0633\u0627\u0644 \u0645\u062C\u062F\u062F' + caption\"\n></button>\n", styles: [""], dependencies: [{ kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ResendVerificationCodeComponent, decorators: [{
|
|
1701
|
+
type: Component,
|
|
1702
|
+
args: [{ selector: 'bdc-resend-verification-code', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n (click)=\"onClick()\"\n fd-button\n [attr.disabled]=\"interval$ === null ? null : true\"\n (click)=\"onStartTimer()\"\n [label]=\"'\u0627\u0631\u0633\u0627\u0644 \u0645\u062C\u062F\u062F' + caption\"\n></button>\n" }]
|
|
1703
|
+
}] });
|
|
1704
|
+
|
|
1705
|
+
class CheckboxButtonComponent extends UiCheckBoxComponent {
|
|
1706
|
+
ngOnInit() {
|
|
1707
|
+
var _a, _b, _c;
|
|
1708
|
+
super.ngOnInit();
|
|
1709
|
+
this.trueIcon = (_a = this.parameters) === null || _a === void 0 ? void 0 : _a.TrueIcon;
|
|
1710
|
+
this.fdType = (_b = this.parameters) === null || _b === void 0 ? void 0 : _b.FdType$Caption;
|
|
1711
|
+
this.falseIcon = (_c = this.parameters) === null || _c === void 0 ? void 0 : _c.FalseIcon;
|
|
1712
|
+
}
|
|
1713
|
+
onClick() {
|
|
1714
|
+
this._valueChanged(!this.value);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
CheckboxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CheckboxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1718
|
+
CheckboxButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: CheckboxButtonComponent, selector: "bdc-checkbox-button", usesInheritance: true, ngImport: i0, template: "<button\n [disabled]=\"(disableOrReadonly$ | async)!!\"\n fd-button\n [glyph]=\"value ? trueIcon : falseIcon\"\n [fdType]=\"fdType\"\n (click)=\"onClick()\"\n></button>\n", styles: [":host{display:flex;height:100%;align-items:center}button{margin-top:.25rem;margin-bottom:.25rem}\n"], dependencies: [{ kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CheckboxButtonComponent, decorators: [{
|
|
1720
|
+
type: Component,
|
|
1721
|
+
args: [{ selector: 'bdc-checkbox-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n [disabled]=\"(disableOrReadonly$ | async)!!\"\n fd-button\n [glyph]=\"value ? trueIcon : falseIcon\"\n [fdType]=\"fdType\"\n (click)=\"onClick()\"\n></button>\n", styles: [":host{display:flex;height:100%;align-items:center}button{margin-top:.25rem;margin-bottom:.25rem}\n"] }]
|
|
1722
|
+
}] });
|
|
1723
|
+
|
|
1724
|
+
class BarcodeFormatPipe {
|
|
1725
|
+
transform(value) {
|
|
1726
|
+
let format = '';
|
|
1727
|
+
for (const enumMember of Object.keys(BarcodeFormat)) {
|
|
1728
|
+
const isValueProperty = parseInt(enumMember, 10) >= 0;
|
|
1729
|
+
if (isValueProperty && Number(enumMember) === value) {
|
|
1730
|
+
format = BarcodeFormat[enumMember];
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
return format;
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
BarcodeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1737
|
+
BarcodeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: BarcodeFormatPipe, name: "barcodeFormat" });
|
|
1738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeFormatPipe, decorators: [{
|
|
1739
|
+
type: Pipe,
|
|
1740
|
+
args: [{
|
|
1741
|
+
name: 'barcodeFormat'
|
|
1742
|
+
}]
|
|
1743
|
+
}] });
|
|
1744
|
+
|
|
1745
|
+
class ReportTabViewComponent extends ReportViewBaseComponent {
|
|
1746
|
+
ngOnInit() {
|
|
1747
|
+
super.ngOnInit();
|
|
1748
|
+
this.arrowRight = this.rtl ? 'navigation-left-arrow' : 'navigation-right-arrow';
|
|
1749
|
+
this.fieldTitle = this.viewSetting.FieldTitle;
|
|
1750
|
+
this.fieldIcon = this.viewSetting.FieldIcon;
|
|
1751
|
+
this.fieldState = this.viewSetting.FieldState;
|
|
1752
|
+
this.mode = this.viewSetting.Mode$Caption;
|
|
1753
|
+
}
|
|
1754
|
+
onSelectedTabChange(e) {
|
|
1755
|
+
const index = this.moDataList.findIndex((c) => c.Id === e.id);
|
|
1756
|
+
const mo = this.moDataList[index];
|
|
1757
|
+
super.onRowCheck({ mo, index });
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
ReportTabViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportTabViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1761
|
+
ReportTabViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ReportTabViewComponent, selector: "bdc-report-tab-view", usesInheritance: true, ngImport: i0, template: "<fd-tab-list (selectedTabChange)=\"onSelectedTabChange($event)\">\n <fd-tab *ngFor=\"let mo of moDataList\" [title]=\"mo.$Caption\" [id]=\"mo.Id\"> </fd-tab>\n</fd-tab-list>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2$1.TabListComponent, selector: "fd-tab-list", inputs: ["size", "mode", "collapseOverflow", "maxVisibleTabs", "stackContent", "maxContentHeight", "collapsibleTabs", "expandOverflowText", "defaultTab", "selectDefaultOnTabsChange"], outputs: ["selectedTabChange", "visibleItemsCount", "hiddenItemsCount"] }, { kind: "component", type: i2$1.TabPanelComponent, selector: "fd-tab", inputs: ["id", "ariaLabel", "ariaLabelledBy", "title", "count", "glyph", "header", "disabled", "tabState"], outputs: ["opened", "closed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportTabViewComponent, decorators: [{
|
|
1763
|
+
type: Component,
|
|
1764
|
+
args: [{ selector: 'bdc-report-tab-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-tab-list (selectedTabChange)=\"onSelectedTabChange($event)\">\n <fd-tab *ngFor=\"let mo of moDataList\" [title]=\"mo.$Caption\" [id]=\"mo.Id\"> </fd-tab>\n</fd-tab-list>\n" }]
|
|
1765
|
+
}] });
|
|
1766
|
+
|
|
1767
|
+
class ReportLineChartViewComponent extends ReportViewBaseComponent {
|
|
1768
|
+
}
|
|
1769
|
+
ReportLineChartViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportLineChartViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1770
|
+
ReportLineChartViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ReportLineChartViewComponent, selector: "bdc-report-line-chart-view", usesInheritance: true, ngImport: i0, template: "<div\n beChartLineTime\n [moDataList]=\"moDataList\"\n [groupByField]=\"'SlaveAddress'\"\n [dateTimeField]=\"'DateTime'\"\n [valueField]=\"'Value'\"\n></div>\n", styles: [":host{height:100vh;display:block}\n"], dependencies: [{ kind: "directive", type: i2$4.ChartLineTimeBaseDirective, selector: "[beChartLineTime]", inputs: ["chartOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportLineChartViewComponent, decorators: [{
|
|
1772
|
+
type: Component,
|
|
1773
|
+
args: [{ selector: 'bdc-report-line-chart-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n beChartLineTime\n [moDataList]=\"moDataList\"\n [groupByField]=\"'SlaveAddress'\"\n [dateTimeField]=\"'DateTime'\"\n [valueField]=\"'Value'\"\n></div>\n", styles: [":host{height:100vh;display:block}\n"] }]
|
|
1774
|
+
}] });
|
|
1775
|
+
|
|
1776
|
+
class CardHeaderKpiComponent extends CardHeaderLogoTitleSubtitleComponent {
|
|
1777
|
+
ngOnInit() {
|
|
1778
|
+
const parentField = this.parameters.InheritanceInfo.ParentFieldName;
|
|
1779
|
+
Object.keys(this.parameters[parentField]).forEach((c) => {
|
|
1780
|
+
if (!c.startsWith('$') && c !== 'Id') {
|
|
1781
|
+
this.parameters[c] = this.parameters[parentField][c];
|
|
1782
|
+
}
|
|
1783
|
+
});
|
|
1784
|
+
super.ngOnInit();
|
|
1785
|
+
const parameters = this.parameters;
|
|
1786
|
+
if (parameters != null) {
|
|
1787
|
+
this.kpiValue = this._rval.transform(parameters.KpiValue, this.mo, this.allColumns, true);
|
|
1788
|
+
this.kpiStatus = this._rval.transform(parameters.KpiStatus, this.mo, this.allColumns, true);
|
|
1789
|
+
this.kpiAnalyticalLabel = parameters.KpiAnalyticalLabel;
|
|
1790
|
+
this.kpiAnalayticalSymbol = this._rval.transform(parameters.KpiAnalayticalSymbol, this.mo, this.allColumns);
|
|
1791
|
+
this.kpiAnalyticalContent = this._rval.transform(parameters.KpiAnalyticalContent, this.mo, this.allColumns);
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
CardHeaderKpiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderKpiComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1796
|
+
CardHeaderKpiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: CardHeaderKpiComponent, selector: "bdc-card-header-kpi", usesInheritance: true, ngImport: i0, template: "<fd-card-header>\n <div fd-card-title [style.justify-content]=\"'end'\">\n <div style=\"display: flex; justify-content: start; flex-grow: 1\">\n <fd-checkbox\n *ngIf=\"isCheckList\"\n [name]=\"mo.$Caption\"\n [ngModel]=\"isChecked\"\n (ngModelChange)=\"events.emit({ title: 'rowCheck' })\"\n ></fd-checkbox>\n <h2\n #hEl\n class=\"fd-card__title\"\n [hostEl]=\"hEl\"\n [dbName]=\"titleDbName\"\n [mo]=\"mo\"\n [applyConditionalFormats]=\"conditionalFormats\"\n >\n {{ title }}\n </h2>\n <div\n *ngIf=\"!setting.ContextMenuInFooter && contextMenuItems && contextMenuItems.length > 0\"\n ulvContextMenu\n [allColumns]=\"allColumns\"\n [menuItems]=\"contextMenuItems\"\n [conditionalFormats]=\"conditionalFormats\"\n [disableOverflowContextMenu]=\"disableOverflowContextMenu\"\n [mo]=\"mo\"\n (commandClick)=\"events.emit({ title: 'ulvCommand' })\"\n ></div>\n </div>\n <ng-container *ngIf=\"canView\">\n <button\n fd-button\n (click)=\"events.emit({ title: 'rowClick' })\"\n [glyph]=\"navigationArrow\"\n fdType=\"transparent\"\n ></button>\n </ng-container>\n </div>\n\n <fd-card-kpi-header>\n <strong fd-card-kpi-value [status]=\"kpiStatus\">{{ kpiValue }}</strong>\n <span\n fd-card-kpi-scale-icon\n [glyph]=\"kpiStatus === 'positive' ? 'up' : 'down'\"\n fd-object-status\n [status]=\"kpiStatus\"\n aria-label=\"up arrow\"\n title=\"up arrow\"\n ></span>\n <span fd-card-kpi-scale-text fd-object-status status=\"positive\">\u00B0C</span>\n\n <div fd-card-kpi-analytics>\n <label fd-card-kpi-analytics-label>{{ kpiAnalyticalLabel }}</label>\n <span fd-card-kpi-analytics-content>{{ kpiAnalyticalContent }}{{ kpiAnalayticalSymbol }}</span>\n </div>\n </fd-card-kpi-header>\n\n <h4 fd-card-second-subtitle>{{ subtitle }}</h4>\n</fd-card-header>\n", styles: ["fd-card-header .fd-card__title{display:flex;justify-content:space-between;align-items:center;width:100%}fd-card-header .fd-card__title h2{font-size:.9rem}fd-card-header .fd-card__title h3,fd-card-header .fd-card__title h2{margin:0}fd-card-header button{cursor:pointer;z-index:4}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i3$3.UlvContextMenuComponent, selector: "bsu-ulv-context-menu,[ulvContextMenu]", inputs: ["onlyOverflow", "deviceName", "menuItems", "allColumns", "index", "mo", "conditionalFormats", "disableOverflowContextMenu", "footerMode"], outputs: ["commandClick"] }, { kind: "directive", type: i3$3.ApplyConditionalFormatsDirective, selector: "[applyConditionalFormats]", inputs: ["applyConditionalFormats", "mo", "hostEl", "dbName"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i5$3.CardHeaderComponent, selector: "fd-card-header", inputs: ["interactive", "tabindex"] }, { kind: "directive", type: i5$3.CardTitleDirective, selector: "[fd-card-title]" }, { kind: "directive", type: i5$3.CardSecondSubtitleDirective, selector: "[fd-card-second-subtitle]" }, { kind: "component", type: i5$3.CardKpiHeaderComponent, selector: "fd-card-kpi-header" }, { kind: "directive", type: i5$3.CardKpiValueDirective, selector: "[fd-card-kpi-value]", inputs: ["status"] }, { kind: "directive", type: i5$3.CardKpiScaleIconDirective, selector: "[fd-card-kpi-scale-icon]" }, { kind: "directive", type: i5$3.CardKpiScaleTextDirective, selector: "[fd-card-kpi-scale-text]" }, { kind: "directive", type: i5$3.CardKpiAnalyticsDirective, selector: "[fd-card-kpi-analytics]" }, { kind: "directive", type: i5$3.CardKpiAnalyticsLabelDirective, selector: "[fd-card-kpi-analytics-label]" }, { kind: "directive", type: i5$3.CardKpiAnalyticsContentDirective, selector: "[fd-card-kpi-analytics-content]" }, { kind: "component", type: i7$1.CheckboxComponent, selector: "fd-checkbox", inputs: ["ariaLabel", "value", "ariaLabelledBy", "ariaDescribedBy", "title", "inputId", "state", "name", "label", "disabled", "tristate", "tristateSelectable", "labelClass", "required", "values"], outputs: ["focusChange"] }, { kind: "component", type: i7$2.ObjectStatusComponent, selector: "[fd-object-status]", inputs: ["class", "status", "glyph", "label", "glyphAriaLabel", "indicationColor", "clickable", "inverted", "large"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderKpiComponent, decorators: [{
|
|
1798
|
+
type: Component,
|
|
1799
|
+
args: [{ selector: 'bdc-card-header-kpi', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-card-header>\n <div fd-card-title [style.justify-content]=\"'end'\">\n <div style=\"display: flex; justify-content: start; flex-grow: 1\">\n <fd-checkbox\n *ngIf=\"isCheckList\"\n [name]=\"mo.$Caption\"\n [ngModel]=\"isChecked\"\n (ngModelChange)=\"events.emit({ title: 'rowCheck' })\"\n ></fd-checkbox>\n <h2\n #hEl\n class=\"fd-card__title\"\n [hostEl]=\"hEl\"\n [dbName]=\"titleDbName\"\n [mo]=\"mo\"\n [applyConditionalFormats]=\"conditionalFormats\"\n >\n {{ title }}\n </h2>\n <div\n *ngIf=\"!setting.ContextMenuInFooter && contextMenuItems && contextMenuItems.length > 0\"\n ulvContextMenu\n [allColumns]=\"allColumns\"\n [menuItems]=\"contextMenuItems\"\n [conditionalFormats]=\"conditionalFormats\"\n [disableOverflowContextMenu]=\"disableOverflowContextMenu\"\n [mo]=\"mo\"\n (commandClick)=\"events.emit({ title: 'ulvCommand' })\"\n ></div>\n </div>\n <ng-container *ngIf=\"canView\">\n <button\n fd-button\n (click)=\"events.emit({ title: 'rowClick' })\"\n [glyph]=\"navigationArrow\"\n fdType=\"transparent\"\n ></button>\n </ng-container>\n </div>\n\n <fd-card-kpi-header>\n <strong fd-card-kpi-value [status]=\"kpiStatus\">{{ kpiValue }}</strong>\n <span\n fd-card-kpi-scale-icon\n [glyph]=\"kpiStatus === 'positive' ? 'up' : 'down'\"\n fd-object-status\n [status]=\"kpiStatus\"\n aria-label=\"up arrow\"\n title=\"up arrow\"\n ></span>\n <span fd-card-kpi-scale-text fd-object-status status=\"positive\">\u00B0C</span>\n\n <div fd-card-kpi-analytics>\n <label fd-card-kpi-analytics-label>{{ kpiAnalyticalLabel }}</label>\n <span fd-card-kpi-analytics-content>{{ kpiAnalyticalContent }}{{ kpiAnalayticalSymbol }}</span>\n </div>\n </fd-card-kpi-header>\n\n <h4 fd-card-second-subtitle>{{ subtitle }}</h4>\n</fd-card-header>\n", styles: ["fd-card-header .fd-card__title{display:flex;justify-content:space-between;align-items:center;width:100%}fd-card-header .fd-card__title h2{font-size:.9rem}fd-card-header .fd-card__title h3,fd-card-header .fd-card__title h2{margin:0}fd-card-header button{cursor:pointer;z-index:4}\n"] }]
|
|
1800
|
+
}] });
|
|
1801
|
+
|
|
1802
|
+
class CardContentLineChartComponent extends BaseItemContentPropsComponent {
|
|
1803
|
+
ngOnInit() {
|
|
1804
|
+
super.ngOnInit();
|
|
1805
|
+
const parameters = this.parameters;
|
|
1806
|
+
const { MethodParametersFieldName, RunBlMethodName } = parameters;
|
|
1807
|
+
const methodParameters = [];
|
|
1808
|
+
MethodParametersFieldName.split(',').forEach((c) => {
|
|
1809
|
+
const value = this.mo[c];
|
|
1810
|
+
if (typeof value === 'object' && value.Id) {
|
|
1811
|
+
methodParameters.push(value.Id);
|
|
1812
|
+
}
|
|
1813
|
+
else {
|
|
1814
|
+
methodParameters.push(value);
|
|
1815
|
+
}
|
|
1816
|
+
});
|
|
1817
|
+
BarsaApi.Bw.RunBlMethodAsync({
|
|
1818
|
+
Parameters: methodParameters,
|
|
1819
|
+
Method: RunBlMethodName,
|
|
1820
|
+
SuccessFn: (chartOption) => {
|
|
1821
|
+
this.chartOption = JSON.parse(chartOption);
|
|
1822
|
+
this._cdr.detectChanges();
|
|
1823
|
+
},
|
|
1824
|
+
FailFn: () => { }
|
|
1825
|
+
});
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1828
|
+
CardContentLineChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentLineChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1829
|
+
CardContentLineChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: CardContentLineChartComponent, selector: "bdc-card-content-line-chart", usesInheritance: true, ngImport: i0, template: "<div class=\"card-content\" *ngIf=\"chartOption\" #elemRef>\n <div beChartLineTime [chartOption]=\"chartOption\"></div>\n</div>\n", styles: [":host{display:block;padding:15px}.card-content{height:300px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.ChartLineTimeBaseDirective, selector: "[beChartLineTime]", inputs: ["chartOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentLineChartComponent, decorators: [{
|
|
1831
|
+
type: Component,
|
|
1832
|
+
args: [{ selector: 'bdc-card-content-line-chart', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"card-content\" *ngIf=\"chartOption\" #elemRef>\n <div beChartLineTime [chartOption]=\"chartOption\"></div>\n</div>\n", styles: [":host{display:block;padding:15px}.card-content{height:300px}\n"] }]
|
|
1833
|
+
}] });
|
|
1834
|
+
|
|
1835
|
+
class FormChartContentComponent extends FormPropsBaseComponent {
|
|
1836
|
+
ngOnInit() {
|
|
1837
|
+
super.ngOnInit();
|
|
1838
|
+
const settings = this.settings;
|
|
1839
|
+
const { MethodParametersFieldName, RunBlMethodName } = settings;
|
|
1840
|
+
const methodParameters = [];
|
|
1841
|
+
MethodParametersFieldName.split(',').forEach((c) => {
|
|
1842
|
+
const value = this.mo[c];
|
|
1843
|
+
if (typeof value === 'object' && value.Id) {
|
|
1844
|
+
methodParameters.push(value.Id);
|
|
1845
|
+
}
|
|
1846
|
+
else {
|
|
1847
|
+
methodParameters.push(value);
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
BarsaApi.Bw.RunBlMethodAsync({
|
|
1851
|
+
Parameters: methodParameters,
|
|
1852
|
+
Method: RunBlMethodName,
|
|
1853
|
+
SuccessFn: (chartOption) => {
|
|
1854
|
+
this.chartOption = JSON.parse(chartOption);
|
|
1855
|
+
this._cdr.detectChanges();
|
|
1856
|
+
},
|
|
1857
|
+
FailFn: () => { }
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
FormChartContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormChartContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1862
|
+
FormChartContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: FormChartContentComponent, selector: "bdc-form-chart-content", usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"chartOption\" beChartLineTime [chartOption]=\"chartOption\"></div>\n", styles: [":host{display:block;height:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.ChartLineTimeBaseDirective, selector: "[beChartLineTime]", inputs: ["chartOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormChartContentComponent, decorators: [{
|
|
1864
|
+
type: Component,
|
|
1865
|
+
args: [{ selector: 'bdc-form-chart-content', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"chartOption\" beChartLineTime [chartOption]=\"chartOption\"></div>\n", styles: [":host{display:block;height:100%}\n"] }]
|
|
1866
|
+
}] });
|
|
1867
|
+
|
|
1868
|
+
class TableViewVerticalColumnsComponent extends ReportViewBaseComponent {
|
|
1869
|
+
}
|
|
1870
|
+
TableViewVerticalColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableViewVerticalColumnsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1871
|
+
TableViewVerticalColumnsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TableViewVerticalColumnsComponent, selector: "bdc-table-view-vertical-columns", usesInheritance: true, ngImport: i0, template: "<table fd-table>\n <tbody fd-table-body>\n <tr fd-table-row *ngFor=\"let column of columns\">\n <th fd-table-cell>\n <strong>{{ column.Alias }}:</strong>\n </th>\n <ng-container *ngFor=\"let mo of moDataList; let index = index\">\n <td\n fd-table-cell\n #tdEl\n [applyConditionalFormats]=\"conditionalFormats\"\n [hostEl]=\"tdEl\"\n [mo]=\"mo\"\n [dbName]=\"column.Name\"\n >\n <bsu-column-renderer\n [mo]=\"mo\"\n [column]=\"column\"\n [editMode]=\"false\"\n [isChecked]=\"false\"\n [isNewInlineMo]=\"false\"\n [index]=\"index\"\n [rtl]=\"rtl\"\n [deviceName]=\"deviceName\"\n [formLayoutShowLabel]=\"false\"\n [deviceSize]=\"deviceSize\"\n ></bsu-column-renderer>\n </td>\n </ng-container>\n </tr>\n </tbody>\n</table>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$3.ColumnRendererComponent, selector: "bsu-column-renderer,[colRenderer]", inputs: ["column", "mo", "index", "editMode", "customRowHeight", "controlUi", "formLayoutShowLabel", "isChecked", "isNewInlineMo", "rtl", "deviceName", "deviceSize"] }, { kind: "directive", type: i3$3.ApplyConditionalFormatsDirective, selector: "[applyConditionalFormats]", inputs: ["applyConditionalFormats", "mo", "hostEl", "dbName"] }, { kind: "component", type: i15.TableComponent, selector: "table[fd-table]", inputs: ["noBorderX", "noBorderY", "popIn", "responsive", "keys", "allCellsFocusable"], exportAs: ["fd-table"] }, { kind: "directive", type: i15.TableBodyDirective, selector: "[fdTableBody], [fd-table-body]", inputs: ["noBorderX", "noBorderY"] }, { kind: "directive", type: i15.TableRowDirective, selector: "[fdTableRow], [fd-table-row]", inputs: ["activable", "highlightActive", "hoverable", "focusable", "main", "secondary", "active"] }, { kind: "directive", type: i15.TableCellDirective, selector: "[fdTableCell], [fd-table-cell]", inputs: ["noBorderX", "noBorderY", "activable", "focusable", "tabindex", "hoverable", "fitContent", "noPadding", "noData", "key", "cellFocusedEventAnnouncer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableViewVerticalColumnsComponent, decorators: [{
|
|
1873
|
+
type: Component,
|
|
1874
|
+
args: [{ selector: 'bdc-table-view-vertical-columns', changeDetection: ChangeDetectionStrategy.OnPush, template: "<table fd-table>\n <tbody fd-table-body>\n <tr fd-table-row *ngFor=\"let column of columns\">\n <th fd-table-cell>\n <strong>{{ column.Alias }}:</strong>\n </th>\n <ng-container *ngFor=\"let mo of moDataList; let index = index\">\n <td\n fd-table-cell\n #tdEl\n [applyConditionalFormats]=\"conditionalFormats\"\n [hostEl]=\"tdEl\"\n [mo]=\"mo\"\n [dbName]=\"column.Name\"\n >\n <bsu-column-renderer\n [mo]=\"mo\"\n [column]=\"column\"\n [editMode]=\"false\"\n [isChecked]=\"false\"\n [isNewInlineMo]=\"false\"\n [index]=\"index\"\n [rtl]=\"rtl\"\n [deviceName]=\"deviceName\"\n [formLayoutShowLabel]=\"false\"\n [deviceSize]=\"deviceSize\"\n ></bsu-column-renderer>\n </td>\n </ng-container>\n </tr>\n </tbody>\n</table>\n" }]
|
|
1875
|
+
}] });
|
|
1876
|
+
|
|
1877
|
+
class QueryStringObservableComponent extends FieldBaseComponent {
|
|
1878
|
+
ngOnInit() {
|
|
1879
|
+
super.ngOnInit();
|
|
1880
|
+
this._activatedRoute.queryParams.subscribe((queryParams) => {
|
|
1881
|
+
const value = queryParams[this.Setting.ControlName];
|
|
1882
|
+
if (value) {
|
|
1883
|
+
this.value = value;
|
|
1884
|
+
this.valueChange.emit(this.value);
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
QueryStringObservableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: QueryStringObservableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1890
|
+
QueryStringObservableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: QueryStringObservableComponent, selector: "bdc-query-string-observable", usesInheritance: true, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: QueryStringObservableComponent, decorators: [{
|
|
1892
|
+
type: Component,
|
|
1893
|
+
args: [{ selector: 'bdc-query-string-observable', changeDetection: ChangeDetectionStrategy.OnPush, template: "" }]
|
|
1894
|
+
}] });
|
|
1895
|
+
|
|
1896
|
+
class QueryStringFormObservableComponent extends BaseComponent {
|
|
1897
|
+
constructor(_activatedRoute, _router, _portalService) {
|
|
1898
|
+
super();
|
|
1899
|
+
this._activatedRoute = _activatedRoute;
|
|
1900
|
+
this._router = _router;
|
|
1901
|
+
this._portalService = _portalService;
|
|
1902
|
+
}
|
|
1903
|
+
ngOnInit() {
|
|
1904
|
+
super.ngOnInit();
|
|
1905
|
+
this._portalService.navigationEnd$.pipe(takeUntil$1(this._onDestroy$)).subscribe((event) => {
|
|
1906
|
+
if (event === null || event === void 0 ? void 0 : event.url.endsWith('/query')) {
|
|
1907
|
+
this._router.navigate(['../']);
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
const params = this._activatedRoute.snapshot.queryParams;
|
|
1911
|
+
const strActionList = params['actionList'];
|
|
1912
|
+
if (strActionList) {
|
|
1913
|
+
const actionList = JSON.parse(strActionList.replaceAll("'", '"'));
|
|
1914
|
+
if (actionList) {
|
|
1915
|
+
BarsaApi.Ul.WorkflowPanelCtrlr.RunWorkflowActionList(actionList, null);
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
QueryStringFormObservableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: QueryStringFormObservableComponent, deps: [{ token: i4$3.ActivatedRoute }, { token: i4$3.Router }, { token: i1$2.PortalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1921
|
+
QueryStringFormObservableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: QueryStringFormObservableComponent, selector: "bdc-query-string-form-observable", usesInheritance: true, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: QueryStringFormObservableComponent, decorators: [{
|
|
1923
|
+
type: Component,
|
|
1924
|
+
args: [{ selector: 'bdc-query-string-form-observable', changeDetection: ChangeDetectionStrategy.OnPush, template: "" }]
|
|
1925
|
+
}], ctorParameters: function () { return [{ type: i4$3.ActivatedRoute }, { type: i4$3.Router }, { type: i1$2.PortalService }]; } });
|
|
1926
|
+
|
|
1927
|
+
class G4bDetailsComponent extends BaseItemContentPropsComponent {
|
|
1928
|
+
ngOnInit() {
|
|
1929
|
+
super.ngOnInit();
|
|
1930
|
+
this._containerRef.createEmbeddedView(this.setting.$detailsFormItems, {
|
|
1931
|
+
$implicit: this.setting.$detailsColumns,
|
|
1932
|
+
mo: this.mo,
|
|
1933
|
+
inlineEditMode: this.inlineEditMode,
|
|
1934
|
+
isNewInlineMo: this.isNewInlineMo,
|
|
1935
|
+
layout94: this.layout94$
|
|
1936
|
+
});
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
G4bDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bDetailsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1940
|
+
G4bDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: G4bDetailsComponent, selector: "bdc-g4b-details", viewQueries: [{ propertyName: "_containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div #container></div>\n<!-- <fd-info-label [label]=\"'\u0648\u0636\u0639\u06CC\u062A \u062F\u0631\u062E\u0648\u0627\u0633\u062A'\" [color]=\"'1'\" [title]=\"'\u0648\u0636\u0639\u06CC\u062A \u062F\u0631\u062E\u0648\u0627\u0633\u062A'\"></fd-info-label> -->\n<div fd-form-item class=\"status-wrapper\" style=\"width: 100%; padding-bottom: 1rem\" [attr.deviceSize]=\"deviceSize\">\n <label fd-form-label>\u0648\u0636\u0639\u06CC\u062A \u062F\u0631\u062E\u0648\u0627\u0633\u062A </label>\n <fd-micro-process-flow class=\"flow\">\n <fd-micro-process-flow-item [state]=\"'positive'\">\n <div class=\"flow-item\">\n <!-- <fd-micro-process-flow-icon\n fd-micro-process-flow-focusable-item\n [glyph]=\"'accept'\"\n ></fd-micro-process-flow-icon> -->\n <!-- <h4 fd-title class=\"fd-object-number--informative\">\u0634\u0631\u0648\u0639 \u062F\u0631\u062E\u0648\u0627\u0633\u062A</h4> -->\n <button\n style=\"pointer-events: none; border: none\"\n fd-button\n [fdType]=\"'positive'\"\n [label]=\"'\u0634\u0631\u0648\u0639 \u062F\u0631\u062E\u0648\u0627\u0633\u062A'\"\n [glyph]=\"'accept'\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n <fd-micro-process-flow-item>\n <div class=\"flow-item\">\n <button fd-button [fdType]=\"'standard'\" [label]=\"'\u062A\u06A9\u0645\u06CC\u0644 \u0645\u062F\u0627\u0631\u06A9 \u062A\u0648\u0633\u0637 \u0645\u062A\u0642\u0627\u0636\u06CC'\" [glyph]=\"''\"></button>\n </div>\n </fd-micro-process-flow-item>\n <fd-micro-process-flow-item>\n <div class=\"flow-item\">\n <!-- <fd-micro-process-flow-icon\n fd-micro-process-flow-focusable-item\n [glyph]=\"'less'\"\n ></fd-micro-process-flow-icon> -->\n <button\n [disabled]=\"true\"\n fd-button\n [fdType]=\"'transparent'\"\n [label]=\"'\u062A\u0627\u06CC\u06CC\u062F \u0645\u062F\u0627\u0631\u06A9 \u062A\u0648\u0633\u0637 \u062F\u0633\u062A\u06AF\u0627\u0647 \u0645\u0631\u0628\u0648\u0637\u0647'\"\n [glyph]=\"''\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n <fd-micro-process-flow-item>\n <div class=\"flow-item\">\n <!-- <fd-micro-process-flow-icon\n fd-micro-process-flow-focusable-item\n [glyph]=\"'less'\"\n ></fd-micro-process-flow-icon> -->\n <button\n [disabled]=\"true\"\n fd-button\n [fdType]=\"'transparent'\"\n [label]=\"'\u062A\u0639\u06CC\u06CC\u0646 \u0648\u0636\u0639\u06CC\u062A \u0635\u062F\u0648\u0631 \u0645\u062C\u0648\u0632'\"\n [glyph]=\"''\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n </fd-micro-process-flow>\n</div>\n", styles: [".showdetails .form-items{display:flex;justify-content:start;padding:0 1rem 1rem;width:100%;column-gap:2rem}.showdetails .form-items .fd-form-item bsu-column-renderer{font-size:1.275rem}.flow{max-width:100%}.flow-item{display:flex}.flow-item fd-micro-process-flow-icon{width:1.375rem;height:1.375rem}.flow-item h5{padding-right:.3rem}fd-info-label{font-size:1rem;width:auto;height:2rem;line-height:2rem}fd-info-label ::ng-deep span{line-height:2rem!important}.status-wrapper[deviceSize=m]{width:600px!important}.status-wrapper[deviceSize=s]{width:380px!important}\n"], dependencies: [{ kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i7.FormItemComponent, selector: "[fd-form-item]", inputs: ["isInline", "horizontal"] }, { kind: "component", type: i7.FormLabelComponent, selector: "[fd-form-label]", inputs: ["required", "colon", "checkbox", "radio", "alignLabelEnd", "inlineHelpTitle", "inlineHelpGlyph", "inlineHelpTriggers", "inlineHelpBodyPlacement", "inlineHelpPlacement", "id"] }, { kind: "component", type: i3$1.MicroProcessFlowComponent, selector: "fd-micro-process-flow", inputs: ["independentSteps", "transitionSpeed", "transitionTimingFunction"] }, { kind: "component", type: i3$1.MicroProcessFlowItemComponent, selector: "fd-micro-process-flow-item", inputs: ["state", "intermediate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bDetailsComponent, decorators: [{
|
|
1942
|
+
type: Component,
|
|
1943
|
+
args: [{ selector: 'bdc-g4b-details', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div #container></div>\n<!-- <fd-info-label [label]=\"'\u0648\u0636\u0639\u06CC\u062A \u062F\u0631\u062E\u0648\u0627\u0633\u062A'\" [color]=\"'1'\" [title]=\"'\u0648\u0636\u0639\u06CC\u062A \u062F\u0631\u062E\u0648\u0627\u0633\u062A'\"></fd-info-label> -->\n<div fd-form-item class=\"status-wrapper\" style=\"width: 100%; padding-bottom: 1rem\" [attr.deviceSize]=\"deviceSize\">\n <label fd-form-label>\u0648\u0636\u0639\u06CC\u062A \u062F\u0631\u062E\u0648\u0627\u0633\u062A </label>\n <fd-micro-process-flow class=\"flow\">\n <fd-micro-process-flow-item [state]=\"'positive'\">\n <div class=\"flow-item\">\n <!-- <fd-micro-process-flow-icon\n fd-micro-process-flow-focusable-item\n [glyph]=\"'accept'\"\n ></fd-micro-process-flow-icon> -->\n <!-- <h4 fd-title class=\"fd-object-number--informative\">\u0634\u0631\u0648\u0639 \u062F\u0631\u062E\u0648\u0627\u0633\u062A</h4> -->\n <button\n style=\"pointer-events: none; border: none\"\n fd-button\n [fdType]=\"'positive'\"\n [label]=\"'\u0634\u0631\u0648\u0639 \u062F\u0631\u062E\u0648\u0627\u0633\u062A'\"\n [glyph]=\"'accept'\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n <fd-micro-process-flow-item>\n <div class=\"flow-item\">\n <button fd-button [fdType]=\"'standard'\" [label]=\"'\u062A\u06A9\u0645\u06CC\u0644 \u0645\u062F\u0627\u0631\u06A9 \u062A\u0648\u0633\u0637 \u0645\u062A\u0642\u0627\u0636\u06CC'\" [glyph]=\"''\"></button>\n </div>\n </fd-micro-process-flow-item>\n <fd-micro-process-flow-item>\n <div class=\"flow-item\">\n <!-- <fd-micro-process-flow-icon\n fd-micro-process-flow-focusable-item\n [glyph]=\"'less'\"\n ></fd-micro-process-flow-icon> -->\n <button\n [disabled]=\"true\"\n fd-button\n [fdType]=\"'transparent'\"\n [label]=\"'\u062A\u0627\u06CC\u06CC\u062F \u0645\u062F\u0627\u0631\u06A9 \u062A\u0648\u0633\u0637 \u062F\u0633\u062A\u06AF\u0627\u0647 \u0645\u0631\u0628\u0648\u0637\u0647'\"\n [glyph]=\"''\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n <fd-micro-process-flow-item>\n <div class=\"flow-item\">\n <!-- <fd-micro-process-flow-icon\n fd-micro-process-flow-focusable-item\n [glyph]=\"'less'\"\n ></fd-micro-process-flow-icon> -->\n <button\n [disabled]=\"true\"\n fd-button\n [fdType]=\"'transparent'\"\n [label]=\"'\u062A\u0639\u06CC\u06CC\u0646 \u0648\u0636\u0639\u06CC\u062A \u0635\u062F\u0648\u0631 \u0645\u062C\u0648\u0632'\"\n [glyph]=\"''\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n </fd-micro-process-flow>\n</div>\n", styles: [".showdetails .form-items{display:flex;justify-content:start;padding:0 1rem 1rem;width:100%;column-gap:2rem}.showdetails .form-items .fd-form-item bsu-column-renderer{font-size:1.275rem}.flow{max-width:100%}.flow-item{display:flex}.flow-item fd-micro-process-flow-icon{width:1.375rem;height:1.375rem}.flow-item h5{padding-right:.3rem}fd-info-label{font-size:1rem;width:auto;height:2rem;line-height:2rem}fd-info-label ::ng-deep span{line-height:2rem!important}.status-wrapper[deviceSize=m]{width:600px!important}.status-wrapper[deviceSize=s]{width:380px!important}\n"] }]
|
|
1944
|
+
}], propDecorators: { _containerRef: [{
|
|
1945
|
+
type: ViewChild,
|
|
1946
|
+
args: ['container', { static: true, read: ViewContainerRef }]
|
|
1947
|
+
}] } });
|
|
1948
|
+
|
|
1949
|
+
class AvatarComponent extends BaseItemContentPropsComponent {
|
|
1950
|
+
ngOnInit() {
|
|
1951
|
+
var _a;
|
|
1952
|
+
super.ngOnInit();
|
|
1953
|
+
this.pictureId = (_a = this.mo[this.parameters.FieldName]) === null || _a === void 0 ? void 0 : _a.FileId;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
AvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: AvatarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1957
|
+
AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: AvatarComponent, selector: "bdc-avatar", usesInheritance: true, ngImport: i0, template: "<!-- <fd-avatar\n [placeholder]=\"!mo[parameters.FieldName]\"\n [size]=\"'xs'\"\n [glyph]=\"parameters.DefaultIcon\"\n [circle]=\"parameters.Circle\"\n [image]=\"pictureId | picFieldSrc: 'PictureFileInfo':mo.Id:column.FieldDefId\"\n alterIcon=\"alt|content|backup|default-icon\"\n></fd-avatar>\n\n\n<div class=\"avatar-data fd-card__header-text\">\n <bsu-column-renderer\n class=\"fd-card__title-area\"\n [mo]=\"mo\"\n [column]=\"column\"\n [editMode]=\"isChecked && inlineEditMode && allowInlineEdit\"\n [isChecked]=\"isChecked\"\n [isNewInlineMo]=\"isNewInlineMo\"\n [index]=\"index\"\n [rtl]=\"rtl\"\n [deviceName]=\"deviceName\"\n [formLayoutShowLabel]=\"false\"\n [deviceSize]=\"deviceSize\"\n ></bsu-column-renderer>\n <fd-text\n class=\"fd-card__subtitle-area\"\n *ngIf=\"parameters.Subtitle\"\n [text]=\"parameters.Subtitle | val: mo:true | bbbTranslate\"\n hyphenation=\"auto\"\n ></fd-text>\n <fd-text\n *ngIf=\"parameters.Description\"\n [text]=\"parameters.Description | val: mo:true | bbbTranslate\"\n hyphenation=\"auto\"\n ></fd-text>\n</div> -->\n\n<fd-card>\n <fd-card-header>\n <fd-avatar\n [placeholder]=\"!mo[parameters.FieldName]\"\n [size]=\"'xs'\"\n [glyph]=\"parameters.DefaultIcon\"\n [circle]=\"parameters.Circle\"\n [image]=\"pictureId | picFieldSrc: 'PictureFileInfo':mo.Id:column.FieldDefId\"\n alterIcon=\"alt|content|backup|default-icon\"\n ></fd-avatar>\n <h2 fd-card-title>\n {{ column.Name | val: mo:true | bbbTranslate }}\n </h2>\n <h3 fd-card-subtitle>{{ parameters.Subtitle | val: mo:true | bbbTranslate }}</h3>\n </fd-card-header>\n</fd-card>\n", styles: [":host{display:flex;align-items:start;column-gap:5px;padding:3px 0}.avatar-data{display:flex;flex-direction:column;row-gap:5px}fd-card{border:none;box-shadow:none;background:transparent!important}fd-card-header{padding:.2rem 0!important;border:none!important;background:transparent!important}fd-card-header:hover{background:transparent!important}\n"], dependencies: [{ kind: "component", type: i4$4.AvatarComponent, selector: "fd-avatar", inputs: ["class", "id", "ariaLabel", "ariaLabelledby", "label", "size", "glyph", "zoomGlyph", "circle", "transparent", "contain", "placeholder", "tile", "border", "colorAccent", "random", "clickable", "backgroundImage", "image", "alterIcon", "backupImage"], outputs: ["avatarClicked", "zoomGlyphClicked"] }, { kind: "component", type: i5$3.CardComponent, selector: "fd-card", inputs: ["badge", "isLoading", "cardType", "id", "role"] }, { kind: "component", type: i5$3.CardHeaderComponent, selector: "fd-card-header", inputs: ["interactive", "tabindex"] }, { kind: "directive", type: i5$3.CardTitleDirective, selector: "[fd-card-title]" }, { kind: "directive", type: i5$3.CardSubtitleDirective, selector: "[fd-card-subtitle]" }, { kind: "pipe", type: i1$2.MoValuePipe, name: "val" }, { kind: "pipe", type: i1$2.PictureFieldSourcePipe, name: "picFieldSrc" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
1959
|
+
type: Component,
|
|
1960
|
+
args: [{ selector: 'bdc-avatar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <fd-avatar\n [placeholder]=\"!mo[parameters.FieldName]\"\n [size]=\"'xs'\"\n [glyph]=\"parameters.DefaultIcon\"\n [circle]=\"parameters.Circle\"\n [image]=\"pictureId | picFieldSrc: 'PictureFileInfo':mo.Id:column.FieldDefId\"\n alterIcon=\"alt|content|backup|default-icon\"\n></fd-avatar>\n\n\n<div class=\"avatar-data fd-card__header-text\">\n <bsu-column-renderer\n class=\"fd-card__title-area\"\n [mo]=\"mo\"\n [column]=\"column\"\n [editMode]=\"isChecked && inlineEditMode && allowInlineEdit\"\n [isChecked]=\"isChecked\"\n [isNewInlineMo]=\"isNewInlineMo\"\n [index]=\"index\"\n [rtl]=\"rtl\"\n [deviceName]=\"deviceName\"\n [formLayoutShowLabel]=\"false\"\n [deviceSize]=\"deviceSize\"\n ></bsu-column-renderer>\n <fd-text\n class=\"fd-card__subtitle-area\"\n *ngIf=\"parameters.Subtitle\"\n [text]=\"parameters.Subtitle | val: mo:true | bbbTranslate\"\n hyphenation=\"auto\"\n ></fd-text>\n <fd-text\n *ngIf=\"parameters.Description\"\n [text]=\"parameters.Description | val: mo:true | bbbTranslate\"\n hyphenation=\"auto\"\n ></fd-text>\n</div> -->\n\n<fd-card>\n <fd-card-header>\n <fd-avatar\n [placeholder]=\"!mo[parameters.FieldName]\"\n [size]=\"'xs'\"\n [glyph]=\"parameters.DefaultIcon\"\n [circle]=\"parameters.Circle\"\n [image]=\"pictureId | picFieldSrc: 'PictureFileInfo':mo.Id:column.FieldDefId\"\n alterIcon=\"alt|content|backup|default-icon\"\n ></fd-avatar>\n <h2 fd-card-title>\n {{ column.Name | val: mo:true | bbbTranslate }}\n </h2>\n <h3 fd-card-subtitle>{{ parameters.Subtitle | val: mo:true | bbbTranslate }}</h3>\n </fd-card-header>\n</fd-card>\n", styles: [":host{display:flex;align-items:start;column-gap:5px;padding:3px 0}.avatar-data{display:flex;flex-direction:column;row-gap:5px}fd-card{border:none;box-shadow:none;background:transparent!important}fd-card-header{padding:.2rem 0!important;border:none!important;background:transparent!important}fd-card-header:hover{background:transparent!important}\n"] }]
|
|
1961
|
+
}] });
|
|
1962
|
+
|
|
1963
|
+
class G4bEstelamComponent extends BaseItemContentPropsComponent {
|
|
1964
|
+
constructor() {
|
|
1965
|
+
super(...arguments);
|
|
1966
|
+
this.natijeh = 1;
|
|
1967
|
+
this.options = ['رد استعلام', 'تایید استعلام', 'در انتظار پاسخ'];
|
|
1968
|
+
}
|
|
1969
|
+
ngOnInit() {
|
|
1970
|
+
super.ngOnInit();
|
|
1971
|
+
}
|
|
1972
|
+
onClick(e) {
|
|
1973
|
+
if (this.isChecked) {
|
|
1974
|
+
e.stopPropagation();
|
|
1975
|
+
e.preventDefault();
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
G4bEstelamComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bEstelamComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1980
|
+
G4bEstelamComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: G4bEstelamComponent, selector: "bdc-g4b-estelam", usesInheritance: true, ngImport: i0, template: "<div fd-form-item class=\"textarea\">\n <label fd-form-label for=\"input-2\">\u067E\u0627\u0633\u062E \u0627\u0633\u062A\u0639\u0644\u0627\u0645</label>\n <textarea fd-form-control style=\"height: 1.8rem\"></textarea>\n</div>\n\n<div fd-form-item>\n <label fd-form-label for=\"input-2\">\u0648\u0636\u0639\u06CC\u062A</label>\n <fd-segmented-button [(ngModel)]=\"natijeh\" (click)=\"onClick($event)\">\n <button fd-button [label]=\"'\u062F\u0631 \u0627\u0646\u062A\u0638\u0627\u0631 \u067E\u0627\u0633\u062E'\" value=\"1\" [fdType]=\"'standard'\"></button>\n <button fd-button [label]=\"'\u062A\u0627\u06CC\u06CC\u062F \u0627\u0633\u062A\u0639\u0644\u0627\u0645'\" value=\"2\" [fdType]=\"'positive'\"></button>\n <button fd-button [label]=\"'\u0631\u062F \u0627\u0633\u062A\u0639\u0644\u0627\u0645'\" value=\"3\" [fdType]=\"'negative'\"></button>\n </fd-segmented-button>\n</div>\n<!-- <div fd-form-item>\n <label fd-form-label for=\"input-2\">\u0648\u0636\u0639\u06CC\u062A</label>\n <fd-select placeholder=\"Select value\" stateMessage=\"Success message\" state=\"success\">\n <li fd-option *ngFor=\"let option of options\" [value]=\"option\">{{ option }}</li>\n </fd-select>\n</div> -->\n", styles: [":host{display:flex;column-gap:1rem;padding:1rem 0}fd-segmented-button{margin:.1875rem 0}.textarea{flex-grow:1}\n"], dependencies: [{ kind: "directive", type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i7.FormControlComponent, selector: "[fd-form-control]", inputs: ["state", "type", "class"] }, { kind: "directive", type: i7.TextareaFormControlDirective, selector: "textarea[fd-form-control]" }, { kind: "component", type: i7.FormItemComponent, selector: "[fd-form-item]", inputs: ["isInline", "horizontal"] }, { kind: "component", type: i7.FormLabelComponent, selector: "[fd-form-label]", inputs: ["required", "colon", "checkbox", "radio", "alignLabelEnd", "inlineHelpTitle", "inlineHelpGlyph", "inlineHelpTriggers", "inlineHelpBodyPlacement", "inlineHelpPlacement", "id"] }, { kind: "component", type: i4.SegmentedButtonComponent, selector: "fd-segmented-button", inputs: ["toggle"] }, { kind: "directive", type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bEstelamComponent, decorators: [{
|
|
1982
|
+
type: Component,
|
|
1983
|
+
args: [{ selector: 'bdc-g4b-estelam', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div fd-form-item class=\"textarea\">\n <label fd-form-label for=\"input-2\">\u067E\u0627\u0633\u062E \u0627\u0633\u062A\u0639\u0644\u0627\u0645</label>\n <textarea fd-form-control style=\"height: 1.8rem\"></textarea>\n</div>\n\n<div fd-form-item>\n <label fd-form-label for=\"input-2\">\u0648\u0636\u0639\u06CC\u062A</label>\n <fd-segmented-button [(ngModel)]=\"natijeh\" (click)=\"onClick($event)\">\n <button fd-button [label]=\"'\u062F\u0631 \u0627\u0646\u062A\u0638\u0627\u0631 \u067E\u0627\u0633\u062E'\" value=\"1\" [fdType]=\"'standard'\"></button>\n <button fd-button [label]=\"'\u062A\u0627\u06CC\u06CC\u062F \u0627\u0633\u062A\u0639\u0644\u0627\u0645'\" value=\"2\" [fdType]=\"'positive'\"></button>\n <button fd-button [label]=\"'\u0631\u062F \u0627\u0633\u062A\u0639\u0644\u0627\u0645'\" value=\"3\" [fdType]=\"'negative'\"></button>\n </fd-segmented-button>\n</div>\n<!-- <div fd-form-item>\n <label fd-form-label for=\"input-2\">\u0648\u0636\u0639\u06CC\u062A</label>\n <fd-select placeholder=\"Select value\" stateMessage=\"Success message\" state=\"success\">\n <li fd-option *ngFor=\"let option of options\" [value]=\"option\">{{ option }}</li>\n </fd-select>\n</div> -->\n", styles: [":host{display:flex;column-gap:1rem;padding:1rem 0}fd-segmented-button{margin:.1875rem 0}.textarea{flex-grow:1}\n"] }]
|
|
1984
|
+
}] });
|
|
1985
|
+
|
|
1986
|
+
class TimerCountDownComponent extends FieldBaseComponent {
|
|
1987
|
+
ngOnInit() {
|
|
1988
|
+
super.ngOnInit();
|
|
1989
|
+
this._setCountDown(this.value);
|
|
1990
|
+
}
|
|
1991
|
+
_setValue(value) {
|
|
1992
|
+
super._setValue(value);
|
|
1993
|
+
this._setCountDown(value);
|
|
1994
|
+
}
|
|
1995
|
+
_setCountDown(value) {
|
|
1996
|
+
const keysInValue = Object.keys(value);
|
|
1997
|
+
let _tempValue = value;
|
|
1998
|
+
if (keysInValue.length) {
|
|
1999
|
+
const findKeyDate = keysInValue.find((c) => !isNaN(Date.parse(value[c])));
|
|
2000
|
+
if (findKeyDate) {
|
|
2001
|
+
_tempValue = new Date(value[findKeyDate]);
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
const exp = this._dateService.getMoment(_tempValue);
|
|
2005
|
+
if (this._interval) {
|
|
2006
|
+
clearInterval(this._interval);
|
|
2007
|
+
this._interval = null;
|
|
2008
|
+
}
|
|
2009
|
+
this._interval = setInterval(() => {
|
|
2010
|
+
const now = this._dateService.getMoment(new Date());
|
|
2011
|
+
const diffDuration = this._dateService.duration(exp.diff(now));
|
|
2012
|
+
const month = diffDuration.months();
|
|
2013
|
+
const days = diffDuration.days();
|
|
2014
|
+
const hours = diffDuration.hours().toLocaleString('en-US', {
|
|
2015
|
+
minimumIntegerDigits: 2,
|
|
2016
|
+
useGrouping: false
|
|
2017
|
+
});
|
|
2018
|
+
const minutes = diffDuration.minutes().toLocaleString('en-US', {
|
|
2019
|
+
minimumIntegerDigits: 2,
|
|
2020
|
+
useGrouping: false
|
|
2021
|
+
});
|
|
2022
|
+
const seconds = diffDuration.seconds().toLocaleString('en-US', {
|
|
2023
|
+
minimumIntegerDigits: 2,
|
|
2024
|
+
useGrouping: false
|
|
2025
|
+
});
|
|
2026
|
+
this.countDownText = `
|
|
2027
|
+
${this._getMonthText(month)}
|
|
2028
|
+
${this._daysText(days)}
|
|
2029
|
+
${this._getTimeText(hours, minutes, seconds)}`;
|
|
2030
|
+
this._cdr.detectChanges();
|
|
2031
|
+
}, 1000);
|
|
2032
|
+
}
|
|
2033
|
+
_getMonthText(month) {
|
|
2034
|
+
return month > 0 ? `${month} ماه` : '';
|
|
2035
|
+
}
|
|
2036
|
+
_daysText(days) {
|
|
2037
|
+
return days > 0 ? `${days} روز` : '';
|
|
2038
|
+
}
|
|
2039
|
+
_getTimeText(hours, minutes, seconds) {
|
|
2040
|
+
return `${hours}:${minutes}:${seconds}`;
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
TimerCountDownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TimerCountDownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2044
|
+
TimerCountDownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TimerCountDownComponent, selector: "bdc-timer-count-down", providers: [
|
|
2045
|
+
{
|
|
2046
|
+
provide: DateService,
|
|
2047
|
+
useFactory: getDateService,
|
|
2048
|
+
deps: [LogService]
|
|
2049
|
+
}
|
|
2050
|
+
], usesInheritance: true, ngImport: i0, template: "<span>{{ countDownText }}</span>\n", styles: [":host{display:block;width:110px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TimerCountDownComponent, decorators: [{
|
|
2052
|
+
type: Component,
|
|
2053
|
+
args: [{ selector: 'bdc-timer-count-down', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
2054
|
+
{
|
|
2055
|
+
provide: DateService,
|
|
2056
|
+
useFactory: getDateService,
|
|
2057
|
+
deps: [LogService]
|
|
2058
|
+
}
|
|
2059
|
+
], template: "<span>{{ countDownText }}</span>\n", styles: [":host{display:block;width:110px}\n"] }]
|
|
2060
|
+
}] });
|
|
2061
|
+
|
|
2062
|
+
class MicroProccessFlowComponent extends BaseComponent {
|
|
2063
|
+
constructor() {
|
|
2064
|
+
super(...arguments);
|
|
2065
|
+
this.selectedChange = new EventEmitter();
|
|
2066
|
+
}
|
|
2067
|
+
ngOnInit() {
|
|
2068
|
+
super.ngOnInit();
|
|
2069
|
+
this._setIndex(this.selected, this.items);
|
|
2070
|
+
}
|
|
2071
|
+
onItemClick(item) {
|
|
2072
|
+
this.selectedChange.emit(item);
|
|
2073
|
+
}
|
|
2074
|
+
ngOnChanges(changes) {
|
|
2075
|
+
const { selected, items } = changes;
|
|
2076
|
+
if (selected && !selected.firstChange) {
|
|
2077
|
+
this._setIndex(selected.currentValue, this.items);
|
|
2078
|
+
}
|
|
2079
|
+
else if (items && !items.firstChange) {
|
|
2080
|
+
this._setIndex(this.selected, items.currentValue);
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
_setIndex(val, items) {
|
|
2084
|
+
this.selectedIndex = items.findIndex((c) => (this.idIskey ? c.id === val : c.label === val));
|
|
2085
|
+
}
|
|
2086
|
+
}
|
|
2087
|
+
MicroProccessFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProccessFlowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2088
|
+
MicroProccessFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: MicroProccessFlowComponent, selector: "bdc-micro-proccess-flow", inputs: { items: "items", selected: "selected", readonly: "readonly", idIskey: "idIskey" }, outputs: { selectedChange: "selectedChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<fd-micro-process-flow class=\"flow\" style=\"max-width: 100%\">\n <fd-micro-process-flow-item\n *ngFor=\"let item of items; let i = index\"\n [state]=\"i <= selectedIndex ? 'positive' : 'none'\"\n >\n <div class=\"flow-item\">\n <button\n *ngIf=\"selectedIndex > -1\"\n [class.reached]=\"i <= selectedIndex\"\n fd-button\n [fdType]=\"i <= selectedIndex ? 'positive' : i === selectedIndex + 1 ? 'standard' : 'transparent'\"\n [label]=\"item.label\"\n [glyph]=\"i <= selectedIndex ? 'accept' : null\"\n [disabled]=\"readonly || (i > selectedIndex + 1 && selectedIndex > -1)\"\n (click)=\"onItemClick(item)\"\n ></button>\n <button\n *ngIf=\"selectedIndex === -1\"\n [class.reached]=\"false\"\n fd-button\n [fdType]=\"'transparent'\"\n [label]=\"item.label\"\n [glyph]=\"null\"\n [disabled]=\"readonly\"\n (click)=\"onItemClick(item)\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n</fd-micro-process-flow>\n", styles: [".reached{pointer-events:none;border:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i3$1.MicroProcessFlowComponent, selector: "fd-micro-process-flow", inputs: ["independentSteps", "transitionSpeed", "transitionTimingFunction"] }, { kind: "component", type: i3$1.MicroProcessFlowItemComponent, selector: "fd-micro-process-flow-item", inputs: ["state", "intermediate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProccessFlowComponent, decorators: [{
|
|
2090
|
+
type: Component,
|
|
2091
|
+
args: [{ selector: 'bdc-micro-proccess-flow', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-micro-process-flow class=\"flow\" style=\"max-width: 100%\">\n <fd-micro-process-flow-item\n *ngFor=\"let item of items; let i = index\"\n [state]=\"i <= selectedIndex ? 'positive' : 'none'\"\n >\n <div class=\"flow-item\">\n <button\n *ngIf=\"selectedIndex > -1\"\n [class.reached]=\"i <= selectedIndex\"\n fd-button\n [fdType]=\"i <= selectedIndex ? 'positive' : i === selectedIndex + 1 ? 'standard' : 'transparent'\"\n [label]=\"item.label\"\n [glyph]=\"i <= selectedIndex ? 'accept' : null\"\n [disabled]=\"readonly || (i > selectedIndex + 1 && selectedIndex > -1)\"\n (click)=\"onItemClick(item)\"\n ></button>\n <button\n *ngIf=\"selectedIndex === -1\"\n [class.reached]=\"false\"\n fd-button\n [fdType]=\"'transparent'\"\n [label]=\"item.label\"\n [glyph]=\"null\"\n [disabled]=\"readonly\"\n (click)=\"onItemClick(item)\"\n ></button>\n </div>\n </fd-micro-process-flow-item>\n</fd-micro-process-flow>\n", styles: [".reached{pointer-events:none;border:none}\n"] }]
|
|
2092
|
+
}], propDecorators: { items: [{
|
|
2093
|
+
type: Input
|
|
2094
|
+
}], selected: [{
|
|
2095
|
+
type: Input
|
|
2096
|
+
}], readonly: [{
|
|
2097
|
+
type: Input
|
|
2098
|
+
}], idIskey: [{
|
|
2099
|
+
type: Input
|
|
2100
|
+
}], selectedChange: [{
|
|
2101
|
+
type: Output
|
|
2102
|
+
}] } });
|
|
2103
|
+
|
|
2104
|
+
class MoListToFlowItemPipe {
|
|
2105
|
+
constructor() { }
|
|
2106
|
+
transform(moList) {
|
|
2107
|
+
const flowItems = moList.map((item) => ({
|
|
2108
|
+
icon: '',
|
|
2109
|
+
id: item.Id,
|
|
2110
|
+
label: item.$Caption
|
|
2111
|
+
}));
|
|
2112
|
+
return flowItems;
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
MoListToFlowItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoListToFlowItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2116
|
+
MoListToFlowItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: MoListToFlowItemPipe, name: "moListToFlowItem" });
|
|
2117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoListToFlowItemPipe, decorators: [{
|
|
2118
|
+
type: Pipe,
|
|
2119
|
+
args: [{
|
|
2120
|
+
name: 'moListToFlowItem'
|
|
2121
|
+
}]
|
|
2122
|
+
}], ctorParameters: function () { return []; } });
|
|
2123
|
+
|
|
2124
|
+
class MoInfoMicroProccessFlowComponent extends UiMoInfoUlvComboComponent {
|
|
2125
|
+
ngOnInit() {
|
|
2126
|
+
super.ngOnInit();
|
|
2127
|
+
this._triggerClick('Normal');
|
|
2128
|
+
}
|
|
2129
|
+
onSelectedChange(item) {
|
|
2130
|
+
this._raiseValueChanged(item.label);
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
MoInfoMicroProccessFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoInfoMicroProccessFlowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2134
|
+
MoInfoMicroProccessFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: MoInfoMicroProccessFlowComponent, selector: "bdc-mo-info-micro-proccess-flow", usesInheritance: true, ngImport: i0, template: "<bdc-micro-proccess-flow\n [items]=\"(loading$ | async) === true | moInfoUlvMoList: isDataLoadedFirstTime:ulvAdapter:UlvUi | moListToFlowItem\"\n [selected]=\"value\"\n (selectedChange)=\"onSelectedChange($event)\"\n></bdc-micro-proccess-flow>\n", styles: [""], dependencies: [{ kind: "component", type: MicroProccessFlowComponent, selector: "bdc-micro-proccess-flow", inputs: ["items", "selected", "readonly", "idIskey"], outputs: ["selectedChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.MoInfoUlvMoListPipe, name: "moInfoUlvMoList" }, { kind: "pipe", type: MoListToFlowItemPipe, name: "moListToFlowItem" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoInfoMicroProccessFlowComponent, decorators: [{
|
|
2136
|
+
type: Component,
|
|
2137
|
+
args: [{ selector: 'bdc-mo-info-micro-proccess-flow', changeDetection: ChangeDetectionStrategy.OnPush, template: "<bdc-micro-proccess-flow\n [items]=\"(loading$ | async) === true | moInfoUlvMoList: isDataLoadedFirstTime:ulvAdapter:UlvUi | moListToFlowItem\"\n [selected]=\"value\"\n (selectedChange)=\"onSelectedChange($event)\"\n></bdc-micro-proccess-flow>\n" }]
|
|
2138
|
+
}] });
|
|
2139
|
+
|
|
2140
|
+
class DataSourceToFlowItemPipe {
|
|
2141
|
+
constructor() { }
|
|
2142
|
+
transform(datasource) {
|
|
2143
|
+
const flowItems = datasource.map((item) => ({
|
|
2144
|
+
icon: '',
|
|
2145
|
+
id: item.id,
|
|
2146
|
+
label: item.txt
|
|
2147
|
+
}));
|
|
2148
|
+
return flowItems;
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
DataSourceToFlowItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DataSourceToFlowItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2152
|
+
DataSourceToFlowItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: DataSourceToFlowItemPipe, name: "datasourceToFlowItem" });
|
|
2153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DataSourceToFlowItemPipe, decorators: [{
|
|
2154
|
+
type: Pipe,
|
|
2155
|
+
args: [{
|
|
2156
|
+
name: 'datasourceToFlowItem'
|
|
2157
|
+
}]
|
|
2158
|
+
}], ctorParameters: function () { return []; } });
|
|
2159
|
+
|
|
2160
|
+
class EnumInfoMicroProccessFlowComponent extends UiSimpleComboComponent {
|
|
2161
|
+
onSelectedChange(item) {
|
|
2162
|
+
this._handleValueChange(item.id);
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
EnumInfoMicroProccessFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EnumInfoMicroProccessFlowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2166
|
+
EnumInfoMicroProccessFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: EnumInfoMicroProccessFlowComponent, selector: "bdc-enum-info-micro-proccess-flow", usesInheritance: true, ngImport: i0, template: "<bdc-micro-proccess-flow\n [items]=\"context.store.data[context.store.root] | datasourceToFlowItem\"\n [selected]=\"value\"\n [idIskey]=\"true\"\n (selectedChange)=\"onSelectedChange($event)\"\n></bdc-micro-proccess-flow>\n", styles: [""], dependencies: [{ kind: "component", type: MicroProccessFlowComponent, selector: "bdc-micro-proccess-flow", inputs: ["items", "selected", "readonly", "idIskey"], outputs: ["selectedChange"] }, { kind: "pipe", type: DataSourceToFlowItemPipe, name: "datasourceToFlowItem" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EnumInfoMicroProccessFlowComponent, decorators: [{
|
|
2168
|
+
type: Component,
|
|
2169
|
+
args: [{ selector: 'bdc-enum-info-micro-proccess-flow', changeDetection: ChangeDetectionStrategy.OnPush, template: "<bdc-micro-proccess-flow\n [items]=\"context.store.data[context.store.root] | datasourceToFlowItem\"\n [selected]=\"value\"\n [idIskey]=\"true\"\n (selectedChange)=\"onSelectedChange($event)\"\n></bdc-micro-proccess-flow>\n" }]
|
|
2170
|
+
}] });
|
|
2171
|
+
|
|
2172
|
+
class UiPicturesCarouselComponent extends UiPicturesInfoComponent {
|
|
2173
|
+
}
|
|
2174
|
+
UiPicturesCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPicturesCarouselComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2175
|
+
UiPicturesCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: UiPicturesCarouselComponent, selector: "bdc-ui-pictures-carousel", providers: [UploadService], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"mediaData$ | async as mediaData; else loadingTpl\">\n <fd-carousel carouselIndicatorsOrientation=\"top\" width=\"100%\">\n <fd-carousel-item *ngFor=\"let media of mediaData; let i = index\">\n <img [imgLazy]=\"media.mediaUrl\" [src]=\"media.mediaUrl\" />\n </fd-carousel-item>\n </fd-carousel>\n</ng-container>\n<ng-template #loadingTpl>\n <div style=\"width: 100%; position: relative\">\n <bsu-mask></bsu-mask>\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.ImageLazyDirective, selector: "[imgLazy]", inputs: ["auto", "threshold", "imgLazy"], outputs: ["imageLoaded"] }, { kind: "component", type: i3$3.MaskComponent, selector: "bsu-mask", inputs: ["size", "marginTop"] }, { kind: "component", type: i4$5.CarouselComponent, selector: "fd-carousel", inputs: ["id", "ariaLabel", "ariaLabelledBy", "ariaDescribedBy", "pageIndicatorsOrientation", "height", "width", "loop", "leftNavigationBtnLabel", "rightNavigationBtnLabel", "navigation", "navigatorInPageIndicator", "numericIndicator", "pageIndicatorContainer", "pageIndicator", "resourceStrings", "slideTransitionDuration", "swipeEnabled", "vertical", "visibleSlidesCount"], outputs: ["slideChange"] }, { kind: "component", type: i4$5.CarouselItemComponent, selector: "fd-carousel-item", inputs: ["id", "ariaLabel", "ariaLabelledBy", "ariaDescribedBy", "loading", "title", "initialHeight", "initialWidth", "value"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPicturesCarouselComponent, decorators: [{
|
|
2177
|
+
type: Component,
|
|
2178
|
+
args: [{ selector: 'bdc-ui-pictures-carousel', providers: [UploadService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"mediaData$ | async as mediaData; else loadingTpl\">\n <fd-carousel carouselIndicatorsOrientation=\"top\" width=\"100%\">\n <fd-carousel-item *ngFor=\"let media of mediaData; let i = index\">\n <img [imgLazy]=\"media.mediaUrl\" [src]=\"media.mediaUrl\" />\n </fd-carousel-item>\n </fd-carousel>\n</ng-container>\n<ng-template #loadingTpl>\n <div style=\"width: 100%; position: relative\">\n <bsu-mask></bsu-mask>\n </div>\n</ng-template>\n" }]
|
|
2179
|
+
}] });
|
|
2180
|
+
|
|
2181
|
+
class UiNumRateComponent extends UiNumIntUiComponent {
|
|
2182
|
+
onRatingChanged(val) {
|
|
2183
|
+
this.value = val;
|
|
2184
|
+
this.valueChange.emit(this.value);
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
UiNumRateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiNumRateComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2188
|
+
UiNumRateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: UiNumRateComponent, selector: "bdc-ui-num-rate", usesInheritance: true, ngImport: i0, template: "<fd-rating-indicator\n [ariaLabel]=\"Setting.NullText || ''\"\n [size]=\"parameters?.Size$Caption\"\n [value]=\"value\"\n [disabled]=\"(disableOrReadonly$ | async) === true\"\n [displayMode]=\"parameters?.DisplayMode\"\n [dynamicTextIndicator]=\"parameters?.TextIndicator\"\n (ratingChanged)=\"onRatingChanged($event)\"\n></fd-rating-indicator>\n", styles: [""], dependencies: [{ kind: "component", type: i1$4.RatingIndicatorComponent, selector: "fd-rating-indicator", inputs: ["class", "name", "ariaLabel", "ariaLabelledBy", "disabled", "displayMode", "indicatorCapacity", "allowHalves", "value", "totalRatings", "ratingAverage", "ratings", "displayAllRatings", "ratedIcon", "unratedIcon", "size", "dynamicTextIndicator"], outputs: ["ratingChanged"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiNumRateComponent, decorators: [{
|
|
2190
|
+
type: Component,
|
|
2191
|
+
args: [{ selector: 'bdc-ui-num-rate', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-rating-indicator\n [ariaLabel]=\"Setting.NullText || ''\"\n [size]=\"parameters?.Size$Caption\"\n [value]=\"value\"\n [disabled]=\"(disableOrReadonly$ | async) === true\"\n [displayMode]=\"parameters?.DisplayMode\"\n [dynamicTextIndicator]=\"parameters?.TextIndicator\"\n (ratingChanged)=\"onRatingChanged($event)\"\n></fd-rating-indicator>\n" }]
|
|
2192
|
+
}] });
|
|
2193
|
+
|
|
2194
|
+
const components = [
|
|
2195
|
+
LoginFormComponent,
|
|
2196
|
+
LoginSocialConncetionsComponent,
|
|
2197
|
+
UiPersonComponent,
|
|
2198
|
+
BarcodeReaderComponent,
|
|
2199
|
+
BarcodeReaderDialogComponent,
|
|
2200
|
+
BarcodeReaderVideoComponent,
|
|
2201
|
+
SettingFormComponent,
|
|
2202
|
+
MicroProcessFlowViewComponent,
|
|
2203
|
+
UiEnumSegmentedButtonComponent,
|
|
2204
|
+
TabProcessViewComponent,
|
|
2205
|
+
UiTextFieldSearchComponent,
|
|
2206
|
+
ServiceDeskHeaderComponent,
|
|
2207
|
+
CardContentImageAndTitleComponent,
|
|
2208
|
+
CardHeaderLogoTitleSubtitleComponent,
|
|
2209
|
+
FormContentQuickViewComponent,
|
|
2210
|
+
ServiceDeskServcieDetailComponent,
|
|
2211
|
+
ServiceDeskViewOfServicesComponent,
|
|
2212
|
+
ServiceDeskCardContentMojavezhayAkhzShodeComponent,
|
|
2213
|
+
CardHeaderBigImageTitleAndSubtitleComponent,
|
|
2214
|
+
ServiceDeskFormLayoutContentMojavezComponent,
|
|
2215
|
+
UlvContextMenuItemShowFileContentComponent,
|
|
2216
|
+
ResendVerificationCodeComponent,
|
|
2217
|
+
CheckboxButtonComponent,
|
|
2218
|
+
ReportTabViewComponent,
|
|
2219
|
+
ReportLineChartViewComponent,
|
|
2220
|
+
CardHeaderKpiComponent,
|
|
2221
|
+
CardContentLineChartComponent,
|
|
2222
|
+
FormChartContentComponent,
|
|
2223
|
+
TableViewVerticalColumnsComponent,
|
|
2224
|
+
QueryStringObservableComponent,
|
|
2225
|
+
QueryStringFormObservableComponent,
|
|
2226
|
+
G4bDetailsComponent,
|
|
2227
|
+
AvatarComponent,
|
|
2228
|
+
G4bEstelamComponent,
|
|
2229
|
+
TimerCountDownComponent,
|
|
2230
|
+
MoInfoMicroProccessFlowComponent,
|
|
2231
|
+
MicroProccessFlowComponent,
|
|
2232
|
+
EnumInfoMicroProccessFlowComponent,
|
|
2233
|
+
UiPicturesCarouselComponent,
|
|
2234
|
+
UiNumRateComponent
|
|
2235
|
+
];
|
|
2236
|
+
const pipes = [UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe];
|
|
2237
|
+
class BarsaDevelopComponentsModule extends BaseModule {
|
|
2238
|
+
constructor(dcm, cfr) {
|
|
2239
|
+
super(dcm, cfr, 'BarsaDevelopComponentsModule');
|
|
2240
|
+
this.dcm = dcm;
|
|
2241
|
+
this.cfr = cfr;
|
|
2242
|
+
this.dynamicComponents = [...components];
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
BarsaDevelopComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, deps: [{ token: i1$2.DynamicComponentService }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2246
|
+
BarsaDevelopComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, declarations: [LoginFormComponent,
|
|
2247
|
+
LoginSocialConncetionsComponent,
|
|
2248
|
+
UiPersonComponent,
|
|
2249
|
+
BarcodeReaderComponent,
|
|
2250
|
+
BarcodeReaderDialogComponent,
|
|
2251
|
+
BarcodeReaderVideoComponent,
|
|
2252
|
+
SettingFormComponent,
|
|
2253
|
+
MicroProcessFlowViewComponent,
|
|
2254
|
+
UiEnumSegmentedButtonComponent,
|
|
2255
|
+
TabProcessViewComponent,
|
|
2256
|
+
UiTextFieldSearchComponent,
|
|
2257
|
+
ServiceDeskHeaderComponent,
|
|
2258
|
+
CardContentImageAndTitleComponent,
|
|
2259
|
+
CardHeaderLogoTitleSubtitleComponent,
|
|
2260
|
+
FormContentQuickViewComponent,
|
|
2261
|
+
ServiceDeskServcieDetailComponent,
|
|
2262
|
+
ServiceDeskViewOfServicesComponent,
|
|
2263
|
+
ServiceDeskCardContentMojavezhayAkhzShodeComponent,
|
|
2264
|
+
CardHeaderBigImageTitleAndSubtitleComponent,
|
|
2265
|
+
ServiceDeskFormLayoutContentMojavezComponent,
|
|
2266
|
+
UlvContextMenuItemShowFileContentComponent,
|
|
2267
|
+
ResendVerificationCodeComponent,
|
|
2268
|
+
CheckboxButtonComponent,
|
|
2269
|
+
ReportTabViewComponent,
|
|
2270
|
+
ReportLineChartViewComponent,
|
|
2271
|
+
CardHeaderKpiComponent,
|
|
2272
|
+
CardContentLineChartComponent,
|
|
2273
|
+
FormChartContentComponent,
|
|
2274
|
+
TableViewVerticalColumnsComponent,
|
|
2275
|
+
QueryStringObservableComponent,
|
|
2276
|
+
QueryStringFormObservableComponent,
|
|
2277
|
+
G4bDetailsComponent,
|
|
2278
|
+
AvatarComponent,
|
|
2279
|
+
G4bEstelamComponent,
|
|
2280
|
+
TimerCountDownComponent,
|
|
2281
|
+
MoInfoMicroProccessFlowComponent,
|
|
2282
|
+
MicroProccessFlowComponent,
|
|
2283
|
+
EnumInfoMicroProccessFlowComponent,
|
|
2284
|
+
UiPicturesCarouselComponent,
|
|
2285
|
+
UiNumRateComponent, UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe], imports: [CommonModule,
|
|
2286
|
+
BarsaNovinRayCoreModule,
|
|
2287
|
+
ReactiveFormsModule,
|
|
2288
|
+
BarsaSapUiModule,
|
|
2289
|
+
BarsaEchartsModule,
|
|
2290
|
+
BarsaTilesModule,
|
|
2291
|
+
FundamentalNgxCoreModule,
|
|
2292
|
+
FundamentalNgxPlatformModule,
|
|
2293
|
+
FormsModule], exports: [LoginFormComponent,
|
|
2294
|
+
LoginSocialConncetionsComponent,
|
|
2295
|
+
UiPersonComponent,
|
|
2296
|
+
BarcodeReaderComponent,
|
|
2297
|
+
BarcodeReaderDialogComponent,
|
|
2298
|
+
BarcodeReaderVideoComponent,
|
|
2299
|
+
SettingFormComponent,
|
|
2300
|
+
MicroProcessFlowViewComponent,
|
|
2301
|
+
UiEnumSegmentedButtonComponent,
|
|
2302
|
+
TabProcessViewComponent,
|
|
2303
|
+
UiTextFieldSearchComponent,
|
|
2304
|
+
ServiceDeskHeaderComponent,
|
|
2305
|
+
CardContentImageAndTitleComponent,
|
|
2306
|
+
CardHeaderLogoTitleSubtitleComponent,
|
|
2307
|
+
FormContentQuickViewComponent,
|
|
2308
|
+
ServiceDeskServcieDetailComponent,
|
|
2309
|
+
ServiceDeskViewOfServicesComponent,
|
|
2310
|
+
ServiceDeskCardContentMojavezhayAkhzShodeComponent,
|
|
2311
|
+
CardHeaderBigImageTitleAndSubtitleComponent,
|
|
2312
|
+
ServiceDeskFormLayoutContentMojavezComponent,
|
|
2313
|
+
UlvContextMenuItemShowFileContentComponent,
|
|
2314
|
+
ResendVerificationCodeComponent,
|
|
2315
|
+
CheckboxButtonComponent,
|
|
2316
|
+
ReportTabViewComponent,
|
|
2317
|
+
ReportLineChartViewComponent,
|
|
2318
|
+
CardHeaderKpiComponent,
|
|
2319
|
+
CardContentLineChartComponent,
|
|
2320
|
+
FormChartContentComponent,
|
|
2321
|
+
TableViewVerticalColumnsComponent,
|
|
2322
|
+
QueryStringObservableComponent,
|
|
2323
|
+
QueryStringFormObservableComponent,
|
|
2324
|
+
G4bDetailsComponent,
|
|
2325
|
+
AvatarComponent,
|
|
2326
|
+
G4bEstelamComponent,
|
|
2327
|
+
TimerCountDownComponent,
|
|
2328
|
+
MoInfoMicroProccessFlowComponent,
|
|
2329
|
+
MicroProccessFlowComponent,
|
|
2330
|
+
EnumInfoMicroProccessFlowComponent,
|
|
2331
|
+
UiPicturesCarouselComponent,
|
|
2332
|
+
UiNumRateComponent] });
|
|
2333
|
+
BarsaDevelopComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, providers: [UserMediaBaseService, WebBarcodeService], imports: [CommonModule,
|
|
2334
|
+
BarsaNovinRayCoreModule,
|
|
2335
|
+
ReactiveFormsModule,
|
|
2336
|
+
BarsaSapUiModule,
|
|
2337
|
+
BarsaEchartsModule,
|
|
2338
|
+
BarsaTilesModule,
|
|
2339
|
+
FundamentalNgxCoreModule,
|
|
2340
|
+
FundamentalNgxPlatformModule,
|
|
2341
|
+
FormsModule] });
|
|
2342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, decorators: [{
|
|
2343
|
+
type: NgModule,
|
|
2344
|
+
args: [{
|
|
2345
|
+
declarations: [...components, ...pipes],
|
|
2346
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
|
|
2347
|
+
imports: [
|
|
2348
|
+
CommonModule,
|
|
2349
|
+
BarsaNovinRayCoreModule,
|
|
2350
|
+
ReactiveFormsModule,
|
|
2351
|
+
BarsaSapUiModule,
|
|
2352
|
+
BarsaEchartsModule,
|
|
2353
|
+
BarsaTilesModule,
|
|
2354
|
+
FundamentalNgxCoreModule,
|
|
2355
|
+
FundamentalNgxPlatformModule,
|
|
2356
|
+
FormsModule
|
|
2357
|
+
],
|
|
2358
|
+
providers: [UserMediaBaseService, WebBarcodeService],
|
|
2359
|
+
exports: [...components]
|
|
2360
|
+
}]
|
|
2361
|
+
}], ctorParameters: function () { return [{ type: i1$2.DynamicComponentService }, { type: i0.ComponentFactoryResolver }]; } });
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Generated bundle index. Do not edit.
|
|
2365
|
+
*/
|
|
2366
|
+
|
|
2367
|
+
export { AvatarComponent, BarcodeFormatPipe, BarcodeReaderComponent, BarcodeReaderDialogComponent, BarcodeReaderVideoComponent, BarsaDevelopComponentsModule, CardContentImageAndTitleComponent, CardContentLineChartComponent, CardHeaderBigImageTitleAndSubtitleComponent, CardHeaderKpiComponent, CardHeaderLogoTitleSubtitleComponent, CheckboxButtonComponent, EnumInfoMicroProccessFlowComponent, FormChartContentComponent, FormContentQuickViewComponent, G4bDetailsComponent, G4bEstelamComponent, LoginFormComponent, LoginSocialConncetionsComponent, MicroProccessFlowComponent, MicroProcessFlowViewComponent, MoInfoMicroProccessFlowComponent, QueryStringFormObservableComponent, QueryStringObservableComponent, ReportLineChartViewComponent, ReportTabViewComponent, ResendVerificationCodeComponent, ServiceDeskCardContentMojavezhayAkhzShodeComponent, ServiceDeskFormLayoutContentMojavezComponent, ServiceDeskHeaderComponent, ServiceDeskServcieDetailComponent, ServiceDeskViewOfServicesComponent, SettingFormComponent, TabProcessViewComponent, TableViewVerticalColumnsComponent, TimerCountDownComponent, UiEnumSegmentedButtonComponent, UiNumRateComponent, UiPersonComponent, UiPicturesCarouselComponent, UiTextFieldSearchComponent, UlvContextMenuItemShowFileContentComponent };
|
|
2368
|
+
//# sourceMappingURL=barsa-develop-components.mjs.map
|