@gct-paas/core-web 0.1.4-dev.16 → 0.1.4-dev.17

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 (104) hide show
  1. package/dist/BpmnApproval.vue-BQUAB11v.js +1 -0
  2. package/dist/BpmnBusiness.vue-C5duJF50.js +1 -0
  3. package/dist/BpmnEnd.vue-BjEcQnG0.js +1 -0
  4. package/dist/BpmnExclusive.vue-Cx276gAF.js +1 -0
  5. package/dist/BpmnForm.vue-CF07AB3T.js +1 -0
  6. package/dist/BpmnJoin.vue-DZgck71H.js +1 -0
  7. package/dist/BpmnJs.vue-BdKux96j.js +1 -0
  8. package/dist/BpmnMessage.vue-DABYKBdz.js +1 -0
  9. package/dist/BpmnParallel.vue-CUi6RogD.js +1 -0
  10. package/dist/BpmnStart.vue-lvEOgVJW.js +1 -0
  11. package/dist/NodeFlow.vue-DsiKwCpI.js +1 -0
  12. package/dist/NodeTools.vue-CKtwcfn2.js +1 -0
  13. package/dist/NodeTooltips.vue-BuKpNXoA.js +1 -0
  14. package/dist/enums-DefcbOFc.js +1 -0
  15. package/dist/index.min.css +1 -1
  16. package/dist/loader.esm.min.js +1 -1
  17. package/dist/{monaco-editor-CF-NJ0C2.js → monaco-editor-BhuLUOmL.js} +1 -1
  18. package/dist/node-popover.vue-CnA0OEQf.js +1 -0
  19. package/dist/useGctBpmn-wMjCfvFc.js +1 -0
  20. package/dist/{useMonacoEditor-DWGwLehS.js → useMonacoEditor-no1c2RQN.js} +1 -1
  21. package/es/assets/svg/image-error.svg.mjs +4 -0
  22. package/es/components/BpmnRuntime/index.d.ts +2 -0
  23. package/es/components/BpmnRuntime/index.mjs +1 -0
  24. package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.d.ts +5 -0
  25. package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs +5 -0
  26. package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue_vue_type_script_setup_true_lang.mjs +83 -0
  27. package/es/components/I18nSelect/index.d.ts +7 -0
  28. package/es/components/I18nSelect/index.mjs +7 -0
  29. package/es/components/I18nSelect/src/i18n-modal.vue.d.ts +21 -0
  30. package/es/components/I18nSelect/src/i18n-modal.vue.mjs +5 -0
  31. package/es/components/I18nSelect/src/i18n-modal.vue_vue_type_script_setup_true_lang.mjs +128 -0
  32. package/es/components/I18nSelect/src/i18n-select-btn.vue.d.ts +17 -0
  33. package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +7 -0
  34. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +116 -0
  35. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_style_index_0_scoped_dc8ffb2c_lang.css +58 -0
  36. package/es/components/I18nSelect/src/i18n-select-container.vue.d.ts +10 -0
  37. package/es/components/I18nSelect/src/i18n-select-container.vue.mjs +7 -0
  38. package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_script_setup_true_name_i18n-select-container_lang.mjs +218 -0
  39. package/es/components/I18nSelect/src/i18n-select-container.vue_vue_type_style_index_0_scoped_820112ce_lang.css +6 -0
  40. package/es/components/I18nSelect/src/i18n-select-input-form.vue.d.ts +15 -0
  41. package/es/components/I18nSelect/src/i18n-select-input-form.vue.mjs +5 -0
  42. package/es/components/I18nSelect/src/i18n-select-input-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
  43. package/es/components/I18nSelect/src/i18n-select-input.vue.d.ts +51 -0
  44. package/es/components/I18nSelect/src/i18n-select-input.vue.mjs +7 -0
  45. package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +125 -0
  46. package/es/components/I18nSelect/src/i18n-select-input.vue_vue_type_style_index_0_scoped_64c5221c_lang.css +3 -0
  47. package/es/components/I18nSelect/src/i18n-select-modal.vue.d.ts +4 -0
  48. package/es/components/I18nSelect/src/i18n-select-modal.vue.mjs +5 -0
  49. package/es/components/I18nSelect/src/i18n-select-modal.vue_vue_type_script_setup_true_lang.mjs +20 -0
  50. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.d.ts +15 -0
  51. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue.mjs +5 -0
  52. package/es/components/I18nSelect/src/i18n-select-textarea-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs +56 -0
  53. package/es/components/I18nSelect/src/i18n-select-textarea.vue.d.ts +26 -0
  54. package/es/components/I18nSelect/src/i18n-select-textarea.vue.mjs +7 -0
  55. package/es/components/I18nSelect/src/i18n-select-textarea.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs +86 -0
  56. package/es/components/I18nSelect/src/i18n-select-textarea.vue_vue_type_style_index_0_scoped_cd95c416_lang.css +17 -0
  57. package/es/components/I18nSelect/src/useI18nSelect.d.ts +13 -0
  58. package/es/components/I18nSelect/src/useI18nSelect.mjs +47 -0
  59. package/es/components/UserPick/index.d.ts +2 -6
  60. package/es/components/UserPick/index.mjs +2 -7
  61. package/es/components/UserPick/src/constants/index.d.ts +5 -0
  62. package/es/components/UserPick/src/constants/index.mjs +9 -0
  63. package/es/components/UserPick/src/user-pick.vue.d.ts +1 -1
  64. package/es/components/UserPick/src/user-pick.vue.mjs +2 -2
  65. package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +5 -5
  66. package/es/components/UserPick/src/{user-pick.vue_vue_type_style_index_0_scoped_081b9663_lang.css → user-pick.vue_vue_type_style_index_0_scoped_a49a84da_lang.css} +11 -11
  67. package/es/components/image-upload/src/components/base-upload.vue.mjs +2 -2
  68. package/es/components/image-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +4 -4
  69. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_17a11419_lang.css +76 -0
  70. package/es/components/index.d.ts +4 -1
  71. package/es/components/index.mjs +12 -0
  72. package/es/components/paas-bpmn-log/components/approval-node.vue.d.ts +12 -0
  73. package/es/components/paas-bpmn-log/components/approval-node.vue.mjs +7 -0
  74. package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs +170 -0
  75. package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_style_index_0_scoped_a88d7ef9_lang.css +51 -0
  76. package/es/components/paas-bpmn-log/components/user-list.vue.d.ts +6 -0
  77. package/es/components/paas-bpmn-log/components/user-list.vue.mjs +7 -0
  78. package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_script_setup_true_lang.mjs +55 -0
  79. package/es/components/paas-bpmn-log/components/user-list.vue_vue_type_style_index_0_scoped_27aa2bf0_lang.css +10 -0
  80. package/es/components/paas-bpmn-log/hooks/useObserver.d.ts +13 -0
  81. package/es/components/paas-bpmn-log/hooks/useObserver.mjs +46 -0
  82. package/es/components/paas-bpmn-log/hooks/uselog.d.ts +5 -0
  83. package/es/components/paas-bpmn-log/hooks/uselog.mjs +17 -0
  84. package/es/components/paas-bpmn-log/imgs/avatar-default.png.mjs +4 -0
  85. package/es/components/paas-bpmn-log/paas-bpmn-log.vue.d.ts +23 -0
  86. package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +7 -0
  87. package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +245 -0
  88. package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_style_index_0_scoped_c85122b0_lang.css +54 -0
  89. package/es/index.mjs +16 -6
  90. package/es/modules/global-modal/src/BasicModal.vue.d.ts +2 -2
  91. package/package.json +5 -4
  92. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_3248e630_lang.css +0 -73
  93. package/es/loader.mjs +0 -91
  94. /package/dist/{de_DE-CYotlhMS.js → de_DE-WZ3EB5Ei.js} +0 -0
  95. /package/dist/{en_US-DjLwq3RF.js → en_US-CsMalKr8.js} +0 -0
  96. /package/dist/{es_ES-0UhVFVHw.js → es_ES-B9hxIQ3B.js} +0 -0
  97. /package/dist/{fr_FR-Xgsbf3iG.js → fr_FR-C6_kWsnc.js} +0 -0
  98. /package/dist/{ja_JP-3aUbzjBv.js → ja_JP-Bh5yjd5R.js} +0 -0
  99. /package/dist/{pt_PT-BzMPT58e.js → pt_PT-BWSTPDc8.js} +0 -0
  100. /package/dist/{ru_RU-BRHq1RXx.js → ru_RU-BhsOXNnH.js} +0 -0
  101. /package/dist/{tr_TR-CPqM558w.js → tr_TR-DFflgWBG.js} +0 -0
  102. /package/dist/{vi_VN-BOKGrWoY.js → vi_VN-pWDyqq2t.js} +0 -0
  103. /package/dist/{zh_CN-upOsz50m.js → zh_CN-TmE4LVWm.js} +0 -0
  104. /package/dist/{zh_TW-jlmatmAz.js → zh_TW-CkLTTF7p.js} +0 -0
@@ -0,0 +1,56 @@
1
+ import i18n_select_input_default from "./i18n-select-input.vue.mjs";
2
+ import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, resolveComponent, toDisplayString, withCtx } from "vue";
3
+ //#region src/components/I18nSelect/src/i18n-select-input-form.vue?vue&type=script&setup=true&name=i18n-select-input-form&lang.ts
4
+ var i18n_select_input_form_vue_vue_type_script_setup_true_name_i18n_select_input_form_lang_default = /* @__PURE__ */ defineComponent({
5
+ __name: "i18n-select-input-form",
6
+ props: {
7
+ formItemName: {},
8
+ fromItemExtraProps: {},
9
+ inputExtraProps: {},
10
+ i18nConfig: {},
11
+ text: {},
12
+ formRef: {}
13
+ },
14
+ emits: ["update:text"],
15
+ setup(__props, { emit: __emit }) {
16
+ const props = __props;
17
+ const emit = __emit;
18
+ const i18nText = computed({
19
+ get() {
20
+ return props.text ?? "";
21
+ },
22
+ set(value) {
23
+ emit("update:text", value);
24
+ props.formRef?.validateFields([props.formItemName]);
25
+ }
26
+ });
27
+ return (_ctx, _cache) => {
28
+ const _component_a_form_item = resolveComponent("a-form-item");
29
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(_component_a_form_item, mergeProps({ name: __props.formItemName }, __props.fromItemExtraProps), {
30
+ default: withCtx(() => [createVNode(i18n_select_input_default, mergeProps(_ctx.$attrs, {
31
+ "i18n-text": i18nText.value,
32
+ "onUpdate:i18nText": _cache[0] || (_cache[0] = ($event) => i18nText.value = $event),
33
+ "input-extra-props": __props.inputExtraProps,
34
+ "i18n-config": __props.i18nConfig,
35
+ attr: Array.isArray(__props.formItemName) ? __props.formItemName.join(".") : __props.formItemName,
36
+ "placeholder-text": _ctx.$t("sys.inputText")
37
+ }), null, 16, [
38
+ "i18n-text",
39
+ "input-extra-props",
40
+ "i18n-config",
41
+ "attr",
42
+ "placeholder-text"
43
+ ])]),
44
+ _: 1
45
+ }, 16, ["name"]), createVNode(_component_a_form_item, {
46
+ name: "i18nConfig",
47
+ hidden: ""
48
+ }, {
49
+ default: withCtx(() => [createElementVNode("span", null, toDisplayString(__props.i18nConfig), 1)]),
50
+ _: 1
51
+ })], 64);
52
+ };
53
+ }
54
+ });
55
+ //#endregion
56
+ export { i18n_select_input_form_vue_vue_type_script_setup_true_name_i18n_select_input_form_lang_default as default };
@@ -0,0 +1,51 @@
1
+ import { InputProps } from 'ant-design-vue';
2
+ import { ButtonSize } from '@gct-paas/core';
3
+ interface Props {
4
+ attr: string | IObject;
5
+ inputExtraProps?: InputProps;
6
+ i18nConfig?: string | Record<string, string>;
7
+ i18nText?: string;
8
+ placeholderText?: string;
9
+ size?: ButtonSize;
10
+ i18nModalKey?: string;
11
+ forceUpdate?: boolean;
12
+ btnHeight?: string;
13
+ btnWidth?: string;
14
+ }
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: {
18
+ 'i18n-input'?(_: {}): any;
19
+ };
20
+ refs: {
21
+ i18nInputGroup: unknown;
22
+ inputRef: unknown;
23
+ };
24
+ rootEl: any;
25
+ };
26
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ blur: (...args: any[]) => void;
29
+ focus: (...args: any[]) => void;
30
+ "update:i18nText": (...args: any[]) => void;
31
+ "update:i18nConfig": (...args: any[]) => void;
32
+ "on-i18n-select": (...args: any[]) => void;
33
+ clickOutside: (...args: any[]) => void;
34
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
35
+ onBlur?: ((...args: any[]) => any) | undefined;
36
+ onFocus?: ((...args: any[]) => any) | undefined;
37
+ "onUpdate:i18nText"?: ((...args: any[]) => any) | undefined;
38
+ "onUpdate:i18nConfig"?: ((...args: any[]) => any) | undefined;
39
+ "onOn-i18n-select"?: ((...args: any[]) => any) | undefined;
40
+ onClickOutside?: ((...args: any[]) => any) | undefined;
41
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
42
+ i18nInputGroup: unknown;
43
+ inputRef: unknown;
44
+ }, any>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default from "./i18n-select-input.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs";
3
+ import './i18n-select-input.vue_vue_type_style_index_0_scoped_64c5221c_lang.css';/* empty css */
4
+ //#region src/components/I18nSelect/src/i18n-select-input.vue
5
+ var i18n_select_input_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default, [["__scopeId", "data-v-64c5221c"]]);
6
+ //#endregion
7
+ export { i18n_select_input_default as default };
@@ -0,0 +1,125 @@
1
+ import i18n_select_btn_default from "./i18n-select-btn.vue.mjs";
2
+ import { computed, createBlock, createCommentVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderSlot, resolveComponent, unref, withCtx } from "vue";
3
+ import { isEmpty, omit } from "lodash-es";
4
+ import { ButtonSize } from "@gct-paas/core";
5
+ import { onClickOutside } from "@vueuse/core";
6
+ //#region src/components/I18nSelect/src/i18n-select-input.vue?vue&type=script&setup=true&name=i18n-select-input&lang.ts
7
+ var i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default = /* @__PURE__ */ defineComponent({
8
+ __name: "i18n-select-input",
9
+ props: {
10
+ attr: {},
11
+ inputExtraProps: {},
12
+ i18nConfig: {},
13
+ i18nText: {},
14
+ placeholderText: {},
15
+ size: {},
16
+ i18nModalKey: {},
17
+ forceUpdate: { type: Boolean },
18
+ btnHeight: {},
19
+ btnWidth: {}
20
+ },
21
+ emits: [
22
+ "update:i18nText",
23
+ "update:i18nConfig",
24
+ "on-i18n-select",
25
+ "clickOutside",
26
+ "focus",
27
+ "blur"
28
+ ],
29
+ setup(__props, { emit: __emit }) {
30
+ const isApp = computed(() => {
31
+ return !!_gct.store.appInfo.id;
32
+ });
33
+ const props = __props;
34
+ const emit = __emit;
35
+ const inputValue = computed({
36
+ get() {
37
+ return props.i18nText ?? "";
38
+ },
39
+ set(value) {
40
+ if (value !== props.i18nText) emit("update:i18nText", value);
41
+ }
42
+ });
43
+ const i18nConfigState = computed(() => {
44
+ if (isEmpty(props.i18nConfig)) return {};
45
+ if (typeof props.i18nConfig === "string") return JSON.parse(props.i18nConfig) ?? {};
46
+ return props.i18nConfig ?? {};
47
+ });
48
+ const i18nValue = computed(() => {
49
+ return i18nConfigState.value?.[props.attr] ?? "";
50
+ });
51
+ const handleSelectI18n = (params) => {
52
+ console.log("emit", params);
53
+ if (params) {
54
+ if (isEmpty(inputValue.value) || props.forceUpdate === true) emit("update:i18nText", params.i18nTitle);
55
+ emit("update:i18nConfig", JSON.stringify(isEmpty(params) ? omit(i18nConfigState.value, props.attr) : {
56
+ ...i18nConfigState.value,
57
+ [props.attr]: params.i18nKey
58
+ }));
59
+ emit("on-i18n-select", params);
60
+ }
61
+ };
62
+ const inputRef = ref();
63
+ const handleFocus = () => {
64
+ emit("focus", inputRef.value);
65
+ };
66
+ const handleBlur = () => {
67
+ emit("blur", inputRef.value);
68
+ };
69
+ const i18nInputGroup = ref();
70
+ onClickOutside(i18nInputGroup, () => {
71
+ emit("clickOutside");
72
+ });
73
+ return (_ctx, _cache) => {
74
+ const _component_a_input = resolveComponent("a-input");
75
+ const _component_a_input_group = resolveComponent("a-input-group");
76
+ return openBlock(), createBlock(_component_a_input_group, {
77
+ id: "i18nInputGroup",
78
+ ref_key: "i18nInputGroup",
79
+ ref: i18nInputGroup,
80
+ compact: ""
81
+ }, {
82
+ default: withCtx(() => [renderSlot(_ctx.$slots, "i18n-input", {}, () => [createVNode(_component_a_input, mergeProps({
83
+ ref_key: "inputRef",
84
+ ref: inputRef
85
+ }, __props.inputExtraProps, {
86
+ value: inputValue.value,
87
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
88
+ valueModifiers: { trim: true },
89
+ style: {
90
+ height: __props.btnHeight ? __props.btnHeight : __props.size === unref(ButtonSize).SMALL ? "26px" : "32px",
91
+ width: !isApp.value ? "100%" : `calc(100% - ${__props.btnWidth ? __props.btnWidth : __props.size === unref(ButtonSize).SMALL ? "26px" : "32px"}`
92
+ },
93
+ placeholder: __props.placeholderText,
94
+ size: __props.size,
95
+ "allow-clear": "",
96
+ onFocus: handleFocus,
97
+ onBlur: handleBlur
98
+ }), null, 16, [
99
+ "value",
100
+ "style",
101
+ "placeholder",
102
+ "size"
103
+ ])], true), isApp.value ? (openBlock(), createBlock(i18n_select_btn_default, {
104
+ key: 0,
105
+ "btn-height": __props.btnHeight,
106
+ "btn-width": __props.btnWidth,
107
+ "i18n-value": i18nValue.value,
108
+ size: __props.size,
109
+ "i18n-modal-key": __props.i18nModalKey,
110
+ onOnSelectI18n: handleSelectI18n,
111
+ onClosed: _cache[1] || (_cache[1] = ($event) => emit("clickOutside"))
112
+ }, null, 8, [
113
+ "btn-height",
114
+ "btn-width",
115
+ "i18n-value",
116
+ "size",
117
+ "i18n-modal-key"
118
+ ])) : createCommentVNode("", true)]),
119
+ _: 3
120
+ }, 512);
121
+ };
122
+ }
123
+ });
124
+ //#endregion
125
+ export { i18n_select_input_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default as default };
@@ -0,0 +1,3 @@
1
+ [data-v-64c5221c] .ant-form-item-has-error .ant-btn {
2
+ border-color: var(--ant-error-color) !important;
3
+ }
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ open: () => void;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import i18n_select_modal_vue_vue_type_script_setup_true_lang_default from "./i18n-select-modal.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region src/components/I18nSelect/src/i18n-select-modal.vue
3
+ var i18n_select_modal_default = i18n_select_modal_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { i18n_select_modal_default as default };
@@ -0,0 +1,20 @@
1
+ import { useModal } from "../../../modules/global-modal/src/hooks/useModal.mjs";
2
+ import "../../../modules/global-modal/index.mjs";
3
+ import i18n_select_container_default from "./i18n-select-container.vue.mjs";
4
+ import { createBlock, defineComponent, openBlock, unref } from "vue";
5
+ //#region src/components/I18nSelect/src/i18n-select-modal.vue?vue&type=script&setup=true&lang.ts
6
+ var i18n_select_modal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "i18n-select-modal",
8
+ setup(__props, { expose: __expose }) {
9
+ const [register, { openModal }] = useModal();
10
+ const open = () => {
11
+ openModal();
12
+ };
13
+ __expose({ open });
14
+ return (_ctx, _cache) => {
15
+ return openBlock(), createBlock(i18n_select_container_default, { onRegister: unref(register) }, null, 8, ["onRegister"]);
16
+ };
17
+ }
18
+ });
19
+ //#endregion
20
+ export { i18n_select_modal_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,15 @@
1
+ import { FormInstance, FormItemProps, InputProps } from 'ant-design-vue';
2
+ interface Props {
3
+ formItemName: string | string[];
4
+ fromItemExtraProps?: FormItemProps;
5
+ inputExtraProps?: InputProps;
6
+ i18nConfig?: string;
7
+ text?: string;
8
+ formRef?: FormInstance;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:text": (...args: any[]) => void;
12
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
13
+ "onUpdate:text"?: ((...args: any[]) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import i18n_select_textarea_form_vue_vue_type_script_setup_true_name_i18n_select_input_form_lang_default from "./i18n-select-textarea-form.vue_vue_type_script_setup_true_name_i18n-select-input-form_lang.mjs";
2
+ //#region src/components/I18nSelect/src/i18n-select-textarea-form.vue
3
+ var i18n_select_textarea_form_default = i18n_select_textarea_form_vue_vue_type_script_setup_true_name_i18n_select_input_form_lang_default;
4
+ //#endregion
5
+ export { i18n_select_textarea_form_default as default };
@@ -0,0 +1,56 @@
1
+ import i18n_select_textarea_default from "./i18n-select-textarea.vue.mjs";
2
+ import { Fragment, computed, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, resolveComponent, toDisplayString, withCtx } from "vue";
3
+ //#region src/components/I18nSelect/src/i18n-select-textarea-form.vue?vue&type=script&setup=true&name=i18n-select-input-form&lang.ts
4
+ var i18n_select_textarea_form_vue_vue_type_script_setup_true_name_i18n_select_input_form_lang_default = /* @__PURE__ */ defineComponent({
5
+ __name: "i18n-select-textarea-form",
6
+ props: {
7
+ formItemName: {},
8
+ fromItemExtraProps: {},
9
+ inputExtraProps: {},
10
+ i18nConfig: {},
11
+ text: {},
12
+ formRef: {}
13
+ },
14
+ emits: ["update:text"],
15
+ setup(__props, { emit: __emit }) {
16
+ const props = __props;
17
+ const emit = __emit;
18
+ const i18nText = computed({
19
+ get() {
20
+ return props.text ?? "";
21
+ },
22
+ set(value) {
23
+ emit("update:text", value);
24
+ props.formRef?.validateFields([props.formItemName]);
25
+ }
26
+ });
27
+ return (_ctx, _cache) => {
28
+ const _component_a_form_item = resolveComponent("a-form-item");
29
+ return openBlock(), createElementBlock(Fragment, null, [createVNode(_component_a_form_item, mergeProps({ name: __props.formItemName }, __props.fromItemExtraProps), {
30
+ default: withCtx(() => [createVNode(i18n_select_textarea_default, mergeProps(_ctx.$attrs, {
31
+ "i18n-text": i18nText.value,
32
+ "onUpdate:i18nText": _cache[0] || (_cache[0] = ($event) => i18nText.value = $event),
33
+ "placeholder-text": _ctx.$t("sys.inputText"),
34
+ "input-extra-props": __props.inputExtraProps,
35
+ "i18n-config": __props.i18nConfig,
36
+ attr: Array.isArray(__props.formItemName) ? __props.formItemName.join(".") : __props.formItemName
37
+ }), null, 16, [
38
+ "i18n-text",
39
+ "placeholder-text",
40
+ "input-extra-props",
41
+ "i18n-config",
42
+ "attr"
43
+ ])]),
44
+ _: 1
45
+ }, 16, ["name"]), createVNode(_component_a_form_item, {
46
+ name: "i18nConfig",
47
+ hidden: ""
48
+ }, {
49
+ default: withCtx(() => [createElementVNode("span", null, toDisplayString(__props.i18nConfig), 1)]),
50
+ _: 1
51
+ })], 64);
52
+ };
53
+ }
54
+ });
55
+ //#endregion
56
+ export { i18n_select_textarea_form_vue_vue_type_script_setup_true_name_i18n_select_input_form_lang_default as default };
@@ -0,0 +1,26 @@
1
+ import { InputProps, TextAreaProps } from 'ant-design-vue';
2
+ interface Props {
3
+ attr: string;
4
+ inputExtraProps?: InputProps | TextAreaProps;
5
+ i18nConfig?: string | Record<string, string>;
6
+ i18nText?: string;
7
+ placeholderText?: string;
8
+ rows?: number;
9
+ style?: object;
10
+ }
11
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ focus: (...args: any[]) => void;
13
+ "update:i18nText": (...args: any[]) => void;
14
+ "update:i18nConfig": (...args: any[]) => void;
15
+ "on-i18n-select": (...args: any[]) => void;
16
+ clickOutside: (...args: any[]) => void;
17
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
18
+ onFocus?: ((...args: any[]) => any) | undefined;
19
+ "onUpdate:i18nText"?: ((...args: any[]) => any) | undefined;
20
+ "onUpdate:i18nConfig"?: ((...args: any[]) => any) | undefined;
21
+ "onOn-i18n-select"?: ((...args: any[]) => any) | undefined;
22
+ onClickOutside?: ((...args: any[]) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
+ inputRef: unknown;
25
+ }, HTMLDivElement>;
26
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import i18n_select_textarea_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default from "./i18n-select-textarea.vue_vue_type_script_setup_true_name_i18n-select-input_lang.mjs";
3
+ import './i18n-select-textarea.vue_vue_type_style_index_0_scoped_cd95c416_lang.css';/* empty css */
4
+ //#region src/components/I18nSelect/src/i18n-select-textarea.vue
5
+ var i18n_select_textarea_default = /* @__PURE__ */ _plugin_vue_export_helper_default(i18n_select_textarea_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default, [["__scopeId", "data-v-cd95c416"]]);
6
+ //#endregion
7
+ export { i18n_select_textarea_default as default };
@@ -0,0 +1,86 @@
1
+ import i18n_select_btn_default from "./i18n-select-btn.vue.mjs";
2
+ import { computed, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, ref, resolveComponent } from "vue";
3
+ import { isEmpty, omit } from "lodash-es";
4
+ //#region src/components/I18nSelect/src/i18n-select-textarea.vue?vue&type=script&setup=true&name=i18n-select-input&lang.ts
5
+ var _hoisted_1 = { class: "inline-block w100% relative" };
6
+ var i18n_select_textarea_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "i18n-select-textarea",
8
+ props: {
9
+ attr: {},
10
+ inputExtraProps: {},
11
+ i18nConfig: {},
12
+ i18nText: {},
13
+ placeholderText: {},
14
+ rows: {},
15
+ style: {}
16
+ },
17
+ emits: [
18
+ "update:i18nText",
19
+ "update:i18nConfig",
20
+ "on-i18n-select",
21
+ "clickOutside",
22
+ "focus"
23
+ ],
24
+ setup(__props, { emit: __emit }) {
25
+ const props = __props;
26
+ const emit = __emit;
27
+ const inputValue = computed({
28
+ get() {
29
+ return props.i18nText ?? "";
30
+ },
31
+ set(value) {
32
+ emit("update:i18nText", value);
33
+ }
34
+ });
35
+ const i18nConfigState = computed(() => {
36
+ if (isEmpty(props.i18nConfig)) return {};
37
+ if (typeof props.i18nConfig === "string") return JSON.parse(props.i18nConfig) ?? {};
38
+ return props.i18nConfig ?? {};
39
+ });
40
+ const i18nValue = computed(() => {
41
+ return i18nConfigState.value?.[props.attr];
42
+ });
43
+ const handleSelectI18n = (params) => {
44
+ if (params) {
45
+ if (isEmpty(inputValue.value)) emit("update:i18nText", params.i18nTitle);
46
+ emit("update:i18nConfig", JSON.stringify(isEmpty(params) ? omit(i18nConfigState.value, props.attr) : {
47
+ ...i18nConfigState.value,
48
+ [props.attr]: params.i18nKey
49
+ }));
50
+ emit("on-i18n-select", params);
51
+ }
52
+ };
53
+ const inputRef = ref();
54
+ const handleFocus = () => {
55
+ emit("focus", inputRef.value);
56
+ };
57
+ return (_ctx, _cache) => {
58
+ const _component_a_textarea = resolveComponent("a-textarea");
59
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_textarea, mergeProps({
60
+ ref_key: "inputRef",
61
+ ref: inputRef,
62
+ value: inputValue.value,
63
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
64
+ placeholder: __props.placeholderText
65
+ }, __props.inputExtraProps, {
66
+ style: {
67
+ resize: "none",
68
+ ...__props.style
69
+ },
70
+ onFocus: handleFocus
71
+ }), null, 16, [
72
+ "value",
73
+ "placeholder",
74
+ "style"
75
+ ]), createVNode(i18n_select_btn_default, {
76
+ "i18n-value": i18nValue.value,
77
+ "simple-btn": true,
78
+ type: "text",
79
+ onOnSelectI18n: handleSelectI18n,
80
+ onClosed: _cache[1] || (_cache[1] = ($event) => emit("clickOutside"))
81
+ }, null, 8, ["i18n-value"])]);
82
+ };
83
+ }
84
+ });
85
+ //#endregion
86
+ export { i18n_select_textarea_vue_vue_type_script_setup_true_name_i18n_select_input_lang_default as default };
@@ -0,0 +1,17 @@
1
+ [data-v-cd95c416] .i18n-icon {
2
+ position: absolute;
3
+ right: 16px;
4
+ bottom: 12px;
5
+ color: #212528;
6
+ font-size: 16px;
7
+ cursor: pointer;
8
+ }
9
+ [data-v-cd95c416]
10
+ div.ant-input-textarea.ant-input-textarea-show-count.ant-input-textarea-show-count::after
11
+ {
12
+ right: 33px;
13
+ }
14
+ [data-v-cd95c416] .ant-input {
15
+ border: 2px dashed #dbdbdb;
16
+ background: transparent;
17
+ }
@@ -0,0 +1,13 @@
1
+ export interface I18nSelectProps {
2
+ i18nModalKey?: string;
3
+ saveCallback?: (params: IObject) => void;
4
+ destroyCallback?: (params: IObject) => void;
5
+ }
6
+ export interface IUseI18nSelectOptions {
7
+ target?: HTMLElement;
8
+ props?: Partial<I18nSelectProps>;
9
+ }
10
+ export declare function useI18nSelect(): {
11
+ open: (params: Partial<I18nSelectProps> | Partial<IUseI18nSelectOptions>) => Promise<void>;
12
+ close: (callback: unknown) => void;
13
+ };
@@ -0,0 +1,47 @@
1
+ import i18n_select_modal_default from "./i18n-select-modal.vue.mjs";
2
+ import { ref, unref } from "vue";
3
+ import { has } from "lodash-es";
4
+ import { OverlayContainer } from "@gct-paas/core";
5
+ //#region src/components/I18nSelect/src/useI18nSelect.ts
6
+ function useI18nSelect() {
7
+ let app = null;
8
+ let instance = null;
9
+ const i18nModalKey = ref("");
10
+ async function open(params) {
11
+ let props;
12
+ let target = document.body;
13
+ if (has(params, "target") || has(params, "props")) {
14
+ const options = params;
15
+ props = options.props || {};
16
+ target = options.target || document.body;
17
+ } else props = params;
18
+ i18nModalKey.value = props.i18nModalKey || `i18n-select-modal-${Math.random().toString(16).substring(8)}`;
19
+ const propsData = {
20
+ ...props,
21
+ destroyCallback: () => close(props?.destroyCallback),
22
+ i18nModalKey: unref(i18nModalKey)
23
+ };
24
+ if (!app) {
25
+ const container = document.createElement("div");
26
+ container.id = unref(i18nModalKey);
27
+ unref(target)?.appendChild(container);
28
+ app = await OverlayContainer.createVueApp(i18n_select_modal_default, propsData);
29
+ instance = app.mount(container);
30
+ }
31
+ instance?.open();
32
+ }
33
+ function close(callback) {
34
+ if (typeof callback === "function") callback();
35
+ document.querySelector(`#${unref(i18nModalKey)}`).remove();
36
+ if (app) {
37
+ app.unmount();
38
+ app = null;
39
+ }
40
+ }
41
+ return {
42
+ open,
43
+ close
44
+ };
45
+ }
46
+ //#endregion
47
+ export { useI18nSelect };
@@ -1,9 +1,5 @@
1
1
  import { Org, OrgUserResponse } from '@gct-paas/api/platform';
2
- export declare enum PickType {
3
- ALL = "ALL",
4
- APP = "APP",
5
- ViSIBLE = "ViSIBLE"
6
- }
2
+ import { PickType } from './src/constants';
7
3
  /**
8
4
  * type:ALL 所有的,APP 应用内部场景 ,ViSIBLE用户组配置可见人员
9
5
  */
@@ -43,4 +39,4 @@ export interface openPickerByDeptType {
43
39
  callback: openPickerByDeptCallback;
44
40
  }
45
41
  export type openPickerByDeptCallback = (value: string[], rows: OrgUserResponse[]) => void;
46
- export {};
42
+ export { PickType as UserPickType };
@@ -1,12 +1,7 @@
1
+ import { PickType } from "./src/constants/index.mjs";
1
2
  import user_pick_default from "./src/user-pick.vue.mjs";
2
3
  import { createVNode, render } from "vue";
3
4
  //#region src/components/UserPick/index.ts
4
- var PickType = /* @__PURE__ */ function(PickType) {
5
- PickType["ALL"] = "ALL";
6
- PickType["APP"] = "APP";
7
- PickType["ViSIBLE"] = "ViSIBLE";
8
- return PickType;
9
- }({});
10
5
  function useModalPicker({ type = PickType.ALL, fieldKey, modelKey } = {}) {
11
6
  const { getUserOptions, getUserByIds, getDeptOptions } = getApisByType({
12
7
  type,
@@ -110,4 +105,4 @@ function getApisByType({ type, fieldKey, modelKey }) {
110
105
  }[type];
111
106
  }
112
107
  //#endregion
113
- export { PickType, useModalPicker };
108
+ export { useModalPicker };
@@ -0,0 +1,5 @@
1
+ export declare enum PickType {
2
+ ALL = "ALL",
3
+ APP = "APP",
4
+ ViSIBLE = "ViSIBLE"
5
+ }
@@ -0,0 +1,9 @@
1
+ //#region src/components/UserPick/src/constants/index.ts
2
+ var PickType = /* @__PURE__ */ function(PickType) {
3
+ PickType["ALL"] = "ALL";
4
+ PickType["APP"] = "APP";
5
+ PickType["ViSIBLE"] = "ViSIBLE";
6
+ return PickType;
7
+ }({});
8
+ //#endregion
9
+ export { PickType };
@@ -1,4 +1,4 @@
1
- import { PickType } from '../index';
1
+ import { PickType } from './constants';
2
2
  type __VLS_Props = {
3
3
  getUserOptions: Fn;
4
4
  getUserByIds: Fn;
@@ -1,7 +1,7 @@
1
1
  import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import user_pick_vue_vue_type_script_setup_true_lang_default from "./user-pick.vue_vue_type_script_setup_true_lang.mjs";
3
- import './user-pick.vue_vue_type_style_index_0_scoped_081b9663_lang.css';/* empty css */
3
+ import './user-pick.vue_vue_type_style_index_0_scoped_a49a84da_lang.css';/* empty css */
4
4
  //#region src/components/UserPick/src/user-pick.vue
5
- var user_pick_default = /* @__PURE__ */ _plugin_vue_export_helper_default(user_pick_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-081b9663"]]);
5
+ var user_pick_default = /* @__PURE__ */ _plugin_vue_export_helper_default(user_pick_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a49a84da"]]);
6
6
  //#endregion
7
7
  export { user_pick_default as default };