bt-core-app 1.4.287 → 1.4.289

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.
@@ -5303,17 +5303,17 @@ function bE(e, t, n = !0) {
5303
5303
  return t ? typeof t == "string" ? Mn(a, t) > Mn(r, t) ? n === !0 ? 1 : -1 : Mn(a, t) < Mn(r, t) ? n === !0 ? -1 : 1 : 0 : t(a) > t(r) ? n === !0 ? 1 : -1 : t(a) < t(r) ? n === !0 ? -1 : 1 : 0 : a > r ? n === !0 ? 1 : -1 : a < r ? n === !0 ? -1 : 1 : 0;
5304
5304
  });
5305
5305
  }
5306
- function Xa(e, t) {
5307
- let n = e ?? "", a = t ?? "";
5308
- if (n.endsWith("/"))
5306
+ function Xa(e, t, n = "/") {
5307
+ let a = e ?? "", r = t ?? "";
5308
+ if (a.endsWith(n))
5309
5309
  do
5310
- n = n.slice(0, n.length - 1);
5311
- while (n.endsWith("/"));
5312
- if (a.startsWith("/"))
5310
+ a = a.slice(0, a.length - 1);
5311
+ while (a.endsWith(n));
5312
+ if (r.startsWith(n))
5313
5313
  do
5314
- a = a.slice(1, a.length);
5315
- while (a.startsWith("/"));
5316
- return `${n}/${a}`;
5314
+ r = r.slice(1, r.length);
5315
+ while (r.startsWith(n));
5316
+ return `${a}${n}${r}`;
5317
5317
  }
5318
5318
  function Wb(e, t, n) {
5319
5319
  let a = new Image();
@@ -31896,7 +31896,7 @@ function GE() {
31896
31896
  canAdd: !1,
31897
31897
  canDelete: !1,
31898
31898
  canSearch: !0,
31899
- headers: [{ value: t.itemText, level: 1, searchable: !0 }],
31899
+ headers: [{ value: t.itemText, level: 1, searchable: !0, textFunction: t.textFunction }],
31900
31900
  modelValue: n,
31901
31901
  nav: t.nav,
31902
31902
  onSelect: a,
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ declare interface ApiActionOptions extends StorePathOptions, DoActionOptions {
32
32
  api?: BTApi;
33
33
  }
34
34
 
35
- export declare function appendUrl(originalVal?: string, additionalVal?: string): string;
35
+ export declare function appendUrl(originalVal?: string, additionalVal?: string, splittingChar?: string): string;
36
36
 
37
37
  export declare interface AuthItem {
38
38
  children?: AuthItem[];
@@ -1642,6 +1642,7 @@ export declare interface UseSelectItemOptions {
1642
1642
  required?: boolean;
1643
1643
  searchProps?: string[];
1644
1644
  showSearch?: boolean;
1645
+ textFunction?: Function;
1645
1646
  title?: string;
1646
1647
  }
1647
1648
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.287",
3
+ "version": "1.4.289",
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": {