@uibit/table 0.1.0 → 0.2.0
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/README.md +10 -0
- package/custom-elements.json +462 -0
- package/dist/frameworks/angular/index.ts +101 -75
- package/dist/frameworks/astro/index.d.ts +17 -1
- package/dist/frameworks/preact/index.d.ts +2 -0
- package/dist/frameworks/react/index.ts +193 -0
- package/dist/frameworks/solid/index.d.ts +1 -0
- package/dist/frameworks/stencil/index.d.ts +2 -0
- package/dist/frameworks/svelte/index.svelte +104 -37
- package/dist/frameworks/vue/index.ts +228 -30
- package/package.json +7 -7
- package/dist/frameworks/react/index.d.ts +0 -29
package/README.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
# Table
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@uibit/table)
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
[Interactive Demonstration](https://rawlings.github.io/uibit/components/table)
|
|
4
7
|
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @uibit/table
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
|
|
5
15
|
Table wraps standard HTML `<table>` elements and layers on a full data grid feature set including searching, pagination, sorting, row selection, column resizing, filtering, and CSV export. The source markup is parsed once on slot assignment and never mutated, rendering the enhanced interface entirely inside the shadow DOM.
|
|
6
16
|
|
|
7
17
|
## Value Delivery
|
package/custom-elements.json
CHANGED
|
@@ -812,6 +812,211 @@
|
|
|
812
812
|
"text": "TemplateResult | typeof nothing"
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"kind": "field",
|
|
818
|
+
"name": "locale",
|
|
819
|
+
"type": {
|
|
820
|
+
"text": "string"
|
|
821
|
+
},
|
|
822
|
+
"default": "''",
|
|
823
|
+
"description": "BCP 47 locale string for formatting and localization. Defaults to inherited document language.",
|
|
824
|
+
"attribute": "locale",
|
|
825
|
+
"inheritedFrom": {
|
|
826
|
+
"name": "UIBitElement",
|
|
827
|
+
"module": "../../platform/core/src/element.ts"
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"kind": "field",
|
|
832
|
+
"name": "resolvedLocale",
|
|
833
|
+
"type": {
|
|
834
|
+
"text": "string | undefined"
|
|
835
|
+
},
|
|
836
|
+
"description": "Resolves the active locale for formatting and localization.\nChecks the `locale` property first, then traverses up the DOM to find\nthe nearest ancestor with a `lang` attribute, and finally falls back\nto undefined (which defaults to browser locale).",
|
|
837
|
+
"readonly": true,
|
|
838
|
+
"inheritedFrom": {
|
|
839
|
+
"name": "UIBitElement",
|
|
840
|
+
"module": "../../platform/core/src/element.ts"
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"kind": "field",
|
|
845
|
+
"name": "_disposables",
|
|
846
|
+
"type": {
|
|
847
|
+
"text": "Set<() => void>"
|
|
848
|
+
},
|
|
849
|
+
"privacy": "private",
|
|
850
|
+
"default": "new Set()",
|
|
851
|
+
"inheritedFrom": {
|
|
852
|
+
"name": "UIBitElement",
|
|
853
|
+
"module": "../../platform/core/src/element.ts"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"kind": "method",
|
|
858
|
+
"name": "createProperty",
|
|
859
|
+
"static": true,
|
|
860
|
+
"parameters": [
|
|
861
|
+
{
|
|
862
|
+
"name": "name",
|
|
863
|
+
"type": {
|
|
864
|
+
"text": "PropertyKey"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "options",
|
|
869
|
+
"optional": true,
|
|
870
|
+
"type": {
|
|
871
|
+
"text": "PropertyDeclaration"
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
],
|
|
875
|
+
"description": "Overrides createProperty to automatically map camelCase property names\nto kebab-case attribute names by default.",
|
|
876
|
+
"inheritedFrom": {
|
|
877
|
+
"name": "UIBitElement",
|
|
878
|
+
"module": "../../platform/core/src/element.ts"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"kind": "method",
|
|
883
|
+
"name": "finalizeStyles",
|
|
884
|
+
"static": true,
|
|
885
|
+
"return": {
|
|
886
|
+
"type": {
|
|
887
|
+
"text": "Array<any>"
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"parameters": [
|
|
891
|
+
{
|
|
892
|
+
"name": "styles",
|
|
893
|
+
"optional": true,
|
|
894
|
+
"type": {
|
|
895
|
+
"text": "CSSResultGroup"
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
],
|
|
899
|
+
"description": "Automatically prepends basic layout resets (border-box) to the\ncomponent's final styles.",
|
|
900
|
+
"inheritedFrom": {
|
|
901
|
+
"name": "UIBitElement",
|
|
902
|
+
"module": "../../platform/core/src/element.ts"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "method",
|
|
907
|
+
"name": "dispatchCustomEvent",
|
|
908
|
+
"return": {
|
|
909
|
+
"type": {
|
|
910
|
+
"text": "boolean"
|
|
911
|
+
}
|
|
912
|
+
},
|
|
913
|
+
"parameters": [
|
|
914
|
+
{
|
|
915
|
+
"name": "name",
|
|
916
|
+
"type": {
|
|
917
|
+
"text": "string"
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "detail",
|
|
922
|
+
"optional": true,
|
|
923
|
+
"type": {
|
|
924
|
+
"text": "T"
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"name": "options",
|
|
929
|
+
"optional": true,
|
|
930
|
+
"type": {
|
|
931
|
+
"text": "Omit<CustomEventInit<T>, 'detail'>"
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
],
|
|
935
|
+
"description": "Helper to dispatch a custom event with standard bubbles and composed options.",
|
|
936
|
+
"inheritedFrom": {
|
|
937
|
+
"name": "UIBitElement",
|
|
938
|
+
"module": "../../platform/core/src/element.ts"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"kind": "method",
|
|
943
|
+
"name": "getCssPropertyValue",
|
|
944
|
+
"return": {
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "string"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"parameters": [
|
|
950
|
+
{
|
|
951
|
+
"name": "propertyName",
|
|
952
|
+
"type": {
|
|
953
|
+
"text": "string"
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
],
|
|
957
|
+
"description": "Helper to retrieve a computed CSS custom property value from the element.",
|
|
958
|
+
"inheritedFrom": {
|
|
959
|
+
"name": "UIBitElement",
|
|
960
|
+
"module": "../../platform/core/src/element.ts"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"kind": "method",
|
|
965
|
+
"name": "registerDisposable",
|
|
966
|
+
"parameters": [
|
|
967
|
+
{
|
|
968
|
+
"name": "cleanup",
|
|
969
|
+
"type": {
|
|
970
|
+
"text": "() => void"
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
],
|
|
974
|
+
"description": "Register a cleanup function to be executed when the element is disconnected from the DOM.",
|
|
975
|
+
"inheritedFrom": {
|
|
976
|
+
"name": "UIBitElement",
|
|
977
|
+
"module": "../../platform/core/src/element.ts"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"kind": "method",
|
|
982
|
+
"name": "listen",
|
|
983
|
+
"return": {
|
|
984
|
+
"type": {
|
|
985
|
+
"text": "() => void"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"parameters": [
|
|
989
|
+
{
|
|
990
|
+
"name": "target",
|
|
991
|
+
"type": {
|
|
992
|
+
"text": "EventTarget"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"name": "type",
|
|
997
|
+
"type": {
|
|
998
|
+
"text": "K"
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"name": "listener",
|
|
1003
|
+
"type": {
|
|
1004
|
+
"text": "(this: EventTarget, ev: HTMLElementEventMap[K]) => any"
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"name": "options",
|
|
1009
|
+
"optional": true,
|
|
1010
|
+
"type": {
|
|
1011
|
+
"text": "boolean | AddEventListenerOptions"
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
],
|
|
1015
|
+
"description": "Utility to add an event listener that is automatically cleaned up when the element is disconnected.",
|
|
1016
|
+
"inheritedFrom": {
|
|
1017
|
+
"name": "UIBitElement",
|
|
1018
|
+
"module": "../../platform/core/src/element.ts"
|
|
1019
|
+
}
|
|
815
1020
|
}
|
|
816
1021
|
],
|
|
817
1022
|
"attributes": [
|
|
@@ -931,6 +1136,19 @@
|
|
|
931
1136
|
"default": "false",
|
|
932
1137
|
"description": "Indicates the table is loading more items in infinite scroll mode.",
|
|
933
1138
|
"fieldName": "loading"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "locale",
|
|
1142
|
+
"type": {
|
|
1143
|
+
"text": "string"
|
|
1144
|
+
},
|
|
1145
|
+
"default": "''",
|
|
1146
|
+
"description": "BCP 47 locale string for formatting and localization. Defaults to inherited document language.",
|
|
1147
|
+
"fieldName": "locale",
|
|
1148
|
+
"inheritedFrom": {
|
|
1149
|
+
"name": "UIBitElement",
|
|
1150
|
+
"module": "../../platform/core/src/element.ts"
|
|
1151
|
+
}
|
|
934
1152
|
}
|
|
935
1153
|
],
|
|
936
1154
|
"superclass": {
|
|
@@ -973,6 +1191,250 @@
|
|
|
973
1191
|
"path": "src/types.ts",
|
|
974
1192
|
"declarations": [],
|
|
975
1193
|
"exports": []
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"kind": "javascript-module",
|
|
1197
|
+
"path": "../../platform/core/src/element.ts",
|
|
1198
|
+
"declarations": [
|
|
1199
|
+
{
|
|
1200
|
+
"kind": "class",
|
|
1201
|
+
"description": "A foundational base class for all UIBit web components.\nProvides custom event helpers, default kebab-case attribute mapping,\nautomatic cleanup/disposable tracking, and auto-injected reset styles.",
|
|
1202
|
+
"name": "UIBitElement",
|
|
1203
|
+
"members": [
|
|
1204
|
+
{
|
|
1205
|
+
"kind": "field",
|
|
1206
|
+
"name": "locale",
|
|
1207
|
+
"type": {
|
|
1208
|
+
"text": "string"
|
|
1209
|
+
},
|
|
1210
|
+
"default": "''",
|
|
1211
|
+
"description": "BCP 47 locale string for formatting and localization. Defaults to inherited document language.",
|
|
1212
|
+
"attribute": "locale"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"kind": "field",
|
|
1216
|
+
"name": "resolvedLocale",
|
|
1217
|
+
"type": {
|
|
1218
|
+
"text": "string | undefined"
|
|
1219
|
+
},
|
|
1220
|
+
"description": "Resolves the active locale for formatting and localization.\nChecks the `locale` property first, then traverses up the DOM to find\nthe nearest ancestor with a `lang` attribute, and finally falls back\nto undefined (which defaults to browser locale).",
|
|
1221
|
+
"readonly": true
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"kind": "field",
|
|
1225
|
+
"name": "_disposables",
|
|
1226
|
+
"type": {
|
|
1227
|
+
"text": "Set<() => void>"
|
|
1228
|
+
},
|
|
1229
|
+
"privacy": "private",
|
|
1230
|
+
"default": "new Set()"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"kind": "method",
|
|
1234
|
+
"name": "createProperty",
|
|
1235
|
+
"static": true,
|
|
1236
|
+
"parameters": [
|
|
1237
|
+
{
|
|
1238
|
+
"name": "name",
|
|
1239
|
+
"type": {
|
|
1240
|
+
"text": "PropertyKey"
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "options",
|
|
1245
|
+
"optional": true,
|
|
1246
|
+
"type": {
|
|
1247
|
+
"text": "PropertyDeclaration"
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
],
|
|
1251
|
+
"description": "Overrides createProperty to automatically map camelCase property names\nto kebab-case attribute names by default."
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"kind": "method",
|
|
1255
|
+
"name": "finalizeStyles",
|
|
1256
|
+
"static": true,
|
|
1257
|
+
"return": {
|
|
1258
|
+
"type": {
|
|
1259
|
+
"text": "Array<any>"
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
"parameters": [
|
|
1263
|
+
{
|
|
1264
|
+
"name": "styles",
|
|
1265
|
+
"optional": true,
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "CSSResultGroup"
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
],
|
|
1271
|
+
"description": "Automatically prepends basic layout resets (border-box) to the\ncomponent's final styles."
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"kind": "method",
|
|
1275
|
+
"name": "dispatchCustomEvent",
|
|
1276
|
+
"return": {
|
|
1277
|
+
"type": {
|
|
1278
|
+
"text": "boolean"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
"parameters": [
|
|
1282
|
+
{
|
|
1283
|
+
"name": "name",
|
|
1284
|
+
"type": {
|
|
1285
|
+
"text": "string"
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "detail",
|
|
1290
|
+
"optional": true,
|
|
1291
|
+
"type": {
|
|
1292
|
+
"text": "T"
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "options",
|
|
1297
|
+
"optional": true,
|
|
1298
|
+
"type": {
|
|
1299
|
+
"text": "Omit<CustomEventInit<T>, 'detail'>"
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
],
|
|
1303
|
+
"description": "Helper to dispatch a custom event with standard bubbles and composed options."
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"kind": "method",
|
|
1307
|
+
"name": "getCssPropertyValue",
|
|
1308
|
+
"return": {
|
|
1309
|
+
"type": {
|
|
1310
|
+
"text": "string"
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
"parameters": [
|
|
1314
|
+
{
|
|
1315
|
+
"name": "propertyName",
|
|
1316
|
+
"type": {
|
|
1317
|
+
"text": "string"
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
],
|
|
1321
|
+
"description": "Helper to retrieve a computed CSS custom property value from the element."
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"kind": "method",
|
|
1325
|
+
"name": "registerDisposable",
|
|
1326
|
+
"parameters": [
|
|
1327
|
+
{
|
|
1328
|
+
"name": "cleanup",
|
|
1329
|
+
"type": {
|
|
1330
|
+
"text": "() => void"
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
],
|
|
1334
|
+
"description": "Register a cleanup function to be executed when the element is disconnected from the DOM."
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"kind": "method",
|
|
1338
|
+
"name": "listen",
|
|
1339
|
+
"return": {
|
|
1340
|
+
"type": {
|
|
1341
|
+
"text": "() => void"
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
"parameters": [
|
|
1345
|
+
{
|
|
1346
|
+
"name": "target",
|
|
1347
|
+
"type": {
|
|
1348
|
+
"text": "EventTarget"
|
|
1349
|
+
}
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "type",
|
|
1353
|
+
"type": {
|
|
1354
|
+
"text": "K"
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"name": "listener",
|
|
1359
|
+
"type": {
|
|
1360
|
+
"text": "(this: EventTarget, ev: HTMLElementEventMap[K]) => any"
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"name": "options",
|
|
1365
|
+
"optional": true,
|
|
1366
|
+
"type": {
|
|
1367
|
+
"text": "boolean | AddEventListenerOptions"
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
],
|
|
1371
|
+
"description": "Utility to add an event listener that is automatically cleaned up when the element is disconnected."
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"kind": "method",
|
|
1375
|
+
"name": "listen",
|
|
1376
|
+
"return": {
|
|
1377
|
+
"type": {
|
|
1378
|
+
"text": "() => void"
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"parameters": [
|
|
1382
|
+
{
|
|
1383
|
+
"name": "target",
|
|
1384
|
+
"type": {
|
|
1385
|
+
"text": "EventTarget"
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"name": "type",
|
|
1390
|
+
"type": {
|
|
1391
|
+
"text": "string"
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "listener",
|
|
1396
|
+
"type": {
|
|
1397
|
+
"text": "EventListenerOrEventListenerObject"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"name": "options",
|
|
1402
|
+
"optional": true,
|
|
1403
|
+
"type": {
|
|
1404
|
+
"text": "boolean | AddEventListenerOptions"
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
]
|
|
1408
|
+
}
|
|
1409
|
+
],
|
|
1410
|
+
"attributes": [
|
|
1411
|
+
{
|
|
1412
|
+
"name": "locale",
|
|
1413
|
+
"type": {
|
|
1414
|
+
"text": "string"
|
|
1415
|
+
},
|
|
1416
|
+
"default": "''",
|
|
1417
|
+
"description": "BCP 47 locale string for formatting and localization. Defaults to inherited document language.",
|
|
1418
|
+
"fieldName": "locale"
|
|
1419
|
+
}
|
|
1420
|
+
],
|
|
1421
|
+
"superclass": {
|
|
1422
|
+
"name": "LitElement",
|
|
1423
|
+
"package": "lit"
|
|
1424
|
+
},
|
|
1425
|
+
"customElement": true
|
|
1426
|
+
}
|
|
1427
|
+
],
|
|
1428
|
+
"exports": [
|
|
1429
|
+
{
|
|
1430
|
+
"kind": "js",
|
|
1431
|
+
"name": "UIBitElement",
|
|
1432
|
+
"declaration": {
|
|
1433
|
+
"name": "UIBitElement",
|
|
1434
|
+
"module": "../../platform/core/src/element.ts"
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
]
|
|
976
1438
|
}
|
|
977
1439
|
]
|
|
978
1440
|
}
|
|
@@ -1,93 +1,119 @@
|
|
|
1
1
|
import { Component, ChangeDetectionStrategy, ElementRef, input, effect, booleanAttribute } from '@angular/core';
|
|
2
2
|
import '@uibit/table';
|
|
3
3
|
import type { Table as HTMLElementClass } from '@uibit/table';
|
|
4
|
-
|
|
5
4
|
@Component({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
selector: 'uibit-table',
|
|
6
|
+
template: '<ng-content></ng-content>',
|
|
7
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
+
standalone: true
|
|
10
9
|
})
|
|
11
10
|
export class NgxTable {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
constructor(private el: ElementRef<HTMLElementClass>){
|
|
12
|
+
effect(()=>{
|
|
13
|
+
if (this.el.nativeElement) {
|
|
14
|
+
this.el.nativeElement.searchable = this.searchable();
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
effect(()=>{
|
|
18
|
+
if (this.el.nativeElement) {
|
|
19
|
+
this.el.nativeElement.paginated = this.paginated();
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
effect(()=>{
|
|
23
|
+
if (this.el.nativeElement) {
|
|
24
|
+
this.el.nativeElement.exportable = this.exportable();
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
effect(()=>{
|
|
28
|
+
if (this.el.nativeElement) {
|
|
29
|
+
this.el.nativeElement.selectable = this.selectable();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
effect(()=>{
|
|
33
|
+
if (this.el.nativeElement) {
|
|
34
|
+
this.el.nativeElement.filterable = this.filterable();
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
effect(()=>{
|
|
38
|
+
if (this.el.nativeElement) {
|
|
39
|
+
this.el.nativeElement.resizable = this.resizable();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
effect(()=>{
|
|
43
|
+
if (this.el.nativeElement) {
|
|
44
|
+
this.el.nativeElement.columnChooser = this.columnChooser();
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
effect(()=>{
|
|
48
|
+
if (this.el.nativeElement) {
|
|
49
|
+
this.el.nativeElement.striped = this.striped();
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
effect(()=>{
|
|
53
|
+
if (this.el.nativeElement) {
|
|
54
|
+
this.el.nativeElement.stickyHeader = this.stickyHeader();
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
effect(()=>{
|
|
58
|
+
if (this.el.nativeElement) {
|
|
59
|
+
this.el.nativeElement.pageSizes = this.pageSizes();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
effect(()=>{
|
|
63
|
+
if (this.el.nativeElement) {
|
|
64
|
+
this.el.nativeElement.controlsLayout = this.controlsLayout();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
effect(()=>{
|
|
68
|
+
if (this.el.nativeElement) {
|
|
69
|
+
this.el.nativeElement.infiniteScroll = this.infiniteScroll();
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
effect(()=>{
|
|
73
|
+
if (this.el.nativeElement) {
|
|
74
|
+
this.el.nativeElement.loading = this.loading();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
effect(()=>{
|
|
78
|
+
if (this.el.nativeElement) {
|
|
79
|
+
this.el.nativeElement.locale = this.locale();
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
readonly searchable = input<boolean, any>(true, {
|
|
84
|
+
transform: booleanAttribute
|
|
17
85
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.el.nativeElement.paginated = this.paginated();
|
|
21
|
-
}
|
|
86
|
+
readonly paginated = input<boolean, any>(true, {
|
|
87
|
+
transform: booleanAttribute
|
|
22
88
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this.el.nativeElement.exportable = this.exportable();
|
|
26
|
-
}
|
|
89
|
+
readonly exportable = input<boolean, any>(true, {
|
|
90
|
+
transform: booleanAttribute
|
|
27
91
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this.el.nativeElement.selectable = this.selectable();
|
|
31
|
-
}
|
|
92
|
+
readonly selectable = input<boolean, any>(false, {
|
|
93
|
+
transform: booleanAttribute
|
|
32
94
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.el.nativeElement.filterable = this.filterable();
|
|
36
|
-
}
|
|
95
|
+
readonly filterable = input<boolean, any>(false, {
|
|
96
|
+
transform: booleanAttribute
|
|
37
97
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.el.nativeElement.resizable = this.resizable();
|
|
41
|
-
}
|
|
98
|
+
readonly resizable = input<boolean, any>(false, {
|
|
99
|
+
transform: booleanAttribute
|
|
42
100
|
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.el.nativeElement.columnChooser = this.columnChooser();
|
|
46
|
-
}
|
|
101
|
+
readonly columnChooser = input<boolean, any>(false, {
|
|
102
|
+
transform: booleanAttribute
|
|
47
103
|
});
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
this.el.nativeElement.striped = this.striped();
|
|
51
|
-
}
|
|
104
|
+
readonly striped = input<boolean, any>(false, {
|
|
105
|
+
transform: booleanAttribute
|
|
52
106
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
this.el.nativeElement.stickyHeader = this.stickyHeader();
|
|
56
|
-
}
|
|
107
|
+
readonly stickyHeader = input<boolean, any>(false, {
|
|
108
|
+
transform: booleanAttribute
|
|
57
109
|
});
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
110
|
+
readonly pageSizes = input<string>('10,25,50,100');
|
|
111
|
+
readonly controlsLayout = input<'inline' | 'menu'>('inline');
|
|
112
|
+
readonly infiniteScroll = input<boolean, any>(false, {
|
|
113
|
+
transform: booleanAttribute
|
|
62
114
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
this.el.nativeElement.controlsLayout = this.controlsLayout();
|
|
66
|
-
}
|
|
115
|
+
readonly loading = input<boolean, any>(false, {
|
|
116
|
+
transform: booleanAttribute
|
|
67
117
|
});
|
|
68
|
-
|
|
69
|
-
if (this.el.nativeElement) {
|
|
70
|
-
this.el.nativeElement.infiniteScroll = this.infiniteScroll();
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
effect(() => {
|
|
74
|
-
if (this.el.nativeElement) {
|
|
75
|
-
this.el.nativeElement.loading = this.loading();
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
readonly searchable = input<boolean, any>(true, { transform: booleanAttribute });
|
|
81
|
-
readonly paginated = input<boolean, any>(true, { transform: booleanAttribute });
|
|
82
|
-
readonly exportable = input<boolean, any>(true, { transform: booleanAttribute });
|
|
83
|
-
readonly selectable = input<boolean, any>(false, { transform: booleanAttribute });
|
|
84
|
-
readonly filterable = input<boolean, any>(false, { transform: booleanAttribute });
|
|
85
|
-
readonly resizable = input<boolean, any>(false, { transform: booleanAttribute });
|
|
86
|
-
readonly columnChooser = input<boolean, any>(false, { transform: booleanAttribute });
|
|
87
|
-
readonly striped = input<boolean, any>(false, { transform: booleanAttribute });
|
|
88
|
-
readonly stickyHeader = input<boolean, any>(false, { transform: booleanAttribute });
|
|
89
|
-
readonly pageSizes = input<string, any>('10,25,50,100');
|
|
90
|
-
readonly controlsLayout = input<'inline' | 'menu', any>('inline');
|
|
91
|
-
readonly infiniteScroll = input<boolean, any>(false, { transform: booleanAttribute });
|
|
92
|
-
readonly loading = input<boolean, any>(false, { transform: booleanAttribute });
|
|
118
|
+
readonly locale = input<string>('');
|
|
93
119
|
}
|