@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1
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 +138 -1526
- package/components/avatar/index.umd.cjs +1 -6
- package/components/button/index.css +1 -1
- package/components/button/index.esm.js +15951 -15410
- package/components/button/index.umd.cjs +27 -27
- package/components/calendar/index.esm.js +269 -255
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +243 -229
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +32 -32
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +473 -456
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2503 -2239
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +1064 -954
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +3894 -3058
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +91 -77
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +220 -215
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +145 -131
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +336 -329
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1611 -1536
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +219 -219
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/external-container/index.esm.js +179 -178
- package/components/external-container/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +285 -221
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -0
- package/components/filter-bar/index.esm.js +1512 -1290
- package/components/filter-bar/index.umd.cjs +7 -7
- package/components/filter-condition-editor/index.esm.js +851 -831
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +520 -501
- package/components/flow-canvas/index.umd.cjs +8 -8
- package/components/image/index.esm.js +101 -79
- package/components/image/index.umd.cjs +3 -3
- package/components/language-textbox/index.esm.js +330 -251
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-nav/index.esm.js +399 -313
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +3 -0
- package/components/locale/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +997 -976
- package/components/lookup/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +725 -705
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +542 -522
- package/components/message-box/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +95 -308
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +115 -107
- package/components/number-range/index.umd.cjs +2 -2
- package/components/order/index.esm.js +56 -54
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +135 -123
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +266 -222
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +402 -375
- package/components/property-panel/index.umd.cjs +4 -4
- package/components/query-solution/index.esm.js +3171 -3061
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1620 -1608
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/scroll-navbar/index.esm.js +150 -136
- package/components/scroll-navbar/index.umd.cjs +2 -2
- package/components/section/index.esm.js +323 -311
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +850 -830
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/step/index.esm.js +991 -224
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +356 -334
- package/components/tabs/index.umd.cjs +1 -1
- package/components/wizard/index.esm.js +159 -162
- package/components/wizard/index.umd.cjs +1 -1
- package/designer/avatar/index.esm.js +1721 -0
- package/designer/avatar/index.umd.cjs +6 -0
- package/designer/button-edit/index.esm.js +2 -1
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +693 -659
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +90 -78
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +203 -203
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +181 -167
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +228 -206
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +10014 -9692
- package/designer/farris-designer.all.umd.cjs +18 -18
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +15 -15
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +1719 -0
- package/designer/nav/index.umd.cjs +6 -0
- package/designer/number-spinner/index.esm.js +8 -7
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +133 -125
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +864 -863
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +245 -183
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +3667 -2810
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +26 -17
- package/designer/time-picker/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +69 -37
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/wizard/index.esm.js +110 -110
- package/designer/wizard/index.umd.cjs +3 -3
- package/farris.all.esm.js +39993 -39089
- package/farris.all.umd.cjs +36 -36
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +1 -0
- package/locales/filter-bar/ui/zh-CHS.json +1 -0
- package/locales/filter-bar/ui/zh-CHT.json +1 -0
- package/locales/ui/en.json +1 -0
- package/locales/ui/zh-CHS.json +1 -0
- package/locales/ui/zh-CHT.json +1 -0
- package/package.json +1 -1
- package/types/avatar/designer.d.ts +28 -0
- package/types/avatar/index.d.ts +0 -15
- package/types/avatar/src/composition/types.d.ts +3 -0
- package/types/avatar/src/composition/use-file.d.ts +19 -0
- package/types/avatar/src/composition/use-image.d.ts +1 -1
- package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
- package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
- package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
- package/types/components.d.ts +3 -0
- package/types/condition/index.d.ts +18 -6
- package/types/condition/src/condition-fields.component.d.ts +9 -3
- package/types/condition/src/condition-fields.design.component.d.ts +9 -3
- package/types/condition/src/condition-list.component.d.ts +9 -3
- package/types/condition/src/condition.props.d.ts +11 -0
- package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
- package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
- package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
- package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
- package/types/dynamic-view/src/components/maps.d.ts +130 -4
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
- package/types/filter-bar/src/locale/locale.d.ts +2 -1
- package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
- package/types/language-textbox/index.d.ts +65 -2
- package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
- package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
- package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/lookup/src/composition/use-compat.d.ts +28 -0
- package/types/lookup/src/composition/use-state.d.ts +1 -0
- package/types/message-box/src/message-box.service.d.ts +2 -1
- package/types/nav/designer.d.ts +28 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/designer/nav.design.props.d.ts +29 -0
- package/types/nav/src/designer/use-design-rules.d.ts +3 -0
- package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
- package/types/nav/src/schema/schema-mapper.d.ts +4 -0
- package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
- package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
- package/types/section/src/designer/section.design.props.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +39 -0
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
- package/types/step/src/designer/use-designer-rules.d.ts +3 -0
- package/types/step/src/designer/use-step-creator.d.ts +6 -0
- package/types/step/src/property-config/step.property-config.d.ts +15 -0
- package/types/step/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +4 -0
- package/types/tabs/src/tabs.props.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -3
- package/types/tooltip/src/tooltip.component.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(n,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("../common/index.umd.js"),require("vue"),require("../dynamic-resolver/index.umd.js")):typeof define=="function"&&define.amd?define(["exports","../common/index.umd.js","vue","../dynamic-resolver/index.umd.js"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.nav={},n.common,n.Vue,n.dynamicResolver))})(this,function(n,r,i,o){"use strict";function f(e,s,d){return s==="dynamic"?{navData:Array.isArray(d.bindDataSource)?d.bindDataSource||[]:[]}:{navData:d.navData}}const p=new Map([["appearance",o.resolveAppearance],["dataSourceType",f]]);function y(e,s,d){return s}const m={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/nav.schema.json",title:"nav",description:"A Farris Component",type:"object",properties:{id:{description:"The unique identifier for a nav",type:"string"},type:{description:"The type string of nav component",type:"string",default:"nav"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},binding:{description:"",type:"object",default:{}},activeNavId:{description:"",type:"string",default:""},displayField:{description:"",type:"string",default:"text"},disableField:{description:"",type:"string",default:"disable"},horizontal:{description:"",type:"boolean",default:!0},idField:{description:"",type:"string",default:"id"},valueField:{description:"",type:"string",default:"num"},maxNum:{description:"",type:"number"},navData:{description:"",type:"array",default:[]},dataSourceType:{description:"",type:"string",default:"static"},bindDataSource:{description:"",type:"object"},navPicking:{description:"",type:"function"}},required:["id","type"]},u={activeNavId:{Type:String,default:""},displayField:{Type:String,default:"text"},disableField:{Type:String,default:"disable"},horizontal:{Type:Boolean,default:!0},idField:{Type:String,default:"id"},maxNum:{Type:Number,default:99},navData:{Type:Array,default:[]},navPicking:{type:Function,default:()=>e=>!0},valueField:{Type:String,default:"num"},visible:{Type:Boolean,default:!0},customClass:{Type:String,default:""},customStyle:{Type:String,default:""}},g=o.createPropsResolver(u,m,p,y),v=i.defineComponent({name:"FNav",props:u,emits:["nav","update:activeNavId"],setup(e,s){const d=i.ref(e.activeNavId),l=i.ref(e.navData),b=i.ref(e.navPicking),F=i.computed(()=>({paddingTop:"1rem"}));function h(a){if(l.value&&l.value.length){let t=l.value.find(c=>c[e.idField]===a&&c[e.disableField]!==!0);t||(t=l.value.find(c=>c[e.disableField]!==!0)),t&&d.value!==t.id&&(d.value=a,s.emit("nav",t))}}i.watch([e.activeNavId,e.navData],([a,t])=>{l.value=t,h(a)});function S(a){a.disable||a.id===d.value||Promise.resolve().then(()=>b.value(a)).then(t=>{t&&(d.value=a.id,s.emit("update:activeNavId",a.id),s.emit("nav",a))})}const T=i.computed(()=>{const a={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return r.getCustomClass(a,e.customClass)}),j=i.computed(()=>{const a={};return r.getCustomStyle(a,e.customStyle)});return()=>{var a;return i.createVNode("div",{class:T.value,style:j.value},[(a=l.value)==null?void 0:a.map(t=>i.createVNode("div",{class:["farris-nav-item",{active:t[e.idField]===d.value},{disabled:t[e.disableField]}],onClick:()=>S(t)},[i.createVNode("div",{class:"farris-nav-item-link",style:F.value},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof t[e.displayField]=="function"?t[e.displayField]():t[e.displayField],t[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[t[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[t[e.valueField]]),t[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}}),N=r.withInstall(v);n.FNav=v,n.default=N,n.navProps=u,n.propsResolver=g,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var ie = Object.defineProperty;
|
|
2
2
|
var ne = (o, n, e) => n in o ? ie(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
|
|
3
|
-
var
|
|
3
|
+
var b = (o, n, e) => ne(o, typeof n != "symbol" ? n + "" : n, e);
|
|
4
4
|
import { computed as M, ref as B, createVNode as V, defineComponent as J, onMounted as Q, watch as j, createTextVNode as W, Fragment as re, nextTick as se, inject as Z } from "vue";
|
|
5
5
|
import { resolveAppearance as oe, createPropsResolver as le } from "../dynamic-resolver/index.esm.js";
|
|
6
6
|
import I from "bignumber.js";
|
|
7
7
|
import { useNumberLocales as ae } from "../number-spinner/index.esm.js";
|
|
8
|
-
import { DgControl as p, canvasChanged as
|
|
8
|
+
import { DgControl as p, canvasChanged as U, refreshCanvas as de, useDesignerComponent as ue } from "../designer-canvas/index.esm.js";
|
|
9
9
|
import { cloneDeep as ce } from "lodash-es";
|
|
10
10
|
import { FormSchemaEntityField$Type as X, FormSchemaEntityFieldType$Type as pe, withInstall as ge } from "../common/index.esm.js";
|
|
11
11
|
function me(o, n, e) {
|
|
@@ -13,7 +13,7 @@ function me(o, n, e) {
|
|
|
13
13
|
}
|
|
14
14
|
const fe = /* @__PURE__ */ new Map([
|
|
15
15
|
["appearance", oe]
|
|
16
|
-
]), he = "https://json-schema.org/draft/2020-12/schema",
|
|
16
|
+
]), he = "https://json-schema.org/draft/2020-12/schema", be = "https://farris-design.gitee.io/number-range.schema.json", ye = "number-range", ve = "A Farris Component", Ce = "object", xe = {
|
|
17
17
|
id: {
|
|
18
18
|
description: "The unique identifier for a number-range",
|
|
19
19
|
type: "string"
|
|
@@ -123,8 +123,8 @@ const fe = /* @__PURE__ */ new Map([
|
|
|
123
123
|
"type"
|
|
124
124
|
], Ve = {
|
|
125
125
|
$schema: he,
|
|
126
|
-
$id:
|
|
127
|
-
title:
|
|
126
|
+
$id: be,
|
|
127
|
+
title: ye,
|
|
128
128
|
description: ve,
|
|
129
129
|
type: Ce,
|
|
130
130
|
properties: xe,
|
|
@@ -312,57 +312,57 @@ function A(o, n, e, t, i, r, s, c, l, a) {
|
|
|
312
312
|
function h(v) {
|
|
313
313
|
if (o.readonly || o.disabled)
|
|
314
314
|
return;
|
|
315
|
-
const k = v === "up" ? f : g,
|
|
315
|
+
const k = v === "up" ? f : g, F = v === "up" ? "plus" : "minus";
|
|
316
316
|
if (k()) {
|
|
317
|
-
let P = new I(t.value || 0)[
|
|
317
|
+
let P = new I(t.value || 0)[F](Number(o.step)).toFixed();
|
|
318
318
|
P = m(P, c, l, a);
|
|
319
319
|
const T = d(P);
|
|
320
320
|
e.value = u(P), t.value !== T && (t.value = T, s(t.value));
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function y() {
|
|
324
324
|
h("up");
|
|
325
325
|
}
|
|
326
326
|
function C() {
|
|
327
327
|
h("down");
|
|
328
328
|
}
|
|
329
329
|
function x(v) {
|
|
330
|
-
|
|
330
|
+
y(), v.stopPropagation();
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function E(v) {
|
|
333
333
|
C(), v.stopPropagation();
|
|
334
334
|
}
|
|
335
|
-
return { canDownward: g, canUpward: f, downward: C, onClickDownButton:
|
|
335
|
+
return { canDownward: g, canUpward: f, downward: C, onClickDownButton: E, onClickUpButton: x, upward: y };
|
|
336
336
|
}
|
|
337
337
|
function O(o, n, e, t, i, r, s, c, l, a, u) {
|
|
338
|
-
const { cleanFormat: d, format: m } = i, { getRealValue: f, isEmpty: g, getValidNumberInRange: h } = r, { downward:
|
|
338
|
+
const { cleanFormat: d, format: m } = i, { getRealValue: f, isEmpty: g, getValidNumberInRange: h } = r, { downward: y, upward: C } = s, x = M(() => e.value), E = B(!1);
|
|
339
339
|
function v(w) {
|
|
340
340
|
var K;
|
|
341
341
|
if (w.stopPropagation(), o.readonly || o.disabled)
|
|
342
342
|
return;
|
|
343
|
-
|
|
343
|
+
E.value = !1;
|
|
344
344
|
let P = (K = w.target) == null ? void 0 : K.value;
|
|
345
345
|
o.nullable || (P = P || 0);
|
|
346
346
|
let T = d(P);
|
|
347
347
|
T = h(T, l, a, u);
|
|
348
|
-
const
|
|
349
|
-
e.value = m(T), t.value !==
|
|
348
|
+
const L = f(T);
|
|
349
|
+
e.value = m(T), t.value !== L && (t.value = L, c(t.value)), n.emit("blur", { event: w, formatted: e.value, value: t.value });
|
|
350
350
|
}
|
|
351
351
|
function k(w) {
|
|
352
|
-
w.stopPropagation(), !(o.readonly || o.disabled) && (
|
|
352
|
+
w.stopPropagation(), !(o.readonly || o.disabled) && (E.value = !0, e.value = g(t.value) || !o.showZero && t.value === "0" ? "" : String(t.value), n.emit("focus", { event: w, formatted: e.value, value: t.value }));
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
var
|
|
354
|
+
function F(w) {
|
|
355
|
+
var L;
|
|
356
356
|
w.stopPropagation();
|
|
357
|
-
let P = (
|
|
357
|
+
let P = (L = w.target) == null ? void 0 : L.value;
|
|
358
358
|
o.nullable || (P = P || 0);
|
|
359
359
|
const T = d(P);
|
|
360
360
|
e.value = T, t.value = f(T), c(t.value);
|
|
361
361
|
}
|
|
362
362
|
function S(w) {
|
|
363
|
-
w.key === "ArrowDown" && (w.preventDefault(),
|
|
363
|
+
w.key === "ArrowDown" && (w.preventDefault(), y()), w.key === "ArrowUp" && (w.preventDefault(), C()), w.stopPropagation();
|
|
364
364
|
}
|
|
365
|
-
return { textBoxValue: x, onBlurTextBox: v, onFocusTextBox: k, onInput:
|
|
365
|
+
return { textBoxValue: x, onBlurTextBox: v, onFocusTextBox: k, onInput: F, onKeyDown: S, isTextBoxFocused: E };
|
|
366
366
|
}
|
|
367
367
|
function _(o, n, e, t, i) {
|
|
368
368
|
const {
|
|
@@ -440,26 +440,26 @@ const q = /* @__PURE__ */ J({
|
|
|
440
440
|
props: z,
|
|
441
441
|
emits: ["valueChange", "blur", "focus", "click", "input", "beginValueChange", "endValueChange"],
|
|
442
442
|
setup(o, n) {
|
|
443
|
-
const e = B(o.beginValue), t = B(""), i = B(o.endValue), r = B(""), s = D(o), c = ee(o, n, s), l = ae(o), a = (
|
|
444
|
-
n.emit("beginValueChange",
|
|
445
|
-
}, u = A(o, n, t, e, c, s, a, e, i, !0), d = O(o, n, t, e, c, s, u, a, e, i, !0), m = $(o, n, u), f = _(o, n, d, !0, l), g = (
|
|
446
|
-
n.emit("endValueChange",
|
|
447
|
-
}, h = A(o, n, r, i, c, s, g, e, i, !1),
|
|
448
|
-
getRealValue:
|
|
443
|
+
const e = B(o.beginValue), t = B(""), i = B(o.endValue), r = B(""), s = D(o), c = ee(o, n, s), l = ae(o), a = (F) => {
|
|
444
|
+
n.emit("beginValueChange", F);
|
|
445
|
+
}, u = A(o, n, t, e, c, s, a, e, i, !0), d = O(o, n, t, e, c, s, u, a, e, i, !0), m = $(o, n, u), f = _(o, n, d, !0, l), g = (F) => {
|
|
446
|
+
n.emit("endValueChange", F);
|
|
447
|
+
}, h = A(o, n, r, i, c, s, g, e, i, !1), y = O(o, n, r, i, c, s, h, g, e, i, !1), C = $(o, n, h), x = _(o, n, y, !1, l), {
|
|
448
|
+
getRealValue: E
|
|
449
449
|
} = s, {
|
|
450
450
|
format: v
|
|
451
451
|
} = c, k = M(() => !o.disabled && !o.readonly && o.showButton);
|
|
452
452
|
return Q(() => {
|
|
453
|
-
const
|
|
454
|
-
t.value = v(
|
|
455
|
-
}), j(() => [o.beginValue], ([
|
|
453
|
+
const F = E(o.beginValue, !1), S = E(o.endValue, !1);
|
|
454
|
+
t.value = v(F, !1), r.value = v(S, !1);
|
|
455
|
+
}), j(() => [o.beginValue], ([F]) => {
|
|
456
456
|
if (!d.isTextBoxFocused.value) {
|
|
457
|
-
const S = F
|
|
457
|
+
const S = E(F, !1);
|
|
458
458
|
e.value = S, t.value = v(S, !1);
|
|
459
459
|
}
|
|
460
|
-
}), j(() => [o.endValue], ([
|
|
461
|
-
if (!
|
|
462
|
-
const S = F
|
|
460
|
+
}), j(() => [o.endValue], ([F]) => {
|
|
461
|
+
if (!y.isTextBoxFocused.value) {
|
|
462
|
+
const S = E(F, !1);
|
|
463
463
|
i.value = S, r.value = v(S, !1);
|
|
464
464
|
}
|
|
465
465
|
}), j(() => [o.precision, o.useThousands, o.prefix, o.suffix, o.showZero], () => {
|
|
@@ -508,7 +508,7 @@ function H(o, n, e, t) {
|
|
|
508
508
|
onKeydown: c
|
|
509
509
|
}, null);
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function Ee(o) {
|
|
512
512
|
const { formSchemaUtils: n, formStateMachineUtils: e } = o;
|
|
513
513
|
function t(l, a = "") {
|
|
514
514
|
return {
|
|
@@ -538,7 +538,7 @@ function Fe(o) {
|
|
|
538
538
|
}
|
|
539
539
|
class te {
|
|
540
540
|
constructor(n) {
|
|
541
|
-
|
|
541
|
+
b(this, "sessionVariables", [
|
|
542
542
|
{
|
|
543
543
|
key: "CurrentSysOrgName",
|
|
544
544
|
name: "当前组织Name",
|
|
@@ -575,7 +575,7 @@ class te {
|
|
|
575
575
|
description: "当前登录的语言编号,例如简体中文返回'zh-CHS',英文返回'en',繁体中文'zh-CHT'"
|
|
576
576
|
}
|
|
577
577
|
]);
|
|
578
|
-
|
|
578
|
+
b(this, "expressionNames", {
|
|
579
579
|
compute: "计算表达式",
|
|
580
580
|
dependency: "依赖表达式",
|
|
581
581
|
validate: "验证表达式",
|
|
@@ -584,7 +584,7 @@ class te {
|
|
|
584
584
|
readonly: "只读表达式",
|
|
585
585
|
required: "必填表达式"
|
|
586
586
|
});
|
|
587
|
-
|
|
587
|
+
b(this, "getExpressionConverter", (n, e) => ({
|
|
588
588
|
convertFrom: (t, i, r, s) => {
|
|
589
589
|
const c = r.getExpressionRuleValue(n, e || i);
|
|
590
590
|
return c && c.value || "";
|
|
@@ -803,21 +803,21 @@ class te {
|
|
|
803
803
|
};
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
|
-
class
|
|
806
|
+
class Fe {
|
|
807
807
|
constructor(n, e) {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
808
|
+
b(this, "componentId");
|
|
809
|
+
b(this, "viewModelId");
|
|
810
|
+
b(this, "eventsEditorUtils");
|
|
811
|
+
b(this, "formSchemaUtils");
|
|
812
|
+
b(this, "formMetadataConverter");
|
|
813
|
+
b(this, "designViewModelUtils");
|
|
814
|
+
b(this, "designViewModelField");
|
|
815
|
+
b(this, "controlCreatorUtils");
|
|
816
|
+
b(this, "designerHostService");
|
|
817
|
+
b(this, "designerContext");
|
|
818
|
+
b(this, "schemaService", null);
|
|
819
|
+
b(this, "metadataService", null);
|
|
820
|
+
b(this, "propertyConfig", {
|
|
821
821
|
type: "object",
|
|
822
822
|
categories: {}
|
|
823
823
|
});
|
|
@@ -900,7 +900,7 @@ class Ee {
|
|
|
900
900
|
switch (s && s.propertyID) {
|
|
901
901
|
case "class":
|
|
902
902
|
case "style": {
|
|
903
|
-
|
|
903
|
+
U.value++;
|
|
904
904
|
break;
|
|
905
905
|
}
|
|
906
906
|
}
|
|
@@ -920,7 +920,7 @@ class Ee {
|
|
|
920
920
|
* @returns
|
|
921
921
|
*/
|
|
922
922
|
getPropertyEditorParams(n, e = [], t = "visible", i = {}, r = {}, s = "") {
|
|
923
|
-
const { getVariables: c, getControlName: l, getStateMachines: a } =
|
|
923
|
+
const { getVariables: c, getControlName: l, getStateMachines: a } = Ee(this.designerHostService), u = this.getRealTargetType(n), d = e && e.length > 0 ? e : ["Const", "Variable", "StateMachine", "Expression"], m = {
|
|
924
924
|
type: "property-editor",
|
|
925
925
|
propertyTypes: d
|
|
926
926
|
};
|
|
@@ -1048,14 +1048,14 @@ class Ee {
|
|
|
1048
1048
|
const { expressionId: r, expressionInfo: s } = e, { targetId: c, targetType: l, expressionType: a, value: u, message: d } = s, m = this.formSchemaUtils.getModule();
|
|
1049
1049
|
m.expressions = m.expressions || [];
|
|
1050
1050
|
const { expressions: f } = m;
|
|
1051
|
-
let g = f.find((
|
|
1051
|
+
let g = f.find((y) => y.target === c);
|
|
1052
1052
|
g || (g = { target: c, rules: [], targetType: l }, f.push(g));
|
|
1053
|
-
const h = g.rules.find((
|
|
1053
|
+
const h = g.rules.find((y) => y.type === a);
|
|
1054
1054
|
if (h)
|
|
1055
1055
|
h.value = u, h.message = d;
|
|
1056
1056
|
else {
|
|
1057
|
-
const
|
|
1058
|
-
g.rules.push(
|
|
1057
|
+
const y = { id: r, type: a, value: u, message: d };
|
|
1058
|
+
g.rules.push(y);
|
|
1059
1059
|
}
|
|
1060
1060
|
delete e.expressionInfo;
|
|
1061
1061
|
}
|
|
@@ -1130,7 +1130,7 @@ const N = class N {
|
|
|
1130
1130
|
/**
|
|
1131
1131
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1132
1132
|
*/
|
|
1133
|
-
|
|
1133
|
+
b(N, "fieldControlTypeMapping", {
|
|
1134
1134
|
String: [
|
|
1135
1135
|
{ key: p["input-group"].type, value: p["input-group"].name },
|
|
1136
1136
|
{ key: p.lookup.type, value: p.lookup.name },
|
|
@@ -1148,6 +1148,7 @@ y(N, "fieldControlTypeMapping", {
|
|
|
1148
1148
|
{ key: p.textarea.type, value: p.textarea.name },
|
|
1149
1149
|
{ key: p.lookup.type, value: p.lookup.name },
|
|
1150
1150
|
{ key: p.image.type, value: p.image.name },
|
|
1151
|
+
{ key: p.avatar.type, value: p.avatar.name },
|
|
1151
1152
|
{ key: p["rich-text-editor"].type, value: p["rich-text-editor"].name }
|
|
1152
1153
|
],
|
|
1153
1154
|
Decimal: [
|
|
@@ -1185,35 +1186,35 @@ y(N, "fieldControlTypeMapping", {
|
|
|
1185
1186
|
]
|
|
1186
1187
|
});
|
|
1187
1188
|
let G = N;
|
|
1188
|
-
var
|
|
1189
|
+
var R = /* @__PURE__ */ ((o) => (o.Form = "Form", o.Variable = "Variable", o))(R || {});
|
|
1189
1190
|
class Ie {
|
|
1190
1191
|
constructor() {
|
|
1191
1192
|
/** 控件标题 */
|
|
1192
|
-
|
|
1193
|
+
b(this, "label", "");
|
|
1193
1194
|
/** 控件id */
|
|
1194
|
-
|
|
1195
|
+
b(this, "id", "");
|
|
1195
1196
|
/** 每个控件占用的栅格数 */
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1197
|
+
b(this, "columnInSM", 12);
|
|
1198
|
+
b(this, "columnInMD", 6);
|
|
1199
|
+
b(this, "columnInLG", 3);
|
|
1200
|
+
b(this, "columnInEL", 2);
|
|
1200
1201
|
/** 每个控件占用的列数 */
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1202
|
+
b(this, "displayWidthInSM", 1);
|
|
1203
|
+
b(this, "displayWidthInMD", 1);
|
|
1204
|
+
b(this, "displayWidthInLG", 1);
|
|
1205
|
+
b(this, "displayWidthInEL", 1);
|
|
1205
1206
|
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
1206
|
-
|
|
1207
|
+
b(this, "displayColumnCountAtBreakPoint", "md");
|
|
1207
1208
|
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
1208
|
-
|
|
1209
|
+
b(this, "tagRow", 0);
|
|
1209
1210
|
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
1210
|
-
|
|
1211
|
+
b(this, "showTopBorder", 0);
|
|
1211
1212
|
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
1212
|
-
|
|
1213
|
+
b(this, "group", 1);
|
|
1213
1214
|
/** 控件是否符合标准的class配置(设计器用的) */
|
|
1214
|
-
|
|
1215
|
+
b(this, "isSupportedClass", !0);
|
|
1215
1216
|
/** 控件所在分组id(设计器用的) */
|
|
1216
|
-
|
|
1217
|
+
b(this, "fieldSetId", "");
|
|
1217
1218
|
}
|
|
1218
1219
|
}
|
|
1219
1220
|
function Se(o) {
|
|
@@ -1226,8 +1227,8 @@ function Se(o) {
|
|
|
1226
1227
|
d.isSupportedClass = !1;
|
|
1227
1228
|
return;
|
|
1228
1229
|
}
|
|
1229
|
-
let g = f.find((x) => /^col-([1-9]|10|11|12)$/.test(x)), h = f.find((x) => /^col-md-([1-9]|10|11|12)$/.test(x)),
|
|
1230
|
-
g = g || "col-12", d.columnInSM = parseInt(g.replace("col-", ""), 10), d.displayWidthInSM = d.columnInSM / 12, d.displayWidthInSM !== 1 && (d.isSupportedClass = !1), h = h || "col-md-" + d.columnInSM, d.columnInMD = parseInt(h.replace("col-md-", ""), 10), d.displayWidthInMD = d.columnInMD / 6, [1, 2].includes(d.displayWidthInMD) || (d.isSupportedClass = !1),
|
|
1230
|
+
let g = f.find((x) => /^col-([1-9]|10|11|12)$/.test(x)), h = f.find((x) => /^col-md-([1-9]|10|11|12)$/.test(x)), y = f.find((x) => /^col-xl-([1-9]|10|11|12)$/.test(x)), C = f.find((x) => /^col-el-([1-9]|10|11|12)$/.test(x));
|
|
1231
|
+
g = g || "col-12", d.columnInSM = parseInt(g.replace("col-", ""), 10), d.displayWidthInSM = d.columnInSM / 12, d.displayWidthInSM !== 1 && (d.isSupportedClass = !1), h = h || "col-md-" + d.columnInSM, d.columnInMD = parseInt(h.replace("col-md-", ""), 10), d.displayWidthInMD = d.columnInMD / 6, [1, 2].includes(d.displayWidthInMD) || (d.isSupportedClass = !1), y = y || "col-xl-" + d.columnInMD, d.columnInLG = parseInt(y.replace("col-xl-", ""), 10), d.displayWidthInLG = d.columnInLG / 3, [1, 2, 3, 4].includes(d.displayWidthInLG) || (d.isSupportedClass = !1), C = C || "col-el-" + d.columnInLG, d.columnInEL = parseInt(C.replace("col-el-", ""), 10), d.displayWidthInEL = d.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(d.displayWidthInEL) || (d.isSupportedClass = !1);
|
|
1231
1232
|
}
|
|
1232
1233
|
function s(u, d, m, f = !1) {
|
|
1233
1234
|
let g = !1;
|
|
@@ -1237,8 +1238,8 @@ function Se(o) {
|
|
|
1237
1238
|
return;
|
|
1238
1239
|
}
|
|
1239
1240
|
g && (m += 1, g = !1);
|
|
1240
|
-
const
|
|
1241
|
-
|
|
1241
|
+
const y = h.appearance && h.appearance.class, C = new Ie();
|
|
1242
|
+
y ? r(y, C) : C.isSupportedClass = !1, C.label = h.label || h.id, C.id = h.id, C.group = m, f && (C.fieldSetId = u.id), e === h.id && (n = m), t.set(h.id, h), d.push(C);
|
|
1242
1243
|
});
|
|
1243
1244
|
}
|
|
1244
1245
|
function c(u) {
|
|
@@ -1256,11 +1257,11 @@ function Se(o) {
|
|
|
1256
1257
|
e = u.id, i = [], t.clear();
|
|
1257
1258
|
const h = g.contents[0].type === p.fieldset.type ? 0 : 1;
|
|
1258
1259
|
s(g, i, h);
|
|
1259
|
-
const
|
|
1260
|
+
const y = i.find((x) => !x.isSupportedClass);
|
|
1260
1261
|
return {
|
|
1261
1262
|
defaultState: {
|
|
1262
1263
|
defaultGroupNumber: n || 1,
|
|
1263
|
-
model:
|
|
1264
|
+
model: y ? "customize" : "standard"
|
|
1264
1265
|
},
|
|
1265
1266
|
importData: i
|
|
1266
1267
|
};
|
|
@@ -1273,16 +1274,16 @@ function Se(o) {
|
|
|
1273
1274
|
const g = [];
|
|
1274
1275
|
return u.forEach((h) => {
|
|
1275
1276
|
var x;
|
|
1276
|
-
const
|
|
1277
|
+
const y = t.get(h.id), C = y.appearance && y.appearance.class;
|
|
1277
1278
|
if (C) {
|
|
1278
|
-
const v = C.split(" ").filter((T) => !T.startsWith("col-")), k = "col-" + h.columnInSM,
|
|
1279
|
-
|
|
1279
|
+
const v = C.split(" ").filter((T) => !T.startsWith("col-")), k = "col-" + h.columnInSM, F = "col-md-" + h.columnInMD, S = "col-xl-" + h.columnInLG, w = "col-el-" + h.columnInEL, P = [k, F, S, w].concat(v);
|
|
1280
|
+
y.appearance.class = P.join(" ");
|
|
1280
1281
|
}
|
|
1281
1282
|
if (h.fieldSetId) {
|
|
1282
|
-
const
|
|
1283
|
-
v ? (x = v.contents) == null || x.push(
|
|
1283
|
+
const E = f.contents.find((k) => k.id === h.fieldSetId), v = g.find((k) => k.id === h.fieldSetId);
|
|
1284
|
+
v ? (x = v.contents) == null || x.push(y) : (g.push(E), E.contents = [y]);
|
|
1284
1285
|
} else
|
|
1285
|
-
g.push(
|
|
1286
|
+
g.push(y);
|
|
1286
1287
|
}), f.contents = g, f.id;
|
|
1287
1288
|
}
|
|
1288
1289
|
return {
|
|
@@ -1300,13 +1301,13 @@ const Me = (o) => V(re, null, [V("h5", null, [W("代码示例")]), V("pre", {
|
|
|
1300
1301
|
自定义提示内容
|
|
1301
1302
|
</span>
|
|
1302
1303
|
`])])]);
|
|
1303
|
-
class ke extends
|
|
1304
|
+
class ke extends Fe {
|
|
1304
1305
|
constructor(e, t) {
|
|
1305
1306
|
super(e, t);
|
|
1306
|
-
|
|
1307
|
+
b(this, "responseLayoutEditorFunction");
|
|
1307
1308
|
/** 控件绑定的变量 */
|
|
1308
|
-
|
|
1309
|
-
|
|
1309
|
+
b(this, "bindingVarible");
|
|
1310
|
+
b(this, "formGroupEvents", [
|
|
1310
1311
|
{
|
|
1311
1312
|
label: "fieldValueChanging",
|
|
1312
1313
|
name: "绑定字段值变化前事件"
|
|
@@ -1317,10 +1318,10 @@ class ke extends Ee {
|
|
|
1317
1318
|
},
|
|
1318
1319
|
{
|
|
1319
1320
|
label: "onClickLabel",
|
|
1320
|
-
name: "
|
|
1321
|
+
name: "标签点击事件"
|
|
1321
1322
|
}
|
|
1322
1323
|
]);
|
|
1323
|
-
|
|
1324
|
+
b(this, "numberEditorOptions", {
|
|
1324
1325
|
type: "number-spinner",
|
|
1325
1326
|
useThousands: !1,
|
|
1326
1327
|
keyboard: !1,
|
|
@@ -1331,7 +1332,7 @@ class ke extends Ee {
|
|
|
1331
1332
|
getCommonPropertyConfig(e, t, i = "Card") {
|
|
1332
1333
|
if (this.propertyConfig.categories.basic = this.getBasicProperties(e, t, i), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e, t), this.propertyConfig.categories.behavior = this.getBehaviorConfig(e, "form-group"), i === "Card") {
|
|
1333
1334
|
const r = this.getTipsConfig(e);
|
|
1334
|
-
this.propertyConfig.categories.behavior.properties = { ...this.propertyConfig.categories.behavior.properties, ...r }, ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group"].includes(e.editor.type) && (this.propertyConfig.categories.expansion = this.getExpandProperties(e));
|
|
1335
|
+
this.propertyConfig.categories.behavior.properties = { ...this.propertyConfig.categories.behavior.properties, ...r }, ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group", "language-textbox"].includes(e.editor.type) && (this.propertyConfig.categories.expansion = this.getExpandProperties(e));
|
|
1335
1336
|
}
|
|
1336
1337
|
}
|
|
1337
1338
|
getPropertyConfig(e, t) {
|
|
@@ -1554,10 +1555,10 @@ class ke extends Ee {
|
|
|
1554
1555
|
i.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(r.propertyValue, i.componentId || e.id), i.updateUnifiedLayoutAfterResponseLayoutChanged(i.componentId), i.updateElementByParentContainer(e.id, t), delete e.responseLayout;
|
|
1555
1556
|
break;
|
|
1556
1557
|
case "class":
|
|
1557
|
-
i.updateUnifiedLayoutAfterControlChanged(r.propertyValue, e.id, this.componentId),
|
|
1558
|
+
i.updateUnifiedLayoutAfterControlChanged(r.propertyValue, e.id, this.componentId), U.value++;
|
|
1558
1559
|
break;
|
|
1559
1560
|
case "style": {
|
|
1560
|
-
|
|
1561
|
+
U.value++;
|
|
1561
1562
|
break;
|
|
1562
1563
|
}
|
|
1563
1564
|
}
|
|
@@ -1597,12 +1598,12 @@ class ke extends Ee {
|
|
|
1597
1598
|
(u) => u.classList.remove("dgComponentSelected")
|
|
1598
1599
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
1599
1600
|
(u) => u.classList.remove("dgComponentFocused")
|
|
1600
|
-
),
|
|
1601
|
+
), U.value++, se(() => {
|
|
1601
1602
|
this.getFormDesignerInstance().reloadPropertyPanel();
|
|
1602
1603
|
});
|
|
1603
1604
|
}
|
|
1604
1605
|
getTipsConfig(e) {
|
|
1605
|
-
return ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group", "textarea", "rich-text-editor"].includes(e.editor.type) ? {
|
|
1606
|
+
return ["time-picker", "date-picker", "lookup", "combo-list", "number-spinner", "input-group", "textarea", "rich-text-editor", "language-textbox"].includes(e.editor.type) ? {
|
|
1606
1607
|
enableTips: {
|
|
1607
1608
|
refreshPanelAfterChanged: !0,
|
|
1608
1609
|
description: "",
|
|
@@ -1755,19 +1756,26 @@ class ke extends Ee {
|
|
|
1755
1756
|
* 注意:因为绑定字段值变化后事件与下拉框的值变化事件(valueChanged)重名,所以这里将事件label都重命名下
|
|
1756
1757
|
*/
|
|
1757
1758
|
appendFieldValueChangeEvents(e, t) {
|
|
1758
|
-
e.binding && e.binding.type ===
|
|
1759
|
+
e.binding && e.binding.type === R.Form && e.binding.field ? (t.find((i) => i.label === "fieldValueChanging"), t.find((i) => i.label === "fieldValueChanged"), this.designViewModelField && (e.fieldValueChanging = this.designViewModelField.valueChanging, e.fieldValueChanged = this.designViewModelField.valueChanged)) : t = t.filter((i) => i.label !== "fieldValueChanging" && i.label !== "fieldValueChanged");
|
|
1759
1760
|
}
|
|
1760
1761
|
getControlMethodType(e) {
|
|
1761
1762
|
if (!e.binding)
|
|
1762
1763
|
return e.type;
|
|
1763
1764
|
switch (e.binding.type) {
|
|
1764
|
-
case
|
|
1765
|
+
case R.Form:
|
|
1765
1766
|
return e.binding.path || e.type;
|
|
1766
|
-
case
|
|
1767
|
+
case R.Variable:
|
|
1767
1768
|
return e.binding.fullPath || e.type;
|
|
1768
1769
|
}
|
|
1769
1770
|
return e.type;
|
|
1770
1771
|
}
|
|
1772
|
+
updateLinkedLabel(e, t) {
|
|
1773
|
+
if (e.boundEventsList && e.boundEventsList.length > 0) {
|
|
1774
|
+
const i = e.boundEventsList.find((r) => r.boundEvents && r.boundEvents.label === "onClickLabel");
|
|
1775
|
+
t.linkLabel = !!i;
|
|
1776
|
+
} else
|
|
1777
|
+
t.linkLabel = !1;
|
|
1778
|
+
}
|
|
1771
1779
|
/**
|
|
1772
1780
|
* 组装输入类控件的交互面板:包含标签超链、绑定字段值变化前后事件等。
|
|
1773
1781
|
* @param propertyData 属性值
|
|
@@ -1800,7 +1808,7 @@ class ke extends Ee {
|
|
|
1800
1808
|
tabName: "交互",
|
|
1801
1809
|
setPropertyRelates(m, f) {
|
|
1802
1810
|
const g = m.propertyValue;
|
|
1803
|
-
delete e[s.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, g.controlInfo = { type: s.getControlMethodType(e), name: e.title }, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, g.events, g)), r && r(m, f, g);
|
|
1811
|
+
delete e[s.viewModelId], g && (g.setPropertyRelates = this.setPropertyRelates, g.controlInfo = { type: s.getControlMethodType(e), name: e.title }, s.eventsEditorUtils.saveRelatedParameters(e, s.viewModelId, g.events, g), s.updateLinkedLabel(g, f)), r && r(m, f, g);
|
|
1804
1812
|
const h = s.designViewModelUtils.getDgViewModel(s.viewModelId);
|
|
1805
1813
|
h && s.designViewModelField && h.changeField(s.designViewModelField.id, { valueChanging: e.fieldValueChanging, valueChanged: e.fieldValueChanged });
|
|
1806
1814
|
}
|
|
@@ -1871,9 +1879,9 @@ const Be = /* @__PURE__ */ J({
|
|
|
1871
1879
|
Q(() => {
|
|
1872
1880
|
a.value.componentInstance = f;
|
|
1873
1881
|
}), n.expose(f.value);
|
|
1874
|
-
const g = A(o, n, t, e, c, s, l, e, i, !0), h = O(o, n, t, e, c, s, g, l, e, i, !0),
|
|
1882
|
+
const g = A(o, n, t, e, c, s, l, e, i, !0), h = O(o, n, t, e, c, s, g, l, e, i, !0), y = $(o, n, g), C = H(o, n, h, !0), x = (w) => {
|
|
1875
1883
|
n.emit("endValueChange", w);
|
|
1876
|
-
},
|
|
1884
|
+
}, E = A(o, n, r, i, c, s, x, e, i, !1), v = O(o, n, r, i, c, s, E, x, e, i, !1), k = $(o, n, E), F = H(o, n, v, !1), S = M(() => o.showButton);
|
|
1877
1885
|
return () => V("div", {
|
|
1878
1886
|
ref: a,
|
|
1879
1887
|
class: "input-group number-range f-cmp-number-spinner"
|
|
@@ -1881,11 +1889,11 @@ const Be = /* @__PURE__ */ J({
|
|
|
1881
1889
|
class: "form-control input-container"
|
|
1882
1890
|
}, [V("div", {
|
|
1883
1891
|
class: "sub-input-group"
|
|
1884
|
-
}, [C(), S.value &&
|
|
1892
|
+
}, [C(), S.value && y()]), V("span", {
|
|
1885
1893
|
class: "spliter"
|
|
1886
1894
|
}, [W("~")]), V("div", {
|
|
1887
1895
|
class: "sub-input-group"
|
|
1888
|
-
}, [
|
|
1896
|
+
}, [F(), S.value && k()])])]);
|
|
1889
1897
|
}
|
|
1890
1898
|
});
|
|
1891
1899
|
q.register = (o, n, e, t) => {
|