comand-component-library 4.2.32 → 4.2.33

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.
@@ -17431,6 +17431,10 @@ const kl = /* @__PURE__ */ F(Db, [["render", Mb]]), Fb = {
17431
17431
  function wv(e = !1) {
17432
17432
  return e ? (/* @__PURE__ */ new Date()).toISOString() : (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
17433
17433
  }
17434
+ function Tv() {
17435
+ const e = /* @__PURE__ */ new Date(), t = String(e.getHours()).padStart(2, "0"), n = String(e.getMinutes()).padStart(2, "0");
17436
+ return t + ":" + n;
17437
+ }
17434
17438
  function wl(e, t = "dmy", n = ".") {
17435
17439
  const s = new Date(e);
17436
17440
  isNaN(s) && console.error("function 'formatDate()' received an invalid date as parameter. Provide date in format 'YYYY-MM-DD'");
@@ -20456,7 +20460,7 @@ const px = /* @__PURE__ */ F(cx, [["render", mx]]), fx = [
20456
20460
  text: "Zimbabwe",
20457
20461
  value: "zw"
20458
20462
  }
20459
- ], _C = "comand-component-library", OC = "4.2.32", LC = "GPL-3.0-only", IC = "CoManD-UI", BC = "module", DC = {
20463
+ ], _C = "comand-component-library", OC = "4.2.33", LC = "GPL-3.0-only", IC = "CoManD-UI", BC = "module", DC = {
20460
20464
  prepublishOnly: "npm run build-lib",
20461
20465
  dev: "vite",
20462
20466
  build: "vite build",
@@ -24535,7 +24539,7 @@ function gv(e, t, n, s, i, l) {
24535
24539
  [Al]
24536
24540
  ]);
24537
24541
  }
24538
- const Tv = /* @__PURE__ */ F(NC, [["render", gv]]), Sv = {
24542
+ const Sv = /* @__PURE__ */ F(NC, [["render", gv]]), _v = {
24539
24543
  // el = real dom-element
24540
24544
  mounted(e) {
24541
24545
  if (e.tagName === "INPUT" || e.tagName === "SELECT" || e.tagName === "TEXTAREA" || e.tagName === "A")
@@ -24545,7 +24549,7 @@ const Tv = /* @__PURE__ */ F(NC, [["render", gv]]), Sv = {
24545
24549
  t ? t.focus() : console.warn("No input-element for focus-directive on element " + e.tagName + " found!");
24546
24550
  }
24547
24551
  }
24548
- }, _v = {
24552
+ }, Ov = {
24549
24553
  // el = real dom-element
24550
24554
  // binding.value = value of v-directive
24551
24555
  mounted(e, t) {
@@ -24573,7 +24577,7 @@ function yv(e) {
24573
24577
  }
24574
24578
  t.length > 0 && Sl(t);
24575
24579
  }
24576
- const Ov = (e) => {
24580
+ const Lv = (e) => {
24577
24581
  const t = e.querySelectorAll(".fancybox");
24578
24582
  Sl(t), pt == null || pt.disconnect(), pt.observe(e, {
24579
24583
  subtree: !0,
@@ -24585,16 +24589,16 @@ const Ov = (e) => {
24585
24589
  characterData: !1
24586
24590
  });
24587
24591
  };
24588
- function Lv(e) {
24592
+ function Iv(e) {
24589
24593
  return e ? e.slice(0, 1).toUpperCase() + e.slice(1) : "";
24590
24594
  }
24591
- function Iv(e) {
24595
+ function Bv(e) {
24592
24596
  return e ? e.charAt(0).toLowerCase() + e.slice(1) : "";
24593
24597
  }
24594
- function Bv(...e) {
24598
+ function Dv(...e) {
24595
24599
  return e.filter((t) => typeof t == "string").map((t) => t.trim()).filter((t) => t.length > 0).join(" ");
24596
24600
  }
24597
- function Dv() {
24601
+ function Mv() {
24598
24602
  const e = {};
24599
24603
  zl(s);
24600
24604
  function t(i = "defaultSequence") {
@@ -24629,7 +24633,7 @@ function Cv(e, t) {
24629
24633
  }).forEach((s) => t.push(s));
24630
24634
  }
24631
24635
  }
24632
- function Mv(e, t = 0) {
24636
+ function Fv(e, t = 0) {
24633
24637
  const n = [], s = Kl({
24634
24638
  activeItem: t,
24635
24639
  reset() {
@@ -24701,27 +24705,28 @@ export {
24701
24705
  gn as CmdTooltipForFormElements,
24702
24706
  ab as CmdUploadForm,
24703
24707
  Cl as CmdWidthLimitationWrapper,
24704
- Tv as ComponentLibrary,
24708
+ Sv as ComponentLibrary,
24705
24709
  _b as ContactInformation,
24706
- Ov as DirFancybox,
24707
- Sv as DirFocus,
24708
- _v as DirTelephone,
24710
+ Lv as DirFancybox,
24711
+ _v as DirFocus,
24712
+ Ov as DirTelephone,
24709
24713
  qe as EditComponentWrapper,
24710
24714
  me as I18n,
24711
24715
  yb as MultipleBoxWrapper,
24712
24716
  vb as MultipleListsOfLinks,
24713
- Lv as capitalizeFirstLetter,
24717
+ Iv as capitalizeFirstLetter,
24714
24718
  Fi as createHtmlId,
24715
24719
  nt as createUuid,
24716
24720
  wv as currentDate,
24721
+ Tv as currentTime,
24717
24722
  wl as formatDate,
24718
24723
  Vb as formatTime,
24719
- Bv as fullName,
24724
+ Dv as fullName,
24720
24725
  Wi as getCookieDisclaimerCookie,
24721
24726
  Xe as getFileExtension,
24722
- Iv as lowercaseFirstLetter,
24727
+ Bv as lowercaseFirstLetter,
24723
24728
  ve as openFancyBox,
24724
24729
  um as setCookieDisclaimerCookie,
24725
- Mv as useScrollspy,
24726
- Dv as useSequence
24730
+ Fv as useScrollspy,
24731
+ Mv as useSequence
24727
24732
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.2.32",
3
+ "version": "4.2.33",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
package/src/index.js CHANGED
@@ -71,7 +71,7 @@ export { createUuid, createHtmlId } from '@/utils/common'
71
71
  export { getFileExtension } from '@/utils/getFileExtension'
72
72
  export { capitalizeFirstLetter, lowercaseFirstLetter, fullName } from '@/utils/string'
73
73
  export { setCookieDisclaimerCookie, getCookieDisclaimerCookie } from '@/utils/cookie'
74
- export { currentDate, formatDate, formatTime } from "@/utils/date"
74
+ export { currentDate, currentTime, formatDate, formatTime } from "@/utils/date"
75
75
 
76
76
  // export composables
77
77
  export { useSequence } from '@/composables/sequence'
package/src/utils/date.js CHANGED
@@ -2,6 +2,15 @@ function currentDate(returnTime = false) {
2
2
  return returnTime ? new Date().toISOString() : new Date().toISOString().split('T')[0];
3
3
  }
4
4
 
5
+ function currentTime() {
6
+ const now = new Date();
7
+ const hours = String(now.getHours()).padStart(2, '0');
8
+ const minutes = String(now.getMinutes()).padStart(2, '0');
9
+
10
+ return hours + ":" + minutes
11
+ }
12
+
13
+
5
14
  function getDate(inputDate, operator = "+", days = 1) {
6
15
  const date = new Date(inputDate)
7
16
 
@@ -68,4 +77,4 @@ function formatTime(timeString = "00:00", format = 24, textAfter = "h") {
68
77
  }
69
78
  }
70
79
 
71
- export {currentDate, formatDate, formatTime}
80
+ export {currentDate, currentTime, formatDate, formatTime}