@opentiny/vue-search-box 0.1.1 → 0.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.
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/es/components/first-level-panel.vue.es.js +4 -0
- package/dist/es/components/first-level-panel.vue.es2.js +177 -0
- package/dist/es/components/second-level-panel.vue.es.js +4 -0
- package/dist/es/components/second-level-panel.vue.es2.js +466 -0
- package/dist/es/composables/use-checkbox.es.js +5 -18
- package/dist/es/composables/use-custom.es.js +1 -0
- package/dist/es/composables/use-datepicker.es.js +1 -1
- package/dist/es/composables/use-dropdown.es.js +27 -18
- package/dist/es/composables/use-edit.es.js +3 -1
- package/dist/es/composables/use-init.es.js +24 -10
- package/dist/es/composables/use-match.es.js +42 -42
- package/dist/es/composables/use-num-range.es.js +1 -1
- package/dist/es/composables/use-placeholder.es.js +2 -2
- package/dist/es/composables/use-tag.es.js +6 -1
- package/dist/es/{index-VrLZbD8H.css → index-BYxS8gdW.css} +56 -14
- package/dist/es/index.es.js +6 -0
- package/dist/es/index.vue.es2.js +150 -623
- package/dist/es/utils/dropdown.es.js +9 -5
- package/dist/es/utils/tag.es.js +2 -4
- package/dist/index.css +56 -14
- package/dist/lib/components/first-level-panel.vue.cjs.js +4 -0
- package/dist/lib/components/first-level-panel.vue.cjs2.js +177 -0
- package/dist/lib/components/second-level-panel.vue.cjs.js +4 -0
- package/dist/lib/components/second-level-panel.vue.cjs2.js +466 -0
- package/dist/lib/composables/use-checkbox.cjs.js +5 -18
- package/dist/lib/composables/use-custom.cjs.js +1 -0
- package/dist/lib/composables/use-datepicker.cjs.js +1 -1
- package/dist/lib/composables/use-dropdown.cjs.js +27 -18
- package/dist/lib/composables/use-edit.cjs.js +3 -1
- package/dist/lib/composables/use-init.cjs.js +24 -10
- package/dist/lib/composables/use-match.cjs.js +41 -41
- package/dist/lib/composables/use-num-range.cjs.js +1 -1
- package/dist/lib/composables/use-placeholder.cjs.js +2 -2
- package/dist/lib/composables/use-tag.cjs.js +6 -1
- package/dist/lib/{index-VrLZbD8H.css → index-BYxS8gdW.css} +56 -14
- package/dist/lib/index.cjs.js +6 -0
- package/dist/lib/index.vue.cjs2.js +156 -629
- package/dist/lib/utils/dropdown.cjs.js +9 -5
- package/dist/lib/utils/tag.cjs.js +1 -3
- package/dist/types/composables/use-checkbox.d.ts +0 -2
- package/dist/types/composables/use-dropdown.d.ts +1 -0
- package/package.json +1 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.tvp-search-box__dropdown-menu,
|
|
1
|
+
.tiny-popper.tvp-search-box__dropdown-menu,
|
|
2
2
|
.tvp-search-box__popover {
|
|
3
3
|
--tvp-SearchBox-bg-color: var(--tv-color-bg-secondary, #ffffff);
|
|
4
4
|
--tvp-SearchBox-border-color: var(--tv-color-bg-control-unactive, #c2c2c2);
|
|
@@ -29,17 +29,48 @@
|
|
|
29
29
|
--tvp-SearchBox-dropdown-desc-text-color: var(--tv-color-info-text-primary, #191919);
|
|
30
30
|
width: 232px;
|
|
31
31
|
overflow: auto;
|
|
32
|
-
overflow-x: hidden;
|
|
33
32
|
}
|
|
34
|
-
.
|
|
33
|
+
.tiny-popper.tvp-search-box__dropdown-menu::-webkit-scrollbar,
|
|
34
|
+
.tvp-search-box__popover::-webkit-scrollbar {
|
|
35
|
+
width: 8px;
|
|
36
|
+
height: 8px;
|
|
37
|
+
}
|
|
38
|
+
.tiny-popper.tvp-search-box__dropdown-menu::-webkit-scrollbar-corner,
|
|
39
|
+
.tvp-search-box__popover::-webkit-scrollbar-corner {
|
|
40
|
+
background: transparent;
|
|
41
|
+
}
|
|
42
|
+
.tiny-popper.tvp-search-box__dropdown-menu::-webkit-scrollbar-track,
|
|
43
|
+
.tvp-search-box__popover::-webkit-scrollbar-track {
|
|
44
|
+
background: transparent;
|
|
45
|
+
}
|
|
46
|
+
.tiny-popper.tvp-search-box__dropdown-menu::-webkit-scrollbar-thumb,
|
|
47
|
+
.tvp-search-box__popover::-webkit-scrollbar-thumb {
|
|
48
|
+
background: var(--tvp-SearchBox-color-bg-scrollbar-thumb);
|
|
49
|
+
border-radius: var(--tvp-SearchBox-border-radius-scrollbar-thumb);
|
|
50
|
+
}
|
|
51
|
+
.tiny-popper.tvp-search-box__dropdown-menu::-webkit-scrollbar-thumb:hover,
|
|
52
|
+
.tvp-search-box__popover::-webkit-scrollbar-thumb:hover {
|
|
53
|
+
background: var(--tv-color-bg-scrollbar-thumb-hover);
|
|
54
|
+
}
|
|
55
|
+
.tiny-popper.tvp-search-box__dropdown-menu::-webkit-scrollbar-thumb:active,
|
|
56
|
+
.tvp-search-box__popover::-webkit-scrollbar-thumb:active {
|
|
57
|
+
background: var(--tvp-SearchBox-color-bg-scrollbar-thumb-active);
|
|
58
|
+
}
|
|
59
|
+
.tiny-popper.tvp-search-box__dropdown-menu.tiny-popper.tvp-search-box__dropdown-menu .tvp-search-box__date-picker .baseClearicon,
|
|
60
|
+
.tiny-popper.tvp-search-box__dropdown-menu.tvp-search-box__popover .tvp-search-box__date-picker .baseClearicon,
|
|
61
|
+
.tvp-search-box__popover.tiny-popper.tvp-search-box__dropdown-menu .tvp-search-box__date-picker .baseClearicon,
|
|
62
|
+
.tvp-search-box__popover.tvp-search-box__popover .tvp-search-box__date-picker .baseClearicon {
|
|
63
|
+
background-color: var(--tvp-SearchBox-date-picker-clear-icon-bg);
|
|
64
|
+
}
|
|
65
|
+
.tiny-popper.tvp-search-box__dropdown-menu .tiny-form-item.is-error .tvp-search-box-select .tiny-select__tags-group,
|
|
35
66
|
.tvp-search-box__popover .tiny-form-item.is-error .tvp-search-box-select .tiny-select__tags-group {
|
|
36
67
|
border-color: #f23030;
|
|
37
68
|
}
|
|
38
|
-
.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-select .tiny-svg,
|
|
69
|
+
.tiny-popper.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-select .tiny-svg,
|
|
39
70
|
.tvp-search-box__popover .tvp-search-box-select .tiny-select .tiny-svg {
|
|
40
71
|
z-index: 1000;
|
|
41
72
|
}
|
|
42
|
-
.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-select__tags-group,
|
|
73
|
+
.tiny-popper.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-select__tags-group,
|
|
43
74
|
.tvp-search-box__popover .tvp-search-box-select .tiny-select__tags-group {
|
|
44
75
|
min-height: 32px;
|
|
45
76
|
max-height: 82px;
|
|
@@ -48,7 +79,7 @@
|
|
|
48
79
|
border: 1px solid #c2c2c2;
|
|
49
80
|
border-radius: 6px;
|
|
50
81
|
}
|
|
51
|
-
.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-select__tags.is-show-tag,
|
|
82
|
+
.tiny-popper.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-select__tags.is-show-tag,
|
|
52
83
|
.tvp-search-box__popover .tvp-search-box-select .tiny-select__tags.is-show-tag {
|
|
53
84
|
max-width: 276px !important;
|
|
54
85
|
width: calc(100% - 8px) !important;
|
|
@@ -57,24 +88,24 @@
|
|
|
57
88
|
max-height: 76px;
|
|
58
89
|
overflow: auto;
|
|
59
90
|
}
|
|
60
|
-
.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-input__suffix,
|
|
91
|
+
.tiny-popper.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-input__suffix,
|
|
61
92
|
.tvp-search-box__popover .tvp-search-box-select .tiny-input__suffix {
|
|
62
93
|
z-index: 1000;
|
|
63
94
|
}
|
|
64
|
-
.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-input__inner,
|
|
95
|
+
.tiny-popper.tvp-search-box__dropdown-menu .tvp-search-box-select .tiny-input__inner,
|
|
65
96
|
.tvp-search-box__popover .tvp-search-box-select .tiny-input__inner {
|
|
66
97
|
border: 0px;
|
|
67
98
|
overflow: hidden;
|
|
68
99
|
}
|
|
69
|
-
.tvp-search-box__dropdown-menu input[type='number'],
|
|
100
|
+
.tiny-popper.tvp-search-box__dropdown-menu input[type='number'],
|
|
70
101
|
.tvp-search-box__popover input[type='number'] {
|
|
71
102
|
-moz-appearance: textfield;
|
|
72
103
|
/* Firefox */
|
|
73
104
|
appearance: textfield;
|
|
74
105
|
}
|
|
75
|
-
.tvp-search-box__dropdown-menu input[type='number']::-webkit-inner-spin-button,
|
|
106
|
+
.tiny-popper.tvp-search-box__dropdown-menu input[type='number']::-webkit-inner-spin-button,
|
|
76
107
|
.tvp-search-box__popover input[type='number']::-webkit-inner-spin-button,
|
|
77
|
-
.tvp-search-box__dropdown-menu input[type='number']::-webkit-outer-spin-button,
|
|
108
|
+
.tiny-popper.tvp-search-box__dropdown-menu input[type='number']::-webkit-outer-spin-button,
|
|
78
109
|
.tvp-search-box__popover input[type='number']::-webkit-outer-spin-button {
|
|
79
110
|
-webkit-appearance: none;
|
|
80
111
|
/* Safari */
|
|
@@ -178,7 +209,7 @@
|
|
|
178
209
|
margin-right: var(--tvp-SearchBox-separator-icon-margin-right);
|
|
179
210
|
height: 14px;
|
|
180
211
|
width: 1px;
|
|
181
|
-
background-color:
|
|
212
|
+
background-color: var(--tvp-SearchBox-color-border-divider);
|
|
182
213
|
}
|
|
183
214
|
.tvp-search-box__input-help {
|
|
184
215
|
margin-right: 0px;
|
|
@@ -215,6 +246,9 @@
|
|
|
215
246
|
.tvp-search-box .tiny-dropdown__trigger {
|
|
216
247
|
display: block;
|
|
217
248
|
}
|
|
249
|
+
.tvp-search-box .tiny-dropdown__trigger:focus-visible {
|
|
250
|
+
outline: none;
|
|
251
|
+
}
|
|
218
252
|
.tvp-search-box .tiny-dropdown__trigger .tiny-dropdown__title {
|
|
219
253
|
width: 100%;
|
|
220
254
|
}
|
|
@@ -222,6 +256,9 @@
|
|
|
222
256
|
display: block;
|
|
223
257
|
flex: 1;
|
|
224
258
|
}
|
|
259
|
+
.tvp-search-box__loading-box {
|
|
260
|
+
min-height: 32px;
|
|
261
|
+
}
|
|
225
262
|
.tvp-search-box__radio-wrap {
|
|
226
263
|
max-height: 240px;
|
|
227
264
|
overflow: auto;
|
|
@@ -241,6 +278,8 @@
|
|
|
241
278
|
margin-top: var(--tvp-SearchBox-dropdown-btn-group-margin-top);
|
|
242
279
|
padding-top: var(--tvp-SearchBox-dropdown-btn-group-padding-top);
|
|
243
280
|
padding-right: 10px;
|
|
281
|
+
gap: 5px;
|
|
282
|
+
justify-content: flex-end;
|
|
244
283
|
padding-bottom: var(--tvp-SearchBox-dropdown-btn-group-padding-bottom);
|
|
245
284
|
}
|
|
246
285
|
.tvp-search-box__bottom-btn .tiny-button,
|
|
@@ -267,12 +306,11 @@
|
|
|
267
306
|
}
|
|
268
307
|
.tvp-search-box__filter-item {
|
|
269
308
|
color: var(--tvp-SearchBox-search-filter-text-color);
|
|
270
|
-
border-bottom: 1px solid #fff;
|
|
271
309
|
}
|
|
272
310
|
.tvp-search-box__dropdown-item.tiny-dropdown-item {
|
|
273
311
|
width: 100%;
|
|
274
312
|
max-width: 100%;
|
|
275
|
-
|
|
313
|
+
background: inherit;
|
|
276
314
|
}
|
|
277
315
|
.tvp-search-box__dropdown-item.tiny-dropdown-item > div {
|
|
278
316
|
white-space: nowrap;
|
|
@@ -282,6 +320,9 @@
|
|
|
282
320
|
.tvp-search-box__dropdown-item.tiny-dropdown-item.tvp-search-box__checkbox-item .tiny-checkbox__inner > .tiny-svg {
|
|
283
321
|
margin-right: 0;
|
|
284
322
|
}
|
|
323
|
+
.tvp-search-box__dropdown-item-init {
|
|
324
|
+
background-color: #f5f5f5;
|
|
325
|
+
}
|
|
285
326
|
.tvp-search-box__checkbox-item .tvp-search-box__checkbox-item-label,
|
|
286
327
|
.tvp-search-box__checkbox-item .tiny-checkbox,
|
|
287
328
|
.tvp-search-box__checkbox-item .tiny-dropdown-item__label {
|
|
@@ -315,6 +356,7 @@
|
|
|
315
356
|
.tvp-search-box__panel-box {
|
|
316
357
|
width: 100%;
|
|
317
358
|
padding: 0px 10px;
|
|
359
|
+
color: var(--tvp-SearchBox-dropdown-desc-text-color);
|
|
318
360
|
}
|
|
319
361
|
.tvp-search-box__date-item.tiny-form-item,
|
|
320
362
|
.tvp-search-box__number-item.tiny-form-item {
|
package/dist/es/index.es.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import "./index.vue.es.js";
|
|
2
|
+
import "./components/first-level-panel.vue.es.js";
|
|
3
|
+
import "./components/second-level-panel.vue.es.js";
|
|
2
4
|
import zhCN from "./utils/zh_CN.es.js";
|
|
3
5
|
import { default as default2 } from "./utils/en_US.es.js";
|
|
4
6
|
/* empty css */
|
|
5
7
|
import "./index.type.es.js";
|
|
6
8
|
import _sfc_main from "./index.vue.es2.js";
|
|
9
|
+
import { default as default3 } from "./components/first-level-panel.vue.es2.js";
|
|
10
|
+
import { default as default4 } from "./components/second-level-panel.vue.es2.js";
|
|
7
11
|
let apps;
|
|
8
12
|
_sfc_main.install = function(app) {
|
|
9
13
|
apps = app;
|
|
@@ -15,6 +19,8 @@ const t = (key) => {
|
|
|
15
19
|
return ((_b = (_a = apps == null ? void 0 : apps.config) == null ? void 0 : _a.globalProperties) == null ? void 0 : _b.$t) ? (_d = (_c = apps == null ? void 0 : apps.config) == null ? void 0 : _c.globalProperties) == null ? void 0 : _d.$t(key) : (_g = (_f = (_e = zhCN) == null ? void 0 : _e[array == null ? void 0 : array[0]]) == null ? void 0 : _f[array == null ? void 0 : array[1]]) == null ? void 0 : _g[array == null ? void 0 : array[2]];
|
|
16
20
|
};
|
|
17
21
|
export {
|
|
22
|
+
default3 as TinySearchBoxFirstLevelPanel,
|
|
23
|
+
default4 as TinySearchBoxSecondLevelPanel,
|
|
18
24
|
_sfc_main as default,
|
|
19
25
|
default2 as enUS,
|
|
20
26
|
t,
|