@iankibetsh/shframework 1.9.9 → 2.0.1

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.
Files changed (3) hide show
  1. package/dist/library.js +325 -317
  2. package/dist/library.mjs +309 -284
  3. package/package.json +1 -1
package/dist/library.mjs CHANGED
@@ -2,7 +2,7 @@ import Axios from 'axios';
2
2
  import moment from 'moment';
3
3
  import Swal from 'sweetalert2';
4
4
  import NProgress from 'nprogress';
5
- import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, unref, normalizeClass, resolveComponent, createBlock, resolveDynamicComponent, watch, inject, mergeProps, normalizeStyle, renderSlot, createVNode, normalizeProps, guardReactiveProps, withCtx, createStaticVNode, shallowRef, vModelCheckbox, pushScopeId, popScopeId, markRaw, defineAsyncComponent, computed, isRef } from 'vue';
5
+ import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, unref, normalizeClass, resolveComponent, createBlock, resolveDynamicComponent, watch, inject, mergeProps, normalizeStyle, renderSlot, createVNode, normalizeProps, guardReactiveProps, withCtx, createStaticVNode, shallowRef, vModelCheckbox, pushScopeId, popScopeId, markRaw, computed, isRef } from 'vue';
6
6
  import _ from 'lodash';
7
7
  import { useRoute, useRouter } from 'vue-router';
8
8
  import { defineStore, storeToRefs } from 'pinia';
@@ -1880,7 +1880,7 @@ const countries = [
1880
1880
  }
1881
1881
  ];
1882
1882
 
1883
- var script$v = {
1883
+ var script$u = {
1884
1884
  name: 'PhoneInput',
1885
1885
  props: ['modelValue', 'country_code'],
1886
1886
  data () {
@@ -1950,19 +1950,19 @@ var script$v = {
1950
1950
  }
1951
1951
  };
1952
1952
 
1953
- const _hoisted_1$o = { class: "sh-phone mb-3" };
1954
- const _hoisted_2$f = {
1953
+ const _hoisted_1$n = { class: "sh-phone mb-3" };
1954
+ const _hoisted_2$e = {
1955
1955
  key: 0,
1956
1956
  style: {"display":"contents"}
1957
1957
  };
1958
- const _hoisted_3$e = ["src"];
1959
- const _hoisted_4$e = ["value"];
1958
+ const _hoisted_3$d = ["src"];
1959
+ const _hoisted_4$d = ["value"];
1960
1960
 
1961
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1962
- return (openBlock(), createElementBlock("div", _hoisted_1$o, [
1961
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
1962
+ return (openBlock(), createElementBlock("div", _hoisted_1$n, [
1963
1963
  ($data.selectedCountry)
1964
- ? (openBlock(), createElementBlock("div", _hoisted_2$f, [
1965
- createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$e),
1964
+ ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
1965
+ createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$d),
1966
1966
  createTextVNode(" " + toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
1967
1967
  ]))
1968
1968
  : createCommentVNode("v-if", true),
@@ -1975,7 +1975,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1975
1975
  return (openBlock(), createElementBlock("option", {
1976
1976
  value: country,
1977
1977
  key: country.dialCode
1978
- }, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$e))
1978
+ }, toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
1979
1979
  }), 128 /* KEYED_FRAGMENT */))
1980
1980
  ], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
1981
1981
  [vModelSelect, $data.selectedCountry]
@@ -1993,17 +1993,17 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1993
1993
  ]))
1994
1994
  }
1995
1995
 
1996
- script$v.render = render$5;
1997
- script$v.__file = "src/lib/components/form-components/PhoneInput.vue";
1996
+ script$u.render = render$3;
1997
+ script$u.__file = "src/lib/components/form-components/PhoneInput.vue";
1998
1998
 
1999
- const _hoisted_1$n = {
1999
+ const _hoisted_1$m = {
2000
2000
  key: 0,
2001
2001
  class: "dropdown sh-suggest"
2002
2002
  };
2003
- const _hoisted_2$e = ["id"];
2004
- const _hoisted_3$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2005
- const _hoisted_4$d = ["onClick"];
2006
- const _hoisted_5$a = ["id"];
2003
+ const _hoisted_2$d = ["id"];
2004
+ const _hoisted_3$c = { class: "badge bg-secondary m-1 sh-selected-item" };
2005
+ const _hoisted_4$c = ["onClick"];
2006
+ const _hoisted_5$9 = ["id"];
2007
2007
  const _hoisted_6$8 = ["id", "aria-labelledby"];
2008
2008
  const _hoisted_7$7 = { key: 0 };
2009
2009
  const _hoisted_8$6 = ["onClick"];
@@ -2017,7 +2017,7 @@ const _hoisted_10$5 = {
2017
2017
  };
2018
2018
 
2019
2019
 
2020
- var script$u = {
2020
+ var script$t = {
2021
2021
  __name: 'ShSuggest',
2022
2022
  props: ['fillSelects','modelValue'],
2023
2023
  emits: ['update:modelValue'],
@@ -2098,7 +2098,7 @@ function filterData(e){
2098
2098
 
2099
2099
  return (_ctx, _cache) => {
2100
2100
  return (unref(id))
2101
- ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
2101
+ ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
2102
2102
  createElementVNode("div", {
2103
2103
  id: unref(id),
2104
2104
  "data-bs-toggle": "dropdown",
@@ -2107,14 +2107,14 @@ return (_ctx, _cache) => {
2107
2107
  }, [
2108
2108
  createElementVNode("div", null, [
2109
2109
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectedSuggestions), (sgt) => {
2110
- return (openBlock(), createElementBlock("h5", _hoisted_3$d, [
2110
+ return (openBlock(), createElementBlock("h5", _hoisted_3$c, [
2111
2111
  createTextVNode(toDisplayString(sgt.name) + " ", 1 /* TEXT */),
2112
2112
  createElementVNode("button", {
2113
2113
  onClick: $event => (removeSuggestion(sgt.id)),
2114
2114
  type: "button",
2115
2115
  class: "btn-close border-start border-1 ms-1",
2116
2116
  "aria-label": "Close"
2117
- }, null, 8 /* PROPS */, _hoisted_4$d)
2117
+ }, null, 8 /* PROPS */, _hoisted_4$c)
2118
2118
  ]))
2119
2119
  }), 256 /* UNKEYED_FRAGMENT */))
2120
2120
  ]),
@@ -2124,8 +2124,8 @@ return (_ctx, _cache) => {
2124
2124
  onClick: filterData,
2125
2125
  onInput: filterData,
2126
2126
  class: "flex-fill h-100 sh-suggestion-input"
2127
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$a)
2128
- ], 8 /* PROPS */, _hoisted_2$e),
2127
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$9)
2128
+ ], 8 /* PROPS */, _hoisted_2$d),
2129
2129
  createElementVNode("ul", {
2130
2130
  class: "dropdown-menu w-100",
2131
2131
  id: 'dropwdown_section' + unref(id),
@@ -2158,15 +2158,15 @@ return (_ctx, _cache) => {
2158
2158
 
2159
2159
  };
2160
2160
 
2161
- script$u.__scopeId = "data-v-71cc9569";
2162
- script$u.__file = "src/lib/components/form-components/ShSuggest.vue";
2161
+ script$t.__scopeId = "data-v-71cc9569";
2162
+ script$t.__file = "src/lib/components/form-components/ShSuggest.vue";
2163
2163
 
2164
- var script$t = {
2164
+ var script$s = {
2165
2165
  name: 'ShForm',
2166
2166
  components: {
2167
- PhoneInput: script$v,
2168
- ShSuggest: script$u,
2169
- ShPhone: script$v
2167
+ PhoneInput: script$u,
2168
+ ShSuggest: script$t,
2169
+ ShPhone: script$u
2170
2170
  },
2171
2171
  props: [
2172
2172
  'action',
@@ -2488,18 +2488,18 @@ var script$t = {
2488
2488
  }
2489
2489
  };
2490
2490
 
2491
- const _hoisted_1$m = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2492
- const _hoisted_2$d = {
2491
+ const _hoisted_1$l = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2492
+ const _hoisted_2$c = {
2493
2493
  ref: "ShAutoForm",
2494
2494
  class: "sh-form"
2495
2495
  };
2496
- const _hoisted_3$c = {
2496
+ const _hoisted_3$b = {
2497
2497
  key: 0,
2498
2498
  class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
2499
2499
  role: "alert"
2500
2500
  };
2501
- const _hoisted_4$c = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2502
- const _hoisted_5$9 = { key: 0 };
2501
+ const _hoisted_4$b = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2502
+ const _hoisted_5$8 = { key: 0 };
2503
2503
  const _hoisted_6$7 = { key: 1 };
2504
2504
  const _hoisted_7$6 = { class: "row" };
2505
2505
  const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
@@ -2544,20 +2544,20 @@ const _hoisted_24$1 = /*#__PURE__*/createElementVNode("span", {
2544
2544
  "aria-hidden": "true"
2545
2545
  }, null, -1 /* HOISTED */);
2546
2546
 
2547
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2547
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2548
2548
  const _component_phone_input = resolveComponent("phone-input");
2549
2549
  const _component_ShSuggest = resolveComponent("ShSuggest");
2550
2550
 
2551
2551
  return (openBlock(), createElementBlock(Fragment, null, [
2552
- _hoisted_1$m,
2553
- createElementVNode("form", _hoisted_2$d, [
2552
+ _hoisted_1$l,
2553
+ createElementVNode("form", _hoisted_2$c, [
2554
2554
  createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2555
2555
  createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2556
2556
  (_ctx.form_status == 3)
2557
- ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
2558
- _hoisted_4$c,
2557
+ ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
2558
+ _hoisted_4$b,
2559
2559
  (_ctx.errorText)
2560
- ? (openBlock(), createElementBlock("span", _hoisted_5$9, toDisplayString(_ctx.errorText), 1 /* TEXT */))
2560
+ ? (openBlock(), createElementBlock("span", _hoisted_5$8, toDisplayString(_ctx.errorText), 1 /* TEXT */))
2561
2561
  : (openBlock(), createElementBlock("span", _hoisted_6$7, "Unexpected Error Occurred")),
2562
2562
  createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2563
2563
  ]))
@@ -2755,10 +2755,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2755
2755
  ], 64 /* STABLE_FRAGMENT */))
2756
2756
  }
2757
2757
 
2758
- script$t.render = render$4;
2759
- script$t.__file = "src/lib/components/ShForm.vue";
2758
+ script$s.render = render$2;
2759
+ script$s.__file = "src/lib/components/ShForm.vue";
2760
2760
 
2761
- var script$s = {
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$s.__file = "src/lib/components/form-components/EmailInput.vue";
2801
+ script$r.__file = "src/lib/components/form-components/EmailInput.vue";
2802
2802
 
2803
- const _hoisted_1$l = ["min", "max"];
2803
+ const _hoisted_1$k = ["min", "max"];
2804
2804
 
2805
2805
 
2806
- var script$r = {
2806
+ var script$q = {
2807
2807
  __name: 'NumberInput',
2808
2808
  props: ['modelValue','label','min','max'],
2809
2809
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2837,7 +2837,7 @@ return (_ctx, _cache) => {
2837
2837
  onChange: modelValueUpdated,
2838
2838
  onKeydown: modelValueUpdated,
2839
2839
  onUpdated: modelValueUpdated
2840
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$l)), [
2840
+ }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1$k)), [
2841
2841
  [vModelText, inputModel.value]
2842
2842
  ])
2843
2843
  }
@@ -2845,9 +2845,9 @@ return (_ctx, _cache) => {
2845
2845
 
2846
2846
  };
2847
2847
 
2848
- script$r.__file = "src/lib/components/form-components/NumberInput.vue";
2848
+ script$q.__file = "src/lib/components/form-components/NumberInput.vue";
2849
2849
 
2850
- var script$q = {
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$q.__file = "src/lib/components/form-components/TextInput.vue";
2892
+ script$p.__file = "src/lib/components/form-components/TextInput.vue";
2893
2893
 
2894
- var script$p = {
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$p.__file = "src/lib/components/form-components/TextAreaInput.vue";
2934
+ script$o.__file = "src/lib/components/form-components/TextAreaInput.vue";
2935
2935
 
2936
- const _hoisted_1$k = ["value"];
2936
+ const _hoisted_1$j = ["value"];
2937
2937
 
2938
2938
 
2939
- var script$o = {
2939
+ var script$n = {
2940
2940
  __name: 'SelectInput',
2941
2941
  props: ['modelValue','label','data','dataUrl'],
2942
2942
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2991,7 +2991,7 @@ return (_ctx, _cache) => {
2991
2991
  return (openBlock(), createElementBlock("option", {
2992
2992
  key: option.id,
2993
2993
  value: option.id
2994
- }, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$k))
2994
+ }, toDisplayString(option.name), 9 /* TEXT, PROPS */, _hoisted_1$j))
2995
2995
  }), 128 /* KEYED_FRAGMENT */))
2996
2996
  ], 544 /* HYDRATE_EVENTS, NEED_PATCH */)), [
2997
2997
  [vModelSelect, inputModel.value]
@@ -3001,9 +3001,9 @@ return (_ctx, _cache) => {
3001
3001
 
3002
3002
  };
3003
3003
 
3004
- script$o.__file = "src/lib/components/form-components/SelectInput.vue";
3004
+ script$n.__file = "src/lib/components/form-components/SelectInput.vue";
3005
3005
 
3006
- var script$n = {
3006
+ var script$m = {
3007
3007
  __name: 'PasswordInput',
3008
3008
  props: ['modelValue','label'],
3009
3009
  emits: ['update:modelValue','clearValidationErrors'],
@@ -3039,13 +3039,13 @@ return (_ctx, _cache) => {
3039
3039
 
3040
3040
  };
3041
3041
 
3042
- script$n.__file = "src/lib/components/form-components/PasswordInput.vue";
3042
+ script$m.__file = "src/lib/components/form-components/PasswordInput.vue";
3043
3043
 
3044
- const _hoisted_1$j = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HOISTED */);
3045
- const _hoisted_2$c = ["onUpdate:modelValue"];
3046
- const _hoisted_3$b = ["innerHTML"];
3047
- const _hoisted_4$b = ["innerHTML"];
3048
- const _hoisted_5$8 = ["innerHTML"];
3044
+ const _hoisted_1$i = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HOISTED */);
3045
+ const _hoisted_2$b = ["onUpdate:modelValue"];
3046
+ const _hoisted_3$a = ["innerHTML"];
3047
+ const _hoisted_4$a = ["innerHTML"];
3048
+ const _hoisted_5$7 = ["innerHTML"];
3049
3049
  const _hoisted_6$6 = ["disabled"];
3050
3050
  const _hoisted_7$5 = {
3051
3051
  key: 0,
@@ -3056,7 +3056,7 @@ const _hoisted_7$5 = {
3056
3056
  const _hoisted_8$4 = { key: 1 };
3057
3057
 
3058
3058
 
3059
- var script$m = {
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$q;
3093
- const TextAreaComponent = formComponents.textArea ?? script$p;
3094
- const EmailComponent = formComponents.email ?? script$s;
3095
- const PhoneComponent = formComponents.phone ?? script$v;
3096
- const NumberComponent = formComponents.number ?? script$r;
3097
- const SelectComponent = formComponents.select ?? script$o;
3098
- const PasswordComponent = formComponents.password ?? script$n;
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$p
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$s
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$v
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$r
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$q
3128
+ return formComponents.text ?? script$p
3129
3129
  };
3130
3130
  const shFormElementClasses = ref(null);
3131
3131
  shFormElementClasses.value = inject('shFormElementClasses');
@@ -3263,7 +3263,7 @@ onMounted((ev)=>{
3263
3263
 
3264
3264
  return (_ctx, _cache) => {
3265
3265
  return (openBlock(), createElementBlock(Fragment, null, [
3266
- _hoisted_1$j,
3266
+ _hoisted_1$i,
3267
3267
  createElementVNode("form", {
3268
3268
  class: normalizeClass([__props.formClass, "sh-form"]),
3269
3269
  ref_key: "shAutoForm",
@@ -3280,7 +3280,7 @@ return (_ctx, _cache) => {
3280
3280
  key: 0,
3281
3281
  type: "hidden",
3282
3282
  "onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
3283
- }, null, 8 /* PROPS */, _hoisted_2$c)), [
3283
+ }, null, 8 /* PROPS */, _hoisted_2$b)), [
3284
3284
  [vModelText, formFields.value[index].value]
3285
3285
  ])
3286
3286
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -3289,7 +3289,7 @@ return (_ctx, _cache) => {
3289
3289
  key: 0,
3290
3290
  class: normalizeClass(getElementClass('formLabel')),
3291
3291
  innerHTML: field.label
3292
- }, null, 10 /* CLASS, PROPS */, _hoisted_3$b))
3292
+ }, null, 10 /* CLASS, PROPS */, _hoisted_3$a))
3293
3293
  : createCommentVNode("v-if", true),
3294
3294
  (openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(getComponentProps(field), {
3295
3295
  isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
@@ -3303,14 +3303,14 @@ return (_ctx, _cache) => {
3303
3303
  key: 1,
3304
3304
  class: normalizeClass(getElementClass('formLabel')),
3305
3305
  innerHTML: field.label
3306
- }, null, 10 /* CLASS, PROPS */, _hoisted_4$b))
3306
+ }, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
3307
3307
  : createCommentVNode("v-if", true),
3308
3308
  (field.helper)
3309
3309
  ? (openBlock(), createElementBlock("div", {
3310
3310
  key: 2,
3311
3311
  class: normalizeClass(getElementClass('helperText')),
3312
3312
  innerHTML: field.helper
3313
- }, null, 10 /* CLASS, PROPS */, _hoisted_5$8))
3313
+ }, null, 10 /* CLASS, PROPS */, _hoisted_5$7))
3314
3314
  : createCommentVNode("v-if", true),
3315
3315
  (validationErrors.value[field.field])
3316
3316
  ? (openBlock(), createElementBlock("div", {
@@ -3346,12 +3346,12 @@ return (_ctx, _cache) => {
3346
3346
 
3347
3347
  };
3348
3348
 
3349
- script$m.__file = "src/lib/components/ShAutoForm.vue";
3349
+ script$l.__file = "src/lib/components/ShAutoForm.vue";
3350
3350
 
3351
- const _hoisted_1$i = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
3352
- const _hoisted_2$b = { class: "dropdown" };
3351
+ const _hoisted_1$h = /*#__PURE__*/createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
3352
+ const _hoisted_2$a = { class: "dropdown" };
3353
3353
 
3354
- var script$l = {
3354
+ var script$k = {
3355
3355
  __name: 'ShDropDownForm',
3356
3356
  props: ['action',
3357
3357
  'classes',
@@ -3381,8 +3381,8 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
3381
3381
 
3382
3382
  return (_ctx, _cache) => {
3383
3383
  return (openBlock(), createElementBlock(Fragment, null, [
3384
- _hoisted_1$i,
3385
- createElementVNode("div", _hoisted_2$b, [
3384
+ _hoisted_1$h,
3385
+ createElementVNode("div", _hoisted_2$a, [
3386
3386
  createElementVNode("a", {
3387
3387
  class: normalizeClass(unref(btnClass)),
3388
3388
  href: "#",
@@ -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$t, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
3401
+ createVNode(script$s, normalizeProps(guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
3402
3402
  ])
3403
3403
  ])
3404
3404
  ], 64 /* STABLE_FRAGMENT */))
@@ -3407,13 +3407,13 @@ return (_ctx, _cache) => {
3407
3407
 
3408
3408
  };
3409
3409
 
3410
- script$l.__file = "src/lib/components/ShDropDownForm.vue";
3410
+ script$k.__file = "src/lib/components/ShDropDownForm.vue";
3411
3411
 
3412
- const _hoisted_1$h = ["id"];
3413
- const _hoisted_2$a = { class: "modal-content" };
3414
- const _hoisted_3$a = { class: "modal-header" };
3415
- const _hoisted_4$a = { class: "modal-title" };
3416
- const _hoisted_5$7 = /*#__PURE__*/createElementVNode("button", {
3412
+ const _hoisted_1$g = ["id"];
3413
+ const _hoisted_2$9 = { class: "modal-content" };
3414
+ const _hoisted_3$9 = { class: "modal-header" };
3415
+ const _hoisted_4$9 = { class: "modal-title" };
3416
+ const _hoisted_5$6 = /*#__PURE__*/createElementVNode("button", {
3417
3417
  class: "btn btn-danger btn-sm",
3418
3418
  "data-bs-dismiss": "modal",
3419
3419
  "data-dismiss": "modal"
@@ -3421,7 +3421,7 @@ const _hoisted_5$7 = /*#__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$k = {
3424
+ var script$j = {
3425
3425
  __name: 'ShModal',
3426
3426
  props: {
3427
3427
  modalId: {
@@ -3458,10 +3458,10 @@ return (_ctx, _cache) => {
3458
3458
  createElementVNode("div", {
3459
3459
  class: normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
3460
3460
  }, [
3461
- createElementVNode("div", _hoisted_2$a, [
3462
- createElementVNode("div", _hoisted_3$a, [
3463
- createElementVNode("h3", _hoisted_4$a, toDisplayString(__props.modalTitle), 1 /* TEXT */),
3464
- _hoisted_5$7
3461
+ createElementVNode("div", _hoisted_2$9, [
3462
+ createElementVNode("div", _hoisted_3$9, [
3463
+ createElementVNode("h3", _hoisted_4$9, toDisplayString(__props.modalTitle), 1 /* TEXT */),
3464
+ _hoisted_5$6
3465
3465
  ]),
3466
3466
  createElementVNode("div", _hoisted_6$5, [
3467
3467
  createElementVNode("div", _hoisted_7$4, [
@@ -3470,17 +3470,17 @@ return (_ctx, _cache) => {
3470
3470
  ])
3471
3471
  ])
3472
3472
  ], 2 /* CLASS */)
3473
- ], 8 /* PROPS */, _hoisted_1$h))
3473
+ ], 8 /* PROPS */, _hoisted_1$g))
3474
3474
  }
3475
3475
  }
3476
3476
 
3477
3477
  };
3478
3478
 
3479
- script$k.__file = "src/lib/components/ShModal.vue";
3479
+ script$j.__file = "src/lib/components/ShModal.vue";
3480
3480
 
3481
- const _hoisted_1$g = ["href"];
3481
+ const _hoisted_1$f = ["href"];
3482
3482
 
3483
- var script$j = {
3483
+ var script$i = {
3484
3484
  __name: 'ShModalForm',
3485
3485
  props: ['action',
3486
3486
  'classes',
@@ -3519,13 +3519,13 @@ return (_ctx, _cache) => {
3519
3519
  "data-bs-toggle": "modal"
3520
3520
  }, [
3521
3521
  renderSlot(_ctx.$slots, "default")
3522
- ], 10 /* CLASS, PROPS */, _hoisted_1$g),
3523
- createVNode(script$k, {
3522
+ ], 10 /* CLASS, PROPS */, _hoisted_1$f),
3523
+ createVNode(script$j, {
3524
3524
  "modal-id": modalId,
3525
3525
  "modal-title": __props.modalTitle
3526
3526
  }, {
3527
3527
  default: withCtx(() => [
3528
- createVNode(script$t, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
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$j.__file = "src/lib/components/ShModalForm.vue";
3538
+ script$i.__file = "src/lib/components/ShModalForm.vue";
3539
3539
 
3540
- const _hoisted_1$f = ["href"];
3540
+ const _hoisted_1$e = ["href"];
3541
3541
 
3542
- var script$i = {
3542
+ var script$h = {
3543
3543
  __name: 'ShModalFormAuto',
3544
3544
  props: ['action',
3545
3545
  'classes',
@@ -3579,13 +3579,13 @@ return (_ctx, _cache) => {
3579
3579
  "data-bs-toggle": "modal"
3580
3580
  }, [
3581
3581
  renderSlot(_ctx.$slots, "default")
3582
- ], 10 /* CLASS, PROPS */, _hoisted_1$f),
3583
- createVNode(script$k, {
3582
+ ], 10 /* CLASS, PROPS */, _hoisted_1$e),
3583
+ createVNode(script$j, {
3584
3584
  "modal-id": modalId,
3585
3585
  "modal-title": __props.modalTitle
3586
3586
  }, {
3587
3587
  default: withCtx(() => [
3588
- createVNode(script$m, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
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,17 +3595,17 @@ return (_ctx, _cache) => {
3595
3595
 
3596
3596
  };
3597
3597
 
3598
- script$i.__file = "src/lib/components/ShModalFormAuto.vue";
3598
+ script$h.__file = "src/lib/components/ShModalFormAuto.vue";
3599
3599
 
3600
- const _hoisted_1$e = ["id"];
3601
- const _hoisted_2$9 = { class: "offcanvas-header" };
3602
- const _hoisted_3$9 = {
3600
+ const _hoisted_1$d = ["id"];
3601
+ const _hoisted_2$8 = { class: "offcanvas-header" };
3602
+ const _hoisted_3$8 = {
3603
3603
  class: "offcanvas-title",
3604
3604
  id: "offcanvasScrollingLabel"
3605
3605
  };
3606
- const _hoisted_4$9 = { class: "offcanvas-body" };
3606
+ const _hoisted_4$8 = { class: "offcanvas-body" };
3607
3607
 
3608
- var script$h = {
3608
+ var script$g = {
3609
3609
  __name: 'ShCanvas',
3610
3610
  props: {
3611
3611
  canvasId: {
@@ -3650,8 +3650,8 @@ return (_ctx, _cache) => {
3650
3650
  id: __props.canvasId,
3651
3651
  "aria-labelledby": "offcanvasScrollingLabel"
3652
3652
  }, [
3653
- createElementVNode("div", _hoisted_2$9, [
3654
- createElementVNode("h5", _hoisted_3$9, toDisplayString(__props.canvasTitle), 1 /* TEXT */),
3653
+ createElementVNode("div", _hoisted_2$8, [
3654
+ createElementVNode("h5", _hoisted_3$8, toDisplayString(__props.canvasTitle), 1 /* TEXT */),
3655
3655
  createElementVNode("button", {
3656
3656
  type: "button",
3657
3657
  ref: "closecanvas",
@@ -3661,18 +3661,18 @@ return (_ctx, _cache) => {
3661
3661
  "aria-label": "Close"
3662
3662
  }, null, 512 /* NEED_PATCH */)
3663
3663
  ]),
3664
- createElementVNode("div", _hoisted_4$9, [
3664
+ createElementVNode("div", _hoisted_4$8, [
3665
3665
  renderSlot(_ctx.$slots, "default")
3666
3666
  ])
3667
- ], 10 /* CLASS, PROPS */, _hoisted_1$e))
3667
+ ], 10 /* CLASS, PROPS */, _hoisted_1$d))
3668
3668
  }
3669
3669
  }
3670
3670
 
3671
3671
  };
3672
3672
 
3673
- script$h.__file = "src/lib/components/ShCanvas.vue";
3673
+ script$g.__file = "src/lib/components/ShCanvas.vue";
3674
3674
 
3675
- var script$g = {
3675
+ var script$f = {
3676
3676
  name: 'Pagination',
3677
3677
  props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
3678
3678
  data () {
@@ -3743,12 +3743,12 @@ var script$g = {
3743
3743
  }
3744
3744
  };
3745
3745
 
3746
- const _hoisted_1$d = { key: 0 };
3747
- const _hoisted_2$8 = { class: "record_count_body mb-3" };
3748
- const _hoisted_3$8 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
3749
- const _hoisted_4$8 = /*#__PURE__*/createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
3746
+ const _hoisted_1$c = { key: 0 };
3747
+ const _hoisted_2$7 = { class: "record_count_body mb-3" };
3748
+ const _hoisted_3$7 = /*#__PURE__*/createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
3749
+ const _hoisted_4$7 = /*#__PURE__*/createStaticVNode("<option value=\"10\">10</option><option value=\"25\">25</option><option value=\"50\">50</option><option value=\"100\">100</option><option value=\"200\">200</option>", 5);
3750
3750
  const _hoisted_9$4 = [
3751
- _hoisted_4$8
3751
+ _hoisted_4$7
3752
3752
  ];
3753
3753
  const _hoisted_10$3 = { class: "record_counts" };
3754
3754
  const _hoisted_11$2 = {
@@ -3791,11 +3791,11 @@ const _hoisted_23$1 = {
3791
3791
  class: "spinner-border"
3792
3792
  };
3793
3793
 
3794
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3794
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3795
3795
  return ($props.paginationStyle !== 'loadMore')
3796
- ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
3797
- createElementVNode("div", _hoisted_2$8, [
3798
- _hoisted_3$8,
3796
+ ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
3797
+ createElementVNode("div", _hoisted_2$7, [
3798
+ _hoisted_3$7,
3799
3799
  createTextVNode("  "),
3800
3800
  withDirectives(createElementVNode("select", {
3801
3801
  class: "select_per_page",
@@ -3868,17 +3868,17 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3868
3868
  ]))
3869
3869
  }
3870
3870
 
3871
- script$g.render = render$3;
3872
- script$g.__file = "src/lib/components/list_templates/Pagination.vue";
3871
+ script$f.render = render$1;
3872
+ script$f.__file = "src/lib/components/list_templates/Pagination.vue";
3873
3873
 
3874
- const _hoisted_1$c = /*#__PURE__*/createElementVNode("span", {
3874
+ const _hoisted_1$b = /*#__PURE__*/createElementVNode("span", {
3875
3875
  class: "spinner-border spinner-border-sm me-1",
3876
3876
  role: "status",
3877
3877
  "aria-hidden": "true"
3878
3878
  }, null, -1 /* HOISTED */);
3879
3879
 
3880
3880
 
3881
- var script$f = {
3881
+ var script$e = {
3882
3882
  __name: 'ShConfirmAction',
3883
3883
  props: {
3884
3884
  data: Object,
@@ -3951,7 +3951,7 @@ return (_ctx, _cache) => {
3951
3951
  }, [
3952
3952
  (processing.value)
3953
3953
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
3954
- _hoisted_1$c,
3954
+ _hoisted_1$b,
3955
3955
  createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
3956
3956
  ], 64 /* STABLE_FRAGMENT */))
3957
3957
  : createCommentVNode("v-if", true),
@@ -3964,15 +3964,15 @@ return (_ctx, _cache) => {
3964
3964
 
3965
3965
  };
3966
3966
 
3967
- script$f.__file = "src/lib/components/ShConfirmAction.vue";
3967
+ script$e.__file = "src/lib/components/ShConfirmAction.vue";
3968
3968
 
3969
- const _hoisted_1$b = /*#__PURE__*/createElementVNode("span", {
3969
+ const _hoisted_1$a = /*#__PURE__*/createElementVNode("span", {
3970
3970
  class: "spinner-border spinner-border-sm me-1",
3971
3971
  role: "status",
3972
3972
  "aria-hidden": "true"
3973
3973
  }, null, -1 /* HOISTED */);
3974
3974
 
3975
- var script$e = {
3975
+ var script$d = {
3976
3976
  __name: 'ShSilentAction',
3977
3977
  props: {
3978
3978
  data: Object,
@@ -4047,7 +4047,7 @@ return (_ctx, _cache) => {
4047
4047
  }, [
4048
4048
  (processing.value)
4049
4049
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4050
- _hoisted_1$b,
4050
+ _hoisted_1$a,
4051
4051
  createElementVNode("span", null, toDisplayString(__props.loadingMessage), 1 /* TEXT */)
4052
4052
  ], 64 /* STABLE_FRAGMENT */))
4053
4053
  : createCommentVNode("v-if", true),
@@ -4060,9 +4060,9 @@ return (_ctx, _cache) => {
4060
4060
 
4061
4061
  };
4062
4062
 
4063
- script$e.__file = "src/lib/components/ShSilentAction.vue";
4063
+ script$d.__file = "src/lib/components/ShSilentAction.vue";
4064
4064
 
4065
- var script$d = {
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$d = {
4317
4317
  this.reloadData();
4318
4318
  },
4319
4319
  components: {
4320
- ShSilentAction: script$e,
4321
- ShConfirmAction: script$f,
4322
- ShCanvas: script$h,
4323
- pagination: script$g
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 () {
@@ -4338,14 +4338,14 @@ var script$d = {
4338
4338
  }
4339
4339
  };
4340
4340
 
4341
- const _hoisted_1$a = { class: "auto-table mt-2" };
4342
- const _hoisted_2$7 = {
4341
+ const _hoisted_1$9 = { class: "auto-table mt-2" };
4342
+ const _hoisted_2$6 = {
4343
4343
  key: 0,
4344
4344
  class: "col-md-4 mb-2"
4345
4345
  };
4346
- const _hoisted_3$7 = ["disabled"];
4347
- const _hoisted_4$7 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
4348
- const _hoisted_5$6 = /*#__PURE__*/createElementVNode("span", {
4346
+ const _hoisted_3$6 = ["disabled"];
4347
+ const _hoisted_4$6 = /*#__PURE__*/createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
4348
+ const _hoisted_5$5 = /*#__PURE__*/createElementVNode("span", {
4349
4349
  class: "spinner-border spinner-border-sm",
4350
4350
  role: "status",
4351
4351
  "aria-hidden": "true"
@@ -4494,16 +4494,16 @@ const _hoisted_63 = { key: 0 };
4494
4494
  const _hoisted_64 = ["href"];
4495
4495
  const _hoisted_65 = ["title", "onClick"];
4496
4496
 
4497
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4497
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
4498
4498
  const _component_router_link = resolveComponent("router-link");
4499
4499
  const _component_sh_confirm_action = resolveComponent("sh-confirm-action");
4500
4500
  const _component_sh_silent_action = resolveComponent("sh-silent-action");
4501
4501
  const _component_pagination = resolveComponent("pagination");
4502
4502
  const _component_sh_canvas = resolveComponent("sh-canvas");
4503
4503
 
4504
- return (openBlock(), createElementBlock("div", _hoisted_1$a, [
4504
+ return (openBlock(), createElementBlock("div", _hoisted_1$9, [
4505
4505
  ($props.hasDownload)
4506
- ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
4506
+ ? (openBlock(), createElementBlock("div", _hoisted_2$6, [
4507
4507
  createElementVNode("button", {
4508
4508
  disabled: $data.downloading,
4509
4509
  class: "btn btn-warning btn-sm",
@@ -4511,14 +4511,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4511
4511
  }, [
4512
4512
  (!$data.downloading)
4513
4513
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4514
- _hoisted_4$7,
4514
+ _hoisted_4$6,
4515
4515
  createTextVNode(" Export ")
4516
4516
  ], 64 /* STABLE_FRAGMENT */))
4517
4517
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
4518
- _hoisted_5$6,
4518
+ _hoisted_5$5,
4519
4519
  _hoisted_6$4
4520
4520
  ], 64 /* STABLE_FRAGMENT */))
4521
- ], 8 /* PROPS */, _hoisted_3$7)
4521
+ ], 8 /* PROPS */, _hoisted_3$6)
4522
4522
  ]))
4523
4523
  : createCommentVNode("v-if", true),
4524
4524
  (!$props.hideSearch)
@@ -4954,10 +4954,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4954
4954
  ]))
4955
4955
  }
4956
4956
 
4957
- script$d.render = render$2;
4958
- script$d.__file = "src/lib/components/ShTable.vue";
4957
+ script$c.render = render;
4958
+ script$c.__file = "src/lib/components/ShTable.vue";
4959
4959
 
4960
- var script$c = {
4960
+ var script$b = {
4961
4961
  __name: 'ShTabs',
4962
4962
  props: {
4963
4963
  tabs: {
@@ -5102,18 +5102,18 @@ return (_ctx, _cache) => {
5102
5102
 
5103
5103
  };
5104
5104
 
5105
- script$c.__file = "src/lib/components/ShTabs.vue";
5105
+ script$b.__file = "src/lib/components/ShTabs.vue";
5106
5106
 
5107
- const _hoisted_1$9 = {
5107
+ const _hoisted_1$8 = {
5108
5108
  class: "nav-item",
5109
5109
  role: "presentation"
5110
5110
  };
5111
- const _hoisted_2$6 = ["onClick"];
5112
- const _hoisted_3$6 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5113
- const _hoisted_4$6 = { class: "sh_tab_count" };
5114
- const _hoisted_5$5 = { class: "tab-content" };
5111
+ const _hoisted_2$5 = ["onClick"];
5112
+ const _hoisted_3$5 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5113
+ const _hoisted_4$5 = { class: "sh_tab_count" };
5114
+ const _hoisted_5$4 = { class: "tab-content" };
5115
5115
 
5116
- var script$b = {
5116
+ var script$a = {
5117
5117
  __name: 'ShDynamicTabs',
5118
5118
  props: ['tabs','data'],
5119
5119
  setup(__props) {
@@ -5143,7 +5143,7 @@ return (_ctx, _cache) => {
5143
5143
  role: "tablist"
5144
5144
  }, [
5145
5145
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
5146
- return (openBlock(), createElementBlock("li", _hoisted_1$9, [
5146
+ return (openBlock(), createElementBlock("li", _hoisted_1$8, [
5147
5147
  createElementVNode("button", {
5148
5148
  onClick: $event => (setTab(tab)),
5149
5149
  class: normalizeClass(["nav-link", unref(currentTab) === tab ? 'active':''])
@@ -5151,15 +5151,15 @@ return (_ctx, _cache) => {
5151
5151
  createTextVNode(toDisplayString(tab.label) + " ", 1 /* TEXT */),
5152
5152
  (tab.count || tab.tabCount)
5153
5153
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5154
- _hoisted_3$6,
5155
- createElementVNode("sup", _hoisted_4$6, toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
5154
+ _hoisted_3$5,
5155
+ createElementVNode("sup", _hoisted_4$5, toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
5156
5156
  ], 64 /* STABLE_FRAGMENT */))
5157
5157
  : createCommentVNode("v-if", true)
5158
- ], 10 /* CLASS, PROPS */, _hoisted_2$6)
5158
+ ], 10 /* CLASS, PROPS */, _hoisted_2$5)
5159
5159
  ]))
5160
5160
  }), 256 /* UNKEYED_FRAGMENT */))
5161
5161
  ], 2 /* CLASS */),
5162
- createElementVNode("div", _hoisted_5$5, [
5162
+ createElementVNode("div", _hoisted_5$4, [
5163
5163
  (unref(currentTab))
5164
5164
  ? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component), normalizeProps(mergeProps({ key: 0 }, unref(currentTab))), null, 16 /* FULL_PROPS */))
5165
5165
  : createCommentVNode("v-if", true)
@@ -5170,12 +5170,12 @@ return (_ctx, _cache) => {
5170
5170
 
5171
5171
  };
5172
5172
 
5173
- script$b.__file = "src/lib/components/ShDynamicTabs.vue";
5173
+ script$a.__file = "src/lib/components/ShDynamicTabs.vue";
5174
5174
 
5175
- const _hoisted_1$8 = ["href"];
5175
+ const _hoisted_1$7 = ["href"];
5176
5176
 
5177
5177
 
5178
- var script$a = {
5178
+ var script$9 = {
5179
5179
  __name: 'ShModalBtn',
5180
5180
  props: {
5181
5181
  modalId: {
@@ -5192,18 +5192,18 @@ return (_ctx, _cache) => {
5192
5192
  "data-bs-toggle": "modal"
5193
5193
  }, [
5194
5194
  renderSlot(_ctx.$slots, "default")
5195
- ], 8 /* PROPS */, _hoisted_1$8))
5195
+ ], 8 /* PROPS */, _hoisted_1$7))
5196
5196
  }
5197
5197
  }
5198
5198
 
5199
5199
  };
5200
5200
 
5201
- script$a.__file = "src/lib/components/ShModalBtn.vue";
5201
+ script$9.__file = "src/lib/components/ShModalBtn.vue";
5202
5202
 
5203
- const _hoisted_1$7 = ["href"];
5203
+ const _hoisted_1$6 = ["href"];
5204
5204
 
5205
5205
 
5206
- var script$9 = {
5206
+ var script$8 = {
5207
5207
  __name: 'ShCanvasBtn',
5208
5208
  props: {
5209
5209
  canvasId: {
@@ -5221,13 +5221,13 @@ return (_ctx, _cache) => {
5221
5221
  "data-bs-toggle": "offcanvas"
5222
5222
  }, [
5223
5223
  renderSlot(_ctx.$slots, "default")
5224
- ], 8 /* PROPS */, _hoisted_1$7))
5224
+ ], 8 /* PROPS */, _hoisted_1$6))
5225
5225
  }
5226
5226
  }
5227
5227
 
5228
5228
  };
5229
5229
 
5230
- script$9.__file = "src/lib/components/ShCanvasBtn.vue";
5230
+ script$8.__file = "src/lib/components/ShCanvasBtn.vue";
5231
5231
 
5232
5232
  const useUserStore = defineStore('user-store', {
5233
5233
  state: () => ({
@@ -5326,18 +5326,18 @@ const useUserStore = defineStore('user-store', {
5326
5326
  });
5327
5327
 
5328
5328
  const _withScopeId$1 = n => (pushScopeId("data-v-0d4fa0ac"),n=n(),popScopeId(),n);
5329
- const _hoisted_1$6 = { class: "row permissions-main d-flex" };
5330
- const _hoisted_2$5 = {
5329
+ const _hoisted_1$5 = { class: "row permissions-main d-flex" };
5330
+ const _hoisted_2$4 = {
5331
5331
  id: "permissions-nav",
5332
5332
  class: "col-md-3 d-flex align-items-center py-4"
5333
5333
  };
5334
- const _hoisted_3$5 = {
5334
+ const _hoisted_3$4 = {
5335
5335
  key: 0,
5336
5336
  class: "mx-auto"
5337
5337
  };
5338
- const _hoisted_4$5 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
5339
- const _hoisted_5$4 = [
5340
- _hoisted_4$5
5338
+ const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
5339
+ const _hoisted_5$3 = [
5340
+ _hoisted_4$4
5341
5341
  ];
5342
5342
  const _hoisted_6$3 = {
5343
5343
  key: 1,
@@ -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$8 = {
5369
+ var script$7 = {
5370
5370
  __name: 'ManagePermissions',
5371
5371
  emits: ['success'],
5372
5372
  setup(__props, { emit }) {
@@ -5470,10 +5470,10 @@ const getPermissionStyle = permission => {
5470
5470
  };
5471
5471
 
5472
5472
  return (_ctx, _cache) => {
5473
- return (openBlock(), createElementBlock("div", _hoisted_1$6, [
5474
- createElementVNode("div", _hoisted_2$5, [
5473
+ return (openBlock(), createElementBlock("div", _hoisted_1$5, [
5474
+ createElementVNode("div", _hoisted_2$4, [
5475
5475
  (loadingModules.value)
5476
- ? (openBlock(), createElementBlock("div", _hoisted_3$5, _hoisted_5$4))
5476
+ ? (openBlock(), createElementBlock("div", _hoisted_3$4, _hoisted_5$3))
5477
5477
  : (openBlock(), createElementBlock("ul", _hoisted_6$3, [
5478
5478
  (openBlock(true), createElementBlock(Fragment, null, renderList(modules.value, (module) => {
5479
5479
  return (openBlock(), createElementBlock("li", {
@@ -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$e, {
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$8.__scopeId = "data-v-0d4fa0ac";
5552
- script$8.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
5551
+ script$7.__scopeId = "data-v-0d4fa0ac";
5552
+ script$7.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
5553
5553
 
5554
- const _hoisted_1$5 = ["href"];
5554
+ const _hoisted_1$4 = ["href"];
5555
5555
 
5556
5556
 
5557
- var script$7 = {
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();
@@ -5582,7 +5584,7 @@ watch(() => route.meta, meta => {
5582
5584
  //no pop up, check if we have any unclosed backdrop
5583
5585
  setTimeout(() => {
5584
5586
  closeOrphanedBackdrops();
5585
- }, 100);
5587
+ }, 500);
5586
5588
  }
5587
5589
  });
5588
5590
  const closeOrphanedBackdrops = () => {
@@ -5633,10 +5635,11 @@ return (_ctx, _cache) => {
5633
5635
  href: '#' + unref(canvasId),
5634
5636
  shallowRef: "canvasButton",
5635
5637
  class: "d-none"
5636
- }, "Open Modal", 8 /* PROPS */, _hoisted_1$5),
5638
+ }, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
5637
5639
  (popUp.value === 'modal')
5638
- ? (openBlock(), createBlock(script$k, {
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$h, {
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,56 +5669,56 @@ return (_ctx, _cache) => {
5665
5669
 
5666
5670
  };
5667
5671
 
5668
- script$7.__file = "src/lib/components/popups/ShRoutePopups.vue";
5672
+ script$6.__file = "src/lib/components/popups/ShRoutePopups.vue";
5669
5673
 
5670
- const _hoisted_1$4 = { class: "alert alert-info" };
5671
- const _hoisted_2$4 = /*#__PURE__*/createElementVNode("span", { class: "spinner-border" }, null, -1 /* HOISTED */);
5672
- const _hoisted_3$4 = /*#__PURE__*/createElementVNode("span", null, "Loading", -1 /* HOISTED */);
5673
- const _hoisted_4$4 = [
5674
- _hoisted_2$4,
5675
- _hoisted_3$4
5676
- ];
5677
-
5678
- function render$1(_ctx, _cache) {
5679
- return (openBlock(), createElementBlock("div", _hoisted_1$4, _hoisted_4$4))
5680
- }
5681
-
5682
- const script$6 = {};
5674
+ var script$5 = {
5675
+ __name: 'ShQueryForm',
5676
+ setup(__props) {
5683
5677
 
5678
+ const route = useRoute();
5684
5679
 
5685
- script$6.render = render$1;
5686
- script$6.__file = "src/lib/components/popups/etc/PopupLoading.vue";
5680
+ const fields = route.query.fields.split(',');
5681
+ const action = route.query.action;
5687
5682
 
5688
- function render(_ctx, _cache) {
5689
- return (openBlock(), createElementBlock("h5", null, "Error loading popup"))
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
+ }
5690
5689
  }
5691
5690
 
5692
- const script$5 = {};
5693
-
5691
+ };
5694
5692
 
5695
- script$5.render = render;
5696
- script$5.__file = "src/lib/components/popups/etc/ErrorLoadingPopup.vue";
5693
+ script$5.__file = "src/lib/components/ShQueryForm.vue";
5697
5694
 
5698
5695
  var script$4 = {
5699
5696
  __name: 'ShQueryPopups',
5700
5697
  setup(__props) {
5701
5698
 
5702
5699
  const route = useRoute();
5703
- const popUp = ref(route.meta.popUp);
5700
+ const popUp = ref(route.query.popUp);
5704
5701
  const modalId = _.uniqueId('modal_');
5705
5702
  const canvasId = _.uniqueId('canvas_');
5706
- let PopupComponent = ref(null);
5703
+ let popupComponent = ref(null);
5707
5704
  ref(null);
5708
5705
  const router = useRouter();
5709
5706
  const position = ref(null);
5710
5707
  const size = ref(null);
5711
- const AsyncComp =ref(null);
5708
+ const title = ref(null);
5709
+ ref(null);
5710
+
5712
5711
  watch(() => route.query.popup, pop => {
5713
5712
  popUp.value = pop;
5714
5713
  position.value = route.query.position ?? route.query.side;
5715
5714
  size.value = route.query.size;
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;
5716
5721
  if (popUp.value) {
5717
- loadPopupComponent();
5718
5722
  setTimeout(() => {
5719
5723
  initPopup();
5720
5724
  }, 100);
@@ -5722,27 +5726,10 @@ watch(() => route.query.popup, pop => {
5722
5726
  //no pop up, check if we have any unclosed backdrop
5723
5727
  setTimeout(() => {
5724
5728
  closeOrphanedBackdrops();
5725
- }, 100);
5729
+ }, 500);
5726
5730
  }
5727
5731
  });
5728
- const loadPopupComponent = ()=>{
5729
- const component = route.query.comp || '';
5730
- PopupComponent.value = defineAsyncComponent({
5731
- // the loader function
5732
- loader: () => import(`../../../views/popups/${component}Popup.vue`),
5733
-
5734
- // A component to use while the async component is loading
5735
- loadingComponent: script$6,
5736
- // Delay before showing the loading component. Default: 200ms.
5737
- delay: 200,
5738
-
5739
- // A component to use if the load fails
5740
- errorComponent: script$5,
5741
- // The error component will be displayed if a timeout is
5742
- // provided and exceeded. Default: Infinity.
5743
- timeout: 3000
5744
- });
5745
- };
5732
+
5746
5733
  const closeOrphanedBackdrops = () => {
5747
5734
  const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
5748
5735
  if (offCanvasBackdrop) {
@@ -5787,30 +5774,31 @@ const goBack = () => {
5787
5774
  return (_ctx, _cache) => {
5788
5775
  return (openBlock(), createElementBlock(Fragment, null, [
5789
5776
  (popUp.value === 'modal')
5790
- ? (openBlock(), createBlock(script$k, {
5777
+ ? (openBlock(), createBlock(script$j, {
5791
5778
  key: 0,
5779
+ "modal-title": title.value,
5792
5780
  "modal-id": unref(modalId),
5793
5781
  "modal-size": size.value
5794
5782
  }, {
5795
5783
  default: withCtx(() => [
5796
- createVNode(unref(PopupComponent))
5784
+ (openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
5797
5785
  ]),
5798
5786
  _: 1 /* STABLE */
5799
- }, 8 /* PROPS */, ["modal-id", "modal-size"]))
5787
+ }, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
5800
5788
  : createCommentVNode("v-if", true),
5801
5789
  (['offcanvas','canvas','offCanvas'].includes(popUp.value))
5802
- ? (openBlock(), createBlock(script$h, {
5803
- key: 1,
5790
+ ? (openBlock(), createBlock(script$g, {
5791
+ "canvas-title": title.value,
5792
+ key: size.value + position.value,
5804
5793
  "canvas-id": unref(canvasId),
5805
5794
  "canvas-size": size.value,
5806
5795
  position: position.value
5807
5796
  }, {
5808
5797
  default: withCtx(() => [
5809
- createVNode(unref(PopupComponent)),
5810
- createVNode(unref(AsyncComp))
5798
+ (openBlock(), createBlock(resolveDynamicComponent(unref(popupComponent))))
5811
5799
  ]),
5812
5800
  _: 1 /* STABLE */
5813
- }, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
5801
+ }, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
5814
5802
  : createCommentVNode("v-if", true)
5815
5803
  ], 64 /* STABLE_FRAGMENT */))
5816
5804
  }
@@ -5831,7 +5819,7 @@ const _hoisted_3$3 = {
5831
5819
  "aria-expanded": "false"
5832
5820
  };
5833
5821
  const _hoisted_4$3 = /*#__PURE__*/createElementVNode("i", { class: "bi-calendar text-dark" }, null, -1 /* HOISTED */);
5834
- const _hoisted_5$3 = ["innerHTML"];
5822
+ const _hoisted_5$2 = ["innerHTML"];
5835
5823
  const _hoisted_6$2 = {
5836
5824
  class: "dropdown-menu",
5837
5825
  "aria-labelledby": "dropdownMenuLink"
@@ -5951,7 +5939,7 @@ return (_ctx, _cache) => {
5951
5939
  createElementVNode("div", _hoisted_3$3, [
5952
5940
  _hoisted_4$3,
5953
5941
  createTextVNode(),
5954
- createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$3)
5942
+ createElementVNode("span", { innerHTML: rangeLabel.value }, null, 8 /* PROPS */, _hoisted_5$2)
5955
5943
  ]),
5956
5944
  createElementVNode("ul", _hoisted_6$2, [
5957
5945
  (openBlock(true), createElementBlock(Fragment, null, renderList(dates.value, (date) => {
@@ -6001,16 +5989,33 @@ return (_ctx, _cache) => {
6001
5989
 
6002
5990
  script$3.__file = "src/lib/components/ShRange.vue";
6003
5991
 
5992
+ const useAppStore = defineStore('sh-app',{
5993
+ state: ()=>{
5994
+ return {
5995
+ refreshKey: 0,
5996
+ appData: {}
5997
+ }
5998
+ },
5999
+ actions: {
6000
+ refreshPage () {
6001
+ this.refreshKey++;
6002
+ return true
6003
+ },
6004
+ refresh () {
6005
+ this.refreshKey++;
6006
+ return true
6007
+ },
6008
+ reload () {
6009
+ this.refreshKey++;
6010
+ return true
6011
+ }
6012
+ }
6013
+ });
6014
+
6004
6015
  const _hoisted_1$2 = /*#__PURE__*/createElementVNode("h5", null, "Departments", -1 /* HOISTED */);
6005
6016
  const _hoisted_2$2 = { class: "card sh-departments-card shadow" };
6006
6017
  const _hoisted_3$2 = { class: "card-body" };
6007
- const _hoisted_4$2 = {
6008
- "data-bs-toggle": "modal",
6009
- ref: "addDeptBtn",
6010
- href: "#sh-department_modal",
6011
- class: "btn btn-info btn-sm"
6012
- };
6013
- const _hoisted_5$2 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
6018
+ const _hoisted_4$2 = /*#__PURE__*/createElementVNode("i", { class: "fa fa-plus" }, null, -1 /* HOISTED */);
6014
6019
 
6015
6020
 
6016
6021
  var script$2 = {
@@ -6025,21 +6030,40 @@ function departmentAdded (response) {
6025
6030
  reload.value += 1;
6026
6031
  }
6027
6032
 
6033
+ const department = ref(null);
6034
+ const editDepartment = dept=>{
6035
+ department.value = dept;
6036
+ if(dept) {
6037
+ new Modal(document.getElementById('sh_department_modal'),{}).show();
6038
+ }
6039
+ };
6040
+
6028
6041
  return (_ctx, _cache) => {
6029
6042
  return (openBlock(), createElementBlock(Fragment, null, [
6030
6043
  _hoisted_1$2,
6031
6044
  createElementVNode("div", _hoisted_2$2, [
6032
6045
  createElementVNode("div", _hoisted_3$2, [
6033
- createElementVNode("a", _hoisted_4$2, [
6034
- _hoisted_5$2,
6046
+ createElementVNode("a", {
6047
+ onClick: _cache[0] || (_cache[0] = $event => (editDepartment(null))),
6048
+ "data-bs-toggle": "modal",
6049
+ ref: "addDeptBtn",
6050
+ href: "#sh_department_modal",
6051
+ class: "btn btn-info btn-sm"
6052
+ }, [
6053
+ _hoisted_4$2,
6035
6054
  createTextVNode(" ADD DEPARTMENT")
6036
6055
  ], 512 /* NEED_PATCH */),
6037
- createVNode(script$d, {
6056
+ createVNode(script$c, {
6038
6057
  headers: ['id','name','description', 'created_at'],
6039
6058
  "end-point": "sh-departments/list",
6040
6059
  actions: {
6041
6060
  label: 'Action',
6042
6061
  actions: [
6062
+ {
6063
+ label: 'Edit',
6064
+ emits: editDepartment,
6065
+ class: 'btn btn-warning bi-pen btn-sm me-1'
6066
+ },
6043
6067
  {
6044
6068
  label: 'Permissions',
6045
6069
  path: '/sh-departments/manage-permissions/{id}',
@@ -6047,18 +6071,19 @@ return (_ctx, _cache) => {
6047
6071
  }
6048
6072
  ]
6049
6073
  }
6050
- }),
6051
- createVNode(script$k, {
6052
- "modal-id": "sh-department_modal",
6074
+ }, null, 8 /* PROPS */, ["actions"]),
6075
+ createVNode(script$j, {
6076
+ "modal-id": "sh_department_modal",
6053
6077
  "modal-title": "Department Form"
6054
6078
  }, {
6055
6079
  default: withCtx(() => [
6056
- createVNode(script$t, {
6080
+ createVNode(script$s, {
6057
6081
  "success-callback": "departmentAdded",
6082
+ "current-data": department.value,
6058
6083
  onDepartmentAdded: departmentAdded,
6059
6084
  action: "admin/departments/store",
6060
6085
  fields: ['name','description']
6061
- })
6086
+ }, null, 8 /* PROPS */, ["current-data"])
6062
6087
  ]),
6063
6088
  _: 1 /* STABLE */
6064
6089
  })
@@ -6187,7 +6212,7 @@ return (_ctx, _cache) => {
6187
6212
  createElementVNode("div", _hoisted_2$1, [
6188
6213
  _hoisted_3$1,
6189
6214
  createElementVNode("h5", null, "Department #" + toDisplayString(unref(department).id) + " - " + toDisplayString(unref(department).name) + " Allowed Modules", 1 /* TEXT */),
6190
- createVNode(script$d, {
6215
+ createVNode(script$c, {
6191
6216
  actions: {
6192
6217
  label: 'Actions',
6193
6218
  actions: [
@@ -6207,12 +6232,12 @@ return (_ctx, _cache) => {
6207
6232
  headers: ['id',showModule,'created_at'],
6208
6233
  "end-point": 'admin/departments/department/list-modules/' + id.value
6209
6234
  }, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
6210
- createVNode(script$k, {
6235
+ createVNode(script$j, {
6211
6236
  "modal-id": "addModule",
6212
6237
  "modal-title": "Add Module Department"
6213
6238
  }, {
6214
6239
  default: withCtx(() => [
6215
- createVNode(script$t, {
6240
+ createVNode(script$s, {
6216
6241
  "reload-select-items": unref(reload),
6217
6242
  "success-callback": moduleAdded,
6218
6243
  "fill-selects": {
@@ -6234,7 +6259,7 @@ return (_ctx, _cache) => {
6234
6259
  ref: permissionCanvasBtn,
6235
6260
  "data-bs-toggle": "offcanvas"
6236
6261
  }, null, 512 /* NEED_PATCH */),
6237
- createVNode(script$h, {
6262
+ createVNode(script$g, {
6238
6263
  "canvas-id": "permissionsCanvas",
6239
6264
  position: "end enlarged",
6240
6265
  "canvas-title": "Module Permissions"
@@ -6349,7 +6374,7 @@ return (_ctx, _cache) => {
6349
6374
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
6350
6375
  (section.value === 'login')
6351
6376
  ? (openBlock(), createElementBlock("div", _hoisted_2, [
6352
- createVNode(script$t, {
6377
+ createVNode(script$s, {
6353
6378
  class: "sh-login-form",
6354
6379
  fields: ['email','password'],
6355
6380
  "action-label": "Login",
@@ -6374,7 +6399,7 @@ return (_ctx, _cache) => {
6374
6399
  (unref(registerSubTitle))
6375
6400
  ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(unref(registerSubTitle)), 1 /* TEXT */))
6376
6401
  : createCommentVNode("v-if", true),
6377
- createVNode(script$t, {
6402
+ createVNode(script$s, {
6378
6403
  class: "sh-login-form",
6379
6404
  fields: unref(registrationFields),
6380
6405
  "action-label": "Sign Up",
@@ -6421,7 +6446,7 @@ const ShFrontend = {
6421
6446
  const registerTitle = options.registerTitle ?? 'Create a new account';
6422
6447
  const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
6423
6448
  const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
6424
- options.formTextInput ?? script$q;
6449
+ options.formTextInput ?? script$p;
6425
6450
  const loginUrl = options.loginUrl ?? `/login`;
6426
6451
  const redirectLogin = options.redirectLogin ?? `/`;
6427
6452
  const redirectRegister = options.redirectRegister ?? `/`;
@@ -6454,7 +6479,7 @@ const ShFrontend = {
6454
6479
  });
6455
6480
  options.router.addRoute({
6456
6481
  path: '/sh-departments/manage-permissions/:id',
6457
- component: script$8
6482
+ component: script$7
6458
6483
  });
6459
6484
  }
6460
6485
  //filter unwanted config items from options to be put in local storage
@@ -6479,4 +6504,4 @@ var shGql = {
6479
6504
  mutate
6480
6505
  };
6481
6506
 
6482
- export { countries as Countries, script$8 as ManagePermissions, script$m as ShAutoForm, script$h as ShCanvas, script$9 as ShCanvasBtn, script$f as ShConfirmAction, script$l as ShDropDownForm, script$b as ShDynamicTabs, script$t as ShForm, ShFrontend, script$k as ShModal, script$a as ShModalBtn, script$j as ShModalForm, script$i as ShModalFormAuto, script$v as ShPhone, script$4 as ShQueryPopups, script$3 as ShRange, script$7 as ShRoutePopups, script$e as ShSilentAction, script$d as ShTable, script$c as ShTabs, shApis, shGql, shRepo, ShStorage as shStorage, useUserStore };
6507
+ 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 };