@farris/ui-vue 1.7.0-beta.3 → 1.7.0-beta.4
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/avatar/index.esm.js +10 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +178 -176
- package/components/calendar/index.umd.cjs +2 -2
- package/components/collection-property-editor/index.esm.js +48 -46
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +319 -300
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +2287 -1161
- package/components/comment/index.umd.cjs +7 -7
- package/components/component/index.esm.js +3 -1
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +926 -901
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +898 -899
- package/components/data-view/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +3 -1
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +239 -221
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +11 -9
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/expression-editor/index.esm.js +1299 -1279
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +731 -678
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +1792 -1772
- package/components/filter-condition-editor/index.umd.cjs +4 -4
- package/components/image/index.esm.js +246 -240
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +9 -7
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +1 -1
- package/components/list-view/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +2009 -886
- package/components/locale/index.umd.cjs +6 -6
- package/components/number-range/index.esm.js +190 -181
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +734 -714
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +60 -49
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +2461 -2500
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +238 -238
- package/components/schema-selector/index.umd.cjs +4 -4
- package/components/section/index.esm.js +217 -302
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +1793 -1773
- package/components/sort-condition-editor/index.umd.cjs +4 -4
- package/components/transfer/index.esm.js +155 -155
- package/components/transfer/index.umd.cjs +3 -3
- package/designer/data-grid/index.esm.js +895 -867
- package/designer/data-grid/index.umd.cjs +5 -5
- package/designer/data-view/index.esm.js +145 -144
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/drawer/index.esm.js +73 -71
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +87 -65
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +14 -3
- package/designer/farris-designer.all.umd.cjs +3 -3
- package/designer/input-group/index.esm.js +34 -14
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1 -1
- package/designer/list-view/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +15 -2
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +129 -119
- package/designer/section/index.umd.cjs +1 -1
- package/designer/time-picker/index.esm.js +140 -131
- package/designer/time-picker/index.umd.cjs +1 -1
- package/farris.all.esm.js +13578 -12394
- package/farris.all.umd.cjs +26 -26
- package/index.css +1 -1
- package/locales/data-grid/ui/en.json +2 -1
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +12 -10
- package/locales/designer/zh-CHS.json +19 -17
- package/locales/designer/zh-CHT.json +19 -17
- package/locales/ui/en.json +4 -2
- package/locales/ui/zh-CHS.json +11 -9
- package/locales/ui/zh-CHT.json +11 -9
- package/package.json +1 -1
- package/package.zip +0 -0
- package/types/combo-list/src/composition/types.d.ts +1 -0
- package/types/condition/src/composition/condition-value/number-spinner-value.d.ts +1 -1
- package/types/condition/src/composition/use-field-config.d.ts +1 -1
- package/types/condition/src/condition.props.d.ts +1 -1
- package/types/data-view/designer/property-config/use-command-option.d.ts +12 -0
- package/types/image/src/property-config/image.property-config.d.ts +5 -5
- package/types/locale/src/lib/locale.service.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +7 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +0 -20
- package/types/section/src/designer/section.design.props.d.ts +17 -0
- package/types/section/src/section.props.d.ts +0 -25
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { radioCheckboxCommonProps as
|
|
2
|
-
import { computed as
|
|
1
|
+
import { radioCheckboxCommonProps as b, useGuid as V, RADIOGROUP_CONTEXT as C, withInstall as R } from "../common/index.esm.js";
|
|
2
|
+
import { computed as g, defineComponent as p, ref as f, provide as x, watch as F, createVNode as i } from "vue";
|
|
3
3
|
const k = {
|
|
4
|
-
...
|
|
4
|
+
...b,
|
|
5
5
|
/**
|
|
6
6
|
* 组件标识
|
|
7
7
|
*/
|
|
@@ -47,24 +47,24 @@ const k = {
|
|
|
47
47
|
*/
|
|
48
48
|
valueField: { type: String, default: "value" }
|
|
49
49
|
};
|
|
50
|
-
function D(e,
|
|
51
|
-
const r =
|
|
52
|
-
function
|
|
53
|
-
return
|
|
50
|
+
function D(e, a, u) {
|
|
51
|
+
const r = g(() => !e.disabled), d = g(() => e.data || e.enumData || e.options || []);
|
|
52
|
+
function o(t) {
|
|
53
|
+
return t[e.valueField];
|
|
54
54
|
}
|
|
55
|
-
function c(
|
|
56
|
-
return
|
|
55
|
+
function c(t) {
|
|
56
|
+
return t[e.textField];
|
|
57
57
|
}
|
|
58
|
-
function s(
|
|
58
|
+
function s(t, m) {
|
|
59
59
|
if (r.value) {
|
|
60
|
-
const
|
|
61
|
-
u.value !==
|
|
60
|
+
const n = o(t);
|
|
61
|
+
u.value !== n && (u.value = n, a.emit("change", n), a.emit("changeValue", n), a.emit("update:modelValue", n));
|
|
62
62
|
}
|
|
63
63
|
m.stopPropagation();
|
|
64
64
|
}
|
|
65
65
|
return {
|
|
66
66
|
enumData: d,
|
|
67
|
-
getValue:
|
|
67
|
+
getValue: o,
|
|
68
68
|
getText: c,
|
|
69
69
|
onClickRadio: s
|
|
70
70
|
};
|
|
@@ -72,43 +72,43 @@ function D(e, t, u) {
|
|
|
72
72
|
const G = /* @__PURE__ */ p({
|
|
73
73
|
name: "FRadioGroup",
|
|
74
74
|
props: k,
|
|
75
|
-
emits: ["changeValue", "update:modelValue"],
|
|
76
|
-
setup(e,
|
|
75
|
+
emits: ["changeValue", "update:modelValue", "change"],
|
|
76
|
+
setup(e, a) {
|
|
77
77
|
const {
|
|
78
78
|
guid: u
|
|
79
|
-
} = V(), r = `radio_${u().slice(0, 8)}`, d = f(e.name || r),
|
|
79
|
+
} = V(), r = `radio_${u().slice(0, 8)}`, d = f(e.name || r), o = f(e.modelValue), {
|
|
80
80
|
enumData: c,
|
|
81
81
|
onClickRadio: s,
|
|
82
|
-
getValue:
|
|
82
|
+
getValue: t,
|
|
83
83
|
getText: m
|
|
84
|
-
} = D(e,
|
|
84
|
+
} = D(e, a, o), n = g(() => ({
|
|
85
85
|
"farris-checkradio-hor": e.direction === "horizontal"
|
|
86
|
-
})),
|
|
86
|
+
})), h = f([]);
|
|
87
87
|
return x(C, {
|
|
88
|
-
radios:
|
|
88
|
+
radios: h,
|
|
89
89
|
parentProps: e,
|
|
90
|
-
parentContext:
|
|
90
|
+
parentContext: a
|
|
91
91
|
}), F(() => e.modelValue, (l) => {
|
|
92
|
-
|
|
92
|
+
o.value = l;
|
|
93
93
|
}), () => i("div", {
|
|
94
|
-
class: ["farris-input-wrap", "btn-group",
|
|
95
|
-
}, [
|
|
96
|
-
const
|
|
94
|
+
class: ["farris-input-wrap", "btn-group", n.value]
|
|
95
|
+
}, [a.slots.default ? a.slots.default() : c.value.map((l, P) => {
|
|
96
|
+
const v = "radio_" + e.id + d.value + l[e.valueField];
|
|
97
97
|
return i("div", {
|
|
98
98
|
class: "custom-control custom-radio"
|
|
99
99
|
}, [i("input", {
|
|
100
100
|
type: "radio",
|
|
101
101
|
class: "custom-control-input",
|
|
102
102
|
name: d.value,
|
|
103
|
-
id:
|
|
104
|
-
value:
|
|
105
|
-
checked:
|
|
103
|
+
id: v,
|
|
104
|
+
value: t(l),
|
|
105
|
+
checked: t(l) === o.value,
|
|
106
106
|
disabled: e.readonly || e.disabled,
|
|
107
107
|
tabindex: e.tabIndex,
|
|
108
|
-
onClick: (
|
|
108
|
+
onClick: (y) => s(l, y)
|
|
109
109
|
}, null), i("label", {
|
|
110
110
|
class: "custom-control-label",
|
|
111
|
-
for:
|
|
111
|
+
for: v
|
|
112
112
|
}, [m(l)])]);
|
|
113
113
|
})]);
|
|
114
114
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("../common/index.umd.js"),require("vue")):typeof define=="function"&&define.amd?define(["exports","../common/index.umd.js","vue"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t["radio-group"]={},t.common,t.Vue))})(this,function(t,n,a){"use strict";const
|
|
1
|
+
(function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("../common/index.umd.js"),require("vue")):typeof define=="function"&&define.amd?define(["exports","../common/index.umd.js","vue"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t["radio-group"]={},t.common,t.Vue))})(this,function(t,n,a){"use strict";const h={...n.radioCheckboxCommonProps,id:String,disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},enumData:{type:Array},data:{type:Array},modelValue:{type:String,default:""},name:{type:String,default:""},tabIndex:{type:Number,default:-1},textField:{type:String,default:"name"},valueField:{type:String,default:"value"}};function V(e,d,r){const s=a.computed(()=>!e.disabled),c=a.computed(()=>e.data||e.enumData||e.options||[]);function u(o){return o[e.valueField]}function f(o){return o[e.textField]}function m(o,g){if(s.value){const i=u(o);r.value!==i&&(r.value=i,d.emit("change",i),d.emit("changeValue",i),d.emit("update:modelValue",i))}g.stopPropagation()}return{enumData:c,getValue:u,getText:f,onClickRadio:m}}const y=a.defineComponent({name:"FRadioGroup",props:h,emits:["changeValue","update:modelValue","change"],setup(e,d){const{guid:r}=n.useGuid(),s=`radio_${r().slice(0,8)}`,c=a.ref(e.name||s),u=a.ref(e.modelValue),{enumData:f,onClickRadio:m,getValue:o,getText:g}=V(e,d,u),i=a.computed(()=>({"farris-checkradio-hor":e.direction==="horizontal"})),C=a.ref([]);return a.provide(n.RADIOGROUP_CONTEXT,{radios:C,parentProps:e,parentContext:d}),a.watch(()=>e.modelValue,l=>{u.value=l}),()=>a.createVNode("div",{class:["farris-input-wrap","btn-group",i.value]},[d.slots.default?d.slots.default():f.value.map((l,v)=>{const p="radio_"+e.id+c.value+l[e.valueField];return a.createVNode("div",{class:"custom-control custom-radio"},[a.createVNode("input",{type:"radio",class:"custom-control-input",name:c.value,id:p,value:o(l),checked:o(l)===u.value,disabled:e.readonly||e.disabled,tabindex:e.tabIndex,onClick:R=>m(l,R)},null),a.createVNode("label",{class:"custom-control-label",for:p},[g(l)])])})])}}),b=n.withInstall(y);t.FRadioGroup=y,t.default=b,t.radioGroupProps=h,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|