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.
Files changed (108) hide show
  1. package/README.md +25 -0
  2. package/esm2020/barsa-develop-components.mjs +5 -0
  3. package/esm2020/lib/avatar/avatar.component.mjs +19 -0
  4. package/esm2020/lib/barcode-format-pipe.mjs +24 -0
  5. package/esm2020/lib/barcode-reader/barcode-reader.component.mjs +64 -0
  6. package/esm2020/lib/barcode-reader-dialog/barcode-reader-dialog.component.mjs +82 -0
  7. package/esm2020/lib/barcode-reader-video/barcode-reader-video.component.mjs +66 -0
  8. package/esm2020/lib/barcode.service.mjs +330 -0
  9. package/esm2020/lib/barsa-develop-components.module.mjs +224 -0
  10. package/esm2020/lib/card-content-image-and-title/card-content-image-and-title.component.mjs +50 -0
  11. package/esm2020/lib/card-content-line-chart/card-content-line-chart.component.mjs +38 -0
  12. package/esm2020/lib/card-header-big-image-title-and-subtitle/card-header-big-image-title-and-subtitle.component.mjs +20 -0
  13. package/esm2020/lib/card-header-kpi/card-header-kpi.component.mjs +36 -0
  14. package/esm2020/lib/card-header-logo-title-subtitle/card-header-logo-title-subtitle.component.mjs +46 -0
  15. package/esm2020/lib/checkbox-button/checkbox-button.component.mjs +23 -0
  16. package/esm2020/lib/enum-info-micro-proccess-flow/enum-info-micro-proccess-flow.component.mjs +17 -0
  17. package/esm2020/lib/form-chart-content/form-chart-content.component.mjs +38 -0
  18. package/esm2020/lib/form-content-quick-view/form-content-quick-view.component.mjs +51 -0
  19. package/esm2020/lib/g4b-details/g4b-details.component.mjs +28 -0
  20. package/esm2020/lib/g4b-estelam/g4b-estelam.component.mjs +30 -0
  21. package/esm2020/lib/login-form/login-form.component.mjs +49 -0
  22. package/esm2020/lib/login-social-conncetions/login-social-conncetions.component.mjs +30 -0
  23. package/esm2020/lib/micro-proccess-flow/micro-proccess-flow.component.mjs +48 -0
  24. package/esm2020/lib/micro-process-flow-view/micro-process-flow-view.component.mjs +24 -0
  25. package/esm2020/lib/mo-info-micro-proccess-flow/mo-info-micro-proccess-flow.component.mjs +23 -0
  26. package/esm2020/lib/models/models.mjs +2 -0
  27. package/esm2020/lib/models/person.mjs +2 -0
  28. package/esm2020/lib/pipes/datasource-to-flow-item.mjs +22 -0
  29. package/esm2020/lib/pipes/index.mjs +3 -0
  30. package/esm2020/lib/pipes/mo-list-to-flow-item.pipe.mjs +22 -0
  31. package/esm2020/lib/query-string-form-observable/query-string-form-observable.component.mjs +37 -0
  32. package/esm2020/lib/query-string-observable/query-string-observable.component.mjs +22 -0
  33. package/esm2020/lib/report-line-chart-view/report-line-chart-view.component.mjs +13 -0
  34. package/esm2020/lib/report-tab-view/report-tab-view.component.mjs +27 -0
  35. package/esm2020/lib/resend-verification-code/resend-verification-code.component.mjs +59 -0
  36. package/esm2020/lib/service-desk-card-content-mojavezhay-akhz-shode/service-desk-card-content-mojavezhay-akhz-shode.component.mjs +28 -0
  37. package/esm2020/lib/service-desk-form-layout-content-mojavez/service-desk-form-layout-content-mojavez.component.mjs +110 -0
  38. package/esm2020/lib/service-desk-header/service-desk-header.component.mjs +229 -0
  39. package/esm2020/lib/service-desk-servcie-detail/service-desk-servcie-detail.component.mjs +147 -0
  40. package/esm2020/lib/service-desk-view-of-services/service-desk-view-of-services.component.mjs +22 -0
  41. package/esm2020/lib/setting-form/setting-form.component.mjs +66 -0
  42. package/esm2020/lib/tab-process-view/tab-process-view.component.mjs +41 -0
  43. package/esm2020/lib/table-view-vertical-columns/table-view-vertical-columns.component.mjs +15 -0
  44. package/esm2020/lib/timer-count-down/timer-count-down.component.mjs +79 -0
  45. package/esm2020/lib/ui-enum-segmented-button/ui-enum-segmented-button.component.mjs +25 -0
  46. package/esm2020/lib/ui-num-rate/ui-num-rate.component.mjs +18 -0
  47. package/esm2020/lib/ui-person/ui-person.component.mjs +160 -0
  48. package/esm2020/lib/ui-person/ui-person.pipe.mjs +40 -0
  49. package/esm2020/lib/ui-pictures-carousel/ui-pictures-carousel.component.mjs +17 -0
  50. package/esm2020/lib/ui-text-field-search/ui-text-field-search.component.mjs +30 -0
  51. package/esm2020/lib/ulv-context-menu-item-show-file-content/ulv-context-menu-item-show-file-content.component.mjs +70 -0
  52. package/esm2020/public-api.mjs +47 -0
  53. package/fesm2015/barsa-develop-components.mjs +2368 -0
  54. package/fesm2015/barsa-develop-components.mjs.map +1 -0
  55. package/fesm2020/barsa-develop-components.mjs +2344 -0
  56. package/fesm2020/barsa-develop-components.mjs.map +1 -0
  57. package/index.d.ts +5 -0
  58. package/lib/avatar/avatar.component.d.ts +9 -0
  59. package/lib/barcode-format-pipe.d.ts +7 -0
  60. package/lib/barcode-reader/barcode-reader.component.d.ts +19 -0
  61. package/lib/barcode-reader-dialog/barcode-reader-dialog.component.d.ts +32 -0
  62. package/lib/barcode-reader-video/barcode-reader-video.component.d.ts +22 -0
  63. package/lib/barcode.service.d.ts +98 -0
  64. package/lib/barsa-develop-components.module.d.ts +94 -0
  65. package/lib/card-content-image-and-title/card-content-image-and-title.component.d.ts +21 -0
  66. package/lib/card-content-line-chart/card-content-line-chart.component.d.ts +9 -0
  67. package/lib/card-header-big-image-title-and-subtitle/card-header-big-image-title-and-subtitle.component.d.ts +6 -0
  68. package/lib/card-header-kpi/card-header-kpi.component.d.ts +14 -0
  69. package/lib/card-header-logo-title-subtitle/card-header-logo-title-subtitle.component.d.ts +23 -0
  70. package/lib/checkbox-button/checkbox-button.component.d.ts +13 -0
  71. package/lib/enum-info-micro-proccess-flow/enum-info-micro-proccess-flow.component.d.ts +8 -0
  72. package/lib/form-chart-content/form-chart-content.component.d.ts +9 -0
  73. package/lib/form-content-quick-view/form-content-quick-view.component.d.ts +13 -0
  74. package/lib/g4b-details/g4b-details.component.d.ts +9 -0
  75. package/lib/g4b-estelam/g4b-estelam.component.d.ts +11 -0
  76. package/lib/login-form/login-form.component.d.ts +15 -0
  77. package/lib/login-social-conncetions/login-social-conncetions.component.d.ts +12 -0
  78. package/lib/micro-proccess-flow/micro-proccess-flow.component.d.ts +22 -0
  79. package/lib/micro-process-flow-view/micro-process-flow-view.component.d.ts +14 -0
  80. package/lib/mo-info-micro-proccess-flow/mo-info-micro-proccess-flow.component.d.ts +9 -0
  81. package/lib/models/models.d.ts +19 -0
  82. package/lib/models/person.d.ts +10 -0
  83. package/lib/pipes/datasource-to-flow-item.d.ts +10 -0
  84. package/lib/pipes/index.d.ts +2 -0
  85. package/lib/pipes/mo-list-to-flow-item.pipe.d.ts +10 -0
  86. package/lib/query-string-form-observable/query-string-form-observable.component.d.ts +13 -0
  87. package/lib/query-string-observable/query-string-observable.component.d.ts +9 -0
  88. package/lib/report-line-chart-view/report-line-chart-view.component.d.ts +7 -0
  89. package/lib/report-tab-view/report-tab-view.component.d.ts +15 -0
  90. package/lib/resend-verification-code/resend-verification-code.component.d.ts +18 -0
  91. package/lib/service-desk-card-content-mojavezhay-akhz-shode/service-desk-card-content-mojavezhay-akhz-shode.component.d.ts +15 -0
  92. package/lib/service-desk-form-layout-content-mojavez/service-desk-form-layout-content-mojavez.component.d.ts +26 -0
  93. package/lib/service-desk-header/service-desk-header.component.d.ts +57 -0
  94. package/lib/service-desk-servcie-detail/service-desk-servcie-detail.component.d.ts +39 -0
  95. package/lib/service-desk-view-of-services/service-desk-view-of-services.component.d.ts +12 -0
  96. package/lib/setting-form/setting-form.component.d.ts +23 -0
  97. package/lib/tab-process-view/tab-process-view.component.d.ts +19 -0
  98. package/lib/table-view-vertical-columns/table-view-vertical-columns.component.d.ts +6 -0
  99. package/lib/timer-count-down/timer-count-down.component.d.ts +15 -0
  100. package/lib/ui-enum-segmented-button/ui-enum-segmented-button.component.d.ts +9 -0
  101. package/lib/ui-num-rate/ui-num-rate.component.d.ts +8 -0
  102. package/lib/ui-person/ui-person.component.d.ts +31 -0
  103. package/lib/ui-person/ui-person.pipe.d.ts +7 -0
  104. package/lib/ui-pictures-carousel/ui-pictures-carousel.component.d.ts +6 -0
  105. package/lib/ui-text-field-search/ui-text-field-search.component.d.ts +14 -0
  106. package/lib/ulv-context-menu-item-show-file-content/ulv-context-menu-item-show-file-content.component.d.ts +25 -0
  107. package/package.json +31 -0
  108. package/public-api.d.ts +43 -0
@@ -0,0 +1,2344 @@
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 { NotFoundException, ChecksumException, FormatException, DecodeHintType, BarcodeFormat } from '@zxing/library';
25
+ import { BrowserMultiFormatReader, BrowserCodeReader } from '@zxing/browser';
26
+ import * as i6 from '@fundamental-ngx/core/bar';
27
+ import * as i5$2 from '@fundamental-ngx/core/dialog';
28
+ import * as i6$1 from '@fundamental-ngx/core/title';
29
+ import * as i12 from '@fundamental-ngx/core/utils';
30
+ import * as i8 from '@fundamental-ngx/core/select';
31
+ import * as i3$4 from '@fundamental-ngx/platform/form';
32
+ import * as i4$1 from '@fundamental-ngx/core/link';
33
+ import * as i5$3 from '@fundamental-ngx/core/card';
34
+ import * as i7 from '@fundamental-ngx/core/form';
35
+ import * as i3$5 from '@fundamental-ngx/core/icon';
36
+ import * as i9 from '@fundamental-ngx/core/list';
37
+ import * as i13 from '@fundamental-ngx/core/popover';
38
+ import * as i4$2 from '@fundamental-ngx/core/quick-view';
39
+ import * as i15 from '@fundamental-ngx/core/table';
40
+ import * as i5$4 from '@fundamental-ngx/core/layout-grid';
41
+ import * as i2$3 from 'barsa-tiles';
42
+ import { TilesViewerContainerComponent, TilesViewerService, TilesViewerGroupComponent, BarsaTilesModule } from 'barsa-tiles';
43
+ import * as i4$3 from '@angular/router';
44
+ import * as i4$4 from '@fundamental-ngx/core/avatar';
45
+ import * as i7$1 from '@fundamental-ngx/core/checkbox';
46
+ import * as i3$6 from '@fundamental-ngx/core/dynamic-page';
47
+ import * as i3$7 from '@angular/platform-browser';
48
+ import * as i2$4 from 'barsa-echarts';
49
+ import { BarsaEchartsModule } from 'barsa-echarts';
50
+ import * as i7$2 from '@fundamental-ngx/core/object-status';
51
+ import * as i4$5 from '@fundamental-ngx/core/carousel';
52
+ import * as i1$4 from '@fundamental-ngx/core/rating-indicator';
53
+ import { FundamentalNgxPlatformModule } from '@fundamental-ngx/platform';
54
+
55
+ class UiTextFieldSearchComponent extends DeviceInfoFieldBaseComponent {
56
+ get MinSize() {
57
+ // this call from outside.corejs
58
+ return { width: 0, height: 30 };
59
+ }
60
+ onSearchSubmit($event) {
61
+ this._valueChange($event.text);
62
+ }
63
+ _valueChange(value) {
64
+ this.value = value;
65
+ this.valueChange.emit(this.value);
66
+ }
67
+ }
68
+ UiTextFieldSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiTextFieldSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
69
+ 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 });
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiTextFieldSearchComponent, decorators: [{
71
+ type: Component,
72
+ 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" }]
73
+ }], propDecorators: { value: [{
74
+ type: Input
75
+ }], MinSize: [{
76
+ type: Input
77
+ }] } });
78
+
79
+ class TabProcessViewComponent extends ReportViewBaseComponent {
80
+ ngOnInit() {
81
+ super.ngOnInit();
82
+ this.arrowRight = this.rtl ? 'navigation-left-arrow' : 'navigation-right-arrow';
83
+ this.fieldTitle = this.viewSetting.FieldTitle;
84
+ this.fieldSubtitle = this.viewSetting.FieldSubtitle;
85
+ this.fieldIcon = this.viewSetting.FieldIcon;
86
+ this.defaultIcon = this.viewSetting.DefaultIcon;
87
+ this._ulvMainService.moDataList$.pipe(takeUntil(this._onDestroy$)).subscribe((moDataList) => {
88
+ if (moDataList) {
89
+ const selectedIndex = moDataList.findIndex((c) => c.$IsChecked);
90
+ if (this.tabList && selectedIndex > -1) {
91
+ setTimeout(() => this.tabList.tabPanels.toArray()[selectedIndex].open(true), 0);
92
+ }
93
+ }
94
+ });
95
+ }
96
+ onTabChange(e) {
97
+ const index = this.moDataList.findIndex((c) => c.Id === e.id);
98
+ const mo = this.moDataList[index];
99
+ super.onRowCheck({ mo, index });
100
+ }
101
+ }
102
+ TabProcessViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TabProcessViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
103
+ 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 });
104
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TabProcessViewComponent, decorators: [{
105
+ type: Component,
106
+ 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" }]
107
+ }], propDecorators: { tabList: [{
108
+ type: ViewChild,
109
+ args: [TabListComponent]
110
+ }] } });
111
+
112
+ class UiEnumSegmentedButtonComponent extends FieldBaseComponent {
113
+ onValueChange(value) {
114
+ const selectedValue = value;
115
+ this.setValue(selectedValue);
116
+ }
117
+ setValue(selectedValue) {
118
+ this.value = selectedValue;
119
+ this.valueChange.emit(this.value);
120
+ this.fireContextEvent('select', this.value);
121
+ }
122
+ }
123
+ UiEnumSegmentedButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiEnumSegmentedButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
124
+ 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 });
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiEnumSegmentedButtonComponent, decorators: [{
126
+ type: Component,
127
+ 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"] }]
128
+ }] });
129
+
130
+ class MicroProcessFlowViewComponent extends ReportViewBaseComponent {
131
+ ngOnInit() {
132
+ super.ngOnInit();
133
+ this.arrowRight = this.rtl ? 'navigation-left-arrow' : 'navigation-right-arrow';
134
+ this.fieldTitle = this.viewSetting.FieldTitle;
135
+ this.fieldIcon = this.viewSetting.FieldIcon;
136
+ this.fieldState = this.viewSetting.FieldState;
137
+ this.mode = this.viewSetting.Mode$Caption;
138
+ }
139
+ }
140
+ MicroProcessFlowViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProcessFlowViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
141
+ 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 });
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProcessFlowViewComponent, decorators: [{
143
+ type: Component,
144
+ 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"] }]
145
+ }] });
146
+
147
+ class SettingFormComponent extends FormBaseComponent {
148
+ constructor(_formPanelService, portalService) {
149
+ super(_formPanelService);
150
+ this._formPanelService = _formPanelService;
151
+ this.portalService = portalService;
152
+ this.deviceSize = 'xl';
153
+ this.selectedSetting = false;
154
+ this.groupSettingFieldCaption = 'گروه تنظیمات2';
155
+ this.objectSettingFieldCaption = 'شی تنظیمات';
156
+ }
157
+ ngOnInit() {
158
+ super.ngOnInit();
159
+ this.rtl$ = this.portalService.rtl$;
160
+ this.portalService.deviceSize$.pipe(takeUntil(this._onDestroy$)).subscribe((deviceSize) => {
161
+ switch (deviceSize) {
162
+ case 's':
163
+ this.deviceSize = 'sm';
164
+ break;
165
+ case 'm':
166
+ this.deviceSize = 'md';
167
+ break;
168
+ default:
169
+ this.deviceSize = 'xl';
170
+ }
171
+ });
172
+ }
173
+ ngAfterViewInit() {
174
+ super.ngAfterViewInit();
175
+ const fieldUi = Object.values(this.listFieldUi).find((c) => c.Setting.ControlFieldCaption === this.groupSettingFieldCaption);
176
+ if (fieldUi) {
177
+ fieldUi.viewerControl.on({
178
+ rowselect: this._setSelectedSetting.bind(this)
179
+ });
180
+ }
181
+ this._groupSettingControlUi = fieldUi;
182
+ }
183
+ ngOnDestroy() {
184
+ super.ngOnDestroy();
185
+ if (this._groupSettingControlUi) {
186
+ this._groupSettingControlUi.viewerControl.un('rowselect', this._setSelectedSetting);
187
+ }
188
+ }
189
+ onSettingClick() { }
190
+ onBack() {
191
+ this.selectedSetting = false;
192
+ }
193
+ _setSelectedSetting() {
194
+ this.selectedSetting = true;
195
+ }
196
+ }
197
+ 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 });
198
+ 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 });
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SettingFormComponent, decorators: [{
200
+ type: Component,
201
+ 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"] }]
202
+ }], ctorParameters: function () { return [{ type: i1$2.FormPanelService }, { type: i1$2.PortalService }]; } });
203
+
204
+ /**
205
+ * Based on zxing-typescript BrowserCodeReader
206
+ */
207
+ class BrowserMultiFormatContinuousReader extends BrowserMultiFormatReader {
208
+ /**
209
+ * Returns the code reader scanner controls.
210
+ */
211
+ getScannerControls() {
212
+ if (!this.scannerControls) {
213
+ throw new Error('No scanning is running at the time.');
214
+ }
215
+ return this.scannerControls;
216
+ }
217
+ /**
218
+ * Starts the decoding from the current or a new video element.
219
+ *
220
+ * @param deviceId The device's to be used Id
221
+ * @param previewEl A new video element
222
+ */
223
+ async scanFromDeviceObservable(deviceId, previewEl) {
224
+ const scan$ = new BehaviorSubject({});
225
+ let ctrls;
226
+ try {
227
+ ctrls = await this.decodeFromVideoDevice(deviceId, previewEl, (result, error) => {
228
+ if (!error) {
229
+ scan$.next({ result });
230
+ return;
231
+ }
232
+ console.error(error);
233
+ const errorName = error.name;
234
+ // stream cannot stop on fails.
235
+ if (
236
+ // scan Failure - found nothing, no error
237
+ errorName === NotFoundException.name ||
238
+ // scan Error - found the QR but got error on decoding
239
+ errorName === ChecksumException.name ||
240
+ errorName === FormatException.name ||
241
+ error.message.includes('No MultiFormat Readers were able to detect the code.')) {
242
+ scan$.next({ error });
243
+ return;
244
+ }
245
+ // probably fatal error
246
+ scan$.error(error);
247
+ this.scannerControls?.stop();
248
+ this.scannerControls = undefined;
249
+ return;
250
+ });
251
+ this.scannerControls = {
252
+ ...ctrls,
253
+ stop() {
254
+ ctrls.stop();
255
+ scan$.complete();
256
+ }
257
+ };
258
+ }
259
+ catch (e) {
260
+ scan$.error(e);
261
+ this.scannerControls?.stop();
262
+ this.scannerControls = undefined;
263
+ }
264
+ return scan$.asObservable();
265
+ }
266
+ }
267
+ class UserMediaBaseService {
268
+ /**
269
+ *
270
+ */
271
+ constructor(_logService) {
272
+ this._logService = _logService;
273
+ this.hasNavigator = false;
274
+ this.isMediaDevicesSupported = false;
275
+ this._camerasSource = new BehaviorSubject([]);
276
+ this.cameras$ = this._camerasSource
277
+ .asObservable()
278
+ .pipe(shareReplay(1))
279
+ .pipe(filter((items) => items && items.length > 0));
280
+ this._permissionResponse = new Subject();
281
+ this.permissionResponse$ = this._permissionResponse.asObservable();
282
+ this._hasDevicesSource = new BehaviorSubject(false);
283
+ this.hasDevices$ = this._hasDevicesSource.asObservable().pipe(shareReplay(1));
284
+ this._permissionSource = new BehaviorSubject(false);
285
+ this.permission$ = this._permissionSource.asObservable().pipe();
286
+ this._camerasNotFoundSource = new Subject();
287
+ this.camerasNotFound$ = this._camerasNotFoundSource.asObservable().pipe(shareReplay(1));
288
+ this.hasNavigator = typeof navigator !== 'undefined';
289
+ this.isMediaDevicesSupported = this.hasNavigator && !!navigator.mediaDevices;
290
+ }
291
+ async updateVideoInputDevices() {
292
+ // permissions aren't needed to get devices, but to access them and their info
293
+ const devices = (await BrowserCodeReader.listVideoInputDevices()) || [];
294
+ const hasDevices = devices && devices.length > 0;
295
+ // stores discovered devices and updates information
296
+ this._hasDevicesSource.next(hasDevices);
297
+ this._camerasSource.next([...devices]);
298
+ if (!hasDevices) {
299
+ const err = {
300
+ code: DOMException.NOT_FOUND_ERR,
301
+ message: 'Device not found.'
302
+ };
303
+ this._camerasNotFoundSource.next(err);
304
+ }
305
+ return devices;
306
+ }
307
+ /**
308
+ * Gets and registers all cammeras.
309
+ */
310
+ async askForPermission() {
311
+ if (!this.hasNavigator) {
312
+ this._logService.error('user media', `Can't ask permission, navigator is not present.`);
313
+ this._setPermission(false);
314
+ }
315
+ if (!this.isMediaDevicesSupported) {
316
+ this._logService.error('user media', `Can't get user media, this is not supported.`);
317
+ this._setPermission(false);
318
+ }
319
+ let stream;
320
+ let permission = false;
321
+ try {
322
+ // Will try to ask for permission
323
+ stream = await this._getAnyVideoDevice();
324
+ permission = !!stream;
325
+ }
326
+ catch (err) {
327
+ this._handlePermissionException(err);
328
+ }
329
+ finally {
330
+ this.terminateStream(stream);
331
+ }
332
+ this._setPermission(permission);
333
+ return permission;
334
+ }
335
+ terminateStream(stream) {
336
+ if (stream) {
337
+ stream.getTracks().forEach((t) => t.stop());
338
+ }
339
+ stream = undefined;
340
+ }
341
+ _setPermission(permission) {
342
+ this._permissionSource.next(permission);
343
+ }
344
+ _getAnyVideoDevice() {
345
+ return navigator.mediaDevices.getUserMedia({ video: true });
346
+ }
347
+ _handlePermissionException(err) {
348
+ console.error('user media', 'Error when asking for permission.', err);
349
+ let permission = false;
350
+ switch (err.name) {
351
+ // usually caused by not secure origins
352
+ case 'NotSupportedError':
353
+ this._logService.warn('user media', err.message);
354
+ // could not claim
355
+ permission = false;
356
+ // can't check devices
357
+ this._hasDevicesSource.next(false);
358
+ break;
359
+ // user denied permission
360
+ case 'NotAllowedError':
361
+ this._logService.warn('user media', err.message);
362
+ // claimed and denied permission
363
+ permission = false;
364
+ // this means that input devices exists
365
+ this._hasDevicesSource.next(true);
366
+ break;
367
+ // the device has no attached input devices
368
+ case 'NotFoundError':
369
+ this._logService.warn('user media', err.message);
370
+ // no permissions claimed
371
+ permission = false;
372
+ // because there was no devices
373
+ this._hasDevicesSource.next(false);
374
+ // tells the listener about the error
375
+ this._camerasNotFoundSource.next(err);
376
+ break;
377
+ case 'NotReadableError':
378
+ this._logService.warn('user media', `Couldn't read the device(s)'s stream, it's probably in use by another app.`);
379
+ // no permissions claimed
380
+ permission = false;
381
+ // there are devices, which I couldn't use
382
+ this._hasDevicesSource.next(false);
383
+ // tells the listener about the error
384
+ this._camerasNotFoundSource.next(err);
385
+ break;
386
+ default:
387
+ this._logService.warn('user media', 'I was not able to define if I have permissions for camera or not.', err);
388
+ // unknown
389
+ permission = false;
390
+ // this.hasDevices.next(undefined;
391
+ break;
392
+ }
393
+ this._setPermission(permission);
394
+ // tells the listener about the error
395
+ this._permissionResponse.next(err);
396
+ return permission;
397
+ }
398
+ }
399
+ 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 });
400
+ UserMediaBaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UserMediaBaseService });
401
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UserMediaBaseService, decorators: [{
402
+ type: Injectable
403
+ }], ctorParameters: function () { return [{ type: i1$2.LogService }]; } });
404
+ class WebBarcodeService {
405
+ constructor(userMediaService) {
406
+ this.userMediaService = userMediaService;
407
+ this._device = undefined;
408
+ this._codeReader = undefined;
409
+ this._hints = new Map();
410
+ this._scanErrorSource = new Subject();
411
+ this._scanFailureSource = new Subject();
412
+ this._scanCompleteSource = new Subject();
413
+ this._scanSuccessSource = new Subject();
414
+ this._options = {
415
+ delayBetweenScanAttempts: 50,
416
+ delayBetweenScanSuccess: 500
417
+ };
418
+ this.scanError$ = this._scanErrorSource.asObservable();
419
+ this.scanFailure$ = this._scanFailureSource.asObservable();
420
+ this.scanComplete$ = this._scanCompleteSource.asObservable();
421
+ this.scanSuccess$ = this._scanSuccessSource.asObservable().pipe(map((c) => c.getText()));
422
+ }
423
+ startScan(device, videoEl, options = this._options) {
424
+ // instantly stops the scan before changing devices
425
+ this.scanStop();
426
+ // correctly sets the new (or none) device
427
+ this._device = device || undefined;
428
+ this._videoEl = videoEl;
429
+ this._options = options;
430
+ if (!this._device) {
431
+ // cleans the video because user removed the device
432
+ BrowserCodeReader.cleanVideoSource(videoEl);
433
+ }
434
+ if (this._scanSubscription) {
435
+ throw new Error('There is already a scan proccess running.');
436
+ }
437
+ if (!this._device) {
438
+ throw new Error('No device defined, cannot start scan, please define a device.');
439
+ }
440
+ // if enabled, starts scanning
441
+ if (device) {
442
+ this.scanFromDevice(device.deviceId);
443
+ }
444
+ }
445
+ setFormat(input) {
446
+ if (typeof input === 'string') {
447
+ throw new Error('Invalid formats, make sure the [formats] input is a binding.');
448
+ }
449
+ // formats may be set from html template as BarcodeFormat or string array
450
+ const formats = input.map((f) => this.getBarcodeFormatOrFail(f));
451
+ const hints = this._hints;
452
+ // updates the hints
453
+ hints.set(DecodeHintType.POSSIBLE_FORMATS, formats);
454
+ // handles updating the codeReader
455
+ this._hints = hints;
456
+ }
457
+ scanStop() {
458
+ if (this._scanSubscription) {
459
+ this._codeReader?.getScannerControls().stop();
460
+ this._scanSubscription?.unsubscribe();
461
+ this._scanSubscription = undefined;
462
+ }
463
+ // this.torchCompatible.next(false);
464
+ }
465
+ destroy() {
466
+ // @note apenas necessario por enquanto causa da Torch
467
+ this.scanStop();
468
+ this._codeReader = undefined;
469
+ this._device = undefined;
470
+ }
471
+ getBarcodeFormatOrFail(format) {
472
+ return typeof format === 'string' ? BarcodeFormat[format.trim().toUpperCase()] : format;
473
+ }
474
+ async scanFromDevice(deviceId) {
475
+ const videoElement = this._videoEl;
476
+ const codeReader = this.getCodeReader();
477
+ const scanStream = await codeReader.scanFromDeviceObservable(deviceId, videoElement);
478
+ if (!scanStream) {
479
+ throw new Error('Undefined decoding stream, aborting.');
480
+ }
481
+ const next = (x) => this._onDecodeResult(x.result, x.error);
482
+ const error = (err) => this._onDecodeError(err);
483
+ const complete = () => { };
484
+ this._scanSubscription = scanStream.subscribe(next, error, complete);
485
+ if (this._scanSubscription.closed) {
486
+ return;
487
+ }
488
+ // const controls = codeReader.getScannerControls();
489
+ // const hasTorchControl = typeof controls.switchTorch !== 'undefined';
490
+ // this.torchCompatible.next(hasTorchControl);
491
+ }
492
+ /**
493
+ * Handles decode errors.
494
+ */
495
+ _onDecodeError(err) {
496
+ this._scanErrorSource.next(err);
497
+ // this.reset();
498
+ }
499
+ /**
500
+ * Handles decode results.
501
+ */
502
+ _onDecodeResult(result, error) {
503
+ if (result) {
504
+ this._scanSuccessSource.next(result);
505
+ }
506
+ else {
507
+ this._scanFailureSource.next(error);
508
+ }
509
+ if (result) {
510
+ this._scanCompleteSource.next(result);
511
+ }
512
+ }
513
+ getCodeReader() {
514
+ if (!this._codeReader) {
515
+ this._codeReader = new BrowserMultiFormatContinuousReader(this._hints, this._options);
516
+ }
517
+ return this._codeReader;
518
+ }
519
+ }
520
+ WebBarcodeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: WebBarcodeService, deps: [{ token: UserMediaBaseService }], target: i0.ɵɵFactoryTarget.Injectable });
521
+ WebBarcodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: WebBarcodeService });
522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: WebBarcodeService, decorators: [{
523
+ type: Injectable
524
+ }], ctorParameters: function () { return [{ type: UserMediaBaseService }]; } });
525
+
526
+ class BarcodeReaderVideoComponent extends BaseComponent {
527
+ constructor(_webBarcodeService) {
528
+ super();
529
+ this._webBarcodeService = _webBarcodeService;
530
+ this.previewFitMode = 'fill';
531
+ this.scanSuccess = new EventEmitter();
532
+ this._cameraSource = new BehaviorSubject(null);
533
+ }
534
+ set selectedCamera(val) {
535
+ this._cameraSource.next(val);
536
+ }
537
+ ngOnInit() {
538
+ super.ngOnInit();
539
+ this._setFormat(this.allFormats);
540
+ this._cameraSource
541
+ .asObservable()
542
+ .pipe(takeUntil(this._onDestroy$), debounceTime(500), filter((camera) => camera != null), tap((camera) => {
543
+ this._stopScan();
544
+ this._startScan(camera);
545
+ }))
546
+ .subscribe();
547
+ this._webBarcodeService.scanSuccess$.subscribe((result) => {
548
+ this.scanSuccess.emit(result);
549
+ });
550
+ }
551
+ ngOnDestroy() {
552
+ super.ngOnDestroy();
553
+ this._webBarcodeService.scanStop();
554
+ }
555
+ _setFormat(formats) {
556
+ this._webBarcodeService.setFormat(formats);
557
+ }
558
+ _stopScan() {
559
+ this._webBarcodeService.scanStop();
560
+ }
561
+ _startScan(camera) {
562
+ if (this.videoElement) {
563
+ this._webBarcodeService.startScan(camera, this.videoElement.nativeElement);
564
+ }
565
+ }
566
+ }
567
+ BarcodeReaderVideoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderVideoComponent, deps: [{ token: WebBarcodeService }], target: i0.ɵɵFactoryTarget.Component });
568
+ 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 });
569
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderVideoComponent, decorators: [{
570
+ type: Component,
571
+ 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"] }]
572
+ }], ctorParameters: function () { return [{ type: WebBarcodeService }]; }, propDecorators: { allFormats: [{
573
+ type: Input
574
+ }], previewFitMode: [{
575
+ type: Input
576
+ }], scanSuccess: [{
577
+ type: Output
578
+ }], videoElement: [{
579
+ type: ViewChild,
580
+ args: ['videoElement', { static: true }]
581
+ }], selectedCamera: [{
582
+ type: Input
583
+ }] } });
584
+
585
+ class BarcodeReaderDialogComponent extends BaseComponent {
586
+ constructor(_dialogRef, _userMediaService) {
587
+ super();
588
+ this._dialogRef = _dialogRef;
589
+ this._userMediaService = _userMediaService;
590
+ this.value = '';
591
+ this.format = [BarcodeFormat.QR_CODE];
592
+ this.loading = true;
593
+ this._dialogRef.loading(true);
594
+ this.barcodeFormats = this._dialogRef.data?.barcodeFormats ?? [];
595
+ this.selectedFormat = this.barcodeFormats.length > 0 ? this.barcodeFormats[0] : BarcodeFormat.QR_CODE;
596
+ }
597
+ ngAfterViewInit() {
598
+ super.ngAfterViewInit();
599
+ this._initialize();
600
+ }
601
+ onDismiss() {
602
+ this._dialogRef.dismiss();
603
+ }
604
+ onOk() {
605
+ this._close();
606
+ }
607
+ onCameraChange(value) {
608
+ this.selectedCamera = value;
609
+ }
610
+ onFormatChange(format) {
611
+ this.selectedFormat = format;
612
+ }
613
+ onScanSuccess(result) {
614
+ this.value = result;
615
+ this._close();
616
+ }
617
+ onValueChanged(e) {
618
+ this.value = e.target.value;
619
+ }
620
+ _close() {
621
+ this._dialogRef.close(this.value);
622
+ }
623
+ _initialize() {
624
+ of(true)
625
+ .pipe(takeUntil(this._onDestroy$), exhaustMap(() => this._userMediaService.askForPermission()), concatMap((permission) => {
626
+ if (permission) {
627
+ return this._userMediaService.updateVideoInputDevices();
628
+ }
629
+ else {
630
+ return of(true);
631
+ }
632
+ }), finalize(() => {
633
+ this.loading = false;
634
+ this._dialogRef.loading(false);
635
+ }))
636
+ .subscribe();
637
+ this.hasDevice$ = this._userMediaService.hasDevices$;
638
+ this.permission$ = this._userMediaService.permission$;
639
+ this.cameras$ = this._userMediaService.cameras$.pipe(delay(0), tap((cameras) => {
640
+ this.selectedCamera = cameras.find((c) => c.label.indexOf('back') > -1) ?? cameras[0];
641
+ }));
642
+ }
643
+ }
644
+ 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 });
645
+ 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 });
646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderDialogComponent, decorators: [{
647
+ type: Component,
648
+ 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" }]
649
+ }], ctorParameters: function () { return [{ type: i1$3.DialogRef }, { type: UserMediaBaseService }]; } });
650
+
651
+ class BarcodeReaderComponent extends UiMoInfoSubFormUiComponent {
652
+ constructor() {
653
+ super(...arguments);
654
+ this.size = 'large';
655
+ }
656
+ ngOnInit() {
657
+ super.ngOnInit();
658
+ this.barcodeValue = this.context.Setting.FormPanelSetting.Data.Mo.Value;
659
+ const format = this.context.Setting.CustomFieldInfo?.Format;
660
+ if (format) {
661
+ this.barcodeFormat = format
662
+ .split(',')
663
+ .filter((c) => c)
664
+ .map((c) => Number(c) - 1);
665
+ }
666
+ this.size = BarsaApi.Bw.GetWindowSize();
667
+ }
668
+ onOpenBarcodeReader() {
669
+ const data = { barcodeFormats: this.barcodeFormat };
670
+ const dialogRef = this._dialogService.open(BarcodeReaderDialogComponent, {
671
+ data,
672
+ fullScreen: this.isMobileDevice ? false : true,
673
+ verticalPadding: true,
674
+ responsivePadding: true,
675
+ mobile: this.isMobileDevice,
676
+ mobileOuterSpacing: true
677
+ });
678
+ dialogRef.afterClosed.pipe(takeUntil(this._onDestroy$)).subscribe((value) => {
679
+ if (value) {
680
+ this._setFieldValue(value);
681
+ }
682
+ });
683
+ }
684
+ onValueChange(e) {
685
+ this._setFieldValue(e.target.value);
686
+ }
687
+ _addFormControl(formControl) {
688
+ this.customFormPanelUi = formControl;
689
+ }
690
+ _setFieldValue(value) {
691
+ this.barcodeValue = value;
692
+ const valueCustomFieldUi = this.context.formControl._dictFieldUi.Value;
693
+ valueCustomFieldUi.value = value;
694
+ valueCustomFieldUi.fireEvent('change', value);
695
+ }
696
+ }
697
+ BarcodeReaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
698
+ 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 });
699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeReaderComponent, decorators: [{
700
+ type: Component,
701
+ 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" }]
702
+ }] });
703
+
704
+ class UiPersonPipe {
705
+ transform(value) {
706
+ let transform;
707
+ switch (value) {
708
+ case 'FirstName':
709
+ transform = 'نام';
710
+ break;
711
+ case 'LastName':
712
+ transform = 'نام خانوادگی';
713
+ break;
714
+ case 'NationalCode':
715
+ transform = 'کد ملی';
716
+ break;
717
+ case 'FatherName':
718
+ transform = 'نام پدر';
719
+ break;
720
+ case 'Birthplace':
721
+ transform = 'محل تولد';
722
+ break;
723
+ case 'Mobile':
724
+ transform = 'محل تولد';
725
+ break;
726
+ default:
727
+ transform = '';
728
+ break;
729
+ }
730
+ return transform;
731
+ }
732
+ }
733
+ UiPersonPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
734
+ UiPersonPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: UiPersonPipe, name: "uiPerson" });
735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonPipe, decorators: [{
736
+ type: Pipe,
737
+ args: [{
738
+ name: 'uiPerson'
739
+ }]
740
+ }] });
741
+
742
+ class UiPersonComponent extends FieldBaseComponent {
743
+ constructor() {
744
+ super(...arguments);
745
+ this.searchResult = [];
746
+ this.personCollection = [
747
+ {
748
+ Id: 1,
749
+ FirstName: 'zahra',
750
+ LastName: 'darbandy',
751
+ FatherName: 'ali',
752
+ Birthplace: 'yazd',
753
+ NationalCode: '123456789'
754
+ },
755
+ {
756
+ Id: 2,
757
+ FirstName: 'ali',
758
+ LastName: 'kafdary',
759
+ FatherName: 'reza',
760
+ Birthplace: 'shiraz',
761
+ NationalCode: '754123659'
762
+ },
763
+ {
764
+ Id: 3,
765
+ FirstName: 'sara',
766
+ LastName: 'rezaee',
767
+ FatherName: 'ali',
768
+ Birthplace: 'tehran',
769
+ NationalCode: '123456789'
770
+ },
771
+ {
772
+ Id: 4,
773
+ FirstName: 'علی',
774
+ LastName: 'خزایی',
775
+ FatherName: 'کمال',
776
+ Birthplace: 'اصفهان',
777
+ NationalCode: '452145698'
778
+ },
779
+ {
780
+ Id: 5,
781
+ FirstName: 'vahid',
782
+ LastName: 'alipor',
783
+ FatherName: 'ali',
784
+ Birthplace: 'shiraz',
785
+ NationalCode: '756982456'
786
+ },
787
+ {
788
+ Id: 6,
789
+ FirstName: 'mohammad',
790
+ LastName: 'kamali',
791
+ FatherName: 'vahid',
792
+ Birthplace: 'ahvaz',
793
+ NationalCode: '32165897'
794
+ }
795
+ ];
796
+ this.onClose$ = new Subject();
797
+ }
798
+ ngOnInit() {
799
+ super.ngOnInit();
800
+ this.value = {
801
+ Id: 5,
802
+ FirstName: 'وحید',
803
+ LastName: 'علیپور',
804
+ FatherName: 'علی',
805
+ Birthplace: 'شیراز',
806
+ NationalCode: '756982456',
807
+ Mobile: '09175623898'
808
+ };
809
+ this.onClose$.pipe().subscribe(() => {
810
+ // console.log('closed');
811
+ });
812
+ }
813
+ ngAfterViewInit() {
814
+ super.ngAfterViewInit();
815
+ this.onClose$ = this.popoverBodyDom.onClose;
816
+ }
817
+ filter() {
818
+ this.searchResult = this.personCollection.filter((person) => person.FirstName.toLowerCase().includes(this.filterItems?.FirstName.toLowerCase() || '') &&
819
+ person.LastName.toLowerCase().includes(this.filterItems?.LastName.toLowerCase() || '') &&
820
+ person.NationalCode.toString().includes(this.filterItems?.NationalCode.toString() || ''));
821
+ }
822
+ select(person) {
823
+ this.selectedPerson = person;
824
+ }
825
+ confirm() {
826
+ this.value = this.selectedPerson ?? this.value;
827
+ this.valueChange.emit(this.value);
828
+ this.close();
829
+ }
830
+ close() {
831
+ this.dialogRef.close();
832
+ this.selectedPerson = null;
833
+ }
834
+ openDialog(template) {
835
+ this.resetTable();
836
+ this.dialogRef = this._dialogService.open(template, {
837
+ minHeight: '500px',
838
+ minWidth: '700px',
839
+ maxHeight: '1000px',
840
+ maxWidth: '1500px',
841
+ draggable: true,
842
+ resizable: true,
843
+ verticalPadding: false
844
+ });
845
+ this.dialogRef.loading(true);
846
+ setTimeout(() => this.dialogRef.loading(false), 500);
847
+ }
848
+ resetTable() {
849
+ this.filterItems = { FirstName: '', LastName: '', NationalCode: '' };
850
+ this.filter();
851
+ }
852
+ edit() { }
853
+ delete() {
854
+ this.value = null;
855
+ this.valueChange.emit(this.value);
856
+ }
857
+ openPopover() {
858
+ if (!this.isPopoverOpened && this.value) {
859
+ setTimeout(() => {
860
+ this.popoverDom.open();
861
+ }, 1000);
862
+ }
863
+ }
864
+ openChange(isOpen) {
865
+ this.isPopoverOpened = isOpen;
866
+ }
867
+ }
868
+ UiPersonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
869
+ 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 });
870
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPersonComponent, decorators: [{
871
+ type: Component,
872
+ 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"] }]
873
+ }], propDecorators: { popoverDom: [{
874
+ type: ViewChild,
875
+ args: ['popover']
876
+ }], popoverBodyDom: [{
877
+ type: ViewChild,
878
+ args: [PopoverBodyComponent]
879
+ }] } });
880
+
881
+ class LoginSocialConncetionsComponent extends ReportBaseComponent {
882
+ constructor(_ulvMainService, _portalService, reportValuePipe) {
883
+ super(_portalService, _ulvMainService);
884
+ this._ulvMainService = _ulvMainService;
885
+ this._portalService = _portalService;
886
+ this.reportValuePipe = reportValuePipe;
887
+ this.rtl = BarsaApi.LoginFormData.IsRtl;
888
+ }
889
+ onClick(mo) {
890
+ const provider = this.reportValuePipe.transform('Name', mo, this.allColumns, true);
891
+ const returnUrl = encodeURIComponent(window.location.href);
892
+ BarsaApi.Bw.NavigateTo(`/api/openId/signin?provider=${provider}&returnUrl=${returnUrl}`);
893
+ }
894
+ }
895
+ 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 });
896
+ 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 });
897
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoginSocialConncetionsComponent, decorators: [{
898
+ type: Component,
899
+ 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"] }]
900
+ }], ctorParameters: function () { return [{ type: i1$2.UlvMainService }, { type: i1$2.PortalService }, { type: i1$2.MoReportValuePipe }]; }, propDecorators: { rtl: [{
901
+ type: HostBinding,
902
+ args: ['attr.rtl']
903
+ }] } });
904
+
905
+ class LoginFormComponent extends FormBaseComponent {
906
+ constructor(_controlUiPipe, _portalService, _formPanelService) {
907
+ super(_formPanelService);
908
+ this._controlUiPipe = _controlUiPipe;
909
+ this._portalService = _portalService;
910
+ this._formPanelService = _formPanelService;
911
+ this.onKeyEnter = (_) => {
912
+ const layoutItem = this._controlUiPipe.transform(' ورود', this.layout94);
913
+ if (layoutItem) {
914
+ layoutItem.FieldUi.fireEvent('click', layoutItem.FieldUi);
915
+ }
916
+ };
917
+ }
918
+ ngOnInit() {
919
+ super.ngOnInit();
920
+ this.layout94$.subscribe((layout94) => {
921
+ this.layout94 = layout94;
922
+ });
923
+ this.size$ = this._portalService.deviceSize$.pipe(map((deviceSize) => {
924
+ switch (deviceSize) {
925
+ case 's':
926
+ return 'sm';
927
+ case 'm':
928
+ return 'md';
929
+ default:
930
+ return 'xl';
931
+ }
932
+ }));
933
+ }
934
+ }
935
+ 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 });
936
+ 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 });
937
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: LoginFormComponent, decorators: [{
938
+ type: Component,
939
+ 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"] }]
940
+ }], ctorParameters: function () { return [{ type: i1$2.ControlUiPipe }, { type: i1$2.PortalService }, { type: i1$2.FormPanelService }]; }, propDecorators: { onKeyEnter: [{
941
+ type: HostListener,
942
+ args: ['keydown.enter', ['$event']]
943
+ }] } });
944
+
945
+ class ServiceDeskHeaderComponent extends TilesViewerContainerComponent {
946
+ constructor(_portalService, _tilesService, _tilesViewerService, _renderer, _viewportScroller, _cdr, _router, _activatedRoute) {
947
+ super(_portalService, _tilesService, _tilesViewerService);
948
+ this._portalService = _portalService;
949
+ this._tilesService = _tilesService;
950
+ this._tilesViewerService = _tilesViewerService;
951
+ this._renderer = _renderer;
952
+ this._viewportScroller = _viewportScroller;
953
+ this._cdr = _cdr;
954
+ this._router = _router;
955
+ this._activatedRoute = _activatedRoute;
956
+ this.selectedTabIndex = 0;
957
+ this.heightOfSpaceHolder = 248;
958
+ this.searchTerm = '';
959
+ this._enableScroll = false;
960
+ this._stickyTopPosition = 66;
961
+ this.observerList = [];
962
+ const root = document.documentElement;
963
+ root.style.setProperty('--absolute-page-top', this._stickyTopPosition + 'px');
964
+ }
965
+ ngOnInit() {
966
+ super.ngOnInit();
967
+ this._portalService.searchTerm$.pipe(takeUntil$1(this._onDestroy$)).subscribe((term) => {
968
+ this.searchTerm = term;
969
+ this._cdr.detectChanges();
970
+ });
971
+ this.appTileGroups$.subscribe((appTileGroups) => appTileGroups.forEach((c) => this._tilesViewerService.loadAppGroup(c)));
972
+ this.heightOfSpaceHolder = 625;
973
+ this._renderer.setStyle(this.navHolder.nativeElement, 'top', this._stickyTopPosition + 'px');
974
+ this.setGridTemplateRows(this.heightOfSpaceHolder);
975
+ this._portalService.deviceSize$.subscribe((c) => {
976
+ let newHeight = this.heightOfSpaceHolder;
977
+ this.tabSize = c;
978
+ if (c === 's') {
979
+ newHeight = 148;
980
+ }
981
+ else if (c === 'm') {
982
+ newHeight = 220;
983
+ }
984
+ else if (c === 'l') {
985
+ newHeight = 250;
986
+ }
987
+ else {
988
+ newHeight = 325;
989
+ }
990
+ if (this.heightOfSpaceHolder !== newHeight) {
991
+ this.heightOfSpaceHolder = newHeight;
992
+ this.setGridTemplateRows(newHeight);
993
+ }
994
+ });
995
+ }
996
+ ngAfterViewInit() {
997
+ const deviceSize = this._portalService.deviceSize;
998
+ let stickyTopPosition = 20;
999
+ if (deviceSize === 's') {
1000
+ stickyTopPosition = 60;
1001
+ }
1002
+ this._stickyDom(this.aboveSearch.nativeElement, this.searchHolder.nativeElement, -stickyTopPosition, 'sticky');
1003
+ this._stickyDom(this.aboveContent.nativeElement, this.navHolder.nativeElement, -this._stickyTopPosition, 'sticky');
1004
+ this._stickyDom(this.aboveContent.nativeElement, this.bgOuterHolder.nativeElement, -this._stickyTopPosition, 'sticky', () => {
1005
+ this._renderer.setStyle(this.bgOuterHolder.nativeElement, 'height', this._stickyTopPosition + 'px');
1006
+ }, () => {
1007
+ this._renderer.setStyle(this.bgOuterHolder.nativeElement, 'height', '100%');
1008
+ });
1009
+ this._stickyDom(this.aboveSearch.nativeElement, this.contentAndNav.nativeElement, -stickyTopPosition, 'navAndContent_tb', () => {
1010
+ this._renderer.removeAttribute(this.contentAndNav.nativeElement, 'first');
1011
+ }, () => {
1012
+ this._renderer.setAttribute(this.contentAndNav.nativeElement, 'first', 'true');
1013
+ });
1014
+ setTimeout(() => {
1015
+ this._enableScroll = true;
1016
+ }, 1000);
1017
+ this._portalService.navigationStart$.pipe(takeUntil$1(this._onDestroy$)).subscribe((event) => {
1018
+ this._lastScrollPos = window.scrollY;
1019
+ if (event === null) {
1020
+ return;
1021
+ }
1022
+ if (event?.url !== '/home' && event?.url !== '/' && !this._disableIntersection) {
1023
+ this.prepareForm();
1024
+ }
1025
+ });
1026
+ this._portalService.navigationEnd$.pipe(takeUntil$1(this._onDestroy$)).subscribe((event) => {
1027
+ if (event !== null && (event?.url === '/home' || event?.url === '/')) {
1028
+ this.unPrepareForm();
1029
+ }
1030
+ });
1031
+ }
1032
+ onSearchSubmit($event) {
1033
+ const searchTerm = $event.text;
1034
+ this._router.navigateByUrl('home/search?term=' + searchTerm);
1035
+ // var searchMo = BarsaApi.Bw.RunBlMethod('GetSearchMo', this.searchTerm);
1036
+ // BarsaApi.Bw.Form.Show({ Mo: searchMo });
1037
+ }
1038
+ prepareForm() {
1039
+ this._disableIntersection = true;
1040
+ this._cdr.detach();
1041
+ this.disconnectIntersctionObserverList();
1042
+ this._renderer.addClass(this.searchHolder.nativeElement, 'sticky');
1043
+ this._renderer.addClass(this.contentAndNav.nativeElement, 'hide');
1044
+ this.visibleContent(false);
1045
+ const flags = RendererStyleFlags2.Important;
1046
+ this._renderer.setStyle(document.body, 'overflow', 'hidden', flags);
1047
+ this.scrollToTop();
1048
+ }
1049
+ unPrepareForm() {
1050
+ // this.setHeightSearchHolder(this.heightOfSpaceHolder);
1051
+ this.visibleContent(true);
1052
+ // this._renderer.removeClass(this.searchHolder.nativeElement, 'sticky');
1053
+ this._renderer.removeClass(this.searchHolder.nativeElement, 'hide');
1054
+ this._renderer.removeClass(this.contentAndNav.nativeElement, 'hide');
1055
+ const flags = RendererStyleFlags2.Important;
1056
+ this._renderer.setStyle(document.body, 'overflow', 'auto', flags);
1057
+ this.scrollToTop();
1058
+ this._cdr.reattach();
1059
+ this._disableIntersection = false;
1060
+ this.connectIntersctionObserverList();
1061
+ }
1062
+ setHeightSearchHolder(height) {
1063
+ this._renderer.setStyle(this.headerSpaceHolder.nativeElement, 'height', `${height}px`);
1064
+ }
1065
+ visibleContent(visible) {
1066
+ this._renderer.setStyle(this.contentAndNav.nativeElement, 'display', visible ? 'flex' : 'none');
1067
+ }
1068
+ setGridTemplateRows(height) {
1069
+ this._renderer.setStyle(this.headerGrid.nativeElement, 'grid-template-rows', `minmax(78px, 15%) 46px 32px 1fr auto 12%; height:${height}px`);
1070
+ // this._renderer.setStyle(this.headerGrid.nativeElement, 'background-color', `red`);
1071
+ this._renderer.setStyle(this.headerSpaceHolder.nativeElement, 'height', `${height}px`);
1072
+ }
1073
+ onSelectedTabChange3(selectedTab) {
1074
+ this.scrollToTop();
1075
+ if (selectedTab.id === '0') {
1076
+ return;
1077
+ }
1078
+ const elementRefOfselectedTileGroup = this.tilesViewerGroupElList.get(Number(selectedTab.id))?.nativeElement;
1079
+ elementRefOfselectedTileGroup.scrollIntoView({
1080
+ block: 'start'
1081
+ });
1082
+ }
1083
+ scrollToLastPos() {
1084
+ this._viewportScroller.scrollToPosition([0, this._lastScrollPos]);
1085
+ }
1086
+ scrollToTop() {
1087
+ if (this._enableScroll) {
1088
+ this._viewportScroller.scrollToPosition([0, this.heightOfSpaceHolder - this._stickyTopPosition]);
1089
+ }
1090
+ }
1091
+ disconnectIntersctionObserverList() {
1092
+ this.observerList.forEach((c) => c.observer.disconnect());
1093
+ }
1094
+ connectIntersctionObserverList() {
1095
+ this.observerList.forEach((c) => c.observer.observe(c.el));
1096
+ }
1097
+ _stickyDom(above, holder, marginTop, className, visibleCallback, hiddenCallBack) {
1098
+ const handler = (entries) => {
1099
+ if (this._disableIntersection) {
1100
+ return;
1101
+ }
1102
+ if (!entries[0].isIntersecting) {
1103
+ this._renderer.addClass(holder, className);
1104
+ if (typeof visibleCallback === 'function') {
1105
+ visibleCallback();
1106
+ }
1107
+ }
1108
+ else {
1109
+ this._renderer.removeClass(holder, className);
1110
+ if (typeof hiddenCallBack === 'function') {
1111
+ hiddenCallBack();
1112
+ }
1113
+ }
1114
+ };
1115
+ const options = {
1116
+ rootMargin: `${marginTop}px 0px 0px 0px`,
1117
+ threshold: 0.1
1118
+ };
1119
+ const observer = new window.IntersectionObserver(handler, options);
1120
+ observer.observe(above);
1121
+ this.observerList.push({ el: above, observer });
1122
+ }
1123
+ }
1124
+ 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 });
1125
+ 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 });
1126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskHeaderComponent, decorators: [{
1127
+ type: Component,
1128
+ 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"] }]
1129
+ }], 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: [{
1130
+ type: ViewChild,
1131
+ args: ['headerSpaceHolder', { static: true }]
1132
+ }], headerGrid: [{
1133
+ type: ViewChild,
1134
+ args: ['headerGrid', { static: true }]
1135
+ }], aboveSearch: [{
1136
+ type: ViewChild,
1137
+ args: ['aboveSearch', { static: true }]
1138
+ }], searchHolder: [{
1139
+ type: ViewChild,
1140
+ args: ['searchHolder', { static: true }]
1141
+ }], navHolder: [{
1142
+ type: ViewChild,
1143
+ args: ['navHolder', { static: true }]
1144
+ }], aboveContent: [{
1145
+ type: ViewChild,
1146
+ args: ['aboveContent', { static: true }]
1147
+ }], bgOuterHolder: [{
1148
+ type: ViewChild,
1149
+ args: ['bgOuterHolder', { static: true }]
1150
+ }], contentAndNav: [{
1151
+ type: ViewChild,
1152
+ args: ['contentAndNav', { static: true }]
1153
+ }], tilesViewerGroupElList: [{
1154
+ type: ViewChildren,
1155
+ args: [TilesViewerGroupComponent, { read: ElementRef }]
1156
+ }], tabPanelComponents: [{
1157
+ type: ViewChildren,
1158
+ args: [TabPanelComponent]
1159
+ }] } });
1160
+
1161
+ class CardContentImageAndTitleComponent extends BaseItemContentPropsComponent {
1162
+ ngOnInit() {
1163
+ super.ngOnInit();
1164
+ const parameters = this.parameters;
1165
+ if (parameters != null) {
1166
+ this.iconColor = parameters.FontIconColor;
1167
+ this.backgroundColor = parameters.FontIconBackgroundColor;
1168
+ this.backgroundHoverColor = parameters.FontIconHoverBackgroundColor;
1169
+ this.iconHoverColor = parameters.FontIconHoverColor;
1170
+ this.iconPicture = this._rval.transform(parameters.IconPicture, this.mo, this.allColumns);
1171
+ this.title = this._rval.transform(parameters.Title, this.mo, this.allColumns);
1172
+ this.icon = this._rval.transform(parameters.FontIconName, this.mo, this.allColumns);
1173
+ this.prepareNumberSign();
1174
+ }
1175
+ }
1176
+ prepareNumberSign() {
1177
+ if (this.iconColor.indexOf('#') < 0) {
1178
+ this.iconColor = '#' + this.iconColor;
1179
+ }
1180
+ if (this.backgroundColor.indexOf('#') < 0) {
1181
+ this.backgroundColor = '#' + this.backgroundColor;
1182
+ }
1183
+ if (this.backgroundHoverColor.indexOf('#') < 0) {
1184
+ this.backgroundHoverColor = '#' + this.backgroundHoverColor;
1185
+ }
1186
+ if (this.iconHoverColor.indexOf('#') < 0) {
1187
+ this.iconHoverColor = '#' + this.iconHoverColor;
1188
+ }
1189
+ }
1190
+ }
1191
+ CardContentImageAndTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentImageAndTitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1192
+ 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 });
1193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentImageAndTitleComponent, decorators: [{
1194
+ type: Component,
1195
+ 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"] }]
1196
+ }], propDecorators: { iconRef: [{
1197
+ type: ViewChild,
1198
+ args: ['iconRef', { read: ElementRef }]
1199
+ }], elemRef: [{
1200
+ type: ViewChild,
1201
+ args: ['elemRef', { read: ElementRef }]
1202
+ }] } });
1203
+
1204
+ class CardHeaderLogoTitleSubtitleComponent extends BaseItemContentPropsComponent {
1205
+ constructor() {
1206
+ super(...arguments);
1207
+ this.events = new EventEmitter();
1208
+ }
1209
+ ngOnInit() {
1210
+ super.ngOnInit();
1211
+ this.titleDbName =
1212
+ this._findColumnPipe.transform(this.allColumns, this.parameters.Title)?.Name || this.parameters.Title;
1213
+ this.subtitleDbName =
1214
+ this._findColumnPipe.transform(this.allColumns, this.parameters.Subtitle)?.Name || this.parameters.Subtitle;
1215
+ const parameters = this.parameters;
1216
+ if (parameters != null) {
1217
+ this.title = this._rval.transform(parameters.Title, this.mo, this.allColumns, true);
1218
+ this.subtitle = this._rval.transform(parameters.Subtitle, this.mo, this.allColumns, true);
1219
+ this.fontIcon = parameters.FontIcon ?? 'person-placeholder';
1220
+ this.imageIcon = this._rval.transform(parameters.FontIcon, this.mo, this.allColumns);
1221
+ this.isIconImage = typeof this.imageIcon === 'object';
1222
+ this.hasIcon = parameters.HasIcon;
1223
+ this.avatarCircle = true;
1224
+ if (typeof parameters.AvatarCircle !== 'undefined') {
1225
+ this.avatarCircle = parameters.AvatarCircle;
1226
+ }
1227
+ }
1228
+ }
1229
+ }
1230
+ CardHeaderLogoTitleSubtitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderLogoTitleSubtitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1231
+ 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 });
1232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderLogoTitleSubtitleComponent, decorators: [{
1233
+ type: Component,
1234
+ 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"] }]
1235
+ }], propDecorators: { events: [{
1236
+ type: Output
1237
+ }] } });
1238
+
1239
+ class FormContentQuickViewComponent extends FormPropsBaseComponent {
1240
+ constructor() {
1241
+ super(...arguments);
1242
+ this.groups = {};
1243
+ }
1244
+ ngOnInit() {
1245
+ super.ngOnInit();
1246
+ const groups = {};
1247
+ this.title = this._controlUiPipe.transform(this.settings?.Title, this.layout94)?.FieldUi?.value;
1248
+ this.subtitle = this._controlUiPipe.transform(this.settings?.Subtitle, this.layout94)?.FieldUi?.value;
1249
+ this.fontIcon = this._controlUiPipe.transform(this.settings?.FontIcon, this.layout94)?.FieldUi?.value;
1250
+ const settingGroups = this.settings?.Groups;
1251
+ if (settingGroups) {
1252
+ settingGroups.MoDataList.forEach((c) => {
1253
+ groups[c.Title] = c.ListFields
1254
+ .split(',')
1255
+ .map((d) => ({
1256
+ caption: d,
1257
+ fieldUi: this._controlUiPipe.transform(d, this.layout94)
1258
+ }))
1259
+ .map((d) => ({ ...d, value: d.fieldUi?.FieldUi?.value }))
1260
+ .map((d) => ({ ...d, type: this.getFieldType(d.value) }));
1261
+ });
1262
+ }
1263
+ this.groups = groups;
1264
+ }
1265
+ getFieldType(value) {
1266
+ if (typeof value === 'string') {
1267
+ if (value.startsWith('http')) {
1268
+ return 0;
1269
+ }
1270
+ if (value.startsWith('0') || (value.startsWith('+') && !Number.isNaN(value.substring(1, value.length)))) {
1271
+ return 1;
1272
+ }
1273
+ }
1274
+ }
1275
+ }
1276
+ FormContentQuickViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormContentQuickViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1277
+ 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 });
1278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormContentQuickViewComponent, decorators: [{
1279
+ type: Component,
1280
+ 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"] }]
1281
+ }] });
1282
+
1283
+ class ServiceDeskServcieDetailComponent extends FormPropsBaseComponent {
1284
+ constructor() {
1285
+ super(...arguments);
1286
+ this.moByCaption = {};
1287
+ this.fieldsCaption = [];
1288
+ this.value = '';
1289
+ this.israhnamayTasviri = false;
1290
+ }
1291
+ ngOnInit() {
1292
+ super.ngOnInit();
1293
+ const $FieldDict = this.fieldDict;
1294
+ if (!$FieldDict) {
1295
+ return;
1296
+ }
1297
+ this._prepare($FieldDict, this.mo);
1298
+ }
1299
+ onDownload(item) {
1300
+ if (item.Attachment) {
1301
+ BarsaApi.Common.File.DownloadFileId(item.Attachment.Files[0].Id);
1302
+ }
1303
+ }
1304
+ ngAfterViewInit() {
1305
+ super.ngAfterViewInit();
1306
+ this.alignTablesTr();
1307
+ }
1308
+ onKhadamatMortabet(item) {
1309
+ BarsaApi.Bw.Form.Show({
1310
+ MoId: item.Id,
1311
+ TypeDefId: this.khadamatmortabetReport.TypeDefId,
1312
+ MoContext: { ReportId: this.khadamatmortabetReport.ReportId }
1313
+ });
1314
+ }
1315
+ alignTablesTr() {
1316
+ setTimeout(() => {
1317
+ const tablesRef = this.tablesRef.toArray();
1318
+ const firstTableEl = tablesRef[0].nativeElement;
1319
+ const secondTableEl = tablesRef[1].nativeElement;
1320
+ const trFirstTable = firstTableEl.querySelectorAll('tr');
1321
+ const trSecondTable = secondTableEl.querySelectorAll('tr');
1322
+ trFirstTable.forEach((tr, index) => {
1323
+ if (index < trSecondTable.length) {
1324
+ const trSecond = trSecondTable[index];
1325
+ if (tr.offsetHeight > trSecond.offsetHeight) {
1326
+ trSecond.style.height = `${tr.offsetHeight}px`;
1327
+ }
1328
+ else {
1329
+ tr.style.height = `${trSecond.offsetHeight}px`;
1330
+ }
1331
+ }
1332
+ });
1333
+ }, 0);
1334
+ }
1335
+ _prepare($FieldDict, mo) {
1336
+ Object.keys($FieldDict).forEach((key) => {
1337
+ const fieldName = $FieldDict[key];
1338
+ const item = { caption: key, fieldName };
1339
+ if (key === 'آدرس سایت' ||
1340
+ (typeof mo[fieldName] === 'string' &&
1341
+ (mo[fieldName].startsWith('https://') || mo[fieldName].startsWith('http://')))) {
1342
+ item.type = 'Link';
1343
+ }
1344
+ if (typeof mo[fieldName] === 'object') {
1345
+ if (mo[fieldName].$Type === 'Common.MetaObjectListWeb') {
1346
+ item.type = 'MoList';
1347
+ }
1348
+ else if (mo[fieldName].Ext) {
1349
+ item.type = 'Image';
1350
+ }
1351
+ else if (mo[fieldName].Files) {
1352
+ item.type = 'Files';
1353
+ }
1354
+ else {
1355
+ item.type = 'Relation';
1356
+ }
1357
+ }
1358
+ this.fieldsCaption.push(item);
1359
+ });
1360
+ this.rahnamayTasviri = this._sanitizer.bypassSecurityTrustResourceUrl(mo[$FieldDict['راهنمای تصویری']]);
1361
+ if (this.rahnamayTasviri) {
1362
+ this.israhnamayTasviri = true;
1363
+ }
1364
+ const filteredControls = this.fieldsCaption.filter((c) => c.caption !== 'شرایط اخذ خدمت' &&
1365
+ c.caption !== 'مراحل اخذ خدمت' &&
1366
+ c.caption !== 'SLA و راهنمای خدمت' &&
1367
+ c.caption !== 'جنس مجوز' &&
1368
+ c.caption !== 'مجوز وابسته' &&
1369
+ c.caption !== 'نوع خدمت' &&
1370
+ c.caption !== 'لینک خدمت' &&
1371
+ c.caption !== 'گروه خدمت' &&
1372
+ c.caption !== 'خدمات مرتبط' &&
1373
+ c.caption !== 'تصوير فلوچارت' &&
1374
+ c.caption !== 'ضوابط خاص اخذ خدمت' &&
1375
+ c.caption !== 'راهنمای تصویری' &&
1376
+ c.caption !== 'مدارک مورد نیاز اخذ خدمت' &&
1377
+ c.caption !== 'پیشنیازهای اخذ خدمت' &&
1378
+ c.caption !== 'بیانیه خدمت' &&
1379
+ c.caption !== 'واحدهای سازمانی ارائه دهنده' &&
1380
+ // c.caption != 'نیاز به استعلام از دستگاههای دیگر' &&
1381
+ c.caption !== 'استعلام سازمان ها' &&
1382
+ // c.caption != 'سایت جداگانه' &&
1383
+ // c.caption != 'سامانه' &&
1384
+ // c.caption != 'نیاز به پرداخت هزینه' &&
1385
+ c.caption !== 'گروه ساختار' &&
1386
+ c.caption !== 'هزینه های خدمت' &&
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
+ const controlCount = filteredControls.length;
1398
+ const controlCountMiddle = Math.ceil(filteredControls.length / 2);
1399
+ this.firstArray = filteredControls.slice(0, controlCountMiddle);
1400
+ this.secondArray = filteredControls.slice(controlCountMiddle, controlCount);
1401
+ this.khadamatmortabet = mo[$FieldDict['خدمات مرتبط']]?.MoDataList ?? [];
1402
+ this.filteredControls = filteredControls;
1403
+ this.khadamatmortabetReport = mo[$FieldDict['خدمات مرتبط']];
1404
+ this.isOdd = controlCount % 2 === 0;
1405
+ }
1406
+ }
1407
+ ServiceDeskServcieDetailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskServcieDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1408
+ 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 });
1409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskServcieDetailComponent, decorators: [{
1410
+ type: Component,
1411
+ 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"] }]
1412
+ }], propDecorators: { tabContainerRef: [{
1413
+ type: ViewChild,
1414
+ args: ['tabContainerRef']
1415
+ }], tablesRef: [{
1416
+ type: ViewChildren,
1417
+ args: ['tablesRef']
1418
+ }] } });
1419
+
1420
+ class ServiceDeskViewOfServicesComponent extends ReportViewBaseComponent {
1421
+ ngOnInit() {
1422
+ super.ngOnInit();
1423
+ this.fieldIcon = this.viewSetting.FieldIcon;
1424
+ this.fieldTitle = this.viewSetting.FieldTitle;
1425
+ this.fieldDynamicCommand = this.viewSetting.FieldDynamicCommand;
1426
+ }
1427
+ }
1428
+ ServiceDeskViewOfServicesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskViewOfServicesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1429
+ 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 });
1430
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskViewOfServicesComponent, decorators: [{
1431
+ type: Component,
1432
+ 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"] }]
1433
+ }] });
1434
+
1435
+ class ServiceDeskCardContentMojavezhayAkhzShodeComponent extends BaseComponent {
1436
+ ngOnInit() {
1437
+ super.ngOnInit();
1438
+ this.fieldTitle = this.parameters.FieldTitle;
1439
+ this.titleOfValue = this.parameters.TitleOfValue;
1440
+ this.fieldValue = this.parameters.FieldValue;
1441
+ }
1442
+ }
1443
+ ServiceDeskCardContentMojavezhayAkhzShodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskCardContentMojavezhayAkhzShodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1444
+ 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 });
1445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskCardContentMojavezhayAkhzShodeComponent, decorators: [{
1446
+ type: Component,
1447
+ 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"] }]
1448
+ }], propDecorators: { mo: [{
1449
+ type: Input
1450
+ }], allColumns: [{
1451
+ type: Input
1452
+ }], parameters: [{
1453
+ type: Input
1454
+ }], rtl: [{
1455
+ type: Input
1456
+ }] } });
1457
+
1458
+ class CardHeaderBigImageTitleAndSubtitleComponent extends CardHeaderLogoTitleSubtitleComponent {
1459
+ }
1460
+ CardHeaderBigImageTitleAndSubtitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderBigImageTitleAndSubtitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1461
+ 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 });
1462
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderBigImageTitleAndSubtitleComponent, decorators: [{
1463
+ type: Component,
1464
+ 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"] }]
1465
+ }] });
1466
+
1467
+ class ServiceDeskFormLayoutContentMojavezComponent extends FormPropsBaseComponent {
1468
+ constructor() {
1469
+ super(...arguments);
1470
+ this.fieldsCaption = [];
1471
+ }
1472
+ ngOnInit() {
1473
+ super.ngOnInit();
1474
+ let fieldDict = [];
1475
+ if (this.fieldDict) {
1476
+ fieldDict = Object.keys(this.fieldDict);
1477
+ }
1478
+ if (fieldDict) {
1479
+ fieldDict.forEach((key) => {
1480
+ if (this.fieldDict) {
1481
+ const fieldName = this.fieldDict[key];
1482
+ const item = { caption: key, fieldName, value: '' };
1483
+ const customFiledUi = this._controlUiPipe.transform(key, this.layout94);
1484
+ item.value = this.mo[fieldName];
1485
+ const originalXtype = customFiledUi?.FieldUi?.originalXtype;
1486
+ if (key === 'آدرس سایت') {
1487
+ item.type = 'Link';
1488
+ }
1489
+ if (this.mo[fieldName + '$Caption']) {
1490
+ item.type = 'Caption';
1491
+ item.value = this.mo[fieldName + '$Caption'];
1492
+ }
1493
+ else if (typeof item.value === 'object') {
1494
+ if (item.value.$Type === 'Common.MetaObjectListWeb') {
1495
+ item.type = 'MoList';
1496
+ }
1497
+ else if (item.value.Ext) {
1498
+ item.type = 'Image';
1499
+ }
1500
+ else if (originalXtype === 'Ui.FileLinearListBox') {
1501
+ item.type = 'Files';
1502
+ }
1503
+ else {
1504
+ item.type = 'Relation';
1505
+ }
1506
+ if (key === 'خدمات قابل انجام') {
1507
+ item.type = 'MoList2';
1508
+ }
1509
+ }
1510
+ this.fieldsCaption.push(item);
1511
+ }
1512
+ });
1513
+ }
1514
+ this.fieldsCaption = this.fieldsCaption.filter((c) => c.caption !== 'عنوان مجوز' && c.caption !== 'نقش اشخاص در مجوز' && c.caption !== 'فرزند');
1515
+ const controlCount = this.fieldsCaption.length;
1516
+ const controlCountMiddle = Math.ceil(this.fieldsCaption.length / 2);
1517
+ this.firstArray = this.fieldsCaption.slice(0, controlCountMiddle);
1518
+ this.secondArray = this.fieldsCaption.slice(controlCountMiddle, controlCount);
1519
+ this.isOdd = controlCount % 2 === 0;
1520
+ }
1521
+ ngAfterViewInit() {
1522
+ super.ngAfterViewInit();
1523
+ this.alignTablesTr();
1524
+ }
1525
+ onLink(item) {
1526
+ if (item.F34) {
1527
+ window.open(item.F42);
1528
+ }
1529
+ else {
1530
+ BarsaApi.Bw.Msg.Info('سامانه ای تعریف نشده است');
1531
+ }
1532
+ }
1533
+ onDownload(item) {
1534
+ BarsaApi.Common.File.DownloadFileId(item.Id);
1535
+ }
1536
+ alignTablesTr() {
1537
+ setTimeout(() => {
1538
+ const tablesRef = this.tablesRef.toArray();
1539
+ const firstTableEl = tablesRef[0].nativeElement;
1540
+ const secondTableEl = tablesRef[1].nativeElement;
1541
+ const trFirstTable = firstTableEl.querySelectorAll('tr');
1542
+ const trSecondTable = secondTableEl.querySelectorAll('tr');
1543
+ trFirstTable.forEach((tr, index) => {
1544
+ if (index < trSecondTable.length) {
1545
+ const trSecond = trSecondTable[index];
1546
+ if (tr.offsetHeight > trSecond.offsetHeight) {
1547
+ trSecond.style.height = `${tr.offsetHeight}px`;
1548
+ }
1549
+ else {
1550
+ tr.style.height = `${trSecond.offsetHeight}px`;
1551
+ }
1552
+ }
1553
+ });
1554
+ }, 0);
1555
+ }
1556
+ }
1557
+ ServiceDeskFormLayoutContentMojavezComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskFormLayoutContentMojavezComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1558
+ 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 });
1559
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ServiceDeskFormLayoutContentMojavezComponent, decorators: [{
1560
+ type: Component,
1561
+ 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"] }]
1562
+ }], propDecorators: { tabContainerRef: [{
1563
+ type: ViewChild,
1564
+ args: ['tabContainerRef']
1565
+ }], tablesRef: [{
1566
+ type: ViewChildren,
1567
+ args: ['tablesRef', { read: ElementRef }]
1568
+ }] } });
1569
+
1570
+ class UlvContextMenuItemShowFileContentComponent extends BaseFormToolbaritemPropsComponent {
1571
+ constructor(_reportValuePipe, _cdr, _dialogService, _sanitize) {
1572
+ super(_reportValuePipe, _cdr);
1573
+ this._reportValuePipe = _reportValuePipe;
1574
+ this._cdr = _cdr;
1575
+ this._dialogService = _dialogService;
1576
+ this._sanitize = _sanitize;
1577
+ this.disabled = false;
1578
+ }
1579
+ ngOnInit() {
1580
+ super.ngOnInit();
1581
+ const mo = this.mo;
1582
+ this.text = this.parameters.ButtonText;
1583
+ this.fdType = this.parameters.FdType$Caption;
1584
+ this.compact = this.parameters.Compact;
1585
+ this.icon = this.parameters.Icon;
1586
+ this.iconOnly = this.parameters.IconOnly;
1587
+ this.fileType = this._reportValuePipe.transform(this.parameters.FieldType, mo, this.allColumns); // نوع
1588
+ this.file = this._reportValuePipe.transform(this.parameters.FieldFile, mo, this.allColumns);
1589
+ this.videoUrl = this._reportValuePipe.transform(this.parameters.FieldVideoUr, mo, this.allColumns);
1590
+ if (this.fileType === '1' && this.file.Files?.length === 0) {
1591
+ this.disabled = true;
1592
+ }
1593
+ if (this.fileType === '2' && this.videoUrl) {
1594
+ this.disabled = true;
1595
+ }
1596
+ }
1597
+ openDialog(dialog) {
1598
+ let finalUrl;
1599
+ if (this.fileType === '1') {
1600
+ finalUrl = this._sanitize.bypassSecurityTrustResourceUrl(BarsaApi.Common.File.CreateAttachmentUrl(this.file.Files[0].Id, true));
1601
+ }
1602
+ if (this.fileType === '2') {
1603
+ finalUrl = this._sanitize.bypassSecurityTrustResourceUrl(this.videoUrl);
1604
+ }
1605
+ const isMobile = this.deviceName === 'mobile';
1606
+ const x = {
1607
+ data: {
1608
+ url: finalUrl,
1609
+ isVideo: this.fileType === '2',
1610
+ responsivePadding: true,
1611
+ mobile: isMobile
1612
+ }
1613
+ };
1614
+ if (!isMobile) {
1615
+ x.width = '60%';
1616
+ x.height = '56%';
1617
+ }
1618
+ this._dialogService.open(dialog, x);
1619
+ }
1620
+ }
1621
+ 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 });
1622
+ 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 });
1623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UlvContextMenuItemShowFileContentComponent, decorators: [{
1624
+ type: Component,
1625
+ 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"] }]
1626
+ }], ctorParameters: function () { return [{ type: i1$2.MoReportValuePipe }, { type: i0.ChangeDetectorRef }, { type: i1$3.DialogService }, { type: i3$7.DomSanitizer }]; } });
1627
+
1628
+ class ResendVerificationCodeComponent extends FieldBaseComponent {
1629
+ constructor() {
1630
+ super(...arguments);
1631
+ this.caption = '00:00';
1632
+ this.timer = 1;
1633
+ this.minutes = '0';
1634
+ this.seconds = '0';
1635
+ this.timeLeft = 120;
1636
+ }
1637
+ ngAfterViewInit() {
1638
+ super.ngAfterViewInit();
1639
+ this.caption = `(${this.caption})`;
1640
+ this._startTimer();
1641
+ }
1642
+ ngOnDestroy() {
1643
+ super.ngOnDestroy();
1644
+ if (this.interval$) {
1645
+ clearInterval(this.interval$);
1646
+ }
1647
+ }
1648
+ onClick() {
1649
+ this.context.fireEvent('click', this.context);
1650
+ }
1651
+ onStartTimer() {
1652
+ this._startTimer();
1653
+ }
1654
+ _startTimer() {
1655
+ this.interval$ = setInterval(() => {
1656
+ if (this.timeLeft > 0) {
1657
+ this.timeLeft--;
1658
+ this.minutes = Math.floor(this.timeLeft / 60).toString();
1659
+ this.seconds = Math.round(this.timeLeft % 60).toString();
1660
+ this.minutes = Number(this.minutes) < 10 ? '0' + this.minutes : this.minutes;
1661
+ this.seconds = Number(this.seconds) < 10 ? '0' + this.seconds : this.seconds;
1662
+ this.caption = `(${this.minutes}:${this.seconds})`;
1663
+ }
1664
+ else {
1665
+ this.timeLeft = 120;
1666
+ this.caption = `${this.caption}`;
1667
+ if (this.interval$ != null) {
1668
+ clearInterval(this.interval$);
1669
+ this.interval$ = null;
1670
+ }
1671
+ }
1672
+ this._cdr.detectChanges();
1673
+ }, 1000);
1674
+ }
1675
+ }
1676
+ ResendVerificationCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ResendVerificationCodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1677
+ 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 });
1678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ResendVerificationCodeComponent, decorators: [{
1679
+ type: Component,
1680
+ 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" }]
1681
+ }] });
1682
+
1683
+ class CheckboxButtonComponent extends UiCheckBoxComponent {
1684
+ ngOnInit() {
1685
+ super.ngOnInit();
1686
+ this.trueIcon = this.parameters?.TrueIcon;
1687
+ this.fdType = this.parameters?.FdType$Caption;
1688
+ this.falseIcon = this.parameters?.FalseIcon;
1689
+ }
1690
+ onClick() {
1691
+ this._valueChanged(!this.value);
1692
+ }
1693
+ }
1694
+ CheckboxButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CheckboxButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1695
+ 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 });
1696
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CheckboxButtonComponent, decorators: [{
1697
+ type: Component,
1698
+ 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"] }]
1699
+ }] });
1700
+
1701
+ class BarcodeFormatPipe {
1702
+ transform(value) {
1703
+ let format = '';
1704
+ for (const enumMember of Object.keys(BarcodeFormat)) {
1705
+ const isValueProperty = parseInt(enumMember, 10) >= 0;
1706
+ if (isValueProperty && Number(enumMember) === value) {
1707
+ format = BarcodeFormat[enumMember];
1708
+ }
1709
+ }
1710
+ return format;
1711
+ }
1712
+ }
1713
+ BarcodeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1714
+ BarcodeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: BarcodeFormatPipe, name: "barcodeFormat" });
1715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarcodeFormatPipe, decorators: [{
1716
+ type: Pipe,
1717
+ args: [{
1718
+ name: 'barcodeFormat'
1719
+ }]
1720
+ }] });
1721
+
1722
+ class ReportTabViewComponent extends ReportViewBaseComponent {
1723
+ ngOnInit() {
1724
+ super.ngOnInit();
1725
+ this.arrowRight = this.rtl ? 'navigation-left-arrow' : 'navigation-right-arrow';
1726
+ this.fieldTitle = this.viewSetting.FieldTitle;
1727
+ this.fieldIcon = this.viewSetting.FieldIcon;
1728
+ this.fieldState = this.viewSetting.FieldState;
1729
+ this.mode = this.viewSetting.Mode$Caption;
1730
+ }
1731
+ onSelectedTabChange(e) {
1732
+ const index = this.moDataList.findIndex((c) => c.Id === e.id);
1733
+ const mo = this.moDataList[index];
1734
+ super.onRowCheck({ mo, index });
1735
+ }
1736
+ }
1737
+ ReportTabViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportTabViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1738
+ 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 });
1739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportTabViewComponent, decorators: [{
1740
+ type: Component,
1741
+ 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" }]
1742
+ }] });
1743
+
1744
+ class ReportLineChartViewComponent extends ReportViewBaseComponent {
1745
+ }
1746
+ ReportLineChartViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportLineChartViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1747
+ 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 });
1748
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ReportLineChartViewComponent, decorators: [{
1749
+ type: Component,
1750
+ 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"] }]
1751
+ }] });
1752
+
1753
+ class CardHeaderKpiComponent extends CardHeaderLogoTitleSubtitleComponent {
1754
+ ngOnInit() {
1755
+ const parentField = this.parameters.InheritanceInfo.ParentFieldName;
1756
+ Object.keys(this.parameters[parentField]).forEach((c) => {
1757
+ if (!c.startsWith('$') && c !== 'Id') {
1758
+ this.parameters[c] = this.parameters[parentField][c];
1759
+ }
1760
+ });
1761
+ super.ngOnInit();
1762
+ const parameters = this.parameters;
1763
+ if (parameters != null) {
1764
+ this.kpiValue = this._rval.transform(parameters.KpiValue, this.mo, this.allColumns, true);
1765
+ this.kpiStatus = this._rval.transform(parameters.KpiStatus, this.mo, this.allColumns, true);
1766
+ this.kpiAnalyticalLabel = parameters.KpiAnalyticalLabel;
1767
+ this.kpiAnalayticalSymbol = this._rval.transform(parameters.KpiAnalayticalSymbol, this.mo, this.allColumns);
1768
+ this.kpiAnalyticalContent = this._rval.transform(parameters.KpiAnalyticalContent, this.mo, this.allColumns);
1769
+ }
1770
+ }
1771
+ }
1772
+ CardHeaderKpiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderKpiComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1773
+ 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 });
1774
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardHeaderKpiComponent, decorators: [{
1775
+ type: Component,
1776
+ 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"] }]
1777
+ }] });
1778
+
1779
+ class CardContentLineChartComponent extends BaseItemContentPropsComponent {
1780
+ ngOnInit() {
1781
+ super.ngOnInit();
1782
+ const parameters = this.parameters;
1783
+ const { MethodParametersFieldName, RunBlMethodName } = parameters;
1784
+ const methodParameters = [];
1785
+ MethodParametersFieldName.split(',').forEach((c) => {
1786
+ const value = this.mo[c];
1787
+ if (typeof value === 'object' && value.Id) {
1788
+ methodParameters.push(value.Id);
1789
+ }
1790
+ else {
1791
+ methodParameters.push(value);
1792
+ }
1793
+ });
1794
+ BarsaApi.Bw.RunBlMethodAsync({
1795
+ Parameters: methodParameters,
1796
+ Method: RunBlMethodName,
1797
+ SuccessFn: (chartOption) => {
1798
+ this.chartOption = JSON.parse(chartOption);
1799
+ this._cdr.detectChanges();
1800
+ },
1801
+ FailFn: () => { }
1802
+ });
1803
+ }
1804
+ }
1805
+ CardContentLineChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentLineChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1806
+ 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 });
1807
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: CardContentLineChartComponent, decorators: [{
1808
+ type: Component,
1809
+ 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"] }]
1810
+ }] });
1811
+
1812
+ class FormChartContentComponent extends FormPropsBaseComponent {
1813
+ ngOnInit() {
1814
+ super.ngOnInit();
1815
+ const settings = this.settings;
1816
+ const { MethodParametersFieldName, RunBlMethodName } = settings;
1817
+ const methodParameters = [];
1818
+ MethodParametersFieldName.split(',').forEach((c) => {
1819
+ const value = this.mo[c];
1820
+ if (typeof value === 'object' && value.Id) {
1821
+ methodParameters.push(value.Id);
1822
+ }
1823
+ else {
1824
+ methodParameters.push(value);
1825
+ }
1826
+ });
1827
+ BarsaApi.Bw.RunBlMethodAsync({
1828
+ Parameters: methodParameters,
1829
+ Method: RunBlMethodName,
1830
+ SuccessFn: (chartOption) => {
1831
+ this.chartOption = JSON.parse(chartOption);
1832
+ this._cdr.detectChanges();
1833
+ },
1834
+ FailFn: () => { }
1835
+ });
1836
+ }
1837
+ }
1838
+ FormChartContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormChartContentComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1839
+ 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 });
1840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: FormChartContentComponent, decorators: [{
1841
+ type: Component,
1842
+ 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"] }]
1843
+ }] });
1844
+
1845
+ class TableViewVerticalColumnsComponent extends ReportViewBaseComponent {
1846
+ }
1847
+ TableViewVerticalColumnsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableViewVerticalColumnsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1848
+ 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 });
1849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableViewVerticalColumnsComponent, decorators: [{
1850
+ type: Component,
1851
+ 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" }]
1852
+ }] });
1853
+
1854
+ class QueryStringObservableComponent extends FieldBaseComponent {
1855
+ ngOnInit() {
1856
+ super.ngOnInit();
1857
+ this._activatedRoute.queryParams.subscribe((queryParams) => {
1858
+ const value = queryParams[this.Setting.ControlName];
1859
+ if (value) {
1860
+ this.value = value;
1861
+ this.valueChange.emit(this.value);
1862
+ }
1863
+ });
1864
+ }
1865
+ }
1866
+ QueryStringObservableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: QueryStringObservableComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1867
+ 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 });
1868
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: QueryStringObservableComponent, decorators: [{
1869
+ type: Component,
1870
+ args: [{ selector: 'bdc-query-string-observable', changeDetection: ChangeDetectionStrategy.OnPush, template: "" }]
1871
+ }] });
1872
+
1873
+ class QueryStringFormObservableComponent extends BaseComponent {
1874
+ constructor(_activatedRoute, _router, _portalService) {
1875
+ super();
1876
+ this._activatedRoute = _activatedRoute;
1877
+ this._router = _router;
1878
+ this._portalService = _portalService;
1879
+ }
1880
+ ngOnInit() {
1881
+ super.ngOnInit();
1882
+ this._portalService.navigationEnd$.pipe(takeUntil$1(this._onDestroy$)).subscribe((event) => {
1883
+ if (event?.url.endsWith('/query')) {
1884
+ this._router.navigate(['../']);
1885
+ }
1886
+ });
1887
+ const params = this._activatedRoute.snapshot.queryParams;
1888
+ const strActionList = params['actionList'];
1889
+ if (strActionList) {
1890
+ const actionList = JSON.parse(strActionList.replaceAll("'", '"'));
1891
+ if (actionList) {
1892
+ BarsaApi.Ul.WorkflowPanelCtrlr.RunWorkflowActionList(actionList, null);
1893
+ }
1894
+ }
1895
+ }
1896
+ }
1897
+ 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 });
1898
+ 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 });
1899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: QueryStringFormObservableComponent, decorators: [{
1900
+ type: Component,
1901
+ args: [{ selector: 'bdc-query-string-form-observable', changeDetection: ChangeDetectionStrategy.OnPush, template: "" }]
1902
+ }], ctorParameters: function () { return [{ type: i4$3.ActivatedRoute }, { type: i4$3.Router }, { type: i1$2.PortalService }]; } });
1903
+
1904
+ class G4bDetailsComponent extends BaseItemContentPropsComponent {
1905
+ ngOnInit() {
1906
+ super.ngOnInit();
1907
+ this._containerRef.createEmbeddedView(this.setting.$detailsFormItems, {
1908
+ $implicit: this.setting.$detailsColumns,
1909
+ mo: this.mo,
1910
+ inlineEditMode: this.inlineEditMode,
1911
+ isNewInlineMo: this.isNewInlineMo,
1912
+ layout94: this.layout94$
1913
+ });
1914
+ }
1915
+ }
1916
+ G4bDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bDetailsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1917
+ 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 });
1918
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bDetailsComponent, decorators: [{
1919
+ type: Component,
1920
+ 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"] }]
1921
+ }], propDecorators: { _containerRef: [{
1922
+ type: ViewChild,
1923
+ args: ['container', { static: true, read: ViewContainerRef }]
1924
+ }] } });
1925
+
1926
+ class AvatarComponent extends BaseItemContentPropsComponent {
1927
+ ngOnInit() {
1928
+ super.ngOnInit();
1929
+ this.pictureId = this.mo[this.parameters.FieldName]?.FileId;
1930
+ }
1931
+ }
1932
+ AvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: AvatarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1933
+ 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 });
1934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: AvatarComponent, decorators: [{
1935
+ type: Component,
1936
+ 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"] }]
1937
+ }] });
1938
+
1939
+ class G4bEstelamComponent extends BaseItemContentPropsComponent {
1940
+ constructor() {
1941
+ super(...arguments);
1942
+ this.natijeh = 1;
1943
+ this.options = ['رد استعلام', 'تایید استعلام', 'در انتظار پاسخ'];
1944
+ }
1945
+ ngOnInit() {
1946
+ super.ngOnInit();
1947
+ }
1948
+ onClick(e) {
1949
+ if (this.isChecked) {
1950
+ e.stopPropagation();
1951
+ e.preventDefault();
1952
+ }
1953
+ }
1954
+ }
1955
+ G4bEstelamComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bEstelamComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1956
+ 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 });
1957
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: G4bEstelamComponent, decorators: [{
1958
+ type: Component,
1959
+ 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"] }]
1960
+ }] });
1961
+
1962
+ class TimerCountDownComponent extends FieldBaseComponent {
1963
+ ngOnInit() {
1964
+ super.ngOnInit();
1965
+ this._setCountDown(this.value);
1966
+ }
1967
+ _setValue(value) {
1968
+ super._setValue(value);
1969
+ this._setCountDown(value);
1970
+ }
1971
+ _setCountDown(value) {
1972
+ const keysInValue = Object.keys(value);
1973
+ let _tempValue = value;
1974
+ if (keysInValue.length) {
1975
+ const findKeyDate = keysInValue.find((c) => !isNaN(Date.parse(value[c])));
1976
+ if (findKeyDate) {
1977
+ _tempValue = new Date(value[findKeyDate]);
1978
+ }
1979
+ }
1980
+ const exp = this._dateService.getMoment(_tempValue);
1981
+ if (this._interval) {
1982
+ clearInterval(this._interval);
1983
+ this._interval = null;
1984
+ }
1985
+ this._interval = setInterval(() => {
1986
+ const now = this._dateService.getMoment(new Date());
1987
+ const diffDuration = this._dateService.duration(exp.diff(now));
1988
+ const month = diffDuration.months();
1989
+ const days = diffDuration.days();
1990
+ const hours = diffDuration.hours().toLocaleString('en-US', {
1991
+ minimumIntegerDigits: 2,
1992
+ useGrouping: false
1993
+ });
1994
+ const minutes = diffDuration.minutes().toLocaleString('en-US', {
1995
+ minimumIntegerDigits: 2,
1996
+ useGrouping: false
1997
+ });
1998
+ const seconds = diffDuration.seconds().toLocaleString('en-US', {
1999
+ minimumIntegerDigits: 2,
2000
+ useGrouping: false
2001
+ });
2002
+ this.countDownText = `
2003
+ ${this._getMonthText(month)}
2004
+ ${this._daysText(days)}
2005
+ ${this._getTimeText(hours, minutes, seconds)}`;
2006
+ this._cdr.detectChanges();
2007
+ }, 1000);
2008
+ }
2009
+ _getMonthText(month) {
2010
+ return month > 0 ? `${month} ماه` : '';
2011
+ }
2012
+ _daysText(days) {
2013
+ return days > 0 ? `${days} روز` : '';
2014
+ }
2015
+ _getTimeText(hours, minutes, seconds) {
2016
+ return `${hours}:${minutes}:${seconds}`;
2017
+ }
2018
+ }
2019
+ TimerCountDownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TimerCountDownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2020
+ TimerCountDownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TimerCountDownComponent, selector: "bdc-timer-count-down", providers: [
2021
+ {
2022
+ provide: DateService,
2023
+ useFactory: getDateService,
2024
+ deps: [LogService]
2025
+ }
2026
+ ], usesInheritance: true, ngImport: i0, template: "<span>{{ countDownText }}</span>\n", styles: [":host{display:block;width:110px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TimerCountDownComponent, decorators: [{
2028
+ type: Component,
2029
+ args: [{ selector: 'bdc-timer-count-down', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
2030
+ {
2031
+ provide: DateService,
2032
+ useFactory: getDateService,
2033
+ deps: [LogService]
2034
+ }
2035
+ ], template: "<span>{{ countDownText }}</span>\n", styles: [":host{display:block;width:110px}\n"] }]
2036
+ }] });
2037
+
2038
+ class MicroProccessFlowComponent extends BaseComponent {
2039
+ constructor() {
2040
+ super(...arguments);
2041
+ this.selectedChange = new EventEmitter();
2042
+ }
2043
+ ngOnInit() {
2044
+ super.ngOnInit();
2045
+ this._setIndex(this.selected, this.items);
2046
+ }
2047
+ onItemClick(item) {
2048
+ this.selectedChange.emit(item);
2049
+ }
2050
+ ngOnChanges(changes) {
2051
+ const { selected, items } = changes;
2052
+ if (selected && !selected.firstChange) {
2053
+ this._setIndex(selected.currentValue, this.items);
2054
+ }
2055
+ else if (items && !items.firstChange) {
2056
+ this._setIndex(this.selected, items.currentValue);
2057
+ }
2058
+ }
2059
+ _setIndex(val, items) {
2060
+ this.selectedIndex = items.findIndex((c) => (this.idIskey ? c.id === val : c.label === val));
2061
+ }
2062
+ }
2063
+ MicroProccessFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProccessFlowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2064
+ 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 });
2065
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MicroProccessFlowComponent, decorators: [{
2066
+ type: Component,
2067
+ 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"] }]
2068
+ }], propDecorators: { items: [{
2069
+ type: Input
2070
+ }], selected: [{
2071
+ type: Input
2072
+ }], readonly: [{
2073
+ type: Input
2074
+ }], idIskey: [{
2075
+ type: Input
2076
+ }], selectedChange: [{
2077
+ type: Output
2078
+ }] } });
2079
+
2080
+ class MoListToFlowItemPipe {
2081
+ constructor() { }
2082
+ transform(moList) {
2083
+ const flowItems = moList.map((item) => ({
2084
+ icon: '',
2085
+ id: item.Id,
2086
+ label: item.$Caption
2087
+ }));
2088
+ return flowItems;
2089
+ }
2090
+ }
2091
+ MoListToFlowItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoListToFlowItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2092
+ MoListToFlowItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: MoListToFlowItemPipe, name: "moListToFlowItem" });
2093
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoListToFlowItemPipe, decorators: [{
2094
+ type: Pipe,
2095
+ args: [{
2096
+ name: 'moListToFlowItem'
2097
+ }]
2098
+ }], ctorParameters: function () { return []; } });
2099
+
2100
+ class MoInfoMicroProccessFlowComponent extends UiMoInfoUlvComboComponent {
2101
+ ngOnInit() {
2102
+ super.ngOnInit();
2103
+ this._triggerClick('Normal');
2104
+ }
2105
+ onSelectedChange(item) {
2106
+ this._raiseValueChanged(item.label);
2107
+ }
2108
+ }
2109
+ MoInfoMicroProccessFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoInfoMicroProccessFlowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2110
+ 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 });
2111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: MoInfoMicroProccessFlowComponent, decorators: [{
2112
+ type: Component,
2113
+ 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" }]
2114
+ }] });
2115
+
2116
+ class DataSourceToFlowItemPipe {
2117
+ constructor() { }
2118
+ transform(datasource) {
2119
+ const flowItems = datasource.map((item) => ({
2120
+ icon: '',
2121
+ id: item.id,
2122
+ label: item.txt
2123
+ }));
2124
+ return flowItems;
2125
+ }
2126
+ }
2127
+ DataSourceToFlowItemPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DataSourceToFlowItemPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2128
+ DataSourceToFlowItemPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: DataSourceToFlowItemPipe, name: "datasourceToFlowItem" });
2129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: DataSourceToFlowItemPipe, decorators: [{
2130
+ type: Pipe,
2131
+ args: [{
2132
+ name: 'datasourceToFlowItem'
2133
+ }]
2134
+ }], ctorParameters: function () { return []; } });
2135
+
2136
+ class EnumInfoMicroProccessFlowComponent extends UiSimpleComboComponent {
2137
+ onSelectedChange(item) {
2138
+ this._handleValueChange(item.id);
2139
+ }
2140
+ }
2141
+ EnumInfoMicroProccessFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EnumInfoMicroProccessFlowComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2142
+ 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 });
2143
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: EnumInfoMicroProccessFlowComponent, decorators: [{
2144
+ type: Component,
2145
+ 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" }]
2146
+ }] });
2147
+
2148
+ class UiPicturesCarouselComponent extends UiPicturesInfoComponent {
2149
+ }
2150
+ UiPicturesCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPicturesCarouselComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2151
+ 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 });
2152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiPicturesCarouselComponent, decorators: [{
2153
+ type: Component,
2154
+ 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" }]
2155
+ }] });
2156
+
2157
+ class UiNumRateComponent extends UiNumIntUiComponent {
2158
+ onRatingChanged(val) {
2159
+ this.value = val;
2160
+ this.valueChange.emit(this.value);
2161
+ }
2162
+ }
2163
+ UiNumRateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiNumRateComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
2164
+ 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 });
2165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: UiNumRateComponent, decorators: [{
2166
+ type: Component,
2167
+ 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" }]
2168
+ }] });
2169
+
2170
+ const components = [
2171
+ LoginFormComponent,
2172
+ LoginSocialConncetionsComponent,
2173
+ UiPersonComponent,
2174
+ BarcodeReaderComponent,
2175
+ BarcodeReaderDialogComponent,
2176
+ BarcodeReaderVideoComponent,
2177
+ SettingFormComponent,
2178
+ MicroProcessFlowViewComponent,
2179
+ UiEnumSegmentedButtonComponent,
2180
+ TabProcessViewComponent,
2181
+ UiTextFieldSearchComponent,
2182
+ ServiceDeskHeaderComponent,
2183
+ CardContentImageAndTitleComponent,
2184
+ CardHeaderLogoTitleSubtitleComponent,
2185
+ FormContentQuickViewComponent,
2186
+ ServiceDeskServcieDetailComponent,
2187
+ ServiceDeskViewOfServicesComponent,
2188
+ ServiceDeskCardContentMojavezhayAkhzShodeComponent,
2189
+ CardHeaderBigImageTitleAndSubtitleComponent,
2190
+ ServiceDeskFormLayoutContentMojavezComponent,
2191
+ UlvContextMenuItemShowFileContentComponent,
2192
+ ResendVerificationCodeComponent,
2193
+ CheckboxButtonComponent,
2194
+ ReportTabViewComponent,
2195
+ ReportLineChartViewComponent,
2196
+ CardHeaderKpiComponent,
2197
+ CardContentLineChartComponent,
2198
+ FormChartContentComponent,
2199
+ TableViewVerticalColumnsComponent,
2200
+ QueryStringObservableComponent,
2201
+ QueryStringFormObservableComponent,
2202
+ G4bDetailsComponent,
2203
+ AvatarComponent,
2204
+ G4bEstelamComponent,
2205
+ TimerCountDownComponent,
2206
+ MoInfoMicroProccessFlowComponent,
2207
+ MicroProccessFlowComponent,
2208
+ EnumInfoMicroProccessFlowComponent,
2209
+ UiPicturesCarouselComponent,
2210
+ UiNumRateComponent
2211
+ ];
2212
+ const pipes = [UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe];
2213
+ class BarsaDevelopComponentsModule extends BaseModule {
2214
+ constructor(dcm, cfr) {
2215
+ super(dcm, cfr, 'BarsaDevelopComponentsModule');
2216
+ this.dcm = dcm;
2217
+ this.cfr = cfr;
2218
+ this.dynamicComponents = [...components];
2219
+ }
2220
+ }
2221
+ 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 });
2222
+ BarsaDevelopComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, declarations: [LoginFormComponent,
2223
+ LoginSocialConncetionsComponent,
2224
+ UiPersonComponent,
2225
+ BarcodeReaderComponent,
2226
+ BarcodeReaderDialogComponent,
2227
+ BarcodeReaderVideoComponent,
2228
+ SettingFormComponent,
2229
+ MicroProcessFlowViewComponent,
2230
+ UiEnumSegmentedButtonComponent,
2231
+ TabProcessViewComponent,
2232
+ UiTextFieldSearchComponent,
2233
+ ServiceDeskHeaderComponent,
2234
+ CardContentImageAndTitleComponent,
2235
+ CardHeaderLogoTitleSubtitleComponent,
2236
+ FormContentQuickViewComponent,
2237
+ ServiceDeskServcieDetailComponent,
2238
+ ServiceDeskViewOfServicesComponent,
2239
+ ServiceDeskCardContentMojavezhayAkhzShodeComponent,
2240
+ CardHeaderBigImageTitleAndSubtitleComponent,
2241
+ ServiceDeskFormLayoutContentMojavezComponent,
2242
+ UlvContextMenuItemShowFileContentComponent,
2243
+ ResendVerificationCodeComponent,
2244
+ CheckboxButtonComponent,
2245
+ ReportTabViewComponent,
2246
+ ReportLineChartViewComponent,
2247
+ CardHeaderKpiComponent,
2248
+ CardContentLineChartComponent,
2249
+ FormChartContentComponent,
2250
+ TableViewVerticalColumnsComponent,
2251
+ QueryStringObservableComponent,
2252
+ QueryStringFormObservableComponent,
2253
+ G4bDetailsComponent,
2254
+ AvatarComponent,
2255
+ G4bEstelamComponent,
2256
+ TimerCountDownComponent,
2257
+ MoInfoMicroProccessFlowComponent,
2258
+ MicroProccessFlowComponent,
2259
+ EnumInfoMicroProccessFlowComponent,
2260
+ UiPicturesCarouselComponent,
2261
+ UiNumRateComponent, UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe], imports: [CommonModule,
2262
+ BarsaNovinRayCoreModule,
2263
+ ReactiveFormsModule,
2264
+ BarsaSapUiModule,
2265
+ BarsaEchartsModule,
2266
+ BarsaTilesModule,
2267
+ FundamentalNgxCoreModule,
2268
+ FundamentalNgxPlatformModule,
2269
+ FormsModule], exports: [LoginFormComponent,
2270
+ LoginSocialConncetionsComponent,
2271
+ UiPersonComponent,
2272
+ BarcodeReaderComponent,
2273
+ BarcodeReaderDialogComponent,
2274
+ BarcodeReaderVideoComponent,
2275
+ SettingFormComponent,
2276
+ MicroProcessFlowViewComponent,
2277
+ UiEnumSegmentedButtonComponent,
2278
+ TabProcessViewComponent,
2279
+ UiTextFieldSearchComponent,
2280
+ ServiceDeskHeaderComponent,
2281
+ CardContentImageAndTitleComponent,
2282
+ CardHeaderLogoTitleSubtitleComponent,
2283
+ FormContentQuickViewComponent,
2284
+ ServiceDeskServcieDetailComponent,
2285
+ ServiceDeskViewOfServicesComponent,
2286
+ ServiceDeskCardContentMojavezhayAkhzShodeComponent,
2287
+ CardHeaderBigImageTitleAndSubtitleComponent,
2288
+ ServiceDeskFormLayoutContentMojavezComponent,
2289
+ UlvContextMenuItemShowFileContentComponent,
2290
+ ResendVerificationCodeComponent,
2291
+ CheckboxButtonComponent,
2292
+ ReportTabViewComponent,
2293
+ ReportLineChartViewComponent,
2294
+ CardHeaderKpiComponent,
2295
+ CardContentLineChartComponent,
2296
+ FormChartContentComponent,
2297
+ TableViewVerticalColumnsComponent,
2298
+ QueryStringObservableComponent,
2299
+ QueryStringFormObservableComponent,
2300
+ G4bDetailsComponent,
2301
+ AvatarComponent,
2302
+ G4bEstelamComponent,
2303
+ TimerCountDownComponent,
2304
+ MoInfoMicroProccessFlowComponent,
2305
+ MicroProccessFlowComponent,
2306
+ EnumInfoMicroProccessFlowComponent,
2307
+ UiPicturesCarouselComponent,
2308
+ UiNumRateComponent] });
2309
+ BarsaDevelopComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, providers: [UserMediaBaseService, WebBarcodeService], imports: [CommonModule,
2310
+ BarsaNovinRayCoreModule,
2311
+ ReactiveFormsModule,
2312
+ BarsaSapUiModule,
2313
+ BarsaEchartsModule,
2314
+ BarsaTilesModule,
2315
+ FundamentalNgxCoreModule,
2316
+ FundamentalNgxPlatformModule,
2317
+ FormsModule] });
2318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, decorators: [{
2319
+ type: NgModule,
2320
+ args: [{
2321
+ declarations: [...components, ...pipes],
2322
+ schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
2323
+ imports: [
2324
+ CommonModule,
2325
+ BarsaNovinRayCoreModule,
2326
+ ReactiveFormsModule,
2327
+ BarsaSapUiModule,
2328
+ BarsaEchartsModule,
2329
+ BarsaTilesModule,
2330
+ FundamentalNgxCoreModule,
2331
+ FundamentalNgxPlatformModule,
2332
+ FormsModule
2333
+ ],
2334
+ providers: [UserMediaBaseService, WebBarcodeService],
2335
+ exports: [...components]
2336
+ }]
2337
+ }], ctorParameters: function () { return [{ type: i1$2.DynamicComponentService }, { type: i0.ComponentFactoryResolver }]; } });
2338
+
2339
+ /**
2340
+ * Generated bundle index. Do not edit.
2341
+ */
2342
+
2343
+ 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 };
2344
+ //# sourceMappingURL=barsa-develop-components.mjs.map