@iankibetsh/shframework 0.2.0 → 0.2.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 +5 -5
- package/dist/library.mjs +5 -5
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -1655,7 +1655,7 @@ var script$5 = {
|
|
|
1655
1655
|
components: {
|
|
1656
1656
|
ShPhone: script$6
|
|
1657
1657
|
},
|
|
1658
|
-
props: ['action', 'classes', 'hasTerms', 'country_code', 'submit_btn_class', 'fields', 'columns', 'placeholders', 'field_permissions', 'retain_data_after_submission', 'current_data', 'action_label', 'fill_selects', 'phones', '
|
|
1658
|
+
props: ['action', 'classes', 'hasTerms', 'country_code', 'submit_btn_class', 'fields', 'columns', 'placeholders', 'field_permissions', 'retain_data_after_submission', 'current_data', 'action_label', 'fill_selects', 'phones', 'successCallback', 'failed_callback', 'labels'],
|
|
1659
1659
|
data: function () {
|
|
1660
1660
|
return {
|
|
1661
1661
|
form_elements: {},
|
|
@@ -1824,11 +1824,11 @@ var script$5 = {
|
|
|
1824
1824
|
Object.keys(this.form_files).forEach(key => {
|
|
1825
1825
|
this.form_errors[key] = null;
|
|
1826
1826
|
});
|
|
1827
|
-
if (this.
|
|
1828
|
-
if (typeof this.
|
|
1829
|
-
this.
|
|
1827
|
+
if (this.successCallback) {
|
|
1828
|
+
if (typeof this.successCallback === 'function') {
|
|
1829
|
+
this.successCallback(res.data);
|
|
1830
1830
|
} else {
|
|
1831
|
-
this.$emit(this.
|
|
1831
|
+
this.$emit(this.successCallback, res.data);
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
1834
1834
|
NProgress__default["default"].done();
|
package/dist/library.mjs
CHANGED
|
@@ -1644,7 +1644,7 @@ var script$5 = {
|
|
|
1644
1644
|
components: {
|
|
1645
1645
|
ShPhone: script$6
|
|
1646
1646
|
},
|
|
1647
|
-
props: ['action', 'classes', 'hasTerms', 'country_code', 'submit_btn_class', 'fields', 'columns', 'placeholders', 'field_permissions', 'retain_data_after_submission', 'current_data', 'action_label', 'fill_selects', 'phones', '
|
|
1647
|
+
props: ['action', 'classes', 'hasTerms', 'country_code', 'submit_btn_class', 'fields', 'columns', 'placeholders', 'field_permissions', 'retain_data_after_submission', 'current_data', 'action_label', 'fill_selects', 'phones', 'successCallback', 'failed_callback', 'labels'],
|
|
1648
1648
|
data: function () {
|
|
1649
1649
|
return {
|
|
1650
1650
|
form_elements: {},
|
|
@@ -1813,11 +1813,11 @@ var script$5 = {
|
|
|
1813
1813
|
Object.keys(this.form_files).forEach(key => {
|
|
1814
1814
|
this.form_errors[key] = null;
|
|
1815
1815
|
});
|
|
1816
|
-
if (this.
|
|
1817
|
-
if (typeof this.
|
|
1818
|
-
this.
|
|
1816
|
+
if (this.successCallback) {
|
|
1817
|
+
if (typeof this.successCallback === 'function') {
|
|
1818
|
+
this.successCallback(res.data);
|
|
1819
1819
|
} else {
|
|
1820
|
-
this.$emit(this.
|
|
1820
|
+
this.$emit(this.successCallback, res.data);
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
1823
|
NProgress.done();
|