@ithinkdt/ui 4.0.7 → 4.0.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.
@@ -1,6 +1,8 @@
1
1
  import { inject as e } from "vue";
2
- const t = "__UI_I18N__";
2
+ //#region src/use-i18n.js
3
+ var t = "__UI_I18N__";
3
4
  function n() {
4
5
  return e(t).value();
5
6
  }
7
+ //#endregion
6
8
  export { n, t };
package/dist/use-style.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { useMergedClsPrefix as e } from "ithinkdt-ui/es/_mixins/use-config";
2
2
  import t from "ithinkdt-ui/es/_mixins/use-style";
3
3
  import { c as n, cB as r, cE as i, cM as a } from "ithinkdt-ui/es/_utils/cssr/index";
4
+ //#region src/use-style.js
4
5
  function o(n, r, i, a) {
5
6
  return i ??= e(), t(n, r, i, a), i;
6
7
  }
7
- const s = { width: "100%" }, c = { height: "100%" }, l = {
8
+ var s = { width: "100%" }, c = { height: "100%" }, l = {
8
9
  ...s,
9
10
  ...c
10
11
  }, u = { display: "flex" }, d = {
@@ -26,4 +27,5 @@ const s = { width: "100%" }, c = { height: "100%" }, l = {
26
27
  ...u,
27
28
  gap: e
28
29
  });
30
+ //#endregion
29
31
  export { n as c, r as cB, i as cE, a as cM, o as default, u as flex, f as flexAlignCenter, h as flexCenter, d as flexDirCol, g as flexGap, p as flexJustifyCenter, m as flexJustifySB, c as fullHeight, l as fullWH, s as fullWidth, e as useClsPrefix };
package/esm/index.d.ts CHANGED
@@ -4,8 +4,6 @@ import { I18nComposable, ParseMessage } from '@ithinkdt/common/i18n'
4
4
 
5
5
  import { UILocale } from '../locale.js'
6
6
 
7
- import '../shims.js'
8
-
9
7
  export * from './directives.js'
10
8
  export * from './design.js'
11
9
 
package/esm/page.d.ts CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from 'ithinkdt-ui'
7
7
  import { MaybeRef, VNode, VNodeChild } from 'vue'
8
8
 
9
- import { PublicProps } from '@ithinkdt/common'
9
+ import { Awaitable, PublicProps } from '@ithinkdt/common'
10
10
  import { DictItem, DictTypeKey } from '@ithinkdt/common/dict'
11
11
  import { PageOptions } from '@ithinkdt/page'
12
12
 
@@ -32,7 +32,7 @@ declare module '@ithinkdt/page' {
32
32
  selectProps?: ShallowMaybeRef<Omit<SelectProps, 'options' | 'value' | 'onUpdate:value' | 'disabled'> & PublicProps
33
33
  & {
34
34
  dictType?: DictTypeKey | undefined
35
- options?: DictItem[] | (SelectOption | SelectGroupOption)[] | undefined
35
+ options?: DictItem[] | (SelectOption | SelectGroupOption)[] | ((pattern: string) => Awaitable<DictItem[] | (SelectOption | SelectGroupOption)[]>) | undefined
36
36
  valueType?: 'string' | 'number' | undefined
37
37
  }>
38
38
  selectSlots?: SelectSlots
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithinkdt/ui",
3
- "version": "4.0.7",
3
+ "version": "4.0.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "iThinkDT UI",
@@ -67,8 +67,8 @@
67
67
  "vueuc": "^0.4.65",
68
68
  "sortablejs": "^1.15.7",
69
69
  "@types/sortablejs": "^1.15.9",
70
- "nanoid": "^5.1.6",
71
- "@ithinkdt/common": "^4.0.3"
70
+ "nanoid": "^5.1.7",
71
+ "@ithinkdt/common": "^4.0.7"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@ithinkdt/page": ">=4.0",
@@ -86,14 +86,15 @@
86
86
  }
87
87
  },
88
88
  "devDependencies": {
89
- "@vitejs/plugin-vue-jsx": "^5.1.4",
90
- "ithinkdt-ui": "^1.8.5",
91
- "typescript": "~5.9.3",
92
- "unocss": ">=66.6.2",
93
- "vite": "^8.0.0-beta.16",
94
- "vue": "^3.5.29",
95
- "vue-router": "^5.0.3",
96
- "@ithinkdt/page": "^4.0.5"
89
+ "@vitejs/plugin-vue-jsx": "^5.1.5",
90
+ "ithinkdt-ui": "^1.9.1",
91
+ "typescript": "~6.0.2",
92
+ "unocss": ">=66.6.7",
93
+ "vite": "^8.0.3",
94
+ "vue": "^3.5.31",
95
+ "vue-router": "^5.0.4",
96
+ "@vue/test-utils": "^2.4.6",
97
+ "@ithinkdt/page": "^4.0.10"
97
98
  },
98
99
  "scripts": {
99
100
  "dev": "vite build --watch",
package/unocss-preset.js CHANGED
@@ -55,7 +55,7 @@ const ithinkdt = (options = {}) => {
55
55
  if (p.selector.startsWith('.dark ')) {
56
56
  p.selector = `.dark & ${p.selector.slice(6)}`
57
57
  }
58
- } else {
58
+ } else if (!p.selector.startsWith('@property')) {
59
59
  p.selector = p.selector.startsWith('.dark ') ? `.dark .${ns} ${p.selector.slice(6)}` : `.${ns} ${p.selector}`
60
60
  }
61
61
  },