@iankibetsh/shframework 4.3.0 → 4.3.2
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/dist/library.mjs.css +42 -42
- package/dist/library.js +32 -2
- package/dist/library.mjs +32 -2
- package/package.json +1 -1
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
|
|
2
|
+
.colored-toast.swal2-icon-success {
|
|
3
|
+
background-color: #a5dc86 !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.colored-toast.swal2-icon-error {
|
|
7
|
+
background-color: #f27474 !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.colored-toast.swal2-icon-warning {
|
|
11
|
+
background-color: #f8bb86 !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.colored-toast.swal2-icon-info {
|
|
15
|
+
background-color: #3fc3ee !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.colored-toast.swal2-icon-question {
|
|
19
|
+
background-color: #87adbd !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.colored-toast .swal2-title {
|
|
23
|
+
color: white;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.colored-toast .swal2-close {
|
|
27
|
+
color: white;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.colored-toast .swal2-html-container {
|
|
31
|
+
color: white;
|
|
32
|
+
}
|
|
33
|
+
|
|
2
34
|
.sh-phone{
|
|
3
35
|
display: flex;
|
|
4
36
|
width: 100%;
|
|
@@ -31,36 +63,19 @@
|
|
|
31
63
|
opacity: 0.5;
|
|
32
64
|
}
|
|
33
65
|
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.colored-toast.swal2-icon-error {
|
|
39
|
-
background-color: #f27474 !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.colored-toast.swal2-icon-warning {
|
|
43
|
-
background-color: #f8bb86 !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.colored-toast.swal2-icon-info {
|
|
47
|
-
background-color: #3fc3ee !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.colored-toast.swal2-icon-question {
|
|
51
|
-
background-color: #87adbd !important;
|
|
66
|
+
.sh-selected-item{
|
|
67
|
+
line-height: unset!important;
|
|
52
68
|
}
|
|
53
|
-
|
|
54
|
-
.
|
|
55
|
-
color: white;
|
|
69
|
+
.sh-suggestion-input{
|
|
70
|
+
padding: 0.375rem 0.75rem;
|
|
56
71
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
color: white;
|
|
72
|
+
.sh-suggest{
|
|
73
|
+
margin-bottom: 1rem;
|
|
60
74
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
75
|
+
.sh-suggest-control::after{
|
|
76
|
+
margin-top: auto;
|
|
77
|
+
margin-bottom: auto;
|
|
78
|
+
margin-right: 0.255em;
|
|
64
79
|
}
|
|
65
80
|
|
|
66
81
|
.permissions-main {
|
|
@@ -95,21 +110,6 @@
|
|
|
95
110
|
flex-grow: 1;
|
|
96
111
|
}
|
|
97
112
|
|
|
98
|
-
.sh-selected-item{
|
|
99
|
-
line-height: unset!important;
|
|
100
|
-
}
|
|
101
|
-
.sh-suggestion-input{
|
|
102
|
-
padding: 0.375rem 0.75rem;
|
|
103
|
-
}
|
|
104
|
-
.sh-suggest{
|
|
105
|
-
margin-bottom: 1rem;
|
|
106
|
-
}
|
|
107
|
-
.sh-suggest-control::after{
|
|
108
|
-
margin-top: auto;
|
|
109
|
-
margin-bottom: auto;
|
|
110
|
-
margin-right: 0.255em;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
113
|
.callout{
|
|
114
114
|
--bs-link-color-rgb: 110,168,254;
|
|
115
115
|
--bs-code-color: #e685b5;
|
package/dist/library.js
CHANGED
|
@@ -3134,6 +3134,7 @@ var script$m = {
|
|
|
3134
3134
|
'successMessage','fields','customComponents','placeHolders',
|
|
3135
3135
|
'formClasses',
|
|
3136
3136
|
'helperTexts','labels','data',
|
|
3137
|
+
'fillSelects',
|
|
3137
3138
|
'formClass',
|
|
3138
3139
|
'actionLabel',
|
|
3139
3140
|
'textAreas',
|
|
@@ -3168,6 +3169,15 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3168
3169
|
if(props.customComponents && props.customComponents[field]) {
|
|
3169
3170
|
return props.customComponents[field]
|
|
3170
3171
|
}
|
|
3172
|
+
if(props.fillSelects && props.fillSelects[field]){
|
|
3173
|
+
Object.assign(fieldObj, props.fillSelects[field]);
|
|
3174
|
+
if(fieldObj.suggests || fieldObj.suggest){
|
|
3175
|
+
fieldObj.type = 'suggests';
|
|
3176
|
+
} else {
|
|
3177
|
+
fieldObj.type = 'select';
|
|
3178
|
+
}
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3171
3181
|
if(fieldObj.type){
|
|
3172
3182
|
if(fieldObj.type === 'suggest' || fieldObj.type === 'suggests'){
|
|
3173
3183
|
return script$u
|
|
@@ -3577,7 +3587,7 @@ var script$j = {
|
|
|
3577
3587
|
'phones',
|
|
3578
3588
|
'numbers',
|
|
3579
3589
|
'customComponent','modalTitle','class','successMessage'],
|
|
3580
|
-
emits: ['success'],
|
|
3590
|
+
emits: ['success','fieldChanged','formSubmitted','formError','modalId'],
|
|
3581
3591
|
setup(__props, { emit: __emit }) {
|
|
3582
3592
|
|
|
3583
3593
|
const props = __props;
|
|
@@ -3588,6 +3598,21 @@ const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3588
3598
|
const success = (res)=>{
|
|
3589
3599
|
emit('success',res);
|
|
3590
3600
|
};
|
|
3601
|
+
vue.onMounted(()=>{
|
|
3602
|
+
emit('modalId',modalId);
|
|
3603
|
+
});
|
|
3604
|
+
|
|
3605
|
+
const fieldChanged = (field, value)=>{
|
|
3606
|
+
emit('fieldChanged',field, value);
|
|
3607
|
+
};
|
|
3608
|
+
|
|
3609
|
+
const formSubmitted = (res)=>{
|
|
3610
|
+
emit('formSubmitted',res);
|
|
3611
|
+
};
|
|
3612
|
+
|
|
3613
|
+
const formError = (res)=>{
|
|
3614
|
+
emit('formError',res);
|
|
3615
|
+
};
|
|
3591
3616
|
|
|
3592
3617
|
return (_ctx, _cache) => {
|
|
3593
3618
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
@@ -3603,7 +3628,12 @@ return (_ctx, _cache) => {
|
|
|
3603
3628
|
"modal-title": __props.modalTitle
|
|
3604
3629
|
}, {
|
|
3605
3630
|
default: vue.withCtx(() => [
|
|
3606
|
-
vue.createVNode(script$
|
|
3631
|
+
vue.createVNode(script$m, vue.mergeProps({
|
|
3632
|
+
onSuccess: success,
|
|
3633
|
+
onFieldChanged: fieldChanged,
|
|
3634
|
+
onFormSubmitted: formSubmitted,
|
|
3635
|
+
onFormError: formError
|
|
3636
|
+
}, props), null, 16 /* FULL_PROPS */)
|
|
3607
3637
|
]),
|
|
3608
3638
|
_: 1 /* STABLE */
|
|
3609
3639
|
}, 8 /* PROPS */, ["modal-title"])
|
package/dist/library.mjs
CHANGED
|
@@ -3122,6 +3122,7 @@ var script$m = {
|
|
|
3122
3122
|
'successMessage','fields','customComponents','placeHolders',
|
|
3123
3123
|
'formClasses',
|
|
3124
3124
|
'helperTexts','labels','data',
|
|
3125
|
+
'fillSelects',
|
|
3125
3126
|
'formClass',
|
|
3126
3127
|
'actionLabel',
|
|
3127
3128
|
'textAreas',
|
|
@@ -3156,6 +3157,15 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3156
3157
|
if(props.customComponents && props.customComponents[field]) {
|
|
3157
3158
|
return props.customComponents[field]
|
|
3158
3159
|
}
|
|
3160
|
+
if(props.fillSelects && props.fillSelects[field]){
|
|
3161
|
+
Object.assign(fieldObj, props.fillSelects[field]);
|
|
3162
|
+
if(fieldObj.suggests || fieldObj.suggest){
|
|
3163
|
+
fieldObj.type = 'suggests';
|
|
3164
|
+
} else {
|
|
3165
|
+
fieldObj.type = 'select';
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3159
3169
|
if(fieldObj.type){
|
|
3160
3170
|
if(fieldObj.type === 'suggest' || fieldObj.type === 'suggests'){
|
|
3161
3171
|
return script$u
|
|
@@ -3565,7 +3575,7 @@ var script$j = {
|
|
|
3565
3575
|
'phones',
|
|
3566
3576
|
'numbers',
|
|
3567
3577
|
'customComponent','modalTitle','class','successMessage'],
|
|
3568
|
-
emits: ['success'],
|
|
3578
|
+
emits: ['success','fieldChanged','formSubmitted','formError','modalId'],
|
|
3569
3579
|
setup(__props, { emit: __emit }) {
|
|
3570
3580
|
|
|
3571
3581
|
const props = __props;
|
|
@@ -3576,6 +3586,21 @@ const modalId = 'rand' + (Math.random() + 1).toString(36).substring(2);
|
|
|
3576
3586
|
const success = (res)=>{
|
|
3577
3587
|
emit('success',res);
|
|
3578
3588
|
};
|
|
3589
|
+
onMounted(()=>{
|
|
3590
|
+
emit('modalId',modalId);
|
|
3591
|
+
});
|
|
3592
|
+
|
|
3593
|
+
const fieldChanged = (field, value)=>{
|
|
3594
|
+
emit('fieldChanged',field, value);
|
|
3595
|
+
};
|
|
3596
|
+
|
|
3597
|
+
const formSubmitted = (res)=>{
|
|
3598
|
+
emit('formSubmitted',res);
|
|
3599
|
+
};
|
|
3600
|
+
|
|
3601
|
+
const formError = (res)=>{
|
|
3602
|
+
emit('formError',res);
|
|
3603
|
+
};
|
|
3579
3604
|
|
|
3580
3605
|
return (_ctx, _cache) => {
|
|
3581
3606
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -3591,7 +3616,12 @@ return (_ctx, _cache) => {
|
|
|
3591
3616
|
"modal-title": __props.modalTitle
|
|
3592
3617
|
}, {
|
|
3593
3618
|
default: withCtx(() => [
|
|
3594
|
-
createVNode(script$
|
|
3619
|
+
createVNode(script$m, mergeProps({
|
|
3620
|
+
onSuccess: success,
|
|
3621
|
+
onFieldChanged: fieldChanged,
|
|
3622
|
+
onFormSubmitted: formSubmitted,
|
|
3623
|
+
onFormError: formError
|
|
3624
|
+
}, props), null, 16 /* FULL_PROPS */)
|
|
3595
3625
|
]),
|
|
3596
3626
|
_: 1 /* STABLE */
|
|
3597
3627
|
}, 8 /* PROPS */, ["modal-title"])
|