comand-component-library 4.2.31 → 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.
@@ -9366,7 +9366,7 @@ const Sm = /* @__PURE__ */ F(Cm, [["render", Tm]]), _m = {
|
|
9366
9366
|
*
|
9367
9367
|
* component cannot handle native disabled-attribute, because it is no native form-element
|
9368
9368
|
*/
|
9369
|
-
|
9369
|
+
disableGroup: {
|
9370
9370
|
type: Boolean,
|
9371
9371
|
default: !1
|
9372
9372
|
}
|
@@ -9433,7 +9433,7 @@ function Pm(e, t, n, s, i, l) {
|
|
9433
9433
|
{
|
9434
9434
|
inline: n.labelInline,
|
9435
9435
|
"multiple-switch": n.multipleSwitch,
|
9436
|
-
disabled: n.
|
9436
|
+
disabled: n.disableGroup,
|
9437
9437
|
"toggle-switches": n.toggleSwitches,
|
9438
9438
|
"has-state": e.validationStatus
|
9439
9439
|
}
|
@@ -9490,7 +9490,7 @@ function Pm(e, t, n, s, i, l) {
|
|
9490
9490
|
name: c.name,
|
9491
9491
|
value: c.value,
|
9492
9492
|
"onUpdate:modelValue": t[1] || (t[1] = (f) => l.inputValue = f),
|
9493
|
-
disabled:
|
9493
|
+
disabled: c.disabled,
|
9494
9494
|
class: x({ "replace-input-type": n.replaceInputType })
|
9495
9495
|
}, null, 10, Fm), [
|
9496
9496
|
[Rl, l.inputValue]
|
@@ -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'");
|
@@ -18882,60 +18886,60 @@ const px = /* @__PURE__ */ F(cx, [["render", mx]]), fx = [
|
|
18882
18886
|
outbox: Gx
|
18883
18887
|
}, Yx = [
|
18884
18888
|
{
|
18885
|
-
|
18889
|
+
linkType: "href",
|
18886
18890
|
path: "#",
|
18887
18891
|
text: "Contact",
|
18888
18892
|
tooltip: "This is a tooltip for step 1",
|
18889
18893
|
iconClass: "icon-address"
|
18890
18894
|
},
|
18891
18895
|
{
|
18892
|
-
|
18896
|
+
linkType: "href",
|
18893
18897
|
path: "#",
|
18894
18898
|
text: "Settings",
|
18895
18899
|
iconClass: "icon-configuration"
|
18896
18900
|
},
|
18897
18901
|
{
|
18898
|
-
|
18902
|
+
linkType: "href",
|
18899
18903
|
path: "#",
|
18900
18904
|
text: "Attachments",
|
18901
18905
|
iconClass: "icon-attachment"
|
18902
18906
|
},
|
18903
18907
|
{
|
18904
|
-
|
18908
|
+
linkType: "href",
|
18905
18909
|
path: "#",
|
18906
18910
|
text: "Terms and Conditions",
|
18907
18911
|
iconClass: "icon-section-sign"
|
18908
18912
|
},
|
18909
18913
|
{
|
18910
|
-
|
18914
|
+
linkType: "href",
|
18911
18915
|
path: "#",
|
18912
18916
|
text: "Summary",
|
18913
18917
|
iconClass: "icon-rows"
|
18914
18918
|
}
|
18915
18919
|
], Jx = [
|
18916
18920
|
{
|
18917
|
-
|
18921
|
+
linkType: "href",
|
18918
18922
|
path: "#",
|
18919
18923
|
text: "Contact",
|
18920
18924
|
tooltip: "This is a tooltip for step 1"
|
18921
18925
|
},
|
18922
18926
|
{
|
18923
|
-
|
18927
|
+
linkType: "href",
|
18924
18928
|
path: "#",
|
18925
18929
|
text: "Settings"
|
18926
18930
|
},
|
18927
18931
|
{
|
18928
|
-
|
18932
|
+
linkType: "href",
|
18929
18933
|
path: "#",
|
18930
18934
|
text: "Attachments"
|
18931
18935
|
},
|
18932
18936
|
{
|
18933
|
-
|
18937
|
+
linkType: "href",
|
18934
18938
|
path: "#",
|
18935
18939
|
text: "Terms and Conditions"
|
18936
18940
|
},
|
18937
18941
|
{
|
18938
|
-
|
18942
|
+
linkType: "href",
|
18939
18943
|
path: "#",
|
18940
18944
|
text: "Summary"
|
18941
18945
|
}
|
@@ -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.
|
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
|
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
|
-
},
|
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
|
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
|
24592
|
+
function Iv(e) {
|
24589
24593
|
return e ? e.slice(0, 1).toUpperCase() + e.slice(1) : "";
|
24590
24594
|
}
|
24591
|
-
function
|
24595
|
+
function Bv(e) {
|
24592
24596
|
return e ? e.charAt(0).toLowerCase() + e.slice(1) : "";
|
24593
24597
|
}
|
24594
|
-
function
|
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
|
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
|
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
|
-
|
24708
|
+
Sv as ComponentLibrary,
|
24705
24709
|
_b as ContactInformation,
|
24706
|
-
|
24707
|
-
|
24708
|
-
|
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
|
-
|
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
|
-
|
24724
|
+
Dv as fullName,
|
24720
24725
|
Wi as getCookieDisclaimerCookie,
|
24721
24726
|
Xe as getFileExtension,
|
24722
|
-
|
24727
|
+
Bv as lowercaseFirstLetter,
|
24723
24728
|
ve as openFancyBox,
|
24724
24729
|
um as setCookieDisclaimerCookie,
|
24725
|
-
|
24726
|
-
|
24730
|
+
Fv as useScrollspy,
|
24731
|
+
Mv as useSequence
|
24727
24732
|
};
|
package/package.json
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
{
|
2
2
|
"withIcon": [
|
3
3
|
{
|
4
|
-
"
|
4
|
+
"linkType": "href",
|
5
5
|
"path": "#",
|
6
6
|
"text": "Contact",
|
7
7
|
"tooltip": "This is a tooltip for step 1",
|
8
8
|
"iconClass": "icon-address"
|
9
9
|
},
|
10
10
|
{
|
11
|
-
"
|
11
|
+
"linkType": "href",
|
12
12
|
"path": "#",
|
13
13
|
"text": "Settings",
|
14
14
|
"iconClass": "icon-configuration"
|
15
15
|
},
|
16
16
|
{
|
17
|
-
"
|
17
|
+
"linkType": "href",
|
18
18
|
"path": "#",
|
19
19
|
"text": "Attachments",
|
20
20
|
"iconClass": "icon-attachment"
|
21
21
|
},
|
22
22
|
{
|
23
|
-
"
|
23
|
+
"linkType": "href",
|
24
24
|
"path": "#",
|
25
25
|
"text": "Terms and Conditions",
|
26
26
|
"iconClass": "icon-section-sign"
|
27
27
|
},
|
28
28
|
{
|
29
|
-
"
|
29
|
+
"linkType": "href",
|
30
30
|
"path": "#",
|
31
31
|
"text": "Summary",
|
32
32
|
"iconClass": "icon-rows"
|
@@ -34,28 +34,28 @@
|
|
34
34
|
],
|
35
35
|
"withoutIcon": [
|
36
36
|
{
|
37
|
-
"
|
37
|
+
"linkType": "href",
|
38
38
|
"path": "#",
|
39
39
|
"text": "Contact",
|
40
40
|
"tooltip": "This is a tooltip for step 1"
|
41
41
|
},
|
42
42
|
{
|
43
|
-
"
|
43
|
+
"linkType": "href",
|
44
44
|
"path": "#",
|
45
45
|
"text": "Settings"
|
46
46
|
},
|
47
47
|
{
|
48
|
-
"
|
48
|
+
"linkType": "href",
|
49
49
|
"path": "#",
|
50
50
|
"text": "Attachments"
|
51
51
|
},
|
52
52
|
{
|
53
|
-
"
|
53
|
+
"linkType": "href",
|
54
54
|
"path": "#",
|
55
55
|
"text": "Terms and Conditions"
|
56
56
|
},
|
57
57
|
{
|
58
|
-
"
|
58
|
+
"linkType": "href",
|
59
59
|
"path": "#",
|
60
60
|
"text": "Summary"
|
61
61
|
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
{
|
6
6
|
inline: labelInline,
|
7
7
|
'multiple-switch': multipleSwitch,
|
8
|
-
disabled:
|
8
|
+
disabled: disableGroup,
|
9
9
|
'toggle-switches': toggleSwitches,
|
10
10
|
'has-state': validationStatus
|
11
11
|
}
|
@@ -57,7 +57,7 @@
|
|
57
57
|
:name="inputElement.name"
|
58
58
|
:value="inputElement.value"
|
59
59
|
v-model="inputValue"
|
60
|
-
:disabled="disabled"
|
60
|
+
:disabled="inputElement.disabled"
|
61
61
|
:class="{'replace-input-type': replaceInputType}"
|
62
62
|
/>
|
63
63
|
<!-- begin CmdIcon -->
|
@@ -259,7 +259,7 @@ export default {
|
|
259
259
|
*
|
260
260
|
* component cannot handle native disabled-attribute, because it is no native form-element
|
261
261
|
*/
|
262
|
-
|
262
|
+
disableGroup: {
|
263
263
|
type: Boolean,
|
264
264
|
default: false
|
265
265
|
}
|
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}
|