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

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 (160) hide show
  1. package/dist/index.esm.min.mjs +24472 -7434
  2. package/dist/index.min.cjs +59 -12
  3. package/dist/index.min.css +1 -0
  4. package/dist/index.system.min.js +59 -12
  5. package/es/components/assets-svg-icon/assets-svg-icon.css +188 -0
  6. package/es/components/assets-svg-icon/assets-svg-icon.d.ts +134 -0
  7. package/es/components/assets-svg-icon/assets-svg-icon.mjs +238 -0
  8. package/es/components/assets-svg-icon/request.d.ts +2 -0
  9. package/es/components/assets-svg-icon/request.mjs +51 -0
  10. package/es/components/assets-svg-icon/utils.d.ts +9 -0
  11. package/es/components/assets-svg-icon/utils.mjs +21 -0
  12. package/es/components/assets-svg-icon/validate.d.ts +4 -0
  13. package/es/components/assets-svg-icon/validate.mjs +43 -0
  14. package/es/components/code-editor/code-editor.css +67 -0
  15. package/es/components/code-editor/code-editor.mjs +9 -10
  16. package/es/components/index.d.ts +1 -0
  17. package/es/components/layout/flex-container/flex-container.css +67 -0
  18. package/es/components/layout/view-container/view-container.css +83 -0
  19. package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +1 -1
  20. package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +1 -1
  21. package/es/editor/gct-form-info/gct-form-info.d.ts +1 -1
  22. package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +1 -1
  23. package/es/editor/gct-form-number/gct-form-number.d.ts +1 -1
  24. package/es/editor/gct-form-radio/gct-form-radio.d.ts +1 -1
  25. package/es/editor/gct-form-select/gct-form-select.d.ts +1 -1
  26. package/es/editor/gct-form-switch/gct-form-switch.d.ts +1 -1
  27. package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +1 -1
  28. package/es/hooks/index.d.ts +2 -0
  29. package/es/hooks/useLocale.d.ts +4 -0
  30. package/es/hooks/useLocale.mjs +32 -0
  31. package/es/hooks/useTheme.d.ts +8 -0
  32. package/es/hooks/useTheme.mjs +20 -0
  33. package/es/index.d.ts +5 -6
  34. package/es/index.mjs +19 -24
  35. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.css +72 -0
  36. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.d.ts +37 -0
  37. package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +195 -0
  38. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.css +79 -0
  39. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.d.ts +29 -0
  40. package/es/modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs +98 -0
  41. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.css +70 -0
  42. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.d.ts +50 -0
  43. package/es/modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs +239 -0
  44. package/es/modules/gct-dnd/constants/index.d.ts +24 -0
  45. package/es/modules/gct-dnd/constants/index.mjs +9 -0
  46. package/es/modules/gct-dnd/index.d.ts +5 -0
  47. package/es/modules/gct-dnd/interface/i-gct-dnd-config.d.ts +101 -0
  48. package/es/modules/gct-dnd/interface/i-gct-dnd-data.d.ts +14 -0
  49. package/es/modules/gct-dnd/interface/i-gct-dnd-render-item-options.d.ts +28 -0
  50. package/es/modules/gct-dnd/interface/i-gct-drag-collect.d.ts +24 -0
  51. package/es/modules/gct-dnd/interface/i-gct-drag-dnd-data.d.ts +51 -0
  52. package/es/modules/gct-dnd/interface/i-gct-drop-collect.d.ts +32 -0
  53. package/es/modules/gct-dnd/interface/i-gct-drop-result.d.ts +47 -0
  54. package/es/modules/gct-dnd/interface/index.d.ts +7 -0
  55. package/es/utils/with-install.mjs +0 -1
  56. package/package.json +11 -8
  57. package/dist/index.min.css.css +0 -1
  58. package/es/components/code-editor/code-editor.scss +0 -3
  59. package/es/components/index.mjs +0 -7
  60. package/es/components/layout/flex-container/flex-container.mjs +0 -90
  61. package/es/components/layout/flex-container/flex-container.scss +0 -3
  62. package/es/components/layout/flex-item/flex-item.mjs +0 -53
  63. package/es/components/layout/flex-item/flex-item.scss +0 -17
  64. package/es/components/layout/grid-container/grid-container.mjs +0 -47
  65. package/es/components/layout/view-container/view-container.mjs +0 -39
  66. package/es/components/layout/view-container/view-container.scss +0 -19
  67. package/es/editor/gct-form-check-switch/gct-form-check-switch.mjs +0 -53
  68. package/es/editor/gct-form-check-switch/gct-form-check-switch.provider.mjs +0 -6
  69. package/es/editor/gct-form-check-switch/gct-form-check-switch.scss +0 -10
  70. package/es/editor/gct-form-check-switch/index.mjs +0 -12
  71. package/es/editor/gct-form-checkbox/gct-form-checkbox.mjs +0 -70
  72. package/es/editor/gct-form-checkbox/gct-form-checkbox.scss +0 -56
  73. package/es/editor/gct-form-checkbox/index.mjs +0 -19
  74. package/es/editor/gct-form-color/gct-form-color.mjs +0 -45
  75. package/es/editor/gct-form-color/gct-form-color.provider.mjs +0 -6
  76. package/es/editor/gct-form-color/gct-form-color.scss +0 -3
  77. package/es/editor/gct-form-color/index.mjs +0 -17
  78. package/es/editor/gct-form-field-select/gct-form-field-select.mjs +0 -48
  79. package/es/editor/gct-form-field-select/gct-form-field-select.provider.mjs +0 -6
  80. package/es/editor/gct-form-field-select/gct-form-field-select.scss +0 -7
  81. package/es/editor/gct-form-field-select/gct-model-select.vue +0 -70
  82. package/es/editor/gct-form-field-select/index.mjs +0 -12
  83. package/es/editor/gct-form-i18n/gct-form-i18n.mjs +0 -62
  84. package/es/editor/gct-form-i18n/gct-form-i18n.provider.mjs +0 -6
  85. package/es/editor/gct-form-i18n/index.mjs +0 -12
  86. package/es/editor/gct-form-icon-select/gct-form-icon-select.mjs +0 -74
  87. package/es/editor/gct-form-icon-select/gct-form-icon-select.scss +0 -14
  88. package/es/editor/gct-form-icon-select/index.mjs +0 -14
  89. package/es/editor/gct-form-info/gct-form-info.mjs +0 -40
  90. package/es/editor/gct-form-info/gct-form-info.scss +0 -8
  91. package/es/editor/gct-form-info/index.mjs +0 -14
  92. package/es/editor/gct-form-length-unit/gct-form-length-unit.mjs +0 -43
  93. package/es/editor/gct-form-length-unit/gct-form-length-unit.provider.mjs +0 -6
  94. package/es/editor/gct-form-length-unit/index.mjs +0 -12
  95. package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +0 -99
  96. package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +0 -6
  97. package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +0 -7
  98. package/es/editor/gct-form-modal-select/index.mjs +0 -12
  99. package/es/editor/gct-form-number/gct-form-number.mjs +0 -44
  100. package/es/editor/gct-form-number/gct-form-number.provider.mjs +0 -6
  101. package/es/editor/gct-form-number/gct-form-number.scss +0 -3
  102. package/es/editor/gct-form-number/index.mjs +0 -17
  103. package/es/editor/gct-form-picker/gct-form-picker.mjs +0 -92
  104. package/es/editor/gct-form-picker/gct-form-picker.provider.mjs +0 -6
  105. package/es/editor/gct-form-picker/index.mjs +0 -12
  106. package/es/editor/gct-form-radio/gct-form-radio.mjs +0 -70
  107. package/es/editor/gct-form-radio/gct-form-radio.scss +0 -68
  108. package/es/editor/gct-form-radio/index.mjs +0 -19
  109. package/es/editor/gct-form-select/gct-form-select.mjs +0 -50
  110. package/es/editor/gct-form-select/gct-form-select.provider.mjs +0 -6
  111. package/es/editor/gct-form-select/index.mjs +0 -12
  112. package/es/editor/gct-form-span/gct-form-span.mjs +0 -89
  113. package/es/editor/gct-form-span/gct-form-span.provider.mjs +0 -6
  114. package/es/editor/gct-form-span/gct-form-span.scss +0 -10
  115. package/es/editor/gct-form-span/index.mjs +0 -12
  116. package/es/editor/gct-form-switch/gct-form-switch.mjs +0 -35
  117. package/es/editor/gct-form-switch/gct-form-switch.provider.mjs +0 -6
  118. package/es/editor/gct-form-switch/index.mjs +0 -17
  119. package/es/editor/gct-form-text/gct-form-text.mjs +0 -45
  120. package/es/editor/gct-form-text/gct-form-text.provider.mjs +0 -6
  121. package/es/editor/gct-form-text/index.mjs +0 -17
  122. package/es/editor/gct-form-textarea/gct-form-textarea.mjs +0 -40
  123. package/es/editor/gct-form-textarea/gct-form-textarea.provider.mjs +0 -6
  124. package/es/editor/gct-form-textarea/index.mjs +0 -12
  125. package/es/editor/index.mjs +0 -51
  126. package/es/utils/index.mjs +0 -3
  127. package/es/vite-env.d.ts +0 -1
  128. package/es/widgets/gct-edit-form/gct-edit-form.mjs +0 -126
  129. package/es/widgets/gct-edit-form/index.mjs +0 -10
  130. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.mjs +0 -73
  131. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.provider.mjs +0 -11
  132. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.scss +0 -62
  133. package/es/widgets/gct-form/gct-form-collapse/index.mjs +0 -15
  134. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.mjs +0 -71
  135. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.provider.mjs +0 -13
  136. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.scss +0 -23
  137. package/es/widgets/gct-form/gct-form-collapse-pane/index.mjs +0 -15
  138. package/es/widgets/gct-form/gct-form-group/gct-form-group.mjs +0 -88
  139. package/es/widgets/gct-form/gct-form-group/gct-form-group.provider.mjs +0 -11
  140. package/es/widgets/gct-form/gct-form-group/gct-form-group.scss +0 -28
  141. package/es/widgets/gct-form/gct-form-group/index.mjs +0 -15
  142. package/es/widgets/gct-form/gct-form-hidden-item/gct-form-hidden-item.provider.mjs +0 -13
  143. package/es/widgets/gct-form/gct-form-item/gct-form-item.mjs +0 -141
  144. package/es/widgets/gct-form/gct-form-item/gct-form-item.provider.mjs +0 -11
  145. package/es/widgets/gct-form/gct-form-item/gct-form-item.scss +0 -115
  146. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.mjs +0 -53
  147. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.provider.mjs +0 -11
  148. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.scss +0 -63
  149. package/es/widgets/gct-form/gct-form-tab/index.mjs +0 -12
  150. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.mjs +0 -65
  151. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.provider.mjs +0 -11
  152. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.scss +0 -16
  153. package/es/widgets/gct-form/gct-form-tab-pane/index.mjs +0 -15
  154. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.mjs +0 -71
  155. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.provider.mjs +0 -11
  156. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.scss +0 -25
  157. package/es/widgets/gct-form/gct-form-title-group/index.mjs +0 -16
  158. package/es/widgets/gct-form/gct-form.mjs +0 -112
  159. package/es/widgets/gct-form/gct-form.scss +0 -11
  160. package/es/widgets/gct-form/index.mjs +0 -31
@@ -1,6 +0,0 @@
1
- "use strict";
2
- class GctFormColorProvider {
3
- component = "gct-form-color";
4
- }
5
-
6
- export { GctFormColorProvider };
@@ -1,3 +0,0 @@
1
- @include b(form-color) {
2
- vertical-align: middle;
3
- }
@@ -1,17 +0,0 @@
1
- import { widthEditorInstall, EditorType, EditorTypeOld } from '@gct-paas/core';
2
- import { GctFormColor as GctFormColor$1 } from './gct-form-color.mjs';
3
- import { GctFormColorProvider } from './gct-form-color.provider.mjs';
4
-
5
- "use strict";
6
- var GctFormColor = widthEditorInstall(
7
- EditorType.COLOR,
8
- () => new GctFormColorProvider(),
9
- GctFormColor$1
10
- );
11
- const oldColorCom = widthEditorInstall(
12
- EditorTypeOld.COLOR,
13
- () => new GctFormColorProvider(),
14
- GctFormColor$1
15
- );
16
-
17
- export { GctFormColor as default, oldColorCom };
@@ -1,48 +0,0 @@
1
- import { defineComponent, createVNode, resolveComponent, createTextVNode, ref } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
- import './gct-form-field-select.scss';
4
- import modal from './gct-model-select.vue';
5
-
6
- "use strict";
7
- const GctFormFieldSelect = /* @__PURE__ */ defineComponent({
8
- name: "GctFormFieldSelect",
9
- components: {
10
- modal
11
- },
12
- props: {
13
- c: {
14
- type: Object,
15
- required: true
16
- },
17
- model: {
18
- type: Object,
19
- required: true
20
- },
21
- value: {
22
- type: String,
23
- default: ""
24
- }
25
- },
26
- emits: ["update:value"],
27
- setup() {
28
- const ns = useNamespace("gct-form-field-select");
29
- const visible = ref(false);
30
- return {
31
- ns,
32
- visible
33
- };
34
- },
35
- render() {
36
- return createVNode("div", null, [createVNode(resolveComponent("a-button"), {
37
- "onClick": () => this.visible = true,
38
- "block": true
39
- }, {
40
- default: () => [createTextVNode("\u9009\u62E9\u6A21\u578B\u5B57\u6BB5")]
41
- }), createVNode(modal, {
42
- "value": this.visible,
43
- "onUpdate:value": ($event) => this.visible = $event
44
- }, null)]);
45
- }
46
- });
47
-
48
- export { GctFormFieldSelect, GctFormFieldSelect as default };
@@ -1,6 +0,0 @@
1
- "use strict";
2
- class GctFormFieldSelectProvider {
3
- component = "gct-form-field-select";
4
- }
5
-
6
- export { GctFormFieldSelectProvider };
@@ -1,7 +0,0 @@
1
- @include b(gct-form-field-select) {
2
- display: flex;
3
-
4
- @include e(select) {
5
- flex:1;
6
- }
7
- }
@@ -1,70 +0,0 @@
1
- <template>
2
- <a-modal
3
- v-model:visible="visible"
4
- width="600px"
5
- title="关联模型字段"
6
- ok-text="确认"
7
- cancel-text="取消"
8
- @ok="handleOk"
9
- >
10
- <div>所属模型:公司</div>
11
- <div class="gct-box">
12
- <a-transfer
13
- v-model:target-keys="targetKeys"
14
- :locale="{
15
- itemUnit: '项已选',
16
- itemsUnit: '项未选',
17
- searchPlaceholder: '请输入搜索内容',
18
- }"
19
- :data-source="mockData"
20
- show-search
21
- :filter-option="filterOption"
22
- :render="(item: IObject) => item.title"
23
- />
24
- </div>
25
- </a-modal>
26
- </template>
27
-
28
- <script setup lang="ts">
29
- import { ref, computed } from 'vue';
30
- const props = defineProps<{
31
- value: boolean;
32
- }>();
33
-
34
- const emit = defineEmits(['update:value']);
35
- const visible = computed({
36
- get() {
37
- return props.value;
38
- },
39
- set(v) {
40
- emit('update:value', v);
41
- },
42
- });
43
- const mockData = ref([
44
- { key: 0, title: '公司名称' },
45
- { key: 1, title: 'ID' },
46
- { key: 2, title: '创建人' },
47
- { key: 3, title: '创建部门' },
48
- { key: 4, title: '修改时间' },
49
- { key: 5, title: '修改人' },
50
- { key: 6, title: '修改部门' },
51
- ]);
52
- const targetKeys = ref([]);
53
- const filterOption = (_inputValue: string, _option: object[]) => {
54
- console.log();
55
- // return option.description.indexOf(inputValue) > -1;
56
- };
57
- function handleOk() {
58
- visible.value = false;
59
- }
60
- </script>
61
- <style lang="scss" scoped>
62
- .gct-box {
63
- margin-top: 16px;
64
-
65
- :deep(.ant-transfer-list) {
66
- height: 340px;
67
- width: 240px;
68
- }
69
- }
70
- </style>
@@ -1,12 +0,0 @@
1
- import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
2
- import { GctFormFieldSelectProvider } from './gct-form-field-select.provider.mjs';
3
- import { GctFormFieldSelect as GctFormFieldSelect$1 } from './gct-form-field-select.mjs';
4
-
5
- "use strict";
6
- var GctFormFieldSelect = widthEditorInstall(
7
- EditorTypeOld.Field_SELECT,
8
- () => new GctFormFieldSelectProvider(),
9
- GctFormFieldSelect$1
10
- );
11
-
12
- export { GctFormFieldSelect as default };
@@ -1,62 +0,0 @@
1
- import { defineComponent, createVNode, resolveComponent, mergeProps, computed } from 'vue';
2
- import { useNamespace, useForm, useGctFormValue } from '@gct-paas/core';
3
-
4
- "use strict";
5
- const GctFormI18n = /* @__PURE__ */ defineComponent({
6
- name: "GctFormI18n",
7
- props: {
8
- c: {
9
- type: Object,
10
- required: true
11
- },
12
- model: {
13
- type: Object,
14
- required: true
15
- },
16
- value: {
17
- type: String,
18
- default: ""
19
- }
20
- },
21
- emits: ["update:value"],
22
- setup() {
23
- const ns = useNamespace("gct-form-i18n");
24
- const form = useForm();
25
- const i18nConfig = form.item.i18nConfig;
26
- const val = useGctFormValue();
27
- const i18nConfigValue = computed({
28
- get: () => {
29
- if (i18nConfig) {
30
- return i18nConfig.value;
31
- }
32
- return "";
33
- },
34
- set: (val2) => {
35
- if (!i18nConfig) {
36
- return;
37
- }
38
- i18nConfig.value = val2;
39
- }
40
- });
41
- return {
42
- ns,
43
- val,
44
- i18nConfigValue
45
- };
46
- },
47
- render() {
48
- return createVNode(resolveComponent("i18n-select-input"), mergeProps(this.model.props || {}, {
49
- "i18nText": this.val,
50
- "onUpdate:i18nText": ($event) => this.val = $event,
51
- "i18nConfig": this.i18nConfigValue,
52
- "onUpdate:i18nConfig": ($event) => this.i18nConfigValue = $event,
53
- "inputExtraProps": {
54
- showCount: true,
55
- maxlength: 32,
56
- disabled: this.c.state.disabled
57
- }
58
- }), null);
59
- }
60
- });
61
-
62
- export { GctFormI18n, GctFormI18n as default };
@@ -1,6 +0,0 @@
1
- "use strict";
2
- class GctFormI18nProvider {
3
- component = "gct-form-i18n";
4
- }
5
-
6
- export { GctFormI18nProvider };
@@ -1,12 +0,0 @@
1
- import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
2
- import { GctFormI18nProvider } from './gct-form-i18n.provider.mjs';
3
- import { GctFormI18n as GctFormI18n$1 } from './gct-form-i18n.mjs';
4
-
5
- "use strict";
6
- var GctFormI18n = widthEditorInstall(
7
- EditorTypeOld.I18N,
8
- () => new GctFormI18nProvider(),
9
- GctFormI18n$1
10
- );
11
-
12
- export { GctFormI18n as default };
@@ -1,74 +0,0 @@
1
- import { defineComponent, createVNode, resolveComponent, ref, watch, computed } from 'vue';
2
- import { useNamespace } from '@gct-paas/core';
3
- import './gct-form-icon-select.scss';
4
-
5
- "use strict";
6
- const GctFormIconSelect = /* @__PURE__ */ defineComponent({
7
- name: "GctFormIconSelect",
8
- props: {
9
- value: {
10
- type: Object
11
- },
12
- model: {
13
- type: Object,
14
- required: true
15
- }
16
- },
17
- emits: ["update:value"],
18
- setup(props, {
19
- emit
20
- }) {
21
- const ns = useNamespace("gct-form-icon-select");
22
- const val = ref(props.value);
23
- const icon = ref(val.value?.icon || props.model.defaultIcon);
24
- const color = ref(val.value?.color || props.model.defaultColor);
25
- const background = ref(val.value?.background || props.model.defaultBackground);
26
- watch(() => props.value, (newVal) => {
27
- val.value = newVal;
28
- if (newVal) {
29
- icon.value = newVal.icon;
30
- color.value = newVal.color;
31
- }
32
- });
33
- watch([icon, color, background], () => {
34
- val.value = {
35
- icon: icon.value,
36
- color: color.value
37
- };
38
- emit("update:value", val.value);
39
- });
40
- const nextPickerStyle = computed(() => {
41
- if (!props.model.size) {
42
- return;
43
- }
44
- return {
45
- "--box-size": props.model.size + "px"
46
- };
47
- });
48
- return {
49
- ns,
50
- icon,
51
- color,
52
- background,
53
- nextPickerStyle
54
- };
55
- },
56
- render() {
57
- return createVNode("div", {
58
- "class": this.ns.b()
59
- }, [createVNode(resolveComponent("icon-next-picker"), {
60
- "value": this.icon,
61
- "onUpdate:value": ($event) => this.icon = $event,
62
- "color": this.color,
63
- "onUpdate:color": ($event) => this.color = $event,
64
- "background": "#f5f5f5",
65
- "disabled": this.model.disabled,
66
- "showColor": this.model.showColor === false ? false : true,
67
- "style": this.nextPickerStyle
68
- }, null), this.model.label ? createVNode("span", {
69
- "class": this.ns.e("title")
70
- }, [this.model.label]) : null]);
71
- }
72
- });
73
-
74
- export { GctFormIconSelect };
@@ -1,14 +0,0 @@
1
- @include b(gct-form-icon-select) {
2
- --box-size: 40px;
3
-
4
- width: 100%;
5
- height: 100%;
6
-
7
- @include e(title) {
8
- display: inline-block;
9
- font-size: 14px;
10
- color: #474747;
11
- width: 56px;
12
- text-align: center;
13
- }
14
- }
@@ -1,14 +0,0 @@
1
- import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
2
- import { GctFormIconSelect as GctFormIconSelect$1 } from './gct-form-icon-select.mjs';
3
-
4
- "use strict";
5
- class Provider {
6
- component = "gct-form-icon-select";
7
- }
8
- var GctFormIconSelect = widthEditorInstall(
9
- EditorTypeOld.ICON_SELECT,
10
- () => new Provider(),
11
- GctFormIconSelect$1
12
- );
13
-
14
- export { Provider, GctFormIconSelect as default };
@@ -1,40 +0,0 @@
1
- import { defineComponent, createVNode } from 'vue';
2
- import { useNamespace, useGctFormValue } from '@gct-paas/core';
3
- import './gct-form-info.scss';
4
-
5
- "use strict";
6
- const GctFormInfo = /* @__PURE__ */ defineComponent({
7
- name: "GctFormInfo",
8
- props: {
9
- value: {
10
- type: String,
11
- default: ""
12
- },
13
- model: {
14
- type: Object,
15
- required: true
16
- }
17
- },
18
- emits: ["update:value"],
19
- setup() {
20
- const ns = useNamespace("gct-form-info");
21
- const val = useGctFormValue();
22
- return {
23
- ns,
24
- val
25
- };
26
- },
27
- render() {
28
- return createVNode("div", {
29
- "class": this.ns.b()
30
- }, [this.model.icon ? createVNode("span", {
31
- "class": this.ns.e("icon")
32
- }, [createVNode("i", {
33
- "class": `iconfont ${this.model.icon}`
34
- }, null)]) : null, createVNode("span", {
35
- "class": this.ns.e("content")
36
- }, [this.val || this.model.content])]);
37
- }
38
- });
39
-
40
- export { GctFormInfo };
@@ -1,8 +0,0 @@
1
- @include b(gct-form-info) {
2
- color: #C3C3C3;
3
-
4
- @include e(icon) {
5
- margin-right: 3px;
6
- vertical-align: -1px;
7
- }
8
- }
@@ -1,14 +0,0 @@
1
- import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
2
- import { GctFormInfo as GctFormInfo$1 } from './gct-form-info.mjs';
3
-
4
- "use strict";
5
- class Provider {
6
- component = "gct-form-info";
7
- }
8
- var GctFormInfo = widthEditorInstall(
9
- EditorTypeOld.INFO,
10
- () => new Provider(),
11
- GctFormInfo$1
12
- );
13
-
14
- export { Provider, GctFormInfo as default };
@@ -1,43 +0,0 @@
1
- import { defineComponent, createVNode, resolveComponent, mergeProps } from 'vue';
2
- import { useNamespace, LengthUnitEditorController, useGctFormValue } from '@gct-paas/core';
3
-
4
- "use strict";
5
- const GctFormLengthUnit = /* @__PURE__ */ defineComponent({
6
- name: "GctFormLengthUnit",
7
- inheritAttrs: false,
8
- props: {
9
- itemModel: {
10
- type: Object,
11
- required: true
12
- },
13
- model: {
14
- type: Object,
15
- required: true
16
- },
17
- value: {
18
- type: String,
19
- required: true
20
- }
21
- },
22
- emits: ["update:value"],
23
- setup(props) {
24
- const ns = useNamespace("form-length-unit");
25
- const c = new LengthUnitEditorController(props.model);
26
- const val = useGctFormValue();
27
- return {
28
- ns,
29
- c,
30
- val
31
- };
32
- },
33
- render() {
34
- return createVNode(resolveComponent("length-unit-editor"), mergeProps({
35
- "value": this.val,
36
- "onUpdate:value": ($event) => this.val = $event
37
- }, this.model.props || {}, {
38
- "class": [this.ns.b(), this.ns.is("readonly", this.model.readonly)]
39
- }), null);
40
- }
41
- });
42
-
43
- export { GctFormLengthUnit, GctFormLengthUnit as default };
@@ -1,6 +0,0 @@
1
- "use strict";
2
- class GctFormLengthUnitProvider {
3
- component = "gct-form-length-unit";
4
- }
5
-
6
- export { GctFormLengthUnitProvider };
@@ -1,12 +0,0 @@
1
- import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
2
- import { GctFormLengthUnit as GctFormLengthUnit$1 } from './gct-form-length-unit.mjs';
3
- import { GctFormLengthUnitProvider } from './gct-form-length-unit.provider.mjs';
4
-
5
- "use strict";
6
- var GctFormLengthUnit = widthEditorInstall(
7
- EditorTypeOld.LENGTH_UNIT,
8
- () => new GctFormLengthUnitProvider(),
9
- GctFormLengthUnit$1
10
- );
11
-
12
- export { GctFormLengthUnit as default };
@@ -1,99 +0,0 @@
1
- import { defineComponent, createVNode, resolveComponent, mergeProps, ref, computed } from 'vue';
2
- import { useNamespace, useGctFormValue } from '@gct-paas/core';
3
- import './gct-form-modal-select.scss';
4
-
5
- "use strict";
6
- const GctFormModalSelect = /* @__PURE__ */ defineComponent({
7
- name: "GctFormModalSelect",
8
- props: {
9
- c: {
10
- type: Object,
11
- required: true
12
- },
13
- model: {
14
- type: Object,
15
- required: true
16
- },
17
- value: {
18
- type: String,
19
- default: ""
20
- }
21
- },
22
- emits: ["update:value"],
23
- setup() {
24
- const ns = useNamespace("gct-form-modal-select");
25
- const modelCategory = ref("1");
26
- const val = useGctFormValue();
27
- const selectValue = computed({
28
- get() {
29
- return val.value || void 0;
30
- },
31
- set(v) {
32
- val.value = v;
33
- }
34
- });
35
- const options = computed(() => {
36
- return [{
37
- label: "\u9ED8\u8BA4",
38
- options: [{
39
- value: "1",
40
- label: "\u6A21\u578B\u4E00"
41
- }, {
42
- value: "2",
43
- label: "\u6A21\u578B\u4E8C"
44
- }]
45
- }, {
46
- label: "\u4EA7\u54C1\u5EFA\u6A21",
47
- options: [{
48
- value: "3",
49
- label: "\u4EA7\u54C1\u4FE1\u606F"
50
- }, {
51
- value: "4",
52
- label: "\u4EA7\u54C1\u7C7B\u578B"
53
- }]
54
- }];
55
- });
56
- return {
57
- ns,
58
- val: selectValue,
59
- options,
60
- modelCategory
61
- };
62
- },
63
- render() {
64
- return createVNode(resolveComponent("a-input-group"), {
65
- "class": this.ns.b()
66
- }, {
67
- default: () => [createVNode(resolveComponent("a-form-item-rest"), null, {
68
- default: () => [createVNode(resolveComponent("a-select"), mergeProps({
69
- "value": this.modelCategory,
70
- "onUpdate:value": ($event) => this.modelCategory = $event
71
- }, this.model.props || {}, {
72
- "placeholder": "\u8BF7\u9009\u62E9",
73
- "options": [{
74
- value: "1",
75
- label: "\u5B9E\u4F53"
76
- }, {
77
- value: "2",
78
- label: "\u89C6\u56FE"
79
- }, {
80
- value: "3",
81
- label: "\u6570\u636E"
82
- }],
83
- "disabled": this.c.state.disabled
84
- }), null)]
85
- }), createVNode(resolveComponent("a-select"), mergeProps({
86
- "class": this.ns.e("select"),
87
- "value": this.val,
88
- "onUpdate:value": ($event) => this.val = $event
89
- }, this.model.props || {}, {
90
- "placeholder": "\u8BF7\u9009\u62E9",
91
- "options": this.options,
92
- "allowClear": true,
93
- "disabled": this.c.state.disabled
94
- }), null)]
95
- });
96
- }
97
- });
98
-
99
- export { GctFormModalSelect, GctFormModalSelect as default };
@@ -1,6 +0,0 @@
1
- "use strict";
2
- class GctFormModalSelectProvider {
3
- component = "gct-form-Modal-select";
4
- }
5
-
6
- export { GctFormModalSelectProvider };
@@ -1,7 +0,0 @@
1
- @include b(gct-form-modal-select) {
2
- display: flex;
3
-
4
- @include e(select) {
5
- flex:1;
6
- }
7
- }
@@ -1,12 +0,0 @@
1
- import { widthEditorInstall, EditorTypeOld } from '@gct-paas/core';
2
- import { GctFormModalSelectProvider } from './gct-form-modal-select.provider.mjs';
3
- import { GctFormModalSelect as GctFormModalSelect$1 } from './gct-form-modal-select.mjs';
4
-
5
- "use strict";
6
- var GctFormModalSelect = widthEditorInstall(
7
- EditorTypeOld.MODEL_SELECT,
8
- () => new GctFormModalSelectProvider(),
9
- GctFormModalSelect$1
10
- );
11
-
12
- export { GctFormModalSelect as default };
@@ -1,44 +0,0 @@
1
- import { defineComponent, createVNode, resolveComponent, mergeProps } from 'vue';
2
- import { useNamespace, useGctFormValue } from '@gct-paas/core';
3
- import './gct-form-number.scss';
4
-
5
- "use strict";
6
- const GctFormNumber = /* @__PURE__ */ defineComponent({
7
- name: "GctFormNumber",
8
- props: {
9
- model: {
10
- type: Object,
11
- required: true
12
- },
13
- value: {
14
- type: String,
15
- default: ""
16
- }
17
- },
18
- emits: ["update:value"],
19
- setup() {
20
- const ns = useNamespace("gct-form-number");
21
- const val = useGctFormValue();
22
- return {
23
- ns,
24
- val
25
- };
26
- },
27
- render() {
28
- return createVNode(resolveComponent("a-input-number"), mergeProps({
29
- "value": this.val,
30
- "onUpdate:value": ($event) => this.val = $event,
31
- "class": this.ns.b(),
32
- "prefix": this.model.prefix,
33
- "suffix": this.model.suffix,
34
- "addonBefore": this.model.addonBefore,
35
- "addonAfter": this.model.addonAfter,
36
- "placeholder": this.model.placeholder,
37
- "max": this.model.max,
38
- "min": this.model.min,
39
- "precision": this.model.precision
40
- }, this.model.props || {}), null);
41
- }
42
- });
43
-
44
- export { GctFormNumber };
@@ -1,6 +0,0 @@
1
- "use strict";
2
- class GctFormNumberProvider {
3
- component = "gct-form-number";
4
- }
5
-
6
- export { GctFormNumberProvider };