@kubex/zinc 1.0.14 → 1.0.15
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 +47 -23
- package/dist/vscode.html-custom-data.json +2 -2
- package/dist/web-types.json +8 -8
- package/dist/zn.d.ts +3 -4
- package/dist/zn.min.js +111 -108
- package/docs/pages/components/note.md +11 -1
- package/package.json +1 -1
- package/src/components/data-table/data-table.component.ts +32 -18
- package/src/components/filter-container/filter-container.component.ts +1 -1
- package/src/components/note/note.component.ts +20 -34
- package/src/components/note/note.scss +8 -0
|
@@ -5256,6 +5256,15 @@
|
|
|
5256
5256
|
"default": "\"asc\"",
|
|
5257
5257
|
"attribute": "sort-direction"
|
|
5258
5258
|
},
|
|
5259
|
+
{
|
|
5260
|
+
"kind": "field",
|
|
5261
|
+
"name": "localSort",
|
|
5262
|
+
"type": {
|
|
5263
|
+
"text": "boolean"
|
|
5264
|
+
},
|
|
5265
|
+
"default": "false",
|
|
5266
|
+
"attribute": "local-sort"
|
|
5267
|
+
},
|
|
5259
5268
|
{
|
|
5260
5269
|
"kind": "field",
|
|
5261
5270
|
"name": "filter",
|
|
@@ -5963,6 +5972,24 @@
|
|
|
5963
5972
|
}
|
|
5964
5973
|
]
|
|
5965
5974
|
},
|
|
5975
|
+
{
|
|
5976
|
+
"kind": "method",
|
|
5977
|
+
"name": "sortLocalData",
|
|
5978
|
+
"privacy": "private",
|
|
5979
|
+
"return": {
|
|
5980
|
+
"type": {
|
|
5981
|
+
"text": "Row[]"
|
|
5982
|
+
}
|
|
5983
|
+
},
|
|
5984
|
+
"parameters": [
|
|
5985
|
+
{
|
|
5986
|
+
"name": "rows",
|
|
5987
|
+
"type": {
|
|
5988
|
+
"text": "Row[]"
|
|
5989
|
+
}
|
|
5990
|
+
}
|
|
5991
|
+
]
|
|
5992
|
+
},
|
|
5966
5993
|
{
|
|
5967
5994
|
"kind": "method",
|
|
5968
5995
|
"name": "loadingTable",
|
|
@@ -6018,6 +6045,14 @@
|
|
|
6018
6045
|
"default": "\"asc\"",
|
|
6019
6046
|
"fieldName": "sortDirection"
|
|
6020
6047
|
},
|
|
6048
|
+
{
|
|
6049
|
+
"name": "local-sort",
|
|
6050
|
+
"type": {
|
|
6051
|
+
"text": "boolean"
|
|
6052
|
+
},
|
|
6053
|
+
"default": "false",
|
|
6054
|
+
"fieldName": "localSort"
|
|
6055
|
+
},
|
|
6021
6056
|
{
|
|
6022
6057
|
"name": "filter",
|
|
6023
6058
|
"type": {
|
|
@@ -14214,13 +14249,10 @@
|
|
|
14214
14249
|
},
|
|
14215
14250
|
{
|
|
14216
14251
|
"kind": "field",
|
|
14217
|
-
"name": "
|
|
14218
|
-
"
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
"default": "3",
|
|
14222
|
-
"attribute": "collapse-at-lines",
|
|
14223
|
-
"reflects": true
|
|
14252
|
+
"name": "hasSlotController",
|
|
14253
|
+
"privacy": "private",
|
|
14254
|
+
"readonly": true,
|
|
14255
|
+
"default": "new HasSlotController(this, 'caption', 'date', '[default]', 'snippet', 'footer')"
|
|
14224
14256
|
},
|
|
14225
14257
|
{
|
|
14226
14258
|
"kind": "field",
|
|
@@ -14231,15 +14263,15 @@
|
|
|
14231
14263
|
"privacy": "private",
|
|
14232
14264
|
"default": "false"
|
|
14233
14265
|
},
|
|
14234
|
-
{
|
|
14235
|
-
"kind": "field",
|
|
14236
|
-
"name": "_toggleExpand",
|
|
14237
|
-
"privacy": "private"
|
|
14238
|
-
},
|
|
14239
14266
|
{
|
|
14240
14267
|
"kind": "method",
|
|
14241
|
-
"name": "
|
|
14242
|
-
"privacy": "private"
|
|
14268
|
+
"name": "_toggleExpand",
|
|
14269
|
+
"privacy": "private",
|
|
14270
|
+
"return": {
|
|
14271
|
+
"type": {
|
|
14272
|
+
"text": "void"
|
|
14273
|
+
}
|
|
14274
|
+
}
|
|
14243
14275
|
}
|
|
14244
14276
|
],
|
|
14245
14277
|
"events": [
|
|
@@ -14279,14 +14311,6 @@
|
|
|
14279
14311
|
},
|
|
14280
14312
|
"default": "''",
|
|
14281
14313
|
"fieldName": "body"
|
|
14282
|
-
},
|
|
14283
|
-
{
|
|
14284
|
-
"name": "collapse-at-lines",
|
|
14285
|
-
"type": {
|
|
14286
|
-
"text": "number"
|
|
14287
|
-
},
|
|
14288
|
-
"default": "3",
|
|
14289
|
-
"fieldName": "collapseAtLines"
|
|
14290
14314
|
}
|
|
14291
14315
|
],
|
|
14292
14316
|
"superclass": {
|
|
@@ -26385,7 +26409,7 @@
|
|
|
26385
26409
|
"package": {
|
|
26386
26410
|
"name": "@kubex/zinc",
|
|
26387
26411
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
26388
|
-
"version": "1.0.
|
|
26412
|
+
"version": "1.0.15",
|
|
26389
26413
|
"author": "",
|
|
26390
26414
|
"license": "MIT"
|
|
26391
26415
|
}
|
|
@@ -698,6 +698,7 @@
|
|
|
698
698
|
{ "name": "data", "values": [] },
|
|
699
699
|
{ "name": "sort-column", "values": [] },
|
|
700
700
|
{ "name": "sort-direction", "values": [] },
|
|
701
|
+
{ "name": "local-sort", "values": [] },
|
|
701
702
|
{ "name": "filter", "values": [] },
|
|
702
703
|
{ "name": "wide-column", "values": [] },
|
|
703
704
|
{ "name": "key", "values": [] },
|
|
@@ -1704,8 +1705,7 @@
|
|
|
1704
1705
|
{ "name": "color", "values": [{ "name": "typeof colors[number]" }] },
|
|
1705
1706
|
{ "name": "caption", "values": [] },
|
|
1706
1707
|
{ "name": "date", "values": [] },
|
|
1707
|
-
{ "name": "body", "values": [] }
|
|
1708
|
-
{ "name": "collapse-at-lines", "values": [] }
|
|
1708
|
+
{ "name": "body", "values": [] }
|
|
1709
1709
|
],
|
|
1710
1710
|
"references": [
|
|
1711
1711
|
{ "name": "Documentation", "url": "https://zinc.style/components/note" }
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.15",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1509,6 +1509,10 @@
|
|
|
1509
1509
|
"name": "sort-direction",
|
|
1510
1510
|
"value": { "type": "string", "default": "\"asc\"" }
|
|
1511
1511
|
},
|
|
1512
|
+
{
|
|
1513
|
+
"name": "local-sort",
|
|
1514
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1515
|
+
},
|
|
1512
1516
|
{
|
|
1513
1517
|
"name": "filter",
|
|
1514
1518
|
"value": { "type": "string", "default": "''" }
|
|
@@ -1578,6 +1582,7 @@
|
|
|
1578
1582
|
{ "name": "data", "type": "any" },
|
|
1579
1583
|
{ "name": "sortColumn", "type": "string" },
|
|
1580
1584
|
{ "name": "sortDirection", "type": "string" },
|
|
1585
|
+
{ "name": "localSort", "type": "boolean" },
|
|
1581
1586
|
{ "name": "filter", "type": "string" },
|
|
1582
1587
|
{ "name": "wideColumn", "type": "string" },
|
|
1583
1588
|
{ "name": "key", "type": "string" },
|
|
@@ -3840,11 +3845,7 @@
|
|
|
3840
3845
|
"value": { "type": "string", "default": "''" }
|
|
3841
3846
|
},
|
|
3842
3847
|
{ "name": "date", "value": { "type": "string", "default": "''" } },
|
|
3843
|
-
{ "name": "body", "value": { "type": "string", "default": "''" } }
|
|
3844
|
-
{
|
|
3845
|
-
"name": "collapse-at-lines",
|
|
3846
|
-
"value": { "type": "number", "default": "3" }
|
|
3847
|
-
}
|
|
3848
|
+
{ "name": "body", "value": { "type": "string", "default": "''" } }
|
|
3848
3849
|
],
|
|
3849
3850
|
"slots": [
|
|
3850
3851
|
{ "name": "caption", "description": "The note's caption." },
|
|
@@ -3859,8 +3860,7 @@
|
|
|
3859
3860
|
{ "name": "color", "type": "typeof colors[number]" },
|
|
3860
3861
|
{ "name": "caption", "type": "string" },
|
|
3861
3862
|
{ "name": "date", "type": "string" },
|
|
3862
|
-
{ "name": "body", "type": "string" }
|
|
3863
|
-
{ "name": "collapseAtLines", "type": "number" }
|
|
3863
|
+
{ "name": "body", "type": "string" }
|
|
3864
3864
|
],
|
|
3865
3865
|
"events": [
|
|
3866
3866
|
{
|
package/dist/zn.d.ts
CHANGED
|
@@ -2647,6 +2647,7 @@ declare module "components/data-table/data-table.component" {
|
|
|
2647
2647
|
data: any;
|
|
2648
2648
|
sortColumn: string;
|
|
2649
2649
|
sortDirection: string;
|
|
2650
|
+
localSort: boolean;
|
|
2650
2651
|
filter: string;
|
|
2651
2652
|
wideColumn: string;
|
|
2652
2653
|
key: string;
|
|
@@ -2726,6 +2727,7 @@ declare module "components/data-table/data-table.component" {
|
|
|
2726
2727
|
private updateDeleteKeys;
|
|
2727
2728
|
private extractComparable;
|
|
2728
2729
|
private sortData;
|
|
2730
|
+
private sortLocalData;
|
|
2729
2731
|
private loadingTable;
|
|
2730
2732
|
private renderActions;
|
|
2731
2733
|
}
|
|
@@ -2875,12 +2877,9 @@ declare module "components/note/note.component" {
|
|
|
2875
2877
|
caption: string;
|
|
2876
2878
|
date: string;
|
|
2877
2879
|
body: string;
|
|
2878
|
-
|
|
2880
|
+
private readonly hasSlotController;
|
|
2879
2881
|
private expanded;
|
|
2880
2882
|
private _toggleExpand;
|
|
2881
|
-
private _measureOverflow;
|
|
2882
|
-
protected firstUpdated(): void;
|
|
2883
|
-
protected updated(): void;
|
|
2884
2883
|
protected render(): unknown;
|
|
2885
2884
|
}
|
|
2886
2885
|
}
|