@web-utils/component 2.9.5 → 2.9.6

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.
@@ -0,0 +1 @@
1
+ .vue-cron .language{position:absolute;right:25px;z-index:1}.vue-cron .el-tabs{box-shadow:none}.vue-cron .tabBody .el-row{margin:10px 0}.vue-cron .tabBody .el-row .long .el-select{width:350px}.vue-cron .tabBody .el-row .el-input-number{width:110px}.vue-cron .bottom{width:100%;text-align:center;margin-top:5px;position:relative}.vue-cron .bottom .value{font-size:18px;vertical-align:middle}
@@ -0,0 +1,117 @@
1
+ import "quill/dist/quill.core.css";
2
+ import "quill/dist/quill.snow.css";
3
+ import "quill/dist/quill.bubble.css";
4
+ import s from "quill";
5
+ import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
6
+ var o = function() {
7
+ var t = this, i = t.$createElement, e = t._self._c || i;
8
+ return e("div", {
9
+ staticClass: "vue-quill-editor"
10
+ }, [t._t("toolbar"), e("div", {
11
+ ref: "editor",
12
+ staticClass: "quill-editor"
13
+ })], 2);
14
+ }, r = [];
15
+ const u = {
16
+ theme: "snow",
17
+ boundary: document.body,
18
+ modules: {
19
+ toolbar: [
20
+ ["bold", "italic", "underline", "strike"],
21
+ ["blockquote", "code-block"],
22
+ [{ header: 1 }, { header: 2 }],
23
+ [{ list: "ordered" }, { list: "bullet" }],
24
+ [{ script: "sub" }, { script: "super" }],
25
+ [{ indent: "-1" }, { indent: "+1" }],
26
+ [{ direction: "rtl" }],
27
+ [{ size: ["small", !1, "large", "huge"] }],
28
+ [{ header: [1, 2, 3, 4, 5, 6, !1] }],
29
+ [{ color: [] }, { background: [] }],
30
+ [{ font: [] }],
31
+ [{ align: [] }],
32
+ ["clean"],
33
+ ["link", "image", "video"]
34
+ ]
35
+ },
36
+ placeholder: "Insert text here ...",
37
+ readOnly: !1
38
+ }, a = {
39
+ name: "VueQuillEditor",
40
+ props: {
41
+ content: String,
42
+ value: String,
43
+ disabled: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ options: {
48
+ type: Object,
49
+ required: !1,
50
+ default: () => ({})
51
+ },
52
+ globalOptions: {
53
+ type: Object,
54
+ required: !1,
55
+ default: () => ({})
56
+ }
57
+ },
58
+ data() {
59
+ return {
60
+ innerOptions: {},
61
+ innerContent: "",
62
+ defaultOptions: u
63
+ };
64
+ },
65
+ watch: {
66
+ // Watch content change
67
+ content(t) {
68
+ this.quill && (t && t !== this.innerContent ? (this.innerContent = t, this.quill.pasteHTML(t)) : t || this.quill.setText(""));
69
+ },
70
+ // Watch content change
71
+ value(t) {
72
+ this.quill && (t && t !== this.innerContent ? (this.innerContent = t, this.quill.pasteHTML(t)) : t || this.quill.setText(""));
73
+ },
74
+ // Watch disabled change
75
+ disabled(t) {
76
+ this.quill && this.quill.enable(!t);
77
+ }
78
+ },
79
+ mounted() {
80
+ this.initialize();
81
+ },
82
+ beforeDestroy() {
83
+ this.quill = null, delete this.quill;
84
+ },
85
+ methods: {
86
+ // Init Quill instance
87
+ initialize() {
88
+ this.$el && (this.innerOptions = Object.assign({}, this.defaultOptions, this.globalOptions, this.options), this.quill = new s(this.$refs.editor, this.innerOptions), this.quill.enable(!1), (this.value || this.content) && this.quill.pasteHTML(this.value || this.content), this.disabled || this.quill.enable(!0), this.quill.on("selection-change", (t) => {
89
+ t ? this.$emit("focus", this.quill) : this.$emit("blur", this.quill);
90
+ }), this.quill.on("text-change", () => {
91
+ let t = this.$refs.editor.children[0].innerHTML;
92
+ const i = this.quill, e = this.quill.getText();
93
+ t === "<p><br></p>" && (t = ""), this.innerContent = t, this.$emit("input", this.innerContent), this.$emit("change", { html: t, text: e, quill: i });
94
+ }), this.$emit("ready", this.quill));
95
+ }
96
+ }
97
+ }, l = {};
98
+ var h = /* @__PURE__ */ n(
99
+ a,
100
+ o,
101
+ r,
102
+ !1,
103
+ d,
104
+ null,
105
+ null,
106
+ null
107
+ );
108
+ function d(t) {
109
+ for (let i in l)
110
+ this[i] = l[i];
111
+ }
112
+ const _ = /* @__PURE__ */ function() {
113
+ return h.exports;
114
+ }();
115
+ export {
116
+ _ as default
117
+ };
@@ -0,0 +1 @@
1
+ .vue-quill-editor .quill-editor{min-height:400px}
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "framework": "vue",
4
4
  "name": "@web-utils/component",
5
- "version": "2.9.5",
5
+ "version": "2.9.6",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",
@@ -19770,6 +19770,36 @@
19770
19770
  }
19771
19771
  ]
19772
19772
  },
19773
+ {
19774
+ "name": "VueCron",
19775
+ "description": "",
19776
+ "attributes": [
19777
+ {
19778
+ "name": "data",
19779
+ "value": {
19780
+ "kind": "expression",
19781
+ "type": "object"
19782
+ },
19783
+ "default": ""
19784
+ },
19785
+ {
19786
+ "name": "expression",
19787
+ "value": {
19788
+ "kind": "expression",
19789
+ "type": "string"
19790
+ },
19791
+ "default": ""
19792
+ }
19793
+ ],
19794
+ "events": [
19795
+ {
19796
+ "name": "change"
19797
+ },
19798
+ {
19799
+ "name": "close"
19800
+ }
19801
+ ]
19802
+ },
19773
19803
  {
19774
19804
  "name": "VueQrCode",
19775
19805
  "description": "",
@@ -19808,6 +19838,76 @@
19808
19838
  }
19809
19839
  ]
19810
19840
  },
19841
+ {
19842
+ "name": "VueQuillEditor",
19843
+ "description": "",
19844
+ "attributes": [
19845
+ {
19846
+ "name": "content",
19847
+ "value": {
19848
+ "kind": "expression",
19849
+ "type": "string"
19850
+ },
19851
+ "default": ""
19852
+ },
19853
+ {
19854
+ "name": "value",
19855
+ "value": {
19856
+ "kind": "expression",
19857
+ "type": "string"
19858
+ },
19859
+ "default": ""
19860
+ },
19861
+ {
19862
+ "name": "disabled",
19863
+ "value": {
19864
+ "kind": "expression",
19865
+ "type": "boolean"
19866
+ },
19867
+ "default": "false"
19868
+ },
19869
+ {
19870
+ "name": "options",
19871
+ "required": false,
19872
+ "value": {
19873
+ "kind": "expression",
19874
+ "type": "object"
19875
+ },
19876
+ "default": "{}"
19877
+ },
19878
+ {
19879
+ "name": "globalOptions",
19880
+ "required": false,
19881
+ "value": {
19882
+ "kind": "expression",
19883
+ "type": "object"
19884
+ },
19885
+ "default": "{}"
19886
+ }
19887
+ ],
19888
+ "events": [
19889
+ {
19890
+ "name": "blur"
19891
+ },
19892
+ {
19893
+ "name": "focus"
19894
+ },
19895
+ {
19896
+ "name": "input"
19897
+ },
19898
+ {
19899
+ "name": "change"
19900
+ },
19901
+ {
19902
+ "name": "ready"
19903
+ }
19904
+ ],
19905
+ "slots": [
19906
+ {
19907
+ "name": "toolbar"
19908
+ }
19909
+ ]
19910
+ },
19811
19911
  {
19812
19912
  "name": "VueTagsInput",
19813
19913
  "description": "",