@gct-paas/core-web 0.1.4-dev.8 → 0.1.4-dev.9

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 (118) hide show
  1. package/dist/index-BghCpvxN.js +76 -0
  2. package/dist/index-PLrMc0gl.cjs +76 -0
  3. package/dist/index-oVPMi6Ep.js +29160 -0
  4. package/dist/index.esm.min.mjs +34 -24962
  5. package/dist/index.min.cjs +1 -67
  6. package/dist/index.min.css +1 -1
  7. package/dist/index.system.min.js +1 -67
  8. package/dist/monaco-editor-B8X-ou0h.js +20245 -0
  9. package/dist/monaco-editor-Bdgpd_KL.cjs +19 -0
  10. package/dist/monaco-editor-NIWDtQNB.js +19 -0
  11. package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
  12. package/es/components/app-modal/app-modal-component.css +149 -0
  13. package/es/components/app-modal/app-modal-component.d.ts +26 -0
  14. package/es/components/app-modal/app-modal-component.mjs +140 -0
  15. package/es/components/base-button/base-button.css +74 -0
  16. package/es/components/base-button/base-button.vue.d.ts +173 -0
  17. package/es/components/base-button/base-button.vue.mjs +7 -0
  18. package/es/components/base-button/base-button.vue3.mjs +179 -0
  19. package/es/components/basic-button/basic-button.css +25 -0
  20. package/es/components/basic-button/basic-button.vue.d.ts +100 -0
  21. package/es/components/basic-button/basic-button.vue.mjs +7 -0
  22. package/es/components/basic-button/basic-button.vue3.mjs +130 -0
  23. package/es/components/code-editor/code-editor.d.ts +1 -1
  24. package/es/components/index.d.ts +10 -1
  25. package/es/components/index.mjs +22 -0
  26. package/es/components/layout/flex-container/flex-container.mjs +94 -0
  27. package/es/components/layout/flex-item/flex-item.mjs +55 -0
  28. package/es/components/layout/grid-container/grid-container.mjs +51 -0
  29. package/es/components/layout/view-container/view-container.mjs +38 -0
  30. package/es/components/svg-icon/svg-icon.css +73 -0
  31. package/es/components/svg-icon/svg-icon.vue.d.ts +40 -0
  32. package/es/components/svg-icon/svg-icon.vue.mjs +50 -0
  33. package/es/components/svg-icon/svg-icon.vue3.mjs +6 -0
  34. package/es/create-app-vue.d.ts +9 -0
  35. package/es/create-app-vue.mjs +17 -0
  36. package/es/directives/drag-resize.d.ts +4 -0
  37. package/es/directives/drag-resize.mjs +42 -0
  38. package/es/directives/index.d.ts +8 -0
  39. package/es/directives/index.mjs +9 -0
  40. package/es/directives/target-loading.d.ts +4 -0
  41. package/es/directives/target-loading.mjs +40 -0
  42. package/es/hooks/index.d.ts +1 -0
  43. package/es/hooks/useDragLine.d.ts +6 -0
  44. package/es/hooks/useDragLine.mjs +79 -0
  45. package/es/index.d.ts +5 -4
  46. package/es/index.mjs +29 -13
  47. package/es/modules/code-editor/index.d.ts +163 -0
  48. package/es/modules/code-editor/index.mjs +8 -0
  49. package/es/modules/code-editor/monaco-editor.css +49 -0
  50. package/es/modules/code-editor/monaco-editor.vue.d.ts +143 -0
  51. package/es/modules/code-editor/monaco-editor.vue.mjs +7 -0
  52. package/es/modules/code-editor/monaco-editor.vue2.mjs +440 -0
  53. package/es/modules/code-editor/useEditorConsole.d.ts +54 -0
  54. package/es/modules/code-editor/useEditorConsole.mjs +194 -0
  55. package/es/modules/code-editor/useMonacoEditor.d.ts +26 -0
  56. package/es/modules/code-editor/useMonacoEditor.mjs +26 -0
  57. package/es/modules/color-picker/index.d.ts +2 -0
  58. package/es/modules/color-picker/src/ColorPicker.css +16 -0
  59. package/es/modules/color-picker/src/ColorPicker.vue.d.ts +49 -0
  60. package/es/modules/color-picker/src/ColorPicker.vue.mjs +8 -0
  61. package/es/modules/color-picker/src/ColorPicker.vue2.mjs +545 -0
  62. package/es/modules/color-picker/src/ColorPicker2.css +156 -0
  63. package/es/modules/gct-dnd/constants/index.d.ts +7 -9
  64. package/es/modules/gct-dnd/constants/index.mjs +18 -7
  65. package/es/modules/global-modal/index.d.ts +5 -0
  66. package/es/modules/global-modal/index.mjs +16 -0
  67. package/es/modules/global-modal/src/BasicModal.vue.d.ts +518 -0
  68. package/es/modules/global-modal/src/BasicModal.vue.mjs +221 -0
  69. package/es/modules/global-modal/src/BasicModal.vue2.mjs +5 -0
  70. package/es/modules/global-modal/src/components/GlboalModal.d.ts +251 -0
  71. package/es/modules/global-modal/src/components/GlboalModal.mjs +40 -0
  72. package/es/modules/global-modal/src/components/ModalClose.css +95 -0
  73. package/es/modules/global-modal/src/components/ModalClose.vue.d.ts +27 -0
  74. package/es/modules/global-modal/src/components/ModalClose.vue.mjs +79 -0
  75. package/es/modules/global-modal/src/components/ModalClose.vue3.mjs +6 -0
  76. package/es/modules/global-modal/src/components/ModalFooter.vue.d.ts +270 -0
  77. package/es/modules/global-modal/src/components/ModalFooter.vue.mjs +44 -0
  78. package/es/modules/global-modal/src/components/ModalFooter.vue2.mjs +5 -0
  79. package/es/modules/global-modal/src/components/ModalHeader.vue.d.ts +17 -0
  80. package/es/modules/global-modal/src/components/ModalHeader.vue.mjs +11 -0
  81. package/es/modules/global-modal/src/components/ModalHeader.vue2.mjs +13 -0
  82. package/es/modules/global-modal/src/components/ModalWrapper.vue.d.ts +95 -0
  83. package/es/modules/global-modal/src/components/ModalWrapper.vue.mjs +26 -0
  84. package/es/modules/global-modal/src/components/ModalWrapper.vue2.mjs +136 -0
  85. package/es/modules/global-modal/src/hooks/useModal.d.ts +6 -0
  86. package/es/modules/global-modal/src/hooks/useModal.mjs +120 -0
  87. package/es/modules/global-modal/src/hooks/useModalContext.d.ts +5 -0
  88. package/es/modules/global-modal/src/hooks/useModalContext.mjs +11 -0
  89. package/es/modules/global-modal/src/hooks/useModalDrag.d.ts +7 -0
  90. package/es/modules/global-modal/src/hooks/useModalDrag.mjs +82 -0
  91. package/es/modules/global-modal/src/hooks/useModalFullScreen.d.ts +11 -0
  92. package/es/modules/global-modal/src/hooks/useModalFullScreen.mjs +16 -0
  93. package/es/modules/global-modal/src/index.css +153 -0
  94. package/es/modules/global-modal/src/props.d.ts +156 -0
  95. package/es/modules/global-modal/src/props.mjs +57 -0
  96. package/es/modules/global-modal/src/typing.d.ts +174 -0
  97. package/es/modules/target-loading/index.d.ts +4 -0
  98. package/es/modules/target-loading/src/createLoading.d.ts +13 -0
  99. package/es/modules/target-loading/src/createLoading.mjs +57 -0
  100. package/es/modules/target-loading/src/target-loading.css +18 -0
  101. package/es/modules/target-loading/src/target-loading.vue.d.ts +57 -0
  102. package/es/modules/target-loading/src/target-loading.vue.mjs +52 -0
  103. package/es/modules/target-loading/src/target-loading.vue3.mjs +7 -0
  104. package/es/modules/target-loading/src/typing.d.ts +9 -0
  105. package/es/modules/target-loading/src/useLoading.d.ts +9 -0
  106. package/es/setup-app.d.ts +1 -0
  107. package/es/setup-app.mjs +4 -0
  108. package/es/types/index.d.ts +190 -0
  109. package/es/utils/index.d.ts +4 -1
  110. package/es/utils/message-util/message-util.d.ts +7 -0
  111. package/es/utils/message-util/message-util.mjs +26 -0
  112. package/es/utils/monaco-loader/monaco-loader.d.ts +59 -0
  113. package/es/utils/monaco-loader/monaco-loader.mjs +88 -0
  114. package/es/utils/overlay-controller/overlay-controller.d.ts +18 -0
  115. package/es/utils/overlay-controller/overlay-controller.mjs +23 -0
  116. package/es/widgets/gct-edit-form/gct-edit-form.d.ts +1 -1
  117. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +1 -1
  118. package/package.json +14 -6
@@ -0,0 +1,156 @@
1
+ .color-picker__popover .ant-popover-inner-content {
2
+ padding: 0;
3
+ }
4
+ .color-picker__popover .color-picker {
5
+ z-index: 9;
6
+ width: var(--w);
7
+ padding: 10px;
8
+ background: #fff;
9
+ box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
10
+ user-select: none;
11
+ /* 饱和度和亮度 */
12
+ /* 色调 透明度 */
13
+ /* 颜色方块 */
14
+ /* 颜色的值 hex rgba */
15
+ }
16
+ .color-picker__popover .color-picker-saturation {
17
+ position: relative;
18
+ width: 100%;
19
+ height: 200px;
20
+ margin-bottom: 10px;
21
+ box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
22
+ cursor: pointer;
23
+ /* 圆圈 */
24
+ }
25
+ .color-picker__popover .color-picker-saturation div {
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ width: 100%;
30
+ height: 100%;
31
+ }
32
+ .color-picker__popover .color-picker-saturation .point {
33
+ position: absolute;
34
+ z-index: 9;
35
+ box-sizing: border-box;
36
+ width: 6px;
37
+ height: 6px;
38
+ transform: translate(-50%, -50%);
39
+ border: 2px solid #ccc;
40
+ border-radius: 50%;
41
+ background-color: transparent;
42
+ }
43
+ .color-picker__popover .color-picker-saturation-t {
44
+ background: linear-gradient(to right, white, #fff0);
45
+ }
46
+ .color-picker__popover .color-picker-saturation-h {
47
+ background: linear-gradient(to top, black, #fff0);
48
+ }
49
+ .color-picker__popover .color-picker-middle {
50
+ display: flex;
51
+ width: 100%;
52
+ margin-bottom: 10px;
53
+ /* 色调滑块条 */
54
+ /* 透明度滑块条 */
55
+ /* 滑块 */
56
+ }
57
+ .color-picker__popover .color-picker-middle .hue-slider {
58
+ position: relative;
59
+ height: 10px;
60
+ margin-bottom: 6px;
61
+ background: linear-gradient(90deg, red 0, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, red);
62
+ box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
63
+ }
64
+ .color-picker__popover .color-picker-middle .alpha-slider {
65
+ position: relative;
66
+ height: 10px;
67
+ background: #fff url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVRIiWM8fubkfwYygKWJOSM5+mCAhRLNoxaPWjxq8ajFoxbTyeL/DAfJ0Xjs3Cl7Siwmu4Yht1aDgZEYx6MWj1o8avGoxaMWD3qLya5X//4nqx6HAQC7RBGFzolqTAAAAABJRU5ErkJggg==');
68
+ background-size: 10px 10px;
69
+ box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
70
+ }
71
+ .color-picker__popover .color-picker-middle .slider {
72
+ position: absolute;
73
+ box-sizing: border-box;
74
+ width: 6px;
75
+ height: 100%;
76
+ background-color: #fff;
77
+ box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
78
+ cursor: pointer;
79
+ }
80
+ .color-picker__popover .color-picker-diamond {
81
+ position: relative;
82
+ width: 26px;
83
+ height: 26px;
84
+ margin-left: 5px;
85
+ overflow: hidden;
86
+ border-radius: 3px;
87
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVRIiWM8fubkfwYygKWJOSM5+mCAhRLNoxaPWjxq8ajFoxbTyeL/DAfJ0Xjs3Cl7Siwmu4Yht1aDgZEYx6MWj1o8avGoxaMWD3qLya5X//4nqx6HAQC7RBGFzolqTAAAAABJRU5ErkJggg==');
88
+ background-size: 10px 10px;
89
+ }
90
+ .color-picker__popover .color-picker-value {
91
+ display: flex;
92
+ justify-content: space-between;
93
+ width: 100%;
94
+ }
95
+ .color-picker__popover .color-picker-value div {
96
+ padding: 0 3px;
97
+ text-align: center;
98
+ }
99
+ .color-picker__popover .color-picker-value input {
100
+ box-sizing: border-box;
101
+ width: 34px;
102
+ height: 24px;
103
+ margin: 0;
104
+ padding: 0;
105
+ border: 1px solid #ccc;
106
+ border-radius: 3px;
107
+ outline: none;
108
+ font-size: 12px;
109
+ text-align: center;
110
+ }
111
+ .color-picker__popover .color-picker-value p {
112
+ margin: 3px 0 0;
113
+ font-size: 12px;
114
+ }
115
+ .color-picker__popover .color-picker-value .rgba-a {
116
+ padding-right: 0;
117
+ }
118
+ .color-picker__popover .color-picker-value .hex {
119
+ flex: 1;
120
+ padding-left: 0;
121
+ }
122
+ .color-picker__popover .color-picker-value .hex input {
123
+ width: 100%;
124
+ height: 24px;
125
+ }
126
+ .color-picker__popover .color-picker .presetColor {
127
+ /* 预设颜色 */
128
+ }
129
+ .color-picker__popover .color-picker .presetColor .title {
130
+ margin-bottom: 10px;
131
+ padding-top: 8px;
132
+ border-top: 1px solid #eaeaea;
133
+ font-size: 12px;
134
+ }
135
+ .color-picker__popover .color-picker .presetColor .preset {
136
+ display: flex;
137
+ flex-wrap: wrap;
138
+ justify-content: flex-start;
139
+ width: 100%;
140
+ margin: 10px 0 0;
141
+ padding: 0;
142
+ list-style: none;
143
+ }
144
+ .color-picker__popover .color-picker .presetColor .preset li {
145
+ width: 20px;
146
+ height: 20px;
147
+ margin-right: 6px;
148
+ margin-bottom: 6px;
149
+ border: 1px solid #ccc;
150
+ border-radius: 6px;
151
+ cursor: pointer;
152
+ }
153
+ .color-picker__popover .color-value .color-value .color-value .hex input {
154
+ width: 100%;
155
+ height: 24px;
156
+ }
@@ -1,24 +1,22 @@
1
1
  /**
2
2
  * 拖拽放置时的插入位置
3
- *
4
- * @export
5
- * @enum {number}
6
3
  */
7
- export declare enum GCT_DND_INSERT_POS {
4
+ export declare const GCT_DND_INSERT_POS: {
8
5
  /**
9
6
  * 插入第一个
10
7
  */
11
- FIRST = "first",
8
+ readonly FIRST: "first";
12
9
  /**
13
10
  * 插入前
14
11
  */
15
- BEFORE = "before",
12
+ readonly BEFORE: "before";
16
13
  /**
17
14
  * 插入后
18
15
  */
19
- AFTER = "after",
16
+ readonly AFTER: "after";
20
17
  /**
21
18
  * 插入最后
22
19
  */
23
- LAST = "last"
24
- }
20
+ readonly LAST: "last";
21
+ };
22
+ export type GCT_DND_INSERT_POS = (typeof GCT_DND_INSERT_POS)[keyof typeof GCT_DND_INSERT_POS];
@@ -1,9 +1,20 @@
1
- var GCT_DND_INSERT_POS = /* @__PURE__ */ ((GCT_DND_INSERT_POS2) => {
2
- GCT_DND_INSERT_POS2["FIRST"] = "first";
3
- GCT_DND_INSERT_POS2["BEFORE"] = "before";
4
- GCT_DND_INSERT_POS2["AFTER"] = "after";
5
- GCT_DND_INSERT_POS2["LAST"] = "last";
6
- return GCT_DND_INSERT_POS2;
7
- })(GCT_DND_INSERT_POS || {});
1
+ const GCT_DND_INSERT_POS = {
2
+ /**
3
+ * 插入第一个
4
+ */
5
+ FIRST: "first",
6
+ /**
7
+ * 插入前
8
+ */
9
+ BEFORE: "before",
10
+ /**
11
+ * 插入后
12
+ */
13
+ AFTER: "after",
14
+ /**
15
+ * 插入最后
16
+ */
17
+ LAST: "last"
18
+ };
8
19
 
9
20
  export { GCT_DND_INSERT_POS };
@@ -0,0 +1,5 @@
1
+ import { WithInstall } from '../../utils';
2
+ export declare const BasicModal: WithInstall<unknown>;
3
+ export { useModalContext } from './src/hooks/useModalContext';
4
+ export { useModal, useModalInner } from './src/hooks/useModal';
5
+ export * from './src/typing';
@@ -0,0 +1,16 @@
1
+ import '../../components/app-modal/app-modal-component.css';import './src/index.css';/* empty css */
2
+ import _sfc_main from './src/BasicModal.vue.mjs';
3
+ import 'ant-design-vue';
4
+ import '../../utils/monaco-loader/monaco-loader.mjs';
5
+ import 'lodash-es';
6
+ import 'vue';
7
+ import '@gct-paas/core';
8
+ import 'vue3-dnd';
9
+ import 'react-dnd-html5-backend';
10
+ /* empty css */
11
+ import { withInstall } from '../../utils/with-install.mjs';
12
+ export { useModal, useModalInner } from './src/hooks/useModal.mjs';
13
+
14
+ const BasicModal = withInstall(_sfc_main);
15
+
16
+ export { BasicModal };