@iankibetsh/shframework 2.0.2 → 2.0.4
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/dist/library.mjs.css +32 -32
- package/dist/library.js +8 -3
- package/dist/library.mjs +8 -3
- package/package.json +1 -1
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.sh-phone{
|
|
3
|
-
display: flex;
|
|
4
|
-
width: 100%;
|
|
5
|
-
align-items: center;
|
|
6
|
-
padding: 0 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
.phone-country{
|
|
9
|
-
width: 2rem;
|
|
10
|
-
border: none;
|
|
11
|
-
align-self: center;
|
|
12
|
-
outline: none !important;
|
|
13
|
-
padding: 0.4rem;
|
|
14
|
-
border-right: 1px solid #0003;
|
|
15
|
-
}
|
|
16
|
-
.phone-number{
|
|
17
|
-
width: calc(100% - 2.2rem);
|
|
18
|
-
border: none;
|
|
19
|
-
align-self: center;
|
|
20
|
-
outline: none;
|
|
21
|
-
margin-bottom: 0;
|
|
22
|
-
padding: 0.4rem;
|
|
23
|
-
}
|
|
24
|
-
.sh-phone img{
|
|
25
|
-
padding: 0.125rem;
|
|
26
|
-
width: 2rem;
|
|
27
|
-
height: 2rem;
|
|
28
|
-
}
|
|
29
|
-
.phone-number::placeholder{
|
|
30
|
-
font-weight: 300;
|
|
31
|
-
opacity: 0.5;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
2
|
.colored-toast.swal2-icon-success {
|
|
35
3
|
background-color: #a5dc86 !important;
|
|
36
4
|
}
|
|
@@ -63,6 +31,38 @@
|
|
|
63
31
|
color: white;
|
|
64
32
|
}
|
|
65
33
|
|
|
34
|
+
.sh-phone{
|
|
35
|
+
display: flex;
|
|
36
|
+
width: 100%;
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding: 0 0.25rem;
|
|
39
|
+
}
|
|
40
|
+
.phone-country{
|
|
41
|
+
width: 2rem;
|
|
42
|
+
border: none;
|
|
43
|
+
align-self: center;
|
|
44
|
+
outline: none !important;
|
|
45
|
+
padding: 0.4rem;
|
|
46
|
+
border-right: 1px solid #0003;
|
|
47
|
+
}
|
|
48
|
+
.phone-number{
|
|
49
|
+
width: calc(100% - 2.2rem);
|
|
50
|
+
border: none;
|
|
51
|
+
align-self: center;
|
|
52
|
+
outline: none;
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
padding: 0.4rem;
|
|
55
|
+
}
|
|
56
|
+
.sh-phone img{
|
|
57
|
+
padding: 0.125rem;
|
|
58
|
+
width: 2rem;
|
|
59
|
+
height: 2rem;
|
|
60
|
+
}
|
|
61
|
+
.phone-number::placeholder{
|
|
62
|
+
font-weight: 300;
|
|
63
|
+
opacity: 0.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
.permissions-main {
|
|
67
67
|
background: #edeff2;
|
|
68
68
|
}
|
package/dist/library.js
CHANGED
|
@@ -4007,6 +4007,9 @@ var script$d = {
|
|
|
4007
4007
|
url: {
|
|
4008
4008
|
type: String,
|
|
4009
4009
|
required: true
|
|
4010
|
+
},
|
|
4011
|
+
disableSuccessMessage: {
|
|
4012
|
+
type: Boolean
|
|
4010
4013
|
}
|
|
4011
4014
|
},
|
|
4012
4015
|
emits: ['actionSuccessful','actionFailed','success'],
|
|
@@ -4023,7 +4026,9 @@ const actionSuccessful = (res)=>{
|
|
|
4023
4026
|
console.log(res.data,props.successMessage);
|
|
4024
4027
|
emit('actionSuccessful',res);
|
|
4025
4028
|
emit('success',res);
|
|
4026
|
-
|
|
4029
|
+
if(!props.disableSuccessMessage) {
|
|
4030
|
+
shRepo.showToast(res.data.message ?? props.successMessage);
|
|
4031
|
+
}
|
|
4027
4032
|
};
|
|
4028
4033
|
|
|
4029
4034
|
const actionFailed = reason =>{
|
|
@@ -5127,7 +5132,7 @@ const _hoisted_5$4 = { class: "tab-content" };
|
|
|
5127
5132
|
|
|
5128
5133
|
var script$a = {
|
|
5129
5134
|
__name: 'ShDynamicTabs',
|
|
5130
|
-
props: ['tabs','data'],
|
|
5135
|
+
props: ['tabs','data','classes'],
|
|
5131
5136
|
setup(__props) {
|
|
5132
5137
|
|
|
5133
5138
|
const props = __props;
|
|
@@ -5151,7 +5156,7 @@ function setTab(tab){
|
|
|
5151
5156
|
return (_ctx, _cache) => {
|
|
5152
5157
|
return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5153
5158
|
vue.createElementVNode("ul", {
|
|
5154
|
-
class: vue.normalizeClass(["nav nav-tabs", vue.unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')]),
|
|
5159
|
+
class: vue.normalizeClass(["nav nav-tabs", vue.unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered') + __props.classes]),
|
|
5155
5160
|
role: "tablist"
|
|
5156
5161
|
}, [
|
|
5157
5162
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
|
package/dist/library.mjs
CHANGED
|
@@ -3995,6 +3995,9 @@ var script$d = {
|
|
|
3995
3995
|
url: {
|
|
3996
3996
|
type: String,
|
|
3997
3997
|
required: true
|
|
3998
|
+
},
|
|
3999
|
+
disableSuccessMessage: {
|
|
4000
|
+
type: Boolean
|
|
3998
4001
|
}
|
|
3999
4002
|
},
|
|
4000
4003
|
emits: ['actionSuccessful','actionFailed','success'],
|
|
@@ -4011,7 +4014,9 @@ const actionSuccessful = (res)=>{
|
|
|
4011
4014
|
console.log(res.data,props.successMessage);
|
|
4012
4015
|
emit('actionSuccessful',res);
|
|
4013
4016
|
emit('success',res);
|
|
4014
|
-
|
|
4017
|
+
if(!props.disableSuccessMessage) {
|
|
4018
|
+
shRepo.showToast(res.data.message ?? props.successMessage);
|
|
4019
|
+
}
|
|
4015
4020
|
};
|
|
4016
4021
|
|
|
4017
4022
|
const actionFailed = reason =>{
|
|
@@ -5115,7 +5120,7 @@ const _hoisted_5$4 = { class: "tab-content" };
|
|
|
5115
5120
|
|
|
5116
5121
|
var script$a = {
|
|
5117
5122
|
__name: 'ShDynamicTabs',
|
|
5118
|
-
props: ['tabs','data'],
|
|
5123
|
+
props: ['tabs','data','classes'],
|
|
5119
5124
|
setup(__props) {
|
|
5120
5125
|
|
|
5121
5126
|
const props = __props;
|
|
@@ -5139,7 +5144,7 @@ function setTab(tab){
|
|
|
5139
5144
|
return (_ctx, _cache) => {
|
|
5140
5145
|
return (openBlock(), createElementBlock(Fragment, null, [
|
|
5141
5146
|
createElementVNode("ul", {
|
|
5142
|
-
class: normalizeClass(["nav nav-tabs", unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')]),
|
|
5147
|
+
class: normalizeClass(["nav nav-tabs", unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered') + __props.classes]),
|
|
5143
5148
|
role: "tablist"
|
|
5144
5149
|
}, [
|
|
5145
5150
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
|