@gct-paas/core-web 0.1.6-dev.5 → 0.1.6-dev.6

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 (124) hide show
  1. package/dist/ColorPicker-DGQQb8I7.js +1 -0
  2. package/dist/{_plugin-vue_export-helper-59SbqtUR.js → _plugin-vue_export-helper-C9hXqKoS.js} +1 -1
  3. package/dist/{de_DE-BnwOalCV.js → de_DE-B3f8kAv-.js} +1 -1
  4. package/dist/diagram-config-item-C5Ha2XJq.js +1 -0
  5. package/dist/diagram-config-item-reverse-ChoxnW-Z.js +1 -0
  6. package/dist/diagram-config-item-virtual-Cbmggfwt.js +1 -0
  7. package/dist/{en_US-6Hw6WWah.js → en_US-BSG3Kz6v.js} +1 -1
  8. package/dist/{es_ES-tAqXFGrR.js → es_ES-BGP8IOmQ.js} +1 -1
  9. package/dist/{fr_FR-BkDgVS_P.js → fr_FR-Y-6CzjUq.js} +1 -1
  10. package/dist/hooks-yX21uJ6d.js +1 -0
  11. package/dist/index.min.css +1 -1
  12. package/dist/{ja_JP-AsmV92nC.js → ja_JP-CDlH1v8M.js} +1 -1
  13. package/dist/loader.esm.min.js +1 -1
  14. package/dist/{monaco-editor-CgESUPw_.js → monaco-editor-BTqXEIZI.js} +1 -1
  15. package/dist/{pt_PT-CCVWOJzE.js → pt_PT-N-iIoE2_.js} +1 -1
  16. package/dist/relationship-diagram-config-DstwwXCO.js +1 -0
  17. package/dist/{ru_RU-w4sUgbzL.js → ru_RU--ESLRHrj.js} +1 -1
  18. package/dist/template-1ZQd8Z1w.js +1 -0
  19. package/dist/{tr_TR-CGZch3eB.js → tr_TR-BOIykdZO.js} +1 -1
  20. package/dist/{vi_VN-DONxIDR7.js → vi_VN-CmVoM2Rw.js} +1 -1
  21. package/dist/{zh_CN-BxdD8hqG.js → zh_CN-DhsO5Qwx.js} +1 -1
  22. package/dist/{zh_TW-D5Y8j-oG.js → zh_TW-DWdp2kVo.js} +1 -1
  23. package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +2 -2
  24. package/es/components/base-button/base-button.vue.mjs +1 -1
  25. package/es/components/field-cascader/src/hooks.d.ts +1 -0
  26. package/es/components/label-design/modal/template.vue_vue_type_script_setup_true_lang.mjs +2 -2
  27. package/es/components/label-design/panels/modals/diff-modal.vue_vue_type_script_setup_true_lang.mjs +2 -2
  28. package/es/components/label-design/panels/panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
  29. package/es/components/label-design/panels/widget/controls/ImageData.vue.mjs +2 -2
  30. package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_script_setup_true_name_image-data_lang.mjs +2 -2
  31. package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_9232a443_lang.css +3 -0
  32. package/es/components/label-design/stage/stage.vue.d.ts +9 -0
  33. package/es/components/label-design/stage/stage.vue.mjs +2 -2
  34. package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +2 -1
  35. package/es/components/label-design/stage/{stage.vue_vue_type_style_index_0_scoped_53b1f897_lang.css → stage.vue_vue_type_style_index_0_scoped_9275e9fb_lang.css} +8 -8
  36. package/es/components/layout/view-container/view-container.d.ts +1 -11
  37. package/es/components/layout/view-container/view-container.mjs +10 -14
  38. package/es/create-app-vue.mjs +4 -2
  39. package/es/index.d.ts +3 -2
  40. package/es/index.mjs +25 -24
  41. package/es/modules/color-picker/src/color-editor.vue.mjs +1 -1
  42. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +2 -0
  43. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +1 -0
  44. package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +1 -0
  45. package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +2 -0
  46. package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +3 -0
  47. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -4
  48. package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_script_setup_true_name_print-tmpl-modal_lang.mjs +2 -2
  49. package/es/modules/relationship-diagram-config/cache.controller.d.ts +70 -0
  50. package/es/modules/relationship-diagram-config/cache.controller.mjs +128 -0
  51. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.css +123 -0
  52. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.d.ts +381 -0
  53. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.mjs +98 -0
  54. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.css +71 -0
  55. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.d.ts +28 -0
  56. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.mjs +53 -0
  57. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.d.ts +27 -0
  58. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.mjs +2 -0
  59. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.css +107 -0
  60. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.d.ts +34 -0
  61. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.mjs +198 -0
  62. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.css +68 -0
  63. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.d.ts +31 -0
  64. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.mjs +53 -0
  65. package/es/modules/relationship-diagram-config/components/index.d.ts +5 -0
  66. package/es/modules/relationship-diagram-config/components/index.mjs +5 -0
  67. package/es/modules/relationship-diagram-config/constant/index.d.ts +72 -0
  68. package/es/modules/relationship-diagram-config/constant/index.mjs +70 -0
  69. package/es/modules/relationship-diagram-config/hooks/index.d.ts +10 -0
  70. package/es/modules/relationship-diagram-config/hooks/index.mjs +19 -0
  71. package/es/modules/relationship-diagram-config/index.d.ts +6 -0
  72. package/es/modules/relationship-diagram-config/index.mjs +28 -0
  73. package/es/modules/relationship-diagram-config/interface/i-link-provider/i-link-provider.d.ts +57 -0
  74. package/es/modules/relationship-diagram-config/interface/i-node-provider/i-node-provider.d.ts +18 -0
  75. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-link/i-relationship-diagram-link.d.ts +80 -0
  76. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-node/i-relationship-diagram-node.d.ts +82 -0
  77. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-options/i-relationship-diagram-options.d.ts +51 -0
  78. package/es/modules/relationship-diagram-config/interface/i-rule-config/i-rule-config.d.ts +135 -0
  79. package/es/modules/relationship-diagram-config/interface/index.d.ts +6 -0
  80. package/es/modules/relationship-diagram-config/link.controller.d.ts +75 -0
  81. package/es/modules/relationship-diagram-config/link.controller.mjs +121 -0
  82. package/es/modules/relationship-diagram-config/node.controller.d.ts +102 -0
  83. package/es/modules/relationship-diagram-config/node.controller.mjs +189 -0
  84. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.d.ts +23 -0
  85. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.mjs +33 -0
  86. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.d.ts +1 -0
  87. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.mjs +27 -0
  88. package/es/modules/relationship-diagram-config/plumb-plugin/index.d.ts +3 -0
  89. package/es/modules/relationship-diagram-config/plumb-plugin/index.mjs +2 -0
  90. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.css +132 -0
  91. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.d.ts +21 -0
  92. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.mjs +184 -0
  93. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.d.ts +14 -0
  94. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.mjs +17 -0
  95. package/es/modules/relationship-diagram-config/providers/index.d.ts +5 -0
  96. package/es/modules/relationship-diagram-config/providers/index.mjs +5 -0
  97. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.d.ts +14 -0
  98. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.mjs +17 -0
  99. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.d.ts +16 -0
  100. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.mjs +26 -0
  101. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.d.ts +14 -0
  102. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.mjs +17 -0
  103. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.d.ts +119 -0
  104. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.mjs +199 -0
  105. package/es/modules/relationship-diagram-config/relationship-diagram-config.css +113 -0
  106. package/es/modules/relationship-diagram-config/relationship-diagram-config.d.ts +102 -0
  107. package/es/modules/relationship-diagram-config/relationship-diagram-config.mjs +104 -0
  108. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.d.ts +44 -0
  109. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.mjs +46 -0
  110. package/es/modules/relationship-diagram-config/utils/index.d.ts +1 -0
  111. package/es/modules/relationship-diagram-config/utils/register/register.d.ts +71 -0
  112. package/es/modules/relationship-diagram-config/utils/register/register.mjs +81 -0
  113. package/es/utils/recursive.mjs +1 -0
  114. package/package.json +10 -9
  115. package/dist/components-Dw_doMp_.js +0 -1
  116. package/dist/template-tzWsbHZE.js +0 -1
  117. package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_3c4a9733_lang.css +0 -3
  118. /package/dist/{JsBarcode-DlXSdlvD.js → JsBarcode-DY53cVJ6.js} +0 -0
  119. /package/dist/{cropper-tw7tUDDe.js → cropper-DK_hFgpO.js} +0 -0
  120. /package/dist/{icon-next-picker-B_S_yInJ.js → icon-next-picker-DYiHqnNR.js} +0 -0
  121. /package/dist/{objectSpread2-DxfE1S3_.js → objectSpread2-DARadIQB.js} +0 -0
  122. /package/dist/{overlayscrollbars-vue-DtKFrHnA.js → overlayscrollbars-vue-Df-3wShc.js} +0 -0
  123. /package/dist/{rich-editor-K2Pv0Uja.js → rich-editor-DVOriJH0.js} +0 -0
  124. /package/dist/{useMonacoEditor-BO2ALW-7.js → useMonacoEditor-DqSQTg7b.js} +0 -0
@@ -0,0 +1,123 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ .gct-diagram-config-item {
66
+ width: 100%;
67
+ height: 100%;
68
+ padding: 8px 12px;
69
+ border: 1px solid #E8EBF0;
70
+ border-radius: 4px;
71
+ box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.06);
72
+ }
73
+ .gct-diagram-config-item .ant-select {
74
+ width: 100%;
75
+ }
76
+ .gct-diagram-config-item__end {
77
+ position: relative;
78
+ width: 100%;
79
+ height: 100%;
80
+ font-size: 14px;
81
+ color: #F54547;
82
+ }
83
+ .gct-diagram-config-item__end--line {
84
+ position: absolute;
85
+ top: 50%;
86
+ right: 0;
87
+ left: 0;
88
+ border-top: 1px dashed #F54547;
89
+ }
90
+
91
+ .gct-diagram-config-item__end--label {
92
+ position: absolute;
93
+ top: calc(50% - 11px);
94
+ left: calc(50% - 18px);
95
+ z-index: 1;
96
+ width: 36px;
97
+ text-align: center;
98
+ background-color: #fff;
99
+ }
100
+
101
+ .gct-diagram-config-item-title {
102
+ height: 22px;
103
+ margin-bottom: 9px;
104
+ font-size: 14px;
105
+ color: #212528;
106
+ }
107
+
108
+ .gct-diagram-config-item-content {
109
+ height: 32px;
110
+ }
111
+
112
+ .gct-diagram-config-item-select .ant-select {
113
+ width: 152px;
114
+ }
115
+ .gct-diagram-config-item-select .ant-select .ant-select-selector {
116
+ background-color: #F7F8FA;
117
+ }
118
+ .gct-diagram-config-item-select .ant-select .ant-select-selector .ant-select-selection-placeholder {
119
+ color: #C3C3C3;
120
+ }
121
+ .gct-diagram-config-item-select.is-select .ant-select-selector {
122
+ border-color: #3168EC !important;
123
+ }
@@ -0,0 +1,381 @@
1
+ import { PropType } from 'vue';
2
+ import { IRelationshipDiagramNode } from '../../interface';
3
+ import { ModelMetaDTO } from '@gct-paas/api/apaas';
4
+ interface OptionItem {
5
+ id: string;
6
+ label: string;
7
+ value: string;
8
+ refModelKey: string;
9
+ }
10
+ /**
11
+ * 节点容器
12
+ */
13
+ export declare const DiagramConfigItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
14
+ i: {
15
+ type: NumberConstructor;
16
+ required: true;
17
+ };
18
+ isEnd: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ data: {
23
+ type: PropType<IRelationshipDiagramNode>;
24
+ required: true;
25
+ };
26
+ }>, {
27
+ ns: import('@gct-paas/core').Namespace;
28
+ c: import('../../relationship-diagram-config.controller').RelationshipDiagramConfigController;
29
+ select: import('vue').Ref<string | null, string | null>;
30
+ model: import('vue').Ref<{
31
+ categoryId?: string | undefined;
32
+ children?: {
33
+ constraint?: {
34
+ convertFromFieldUniqueConstraint?: boolean | undefined;
35
+ fieldKeys?: string[] | undefined;
36
+ fieldNames?: string[] | undefined;
37
+ type?: string | undefined;
38
+ }[] | undefined;
39
+ createTime?: string | undefined;
40
+ createUserId?: string | undefined;
41
+ createUserName?: string | undefined;
42
+ deletePolicy?: number | undefined;
43
+ deleted?: number | undefined;
44
+ description?: string | undefined;
45
+ displayField?: string | undefined;
46
+ hidden?: boolean | undefined;
47
+ id?: string | undefined;
48
+ initCommitId?: string | undefined;
49
+ key?: string | undefined;
50
+ maxSubLevel?: number | undefined;
51
+ modifyTime?: string | undefined;
52
+ modifyUserId?: string | undefined;
53
+ modifyUserName?: string | undefined;
54
+ name?: string | undefined;
55
+ order?: number | undefined;
56
+ permissionEnabled?: number | undefined;
57
+ recycled?: number | undefined;
58
+ refModelKey?: string | undefined;
59
+ source?: string | undefined;
60
+ specificConfig?: IObject | undefined;
61
+ subModel?: number | undefined;
62
+ supportMessage?: number | undefined;
63
+ supportProcess?: number | undefined;
64
+ supportStateMachine?: number | undefined;
65
+ sysBuiltin?: number | undefined;
66
+ type?: string | undefined;
67
+ }[] | undefined;
68
+ constraint?: {
69
+ convertFromFieldUniqueConstraint?: boolean | undefined;
70
+ fieldKeys?: string[] | undefined;
71
+ fieldNames?: string[] | undefined;
72
+ type?: string | undefined;
73
+ }[] | undefined;
74
+ createTime?: string | undefined;
75
+ createUserId?: string | undefined;
76
+ createUserName?: string | undefined;
77
+ deletePolicy?: number | undefined;
78
+ deleted?: number | undefined;
79
+ description?: string | undefined;
80
+ displayField?: string | undefined;
81
+ fieldMetaList?: {
82
+ backendOnly?: number | undefined;
83
+ bindFieldKey?: string | undefined;
84
+ bindInfo?: string | undefined;
85
+ bizType?: string | undefined;
86
+ createTime?: string | undefined;
87
+ createType?: string | undefined;
88
+ createUserId?: string | undefined;
89
+ createUserName?: string | undefined;
90
+ defaultValue?: {
91
+ name?: string | undefined;
92
+ type?: string | undefined;
93
+ value?: IObject | undefined;
94
+ } | undefined;
95
+ defaultValueTips?: string[] | undefined;
96
+ description?: string | undefined;
97
+ draft?: number | undefined;
98
+ expression?: string | undefined;
99
+ fieldCategory?: string | undefined;
100
+ functionName?: string | undefined;
101
+ i18nConfig?: string | undefined;
102
+ id?: string | undefined;
103
+ initCommitId?: string | undefined;
104
+ key?: string | undefined;
105
+ mappingType?: string | undefined;
106
+ modelCategory?: string | undefined;
107
+ modelKey?: string | undefined;
108
+ modelMeta?: {
109
+ constraint?: {
110
+ convertFromFieldUniqueConstraint?: boolean | undefined;
111
+ fieldKeys?: string[] | undefined;
112
+ fieldNames?: string[] | undefined;
113
+ type?: string | undefined;
114
+ }[] | undefined;
115
+ createTime?: string | undefined;
116
+ createUserId?: string | undefined;
117
+ createUserName?: string | undefined;
118
+ deletePolicy?: number | undefined;
119
+ deleted?: number | undefined;
120
+ description?: string | undefined;
121
+ displayField?: string | undefined;
122
+ hidden?: boolean | undefined;
123
+ id?: string | undefined;
124
+ initCommitId?: string | undefined;
125
+ key?: string | undefined;
126
+ maxSubLevel?: number | undefined;
127
+ modifyTime?: string | undefined;
128
+ modifyUserId?: string | undefined;
129
+ modifyUserName?: string | undefined;
130
+ name?: string | undefined;
131
+ order?: number | undefined;
132
+ permissionEnabled?: number | undefined;
133
+ recycled?: number | undefined;
134
+ refModelKey?: string | undefined;
135
+ source?: string | undefined;
136
+ specificConfig?: IObject | undefined;
137
+ subModel?: number | undefined;
138
+ supportMessage?: number | undefined;
139
+ supportProcess?: number | undefined;
140
+ supportStateMachine?: number | undefined;
141
+ sysBuiltin?: number | undefined;
142
+ type?: string | undefined;
143
+ } | undefined;
144
+ modelName?: string | undefined;
145
+ modelType?: string | undefined;
146
+ modifyTime?: string | undefined;
147
+ modifyUserId?: string | undefined;
148
+ modifyUserName?: string | undefined;
149
+ name?: string | undefined;
150
+ originFieldKey?: string | undefined;
151
+ originModelKey?: string | undefined;
152
+ parentField?: number | undefined;
153
+ rdoUniqueFieldKey?: boolean | undefined;
154
+ refModelSource?: string | undefined;
155
+ refModelType?: string | undefined;
156
+ relationModelName?: string | undefined;
157
+ required?: number | undefined;
158
+ sortNum?: number | undefined;
159
+ source?: string | undefined;
160
+ specificConfig?: IObject | undefined;
161
+ sysBuiltin?: number | undefined;
162
+ type?: string | undefined;
163
+ uniqueConstraint?: {
164
+ checkStrategy?: string | undefined;
165
+ fieldKeys?: string[] | undefined;
166
+ type?: string | undefined;
167
+ } | undefined;
168
+ }[] | undefined;
169
+ hidden?: boolean | undefined;
170
+ id?: string | undefined;
171
+ initCommitId?: string | undefined;
172
+ key?: string | undefined;
173
+ maxSubLevel?: number | undefined;
174
+ modelCategory?: string | undefined;
175
+ modelTraceSettingEnabled?: number | undefined;
176
+ modifyTime?: string | undefined;
177
+ modifyUserId?: string | undefined;
178
+ modifyUserName?: string | undefined;
179
+ name?: string | undefined;
180
+ order?: number | undefined;
181
+ permissionEnabled?: number | undefined;
182
+ recycled?: number | undefined;
183
+ refModelKey?: string | undefined;
184
+ source?: string | undefined;
185
+ specificConfig?: IObject | undefined;
186
+ subModel?: number | undefined;
187
+ supportMessage?: number | undefined;
188
+ supportProcess?: number | undefined;
189
+ supportStateMachine?: number | undefined;
190
+ sysBuiltin?: number | undefined;
191
+ type?: string | undefined;
192
+ }, ModelMetaDTO | {
193
+ categoryId?: string | undefined;
194
+ children?: {
195
+ constraint?: {
196
+ convertFromFieldUniqueConstraint?: boolean | undefined;
197
+ fieldKeys?: string[] | undefined;
198
+ fieldNames?: string[] | undefined;
199
+ type?: string | undefined;
200
+ }[] | undefined;
201
+ createTime?: string | undefined;
202
+ createUserId?: string | undefined;
203
+ createUserName?: string | undefined;
204
+ deletePolicy?: number | undefined;
205
+ deleted?: number | undefined;
206
+ description?: string | undefined;
207
+ displayField?: string | undefined;
208
+ hidden?: boolean | undefined;
209
+ id?: string | undefined;
210
+ initCommitId?: string | undefined;
211
+ key?: string | undefined;
212
+ maxSubLevel?: number | undefined;
213
+ modifyTime?: string | undefined;
214
+ modifyUserId?: string | undefined;
215
+ modifyUserName?: string | undefined;
216
+ name?: string | undefined;
217
+ order?: number | undefined;
218
+ permissionEnabled?: number | undefined;
219
+ recycled?: number | undefined;
220
+ refModelKey?: string | undefined;
221
+ source?: string | undefined;
222
+ specificConfig?: IObject | undefined;
223
+ subModel?: number | undefined;
224
+ supportMessage?: number | undefined;
225
+ supportProcess?: number | undefined;
226
+ supportStateMachine?: number | undefined;
227
+ sysBuiltin?: number | undefined;
228
+ type?: string | undefined;
229
+ }[] | undefined;
230
+ constraint?: {
231
+ convertFromFieldUniqueConstraint?: boolean | undefined;
232
+ fieldKeys?: string[] | undefined;
233
+ fieldNames?: string[] | undefined;
234
+ type?: string | undefined;
235
+ }[] | undefined;
236
+ createTime?: string | undefined;
237
+ createUserId?: string | undefined;
238
+ createUserName?: string | undefined;
239
+ deletePolicy?: number | undefined;
240
+ deleted?: number | undefined;
241
+ description?: string | undefined;
242
+ displayField?: string | undefined;
243
+ fieldMetaList?: {
244
+ backendOnly?: number | undefined;
245
+ bindFieldKey?: string | undefined;
246
+ bindInfo?: string | undefined;
247
+ bizType?: string | undefined;
248
+ createTime?: string | undefined;
249
+ createType?: string | undefined;
250
+ createUserId?: string | undefined;
251
+ createUserName?: string | undefined;
252
+ defaultValue?: {
253
+ name?: string | undefined;
254
+ type?: string | undefined;
255
+ value?: IObject | undefined;
256
+ } | undefined;
257
+ defaultValueTips?: string[] | undefined;
258
+ description?: string | undefined;
259
+ draft?: number | undefined;
260
+ expression?: string | undefined;
261
+ fieldCategory?: string | undefined;
262
+ functionName?: string | undefined;
263
+ i18nConfig?: string | undefined;
264
+ id?: string | undefined;
265
+ initCommitId?: string | undefined;
266
+ key?: string | undefined;
267
+ mappingType?: string | undefined;
268
+ modelCategory?: string | undefined;
269
+ modelKey?: string | undefined;
270
+ modelMeta?: {
271
+ constraint?: {
272
+ convertFromFieldUniqueConstraint?: boolean | undefined;
273
+ fieldKeys?: string[] | undefined;
274
+ fieldNames?: string[] | undefined;
275
+ type?: string | undefined;
276
+ }[] | undefined;
277
+ createTime?: string | undefined;
278
+ createUserId?: string | undefined;
279
+ createUserName?: string | undefined;
280
+ deletePolicy?: number | undefined;
281
+ deleted?: number | undefined;
282
+ description?: string | undefined;
283
+ displayField?: string | undefined;
284
+ hidden?: boolean | undefined;
285
+ id?: string | undefined;
286
+ initCommitId?: string | undefined;
287
+ key?: string | undefined;
288
+ maxSubLevel?: number | undefined;
289
+ modifyTime?: string | undefined;
290
+ modifyUserId?: string | undefined;
291
+ modifyUserName?: string | undefined;
292
+ name?: string | undefined;
293
+ order?: number | undefined;
294
+ permissionEnabled?: number | undefined;
295
+ recycled?: number | undefined;
296
+ refModelKey?: string | undefined;
297
+ source?: string | undefined;
298
+ specificConfig?: IObject | undefined;
299
+ subModel?: number | undefined;
300
+ supportMessage?: number | undefined;
301
+ supportProcess?: number | undefined;
302
+ supportStateMachine?: number | undefined;
303
+ sysBuiltin?: number | undefined;
304
+ type?: string | undefined;
305
+ } | undefined;
306
+ modelName?: string | undefined;
307
+ modelType?: string | undefined;
308
+ modifyTime?: string | undefined;
309
+ modifyUserId?: string | undefined;
310
+ modifyUserName?: string | undefined;
311
+ name?: string | undefined;
312
+ originFieldKey?: string | undefined;
313
+ originModelKey?: string | undefined;
314
+ parentField?: number | undefined;
315
+ rdoUniqueFieldKey?: boolean | undefined;
316
+ refModelSource?: string | undefined;
317
+ refModelType?: string | undefined;
318
+ relationModelName?: string | undefined;
319
+ required?: number | undefined;
320
+ sortNum?: number | undefined;
321
+ source?: string | undefined;
322
+ specificConfig?: IObject | undefined;
323
+ sysBuiltin?: number | undefined;
324
+ type?: string | undefined;
325
+ uniqueConstraint?: {
326
+ checkStrategy?: string | undefined;
327
+ fieldKeys?: string[] | undefined;
328
+ type?: string | undefined;
329
+ } | undefined;
330
+ }[] | undefined;
331
+ hidden?: boolean | undefined;
332
+ id?: string | undefined;
333
+ initCommitId?: string | undefined;
334
+ key?: string | undefined;
335
+ maxSubLevel?: number | undefined;
336
+ modelCategory?: string | undefined;
337
+ modelTraceSettingEnabled?: number | undefined;
338
+ modifyTime?: string | undefined;
339
+ modifyUserId?: string | undefined;
340
+ modifyUserName?: string | undefined;
341
+ name?: string | undefined;
342
+ order?: number | undefined;
343
+ permissionEnabled?: number | undefined;
344
+ recycled?: number | undefined;
345
+ refModelKey?: string | undefined;
346
+ source?: string | undefined;
347
+ specificConfig?: IObject | undefined;
348
+ subModel?: number | undefined;
349
+ supportMessage?: number | undefined;
350
+ supportProcess?: number | undefined;
351
+ supportStateMachine?: number | undefined;
352
+ sysBuiltin?: number | undefined;
353
+ type?: string | undefined;
354
+ }>;
355
+ options: import('vue').Ref<{
356
+ id: string;
357
+ label: string;
358
+ value: string;
359
+ refModelKey: string;
360
+ }[], OptionItem[] | {
361
+ id: string;
362
+ label: string;
363
+ value: string;
364
+ refModelKey: string;
365
+ }[]>;
366
+ onChange: (val: string | null, data: OptionItem) => void;
367
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
368
+ i: {
369
+ type: NumberConstructor;
370
+ required: true;
371
+ };
372
+ isEnd: {
373
+ type: BooleanConstructor;
374
+ required: true;
375
+ };
376
+ data: {
377
+ type: PropType<IRelationshipDiagramNode>;
378
+ required: true;
379
+ };
380
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
381
+ export default DiagramConfigItem;
@@ -0,0 +1,98 @@
1
+ import { useRootController } from "../../hooks/index.mjs";
2
+ import './diagram-config-item.css';/* empty css */
3
+ import { createVNode, defineComponent, ref, resolveComponent, watch } from "vue";
4
+ import { clone } from "lodash-es";
5
+ import { FIELD_TYPE, t, useNamespace } from "@gct-paas/core";
6
+ //#region src/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.tsx
7
+ /**
8
+ * 节点容器
9
+ */
10
+ var DiagramConfigItem = /* @__PURE__ */ defineComponent({
11
+ name: "DiagramConfigItem",
12
+ props: {
13
+ i: {
14
+ type: Number,
15
+ required: true
16
+ },
17
+ isEnd: {
18
+ type: Boolean,
19
+ required: true
20
+ },
21
+ data: {
22
+ type: Object,
23
+ required: true
24
+ }
25
+ },
26
+ setup(props) {
27
+ const ns = useNamespace("diagram-config-item");
28
+ const select = ref(props.data.value || null);
29
+ watch(props.data, () => {
30
+ select.value = props.data.value || null;
31
+ });
32
+ const types = [
33
+ FIELD_TYPE.REF,
34
+ FIELD_TYPE.REF_MULTI,
35
+ FIELD_TYPE.RDO_REF,
36
+ FIELD_TYPE.MASTERSLAVE
37
+ ];
38
+ const c = useRootController();
39
+ const model = ref({});
40
+ const options = ref([]);
41
+ const onChange = (val, data) => {
42
+ const updateData = clone(props.data);
43
+ if (updateData.value) c.node.cache.clear(updateData);
44
+ if (data) Object.assign(updateData, {
45
+ modelCategory: model.value.modelCategory ?? "entity",
46
+ value: val,
47
+ label: data.label,
48
+ id_: data.id
49
+ });
50
+ else Object.assign(updateData, {
51
+ modelCategory: null,
52
+ value: null,
53
+ label: null,
54
+ id_: null
55
+ });
56
+ c.node.update(updateData);
57
+ if (val) c.node.cache.reset(updateData);
58
+ if (!c.link.getBySource(props.data.id) && data) c.node.create({ modelKey: data.refModelKey });
59
+ };
60
+ const load = async () => {
61
+ model.value = await c.getModel(props.data.modelKey);
62
+ if (model.value.fieldMetaList) model.value.fieldMetaList.filter((item) => types.includes(item.type)).forEach((item) => {
63
+ options.value.push({
64
+ id: item.id,
65
+ label: item.name,
66
+ value: item.key,
67
+ refModelKey: item.bindInfo
68
+ });
69
+ });
70
+ };
71
+ load();
72
+ return {
73
+ ns,
74
+ c,
75
+ select,
76
+ model,
77
+ options,
78
+ onChange
79
+ };
80
+ },
81
+ render() {
82
+ return createVNode("div", { "class": this.ns.b() }, [createVNode("div", { "class": this.ns.b("title") }, [createVNode("span", null, [this.model.name])]), createVNode("div", { "class": [this.ns.b("content")] }, [this.isEnd ? createVNode("div", { "class": this.ns.e("end") }, [createVNode("div", { "class": this.ns.em("end", "line") }, null), createVNode("div", { "class": this.ns.em("end", "label") }, [t("sys.pageDesigner.end")])]) : this.data.noSelectField !== true ? createVNode(resolveComponent("a-select"), {
83
+ "class": [
84
+ this.ns.b("select"),
85
+ this.ns.is("select", !!this.select),
86
+ "handle-select"
87
+ ],
88
+ "value": this.select,
89
+ "onUpdate:value": ($event) => this.select = $event,
90
+ "options": this.options,
91
+ "placeholder": t("sys.pageDesigner.dataLinkage.selectPlaceholder"),
92
+ "allowClear": true,
93
+ "onChange": this.onChange
94
+ }, null) : null])]);
95
+ }
96
+ });
97
+ //#endregion
98
+ export { DiagramConfigItem, DiagramConfigItem as default };
@@ -0,0 +1,71 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ .gct-diagram-config-item-container {
66
+ position: absolute;
67
+ top: 0;
68
+ left: 0;
69
+ width: 178px;
70
+ height: 84px;
71
+ }
@@ -0,0 +1,28 @@
1
+ export declare const DiagramConfigItemContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ i: {
3
+ type: NumberConstructor;
4
+ required: true;
5
+ };
6
+ id: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ }>, {
11
+ ns: import('@gct-paas/core').Namespace;
12
+ calcPosStyle: () => {
13
+ top: string;
14
+ left: string;
15
+ };
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("mounted" | "unmounted")[], "mounted" | "unmounted", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ i: {
18
+ type: NumberConstructor;
19
+ required: true;
20
+ };
21
+ id: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ }>> & Readonly<{
26
+ onMounted?: ((...args: any[]) => any) | undefined;
27
+ onUnmounted?: ((...args: any[]) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;