@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,130 @@
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-shrink-panel {
66
+ min-width: 100px;
67
+ height: 100%;
68
+ background-color: var(--gct-color-white);
69
+ border-left: 1px solid var(--gct-color-border);
70
+ }
71
+ .gct-shrink-panel .iconfont {
72
+ font-size: 14px;
73
+ }
74
+ .gct-shrink-panel__column {
75
+ display: none;
76
+ flex-direction: column;
77
+ align-items: center;
78
+ height: 100%;
79
+ background-color: var(--gct-color-bg-3);
80
+ }
81
+
82
+ .gct-shrink-panel__title {
83
+ font-size: 12px;
84
+ line-height: 16px;
85
+ }
86
+
87
+ .gct-shrink-panel__column-icon {
88
+ padding: var(--gct-padding-6);
89
+ cursor: pointer;
90
+ transform: rotate(180deg);
91
+ }
92
+
93
+ .gct-shrink-panel__column-title {
94
+ writing-mode: vertical-rl;
95
+ }
96
+
97
+ .gct-shrink-panel__header {
98
+ display: block;
99
+ display: flex;
100
+ align-items: center;
101
+ justify-content: space-between;
102
+ height: 42px;
103
+ padding: 0 var(--gct-padding-6);
104
+ background-color: var(--gct-color-bg-3);
105
+ }
106
+
107
+ .gct-shrink-panel__body {
108
+ display: block;
109
+ height: calc(100% - 42px);
110
+ }
111
+
112
+ .gct-shrink-panel__icon {
113
+ cursor: pointer;
114
+ }
115
+
116
+ .gct-shrink-panel.is-not-expand {
117
+ width: 40px;
118
+ min-width: 40px;
119
+ }
120
+ .gct-shrink-panel.is-not-expand .gct-shrink-panel__column {
121
+ display: flex;
122
+ }
123
+
124
+ .gct-shrink-panel.is-not-expand .gct-shrink-panel__header {
125
+ display: none;
126
+ }
127
+
128
+ .gct-shrink-panel.is-not-expand .gct-shrink-panel__body {
129
+ display: none;
130
+ }
@@ -0,0 +1,23 @@
1
+ export declare const ShrinkPanel: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ title: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ retractedSuffix: {
7
+ type: StringConstructor;
8
+ };
9
+ }>, {
10
+ ns: import('@gct-paas/core').Namespace;
11
+ isExpand: import('vue').Ref<boolean, boolean>;
12
+ toggleExpand: () => void;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
+ title: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ retractedSuffix: {
19
+ type: StringConstructor;
20
+ };
21
+ }>> & Readonly<{}>, {
22
+ title: string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,41 @@
1
+ import './shrink-panel.css';/* empty css */
2
+ import { createVNode, defineComponent, ref } from "vue";
3
+ import { useNamespace } from "@gct-paas/core";
4
+ //#region src/components/shrink-panel/shrink-panel.tsx
5
+ var ShrinkPanel = /* @__PURE__ */ defineComponent({
6
+ name: "ShrinkPanel",
7
+ props: {
8
+ title: {
9
+ type: String,
10
+ default: ""
11
+ },
12
+ retractedSuffix: { type: String }
13
+ },
14
+ setup() {
15
+ const ns = useNamespace("shrink-panel");
16
+ const isExpand = ref(true);
17
+ const toggleExpand = () => {
18
+ isExpand.value = !isExpand.value;
19
+ };
20
+ return {
21
+ ns,
22
+ isExpand,
23
+ toggleExpand
24
+ };
25
+ },
26
+ render() {
27
+ return createVNode("div", { "class": [this.ns.b(), this.ns.is("not-expand", !this.isExpand)] }, [
28
+ createVNode("div", { "class": this.ns.e("column") }, [createVNode("div", {
29
+ "class": this.ns.e("column-icon"),
30
+ "onClick": this.toggleExpand
31
+ }, [createVNode("i", { "class": "iconfont icon-AlignLeft" }, null)]), createVNode("div", { "class": this.ns.e("column-title") }, [this.title, this.retractedSuffix ? this.retractedSuffix : ""])]),
32
+ createVNode("div", { "class": this.ns.e("header") }, [createVNode("div", { "class": this.ns.e("title") }, [this.title]), createVNode("div", {
33
+ "class": this.ns.e("icon"),
34
+ "onClick": this.toggleExpand
35
+ }, [createVNode("i", { "class": "iconfont icon-AlignLeft" }, null)])]),
36
+ createVNode("div", { "class": this.ns.e("body") }, [this.$slots.default?.()])
37
+ ]);
38
+ }
39
+ });
40
+ //#endregion
41
+ export { ShrinkPanel };
@@ -0,0 +1,81 @@
1
+ import { GridColumn, GridRowData } from './types';
2
+ import { GridPaginationValue } from '../grid-pagination';
3
+ type __VLS_Props = {
4
+ data: GridRowData[];
5
+ columns?: GridColumn[];
6
+ /** 是否有行嵌入内容 */
7
+ hasRowEmbed?: boolean;
8
+ /** 分页参数 */
9
+ pagination?: GridPaginationValue;
10
+ /** 是否展开所有,每次数据变更的时候 */
11
+ isExpandAll?: boolean;
12
+ /** 高度是否占满父元素 */
13
+ isFitParent?: boolean;
14
+ };
15
+ declare function __VLS_template(): {
16
+ attrs: Partial<{}>;
17
+ slots: Partial<Record<NonNullable<string | symbol>, (_: {
18
+ [key: string]: any;
19
+ $table: import('vxe-table').VxeTableConstructor<any>;
20
+ $grid: import('vxe-table').VxeGridConstructor<any> | null | undefined;
21
+ row: any;
22
+ rowIndex: number;
23
+ $rowIndex: number;
24
+ _rowIndex: number;
25
+ column: import("vxe-table").VxeTableDefines.ColumnInfo<any>;
26
+ columnIndex: number;
27
+ $columnIndex: number;
28
+ _columnIndex: number;
29
+ checked?: boolean;
30
+ indeterminate?: boolean;
31
+ items: any[];
32
+ }) => any>>;
33
+ refs: {
34
+ gridRef: {
35
+ $props: import('vxe-table').VxeTableProps<any> & {
36
+ layouts?: import("vxe-table").VxeGridPropTypes.Layouts;
37
+ columns?: import("vxe-table").VxeGridPropTypes.Columns<any> | undefined;
38
+ pagerConfig?: import("vxe-table").VxeGridPropTypes.PagerConfig;
39
+ proxyConfig?: import("vxe-table").VxeGridPropTypes.ProxyConfig<any> | undefined;
40
+ toolbarConfig?: import("vxe-table").VxeGridPropTypes.ToolbarConfig;
41
+ formConfig?: import("vxe-table").VxeGridPropTypes.FormConfig;
42
+ zoomConfig?: import("vxe-table").VxeGridPropTypes.ZoomConfig;
43
+ } & import('vxe-table').VxeGridEventProps<any>;
44
+ $slots: import('vxe-table').VxeGridSlots<any>;
45
+ } | null;
46
+ };
47
+ rootEl: any;
48
+ };
49
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
50
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ "update:pagination": (value: GridPaginationValue) => any;
52
+ "update:value": (value: string) => any;
53
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
54
+ "onUpdate:pagination"?: ((value: GridPaginationValue) => any) | undefined;
55
+ "onUpdate:value"?: ((value: string) => any) | undefined;
56
+ }>, {
57
+ columns: GridColumn[];
58
+ hasRowEmbed: boolean;
59
+ isExpandAll: boolean;
60
+ isFitParent: boolean;
61
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
62
+ gridRef: {
63
+ $props: import('vxe-table').VxeTableProps<any> & {
64
+ layouts?: import("vxe-table").VxeGridPropTypes.Layouts;
65
+ columns?: import("vxe-table").VxeGridPropTypes.Columns<any> | undefined;
66
+ pagerConfig?: import("vxe-table").VxeGridPropTypes.PagerConfig;
67
+ proxyConfig?: import("vxe-table").VxeGridPropTypes.ProxyConfig<any> | undefined;
68
+ toolbarConfig?: import("vxe-table").VxeGridPropTypes.ToolbarConfig;
69
+ formConfig?: import("vxe-table").VxeGridPropTypes.FormConfig;
70
+ zoomConfig?: import("vxe-table").VxeGridPropTypes.ZoomConfig;
71
+ } & import('vxe-table').VxeGridEventProps<any>;
72
+ $slots: import('vxe-table').VxeGridSlots<any>;
73
+ } | null;
74
+ }, any>;
75
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
76
+ export default _default;
77
+ type __VLS_WithTemplateSlots<T, S> = T & {
78
+ new (): {
79
+ $slots: S;
80
+ };
81
+ };
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import basic_grid_vue_vue_type_script_setup_true_name_basic_grid_lang_default from "./basic-grid.vue_vue_type_script_setup_true_name_basic-grid_lang.mjs";
3
+ import './basic-grid.vue_vue_type_style_index_0_scoped_e9d09c1d_lang.css';/* empty css */
4
+ //#region src/components/ui/basic-grid/basic-grid.vue
5
+ var basic_grid_default = /* @__PURE__ */ _plugin_vue_export_helper_default(basic_grid_vue_vue_type_script_setup_true_name_basic_grid_lang_default, [["__scopeId", "data-v-e9d09c1d"]]);
6
+ //#endregion
7
+ export { basic_grid_default as default };
@@ -0,0 +1,134 @@
1
+ import grid_pagination_default from "../grid-pagination/grid-pagination.vue.mjs";
2
+ import "../grid-pagination/index.mjs";
3
+ import { computed, createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeProps, openBlock, ref, renderList, renderSlot, resolveComponent, unref, useSlots, watch, withCtx } from "vue";
4
+ import { useNamespace } from "@gct-paas/core";
5
+ import { Empty } from "ant-design-vue";
6
+ //#region src/components/ui/basic-grid/basic-grid.vue?vue&type=script&setup=true&name=basic-grid&lang.ts
7
+ var basic_grid_vue_vue_type_script_setup_true_name_basic_grid_lang_default = /* @__PURE__ */ defineComponent({
8
+ __name: "basic-grid",
9
+ props: {
10
+ data: {},
11
+ columns: { default: () => [] },
12
+ hasRowEmbed: {
13
+ type: Boolean,
14
+ default: false
15
+ },
16
+ pagination: {},
17
+ isExpandAll: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ isFitParent: {
22
+ type: Boolean,
23
+ default: false
24
+ }
25
+ },
26
+ emits: ["update:value", "update:pagination"],
27
+ setup(__props, { emit: __emit }) {
28
+ const emptyImage = Empty.PRESENTED_IMAGE_SIMPLE;
29
+ const gridRef = ref();
30
+ const slots = useSlots();
31
+ const ns = useNamespace("basic-grid");
32
+ const props = __props;
33
+ const emit = __emit;
34
+ /** 当前展开的节点集合 */
35
+ const expandedRowKeys = ref([]);
36
+ const onToggleRowExpand = (params) => {
37
+ const { expanded, row } = params;
38
+ if (expanded && row.id) expandedRowKeys.value.push(row.id);
39
+ else if (row.id) expandedRowKeys.value = expandedRowKeys.value.filter((id) => id !== row.id);
40
+ };
41
+ /** 恢复展开的行 */
42
+ const restoreRowExpand = () => {
43
+ if (gridRef.value && expandedRowKeys.value.length) {
44
+ const rows = props.data.filter((item) => item.id && expandedRowKeys.value.includes(item.id));
45
+ gridRef.value.setRowExpand(rows, true);
46
+ }
47
+ };
48
+ const _columns = computed(() => {
49
+ const arr = [...props.columns];
50
+ if (props.hasRowEmbed) {
51
+ if (typeof arr[0]?.width === "number" && arr[0].width > 40) arr[0].width = arr[0].width - 40;
52
+ arr.unshift({
53
+ type: "expand",
54
+ width: 40,
55
+ slots: { content: "row_embed" }
56
+ });
57
+ }
58
+ return arr;
59
+ });
60
+ const showPagination = computed(() => {
61
+ return !!props.pagination;
62
+ });
63
+ const _pagination = computed({
64
+ get() {
65
+ return props.pagination;
66
+ },
67
+ set(v) {
68
+ emit("update:pagination", v);
69
+ }
70
+ });
71
+ const vxeGridConfig = computed(() => {
72
+ const result = {};
73
+ if (props.isExpandAll) Object.assign(result, { expandConfig: { expandAll: true } });
74
+ if (props.isFitParent) Object.assign(result, { height: "auto" });
75
+ else Object.assign(result, { maxHeight: "100%" });
76
+ return result;
77
+ });
78
+ const expandAll = () => {
79
+ if (gridRef.value) {
80
+ if (props.hasRowEmbed) gridRef.value.setAllRowExpand(true);
81
+ else gridRef.value.setAllTreeExpand(true);
82
+ setTimeout(() => {
83
+ gridRef.value.clearScroll();
84
+ }, 100);
85
+ }
86
+ };
87
+ watch(() => props.data, () => {
88
+ nextTick(() => {
89
+ if (props.isExpandAll) expandAll();
90
+ else restoreRowExpand();
91
+ });
92
+ });
93
+ return (_ctx, _cache) => {
94
+ const _component_a_empty = resolveComponent("a-empty");
95
+ const _component_vxe_grid = resolveComponent("vxe-grid");
96
+ return openBlock(), createBlock(_component_vxe_grid, mergeProps({
97
+ ref_key: "gridRef",
98
+ ref: gridRef,
99
+ class: [
100
+ unref(ns).b(),
101
+ showPagination.value && unref(ns).m("has-pagination"),
102
+ __props.isFitParent ? unref(ns).m("fit-parent") : unref(ns).m("fit-content")
103
+ ],
104
+ columns: _columns.value,
105
+ data: __props.data
106
+ }, {
107
+ ...vxeGridConfig.value,
108
+ ..._ctx.$attrs
109
+ }, { onToggleRowExpand }), createSlots({
110
+ empty: withCtx(() => [createVNode(_component_a_empty, { image: unref(emptyImage) }, null, 8, ["image"])]),
111
+ _: 2
112
+ }, [renderList(unref(slots), (_, name) => {
113
+ return {
114
+ name,
115
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
116
+ };
117
+ }), showPagination.value ? {
118
+ name: "pager",
119
+ fn: withCtx(() => [createVNode(unref(grid_pagination_default), {
120
+ value: _pagination.value,
121
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => _pagination.value = $event),
122
+ class: "pagination-total-left"
123
+ }, null, 8, ["value"])]),
124
+ key: "0"
125
+ } : void 0]), 1040, [
126
+ "class",
127
+ "columns",
128
+ "data"
129
+ ]);
130
+ };
131
+ }
132
+ });
133
+ //#endregion
134
+ export { basic_grid_vue_vue_type_script_setup_true_name_basic_grid_lang_default as default };
@@ -0,0 +1,90 @@
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-basic-grid[data-v-e9d09c1d] {
66
+ --gct-basic-grid-expand-col-width: 40px;
67
+ --gct-basic-grid-pagination-height: 56px;
68
+ }
69
+ .gct-basic-grid--fit-parent[data-v-e9d09c1d] {
70
+ height: 100%;
71
+ }
72
+ .gct-basic-grid--fit-content[data-v-e9d09c1d] .vxe-grid--pager-wrapper {
73
+ height: calc(var(--gct-basic-grid-pagination-height) / 2);
74
+ }
75
+ .gct-basic-grid[data-v-e9d09c1d] .col--expand + .vxe-header--column > .vxe-cell {
76
+ position: relative;
77
+ left: calc(-1 * var(--gct-basic-grid-expand-col-width));
78
+ }
79
+ .gct-basic-grid[data-v-e9d09c1d] .vxe-table--render-default {
80
+ --vxe-font-color: #212528;
81
+ }
82
+ [data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid .vxe-table--border-line {
83
+ border-width: 0;
84
+ }
85
+ [data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid table.vxe-table--header {
86
+ background-color: transparent;
87
+ }
88
+ [data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid .vxe-header--column:first-child > .vxe-cell,[data-v-e9d09c1d] .vxe-body--expanded-row .gct-basic-grid .vxe-body--column:first-child > .vxe-cell {
89
+ padding-left: 40px;
90
+ }
@@ -0,0 +1,3 @@
1
+ import { default as BasicGrid } from './basic-grid.vue';
2
+ export * from './types';
3
+ export { BasicGrid };
@@ -0,0 +1 @@
1
+ import "./basic-grid.vue.mjs";
@@ -0,0 +1,6 @@
1
+ import { VxeTableDefines } from 'vxe-table';
2
+ export type GridColumn = VxeTableDefines.ColumnOptions;
3
+ export interface GridRowData {
4
+ id?: string;
5
+ [key: string]: unknown;
6
+ }
@@ -0,0 +1,62 @@
1
+ import { GridColumn } from '../basic-grid';
2
+ import { EmbedGridRowData } from './types';
3
+ import { GridPaginationValue } from '../grid-pagination';
4
+ type __VLS_Props = {
5
+ columns: GridColumn[];
6
+ embedColumns: GridColumn[];
7
+ data: EmbedGridRowData[];
8
+ pagination?: GridPaginationValue;
9
+ /** 是否展开所有,每次数据变更的时候 */
10
+ isExpandAll?: boolean;
11
+ };
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: Partial<Record<NonNullable<string | symbol>, (_: {
15
+ [key: string]: any;
16
+ $table: import('vxe-table').VxeTableConstructor<any>;
17
+ $grid: import('vxe-table').VxeGridConstructor<any> | null | undefined;
18
+ row: any;
19
+ rowIndex: number;
20
+ $rowIndex: number;
21
+ _rowIndex: number;
22
+ column: import("vxe-table").VxeTableDefines.ColumnInfo<any>;
23
+ columnIndex: number;
24
+ $columnIndex: number;
25
+ _columnIndex: number;
26
+ checked?: boolean;
27
+ indeterminate?: boolean;
28
+ items: any[];
29
+ }) => any>> & Partial<Record<NonNullable<string | symbol>, (_: {
30
+ [key: string]: any;
31
+ $table: import('vxe-table').VxeTableConstructor<any>;
32
+ $grid: import('vxe-table').VxeGridConstructor<any> | null | undefined;
33
+ row: any;
34
+ rowIndex: number;
35
+ $rowIndex: number;
36
+ _rowIndex: number;
37
+ column: import("vxe-table").VxeTableDefines.ColumnInfo<any>;
38
+ columnIndex: number;
39
+ $columnIndex: number;
40
+ _columnIndex: number;
41
+ checked?: boolean;
42
+ indeterminate?: boolean;
43
+ items: any[];
44
+ }) => any>>;
45
+ refs: {};
46
+ rootEl: any;
47
+ };
48
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
49
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
50
+ "update:pagination": (value: GridPaginationValue) => any;
51
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
52
+ "onUpdate:pagination"?: ((value: GridPaginationValue) => any) | undefined;
53
+ }>, {
54
+ isExpandAll: boolean;
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
56
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
57
+ export default _default;
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -0,0 +1,7 @@
1
+ import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default from "./embed-grid.vue_vue_type_script_setup_true_name_embed-grid_lang.mjs";
3
+ import '../form-alert/form-alert.vue_vue_type_style_index_0_scoped_a6bdad9c_lang.css';/* empty css */
4
+ //#region src/components/ui/embed-grid/embed-grid.vue
5
+ var embed_grid_default = /* @__PURE__ */ _plugin_vue_export_helper_default(embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default, [["__scopeId", "data-v-5ad2d28b"]]);
6
+ //#endregion
7
+ export { embed_grid_default as default };
@@ -0,0 +1,73 @@
1
+ import basic_grid_default from "../basic-grid/basic-grid.vue.mjs";
2
+ import { computed, createBlock, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, renderList, renderSlot, unref, useSlots, withCtx } from "vue";
3
+ import { useNamespace } from "@gct-paas/core";
4
+ //#region src/components/ui/embed-grid/embed-grid.vue?vue&type=script&setup=true&name=embed-grid&lang.ts
5
+ var embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "embed-grid",
7
+ props: {
8
+ columns: {},
9
+ embedColumns: {},
10
+ data: {},
11
+ pagination: {},
12
+ isExpandAll: {
13
+ type: Boolean,
14
+ default: true
15
+ }
16
+ },
17
+ emits: ["update:pagination"],
18
+ setup(__props, { emit: __emit }) {
19
+ const slots = useSlots();
20
+ const ns = useNamespace("embed-grid");
21
+ const props = __props;
22
+ const emit = __emit;
23
+ const _pagination = computed({
24
+ get() {
25
+ return props.pagination;
26
+ },
27
+ set(v) {
28
+ emit("update:pagination", v);
29
+ }
30
+ });
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createBlock(basic_grid_default, {
33
+ pagination: _pagination.value,
34
+ "onUpdate:pagination": _cache[0] || (_cache[0] = ($event) => _pagination.value = $event),
35
+ class: normalizeClass([unref(ns).b()]),
36
+ columns: __props.columns,
37
+ data: __props.data,
38
+ "has-row-embed": true,
39
+ height: "auto",
40
+ "is-expand-all": __props.isExpandAll
41
+ }, createSlots({
42
+ row_embed: withCtx(({ row }) => [createVNode(basic_grid_default, {
43
+ class: normalizeClass([unref(ns).e("row-grid")]),
44
+ columns: __props.embedColumns,
45
+ data: row.children
46
+ }, createSlots({ _: 2 }, [renderList(unref(slots), (_, name) => {
47
+ return {
48
+ name,
49
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
50
+ };
51
+ })]), 1032, [
52
+ "class",
53
+ "columns",
54
+ "data"
55
+ ])]),
56
+ _: 2
57
+ }, [renderList(unref(slots), (_, name) => {
58
+ return {
59
+ name,
60
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps)), void 0, true)])
61
+ };
62
+ })]), 1032, [
63
+ "pagination",
64
+ "class",
65
+ "columns",
66
+ "data",
67
+ "is-expand-all"
68
+ ]);
69
+ };
70
+ }
71
+ });
72
+ //#endregion
73
+ export { embed_grid_vue_vue_type_script_setup_true_name_embed_grid_lang_default as default };
@@ -0,0 +1,3 @@
1
+ import { default as EmbedGrid } from './embed-grid.vue';
2
+ export * from './types';
3
+ export { EmbedGrid };
@@ -0,0 +1 @@
1
+ import "./embed-grid.vue.mjs";
@@ -0,0 +1,5 @@
1
+ import { GridColumn, GridRowData } from '../basic-grid';
2
+ export interface EmbedGridRowData extends GridRowData {
3
+ children?: EmbedGridRowData[];
4
+ }
5
+ export type EmbedGridColumn = GridColumn;