bt-core-app 2.0.264 → 2.0.266

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.
@@ -44675,10 +44675,10 @@ function mu(e, t, a) {
44675
44675
  if (Array.isArray(e.sortProp)) {
44676
44676
  var Ue = void 0;
44677
44677
  return e.sortProp.forEach((Xe) => {
44678
- Ue == null ? Ue = rl.firstBy((Vt) => Mn(Vt, Xe)) : Ue = Ue.thenBy((Vt) => Mn(Vt, Xe));
44678
+ Ue == null ? Ue = rl.firstBy((Vt) => Mn(Vt, Xe), e.sortDirection ?? "asc") : Ue = Ue.thenBy((Vt) => Mn(Vt, Xe), e.sortDirection ?? "asc");
44679
44679
  }), Ue != null ? Ve.sort(Ue) : Ve;
44680
44680
  } else
44681
- return Ve.sort(rl.firstBy((Xe) => Mn(Xe, e.sortProp)));
44681
+ return Ve.sort(rl.firstBy((Xe) => Mn(Xe, e.sortProp), e.sortDirection ?? "asc"));
44682
44682
  }
44683
44683
  function ze() {
44684
44684
  if (L.value == null || !Array.isArray(L.value)) {
@@ -53880,6 +53880,7 @@ const qZ = ["color", "file", "time", "date", "datetime-local", "week", "month"],
53880
53880
  searchProps: {},
53881
53881
  searchStr: {},
53882
53882
  selectProps: {},
53883
+ sortDirection: {},
53883
53884
  sortProp: {},
53884
53885
  startEditing: { type: Boolean },
53885
53886
  startShowingInactive: { type: Boolean },
@@ -55131,6 +55132,7 @@ const fK = {
55131
55132
  searchProps: {},
55132
55133
  searchStr: {},
55133
55134
  selectProps: {},
55135
+ sortDirection: {},
55134
55136
  sortProp: {},
55135
55137
  startEditing: { type: Boolean, default: !0 },
55136
55138
  startShowingInactive: { type: Boolean },
@@ -70584,6 +70586,7 @@ const UI = Ge({
70584
70586
  searchProps: {},
70585
70587
  searchStr: {},
70586
70588
  selectProps: {},
70589
+ sortDirection: {},
70587
70590
  sortProp: {},
70588
70591
  startEditing: { type: Boolean },
70589
70592
  startShowingInactive: { type: Boolean },
@@ -75029,6 +75032,7 @@ const Gle = ["start", "end", "left", "right", "top", "bottom"], Zle = Ge({
75029
75032
  searchProps: {},
75030
75033
  searchStr: {},
75031
75034
  selectProps: {},
75035
+ sortDirection: {},
75032
75036
  sortProp: {},
75033
75037
  startEditing: { type: Boolean },
75034
75038
  startShowingInactive: { type: Boolean },
@@ -79425,6 +79429,7 @@ const wre = Ge({
79425
79429
  searchProps: {},
79426
79430
  searchStr: {},
79427
79431
  selectProps: {},
79432
+ sortDirection: {},
79428
79433
  sortProp: {},
79429
79434
  startEditing: { type: Boolean },
79430
79435
  startShowingInactive: { type: Boolean },
package/dist/index.d.ts CHANGED
@@ -1293,6 +1293,7 @@ export declare interface ListProps<T, TSave, TReturn> {
1293
1293
  searchProps?: string[];
1294
1294
  searchStr?: string;
1295
1295
  selectProps?: string[];
1296
+ sortDirection?: SortOrder;
1296
1297
  sortProp?: string | string[];
1297
1298
  startEditing?: boolean;
1298
1299
  startShowingInactive?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "2.0.264",
3
+ "version": "2.0.266",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {