@ithinkdt/ui 4.0.0-38 → 4.0.0-400
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/auto-imports.js +1 -1
- package/dist/components-B_qzc9ro.js +1736 -0
- package/dist/components.js +5 -0
- package/dist/directives-qqYcWl1I.js +194 -0
- package/dist/directives.js +3 -0
- package/dist/index.js +1212 -0
- package/dist/page.js +519 -0
- package/dist/use-i18n-Dx7V4KrY.js +6 -0
- package/dist/use-style-DcT-1dj4.js +29 -0
- package/dist/use-style.js +2 -0
- package/{src → esm}/components.d.ts +56 -15
- package/esm/components.js +1 -0
- package/esm/directives.js +1 -0
- package/esm/index.js +1 -0
- package/{src → esm}/page.d.ts +2 -2
- package/esm/page.js +1 -0
- package/esm/use-style.js +1 -0
- package/package.json +29 -26
- package/unocss-preset.d.ts +5 -0
- package/unocss-preset.js +163 -0
- package/src/components/Checkboxes.jsx +0 -130
- package/src/components/DataActions.jsx +0 -105
- package/src/components/DataCustom.jsx +0 -187
- package/src/components/DataFilter.jsx +0 -119
- package/src/components/DataForm.jsx +0 -264
- package/src/components/DataLocaleInput.jsx +0 -121
- package/src/components/DataPagination.jsx +0 -62
- package/src/components/DataSelection.jsx +0 -57
- package/src/components/DataTable.jsx +0 -302
- package/src/components/Radios.jsx +0 -134
- package/src/components/UserDept.jsx +0 -643
- package/src/components/assets.jsx +0 -274
- package/src/components/index.js +0 -11
- package/src/design/Account.jsx +0 -154
- package/src/design/Appearance.jsx +0 -89
- package/src/design/Breadcrumb.jsx +0 -67
- package/src/design/Fullscreen.jsx +0 -65
- package/src/design/Language.jsx +0 -45
- package/src/design/Layout.jsx +0 -241
- package/src/design/Logo.jsx +0 -92
- package/src/design/Menu.jsx +0 -133
- package/src/design/MultiTabs.jsx +0 -501
- package/src/design/Notification.jsx +0 -311
- package/src/design/Tenant.jsx +0 -88
- package/src/design/common.jsx +0 -21
- package/src/design/index.js +0 -11
- package/src/directives/index.js +0 -2
- package/src/directives/spin.js +0 -181
- package/src/directives/tooltip.jsx +0 -121
- package/src/index.js +0 -18
- package/src/page.jsx +0 -740
- package/src/use-i18n.js +0 -8
- package/src/use-style.js +0 -58
- package/src/utils.js +0 -20
- package/unocss.d.ts +0 -5
- package/unocss.js +0 -94
- /package/{src → esm}/design.d.ts +0 -0
- /package/{src → esm}/directives.d.ts +0 -0
- /package/{src → esm}/index.d.ts +0 -0
- /package/{src → esm}/use-style.d.ts +0 -0
package/src/use-i18n.js
DELETED
package/src/use-style.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { useMergedClsPrefix } from 'ithinkdt-ui/es/_mixins/use-config'
|
|
2
|
-
import _useStyle from 'ithinkdt-ui/es/_mixins/use-style'
|
|
3
|
-
|
|
4
|
-
export { c, cB, cE, cM } from 'ithinkdt-ui/es/_utils/cssr/index'
|
|
5
|
-
|
|
6
|
-
export { useMergedClsPrefix as useClsPrefix }
|
|
7
|
-
|
|
8
|
-
export default function useStyle(mountId, style, clsPrefix, styleIsolate) {
|
|
9
|
-
clsPrefix ??= useMergedClsPrefix()
|
|
10
|
-
_useStyle(mountId, style, clsPrefix, styleIsolate)
|
|
11
|
-
return clsPrefix
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const fullWidth = {
|
|
15
|
-
width: '100%',
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const fullHeight = {
|
|
19
|
-
height: '100%',
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const fullWH = {
|
|
23
|
-
...fullWidth,
|
|
24
|
-
...fullHeight,
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export const flex = {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export const flexDirCol = {
|
|
32
|
-
...flex,
|
|
33
|
-
flexDirection: 'column',
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export const flexAlignCenter = {
|
|
37
|
-
...flex,
|
|
38
|
-
alignItems: 'center',
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export const flexJustifyCenter = {
|
|
42
|
-
...flex,
|
|
43
|
-
justifyContent: 'center',
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export const flexJustifySB = {
|
|
47
|
-
...flex,
|
|
48
|
-
justifyContent: 'space-between',
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const flexCenter = {
|
|
52
|
-
...flexAlignCenter,
|
|
53
|
-
...flexJustifyCenter,
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const flexGap = (gap) => {
|
|
57
|
-
return { ...flex, gap }
|
|
58
|
-
}
|
package/src/utils.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NButton, NIcon } from 'ithinkdt-ui'
|
|
2
|
-
import { h, withDirectives } from 'vue'
|
|
3
|
-
|
|
4
|
-
import { vTooltip } from './directives/tooltip.jsx'
|
|
5
|
-
|
|
6
|
-
export const renderBtn = (Icon, props, tooltip) =>
|
|
7
|
-
withDirectives(
|
|
8
|
-
h(
|
|
9
|
-
NButton,
|
|
10
|
-
{
|
|
11
|
-
text: true,
|
|
12
|
-
...props,
|
|
13
|
-
},
|
|
14
|
-
() =>
|
|
15
|
-
h(NIcon, {
|
|
16
|
-
component: Icon,
|
|
17
|
-
}),
|
|
18
|
-
),
|
|
19
|
-
[[vTooltip, tooltip]],
|
|
20
|
-
)
|
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
|
/package/{src → esm}/design.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/{src → esm}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|