@farris/ui-vue 1.2.8 → 1.2.9
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/components/accordion/index.esm.js +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var tt = Object.defineProperty;
|
|
2
2
|
var nt = (r, e, t) => e in r ? tt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var s = (r, e, t) => nt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { defineComponent as ee, ref as S, onMounted as T, watch as
|
|
4
|
+
import { defineComponent as ee, ref as S, onMounted as T, watch as q, createVNode as k, withModifiers as _, createTextVNode as Re, computed as U, onBeforeMount as qe, withDirectives as W, vShow as K, vModelText as Ye, inject as rt } from "vue";
|
|
5
5
|
import { cloneDeep as it } from "lodash-es";
|
|
6
6
|
const Xe = {}, Ge = {};
|
|
7
7
|
function $e(r) {
|
|
8
|
-
const { properties: e, title: t } = r, n = Object.keys(e).reduce((
|
|
9
|
-
return n.id = `${t}-${Date.now()}
|
|
8
|
+
const { properties: e, title: t, ignore: n } = r, i = n && Array.isArray(n), l = Object.keys(e).reduce((u, c) => ((!i || !n.find((g) => g == c)) && (u[c] = e[c].type === "object" && e[c].properties ? $e(e[c]) : it(e[c].default)), u), {});
|
|
9
|
+
return (!i || !n.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
|
|
10
10
|
}
|
|
11
|
-
function ke(r, e = {}) {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
return
|
|
11
|
+
function ke(r, e = {}, t) {
|
|
12
|
+
const n = Xe[r];
|
|
13
|
+
if (n) {
|
|
14
|
+
let i = $e(n);
|
|
15
|
+
const l = Ge[r];
|
|
16
|
+
return i = l ? l({ getSchemaByType: ke }, i, e, t) : i, i;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
@@ -89,7 +89,7 @@ function ut(r = {}) {
|
|
|
89
89
|
return l(h).reduce((b, y) => b && u(y, p), !0);
|
|
90
90
|
}
|
|
91
91
|
function g(h, p) {
|
|
92
|
-
const d = Object.keys(h), f = d.includes("allOf"), b = d.includes("anyOf"), y = f || b, E = (y ? h[y ? f ? "allOf" : "anyOf" : "allOf"] : [h]).map((
|
|
92
|
+
const d = Object.keys(h), f = d.includes("allOf"), b = d.includes("anyOf"), y = f || b, E = (y ? h[y ? f ? "allOf" : "anyOf" : "allOf"] : [h]).map((A) => c(A, p));
|
|
93
93
|
return f ? !E.includes(!1) : E.includes(!0);
|
|
94
94
|
}
|
|
95
95
|
return { parseValueSchema: g };
|
|
@@ -659,7 +659,7 @@ function He(r, e, t) {
|
|
|
659
659
|
(l || !(n in e)) && (l || (l = Array.prototype.slice.call(e, 0, n)), l[n] = e[n]);
|
|
660
660
|
return r.concat(l || Array.prototype.slice.call(e));
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function X(r) {
|
|
663
663
|
return typeof r == "function";
|
|
664
664
|
}
|
|
665
665
|
function ze(r) {
|
|
@@ -711,7 +711,7 @@ var he = function() {
|
|
|
711
711
|
else
|
|
712
712
|
u.remove(this);
|
|
713
713
|
var p = this.initialTeardown;
|
|
714
|
-
if (
|
|
714
|
+
if (X(p))
|
|
715
715
|
try {
|
|
716
716
|
p();
|
|
717
717
|
} catch (v) {
|
|
@@ -773,10 +773,10 @@ var he = function() {
|
|
|
773
773
|
}(), r;
|
|
774
774
|
}(), Ce = he.EMPTY;
|
|
775
775
|
function Je(r) {
|
|
776
|
-
return r instanceof he || r && "closed" in r &&
|
|
776
|
+
return r instanceof he || r && "closed" in r && X(r.remove) && X(r.add) && X(r.unsubscribe);
|
|
777
777
|
}
|
|
778
778
|
function je(r) {
|
|
779
|
-
|
|
779
|
+
X(r) ? r() : r.unsubscribe();
|
|
780
780
|
}
|
|
781
781
|
var Qe = {
|
|
782
782
|
onUnhandledError: null,
|
|
@@ -809,7 +809,7 @@ var xe = function(r) {
|
|
|
809
809
|
te(e, r);
|
|
810
810
|
function e(t) {
|
|
811
811
|
var n = r.call(this) || this;
|
|
812
|
-
return n.isStopped = !1, t ? (n.destination = t, Je(t) && t.add(n)) : n.destination =
|
|
812
|
+
return n.isStopped = !1, t ? (n.destination = t, Je(t) && t.add(n)) : n.destination = At, n;
|
|
813
813
|
}
|
|
814
814
|
return e.create = function(t, n, i) {
|
|
815
815
|
return new Be(t, n, i);
|
|
@@ -875,7 +875,7 @@ var Vt = function() {
|
|
|
875
875
|
te(e, r);
|
|
876
876
|
function e(t, n, i) {
|
|
877
877
|
var l = r.call(this) || this, u;
|
|
878
|
-
if (
|
|
878
|
+
if (X(t) || !t)
|
|
879
879
|
u = {
|
|
880
880
|
next: t ?? void 0,
|
|
881
881
|
error: n ?? void 0,
|
|
@@ -901,12 +901,12 @@ function oe(r) {
|
|
|
901
901
|
function xt(r) {
|
|
902
902
|
throw r;
|
|
903
903
|
}
|
|
904
|
-
var
|
|
904
|
+
var At = {
|
|
905
905
|
closed: !0,
|
|
906
906
|
next: Ne,
|
|
907
907
|
error: xt,
|
|
908
908
|
complete: Ne
|
|
909
|
-
},
|
|
909
|
+
}, It = function() {
|
|
910
910
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
911
911
|
}();
|
|
912
912
|
function Ze(r) {
|
|
@@ -957,7 +957,7 @@ var Ue = function() {
|
|
|
957
957
|
}, r.prototype._subscribe = function(e) {
|
|
958
958
|
var t;
|
|
959
959
|
return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
|
|
960
|
-
}, r.prototype[
|
|
960
|
+
}, r.prototype[It] = function() {
|
|
961
961
|
return this;
|
|
962
962
|
}, r.prototype.pipe = function() {
|
|
963
963
|
for (var e = [], t = 0; t < arguments.length; t++)
|
|
@@ -984,13 +984,13 @@ function De(r) {
|
|
|
984
984
|
return (e = r ?? Qe.Promise) !== null && e !== void 0 ? e : Promise;
|
|
985
985
|
}
|
|
986
986
|
function Nt(r) {
|
|
987
|
-
return r &&
|
|
987
|
+
return r && X(r.next) && X(r.error) && X(r.complete);
|
|
988
988
|
}
|
|
989
989
|
function Ut(r) {
|
|
990
990
|
return r && r instanceof xe || Nt(r) && Je(r);
|
|
991
991
|
}
|
|
992
992
|
function Dt(r) {
|
|
993
|
-
return
|
|
993
|
+
return X(r == null ? void 0 : r.lift);
|
|
994
994
|
}
|
|
995
995
|
function Lt(r) {
|
|
996
996
|
return function(e) {
|
|
@@ -1047,7 +1047,7 @@ var qt = function(r) {
|
|
|
1047
1047
|
return function() {
|
|
1048
1048
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
1049
1049
|
};
|
|
1050
|
-
}),
|
|
1050
|
+
}), Ae = function(r) {
|
|
1051
1051
|
te(e, r);
|
|
1052
1052
|
function e() {
|
|
1053
1053
|
var t = r.call(this) || this;
|
|
@@ -1145,7 +1145,7 @@ var qt = function(r) {
|
|
|
1145
1145
|
var n, i;
|
|
1146
1146
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : Ce;
|
|
1147
1147
|
}, e;
|
|
1148
|
-
}(
|
|
1148
|
+
}(Ae), Fe = function(r) {
|
|
1149
1149
|
te(e, r);
|
|
1150
1150
|
function e(t) {
|
|
1151
1151
|
var n = r.call(this) || this;
|
|
@@ -1168,7 +1168,7 @@ var qt = function(r) {
|
|
|
1168
1168
|
}, e.prototype.next = function(t) {
|
|
1169
1169
|
r.prototype.next.call(this, this._value = t);
|
|
1170
1170
|
}, e;
|
|
1171
|
-
}(
|
|
1171
|
+
}(Ae);
|
|
1172
1172
|
function Xt(r, e) {
|
|
1173
1173
|
return e === void 0 && (e = Ze), r = r ?? Gt, Lt(function(t, n) {
|
|
1174
1174
|
var i, l = !0;
|
|
@@ -1182,7 +1182,7 @@ function Gt(r, e) {
|
|
|
1182
1182
|
return r === e;
|
|
1183
1183
|
}
|
|
1184
1184
|
var R = /* @__PURE__ */ ((r) => (r.hex = "hex", r.hexa = "hexa", r.rgba = "rgba", r.rgb = "rgb", r.hsla = "hsla", r.hsl = "hsl", r.cmyk = "cmyk", r))(R || {});
|
|
1185
|
-
class
|
|
1185
|
+
class Ie {
|
|
1186
1186
|
constructor(e) {
|
|
1187
1187
|
/** 所选颜色值 */
|
|
1188
1188
|
s(this, "modelValue", null);
|
|
@@ -1190,7 +1190,7 @@ class Ae {
|
|
|
1190
1190
|
s(this, "hueValue", null);
|
|
1191
1191
|
/** 初始颜色值 */
|
|
1192
1192
|
s(this, "initValue", null);
|
|
1193
|
-
s(this, "valueChanged", new
|
|
1193
|
+
s(this, "valueChanged", new Ae());
|
|
1194
1194
|
s(this, "presetsVisibilityChanges", new Fe(!0));
|
|
1195
1195
|
s(this, "initType", null);
|
|
1196
1196
|
s(this, "alphaChannelVisibilityChanges", new Fe(!0));
|
|
@@ -1271,7 +1271,7 @@ class Ae {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
1273
|
/** 确定输入颜色类型 */
|
|
1274
|
-
s(
|
|
1274
|
+
s(Ie, "finOutInputType");
|
|
1275
1275
|
function j(r, e) {
|
|
1276
1276
|
switch (e) {
|
|
1277
1277
|
case R.hex:
|
|
@@ -1324,8 +1324,8 @@ const Wt = {
|
|
|
1324
1324
|
c(v, $);
|
|
1325
1325
|
const E = r.color == null ? "transparent" : r.color, M = P.from(E);
|
|
1326
1326
|
if (g(), M != null) {
|
|
1327
|
-
const
|
|
1328
|
-
e.emit("update:color",
|
|
1327
|
+
const A = r.hue.getHsva(), N = M.getHsva(), I = new P().setHsva(A.hue, v, $, N.alpha);
|
|
1328
|
+
e.emit("update:color", I);
|
|
1329
1329
|
}
|
|
1330
1330
|
!M && l.value && e.emit("update:color", null);
|
|
1331
1331
|
}
|
|
@@ -1339,10 +1339,10 @@ const Wt = {
|
|
|
1339
1339
|
} = n.value.getBoundingClientRect(), {
|
|
1340
1340
|
pageX: $,
|
|
1341
1341
|
pageY: E
|
|
1342
|
-
} = "touches" in d ? d.touches[0] : d, M = Math.max(0, Math.min($ - (v + window.pageXOffset), f)),
|
|
1342
|
+
} = "touches" in d ? d.touches[0] : d, M = Math.max(0, Math.min($ - (v + window.pageXOffset), f)), A = Math.max(0, Math.min(E - (y + window.pageYOffset), b));
|
|
1343
1343
|
h({
|
|
1344
1344
|
x: M,
|
|
1345
|
-
y:
|
|
1345
|
+
y: A,
|
|
1346
1346
|
height: b,
|
|
1347
1347
|
width: f
|
|
1348
1348
|
});
|
|
@@ -1351,9 +1351,9 @@ const Wt = {
|
|
|
1351
1351
|
return T(() => {
|
|
1352
1352
|
const d = r.color.getHsva();
|
|
1353
1353
|
c(d.saturation, d.value);
|
|
1354
|
-
}),
|
|
1354
|
+
}), q(() => r.color, (d) => {
|
|
1355
1355
|
d.getHsva();
|
|
1356
|
-
}),
|
|
1356
|
+
}), q(() => r.color, (d) => {
|
|
1357
1357
|
const f = d.getHsva();
|
|
1358
1358
|
c(f.saturation, f.value);
|
|
1359
1359
|
}), () => k("div", {
|
|
@@ -1396,11 +1396,11 @@ const Wt = {
|
|
|
1396
1396
|
top: E,
|
|
1397
1397
|
left: M
|
|
1398
1398
|
} = u.value.getBoundingClientRect(), {
|
|
1399
|
-
pageX:
|
|
1399
|
+
pageX: A,
|
|
1400
1400
|
pageY: N
|
|
1401
|
-
} = "touches" in y ? y.touches[0] : y,
|
|
1401
|
+
} = "touches" in y ? y.touches[0] : y, I = Math.max(0, Math.min(A - (M + window.pageXOffset), v)), H = Math.max(0, Math.min(N - (E + window.pageYOffset), $));
|
|
1402
1402
|
b({
|
|
1403
|
-
x:
|
|
1403
|
+
x: I,
|
|
1404
1404
|
y: H,
|
|
1405
1405
|
height: $,
|
|
1406
1406
|
width: v
|
|
@@ -1437,13 +1437,13 @@ const Wt = {
|
|
|
1437
1437
|
}) {
|
|
1438
1438
|
const M = v / $ * 360;
|
|
1439
1439
|
f(M);
|
|
1440
|
-
const
|
|
1441
|
-
(r.color != null || r.color == null && n.value) && (e.emit("update:hue",
|
|
1440
|
+
const A = r.color.getHsva(), N = new P().setHsva(M, A.saturation, A.value, A.alpha), I = new P().setHsva(M, 100, 100, A.alpha);
|
|
1441
|
+
(r.color != null || r.color == null && n.value) && (e.emit("update:hue", I), e.emit("update:color", N));
|
|
1442
1442
|
}
|
|
1443
|
-
return
|
|
1443
|
+
return q(t, (y) => {
|
|
1444
1444
|
const v = y.getHsva();
|
|
1445
1445
|
f(v.hue);
|
|
1446
|
-
}),
|
|
1446
|
+
}), q(() => r.color, (y) => {
|
|
1447
1447
|
const v = y.getHsva();
|
|
1448
1448
|
f(v.hue);
|
|
1449
1449
|
}), () => k("div", {
|
|
@@ -1509,7 +1509,7 @@ const Wt = {
|
|
|
1509
1509
|
return T(() => {
|
|
1510
1510
|
const p = r.color.getHsva();
|
|
1511
1511
|
u(p.alpha);
|
|
1512
|
-
}),
|
|
1512
|
+
}), q(() => r.color, (p) => {
|
|
1513
1513
|
const d = p.getHsva();
|
|
1514
1514
|
u(d.alpha);
|
|
1515
1515
|
}), () => k("div", {
|
|
@@ -1577,19 +1577,19 @@ const Wt = {
|
|
|
1577
1577
|
emits: ["valueChanged", "activeChange", "update:color", "update:hue"],
|
|
1578
1578
|
setup(r, e) {
|
|
1579
1579
|
const t = S(new P(r.color)), n = S(r.color), i = S(r.disabled), l = S(r.color), u = S(r.allowColorNull), c = S(r.presets), g = S(!1), h = S(!1), p = S(!1), d = S("HEX"), f = Math.floor(Math.random() * 1e3).toString();
|
|
1580
|
-
let b = -1, y, v = new
|
|
1580
|
+
let b = -1, y, v = new Ie("#000000");
|
|
1581
1581
|
const $ = S(r.color);
|
|
1582
1582
|
let E, M;
|
|
1583
|
-
const
|
|
1583
|
+
const A = S(null), N = S(null), I = S(null);
|
|
1584
1584
|
let H = U(() => !y && v && v.initType ? v.initType : y);
|
|
1585
1585
|
const O = U({
|
|
1586
1586
|
get() {
|
|
1587
1587
|
return y && n.value !== null ? (re(y), j(new P(n.value), R[y])) : n.value;
|
|
1588
1588
|
},
|
|
1589
1589
|
set(w) {
|
|
1590
|
-
w !== null && (
|
|
1590
|
+
w !== null && (Y(w), Q(w));
|
|
1591
1591
|
}
|
|
1592
|
-
}),
|
|
1592
|
+
}), x = S(O.value), V = U(() => b > -1), D = U(() => c.value.length > 0), G = U(() => ({
|
|
1593
1593
|
"background-color": l.value
|
|
1594
1594
|
})), C = U(() => h.value && g.value ? "display:flex" : "display:none"), J = [{
|
|
1595
1595
|
text: "HEX",
|
|
@@ -1614,10 +1614,10 @@ const Wt = {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
1616
|
function de() {
|
|
1617
|
-
n.value && (
|
|
1617
|
+
n.value && (Y(n.value), !n.value && u.value || (n.value = j(new P(n.value), R[H.value])), x.value = O.value), ne(re(v.initType));
|
|
1618
1618
|
}
|
|
1619
1619
|
function ae() {
|
|
1620
|
-
n.value &&
|
|
1620
|
+
n.value && Y(n.value), v.hasPresets() || v.setColorPresets(c.value), n.value ? l.value = j(new P(n.value), R[H.value]) : !n.value && u.value && (l.value = null);
|
|
1621
1621
|
}
|
|
1622
1622
|
function fe() {
|
|
1623
1623
|
v.valueChanges.subscribe((w) => {
|
|
@@ -1636,12 +1636,12 @@ const Wt = {
|
|
|
1636
1636
|
v.setColorPresets(c.value || ["#eaecf3"]);
|
|
1637
1637
|
}), T(() => {
|
|
1638
1638
|
pe(), z(), de(), ae();
|
|
1639
|
-
}),
|
|
1639
|
+
}), q(d, () => {
|
|
1640
1640
|
fe(), O.value = j(new P(n.value), R[y || v.initType]), t.value = new P(O.value), ve();
|
|
1641
|
-
}),
|
|
1642
|
-
j(v.value, v.initType) !== w && w !== null &&
|
|
1643
|
-
}),
|
|
1644
|
-
n.value = j(w, R[y || v.initType]),
|
|
1641
|
+
}), q(n, (w) => {
|
|
1642
|
+
j(v.value, v.initType) !== w && w !== null && Y(w), ne(re(v.initType));
|
|
1643
|
+
}), q(t, (w) => {
|
|
1644
|
+
n.value = j(w, R[y || v.initType]), Y(n.value), O.value = n.value;
|
|
1645
1645
|
});
|
|
1646
1646
|
function Q(w) {
|
|
1647
1647
|
const m = document.getElementById(`farris-color-picker-plus-input-${f}`);
|
|
@@ -1651,29 +1651,29 @@ const Wt = {
|
|
|
1651
1651
|
var m, B;
|
|
1652
1652
|
if (w == null || w.stopPropagation(), u.value) {
|
|
1653
1653
|
l.value = (n == null ? void 0 : n.value) ?? null;
|
|
1654
|
-
const
|
|
1654
|
+
const F = {
|
|
1655
1655
|
elementValue: l
|
|
1656
1656
|
};
|
|
1657
|
-
e.emit("valueChanged",
|
|
1657
|
+
e.emit("valueChanged", F), L();
|
|
1658
1658
|
}
|
|
1659
1659
|
if (!u.value && !(O.value == null || O.value == null || O.value == "")) {
|
|
1660
|
-
(B = (m =
|
|
1661
|
-
const
|
|
1660
|
+
(B = (m = A.value) == null ? void 0 : m.style) == null || B.setProperty("background", n.value), p.value = !0, l.value = n.value;
|
|
1661
|
+
const F = {
|
|
1662
1662
|
elementValue: l
|
|
1663
1663
|
};
|
|
1664
|
-
e.emit("valueChanged",
|
|
1664
|
+
e.emit("valueChanged", F), L();
|
|
1665
1665
|
}
|
|
1666
|
-
!$.value && !n.value && !p.value && u &&
|
|
1666
|
+
!$.value && !n.value && !p.value && u && L(), Q(n.value), O.value = n.value, M.classList.contains("disabled") || (x.value = n.value, g.value = !1);
|
|
1667
1667
|
}
|
|
1668
|
-
function
|
|
1668
|
+
function Y(w) {
|
|
1669
1669
|
v == null || v.setValueFrom(w, f, u.value);
|
|
1670
1670
|
}
|
|
1671
1671
|
function ye(w) {
|
|
1672
1672
|
E = document.getElementById(`farris-color-picker-panel-${f}`);
|
|
1673
1673
|
const m = E.className == "color-picker-panel";
|
|
1674
|
-
i.value || m || (g.value = !0, E.classList.toggle("disabled"), z(),
|
|
1674
|
+
i.value || m || (g.value = !0, E.classList.toggle("disabled"), z(), Y(n.value), w.stopPropagation());
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function L() {
|
|
1677
1677
|
E = document.getElementById(`farris-color-picker-panel-${f}`), E.className = "color-picker-panel disabled";
|
|
1678
1678
|
}
|
|
1679
1679
|
function re(w) {
|
|
@@ -1683,7 +1683,7 @@ const Wt = {
|
|
|
1683
1683
|
function Z(w) {
|
|
1684
1684
|
if (!M.classList.contains("disabled")) {
|
|
1685
1685
|
const m = J.length;
|
|
1686
|
-
b = (m + b + (w === "up" ? 1 : -1)) % m, y = J[b].type, ne(b),
|
|
1686
|
+
b = (m + b + (w === "up" ? 1 : -1)) % m, y = J[b].type, ne(b), Y(n.value);
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
return () => k("div", {
|
|
@@ -1694,7 +1694,7 @@ const Wt = {
|
|
|
1694
1694
|
disabled: i.value
|
|
1695
1695
|
}],
|
|
1696
1696
|
id: "farris-color-picker-panel",
|
|
1697
|
-
ref:
|
|
1697
|
+
ref: I,
|
|
1698
1698
|
onClick: (w) => w.stopPropagation(),
|
|
1699
1699
|
style: "top:30px"
|
|
1700
1700
|
}, [k("div", {
|
|
@@ -1723,7 +1723,7 @@ const Wt = {
|
|
|
1723
1723
|
style: "display:flex;align-items: center;"
|
|
1724
1724
|
}, [W(k("span", {
|
|
1725
1725
|
style: "width:40px;margin-right:10px;"
|
|
1726
|
-
}, [d.value]), [[K,
|
|
1726
|
+
}, [d.value]), [[K, D]]), W(k("input", {
|
|
1727
1727
|
type: "text",
|
|
1728
1728
|
title: "color-picker-plus",
|
|
1729
1729
|
id: "farris-color-picker-plus-input",
|
|
@@ -1738,7 +1738,7 @@ const Wt = {
|
|
|
1738
1738
|
}, null), k("span", {
|
|
1739
1739
|
class: "f-icon f-icon-arrow-60-down type-icon-btn",
|
|
1740
1740
|
onClick: () => Z("down")
|
|
1741
|
-
}, null)]), [[K,
|
|
1741
|
+
}, null)]), [[K, D]]), k("div", {
|
|
1742
1742
|
class: "input-btn"
|
|
1743
1743
|
}, [k("button", {
|
|
1744
1744
|
id: "farris-color-picker-plus-sure",
|
|
@@ -1751,13 +1751,13 @@ const Wt = {
|
|
|
1751
1751
|
"onUpdate:hue": (w) => v.hue = w,
|
|
1752
1752
|
randomId: f,
|
|
1753
1753
|
colorPresets: v.presets
|
|
1754
|
-
}, null), [[K,
|
|
1754
|
+
}, null), [[K, V]])]), k("div", {
|
|
1755
1755
|
class: "color-picker-wrapper"
|
|
1756
1756
|
}, [k("input", {
|
|
1757
1757
|
title: "color-picker-input",
|
|
1758
1758
|
type: "text",
|
|
1759
1759
|
class: "color-picker-input form-control",
|
|
1760
|
-
value:
|
|
1760
|
+
value: x.value,
|
|
1761
1761
|
readonly: i.value,
|
|
1762
1762
|
onClick: (w) => w.stopPropagation()
|
|
1763
1763
|
}, null), k("div", {
|
|
@@ -1771,7 +1771,7 @@ const Wt = {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
});
|
|
1773
1773
|
function Qt(r, e, t) {
|
|
1774
|
-
var
|
|
1774
|
+
var I;
|
|
1775
1775
|
function n() {
|
|
1776
1776
|
}
|
|
1777
1777
|
const i = "", l = "", u = S();
|
|
@@ -1792,12 +1792,12 @@ function Qt(r, e, t) {
|
|
|
1792
1792
|
return null;
|
|
1793
1793
|
if (H.value.schema && H.value.schema.type === "component")
|
|
1794
1794
|
return H.value;
|
|
1795
|
-
const O = S(H == null ? void 0 : H.value.parent),
|
|
1796
|
-
return
|
|
1795
|
+
const O = S(H == null ? void 0 : H.value.parent), x = d(O);
|
|
1796
|
+
return x || null;
|
|
1797
1797
|
}
|
|
1798
1798
|
function f(H = e) {
|
|
1799
|
-
const { componentInstance: O, designerItemElementRef:
|
|
1800
|
-
return !O || !O.value ? null : O.value.canMove ?
|
|
1799
|
+
const { componentInstance: O, designerItemElementRef: x } = H;
|
|
1800
|
+
return !O || !O.value ? null : O.value.canMove ? x : f(H.parent);
|
|
1801
1801
|
}
|
|
1802
1802
|
function b(H) {
|
|
1803
1803
|
return !!t;
|
|
@@ -1809,20 +1809,20 @@ function Qt(r, e, t) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
function $(H, O) {
|
|
1811
1811
|
}
|
|
1812
|
-
function E(H) {
|
|
1813
|
-
const { componentType:
|
|
1814
|
-
let V = ke(
|
|
1815
|
-
const
|
|
1816
|
-
return V && !V.id && V.type ===
|
|
1812
|
+
function E(H, O) {
|
|
1813
|
+
const { componentType: x } = H;
|
|
1814
|
+
let V = ke(x, H, O);
|
|
1815
|
+
const D = x.toLowerCase().replace("-", "_");
|
|
1816
|
+
return V && !V.id && V.type === x && (V.id = `${D}_${Math.random().toString().slice(2, 6)}`), V;
|
|
1817
1817
|
}
|
|
1818
1818
|
function M(H, O) {
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1821
|
-
let G = ke(
|
|
1822
|
-
const C =
|
|
1823
|
-
return G && !G.id && G.type ===
|
|
1819
|
+
const x = String(H.getAttribute("data-controltype")), V = H.getAttribute("data-feature"), D = V ? JSON.parse(V) : {};
|
|
1820
|
+
D.parentComponentInstance = u.value;
|
|
1821
|
+
let G = ke(x, D);
|
|
1822
|
+
const C = x.toLowerCase().replace("-", "_");
|
|
1823
|
+
return G && !G.id && G.type === x && (G.id = `${C}_${Math.random().toString().slice(2, 6)}`), G;
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function A(H) {
|
|
1826
1826
|
}
|
|
1827
1827
|
function N(...H) {
|
|
1828
1828
|
}
|
|
@@ -1833,7 +1833,7 @@ function Qt(r, e, t) {
|
|
|
1833
1833
|
canNested: !p(),
|
|
1834
1834
|
contents: e == null ? void 0 : e.schema.contents,
|
|
1835
1835
|
elementRef: r,
|
|
1836
|
-
parent: (
|
|
1836
|
+
parent: (I = e == null ? void 0 : e.parent) == null ? void 0 : I.componentInstance,
|
|
1837
1837
|
schema: e == null ? void 0 : e.schema,
|
|
1838
1838
|
styles: i,
|
|
1839
1839
|
designerClass: l,
|
|
@@ -1845,7 +1845,7 @@ function Qt(r, e, t) {
|
|
|
1845
1845
|
getDragScopeElement: v,
|
|
1846
1846
|
onAcceptMovedChildElement: $,
|
|
1847
1847
|
onAcceptNewChildElement: M,
|
|
1848
|
-
onChildElementMovedOut:
|
|
1848
|
+
onChildElementMovedOut: A,
|
|
1849
1849
|
addNewChildComponentSchema: E,
|
|
1850
1850
|
updateDragAndDropRules: n,
|
|
1851
1851
|
triggerBelongedComponentToMoveWhenMoved: S(!1),
|
|
@@ -1858,22 +1858,22 @@ const Zt = /* @__PURE__ */ ee({
|
|
|
1858
1858
|
emits: ["valueChanged", "activeChange", "update:color", "update:hue"],
|
|
1859
1859
|
setup(r, e) {
|
|
1860
1860
|
const t = S(new P(r.color)), n = S(r.color), i = S(r.disabled), l = S(r.color), u = S(r.allowColorNull), c = S(r.presets), g = S(!1), h = S(!1), p = S(!1), d = S("HEX"), f = Math.floor(Math.random() * 1e3).toString();
|
|
1861
|
-
let b = -1, y, v = new
|
|
1861
|
+
let b = -1, y, v = new Ie("#000000");
|
|
1862
1862
|
const $ = S(r.color);
|
|
1863
1863
|
let E, M;
|
|
1864
|
-
const
|
|
1864
|
+
const A = S(null), N = S(null), I = S(), H = rt("design-item-context"), O = Qt(I, H);
|
|
1865
1865
|
T(() => {
|
|
1866
|
-
|
|
1866
|
+
I.value.componentInstance = O;
|
|
1867
1867
|
}), e.expose(O.value);
|
|
1868
|
-
let
|
|
1869
|
-
const
|
|
1868
|
+
let x = U(() => !y && v && v.initType ? v.initType : y);
|
|
1869
|
+
const V = U({
|
|
1870
1870
|
get() {
|
|
1871
1871
|
return y && n.value !== null ? (Z(y), j(new P(n.value), R[y])) : n.value;
|
|
1872
1872
|
},
|
|
1873
1873
|
set(m) {
|
|
1874
|
-
m !== null && (
|
|
1874
|
+
m !== null && (L(m), Y(m));
|
|
1875
1875
|
}
|
|
1876
|
-
}),
|
|
1876
|
+
}), D = S(V.value), G = U(() => b > -1), C = U(() => c.value.length > 0), J = U(() => ({
|
|
1877
1877
|
"background-color": l.value
|
|
1878
1878
|
})), pe = U(() => h.value && g.value ? "display:flex" : "display:none"), z = [{
|
|
1879
1879
|
text: "HEX",
|
|
@@ -1887,8 +1887,8 @@ const Zt = /* @__PURE__ */ ee({
|
|
|
1887
1887
|
m.id = `farris-color-picker-panel-${f}`;
|
|
1888
1888
|
const B = document.getElementById("farris-color-picker-plus-sure");
|
|
1889
1889
|
B.id = `farris-color-picker-plus-sure-${f}`;
|
|
1890
|
-
const
|
|
1891
|
-
|
|
1890
|
+
const F = document.getElementById("farris-color-picker-plus-input");
|
|
1891
|
+
F.id = `farris-color-picker-plus-input-${f}`, M = document.getElementById(`farris-color-picker-plus-sure-${f}`), E = document.getElementById(`farris-color-picker-panel-${f}`), E.className = "color-picker-panel disabled";
|
|
1892
1892
|
}
|
|
1893
1893
|
function ae() {
|
|
1894
1894
|
if (!u.value && !n.value) {
|
|
@@ -1898,10 +1898,10 @@ const Zt = /* @__PURE__ */ ee({
|
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
1900
|
function fe() {
|
|
1901
|
-
n.value && (
|
|
1901
|
+
n.value && (L(n.value), !n.value && u.value || (n.value = j(new P(n.value), R[x.value])), D.value = V.value), Q(Z(v.initType));
|
|
1902
1902
|
}
|
|
1903
1903
|
function ne() {
|
|
1904
|
-
n.value &&
|
|
1904
|
+
n.value && L(n.value), v.hasPresets() || v.setColorPresets(c.value), n.value ? l.value = j(new P(n.value), R[x.value]) : !n.value && u.value && (l.value = null);
|
|
1905
1905
|
}
|
|
1906
1906
|
function ve() {
|
|
1907
1907
|
v.valueChanges.subscribe((m) => {
|
|
@@ -1920,14 +1920,14 @@ const Zt = /* @__PURE__ */ ee({
|
|
|
1920
1920
|
v.setColorPresets(c.value || ["#eaecf3"]);
|
|
1921
1921
|
}), T(() => {
|
|
1922
1922
|
de(), ae(), fe(), ne();
|
|
1923
|
-
}),
|
|
1924
|
-
ve(),
|
|
1925
|
-
}),
|
|
1926
|
-
j(v.value, v.initType) !== m && m !== null &&
|
|
1927
|
-
}),
|
|
1928
|
-
n.value = j(m, R[y || v.initType]),
|
|
1923
|
+
}), q(d, () => {
|
|
1924
|
+
ve(), V.value = j(new P(n.value), R[y || v.initType]), t.value = new P(V.value), ge();
|
|
1925
|
+
}), q(n, (m) => {
|
|
1926
|
+
j(v.value, v.initType) !== m && m !== null && L(m), Q(Z(v.initType));
|
|
1927
|
+
}), q(t, (m) => {
|
|
1928
|
+
n.value = j(m, R[y || v.initType]), L(n.value), V.value = n.value;
|
|
1929
1929
|
});
|
|
1930
|
-
function
|
|
1930
|
+
function Y(m) {
|
|
1931
1931
|
const B = document.getElementById(`farris-color-picker-plus-input-${f}`);
|
|
1932
1932
|
(m == "" || m == null || m == null) && !u.value ? (n.value = null, B.style.borderColor = "red", M.className = "btn btn-secondary disabled") : (B.style.borderColor = "#dcdfe6", M.className = "btn btn-secondary");
|
|
1933
1933
|
}
|
|
@@ -1935,39 +1935,39 @@ const Zt = /* @__PURE__ */ ee({
|
|
|
1935
1935
|
var m, B;
|
|
1936
1936
|
if (u.value) {
|
|
1937
1937
|
l.value = (n == null ? void 0 : n.value) ?? null;
|
|
1938
|
-
const
|
|
1938
|
+
const F = {
|
|
1939
1939
|
elementValue: l
|
|
1940
1940
|
};
|
|
1941
|
-
e.emit("valueChanged",
|
|
1941
|
+
e.emit("valueChanged", F), E.classList.toggle("disabled");
|
|
1942
1942
|
}
|
|
1943
|
-
if (!u.value && !(
|
|
1944
|
-
(B = (m =
|
|
1945
|
-
const
|
|
1943
|
+
if (!u.value && !(V.value == null || V.value == null || V.value == "")) {
|
|
1944
|
+
(B = (m = A.value) == null ? void 0 : m.style) == null || B.setProperty("background", n.value), p.value = !0, l.value = n.value;
|
|
1945
|
+
const F = {
|
|
1946
1946
|
elementValue: l
|
|
1947
1947
|
};
|
|
1948
|
-
e.emit("valueChanged",
|
|
1948
|
+
e.emit("valueChanged", F), E.classList.toggle("disabled");
|
|
1949
1949
|
}
|
|
1950
|
-
!$.value && !n.value && !p.value && u && E.classList.toggle("disabled"),
|
|
1950
|
+
!$.value && !n.value && !p.value && u && E.classList.toggle("disabled"), Y(n.value), V.value = n.value, M.classList.contains("disabled") || (D.value = n.value, g.value = !1);
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function L(m) {
|
|
1953
1953
|
v == null || v.setValueFrom(m, f, u.value);
|
|
1954
1954
|
}
|
|
1955
1955
|
function re(m) {
|
|
1956
|
-
i.value || (g.value = !0, E.classList.toggle("disabled"), ae(),
|
|
1956
|
+
i.value || (g.value = !0, E.classList.toggle("disabled"), ae(), L(n.value));
|
|
1957
1957
|
}
|
|
1958
1958
|
function Z(m) {
|
|
1959
|
-
const B = z.findIndex((
|
|
1959
|
+
const B = z.findIndex((F) => F.type === m);
|
|
1960
1960
|
return b = B, B;
|
|
1961
1961
|
}
|
|
1962
1962
|
function w(m) {
|
|
1963
1963
|
if (!M.classList.contains("disabled")) {
|
|
1964
1964
|
const B = z.length;
|
|
1965
|
-
b = (B + b + (m === "up" ? 1 : -1)) % B, y = z[b].type, Q(b),
|
|
1965
|
+
b = (B + b + (m === "up" ? 1 : -1)) % B, y = z[b].type, Q(b), L(n.value);
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
1968
|
return () => k("div", {
|
|
1969
1969
|
class: "f-color-picker-component",
|
|
1970
|
-
ref:
|
|
1970
|
+
ref: I
|
|
1971
1971
|
}, [k("div", {
|
|
1972
1972
|
class: ["color-picker-panel", {
|
|
1973
1973
|
disabled: i.value
|
|
@@ -2005,9 +2005,9 @@ const Zt = /* @__PURE__ */ ee({
|
|
|
2005
2005
|
}, [d.value]), [[K, C]]), W(k("input", {
|
|
2006
2006
|
type: "text",
|
|
2007
2007
|
id: "farris-color-picker-plus-input",
|
|
2008
|
-
"onUpdate:modelValue": (m) =>
|
|
2008
|
+
"onUpdate:modelValue": (m) => V.value = m,
|
|
2009
2009
|
style: "float:none"
|
|
2010
|
-
}, null), [[Ye,
|
|
2010
|
+
}, null), [[Ye, V.value]]), W(k("div", {
|
|
2011
2011
|
class: "type-icon-btn-wrapper",
|
|
2012
2012
|
style: "cursor:pointer"
|
|
2013
2013
|
}, [k("span", {
|
|
@@ -2034,7 +2034,7 @@ const Zt = /* @__PURE__ */ ee({
|
|
|
2034
2034
|
}, [k("input", {
|
|
2035
2035
|
type: "text",
|
|
2036
2036
|
class: "color-picker-input form-control",
|
|
2037
|
-
value:
|
|
2037
|
+
value: D.value,
|
|
2038
2038
|
readonly: i.value,
|
|
2039
2039
|
onClick: (m) => m.stopPropagation()
|
|
2040
2040
|
}, null), k("div", {
|