@iankibetsh/shframework 4.7.9 → 4.8.1
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 +18 -20
- package/dist/library.mjs +18 -20
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -3630,7 +3630,7 @@ return (_ctx, _cache) => {
|
|
|
3630
3630
|
: vue.createCommentVNode("v-if", true)
|
|
3631
3631
|
], 2 /* CLASS */))
|
|
3632
3632
|
: vue.createCommentVNode("v-if", true),
|
|
3633
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(
|
|
3633
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(getFieldComponent(field)), vue.mergeProps(getComponentProps(field), {
|
|
3634
3634
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
3635
3635
|
onClick: $event => (fieldChanged(field.field)),
|
|
3636
3636
|
"onUpdate:modelValue": [$event => (fieldChanged(field.field)), $event => ((formFields.value[index].value) = $event)],
|
|
@@ -3737,7 +3737,7 @@ const emit = __emit;
|
|
|
3737
3737
|
const props = __props;
|
|
3738
3738
|
vue.onMounted(() => {
|
|
3739
3739
|
const modal = document.getElementById(props.modalId);
|
|
3740
|
-
modal.addEventListener('hidden.bs.modal', event => {
|
|
3740
|
+
modal && modal.addEventListener('hidden.bs.modal', event => {
|
|
3741
3741
|
event.target.id == props.modalId && emit('modalClosed');
|
|
3742
3742
|
});
|
|
3743
3743
|
});
|
|
@@ -5413,26 +5413,25 @@ return (_ctx, _cache) => {
|
|
|
5413
5413
|
class: "text-capitalize",
|
|
5414
5414
|
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5415
5415
|
}, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_23))
|
|
5416
|
-
:
|
|
5417
|
-
(typeof title === 'object')
|
|
5418
|
-
? (vue.openBlock(), vue.createElementBlock("a", {
|
|
5419
|
-
key: 1,
|
|
5420
|
-
class: "text-capitalize",
|
|
5421
|
-
onClick: $event => (_ctx.changeKey('order_by',title.key))
|
|
5422
|
-
}, vue.toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
|
|
5423
|
-
: (typeof title === 'function')
|
|
5416
|
+
: (typeof title === 'object')
|
|
5424
5417
|
? (vue.openBlock(), vue.createElementBlock("a", {
|
|
5425
|
-
key:
|
|
5418
|
+
key: 1,
|
|
5426
5419
|
class: "text-capitalize",
|
|
5427
|
-
onClick: $event => (_ctx.changeKey('order_by',title
|
|
5428
|
-
}, vue.toDisplayString(title
|
|
5429
|
-
: (typeof title
|
|
5420
|
+
onClick: $event => (_ctx.changeKey('order_by',title.key))
|
|
5421
|
+
}, vue.toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
|
|
5422
|
+
: (typeof title === 'function')
|
|
5430
5423
|
? (vue.openBlock(), vue.createElementBlock("a", {
|
|
5431
|
-
key:
|
|
5424
|
+
key: 2,
|
|
5432
5425
|
class: "text-capitalize",
|
|
5433
|
-
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5434
|
-
}, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */,
|
|
5435
|
-
:
|
|
5426
|
+
onClick: $event => (_ctx.changeKey('order_by',title(null)))
|
|
5427
|
+
}, vue.toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_25))
|
|
5428
|
+
: (typeof title !== 'undefined')
|
|
5429
|
+
? (vue.openBlock(), vue.createElementBlock("a", {
|
|
5430
|
+
key: 3,
|
|
5431
|
+
class: "text-capitalize",
|
|
5432
|
+
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5433
|
+
}, vue.toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_26))
|
|
5434
|
+
: vue.createCommentVNode("v-if", true)
|
|
5436
5435
|
]))
|
|
5437
5436
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
5438
5437
|
(__props.actions)
|
|
@@ -5795,8 +5794,7 @@ return (_ctx, _cache) => {
|
|
|
5795
5794
|
(_ctx.selectedRecord)
|
|
5796
5795
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(action.canvasComponent), vue.mergeProps({
|
|
5797
5796
|
key: 0,
|
|
5798
|
-
onRecordUpdated: _ctx.reloadData
|
|
5799
|
-
ref_for: true
|
|
5797
|
+
onRecordUpdated: _ctx.reloadData
|
|
5800
5798
|
}, _ctx.cleanCanvasProps(action), { record: _ctx.selectedRecord }), null, 16 /* FULL_PROPS */, ["onRecordUpdated", "record"]))
|
|
5801
5799
|
: vue.createCommentVNode("v-if", true)
|
|
5802
5800
|
]),
|
package/dist/library.mjs
CHANGED
|
@@ -3618,7 +3618,7 @@ return (_ctx, _cache) => {
|
|
|
3618
3618
|
: createCommentVNode("v-if", true)
|
|
3619
3619
|
], 2 /* CLASS */))
|
|
3620
3620
|
: createCommentVNode("v-if", true),
|
|
3621
|
-
(openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(
|
|
3621
|
+
(openBlock(), createBlock(resolveDynamicComponent(getFieldComponent(field)), mergeProps(getComponentProps(field), {
|
|
3622
3622
|
isInvalid: typeof validationErrors.value[field.field] !== 'undefined',
|
|
3623
3623
|
onClick: $event => (fieldChanged(field.field)),
|
|
3624
3624
|
"onUpdate:modelValue": [$event => (fieldChanged(field.field)), $event => ((formFields.value[index].value) = $event)],
|
|
@@ -3725,7 +3725,7 @@ const emit = __emit;
|
|
|
3725
3725
|
const props = __props;
|
|
3726
3726
|
onMounted(() => {
|
|
3727
3727
|
const modal = document.getElementById(props.modalId);
|
|
3728
|
-
modal.addEventListener('hidden.bs.modal', event => {
|
|
3728
|
+
modal && modal.addEventListener('hidden.bs.modal', event => {
|
|
3729
3729
|
event.target.id == props.modalId && emit('modalClosed');
|
|
3730
3730
|
});
|
|
3731
3731
|
});
|
|
@@ -5401,26 +5401,25 @@ return (_ctx, _cache) => {
|
|
|
5401
5401
|
class: "text-capitalize",
|
|
5402
5402
|
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5403
5403
|
}, toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_23))
|
|
5404
|
-
:
|
|
5405
|
-
(typeof title === 'object')
|
|
5406
|
-
? (openBlock(), createElementBlock("a", {
|
|
5407
|
-
key: 1,
|
|
5408
|
-
class: "text-capitalize",
|
|
5409
|
-
onClick: $event => (_ctx.changeKey('order_by',title.key))
|
|
5410
|
-
}, toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
|
|
5411
|
-
: (typeof title === 'function')
|
|
5404
|
+
: (typeof title === 'object')
|
|
5412
5405
|
? (openBlock(), createElementBlock("a", {
|
|
5413
|
-
key:
|
|
5406
|
+
key: 1,
|
|
5414
5407
|
class: "text-capitalize",
|
|
5415
|
-
onClick: $event => (_ctx.changeKey('order_by',title
|
|
5416
|
-
}, toDisplayString(title
|
|
5417
|
-
: (typeof title
|
|
5408
|
+
onClick: $event => (_ctx.changeKey('order_by',title.key))
|
|
5409
|
+
}, toDisplayString(title.label ?? title.key.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_24))
|
|
5410
|
+
: (typeof title === 'function')
|
|
5418
5411
|
? (openBlock(), createElementBlock("a", {
|
|
5419
|
-
key:
|
|
5412
|
+
key: 2,
|
|
5420
5413
|
class: "text-capitalize",
|
|
5421
|
-
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5422
|
-
}, toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */,
|
|
5423
|
-
:
|
|
5414
|
+
onClick: $event => (_ctx.changeKey('order_by',title(null)))
|
|
5415
|
+
}, toDisplayString(title(null).replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_25))
|
|
5416
|
+
: (typeof title !== 'undefined')
|
|
5417
|
+
? (openBlock(), createElementBlock("a", {
|
|
5418
|
+
key: 3,
|
|
5419
|
+
class: "text-capitalize",
|
|
5420
|
+
onClick: $event => (_ctx.changeKey('order_by',title))
|
|
5421
|
+
}, toDisplayString(title.replace(/_/g, ' ')), 9 /* TEXT, PROPS */, _hoisted_26))
|
|
5422
|
+
: createCommentVNode("v-if", true)
|
|
5424
5423
|
]))
|
|
5425
5424
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
5426
5425
|
(__props.actions)
|
|
@@ -5783,8 +5782,7 @@ return (_ctx, _cache) => {
|
|
|
5783
5782
|
(_ctx.selectedRecord)
|
|
5784
5783
|
? (openBlock(), createBlock(resolveDynamicComponent(action.canvasComponent), mergeProps({
|
|
5785
5784
|
key: 0,
|
|
5786
|
-
onRecordUpdated: _ctx.reloadData
|
|
5787
|
-
ref_for: true
|
|
5785
|
+
onRecordUpdated: _ctx.reloadData
|
|
5788
5786
|
}, _ctx.cleanCanvasProps(action), { record: _ctx.selectedRecord }), null, 16 /* FULL_PROPS */, ["onRecordUpdated", "record"]))
|
|
5789
5787
|
: createCommentVNode("v-if", true)
|
|
5790
5788
|
]),
|