@bolid-ui/data-table 0.2.2 → 0.2.4
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/dist/community/components/framework/userCompUtils.cjs +1 -1
- package/dist/community/components/framework/userCompUtils.d.cts +7 -0
- package/dist/community/components/framework/userCompUtils.d.ts +7 -0
- package/dist/community/components/framework/userCompUtils.js +30 -24
- package/dist/community/context/context.d.cts +1 -1
- package/dist/community/context/context.d.ts +1 -1
- package/dist/community/entities/gridOptions.d.cts +30 -4
- package/dist/community/entities/gridOptions.d.ts +30 -4
- package/dist/community/gridOptionsDefault.cjs +1 -1
- package/dist/community/gridOptionsDefault.d.cts +2 -1
- package/dist/community/gridOptionsDefault.d.ts +2 -1
- package/dist/community/gridOptionsDefault.js +2 -1
- package/dist/community/interfaces/iLoadingCellRenderer.d.cts +3 -2
- package/dist/community/interfaces/iLoadingCellRenderer.d.ts +3 -2
- package/dist/community/pagination/paginationComp.cjs +1 -1
- package/dist/community/pagination/paginationComp.js +1 -6
- package/dist/community/propertyKeys.cjs +1 -1
- package/dist/community/propertyKeys.js +2 -2
- package/dist/community/rendering/row/rowCtrl.cjs +1 -1
- package/dist/community/rendering/row/rowCtrl.d.cts +1 -0
- package/dist/community/rendering/row/rowCtrl.d.ts +1 -0
- package/dist/community/rendering/row/rowCtrl.js +39 -27
- package/dist/community/theming/parts/theme/default-params.cjs +1 -1
- package/dist/community/theming/parts/theme/default-params.d.cts +1 -1
- package/dist/community/theming/parts/theme/default-params.d.ts +1 -1
- package/dist/community/theming/parts/theme/default-params.js +1 -1
- package/dist/community/theming/parts/theme/themes.d.cts +1 -1
- package/dist/community/theming/parts/theme/themes.d.ts +1 -1
- package/dist/community/validation/rules/userCompValidations.cjs +1 -1
- package/dist/community/validation/rules/userCompValidations.js +1 -0
- package/dist/enterprise/cellRenderers/enterpriseCellRendererModule.cjs +1 -1
- package/dist/enterprise/cellRenderers/enterpriseCellRendererModule.js +8 -4
- package/dist/enterprise/cellRenderers/errorCellRenderer.cjs +1 -0
- package/dist/enterprise/cellRenderers/errorCellRenderer.d.cts +13 -0
- package/dist/enterprise/cellRenderers/errorCellRenderer.d.ts +13 -0
- package/dist/enterprise/cellRenderers/errorCellRenderer.js +25 -0
- package/dist/enterprise/cellRenderers/loadingCellRenderer.cjs +1 -1
- package/dist/enterprise/cellRenderers/loadingCellRenderer.d.cts +0 -1
- package/dist/enterprise/cellRenderers/loadingCellRenderer.d.ts +0 -1
- package/dist/enterprise/cellRenderers/loadingCellRenderer.js +1 -4
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyBlockLoadingService.cjs +1 -1
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyBlockLoadingService.js +1 -1
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyCache.cjs +1 -1
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyCache.d.cts +19 -0
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyCache.d.ts +19 -0
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyCache.js +28 -6
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyStore.cjs +1 -1
- package/dist/enterprise/serverSideRowModel/stores/lazy/lazyStore.js +2 -2
- package/dist/locale/ar-EG.cjs +1 -1
- package/dist/locale/ar-EG.d.cts +2 -0
- package/dist/locale/ar-EG.d.ts +2 -0
- package/dist/locale/ar-EG.js +2 -0
- package/dist/locale/bg-BG.cjs +1 -1
- package/dist/locale/bg-BG.d.cts +2 -0
- package/dist/locale/bg-BG.d.ts +2 -0
- package/dist/locale/bg-BG.js +2 -0
- package/dist/locale/cs-CZ.cjs +1 -1
- package/dist/locale/cs-CZ.d.cts +2 -0
- package/dist/locale/cs-CZ.d.ts +2 -0
- package/dist/locale/cs-CZ.js +2 -0
- package/dist/locale/da-DK.cjs +1 -1
- package/dist/locale/da-DK.d.cts +2 -0
- package/dist/locale/da-DK.d.ts +2 -0
- package/dist/locale/da-DK.js +2 -0
- package/dist/locale/de-DE.cjs +1 -1
- package/dist/locale/de-DE.d.cts +2 -0
- package/dist/locale/de-DE.d.ts +2 -0
- package/dist/locale/de-DE.js +2 -0
- package/dist/locale/el-GR.cjs +1 -1
- package/dist/locale/el-GR.d.cts +2 -0
- package/dist/locale/el-GR.d.ts +2 -0
- package/dist/locale/el-GR.js +2 -0
- package/dist/locale/en-US.cjs +1 -1
- package/dist/locale/en-US.d.cts +2 -0
- package/dist/locale/en-US.d.ts +2 -0
- package/dist/locale/en-US.js +2 -0
- package/dist/locale/es-ES.cjs +1 -1
- package/dist/locale/es-ES.d.cts +2 -0
- package/dist/locale/es-ES.d.ts +2 -0
- package/dist/locale/es-ES.js +2 -0
- package/dist/locale/fa-IR.cjs +1 -1
- package/dist/locale/fa-IR.d.cts +2 -0
- package/dist/locale/fa-IR.d.ts +2 -0
- package/dist/locale/fa-IR.js +2 -0
- package/dist/locale/fi-FI.cjs +1 -1
- package/dist/locale/fi-FI.d.cts +2 -0
- package/dist/locale/fi-FI.d.ts +2 -0
- package/dist/locale/fi-FI.js +2 -0
- package/dist/locale/fr-FR.cjs +1 -1
- package/dist/locale/fr-FR.d.cts +2 -0
- package/dist/locale/fr-FR.d.ts +2 -0
- package/dist/locale/fr-FR.js +2 -0
- package/dist/locale/he-IL.cjs +1 -1
- package/dist/locale/he-IL.d.cts +2 -0
- package/dist/locale/he-IL.d.ts +2 -0
- package/dist/locale/he-IL.js +2 -0
- package/dist/locale/hr-HR.cjs +1 -1
- package/dist/locale/hr-HR.d.cts +2 -0
- package/dist/locale/hr-HR.d.ts +2 -0
- package/dist/locale/hr-HR.js +2 -0
- package/dist/locale/hu-HU.cjs +1 -1
- package/dist/locale/hu-HU.d.cts +2 -0
- package/dist/locale/hu-HU.d.ts +2 -0
- package/dist/locale/hu-HU.js +2 -0
- package/dist/locale/it-IT.cjs +1 -1
- package/dist/locale/it-IT.d.cts +2 -0
- package/dist/locale/it-IT.d.ts +2 -0
- package/dist/locale/it-IT.js +2 -0
- package/dist/locale/ja-JP.cjs +1 -1
- package/dist/locale/ja-JP.d.cts +2 -0
- package/dist/locale/ja-JP.d.ts +2 -0
- package/dist/locale/ja-JP.js +2 -0
- package/dist/locale/ko-KR.cjs +1 -1
- package/dist/locale/ko-KR.d.cts +2 -0
- package/dist/locale/ko-KR.d.ts +2 -0
- package/dist/locale/ko-KR.js +2 -0
- package/dist/locale/nb-NO.cjs +1 -1
- package/dist/locale/nb-NO.d.cts +2 -0
- package/dist/locale/nb-NO.d.ts +2 -0
- package/dist/locale/nb-NO.js +2 -0
- package/dist/locale/nl-NL.cjs +1 -1
- package/dist/locale/nl-NL.d.cts +2 -0
- package/dist/locale/nl-NL.d.ts +2 -0
- package/dist/locale/nl-NL.js +2 -0
- package/dist/locale/pl-PL.cjs +1 -1
- package/dist/locale/pl-PL.d.cts +2 -0
- package/dist/locale/pl-PL.d.ts +2 -0
- package/dist/locale/pl-PL.js +2 -0
- package/dist/locale/pt-BR.cjs +1 -1
- package/dist/locale/pt-BR.d.cts +2 -0
- package/dist/locale/pt-BR.d.ts +2 -0
- package/dist/locale/pt-BR.js +2 -0
- package/dist/locale/pt-PT.cjs +1 -1
- package/dist/locale/pt-PT.d.cts +2 -0
- package/dist/locale/pt-PT.d.ts +2 -0
- package/dist/locale/pt-PT.js +2 -0
- package/dist/locale/ro-RO.cjs +1 -1
- package/dist/locale/ro-RO.d.cts +2 -0
- package/dist/locale/ro-RO.d.ts +2 -0
- package/dist/locale/ro-RO.js +2 -0
- package/dist/locale/ru-RU.cjs +1 -1
- package/dist/locale/ru-RU.d.cts +2 -0
- package/dist/locale/ru-RU.d.ts +2 -0
- package/dist/locale/ru-RU.js +2 -0
- package/dist/locale/sk-SK.cjs +1 -1
- package/dist/locale/sk-SK.d.cts +2 -0
- package/dist/locale/sk-SK.d.ts +2 -0
- package/dist/locale/sk-SK.js +2 -0
- package/dist/locale/sv-SE.cjs +1 -1
- package/dist/locale/sv-SE.d.cts +2 -0
- package/dist/locale/sv-SE.d.ts +2 -0
- package/dist/locale/sv-SE.js +2 -0
- package/dist/locale/tr-TR.cjs +1 -1
- package/dist/locale/tr-TR.d.cts +2 -0
- package/dist/locale/tr-TR.d.ts +2 -0
- package/dist/locale/tr-TR.js +2 -0
- package/dist/locale/uk-UA.cjs +1 -1
- package/dist/locale/uk-UA.d.cts +2 -0
- package/dist/locale/uk-UA.d.ts +2 -0
- package/dist/locale/uk-UA.js +2 -0
- package/dist/locale/ur-PK.cjs +1 -1
- package/dist/locale/ur-PK.d.cts +2 -0
- package/dist/locale/ur-PK.d.ts +2 -0
- package/dist/locale/ur-PK.js +2 -0
- package/dist/locale/vi-VN.cjs +1 -1
- package/dist/locale/vi-VN.d.cts +2 -0
- package/dist/locale/vi-VN.d.ts +2 -0
- package/dist/locale/vi-VN.js +2 -0
- package/dist/locale/zh-CN.cjs +1 -1
- package/dist/locale/zh-CN.d.cts +2 -0
- package/dist/locale/zh-CN.d.ts +2 -0
- package/dist/locale/zh-CN.js +2 -0
- package/dist/locale/zh-HK.cjs +1 -1
- package/dist/locale/zh-HK.d.cts +2 -0
- package/dist/locale/zh-HK.d.ts +2 -0
- package/dist/locale/zh-HK.js +2 -0
- package/dist/locale/zh-TW.cjs +1 -1
- package/dist/locale/zh-TW.d.cts +2 -0
- package/dist/locale/zh-TW.d.ts +2 -0
- package/dist/locale/zh-TW.js +2 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={dataTableSetColumnFilter:`SetFilter`,dataTableSetColumnFloatingFilter:`SetFilter`,dataTableMultiColumnFilter:`MultiFilter`,dataTableMultiColumnFloatingFilter:`MultiFilter`,dataTableGroupColumnFilter:`GroupFilter`,dataTableGroupColumnFloatingFilter:`GroupFilter`,dataTableGroupCellRenderer:`GroupCellRenderer`,dataTableGroupRowRenderer:`GroupCellRenderer`,dataTableRichSelect:`RichSelect`,dataTableRichSelectCellEditor:`RichSelect`,dataTableDetailCellRenderer:`SharedMasterDetail`,dataTableSparklineCellRenderer:`Sparklines`,dataTableDragAndDropImage:`SharedDragAndDrop`,dataTableColumnHeader:`ColumnHeaderComp`,dataTableColumnGroupHeader:`ColumnGroupHeaderComp`,dataTableSortIndicator:`Sort`,dataTableAnimateShowChangeCellRenderer:`HighlightChanges`,dataTableAnimateSlideCellRenderer:`HighlightChanges`,dataTableLoadingCellRenderer:`LoadingCellRenderer`,dataTableSkeletonCellRenderer:`SkeletonCellRenderer`,dataTableCheckboxCellRenderer:`CheckboxCellRenderer`,dataTableLoadingOverlay:`Overlay`,dataTableExportingOverlay:`Overlay`,dataTableNoRowsOverlay:`Overlay`,dataTableNoMatchingRowsOverlay:`Overlay`,dataTableTooltipComponent:`Tooltip`,dataTableReadOnlyFloatingFilter:`CustomFilter`,dataTableTextColumnFilter:`TextFilter`,dataTableNumberColumnFilter:`NumberFilter`,dataTableDateColumnFilter:`DateFilter`,dataTableDateInput:`DateFilter`,dataTableTextColumnFloatingFilter:`TextFilter`,dataTableNumberColumnFloatingFilter:`NumberFilter`,dataTableDateColumnFloatingFilter:`DateFilter`,dataTableFormulaCellEditor:`Formula`,dataTableCellEditor:`TextEditor`,dataTableSelectCellEditor:`SelectEditor`,dataTableTextCellEditor:`TextEditor`,dataTableNumberCellEditor:`NumberEditor`,dataTableDateCellEditor:`DateEditor`,dataTableDateStringCellEditor:`DateEditor`,dataTableCheckboxCellEditor:`CheckboxEditor`,dataTableLargeTextCellEditor:`LargeTextEditor`,dataTableMenuItem:`MenuItem`,dataTableColumnsToolPanel:`ColumnsToolPanel`,dataTableFiltersToolPanel:`FiltersToolPanel`,dataTableNewFiltersToolPanel:`NewFiltersToolPanel`,dataTableAggregationComponent:`StatusBar`,dataTableSelectedRowCountComponent:`StatusBar`,dataTableTotalRowCountComponent:`StatusBar`,dataTableFilteredRowCountComponent:`StatusBar`,dataTableTotalAndFilteredRowCountComponent:`StatusBar`,dataTableFindCellRenderer:`Find`};exports.USER_COMP_MODULES=e;
|
|
1
|
+
var e={dataTableSetColumnFilter:`SetFilter`,dataTableSetColumnFloatingFilter:`SetFilter`,dataTableMultiColumnFilter:`MultiFilter`,dataTableMultiColumnFloatingFilter:`MultiFilter`,dataTableGroupColumnFilter:`GroupFilter`,dataTableGroupColumnFloatingFilter:`GroupFilter`,dataTableGroupCellRenderer:`GroupCellRenderer`,dataTableGroupRowRenderer:`GroupCellRenderer`,dataTableRichSelect:`RichSelect`,dataTableRichSelectCellEditor:`RichSelect`,dataTableDetailCellRenderer:`SharedMasterDetail`,dataTableSparklineCellRenderer:`Sparklines`,dataTableDragAndDropImage:`SharedDragAndDrop`,dataTableColumnHeader:`ColumnHeaderComp`,dataTableColumnGroupHeader:`ColumnGroupHeaderComp`,dataTableSortIndicator:`Sort`,dataTableAnimateShowChangeCellRenderer:`HighlightChanges`,dataTableAnimateSlideCellRenderer:`HighlightChanges`,dataTableLoadingCellRenderer:`LoadingCellRenderer`,dataTableErrorCellRenderer:`LoadingCellRenderer`,dataTableSkeletonCellRenderer:`SkeletonCellRenderer`,dataTableCheckboxCellRenderer:`CheckboxCellRenderer`,dataTableLoadingOverlay:`Overlay`,dataTableExportingOverlay:`Overlay`,dataTableNoRowsOverlay:`Overlay`,dataTableNoMatchingRowsOverlay:`Overlay`,dataTableTooltipComponent:`Tooltip`,dataTableReadOnlyFloatingFilter:`CustomFilter`,dataTableTextColumnFilter:`TextFilter`,dataTableNumberColumnFilter:`NumberFilter`,dataTableDateColumnFilter:`DateFilter`,dataTableDateInput:`DateFilter`,dataTableTextColumnFloatingFilter:`TextFilter`,dataTableNumberColumnFloatingFilter:`NumberFilter`,dataTableDateColumnFloatingFilter:`DateFilter`,dataTableFormulaCellEditor:`Formula`,dataTableCellEditor:`TextEditor`,dataTableSelectCellEditor:`SelectEditor`,dataTableTextCellEditor:`TextEditor`,dataTableNumberCellEditor:`NumberEditor`,dataTableDateCellEditor:`DateEditor`,dataTableDateStringCellEditor:`DateEditor`,dataTableCheckboxCellEditor:`CheckboxEditor`,dataTableLargeTextCellEditor:`LargeTextEditor`,dataTableMenuItem:`MenuItem`,dataTableColumnsToolPanel:`ColumnsToolPanel`,dataTableFiltersToolPanel:`FiltersToolPanel`,dataTableNewFiltersToolPanel:`NewFiltersToolPanel`,dataTableAggregationComponent:`StatusBar`,dataTableSelectedRowCountComponent:`StatusBar`,dataTableTotalRowCountComponent:`StatusBar`,dataTableFilteredRowCountComponent:`StatusBar`,dataTableTotalAndFilteredRowCountComponent:`StatusBar`,dataTableFindCellRenderer:`Find`};exports.USER_COMP_MODULES=e;
|
|
@@ -19,6 +19,7 @@ var e = {
|
|
|
19
19
|
dataTableAnimateShowChangeCellRenderer: "HighlightChanges",
|
|
20
20
|
dataTableAnimateSlideCellRenderer: "HighlightChanges",
|
|
21
21
|
dataTableLoadingCellRenderer: "LoadingCellRenderer",
|
|
22
|
+
dataTableErrorCellRenderer: "LoadingCellRenderer",
|
|
22
23
|
dataTableSkeletonCellRenderer: "SkeletonCellRenderer",
|
|
23
24
|
dataTableCheckboxCellRenderer: "CheckboxCellRenderer",
|
|
24
25
|
dataTableLoadingOverlay: "Overlay",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../version.cjs"),t=require("../dataTableEnterpriseModule.cjs"),n=require("./loadingCellRenderer.cjs");var
|
|
1
|
+
const e=require("../version.cjs"),t=require("../dataTableEnterpriseModule.cjs"),n=require("./errorCellRenderer.cjs"),r=require("./loadingCellRenderer.cjs");var i={moduleName:`LoadingCellRenderer`,version:e.VERSION,userComponents:{dataTableLoadingCellRenderer:r.LoadingCellRenderer,dataTableErrorCellRenderer:n.ErrorCellRenderer},icons:{groupLoading:`loading`},dependsOn:[t.EnterpriseCoreModule]};exports.LoadingCellRendererModule=i;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { VERSION as e } from "../version.js";
|
|
2
2
|
import { EnterpriseCoreModule as t } from "../dataTableEnterpriseModule.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorCellRenderer as n } from "./errorCellRenderer.js";
|
|
4
|
+
import { LoadingCellRenderer as r } from "./loadingCellRenderer.js";
|
|
4
5
|
//#region src/enterprise/cellRenderers/enterpriseCellRendererModule.ts
|
|
5
|
-
var
|
|
6
|
+
var i = {
|
|
6
7
|
moduleName: "LoadingCellRenderer",
|
|
7
8
|
version: e,
|
|
8
|
-
userComponents: {
|
|
9
|
+
userComponents: {
|
|
10
|
+
dataTableLoadingCellRenderer: r,
|
|
11
|
+
dataTableErrorCellRenderer: n
|
|
12
|
+
},
|
|
9
13
|
icons: { groupLoading: "loading" },
|
|
10
14
|
dependsOn: [t]
|
|
11
15
|
};
|
|
12
16
|
//#endregion
|
|
13
|
-
export {
|
|
17
|
+
export { i as LoadingCellRendererModule };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("../../community/dataTableStack/interfaces/dataTableComponent.cjs");const e=require("../../community/widgets/component.cjs");var t={tag:`div`,cls:`data-table-loading`,children:[{tag:`span`,ref:`eErrorText`,cls:`data-table-loading-text`}]},n=class extends e.Component{eErrorText=null;constructor(){super(t)}init(e){e.isFirstLoadingRow!==!1&&(this.eErrorText.textContent=this.getLocaleTextFunc()(`loadingError`,`ERR`))}refresh(e){return!1}};exports.ErrorCellRenderer=n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ILoadingCellRendererComp, ILoadingCellRendererParams, Component } from '../../community';
|
|
2
|
+
/**
|
|
3
|
+
* Default full-width renderer for a failed (server-side) row. Used when no custom
|
|
4
|
+
* `errorCellRenderer` is provided, so a failed block still shows an error instead
|
|
5
|
+
* of falling back to the loading spinner. Custom renderers (e.g. with a retry
|
|
6
|
+
* button) can be supplied via the `errorCellRenderer` grid option.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ErrorCellRenderer extends Component implements ILoadingCellRendererComp {
|
|
9
|
+
private readonly eErrorText;
|
|
10
|
+
constructor();
|
|
11
|
+
init(params: ILoadingCellRendererParams): void;
|
|
12
|
+
refresh(_params: ILoadingCellRendererParams): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ILoadingCellRendererComp, ILoadingCellRendererParams, Component } from '../../community';
|
|
2
|
+
/**
|
|
3
|
+
* Default full-width renderer for a failed (server-side) row. Used when no custom
|
|
4
|
+
* `errorCellRenderer` is provided, so a failed block still shows an error instead
|
|
5
|
+
* of falling back to the loading spinner. Custom renderers (e.g. with a retry
|
|
6
|
+
* button) can be supplied via the `errorCellRenderer` grid option.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ErrorCellRenderer extends Component implements ILoadingCellRendererComp {
|
|
9
|
+
private readonly eErrorText;
|
|
10
|
+
constructor();
|
|
11
|
+
init(params: ILoadingCellRendererParams): void;
|
|
12
|
+
refresh(_params: ILoadingCellRendererParams): boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "../../community/dataTableStack/interfaces/dataTableComponent.js";
|
|
2
|
+
import { Component as e } from "../../community/widgets/component.js";
|
|
3
|
+
//#region src/enterprise/cellRenderers/errorCellRenderer.ts
|
|
4
|
+
var t = {
|
|
5
|
+
tag: "div",
|
|
6
|
+
cls: "data-table-loading",
|
|
7
|
+
children: [{
|
|
8
|
+
tag: "span",
|
|
9
|
+
ref: "eErrorText",
|
|
10
|
+
cls: "data-table-loading-text"
|
|
11
|
+
}]
|
|
12
|
+
}, n = class extends e {
|
|
13
|
+
eErrorText = null;
|
|
14
|
+
constructor() {
|
|
15
|
+
super(t);
|
|
16
|
+
}
|
|
17
|
+
init(e) {
|
|
18
|
+
e.isFirstLoadingRow !== !1 && (this.eErrorText.textContent = this.getLocaleTextFunc()("loadingError", "ERR"));
|
|
19
|
+
}
|
|
20
|
+
refresh(e) {
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { n as ErrorCellRenderer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../../community/dataTableStack/interfaces/dataTableComponent.cjs");const e=require("../../community/widgets/component.cjs"),t=require("../../community/utils/icon.cjs");var n={tag:`div`,cls:`data-table-loading`,children:[{tag:`span`,ref:`eLoadingIcon`,cls:`data-table-loading-icon`},{tag:`span`,ref:`eLoadingText`,cls:`data-table-loading-text`}]},r=class extends e.Component{eLoadingIcon=null;eLoadingText=null;constructor(){super(n)}init(e){e.isFirstLoadingRow!==!1&&
|
|
1
|
+
require("../../community/dataTableStack/interfaces/dataTableComponent.cjs");const e=require("../../community/widgets/component.cjs"),t=require("../../community/utils/icon.cjs");var n={tag:`div`,cls:`data-table-loading`,children:[{tag:`span`,ref:`eLoadingIcon`,cls:`data-table-loading-icon`},{tag:`span`,ref:`eLoadingText`,cls:`data-table-loading-text`}]},r=class extends e.Component{eLoadingIcon=null;eLoadingText=null;constructor(){super(n)}init(e){e.isFirstLoadingRow!==!1&&this.setupLoading()}setupLoading(){let e=t._createIconNoSpan(`groupLoading`,this.beans,null);e&&this.eLoadingIcon.appendChild(e),this.eLoadingText.textContent=this.getLocaleTextFunc()(`loadingOoo`,`Loading...`)}refresh(e){return!1}};exports.LoadingCellRenderer=r;
|
|
@@ -4,7 +4,6 @@ export declare class LoadingCellRenderer extends Component implements ILoadingCe
|
|
|
4
4
|
private readonly eLoadingText;
|
|
5
5
|
constructor();
|
|
6
6
|
init(params: ILoadingCellRendererParams): void;
|
|
7
|
-
private setupFailed;
|
|
8
7
|
private setupLoading;
|
|
9
8
|
refresh(_params: ILoadingCellRendererParams): boolean;
|
|
10
9
|
}
|
|
@@ -4,7 +4,6 @@ export declare class LoadingCellRenderer extends Component implements ILoadingCe
|
|
|
4
4
|
private readonly eLoadingText;
|
|
5
5
|
constructor();
|
|
6
6
|
init(params: ILoadingCellRendererParams): void;
|
|
7
|
-
private setupFailed;
|
|
8
7
|
private setupLoading;
|
|
9
8
|
refresh(_params: ILoadingCellRendererParams): boolean;
|
|
10
9
|
}
|
|
@@ -21,10 +21,7 @@ var n = {
|
|
|
21
21
|
super(n);
|
|
22
22
|
}
|
|
23
23
|
init(e) {
|
|
24
|
-
e.isFirstLoadingRow !== !1 &&
|
|
25
|
-
}
|
|
26
|
-
setupFailed() {
|
|
27
|
-
this.eLoadingText.textContent = this.getLocaleTextFunc()("loadingError", "ERR");
|
|
24
|
+
e.isFirstLoadingRow !== !1 && this.setupLoading();
|
|
28
25
|
}
|
|
29
26
|
setupLoading() {
|
|
30
27
|
let e = t("groupLoading", this.beans, null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../community/context/beanStub.cjs"),t=require("../../../../community/gridOptionsUtils.cjs");var n=class extends e.BeanStub{beanName=`lazyBlockLoadingSvc`;outboundRequests=0;maxOutboundRequests;rowRenderer;rowModel;wireBeans(e){this.rowRenderer=e.rowRenderer,this.rowModel=e.rowModel}cacheLoadingNodesMap=new Map;isCheckQueued=!1;nextBlockToLoad=void 0;loaderTimeout;postConstruct(){this.maxOutboundRequests=t._getMaxConcurrentDatasourceRequests(this.gos)}subscribe(e){this.cacheLoadingNodesMap.set(e,new Set)}unsubscribe(e){this.cacheLoadingNodesMap.delete(e)}queueLoadCheck(){this.isCheckQueued||(this.isCheckQueued=!0,setTimeout(()=>{this.queueLoadAction(),this.isCheckQueued=!1}))}onLoadComplete(){--this.outboundRequests,this.queueLoadCheck()}hasAvailableLoadBandwidth(){return this.maxOutboundRequests===void 0?!0:this.outboundRequests<this.maxOutboundRequests}queueLoadAction(){let e=this.getBlockToLoad();if(!e)return;let t=this.nextBlockToLoad&&this.nextBlockToLoad.cache===e.cache&&this.nextBlockToLoad.index===e.index;if(!t&&(!this.nextBlockToLoad||!t)){this.nextBlockToLoad=e,window.clearTimeout(this.loaderTimeout);let t=Number(this.nextBlockToLoad.index),n=this.nextBlockToLoad.cache,r=e.index+e.cache.getBlockSize();this.loaderTimeout=window.setTimeout(()=>{n.isAlive()&&(this.loaderTimeout=void 0,this.attemptLoad(n,t,r),this.nextBlockToLoad=void 0)},this.gos.get(`blockLoadDebounceMillis`))}}attemptLoad(e,t,n){this.hasAvailableLoadBandwidth()&&(this.executeLoad(e,t,n),this.queueLoadCheck())}executeLoad(e,n,r){let i=e.getSsrmParams(),a={startRow:n,endRow:r,rowGroupCols:i.rowGroupCols,valueCols:i.valueCols,pivotCols:i.pivotCols,pivotMode:i.pivotMode,groupKeys:e.store.getParentNode().getRoute()??[],filterModel:i.filterModel,sortModel:i.sortModel},o=this.cacheLoadingNodesMap.get(e),s=()=>{for(let e=0;e<r-n;e++)o.delete(n+e)},c=()=>{for(let e=0;e<r-n;e++)o.add(n+e)},l=t._addGridCommonParams(this.gos,{request:a,success:t=>{this.onLoadComplete(),e.onLoadSuccess(n,r-n,t),s()},fail:()=>{this.onLoadComplete(),e.onLoadFailed(n,r-n),s()},parentNode:e.store.getParentNode()});c(),this.outboundRequests+=1,e.getSsrmParams().datasource?.getRows(l)}getBlockToLoad(){let e=this.rowRenderer.firstRenderedRow,t=this.rowRenderer.lastRenderedRow;for(let n=e;n<=t;n++){let e=this.rowModel.getRow(n);if(!e)continue;let t=e.parent?.childStore;if(!t)continue;let r=t.getCache(),i=r.getNodes().getBy(`node`,e);if(i&&!this.cacheLoadingNodesMap.get(r)?.has(i.index)&&(e.__needsRefreshWhenVisible||e.stub&&!e.failedLoad))return{cache:r,index:r.getBlockStartIndex(i.index)}}let n=null,r=null,i=2**53-1;for(let a of this.cacheLoadingNodesMap.keys())a.getNodesToRefresh().forEach(o=>{if(o.rowIndex==null){r=o,n=a;return}let s=a.getNodes().getBy(`node`,o);if(!s||this.cacheLoadingNodesMap.get(a)?.has(s.index))return;let c=Math.abs(e-o.rowIndex),l=Math.abs(o.rowIndex-t);c<i&&(r=o,i=c,n=a),l<i&&(r=o,i=l,n=a)});if(!n)return;let a=n,o=a.getNodes().getBy(`node`,r)?.index;return o==null?void 0:{cache:a,index:a.getBlockStartIndex(o)}}isRowLoading(e,t){return this.cacheLoadingNodesMap.get(e)?.has(t)??!1}};exports.LazyBlockLoadingService=n;
|
|
1
|
+
const e=require("../../../../community/context/beanStub.cjs"),t=require("../../../../community/gridOptionsUtils.cjs");var n=class extends e.BeanStub{beanName=`lazyBlockLoadingSvc`;outboundRequests=0;maxOutboundRequests;rowRenderer;rowModel;wireBeans(e){this.rowRenderer=e.rowRenderer,this.rowModel=e.rowModel}cacheLoadingNodesMap=new Map;isCheckQueued=!1;nextBlockToLoad=void 0;loaderTimeout;postConstruct(){this.maxOutboundRequests=t._getMaxConcurrentDatasourceRequests(this.gos)}subscribe(e){this.cacheLoadingNodesMap.set(e,new Set)}unsubscribe(e){this.cacheLoadingNodesMap.delete(e)}queueLoadCheck(){this.isCheckQueued||(this.isCheckQueued=!0,setTimeout(()=>{this.queueLoadAction(),this.isCheckQueued=!1}))}onLoadComplete(){--this.outboundRequests,this.queueLoadCheck()}hasAvailableLoadBandwidth(){return this.maxOutboundRequests===void 0?!0:this.outboundRequests<this.maxOutboundRequests}queueLoadAction(){let e=this.getBlockToLoad();if(!e)return;let t=this.nextBlockToLoad&&this.nextBlockToLoad.cache===e.cache&&this.nextBlockToLoad.index===e.index;if(!t&&(!this.nextBlockToLoad||!t)){this.nextBlockToLoad=e,window.clearTimeout(this.loaderTimeout);let t=Number(this.nextBlockToLoad.index),n=this.nextBlockToLoad.cache,r=e.index+e.cache.getBlockSize();this.loaderTimeout=window.setTimeout(()=>{n.isAlive()&&(this.loaderTimeout=void 0,this.attemptLoad(n,t,r),this.nextBlockToLoad=void 0)},this.gos.get(`blockLoadDebounceMillis`))}}attemptLoad(e,t,n){this.hasAvailableLoadBandwidth()&&(this.executeLoad(e,t,n),this.queueLoadCheck())}executeLoad(e,n,r){let i=e.getSsrmParams(),a={startRow:n,endRow:r,rowGroupCols:i.rowGroupCols,valueCols:i.valueCols,pivotCols:i.pivotCols,pivotMode:i.pivotMode,groupKeys:e.store.getParentNode().getRoute()??[],filterModel:i.filterModel,sortModel:i.sortModel},o=this.cacheLoadingNodesMap.get(e),s=()=>{for(let e=0;e<r-n;e++)o.delete(n+e)},c=()=>{for(let e=0;e<r-n;e++)o.add(n+e)},l=t._addGridCommonParams(this.gos,{request:a,success:t=>{this.onLoadComplete(),e.onLoadSuccess(n,r-n,t),s()},fail:()=>{this.onLoadComplete(),e.onLoadFailed(n,r-n),s()},parentNode:e.store.getParentNode()});c(),e.onLoadStarted(n,r-n),this.outboundRequests+=1,e.getSsrmParams().datasource?.getRows(l)}getBlockToLoad(){let e=this.rowRenderer.firstRenderedRow,t=this.rowRenderer.lastRenderedRow;for(let n=e;n<=t;n++){let e=this.rowModel.getRow(n);if(!e)continue;let t=e.parent?.childStore;if(!t)continue;let r=t.getCache(),i=r.getNodes().getBy(`node`,e);if(i&&!this.cacheLoadingNodesMap.get(r)?.has(i.index)&&(e.__needsRefreshWhenVisible||e.stub&&!e.failedLoad))return{cache:r,index:r.getBlockStartIndex(i.index)}}let n=null,r=null,i=2**53-1;for(let a of this.cacheLoadingNodesMap.keys())a.getNodesToRefresh().forEach(o=>{if(o.rowIndex==null){r=o,n=a;return}let s=a.getNodes().getBy(`node`,o);if(!s||this.cacheLoadingNodesMap.get(a)?.has(s.index))return;let c=Math.abs(e-o.rowIndex),l=Math.abs(o.rowIndex-t);c<i&&(r=o,i=c,n=a),l<i&&(r=o,i=l,n=a)});if(!n)return;let a=n,o=a.getNodes().getBy(`node`,r)?.index;return o==null?void 0:{cache:a,index:a.getBlockStartIndex(o)}}isRowLoading(e,t){return this.cacheLoadingNodesMap.get(e)?.has(t)??!1}};exports.LazyBlockLoadingService=n;
|
|
@@ -74,7 +74,7 @@ var r = class extends e {
|
|
|
74
74
|
},
|
|
75
75
|
parentNode: e.store.getParentNode()
|
|
76
76
|
});
|
|
77
|
-
c(), this.outboundRequests += 1, e.getSsrmParams().datasource?.getRows(l);
|
|
77
|
+
c(), e.onLoadStarted(n, r - n), this.outboundRequests += 1, e.getSsrmParams().datasource?.getRows(l);
|
|
78
78
|
}
|
|
79
79
|
getBlockToLoad() {
|
|
80
80
|
let e = this.rowRenderer.firstRenderedRow, t = this.rowRenderer.lastRenderedRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../community/context/beanStub.cjs"),t=require("../../../../community/validation/logging.cjs"),n=require("../../../../community/gridOptionsUtils.cjs"),r=require("../../../rowGrouping/rowGroupingUtils.cjs"),i=require("./multiIndexMap.cjs");var a=100,o=class extends e.BeanStub{rowRenderer;blockUtils;focusSvc;nodeManager;serverSideRowModel;rowNodeSorter;sortSvc;lazyBlockLoadingSvc;colModel;wireBeans(e){this.rowRenderer=e.rowRenderer,this.blockUtils=e.ssrmBlockUtils,this.focusSvc=e.focusSvc,this.nodeManager=e.ssrmNodeManager,this.serverSideRowModel=e.rowModel,this.rowNodeSorter=e.rowNodeSorter,this.sortSvc=e.sortSvc,this.lazyBlockLoadingSvc=e.lazyBlockLoadingSvc,this.colModel=e.colModel}live=!0;nodeMap;nodeDisplayIndexMap;nodesToRefresh;numberOfRows;isLastRowKnown;defaultNodeIdPrefix;store;storeParams;getRowIdFunc;isMasterDetail;removedNodeCache=new Map;loadedBlocks=new Set;constructor(e,t,n,r){super(),this.store=e,this.numberOfRows=t,this.isLastRowKnown=n,this.storeParams=r}postConstruct(){this.lazyBlockLoadingSvc.subscribe(this),this.nodeMap=new i.MultiIndexMap(`index`,`id`,`node`),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set;let{blockUtils:e,gos:t,store:r}=this;this.defaultNodeIdPrefix=e.createNodeIdPrefix(r.getParentNode()),this.getRowIdFunc=n._getRowIdCallback(t),this.isMasterDetail=t.get(`masterDetail`)}destroy(){this.lazyBlockLoadingSvc.unsubscribe(this),this.numberOfRows=0,this.nodeMap.forEach(e=>this.blockUtils.destroyRowNode(e.node)),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1,super.destroy()}getRowByDisplayIndex(e){if(!this.store.isDisplayIndexInStore(e))return;let t=this.nodeDisplayIndexMap.get(e);if(t)return(t.stub||t.__needsRefreshWhenVisible)&&this.lazyBlockLoadingSvc.queueLoadCheck(),t;if(this.gos.get(`groupHideOpenParents`)||this.gos.get(`groupAllowUnbalanced`)){let t=this.nodeMap.find(t=>!!t.node.childStore?.isDisplayIndexInStore(e));if(t)return t.node.childStore?.getRowUsingDisplayIndex(e)}if(e===this.store.getDisplayIndexStart())return this.createStubNode(0,e);let n=this.nodeDisplayIndexMap.get(e-1);if(n){if(this.isMasterDetail&&n.master&&n.expanded)return n.detailNode;if(n.expanded&&n.childStore?.isDisplayIndexInStore(e))return n.childStore?.getRowUsingDisplayIndex(e);let t=this.nodeMap.getBy(`node`,n);return this.createStubNode(t.index+1,e)}let r=this.getSurroundingNodesByDisplayIndex(e);if(r==null){let t=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(t,e)}let{previousNode:i,nextNode:a}=r;if(i?.node.expanded&&i.node.childStore?.isDisplayIndexInStore(e))return i.node.childStore?.getRowUsingDisplayIndex(e);if(a){let t=a.node.rowIndex-e,n=a.index-t;return this.createStubNode(n,e)}let o=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(o,e)}createStubNode(e,t){let n=this.store.getRowBounds(t),i=this.createRowAtIndex(e,null,e=>{e.setRowIndex(t),e.setRowTop(n.rowTop),this.nodeDisplayIndexMap.set(t,e)}),a=this.getBlockStartIndex(e);if(this.loadedBlocks.has(a)&&(i.__wasEvicted=!0),e===0&&this.gos.get(`groupHideOpenParents`)){let e=this.store.getParentNode().groupData;if(e)for(let t of Object.keys(e))r.setRowNodeGroupValue(i,this.colModel,t,e[t])}return this.lazyBlockLoadingSvc.queueLoadCheck(),i}getRowByStoreIndex(e){return this.nodeMap.getBy(`index`,e)?.node}skipDisplayIndexes(e,t,r){if(e===0)return;let i=n._getRowHeightAsNumber(this.beans);t.value+=e,r.value+=e*i}setDisplayIndexes(e,t,n){this.nodeDisplayIndexMap.clear();let i={};this.nodeMap.forEach(e=>{i[e.index]=e.node});let a=-1;for(let o of Object.keys(i)){let s=i[o],c=Number(o),l=c-1-a;this.skipDisplayIndexes(l,e,t);let u=c===0;if(s.firstChild!==u&&(s.firstChild=u,s.dispatchRowEvent(`firstChildChanged`)),u&&this.gos.get(`groupHideOpenParents`)){let e=this.store.getParentNode().groupData;if(e)for(let t of Object.keys(e))r.setRowNodeGroupValue(s,this.colModel,t,u?e[t]:void 0)}this.blockUtils.setDisplayIndex(s,e,t,n),s.rowIndex!=null&&this.nodeDisplayIndexMap.set(s.rowIndex,s),a=c}let o=this.numberOfRows-1-a;this.skipDisplayIndexes(o,e,t),this.purgeExcessRows()}getRowCount(){return this.numberOfRows}setRowCount(e,t){this.numberOfRows=e,t!=null&&(this.isLastRowKnown=t,t===!1&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()}getNodes(){return this.nodeMap}getNodeCachedByDisplayIndex(e){return this.nodeDisplayIndexMap.get(e)??null}getNodesToRefresh(){return this.nodesToRefresh}getSurroundingNodesByDisplayIndex(e){let t,n;return this.nodeMap.forEach(r=>{if(e>r.node.rowIndex){(n==null||n.node.rowIndex<r.node.rowIndex)&&(n=r);return}(t==null||t.node.rowIndex>r.node.rowIndex)&&(t=r)}),!n&&!t?null:{previousNode:n,nextNode:t}}getDisplayIndexFromStoreIndex(e){let t=this.nodeMap.getBy(`index`,e);if(t)return t.node.rowIndex;let n,r;if(this.nodeMap.forEach(t=>{if(e>t.index){(r==null||r.index<t.index)&&(r=t);return}(n==null||n.index>t.index)&&(n=t)}),!n)return this.store.getDisplayIndexEnd()-(this.numberOfRows-e);if(!r)return this.store.getDisplayIndexStart()+e;let i=e-r.index;return(r.node.childStore?.getDisplayIndexEnd()??r.node.rowIndex)+i}createRowAtIndex(e,t,n){let r=this.nodeMap.getBy(`index`,e);if(r){let{node:n}=r;if(n.__needsRefreshWhenVisible=!1,this.doesNodeMatch(t,n))return this.blockUtils.updateDataIntoRowNode(n,t),this.nodesToRefresh.delete(n),n;if(this.getRowIdFunc==null&&n.hasChildren()&&n.expanded)return this.nodesToRefresh.delete(n),n;this.destroyRowAtIndex(e)}if(t&&this.getRowIdFunc!=null){let n=this.getRowId(t),r=n&&this.removedNodeCache?.get(n);if(r)return this.removedNodeCache?.delete(n),this.blockUtils.updateDataIntoRowNode(r,t),this.nodeMap.set({id:r.id,node:r,index:e}),this.nodesToRefresh.delete(r),r.__needsRefreshWhenVisible=!1,r;let i=this.nodeMap.getBy(`id`,n);if(i){this.nodeMap.delete(i);let{node:n,index:r}=i;return this.blockUtils.updateDataIntoRowNode(n,t),this.nodeMap.set({id:n.id,node:n,index:e}),this.nodesToRefresh.delete(n),n.__needsRefreshWhenVisible=!1,this.getBlockStartIndex(r)===this.getBlockStartIndex(e)||this.markBlockForVerify(r),n}}let i=this.blockUtils.createRowNode(this.store.getRowDetails());if(t!=null){let e=this.getPrefixedId(this.store.getIdSequence().value++);this.blockUtils.setDataIntoRowNode(i,t,e,void 0),this.blockUtils.checkOpenByDefault(i),this.nodeManager.addRowNode(i)}return this.nodeMap.set({id:i.id,node:i,index:e}),n&&n(i),i}getBlockStates(){let e={},t={};this.nodeMap.forEach(({node:n,index:r})=>{let i=this.getBlockStartIndex(r);!n.stub&&!n.failedLoad&&(e[i]=(e[i]??0)+1);let a=`loaded`;n.failedLoad?a=`failed`:this.lazyBlockLoadingSvc.isRowLoading(this,i)?a=`loading`:(this.nodesToRefresh.has(n)||n.stub)&&(a=`needsLoading`),t[i]||(t[i]=new Set),t[i].add(a)});let n={loading:4,failed:3,needsLoading:2,loaded:1},r=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),i={};for(let a of Object.keys(t)){let o=[...t[a]].sort((e,t)=>(n[e]??0)-(n[t]??0))[0],s=Number(a)/this.getBlockSize(),c=r?`${r}-${s}`:String(s);i[c]={blockNumber:s,startRow:Number(a),endRow:Number(a)+this.getBlockSize(),pageStatus:o,loadedRowCount:e[a]??0}}return i}destroyRowAtIndex(e){let t=this.nodeMap.getBy(`index`,e);t&&(this.nodeMap.delete(t),this.nodeDisplayIndexMap.delete(t.node.rowIndex),this.nodesToRefresh.size>0?this.removedNodeCache.set(t.node.id,t.node):this.blockUtils.destroyRowNode(t.node),this.nodesToRefresh.delete(t.node))}getSsrmParams(){return this.store.getSsrmParams()}getPrefixedId(e){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+`-`+e:e.toString()}markBlockForVerify(e){let[t,n]=this.getBlockBounds(e);this.nodeMap.filter(e=>e.index>=t&&e.index<n).forEach(({node:e})=>{e.__needsRefreshWhenVisible=!0})}doesNodeMatch(e,t){if(t.stub)return!1;let n=this.getRowId(e);return n===null?t.data===e:t.id===n}purgeStubsOutsideOfViewport(){let{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=this.getBlockStartIndex(e),[,r]=this.getBlockBounds(t);this.nodeMap.forEach(e=>{this.lazyBlockLoadingSvc.isRowLoading(this,e.index)||e.node.failedLoad||e.node.stub&&(e.index<n||e.index>r)&&this.destroyRowAtIndex(e.index)})}getBlocksDistanceFromRow(e,t){let n={};return e.forEach(({node:e,index:r})=>{let[i,a]=this.getBlockBounds(r);if(i in n)return;let o=Math.abs(e.rowIndex-t),s,c=this.nodeMap.getBy(`index`,[a-1]);c&&(s=Math.abs(c.node.rowIndex-t)),n[i]=s==null||o<s?o:s}),Object.entries(n)}purgeExcessRows(){if(this.purgeStubsOutsideOfViewport(),this.store.getDisplayIndexEnd()==null||this.storeParams.maxBlocksInCache==null)return;let{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=new Set,r=new Set;this.nodeMap.forEach(({index:i,node:a})=>{let o=this.getBlockStartIndex(i);n.add(o),a.rowIndex>=e&&a.rowIndex<=t&&r.add(o)});let i=Math.max(r.size,this.storeParams.maxBlocksInCache??0),a=n.size-i;if(a<=0)return;let o=2**53-1,s=-(2**53-1);r.forEach(e=>{o>e&&(o=e),s<e&&(s=e)});let c=this.nodeMap.filter(({node:e,index:t})=>{let n=this.getBlockStartIndex(t);return!(n>=o&&n<=s)&&!this.isNodeCached(e)});if(c.length===0)return;let l=e+(t-e)/2,u=this.getBlocksDistanceFromRow(c,l),d=this.getBlockSize();u.sort((e,t)=>Math.sign(t[1]-e[1]));for(let e=0;e<Math.min(a,u.length);e++){let t=Number(u[e][0]);for(let e=t;e<t+d;e++){let t=this.nodeMap.getBy(`index`,e);!t||this.isNodeCached(t.node)||this.destroyRowAtIndex(e)}}}isNodeFocused(e){let t=this.focusSvc.getFocusCellToUseAfterRefresh();return!t||t.rowPinned!=null?!1:t.rowIndex===e.rowIndex}isNodeCached(e){let t=e.isExpandable()&&e.expanded,n=this.gos.get(`groupAllowUnbalanced`)&&e.key===``,r=!!this.beans.editSvc?.isRowEditing(e);return t||this.isNodeFocused(e)||n||r}extractDuplicateIds(e){if(this.getRowIdFunc==null)return[];let t=new Set,n=new Set;return e.forEach(e=>{let r=this.getRowId(e);if(t.has(r)){n.add(r);return}t.add(r)}),[...n]}onLoadSuccess(e,n,r){if(!this.live)return;let i=r.groupLevelInfo;if(this.store.setStoreInfo(i),this.getRowIdFunc!=null){let i=this.extractDuplicateIds(r.rowData);if(i.length>0){t._warn(205,{duplicateIdText:i.join(`, `)}),this.onLoadFailed(e,n);return}}r.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(r.pivotResultFields);let a=this.nodesToRefresh.size>0;r.rowData.forEach((t,n)=>{let r=e+n,i=this.nodeMap.getBy(`index`,r);if(i?.node?.stub){this.createRowAtIndex(r,t);return}if(i&&this.doesNodeMatch(t,i.node)){this.blockUtils.updateDataIntoRowNode(i.node,t),this.nodesToRefresh.delete(i.node),i.node.__needsRefreshWhenVisible=!1;return}this.createRowAtIndex(r,t)});let o=this.getBlockStartIndex(e);if(this.loadedBlocks.add(o),r.rowCount!=null&&r.rowCount!==-1)this.numberOfRows=r.rowCount,this.isLastRowKnown=!0;else if(n>r.rowData.length)this.numberOfRows=e+r.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){let t=e+r.rowData.length+1;t>this.numberOfRows&&(this.numberOfRows=t)}this.isLastRowKnown&&this.nodeMap.filter(e=>e.index>=this.numberOfRows).forEach(e=>this.destroyRowAtIndex(e.index)),this.fireStoreUpdatedEvent();let s=this.nodesToRefresh.size===0;a&&s&&this.fireRefreshFinishedEvent()}fireRefreshFinishedEvent(){this.nodesToRefresh.size===0&&(this.removedNodeCache.forEach(e=>{this.blockUtils.destroyRowNode(e)}),this.removedNodeCache=new Map,this.store.fireRefreshFinishedEvent())}isStoreFullyLoaded(){let e=this.isLastRowKnown,t=this.nodeMap.getSize()===this.numberOfRows;if(!e||!t||this.nodesToRefresh.size>0)return;let n=-1;return this.nodeMap.find(e=>(n+=1,!!(e.index!==n||e.node.__needsRefreshWhenVisible||e.node.stub)))==null}isLastRowIndexKnown(){return this.isLastRowKnown}onLoadFailed(e,t){if(!this.live)return;let n=this.nodesToRefresh.size>0;for(let n=e;n<e+t&&n<this.getRowCount();n++){let{node:e}=this.nodeMap.getBy(`index`,n)??{};e&&this.nodesToRefresh.delete(e),e?.stub||(e&&!e.stub&&this.destroyRowAtIndex(n),e=this.createRowAtIndex(n)),e.__needsRefreshWhenVisible=!1,e.failedLoad=!0}let r=this.nodesToRefresh.size===0;n&&r&&this.fireRefreshFinishedEvent(),this.fireStoreUpdatedEvent()}markNodesForRefresh(){this.nodeMap.forEach(e=>{e.node.stub&&!e.node.failedLoad||this.nodesToRefresh.add(e.node)}),this.lazyBlockLoadingSvc.queueLoadCheck(),this.isLastRowKnown&&this.numberOfRows===0&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}isNodeInCache(e){return!!this.nodeMap.getBy(`id`,e)}fireStoreUpdatedEvent(){this.live&&this.store.fireStoreUpdatedEvent()}getRowId(e){if(this.getRowIdFunc==null)return null;let{level:t}=this.store.getRowDetails(),n=this.store.getParentNode().getRoute()??[];return this.getRowIdFunc({data:e,parentKeys:n.length>0?n:void 0,level:t})}getOrderedNodeMap(){let e={};return this.nodeMap.forEach(t=>e[t.index]=t),e}clearDisplayIndexes(){this.nodeDisplayIndexMap.clear()}clientSideSortRows(){let e=this.sortSvc?.getSortOptions()??[],t=e.some(e=>e.sort!=null),n=this.rowNodeSorter;if(!t||!n)return;let r=Array(this.nodeMap.getSize()),i=this.nodeMap;i.forEach(e=>r[e.index]=e.node),i.clear();let a=n.doFullSortInPlace(r,e);for(let e=0,t=a.length;e<t;++e){let t=a[e];i.set({id:t.id,node:t,index:e})}}updateRowNodes(e){let t=[];return e.forEach(e=>{let n=this.getRowId(e),r=this.nodeMap.getBy(`id`,n);r&&(this.blockUtils.updateDataIntoRowNode(r.node,e),t.push(r.node))}),t}insertRowNodes(e,t){let n=this.store.getRowCount()-+!!this.store.getParentNode().sibling,r=t==null&&this.isLastRowKnown?n:t;if(r==null||n<r)return[];let i={};e.forEach(e=>{let t=this.getRowId(e);t&&this.isNodeInCache(t)||(i[t]=e)});let a=Object.values(i),o=a.length;if(o===0)return[];let s=this.nodeMap.filter(e=>e.index>=r);return s.forEach(e=>this.nodeMap.delete(e)),s.forEach(e=>{this.nodeMap.set({node:e.node,index:e.index+o,id:e.id})}),this.numberOfRows+=o,a.map((e,t)=>this.createRowAtIndex(r+t,e))}removeRowNodes(e){let t=[],n=[],r=0,i=[...e],a=this.getOrderedNodeMap(),o=-1;for(let e of Object.keys(a)){o+=1;let s=a[e],c=i.findIndex(e=>e===s.id);if(c!==-1){i.splice(c,1),this.destroyRowAtIndex(Number(e)),t.push(s.node),r+=1;continue}if(r===0)continue;let l=Number(e);o!==l&&n.push(s.node),this.nodeMap.delete(s),this.nodeMap.set({id:s.id,node:s.node,index:l-r})}return this.numberOfRows-=this.isLastRowIndexKnown()?e.length:r,i.length>0&&n.length>0&&(n.forEach(e=>e.__needsRefreshWhenVisible=!0),this.lazyBlockLoadingSvc.queueLoadCheck()),t}getBlockSize(){return this.storeParams.cacheBlockSize||a}getBlockStartIndex(e){return e-e%this.getBlockSize()}getBlockBounds(e){let t=this.getBlockStartIndex(e);return[t,t+this.getBlockSize()]}};exports.LazyCache=o;
|
|
1
|
+
const e=require("../../../../community/context/beanStub.cjs"),t=require("../../../../community/validation/logging.cjs"),n=require("../../../../community/gridOptionsUtils.cjs"),r=require("../../../rowGrouping/rowGroupingUtils.cjs"),i=require("./multiIndexMap.cjs");var a=100,o=class extends e.BeanStub{rowRenderer;blockUtils;focusSvc;nodeManager;serverSideRowModel;rowNodeSorter;sortSvc;lazyBlockLoadingSvc;colModel;wireBeans(e){this.rowRenderer=e.rowRenderer,this.blockUtils=e.ssrmBlockUtils,this.focusSvc=e.focusSvc,this.nodeManager=e.ssrmNodeManager,this.serverSideRowModel=e.rowModel,this.rowNodeSorter=e.rowNodeSorter,this.sortSvc=e.sortSvc,this.lazyBlockLoadingSvc=e.lazyBlockLoadingSvc,this.colModel=e.colModel}live=!0;nodeMap;nodeDisplayIndexMap;nodesToRefresh;numberOfRows;isLastRowKnown;defaultNodeIdPrefix;store;storeParams;getRowIdFunc;isMasterDetail;removedNodeCache=new Map;loadedBlocks=new Set;constructor(e,t,n,r){super(),this.store=e,this.numberOfRows=t,this.isLastRowKnown=n,this.storeParams=r}postConstruct(){this.lazyBlockLoadingSvc.subscribe(this),this.nodeMap=new i.MultiIndexMap(`index`,`id`,`node`),this.nodeDisplayIndexMap=new Map,this.nodesToRefresh=new Set;let{blockUtils:e,gos:t,store:r}=this;this.defaultNodeIdPrefix=e.createNodeIdPrefix(r.getParentNode()),this.getRowIdFunc=n._getRowIdCallback(t),this.isMasterDetail=t.get(`masterDetail`)}destroy(){this.lazyBlockLoadingSvc.unsubscribe(this),this.numberOfRows=0,this.nodeMap.forEach(e=>this.blockUtils.destroyRowNode(e.node)),this.nodeMap.clear(),this.nodeDisplayIndexMap.clear(),this.nodesToRefresh.clear(),this.live=!1,super.destroy()}getRowByDisplayIndex(e){if(!this.store.isDisplayIndexInStore(e))return;let t=this.nodeDisplayIndexMap.get(e);if(t)return(t.stub||t.__needsRefreshWhenVisible)&&this.lazyBlockLoadingSvc.queueLoadCheck(),t;if(this.gos.get(`groupHideOpenParents`)||this.gos.get(`groupAllowUnbalanced`)){let t=this.nodeMap.find(t=>!!t.node.childStore?.isDisplayIndexInStore(e));if(t)return t.node.childStore?.getRowUsingDisplayIndex(e)}if(e===this.store.getDisplayIndexStart())return this.createStubNode(0,e);let n=this.nodeDisplayIndexMap.get(e-1);if(n){if(this.isMasterDetail&&n.master&&n.expanded)return n.detailNode;if(n.expanded&&n.childStore?.isDisplayIndexInStore(e))return n.childStore?.getRowUsingDisplayIndex(e);let t=this.nodeMap.getBy(`node`,n);return this.createStubNode(t.index+1,e)}let r=this.getSurroundingNodesByDisplayIndex(e);if(r==null){let t=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(t,e)}let{previousNode:i,nextNode:a}=r;if(i?.node.expanded&&i.node.childStore?.isDisplayIndexInStore(e))return i.node.childStore?.getRowUsingDisplayIndex(e);if(a){let t=a.node.rowIndex-e,n=a.index-t;return this.createStubNode(n,e)}let o=this.store.getRowCount()-(this.store.getDisplayIndexEnd()-e);return this.createStubNode(o,e)}createStubNode(e,t){let n=this.store.getRowBounds(t),i=this.createRowAtIndex(e,null,e=>{e.setRowIndex(t),e.setRowTop(n.rowTop),this.nodeDisplayIndexMap.set(t,e)}),a=this.getBlockStartIndex(e);if(this.loadedBlocks.has(a)&&(i.__wasEvicted=!0),e===0&&this.gos.get(`groupHideOpenParents`)){let e=this.store.getParentNode().groupData;if(e)for(let t of Object.keys(e))r.setRowNodeGroupValue(i,this.colModel,t,e[t])}return this.lazyBlockLoadingSvc.queueLoadCheck(),i}getRowByStoreIndex(e){return this.nodeMap.getBy(`index`,e)?.node}skipDisplayIndexes(e,t,r){if(e===0)return;let i=n._getRowHeightAsNumber(this.beans);t.value+=e,r.value+=e*i}setDisplayIndexes(e,t,n){this.nodeDisplayIndexMap.clear();let i={};this.nodeMap.forEach(e=>{i[e.index]=e.node});let a=-1;for(let o of Object.keys(i)){let s=i[o],c=Number(o),l=c-1-a;this.skipDisplayIndexes(l,e,t);let u=c===0;if(s.firstChild!==u&&(s.firstChild=u,s.dispatchRowEvent(`firstChildChanged`)),u&&this.gos.get(`groupHideOpenParents`)){let e=this.store.getParentNode().groupData;if(e)for(let t of Object.keys(e))r.setRowNodeGroupValue(s,this.colModel,t,u?e[t]:void 0)}this.blockUtils.setDisplayIndex(s,e,t,n),s.rowIndex!=null&&this.nodeDisplayIndexMap.set(s.rowIndex,s),a=c}let o=this.numberOfRows-1-a;this.skipDisplayIndexes(o,e,t),this.purgeExcessRows()}getRowCount(){return this.numberOfRows}hasLoadedDataAfter(e){let t=!1;return this.nodeMap.forEach(n=>{n.index>e&&!n.node.stub&&!n.node.failedLoad&&(t=!0)}),t}setRowCount(e,t){this.numberOfRows=e,t!=null&&(this.isLastRowKnown=t,t===!1&&(this.numberOfRows+=1)),this.fireStoreUpdatedEvent()}getNodes(){return this.nodeMap}getNodeCachedByDisplayIndex(e){return this.nodeDisplayIndexMap.get(e)??null}getNodesToRefresh(){return this.nodesToRefresh}getSurroundingNodesByDisplayIndex(e){let t,n;return this.nodeMap.forEach(r=>{if(e>r.node.rowIndex){(n==null||n.node.rowIndex<r.node.rowIndex)&&(n=r);return}(t==null||t.node.rowIndex>r.node.rowIndex)&&(t=r)}),!n&&!t?null:{previousNode:n,nextNode:t}}getDisplayIndexFromStoreIndex(e){let t=this.nodeMap.getBy(`index`,e);if(t)return t.node.rowIndex;let n,r;if(this.nodeMap.forEach(t=>{if(e>t.index){(r==null||r.index<t.index)&&(r=t);return}(n==null||n.index>t.index)&&(n=t)}),!n)return this.store.getDisplayIndexEnd()-(this.numberOfRows-e);if(!r)return this.store.getDisplayIndexStart()+e;let i=e-r.index;return(r.node.childStore?.getDisplayIndexEnd()??r.node.rowIndex)+i}createRowAtIndex(e,t,n){let r=this.nodeMap.getBy(`index`,e);if(r){let{node:n}=r;if(n.__needsRefreshWhenVisible=!1,this.doesNodeMatch(t,n))return this.blockUtils.updateDataIntoRowNode(n,t),this.nodesToRefresh.delete(n),n;if(this.getRowIdFunc==null&&n.hasChildren()&&n.expanded)return this.nodesToRefresh.delete(n),n;this.destroyRowAtIndex(e)}if(t&&this.getRowIdFunc!=null){let n=this.getRowId(t),r=n&&this.removedNodeCache?.get(n);if(r)return this.removedNodeCache?.delete(n),this.blockUtils.updateDataIntoRowNode(r,t),this.nodeMap.set({id:r.id,node:r,index:e}),this.nodesToRefresh.delete(r),r.__needsRefreshWhenVisible=!1,r;let i=this.nodeMap.getBy(`id`,n);if(i){this.nodeMap.delete(i);let{node:n,index:r}=i;return this.blockUtils.updateDataIntoRowNode(n,t),this.nodeMap.set({id:n.id,node:n,index:e}),this.nodesToRefresh.delete(n),n.__needsRefreshWhenVisible=!1,this.getBlockStartIndex(r)===this.getBlockStartIndex(e)||this.markBlockForVerify(r),n}}let i=this.blockUtils.createRowNode(this.store.getRowDetails());if(t!=null){let e=this.getPrefixedId(this.store.getIdSequence().value++);this.blockUtils.setDataIntoRowNode(i,t,e,void 0),this.blockUtils.checkOpenByDefault(i),this.nodeManager.addRowNode(i)}return this.nodeMap.set({id:i.id,node:i,index:e}),n&&n(i),i}getBlockStates(){let e={},t={};this.nodeMap.forEach(({node:n,index:r})=>{let i=this.getBlockStartIndex(r);!n.stub&&!n.failedLoad&&(e[i]=(e[i]??0)+1);let a=`loaded`;n.failedLoad?a=`failed`:this.lazyBlockLoadingSvc.isRowLoading(this,i)?a=`loading`:(this.nodesToRefresh.has(n)||n.stub)&&(a=`needsLoading`),t[i]||(t[i]=new Set),t[i].add(a)});let n={loading:4,failed:3,needsLoading:2,loaded:1},r=this.blockUtils.createNodeIdPrefix(this.store.getParentNode()),i={};for(let a of Object.keys(t)){let o=[...t[a]].sort((e,t)=>(n[e]??0)-(n[t]??0))[0],s=Number(a)/this.getBlockSize(),c=r?`${r}-${s}`:String(s);i[c]={blockNumber:s,startRow:Number(a),endRow:Number(a)+this.getBlockSize(),pageStatus:o,loadedRowCount:e[a]??0}}return i}destroyRowAtIndex(e){let t=this.nodeMap.getBy(`index`,e);t&&(this.nodeMap.delete(t),this.nodeDisplayIndexMap.delete(t.node.rowIndex),this.nodesToRefresh.size>0?this.removedNodeCache.set(t.node.id,t.node):this.blockUtils.destroyRowNode(t.node),this.nodesToRefresh.delete(t.node))}getSsrmParams(){return this.store.getSsrmParams()}getPrefixedId(e){return this.defaultNodeIdPrefix?this.defaultNodeIdPrefix+`-`+e:e.toString()}markBlockForVerify(e){let[t,n]=this.getBlockBounds(e);this.nodeMap.filter(e=>e.index>=t&&e.index<n).forEach(({node:e})=>{e.__needsRefreshWhenVisible=!0})}doesNodeMatch(e,t){if(t.stub)return!1;let n=this.getRowId(e);return n===null?t.data===e:t.id===n}purgeStubsOutsideOfViewport(){let{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=this.getBlockStartIndex(e),[,r]=this.getBlockBounds(t);this.nodeMap.forEach(e=>{this.lazyBlockLoadingSvc.isRowLoading(this,e.index)||e.node.failedLoad||e.node.stub&&(e.index<n||e.index>r)&&this.destroyRowAtIndex(e.index)})}getBlocksDistanceFromRow(e,t){let n={};return e.forEach(({node:e,index:r})=>{let[i,a]=this.getBlockBounds(r);if(i in n)return;let o=Math.abs(e.rowIndex-t),s,c=this.nodeMap.getBy(`index`,[a-1]);c&&(s=Math.abs(c.node.rowIndex-t)),n[i]=s==null||o<s?o:s}),Object.entries(n)}purgeExcessRows(){if(this.purgeStubsOutsideOfViewport(),this.store.getDisplayIndexEnd()==null||this.storeParams.maxBlocksInCache==null)return;let{firstRenderedRow:e,lastRenderedRow:t}=this.rowRenderer,n=new Set,r=new Set;this.nodeMap.forEach(({index:i,node:a})=>{let o=this.getBlockStartIndex(i);n.add(o),a.rowIndex>=e&&a.rowIndex<=t&&r.add(o)});let i=Math.max(r.size,this.storeParams.maxBlocksInCache??0),a=n.size-i;if(a<=0)return;let o=2**53-1,s=-(2**53-1);r.forEach(e=>{o>e&&(o=e),s<e&&(s=e)});let c=this.nodeMap.filter(({node:e,index:t})=>{let n=this.getBlockStartIndex(t);return!(n>=o&&n<=s)&&!this.isNodeCached(e)});if(c.length===0)return;let l=e+(t-e)/2,u=this.getBlocksDistanceFromRow(c,l),d=this.getBlockSize();u.sort((e,t)=>Math.sign(t[1]-e[1]));for(let e=0;e<Math.min(a,u.length);e++){let t=Number(u[e][0]);for(let e=t;e<t+d;e++){let t=this.nodeMap.getBy(`index`,e);!t||this.isNodeCached(t.node)||this.destroyRowAtIndex(e)}}}isNodeFocused(e){let t=this.focusSvc.getFocusCellToUseAfterRefresh();return!t||t.rowPinned!=null?!1:t.rowIndex===e.rowIndex}isNodeCached(e){let t=e.isExpandable()&&e.expanded,n=this.gos.get(`groupAllowUnbalanced`)&&e.key===``,r=!!this.beans.editSvc?.isRowEditing(e);return t||this.isNodeFocused(e)||n||r}extractDuplicateIds(e){if(this.getRowIdFunc==null)return[];let t=new Set,n=new Set;return e.forEach(e=>{let r=this.getRowId(e);if(t.has(r)){n.add(r);return}t.add(r)}),[...n]}onLoadStarted(e,t){if(!this.live)return;let n=e+t-1;if(!(this.gos.get(`collapseLoadingRows`)&&!this.hasLoadedDataAfter(n)))return;let r=e+1;this.numberOfRows<=r&&!this.isLastRowKnown||(this.nodeMap.filter(e=>e.index>=r).forEach(e=>{this.nodesToRefresh.delete(e.node),this.destroyRowAtIndex(e.index)}),this.numberOfRows=r,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}onLoadSuccess(e,n,r){if(!this.live)return;let i=r.groupLevelInfo;if(this.store.setStoreInfo(i),this.getRowIdFunc!=null){let i=this.extractDuplicateIds(r.rowData);if(i.length>0){t._warn(205,{duplicateIdText:i.join(`, `)}),this.onLoadFailed(e,n);return}}r.pivotResultFields&&this.serverSideRowModel.generateSecondaryColumns(r.pivotResultFields);let a=this.nodesToRefresh.size>0;r.rowData.forEach((t,n)=>{let r=e+n,i=this.nodeMap.getBy(`index`,r);if(i?.node?.stub){this.createRowAtIndex(r,t);return}if(i&&this.doesNodeMatch(t,i.node)){this.blockUtils.updateDataIntoRowNode(i.node,t),this.nodesToRefresh.delete(i.node),i.node.__needsRefreshWhenVisible=!1;return}this.createRowAtIndex(r,t)});let o=this.getBlockStartIndex(e);if(this.loadedBlocks.add(o),r.rowCount!=null&&r.rowCount!==-1)this.numberOfRows=r.rowCount,this.isLastRowKnown=!0;else if(n>r.rowData.length)this.numberOfRows=e+r.rowData.length,this.isLastRowKnown=!0;else if(!this.isLastRowKnown){let t=e+r.rowData.length+1;t>this.numberOfRows&&(this.numberOfRows=t)}this.isLastRowKnown&&this.nodeMap.filter(e=>e.index>=this.numberOfRows).forEach(e=>this.destroyRowAtIndex(e.index)),this.fireStoreUpdatedEvent();let s=this.nodesToRefresh.size===0;a&&s&&this.fireRefreshFinishedEvent()}fireRefreshFinishedEvent(){this.nodesToRefresh.size===0&&(this.removedNodeCache.forEach(e=>{this.blockUtils.destroyRowNode(e)}),this.removedNodeCache=new Map,this.store.fireRefreshFinishedEvent())}isStoreFullyLoaded(){let e=this.isLastRowKnown,t=this.nodeMap.getSize()===this.numberOfRows;if(!e||!t||this.nodesToRefresh.size>0)return;let n=-1;return this.nodeMap.find(e=>(n+=1,!!(e.index!==n||e.node.__needsRefreshWhenVisible||e.node.stub)))==null}isLastRowIndexKnown(){return this.isLastRowKnown}onLoadFailed(e,t){if(!this.live)return;let n=this.nodesToRefresh.size>0,r=e+t-1,i=this.gos.get(`collapseFailedRows`)&&!this.hasLoadedDataAfter(r);if(i){let t=e+1;this.nodeMap.filter(e=>e.index>=t).forEach(e=>{this.nodesToRefresh.delete(e.node),this.destroyRowAtIndex(e.index)}),this.numberOfRows=t,this.isLastRowKnown=!0}else this.numberOfRows<e+t&&(this.numberOfRows=e+t,this.isLastRowKnown=!1);let a=i?e:Math.min(e+t,this.getRowCount())-1;for(let t=e;t<=a;t++){let{node:e}=this.nodeMap.getBy(`index`,t)??{};e&&this.nodesToRefresh.delete(e),e?.stub||(e&&!e.stub&&this.destroyRowAtIndex(t),e=this.createRowAtIndex(t)),e.__needsRefreshWhenVisible=!1,e.failedLoad=!0}let o=this.nodesToRefresh.size===0;n&&o&&this.fireRefreshFinishedEvent(),this.fireStoreUpdatedEvent()}markNodesForRefresh(){this.nodeMap.forEach(e=>{e.node.stub&&!e.node.failedLoad||this.nodesToRefresh.add(e.node)}),this.lazyBlockLoadingSvc.queueLoadCheck(),this.isLastRowKnown&&this.numberOfRows===0&&(this.numberOfRows=1,this.isLastRowKnown=!1,this.fireStoreUpdatedEvent())}isNodeInCache(e){return!!this.nodeMap.getBy(`id`,e)}fireStoreUpdatedEvent(){this.live&&this.store.fireStoreUpdatedEvent()}getRowId(e){if(this.getRowIdFunc==null)return null;let{level:t}=this.store.getRowDetails(),n=this.store.getParentNode().getRoute()??[];return this.getRowIdFunc({data:e,parentKeys:n.length>0?n:void 0,level:t})}getOrderedNodeMap(){let e={};return this.nodeMap.forEach(t=>e[t.index]=t),e}clearDisplayIndexes(){this.nodeDisplayIndexMap.clear()}clientSideSortRows(){let e=this.sortSvc?.getSortOptions()??[],t=e.some(e=>e.sort!=null),n=this.rowNodeSorter;if(!t||!n)return;let r=Array(this.nodeMap.getSize()),i=this.nodeMap;i.forEach(e=>r[e.index]=e.node),i.clear();let a=n.doFullSortInPlace(r,e);for(let e=0,t=a.length;e<t;++e){let t=a[e];i.set({id:t.id,node:t,index:e})}}updateRowNodes(e){let t=[];return e.forEach(e=>{let n=this.getRowId(e),r=this.nodeMap.getBy(`id`,n);r&&(this.blockUtils.updateDataIntoRowNode(r.node,e),t.push(r.node))}),t}insertRowNodes(e,t){let n=this.store.getRowCount()-+!!this.store.getParentNode().sibling,r=t==null&&this.isLastRowKnown?n:t;if(r==null||n<r)return[];let i={};e.forEach(e=>{let t=this.getRowId(e);t&&this.isNodeInCache(t)||(i[t]=e)});let a=Object.values(i),o=a.length;if(o===0)return[];let s=this.nodeMap.filter(e=>e.index>=r);return s.forEach(e=>this.nodeMap.delete(e)),s.forEach(e=>{this.nodeMap.set({node:e.node,index:e.index+o,id:e.id})}),this.numberOfRows+=o,a.map((e,t)=>this.createRowAtIndex(r+t,e))}removeRowNodes(e){let t=[],n=[],r=0,i=[...e],a=this.getOrderedNodeMap(),o=-1;for(let e of Object.keys(a)){o+=1;let s=a[e],c=i.findIndex(e=>e===s.id);if(c!==-1){i.splice(c,1),this.destroyRowAtIndex(Number(e)),t.push(s.node),r+=1;continue}if(r===0)continue;let l=Number(e);o!==l&&n.push(s.node),this.nodeMap.delete(s),this.nodeMap.set({id:s.id,node:s.node,index:l-r})}return this.numberOfRows-=this.isLastRowIndexKnown()?e.length:r,i.length>0&&n.length>0&&(n.forEach(e=>e.__needsRefreshWhenVisible=!0),this.lazyBlockLoadingSvc.queueLoadCheck()),t}getBlockSize(){return this.storeParams.cacheBlockSize||a}getBlockStartIndex(e){return e-e%this.getBlockSize()}getBlockBounds(e){let t=this.getBlockStartIndex(e);return[t,t+this.getBlockSize()]}};exports.LazyCache=o;
|
|
@@ -99,6 +99,14 @@ export declare class LazyCache extends BeanStub {
|
|
|
99
99
|
value: number;
|
|
100
100
|
}, uiLevel: number): void;
|
|
101
101
|
getRowCount(): number;
|
|
102
|
+
/**
|
|
103
|
+
* @returns true if any row strictly after the given store index is loaded data
|
|
104
|
+
* (a real, non-stub, non-failed node). Used to decide whether a
|
|
105
|
+
* loading/failed block can be physically collapsed: collapsing truncates the
|
|
106
|
+
* row count, so it is only safe when there is no already-loaded data below the
|
|
107
|
+
* block that would be destroyed.
|
|
108
|
+
*/
|
|
109
|
+
private hasLoadedDataAfter;
|
|
102
110
|
setRowCount(rowCount: number, isLastRowIndexKnown?: boolean): void;
|
|
103
111
|
getNodes(): MultiIndexMap<LazyStoreNode, "id" | "index" | "node">;
|
|
104
112
|
getNodeCachedByDisplayIndex(displayIndex: number): RowNode | null;
|
|
@@ -144,6 +152,17 @@ export declare class LazyCache extends BeanStub {
|
|
|
144
152
|
private isNodeFocused;
|
|
145
153
|
private isNodeCached;
|
|
146
154
|
private extractDuplicateIds;
|
|
155
|
+
/**
|
|
156
|
+
* Called when a block's request is fired (before the response). When
|
|
157
|
+
* collapseLoadingRows is on and there is no already-loaded data below the block,
|
|
158
|
+
* physically collapse the loading block to a single loading row: keep one stub
|
|
159
|
+
* at firstRowIndex, drop the rest of the block and any rows after it, and mark
|
|
160
|
+
* the end as unknown (there is more data below). onLoadSuccess/onLoadFailed
|
|
161
|
+
* restore the real count when the response arrives. When there IS loaded data
|
|
162
|
+
* below (a middle block), the count is left intact and the renderer collapses
|
|
163
|
+
* the block visually instead.
|
|
164
|
+
*/
|
|
165
|
+
onLoadStarted(firstRowIndex: number, numberOfRowsExpected: number): void;
|
|
147
166
|
onLoadSuccess(firstRowIndex: number, numberOfRowsExpected: number, response: LoadSuccessParams): void;
|
|
148
167
|
fireRefreshFinishedEvent(): void;
|
|
149
168
|
/**
|
|
@@ -99,6 +99,14 @@ export declare class LazyCache extends BeanStub {
|
|
|
99
99
|
value: number;
|
|
100
100
|
}, uiLevel: number): void;
|
|
101
101
|
getRowCount(): number;
|
|
102
|
+
/**
|
|
103
|
+
* @returns true if any row strictly after the given store index is loaded data
|
|
104
|
+
* (a real, non-stub, non-failed node). Used to decide whether a
|
|
105
|
+
* loading/failed block can be physically collapsed: collapsing truncates the
|
|
106
|
+
* row count, so it is only safe when there is no already-loaded data below the
|
|
107
|
+
* block that would be destroyed.
|
|
108
|
+
*/
|
|
109
|
+
private hasLoadedDataAfter;
|
|
102
110
|
setRowCount(rowCount: number, isLastRowIndexKnown?: boolean): void;
|
|
103
111
|
getNodes(): MultiIndexMap<LazyStoreNode, "id" | "index" | "node">;
|
|
104
112
|
getNodeCachedByDisplayIndex(displayIndex: number): RowNode | null;
|
|
@@ -144,6 +152,17 @@ export declare class LazyCache extends BeanStub {
|
|
|
144
152
|
private isNodeFocused;
|
|
145
153
|
private isNodeCached;
|
|
146
154
|
private extractDuplicateIds;
|
|
155
|
+
/**
|
|
156
|
+
* Called when a block's request is fired (before the response). When
|
|
157
|
+
* collapseLoadingRows is on and there is no already-loaded data below the block,
|
|
158
|
+
* physically collapse the loading block to a single loading row: keep one stub
|
|
159
|
+
* at firstRowIndex, drop the rest of the block and any rows after it, and mark
|
|
160
|
+
* the end as unknown (there is more data below). onLoadSuccess/onLoadFailed
|
|
161
|
+
* restore the real count when the response arrives. When there IS loaded data
|
|
162
|
+
* below (a middle block), the count is left intact and the renderer collapses
|
|
163
|
+
* the block visually instead.
|
|
164
|
+
*/
|
|
165
|
+
onLoadStarted(firstRowIndex: number, numberOfRowsExpected: number): void;
|
|
147
166
|
onLoadSuccess(firstRowIndex: number, numberOfRowsExpected: number, response: LoadSuccessParams): void;
|
|
148
167
|
fireRefreshFinishedEvent(): void;
|
|
149
168
|
/**
|
|
@@ -112,6 +112,12 @@ var o = 100, s = class extends e {
|
|
|
112
112
|
getRowCount() {
|
|
113
113
|
return this.numberOfRows;
|
|
114
114
|
}
|
|
115
|
+
hasLoadedDataAfter(e) {
|
|
116
|
+
let t = !1;
|
|
117
|
+
return this.nodeMap.forEach((n) => {
|
|
118
|
+
n.index > e && !n.node.stub && !n.node.failedLoad && (t = !0);
|
|
119
|
+
}), t;
|
|
120
|
+
}
|
|
115
121
|
setRowCount(e, t) {
|
|
116
122
|
this.numberOfRows = e, t != null && (this.isLastRowKnown = t, t === !1 && (this.numberOfRows += 1)), this.fireStoreUpdatedEvent();
|
|
117
123
|
}
|
|
@@ -299,6 +305,15 @@ var o = 100, s = class extends e {
|
|
|
299
305
|
t.add(r);
|
|
300
306
|
}), [...n];
|
|
301
307
|
}
|
|
308
|
+
onLoadStarted(e, t) {
|
|
309
|
+
if (!this.live) return;
|
|
310
|
+
let n = e + t - 1;
|
|
311
|
+
if (!(this.gos.get("collapseLoadingRows") && !this.hasLoadedDataAfter(n))) return;
|
|
312
|
+
let r = e + 1;
|
|
313
|
+
this.numberOfRows <= r && !this.isLastRowKnown || (this.nodeMap.filter((e) => e.index >= r).forEach((e) => {
|
|
314
|
+
this.nodesToRefresh.delete(e.node), this.destroyRowAtIndex(e.index);
|
|
315
|
+
}), this.numberOfRows = r, this.isLastRowKnown = !1, this.fireStoreUpdatedEvent());
|
|
316
|
+
}
|
|
302
317
|
onLoadSuccess(e, n, r) {
|
|
303
318
|
if (!this.live) return;
|
|
304
319
|
let i = r.groupLevelInfo;
|
|
@@ -350,13 +365,20 @@ var o = 100, s = class extends e {
|
|
|
350
365
|
}
|
|
351
366
|
onLoadFailed(e, t) {
|
|
352
367
|
if (!this.live) return;
|
|
353
|
-
let n = this.nodesToRefresh.size > 0;
|
|
354
|
-
|
|
355
|
-
let
|
|
356
|
-
|
|
368
|
+
let n = this.nodesToRefresh.size > 0, r = e + t - 1, i = this.gos.get("collapseFailedRows") && !this.hasLoadedDataAfter(r);
|
|
369
|
+
if (i) {
|
|
370
|
+
let t = e + 1;
|
|
371
|
+
this.nodeMap.filter((e) => e.index >= t).forEach((e) => {
|
|
372
|
+
this.nodesToRefresh.delete(e.node), this.destroyRowAtIndex(e.index);
|
|
373
|
+
}), this.numberOfRows = t, this.isLastRowKnown = !0;
|
|
374
|
+
} else this.numberOfRows < e + t && (this.numberOfRows = e + t, this.isLastRowKnown = !1);
|
|
375
|
+
let a = i ? e : Math.min(e + t, this.getRowCount()) - 1;
|
|
376
|
+
for (let t = e; t <= a; t++) {
|
|
377
|
+
let { node: e } = this.nodeMap.getBy("index", t) ?? {};
|
|
378
|
+
e && this.nodesToRefresh.delete(e), e?.stub || (e && !e.stub && this.destroyRowAtIndex(t), e = this.createRowAtIndex(t)), e.__needsRefreshWhenVisible = !1, e.failedLoad = !0;
|
|
357
379
|
}
|
|
358
|
-
let
|
|
359
|
-
n &&
|
|
380
|
+
let o = this.nodesToRefresh.size === 0;
|
|
381
|
+
n && o && this.fireRefreshFinishedEvent(), this.fireStoreUpdatedEvent();
|
|
360
382
|
}
|
|
361
383
|
markNodesForRefresh() {
|
|
362
384
|
this.nodeMap.forEach((e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../community/context/beanStub.cjs"),t=require("../../../../community/validation/logging.cjs"),n=require("../../../../community/gridOptionsUtils.cjs"),r=require("../../../../community/interfaces/serverSideTransaction.cjs"),i=require("../../../aggregation/footerUtils.cjs"),a=require("./lazyCache.cjs");var o=class extends e.BeanStub{blockUtils;storeUtils;selectionSvc;rowGroupColsSvc;wireBeans(e){this.blockUtils=e.ssrmBlockUtils,this.storeUtils=e.ssrmStoreUtils,this.selectionSvc=e.selectionSvc,this.rowGroupColsSvc=e.rowGroupColsSvc}displayIndexStart;displayIndexEnd;topPx;heightPx;level;group;leafGroup;ssrmParams;storeParams;parentRowNode;groupField;rowGroupColumn;idSequence={value:0};cache;info;constructor(e,t,n){super(),this.ssrmParams=e,this.parentRowNode=n,this.storeParams=t,this.level=n.level+1,this.group=e.rowGroupCols?this.level<e.rowGroupCols.length:!1,this.leafGroup=e.rowGroupCols?this.level===e.rowGroupCols.length-1:!1,this.info={}}postConstruct(){let e=1;if(this.level===0&&(e=this.storeUtils.getServerSideInitialRowCount()??1,this.eventSvc.dispatchEventOnce({type:`rowCountReady`})),this.cache=this.createManagedBean(new a.LazyCache(this,e,!1,this.storeParams)),!this.gos.get(`treeData`)&&this.group&&this.rowGroupColsSvc){let e=this.ssrmParams.rowGroupCols[this.level];this.groupField=e.field,this.rowGroupColumn=this.rowGroupColsSvc.columns[this.level]}}destroy(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache),super.destroy()}applyRowData(e,t,n){this.cache.onLoadSuccess(t,n,e)}applyTransaction(e){let i=n._getRowIdCallback(this.gos);if(!i)return t._warn(206),{status:r.ServerSideTransactionResultStatus.Cancelled};let a=this.gos.getCallback(`isApplyServerSideTransaction`);if(a&&!a({transaction:e,parentNode:this.parentRowNode,groupLevelInfo:this.info}))return{status:r.ServerSideTransactionResultStatus.Cancelled};let o=this.cache.isStoreFullyLoaded(),s;e.update?.length&&(s=this.cache.updateRowNodes(e.update));let c;if(e.add?.length){let t=e.addIndex;t!=null&&t<0&&(t=void 0),c=this.cache.insertRowNodes(e.add,t)}let l;if(e.remove?.length){let t=e.remove.map(e=>i({level:this.level,parentKeys:this.parentRowNode.getRoute()??[],data:e})),n=[...new Set(t)];l=this.cache.removeRowNodes(n)}let u=this.gos.get(`serverSideEnableClientSideSort`),d=s?.length||c?.length;return o&&u&&d&&this.cache.clientSideSortRows(),this.updateSelectionAfterTransaction(s,l),{status:r.ServerSideTransactionResultStatus.Applied,update:s,add:c,remove:l}}updateSelectionAfterTransaction(e,t){if(!this.selectionSvc)return;let n=[];for(let t of e??[])t.isSelected()&&!t.selectable&&n.push(t);for(let e of t??[])e.isSelected()&&n.push(e);n.length&&this.selectionSvc.setNodesSelected({newValue:!1,clearSelection:!1,nodes:n,source:`rowDataChanged`})}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(e=>this.blockUtils.clearDisplayIndex(e.node)),this.parentRowNode.sibling&&this.blockUtils.clearDisplayIndex(this.parentRowNode.sibling),this.cache.clearDisplayIndexes()}getDisplayIndexStart(){return this.displayIndexStart}getDisplayIndexEnd(){return this.displayIndexEnd}getRowCount(){return this.parentRowNode.sibling?this.cache.getRowCount()+1:this.cache.getRowCount()}setRowCount(e,t){this.cache.setRowCount(e,t)}isDisplayIndexInStore(e){return this.cache.getRowCount()===0?!1:this.displayIndexStart<=e&&e<this.getDisplayIndexEnd()}setDisplayIndexes(e,t,r){this.displayIndexStart=e.value,this.topPx=t.value;let a=this.parentRowNode.level>-1&&n._getGroupTotalRowCallback(this.gos)({node:this.parentRowNode});a||i._destroyRowNodeFooter(this.parentRowNode),a===`top`&&(i._createRowNodeFooter(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,r)),this.cache.setDisplayIndexes(e,t,r),a===`bottom`&&(i._createRowNodeFooter(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,r)),this.displayIndexEnd=e.value,this.heightPx=t.value-this.topPx}forEachStoreDeep(e,t={value:0}){e(this,t.value++),this.cache.getNodes().forEach(n=>{let r=n.node.childStore;r&&r.forEachStoreDeep(e,t)})}forEachNodeDeep(e,t={value:0}){this.cache.getNodes().forEach(n=>{e(n.node,t.value++);let r=n.node.childStore;r&&r.forEachNodeDeep(e,t)})}forEachNodeDeepAfterFilterAndSort(e,t={value:0},r=!1){let i=this.parentRowNode.level>-1&&n._getGroupTotalRowCallback(this.gos)({node:this.parentRowNode});i===`top`&&e(this.parentRowNode.sibling,t.value++);let a=this.cache.getOrderedNodeMap();for(let n of Object.values(a)){e(n.node,t.value++);let i=n.node.childStore;i&&i.forEachNodeDeepAfterFilterAndSort(e,t,r)}i===`bottom`&&e(this.parentRowNode.sibling,t.value++)}retryLoads(){this.cache.getNodes().forEach(({node:e})=>{e.failedLoad&&(e.failedLoad=!1,e.__needsRefreshWhenVisible=!0,e.stub=!0)}),this.forEachChildStoreShallow(e=>e.retryLoads()),this.fireStoreUpdatedEvent()}getRowUsingDisplayIndex(e){return this.parentRowNode.sibling&&e===this.parentRowNode.sibling.rowIndex?this.parentRowNode.sibling:this.cache.getRowByDisplayIndex(e)}getRowBounds(e){if(!this.isDisplayIndexInStore(e))return null;let t=this.cache.getNodeCachedByDisplayIndex(e);if(t){let n=this.blockUtils.extractRowBounds(t,e);if(n)return n}let{previousNode:r,nextNode:i}=this.cache.getSurroundingNodesByDisplayIndex(e)??{};if(r){let t=this.blockUtils.extractRowBounds(r.node,e);if(t!=null)return t}let a=n._getRowHeightAsNumber(this.beans);if(i){let t=(i.node.rowIndex-e)*a;return{rowTop:i.node.rowTop-t,rowHeight:a}}return{rowTop:this.topPx+this.heightPx-(this.getDisplayIndexEnd()-e)*a,rowHeight:a}}isPixelInRange(e){return e>=this.topPx&&e<this.topPx+this.heightPx}getRowIndexAtPixel(e){if(e<this.topPx)return this.getDisplayIndexStart();if(e>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;if(this.parentRowNode.sibling&&e>this.parentRowNode.sibling.rowTop&&e<this.parentRowNode.sibling.rowTop+this.parentRowNode.sibling.rowHeight)return this.parentRowNode.sibling.rowIndex;let t=2**53-1,r=null,i=2**53-1,a=null;if(this.cache.getNodes().forEach(({node:n})=>{let o=Math.abs(e-n.rowTop);if(n.rowTop<e){o<t&&(t=o,r=n);return}o<i&&(i=o,a=n)}),r=r,a=a,r){let t=this.blockUtils.getIndexAtPixel(r,e);if(t!=null)return t}let o=n._getRowHeightAsNumber(this.beans);if(a){let t=a.rowTop,n=Math.ceil((t-e)/o);return a.rowIndex-n}let s=this.topPx+this.heightPx,c=Math.floor((s-e)/o);return this.getDisplayIndexEnd()-c}getChildStore(e){return this.storeUtils.getChildStore(e,this,e=>{let t=this.cache.getNodes().find(t=>t.node.key==e);return t?t.node:null})}forEachChildStoreShallow(e){this.cache.getNodes().forEach(({node:t})=>{t.childStore&&e(t.childStore)})}refreshAfterSort(e){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){let e=this.cache.isStoreFullyLoaded(),t=this.gos.get(`serverSideEnableClientSideSort`);if(!(e&&t)){let e
|
|
1
|
+
const e=require("../../../../community/context/beanStub.cjs"),t=require("../../../../community/validation/logging.cjs"),n=require("../../../../community/gridOptionsUtils.cjs"),r=require("../../../../community/interfaces/serverSideTransaction.cjs"),i=require("../../../aggregation/footerUtils.cjs"),a=require("./lazyCache.cjs");var o=class extends e.BeanStub{blockUtils;storeUtils;selectionSvc;rowGroupColsSvc;wireBeans(e){this.blockUtils=e.ssrmBlockUtils,this.storeUtils=e.ssrmStoreUtils,this.selectionSvc=e.selectionSvc,this.rowGroupColsSvc=e.rowGroupColsSvc}displayIndexStart;displayIndexEnd;topPx;heightPx;level;group;leafGroup;ssrmParams;storeParams;parentRowNode;groupField;rowGroupColumn;idSequence={value:0};cache;info;constructor(e,t,n){super(),this.ssrmParams=e,this.parentRowNode=n,this.storeParams=t,this.level=n.level+1,this.group=e.rowGroupCols?this.level<e.rowGroupCols.length:!1,this.leafGroup=e.rowGroupCols?this.level===e.rowGroupCols.length-1:!1,this.info={}}postConstruct(){let e=1;if(this.level===0&&(e=this.storeUtils.getServerSideInitialRowCount()??1,this.eventSvc.dispatchEventOnce({type:`rowCountReady`})),this.cache=this.createManagedBean(new a.LazyCache(this,e,!1,this.storeParams)),!this.gos.get(`treeData`)&&this.group&&this.rowGroupColsSvc){let e=this.ssrmParams.rowGroupCols[this.level];this.groupField=e.field,this.rowGroupColumn=this.rowGroupColsSvc.columns[this.level]}}destroy(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.destroyBean(this.cache),super.destroy()}applyRowData(e,t,n){this.cache.onLoadSuccess(t,n,e)}applyTransaction(e){let i=n._getRowIdCallback(this.gos);if(!i)return t._warn(206),{status:r.ServerSideTransactionResultStatus.Cancelled};let a=this.gos.getCallback(`isApplyServerSideTransaction`);if(a&&!a({transaction:e,parentNode:this.parentRowNode,groupLevelInfo:this.info}))return{status:r.ServerSideTransactionResultStatus.Cancelled};let o=this.cache.isStoreFullyLoaded(),s;e.update?.length&&(s=this.cache.updateRowNodes(e.update));let c;if(e.add?.length){let t=e.addIndex;t!=null&&t<0&&(t=void 0),c=this.cache.insertRowNodes(e.add,t)}let l;if(e.remove?.length){let t=e.remove.map(e=>i({level:this.level,parentKeys:this.parentRowNode.getRoute()??[],data:e})),n=[...new Set(t)];l=this.cache.removeRowNodes(n)}let u=this.gos.get(`serverSideEnableClientSideSort`),d=s?.length||c?.length;return o&&u&&d&&this.cache.clientSideSortRows(),this.updateSelectionAfterTransaction(s,l),{status:r.ServerSideTransactionResultStatus.Applied,update:s,add:c,remove:l}}updateSelectionAfterTransaction(e,t){if(!this.selectionSvc)return;let n=[];for(let t of e??[])t.isSelected()&&!t.selectable&&n.push(t);for(let e of t??[])e.isSelected()&&n.push(e);n.length&&this.selectionSvc.setNodesSelected({newValue:!1,clearSelection:!1,nodes:n,source:`rowDataChanged`})}clearDisplayIndexes(){this.displayIndexStart=void 0,this.displayIndexEnd=void 0,this.cache.getNodes().forEach(e=>this.blockUtils.clearDisplayIndex(e.node)),this.parentRowNode.sibling&&this.blockUtils.clearDisplayIndex(this.parentRowNode.sibling),this.cache.clearDisplayIndexes()}getDisplayIndexStart(){return this.displayIndexStart}getDisplayIndexEnd(){return this.displayIndexEnd}getRowCount(){return this.parentRowNode.sibling?this.cache.getRowCount()+1:this.cache.getRowCount()}setRowCount(e,t){this.cache.setRowCount(e,t)}isDisplayIndexInStore(e){return this.cache.getRowCount()===0?!1:this.displayIndexStart<=e&&e<this.getDisplayIndexEnd()}setDisplayIndexes(e,t,r){this.displayIndexStart=e.value,this.topPx=t.value;let a=this.parentRowNode.level>-1&&n._getGroupTotalRowCallback(this.gos)({node:this.parentRowNode});a||i._destroyRowNodeFooter(this.parentRowNode),a===`top`&&(i._createRowNodeFooter(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,r)),this.cache.setDisplayIndexes(e,t,r),a===`bottom`&&(i._createRowNodeFooter(this.parentRowNode,this.beans),this.blockUtils.setDisplayIndex(this.parentRowNode.sibling,e,t,r)),this.displayIndexEnd=e.value,this.heightPx=t.value-this.topPx}forEachStoreDeep(e,t={value:0}){e(this,t.value++),this.cache.getNodes().forEach(n=>{let r=n.node.childStore;r&&r.forEachStoreDeep(e,t)})}forEachNodeDeep(e,t={value:0}){this.cache.getNodes().forEach(n=>{e(n.node,t.value++);let r=n.node.childStore;r&&r.forEachNodeDeep(e,t)})}forEachNodeDeepAfterFilterAndSort(e,t={value:0},r=!1){let i=this.parentRowNode.level>-1&&n._getGroupTotalRowCallback(this.gos)({node:this.parentRowNode});i===`top`&&e(this.parentRowNode.sibling,t.value++);let a=this.cache.getOrderedNodeMap();for(let n of Object.values(a)){e(n.node,t.value++);let i=n.node.childStore;i&&i.forEachNodeDeepAfterFilterAndSort(e,t,r)}i===`bottom`&&e(this.parentRowNode.sibling,t.value++)}retryLoads(){this.cache.getNodes().forEach(({node:e})=>{e.failedLoad&&(e.failedLoad=!1,e.__needsRefreshWhenVisible=!0,e.stub=!0)}),this.forEachChildStoreShallow(e=>e.retryLoads()),this.fireStoreUpdatedEvent()}getRowUsingDisplayIndex(e){return this.parentRowNode.sibling&&e===this.parentRowNode.sibling.rowIndex?this.parentRowNode.sibling:this.cache.getRowByDisplayIndex(e)}getRowBounds(e){if(!this.isDisplayIndexInStore(e))return null;let t=this.cache.getNodeCachedByDisplayIndex(e);if(t){let n=this.blockUtils.extractRowBounds(t,e);if(n)return n}let{previousNode:r,nextNode:i}=this.cache.getSurroundingNodesByDisplayIndex(e)??{};if(r){let t=this.blockUtils.extractRowBounds(r.node,e);if(t!=null)return t}let a=n._getRowHeightAsNumber(this.beans);if(i){let t=(i.node.rowIndex-e)*a;return{rowTop:i.node.rowTop-t,rowHeight:a}}return{rowTop:this.topPx+this.heightPx-(this.getDisplayIndexEnd()-e)*a,rowHeight:a}}isPixelInRange(e){return e>=this.topPx&&e<this.topPx+this.heightPx}getRowIndexAtPixel(e){if(e<this.topPx)return this.getDisplayIndexStart();if(e>=this.topPx+this.heightPx)return this.getDisplayIndexEnd()-1;if(this.parentRowNode.sibling&&e>this.parentRowNode.sibling.rowTop&&e<this.parentRowNode.sibling.rowTop+this.parentRowNode.sibling.rowHeight)return this.parentRowNode.sibling.rowIndex;let t=2**53-1,r=null,i=2**53-1,a=null;if(this.cache.getNodes().forEach(({node:n})=>{let o=Math.abs(e-n.rowTop);if(n.rowTop<e){o<t&&(t=o,r=n);return}o<i&&(i=o,a=n)}),r=r,a=a,r){let t=this.blockUtils.getIndexAtPixel(r,e);if(t!=null)return t}let o=n._getRowHeightAsNumber(this.beans);if(a){let t=a.rowTop,n=Math.ceil((t-e)/o);return a.rowIndex-n}let s=this.topPx+this.heightPx,c=Math.floor((s-e)/o);return this.getDisplayIndexEnd()-c}getChildStore(e){return this.storeUtils.getChildStore(e,this,e=>{let t=this.cache.getNodes().find(t=>t.node.key==e);return t?t.node:null})}forEachChildStoreShallow(e){this.cache.getNodes().forEach(({node:t})=>{t.childStore&&e(t.childStore)})}refreshAfterSort(e){if(this.storeUtils.isServerSideSortAllLevels()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){let e=this.cache.isStoreFullyLoaded(),t=this.gos.get(`serverSideEnableClientSideSort`);if(!(e&&t)){let e=!this.gos.get(`suppressServerSideFullWidthLoadingRow`),t=e?1:this.cache.getRowCount(),n=e?!1:this.cache.isLastRowIndexKnown();this.destroyBean(this.cache),this.cache=this.createManagedBean(new a.LazyCache(this,t,n,this.storeParams));return}this.cache.clientSideSortRows()}this.forEachChildStoreShallow(t=>t.refreshAfterSort(e))}refreshAfterFilter(e){if(!this.storeUtils.isServerSideOnlyRefreshFilteredGroups()||this.storeUtils.isServerRefreshNeeded(this.parentRowNode,this.ssrmParams.rowGroupCols,e)){this.refreshStore(!0);return}this.forEachChildStoreShallow(t=>t.refreshAfterFilter(e))}refreshStore(e){if(e){this.destroyBean(this.cache),this.cache=this.createManagedBean(new a.LazyCache(this,1,!1,this.storeParams)),this.fireStoreUpdatedEvent();return}this.cache.markNodesForRefresh()}getTopLevelRowDisplayedIndex(e){return this.cache.getDisplayIndexFromStoreIndex(e)??e}isLastRowIndexKnown(){return this.cache.isLastRowIndexKnown()}getRowNodesInRange(e,t){return this.cache.getNodes().filter(({node:n})=>n.rowIndex>=e.rowIndex&&n.rowIndex<=t.rowIndex).map(({node:e})=>e)}addStoreStates(e){e.push({route:this.parentRowNode.getRoute()??[],rowCount:this.getRowCount(),lastRowIndexKnown:this.isLastRowIndexKnown(),info:this.info,maxBlocksInCache:this.storeParams.maxBlocksInCache,cacheBlockSize:this.storeParams.cacheBlockSize}),this.forEachChildStoreShallow(t=>t.addStoreStates(e))}getIdSequence(){return this.idSequence}getParentNode(){return this.parentRowNode}getRowDetails(){return{field:this.groupField,group:this.group,leafGroup:this.leafGroup,level:this.level,parent:this.parentRowNode,rowGroupColumn:this.rowGroupColumn}}getSsrmParams(){return this.ssrmParams}setStoreInfo(e){e&&Object.assign(this.info,e)}fireStoreUpdatedEvent(){this.eventSvc.dispatchEvent({type:`storeUpdated`})}fireRefreshFinishedEvent(){this.eventSvc.dispatchEvent({type:`storeRefreshed`,route:this.parentRowNode.getRoute()})}getBlockStates(){return this.cache.getBlockStates()}getStoreBounds(){return{topPx:this.topPx,heightPx:this.heightPx}}getCache(){return this.cache}getFirstNode(){return this.cache.getNodes().getBy(`index`,0)?.node??null}};exports.LazyStore=o;
|
|
@@ -211,8 +211,8 @@ var l = class extends e {
|
|
|
211
211
|
if (this.storeUtils.isServerSideSortAllLevels() || this.storeUtils.isServerRefreshNeeded(this.parentRowNode, this.ssrmParams.rowGroupCols, e)) {
|
|
212
212
|
let e = this.cache.isStoreFullyLoaded(), t = this.gos.get("serverSideEnableClientSideSort");
|
|
213
213
|
if (!(e && t)) {
|
|
214
|
-
let e = this.gos.get("
|
|
215
|
-
this.destroyBean(this.cache), this.cache = this.createManagedBean(new c(this,
|
|
214
|
+
let e = !this.gos.get("suppressServerSideFullWidthLoadingRow"), t = e ? 1 : this.cache.getRowCount(), n = e ? !1 : this.cache.isLastRowIndexKnown();
|
|
215
|
+
this.destroyBean(this.cache), this.cache = this.createManagedBean(new c(this, t, n, this.storeParams));
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
218
|
this.cache.clientSideSortRows();
|
package/dist/locale/ar-EG.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={selectAll:`(تحديد الكل)`,selectAllSearchResults:`(تحديد كل نتائج البحث)`,addCurrentSelectionToFilter:`إضافة التحديد الحالي إلى الفلتر`,searchOoo:`بحث...`,blanks:`(فارغ)`,noMatches:`لا توجد تطابقات`,typeToSearchOoo:`اكتب للبحث...`,filterOoo:`تصفية...`,equals:`يساوي`,notEqual:`لا يساوي`,blank:`فارغ`,notBlank:`ليس فارغ`,empty:`اختر واحد`,lessThan:`أقل من`,greaterThan:`أكبر من`,lessThanOrEqual:`أقل من أو يساوي`,greaterThanOrEqual:`أكبر من أو يساوي`,inRange:`بين`,inRangeStart:`من`,inRangeEnd:`إلى`,contains:`يحتوي على`,notContains:`لا يحتوي على`,startsWith:`يبدأ بـ`,endsWith:`ينتهي بـ`,dateFormatOoo:`yyyy-mm-dd`,before:`قبل`,after:`بعد`,andCondition:`و`,orCondition:`أو`,applyFilter:`تطبيق`,resetFilter:`إعادة تعيين`,clearFilter:`مسح`,cancelFilter:`إلغاء`,textFilter:`فلتر النص`,numberFilter:`فلتر الأرقام`,dateFilter:`فلتر التاريخ`,setFilter:`فلتر المجموعة`,groupFilterSelect:`اختر الحقل:`,filterSummaryInactive:`هو (الكل)`,filterSummaryContains:`يحتوي على`,filterSummaryNotContains:`لا يحتوي على`,filterSummaryTextEquals:`يساوي`,filterSummaryTextNotEqual:`لا يساوي`,filterSummaryStartsWith:`يبدأ بـ`,filterSummaryEndsWith:`ينتهي بـ`,filterSummaryBlank:`هو فارغ`,filterSummaryNotBlank:`ليس فارغًا`,filterSummaryEquals:`=`,filterSummaryNotEqual:`!=`,filterSummaryGreaterThan:`>`,filterSummaryGreaterThanOrEqual:`>=`,filterSummaryLessThan:`<`,filterSummaryLessThanOrEqual:`<=`,filterSummaryInRange:`بين`,filterSummaryInRangeValues:"(${variable}, ${variable})",filterSummaryTextQuote:'"${variable}"',filterSummaryListInactive:`هو (الكل)`,filterSummaryListSeparator:`, `,filterSummaryListShort:"هو (${variable})",filterSummaryListLong:"هو (${variable}) و${variable} أخرى",addFilterCard:`إضافة فلتر`,dataTableTextColumnFilterDisplayName:`فلتر بسيط`,dataTableNumberColumnFilterDisplayName:`فلتر بسيط`,dataTableDateColumnFilterDisplayName:`فلتر بسيط`,dataTableSetColumnFilterDisplayName:`فلتر اختيار`,dataTableMultiColumnFilterDisplayName:`فلتر مركب`,addFilterPlaceholder:`ابحث في الأعمدة...`,advancedFilterContains:`يحتوي على`,advancedFilterNotContains:`لا يحتوي على`,advancedFilterTextEquals:`يساوي`,advancedFilterTextNotEqual:`لا يساوي`,advancedFilterStartsWith:`يبدأ بـ`,advancedFilterEndsWith:`ينتهي بـ`,advancedFilterBlank:`فارغ`,advancedFilterNotBlank:`غير فارغ`,advancedFilterEquals:`=`,advancedFilterNotEqual:`!=`,advancedFilterGreaterThan:`>`,advancedFilterGreaterThanOrEqual:`>=`,advancedFilterLessThan:`<`,advancedFilterLessThanOrEqual:`<=`,advancedFilterTrue:`صحيح`,advancedFilterFalse:`خاطئ`,advancedFilterAnd:`و`,advancedFilterOr:`أو`,advancedFilterApply:`تطبيق`,advancedFilterReset:`إعادة تعيين`,advancedFilterCancel:`إلغاء`,advancedFilterClear:`مسح`,advancedFilterBuilder:`المنشئ`,advancedFilterValidationMissingColumn:`العمود مفقود`,advancedFilterValidationMissingOption:`الخيار مفقود`,advancedFilterValidationMissingValue:`القيمة مفقودة`,advancedFilterValidationInvalidColumn:`العمود غير موجود`,advancedFilterValidationInvalidOption:`الخيار غير موجود`,advancedFilterValidationMissingQuote:`القيمة تفتقد علامة الاقتباس النهائية`,advancedFilterValidationNotANumber:`القيمة ليست رقماً`,advancedFilterValidationInvalidDate:`القيمة ليست تاريخاً صحيحاً`,advancedFilterValidationMissingCondition:`الشرط مفقود`,advancedFilterValidationJoinOperatorMismatch:`يجب أن تكون عوامل الربط داخل الشرط نفسها`,advancedFilterValidationInvalidJoinOperator:`عامل الربط غير موجود`,advancedFilterValidationMissingEndBracket:`القوس الختامي مفقود`,advancedFilterValidationExtraEndBracket:`أقواس ختامية كثيرة جداً`,advancedFilterValidationMessage:"التعبير يحتوي على خطأ. ${variable} - ${variable}.",advancedFilterValidationMessageAtEnd:"التعبير يحتوي على خطأ. ${variable} في نهاية التعبير.",advancedFilterBuilderTitle:`عامل تصفية متقدم`,advancedFilterBuilderApply:`تطبيق`,advancedFilterBuilderClear:`مسح`,advancedFilterBuilderReset:`إعادة تعيين`,advancedFilterBuilderCancel:`إلغاء`,advancedFilterBuilderAddButtonTooltip:`إضافة عامل تصفية أو مجموعة`,advancedFilterBuilderRemoveButtonTooltip:`إزالة`,advancedFilterBuilderMoveUpButtonTooltip:`تحريك للأعلى`,advancedFilterBuilderMoveDownButtonTooltip:`تحريك للأسفل`,advancedFilterBuilderAddJoin:`إضافة مجموعة`,advancedFilterBuilderAddCondition:`إضافة عامل تصفية`,advancedFilterBuilderSelectColumn:`اختر عمودًا`,advancedFilterBuilderSelectOption:`اختر خيارًا`,advancedFilterBuilderEnterValue:`أدخل قيمة...`,advancedFilterBuilderValidationAlreadyApplied:`عامل التصفية الحالي مُطبَّق بالفعل.`,advancedFilterBuilderValidationIncomplete:`لم يتم إكمال كل الشروط.`,advancedFilterBuilderValidationSelectColumn:`يجب اختيار عمود.`,advancedFilterBuilderValidationSelectOption:`يجب اختيار خيار.`,advancedFilterBuilderValidationEnterValue:`يجب إدخال قيمة.`,minDateValidation:"التاريخ يجب أن يكون بعد ${variable}",maxDateValidation:"التاريخ يجب أن يكون قبل ${variable}",maxLengthValidation:"يجب أن يكون ${variable} حرف أو أقل.",minValueValidation:"يجب أن يكون أكبر من أو يساوي ${variable}",maxValueValidation:"يجب أن يكون أقل من أو يساوي ${variable}",strictMinValueValidation:"يجب أن يكون أكبر من ${variable}",strictMaxValueValidation:"يجب أن يكون أقل من ${variable}",invalidSelectionValidation:`اختيار غير صالح.`,tooltipValidationErrorSeparator:`. `,columns:`أعمدة`,filters:`مرشحات`,pivotMode:`وضع المحور`,groups:`مجموعات الصفوف`,rowGroupColumnsEmptyMessage:`اسحب هنا لتعيين مجموعات الصفوف`,values:`القيم`,valueColumnsEmptyMessage:`اسحب هنا للتجميع`,pivots:`تسميات الأعمدة`,pivotColumnsEmptyMessage:`اسحب هنا لتعيين تسميات الأعمدة`,group:`مجموعة`,rowDragRow:`صف`,rowDragRows:`صفوف`,loadingOoo:`جارٍ التحميل...`,loadingError:`خطأ`,noRowsToShow:`لا توجد صفوف للعرض`,noMatchingRows:`لا توجد صفوف متطابقة`,exportingOoo:`جارٍ التصدير...`,enabled:`مُمكّن`,pinColumn:`تثبيت العمود`,pinLeft:`تثبيت لليسار`,pinRight:`تثبيت لليمين`,noPin:`بدون تثبيت`,pinRow:`تثبيت الصف`,pinTop:`تثبيت إلى الأعلى`,pinBottom:`تثبيت إلى الأسفل`,unpinRow:`إلغاء تثبيت الصف`,valueAggregation:`تجميع القيمة`,noAggregation:`بدون تجميع`,autosizeThisColumn:`تغيير حجم هذا العمود تلقائيًا`,autosizeAllColumns:`تغيير حجم جميع الأعمدة تلقائيًا`,groupBy:`تجميع بواسطة`,ungroupBy:`إلغاء التجميع بواسطة`,ungroupAll:`إلغاء التجميع الكل`,addToValues:"إضافة ${variable} إلى القيم",removeFromValues:"إزالة ${variable} من القيم",addToLabels:"إضافة ${variable} إلى التسميات",removeFromLabels:"إزالة ${variable} من التسميات",resetColumns:`إعادة ضبط الأعمدة`,expandAll:`توسيع جميع مجموعات الصفوف`,collapseAll:`إغلاق جميع مجموعات الصفوف`,copy:`نسخ`,ctrlC:`Ctrl+C`,ctrlX:`Ctrl+X`,copyWithHeaders:`نسخ مع الرؤوس`,copyWithGroupHeaders:`نسخ مع رؤوس المجموعات`,cut:`قص`,paste:`لصق`,ctrlV:`Ctrl+V`,export:`تصدير`,csvExport:`تصدير CSV`,excelExport:`تصدير Excel`,columnFilter:`تصفية العمود`,columnChooser:`اختيار الأعمدة`,chooseColumns:`اختيار الأعمدة`,sortAscending:`ترتيب تصاعدي`,sortDescending:`ترتيب تنازلي`,sortAbsoluteAscending:`ترتيب تصاعدي مطلق`,sortAbsoluteDescending:`ترتيب تنازلي مطلق`,sortUnSort:`إلغاء الترتيب`,sum:`المجموع`,first:`الأول`,last:`الأخير`,min:`الحد الأدنى`,max:`الحد الأقصى`,none:`بدون`,count:`العدد`,avg:`المتوسط`,filteredRows:`المرشحة`,selectedRows:`المحددة`,totalRows:`إجمالي الصفوف`,totalAndFilteredRows:`الصفوف`,more:`المزيد`,to:`إلى`,of:`من`,page:`الصفحة`,pageLastRowUnknown:`?`,nextPage:`الصفحة التالية`,lastPage:`الصفحة الأخيرة`,firstPage:`الصفحة الأولى`,previousPage:`الصفحة السابقة`,pageSizeSelectorLabel:`حجم الصفحة:`,footerTotal:`المجموع`,statusBarLastRowUnknown:`؟`,scrollColumnIntoView:"مرر '${variable}' إلى العرض",pivotColumnGroupTotals:`المجموع`,ariaAdvancedFilterBuilderItem:"${variable}. المستوى ${variable}. اضغط ENTER لتعديل.",ariaAdvancedFilterBuilderItemValidation:"${variable}. المستوى ${variable}. ${variable} اضغط ENTER لتعديل.",ariaAdvancedFilterBuilderList:`قائمة مُنشئ الفلترة المتقدمة`,ariaAdvancedFilterBuilderFilterItem:`شرط الفلترة`,ariaAdvancedFilterBuilderGroupItem:`مجموعة الفلترة`,ariaAdvancedFilterBuilderColumn:`العمود`,ariaAdvancedFilterBuilderOption:`الخيار`,ariaAdvancedFilterBuilderValueP:`القيمة`,ariaAdvancedFilterBuilderJoinOperator:`العملية الربط`,ariaAdvancedFilterInput:`إدخال الفلترة المتقدمة`,ariaChecked:`محدد`,ariaColumn:`العمود`,ariaColumnGroup:`مجموعة الأعمدة`,ariaFilterActive:`ترشيح نشط`,ariaColumnFiltered:`العمود مفلتر`,ariaColumnSelectAll:`تبديل ظهور كل الأعمدة`,ariaDateFilterInput:`إدخال فلتر التاريخ`,ariaDefaultListName:`قائمة`,ariaFilterColumnsInput:`إدخال فلترة الأعمدة`,ariaFilterFromValue:`الفلترة من القيمة`,ariaFilterInput:`إدخال الفلترة`,ariaFilterList:`قائمة الفلترة`,ariaFilterToValue:`الفلترة إلى القيمة`,ariaFilterValue:`قيمة الفلترة`,ariaFilterMenuOpen:`فتح قائمة الفلترة`,ariaFilteringOperator:`مشغل الفلترة`,ariaHidden:`مخفي`,ariaIndeterminate:`غير محدد`,ariaInputEditor:`محرر الإدخال`,ariaMenuColumn:`اضغط ALT DOWN لفتح قائمة العمود`,ariaFilterColumn:`اضغط CTRL ENTER لفتح الفلترة`,ariaRowDeselect:`اضغط SPACE لإلغاء تحديد هذا الصف`,ariaHeaderSelection:`عمود مع اختيار الرؤوس`,ariaSelectAllCells:`اضغط على المسافة لاختيار كل الخلايا`,ariaRowSelectAll:`اضغط Space لتبديل تحديد كل الصفوف`,ariaRowToggleSelection:`اضغط Space لتبديل تحديد الصف`,ariaRowSelect:`اضغط SPACE لتحديد هذا الصف`,ariaRowSelectionDisabled:`تحديد الصف معطل لهذا الصف`,ariaSearch:`بحث`,ariaSortableColumn:`اضغط ENTER لفرز`,ariaToggleVisibility:`اضغط SPACE لتبديل الرؤية`,ariaToggleCellValue:`اضغط SPACE لتبديل قيمة الخلية`,ariaUnchecked:`غير محدد`,ariaVisible:`مرئي`,ariaSearchFilterValues:`قيمة فلترة البحث`,ariaPageSizeSelectorLabel:`حجم الصفحة`,ariaSkeletonCellLoadingFailed:`فشل تحميل الصف`,ariaSkeletonCellLoading:`جاري تحميل بيانات الصف`,ariaDeferSkeletonCellLoading:`الخلية قيد التحميل`,ariaPendingChange:`التغيير قيد الانتظار`,ariaRowGroupDropZonePanelLabel:`مجموعات الصفوف`,ariaValuesDropZonePanelLabel:`القيم`,ariaPivotDropZonePanelLabel:`تسميات الأعمدة`,ariaDropZoneColumnComponentDescription:`اضغط على DELETE للإزالة`,ariaDropZoneColumnValueItemDescription:`اضغط على ENTER لتغيير نوع التجميع`,ariaDropZoneColumnGroupItemDescription:`اضغط على ENTER للفرز`,ariaDropZoneColumnComponentAggFuncSeparator:` من `,ariaDropZoneColumnComponentSortAscending:`تصاعدي`,ariaDropZoneColumnComponentSortDescending:`تنازلي`,ariaDropZoneColumnComponentSortAbsoluteAscending:`تصاعدي مطلق`,ariaDropZoneColumnComponentSortAbsoluteDescending:`تنازلي مطلق`,ariaLabelDialog:`حوار`,ariaLabelColumnMenu:`قائمة الأعمدة`,ariaLabelColumnFilter:`تصفية العمود`,ariaLabelSelectField:`اختيار الحقل`,ariaValidationErrorPrefix:`تحقق من صحة محرر الخلية`,ariaLabelLoadingContextMenu:`تحميل قائمة السياق`,ariaLabelRichSelectField:`حقل اختيار متقدم`,ariaLabelRichSelectToggleSelection:`اضغط SPACE لتغيير التحديد`,ariaLabelRichSelectDeselectAllItems:`اضغط DELETE لإلغاء تحديد كل العناصر`,ariaLabelRichSelectDeleteSelection:`اضغط DELETE لإلغاء تحديد العنصر`,ariaLabelTooltip:`تلميح`,ariaLabelContextMenu:`قائمة السياق`,ariaLabelSubMenu:`القائمة الفرعية`,ariaLabelAggregationFunction:`دالة التجميع`,ariaLabelAdvancedFilterAutocomplete:`الإكمال التلقائي للفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderAddField:`إضافة حقل منشئ الفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderColumnSelectField:`حقل اختيار الأعمدة في منشئ الفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderOptionSelectField:`حقل اختيار الخيارات في منشئ الفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderJoinSelectField:`حقل اختيار مشغل الربط في منشئ الفلاتر المتقدمة`,ariaColumnPanelList:`قائمة الأعمدة`,ariaFilterPanelList:`قائمة المرشحات`,ariaLabelAddFilterField:`إضافة حقل الفلتر`,ariaLabelFilterCardDelete:`حذف الفلتر`,ariaLabelFilterCardHasEdits:`يوجد تعديلات`,thousandSeparator:`،`,decimalSeparator:`.`,true:`صح`,false:`خطأ`,invalidDate:`تاريخ غير صالح`,invalidNumber:`رقم غير صالح`,january:`يناير`,february:`فبراير`,march:`مارس`,april:`أبريل`,may:`مايو`,june:`يونيو`,july:`يوليو`,august:`أغسطس`,september:`سبتمبر`,october:`أكتوبر`,november:`نوفمبر`,december:`ديسمبر`,year:`سنة`,quarter:`ربع`,month:`شهر`,day:`يوم`,hour:`ساعة`,minute:`دقيقة`,second:`ثانية`,timeFormatSlashesDDMMYYYY:`يوم/شهر/سنة`,timeFormatSlashesMMDDYYYY:`شهر/يوم/سنة`,timeFormatSlashesDDMMYY:`يوم/شهر/سنة`,timeFormatSlashesMMDDYY:`شهر/يوم/سنة`,timeFormatDotsDDMYY:`يوم.شهر.سنة`,timeFormatDotsMDDYY:`شهر.يوم.سنة`,timeFormatDashesYYYYMMDD:`سنة-شهر-يوم`,timeFormatSpacesDDMMMMYYYY:`يوم شهر سنة`,timeFormatHHMMSS:`ساعة:دقيقة:ثانية`,timeFormatHHMMSSAmPm:`ساعة:دقيقة:ثانية ص/م`};exports.DATA_TABLE_LOCALE_EG=e;
|
|
1
|
+
var e={selectAll:`(تحديد الكل)`,selectAllSearchResults:`(تحديد كل نتائج البحث)`,addCurrentSelectionToFilter:`إضافة التحديد الحالي إلى الفلتر`,searchOoo:`بحث...`,blanks:`(فارغ)`,noMatches:`لا توجد تطابقات`,typeToSearchOoo:`اكتب للبحث...`,filterOoo:`تصفية...`,equals:`يساوي`,notEqual:`لا يساوي`,blank:`فارغ`,notBlank:`ليس فارغ`,empty:`اختر واحد`,lessThan:`أقل من`,greaterThan:`أكبر من`,lessThanOrEqual:`أقل من أو يساوي`,greaterThanOrEqual:`أكبر من أو يساوي`,inRange:`بين`,inRangeStart:`من`,inRangeEnd:`إلى`,contains:`يحتوي على`,notContains:`لا يحتوي على`,startsWith:`يبدأ بـ`,endsWith:`ينتهي بـ`,dateFormatOoo:`yyyy-mm-dd`,before:`قبل`,after:`بعد`,andCondition:`و`,orCondition:`أو`,applyFilter:`تطبيق`,resetFilter:`إعادة تعيين`,clearFilter:`مسح`,cancelFilter:`إلغاء`,textFilter:`فلتر النص`,numberFilter:`فلتر الأرقام`,dateFilter:`فلتر التاريخ`,setFilter:`فلتر المجموعة`,groupFilterSelect:`اختر الحقل:`,filterSummaryInactive:`هو (الكل)`,filterSummaryContains:`يحتوي على`,filterSummaryNotContains:`لا يحتوي على`,filterSummaryTextEquals:`يساوي`,filterSummaryTextNotEqual:`لا يساوي`,filterSummaryStartsWith:`يبدأ بـ`,filterSummaryEndsWith:`ينتهي بـ`,filterSummaryBlank:`هو فارغ`,filterSummaryNotBlank:`ليس فارغًا`,filterSummaryEquals:`=`,filterSummaryNotEqual:`!=`,filterSummaryGreaterThan:`>`,filterSummaryGreaterThanOrEqual:`>=`,filterSummaryLessThan:`<`,filterSummaryLessThanOrEqual:`<=`,filterSummaryInRange:`بين`,filterSummaryInRangeValues:"(${variable}, ${variable})",filterSummaryTextQuote:'"${variable}"',filterSummaryListInactive:`هو (الكل)`,filterSummaryListSeparator:`, `,filterSummaryListShort:"هو (${variable})",filterSummaryListLong:"هو (${variable}) و${variable} أخرى",addFilterCard:`إضافة فلتر`,dataTableTextColumnFilterDisplayName:`فلتر بسيط`,dataTableNumberColumnFilterDisplayName:`فلتر بسيط`,dataTableDateColumnFilterDisplayName:`فلتر بسيط`,dataTableSetColumnFilterDisplayName:`فلتر اختيار`,dataTableMultiColumnFilterDisplayName:`فلتر مركب`,addFilterPlaceholder:`ابحث في الأعمدة...`,advancedFilterContains:`يحتوي على`,advancedFilterNotContains:`لا يحتوي على`,advancedFilterTextEquals:`يساوي`,advancedFilterTextNotEqual:`لا يساوي`,advancedFilterStartsWith:`يبدأ بـ`,advancedFilterEndsWith:`ينتهي بـ`,advancedFilterBlank:`فارغ`,advancedFilterNotBlank:`غير فارغ`,advancedFilterEquals:`=`,advancedFilterNotEqual:`!=`,advancedFilterGreaterThan:`>`,advancedFilterGreaterThanOrEqual:`>=`,advancedFilterLessThan:`<`,advancedFilterLessThanOrEqual:`<=`,advancedFilterTrue:`صحيح`,advancedFilterFalse:`خاطئ`,advancedFilterAnd:`و`,advancedFilterOr:`أو`,advancedFilterApply:`تطبيق`,advancedFilterReset:`إعادة تعيين`,advancedFilterCancel:`إلغاء`,advancedFilterClear:`مسح`,advancedFilterBuilder:`المنشئ`,advancedFilterValidationMissingColumn:`العمود مفقود`,advancedFilterValidationMissingOption:`الخيار مفقود`,advancedFilterValidationMissingValue:`القيمة مفقودة`,advancedFilterValidationInvalidColumn:`العمود غير موجود`,advancedFilterValidationInvalidOption:`الخيار غير موجود`,advancedFilterValidationMissingQuote:`القيمة تفتقد علامة الاقتباس النهائية`,advancedFilterValidationNotANumber:`القيمة ليست رقماً`,advancedFilterValidationInvalidDate:`القيمة ليست تاريخاً صحيحاً`,advancedFilterValidationMissingCondition:`الشرط مفقود`,advancedFilterValidationJoinOperatorMismatch:`يجب أن تكون عوامل الربط داخل الشرط نفسها`,advancedFilterValidationInvalidJoinOperator:`عامل الربط غير موجود`,advancedFilterValidationMissingEndBracket:`القوس الختامي مفقود`,advancedFilterValidationExtraEndBracket:`أقواس ختامية كثيرة جداً`,advancedFilterValidationMessage:"التعبير يحتوي على خطأ. ${variable} - ${variable}.",advancedFilterValidationMessageAtEnd:"التعبير يحتوي على خطأ. ${variable} في نهاية التعبير.",advancedFilterBuilderTitle:`عامل تصفية متقدم`,advancedFilterBuilderApply:`تطبيق`,advancedFilterBuilderClear:`مسح`,advancedFilterBuilderReset:`إعادة تعيين`,advancedFilterBuilderCancel:`إلغاء`,advancedFilterBuilderAddButtonTooltip:`إضافة عامل تصفية أو مجموعة`,advancedFilterBuilderRemoveButtonTooltip:`إزالة`,advancedFilterBuilderMoveUpButtonTooltip:`تحريك للأعلى`,advancedFilterBuilderMoveDownButtonTooltip:`تحريك للأسفل`,advancedFilterBuilderAddJoin:`إضافة مجموعة`,advancedFilterBuilderAddCondition:`إضافة عامل تصفية`,advancedFilterBuilderSelectColumn:`اختر عمودًا`,advancedFilterBuilderSelectOption:`اختر خيارًا`,advancedFilterBuilderEnterValue:`أدخل قيمة...`,advancedFilterBuilderValidationAlreadyApplied:`عامل التصفية الحالي مُطبَّق بالفعل.`,advancedFilterBuilderValidationIncomplete:`لم يتم إكمال كل الشروط.`,advancedFilterBuilderValidationSelectColumn:`يجب اختيار عمود.`,advancedFilterBuilderValidationSelectOption:`يجب اختيار خيار.`,advancedFilterBuilderValidationEnterValue:`يجب إدخال قيمة.`,minDateValidation:"التاريخ يجب أن يكون بعد ${variable}",maxDateValidation:"التاريخ يجب أن يكون قبل ${variable}",maxLengthValidation:"يجب أن يكون ${variable} حرف أو أقل.",minValueValidation:"يجب أن يكون أكبر من أو يساوي ${variable}",maxValueValidation:"يجب أن يكون أقل من أو يساوي ${variable}",strictMinValueValidation:"يجب أن يكون أكبر من ${variable}",strictMaxValueValidation:"يجب أن يكون أقل من ${variable}",invalidSelectionValidation:`اختيار غير صالح.`,tooltipValidationErrorSeparator:`. `,columns:`أعمدة`,filters:`مرشحات`,pivotMode:`وضع المحور`,groups:`مجموعات الصفوف`,rowGroupColumnsEmptyMessage:`اسحب هنا لتعيين مجموعات الصفوف`,values:`القيم`,valueColumnsEmptyMessage:`اسحب هنا للتجميع`,pivots:`تسميات الأعمدة`,pivotColumnsEmptyMessage:`اسحب هنا لتعيين تسميات الأعمدة`,group:`مجموعة`,rowDragRow:`صف`,rowDragRows:`صفوف`,loadingOoo:`جارٍ التحميل...`,loadingError:`خطأ`,noRowsToShow:`لا توجد صفوف للعرض`,noMatchingRows:`لا توجد صفوف متطابقة`,exportingOoo:`جارٍ التصدير...`,enabled:`مُمكّن`,pinColumn:`تثبيت العمود`,pinLeft:`تثبيت لليسار`,pinRight:`تثبيت لليمين`,noPin:`بدون تثبيت`,pinRow:`تثبيت الصف`,pinTop:`تثبيت إلى الأعلى`,pinBottom:`تثبيت إلى الأسفل`,unpinRow:`إلغاء تثبيت الصف`,valueAggregation:`تجميع القيمة`,noAggregation:`بدون تجميع`,autosizeThisColumn:`تغيير حجم هذا العمود تلقائيًا`,autosizeAllColumns:`تغيير حجم جميع الأعمدة تلقائيًا`,groupBy:`تجميع بواسطة`,ungroupBy:`إلغاء التجميع بواسطة`,ungroupAll:`إلغاء التجميع الكل`,addToValues:"إضافة ${variable} إلى القيم",removeFromValues:"إزالة ${variable} من القيم",addToLabels:"إضافة ${variable} إلى التسميات",removeFromLabels:"إزالة ${variable} من التسميات",resetColumns:`إعادة ضبط الأعمدة`,expandAll:`توسيع جميع مجموعات الصفوف`,collapseAll:`إغلاق جميع مجموعات الصفوف`,copy:`نسخ`,ctrlC:`Ctrl+C`,ctrlX:`Ctrl+X`,copyWithHeaders:`نسخ مع الرؤوس`,copyWithGroupHeaders:`نسخ مع رؤوس المجموعات`,cut:`قص`,paste:`لصق`,ctrlV:`Ctrl+V`,export:`تصدير`,csvExport:`تصدير CSV`,excelExport:`تصدير Excel`,columnFilter:`تصفية العمود`,columnChooser:`اختيار الأعمدة`,chooseColumns:`اختيار الأعمدة`,sortAscending:`ترتيب تصاعدي`,sortDescending:`ترتيب تنازلي`,sortAbsoluteAscending:`ترتيب تصاعدي مطلق`,sortAbsoluteDescending:`ترتيب تنازلي مطلق`,sortUnSort:`إلغاء الترتيب`,sum:`المجموع`,first:`الأول`,last:`الأخير`,min:`الحد الأدنى`,max:`الحد الأقصى`,none:`بدون`,count:`العدد`,avg:`المتوسط`,filteredRows:`المرشحة`,selectedRows:`المحددة`,totalRows:`إجمالي الصفوف`,totalAndFilteredRows:`الصفوف`,more:`المزيد`,paginationUnknownTotalPages:`?`,paginationUnknownTotalRows:`?`,to:`إلى`,of:`من`,page:`الصفحة`,pageLastRowUnknown:`?`,nextPage:`الصفحة التالية`,lastPage:`الصفحة الأخيرة`,firstPage:`الصفحة الأولى`,previousPage:`الصفحة السابقة`,pageSizeSelectorLabel:`حجم الصفحة:`,footerTotal:`المجموع`,statusBarLastRowUnknown:`؟`,scrollColumnIntoView:"مرر '${variable}' إلى العرض",pivotColumnGroupTotals:`المجموع`,ariaAdvancedFilterBuilderItem:"${variable}. المستوى ${variable}. اضغط ENTER لتعديل.",ariaAdvancedFilterBuilderItemValidation:"${variable}. المستوى ${variable}. ${variable} اضغط ENTER لتعديل.",ariaAdvancedFilterBuilderList:`قائمة مُنشئ الفلترة المتقدمة`,ariaAdvancedFilterBuilderFilterItem:`شرط الفلترة`,ariaAdvancedFilterBuilderGroupItem:`مجموعة الفلترة`,ariaAdvancedFilterBuilderColumn:`العمود`,ariaAdvancedFilterBuilderOption:`الخيار`,ariaAdvancedFilterBuilderValueP:`القيمة`,ariaAdvancedFilterBuilderJoinOperator:`العملية الربط`,ariaAdvancedFilterInput:`إدخال الفلترة المتقدمة`,ariaChecked:`محدد`,ariaColumn:`العمود`,ariaColumnGroup:`مجموعة الأعمدة`,ariaFilterActive:`ترشيح نشط`,ariaColumnFiltered:`العمود مفلتر`,ariaColumnSelectAll:`تبديل ظهور كل الأعمدة`,ariaDateFilterInput:`إدخال فلتر التاريخ`,ariaDefaultListName:`قائمة`,ariaFilterColumnsInput:`إدخال فلترة الأعمدة`,ariaFilterFromValue:`الفلترة من القيمة`,ariaFilterInput:`إدخال الفلترة`,ariaFilterList:`قائمة الفلترة`,ariaFilterToValue:`الفلترة إلى القيمة`,ariaFilterValue:`قيمة الفلترة`,ariaFilterMenuOpen:`فتح قائمة الفلترة`,ariaFilteringOperator:`مشغل الفلترة`,ariaHidden:`مخفي`,ariaIndeterminate:`غير محدد`,ariaInputEditor:`محرر الإدخال`,ariaMenuColumn:`اضغط ALT DOWN لفتح قائمة العمود`,ariaFilterColumn:`اضغط CTRL ENTER لفتح الفلترة`,ariaRowDeselect:`اضغط SPACE لإلغاء تحديد هذا الصف`,ariaHeaderSelection:`عمود مع اختيار الرؤوس`,ariaSelectAllCells:`اضغط على المسافة لاختيار كل الخلايا`,ariaRowSelectAll:`اضغط Space لتبديل تحديد كل الصفوف`,ariaRowToggleSelection:`اضغط Space لتبديل تحديد الصف`,ariaRowSelect:`اضغط SPACE لتحديد هذا الصف`,ariaRowSelectionDisabled:`تحديد الصف معطل لهذا الصف`,ariaSearch:`بحث`,ariaSortableColumn:`اضغط ENTER لفرز`,ariaToggleVisibility:`اضغط SPACE لتبديل الرؤية`,ariaToggleCellValue:`اضغط SPACE لتبديل قيمة الخلية`,ariaUnchecked:`غير محدد`,ariaVisible:`مرئي`,ariaSearchFilterValues:`قيمة فلترة البحث`,ariaPageSizeSelectorLabel:`حجم الصفحة`,ariaSkeletonCellLoadingFailed:`فشل تحميل الصف`,ariaSkeletonCellLoading:`جاري تحميل بيانات الصف`,ariaDeferSkeletonCellLoading:`الخلية قيد التحميل`,ariaPendingChange:`التغيير قيد الانتظار`,ariaRowGroupDropZonePanelLabel:`مجموعات الصفوف`,ariaValuesDropZonePanelLabel:`القيم`,ariaPivotDropZonePanelLabel:`تسميات الأعمدة`,ariaDropZoneColumnComponentDescription:`اضغط على DELETE للإزالة`,ariaDropZoneColumnValueItemDescription:`اضغط على ENTER لتغيير نوع التجميع`,ariaDropZoneColumnGroupItemDescription:`اضغط على ENTER للفرز`,ariaDropZoneColumnComponentAggFuncSeparator:` من `,ariaDropZoneColumnComponentSortAscending:`تصاعدي`,ariaDropZoneColumnComponentSortDescending:`تنازلي`,ariaDropZoneColumnComponentSortAbsoluteAscending:`تصاعدي مطلق`,ariaDropZoneColumnComponentSortAbsoluteDescending:`تنازلي مطلق`,ariaLabelDialog:`حوار`,ariaLabelColumnMenu:`قائمة الأعمدة`,ariaLabelColumnFilter:`تصفية العمود`,ariaLabelSelectField:`اختيار الحقل`,ariaValidationErrorPrefix:`تحقق من صحة محرر الخلية`,ariaLabelLoadingContextMenu:`تحميل قائمة السياق`,ariaLabelRichSelectField:`حقل اختيار متقدم`,ariaLabelRichSelectToggleSelection:`اضغط SPACE لتغيير التحديد`,ariaLabelRichSelectDeselectAllItems:`اضغط DELETE لإلغاء تحديد كل العناصر`,ariaLabelRichSelectDeleteSelection:`اضغط DELETE لإلغاء تحديد العنصر`,ariaLabelTooltip:`تلميح`,ariaLabelContextMenu:`قائمة السياق`,ariaLabelSubMenu:`القائمة الفرعية`,ariaLabelAggregationFunction:`دالة التجميع`,ariaLabelAdvancedFilterAutocomplete:`الإكمال التلقائي للفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderAddField:`إضافة حقل منشئ الفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderColumnSelectField:`حقل اختيار الأعمدة في منشئ الفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderOptionSelectField:`حقل اختيار الخيارات في منشئ الفلاتر المتقدمة`,ariaLabelAdvancedFilterBuilderJoinSelectField:`حقل اختيار مشغل الربط في منشئ الفلاتر المتقدمة`,ariaColumnPanelList:`قائمة الأعمدة`,ariaFilterPanelList:`قائمة المرشحات`,ariaLabelAddFilterField:`إضافة حقل الفلتر`,ariaLabelFilterCardDelete:`حذف الفلتر`,ariaLabelFilterCardHasEdits:`يوجد تعديلات`,thousandSeparator:`،`,decimalSeparator:`.`,true:`صح`,false:`خطأ`,invalidDate:`تاريخ غير صالح`,invalidNumber:`رقم غير صالح`,january:`يناير`,february:`فبراير`,march:`مارس`,april:`أبريل`,may:`مايو`,june:`يونيو`,july:`يوليو`,august:`أغسطس`,september:`سبتمبر`,october:`أكتوبر`,november:`نوفمبر`,december:`ديسمبر`,year:`سنة`,quarter:`ربع`,month:`شهر`,day:`يوم`,hour:`ساعة`,minute:`دقيقة`,second:`ثانية`,timeFormatSlashesDDMMYYYY:`يوم/شهر/سنة`,timeFormatSlashesMMDDYYYY:`شهر/يوم/سنة`,timeFormatSlashesDDMMYY:`يوم/شهر/سنة`,timeFormatSlashesMMDDYY:`شهر/يوم/سنة`,timeFormatDotsDDMYY:`يوم.شهر.سنة`,timeFormatDotsMDDYY:`شهر.يوم.سنة`,timeFormatDashesYYYYMMDD:`سنة-شهر-يوم`,timeFormatSpacesDDMMMMYYYY:`يوم شهر سنة`,timeFormatHHMMSS:`ساعة:دقيقة:ثانية`,timeFormatHHMMSSAmPm:`ساعة:دقيقة:ثانية ص/م`};exports.DATA_TABLE_LOCALE_EG=e;
|
package/dist/locale/ar-EG.d.cts
CHANGED
package/dist/locale/ar-EG.d.ts
CHANGED
package/dist/locale/ar-EG.js
CHANGED