@genesislcap/grid-pro 15.8.4-alpha-f891d32.0 → 15.9.1
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/custom-elements.json +17 -287
- package/dist/dts/datasource/base.types.d.ts +0 -4
- package/dist/dts/datasource/base.types.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.types.d.ts +0 -8
- package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.datasource.d.ts +27 -14
- package/dist/dts/datasource/server-side.datasource.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-base.d.ts +0 -9
- package/dist/dts/datasource/server-side.resource-base.d.ts.map +1 -1
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts +9 -9
- package/dist/dts/datasource/server-side.resource-reqrep.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.styles.d.ts +20 -0
- package/dist/dts/grid-pro.styles.d.ts.map +1 -1
- package/dist/esm/datasource/server-side.datasource.js +40 -15
- package/dist/esm/datasource/server-side.resource-base.js +1 -24
- package/dist/esm/datasource/server-side.resource-reqrep.js +25 -102
- package/dist/esm/grid-pro.js +1 -3
- package/dist/esm/grid-pro.styles.js +30 -0
- package/dist/grid-pro.api.json +27 -103
- package/dist/grid-pro.d.ts +48 -25
- package/package.json +14 -14
|
@@ -1450,18 +1450,33 @@
|
|
|
1450
1450
|
"kind": "javascript-module",
|
|
1451
1451
|
"path": "src/grid-pro.styles.ts",
|
|
1452
1452
|
"declarations": [
|
|
1453
|
+
{
|
|
1454
|
+
"kind": "variable",
|
|
1455
|
+
"name": "agDragGhostShadowDomStyles",
|
|
1456
|
+
"default": "css`\n .ag-styled-root:has(> .ag-dnd-ghost) {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n width: 0;\n height: 0;\n }\n`",
|
|
1457
|
+
"description": "Workaround for an AG Grid (v36, still present in v36.1.0) drag-ghost positioning bug in\nshadow DOM. The row-drag \"N rows\" ghost is appended to the grid's containing shadow root\n(AG's \\`_getPageBody\\` finds no \\`<body>\\` there) inside \\`.ag-styled-root\\` wrappers that are\n\\`display: contents\\`, so the ghost's positioning formula\n(\\`clientY - offsetParentRect.top - height / 2\\`) resolves against whatever ancestor of the\nshadow host happens to be its containing block. Whenever the element \\`offsetParent\\`\nreports differs from the real containing block (inline host fragments, scrolled panes,\napp-level transforms), the ghost renders at a constant offset from the cursor.\n\\`popupParent\\` does not help — the ghost code path never consults it.\n\nGiving the ghost's direct wrapper a real, positioned, zero-size box makes it both the\nreported \\`offsetParent\\` and the actual containing block, so AG's formula is exact —\nverified to match AG's healthy document-\\`body\\` code path pixel-for-pixel. Scoped with\n\\`:has(> .ag-dnd-ghost)\\` so the popup subsystem's \\`.ag-styled-root\\` wrappers keep their\nstock \\`display: contents\\`.",
|
|
1458
|
+
"privacy": "public"
|
|
1459
|
+
},
|
|
1453
1460
|
{
|
|
1454
1461
|
"kind": "variable",
|
|
1455
1462
|
"name": "foundationGridProStyles",
|
|
1456
1463
|
"type": {
|
|
1457
1464
|
"text": "ElementStyles"
|
|
1458
1465
|
},
|
|
1459
|
-
"default": "css`\n ${agExternalStockStyles}\n ${errorHandlerDialogStyles}\n :host {\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n --datasource-error-dialog-min-width: auto;\n --ag-status-bar-height: 32.5px;\n\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n :host([ds-disconnected]) {\n display: block;\n }\n\n :host([ds-disconnected])::part(grid) {\n cursor: not-allowed;\n opacity: 40%;\n pointer-events: none;\n }\n\n .ag-side-bar,\n .ag-menu {\n --ag-subheader-background-color: var(--ag-background-color);\n --ag-control-panel-background-color: var(--ag-background-color);\n }\n\n .ag-cell-inline-editing {\n height: inherit !important;\n }\n\n .hidden {\n display: none;\n }\n\n .error {\n border-color: var(--error-color) !important;\n }\n\n .ag-status-bar {\n height: var(--ag-status-bar-height);\n }\n\n .ag-status-name-value {\n padding-top: var(--ag-grid-size);\n padding-bottom: var(--ag-grid-size);\n }\n\n /* Custom styling for the unsort icon (sortNone) - only for sortable columns */\n .ag-header-cell.ag-header-cell-sortable .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n font-size: calc(var(--ag-icon-size, 12px) * 1.2);\n font-weight: bold;\n }\n\n .ag-header-cell.ag-header-cell-sortable:hover .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n transform: scale(1.1);\n transition: transform 0.2s ease;\n }\n`",
|
|
1466
|
+
"default": "css`\n ${agExternalStockStyles}\n ${errorHandlerDialogStyles}\n ${agDragGhostShadowDomStyles}\n :host {\n --datasource-error-background-color: var(--neutral-layer-4);\n --datasource-error-background-opacity: 0.5;\n --datasource-error-dialog-max-width: 50%;\n --datasource-error-dialog-min-width: auto;\n --ag-status-bar-height: 32.5px;\n\n position: relative;\n width: 100%;\n height: 100%;\n }\n\n :host([ds-disconnected]) {\n display: block;\n }\n\n :host([ds-disconnected])::part(grid) {\n cursor: not-allowed;\n opacity: 40%;\n pointer-events: none;\n }\n\n .ag-side-bar,\n .ag-menu {\n --ag-subheader-background-color: var(--ag-background-color);\n --ag-control-panel-background-color: var(--ag-background-color);\n }\n\n .ag-cell-inline-editing {\n height: inherit !important;\n }\n\n .hidden {\n display: none;\n }\n\n .error {\n border-color: var(--error-color) !important;\n }\n\n .ag-status-bar {\n height: var(--ag-status-bar-height);\n }\n\n .ag-status-name-value {\n padding-top: var(--ag-grid-size);\n padding-bottom: var(--ag-grid-size);\n }\n\n /* Custom styling for the unsort icon (sortNone) - only for sortable columns */\n .ag-header-cell.ag-header-cell-sortable .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n font-size: calc(var(--ag-icon-size, 12px) * 1.2);\n font-weight: bold;\n }\n\n .ag-header-cell.ag-header-cell-sortable:hover .ag-icon-none {\n opacity: 100%;\n color: var(--rapid-ag-header-foreground-color, var(--ag-foreground-color, #fff));\n transform: scale(1.1);\n transition: transform 0.2s ease;\n }\n`",
|
|
1460
1467
|
"description": "The Grid Pro styles.",
|
|
1461
1468
|
"privacy": "public"
|
|
1462
1469
|
}
|
|
1463
1470
|
],
|
|
1464
1471
|
"exports": [
|
|
1472
|
+
{
|
|
1473
|
+
"kind": "js",
|
|
1474
|
+
"name": "agDragGhostShadowDomStyles",
|
|
1475
|
+
"declaration": {
|
|
1476
|
+
"name": "agDragGhostShadowDomStyles",
|
|
1477
|
+
"module": "src/grid-pro.styles.ts"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1465
1480
|
{
|
|
1466
1481
|
"kind": "js",
|
|
1467
1482
|
"name": "foundationGridProStyles",
|
|
@@ -11884,15 +11899,6 @@
|
|
|
11884
11899
|
"text": "Datasource"
|
|
11885
11900
|
}
|
|
11886
11901
|
},
|
|
11887
|
-
{
|
|
11888
|
-
"kind": "field",
|
|
11889
|
-
"name": "zeroBasedViewNumber",
|
|
11890
|
-
"type": {
|
|
11891
|
-
"text": "boolean"
|
|
11892
|
-
},
|
|
11893
|
-
"default": "false",
|
|
11894
|
-
"description": "The starting VIEW_NUMBER of the data to be fetched."
|
|
11895
|
-
},
|
|
11896
11902
|
{
|
|
11897
11903
|
"kind": "field",
|
|
11898
11904
|
"name": "liveUpdates",
|
|
@@ -11902,14 +11908,6 @@
|
|
|
11902
11908
|
"default": "false",
|
|
11903
11909
|
"description": "Enable live updates for the grid."
|
|
11904
11910
|
},
|
|
11905
|
-
{
|
|
11906
|
-
"kind": "field",
|
|
11907
|
-
"name": "pagingMode",
|
|
11908
|
-
"type": {
|
|
11909
|
-
"text": "PagingMode | undefined"
|
|
11910
|
-
},
|
|
11911
|
-
"description": "The paging mode to use for data fetching."
|
|
11912
|
-
},
|
|
11913
11911
|
{
|
|
11914
11912
|
"kind": "field",
|
|
11915
11913
|
"name": "request",
|
|
@@ -13246,15 +13244,6 @@
|
|
|
13246
13244
|
}
|
|
13247
13245
|
],
|
|
13248
13246
|
"attributes": [
|
|
13249
|
-
{
|
|
13250
|
-
"name": "zero-based-view-number",
|
|
13251
|
-
"type": {
|
|
13252
|
-
"text": "boolean"
|
|
13253
|
-
},
|
|
13254
|
-
"default": "false",
|
|
13255
|
-
"description": "The starting VIEW_NUMBER of the data to be fetched.",
|
|
13256
|
-
"fieldName": "zeroBasedViewNumber"
|
|
13257
|
-
},
|
|
13258
13247
|
{
|
|
13259
13248
|
"name": "live-updates",
|
|
13260
13249
|
"type": {
|
|
@@ -13264,14 +13253,6 @@
|
|
|
13264
13253
|
"description": "Enable live updates for the grid.",
|
|
13265
13254
|
"fieldName": "liveUpdates"
|
|
13266
13255
|
},
|
|
13267
|
-
{
|
|
13268
|
-
"name": "paging-mode",
|
|
13269
|
-
"type": {
|
|
13270
|
-
"text": "PagingMode | undefined"
|
|
13271
|
-
},
|
|
13272
|
-
"description": "The paging mode to use for data fetching.",
|
|
13273
|
-
"fieldName": "pagingMode"
|
|
13274
|
-
},
|
|
13275
13256
|
{
|
|
13276
13257
|
"name": "criteria",
|
|
13277
13258
|
"type": {
|
|
@@ -13673,30 +13654,6 @@
|
|
|
13673
13654
|
},
|
|
13674
13655
|
"privacy": "protected"
|
|
13675
13656
|
},
|
|
13676
|
-
{
|
|
13677
|
-
"kind": "field",
|
|
13678
|
-
"name": "zeroBasedViewNumber",
|
|
13679
|
-
"type": {
|
|
13680
|
-
"text": "boolean"
|
|
13681
|
-
},
|
|
13682
|
-
"privacy": "protected"
|
|
13683
|
-
},
|
|
13684
|
-
{
|
|
13685
|
-
"kind": "field",
|
|
13686
|
-
"name": "pagingMode",
|
|
13687
|
-
"type": {
|
|
13688
|
-
"text": "PagingMode | undefined | undefined"
|
|
13689
|
-
},
|
|
13690
|
-
"privacy": "protected"
|
|
13691
|
-
},
|
|
13692
|
-
{
|
|
13693
|
-
"kind": "field",
|
|
13694
|
-
"name": "criteriaOnlyRequest",
|
|
13695
|
-
"type": {
|
|
13696
|
-
"text": "boolean | undefined"
|
|
13697
|
-
},
|
|
13698
|
-
"privacy": "protected"
|
|
13699
|
-
},
|
|
13700
13657
|
{
|
|
13701
13658
|
"kind": "field",
|
|
13702
13659
|
"name": "sourceRef",
|
|
@@ -14036,15 +13993,6 @@
|
|
|
14036
13993
|
}
|
|
14037
13994
|
]
|
|
14038
13995
|
},
|
|
14039
|
-
{
|
|
14040
|
-
"kind": "field",
|
|
14041
|
-
"name": "isNotFirstViewNumber",
|
|
14042
|
-
"type": {
|
|
14043
|
-
"text": "boolean"
|
|
14044
|
-
},
|
|
14045
|
-
"privacy": "protected",
|
|
14046
|
-
"readonly": true
|
|
14047
|
-
},
|
|
14048
13996
|
{
|
|
14049
13997
|
"kind": "method",
|
|
14050
13998
|
"name": "completeEmptyResult",
|
|
@@ -14108,17 +14056,6 @@
|
|
|
14108
14056
|
"text": "void"
|
|
14109
14057
|
}
|
|
14110
14058
|
}
|
|
14111
|
-
},
|
|
14112
|
-
{
|
|
14113
|
-
"kind": "method",
|
|
14114
|
-
"name": "getEffectivePagingMode",
|
|
14115
|
-
"privacy": "protected",
|
|
14116
|
-
"return": {
|
|
14117
|
-
"type": {
|
|
14118
|
-
"text": "PagingMode"
|
|
14119
|
-
}
|
|
14120
|
-
},
|
|
14121
|
-
"description": "Determines the effective paging mode based on criteriaOnlyRequest availability and user settings"
|
|
14122
14059
|
}
|
|
14123
14060
|
]
|
|
14124
14061
|
}
|
|
@@ -14434,42 +14371,6 @@
|
|
|
14434
14371
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14435
14372
|
}
|
|
14436
14373
|
},
|
|
14437
|
-
{
|
|
14438
|
-
"kind": "field",
|
|
14439
|
-
"name": "zeroBasedViewNumber",
|
|
14440
|
-
"type": {
|
|
14441
|
-
"text": "boolean"
|
|
14442
|
-
},
|
|
14443
|
-
"privacy": "protected",
|
|
14444
|
-
"inheritedFrom": {
|
|
14445
|
-
"name": "BaseServerSideDatasource",
|
|
14446
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14447
|
-
}
|
|
14448
|
-
},
|
|
14449
|
-
{
|
|
14450
|
-
"kind": "field",
|
|
14451
|
-
"name": "pagingMode",
|
|
14452
|
-
"type": {
|
|
14453
|
-
"text": "PagingMode | undefined | undefined"
|
|
14454
|
-
},
|
|
14455
|
-
"privacy": "protected",
|
|
14456
|
-
"inheritedFrom": {
|
|
14457
|
-
"name": "BaseServerSideDatasource",
|
|
14458
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14459
|
-
}
|
|
14460
|
-
},
|
|
14461
|
-
{
|
|
14462
|
-
"kind": "field",
|
|
14463
|
-
"name": "criteriaOnlyRequest",
|
|
14464
|
-
"type": {
|
|
14465
|
-
"text": "boolean | undefined"
|
|
14466
|
-
},
|
|
14467
|
-
"privacy": "protected",
|
|
14468
|
-
"inheritedFrom": {
|
|
14469
|
-
"name": "BaseServerSideDatasource",
|
|
14470
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14471
|
-
}
|
|
14472
|
-
},
|
|
14473
14374
|
{
|
|
14474
14375
|
"kind": "field",
|
|
14475
14376
|
"name": "sourceRef",
|
|
@@ -14827,19 +14728,6 @@
|
|
|
14827
14728
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14828
14729
|
}
|
|
14829
14730
|
},
|
|
14830
|
-
{
|
|
14831
|
-
"kind": "field",
|
|
14832
|
-
"name": "isNotFirstViewNumber",
|
|
14833
|
-
"type": {
|
|
14834
|
-
"text": "boolean"
|
|
14835
|
-
},
|
|
14836
|
-
"privacy": "protected",
|
|
14837
|
-
"readonly": true,
|
|
14838
|
-
"inheritedFrom": {
|
|
14839
|
-
"name": "BaseServerSideDatasource",
|
|
14840
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14841
|
-
}
|
|
14842
|
-
},
|
|
14843
14731
|
{
|
|
14844
14732
|
"kind": "method",
|
|
14845
14733
|
"name": "completeEmptyResult",
|
|
@@ -14919,21 +14807,6 @@
|
|
|
14919
14807
|
"name": "BaseServerSideDatasource",
|
|
14920
14808
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
14921
14809
|
}
|
|
14922
|
-
},
|
|
14923
|
-
{
|
|
14924
|
-
"kind": "method",
|
|
14925
|
-
"name": "getEffectivePagingMode",
|
|
14926
|
-
"privacy": "protected",
|
|
14927
|
-
"return": {
|
|
14928
|
-
"type": {
|
|
14929
|
-
"text": "PagingMode"
|
|
14930
|
-
}
|
|
14931
|
-
},
|
|
14932
|
-
"description": "Determines the effective paging mode based on criteriaOnlyRequest availability and user settings",
|
|
14933
|
-
"inheritedFrom": {
|
|
14934
|
-
"name": "BaseServerSideDatasource",
|
|
14935
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
14936
|
-
}
|
|
14937
14810
|
}
|
|
14938
14811
|
],
|
|
14939
14812
|
"superclass": {
|
|
@@ -15059,15 +14932,6 @@
|
|
|
15059
14932
|
"privacy": "private",
|
|
15060
14933
|
"default": "null"
|
|
15061
14934
|
},
|
|
15062
|
-
{
|
|
15063
|
-
"kind": "field",
|
|
15064
|
-
"name": "currentNextOffset",
|
|
15065
|
-
"type": {
|
|
15066
|
-
"text": "number"
|
|
15067
|
-
},
|
|
15068
|
-
"privacy": "private",
|
|
15069
|
-
"default": "0"
|
|
15070
|
-
},
|
|
15071
14935
|
{
|
|
15072
14936
|
"kind": "method",
|
|
15073
14937
|
"name": "getRows",
|
|
@@ -15089,62 +14953,6 @@
|
|
|
15089
14953
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15090
14954
|
}
|
|
15091
14955
|
},
|
|
15092
|
-
{
|
|
15093
|
-
"kind": "method",
|
|
15094
|
-
"name": "advancePagingPosition",
|
|
15095
|
-
"privacy": "private",
|
|
15096
|
-
"return": {
|
|
15097
|
-
"type": {
|
|
15098
|
-
"text": "void"
|
|
15099
|
-
}
|
|
15100
|
-
},
|
|
15101
|
-
"parameters": [
|
|
15102
|
-
{
|
|
15103
|
-
"name": "params",
|
|
15104
|
-
"type": {
|
|
15105
|
-
"text": "IServerSideGetRowsParams"
|
|
15106
|
-
}
|
|
15107
|
-
},
|
|
15108
|
-
{
|
|
15109
|
-
"name": "effectivePagingMode",
|
|
15110
|
-
"type": {
|
|
15111
|
-
"text": "PagingMode"
|
|
15112
|
-
}
|
|
15113
|
-
}
|
|
15114
|
-
],
|
|
15115
|
-
"description": "Advance the view/offset position based on paging mode"
|
|
15116
|
-
},
|
|
15117
|
-
{
|
|
15118
|
-
"kind": "method",
|
|
15119
|
-
"name": "determineIsLastView",
|
|
15120
|
-
"privacy": "private",
|
|
15121
|
-
"return": {
|
|
15122
|
-
"type": {
|
|
15123
|
-
"text": "Promise<boolean>"
|
|
15124
|
-
}
|
|
15125
|
-
},
|
|
15126
|
-
"parameters": [
|
|
15127
|
-
{
|
|
15128
|
-
"name": "requestResult",
|
|
15129
|
-
"type": {
|
|
15130
|
-
"text": "RequestServerResult"
|
|
15131
|
-
}
|
|
15132
|
-
},
|
|
15133
|
-
{
|
|
15134
|
-
"name": "requestParams",
|
|
15135
|
-
"type": {
|
|
15136
|
-
"text": "RequestParams"
|
|
15137
|
-
}
|
|
15138
|
-
},
|
|
15139
|
-
{
|
|
15140
|
-
"name": "effectivePagingMode",
|
|
15141
|
-
"type": {
|
|
15142
|
-
"text": "PagingMode"
|
|
15143
|
-
}
|
|
15144
|
-
}
|
|
15145
|
-
],
|
|
15146
|
-
"description": "Determine if this is the last view/page"
|
|
15147
|
-
},
|
|
15148
14956
|
{
|
|
15149
14957
|
"kind": "method",
|
|
15150
14958
|
"name": "schedulePollingStream",
|
|
@@ -15180,12 +14988,6 @@
|
|
|
15180
14988
|
"type": {
|
|
15181
14989
|
"text": "RequestServerResult"
|
|
15182
14990
|
}
|
|
15183
|
-
},
|
|
15184
|
-
{
|
|
15185
|
-
"name": "isLastView",
|
|
15186
|
-
"type": {
|
|
15187
|
-
"text": "boolean"
|
|
15188
|
-
}
|
|
15189
14991
|
}
|
|
15190
14992
|
]
|
|
15191
14993
|
},
|
|
@@ -15315,15 +15117,7 @@
|
|
|
15315
15117
|
"type": {
|
|
15316
15118
|
"text": "any"
|
|
15317
15119
|
}
|
|
15318
|
-
}
|
|
15319
|
-
"parameters": [
|
|
15320
|
-
{
|
|
15321
|
-
"name": "effectivePagingMode",
|
|
15322
|
-
"type": {
|
|
15323
|
-
"text": "PagingMode"
|
|
15324
|
-
}
|
|
15325
|
-
}
|
|
15326
|
-
]
|
|
15120
|
+
}
|
|
15327
15121
|
},
|
|
15328
15122
|
{
|
|
15329
15123
|
"kind": "field",
|
|
@@ -15499,42 +15293,6 @@
|
|
|
15499
15293
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15500
15294
|
}
|
|
15501
15295
|
},
|
|
15502
|
-
{
|
|
15503
|
-
"kind": "field",
|
|
15504
|
-
"name": "zeroBasedViewNumber",
|
|
15505
|
-
"type": {
|
|
15506
|
-
"text": "boolean"
|
|
15507
|
-
},
|
|
15508
|
-
"privacy": "protected",
|
|
15509
|
-
"inheritedFrom": {
|
|
15510
|
-
"name": "BaseServerSideDatasource",
|
|
15511
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15512
|
-
}
|
|
15513
|
-
},
|
|
15514
|
-
{
|
|
15515
|
-
"kind": "field",
|
|
15516
|
-
"name": "pagingMode",
|
|
15517
|
-
"type": {
|
|
15518
|
-
"text": "PagingMode | undefined | undefined"
|
|
15519
|
-
},
|
|
15520
|
-
"privacy": "protected",
|
|
15521
|
-
"inheritedFrom": {
|
|
15522
|
-
"name": "BaseServerSideDatasource",
|
|
15523
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15524
|
-
}
|
|
15525
|
-
},
|
|
15526
|
-
{
|
|
15527
|
-
"kind": "field",
|
|
15528
|
-
"name": "criteriaOnlyRequest",
|
|
15529
|
-
"type": {
|
|
15530
|
-
"text": "boolean | undefined"
|
|
15531
|
-
},
|
|
15532
|
-
"privacy": "protected",
|
|
15533
|
-
"inheritedFrom": {
|
|
15534
|
-
"name": "BaseServerSideDatasource",
|
|
15535
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15536
|
-
}
|
|
15537
|
-
},
|
|
15538
15296
|
{
|
|
15539
15297
|
"kind": "field",
|
|
15540
15298
|
"name": "sourceRef",
|
|
@@ -15875,19 +15633,6 @@
|
|
|
15875
15633
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15876
15634
|
}
|
|
15877
15635
|
},
|
|
15878
|
-
{
|
|
15879
|
-
"kind": "field",
|
|
15880
|
-
"name": "isNotFirstViewNumber",
|
|
15881
|
-
"type": {
|
|
15882
|
-
"text": "boolean"
|
|
15883
|
-
},
|
|
15884
|
-
"privacy": "protected",
|
|
15885
|
-
"readonly": true,
|
|
15886
|
-
"inheritedFrom": {
|
|
15887
|
-
"name": "BaseServerSideDatasource",
|
|
15888
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15889
|
-
}
|
|
15890
|
-
},
|
|
15891
15636
|
{
|
|
15892
15637
|
"kind": "method",
|
|
15893
15638
|
"name": "completeEmptyResult",
|
|
@@ -15967,21 +15712,6 @@
|
|
|
15967
15712
|
"name": "BaseServerSideDatasource",
|
|
15968
15713
|
"module": "src/datasource/server-side.resource-base.ts"
|
|
15969
15714
|
}
|
|
15970
|
-
},
|
|
15971
|
-
{
|
|
15972
|
-
"kind": "method",
|
|
15973
|
-
"name": "getEffectivePagingMode",
|
|
15974
|
-
"privacy": "protected",
|
|
15975
|
-
"return": {
|
|
15976
|
-
"type": {
|
|
15977
|
-
"text": "PagingMode"
|
|
15978
|
-
}
|
|
15979
|
-
},
|
|
15980
|
-
"description": "Determines the effective paging mode based on criteriaOnlyRequest availability and user settings",
|
|
15981
|
-
"inheritedFrom": {
|
|
15982
|
-
"name": "BaseServerSideDatasource",
|
|
15983
|
-
"module": "src/datasource/server-side.resource-base.ts"
|
|
15984
|
-
}
|
|
15985
15715
|
}
|
|
15986
15716
|
],
|
|
15987
15717
|
"superclass": {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SocketObservable, FilteredDataServerResult, MetadataDetail, RequestServerResult, DataserverParams, RequestParams, Datasource } from '@genesislcap/foundation-comms';
|
|
2
|
-
import { PagingMode } from './datasource.types';
|
|
3
2
|
/**
|
|
4
3
|
* Type definition for configuration options used for streams.
|
|
5
4
|
* @remarks
|
|
@@ -40,9 +39,6 @@ export type ServerSideDatasourceOptions = {
|
|
|
40
39
|
maxRows?: number;
|
|
41
40
|
maxView?: number;
|
|
42
41
|
rowId?: string;
|
|
43
|
-
zeroBasedViewNumber?: boolean;
|
|
44
|
-
pagingMode?: PagingMode | undefined;
|
|
45
|
-
criteriaOnlyRequest?: boolean;
|
|
46
42
|
usePolling?: boolean;
|
|
47
43
|
};
|
|
48
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,UAAU,EACX,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"base.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/base.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,UAAU,EACX,MAAM,+BAA+B,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,0BAA0B,CAAC,EAAE,CAC3B,cAAc,CAAC,EAAE,GAAG,KACjB,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACzD,uBAAuB,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,KAAK,OAAO,CAA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SAAS,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,8BAA8B,CAAC,CAAC"}
|
|
@@ -5,12 +5,4 @@
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export type DatasourceType = 'client' | 'server';
|
|
8
|
-
/**
|
|
9
|
-
* Available paging modes for server-side datasources
|
|
10
|
-
* @remarks - This type defines the paging approach used for server-side data fetching
|
|
11
|
-
* - 'viewBased': Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
12
|
-
* - 'offsetBased': Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
export type PagingMode = 'viewBased' | 'offsetBased';
|
|
16
8
|
//# sourceMappingURL=datasource.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Datasource, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
2
2
|
import { JSONSerializer } from '@genesislcap/foundation-utils';
|
|
3
3
|
import { GridProBaseDatasource } from './base.datasource';
|
|
4
|
-
import { PagingMode } from './datasource.types';
|
|
5
4
|
declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
6
5
|
#_container: import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
7
6
|
#_latestTokenCode: string;
|
|
@@ -373,6 +372,10 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
373
372
|
* A Genesis Datasource element, for server-side | SSRM-compatible data fetching and used exclusively by the GridPro element.
|
|
374
373
|
* @remarks Only supports Server-Side Row Model. Requires `@ag-grid-enterprise/server-side-row-model` setup and valid AG Grid Enterprise license.
|
|
375
374
|
*
|
|
375
|
+
* **Supported resources**: DATASERVER resources, and REQUEST_SERVER (req/rep) resources that declare
|
|
376
|
+
* `criteriaOnlyRequest`. A req/rep resource without it reports a `resource-type` error and no
|
|
377
|
+
* datasource is attached to the grid.
|
|
378
|
+
*
|
|
376
379
|
* **Custom Sort Indicators**: This datasource automatically applies custom sort indicators that are always visible (instead of only on hover).
|
|
377
380
|
* Sortable columns will show a subtle sort icon even when not sorted, and active sort indicators will be more prominent.
|
|
378
381
|
* The custom styling uses AG Grid's native icon font for consistency with the grid theme.
|
|
@@ -402,24 +405,11 @@ declare const GridProServerSideDatasource_base: (new (...args: any[]) => {
|
|
|
402
405
|
export declare class GridProServerSideDatasource extends GridProServerSideDatasource_base {
|
|
403
406
|
serializer: JSONSerializer;
|
|
404
407
|
pollingDatasource: Datasource;
|
|
405
|
-
/**
|
|
406
|
-
* The starting VIEW_NUMBER of the data to be fetched.
|
|
407
|
-
* @remarks The VIEW_NUMBER isincremented by the grid as the user scrolls or changes pages.
|
|
408
|
-
*/
|
|
409
|
-
zeroBasedViewNumber: boolean;
|
|
410
408
|
/**
|
|
411
409
|
* Enable live updates for the grid.
|
|
412
410
|
* @remarks Only works with DATASERVER resources (StreamDatasource) right now.
|
|
413
411
|
*/
|
|
414
412
|
liveUpdates: boolean;
|
|
415
|
-
/**
|
|
416
|
-
* The paging mode to use for data fetching.
|
|
417
|
-
* @remarks
|
|
418
|
-
* - "viewBased": Uses VIEW_NUMBER and NEXT_VIEW (1 by 1 increment)
|
|
419
|
-
* - "offsetBased": Uses OFFSET and NEXT_OFFSET (based on maxRows increment)
|
|
420
|
-
* - undefined: Auto-determines based on criteriaOnlyRequest availability
|
|
421
|
-
*/
|
|
422
|
-
pagingMode: PagingMode | undefined;
|
|
423
413
|
request: any;
|
|
424
414
|
private indexes;
|
|
425
415
|
private ssrmDatasource;
|
|
@@ -450,6 +440,29 @@ export declare class GridProServerSideDatasource extends GridProServerSideDataso
|
|
|
450
440
|
destroy(): Promise<void>;
|
|
451
441
|
restart(): Promise<void>;
|
|
452
442
|
private clearRowData;
|
|
443
|
+
/**
|
|
444
|
+
* Checks whether the resolved resource can be served through the Server-Side Row Model.
|
|
445
|
+
* @remarks
|
|
446
|
+
* REQUEST_SERVER (req/rep) resources are only supported when the request reply declares
|
|
447
|
+
* `criteriaOnlyRequest` (`CRITERIA_ONLY_REQUEST` in its metadata). SSRM drives a req/rep
|
|
448
|
+
* resource purely through `DETAILS` - `CRITERIA_MATCH` for the grid filter model, `ORDER_BY`
|
|
449
|
+
* for the sort model and `OFFSET` for paging - and sends an empty `REQUEST`
|
|
450
|
+
* payload. A request reply without `criteriaOnlyRequest` expects its inputs in `REQUEST`
|
|
451
|
+
* instead, so filtering, sorting and paging would silently do nothing.
|
|
452
|
+
*
|
|
453
|
+
* DATASERVER resources are always supported.
|
|
454
|
+
* @returns `true` when SSRM can be used, `false` after reporting a `resource-type` error.
|
|
455
|
+
* @internal
|
|
456
|
+
*/
|
|
457
|
+
private isSsrmSupportedForResource;
|
|
458
|
+
/**
|
|
459
|
+
* Leaves the grid with no server-side datasource, for a resource SSRM cannot serve.
|
|
460
|
+
* @remarks
|
|
461
|
+
* Clears any rows and hands the grid a `null` datasource, so AG Grid never calls `getRows()` for
|
|
462
|
+
* this resource.
|
|
463
|
+
* @internal
|
|
464
|
+
*/
|
|
465
|
+
private refuseServerSideDatasource;
|
|
453
466
|
private getResourceIndexes;
|
|
454
467
|
private createReqRepRequest;
|
|
455
468
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,iBAAiB,EAYlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAYvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"server-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.datasource.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,UAAU,EACV,iBAAiB,EAYlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAYvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;kBA8DhC,CAAA;;;;;;;;8BAmBgD,CAAC,cAAe,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAgB3E,CAAC;4IAGwC,CAAA;wFAKlB,CAAC;+IAIT,CAAC;2FAGV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwCqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBA+CvB,CAAC;;;;;;;;;;;;;6BA2BT,CAAC;8BACgB,CAAC;kBAGjB,CAAC;;oBAEK,CAAC;;sBAMW,CAAC;oBAGE,CAAC;;;;;;;;gDAgB3B,CAAC;;;;;;;;;;;;;;;;;;uBA2BsC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAgFU,CAAC;yBAI7C,CAAC;UACF,GAAG;WAGR,GADA;;gBACG,GAAG;;;;;;;WAec,GAAG;YACM,GACrC;;;;;;;;;;;oBA0CG,GAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6KkB,CA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;IAsEhC,OAAO,CAAC,yBAAyB;YAyCnB,sBAAsB;YA2DtB,eAAe;IAmBpB,gBAAgB,CAAC,WAAW,EAAE,GAAG,GAAG,GAAG;IAIvC,QAAQ;CAGlB"}
|
|
@@ -2,7 +2,6 @@ import { IServerSideDatasource, LoadSuccessParams, SetFilterModel, SortModelItem
|
|
|
2
2
|
import { Auth, Connect, MetadataDetail, DatasourceOptions } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { UUID } from '@genesislcap/foundation-utils';
|
|
4
4
|
import { ServerSideDatasourceOptions } from './base.types';
|
|
5
|
-
import { PagingMode } from './datasource.types';
|
|
6
5
|
/**
|
|
7
6
|
* Base class for server-side resource datasources used in Grid Pro SSRM implementations.
|
|
8
7
|
* Provides common logic for filtering, sorting, and infinite-scroll row counting.
|
|
@@ -25,9 +24,6 @@ export declare abstract class BaseServerSideDatasource implements IServerSideDat
|
|
|
25
24
|
protected resourceColDefs: MetadataDetail[];
|
|
26
25
|
protected maxRows: number;
|
|
27
26
|
protected maxView: number;
|
|
28
|
-
protected zeroBasedViewNumber: boolean;
|
|
29
|
-
protected pagingMode?: PagingMode | undefined;
|
|
30
|
-
protected criteriaOnlyRequest?: boolean;
|
|
31
27
|
sourceRef: string;
|
|
32
28
|
lastSuccessRowData: LoadSuccessParams;
|
|
33
29
|
/**
|
|
@@ -106,16 +102,11 @@ export declare abstract class BaseServerSideDatasource implements IServerSideDat
|
|
|
106
102
|
protected criteriaForDateModel(k: string, model: any): string | null;
|
|
107
103
|
protected getFiltersByType(filterType: string): string[];
|
|
108
104
|
protected getCorrectRowCount(params: IServerSideGetRowsParams<any, any>): any;
|
|
109
|
-
protected get isNotFirstViewNumber(): boolean;
|
|
110
105
|
/** Completes an SSRM request with zero rows and invokes `onNoDataAvailableFunc` on the first block only. @internal */
|
|
111
106
|
protected completeEmptyResult(params: IServerSideGetRowsParams): void;
|
|
112
107
|
/** Invokes `onNoDataAvailableFunc` when the first SSRM block has no rows. @internal */
|
|
113
108
|
protected notifyNoDataAvailableIfEmpty(params: IServerSideGetRowsParams, successRowData: LoadSuccessParams): void;
|
|
114
109
|
protected notifyNoDataAvailable(): void;
|
|
115
110
|
protected notifyDataAvailable(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Determines the effective paging mode based on criteriaOnlyRequest availability and user settings
|
|
118
|
-
*/
|
|
119
|
-
protected getEffectivePagingMode(): PagingMode;
|
|
120
111
|
}
|
|
121
112
|
//# sourceMappingURL=server-side.resource-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"server-side.resource-base.d.ts","sourceRoot":"","sources":["../../../src/datasource/server-side.resource-base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACjG,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAE3D;;;;;GAKG;AACH,8BAAsB,wBAAyB,YAAW,qBAAqB;IACvE,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IACrB,IAAI,EAAG,IAAI,CAAC;IAElB,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAa;IAEtC,sBAAsB,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,O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AS,CAAC,mBAAmB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAWrE,uFAAuF;IACvF,SAAS,CAAC,4BAA4B,CACpC,MAAM,EAAE,wBAAwB,EAChC,cAAc,EAAE,iBAAiB,GAChC,IAAI;IAWP,SAAS,CAAC,qBAAqB,IAAI,IAAI;IAIvC,SAAS,CAAC,mBAAmB,IAAI,IAAI;CAGtC"}
|
|
@@ -4,6 +4,15 @@ import { ServerSideDatasourceOptions } from './base.types';
|
|
|
4
4
|
import { BaseServerSideDatasource } from './server-side.resource-base';
|
|
5
5
|
/**
|
|
6
6
|
* The REQUEST_SERVER IServerSideDatasource implementation, used for SSRM (Server-Side Row Model) in the grid.
|
|
7
|
+
* @remarks
|
|
8
|
+
* Only request replies supporting criteria-only requests (`criteriaOnlyRequest`) can be served this
|
|
9
|
+
* way: every SSRM concern is expressed through `DETAILS` (`CRITERIA_MATCH` for the filter model,
|
|
10
|
+
* `ORDER_BY` for the sort model, `OFFSET` for paging) with an empty `REQUEST` payload.
|
|
11
|
+
* {@link @genesislcap/grid-pro#GridProServerSideDatasource} enforces this before constructing the
|
|
12
|
+
* datasource.
|
|
13
|
+
*
|
|
14
|
+
* Paging is therefore always offset-based - `criteriaOnlyRequest` guarantees `OFFSET` support, so
|
|
15
|
+
* there is no `VIEW_NUMBER` fallback to choose between.
|
|
7
16
|
* @beta
|
|
8
17
|
*/
|
|
9
18
|
export declare class ReqRepServerSideDatasource extends BaseServerSideDatasource implements IServerSideDatasource {
|
|
@@ -49,17 +58,8 @@ export declare class ReqRepServerSideDatasource extends BaseServerSideDatasource
|
|
|
49
58
|
*/
|
|
50
59
|
private debouncedCreateStream;
|
|
51
60
|
private discoveredTotalRowCount;
|
|
52
|
-
private currentNextOffset;
|
|
53
61
|
constructor(options: ServerSideDatasourceOptions);
|
|
54
62
|
getRows(params: IServerSideGetRowsParams): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Advance the view/offset position based on paging mode
|
|
57
|
-
*/
|
|
58
|
-
private advancePagingPosition;
|
|
59
|
-
/**
|
|
60
|
-
* Determine if this is the last view/page
|
|
61
|
-
*/
|
|
62
|
-
private determineIsLastView;
|
|
63
63
|
/**
|
|
64
64
|
* Schedules polling stream creation if enabled.
|
|
65
65
|
* @remarks
|