sprof 0.0.94 → 0.0.95

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.
@@ -1,10 +1,10 @@
1
1
  import { default as ITab } from '../components/organisms/PTabs/ITab';
2
2
  export default class Menus {
3
- tabs: ITab[];
3
+ items: ITab[];
4
4
  idx: number;
5
5
  key: string;
6
6
  preSelect(): void;
7
- static Create(key: string, tabs: ITab[]): Menus;
7
+ static Create(key: string, items: ITab[]): Menus;
8
8
  Select(i?: number): void;
9
9
  GetMenu(): ITab;
10
10
  GetComponent(): globalThis.Component;
package/dist/sprof.js CHANGED
@@ -6204,7 +6204,7 @@ const pd = /* @__PURE__ */ P(hd, [["render", gd], ["__scopeId", "data-v-0ea9a95f
6204
6204
  gridTemplateColumns: `repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`
6205
6205
  })
6206
6206
  }, [
6207
- (m(!0), b(W, null, Re(t.menus.tabs, (g, y) => (m(), b("div", { key: y }, [
6207
+ (m(!0), b(W, null, Re(t.menus.items, (g, y) => (m(), b("div", { key: y }, [
6208
6208
  f("div", {
6209
6209
  class: ne({ "selected-tab": y === t.menus.idx, tab: y !== t.menus.idx }),
6210
6210
  style: R({
@@ -6228,7 +6228,7 @@ const pd = /* @__PURE__ */ P(hd, [["render", gd], ["__scopeId", "data-v-0ea9a95f
6228
6228
  ], 4)
6229
6229
  ], 4));
6230
6230
  }
6231
- }), qd = /* @__PURE__ */ P(Hd, [["__scopeId", "data-v-5fd9dc74"]]);
6231
+ }), qd = /* @__PURE__ */ P(Hd, [["__scopeId", "data-v-f631acc5"]]);
6232
6232
  class Wn {
6233
6233
  static Setup(e) {
6234
6234
  this.staticUrl = e;
@@ -10890,7 +10890,7 @@ const Pg = (() => {
10890
10890
  })();
10891
10891
  class Xn {
10892
10892
  constructor() {
10893
- u(this, "tabs", []);
10893
+ u(this, "items", []);
10894
10894
  u(this, "idx", 0);
10895
10895
  u(this, "key", "");
10896
10896
  }
@@ -10900,28 +10900,28 @@ class Xn {
10900
10900
  this.Select(0);
10901
10901
  return;
10902
10902
  }
10903
- const i = this.tabs.findIndex((n) => n.slug === e);
10903
+ const i = this.items.findIndex((n) => n.slug === e);
10904
10904
  i > -1 && this.Select(i);
10905
10905
  }
10906
10906
  static Create(e, i) {
10907
10907
  const n = new Xn();
10908
- return n.key = e, n.tabs = i, n.tabs.length && n.preSelect(), n;
10908
+ return n.key = e, n.items = i, n.items.length && n.preSelect(), n;
10909
10909
  }
10910
10910
  Select(e) {
10911
- if (this.tabs.length) {
10911
+ if (this.items.length) {
10912
10912
  if (e === void 0)
10913
10913
  return this.preSelect();
10914
10914
  this.idx = e, mt.SetQueryParam(this.key, this.GetSlug());
10915
10915
  }
10916
10916
  }
10917
10917
  GetMenu() {
10918
- return this.tabs[this.idx];
10918
+ return this.items[this.idx];
10919
10919
  }
10920
10920
  GetComponent() {
10921
- return this.tabs[this.idx].component;
10921
+ return this.items[this.idx].component;
10922
10922
  }
10923
10923
  GetSlug() {
10924
- return this.tabs[this.idx].slug;
10924
+ return this.items[this.idx].slug;
10925
10925
  }
10926
10926
  }
10927
10927
  const Ai = class Ai {