sprof 0.0.42 → 0.0.43

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,3 +1,4 @@
1
1
  export * from './auth/index';
2
+ export { default as Email } from './Email';
2
3
  export { default as FileInfo } from './FileInfo';
3
4
  export { default as Human } from './Human';
package/dist/sprof.js CHANGED
@@ -189,7 +189,7 @@ const Oa = {
189
189
  }
190
190
  }), Va = /* @__PURE__ */ E(Wa, [["__scopeId", "data-v-aa16a0ab"]]);
191
191
  var Fe = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Fe || {}), ke = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(ke || {});
192
- class pt {
192
+ class gt {
193
193
  constructor(e, i, n, s) {
194
194
  a(this, "text", "Сохранить");
195
195
  a(this, "type", ke.Success);
@@ -200,19 +200,19 @@ class pt {
200
200
  this.text = e, this.type = n, this.action = i, s !== void 0 && (this.condition = s);
201
201
  }
202
202
  static Primary(e, i, n) {
203
- return new pt(e, i, ke.Primary, n);
203
+ return new gt(e, i, ke.Primary, n);
204
204
  }
205
205
  static Success(e, i, n) {
206
- return new pt(e, i, ke.Success, n);
206
+ return new gt(e, i, ke.Success, n);
207
207
  }
208
208
  static Warning(e, i, n) {
209
- return new pt(e, i, ke.Warning, n);
209
+ return new gt(e, i, ke.Warning, n);
210
210
  }
211
211
  static Error(e, i, n) {
212
- return new pt(e, i, ke.Error, n);
212
+ return new gt(e, i, ke.Error, n);
213
213
  }
214
214
  }
215
- class gr extends pt {
215
+ class gr extends gt {
216
216
  constructor() {
217
217
  super(...arguments);
218
218
  a(this, "id", "auth-button");
@@ -569,6 +569,19 @@ class el extends Hi {
569
569
  a(this, "id", "field-auth-login");
570
570
  }
571
571
  }
572
+ class ft {
573
+ constructor(e) {
574
+ a(this, "id");
575
+ a(this, "address");
576
+ a(this, "description");
577
+ a(this, "contactId");
578
+ m.H.Classes.BuildClass(this, e);
579
+ }
580
+ static Create() {
581
+ const e = new ft();
582
+ return e.id = m.H.Classes.CreateUUID(), e;
583
+ }
584
+ }
572
585
  class we {
573
586
  constructor(e) {
574
587
  a(this, "name", "");
@@ -622,19 +635,6 @@ class we {
622
635
  return i[i.length - 1];
623
636
  }
624
637
  }
625
- class yt {
626
- constructor(e) {
627
- a(this, "id");
628
- a(this, "address");
629
- a(this, "description");
630
- a(this, "contactId");
631
- m.H.Classes.BuildClass(this, e);
632
- }
633
- static Create() {
634
- const e = new yt();
635
- return e.id = m.H.Classes.CreateUUID(), e;
636
- }
637
- }
638
638
  class Ht {
639
639
  constructor(e) {
640
640
  a(this, "id");
@@ -683,7 +683,7 @@ const ri = class Cn {
683
683
  m.H.Classes.BuildClass(this, e);
684
684
  }
685
685
  addEmail() {
686
- const e = yt.Create();
686
+ const e = ft.Create();
687
687
  return e.contactId = this.id, this.emails.push(e), e;
688
688
  }
689
689
  addPhone() {
@@ -707,7 +707,7 @@ const ri = class Cn {
707
707
  this.websites.push(new Cr());
708
708
  }
709
709
  pushFirst() {
710
- this.emails.length || this.emails.push(new yt()), this.phones.length || this.phones.push(new Ht());
710
+ this.emails.length || this.emails.push(new ft()), this.phones.length || this.phones.push(new Ht());
711
711
  }
712
712
  getCoords() {
713
713
  return [Number(this.latitude), Number(this.longitude)];
@@ -730,7 +730,7 @@ const ri = class Cn {
730
730
  }
731
731
  };
732
732
  Oi([
733
- m.H.Classes.GetClassConstructor(yt)
733
+ m.H.Classes.GetClassConstructor(ft)
734
734
  ], ri.prototype, "emails");
735
735
  Oi([
736
736
  m.H.Classes.GetClassConstructor(Ci)
@@ -825,6 +825,7 @@ const sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
825
825
  AuthFormSettings: wr,
826
826
  AuthFormStatuses: Fe,
827
827
  AuthMethods: Ut,
828
+ Email: ft,
828
829
  EmailField: wi,
829
830
  FileInfo: we,
830
831
  Human: Gn,
@@ -1477,7 +1478,7 @@ function Lr(t, e) {
1477
1478
  return s;
1478
1479
  return null;
1479
1480
  }
1480
- const gt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Dr = (t) => !Kt(t) && t !== gt;
1481
+ const vt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Dr = (t) => !Kt(t) && t !== vt;
1481
1482
  function xn() {
1482
1483
  const { caseless: t } = Dr(this) && this || {}, e = {}, i = (n, s) => {
1483
1484
  const r = t && Lr(e, s) || s;
@@ -1594,14 +1595,14 @@ const tu = (t) => {
1594
1595
  return n;
1595
1596
  };
1596
1597
  return i(t, 0);
1597
- }, iu = Ge("AsyncFunction"), nu = (t) => t && (qi(t) || He(t)) && He(t.then) && He(t.catch), Nr = ((t, e) => t ? setImmediate : e ? ((i, n) => (gt.addEventListener("message", ({ source: s, data: r }) => {
1598
- s === gt && r === i && n.length && n.shift()();
1598
+ }, iu = Ge("AsyncFunction"), nu = (t) => t && (qi(t) || He(t)) && He(t.then) && He(t.catch), Nr = ((t, e) => t ? setImmediate : e ? ((i, n) => (vt.addEventListener("message", ({ source: s, data: r }) => {
1599
+ s === vt && r === i && n.length && n.shift()();
1599
1600
  }, !1), (s) => {
1600
- n.push(s), gt.postMessage(i, "*");
1601
+ n.push(s), vt.postMessage(i, "*");
1601
1602
  }))(`axios@${Math.random()}`, []) : (i) => setTimeout(i))(
1602
1603
  typeof setImmediate == "function",
1603
- He(gt.postMessage)
1604
- ), su = typeof queueMicrotask < "u" ? queueMicrotask.bind(gt) : typeof process < "u" && process.nextTick || Nr, M = {
1604
+ He(vt.postMessage)
1605
+ ), su = typeof queueMicrotask < "u" ? queueMicrotask.bind(vt) : typeof process < "u" && process.nextTick || Nr, M = {
1605
1606
  isArray: Wt,
1606
1607
  isArrayBuffer: Or,
1607
1608
  isBuffer: Cl,
@@ -1650,7 +1651,7 @@ const tu = (t) => {
1650
1651
  noop: Yl,
1651
1652
  toFiniteNumber: Ql,
1652
1653
  findKey: Lr,
1653
- global: gt,
1654
+ global: vt,
1654
1655
  isContextDefined: Dr,
1655
1656
  ALPHABET: qr,
1656
1657
  generateString: Kl,
@@ -2832,7 +2833,7 @@ const An = {
2832
2833
  assertOptions: ju,
2833
2834
  validators: Kn
2834
2835
  }, ct = An.validators;
2835
- class vt {
2836
+ class yt {
2836
2837
  constructor(e) {
2837
2838
  this.defaults = e, this.interceptors = {
2838
2839
  request: new zs(),
@@ -2930,7 +2931,7 @@ class vt {
2930
2931
  }
2931
2932
  }
2932
2933
  M.forEach(["delete", "get", "head", "options"], function(e) {
2933
- vt.prototype[e] = function(i, n) {
2934
+ yt.prototype[e] = function(i, n) {
2934
2935
  return this.request(St(n || {}, {
2935
2936
  method: e,
2936
2937
  url: i,
@@ -2951,7 +2952,7 @@ M.forEach(["post", "put", "patch"], function(e) {
2951
2952
  }));
2952
2953
  };
2953
2954
  }
2954
- vt.prototype[e] = i(), vt.prototype[e + "Form"] = i(!0);
2955
+ yt.prototype[e] = i(), yt.prototype[e + "Form"] = i(!0);
2955
2956
  });
2956
2957
  class es {
2957
2958
  constructor(e) {
@@ -3103,13 +3104,13 @@ Object.entries($n).forEach(([t, e]) => {
3103
3104
  $n[e] = t;
3104
3105
  });
3105
3106
  function no(t) {
3106
- const e = new vt(t), i = Hr(vt.prototype.request, e);
3107
- return M.extend(i, vt.prototype, e, { allOwnKeys: !0 }), M.extend(i, e, null, { allOwnKeys: !0 }), i.create = function(s) {
3107
+ const e = new yt(t), i = Hr(yt.prototype.request, e);
3108
+ return M.extend(i, yt.prototype, e, { allOwnKeys: !0 }), M.extend(i, e, null, { allOwnKeys: !0 }), i.create = function(s) {
3108
3109
  return no(St(t, s));
3109
3110
  }, i;
3110
3111
  }
3111
3112
  const le = no(li);
3112
- le.Axios = vt;
3113
+ le.Axios = yt;
3113
3114
  le.CanceledError = Vt;
3114
3115
  le.CancelToken = es;
3115
3116
  le.isCancel = Jr;
@@ -3702,7 +3703,7 @@ class xc extends oo {
3702
3703
  }
3703
3704
  const Mc = new xc();
3704
3705
  var oe = /* @__PURE__ */ ((t) => (t.Date = "date", t.String = "string", t.Boolean = "boolean", t.Number = "number", t.Set = "set", t.Join = "join", t))(oe || {}), xe = /* @__PURE__ */ ((t) => (t.Eq = "=", t.Ne = "!=", t.Gt = ">", t.Lt = "<", t.Btw = "between", t.In = "in", t.Like = "like", t.Null = "is null", t.NotNull = "is not null", t))(xe || {});
3705
- class ft {
3706
+ class mt {
3706
3707
  static Shuffle(e) {
3707
3708
  for (let i = e.length - 1; i > 0; i--) {
3708
3709
  const n = Math.floor(Math.random() * (i + 1));
@@ -3780,12 +3781,12 @@ const ao = class $t {
3780
3781
  return !1;
3781
3782
  if (this.type === oe.Join) {
3782
3783
  const i = e.model === this.model && e.operator === this.operator && this.joinTableModel === e.joinTableModel;
3783
- return e.operator === xe.In ? i && ft.Eq(this.set, e.set) : i;
3784
+ return e.operator === xe.In ? i && mt.Eq(this.set, e.set) : i;
3784
3785
  }
3785
3786
  return e.model === this.model && e.col === this.col && e.operator === this.operator;
3786
3787
  }
3787
3788
  valueEq(e) {
3788
- return !this || !e || !this.eq(e) ? !1 : this.type === oe.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === oe.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === oe.Join && this.set.length ? ft.Eq(this.set, e.set) : !1;
3789
+ return !this || !e || !this.eq(e) ? !1 : this.type === oe.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === oe.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === oe.Join && this.set.length ? mt.Eq(this.set, e.set) : !1;
3789
3790
  }
3790
3791
  toUrlQuery() {
3791
3792
  const e = this.type ? `"type":"${this.type}"` : "", i = this.model ? `"model":"${this.model}"` : "", n = this.col ? `"col":"${this.col}"` : "", s = this.operator ? `"operator":"${this.operator}"` : "", r = this.value1 ? `"value1":"${this.value1}"` : "", o = this.type === oe.Boolean ? `"boolean":${this.boolean}` : "", u = this.type === oe.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", l = this.type === oe.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === oe.Number ? `"number":${this.number}` : "", d = this.type === oe.Set || this.operator === xe.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === oe.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
@@ -4009,7 +4010,7 @@ const ui = (at = class {
4009
4010
  return this.f.find((i) => e.id === i.id);
4010
4011
  }
4011
4012
  getFirstSortModel() {
4012
- return ft.GetLast(this.s);
4013
+ return mt.GetLast(this.s);
4013
4014
  }
4014
4015
  setSortModel(e) {
4015
4016
  e && (this.s[0] = e);
@@ -5002,7 +5003,7 @@ var Ys;
5002
5003
  }
5003
5004
  });
5004
5005
  })(Ys || (Ys = {}));
5005
- const mt = class mt {
5006
+ const pt = class pt {
5006
5007
  static BuildClass(e, i) {
5007
5008
  i && Object.keys(i).forEach((n) => {
5008
5009
  const s = i[n];
@@ -5025,13 +5026,13 @@ const mt = class mt {
5025
5026
  return e !== null && typeof e < "u" && e !== Object(e);
5026
5027
  }
5027
5028
  static RemoveFromClassByIndex(e, i, n) {
5028
- mt.RemoveFromClass(e, i, n);
5029
+ pt.RemoveFromClass(e, i, n);
5029
5030
  }
5030
5031
  static RemoveFromClassById(e, i, n) {
5031
5032
  if (!e)
5032
5033
  return;
5033
5034
  const s = i.findIndex((r) => r.id === e);
5034
- mt.RemoveFromClass(s, i, n);
5035
+ pt.RemoveFromClass(s, i, n);
5035
5036
  }
5036
5037
  static RemoveFromClass(e, i, n) {
5037
5038
  if (e < 0)
@@ -5052,21 +5053,21 @@ const mt = class mt {
5052
5053
  }
5053
5054
  static InitClassInstance(e, i) {
5054
5055
  const n = e.constructor(i);
5055
- return mt.BuildClass(n), n.id = mt.CreateUUID(), n;
5056
+ return pt.BuildClass(n), n.id = pt.CreateUUID(), n;
5056
5057
  }
5057
5058
  static ExistsWithId(e, i) {
5058
5059
  return e.some((n) => n.id === i);
5059
5060
  }
5060
5061
  };
5061
- a(mt, "GetClassConstructor", (e) => (i, n) => {
5062
+ a(pt, "GetClassConstructor", (e) => (i, n) => {
5062
5063
  const s = Reflect.getMetadata(`property:${n}`, i) || {};
5063
5064
  s[n] = e, Reflect.defineMetadata(n, s, i);
5064
5065
  });
5065
- let Pn = mt;
5066
+ let Pn = pt;
5066
5067
  const Lc = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
5067
5068
  class Dc {
5068
5069
  static GetRandColor(e) {
5069
- return ft.GetRandEL(e ?? Lc);
5070
+ return mt.GetRandEL(e ?? Lc);
5070
5071
  }
5071
5072
  }
5072
5073
  class Tn {
@@ -5187,7 +5188,7 @@ let Bc = class {
5187
5188
  return this.timelinePxHeight * this.timelines.length;
5188
5189
  }
5189
5190
  getHoursArr() {
5190
- return ft.GenerateNumsRange(this.startHour, this.endHour);
5191
+ return mt.GenerateNumsRange(this.startHour, this.endHour);
5191
5192
  }
5192
5193
  };
5193
5194
  const Fn = (t) => t === 8 || t === 46, qc = (t) => t > 46 && t < 58, Nc = (t) => t > 34 && t < 41, Uc = (t) => t + ".", Wc = (t, e, i) => {
@@ -5895,7 +5896,7 @@ class xd {
5895
5896
  return this.timelinePxHeight * this.timelines.length;
5896
5897
  }
5897
5898
  getHoursArr() {
5898
- return ft.GenerateNumsRange(this.startHour, this.endHour);
5899
+ return mt.GenerateNumsRange(this.startHour, this.endHour);
5899
5900
  }
5900
5901
  timeIsFree(e, i, n, s) {
5901
5902
  return s.filter((r) => r.id !== n).every(
@@ -6122,10 +6123,10 @@ class Ed {
6122
6123
  }
6123
6124
  const Pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6124
6125
  __proto__: null,
6125
- Arrays: ft,
6126
+ Arrays: mt,
6126
6127
  Axios: Xt,
6127
6128
  BaseStore: ge,
6128
- Button: pt,
6129
+ Button: gt,
6129
6130
  Cache: Oc,
6130
6131
  CarouselSwipe: zc,
6131
6132
  Classes: Pn,
@@ -6136,7 +6137,7 @@ const Pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6136
6137
  DateMask: Gc,
6137
6138
  Dates: st,
6138
6139
  Dragger: Zc,
6139
- Email: yt,
6140
+ Email: ft,
6140
6141
  Extension: Jc,
6141
6142
  FTSP: $c,
6142
6143
  Favourite: Xc,
@@ -6290,7 +6291,7 @@ let Ud = class {
6290
6291
  const Wd = new Ud();
6291
6292
  let Vd = class extends ge {
6292
6293
  constructor() {
6293
- super(yt, "emails");
6294
+ super(ft, "emails");
6294
6295
  }
6295
6296
  };
6296
6297
  const Gd = new Vd();
@@ -6970,7 +6971,7 @@ const Rh = { class: "item" }, Ah = { class: "move" }, $h = { class: "item-tools"
6970
6971
  list: t.fileList,
6971
6972
  "item-key": "id",
6972
6973
  handle: ".move",
6973
- onEnd: u[0] || (u[0] = (h) => v(ft).Sort(t.fileList))
6974
+ onEnd: u[0] || (u[0] = (h) => v(mt).Sort(t.fileList))
6974
6975
  }, {
6975
6976
  item: W(({ element: h, index: g }) => [
6976
6977
  f("div", Rh, [