@iankibetsh/shframework 1.9.2 → 1.9.3

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 +196 -251
  2. package/dist/library.mjs +182 -219
  3. package/package.json +1 -1
package/dist/library.js CHANGED
@@ -14,24 +14,6 @@ var bootstrap = require('bootstrap');
14
14
 
15
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
16
 
17
- function _interopNamespace(e) {
18
- if (e && e.__esModule) return e;
19
- var n = Object.create(null);
20
- if (e) {
21
- Object.keys(e).forEach(function (k) {
22
- if (k !== 'default') {
23
- var d = Object.getOwnPropertyDescriptor(e, k);
24
- Object.defineProperty(n, k, d.get ? d : {
25
- enumerable: true,
26
- get: function () { return e[k]; }
27
- });
28
- }
29
- });
30
- }
31
- n["default"] = e;
32
- return Object.freeze(n);
33
- }
34
-
35
17
  var Axios__default = /*#__PURE__*/_interopDefaultLegacy(Axios);
36
18
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
37
19
  var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
@@ -1906,7 +1888,7 @@ const countries = [
1906
1888
  }
1907
1889
  ];
1908
1890
 
1909
- var script$w = {
1891
+ var script$u = {
1910
1892
  name: 'PhoneInput',
1911
1893
  props: ['modelValue', 'country_code'],
1912
1894
  data () {
@@ -1977,18 +1959,18 @@ var script$w = {
1977
1959
  };
1978
1960
 
1979
1961
  const _hoisted_1$o = { class: "sh-phone mb-3" };
1980
- const _hoisted_2$f = {
1962
+ const _hoisted_2$e = {
1981
1963
  key: 0,
1982
1964
  style: {"display":"contents"}
1983
1965
  };
1984
- const _hoisted_3$e = ["src"];
1985
- const _hoisted_4$e = ["value"];
1966
+ const _hoisted_3$d = ["src"];
1967
+ const _hoisted_4$d = ["value"];
1986
1968
 
1987
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
1969
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
1988
1970
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
1989
1971
  ($data.selectedCountry)
1990
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
1991
- vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$e),
1972
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$e, [
1973
+ vue.createElementVNode("img", { src: $data.flag }, null, 8 /* PROPS */, _hoisted_3$d),
1992
1974
  vue.createTextVNode(" " + vue.toDisplayString($data.selectedCountry.dialCode), 1 /* TEXT */)
1993
1975
  ]))
1994
1976
  : vue.createCommentVNode("v-if", true),
@@ -2001,7 +1983,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2001
1983
  return (vue.openBlock(), vue.createElementBlock("option", {
2002
1984
  value: country,
2003
1985
  key: country.dialCode
2004
- }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$e))
1986
+ }, vue.toDisplayString(country.name + '(' + country.dialCode + ')'), 9 /* TEXT, PROPS */, _hoisted_4$d))
2005
1987
  }), 128 /* KEYED_FRAGMENT */))
2006
1988
  ], 544 /* HYDRATE_EVENTS, NEED_PATCH */), [
2007
1989
  [vue.vModelSelect, $data.selectedCountry]
@@ -2019,16 +2001,16 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
2019
2001
  ]))
2020
2002
  }
2021
2003
 
2022
- script$w.render = render$5;
2023
- script$w.__file = "src/lib/components/form-components/PhoneInput.vue";
2004
+ script$u.render = render$3;
2005
+ script$u.__file = "src/lib/components/form-components/PhoneInput.vue";
2024
2006
 
2025
2007
  const _hoisted_1$n = {
2026
2008
  key: 0,
2027
2009
  class: "dropdown sh-suggest"
2028
2010
  };
2029
- const _hoisted_2$e = ["id"];
2030
- const _hoisted_3$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2031
- const _hoisted_4$d = ["onClick"];
2011
+ const _hoisted_2$d = ["id"];
2012
+ const _hoisted_3$c = { class: "badge bg-secondary m-1 sh-selected-item" };
2013
+ const _hoisted_4$c = ["onClick"];
2032
2014
  const _hoisted_5$a = ["id"];
2033
2015
  const _hoisted_6$9 = ["id", "aria-labelledby"];
2034
2016
  const _hoisted_7$7 = { key: 0 };
@@ -2043,7 +2025,7 @@ const _hoisted_10$5 = {
2043
2025
  };
2044
2026
 
2045
2027
 
2046
- var script$v = {
2028
+ var script$t = {
2047
2029
  __name: 'ShSuggest',
2048
2030
  props: ['fillSelects','modelValue'],
2049
2031
  emits: ['update:modelValue'],
@@ -2133,14 +2115,14 @@ return (_ctx, _cache) => {
2133
2115
  }, [
2134
2116
  vue.createElementVNode("div", null, [
2135
2117
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedSuggestions), (sgt) => {
2136
- return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$d, [
2118
+ return (vue.openBlock(), vue.createElementBlock("h5", _hoisted_3$c, [
2137
2119
  vue.createTextVNode(vue.toDisplayString(sgt.name) + " ", 1 /* TEXT */),
2138
2120
  vue.createElementVNode("button", {
2139
2121
  onClick: $event => (removeSuggestion(sgt.id)),
2140
2122
  type: "button",
2141
2123
  class: "btn-close border-start border-1 ms-1",
2142
2124
  "aria-label": "Close"
2143
- }, null, 8 /* PROPS */, _hoisted_4$d)
2125
+ }, null, 8 /* PROPS */, _hoisted_4$c)
2144
2126
  ]))
2145
2127
  }), 256 /* UNKEYED_FRAGMENT */))
2146
2128
  ]),
@@ -2151,7 +2133,7 @@ return (_ctx, _cache) => {
2151
2133
  onInput: filterData,
2152
2134
  class: "flex-fill h-100 sh-suggestion-input"
2153
2135
  }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_5$a)
2154
- ], 8 /* PROPS */, _hoisted_2$e),
2136
+ ], 8 /* PROPS */, _hoisted_2$d),
2155
2137
  vue.createElementVNode("ul", {
2156
2138
  class: "dropdown-menu w-100",
2157
2139
  id: 'dropwdown_section' + vue.unref(id),
@@ -2184,15 +2166,15 @@ return (_ctx, _cache) => {
2184
2166
 
2185
2167
  };
2186
2168
 
2187
- script$v.__scopeId = "data-v-71cc9569";
2188
- script$v.__file = "src/lib/components/form-components/ShSuggest.vue";
2169
+ script$t.__scopeId = "data-v-71cc9569";
2170
+ script$t.__file = "src/lib/components/form-components/ShSuggest.vue";
2189
2171
 
2190
- var script$u = {
2172
+ var script$s = {
2191
2173
  name: 'ShForm',
2192
2174
  components: {
2193
- PhoneInput: script$w,
2194
- ShSuggest: script$v,
2195
- ShPhone: script$w
2175
+ PhoneInput: script$u,
2176
+ ShSuggest: script$t,
2177
+ ShPhone: script$u
2196
2178
  },
2197
2179
  props: [
2198
2180
  'action',
@@ -2515,16 +2497,16 @@ var script$u = {
2515
2497
  };
2516
2498
 
2517
2499
  const _hoisted_1$m = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, null, -1 /* HOISTED */);
2518
- const _hoisted_2$d = {
2500
+ const _hoisted_2$c = {
2519
2501
  ref: "ShAutoForm",
2520
2502
  class: "sh-form"
2521
2503
  };
2522
- const _hoisted_3$c = {
2504
+ const _hoisted_3$b = {
2523
2505
  key: 0,
2524
2506
  class: "alert alert-danger alert-dismissible fade show sh-form-submission-error",
2525
2507
  role: "alert"
2526
2508
  };
2527
- const _hoisted_4$c = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2509
+ const _hoisted_4$b = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2528
2510
  const _hoisted_5$9 = { key: 0 };
2529
2511
  const _hoisted_6$8 = { key: 1 };
2530
2512
  const _hoisted_7$6 = { class: "row" };
@@ -2570,18 +2552,18 @@ const _hoisted_24$1 = /*#__PURE__*/vue.createElementVNode("span", {
2570
2552
  "aria-hidden": "true"
2571
2553
  }, null, -1 /* HOISTED */);
2572
2554
 
2573
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2555
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2574
2556
  const _component_phone_input = vue.resolveComponent("phone-input");
2575
2557
  const _component_ShSuggest = vue.resolveComponent("ShSuggest");
2576
2558
 
2577
2559
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2578
2560
  _hoisted_1$m,
2579
- vue.createElementVNode("form", _hoisted_2$d, [
2561
+ vue.createElementVNode("form", _hoisted_2$c, [
2580
2562
  vue.createCommentVNode(" <div v-if=\"form_status == 1\" class=\"alert alert-info\">Processing...</div>"),
2581
2563
  vue.createCommentVNode(" <div v-if=\"form_status == 2\" class=\"alert alert-success\">Success</div>"),
2582
2564
  (_ctx.form_status == 3)
2583
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$c, [
2584
- _hoisted_4$c,
2565
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$b, [
2566
+ _hoisted_4$b,
2585
2567
  (_ctx.errorText)
2586
2568
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$9, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2587
2569
  : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
@@ -2781,10 +2763,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2781
2763
  ], 64 /* STABLE_FRAGMENT */))
2782
2764
  }
2783
2765
 
2784
- script$u.render = render$4;
2785
- script$u.__file = "src/lib/components/ShForm.vue";
2766
+ script$s.render = render$2;
2767
+ script$s.__file = "src/lib/components/ShForm.vue";
2786
2768
 
2787
- var script$t = {
2769
+ var script$r = {
2788
2770
  __name: 'EmailInput',
2789
2771
  props: ['modelValue','label'],
2790
2772
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2824,12 +2806,12 @@ return (_ctx, _cache) => {
2824
2806
 
2825
2807
  };
2826
2808
 
2827
- script$t.__file = "src/lib/components/form-components/EmailInput.vue";
2809
+ script$r.__file = "src/lib/components/form-components/EmailInput.vue";
2828
2810
 
2829
2811
  const _hoisted_1$l = ["min", "max"];
2830
2812
 
2831
2813
 
2832
- var script$s = {
2814
+ var script$q = {
2833
2815
  __name: 'NumberInput',
2834
2816
  props: ['modelValue','label','min','max'],
2835
2817
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2871,9 +2853,9 @@ return (_ctx, _cache) => {
2871
2853
 
2872
2854
  };
2873
2855
 
2874
- script$s.__file = "src/lib/components/form-components/NumberInput.vue";
2856
+ script$q.__file = "src/lib/components/form-components/NumberInput.vue";
2875
2857
 
2876
- var script$r = {
2858
+ var script$p = {
2877
2859
  __name: 'TextInput',
2878
2860
  props: ['modelValue','label','isInvalid'],
2879
2861
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2915,9 +2897,9 @@ return (_ctx, _cache) => {
2915
2897
 
2916
2898
  };
2917
2899
 
2918
- script$r.__file = "src/lib/components/form-components/TextInput.vue";
2900
+ script$p.__file = "src/lib/components/form-components/TextInput.vue";
2919
2901
 
2920
- var script$q = {
2902
+ var script$o = {
2921
2903
  __name: 'TextAreaInput',
2922
2904
  props: ['modelValue','label'],
2923
2905
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2957,12 +2939,12 @@ return (_ctx, _cache) => {
2957
2939
 
2958
2940
  };
2959
2941
 
2960
- script$q.__file = "src/lib/components/form-components/TextAreaInput.vue";
2942
+ script$o.__file = "src/lib/components/form-components/TextAreaInput.vue";
2961
2943
 
2962
2944
  const _hoisted_1$k = ["value"];
2963
2945
 
2964
2946
 
2965
- var script$p = {
2947
+ var script$n = {
2966
2948
  __name: 'SelectInput',
2967
2949
  props: ['modelValue','label','data','dataUrl'],
2968
2950
  emits: ['update:modelValue','clearValidationErrors'],
@@ -3027,9 +3009,9 @@ return (_ctx, _cache) => {
3027
3009
 
3028
3010
  };
3029
3011
 
3030
- script$p.__file = "src/lib/components/form-components/SelectInput.vue";
3012
+ script$n.__file = "src/lib/components/form-components/SelectInput.vue";
3031
3013
 
3032
- var script$o = {
3014
+ var script$m = {
3033
3015
  __name: 'PasswordInput',
3034
3016
  props: ['modelValue','label'],
3035
3017
  emits: ['update:modelValue','clearValidationErrors'],
@@ -3065,12 +3047,12 @@ return (_ctx, _cache) => {
3065
3047
 
3066
3048
  };
3067
3049
 
3068
- script$o.__file = "src/lib/components/form-components/PasswordInput.vue";
3050
+ script$m.__file = "src/lib/components/form-components/PasswordInput.vue";
3069
3051
 
3070
3052
  const _hoisted_1$j = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */);
3071
- const _hoisted_2$c = ["onUpdate:modelValue"];
3072
- const _hoisted_3$b = ["innerHTML"];
3073
- const _hoisted_4$b = ["innerHTML"];
3053
+ const _hoisted_2$b = ["onUpdate:modelValue"];
3054
+ const _hoisted_3$a = ["innerHTML"];
3055
+ const _hoisted_4$a = ["innerHTML"];
3074
3056
  const _hoisted_5$8 = ["innerHTML"];
3075
3057
  const _hoisted_6$7 = ["disabled"];
3076
3058
  const _hoisted_7$5 = {
@@ -3082,7 +3064,7 @@ const _hoisted_7$5 = {
3082
3064
  const _hoisted_8$4 = { key: 1 };
3083
3065
 
3084
3066
 
3085
- var script$n = {
3067
+ var script$l = {
3086
3068
  __name: 'ShAutoForm',
3087
3069
  props: [
3088
3070
  'action','successCallback','retainDataAfterSubmission',
@@ -3115,13 +3097,13 @@ const getFieldComponent = (fieldObj)=>{
3115
3097
  const defaultPhones = ['phone'];
3116
3098
  const defaultEmails = ['email'];
3117
3099
  const formComponents = vue.inject('formComponents');
3118
- const TextComponent = formComponents.text ?? script$r;
3119
- const TextAreaComponent = formComponents.textArea ?? script$q;
3120
- const EmailComponent = formComponents.email ?? script$t;
3121
- const PhoneComponent = formComponents.phone ?? script$w;
3122
- const NumberComponent = formComponents.number ?? script$s;
3123
- const SelectComponent = formComponents.select ?? script$p;
3124
- const PasswordComponent = formComponents.password ?? script$o;
3100
+ const TextComponent = formComponents.text ?? script$p;
3101
+ const TextAreaComponent = formComponents.textArea ?? script$o;
3102
+ const EmailComponent = formComponents.email ?? script$r;
3103
+ const PhoneComponent = formComponents.phone ?? script$u;
3104
+ const NumberComponent = formComponents.number ?? script$q;
3105
+ const SelectComponent = formComponents.select ?? script$n;
3106
+ const PasswordComponent = formComponents.password ?? script$m;
3125
3107
  if(props.customComponents && props.customComponents[field]) {
3126
3108
  return props.customComponents[field]
3127
3109
  }
@@ -3133,16 +3115,16 @@ const getFieldComponent = (fieldObj)=>{
3133
3115
  }
3134
3116
  else
3135
3117
  if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
3136
- return formComponents.textArea ?? script$q
3118
+ return formComponents.textArea ?? script$o
3137
3119
  } else
3138
3120
  if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
3139
- return formComponents.email ?? script$t
3121
+ return formComponents.email ?? script$r
3140
3122
  } else
3141
3123
  if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
3142
- return formComponents.phone ?? script$w
3124
+ return formComponents.phone ?? script$u
3143
3125
  } else
3144
3126
  if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
3145
- return formComponents.number ?? script$s
3127
+ return formComponents.number ?? script$q
3146
3128
  }
3147
3129
  // else
3148
3130
  // if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
@@ -3151,7 +3133,7 @@ const getFieldComponent = (fieldObj)=>{
3151
3133
  // if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
3152
3134
  // return formComponents.date ?? DateInput
3153
3135
  // }
3154
- return formComponents.text ?? script$r
3136
+ return formComponents.text ?? script$p
3155
3137
  };
3156
3138
  const shFormElementClasses = vue.ref(null);
3157
3139
  shFormElementClasses.value = vue.inject('shFormElementClasses');
@@ -3306,7 +3288,7 @@ return (_ctx, _cache) => {
3306
3288
  key: 0,
3307
3289
  type: "hidden",
3308
3290
  "onUpdate:modelValue": $event => ((formFields.value[index].value) = $event)
3309
- }, null, 8 /* PROPS */, _hoisted_2$c)), [
3291
+ }, null, 8 /* PROPS */, _hoisted_2$b)), [
3310
3292
  [vue.vModelText, formFields.value[index].value]
3311
3293
  ])
3312
3294
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
@@ -3315,7 +3297,7 @@ return (_ctx, _cache) => {
3315
3297
  key: 0,
3316
3298
  class: vue.normalizeClass(getElementClass('formLabel')),
3317
3299
  innerHTML: field.label
3318
- }, null, 10 /* CLASS, PROPS */, _hoisted_3$b))
3300
+ }, null, 10 /* CLASS, PROPS */, _hoisted_3$a))
3319
3301
  : vue.createCommentVNode("v-if", true),
3320
3302
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(getComponentProps(field), {
3321
3303
  isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
@@ -3329,7 +3311,7 @@ return (_ctx, _cache) => {
3329
3311
  key: 1,
3330
3312
  class: vue.normalizeClass(getElementClass('formLabel')),
3331
3313
  innerHTML: field.label
3332
- }, null, 10 /* CLASS, PROPS */, _hoisted_4$b))
3314
+ }, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
3333
3315
  : vue.createCommentVNode("v-if", true),
3334
3316
  (field.helper)
3335
3317
  ? (vue.openBlock(), vue.createElementBlock("div", {
@@ -3372,12 +3354,12 @@ return (_ctx, _cache) => {
3372
3354
 
3373
3355
  };
3374
3356
 
3375
- script$n.__file = "src/lib/components/ShAutoForm.vue";
3357
+ script$l.__file = "src/lib/components/ShAutoForm.vue";
3376
3358
 
3377
3359
  const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
3378
- const _hoisted_2$b = { class: "dropdown" };
3360
+ const _hoisted_2$a = { class: "dropdown" };
3379
3361
 
3380
- var script$m = {
3362
+ var script$k = {
3381
3363
  __name: 'ShDropDownForm',
3382
3364
  props: ['action',
3383
3365
  'classes',
@@ -3408,7 +3390,7 @@ const dropdownId = 'rand' + (Math.random() + 1).toString(36).substring(2);
3408
3390
  return (_ctx, _cache) => {
3409
3391
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3410
3392
  _hoisted_1$i,
3411
- vue.createElementVNode("div", _hoisted_2$b, [
3393
+ vue.createElementVNode("div", _hoisted_2$a, [
3412
3394
  vue.createElementVNode("a", {
3413
3395
  class: vue.normalizeClass(vue.unref(btnClass)),
3414
3396
  href: "#",
@@ -3424,7 +3406,7 @@ return (_ctx, _cache) => {
3424
3406
  class: "dropdown-menu px-2 py-1",
3425
3407
  "aria-labelledby": dropdownId
3426
3408
  }, [
3427
- vue.createVNode(script$u, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
3409
+ vue.createVNode(script$s, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
3428
3410
  ])
3429
3411
  ])
3430
3412
  ], 64 /* STABLE_FRAGMENT */))
@@ -3433,12 +3415,12 @@ return (_ctx, _cache) => {
3433
3415
 
3434
3416
  };
3435
3417
 
3436
- script$m.__file = "src/lib/components/ShDropDownForm.vue";
3418
+ script$k.__file = "src/lib/components/ShDropDownForm.vue";
3437
3419
 
3438
3420
  const _hoisted_1$h = ["id"];
3439
- const _hoisted_2$a = { class: "modal-content" };
3440
- const _hoisted_3$a = { class: "modal-header" };
3441
- const _hoisted_4$a = { class: "modal-title" };
3421
+ const _hoisted_2$9 = { class: "modal-content" };
3422
+ const _hoisted_3$9 = { class: "modal-header" };
3423
+ const _hoisted_4$9 = { class: "modal-title" };
3442
3424
  const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
3443
3425
  class: "btn btn-danger btn-sm",
3444
3426
  "data-bs-dismiss": "modal",
@@ -3447,7 +3429,7 @@ const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
3447
3429
  const _hoisted_6$6 = { class: "modal-body" };
3448
3430
  const _hoisted_7$4 = { class: "section" };
3449
3431
 
3450
- var script$l = {
3432
+ var script$j = {
3451
3433
  __name: 'ShModal',
3452
3434
  props: {
3453
3435
  modalId: {
@@ -3484,9 +3466,9 @@ return (_ctx, _cache) => {
3484
3466
  vue.createElementVNode("div", {
3485
3467
  class: vue.normalizeClass(["modal-dialog", `modal-${__props.modalSize}`])
3486
3468
  }, [
3487
- vue.createElementVNode("div", _hoisted_2$a, [
3488
- vue.createElementVNode("div", _hoisted_3$a, [
3489
- vue.createElementVNode("h3", _hoisted_4$a, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
3469
+ vue.createElementVNode("div", _hoisted_2$9, [
3470
+ vue.createElementVNode("div", _hoisted_3$9, [
3471
+ vue.createElementVNode("h3", _hoisted_4$9, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
3490
3472
  _hoisted_5$7
3491
3473
  ]),
3492
3474
  vue.createElementVNode("div", _hoisted_6$6, [
@@ -3502,11 +3484,11 @@ return (_ctx, _cache) => {
3502
3484
 
3503
3485
  };
3504
3486
 
3505
- script$l.__file = "src/lib/components/ShModal.vue";
3487
+ script$j.__file = "src/lib/components/ShModal.vue";
3506
3488
 
3507
3489
  const _hoisted_1$g = ["href"];
3508
3490
 
3509
- var script$k = {
3491
+ var script$i = {
3510
3492
  __name: 'ShModalForm',
3511
3493
  props: ['action',
3512
3494
  'classes',
@@ -3546,12 +3528,12 @@ return (_ctx, _cache) => {
3546
3528
  }, [
3547
3529
  vue.renderSlot(_ctx.$slots, "default")
3548
3530
  ], 10 /* CLASS, PROPS */, _hoisted_1$g),
3549
- vue.createVNode(script$l, {
3531
+ vue.createVNode(script$j, {
3550
3532
  "modal-id": modalId,
3551
3533
  "modal-title": __props.modalTitle
3552
3534
  }, {
3553
3535
  default: vue.withCtx(() => [
3554
- vue.createVNode(script$u, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3536
+ vue.createVNode(script$s, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3555
3537
  ]),
3556
3538
  _: 1 /* STABLE */
3557
3539
  }, 8 /* PROPS */, ["modal-title"])
@@ -3561,11 +3543,11 @@ return (_ctx, _cache) => {
3561
3543
 
3562
3544
  };
3563
3545
 
3564
- script$k.__file = "src/lib/components/ShModalForm.vue";
3546
+ script$i.__file = "src/lib/components/ShModalForm.vue";
3565
3547
 
3566
3548
  const _hoisted_1$f = ["href"];
3567
3549
 
3568
- var script$j = {
3550
+ var script$h = {
3569
3551
  __name: 'ShModalFormAuto',
3570
3552
  props: ['action',
3571
3553
  'classes',
@@ -3606,12 +3588,12 @@ return (_ctx, _cache) => {
3606
3588
  }, [
3607
3589
  vue.renderSlot(_ctx.$slots, "default")
3608
3590
  ], 10 /* CLASS, PROPS */, _hoisted_1$f),
3609
- vue.createVNode(script$l, {
3591
+ vue.createVNode(script$j, {
3610
3592
  "modal-id": modalId,
3611
3593
  "modal-title": __props.modalTitle
3612
3594
  }, {
3613
3595
  default: vue.withCtx(() => [
3614
- vue.createVNode(script$n, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3596
+ vue.createVNode(script$l, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3615
3597
  ]),
3616
3598
  _: 1 /* STABLE */
3617
3599
  }, 8 /* PROPS */, ["modal-title"])
@@ -3621,17 +3603,17 @@ return (_ctx, _cache) => {
3621
3603
 
3622
3604
  };
3623
3605
 
3624
- script$j.__file = "src/lib/components/ShModalFormAuto.vue";
3606
+ script$h.__file = "src/lib/components/ShModalFormAuto.vue";
3625
3607
 
3626
3608
  const _hoisted_1$e = ["id"];
3627
- const _hoisted_2$9 = { class: "offcanvas-header" };
3628
- const _hoisted_3$9 = {
3609
+ const _hoisted_2$8 = { class: "offcanvas-header" };
3610
+ const _hoisted_3$8 = {
3629
3611
  class: "offcanvas-title",
3630
3612
  id: "offcanvasScrollingLabel"
3631
3613
  };
3632
- const _hoisted_4$9 = { class: "offcanvas-body" };
3614
+ const _hoisted_4$8 = { class: "offcanvas-body" };
3633
3615
 
3634
- var script$i = {
3616
+ var script$g = {
3635
3617
  __name: 'ShCanvas',
3636
3618
  props: {
3637
3619
  canvasId: {
@@ -3676,8 +3658,8 @@ return (_ctx, _cache) => {
3676
3658
  id: __props.canvasId,
3677
3659
  "aria-labelledby": "offcanvasScrollingLabel"
3678
3660
  }, [
3679
- vue.createElementVNode("div", _hoisted_2$9, [
3680
- vue.createElementVNode("h5", _hoisted_3$9, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
3661
+ vue.createElementVNode("div", _hoisted_2$8, [
3662
+ vue.createElementVNode("h5", _hoisted_3$8, vue.toDisplayString(__props.canvasTitle), 1 /* TEXT */),
3681
3663
  vue.createElementVNode("button", {
3682
3664
  type: "button",
3683
3665
  ref: "closecanvas",
@@ -3687,7 +3669,7 @@ return (_ctx, _cache) => {
3687
3669
  "aria-label": "Close"
3688
3670
  }, null, 512 /* NEED_PATCH */)
3689
3671
  ]),
3690
- vue.createElementVNode("div", _hoisted_4$9, [
3672
+ vue.createElementVNode("div", _hoisted_4$8, [
3691
3673
  vue.renderSlot(_ctx.$slots, "default")
3692
3674
  ])
3693
3675
  ], 10 /* CLASS, PROPS */, _hoisted_1$e))
@@ -3696,9 +3678,9 @@ return (_ctx, _cache) => {
3696
3678
 
3697
3679
  };
3698
3680
 
3699
- script$i.__file = "src/lib/components/ShCanvas.vue";
3681
+ script$g.__file = "src/lib/components/ShCanvas.vue";
3700
3682
 
3701
- var script$h = {
3683
+ var script$f = {
3702
3684
  name: 'Pagination',
3703
3685
  props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
3704
3686
  data () {
@@ -3770,11 +3752,11 @@ var script$h = {
3770
3752
  };
3771
3753
 
3772
3754
  const _hoisted_1$d = { key: 0 };
3773
- const _hoisted_2$8 = { class: "record_count_body mb-3" };
3774
- const _hoisted_3$8 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
3775
- const _hoisted_4$8 = /*#__PURE__*/vue.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);
3755
+ const _hoisted_2$7 = { class: "record_count_body mb-3" };
3756
+ const _hoisted_3$7 = /*#__PURE__*/vue.createElementVNode("span", { class: "per_page_show" }, "Showing", -1 /* HOISTED */);
3757
+ const _hoisted_4$7 = /*#__PURE__*/vue.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);
3776
3758
  const _hoisted_9$4 = [
3777
- _hoisted_4$8
3759
+ _hoisted_4$7
3778
3760
  ];
3779
3761
  const _hoisted_10$3 = { class: "record_counts" };
3780
3762
  const _hoisted_11$2 = {
@@ -3817,11 +3799,11 @@ const _hoisted_23$1 = {
3817
3799
  class: "spinner-border"
3818
3800
  };
3819
3801
 
3820
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3802
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3821
3803
  return ($props.paginationStyle !== 'loadMore')
3822
3804
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
3823
- vue.createElementVNode("div", _hoisted_2$8, [
3824
- _hoisted_3$8,
3805
+ vue.createElementVNode("div", _hoisted_2$7, [
3806
+ _hoisted_3$7,
3825
3807
  vue.createTextVNode("  "),
3826
3808
  vue.withDirectives(vue.createElementVNode("select", {
3827
3809
  class: "select_per_page",
@@ -3894,8 +3876,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
3894
3876
  ]))
3895
3877
  }
3896
3878
 
3897
- script$h.render = render$3;
3898
- script$h.__file = "src/lib/components/list_templates/Pagination.vue";
3879
+ script$f.render = render$1;
3880
+ script$f.__file = "src/lib/components/list_templates/Pagination.vue";
3899
3881
 
3900
3882
  const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("span", {
3901
3883
  class: "spinner-border spinner-border-sm me-1",
@@ -3904,7 +3886,7 @@ const _hoisted_1$c = /*#__PURE__*/vue.createElementVNode("span", {
3904
3886
  }, null, -1 /* HOISTED */);
3905
3887
 
3906
3888
 
3907
- var script$g = {
3889
+ var script$e = {
3908
3890
  __name: 'ShConfirmAction',
3909
3891
  props: {
3910
3892
  data: Object,
@@ -3990,7 +3972,7 @@ return (_ctx, _cache) => {
3990
3972
 
3991
3973
  };
3992
3974
 
3993
- script$g.__file = "src/lib/components/ShConfirmAction.vue";
3975
+ script$e.__file = "src/lib/components/ShConfirmAction.vue";
3994
3976
 
3995
3977
  const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
3996
3978
  class: "spinner-border spinner-border-sm me-1",
@@ -3998,7 +3980,7 @@ const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
3998
3980
  "aria-hidden": "true"
3999
3981
  }, null, -1 /* HOISTED */);
4000
3982
 
4001
- var script$f = {
3983
+ var script$d = {
4002
3984
  __name: 'ShSilentAction',
4003
3985
  props: {
4004
3986
  data: Object,
@@ -4086,9 +4068,9 @@ return (_ctx, _cache) => {
4086
4068
 
4087
4069
  };
4088
4070
 
4089
- script$f.__file = "src/lib/components/ShSilentAction.vue";
4071
+ script$d.__file = "src/lib/components/ShSilentAction.vue";
4090
4072
 
4091
- var script$e = {
4073
+ var script$c = {
4092
4074
  name: 'sh-table',
4093
4075
  props: ['endPoint', 'headers','query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
4094
4076
  inject: ['channel'],
@@ -4343,10 +4325,10 @@ var script$e = {
4343
4325
  this.reloadData();
4344
4326
  },
4345
4327
  components: {
4346
- ShSilentAction: script$f,
4347
- ShConfirmAction: script$g,
4348
- ShCanvas: script$i,
4349
- pagination: script$h
4328
+ ShSilentAction: script$d,
4329
+ ShConfirmAction: script$e,
4330
+ ShCanvas: script$g,
4331
+ pagination: script$f
4350
4332
  },
4351
4333
  computed: {
4352
4334
  windowWidth: function () {
@@ -4365,12 +4347,12 @@ var script$e = {
4365
4347
  };
4366
4348
 
4367
4349
  const _hoisted_1$a = { class: "auto-table mt-2" };
4368
- const _hoisted_2$7 = {
4350
+ const _hoisted_2$6 = {
4369
4351
  key: 0,
4370
4352
  class: "col-md-4 mb-2"
4371
4353
  };
4372
- const _hoisted_3$7 = ["disabled"];
4373
- const _hoisted_4$7 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
4354
+ const _hoisted_3$6 = ["disabled"];
4355
+ const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-download" }, null, -1 /* HOISTED */);
4374
4356
  const _hoisted_5$6 = /*#__PURE__*/vue.createElementVNode("span", {
4375
4357
  class: "spinner-border spinner-border-sm",
4376
4358
  role: "status",
@@ -4520,7 +4502,7 @@ const _hoisted_63 = { key: 0 };
4520
4502
  const _hoisted_64 = ["href"];
4521
4503
  const _hoisted_65 = ["title", "onClick"];
4522
4504
 
4523
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4505
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
4524
4506
  const _component_router_link = vue.resolveComponent("router-link");
4525
4507
  const _component_sh_confirm_action = vue.resolveComponent("sh-confirm-action");
4526
4508
  const _component_sh_silent_action = vue.resolveComponent("sh-silent-action");
@@ -4529,7 +4511,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4529
4511
 
4530
4512
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$a, [
4531
4513
  ($props.hasDownload)
4532
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, [
4514
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$6, [
4533
4515
  vue.createElementVNode("button", {
4534
4516
  disabled: $data.downloading,
4535
4517
  class: "btn btn-warning btn-sm",
@@ -4537,14 +4519,14 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4537
4519
  }, [
4538
4520
  (!$data.downloading)
4539
4521
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
4540
- _hoisted_4$7,
4522
+ _hoisted_4$6,
4541
4523
  vue.createTextVNode(" Export ")
4542
4524
  ], 64 /* STABLE_FRAGMENT */))
4543
4525
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
4544
4526
  _hoisted_5$6,
4545
4527
  _hoisted_6$5
4546
4528
  ], 64 /* STABLE_FRAGMENT */))
4547
- ], 8 /* PROPS */, _hoisted_3$7)
4529
+ ], 8 /* PROPS */, _hoisted_3$6)
4548
4530
  ]))
4549
4531
  : vue.createCommentVNode("v-if", true),
4550
4532
  (!$props.hideSearch)
@@ -4980,10 +4962,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4980
4962
  ]))
4981
4963
  }
4982
4964
 
4983
- script$e.render = render$2;
4984
- script$e.__file = "src/lib/components/ShTable.vue";
4965
+ script$c.render = render;
4966
+ script$c.__file = "src/lib/components/ShTable.vue";
4985
4967
 
4986
- var script$d = {
4968
+ var script$b = {
4987
4969
  __name: 'ShTabs',
4988
4970
  props: {
4989
4971
  tabs: {
@@ -5128,22 +5110,22 @@ return (_ctx, _cache) => {
5128
5110
 
5129
5111
  };
5130
5112
 
5131
- script$d.__file = "src/lib/components/ShTabs.vue";
5113
+ script$b.__file = "src/lib/components/ShTabs.vue";
5132
5114
 
5133
5115
  const _hoisted_1$9 = {
5134
5116
  class: "nav nav-tabs",
5135
5117
  role: "tablist"
5136
5118
  };
5137
- const _hoisted_2$6 = {
5119
+ const _hoisted_2$5 = {
5138
5120
  class: "nav-item",
5139
5121
  role: "presentation"
5140
5122
  };
5141
- const _hoisted_3$6 = ["onClick"];
5142
- const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5123
+ const _hoisted_3$5 = ["onClick"];
5124
+ const _hoisted_4$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5143
5125
  const _hoisted_5$5 = { class: "sh_tab_count" };
5144
5126
  const _hoisted_6$4 = { class: "tab-content" };
5145
5127
 
5146
- var script$c = {
5128
+ var script$a = {
5147
5129
  __name: 'ShDynamicTabs',
5148
5130
  props: ['tabs','data'],
5149
5131
  setup(__props) {
@@ -5170,7 +5152,7 @@ return (_ctx, _cache) => {
5170
5152
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
5171
5153
  vue.createElementVNode("ul", _hoisted_1$9, [
5172
5154
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
5173
- return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$6, [
5155
+ return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$5, [
5174
5156
  vue.createElementVNode("button", {
5175
5157
  onClick: $event => (setTab(tab)),
5176
5158
  class: vue.normalizeClass(["nav-link", vue.unref(currentTab) === tab ? 'active':''])
@@ -5178,11 +5160,11 @@ return (_ctx, _cache) => {
5178
5160
  vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
5179
5161
  (tab.count || tab.tabCount)
5180
5162
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
5181
- _hoisted_4$6,
5163
+ _hoisted_4$5,
5182
5164
  vue.createElementVNode("sup", _hoisted_5$5, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
5183
5165
  ], 64 /* STABLE_FRAGMENT */))
5184
5166
  : vue.createCommentVNode("v-if", true)
5185
- ], 10 /* CLASS, PROPS */, _hoisted_3$6)
5167
+ ], 10 /* CLASS, PROPS */, _hoisted_3$5)
5186
5168
  ]))
5187
5169
  }), 256 /* UNKEYED_FRAGMENT */))
5188
5170
  ]),
@@ -5197,12 +5179,12 @@ return (_ctx, _cache) => {
5197
5179
 
5198
5180
  };
5199
5181
 
5200
- script$c.__file = "src/lib/components/ShDynamicTabs.vue";
5182
+ script$a.__file = "src/lib/components/ShDynamicTabs.vue";
5201
5183
 
5202
5184
  const _hoisted_1$8 = ["href"];
5203
5185
 
5204
5186
 
5205
- var script$b = {
5187
+ var script$9 = {
5206
5188
  __name: 'ShModalBtn',
5207
5189
  props: {
5208
5190
  modalId: {
@@ -5225,12 +5207,12 @@ return (_ctx, _cache) => {
5225
5207
 
5226
5208
  };
5227
5209
 
5228
- script$b.__file = "src/lib/components/ShModalBtn.vue";
5210
+ script$9.__file = "src/lib/components/ShModalBtn.vue";
5229
5211
 
5230
5212
  const _hoisted_1$7 = ["href"];
5231
5213
 
5232
5214
 
5233
- var script$a = {
5215
+ var script$8 = {
5234
5216
  __name: 'ShCanvasBtn',
5235
5217
  props: {
5236
5218
  canvasId: {
@@ -5254,7 +5236,7 @@ return (_ctx, _cache) => {
5254
5236
 
5255
5237
  };
5256
5238
 
5257
- script$a.__file = "src/lib/components/ShCanvasBtn.vue";
5239
+ script$8.__file = "src/lib/components/ShCanvasBtn.vue";
5258
5240
 
5259
5241
  const useUserStore = pinia.defineStore('user-store', {
5260
5242
  state: () => ({
@@ -5354,17 +5336,17 @@ const useUserStore = pinia.defineStore('user-store', {
5354
5336
 
5355
5337
  const _withScopeId$1 = n => (vue.pushScopeId("data-v-0d4fa0ac"),n=n(),vue.popScopeId(),n);
5356
5338
  const _hoisted_1$6 = { class: "row permissions-main d-flex" };
5357
- const _hoisted_2$5 = {
5339
+ const _hoisted_2$4 = {
5358
5340
  id: "permissions-nav",
5359
5341
  class: "col-md-3 d-flex align-items-center py-4"
5360
5342
  };
5361
- const _hoisted_3$5 = {
5343
+ const _hoisted_3$4 = {
5362
5344
  key: 0,
5363
5345
  class: "mx-auto"
5364
5346
  };
5365
- const _hoisted_4$5 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
5347
+ const _hoisted_4$4 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("span", { class: "spinner-grow mx-auto" }, null, -1 /* HOISTED */));
5366
5348
  const _hoisted_5$4 = [
5367
- _hoisted_4$5
5349
+ _hoisted_4$4
5368
5350
  ];
5369
5351
  const _hoisted_6$3 = {
5370
5352
  key: 1,
@@ -5393,7 +5375,7 @@ const _hoisted_17 = { class: "col-md-3" };
5393
5375
  const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
5394
5376
 
5395
5377
 
5396
- var script$9 = {
5378
+ var script$7 = {
5397
5379
  __name: 'ManagePermissions',
5398
5380
  emits: ['success'],
5399
5381
  setup(__props, { emit }) {
@@ -5498,9 +5480,9 @@ const getPermissionStyle = permission => {
5498
5480
 
5499
5481
  return (_ctx, _cache) => {
5500
5482
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
5501
- vue.createElementVNode("div", _hoisted_2$5, [
5483
+ vue.createElementVNode("div", _hoisted_2$4, [
5502
5484
  (loadingModules.value)
5503
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, _hoisted_5$4))
5485
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4, _hoisted_5$4))
5504
5486
  : (vue.openBlock(), vue.createElementBlock("ul", _hoisted_6$3, [
5505
5487
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(modules.value, (module) => {
5506
5488
  return (vue.openBlock(), vue.createElementBlock("li", {
@@ -5551,7 +5533,7 @@ return (_ctx, _cache) => {
5551
5533
  (permissionsChanged.value)
5552
5534
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
5553
5535
  vue.createElementVNode("div", _hoisted_17, [
5554
- vue.createVNode(script$f, {
5536
+ vue.createVNode(script$d, {
5555
5537
  onSuccess: permissionsUpdated,
5556
5538
  url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
5557
5539
  data: {permissions: selectedPermissions.value},
@@ -5575,37 +5557,12 @@ return (_ctx, _cache) => {
5575
5557
 
5576
5558
  };
5577
5559
 
5578
- script$9.__scopeId = "data-v-0d4fa0ac";
5579
- script$9.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
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
-
5560
+ script$7.__scopeId = "data-v-0d4fa0ac";
5561
+ script$7.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
5595
5562
 
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 = {};
5563
+ const _hoisted_1$5 = ["href"];
5604
5564
 
5605
5565
 
5606
- script$7.render = render;
5607
- script$7.__file = "src/lib/components/popups/etc/ErrorLoadingPopup.vue";
5608
-
5609
5566
  var script$6 = {
5610
5567
  __name: 'Popups',
5611
5568
  setup(__props) {
@@ -5614,18 +5571,19 @@ const route = vueRouter.useRoute();
5614
5571
  const popUp = vue.ref(route.meta.popUp);
5615
5572
  const modalId = ___default["default"].uniqueId('modal_');
5616
5573
  const canvasId = ___default["default"].uniqueId('canvas_');
5617
- let PopupComponent = vue.ref(null);
5574
+ const componentView = vue.ref(null);
5618
5575
  vue.ref(null);
5619
5576
  const router = vueRouter.useRouter();
5620
5577
  const position = vue.ref(null);
5621
5578
  const size = vue.ref(null);
5622
- const AsyncComp =vue.ref(null);
5623
- vue.watch(() => route.query.popup, pop => {
5624
- popUp.value = pop;
5625
- position.value = route.query.position ?? route.query.side;
5626
- size.value = route.query.size;
5579
+ vue.watch(() => route.meta, meta => {
5580
+ popUp.value = meta.popUp ?? meta.popup;
5627
5581
  if (popUp.value) {
5628
- loadPopupComponent();
5582
+ // popups.push(meta)
5583
+ // !popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta)
5584
+ position.value = meta.position ?? meta.side;
5585
+ size.value = meta.size;
5586
+ componentView.value = vue.markRaw(route.matched[route.matched.length - 1].components.default);
5629
5587
  setTimeout(() => {
5630
5588
  initPopup();
5631
5589
  }, 100);
@@ -5636,24 +5594,6 @@ vue.watch(() => route.query.popup, pop => {
5636
5594
  }, 100);
5637
5595
  }
5638
5596
  });
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
5597
  const closeOrphanedBackdrops = () => {
5658
5598
  const offCanvasBackdrop = document.querySelector('.offcanvas-backdrop');
5659
5599
  if (offCanvasBackdrop) {
@@ -5688,37 +5628,42 @@ const initPopup = () => {
5688
5628
  };
5689
5629
  const goBack = () => {
5690
5630
  if (route.matched.length) {
5691
- let backUrl = route.path;
5692
- // const params = route.params
5693
- // Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]))
5631
+ let backUrl = route.matched[route.matched.length - 2].path;
5632
+ const params = route.params;
5633
+ Object.keys(params).map(key => backUrl = backUrl.replace(`:${key}`,params[key]));
5694
5634
  router.push(backUrl);
5695
5635
  }
5696
5636
  };
5697
5637
 
5698
5638
  return (_ctx, _cache) => {
5699
5639
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
5640
+ vue.createElementVNode("a", {
5641
+ "data-bs-toggle": "offcanvas",
5642
+ href: '#' + vue.unref(canvasId),
5643
+ shallowRef: "canvasButton",
5644
+ class: "d-none"
5645
+ }, "Open Modal", 8 /* PROPS */, _hoisted_1$5),
5700
5646
  (popUp.value === 'modal')
5701
- ? (vue.openBlock(), vue.createBlock(script$l, {
5647
+ ? (vue.openBlock(), vue.createBlock(script$j, {
5702
5648
  key: 0,
5703
5649
  "modal-id": vue.unref(modalId),
5704
5650
  "modal-size": size.value
5705
5651
  }, {
5706
5652
  default: vue.withCtx(() => [
5707
- vue.createVNode(vue.unref(PopupComponent))
5653
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
5708
5654
  ]),
5709
5655
  _: 1 /* STABLE */
5710
5656
  }, 8 /* PROPS */, ["modal-id", "modal-size"]))
5711
5657
  : vue.createCommentVNode("v-if", true),
5712
5658
  (['offcanvas','canvas','offCanvas'].includes(popUp.value))
5713
- ? (vue.openBlock(), vue.createBlock(script$i, {
5659
+ ? (vue.openBlock(), vue.createBlock(script$g, {
5714
5660
  key: 1,
5715
5661
  "canvas-id": vue.unref(canvasId),
5716
5662
  "canvas-size": size.value,
5717
5663
  position: position.value
5718
5664
  }, {
5719
5665
  default: vue.withCtx(() => [
5720
- vue.createVNode(vue.unref(PopupComponent)),
5721
- vue.createVNode(vue.unref(AsyncComp))
5666
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
5722
5667
  ]),
5723
5668
  _: 1 /* STABLE */
5724
5669
  }, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
@@ -5815,7 +5760,7 @@ return (_ctx, _cache) => {
5815
5760
  class: "d-none"
5816
5761
  }, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
5817
5762
  (popUp.value === 'modal')
5818
- ? (vue.openBlock(), vue.createBlock(script$l, {
5763
+ ? (vue.openBlock(), vue.createBlock(script$j, {
5819
5764
  key: 0,
5820
5765
  "modal-id": vue.unref(modalId),
5821
5766
  "modal-size": size.value
@@ -5827,7 +5772,7 @@ return (_ctx, _cache) => {
5827
5772
  }, 8 /* PROPS */, ["modal-id", "modal-size"]))
5828
5773
  : vue.createCommentVNode("v-if", true),
5829
5774
  (['offcanvas','canvas','offCanvas'].includes(popUp.value))
5830
- ? (vue.openBlock(), vue.createBlock(script$i, {
5775
+ ? (vue.openBlock(), vue.createBlock(script$g, {
5831
5776
  key: 1,
5832
5777
  "canvas-id": vue.unref(canvasId),
5833
5778
  "canvas-size": size.value,
@@ -6078,7 +6023,7 @@ return (_ctx, _cache) => {
6078
6023
  _hoisted_5$2,
6079
6024
  vue.createTextVNode(" ADD DEPARTMENT")
6080
6025
  ], 512 /* NEED_PATCH */),
6081
- vue.createVNode(script$e, {
6026
+ vue.createVNode(script$c, {
6082
6027
  headers: ['id','name','description', 'created_at'],
6083
6028
  "end-point": "sh-departments/list",
6084
6029
  actions: {
@@ -6092,12 +6037,12 @@ return (_ctx, _cache) => {
6092
6037
  ]
6093
6038
  }
6094
6039
  }),
6095
- vue.createVNode(script$l, {
6040
+ vue.createVNode(script$j, {
6096
6041
  "modal-id": "sh-department_modal",
6097
6042
  "modal-title": "Department Form"
6098
6043
  }, {
6099
6044
  default: vue.withCtx(() => [
6100
- vue.createVNode(script$u, {
6045
+ vue.createVNode(script$s, {
6101
6046
  "success-callback": "departmentAdded",
6102
6047
  onDepartmentAdded: departmentAdded,
6103
6048
  action: "admin/departments/store",
@@ -6231,7 +6176,7 @@ return (_ctx, _cache) => {
6231
6176
  vue.createElementVNode("div", _hoisted_2$1, [
6232
6177
  _hoisted_3$1,
6233
6178
  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$e, {
6179
+ vue.createVNode(script$c, {
6235
6180
  actions: {
6236
6181
  label: 'Actions',
6237
6182
  actions: [
@@ -6251,12 +6196,12 @@ return (_ctx, _cache) => {
6251
6196
  headers: ['id',showModule,'created_at'],
6252
6197
  "end-point": 'admin/departments/department/list-modules/' + id.value
6253
6198
  }, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
6254
- vue.createVNode(script$l, {
6199
+ vue.createVNode(script$j, {
6255
6200
  "modal-id": "addModule",
6256
6201
  "modal-title": "Add Module Department"
6257
6202
  }, {
6258
6203
  default: vue.withCtx(() => [
6259
- vue.createVNode(script$u, {
6204
+ vue.createVNode(script$s, {
6260
6205
  "reload-select-items": vue.unref(reload),
6261
6206
  "success-callback": moduleAdded,
6262
6207
  "fill-selects": {
@@ -6278,7 +6223,7 @@ return (_ctx, _cache) => {
6278
6223
  ref: permissionCanvasBtn,
6279
6224
  "data-bs-toggle": "offcanvas"
6280
6225
  }, null, 512 /* NEED_PATCH */),
6281
- vue.createVNode(script$i, {
6226
+ vue.createVNode(script$g, {
6282
6227
  "canvas-id": "permissionsCanvas",
6283
6228
  position: "end enlarged",
6284
6229
  "canvas-title": "Module Permissions"
@@ -6393,7 +6338,7 @@ return (_ctx, _cache) => {
6393
6338
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
6394
6339
  (section.value === 'login')
6395
6340
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
6396
- vue.createVNode(script$u, {
6341
+ vue.createVNode(script$s, {
6397
6342
  class: "sh-login-form",
6398
6343
  fields: ['email','password'],
6399
6344
  "action-label": "Login",
@@ -6418,7 +6363,7 @@ return (_ctx, _cache) => {
6418
6363
  (vue.unref(registerSubTitle))
6419
6364
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
6420
6365
  : vue.createCommentVNode("v-if", true),
6421
- vue.createVNode(script$u, {
6366
+ vue.createVNode(script$s, {
6422
6367
  class: "sh-login-form",
6423
6368
  fields: vue.unref(registrationFields),
6424
6369
  "action-label": "Sign Up",
@@ -6465,7 +6410,7 @@ const ShFrontend = {
6465
6410
  const registerTitle = options.registerTitle ?? 'Create a new account';
6466
6411
  const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
6467
6412
  const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
6468
- options.formTextInput ?? script$r;
6413
+ options.formTextInput ?? script$p;
6469
6414
  const loginUrl = options.loginUrl ?? `/login`;
6470
6415
  const redirectLogin = options.redirectLogin ?? `/`;
6471
6416
  const redirectRegister = options.redirectRegister ?? `/`;
@@ -6498,7 +6443,7 @@ const ShFrontend = {
6498
6443
  });
6499
6444
  options.router.addRoute({
6500
6445
  path: '/sh-departments/manage-permissions/:id',
6501
- component: script$9
6446
+ component: script$7
6502
6447
  });
6503
6448
  }
6504
6449
  //filter unwanted config items from options to be put in local storage
@@ -6524,25 +6469,25 @@ var shGql = {
6524
6469
  };
6525
6470
 
6526
6471
  exports.Countries = countries;
6527
- exports.ManagePermissions = script$9;
6528
- exports.ShAutoForm = script$n;
6529
- exports.ShCanvas = script$i;
6530
- exports.ShCanvasBtn = script$a;
6531
- exports.ShConfirmAction = script$g;
6532
- exports.ShDropDownForm = script$m;
6533
- exports.ShDynamicTabs = script$c;
6534
- exports.ShForm = script$u;
6472
+ exports.ManagePermissions = script$7;
6473
+ exports.ShAutoForm = script$l;
6474
+ exports.ShCanvas = script$g;
6475
+ exports.ShCanvasBtn = script$8;
6476
+ exports.ShConfirmAction = script$e;
6477
+ exports.ShDropDownForm = script$k;
6478
+ exports.ShDynamicTabs = script$a;
6479
+ exports.ShForm = script$s;
6535
6480
  exports.ShFrontend = ShFrontend;
6536
- exports.ShModal = script$l;
6537
- exports.ShModalBtn = script$b;
6538
- exports.ShModalForm = script$k;
6539
- exports.ShModalFormAuto = script$j;
6540
- exports.ShPhone = script$w;
6481
+ exports.ShModal = script$j;
6482
+ exports.ShModalBtn = script$9;
6483
+ exports.ShModalForm = script$i;
6484
+ exports.ShModalFormAuto = script$h;
6485
+ exports.ShPhone = script$u;
6541
6486
  exports.ShPopups = script$4;
6542
6487
  exports.ShRange = script$3;
6543
- exports.ShSilentAction = script$f;
6544
- exports.ShTable = script$e;
6545
- exports.ShTabs = script$d;
6488
+ exports.ShSilentAction = script$d;
6489
+ exports.ShTable = script$c;
6490
+ exports.ShTabs = script$b;
6546
6491
  exports.shApis = shApis;
6547
6492
  exports.shGql = shGql;
6548
6493
  exports.shRepo = shRepo;