@milaboratories/uikit 2.2.25 → 2.2.27
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 +12 -0
- package/dist/pl-uikit.js +6 -7
- package/dist/pl-uikit.umd.cjs +2 -2
- package/dist/src/components/DataTable/index.d.ts +1 -1
- package/dist/src/components/DataTable/types.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/eslint.config.mjs +4 -0
- package/package.json +6 -5
- package/src/assets/dropdown-list-item.scss +1 -0
- package/src/components/DataTable/BaseCellComponent.vue +1 -1
- package/src/components/DataTable/index.ts +1 -1
- package/src/components/DataTable/types.ts +2 -2
- package/src/components/GridTable/types.ts +5 -5
- package/src/components/InputRange.vue +1 -1
- package/src/components/PlAccordion/ExpandTransition.vue +1 -1
- package/src/components/PlBtnSplit/__tests__/PlBtnSplit.spec.ts +1 -1
- package/src/components/PlCheckbox/__tests__/PlCheckbox.spec.ts +1 -1
- package/src/components/PlDropdown/PlDropdown.vue +1 -0
- package/src/components/PlDropdown/__tests__/PlDropdown.spec.ts +2 -2
- package/src/components/PlDropdownLegacy/PlDropdownLegacy.vue +1 -0
- package/src/components/PlDropdownLegacy/__tests__/PlDropdownLegacy.spec.ts +2 -2
- package/src/components/PlDropdownMulti/PlDropdownMulti.vue +10 -9
- package/src/components/PlDropdownMulti/__tests__/PlDropdownMulti.spec.ts +2 -2
- package/src/components/PlDropdownRef/PlDropdownRef.vue +1 -2
- package/src/components/PlDropdownRef/__tests__/PlDropdownRef.spec.ts +2 -2
- package/src/components/PlFileDialog/Shortcuts.vue +1 -1
- package/src/components/PlLogView/PlLogView.vue +1 -1
- package/src/components/PlLogView/useLogHandle.ts +0 -1
- package/src/components/PlNumberField/PlNumberField.vue +2 -1
- package/src/components/PlProgressBar/PlProgressBar.vue +1 -1
- package/src/components/PlSpacer/PlSpacer.vue +1 -1
- package/src/components/PlTextArea/__tests__/PlTextArea.spec.ts +1 -1
- package/src/components/PlTextField/__tests__/TextField.spec.ts +3 -3
- package/src/components/PlTooltip/PlTooltip.vue +1 -1
- package/src/components/Slider.vue +4 -4
- package/src/components/SliderRange.vue +3 -3
- package/src/components/SliderRangeTriple.vue +3 -3
- package/src/composition/useMouseCapture.ts +1 -1
- package/src/composition/useTheme.ts +4 -3
- package/src/drafts/FileBaseInput.vue +1 -1
- package/src/helpers/utils.ts +3 -3
- package/src/index.ts +2 -2
- package/src/types.ts +14 -14
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -60
package/CHANGELOG.md
CHANGED
package/dist/pl-uikit.js
CHANGED
|
@@ -158,7 +158,7 @@ function as(n, e, t) {
|
|
|
158
158
|
return function(...o) {
|
|
159
159
|
const r = t && !s;
|
|
160
160
|
r && n.apply(this, o), s && clearTimeout(s), s = setTimeout(() => {
|
|
161
|
-
s = void 0,
|
|
161
|
+
s = void 0, r || n.apply(this, o);
|
|
162
162
|
}, e);
|
|
163
163
|
};
|
|
164
164
|
}
|
|
@@ -280,8 +280,7 @@ const no = Symbol(), Qt = () => fn(no), gs = ["value"], ys = { key: 1 }, _s = /*
|
|
|
280
280
|
edit: !1
|
|
281
281
|
}), r = g(() => s.valueType), i = (d) => {
|
|
282
282
|
var w;
|
|
283
|
-
|
|
284
|
-
const m = y(r), k = Uo(() => m === "integer" ? parseInt(c, 10) : m === "float" ? Number(c) : c);
|
|
283
|
+
const c = (w = d.target) == null ? void 0 : w.value, m = y(r), k = Uo(() => m === "integer" ? parseInt(c, 10) : m === "float" ? Number(c) : c);
|
|
285
284
|
t("update:modelValue", k), o.edit = !1;
|
|
286
285
|
}, l = F(), a = (d) => {
|
|
287
286
|
!d.metaKey && s.editable && (o.edit = !0, requestAnimationFrame(() => {
|
|
@@ -1149,7 +1148,7 @@ function wr(n, e, t = !0) {
|
|
|
1149
1148
|
return function(...r) {
|
|
1150
1149
|
o = () => {
|
|
1151
1150
|
n.apply(this, r), s = (/* @__PURE__ */ new Date()).getTime() + e, o = null, t && setTimeout(() => {
|
|
1152
|
-
o
|
|
1151
|
+
o == null || o();
|
|
1153
1152
|
}, e);
|
|
1154
1153
|
}, (/* @__PURE__ */ new Date()).getTime() > s && o();
|
|
1155
1154
|
};
|
|
@@ -1182,13 +1181,13 @@ window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").addEventL
|
|
|
1182
1181
|
const Cr = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Fn = F(Cr), an = $r("theme");
|
|
1183
1182
|
function Vr(n) {
|
|
1184
1183
|
const e = g(() => an.value ? an.value : Fn.value), t = (o) => {
|
|
1185
|
-
Fn.value = o, n
|
|
1184
|
+
Fn.value = o, n == null || n(o);
|
|
1186
1185
|
};
|
|
1187
1186
|
function s() {
|
|
1188
1187
|
an.value = e.value === "light" ? "dark" : (e.value === "dark", "light");
|
|
1189
1188
|
}
|
|
1190
1189
|
return ie(e, (o) => {
|
|
1191
|
-
n
|
|
1190
|
+
n == null || n(y(o));
|
|
1192
1191
|
}), he(() => {
|
|
1193
1192
|
hn.add(t);
|
|
1194
1193
|
}), Le(() => {
|
|
@@ -1864,7 +1863,7 @@ const gl = /* @__PURE__ */ $e(ml, [["render", hl]]), dn = /* @__PURE__ */ new Ma
|
|
|
1864
1863
|
};
|
|
1865
1864
|
const l = wr(() => window.dispatchEvent(new CustomEvent("adjust")), 1e3), a = () => {
|
|
1866
1865
|
r.open = !0;
|
|
1867
|
-
for (
|
|
1866
|
+
for (const [I, V] of dn.entries())
|
|
1868
1867
|
I !== s && V();
|
|
1869
1868
|
}, d = () => {
|
|
1870
1869
|
r.open = !1, t("tooltip:close");
|