lingee-ui 0.0.19 → 0.0.20
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/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/chunk-4QG542GX.js +1 -0
- package/dist/{chunk-Z3ACF2BM.js → chunk-5LB5DYXZ.js} +1 -1
- package/dist/{chunk-NRQCG6VR.mjs → chunk-67CCJI3Y.mjs} +1 -1
- package/dist/{chunk-SBUI6O3Q.js → chunk-ARLTJ7O7.js} +1 -1
- package/dist/chunk-IBJZAWUP.mjs +1 -0
- package/dist/chunk-N4R34DPZ.js +1 -0
- package/dist/{chunk-CCBZCPIY.mjs → chunk-NLYZRYOJ.mjs} +1 -1
- package/dist/{chunk-37FN2W6S.mjs → chunk-QIGXWGB4.mjs} +1 -1
- package/dist/chunk-R2WK7AJL.mjs +1 -0
- package/dist/{chunk-J3T5XUT2.js → chunk-V32QRQMP.js} +1 -1
- package/dist/{index-7pb5YOcq.d.mts → index-BVXwKHfX.d.mts} +1 -1
- package/dist/{index-7pb5YOcq.d.ts → index-BVXwKHfX.d.ts} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.mts +56 -11
- package/dist/index.d.ts +56 -11
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/input/index.css +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input/index.mjs +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/popover/index.mjs +1 -1
- package/dist/tabs/index.css +1 -1
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/toast/index.css +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast/index.mjs +1 -1
- package/dist/tree/index.css +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/tree/index.mjs +1 -1
- package/package.json +1 -1
- package/skill/AGENTS-SNIPPET.md +1 -1
- package/skill/SKILL.md +2 -2
- package/skill/VERSION.json +2 -2
- package/skill/references/components/dropdown.md +11 -1
- package/skill/references/components/person-picker.md +4 -2
- package/skill/references/setup.md +1 -1
- package/skill/references/tokens.md +1 -1
- package/dist/chunk-6OF5LIF4.mjs +0 -1
- package/dist/chunk-A2VQ5WK4.js +0 -1
- package/dist/chunk-KNH2LJWY.js +0 -1
- package/dist/chunk-MXUM2V3M.mjs +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as ButtonProps } from './index-
|
|
2
|
-
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-
|
|
1
|
+
import { B as ButtonProps } from './index-BVXwKHfX.mjs';
|
|
2
|
+
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-BVXwKHfX.mjs';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
5
|
import { TooltipProps } from './tooltip/index.mjs';
|
|
@@ -677,6 +677,19 @@ interface DialogHostModal {
|
|
|
677
677
|
* 若用它防止表单被误关,端上灰度期内防不住。
|
|
678
678
|
*/
|
|
679
679
|
maskClosable?: boolean;
|
|
680
|
+
/**
|
|
681
|
+
* 跨发起方去重键(与 requestId 正交,仅客户端 webview 通道)。
|
|
682
|
+
*
|
|
683
|
+
* requestId 由 Dialog 内部随机生成,是「本发起方卸载时撤销弹窗」的句柄;
|
|
684
|
+
* 本字段是全局固定值(如 "experience-retention-block"),端壳收到相同
|
|
685
|
+
* fixedId 的请求时只渲染一个弹窗,后续发起方的 Promise 跟随既有弹窗结算。
|
|
686
|
+
* 用于多个 webview 实例(工作/管理/开发三板块)可能同时发起同一阻断弹窗
|
|
687
|
+
* 的场景 —— 没有它端壳会渲染多个叠加弹窗。
|
|
688
|
+
*
|
|
689
|
+
* 复用既有弹窗时业务入参以首个发起方为准;单个发起方卸载只结算自己、
|
|
690
|
+
* 弹窗保留,全部发起方卸载后弹窗才随兜底关闭。
|
|
691
|
+
*/
|
|
692
|
+
fixedId?: string;
|
|
680
693
|
/**
|
|
681
694
|
* 宿主弹窗关闭时回调。
|
|
682
695
|
* @param result 承载页通过 `closeHostModal` 回传的业务结果;用户直接关窗时为 undefined
|
|
@@ -1217,6 +1230,13 @@ interface DropdownSubProps {
|
|
|
1217
1230
|
defaultOpen?: boolean;
|
|
1218
1231
|
/** 开关变化回调 */
|
|
1219
1232
|
onOpenChange?: (open: boolean) => void;
|
|
1233
|
+
/**
|
|
1234
|
+
* 展开方式,默认 `hover`。
|
|
1235
|
+
*
|
|
1236
|
+
* `click`:点击触发项展开、再点收起,hover 其它项或移出菜单都不会收起;
|
|
1237
|
+
* 点外部、选中菜单项时随主菜单关闭。子面板很高、需要长距离移动才够得到时使用。
|
|
1238
|
+
*/
|
|
1239
|
+
trigger?: "hover" | "click";
|
|
1220
1240
|
}
|
|
1221
1241
|
interface DropdownSubTriggerProps {
|
|
1222
1242
|
/** 子菜单触发项内容 */
|
|
@@ -1276,6 +1296,13 @@ interface DropdownButtonProps extends Omit<React__default.ButtonHTMLAttributes<H
|
|
|
1276
1296
|
onClear?: (e: React__default.MouseEvent) => void;
|
|
1277
1297
|
}
|
|
1278
1298
|
|
|
1299
|
+
declare function DropdownSub({ children, open, defaultOpen, onOpenChange, trigger }: DropdownSubProps): react_jsx_runtime.JSX.Element;
|
|
1300
|
+
declare namespace DropdownSub {
|
|
1301
|
+
var displayName: string;
|
|
1302
|
+
}
|
|
1303
|
+
declare const DropdownSubTrigger: React__default.ForwardRefExoticComponent<DropdownSubTriggerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1304
|
+
declare const DropdownSubContent: React__default.ForwardRefExoticComponent<DropdownSubContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1305
|
+
|
|
1279
1306
|
/**
|
|
1280
1307
|
* DropdownButton — 统一的 Dropdown/Popover 触发器按钮
|
|
1281
1308
|
*
|
|
@@ -1328,12 +1355,6 @@ declare function DropdownGroup({ children }: DropdownGroupProps): react_jsx_runt
|
|
|
1328
1355
|
declare namespace DropdownGroup {
|
|
1329
1356
|
var displayName: string;
|
|
1330
1357
|
}
|
|
1331
|
-
declare function DropdownSub({ children, open, defaultOpen, onOpenChange }: DropdownSubProps): react_jsx_runtime.JSX.Element;
|
|
1332
|
-
declare namespace DropdownSub {
|
|
1333
|
-
var displayName: string;
|
|
1334
|
-
}
|
|
1335
|
-
declare const DropdownSubTrigger: React__default.ForwardRefExoticComponent<DropdownSubTriggerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1336
|
-
declare const DropdownSubContent: React__default.ForwardRefExoticComponent<DropdownSubContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1337
1358
|
|
|
1338
1359
|
type DatePickerSize = LgSize;
|
|
1339
1360
|
interface DatePickerProps {
|
|
@@ -3476,8 +3497,11 @@ interface PickerPaneData {
|
|
|
3476
3497
|
/**
|
|
3477
3498
|
* 是否渲染「全选」行。
|
|
3478
3499
|
*
|
|
3479
|
-
*
|
|
3480
|
-
*
|
|
3500
|
+
* 作用范围:有 `sections` 时只覆盖它,没有才退到 `orgNodes` —— 两个组织类页签
|
|
3501
|
+
* 因此各自得到正确语义,组件无需知道当前是哪个页签。
|
|
3502
|
+
*
|
|
3503
|
+
* ⚠️ **可选项少于两个时不渲染**,哪怕本属性为 true:只有一个候选时,「全选」与
|
|
3504
|
+
* 直接点那一行完全等价。
|
|
3481
3505
|
*/
|
|
3482
3506
|
selectAll?: boolean;
|
|
3483
3507
|
}
|
|
@@ -3588,6 +3612,27 @@ interface PersonPickerPanelProps {
|
|
|
3588
3612
|
orgPath?: PickerOrgPathItem[];
|
|
3589
3613
|
/** 层级变化回调:点面包屑回跳、点行尾箭头下钻都会触发 */
|
|
3590
3614
|
onOrgPathChange?: (path: PickerOrgPathItem[]) => void;
|
|
3615
|
+
/**
|
|
3616
|
+
* 把组织展开为其下全部人员(含子组织,递归)。
|
|
3617
|
+
*
|
|
3618
|
+
* 传入后,「选择人员」页签的组织行语义变为**批量选人**:勾选 = 选中该组织下的所有
|
|
3619
|
+
* 人,取消 = 把这批人移出已选,**组织本身不进已选区**。不传时组织行维持原语义
|
|
3620
|
+
* (勾选 = 选中该组织实体)。
|
|
3621
|
+
*
|
|
3622
|
+
* 「选择组织」页签不受影响 —— 那里勾中的始终是组织自身。两个页签因此互不干扰:
|
|
3623
|
+
* 在组织页签勾过的部门,切到人员页签时是未选中的。
|
|
3624
|
+
*
|
|
3625
|
+
* 组件不发请求,递归查询由消费方实现。返回的实体会原样进入已选,`type` 必须是
|
|
3626
|
+
* `"person"`;结果按组织缓存,同一组织不重复请求。
|
|
3627
|
+
*/
|
|
3628
|
+
onExpandOrg?: (org: PickerEntity) => Promise<PickerEntity[]>;
|
|
3629
|
+
/**
|
|
3630
|
+
* `onExpandOrg` 失败时触发。
|
|
3631
|
+
*
|
|
3632
|
+
* 组件内没有提示能力,必须由消费方告知用户(toast 等),否则点击组织后毫无反应、
|
|
3633
|
+
* 看不出是失败还是没数据。
|
|
3634
|
+
*/
|
|
3635
|
+
onExpandOrgError?: (org: PickerEntity, error: unknown) => void;
|
|
3591
3636
|
/** 选择模式,默认 `"multiple"` */
|
|
3592
3637
|
mode?: PickerMode;
|
|
3593
3638
|
/** 最多可选数量,不传则不限 */
|
|
@@ -3595,7 +3640,7 @@ interface PersonPickerPanelProps {
|
|
|
3595
3640
|
/** 选中数量将超过 `max` 时触发,此时本次勾选被丢弃 */
|
|
3596
3641
|
onExceed?: (max: number) => void;
|
|
3597
3642
|
/**
|
|
3598
|
-
* 左右分栏的高度,默认
|
|
3643
|
+
* 左右分栏的高度,默认 456。
|
|
3599
3644
|
*
|
|
3600
3645
|
* - `number` —— 固定像素高
|
|
3601
3646
|
* - `"fill"` —— 撑满父容器剩余空间
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as ButtonProps } from './index-
|
|
2
|
-
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-
|
|
1
|
+
import { B as ButtonProps } from './index-BVXwKHfX.js';
|
|
2
|
+
export { a as Button, b as ButtonShape, c as ButtonSize, d as ButtonVariant } from './index-BVXwKHfX.js';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactNode, MouseEvent, CSSProperties, HTMLAttributes, ComponentType, Key, ReactElement, UIEventHandler, Ref } from 'react';
|
|
5
5
|
import { TooltipProps } from './tooltip/index.js';
|
|
@@ -677,6 +677,19 @@ interface DialogHostModal {
|
|
|
677
677
|
* 若用它防止表单被误关,端上灰度期内防不住。
|
|
678
678
|
*/
|
|
679
679
|
maskClosable?: boolean;
|
|
680
|
+
/**
|
|
681
|
+
* 跨发起方去重键(与 requestId 正交,仅客户端 webview 通道)。
|
|
682
|
+
*
|
|
683
|
+
* requestId 由 Dialog 内部随机生成,是「本发起方卸载时撤销弹窗」的句柄;
|
|
684
|
+
* 本字段是全局固定值(如 "experience-retention-block"),端壳收到相同
|
|
685
|
+
* fixedId 的请求时只渲染一个弹窗,后续发起方的 Promise 跟随既有弹窗结算。
|
|
686
|
+
* 用于多个 webview 实例(工作/管理/开发三板块)可能同时发起同一阻断弹窗
|
|
687
|
+
* 的场景 —— 没有它端壳会渲染多个叠加弹窗。
|
|
688
|
+
*
|
|
689
|
+
* 复用既有弹窗时业务入参以首个发起方为准;单个发起方卸载只结算自己、
|
|
690
|
+
* 弹窗保留,全部发起方卸载后弹窗才随兜底关闭。
|
|
691
|
+
*/
|
|
692
|
+
fixedId?: string;
|
|
680
693
|
/**
|
|
681
694
|
* 宿主弹窗关闭时回调。
|
|
682
695
|
* @param result 承载页通过 `closeHostModal` 回传的业务结果;用户直接关窗时为 undefined
|
|
@@ -1217,6 +1230,13 @@ interface DropdownSubProps {
|
|
|
1217
1230
|
defaultOpen?: boolean;
|
|
1218
1231
|
/** 开关变化回调 */
|
|
1219
1232
|
onOpenChange?: (open: boolean) => void;
|
|
1233
|
+
/**
|
|
1234
|
+
* 展开方式,默认 `hover`。
|
|
1235
|
+
*
|
|
1236
|
+
* `click`:点击触发项展开、再点收起,hover 其它项或移出菜单都不会收起;
|
|
1237
|
+
* 点外部、选中菜单项时随主菜单关闭。子面板很高、需要长距离移动才够得到时使用。
|
|
1238
|
+
*/
|
|
1239
|
+
trigger?: "hover" | "click";
|
|
1220
1240
|
}
|
|
1221
1241
|
interface DropdownSubTriggerProps {
|
|
1222
1242
|
/** 子菜单触发项内容 */
|
|
@@ -1276,6 +1296,13 @@ interface DropdownButtonProps extends Omit<React__default.ButtonHTMLAttributes<H
|
|
|
1276
1296
|
onClear?: (e: React__default.MouseEvent) => void;
|
|
1277
1297
|
}
|
|
1278
1298
|
|
|
1299
|
+
declare function DropdownSub({ children, open, defaultOpen, onOpenChange, trigger }: DropdownSubProps): react_jsx_runtime.JSX.Element;
|
|
1300
|
+
declare namespace DropdownSub {
|
|
1301
|
+
var displayName: string;
|
|
1302
|
+
}
|
|
1303
|
+
declare const DropdownSubTrigger: React__default.ForwardRefExoticComponent<DropdownSubTriggerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1304
|
+
declare const DropdownSubContent: React__default.ForwardRefExoticComponent<DropdownSubContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1305
|
+
|
|
1279
1306
|
/**
|
|
1280
1307
|
* DropdownButton — 统一的 Dropdown/Popover 触发器按钮
|
|
1281
1308
|
*
|
|
@@ -1328,12 +1355,6 @@ declare function DropdownGroup({ children }: DropdownGroupProps): react_jsx_runt
|
|
|
1328
1355
|
declare namespace DropdownGroup {
|
|
1329
1356
|
var displayName: string;
|
|
1330
1357
|
}
|
|
1331
|
-
declare function DropdownSub({ children, open, defaultOpen, onOpenChange }: DropdownSubProps): react_jsx_runtime.JSX.Element;
|
|
1332
|
-
declare namespace DropdownSub {
|
|
1333
|
-
var displayName: string;
|
|
1334
|
-
}
|
|
1335
|
-
declare const DropdownSubTrigger: React__default.ForwardRefExoticComponent<DropdownSubTriggerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1336
|
-
declare const DropdownSubContent: React__default.ForwardRefExoticComponent<DropdownSubContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1337
1358
|
|
|
1338
1359
|
type DatePickerSize = LgSize;
|
|
1339
1360
|
interface DatePickerProps {
|
|
@@ -3476,8 +3497,11 @@ interface PickerPaneData {
|
|
|
3476
3497
|
/**
|
|
3477
3498
|
* 是否渲染「全选」行。
|
|
3478
3499
|
*
|
|
3479
|
-
*
|
|
3480
|
-
*
|
|
3500
|
+
* 作用范围:有 `sections` 时只覆盖它,没有才退到 `orgNodes` —— 两个组织类页签
|
|
3501
|
+
* 因此各自得到正确语义,组件无需知道当前是哪个页签。
|
|
3502
|
+
*
|
|
3503
|
+
* ⚠️ **可选项少于两个时不渲染**,哪怕本属性为 true:只有一个候选时,「全选」与
|
|
3504
|
+
* 直接点那一行完全等价。
|
|
3481
3505
|
*/
|
|
3482
3506
|
selectAll?: boolean;
|
|
3483
3507
|
}
|
|
@@ -3588,6 +3612,27 @@ interface PersonPickerPanelProps {
|
|
|
3588
3612
|
orgPath?: PickerOrgPathItem[];
|
|
3589
3613
|
/** 层级变化回调:点面包屑回跳、点行尾箭头下钻都会触发 */
|
|
3590
3614
|
onOrgPathChange?: (path: PickerOrgPathItem[]) => void;
|
|
3615
|
+
/**
|
|
3616
|
+
* 把组织展开为其下全部人员(含子组织,递归)。
|
|
3617
|
+
*
|
|
3618
|
+
* 传入后,「选择人员」页签的组织行语义变为**批量选人**:勾选 = 选中该组织下的所有
|
|
3619
|
+
* 人,取消 = 把这批人移出已选,**组织本身不进已选区**。不传时组织行维持原语义
|
|
3620
|
+
* (勾选 = 选中该组织实体)。
|
|
3621
|
+
*
|
|
3622
|
+
* 「选择组织」页签不受影响 —— 那里勾中的始终是组织自身。两个页签因此互不干扰:
|
|
3623
|
+
* 在组织页签勾过的部门,切到人员页签时是未选中的。
|
|
3624
|
+
*
|
|
3625
|
+
* 组件不发请求,递归查询由消费方实现。返回的实体会原样进入已选,`type` 必须是
|
|
3626
|
+
* `"person"`;结果按组织缓存,同一组织不重复请求。
|
|
3627
|
+
*/
|
|
3628
|
+
onExpandOrg?: (org: PickerEntity) => Promise<PickerEntity[]>;
|
|
3629
|
+
/**
|
|
3630
|
+
* `onExpandOrg` 失败时触发。
|
|
3631
|
+
*
|
|
3632
|
+
* 组件内没有提示能力,必须由消费方告知用户(toast 等),否则点击组织后毫无反应、
|
|
3633
|
+
* 看不出是失败还是没数据。
|
|
3634
|
+
*/
|
|
3635
|
+
onExpandOrgError?: (org: PickerEntity, error: unknown) => void;
|
|
3591
3636
|
/** 选择模式,默认 `"multiple"` */
|
|
3592
3637
|
mode?: PickerMode;
|
|
3593
3638
|
/** 最多可选数量,不传则不限 */
|
|
@@ -3595,7 +3640,7 @@ interface PersonPickerPanelProps {
|
|
|
3595
3640
|
/** 选中数量将超过 `max` 时触发,此时本次勾选被丢弃 */
|
|
3596
3641
|
onExceed?: (max: number) => void;
|
|
3597
3642
|
/**
|
|
3598
|
-
* 左右分栏的高度,默认
|
|
3643
|
+
* 左右分栏的高度,默认 456。
|
|
3599
3644
|
*
|
|
3600
3645
|
* - `number` —— 固定像素高
|
|
3601
3646
|
* - `"fill"` —— 撑满父容器剩余空间
|