@ithinkdt/ui 4.0.10 → 4.0.12
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/{DataTable-DEb9CRCZ.js → DataTable-C5hx-Wo8.js} +1 -1
- package/dist/components.js +2 -2
- package/dist/{directives-pwYPe_53.js → directives-g3YmS-dM.js} +5 -1
- package/dist/directives.js +1 -1
- package/dist/index.js +1 -1
- package/dist/page.js +10 -9
- package/esm/components.d.ts +1 -0
- package/esm/page.d.ts +3 -5
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e, { c as t, cB as n, cE as r, cM as i, useClsPrefix as a } from "./use-style.js";
|
|
2
|
-
import { i as o } from "./directives-
|
|
2
|
+
import { i as o } from "./directives-g3YmS-dM.js";
|
|
3
3
|
import { l as s } from "./assets-bJgPKDh1.js";
|
|
4
4
|
import { computed as c, createVNode as l, defineComponent as u, inject as d, isVNode as f, ref as p, shallowRef as m, toValue as h, useTemplateRef as g, watch as _, withDirectives as v } from "vue";
|
|
5
5
|
import { toReactive as y, until as b } from "@vueuse/core";
|
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./use-i18n-D1TTDOML.js";
|
|
2
2
|
import t, { cB as n, cE as r, useClsPrefix as i } from "./use-style.js";
|
|
3
|
-
import { i as a } from "./directives-
|
|
3
|
+
import { i as a } from "./directives-g3YmS-dM.js";
|
|
4
4
|
import { _ as o, a as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, v as C } from "./assets-bJgPKDh1.js";
|
|
5
5
|
import { Fragment as w, computed as T, createTextVNode as E, createVNode as D, defineAsyncComponent as O, defineComponent as k, h as A, inject as ee, isVNode as j, markRaw as M, mergeProps as N, nextTick as te, reactive as P, ref as F, renderSlot as I, shallowRef as ne, toRaw as re, toRef as ie, toValue as L, unref as ae, watch as R, withDirectives as oe } from "vue";
|
|
6
6
|
import { until as se } from "@vueuse/core";
|
|
@@ -1616,6 +1616,6 @@ var ht = /* @__PURE__ */ k({
|
|
|
1616
1616
|
});
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
|
-
}), yt = O(() => import("./DataTable-
|
|
1619
|
+
}), yt = O(() => import("./DataTable-C5hx-Wo8.js").then((e) => e.DataTable));
|
|
1620
1620
|
//#endregion
|
|
1621
1621
|
export { Je as DataActions, Xe as DataCustom, tt as DataDescriptions, ot as DataFilter, at as DataForm, rt as DataFormActions, lt as DataLocaleInput, X as DataPagination, dt as DataSelection, yt as DataTable, ht as DtDeptRender, mt as DtUserDept, gt as DtUserRender, qe as NCheckboxes, pt as NRadios, vt as NStateButton, _t as StateButtonProps, Y as dataFormActionsProps, $ as renderUsers, ct as useLocaleEdit };
|
|
@@ -12,7 +12,11 @@ var C = [
|
|
|
12
12
|
3,
|
|
13
13
|
5
|
|
14
14
|
], w = /* @__PURE__ */ t([
|
|
15
|
-
|
|
15
|
+
...[
|
|
16
|
+
"span",
|
|
17
|
+
"a",
|
|
18
|
+
"img"
|
|
19
|
+
].map((e) => t(({ props: t }) => `:where(${e}${t.bPrefix}tooltip-host)`, { display: "inline-block" })),
|
|
16
20
|
t(({ props: e }) => `:where(${e.bPrefix}tooltip-host)`, {
|
|
17
21
|
maxWidth: "100%",
|
|
18
22
|
whiteSpace: "nowrap",
|
package/dist/directives.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./directives-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./directives-g3YmS-dM.js";
|
|
2
2
|
export { r as SpinDirectiveProvider, n as TooltipDirectiveProvider, t as vSpin, e as vTooltip };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./use-i18n-D1TTDOML.js";
|
|
2
2
|
import n, { c as r, cB as i, cE as a, cM as o } from "./use-style.js";
|
|
3
|
-
import { i as s, n as c, r as l, t as u } from "./directives-
|
|
3
|
+
import { i as s, n as c, r as l, t as u } from "./directives-g3YmS-dM.js";
|
|
4
4
|
import { Fragment as d, computed as f, createVNode as p, defineComponent as m, inject as h, isVNode as g, mergeProps as _, provide as v, reactive as y, ref as b, renderSlot as x, shallowRef as ee, toRef as S, toValue as C, unref as w, useTemplateRef as T, watch as E, withDirectives as D } from "vue";
|
|
5
5
|
import { computedAsync as te, promiseTimeout as O, useElementHover as k, useElementSize as ne, useEventListener as re, useFullscreen as ie, watchDebounced as ae } from "@vueuse/core";
|
|
6
6
|
import { NAvatar as A, NBadge as oe, NBreadcrumb as se, NBreadcrumbItem as ce, NButton as j, NDrawer as le, NDrawerContent as M, NDropdown as N, NEmpty as P, NIcon as F, NList as I, NListItem as L, NMenu as R, NPagination as z, NPopover as B, NScrollbar as V, NText as H, NThing as U, useThemeVars as W } from "ithinkdt-ui";
|
package/dist/page.js
CHANGED
|
@@ -217,7 +217,7 @@ function K({ getDeptsByCode: e, getUsersByUsername: t, getFileInfos: r, previewF
|
|
|
217
217
|
function q(e) {
|
|
218
218
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !f(e);
|
|
219
219
|
}
|
|
220
|
-
var J = /* @__PURE__ */ l(() => import("ithinkdt-ui/es/date-picker")), Y = /* @__PURE__ */ u({
|
|
220
|
+
var J = /* @__PURE__ */ l(() => import("ithinkdt-ui/es/date-picker/index.mjs").then((e) => e.NDatePicker)), Y = /* @__PURE__ */ u({
|
|
221
221
|
name: "SimpleUpload",
|
|
222
222
|
props: {
|
|
223
223
|
type: {
|
|
@@ -550,19 +550,20 @@ function Z(e) {
|
|
|
550
550
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !f(e);
|
|
551
551
|
}
|
|
552
552
|
function Q() {
|
|
553
|
-
return () => ({ items: e, model: n, handleSubmit: r, reset: i, validation: a, readonly: o, inModal: s, showFeedback: l,
|
|
553
|
+
return () => ({ items: e, model: n, handleSubmit: r, reset: i, validation: a, readonly: o, inModal: s, showFeedback: l, cols: u, showColon: d, labelWidth: f, labelAlign: p, labelPlacement: m, showRequireMark: h, requireMarkPlacement: g }) => c(t, {
|
|
554
554
|
readonly: o,
|
|
555
555
|
model: n,
|
|
556
556
|
items: e,
|
|
557
557
|
validation: a,
|
|
558
|
-
showColon: y(
|
|
559
|
-
labelWidth: y(
|
|
560
|
-
labelAlign: y(
|
|
561
|
-
labelPlacement: y(
|
|
562
|
-
showRequireMark: y(
|
|
563
|
-
requireMarkPlacement: y(
|
|
558
|
+
showColon: y(d) ?? !0,
|
|
559
|
+
labelWidth: y(f),
|
|
560
|
+
labelAlign: y(p),
|
|
561
|
+
labelPlacement: y(m),
|
|
562
|
+
showRequireMark: y(h),
|
|
563
|
+
requireMarkPlacement: y(g),
|
|
564
564
|
showFeedback: y(l) ?? !0,
|
|
565
565
|
showAction: !1,
|
|
566
|
+
grid: { cols: y(u) },
|
|
566
567
|
onSubmit: r,
|
|
567
568
|
onReset: i,
|
|
568
569
|
style: s ? "padding-right: 2rem; padding-top: 1rem" : void 0
|
|
@@ -648,4 +649,4 @@ function $() {
|
|
|
648
649
|
};
|
|
649
650
|
}
|
|
650
651
|
//#endregion
|
|
651
|
-
export { K as createDescriptionHelper, Q as createFormHelper,
|
|
652
|
+
export { K as createDescriptionHelper, Q as createFormHelper, X as createFormItemHelper, $ as createModalHelper };
|
package/esm/components.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ declare module '@ithinkdt/page' {
|
|
|
21
21
|
showRequireMark?: MaybeRef<boolean | undefined>
|
|
22
22
|
requireMarkPlacement?: MaybeRef<'left' | 'right' | 'right-hanging' | undefined>
|
|
23
23
|
showFeedback?: MaybeRef<boolean | undefined>
|
|
24
|
+
cols?: MaybeRef<number | string | undefined>
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
type FormItemOptionKeys = 'size' | 'showLabel' | 'labelWidth' | 'labelStyle' | 'labelAlign' | 'labelPlacement' | 'labelProps'
|
package/esm/page.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CheckboxProps, DatePickerProps, DatePickerSlots, DrawerContentProps, DrawerProps,
|
|
3
|
-
|
|
4
|
-
ModalOptions, SelectGroupOption, SelectOption, SelectProps, SelectSlots,
|
|
5
|
-
UploadFileInfo, UploadProps,
|
|
2
|
+
CheckboxProps, DatePickerProps, DatePickerSlots, DrawerContentProps, DrawerProps, InputNumberProps, InputNumberSlots,
|
|
3
|
+
InputProps, InputSlots, ModalOptions, SelectGroupOption, SelectOption, SelectProps, SelectSlots, UploadFileInfo, UploadProps,
|
|
6
4
|
} from 'ithinkdt-ui'
|
|
7
5
|
import { MaybeRef, VNode, VNodeChild } from 'vue'
|
|
8
6
|
|
|
@@ -184,7 +182,7 @@ declare module '@ithinkdt/page' {
|
|
|
184
182
|
interface ModalDialogOptions extends ShallowMaybeRef<Omit<ModalOptions, ModalOptionsKey>> {}
|
|
185
183
|
}
|
|
186
184
|
|
|
187
|
-
export declare function
|
|
185
|
+
export declare function createFormItemHelper(options?: {
|
|
188
186
|
getUserGroups?: (() => Promise<UserGroupOption[]>) | undefined
|
|
189
187
|
getUsersByGroup?: ((code: string) => Promise<{ username: string, nickname: string }[]>) | undefined
|
|
190
188
|
getUsersByDept?: ((code: string) => Promise<{ username: string, nickname: string }[]>) | undefined
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ithinkdt/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "iThinkDT UI",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"ithinkdt-ui": "^1.9.1",
|
|
91
91
|
"typescript": "~6.0.2",
|
|
92
92
|
"unocss": ">=66.6.7",
|
|
93
|
-
"vite": "^8.0.
|
|
94
|
-
"vue": "^3.5.
|
|
93
|
+
"vite": "^8.0.5",
|
|
94
|
+
"vue": "^3.5.32",
|
|
95
95
|
"vue-router": "^5.0.4",
|
|
96
96
|
"@vue/test-utils": "^2.4.6",
|
|
97
|
-
"@ithinkdt/page": "^4.0.
|
|
97
|
+
"@ithinkdt/page": "^4.0.12"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"dev": "vite build --watch",
|