mhz-ui 1.2.37 → 1.2.38
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/UiChip/UiChip.css +1 -1
- package/dist/UiChip/UiChip.d.ts +9 -1
- package/dist/UiChip/UiChip.js +50 -16
- package/dist/UiEditor/UiEditor.js +4 -2
- package/package.json +9 -9
package/dist/UiChip/UiChip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._chip_vs833_1{display:flex;flex-wrap:wrap;gap:4px;align-items:center;height:30px;padding:4px 8px 3px;font-size:.875rem;color:var(--color-black);background-color:var(--color-gray-light);border-bottom:1px solid var(--color-gray-dark);border-radius:8px}._chip_vs833_1[data-type=success]{color:var(--color-success-dark)}._chip_vs833_1[data-type=error]{color:var(--color-error-dark)}._edit_vs833_21{display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;color:var(--color-black);cursor:pointer;-webkit-user-select:none;user-select:none;background:none;border:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}.dark ._chip_vs833_1{background-color:var(--color-gray-dark);border-bottom:1px solid var(--color-gray-dark-extra)}
|
package/dist/UiChip/UiChip.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
interface IProps {
|
|
2
2
|
type?: 'default' | 'success' | 'error';
|
|
3
|
+
isEdit?: boolean;
|
|
4
|
+
isDelete?: boolean;
|
|
3
5
|
}
|
|
4
6
|
declare function __VLS_template(): {
|
|
5
7
|
attrs: Partial<{}>;
|
|
@@ -10,7 +12,13 @@ declare function __VLS_template(): {
|
|
|
10
12
|
rootEl: HTMLDivElement;
|
|
11
13
|
};
|
|
12
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
delete: () => any;
|
|
17
|
+
edit: () => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
|
|
19
|
+
onDelete?: (() => any) | undefined;
|
|
20
|
+
onEdit?: (() => any) | undefined;
|
|
21
|
+
}>, {
|
|
14
22
|
type: "default" | "success" | "error";
|
|
15
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
package/dist/UiChip/UiChip.js
CHANGED
|
@@ -1,25 +1,59 @@
|
|
|
1
1
|
import "./UiChip.css";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import { createElementBlock as n, openBlock as o, createElementVNode as c, defineComponent as m, normalizeClass as r, renderSlot as h, createCommentVNode as d, createBlock as u, createVNode as _, unref as f } from "vue";
|
|
3
|
+
import y from "../UiClose/UiClose.js";
|
|
4
|
+
import { _ as C } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const v = {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "800",
|
|
8
|
+
height: "800",
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
viewBox: "0 0 24 24"
|
|
11
|
+
};
|
|
12
|
+
function k(a, e) {
|
|
13
|
+
return o(), n("svg", v, [...e[0] || (e[0] = [
|
|
14
|
+
c("path", { d: "M23 4a1 1 0 0 1-1 1h-3a1 1 0 0 1 0-2h3a1 1 0 0 1 1 1M2 3h8.184a3 3 0 1 1 0 2H2a1 1 0 0 1 0-2m10 1a1 1 0 1 0 1-1 1 1 0 0 0-1 1M1 12a1 1 0 0 1 1-1h4.184a3 3 0 1 1 0 2H2a1 1 0 0 1-1-1m7 0a1 1 0 1 0 1-1 1 1 0 0 0-1 1m14-1h-7a1 1 0 0 0 0 2h7a1 1 0 0 0 0-2m0 8h-5a1 1 0 0 0 0 2h5a1 1 0 0 0 0-2M1 20a1 1 0 0 1 1-1h6.184a3 3 0 1 1 0 2H2a1 1 0 0 1-1-1m9 0a1 1 0 1 0 1-1 1 1 0 0 0-1 1" }, null, -1)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const w = { render: k }, E = "default", $ = ["data-type"], B = /* @__PURE__ */ m({
|
|
5
18
|
__name: "UiChip",
|
|
6
19
|
props: {
|
|
7
|
-
type: { default:
|
|
20
|
+
type: { default: E },
|
|
21
|
+
isEdit: { type: Boolean },
|
|
22
|
+
isDelete: { type: Boolean }
|
|
8
23
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
emits: ["edit", "delete"],
|
|
25
|
+
setup(a, { emit: e }) {
|
|
26
|
+
const s = a, l = e;
|
|
27
|
+
return (i, t) => (o(), n("div", {
|
|
28
|
+
class: r(i.$style.chip),
|
|
13
29
|
"data-type": s.type
|
|
14
30
|
}, [
|
|
15
|
-
|
|
16
|
-
|
|
31
|
+
h(i.$slots, "default"),
|
|
32
|
+
s.isEdit ? (o(), n("button", {
|
|
33
|
+
key: 0,
|
|
34
|
+
onClick: t[0] || (t[0] = (p) => l("edit")),
|
|
35
|
+
type: "button",
|
|
36
|
+
class: r(i.$style.edit)
|
|
37
|
+
}, [
|
|
38
|
+
_(f(w), {
|
|
39
|
+
width: "18",
|
|
40
|
+
height: "18"
|
|
41
|
+
})
|
|
42
|
+
], 2)) : d("", !0),
|
|
43
|
+
s.isDelete ? (o(), u(y, {
|
|
44
|
+
key: 1,
|
|
45
|
+
onClick: t[1] || (t[1] = (p) => l("delete")),
|
|
46
|
+
isSmall: "",
|
|
47
|
+
isDelete: ""
|
|
48
|
+
})) : d("", !0)
|
|
49
|
+
], 10, $));
|
|
17
50
|
}
|
|
18
|
-
}),
|
|
19
|
-
chip:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
51
|
+
}), M = "_chip_vs833_1", g = "_edit_vs833_21", D = {
|
|
52
|
+
chip: M,
|
|
53
|
+
edit: g
|
|
54
|
+
}, U = {
|
|
55
|
+
$style: D
|
|
56
|
+
}, V = /* @__PURE__ */ C(B, [["__cssModules", U]]);
|
|
23
57
|
export {
|
|
24
|
-
|
|
58
|
+
V as default
|
|
25
59
|
};
|
|
@@ -12186,12 +12186,14 @@ var vp = class extends jf {
|
|
|
12186
12186
|
...(t = this.options.editorProps) == null ? void 0 : t.attributes
|
|
12187
12187
|
},
|
|
12188
12188
|
dispatchTransaction: this.dispatchTransaction.bind(this),
|
|
12189
|
-
state: this.editorState
|
|
12189
|
+
state: this.editorState,
|
|
12190
|
+
markViews: this.extensionManager.markViews,
|
|
12191
|
+
nodeViews: this.extensionManager.nodeViews
|
|
12190
12192
|
});
|
|
12191
12193
|
const r = this.state.reconfigure({
|
|
12192
12194
|
plugins: this.extensionManager.plugins
|
|
12193
12195
|
});
|
|
12194
|
-
this.view.updateState(r), this.
|
|
12196
|
+
this.view.updateState(r), this.prependClass(), this.injectCSS();
|
|
12195
12197
|
const i = this.view.dom;
|
|
12196
12198
|
i.editor = this;
|
|
12197
12199
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "Mhz ui kit",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.38",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"test:cov": "vitest run --coverage"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@tiptap/pm": "3.4.
|
|
29
|
-
"@tiptap/starter-kit": "3.4.
|
|
30
|
-
"@tiptap/vue-3": "3.4.
|
|
28
|
+
"@tiptap/pm": "3.4.3",
|
|
29
|
+
"@tiptap/starter-kit": "3.4.3",
|
|
30
|
+
"@tiptap/vue-3": "3.4.3",
|
|
31
31
|
"@vueform/slider": "2.1.10",
|
|
32
32
|
"@vueuse/core": "13.9.0",
|
|
33
33
|
"@vueuse/integrations": "13.9.0",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@eslint/js": "9.35.0",
|
|
44
|
-
"@storybook/addon-docs": "9.1.
|
|
45
|
-
"@storybook/addon-themes": "9.1.
|
|
46
|
-
"@storybook/vue3": "9.1.
|
|
47
|
-
"@storybook/vue3-vite": "9.1.
|
|
44
|
+
"@storybook/addon-docs": "9.1.6",
|
|
45
|
+
"@storybook/addon-themes": "9.1.6",
|
|
46
|
+
"@storybook/vue3": "9.1.6",
|
|
47
|
+
"@storybook/vue3-vite": "9.1.6",
|
|
48
48
|
"@types/node": "24.4.0",
|
|
49
49
|
"@vitejs/plugin-vue": "6.0.1",
|
|
50
50
|
"@vitest/coverage-istanbul": "3.2.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"postcss-scss": "4.0.9",
|
|
64
64
|
"prettier": "3.6.2",
|
|
65
65
|
"sass-embedded": "1.92.1",
|
|
66
|
-
"storybook": "9.1.
|
|
66
|
+
"storybook": "9.1.6",
|
|
67
67
|
"stylelint": "16.24.0",
|
|
68
68
|
"stylelint-config-recess-order": "7.3.0",
|
|
69
69
|
"stylelint-config-recommended-scss": "16.0.1",
|