@nano-lib/util 1.0.11 → 1.0.13

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,6 +1,22 @@
1
1
  declare const dateFormats: readonly [readonly ["date", "YYYY-MM-DD"], readonly ["daterange", "YYYY-MM-DD"], readonly ["datetime", "YYYY-MM-DD HH:mm:ss"], readonly ["datetimerange", "YYYY-MM-DD HH:mm:ss"], readonly ["month", "YYYY-MM"], readonly ["monthrange", "YYYY-MM"], readonly ["year", "YYYY"], readonly ["yearrange", "YYYY"], readonly ["time", "HH:mm:ss"]];
2
2
  export type DateFormat = (typeof dateFormats)[number][1];
3
3
  export declare const DATE_VALUE_FORMAT: Map<string, DateFormat>;
4
+ export declare const OPERATE_STATE: {
5
+ readonly view: "查看";
6
+ readonly add: "添加";
7
+ readonly edit: "编辑";
8
+ readonly del: "删除";
9
+ readonly save: "保存";
10
+ readonly reset: "重置";
11
+ readonly close: "关闭";
12
+ readonly confirm: "确定";
13
+ readonly submit: "提交";
14
+ readonly cancel: "取消";
15
+ readonly success: "成功";
16
+ readonly fail: "失败";
17
+ readonly open: "启用";
18
+ readonly disable: "禁用";
19
+ };
4
20
  export declare const IMAGE_TYPE: string[];
5
21
  export declare const MEDIA_TYPE: string[];
6
22
  export declare const DOC_TYPE: string[];
package/lib/index.d.ts CHANGED
@@ -5,10 +5,26 @@ import { addClass, removeClass, hasClass, toggleClass, noContextmenu, useRafThro
5
5
  import { encodeURIToParams, paramsToQueryString, queryStringToParams, errorCodeToString, YNToString, HNToString, valueToLabel, chargeToLabel, cascaderToLabel, multipleSelectToLabel, phoneToAsterisk, idNumberToAsterisk, firstLetterToUpperCase, firstLetterToLowerCase } from './utils/to';
6
6
  import { validHttp, validExternal, validString, validNumberStr, validEmptyObject, validURL, validPassword, validEmail, validIdNumber, validPhone, validTel } from './utils/valid';
7
7
  export { addResizeListener, removeResizeListener } from './utils/event';
8
- export { loadFaceModels, faceapiLivingEvent, faceapiLivingEventHint, getFaceGestureResult, getFaceLandmarks, getFaceVideoFrame } from './utils/face';
8
+ export { faceLivingEvent, faceLivingEventHint, getFaceGestureResult, getFaceVideoFrame } from './utils/face';
9
9
  export { NOOP, debounce, sleep, countdownTimer, creatCancelTask, downloadFile, getRandomItemInArray, getFullUrl, getArrayFullUrl, getGenderByIdNumber, getBirthdayByIdNumber, getPercentage, trimArray, loadCss, loadJs } from './utils/common';
10
10
  export declare const CONSTANTS: {
11
11
  DATE_VALUE_FORMAT: Map<string, "YYYY-MM-DD" | "YYYY-MM-DD HH:mm:ss" | "YYYY-MM" | "YYYY" | "HH:mm:ss">;
12
+ OPERATE_STATE: {
13
+ readonly view: "查看";
14
+ readonly add: "添加";
15
+ readonly edit: "编辑";
16
+ readonly del: "删除";
17
+ readonly save: "保存";
18
+ readonly reset: "重置";
19
+ readonly close: "关闭";
20
+ readonly confirm: "确定";
21
+ readonly submit: "提交";
22
+ readonly cancel: "取消";
23
+ readonly success: "成功";
24
+ readonly fail: "失败";
25
+ readonly open: "启用";
26
+ readonly disable: "禁用";
27
+ };
12
28
  IMAGE_TYPE: string[];
13
29
  MEDIA_TYPE: string[];
14
30
  DOC_TYPE: string[];