@iankibetsh/shframework 4.7.5 → 4.7.8
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 +32 -32
- package/dist/library.js +5 -9
- package/dist/library.mjs +6 -10
- package/package.json +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.sh-phone{
|
|
3
|
-
display: flex;
|
|
4
|
-
width: 100%;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 0 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
.phone-country{
|
|
9
|
-
width: 2rem;
|
|
10
|
-
border: none;
|
|
11
|
-
align-self: center;
|
|
12
|
-
outline: none !important;
|
|
13
|
-
padding: 0.4rem;
|
|
14
|
-
border-right: 1px solid #0003;
|
|
15
|
-
}
|
|
16
|
-
.phone-number{
|
|
17
|
-
width: calc(100% - 2.2rem);
|
|
18
|
-
border: none;
|
|
19
|
-
align-self: center;
|
|
20
|
-
outline: none;
|
|
21
|
-
margin-bottom: 0;
|
|
22
|
-
padding: 0.4rem;
|
|
23
|
-
}
|
|
24
|
-
.sh-phone img{
|
|
25
|
-
padding: 0.125rem;
|
|
26
|
-
width: 2rem;
|
|
27
|
-
height: 2rem;
|
|
28
|
-
}
|
|
29
|
-
.phone-number::placeholder{
|
|
30
|
-
font-weight: 300;
|
|
31
|
-
opacity: 0.5;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
2
|
.colored-toast.swal2-icon-success {
|
|
35
3
|
background-color: #a5dc86 !important;
|
|
36
4
|
}
|
|
@@ -63,6 +31,38 @@
|
|
|
63
31
|
color: white;
|
|
64
32
|
}
|
|
65
33
|
|
|
34
|
+
.sh-phone{
|
|
35
|
+
display: flex;
|
|
36
|
+
width: 100%;
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding: 0 0.25rem;
|
|
39
|
+
}
|
|
40
|
+
.phone-country{
|
|
41
|
+
width: 2rem;
|
|
42
|
+
border: none;
|
|
43
|
+
align-self: center;
|
|
44
|
+
outline: none !important;
|
|
45
|
+
padding: 0.4rem;
|
|
46
|
+
border-right: 1px solid #0003;
|
|
47
|
+
}
|
|
48
|
+
.phone-number{
|
|
49
|
+
width: calc(100% - 2.2rem);
|
|
50
|
+
border: none;
|
|
51
|
+
align-self: center;
|
|
52
|
+
outline: none;
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
padding: 0.4rem;
|
|
55
|
+
}
|
|
56
|
+
.sh-phone img{
|
|
57
|
+
padding: 0.125rem;
|
|
58
|
+
width: 2rem;
|
|
59
|
+
height: 2rem;
|
|
60
|
+
}
|
|
61
|
+
.phone-number::placeholder{
|
|
62
|
+
font-weight: 300;
|
|
63
|
+
opacity: 0.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
.permissions-main {
|
|
67
67
|
background: #edeff2;
|
|
68
68
|
}
|
package/dist/library.js
CHANGED
|
@@ -239,7 +239,7 @@ async function runPlainRequest(url, message, title, data){
|
|
|
239
239
|
allowOutsideClick: () => !Swal__default["default"].isLoading()
|
|
240
240
|
})
|
|
241
241
|
}
|
|
242
|
-
async function confirmAction(
|
|
242
|
+
async function confirmAction(title,message){
|
|
243
243
|
if (typeof title === 'undefined') {
|
|
244
244
|
title = null;
|
|
245
245
|
}
|
|
@@ -252,9 +252,6 @@ async function confirmAction(callback,title,message){
|
|
|
252
252
|
confirmButtonText: 'Yes, Proceed!',
|
|
253
253
|
reverseButtons: true,
|
|
254
254
|
showLoaderOnConfirm: true,
|
|
255
|
-
preConfirm: () => {
|
|
256
|
-
return callback()
|
|
257
|
-
},
|
|
258
255
|
allowOutsideClick: () => !Swal__default["default"].isLoading()
|
|
259
256
|
})
|
|
260
257
|
}
|
|
@@ -3633,7 +3630,7 @@ return (_ctx, _cache) => {
|
|
|
3633
3630
|
: vue.createCommentVNode("v-if", true)
|
|
3634
3631
|
], 2 /* CLASS */))
|
|
3635
3632
|
: vue.createCommentVNode("v-if", true),
|
|
3636
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(
|
|
3633
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(getComponentProps(field), {
|
|
3637
3634
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
3638
3635
|
onClick: $event => (fieldChanged(field.field)),
|
|
3639
3636
|
"onUpdate:modelValue": [$event => (fieldChanged(field.field)), $event => ((formFields.value[index].value) = $event)],
|
|
@@ -3666,6 +3663,7 @@ return (_ctx, _cache) => {
|
|
|
3666
3663
|
], 64 /* STABLE_FRAGMENT */))
|
|
3667
3664
|
], 2 /* CLASS */))
|
|
3668
3665
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
3666
|
+
vue.renderSlot(_ctx.$slots, "default"),
|
|
3669
3667
|
vue.createElementVNode("div", {
|
|
3670
3668
|
class: vue.normalizeClass(getElementClass('formGroup'))
|
|
3671
3669
|
}, [
|
|
@@ -3683,8 +3681,7 @@ return (_ctx, _cache) => {
|
|
|
3683
3681
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14$3, "Submit"))
|
|
3684
3682
|
: vue.createCommentVNode("v-if", true)
|
|
3685
3683
|
], 14 /* CLASS, STYLE, PROPS */, _hoisted_12$5)
|
|
3686
|
-
], 2 /* CLASS */)
|
|
3687
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
3684
|
+
], 2 /* CLASS */)
|
|
3688
3685
|
], 34 /* CLASS, NEED_HYDRATION */)
|
|
3689
3686
|
], 64 /* STABLE_FRAGMENT */))
|
|
3690
3687
|
}
|
|
@@ -5762,8 +5759,7 @@ return (_ctx, _cache) => {
|
|
|
5762
5759
|
(_ctx.selectedRecord)
|
|
5763
5760
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(action.canvasComponent), vue.mergeProps({
|
|
5764
5761
|
key: 0,
|
|
5765
|
-
onRecordUpdated: _ctx.reloadData
|
|
5766
|
-
ref_for: true
|
|
5762
|
+
onRecordUpdated: _ctx.reloadData
|
|
5767
5763
|
}, _ctx.cleanCanvasProps(action), { record: _ctx.selectedRecord }), null, 16 /* FULL_PROPS */, ["onRecordUpdated", "record"]))
|
|
5768
5764
|
: vue.createCommentVNode("v-if", true)
|
|
5769
5765
|
]),
|
package/dist/library.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import moment from 'moment';
|
|
|
3
3
|
import Swal from 'sweetalert2';
|
|
4
4
|
import { Modal, Offcanvas } from 'bootstrap';
|
|
5
5
|
import NProgress from 'nprogress';
|
|
6
|
-
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, watch, unref, createBlock, resolveDynamicComponent, normalizeClass, resolveComponent, inject, mergeProps,
|
|
6
|
+
import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, watch, unref, createBlock, resolveDynamicComponent, normalizeClass, resolveComponent, inject, mergeProps, renderSlot, normalizeStyle, computed, createVNode, withCtx, vModelCheckbox, shallowRef, normalizeProps, pushScopeId, popScopeId, markRaw, isRef } from 'vue';
|
|
7
7
|
import _ from 'lodash';
|
|
8
8
|
import { defineStore, storeToRefs } from 'pinia';
|
|
9
9
|
import { useRoute, useRouter } from 'vue-router';
|
|
@@ -227,7 +227,7 @@ async function runPlainRequest(url, message, title, data){
|
|
|
227
227
|
allowOutsideClick: () => !Swal.isLoading()
|
|
228
228
|
})
|
|
229
229
|
}
|
|
230
|
-
async function confirmAction(
|
|
230
|
+
async function confirmAction(title,message){
|
|
231
231
|
if (typeof title === 'undefined') {
|
|
232
232
|
title = null;
|
|
233
233
|
}
|
|
@@ -240,9 +240,6 @@ async function confirmAction(callback,title,message){
|
|
|
240
240
|
confirmButtonText: 'Yes, Proceed!',
|
|
241
241
|
reverseButtons: true,
|
|
242
242
|
showLoaderOnConfirm: true,
|
|
243
|
-
preConfirm: () => {
|
|
244
|
-
return callback()
|
|
245
|
-
},
|
|
246
243
|
allowOutsideClick: () => !Swal.isLoading()
|
|
247
244
|
})
|
|
248
245
|
}
|
|
@@ -3621,7 +3618,7 @@ return (_ctx, _cache) => {
|
|
|
3621
3618
|
: createCommentVNode("v-if", true)
|
|
3622
3619
|
], 2 /* CLASS */))
|
|
3623
3620
|
: createCommentVNode("v-if", true),
|
|
3624
|
-
(openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(
|
|
3621
|
+
(openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(getComponentProps(field), {
|
|
3625
3622
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
3626
3623
|
onClick: $event => (fieldChanged(field.field)),
|
|
3627
3624
|
"onUpdate:modelValue": [$event => (fieldChanged(field.field)), $event => ((formFields.value[index].value) = $event)],
|
|
@@ -3654,6 +3651,7 @@ return (_ctx, _cache) => {
|
|
|
3654
3651
|
], 64 /* STABLE_FRAGMENT */))
|
|
3655
3652
|
], 2 /* CLASS */))
|
|
3656
3653
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
3654
|
+
renderSlot(_ctx.$slots, "default"),
|
|
3657
3655
|
createElementVNode("div", {
|
|
3658
3656
|
class: normalizeClass(getElementClass('formGroup'))
|
|
3659
3657
|
}, [
|
|
@@ -3671,8 +3669,7 @@ return (_ctx, _cache) => {
|
|
|
3671
3669
|
? (openBlock(), createElementBlock("span", _hoisted_14$3, "Submit"))
|
|
3672
3670
|
: createCommentVNode("v-if", true)
|
|
3673
3671
|
], 14 /* CLASS, STYLE, PROPS */, _hoisted_12$5)
|
|
3674
|
-
], 2 /* CLASS */)
|
|
3675
|
-
renderSlot(_ctx.$slots, "default")
|
|
3672
|
+
], 2 /* CLASS */)
|
|
3676
3673
|
], 34 /* CLASS, NEED_HYDRATION */)
|
|
3677
3674
|
], 64 /* STABLE_FRAGMENT */))
|
|
3678
3675
|
}
|
|
@@ -5750,8 +5747,7 @@ return (_ctx, _cache) => {
|
|
|
5750
5747
|
(_ctx.selectedRecord)
|
|
5751
5748
|
? (openBlock(), createBlock(resolveDynamicComponent(action.canvasComponent), mergeProps({
|
|
5752
5749
|
key: 0,
|
|
5753
|
-
onRecordUpdated: _ctx.reloadData
|
|
5754
|
-
ref_for: true
|
|
5750
|
+
onRecordUpdated: _ctx.reloadData
|
|
5755
5751
|
}, _ctx.cleanCanvasProps(action), { record: _ctx.selectedRecord }), null, 16 /* FULL_PROPS */, ["onRecordUpdated", "record"]))
|
|
5756
5752
|
: createCommentVNode("v-if", true)
|
|
5757
5753
|
]),
|