barsa-sap-ui 2.1.5 → 2.1.7
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.
|
@@ -352,10 +352,10 @@ function GetFormLayoutGrid(ceil, colXl, colLg, colMd) {
|
|
|
352
352
|
}
|
|
353
353
|
const sort$1 = (a, b, key, isNumber) => {
|
|
354
354
|
if (key) {
|
|
355
|
-
if (typeof a === 'object') {
|
|
355
|
+
if (typeof a === 'object' && !(a instanceof Date)) {
|
|
356
356
|
a = getNestedValue(key, a);
|
|
357
357
|
}
|
|
358
|
-
if (typeof b === 'object') {
|
|
358
|
+
if (typeof b === 'object' && !(b instanceof Date)) {
|
|
359
359
|
b = getNestedValue(key, b);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -365,6 +365,31 @@ const sort$1 = (a, b, key, isNumber) => {
|
|
|
365
365
|
else if (typeof a === 'string' && typeof b === 'string') {
|
|
366
366
|
return a.localeCompare(b);
|
|
367
367
|
}
|
|
368
|
+
else if (a instanceof Date || b instanceof Date) {
|
|
369
|
+
if (!a && b) {
|
|
370
|
+
return -1;
|
|
371
|
+
}
|
|
372
|
+
if (!b && a) {
|
|
373
|
+
return 1;
|
|
374
|
+
}
|
|
375
|
+
if (a instanceof Date && b instanceof Date) {
|
|
376
|
+
const msDateA = Date.UTC(a.getFullYear(), a.getMonth() + 1, a.getDate());
|
|
377
|
+
const msDateB = Date.UTC(b.getFullYear(), b.getMonth() + 1, b.getDate());
|
|
378
|
+
if (msDateA < msDateB) {
|
|
379
|
+
return -1;
|
|
380
|
+
}
|
|
381
|
+
else if (msDateA === msDateB) {
|
|
382
|
+
return 0;
|
|
383
|
+
}
|
|
384
|
+
else if (msDateA > msDateB) {
|
|
385
|
+
return 1;
|
|
386
|
+
}
|
|
387
|
+
return a.getTime() > b?.getTime() ? 1 : a.getTime() === b.getTime() ? 0 : -1;
|
|
388
|
+
}
|
|
389
|
+
else {
|
|
390
|
+
return 0;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
368
393
|
return a > b ? 1 : a === b ? 0 : -1;
|
|
369
394
|
};
|
|
370
395
|
function _trimEnd(value) {
|
|
@@ -2509,7 +2534,7 @@ class UlvToolbarComponent extends BaseComponent {
|
|
|
2509
2534
|
ngAfterViewInit() {
|
|
2510
2535
|
super.ngAfterViewInit();
|
|
2511
2536
|
this._portalService.windowResize$.pipe(takeUntil$1(this._onDestroy$)).subscribe(() => {
|
|
2512
|
-
this.
|
|
2537
|
+
this.refreshResize();
|
|
2513
2538
|
});
|
|
2514
2539
|
}
|
|
2515
2540
|
ngOnChanges(changes) {
|
|
@@ -2542,7 +2567,10 @@ class UlvToolbarComponent extends BaseComponent {
|
|
|
2542
2567
|
if (!this.visibled || this.hideToolbar) {
|
|
2543
2568
|
return;
|
|
2544
2569
|
}
|
|
2545
|
-
|
|
2570
|
+
this.refreshResize();
|
|
2571
|
+
}
|
|
2572
|
+
refreshResize() {
|
|
2573
|
+
const x = Math.floor(this.el.nativeElement.parentNode.getBoundingClientRect().width);
|
|
2546
2574
|
this._renderer2.setStyle(this.el.nativeElement, 'width', x + 'px');
|
|
2547
2575
|
setTimeout(() => {
|
|
2548
2576
|
this._refreshToolbar();
|
|
@@ -5964,10 +5992,6 @@ class UiTableViewComponent extends ReportViewBaseComponent {
|
|
|
5964
5992
|
}
|
|
5965
5993
|
ngOnInit() {
|
|
5966
5994
|
super.ngOnInit();
|
|
5967
|
-
const x = Math.floor(this._el.nativeElement.parentNode.getBoundingClientRect().width);
|
|
5968
|
-
if (x) {
|
|
5969
|
-
this._renderer2.setStyle(this._el.nativeElement, 'width', `${x - 10}px`);
|
|
5970
|
-
}
|
|
5971
5995
|
this._portalService.windowResize$.pipe(takeUntil$1(this._onDestroy$)).subscribe(() => {
|
|
5972
5996
|
const x = Math.floor(this._el.nativeElement.parentNode.getBoundingClientRect().width);
|
|
5973
5997
|
this._renderer2.setStyle(this._tableRef.nativeElement, 'width', x + 'px');
|
|
@@ -5985,12 +6009,11 @@ class UiTableViewComponent extends ReportViewBaseComponent {
|
|
|
5985
6009
|
: TableHeaderWidthMode.FitToContainer;
|
|
5986
6010
|
this._calcContextMenuWidth(this.contextMenuItems);
|
|
5987
6011
|
}
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
this._setWidth(true);
|
|
6012
|
+
ngAfterViewInit() {
|
|
6013
|
+
super.ngAfterViewInit();
|
|
6014
|
+
const x = Math.floor(this._el.nativeElement.parentNode.getBoundingClientRect().width);
|
|
6015
|
+
if (x) {
|
|
6016
|
+
this._renderer2.setStyle(this._el.nativeElement, 'width', `${x}px`);
|
|
5994
6017
|
}
|
|
5995
6018
|
}
|
|
5996
6019
|
ngOnChanges(changes) {
|
|
@@ -6010,6 +6033,14 @@ class UiTableViewComponent extends ReportViewBaseComponent {
|
|
|
6010
6033
|
}
|
|
6011
6034
|
super.ngOnChanges(changes);
|
|
6012
6035
|
}
|
|
6036
|
+
_calcContextMenuWidth(contextMenuItems) {
|
|
6037
|
+
this.contextMenuWidth = calcContextMenuWidth(contextMenuItems, this.disableOverflowContextMenu);
|
|
6038
|
+
}
|
|
6039
|
+
onTableVisibilityChange(e, dom) {
|
|
6040
|
+
if (e === 'Visible') {
|
|
6041
|
+
setTimeout(() => this._setWidth(true), 100);
|
|
6042
|
+
}
|
|
6043
|
+
}
|
|
6013
6044
|
onColumnResizing(e) {
|
|
6014
6045
|
this._tableHeaderComponent.SetColumnWidthToThWidth();
|
|
6015
6046
|
this._setParentWidth();
|
|
@@ -6114,8 +6145,8 @@ class UiTableViewComponent extends ReportViewBaseComponent {
|
|
|
6114
6145
|
}
|
|
6115
6146
|
this.oldWidth = widthOfDom;
|
|
6116
6147
|
const widthOfDom2 = Math.floor(this._el.nativeElement.parentNode.getBoundingClientRect().width);
|
|
6117
|
-
this._renderer2.setStyle(this._tableRef.nativeElement, 'max-width', widthOfDom2
|
|
6118
|
-
this._renderer2.setStyle(this._tableRef.nativeElement, 'width', widthOfDom2
|
|
6148
|
+
this._renderer2.setStyle(this._tableRef.nativeElement, 'max-width', widthOfDom2 + 'px');
|
|
6149
|
+
this._renderer2.setStyle(this._tableRef.nativeElement, 'width', widthOfDom2 + 'px');
|
|
6119
6150
|
}
|
|
6120
6151
|
_calculateHeaderStickyTop(dom) {
|
|
6121
6152
|
if (this.stickyEnable() && this.tableHeaderDom) {
|
|
@@ -9954,11 +9985,11 @@ class LyTabContainerComponent extends LayoutItemBaseComponent {
|
|
|
9954
9985
|
this._tabsSource.next(visibleTabs);
|
|
9955
9986
|
}
|
|
9956
9987
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LyTabContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9957
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: LyTabContainerComponent, selector: "bsu-ly-tab-container", host: { properties: { "style.flex": "this.flex" } }, viewQueries: [{ propertyName: "tabpages", predicate: TabPanelComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<fdp-icon-tab-bar [collapseOverflow]=\"true\" [expandOverflowText]=\"'More' | bbbTranslate\">\n @for (tabPage of tabs$ | async; track tabPage; let tabindex = $index) {\n <fdp-icon-tab-bar-tab\n [label]=\"tabPage.Title || '' | bbbTranslate\"\n [title]=\"tabPage.Title || '' | bbbTranslate\"\n [disabled]=\"tabPage.disabled\"\n [class.control-disabled]=\"tabPage.Enable === false\"\n [class.readonly]=\"tabPage.Readonly\"\n >\n <bsu-ly-tab-page [config]=\"tabPage\"></bsu-ly-tab-page>\n </fdp-icon-tab-bar-tab>\n }\n</fdp-icon-tab-bar>\n", styles: [":host{width:100%;display:block}\n"], dependencies: [{ kind: "component", type: i18.IconTabBarComponent, selector: "fdp-icon-tab-bar", inputs: ["stackContent", "iconTabType", "tabsConfig", "densityMode", "iconTabFont", "enableTabReordering", "showTotalTab", "multiClick", "layoutMode", "iconTabBackground", "iconTabSize", "colorAssociations", "maxContentHeight"], outputs: ["tabsConfigChange", "densityModeChange", "iconTabSelected", "iconTabReordered", "closeTab"] }, { kind: "component", type: i18.IconTabBarTabComponent, selector: "fdp-icon-tab-bar-tab", inputs: ["label", "color", "icon", "iconFont", "counter", "active", "badge", "closable", "id"] }, { kind: "component", type: LyTabPageComponent, selector: "bsu-ly-tab-page", inputs: ["renderItems", "tablist"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9988
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: LyTabContainerComponent, selector: "bsu-ly-tab-container", host: { properties: { "style.flex": "this.flex" } }, viewQueries: [{ propertyName: "tabpages", predicate: TabPanelComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<fdp-icon-tab-bar [collapseOverflow]=\"true\" [expandOverflowText]=\"'More' | bbbTranslate\">\n @for (tabPage of tabs$ | async; track tabPage; let tabindex = $index) {\n <fdp-icon-tab-bar-tab\n [label]=\"tabPage.Title || '' | bbbTranslate\"\n [title]=\"tabPage.Title || '' | bbbTranslate\"\n [disabled]=\"tabPage.disabled\"\n [class.control-disabled]=\"tabPage.Enable === false\"\n [class.readonly]=\"tabPage.Readonly\"\n >\n <bsu-ly-tab-page [config]=\"tabPage\"></bsu-ly-tab-page>\n </fdp-icon-tab-bar-tab>\n }\n</fdp-icon-tab-bar>\n", styles: [":host{width:100%;display:block}fdp-icon-tab-bar ::ng-deep>div{border:.0625rem solid var(--sapGroup_TitleBorderColor)}\n"], dependencies: [{ kind: "component", type: i18.IconTabBarComponent, selector: "fdp-icon-tab-bar", inputs: ["stackContent", "iconTabType", "tabsConfig", "densityMode", "iconTabFont", "enableTabReordering", "showTotalTab", "multiClick", "layoutMode", "iconTabBackground", "iconTabSize", "colorAssociations", "maxContentHeight"], outputs: ["tabsConfigChange", "densityModeChange", "iconTabSelected", "iconTabReordered", "closeTab"] }, { kind: "component", type: i18.IconTabBarTabComponent, selector: "fdp-icon-tab-bar-tab", inputs: ["label", "color", "icon", "iconFont", "counter", "active", "badge", "closable", "id"] }, { kind: "component", type: LyTabPageComponent, selector: "bsu-ly-tab-page", inputs: ["renderItems", "tablist"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9958
9989
|
}
|
|
9959
9990
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LyTabContainerComponent, decorators: [{
|
|
9960
9991
|
type: Component,
|
|
9961
|
-
args: [{ selector: 'bsu-ly-tab-container', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<fdp-icon-tab-bar [collapseOverflow]=\"true\" [expandOverflowText]=\"'More' | bbbTranslate\">\n @for (tabPage of tabs$ | async; track tabPage; let tabindex = $index) {\n <fdp-icon-tab-bar-tab\n [label]=\"tabPage.Title || '' | bbbTranslate\"\n [title]=\"tabPage.Title || '' | bbbTranslate\"\n [disabled]=\"tabPage.disabled\"\n [class.control-disabled]=\"tabPage.Enable === false\"\n [class.readonly]=\"tabPage.Readonly\"\n >\n <bsu-ly-tab-page [config]=\"tabPage\"></bsu-ly-tab-page>\n </fdp-icon-tab-bar-tab>\n }\n</fdp-icon-tab-bar>\n", styles: [":host{width:100%;display:block}\n"] }]
|
|
9992
|
+
args: [{ selector: 'bsu-ly-tab-container', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<fdp-icon-tab-bar [collapseOverflow]=\"true\" [expandOverflowText]=\"'More' | bbbTranslate\">\n @for (tabPage of tabs$ | async; track tabPage; let tabindex = $index) {\n <fdp-icon-tab-bar-tab\n [label]=\"tabPage.Title || '' | bbbTranslate\"\n [title]=\"tabPage.Title || '' | bbbTranslate\"\n [disabled]=\"tabPage.disabled\"\n [class.control-disabled]=\"tabPage.Enable === false\"\n [class.readonly]=\"tabPage.Readonly\"\n >\n <bsu-ly-tab-page [config]=\"tabPage\"></bsu-ly-tab-page>\n </fdp-icon-tab-bar-tab>\n }\n</fdp-icon-tab-bar>\n", styles: [":host{width:100%;display:block}fdp-icon-tab-bar ::ng-deep>div{border:.0625rem solid var(--sapGroup_TitleBorderColor)}\n"] }]
|
|
9962
9993
|
}], propDecorators: { tabpages: [{
|
|
9963
9994
|
type: ViewChildren,
|
|
9964
9995
|
args: [TabPanelComponent]
|