@iankibetsh/shframework 5.6.4 → 5.6.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.
package/dist/library.js CHANGED
@@ -4475,6 +4475,9 @@ vue.onMounted(()=>{
4475
4475
  if(!url.value) {
4476
4476
  url.value = '';
4477
4477
  }
4478
+ if(typeof url.value === 'function'){
4479
+ url.value = url.value(props.record);
4480
+ }
4478
4481
  // replace params in url with record key e.g {id} replaced with record.id
4479
4482
  url.value = url.value.replace(/{(\w+)}/g, (match, key) => {
4480
4483
  return props.record[key]
package/dist/library.mjs CHANGED
@@ -4464,6 +4464,9 @@ onMounted(()=>{
4464
4464
  if(!url.value) {
4465
4465
  url.value = '';
4466
4466
  }
4467
+ if(typeof url.value === 'function'){
4468
+ url.value = url.value(props.record);
4469
+ }
4467
4470
  // replace params in url with record key e.g {id} replaced with record.id
4468
4471
  url.value = url.value.replace(/{(\w+)}/g, (match, key) => {
4469
4472
  return props.record[key]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "5.6.4",
3
+ "version": "5.6.5",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",