@iankibetsh/shframework 4.2.0 → 4.2.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 +11 -1
- package/dist/library.mjs +11 -1
- package/package.json +1 -1
package/dist/library.js
CHANGED
|
@@ -186,7 +186,16 @@ function showToast(message, toastType, config){
|
|
|
186
186
|
toastType = 'success';
|
|
187
187
|
}
|
|
188
188
|
if (config) {
|
|
189
|
-
Object.keys(config).map(key =>
|
|
189
|
+
Object.keys(config).map(key =>{
|
|
190
|
+
let newKey = key;
|
|
191
|
+
if(key === 'duration'){
|
|
192
|
+
newKey = 'timer';
|
|
193
|
+
}
|
|
194
|
+
if(key === 'timeout'){
|
|
195
|
+
newKey = 'timer';
|
|
196
|
+
}
|
|
197
|
+
mixinConfig[newKey] = config[key];
|
|
198
|
+
});
|
|
190
199
|
}
|
|
191
200
|
console.log(mixinConfig);
|
|
192
201
|
const Toast = Swal__default["default"].mixin(mixinConfig);
|
|
@@ -4840,6 +4849,7 @@ const __default__ = {
|
|
|
4840
4849
|
data.query = this.query;
|
|
4841
4850
|
}
|
|
4842
4851
|
shApis.doGet(endPoint, data).then(req => {
|
|
4852
|
+
this.$emit('dataReloaded', this.pagination_data);
|
|
4843
4853
|
this.loading = 'done';
|
|
4844
4854
|
const response = req.data.data;
|
|
4845
4855
|
this.$emit('dataLoaded', response);
|
package/dist/library.mjs
CHANGED
|
@@ -174,7 +174,16 @@ function showToast(message, toastType, config){
|
|
|
174
174
|
toastType = 'success';
|
|
175
175
|
}
|
|
176
176
|
if (config) {
|
|
177
|
-
Object.keys(config).map(key =>
|
|
177
|
+
Object.keys(config).map(key =>{
|
|
178
|
+
let newKey = key;
|
|
179
|
+
if(key === 'duration'){
|
|
180
|
+
newKey = 'timer';
|
|
181
|
+
}
|
|
182
|
+
if(key === 'timeout'){
|
|
183
|
+
newKey = 'timer';
|
|
184
|
+
}
|
|
185
|
+
mixinConfig[newKey] = config[key];
|
|
186
|
+
});
|
|
178
187
|
}
|
|
179
188
|
console.log(mixinConfig);
|
|
180
189
|
const Toast = Swal.mixin(mixinConfig);
|
|
@@ -4828,6 +4837,7 @@ const __default__ = {
|
|
|
4828
4837
|
data.query = this.query;
|
|
4829
4838
|
}
|
|
4830
4839
|
shApis.doGet(endPoint, data).then(req => {
|
|
4840
|
+
this.$emit('dataReloaded', this.pagination_data);
|
|
4831
4841
|
this.loading = 'done';
|
|
4832
4842
|
const response = req.data.data;
|
|
4833
4843
|
this.$emit('dataLoaded', response);
|