giime 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/index.css +140 -139
  2. package/es/components/src/composite/searchForm/SearchForm.vue.d.ts +9 -0
  3. package/es/components/src/composite/searchForm/SearchForm.vue.mjs +1 -1
  4. package/es/components/src/composite/searchForm/SearchForm.vue2.mjs +5 -3
  5. package/es/components/src/composite/searchForm/SearchForm.vue2.mjs.map +1 -1
  6. package/es/components/src/composite/searchForm/index.d.ts +19 -0
  7. package/es/components/src/composite/searchForm/searchForm.d.ts +8 -0
  8. package/es/components/src/composite/searchForm/searchForm.mjs +8 -0
  9. package/es/components/src/composite/searchForm/searchForm.mjs.map +1 -1
  10. package/es/giime/version.d.ts +1 -1
  11. package/es/giime/version.mjs +1 -1
  12. package/es/giime/version.mjs.map +1 -1
  13. package/es/index.css +140 -139
  14. package/lib/components/src/composite/searchForm/SearchForm.vue.d.ts +9 -0
  15. package/lib/components/src/composite/searchForm/SearchForm.vue.js +1 -1
  16. package/lib/components/src/composite/searchForm/SearchForm.vue2.js +5 -3
  17. package/lib/components/src/composite/searchForm/SearchForm.vue2.js.map +1 -1
  18. package/lib/components/src/composite/searchForm/index.d.ts +19 -0
  19. package/lib/components/src/composite/searchForm/searchForm.d.ts +8 -0
  20. package/lib/components/src/composite/searchForm/searchForm.js +8 -0
  21. package/lib/components/src/composite/searchForm/searchForm.js.map +1 -1
  22. package/lib/giime/version.d.ts +1 -1
  23. package/lib/giime/version.js +1 -1
  24. package/lib/giime/version.js.map +1 -1
  25. package/lib/index.css +140 -139
  26. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -883,57 +883,13 @@ video {
883
883
  .gm-group:hover .group-hover\:gm-block {
884
884
  display: block;
885
885
  }
886
- .gm-upload-pro-preview-dialog[data-v-80b383d8] [data-v-80b383d8] .el-dialog__body {
887
- padding: 0;
888
- }
889
-
890
- .gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload--picture-card {
891
- width: auto;
892
- height: auto;
893
- }
894
- .gm-upload-pro-file {
895
- line-height: normal;
896
- }
897
- .gm-upload-pro-file .el-checkbox-group {
898
- font-size: unset;
899
- }
900
- .gm-upload-pro-file .el-checkbox {
901
- position: absolute;
902
- left: 10px;
903
- top: 0;
904
- z-index: 9;
905
- }
906
- .gm-upload-pro-file .el-upload-list--picture-card {
907
- gap: 10px;
908
- }
909
- .gm-upload-pro-file .el-upload-list__item {
910
- margin: 0;
911
- }
912
- .gm-upload-pro-file .el-upload-list__item-file-name {
913
- line-height: 1.7;
914
- }
915
- .gm-upload-pro-file .el-upload-dragger {
916
- padding: 0;
917
- border: none;
918
- width: 100%;
919
- height: 100%;
920
- display: flex;
921
- }
922
- .gm-upload-pro-file .el-upload--picture-card {
923
- border: none;
924
- }
925
-
926
- .gm-upload-pro-file-disabled .el-upload--picture-card {
927
- display: none;
928
- }
929
- .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
930
- display: none;
886
+ .gm-flex-center[data-v-c17deec9] {
887
+ align-items: center;
931
888
  }
932
889
 
933
- .gm-range-number .el-form-item[data-v-1ae16d96] {
934
- margin: 0;
890
+ .gm-flex-justify-between[data-v-c17deec9] {
891
+ justify-content: space-between;
935
892
  }
936
-
937
893
  .circular[data-v-d7b04fae] {
938
894
  animation: loading-rotate-d7b04fae 2s linear infinite;
939
895
  }
@@ -965,100 +921,60 @@ video {
965
921
  stroke-dashoffset: -120px;
966
922
  }
967
923
  }
968
- .gm-flex-center[data-v-c17deec9] {
969
- align-items: center;
970
- }
971
-
972
- .gm-flex-justify-between[data-v-c17deec9] {
973
- justify-content: space-between;
974
- }
975
- .gm-number-interval-single[data-v-4e6f4d6f] {
976
- border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
977
- box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
978
- background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
979
- }
980
- .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
981
- box-shadow: none;
982
- background: none;
983
- }
984
-
985
- .gm-number-interval-close[data-v-4e6f4d6f] {
986
- display: none;
987
- color: var(--el-input-icon-color, var(--el-text-color-placeholder));
988
- }
989
-
990
- .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
991
- display: flex;
992
- }
993
- [data-v-d3111183] .gmSearchForm .el-form-item {
994
- margin-right: 0;
995
- margin-bottom: 4px;
996
- }
997
- [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
998
- border-right: none;
999
- }
1000
-
1001
- [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
1002
- height: 0;
1003
- }
1004
924
 
1005
- [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
1006
- height: 0;
1007
- }
1008
-
1009
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
1010
- height: 0;
925
+ .gm-range-number .el-form-item[data-v-1ae16d96] {
926
+ margin: 0;
1011
927
  }
1012
928
 
1013
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
1014
- height: 0;
929
+ .gm-upload-pro-preview-dialog[data-v-80b383d8] [data-v-80b383d8] .el-dialog__body {
930
+ padding: 0;
1015
931
  }
1016
932
 
1017
- [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
1018
- height: 0;
933
+ .gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload-list__item, .gm-upload-pro-file-picture-card[data-v-80b383d8] [data-v-80b383d8] .el-upload--picture-card {
934
+ width: auto;
935
+ height: auto;
1019
936
  }
1020
- .gm-upload-file {
937
+ .gm-upload-pro-file {
1021
938
  line-height: normal;
1022
939
  }
1023
- .gm-upload-file .el-checkbox {
940
+ .gm-upload-pro-file .el-checkbox-group {
941
+ font-size: unset;
942
+ }
943
+ .gm-upload-pro-file .el-checkbox {
1024
944
  position: absolute;
1025
945
  left: 10px;
1026
946
  top: 0;
1027
947
  z-index: 9;
1028
948
  }
1029
- .gm-upload-file .el-upload-list--picture-card {
949
+ .gm-upload-pro-file .el-upload-list--picture-card {
1030
950
  gap: 10px;
1031
951
  }
1032
- .gm-upload-file .el-upload-list__item {
952
+ .gm-upload-pro-file .el-upload-list__item {
1033
953
  margin: 0;
1034
954
  }
1035
- .gm-upload-file .el-upload-list__item-file-name {
1036
- line-height: normal;
955
+ .gm-upload-pro-file .el-upload-list__item-file-name {
956
+ line-height: 1.7;
1037
957
  }
1038
- .gm-upload-file .el-upload-dragger {
958
+ .gm-upload-pro-file .el-upload-dragger {
1039
959
  padding: 0;
1040
960
  border: none;
1041
961
  width: 100%;
1042
962
  height: 100%;
1043
963
  display: flex;
1044
964
  }
1045
- .gm-upload-file .el-upload--picture-card {
965
+ .gm-upload-pro-file .el-upload--picture-card {
1046
966
  border: none;
1047
967
  }
1048
968
 
1049
- .gm-upload-file-disabled .el-upload--picture-card {
969
+ .gm-upload-pro-file-disabled .el-upload--picture-card {
1050
970
  display: none;
1051
971
  }
1052
- .gm-upload-file-disabled .el-upload-list__item-status-label {
972
+ .gm-upload-pro-file-disabled .el-upload-list__item-status-label {
1053
973
  display: none;
1054
974
  }
1055
- .gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
1056
- padding: 0;
1057
- }
1058
-
1059
- .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
1060
- width: auto;
1061
- height: auto;
975
+ [data-v-79615afd] .gmSearchForm .el-form-item {
976
+ margin-right: 0;
977
+ margin-bottom: 4px;
1062
978
  }
1063
979
  [data-v-4bbcbf2d] .gmTableNoBorder .el-table__body .el-table__cell {
1064
980
  border-right: none;
@@ -1083,123 +999,208 @@ video {
1083
999
  [data-v-4bbcbf2d] .gmTableNoBorder .el-table__border-left-patch {
1084
1000
  height: 0;
1085
1001
  }
1002
+
1003
+ .pagination-container[data-v-47d35e7b] {
1004
+ background: #fff;
1005
+ padding-top: 12px;
1006
+ }
1007
+ .pagination-container.hidden[data-v-47d35e7b] {
1008
+ display: none;
1009
+ }
1010
+
1011
+ .gm-number-interval-single[data-v-4e6f4d6f] {
1012
+ border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
1013
+ box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
1014
+ background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
1015
+ }
1016
+ .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
1017
+ box-shadow: none;
1018
+ background: none;
1019
+ }
1020
+
1021
+ .gm-number-interval-close[data-v-4e6f4d6f] {
1022
+ display: none;
1023
+ color: var(--el-input-icon-color, var(--el-text-color-placeholder));
1024
+ }
1025
+
1026
+ .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
1027
+ display: flex;
1028
+ }
1086
1029
  @charset "UTF-8";
1087
- .table-custom-header-drawer .el-drawer__header {
1030
+ .custom-operate-drawer .el-drawer__header {
1088
1031
  padding: 10px 15px;
1089
1032
  margin: 0;
1090
1033
  border-bottom: 1px solid #ebeef5;
1091
1034
  }
1092
- .table-custom-header-drawer .el-drawer__title {
1035
+ .custom-operate-drawer .el-drawer__title {
1093
1036
  font-size: 14px;
1094
1037
  color: #333;
1095
1038
  }
1096
- .table-custom-header-drawer .el-drawer__body {
1039
+ .custom-operate-drawer .el-drawer__body {
1097
1040
  padding: 15px;
1098
1041
  }
1099
- .table-custom-header-drawer .el-drawer__footer {
1042
+ .custom-operate-drawer .el-drawer__footer {
1100
1043
  padding: 10px 15px;
1101
1044
  border-top: 1px solid #ebeef5;
1102
1045
  }
1103
- .table-custom-header-drawer .el-checkbox {
1046
+ .custom-operate-drawer .el-checkbox {
1104
1047
  display: flex;
1105
1048
  align-items: center;
1106
1049
  }
1107
- .table-custom-header-drawer .el-input__inner {
1050
+ .custom-operate-drawer .el-input__inner {
1108
1051
  text-align: center;
1109
1052
  }
1110
- .table-custom-header-drawer .el-input__suffix {
1053
+ .custom-operate-drawer .el-input__suffix {
1111
1054
  position: absolute;
1112
1055
  right: 10px;
1113
1056
  }
1114
- .table-custom-header-drawer .custom-content li {
1057
+ .custom-operate-drawer .custom-content li {
1115
1058
  display: flex;
1116
1059
  align-items: center;
1117
1060
  justify-content: center;
1118
1061
  height: 44px;
1119
1062
  }
1120
- .table-custom-header-drawer .custom-group {
1063
+ .custom-operate-drawer .custom-group {
1121
1064
  max-height: calc(100vh - 226px);
1122
1065
  overflow-y: auto;
1123
1066
  }
1124
- .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1067
+ .custom-operate-drawer .custom-group::-webkit-scrollbar {
1125
1068
  /*滚动条整体样式*/
1126
1069
  width: 4px;
1127
1070
  /*高宽分别对应横竖滚动条的尺寸*/
1128
1071
  height: 1px;
1129
1072
  }
1130
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1073
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1131
1074
  /*滚动条里面小方块*/
1132
1075
  border-radius: 10px;
1133
1076
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1134
1077
  background: #999;
1135
1078
  }
1136
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1079
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1137
1080
  /*滚动条里面轨道*/
1138
1081
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1139
1082
  border-radius: 10px;
1140
1083
  background: #eee;
1141
1084
  }
1085
+ [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
1086
+ border-right: none;
1087
+ }
1088
+
1089
+ [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
1090
+ height: 0;
1091
+ }
1092
+
1093
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
1094
+ height: 0;
1095
+ }
1096
+
1097
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
1098
+ height: 0;
1099
+ }
1100
+
1101
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
1102
+ height: 0;
1103
+ }
1104
+
1105
+ [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
1106
+ height: 0;
1107
+ }
1142
1108
  @charset "UTF-8";
1143
- .custom-operate-drawer .el-drawer__header {
1109
+ .table-custom-header-drawer .el-drawer__header {
1144
1110
  padding: 10px 15px;
1145
1111
  margin: 0;
1146
1112
  border-bottom: 1px solid #ebeef5;
1147
1113
  }
1148
- .custom-operate-drawer .el-drawer__title {
1114
+ .table-custom-header-drawer .el-drawer__title {
1149
1115
  font-size: 14px;
1150
1116
  color: #333;
1151
1117
  }
1152
- .custom-operate-drawer .el-drawer__body {
1118
+ .table-custom-header-drawer .el-drawer__body {
1153
1119
  padding: 15px;
1154
1120
  }
1155
- .custom-operate-drawer .el-drawer__footer {
1121
+ .table-custom-header-drawer .el-drawer__footer {
1156
1122
  padding: 10px 15px;
1157
1123
  border-top: 1px solid #ebeef5;
1158
1124
  }
1159
- .custom-operate-drawer .el-checkbox {
1125
+ .table-custom-header-drawer .el-checkbox {
1160
1126
  display: flex;
1161
1127
  align-items: center;
1162
1128
  }
1163
- .custom-operate-drawer .el-input__inner {
1129
+ .table-custom-header-drawer .el-input__inner {
1164
1130
  text-align: center;
1165
1131
  }
1166
- .custom-operate-drawer .el-input__suffix {
1132
+ .table-custom-header-drawer .el-input__suffix {
1167
1133
  position: absolute;
1168
1134
  right: 10px;
1169
1135
  }
1170
- .custom-operate-drawer .custom-content li {
1136
+ .table-custom-header-drawer .custom-content li {
1171
1137
  display: flex;
1172
1138
  align-items: center;
1173
1139
  justify-content: center;
1174
1140
  height: 44px;
1175
1141
  }
1176
- .custom-operate-drawer .custom-group {
1142
+ .table-custom-header-drawer .custom-group {
1177
1143
  max-height: calc(100vh - 226px);
1178
1144
  overflow-y: auto;
1179
1145
  }
1180
- .custom-operate-drawer .custom-group::-webkit-scrollbar {
1146
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1181
1147
  /*滚动条整体样式*/
1182
1148
  width: 4px;
1183
1149
  /*高宽分别对应横竖滚动条的尺寸*/
1184
1150
  height: 1px;
1185
1151
  }
1186
- .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1152
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1187
1153
  /*滚动条里面小方块*/
1188
1154
  border-radius: 10px;
1189
1155
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1190
1156
  background: #999;
1191
1157
  }
1192
- .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1158
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1193
1159
  /*滚动条里面轨道*/
1194
1160
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1195
1161
  border-radius: 10px;
1196
1162
  background: #eee;
1197
1163
  }
1164
+ .gm-upload-preview-dialog[data-v-312f9322] [data-v-312f9322] .el-dialog__body {
1165
+ padding: 0;
1166
+ }
1198
1167
 
1199
- .pagination-container[data-v-47d35e7b] {
1200
- background: #fff;
1201
- padding-top: 12px;
1168
+ .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload-list__item, .gm-upload-file-picture-card[data-v-312f9322] [data-v-312f9322] .el-upload--picture-card {
1169
+ width: auto;
1170
+ height: auto;
1202
1171
  }
1203
- .pagination-container.hidden[data-v-47d35e7b] {
1172
+ .gm-upload-file {
1173
+ line-height: normal;
1174
+ }
1175
+ .gm-upload-file .el-checkbox {
1176
+ position: absolute;
1177
+ left: 10px;
1178
+ top: 0;
1179
+ z-index: 9;
1180
+ }
1181
+ .gm-upload-file .el-upload-list--picture-card {
1182
+ gap: 10px;
1183
+ }
1184
+ .gm-upload-file .el-upload-list__item {
1185
+ margin: 0;
1186
+ }
1187
+ .gm-upload-file .el-upload-list__item-file-name {
1188
+ line-height: normal;
1189
+ }
1190
+ .gm-upload-file .el-upload-dragger {
1191
+ padding: 0;
1192
+ border: none;
1193
+ width: 100%;
1194
+ height: 100%;
1195
+ display: flex;
1196
+ }
1197
+ .gm-upload-file .el-upload--picture-card {
1198
+ border: none;
1199
+ }
1200
+
1201
+ .gm-upload-file-disabled .el-upload--picture-card {
1204
1202
  display: none;
1205
1203
  }
1204
+ .gm-upload-file-disabled .el-upload-list__item-status-label {
1205
+ display: none;
1206
+ }
@@ -7,6 +7,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
7
7
  type: BooleanConstructor;
8
8
  default: boolean;
9
9
  };
10
+ hideActionButtons: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
10
14
  showSearch: {
11
15
  type: import("vue").PropType<boolean>;
12
16
  };
@@ -31,6 +35,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
31
35
  type: BooleanConstructor;
32
36
  default: boolean;
33
37
  };
38
+ hideActionButtons: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
34
42
  showSearch: {
35
43
  type: import("vue").PropType<boolean>;
36
44
  };
@@ -46,6 +54,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
46
54
  }, {
47
55
  options: import("./searchForm").SearchFormPropsOption[];
48
56
  defaultShowMore: boolean;
57
+ hideActionButtons: boolean;
49
58
  }, {}>, {
50
59
  default?: ((props: {}) => any) | undefined;
51
60
  }>;
@@ -2,7 +2,7 @@ import _sfc_main from './SearchForm.vue2.mjs';
2
2
  import './SearchForm.vue3.mjs';
3
3
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
- var SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d3111183"]]);
5
+ var SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-79615afd"]]);
6
6
 
7
7
  export { SearchForm as default };
8
8
  //# sourceMappingURL=SearchForm.vue.mjs.map
@@ -121,14 +121,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
121
121
  /* KEYED_FRAGMENT */
122
122
  )),
123
123
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
124
- createVNode(_component_gm_form_item, {
124
+ withDirectives(createVNode(_component_gm_form_item, {
125
125
  style: normalizeStyle(searchButtonItemStyle.value)
126
126
  }, {
127
127
  default: withCtx(() => [
128
128
  createElementVNode(
129
129
  "div",
130
130
  {
131
- class: normalizeClass(["gm-flex gm-w-full", notShowShowMore.value ? "" : " gm-justify-end"])
131
+ class: normalizeClass(["gm-flex gm-w-full", notShowShowMore.value ? "" : "gm-justify-end"])
132
132
  },
133
133
  [
134
134
  createVNode(_component_gm_button, {
@@ -192,7 +192,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
192
192
  ]),
193
193
  _: 1
194
194
  /* STABLE */
195
- }, 8, ["style"]),
195
+ }, 8, ["style"]), [
196
+ [vShow, !props.hideActionButtons]
197
+ ]),
196
198
  createElementVNode(
197
199
  "div",
198
200
  {
@@ -1 +1 @@
1
- {"version":3,"file":"SearchForm.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/SearchForm.vue"],"sourcesContent":["<script lang=\"ts\">\nconst itemGap = 8\n</script>\n<template>\n <div ref=\"queryDivRef\" class=\"gm-mb-5\">\n <gm-form v-show=\"showSearch\" ref=\"queryRef\" :model=\"queryParams\" :inline=\"true\" class=\"gmSearchForm\">\n <div :class=\"showMore ? '' : 'gm-h-[36px] gm-overflow-hidden'\">\n <div class=\"gm-relative gm-grid gm-w-full\" :style=\"{ gridTemplateColumns: `repeat(${colsCount}, minmax(0, 1fr))`, gap: itemGap + 'px' }\">\n <template v-for=\"(item, index) in optionsList\" :key=\"index\">\n <component :is=\"item.component\" v-bind=\"item.props\" v-model=\"queryParams[item.props.prop]\" />\n </template>\n <slot />\n <gm-form-item :style=\"searchButtonItemStyle\">\n <div class=\"gm-flex gm-w-full\" :class=\"notShowShowMore ? '' : ' gm-justify-end'\">\n <gm-button type=\"primary\" :icon=\"Search\" class=\"\" @click=\"handleQuery\">搜索</gm-button>\n <gm-button :icon=\"Refresh\" @click=\"resetQuery\">重置</gm-button>\n <gm-button v-show=\"!notShowShowMore\" type=\"primary\" text @click=\"handleShowMoreChange\">\n {{ showMore ? '缩起' : '展开' }} <gm-icon class=\"el-icon--right\" :class=\"showMore ? 'gm-rotate-180' : ''\"><ArrowDown /></gm-icon>\n </gm-button>\n </div>\n </gm-form-item>\n <div ref=\"visibilityMarkRef\" class=\"gm-absolute gm-bottom-3 gm-right-0 -gm-z-10 gm-h-1 gm-w-1\" />\n </div>\n </div>\n </gm-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject, nextTick, provide, ref } from 'vue';\nimport { useElementSize } from '@vueuse/core';\nimport { TableCtxKey } from '@giime/constants/table';\nimport { ArrowDown, Refresh, Search } from '@element-plus/icons-vue';\nimport { searchFormEmits, searchFormItemList, searchFormProps } from './searchForm';\nimport { queryParamsKey, searchFormHandleQueryKey } from './constants';\nimport type { CSSProperties } from 'vue';\nimport type { FormInstance } from '../../base/form';\ndefineOptions({\n name: 'GmSearchForm',\n});\nconst tableCtx = inject(TableCtxKey, {});\n\nconst showSearch = defineModel<boolean>('showSearch', { default: true });\n\nconst queryParams = defineModel<Record<string, any>>('queryParams', { required: true });\n\nprovide(queryParamsKey, queryParams);\n\nconst props = defineProps(searchFormProps);\nconst emit = defineEmits(searchFormEmits);\n\nconst queryDivRef = ref<HTMLDivElement>();\nconst visibilityMarkRef = ref<HTMLDivElement>();\n// const markIsVisibility = useElementVisibility(visibilityMarkRef);\n\nconst { width: queryDivWidth, height: queryDivHeight } = useElementSize(queryDivRef);\n// 列个数\nconst colsCount = computed(() => Math.floor(queryDivWidth.value / 269));\nconst showMore = ref(props.defaultShowMore);\n// 当 showMore展开 且高度为60时,不显示展开按钮\nconst notShowShowMore = computed(() => showMore.value === true && queryDivHeight.value <= 70);\n\n/**搜索重置按钮组样式 */\nconst searchButtonItemStyle = computed<CSSProperties>(() => {\n if (notShowShowMore.value) {\n return {};\n }\n return {\n gridColumn: colsCount.value,\n gridRow: showMore.value ? undefined : 1,\n };\n});\nconst handleShowMoreChange = async () => {\n showMore.value = !showMore.value;\n // 手动触发 scroll 事件\n const scrollEvent = new Event('resize');\n await nextTick();\n // 手动触发事件\n window.dispatchEvent(scrollEvent);\n};\n\n// 通过json渲染组件\nconst optionsList = computed(() => {\n return props.options.map(it => {\n const findComponent = searchFormItemList.find(item => item.type === it.type);\n if (findComponent) {\n it.component = findComponent.component;\n }\n return it;\n });\n});\n\nconst queryRef = ref<FormInstance>();\n// 上下文添加queryRef\ntableCtx.queryRef = queryRef;\nconst handleQuery = (...args: any[]) => {\n emit('handleQuery', ...args);\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\nprovide(searchFormHandleQueryKey, handleQuery);\n\nconst resetQuery = () => {\n queryRef.value?.resetFields();\n emit('resetQuery');\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\n\ndefineExpose({\n // queryRef,\n handleQuery,\n resetQuery,\n});\n</script>\n<style lang=\"scss\" scoped>\n:deep(.gmSearchForm .el-form-item) {\n margin-right: 0;\n margin-bottom: 4px;\n}\n</style>\n"],"names":["_useModel"],"mappings":";;;;;;;AACA,MAAM,OAAA,GAAU,CAAA;;;;;;;;;;;;;;AAsChB,IAAA,MAAM,QAAA,GAAW,MAAA,CAAO,WAAA,EAAa,EAAE,CAAA;AAEvC,IAAA,MAAM,UAAA,GAAaA,QAAA,UAAqB,YAA+B,CAAA;AAEvE,IAAA,MAAM,WAAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SearchForm.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/SearchForm.vue"],"sourcesContent":["<script lang=\"ts\">\nconst itemGap = 8\n</script>\n<template>\n <div ref=\"queryDivRef\" class=\"gm-mb-5\">\n <gm-form v-show=\"showSearch\" ref=\"queryRef\" :model=\"queryParams\" :inline=\"true\" class=\"gmSearchForm\">\n <div :class=\"showMore ? '' : 'gm-h-[36px] gm-overflow-hidden'\">\n <div class=\"gm-relative gm-grid gm-w-full\" :style=\"{ gridTemplateColumns: `repeat(${colsCount}, minmax(0, 1fr))`, gap: itemGap + 'px' }\">\n <template v-for=\"(item, index) in optionsList\" :key=\"index\">\n <component :is=\"item.component\" v-bind=\"item.props\" v-model=\"queryParams[item.props.prop]\" />\n </template>\n <slot />\n <gm-form-item v-show=\"!props.hideActionButtons\" :style=\"searchButtonItemStyle\">\n <div class=\"gm-flex gm-w-full\" :class=\"notShowShowMore ? '' : 'gm-justify-end'\">\n <gm-button type=\"primary\" :icon=\"Search\" class=\"\" @click=\"handleQuery\">搜索</gm-button>\n <gm-button :icon=\"Refresh\" @click=\"resetQuery\">重置</gm-button>\n <gm-button v-show=\"!notShowShowMore\" type=\"primary\" text @click=\"handleShowMoreChange\">\n {{ showMore ? '缩起' : '展开' }} <gm-icon class=\"el-icon--right\" :class=\"showMore ? 'gm-rotate-180' : ''\"><ArrowDown /></gm-icon>\n </gm-button>\n </div>\n </gm-form-item>\n <div ref=\"visibilityMarkRef\" class=\"gm-absolute gm-bottom-3 gm-right-0 -gm-z-10 gm-h-1 gm-w-1\" />\n </div>\n </div>\n </gm-form>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { computed, inject, nextTick, provide, ref } from 'vue';\nimport { useElementSize } from '@vueuse/core';\nimport { TableCtxKey } from '@giime/constants/table';\nimport { ArrowDown, Refresh, Search } from '@element-plus/icons-vue';\nimport { searchFormEmits, searchFormItemList, searchFormProps } from './searchForm';\nimport { queryParamsKey, searchFormHandleQueryKey } from './constants';\nimport type { CSSProperties } from 'vue';\nimport type { FormInstance } from '../../base/form';\ndefineOptions({\n name: 'GmSearchForm',\n});\nconst tableCtx = inject(TableCtxKey, {});\n\nconst showSearch = defineModel<boolean>('showSearch', { default: true });\n\nconst queryParams = defineModel<Record<string, any>>('queryParams', { required: true });\n\nprovide(queryParamsKey, queryParams);\n\nconst props = defineProps(searchFormProps);\nconst emit = defineEmits(searchFormEmits);\n\nconst queryDivRef = ref<HTMLDivElement>();\nconst visibilityMarkRef = ref<HTMLDivElement>();\n// const markIsVisibility = useElementVisibility(visibilityMarkRef);\n\nconst { width: queryDivWidth, height: queryDivHeight } = useElementSize(queryDivRef);\n// 列个数\nconst colsCount = computed(() => Math.floor(queryDivWidth.value / 269));\nconst showMore = ref(props.defaultShowMore);\n// 当 showMore展开 且高度为60时,不显示展开按钮\nconst notShowShowMore = computed(() => showMore.value === true && queryDivHeight.value <= 70);\n\n/**搜索重置按钮组样式 */\nconst searchButtonItemStyle = computed<CSSProperties>(() => {\n if (notShowShowMore.value) {\n return {};\n }\n return {\n gridColumn: colsCount.value,\n gridRow: showMore.value ? undefined : 1,\n };\n});\nconst handleShowMoreChange = async () => {\n showMore.value = !showMore.value;\n // 手动触发 scroll 事件\n const scrollEvent = new Event('resize');\n await nextTick();\n // 手动触发事件\n window.dispatchEvent(scrollEvent);\n};\n\n// 通过json渲染组件\nconst optionsList = computed(() => {\n return props.options.map(it => {\n const findComponent = searchFormItemList.find(item => item.type === it.type);\n if (findComponent) {\n it.component = findComponent.component;\n }\n return it;\n });\n});\n\nconst queryRef = ref<FormInstance>();\n// 上下文添加queryRef\ntableCtx.queryRef = queryRef;\nconst handleQuery = (...args: any[]) => {\n emit('handleQuery', ...args);\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\nprovide(searchFormHandleQueryKey, handleQuery);\n\nconst resetQuery = () => {\n queryRef.value?.resetFields();\n emit('resetQuery');\n tableCtx?.tableRef?.value?.scrollTo({ top: 0, behavior: 'smooth' });\n tableCtx.tableV2Ref?.value?.scrollTo({ scrollLeft: 0, scrollTop: 0 });\n};\n\ndefineExpose({\n // queryRef,\n handleQuery,\n resetQuery,\n});\n</script>\n<style lang=\"scss\" scoped>\n:deep(.gmSearchForm .el-form-item) {\n margin-right: 0;\n margin-bottom: 4px;\n}\n</style>\n"],"names":["_useModel"],"mappings":";;;;;;;AACA,MAAM,OAAA,GAAU,CAAA;;;;;;;;;;;;;;AAsChB,IAAA,MAAM,QAAA,GAAW,MAAA,CAAO,WAAA,EAAa,EAAE,CAAA;AAEvC,IAAA,MAAM,UAAA,GAAaA,QAAA,UAAqB,YAA+B,CAAA;AAEvE,IAAA,MAAM,WAAA,GAAcA,QAAA,CAAgC,OAAA,EAAC,aAAiC,CAAA;AAEtF,IAAA,OAAA,CAAQ,gBAAgB,WAAW,CAAA;AAEnC,IAAA,MAAM,KAAA,GAAQ,OAAA;AACd,IAAA,MAAM,IAAA,GAAO,MAAA;AAEb,IAAA,MAAM,cAAc,GAAA,EAAoB;AACxC,IAAA,MAAM,oBAAoB,GAAA,EAAoB;AAG9C,IAAA,MAAM,EAAE,KAAA,EAAO,aAAA,EAAe,QAAQ,cAAA,EAAe,GAAI,eAAe,WAAW,CAAA;AAEnF,IAAA,MAAM,SAAA,GAAY,SAAS,MAAM,IAAA,CAAK,MAAM,aAAA,CAAc,KAAA,GAAQ,GAAG,CAAC,CAAA;AACtE,IAAA,MAAM,QAAA,GAAW,GAAA,CAAI,KAAA,CAAM,eAAe,CAAA;AAE1C,IAAA,MAAM,eAAA,GAAkB,SAAS,MAAM,QAAA,CAAS,UAAU,IAAA,IAAQ,cAAA,CAAe,SAAS,EAAE,CAAA;AAG5F,IAAA,MAAM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AY,CAAA,EAAG,SAAA,EAAW,GAAG,CAAA;AAAA,IACtE,CAAA;AACA,IAAA,OAAA,CAAQ,0BAA0B,WAAW,CAAA;AAE7C,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,QAAA,CAAS,OAAO,WAAA,EAAY;AAC5B,MAAA,IAAA,CAAK,YAAY,CAAA;AACjB,MAAA,QAAA,EAAU,QAAA,EAAU,OAAO,QAAA,CAAS,EAAE,KAAK,CAAA,EAAG,QAAA,EAAU,UAAU,CAAA;AAClE,MAAA,QAAA,CAAS,UAAA,EAAY,OAAO,QAAA,CAAS,EAAE,YAAY,CAAA,EAAG,SAAA,EAAW,GAAG,CAAA;AAAA,IACtE,CAAA;AAEA,IAAA,QAAA,CAAa;AAAA;AAAA,MAEX,WAAA;AAAA,MACA;AAAA,KACD,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -9,6 +9,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
9
9
  type: BooleanConstructor;
10
10
  default: boolean;
11
11
  };
12
+ hideActionButtons: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
12
16
  showSearch: {
13
17
  type: import("vue").PropType<boolean>;
14
18
  };
@@ -38,6 +42,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
38
42
  type: BooleanConstructor;
39
43
  default: boolean;
40
44
  };
45
+ hideActionButtons: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
41
49
  showSearch: {
42
50
  type: import("vue").PropType<boolean>;
43
51
  };
@@ -53,6 +61,7 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
53
61
  }, {
54
62
  options: import("./searchForm").SearchFormPropsOption[];
55
63
  defaultShowMore: boolean;
64
+ hideActionButtons: boolean;
56
65
  }, true, {}, {}, {
57
66
  P: {};
58
67
  B: {};
@@ -69,6 +78,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
69
78
  type: BooleanConstructor;
70
79
  default: boolean;
71
80
  };
81
+ hideActionButtons: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
72
85
  showSearch: {
73
86
  type: import("vue").PropType<boolean>;
74
87
  };
@@ -87,6 +100,7 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
87
100
  }, {}, {}, {}, {
88
101
  options: import("./searchForm").SearchFormPropsOption[];
89
102
  defaultShowMore: boolean;
103
+ hideActionButtons: boolean;
90
104
  }>;
91
105
  __isFragment?: undefined;
92
106
  __isTeleport?: undefined;
@@ -100,6 +114,10 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
100
114
  type: BooleanConstructor;
101
115
  default: boolean;
102
116
  };
117
+ hideActionButtons: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
103
121
  showSearch: {
104
122
  type: import("vue").PropType<boolean>;
105
123
  };
@@ -123,6 +141,7 @@ export declare const GmSearchForm: import("../../../../utils").SFCWithInstall<{
123
141
  }, string, {
124
142
  options: import("./searchForm").SearchFormPropsOption[];
125
143
  defaultShowMore: boolean;
144
+ hideActionButtons: boolean;
126
145
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
127
146
  $slots: {
128
147
  default?: ((props: {}) => any) | undefined;
@@ -24,6 +24,14 @@ export declare const searchFormProps: {
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
+ /**
28
+ * 隐藏搜索重置按钮
29
+ * 默认不隐藏
30
+ */
31
+ hideActionButtons: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
27
35
  };
28
36
  export declare const searchFormEmits: {
29
37
  handleQuery: (...args: any[]) => any;
@@ -22,6 +22,14 @@ const searchFormProps = {
22
22
  defaultShowMore: {
23
23
  type: Boolean,
24
24
  default: true
25
+ },
26
+ /**
27
+ * 隐藏搜索重置按钮
28
+ * 默认不隐藏
29
+ */
30
+ hideActionButtons: {
31
+ type: Boolean,
32
+ default: false
25
33
  }
26
34
  };
27
35
  const searchFormEmits = {
@@ -1 +1 @@
1
- {"version":3,"file":"searchForm.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/searchForm.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { SearchFormCascaderName, SearchFormDatePickerName, SearchFormInputName, SearchFormSelectName } from './searchFormItems';\nimport type { PropType } from 'vue';\nexport const searchFormItemList = [\n { type: 'input', component: SearchFormInputName },\n { type: 'select', component: SearchFormSelectName },\n { type: 'cascader', component: SearchFormCascaderName },\n { type: 'datePicker', component: SearchFormDatePickerName },\n];\nexport interface SearchFormPropsOption {\n // 组件名\n type: string;\n // 组件所需的props\n props: {\n // 字段\n prop: string;\n [key: string]: any;\n };\n [key: string]: any;\n}\nexport const searchFormProps = {\n options: {\n type: Array as PropType<SearchFormPropsOption[]>,\n default: () => [],\n },\n /**\n * 默认展开还是缩起\n * 默认已展开\n */\n defaultShowMore: {\n type: Boolean,\n default: true,\n },\n};\n\nexport const searchFormEmits = {\n handleQuery: (...args: any[]) => args as any,\n resetQuery: (...args: any[]) => args as any,\n};\nexport type SearchFormEmits = typeof searchFormEmits;\n"],"names":[],"mappings":";;;;;;AAGO,MAAM,kBAAA,GAAqB;AAAA,EAChC,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAW,mBAAA,EAAoB;AAAA,EAChD,EAAE,IAAA,EAAM,QAAA,EAAU,SAAA,EAAW,oBAAA,EAAqB;AAAA,EAClD,EAAE,IAAA,EAAM,UAAA,EAAY,SAAA,EAAW,sBAAA,EAAuB;AAAA,EACtD,EAAE,IAAA,EAAM,YAAA,EAAc,SAAA,EAAW,wBAAA;AACnC;AAYO,MAAM,eAAA,GAAkB;AAAA,EAC7B,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,WAAA,EAAa,IAAI,IAAA,KAAgB,IAAA;AAAA,EACjC,UAAA,EAAY,IAAI,IAAA,KAAgB;AAClC;;;;"}
1
+ {"version":3,"file":"searchForm.mjs","sources":["../../../../../../../packages/components/src/composite/searchForm/searchForm.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { SearchFormCascaderName, SearchFormDatePickerName, SearchFormInputName, SearchFormSelectName } from './searchFormItems';\nimport type { PropType } from 'vue';\nexport const searchFormItemList = [\n { type: 'input', component: SearchFormInputName },\n { type: 'select', component: SearchFormSelectName },\n { type: 'cascader', component: SearchFormCascaderName },\n { type: 'datePicker', component: SearchFormDatePickerName },\n];\nexport interface SearchFormPropsOption {\n // 组件名\n type: string;\n // 组件所需的props\n props: {\n // 字段\n prop: string;\n [key: string]: any;\n };\n [key: string]: any;\n}\nexport const searchFormProps = {\n options: {\n type: Array as PropType<SearchFormPropsOption[]>,\n default: () => [],\n },\n /**\n * 默认展开还是缩起\n * 默认已展开\n */\n defaultShowMore: {\n type: Boolean,\n default: true,\n },\n /**\n * 隐藏搜索重置按钮\n * 默认不隐藏\n */\n hideActionButtons: {\n type: Boolean,\n default: false,\n },\n};\n\nexport const searchFormEmits = {\n handleQuery: (...args: any[]) => args as any,\n resetQuery: (...args: any[]) => args as any,\n};\nexport type SearchFormEmits = typeof searchFormEmits;\n"],"names":[],"mappings":";;;;;;AAGO,MAAM,kBAAA,GAAqB;AAAA,EAChC,EAAE,IAAA,EAAM,OAAA,EAAS,SAAA,EAAW,mBAAA,EAAoB;AAAA,EAChD,EAAE,IAAA,EAAM,QAAA,EAAU,SAAA,EAAW,oBAAA,EAAqB;AAAA,EAClD,EAAE,IAAA,EAAM,UAAA,EAAY,SAAA,EAAW,sBAAA,EAAuB;AAAA,EACtD,EAAE,IAAA,EAAM,YAAA,EAAc,SAAA,EAAW,wBAAA;AACnC;AAYO,MAAM,eAAA,GAAkB;AAAA,EAC7B,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,iBAAA,EAAmB;AAAA,IACjB,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb;AAEO,MAAM,eAAA,GAAkB;AAAA,EAC7B,WAAA,EAAa,IAAI,IAAA,KAAgB,IAAA;AAAA,EACjC,UAAA,EAAY,IAAI,IAAA,KAAgB;AAClC;;;;"}
@@ -1 +1 @@
1
- export declare const version = "0.8.8";
1
+ export declare const version = "0.8.9";
@@ -1,4 +1,4 @@
1
- const version = "0.8.7";
1
+ const version = "0.8.8";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.8.7';\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.8.8';\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}