@iankibetsh/shframework 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/library.js CHANGED
@@ -1892,7 +1892,7 @@ const countries = [
1892
1892
  }
1893
1893
  ];
1894
1894
 
1895
- var script$t = {
1895
+ var script$u = {
1896
1896
  name: 'PhoneInput',
1897
1897
  props: ['modelValue', 'country_code'],
1898
1898
  data () {
@@ -2005,8 +2005,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2005
2005
  ]))
2006
2006
  }
2007
2007
 
2008
- script$t.render = render$3;
2009
- script$t.__file = "src/lib/components/form-components/PhoneInput.vue";
2008
+ script$u.render = render$3;
2009
+ script$u.__file = "src/lib/components/form-components/PhoneInput.vue";
2010
2010
 
2011
2011
  const _hoisted_1$m = {
2012
2012
  key: 0,
@@ -2029,7 +2029,7 @@ const _hoisted_10$5 = {
2029
2029
  };
2030
2030
 
2031
2031
 
2032
- var script$s = {
2032
+ var script$t = {
2033
2033
  __name: 'ShSuggest',
2034
2034
  props: ['fillSelects','modelValue'],
2035
2035
  emits: ['update:modelValue'],
@@ -2170,15 +2170,15 @@ return (_ctx, _cache) => {
2170
2170
 
2171
2171
  };
2172
2172
 
2173
- script$s.__scopeId = "data-v-71cc9569";
2174
- script$s.__file = "src/lib/components/form-components/ShSuggest.vue";
2173
+ script$t.__scopeId = "data-v-71cc9569";
2174
+ script$t.__file = "src/lib/components/form-components/ShSuggest.vue";
2175
2175
 
2176
- var script$r = {
2176
+ var script$s = {
2177
2177
  name: 'ShForm',
2178
2178
  components: {
2179
- PhoneInput: script$t,
2180
- ShSuggest: script$s,
2181
- ShPhone: script$t
2179
+ PhoneInput: script$u,
2180
+ ShSuggest: script$t,
2181
+ ShPhone: script$u
2182
2182
  },
2183
2183
  props: [
2184
2184
  'action',
@@ -2767,10 +2767,10 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2767
2767
  ], 64 /* STABLE_FRAGMENT */))
2768
2768
  }
2769
2769
 
2770
- script$r.render = render$2;
2771
- script$r.__file = "src/lib/components/ShForm.vue";
2770
+ script$s.render = render$2;
2771
+ script$s.__file = "src/lib/components/ShForm.vue";
2772
2772
 
2773
- var script$q = {
2773
+ var script$r = {
2774
2774
  __name: 'EmailInput',
2775
2775
  props: ['modelValue','label'],
2776
2776
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2810,12 +2810,12 @@ return (_ctx, _cache) => {
2810
2810
 
2811
2811
  };
2812
2812
 
2813
- script$q.__file = "src/lib/components/form-components/EmailInput.vue";
2813
+ script$r.__file = "src/lib/components/form-components/EmailInput.vue";
2814
2814
 
2815
2815
  const _hoisted_1$k = ["min", "max"];
2816
2816
 
2817
2817
 
2818
- var script$p = {
2818
+ var script$q = {
2819
2819
  __name: 'NumberInput',
2820
2820
  props: ['modelValue','label','min','max'],
2821
2821
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2857,9 +2857,9 @@ return (_ctx, _cache) => {
2857
2857
 
2858
2858
  };
2859
2859
 
2860
- script$p.__file = "src/lib/components/form-components/NumberInput.vue";
2860
+ script$q.__file = "src/lib/components/form-components/NumberInput.vue";
2861
2861
 
2862
- var script$o = {
2862
+ var script$p = {
2863
2863
  __name: 'TextInput',
2864
2864
  props: ['modelValue','label','isInvalid'],
2865
2865
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2901,9 +2901,9 @@ return (_ctx, _cache) => {
2901
2901
 
2902
2902
  };
2903
2903
 
2904
- script$o.__file = "src/lib/components/form-components/TextInput.vue";
2904
+ script$p.__file = "src/lib/components/form-components/TextInput.vue";
2905
2905
 
2906
- var script$n = {
2906
+ var script$o = {
2907
2907
  __name: 'TextAreaInput',
2908
2908
  props: ['modelValue','label'],
2909
2909
  emits: ['update:modelValue','clearValidationErrors'],
@@ -2943,12 +2943,12 @@ return (_ctx, _cache) => {
2943
2943
 
2944
2944
  };
2945
2945
 
2946
- script$n.__file = "src/lib/components/form-components/TextAreaInput.vue";
2946
+ script$o.__file = "src/lib/components/form-components/TextAreaInput.vue";
2947
2947
 
2948
2948
  const _hoisted_1$j = ["value"];
2949
2949
 
2950
2950
 
2951
- var script$m = {
2951
+ var script$n = {
2952
2952
  __name: 'SelectInput',
2953
2953
  props: ['modelValue','label','data','dataUrl'],
2954
2954
  emits: ['update:modelValue','clearValidationErrors'],
@@ -3013,9 +3013,9 @@ return (_ctx, _cache) => {
3013
3013
 
3014
3014
  };
3015
3015
 
3016
- script$m.__file = "src/lib/components/form-components/SelectInput.vue";
3016
+ script$n.__file = "src/lib/components/form-components/SelectInput.vue";
3017
3017
 
3018
- var script$l = {
3018
+ var script$m = {
3019
3019
  __name: 'PasswordInput',
3020
3020
  props: ['modelValue','label'],
3021
3021
  emits: ['update:modelValue','clearValidationErrors'],
@@ -3051,7 +3051,7 @@ return (_ctx, _cache) => {
3051
3051
 
3052
3052
  };
3053
3053
 
3054
- script$l.__file = "src/lib/components/form-components/PasswordInput.vue";
3054
+ script$m.__file = "src/lib/components/form-components/PasswordInput.vue";
3055
3055
 
3056
3056
  const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /* HOISTED */);
3057
3057
  const _hoisted_2$b = ["onUpdate:modelValue"];
@@ -3068,7 +3068,7 @@ const _hoisted_7$5 = {
3068
3068
  const _hoisted_8$4 = { key: 1 };
3069
3069
 
3070
3070
 
3071
- var script$k = {
3071
+ var script$l = {
3072
3072
  __name: 'ShAutoForm',
3073
3073
  props: [
3074
3074
  'action','successCallback','retainDataAfterSubmission',
@@ -3101,13 +3101,13 @@ const getFieldComponent = (fieldObj)=>{
3101
3101
  const defaultPhones = ['phone'];
3102
3102
  const defaultEmails = ['email'];
3103
3103
  const formComponents = vue.inject('formComponents');
3104
- const TextComponent = formComponents.text ?? script$o;
3105
- const TextAreaComponent = formComponents.textArea ?? script$n;
3106
- const EmailComponent = formComponents.email ?? script$q;
3107
- const PhoneComponent = formComponents.phone ?? script$t;
3108
- const NumberComponent = formComponents.number ?? script$p;
3109
- const SelectComponent = formComponents.select ?? script$m;
3110
- const PasswordComponent = formComponents.password ?? script$l;
3104
+ const TextComponent = formComponents.text ?? script$p;
3105
+ const TextAreaComponent = formComponents.textArea ?? script$o;
3106
+ const EmailComponent = formComponents.email ?? script$r;
3107
+ const PhoneComponent = formComponents.phone ?? script$u;
3108
+ const NumberComponent = formComponents.number ?? script$q;
3109
+ const SelectComponent = formComponents.select ?? script$n;
3110
+ const PasswordComponent = formComponents.password ?? script$m;
3111
3111
  if(props.customComponents && props.customComponents[field]) {
3112
3112
  return props.customComponents[field]
3113
3113
  }
@@ -3119,16 +3119,16 @@ const getFieldComponent = (fieldObj)=>{
3119
3119
  }
3120
3120
  else
3121
3121
  if((props.textAreas && props.textAreas.includes(field)) || defaultTextareas.includes(field)){
3122
- return formComponents.textArea ?? script$n
3122
+ return formComponents.textArea ?? script$o
3123
3123
  } else
3124
3124
  if((props.emails && props.emails.includes(field)) || defaultEmails.includes(field)){
3125
- return formComponents.email ?? script$q
3125
+ return formComponents.email ?? script$r
3126
3126
  } else
3127
3127
  if((props.phones && props.phones.includes(field)) || defaultPhones.includes(field)){
3128
- return formComponents.phone ?? script$t
3128
+ return formComponents.phone ?? script$u
3129
3129
  } else
3130
3130
  if((props.numbers && props.numbers.includes(field)) || defaultNumbers.includes(field)){
3131
- return formComponents.number ?? script$p
3131
+ return formComponents.number ?? script$q
3132
3132
  }
3133
3133
  // else
3134
3134
  // if((props.selects && props.selects.includes(field)) || defaultSelects.includes(field)){
@@ -3137,7 +3137,7 @@ const getFieldComponent = (fieldObj)=>{
3137
3137
  // if((props.dates && props.dates.includes(field)) || defaultDates.includes(field)){
3138
3138
  // return formComponents.date ?? DateInput
3139
3139
  // }
3140
- return formComponents.text ?? script$o
3140
+ return formComponents.text ?? script$p
3141
3141
  };
3142
3142
  const shFormElementClasses = vue.ref(null);
3143
3143
  shFormElementClasses.value = vue.inject('shFormElementClasses');
@@ -3358,12 +3358,12 @@ return (_ctx, _cache) => {
3358
3358
 
3359
3359
  };
3360
3360
 
3361
- script$k.__file = "src/lib/components/ShAutoForm.vue";
3361
+ script$l.__file = "src/lib/components/ShAutoForm.vue";
3362
3362
 
3363
3363
  const _hoisted_1$h = /*#__PURE__*/vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* HOISTED */);
3364
3364
  const _hoisted_2$a = { class: "dropdown" };
3365
3365
 
3366
- var script$j = {
3366
+ var script$k = {
3367
3367
  __name: 'ShDropDownForm',
3368
3368
  props: ['action',
3369
3369
  'classes',
@@ -3410,7 +3410,7 @@ return (_ctx, _cache) => {
3410
3410
  class: "dropdown-menu px-2 py-1",
3411
3411
  "aria-labelledby": dropdownId
3412
3412
  }, [
3413
- vue.createVNode(script$r, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
3413
+ vue.createVNode(script$s, vue.normalizeProps(vue.guardReactiveProps(props)), null, 16 /* FULL_PROPS */)
3414
3414
  ])
3415
3415
  ])
3416
3416
  ], 64 /* STABLE_FRAGMENT */))
@@ -3419,7 +3419,7 @@ return (_ctx, _cache) => {
3419
3419
 
3420
3420
  };
3421
3421
 
3422
- script$j.__file = "src/lib/components/ShDropDownForm.vue";
3422
+ script$k.__file = "src/lib/components/ShDropDownForm.vue";
3423
3423
 
3424
3424
  const _hoisted_1$g = ["id"];
3425
3425
  const _hoisted_2$9 = { class: "modal-content" };
@@ -3433,7 +3433,7 @@ const _hoisted_5$6 = /*#__PURE__*/vue.createElementVNode("button", {
3433
3433
  const _hoisted_6$5 = { class: "modal-body" };
3434
3434
  const _hoisted_7$4 = { class: "section" };
3435
3435
 
3436
- var script$i = {
3436
+ var script$j = {
3437
3437
  __name: 'ShModal',
3438
3438
  props: {
3439
3439
  modalId: {
@@ -3488,11 +3488,11 @@ return (_ctx, _cache) => {
3488
3488
 
3489
3489
  };
3490
3490
 
3491
- script$i.__file = "src/lib/components/ShModal.vue";
3491
+ script$j.__file = "src/lib/components/ShModal.vue";
3492
3492
 
3493
3493
  const _hoisted_1$f = ["href"];
3494
3494
 
3495
- var script$h = {
3495
+ var script$i = {
3496
3496
  __name: 'ShModalForm',
3497
3497
  props: ['action',
3498
3498
  'classes',
@@ -3532,12 +3532,12 @@ return (_ctx, _cache) => {
3532
3532
  }, [
3533
3533
  vue.renderSlot(_ctx.$slots, "default")
3534
3534
  ], 10 /* CLASS, PROPS */, _hoisted_1$f),
3535
- vue.createVNode(script$i, {
3535
+ vue.createVNode(script$j, {
3536
3536
  "modal-id": modalId,
3537
3537
  "modal-title": __props.modalTitle
3538
3538
  }, {
3539
3539
  default: vue.withCtx(() => [
3540
- vue.createVNode(script$r, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3540
+ vue.createVNode(script$s, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3541
3541
  ]),
3542
3542
  _: 1 /* STABLE */
3543
3543
  }, 8 /* PROPS */, ["modal-title"])
@@ -3547,11 +3547,11 @@ return (_ctx, _cache) => {
3547
3547
 
3548
3548
  };
3549
3549
 
3550
- script$h.__file = "src/lib/components/ShModalForm.vue";
3550
+ script$i.__file = "src/lib/components/ShModalForm.vue";
3551
3551
 
3552
3552
  const _hoisted_1$e = ["href"];
3553
3553
 
3554
- var script$g = {
3554
+ var script$h = {
3555
3555
  __name: 'ShModalFormAuto',
3556
3556
  props: ['action',
3557
3557
  'classes',
@@ -3592,12 +3592,12 @@ return (_ctx, _cache) => {
3592
3592
  }, [
3593
3593
  vue.renderSlot(_ctx.$slots, "default")
3594
3594
  ], 10 /* CLASS, PROPS */, _hoisted_1$e),
3595
- vue.createVNode(script$i, {
3595
+ vue.createVNode(script$j, {
3596
3596
  "modal-id": modalId,
3597
3597
  "modal-title": __props.modalTitle
3598
3598
  }, {
3599
3599
  default: vue.withCtx(() => [
3600
- vue.createVNode(script$k, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3600
+ vue.createVNode(script$l, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3601
3601
  ]),
3602
3602
  _: 1 /* STABLE */
3603
3603
  }, 8 /* PROPS */, ["modal-title"])
@@ -3607,7 +3607,7 @@ return (_ctx, _cache) => {
3607
3607
 
3608
3608
  };
3609
3609
 
3610
- script$g.__file = "src/lib/components/ShModalFormAuto.vue";
3610
+ script$h.__file = "src/lib/components/ShModalFormAuto.vue";
3611
3611
 
3612
3612
  const _hoisted_1$d = ["id"];
3613
3613
  const _hoisted_2$8 = { class: "offcanvas-header" };
@@ -3617,7 +3617,7 @@ const _hoisted_3$8 = {
3617
3617
  };
3618
3618
  const _hoisted_4$8 = { class: "offcanvas-body" };
3619
3619
 
3620
- var script$f = {
3620
+ var script$g = {
3621
3621
  __name: 'ShCanvas',
3622
3622
  props: {
3623
3623
  canvasId: {
@@ -3682,9 +3682,9 @@ return (_ctx, _cache) => {
3682
3682
 
3683
3683
  };
3684
3684
 
3685
- script$f.__file = "src/lib/components/ShCanvas.vue";
3685
+ script$g.__file = "src/lib/components/ShCanvas.vue";
3686
3686
 
3687
- var script$e = {
3687
+ var script$f = {
3688
3688
  name: 'Pagination',
3689
3689
  props: ['pagination_data', 'loadMore', 'hideCount', 'hideLoadMore', 'paginationStyle'],
3690
3690
  data () {
@@ -3880,8 +3880,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
3880
3880
  ]))
3881
3881
  }
3882
3882
 
3883
- script$e.render = render$1;
3884
- script$e.__file = "src/lib/components/list_templates/Pagination.vue";
3883
+ script$f.render = render$1;
3884
+ script$f.__file = "src/lib/components/list_templates/Pagination.vue";
3885
3885
 
3886
3886
  const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
3887
3887
  class: "spinner-border spinner-border-sm me-1",
@@ -3890,7 +3890,7 @@ const _hoisted_1$b = /*#__PURE__*/vue.createElementVNode("span", {
3890
3890
  }, null, -1 /* HOISTED */);
3891
3891
 
3892
3892
 
3893
- var script$d = {
3893
+ var script$e = {
3894
3894
  __name: 'ShConfirmAction',
3895
3895
  props: {
3896
3896
  data: Object,
@@ -3976,7 +3976,7 @@ return (_ctx, _cache) => {
3976
3976
 
3977
3977
  };
3978
3978
 
3979
- script$d.__file = "src/lib/components/ShConfirmAction.vue";
3979
+ script$e.__file = "src/lib/components/ShConfirmAction.vue";
3980
3980
 
3981
3981
  const _hoisted_1$a = /*#__PURE__*/vue.createElementVNode("span", {
3982
3982
  class: "spinner-border spinner-border-sm me-1",
@@ -3984,7 +3984,7 @@ const _hoisted_1$a = /*#__PURE__*/vue.createElementVNode("span", {
3984
3984
  "aria-hidden": "true"
3985
3985
  }, null, -1 /* HOISTED */);
3986
3986
 
3987
- var script$c = {
3987
+ var script$d = {
3988
3988
  __name: 'ShSilentAction',
3989
3989
  props: {
3990
3990
  data: Object,
@@ -4072,9 +4072,9 @@ return (_ctx, _cache) => {
4072
4072
 
4073
4073
  };
4074
4074
 
4075
- script$c.__file = "src/lib/components/ShSilentAction.vue";
4075
+ script$d.__file = "src/lib/components/ShSilentAction.vue";
4076
4076
 
4077
- var script$b = {
4077
+ var script$c = {
4078
4078
  name: 'sh-table',
4079
4079
  props: ['endPoint', 'headers','query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle'],
4080
4080
  inject: ['channel'],
@@ -4329,10 +4329,10 @@ var script$b = {
4329
4329
  this.reloadData();
4330
4330
  },
4331
4331
  components: {
4332
- ShSilentAction: script$c,
4333
- ShConfirmAction: script$d,
4334
- ShCanvas: script$f,
4335
- pagination: script$e
4332
+ ShSilentAction: script$d,
4333
+ ShConfirmAction: script$e,
4334
+ ShCanvas: script$g,
4335
+ pagination: script$f
4336
4336
  },
4337
4337
  computed: {
4338
4338
  windowWidth: function () {
@@ -4966,10 +4966,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
4966
4966
  ]))
4967
4967
  }
4968
4968
 
4969
- script$b.render = render;
4970
- script$b.__file = "src/lib/components/ShTable.vue";
4969
+ script$c.render = render;
4970
+ script$c.__file = "src/lib/components/ShTable.vue";
4971
4971
 
4972
- var script$a = {
4972
+ var script$b = {
4973
4973
  __name: 'ShTabs',
4974
4974
  props: {
4975
4975
  tabs: {
@@ -5114,7 +5114,7 @@ return (_ctx, _cache) => {
5114
5114
 
5115
5115
  };
5116
5116
 
5117
- script$a.__file = "src/lib/components/ShTabs.vue";
5117
+ script$b.__file = "src/lib/components/ShTabs.vue";
5118
5118
 
5119
5119
  const _hoisted_1$8 = {
5120
5120
  class: "nav-item",
@@ -5125,7 +5125,7 @@ const _hoisted_3$5 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none"
5125
5125
  const _hoisted_4$5 = { class: "sh_tab_count" };
5126
5126
  const _hoisted_5$4 = { class: "tab-content" };
5127
5127
 
5128
- var script$9 = {
5128
+ var script$a = {
5129
5129
  __name: 'ShDynamicTabs',
5130
5130
  props: ['tabs','data'],
5131
5131
  setup(__props) {
@@ -5182,12 +5182,12 @@ return (_ctx, _cache) => {
5182
5182
 
5183
5183
  };
5184
5184
 
5185
- script$9.__file = "src/lib/components/ShDynamicTabs.vue";
5185
+ script$a.__file = "src/lib/components/ShDynamicTabs.vue";
5186
5186
 
5187
5187
  const _hoisted_1$7 = ["href"];
5188
5188
 
5189
5189
 
5190
- var script$8 = {
5190
+ var script$9 = {
5191
5191
  __name: 'ShModalBtn',
5192
5192
  props: {
5193
5193
  modalId: {
@@ -5210,12 +5210,12 @@ return (_ctx, _cache) => {
5210
5210
 
5211
5211
  };
5212
5212
 
5213
- script$8.__file = "src/lib/components/ShModalBtn.vue";
5213
+ script$9.__file = "src/lib/components/ShModalBtn.vue";
5214
5214
 
5215
5215
  const _hoisted_1$6 = ["href"];
5216
5216
 
5217
5217
 
5218
- var script$7 = {
5218
+ var script$8 = {
5219
5219
  __name: 'ShCanvasBtn',
5220
5220
  props: {
5221
5221
  canvasId: {
@@ -5239,7 +5239,7 @@ return (_ctx, _cache) => {
5239
5239
 
5240
5240
  };
5241
5241
 
5242
- script$7.__file = "src/lib/components/ShCanvasBtn.vue";
5242
+ script$8.__file = "src/lib/components/ShCanvasBtn.vue";
5243
5243
 
5244
5244
  const useUserStore = pinia.defineStore('user-store', {
5245
5245
  state: () => ({
@@ -5378,7 +5378,7 @@ const _hoisted_17 = { class: "col-md-3" };
5378
5378
  const _hoisted_18 = /*#__PURE__*/ _withScopeId$1(() => /*#__PURE__*/vue.createElementVNode("i", { class: "bi-check" }, null, -1 /* HOISTED */));
5379
5379
 
5380
5380
 
5381
- var script$6 = {
5381
+ var script$7 = {
5382
5382
  __name: 'ManagePermissions',
5383
5383
  emits: ['success'],
5384
5384
  setup(__props, { emit }) {
@@ -5536,7 +5536,7 @@ return (_ctx, _cache) => {
5536
5536
  (permissionsChanged.value)
5537
5537
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, [
5538
5538
  vue.createElementVNode("div", _hoisted_17, [
5539
- vue.createVNode(script$c, {
5539
+ vue.createVNode(script$d, {
5540
5540
  onSuccess: permissionsUpdated,
5541
5541
  url: `sh-departments/department/permissions/${vue.unref(departmentId)}/${selectedModule.value}`,
5542
5542
  data: {permissions: selectedPermissions.value},
@@ -5560,13 +5560,13 @@ return (_ctx, _cache) => {
5560
5560
 
5561
5561
  };
5562
5562
 
5563
- script$6.__scopeId = "data-v-0d4fa0ac";
5564
- script$6.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
5563
+ script$7.__scopeId = "data-v-0d4fa0ac";
5564
+ script$7.__file = "src/lib/components/core/Departments/department/ManagePermissions.vue";
5565
5565
 
5566
5566
  const _hoisted_1$4 = ["href"];
5567
5567
 
5568
5568
 
5569
- var script$5 = {
5569
+ var script$6 = {
5570
5570
  __name: 'ShRoutePopups',
5571
5571
  setup(__props) {
5572
5572
 
@@ -5579,6 +5579,7 @@ vue.ref(null);
5579
5579
  const router = vueRouter.useRouter();
5580
5580
  const position = vue.ref(null);
5581
5581
  const size = vue.ref(null);
5582
+ const title = vue.ref(null);
5582
5583
  vue.watch(() => route.meta, meta => {
5583
5584
  popUp.value = meta.popUp ?? meta.popup;
5584
5585
  if (popUp.value) {
@@ -5586,6 +5587,7 @@ vue.watch(() => route.meta, meta => {
5586
5587
  // !popupPaths.includes(route.path) && popupPaths.push(route.path) && popups.push(meta)
5587
5588
  position.value = meta.position ?? meta.side;
5588
5589
  size.value = meta.size;
5590
+ title.value = meta.title;
5589
5591
  componentView.value = vue.markRaw(route.matched[route.matched.length - 1].components.default);
5590
5592
  setTimeout(() => {
5591
5593
  initPopup();
@@ -5647,8 +5649,9 @@ return (_ctx, _cache) => {
5647
5649
  class: "d-none"
5648
5650
  }, "Open Modal", 8 /* PROPS */, _hoisted_1$4),
5649
5651
  (popUp.value === 'modal')
5650
- ? (vue.openBlock(), vue.createBlock(script$i, {
5652
+ ? (vue.openBlock(), vue.createBlock(script$j, {
5651
5653
  key: 0,
5654
+ "modal-title": title.value,
5652
5655
  "modal-id": vue.unref(modalId),
5653
5656
  "modal-size": size.value
5654
5657
  }, {
@@ -5656,12 +5659,13 @@ return (_ctx, _cache) => {
5656
5659
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
5657
5660
  ]),
5658
5661
  _: 1 /* STABLE */
5659
- }, 8 /* PROPS */, ["modal-id", "modal-size"]))
5662
+ }, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
5660
5663
  : vue.createCommentVNode("v-if", true),
5661
5664
  (['offcanvas','canvas','offCanvas'].includes(popUp.value))
5662
- ? (vue.openBlock(), vue.createBlock(script$f, {
5665
+ ? (vue.openBlock(), vue.createBlock(script$g, {
5663
5666
  key: 1,
5664
5667
  "canvas-id": vue.unref(canvasId),
5668
+ "canvas-title": title.value,
5665
5669
  "canvas-size": size.value,
5666
5670
  position: position.value
5667
5671
  }, {
@@ -5669,7 +5673,7 @@ return (_ctx, _cache) => {
5669
5673
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentView.value)))
5670
5674
  ]),
5671
5675
  _: 1 /* STABLE */
5672
- }, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
5676
+ }, 8 /* PROPS */, ["canvas-id", "canvas-title", "canvas-size", "position"]))
5673
5677
  : vue.createCommentVNode("v-if", true)
5674
5678
  ], 64 /* STABLE_FRAGMENT */))
5675
5679
  }
@@ -5677,7 +5681,28 @@ return (_ctx, _cache) => {
5677
5681
 
5678
5682
  };
5679
5683
 
5680
- script$5.__file = "src/lib/components/popups/ShRoutePopups.vue";
5684
+ script$6.__file = "src/lib/components/popups/ShRoutePopups.vue";
5685
+
5686
+ var script$5 = {
5687
+ __name: 'ShQueryForm',
5688
+ setup(__props) {
5689
+
5690
+ const route = vueRouter.useRoute();
5691
+
5692
+ const fields = route.query.fields.split(',');
5693
+ const action = route.query.action;
5694
+
5695
+ return (_ctx, _cache) => {
5696
+ return (vue.openBlock(), vue.createBlock(script$l, {
5697
+ fields: vue.unref(fields),
5698
+ action: vue.unref(action)
5699
+ }, null, 8 /* PROPS */, ["fields", "action"]))
5700
+ }
5701
+ }
5702
+
5703
+ };
5704
+
5705
+ script$5.__file = "src/lib/components/ShQueryForm.vue";
5681
5706
 
5682
5707
  var script$4 = {
5683
5708
  __name: 'ShQueryPopups',
@@ -5692,12 +5717,19 @@ vue.ref(null);
5692
5717
  const router = vueRouter.useRouter();
5693
5718
  const position = vue.ref(null);
5694
5719
  const size = vue.ref(null);
5720
+ const title = vue.ref(null);
5695
5721
  vue.ref(null);
5722
+
5696
5723
  vue.watch(() => route.query.popup, pop => {
5697
5724
  popUp.value = pop;
5698
5725
  position.value = route.query.position ?? route.query.side;
5699
5726
  size.value = route.query.size;
5700
- popupComponent.value = route.query.comp ?? route.query.component;
5727
+ title.value = route.query.title;
5728
+ let queryComponent = route.query.comp ?? route.query.component;
5729
+ if(queryComponent && ['shqueryform','queryform'].includes(queryComponent.toLowerCase())) {
5730
+ queryComponent = script$5;
5731
+ }
5732
+ popupComponent.value = queryComponent;
5701
5733
  if (popUp.value) {
5702
5734
  setTimeout(() => {
5703
5735
  initPopup();
@@ -5754,8 +5786,9 @@ const goBack = () => {
5754
5786
  return (_ctx, _cache) => {
5755
5787
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
5756
5788
  (popUp.value === 'modal')
5757
- ? (vue.openBlock(), vue.createBlock(script$i, {
5789
+ ? (vue.openBlock(), vue.createBlock(script$j, {
5758
5790
  key: 0,
5791
+ "modal-title": title.value,
5759
5792
  "modal-id": vue.unref(modalId),
5760
5793
  "modal-size": size.value
5761
5794
  }, {
@@ -5763,10 +5796,11 @@ return (_ctx, _cache) => {
5763
5796
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
5764
5797
  ]),
5765
5798
  _: 1 /* STABLE */
5766
- }, 8 /* PROPS */, ["modal-id", "modal-size"]))
5799
+ }, 8 /* PROPS */, ["modal-title", "modal-id", "modal-size"]))
5767
5800
  : vue.createCommentVNode("v-if", true),
5768
5801
  (['offcanvas','canvas','offCanvas'].includes(popUp.value))
5769
- ? (vue.openBlock(), vue.createBlock(script$f, {
5802
+ ? (vue.openBlock(), vue.createBlock(script$g, {
5803
+ "canvas-title": title.value,
5770
5804
  key: size.value + position.value,
5771
5805
  "canvas-id": vue.unref(canvasId),
5772
5806
  "canvas-size": size.value,
@@ -5776,7 +5810,7 @@ return (_ctx, _cache) => {
5776
5810
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(popupComponent))))
5777
5811
  ]),
5778
5812
  _: 1 /* STABLE */
5779
- }, 8 /* PROPS */, ["canvas-id", "canvas-size", "position"]))
5813
+ }, 8 /* PROPS */, ["canvas-title", "canvas-id", "canvas-size", "position"]))
5780
5814
  : vue.createCommentVNode("v-if", true)
5781
5815
  ], 64 /* STABLE_FRAGMENT */))
5782
5816
  }
@@ -6004,7 +6038,7 @@ vue.ref([]);
6004
6038
  let reload = vue.ref(0);
6005
6039
 
6006
6040
  function departmentAdded (response) {
6007
- shRepo.showToast('Department added');
6041
+ shRepo.showToast('Department saved');
6008
6042
  reload.value += 1;
6009
6043
  }
6010
6044
 
@@ -6031,7 +6065,8 @@ return (_ctx, _cache) => {
6031
6065
  _hoisted_4$2,
6032
6066
  vue.createTextVNode(" ADD DEPARTMENT")
6033
6067
  ], 512 /* NEED_PATCH */),
6034
- vue.createVNode(script$b, {
6068
+ vue.createVNode(script$c, {
6069
+ reload: vue.unref(reload),
6035
6070
  headers: ['id','name','description', 'created_at'],
6036
6071
  "end-point": "sh-departments/list",
6037
6072
  actions: {
@@ -6049,13 +6084,13 @@ return (_ctx, _cache) => {
6049
6084
  }
6050
6085
  ]
6051
6086
  }
6052
- }, null, 8 /* PROPS */, ["actions"]),
6053
- vue.createVNode(script$i, {
6087
+ }, null, 8 /* PROPS */, ["reload", "actions"]),
6088
+ vue.createVNode(script$j, {
6054
6089
  "modal-id": "sh_department_modal",
6055
6090
  "modal-title": "Department Form"
6056
6091
  }, {
6057
6092
  default: vue.withCtx(() => [
6058
- vue.createVNode(script$r, {
6093
+ vue.createVNode(script$s, {
6059
6094
  "success-callback": "departmentAdded",
6060
6095
  "current-data": department.value,
6061
6096
  onDepartmentAdded: departmentAdded,
@@ -6190,7 +6225,7 @@ return (_ctx, _cache) => {
6190
6225
  vue.createElementVNode("div", _hoisted_2$1, [
6191
6226
  _hoisted_3$1,
6192
6227
  vue.createElementVNode("h5", null, "Department #" + vue.toDisplayString(vue.unref(department).id) + " - " + vue.toDisplayString(vue.unref(department).name) + " Allowed Modules", 1 /* TEXT */),
6193
- vue.createVNode(script$b, {
6228
+ vue.createVNode(script$c, {
6194
6229
  actions: {
6195
6230
  label: 'Actions',
6196
6231
  actions: [
@@ -6210,12 +6245,12 @@ return (_ctx, _cache) => {
6210
6245
  headers: ['id',showModule,'created_at'],
6211
6246
  "end-point": 'admin/departments/department/list-modules/' + id.value
6212
6247
  }, null, 8 /* PROPS */, ["actions", "reload", "headers", "end-point"]),
6213
- vue.createVNode(script$i, {
6248
+ vue.createVNode(script$j, {
6214
6249
  "modal-id": "addModule",
6215
6250
  "modal-title": "Add Module Department"
6216
6251
  }, {
6217
6252
  default: vue.withCtx(() => [
6218
- vue.createVNode(script$r, {
6253
+ vue.createVNode(script$s, {
6219
6254
  "reload-select-items": vue.unref(reload),
6220
6255
  "success-callback": moduleAdded,
6221
6256
  "fill-selects": {
@@ -6237,7 +6272,7 @@ return (_ctx, _cache) => {
6237
6272
  ref: permissionCanvasBtn,
6238
6273
  "data-bs-toggle": "offcanvas"
6239
6274
  }, null, 512 /* NEED_PATCH */),
6240
- vue.createVNode(script$f, {
6275
+ vue.createVNode(script$g, {
6241
6276
  "canvas-id": "permissionsCanvas",
6242
6277
  position: "end enlarged",
6243
6278
  "canvas-title": "Module Permissions"
@@ -6352,7 +6387,7 @@ return (_ctx, _cache) => {
6352
6387
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
6353
6388
  (section.value === 'login')
6354
6389
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
6355
- vue.createVNode(script$r, {
6390
+ vue.createVNode(script$s, {
6356
6391
  class: "sh-login-form",
6357
6392
  fields: ['email','password'],
6358
6393
  "action-label": "Login",
@@ -6377,7 +6412,7 @@ return (_ctx, _cache) => {
6377
6412
  (vue.unref(registerSubTitle))
6378
6413
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8, vue.toDisplayString(vue.unref(registerSubTitle)), 1 /* TEXT */))
6379
6414
  : vue.createCommentVNode("v-if", true),
6380
- vue.createVNode(script$r, {
6415
+ vue.createVNode(script$s, {
6381
6416
  class: "sh-login-form",
6382
6417
  fields: vue.unref(registrationFields),
6383
6418
  "action-label": "Sign Up",
@@ -6424,7 +6459,7 @@ const ShFrontend = {
6424
6459
  const registerTitle = options.registerTitle ?? 'Create a new account';
6425
6460
  const registerSubTitle = options.registerSubTitle ?? `It's quick and easy`;
6426
6461
  const logoutApiEndpoint = options.logoutApiEndpoint ?? `auth/logout`;
6427
- options.formTextInput ?? script$o;
6462
+ options.formTextInput ?? script$p;
6428
6463
  const loginUrl = options.loginUrl ?? `/login`;
6429
6464
  const redirectLogin = options.redirectLogin ?? `/`;
6430
6465
  const redirectRegister = options.redirectRegister ?? `/`;
@@ -6457,7 +6492,7 @@ const ShFrontend = {
6457
6492
  });
6458
6493
  options.router.addRoute({
6459
6494
  path: '/sh-departments/manage-permissions/:id',
6460
- component: script$6
6495
+ component: script$7
6461
6496
  });
6462
6497
  }
6463
6498
  //filter unwanted config items from options to be put in local storage
@@ -6483,26 +6518,26 @@ var shGql = {
6483
6518
  };
6484
6519
 
6485
6520
  exports.Countries = countries;
6486
- exports.ManagePermissions = script$6;
6487
- exports.ShAutoForm = script$k;
6488
- exports.ShCanvas = script$f;
6489
- exports.ShCanvasBtn = script$7;
6490
- exports.ShConfirmAction = script$d;
6491
- exports.ShDropDownForm = script$j;
6492
- exports.ShDynamicTabs = script$9;
6493
- exports.ShForm = script$r;
6521
+ exports.ManagePermissions = script$7;
6522
+ exports.ShAutoForm = script$l;
6523
+ exports.ShCanvas = script$g;
6524
+ exports.ShCanvasBtn = script$8;
6525
+ exports.ShConfirmAction = script$e;
6526
+ exports.ShDropDownForm = script$k;
6527
+ exports.ShDynamicTabs = script$a;
6528
+ exports.ShForm = script$s;
6494
6529
  exports.ShFrontend = ShFrontend;
6495
- exports.ShModal = script$i;
6496
- exports.ShModalBtn = script$8;
6497
- exports.ShModalForm = script$h;
6498
- exports.ShModalFormAuto = script$g;
6499
- exports.ShPhone = script$t;
6530
+ exports.ShModal = script$j;
6531
+ exports.ShModalBtn = script$9;
6532
+ exports.ShModalForm = script$i;
6533
+ exports.ShModalFormAuto = script$h;
6534
+ exports.ShPhone = script$u;
6500
6535
  exports.ShQueryPopups = script$4;
6501
6536
  exports.ShRange = script$3;
6502
- exports.ShRoutePopups = script$5;
6503
- exports.ShSilentAction = script$c;
6504
- exports.ShTable = script$b;
6505
- exports.ShTabs = script$a;
6537
+ exports.ShRoutePopups = script$6;
6538
+ exports.ShSilentAction = script$d;
6539
+ exports.ShTable = script$c;
6540
+ exports.ShTabs = script$b;
6506
6541
  exports.shApis = shApis;
6507
6542
  exports.shGql = shGql;
6508
6543
  exports.shRepo = shRepo;