@kubex/zinc 1.0.6 → 1.0.8
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 +464 -34
- package/dist/vscode.html-custom-data.json +38 -6
- package/dist/web-types.json +97 -10
- package/dist/zn.d.ts +73 -8
- package/dist/zn.min.js +393 -349
- package/docs/data/products-table.json +203 -0
- package/docs/pages/components/button.md +25 -0
- package/docs/pages/components/data-table.md +21 -0
- package/docs/pages/components/header.md +7 -0
- package/docs/pages/components/order-table.md +82 -5
- package/package.json +1 -1
- package/src/components/button/button.component.ts +168 -10
- package/src/components/button/button.scss +115 -0
- package/src/components/content-block/content-block.component.ts +186 -107
- package/src/components/content-block/content-block.scss +4 -2
- package/src/components/data-select/data-select.component.ts +50 -10
- package/src/components/data-table/data-table.component.ts +130 -43
- package/src/components/data-table/data-table.scss +85 -7
- package/src/components/data-table-filter/data-table-filter.component.ts +1 -1
- package/src/components/editor/editor.scss +1 -0
- package/src/components/editor/modules/attachment/attachment.ts +53 -41
- package/src/components/editor/modules/toolbar/toolbar.ts +42 -0
- package/src/components/empty-state/empty-state.component.ts +16 -8
- package/src/components/expanding-action/expanding-action.component.ts +1 -1
- package/src/components/header/header.component.ts +8 -2
- package/src/components/header/header.scss +5 -1
- package/src/components/icon/icon.component.ts +2 -0
- package/src/components/icon/icon.scss +13 -0
- package/src/components/item/item.component.ts +11 -3
- package/src/components/item/item.scss +7 -4
- package/src/components/linked-select/linked-select.component.ts +1 -0
- package/src/components/menu/menu.component.ts +0 -1
- package/src/components/navbar/navbar.component.ts +1 -1
- package/src/components/note/note.component.ts +70 -2
- package/src/components/note/note.scss +26 -4
- package/src/components/order-table/order-table.component.ts +49 -28
- package/src/components/panel/panel.component.ts +5 -1
- package/src/components/panel/panel.scss +6 -0
- package/src/components/rating/rating.component.ts +10 -9
- package/src/components/rating/rating.scss +15 -1
|
@@ -693,6 +693,10 @@
|
|
|
693
693
|
{
|
|
694
694
|
"description": "A presentational suffix icon or similar element.",
|
|
695
695
|
"name": "suffix"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"description": "Slot for custom cancel button/content when autoClick is active.",
|
|
699
|
+
"name": "cancel"
|
|
696
700
|
}
|
|
697
701
|
],
|
|
698
702
|
"members": [
|
|
@@ -719,6 +723,23 @@
|
|
|
719
723
|
"readonly": true,
|
|
720
724
|
"default": "new HasSlotController(this, '[default]')"
|
|
721
725
|
},
|
|
726
|
+
{
|
|
727
|
+
"kind": "field",
|
|
728
|
+
"name": "_autoClickTimeout",
|
|
729
|
+
"type": {
|
|
730
|
+
"text": "number | undefined"
|
|
731
|
+
},
|
|
732
|
+
"privacy": "private"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"kind": "field",
|
|
736
|
+
"name": "_loadingState",
|
|
737
|
+
"type": {
|
|
738
|
+
"text": "object"
|
|
739
|
+
},
|
|
740
|
+
"privacy": "private",
|
|
741
|
+
"default": "{ countdown: null as number | null, interval: undefined as number | undefined, }"
|
|
742
|
+
},
|
|
722
743
|
{
|
|
723
744
|
"kind": "field",
|
|
724
745
|
"name": "button",
|
|
@@ -726,6 +747,13 @@
|
|
|
726
747
|
"text": "HTMLButtonElement"
|
|
727
748
|
}
|
|
728
749
|
},
|
|
750
|
+
{
|
|
751
|
+
"kind": "field",
|
|
752
|
+
"name": "countdownContainer",
|
|
753
|
+
"type": {
|
|
754
|
+
"text": "HTMLElement[]"
|
|
755
|
+
}
|
|
756
|
+
},
|
|
729
757
|
{
|
|
730
758
|
"kind": "field",
|
|
731
759
|
"name": "color",
|
|
@@ -988,6 +1016,51 @@
|
|
|
988
1016
|
},
|
|
989
1017
|
"attribute": "tooltip"
|
|
990
1018
|
},
|
|
1019
|
+
{
|
|
1020
|
+
"kind": "field",
|
|
1021
|
+
"name": "autoClick",
|
|
1022
|
+
"type": {
|
|
1023
|
+
"text": "boolean"
|
|
1024
|
+
},
|
|
1025
|
+
"default": "false",
|
|
1026
|
+
"attribute": "auto-click"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "field",
|
|
1030
|
+
"name": "autoClickDelay",
|
|
1031
|
+
"type": {
|
|
1032
|
+
"text": "number"
|
|
1033
|
+
},
|
|
1034
|
+
"default": "2000",
|
|
1035
|
+
"attribute": "auto-click-delay"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"kind": "field",
|
|
1039
|
+
"name": "loadingText",
|
|
1040
|
+
"type": {
|
|
1041
|
+
"text": "string"
|
|
1042
|
+
},
|
|
1043
|
+
"default": "'Loading...'",
|
|
1044
|
+
"attribute": "loading-text"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "field",
|
|
1048
|
+
"name": "loadingTextPosition",
|
|
1049
|
+
"type": {
|
|
1050
|
+
"text": "'left' | 'right' | 'center' | string"
|
|
1051
|
+
},
|
|
1052
|
+
"default": "'center'",
|
|
1053
|
+
"attribute": "loading-text-position"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"kind": "field",
|
|
1057
|
+
"name": "loading",
|
|
1058
|
+
"type": {
|
|
1059
|
+
"text": "boolean"
|
|
1060
|
+
},
|
|
1061
|
+
"default": "false",
|
|
1062
|
+
"attribute": "loading"
|
|
1063
|
+
},
|
|
991
1064
|
{
|
|
992
1065
|
"kind": "field",
|
|
993
1066
|
"name": "validity",
|
|
@@ -1040,6 +1113,18 @@
|
|
|
1040
1113
|
"kind": "method",
|
|
1041
1114
|
"name": "_isButton",
|
|
1042
1115
|
"privacy": "private"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"kind": "method",
|
|
1119
|
+
"name": "setupAutoClick"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"kind": "method",
|
|
1123
|
+
"name": "updateCountdownText"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"kind": "method",
|
|
1127
|
+
"name": "teardownAutoClick"
|
|
1043
1128
|
}
|
|
1044
1129
|
],
|
|
1045
1130
|
"events": [
|
|
@@ -1287,6 +1372,46 @@
|
|
|
1287
1372
|
"text": "string"
|
|
1288
1373
|
},
|
|
1289
1374
|
"fieldName": "tooltip"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"name": "auto-click",
|
|
1378
|
+
"type": {
|
|
1379
|
+
"text": "boolean"
|
|
1380
|
+
},
|
|
1381
|
+
"default": "false",
|
|
1382
|
+
"fieldName": "autoClick"
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "auto-click-delay",
|
|
1386
|
+
"type": {
|
|
1387
|
+
"text": "number"
|
|
1388
|
+
},
|
|
1389
|
+
"default": "2000",
|
|
1390
|
+
"fieldName": "autoClickDelay"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"name": "loading-text",
|
|
1394
|
+
"type": {
|
|
1395
|
+
"text": "string"
|
|
1396
|
+
},
|
|
1397
|
+
"default": "'Loading...'",
|
|
1398
|
+
"fieldName": "loadingText"
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"name": "loading-text-position",
|
|
1402
|
+
"type": {
|
|
1403
|
+
"text": "'left' | 'right' | 'center' | string"
|
|
1404
|
+
},
|
|
1405
|
+
"default": "'center'",
|
|
1406
|
+
"fieldName": "loadingTextPosition"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"name": "loading",
|
|
1410
|
+
"type": {
|
|
1411
|
+
"text": "boolean"
|
|
1412
|
+
},
|
|
1413
|
+
"default": "false",
|
|
1414
|
+
"fieldName": "loading"
|
|
1290
1415
|
}
|
|
1291
1416
|
],
|
|
1292
1417
|
"superclass": {
|
|
@@ -1297,7 +1422,7 @@
|
|
|
1297
1422
|
"tagNameWithoutPrefix": "button",
|
|
1298
1423
|
"tagName": "zn-button",
|
|
1299
1424
|
"customElement": true,
|
|
1300
|
-
"jsDoc": "/**\n * @summary Buttons represent actions that are available to the user.\n * @documentation https://inc.style/components/button\n * @status stable\n * @since 2.0\n *\n * @dependency zn-icon\n * @dependency zn-tooltip\n *\n * @event zn-blur - Emitted when the button loses focus.\n * @event zn-focus - Emitted when the button gains focus.\n * @event zn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @slot - The button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n *\n * @csspart base - The component's base wrapper.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The button's label.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart caret - The button's caret icon, an `<zn-icon>` element.\n * @csspart spinner - The spinner that shows when the button is in the loading state.\n */",
|
|
1425
|
+
"jsDoc": "/**\n * @summary Buttons represent actions that are available to the user.\n * @documentation https://inc.style/components/button\n * @status stable\n * @since 2.0\n *\n * @dependency zn-icon\n * @dependency zn-tooltip\n *\n * @event zn-blur - Emitted when the button loses focus.\n * @event zn-focus - Emitted when the button gains focus.\n * @event zn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @slot - The button's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n * @slot cancel - Slot for custom cancel button/content when autoClick is active.\n *\n * @csspart base - The component's base wrapper.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart label - The button's label.\n * @csspart suffix - The container that wraps the suffix.\n * @csspart caret - The button's caret icon, an `<zn-icon>` element.\n * @csspart spinner - The spinner that shows when the button is in the loading state.\n */",
|
|
1301
1426
|
"documentation": "https://inc.style/components/button",
|
|
1302
1427
|
"status": "stable",
|
|
1303
1428
|
"since": "2.0",
|
|
@@ -4092,6 +4217,15 @@
|
|
|
4092
4217
|
"attribute": "outbound",
|
|
4093
4218
|
"reflects": true
|
|
4094
4219
|
},
|
|
4220
|
+
{
|
|
4221
|
+
"kind": "field",
|
|
4222
|
+
"name": "noCollapse",
|
|
4223
|
+
"type": {
|
|
4224
|
+
"text": "boolean"
|
|
4225
|
+
},
|
|
4226
|
+
"default": "false",
|
|
4227
|
+
"attribute": "no-collapse"
|
|
4228
|
+
},
|
|
4095
4229
|
{
|
|
4096
4230
|
"kind": "field",
|
|
4097
4231
|
"name": "short",
|
|
@@ -4144,12 +4278,21 @@
|
|
|
4144
4278
|
},
|
|
4145
4279
|
{
|
|
4146
4280
|
"kind": "field",
|
|
4147
|
-
"name": "
|
|
4281
|
+
"name": "_footerObserver",
|
|
4148
4282
|
"type": {
|
|
4149
4283
|
"text": "MutationObserver | undefined"
|
|
4150
4284
|
},
|
|
4151
4285
|
"privacy": "private"
|
|
4152
4286
|
},
|
|
4287
|
+
{
|
|
4288
|
+
"kind": "field",
|
|
4289
|
+
"name": "_replaceDebounce",
|
|
4290
|
+
"type": {
|
|
4291
|
+
"text": "number"
|
|
4292
|
+
},
|
|
4293
|
+
"privacy": "private",
|
|
4294
|
+
"default": "0"
|
|
4295
|
+
},
|
|
4153
4296
|
{
|
|
4154
4297
|
"kind": "method",
|
|
4155
4298
|
"name": "_collapseContent",
|
|
@@ -4175,37 +4318,56 @@
|
|
|
4175
4318
|
},
|
|
4176
4319
|
{
|
|
4177
4320
|
"kind": "method",
|
|
4178
|
-
"name": "
|
|
4179
|
-
"privacy": "
|
|
4321
|
+
"name": "_resizeIframe",
|
|
4322
|
+
"privacy": "private",
|
|
4323
|
+
"parameters": [
|
|
4324
|
+
{
|
|
4325
|
+
"name": "iframe",
|
|
4326
|
+
"optional": true,
|
|
4327
|
+
"type": {
|
|
4328
|
+
"text": "HTMLIFrameElement"
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
]
|
|
4180
4332
|
},
|
|
4181
4333
|
{
|
|
4182
4334
|
"kind": "method",
|
|
4183
|
-
"name": "
|
|
4184
|
-
"privacy": "protected"
|
|
4185
|
-
"return": {
|
|
4186
|
-
"type": {
|
|
4187
|
-
"text": "TextRow[]"
|
|
4188
|
-
}
|
|
4189
|
-
}
|
|
4335
|
+
"name": "truncateText",
|
|
4336
|
+
"privacy": "protected"
|
|
4190
4337
|
},
|
|
4191
4338
|
{
|
|
4192
4339
|
"kind": "method",
|
|
4193
|
-
"name": "
|
|
4340
|
+
"name": "_handleSlotChange",
|
|
4194
4341
|
"privacy": "private",
|
|
4195
|
-
"return": {
|
|
4196
|
-
"type": {
|
|
4197
|
-
"text": "string"
|
|
4198
|
-
}
|
|
4199
|
-
},
|
|
4200
4342
|
"parameters": [
|
|
4201
4343
|
{
|
|
4202
|
-
"name": "
|
|
4344
|
+
"name": "e",
|
|
4203
4345
|
"type": {
|
|
4204
|
-
"text": "
|
|
4346
|
+
"text": "Event"
|
|
4205
4347
|
}
|
|
4206
4348
|
}
|
|
4207
4349
|
]
|
|
4208
4350
|
},
|
|
4351
|
+
{
|
|
4352
|
+
"kind": "method",
|
|
4353
|
+
"name": "_debouncedReplace",
|
|
4354
|
+
"privacy": "private"
|
|
4355
|
+
},
|
|
4356
|
+
{
|
|
4357
|
+
"kind": "method",
|
|
4358
|
+
"name": "_replaceImagePlaceholders",
|
|
4359
|
+
"privacy": "private"
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
"kind": "method",
|
|
4363
|
+
"name": "getTextSections",
|
|
4364
|
+
"privacy": "protected",
|
|
4365
|
+
"return": {
|
|
4366
|
+
"type": {
|
|
4367
|
+
"text": "TextRow[]"
|
|
4368
|
+
}
|
|
4369
|
+
}
|
|
4370
|
+
},
|
|
4209
4371
|
{
|
|
4210
4372
|
"kind": "method",
|
|
4211
4373
|
"name": "showReply",
|
|
@@ -4252,6 +4414,14 @@
|
|
|
4252
4414
|
"default": "false",
|
|
4253
4415
|
"fieldName": "outbound"
|
|
4254
4416
|
},
|
|
4417
|
+
{
|
|
4418
|
+
"name": "no-collapse",
|
|
4419
|
+
"type": {
|
|
4420
|
+
"text": "boolean"
|
|
4421
|
+
},
|
|
4422
|
+
"default": "false",
|
|
4423
|
+
"fieldName": "noCollapse"
|
|
4424
|
+
},
|
|
4255
4425
|
{
|
|
4256
4426
|
"name": "short",
|
|
4257
4427
|
"type": {
|
|
@@ -4573,6 +4743,7 @@
|
|
|
4573
4743
|
"text": "'start' | 'end' | 'none'"
|
|
4574
4744
|
},
|
|
4575
4745
|
"default": "'none'",
|
|
4746
|
+
"description": "The position of the icon.",
|
|
4576
4747
|
"attribute": "icon-position"
|
|
4577
4748
|
},
|
|
4578
4749
|
{
|
|
@@ -4676,6 +4847,16 @@
|
|
|
4676
4847
|
"attribute": "required",
|
|
4677
4848
|
"reflects": true
|
|
4678
4849
|
},
|
|
4850
|
+
{
|
|
4851
|
+
"kind": "field",
|
|
4852
|
+
"name": "iconOnly",
|
|
4853
|
+
"type": {
|
|
4854
|
+
"text": "boolean"
|
|
4855
|
+
},
|
|
4856
|
+
"default": "false",
|
|
4857
|
+
"attribute": "icon-only",
|
|
4858
|
+
"reflects": true
|
|
4859
|
+
},
|
|
4679
4860
|
{
|
|
4680
4861
|
"kind": "field",
|
|
4681
4862
|
"name": "formControlController",
|
|
@@ -4781,6 +4962,19 @@
|
|
|
4781
4962
|
"kind": "method",
|
|
4782
4963
|
"name": "_updatePrefix",
|
|
4783
4964
|
"privacy": "private"
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
"kind": "method",
|
|
4968
|
+
"name": "getPlaceholder",
|
|
4969
|
+
"privacy": "private",
|
|
4970
|
+
"parameters": [
|
|
4971
|
+
{
|
|
4972
|
+
"name": "localProvider",
|
|
4973
|
+
"type": {
|
|
4974
|
+
"text": "LocalDataProvider<any>"
|
|
4975
|
+
}
|
|
4976
|
+
}
|
|
4977
|
+
]
|
|
4784
4978
|
}
|
|
4785
4979
|
],
|
|
4786
4980
|
"events": [
|
|
@@ -4820,6 +5014,7 @@
|
|
|
4820
5014
|
"text": "'start' | 'end' | 'none'"
|
|
4821
5015
|
},
|
|
4822
5016
|
"default": "'none'",
|
|
5017
|
+
"description": "The position of the icon.",
|
|
4823
5018
|
"fieldName": "iconPosition"
|
|
4824
5019
|
},
|
|
4825
5020
|
{
|
|
@@ -4909,6 +5104,14 @@
|
|
|
4909
5104
|
"default": "false",
|
|
4910
5105
|
"description": "The selects required attribute.",
|
|
4911
5106
|
"fieldName": "required"
|
|
5107
|
+
},
|
|
5108
|
+
{
|
|
5109
|
+
"name": "icon-only",
|
|
5110
|
+
"type": {
|
|
5111
|
+
"text": "boolean"
|
|
5112
|
+
},
|
|
5113
|
+
"default": "false",
|
|
5114
|
+
"fieldName": "iconOnly"
|
|
4912
5115
|
}
|
|
4913
5116
|
],
|
|
4914
5117
|
"superclass": {
|
|
@@ -5161,6 +5364,31 @@
|
|
|
5161
5364
|
"default": "false",
|
|
5162
5365
|
"attribute": "no-initial-load"
|
|
5163
5366
|
},
|
|
5367
|
+
{
|
|
5368
|
+
"kind": "field",
|
|
5369
|
+
"name": "groupBy",
|
|
5370
|
+
"type": {
|
|
5371
|
+
"text": "string"
|
|
5372
|
+
},
|
|
5373
|
+
"default": "''",
|
|
5374
|
+
"attribute": "group-by"
|
|
5375
|
+
},
|
|
5376
|
+
{
|
|
5377
|
+
"kind": "field",
|
|
5378
|
+
"name": "groups",
|
|
5379
|
+
"type": {
|
|
5380
|
+
"text": "string"
|
|
5381
|
+
},
|
|
5382
|
+
"default": "''",
|
|
5383
|
+
"attribute": "groups"
|
|
5384
|
+
},
|
|
5385
|
+
{
|
|
5386
|
+
"kind": "field",
|
|
5387
|
+
"name": "selectAllButton",
|
|
5388
|
+
"type": {
|
|
5389
|
+
"text": "ZnButton"
|
|
5390
|
+
}
|
|
5391
|
+
},
|
|
5164
5392
|
{
|
|
5165
5393
|
"kind": "field",
|
|
5166
5394
|
"name": "_initialLoad",
|
|
@@ -5258,7 +5486,7 @@
|
|
|
5258
5486
|
"kind": "field",
|
|
5259
5487
|
"name": "_dataTask",
|
|
5260
5488
|
"privacy": "private",
|
|
5261
|
-
"default": "new Task(this, { task: async ([dataUri, requestParams], {signal}) => { if (dataUri === undefined || this.noInitialLoad && this._initialLoad) { return {rows: [], page: 1, perPage: this.itemsPerPage, total: 0}; } const requestData: DataRequest = { page: this.page, perPage: this.itemsPerPage, sortColumn: this.sortColumn, sortDirection: this.sortDirection, filter: this.filter, }; // get all inputs that are in the inputs slot and add them to the const inputs = this.hasSlotController.getSlots(ActionSlots.inputs.valueOf()); const params: Record<string, any> = {}; if (inputs) { inputs.forEach((input) => { const allowedInputs = ['zn-input', 'zn-select', 'zn-query-builder', 'zn-multiselect', 'zn-params-select', 'input', 'select', 'textarea']; if (allowedInputs.includes(input.tagName.toLowerCase())) { const value = (input as AllowedInputElement).value as string || input.getAttribute('value'); const name = (input as AllowedInputElement).name || input.getAttribute('name'); if (name) { params[name] = value; } } }); Object.assign(requestData, params); } // Add any extra request params if (requestParams && typeof requestParams === 'object') { Object.assign(requestData, requestParams); } // This is also used for Rubix, so it may not work for your application. const response = await fetch(dataUri, { method: this.method, headers: { 'x-kx-fetch-style': 'zn-data-table', }, signal, credentials: 'same-origin', body: this.method === 'POST' ? JSON.stringify(requestData) : undefined }); if (!response.ok) throw new Error(response.statusText); return response.json(); }, args: () => [this.dataUri, this.requestParams] })"
|
|
5489
|
+
"default": "new Task(this, { task: async ([dataUri, requestParams], {signal}) => { if (dataUri === undefined || this.noInitialLoad && this._initialLoad) { return {rows: [], page: 1, perPage: this.itemsPerPage, total: 0}; } if (this.groupBy) { // we want to load all the data possible so we can group and show multiple tables this.itemsPerPage = 1000; } const requestData: DataRequest = { page: this.page, perPage: this.itemsPerPage, sortColumn: this.sortColumn, sortDirection: this.sortDirection, filter: this.filter, }; // get all inputs that are in the inputs slot and add them to the const inputs = this.hasSlotController.getSlots(ActionSlots.inputs.valueOf()); const params: Record<string, any> = {}; if (inputs) { inputs.forEach((input) => { const allowedInputs = ['zn-input', 'zn-select', 'zn-query-builder', 'zn-multiselect', 'zn-params-select', 'input', 'select', 'textarea']; if (allowedInputs.includes(input.tagName.toLowerCase())) { const value = (input as AllowedInputElement).value as string || input.getAttribute('value'); const name = (input as AllowedInputElement).name || input.getAttribute('name'); if (name) { params[name] = value; } } }); Object.assign(requestData, params); } // Add any extra request params if (requestParams && typeof requestParams === 'object') { Object.assign(requestData, requestParams); } // This is also used for Rubix, so it may not work for your application. const response = await fetch(dataUri, { method: this.method, headers: { 'x-kx-fetch-style': 'zn-data-table', }, signal, credentials: 'same-origin', body: this.method === 'POST' ? JSON.stringify(requestData) : undefined }); if (!response.ok) throw new Error(response.statusText); return response.json(); }, args: () => [this.dataUri, this.requestParams] })"
|
|
5262
5490
|
},
|
|
5263
5491
|
{
|
|
5264
5492
|
"kind": "field",
|
|
@@ -5277,14 +5505,6 @@
|
|
|
5277
5505
|
},
|
|
5278
5506
|
"default": "{}"
|
|
5279
5507
|
},
|
|
5280
|
-
{
|
|
5281
|
-
"kind": "field",
|
|
5282
|
-
"name": "builtinRequestParams",
|
|
5283
|
-
"type": {
|
|
5284
|
-
"text": "Record<string, any>"
|
|
5285
|
-
},
|
|
5286
|
-
"default": "{}"
|
|
5287
|
-
},
|
|
5288
5508
|
{
|
|
5289
5509
|
"kind": "method",
|
|
5290
5510
|
"name": "refresh"
|
|
@@ -5309,6 +5529,32 @@
|
|
|
5309
5529
|
}
|
|
5310
5530
|
]
|
|
5311
5531
|
},
|
|
5532
|
+
{
|
|
5533
|
+
"kind": "method",
|
|
5534
|
+
"name": "humanize",
|
|
5535
|
+
"privacy": "public",
|
|
5536
|
+
"parameters": [
|
|
5537
|
+
{
|
|
5538
|
+
"name": "str",
|
|
5539
|
+
"type": {
|
|
5540
|
+
"text": "string"
|
|
5541
|
+
}
|
|
5542
|
+
}
|
|
5543
|
+
]
|
|
5544
|
+
},
|
|
5545
|
+
{
|
|
5546
|
+
"kind": "method",
|
|
5547
|
+
"name": "renderTableData",
|
|
5548
|
+
"privacy": "public",
|
|
5549
|
+
"parameters": [
|
|
5550
|
+
{
|
|
5551
|
+
"name": "data",
|
|
5552
|
+
"type": {
|
|
5553
|
+
"text": "any"
|
|
5554
|
+
}
|
|
5555
|
+
}
|
|
5556
|
+
]
|
|
5557
|
+
},
|
|
5312
5558
|
{
|
|
5313
5559
|
"kind": "method",
|
|
5314
5560
|
"name": "getTableHeader"
|
|
@@ -5487,6 +5733,24 @@
|
|
|
5487
5733
|
}
|
|
5488
5734
|
]
|
|
5489
5735
|
},
|
|
5736
|
+
{
|
|
5737
|
+
"kind": "method",
|
|
5738
|
+
"name": "isRowSelected",
|
|
5739
|
+
"privacy": "private",
|
|
5740
|
+
"return": {
|
|
5741
|
+
"type": {
|
|
5742
|
+
"text": "boolean"
|
|
5743
|
+
}
|
|
5744
|
+
},
|
|
5745
|
+
"parameters": [
|
|
5746
|
+
{
|
|
5747
|
+
"name": "row",
|
|
5748
|
+
"type": {
|
|
5749
|
+
"text": "Row"
|
|
5750
|
+
}
|
|
5751
|
+
}
|
|
5752
|
+
]
|
|
5753
|
+
},
|
|
5490
5754
|
{
|
|
5491
5755
|
"kind": "method",
|
|
5492
5756
|
"name": "getRows",
|
|
@@ -5520,6 +5784,11 @@
|
|
|
5520
5784
|
"name": "updateKeys",
|
|
5521
5785
|
"privacy": "private"
|
|
5522
5786
|
},
|
|
5787
|
+
{
|
|
5788
|
+
"kind": "method",
|
|
5789
|
+
"name": "updateSelectAll",
|
|
5790
|
+
"privacy": "private"
|
|
5791
|
+
},
|
|
5523
5792
|
{
|
|
5524
5793
|
"kind": "method",
|
|
5525
5794
|
"name": "updateModifyKeys",
|
|
@@ -5752,6 +6021,22 @@
|
|
|
5752
6021
|
},
|
|
5753
6022
|
"default": "false",
|
|
5754
6023
|
"fieldName": "noInitialLoad"
|
|
6024
|
+
},
|
|
6025
|
+
{
|
|
6026
|
+
"name": "group-by",
|
|
6027
|
+
"type": {
|
|
6028
|
+
"text": "string"
|
|
6029
|
+
},
|
|
6030
|
+
"default": "''",
|
|
6031
|
+
"fieldName": "groupBy"
|
|
6032
|
+
},
|
|
6033
|
+
{
|
|
6034
|
+
"name": "groups",
|
|
6035
|
+
"type": {
|
|
6036
|
+
"text": "string"
|
|
6037
|
+
},
|
|
6038
|
+
"default": "''",
|
|
6039
|
+
"fieldName": "groups"
|
|
5755
6040
|
}
|
|
5756
6041
|
],
|
|
5757
6042
|
"superclass": {
|
|
@@ -8058,6 +8343,13 @@
|
|
|
8058
8343
|
},
|
|
8059
8344
|
"default": "false",
|
|
8060
8345
|
"attribute": "padded"
|
|
8346
|
+
},
|
|
8347
|
+
{
|
|
8348
|
+
"kind": "field",
|
|
8349
|
+
"name": "hasSlotController",
|
|
8350
|
+
"privacy": "private",
|
|
8351
|
+
"readonly": true,
|
|
8352
|
+
"default": "new HasSlotController(this, '[default]', 'caption', 'description')"
|
|
8061
8353
|
}
|
|
8062
8354
|
],
|
|
8063
8355
|
"events": [
|
|
@@ -9607,6 +9899,14 @@
|
|
|
9607
9899
|
},
|
|
9608
9900
|
"attribute": "caption"
|
|
9609
9901
|
},
|
|
9902
|
+
{
|
|
9903
|
+
"kind": "field",
|
|
9904
|
+
"name": "icon",
|
|
9905
|
+
"type": {
|
|
9906
|
+
"text": "string"
|
|
9907
|
+
},
|
|
9908
|
+
"attribute": "icon"
|
|
9909
|
+
},
|
|
9610
9910
|
{
|
|
9611
9911
|
"kind": "field",
|
|
9612
9912
|
"name": "description",
|
|
@@ -9712,6 +10012,13 @@
|
|
|
9712
10012
|
},
|
|
9713
10013
|
"fieldName": "caption"
|
|
9714
10014
|
},
|
|
10015
|
+
{
|
|
10016
|
+
"name": "icon",
|
|
10017
|
+
"type": {
|
|
10018
|
+
"text": "string"
|
|
10019
|
+
},
|
|
10020
|
+
"fieldName": "icon"
|
|
10021
|
+
},
|
|
9715
10022
|
{
|
|
9716
10023
|
"name": "description",
|
|
9717
10024
|
"type": {
|
|
@@ -10176,6 +10483,15 @@
|
|
|
10176
10483
|
"default": "false",
|
|
10177
10484
|
"attribute": "padded"
|
|
10178
10485
|
},
|
|
10486
|
+
{
|
|
10487
|
+
"kind": "field",
|
|
10488
|
+
"name": "blink",
|
|
10489
|
+
"type": {
|
|
10490
|
+
"text": "boolean"
|
|
10491
|
+
},
|
|
10492
|
+
"default": "false",
|
|
10493
|
+
"attribute": "blink"
|
|
10494
|
+
},
|
|
10179
10495
|
{
|
|
10180
10496
|
"kind": "field",
|
|
10181
10497
|
"name": "squared",
|
|
@@ -10308,6 +10624,14 @@
|
|
|
10308
10624
|
"default": "false",
|
|
10309
10625
|
"fieldName": "padded"
|
|
10310
10626
|
},
|
|
10627
|
+
{
|
|
10628
|
+
"name": "blink",
|
|
10629
|
+
"type": {
|
|
10630
|
+
"text": "boolean"
|
|
10631
|
+
},
|
|
10632
|
+
"default": "false",
|
|
10633
|
+
"fieldName": "blink"
|
|
10634
|
+
},
|
|
10311
10635
|
{
|
|
10312
10636
|
"name": "squared",
|
|
10313
10637
|
"type": {
|
|
@@ -12066,6 +12390,16 @@
|
|
|
12066
12390
|
"text": "boolean"
|
|
12067
12391
|
},
|
|
12068
12392
|
"attribute": "align-end"
|
|
12393
|
+
},
|
|
12394
|
+
{
|
|
12395
|
+
"kind": "method",
|
|
12396
|
+
"name": "_hasContent",
|
|
12397
|
+
"privacy": "protected",
|
|
12398
|
+
"return": {
|
|
12399
|
+
"type": {
|
|
12400
|
+
"text": "boolean"
|
|
12401
|
+
}
|
|
12402
|
+
}
|
|
12069
12403
|
}
|
|
12070
12404
|
],
|
|
12071
12405
|
"attributes": [
|
|
@@ -13464,6 +13798,44 @@
|
|
|
13464
13798
|
"default": "''",
|
|
13465
13799
|
"attribute": "body",
|
|
13466
13800
|
"reflects": true
|
|
13801
|
+
},
|
|
13802
|
+
{
|
|
13803
|
+
"kind": "field",
|
|
13804
|
+
"name": "collapseAtLines",
|
|
13805
|
+
"type": {
|
|
13806
|
+
"text": "number"
|
|
13807
|
+
},
|
|
13808
|
+
"default": "3",
|
|
13809
|
+
"attribute": "collapse-at-lines",
|
|
13810
|
+
"reflects": true
|
|
13811
|
+
},
|
|
13812
|
+
{
|
|
13813
|
+
"kind": "field",
|
|
13814
|
+
"name": "expanded",
|
|
13815
|
+
"type": {
|
|
13816
|
+
"text": "boolean"
|
|
13817
|
+
},
|
|
13818
|
+
"privacy": "private",
|
|
13819
|
+
"default": "false"
|
|
13820
|
+
},
|
|
13821
|
+
{
|
|
13822
|
+
"kind": "field",
|
|
13823
|
+
"name": "_isOverflowing",
|
|
13824
|
+
"type": {
|
|
13825
|
+
"text": "boolean"
|
|
13826
|
+
},
|
|
13827
|
+
"privacy": "private",
|
|
13828
|
+
"default": "false"
|
|
13829
|
+
},
|
|
13830
|
+
{
|
|
13831
|
+
"kind": "field",
|
|
13832
|
+
"name": "_toggleExpand",
|
|
13833
|
+
"privacy": "private"
|
|
13834
|
+
},
|
|
13835
|
+
{
|
|
13836
|
+
"kind": "method",
|
|
13837
|
+
"name": "_measureOverflow",
|
|
13838
|
+
"privacy": "private"
|
|
13467
13839
|
}
|
|
13468
13840
|
],
|
|
13469
13841
|
"events": [
|
|
@@ -13503,6 +13875,14 @@
|
|
|
13503
13875
|
},
|
|
13504
13876
|
"default": "''",
|
|
13505
13877
|
"fieldName": "body"
|
|
13878
|
+
},
|
|
13879
|
+
{
|
|
13880
|
+
"name": "collapse-at-lines",
|
|
13881
|
+
"type": {
|
|
13882
|
+
"text": "number"
|
|
13883
|
+
},
|
|
13884
|
+
"default": "3",
|
|
13885
|
+
"fieldName": "collapseAtLines"
|
|
13506
13886
|
}
|
|
13507
13887
|
],
|
|
13508
13888
|
"superclass": {
|
|
@@ -13780,7 +14160,7 @@
|
|
|
13780
14160
|
"kind": "field",
|
|
13781
14161
|
"name": "data",
|
|
13782
14162
|
"type": {
|
|
13783
|
-
"text": "
|
|
14163
|
+
"text": "OrderTableData"
|
|
13784
14164
|
},
|
|
13785
14165
|
"attribute": "data",
|
|
13786
14166
|
"reflects": true
|
|
@@ -13798,10 +14178,13 @@
|
|
|
13798
14178
|
"kind": "field",
|
|
13799
14179
|
"name": "modifiedData",
|
|
13800
14180
|
"type": {
|
|
13801
|
-
"text": "
|
|
14181
|
+
"text": "OrderTableData"
|
|
13802
14182
|
},
|
|
13803
|
-
"privacy": "private"
|
|
13804
|
-
|
|
14183
|
+
"privacy": "private"
|
|
14184
|
+
},
|
|
14185
|
+
{
|
|
14186
|
+
"kind": "field",
|
|
14187
|
+
"name": "resizeEventHandler"
|
|
13805
14188
|
},
|
|
13806
14189
|
{
|
|
13807
14190
|
"kind": "method",
|
|
@@ -13885,7 +14268,7 @@
|
|
|
13885
14268
|
{
|
|
13886
14269
|
"name": "data",
|
|
13887
14270
|
"type": {
|
|
13888
|
-
"text": "
|
|
14271
|
+
"text": "OrderTableData"
|
|
13889
14272
|
},
|
|
13890
14273
|
"fieldName": "data"
|
|
13891
14274
|
}
|
|
@@ -15266,6 +15649,14 @@
|
|
|
15266
15649
|
},
|
|
15267
15650
|
"attribute": "caption"
|
|
15268
15651
|
},
|
|
15652
|
+
{
|
|
15653
|
+
"kind": "field",
|
|
15654
|
+
"name": "icon",
|
|
15655
|
+
"type": {
|
|
15656
|
+
"text": "string"
|
|
15657
|
+
},
|
|
15658
|
+
"attribute": "icon"
|
|
15659
|
+
},
|
|
15269
15660
|
{
|
|
15270
15661
|
"kind": "field",
|
|
15271
15662
|
"name": "description",
|
|
@@ -15314,6 +15705,14 @@
|
|
|
15314
15705
|
},
|
|
15315
15706
|
"attribute": "flush-y"
|
|
15316
15707
|
},
|
|
15708
|
+
{
|
|
15709
|
+
"kind": "field",
|
|
15710
|
+
"name": "flushFooter",
|
|
15711
|
+
"type": {
|
|
15712
|
+
"text": "boolean"
|
|
15713
|
+
},
|
|
15714
|
+
"attribute": "flush-footer"
|
|
15715
|
+
},
|
|
15317
15716
|
{
|
|
15318
15717
|
"kind": "field",
|
|
15319
15718
|
"name": "transparent",
|
|
@@ -15338,6 +15737,13 @@
|
|
|
15338
15737
|
},
|
|
15339
15738
|
"fieldName": "caption"
|
|
15340
15739
|
},
|
|
15740
|
+
{
|
|
15741
|
+
"name": "icon",
|
|
15742
|
+
"type": {
|
|
15743
|
+
"text": "string"
|
|
15744
|
+
},
|
|
15745
|
+
"fieldName": "icon"
|
|
15746
|
+
},
|
|
15341
15747
|
{
|
|
15342
15748
|
"name": "description",
|
|
15343
15749
|
"type": {
|
|
@@ -15380,6 +15786,13 @@
|
|
|
15380
15786
|
},
|
|
15381
15787
|
"fieldName": "flushY"
|
|
15382
15788
|
},
|
|
15789
|
+
{
|
|
15790
|
+
"name": "flush-footer",
|
|
15791
|
+
"type": {
|
|
15792
|
+
"text": "boolean"
|
|
15793
|
+
},
|
|
15794
|
+
"fieldName": "flushFooter"
|
|
15795
|
+
},
|
|
15383
15796
|
{
|
|
15384
15797
|
"name": "transparent",
|
|
15385
15798
|
"type": {
|
|
@@ -18001,6 +18414,15 @@
|
|
|
18001
18414
|
"default": "false",
|
|
18002
18415
|
"attribute": "disabled"
|
|
18003
18416
|
},
|
|
18417
|
+
{
|
|
18418
|
+
"kind": "field",
|
|
18419
|
+
"name": "size",
|
|
18420
|
+
"type": {
|
|
18421
|
+
"text": "'small' | 'medium' | 'large'"
|
|
18422
|
+
},
|
|
18423
|
+
"default": "'medium'",
|
|
18424
|
+
"attribute": "size"
|
|
18425
|
+
},
|
|
18004
18426
|
{
|
|
18005
18427
|
"kind": "field",
|
|
18006
18428
|
"name": "getSymbol",
|
|
@@ -18287,6 +18709,14 @@
|
|
|
18287
18709
|
"default": "false",
|
|
18288
18710
|
"fieldName": "disabled"
|
|
18289
18711
|
},
|
|
18712
|
+
{
|
|
18713
|
+
"name": "size",
|
|
18714
|
+
"type": {
|
|
18715
|
+
"text": "'small' | 'medium' | 'large'"
|
|
18716
|
+
},
|
|
18717
|
+
"default": "'medium'",
|
|
18718
|
+
"fieldName": "size"
|
|
18719
|
+
},
|
|
18290
18720
|
{
|
|
18291
18721
|
"name": "getSymbol",
|
|
18292
18722
|
"type": {
|
|
@@ -25307,7 +25737,7 @@
|
|
|
25307
25737
|
"package": {
|
|
25308
25738
|
"name": "@kubex/zinc",
|
|
25309
25739
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
25310
|
-
"version": "1.0.
|
|
25740
|
+
"version": "1.0.8",
|
|
25311
25741
|
"author": "",
|
|
25312
25742
|
"license": "MIT"
|
|
25313
25743
|
}
|