@genesislcap/grid-tabulator 15.92.0-HT-305.2 → 15.92.0-HT-305.3
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 +432 -321
- package/dist/dts/datasource/client-side.datasource.d.ts +34 -5
- package/dist/dts/datasource/client-side.datasource.d.ts.map +1 -1
- package/dist/esm/datasource/client-side.datasource.js +100 -14
- package/dist/grid-tabulator.api.json +63 -3
- package/dist/grid-tabulator.d.ts +34 -5
- package/package.json +11 -11
|
@@ -2942,280 +2942,6 @@
|
|
|
2942
2942
|
}
|
|
2943
2943
|
]
|
|
2944
2944
|
},
|
|
2945
|
-
{
|
|
2946
|
-
"kind": "javascript-module",
|
|
2947
|
-
"path": "src/column/column.ts",
|
|
2948
|
-
"declarations": [
|
|
2949
|
-
{
|
|
2950
|
-
"kind": "class",
|
|
2951
|
-
"description": "The GridTabulator Column element.",
|
|
2952
|
-
"name": "GridTabulatorColumn",
|
|
2953
|
-
"members": [
|
|
2954
|
-
{
|
|
2955
|
-
"kind": "field",
|
|
2956
|
-
"name": "slottedCell",
|
|
2957
|
-
"type": {
|
|
2958
|
-
"text": "HTMLElement[]"
|
|
2959
|
-
},
|
|
2960
|
-
"privacy": "public"
|
|
2961
|
-
},
|
|
2962
|
-
{
|
|
2963
|
-
"kind": "field",
|
|
2964
|
-
"name": "definition",
|
|
2965
|
-
"type": {
|
|
2966
|
-
"text": "Partial<ColumnDefinition>"
|
|
2967
|
-
},
|
|
2968
|
-
"default": "{}"
|
|
2969
|
-
},
|
|
2970
|
-
{
|
|
2971
|
-
"kind": "method",
|
|
2972
|
-
"name": "slottedCellChanged",
|
|
2973
|
-
"privacy": "public"
|
|
2974
|
-
},
|
|
2975
|
-
{
|
|
2976
|
-
"kind": "method",
|
|
2977
|
-
"name": "deepClone",
|
|
2978
|
-
"return": {
|
|
2979
|
-
"type": {
|
|
2980
|
-
"text": "Node"
|
|
2981
|
-
}
|
|
2982
|
-
},
|
|
2983
|
-
"inheritedFrom": {
|
|
2984
|
-
"name": "LifecycleMixin",
|
|
2985
|
-
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
2986
|
-
}
|
|
2987
|
-
},
|
|
2988
|
-
{
|
|
2989
|
-
"kind": "method",
|
|
2990
|
-
"name": "cloneNode",
|
|
2991
|
-
"return": {
|
|
2992
|
-
"type": {
|
|
2993
|
-
"text": "Node"
|
|
2994
|
-
}
|
|
2995
|
-
},
|
|
2996
|
-
"parameters": [
|
|
2997
|
-
{
|
|
2998
|
-
"name": "deep",
|
|
2999
|
-
"optional": true,
|
|
3000
|
-
"type": {
|
|
3001
|
-
"text": "boolean"
|
|
3002
|
-
}
|
|
3003
|
-
}
|
|
3004
|
-
],
|
|
3005
|
-
"inheritedFrom": {
|
|
3006
|
-
"name": "LifecycleMixin",
|
|
3007
|
-
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3008
|
-
}
|
|
3009
|
-
},
|
|
3010
|
-
{
|
|
3011
|
-
"kind": "field",
|
|
3012
|
-
"name": "shouldRunDisconnect",
|
|
3013
|
-
"return": {
|
|
3014
|
-
"type": {
|
|
3015
|
-
"text": ""
|
|
3016
|
-
}
|
|
3017
|
-
},
|
|
3018
|
-
"readonly": true,
|
|
3019
|
-
"inheritedFrom": {
|
|
3020
|
-
"name": "LifecycleMixin",
|
|
3021
|
-
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3022
|
-
}
|
|
3023
|
-
},
|
|
3024
|
-
{
|
|
3025
|
-
"kind": "field",
|
|
3026
|
-
"name": "shouldRunConnect",
|
|
3027
|
-
"return": {
|
|
3028
|
-
"type": {
|
|
3029
|
-
"text": ""
|
|
3030
|
-
}
|
|
3031
|
-
},
|
|
3032
|
-
"readonly": true,
|
|
3033
|
-
"inheritedFrom": {
|
|
3034
|
-
"name": "LifecycleMixin",
|
|
3035
|
-
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3036
|
-
}
|
|
3037
|
-
},
|
|
3038
|
-
{
|
|
3039
|
-
"kind": "method",
|
|
3040
|
-
"name": "#_blockLifecycleDueToTokenChange",
|
|
3041
|
-
"return": {
|
|
3042
|
-
"type": {
|
|
3043
|
-
"text": "boolean"
|
|
3044
|
-
}
|
|
3045
|
-
},
|
|
3046
|
-
"parameters": [
|
|
3047
|
-
{
|
|
3048
|
-
"name": "lifecycleType",
|
|
3049
|
-
"type": {
|
|
3050
|
-
"text": "Lifecycletype"
|
|
3051
|
-
}
|
|
3052
|
-
}
|
|
3053
|
-
],
|
|
3054
|
-
"inheritedFrom": {
|
|
3055
|
-
"name": "LifecycleMixin",
|
|
3056
|
-
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3057
|
-
}
|
|
3058
|
-
},
|
|
3059
|
-
{
|
|
3060
|
-
"kind": "field",
|
|
3061
|
-
"name": "_presentation",
|
|
3062
|
-
"type": {
|
|
3063
|
-
"text": "ComponentPresentation | null | undefined"
|
|
3064
|
-
},
|
|
3065
|
-
"privacy": "private",
|
|
3066
|
-
"default": "void 0",
|
|
3067
|
-
"inheritedFrom": {
|
|
3068
|
-
"name": "FoundationElement",
|
|
3069
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
3070
|
-
}
|
|
3071
|
-
},
|
|
3072
|
-
{
|
|
3073
|
-
"kind": "field",
|
|
3074
|
-
"name": "$presentation",
|
|
3075
|
-
"type": {
|
|
3076
|
-
"text": "ComponentPresentation | null"
|
|
3077
|
-
},
|
|
3078
|
-
"privacy": "public",
|
|
3079
|
-
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
3080
|
-
"inheritedFrom": {
|
|
3081
|
-
"name": "FoundationElement",
|
|
3082
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
3083
|
-
}
|
|
3084
|
-
},
|
|
3085
|
-
{
|
|
3086
|
-
"kind": "field",
|
|
3087
|
-
"name": "template",
|
|
3088
|
-
"type": {
|
|
3089
|
-
"text": "ElementViewTemplate | void | null"
|
|
3090
|
-
},
|
|
3091
|
-
"privacy": "public",
|
|
3092
|
-
"description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
|
|
3093
|
-
"inheritedFrom": {
|
|
3094
|
-
"name": "FoundationElement",
|
|
3095
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
3096
|
-
}
|
|
3097
|
-
},
|
|
3098
|
-
{
|
|
3099
|
-
"kind": "method",
|
|
3100
|
-
"name": "templateChanged",
|
|
3101
|
-
"privacy": "protected",
|
|
3102
|
-
"return": {
|
|
3103
|
-
"type": {
|
|
3104
|
-
"text": "void"
|
|
3105
|
-
}
|
|
3106
|
-
},
|
|
3107
|
-
"inheritedFrom": {
|
|
3108
|
-
"name": "FoundationElement",
|
|
3109
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
3110
|
-
}
|
|
3111
|
-
},
|
|
3112
|
-
{
|
|
3113
|
-
"kind": "field",
|
|
3114
|
-
"name": "styles",
|
|
3115
|
-
"type": {
|
|
3116
|
-
"text": "ElementStyles | void | null"
|
|
3117
|
-
},
|
|
3118
|
-
"privacy": "public",
|
|
3119
|
-
"description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
|
|
3120
|
-
"inheritedFrom": {
|
|
3121
|
-
"name": "FoundationElement",
|
|
3122
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
3123
|
-
}
|
|
3124
|
-
},
|
|
3125
|
-
{
|
|
3126
|
-
"kind": "method",
|
|
3127
|
-
"name": "stylesChanged",
|
|
3128
|
-
"privacy": "protected",
|
|
3129
|
-
"return": {
|
|
3130
|
-
"type": {
|
|
3131
|
-
"text": "void"
|
|
3132
|
-
}
|
|
3133
|
-
},
|
|
3134
|
-
"inheritedFrom": {
|
|
3135
|
-
"name": "FoundationElement",
|
|
3136
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
3137
|
-
}
|
|
3138
|
-
},
|
|
3139
|
-
{
|
|
3140
|
-
"kind": "method",
|
|
3141
|
-
"name": "compose",
|
|
3142
|
-
"privacy": "public",
|
|
3143
|
-
"static": true,
|
|
3144
|
-
"return": {
|
|
3145
|
-
"type": {
|
|
3146
|
-
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
3147
|
-
}
|
|
3148
|
-
},
|
|
3149
|
-
"parameters": [
|
|
3150
|
-
{
|
|
3151
|
-
"name": "this",
|
|
3152
|
-
"type": {
|
|
3153
|
-
"text": "K"
|
|
3154
|
-
}
|
|
3155
|
-
},
|
|
3156
|
-
{
|
|
3157
|
-
"name": "elementDefinition",
|
|
3158
|
-
"type": {
|
|
3159
|
-
"text": "T"
|
|
3160
|
-
},
|
|
3161
|
-
"description": "The definition of the element to create the registry\nfunction for."
|
|
3162
|
-
}
|
|
3163
|
-
],
|
|
3164
|
-
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
3165
|
-
"inheritedFrom": {
|
|
3166
|
-
"name": "FoundationElement",
|
|
3167
|
-
"module": "src/foundation-element/foundation-element.ts"
|
|
3168
|
-
}
|
|
3169
|
-
}
|
|
3170
|
-
],
|
|
3171
|
-
"mixins": [
|
|
3172
|
-
{
|
|
3173
|
-
"name": "LifecycleMixin",
|
|
3174
|
-
"package": "@genesislcap/foundation-utils"
|
|
3175
|
-
}
|
|
3176
|
-
],
|
|
3177
|
-
"superclass": {
|
|
3178
|
-
"name": "FoundationElement",
|
|
3179
|
-
"package": "@microsoft/fast-foundation"
|
|
3180
|
-
},
|
|
3181
|
-
"tagName": "grid-tabulator-column",
|
|
3182
|
-
"customElement": true
|
|
3183
|
-
}
|
|
3184
|
-
],
|
|
3185
|
-
"exports": [
|
|
3186
|
-
{
|
|
3187
|
-
"kind": "js",
|
|
3188
|
-
"name": "GridTabulatorColumn",
|
|
3189
|
-
"declaration": {
|
|
3190
|
-
"name": "GridTabulatorColumn",
|
|
3191
|
-
"module": "src/column/column.ts"
|
|
3192
|
-
}
|
|
3193
|
-
},
|
|
3194
|
-
{
|
|
3195
|
-
"kind": "custom-element-definition",
|
|
3196
|
-
"name": "grid-tabulator-column",
|
|
3197
|
-
"declaration": {
|
|
3198
|
-
"name": "GridTabulatorColumn",
|
|
3199
|
-
"module": "src/column/column.ts"
|
|
3200
|
-
}
|
|
3201
|
-
}
|
|
3202
|
-
]
|
|
3203
|
-
},
|
|
3204
|
-
{
|
|
3205
|
-
"kind": "javascript-module",
|
|
3206
|
-
"path": "src/column/index.ts",
|
|
3207
|
-
"declarations": [],
|
|
3208
|
-
"exports": [
|
|
3209
|
-
{
|
|
3210
|
-
"kind": "js",
|
|
3211
|
-
"name": "*",
|
|
3212
|
-
"declaration": {
|
|
3213
|
-
"name": "*",
|
|
3214
|
-
"package": "./column"
|
|
3215
|
-
}
|
|
3216
|
-
}
|
|
3217
|
-
]
|
|
3218
|
-
},
|
|
3219
2945
|
{
|
|
3220
2946
|
"kind": "javascript-module",
|
|
3221
2947
|
"path": "src/cell-formatters/action.formatter.ts",
|
|
@@ -3541,75 +3267,349 @@
|
|
|
3541
3267
|
},
|
|
3542
3268
|
"parameters": [
|
|
3543
3269
|
{
|
|
3544
|
-
"name": "cell",
|
|
3270
|
+
"name": "cell",
|
|
3271
|
+
"type": {
|
|
3272
|
+
"text": "any"
|
|
3273
|
+
},
|
|
3274
|
+
"description": "The cell component provided by Tabulator"
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"name": "formatterParams",
|
|
3278
|
+
"type": {
|
|
3279
|
+
"text": "SelectFormatterParams<T>"
|
|
3280
|
+
},
|
|
3281
|
+
"description": "Select formatter parameters"
|
|
3282
|
+
}
|
|
3283
|
+
],
|
|
3284
|
+
"description": "Formatter that displays a select component with options.\nReturns a wrapped div containing the select, similar to boolean.formatter.",
|
|
3285
|
+
"privacy": "public"
|
|
3286
|
+
}
|
|
3287
|
+
],
|
|
3288
|
+
"exports": [
|
|
3289
|
+
{
|
|
3290
|
+
"kind": "js",
|
|
3291
|
+
"name": "selectFormatter",
|
|
3292
|
+
"declaration": {
|
|
3293
|
+
"name": "selectFormatter",
|
|
3294
|
+
"module": "src/cell-formatters/select.formatter.ts"
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
]
|
|
3298
|
+
},
|
|
3299
|
+
{
|
|
3300
|
+
"kind": "javascript-module",
|
|
3301
|
+
"path": "src/cell-formatters/text.formatter.ts",
|
|
3302
|
+
"declarations": [
|
|
3303
|
+
{
|
|
3304
|
+
"kind": "function",
|
|
3305
|
+
"name": "textFormatter",
|
|
3306
|
+
"return": {
|
|
3307
|
+
"type": {
|
|
3308
|
+
"text": ""
|
|
3309
|
+
}
|
|
3310
|
+
},
|
|
3311
|
+
"parameters": [
|
|
3312
|
+
{
|
|
3313
|
+
"name": "cell",
|
|
3314
|
+
"type": {
|
|
3315
|
+
"text": "any"
|
|
3316
|
+
},
|
|
3317
|
+
"description": "The cell component provided by Tabulator"
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "formatterParams",
|
|
3321
|
+
"default": "{}",
|
|
3322
|
+
"type": {
|
|
3323
|
+
"text": "TextFormatterParams<T>"
|
|
3324
|
+
},
|
|
3325
|
+
"description": "Text formatter parameters"
|
|
3326
|
+
}
|
|
3327
|
+
],
|
|
3328
|
+
"description": "Text formatter for customized display of values.\nStyled to match grid-pro text renderer.",
|
|
3329
|
+
"privacy": "public"
|
|
3330
|
+
}
|
|
3331
|
+
],
|
|
3332
|
+
"exports": [
|
|
3333
|
+
{
|
|
3334
|
+
"kind": "js",
|
|
3335
|
+
"name": "textFormatter",
|
|
3336
|
+
"declaration": {
|
|
3337
|
+
"name": "textFormatter",
|
|
3338
|
+
"module": "src/cell-formatters/text.formatter.ts"
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
]
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"kind": "javascript-module",
|
|
3345
|
+
"path": "src/column/column.ts",
|
|
3346
|
+
"declarations": [
|
|
3347
|
+
{
|
|
3348
|
+
"kind": "class",
|
|
3349
|
+
"description": "The GridTabulator Column element.",
|
|
3350
|
+
"name": "GridTabulatorColumn",
|
|
3351
|
+
"members": [
|
|
3352
|
+
{
|
|
3353
|
+
"kind": "field",
|
|
3354
|
+
"name": "slottedCell",
|
|
3355
|
+
"type": {
|
|
3356
|
+
"text": "HTMLElement[]"
|
|
3357
|
+
},
|
|
3358
|
+
"privacy": "public"
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"kind": "field",
|
|
3362
|
+
"name": "definition",
|
|
3363
|
+
"type": {
|
|
3364
|
+
"text": "Partial<ColumnDefinition>"
|
|
3365
|
+
},
|
|
3366
|
+
"default": "{}"
|
|
3367
|
+
},
|
|
3368
|
+
{
|
|
3369
|
+
"kind": "method",
|
|
3370
|
+
"name": "slottedCellChanged",
|
|
3371
|
+
"privacy": "public"
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"kind": "method",
|
|
3375
|
+
"name": "deepClone",
|
|
3376
|
+
"return": {
|
|
3377
|
+
"type": {
|
|
3378
|
+
"text": "Node"
|
|
3379
|
+
}
|
|
3380
|
+
},
|
|
3381
|
+
"inheritedFrom": {
|
|
3382
|
+
"name": "LifecycleMixin",
|
|
3383
|
+
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3384
|
+
}
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
"kind": "method",
|
|
3388
|
+
"name": "cloneNode",
|
|
3389
|
+
"return": {
|
|
3390
|
+
"type": {
|
|
3391
|
+
"text": "Node"
|
|
3392
|
+
}
|
|
3393
|
+
},
|
|
3394
|
+
"parameters": [
|
|
3395
|
+
{
|
|
3396
|
+
"name": "deep",
|
|
3397
|
+
"optional": true,
|
|
3398
|
+
"type": {
|
|
3399
|
+
"text": "boolean"
|
|
3400
|
+
}
|
|
3401
|
+
}
|
|
3402
|
+
],
|
|
3403
|
+
"inheritedFrom": {
|
|
3404
|
+
"name": "LifecycleMixin",
|
|
3405
|
+
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3406
|
+
}
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
"kind": "field",
|
|
3410
|
+
"name": "shouldRunDisconnect",
|
|
3411
|
+
"return": {
|
|
3412
|
+
"type": {
|
|
3413
|
+
"text": ""
|
|
3414
|
+
}
|
|
3415
|
+
},
|
|
3416
|
+
"readonly": true,
|
|
3417
|
+
"inheritedFrom": {
|
|
3418
|
+
"name": "LifecycleMixin",
|
|
3419
|
+
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3420
|
+
}
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
"kind": "field",
|
|
3424
|
+
"name": "shouldRunConnect",
|
|
3425
|
+
"return": {
|
|
3426
|
+
"type": {
|
|
3427
|
+
"text": ""
|
|
3428
|
+
}
|
|
3429
|
+
},
|
|
3430
|
+
"readonly": true,
|
|
3431
|
+
"inheritedFrom": {
|
|
3432
|
+
"name": "LifecycleMixin",
|
|
3433
|
+
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3434
|
+
}
|
|
3435
|
+
},
|
|
3436
|
+
{
|
|
3437
|
+
"kind": "method",
|
|
3438
|
+
"name": "#_blockLifecycleDueToTokenChange",
|
|
3439
|
+
"return": {
|
|
3440
|
+
"type": {
|
|
3441
|
+
"text": "boolean"
|
|
3442
|
+
}
|
|
3443
|
+
},
|
|
3444
|
+
"parameters": [
|
|
3445
|
+
{
|
|
3446
|
+
"name": "lifecycleType",
|
|
3447
|
+
"type": {
|
|
3448
|
+
"text": "Lifecycletype"
|
|
3449
|
+
}
|
|
3450
|
+
}
|
|
3451
|
+
],
|
|
3452
|
+
"inheritedFrom": {
|
|
3453
|
+
"name": "LifecycleMixin",
|
|
3454
|
+
"module": "src/mixins/lifecycle/lifecycle.ts"
|
|
3455
|
+
}
|
|
3456
|
+
},
|
|
3457
|
+
{
|
|
3458
|
+
"kind": "field",
|
|
3459
|
+
"name": "_presentation",
|
|
3460
|
+
"type": {
|
|
3461
|
+
"text": "ComponentPresentation | null | undefined"
|
|
3462
|
+
},
|
|
3463
|
+
"privacy": "private",
|
|
3464
|
+
"default": "void 0",
|
|
3465
|
+
"inheritedFrom": {
|
|
3466
|
+
"name": "FoundationElement",
|
|
3467
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
3468
|
+
}
|
|
3469
|
+
},
|
|
3470
|
+
{
|
|
3471
|
+
"kind": "field",
|
|
3472
|
+
"name": "$presentation",
|
|
3545
3473
|
"type": {
|
|
3546
|
-
"text": "
|
|
3474
|
+
"text": "ComponentPresentation | null"
|
|
3547
3475
|
},
|
|
3548
|
-
"
|
|
3476
|
+
"privacy": "public",
|
|
3477
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
3478
|
+
"inheritedFrom": {
|
|
3479
|
+
"name": "FoundationElement",
|
|
3480
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
3481
|
+
}
|
|
3549
3482
|
},
|
|
3550
3483
|
{
|
|
3551
|
-
"
|
|
3484
|
+
"kind": "field",
|
|
3485
|
+
"name": "template",
|
|
3552
3486
|
"type": {
|
|
3553
|
-
"text": "
|
|
3487
|
+
"text": "ElementViewTemplate | void | null"
|
|
3554
3488
|
},
|
|
3555
|
-
"
|
|
3489
|
+
"privacy": "public",
|
|
3490
|
+
"description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
|
|
3491
|
+
"inheritedFrom": {
|
|
3492
|
+
"name": "FoundationElement",
|
|
3493
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
3494
|
+
}
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
"kind": "method",
|
|
3498
|
+
"name": "templateChanged",
|
|
3499
|
+
"privacy": "protected",
|
|
3500
|
+
"return": {
|
|
3501
|
+
"type": {
|
|
3502
|
+
"text": "void"
|
|
3503
|
+
}
|
|
3504
|
+
},
|
|
3505
|
+
"inheritedFrom": {
|
|
3506
|
+
"name": "FoundationElement",
|
|
3507
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
"kind": "field",
|
|
3512
|
+
"name": "styles",
|
|
3513
|
+
"type": {
|
|
3514
|
+
"text": "ElementStyles | void | null"
|
|
3515
|
+
},
|
|
3516
|
+
"privacy": "public",
|
|
3517
|
+
"description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
|
|
3518
|
+
"inheritedFrom": {
|
|
3519
|
+
"name": "FoundationElement",
|
|
3520
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
3521
|
+
}
|
|
3522
|
+
},
|
|
3523
|
+
{
|
|
3524
|
+
"kind": "method",
|
|
3525
|
+
"name": "stylesChanged",
|
|
3526
|
+
"privacy": "protected",
|
|
3527
|
+
"return": {
|
|
3528
|
+
"type": {
|
|
3529
|
+
"text": "void"
|
|
3530
|
+
}
|
|
3531
|
+
},
|
|
3532
|
+
"inheritedFrom": {
|
|
3533
|
+
"name": "FoundationElement",
|
|
3534
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
3535
|
+
}
|
|
3536
|
+
},
|
|
3537
|
+
{
|
|
3538
|
+
"kind": "method",
|
|
3539
|
+
"name": "compose",
|
|
3540
|
+
"privacy": "public",
|
|
3541
|
+
"static": true,
|
|
3542
|
+
"return": {
|
|
3543
|
+
"type": {
|
|
3544
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
3545
|
+
}
|
|
3546
|
+
},
|
|
3547
|
+
"parameters": [
|
|
3548
|
+
{
|
|
3549
|
+
"name": "this",
|
|
3550
|
+
"type": {
|
|
3551
|
+
"text": "K"
|
|
3552
|
+
}
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "elementDefinition",
|
|
3556
|
+
"type": {
|
|
3557
|
+
"text": "T"
|
|
3558
|
+
},
|
|
3559
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
3560
|
+
}
|
|
3561
|
+
],
|
|
3562
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
3563
|
+
"inheritedFrom": {
|
|
3564
|
+
"name": "FoundationElement",
|
|
3565
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
3566
|
+
}
|
|
3556
3567
|
}
|
|
3557
3568
|
],
|
|
3558
|
-
"
|
|
3559
|
-
|
|
3569
|
+
"mixins": [
|
|
3570
|
+
{
|
|
3571
|
+
"name": "LifecycleMixin",
|
|
3572
|
+
"package": "@genesislcap/foundation-utils"
|
|
3573
|
+
}
|
|
3574
|
+
],
|
|
3575
|
+
"superclass": {
|
|
3576
|
+
"name": "FoundationElement",
|
|
3577
|
+
"package": "@microsoft/fast-foundation"
|
|
3578
|
+
},
|
|
3579
|
+
"tagName": "grid-tabulator-column",
|
|
3580
|
+
"customElement": true
|
|
3560
3581
|
}
|
|
3561
3582
|
],
|
|
3562
3583
|
"exports": [
|
|
3563
3584
|
{
|
|
3564
3585
|
"kind": "js",
|
|
3565
|
-
"name": "
|
|
3586
|
+
"name": "GridTabulatorColumn",
|
|
3566
3587
|
"declaration": {
|
|
3567
|
-
"name": "
|
|
3568
|
-
"module": "src/
|
|
3588
|
+
"name": "GridTabulatorColumn",
|
|
3589
|
+
"module": "src/column/column.ts"
|
|
3590
|
+
}
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"kind": "custom-element-definition",
|
|
3594
|
+
"name": "grid-tabulator-column",
|
|
3595
|
+
"declaration": {
|
|
3596
|
+
"name": "GridTabulatorColumn",
|
|
3597
|
+
"module": "src/column/column.ts"
|
|
3569
3598
|
}
|
|
3570
3599
|
}
|
|
3571
3600
|
]
|
|
3572
3601
|
},
|
|
3573
3602
|
{
|
|
3574
3603
|
"kind": "javascript-module",
|
|
3575
|
-
"path": "src/
|
|
3576
|
-
"declarations": [
|
|
3577
|
-
{
|
|
3578
|
-
"kind": "function",
|
|
3579
|
-
"name": "textFormatter",
|
|
3580
|
-
"return": {
|
|
3581
|
-
"type": {
|
|
3582
|
-
"text": ""
|
|
3583
|
-
}
|
|
3584
|
-
},
|
|
3585
|
-
"parameters": [
|
|
3586
|
-
{
|
|
3587
|
-
"name": "cell",
|
|
3588
|
-
"type": {
|
|
3589
|
-
"text": "any"
|
|
3590
|
-
},
|
|
3591
|
-
"description": "The cell component provided by Tabulator"
|
|
3592
|
-
},
|
|
3593
|
-
{
|
|
3594
|
-
"name": "formatterParams",
|
|
3595
|
-
"default": "{}",
|
|
3596
|
-
"type": {
|
|
3597
|
-
"text": "TextFormatterParams<T>"
|
|
3598
|
-
},
|
|
3599
|
-
"description": "Text formatter parameters"
|
|
3600
|
-
}
|
|
3601
|
-
],
|
|
3602
|
-
"description": "Text formatter for customized display of values.\nStyled to match grid-pro text renderer.",
|
|
3603
|
-
"privacy": "public"
|
|
3604
|
-
}
|
|
3605
|
-
],
|
|
3604
|
+
"path": "src/column/index.ts",
|
|
3605
|
+
"declarations": [],
|
|
3606
3606
|
"exports": [
|
|
3607
3607
|
{
|
|
3608
3608
|
"kind": "js",
|
|
3609
|
-
"name": "
|
|
3609
|
+
"name": "*",
|
|
3610
3610
|
"declaration": {
|
|
3611
|
-
"name": "
|
|
3612
|
-
"
|
|
3611
|
+
"name": "*",
|
|
3612
|
+
"package": "./column"
|
|
3613
3613
|
}
|
|
3614
3614
|
}
|
|
3615
3615
|
]
|
|
@@ -3840,6 +3840,46 @@
|
|
|
3840
3840
|
},
|
|
3841
3841
|
"description": "Whether the server holds more rows than were sent (`MORE_ROWS` of the first stream message), or `undefined`\nwhen unknown. It is true when `max-rows` capped the initial load."
|
|
3842
3842
|
},
|
|
3843
|
+
{
|
|
3844
|
+
"kind": "field",
|
|
3845
|
+
"name": "pendingPages",
|
|
3846
|
+
"type": {
|
|
3847
|
+
"text": "number"
|
|
3848
|
+
},
|
|
3849
|
+
"privacy": "private",
|
|
3850
|
+
"default": "0",
|
|
3851
|
+
"description": "MORE_ROWS requests sent by `loadMore()` that have not been answered yet."
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
"kind": "field",
|
|
3855
|
+
"name": "remainingPages",
|
|
3856
|
+
"type": {
|
|
3857
|
+
"text": "number"
|
|
3858
|
+
},
|
|
3859
|
+
"privacy": "private",
|
|
3860
|
+
"default": "0",
|
|
3861
|
+
"description": "Further pages a `loadMore()` call still has to request, one after each reply."
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
"kind": "field",
|
|
3865
|
+
"name": "applyingPage",
|
|
3866
|
+
"type": {
|
|
3867
|
+
"text": "boolean"
|
|
3868
|
+
},
|
|
3869
|
+
"privacy": "private",
|
|
3870
|
+
"default": "false",
|
|
3871
|
+
"description": "Set while the rows of a `loadMore()` reply are being applied."
|
|
3872
|
+
},
|
|
3873
|
+
{
|
|
3874
|
+
"kind": "field",
|
|
3875
|
+
"name": "pagingStalled",
|
|
3876
|
+
"type": {
|
|
3877
|
+
"text": "boolean"
|
|
3878
|
+
},
|
|
3879
|
+
"privacy": "private",
|
|
3880
|
+
"default": "false",
|
|
3881
|
+
"description": "Set when a `loadMore()` reply had no rows while the server still reported more. Some GSF versions answer\nevery later request the same way, so paging stops."
|
|
3882
|
+
},
|
|
3843
3883
|
{
|
|
3844
3884
|
"kind": "field",
|
|
3845
3885
|
"name": "dataSub",
|
|
@@ -4007,6 +4047,60 @@
|
|
|
4007
4047
|
],
|
|
4008
4048
|
"description": "Generate column definitions from the field metadata"
|
|
4009
4049
|
},
|
|
4050
|
+
{
|
|
4051
|
+
"kind": "method",
|
|
4052
|
+
"name": "loadMore",
|
|
4053
|
+
"return": {
|
|
4054
|
+
"type": {
|
|
4055
|
+
"text": ""
|
|
4056
|
+
}
|
|
4057
|
+
},
|
|
4058
|
+
"parameters": [
|
|
4059
|
+
{
|
|
4060
|
+
"name": "pages",
|
|
4061
|
+
"default": "1"
|
|
4062
|
+
}
|
|
4063
|
+
],
|
|
4064
|
+
"description": "Requests the next `pages` pages of rows from a data server subscription (`MORE_ROWS`), one after another.\nEach page holds up to `max-rows` rows; the server fixes that size when the subscription opens. The rows\narrive on the stream and reach the row mapper as a `'page'` operation, and `more-rows-changed` is emitted\nafter each reply. Requesting stops early when the server reports no more rows."
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
"kind": "field",
|
|
4068
|
+
"name": "isLoadingMore",
|
|
4069
|
+
"type": {
|
|
4070
|
+
"text": "boolean"
|
|
4071
|
+
},
|
|
4072
|
+
"description": "Whether a `loadMore()` call is still waiting for pages.",
|
|
4073
|
+
"readonly": true
|
|
4074
|
+
},
|
|
4075
|
+
{
|
|
4076
|
+
"kind": "method",
|
|
4077
|
+
"name": "requestPage",
|
|
4078
|
+
"privacy": "private",
|
|
4079
|
+
"return": {
|
|
4080
|
+
"type": {
|
|
4081
|
+
"text": "Promise<boolean>"
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
},
|
|
4085
|
+
{
|
|
4086
|
+
"kind": "method",
|
|
4087
|
+
"name": "isPageReply",
|
|
4088
|
+
"privacy": "private",
|
|
4089
|
+
"return": {
|
|
4090
|
+
"type": {
|
|
4091
|
+
"text": "boolean"
|
|
4092
|
+
}
|
|
4093
|
+
},
|
|
4094
|
+
"parameters": [
|
|
4095
|
+
{
|
|
4096
|
+
"name": "result",
|
|
4097
|
+
"type": {
|
|
4098
|
+
"text": "any"
|
|
4099
|
+
}
|
|
4100
|
+
}
|
|
4101
|
+
],
|
|
4102
|
+
"description": "Whether a raw stream message answers a `loadMore()` request. Live updates never carry `MORE_ROWS`."
|
|
4103
|
+
},
|
|
4010
4104
|
{
|
|
4011
4105
|
"kind": "method",
|
|
4012
4106
|
"name": "captureServerPaging",
|
|
@@ -4017,9 +4111,22 @@
|
|
|
4017
4111
|
"type": {
|
|
4018
4112
|
"text": "any"
|
|
4019
4113
|
}
|
|
4114
|
+
},
|
|
4115
|
+
{
|
|
4116
|
+
"name": "isPageReply",
|
|
4117
|
+
"default": "false"
|
|
4020
4118
|
}
|
|
4021
4119
|
],
|
|
4022
|
-
"description": "Keeps `ROWS_COUNT` and `MORE_ROWS` from a raw stream message. The result filter drops them
|
|
4120
|
+
"description": "Keeps `ROWS_COUNT` and `MORE_ROWS` from a raw stream message. The result filter drops them; the first\nmessage after the logon and every reply to `loadMore()` carry them."
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
"kind": "field",
|
|
4124
|
+
"name": "canLoadMore",
|
|
4125
|
+
"type": {
|
|
4126
|
+
"text": "boolean"
|
|
4127
|
+
},
|
|
4128
|
+
"description": "Whether `loadMore()` can fetch another page now.",
|
|
4129
|
+
"readonly": true
|
|
4023
4130
|
},
|
|
4024
4131
|
{
|
|
4025
4132
|
"kind": "method",
|
|
@@ -4037,6 +4144,10 @@
|
|
|
4037
4144
|
"type": {
|
|
4038
4145
|
"text": "boolean | undefined"
|
|
4039
4146
|
}
|
|
4147
|
+
},
|
|
4148
|
+
{
|
|
4149
|
+
"name": "force",
|
|
4150
|
+
"default": "false"
|
|
4040
4151
|
}
|
|
4041
4152
|
]
|
|
4042
4153
|
},
|
|
@@ -4433,7 +4544,7 @@
|
|
|
4433
4544
|
"name": "sizeChanged"
|
|
4434
4545
|
},
|
|
4435
4546
|
{
|
|
4436
|
-
"description": "Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset
|
|
4547
|
+
"description": "Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset, and after every reply to `loadMore()`. detail: `GridTabulatorMoreRowsEventDetail`",
|
|
4437
4548
|
"name": "more-rows-changed"
|
|
4438
4549
|
}
|
|
4439
4550
|
],
|
|
@@ -53,7 +53,7 @@ export interface GridTabulatorMoreRowsEventDetail {
|
|
|
53
53
|
* Kind of change a row data mapper is called with for a stream transaction.
|
|
54
54
|
* @alpha
|
|
55
55
|
*/
|
|
56
|
-
export type GridTabulatorRowDataMapperOperation = 'add' | 'update' | 'remove';
|
|
56
|
+
export type GridTabulatorRowDataMapperOperation = 'add' | 'update' | 'remove' | 'page';
|
|
57
57
|
declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
58
58
|
#_container: import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
|
|
59
59
|
#_latestTokenCode: string;
|
|
@@ -788,7 +788,7 @@ declare const GridTabulatorClientSideDatasource_base: (new (...args: any[]) => {
|
|
|
788
788
|
* @fires gridTabulator:error - Fired when a datasource error occurs. detail: `GridTabulatorErrorEventDetail`
|
|
789
789
|
* @fires dataInit - Fired when tabulator data is initialized
|
|
790
790
|
* @fires sizeChanged - Fired when layout size changes. detail: `GridTabulatorSizeChangedEventDetail`
|
|
791
|
-
* @fires more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset
|
|
791
|
+
* @fires more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset, and after every reply to `loadMore()`. detail: `GridTabulatorMoreRowsEventDetail`
|
|
792
792
|
*/
|
|
793
793
|
export declare class GridTabulatorClientSideDatasource extends GridTabulatorClientSideDatasource_base {
|
|
794
794
|
auth: Auth;
|
|
@@ -830,7 +830,8 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
|
|
|
830
830
|
* @remarks
|
|
831
831
|
* The mapper is called with all rows (one argument) when the grid data is set. For stream transactions it is
|
|
832
832
|
* called with the changed rows, the datasource's current rows keyed by row id, and the operation
|
|
833
|
-
* (`'add'`, `'update'` or `'remove'`).
|
|
833
|
+
* (`'add'`, `'update'` or `'remove'`). Rows that arrive in reply to `loadMore()` are passed as `'page'`
|
|
834
|
+
* instead of `'add'`, as they are existing rows rather than new ones.
|
|
834
835
|
*/
|
|
835
836
|
rowDataMapper: Function;
|
|
836
837
|
/**
|
|
@@ -843,6 +844,17 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
|
|
|
843
844
|
* when unknown. It is true when `max-rows` capped the initial load.
|
|
844
845
|
*/
|
|
845
846
|
moreRows: boolean | undefined;
|
|
847
|
+
/** MORE_ROWS requests sent by `loadMore()` that have not been answered yet. */
|
|
848
|
+
private pendingPages;
|
|
849
|
+
/** Further pages a `loadMore()` call still has to request, one after each reply. */
|
|
850
|
+
private remainingPages;
|
|
851
|
+
/** Set while the rows of a `loadMore()` reply are being applied. */
|
|
852
|
+
private applyingPage;
|
|
853
|
+
/**
|
|
854
|
+
* Set when a `loadMore()` reply had no rows while the server still reported more. Some GSF versions answer
|
|
855
|
+
* every later request the same way, so paging stops.
|
|
856
|
+
*/
|
|
857
|
+
private pagingStalled;
|
|
846
858
|
private dataSub;
|
|
847
859
|
private updateSub;
|
|
848
860
|
private connectionSub;
|
|
@@ -932,10 +944,27 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
|
|
|
932
944
|
*/
|
|
933
945
|
loadResourceData(withFullInit?: boolean): Promise<void>;
|
|
934
946
|
/**
|
|
935
|
-
*
|
|
936
|
-
* the
|
|
947
|
+
* Requests the next `pages` pages of rows from a data server subscription (`MORE_ROWS`), one after another.
|
|
948
|
+
* Each page holds up to `max-rows` rows; the server fixes that size when the subscription opens. The rows
|
|
949
|
+
* arrive on the stream and reach the row mapper as a `'page'` operation, and `more-rows-changed` is emitted
|
|
950
|
+
* after each reply. Requesting stops early when the server reports no more rows.
|
|
951
|
+
*
|
|
952
|
+
* @returns Whether a request was sent. Nothing is sent for a request server, while a load is in progress,
|
|
953
|
+
* when the server reported no more rows, or after paging stalled.
|
|
954
|
+
*/
|
|
955
|
+
loadMore(pages?: number): Promise<boolean>;
|
|
956
|
+
/** Whether a `loadMore()` call is still waiting for pages. */
|
|
957
|
+
get isLoadingMore(): boolean;
|
|
958
|
+
private requestPage;
|
|
959
|
+
/** Whether a raw stream message answers a `loadMore()` request. Live updates never carry `MORE_ROWS`. */
|
|
960
|
+
private isPageReply;
|
|
961
|
+
/**
|
|
962
|
+
* Keeps `ROWS_COUNT` and `MORE_ROWS` from a raw stream message. The result filter drops them; the first
|
|
963
|
+
* message after the logon and every reply to `loadMore()` carry them.
|
|
937
964
|
*/
|
|
938
965
|
private captureServerPaging;
|
|
966
|
+
/** Whether `loadMore()` can fetch another page now. */
|
|
967
|
+
get canLoadMore(): boolean;
|
|
939
968
|
private setServerPaging;
|
|
940
969
|
private handleSnapshot;
|
|
941
970
|
private datasourceOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/client-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,EAIV,gBAAgB,EAUjB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAS3C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAS,CAAC;AAOnC;;;GAGG;AACH,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG;IAC7C,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB;IAClB,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACxB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,mCAAmC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,uEAAuE;IACvE,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,qFAAqF;IACrF,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,MAAM,mCAAmC,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;;;;;;;;
|
|
1
|
+
{"version":3,"file":"client-side.datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/client-side.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,OAAO,EAEP,UAAU,EAIV,gBAAgB,EAUjB,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAS3C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;;GAGG;AACH,eAAO,MAAM,YAAY,SAAS,CAAC;AAOnC;;;GAGG;AACH,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,GAAG;IAC7C,wBAAwB;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,kBAAkB;IAClB,GAAG,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACxB,qBAAqB;IACrB,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,mCAAmC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,uEAAuE;IACvE,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,qFAAqF;IACrF,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,MAAM,mCAAmC,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;;;;;;;;kBA0B7C,CAAC;;;;;;;;8BA2ClC,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAqBK,CAAC;4IAI2C,CAAA;wFAI9D,CAAC;+IAMmD,CAAA;2FAGpC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAqC0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAuEd,CAAA;;;;;;;;;;;;;6BA6B9C,CAAC;8BAIiC,CAAC;kBAC3C,CAAA;;oBAKD,CAAC;;sBAIQ,CAAC;oBAGN,CAAC;;;;;;;;gDAuBI,CAAC;;;;;;;;;;;;;;;;;;uBA8B2E,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAmHU,CAAC;yBACxE,CAAC;UAAoD,GAAG;WAChF,GAAG;;gBAGE,GAAG;;;;;;;WAYM,GAAE;YAChB,GAAG;;;;;;;;;;;oBAiC2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyNd,CAAC;cAKW,CAAC;eACoB,CAAC;gBAGhD,CAAD;;;;;;;;;;;;;;SAkC4C,CAAC;;;iBAEjC,CAAC;;;;QA1vBY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsC/B,CAAF;4IAM4C,CAAC;wFAKd,CAAA;+IAIoB,CAAC;2FAMG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA2BX,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAyDzC,CAAC;;;;;;;;;;;;;6BA0BJ,CAAC;8BAEU,CAAC;kBACE,CAAC;;oBAMT,CAAC;;sBAEL,CAAA;oBAAkE,CAAC;;;;;;;;gDAkB7D,CAAC;;;;;;;;;;;;;;;;qBAuBO,CAAC;;;uBAOL,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAqIO,CAAC;yBACJ,CAAC;UAEO,GAAG;WAEvB,GAAE;;gBAGc,GACrB;;;;;;;WAc8B,GAAG;YACF,GAAG;;;;;;;;;;;oBAiCV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4MiB,CAAA;cAKzC,CAAJ;eAII,CAAJ;gBACI,CAAA;;;;;;;;;;;;;;SA0CE,CAAJ;;;iBAIA,CAAC;;8BAEmB,CAAC,cAAc,CAAC;;;AAlpBtC;;;;;;;;GAQG;AACH,qBAGa,iCAAkC,SAAQ,sCAEtD;IACO,IAAI,EAAG,IAAI,CAAC;IACT,OAAO,EAAG,OAAO,CAAC;IACf,UAAU,EAAG,UAAU,CAAC;IAExB,mBAAmB,EAAE,OAAO,CAAC;IAEzC;;OAEG;IACS,oBAAoB,EAAE,GAAG,EAAE,CAAM;IAEvC,QAAQ,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IASlD,MAAM,EAAE,MAAM,CAAC;IACgC,UAAU,UAAS;IACvC,OAAO,EAAE,MAAM,CAAmC;IAClD,OAAO,EAAE,MAAM,CAAoC;IAC3C,eAAe,EAAE,MAAM,CACf;IACI,UAAU,UAAS;IACvC,OAAO,EAAE,MAAM,CAAC;IACrC,OAAO,EAAE,GAAG,CAAC;IACa,YAAY,EAAE,MAAM,CAAC;IAC3D,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAK3B,OAAO,UAAS;IAE3C;;;;;OAKG;IAC4B,SAAS,MAAC;IAEwB,qBAAqB,UAAQ;IAE9F;;OAEG;IAEH,yBAAyB,UAAS;IAElC;;;;;;;;OAQG;IACS,aAAa,EAAE,QAAQ,CAAC;IAEpC;;;OAGG;IACS,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IAEhD;;;OAGG;IACS,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAE1C,+EAA+E;IAC/E,OAAO,CAAC,YAAY,CAAK;IAEzB,oFAAoF;IACpF,OAAO,CAAC,cAAc,CAAK;IAE3B,oEAAoE;IACpE,OAAO,CAAC,YAAY,CAAS;IAE7B;;;OAGG;IACH,OAAO,CAAC,aAAa,CAAS;IAE9B,OAAO,CAAC,OAAO,CAAe;IAC9B,OAAO,CAAC,SAAS,CAAe;IAChC,OAAO,CAAC,aAAa,CAAe;IAEpC,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,6BAA6B,CAAQ;IAC7C,OAAO,CAAC,mBAAmB,CAAS;IAEpC,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,eAAe,CAAqB;IAE5C,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,mBAAmB,CAAkC;IAC7D,OAAO,CAAC,MAAM,CAAwE;IAEtF,iBAAiB;IAuBjB,oBAAoB;IASX,SAAS,IAAI,IAAI;IAQ1B,OAAO,KAAK,aAAa,GAExB;IAID;;;;OAIG;IACH,OAAO,KAAK,KAAK,GAIhB;IAED;;;OAGG;IACH,OAAO,KAAK,eAAe,GAM1B;IAED;;;OAGG;IACH,OAAO,KAAK,0BAA0B,GAIrC;IAED;;;;OAIG;IACG,IAAI;IA4CV;;;OAGG;IACH,OAAO;IAsCP;;;OAGG;IACH,OAAO;IAKP;;OAEG;IACH,WAAW;IAIX;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;OAEG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,EAAE;IA4BnC;;;;OAIG;YACW,UAAU;IAiBxB;;;OAGG;YACW,aAAa;IAsC3B;;;;;OAKG;YACW,kBAAkB;IAYhC;;;;;;OAMG;IACG,gBAAgB,CAAC,YAAY,UAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA2E1D;;;;;;;;OAQG;IACG,QAAQ,CAAC,KAAK,SAAI,GAAG,OAAO,CAAC,OAAO,CAAC;IAM3C,8DAA8D;IAC9D,IAAI,aAAa,IAAI,OAAO,CAE3B;YAEa,WAAW;IAczB,yGAAyG;IACzG,OAAO,CAAC,WAAW;IASnB;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAwB3B,uDAAuD;IACvD,IAAI,WAAW,IAAI,OAAO,CAIzB;IAED,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,sBAAsB;IAiE9B,OAAO,CAAC,mBAAmB;IAyB3B,OAAO,CAAC,gBAAgB;IA8BxB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAgB3B,OAAO,CAAC,mBAAmB;IAuB3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,aAAa;IAMd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;IAKrC,uBAAuB,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB;CAGvE"}
|
|
@@ -27,7 +27,7 @@ const DEBOUNCE_INTERVAL_MS = 1000;
|
|
|
27
27
|
* @fires gridTabulator:error - Fired when a datasource error occurs. detail: `GridTabulatorErrorEventDetail`
|
|
28
28
|
* @fires dataInit - Fired when tabulator data is initialized
|
|
29
29
|
* @fires sizeChanged - Fired when layout size changes. detail: `GridTabulatorSizeChangedEventDetail`
|
|
30
|
-
* @fires more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset
|
|
30
|
+
* @fires more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset, and after every reply to `loadMore()`. detail: `GridTabulatorMoreRowsEventDetail`
|
|
31
31
|
*/
|
|
32
32
|
let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource extends LifecycleMixin(DatasourceEventHandler(FoundationElement)) {
|
|
33
33
|
constructor() {
|
|
@@ -47,6 +47,17 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
47
47
|
* Whether to keep column definitions when clearing row data
|
|
48
48
|
*/
|
|
49
49
|
this.keepColDefsOnClearRowData = false;
|
|
50
|
+
/** MORE_ROWS requests sent by `loadMore()` that have not been answered yet. */
|
|
51
|
+
this.pendingPages = 0;
|
|
52
|
+
/** Further pages a `loadMore()` call still has to request, one after each reply. */
|
|
53
|
+
this.remainingPages = 0;
|
|
54
|
+
/** Set while the rows of a `loadMore()` reply are being applied. */
|
|
55
|
+
this.applyingPage = false;
|
|
56
|
+
/**
|
|
57
|
+
* Set when a `loadMore()` reply had no rows while the server still reported more. Some GSF versions answer
|
|
58
|
+
* every later request the same way, so paging stops.
|
|
59
|
+
*/
|
|
60
|
+
this.pagingStalled = false;
|
|
50
61
|
this.isRequestServer = false;
|
|
51
62
|
this.requiresFullRowDataAndColDefs = true;
|
|
52
63
|
this.dataSubWasLoggedOff = false;
|
|
@@ -221,6 +232,9 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
221
232
|
clearRowData(withColumnDefs = true) {
|
|
222
233
|
var _a, _b, _c, _d;
|
|
223
234
|
this.rows = new Map();
|
|
235
|
+
this.pendingPages = 0;
|
|
236
|
+
this.remainingPages = 0;
|
|
237
|
+
this.pagingStalled = false;
|
|
224
238
|
this.setServerPaging(undefined, undefined);
|
|
225
239
|
if (withColumnDefs && !this.keepColDefsOnClearRowData) {
|
|
226
240
|
(_b = (_a = this.gridTabulator) === null || _a === void 0 ? void 0 : _a.grid) === null || _b === void 0 ? void 0 : _b.setColumns([]);
|
|
@@ -327,6 +341,8 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
327
341
|
this.dataSub = undefined;
|
|
328
342
|
}
|
|
329
343
|
this.clearRowData(withoutColumnDefs);
|
|
344
|
+
// The new subscription's first message is a full load, not live inserts into the old rows.
|
|
345
|
+
this.requiresFullRowDataAndColDefs = true;
|
|
330
346
|
yield this.loadResourceData(withoutFullInit);
|
|
331
347
|
});
|
|
332
348
|
}
|
|
@@ -370,13 +386,20 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
370
386
|
return;
|
|
371
387
|
}
|
|
372
388
|
this.dataSubWasLoggedOff = false;
|
|
373
|
-
this.
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
389
|
+
const isPageReply = this.isPageReply(result);
|
|
390
|
+
this.captureServerPaging(result, isPageReply);
|
|
391
|
+
this.applyingPage = isPageReply;
|
|
392
|
+
try {
|
|
393
|
+
if (result.ROW) {
|
|
394
|
+
const nextMessage = dataServerResultFilter(result);
|
|
395
|
+
this.handleStreamResult(nextMessage);
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
this.handleStreamResult(result);
|
|
399
|
+
}
|
|
377
400
|
}
|
|
378
|
-
|
|
379
|
-
this.
|
|
401
|
+
finally {
|
|
402
|
+
this.applyingPage = false;
|
|
380
403
|
}
|
|
381
404
|
}, (error) => {
|
|
382
405
|
logger.error('Stream error:', error);
|
|
@@ -394,16 +417,79 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
394
417
|
});
|
|
395
418
|
}
|
|
396
419
|
/**
|
|
397
|
-
*
|
|
398
|
-
* the
|
|
420
|
+
* Requests the next `pages` pages of rows from a data server subscription (`MORE_ROWS`), one after another.
|
|
421
|
+
* Each page holds up to `max-rows` rows; the server fixes that size when the subscription opens. The rows
|
|
422
|
+
* arrive on the stream and reach the row mapper as a `'page'` operation, and `more-rows-changed` is emitted
|
|
423
|
+
* after each reply. Requesting stops early when the server reports no more rows.
|
|
424
|
+
*
|
|
425
|
+
* @returns Whether a request was sent. Nothing is sent for a request server, while a load is in progress,
|
|
426
|
+
* when the server reported no more rows, or after paging stalled.
|
|
399
427
|
*/
|
|
400
|
-
|
|
428
|
+
loadMore() {
|
|
429
|
+
return __awaiter(this, arguments, void 0, function* (pages = 1) {
|
|
430
|
+
if (!this.canLoadMore || !this.sourceRef || pages < 1)
|
|
431
|
+
return false;
|
|
432
|
+
this.remainingPages = pages - 1;
|
|
433
|
+
return this.requestPage();
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
/** Whether a `loadMore()` call is still waiting for pages. */
|
|
437
|
+
get isLoadingMore() {
|
|
438
|
+
return this.pendingPages > 0 || this.remainingPages > 0;
|
|
439
|
+
}
|
|
440
|
+
requestPage() {
|
|
441
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
442
|
+
this.pendingPages += 1;
|
|
443
|
+
try {
|
|
444
|
+
yield this.connect.getMoreRows(this.sourceRef);
|
|
445
|
+
return true;
|
|
446
|
+
}
|
|
447
|
+
catch (error) {
|
|
448
|
+
this.pendingPages = Math.max(0, this.pendingPages - 1);
|
|
449
|
+
this.remainingPages = 0;
|
|
450
|
+
logger.error(`Failed to load more rows for ${this.resourceName}`, error);
|
|
451
|
+
this.setServerPaging(this.serverRowsCount, this.moreRows, true);
|
|
452
|
+
return false;
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
/** Whether a raw stream message answers a `loadMore()` request. Live updates never carry `MORE_ROWS`. */
|
|
457
|
+
isPageReply(result) {
|
|
458
|
+
return (this.pendingPages > 0 &&
|
|
459
|
+
!this.requiresFullRowDataAndColDefs &&
|
|
460
|
+
!!result &&
|
|
461
|
+
'MORE_ROWS' in result);
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Keeps `ROWS_COUNT` and `MORE_ROWS` from a raw stream message. The result filter drops them; the first
|
|
465
|
+
* message after the logon and every reply to `loadMore()` carry them.
|
|
466
|
+
*/
|
|
467
|
+
captureServerPaging(result, isPageReply = false) {
|
|
468
|
+
var _a;
|
|
469
|
+
if (isPageReply) {
|
|
470
|
+
this.pendingPages = Math.max(0, this.pendingPages - 1);
|
|
471
|
+
if (!((_a = result.ROW) === null || _a === void 0 ? void 0 : _a.length) && result.MORE_ROWS === true) {
|
|
472
|
+
this.pagingStalled = true;
|
|
473
|
+
logger.warn(`${this.resourceName}: a MORE_ROWS reply had no rows although more were reported, so paging stops`);
|
|
474
|
+
}
|
|
475
|
+
if (this.remainingPages > 0 && result.MORE_ROWS === true && !this.pagingStalled) {
|
|
476
|
+
this.remainingPages -= 1;
|
|
477
|
+
this.requestPage();
|
|
478
|
+
}
|
|
479
|
+
else {
|
|
480
|
+
this.remainingPages = 0;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
401
483
|
if (!result || (!('ROWS_COUNT' in result) && !('MORE_ROWS' in result)))
|
|
402
484
|
return;
|
|
403
|
-
this.setServerPaging(typeof result.ROWS_COUNT === 'number' ? result.ROWS_COUNT : this.serverRowsCount, typeof result.MORE_ROWS === 'boolean' ? result.MORE_ROWS : this.moreRows);
|
|
485
|
+
this.setServerPaging(typeof result.ROWS_COUNT === 'number' ? result.ROWS_COUNT : this.serverRowsCount, typeof result.MORE_ROWS === 'boolean' ? result.MORE_ROWS : this.moreRows, isPageReply);
|
|
486
|
+
}
|
|
487
|
+
/** Whether `loadMore()` can fetch another page now. */
|
|
488
|
+
get canLoadMore() {
|
|
489
|
+
return (!this.isRequestServer && this.moreRows === true && !this.pagingStalled && !this.isLoadingMore);
|
|
404
490
|
}
|
|
405
|
-
setServerPaging(rowsCount, moreRows) {
|
|
406
|
-
if (rowsCount === this.serverRowsCount && moreRows === this.moreRows)
|
|
491
|
+
setServerPaging(rowsCount, moreRows, force = false) {
|
|
492
|
+
if (!force && rowsCount === this.serverRowsCount && moreRows === this.moreRows)
|
|
407
493
|
return;
|
|
408
494
|
this.serverRowsCount = rowsCount;
|
|
409
495
|
this.moreRows = moreRows;
|
|
@@ -545,7 +631,7 @@ let GridTabulatorClientSideDatasource = class GridTabulatorClientSideDatasource
|
|
|
545
631
|
if (!this.rowDataMapper) {
|
|
546
632
|
return transaction;
|
|
547
633
|
}
|
|
548
|
-
return Object.assign(Object.assign({}, transaction), { add: this.rowDataMapper(transaction.add, this.rows, 'add'), update: this.rowDataMapper(transaction.update, this.rows, 'update'), remove: this.rowDataMapper(transaction.remove, this.rows, 'remove') });
|
|
634
|
+
return Object.assign(Object.assign({}, transaction), { add: this.rowDataMapper(transaction.add, this.rows, this.applyingPage ? 'page' : 'add'), update: this.rowDataMapper(transaction.update, this.rows, 'update'), remove: this.rowDataMapper(transaction.remove, this.rows, 'remove') });
|
|
549
635
|
}
|
|
550
636
|
handleStreamInserts(insertedRows) {
|
|
551
637
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
@@ -4766,7 +4766,7 @@
|
|
|
4766
4766
|
{
|
|
4767
4767
|
"kind": "Class",
|
|
4768
4768
|
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulatorClientSideDatasource:class",
|
|
4769
|
-
"docComment": "/**\n * The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.\n *\n * @fires\n *\n * gridTabulator:error - Fired when a datasource error occurs. detail: `GridTabulatorErrorEventDetail`\n *\n * @fires\n *\n * dataInit - Fired when tabulator data is initialized\n *\n * @fires\n *\n * sizeChanged - Fired when layout size changes. detail: `GridTabulatorSizeChangedEventDetail`\n *\n * @fires\n *\n * more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset
|
|
4769
|
+
"docComment": "/**\n * The Genesis Datasource element, for client-side data fetching and used exclusively by the GridTabulator element.\n *\n * @fires\n *\n * gridTabulator:error - Fired when a datasource error occurs. detail: `GridTabulatorErrorEventDetail`\n *\n * @fires\n *\n * dataInit - Fired when tabulator data is initialized\n *\n * @fires\n *\n * sizeChanged - Fired when layout size changes. detail: `GridTabulatorSizeChangedEventDetail`\n *\n * @fires\n *\n * more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset, and after every reply to `loadMore()`. detail: `GridTabulatorMoreRowsEventDetail`\n *\n * @alpha\n */\n",
|
|
4770
4770
|
"excerptTokens": [
|
|
4771
4771
|
{
|
|
4772
4772
|
"kind": "Content",
|
|
@@ -4819,6 +4819,36 @@
|
|
|
4819
4819
|
"isProtected": false,
|
|
4820
4820
|
"isAbstract": false
|
|
4821
4821
|
},
|
|
4822
|
+
{
|
|
4823
|
+
"kind": "Property",
|
|
4824
|
+
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulatorClientSideDatasource#canLoadMore:member",
|
|
4825
|
+
"docComment": "/**\n * Whether `loadMore()` can fetch another page now.\n */\n",
|
|
4826
|
+
"excerptTokens": [
|
|
4827
|
+
{
|
|
4828
|
+
"kind": "Content",
|
|
4829
|
+
"text": "get canLoadMore(): "
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
"kind": "Content",
|
|
4833
|
+
"text": "boolean"
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"kind": "Content",
|
|
4837
|
+
"text": ";"
|
|
4838
|
+
}
|
|
4839
|
+
],
|
|
4840
|
+
"isReadonly": true,
|
|
4841
|
+
"isOptional": false,
|
|
4842
|
+
"releaseTag": "Alpha",
|
|
4843
|
+
"name": "canLoadMore",
|
|
4844
|
+
"propertyTypeTokenRange": {
|
|
4845
|
+
"startIndex": 1,
|
|
4846
|
+
"endIndex": 2
|
|
4847
|
+
},
|
|
4848
|
+
"isStatic": false,
|
|
4849
|
+
"isProtected": false,
|
|
4850
|
+
"isAbstract": false
|
|
4851
|
+
},
|
|
4822
4852
|
{
|
|
4823
4853
|
"kind": "Property",
|
|
4824
4854
|
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulatorClientSideDatasource#connect:member",
|
|
@@ -5069,6 +5099,36 @@
|
|
|
5069
5099
|
"isAbstract": false,
|
|
5070
5100
|
"name": "init"
|
|
5071
5101
|
},
|
|
5102
|
+
{
|
|
5103
|
+
"kind": "Property",
|
|
5104
|
+
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulatorClientSideDatasource#isLoadingMore:member",
|
|
5105
|
+
"docComment": "/**\n * Whether a `loadMore()` call is still waiting for pages.\n */\n",
|
|
5106
|
+
"excerptTokens": [
|
|
5107
|
+
{
|
|
5108
|
+
"kind": "Content",
|
|
5109
|
+
"text": "get isLoadingMore(): "
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
"kind": "Content",
|
|
5113
|
+
"text": "boolean"
|
|
5114
|
+
},
|
|
5115
|
+
{
|
|
5116
|
+
"kind": "Content",
|
|
5117
|
+
"text": ";"
|
|
5118
|
+
}
|
|
5119
|
+
],
|
|
5120
|
+
"isReadonly": true,
|
|
5121
|
+
"isOptional": false,
|
|
5122
|
+
"releaseTag": "Alpha",
|
|
5123
|
+
"name": "isLoadingMore",
|
|
5124
|
+
"propertyTypeTokenRange": {
|
|
5125
|
+
"startIndex": 1,
|
|
5126
|
+
"endIndex": 2
|
|
5127
|
+
},
|
|
5128
|
+
"isStatic": false,
|
|
5129
|
+
"isProtected": false,
|
|
5130
|
+
"isAbstract": false
|
|
5131
|
+
},
|
|
5072
5132
|
{
|
|
5073
5133
|
"kind": "Property",
|
|
5074
5134
|
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulatorClientSideDatasource#isSnapshot:member",
|
|
@@ -5463,7 +5523,7 @@
|
|
|
5463
5523
|
{
|
|
5464
5524
|
"kind": "Property",
|
|
5465
5525
|
"canonicalReference": "@genesislcap/grid-tabulator!GridTabulatorClientSideDatasource#rowDataMapper:member",
|
|
5466
|
-
"docComment": "/**\n * Allows grid data updates to be processed via and external function before applying in grid.\n *\n * @remarks\n *\n * The mapper is called with all rows (one argument) when the grid data is set. For stream transactions it is called with the changed rows, the datasource's current rows keyed by row id, and the operation (`'add'`, `'update'` or `'remove'`).\n */\n",
|
|
5526
|
+
"docComment": "/**\n * Allows grid data updates to be processed via and external function before applying in grid.\n *\n * @remarks\n *\n * The mapper is called with all rows (one argument) when the grid data is set. For stream transactions it is called with the changed rows, the datasource's current rows keyed by row id, and the operation (`'add'`, `'update'` or `'remove'`). Rows that arrive in reply to `loadMore()` are passed as `'page'` instead of `'add'`, as they are existing rows rather than new ones.\n */\n",
|
|
5467
5527
|
"excerptTokens": [
|
|
5468
5528
|
{
|
|
5469
5529
|
"kind": "Content",
|
|
@@ -5906,7 +5966,7 @@
|
|
|
5906
5966
|
},
|
|
5907
5967
|
{
|
|
5908
5968
|
"kind": "Content",
|
|
5909
|
-
"text": "'add' | 'update' | 'remove'"
|
|
5969
|
+
"text": "'add' | 'update' | 'remove' | 'page'"
|
|
5910
5970
|
},
|
|
5911
5971
|
{
|
|
5912
5972
|
"kind": "Content",
|
package/dist/grid-tabulator.d.ts
CHANGED
|
@@ -1128,7 +1128,7 @@ export declare enum GridTabulatorCellRendererTypes {
|
|
|
1128
1128
|
* @fires gridTabulator:error - Fired when a datasource error occurs. detail: `GridTabulatorErrorEventDetail`
|
|
1129
1129
|
* @fires dataInit - Fired when tabulator data is initialized
|
|
1130
1130
|
* @fires sizeChanged - Fired when layout size changes. detail: `GridTabulatorSizeChangedEventDetail`
|
|
1131
|
-
* @fires more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset
|
|
1131
|
+
* @fires more-rows-changed - Fired when the server-reported `MORE_ROWS` or `ROWS_COUNT` changes, including when they are reset, and after every reply to `loadMore()`. detail: `GridTabulatorMoreRowsEventDetail`
|
|
1132
1132
|
*/
|
|
1133
1133
|
export declare class GridTabulatorClientSideDatasource extends GridTabulatorClientSideDatasource_base {
|
|
1134
1134
|
auth: Auth;
|
|
@@ -1170,7 +1170,8 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
|
|
|
1170
1170
|
* @remarks
|
|
1171
1171
|
* The mapper is called with all rows (one argument) when the grid data is set. For stream transactions it is
|
|
1172
1172
|
* called with the changed rows, the datasource's current rows keyed by row id, and the operation
|
|
1173
|
-
* (`'add'`, `'update'` or `'remove'`).
|
|
1173
|
+
* (`'add'`, `'update'` or `'remove'`). Rows that arrive in reply to `loadMore()` are passed as `'page'`
|
|
1174
|
+
* instead of `'add'`, as they are existing rows rather than new ones.
|
|
1174
1175
|
*/
|
|
1175
1176
|
rowDataMapper: Function;
|
|
1176
1177
|
/**
|
|
@@ -1183,6 +1184,17 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
|
|
|
1183
1184
|
* when unknown. It is true when `max-rows` capped the initial load.
|
|
1184
1185
|
*/
|
|
1185
1186
|
moreRows: boolean | undefined;
|
|
1187
|
+
/** MORE_ROWS requests sent by `loadMore()` that have not been answered yet. */
|
|
1188
|
+
private pendingPages;
|
|
1189
|
+
/** Further pages a `loadMore()` call still has to request, one after each reply. */
|
|
1190
|
+
private remainingPages;
|
|
1191
|
+
/** Set while the rows of a `loadMore()` reply are being applied. */
|
|
1192
|
+
private applyingPage;
|
|
1193
|
+
/**
|
|
1194
|
+
* Set when a `loadMore()` reply had no rows while the server still reported more. Some GSF versions answer
|
|
1195
|
+
* every later request the same way, so paging stops.
|
|
1196
|
+
*/
|
|
1197
|
+
private pagingStalled;
|
|
1186
1198
|
private dataSub;
|
|
1187
1199
|
private updateSub;
|
|
1188
1200
|
private connectionSub;
|
|
@@ -1272,10 +1284,27 @@ export declare class GridTabulatorClientSideDatasource extends GridTabulatorClie
|
|
|
1272
1284
|
*/
|
|
1273
1285
|
loadResourceData(withFullInit?: boolean): Promise<void>;
|
|
1274
1286
|
/**
|
|
1275
|
-
*
|
|
1276
|
-
* the
|
|
1287
|
+
* Requests the next `pages` pages of rows from a data server subscription (`MORE_ROWS`), one after another.
|
|
1288
|
+
* Each page holds up to `max-rows` rows; the server fixes that size when the subscription opens. The rows
|
|
1289
|
+
* arrive on the stream and reach the row mapper as a `'page'` operation, and `more-rows-changed` is emitted
|
|
1290
|
+
* after each reply. Requesting stops early when the server reports no more rows.
|
|
1291
|
+
*
|
|
1292
|
+
* @returns Whether a request was sent. Nothing is sent for a request server, while a load is in progress,
|
|
1293
|
+
* when the server reported no more rows, or after paging stalled.
|
|
1294
|
+
*/
|
|
1295
|
+
loadMore(pages?: number): Promise<boolean>;
|
|
1296
|
+
/** Whether a `loadMore()` call is still waiting for pages. */
|
|
1297
|
+
get isLoadingMore(): boolean;
|
|
1298
|
+
private requestPage;
|
|
1299
|
+
/** Whether a raw stream message answers a `loadMore()` request. Live updates never carry `MORE_ROWS`. */
|
|
1300
|
+
private isPageReply;
|
|
1301
|
+
/**
|
|
1302
|
+
* Keeps `ROWS_COUNT` and `MORE_ROWS` from a raw stream message. The result filter drops them; the first
|
|
1303
|
+
* message after the logon and every reply to `loadMore()` carry them.
|
|
1277
1304
|
*/
|
|
1278
1305
|
private captureServerPaging;
|
|
1306
|
+
/** Whether `loadMore()` can fetch another page now. */
|
|
1307
|
+
get canLoadMore(): boolean;
|
|
1279
1308
|
private setServerPaging;
|
|
1280
1309
|
private handleSnapshot;
|
|
1281
1310
|
private datasourceOptions;
|
|
@@ -2445,7 +2474,7 @@ export declare interface GridTabulatorMoreRowsEventDetail {
|
|
|
2445
2474
|
* Kind of change a row data mapper is called with for a stream transaction.
|
|
2446
2475
|
* @alpha
|
|
2447
2476
|
*/
|
|
2448
|
-
export declare type GridTabulatorRowDataMapperOperation = 'add' | 'update' | 'remove';
|
|
2477
|
+
export declare type GridTabulatorRowDataMapperOperation = 'add' | 'update' | 'remove' | 'page';
|
|
2449
2478
|
|
|
2450
2479
|
/**
|
|
2451
2480
|
* The grid-tabulator component registration.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-tabulator",
|
|
3
3
|
"description": "Genesis Foundation Grid Tabulator",
|
|
4
|
-
"version": "15.92.0-HT-305.
|
|
4
|
+
"version": "15.92.0-HT-305.3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@genesislcap/foundation-testing": "15.92.0-HT-305.
|
|
43
|
-
"@genesislcap/genx": "15.92.0-HT-305.
|
|
44
|
-
"@genesislcap/ts-builder": "15.92.0-HT-305.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "15.92.0-HT-305.
|
|
46
|
-
"@genesislcap/vite-builder": "15.92.0-HT-305.
|
|
47
|
-
"@genesislcap/webpack-builder": "15.92.0-HT-305.
|
|
42
|
+
"@genesislcap/foundation-testing": "15.92.0-HT-305.3",
|
|
43
|
+
"@genesislcap/genx": "15.92.0-HT-305.3",
|
|
44
|
+
"@genesislcap/ts-builder": "15.92.0-HT-305.3",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "15.92.0-HT-305.3",
|
|
46
|
+
"@genesislcap/vite-builder": "15.92.0-HT-305.3",
|
|
47
|
+
"@genesislcap/webpack-builder": "15.92.0-HT-305.3",
|
|
48
48
|
"@types/tabulator-tables": "6.2.6"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "15.92.0-HT-305.
|
|
52
|
-
"@genesislcap/foundation-logger": "15.92.0-HT-305.
|
|
53
|
-
"@genesislcap/foundation-ui": "15.92.0-HT-305.
|
|
54
|
-
"@genesislcap/foundation-utils": "15.92.0-HT-305.
|
|
51
|
+
"@genesislcap/foundation-comms": "15.92.0-HT-305.3",
|
|
52
|
+
"@genesislcap/foundation-logger": "15.92.0-HT-305.3",
|
|
53
|
+
"@genesislcap/foundation-ui": "15.92.0-HT-305.3",
|
|
54
|
+
"@genesislcap/foundation-utils": "15.92.0-HT-305.3",
|
|
55
55
|
"@microsoft/fast-colors": "5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "1.14.0",
|