@iankibetsh/shframework 4.0.3 → 4.0.5

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.
@@ -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,11 +3283,12 @@ 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)
3289
3290
  // fieldObj.helperText === undefined && ()
3290
- fieldObj.label = fieldObj.label ?? getLabel(fieldObj.field);
3291
+ fieldObj.label = fieldObj.label ?? getLabel(fieldObj.field ?? fieldObj.name);
3291
3292
  // fieldObj.placeholder && fieldObj.placeHolder && getPlaceholder(fieldObj.field)
3292
3293
  fieldObj.value = null;
3293
3294
  formFields.value.push(fieldObj);
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,11 +3271,12 @@ 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)
3277
3278
  // fieldObj.helperText === undefined && ()
3278
- fieldObj.label = fieldObj.label ?? getLabel(fieldObj.field);
3279
+ fieldObj.label = fieldObj.label ?? getLabel(fieldObj.field ?? fieldObj.name);
3279
3280
  // fieldObj.placeholder && fieldObj.placeHolder && getPlaceholder(fieldObj.field)
3280
3281
  fieldObj.value = null;
3281
3282
  formFields.value.push(fieldObj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",