@iankibetsh/shframework 4.0.3 → 4.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 +15 -15
- package/dist/library.js +2 -1
- package/dist/library.mjs +2 -1
- package/package.json +1 -1
|
@@ -63,21 +63,6 @@
|
|
|
63
63
|
color: white;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
.sh-selected-item{
|
|
67
|
-
line-height: unset!important;
|
|
68
|
-
}
|
|
69
|
-
.sh-suggestion-input{
|
|
70
|
-
padding: 0.375rem 0.75rem;
|
|
71
|
-
}
|
|
72
|
-
.sh-suggest{
|
|
73
|
-
margin-bottom: 1rem;
|
|
74
|
-
}
|
|
75
|
-
.sh-suggest-control::after{
|
|
76
|
-
margin-top: auto;
|
|
77
|
-
margin-bottom: auto;
|
|
78
|
-
margin-right: 0.255em;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
66
|
.permissions-main {
|
|
82
67
|
background: #edeff2;
|
|
83
68
|
}
|
|
@@ -110,6 +95,21 @@
|
|
|
110
95
|
flex-grow: 1;
|
|
111
96
|
}
|
|
112
97
|
|
|
98
|
+
.sh-selected-item{
|
|
99
|
+
line-height: unset!important;
|
|
100
|
+
}
|
|
101
|
+
.sh-suggestion-input{
|
|
102
|
+
padding: 0.375rem 0.75rem;
|
|
103
|
+
}
|
|
104
|
+
.sh-suggest{
|
|
105
|
+
margin-bottom: 1rem;
|
|
106
|
+
}
|
|
107
|
+
.sh-suggest-control::after{
|
|
108
|
+
margin-top: auto;
|
|
109
|
+
margin-bottom: auto;
|
|
110
|
+
margin-right: 0.255em;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
113
|
.sh-forgot-link, .sh-register-link{
|
|
114
114
|
cursor: pointer;
|
|
115
115
|
}
|
package/dist/library.js
CHANGED
|
@@ -3131,7 +3131,7 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3131
3131
|
if(fieldObj.component){
|
|
3132
3132
|
return fieldObj.component
|
|
3133
3133
|
}
|
|
3134
|
-
const field = fieldObj.field;
|
|
3134
|
+
const field = fieldObj.field ?? fieldObj.name;
|
|
3135
3135
|
const defaultTextareas = ['message', 'meta_description', 'comment', 'call_response', 'comments', 'description'];
|
|
3136
3136
|
const defaultNumbers = ['age'];
|
|
3137
3137
|
const passwords = ['password','password_confirmation','pin'];
|
|
@@ -3283,6 +3283,7 @@ vue.onMounted((ev)=>{
|
|
|
3283
3283
|
props.fields && props.fields.map(field=>{
|
|
3284
3284
|
if(typeof field === 'object') {
|
|
3285
3285
|
const fieldObj = {...field};
|
|
3286
|
+
fieldObj.field = fieldObj.field ?? fieldObj.name;
|
|
3286
3287
|
// fieldObj.label && getLabel(fieldObj.field)
|
|
3287
3288
|
fieldObj.helper = fieldObj.helperText ?? fieldObj.helper;
|
|
3288
3289
|
// !fieldObj.helper && fieldObj.helperText ? fieldObj.helper = fieldObj.helperText : fieldObj.helper = getHelperText(fieldObj.field)
|
package/dist/library.mjs
CHANGED
|
@@ -3119,7 +3119,7 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3119
3119
|
if(fieldObj.component){
|
|
3120
3120
|
return fieldObj.component
|
|
3121
3121
|
}
|
|
3122
|
-
const field = fieldObj.field;
|
|
3122
|
+
const field = fieldObj.field ?? fieldObj.name;
|
|
3123
3123
|
const defaultTextareas = ['message', 'meta_description', 'comment', 'call_response', 'comments', 'description'];
|
|
3124
3124
|
const defaultNumbers = ['age'];
|
|
3125
3125
|
const passwords = ['password','password_confirmation','pin'];
|
|
@@ -3271,6 +3271,7 @@ onMounted((ev)=>{
|
|
|
3271
3271
|
props.fields && props.fields.map(field=>{
|
|
3272
3272
|
if(typeof field === 'object') {
|
|
3273
3273
|
const fieldObj = {...field};
|
|
3274
|
+
fieldObj.field = fieldObj.field ?? fieldObj.name;
|
|
3274
3275
|
// fieldObj.label && getLabel(fieldObj.field)
|
|
3275
3276
|
fieldObj.helper = fieldObj.helperText ?? fieldObj.helper;
|
|
3276
3277
|
// !fieldObj.helper && fieldObj.helperText ? fieldObj.helper = fieldObj.helperText : fieldObj.helper = getHelperText(fieldObj.field)
|