@fox-js/foxui 4.0.1-7 → 4.0.1-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.
package/dist/style.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @fox-js/foxui-base v4.0.0 Mon Dec 26 2022 11:47:28 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-base v4.0.0 Tue Jan 31 2023 14:18:41 GMT+0800 (中国标准时间)
3
3
  */
4
4
  const t = "";
5
5
  export {
@@ -1,6 +1,5 @@
1
1
  import type { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
- import { clone } from '@fox-js/fox';
4
3
  import { compareTo } from '@fox-js/big-decimal';
5
4
  import type { ComponentCustomProps } from 'vue';
6
5
  import type { ComponentOptionsMixin } from 'vue';
@@ -10,27 +9,11 @@ import { CSSProperties } from 'vue';
10
9
  import type { DefineComponent } from 'vue';
11
10
  import { divide } from '@fox-js/big-decimal';
12
11
  import { ExecuteValidator } from '@fox-js/validator';
13
- import { extend } from '@fox-js/fox';
14
- import { isArray } from '@fox-js/fox';
15
- import { isDate } from '@fox-js/fox';
16
- import { isEqual } from '@fox-js/fox';
17
- import { isESModule } from '@fox-js/fox';
18
- import { isFunction } from '@fox-js/fox';
19
- import { isMap } from '@fox-js/fox';
20
- import { isObject } from '@fox-js/fox';
21
- import { isPlainObject } from '@fox-js/fox';
22
- import { isPromise } from '@fox-js/fox';
23
- import { isSet } from '@fox-js/fox';
24
- import { isString } from '@fox-js/fox';
25
- import { isSymbol } from '@fox-js/fox';
26
12
  import type { MethodOptions } from 'vue';
27
13
  import { multiply } from '@fox-js/big-decimal';
28
14
  import { negate } from '@fox-js/big-decimal';
29
15
  import { numberFormat } from '@fox-js/big-decimal';
30
16
  import { Rule } from '@fox-js/validator';
31
- import { toBoolean } from '@fox-js/fox';
32
- import { toNumber } from '@fox-js/fox';
33
- import { toTypeString } from '@fox-js/fox';
34
17
  import { unNumberFormat } from '@fox-js/big-decimal';
35
18
  import { ValidateResult } from '@fox-js/validator';
36
19
  import { VNode } from 'vue';
@@ -106,7 +89,7 @@ export declare const CircleProgress: DefineComponent<unknown, object, {}, Comput
106
89
 
107
90
  export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
108
91
 
109
- export { clone }
92
+ export declare function clone(target: any, source: any, plain?: boolean): any;
110
93
 
111
94
  export declare const Col: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
112
95
 
@@ -248,7 +231,7 @@ export declare const Empty: DefineComponent<unknown, object, {}, ComputedOptions
248
231
 
249
232
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
250
233
 
251
- export { extend }
234
+ export declare function extend(...args: any[]): any;
252
235
 
253
236
  export declare const FixedNav: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
254
237
 
@@ -286,6 +269,7 @@ declare class FoxUIApp implements FoxUI {
286
269
  }
287
270
 
288
271
  declare interface FoxUIOptions {
272
+ install?: boolean;
289
273
  headerBarHeight?: number;
290
274
  footerBarHeight?: number;
291
275
  safeAreaInset?: SafeAreaInset;
@@ -314,6 +298,8 @@ declare interface GroupLayout {
314
298
  gutter: number;
315
299
  }
316
300
 
301
+ export declare const hasSymbol: boolean;
302
+
317
303
  export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
318
304
 
319
305
  export declare const hinttext: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
@@ -361,37 +347,41 @@ export declare const InputNumber: DefineComponent<unknown, object, {}, ComputedO
361
347
 
362
348
  export declare function integerLength(value: string | number): number;
363
349
 
364
- export { isArray }
350
+ export declare const isArray: (arg: any) => arg is any[];
351
+
352
+ export declare function isArrayLike(obj: any): boolean;
365
353
 
366
354
  export declare const isBrowser: boolean;
367
355
 
368
- export { isDate }
356
+ export declare const isDate: (val: unknown) => val is Date;
369
357
 
370
358
  export declare const isEmptyString: (v: unknown) => boolean;
371
359
 
372
- export { isEqual }
360
+ export declare function isEqual(x: any, y: any): boolean;
373
361
 
374
- export { isESModule }
362
+ export declare function isESModule(obj: any): obj is Object;
375
363
 
376
- export { isFunction }
364
+ export declare const isFunction: (val: unknown) => val is Function;
377
365
 
378
- export { isMap }
366
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
379
367
 
380
368
  export declare function isNumberString(value: string): boolean;
381
369
 
382
- export { isObject }
370
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
383
371
 
384
- export { isPlainObject }
372
+ export declare const isPlainObject: (val: unknown) => val is object;
385
373
 
386
- export { isPromise }
374
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
387
375
 
388
376
  export declare function isRegExp(v: unknown): v is RegExp;
389
377
 
390
- export { isSet }
378
+ export declare const isSet: (val: unknown) => val is Set<any>;
391
379
 
392
- export { isString }
380
+ export declare const isString: (val: unknown) => val is string;
393
381
 
394
- export { isSymbol }
382
+ export declare const isSymbol: (val: unknown) => val is symbol;
383
+
384
+ export declare function isWindow(obj: any): boolean;
395
385
 
396
386
  export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
397
387
 
@@ -403,6 +393,8 @@ export declare const LinkItem: DefineComponent<unknown, object, {}, ComputedOpti
403
393
 
404
394
  export declare const List: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
405
395
 
396
+ export declare function makeArray(arr: any, results?: any[]): any[];
397
+
406
398
  declare interface Matched {
407
399
  name?: string | RegExp | {
408
400
  (name: string): boolean;
@@ -415,6 +407,8 @@ export declare const Menu: DefineComponent<unknown, object, {}, ComputedOptions,
415
407
 
416
408
  export declare const MenuItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
417
409
 
410
+ export declare function merge(first: any[], second: any[]): any[];
411
+
418
412
  export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
419
413
 
420
414
  export { multiply }
@@ -423,6 +417,10 @@ export declare const Navbar: DefineComponent<unknown, object, {}, ComputedOption
423
417
 
424
418
  export { negate }
425
419
 
420
+ export declare function nextTick(fn: {
421
+ (...args: any[]): void;
422
+ }, ...args: any[]): void;
423
+
426
424
  export declare const NoticeBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
427
425
 
428
426
  export declare const Notify: {
@@ -439,6 +437,8 @@ export { numberFormat }
439
437
 
440
438
  export declare const NumberKeyboard: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
441
439
 
440
+ export declare const objectToString: () => string;
441
+
442
442
  export declare const OverLay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
443
443
 
444
444
  declare interface Padding {
@@ -579,14 +579,16 @@ export declare const Toast: {
579
579
  install(app: any): void;
580
580
  };
581
581
 
582
- export { toBoolean }
582
+ export declare function toBoolean(val: unknown): boolean;
583
583
 
584
- export { toNumber }
584
+ export declare function toNumber(val: unknown): number;
585
585
 
586
- export { toTypeString }
586
+ export declare const toTypeString: (value: unknown) => string;
587
587
 
588
588
  export declare const TrendArrow: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
589
589
 
590
+ export declare function typeOf(obj: any): string;
591
+
590
592
  export declare class UniqueID {
591
593
  private seed;
592
594
  constructor(seed?: number);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fox-js/foxui",
3
- "version": "4.0.1-7",
3
+ "version": "4.0.1-9",
4
4
  "description": "FoxUI轻量级移动端组件库(支持小程序开发)",
5
5
  "author": "jiangcheng",
6
6
  "main": "dist/index.umd.js",
@@ -13,12 +13,12 @@
13
13
  "./style.css": "./dist/style.css",
14
14
  "./dist/locale": {
15
15
  "import": {
16
- "node": "./dist/locale/index.cjs.js",
16
+ "node": "./dist/locale/index.esm.js",
17
17
  "default": "./dist/locale/index.esm.js"
18
18
  },
19
19
  "require": {
20
- "node": "./dist/locale/index.cjs.js",
21
- "default": "./dist/locale/index.cjs.js"
20
+ "node": "./dist/locale/index.umd.js",
21
+ "default": "./dist/locale/index.umd.js"
22
22
  }
23
23
  }
24
24
  },
@@ -1,3 +0,0 @@
1
- "use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Mon Dec 26 2022 11:45:35 GMT+0800 (中国标准时间)
3
- */const u={save:"\u4FDD\u5B58",noData:"\u6682\u65E0\u6570\u636E",confirmText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",clearText:"\u6E05\u9664",defaultText:"\u9ED8\u8BA4",placeholder:"\u8BF7\u8F93\u5165",select:"\u8BF7\u9009\u62E9",dateUnit:{day:"\u65E5",year:"\u5E74",month:"\u6708",hour:"\u65F6",minute:"\u5206",seconds:"\u79D2"},video:{errorTip:"\u89C6\u9891\u52A0\u8F7D\u5931\u8D25",clickRetry:"\u70B9\u51FB\u91CD\u8BD5"},fixednav:{activeText:"\u6536\u8D77\u5BFC\u822A",unActiveText:"\u5FEB\u901F\u5BFC\u822A"},pagination:{prevText:"\u4E0A\u4E00\u9875",nextText:"\u4E0B\u4E00\u9875"},calendarpane:{weekdays:JSON.stringify(["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]),endText:"\u7ED3\u675F",startText:"\u5F00\u59CB",title:"\u65E5\u5386\u9009\u62E9",monthTitle:"{year}\u5E74{month}\u6708",today:"\u4ECA\u5929"},shortpassword:{title:"\u8BF7\u8F93\u5165\u5BC6\u7801",desc:"\u60A8\u4F7F\u7528\u4E86\u865A\u62DF\u8D44\u4EA7\uFF0C\u8BF7\u8FDB\u884C\u9A8C\u8BC1",tips:"\u5FD8\u8BB0\u5BC6\u7801"},uploader:{ready:"\u51C6\u5907\u5B8C\u6210",readyUpload:"\u51C6\u5907\u4E0A\u4F20",waitingUpload:"\u7B49\u5F85\u4E0A\u4F20",uploading:"\u4E0A\u4F20\u4E2D",success:"\u4E0A\u4F20\u6210\u529F",error:"\u4E0A\u4F20\u5931\u8D25"},countdown:{day:"\u5929",hour:"\u65F6",minute:"\u5206",second:"\u79D2"},empty:{description:"\u6682\u65E0\u6570\u636E"},address:{selectRegion:"\u8BF7\u9009\u62E9\u6240\u5728\u5730\u533A",deliveryTo:"\u914D\u9001\u81F3",chooseAnotherAddress:"\u9009\u62E9\u5176\u4ED6\u5730\u5740"},signature:{reSign:"\u91CD\u7B7E",unSupportTpl:"\u5BF9\u4E0D\u8D77\uFF0C\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301Canvas\uFF0C\u65E0\u6CD5\u4F7F\u7528\u672C\u63A7\u4EF6\uFF01"},ecard:{chooseText:"\u8BF7\u9009\u62E9\u7535\u5B50\u5361\u9762\u503C",otherValueText:"\u5176\u4ED6\u9762\u503C",placeholder:"\u8BF7\u8F93\u51651-5000\u6574\u6570"},timeselect:{title:"\u53D6\u4EF6\u65F6\u95F4"},sku:{buyText:"\u7ACB\u5373\u8D2D\u4E70",stepperTitle:"\u8D2D\u4E70\u6570\u91CF",addCartText:"\u52A0\u5165\u8D2D\u7269\u8F66"},skuheader:{idText:"\u5546\u54C1\u7F16\u53F7"},addresslist:{addAddress:"\u65B0\u5EFA\u5730\u5740"},comment:{complaintsText:"\u6211\u8981\u6295\u8BC9",additionalReview:"\u8D2D\u4E70{0}\u5929\u540E\u8FFD\u8BC4",additionalImages:"{0}\u5F20\u8FFD\u8BC4\u56FE\u7247"},infiniteloading:{loading:"\u52A0\u8F7D\u4E2D...",pullTxt:"\u677E\u5F00\u5237\u65B0",loadMoreTxt:"\u54CE\u5440\uFF0C\u8FD9\u91CC\u662F\u5E95\u90E8\u4E86\u5566"},datepicker:{year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u65F6",min:"\u5206",seconds:"\u79D2"},audiooperate:{back:"\u5012\u9000",start:"\u5F00\u59CB",pause:"\u6682\u505C",forward:"\u5FEB\u8FDB",mute:"\u9759\u97F3"},picker:{title:"\u8BF7\u9009\u62E9"},pickeritem:{placeholder:"\u8BF7\u9009\u62E9"},dateitem:{placeholder:"\u8BF7\u9009\u62E9"},cascaderitem:{placeholder:"\u8BF7\u9009\u62E9"},calendaritem:{placeholder:"\u8BF7\u9009\u62E9"},numberkeyboard:{confirmText:"\u5B8C\u6210"}},e={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",min:"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"}},t={save:"\u4FDD\u5B58",noData:"\u66AB\u7121\u6578\u64DA",confirmText:"\u78BA\u8A8D",cancelText:"\u53D6\u6D88",clearText:"\u6E05\u9664",defaultText:"\u9ED8\u8BA4",placeholder:"\u8ACB\u8F38\u5165",select:"\u8ACB\u9078\u64C7",dateUnit:{day:"\u65E5",year:"\u5E74",month:"\u6708",hour:"\u65F6",minute:"\u5206",seconds:"\u79D2"},video:{errorTip:"\u8996\u983B\u52A0\u8F09\u5931\u6557",clickRetry:"\u9EDE\u64CA\u91CD\u8A66"},fixednav:{activeText:"\u6536\u8D77\u5C0E\u822A",unActiveText:"\u5FEB\u901F\u5C0E\u822A"},pagination:{prevText:"\u4E0A\u4E00\u9801",nextText:"\u4E0B\u4E00\u9801"},calendarpane:{weekdays:JSON.stringify(["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]),endText:"\u7D50\u675F",startText:"\u958B\u59CB",title:"\u884C\u4E8B\u66C6\u9078\u64C7",monthTitle:"{year}\u5E74{month}\u6708",today:"\u4ECA\u5929"},shortpassword:{title:"\u8ACB\u8F38\u5165\u5BC6\u78BC",desc:"\u60A8\u4F7F\u7528\u4E86\u865B\u64EC\u8CC7\u7522,\u8ACB\u9032\u884C\u9A57\u8B49",tips:"\u5FD8\u8A18\u5BC6\u78BC"},uploader:{ready:"\u6E96\u5099\u5B8C\u6210",readyUpload:"\u6E96\u5099\u4E0A\u50B3",waitingUpload:"\u7B49\u5F85\u4E0A\u50B3",uploading:"\u4E0A\u50B3\u4E2D",success:"\u4E0A\u50B3\u6210\u529F",error:"\u4E0A\u50B3\u5931\u6557"},countdown:{day:"\u5929",hour:"\u6642",minute:"\u5206",second:"\u79D2"},empty:{description:"\u66AB\u7121\u6578\u64DA"},address:{selectRegion:"\u8ACB\u9078\u64C7\u6240\u5728\u5730\u5340",deliveryTo:"\u914D\u9001\u81F3",chooseAnotherAddress:"\u9078\u64C7\u5176\u4ED6\u5730\u5740"},signature:{reSign:"\u91CD\u7C3D",unSupportTpl:"\u5C0D\u4E0D\u8D77,\u7576\u524D\u700F\u89BD\u5668\u4E0D\u652F\u6301Canvas,\u7121\u6CD5\u4F7F\u7528\u672C\u63A7\u5236\u9805\uFF01"},ecard:{chooseText:"\u8ACB\u9078\u64C7\u96FB\u5B50\u5361\u9762\u503C",otherValueText:"\u5176\u4ED6\u9762\u503C",placeholder:"\u8ACB\u8F38\u51651-5000\u6574\u6578"},timeselect:{title:"\u53D6\u4EF6\u6642\u9593"},sku:{buyText:"\u7ACB\u5373\u8CFC\u8CB7",stepperTitle:"\u8CFC\u8CB7\u6578\u91CF",addCartText:"\u52A0\u5165\u8CFC\u7269\u8ECA"},skuheader:{idText:"\u5546\u54C1\u7DE8\u865F"},addresslist:{addAddress:"\u65B0\u5EFA\u5730\u5740"},comment:{complaintsText:"\u6211\u8981\u6295\u8A34",additionalReview:"\u8CFC\u8CB7{0}\u5929\u5F8C\u8FFD\u8A55",additionalImages:"{0}\u5F35\u8FFD\u8A55\u5716\u7247"},infiniteloading:{loading:"\u52A0\u8F09\u4E2D...",pullTxt:"\u9B06\u958B\u5237\u65B0",loadMoreTxt:"\u54CE\u5440\uFF0C\u9019\u88E1\u662F\u5E95\u90E8\u4E86\u5566"},datepicker:{year:"\u5E74",month:"\u6708",day:"\u65E5",hour:"\u6642",min:"\u5206",seconds:"\u79D2"},audiooperate:{back:"\u5012\u9000",start:"\u958B\u59CB",pause:"\u66AB\u505C",forward:"\u5FEB\u9032",mute:"\u975C\u97F3"},picker:{title:"\u8ACB\u9078\u64C7"},pickeritem:{placeholder:"\u8ACB\u9078\u64C7"},dateitem:{placeholder:"\u8ACB\u9078\u64C7"},cascaderitem:{placeholder:"\u8ACB\u9078\u64C7"},calendaritem:{placeholder:"\u8ACB\u9078\u64C7"},numberkeyboard:{confirmText:"\u5B8C\u6210"}},a={zh_CN:{...u},en_US:{...e},zh_TW:{...t}};module.exports=a;