@iankibetsh/shframework 5.5.8 → 5.6.0

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
@@ -9,7 +9,6 @@ var bootstrap = require('bootstrap');
9
9
  var NProgress = require('nprogress');
10
10
  var vue = require('vue');
11
11
  var _ = require('lodash');
12
- var ShModalForm = require('@/lib/components/ShModalForm.vue');
13
12
  var pinia = require('pinia');
14
13
  var vueRouter = require('vue-router');
15
14
 
@@ -19,7 +18,6 @@ var Axios__default = /*#__PURE__*/_interopDefaultLegacy(Axios);
19
18
  var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
20
19
  var NProgress__default = /*#__PURE__*/_interopDefaultLegacy(NProgress);
21
20
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
22
- var ShModalForm__default = /*#__PURE__*/_interopDefaultLegacy(ShModalForm);
23
21
 
24
22
  function setItem (key, value) {
25
23
  let toStore = value;
@@ -3861,7 +3859,11 @@ return (_ctx, _cache) => {
3861
3859
 
3862
3860
  script$p.__file = "src/lib/components/ShModal.vue";
3863
3861
 
3864
- const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
3862
+ const _hoisted_1$j = {
3863
+ class: "dropdown sh-dropdown-form",
3864
+ "data-bs-auto-close": "outside",
3865
+ "aria-expanded": "false"
3866
+ };
3865
3867
 
3866
3868
  var script$o = {
3867
3869
  __name: 'ShDropDownForm',
@@ -3909,36 +3911,38 @@ const formError = (res)=>{
3909
3911
  emit('formError',res);
3910
3912
  };
3911
3913
  const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
3914
+ const cleanedProp = vue.computed(()=>{
3915
+ const p = {...props};
3916
+ delete p.class;
3917
+ return p
3918
+ });
3912
3919
 
3913
3920
  return (_ctx, _cache) => {
3914
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3915
- _cache[0] || (_cache[0] = vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
3916
- vue.createElementVNode("div", _hoisted_1$j, [
3917
- vue.createElementVNode("a", {
3918
- class: vue.normalizeClass(vue.unref(btnClass)),
3919
- href: "#",
3920
- role: "button",
3921
- id: dropdownId,
3922
- "data-bs-toggle": "dropdown",
3923
- "data-bs-auto-close": "outside",
3924
- "aria-expanded": "false"
3925
- }, [
3926
- vue.renderSlot(_ctx.$slots, "default")
3927
- ], 2 /* CLASS */),
3928
- vue.createElementVNode("div", {
3929
- class: "dropdown-menu px-2 py-1",
3930
- "aria-labelledby": dropdownId
3931
- }, [
3932
- (vue.openBlock(), vue.createBlock(script$q, vue.mergeProps({
3933
- onSuccess: success,
3934
- onFieldChanged: fieldChanged,
3935
- onFormSubmitted: formSubmitted,
3936
- onFormError: formError,
3937
- key: JSON.stringify(__props.currentData ?? {})
3938
- }, props), null, 16 /* FULL_PROPS */))
3939
- ])
3921
+ return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
3922
+ vue.createElementVNode("a", {
3923
+ class: vue.normalizeClass(vue.unref(btnClass)),
3924
+ href: "#",
3925
+ role: "button",
3926
+ id: dropdownId,
3927
+ "data-bs-toggle": "dropdown",
3928
+ "data-bs-auto-close": "outside",
3929
+ "aria-expanded": "false"
3930
+ }, [
3931
+ vue.renderSlot(_ctx.$slots, "default")
3932
+ ], 2 /* CLASS */),
3933
+ vue.createElementVNode("div", {
3934
+ class: "dropdown-menu px-2 py-1",
3935
+ "aria-labelledby": dropdownId
3936
+ }, [
3937
+ (vue.openBlock(), vue.createBlock(script$q, vue.mergeProps({
3938
+ onSuccess: success,
3939
+ onFieldChanged: fieldChanged,
3940
+ onFormSubmitted: formSubmitted,
3941
+ onFormError: formError,
3942
+ key: JSON.stringify(__props.currentData ?? {})
3943
+ }, cleanedProp.value), null, 16 /* FULL_PROPS */))
3940
3944
  ])
3941
- ], 64 /* STABLE_FRAGMENT */))
3945
+ ]))
3942
3946
  }
3943
3947
  }
3944
3948
 
@@ -4049,7 +4053,7 @@ var script$m = {
4049
4053
 
4050
4054
 
4051
4055
  return (_ctx, _cache) => {
4052
- return (vue.openBlock(), vue.createBlock(ShModalForm__default["default"], null, {
4056
+ return (vue.openBlock(), vue.createBlock(script$n, null, {
4053
4057
  default: vue.withCtx(() => [
4054
4058
  vue.renderSlot(_ctx.$slots, "default")
4055
4059
  ]),
package/dist/library.mjs CHANGED
@@ -5,7 +5,6 @@ import { Modal, Offcanvas } from 'bootstrap';
5
5
  import NProgress from 'nprogress';
6
6
  import { openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, vModelSelect, vModelText, ref, onMounted, watch, unref, normalizeClass, createBlock, resolveDynamicComponent, resolveComponent, inject, useTemplateRef, mergeProps, renderSlot, normalizeStyle, computed, Teleport, createVNode, withCtx, useSlots, onBeforeUnmount, reactive, vModelCheckbox, resolveDirective, shallowRef, normalizeProps, markRaw, isRef } from 'vue';
7
7
  import _ from 'lodash';
8
- import ShModalForm from '@/lib/components/ShModalForm.vue';
9
8
  import { defineStore, storeToRefs } from 'pinia';
10
9
  import { useRoute, useRouter } from 'vue-router';
11
10
 
@@ -3849,7 +3848,11 @@ return (_ctx, _cache) => {
3849
3848
 
3850
3849
  script$p.__file = "src/lib/components/ShModal.vue";
3851
3850
 
3852
- const _hoisted_1$j = { class: "dropdown sh-dropdown-form" };
3851
+ const _hoisted_1$j = {
3852
+ class: "dropdown sh-dropdown-form",
3853
+ "data-bs-auto-close": "outside",
3854
+ "aria-expanded": "false"
3855
+ };
3853
3856
 
3854
3857
  var script$o = {
3855
3858
  __name: 'ShDropDownForm',
@@ -3897,36 +3900,38 @@ const formError = (res)=>{
3897
3900
  emit('formError',res);
3898
3901
  };
3899
3902
  const dropdownId = 'dropdown' + (Math.random() + 1).toString(36).substring(2);
3903
+ const cleanedProp = computed(()=>{
3904
+ const p = {...props};
3905
+ delete p.class;
3906
+ return p
3907
+ });
3900
3908
 
3901
3909
  return (_ctx, _cache) => {
3902
- return (openBlock(), createElementBlock(Fragment, null, [
3903
- _cache[0] || (_cache[0] = createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
3904
- createElementVNode("div", _hoisted_1$j, [
3905
- createElementVNode("a", {
3906
- class: normalizeClass(unref(btnClass)),
3907
- href: "#",
3908
- role: "button",
3909
- id: dropdownId,
3910
- "data-bs-toggle": "dropdown",
3911
- "data-bs-auto-close": "outside",
3912
- "aria-expanded": "false"
3913
- }, [
3914
- renderSlot(_ctx.$slots, "default")
3915
- ], 2 /* CLASS */),
3916
- createElementVNode("div", {
3917
- class: "dropdown-menu px-2 py-1",
3918
- "aria-labelledby": dropdownId
3919
- }, [
3920
- (openBlock(), createBlock(script$q, mergeProps({
3921
- onSuccess: success,
3922
- onFieldChanged: fieldChanged,
3923
- onFormSubmitted: formSubmitted,
3924
- onFormError: formError,
3925
- key: JSON.stringify(__props.currentData ?? {})
3926
- }, props), null, 16 /* FULL_PROPS */))
3927
- ])
3910
+ return (openBlock(), createElementBlock("div", _hoisted_1$j, [
3911
+ createElementVNode("a", {
3912
+ class: normalizeClass(unref(btnClass)),
3913
+ href: "#",
3914
+ role: "button",
3915
+ id: dropdownId,
3916
+ "data-bs-toggle": "dropdown",
3917
+ "data-bs-auto-close": "outside",
3918
+ "aria-expanded": "false"
3919
+ }, [
3920
+ renderSlot(_ctx.$slots, "default")
3921
+ ], 2 /* CLASS */),
3922
+ createElementVNode("div", {
3923
+ class: "dropdown-menu px-2 py-1",
3924
+ "aria-labelledby": dropdownId
3925
+ }, [
3926
+ (openBlock(), createBlock(script$q, mergeProps({
3927
+ onSuccess: success,
3928
+ onFieldChanged: fieldChanged,
3929
+ onFormSubmitted: formSubmitted,
3930
+ onFormError: formError,
3931
+ key: JSON.stringify(__props.currentData ?? {})
3932
+ }, cleanedProp.value), null, 16 /* FULL_PROPS */))
3928
3933
  ])
3929
- ], 64 /* STABLE_FRAGMENT */))
3934
+ ]))
3930
3935
  }
3931
3936
  }
3932
3937
 
@@ -4037,7 +4042,7 @@ var script$m = {
4037
4042
 
4038
4043
 
4039
4044
  return (_ctx, _cache) => {
4040
- return (openBlock(), createBlock(ShModalForm, null, {
4045
+ return (openBlock(), createBlock(script$n, null, {
4041
4046
  default: withCtx(() => [
4042
4047
  renderSlot(_ctx.$slots, "default")
4043
4048
  ]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "5.5.8",
3
+ "version": "5.6.0",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",