barsa-novin-ray-core 2.0.123 → 2.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/abstract-classes/report-view-base.component.mjs +19 -1
- package/esm2022/lib/dynamic-component/base-view-item-props.mjs +8 -2
- package/esm2022/lib/dynamic-component/base-view-props.mjs +13 -3
- package/esm2022/lib/services/portal.service.mjs +10 -3
- package/fesm2022/barsa-novin-ray-core.mjs +46 -5
- package/fesm2022/barsa-novin-ray-core.mjs.map +1 -1
- package/lib/abstract-classes/report-view-base.component.d.ts +5 -1
- package/lib/dynamic-component/base-view-item-props.d.ts +4 -1
- package/lib/dynamic-component/base-view-props.d.ts +7 -2
- package/lib/services/portal.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -3201,6 +3201,7 @@ class PortalService {
|
|
|
3201
3201
|
this._navigationEnd$ = new BehaviorSubject(null);
|
|
3202
3202
|
this._userPortalSettings$ = new BehaviorSubject({});
|
|
3203
3203
|
this._cssUrlSource = new BehaviorSubject(null);
|
|
3204
|
+
this._cssVariableUrlSource = new BehaviorSubject(null);
|
|
3204
3205
|
this._cssCustomUrlSource = new BehaviorSubject(null);
|
|
3205
3206
|
this._searchTerm$ = new BehaviorSubject('');
|
|
3206
3207
|
this._windowResize$ = new Subject();
|
|
@@ -3241,7 +3242,10 @@ class PortalService {
|
|
|
3241
3242
|
return this._searchTerm$.asObservable();
|
|
3242
3243
|
}
|
|
3243
3244
|
get cssUrl$() {
|
|
3244
|
-
return this._cssUrlSource.asObservable();
|
|
3245
|
+
return this._cssUrlSource.asObservable().pipe(distinctUntilChanged());
|
|
3246
|
+
}
|
|
3247
|
+
get cssVariableUrl$() {
|
|
3248
|
+
return this._cssVariableUrlSource.asObservable().pipe(distinctUntilChanged());
|
|
3245
3249
|
}
|
|
3246
3250
|
get cssCustomUrl$() {
|
|
3247
3251
|
return this._cssCustomUrlSource.asObservable();
|
|
@@ -3290,9 +3294,12 @@ class PortalService {
|
|
|
3290
3294
|
this._userPortalSettings$.next({ ...value });
|
|
3291
3295
|
}
|
|
3292
3296
|
}
|
|
3293
|
-
|
|
3297
|
+
setCssUrlTheme(themeUrl, cssVariableUrl) {
|
|
3294
3298
|
this._cssUrlSource.next(themeUrl);
|
|
3295
3299
|
this._cssCustomUrlSource.next(themeUrl);
|
|
3300
|
+
if (cssVariableUrl) {
|
|
3301
|
+
this._cssVariableUrlSource.next(cssVariableUrl);
|
|
3302
|
+
}
|
|
3296
3303
|
}
|
|
3297
3304
|
setData(key, data) {
|
|
3298
3305
|
if (!this.dictionary[key]) {
|
|
@@ -8968,6 +8975,7 @@ class ReportViewBaseComponent extends BaseComponent {
|
|
|
8968
8975
|
this.hasDetailsInRow = new EventEmitter();
|
|
8969
8976
|
this.canView = false;
|
|
8970
8977
|
this.contextMenuWidth = 0;
|
|
8978
|
+
this.detailsColumns = [];
|
|
8971
8979
|
this._containerWidth = 0;
|
|
8972
8980
|
}
|
|
8973
8981
|
get showViewButton() {
|
|
@@ -8986,6 +8994,17 @@ class ReportViewBaseComponent extends BaseComponent {
|
|
|
8986
8994
|
this.columns.forEach((c) => (fieldDict[c.Caption] = c.Name));
|
|
8987
8995
|
this.fieldDict = fieldDict;
|
|
8988
8996
|
}
|
|
8997
|
+
const detailsSetting = this.viewSetting?.DetailsSetting;
|
|
8998
|
+
if (detailsSetting) {
|
|
8999
|
+
this.detailsComponent = detailsSetting.Component;
|
|
9000
|
+
detailsSetting.Columns.split(',').forEach((columnName) => {
|
|
9001
|
+
const column = this._findColumnByDbName.transform(this.allColumns, columnName, this.secondaryColumns);
|
|
9002
|
+
if (column) {
|
|
9003
|
+
this.detailsColumns.push(column);
|
|
9004
|
+
}
|
|
9005
|
+
});
|
|
9006
|
+
}
|
|
9007
|
+
this._setRowIndicator(this.columns);
|
|
8989
9008
|
}
|
|
8990
9009
|
onActionListClick(mo, index, itemId) {
|
|
8991
9010
|
if (itemId === 'Show') {
|
|
@@ -9131,6 +9150,12 @@ class ReportViewBaseComponent extends BaseComponent {
|
|
|
9131
9150
|
}
|
|
9132
9151
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9133
9152
|
_containerWidthChanged(_) { }
|
|
9153
|
+
_setRowIndicator(columns) {
|
|
9154
|
+
if (!columns?.length) {
|
|
9155
|
+
return;
|
|
9156
|
+
}
|
|
9157
|
+
this.rowIndicator = Number(columns[0].MetaFieldTypeId) === 41;
|
|
9158
|
+
}
|
|
9134
9159
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: ReportViewBaseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: FindColumnByDbNamePipe }, { token: UlvMainService }, { token: PortalService }, { token: UploadService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9135
9160
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: ReportViewBaseComponent, selector: "bnrc-report-view-base", inputs: { contextView: "contextView", viewSetting: "viewSetting", allColumns: "allColumns", isCheckList: "isCheckList", simpleInlineEdit: "simpleInlineEdit", hideToolbar: "hideToolbar", hideTitle: "hideTitle", toolbarButtons: "toolbarButtons", allChecked: "allChecked", moDataList: "moDataList", UlvMainCtrlr: "UlvMainCtrlr", access: "access", groupby: "groupby", selectedCount: "selectedCount", conditionalFormats: "conditionalFormats", parentHeight: "parentHeight", deviceName: "deviceName", deviceSize: "deviceSize", contextMenuItems: "contextMenuItems", columns: "columns", allowInlineEdit: "allowInlineEdit", secondaryColumns: "secondaryColumns", popin: "popin", customFieldInfo: "customFieldInfo", hasSummary: "hasSummary", hasSelected: "hasSelected", hideIcon: "hideIcon", columnsCount: "columnsCount", hideOpenIcon: "hideOpenIcon", openOnClick: "openOnClick", typeDefId: "typeDefId", reportId: "reportId", listEditViewId: "listEditViewId", typeViewId: "typeViewId", extraRelation: "extraRelation", relationList: "relationList", disableResponsive: "disableResponsive", rowItem: "rowItem", mobileOrTablet: "mobileOrTablet", inDialog: "inDialog", isMultiSelect: "isMultiSelect", fullscreen: "fullscreen", hideSearchpanel: "hideSearchpanel", newInlineEditMo: "newInlineEditMo", selectedMo: "selectedMo", inlineEditMode: "inlineEditMode", onlyInlineEdit: "onlyInlineEdit", rowHoverable: "rowHoverable", groupSummary: "groupSummary", tlbButtons: "tlbButtons", formSetting: "formSetting", disableOverflowContextMenu: "disableOverflowContextMenu", rowActivable: "rowActivable", contentDensity: "contentDensity", rtl: "rtl", showOkCancelButtons: "showOkCancelButtons", title: "title", hasInlineDeleteButton: "hasInlineDeleteButton", hasInlineEditButton: "hasInlineEditButton", contextSetting: "contextSetting", gridFreeColumnSizing: "gridFreeColumnSizing", navigationArrow: "navigationArrow", cartableTemplates: "cartableTemplates", cartableChildsMo: "cartableChildsMo", pagingSetting: "pagingSetting", containerWidth: "containerWidth" }, outputs: { columnSummary: "columnSummary", escapeKey: "escapeKey", resetWorkflowState: "resetWorkflowState", deselectAll: "deselectAll", editFormPanelCancel: "editFormPanelCancel", editFormPanelSave: "editFormPanelSave", selectNextInlineRecord: "selectNextInlineRecord", editFormPanelValueChange: "editFormPanelValueChange", ulvCommandClick: "ulvCommandClick", sortAscending: "sortAscending", workflowShareButtons: "workflowShareButtons", sortDescending: "sortDescending", filter: "filter", executeToolbarButton: "executeToolbarButton", resetGridSettings: "resetGridSettings", rowCheck: "rowCheck", rowClick: "rowClick", cartableFormClosed: "cartableFormClosed", createNewMo: "createNewMo", updateMo: "updateMo", expandClick: "expandClick", trackBySelectedFn: "trackBySelectedFn", allCheckbox: "allCheckbox", mandatory: "mandatory", columnResized: "columnResized", hasDetailsInRow: "hasDetailsInRow" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9136
9161
|
}
|
|
@@ -10634,7 +10659,7 @@ class BaseViewPropsComponent extends BaseComponent {
|
|
|
10634
10659
|
return `${row.$Group ? row.$Group : row.Id}${index}`;
|
|
10635
10660
|
}
|
|
10636
10661
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: BaseViewPropsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10637
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: BaseViewPropsComponent, selector: "bnrc-base-view-props", inputs: { moDataList: "moDataList", reportId: "reportId", allColumns: "allColumns", isCheckList: "isCheckList", allChecked: "allChecked", canView: "canView", visibility: "visibility", level: "level", expanded: "expanded", styleIndex: "styleIndex", parentExpanded: "parentExpanded", access: "access", groupby: "groupby", UlvMainCtrlr: "UlvMainCtrlr", conditionalFormats: "conditionalFormats", deviceName: "deviceName", deviceSize: "deviceSize", contextMenuItems: "contextMenuItems", columns: "columns", allowInlineEdit: "allowInlineEdit", secondaryColumns: "secondaryColumns", popin: "popin", typeDefId: "typeDefId", columnsCount: "columnsCount", mobileOrTablet: "mobileOrTablet", containerWidth: "containerWidth", newInlineEditMo: "newInlineEditMo", inlineEditMode: "inlineEditMode", onlyInlineEdit: "onlyInlineEdit", rowHoverable: "rowHoverable", openOnClick: "openOnClick", tlbButtons: "tlbButtons", setting: "setting", parameters: "parameters", formSetting: "formSetting", disableOverflowContextMenu: "disableOverflowContextMenu", rowActivable: "rowActivable", contentDensity: "contentDensity", rtl: "rtl", showOkCancelButtons: "showOkCancelButtons", title: "title", isChecked: "isChecked", navigationArrow: "navigationArrow" }, outputs: { resetWorkflowState: "resetWorkflowState", deselectAll: "deselectAll", escapeKey: "escapeKey", rowCheck: "rowCheck", workflowShareButtons: "workflowShareButtons", rowClick: "rowClick", ulvCommand: "ulvCommand", editFormPanelCancel: "editFormPanelCancel", editFormPanelSave: "editFormPanelSave", selectNextInlineRecord: "selectNextInlineRecord", action: "action", expandClick: "expandClick", editFormPanelValueChange: "editFormPanelValueChange", cartableFormClosed: "cartableFormClosed" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10662
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: BaseViewPropsComponent, selector: "bnrc-base-view-props", inputs: { detailsComponent: "detailsComponent", detailsColumns: "detailsColumns", detailsText: "detailsText", detailsTextFunction: "detailsTextFunction", moDataList: "moDataList", reportId: "reportId", allColumns: "allColumns", hideOpenIcon: "hideOpenIcon", isCheckList: "isCheckList", allChecked: "allChecked", canView: "canView", visibility: "visibility", level: "level", expanded: "expanded", styleIndex: "styleIndex", parentExpanded: "parentExpanded", access: "access", groupby: "groupby", UlvMainCtrlr: "UlvMainCtrlr", conditionalFormats: "conditionalFormats", deviceName: "deviceName", deviceSize: "deviceSize", contextMenuItems: "contextMenuItems", columns: "columns", allowInlineEdit: "allowInlineEdit", secondaryColumns: "secondaryColumns", popin: "popin", typeDefId: "typeDefId", columnsCount: "columnsCount", mobileOrTablet: "mobileOrTablet", containerWidth: "containerWidth", newInlineEditMo: "newInlineEditMo", inlineEditMode: "inlineEditMode", onlyInlineEdit: "onlyInlineEdit", rowHoverable: "rowHoverable", openOnClick: "openOnClick", tlbButtons: "tlbButtons", setting: "setting", parameters: "parameters", formSetting: "formSetting", disableOverflowContextMenu: "disableOverflowContextMenu", rowActivable: "rowActivable", contentDensity: "contentDensity", rtl: "rtl", showOkCancelButtons: "showOkCancelButtons", title: "title", isChecked: "isChecked", navigationArrow: "navigationArrow" }, outputs: { resetWorkflowState: "resetWorkflowState", deselectAll: "deselectAll", escapeKey: "escapeKey", rowCheck: "rowCheck", workflowShareButtons: "workflowShareButtons", rowClick: "rowClick", ulvCommand: "ulvCommand", editFormPanelCancel: "editFormPanelCancel", editFormPanelSave: "editFormPanelSave", selectNextInlineRecord: "selectNextInlineRecord", action: "action", expandClick: "expandClick", editFormPanelValueChange: "editFormPanelValueChange", cartableFormClosed: "cartableFormClosed" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10638
10663
|
}
|
|
10639
10664
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: BaseViewPropsComponent, decorators: [{
|
|
10640
10665
|
type: Component,
|
|
@@ -10643,12 +10668,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImpor
|
|
|
10643
10668
|
template: ``,
|
|
10644
10669
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
10645
10670
|
}]
|
|
10646
|
-
}], propDecorators: {
|
|
10671
|
+
}], propDecorators: { detailsComponent: [{
|
|
10672
|
+
type: Input
|
|
10673
|
+
}], detailsColumns: [{
|
|
10674
|
+
type: Input
|
|
10675
|
+
}], detailsText: [{
|
|
10676
|
+
type: Input
|
|
10677
|
+
}], detailsTextFunction: [{
|
|
10678
|
+
type: Input
|
|
10679
|
+
}], moDataList: [{
|
|
10647
10680
|
type: Input
|
|
10648
10681
|
}], reportId: [{
|
|
10649
10682
|
type: Input
|
|
10650
10683
|
}], allColumns: [{
|
|
10651
10684
|
type: Input
|
|
10685
|
+
}], hideOpenIcon: [{
|
|
10686
|
+
type: Input
|
|
10652
10687
|
}], isCheckList: [{
|
|
10653
10688
|
type: Input
|
|
10654
10689
|
}], allChecked: [{
|
|
@@ -11199,7 +11234,7 @@ class BaseViewItemPropsComponent extends BaseViewPropsComponent {
|
|
|
11199
11234
|
});
|
|
11200
11235
|
}
|
|
11201
11236
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: BaseViewItemPropsComponent, deps: [{ token: i0.ElementRef }, { token: i4.DomSanitizer }, { token: i0.ChangeDetectorRef }, { token: MoReportValuePipe }, { token: FormPanelService, optional: true, skipSelf: true }, { token: FormPanelService, optional: true, self: true }, { token: UlvMainService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11202
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: BaseViewItemPropsComponent, selector: "bnrc-base-view-item-props", inputs: { checkboxComponent: "checkboxComponent", disableEllapsis: "disableEllapsis", mo: "mo", moDataListCount: "moDataListCount", index: "index", last: "last", isdirty: "isdirty", isChecked: "isChecked", hideDetailsText: "hideDetailsText", showViewButton: "showViewButton", isNewInlineMo: "isNewInlineMo", extraRelation: "extraRelation", hideOpenIcon: "hideOpenIcon", inDialog: "inDialog", isMultiSelect: "isMultiSelect", rowIndicator: "rowIndicator", groupSummary: "groupSummary", isLastChildGroup: "isLastChildGroup", showRowNumber: "showRowNumber", rowNumber: "rowNumber", coloringRow: "coloringRow", noSaveInlineEditInServer: "noSaveInlineEditInServer", rowIndicatorColor: "rowIndicatorColor", UlvMainCtrlr: "UlvMainCtrlr", fieldDict: "fieldDict", actionList: "actionList", serializedRelatedMo: "serializedRelatedMo", cartableTemplate: "cartableTemplate", cartableMo: "cartableMo", cartableWorkflowData: "cartableWorkflowData" }, outputs: { actionListClick: "actionListClick", events: "events" }, viewQueries: [{ propertyName: "_cartableFormRef", first: true, predicate: ["cartableFormRef"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11237
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: BaseViewItemPropsComponent, selector: "bnrc-base-view-item-props", inputs: { checkboxComponent: "checkboxComponent", disableEllapsis: "disableEllapsis", detailsComponent: "detailsComponent", detailsColumns: "detailsColumns", detailsText: "detailsText", mo: "mo", moDataListCount: "moDataListCount", index: "index", last: "last", isdirty: "isdirty", isChecked: "isChecked", hideDetailsText: "hideDetailsText", showViewButton: "showViewButton", isNewInlineMo: "isNewInlineMo", extraRelation: "extraRelation", hideOpenIcon: "hideOpenIcon", inDialog: "inDialog", isMultiSelect: "isMultiSelect", rowIndicator: "rowIndicator", groupSummary: "groupSummary", isLastChildGroup: "isLastChildGroup", showRowNumber: "showRowNumber", rowNumber: "rowNumber", coloringRow: "coloringRow", noSaveInlineEditInServer: "noSaveInlineEditInServer", rowIndicatorColor: "rowIndicatorColor", UlvMainCtrlr: "UlvMainCtrlr", fieldDict: "fieldDict", actionList: "actionList", serializedRelatedMo: "serializedRelatedMo", cartableTemplate: "cartableTemplate", cartableMo: "cartableMo", cartableWorkflowData: "cartableWorkflowData" }, outputs: { actionListClick: "actionListClick", events: "events" }, viewQueries: [{ propertyName: "_cartableFormRef", first: true, predicate: ["cartableFormRef"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11203
11238
|
}
|
|
11204
11239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: BaseViewItemPropsComponent, decorators: [{
|
|
11205
11240
|
type: Component,
|
|
@@ -11229,6 +11264,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImpor
|
|
|
11229
11264
|
type: Input
|
|
11230
11265
|
}], disableEllapsis: [{
|
|
11231
11266
|
type: Input
|
|
11267
|
+
}], detailsComponent: [{
|
|
11268
|
+
type: Input
|
|
11269
|
+
}], detailsColumns: [{
|
|
11270
|
+
type: Input
|
|
11271
|
+
}], detailsText: [{
|
|
11272
|
+
type: Input
|
|
11232
11273
|
}], mo: [{
|
|
11233
11274
|
type: Input
|
|
11234
11275
|
}], moDataListCount: [{
|