@iankibetsh/shframework 5.3.3 → 5.3.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 +3 -3
- package/dist/library.mjs +3 -3
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -3399,7 +3399,7 @@ var script$q = {
|
|
|
3399
3399
|
'emails',
|
|
3400
3400
|
'method',
|
|
3401
3401
|
'phones', 'numbers', 'selects', 'dates', 'gqlMutation',
|
|
3402
|
-
'required'
|
|
3402
|
+
'required','retainModal'
|
|
3403
3403
|
],
|
|
3404
3404
|
emits: ['success','preSubmit', 'fieldChanged', 'formSubmitted', 'formError'],
|
|
3405
3405
|
setup(__props, { emit: __emit }) {
|
|
@@ -3551,7 +3551,7 @@ const handleSuccessRequest = res => {
|
|
|
3551
3551
|
props.successMessage && shRepo.showToast(props.successMessage);
|
|
3552
3552
|
props.successCallback && props.successCallback(res.data);
|
|
3553
3553
|
!props.retainDataAfterSubmission && formFields.value.map(field => field.value = null);
|
|
3554
|
-
closeModal();
|
|
3554
|
+
!props.retainModal && closeModal();
|
|
3555
3555
|
};
|
|
3556
3556
|
|
|
3557
3557
|
const handlefailedRequest = reason => {
|
|
@@ -5861,7 +5861,7 @@ return (_ctx, _cache) => {
|
|
|
5861
5861
|
: (_ctx.getFieldType(key) === 'numeric')
|
|
5862
5862
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_48, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5863
5863
|
: (_ctx.getFieldType(key) === 'money')
|
|
5864
|
-
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_49,
|
|
5864
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_49, vue.toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5865
5865
|
: (_ctx.getFieldType(key) === 'date')
|
|
5866
5866
|
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_50, vue.toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
|
|
5867
5867
|
: (typeof key === 'string')
|
package/dist/library.mjs
CHANGED
|
@@ -3387,7 +3387,7 @@ var script$q = {
|
|
|
3387
3387
|
'emails',
|
|
3388
3388
|
'method',
|
|
3389
3389
|
'phones', 'numbers', 'selects', 'dates', 'gqlMutation',
|
|
3390
|
-
'required'
|
|
3390
|
+
'required','retainModal'
|
|
3391
3391
|
],
|
|
3392
3392
|
emits: ['success','preSubmit', 'fieldChanged', 'formSubmitted', 'formError'],
|
|
3393
3393
|
setup(__props, { emit: __emit }) {
|
|
@@ -3539,7 +3539,7 @@ const handleSuccessRequest = res => {
|
|
|
3539
3539
|
props.successMessage && shRepo.showToast(props.successMessage);
|
|
3540
3540
|
props.successCallback && props.successCallback(res.data);
|
|
3541
3541
|
!props.retainDataAfterSubmission && formFields.value.map(field => field.value = null);
|
|
3542
|
-
closeModal();
|
|
3542
|
+
!props.retainModal && closeModal();
|
|
3543
3543
|
};
|
|
3544
3544
|
|
|
3545
3545
|
const handlefailedRequest = reason => {
|
|
@@ -5849,7 +5849,7 @@ return (_ctx, _cache) => {
|
|
|
5849
5849
|
: (_ctx.getFieldType(key) === 'numeric')
|
|
5850
5850
|
? (openBlock(), createElementBlock("span", _hoisted_48, toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5851
5851
|
: (_ctx.getFieldType(key) === 'money')
|
|
5852
|
-
? (openBlock(), createElementBlock("span", _hoisted_49,
|
|
5852
|
+
? (openBlock(), createElementBlock("span", _hoisted_49, toDisplayString(Intl.NumberFormat().format(record[key])), 1 /* TEXT */))
|
|
5853
5853
|
: (_ctx.getFieldType(key) === 'date')
|
|
5854
5854
|
? (openBlock(), createElementBlock("span", _hoisted_50, toDisplayString(_ctx.formatDate(record[key])), 1 /* TEXT */))
|
|
5855
5855
|
: (typeof key === 'string')
|