@gct-paas/render-web 0.1.6-dev.4 → 0.1.6-dev.40

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.
Files changed (140) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/loader.esm.min.js +2 -1
  3. package/es/Event/Events.d.ts +1 -0
  4. package/es/Event/Events.mjs +7 -3
  5. package/es/_virtual/_rolldown/runtime.mjs +13 -0
  6. package/es/components/card-view-render/card-view-render.css +71 -0
  7. package/es/components/card-view-render/card-view-render.d.ts +38 -0
  8. package/es/components/card-view-render/card-view-render.mjs +84 -0
  9. package/es/components/collapse-detail/components/collapse-list.vue.d.ts +24 -0
  10. package/es/components/collapse-detail/components/collapse-list.vue.mjs +5 -0
  11. package/es/components/collapse-detail/components/collapse-list.vue_vue_type_script_setup_true_lang.mjs +103 -0
  12. package/es/components/collapse-detail/components/enum-tag-label.vue.d.ts +6 -0
  13. package/es/components/collapse-detail/components/enum-tag-label.vue.mjs +5 -0
  14. package/es/components/collapse-detail/components/enum-tag-label.vue_vue_type_script_setup_true_lang.mjs +61 -0
  15. package/es/components/collapse-detail/components/instance-status-label.vue.d.ts +34 -0
  16. package/es/components/collapse-detail/components/instance-status-label.vue.mjs +7 -0
  17. package/es/components/collapse-detail/components/instance-status-label.vue_vue_type_script_setup_true_lang.mjs +76 -0
  18. package/es/components/collapse-detail/components/instance-status-label.vue_vue_type_style_index_0_scoped_610b0bb3_lang.css +77 -0
  19. package/es/components/collapse-detail/components/label-tag.vue.d.ts +6 -0
  20. package/es/components/collapse-detail/components/label-tag.vue.mjs +7 -0
  21. package/es/components/collapse-detail/components/label-tag.vue_vue_type_script_setup_true_lang.mjs +34 -0
  22. package/es/components/collapse-detail/components/label-tag.vue_vue_type_style_index_0_scoped_b25afce5_lang.css +39 -0
  23. package/es/components/collapse-detail/constants/instance-theme-config.d.ts +64 -0
  24. package/es/components/collapse-detail/constants/instance-theme-config.mjs +100 -0
  25. package/es/components/collapse-detail/constants/status.d.ts +36 -0
  26. package/es/components/collapse-detail/constants/status.mjs +34 -0
  27. package/es/components/collapse-detail/index.d.ts +3 -0
  28. package/es/components/collapse-detail/index.mjs +1 -0
  29. package/es/components/collapse-detail/index.vue.d.ts +37 -0
  30. package/es/components/collapse-detail/index.vue.mjs +7 -0
  31. package/es/components/collapse-detail/index.vue_vue_type_script_setup_true_name_collapse-detail_lang.mjs +90 -0
  32. package/es/components/collapse-detail/index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css +83 -0
  33. package/es/components/collapse-detail/typing.d.ts +44 -0
  34. package/es/components/collapse-detail/typing.mjs +17 -0
  35. package/es/components/field-search-cascader/field-cascader.vue.d.ts +17 -0
  36. package/es/components/field-search-cascader/field-cascader.vue.mjs +8 -0
  37. package/es/components/field-search-cascader/field-cascader.vue_vue_type_script_setup_true_lang.mjs +297 -0
  38. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_0_scoped_cb5e4d67_lang.css +52 -0
  39. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_1_lang.css +3 -0
  40. package/es/components/field-search-cascader/index.d.ts +2 -0
  41. package/es/components/field-search-cascader/index.mjs +1 -0
  42. package/es/components/form-component/FieldSelect.css +22 -0
  43. package/es/components/form-component/FieldSelect.d.ts +9 -0
  44. package/es/components/form-component/FieldSelect.mjs +19 -8
  45. package/es/components/form-component/field-label/ref-card-label-render.vue_vue_type_script_setup_true_lang.mjs +2 -1
  46. package/es/components/form-component/field-label/tag-label.vue.d.ts +1 -0
  47. package/es/components/form-component/field-label/tag-label.vue.mjs +2 -2
  48. package/es/components/form-component/field-label/tag-label.vue_vue_type_script_setup_true_name_TagLabel_lang.mjs +15 -13
  49. package/es/components/form-component/field-label/tag-label.vue_vue_type_style_index_0_scoped_5e1146da_lang.css +18 -0
  50. package/es/components/form-component/field-label/tag-span.vue.mjs +1 -1
  51. package/es/components/form-component/field-readonly.vue_vue_type_script_setup_true_lang.mjs +26 -44
  52. package/es/components/index.d.ts +7 -0
  53. package/es/components/index.mjs +9 -0
  54. package/es/components/layouts/basic-page/basic-page.vue.d.ts +30 -0
  55. package/es/components/layouts/basic-page/basic-page.vue.mjs +7 -0
  56. package/es/components/layouts/basic-page/basic-page.vue_vue_type_script_setup_true_name_basic-page_lang.mjs +30 -0
  57. package/es/components/layouts/basic-page/basic-page.vue_vue_type_style_index_0_scoped_23453a1b_lang.css +20 -0
  58. package/es/components/layouts/basic-page-render/basic-page-render.vue.d.ts +30 -0
  59. package/es/components/layouts/basic-page-render/basic-page-render.vue.mjs +7 -0
  60. package/es/components/layouts/basic-page-render/basic-page-render.vue_vue_type_script_setup_true_name_BasicPageRender_lang.mjs +30 -0
  61. package/es/components/layouts/basic-page-render/basic-page-render.vue_vue_type_style_index_0_scoped_3c6aba55_lang.css +20 -0
  62. package/es/components/multi-field/multi-field-display.vue.mjs +2 -2
  63. package/es/components/multi-field/multi-field-display.vue_vue_type_script_setup_true_lang.mjs +1 -1
  64. package/es/components/multi-field/{multi-field-display.vue_vue_type_style_index_0_scoped_0f2f02cc_lang.css → multi-field-display.vue_vue_type_style_index_0_scoped_a62c7691_lang.css} +1 -1
  65. package/es/components/rich-editor/index.d.ts +2 -0
  66. package/es/components/rich-editor/index.mjs +1 -0
  67. package/es/components/rich-editor/rich-editor.vue.d.ts +22 -0
  68. package/es/components/rich-editor/rich-editor.vue.mjs +5 -0
  69. package/es/components/rich-editor/rich-editor.vue_vue_type_script_setup_true_lang.mjs +150 -0
  70. package/es/components/rich-editor/style.css +747 -0
  71. package/es/constants/xlsx-parser.d.ts +15 -0
  72. package/es/constants/xlsx-parser.mjs +58 -0
  73. package/es/enums/xlsx-parser.d.ts +293 -0
  74. package/es/enums/xlsx-parser.mjs +36 -0
  75. package/es/hooks/index.d.ts +1 -0
  76. package/es/hooks/index.mjs +1 -0
  77. package/es/hooks/refCardList.mjs +6 -6
  78. package/es/hooks/useQuickSearch.d.ts +8 -0
  79. package/es/hooks/useQuickSearch.mjs +96 -0
  80. package/es/index.d.ts +3 -0
  81. package/es/index.mjs +13 -1
  82. package/es/interface/xlsx-parser/base.d.ts +151 -0
  83. package/es/interface/xlsx-parser/index.d.ts +246 -0
  84. package/es/locale/auto-register.d.ts +2 -0
  85. package/es/locale/auto-register.mjs +31 -0
  86. package/es/locale/sys/appDesigner.d.ts +11 -0
  87. package/es/locale/sys/appDesigner.mjs +11 -0
  88. package/es/locale/sys/bi.d.ts +4 -0
  89. package/es/locale/sys/bi.mjs +6 -0
  90. package/es/locale/sys/bpmn.d.ts +10 -0
  91. package/es/locale/sys/bpmn.mjs +12 -0
  92. package/es/locale/sys/component.d.ts +15 -0
  93. package/es/locale/sys/component.mjs +15 -0
  94. package/es/locale/sys/developer.d.ts +6 -0
  95. package/es/locale/sys/developer.mjs +6 -0
  96. package/es/locale/sys/edhr.d.ts +19 -0
  97. package/es/locale/sys/edhr.mjs +15 -0
  98. package/es/locale/sys/message.d.ts +4 -0
  99. package/es/locale/sys/message.mjs +6 -0
  100. package/es/locale/sys/model.d.ts +34 -0
  101. package/es/locale/sys/model.mjs +38 -0
  102. package/es/locale/sys/onlineForm.d.ts +8 -0
  103. package/es/locale/sys/onlineForm.mjs +12 -0
  104. package/es/locale/sys/pageDesigner.d.ts +7 -0
  105. package/es/locale/sys/pageDesigner.mjs +9 -0
  106. package/es/locale/sys.d.ts +10 -0
  107. package/es/locale/sys.mjs +14 -0
  108. package/es/modules/app-mqtt/app-mqtt.interface.d.ts +26 -0
  109. package/es/modules/app-mqtt/app-mqtt.service.d.ts +73 -0
  110. package/es/modules/app-mqtt/app-mqtt.service.mjs +134 -0
  111. package/es/modules/app-mqtt/index.d.ts +2 -0
  112. package/es/modules/app-mqtt/index.mjs +1 -0
  113. package/es/plugins/render-card-field/render-card-field.css +171 -0
  114. package/es/plugins/render-card-field/render-card-field.d.ts +48 -0
  115. package/es/plugins/render-card-field/render-card-field.mjs +157 -0
  116. package/es/plugins/render-card-field/render-card-field.provider.d.ts +7 -0
  117. package/es/plugins/render-card-field/render-card-field.provider.mjs +10 -0
  118. package/es/plugins/render-card-view-page/render-card-view-page.css +72 -0
  119. package/es/plugins/render-card-view-page/render-card-view-page.d.ts +33 -0
  120. package/es/plugins/render-card-view-page/render-card-view-page.mjs +61 -0
  121. package/es/plugins/render-card-view-page/render-card-view-page.provider.d.ts +7 -0
  122. package/es/plugins/render-card-view-page/render-card-view-page.provider.mjs +10 -0
  123. package/es/plugins/render-design-editor/index.d.ts +5 -0
  124. package/es/plugins/render-design-editor/upload-file/index.d.ts +4 -0
  125. package/es/plugins/render-design-editor/upload-file/upload-file.d.ts +51 -0
  126. package/es/plugins/render-design-editor/upload-image/index.d.ts +4 -0
  127. package/es/plugins/render-design-editor/upload-image/upload-image.d.ts +51 -0
  128. package/es/plugins/render-design-editor/user-signature/index.d.ts +4 -0
  129. package/es/plugins/render-design-editor/user-signature/user-signature.d.ts +51 -0
  130. package/es/setup-app.d.ts +2 -0
  131. package/es/setup-app.mjs +22 -0
  132. package/es/types/shims-modules.d.ts +11 -0
  133. package/es/utils/cell-border.d.ts +73 -0
  134. package/es/utils/cell-border.mjs +203 -0
  135. package/es/utils/index.d.ts +1 -0
  136. package/es/utils/index.mjs +1 -0
  137. package/es/utils/xlsx-parser.d.ts +141 -0
  138. package/es/utils/xlsx-parser.mjs +262 -0
  139. package/package.json +22 -12
  140. package/es/components/form-component/field-label/tag-label.vue_vue_type_style_index_0_scoped_6c507fe8_lang.css +0 -15
@@ -0,0 +1,103 @@
1
+ import instance_status_label_default from "./instance-status-label.vue.mjs";
2
+ import label_tag_default from "./label-tag.vue.mjs";
3
+ import enum_tag_label_default from "./enum-tag-label.vue.mjs";
4
+ import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderList, renderSlot, resolveComponent, toDisplayString, unref, withCtx } from "vue";
5
+ import { CopyModuleKey } from "@gct-paas/core-web";
6
+ //#region src/components/collapse-detail/components/collapse-list.vue?vue&type=script&setup=true&lang.ts
7
+ var _hoisted_1 = ["title"];
8
+ var _hoisted_2 = ["title"];
9
+ var collapse_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
10
+ __name: "collapse-list",
11
+ props: {
12
+ descData: {},
13
+ isHead: { type: Boolean },
14
+ column: {}
15
+ },
16
+ setup(__props) {
17
+ const getSpan = (span = 1) => {
18
+ if (span > 3) return 3;
19
+ return span;
20
+ };
21
+ const ellipsisStyle = (item) => {
22
+ if (!item.ellipsis) return {};
23
+ return {
24
+ overflow: "hidden",
25
+ textOverflow: "ellipsis",
26
+ whiteSpace: "nowrap",
27
+ display: "inline-block"
28
+ };
29
+ };
30
+ return (_ctx, _cache) => {
31
+ const _component_a_tag = resolveComponent("a-tag");
32
+ const _component_a_descriptions_item = resolveComponent("a-descriptions-item");
33
+ const _component_a_descriptions = resolveComponent("a-descriptions");
34
+ return openBlock(), createBlock(_component_a_descriptions, {
35
+ class: normalizeClass(__props.isHead ? "item" : "desc-area"),
36
+ column: __props.column || 3
37
+ }, {
38
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.descData, (item, _index) => {
39
+ return openBlock(), createBlock(_component_a_descriptions_item, {
40
+ key: _index,
41
+ label: item.label,
42
+ span: getSpan(item.span),
43
+ "content-style": ellipsisStyle(item)
44
+ }, {
45
+ default: withCtx(() => [item.useSlot && item.slotName && _ctx.$slots[item.slotName] ? renderSlot(_ctx.$slots, item.slotName, {
46
+ key: 0,
47
+ item,
48
+ slotData: item.slotData
49
+ }) : item.render ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
50
+ item.render === "link_render" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [item.name ? (openBlock(), createElementBlock("span", {
51
+ key: 0,
52
+ title: item.name
53
+ }, toDisplayString(item.name), 9, _hoisted_1)) : (openBlock(), createBlock(_component_a_tag, {
54
+ key: 1,
55
+ color: "error"
56
+ }, {
57
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.noAssociation")), 1)]),
58
+ _: 1
59
+ }))], 64)) : createCommentVNode("", true),
60
+ item.render === "status_render" ? (openBlock(), createBlock(instance_status_label_default, {
61
+ key: 1,
62
+ "instance-status": item.name
63
+ }, null, 8, ["instance-status"])) : createCommentVNode("", true),
64
+ item.render === "change_status_render" ? (openBlock(), createBlock(enum_tag_label_default, {
65
+ key: 2,
66
+ value: item.name,
67
+ model: item.model
68
+ }, null, 8, ["value", "model"])) : createCommentVNode("", true),
69
+ item.render === "label_tag_render" ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(item.tagList, (tag, i) => {
70
+ return openBlock(), createBlock(label_tag_default, {
71
+ key: i,
72
+ data: tag
73
+ }, null, 8, ["data"]);
74
+ }), 128)) : createCommentVNode("", true)
75
+ ], 64)) : item.isCopy ? (openBlock(), createBlock(unref(CopyModuleKey), {
76
+ key: 2,
77
+ "module-key": item.key
78
+ }, null, 8, ["module-key"])) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [createElementVNode("span", {
79
+ title: item.name,
80
+ class: normalizeClass({ "mr-4px": item.hasTag })
81
+ }, toDisplayString(item.name), 11, _hoisted_2), item.hasTag ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item.tagList, (tag) => {
82
+ return openBlock(), createBlock(_component_a_tag, {
83
+ key: tag.key,
84
+ color: tag?.color
85
+ }, {
86
+ default: withCtx(() => [createTextVNode(toDisplayString(tag.name), 1)]),
87
+ _: 2
88
+ }, 1032, ["color"]);
89
+ }), 128)) : createCommentVNode("", true)], 64))]),
90
+ _: 2
91
+ }, 1032, [
92
+ "label",
93
+ "span",
94
+ "content-style"
95
+ ]);
96
+ }), 128))]),
97
+ _: 3
98
+ }, 8, ["class", "column"]);
99
+ };
100
+ }
101
+ });
102
+ //#endregion
103
+ export { collapse_list_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,6 @@
1
+ type __VLS_Props = {
2
+ model: string;
3
+ value: string;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import enum_tag_label_vue_vue_type_script_setup_true_lang_default from "./enum-tag-label.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region src/components/collapse-detail/components/enum-tag-label.vue
3
+ var enum_tag_label_default = enum_tag_label_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { enum_tag_label_default as default };
@@ -0,0 +1,61 @@
1
+ import tag_label_default from "../../form-component/field-label/tag-label.vue.mjs";
2
+ import "../../form-component/index.mjs";
3
+ import { createBlock, defineComponent, openBlock, ref, unref, watch } from "vue";
4
+ import { FIELD_TYPE, gctMemoizeAsync } from "@gct-paas/core";
5
+ import { pick } from "lodash-es";
6
+ //#region src/components/collapse-detail/components/enum-tag-label.vue?vue&type=script&setup=true&lang.ts
7
+ var enum_tag_label_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
8
+ __name: "enum-tag-label",
9
+ props: {
10
+ model: {},
11
+ value: {}
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const enumInfo = ref({});
16
+ const iconProps = ref();
17
+ const iconExtraProps = ref();
18
+ const loadData = gctMemoizeAsync(getEnumConfig);
19
+ watch(() => props.model, async () => {
20
+ if (!props.model) return;
21
+ const { list, tagProps } = await loadData({ id: props.model });
22
+ enumInfo.value = list.find((e) => e.value === props.value);
23
+ iconExtraProps.value = tagProps;
24
+ }, { immediate: true });
25
+ async function getEnumConfig({ id }) {
26
+ return await getEnumData(await _api.apaas.enumModel.getInfoId({ id }) || {});
27
+ }
28
+ async function getEnumData({ iconState, textState }) {
29
+ const res = await _api.apaas.enumModelField.getPageList({
30
+ enumModelId: props.model,
31
+ enumModelKey: props.model
32
+ });
33
+ const keys = iconState ? ["icon", "iconColor"] : [];
34
+ if (textState) keys.push("textColor");
35
+ return {
36
+ list: res?.data || [],
37
+ tagProps: res?.data?.reduce((map, e) => {
38
+ map[e.text] = pick(e, keys);
39
+ return map;
40
+ }, {})
41
+ };
42
+ }
43
+ return (_ctx, _cache) => {
44
+ return openBlock(), createBlock(unref(tag_label_default), {
45
+ type: unref(FIELD_TYPE).ENUM,
46
+ label: enumInfo.value.text,
47
+ "tag-widget-style": { tagStyleOpen: true },
48
+ "is-design": false,
49
+ "icon-extra-props": iconExtraProps.value,
50
+ "icon-props": iconProps.value
51
+ }, null, 8, [
52
+ "type",
53
+ "label",
54
+ "icon-extra-props",
55
+ "icon-props"
56
+ ]);
57
+ };
58
+ }
59
+ });
60
+ //#endregion
61
+ export { enum_tag_label_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,34 @@
1
+ import { InstanceStatusValue } from '../constants/status';
2
+ import { FormTypeEnum } from '../typing';
3
+ type __VLS_Props = {
4
+ formType?: FormTypeEnum;
5
+ dataStatus?: string;
6
+ instanceStatus: InstanceStatusValue;
7
+ statusType?: string;
8
+ useDynamicColor?: boolean;
9
+ showIcon?: boolean;
10
+ needCustomClass?: boolean;
11
+ isFormSummary?: boolean;
12
+ };
13
+ declare function __VLS_template(): {
14
+ attrs: Partial<{}>;
15
+ slots: {
16
+ instanceTitle?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
+ useDynamicColor: boolean;
24
+ showIcon: boolean;
25
+ needCustomClass: boolean;
26
+ isFormSummary: boolean;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import instance_status_label_vue_vue_type_script_setup_true_lang_default from "./instance-status-label.vue_vue_type_script_setup_true_lang.mjs";
3
+ import './instance-status-label.vue_vue_type_style_index_0_scoped_610b0bb3_lang.css';/* empty css */
4
+ //#region src/components/collapse-detail/components/instance-status-label.vue
5
+ var instance_status_label_default = /* @__PURE__ */ _plugin_vue_export_helper_default(instance_status_label_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-610b0bb3"]]);
6
+ //#endregion
7
+ export { instance_status_label_default as default };
@@ -0,0 +1,76 @@
1
+ import { useInstanceThemeConfig } from "../constants/instance-theme-config.mjs";
2
+ import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, toDisplayString } from "vue";
3
+ import { t } from "@gct-paas/core";
4
+ //#region src/components/collapse-detail/components/instance-status-label.vue?vue&type=script&setup=true&lang.ts
5
+ var _hoisted_1 = {
6
+ key: 0,
7
+ class: "instance-status-icon"
8
+ };
9
+ var instance_status_label_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
10
+ __name: "instance-status-label",
11
+ props: {
12
+ formType: {},
13
+ dataStatus: {},
14
+ instanceStatus: {},
15
+ statusType: {},
16
+ useDynamicColor: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ showIcon: {
21
+ type: Boolean,
22
+ default: false
23
+ },
24
+ needCustomClass: {
25
+ type: Boolean,
26
+ default: false
27
+ },
28
+ isFormSummary: {
29
+ type: Boolean,
30
+ default: false
31
+ }
32
+ },
33
+ setup(__props) {
34
+ const props = __props;
35
+ const themeConfig = computed(() => {
36
+ const base = "instance-status-label";
37
+ if (props.useDynamicColor) {
38
+ const config = useInstanceThemeConfig({
39
+ formType: props.formType,
40
+ dataStatus: props.dataStatus,
41
+ instanceStatus: props.instanceStatus,
42
+ statusType: props.statusType,
43
+ isFormSummary: props.isFormSummary
44
+ });
45
+ return {
46
+ baseClass: [base, `${base}--dynamic`],
47
+ ...config
48
+ };
49
+ }
50
+ return {
51
+ placeholder: props.instanceStatus ? t(`sys.edhr.instanceStatus2FormEnum.${props.instanceStatus}`) : "",
52
+ baseClass: [
53
+ base,
54
+ `${base}--static`,
55
+ `${base}--${props.instanceStatus}`
56
+ ]
57
+ };
58
+ });
59
+ return (_ctx, _cache) => {
60
+ return openBlock(), createElementBlock("div", {
61
+ class: normalizeClass(["instance-status-wrapper", themeConfig.value.baseClass]),
62
+ style: normalizeStyle({
63
+ "--nocode-iconBgColor": themeConfig.value?.iconBackground,
64
+ "--nocode-textColor": themeConfig.value?.textColor,
65
+ "--nocode-bgColor": themeConfig.value?.background
66
+ })
67
+ }, [
68
+ __props.showIcon ? (openBlock(), createElementBlock("span", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("i", { class: "iconfont icon-a-biaodan2" }, null, -1)])])) : createCommentVNode("", true),
69
+ renderSlot(_ctx.$slots, "instanceTitle", {}, void 0, true),
70
+ createElementVNode("span", { class: normalizeClass(["instance-title", __props.needCustomClass ? "is-custom-class" : ""]) }, toDisplayString(themeConfig.value?.placeholder), 3)
71
+ ], 6);
72
+ };
73
+ }
74
+ });
75
+ //#endregion
76
+ export { instance_status_label_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,77 @@
1
+ .instance-status-wrapper[data-v-610b0bb3] {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: flex-start;
5
+ overflow: hidden;
6
+ }
7
+ .instance-status-wrapper.instance-status-label--UNFILLED[data-v-610b0bb3],
8
+ .instance-status-wrapper.instance-status-label--UNRELEASED[data-v-610b0bb3] {
9
+ --color: #de5e5f;
10
+ }
11
+ .instance-status-wrapper.instance-status-label--RUNNING[data-v-610b0bb3],
12
+ .instance-status-wrapper.instance-status-label--running[data-v-610b0bb3],
13
+ .instance-status-wrapper.instance-status-label--RELEASE[data-v-610b0bb3] {
14
+ --color: #026ac8;
15
+ }
16
+ .instance-status-wrapper.instance-status-label--COMPLETED[data-v-610b0bb3],
17
+ .instance-status-wrapper.instance-status-label--finished[data-v-610b0bb3] {
18
+ --color: #309c41;
19
+ }
20
+ .instance-status-wrapper.instance-status-label--ARCHIVED[data-v-610b0bb3],
21
+ .instance-status-wrapper.instance-status-label--IN_AUDIT[data-v-610b0bb3] {
22
+ --color: #dda200;
23
+ }
24
+ .instance-status-wrapper.instance-status-label--EXCEPTION[data-v-610b0bb3] {
25
+ --color: var(--ant-warning-color);
26
+ }
27
+ .instance-status-wrapper.instance-status-label--IN_SUMMARY[data-v-610b0bb3] {
28
+ --color: #ff9442;
29
+ }
30
+ .instance-status-wrapper.instance-status-label--SUMMARIZED[data-v-610b0bb3] {
31
+ --color: #aa78ff;
32
+ }
33
+ .instance-status-wrapper.instance-status-label--static .instance-title[data-v-610b0bb3] {
34
+ color: var(--color, #606266);
35
+ padding: 0;
36
+ }
37
+ .instance-status-wrapper .icon-dot[data-v-610b0bb3] {
38
+ width: 4px;
39
+ height: 4px;
40
+ margin-right: 4px;
41
+ border-radius: 50%;
42
+ background-color: var(--color, transparent);
43
+ }
44
+ .instance-status-wrapper .instance-status-icon[data-v-610b0bb3] {
45
+ display: flex;
46
+ align-items: center;
47
+ height: 32px;
48
+ width: 32px;
49
+ justify-content: center;
50
+ color: #fff;
51
+ background: var(--nocode-iconBgColor);
52
+ border-radius: 2px;
53
+ }
54
+ .instance-status-wrapper .instance-status-icon .iconfont[data-v-610b0bb3] {
55
+ font-size: 18px;
56
+ }
57
+ .instance-status-wrapper .instance-title[data-v-610b0bb3] {
58
+ display: inline-block;
59
+ line-height: 22px;
60
+ font-size: 14px;
61
+ color: var(--nocode-textColor);
62
+ background: var(--nocode-bgColor);
63
+ border-radius: 4px;
64
+ padding: 0 6px;
65
+ }
66
+ .instance-status-wrapper .instance-title.is-custom-class[data-v-610b0bb3] {
67
+ position: absolute;
68
+ top: 0;
69
+ right: 0;
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ height: 18px;
74
+ font-size: 12px;
75
+ line-height: 18px;
76
+ border-radius: 0 0 4px 4px;
77
+ }
@@ -0,0 +1,6 @@
1
+ import { LabelTagItem } from '../typing';
2
+ type __VLS_Props = {
3
+ data: LabelTagItem;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import label_tag_vue_vue_type_script_setup_true_lang_default from "./label-tag.vue_vue_type_script_setup_true_lang.mjs";
3
+ import './label-tag.vue_vue_type_style_index_0_scoped_b25afce5_lang.css';/* empty css */
4
+ //#region src/components/collapse-detail/components/label-tag.vue
5
+ var label_tag_default = /* @__PURE__ */ _plugin_vue_export_helper_default(label_tag_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-b25afce5"]]);
6
+ //#endregion
7
+ export { label_tag_default as default };
@@ -0,0 +1,34 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, toDisplayString, toRef, useCssVars } from "vue";
2
+ import { TagTypeEnum } from "@gct-paas/core";
3
+ //#region src/components/collapse-detail/components/label-tag.vue?vue&type=script&setup=true&lang.ts
4
+ var label_tag_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
5
+ __name: "label-tag",
6
+ props: { data: {} },
7
+ setup(__props) {
8
+ useCssVars((_ctx) => ({ "v218ac50d": tagStyleColor.value }));
9
+ const props = __props;
10
+ const showLabel = toRef(() => {
11
+ return props.data.label + "";
12
+ });
13
+ const tagType = toRef(() => {
14
+ return props.data.labelStyle || TagTypeEnum.RADIUS;
15
+ });
16
+ const tagStyleColor = toRef(() => {
17
+ return props.data.labelColor || "#026ac8";
18
+ });
19
+ const getTagClass = toRef(() => {
20
+ return `tag-${tagType.value}`;
21
+ });
22
+ const msgColor = toRef(() => {
23
+ return { color: props.data.valueColor || "#fff" };
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock("span", { class: normalizeClass(["tag label-ellipsis", getTagClass.value]) }, [createElementVNode("span", {
27
+ class: "select-text",
28
+ style: normalizeStyle(msgColor.value)
29
+ }, toDisplayString(showLabel.value || "\xA0"), 5)], 2);
30
+ };
31
+ }
32
+ });
33
+ //#endregion
34
+ export { label_tag_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,39 @@
1
+ .label-ellipsis[data-v-b25afce5] {
2
+ display: inline-block;
3
+ max-width: 100%;
4
+ overflow: hidden;
5
+ text-overflow: ellipsis;
6
+ white-space: nowrap;
7
+ vertical-align: middle;
8
+ }
9
+ .tag[data-v-b25afce5] {
10
+ padding: 4px 6px;
11
+ line-height: 1;
12
+ }
13
+ .tag + .tag[data-v-b25afce5] {
14
+ margin-left: 5px;
15
+ }
16
+ .tag-radius[data-v-b25afce5] {
17
+ border-radius: 2px;
18
+ background: var(--v218ac50d);
19
+ }
20
+ .tag-linear_radius[data-v-b25afce5] {
21
+ border: 1px solid var(--v218ac50d);
22
+ border-radius: 2px;
23
+ }
24
+ .tag-big_radius[data-v-b25afce5] {
25
+ border-radius: 100px;
26
+ background: var(--v218ac50d);
27
+ }
28
+ .tag-linear_big_radius[data-v-b25afce5] {
29
+ border: 1px solid var(--v218ac50d);
30
+ border-radius: 100px;
31
+ }
32
+ .tag-dashed_radius[data-v-b25afce5] {
33
+ border: 1px dashed var(--v218ac50d);
34
+ border-radius: 2px;
35
+ }
36
+ .tag-status[data-v-b25afce5] {
37
+ border-radius: 10px 2px 2px;
38
+ background: var(--v218ac50d);
39
+ }
@@ -0,0 +1,64 @@
1
+ import { FormTypeEnum } from '../typing';
2
+ import { InstanceStatusValue } from './status';
3
+ export declare const useInstanceThemeConfig: ({ formType, dataStatus, instanceStatus, statusType, isFormSummary, }: {
4
+ formType: FormTypeEnum;
5
+ dataStatus: string;
6
+ instanceStatus: InstanceStatusValue;
7
+ statusType?: string;
8
+ isFormSummary?: boolean;
9
+ }) => {
10
+ textColor: string;
11
+ background: string;
12
+ iconBackground: string;
13
+ placeholder: string;
14
+ } | {
15
+ textColor: string;
16
+ background: string;
17
+ iconBackground: string;
18
+ placeholder: string;
19
+ } | {
20
+ textColor: string;
21
+ background: string;
22
+ iconBackground: string;
23
+ placeholder: string;
24
+ } | {
25
+ textColor: string;
26
+ background: string;
27
+ iconBackground: string;
28
+ placeholder: string;
29
+ } | {
30
+ textColor: string;
31
+ background: string;
32
+ iconBackground: string;
33
+ placeholder: string;
34
+ } | {
35
+ textColor: string;
36
+ background: string;
37
+ iconBackground: string;
38
+ placeholder: string;
39
+ } | {
40
+ textColor: string;
41
+ background: string;
42
+ iconBackground: string;
43
+ placeholder: string;
44
+ } | {
45
+ textColor: string;
46
+ background: string;
47
+ iconBackground: string;
48
+ placeholder: string;
49
+ } | {
50
+ textColor: string;
51
+ background: string;
52
+ iconBackground: string;
53
+ placeholder: string;
54
+ } | {
55
+ textColor: string;
56
+ background: string;
57
+ iconBackground: string;
58
+ placeholder: string;
59
+ } | {
60
+ textColor: string;
61
+ background: string;
62
+ iconBackground: string;
63
+ placeholder: string;
64
+ };
@@ -0,0 +1,100 @@
1
+ import { FormTypeEnum } from "../typing.mjs";
2
+ import { InstanceStatusValues } from "./status.mjs";
3
+ import { t } from "@gct-paas/core";
4
+ //#region src/components/collapse-detail/constants/instance-theme-config.ts
5
+ var commonUtils = { get gctInstanceStatusTheme() {
6
+ return {
7
+ "gct-nocode-instance-status--stash": {
8
+ textColor: "#F77E4A",
9
+ background: "rgba(247,126,74,0.1)",
10
+ iconBackground: "#FFC837",
11
+ placeholder: t("sys.edhr.formInsStatusEnum.STASH")
12
+ },
13
+ "gct-nocode-instance-status--partial-submit": {
14
+ textColor: "#FFAA00",
15
+ background: "rgba(255,170,0,0.1)",
16
+ iconBackground: "#FFD666",
17
+ placeholder: t("sys.appDesigner.approval.button.PartialSubmit")
18
+ },
19
+ "gct-nocode-instance-status--finish": {
20
+ textColor: "#309C41",
21
+ background: "rgba(48,156,65,0.1)",
22
+ iconBackground: "#76DA57",
23
+ placeholder: t("sys.bpmn.flowNodeInstStatus.COMPLETED")
24
+ },
25
+ "gct-nocode-instance-status--abnormal": {
26
+ textColor: "#F54547",
27
+ background: " rgba(245,69,71,0.1)",
28
+ iconBackground: "#FF6776",
29
+ placeholder: t("sys.bpmn.flowNodeInstStatus.EXCEPTION")
30
+ },
31
+ "gct-nocode-instance-status--not-filled": {
32
+ textColor: "#6D82B0",
33
+ background: "#E6EEFF",
34
+ iconBackground: "#B4C8F4",
35
+ placeholder: t("sys.edhr.instanceStatus2DhrEnum.UNFILLED")
36
+ },
37
+ "gct-nocode-instance-status--running": {
38
+ textColor: "#13C2C2",
39
+ background: "rgba(19,194,194,0.1)",
40
+ iconBackground: "#13C2C2",
41
+ placeholder: t("sys.bpmn.bizNodeInstStatus.running")
42
+ },
43
+ "gct-nocode-instance-status--already-filled": {
44
+ textColor: "#026AC8",
45
+ background: " rgba(2,106,200,0.1)",
46
+ iconBackground: "#026AC8",
47
+ placeholder: t("sys.edhr.instanceStatus2DhrEnum.FILLED")
48
+ },
49
+ "gct-nocode-instance-status--invalid": {
50
+ textColor: "#737A87",
51
+ background: "#E5E5E5",
52
+ iconBackground: "#C3C3C3",
53
+ placeholder: t("sys.edhr.dhrLogType.ABANDON")
54
+ },
55
+ "gct-nocode-instance-status--archived": {
56
+ textColor: "#dda200",
57
+ background: "#faf3df",
58
+ iconBackground: "#dda200",
59
+ placeholder: t("sys.edhr.recordBook.archived")
60
+ },
61
+ "gct-nocode-instance-status--tmpl": {
62
+ textColor: "#742fb2",
63
+ background: "#f9f2ff",
64
+ iconBackground: "#742fb2",
65
+ placeholder: t("sys.appDesigner.template")
66
+ },
67
+ "gct-nocode-instance-status--in-audit": {
68
+ textColor: "#FF52C5",
69
+ background: "rgba(255,82,197, 0.1)",
70
+ iconBackground: "#FF52C5",
71
+ placeholder: t("sys.edhr.instanceStatus2FormEnum.IN_AUDIT")
72
+ }
73
+ };
74
+ } };
75
+ var useInstanceThemeConfig = ({ formType, dataStatus, instanceStatus, statusType = "INST", isFormSummary }) => {
76
+ const getInstanceStatus = () => {
77
+ if (statusType === "TMPL") return "gct-nocode-instance-status--tmpl";
78
+ if (formType === FormTypeEnum.TEXT || formType === FormTypeEnum.VIEW) return "gct-nocode-instance-status--finish";
79
+ if (instanceStatus === InstanceStatusValues.ARCHIVED) return "gct-nocode-instance-status--archived";
80
+ if (instanceStatus === InstanceStatusValues.IN_AUDIT) return "gct-nocode-instance-status--in-audit";
81
+ if (formType === FormTypeEnum.PROCESS || isFormSummary) return {
82
+ [InstanceStatusValues.RUNNING]: "gct-nocode-instance-status--running",
83
+ [InstanceStatusValues.FILLED]: "gct-nocode-instance-status--already-filled",
84
+ [InstanceStatusValues.COMPLETED]: "gct-nocode-instance-status--finish",
85
+ [InstanceStatusValues.ABANDON]: "gct-nocode-instance-status--invalid",
86
+ [InstanceStatusValues.EXCEPTION]: "gct-nocode-instance-status--abnormal",
87
+ [InstanceStatusValues.STASH]: "gct-nocode-instance-status--stash"
88
+ }[instanceStatus] || "gct-nocode-instance-status--not-filled";
89
+ if (formType === FormTypeEnum.BASE || formType === FormTypeEnum.FILE) {
90
+ if (dataStatus === "STASH" || instanceStatus === InstanceStatusValues.STASH) return "gct-nocode-instance-status--stash";
91
+ if (dataStatus) return dataStatus === "SUBMIT" ? instanceStatus === InstanceStatusValues.ABANDON ? "gct-nocode-instance-status--invalid" : "gct-nocode-instance-status--finish" : "gct-nocode-instance-status--not-filled";
92
+ return instanceStatus === InstanceStatusValues.UNFILLED ? "gct-nocode-instance-status--not-filled" : instanceStatus === InstanceStatusValues.ABANDON ? "gct-nocode-instance-status--invalid" : "gct-nocode-instance-status--finish";
93
+ }
94
+ return "gct-nocode-instance-status--not-filled";
95
+ };
96
+ const themeFlag = getInstanceStatus();
97
+ return commonUtils.gctInstanceStatusTheme[themeFlag];
98
+ };
99
+ //#endregion
100
+ export { useInstanceThemeConfig };
@@ -0,0 +1,36 @@
1
+ /** 实例状态集合 */
2
+ export declare const InstanceStatusValues: {
3
+ /** 作废状态 */
4
+ readonly ABANDON: "ABANDON";
5
+ /** 未填报 */
6
+ readonly UNFILLED: "UNFILLED";
7
+ /** 已填报 */
8
+ readonly FILLED: "FILLED";
9
+ /** 已完成 */
10
+ readonly COMPLETED: "COMPLETED";
11
+ /** 进行中 */
12
+ readonly RUNNING: "RUNNING";
13
+ /** 暂存 */
14
+ readonly STASH: "STASH";
15
+ /** 待放行 */
16
+ readonly UNRELEASED: "UNRELEASED";
17
+ /** 放行中 */
18
+ readonly RELEASE: "RELEASE";
19
+ /** 异常 */
20
+ readonly EXCEPTION: "EXCEPTION";
21
+ /** 已封存 */
22
+ readonly ARCHIVED: "ARCHIVED";
23
+ /** 汇总中 */
24
+ readonly IN_SUMMARY: "IN_SUMMARY";
25
+ /** 已汇总 */
26
+ readonly SUMMARIZED: "SUMMARIZED";
27
+ /** 汇总审核中、表单变更审核中 */
28
+ readonly IN_AUDIT: "IN_AUDIT";
29
+ /** 部分提交 */
30
+ readonly PARTIAL_SUBMIT: "PARTIAL_SUBMIT";
31
+ };
32
+ export type InstanceStatusValue = (typeof InstanceStatusValues)[keyof typeof InstanceStatusValues];
33
+ /** eDHR实例状态 */
34
+ export type EdhrInstanceStatus = Extract<InstanceStatusValue, typeof InstanceStatusValues.UNFILLED | typeof InstanceStatusValues.RUNNING | typeof InstanceStatusValues.COMPLETED | typeof InstanceStatusValues.ARCHIVED | typeof InstanceStatusValues.ABANDON | typeof InstanceStatusValues.IN_SUMMARY | typeof InstanceStatusValues.SUMMARIZED | typeof InstanceStatusValues.IN_AUDIT>;
35
+ /** 放行实例状态 */
36
+ export type ReleaseInstanceStatus = Extract<InstanceStatusValue, typeof InstanceStatusValues.UNRELEASED | typeof InstanceStatusValues.RELEASE | typeof InstanceStatusValues.COMPLETED | typeof InstanceStatusValues.EXCEPTION | typeof InstanceStatusValues.ARCHIVED>;