@dxtmisha/functional-basic 0.7.1 → 0.7.2

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.
package/dist/library.d.ts CHANGED
@@ -3017,8 +3017,9 @@ export declare function isDomRuntime(): boolean;
3017
3017
  *
3018
3018
  * Проверяет, является ли нажатая клавиша Enter или Space.
3019
3019
  * @param event event object/ объект события
3020
+ * @param isInputElement whether the element is an input element/ является ли элемент полем ввода
3020
3021
  */
3021
- export declare const isEnter: (event: KeyboardEvent) => boolean;
3022
+ export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
3022
3023
 
3023
3024
  /**
3024
3025
  * Checks if the field is filled.
@@ -3053,6 +3054,14 @@ export declare function isFunction<T>(callback: T): callback is Extract<T, Funct
3053
3054
  */
3054
3055
  export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
3055
3056
 
3057
+ /**
3058
+ * Checks if the element is an input field or editable.
3059
+ *
3060
+ * Проверяет, является ли элемент полем ввода или редактируемым.
3061
+ * @param element element to check/ проверяемый элемент
3062
+ */
3063
+ export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
3064
+
3056
3065
  /**
3057
3066
  * Checks if the value is between integers.
3058
3067
  *
package/dist/library.js CHANGED
@@ -1440,7 +1440,7 @@ const b = class b {
1440
1440
  };
1441
1441
  c(b, "url", "/api/"), c(b, "headers", new zt()), c(b, "requestDefault", new Zt()), c(b, "status", new Vt()), c(b, "response", new Yt(b.requestDefault)), c(b, "preparation", new qt());
1442
1442
  let z = b;
1443
- class Ce {
1443
+ class ke {
1444
1444
  /**
1445
1445
  * Constructor
1446
1446
  * @param name channel name/ название канала
@@ -2918,7 +2918,7 @@ class ct {
2918
2918
  ), this;
2919
2919
  }
2920
2920
  }
2921
- class ke {
2921
+ class Ae {
2922
2922
  /**
2923
2923
  * Constructor
2924
2924
  * @param element HTML element to capture/ HTML элемент для захвата
@@ -3528,7 +3528,7 @@ const j = class j {
3528
3528
  };
3529
3529
  c(j, "list", []), c(j, "map", {}), j.makeList(), j.makeMap();
3530
3530
  let bt = j, W;
3531
- class Ae {
3531
+ class Ne {
3532
3532
  /**
3533
3533
  * Returns the value by its name.
3534
3534
  *
@@ -4158,7 +4158,7 @@ class ce extends ut {
4158
4158
  return this.set($.image, t), this;
4159
4159
  }
4160
4160
  }
4161
- class Ne extends ut {
4161
+ class Ee extends ut {
4162
4162
  /**
4163
4163
  * Creates an instance of Meta with integrated Open Graph and Twitter Card support.
4164
4164
  *
@@ -4636,29 +4636,29 @@ let Ct = E;
4636
4636
  function xt(i) {
4637
4637
  return Array.isArray(i);
4638
4638
  }
4639
- function Ee(i) {
4639
+ function Ie(i) {
4640
4640
  var t;
4641
4641
  return R(i) ? i.trim() : xt(i) && i.findIndex((e) => m(e)) === -1 ? i.join(",") : m(i) ? JSON.stringify(i) : i === !0 ? "1" : i === !1 ? "0" : (t = i == null ? void 0 : i.toString()) != null ? t : "";
4642
4642
  }
4643
4643
  function le(i, t) {
4644
4644
  return Array(t).fill(i);
4645
4645
  }
4646
- function Ie(i) {
4646
+ function Be(i) {
4647
4647
  return new Promise((t, e) => {
4648
4648
  const s = new FileReader();
4649
4649
  s.onloadend = () => t(s.result), s.onerror = e, s.readAsDataURL(i);
4650
4650
  });
4651
4651
  }
4652
- function Be(i) {
4652
+ function Fe(i) {
4653
4653
  var t;
4654
4654
  if (l())
4655
4655
  return (t = document.querySelector(i)) != null ? t : void 0;
4656
4656
  }
4657
- function Fe(i) {
4657
+ function xe(i) {
4658
4658
  if (l())
4659
4659
  return document.querySelectorAll(i);
4660
4660
  }
4661
- function xe(i) {
4661
+ function Re(i) {
4662
4662
  i.preventDefault(), i.stopPropagation();
4663
4663
  }
4664
4664
  function de(i, t, e) {
@@ -4667,7 +4667,7 @@ function de(i, t, e) {
4667
4667
  };
4668
4668
  l() ? requestAnimationFrame(s) : s();
4669
4669
  }
4670
- function Re(i) {
4670
+ function Pe(i) {
4671
4671
  var s;
4672
4672
  const t = {}, e = N(i);
4673
4673
  if (e)
@@ -4675,15 +4675,15 @@ function Re(i) {
4675
4675
  t[n.name] = (s = (n == null ? void 0 : n.value) || (n == null ? void 0 : n.textContent)) != null ? s : void 0;
4676
4676
  return t;
4677
4677
  }
4678
- async function Pe(i) {
4678
+ async function We(i) {
4679
4679
  var t, e;
4680
4680
  return (e = (t = i == null ? void 0 : i.clipboardData) == null ? void 0 : t.getData("text")) != null ? e : await navigator.clipboard.readText() || "";
4681
4681
  }
4682
- function We(i = "datetime") {
4682
+ function Ue(i = "datetime") {
4683
4683
  return new ct(void 0, i).standard();
4684
4684
  }
4685
4685
  let kt = J(1e5, 9e5);
4686
- function Ue(i, t) {
4686
+ function je(i, t) {
4687
4687
  const e = N(i);
4688
4688
  return e ? (L(e.id) || e.setAttribute("id", `id-${kt++}`), t ? `#${e.id}${t}`.trim() : e.id) : `id-${kt++}`;
4689
4689
  }
@@ -4703,17 +4703,17 @@ function me(i, t) {
4703
4703
  const e = t.split(".", 2), s = e[0];
4704
4704
  return s && (i != null && i[s]) && A(i[s]) && (e != null && e[1]) ? me(i[s], e[1]) : (n = s && (i == null ? void 0 : i[s])) != null ? n : "";
4705
4705
  }
4706
- function je(i) {
4706
+ function He(i) {
4707
4707
  var t, e, s;
4708
4708
  return (s = (t = i == null ? void 0 : i.key) != null ? t : i == null ? void 0 : i.code) != null ? s : (e = i == null ? void 0 : i.keyCode) == null ? void 0 : e.toString();
4709
4709
  }
4710
4710
  function Rt(i) {
4711
4711
  return f(i, (t) => t.length);
4712
4712
  }
4713
- function He(i) {
4713
+ function ze(i) {
4714
4714
  return Math.max(...Rt(i));
4715
4715
  }
4716
- function ze(i) {
4716
+ function Ze(i) {
4717
4717
  return Math.min(...Rt(i));
4718
4718
  }
4719
4719
  function ye(i) {
@@ -4724,46 +4724,46 @@ function $e(i) {
4724
4724
  var t, e, s, n;
4725
4725
  return (i == null ? void 0 : i.clientY) || ((e = (t = i == null ? void 0 : i.targetTouches) == null ? void 0 : t[0]) == null ? void 0 : e.clientY) || ((n = (s = i == null ? void 0 : i.touches) == null ? void 0 : s[0]) == null ? void 0 : n.clientY) || 0;
4726
4726
  }
4727
- function Ze(i) {
4727
+ function Ve(i) {
4728
4728
  return {
4729
4729
  x: ye(i),
4730
4730
  y: $e(i)
4731
4731
  };
4732
4732
  }
4733
- function Ve(i, t) {
4733
+ function Ke(i, t) {
4734
4734
  const e = {};
4735
4735
  return t.forEach((s) => {
4736
4736
  s in i && i[s] !== void 0 && (e[s] = i[s]);
4737
4737
  }), e;
4738
4738
  }
4739
- function Ke(i, t = void 0) {
4739
+ function Ye(i, t = void 0) {
4740
4740
  const e = {};
4741
4741
  return f(i, (s, n) => {
4742
4742
  s !== t && (e[n] = s);
4743
4743
  }), e;
4744
4744
  }
4745
- function Ye(i) {
4745
+ function qe(i) {
4746
4746
  return A(i) ? i : {};
4747
4747
  }
4748
4748
  function pe(i, t) {
4749
4749
  return le(i, t).join("");
4750
4750
  }
4751
- function qe(i, t, e = "#", s = 2, n = 12) {
4751
+ function Je(i, t, e = "#", s = 2, n = 12) {
4752
4752
  const o = J(i, t), a = [];
4753
4753
  for (let u = 0; u < o; u++)
4754
4754
  a.push(pe(e, J(s, n)));
4755
4755
  return a.join(" ");
4756
4756
  }
4757
- function Je(i, t) {
4757
+ function Me(i, t) {
4758
4758
  const e = i != null ? i : 0;
4759
4759
  return t > e ? 100 / (t - e) : 0;
4760
4760
  }
4761
- function Me(i, t) {
4761
+ function Qe(i, t) {
4762
4762
  const e = i != null ? i : 0;
4763
4763
  return t > e ? (t - e) / 100 : 0;
4764
4764
  }
4765
4765
  const At = 0;
4766
- function Qe(i, t, e) {
4766
+ function Xe(i, t, e) {
4767
4767
  const s = t == null ? void 0 : t.closest(i);
4768
4768
  if (t && s && s.scrollHeight !== s.offsetHeight) {
4769
4769
  const n = s.getBoundingClientRect(), o = t.getBoundingClientRect();
@@ -4773,7 +4773,7 @@ function Qe(i, t, e) {
4773
4773
  } else s.scrollTop > t.offsetTop ? s.scrollTop = o.top - n.top - At : s.scrollTop + s.offsetHeight < t.offsetTop + t.offsetHeight && (s.scrollTop = o.top - n.top + o.height - n.height + At);
4774
4774
  }
4775
4775
  }
4776
- function Xe(i, t, e = 0) {
4776
+ function _e(i, t, e = 0) {
4777
4777
  if (!l())
4778
4778
  return;
4779
4779
  const s = (t == null ? void 0 : t.behavior) || "smooth";
@@ -4793,29 +4793,35 @@ function Xe(i, t, e = 0) {
4793
4793
  });
4794
4794
  }
4795
4795
  }
4796
- function _e(i, t) {
4796
+ function Oe(i, t) {
4797
4797
  return i.indexOf(t) !== -1;
4798
4798
  }
4799
- async function Oe() {
4799
+ async function Te() {
4800
4800
  if (l()) {
4801
4801
  const i = await ot.get();
4802
4802
  document.body.style.setProperty("--sys-scrollbar-offset", `${i}px`);
4803
4803
  }
4804
4804
  }
4805
- function Te(i, t) {
4805
+ function Ge(i, t) {
4806
4806
  const e = {};
4807
4807
  return m(i) && m(t) && f(i, (s, n) => {
4808
4808
  n in t && (e[n] = s);
4809
4809
  }), e;
4810
4810
  }
4811
- function Ge(i, t) {
4811
+ function ti(i, t) {
4812
4812
  let e = Object.keys(i).length !== Object.keys(t).length;
4813
4813
  return e || f(i, (s, n) => {
4814
4814
  s !== (t == null ? void 0 : t[n]) && (e = !0);
4815
4815
  }), e;
4816
4816
  }
4817
- const ti = (i) => i.code === "Space" || i.code === "Enter" || i.key === " " || i.key === "Spacebar" || i.key === "Enter" || i.keyCode === 13 || i.keyCode === 32;
4818
- function ei(i) {
4817
+ const we = (i) => {
4818
+ if (i instanceof HTMLElement) {
4819
+ const t = i.tagName.toLowerCase();
4820
+ return !!(t === "input" || t === "textarea" || t === "select" || i.isContentEditable || i.getAttribute("contenteditable") === "true");
4821
+ }
4822
+ return !1;
4823
+ }, ei = (i, t) => i.code === "Space" || i.code === "Enter" || i.key === " " || i.key === "Spacebar" || i.key === "Enter" || i.keyCode === 13 || i.keyCode === 32 ? t !== void 0 ? !t : !we(i.target) : !1;
4824
+ function ii(i) {
4819
4825
  switch (typeof i) {
4820
4826
  case "number":
4821
4827
  return !0;
@@ -4825,14 +4831,14 @@ function ei(i) {
4825
4831
  return !1;
4826
4832
  }
4827
4833
  }
4828
- function ii(i, t) {
4834
+ function si(i, t) {
4829
4835
  const e = Math.floor(t);
4830
4836
  return i >= e && i < e + 1;
4831
4837
  }
4832
- function si(i, t) {
4838
+ function ri(i, t) {
4833
4839
  return Array.isArray(i) ? i.every((e) => rt(e, t)) : rt(i, t);
4834
4840
  }
4835
- function ri(i, t) {
4841
+ function ni(i, t) {
4836
4842
  if (i.startsWith(t))
4837
4843
  return i.slice(t.length).trim();
4838
4844
  let e = 0;
@@ -4840,11 +4846,11 @@ function ri(i, t) {
4840
4846
  e++;
4841
4847
  return i.slice(e).trim();
4842
4848
  }
4843
- const ni = (i, t, e) => {
4849
+ const oi = (i, t, e) => {
4844
4850
  var s, n;
4845
4851
  return (n = (s = i == null ? void 0 : i.replace(new RegExp(`<${t}`, "ig"), `<${e}`)) == null ? void 0 : s.replace(new RegExp(`</${t}`, "ig"), `</${e}`)) == null ? void 0 : n.trim();
4846
4852
  };
4847
- function we(i) {
4853
+ function be(i) {
4848
4854
  return [...new Set(i)];
4849
4855
  }
4850
4856
  function K(i, t, e = !0) {
@@ -4853,7 +4859,7 @@ function K(i, t, e = !0) {
4853
4859
  t,
4854
4860
  (n, o) => {
4855
4861
  const a = i == null ? void 0 : i[o];
4856
- m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = H(we([...a, ...n])) : s[o] = K(
4862
+ m(a) && m(n) ? e && Array.isArray(a) && Array.isArray(n) ? s[o] = H(be([...a, ...n])) : s[o] = K(
4857
4863
  Array.isArray(a) ? { ...a } : a,
4858
4864
  n,
4859
4865
  e
@@ -4861,13 +4867,13 @@ function K(i, t, e = !0) {
4861
4867
  }
4862
4868
  ), s;
4863
4869
  }
4864
- function oi(i, t) {
4870
+ function ai(i, t) {
4865
4871
  let e = i;
4866
4872
  return f(t, (s, n) => {
4867
4873
  e = e.replace(fe(`[${n}]`), I(s));
4868
4874
  }), e;
4869
4875
  }
4870
- function be(i, t = "auto") {
4876
+ function ve(i, t = "auto") {
4871
4877
  switch (t) {
4872
4878
  case "auto":
4873
4879
  return i.naturalWidth >= i.naturalHeight;
@@ -4877,16 +4883,16 @@ function be(i, t = "auto") {
4877
4883
  return !1;
4878
4884
  }
4879
4885
  }
4880
- function ai(i, t, e = "auto", s) {
4886
+ function ci(i, t, e = "auto", s) {
4881
4887
  var o;
4882
4888
  const n = ge(i);
4883
4889
  if (n && (n.naturalWidth > t && (e === "auto" || e === "width") || n.naturalHeight > t && (e === "auto" || e === "height"))) {
4884
- const a = be(n, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
4890
+ const a = ve(n, e), u = (o = document.createElement("canvas")) == null ? void 0 : o.getContext("2d");
4885
4891
  if (u)
4886
4892
  return u.canvas.width = a ? t : n.naturalWidth / n.naturalHeight * t, u.canvas.height = a ? n.naturalHeight / n.naturalWidth * t : t, u.drawImage(n, 0, 0, u.canvas.width, u.canvas.height), u.canvas.toDataURL(s);
4887
4893
  }
4888
4894
  }
4889
- function ci(i) {
4895
+ function ui(i) {
4890
4896
  const t = k(i);
4891
4897
  if (t > 0) {
4892
4898
  const e = String(Math.floor(t / 60)).padStart(2, "0"), s = String(t % 60).padStart(2, "0");
@@ -4894,7 +4900,7 @@ function ci(i) {
4894
4900
  }
4895
4901
  return "00:00";
4896
4902
  }
4897
- function ui(i, t, {
4903
+ function hi(i, t, {
4898
4904
  multiple: e = !1,
4899
4905
  maxlength: s = 0,
4900
4906
  alwaysChange: n = !0,
@@ -4909,7 +4915,7 @@ function ui(i, t, {
4909
4915
  }
4910
4916
  return n || i !== t ? t : i;
4911
4917
  }
4912
- function hi(i, t, e) {
4918
+ function li(i, t, e) {
4913
4919
  if (m(i) && m(t)) {
4914
4920
  if (e) {
4915
4921
  let s = {}, n = !1;
@@ -4922,33 +4928,33 @@ function hi(i, t, e) {
4922
4928
  }
4923
4929
  return H(i);
4924
4930
  }
4925
- function ve(i) {
4931
+ function Se(i) {
4926
4932
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/-+([a-zA-Z0-9])/g, (...t) => `${String(t[1]).toUpperCase()}`).replace(/^([A-Z])/, (t) => `${t.toLowerCase()}`);
4927
4933
  }
4928
- function li(i) {
4929
- return ve(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
4930
- }
4931
4934
  function di(i) {
4935
+ return Se(i).replace(/^([a-z])/, (t) => `${t.toUpperCase()}`);
4936
+ }
4937
+ function gi(i) {
4932
4938
  return i.toString().trim().replace(/[^\w- ]+/g, "").replace(/ +/g, "-").replace(/(?<=[A-Z])([A-Z])/g, (t) => `${t.toLowerCase()}`).replace(/^[A-Z]/, (t) => t.toLowerCase()).replace(/(?<=[\w ])[A-Z]/g, (t) => `-${t.toLowerCase()}`).replace(/[A-Z]/g, (t) => t.toLowerCase());
4933
4939
  }
4934
- function gi(i, t, e, s) {
4940
+ function fi(i, t, e, s) {
4935
4941
  const n = k(i), o = k(t);
4936
4942
  return t && o < n ? `${Nt(o, e, s)}+` : Nt(n, e, s);
4937
4943
  }
4938
4944
  const Nt = (i, t, e) => t ? new Q(e).number(i) : i;
4939
- function Se(i, t) {
4945
+ function De(i, t) {
4940
4946
  return 1 / i * t;
4941
4947
  }
4942
- function fi(i, t) {
4943
- return Se(i, t) * 100;
4948
+ function mi(i, t) {
4949
+ return De(i, t) * 100;
4944
4950
  }
4945
- function mi(i) {
4951
+ function yi(i) {
4946
4952
  let t = "";
4947
4953
  for (const e of i)
4948
4954
  t += String.fromCharCode(e);
4949
4955
  return l() ? window.btoa(t) : globalThis && globalThis.Buffer ? globalThis == null ? void 0 : globalThis.Buffer.from(i).toString("base64") : "";
4950
4956
  }
4951
- async function yi(i) {
4957
+ async function $i(i) {
4952
4958
  if (l())
4953
4959
  try {
4954
4960
  await navigator.clipboard.writeText(i);
@@ -4964,7 +4970,7 @@ export {
4964
4970
  qt as ApiPreparation,
4965
4971
  Yt as ApiResponse,
4966
4972
  Vt as ApiStatus,
4967
- Ce as BroadcastMessage,
4973
+ ke as BroadcastMessage,
4968
4974
  Qt as Cache,
4969
4975
  Mt as CacheItem,
4970
4976
  $t as CacheStatic,
@@ -4972,18 +4978,18 @@ export {
4972
4978
  Ft as CookieBlock,
4973
4979
  T as DataStorage,
4974
4980
  ct as Datetime,
4975
- ke as ElementScreenshot,
4981
+ Ae as ElementScreenshot,
4976
4982
  ft as EventItem,
4977
4983
  r as GEO_FLAG_ICON_NAME,
4978
4984
  w as Geo,
4979
4985
  wt as GeoFlag,
4980
4986
  Q as GeoIntl,
4981
4987
  bt as GeoPhone,
4982
- Ae as Global,
4988
+ Ne as Global,
4983
4989
  vt as Hash,
4984
4990
  Lt as Icons,
4985
4991
  x as Loading,
4986
- Ne as Meta,
4992
+ Ee as Meta,
4987
4993
  ut as MetaManager,
4988
4994
  ae as MetaOg,
4989
4995
  re as MetaOpenGraphAge,
@@ -4999,91 +5005,92 @@ export {
4999
5005
  $ as MetaTwitterTag,
5000
5006
  ot as ScrollbarWidth,
5001
5007
  Ct as Translate,
5002
- Ee as anyToString,
5008
+ Ie as anyToString,
5003
5009
  he as applyTemplate,
5004
5010
  le as arrFill,
5005
- Ie as blobToBase64,
5011
+ Be as blobToBase64,
5006
5012
  H as copyObject,
5007
5013
  C as copyObjectLite,
5008
5014
  _ as createElement,
5009
- Be as domQuerySelector,
5010
- Fe as domQuerySelectorAll,
5015
+ Fe as domQuerySelector,
5016
+ xe as domQuerySelectorAll,
5011
5017
  Gt as encodeAttribute,
5012
- xe as eventStopPropagation,
5018
+ Re as eventStopPropagation,
5013
5019
  I as executeFunction,
5014
5020
  Kt as executePromise,
5015
5021
  f as forEach,
5016
5022
  de as frame,
5017
- Re as getAttributes,
5018
- Pe as getClipboardData,
5023
+ Pe as getAttributes,
5024
+ We as getClipboardData,
5019
5025
  _t as getColumn,
5020
- We as getCurrentDate,
5026
+ Ue as getCurrentDate,
5021
5027
  N as getElement,
5022
- Ue as getElementId,
5028
+ je as getElementId,
5023
5029
  ge as getElementImage,
5024
5030
  Ot as getElementItem,
5025
5031
  gt as getElementOrWindow,
5026
5032
  fe as getExp,
5027
5033
  me as getItemByPath,
5028
- je as getKey,
5034
+ He as getKey,
5029
5035
  Rt as getLengthOfAllArray,
5030
- He as getMaxLengthAllArray,
5031
- ze as getMinLengthAllArray,
5032
- Ze as getMouseClient,
5036
+ ze as getMaxLengthAllArray,
5037
+ Ze as getMinLengthAllArray,
5038
+ Ve as getMouseClient,
5033
5039
  ye as getMouseClientX,
5034
5040
  $e as getMouseClientY,
5035
- Ve as getObjectByKeys,
5036
- Ke as getObjectNoUndefined,
5037
- Ye as getObjectOrNone,
5038
- qe as getRandomText,
5041
+ Ke as getObjectByKeys,
5042
+ Ye as getObjectNoUndefined,
5043
+ qe as getObjectOrNone,
5044
+ Je as getRandomText,
5039
5045
  Et as getRequestString,
5040
- Je as getStepPercent,
5041
- Me as getStepValue,
5042
- Qe as goScroll,
5043
- Xe as goScrollSmooth,
5044
- _e as inArray,
5045
- Oe as initScrollbarOffset,
5046
- Te as intersectKey,
5046
+ Me as getStepPercent,
5047
+ Qe as getStepValue,
5048
+ Xe as goScroll,
5049
+ _e as goScrollSmooth,
5050
+ Oe as inArray,
5051
+ Te as initScrollbarOffset,
5052
+ Ge as intersectKey,
5047
5053
  xt as isArray,
5048
- Ge as isDifferent,
5054
+ ti as isDifferent,
5049
5055
  nt as isDomData,
5050
5056
  l as isDomRuntime,
5051
- ti as isEnter,
5057
+ ei as isEnter,
5052
5058
  L as isFilled,
5053
- ei as isFloat,
5059
+ ii as isFloat,
5054
5060
  at as isFunction,
5055
5061
  Ht as isInDom,
5056
- ii as isIntegerBetween,
5062
+ we as isInput,
5063
+ si as isIntegerBetween,
5057
5064
  M as isNull,
5058
5065
  lt as isNumber,
5059
5066
  m as isObject,
5060
5067
  A as isObjectNotArray,
5061
5068
  rt as isSelected,
5062
- si as isSelectedByList,
5069
+ ri as isSelectedByList,
5063
5070
  R as isString,
5064
5071
  It as isWindow,
5065
5072
  J as random,
5066
- ri as removeCommonPrefix,
5067
- ni as replaceComponentName,
5073
+ ni as removeCommonPrefix,
5074
+ oi as replaceComponentName,
5068
5075
  K as replaceRecursive,
5069
- oi as replaceTemplate,
5070
- ai as resizeImageByMax,
5071
- ci as secondToTime,
5076
+ ai as replaceTemplate,
5077
+ ci as resizeImageByMax,
5078
+ ui as secondToTime,
5072
5079
  Tt as setElementItem,
5073
- ui as setValues,
5074
- hi as splice,
5080
+ hi as setValues,
5081
+ li as splice,
5075
5082
  pe as strFill,
5076
5083
  Z as toArray,
5077
- ve as toCamelCase,
5078
- li as toCamelCaseFirst,
5084
+ Se as toCamelCase,
5085
+ di as toCamelCaseFirst,
5079
5086
  B as toDate,
5080
- di as toKebabCase,
5087
+ gi as toKebabCase,
5081
5088
  k as toNumber,
5082
- gi as toNumberByMax,
5083
- Se as toPercent,
5084
- fi as toPercentBy100,
5089
+ fi as toNumberByMax,
5090
+ De as toPercent,
5091
+ mi as toPercentBy100,
5085
5092
  Bt as transformation,
5086
- mi as uint8ArrayToBase64,
5087
- we as uniqueArray,
5088
- yi as writeClipboardData
5093
+ yi as uint8ArrayToBase64,
5094
+ be as uniqueArray,
5095
+ $i as writeClipboardData
5089
5096
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional-basic",
3
3
  "private": false,
4
- "version": "0.7.1",
4
+ "version": "0.7.2",
5
5
  "type": "module",
6
6
  "description": "Core functional utility library for modern web development without framework dependencies",
7
7
  "keywords": [
@@ -37,7 +37,7 @@
37
37
  "test": "vitest",
38
38
  "library": "dxt-library",
39
39
  "dxt-types": "dxt-types",
40
- "prepublishOnly": "npm run build"
40
+ "prepublishOnly": "npm run library && npm run build"
41
41
  },
42
42
  "files": [
43
43
  "dist",