bt-core-app 1.4.286 → 1.4.288

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.
@@ -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,
@@ -33407,6 +33407,7 @@ const TI = /* @__PURE__ */ Ze({
33407
33407
  label: {},
33408
33408
  prefix: {},
33409
33409
  textFilter: {},
33410
+ textFunction: {},
33410
33411
  truncate: { type: Boolean },
33411
33412
  additionalUrl: {},
33412
33413
  bladeGroup: {},
@@ -33459,7 +33460,7 @@ const TI = /* @__PURE__ */ Ze({
33459
33460
  setup(e, { emit: t }) {
33460
33461
  const n = t, a = e, r = Jl(), l = bp(a, n), i = ll(), o = a.itemText ?? (a.nav != null ? i.findItemText(a.nav) : void 0) ?? void 0, s = T(() => {
33461
33462
  var u = et(l.asyncItem);
33462
- return o != null && (u = Mn(l.asyncItem.value, o)), a.textFilter != null ? r.findFilter(a.textFilter)(u) : u;
33463
+ return a.textFunction != null && (u = a.textFunction(u)), o != null && (u = Mn(l.asyncItem.value, o)), a.textFilter != null ? r.findFilter(a.textFilter)(u) : u;
33463
33464
  });
33464
33465
  return (u, f) => (H(), oe("div", {
33465
33466
  class: Je(u.inline ? "d-inline" : "")
package/dist/index.d.ts CHANGED
@@ -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.286",
3
+ "version": "1.4.288",
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": {