@iankibetsh/shframework 5.5.9 → 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.
@@ -1,36 +1,4 @@
1
1
 
2
- .colored-toast.swal2-icon-success {
3
- background-color: #a5dc86 !important;
4
- }
5
-
6
- .colored-toast.swal2-icon-error {
7
- background-color: #f27474 !important;
8
- }
9
-
10
- .colored-toast.swal2-icon-warning {
11
- background-color: #f8bb86 !important;
12
- }
13
-
14
- .colored-toast.swal2-icon-info {
15
- background-color: #3fc3ee !important;
16
- }
17
-
18
- .colored-toast.swal2-icon-question {
19
- background-color: #87adbd !important;
20
- }
21
-
22
- .colored-toast .swal2-title {
23
- color: white;
24
- }
25
-
26
- .colored-toast .swal2-close {
27
- color: white;
28
- }
29
-
30
- .colored-toast .swal2-html-container {
31
- color: white;
32
- }
33
-
34
2
  .sh-phone{
35
3
  display: flex;
36
4
  width: 100%;
@@ -63,6 +31,38 @@
63
31
  opacity: 0.5;
64
32
  }
65
33
 
34
+ .colored-toast.swal2-icon-success {
35
+ background-color: #a5dc86 !important;
36
+ }
37
+
38
+ .colored-toast.swal2-icon-error {
39
+ background-color: #f27474 !important;
40
+ }
41
+
42
+ .colored-toast.swal2-icon-warning {
43
+ background-color: #f8bb86 !important;
44
+ }
45
+
46
+ .colored-toast.swal2-icon-info {
47
+ background-color: #3fc3ee !important;
48
+ }
49
+
50
+ .colored-toast.swal2-icon-question {
51
+ background-color: #87adbd !important;
52
+ }
53
+
54
+ .colored-toast .swal2-title {
55
+ color: white;
56
+ }
57
+
58
+ .colored-toast .swal2-close {
59
+ color: white;
60
+ }
61
+
62
+ .colored-toast .swal2-html-container {
63
+ color: white;
64
+ }
65
+
66
66
  .permissions-main {
67
67
  background: #edeff2;
68
68
  }
package/dist/library.js CHANGED
@@ -3859,7 +3859,11 @@ return (_ctx, _cache) => {
3859
3859
 
3860
3860
  script$p.__file = "src/lib/components/ShModal.vue";
3861
3861
 
3862
- 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
+ };
3863
3867
 
3864
3868
  var script$o = {
3865
3869
  __name: 'ShDropDownForm',
@@ -3907,36 +3911,38 @@ const formError = (res)=>{
3907
3911
  emit('formError',res);
3908
3912
  };
3909
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
+ });
3910
3919
 
3911
3920
  return (_ctx, _cache) => {
3912
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
3913
- _cache[0] || (_cache[0] = vue.createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
3914
- vue.createElementVNode("div", _hoisted_1$j, [
3915
- vue.createElementVNode("a", {
3916
- class: vue.normalizeClass(vue.unref(btnClass)),
3917
- href: "#",
3918
- role: "button",
3919
- id: dropdownId,
3920
- "data-bs-toggle": "dropdown",
3921
- "data-bs-auto-close": "outside",
3922
- "aria-expanded": "false"
3923
- }, [
3924
- vue.renderSlot(_ctx.$slots, "default")
3925
- ], 2 /* CLASS */),
3926
- vue.createElementVNode("div", {
3927
- class: "dropdown-menu px-2 py-1",
3928
- "aria-labelledby": dropdownId
3929
- }, [
3930
- (vue.openBlock(), vue.createBlock(script$q, vue.mergeProps({
3931
- onSuccess: success,
3932
- onFieldChanged: fieldChanged,
3933
- onFormSubmitted: formSubmitted,
3934
- onFormError: formError,
3935
- key: JSON.stringify(__props.currentData ?? {})
3936
- }, props), null, 16 /* FULL_PROPS */))
3937
- ])
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 */))
3938
3944
  ])
3939
- ], 64 /* STABLE_FRAGMENT */))
3945
+ ]))
3940
3946
  }
3941
3947
  }
3942
3948
 
package/dist/library.mjs CHANGED
@@ -3848,7 +3848,11 @@ return (_ctx, _cache) => {
3848
3848
 
3849
3849
  script$p.__file = "src/lib/components/ShModal.vue";
3850
3850
 
3851
- 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
+ };
3852
3856
 
3853
3857
  var script$o = {
3854
3858
  __name: 'ShDropDownForm',
@@ -3896,36 +3900,38 @@ const formError = (res)=>{
3896
3900
  emit('formError',res);
3897
3901
  };
3898
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
+ });
3899
3908
 
3900
3909
  return (_ctx, _cache) => {
3901
- return (openBlock(), createElementBlock(Fragment, null, [
3902
- _cache[0] || (_cache[0] = createElementVNode("h5", { class: "d-none" }, "To prevent default class", -1 /* CACHED */)),
3903
- createElementVNode("div", _hoisted_1$j, [
3904
- createElementVNode("a", {
3905
- class: normalizeClass(unref(btnClass)),
3906
- href: "#",
3907
- role: "button",
3908
- id: dropdownId,
3909
- "data-bs-toggle": "dropdown",
3910
- "data-bs-auto-close": "outside",
3911
- "aria-expanded": "false"
3912
- }, [
3913
- renderSlot(_ctx.$slots, "default")
3914
- ], 2 /* CLASS */),
3915
- createElementVNode("div", {
3916
- class: "dropdown-menu px-2 py-1",
3917
- "aria-labelledby": dropdownId
3918
- }, [
3919
- (openBlock(), createBlock(script$q, mergeProps({
3920
- onSuccess: success,
3921
- onFieldChanged: fieldChanged,
3922
- onFormSubmitted: formSubmitted,
3923
- onFormError: formError,
3924
- key: JSON.stringify(__props.currentData ?? {})
3925
- }, props), null, 16 /* FULL_PROPS */))
3926
- ])
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 */))
3927
3933
  ])
3928
- ], 64 /* STABLE_FRAGMENT */))
3934
+ ]))
3929
3935
  }
3930
3936
  }
3931
3937
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "5.5.9",
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",