comand-component-library 4.1.85 → 4.1.86
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/comand-component-library.js +8 -8
- package/package.json +1 -1
- package/src/index.js +1 -2
- package/src/utils/string.js +13 -1
- package/src/utils/name.js +0 -13
@@ -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.
|
19472
|
+
], _1 = "comand-component-library", C1 = "4.1.86", 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,10 @@ 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, n = null, t) {
|
23427
|
+
let a = "";
|
23428
|
+
return a += e + " ", n && (a += n + " "), a += t, a;
|
23429
|
+
}
|
23426
23430
|
function Sk(e, n, t) {
|
23427
23431
|
Eo(() => e.addEventListener(n, t)), Ho(() => e.removeEventListener(n, t));
|
23428
23432
|
}
|
@@ -23443,7 +23447,7 @@ function Lk(e, n) {
|
|
23443
23447
|
}).forEach((a) => n.push(a));
|
23444
23448
|
}
|
23445
23449
|
}
|
23446
|
-
function
|
23450
|
+
function qk(e, n = 0) {
|
23447
23451
|
const t = [], a = qo({
|
23448
23452
|
activeItem: n,
|
23449
23453
|
reset() {
|
@@ -23460,10 +23464,6 @@ function Hk(e, n = 0) {
|
|
23460
23464
|
}
|
23461
23465
|
}), a;
|
23462
23466
|
}
|
23463
|
-
function qk(e, n = null, t) {
|
23464
|
-
let a = "";
|
23465
|
-
return a += e + " ", n && (a += n + " "), a += t, a;
|
23466
|
-
}
|
23467
23467
|
function Rk() {
|
23468
23468
|
const e = {};
|
23469
23469
|
Ro(a);
|
@@ -23545,11 +23545,11 @@ export {
|
|
23545
23545
|
Qe as createUuid,
|
23546
23546
|
Dk as currentDate,
|
23547
23547
|
F1 as formatDate,
|
23548
|
-
|
23548
|
+
Hk as fullName,
|
23549
23549
|
qi as getCookieDisclaimerCookie,
|
23550
23550
|
Ke as getFileExtension,
|
23551
23551
|
be as openFancyBox,
|
23552
23552
|
Cm as setCookieDisclaimerCookie,
|
23553
|
-
|
23553
|
+
qk as useScrollspy,
|
23554
23554
|
Rk as useSequence
|
23555
23555
|
};
|
package/package.json
CHANGED
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 { capitalize, 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'
|
package/src/utils/string.js
CHANGED
@@ -5,4 +5,16 @@ function capitalize(string) {
|
|
5
5
|
return ""
|
6
6
|
}
|
7
7
|
|
8
|
-
|
8
|
+
function fullName(firstName, middleName = null, lastName) {
|
9
|
+
let fullName = ""
|
10
|
+
fullName += firstName + " "
|
11
|
+
|
12
|
+
if(middleName) {
|
13
|
+
fullName += middleName + " "
|
14
|
+
}
|
15
|
+
|
16
|
+
fullName += lastName
|
17
|
+
return fullName
|
18
|
+
}
|
19
|
+
|
20
|
+
export {capitalize, fullName}
|
package/src/utils/name.js
DELETED