@gct-paas/core-web 0.1.6-dev.17 → 0.1.6-dev.19

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 (171) hide show
  1. package/dist/{JsBarcode-hbJ0aUTj.js → JsBarcode-nqhcZPvn.js} +2 -2
  2. package/dist/{_plugin-vue_export-helper-B8JDTS5A.js → _plugin-vue_export-helper-CyelNe0I.js} +2 -2
  3. package/dist/{chunk-FrdinjiM.js → chunk-C9ZKDnvz.js} +1 -1
  4. package/dist/components-DtFY5KCF.js +2 -0
  5. package/dist/{cropper-kXOaEuXy.js → cropper-BuY_n52N.js} +2 -2
  6. package/dist/{de_DE-CMOqPpMk.js → de_DE-B3kLT_zG.js} +2 -2
  7. package/dist/{defineProperty-DAxeR2uH.js → defineProperty-DiReHMuo.js} +1 -1
  8. package/dist/{diagram-config-item-DUh3mUtV.js → diagram-config-item-DYCiDqAy.js} +2 -2
  9. package/dist/{diagram-config-item-reverse-C-lK_M8W.js → diagram-config-item-reverse-BKf_yXvB.js} +2 -2
  10. package/dist/{diagram-config-item-virtual-2m1EFdOj.js → diagram-config-item-virtual-Dw36zOeJ.js} +2 -2
  11. package/dist/{en_US-DW_aBniN.js → en_US-tZ7NgN80.js} +2 -2
  12. package/dist/{es_ES-Bog1JAla.js → es_ES-DY2QXYwT.js} +2 -2
  13. package/dist/{fr_FR-B88CF-a2.js → fr_FR-DbN-1gO0.js} +2 -2
  14. package/dist/{hooks-xq807tVG.js → hooks-BuOffqGU.js} +2 -2
  15. package/dist/{icon-next-picker-COelGwZZ.js → icon-next-picker-BmnIn29K.js} +1 -1
  16. package/dist/index.min.css +1 -1
  17. package/dist/{ja_JP-DQorABU8.js → ja_JP-BRcXbHEH.js} +2 -2
  18. package/dist/loader.esm.min.js +2 -2
  19. package/dist/{monaco-editor-C9gHdPuf.js → monaco-editor-CHnBEX6V.js} +2 -2
  20. package/dist/{objectSpread2-DPfqyX1h.js → objectSpread2-BHKS0stT.js} +1 -1
  21. package/dist/{overlayscrollbars-vue-DMDFLsJ4.js → overlayscrollbars-vue-Cc8URtSg.js} +1 -1
  22. package/dist/{pt_PT-fO3ABuZp.js → pt_PT-DjiZFPmH.js} +2 -2
  23. package/dist/{relationship-diagram-config-D7HC1Hk4.js → relationship-diagram-config-BwVOMUAb.js} +2 -2
  24. package/dist/{rich-editor-BYF_B5mz.js → rich-editor-DfsJmv_B.js} +2 -2
  25. package/dist/{ru_RU-DqC5EhBW.js → ru_RU-Dw9N99Ox.js} +2 -2
  26. package/dist/template-D-UpvSne.js +2 -0
  27. package/dist/{tr_TR-Dau_nW2e.js → tr_TR-DCCv6rhK.js} +2 -2
  28. package/dist/{useMonacoEditor-Zk3dJDl-.js → useMonacoEditor-C3S2BSui.js} +2 -2
  29. package/dist/{vi_VN-BWVyxMZC.js → vi_VN-BNMXRAom.js} +2 -2
  30. package/dist/{zh_CN-CwWZ2JFL.js → zh_CN-ywcxTWfr.js} +2 -2
  31. package/dist/{zh_TW-NtzRUp8G.js → zh_TW-DL4FRJVy.js} +2 -2
  32. package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +3 -3
  33. package/es/components/app-drawer/app-drawer-component.css +82 -0
  34. package/es/components/app-drawer/app-drawer-component.d.ts +26 -0
  35. package/es/components/app-drawer/app-drawer-component.mjs +84 -0
  36. package/es/components/batch-select-list/batch-select-list.css +119 -0
  37. package/es/components/batch-select-list/batch-select-list.d.ts +158 -0
  38. package/es/components/batch-select-list/batch-select-list.mjs +133 -0
  39. package/es/components/data-rules-modal/data-rules-modal.d.ts +67 -0
  40. package/es/components/data-rules-modal/data-rules-modal.mjs +99 -0
  41. package/es/components/design-save-tip/design-save-tip.css +107 -0
  42. package/es/components/design-save-tip/design-save-tip.d.ts +44 -0
  43. package/es/components/design-save-tip/design-save-tip.mjs +81 -0
  44. package/es/components/design-step-check/design-step-check.css +133 -0
  45. package/es/components/design-step-check/design-step-check.d.ts +30 -0
  46. package/es/components/design-step-check/design-step-check.mjs +96 -0
  47. package/es/components/design-view-layout/design-view-layout.css +157 -0
  48. package/es/components/design-view-layout/design-view-layout.d.ts +1 -0
  49. package/es/components/design-view-layout/design-view-layout.mjs +140 -0
  50. package/es/components/field-cascader/index.d.ts +2 -1
  51. package/es/components/index.d.ts +10 -2
  52. package/es/components/index.mjs +26 -0
  53. package/es/components/label-design/designer.vue.d.ts +2 -0
  54. package/es/components/label-design/designer.vue.mjs +7 -0
  55. package/es/components/label-design/designer.vue_vue_type_script_setup_true_lang.mjs +32 -0
  56. package/es/components/label-design/designer.vue_vue_type_style_index_0_scoped_260222c9_lang.css +32 -0
  57. package/es/components/label-design/header/header.vue.d.ts +6 -0
  58. package/es/components/label-design/header/header.vue.mjs +7 -0
  59. package/es/components/label-design/header/header.vue_vue_type_script_setup_true_lang.mjs +232 -0
  60. package/es/components/label-design/header/header.vue_vue_type_style_index_0_scoped_aa2b4235_lang.css +39 -0
  61. package/es/components/label-design/header/test-var-modal.vue.d.ts +204 -0
  62. package/es/components/label-design/header/test-var-modal.vue.mjs +7 -0
  63. package/es/components/label-design/header/test-var-modal.vue_vue_type_script_setup_true_lang.mjs +202 -0
  64. package/es/components/label-design/header/test-var-modal.vue_vue_type_style_index_0_scoped_972496bb_lang.css +69 -0
  65. package/es/components/label-design/index.d.ts +11 -1
  66. package/es/components/label-design/index.mjs +9 -0
  67. package/es/components/label-design/modal/template.vue_vue_type_script_setup_true_lang.mjs +1 -1
  68. package/es/components/label-design/panels/panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
  69. package/es/components/label-design/panels/widget/components/label-params-select.vue.d.ts +35 -0
  70. package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_script_setup_true_name_variable-select_lang.mjs +1 -1
  71. package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +1 -1
  72. package/es/components/label-design/type/index.d.ts +15 -0
  73. package/es/components/label-design/type/index.mjs +11 -0
  74. package/es/components/modal-name-editor/modal-name-editor.css +117 -0
  75. package/es/components/modal-name-editor/modal-name-editor.d.ts +34 -0
  76. package/es/components/modal-name-editor/modal-name-editor.mjs +124 -0
  77. package/es/components/shrink-panel/shrink-panel.css +130 -0
  78. package/es/components/shrink-panel/shrink-panel.d.ts +23 -0
  79. package/es/components/shrink-panel/shrink-panel.mjs +41 -0
  80. package/es/components/ui/basic-grid/basic-grid.vue.d.ts +81 -0
  81. package/es/components/ui/basic-grid/basic-grid.vue.mjs +7 -0
  82. package/es/components/ui/basic-grid/basic-grid.vue_vue_type_script_setup_true_name_basic-grid_lang.mjs +134 -0
  83. package/es/components/ui/basic-grid/basic-grid.vue_vue_type_style_index_0_scoped_e9d09c1d_lang.css +90 -0
  84. package/es/components/ui/basic-grid/index.d.ts +3 -0
  85. package/es/components/ui/basic-grid/index.mjs +1 -0
  86. package/es/components/ui/basic-grid/types.d.ts +6 -0
  87. package/es/components/ui/embed-grid/embed-grid.vue.d.ts +62 -0
  88. package/es/components/ui/embed-grid/embed-grid.vue.mjs +7 -0
  89. package/es/components/ui/embed-grid/embed-grid.vue_vue_type_script_setup_true_name_embed-grid_lang.mjs +73 -0
  90. package/es/components/ui/embed-grid/index.d.ts +3 -0
  91. package/es/components/ui/embed-grid/index.mjs +1 -0
  92. package/es/components/ui/embed-grid/types.d.ts +5 -0
  93. package/es/components/ui/form-alert/form-alert.vue.d.ts +10 -0
  94. package/es/components/ui/form-alert/form-alert.vue.mjs +7 -0
  95. package/es/components/ui/form-alert/form-alert.vue_vue_type_script_setup_true_name_form-alert_lang.mjs +31 -0
  96. package/es/components/ui/form-alert/form-alert.vue_vue_type_style_index_0_scoped_a6bdad9c_lang.css +64 -0
  97. package/es/components/ui/grid-btns/grid-btns.vue.d.ts +2 -0
  98. package/es/components/ui/grid-btns/grid-btns.vue.mjs +7 -0
  99. package/es/components/ui/grid-btns/grid-btns.vue_vue_type_script_setup_true_name_grid-btns_lang.mjs +15 -0
  100. package/es/components/ui/grid-btns/grid-btns.vue_vue_type_style_index_0_scoped_e3385a9e_lang.css +70 -0
  101. package/es/components/ui/grid-pagination/grid-pagination.vue.d.ts +12 -0
  102. package/es/components/ui/grid-pagination/grid-pagination.vue.mjs +7 -0
  103. package/es/components/ui/grid-pagination/grid-pagination.vue_vue_type_script_setup_true_name_grid-pagination_lang.mjs +57 -0
  104. package/es/components/ui/grid-pagination/grid-pagination.vue_vue_type_style_index_0_scoped_4905eabf_lang.css +68 -0
  105. package/es/components/ui/grid-pagination/index.d.ts +3 -0
  106. package/es/components/ui/grid-pagination/index.mjs +1 -0
  107. package/es/components/ui/grid-pagination/types.d.ts +24 -0
  108. package/es/components/ui/highlight/highlight.vue.d.ts +6 -0
  109. package/es/components/ui/highlight/highlight.vue.mjs +7 -0
  110. package/es/components/ui/highlight/highlight.vue_vue_type_script_setup_true_name_highlight_lang.mjs +30 -0
  111. package/es/components/ui/highlight/highlight.vue_vue_type_style_index_0_scoped_e17c6606_lang.css +6 -0
  112. package/es/components/ui/icon-tooltip/icon-tooltip.vue.d.ts +10 -0
  113. package/es/components/ui/icon-tooltip/icon-tooltip.vue.mjs +7 -0
  114. package/es/components/ui/icon-tooltip/icon-tooltip.vue_vue_type_script_setup_true_name_icon-tooltip_lang.mjs +27 -0
  115. package/es/components/ui/icon-tooltip/icon-tooltip.vue_vue_type_style_index_0_scoped_a35580e4_lang.css +68 -0
  116. package/es/components/ui/index.d.ts +10 -0
  117. package/es/components/ui/index.mjs +12 -0
  118. package/es/components/ui/modal-wrapper/modal-wrapper.vue.d.ts +26 -0
  119. package/es/components/ui/modal-wrapper/modal-wrapper.vue.mjs +7 -0
  120. package/es/components/ui/modal-wrapper/modal-wrapper.vue_vue_type_script_setup_true_name_modal-wrapper_lang.mjs +78 -0
  121. package/es/components/ui/modal-wrapper/modal-wrapper.vue_vue_type_style_index_0_scoped_6b8a9609_lang.css +28 -0
  122. package/es/components/ui/notice/index.d.ts +8 -0
  123. package/es/components/ui/notice/index.mjs +31 -0
  124. package/es/create-app-vue.mjs +1 -1
  125. package/es/hooks/index.d.ts +1 -0
  126. package/es/hooks/index.mjs +1 -0
  127. package/es/hooks/usePrinter.d.ts +19 -0
  128. package/es/hooks/usePrinter.mjs +50 -0
  129. package/es/index.mjs +30 -3
  130. package/es/interface/i-view-step/i-view-step.d.ts +32 -0
  131. package/es/interface/index.d.ts +1 -0
  132. package/es/modules/category/category-sider.vue.d.ts +1 -1
  133. package/es/modules/category/category-sider.vue.mjs +2 -2
  134. package/es/modules/category/{category-sider.vue_vue_type_style_index_0_scoped_5b8c3a8d_lang.css → category-sider.vue_vue_type_style_index_0_scoped_2ad0d132_lang.css} +33 -33
  135. package/es/modules/color-picker/index.mjs +1 -1
  136. package/es/modules/gct-form/controller/editor-item/editor-item.controller.d.ts +1 -0
  137. package/es/modules/gct-form/controller/editor-item/editor-item.controller.mjs +11 -0
  138. package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.css +67 -0
  139. package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.d.ts +50 -0
  140. package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.mjs +61 -0
  141. package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.provider.d.ts +13 -0
  142. package/es/modules/gct-form/editor/gct-form-date-range/form-date-range.provider.mjs +15 -0
  143. package/es/modules/gct-form/editor/gct-form-date-range/index.d.ts +4 -0
  144. package/es/modules/gct-form/editor/gct-form-date-range/index.mjs +8 -0
  145. package/es/modules/gct-form/editor/gct-form-select/gct-form-select.mjs +1 -1
  146. package/es/modules/gct-form/editor/index.mjs +2 -1
  147. package/es/modules/gct-form/hooks/index.d.ts +1 -0
  148. package/es/modules/gct-form/hooks/index.mjs +1 -0
  149. package/es/modules/gct-form/hooks/use-form-value/use-form-value.d.ts +11 -0
  150. package/es/modules/gct-form/hooks/use-form-value/use-form-value.mjs +27 -0
  151. package/es/modules/gct-form/index.mjs +3 -0
  152. package/es/modules/gct-form/widgets/gct-search-form/form/app-form.css +70 -0
  153. package/es/modules/gct-form/widgets/gct-search-form/form/app-form.d.ts +22 -0
  154. package/es/modules/gct-form/widgets/gct-search-form/form/app-form.mjs +106 -0
  155. package/es/modules/gct-form/widgets/gct-search-form/form-item/form-item.css +73 -0
  156. package/es/modules/gct-form/widgets/gct-search-form/form-item/form-item.d.ts +15 -0
  157. package/es/modules/gct-form/widgets/gct-search-form/form-item/form-item.mjs +22 -0
  158. package/es/modules/gct-form/widgets/gct-search-form/form.controller.d.ts +46 -0
  159. package/es/modules/gct-form/widgets/gct-search-form/form.controller.mjs +69 -0
  160. package/es/modules/gct-form/widgets/gct-search-form/form.state.d.ts +10 -0
  161. package/es/modules/gct-form/widgets/gct-search-form/form.state.mjs +13 -0
  162. package/es/modules/gct-form/widgets/gct-search-form/gct-search-form.css +83 -0
  163. package/es/modules/gct-form/widgets/gct-search-form/gct-search-form.d.ts +33 -0
  164. package/es/modules/gct-form/widgets/gct-search-form/gct-search-form.mjs +56 -0
  165. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -1
  166. package/es/types/index.d.ts +1 -1
  167. package/es/utils/overlay-controller/overlay-controller.d.ts +3 -1
  168. package/es/utils/overlay-controller/overlay-controller.mjs +9 -0
  169. package/package.json +12 -8
  170. package/dist/ColorPicker-BGXmyt7q.js +0 -2
  171. package/dist/template-DwBghb9z.js +0 -2
@@ -0,0 +1,44 @@
1
+ import { PropType } from 'vue';
2
+ import { IModal } from '@gct-paas/core';
3
+ export declare const DesignSaveTip: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ modal: {
5
+ type: PropType<IModal>;
6
+ required: true;
7
+ };
8
+ title: {
9
+ type: StringConstructor;
10
+ default: () => string;
11
+ };
12
+ content: {
13
+ type: StringConstructor;
14
+ default: () => string;
15
+ };
16
+ exit: {
17
+ type: PropType<() => void>;
18
+ };
19
+ saveAndExit: {
20
+ type: PropType<() => void>;
21
+ };
22
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ modal: {
24
+ type: PropType<IModal>;
25
+ required: true;
26
+ };
27
+ title: {
28
+ type: StringConstructor;
29
+ default: () => string;
30
+ };
31
+ content: {
32
+ type: StringConstructor;
33
+ default: () => string;
34
+ };
35
+ exit: {
36
+ type: PropType<() => void>;
37
+ };
38
+ saveAndExit: {
39
+ type: PropType<() => void>;
40
+ };
41
+ }>> & Readonly<{}>, {
42
+ title: string;
43
+ content: string;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,81 @@
1
+ import './design-save-tip.css';/* empty css */
2
+ import { createVNode, defineComponent, isVNode, resolveComponent } from "vue";
3
+ import { t, useNamespace } from "@gct-paas/core";
4
+ //#region src/components/design-save-tip/design-save-tip.tsx
5
+ function _isSlot(s) {
6
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
7
+ }
8
+ var DesignSaveTip = /* @__PURE__ */ defineComponent({
9
+ name: "DesignSaveTip",
10
+ props: {
11
+ modal: {
12
+ type: Object,
13
+ required: true
14
+ },
15
+ title: {
16
+ type: String,
17
+ default: () => {
18
+ return t("sys.cardDesign.back_info.title");
19
+ }
20
+ },
21
+ content: {
22
+ type: String,
23
+ default: () => {
24
+ return t("sys.cardDesign.back_info.content");
25
+ }
26
+ },
27
+ exit: { type: Function },
28
+ saveAndExit: { type: Function }
29
+ },
30
+ setup(props) {
31
+ const ns = useNamespace("design-save-tip");
32
+ /**
33
+ * 继续编辑
34
+ */
35
+ function onContinue() {
36
+ props.modal.dismiss({ ok: false });
37
+ }
38
+ /**
39
+ * 不保存并退出
40
+ *
41
+ */
42
+ function onNotSave() {
43
+ if (props.exit) props.exit();
44
+ props.modal.dismiss({ ok: true });
45
+ }
46
+ /**
47
+ * 保存并退出
48
+ */
49
+ function onSaveAndExit() {
50
+ if (props.saveAndExit) props.saveAndExit();
51
+ props.modal.dismiss({ ok: true });
52
+ }
53
+ return () => {
54
+ let _slot, _slot2, _slot3;
55
+ return createVNode("div", { "class": ns.b() }, [
56
+ createVNode("div", { "class": ns.e("tip-icon") }, [createVNode(resolveComponent("assets-svg-icon"), { "src": "/extras-assets/design-view/exclamation-circle.svg" }, null)]),
57
+ createVNode("div", { "class": ns.e("header") }, [props.title]),
58
+ createVNode("div", { "class": ns.e("content") }, [props.content]),
59
+ createVNode("div", { "class": ns.e("footer") }, [
60
+ createVNode(resolveComponent("a-button"), {
61
+ "type": "link",
62
+ "onClick": onContinue
63
+ }, _isSlot(_slot = t("sys.app.continueEdit")) ? _slot : { default: () => [_slot] }),
64
+ createVNode(resolveComponent("a-button"), {
65
+ "class": ns.e("cancel-btn"),
66
+ "size": "small",
67
+ "onClick": onNotSave
68
+ }, _isSlot(_slot2 = t("sys.cardDesign.back_info.notSave")) ? _slot2 : { default: () => [_slot2] }),
69
+ createVNode(resolveComponent("a-button"), {
70
+ "class": ns.e("save-exit"),
71
+ "type": "primary",
72
+ "size": "small",
73
+ "onClick": onSaveAndExit
74
+ }, _isSlot(_slot3 = t("sys.cardDesign.back_info.saveAndExit")) ? _slot3 : { default: () => [_slot3] })
75
+ ])
76
+ ]);
77
+ };
78
+ }
79
+ });
80
+ //#endregion
81
+ export { DesignSaveTip };
@@ -0,0 +1,133 @@
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-design-step-check {
66
+ position: relative;
67
+ display: flex;
68
+ align-items: center;
69
+ height: 40px;
70
+ padding: 3px 2px;
71
+ overflow: hidden;
72
+ background-color: rgb(232, 235, 240);
73
+ border-radius: 20px;
74
+ }
75
+ .gct-design-step-check::before {
76
+ position: absolute;
77
+ top: 2px;
78
+ left: var(--indicator-left, 3px);
79
+ z-index: 1;
80
+ display: var(--indicator-display, block);
81
+ width: var(--indicator-width, 130px);
82
+ height: 36px;
83
+ pointer-events: none;
84
+ content: "";
85
+ background-color: rgb(255, 255, 255);
86
+ border-radius: 18px;
87
+ }
88
+ .gct-design-step-check__item {
89
+ position: relative;
90
+ z-index: 2;
91
+ display: flex;
92
+ align-items: center;
93
+ min-width: 131px;
94
+ max-width: max-content;
95
+ height: 36px;
96
+ padding: 3px;
97
+ padding-right: 26px;
98
+ color: var(--gct-color-text-1);
99
+ cursor: pointer;
100
+ background-color: transparent;
101
+ border-radius: 18px;
102
+ }
103
+ .gct-design-step-check__item.is-selected .gct-design-step-check__item-number {
104
+ color: #fff;
105
+ background-color: var(--gct-color-primary);
106
+ }
107
+
108
+ .gct-design-step-check__item.is-selected .gct-design-step-check__item-name {
109
+ font-weight: bold;
110
+ color: rgb(33, 37, 40);
111
+ }
112
+
113
+ .gct-design-step-check__item-number {
114
+ display: flex;
115
+ flex-shrink: 0;
116
+ align-items: center;
117
+ justify-content: center;
118
+ width: 30px;
119
+ height: 30px;
120
+ margin-right: 8px;
121
+ font-weight: normal;
122
+ color: #5A5F6B;
123
+ border-radius: 50%;
124
+ }
125
+
126
+ .gct-design-step-check__item-name {
127
+ flex: 1;
128
+ font-size: 16px;
129
+ font-weight: normal;
130
+ line-height: 22px;
131
+ color: #5A5F6B;
132
+ white-space: nowrap;
133
+ }
@@ -0,0 +1,30 @@
1
+ import { PropType } from 'vue';
2
+ import { IViewStep } from '../../interface';
3
+ /**
4
+ * 设计界面步骤选择
5
+ */
6
+ export declare const DesignStepCheck: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ steps: {
8
+ type: PropType<IViewStep[]>;
9
+ default: () => never[];
10
+ };
11
+ currentStep: {
12
+ type: (NumberConstructor | StringConstructor)[];
13
+ default: string;
14
+ };
15
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("stepChange" | "update:currentStep")[], "stepChange" | "update:currentStep", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ steps: {
17
+ type: PropType<IViewStep[]>;
18
+ default: () => never[];
19
+ };
20
+ currentStep: {
21
+ type: (NumberConstructor | StringConstructor)[];
22
+ default: string;
23
+ };
24
+ }>> & Readonly<{
25
+ onStepChange?: ((...args: any[]) => any) | undefined;
26
+ "onUpdate:currentStep"?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ steps: IViewStep[];
29
+ currentStep: string | number;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,96 @@
1
+ import './design-step-check.css';/* empty css */
2
+ import { createVNode, defineComponent, nextTick, onMounted, ref, toRefs, watch } from "vue";
3
+ import { useNamespace } from "@gct-paas/core";
4
+ //#region src/components/design-step-check/design-step-check.tsx
5
+ /**
6
+ * 设计界面步骤选择
7
+ */
8
+ var DesignStepCheck = /* @__PURE__ */ defineComponent({
9
+ name: "DesignStepCheck",
10
+ props: {
11
+ steps: {
12
+ type: Array,
13
+ default: () => []
14
+ },
15
+ currentStep: {
16
+ type: [String, Number],
17
+ default: ""
18
+ }
19
+ },
20
+ emits: ["update:currentStep", "stepChange"],
21
+ setup(props, { emit, expose }) {
22
+ const ns = useNamespace("design-step-check");
23
+ const { steps, currentStep } = toRefs(props);
24
+ const containerRef = ref();
25
+ const innerCurrentStep = ref(currentStep.value);
26
+ const offsetLeft = ref(0);
27
+ const width = ref(0);
28
+ const updateIndicatorPosition = async () => {
29
+ await new Promise((resolve) => setTimeout(resolve, 100));
30
+ await nextTick();
31
+ if (!containerRef.value) return;
32
+ const selectedIndex = steps.value.findIndex((step) => step.tag === innerCurrentStep.value);
33
+ if (selectedIndex === -1) return;
34
+ const items = containerRef.value.querySelectorAll(`.${ns.e("item")}`);
35
+ const selectedItem = items[selectedIndex];
36
+ if (selectedItem) {
37
+ offsetLeft.value = 2;
38
+ for (let i = 0; i < selectedIndex; i++) {
39
+ const item = items[i];
40
+ offsetLeft.value += item.offsetWidth;
41
+ }
42
+ width.value = selectedItem.offsetWidth;
43
+ }
44
+ };
45
+ watch(currentStep, (newValue) => {
46
+ innerCurrentStep.value = newValue;
47
+ updateIndicatorPosition();
48
+ });
49
+ watch(steps, (newSteps) => {
50
+ if (newSteps.length > 0 && !innerCurrentStep.value) {
51
+ innerCurrentStep.value = newSteps[0].tag;
52
+ emit("update:currentStep", innerCurrentStep.value);
53
+ emit("stepChange", innerCurrentStep.value, newSteps[0]);
54
+ }
55
+ updateIndicatorPosition();
56
+ });
57
+ const handleStepClick = (step) => {
58
+ innerCurrentStep.value = step.tag;
59
+ emit("update:currentStep", step.tag);
60
+ emit("stepChange", step.tag, step);
61
+ updateIndicatorPosition();
62
+ };
63
+ onMounted(() => {
64
+ updateIndicatorPosition();
65
+ });
66
+ /**
67
+ * 设置当前步骤,用于外部控制,不需要触发事件
68
+ *
69
+ * @param {string} tag
70
+ */
71
+ function setStep(tag) {
72
+ if (steps.value.some((step) => step.tag === tag)) {
73
+ innerCurrentStep.value = tag;
74
+ updateIndicatorPosition();
75
+ }
76
+ }
77
+ expose({ setStep });
78
+ return () => {
79
+ return createVNode("div", {
80
+ "ref": containerRef,
81
+ "class": ns.b(),
82
+ "style": {
83
+ "--indicator-display": currentStep.value ? "block" : "none",
84
+ "--indicator-left": `${offsetLeft.value || -40}px`,
85
+ "--indicator-width": `${width.value || -131}px`
86
+ }
87
+ }, [props.steps.map((step) => createVNode("div", {
88
+ "key": step.tag,
89
+ "class": [ns.e("item"), ns.is("selected", step.tag === innerCurrentStep.value)],
90
+ "onClick": () => handleStepClick(step)
91
+ }, [createVNode("div", { "class": ns.e("item-number") }, [props.steps.findIndex((s) => s.tag === step.tag) + 1]), createVNode("div", { "class": ns.e("item-name") }, [step.name])]))]);
92
+ };
93
+ }
94
+ });
95
+ //#endregion
96
+ export { DesignStepCheck };
@@ -0,0 +1,157 @@
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
+ /**
66
+ * 设计视图布局组件样式
67
+ * 使用 BEM 命名规范
68
+ */
69
+ .gct-design-view-layout {
70
+ position: relative;
71
+ width: 100%;
72
+ height: 100%;
73
+ overflow: hidden;
74
+ }
75
+ .gct-design-view-layout .gct-modal-name-editor__input .ant-input.ant-input-sm {
76
+ color: rgb(26, 29, 35);
77
+ }
78
+ .gct-design-view-layout__header {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: space-between;
82
+ width: 100%;
83
+ height: 69px;
84
+ padding: 0 24px;
85
+ background-color: #fff;
86
+ border-bottom: 1px solid #E0E3EB;
87
+ }
88
+
89
+ .gct-design-view-layout__header-back {
90
+ display: inline-flex;
91
+ align-items: center;
92
+ justify-content: center;
93
+ width: 20px;
94
+ height: 20px;
95
+ font-size: 20px;
96
+ cursor: pointer;
97
+ }
98
+
99
+ .gct-design-view-layout__header-info {
100
+ display: inline-block;
101
+ margin-left: 16px;
102
+ }
103
+
104
+ .gct-design-view-layout__header-sub-title {
105
+ font-size: 12px;
106
+ color: rgb(90, 95, 107);
107
+ }
108
+
109
+ .gct-design-view-layout__header-title {
110
+ font-size: 14px;
111
+ font-weight: 600;
112
+ }
113
+
114
+ .gct-design-view-layout__header-left {
115
+ display: flex;
116
+ align-items: center;
117
+ height: 100%;
118
+ }
119
+
120
+ .gct-design-view-layout__header-center {
121
+ position: absolute;
122
+ left: 50%;
123
+ transform: translateX(-50%);
124
+ }
125
+
126
+ .gct-design-view-layout__header-right {
127
+ display: flex;
128
+ align-items: center;
129
+ height: 100%;
130
+ }
131
+
132
+ .gct-design-view-layout__header-actions {
133
+ display: flex;
134
+ gap: 12px;
135
+ align-items: center;
136
+ height: 100%;
137
+ }
138
+
139
+ .gct-design-view-layout__header-action-btn {
140
+ display: flex;
141
+ align-items: center;
142
+ }
143
+ .gct-design-view-layout__header-action-btn:focus {
144
+ color: rgba(0, 0, 0, 0.85);
145
+ border-color: #E0E3EB;
146
+ }
147
+ .gct-design-view-layout__header-action-btn .gct-iconfont {
148
+ margin-right: 6px;
149
+ font-size: 14px;
150
+ }
151
+ .gct-design-view-layout__header-action-btn span {
152
+ height: 22px;
153
+ }
154
+
155
+ .gct-design-view-layout__content {
156
+ height: calc(100% - 70px);
157
+ }
@@ -0,0 +1 @@
1
+ export declare const DesignViewLayout: any;
@@ -0,0 +1,140 @@
1
+ import { DesignStepCheck } from "../design-step-check/design-step-check.mjs";
2
+ import './design-view-layout.css';/* empty css */
3
+ import { ModalNameEditor } from "../modal-name-editor/modal-name-editor.mjs";
4
+ import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, ref, resolveComponent, toRefs } from "vue";
5
+ import { t, useNamespace } from "@gct-paas/core";
6
+ import { AssetsSvgIcon } from "@gct-paas/core-components";
7
+ //#region src/components/design-view-layout/design-view-layout.tsx
8
+ function _isSlot(s) {
9
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
10
+ }
11
+ var DesignViewLayout = /* @__PURE__ */ defineComponent({
12
+ name: "DesignViewLayout",
13
+ props: {
14
+ name: {
15
+ type: String,
16
+ default: "未命名"
17
+ },
18
+ defaultName: {
19
+ type: String,
20
+ default: "未命名卡片名称"
21
+ },
22
+ editName: {
23
+ type: Boolean,
24
+ default: true
25
+ },
26
+ subTitle: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ step: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ steps: {
35
+ type: Array,
36
+ default: () => []
37
+ },
38
+ actions: {
39
+ type: Array,
40
+ default: () => []
41
+ },
42
+ save: { type: Function },
43
+ next: { type: Function }
44
+ },
45
+ emits: [
46
+ "changeName",
47
+ "back",
48
+ "stepChange"
49
+ ],
50
+ setup(props, { slots, emit, expose }) {
51
+ const ns = useNamespace("design-view-layout");
52
+ const stepCheckRef = ref();
53
+ const { name, subTitle, step, steps } = toRefs(props);
54
+ const isLoading = ref(false);
55
+ const val = computed({
56
+ get() {
57
+ return name.value;
58
+ },
59
+ set(val) {
60
+ if (name.value !== val) {
61
+ name.value = val;
62
+ emit("changeName", val);
63
+ }
64
+ }
65
+ });
66
+ const isBack = computed(() => {
67
+ return history.length > 1 || !!window.$wujie;
68
+ });
69
+ const isLastStep = computed(() => {
70
+ return steps.value.length === 0 || steps.value[steps.value.length - 1]?.tag === step.value;
71
+ });
72
+ function onBack(e) {
73
+ e.stopPropagation();
74
+ emit("back", e);
75
+ }
76
+ async function onNext() {
77
+ if (props.next) try {
78
+ isLoading.value = true;
79
+ await props.next();
80
+ } catch (error) {
81
+ console.error("DesignViewLayout: next function error", error);
82
+ } finally {
83
+ isLoading.value = false;
84
+ }
85
+ }
86
+ async function onSave() {
87
+ if (props.save) try {
88
+ isLoading.value = true;
89
+ await props.save();
90
+ } catch (error) {
91
+ console.error("DesignViewLayout: save function error", error);
92
+ } finally {
93
+ isLoading.value = false;
94
+ }
95
+ }
96
+ function setStep(stepId) {
97
+ if (stepCheckRef.value) stepCheckRef.value.setStep(stepId);
98
+ }
99
+ expose({ setStep });
100
+ return () => {
101
+ let _slot, _slot2;
102
+ return createVNode("div", { "class": ns.b() }, [createVNode("div", { "class": ns.e("header") }, [
103
+ createVNode("div", { "class": ns.e("header-left") }, [isBack.value ? createVNode("div", {
104
+ "class": ns.e("header-back"),
105
+ "onClick": onBack
106
+ }, [createVNode(AssetsSvgIcon, { "src": "/extras-assets/card-design/arrow_back.svg" }, null)]) : null, props.editName ? createVNode("div", { "class": ns.e("header-info") }, [createVNode("div", { "class": ns.e("header-sub-title") }, [subTitle.value]), createVNode("div", { "class": ns.e("header-title") }, [createVNode(ModalNameEditor, {
107
+ "value": val.value,
108
+ "onUpdate:value": ($event) => val.value = $event,
109
+ "defaultName": props.defaultName
110
+ }, null)])]) : null]),
111
+ createVNode("div", { "class": ns.e("header-center") }, [steps.value.length > 0 ? createVNode(DesignStepCheck, {
112
+ "ref": (ref) => stepCheckRef.value = ref,
113
+ "steps": steps.value,
114
+ "currentStep": step.value,
115
+ "onStepChange": (stepId, stepData) => {
116
+ emit("stepChange", stepId, stepData);
117
+ }
118
+ }, null) : null]),
119
+ createVNode("div", { "class": ns.e("header-right") }, [slots.headerRight ? slots.headerRight() : null, createVNode("div", { "class": ns.e("header-actions") }, [props.steps.length > 0 ? isLastStep.value ? createVNode(Fragment, null, [
120
+ slots.headerActions ? slots.headerActions() : null,
121
+ props.actions.map((actionProps) => {
122
+ createVNode(resolveComponent("a-button"), mergeProps({ "class": ns.e("header-action-btn") }, actionProps), { default: () => [actionProps.title] });
123
+ }),
124
+ createVNode(resolveComponent("a-button"), {
125
+ "class": ns.e("header-action-btn"),
126
+ "type": "primary",
127
+ "loading": isLoading.value,
128
+ "onClick": onSave,
129
+ "icon": createVNode("i", { "class": "gct-iconfont icon-icon_baocun_btn" }, null)
130
+ }, _isSlot(_slot = t("sys.saveText")) ? _slot : { default: () => [_slot] })
131
+ ]) : createVNode(resolveComponent("a-button"), {
132
+ "type": "primary",
133
+ "onClick": onNext
134
+ }, _isSlot(_slot2 = t("sys.nextStep")) ? _slot2 : { default: () => [_slot2] }) : null])])
135
+ ]), createVNode("div", { "class": ns.e("content") }, [slots.default ? slots.default() : null])]);
136
+ };
137
+ }
138
+ });
139
+ //#endregion
140
+ export { DesignViewLayout };
@@ -1,2 +1,3 @@
1
1
  import { default as FieldCascader } from './src/FieldCascader.vue';
2
- export { FieldCascader };
2
+ import { comPropsType } from './src/hooks';
3
+ export { FieldCascader, type comPropsType };