@iankibetsh/shframework 3.0.4 → 3.0.7

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
@@ -2019,11 +2019,11 @@ const _hoisted_5$9 = ["id"];
2019
2019
  const _hoisted_6$8 = ["id", "aria-labelledby"];
2020
2020
  const _hoisted_7$7 = { key: 0 };
2021
2021
  const _hoisted_8$6 = ["onClick"];
2022
- const _hoisted_9$6 = {
2022
+ const _hoisted_9$7 = {
2023
2023
  key: 1,
2024
2024
  class: "dropdown-item sh-suggest-no-results"
2025
2025
  };
2026
- const _hoisted_10$5 = {
2026
+ const _hoisted_10$6 = {
2027
2027
  key: 2,
2028
2028
  class: "dropdown-item sh-suggest-no-input"
2029
2029
  };
@@ -2031,7 +2031,7 @@ const _hoisted_10$5 = {
2031
2031
 
2032
2032
  var script$t = {
2033
2033
  __name: 'ShSuggest',
2034
- props: ['data','url','modelValue'],
2034
+ props: ['data','allowMultiple','url','modelValue'],
2035
2035
  emits: ['update:modelValue'],
2036
2036
  setup(__props, { emit }) {
2037
2037
 
@@ -2161,8 +2161,8 @@ return (_ctx, _cache) => {
2161
2161
  ], 64 /* STABLE_FRAGMENT */))
2162
2162
  }), 128 /* KEYED_FRAGMENT */))
2163
2163
  : (vue.unref(searchText))
2164
- ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$6, " No results found "))
2165
- : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$5, " Type to search... "))
2164
+ ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$7, " No results found "))
2165
+ : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$6, " Type to search... "))
2166
2166
  ], 8 /* PROPS */, _hoisted_6$8)
2167
2167
  ]))
2168
2168
  : vue.createCommentVNode("v-if", true)
@@ -2517,11 +2517,11 @@ const _hoisted_5$8 = { key: 0 };
2517
2517
  const _hoisted_6$7 = { key: 1 };
2518
2518
  const _hoisted_7$6 = { class: "row" };
2519
2519
  const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2520
- const _hoisted_9$5 = { class: "col-md-12" };
2521
- const _hoisted_10$4 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2522
- const _hoisted_11$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2523
- const _hoisted_12$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2524
- const _hoisted_13$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2520
+ const _hoisted_9$6 = { class: "col-md-12" };
2521
+ const _hoisted_10$5 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2522
+ const _hoisted_11$5 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2523
+ const _hoisted_12$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2524
+ const _hoisted_13$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2525
2525
  const _hoisted_14$3 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
2526
2526
  const _hoisted_15$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2527
2527
  const _hoisted_16$3 = ["name", "onFocus", "onUpdate:modelValue"];
@@ -2589,7 +2589,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2589
2589
  key: field
2590
2590
  }, [
2591
2591
  vue.createElementVNode("label", _hoisted_8$5, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2592
- vue.createElementVNode("div", _hoisted_9$5, [
2592
+ vue.createElementVNode("div", _hoisted_9$6, [
2593
2593
  ($options.getFieldType(field) === 'component')
2594
2594
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.customComponent[field]), {
2595
2595
  key: 0,
@@ -2614,7 +2614,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2614
2614
  ref: 'file_'+field,
2615
2615
  onChange: $event => ($options.handleFileUpload(field)),
2616
2616
  type: "file"
2617
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$4))
2617
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$5))
2618
2618
  : vue.createCommentVNode("v-if", true),
2619
2619
  ($options.getFieldType(field) === 'numeric')
2620
2620
  ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -2626,7 +2626,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2626
2626
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2627
2627
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2628
2628
  type: "number"
2629
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$4)), [
2629
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$5)), [
2630
2630
  [vue.vModelText, _ctx.form_elements[field]]
2631
2631
  ])
2632
2632
  : vue.createCommentVNode("v-if", true),
@@ -2640,7 +2640,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2640
2640
  class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2641
2641
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2642
2642
  type: "password"
2643
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$3)), [
2643
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$4)), [
2644
2644
  [vue.vModelText, _ctx.form_elements[field]]
2645
2645
  ])
2646
2646
  : vue.createCommentVNode("v-if", true),
@@ -2655,7 +2655,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2655
2655
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2656
2656
  type: "email",
2657
2657
  required: ""
2658
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$3)), [
2658
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$4)), [
2659
2659
  [vue.vModelText, _ctx.form_elements[field]]
2660
2660
  ])
2661
2661
  : vue.createCommentVNode("v-if", true),
@@ -3059,15 +3059,27 @@ const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /
3059
3059
  const _hoisted_2$b = ["onUpdate:modelValue"];
3060
3060
  const _hoisted_3$a = ["innerHTML"];
3061
3061
  const _hoisted_4$a = ["innerHTML"];
3062
- const _hoisted_5$7 = ["innerHTML"];
3063
- const _hoisted_6$6 = ["disabled"];
3064
- const _hoisted_7$5 = {
3062
+ const _hoisted_5$7 = {
3063
+ key: 2,
3064
+ class: "form-notch"
3065
+ };
3066
+ const _hoisted_6$6 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */);
3067
+ const _hoisted_7$5 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */);
3068
+ const _hoisted_8$4 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */);
3069
+ const _hoisted_9$5 = [
3070
+ _hoisted_6$6,
3071
+ _hoisted_7$5,
3072
+ _hoisted_8$4
3073
+ ];
3074
+ const _hoisted_10$4 = ["innerHTML"];
3075
+ const _hoisted_11$4 = ["disabled"];
3076
+ const _hoisted_12$3 = {
3065
3077
  key: 0,
3066
3078
  class: "spinner-border spinner-border-sm",
3067
3079
  role: "status",
3068
3080
  "aria-hidden": "true"
3069
3081
  };
3070
- const _hoisted_8$4 = { key: 1 };
3082
+ const _hoisted_13$3 = { key: 1 };
3071
3083
 
3072
3084
 
3073
3085
  var script$l = {
@@ -3174,7 +3186,6 @@ const submitBtn = vue.ref(false);
3174
3186
  const validationErrors = vue.ref({});
3175
3187
  const formError = vue.ref(null);
3176
3188
  const submitForm = e => {
3177
- console.log(formFields.value);
3178
3189
  submitBtnWidth.value = submitBtn.value.getBoundingClientRect().width + 'px !important';
3179
3190
  validationErrors.value = {};
3180
3191
  e.preventDefault();
@@ -3197,7 +3208,6 @@ const submitForm = e => {
3197
3208
  args = '';
3198
3209
  }
3199
3210
  const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
3200
- console.log(mutation);
3201
3211
  shApis.graphQlMutate(mutation).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
3202
3212
  } else {
3203
3213
  shApis.doPost(props.action,data).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
@@ -3216,7 +3226,6 @@ const handleSuccessRequest = res=>{
3216
3226
  };
3217
3227
 
3218
3228
  const handlefailedRequest = reason=>{
3219
- console.log(reason);
3220
3229
  loading.value = false;
3221
3230
  const httpStatus = reason.response ? reason.response.status:0;
3222
3231
  formError.value = httpStatus === 422 ? formError.value = null:reason.message ?? null;
@@ -3241,7 +3250,6 @@ const setExistingData = (existingData)=>{
3241
3250
  // existingData[field.field] && (field.value = existingData[field.field])
3242
3251
  });
3243
3252
  formFields.value = null;
3244
- console.log(newFields);
3245
3253
  formFields.value = newFields;
3246
3254
  }
3247
3255
  };
@@ -3322,16 +3330,19 @@ return (_ctx, _cache) => {
3322
3330
  innerHTML: field.label
3323
3331
  }, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
3324
3332
  : vue.createCommentVNode("v-if", true),
3333
+ (vue.unref(isFloating))
3334
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7, _hoisted_9$5))
3335
+ : vue.createCommentVNode("v-if", true),
3325
3336
  (field.helper)
3326
3337
  ? (vue.openBlock(), vue.createElementBlock("div", {
3327
- key: 2,
3338
+ key: 3,
3328
3339
  class: vue.normalizeClass(getElementClass('helperText')),
3329
3340
  innerHTML: field.helper
3330
- }, null, 10 /* CLASS, PROPS */, _hoisted_5$7))
3341
+ }, null, 10 /* CLASS, PROPS */, _hoisted_10$4))
3331
3342
  : vue.createCommentVNode("v-if", true),
3332
3343
  (validationErrors.value[field.field])
3333
3344
  ? (vue.openBlock(), vue.createElementBlock("div", {
3334
- key: 3,
3345
+ key: 4,
3335
3346
  class: vue.normalizeClass(getElementClass('invalidFeedback'))
3336
3347
  }, vue.toDisplayString(validationErrors.value[field.field]), 3 /* TEXT, CLASS */))
3337
3348
  : vue.createCommentVNode("v-if", true)
@@ -3349,12 +3360,12 @@ return (_ctx, _cache) => {
3349
3360
  class: vue.normalizeClass(getElementClass('actionBtn'))
3350
3361
  }, [
3351
3362
  (loading.value)
3352
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$5))
3363
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12$3))
3353
3364
  : vue.createCommentVNode("v-if", true),
3354
3365
  (!loading.value)
3355
- ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$4, "Submit"))
3366
+ ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$3, "Submit"))
3356
3367
  : vue.createCommentVNode("v-if", true)
3357
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$6)
3368
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
3358
3369
  ], 2 /* CLASS */)
3359
3370
  ], 34 /* CLASS, HYDRATE_EVENTS */)
3360
3371
  ], 64 /* STABLE_FRAGMENT */))
@@ -4290,7 +4301,6 @@ script$c.__file = "src/lib/components/ShRange.vue";
4290
4301
  var script$b = {
4291
4302
  name: 'sh-table',
4292
4303
  props: ['endPoint', 'headers', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange'],
4293
- inject: ['channel'],
4294
4304
  data() {
4295
4305
  return {
4296
4306
  order_by: '',
@@ -4323,7 +4333,6 @@ var script$b = {
4323
4333
  if (this.headers) {
4324
4334
  this.tableHeaders = this.headers;
4325
4335
  }
4326
- if (this.event) ;
4327
4336
  if (this.actions && this.actions.actions) {
4328
4337
  this.actions.actions.forEach(action => {
4329
4338
  if (action.canvasComponent) {
package/dist/library.mjs CHANGED
@@ -2007,11 +2007,11 @@ 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"];
2010
- const _hoisted_9$6 = {
2010
+ const _hoisted_9$7 = {
2011
2011
  key: 1,
2012
2012
  class: "dropdown-item sh-suggest-no-results"
2013
2013
  };
2014
- const _hoisted_10$5 = {
2014
+ const _hoisted_10$6 = {
2015
2015
  key: 2,
2016
2016
  class: "dropdown-item sh-suggest-no-input"
2017
2017
  };
@@ -2019,7 +2019,7 @@ const _hoisted_10$5 = {
2019
2019
 
2020
2020
  var script$t = {
2021
2021
  __name: 'ShSuggest',
2022
- props: ['data','url','modelValue'],
2022
+ props: ['data','allowMultiple','url','modelValue'],
2023
2023
  emits: ['update:modelValue'],
2024
2024
  setup(__props, { emit }) {
2025
2025
 
@@ -2149,8 +2149,8 @@ return (_ctx, _cache) => {
2149
2149
  ], 64 /* STABLE_FRAGMENT */))
2150
2150
  }), 128 /* KEYED_FRAGMENT */))
2151
2151
  : (unref(searchText))
2152
- ? (openBlock(), createElementBlock("li", _hoisted_9$6, " No results found "))
2153
- : (openBlock(), createElementBlock("li", _hoisted_10$5, " Type to search... "))
2152
+ ? (openBlock(), createElementBlock("li", _hoisted_9$7, " No results found "))
2153
+ : (openBlock(), createElementBlock("li", _hoisted_10$6, " Type to search... "))
2154
2154
  ], 8 /* PROPS */, _hoisted_6$8)
2155
2155
  ]))
2156
2156
  : createCommentVNode("v-if", true)
@@ -2505,11 +2505,11 @@ const _hoisted_5$8 = { key: 0 };
2505
2505
  const _hoisted_6$7 = { key: 1 };
2506
2506
  const _hoisted_7$6 = { class: "row" };
2507
2507
  const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2508
- const _hoisted_9$5 = { class: "col-md-12" };
2509
- const _hoisted_10$4 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2510
- const _hoisted_11$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2511
- const _hoisted_12$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2512
- const _hoisted_13$3 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2508
+ const _hoisted_9$6 = { class: "col-md-12" };
2509
+ const _hoisted_10$5 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
2510
+ const _hoisted_11$5 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2511
+ const _hoisted_12$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2512
+ const _hoisted_13$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2513
2513
  const _hoisted_14$3 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
2514
2514
  const _hoisted_15$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
2515
2515
  const _hoisted_16$3 = ["name", "onFocus", "onUpdate:modelValue"];
@@ -2577,7 +2577,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2577
2577
  key: field
2578
2578
  }, [
2579
2579
  createElementVNode("label", _hoisted_8$5, toDisplayString($options.getLabel(field)), 1 /* TEXT */),
2580
- createElementVNode("div", _hoisted_9$5, [
2580
+ createElementVNode("div", _hoisted_9$6, [
2581
2581
  ($options.getFieldType(field) === 'component')
2582
2582
  ? (openBlock(), createBlock(resolveDynamicComponent($props.customComponent[field]), {
2583
2583
  key: 0,
@@ -2602,7 +2602,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2602
2602
  ref: 'file_'+field,
2603
2603
  onChange: $event => ($options.handleFileUpload(field)),
2604
2604
  type: "file"
2605
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$4))
2605
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$5))
2606
2606
  : createCommentVNode("v-if", true),
2607
2607
  ($options.getFieldType(field) === 'numeric')
2608
2608
  ? withDirectives((openBlock(), createElementBlock("input", {
@@ -2614,7 +2614,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2614
2614
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2615
2615
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2616
2616
  type: "number"
2617
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$4)), [
2617
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$5)), [
2618
2618
  [vModelText, _ctx.form_elements[field]]
2619
2619
  ])
2620
2620
  : createCommentVNode("v-if", true),
@@ -2628,7 +2628,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2628
2628
  class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
2629
2629
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2630
2630
  type: "password"
2631
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$3)), [
2631
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$4)), [
2632
2632
  [vModelText, _ctx.form_elements[field]]
2633
2633
  ])
2634
2634
  : createCommentVNode("v-if", true),
@@ -2643,7 +2643,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
2643
2643
  "onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
2644
2644
  type: "email",
2645
2645
  required: ""
2646
- }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$3)), [
2646
+ }, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$4)), [
2647
2647
  [vModelText, _ctx.form_elements[field]]
2648
2648
  ])
2649
2649
  : createCommentVNode("v-if", true),
@@ -3047,15 +3047,27 @@ const _hoisted_1$i = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HO
3047
3047
  const _hoisted_2$b = ["onUpdate:modelValue"];
3048
3048
  const _hoisted_3$a = ["innerHTML"];
3049
3049
  const _hoisted_4$a = ["innerHTML"];
3050
- const _hoisted_5$7 = ["innerHTML"];
3051
- const _hoisted_6$6 = ["disabled"];
3052
- const _hoisted_7$5 = {
3050
+ const _hoisted_5$7 = {
3051
+ key: 2,
3052
+ class: "form-notch"
3053
+ };
3054
+ const _hoisted_6$6 = /*#__PURE__*/createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */);
3055
+ const _hoisted_7$5 = /*#__PURE__*/createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */);
3056
+ const _hoisted_8$4 = /*#__PURE__*/createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */);
3057
+ const _hoisted_9$5 = [
3058
+ _hoisted_6$6,
3059
+ _hoisted_7$5,
3060
+ _hoisted_8$4
3061
+ ];
3062
+ const _hoisted_10$4 = ["innerHTML"];
3063
+ const _hoisted_11$4 = ["disabled"];
3064
+ const _hoisted_12$3 = {
3053
3065
  key: 0,
3054
3066
  class: "spinner-border spinner-border-sm",
3055
3067
  role: "status",
3056
3068
  "aria-hidden": "true"
3057
3069
  };
3058
- const _hoisted_8$4 = { key: 1 };
3070
+ const _hoisted_13$3 = { key: 1 };
3059
3071
 
3060
3072
 
3061
3073
  var script$l = {
@@ -3162,7 +3174,6 @@ const submitBtn = ref(false);
3162
3174
  const validationErrors = ref({});
3163
3175
  const formError = ref(null);
3164
3176
  const submitForm = e => {
3165
- console.log(formFields.value);
3166
3177
  submitBtnWidth.value = submitBtn.value.getBoundingClientRect().width + 'px !important';
3167
3178
  validationErrors.value = {};
3168
3179
  e.preventDefault();
@@ -3185,7 +3196,6 @@ const submitForm = e => {
3185
3196
  args = '';
3186
3197
  }
3187
3198
  const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
3188
- console.log(mutation);
3189
3199
  shApis.graphQlMutate(mutation).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
3190
3200
  } else {
3191
3201
  shApis.doPost(props.action,data).then(res=>handleSuccessRequest(res)).catch(reason=>handlefailedRequest(reason));
@@ -3204,7 +3214,6 @@ const handleSuccessRequest = res=>{
3204
3214
  };
3205
3215
 
3206
3216
  const handlefailedRequest = reason=>{
3207
- console.log(reason);
3208
3217
  loading.value = false;
3209
3218
  const httpStatus = reason.response ? reason.response.status:0;
3210
3219
  formError.value = httpStatus === 422 ? formError.value = null:reason.message ?? null;
@@ -3229,7 +3238,6 @@ const setExistingData = (existingData)=>{
3229
3238
  // existingData[field.field] && (field.value = existingData[field.field])
3230
3239
  });
3231
3240
  formFields.value = null;
3232
- console.log(newFields);
3233
3241
  formFields.value = newFields;
3234
3242
  }
3235
3243
  };
@@ -3310,16 +3318,19 @@ return (_ctx, _cache) => {
3310
3318
  innerHTML: field.label
3311
3319
  }, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
3312
3320
  : createCommentVNode("v-if", true),
3321
+ (unref(isFloating))
3322
+ ? (openBlock(), createElementBlock("div", _hoisted_5$7, _hoisted_9$5))
3323
+ : createCommentVNode("v-if", true),
3313
3324
  (field.helper)
3314
3325
  ? (openBlock(), createElementBlock("div", {
3315
- key: 2,
3326
+ key: 3,
3316
3327
  class: normalizeClass(getElementClass('helperText')),
3317
3328
  innerHTML: field.helper
3318
- }, null, 10 /* CLASS, PROPS */, _hoisted_5$7))
3329
+ }, null, 10 /* CLASS, PROPS */, _hoisted_10$4))
3319
3330
  : createCommentVNode("v-if", true),
3320
3331
  (validationErrors.value[field.field])
3321
3332
  ? (openBlock(), createElementBlock("div", {
3322
- key: 3,
3333
+ key: 4,
3323
3334
  class: normalizeClass(getElementClass('invalidFeedback'))
3324
3335
  }, toDisplayString(validationErrors.value[field.field]), 3 /* TEXT, CLASS */))
3325
3336
  : createCommentVNode("v-if", true)
@@ -3337,12 +3348,12 @@ return (_ctx, _cache) => {
3337
3348
  class: normalizeClass(getElementClass('actionBtn'))
3338
3349
  }, [
3339
3350
  (loading.value)
3340
- ? (openBlock(), createElementBlock("span", _hoisted_7$5))
3351
+ ? (openBlock(), createElementBlock("span", _hoisted_12$3))
3341
3352
  : createCommentVNode("v-if", true),
3342
3353
  (!loading.value)
3343
- ? (openBlock(), createElementBlock("span", _hoisted_8$4, "Submit"))
3354
+ ? (openBlock(), createElementBlock("span", _hoisted_13$3, "Submit"))
3344
3355
  : createCommentVNode("v-if", true)
3345
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$6)
3356
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
3346
3357
  ], 2 /* CLASS */)
3347
3358
  ], 34 /* CLASS, HYDRATE_EVENTS */)
3348
3359
  ], 64 /* STABLE_FRAGMENT */))
@@ -4278,7 +4289,6 @@ script$c.__file = "src/lib/components/ShRange.vue";
4278
4289
  var script$b = {
4279
4290
  name: 'sh-table',
4280
4291
  props: ['endPoint', 'headers', 'query', 'pageCount', 'actions', 'hideCount', 'hideLoadMore', 'links', 'reload', 'hideSearch', 'sharedData', 'searchPlaceholder', 'event', 'displayMore', 'displayMoreBtnClass', 'moreDetailsColumns', 'moreDetailsFields', 'hasDownload', 'downloadFields', 'tableHover', 'hideIds', 'paginationStyle', 'hasRange'],
4281
- inject: ['channel'],
4282
4292
  data() {
4283
4293
  return {
4284
4294
  order_by: '',
@@ -4311,7 +4321,6 @@ var script$b = {
4311
4321
  if (this.headers) {
4312
4322
  this.tableHeaders = this.headers;
4313
4323
  }
4314
- if (this.event) ;
4315
4324
  if (this.actions && this.actions.actions) {
4316
4325
  this.actions.actions.forEach(action => {
4317
4326
  if (action.canvasComponent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "3.0.4",
3
+ "version": "3.0.7",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",