bt-core-app 1.4.294 → 1.4.296

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.
@@ -32933,10 +32933,15 @@ function LV() {
32933
32933
  const e = Wd();
32934
32934
  return async (t) => {
32935
32935
  let n;
32936
- const a = (l) => {
32937
- n = l;
32938
- };
32939
- if (await e({
32936
+ const a = (i) => {
32937
+ n = i;
32938
+ }, r = [];
32939
+ if ((t.itemText != null || t.itemValue != null) && r.push({
32940
+ level: 1,
32941
+ searchable: !0,
32942
+ textFunction: t.textFunction,
32943
+ value: t.itemText ?? t.itemValue
32944
+ }), !!await e({
32940
32945
  cardProps: {
32941
32946
  class: "ma-0 pa-0"
32942
32947
  },
@@ -35880,8 +35885,8 @@ const qL = /* @__PURE__ */ tt({
35880
35885
  },
35881
35886
  setup(e) {
35882
35887
  const t = e, n = hi(), a = _(() => (l) => {
35883
- let i = En(l, t.option.value);
35884
- return i = t.option.textFunction != null ? t.option.textFunction(i) : i, t.option.textFilter != null ? n.findFilter(t.option.textFilter)(i) : i;
35888
+ let i = l;
35889
+ return t.option.value != null && (i = En(l, t.option.value)), t.option.textFunction != null && (i = t.option.textFunction(i)), t.option.textFilter != null && (i = n.findFilter(t.option.textFilter)(i)), i;
35885
35890
  }), r = _(() => t.option.truncate == !0 && t.option.width != null ? `display: inline-block; width: ${t.option.width.includes("px") || t.option.width.includes("%") ? t.option.width : `${t.option.width}px`};` : "");
35886
35891
  return (l, i) => {
35887
35892
  const o = ha("bt-entity");
@@ -38729,7 +38734,10 @@ const O3 = /* @__PURE__ */ Ud(z3, [["render", H3]]), W3 = /* @__PURE__ */ tt({
38729
38734
  value: {}
38730
38735
  },
38731
38736
  setup(e) {
38732
- const t = e, { findFilter: n } = hi(), a = _(() => (t.filter != null ? n(t.filter) : t.customFilter)(t.value, t.format));
38737
+ const t = e, { findFilter: n } = hi(), a = _(() => {
38738
+ const r = t.filter != null ? n(t.filter) : t.customFilter;
38739
+ return r != null ? r(t.value, t.format) : t.value;
38740
+ });
38733
38741
  return (r, l) => (R(), se("span", null, Be(r.prefix) + Be(a.value) + Be(r.suffix), 1));
38734
38742
  }
38735
38743
  });
package/dist/index.d.ts CHANGED
@@ -1747,10 +1747,10 @@ export declare interface UseSelectDateOptions {
1747
1747
  export declare function useSelectItem(): (options: UseSelectItemOptions) => Promise<any>;
1748
1748
 
1749
1749
  export declare interface UseSelectItemOptions {
1750
- itemText: string;
1750
+ itemText?: string;
1751
1751
  itemValue?: string;
1752
1752
  items?: any[];
1753
- nav: string;
1753
+ nav?: string;
1754
1754
  params?: any;
1755
1755
  required?: boolean;
1756
1756
  searchProps?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.294",
3
+ "version": "1.4.296",
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": {