djm-ui 0.67.3 → 0.67.4
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/CHANGELOG.md +5 -0
- package/README.md +2 -2
- package/dist/djm-ui.cjs +17 -7
- package/dist/djm-ui.cjs.map +2 -2
- package/dist/djm-ui.css +1 -1
- package/dist/djm-ui.esm.js +17 -7
- package/dist/djm-ui.esm.js.map +2 -2
- package/dist/djm-ui.esm.min.js +5 -5
- package/dist/djm-ui.min.cjs +5 -5
- package/dist/djm-ui.min.css +1 -1
- package/dist/djm-ui.umd.js +17 -7
- package/dist/djm-ui.umd.min.js +5 -5
- package/package.json +1 -1
- package/src/components/input/index.js +17 -6
- package/src/index.js +1 -1
- package/src/styles/components/layout.css +1 -1
package/dist/djm-ui.css
CHANGED
package/dist/djm-ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! DJM UI v0.67.
|
|
1
|
+
/*! DJM UI v0.67.4 · MIT · 2026-10-26 */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __esm = (fn, res, err) => function __init() {
|
|
@@ -1099,19 +1099,29 @@ var input_default = {
|
|
|
1099
1099
|
this.focus();
|
|
1100
1100
|
},
|
|
1101
1101
|
focus() {
|
|
1102
|
+
this.clearStaleValue();
|
|
1102
1103
|
if (this.$refs.input) this.$refs.input.focus();
|
|
1103
1104
|
},
|
|
1105
|
+
onFocus(event) {
|
|
1106
|
+
this.clearStaleValue();
|
|
1107
|
+
this.$emit("focus", event);
|
|
1108
|
+
},
|
|
1104
1109
|
blur() {
|
|
1105
1110
|
if (this.$refs.input) this.$refs.input.blur();
|
|
1106
1111
|
}
|
|
1107
1112
|
},
|
|
1108
1113
|
mounted() {
|
|
1109
|
-
this.
|
|
1110
|
-
|
|
1114
|
+
this.staleTimers = [null, 200, 600, 1200, 2400].map((delay) => {
|
|
1115
|
+
if (delay === null) {
|
|
1116
|
+
this.clearStaleValue();
|
|
1117
|
+
return null;
|
|
1118
|
+
}
|
|
1119
|
+
return setTimeout(() => this.clearStaleValue(), delay);
|
|
1120
|
+
});
|
|
1111
1121
|
window.addEventListener("pageshow", this.clearStaleValue);
|
|
1112
1122
|
},
|
|
1113
1123
|
beforeUnmount() {
|
|
1114
|
-
|
|
1124
|
+
this.staleTimers.forEach((timer) => clearTimeout(timer));
|
|
1115
1125
|
window.removeEventListener("pageshow", this.clearStaleValue);
|
|
1116
1126
|
},
|
|
1117
1127
|
template: `
|
|
@@ -1131,7 +1141,7 @@ var input_default = {
|
|
|
1131
1141
|
@input="onInput"
|
|
1132
1142
|
@change="$emit('change', $event)"
|
|
1133
1143
|
@keyup.enter="$emit('enter', $event)"
|
|
1134
|
-
@focus="
|
|
1144
|
+
@focus="onFocus"
|
|
1135
1145
|
@blur="$emit('blur', $event)"
|
|
1136
1146
|
/>
|
|
1137
1147
|
<button
|
|
@@ -1161,7 +1171,7 @@ var input_default = {
|
|
|
1161
1171
|
@input="onInput"
|
|
1162
1172
|
@change="$emit('change', $event)"
|
|
1163
1173
|
@keyup.enter="$emit('enter', $event)"
|
|
1164
|
-
@focus="
|
|
1174
|
+
@focus="onFocus"
|
|
1165
1175
|
@blur="$emit('blur', $event)"
|
|
1166
1176
|
/>
|
|
1167
1177
|
`
|
|
@@ -15243,7 +15253,7 @@ var components = [
|
|
|
15243
15253
|
org_chart_default,
|
|
15244
15254
|
page_tabs_default
|
|
15245
15255
|
];
|
|
15246
|
-
var version = "0.67.
|
|
15256
|
+
var version = "0.67.4";
|
|
15247
15257
|
function install(app, options = {}) {
|
|
15248
15258
|
if (options.locale) setLocale(options.locale);
|
|
15249
15259
|
components.forEach((component) => app.component(component.name, component));
|