@ithinkdt/ui 4.0.0-52 → 4.0.0-54
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/dist/{components-CTdt73l6.js → components-BdbuJNhZ.js} +506 -492
- package/dist/components.js +1 -1
- package/dist/page.js +1 -1
- package/package.json +2 -2
- package/unocss.d.ts +0 -5
- package/unocss.js +0 -94
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./use-i18n-Dx7V4KrY.js";
|
|
2
2
|
import "./directives-DUuJW647.js";
|
|
3
3
|
import "./use-style-DcT-1dj4.js";
|
|
4
|
-
import { a as NRadios, c as DataSelection, d as useLocaleEdit, f as DataFilter, g as NCheckboxes, h as DataActions, i as renderUsers, l as DataPagination, m as DataCustom, n as DtUserDept, o as DataTable, p as DataForm, r as DtUserRender, s as useDataTableDrag, t as DtDeptRender, u as DataLocaleInput } from "./components-
|
|
4
|
+
import { a as NRadios, c as DataSelection, d as useLocaleEdit, f as DataFilter, g as NCheckboxes, h as DataActions, i as renderUsers, l as DataPagination, m as DataCustom, n as DtUserDept, o as DataTable, p as DataForm, r as DtUserRender, s as useDataTableDrag, t as DtDeptRender, u as DataLocaleInput } from "./components-BdbuJNhZ.js";
|
|
5
5
|
export { DataActions, DataCustom, DataFilter, DataForm, DataLocaleInput, DataPagination, DataSelection, DataTable, DtDeptRender, DtUserDept, DtUserRender, NCheckboxes, NRadios, renderUsers, useDataTableDrag, useLocaleEdit };
|
package/dist/page.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useI18n } from "./use-i18n-Dx7V4KrY.js";
|
|
2
2
|
import "./directives-DUuJW647.js";
|
|
3
3
|
import "./use-style-DcT-1dj4.js";
|
|
4
|
-
import { a as NRadios, g as NCheckboxes, n as DtUserDept, p as DataForm, r as DtUserRender, t as DtDeptRender } from "./components-
|
|
4
|
+
import { a as NRadios, g as NCheckboxes, n as DtUserDept, p as DataForm, r as DtUserRender, t as DtDeptRender } from "./components-BdbuJNhZ.js";
|
|
5
5
|
import { computed, createVNode, defineComponent, h, isVNode, mergeProps, ref, shallowRef, unref } from "vue";
|
|
6
6
|
import { until } from "@vueuse/core";
|
|
7
7
|
import { NButton, NCheckbox, NColorPicker, NDatePicker, NDrawer, NDrawerContent, NFlex, NInput, NInputNumber, NModal, NScrollbar, NSelect, NText, NUpload, useMessage } from "ithinkdt-ui";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ithinkdt/ui",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-54",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "iThinkDT UI",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"ithinkdt-ui": "^1.8.0",
|
|
87
87
|
"typescript": "~5.9.3",
|
|
88
88
|
"unocss": ">=66.5.4",
|
|
89
|
-
"vite": "npm:rolldown-vite@^7.1.
|
|
89
|
+
"vite": "npm:rolldown-vite@^7.1.20",
|
|
90
90
|
"vue": "^3.5.22",
|
|
91
91
|
"vue-router": "^4.6.3",
|
|
92
92
|
"@ithinkdt/page": "^4.0.0-50"
|
package/unocss.d.ts
DELETED
package/unocss.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
const ithinkdt = () => {
|
|
2
|
-
return {
|
|
3
|
-
name: 'preset-ithinkdt',
|
|
4
|
-
theme: {
|
|
5
|
-
colors: {
|
|
6
|
-
...Object.fromEntries(
|
|
7
|
-
['primary', 'success', 'warning', 'danger'].map(name => [
|
|
8
|
-
name,
|
|
9
|
-
{
|
|
10
|
-
DEFAULT: `rgb(var(--color-${name}-rgb) / <alpha-value>)`,
|
|
11
|
-
...Object.fromEntries(
|
|
12
|
-
['hover', 'active'].map(level => [
|
|
13
|
-
level,
|
|
14
|
-
`rgb(var(--color-${name}-${level}-rgb) / <alpha-value>)`,
|
|
15
|
-
]),
|
|
16
|
-
),
|
|
17
|
-
},
|
|
18
|
-
]),
|
|
19
|
-
),
|
|
20
|
-
text: {
|
|
21
|
-
DEFAULT: `rgb(var(--color-text-rgb))`,
|
|
22
|
-
},
|
|
23
|
-
base: {
|
|
24
|
-
DEFAULT: `rgb(var(--color-base-rgb))`,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
borderRadius: Object.fromEntries(
|
|
28
|
-
['tiny', 'small', 'medium', 'large'].map(size => [size, `var(--rounded-${size})`]),
|
|
29
|
-
),
|
|
30
|
-
},
|
|
31
|
-
variants: [
|
|
32
|
-
// stuck:
|
|
33
|
-
(matcher) => {
|
|
34
|
-
const array = ['top', 'right', 'bottom', 'left']
|
|
35
|
-
const index = array.findIndex(it => matcher.startsWith(`stuck-${it}:`))
|
|
36
|
-
if (index === -1)
|
|
37
|
-
return matcher
|
|
38
|
-
return {
|
|
39
|
-
matcher: matcher.slice(7 + array[index].length),
|
|
40
|
-
handle: (input, next) => next({
|
|
41
|
-
...input,
|
|
42
|
-
parent: `${input.parent ? `${input.parent} $$ ` : ''} @container scroll-state(stuck: ${array[index]})`,
|
|
43
|
-
}),
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
rules: [
|
|
48
|
-
['scroll-state', { 'container-type': 'scroll-state' }],
|
|
49
|
-
[
|
|
50
|
-
/^bg-img-(.*)$/,
|
|
51
|
-
([_, r]) => {
|
|
52
|
-
return {
|
|
53
|
-
'background-image': r[0] === '[' && r.at(-1) === ']' ? r.slice(1, -1) : r,
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
[
|
|
58
|
-
/^mask-(.*)$/,
|
|
59
|
-
([_, r]) => {
|
|
60
|
-
const mask = `var(--un-icon) no-repeat`
|
|
61
|
-
return {
|
|
62
|
-
'--un-icon': r[0] === '[' && r.at(-1) === ']' ? r.slice(1, -1) : r,
|
|
63
|
-
mask,
|
|
64
|
-
'mask-size': '100% 100%',
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
],
|
|
69
|
-
shortcuts: [
|
|
70
|
-
[
|
|
71
|
-
/^card-(.*)$/,
|
|
72
|
-
([_, size]) => {
|
|
73
|
-
const i = ['none', 'small', 'medium', 'large'].indexOf(size)
|
|
74
|
-
if (i === -1) return
|
|
75
|
-
const p = [0, 2, 4, 5][i]
|
|
76
|
-
return `rounded-${size} px-${p + 1} py-${p} bg-white dark:bg-dark ease-in-out transition-shadow
|
|
77
|
-
hover:shadow-[0_1px_2px_0_rgba(0_0_0_/_0.03),0_1px_6px_-1px_rgba(0_0_0_/_0.02),0_2px_4px_0_rgba(0_0_0_/_0.02)]`
|
|
78
|
-
},
|
|
79
|
-
{ autocomplete: ['card-none', 'card-small', 'card-medium', 'card-large'] },
|
|
80
|
-
],
|
|
81
|
-
{
|
|
82
|
-
'ell': 'truncate',
|
|
83
|
-
'ell-2': 'line-clamp-2',
|
|
84
|
-
'ell-3': 'line-clamp-3',
|
|
85
|
-
'flex-x-center': 'flex items-center',
|
|
86
|
-
'flex-y-center': 'flex justify-center',
|
|
87
|
-
'flex-center': 'flex justify-center items-center',
|
|
88
|
-
'card': `card-medium`,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export default ithinkdt
|