@iankibetsh/shframework 4.3.1 → 4.3.3

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 CHANGED
@@ -3134,6 +3134,7 @@ var script$m = {
3134
3134
  'successMessage','fields','customComponents','placeHolders',
3135
3135
  'formClasses',
3136
3136
  'helperTexts','labels','data',
3137
+ 'fillSelects',
3137
3138
  'formClass',
3138
3139
  'actionLabel',
3139
3140
  'textAreas',
@@ -3168,6 +3169,15 @@ const getFieldComponent = (fieldObj)=>{
3168
3169
  if(props.customComponents && props.customComponents[field]) {
3169
3170
  return props.customComponents[field]
3170
3171
  }
3172
+ if(props.fillSelects && props.fillSelects[field]){
3173
+ Object.assign(fieldObj, props.fillSelects[field]);
3174
+ if(fieldObj.suggests || fieldObj.suggest){
3175
+ fieldObj.type = 'suggests';
3176
+ } else {
3177
+ fieldObj.type = 'select';
3178
+ }
3179
+ }
3180
+
3171
3181
  if(fieldObj.type){
3172
3182
  if(fieldObj.type === 'suggest' || fieldObj.type === 'suggests'){
3173
3183
  return script$u
@@ -3413,7 +3423,8 @@ return (_ctx, _cache) => {
3413
3423
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$3, "Submit"))
3414
3424
  : vue.createCommentVNode("v-if", true)
3415
3425
  ], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
3416
- ], 2 /* CLASS */)
3426
+ ], 2 /* CLASS */),
3427
+ vue.renderSlot(_ctx.$slots, "default")
3417
3428
  ], 34 /* CLASS, NEED_HYDRATION */)
3418
3429
  ], 64 /* STABLE_FRAGMENT */))
3419
3430
  }
package/dist/library.mjs CHANGED
@@ -3122,6 +3122,7 @@ var script$m = {
3122
3122
  'successMessage','fields','customComponents','placeHolders',
3123
3123
  'formClasses',
3124
3124
  'helperTexts','labels','data',
3125
+ 'fillSelects',
3125
3126
  'formClass',
3126
3127
  'actionLabel',
3127
3128
  'textAreas',
@@ -3156,6 +3157,15 @@ const getFieldComponent = (fieldObj)=>{
3156
3157
  if(props.customComponents && props.customComponents[field]) {
3157
3158
  return props.customComponents[field]
3158
3159
  }
3160
+ if(props.fillSelects && props.fillSelects[field]){
3161
+ Object.assign(fieldObj, props.fillSelects[field]);
3162
+ if(fieldObj.suggests || fieldObj.suggest){
3163
+ fieldObj.type = 'suggests';
3164
+ } else {
3165
+ fieldObj.type = 'select';
3166
+ }
3167
+ }
3168
+
3159
3169
  if(fieldObj.type){
3160
3170
  if(fieldObj.type === 'suggest' || fieldObj.type === 'suggests'){
3161
3171
  return script$u
@@ -3401,7 +3411,8 @@ return (_ctx, _cache) => {
3401
3411
  ? (openBlock(), createElementBlock("span", _hoisted_13$3, "Submit"))
3402
3412
  : createCommentVNode("v-if", true)
3403
3413
  ], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
3404
- ], 2 /* CLASS */)
3414
+ ], 2 /* CLASS */),
3415
+ renderSlot(_ctx.$slots, "default")
3405
3416
  ], 34 /* CLASS, NEED_HYDRATION */)
3406
3417
  ], 64 /* STABLE_FRAGMENT */))
3407
3418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",