@gct-paas/design 0.1.6-dev.9 → 6.0.0-dev.10

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 (93) hide show
  1. package/README.md +157 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/loader.esm.min.js +2 -1
  4. package/es/components/field-transfer/components/field-transfer-modal.vue.mjs +2 -2
  5. package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_style_index_0_scoped_2f34388d_lang.css +8 -0
  6. package/es/components/index.d.ts +0 -4
  7. package/es/components/index.mjs +0 -5
  8. package/es/components/mobile-container/mobile-container.d.ts +2 -2
  9. package/es/components/multi-field/multi-field-display.vue.mjs +2 -2
  10. package/es/components/multi-field/multi-field-display.vue_vue_type_script_setup_true_lang.mjs +1 -1
  11. package/es/components/multi-field/{multi-field-display.vue_vue_type_style_index_0_scoped_802ade7b_lang.css → multi-field-display.vue_vue_type_style_index_0_scoped_83390705_lang.css} +1 -1
  12. package/es/components/user-occupy/index.d.ts +0 -1
  13. package/es/components/user-occupy/index.mjs +0 -1
  14. package/es/components/user-occupy/user-lock.vue.mjs +2 -2
  15. package/es/components/user-occupy/user-lock.vue_vue_type_script_setup_true_lang.mjs +2 -1
  16. package/es/components/user-occupy/user-lock.vue_vue_type_style_index_0_scoped_143659f6_lang.css +29 -0
  17. package/es/components/user-occupy/user-occupy.vue.mjs +2 -2
  18. package/es/components/user-occupy/user-occupy.vue_vue_type_script_setup_true_lang.mjs +2 -1
  19. package/es/components/user-occupy/{user-occupy.vue_vue_type_style_index_0_scoped_9b136922_lang.css → user-occupy.vue_vue_type_style_index_0_scoped_1234af11_lang.css} +6 -6
  20. package/es/constant/index.d.ts +5 -0
  21. package/es/constant/index.mjs +6 -1
  22. package/es/constant/page-designer.d.ts +9 -36
  23. package/es/constant/page-designer.mjs +2 -32
  24. package/es/{components/user-occupy → hooks/design-view/components}/useUserOccupy.d.ts +3 -3
  25. package/es/{components/user-occupy → hooks/design-view/components}/useUserOccupy.mjs +50 -28
  26. package/es/hooks/design-view/design-state.d.ts +91 -1
  27. package/es/hooks/design-view/design-state.mjs +7 -7
  28. package/es/hooks/design-view/designer/useDesignCache.mjs +2 -3
  29. package/es/hooks/design-view/designer/useDesignHistory.mjs +2 -1
  30. package/es/hooks/design-view/designer/useDesignPreview.mjs +15 -5
  31. package/es/hooks/design-view/designer/useDesignSave.d.ts +2 -2
  32. package/es/hooks/design-view/designer/useDesignSave.mjs +163 -24
  33. package/es/hooks/design-view/global/useGlobal.d.ts +3 -3
  34. package/es/hooks/design-view/global/useGlobal.mjs +24 -9
  35. package/es/hooks/design-view/layout/useToolkit.d.ts +1 -1
  36. package/es/hooks/design-view/layout/useToolkit.mjs +165 -82
  37. package/es/hooks/design-view/page/usePage.d.ts +18 -8
  38. package/es/hooks/design-view/page/usePage.mjs +210 -12
  39. package/es/hooks/design-view/useDesigner.d.ts +6 -2
  40. package/es/hooks/design-view/useDesigner.mjs +14 -3
  41. package/es/hooks/design-view/widget/useSelectedWidget.mjs +55 -28
  42. package/es/hooks/design-view/widget/useWidget.mjs +2 -1
  43. package/es/hooks/index.d.ts +1 -1
  44. package/es/hooks/index.mjs +1 -1
  45. package/es/index.mjs +9 -12
  46. package/es/interface/index.d.ts +0 -1
  47. package/es/locale/auto-register.d.ts +2 -0
  48. package/es/locale/auto-register.mjs +25 -0
  49. package/es/locale/sys/app.mjs +6 -0
  50. package/es/locale/sys/appDesigner.mjs +9 -0
  51. package/es/locale/sys/cardDesign.d.ts +4 -4
  52. package/es/locale/sys/cardDesign.mjs +17 -0
  53. package/es/locale/sys/component.mjs +21 -0
  54. package/es/locale/sys/model.mjs +10 -0
  55. package/es/locale/sys/pageDesigner.mjs +32 -0
  56. package/es/locale/sys/platform.mjs +11 -0
  57. package/es/locale/sys.d.ts +7 -5
  58. package/es/locale/sys.mjs +26 -0
  59. package/es/register/designer-register/designer-register.d.ts +6 -3
  60. package/es/register/designer-register/designer-register.mjs +20 -14
  61. package/es/register/index.d.ts +1 -0
  62. package/es/register/index.mjs +1 -0
  63. package/es/register/props-editor/props-editor.register.d.ts +24 -0
  64. package/es/register/props-editor/props-editor.register.mjs +30 -0
  65. package/es/schema/begin-drag/begin-drag.mjs +1 -1
  66. package/es/schema/common-config/common-field-editor-config.mjs +7 -3
  67. package/es/schema/common-config/display-editor-config.mjs +1 -1
  68. package/es/schema/field/index.mjs +17 -3
  69. package/es/schema/modal/modal.mjs +3 -4
  70. package/es/setup-app.d.ts +2 -1
  71. package/es/setup-app.mjs +3 -1
  72. package/es/types/index.d.ts +2 -1
  73. package/es/utils/design-interceptors/design-interceptors.mjs +1 -1
  74. package/package.json +12 -12
  75. package/es/components/design-save-tip/design-save-tip.css +0 -107
  76. package/es/components/design-save-tip/design-save-tip.d.ts +0 -44
  77. package/es/components/design-save-tip/design-save-tip.mjs +0 -81
  78. package/es/components/design-step-check/design-step-check.css +0 -133
  79. package/es/components/design-step-check/design-step-check.d.ts +0 -30
  80. package/es/components/design-step-check/design-step-check.mjs +0 -96
  81. package/es/components/design-view-layout/design-view-layout.css +0 -157
  82. package/es/components/design-view-layout/design-view-layout.d.ts +0 -1
  83. package/es/components/design-view-layout/design-view-layout.mjs +0 -139
  84. package/es/components/field-transfer/components/field-transfer-modal.vue_vue_type_style_index_0_scoped_711e6992_lang.css +0 -8
  85. package/es/components/modal-name-editor/modal-name-editor.css +0 -117
  86. package/es/components/modal-name-editor/modal-name-editor.d.ts +0 -34
  87. package/es/components/modal-name-editor/modal-name-editor.mjs +0 -124
  88. package/es/components/user-occupy/occupy.const.d.ts +0 -4
  89. package/es/components/user-occupy/occupy.const.mjs +0 -7
  90. package/es/components/user-occupy/user-lock.vue_vue_type_style_index_0_scoped_b40d46ff_lang.css +0 -29
  91. package/es/hooks/develop/useKeyParser.d.ts +0 -16
  92. package/es/hooks/develop/useKeyParser.mjs +0 -79
  93. package/es/interface/i-view-step/i-view-step.d.ts +0 -32
@@ -1,29 +0,0 @@
1
- .user-lock[data-v-b40d46ff] {
2
- color: rgba(255, 255, 255, 0.72);
3
- cursor: pointer;
4
- }
5
- .user-lock .user-lock-info[data-v-b40d46ff] {
6
- padding-right: 4px;
7
- color: rgba(255, 255, 255, 0.72);
8
- }
9
- .user-lock .iconfont[data-v-b40d46ff] {
10
- color: rgba(255, 255, 255, 0.72);
11
- margin-right: 6px;
12
- margin-left: 6px;
13
- }
14
- .user-lock[data-v-b40d46ff]:hover {
15
- color: #ffffff;
16
- }
17
- .user-lock:hover .iconfont[data-v-b40d46ff],
18
- .user-lock:hover .user-lock-info[data-v-b40d46ff] {
19
- color: #ffffff;
20
- }
21
- .user-lock.locked[data-v-b40d46ff] {
22
- color: #ff8c4b;
23
- }
24
- .user-lock.locked .iconfont[data-v-b40d46ff] {
25
- color: #ff8c4b;
26
- }
27
- .user-lock.locked .user-lock-info[data-v-b40d46ff] {
28
- color: #ffffff;
29
- }
@@ -1,16 +0,0 @@
1
- import { Ref } from 'vue';
2
- /**
3
- * key值转换器
4
- * @param prefix 前缀
5
- * @param suffix 后缀 仅空字符串代表不需要后缀
6
- * @returns
7
- */
8
- export declare function useKeyParser(prefix: Ref<string | undefined> | string, suffix?: Ref<string | undefined> | string): {
9
- keyPrefix: Ref<string, string>;
10
- keySuffix: Ref<string, string>;
11
- keyReset: () => void;
12
- keyPad: (key: string) => string | undefined;
13
- keyClip: (formKey: string) => string;
14
- keyPrePad: (key: string) => string | undefined;
15
- keyPreClip: (formKey: string) => string;
16
- };
@@ -1,79 +0,0 @@
1
- import { ProjectName } from "@gct-paas/core";
2
- import { isRef, ref, unref, watch } from "vue";
3
- //#region src/hooks/develop/useKeyParser.ts
4
- var SourceTypeEnum = /* @__PURE__ */ function(SourceTypeEnum) {
5
- SourceTypeEnum["SELF_BUILT"] = "SELF_BUILT";
6
- SourceTypeEnum["IMPORT"] = "IMPORT";
7
- return SourceTypeEnum;
8
- }(SourceTypeEnum || {});
9
- /**
10
- * key值转换器
11
- * @param prefix 前缀
12
- * @param suffix 后缀 仅空字符串代表不需要后缀
13
- * @returns
14
- */
15
- function useKeyParser(prefix, suffix) {
16
- const hasDollar = ref(false);
17
- const upperCase = ref(false);
18
- const keyPrefix = ref("");
19
- const keySuffix = ref("");
20
- const branchId = _gct.store.context.bid || "";
21
- function keyReset() {
22
- const prefixString = unref(prefix);
23
- const suffixString = unref(suffix);
24
- if (!prefixString) return;
25
- hasDollar.value = prefixString.startsWith("$");
26
- upperCase.value = /\$?[A-Z]+_/.test(prefixString);
27
- keyPrefix.value = (hasDollar.value ? "$" : "") + (_gct.store.appInfo.sourceType === SourceTypeEnum.IMPORT ? upperCase.value ? "I" : "i" : "") + (hasDollar.value ? prefixString.substring(1) : prefixString) + (prefixString.endsWith("_") ? "" : "_");
28
- keySuffix.value = suffixString === "" ? "" : _gct.store.projectName === ProjectName.WEB_RENDER ? "" : branchId ? "_" + (upperCase.value ? branchId.toUpperCase() : branchId) : "";
29
- }
30
- keyReset();
31
- if (isRef(prefix)) watch(prefix, () => {
32
- keyReset();
33
- });
34
- if (isRef(suffix)) watch(suffix, () => {
35
- keyReset();
36
- });
37
- /**
38
- * 补全key信息 包含 导入信息 模块信息 分支信息
39
- * @param key
40
- * @returns
41
- */
42
- function keyPad(key) {
43
- if (!key) return;
44
- return `${keyPrefix.value}${key}${keySuffix.value}`;
45
- }
46
- /**
47
- * 裁剪key
48
- * @param key
49
- */
50
- function keyClip(formKey) {
51
- const id = unref(prefix).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1];
52
- const prefixPos = formKey.indexOf(id) + id.length;
53
- const suffixPos = !keySuffix.value || unref(suffix) === "" ? formKey.length : formKey.lastIndexOf("_");
54
- keyPrefix.value = formKey.substring(0, prefixPos + 1);
55
- keySuffix.value = formKey.substring(suffixPos);
56
- return formKey.substring(prefixPos + 1, suffixPos);
57
- }
58
- function keyPreClip(formKey) {
59
- const id = unref(prefix).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1];
60
- const prefixPos = formKey.indexOf(id) + id.length;
61
- keyPrefix.value = formKey.substring(0, prefixPos + 1);
62
- return formKey.substring(prefixPos + 1);
63
- }
64
- function keyPrePad(key) {
65
- if (!key) return;
66
- return `${keyPrefix.value}${key}`;
67
- }
68
- return {
69
- keyPrefix,
70
- keySuffix,
71
- keyReset,
72
- keyPad,
73
- keyClip,
74
- keyPrePad,
75
- keyPreClip
76
- };
77
- }
78
- //#endregion
79
- export { useKeyParser };
@@ -1,32 +0,0 @@
1
- /**
2
- * 设计视图步骤接口
3
- *
4
- * @export
5
- * @interface IViewStep
6
- */
7
- export interface IViewStep {
8
- /**
9
- * 步骤标识符
10
- *
11
- * @type {string}
12
- */
13
- tag: string;
14
- /**
15
- * 步骤名称
16
- *
17
- * @type {string}
18
- */
19
- name: string;
20
- /**
21
- * 步骤图标(只支持 svg)
22
- *
23
- * @type {string}
24
- */
25
- icon?: string;
26
- /**
27
- * 步骤描述
28
- *
29
- * @type {string}
30
- */
31
- description?: string;
32
- }