ebig-library 0.0.1

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.
Files changed (128) hide show
  1. package/README.md +964 -0
  2. package/dist/component/audio/audio.d.ts +22 -0
  3. package/dist/component/audio/audio.d.ts.map +1 -0
  4. package/dist/component/button/button.d.ts +32 -0
  5. package/dist/component/button/button.d.ts.map +1 -0
  6. package/dist/component/calendar/calendar.d.ts +27 -0
  7. package/dist/component/calendar/calendar.d.ts.map +1 -0
  8. package/dist/component/carousel/carousel.d.ts +32 -0
  9. package/dist/component/carousel/carousel.d.ts.map +1 -0
  10. package/dist/component/checkbox/checkbox.d.ts +18 -0
  11. package/dist/component/checkbox/checkbox.d.ts.map +1 -0
  12. package/dist/component/ck-editor/ckeditor.d.ts +66 -0
  13. package/dist/component/ck-editor/ckeditor.d.ts.map +1 -0
  14. package/dist/component/color-picker/color-picker.d.ts +22 -0
  15. package/dist/component/color-picker/color-picker.d.ts.map +1 -0
  16. package/dist/component/component-form.d.ts +211 -0
  17. package/dist/component/component-form.d.ts.map +1 -0
  18. package/dist/component/component-status.d.ts +8 -0
  19. package/dist/component/component-status.d.ts.map +1 -0
  20. package/dist/component/date-time-picker/date-time-picker.d.ts +42 -0
  21. package/dist/component/date-time-picker/date-time-picker.d.ts.map +1 -0
  22. package/dist/component/dialog/dialog.d.ts +19 -0
  23. package/dist/component/dialog/dialog.d.ts.map +1 -0
  24. package/dist/component/dropdown/select-dropdown.d.ts +70 -0
  25. package/dist/component/dropdown/select-dropdown.d.ts.map +1 -0
  26. package/dist/component/ebig-editor/ebig-editor.d.ts +41 -0
  27. package/dist/component/ebig-editor/ebig-editor.d.ts.map +1 -0
  28. package/dist/component/empty-page.d.ts +13 -0
  29. package/dist/component/empty-page.d.ts.map +1 -0
  30. package/dist/component/icon/ebig-icon.d.ts +35 -0
  31. package/dist/component/icon/ebig-icon.d.ts.map +1 -0
  32. package/dist/component/icon-picker/icon-picker.d.ts +22 -0
  33. package/dist/component/icon-picker/icon-picker.d.ts.map +1 -0
  34. package/dist/component/icon-picker/iconLibrary.d.ts +12 -0
  35. package/dist/component/icon-picker/iconLibrary.d.ts.map +1 -0
  36. package/dist/component/iframe/iframe.d.ts +23 -0
  37. package/dist/component/iframe/iframe.d.ts.map +1 -0
  38. package/dist/component/import-file/import-file.d.ts +33 -0
  39. package/dist/component/import-file/import-file.d.ts.map +1 -0
  40. package/dist/component/import-file/upload.d.ts +46 -0
  41. package/dist/component/import-file/upload.d.ts.map +1 -0
  42. package/dist/component/infinite-scroll/infinite-scroll.d.ts +16 -0
  43. package/dist/component/infinite-scroll/infinite-scroll.d.ts.map +1 -0
  44. package/dist/component/input-otp/input-otp.d.ts +23 -0
  45. package/dist/component/input-otp/input-otp.d.ts.map +1 -0
  46. package/dist/component/number-picker/number-picker.d.ts +26 -0
  47. package/dist/component/number-picker/number-picker.d.ts.map +1 -0
  48. package/dist/component/pagination/pagination.d.ts +19 -0
  49. package/dist/component/pagination/pagination.d.ts.map +1 -0
  50. package/dist/component/popup/popup.d.ts +40 -0
  51. package/dist/component/popup/popup.d.ts.map +1 -0
  52. package/dist/component/progress-bar/progress-bar.d.ts +19 -0
  53. package/dist/component/progress-bar/progress-bar.d.ts.map +1 -0
  54. package/dist/component/progress-circle/progress-circle.d.ts +18 -0
  55. package/dist/component/progress-circle/progress-circle.d.ts.map +1 -0
  56. package/dist/component/radio-button/radio-button.d.ts +17 -0
  57. package/dist/component/radio-button/radio-button.d.ts.map +1 -0
  58. package/dist/component/rating/rating.d.ts +17 -0
  59. package/dist/component/rating/rating.d.ts.map +1 -0
  60. package/dist/component/slider/slider.d.ts +42 -0
  61. package/dist/component/slider/slider.d.ts.map +1 -0
  62. package/dist/component/switch/switch.d.ts +18 -0
  63. package/dist/component/switch/switch.d.ts.map +1 -0
  64. package/dist/component/tag/tag.d.ts +23 -0
  65. package/dist/component/tag/tag.d.ts.map +1 -0
  66. package/dist/component/text/text.d.ts +14 -0
  67. package/dist/component/text/text.d.ts.map +1 -0
  68. package/dist/component/text-area/text-area.d.ts +31 -0
  69. package/dist/component/text-area/text-area.d.ts.map +1 -0
  70. package/dist/component/text-field/text-field.d.ts +39 -0
  71. package/dist/component/text-field/text-field.d.ts.map +1 -0
  72. package/dist/component/toast-noti/toast-noti.d.ts +9 -0
  73. package/dist/component/toast-noti/toast-noti.d.ts.map +1 -0
  74. package/dist/component/video/video.d.ts +24 -0
  75. package/dist/component/video/video.d.ts.map +1 -0
  76. package/dist/controller/config.d.ts +58 -0
  77. package/dist/controller/config.d.ts.map +1 -0
  78. package/dist/controller/data.d.ts +124 -0
  79. package/dist/controller/data.d.ts.map +1 -0
  80. package/dist/controller/setting.d.ts +56 -0
  81. package/dist/controller/setting.d.ts.map +1 -0
  82. package/dist/controller/utils.d.ts +70 -0
  83. package/dist/controller/utils.d.ts.map +1 -0
  84. package/dist/index.cjs.js +290 -0
  85. package/dist/index.cjs.js.map +1 -0
  86. package/dist/index.d.ts +53 -0
  87. package/dist/index.d.ts.map +1 -0
  88. package/dist/index.es.js +110091 -0
  89. package/dist/index.es.js.map +1 -0
  90. package/dist/language/i18n.d.ts +4 -0
  91. package/dist/language/i18n.d.ts.map +1 -0
  92. package/dist/module/EbigProvider.d.ts +47 -0
  93. package/dist/module/EbigProvider.d.ts.map +1 -0
  94. package/dist/module/card/cardById.d.ts +133 -0
  95. package/dist/module/card/cardById.d.ts.map +1 -0
  96. package/dist/module/card/config.d.ts +5 -0
  97. package/dist/module/card/config.d.ts.map +1 -0
  98. package/dist/module/chart/chartById.d.ts +26 -0
  99. package/dist/module/chart/chartById.d.ts.map +1 -0
  100. package/dist/module/chart/chartByType.d.ts +48 -0
  101. package/dist/module/chart/chartByType.d.ts.map +1 -0
  102. package/dist/module/da.d.ts +147 -0
  103. package/dist/module/da.d.ts.map +1 -0
  104. package/dist/module/form/config.d.ts +19 -0
  105. package/dist/module/form/config.d.ts.map +1 -0
  106. package/dist/module/form/formById.d.ts +72 -0
  107. package/dist/module/form/formById.d.ts.map +1 -0
  108. package/dist/module/page/component-form.d.ts +235 -0
  109. package/dist/module/page/component-form.d.ts.map +1 -0
  110. package/dist/module/page/config.d.ts +15 -0
  111. package/dist/module/page/config.d.ts.map +1 -0
  112. package/dist/module/page/pageById.d.ts +227 -0
  113. package/dist/module/page/pageById.d.ts.map +1 -0
  114. package/dist/module/table/addEditElement.d.ts +40 -0
  115. package/dist/module/table/addEditElement.d.ts.map +1 -0
  116. package/dist/module/table/config.d.ts +42 -0
  117. package/dist/module/table/config.d.ts.map +1 -0
  118. package/dist/module/table/exportXlsx.d.ts +22 -0
  119. package/dist/module/table/exportXlsx.d.ts.map +1 -0
  120. package/dist/module/table/featureElement.d.ts +51 -0
  121. package/dist/module/table/featureElement.d.ts.map +1 -0
  122. package/dist/module/table/tableById.d.ts +187 -0
  123. package/dist/module/table/tableById.d.ts.map +1 -0
  124. package/dist/module/table/tableElement.d.ts +100 -0
  125. package/dist/module/table/tableElement.d.ts.map +1 -0
  126. package/dist/module/view/viewById.d.ts +58 -0
  127. package/dist/module/view/viewById.d.ts.map +1 -0
  128. package/package.json +81 -0
@@ -0,0 +1,70 @@
1
+ export declare class Util {
2
+ static dateTime_stringToDecimal(stringDate: string): number;
3
+ static dateDefault: number;
4
+ static stringToFile: (content: string, fileName: string, type?: string) => File;
5
+ static calculateAge: (birthdate: string) => number;
6
+ static getStringDateNow(): string;
7
+ /** Currency formatter with symbol and locale support */
8
+ static formatCurrency(amount: number | string, currency?: 'VND' | 'USD' | 'JPY' | 'CNY' | 'INR', options?: {
9
+ decimals?: number;
10
+ symbol?: boolean;
11
+ }): string;
12
+ /** Currency converter with exchange rates */
13
+ static convertCurrency(amount: number, fromCurrency: 'VND' | 'USD' | 'JPY' | 'CNY' | 'INR', toCurrency: 'VND' | 'USD' | 'JPY' | 'CNY' | 'INR', rates?: {
14
+ [key: string]: number;
15
+ }): number;
16
+ static stringToDate(_date: string, _format?: string, _delimiter?: string): Date;
17
+ /** date: dd/mm/yyyy | yyyy/mm/dd | dd/mm | mm/yyyy
18
+ time: hh:mm:ss | hh:mm */
19
+ static dateToString(x?: Date, y?: string): string;
20
+ dateDefault: Date;
21
+ /**
22
+ * action with localStorage
23
+ * */
24
+ static setStorage(key: string, value: string): void;
25
+ static getStorage: (key: string) => string | null;
26
+ static clearStorage(): void;
27
+ static removeStorage(key: string): void;
28
+ /**
29
+ * action with sessionStorage, The data is deleted when the browser is closed
30
+ * */
31
+ static setSession(key: string, value: string): void;
32
+ static getSession: (key: string) => string | null;
33
+ static clearSession(): void;
34
+ static removeSession(key: string): void;
35
+ /**
36
+ * action with cookie
37
+ * */
38
+ static setCookie(cname: string, cvalue: number | string, exdays?: number): void;
39
+ static getCookie(cname: string): string;
40
+ static deleteCookie(cname: string): void;
41
+ static clearCookie(exceptCookie?: string[]): void;
42
+ static randomString(length: number): string;
43
+ static decodeJwtResponse(token: string): any;
44
+ static percentToHex: (p: number) => string;
45
+ static hexToPercent: (h: string) => number;
46
+ static hexToRGB(hex: string): string;
47
+ static rgbToHex(rgba: string): string;
48
+ static colorNameToHex(color: string): string;
49
+ static prettyJsonToString(data: {
50
+ [p: string]: any;
51
+ }): string;
52
+ static syntaxHighlight(json: {
53
+ [p: string]: any;
54
+ }): string;
55
+ static generateRandomColor(): string;
56
+ static generateLightColorRgb(): string;
57
+ static generateDarkColorRgb(id?: number | string): string;
58
+ static toSlug(input: string): string;
59
+ static convertToKebabCase: (str: string) => string;
60
+ static kebabToCamelCase: (str: string) => string;
61
+ static timeSince: (dateCreate: number, translate?: (key: string) => string) => string;
62
+ static extractHashtags: (content: string) => [] | RegExpMatchArray;
63
+ static getRandomGradient(seed: string): string;
64
+ static to_vietnamese(number: number | string): string;
65
+ /** start from 1: Ex: 1=A, 2=B, 3=C, ... */
66
+ static numberToAlphabet(n?: number): string;
67
+ }
68
+ export declare function formatNumberConvert(num: number): string;
69
+ export declare const randomGID: () => string;
70
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,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