@kengic/vue 0.32.20 → 0.32.21-beta.0
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/dist/kengic-vue.js +114 -108
- package/dist/src/model/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
|
@@ -100070,7 +100070,7 @@ function _interopRequireDefault(K) {
|
|
|
100070
100070
|
return K && K.__esModule ? K : { default: K };
|
|
100071
100071
|
}
|
|
100072
100072
|
default_1 = zhTW.default = _zhCHT.default;
|
|
100073
|
-
const version = "0.32.
|
|
100073
|
+
const version = "0.32.21-beta.0", cs_CZ$1 = {}, en$2 = {
|
|
100074
100074
|
"kg.KgAppSelect.businessManager": "Business Manager",
|
|
100075
100075
|
"kg.KgAppSelect.dataManager": "Data Manager",
|
|
100076
100076
|
"kg.KgAppSelect.sys": "System Config",
|
|
@@ -120186,68 +120186,7 @@ const getProps$H = () => ({
|
|
|
120186
120186
|
}
|
|
120187
120187
|
});
|
|
120188
120188
|
var KG_TABLE_CELL_CONTEXT = /* @__PURE__ */ ((K) => (K.TABLE_CELL = "TABLE_CELL", K.TABLE_FILTER = "TABLE_FILTER", K))(KG_TABLE_CELL_CONTEXT || {});
|
|
120189
|
-
const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 55,
|
|
120190
|
-
kgLeft: {
|
|
120191
|
-
type: Number,
|
|
120192
|
-
default: null
|
|
120193
|
-
},
|
|
120194
|
-
kgRight: {
|
|
120195
|
-
type: Number,
|
|
120196
|
-
default: null
|
|
120197
|
-
},
|
|
120198
|
-
kgTextWidth: {
|
|
120199
|
-
type: String,
|
|
120200
|
-
default: "auto"
|
|
120201
|
-
}
|
|
120202
|
-
}), KgProgressA = defineComponent({
|
|
120203
|
-
name: "KgProgressA",
|
|
120204
|
-
props: getProps$G(),
|
|
120205
|
-
setup(K, {
|
|
120206
|
-
slots: U
|
|
120207
|
-
}) {
|
|
120208
|
-
const ae = computed(() => !K.kgLeft || !K.kgRight || typeof K.kgLeft != "number" || typeof K.kgRight != "number" || K.kgLeft < 0 || K.kgRight < 0 ? 0 : Math.floor(K.kgLeft / K.kgRight * 100)), ie = computed((ea) => !K.kgLeft || !K.kgRight || typeof K.kgLeft != "number" || typeof K.kgRight != "number" || K.kgLeft < 0 || K.kgRight < 0 || K.kgLeft > K.kgRight ? "exception" : K.kgLeft === K.kgRight ? "success" : (K.kgLeft < K.kgRight, "normal")), ue = computed(() => ({
|
|
120209
|
-
width: K.kgTextWidth
|
|
120210
|
-
}));
|
|
120211
|
-
return () => createVNode(Progress, {
|
|
120212
|
-
percent: ae.value,
|
|
120213
|
-
size: "small",
|
|
120214
|
-
status: ie.value,
|
|
120215
|
-
class: "kg-progress-a"
|
|
120216
|
-
}, {
|
|
120217
|
-
format: () => createVNode("span", {
|
|
120218
|
-
class: "text",
|
|
120219
|
-
style: ue.value
|
|
120220
|
-
}, [createVNode("span", {
|
|
120221
|
-
class: "value"
|
|
120222
|
-
}, [K.kgLeft || 0]), createVNode("span", {
|
|
120223
|
-
class: "separator"
|
|
120224
|
-
}, [createTextVNode("/")]), createVNode("span", {
|
|
120225
|
-
class: "total"
|
|
120226
|
-
}, [K.kgRight || 0])])
|
|
120227
|
-
});
|
|
120228
|
-
}
|
|
120229
|
-
}), KgYesOrNo$1 = "", getProps$F = () => ({
|
|
120230
|
-
kgValue: {
|
|
120231
|
-
type: Boolean,
|
|
120232
|
-
default: void 0
|
|
120233
|
-
},
|
|
120234
|
-
kgNilAsFalse: {
|
|
120235
|
-
type: Boolean,
|
|
120236
|
-
default: !1
|
|
120237
|
-
}
|
|
120238
|
-
}), KgYesOrNo = defineComponent({
|
|
120239
|
-
name: "KgYesOrNo",
|
|
120240
|
-
props: getProps$F(),
|
|
120241
|
-
setup(K) {
|
|
120242
|
-
const U = useKg();
|
|
120243
|
-
return () => !K.kgNilAsFalse && isNil$1(K.kgValue) ? null : createVNode(Tag$3, {
|
|
120244
|
-
class: "kg-yes-or-no",
|
|
120245
|
-
color: K.kgValue ? "green" : "red"
|
|
120246
|
-
}, {
|
|
120247
|
-
default: () => [K.kgValue ? U.t("kg.yes") : U.t("kg.no")]
|
|
120248
|
-
});
|
|
120249
|
-
}
|
|
120250
|
-
}), configProviderContextKey = Symbol(), defaultNamespace = "el", statePrefix = "is-", _bem = (K, U, ae, ie, ue) => {
|
|
120189
|
+
const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 55, configProviderContextKey = Symbol(), defaultNamespace = "el", statePrefix = "is-", _bem = (K, U, ae, ie, ue) => {
|
|
120251
120190
|
let ea = `${K}-${U}`;
|
|
120252
120191
|
return ae && (ea += `-${ae}`), ie && (ea += `__${ie}`), ue && (ea += `--${ue}`), ea;
|
|
120253
120192
|
}, namespaceContextKey = Symbol("namespaceContextKey"), useGetDerivedNamespace = (K) => {
|
|
@@ -129631,7 +129570,68 @@ function _sfc_render(K, U, ae, ie, ue, ea) {
|
|
|
129631
129570
|
], 2);
|
|
129632
129571
|
}
|
|
129633
129572
|
var Tree = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "tree.vue"]]);
|
|
129634
|
-
const ElTree = withInstall(Tree), getProps$
|
|
129573
|
+
const ElTree = withInstall(Tree), KgProgressA$1 = "", getProps$G = () => ({
|
|
129574
|
+
kgLeft: {
|
|
129575
|
+
type: Number,
|
|
129576
|
+
default: null
|
|
129577
|
+
},
|
|
129578
|
+
kgRight: {
|
|
129579
|
+
type: Number,
|
|
129580
|
+
default: null
|
|
129581
|
+
},
|
|
129582
|
+
kgTextWidth: {
|
|
129583
|
+
type: String,
|
|
129584
|
+
default: "auto"
|
|
129585
|
+
}
|
|
129586
|
+
}), KgProgressA = defineComponent({
|
|
129587
|
+
name: "KgProgressA",
|
|
129588
|
+
props: getProps$G(),
|
|
129589
|
+
setup(K, {
|
|
129590
|
+
slots: U
|
|
129591
|
+
}) {
|
|
129592
|
+
const ae = computed(() => !K.kgLeft || !K.kgRight || typeof K.kgLeft != "number" || typeof K.kgRight != "number" || K.kgLeft < 0 || K.kgRight < 0 ? 0 : Math.floor(K.kgLeft / K.kgRight * 100)), ie = computed((ea) => !K.kgLeft || !K.kgRight || typeof K.kgLeft != "number" || typeof K.kgRight != "number" || K.kgLeft < 0 || K.kgRight < 0 || K.kgLeft > K.kgRight ? "exception" : K.kgLeft === K.kgRight ? "success" : (K.kgLeft < K.kgRight, "normal")), ue = computed(() => ({
|
|
129593
|
+
width: K.kgTextWidth
|
|
129594
|
+
}));
|
|
129595
|
+
return () => createVNode(Progress, {
|
|
129596
|
+
percent: ae.value,
|
|
129597
|
+
size: "small",
|
|
129598
|
+
status: ie.value,
|
|
129599
|
+
class: "kg-progress-a"
|
|
129600
|
+
}, {
|
|
129601
|
+
format: () => createVNode("span", {
|
|
129602
|
+
class: "text",
|
|
129603
|
+
style: ue.value
|
|
129604
|
+
}, [createVNode("span", {
|
|
129605
|
+
class: "value"
|
|
129606
|
+
}, [K.kgLeft || 0]), createVNode("span", {
|
|
129607
|
+
class: "separator"
|
|
129608
|
+
}, [createTextVNode("/")]), createVNode("span", {
|
|
129609
|
+
class: "total"
|
|
129610
|
+
}, [K.kgRight || 0])])
|
|
129611
|
+
});
|
|
129612
|
+
}
|
|
129613
|
+
}), KgYesOrNo$1 = "", getProps$F = () => ({
|
|
129614
|
+
kgValue: {
|
|
129615
|
+
type: Boolean,
|
|
129616
|
+
default: void 0
|
|
129617
|
+
},
|
|
129618
|
+
kgNilAsFalse: {
|
|
129619
|
+
type: Boolean,
|
|
129620
|
+
default: !1
|
|
129621
|
+
}
|
|
129622
|
+
}), KgYesOrNo = defineComponent({
|
|
129623
|
+
name: "KgYesOrNo",
|
|
129624
|
+
props: getProps$F(),
|
|
129625
|
+
setup(K) {
|
|
129626
|
+
const U = useKg();
|
|
129627
|
+
return () => !K.kgNilAsFalse && isNil$1(K.kgValue) ? null : createVNode(Tag$3, {
|
|
129628
|
+
class: "kg-yes-or-no",
|
|
129629
|
+
color: K.kgValue ? "green" : "red"
|
|
129630
|
+
}, {
|
|
129631
|
+
default: () => [K.kgValue ? U.t("kg.yes") : U.t("kg.no")]
|
|
129632
|
+
});
|
|
129633
|
+
}
|
|
129634
|
+
}), getProps$E = () => ({
|
|
129635
129635
|
kgRow: Object,
|
|
129636
129636
|
kgValue: [Object, String, Number, Boolean, Date],
|
|
129637
129637
|
kgVarName: String,
|
|
@@ -129803,23 +129803,26 @@ const ElTree = withInstall(Tree), getProps$E = () => ({
|
|
|
129803
129803
|
});
|
|
129804
129804
|
}
|
|
129805
129805
|
function renderCell() {
|
|
129806
|
-
var K, U, ae, ie, ue, ea, na, ra, aa, oa
|
|
129806
|
+
var K, U, ae, ie, ue, ea, na, ra, aa, oa;
|
|
129807
129807
|
if (isSubmitting$$.value)
|
|
129808
129808
|
return renderCellForSubmit();
|
|
129809
129809
|
switch ((K = varGridDetail$$.value) == null ? void 0 : K.display_type) {
|
|
129810
129810
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.YN: {
|
|
129811
|
-
const
|
|
129811
|
+
const ia = displayTypeProperties.value;
|
|
129812
129812
|
return createVNode(KgYesOrNo, {
|
|
129813
|
-
kgValue: isNil$1(props.kgValue) ? void 0 :
|
|
129814
|
-
|
|
129813
|
+
kgValue: isNil$1(props.kgValue) ? void 0 : (() => {
|
|
129814
|
+
var la;
|
|
129815
|
+
return isArray$14(ia.yValue) ? !!ia.yValue.includes(props.kgValue) : props.kgValue === ((la = ia.yValue) != null ? la : 1);
|
|
129816
|
+
})(),
|
|
129817
|
+
kgNilAsFalse: ia.nilAsFalse
|
|
129815
129818
|
}, null);
|
|
129816
129819
|
}
|
|
129817
129820
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC: {
|
|
129818
|
-
const
|
|
129819
|
-
if (
|
|
129820
|
-
const
|
|
129821
|
+
const ia = displayTypeProperties.value;
|
|
129822
|
+
if (ia.isTag) {
|
|
129823
|
+
const la = (U = ia.tagColors) == null ? void 0 : U.find((sa) => sa.value === props.kgValue);
|
|
129821
129824
|
return isNil$1(text$$.value) || !String(text$$.value).trim() ? renderText() : createVNode(Tag$3, {
|
|
129822
|
-
color: (
|
|
129825
|
+
color: (ae = la == null ? void 0 : la.color) != null ? ae : "default"
|
|
129823
129826
|
}, {
|
|
129824
129827
|
default: () => [text$$.value]
|
|
129825
129828
|
});
|
|
@@ -129827,11 +129830,11 @@ const ElTree = withInstall(Tree), getProps$E = () => ({
|
|
|
129827
129830
|
return renderText();
|
|
129828
129831
|
}
|
|
129829
129832
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC__UPDATE_LINK: {
|
|
129830
|
-
const
|
|
129831
|
-
if (
|
|
129832
|
-
const
|
|
129833
|
+
const ia = displayTypeProperties.value;
|
|
129834
|
+
if (ia.isTag) {
|
|
129835
|
+
const la = (ie = ia.tagColors) == null ? void 0 : ie.find((sa) => sa.value === props.kgValue);
|
|
129833
129836
|
return isNil$1(text$$.value) || !String(text$$.value).trim() ? renderText() : createVNode(Tag$3, {
|
|
129834
|
-
color: (
|
|
129837
|
+
color: (ue = la == null ? void 0 : la.color) != null ? ue : "default"
|
|
129835
129838
|
}, {
|
|
129836
129839
|
default: () => [text$$.value]
|
|
129837
129840
|
});
|
|
@@ -129849,15 +129852,15 @@ const ElTree = withInstall(Tree), getProps$E = () => ({
|
|
|
129849
129852
|
break;
|
|
129850
129853
|
}
|
|
129851
129854
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.PROGRESS: {
|
|
129852
|
-
const
|
|
129855
|
+
const ia = displayTypeProperties.value, la = Number((na = (ea = props.kgRow) == null ? void 0 : ea[ia.leftColumn]) != null ? na : 0);
|
|
129853
129856
|
switch (props.kgContext) {
|
|
129854
129857
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
|
129855
|
-
return
|
|
129858
|
+
return la;
|
|
129856
129859
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
|
129857
129860
|
return createVNode(KgProgressA, {
|
|
129858
|
-
kgTextWidth:
|
|
129859
|
-
kgLeft:
|
|
129860
|
-
kgRight: Number((
|
|
129861
|
+
kgTextWidth: ia.textWidth,
|
|
129862
|
+
kgLeft: la,
|
|
129863
|
+
kgRight: Number((ra = props.kgRow) == null ? void 0 : ra[ia.rightColumn])
|
|
129861
129864
|
}, null);
|
|
129862
129865
|
}
|
|
129863
129866
|
break;
|
|
@@ -129891,17 +129894,17 @@ const ElTree = withInstall(Tree), getProps$E = () => ({
|
|
|
129891
129894
|
break;
|
|
129892
129895
|
}
|
|
129893
129896
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.IMAGE: {
|
|
129894
|
-
const
|
|
129897
|
+
const ia = displayTypeProperties.value, la = (aa = ia.width) != null ? aa : 29, sa = (oa = ia.height) != null ? oa : 29;
|
|
129895
129898
|
switch (props.kgContext) {
|
|
129896
129899
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
|
129897
129900
|
return props.kgValue;
|
|
129898
129901
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
|
129899
129902
|
return createVNode(KgImage, {
|
|
129900
129903
|
src: props.kgValue,
|
|
129901
|
-
width:
|
|
129902
|
-
height:
|
|
129903
|
-
onClick: (
|
|
129904
|
-
|
|
129904
|
+
width: la,
|
|
129905
|
+
height: sa,
|
|
129906
|
+
onClick: (ua) => {
|
|
129907
|
+
ua.preventDefault(), ua.stopPropagation();
|
|
129905
129908
|
}
|
|
129906
129909
|
}, null);
|
|
129907
129910
|
}
|
|
@@ -131281,21 +131284,24 @@ const getProps$C = () => ({
|
|
|
131281
131284
|
};
|
|
131282
131285
|
});
|
|
131283
131286
|
function renderCell() {
|
|
131284
|
-
var K, U, ae, ie, ue, ea, na, ra, aa, oa
|
|
131287
|
+
var K, U, ae, ie, ue, ea, na, ra, aa, oa;
|
|
131285
131288
|
switch ((K = varGridDetail$$.value) == null ? void 0 : K.display_type) {
|
|
131286
131289
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.YN: {
|
|
131287
|
-
const
|
|
131290
|
+
const ia = displayTypeProperties.value;
|
|
131288
131291
|
return createVNode(KgYesOrNo, {
|
|
131289
|
-
kgValue: isNil$1(value$$.value) ? void 0 :
|
|
131290
|
-
|
|
131292
|
+
kgValue: isNil$1(value$$.value) ? void 0 : (() => {
|
|
131293
|
+
var la;
|
|
131294
|
+
return isArray$14(ia.yValue) ? !!ia.yValue.includes(value$$.value) : value$$.value === ((la = ia.yValue) != null ? la : 1);
|
|
131295
|
+
})(),
|
|
131296
|
+
kgNilAsFalse: ia.nilAsFalse
|
|
131291
131297
|
}, null);
|
|
131292
131298
|
}
|
|
131293
131299
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC: {
|
|
131294
|
-
const
|
|
131295
|
-
if (
|
|
131296
|
-
const
|
|
131300
|
+
const ia = displayTypeProperties.value;
|
|
131301
|
+
if (ia.isTag) {
|
|
131302
|
+
const la = (U = ia.tagColors) == null ? void 0 : U.find((sa) => sa.value === value$$.value);
|
|
131297
131303
|
return isNil$1(text$$.value) || !String(text$$.value).trim() ? renderText() : createVNode(Tag$3, {
|
|
131298
|
-
color: (
|
|
131304
|
+
color: (ae = la == null ? void 0 : la.color) != null ? ae : "default"
|
|
131299
131305
|
}, {
|
|
131300
131306
|
default: () => [text$$.value]
|
|
131301
131307
|
});
|
|
@@ -131303,11 +131309,11 @@ const getProps$C = () => ({
|
|
|
131303
131309
|
return renderText();
|
|
131304
131310
|
}
|
|
131305
131311
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC__UPDATE_LINK: {
|
|
131306
|
-
const
|
|
131307
|
-
if (
|
|
131308
|
-
const
|
|
131312
|
+
const ia = displayTypeProperties.value;
|
|
131313
|
+
if (ia.isTag) {
|
|
131314
|
+
const la = (ie = ia.tagColors) == null ? void 0 : ie.find((sa) => sa.value === value$$.value);
|
|
131309
131315
|
return isNil$1(text$$.value) || !String(text$$.value).trim() ? renderText() : createVNode(Tag$3, {
|
|
131310
|
-
color: (
|
|
131316
|
+
color: (ue = la == null ? void 0 : la.color) != null ? ue : "default"
|
|
131311
131317
|
}, {
|
|
131312
131318
|
default: () => [text$$.value]
|
|
131313
131319
|
});
|
|
@@ -131325,15 +131331,15 @@ const getProps$C = () => ({
|
|
|
131325
131331
|
break;
|
|
131326
131332
|
}
|
|
131327
131333
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.PROGRESS: {
|
|
131328
|
-
const
|
|
131334
|
+
const ia = displayTypeProperties.value, la = Number((na = (ea = props.row) == null ? void 0 : ea[ia.leftColumn]) != null ? na : 0);
|
|
131329
131335
|
switch (props.kgContext) {
|
|
131330
131336
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
|
131331
|
-
return
|
|
131337
|
+
return la;
|
|
131332
131338
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
|
131333
131339
|
return createVNode(KgProgressA, {
|
|
131334
|
-
kgTextWidth:
|
|
131335
|
-
kgLeft:
|
|
131336
|
-
kgRight: Number((
|
|
131340
|
+
kgTextWidth: ia.textWidth,
|
|
131341
|
+
kgLeft: la,
|
|
131342
|
+
kgRight: Number((ra = props.row) == null ? void 0 : ra[ia.rightColumn])
|
|
131337
131343
|
}, null);
|
|
131338
131344
|
}
|
|
131339
131345
|
break;
|
|
@@ -131367,17 +131373,17 @@ const getProps$C = () => ({
|
|
|
131367
131373
|
break;
|
|
131368
131374
|
}
|
|
131369
131375
|
case KG__VAR_GRID_DETAIL__DISPLAY_TYPE.IMAGE: {
|
|
131370
|
-
const
|
|
131376
|
+
const ia = displayTypeProperties.value, la = (aa = ia.width) != null ? aa : 29, sa = (oa = ia.height) != null ? oa : 29;
|
|
131371
131377
|
switch (props.kgContext) {
|
|
131372
131378
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
|
131373
131379
|
return value$$.value;
|
|
131374
131380
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
|
131375
131381
|
return createVNode(KgImage, {
|
|
131376
131382
|
src: value$$.value,
|
|
131377
|
-
width:
|
|
131378
|
-
height:
|
|
131379
|
-
onClick: (
|
|
131380
|
-
|
|
131383
|
+
width: la,
|
|
131384
|
+
height: sa,
|
|
131385
|
+
onClick: (ua) => {
|
|
131386
|
+
ua.preventDefault(), ua.stopPropagation();
|
|
131381
131387
|
}
|
|
131382
131388
|
}, null);
|
|
131383
131389
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.21-beta.0",
|
|
4
4
|
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "24.14.1",
|