@jetlinks-web/components 3.1.0 → 3.1.2

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.
@@ -70,8 +70,7 @@ const __sfc_main__ = _defineComponent({
70
70
  _options.value = props.options || [];
71
71
  }, { immediate: true });
72
72
  return (_ctx, _cache) => {
73
- return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
74
- style: { "width": "100%" },
73
+ return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps({ style: { "width": "100%" } }, props, {
75
74
  options: _options.value,
76
75
  onSearch: onSearch,
77
76
  onDropdownVisibleChange: dropdownVisibleChange
@@ -311,7 +311,7 @@ const __sfc_main__ = Object.assign({
311
311
  _: 1 /* STABLE */
312
312
  }, 8 /* PROPS */, ["activeKey", "hideAdd"]),
313
313
  _createVNode(_component_a_modal, {
314
- visible: visible.value,
314
+ open: visible.value,
315
315
  title: _unref(contextLocale).Group.editGroup,
316
316
  maskClosable: false,
317
317
  getContainer: modalContainer,
@@ -352,7 +352,7 @@ const __sfc_main__ = Object.assign({
352
352
  }, 8 /* PROPS */, ["model"])
353
353
  ]),
354
354
  _: 1 /* STABLE */
355
- }, 8 /* PROPS */, ["visible", "title"])
355
+ }, 8 /* PROPS */, ["open", "title"])
356
356
  ], 2 /* CLASS */));
357
357
  };
358
358
  }
@@ -162,7 +162,9 @@ const __sfc_main__ = Object.assign({
162
162
  ref_key: "tooltipRef",
163
163
  ref: tooltipRef,
164
164
  placement: "top"
165
- }, __props.tooltip, { visible: visible.value }), _createSlots({
165
+ }, __props.tooltip, {
166
+ open: visible.value && __props.tooltip !== false
167
+ }), _createSlots({
166
168
  default: _withCtx(() => [
167
169
  _createElementVNode("span", _mergeProps({
168
170
  ref_key: "triggerRef",
@@ -193,7 +195,7 @@ const __sfc_main__ = Object.assign({
193
195
  key: "0"
194
196
  }
195
197
  : undefined
196
- ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["visible"]));
198
+ ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["open"]));
197
199
  };
198
200
  }
199
201
  });
@@ -133,7 +133,7 @@ const __sfc_main__ = _defineComponent({
133
133
  placement: "bottom",
134
134
  trigger: "click",
135
135
  "overlay-class-name": "search-history-list-pop",
136
- visible: historyVisible.value,
136
+ open: historyVisible.value,
137
137
  onVisibleChange: visibleChange
138
138
  }, {
139
139
  content: _withCtx(() => [
@@ -186,7 +186,7 @@ const __sfc_main__ = _defineComponent({
186
186
  ])
187
187
  ]),
188
188
  _: 1 /* STABLE */
189
- }, 8 /* PROPS */, ["visible"])
189
+ }, 8 /* PROPS */, ["open"])
190
190
  ], 2 /* CLASS */));
191
191
  };
192
192
  }
@@ -86,8 +86,8 @@ const __sfc_main__ = _defineComponent({
86
86
  };
87
87
  return (_ctx, _cache) => {
88
88
  return (_openBlock(), _createBlock(_unref(Popover), {
89
- visible: visible.value,
90
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => ((visible).value = $event)),
89
+ open: visible.value,
90
+ "onUpdate:open": _cache[1] || (_cache[1] = ($event) => ((visible).value = $event)),
91
91
  title: _unref(contextLocale).advanced.saveHistory.searchName,
92
92
  trigger: "click",
93
93
  placement: "bottom",
@@ -149,7 +149,7 @@ const __sfc_main__ = _defineComponent({
149
149
  })
150
150
  ]),
151
151
  _: 1 /* STABLE */
152
- }, 8 /* PROPS */, ["visible", "title"]));
152
+ }, 8 /* PROPS */, ["open", "title"]));
153
153
  };
154
154
  }
155
155
  });
package/es/Search/Item.js CHANGED
@@ -1,3 +1,19 @@
1
+ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
2
+ const op = ops[i];
3
+ const fn = ops[i + 1];
4
+ i += 2;
5
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
6
+ return undefined;
7
+ }
8
+ if (op === 'access' || op === 'optionalAccess') {
9
+ lastAccessLHS = value;
10
+ value = fn(value);
11
+ }
12
+ else if (op === 'call' || op === 'optionalCall') {
13
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
14
+ lastAccessLHS = undefined;
15
+ }
16
+ } return value; }
1
17
  /* Analyzed bindings: {
2
18
  "column": "props",
3
19
  "value": "props",
@@ -118,7 +134,16 @@ const __sfc_main__ = _defineComponent({
118
134
  const prefixCls = computed(() => 'JSearch');
119
135
  const [wrapSSR, hashId] = useSearchStyle(prefixCls);
120
136
  const termTypeOptions = computed(() => {
121
- return getTermOptions(targetComponents.value.type, contextLocale.value);
137
+ const columnTarget = findItemByColumn();
138
+ const columnSearch = _optionalChain([columnTarget, 'optionalAccess', _ => _.search]);
139
+ let _termsOptions = getTermOptions(targetComponents.value.type, contextLocale.value);
140
+ if (_optionalChain([columnSearch, 'optionalAccess', _2 => _2.termOptions])) {
141
+ _termsOptions = columnSearch.termOptions;
142
+ }
143
+ else if (_optionalChain([columnSearch, 'optionalAccess', _3 => _3.termFilter, 'optionalAccess', _4 => _4.length])) {
144
+ _termsOptions = _termsOptions.filter((item) => !_optionalChain([columnSearch, 'access', _5 => _5.termFilter, 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(item.value)]));
145
+ }
146
+ return _termsOptions;
122
147
  });
123
148
  const columnOptions = computed(() => {
124
149
  return Object.values(columnsMap.value).sort((a, b) => a._sort_index - b._sort_index).map(item => ({ label: item.title, value: item.dataIndex }));
@@ -5,6 +5,7 @@ import { provide, inject, watchEffect, ref } from 'vue';
5
5
  import { getItemDefaultValue } from "../util";
6
6
  export * from './useSearchItems';
7
7
  export * from './useRouteQuery';
8
+ export * from './useTermOptions';
8
9
  var optionMapKey = Symbol('optionMapKey');
9
10
  var columnsMapKey = Symbol('columnMapKey');
10
11
  var columnsValues = Symbol('columnsValues');
@@ -0,0 +1,31 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import { ref } from 'vue';
3
+ import { TermTypeMap } from "../setting";
4
+ import { useLocaleReceiver } from "../../LocaleReciver";
5
+ export var useTermOptions = function useTermOptions(options) {
6
+ var _useLocaleReceiver = useLocaleReceiver('Search'),
7
+ _useLocaleReceiver2 = _slicedToArray(_useLocaleReceiver, 1),
8
+ contextLocale = _useLocaleReceiver2[0];
9
+ var termTypeMap = TermTypeMap(contextLocale.value);
10
+ var termsOptionsCache = Object.values(termTypeMap);
11
+ var termOptions = ref();
12
+ var termsKey = Object.keys(termTypeMap).reduce(function (previousValue, currentValue) {
13
+ previousValue[currentValue] = termTypeMap[currentValue].value;
14
+ return previousValue;
15
+ }, {});
16
+ if (options !== null && options !== void 0 && options.omit) {
17
+ termOptions.value = termsOptionsCache.filter(function (item) {
18
+ return !options.omit.includes(item.value);
19
+ });
20
+ } else if (options !== null && options !== void 0 && options.pick) {
21
+ termOptions.value = termsOptionsCache.filter(function (item) {
22
+ return options.pick.includes(item.value);
23
+ });
24
+ } else {
25
+ termOptions.value = [].concat(termsOptionsCache);
26
+ }
27
+ return {
28
+ termOptions: termOptions,
29
+ termsKey: termsKey
30
+ };
31
+ };
@@ -49,6 +49,7 @@ export var typeOptions = function typeOptions(locale) {
49
49
  }];
50
50
  };
51
51
  export var TermTypeMap = function TermTypeMap(locale) {
52
+ var _locale$setting, _locale$setting2, _locale$setting3, _locale$setting4, _locale$setting5, _locale$setting6;
52
53
  return {
53
54
  EQ: {
54
55
  label: '=',
@@ -59,11 +60,11 @@ export var TermTypeMap = function TermTypeMap(locale) {
59
60
  value: 'not'
60
61
  },
61
62
  LIKE: {
62
- label: locale.setting.include,
63
+ label: (_locale$setting = locale.setting) === null || _locale$setting === void 0 ? void 0 : _locale$setting.include,
63
64
  value: 'like'
64
65
  },
65
66
  NLIKE: {
66
- label: locale.setting.exclude,
67
+ label: (_locale$setting2 = locale.setting) === null || _locale$setting2 === void 0 ? void 0 : _locale$setting2.exclude,
67
68
  value: 'nlike'
68
69
  },
69
70
  GT: {
@@ -83,19 +84,19 @@ export var TermTypeMap = function TermTypeMap(locale) {
83
84
  value: 'lte'
84
85
  },
85
86
  IN: {
86
- label: locale.setting.in,
87
+ label: (_locale$setting3 = locale.setting) === null || _locale$setting3 === void 0 ? void 0 : _locale$setting3.in,
87
88
  value: 'in'
88
89
  },
89
90
  NIN: {
90
- label: locale.setting.notIn,
91
+ label: (_locale$setting4 = locale.setting) === null || _locale$setting4 === void 0 ? void 0 : _locale$setting4.notIn,
91
92
  value: 'nin'
92
93
  },
93
94
  BTW: {
94
- label: locale.setting.between,
95
+ label: (_locale$setting5 = locale.setting) === null || _locale$setting5 === void 0 ? void 0 : _locale$setting5.between,
95
96
  value: 'btw'
96
97
  },
97
98
  NBTW: {
98
- label: locale.setting.notBetween,
99
+ label: (_locale$setting6 = locale.setting) === null || _locale$setting6 === void 0 ? void 0 : _locale$setting6.notBetween,
99
100
  value: 'nbtw'
100
101
  }
101
102
  };
@@ -36,7 +36,7 @@ var genSkeletonStyle = function genSkeletonStyle(config) {
36
36
  })), "".concat(componentCls), (_$concat6 = {
37
37
  height: '100%'
38
38
  }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat6, "".concat(componentCls, "-item"), {
39
- background: 'linear-gradient(90deg, ${JSkeletonBg} 25%, ${JSkeletonBg1} 50%, ${JSkeletonBg} 75%)',
39
+ background: "linear-gradient(90deg, ".concat(JSkeletonBg, " 25%, ").concat(JSkeletonBg1, " 50%, ").concat(JSkeletonBg, " 75%)"),
40
40
  backgroundSize: '400% 100%',
41
41
  borderRadius: JSkeletonBorderRadius,
42
42
  height: JSkeletonSize
@@ -34,7 +34,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
34
34
  "watch": "setup-const",
35
35
  "computed": "setup-const",
36
36
  "componentsType": "setup-maybe-ref",
37
- "MonacoEditor": "setup-maybe-ref",
38
37
  "Select": "setup-maybe-ref",
39
38
  "DatePicker": "setup-maybe-ref",
40
39
  "TimePicker": "setup-maybe-ref",
@@ -42,7 +41,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
42
41
  "InputNumber": "setup-maybe-ref",
43
42
  "InputPassword": "setup-maybe-ref",
44
43
  "Upload": "setup-maybe-ref",
45
- "Modal": "setup-maybe-ref",
46
44
  "omit": "setup-maybe-ref",
47
45
  "emit": "setup-const",
48
46
  "props": "setup-reactive-const",
@@ -74,7 +72,7 @@ const __sfc_main__ = _defineComponent({
74
72
  // 组件类型
75
73
  itemType: {
76
74
  type: String,
77
- default: () => 'string',
75
+ default: 'string',
78
76
  },
79
77
  // 多选框
80
78
  mode: {
@@ -7,6 +7,7 @@ export var componentsType = {
7
7
  array: 'input',
8
8
  password: 'password',
9
9
  enum: 'select',
10
+ select: 'select',
10
11
  boolean: 'select',
11
12
  date: 'date',
12
13
  time: 'time',
@@ -70,8 +70,7 @@ const __sfc_main__ = _defineComponent({
70
70
  _options.value = props.options || [];
71
71
  }, { immediate: true });
72
72
  return (_ctx, _cache) => {
73
- return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
74
- style: { "width": "100%" },
73
+ return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps({ style: { "width": "100%" } }, props, {
75
74
  options: _options.value,
76
75
  onSearch: onSearch,
77
76
  onDropdownVisibleChange: dropdownVisibleChange
@@ -311,7 +311,7 @@ const __sfc_main__ = Object.assign({
311
311
  _: 1 /* STABLE */
312
312
  }, 8 /* PROPS */, ["activeKey", "hideAdd"]),
313
313
  _createVNode(_component_a_modal, {
314
- visible: visible.value,
314
+ open: visible.value,
315
315
  title: _unref(contextLocale).Group.editGroup,
316
316
  maskClosable: false,
317
317
  getContainer: modalContainer,
@@ -352,7 +352,7 @@ const __sfc_main__ = Object.assign({
352
352
  }, 8 /* PROPS */, ["model"])
353
353
  ]),
354
354
  _: 1 /* STABLE */
355
- }, 8 /* PROPS */, ["visible", "title"])
355
+ }, 8 /* PROPS */, ["open", "title"])
356
356
  ], 2 /* CLASS */));
357
357
  };
358
358
  }
@@ -162,7 +162,9 @@ const __sfc_main__ = Object.assign({
162
162
  ref_key: "tooltipRef",
163
163
  ref: tooltipRef,
164
164
  placement: "top"
165
- }, __props.tooltip, { visible: visible.value }), _createSlots({
165
+ }, __props.tooltip, {
166
+ open: visible.value && __props.tooltip !== false
167
+ }), _createSlots({
166
168
  default: _withCtx(() => [
167
169
  _createElementVNode("span", _mergeProps({
168
170
  ref_key: "triggerRef",
@@ -193,7 +195,7 @@ const __sfc_main__ = Object.assign({
193
195
  key: "0"
194
196
  }
195
197
  : undefined
196
- ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["visible"]));
198
+ ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["open"]));
197
199
  };
198
200
  }
199
201
  });
@@ -133,7 +133,7 @@ const __sfc_main__ = _defineComponent({
133
133
  placement: "bottom",
134
134
  trigger: "click",
135
135
  "overlay-class-name": "search-history-list-pop",
136
- visible: historyVisible.value,
136
+ open: historyVisible.value,
137
137
  onVisibleChange: visibleChange
138
138
  }, {
139
139
  content: _withCtx(() => [
@@ -186,7 +186,7 @@ const __sfc_main__ = _defineComponent({
186
186
  ])
187
187
  ]),
188
188
  _: 1 /* STABLE */
189
- }, 8 /* PROPS */, ["visible"])
189
+ }, 8 /* PROPS */, ["open"])
190
190
  ], 2 /* CLASS */));
191
191
  };
192
192
  }
@@ -86,8 +86,8 @@ const __sfc_main__ = _defineComponent({
86
86
  };
87
87
  return (_ctx, _cache) => {
88
88
  return (_openBlock(), _createBlock(_unref(Popover), {
89
- visible: visible.value,
90
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => ((visible).value = $event)),
89
+ open: visible.value,
90
+ "onUpdate:open": _cache[1] || (_cache[1] = ($event) => ((visible).value = $event)),
91
91
  title: _unref(contextLocale).advanced.saveHistory.searchName,
92
92
  trigger: "click",
93
93
  placement: "bottom",
@@ -149,7 +149,7 @@ const __sfc_main__ = _defineComponent({
149
149
  })
150
150
  ]),
151
151
  _: 1 /* STABLE */
152
- }, 8 /* PROPS */, ["visible", "title"]));
152
+ }, 8 /* PROPS */, ["open", "title"]));
153
153
  };
154
154
  }
155
155
  });
@@ -1,3 +1,19 @@
1
+ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
2
+ const op = ops[i];
3
+ const fn = ops[i + 1];
4
+ i += 2;
5
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
6
+ return undefined;
7
+ }
8
+ if (op === 'access' || op === 'optionalAccess') {
9
+ lastAccessLHS = value;
10
+ value = fn(value);
11
+ }
12
+ else if (op === 'call' || op === 'optionalCall') {
13
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
14
+ lastAccessLHS = undefined;
15
+ }
16
+ } return value; }
1
17
  /* Analyzed bindings: {
2
18
  "column": "props",
3
19
  "value": "props",
@@ -118,7 +134,16 @@ const __sfc_main__ = _defineComponent({
118
134
  const prefixCls = computed(() => 'JSearch');
119
135
  const [wrapSSR, hashId] = useSearchStyle(prefixCls);
120
136
  const termTypeOptions = computed(() => {
121
- return getTermOptions(targetComponents.value.type, contextLocale.value);
137
+ const columnTarget = findItemByColumn();
138
+ const columnSearch = _optionalChain([columnTarget, 'optionalAccess', _ => _.search]);
139
+ let _termsOptions = getTermOptions(targetComponents.value.type, contextLocale.value);
140
+ if (_optionalChain([columnSearch, 'optionalAccess', _2 => _2.termOptions])) {
141
+ _termsOptions = columnSearch.termOptions;
142
+ }
143
+ else if (_optionalChain([columnSearch, 'optionalAccess', _3 => _3.termFilter, 'optionalAccess', _4 => _4.length])) {
144
+ _termsOptions = _termsOptions.filter((item) => !_optionalChain([columnSearch, 'access', _5 => _5.termFilter, 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(item.value)]));
145
+ }
146
+ return _termsOptions;
122
147
  });
123
148
  const columnOptions = computed(() => {
124
149
  return Object.values(columnsMap.value).sort((a, b) => a._sort_index - b._sort_index).map(item => ({ label: item.title, value: item.dataIndex }));
@@ -42,6 +42,18 @@ Object.keys(_useRouteQuery).forEach(function (key) {
42
42
  }
43
43
  });
44
44
  });
45
+ var _useTermOptions = require("./useTermOptions");
46
+ Object.keys(_useTermOptions).forEach(function (key) {
47
+ if (key === "default" || key === "__esModule") return;
48
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
49
+ if (key in exports && exports[key] === _useTermOptions[key]) return;
50
+ Object.defineProperty(exports, key, {
51
+ enumerable: true,
52
+ get: function get() {
53
+ return _useTermOptions[key];
54
+ }
55
+ });
56
+ });
45
57
  var optionMapKey = Symbol('optionMapKey');
46
58
  var columnsMapKey = Symbol('columnMapKey');
47
59
  var columnsValues = Symbol('columnsValues');
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.useTermOptions = void 0;
8
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
+ var _vue = require("vue");
10
+ var _setting = require("../setting");
11
+ var _LocaleReciver = require("../../LocaleReciver");
12
+ var useTermOptions = exports.useTermOptions = function useTermOptions(options) {
13
+ var _useLocaleReceiver = (0, _LocaleReciver.useLocaleReceiver)('Search'),
14
+ _useLocaleReceiver2 = (0, _slicedToArray2.default)(_useLocaleReceiver, 1),
15
+ contextLocale = _useLocaleReceiver2[0];
16
+ var termTypeMap = (0, _setting.TermTypeMap)(contextLocale.value);
17
+ var termsOptionsCache = Object.values(termTypeMap);
18
+ var termOptions = (0, _vue.ref)();
19
+ var termsKey = Object.keys(termTypeMap).reduce(function (previousValue, currentValue) {
20
+ previousValue[currentValue] = termTypeMap[currentValue].value;
21
+ return previousValue;
22
+ }, {});
23
+ if (options !== null && options !== void 0 && options.omit) {
24
+ termOptions.value = termsOptionsCache.filter(function (item) {
25
+ return !options.omit.includes(item.value);
26
+ });
27
+ } else if (options !== null && options !== void 0 && options.pick) {
28
+ termOptions.value = termsOptionsCache.filter(function (item) {
29
+ return options.pick.includes(item.value);
30
+ });
31
+ } else {
32
+ termOptions.value = [].concat(termsOptionsCache);
33
+ }
34
+ return {
35
+ termOptions: termOptions,
36
+ termsKey: termsKey
37
+ };
38
+ };
@@ -55,6 +55,7 @@ var typeOptions = exports.typeOptions = function typeOptions(locale) {
55
55
  }];
56
56
  };
57
57
  var TermTypeMap = exports.TermTypeMap = function TermTypeMap(locale) {
58
+ var _locale$setting, _locale$setting2, _locale$setting3, _locale$setting4, _locale$setting5, _locale$setting6;
58
59
  return {
59
60
  EQ: {
60
61
  label: '=',
@@ -65,11 +66,11 @@ var TermTypeMap = exports.TermTypeMap = function TermTypeMap(locale) {
65
66
  value: 'not'
66
67
  },
67
68
  LIKE: {
68
- label: locale.setting.include,
69
+ label: (_locale$setting = locale.setting) === null || _locale$setting === void 0 ? void 0 : _locale$setting.include,
69
70
  value: 'like'
70
71
  },
71
72
  NLIKE: {
72
- label: locale.setting.exclude,
73
+ label: (_locale$setting2 = locale.setting) === null || _locale$setting2 === void 0 ? void 0 : _locale$setting2.exclude,
73
74
  value: 'nlike'
74
75
  },
75
76
  GT: {
@@ -89,19 +90,19 @@ var TermTypeMap = exports.TermTypeMap = function TermTypeMap(locale) {
89
90
  value: 'lte'
90
91
  },
91
92
  IN: {
92
- label: locale.setting.in,
93
+ label: (_locale$setting3 = locale.setting) === null || _locale$setting3 === void 0 ? void 0 : _locale$setting3.in,
93
94
  value: 'in'
94
95
  },
95
96
  NIN: {
96
- label: locale.setting.notIn,
97
+ label: (_locale$setting4 = locale.setting) === null || _locale$setting4 === void 0 ? void 0 : _locale$setting4.notIn,
97
98
  value: 'nin'
98
99
  },
99
100
  BTW: {
100
- label: locale.setting.between,
101
+ label: (_locale$setting5 = locale.setting) === null || _locale$setting5 === void 0 ? void 0 : _locale$setting5.between,
101
102
  value: 'btw'
102
103
  },
103
104
  NBTW: {
104
- label: locale.setting.notBetween,
105
+ label: (_locale$setting6 = locale.setting) === null || _locale$setting6 === void 0 ? void 0 : _locale$setting6.notBetween,
105
106
  value: 'nbtw'
106
107
  }
107
108
  };
@@ -43,7 +43,7 @@ var genSkeletonStyle = function genSkeletonStyle(config) {
43
43
  })), "".concat(componentCls), (_$concat6 = {
44
44
  height: '100%'
45
45
  }, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(_$concat6, "".concat(componentCls, "-item"), {
46
- background: 'linear-gradient(90deg, ${JSkeletonBg} 25%, ${JSkeletonBg1} 50%, ${JSkeletonBg} 75%)',
46
+ background: "linear-gradient(90deg, ".concat(JSkeletonBg, " 25%, ").concat(JSkeletonBg1, " 50%, ").concat(JSkeletonBg, " 75%)"),
47
47
  backgroundSize: '400% 100%',
48
48
  borderRadius: JSkeletonBorderRadius,
49
49
  height: JSkeletonSize
@@ -34,7 +34,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
34
34
  "watch": "setup-const",
35
35
  "computed": "setup-const",
36
36
  "componentsType": "setup-maybe-ref",
37
- "MonacoEditor": "setup-maybe-ref",
38
37
  "Select": "setup-maybe-ref",
39
38
  "DatePicker": "setup-maybe-ref",
40
39
  "TimePicker": "setup-maybe-ref",
@@ -42,7 +41,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
42
41
  "InputNumber": "setup-maybe-ref",
43
42
  "InputPassword": "setup-maybe-ref",
44
43
  "Upload": "setup-maybe-ref",
45
- "Modal": "setup-maybe-ref",
46
44
  "omit": "setup-maybe-ref",
47
45
  "emit": "setup-const",
48
46
  "props": "setup-reactive-const",
@@ -74,7 +72,7 @@ const __sfc_main__ = _defineComponent({
74
72
  // 组件类型
75
73
  itemType: {
76
74
  type: String,
77
- default: () => 'string',
75
+ default: 'string',
78
76
  },
79
77
  // 多选框
80
78
  mode: {
@@ -13,6 +13,7 @@ var componentsType = exports.componentsType = {
13
13
  array: 'input',
14
14
  password: 'password',
15
15
  enum: 'select',
16
+ select: 'select',
16
17
  boolean: 'select',
17
18
  date: 'date',
18
19
  time: 'time',
@@ -1,8 +0,0 @@
1
- @import "../CardSelect/style/index-pure.less";
2
- @import "../CheckButton/style/index-pure.less";
3
- @import "../DragModal/style/index-pure.less";
4
- @import "../EditTable/style/index-pure.less";
5
- @import "../Ellipsis/style/index-pure.less";
6
- @import "../RadioButton/style/index-pure.less";
7
- @import "../Scrollbar/style/index-pure.less";
8
- @import "../Title/style/index-pure.less";
package/package.json CHANGED
@@ -1,170 +1,170 @@
1
- {
2
- "name": "@jetlinks-web/components",
3
- "version": "3.1.0",
4
- "description": "",
5
- "main": "lib/index.js",
6
- "module": "es/index.js",
7
- "keywords": [
8
- "jetlinks",
9
- "jetlinks-web",
10
- "components",
11
- "jetlinks-web/components",
12
- "@jetlinks-web",
13
- "@jetlinks-web/components"
14
- ],
15
- "files": [
16
- "lib",
17
- "es"
18
- ],
19
- "private": false,
20
- "author": "",
21
- "license": "ISC",
22
- "dependencies": {
23
- "@vueuse/core": "^10.2.1",
24
- "@vueuse/router": "^12.1.0",
25
- "async-validator": "^4.2.5",
26
- "markdown-it": "^14.1.0",
27
- "markdown-it-abbr": "^2.0.0",
28
- "markdown-it-anchor": "^9.1.0",
29
- "markdown-it-deflist": "^3.0.0",
30
- "markdown-it-emoji": "^3.0.0",
31
- "markdown-it-footnote": "^4.0.0",
32
- "markdown-it-highlightjs": "^4.1.0",
33
- "markdown-it-ins": "^4.0.0",
34
- "markdown-it-mark": "^4.0.0",
35
- "markdown-it-sub": "^2.0.0",
36
- "markdown-it-sup": "^2.0.0",
37
- "markdown-it-task-lists": "^2.1.1",
38
- "markdown-it-toc-done-right": "^4.2.0",
39
- "resize-observer-polyfill": "^1.5.1"
40
- },
41
- "devDependencies": {
42
- "@ant-design/icons-vue": "^7.0.1",
43
- "@babel/cli": "^7.8.4",
44
- "@babel/core": "^7.10.5",
45
- "@babel/plugin-proposal-class-properties": "^7.8.3",
46
- "@babel/plugin-proposal-export-default-from": "^7.8.3",
47
- "@babel/plugin-proposal-export-namespace-from": "^7.12.1",
48
- "@babel/plugin-proposal-object-rest-spread": "^7.9.6",
49
- "@babel/plugin-proposal-optional-chaining": "^7.10.1",
50
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
51
- "@babel/plugin-transform-member-expression-literals": "^7.8.3",
52
- "@babel/plugin-transform-object-assign": "^7.8.3",
53
- "@babel/plugin-transform-property-literals": "^7.8.3",
54
- "@babel/plugin-transform-runtime": "^7.10.5",
55
- "@babel/plugin-transform-template-literals": "^7.8.3",
56
- "@babel/plugin-transform-typescript": "^7.12.1",
57
- "@babel/polyfill": "^7.8.7",
58
- "@babel/preset-env": "^7.9.6",
59
- "@babel/preset-typescript": "^7.10.4",
60
- "@babel/runtime": "^7.24.4",
61
- "@commitlint/cli": "^17.4.2",
62
- "@commitlint/config-conventional": "^17.4.2",
63
- "@rollup/plugin-commonjs": "^22.0.1",
64
- "@rollup/plugin-node-resolve": "^13.3.0",
65
- "@types/eslint": "^8.21.0",
66
- "@types/lodash-es": "^4.17.6",
67
- "@types/node": "^18.13.0",
68
- "@typescript-eslint/eslint-plugin": "^5.50.0",
69
- "@typescript-eslint/parser": "^5.50.0",
70
- "@vitejs/plugin-vue": "^2.3.3",
71
- "@vitejs/plugin-vue-jsx": "^1.3.10",
72
- "@vue/babel-plugin-jsx": "^1.0.0",
73
- "@vue/compiler-sfc": "^3.4.21",
74
- "ant-design-vue": "^4.0.0",
75
- "autoprefixer": "^10.2.0",
76
- "babel-eslint": "^10.0.1",
77
- "babel-loader": "^8.0.0",
78
- "babel-plugin-import": "^1.1.1",
79
- "babel-plugin-inline-import-data-uri": "^1.0.1",
80
- "babel-plugin-istanbul": "^6.0.0",
81
- "babel-plugin-transform-require-context": "^0.1.1",
82
- "case-sensitive-paths-webpack-plugin": "^2.1.2",
83
- "child_process": "^1.0.2",
84
- "colorful": "^2.1.0",
85
- "commander": "^6.1.0",
86
- "commitlint": "^17.4.2",
87
- "compute-scroll-into-view": "^3.0.0",
88
- "css-loader": "^6.7.3",
89
- "css-minimizer-webpack-plugin": "^3.0.0",
90
- "dayjs": "^1.11.8",
91
- "duplicate-package-checker-webpack-plugin": "^3.0.0",
92
- "esbuild": "~0.12.29",
93
- "esbuild-loader": "^2.18.0",
94
- "escape-html": "^1.0.3",
95
- "eslint": "^8.33.0",
96
- "eslint-config-prettier": "^8.0.0",
97
- "eslint-plugin-html": "^6.0.0",
98
- "eslint-plugin-import": "^2.24.2",
99
- "eslint-plugin-markdown": "^2.0.0",
100
- "eslint-plugin-vue": "^8.1.1",
101
- "fast-glob": "^3.2.12",
102
- "glob": "^11.0.3",
103
- "globby": "^11.1.0",
104
- "gray-matter": "^4.0.3",
105
- "gulp": "^4.0.2",
106
- "gulp-babel": "^8.0.0",
107
- "gulp-strip-code": "^0.1.4",
108
- "gulp-typescript": "^6.0.0-alpha.1",
109
- "is-windows": "^1.0.2",
110
- "json5": "^2.2.3",
111
- "less": "^4.1.3",
112
- "less-loader": "^11.1.0",
113
- "less-plugin-npm-import": "^2.1.0",
114
- "less-vars-to-js": "^1.3.0",
115
- "lint-staged": "^13.1.0",
116
- "lru-cache": "^7.14.1",
117
- "marked": "0.3.18",
118
- "merge2": "^1.4.1",
119
- "mini-css-extract-plugin": "^2.4.5",
120
- "minimist": "^1.2.0",
121
- "mkdirp": "^0.5.1",
122
- "object-assign": "^4.1.1",
123
- "postcss": "^8.2.12",
124
- "postcss-loader": "^6.0.0",
125
- "prettier": "^2.8.3",
126
- "prismjs": "^1.29.0",
127
- "remove-files-webpack-plugin": "^1.5.0",
128
- "rollup-plugin-esbuild": "^4.9.1",
129
- "rollup-plugin-typescript2": "^0.34.1",
130
- "rollup-plugin-vue": "^6.0.0",
131
- "slash": "^3.0.0",
132
- "string-replace-loader": "^3.1.0",
133
- "style-loader": "^3.3.1",
134
- "sucrase": "^3.29.0",
135
- "terser-webpack-plugin": "^5.1.1",
136
- "through2": "^4.0.2",
137
- "ts-loader": "^9.1.0",
138
- "ts-morph": "^17.0.1",
139
- "typescript": "^4.9.3",
140
- "unplugin-vue-macros": "^0.11.2",
141
- "unplugin-vue-setup-extend": "^0.3.5",
142
- "url": "^0.11.0",
143
- "url-loader": "^3.0.0",
144
- "vite": "^4.0.0",
145
- "vite-plugin-vue-setup-extend": "^0.4.0",
146
- "vue": "^3.2.45",
147
- "vue-loader": "^17.4.2",
148
- "vue-eslint-parser": "^9.1.0",
149
- "vue-router": "4",
150
- "vue-tsc": "^1.0.11",
151
- "webpack": "^5.75.0",
152
- "webpack-bundle-analyzer": "^4.4.2",
153
- "webpack-cli": "^4.6.0",
154
- "webpack-dev-server": "^4.0.0",
155
- "webpack-merge": "^5.0.0",
156
- "webpackbar": "^5.0.2",
157
- "@jetlinks-web/constants": "^1.0.9",
158
- "@jetlinks-web/hooks": "^1.1.1",
159
- "@jetlinks-web/utils": "^1.2.12"
160
- },
161
- "publishConfig": {
162
- "registry": "https://registry.npmjs.org/",
163
- "access": "public"
164
- },
165
- "scripts": {
166
- "compile": "node tools/cli/run.js compile",
167
- "dist": "node --max_old_space_size=8192 tools/cli/run.js dist",
168
- "clean": "pnpm rimraf node_modules && pnpm rimraf .turbo"
169
- }
170
- }
1
+ {
2
+ "name": "@jetlinks-web/components",
3
+ "version": "3.1.2",
4
+ "description": "",
5
+ "main": "lib/index.js",
6
+ "module": "es/index.js",
7
+ "scripts": {
8
+ "compile": "node tools/cli/run.js compile",
9
+ "dist": "node --max_old_space_size=8192 tools/cli/run.js dist",
10
+ "clean": "pnpm rimraf node_modules && pnpm rimraf .turbo"
11
+ },
12
+ "keywords": [
13
+ "jetlinks",
14
+ "jetlinks-web",
15
+ "components",
16
+ "jetlinks-web/components",
17
+ "@jetlinks-web",
18
+ "@jetlinks-web/components"
19
+ ],
20
+ "files": [
21
+ "lib",
22
+ "es"
23
+ ],
24
+ "private": false,
25
+ "author": "",
26
+ "license": "ISC",
27
+ "dependencies": {
28
+ "@vueuse/core": "^10.2.1",
29
+ "@vueuse/router": "^12.1.0",
30
+ "async-validator": "^4.2.5",
31
+ "markdown-it": "^14.1.0",
32
+ "markdown-it-abbr": "^2.0.0",
33
+ "markdown-it-anchor": "^9.1.0",
34
+ "markdown-it-deflist": "^3.0.0",
35
+ "markdown-it-emoji": "^3.0.0",
36
+ "markdown-it-footnote": "^4.0.0",
37
+ "markdown-it-highlightjs": "^4.1.0",
38
+ "markdown-it-ins": "^4.0.0",
39
+ "markdown-it-mark": "^4.0.0",
40
+ "markdown-it-sub": "^2.0.0",
41
+ "markdown-it-sup": "^2.0.0",
42
+ "markdown-it-task-lists": "^2.1.1",
43
+ "markdown-it-toc-done-right": "^4.2.0",
44
+ "resize-observer-polyfill": "^1.5.1"
45
+ },
46
+ "devDependencies": {
47
+ "@ant-design/icons-vue": "^7.0.1",
48
+ "@babel/cli": "^7.8.4",
49
+ "@babel/core": "^7.10.5",
50
+ "@babel/plugin-proposal-class-properties": "^7.8.3",
51
+ "@babel/plugin-proposal-export-default-from": "^7.8.3",
52
+ "@babel/plugin-proposal-export-namespace-from": "^7.12.1",
53
+ "@babel/plugin-proposal-object-rest-spread": "^7.9.6",
54
+ "@babel/plugin-proposal-optional-chaining": "^7.10.1",
55
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
56
+ "@babel/plugin-transform-member-expression-literals": "^7.8.3",
57
+ "@babel/plugin-transform-object-assign": "^7.8.3",
58
+ "@babel/plugin-transform-property-literals": "^7.8.3",
59
+ "@babel/plugin-transform-runtime": "^7.10.5",
60
+ "@babel/plugin-transform-template-literals": "^7.8.3",
61
+ "@babel/plugin-transform-typescript": "^7.12.1",
62
+ "@babel/polyfill": "^7.8.7",
63
+ "@babel/preset-env": "^7.9.6",
64
+ "@babel/preset-typescript": "^7.10.4",
65
+ "@babel/runtime": "^7.24.4",
66
+ "@commitlint/cli": "^17.4.2",
67
+ "@commitlint/config-conventional": "^17.4.2",
68
+ "@jetlinks-web/constants": "workspace:^",
69
+ "@jetlinks-web/hooks": "workspace:^",
70
+ "@jetlinks-web/utils": "workspace:^",
71
+ "@rollup/plugin-commonjs": "^22.0.1",
72
+ "@rollup/plugin-node-resolve": "^13.3.0",
73
+ "@types/eslint": "^8.21.0",
74
+ "@types/lodash-es": "^4.17.6",
75
+ "@types/node": "^18.13.0",
76
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
77
+ "@typescript-eslint/parser": "^5.50.0",
78
+ "@vitejs/plugin-vue": "^2.3.3",
79
+ "@vitejs/plugin-vue-jsx": "^1.3.10",
80
+ "@vue/babel-plugin-jsx": "^1.0.0",
81
+ "@vue/compiler-sfc": "^3.4.21",
82
+ "ant-design-vue": "^4.0.0",
83
+ "autoprefixer": "^10.2.0",
84
+ "babel-eslint": "^10.0.1",
85
+ "babel-loader": "^8.0.0",
86
+ "babel-plugin-import": "^1.1.1",
87
+ "babel-plugin-inline-import-data-uri": "^1.0.1",
88
+ "babel-plugin-istanbul": "^6.0.0",
89
+ "babel-plugin-transform-require-context": "^0.1.1",
90
+ "case-sensitive-paths-webpack-plugin": "^2.1.2",
91
+ "child_process": "^1.0.2",
92
+ "colorful": "^2.1.0",
93
+ "commander": "^6.1.0",
94
+ "commitlint": "^17.4.2",
95
+ "compute-scroll-into-view": "^3.0.0",
96
+ "css-loader": "^6.7.3",
97
+ "css-minimizer-webpack-plugin": "^3.0.0",
98
+ "dayjs": "^1.11.8",
99
+ "duplicate-package-checker-webpack-plugin": "^3.0.0",
100
+ "esbuild": "~0.12.29",
101
+ "esbuild-loader": "^2.18.0",
102
+ "escape-html": "^1.0.3",
103
+ "eslint": "^8.33.0",
104
+ "eslint-config-prettier": "^8.0.0",
105
+ "eslint-plugin-html": "^6.0.0",
106
+ "eslint-plugin-import": "^2.24.2",
107
+ "eslint-plugin-markdown": "^2.0.0",
108
+ "eslint-plugin-vue": "^8.1.1",
109
+ "fast-glob": "^3.2.12",
110
+ "glob": "^11.0.3",
111
+ "globby": "^11.1.0",
112
+ "gray-matter": "^4.0.3",
113
+ "gulp": "^4.0.2",
114
+ "gulp-babel": "^8.0.0",
115
+ "gulp-strip-code": "^0.1.4",
116
+ "gulp-typescript": "^6.0.0-alpha.1",
117
+ "is-windows": "^1.0.2",
118
+ "json5": "^2.2.3",
119
+ "less": "^4.1.3",
120
+ "less-loader": "^11.1.0",
121
+ "less-plugin-npm-import": "^2.1.0",
122
+ "less-vars-to-js": "^1.3.0",
123
+ "lint-staged": "^13.1.0",
124
+ "lru-cache": "^7.14.1",
125
+ "marked": "0.3.18",
126
+ "merge2": "^1.4.1",
127
+ "mini-css-extract-plugin": "^2.4.5",
128
+ "minimist": "^1.2.0",
129
+ "mkdirp": "^0.5.1",
130
+ "object-assign": "^4.1.1",
131
+ "postcss": "^8.2.12",
132
+ "postcss-loader": "^6.0.0",
133
+ "prettier": "^2.8.3",
134
+ "prismjs": "^1.29.0",
135
+ "remove-files-webpack-plugin": "^1.5.0",
136
+ "rollup-plugin-esbuild": "^4.9.1",
137
+ "rollup-plugin-typescript2": "^0.34.1",
138
+ "rollup-plugin-vue": "^6.0.0",
139
+ "slash": "^3.0.0",
140
+ "string-replace-loader": "^3.1.0",
141
+ "style-loader": "^3.3.1",
142
+ "sucrase": "^3.29.0",
143
+ "terser-webpack-plugin": "^5.1.1",
144
+ "through2": "^4.0.2",
145
+ "ts-loader": "^9.1.0",
146
+ "ts-morph": "^17.0.1",
147
+ "typescript": "^4.9.3",
148
+ "unplugin-vue-macros": "^0.11.2",
149
+ "unplugin-vue-setup-extend": "^0.3.5",
150
+ "url": "^0.11.0",
151
+ "url-loader": "^3.0.0",
152
+ "vite": "^4.0.0",
153
+ "vite-plugin-vue-setup-extend": "^0.4.0",
154
+ "vue": "^3.2.45",
155
+ "vue-loader": "^17.4.2",
156
+ "vue-eslint-parser": "^9.1.0",
157
+ "vue-router": "4",
158
+ "vue-tsc": "^1.0.11",
159
+ "webpack": "^5.75.0",
160
+ "webpack-bundle-analyzer": "^4.4.2",
161
+ "webpack-cli": "^4.6.0",
162
+ "webpack-dev-server": "^4.0.0",
163
+ "webpack-merge": "^5.0.0",
164
+ "webpackbar": "^5.0.2"
165
+ },
166
+ "publishConfig": {
167
+ "registry": "https://registry.npmjs.org/",
168
+ "access": "public"
169
+ }
170
+ }