@web-utils/component 1.2.6 → 1.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
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": "1.2.6",
5
+ "version": "1.2.7",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "description-markup": "markdown",
@@ -1390,45 +1390,6 @@
1390
1390
  }
1391
1391
  ]
1392
1392
  },
1393
- {
1394
- "name": "ElColorPickerDropdown",
1395
- "description": "",
1396
- "attributes": [
1397
- {
1398
- "name": "color",
1399
- "required": true,
1400
- "value": {
1401
- "kind": "expression",
1402
- "type": "object"
1403
- },
1404
- "default": ""
1405
- },
1406
- {
1407
- "name": "showAlpha",
1408
- "value": {
1409
- "kind": "expression",
1410
- "type": "boolean"
1411
- },
1412
- "default": ""
1413
- },
1414
- {
1415
- "name": "predefine",
1416
- "value": {
1417
- "kind": "expression",
1418
- "type": "array"
1419
- },
1420
- "default": ""
1421
- }
1422
- ],
1423
- "events": [
1424
- {
1425
- "name": "clear"
1426
- },
1427
- {
1428
- "name": "pick"
1429
- }
1430
- ]
1431
- },
1432
1393
  {
1433
1394
  "name": "ElementDialog",
1434
1395
  "description": "",
@@ -1,170 +0,0 @@
1
- import l from "element-ui/packages/color-picker/src/components/sv-panel";
2
- import i from "element-ui/packages/color-picker/src/components/hue-slider";
3
- import s from "element-ui/packages/color-picker/src/components/alpha-slider";
4
- import a from "element-ui/packages/color-picker/src/components/predefine";
5
- import c from "element-ui/src/utils/vue-popper";
6
- import p from "element-ui/src/mixins/locale";
7
- import { n as u } from "../../chunks/6499de3a.js";
8
- var m = function() {
9
- var e = this, t = e.$createElement, o = e._self._c || t;
10
- return o("transition", {
11
- attrs: {
12
- name: "el-zoom-in-top"
13
- },
14
- on: {
15
- "after-leave": e.doDestroy
16
- }
17
- }, [o("div", {
18
- directives: [{
19
- name: "show",
20
- rawName: "v-show",
21
- value: e.showPopper,
22
- expression: "showPopper"
23
- }],
24
- staticClass: "el-color-dropdown"
25
- }, [o("div", {
26
- staticClass: "el-color-dropdown__main-wrapper"
27
- }, [o("hue-slider", {
28
- ref: "hue",
29
- staticStyle: {
30
- float: "right"
31
- },
32
- attrs: {
33
- color: e.color,
34
- vertical: ""
35
- }
36
- }), o("sv-panel", {
37
- ref: "sl",
38
- attrs: {
39
- color: e.color
40
- }
41
- })], 1), e.showAlpha ? o("alpha-slider", {
42
- ref: "alpha",
43
- attrs: {
44
- color: e.color
45
- }
46
- }) : e._e(), e.predefine ? o("predefine", {
47
- attrs: {
48
- color: e.color,
49
- colors: e.predefine
50
- }
51
- }) : e._e(), o("div", {
52
- staticClass: "el-color-dropdown__btns"
53
- }, [o("span", {
54
- staticClass: "el-color-dropdown__value"
55
- }, [o("el-input", {
56
- attrs: {
57
- "validate-event": !1,
58
- size: "mini"
59
- },
60
- on: {
61
- blur: e.handleConfirm
62
- },
63
- nativeOn: {
64
- keyup: function(r) {
65
- return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.handleConfirm.apply(null, arguments);
66
- }
67
- },
68
- model: {
69
- value: e.customInput,
70
- callback: function(r) {
71
- e.customInput = r;
72
- },
73
- expression: "customInput"
74
- }
75
- })], 1), o("el-button", {
76
- staticClass: "el-color-dropdown__link-btn",
77
- attrs: {
78
- size: "mini",
79
- type: "text"
80
- },
81
- on: {
82
- click: function(r) {
83
- return e.$emit("clear");
84
- }
85
- }
86
- }, [e._v(" " + e._s(e.t("el.colorpicker.clear")) + " ")]), o("el-button", {
87
- staticClass: "el-color-dropdown__btn",
88
- attrs: {
89
- plain: "",
90
- size: "mini"
91
- },
92
- on: {
93
- click: e.confirmValue
94
- }
95
- }, [e._v(" " + e._s(e.t("el.colorpicker.confirm")) + " ")])], 1)], 1)]);
96
- }, d = [];
97
- const f = {
98
- name: "ElColorPickerDropdown",
99
- components: {
100
- SvPanel: l,
101
- HueSlider: i,
102
- AlphaSlider: s,
103
- Predefine: a
104
- },
105
- mixins: [c, p],
106
- props: {
107
- color: {
108
- type: Object,
109
- required: !0
110
- },
111
- showAlpha: Boolean,
112
- predefine: Array
113
- },
114
- data() {
115
- return {
116
- customInput: ""
117
- };
118
- },
119
- computed: {
120
- currentColor() {
121
- const e = this.$parent;
122
- return !e.value && !e.showPanelColor ? "" : e.color.value;
123
- }
124
- },
125
- watch: {
126
- showPopper(e) {
127
- e === !0 && this.$nextTick(() => {
128
- const { sl: t, hue: o, alpha: r } = this.$refs;
129
- t && t.update(), o && o.update(), r && r.update();
130
- });
131
- },
132
- currentColor: {
133
- immediate: !0,
134
- handler(e) {
135
- this.customInput = e;
136
- }
137
- }
138
- },
139
- mounted() {
140
- this.$parent.popperElm = this.popperElm = this.$el, this.referenceElm = this.$parent.$el;
141
- },
142
- methods: {
143
- confirmValue() {
144
- this.$emit("pick");
145
- },
146
- handleConfirm() {
147
- this.color.fromString(this.customInput);
148
- }
149
- }
150
- }, n = {};
151
- var h = /* @__PURE__ */ u(
152
- f,
153
- m,
154
- d,
155
- !1,
156
- _,
157
- null,
158
- null,
159
- null
160
- );
161
- function _(e) {
162
- for (let t in n)
163
- this[t] = n[t];
164
- }
165
- const $ = /* @__PURE__ */ function() {
166
- return h.exports;
167
- }();
168
- export {
169
- $ as default
170
- };