barsa-sap-ui 2.0.135 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/barsa-sap-ui.mjs +984 -957
- package/fesm2022/barsa-sap-ui.mjs.map +1 -1
- package/lib/barsa-sap-ui.module.d.ts +5 -4
- package/lib/fundamental-dynamic-form/fundamental-dynamic-form.component.d.ts +3 -3
- package/lib/ly-tab-container/ly-tab-container.component.d.ts +2 -4
- package/lib/ly-tab-page/ly-tab-page.component.d.ts +2 -2
- package/lib/report-view-renderer.directive.d.ts +1 -1
- package/lib/ui-map/ui-map.component.d.ts +2 -0
- package/package.json +3 -5
- package/esm2022/barsa-sap-ui.mjs +0 -5
- package/esm2022/lib/apply-conditional-formmatings.directive.mjs +0 -89
- package/esm2022/lib/avatar-size.pipe.mjs +0 -40
- package/esm2022/lib/barsa-answer-card/barsa-answer-card.component.mjs +0 -41
- package/esm2022/lib/barsa-asp-viewer/barsa-asp-viewer.component.mjs +0 -145
- package/esm2022/lib/barsa-bar-panel/barsa-bar-panel.component.mjs +0 -23
- package/esm2022/lib/barsa-base-panel/barsa-base-layout-panel.component.mjs +0 -29
- package/esm2022/lib/barsa-breadcrumbs/barsa-breadcrumbs.component.mjs +0 -24
- package/esm2022/lib/barsa-card-layout-panel/barsa-card-layout-panel.component.mjs +0 -24
- package/esm2022/lib/barsa-card-row-payam/barsa-card-row-payam.component.mjs +0 -30
- package/esm2022/lib/barsa-cartable-form/barsa-cartable-form.component.mjs +0 -41
- package/esm2022/lib/barsa-cartable-template/barsa-cartable-template.component.mjs +0 -24
- package/esm2022/lib/barsa-chat/barsa-chat.component.mjs +0 -242
- package/esm2022/lib/barsa-chat/chat.model.mjs +0 -8
- package/esm2022/lib/barsa-chat-content/barsa-chat-content.component.mjs +0 -13
- package/esm2022/lib/barsa-chat-content-toolbar/barsa-chat-content-toolbar.component.mjs +0 -22
- package/esm2022/lib/barsa-chat-list/barsa-chat-list.component.mjs +0 -66
- package/esm2022/lib/barsa-chat-message/barsa-chat-message.component.mjs +0 -78
- package/esm2022/lib/barsa-chat-thread/barsa-chat-thread.component.mjs +0 -22
- package/esm2022/lib/barsa-chat-threads-list/barsa-chat-threads-list.component.mjs +0 -13
- package/esm2022/lib/barsa-chat-threads-list-toolbar/barsa-chat-threads-list-toolbar.component.mjs +0 -15
- package/esm2022/lib/barsa-chip/barsa-chip.component.mjs +0 -72
- package/esm2022/lib/barsa-column-indicator/barsa-column-indicator.component.mjs +0 -23
- package/esm2022/lib/barsa-column-rownumber/barsa-column-rownumber.component.mjs +0 -14
- package/esm2022/lib/barsa-custom-inline-edit/barsa-custom-inline-edit.component.mjs +0 -14
- package/esm2022/lib/barsa-custom-inline-edit-row/barsa-custom-inline-edit-row.component.mjs +0 -26
- package/esm2022/lib/barsa-date-time-picker/barsa-date-time-picker.component.mjs +0 -71
- package/esm2022/lib/barsa-dynamic-field/barsa-dynamic-field.component.mjs +0 -40
- package/esm2022/lib/barsa-enum-menu-button/barsa-enum-menu-button.component.mjs +0 -61
- package/esm2022/lib/barsa-field-key-value/barsa-field-key-value.component.mjs +0 -45
- package/esm2022/lib/barsa-form-side-content/barsa-form-side-content.component.mjs +0 -58
- package/esm2022/lib/barsa-grid-layout-panel/barsa-grid-layout-panel.component.mjs +0 -27
- package/esm2022/lib/barsa-group-cartable/barsa-cartable-group.component.mjs +0 -94
- package/esm2022/lib/barsa-horizontal-flex-panel/barsa-horizontal-flex-panel.component.mjs +0 -22
- package/esm2022/lib/barsa-linkable-items-panel/barsa-linkable-items-panel.component.mjs +0 -37
- package/esm2022/lib/barsa-list-file-linear/barsa-list-file-linear.component.mjs +0 -41
- package/esm2022/lib/barsa-list-file-linear-gmail/barsa-list-file-linear-gmail.component.mjs +0 -29
- package/esm2022/lib/barsa-list-layout-panel/barsa-list-layout-panel.component.mjs +0 -23
- package/esm2022/lib/barsa-modal/barsa-modal.component.mjs +0 -43
- package/esm2022/lib/barsa-monaco-editor/barsa-monaco-editor.component.mjs +0 -83
- package/esm2022/lib/barsa-network-offline/barsa-network-offline.component.mjs +0 -57
- package/esm2022/lib/barsa-pishnamayesh-payam/barsa-pishnamayesh-payam.component.mjs +0 -159
- package/esm2022/lib/barsa-question-answer-comments-section/barsa-question-answer-comments-section.component.mjs +0 -17
- package/esm2022/lib/barsa-question-answer-content-actions-section/barsa-question-answer-content-actions-section.component.mjs +0 -30
- package/esm2022/lib/barsa-question-answer-creator-time-section/barsa-question-answer-creator-time-section.component.mjs +0 -14
- package/esm2022/lib/barsa-question-answer-form/barsa-question-answer-form.component.mjs +0 -34
- package/esm2022/lib/barsa-question-answer-form-add-comment/barsa-question-answer-form-add-comment.component.mjs +0 -46
- package/esm2022/lib/barsa-question-answer-vote-section/barsa-question-answer-vote-section.component.mjs +0 -79
- package/esm2022/lib/barsa-question-post/barsa-question-post.component.mjs +0 -30
- package/esm2022/lib/barsa-report-card-flex-view/barsa-report-card-flex-view.component.mjs +0 -31
- package/esm2022/lib/barsa-report-checkbox-switch-button/barsa-report-checkbox-switch-button.component.mjs +0 -28
- package/esm2022/lib/barsa-report-one-of-list/barsa-report-one-of-list.component.mjs +0 -102
- package/esm2022/lib/barsa-row-inline-actionlist/barsa-row-inline-actionlist.component.mjs +0 -26
- package/esm2022/lib/barsa-sap-ui-routing.module.mjs +0 -18
- package/esm2022/lib/barsa-sap-ui.module.mjs +0 -370
- package/esm2022/lib/barsa-search-form/barsa-search-form.component.mjs +0 -29
- package/esm2022/lib/barsa-simple-form/barsa-simple-form.component.mjs +0 -170
- package/esm2022/lib/barsa-tab-route-manager/barsa-tab-route-manager.component.mjs +0 -18
- package/esm2022/lib/barsa-table-column/barsa-table-column.component.mjs +0 -29
- package/esm2022/lib/barsa-table-header/barsa-table-header.component.mjs +0 -222
- package/esm2022/lib/barsa-table-row/barsa-table-row.component.mjs +0 -87
- package/esm2022/lib/barsa-tag-categories/barsa-tag-categories.component.mjs +0 -60
- package/esm2022/lib/barsa-tag-chip/barsa-tag-chip.component.mjs +0 -26
- package/esm2022/lib/barsa-tags-category-row/barsa-tags-category-row.component.mjs +0 -23
- package/esm2022/lib/barsa-text-ellipsis/barsa-text-ellipsis.component.mjs +0 -37
- package/esm2022/lib/barsa-tinyemce/barsa-tinyemce.component.mjs +0 -418
- package/esm2022/lib/barsa-toolbaritem-search/barsa-toolbaritem-search.component.mjs +0 -36
- package/esm2022/lib/barsa-tree-item/barsa-tree-item.component.mjs +0 -153
- package/esm2022/lib/barsa-tree-item/node-has-one-depth-level.pipe.mjs +0 -19
- package/esm2022/lib/barsa-ulv-main/barsa-ulv-main.component.mjs +0 -216
- package/esm2022/lib/blob-viewer/blob-viewer.component.mjs +0 -74
- package/esm2022/lib/breadcrumb/breadcrumb.component.mjs +0 -50
- package/esm2022/lib/captcha-field/captcha-field.component.mjs +0 -28
- package/esm2022/lib/card-item/card-item.component.mjs +0 -64
- package/esm2022/lib/card-view-content/card-view-content.component.mjs +0 -46
- package/esm2022/lib/col-renderer.directive.mjs +0 -46
- package/esm2022/lib/column-matrix-renderer/column-matrix-renderer.component.mjs +0 -56
- package/esm2022/lib/column-matrix-renderer/matrix-value.pipe.mjs +0 -60
- package/esm2022/lib/column-renderer/column-renderer.component.mjs +0 -88
- package/esm2022/lib/constants.mjs +0 -425
- package/esm2022/lib/custom-date-time/custom-date-time.component.mjs +0 -41
- package/esm2022/lib/device-info-field-base.mjs +0 -23
- package/esm2022/lib/dialog-handler.directive.mjs +0 -28
- package/esm2022/lib/download-files.directive.mjs +0 -33
- package/esm2022/lib/dynamic-page-size.pipe.mjs +0 -26
- package/esm2022/lib/file-in-dialog/file-in-dialog.component.mjs +0 -44
- package/esm2022/lib/file-viewer/file-viewer.component.mjs +0 -47
- package/esm2022/lib/file-viewer-content/file-viewer-content.component.mjs +0 -71
- package/esm2022/lib/file-viewer-popover/file-viewer-popover.component.mjs +0 -39
- package/esm2022/lib/form-dialog/form-dialog.component.mjs +0 -171
- package/esm2022/lib/form-dialog-less/form-dialog-less.component.mjs +0 -50
- package/esm2022/lib/form-toolbar/form-toolbar.component.mjs +0 -62
- package/esm2022/lib/form-toolbar-button/form-toolbar-button.component.mjs +0 -45
- package/esm2022/lib/form-wizard/form-wizard.component.mjs +0 -21
- package/esm2022/lib/fullscreen-dialog.directive.mjs +0 -59
- package/esm2022/lib/fullscreen-files.directive.mjs +0 -42
- package/esm2022/lib/fundamental-dynamic-form/fundamental-dynamic-form.component.mjs +0 -215
- package/esm2022/lib/gantt-dhtml-chart-view/gantt-dhtml-chart-view.component.mjs +0 -215
- package/esm2022/lib/global-search/global-search.component.mjs +0 -27
- package/esm2022/lib/global-search-module/global-search-module.component.mjs +0 -29
- package/esm2022/lib/global-search-panel/global-search-panel.component.mjs +0 -25
- package/esm2022/lib/header-avatar/header-avatar.component.mjs +0 -18
- package/esm2022/lib/htree-create-new/htree-create-new.component.mjs +0 -48
- package/esm2022/lib/hyperlink/hyperlink.component.mjs +0 -23
- package/esm2022/lib/index.mjs +0 -543
- package/esm2022/lib/inline-save-and-cancel/inline-save-and-cancel.component.mjs +0 -32
- package/esm2022/lib/layout-actions/layout-actions.component.mjs +0 -70
- package/esm2022/lib/layout-control/layout-control.component.mjs +0 -302
- package/esm2022/lib/layout-wizard/layout-wizard.component.mjs +0 -183
- package/esm2022/lib/list-item/list-item.component.mjs +0 -34
- package/esm2022/lib/ly-empty-space/ly-empty-space.component.mjs +0 -42
- package/esm2022/lib/ly-horizontal-layout/ly-horizontal-layout.component.mjs +0 -82
- package/esm2022/lib/ly-label/ly-label.component.mjs +0 -37
- package/esm2022/lib/ly-layout-container/ly-layout-container.component.mjs +0 -83
- package/esm2022/lib/ly-layout-container-of-root/ly-layout-container-of-root.component.mjs +0 -17
- package/esm2022/lib/ly-layout-field-label/ly-layout-field-label.component.mjs +0 -24
- package/esm2022/lib/ly-layout-panel/ly-layout-panel.component.mjs +0 -83
- package/esm2022/lib/ly-line/ly-line.component.mjs +0 -56
- package/esm2022/lib/ly-simple-label/ly-simple-label.component.mjs +0 -22
- package/esm2022/lib/ly-tab-container/ly-tab-container.component.mjs +0 -52
- package/esm2022/lib/ly-tab-page/ly-tab-page.component.mjs +0 -44
- package/esm2022/lib/ly-vertical-layout/ly-vertical-layout.component.mjs +0 -51
- package/esm2022/lib/manage-filters-report/manage-filters-report.component.mjs +0 -43
- package/esm2022/lib/mask/mask.component.mjs +0 -22
- package/esm2022/lib/message-strip/message-strip.component.mjs +0 -28
- package/esm2022/lib/models/grid-data-provider.mjs +0 -114
- package/esm2022/lib/models/grid-view.mjs +0 -2
- package/esm2022/lib/models/index.mjs +0 -2
- package/esm2022/lib/no-data/no-data.component.mjs +0 -31
- package/esm2022/lib/notification-item/notification-item.component.mjs +0 -57
- package/esm2022/lib/notification-popup.service.mjs +0 -92
- package/esm2022/lib/object-status-icon.pipe.mjs +0 -26
- package/esm2022/lib/progress-indicator/progress-indicator.component.mjs +0 -18
- package/esm2022/lib/report-navigator/report-navigator.component.mjs +0 -68
- package/esm2022/lib/report-new-top-form/report-new-top-form.component.mjs +0 -60
- package/esm2022/lib/report-search-fields-hidden-settings/report-search-fields-hidden-settings.component.mjs +0 -35
- package/esm2022/lib/report-search-fields-manage/report-search-fields-manage.component.mjs +0 -97
- package/esm2022/lib/report-search-panel-save/report-search-panel-save.component.mjs +0 -88
- package/esm2022/lib/report-tree-base.mjs +0 -386
- package/esm2022/lib/report-view-renderer.directive.mjs +0 -385
- package/esm2022/lib/responsive-toolbar/responsive-toolbar.component.mjs +0 -50
- package/esm2022/lib/responsive-toolbar-renderer/responsive-toolbar-renderer.component.mjs +0 -84
- package/esm2022/lib/rich-text-static/rich-text-static.component.mjs +0 -72
- package/esm2022/lib/sap-font-class.pipe.mjs +0 -29
- package/esm2022/lib/sap-font.pipe.mjs +0 -29
- package/esm2022/lib/sap-size.pipe.mjs +0 -27
- package/esm2022/lib/sap-ui-report-base.component.mjs +0 -805
- package/esm2022/lib/search-panel/search-panel.component.mjs +0 -63
- package/esm2022/lib/static-text/static-text.component.mjs +0 -15
- package/esm2022/lib/table-th.directive.mjs +0 -86
- package/esm2022/lib/title/title.component.mjs +0 -15
- package/esm2022/lib/ui-asp-report-viewer/ui-asp-report-viewer.component.mjs +0 -34
- package/esm2022/lib/ui-bpmn-viewer/ui-bpmn-viewer.component.mjs +0 -33
- package/esm2022/lib/ui-button/ui-button.component.mjs +0 -32
- package/esm2022/lib/ui-calendar/ui-calendar.component.mjs +0 -53
- package/esm2022/lib/ui-card-view/ui-card-view.component.mjs +0 -57
- package/esm2022/lib/ui-card-view-horizontal-group/ui-card-view-horizontal-group.component.mjs +0 -42
- package/esm2022/lib/ui-check-box/ui-check-box.component.mjs +0 -39
- package/esm2022/lib/ui-color-ui/ui-color-ui.component.mjs +0 -50
- package/esm2022/lib/ui-container-with-button/ui-container-with-button.component.mjs +0 -38
- package/esm2022/lib/ui-date-range-ex/ui-date-range-ex.component.mjs +0 -191
- package/esm2022/lib/ui-date-time/ui-date-time.component.mjs +0 -150
- package/esm2022/lib/ui-editable-grid/ui-editable-grid.component.mjs +0 -110
- package/esm2022/lib/ui-exception-form/ui-exception-form.component.mjs +0 -53
- package/esm2022/lib/ui-file-linear-list-box/ui-file-linear-list-box.component.mjs +0 -121
- package/esm2022/lib/ui-form-panel/ui-form-panel.component.mjs +0 -100
- package/esm2022/lib/ui-gantt-chart/ui-gantt-chart.component.mjs +0 -32
- package/esm2022/lib/ui-graph/ui-graph.component.mjs +0 -17
- package/esm2022/lib/ui-grid/ui-grid.component.mjs +0 -25
- package/esm2022/lib/ui-grid-columns/ui-grid-columns.component.mjs +0 -43
- package/esm2022/lib/ui-grid-filter-item/ui-grid-filter-item.component.mjs +0 -66
- package/esm2022/lib/ui-grid-filter-settings/ui-grid-filter-settings.component.mjs +0 -75
- package/esm2022/lib/ui-grid-sort-item/ui-grid-sort-item.component.mjs +0 -58
- package/esm2022/lib/ui-grid-sort-setting/ui-grid-sort-setting.component.mjs +0 -123
- package/esm2022/lib/ui-html-viewer/ui-html-viewer.component.mjs +0 -16
- package/esm2022/lib/ui-info-bar-panel/ui-info-bar-panel.component.mjs +0 -11
- package/esm2022/lib/ui-label/ui-label.component.mjs +0 -12
- package/esm2022/lib/ui-linear-list-container-with-button/ui-linear-list-container-with-button.component.mjs +0 -379
- package/esm2022/lib/ui-list-view/ui-list-view.component.mjs +0 -84
- package/esm2022/lib/ui-map/ui-map.component.mjs +0 -58
- package/esm2022/lib/ui-matrix-view/ui-matrix-view.component.mjs +0 -124
- package/esm2022/lib/ui-mo-info-combo-viewer/ui-mo-info-combo-viewer.component.mjs +0 -19
- package/esm2022/lib/ui-mo-info-general-object-ui/ui-mo-info-general-object-ui.component.mjs +0 -14
- package/esm2022/lib/ui-mo-info-sub-form-ui/ui-mo-info-sub-form-ui.component.mjs +0 -55
- package/esm2022/lib/ui-mo-info-ulv-combo/ui-mo-info-ulv-combo.component.mjs +0 -429
- package/esm2022/lib/ui-monaco-editor/ui-monaco-editor.component.mjs +0 -28
- package/esm2022/lib/ui-multi-select-card/ui-multi-select-card.component.mjs +0 -37
- package/esm2022/lib/ui-multi-select-checkbox/ui-multi-select-checkbox.component.mjs +0 -59
- package/esm2022/lib/ui-multi-select-combo/ui-multi-select-combo.component.mjs +0 -93
- package/esm2022/lib/ui-multi-select-radio/ui-multi-select-radio.component.mjs +0 -36
- package/esm2022/lib/ui-multi-select-slider/ui-multi-select-slider.component.mjs +0 -56
- package/esm2022/lib/ui-multi-select-smile/ui-multi-select-smile.component.mjs +0 -28
- package/esm2022/lib/ui-num-decimal-ui/ui-num-decimal-ui.component.mjs +0 -33
- package/esm2022/lib/ui-num-int-slider/ui-num-int-slider.component.mjs +0 -27
- package/esm2022/lib/ui-num-int-ui/ui-num-int-ui.component.mjs +0 -21
- package/esm2022/lib/ui-pdf-viewer/ui-pdf-viewer.component.mjs +0 -268
- package/esm2022/lib/ui-picture-file/ui-picture-file.component.mjs +0 -101
- package/esm2022/lib/ui-pictures-info/ui-pictures-info.component.mjs +0 -261
- package/esm2022/lib/ui-radio-group/ui-radio-group.component.mjs +0 -48
- package/esm2022/lib/ui-read-only-field/ui-read-only-field.component.mjs +0 -36
- package/esm2022/lib/ui-report-container/ui-report-container.component.mjs +0 -46
- package/esm2022/lib/ui-search-command-info-ui/ui-search-command-info-ui.component.mjs +0 -24
- package/esm2022/lib/ui-simple-combo/ui-simple-combo.component.mjs +0 -55
- package/esm2022/lib/ui-single-picture/ui-single-picture.component.mjs +0 -36
- package/esm2022/lib/ui-switch-button/ui-switch-button.component.mjs +0 -20
- package/esm2022/lib/ui-table-view/ui-table-view.component.mjs +0 -289
- package/esm2022/lib/ui-text-area/ui-text-area.component.mjs +0 -49
- package/esm2022/lib/ui-text-field/ui-text-field.component.mjs +0 -52
- package/esm2022/lib/ui-text-field-auto-complete/ui-text-field-auto-complete.component.mjs +0 -48
- package/esm2022/lib/ui-time-span/ui-time-span.component.mjs +0 -24
- package/esm2022/lib/ui-tinymce/ui-tinymce.component.mjs +0 -53
- package/esm2022/lib/ui-tree/ui-tree.component.mjs +0 -114
- package/esm2022/lib/ui-tree-view/ui-tree-view.component.mjs +0 -100
- package/esm2022/lib/ui-ulv-form-multi-select-ui/ui-ulv-form-multi-select-ui.component.mjs +0 -23
- package/esm2022/lib/ui-ulv-main-ui/ui-ulv-main-ui.component.mjs +0 -306
- package/esm2022/lib/ui-workflow-panel-ui/ui-workflow-panel-ui.component.mjs +0 -25
- package/esm2022/lib/ul-loading-mask-ui/ul-loading-mask-ui.component.mjs +0 -93
- package/esm2022/lib/ul-msg-box-adapter/ul-msg-box-adapter.component.mjs +0 -119
- package/esm2022/lib/ul-notify-popup/ul-notify-popup.component.mjs +0 -32
- package/esm2022/lib/ul-toast-adapter/ul-toast-adapter.component.mjs +0 -48
- package/esm2022/lib/ulv-column-settings/ulv-column-settings.component.mjs +0 -53
- package/esm2022/lib/ulv-context-menu/ulv-context-menu.component.mjs +0 -114
- package/esm2022/lib/ulv-filter-settings/ulv-filter-settings.component.mjs +0 -43
- package/esm2022/lib/ulv-form-multi-select/ulv-form-multi-select.component.mjs +0 -196
- package/esm2022/lib/ulv-groupby-settings/ulv-groupby-settings.component.mjs +0 -44
- package/esm2022/lib/ulv-paging/ulv-paging.component.mjs +0 -84
- package/esm2022/lib/ulv-selection/ulv-selection.component.mjs +0 -65
- package/esm2022/lib/ulv-settings/ulv-settings.component.mjs +0 -116
- package/esm2022/lib/ulv-sort-settings/ulv-sort-settings.component.mjs +0 -54
- package/esm2022/lib/ulv-toolbar/ulv-toolbar.component.mjs +0 -174
- package/esm2022/lib/upload-file-status.pipe.mjs +0 -28
- package/esm2022/lib/util-chat-time-badge.pipe.mjs +0 -18
- package/esm2022/lib/util-date-to-hh-mm.pipe.mjs +0 -23
- package/esm2022/lib/wizard-layout.directive.mjs +0 -103
- package/esm2022/public-api.mjs +0 -233
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, Input, Output } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/common";
|
|
5
|
-
import * as i2 from "@fundamental-ngx/core/action-sheet";
|
|
6
|
-
import * as i3 from "@fundamental-ngx/core/avatar";
|
|
7
|
-
import * as i4 from "@fundamental-ngx/core/content-density";
|
|
8
|
-
import * as i5 from "@fundamental-ngx/core/button";
|
|
9
|
-
import * as i6 from "@fundamental-ngx/core/message-strip";
|
|
10
|
-
import * as i7 from "@fundamental-ngx/core/notification";
|
|
11
|
-
import * as i8 from "../mask/mask.component";
|
|
12
|
-
import * as i9 from "barsa-novin-ray-core";
|
|
13
|
-
export class NotificationItemComponent extends BaseComponent {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.showCloseButton = false;
|
|
17
|
-
this._deviceSize = '';
|
|
18
|
-
this.viewed = new EventEmitter();
|
|
19
|
-
this.remove = new EventEmitter();
|
|
20
|
-
this.actionClick = new EventEmitter();
|
|
21
|
-
this.showEvent = new EventEmitter();
|
|
22
|
-
this.closeEvent = new EventEmitter();
|
|
23
|
-
this.hide = false;
|
|
24
|
-
}
|
|
25
|
-
ngOnInit() {
|
|
26
|
-
super.ngOnInit();
|
|
27
|
-
this._deviceSize = this.deviceSize;
|
|
28
|
-
}
|
|
29
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: NotificationItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.5", type: NotificationItemComponent, selector: "bsu-notification-item", inputs: { option: "option", notificationItem: "notificationItem", showCloseButton: "showCloseButton", deviceSize: "deviceSize" }, outputs: { viewed: "viewed", remove: "remove", actionClick: "actionClick", showEvent: "showEvent", closeEvent: "closeEvent" }, host: { properties: { "class": "this._deviceSize" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"notificationItem ? notificationItemTemplate : optionTemplate\"> </ng-container>\n\n<ng-template #optionTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n bodyTemplate;\n context: {\n choiceDefStatus: null,\n isNew: false,\n loading: false,\n icon: option.icon,\n statusCaption: '',\n unread: true,\n title: option.title,\n content: option.msg,\n userCaption: option.NotificationItem?.CreatorUser$Caption,\n dateCaption: option.NotificationItem?.CreationDate$Caption,\n overflowButtons: true,\n uiActions: option.NotificationItem?.UiActions,\n hideShowButton: option.NotificationItem?.HideShowButton,\n tag: option.NotificationItem?.Tag,\n hideDeleteButton: true,\n mo: option.mo\n }\n \"\n ></ng-container>\n</ng-template>\n<ng-template #notificationItemTemplate>\n <fd-notification>\n <ng-container\n *ngTemplateOutlet=\"\n bodyTemplate;\n context: {\n choiceDefStatus: notificationItem.$ChoiceDefStatus,\n isNew: notificationItem.$NewNotification,\n loading: notificationItem.$NotificatoinLoading,\n icon: notificationItem.Icon,\n statusCaption: notificationItem.Status$Caption,\n unread: notificationItem.Unread,\n title: notificationItem.Title,\n content: notificationItem.$SafeContent,\n userCaption: notificationItem.IMessage?.CreatorUser$Caption,\n dateCaption: notificationItem.IMessage?.CreationDate$Caption,\n overflowButtons: true,\n uiActions: notificationItem.UiActions,\n tag: notificationItem.Tag,\n hideShowButton: notificationItem.HideShowButton,\n hideDeleteButton: notificationItem.HideDeleteButton,\n mo: notificationItem\n }\n \"\n ></ng-container>\n </fd-notification>\n</ng-template>\n\n<ng-template\n #bodyTemplate\n let-choiceDefStatus=\"choiceDefStatus\"\n let-isNew=\"isNew\"\n let-loading=\"loading\"\n let-icon=\"icon\"\n let-statusCaption=\"statusCaption\"\n let-unread=\"unread\"\n let-title=\"title\"\n let-content=\"content\"\n let-userCaption=\"userCaption\"\n let-dateCaption=\"dateCaption\"\n let-overflowButtons=\"overflowButtons\"\n let-uiActions=\"uiActions\"\n let-hideShowButton=\"hideShowButton\"\n let-hideDeleteButton=\"hideDeleteButton\"\n let-mo=\"mo\"\n let-tag=\"tag\"\n>\n <fd-notification-body>\n @if (choiceDefStatus?.error) {\n <fd-message-strip type=\"error\" style=\"margin: 0.5rem\">\n {{ choiceDefStatus.error.Text }}\n </fd-message-strip>\n } @if (loading || isNew || choiceDefStatus?.loading) {\n <bsu-mask [top]=\"'10px'\"></bsu-mask>\n }\n <fd-avatar\n [transparent]=\"true\"\n [circle]=\"true\"\n size=\"xs\"\n [glyph]=\"!icon ? 'bell' : null\"\n [image]=\"icon ? icon : null\"\n ></fd-avatar>\n <fd-notification-content style=\"overflow: hidden\">\n <fd-notification-header>\n <div fd-notification-indicator [type]=\"statusCaption\"></div>\n <h2 fd-notification-title [unread]=\"unread\">{{ title }}</h2>\n </fd-notification-header>\n <p #content fd-notification-paragraph [innerHTML]=\"content\"></p>\n <fd-notification-footer>\n <span fd-notification-footer-content>{{ userCaption }}</span>\n <span fd-notification-separator></span>\n <span fd-notification-footer-content>{{ dateCaption }}</span>\n </fd-notification-footer>\n </fd-notification-content>\n <fd-notification-actions>\n @if (overflowButtons) {\n <fd-action-sheet #sheet>\n <fd-action-sheet-control>\n @if (uiActions?.length) {\n <button\n role=\"menu\"\n [ariaLabel]=\"'More' | bbbTranslate\"\n [title]=\"'More' | bbbTranslate\"\n fd-button\n fdType=\"transparent\"\n glyph=\"overflow\"\n ></button>\n }\n </fd-action-sheet-control>\n <fd-action-sheet-body>\n @for (btn of uiActions; track btn) {\n <li\n fd-action-sheet-item\n [glyph]=\"btn.Icon\"\n [label]=\"btn.Title | bbbTranslate\"\n (click)=\"sheet.close(); actionClick.emit({ item: mo, btn: this.btn }); closeEvent.emit()\"\n ></li>\n }\n </fd-action-sheet-body>\n </fd-action-sheet>\n } @else { @for (btn of uiActions; track btn) {\n <button\n fd-button\n [glyph]=\"btn.Icon\"\n [fdType]=\"btn.Status\"\n [label]=\"btn.Title | bbbTranslate\"\n [title]=\"btn.Title | bbbTranslate\"\n fdCompact\n (click)=\"actionClick.emit({ item: mo, btn: this.btn }); closeEvent.emit()\"\n ></button>\n } } @if (hideShowButton === false && mo.RelatedMo) {\n <button\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"'Show' | bbbTranslate\"\n [title]=\"'Show' | bbbTranslate\"\n glyph=\"show\"\n (click)=\"showEvent.emit({tag, mo: mo.RelatedMo, nama: mo.RelatedMoNama });closeEvent.emit()\"\n ></button>\n } @if (hideDeleteButton === false) {\n <button\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"'Delete' | bbbTranslate\"\n [title]=\"'Delete' | bbbTranslate\"\n glyph=\"decline\"\n (click)=\"remove.emit({ items: [mo], silent: false }); closeEvent.emit()\"\n ></button>\n } @if (showCloseButton) {\n <button\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"'close' | bbbTranslate\"\n [title]=\"'close' | bbbTranslate\"\n glyph=\"decline\"\n (click)=\"closeEvent.emit()\"\n ></button>\n }\n </fd-notification-actions>\n </fd-notification-body>\n</ng-template>\n", styles: ["fd-notification-content{min-width:320px}fd-notification-content p{max-height:3rem}:host.s fd-notification-content{min-width:auto!important}fd-notification-actions{max-width:200px}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.ActionSheetComponent, selector: "fd-action-sheet", inputs: ["mobile", "placement", "noArrow", "isOpen", "keyboardSupport", "triggers"], outputs: ["focusEscapeList", "isOpenChange"] }, { kind: "component", type: i2.ActionSheetControlComponent, selector: "fd-action-sheet-control", outputs: ["clicked"] }, { kind: "component", type: i2.ActionSheetItemComponent, selector: "[fd-action-sheet-item]", inputs: ["label", "glyph", "glyphFont", "negative", "isCloseButton", "disabled"], outputs: ["keyDown"] }, { kind: "component", type: i2.ActionSheetBodyComponent, selector: "fd-action-sheet-body", inputs: ["actionSheetBodyId", "mobile", "ariaLabel", "ariaLabelledby"] }, { kind: "component", type: i3.AvatarComponent, selector: "fd-avatar", inputs: ["class", "id", "ariaLabel", "ariaLabelledby", "label", "size", "font", "glyph", "zoomGlyph", "circle", "transparent", "contain", "placeholder", "tile", "border", "colorAccent", "random", "clickable", "valueState", "image", "alterIcon", "backupImage"], outputs: ["avatarClicked", "zoomGlyphClicked"] }, { kind: "directive", type: i4.ContentDensityDirective, selector: "[fdContentDensity]:not([fdCompact]):not([fdCondensed]):not([fdCozy]), [fdCompact]:not([fdContentDensity]):not([fdCondensed]):not([fdCozy]), [fdCondensed]:not([fdContentDensity]):not([fdCompact]):not([fdCozy]), [fdCozy]:not([fdContentDensity]):not([fdCompact]):not([fdCondensed])", inputs: ["fdContentDensity", "fdCompact", "fdCondensed", "fdCozy"], exportAs: ["fdContentDensity"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i6.MessageStripComponent, selector: "fd-message-strip", inputs: ["class", "dismissible", "noIcon", "type", "id", "ariaLabelledBy", "ariaLabel", "width", "minWidth", "marginBottom", "indicationColor"], outputs: ["onDismiss"] }, { kind: "component", type: i7.NotificationComponent, selector: "fd-notification", inputs: ["width", "mobile"] }, { kind: "component", type: i7.NotificationHeaderComponent, selector: "fd-notification-header", inputs: ["uniqueId"] }, { kind: "component", type: i7.NotificationFooterComponent, selector: "fd-notification-footer" }, { kind: "component", type: i7.NotificationBodyComponent, selector: "fd-notification-body" }, { kind: "component", type: i7.NotificationActionsComponent, selector: "fd-notification-actions" }, { kind: "component", type: i7.NotificationContentComponent, selector: "fd-notification-content" }, { kind: "directive", type: i7.NotificationTitleDirective, selector: "[fdNotificationTitle], [fd-notification-title]", inputs: ["unread"] }, { kind: "directive", type: i7.NotificationIndicatorDirective, selector: "[fdNotificationIndicator], [fd-notification-indicator]", inputs: ["type", "class"] }, { kind: "directive", type: i7.NotificationParagraphDirective, selector: "[fdNotificationParagraph], [fd-notification-paragraph]" }, { kind: "directive", type: i7.NotificationFooterContentDirective, selector: "[fdNotificationFooterContent], [fd-notification-footer-content]" }, { kind: "directive", type: i7.NotificationSeparatorDirective, selector: "[fdNotificationSeparator], [fd-notification-separator]" }, { kind: "component", type: i8.MaskComponent, selector: "bsu-mask", inputs: ["size", "top"] }, { kind: "pipe", type: i9.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
-
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: NotificationItemComponent, decorators: [{
|
|
33
|
-
type: Component,
|
|
34
|
-
args: [{ selector: 'bsu-notification-item', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngTemplateOutlet=\"notificationItem ? notificationItemTemplate : optionTemplate\"> </ng-container>\n\n<ng-template #optionTemplate>\n <ng-container\n *ngTemplateOutlet=\"\n bodyTemplate;\n context: {\n choiceDefStatus: null,\n isNew: false,\n loading: false,\n icon: option.icon,\n statusCaption: '',\n unread: true,\n title: option.title,\n content: option.msg,\n userCaption: option.NotificationItem?.CreatorUser$Caption,\n dateCaption: option.NotificationItem?.CreationDate$Caption,\n overflowButtons: true,\n uiActions: option.NotificationItem?.UiActions,\n hideShowButton: option.NotificationItem?.HideShowButton,\n tag: option.NotificationItem?.Tag,\n hideDeleteButton: true,\n mo: option.mo\n }\n \"\n ></ng-container>\n</ng-template>\n<ng-template #notificationItemTemplate>\n <fd-notification>\n <ng-container\n *ngTemplateOutlet=\"\n bodyTemplate;\n context: {\n choiceDefStatus: notificationItem.$ChoiceDefStatus,\n isNew: notificationItem.$NewNotification,\n loading: notificationItem.$NotificatoinLoading,\n icon: notificationItem.Icon,\n statusCaption: notificationItem.Status$Caption,\n unread: notificationItem.Unread,\n title: notificationItem.Title,\n content: notificationItem.$SafeContent,\n userCaption: notificationItem.IMessage?.CreatorUser$Caption,\n dateCaption: notificationItem.IMessage?.CreationDate$Caption,\n overflowButtons: true,\n uiActions: notificationItem.UiActions,\n tag: notificationItem.Tag,\n hideShowButton: notificationItem.HideShowButton,\n hideDeleteButton: notificationItem.HideDeleteButton,\n mo: notificationItem\n }\n \"\n ></ng-container>\n </fd-notification>\n</ng-template>\n\n<ng-template\n #bodyTemplate\n let-choiceDefStatus=\"choiceDefStatus\"\n let-isNew=\"isNew\"\n let-loading=\"loading\"\n let-icon=\"icon\"\n let-statusCaption=\"statusCaption\"\n let-unread=\"unread\"\n let-title=\"title\"\n let-content=\"content\"\n let-userCaption=\"userCaption\"\n let-dateCaption=\"dateCaption\"\n let-overflowButtons=\"overflowButtons\"\n let-uiActions=\"uiActions\"\n let-hideShowButton=\"hideShowButton\"\n let-hideDeleteButton=\"hideDeleteButton\"\n let-mo=\"mo\"\n let-tag=\"tag\"\n>\n <fd-notification-body>\n @if (choiceDefStatus?.error) {\n <fd-message-strip type=\"error\" style=\"margin: 0.5rem\">\n {{ choiceDefStatus.error.Text }}\n </fd-message-strip>\n } @if (loading || isNew || choiceDefStatus?.loading) {\n <bsu-mask [top]=\"'10px'\"></bsu-mask>\n }\n <fd-avatar\n [transparent]=\"true\"\n [circle]=\"true\"\n size=\"xs\"\n [glyph]=\"!icon ? 'bell' : null\"\n [image]=\"icon ? icon : null\"\n ></fd-avatar>\n <fd-notification-content style=\"overflow: hidden\">\n <fd-notification-header>\n <div fd-notification-indicator [type]=\"statusCaption\"></div>\n <h2 fd-notification-title [unread]=\"unread\">{{ title }}</h2>\n </fd-notification-header>\n <p #content fd-notification-paragraph [innerHTML]=\"content\"></p>\n <fd-notification-footer>\n <span fd-notification-footer-content>{{ userCaption }}</span>\n <span fd-notification-separator></span>\n <span fd-notification-footer-content>{{ dateCaption }}</span>\n </fd-notification-footer>\n </fd-notification-content>\n <fd-notification-actions>\n @if (overflowButtons) {\n <fd-action-sheet #sheet>\n <fd-action-sheet-control>\n @if (uiActions?.length) {\n <button\n role=\"menu\"\n [ariaLabel]=\"'More' | bbbTranslate\"\n [title]=\"'More' | bbbTranslate\"\n fd-button\n fdType=\"transparent\"\n glyph=\"overflow\"\n ></button>\n }\n </fd-action-sheet-control>\n <fd-action-sheet-body>\n @for (btn of uiActions; track btn) {\n <li\n fd-action-sheet-item\n [glyph]=\"btn.Icon\"\n [label]=\"btn.Title | bbbTranslate\"\n (click)=\"sheet.close(); actionClick.emit({ item: mo, btn: this.btn }); closeEvent.emit()\"\n ></li>\n }\n </fd-action-sheet-body>\n </fd-action-sheet>\n } @else { @for (btn of uiActions; track btn) {\n <button\n fd-button\n [glyph]=\"btn.Icon\"\n [fdType]=\"btn.Status\"\n [label]=\"btn.Title | bbbTranslate\"\n [title]=\"btn.Title | bbbTranslate\"\n fdCompact\n (click)=\"actionClick.emit({ item: mo, btn: this.btn }); closeEvent.emit()\"\n ></button>\n } } @if (hideShowButton === false && mo.RelatedMo) {\n <button\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"'Show' | bbbTranslate\"\n [title]=\"'Show' | bbbTranslate\"\n glyph=\"show\"\n (click)=\"showEvent.emit({tag, mo: mo.RelatedMo, nama: mo.RelatedMoNama });closeEvent.emit()\"\n ></button>\n } @if (hideDeleteButton === false) {\n <button\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"'Delete' | bbbTranslate\"\n [title]=\"'Delete' | bbbTranslate\"\n glyph=\"decline\"\n (click)=\"remove.emit({ items: [mo], silent: false }); closeEvent.emit()\"\n ></button>\n } @if (showCloseButton) {\n <button\n fd-button\n fdType=\"transparent\"\n [ariaLabel]=\"'close' | bbbTranslate\"\n [title]=\"'close' | bbbTranslate\"\n glyph=\"decline\"\n (click)=\"closeEvent.emit()\"\n ></button>\n }\n </fd-notification-actions>\n </fd-notification-body>\n</ng-template>\n", styles: ["fd-notification-content{min-width:320px}fd-notification-content p{max-height:3rem}:host.s fd-notification-content{min-width:auto!important}fd-notification-actions{max-width:200px}\n"] }]
|
|
35
|
-
}], propDecorators: { option: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], notificationItem: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], showCloseButton: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], deviceSize: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], _deviceSize: [{
|
|
44
|
-
type: HostBinding,
|
|
45
|
-
args: ['class']
|
|
46
|
-
}], viewed: [{
|
|
47
|
-
type: Output
|
|
48
|
-
}], remove: [{
|
|
49
|
-
type: Output
|
|
50
|
-
}], actionClick: [{
|
|
51
|
-
type: Output
|
|
52
|
-
}], showEvent: [{
|
|
53
|
-
type: Output
|
|
54
|
-
}], closeEvent: [{
|
|
55
|
-
type: Output
|
|
56
|
-
}] } });
|
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90aWZpY2F0aW9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFyc2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NlLFxuICAgICAgICAgICAgICAgIGljb246IG9wdGlvbi5pY29uLFxuICAgICAgICAgICAgICAgIHN0YXR1c0NhcHRpb246ICcnLFxuICAgICAgICAgICAgICAgIHVucmVhZDogdHJ1ZSxcbiAgICAgICAgICAgICAgICB0aXRsZTogb3B0aW9uLnRpdGxlLFxuICAgICAgICAgICAgICAgIGNvbnRlbnQ6IG9wdGlvbi5tc2csXG4gICAgICAgICAgICAgICAgdXNlckNhcHRpb246IG9wdGlvbi5Ob3RpZmljYXRpb25JdGVtPy5DcmVhdG9yVXNlciRDYXB0aW9uLFxuICAgICAgICAgICAgICAgIGRhdGVDYXB0aW9uOiBvcHRpb24uTm90aWZpY2F0aW9uSXRlbT8uQ3JlYXRpb25EYXRlJENhcHRpb24sXG4gICAgICAgICAgICAgICAgb3ZlcmZsb3dCdXR0b25zOiB0cnVlLFxuICAgICAgICAgICAgICAgIHVpQWN0aW9uczogb3B0aW9uLk5vdGlmaWNhdGlvbkl0ZW0/LlVpQWN0aW9ucyxcbiAgICAgICAgICAgICAgICBoaWRlU2hvd0J1dHRvbjogb3B0aW9uLk5vdGlmaWNhdGlvbkl0ZW0/LkhpZGVTaG93QnV0dG9uLFxuICAgICAgICAgICAgICAgIHRhZzogb3B0aW9uLk5vdGlmaWNhdGlvbkl0ZW0/LlRhZyxcbiAgICAgICAgICAgICAgICBoaWRlRGVsZXRlQnV0dG9uOiB0cnVlLFxuICAgICAgICAgICAgICAgIG1vOiBvcHRpb24ubW9cbiAgICAgICAgICAgIH1cbiAgICAgICAgXCJcbiAgICA+PC9uZy1jb250YWluZXI+XG48L25nLXRlbXBsYXRlPlxuPG5nLXRlbXBsYXRlICNub3RpZmljYXRpb25JdGVtVGVtcGxhdGU+XG4gICAgPGZkLW5vdGlmaWNhdGlvbj5cbiAgICAgICAgPG5nLWNvbnRhaW5lclxuICAgICAgICAgICAgKm5nVGVtcGxhdGVPdXRsZXQ9XCJcbiAgICAgICAgICAgICAgICBib2R5VGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgY29udGV4dDoge1xuICAgICAgICAgICAgICAgICAgICBjaG9pY2VEZWZTdGF0dXM6IG5vdGlmaWNhdGlvbkl0ZW0uJENob2ljZURlZlN0YXR1cyxcbiAgICAgICAgICAgICAgICAgICAgaXNOZXc6IG5vdGlmaWNhdGlvbkl0ZW0uJE5ld05vdGlmaWNhdGlvbixcbiAgICAgICAgICAgICAgICAgICAgbG9hZGluZzogbm90aWZpY2F0aW9uSXRlbS4kTm90aWZpY2F0b2luTG9hZGluZyxcbiAgICAgICAgICAgICAgICAgICAgaWNvbjogbm90aWZpY2F0aW9uSXRlbS5JY29uLFxuICAgICAgICAgICAgICAgICAgICBzdGF0dXNDYXB0aW9uOiBub3RpZmljYXRpb25JdGVtLlN0YXR1cyRDYXB0aW9uLFxuICAgICAgICAgICAgICAgICAgICB1bnJlYWQ6IG5vdGlmaWNhdGlvbkl0ZW0uVW5yZWFkLFxuICAgICAgICAgICAgICAgICAgICB0aXRsZTogbm90aWZpY2F0aW9uSXRlbS5UaXRsZSxcbiAgICAgICAgICAgICAgICAgICAgY29udGVudDogbm90aWZpY2F0aW9uSXRlbS4kU2FmZUNvbnRlbnQsXG4gICAgICAgICAgICAgICAgICAgIHVzZXJDYXB0aW9uOiBub3RpZmljYXRpb25JdGVtLklNZXNzYWdlPy5DcmVhdG9yVXNlciRDYXB0aW9uLFxuICAgICAgICAgICAgICAgICAgICBkYXRlQ2FwdGlvbjogbm90aWZpY2F0aW9uSXRlbS5JTWVzc2FnZT8uQ3JlYXRpb25EYXRlJENhcHRpb24sXG4gICAgICAgICAgICAgICAgICAgIG92ZXJmbG93QnV0dG9uczogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgdWlBY3Rpb25zOiBub3RpZmljYXRpb25JdGVtLlVpQWN0aW9ucyxcbiAgICAgICAgICAgICAgICAgICAgdGFnOiBub3RpZmljYXRpb25JdGVtLlRhZyxcbiAgICAgICAgICAgICAgICAgICAgaGlkZVNob3d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lcj5cbiAgICAgICAgICAgIDxwICNjb250ZW50IGZkLW5vdGlmaWNhdGlvbi1wYXJhZ3JhcGggW2lubmVySFRNTF09XCJjb250ZW50XCI+PC9wPlxuICAgICAgICAgICAgPGZkLW5vdGlmaWNhdGlvbi1mb290ZXI+XG4gICAgICAgICAgICAgICAgPHNwYW4gZmQtbm90aWZpY2F0aW9uLWZvb3Rlci1jb250ZW50Pnt7IHVzZXJDYXB0aW9uIH19PC9zcGFuPlxuICAgICAgICAgICAgICAgIDxzcGFuIGZkLW5vdGlmaWNhdGlvbi1zZXBhcmF0b3I+PC9zcGFuPlxuICAgICAgICAgICAgICAgIDxzcGFuIGZkLW5vdGlmaWNhdGlvbi1mb290ZXItY29udGVudD57eyBkYXRlQ2FwdGlvbiB9fTwvc3Bhbj5cbiAgICAgICAgICAgIDwvZmQtbm90aWZpY2F0aW9uLWZvb3Rlcj5cbiAgICAgICAgPC9mZC1ub3RpZmljYXRpb24tY29udGVudD5cbiAgICAgICAgPGZkLW5vdGlmaWNhdGlvbi1hY3Rpb25zPlxuICAgICAgICAgICAgQGlmIChvdmVyZmxvd0J1dHRvbnMpIHtcbiAgICAgICAgICAgIDxmZC1hY3Rpb24tc2hlZXQgI3NoZWV0PlxuICAgICAgICAgICAgICAgIDxmZC1hY3Rpb24tc2hlZXQtY29udHJvbD5cbiAgICAgICAgICAgICAgICAgICAgQGlmICh1aUFjdGlvbnM/Lmxlbmd0aCkge1xuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgICByb2xlPVwibWVudVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbYXJpYUxhYmVsXT1cIidNb3JlJyB8IGJiYlRyYW5zbGF0ZVwiXG4gICAgICAgICAgICAgICAgICAgICAgICBbdGl0bGVdPVwiJ01vcmUnIHwgYmJiVHJhbnNsYXRlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZkLWJ1dHRvblxuICAgICAgICAgICAgICAgICAgICAgICAgZmRUeXBlPVwidHJhbnNwYXJlbnRcIlxuICAgICAgICAgICAgICAgICAgICAgICAgZ2x5cGg9XCJvdmVyZmxvd1wiXG4gICAgICAgICAgICAgICAgICAgID48L2J1dHRvbj5cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIDwvZmQtYWN0aW9uLXNoZWV0LWNvbnRyb2w+XG4gICAgICAgICAgICAgICAgPGZkLWFjdGlvbi1zaGVldC1ib2R5PlxuICAgICAgICAgICAgICAgICAgICBAZm9yIChidG4gb2YgdWlBY3Rpb25zOyB0cmFjayBidG4pIHtcbiAgICAgICAgICAgICAgICAgICAgPGxpXG4gICAgICAgICAgICAgICAgICAgICAgICBmZC1hY3Rpb24tc2hlZXQtaXRlbVxuICAgICAgICAgICAgICAgICAgICAgICAgW2dseXBoXT1cImJ0bi5JY29uXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIFtsYWJlbF09XCJidG4uVGl0bGUgfCBiYmJUcmFuc2xhdGVcIlxuICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cInNoZWV0LmNsb3NlKCk7IGFjdGlvbkNsaWNrLmVtaXQoeyBpdGVtOiBtbywgYnRuOiB0aGlzLmJ0biB9KTsgY2xvc2VFdmVudC5lbWl0KClcIlxuICAgICAgICAgICAgICAgICAgICA+PC9saT5cbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIDwvZmQtYWN0aW9uLXNoZWV0LWJvZHk+XG4gICAgICAgICAgICA8L2ZkLWFjdGlvbi1zaGVldD5cbiAgICAgICAgICAgIH0gQGVsc2UgeyBAZm9yIChidG4gb2YgdWlBY3Rpb25zOyB0cmFjayBidG4pIHtcbiAgICAgICAgICAgIDxidXR0b25cbiAgICAgICAgICAgICAgICBmZC1idXR0b25cbiAgICAgICAgICAgICAgICBbZ2x5cGhdPVwiYnRuLkljb25cIlxuICAgICAgICAgICAgICAgIFtmZFR5cGVdPVwiYnRuLlN0YXR1c1wiXG4gICAgICAgICAgICAgICAgW2xhYmVsXT1cImJ0bi5UaXRsZSB8IGJiYlRyYW5zbGF0ZVwiXG4gICAgICAgICAgICAgICAgW3RpdGxlXT1cImJ0bi5UaXRsZSB8IGJiYlRyYW5zbGF0ZVwiXG4gICAgICAgICAgICAgICAgZmRDb21wYWN0XG4gICAgICAgICAgICAgICAgKGNsaWNrKT1cImFjdGlvbkNsaWNrLmVtaXQoeyBpdGVtOiBtbywgYnRuOiB0aGlzLmJ0biB9KTsgY2xvc2VFdmVudC5lbWl0KClcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICAgICAgfSB9IEBpZiAoaGlkZVNob3dCdXR0b24gPT09IGZhbHNlICYmIG1vLlJlbGF0ZWRNbykge1xuICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgIGZkLWJ1dHRvblxuICAgICAgICAgICAgICAgIGZkVHlwZT1cInRyYW5zcGFyZW50XCJcbiAgICAgICAgICAgICAgICBbYXJpYUxhYmVsXT1cIidTaG93JyB8IGJiYlRyYW5zbGF0ZVwiXG4gICAgICAgICAgICAgICAgW3RpdGxlXT1cIidTaG93JyB8IGJiYlRyYW5zbGF0ZVwiXG4gICAgICAgICAgICAgICAgZ2x5cGg9XCJzaG93XCJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwic2hvd0V2ZW50LmVtaXQoe3RhZywgIG1vOiBtby5SZWxhdGVkTW8sIG5hbWE6IG1vLlJlbGF0ZWRNb05hbWEgfSk7Y2xvc2VFdmVudC5lbWl0KClcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICAgICAgfSBAaWYgKGhpZGVEZWxldGVCdXR0b24gPT09IGZhbHNlKSB7XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgZmQtYnV0dG9uXG4gICAgICAgICAgICAgICAgZmRUeXBlPVwidHJhbnNwYXJlbnRcIlxuICAgICAgICAgICAgICAgIFthcmlhTGFiZWxdPVwiJ0RlbGV0ZScgfCBiYmJUcmFuc2xhdGVcIlxuICAgICAgICAgICAgICAgIFt0aXRsZV09XCInRGVsZXRlJyB8IGJiYlRyYW5zbGF0ZVwiXG4gICAgICAgICAgICAgICAgZ2x5cGg9XCJkZWNsaW5lXCJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwicmVtb3ZlLmVtaXQoeyBpdGVtczogW21vXSwgc2lsZW50OiBmYWxzZSB9KTsgY2xvc2VFdmVudC5lbWl0KClcIlxuICAgICAgICAgICAgPjwvYnV0dG9uPlxuICAgICAgICAgICAgfSBAaWYgKHNob3dDbG9zZUJ1dHRvbikge1xuICAgICAgICAgICAgPGJ1dHRvblxuICAgICAgICAgICAgICAgIGZkLWJ1dHRvblxuICAgICAgICAgICAgICAgIGZkVHlwZT1cInRyYW5zcGFyZW50XCJcbiAgICAgICAgICAgICAgICBbYXJpYUxhYmVsXT1cIidjbG9zZScgfCBiYmJUcmFuc2xhdGVcIlxuICAgICAgICAgICAgICAgIFt0aXRsZV09XCInY2xvc2UnIHwgYmJiVHJhbnNsYXRlXCJcbiAgICAgICAgICAgICAgICBnbHlwaD1cImRlY2xpbmVcIlxuICAgICAgICAgICAgICAgIChjbGljayk9XCJjbG9zZUV2ZW50LmVtaXQoKVwiXG4gICAgICAgICAgICA+PC9idXR0b24+XG4gICAgICAgICAgICB9XG4gICAgICAgIDwvZmQtbm90aWZpY2F0aW9uLWFjdGlvbnM+XG4gICAgPC9mZC1ub3RpZmljYXRpb24tYm9keT5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BarsaApi } from 'barsa-novin-ray-core';
|
|
3
|
-
import { getUniqueId } from 'barsa-novin-ray-core';
|
|
4
|
-
import { UlNotifyPopupComponent } from './ul-notify-popup/ul-notify-popup.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@fundamental-ngx/core";
|
|
7
|
-
export class NotificationPopupService {
|
|
8
|
-
constructor(_notificationService) {
|
|
9
|
-
this._notificationService = _notificationService;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
this.defaultOptions = {
|
|
14
|
-
Sound: true,
|
|
15
|
-
Image: null,
|
|
16
|
-
Title: null,
|
|
17
|
-
Icon: false,
|
|
18
|
-
Delay: 8000,
|
|
19
|
-
Closable: true,
|
|
20
|
-
DelayIndicator: true,
|
|
21
|
-
CloseOnClick: true,
|
|
22
|
-
IsRtl: true,
|
|
23
|
-
Position: 'bottom left',
|
|
24
|
-
SoundPath: 'sounds/',
|
|
25
|
-
Size: 'normal',
|
|
26
|
-
ContinueDelayOnInactiveTab: true,
|
|
27
|
-
Width: 800,
|
|
28
|
-
MessageHeight: 60
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
popupNotify(msg, title, type, image, mo, uiOptions, otherOptions) {
|
|
32
|
-
uiOptions = this._getUiOptions(uiOptions);
|
|
33
|
-
const callback = this._getNotifyCallback(mo, otherOptions);
|
|
34
|
-
const notificationConfig = this._getNotificationConfig(image, title, uiOptions, msg, mo, callback);
|
|
35
|
-
if (otherOptions?.MoId && !mo) {
|
|
36
|
-
notificationConfig.data.mo = { RelatedMo: { Id: otherOptions.MoId, $TypeDefId: otherOptions.TypeDefId } };
|
|
37
|
-
notificationConfig.data.NotificationItem.HideShowButton = false;
|
|
38
|
-
}
|
|
39
|
-
const notificationRef = this._notificationService.open(UlNotifyPopupComponent, notificationConfig);
|
|
40
|
-
this._notificationService.notifications.forEach((c) => (c.notificationComponent.instance.closeOnNavigation = false));
|
|
41
|
-
setTimeout(() => notificationRef.dismiss('dismissed'), uiOptions.Delay);
|
|
42
|
-
}
|
|
43
|
-
_getUiOptions(uiOptions) {
|
|
44
|
-
if (uiOptions) {
|
|
45
|
-
return { ...this.defaultOptions, ...uiOptions };
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return this.defaultOptions;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
_getNotificationConfig(image, title, uiOptions, msg, mo, callback) {
|
|
52
|
-
return {
|
|
53
|
-
id: getUniqueId(3),
|
|
54
|
-
data: {
|
|
55
|
-
mo,
|
|
56
|
-
image,
|
|
57
|
-
NotificationItem: uiOptions?.NotificationItem,
|
|
58
|
-
title,
|
|
59
|
-
Closable: uiOptions.Closable,
|
|
60
|
-
isRtl: uiOptions.IsRtl,
|
|
61
|
-
msg,
|
|
62
|
-
callback
|
|
63
|
-
},
|
|
64
|
-
width: uiOptions?.Width?.toString() + 'px'
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
_getNotifyCallback(mo, otherOptions) {
|
|
68
|
-
let callback = () => { };
|
|
69
|
-
if (mo) {
|
|
70
|
-
callback = () => {
|
|
71
|
-
BarsaApi.Bw.Form.Show({
|
|
72
|
-
Mo: mo
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
else if (otherOptions) {
|
|
77
|
-
callback = () => {
|
|
78
|
-
BarsaApi.Bw.Form.Show({
|
|
79
|
-
MoId: otherOptions.MoId,
|
|
80
|
-
TypeDefId: otherOptions.TypeDefId
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
return callback;
|
|
85
|
-
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: NotificationPopupService, deps: [{ token: i1.NotificationService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
87
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: NotificationPopupService }); }
|
|
88
|
-
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: NotificationPopupService, decorators: [{
|
|
90
|
-
type: Injectable
|
|
91
|
-
}], ctorParameters: () => [{ type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B7XG4gICAgICAgICAgICByZXR1cm4geyAuLi50aGlzLmRlZmF1bHRPcHRpb25zLCAuLi51aU9wdGlvbnMgfTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmRlZmF1bHRPcHRpb25zO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBfZ2V0Tm90aWZpY2F0aW9uQ29uZmlnKFxuICAgICAgICBpbWFnZSxcbiAgICAgICAgdGl0bGUsXG4gICAgICAgIHVpT3B0aW9uczogTm90aWZ5T3B0aW9ucyxcbiAgICAgICAgbXNnLFxuICAgICAgICBtbzogTWV0YW9iamVjdERhdGFNb2RlbCxcbiAgICAgICAgY2FsbGJhY2s6ICgpID0+IHZvaWRcbiAgICApOiBOb3RpZmljYXRpb25Db25maWcge1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgaWQ6IGdldFVuaXF1ZUlkKDMpLFxuICAgICAgICAgICAgZGF0YToge1xuICAgICAgICAgICAgICAgIG1vLFxuICAgICAgICAgICAgICAgIGltYWdlLFxuICAgICAgICAgICAgICAgIE5vdGlmaWNhdGlvbkl0ZW06IHVpT3B0aW9ucz8uTm90aWZpY2F0aW9uSXRlbSxcbiAgICAgICAgICAgICAgICB0aXRsZSxcbiAgICAgICAgICAgICAgICBDbG9zYWJsZTogdWlPcHRpb25zLkNsb3NhYmxlLFxuICAgICAgICAgICAgICAgIGlzUnRsOiB1aU9wdGlvbnMuSXNSdGwsXG4gICAgICAgICAgICAgICAgbXNnLFxuICAgICAgICAgICAgICAgIGNhbGxiYWNrXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgd2lkdGg6IHVpT3B0aW9ucz8uV2lkdGg/LnRvU3RyaW5nKCkgKyAncHgnXG4gICAgICAgIH07XG4gICAgfVxuICAgIHByaXZhdGUgX2dldE5vdGlmeUNhbGxiYWNrKG1vLCBvdGhlck9wdGlvbnMpOiAoKSA9PiB2b2lkIHtcbiAgICAgICAgbGV0IGNhbGxiYWNrID0gKCk6IHZvaWQgPT4ge307XG4gICAgICAgIGlmIChtbykge1xuICAgICAgICAgICAgY2FsbGJhY2sgPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgQmFyc2FBcGkuQncuRm9ybS5TaG93KHtcbiAgICAgICAgICAgICAgICAgICAgTW86IG1vXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9O1xuICAgICAgICB9IGVsc2UgaWYgKG90aGVyT3B0aW9ucykge1xuICAgICAgICAgICAgY2FsbGJhY2sgPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgQmFyc2FBcGkuQncuRm9ybS5TaG93KHtcbiAgICAgICAgICAgICAgICAgICAgTW9JZDogb3RoZXJPcHRpb25zLk1vSWQsXG4gICAgICAgICAgICAgICAgICAgIFR5cGVEZWZJZDogb3RoZXJPcHRpb25zLlR5cGVEZWZJZFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY2FsbGJhY2s7XG4gICAgfVxufVxuIl19
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class ObjectStatusIconPipe {
|
|
4
|
-
transform(statusCaption) {
|
|
5
|
-
switch (statusCaption) {
|
|
6
|
-
case 'informative':
|
|
7
|
-
return 'information';
|
|
8
|
-
case 'critical':
|
|
9
|
-
return 'alert';
|
|
10
|
-
case 'positive':
|
|
11
|
-
return 'sys-enter-2';
|
|
12
|
-
case 'negative':
|
|
13
|
-
return 'error';
|
|
14
|
-
}
|
|
15
|
-
return '';
|
|
16
|
-
}
|
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ObjectStatusIconPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
18
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.5", ngImport: i0, type: ObjectStatusIconPipe, name: "objectStatusIcon" }); }
|
|
19
|
-
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ObjectStatusIconPipe, decorators: [{
|
|
21
|
-
type: Pipe,
|
|
22
|
-
args: [{
|
|
23
|
-
name: 'objectStatusIcon'
|
|
24
|
-
}]
|
|
25
|
-
}] });
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JqZWN0LXN0YXR1cy1pY29uLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXJzYS1zYXAtdWkvc3JjL2xpYi9vYmplY3Qtc3RhdHVzLWljb24ucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQWlCLElBQUksRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLcEQsTUFBTSxPQUFPLG9CQUFvQjtJQUM3QixTQUFTLENBQUMsYUFBcUI7UUFDM0IsUUFBUSxhQUFhLEVBQUUsQ0FBQztZQUNwQixLQUFLLGFBQWE7Z0JBQ2QsT0FBTyxhQUFhLENBQUM7WUFDekIsS0FBSyxVQUFVO2dCQUNYLE9BQU8sT0FBTyxDQUFDO1lBQ25CLEtBQUssVUFBVTtnQkFDWCxPQUFPLGFBQWEsQ0FBQztZQUN6QixLQUFLLFVBQVU7Z0JBQ1gsT0FBTyxPQUFPLENBQUM7UUFDdkIsQ0FBQztRQUNELE9BQU8sRUFBRSxDQUFDO0lBQ2QsQ0FBQzs4R0FiUSxvQkFBb0I7NEdBQXBCLG9CQUFvQjs7MkZBQXBCLG9CQUFvQjtrQkFIaEMsSUFBSTttQkFBQztvQkFDRixJQUFJLEVBQUUsa0JBQWtCO2lCQUMzQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGVUcmFuc2Zvcm0sIFBpcGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQFBpcGUoe1xuICAgIG5hbWU6ICdvYmplY3RTdGF0dXNJY29uJ1xufSlcbmV4cG9ydCBjbGFzcyBPYmplY3RTdGF0dXNJY29uUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICAgIHRyYW5zZm9ybShzdGF0dXNDYXB0aW9uOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgICAgICBzd2l0Y2ggKHN0YXR1c0NhcHRpb24pIHtcbiAgICAgICAgICAgIGNhc2UgJ2luZm9ybWF0aXZlJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2luZm9ybWF0aW9uJztcbiAgICAgICAgICAgIGNhc2UgJ2NyaXRpY2FsJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2FsZXJ0JztcbiAgICAgICAgICAgIGNhc2UgJ3Bvc2l0aXZlJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gJ3N5cy1lbnRlci0yJztcbiAgICAgICAgICAgIGNhc2UgJ25lZ2F0aXZlJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gJ2Vycm9yJztcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gJyc7XG4gICAgfVxufVxuIl19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class ProgressIndicatorComponent extends BaseComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
super();
|
|
7
|
-
}
|
|
8
|
-
ngOnInit() {
|
|
9
|
-
super.ngOnInit();
|
|
10
|
-
}
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ProgressIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: ProgressIndicatorComponent, selector: "bsu-progress-indicator", usesInheritance: true, ngImport: i0, template: "<p>progress-indicator works!</p>\r\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13
|
-
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ProgressIndicatorComponent, decorators: [{
|
|
15
|
-
type: Component,
|
|
16
|
-
args: [{ selector: 'bsu-progress-indicator', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p>progress-indicator works!</p>\r\n" }]
|
|
17
|
-
}], ctorParameters: () => [] });
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtaW5kaWNhdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2JhcnNhLXNhcC11aS9zcmMvbGliL3Byb2dyZXNzLWluZGljYXRvci9wcm9ncmVzcy1pbmRpY2F0b3IuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFyc2Etc2FwLXVpL3NyYy9saWIvcHJvZ3Jlc3MtaW5kaWNhdG9yL3Byb2dyZXNzLWluZGljYXRvci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRW5FLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7QUFPckQsTUFBTSxPQUFPLDBCQUEyQixTQUFRLGFBQWE7SUFDekQ7UUFDSSxLQUFLLEVBQUUsQ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
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, HostBinding, ViewChild, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { debounceTime, map, switchMap, takeUntil, tap } from 'rxjs/operators';
|
|
4
|
-
import { BaseComponent, BarsaApi } from 'barsa-novin-ray-core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/router";
|
|
7
|
-
import * as i2 from "barsa-novin-ray-core";
|
|
8
|
-
import * as i3 from "../mask/mask.component";
|
|
9
|
-
import * as i4 from "@angular/common";
|
|
10
|
-
export class ReportNavigatorComponent extends BaseComponent {
|
|
11
|
-
constructor(_activatedRoute, _portalService, _injector, _cdr) {
|
|
12
|
-
super();
|
|
13
|
-
this._activatedRoute = _activatedRoute;
|
|
14
|
-
this._portalService = _portalService;
|
|
15
|
-
this._injector = _injector;
|
|
16
|
-
this._cdr = _cdr;
|
|
17
|
-
this.minheight = '100svh';
|
|
18
|
-
this._loadingSource = new BehaviorSubject(false);
|
|
19
|
-
this.loading$ = this._loadingSource.asObservable().pipe(takeUntil(this._onDestroy$), debounceTime(200));
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
super.ngOnInit();
|
|
23
|
-
this._activatedRoute.params
|
|
24
|
-
.pipe(takeUntil(this._onDestroy$), tap(() => this._setLoading(true)), map((params) => ({
|
|
25
|
-
Id: params.id.split('__')[0],
|
|
26
|
-
ReportId: params.id.split('__').length > 2 ? params.id.split('__')[2] : '',
|
|
27
|
-
isReportPage: params.id.split('__').length > 3 ? params.id.split('__')[3] : null
|
|
28
|
-
})), tap((c) => (c.isReportPage ? (this.minheight = 'auto') : '100vh')), tap((c) => this.containerRef.clear()), switchMap((navItem) => this._portalService.renderUlvMainUi(navItem, this.containerRef, this._injector, navItem.isReportPage ? false : true)), tap((ulv) => this._setActiveReport(ulv)))
|
|
29
|
-
.subscribe(() => {
|
|
30
|
-
this._setLoading(false);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
ngOnDestroy() {
|
|
34
|
-
super.ngOnDestroy();
|
|
35
|
-
this._setActiveReport(null);
|
|
36
|
-
}
|
|
37
|
-
_setLoading(val) {
|
|
38
|
-
this._loadingSource.next(val);
|
|
39
|
-
this._cdr.detectChanges();
|
|
40
|
-
}
|
|
41
|
-
_setActiveReport(ulv) {
|
|
42
|
-
BarsaApi.Bw.App.GetActiveReport = () => {
|
|
43
|
-
if (ulv === null) {
|
|
44
|
-
return ulv;
|
|
45
|
-
}
|
|
46
|
-
return BarsaApi.Bw._wrap(ulv);
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ReportNavigatorComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.PortalService }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.5", type: ReportNavigatorComponent, selector: "bsu-report-navigator", host: { properties: { "style.min-height": "this.minheight" } }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["containerRef"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `<ng-container #containerRef></ng-container>
|
|
51
|
-
@if ((loading$ | async) === true) {
|
|
52
|
-
<bsu-mask></bsu-mask>
|
|
53
|
-
}`, isInline: true, styles: [":host{display:block;width:100%;background:var(--sapBaseColor)}\n"], dependencies: [{ kind: "component", type: i3.MaskComponent, selector: "bsu-mask", inputs: ["size", "top"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
54
|
-
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ReportNavigatorComponent, decorators: [{
|
|
56
|
-
type: Component,
|
|
57
|
-
args: [{ selector: 'bsu-report-navigator', template: `<ng-container #containerRef></ng-container>
|
|
58
|
-
@if ((loading$ | async) === true) {
|
|
59
|
-
<bsu-mask></bsu-mask>
|
|
60
|
-
}`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%;background:var(--sapBaseColor)}\n"] }]
|
|
61
|
-
}], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i2.PortalService }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }], propDecorators: { containerRef: [{
|
|
62
|
-
type: ViewChild,
|
|
63
|
-
args: ['containerRef', { static: true, read: ViewContainerRef }]
|
|
64
|
-
}], minheight: [{
|
|
65
|
-
type: HostBinding,
|
|
66
|
-
args: ['style.min-height']
|
|
67
|
-
}] } });
|
|
68
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LW5hdmlnYXRvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXJzYS1zYXAtdWkvc3JjL2xpYi9yZXBvcnQtbmF2aWdhdG9yL3JlcG9ydC1uYXZpZ2F0b3IuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCx1QkFBdUIsRUFFdkIsU0FBUyxFQUNULFdBQVcsRUFJWCxTQUFTLEVBQ1QsZ0JBQWdCLEVBQ25CLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxlQUFlLEVBQWMsTUFBTSxNQUFNLENBQUM7QUFDbkQsT0FBTyxFQUFFLFlBQVksRUFBRSxHQUFHLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUU5RSxPQUFPLEVBQUUsYUFBYSxFQUFpQixRQUFRLEVBQ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AgIHRoaXMubG9hZGluZyQgPSB0aGlzLl9sb2FkaW5nU291cmNlLmFzT2JzZXJ2YWJsZSgpLnBpcGUodGFrZVVudGlsKHRoaXMuX29uRGVzdHJveSQpLCBkZWJvdW5jZVRpbWUoMjAwKSk7XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgICAgIHN1cGVyLm5nT25Jbml0KCk7XG5cbiAgICAgICAgdGhpcy5fYWN0aXZhdGVkUm91dGUucGFyYW1zXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICB0YWtlVW50aWwodGhpcy5fb25EZXN0cm95JCksXG4gICAgICAgICAgICAgICAgdGFwKCgpID0+IHRoaXMuX3NldExvYWRpbmcodHJ1ZSkpLFxuICAgICAgICAgICAgICAgIG1hcCgocGFyYW1zOiBQYXJhbXMpID0+ICh7XG4gICAgICAgICAgICAgICAgICAgIElkOiBwYXJhbXMuaWQuc3BsaXQoJ19fJylbMF0sXG4gICAgICAgICAgICAgICAgICAgIFJlcG9ydElkOiBwYXJhbXMuaWQuc3BsaXQoJ19fJykubGVuZ3RoID4gMiA/IHBhcmFtcy5pZC5zcGxpdCgnX18nKVsyXSA6ICcnLFxuICAgICAgICAgICAgICAgICAgICBpc1JlcG9ydFBhZ2U6IHBhcmFtcy5pZC5zcGxpdCgnX18nKS5sZW5ndGggPiAzID8gcGFyYW1zLmlkLnNwbGl0KCdfXycpWzNdIDogbnVsbFxuICAgICAgICAgICAgICAgIH0pKSxcbiAgICAgICAgICAgICAgICB0YXAoKGMpID0+IChjLmlzUmVwb3J0UGFnZSA/ICh0aGlzLm1pbmhlaWdodCA9ICdhdXRvJykgOiAnMTAwdmgnKSksXG4gICAgICAgICAgICAgICAgdGFwKChjKSA9PiB0aGlzLmNvbnRhaW5lclJlZi5jbGVhcigpKSxcbiAgICAgICAgICAgICAgICBzd2l0Y2hNYXAoKG5hdkl0ZW0pID0+XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3BvcnRhbFNlcnZpY2UucmVuZGVyVWx2TWFpblVpKFxuICAgICAgICAgICAgICAgICAgICAgICAgbmF2SXRlbSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY29udGFpbmVyUmVmLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5faW5qZWN0b3IsXG4gICAgICAgICAgICAgICAgICAgICAgICBuYXZJdGVtLmlzUmVwb3J0UGFnZSA/IGZhbHNlIDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICB0YXAoKHVsdjogYW55KSA9PiB0aGlzLl9zZXRBY3RpdmVSZXBvcnQodWx2KSlcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMuX3NldExvYWRpbmcoZmFsc2UpO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxuICAgIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgICAgICBzdXBlci5uZ09uRGVzdHJveSgpO1xuICAgICAgICB0aGlzLl9zZXRBY3RpdmVSZXBvcnQobnVsbCk7XG4gICAgfVxuICAgIHByaXZhdGUgX3NldExvYWRpbmcodmFsOiBib29sZWFuKTogdm9pZCB7XG4gICAgICAgIHRoaXMuX2xvYWRpbmdTb3VyY2UubmV4dCh2YWwpO1xuICAgICAgICB0aGlzLl9jZHIuZGV0ZWN0Q2hhbmdlcygpO1xuICAgIH1cbiAgICBwcml2YXRlIF9zZXRBY3RpdmVSZXBvcnQodWx2OiB1bmtub3duKTogdm9pZCB7XG4gICAgICAgIEJhcnNhQXBpLkJ3LkFwcC5HZXRBY3RpdmVSZXBvcnQgPSAoKSA9PiB7XG4gICAgICAgICAgICBpZiAodWx2ID09PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHVsdjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBCYXJzYUFwaS5Cdy5fd3JhcCh1bHYpO1xuICAgICAgICB9O1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { BaseViewItemPropsComponent, FormPanelService } from 'barsa-novin-ray-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@fundamental-ngx/core/button";
|
|
5
|
-
import * as i2 from "../ly-layout-container-of-root/ly-layout-container-of-root.component";
|
|
6
|
-
import * as i3 from "@angular/common";
|
|
7
|
-
import * as i4 from "barsa-novin-ray-core";
|
|
8
|
-
export class ReportNewTopFormComponent extends BaseViewItemPropsComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.add = new EventEmitter();
|
|
12
|
-
this.save = new EventEmitter();
|
|
13
|
-
this.inRow = false;
|
|
14
|
-
}
|
|
15
|
-
ngOnInit() {
|
|
16
|
-
this._createNewMo();
|
|
17
|
-
super.ngOnInit();
|
|
18
|
-
}
|
|
19
|
-
onAdd() {
|
|
20
|
-
this.add.emit(this.mo);
|
|
21
|
-
this._createNewMo();
|
|
22
|
-
}
|
|
23
|
-
onSave() {
|
|
24
|
-
this.save.emit(this.formPanelCtrlr.Mo);
|
|
25
|
-
}
|
|
26
|
-
ngOnChanges(changes) {
|
|
27
|
-
super.ngOnChanges(changes);
|
|
28
|
-
const { selectedMo } = changes;
|
|
29
|
-
if (selectedMo && !selectedMo.firstChange) {
|
|
30
|
-
if (selectedMo.currentValue) {
|
|
31
|
-
this._setValue({ ...selectedMo.currentValue });
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
this._createNewMo();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
_setValue(mo) {
|
|
39
|
-
this.formPanelCtrlr.SetValue(mo);
|
|
40
|
-
this.formPanelCtrlr.Mo.Id = mo.Id;
|
|
41
|
-
}
|
|
42
|
-
_createNewMo() {
|
|
43
|
-
this.mo = this._ulvMainService.createNewInlineMo(true);
|
|
44
|
-
this._setValue(this.mo);
|
|
45
|
-
this.formPanelCtrlr.Clear();
|
|
46
|
-
}
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ReportNewTopFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
48
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.5", type: ReportNewTopFormComponent, selector: "bsu-report-new-top-form", inputs: { selectedMo: "selectedMo" }, outputs: { add: "add", save: "save" }, providers: [FormPanelService], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if (layout$ | async; as layout94) {\n<bsu-ly-layout-container-of-root\n [config]=\"layout94\"\n [isPanel]=\"false\"\n [isRoot]=\"true\"\n></bsu-ly-layout-container-of-root>\n}\n<div>\n <button\n fd-button\n [disabled]=\"!!selectedMo\"\n [fdType]=\"'standard'\"\n [label]=\"'New' | bbbTranslate\"\n [glyph]=\"'pull-down'\"\n (click)=\"onAdd()\"\n ></button>\n <button\n fd-button\n (click)=\"onSave()\"\n [disabled]=\"!selectedMo\"\n [fdType]=\"'standard'\"\n [label]=\"'Save' | bbbTranslate\"\n [glyph]=\"'save'\"\n ></button>\n</div>\n", styles: [":host{display:flex;flex-direction:column;align-items:flex-end}button{margin:.3rem 5px .5rem;max-width:170px}\n"], dependencies: [{ kind: "component", type: i1.ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i2.LyLayoutContainerOfRootComponent, selector: "bsu-ly-layout-container-of-root" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
49
|
-
}
|
|
50
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ReportNewTopFormComponent, decorators: [{
|
|
51
|
-
type: Component,
|
|
52
|
-
args: [{ selector: 'bsu-report-new-top-form', changeDetection: ChangeDetectionStrategy.OnPush, providers: [FormPanelService], template: "@if (layout$ | async; as layout94) {\n<bsu-ly-layout-container-of-root\n [config]=\"layout94\"\n [isPanel]=\"false\"\n [isRoot]=\"true\"\n></bsu-ly-layout-container-of-root>\n}\n<div>\n <button\n fd-button\n [disabled]=\"!!selectedMo\"\n [fdType]=\"'standard'\"\n [label]=\"'New' | bbbTranslate\"\n [glyph]=\"'pull-down'\"\n (click)=\"onAdd()\"\n ></button>\n <button\n fd-button\n (click)=\"onSave()\"\n [disabled]=\"!selectedMo\"\n [fdType]=\"'standard'\"\n [label]=\"'Save' | bbbTranslate\"\n [glyph]=\"'save'\"\n ></button>\n</div>\n", styles: [":host{display:flex;flex-direction:column;align-items:flex-end}button{margin:.3rem 5px .5rem;max-width:170px}\n"] }]
|
|
53
|
-
}], propDecorators: { selectedMo: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], add: [{
|
|
56
|
-
type: Output
|
|
57
|
-
}], save: [{
|
|
58
|
-
type: Output
|
|
59
|
-
}] } });
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LW5ldy10b3AtZm9ybS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXJzYS1zYXAtdWkvc3JjL2xpYi9yZXBvcnQtbmV3LXRvcC1mb3JtL3JlcG9ydC1uZXctdG9wLWZvcm0uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFyc2Etc2FwLXVpL3NyYy9saWIvcmVwb3J0LW5ldy10b3AtZm9ybS9yZXBvcnQtbmV3LXRvcC1m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AgICAgICBbZ2x5cGhdPVwiJ3NhdmUnXCJcbiAgICA+PC9idXR0b24+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
3
|
-
import { UiGridColumnsComponent } from '../ui-grid-columns/ui-grid-columns.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@fundamental-ngx/core";
|
|
6
|
-
import * as i2 from "@fundamental-ngx/core/bar";
|
|
7
|
-
import * as i3 from "@fundamental-ngx/core/button";
|
|
8
|
-
import * as i4 from "@fundamental-ngx/core/dialog";
|
|
9
|
-
import * as i5 from "@fundamental-ngx/cdk/utils";
|
|
10
|
-
import * as i6 from "@fundamental-ngx/core/title";
|
|
11
|
-
import * as i7 from "../ui-grid-columns/ui-grid-columns.component";
|
|
12
|
-
import * as i8 from "barsa-novin-ray-core";
|
|
13
|
-
export class ReportSearchFieldsHiddenSettingsComponent extends BaseComponent {
|
|
14
|
-
constructor(_dialogRef) {
|
|
15
|
-
super();
|
|
16
|
-
this._dialogRef = _dialogRef;
|
|
17
|
-
this.fields = this._dialogRef.data.fields;
|
|
18
|
-
}
|
|
19
|
-
onCancelSettings() {
|
|
20
|
-
this._dialogRef.close();
|
|
21
|
-
}
|
|
22
|
-
onOkClick() {
|
|
23
|
-
this._dialogRef.close(this.girdColumnsComppnent.columns);
|
|
24
|
-
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ReportSearchFieldsHiddenSettingsComponent, deps: [{ token: i1.DialogRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: ReportSearchFieldsHiddenSettingsComponent, selector: "bsu-report-search-fields-hidden-settings", viewQueries: [{ propertyName: "girdColumnsComppnent", first: true, predicate: UiGridColumnsComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<fd-dialog>\r\n <fd-dialog-header>\r\n <ng-template fdkTemplate=\"header\">\r\n <div fd-bar-left>\r\n <fd-bar-element>\r\n <h4 fd-title [headerSize]=\"4\">\r\n {{ 'Fields' | bbbTranslate }}\r\n </h4>\r\n </fd-bar-element>\r\n </div>\r\n <div fd-bar-right>\r\n <fd-bar-element>\r\n <button fd-button [label]=\"'Reset' | bbbTranslate\" [fdType]=\"'transparent'\"></button>\r\n </fd-bar-element>\r\n </div>\r\n </ng-template>\r\n </fd-dialog-header>\r\n <fd-dialog-body class=\"setting-wrapper\">\r\n <bsu-ui-grid-columns [columns]=\"fields\" #columnFilter></bsu-ui-grid-columns>\r\n </fd-dialog-body>\r\n\r\n <fd-dialog-footer>\r\n <fd-dialog-footer-button>\r\n <button fd-button fdType=\"emphasized\" (click)=\"onOkClick()\" [label]=\"'OK' | bbbTranslate\"></button>\r\n </fd-dialog-footer-button>\r\n <fd-dialog-footer-button>\r\n <button fd-button (click)=\"onCancelSettings()\" [label]=\"'Cancel' | bbbTranslate\"></button>\r\n </fd-dialog-footer-button>\r\n </fd-dialog-footer>\r\n</fd-dialog>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2.BarLeftDirective, selector: "[fd-bar-left]" }, { kind: "directive", type: i2.BarRightDirective, selector: "[fd-bar-right]" }, { kind: "directive", type: i2.BarElementDirective, selector: "fd-bar-element", inputs: ["fullWidth"] }, { kind: "component", type: i3.ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }, { kind: "component", type: i4.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i4.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i4.DialogFooterComponent, selector: "fd-dialog-footer" }, { kind: "component", type: i4.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "directive", type: i5.TemplateDirective, selector: "[fdkTemplate]", inputs: ["fdkTemplate"] }, { kind: "component", type: i6.TitleComponent, selector: "[fd-title], [fdTitle]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "component", type: i7.UiGridColumnsComponent, selector: "bsu-ui-grid-columns", inputs: ["columns", "selectedColumns"], outputs: ["columnsChange"] }, { kind: "pipe", type: i8.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
|
-
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ReportSearchFieldsHiddenSettingsComponent, decorators: [{
|
|
29
|
-
type: Component,
|
|
30
|
-
args: [{ selector: 'bsu-report-search-fields-hidden-settings', changeDetection: ChangeDetectionStrategy.OnPush, template: "<fd-dialog>\r\n <fd-dialog-header>\r\n <ng-template fdkTemplate=\"header\">\r\n <div fd-bar-left>\r\n <fd-bar-element>\r\n <h4 fd-title [headerSize]=\"4\">\r\n {{ 'Fields' | bbbTranslate }}\r\n </h4>\r\n </fd-bar-element>\r\n </div>\r\n <div fd-bar-right>\r\n <fd-bar-element>\r\n <button fd-button [label]=\"'Reset' | bbbTranslate\" [fdType]=\"'transparent'\"></button>\r\n </fd-bar-element>\r\n </div>\r\n </ng-template>\r\n </fd-dialog-header>\r\n <fd-dialog-body class=\"setting-wrapper\">\r\n <bsu-ui-grid-columns [columns]=\"fields\" #columnFilter></bsu-ui-grid-columns>\r\n </fd-dialog-body>\r\n\r\n <fd-dialog-footer>\r\n <fd-dialog-footer-button>\r\n <button fd-button fdType=\"emphasized\" (click)=\"onOkClick()\" [label]=\"'OK' | bbbTranslate\"></button>\r\n </fd-dialog-footer-button>\r\n <fd-dialog-footer-button>\r\n <button fd-button (click)=\"onCancelSettings()\" [label]=\"'Cancel' | bbbTranslate\"></button>\r\n </fd-dialog-footer-button>\r\n </fd-dialog-footer>\r\n</fd-dialog>\r\n" }]
|
|
31
|
-
}], ctorParameters: () => [{ type: i1.DialogRef }], propDecorators: { girdColumnsComppnent: [{
|
|
32
|
-
type: ViewChild,
|
|
33
|
-
args: [UiGridColumnsComponent]
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwb3J0LXNlYXJjaC1maWVsZHMtaGlkZGVuLXNldHRpbmdzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2JhcnNhLXNhcC11aS9zcmMvbGliL3JlcG9ydC1zZWFyY2gtZmllbGRzLWhpZGRlbi1zZXR0aW5ncy9yZXBvcnQtc2VhcmNoLWZpZWxkcy1oaWRkZW4tc2V0dGluZ3MuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFyc2Etc2FwLXVpL3NyYy9saWIvcmVwb3J0LXNlYXJjaC1maWVsZHMtaGlkZGVuLXNldHRpbmdzL3JlcG9ydC1zZWFyY2gtZmllbGRzLWhpZGRlbi1zZXR0aW5ncy5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUc5RSxPQUFPLEVBQUUsYUFBYSxFQUFrQixNQUFNLHNCQUFzQixDQUFDO0FBQ3JFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDhDQUE4QyxDQUFDOzs7Ozs7Ozs7O0FBUXRGLE1BQU0sT0FBTyx5Q0FBMEMsU0FBUSxhQUFhO0lBSXhFLFlBQW9CLFVBQXFCO1FBQ3JDLEtBQUssRUFBRSxDQUFDO1FBRFEsZUFBVSxHQUFWLFVBQVUsQ0FBVztRQUVyQyxJQU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