comand-component-library 4.1.85 → 4.1.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -19469,7 +19469,7 @@ const b1 = /* @__PURE__ */ P(f1, [["render", y1]]), x1 = [
19469
19469
  text: "Zimbabwe",
19470
19470
  value: "zw"
19471
19471
  }
19472
- ], _1 = "comand-component-library", C1 = "4.1.85", v1 = "GPL-3.0-only", w1 = "CoManD-UI", k1 = "module", T1 = {
19472
+ ], _1 = "comand-component-library", C1 = "4.1.87", v1 = "GPL-3.0-only", w1 = "CoManD-UI", k1 = "module", T1 = {
19473
19473
  prepublishOnly: "npm run build-lib",
19474
19474
  dev: "vite",
19475
19475
  build: "vite build",
@@ -23423,6 +23423,13 @@ const Ak = (e) => {
23423
23423
  function Ek(e) {
23424
23424
  return e ? e.slice(0, 1).toUpperCase() + e.slice(1) : "";
23425
23425
  }
23426
+ function Hk(e) {
23427
+ return e ? e.charAt(0).toLowerCase() + e.slice(1) : "";
23428
+ }
23429
+ function qk(e, n = null, t) {
23430
+ let a = "";
23431
+ return a += e + " ", n && (a += n + " "), a += t, a;
23432
+ }
23426
23433
  function Sk(e, n, t) {
23427
23434
  Eo(() => e.addEventListener(n, t)), Ho(() => e.removeEventListener(n, t));
23428
23435
  }
@@ -23443,7 +23450,7 @@ function Lk(e, n) {
23443
23450
  }).forEach((a) => n.push(a));
23444
23451
  }
23445
23452
  }
23446
- function Hk(e, n = 0) {
23453
+ function Rk(e, n = 0) {
23447
23454
  const t = [], a = qo({
23448
23455
  activeItem: n,
23449
23456
  reset() {
@@ -23460,11 +23467,7 @@ function Hk(e, n = 0) {
23460
23467
  }
23461
23468
  }), a;
23462
23469
  }
23463
- function qk(e, n = null, t) {
23464
- let a = "";
23465
- return a += e + " ", n && (a += n + " "), a += t, a;
23466
- }
23467
- function Rk() {
23470
+ function Nk() {
23468
23471
  const e = {};
23469
23472
  Ro(a);
23470
23473
  function n(i = "defaultSequence") {
@@ -23540,7 +23543,7 @@ export {
23540
23543
  me as I18n,
23541
23544
  Yx as MultipleBoxWrapper,
23542
23545
  Xx as MultipleListsOfLinks,
23543
- Ek as capitalize,
23546
+ Ek as capitalizeFirstLetter,
23544
23547
  Oi as createHtmlId,
23545
23548
  Qe as createUuid,
23546
23549
  Dk as currentDate,
@@ -23548,8 +23551,9 @@ export {
23548
23551
  qk as fullName,
23549
23552
  qi as getCookieDisclaimerCookie,
23550
23553
  Ke as getFileExtension,
23554
+ Hk as lowercaseFirstLetter,
23551
23555
  be as openFancyBox,
23552
23556
  Cm as setCookieDisclaimerCookie,
23553
- Hk as useScrollspy,
23554
- Rk as useSequence
23557
+ Rk as useScrollspy,
23558
+ Nk as useSequence
23555
23559
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.1.85",
3
+ "version": "4.1.87",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "CoManD-UI",
6
6
  "private": false,
package/src/index.js CHANGED
@@ -66,11 +66,10 @@ export { default as DirFancybox } from '@/directives/fancybox'
66
66
  // export functions
67
67
  export { createUuid, createHtmlId } from '@/utils/common'
68
68
  export { getFileExtension } from '@/utils/getFileExtension'
69
- export { capitalize } from '@/utils/string'
69
+ export { capitalizeFirstLetter, lowercaseFirstLetter, fullName } from '@/utils/string'
70
70
  export { useScrollspy } from '@/composables/scrollspy'
71
71
  export { setCookieDisclaimerCookie, getCookieDisclaimerCookie } from '@/utils/cookie'
72
72
  export { currentDate, formatDate } from "@/utils/date"
73
- export { fullName } from "@/utils/name"
74
73
 
75
74
  // export composables
76
75
  export { useSequence } from '@/composables/sequence'
@@ -1,8 +1,27 @@
1
- function capitalize(string) {
1
+ function capitalizeFirstLetter(string) {
2
2
  if(string) {
3
3
  return string.slice(0, 1).toUpperCase() + string.slice(1)
4
4
  }
5
5
  return ""
6
6
  }
7
7
 
8
- export {capitalize}
8
+ function lowercaseFirstLetter(string) {
9
+ if(string) {
10
+ return string.charAt(0).toLowerCase() + string.slice(1);
11
+ }
12
+ return ""
13
+ }
14
+
15
+ function fullName(firstName, middleName = null, lastName) {
16
+ let fullName = ""
17
+ fullName += firstName + " "
18
+
19
+ if(middleName) {
20
+ fullName += middleName + " "
21
+ }
22
+
23
+ fullName += lastName
24
+ return fullName
25
+ }
26
+
27
+ export {capitalizeFirstLetter, lowercaseFirstLetter, fullName}
package/src/utils/name.js DELETED
@@ -1,13 +0,0 @@
1
- function fullName(firstName, middleName = null, lastName) {
2
- let fullName = ""
3
- fullName += firstName + " "
4
-
5
- if(middleName) {
6
- fullName += middleName + " "
7
- }
8
-
9
- fullName += lastName
10
- return fullName
11
- }
12
-
13
- export {fullName}