@iankibetsh/shframework 2.0.0 → 2.0.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 +32 -32
- package/dist/library.js +155 -120
- package/dist/library.mjs +139 -104
- package/package.json +1 -1
package/dist/library.mjs
CHANGED
|
@@ -1880,7 +1880,7 @@ const countries = [
|
|
|
1880
1880
|
}
|
|
1881
1881
|
];
|
|
1882
1882
|
|
|
1883
|
-
var script$
|
|
1883
|
+
var script$u = {
|
|
1884
1884
|
name: 'PhoneInput',
|
|
1885
1885
|
props: ['modelValue', 'country_code'],
|
|
1886
1886
|
data () {
|
|
@@ -1993,8 +1993,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1993
1993
|
]))
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
|
-
script$
|
|
1997
|
-
script$
|
|
1996
|
+
script$u.render = render$3;
|
|
1997
|
+
script$u.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
1998
1998
|
|
|
1999
1999
|
const _hoisted_1$m = {
|
|
2000
2000
|
key: 0,
|
|
@@ -2017,7 +2017,7 @@ const _hoisted_10$5 = {
|
|
|
2017
2017
|
};
|
|
2018
2018
|
|
|
2019
2019
|
|
|
2020
|
-
var script$
|
|
2020
|
+
var script$t = {
|
|
2021
2021
|
__name: 'ShSuggest',
|
|
2022
2022
|
props: ['fillSelects','modelValue'],
|
|
2023
2023
|
emits: ['update:modelValue'],
|
|
@@ -2158,15 +2158,15 @@ return (_ctx, _cache) => {
|
|
|
2158
2158
|
|
|
2159
2159
|
};
|
|
2160
2160
|
|
|
2161
|
-
script$
|
|
2162
|
-
script$
|
|
2161
|
+
script$t.__scopeId = "data-v-71cc9569";
|
|
2162
|
+
script$t.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2163
2163
|
|
|
2164
|
-
var script$
|
|
2164
|
+
var script$s = {
|
|
2165
2165
|
name: 'ShForm',
|
|
2166
2166
|
components: {
|
|
2167
|
-
PhoneInput: script$
|
|
2168
|
-
ShSuggest: script$
|
|
2169
|
-
ShPhone: script$
|
|
2167
|
+
PhoneInput: script$u,
|
|
2168
|
+
ShSuggest: script$t,
|
|
2169
|
+
ShPhone: script$u
|
|
2170
2170
|
},
|
|
2171
2171
|
props: [
|
|
2172
2172
|
'action',
|
|
@@ -2755,10 +2755,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2755
2755
|
], 64 /* STABLE_FRAGMENT */))
|
|
2756
2756
|
}
|
|
2757
2757
|
|
|
2758
|
-
script$
|
|
2759
|
-
script$
|
|
2758
|
+
script$s.render = render$2;
|
|
2759
|
+
script$s.__file = "src/lib/components/ShForm.vue";
|
|
2760
2760
|
|
|
2761
|
-
var script$
|
|
2761
|
+
var script$r = {
|
|
2762
2762
|
__name: 'EmailInput',
|
|
2763
2763
|
props: ['modelValue','label'],
|
|
2764
2764
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2798,12 +2798,12 @@ return (_ctx, _cache) => {
|
|
|
2798
2798
|
|
|
2799
2799
|
};
|
|
2800
2800
|
|
|
2801
|
-
script$
|
|
2801
|
+
script$r.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2802
2802
|
|
|
2803
2803
|
const _hoisted_1$k = ["min", "max"];
|
|
2804
2804
|
|
|
2805
2805
|
|
|
2806
|
-
var script$
|
|
2806
|
+
var script$q = {
|
|
2807
2807
|
__name: 'NumberInput',
|
|
2808
2808
|
props: ['modelValue','label','min','max'],
|
|
2809
2809
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2845,9 +2845,9 @@ return (_ctx, _cache) => {
|
|
|
2845
2845
|
|
|
2846
2846
|
};
|
|
2847
2847
|
|
|
2848
|
-
script$
|
|
2848
|
+
script$q.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2849
2849
|
|
|
2850
|
-
var script$
|
|
2850
|
+
var script$p = {
|
|
2851
2851
|
__name: 'TextInput',
|
|
2852
2852
|
props: ['modelValue','label','isInvalid'],
|
|
2853
2853
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2889,9 +2889,9 @@ return (_ctx, _cache) => {
|
|
|
2889
2889
|
|
|
2890
2890
|
};
|
|
2891
2891
|
|
|
2892
|
-
script$
|
|
2892
|
+
script$p.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2893
2893
|
|
|
2894
|
-
var script$
|
|
2894
|
+
var script$o = {
|
|
2895
2895
|
__name: 'TextAreaInput',
|
|
2896
2896
|
props: ['modelValue','label'],
|
|
2897
2897
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2931,12 +2931,12 @@ return (_ctx, _cache) => {
|
|
|
2931
2931
|
|
|
2932
2932
|
};
|
|
2933
2933
|
|
|
2934
|
-
script$
|
|
2934
|
+
script$o.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2935
2935
|
|
|
2936
2936
|
const _hoisted_1$j = ["value"];
|
|
2937
2937
|
|
|
2938
2938
|
|
|
2939
|
-
var script$
|
|
2939
|
+
var script$n = {
|
|
2940
2940
|
__name: 'SelectInput',
|
|
2941
2941
|
props: ['modelValue','label','data','dataUrl'],
|
|
2942
2942
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3001,9 +3001,9 @@ return (_ctx, _cache) => {
|
|
|
3001
3001
|
|
|
3002
3002
|
};
|
|
3003
3003
|
|
|
3004
|
-
script$
|
|
3004
|
+
script$n.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3005
3005
|
|
|
3006
|
-
var script$
|
|
3006
|
+
var script$m = {
|
|
3007
3007
|
__name: 'PasswordInput',
|
|
3008
3008
|
props: ['modelValue','label'],
|
|
3009
3009
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3039,7 +3039,7 @@ return (_ctx, _cache) => {
|
|
|
3039
3039
|
|
|
3040
3040
|
};
|
|
3041
3041
|
|
|
3042
|
-
script$
|
|
3042
|
+
script$m.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3043
3043
|
|
|
3044
3044
|
const _hoisted_1$i = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3045
3045
|
const _hoisted_2$b = ["onUpdate:modelValue"];
|
|
@@ -3056,7 +3056,7 @@ const _hoisted_7$5 = {
|
|
|
3056
3056
|
const _hoisted_8$4 = { key: 1 };
|
|
3057
3057
|
|
|
3058
3058
|
|
|
3059
|
-
var script$
|
|
3059
|
+
var script$l = {
|
|
3060
3060
|
__name: 'ShAutoForm',
|
|
3061
3061
|
props: [
|
|
3062
3062
|
'action','successCallback','retainDataAfterSubmission',
|
|
@@ -3089,13 +3089,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3089
3089
|
const defaultPhones = ['phone'];
|
|
3090
3090
|
const defaultEmails = ['email'];
|
|
3091
3091
|
const formComponents = inject('formComponents');
|
|
3092
|
-
const TextComponent = formComponents.text ?? script$
|
|
3093
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3094
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3095
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3096
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3097
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3098
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3092
|
+
const TextComponent = formComponents.text ?? script$p;
|
|
3093
|
+
const TextAreaComponent = formComponents.textArea ?? script$o;
|
|
3094
|
+
const EmailComponent = formComponents.email ?? script$r;
|
|
3095
|
+
const PhoneComponent = formComponents.phone ?? script$u;
|
|
3096
|
+
const NumberComponent = formComponents.number ?? script$q;
|
|
3097
|
+
const SelectComponent = formComponents.select ?? script$n;
|
|
3098
|
+
const PasswordComponent = formComponents.password ?? script$m;
|
|
3099
3099
|
if(props.customComponents && props.customComponents[field]) {
|
|
3100
3100
|
return props.customComponents[field]
|
|
3101
3101
|
}
|
|
@@ -3107,16 +3107,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3107
3107
|
}
|
|
3108
3108
|
else
|
|
3109
3109
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3110
|
-
return formComponents.textArea ?? script$
|
|
3110
|
+
return formComponents.textArea ?? script$o
|
|
3111
3111
|
} else
|
|
3112
3112
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3113
|
-
return formComponents.email ?? script$
|
|
3113
|
+
return formComponents.email ?? script$r
|
|
3114
3114
|
} else
|
|
3115
3115
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3116
|
-
return formComponents.phone ?? script$
|
|
3116
|
+
return formComponents.phone ?? script$u
|
|
3117
3117
|
} else
|
|
3118
3118
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3119
|
-
return formComponents.number ?? script$
|
|
3119
|
+
return formComponents.number ?? script$q
|
|
3120
3120
|
}
|
|
3121
3121
|
// else
|
|
3122
3122
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3125,7 +3125,7 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3125
3125
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3126
3126
|
// return formComponents.date ?? DateInput
|
|
3127
3127
|
// }
|
|
3128
|
-
return formComponents.text ?? script$
|
|
3128
|
+
return formComponents.text ?? script$p
|
|
3129
3129
|
};
|
|
3130
3130
|
const shFormElementClasses = ref(null);
|
|
3131
3131
|
shFormElementClasses.value = inject('shFormElementClasses');
|
|
@@ -3346,12 +3346,12 @@ return (_ctx, _cache) => {
|
|
|
3346
3346
|
|
|
3347
3347
|
};
|
|
3348
3348
|
|
|
3349
|
-
script$
|
|
3349
|
+
script$l.__file = "src/lib/components/ShAutoForm.vue";
|
|
3350
3350
|
|
|
3351
3351
|
const _hoisted_1$h = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3352
3352
|
const _hoisted_2$a = { class: "dropdown" };
|
|
3353
3353
|
|
|
3354
|
-
var script$
|
|
3354
|
+
var script$k = {
|
|
3355
3355
|
__name: 'ShDropDownForm',
|
|
3356
3356
|
props: ['action',
|
|
3357
3357
|
'classes',
|
|
@@ -3398,7 +3398,7 @@ return (_ctx, _cache) => {
|
|
|
3398
3398
|
class: "dropdown-menu px-2 py-1",
|
|
3399
3399
|
"aria-labelledby": dropdownId
|
|
3400
3400
|
}, [
|
|
3401
|
-
createVNode(script$
|
|
3401
|
+
createVNode(script$s, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3402
3402
|
])
|
|
3403
3403
|
])
|
|
3404
3404
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3407,7 +3407,7 @@ return (_ctx, _cache) => {
|
|
|
3407
3407
|
|
|
3408
3408
|
};
|
|
3409
3409
|
|
|
3410
|
-
script$
|
|
3410
|
+
script$k.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3411
3411
|
|
|
3412
3412
|
const _hoisted_1$g = ["id"];
|
|
3413
3413
|
const _hoisted_2$9 = { class: "modal-content" };
|
|
@@ -3421,7 +3421,7 @@ const _hoisted_5$6 = /*#__PURE__*/createElementVNode("button", {
|
|
|
3421
3421
|
const _hoisted_6$5 = { class: "modal-body" };
|
|
3422
3422
|
const _hoisted_7$4 = { class: "section" };
|
|
3423
3423
|
|
|
3424
|
-
var script$
|
|
3424
|
+
var script$j = {
|
|
3425
3425
|
__name: 'ShModal',
|
|
3426
3426
|
props: {
|
|
3427
3427
|
modalId: {
|
|
@@ -3476,11 +3476,11 @@ return (_ctx, _cache) => {
|
|
|
3476
3476
|
|
|
3477
3477
|
};
|
|
3478
3478
|
|
|
3479
|
-
script$
|
|
3479
|
+
script$j.__file = "src/lib/components/ShModal.vue";
|
|
3480
3480
|
|
|
3481
3481
|
const _hoisted_1$f = ["href"];
|
|
3482
3482
|
|
|
3483
|
-
var script$
|
|
3483
|
+
var script$i = {
|
|
3484
3484
|
__name: 'ShModalForm',
|
|
3485
3485
|
props: ['action',
|
|
3486
3486
|
'classes',
|
|
@@ -3520,12 +3520,12 @@ return (_ctx, _cache) => {
|
|
|
3520
3520
|
}, [
|
|
3521
3521
|
renderSlot(_ctx.$slots, "default")
|
|
3522
3522
|
], 10 /* CLASS, PROPS */, _hoisted_1$f),
|
|
3523
|
-
createVNode(script$
|
|
3523
|
+
createVNode(script$j, {
|
|
3524
3524
|
"modal-id": modalId,
|
|
3525
3525
|
"modal-title": __props.modalTitle
|
|
3526
3526
|
}, {
|
|
3527
3527
|
default: withCtx(() => [
|
|
3528
|
-
createVNode(script$
|
|
3528
|
+
createVNode(script$s, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3529
3529
|
]),
|
|
3530
3530
|
_: 1 /* STABLE */
|
|
3531
3531
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3535,11 +3535,11 @@ return (_ctx, _cache) => {
|
|
|
3535
3535
|
|
|
3536
3536
|
};
|
|
3537
3537
|
|
|
3538
|
-
script$
|
|
3538
|
+
script$i.__file = "src/lib/components/ShModalForm.vue";
|
|
3539
3539
|
|
|
3540
3540
|
const _hoisted_1$e = ["href"];
|
|
3541
3541
|
|
|
3542
|
-
var script$
|
|
3542
|
+
var script$h = {
|
|
3543
3543
|
__name: 'ShModalFormAuto',
|
|
3544
3544
|
props: ['action',
|
|
3545
3545
|
'classes',
|
|
@@ -3580,12 +3580,12 @@ return (_ctx, _cache) => {
|
|
|
3580
3580
|
}, [
|
|
3581
3581
|
renderSlot(_ctx.$slots, "default")
|
|
3582
3582
|
], 10 /* CLASS, PROPS */, _hoisted_1$e),
|
|
3583
|
-
createVNode(script$
|
|
3583
|
+
createVNode(script$j, {
|
|
3584
3584
|
"modal-id": modalId,
|
|
3585
3585
|
"modal-title": __props.modalTitle
|
|
3586
3586
|
}, {
|
|
3587
3587
|
default: withCtx(() => [
|
|
3588
|
-
createVNode(script$
|
|
3588
|
+
createVNode(script$l, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3589
3589
|
]),
|
|
3590
3590
|
_: 1 /* STABLE */
|
|
3591
3591
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3595,7 +3595,7 @@ return (_ctx, _cache) => {
|
|
|
3595
3595
|
|
|
3596
3596
|
};
|
|
3597
3597
|
|
|
3598
|
-
script$
|
|
3598
|
+
script$h.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3599
3599
|
|
|
3600
3600
|
const _hoisted_1$d = ["id"];
|
|
3601
3601
|
const _hoisted_2$8 = { class: "offcanvas-header" };
|
|
@@ -3605,7 +3605,7 @@ const _hoisted_3$8 = {
|
|
|
3605
3605
|
};
|
|
3606
3606
|
const _hoisted_4$8 = { class: "offcanvas-body" };
|
|
3607
3607
|
|
|
3608
|
-
var script$
|
|
3608
|
+
var script$g = {
|
|
3609
3609
|
__name: 'ShCanvas',
|
|
3610
3610
|
props: {
|
|
3611
3611
|
canvasId: {
|
|
@@ -3670,9 +3670,9 @@ return (_ctx, _cache) => {
|
|
|
3670
3670
|
|
|
3671
3671
|
};
|
|
3672
3672
|
|
|
3673
|
-
script$
|
|
3673
|
+
script$g.__file = "src/lib/components/ShCanvas.vue";
|
|
3674
3674
|
|
|
3675
|
-
var script$
|
|
3675
|
+
var script$f = {
|
|
3676
3676
|
name: 'Pagination',
|
|
3677
3677
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3678
3678
|
data () {
|
|
@@ -3868,8 +3868,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3868
3868
|
]))
|
|
3869
3869
|
}
|
|
3870
3870
|
|
|
3871
|
-
script$
|
|
3872
|
-
script$
|
|
3871
|
+
script$f.render = render$1;
|
|
3872
|
+
script$f.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3873
3873
|
|
|
3874
3874
|
const _hoisted_1$b = /*#__PURE__*/createElementVNode("span", {
|
|
3875
3875
|
class: "spinner-border spinner-border-sm me-1",
|
|
@@ -3878,7 +3878,7 @@ const _hoisted_1$b = /*#__PURE__*/createElementVNode("span", {
|
|
|
3878
3878
|
}, null, -1 /* HOISTED */);
|
|
3879
3879
|
|
|
3880
3880
|
|
|
3881
|
-
var script$
|
|
3881
|
+
var script$e = {
|
|
3882
3882
|
__name: 'ShConfirmAction',
|
|
3883
3883
|
props: {
|
|
3884
3884
|
data: Object,
|
|
@@ -3964,7 +3964,7 @@ return (_ctx, _cache) => {
|
|
|
3964
3964
|
|
|
3965
3965
|
};
|
|
3966
3966
|
|
|
3967
|
-
script$
|
|
3967
|
+
script$e.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3968
3968
|
|
|
3969
3969
|
const _hoisted_1$a = /*#__PURE__*/createElementVNode("span", {
|
|
3970
3970
|
class: "spinner-border spinner-border-sm me-1",
|
|
@@ -3972,7 +3972,7 @@ const _hoisted_1$a = /*#__PURE__*/createElementVNode("span", {
|
|
|
3972
3972
|
"aria-hidden": "true"
|
|
3973
3973
|
}, null, -1 /* HOISTED */);
|
|
3974
3974
|
|
|
3975
|
-
var script$
|
|
3975
|
+
var script$d = {
|
|
3976
3976
|
__name: 'ShSilentAction',
|
|
3977
3977
|
props: {
|
|
3978
3978
|
data: Object,
|
|
@@ -4060,9 +4060,9 @@ return (_ctx, _cache) => {
|
|
|
4060
4060
|
|
|
4061
4061
|
};
|
|
4062
4062
|
|
|
4063
|
-
script$
|
|
4063
|
+
script$d.__file = "src/lib/components/ShSilentAction.vue";
|
|
4064
4064
|
|
|
4065
|
-
var script$
|
|
4065
|
+
var script$c = {
|
|
4066
4066
|
name: 'sh-table',
|
|
4067
4067
|
props: ['endPoint', 'headers','query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4068
4068
|
inject: ['channel'],
|
|
@@ -4317,10 +4317,10 @@ var script$b = {
|
|
|
4317
4317
|
this.reloadData();
|
|
4318
4318
|
},
|
|
4319
4319
|
components: {
|
|
4320
|
-
ShSilentAction: script$
|
|
4321
|
-
ShConfirmAction: script$
|
|
4322
|
-
ShCanvas: script$
|
|
4323
|
-
pagination: script$
|
|
4320
|
+
ShSilentAction: script$d,
|
|
4321
|
+
ShConfirmAction: script$e,
|
|
4322
|
+
ShCanvas: script$g,
|
|
4323
|
+
pagination: script$f
|
|
4324
4324
|
},
|
|
4325
4325
|
computed: {
|
|
4326
4326
|
windowWidth: function () {
|
|
@@ -4954,10 +4954,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4954
4954
|
]))
|
|
4955
4955
|
}
|
|
4956
4956
|
|
|
4957
|
-
script$
|
|
4958
|
-
script$
|
|
4957
|
+
script$c.render = render;
|
|
4958
|
+
script$c.__file = "src/lib/components/ShTable.vue";
|
|
4959
4959
|
|
|
4960
|
-
var script$
|
|
4960
|
+
var script$b = {
|
|
4961
4961
|
__name: 'ShTabs',
|
|
4962
4962
|
props: {
|
|
4963
4963
|
tabs: {
|
|
@@ -5102,7 +5102,7 @@ return (_ctx, _cache) => {
|
|
|
5102
5102
|
|
|
5103
5103
|
};
|
|
5104
5104
|
|
|
5105
|
-
script$
|
|
5105
|
+
script$b.__file = "src/lib/components/ShTabs.vue";
|
|
5106
5106
|
|
|
5107
5107
|
const _hoisted_1$8 = {
|
|
5108
5108
|
class: "nav-item",
|
|
@@ -5113,7 +5113,7 @@ const _hoisted_3$5 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, n
|
|
|
5113
5113
|
const _hoisted_4$5 = { class: "sh_tab_count" };
|
|
5114
5114
|
const _hoisted_5$4 = { class: "tab-content" };
|
|
5115
5115
|
|
|
5116
|
-
var script$
|
|
5116
|
+
var script$a = {
|
|
5117
5117
|
__name: 'ShDynamicTabs',
|
|
5118
5118
|
props: ['tabs','data'],
|
|
5119
5119
|
setup(__props) {
|
|
@@ -5170,12 +5170,12 @@ return (_ctx, _cache) => {
|
|
|
5170
5170
|
|
|
5171
5171
|
};
|
|
5172
5172
|
|
|
5173
|
-
script$
|
|
5173
|
+
script$a.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5174
5174
|
|
|
5175
5175
|
const _hoisted_1$7 = ["href"];
|
|
5176
5176
|
|
|
5177
5177
|
|
|
5178
|
-
var script$
|
|
5178
|
+
var script$9 = {
|
|
5179
5179
|
__name: 'ShModalBtn',
|
|
5180
5180
|
props: {
|
|
5181
5181
|
modalId: {
|
|
@@ -5198,12 +5198,12 @@ return (_ctx, _cache) => {
|
|
|
5198
5198
|
|
|
5199
5199
|
};
|
|
5200
5200
|
|
|
5201
|
-
script$
|
|
5201
|
+
script$9.__file = "src/lib/components/ShModalBtn.vue";
|
|
5202
5202
|
|
|
5203
5203
|
const _hoisted_1$6 = ["href"];
|
|
5204
5204
|
|
|
5205
5205
|
|
|
5206
|
-
var script$
|
|
5206
|
+
var script$8 = {
|
|
5207
5207
|
__name: 'ShCanvasBtn',
|
|
5208
5208
|
props: {
|
|
5209
5209
|
canvasId: {
|
|
@@ -5227,7 +5227,7 @@ return (_ctx, _cache) => {
|
|
|
5227
5227
|
|
|
5228
5228
|
};
|
|
5229
5229
|
|
|
5230
|
-
script$
|
|
5230
|
+
script$8.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5231
5231
|
|
|
5232
5232
|
const useUserStore = defineStore('user-store', {
|
|
5233
5233
|
state: () => ({
|
|
@@ -5366,7 +5366,7 @@ const _hoisted_17 = { class: "col-md-3" };
|
|
|
5366
5366
|
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
5367
5367
|
|
|
5368
5368
|
|
|
5369
|
-
var script$
|
|
5369
|
+
var script$7 = {
|
|
5370
5370
|
__name: 'ManagePermissions',
|
|
5371
5371
|
emits: ['success'],
|
|
5372
5372
|
setup(__props, { emit }) {
|
|
@@ -5524,7 +5524,7 @@ return (_ctx, _cache) => {
|
|
|
5524
5524
|
(permissionsChanged.value)
|
|
5525
5525
|
? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
5526
5526
|
createElementVNode("div", _hoisted_17, [
|
|
5527
|
-
createVNode(script$
|
|
5527
|
+
createVNode(script$d, {
|
|
5528
5528
|
onSuccess: permissionsUpdated,
|
|
5529
5529
|
url: `sh-departments/department/permissions/${unref(departmentId)}/${selectedModule.value}`,
|
|
5530
5530
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5548,13 +5548,13 @@ return (_ctx, _cache) => {
|
|
|
5548
5548
|
|
|
5549
5549
|
};
|
|
5550
5550
|
|
|
5551
|
-
script$
|
|
5552
|
-
script$
|
|
5551
|
+
script$7.__scopeId = "data-v-0d4fa0ac";
|
|
5552
|
+
script$7.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5553
5553
|
|
|
5554
5554
|
const _hoisted_1$4 = ["href"];
|
|
5555
5555
|
|
|
5556
5556
|
|
|
5557
|
-
var script$
|
|
5557
|
+
var script$6 = {
|
|
5558
5558
|
__name: 'ShRoutePopups',
|
|
5559
5559
|
setup(__props) {
|
|
5560
5560
|
|
|
@@ -5567,6 +5567,7 @@ ref(null);
|
|
|
5567
5567
|
const router = useRouter();
|
|
5568
5568
|
const position = ref(null);
|
|
5569
5569
|
const size = ref(null);
|
|
5570
|
+
const title = ref(null);
|
|
5570
5571
|
watch(() => route.meta, meta => {
|
|
5571
5572
|
popUp.value = meta.popUp ?? meta.popup;
|
|
5572
5573
|
if (popUp.value) {
|
|
@@ -5574,6 +5575,7 @@ watch(() => route.meta, meta => {
|
|
|
5574
5575
|
// !popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta)
|
|
5575
5576
|
position.value = meta.position ?? meta.side;
|
|
5576
5577
|
size.value = meta.size;
|
|
5578
|
+
title.value = meta.title;
|
|
5577
5579
|
componentView.value = markRaw(route.matched[route.matched.length - 1].components.default);
|
|
5578
5580
|
setTimeout(() => {
|
|
5579
5581
|
initPopup();
|
|
@@ -5635,8 +5637,9 @@ return (_ctx, _cache) => {
|
|
|
5635
5637
|
class: "d-none"
|
|
5636
5638
|
}, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
|
|
5637
5639
|
(popUp.value === 'modal')
|
|
5638
|
-
? (openBlock(), createBlock(script$
|
|
5640
|
+
? (openBlock(), createBlock(script$j, {
|
|
5639
5641
|
key: 0,
|
|
5642
|
+
"modal-title": title.value,
|
|
5640
5643
|
"modal-id": unref(modalId),
|
|
5641
5644
|
"modal-size": size.value
|
|
5642
5645
|
}, {
|
|
@@ -5644,12 +5647,13 @@ return (_ctx, _cache) => {
|
|
|
5644
5647
|
(openBlock(), createBlock(resolveDynamicComponent(componentView.value)))
|
|
5645
5648
|
]),
|
|
5646
5649
|
_: 1 /* STABLE */
|
|
5647
|
-
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5650
|
+
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
5648
5651
|
: createCommentVNode("v-if", true),
|
|
5649
5652
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5650
|
-
? (openBlock(), createBlock(script$
|
|
5653
|
+
? (openBlock(), createBlock(script$g, {
|
|
5651
5654
|
key: 1,
|
|
5652
5655
|
"canvas-id": unref(canvasId),
|
|
5656
|
+
"canvas-title": title.value,
|
|
5653
5657
|
"canvas-size": size.value,
|
|
5654
5658
|
position: position.value
|
|
5655
5659
|
}, {
|
|
@@ -5657,7 +5661,7 @@ return (_ctx, _cache) => {
|
|
|
5657
5661
|
(openBlock(), createBlock(resolveDynamicComponent(componentView.value)))
|
|
5658
5662
|
]),
|
|
5659
5663
|
_: 1 /* STABLE */
|
|
5660
|
-
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
5664
|
+
}, 8 /* PROPS */, ["canvas-id", "canvas-title", "canvas-size", "position"]))
|
|
5661
5665
|
: createCommentVNode("v-if", true)
|
|
5662
5666
|
], 64 /* STABLE_FRAGMENT */))
|
|
5663
5667
|
}
|
|
@@ -5665,7 +5669,28 @@ return (_ctx, _cache) => {
|
|
|
5665
5669
|
|
|
5666
5670
|
};
|
|
5667
5671
|
|
|
5668
|
-
script$
|
|
5672
|
+
script$6.__file = "src/lib/components/popups/ShRoutePopups.vue";
|
|
5673
|
+
|
|
5674
|
+
var script$5 = {
|
|
5675
|
+
__name: 'ShQueryForm',
|
|
5676
|
+
setup(__props) {
|
|
5677
|
+
|
|
5678
|
+
const route = useRoute();
|
|
5679
|
+
|
|
5680
|
+
const fields = route.query.fields.split(',');
|
|
5681
|
+
const action = route.query.action;
|
|
5682
|
+
|
|
5683
|
+
return (_ctx, _cache) => {
|
|
5684
|
+
return (openBlock(), createBlock(script$l, {
|
|
5685
|
+
fields: unref(fields),
|
|
5686
|
+
action: unref(action)
|
|
5687
|
+
}, null, 8 /* PROPS */, ["fields", "action"]))
|
|
5688
|
+
}
|
|
5689
|
+
}
|
|
5690
|
+
|
|
5691
|
+
};
|
|
5692
|
+
|
|
5693
|
+
script$5.__file = "src/lib/components/ShQueryForm.vue";
|
|
5669
5694
|
|
|
5670
5695
|
var script$4 = {
|
|
5671
5696
|
__name: 'ShQueryPopups',
|
|
@@ -5680,12 +5705,19 @@ ref(null);
|
|
|
5680
5705
|
const router = useRouter();
|
|
5681
5706
|
const position = ref(null);
|
|
5682
5707
|
const size = ref(null);
|
|
5708
|
+
const title = ref(null);
|
|
5683
5709
|
ref(null);
|
|
5710
|
+
|
|
5684
5711
|
watch(() => route.query.popup, pop => {
|
|
5685
5712
|
popUp.value = pop;
|
|
5686
5713
|
position.value = route.query.position ?? route.query.side;
|
|
5687
5714
|
size.value = route.query.size;
|
|
5688
|
-
|
|
5715
|
+
title.value = route.query.title;
|
|
5716
|
+
let queryComponent = route.query.comp ?? route.query.component;
|
|
5717
|
+
if(queryComponent && ['shqueryform','queryform'].includes(queryComponent.toLowerCase())) {
|
|
5718
|
+
queryComponent = script$5;
|
|
5719
|
+
}
|
|
5720
|
+
popupComponent.value = queryComponent;
|
|
5689
5721
|
if (popUp.value) {
|
|
5690
5722
|
setTimeout(() => {
|
|
5691
5723
|
initPopup();
|
|
@@ -5742,8 +5774,9 @@ const goBack = () => {
|
|
|
5742
5774
|
return (_ctx, _cache) => {
|
|
5743
5775
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
5744
5776
|
(popUp.value === 'modal')
|
|
5745
|
-
? (openBlock(), createBlock(script$
|
|
5777
|
+
? (openBlock(), createBlock(script$j, {
|
|
5746
5778
|
key: 0,
|
|
5779
|
+
"modal-title": title.value,
|
|
5747
5780
|
"modal-id": unref(modalId),
|
|
5748
5781
|
"modal-size": size.value
|
|
5749
5782
|
}, {
|
|
@@ -5751,10 +5784,11 @@ return (_ctx, _cache) => {
|
|
|
5751
5784
|
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
5752
5785
|
]),
|
|
5753
5786
|
_: 1 /* STABLE */
|
|
5754
|
-
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5787
|
+
}, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
|
|
5755
5788
|
: createCommentVNode("v-if", true),
|
|
5756
5789
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5757
|
-
? (openBlock(), createBlock(script$
|
|
5790
|
+
? (openBlock(), createBlock(script$g, {
|
|
5791
|
+
"canvas-title": title.value,
|
|
5758
5792
|
key: size.value + position.value,
|
|
5759
5793
|
"canvas-id": unref(canvasId),
|
|
5760
5794
|
"canvas-size": size.value,
|
|
@@ -5764,7 +5798,7 @@ return (_ctx, _cache) => {
|
|
|
5764
5798
|
(openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
|
|
5765
5799
|
]),
|
|
5766
5800
|
_: 1 /* STABLE */
|
|
5767
|
-
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
5801
|
+
}, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
|
|
5768
5802
|
: createCommentVNode("v-if", true)
|
|
5769
5803
|
], 64 /* STABLE_FRAGMENT */))
|
|
5770
5804
|
}
|
|
@@ -5992,7 +6026,7 @@ ref([]);
|
|
|
5992
6026
|
let reload = ref(0);
|
|
5993
6027
|
|
|
5994
6028
|
function departmentAdded (response) {
|
|
5995
|
-
shRepo.showToast('Department
|
|
6029
|
+
shRepo.showToast('Department saved');
|
|
5996
6030
|
reload.value += 1;
|
|
5997
6031
|
}
|
|
5998
6032
|
|
|
@@ -6019,7 +6053,8 @@ return (_ctx, _cache) => {
|
|
|
6019
6053
|
_hoisted_4$2,
|
|
6020
6054
|
createTextVNode(" ADD DEPARTMENT")
|
|
6021
6055
|
], 512 /* NEED_PATCH */),
|
|
6022
|
-
createVNode(script$
|
|
6056
|
+
createVNode(script$c, {
|
|
6057
|
+
reload: unref(reload),
|
|
6023
6058
|
headers: ['id','name','description', 'created_at'],
|
|
6024
6059
|
"end-point": "sh-departments/list",
|
|
6025
6060
|
actions: {
|
|
@@ -6037,13 +6072,13 @@ return (_ctx, _cache) => {
|
|
|
6037
6072
|
}
|
|
6038
6073
|
]
|
|
6039
6074
|
}
|
|
6040
|
-
}, null, 8 /* PROPS */, ["actions"]),
|
|
6041
|
-
createVNode(script$
|
|
6075
|
+
}, null, 8 /* PROPS */, ["reload", "actions"]),
|
|
6076
|
+
createVNode(script$j, {
|
|
6042
6077
|
"modal-id": "sh_department_modal",
|
|
6043
6078
|
"modal-title": "Department Form"
|
|
6044
6079
|
}, {
|
|
6045
6080
|
default: withCtx(() => [
|
|
6046
|
-
createVNode(script$
|
|
6081
|
+
createVNode(script$s, {
|
|
6047
6082
|
"success-callback": "departmentAdded",
|
|
6048
6083
|
"current-data": department.value,
|
|
6049
6084
|
onDepartmentAdded: departmentAdded,
|
|
@@ -6178,7 +6213,7 @@ return (_ctx, _cache) => {
|
|
|
6178
6213
|
createElementVNode("div", _hoisted_2$1, [
|
|
6179
6214
|
_hoisted_3$1,
|
|
6180
6215
|
createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
6181
|
-
createVNode(script$
|
|
6216
|
+
createVNode(script$c, {
|
|
6182
6217
|
actions: {
|
|
6183
6218
|
label: 'Actions',
|
|
6184
6219
|
actions: [
|
|
@@ -6198,12 +6233,12 @@ return (_ctx, _cache) => {
|
|
|
6198
6233
|
headers: ['id',showModule,'created_at'],
|
|
6199
6234
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
6200
6235
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
6201
|
-
createVNode(script$
|
|
6236
|
+
createVNode(script$j, {
|
|
6202
6237
|
"modal-id": "addModule",
|
|
6203
6238
|
"modal-title": "Add Module Department"
|
|
6204
6239
|
}, {
|
|
6205
6240
|
default: withCtx(() => [
|
|
6206
|
-
createVNode(script$
|
|
6241
|
+
createVNode(script$s, {
|
|
6207
6242
|
"reload-select-items": unref(reload),
|
|
6208
6243
|
"success-callback": moduleAdded,
|
|
6209
6244
|
"fill-selects": {
|
|
@@ -6225,7 +6260,7 @@ return (_ctx, _cache) => {
|
|
|
6225
6260
|
ref: permissionCanvasBtn,
|
|
6226
6261
|
"data-bs-toggle": "offcanvas"
|
|
6227
6262
|
}, null, 512 /* NEED_PATCH */),
|
|
6228
|
-
createVNode(script$
|
|
6263
|
+
createVNode(script$g, {
|
|
6229
6264
|
"canvas-id": "permissionsCanvas",
|
|
6230
6265
|
position: "end enlarged",
|
|
6231
6266
|
"canvas-title": "Module Permissions"
|
|
@@ -6340,7 +6375,7 @@ return (_ctx, _cache) => {
|
|
|
6340
6375
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
6341
6376
|
(section.value === 'login')
|
|
6342
6377
|
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
6343
|
-
createVNode(script$
|
|
6378
|
+
createVNode(script$s, {
|
|
6344
6379
|
class: "sh-login-form",
|
|
6345
6380
|
fields: ['email','password'],
|
|
6346
6381
|
"action-label": "Login",
|
|
@@ -6365,7 +6400,7 @@ return (_ctx, _cache) => {
|
|
|
6365
6400
|
(unref(registerSubTitle))
|
|
6366
6401
|
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
|
|
6367
6402
|
: createCommentVNode("v-if", true),
|
|
6368
|
-
createVNode(script$
|
|
6403
|
+
createVNode(script$s, {
|
|
6369
6404
|
class: "sh-login-form",
|
|
6370
6405
|
fields: unref(registrationFields),
|
|
6371
6406
|
"action-label": "Sign Up",
|
|
@@ -6412,7 +6447,7 @@ const ShFrontend = {
|
|
|
6412
6447
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
6413
6448
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
6414
6449
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
6415
|
-
options.formTextInput ?? script$
|
|
6450
|
+
options.formTextInput ?? script$p;
|
|
6416
6451
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
6417
6452
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
6418
6453
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -6445,7 +6480,7 @@ const ShFrontend = {
|
|
|
6445
6480
|
});
|
|
6446
6481
|
options.router.addRoute({
|
|
6447
6482
|
path: '/sh-departments/manage-permissions/:id',
|
|
6448
|
-
component: script$
|
|
6483
|
+
component: script$7
|
|
6449
6484
|
});
|
|
6450
6485
|
}
|
|
6451
6486
|
//filter unwanted config items from options to be put in local storage
|
|
@@ -6470,4 +6505,4 @@ var shGql = {
|
|
|
6470
6505
|
mutate
|
|
6471
6506
|
};
|
|
6472
6507
|
|
|
6473
|
-
export { countries as Countries, script$
|
|
6508
|
+
export { countries as Countries, script$7 as ManagePermissions, script$l as ShAutoForm, script$g as ShCanvas, script$8 as ShCanvasBtn, script$e as ShConfirmAction, script$k as ShDropDownForm, script$a as ShDynamicTabs, script$s as ShForm, ShFrontend, script$j as ShModal, script$9 as ShModalBtn, script$i as ShModalForm, script$h as ShModalFormAuto, script$u as ShPhone, script$4 as ShQueryPopups, script$3 as ShRange, script$6 as ShRoutePopups, script$d as ShSilentAction, script$c as ShTable, script$b as ShTabs, shApis, shGql, shRepo, ShStorage as shStorage, useAppStore, useUserStore };
|