@kws3/ui 1.1.0 → 1.1.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.
@@ -118,7 +118,7 @@
118
118
  /**
119
119
  * call this function after form saved
120
120
  */
121
- export function saved(callback) {
121
+ export function saved(callback, timeout = 3000) {
122
122
  tracker = {
123
123
  saving: false,
124
124
  saved: true,
@@ -136,13 +136,13 @@
136
136
  */
137
137
  fire("saved");
138
138
  callback && callback();
139
- }, 1000);
139
+ }, timeout);
140
140
  }
141
141
 
142
142
  /**
143
143
  * call this function on form error state
144
144
  */
145
- export function error(callback) {
145
+ export function error(callback, timeout = 3000) {
146
146
  tracker = {
147
147
  saving: false,
148
148
  saved: false,
@@ -160,7 +160,7 @@
160
160
  */
161
161
  fire("error");
162
162
  callback && callback();
163
- }, 1000);
163
+ }, timeout);
164
164
  }
165
165
 
166
166
  $: err_text = error_text == "" ? text : error_text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kws3/ui",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "UI components for use with Svelte v3 applications.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,5 +27,5 @@
27
27
  "text-mask-core": "^5.1.2",
28
28
  "tippy.js": "^6.3.1"
29
29
  },
30
- "gitHead": "bf983cded2a2272cacedfc58dde2576a7d6ef612"
30
+ "gitHead": "41583be799a7835e3d3881b8e3bcd72a587c3f6a"
31
31
  }