@iankibetsh/shframework 4.0.5 → 4.0.7
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 +4 -4
- package/dist/library.mjs +4 -4
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -221,10 +221,7 @@ async function runPlainRequest(url, message, title, data){
|
|
|
221
221
|
}
|
|
222
222
|
})
|
|
223
223
|
.catch(error => {
|
|
224
|
-
|
|
225
|
-
success: false,
|
|
226
|
-
error: error
|
|
227
|
-
}
|
|
224
|
+
throw new Error(error)
|
|
228
225
|
})
|
|
229
226
|
},
|
|
230
227
|
allowOutsideClick: () => !Swal__default["default"].isLoading()
|
|
@@ -3149,6 +3146,9 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3149
3146
|
return props.customComponents[field]
|
|
3150
3147
|
}
|
|
3151
3148
|
if(fieldObj.type){
|
|
3149
|
+
if(fieldObj.type === 'suggest' || fieldObj.type === 'suggests'){
|
|
3150
|
+
return script$t
|
|
3151
|
+
}
|
|
3152
3152
|
return fieldObj.type === 'number' ? NumberComponent:fieldObj.type === 'textarea' ? TextAreaComponent : fieldObj.type === 'email' ? EmailComponent : fieldObj.type === 'phone' ? PhoneComponent : fieldObj.type === 'password' ? PasswordComponent:fieldObj.type === 'select' ? SelectComponent:TextComponent
|
|
3153
3153
|
}else
|
|
3154
3154
|
if(passwords.includes(field)){
|
package/dist/library.mjs
CHANGED
|
@@ -209,10 +209,7 @@ async function runPlainRequest(url, message, title, data){
|
|
|
209
209
|
}
|
|
210
210
|
})
|
|
211
211
|
.catch(error => {
|
|
212
|
-
|
|
213
|
-
success: false,
|
|
214
|
-
error: error
|
|
215
|
-
}
|
|
212
|
+
throw new Error(error)
|
|
216
213
|
})
|
|
217
214
|
},
|
|
218
215
|
allowOutsideClick: () => !Swal.isLoading()
|
|
@@ -3137,6 +3134,9 @@ const getFieldComponent = (fieldObj)=>{
|
|
|
3137
3134
|
return props.customComponents[field]
|
|
3138
3135
|
}
|
|
3139
3136
|
if(fieldObj.type){
|
|
3137
|
+
if(fieldObj.type === 'suggest' || fieldObj.type === 'suggests'){
|
|
3138
|
+
return script$t
|
|
3139
|
+
}
|
|
3140
3140
|
return fieldObj.type === 'number' ? NumberComponent:fieldObj.type === 'textarea' ? TextAreaComponent : fieldObj.type === 'email' ? EmailComponent : fieldObj.type === 'phone' ? PhoneComponent : fieldObj.type === 'password' ? PasswordComponent:fieldObj.type === 'select' ? SelectComponent:TextComponent
|
|
3141
3141
|
}else
|
|
3142
3142
|
if(passwords.includes(field)){
|