comand-component-library 4.1.86 → 4.1.87
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/comand-component-library.js +12 -8
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/src/utils/string.js +9 -2
@@ -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.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,7 +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
|
23426
|
+
function Hk(e) {
|
23427
|
+
return e ? e.charAt(0).toLowerCase() + e.slice(1) : "";
|
23428
|
+
}
|
23429
|
+
function qk(e, n = null, t) {
|
23427
23430
|
let a = "";
|
23428
23431
|
return a += e + " ", n && (a += n + " "), a += t, a;
|
23429
23432
|
}
|
@@ -23447,7 +23450,7 @@ function Lk(e, n) {
|
|
23447
23450
|
}).forEach((a) => n.push(a));
|
23448
23451
|
}
|
23449
23452
|
}
|
23450
|
-
function
|
23453
|
+
function Rk(e, n = 0) {
|
23451
23454
|
const t = [], a = qo({
|
23452
23455
|
activeItem: n,
|
23453
23456
|
reset() {
|
@@ -23464,7 +23467,7 @@ function qk(e, n = 0) {
|
|
23464
23467
|
}
|
23465
23468
|
}), a;
|
23466
23469
|
}
|
23467
|
-
function
|
23470
|
+
function Nk() {
|
23468
23471
|
const e = {};
|
23469
23472
|
Ro(a);
|
23470
23473
|
function n(i = "defaultSequence") {
|
@@ -23540,16 +23543,17 @@ export {
|
|
23540
23543
|
me as I18n,
|
23541
23544
|
Yx as MultipleBoxWrapper,
|
23542
23545
|
Xx as MultipleListsOfLinks,
|
23543
|
-
Ek as
|
23546
|
+
Ek as capitalizeFirstLetter,
|
23544
23547
|
Oi as createHtmlId,
|
23545
23548
|
Qe as createUuid,
|
23546
23549
|
Dk as currentDate,
|
23547
23550
|
F1 as formatDate,
|
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
|
-
|
23554
|
-
|
23557
|
+
Rk as useScrollspy,
|
23558
|
+
Nk as useSequence
|
23555
23559
|
};
|
package/package.json
CHANGED
package/src/index.js
CHANGED
@@ -66,7 +66,7 @@ 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 {
|
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"
|
package/src/utils/string.js
CHANGED
@@ -1,10 +1,17 @@
|
|
1
|
-
function
|
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
|
+
function lowercaseFirstLetter(string) {
|
9
|
+
if(string) {
|
10
|
+
return string.charAt(0).toLowerCase() + string.slice(1);
|
11
|
+
}
|
12
|
+
return ""
|
13
|
+
}
|
14
|
+
|
8
15
|
function fullName(firstName, middleName = null, lastName) {
|
9
16
|
let fullName = ""
|
10
17
|
fullName += firstName + " "
|
@@ -17,4 +24,4 @@ function fullName(firstName, middleName = null, lastName) {
|
|
17
24
|
return fullName
|
18
25
|
}
|
19
26
|
|
20
|
-
export {
|
27
|
+
export {capitalizeFirstLetter, lowercaseFirstLetter, fullName}
|