@fox-js/foxui-pad 4.1.1-0 → 4.1.1-11

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.
@@ -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;
@@ -298,9 +347,11 @@ export declare const DateUtils: {
298
347
  * 返回日期格式字符串
299
348
  * @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
300
349
  * @param {Date} 起点日期
350
+ * @param {formatTemplate} 格式化模版
301
351
  * @return {string} '2014-12-31'
352
+ *
302
353
  */
303
- getDay(i: number, startDate?: Date): string;
354
+ getDay(i: number, startDate?: Date, formatTemplate?: string): string;
304
355
  /**
305
356
  * 时间比较
306
357
  * @return
@@ -378,217 +429,237 @@ declare const _default: FoxUIVue;
378
429
  export default _default;
379
430
 
380
431
  declare const _default_10: any;
381
- export { _default_10 as FoxHintText }
382
- export { _default_10 as HintText }
432
+ export { _default_10 as ButtonsItem }
433
+ export { _default_10 as FoxButtonsItem }
383
434
 
384
435
  declare const _default_11: any;
385
- export { _default_11 as FoxInputItem }
386
- export { _default_11 as InputItem }
436
+ export { _default_11 as FoxHintText }
437
+ export { _default_11 as HintText }
387
438
 
388
439
  declare const _default_12: any;
389
- export { _default_12 as FoxSelectItem }
390
- export { _default_12 as SelectItem }
440
+ export { _default_12 as FoxInputItem }
441
+ export { _default_12 as InputItem }
391
442
 
392
443
  declare const _default_13: any;
393
- export { _default_13 as DateItem }
394
- export { _default_13 as FoxDateItem }
444
+ export { _default_13 as FoxSelectItem }
445
+ export { _default_13 as SelectItem }
395
446
 
396
447
  declare const _default_14: any;
397
- export { _default_14 as CalendarItem }
398
- export { _default_14 as FoxCalendarItem }
448
+ export { _default_14 as DateItem }
449
+ export { _default_14 as FoxDateItem }
399
450
 
400
451
  declare const _default_15: any;
401
- export { _default_15 as FoxTimeItem }
402
- export { _default_15 as TimeItem }
452
+ export { _default_15 as CalendarItem }
453
+ export { _default_15 as FoxCalendarItem }
403
454
 
404
455
  declare const _default_16: any;
405
- export { _default_16 as FoxTimeSelectItem }
406
- export { _default_16 as TimeSelectItem }
456
+ export { _default_16 as FoxTimeItem }
457
+ export { _default_16 as TimeItem }
407
458
 
408
459
  declare const _default_17: any;
409
- export { _default_17 as FoxMoneyItem }
410
- export { _default_17 as MoneyItem }
460
+ export { _default_17 as FoxTimeSelectItem }
461
+ export { _default_17 as TimeSelectItem }
411
462
 
412
463
  declare const _default_18: any;
413
- export { _default_18 as FoxInputNumberItem }
414
- export { _default_18 as InputNumberItem }
464
+ export { _default_18 as FoxMoneyItem }
465
+ export { _default_18 as MoneyItem }
415
466
 
416
467
  declare const _default_19: any;
417
- export { _default_19 as CascaderItem }
418
- export { _default_19 as FoxCascaderItem }
468
+ export { _default_19 as FoxInputNumberItem }
469
+ export { _default_19 as InputNumberItem }
419
470
 
420
471
  declare const _default_2: any;
421
472
  export { _default_2 as FoxPage }
422
473
  export { _default_2 as Page }
423
474
 
424
475
  declare const _default_20: any;
425
- export { _default_20 as AutocompleteItem }
426
- export { _default_20 as FoxAutocompleteItem }
476
+ export { _default_20 as CascaderItem }
477
+ export { _default_20 as FoxCascaderItem }
427
478
 
428
479
  declare const _default_21: any;
429
- export { _default_21 as FoxTableMappingColumn }
430
- export { _default_21 as TableMappingColumn }
480
+ export { _default_21 as AutocompleteItem }
481
+ export { _default_21 as FoxAutocompleteItem }
431
482
 
432
483
  declare const _default_22: any;
433
- export { _default_22 as FoxTableRadioColumn }
434
- export { _default_22 as TableRadioColumn }
484
+ export { _default_22 as FoxTableMappingColumn }
485
+ export { _default_22 as TableMappingColumn }
435
486
 
436
487
  declare const _default_23: any;
437
- export { _default_23 as FoxTableSetting }
438
- export { _default_23 as TableSetting }
488
+ export { _default_23 as FoxTableRadioColumn }
489
+ export { _default_23 as TableRadioColumn }
439
490
 
440
491
  declare const _default_24: any;
441
- export { _default_24 as FoxTableItem }
442
- export { _default_24 as TableItem }
492
+ export { _default_24 as FoxTableSetting }
493
+ export { _default_24 as TableSetting }
443
494
 
444
495
  declare const _default_25: any;
445
- export { _default_25 as FoxRadioItem }
446
- export { _default_25 as RadioItem }
496
+ export { _default_25 as FoxTableItem }
497
+ export { _default_25 as TableItem }
447
498
 
448
499
  declare const _default_26: any;
449
- export { _default_26 as CheckboxItem }
450
- export { _default_26 as FoxCheckboxItem }
500
+ export { _default_26 as FoxRadioItem }
501
+ export { _default_26 as RadioItem }
451
502
 
452
503
  declare const _default_27: any;
453
- export { _default_27 as FoxRateItem }
454
- export { _default_27 as RateItem }
504
+ export { _default_27 as CheckboxItem }
505
+ export { _default_27 as FoxCheckboxItem }
455
506
 
456
507
  declare const _default_28: any;
457
- export { _default_28 as FoxSwitchItem }
458
- export { _default_28 as SwitchItem }
508
+ export { _default_28 as FoxRateItem }
509
+ export { _default_28 as RateItem }
459
510
 
460
511
  declare const _default_29: any;
461
- export { _default_29 as FoxTreeSelectItem }
462
- export { _default_29 as TreeSelectItem }
512
+ export { _default_29 as FoxSwitchItem }
513
+ export { _default_29 as SwitchItem }
463
514
 
464
515
  declare const _default_3: any;
465
516
  export { _default_3 as FoxHeaderBar }
466
517
  export { _default_3 as HeaderBar }
467
518
 
468
519
  declare const _default_30: any;
469
- export { _default_30 as FoxGroupSetting }
470
- export { _default_30 as GroupSetting }
520
+ export { _default_30 as FoxTreeSelectItem }
521
+ export { _default_30 as TreeSelectItem }
471
522
 
472
523
  declare const _default_31: any;
473
- export { _default_31 as ActionsheetPane }
474
- export { _default_31 as FoxActionsheetPane }
524
+ export { _default_31 as FoxGroupSetting }
525
+ export { _default_31 as GroupSetting }
475
526
 
476
527
  declare const _default_32: any;
477
- export { _default_32 as ActionsheetItem }
478
- export { _default_32 as FoxActionsheetItem }
528
+ export { _default_32 as FoxTreeItem }
529
+ export { _default_32 as TreeItem }
479
530
 
480
531
  declare const _default_33: any;
481
- export { _default_33 as FoxPickerItem }
482
- export { _default_33 as PickerItem }
532
+ export { _default_33 as ActionsheetPane }
533
+ export { _default_33 as FoxActionsheetPane }
483
534
 
484
535
  declare const _default_34: any;
485
- export { _default_34 as FoxTabsBar }
486
- export { _default_34 as TabsBar }
536
+ export { _default_34 as ActionsheetItem }
537
+ export { _default_34 as FoxActionsheetItem }
487
538
 
488
539
  declare const _default_35: any;
489
- export { _default_35 as FoxTabsContainer }
490
- export { _default_35 as TabsContainer }
540
+ export { _default_35 as FoxPickerItem }
541
+ export { _default_35 as PickerItem }
491
542
 
492
543
  declare const _default_36: any;
493
- export { _default_36 as FoxTabsPane }
494
- export { _default_36 as TabsPane }
544
+ export { _default_36 as FoxTabsBar }
545
+ export { _default_36 as TabsBar }
495
546
 
496
547
  declare const _default_37: any;
497
- export { _default_37 as FoxStepsBar }
498
- export { _default_37 as StepsBar }
548
+ export { _default_37 as FoxTabsContainer }
549
+ export { _default_37 as TabsContainer }
499
550
 
500
551
  declare const _default_38: any;
501
- export { _default_38 as Foxpicker }
502
- export { _default_38 as picker }
552
+ export { _default_38 as FoxTabsPane }
553
+ export { _default_38 as TabsPane }
503
554
 
504
555
  declare const _default_39: any;
505
- export { _default_39 as Foxdatepicker }
506
- export { _default_39 as datepicker }
556
+ export { _default_39 as FoxTabsFrame }
557
+ export { _default_39 as TabsFrame }
507
558
 
508
559
  declare const _default_4: any;
509
560
  export { _default_4 as FooterBar }
510
561
  export { _default_4 as FoxFooterBar }
511
562
 
512
563
  declare const _default_40: any;
513
- export { _default_40 as Foxcalendarpicker }
514
- export { _default_40 as calendarpicker }
564
+ export { _default_40 as FoxStepsBar }
565
+ export { _default_40 as StepsBar }
515
566
 
516
567
  declare const _default_41: any;
517
- export { _default_41 as Foxcascaderpicker }
518
- export { _default_41 as cascaderpicker }
568
+ export { _default_41 as FloatingWindow }
569
+ export { _default_41 as FoxFloatingWindow }
519
570
 
520
571
  declare const _default_42: any;
521
- export { _default_42 as DialogItem }
522
- export { _default_42 as FoxDialogItem }
572
+ export { _default_42 as FoxPopoverDialog }
573
+ export { _default_42 as PopoverDialog }
523
574
 
524
575
  declare const _default_43: any;
525
- export { _default_43 as FoxOverLay }
526
- export { _default_43 as OverLay }
576
+ export { _default_43 as Foxpicker }
577
+ export { _default_43 as picker }
527
578
 
528
579
  declare const _default_44: any;
529
- export { _default_44 as FoxPopup }
530
- export { _default_44 as Popup }
580
+ export { _default_44 as Foxdatepicker }
581
+ export { _default_44 as datepicker }
531
582
 
532
583
  declare const _default_45: any;
533
- export { _default_45 as FoxToast }
534
- export { _default_45 as Toast }
584
+ export { _default_45 as Foxcalendarpicker }
585
+ export { _default_45 as calendarpicker }
535
586
 
536
587
  declare const _default_46: any;
537
- export { _default_46 as FoxSearchBar }
538
- export { _default_46 as SearchBar }
588
+ export { _default_46 as Foxcascaderpicker }
589
+ export { _default_46 as cascaderpicker }
539
590
 
540
591
  declare const _default_47: any;
541
- export { _default_47 as FoxInfiniteLoading }
542
- export { _default_47 as InfiniteLoading }
592
+ export { _default_47 as DialogItem }
593
+ export { _default_47 as FoxDialogItem }
543
594
 
544
595
  declare const _default_48: any;
545
- export { _default_48 as FoxPullRefresh }
546
- export { _default_48 as PullRefresh }
596
+ export { _default_48 as FoxOverLay }
597
+ export { _default_48 as OverLay }
547
598
 
548
599
  declare const _default_49: any;
549
- export { _default_49 as FoxMapping }
550
- export { _default_49 as Mapping }
600
+ export { _default_49 as FoxPopup }
601
+ export { _default_49 as Popup }
551
602
 
552
603
  declare const _default_5: any;
553
604
  export { _default_5 as Content }
554
605
  export { _default_5 as FoxContent }
555
606
 
556
607
  declare const _default_50: any;
557
- export { _default_50 as FoxPrice }
558
- export { _default_50 as Price }
608
+ export { _default_50 as FoxToast }
609
+ export { _default_50 as Toast }
559
610
 
560
611
  declare const _default_51: any;
561
- export { _default_51 as FoxIndicator }
562
- export { _default_51 as Indicator }
612
+ export { _default_51 as FoxSearchBar }
613
+ export { _default_51 as SearchBar }
563
614
 
564
615
  declare const _default_52: any;
565
- export { _default_52 as FoxText }
566
- export { _default_52 as Text }
616
+ export { _default_52 as FoxInfiniteLoading }
617
+ export { _default_52 as InfiniteLoading }
567
618
 
568
619
  declare const _default_53: any;
569
- export { _default_53 as FoxMoreButton }
570
- export { _default_53 as MoreButton }
620
+ export { _default_53 as FoxPullRefresh }
621
+ export { _default_53 as PullRefresh }
571
622
 
572
623
  declare const _default_54: any;
573
- export { _default_54 as FoxTour }
574
- export { _default_54 as Tour }
624
+ export { _default_54 as FoxMoreButton }
625
+ export { _default_54 as MoreButton }
575
626
 
576
627
  declare const _default_55: any;
577
- export { _default_55 as FloatingWindow }
578
- export { _default_55 as FoxFloatingWindow }
628
+ export { _default_55 as FloatingButton }
629
+ export { _default_55 as FoxFloatingButton }
579
630
 
580
631
  declare const _default_56: any;
581
- export { _default_56 as DomainProvider }
582
- export { _default_56 as FoxDomainProvider }
632
+ export { _default_56 as FoxMapping }
633
+ export { _default_56 as Mapping }
583
634
 
584
635
  declare const _default_57: any;
585
- export { _default_57 as FoxRollingProvider }
586
- export { _default_57 as RollingProvider }
636
+ export { _default_57 as FoxPrice }
637
+ export { _default_57 as Price }
638
+
639
+ declare const _default_58: any;
640
+ export { _default_58 as FoxIndicator }
641
+ export { _default_58 as Indicator }
642
+
643
+ declare const _default_59: any;
644
+ export { _default_59 as FoxText }
645
+ export { _default_59 as Text }
587
646
 
588
647
  declare const _default_6: any;
589
648
  export { _default_6 as FoxGroup }
590
649
  export { _default_6 as Group }
591
650
 
651
+ declare const _default_60: any;
652
+ export { _default_60 as FoxTour }
653
+ export { _default_60 as Tour }
654
+
655
+ declare const _default_61: any;
656
+ export { _default_61 as DomainProvider }
657
+ export { _default_61 as FoxDomainProvider }
658
+
659
+ declare const _default_62: any;
660
+ export { _default_62 as FoxRollingProvider }
661
+ export { _default_62 as RollingProvider }
662
+
592
663
  declare const _default_7: any;
593
664
  export { _default_7 as FoxItem }
594
665
  export { _default_7 as Item }
@@ -936,10 +1007,14 @@ export { FoxInput }
936
1007
 
937
1008
  export { FoxInputNumber }
938
1009
 
1010
+ export { FoxInputTag }
1011
+
939
1012
  export { FoxLink }
940
1013
 
941
1014
  export { FoxMain }
942
1015
 
1016
+ export { FoxMention }
1017
+
943
1018
  export { FoxMenu }
944
1019
 
945
1020
  export { FoxMenuItem }
@@ -1066,12 +1141,12 @@ declare class FoxUIVue implements FoxUI {
1066
1141
  */
1067
1142
  install(app: App, options?: FoxUIOptions): any;
1068
1143
  /**
1069
- * 初始化page Layout
1144
+ * 更新Layout
1070
1145
  *
1071
1146
  * @param options
1072
1147
  * @param rootDomain
1073
1148
  */
1074
- initPageLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1149
+ updateLayout(options: FoxUIOptions, rootDomain?: Domain): void;
1075
1150
  /**
1076
1151
  * 设置scope getter
1077
1152
  * @param getter
@@ -1195,12 +1270,6 @@ declare interface Installer {
1195
1270
  (app: App, options?: any): void;
1196
1271
  }
1197
1272
 
1198
- /**
1199
- * 安装校验规则
1200
- * @param proxy
1201
- */
1202
- export declare function installRules(proxy: FoxComponentPublicInstance, validateScheme: ValidateSchema, name: string): void;
1203
-
1204
1273
  /**
1205
1274
  * 获取整数长度
1206
1275
  * @param value
@@ -1261,8 +1330,11 @@ export declare function isESModule(obj: any): obj is Object;
1261
1330
  export declare const isFunction: (val: unknown) => val is Function;
1262
1331
 
1263
1332
  /**
1264
- * 是否是隐藏element
1265
- * @param el
1333
+ * 是否是隐藏 element(自身或任意父级隐藏)
1334
+ * - display: none
1335
+ * - visibility: hidden
1336
+ * - hidden 属性
1337
+ * - 父级隐藏
1266
1338
  */
1267
1339
  export declare function isHidden(el: any): boolean;
1268
1340
 
@@ -1382,8 +1454,11 @@ export declare interface Matched {
1382
1454
  name?: string | RegExp | {
1383
1455
  (name: string): boolean;
1384
1456
  };
1385
- maxLevel?: number;
1386
- level?: number;
1457
+ resolve?: Resolve;
1458
+ resolved?: boolean;
1459
+ uniqueId?: string;
1460
+ cachePolicy?: MessageCachePolicy;
1461
+ messagingPolicy?: MessagingPolicy;
1387
1462
  }
1388
1463
 
1389
1464
  /**
@@ -1394,6 +1469,18 @@ export declare interface Matched {
1394
1469
  */
1395
1470
  export declare function merge(first: any[], second: any[]): any[];
1396
1471
 
1472
+ /**
1473
+ * 消息缓存策略
1474
+ * None:不缓存; UnResolved:消息未命中前缓存;Persistant:永久缓存
1475
+ */
1476
+ export declare type MessageCachePolicy = 'None' | 'Unresolved' | 'Persistant';
1477
+
1478
+ /**
1479
+ * 消息传递策略
1480
+ * broadcast
1481
+ */
1482
+ export declare type MessagingPolicy = 'Brodcast' | 'Once';
1483
+
1397
1484
  export { multiply }
1398
1485
 
1399
1486
  export { negate }
@@ -1441,8 +1528,8 @@ export declare interface Padding {
1441
1528
  * page layout
1442
1529
  */
1443
1530
  export declare interface PageLayout {
1444
- width: number | string;
1445
- height: number | string;
1531
+ width?: number | string;
1532
+ height?: number | string;
1446
1533
  headerHeight?: number | string;
1447
1534
  footerHeight?: number | string;
1448
1535
  headerPadding?: Padding;
@@ -1471,6 +1558,15 @@ export declare interface PageState {
1471
1558
  footerMounted?: boolean;
1472
1559
  }
1473
1560
 
1561
+ /**
1562
+ * 持久消息
1563
+ */
1564
+ declare interface PersistantMessage {
1565
+ matched: Matched;
1566
+ action: string;
1567
+ args: any[];
1568
+ }
1569
+
1474
1570
  /**
1475
1571
  * 坐标
1476
1572
  */
@@ -1513,6 +1609,11 @@ declare interface Rect {
1513
1609
  height: number;
1514
1610
  }
1515
1611
 
1612
+ /**
1613
+ * 消息确认函数
1614
+ */
1615
+ declare type Resolve = (...args: any) => void;
1616
+
1516
1617
  /**
1517
1618
  * 结果类型
1518
1619
  */
@@ -1605,13 +1706,15 @@ export declare function toPadding(rect: any): Padding;
1605
1706
  */
1606
1707
  export declare function toPx(value: number | string, size?: number): number;
1607
1708
 
1709
+ export declare const toPxDesc: (value: string | number, size?: number) => string;
1710
+
1608
1711
  /**
1609
- * to px desc
1712
+ * to px string
1610
1713
  * @param value
1611
1714
  * @parma size
1612
1715
  * @returns
1613
1716
  */
1614
- export declare const toPxDesc: (value: string | number, size?: number) => string;
1717
+ export declare const toPxString: (value: string | number, size?: number) => string;
1615
1718
 
1616
1719
  export declare const toTypeString: (value: unknown) => string;
1617
1720
 
@@ -1677,8 +1780,8 @@ export { unNumberFormat }
1677
1780
  /**
1678
1781
  * 更新 page state
1679
1782
  * @param state
1680
- * @param pageLayout
1681
- * @param overrideProps
1783
+ * @param pageLayout(领域设置)
1784
+ * @param overrideProps(组件属性)
1682
1785
  * @param root
1683
1786
  * @param rootWidth
1684
1787
  * @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-0",
4
+ "version": "4.1.1-11",
5
5
  "description": "FoxUI PAD端组件库",
6
6
  "author": "jiangcheng",
7
7
  "main": "./dist/index.umd.js",
@@ -15,6 +15,10 @@
15
15
  "require": "./dist/index.umd.js"
16
16
  },
17
17
  "./style.css": "./dist/style.css",
18
+ "./locale": {
19
+ "import": "./dist/locale/index.esm.js",
20
+ "require": "./dist/locale/index.umd.js"
21
+ },
18
22
  "./dist/locale": {
19
23
  "import": "./dist/locale/index.esm.js",
20
24
  "require": "./dist/locale/index.umd.js"
@@ -46,6 +50,6 @@
46
50
  "peerDependencies": {
47
51
  "@element-plus/icons-vue": ">=2.3.1",
48
52
  "dayjs": ">=1.0.0",
49
- "element-plus": ">=2.7.6"
53
+ "element-plus": ">=2.9.3"
50
54
  }
51
55
  }