@fox-js/foxui-pad 4.1.1-5 → 4.1.1-6

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,5 +1,5 @@
1
1
  /*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Dec 19 2024 16:35:26 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-desktop v4.0.0 Sat Dec 28 2024 18:48:07 GMT+0800 (中国标准时间)
3
3
  */
4
4
  const e = {
5
5
  save: "保存",
@@ -1,3 +1,3 @@
1
1
  (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.locale=t())})(this,function(){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Dec 19 2024 16:35:26 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-desktop v4.0.0 Sat Dec 28 2024 18:48:07 GMT+0800 (中国标准时间)
3
3
  */const e={save:"保存",noData:"暂无数据",confirmText:"确认",cancelText:"取消",clearText:"清除",defaultText:"默认",placeholder:"请输入",select:"请选择",dateUnit:{day:"日",year:"年",month:"月",hour:"时",minute:"分",seconds:"秒"},video:{errorTip:"视频加载失败",clickRetry:"点击重试"},fixednav:{activeText:"收起导航",unActiveText:"快速导航"},pagination:{prevText:"上一页",nextText:"下一页"},calendarpane:{weekdays:JSON.stringify(["日","一","二","三","四","五","六"]),endText:"结束",startText:"开始",title:"日历选择",monthTitle:"{year}年{month}月",today:"今天"},shortpassword:{title:"请输入密码",desc:"您使用了虚拟资产,请进行验证",tips:"忘记密码"},uploader:{ready:"准备完成",readyUpload:"准备上传",waitingUpload:"等待上传",uploading:"上传中",success:"上传成功",error:"上传失败"},countdown:{day:"天",hour:"时",minute:"分",second:"秒"},empty:{description:"暂无数据"},address:{selectRegion:"请选择所在地区",deliveryTo:"配送至",chooseAnotherAddress:"选择其他地址"},signature:{reSign:"重签",unSupportTpl:"对不起,当前浏览器不支持Canvas,无法使用本控件!"},ecard:{chooseText:"请选择电子卡面值",otherValueText:"其他面值",placeholder:"请输入1-5000整数"},timeselect:{title:"取件时间"},sku:{buyText:"立即购买",stepperTitle:"购买数量",addCartText:"加入购物车"},skuheader:{idText:"商品编号"},addresslist:{addAddress:"新建地址"},comment:{complaintsText:"我要投诉",additionalReview:"购买{0}天后追评",additionalImages:"{0}张追评图片"},infiniteloading:{loading:"加载中...",pullTxt:"松开刷新",loadMoreTxt:"哎呀,这里是底部了啦"},datepicker:{year:"年",month:"月",day:"日",hour:"时",minute:"分",seconds:"秒"},audiooperate:{back:"倒退",start:"开始",pause:"暂停",forward:"快进",mute:"静音"},picker:{title:"请选择"},pickeritem:{placeholder:"请选择"},dateitem:{placeholder:"请选择"},cascaderitem:{placeholder:"请选择"},calendaritem:{placeholder:"请选择"},numberkeyboard:{confirmText:"完成"}},t={save:"Save",noData:"No Data",confirmText:"Confirm",cancelText:"Cancel",clearText:"Clear",defaultText:"Default",placeholder:"Placeholder",select:"Select",dateUnit:{day:"Day",year:"Year",month:"Month",hour:"Hour",minute:"Minute",seconds:"Second"},video:{errorTip:"Error Tip",clickRetry:"Click Retry"},fixednav:{activeText:"Close Nav",unActiveText:"Open Nav"},pagination:{prevText:"Previous",nextText:"Next"},calendarpane:{weekdays:JSON.stringify(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),endText:"End",startText:"Start",title:"Calendar",monthTitle:"{year}/{month}",today:"Today"},shortpassword:{title:"Please input a password",desc:"Verify",tips:"Forget password"},uploader:{ready:"Ready",readyUpload:"Ready to upload",waitingUpload:"Waiting for upload",uploading:"Uploading",success:"Upload successful",error:"Upload failed"},countdown:{day:" Day ",hour:" Hour ",minute:" Minute ",second:" Second "},empty:{description:"No Data"},address:{selectRegion:"Select Region",deliveryTo:"Delivery To",chooseAnotherAddress:"Choose Another Address"},signature:{reSign:"Re Sign",unSupportTpl:"Sorry, the current browser doesn't support canvas, so we can't use this control!"},ecard:{chooseText:"Select",otherValueText:"Other Value",placeholder:"Placeholder"},timeselect:{title:"Pickup Time"},sku:{buyText:"Buy Now",stepperTitle:"Buy Number",addCartText:"Add to Cart"},skuheader:{idText:"Sku Number"},addresslist:{addAddress:"Add New Address"},comment:{complaintsText:"I have a complaint",additionalReview:"Review after {0} days of purchase",additionalImages:"There are {0} follow-up comments"},infiniteloading:{loading:"Loading...",pullTxt:"Loose to refresh",loadMoreTxt:"Oops, this is the bottom"},datepicker:{year:"Year",month:"Month",day:"Day",hour:"Hour",minute:"Minute",seconds:"Second"},audiooperate:{back:"Back",start:"Start",pause:"Pause",forward:"Forward",mute:"Mute"},picker:{title:"Select"},pickeritem:{placeholder:"Select"},dateitem:{placeholder:"Select"},cascaderitem:{placeholder:"Select"},calendaritem:{placeholder:"Select"},numberkeyboard:{confirmText:"Done"}},a={save:"保存",noData:"暫無數據",confirmText:"確認",cancelText:"取消",clearText:"清除",defaultText:"默认",placeholder:"請輸入",select:"請選擇",dateUnit:{day:"日",year:"年",month:"月",hour:"时",minute:"分",seconds:"秒"},video:{errorTip:"視頻加載失敗",clickRetry:"點擊重試"},fixednav:{activeText:"收起導航",unActiveText:"快速導航"},pagination:{prevText:"上一頁",nextText:"下一頁"},calendarpane:{weekdays:JSON.stringify(["日","一","二","三","四","五","六"]),endText:"結束",startText:"開始",title:"行事曆選擇",monthTitle:"{year}年{month}月",today:"今天"},shortpassword:{title:"請輸入密碼",desc:"您使用了虛擬資產,請進行驗證",tips:"忘記密碼"},uploader:{ready:"準備完成",readyUpload:"準備上傳",waitingUpload:"等待上傳",uploading:"上傳中",success:"上傳成功",error:"上傳失敗"},countdown:{day:"天",hour:"時",minute:"分",second:"秒"},empty:{description:"暫無數據"},address:{selectRegion:"請選擇所在地區",deliveryTo:"配送至",chooseAnotherAddress:"選擇其他地址"},signature:{reSign:"重簽",unSupportTpl:"對不起,當前瀏覽器不支持Canvas,無法使用本控制項!"},ecard:{chooseText:"請選擇電子卡面值",otherValueText:"其他面值",placeholder:"請輸入1-5000整數"},timeselect:{title:"取件時間"},sku:{buyText:"立即購買",stepperTitle:"購買數量",addCartText:"加入購物車"},skuheader:{idText:"商品編號"},addresslist:{addAddress:"新建地址"},comment:{complaintsText:"我要投訴",additionalReview:"購買{0}天後追評",additionalImages:"{0}張追評圖片"},infiniteloading:{loading:"加載中...",pullTxt:"鬆開刷新",loadMoreTxt:"哎呀,這裡是底部了啦"},datepicker:{year:"年",month:"月",day:"日",hour:"時",minute:"分",seconds:"秒"},audiooperate:{back:"倒退",start:"開始",pause:"暫停",forward:"快進",mute:"靜音"},picker:{title:"請選擇"},pickeritem:{placeholder:"請選擇"},dateitem:{placeholder:"請選擇"},cascaderitem:{placeholder:"請選擇"},calendaritem:{placeholder:"請選擇"},numberkeyboard:{confirmText:"完成"}};return{zh_CN:{...e},en_US:{...t},zh_TW:{...a}}});
@@ -56,8 +56,10 @@ import { ElImage as FoxImage } from './base';
56
56
  import { ElImageViewer as FoxImageViewer } from './base';
57
57
  import { ElInput as FoxInput } from './base';
58
58
  import { ElInputNumber as FoxInputNumber } from './base';
59
+ import { ElInputTag as FoxInputTag } from './base';
59
60
  import { ElLink as FoxLink } from './base';
60
61
  import { ElMain as FoxMain } from './base';
62
+ import { ElMention as FoxMention } from './base';
61
63
  import { ElMenu as FoxMenu } from './base';
62
64
  import { ElMenuItem as FoxMenuItem } from './base';
63
65
  import { ElMenuItemGroup as FoxMenuItemGroup } from './base';
@@ -153,6 +155,10 @@ export declare class Broadcast {
153
155
  * 名称
154
156
  */
155
157
  private name?;
158
+ /**
159
+ * 持久消息注册表
160
+ */
161
+ private persistantMessages;
156
162
  /**
157
163
  * 构造函数
158
164
  * @param parent
@@ -174,6 +180,46 @@ export declare class Broadcast {
174
180
  * 销毁
175
181
  */
176
182
  destroy(): void;
183
+ /**
184
+ * 设置持久化消息
185
+ * @param matched
186
+ * @param action
187
+ * @param args
188
+ */
189
+ private setPersistantMessage;
190
+ /**
191
+ * 删除持久化消息
192
+ * @param matched
193
+ * @param action
194
+ * @param args
195
+ */
196
+ private deletePersistantMessage;
197
+ /**
198
+ * 获取持久化消息列表
199
+ * @returns
200
+ */
201
+ getPersistantMessages(): PersistantMessage[];
202
+ /**
203
+ * 清空持久化消息列表
204
+ */
205
+ clearPersistantMessage(): void;
206
+ /**
207
+ * 判断是否匹配
208
+ * @param name
209
+ * @param matched
210
+ * @returns
211
+ */
212
+ private isMatched;
213
+ /**
214
+ * 触发函数
215
+ * @param action
216
+ * @param args
217
+ */
218
+ private trigger;
219
+ /**
220
+ * 拉取持久消息
221
+ */
222
+ pull(): void;
177
223
  /**
178
224
  * 发生消息
179
225
  * @param matched
@@ -204,6 +250,9 @@ export declare interface BroadcastCallback {
204
250
  (...args: any[]): Result;
205
251
  }
206
252
 
253
+ /**
254
+ * broadcast key
255
+ */
207
256
  export declare const BroadcastKey: unique symbol;
208
257
 
209
258
  export declare function cancelRaf(id: number): void;
@@ -946,10 +995,14 @@ export { FoxInput }
946
995
 
947
996
  export { FoxInputNumber }
948
997
 
998
+ export { FoxInputTag }
999
+
949
1000
  export { FoxLink }
950
1001
 
951
1002
  export { FoxMain }
952
1003
 
1004
+ export { FoxMention }
1005
+
953
1006
  export { FoxMenu }
954
1007
 
955
1008
  export { FoxMenuItem }
@@ -1205,12 +1258,6 @@ declare interface Installer {
1205
1258
  (app: App, options?: any): void;
1206
1259
  }
1207
1260
 
1208
- /**
1209
- * 安装校验规则
1210
- * @param proxy
1211
- */
1212
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1213
-
1214
1261
  /**
1215
1262
  * 获取整数长度
1216
1263
  * @param value
@@ -1392,8 +1439,11 @@ export declare interface Matched {
1392
1439
  name?: string | RegExp | {
1393
1440
  (name: string): boolean;
1394
1441
  };
1395
- maxLevel?: number;
1396
- level?: number;
1442
+ resolve?: Resolve;
1443
+ resolved?: boolean;
1444
+ uniqueId?: string;
1445
+ cachePolicy?: MessageCachePolicy;
1446
+ messagingPolicy?: MessagingPolicy;
1397
1447
  }
1398
1448
 
1399
1449
  /**
@@ -1404,6 +1454,18 @@ export declare interface Matched {
1404
1454
  */
1405
1455
  export declare function merge(first: any[], second: any[]): any[];
1406
1456
 
1457
+ /**
1458
+ * 消息缓存策略
1459
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1460
+ */
1461
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1462
+
1463
+ /**
1464
+ * 消息传递策略
1465
+ * broadcast
1466
+ */
1467
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1468
+
1407
1469
  export { multiply }
1408
1470
 
1409
1471
  export { negate }
@@ -1481,6 +1543,15 @@ export declare interface PageState {
1481
1543
  footerMounted?: boolean;
1482
1544
  }
1483
1545
 
1546
+ /**
1547
+ * 持久消息
1548
+ */
1549
+ declare interface PersistantMessage {
1550
+ matched: Matched;
1551
+ action: string;
1552
+ args: any[];
1553
+ }
1554
+
1484
1555
  /**
1485
1556
  * 坐标
1486
1557
  */
@@ -1523,6 +1594,11 @@ declare interface Rect {
1523
1594
  height: number;
1524
1595
  }
1525
1596
 
1597
+ /**
1598
+ * 消息确认函数
1599
+ */
1600
+ declare type Resolve = (...args: any) => void;
1601
+
1526
1602
  /**
1527
1603
  * 结果类型
1528
1604
  */
@@ -1687,8 +1763,8 @@ export { unNumberFormat }
1687
1763
  /**
1688
1764
  * 更新 page state
1689
1765
  * @param state
1690
- * @param pageLayout
1691
- * @param overrideProps
1766
+ * @param pageLayout(领域设置)
1767
+ * @param overrideProps(组件属性)
1692
1768
  * @param root
1693
1769
  * @param rootWidth
1694
1770
  * @param rootHeight
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pad",
3
3
  "type": "module",
4
- "version": "4.1.1-5",
4
+ "version": "4.1.1-6",
5
5
  "description": "FoxUI PAD端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",