@iankibetsh/shframework 1.9.2 → 1.9.4
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/library.js +195 -211
- package/dist/library.mjs +179 -196
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -1906,7 +1906,7 @@ const countries = [
|
|
|
1906
1906
|
}
|
|
1907
1907
|
];
|
|
1908
1908
|
|
|
1909
|
-
var script$
|
|
1909
|
+
var script$v = {
|
|
1910
1910
|
name: 'PhoneInput',
|
|
1911
1911
|
props: ['modelValue', 'country_code'],
|
|
1912
1912
|
data () {
|
|
@@ -2019,8 +2019,8 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2019
2019
|
]))
|
|
2020
2020
|
}
|
|
2021
2021
|
|
|
2022
|
-
script$
|
|
2023
|
-
script$
|
|
2022
|
+
script$v.render = render$5;
|
|
2023
|
+
script$v.__file = "src/lib/components/form-components/PhoneInput.vue";
|
|
2024
2024
|
|
|
2025
2025
|
const _hoisted_1$n = {
|
|
2026
2026
|
key: 0,
|
|
@@ -2043,7 +2043,7 @@ const _hoisted_10$5 = {
|
|
|
2043
2043
|
};
|
|
2044
2044
|
|
|
2045
2045
|
|
|
2046
|
-
var script$
|
|
2046
|
+
var script$u = {
|
|
2047
2047
|
__name: 'ShSuggest',
|
|
2048
2048
|
props: ['fillSelects','modelValue'],
|
|
2049
2049
|
emits: ['update:modelValue'],
|
|
@@ -2184,15 +2184,15 @@ return (_ctx, _cache) => {
|
|
|
2184
2184
|
|
|
2185
2185
|
};
|
|
2186
2186
|
|
|
2187
|
-
script$
|
|
2188
|
-
script$
|
|
2187
|
+
script$u.__scopeId = "data-v-71cc9569";
|
|
2188
|
+
script$u.__file = "src/lib/components/form-components/ShSuggest.vue";
|
|
2189
2189
|
|
|
2190
|
-
var script$
|
|
2190
|
+
var script$t = {
|
|
2191
2191
|
name: 'ShForm',
|
|
2192
2192
|
components: {
|
|
2193
|
-
PhoneInput: script$
|
|
2194
|
-
ShSuggest: script$
|
|
2195
|
-
ShPhone: script$
|
|
2193
|
+
PhoneInput: script$v,
|
|
2194
|
+
ShSuggest: script$u,
|
|
2195
|
+
ShPhone: script$v
|
|
2196
2196
|
},
|
|
2197
2197
|
props: [
|
|
2198
2198
|
'action',
|
|
@@ -2781,10 +2781,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2781
2781
|
], 64 /* STABLE_FRAGMENT */))
|
|
2782
2782
|
}
|
|
2783
2783
|
|
|
2784
|
-
script$
|
|
2785
|
-
script$
|
|
2784
|
+
script$t.render = render$4;
|
|
2785
|
+
script$t.__file = "src/lib/components/ShForm.vue";
|
|
2786
2786
|
|
|
2787
|
-
var script$
|
|
2787
|
+
var script$s = {
|
|
2788
2788
|
__name: 'EmailInput',
|
|
2789
2789
|
props: ['modelValue','label'],
|
|
2790
2790
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2824,12 +2824,12 @@ return (_ctx, _cache) => {
|
|
|
2824
2824
|
|
|
2825
2825
|
};
|
|
2826
2826
|
|
|
2827
|
-
script$
|
|
2827
|
+
script$s.__file = "src/lib/components/form-components/EmailInput.vue";
|
|
2828
2828
|
|
|
2829
2829
|
const _hoisted_1$l = ["min", "max"];
|
|
2830
2830
|
|
|
2831
2831
|
|
|
2832
|
-
var script$
|
|
2832
|
+
var script$r = {
|
|
2833
2833
|
__name: 'NumberInput',
|
|
2834
2834
|
props: ['modelValue','label','min','max'],
|
|
2835
2835
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2871,9 +2871,9 @@ return (_ctx, _cache) => {
|
|
|
2871
2871
|
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
|
-
script$
|
|
2874
|
+
script$r.__file = "src/lib/components/form-components/NumberInput.vue";
|
|
2875
2875
|
|
|
2876
|
-
var script$
|
|
2876
|
+
var script$q = {
|
|
2877
2877
|
__name: 'TextInput',
|
|
2878
2878
|
props: ['modelValue','label','isInvalid'],
|
|
2879
2879
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2915,9 +2915,9 @@ return (_ctx, _cache) => {
|
|
|
2915
2915
|
|
|
2916
2916
|
};
|
|
2917
2917
|
|
|
2918
|
-
script$
|
|
2918
|
+
script$q.__file = "src/lib/components/form-components/TextInput.vue";
|
|
2919
2919
|
|
|
2920
|
-
var script$
|
|
2920
|
+
var script$p = {
|
|
2921
2921
|
__name: 'TextAreaInput',
|
|
2922
2922
|
props: ['modelValue','label'],
|
|
2923
2923
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -2957,12 +2957,12 @@ return (_ctx, _cache) => {
|
|
|
2957
2957
|
|
|
2958
2958
|
};
|
|
2959
2959
|
|
|
2960
|
-
script$
|
|
2960
|
+
script$p.__file = "src/lib/components/form-components/TextAreaInput.vue";
|
|
2961
2961
|
|
|
2962
2962
|
const _hoisted_1$k = ["value"];
|
|
2963
2963
|
|
|
2964
2964
|
|
|
2965
|
-
var script$
|
|
2965
|
+
var script$o = {
|
|
2966
2966
|
__name: 'SelectInput',
|
|
2967
2967
|
props: ['modelValue','label','data','dataUrl'],
|
|
2968
2968
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3027,9 +3027,9 @@ return (_ctx, _cache) => {
|
|
|
3027
3027
|
|
|
3028
3028
|
};
|
|
3029
3029
|
|
|
3030
|
-
script$
|
|
3030
|
+
script$o.__file = "src/lib/components/form-components/SelectInput.vue";
|
|
3031
3031
|
|
|
3032
|
-
var script$
|
|
3032
|
+
var script$n = {
|
|
3033
3033
|
__name: 'PasswordInput',
|
|
3034
3034
|
props: ['modelValue','label'],
|
|
3035
3035
|
emits: ['update:modelValue','clearValidationErrors'],
|
|
@@ -3065,7 +3065,7 @@ return (_ctx, _cache) => {
|
|
|
3065
3065
|
|
|
3066
3066
|
};
|
|
3067
3067
|
|
|
3068
|
-
script$
|
|
3068
|
+
script$n.__file = "src/lib/components/form-components/PasswordInput.vue";
|
|
3069
3069
|
|
|
3070
3070
|
const _hoisted_1$j = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */);
|
|
3071
3071
|
const _hoisted_2$c = ["onUpdate:modelValue"];
|
|
@@ -3082,7 +3082,7 @@ const _hoisted_7$5 = {
|
|
|
3082
3082
|
const _hoisted_8$4 = { key: 1 };
|
|
3083
3083
|
|
|
3084
3084
|
|
|
3085
|
-
var script$
|
|
3085
|
+
var script$m = {
|
|
3086
3086
|
__name: 'ShAutoForm',
|
|
3087
3087
|
props: [
|
|
3088
3088
|
'action','successCallback','retainDataAfterSubmission',
|
|
@@ -3115,13 +3115,13 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3115
3115
|
const defaultPhones = ['phone'];
|
|
3116
3116
|
const defaultEmails = ['email'];
|
|
3117
3117
|
const formComponents = vue.inject('formComponents');
|
|
3118
|
-
const TextComponent = formComponents.text ?? script$
|
|
3119
|
-
const TextAreaComponent = formComponents.textArea ?? script$
|
|
3120
|
-
const EmailComponent = formComponents.email ?? script$
|
|
3121
|
-
const PhoneComponent = formComponents.phone ?? script$
|
|
3122
|
-
const NumberComponent = formComponents.number ?? script$
|
|
3123
|
-
const SelectComponent = formComponents.select ?? script$
|
|
3124
|
-
const PasswordComponent = formComponents.password ?? script$
|
|
3118
|
+
const TextComponent = formComponents.text ?? script$q;
|
|
3119
|
+
const TextAreaComponent = formComponents.textArea ?? script$p;
|
|
3120
|
+
const EmailComponent = formComponents.email ?? script$s;
|
|
3121
|
+
const PhoneComponent = formComponents.phone ?? script$v;
|
|
3122
|
+
const NumberComponent = formComponents.number ?? script$r;
|
|
3123
|
+
const SelectComponent = formComponents.select ?? script$o;
|
|
3124
|
+
const PasswordComponent = formComponents.password ?? script$n;
|
|
3125
3125
|
if(props.customComponents && props.customComponents[field]) {
|
|
3126
3126
|
return props.customComponents[field]
|
|
3127
3127
|
}
|
|
@@ -3133,16 +3133,16 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3133
3133
|
}
|
|
3134
3134
|
else
|
|
3135
3135
|
if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
|
|
3136
|
-
return formComponents.textArea ?? script$
|
|
3136
|
+
return formComponents.textArea ?? script$p
|
|
3137
3137
|
} else
|
|
3138
3138
|
if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
|
|
3139
|
-
return formComponents.email ?? script$
|
|
3139
|
+
return formComponents.email ?? script$s
|
|
3140
3140
|
} else
|
|
3141
3141
|
if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
|
|
3142
|
-
return formComponents.phone ?? script$
|
|
3142
|
+
return formComponents.phone ?? script$v
|
|
3143
3143
|
} else
|
|
3144
3144
|
if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
|
|
3145
|
-
return formComponents.number ?? script$
|
|
3145
|
+
return formComponents.number ?? script$r
|
|
3146
3146
|
}
|
|
3147
3147
|
// else
|
|
3148
3148
|
// if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
|
|
@@ -3151,7 +3151,7 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3151
3151
|
// if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
|
|
3152
3152
|
// return formComponents.date ?? DateInput
|
|
3153
3153
|
// }
|
|
3154
|
-
return formComponents.text ?? script$
|
|
3154
|
+
return formComponents.text ?? script$q
|
|
3155
3155
|
};
|
|
3156
3156
|
const shFormElementClasses = vue.ref(null);
|
|
3157
3157
|
shFormElementClasses.value = vue.inject('shFormElementClasses');
|
|
@@ -3372,12 +3372,12 @@ return (_ctx, _cache) => {
|
|
|
3372
3372
|
|
|
3373
3373
|
};
|
|
3374
3374
|
|
|
3375
|
-
script$
|
|
3375
|
+
script$m.__file = "src/lib/components/ShAutoForm.vue";
|
|
3376
3376
|
|
|
3377
3377
|
const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
|
|
3378
3378
|
const _hoisted_2$b = { class: "dropdown" };
|
|
3379
3379
|
|
|
3380
|
-
var script$
|
|
3380
|
+
var script$l = {
|
|
3381
3381
|
__name: 'ShDropDownForm',
|
|
3382
3382
|
props: ['action',
|
|
3383
3383
|
'classes',
|
|
@@ -3424,7 +3424,7 @@ return (_ctx, _cache) => {
|
|
|
3424
3424
|
class: "dropdown-menu px-2 py-1",
|
|
3425
3425
|
"aria-labelledby": dropdownId
|
|
3426
3426
|
}, [
|
|
3427
|
-
vue.createVNode(script$
|
|
3427
|
+
vue.createVNode(script$t, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
|
|
3428
3428
|
])
|
|
3429
3429
|
])
|
|
3430
3430
|
], 64 /* STABLE_FRAGMENT */))
|
|
@@ -3433,7 +3433,7 @@ return (_ctx, _cache) => {
|
|
|
3433
3433
|
|
|
3434
3434
|
};
|
|
3435
3435
|
|
|
3436
|
-
script$
|
|
3436
|
+
script$l.__file = "src/lib/components/ShDropDownForm.vue";
|
|
3437
3437
|
|
|
3438
3438
|
const _hoisted_1$h = ["id"];
|
|
3439
3439
|
const _hoisted_2$a = { class: "modal-content" };
|
|
@@ -3447,7 +3447,7 @@ const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
|
|
|
3447
3447
|
const _hoisted_6$6 = { class: "modal-body" };
|
|
3448
3448
|
const _hoisted_7$4 = { class: "section" };
|
|
3449
3449
|
|
|
3450
|
-
var script$
|
|
3450
|
+
var script$k = {
|
|
3451
3451
|
__name: 'ShModal',
|
|
3452
3452
|
props: {
|
|
3453
3453
|
modalId: {
|
|
@@ -3502,11 +3502,11 @@ return (_ctx, _cache) => {
|
|
|
3502
3502
|
|
|
3503
3503
|
};
|
|
3504
3504
|
|
|
3505
|
-
script$
|
|
3505
|
+
script$k.__file = "src/lib/components/ShModal.vue";
|
|
3506
3506
|
|
|
3507
3507
|
const _hoisted_1$g = ["href"];
|
|
3508
3508
|
|
|
3509
|
-
var script$
|
|
3509
|
+
var script$j = {
|
|
3510
3510
|
__name: 'ShModalForm',
|
|
3511
3511
|
props: ['action',
|
|
3512
3512
|
'classes',
|
|
@@ -3546,12 +3546,12 @@ return (_ctx, _cache) => {
|
|
|
3546
3546
|
}, [
|
|
3547
3547
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3548
3548
|
], 10 /* CLASS, PROPS */, _hoisted_1$g),
|
|
3549
|
-
vue.createVNode(script$
|
|
3549
|
+
vue.createVNode(script$k, {
|
|
3550
3550
|
"modal-id": modalId,
|
|
3551
3551
|
"modal-title": __props.modalTitle
|
|
3552
3552
|
}, {
|
|
3553
3553
|
default: vue.withCtx(() => [
|
|
3554
|
-
vue.createVNode(script$
|
|
3554
|
+
vue.createVNode(script$t, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3555
3555
|
]),
|
|
3556
3556
|
_: 1 /* STABLE */
|
|
3557
3557
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3561,11 +3561,11 @@ return (_ctx, _cache) => {
|
|
|
3561
3561
|
|
|
3562
3562
|
};
|
|
3563
3563
|
|
|
3564
|
-
script$
|
|
3564
|
+
script$j.__file = "src/lib/components/ShModalForm.vue";
|
|
3565
3565
|
|
|
3566
3566
|
const _hoisted_1$f = ["href"];
|
|
3567
3567
|
|
|
3568
|
-
var script$
|
|
3568
|
+
var script$i = {
|
|
3569
3569
|
__name: 'ShModalFormAuto',
|
|
3570
3570
|
props: ['action',
|
|
3571
3571
|
'classes',
|
|
@@ -3606,12 +3606,12 @@ return (_ctx, _cache) => {
|
|
|
3606
3606
|
}, [
|
|
3607
3607
|
vue.renderSlot(_ctx.$slots, "default")
|
|
3608
3608
|
], 10 /* CLASS, PROPS */, _hoisted_1$f),
|
|
3609
|
-
vue.createVNode(script$
|
|
3609
|
+
vue.createVNode(script$k, {
|
|
3610
3610
|
"modal-id": modalId,
|
|
3611
3611
|
"modal-title": __props.modalTitle
|
|
3612
3612
|
}, {
|
|
3613
3613
|
default: vue.withCtx(() => [
|
|
3614
|
-
vue.createVNode(script$
|
|
3614
|
+
vue.createVNode(script$m, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
|
|
3615
3615
|
]),
|
|
3616
3616
|
_: 1 /* STABLE */
|
|
3617
3617
|
}, 8 /* PROPS */, ["modal-title"])
|
|
@@ -3621,7 +3621,7 @@ return (_ctx, _cache) => {
|
|
|
3621
3621
|
|
|
3622
3622
|
};
|
|
3623
3623
|
|
|
3624
|
-
script$
|
|
3624
|
+
script$i.__file = "src/lib/components/ShModalFormAuto.vue";
|
|
3625
3625
|
|
|
3626
3626
|
const _hoisted_1$e = ["id"];
|
|
3627
3627
|
const _hoisted_2$9 = { class: "offcanvas-header" };
|
|
@@ -3631,7 +3631,7 @@ const _hoisted_3$9 = {
|
|
|
3631
3631
|
};
|
|
3632
3632
|
const _hoisted_4$9 = { class: "offcanvas-body" };
|
|
3633
3633
|
|
|
3634
|
-
var script$
|
|
3634
|
+
var script$h = {
|
|
3635
3635
|
__name: 'ShCanvas',
|
|
3636
3636
|
props: {
|
|
3637
3637
|
canvasId: {
|
|
@@ -3696,9 +3696,9 @@ return (_ctx, _cache) => {
|
|
|
3696
3696
|
|
|
3697
3697
|
};
|
|
3698
3698
|
|
|
3699
|
-
script$
|
|
3699
|
+
script$h.__file = "src/lib/components/ShCanvas.vue";
|
|
3700
3700
|
|
|
3701
|
-
var script$
|
|
3701
|
+
var script$g = {
|
|
3702
3702
|
name: 'Pagination',
|
|
3703
3703
|
props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
|
|
3704
3704
|
data () {
|
|
@@ -3894,8 +3894,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3894
3894
|
]))
|
|
3895
3895
|
}
|
|
3896
3896
|
|
|
3897
|
-
script$
|
|
3898
|
-
script$
|
|
3897
|
+
script$g.render = render$3;
|
|
3898
|
+
script$g.__file = "src/lib/components/list_templates/Pagination.vue";
|
|
3899
3899
|
|
|
3900
3900
|
const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3901
3901
|
class: "spinner-border spinner-border-sm me-1",
|
|
@@ -3904,7 +3904,7 @@ const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("span", {
|
|
|
3904
3904
|
}, null, -1 /* HOISTED */);
|
|
3905
3905
|
|
|
3906
3906
|
|
|
3907
|
-
var script$
|
|
3907
|
+
var script$f = {
|
|
3908
3908
|
__name: 'ShConfirmAction',
|
|
3909
3909
|
props: {
|
|
3910
3910
|
data: Object,
|
|
@@ -3990,7 +3990,7 @@ return (_ctx, _cache) => {
|
|
|
3990
3990
|
|
|
3991
3991
|
};
|
|
3992
3992
|
|
|
3993
|
-
script$
|
|
3993
|
+
script$f.__file = "src/lib/components/ShConfirmAction.vue";
|
|
3994
3994
|
|
|
3995
3995
|
const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
|
|
3996
3996
|
class: "spinner-border spinner-border-sm me-1",
|
|
@@ -3998,7 +3998,7 @@ const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
|
|
|
3998
3998
|
"aria-hidden": "true"
|
|
3999
3999
|
}, null, -1 /* HOISTED */);
|
|
4000
4000
|
|
|
4001
|
-
var script$
|
|
4001
|
+
var script$e = {
|
|
4002
4002
|
__name: 'ShSilentAction',
|
|
4003
4003
|
props: {
|
|
4004
4004
|
data: Object,
|
|
@@ -4086,9 +4086,9 @@ return (_ctx, _cache) => {
|
|
|
4086
4086
|
|
|
4087
4087
|
};
|
|
4088
4088
|
|
|
4089
|
-
script$
|
|
4089
|
+
script$e.__file = "src/lib/components/ShSilentAction.vue";
|
|
4090
4090
|
|
|
4091
|
-
var script$
|
|
4091
|
+
var script$d = {
|
|
4092
4092
|
name: 'sh-table',
|
|
4093
4093
|
props: ['endPoint', 'headers','query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
|
|
4094
4094
|
inject: ['channel'],
|
|
@@ -4343,10 +4343,10 @@ var script$e = {
|
|
|
4343
4343
|
this.reloadData();
|
|
4344
4344
|
},
|
|
4345
4345
|
components: {
|
|
4346
|
-
ShSilentAction: script$
|
|
4347
|
-
ShConfirmAction: script$
|
|
4348
|
-
ShCanvas: script$
|
|
4349
|
-
pagination: script$
|
|
4346
|
+
ShSilentAction: script$e,
|
|
4347
|
+
ShConfirmAction: script$f,
|
|
4348
|
+
ShCanvas: script$h,
|
|
4349
|
+
pagination: script$g
|
|
4350
4350
|
},
|
|
4351
4351
|
computed: {
|
|
4352
4352
|
windowWidth: function () {
|
|
@@ -4980,10 +4980,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4980
4980
|
]))
|
|
4981
4981
|
}
|
|
4982
4982
|
|
|
4983
|
-
script$
|
|
4984
|
-
script$
|
|
4983
|
+
script$d.render = render$2;
|
|
4984
|
+
script$d.__file = "src/lib/components/ShTable.vue";
|
|
4985
4985
|
|
|
4986
|
-
var script$
|
|
4986
|
+
var script$c = {
|
|
4987
4987
|
__name: 'ShTabs',
|
|
4988
4988
|
props: {
|
|
4989
4989
|
tabs: {
|
|
@@ -5128,7 +5128,7 @@ return (_ctx, _cache) => {
|
|
|
5128
5128
|
|
|
5129
5129
|
};
|
|
5130
5130
|
|
|
5131
|
-
script$
|
|
5131
|
+
script$c.__file = "src/lib/components/ShTabs.vue";
|
|
5132
5132
|
|
|
5133
5133
|
const _hoisted_1$9 = {
|
|
5134
5134
|
class: "nav nav-tabs",
|
|
@@ -5143,7 +5143,7 @@ const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none"
|
|
|
5143
5143
|
const _hoisted_5$5 = { class: "sh_tab_count" };
|
|
5144
5144
|
const _hoisted_6$4 = { class: "tab-content" };
|
|
5145
5145
|
|
|
5146
|
-
var script$
|
|
5146
|
+
var script$b = {
|
|
5147
5147
|
__name: 'ShDynamicTabs',
|
|
5148
5148
|
props: ['tabs','data'],
|
|
5149
5149
|
setup(__props) {
|
|
@@ -5197,12 +5197,12 @@ return (_ctx, _cache) => {
|
|
|
5197
5197
|
|
|
5198
5198
|
};
|
|
5199
5199
|
|
|
5200
|
-
script$
|
|
5200
|
+
script$b.__file = "src/lib/components/ShDynamicTabs.vue";
|
|
5201
5201
|
|
|
5202
5202
|
const _hoisted_1$8 = ["href"];
|
|
5203
5203
|
|
|
5204
5204
|
|
|
5205
|
-
var script$
|
|
5205
|
+
var script$a = {
|
|
5206
5206
|
__name: 'ShModalBtn',
|
|
5207
5207
|
props: {
|
|
5208
5208
|
modalId: {
|
|
@@ -5225,12 +5225,12 @@ return (_ctx, _cache) => {
|
|
|
5225
5225
|
|
|
5226
5226
|
};
|
|
5227
5227
|
|
|
5228
|
-
script$
|
|
5228
|
+
script$a.__file = "src/lib/components/ShModalBtn.vue";
|
|
5229
5229
|
|
|
5230
5230
|
const _hoisted_1$7 = ["href"];
|
|
5231
5231
|
|
|
5232
5232
|
|
|
5233
|
-
var script$
|
|
5233
|
+
var script$9 = {
|
|
5234
5234
|
__name: 'ShCanvasBtn',
|
|
5235
5235
|
props: {
|
|
5236
5236
|
canvasId: {
|
|
@@ -5254,7 +5254,7 @@ return (_ctx, _cache) => {
|
|
|
5254
5254
|
|
|
5255
5255
|
};
|
|
5256
5256
|
|
|
5257
|
-
script$
|
|
5257
|
+
script$9.__file = "src/lib/components/ShCanvasBtn.vue";
|
|
5258
5258
|
|
|
5259
5259
|
const useUserStore = pinia.defineStore('user-store', {
|
|
5260
5260
|
state: () => ({
|
|
@@ -5393,7 +5393,7 @@ const _hoisted_17 = { class: "col-md-3" };
|
|
|
5393
5393
|
const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
|
|
5394
5394
|
|
|
5395
5395
|
|
|
5396
|
-
var script$
|
|
5396
|
+
var script$8 = {
|
|
5397
5397
|
__name: 'ManagePermissions',
|
|
5398
5398
|
emits: ['success'],
|
|
5399
5399
|
setup(__props, { emit }) {
|
|
@@ -5551,7 +5551,7 @@ return (_ctx, _cache) => {
|
|
|
5551
5551
|
(permissionsChanged.value)
|
|
5552
5552
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
|
|
5553
5553
|
vue.createElementVNode("div", _hoisted_17, [
|
|
5554
|
-
vue.createVNode(script$
|
|
5554
|
+
vue.createVNode(script$e, {
|
|
5555
5555
|
onSuccess: permissionsUpdated,
|
|
5556
5556
|
url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
|
|
5557
5557
|
data: {permissions: selectedPermissions.value},
|
|
@@ -5575,57 +5575,33 @@ return (_ctx, _cache) => {
|
|
|
5575
5575
|
|
|
5576
5576
|
};
|
|
5577
5577
|
|
|
5578
|
-
script$
|
|
5579
|
-
script$
|
|
5580
|
-
|
|
5581
|
-
const _hoisted_1$5 = { class: "alert alert-info" };
|
|
5582
|
-
const _hoisted_2$4 = /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-border" }, null, -1 /* HOISTED */);
|
|
5583
|
-
const _hoisted_3$4 = /*#__PURE__*/vue.createElementVNode("span", null, "Loading", -1 /* HOISTED */);
|
|
5584
|
-
const _hoisted_4$4 = [
|
|
5585
|
-
_hoisted_2$4,
|
|
5586
|
-
_hoisted_3$4
|
|
5587
|
-
];
|
|
5588
|
-
|
|
5589
|
-
function render$1(_ctx, _cache) {
|
|
5590
|
-
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, _hoisted_4$4))
|
|
5591
|
-
}
|
|
5592
|
-
|
|
5593
|
-
const script$8 = {};
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
script$8.render = render$1;
|
|
5597
|
-
script$8.__file = "src/lib/components/popups/etc/PopupLoading.vue";
|
|
5598
|
-
|
|
5599
|
-
function render(_ctx, _cache) {
|
|
5600
|
-
return (vue.openBlock(), vue.createElementBlock("h5", null, "Error loading popup"))
|
|
5601
|
-
}
|
|
5602
|
-
|
|
5603
|
-
const script$7 = {};
|
|
5578
|
+
script$8.__scopeId = "data-v-0d4fa0ac";
|
|
5579
|
+
script$8.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
|
|
5604
5580
|
|
|
5581
|
+
const _hoisted_1$5 = ["href"];
|
|
5605
5582
|
|
|
5606
|
-
script$7.render = render;
|
|
5607
|
-
script$7.__file = "src/lib/components/popups/etc/ErrorLoadingPopup.vue";
|
|
5608
5583
|
|
|
5609
|
-
var script$
|
|
5610
|
-
__name: '
|
|
5584
|
+
var script$7 = {
|
|
5585
|
+
__name: 'ShRoutePopups',
|
|
5611
5586
|
setup(__props) {
|
|
5612
5587
|
|
|
5613
5588
|
const route = vueRouter.useRoute();
|
|
5614
5589
|
const popUp = vue.ref(route.meta.popUp);
|
|
5615
5590
|
const modalId = ___default["default"].uniqueId('modal_');
|
|
5616
5591
|
const canvasId = ___default["default"].uniqueId('canvas_');
|
|
5617
|
-
|
|
5592
|
+
const componentView = vue.ref(null);
|
|
5618
5593
|
vue.ref(null);
|
|
5619
5594
|
const router = vueRouter.useRouter();
|
|
5620
5595
|
const position = vue.ref(null);
|
|
5621
5596
|
const size = vue.ref(null);
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
popUp.value = pop;
|
|
5625
|
-
position.value = route.query.position ?? route.query.side;
|
|
5626
|
-
size.value = route.query.size;
|
|
5597
|
+
vue.watch(() => route.meta, meta => {
|
|
5598
|
+
popUp.value = meta.popUp ?? meta.popup;
|
|
5627
5599
|
if (popUp.value) {
|
|
5628
|
-
|
|
5600
|
+
// popups.push(meta)
|
|
5601
|
+
// !popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta)
|
|
5602
|
+
position.value = meta.position ?? meta.side;
|
|
5603
|
+
size.value = meta.size;
|
|
5604
|
+
componentView.value = vue.markRaw(route.matched[route.matched.length - 1].components.default);
|
|
5629
5605
|
setTimeout(() => {
|
|
5630
5606
|
initPopup();
|
|
5631
5607
|
}, 100);
|
|
@@ -5636,24 +5612,6 @@ vue.watch(() => route.query.popup, pop => {
|
|
|
5636
5612
|
}, 100);
|
|
5637
5613
|
}
|
|
5638
5614
|
});
|
|
5639
|
-
const loadPopupComponent = ()=>{
|
|
5640
|
-
const component = route.query.comp || '';
|
|
5641
|
-
PopupComponent.value = vue.defineAsyncComponent({
|
|
5642
|
-
// the loader function
|
|
5643
|
-
loader: () => (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(/* @vite-ignore */ `/src/views/popups/${component}Popup.vue`),
|
|
5644
|
-
|
|
5645
|
-
// A component to use while the async component is loading
|
|
5646
|
-
loadingComponent: script$8,
|
|
5647
|
-
// Delay before showing the loading component. Default: 200ms.
|
|
5648
|
-
delay: 200,
|
|
5649
|
-
|
|
5650
|
-
// A component to use if the load fails
|
|
5651
|
-
errorComponent: script$7,
|
|
5652
|
-
// The error component will be displayed if a timeout is
|
|
5653
|
-
// provided and exceeded. Default: Infinity.
|
|
5654
|
-
timeout: 3000
|
|
5655
|
-
});
|
|
5656
|
-
};
|
|
5657
5615
|
const closeOrphanedBackdrops = () => {
|
|
5658
5616
|
const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
|
|
5659
5617
|
if (offCanvasBackdrop) {
|
|
@@ -5688,37 +5646,42 @@ const initPopup = () => {
|
|
|
5688
5646
|
};
|
|
5689
5647
|
const goBack = () => {
|
|
5690
5648
|
if (route.matched.length) {
|
|
5691
|
-
let backUrl = route.path;
|
|
5692
|
-
|
|
5693
|
-
|
|
5649
|
+
let backUrl = route.matched[route.matched.length - 2].path;
|
|
5650
|
+
const params = route.params;
|
|
5651
|
+
Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]));
|
|
5694
5652
|
router.push(backUrl);
|
|
5695
5653
|
}
|
|
5696
5654
|
};
|
|
5697
5655
|
|
|
5698
5656
|
return (_ctx, _cache) => {
|
|
5699
5657
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5658
|
+
vue.createElementVNode("a", {
|
|
5659
|
+
"data-bs-toggle": "offcanvas",
|
|
5660
|
+
href: '#' + vue.unref(canvasId),
|
|
5661
|
+
shallowRef: "canvasButton",
|
|
5662
|
+
class: "d-none"
|
|
5663
|
+
}, "Open Modal", 8 /* PROPS */, _hoisted_1$5),
|
|
5700
5664
|
(popUp.value === 'modal')
|
|
5701
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5665
|
+
? (vue.openBlock(), vue.createBlock(script$k, {
|
|
5702
5666
|
key: 0,
|
|
5703
5667
|
"modal-id": vue.unref(modalId),
|
|
5704
5668
|
"modal-size": size.value
|
|
5705
5669
|
}, {
|
|
5706
5670
|
default: vue.withCtx(() => [
|
|
5707
|
-
vue.
|
|
5671
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
5708
5672
|
]),
|
|
5709
5673
|
_: 1 /* STABLE */
|
|
5710
5674
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5711
5675
|
: vue.createCommentVNode("v-if", true),
|
|
5712
5676
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5713
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5677
|
+
? (vue.openBlock(), vue.createBlock(script$h, {
|
|
5714
5678
|
key: 1,
|
|
5715
5679
|
"canvas-id": vue.unref(canvasId),
|
|
5716
5680
|
"canvas-size": size.value,
|
|
5717
5681
|
position: position.value
|
|
5718
5682
|
}, {
|
|
5719
5683
|
default: vue.withCtx(() => [
|
|
5720
|
-
vue.
|
|
5721
|
-
vue.createVNode(vue.unref(AsyncComp))
|
|
5684
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
|
|
5722
5685
|
]),
|
|
5723
5686
|
_: 1 /* STABLE */
|
|
5724
5687
|
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
@@ -5729,32 +5692,56 @@ return (_ctx, _cache) => {
|
|
|
5729
5692
|
|
|
5730
5693
|
};
|
|
5731
5694
|
|
|
5732
|
-
script$
|
|
5695
|
+
script$7.__file = "src/lib/components/popups/ShRoutePopups.vue";
|
|
5733
5696
|
|
|
5734
|
-
const _hoisted_1$4 =
|
|
5697
|
+
const _hoisted_1$4 = { class: "alert alert-info" };
|
|
5698
|
+
const _hoisted_2$4 = /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-border" }, null, -1 /* HOISTED */);
|
|
5699
|
+
const _hoisted_3$4 = /*#__PURE__*/vue.createElementVNode("span", null, "Loading", -1 /* HOISTED */);
|
|
5700
|
+
const _hoisted_4$4 = [
|
|
5701
|
+
_hoisted_2$4,
|
|
5702
|
+
_hoisted_3$4
|
|
5703
|
+
];
|
|
5735
5704
|
|
|
5705
|
+
function render$1(_ctx, _cache) {
|
|
5706
|
+
return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, _hoisted_4$4))
|
|
5707
|
+
}
|
|
5708
|
+
|
|
5709
|
+
const script$6 = {};
|
|
5710
|
+
|
|
5711
|
+
|
|
5712
|
+
script$6.render = render$1;
|
|
5713
|
+
script$6.__file = "src/lib/components/popups/etc/PopupLoading.vue";
|
|
5714
|
+
|
|
5715
|
+
function render(_ctx, _cache) {
|
|
5716
|
+
return (vue.openBlock(), vue.createElementBlock("h5", null, "Error loading popup"))
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
const script$5 = {};
|
|
5736
5720
|
|
|
5737
|
-
|
|
5738
|
-
|
|
5721
|
+
|
|
5722
|
+
script$5.render = render;
|
|
5723
|
+
script$5.__file = "src/lib/components/popups/etc/ErrorLoadingPopup.vue";
|
|
5724
|
+
|
|
5725
|
+
var script$4 = {
|
|
5726
|
+
__name: 'ShQueryPopups',
|
|
5739
5727
|
setup(__props) {
|
|
5740
5728
|
|
|
5741
5729
|
const route = vueRouter.useRoute();
|
|
5742
5730
|
const popUp = vue.ref(route.meta.popUp);
|
|
5743
5731
|
const modalId = ___default["default"].uniqueId('modal_');
|
|
5744
5732
|
const canvasId = ___default["default"].uniqueId('canvas_');
|
|
5745
|
-
|
|
5733
|
+
let PopupComponent = vue.ref(null);
|
|
5746
5734
|
vue.ref(null);
|
|
5747
5735
|
const router = vueRouter.useRouter();
|
|
5748
5736
|
const position = vue.ref(null);
|
|
5749
5737
|
const size = vue.ref(null);
|
|
5750
|
-
vue.
|
|
5751
|
-
|
|
5738
|
+
const AsyncComp =vue.ref(null);
|
|
5739
|
+
vue.watch(() => route.query.popup, pop => {
|
|
5740
|
+
popUp.value = pop;
|
|
5741
|
+
position.value = route.query.position ?? route.query.side;
|
|
5742
|
+
size.value = route.query.size;
|
|
5752
5743
|
if (popUp.value) {
|
|
5753
|
-
|
|
5754
|
-
// !popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta)
|
|
5755
|
-
position.value = meta.position ?? meta.side;
|
|
5756
|
-
size.value = meta.size;
|
|
5757
|
-
componentView.value = vue.markRaw(route.matched[route.matched.length - 1].components.default);
|
|
5744
|
+
loadPopupComponent();
|
|
5758
5745
|
setTimeout(() => {
|
|
5759
5746
|
initPopup();
|
|
5760
5747
|
}, 100);
|
|
@@ -5765,6 +5752,24 @@ vue.watch(() => route.meta, meta => {
|
|
|
5765
5752
|
}, 100);
|
|
5766
5753
|
}
|
|
5767
5754
|
});
|
|
5755
|
+
const loadPopupComponent = ()=>{
|
|
5756
|
+
const component = route.query.comp || '';
|
|
5757
|
+
PopupComponent.value = vue.defineAsyncComponent({
|
|
5758
|
+
// the loader function
|
|
5759
|
+
loader: () => (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(/* @vite-ignore */ `/src/views/popups/${component}Popup.vue`),
|
|
5760
|
+
|
|
5761
|
+
// A component to use while the async component is loading
|
|
5762
|
+
loadingComponent: script$6,
|
|
5763
|
+
// Delay before showing the loading component. Default: 200ms.
|
|
5764
|
+
delay: 200,
|
|
5765
|
+
|
|
5766
|
+
// A component to use if the load fails
|
|
5767
|
+
errorComponent: script$5,
|
|
5768
|
+
// The error component will be displayed if a timeout is
|
|
5769
|
+
// provided and exceeded. Default: Infinity.
|
|
5770
|
+
timeout: 3000
|
|
5771
|
+
});
|
|
5772
|
+
};
|
|
5768
5773
|
const closeOrphanedBackdrops = () => {
|
|
5769
5774
|
const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
|
|
5770
5775
|
if (offCanvasBackdrop) {
|
|
@@ -5799,42 +5804,37 @@ const initPopup = () => {
|
|
|
5799
5804
|
};
|
|
5800
5805
|
const goBack = () => {
|
|
5801
5806
|
if (route.matched.length) {
|
|
5802
|
-
let backUrl = route.
|
|
5803
|
-
const params = route.params
|
|
5804
|
-
Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]))
|
|
5807
|
+
let backUrl = route.path;
|
|
5808
|
+
// const params = route.params
|
|
5809
|
+
// Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]))
|
|
5805
5810
|
router.push(backUrl);
|
|
5806
5811
|
}
|
|
5807
5812
|
};
|
|
5808
5813
|
|
|
5809
5814
|
return (_ctx, _cache) => {
|
|
5810
5815
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5811
|
-
vue.createElementVNode("a", {
|
|
5812
|
-
"data-bs-toggle": "offcanvas",
|
|
5813
|
-
href: '#' + vue.unref(canvasId),
|
|
5814
|
-
shallowRef: "canvasButton",
|
|
5815
|
-
class: "d-none"
|
|
5816
|
-
}, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
|
|
5817
5816
|
(popUp.value === 'modal')
|
|
5818
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5817
|
+
? (vue.openBlock(), vue.createBlock(script$k, {
|
|
5819
5818
|
key: 0,
|
|
5820
5819
|
"modal-id": vue.unref(modalId),
|
|
5821
5820
|
"modal-size": size.value
|
|
5822
5821
|
}, {
|
|
5823
5822
|
default: vue.withCtx(() => [
|
|
5824
|
-
|
|
5823
|
+
vue.createVNode(vue.unref(PopupComponent))
|
|
5825
5824
|
]),
|
|
5826
5825
|
_: 1 /* STABLE */
|
|
5827
5826
|
}, 8 /* PROPS */, ["modal-id", "modal-size"]))
|
|
5828
5827
|
: vue.createCommentVNode("v-if", true),
|
|
5829
5828
|
(['offcanvas','canvas','offCanvas'].includes(popUp.value))
|
|
5830
|
-
? (vue.openBlock(), vue.createBlock(script$
|
|
5829
|
+
? (vue.openBlock(), vue.createBlock(script$h, {
|
|
5831
5830
|
key: 1,
|
|
5832
5831
|
"canvas-id": vue.unref(canvasId),
|
|
5833
5832
|
"canvas-size": size.value,
|
|
5834
5833
|
position: position.value
|
|
5835
5834
|
}, {
|
|
5836
5835
|
default: vue.withCtx(() => [
|
|
5837
|
-
|
|
5836
|
+
vue.createVNode(vue.unref(PopupComponent)),
|
|
5837
|
+
vue.createVNode(vue.unref(AsyncComp))
|
|
5838
5838
|
]),
|
|
5839
5839
|
_: 1 /* STABLE */
|
|
5840
5840
|
}, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
|
|
@@ -5845,24 +5845,7 @@ return (_ctx, _cache) => {
|
|
|
5845
5845
|
|
|
5846
5846
|
};
|
|
5847
5847
|
|
|
5848
|
-
script$
|
|
5849
|
-
|
|
5850
|
-
var script$4 = {
|
|
5851
|
-
__name: 'ShPopups',
|
|
5852
|
-
setup(__props) {
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
return (_ctx, _cache) => {
|
|
5856
|
-
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5857
|
-
vue.createVNode(script$6),
|
|
5858
|
-
vue.createVNode(script$5)
|
|
5859
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
5860
|
-
}
|
|
5861
|
-
}
|
|
5862
|
-
|
|
5863
|
-
};
|
|
5864
|
-
|
|
5865
|
-
script$4.__file = "src/lib/components/ShPopups.vue";
|
|
5848
|
+
script$4.__file = "src/lib/components/popups/ShQueryPopups.vue";
|
|
5866
5849
|
|
|
5867
5850
|
const _hoisted_1$3 = { class: "sh-range" };
|
|
5868
5851
|
const _hoisted_2$3 = { class: "dropdown" };
|
|
@@ -6078,7 +6061,7 @@ return (_ctx, _cache) => {
|
|
|
6078
6061
|
_hoisted_5$2,
|
|
6079
6062
|
vue.createTextVNode(" ADD DEPARTMENT")
|
|
6080
6063
|
], 512 /* NEED_PATCH */),
|
|
6081
|
-
vue.createVNode(script$
|
|
6064
|
+
vue.createVNode(script$d, {
|
|
6082
6065
|
headers: ['id','name','description', 'created_at'],
|
|
6083
6066
|
"end-point": "sh-departments/list",
|
|
6084
6067
|
actions: {
|
|
@@ -6092,12 +6075,12 @@ return (_ctx, _cache) => {
|
|
|
6092
6075
|
]
|
|
6093
6076
|
}
|
|
6094
6077
|
}),
|
|
6095
|
-
vue.createVNode(script$
|
|
6078
|
+
vue.createVNode(script$k, {
|
|
6096
6079
|
"modal-id": "sh-department_modal",
|
|
6097
6080
|
"modal-title": "Department Form"
|
|
6098
6081
|
}, {
|
|
6099
6082
|
default: vue.withCtx(() => [
|
|
6100
|
-
vue.createVNode(script$
|
|
6083
|
+
vue.createVNode(script$t, {
|
|
6101
6084
|
"success-callback": "departmentAdded",
|
|
6102
6085
|
onDepartmentAdded: departmentAdded,
|
|
6103
6086
|
action: "admin/departments/store",
|
|
@@ -6231,7 +6214,7 @@ return (_ctx, _cache) => {
|
|
|
6231
6214
|
vue.createElementVNode("div", _hoisted_2$1, [
|
|
6232
6215
|
_hoisted_3$1,
|
|
6233
6216
|
vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
|
|
6234
|
-
vue.createVNode(script$
|
|
6217
|
+
vue.createVNode(script$d, {
|
|
6235
6218
|
actions: {
|
|
6236
6219
|
label: 'Actions',
|
|
6237
6220
|
actions: [
|
|
@@ -6251,12 +6234,12 @@ return (_ctx, _cache) => {
|
|
|
6251
6234
|
headers: ['id',showModule,'created_at'],
|
|
6252
6235
|
"end-point": 'admin/departments/department/list-modules/' + id.value
|
|
6253
6236
|
}, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
|
|
6254
|
-
vue.createVNode(script$
|
|
6237
|
+
vue.createVNode(script$k, {
|
|
6255
6238
|
"modal-id": "addModule",
|
|
6256
6239
|
"modal-title": "Add Module Department"
|
|
6257
6240
|
}, {
|
|
6258
6241
|
default: vue.withCtx(() => [
|
|
6259
|
-
vue.createVNode(script$
|
|
6242
|
+
vue.createVNode(script$t, {
|
|
6260
6243
|
"reload-select-items": vue.unref(reload),
|
|
6261
6244
|
"success-callback": moduleAdded,
|
|
6262
6245
|
"fill-selects": {
|
|
@@ -6278,7 +6261,7 @@ return (_ctx, _cache) => {
|
|
|
6278
6261
|
ref: permissionCanvasBtn,
|
|
6279
6262
|
"data-bs-toggle": "offcanvas"
|
|
6280
6263
|
}, null, 512 /* NEED_PATCH */),
|
|
6281
|
-
vue.createVNode(script$
|
|
6264
|
+
vue.createVNode(script$h, {
|
|
6282
6265
|
"canvas-id": "permissionsCanvas",
|
|
6283
6266
|
position: "end enlarged",
|
|
6284
6267
|
"canvas-title": "Module Permissions"
|
|
@@ -6393,7 +6376,7 @@ return (_ctx, _cache) => {
|
|
|
6393
6376
|
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
6394
6377
|
(section.value === 'login')
|
|
6395
6378
|
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
6396
|
-
vue.createVNode(script$
|
|
6379
|
+
vue.createVNode(script$t, {
|
|
6397
6380
|
class: "sh-login-form",
|
|
6398
6381
|
fields: ['email','password'],
|
|
6399
6382
|
"action-label": "Login",
|
|
@@ -6418,7 +6401,7 @@ return (_ctx, _cache) => {
|
|
|
6418
6401
|
(vue.unref(registerSubTitle))
|
|
6419
6402
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
|
|
6420
6403
|
: vue.createCommentVNode("v-if", true),
|
|
6421
|
-
vue.createVNode(script$
|
|
6404
|
+
vue.createVNode(script$t, {
|
|
6422
6405
|
class: "sh-login-form",
|
|
6423
6406
|
fields: vue.unref(registrationFields),
|
|
6424
6407
|
"action-label": "Sign Up",
|
|
@@ -6465,7 +6448,7 @@ const ShFrontend = {
|
|
|
6465
6448
|
const registerTitle = options.registerTitle ?? 'Create a new account';
|
|
6466
6449
|
const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
|
|
6467
6450
|
const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
|
|
6468
|
-
options.formTextInput ?? script$
|
|
6451
|
+
options.formTextInput ?? script$q;
|
|
6469
6452
|
const loginUrl = options.loginUrl ?? `/login`;
|
|
6470
6453
|
const redirectLogin = options.redirectLogin ?? `/`;
|
|
6471
6454
|
const redirectRegister = options.redirectRegister ?? `/`;
|
|
@@ -6498,7 +6481,7 @@ const ShFrontend = {
|
|
|
6498
6481
|
});
|
|
6499
6482
|
options.router.addRoute({
|
|
6500
6483
|
path: '/sh-departments/manage-permissions/:id',
|
|
6501
|
-
component: script$
|
|
6484
|
+
component: script$8
|
|
6502
6485
|
});
|
|
6503
6486
|
}
|
|
6504
6487
|
//filter unwanted config items from options to be put in local storage
|
|
@@ -6524,25 +6507,26 @@ var shGql = {
|
|
|
6524
6507
|
};
|
|
6525
6508
|
|
|
6526
6509
|
exports.Countries = countries;
|
|
6527
|
-
exports.ManagePermissions = script$
|
|
6528
|
-
exports.ShAutoForm = script$
|
|
6529
|
-
exports.ShCanvas = script$
|
|
6530
|
-
exports.ShCanvasBtn = script$
|
|
6531
|
-
exports.ShConfirmAction = script$
|
|
6532
|
-
exports.ShDropDownForm = script$
|
|
6533
|
-
exports.ShDynamicTabs = script$
|
|
6534
|
-
exports.ShForm = script$
|
|
6510
|
+
exports.ManagePermissions = script$8;
|
|
6511
|
+
exports.ShAutoForm = script$m;
|
|
6512
|
+
exports.ShCanvas = script$h;
|
|
6513
|
+
exports.ShCanvasBtn = script$9;
|
|
6514
|
+
exports.ShConfirmAction = script$f;
|
|
6515
|
+
exports.ShDropDownForm = script$l;
|
|
6516
|
+
exports.ShDynamicTabs = script$b;
|
|
6517
|
+
exports.ShForm = script$t;
|
|
6535
6518
|
exports.ShFrontend = ShFrontend;
|
|
6536
|
-
exports.ShModal = script$
|
|
6537
|
-
exports.ShModalBtn = script$
|
|
6538
|
-
exports.ShModalForm = script$
|
|
6539
|
-
exports.ShModalFormAuto = script$
|
|
6540
|
-
exports.ShPhone = script$
|
|
6541
|
-
exports.
|
|
6519
|
+
exports.ShModal = script$k;
|
|
6520
|
+
exports.ShModalBtn = script$a;
|
|
6521
|
+
exports.ShModalForm = script$j;
|
|
6522
|
+
exports.ShModalFormAuto = script$i;
|
|
6523
|
+
exports.ShPhone = script$v;
|
|
6524
|
+
exports.ShQueryPopups = script$4;
|
|
6542
6525
|
exports.ShRange = script$3;
|
|
6543
|
-
exports.
|
|
6544
|
-
exports.
|
|
6545
|
-
exports.
|
|
6526
|
+
exports.ShRoutePopups = script$7;
|
|
6527
|
+
exports.ShSilentAction = script$e;
|
|
6528
|
+
exports.ShTable = script$d;
|
|
6529
|
+
exports.ShTabs = script$c;
|
|
6546
6530
|
exports.shApis = shApis;
|
|
6547
6531
|
exports.shGql = shGql;
|
|
6548
6532
|
exports.shRepo = shRepo;
|