@yelon/util 18.2.0 → 19.0.0

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 (166) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -1
  3. package/browser/cookie.service.d.ts +1 -3
  4. package/browser/style.d.ts +1 -3
  5. package/config/abc/date-picker.type.d.ts +2 -5
  6. package/config/abc/exception.type.d.ts +5 -7
  7. package/config/abc/loading.type.d.ts +1 -3
  8. package/config/abc/media.type.d.ts +1 -2
  9. package/config/abc/st.type.d.ts +11 -18
  10. package/config/acl/acl.type.d.ts +1 -2
  11. package/config/chart/chart.type.d.ts +1 -4
  12. package/config/config.service.d.ts +5 -4
  13. package/config/sf/sf.type.d.ts +3 -6
  14. package/config/theme/responsive.type.d.ts +8 -10
  15. package/date-time/time.d.ts +1 -2
  16. package/decorator/convert.d.ts +2 -3
  17. package/fesm2022/array.mjs +4 -4
  18. package/fesm2022/array.mjs.map +1 -1
  19. package/fesm2022/browser.mjs +13 -16
  20. package/fesm2022/browser.mjs.map +1 -1
  21. package/fesm2022/config.mjs +33 -18
  22. package/fesm2022/config.mjs.map +1 -1
  23. package/fesm2022/date-time.mjs +1 -1
  24. package/fesm2022/date-time.mjs.map +1 -1
  25. package/fesm2022/decorator.mjs.map +1 -1
  26. package/fesm2022/form.mjs.map +1 -1
  27. package/fesm2022/format.mjs +9 -7
  28. package/fesm2022/format.mjs.map +1 -1
  29. package/fesm2022/math.mjs.map +1 -1
  30. package/fesm2022/mcache.mjs.map +1 -1
  31. package/fesm2022/mtypes.mjs +4 -5
  32. package/fesm2022/mtypes.mjs.map +1 -1
  33. package/fesm2022/other.mjs +14 -17
  34. package/fesm2022/other.mjs.map +1 -1
  35. package/fesm2022/pipe-currency.mjs +20 -26
  36. package/fesm2022/pipe-currency.mjs.map +1 -1
  37. package/fesm2022/pipe-filter.mjs +8 -8
  38. package/fesm2022/pipe-filter.mjs.map +1 -1
  39. package/fesm2022/pipe-format.mjs +8 -8
  40. package/fesm2022/pipe-format.mjs.map +1 -1
  41. package/fesm2022/token.mjs.map +1 -1
  42. package/format/string.d.ts +3 -6
  43. package/mtypes/header-menu.type.d.ts +2 -3
  44. package/mtypes/menu.type.d.ts +5 -6
  45. package/mtypes/page.d.ts +1 -2
  46. package/other/deep.d.ts +4 -7
  47. package/other/lazy.service.d.ts +2 -5
  48. package/other/logger.d.ts +3 -4
  49. package/other/path-to-regexp.service.d.ts +11 -12
  50. package/package.json +12 -46
  51. package/pipes/filter/filter.pipe.d.ts +1 -2
  52. package/esm2022/array/array-type.service.mjs +0 -2
  53. package/esm2022/array/array.mjs +0 -5
  54. package/esm2022/array/array.service.mjs +0 -278
  55. package/esm2022/array/index.mjs +0 -3
  56. package/esm2022/browser/browser.mjs +0 -5
  57. package/esm2022/browser/cookie.service.mjs +0 -100
  58. package/esm2022/browser/copy.mjs +0 -28
  59. package/esm2022/browser/index.mjs +0 -6
  60. package/esm2022/browser/is-empty.mjs +0 -19
  61. package/esm2022/browser/scroll.service.mjs +0 -85
  62. package/esm2022/browser/style.mjs +0 -38
  63. package/esm2022/config/abc/cell.type.mjs +0 -2
  64. package/esm2022/config/abc/date-picker.type.mjs +0 -2
  65. package/esm2022/config/abc/error-collect.type.mjs +0 -2
  66. package/esm2022/config/abc/exception.type.mjs +0 -2
  67. package/esm2022/config/abc/image.type.mjs +0 -2
  68. package/esm2022/config/abc/index.mjs +0 -18
  69. package/esm2022/config/abc/loading.type.mjs +0 -2
  70. package/esm2022/config/abc/lodop.type.mjs +0 -2
  71. package/esm2022/config/abc/media.type.mjs +0 -2
  72. package/esm2022/config/abc/onboarding.type.mjs +0 -2
  73. package/esm2022/config/abc/page-header.type.mjs +0 -2
  74. package/esm2022/config/abc/pdf.type.mjs +0 -2
  75. package/esm2022/config/abc/se.type.mjs +0 -2
  76. package/esm2022/config/abc/sg.type.mjs +0 -2
  77. package/esm2022/config/abc/st.type.mjs +0 -2
  78. package/esm2022/config/abc/sv.type.mjs +0 -3
  79. package/esm2022/config/abc/xlsx.type.mjs +0 -2
  80. package/esm2022/config/abc/zip.type.mjs +0 -2
  81. package/esm2022/config/acl/acl.type.mjs +0 -2
  82. package/esm2022/config/auth/auth.type.mjs +0 -2
  83. package/esm2022/config/bis/bis.type.mjs +0 -2
  84. package/esm2022/config/cache/cache.type.mjs +0 -2
  85. package/esm2022/config/chart/chart.type.mjs +0 -2
  86. package/esm2022/config/config.mjs +0 -5
  87. package/esm2022/config/config.service.mjs +0 -38
  88. package/esm2022/config/config.types.mjs +0 -12
  89. package/esm2022/config/index.mjs +0 -15
  90. package/esm2022/config/mock/mock.type.mjs +0 -2
  91. package/esm2022/config/sf/sf.type.mjs +0 -2
  92. package/esm2022/config/socket/socket.type.mjs +0 -2
  93. package/esm2022/config/theme/http.type.mjs +0 -2
  94. package/esm2022/config/theme/i18n.type.mjs +0 -2
  95. package/esm2022/config/theme/index.mjs +0 -5
  96. package/esm2022/config/theme/pipe.type.mjs +0 -2
  97. package/esm2022/config/theme/responsive.type.mjs +0 -2
  98. package/esm2022/config/util/array.type.mjs +0 -2
  99. package/esm2022/config/util/currency.type.mjs +0 -2
  100. package/esm2022/date-time/date-time.mjs +0 -5
  101. package/esm2022/date-time/index.mjs +0 -3
  102. package/esm2022/date-time/picker.mjs +0 -116
  103. package/esm2022/date-time/time.mjs +0 -103
  104. package/esm2022/decorator/convert.mjs +0 -66
  105. package/esm2022/decorator/decorator.mjs +0 -5
  106. package/esm2022/decorator/index.mjs +0 -3
  107. package/esm2022/decorator/zone-outside.mjs +0 -57
  108. package/esm2022/form/form.mjs +0 -5
  109. package/esm2022/form/index.mjs +0 -3
  110. package/esm2022/form/match-control.mjs +0 -30
  111. package/esm2022/form/validators.mjs +0 -81
  112. package/esm2022/format/currency.service.mjs +0 -233
  113. package/esm2022/format/currency.types.mjs +0 -8
  114. package/esm2022/format/format.mjs +0 -5
  115. package/esm2022/format/index.mjs +0 -5
  116. package/esm2022/format/string.mjs +0 -85
  117. package/esm2022/format/validate.mjs +0 -94
  118. package/esm2022/index.mjs +0 -14
  119. package/esm2022/math/in-range.mjs +0 -25
  120. package/esm2022/math/index.mjs +0 -3
  121. package/esm2022/math/math.mjs +0 -5
  122. package/esm2022/math/round.mjs +0 -53
  123. package/esm2022/mcache/index.mjs +0 -2
  124. package/esm2022/mcache/localStorageUtils.mjs +0 -60
  125. package/esm2022/mcache/mcache.mjs +0 -5
  126. package/esm2022/mtypes/authority.type.mjs +0 -2
  127. package/esm2022/mtypes/header-menu.type.mjs +0 -2
  128. package/esm2022/mtypes/index.mjs +0 -10
  129. package/esm2022/mtypes/menu.type.mjs +0 -2
  130. package/esm2022/mtypes/mtypes.mjs +0 -5
  131. package/esm2022/mtypes/nav.types.mjs +0 -9
  132. package/esm2022/mtypes/page.mjs +0 -42
  133. package/esm2022/mtypes/project-info.types.mjs +0 -2
  134. package/esm2022/mtypes/response.mjs +0 -2
  135. package/esm2022/mtypes/role.type.mjs +0 -2
  136. package/esm2022/mtypes/user.types.mjs +0 -2
  137. package/esm2022/other/assert.mjs +0 -67
  138. package/esm2022/other/deep.mjs +0 -78
  139. package/esm2022/other/favicon.mjs +0 -29
  140. package/esm2022/other/index.mjs +0 -8
  141. package/esm2022/other/lazy.service.mjs +0 -129
  142. package/esm2022/other/logger.mjs +0 -33
  143. package/esm2022/other/other.mjs +0 -5
  144. package/esm2022/other/path-to-regexp.service.mjs +0 -239
  145. package/esm2022/other/resize.mjs +0 -4
  146. package/esm2022/pipes/currency/cny.pipe.mjs +0 -23
  147. package/esm2022/pipes/currency/index.mjs +0 -5
  148. package/esm2022/pipes/currency/mega.pipe.mjs +0 -25
  149. package/esm2022/pipes/currency/module.mjs +0 -19
  150. package/esm2022/pipes/currency/pipe-currency.mjs +0 -5
  151. package/esm2022/pipes/currency/price.pipe.mjs +0 -27
  152. package/esm2022/pipes/filter/filter.pipe.mjs +0 -20
  153. package/esm2022/pipes/filter/index.mjs +0 -3
  154. package/esm2022/pipes/filter/module.mjs +0 -17
  155. package/esm2022/pipes/filter/pipe-filter.mjs +0 -5
  156. package/esm2022/pipes/format/index.mjs +0 -3
  157. package/esm2022/pipes/format/mask.pipe.mjs +0 -34
  158. package/esm2022/pipes/format/module.mjs +0 -17
  159. package/esm2022/pipes/format/pipe-format.mjs +0 -5
  160. package/esm2022/pipes/index.mjs +0 -4
  161. package/esm2022/pipes/pipes.mjs +0 -5
  162. package/esm2022/token/index.mjs +0 -3
  163. package/esm2022/token/page-visibility.mjs +0 -15
  164. package/esm2022/token/token.mjs +0 -5
  165. package/esm2022/token/window.mjs +0 -17
  166. package/esm2022/yelon-util.mjs +0 -5
@@ -1,60 +0,0 @@
1
- export const YZ_USER_KEY = '_yz_user';
2
- export const YZ_PROJECT_INFO_KEY = '_yz_project_info';
3
- export const YZ_CURRENT_KEY = '_yz_current';
4
- export const YZ_HEADER_KEY = '_yz_header';
5
- export const YZ_HEADER_TYPE_KEY = '_yz_header_type';
6
- export const YZ_DEFAULT_ROUTE_KEY = '_yz_default_route';
7
- export const YZ_TENANT_KEY = '_yz_tenant';
8
- export const YZ_NEED_AUTH_KEY = '_yz_need_auth';
9
- // export const YZ_LANGS_KEY = '_yz_langs';
10
- // export const YZ_LANG_KEY = '_yz_lang';
11
- function get(key) {
12
- if (key === YZ_HEADER_TYPE_KEY) {
13
- return localStorage.getItem(key);
14
- }
15
- const item = localStorage.getItem(key);
16
- return item ? JSON.parse(item) : null;
17
- }
18
- function set(key, data) {
19
- if (key === YZ_HEADER_TYPE_KEY) {
20
- localStorage.setItem(YZ_HEADER_TYPE_KEY, data);
21
- return;
22
- }
23
- localStorage.setItem(key, JSON.stringify(data));
24
- }
25
- export function useLocalStorageUser() {
26
- const setFn = user => set(YZ_USER_KEY, user);
27
- const getFn = () => get(YZ_USER_KEY);
28
- return [setFn, getFn];
29
- }
30
- export function useLocalStorageProjectInfo() {
31
- const setFn = data => set(YZ_PROJECT_INFO_KEY, data);
32
- const getFn = () => get(YZ_PROJECT_INFO_KEY);
33
- return [setFn, getFn];
34
- }
35
- export function useLocalStorageCurrent() {
36
- const setFn = data => set(YZ_CURRENT_KEY, data);
37
- const getFn = () => get(YZ_CURRENT_KEY);
38
- return [setFn, getFn];
39
- }
40
- export function useLocalStorageHeaderType() {
41
- const setFn = data => set(YZ_HEADER_TYPE_KEY, data);
42
- const getFn = () => get(YZ_HEADER_TYPE_KEY);
43
- return [setFn, getFn];
44
- }
45
- export function useLocalStorageHeader() {
46
- const setFn = data => set(YZ_HEADER_KEY, data);
47
- const getFn = () => get(YZ_HEADER_KEY);
48
- return [setFn, getFn];
49
- }
50
- export function useLocalStorageDefaultRoute() {
51
- const setFn = data => set(YZ_DEFAULT_ROUTE_KEY, data);
52
- const getFn = () => get(YZ_DEFAULT_ROUTE_KEY);
53
- return [setFn, getFn];
54
- }
55
- export function useLocalStorageTenant() {
56
- const setFn = data => set(YZ_TENANT_KEY, data);
57
- const getFn = () => get(YZ_TENANT_KEY);
58
- return [setFn, getFn];
59
- }
60
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxTdG9yYWdlVXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL21jYWNoZS9sb2NhbFN0b3JhZ2VVdGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxNQUFNLENBQUMsTUFBTSxXQUFXLEdBQUcsVUFBVSxDQUFDO0FBQ3RDLE1BQU0sQ0FBQyxNQUFNLG1CQUFtQixHQUFHLGtCQUFrQixDQUFDO0FBQ3RELE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxhQUFhLENBQUM7QUFDNUMsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLFlBQVksQ0FBQztBQUMxQyxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxpQkFBaUIsQ0FBQztBQUNwRCxNQUF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pTmF2VG9waWNbXT4oWVpfSEVBREVSX0tFWSk7XG4gIHJldHVybiBbc2V0Rm4sIGdldEZuXTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHVzZUxvY2FsU3RvcmFnZURlZmF1bHRSb3V0ZSgpOiBbcmV0dXJuU2V0PHN0cmluZz4sIHJldHVybkdldDxzdHJpbmc+XSB7XG4gIGNvbnN0IHNldEZuOiByZXR1cm5TZXQ8c3RyaW5nPiA9IGRhdGEgPT4gc2V0KFlaX0RFRkFVTFRfUk9VVEVfS0VZLCBkYXRhKTtcbiAgY29uc3QgZ2V0Rm46IHJldHVybkdldDxzdHJpbmc+ID0gKCkgPT4gZ2V0PHN0cmluZz4oWVpfREVGQVVMVF9ST1VURV9LRVkpO1xuICByZXR1cm4gW3NldEZuLCBnZXRGbl07XG59XG5cbmV4cG9ydCBmdW5jdGlvbiB1c2VMb2NhbFN0b3JhZ2VUZW5hbnQoKTogW3JldHVyblNldDxzdHJpbmc+LCByZXR1cm5HZXQ8c3RyaW5nPl0ge1xuICBjb25zdCBzZXRGbjogcmV0dXJuU2V0PHN0cmluZz4gPSBkYXRhID0+IHNldChZWl9URU5BTlRfS0VZLCBkYXRhKTtcbiAgY29uc3QgZ2V0Rm46IHJldHVybkdldDxzdHJpbmc+ID0gKCkgPT4gZ2V0PHN0cmluZz4oWVpfVEVOQU5UX0tFWSk7XG4gIHJldHVybiBbc2V0Rm4sIGdldEZuXTtcbn1cbiJdfQ==
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWNhY2hlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tY2FjaGUvbWNhY2hlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aG9yaXR5LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL210eXBlcy9hdXRob3JpdHkudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBZdW56YWlBdXRob3JpdHkge1xuICBhdXRob3JpdHk6IHN0cmluZztcbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGVyLW1lbnUudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvbXR5cGVzL2hlYWRlci1tZW51LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE56U2FmZUFueSB9IGZyb20gJ25nLXpvcnJvLWFudGQvY29yZS90eXBlcyc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgWXVuemFpTmF2VG9waWMge1xuICAvLyDmianlsZXpoblcbiAgYXR0cmlidXRlOiBOelNhZmVBbnk7XG4gIC8vIOWbvuagh1xuICBpY29uOiBOelNhZmVBbnk7XG4gIC8vIOWtkOiPnOWNlVxuICBjaGlsZHJlbjogWXVuemFpTmF2VG9waWNbXTtcbiAgLy8g5o+P6L+wXG4gIGludHJvOiBzdHJpbmc7XG4gIC8vIGtleVxuICBrZXk6IHN0cmluZztcbiAgLy8g5ZCN56ewXG4gIG5hbWU6IHN0cmluZztcbiAgLy8g5omT5byA5pa55byPXG4gIHRhcmdldDogc3RyaW5nO1xuICAvLyDmmK/lkKbmnInmnYPpmZDmiZPlvIBcbiAgYXV0aDogYm9vbGVhbjtcbiAgLy8g6Lev5b6EXG4gIHVybDogc3RyaW5nO1xuICAvLyDniYjmnKxcbiAgdmVyc2lvbjogc3RyaW5nO1xufVxuIl19
@@ -1,10 +0,0 @@
1
- export * from './authority.type';
2
- export * from './menu.type';
3
- export * from './user.types';
4
- export * from './role.type';
5
- export * from './project-info.types';
6
- export * from './header-menu.type';
7
- export * from './nav.types';
8
- export * from './page';
9
- export * from './response';
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL210eXBlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFlBQVksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXV0aG9yaXR5LnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9tZW51LnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi91c2VyLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vcm9sZS50eXBlJztcbmV4cG9ydCAqIGZyb20gJy4vcHJvamVjdC1pbmZvLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vaGVhZGVyLW1lbnUudHlwZSc7XG5leHBvcnQgKiBmcm9tICcuL25hdi50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL3BhZ2UnO1xuZXhwb3J0ICogZnJvbSAnLi9yZXNwb25zZSc7XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVudS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvbWVudS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOelNhZmVBbnkgfSBmcm9tICduZy16b3Jyby1hbnRkL2NvcmUvdHlwZXMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFl1bnphaU1lbnUge1xuICBba2V5OiBzdHJpbmddOiBOelNhZmVBbnk7XG4gIGFwcENvZGU6IHN0cmluZztcbiAgYXBwSWNvblVybDogc3RyaW5nO1xuICBhcHBUeXBlOiBzdHJpbmc7XG4gIGFwcFVybDogc3RyaW5nO1xuICBhdHRyaWJ1dGU6IHN0cmluZztcbiAgYmFkZ2U6IG51bWJlcjtcbiAgYmFkZ2VfZG90OiBib29sZWFuO1xuICBiYWRnZV9zdGF0dXM6IHN0cmluZztcbiAgY2hpbGRyZW46IFl1bnphaU1lbnVbXTtcbiAgY3JlYXRlZERhdGU6IHN0cmluZztcbiAgZGlzcGxheUluZGV4OiBudW1iZXI7XG4gIGV4dGVybmFsTGluazogc3RyaW5nO1xuICBncm91cDogYm9vbGVhbjtcbiAgaGVscFVybDogc3RyaW5nO1xuICBoaWRlOiBib29sZWFuO1xuICBoaWRlQ2hpbGRyZW46IGJvb2xlYW47XG4gIGhpZGVJbkJyZWFkY3J1bWI6IGJvb2xlYW47XG4gIGkxOG46IHN0cmluZztcbiAgaWNvbjogc3RyaW5nO1xuICBpZDogc3RyaW5nO1xuICBpbnRybzogc3RyaW5nO1xuICBsYWJlbDogc3RyaW5nO1xuICBsaW5rOiBzdHJpbmc7XG4gIG1lbnVBdXRoczogc3RyaW5nW107XG4gIHJldXNlOiBib29sZWFuO1xuICBzaG9ydGN1dDogYm9vbGVhbjtcbiAgc2hvcnRjdXRfcm9vdDogYm9vbGVhbjtcbiAgc3lzdGVtQ29kZTogc3RyaW5nO1xuICB0YXJnZXQ6IHN0cmluZztcbiAgdGV4dDogc3RyaW5nO1xuICB2ZXJzaW9uOiBudW1iZXI7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgWXVuemFpTWVudUF0dHJpYnV0ZSB7XG4gIGRlZmF1bHRSb3V0ZTogTnpTYWZlQW55O1xuICBkYXRhUGxhdGZvcm06IE56U2FmZUFueTtcbiAgdGFyZ2V0VXNlcjogTnpTYWZlQW55O1xuICBzdGFyQ29uZmlnOiBOelNhZmVBbnk7XG59XG4iXX0=
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvbXR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
@@ -1,9 +0,0 @@
1
- export var NavType;
2
- (function (NavType) {
3
- NavType["APPLICATION"] = "application";
4
- NavType["GROUP"] = "group";
5
- NavType["TILE"] = "tiled";
6
- NavType["BLANK"] = "blank";
7
- NavType["TABS"] = "tabs"; // 选项卡
8
- })(NavType || (NavType = {}));
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2LnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvbmF2LnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE1BQU0sQ0FBTixJQUFZLE9BTVg7QUFORCxXQUFZLE9BQU87SUFDakIsc0NBQTJCLENBQUE7SUFDM0IsMEJBQWUsQ0FBQTtJQUNmLHlCQUFjLENBQUE7SUFDZCwwQkFBZSxDQUFBO0lBQ2Ysd0JBQWEsQ0FBQSxDQUFDLE1BQU07QUFDdEIsQ0FBQyxFQU5XLE9BQU8sS0FBUCxPQUFPLFFBTWxCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgWXVuemFpTmF2VG9waWMgfSBmcm9tICcuL2hlYWRlci1tZW51LnR5cGUnO1xuXG5leHBvcnQgZW51bSBOYXZUeXBlIHtcbiAgQVBQTElDQVRJT04gPSAnYXBwbGljYXRpb24nLCAvLyDlupTnlKjkuI7mnI3liqFcbiAgR1JPVVAgPSAnZ3JvdXAnLCAvLyDliIbnu4RcbiAgVElMRSA9ICd0aWxlZCcsIC8vIOW5s+mTulxuICBCTEFOSyA9ICdibGFuaycsIC8vIOepulxuICBUQUJTID0gJ3RhYnMnIC8vIOmAiemhueWNoVxufVxuXG5leHBvcnQgaW50ZXJmYWNlIExheW91dEJhc2ljQXNpZGUge1xuICBuYW1lOiBzdHJpbmc7XG4gIGludHJvOiBzdHJpbmc7XG4gIGljb246IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBMYXlvdXRCYXNpY0Rpc3BsYXkge1xuICBuYXY6IGJvb2xlYW47XG4gIHJldXNldGFiOiBib29sZWFuO1xuICBhc2lkZTogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBMYXlvdXROYXZBcHBsaWNhdGlvblN0YXRlIHtcbiAgYWN0aXZlOiBib29sZWFuO1xuICB0eXBlOiAnYWxsJyB8ICdtaW5lJyB8ICdvdGhlcic7XG4gIHRvcGljPzogWXVuemFpTmF2VG9waWM7XG4gIHRvcGljczogWXVuemFpTmF2VG9waWNbXTtcbiAgbGlzdDogWXVuemFpTmF2VG9waWNbXTtcbiAgc2VhcmNoOiBzdHJpbmcgfCBudWxsO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIExheW91dE5hdkdyb3VwU3RhdGUge1xuICB0b3BpY3M6IFl1bnphaU5hdlRvcGljW107XG59XG4iXX0=
@@ -1,42 +0,0 @@
1
- const YUNZAI_PAGE = {
2
- PAGE_NUM: 1,
3
- PAGE_SIZE: 1000
4
- };
5
- export class YunzaiPageBuilder {
6
- constructor() {
7
- this.page = {};
8
- }
9
- pageNum(pageNum) {
10
- this.page.pageNum = pageNum;
11
- return this;
12
- }
13
- pageSize(pageSize) {
14
- this.page.pageSize = pageSize;
15
- return this;
16
- }
17
- pageParam(param) {
18
- this.page.pageParam = param;
19
- return this;
20
- }
21
- default() {
22
- this.page.pageNum = YUNZAI_PAGE.PAGE_NUM;
23
- this.page.pageSize = YUNZAI_PAGE.PAGE_SIZE;
24
- return this;
25
- }
26
- build() {
27
- return this.page;
28
- }
29
- }
30
- export class Page {
31
- constructor(pageNum, pageSize, param) {
32
- this.pageNum = 1;
33
- this.pageSize = 30;
34
- this.pageNum = pageNum;
35
- this.pageSize = pageSize;
36
- this.param = param;
37
- }
38
- static create() {
39
- return new Page(1, 30);
40
- }
41
- }
42
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnZS5qcyIsInNvdXJ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b1VybDogc3RyaW5nO1xuICBjb3B5cmlnaHQ6IHN0cmluZztcbiAgZmF2aWNvblVybDogc3RyaW5nO1xuICBnYXRld2F5OiBzdHJpbmc7XG4gIGhlYWRlclN0eWxlOiBZdW56YWlIZWFkZXJTdHlsZVtdO1xuICBtYXhMb2dvVXJsOiBzdHJpbmc7XG4gIG1pbmlMb2dvVXJsOiBzdHJpbmc7XG4gIHByb2ZpbGVMaXN0OiBZdW56YWlQcm9maWxlW107XG4gIHByb2plY3ROYW1lOiBzdHJpbmc7XG4gIHNob3dBbGxNZW51OiBib29sZWFuO1xuICB0dWNhb1VybDogc3RyaW5nO1xuICBwYWdlVGl0bGVQYXR0ZXJuOiBzdHJpbmc7XG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL210eXBlcy9yZXNwb25zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgWXVuemFpUGFnZVJlc3VsdCB9IGZyb20gJy4vcGFnZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgWXVuemFpUmVzcG9uc2U8VD4ge1xuICBkYXRhOiBUO1xuICBlcnJvck1lc3NhZ2U6IHN0cmluZztcbiAgbWVzc2FnZTogc3RyaW5nO1xufVxuXG5leHBvcnQgdHlwZSBZdW56YWlQYWdlUmVzcG9uc2U8VD4gPSBZdW56YWlSZXNwb25zZTxZdW56YWlQYWdlUmVzdWx0PFQ+PjtcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9tdHlwZXMvcm9sZS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVJvbGUge1xuICBpZDogc3RyaW5nO1xuICBvbmx5RGVwdE9uZTogYm9vbGVhbjtcbiAgb25seU9uZTogYm9vbGVhbjtcbiAgcm9sZURlc2M6IHN0cmluZztcbiAgcm9sZU5hbWU6IHN0cmluZztcbiAgcm9sZVZhbHVlOiBzdHJpbmc7XG4gIHN0YXR1czogbnVtYmVyO1xuICB0aGlzRGVwYXJ0bWVudDogYm9vbGVhbjtcbn1cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvbXR5cGVzL3VzZXIudHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFl1bnphaUF1dGhvcml0eSB9IGZyb20gJy4vYXV0aG9yaXR5LnR5cGUnO1xuaW1wb3J0IHsgWXVuemFpTWVudSB9IGZyb20gJy4vbWVudS50eXBlJztcbmltcG9ydCB7IFl1bnphaVJvbGUgfSBmcm9tICcuL3JvbGUudHlwZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgWXVuemFpVXNlciB7XG4gIGVtYWlsOiBzdHJpbmc7XG4gIGFjY291bnROb25FeHBpcmVkOiBib29sZWFuO1xuICBhY2NvdW50Tm9uTG9ja2VkOiBib29sZWFuO1xuICBhdXRob3JpdGllczogWXVuemFpQXV0aG9yaXR5W107XG4gIGF2YXRhcklkOiBzdHJpbmc7XG4gIGNyZWRlbnRpYWxzTm9uRXhwaXJlZDogYm9vbGVhbjtcbiAgZGVwdElkOiBzdHJpbmc7XG4gIGRlcHROYW1lOiBzdHJpbmc7XG4gIGVuYWJsZWQ6IGJvb2xlYW47XG4gIGlkOiBzdHJpbmc7XG4gIG1lbnU6IFl1bnphaU1lbnVbXTtcbiAgcmVhbG5hbWU6IHN0cmluZztcbiAgcm9sZXM6IFl1bnphaVJvbGVbXTtcbiAgdXNlckNvZGU6IHN0cmluZztcbiAgdXNlcklkOiBzdHJpbmc7XG4gIHVzZXJUeXBlOiBudW1iZXI7XG4gIHVzZXJuYW1lOiBzdHJpbmc7XG59XG4iXX0=
@@ -1,67 +0,0 @@
1
- import { isObservable } from 'rxjs';
2
- function throwError(msg, actual, expected, comparison) {
3
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
4
- throw new Error(`ASSERTION ERROR: ${msg}${comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`}`);
5
- }
6
- }
7
- /**
8
- * Assert whether the expression and throw an error into console in dev mode
9
- *
10
- * 断言表达式是否符合预期,并在开发模式下会在控制台抛出一个错误
11
- */
12
- export function assert(expression, msg) {
13
- if (!expression) {
14
- throwError(msg);
15
- }
16
- }
17
- /**
18
- * Assert whether empty (`null` or `undefined`)
19
- *
20
- * 断言是否空值(`null` 或 `undefined`)
21
- */
22
- export function assertEmpty(actual, msg) {
23
- if (actual == null) {
24
- throwError(msg, typeof actual, 'NULL', '==');
25
- }
26
- }
27
- /**
28
- * Assert whether `number` type
29
- *
30
- * 断言是否 `number` 类型
31
- */
32
- export function assertNumber(actual, msg) {
33
- if (!(typeof actual === 'number')) {
34
- throwError(msg, typeof actual, 'number', '===');
35
- }
36
- }
37
- /**
38
- * Assert whether `string` type
39
- *
40
- * 断言是否 `string` 类型
41
- */
42
- export function assertString(actual, msg) {
43
- if (!(typeof actual === 'string')) {
44
- throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
45
- }
46
- }
47
- /**
48
- * Assert whether `array` type
49
- *
50
- * 断言是否 `array` 类型
51
- */
52
- export function assertArray(actual, msg) {
53
- if (!Array.isArray(actual)) {
54
- throwError(msg, actual === null ? 'null' : typeof actual, 'array', '===');
55
- }
56
- }
57
- /**
58
- * Assert whether `Observable` type
59
- *
60
- * 断言是否 `Observable` 类型
61
- */
62
- export function assertObservable(obj, msg) {
63
- if (!isObservable(obj)) {
64
- throwError(msg, obj === null ? 'null' : typeof obj, 'Observable', '===');
65
- }
66
- }
67
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9vdGhlci9hc3NlcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLE1BQU0sQ0FBQztBQU1wQyxTQUFTLFVBQVUsQ0FBQyxHQUE4QixFQUFFLE1BQWdCLEVBQUUsUUFBa0IsRUFBRSxVQUFtQjtJQUMzRyxJQUFJLE9BQU8sU0FBUyxLQUFLLFdBQVcsSUFBSSxTQUFTLEVBQUUsQ0FBQztRQUNsRCxNQUFNLElBQUksS0FBSyxDQUNiLG9CQUFvQixHQUFHLEdBQUcsVUFBVSxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxnQkFBZ0IsUUFBUSxJQUFJLFVBQVUsSUFBSSxNQUFNLFlBQVksRUFBRSxDQUNuSCxDQUFDO0lBQ0osQ0FBQztBQUNILENBQUM7QUFFRDs7OztHQUlHO0FBQ0gsTUFBTSxVQUFVLE1BQU0sQ0FBQyxVQUFtQixFQUFFLEdBQVk7SUFDdEQsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDO1FBQ2hCLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUNsQixDQU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nZhYmxlKG9iajogdW5rbm93biwgbXNnPzogc3RyaW5nKTogdm9pZCB7XG4gIGlmICghaXNPYnNlcnZhYmxlKG9iaikpIHtcbiAgICB0aHJvd0Vycm9yKG1zZywgb2JqID09PSBudWxsID8gJ251bGwnIDogdHlwZW9mIG9iaiwgJ09ic2VydmFibGUnLCAnPT09Jyk7XG4gIH1cbn1cbiJdfQ==
@@ -1,78 +0,0 @@
1
- import extend from 'extend';
2
- /**
3
- * Gets the value at `path` of `object`, like `_.get` in lodash.
4
- *
5
- * 类似 `_.get`,根据 `path` 获取安全值
6
- */
7
- export function deepGet(obj, path, defaultValue) {
8
- if (!obj || path == null || path.length === 0)
9
- return defaultValue;
10
- if (!Array.isArray(path)) {
11
- path = ~path.indexOf('.') ? path.split('.') : [path];
12
- }
13
- if (path.length === 1) {
14
- const checkObj = obj[path[0]];
15
- return typeof checkObj === 'undefined' ? defaultValue : checkObj;
16
- }
17
- const res = path.reduce((o, k) => (o || {})[k], obj);
18
- return typeof res === 'undefined' ? defaultValue : res;
19
- }
20
- /**
21
- * Base on [extend](https://github.com/justmoon/node-extend) deep copy.
22
- *
23
- * 基于 [extend](https://github.com/justmoon/node-extend) 的深度拷贝
24
- *
25
- * NOTE: Don't a lot of recursion, maybe performance issues
26
- */
27
- export function deepCopy(obj) {
28
- const result = extend(true, {}, { _: obj });
29
- return result._;
30
- }
31
- /**
32
- * Deep merge object.
33
- *
34
- * 深度合并对象
35
- *
36
- * @param original 原始对象
37
- * @param arrayProcessMethod 数组处理方式
38
- * - `true` 表示替换新值,不管新值为哪种类型
39
- * - `false` 表示会合并整个数组(将旧数据与新数据合并成新数组)
40
- * @param objects 要合并的对象
41
- */
42
- export function deepMergeKey(original, arrayProcessMethod, ...objects) {
43
- if (Array.isArray(original) || typeof original !== 'object')
44
- return original;
45
- const isObject = (v) => typeof v === 'object';
46
- const merge = (target, obj) => {
47
- Object.keys(obj)
48
- .filter(key => key !== '__proto__' && Object.prototype.hasOwnProperty.call(obj, key))
49
- .forEach(key => {
50
- const fromValue = obj[key];
51
- const toValue = target[key];
52
- if (Array.isArray(toValue)) {
53
- target[key] = arrayProcessMethod ? fromValue : [...toValue, ...fromValue];
54
- }
55
- else if (typeof fromValue === 'function') {
56
- target[key] = fromValue;
57
- }
58
- else if (fromValue != null && isObject(fromValue) && toValue != null && isObject(toValue)) {
59
- target[key] = merge(toValue, fromValue);
60
- }
61
- else {
62
- target[key] = deepCopy(fromValue);
63
- }
64
- });
65
- return target;
66
- };
67
- objects.filter(v => v != null && isObject(v)).forEach(v => merge(original, v));
68
- return original;
69
- }
70
- /**
71
- * Deep merge object.
72
- *
73
- * 深度合并对象
74
- */
75
- export function deepMerge(original, ...objects) {
76
- return deepMergeKey(original, false, ...objects);
77
- }
78
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVlcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvb3RoZXIvZGVlcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLE1BQU0sTUFBTSxRQUFRLENBQUM7QUFJNUI7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSxPQUFPLENBQUMsR0FBYyxFQUFFLElBQTBDLEVBQUUsWUFBc0I7SUFDeEcsSUFBSSxDQUFDLEdBQUcsSUFBSSxJQUFJLElBQUksSUFBSSxJQUFJLElBQUksQ0FBQyxNQUFNLEtBQUssQ0FBQztRQUFFLE9BQU8sWUFBWSxDQUFDO0lBQ25FLElBQUksQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUM7UUFDekIsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FB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w7XG59XG5cbi8qKlxuICogRGVlcCBtZXJnZSBvYmplY3QuXG4gKlxuICog5rex5bqm5ZCI5bm25a+56LGhXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBkZWVwTWVyZ2Uob3JpZ2luYWw6IHVua25vd24sIC4uLm9iamVjdHM6IHVua25vd25bXSk6IE56U2FmZUFueSB7XG4gIHJldHVybiBkZWVwTWVyZ2VLZXkob3JpZ2luYWwsIGZhbHNlLCAuLi5vYmplY3RzKTtcbn1cbiJdfQ==
@@ -1,29 +0,0 @@
1
- export function setFavicon(path) {
2
- const link = document.querySelector("link[rel*='icon']") || document.createElement('link');
3
- link.type = 'image/x-icon';
4
- link.rel = 'shortcut icon';
5
- link.href = path;
6
- document.getElementsByTagName('head')[0].appendChild(link);
7
- }
8
- export function hasFavicon(url) {
9
- return new Promise(resolve => {
10
- let xmlHttp;
11
- if (window['XMLHttpRequest']) {
12
- xmlHttp = new XMLHttpRequest();
13
- }
14
- if (xmlHttp) {
15
- xmlHttp.open('Get', url, false);
16
- xmlHttp.send();
17
- if (xmlHttp.status == 404) {
18
- resolve(false);
19
- }
20
- else {
21
- resolve(true);
22
- }
23
- }
24
- else {
25
- resolve(false);
26
- }
27
- });
28
- }
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmF2aWNvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvb3RoZXIvZmF2aWNvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLFVBQVUsVUFBVSxDQUFDLElBQVk7SUFDckMsTUFBTSxJQUFJLEdBQWMsUUFBUSxDQUFDLGFBQWEsQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLFFBQVEsQ0FBQyxhQUFhLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEcsSUFBSSxDQUFDLElBQUksR0FBR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vbiBzZXRGYXZpY29uKHBhdGg6IHN0cmluZyk6IHZvaWQge1xuICBjb25zdCBsaW5rOiBOelNhZmVBbnkgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKFwibGlua1tyZWwqPSdpY29uJ11cIikgfHwgZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnbGluaycpO1xuICBsaW5rLnR5cGUgPSAnaW1hZ2UveC1pY29uJztcbiAgbGluay5yZWwgPSAnc2hvcnRjdXQgaWNvbic7XG4gIGxpbmsuaHJlZiA9IHBhdGg7XG4gIGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCdoZWFkJylbMF0uYXBwZW5kQ2hpbGQobGluayk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBoYXNGYXZpY29uKHVybDogc3RyaW5nKTogUHJvbWlzZTxib29sZWFuPiB7XG4gIHJldHVybiBuZXcgUHJvbWlzZShyZXNvbHZlID0+IHtcbiAgICBsZXQgeG1sSHR0cDtcbiAgICBpZiAod2luZG93WydYTUxIdHRwUmVxdWVzdCddKSB7XG4gICAgICB4bWxIdHRwID0gbmV3IFhNTEh0dHBSZXF1ZXN0KCk7XG4gICAgfVxuICAgIGlmICh4bWxIdHRwKSB7XG4gICAgICB4bWxIdHRwLm9wZW4oJ0dldCcsIHVybCwgZmFsc2UpO1xuICAgICAgeG1sSHR0cC5zZW5kKCk7XG4gICAgICBpZiAoeG1sSHR0cC5zdGF0dXMgPT0gNDA0KSB7XG4gICAgICAgIHJlc29sdmUoZmFsc2UpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmVzb2x2ZSh0cnVlKTtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgcmVzb2x2ZShmYWxzZSk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==
@@ -1,8 +0,0 @@
1
- export * from './deep';
2
- export * from './logger';
3
- export * from './lazy.service';
4
- export * from './assert';
5
- export * from './path-to-regexp.service';
6
- export * from './resize';
7
- export * from './favicon';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL290aGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxVQUFVLENBQUM7QUFDekIsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLFdBQVcsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZGVlcCc7XG5leHBvcnQgKiBmcm9tICcuL2xvZ2dlcic7XG5leHBvcnQgKiBmcm9tICcuL2xhenkuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2Fzc2VydCc7XG5leHBvcnQgKiBmcm9tICcuL3BhdGgtdG8tcmVnZXhwLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9yZXNpemUnO1xuZXhwb3J0ICogZnJvbSAnLi9mYXZpY29uJztcbiJdfQ==
@@ -1,129 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import { Injectable, inject } from '@angular/core';
3
- import { BehaviorSubject, filter, share } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * `LazyService` delay loading JS or CSS files.
7
- *
8
- * 延迟加载资源(js 或 css)服务
9
- */
10
- export class LazyService {
11
- constructor() {
12
- this.doc = inject(DOCUMENT);
13
- this.list = {};
14
- this.cached = {};
15
- this._notify = new BehaviorSubject([]);
16
- }
17
- get change() {
18
- return this._notify.asObservable().pipe(share(), filter(ls => ls.length !== 0));
19
- }
20
- clear() {
21
- this.list = {};
22
- this.cached = {};
23
- }
24
- attachAttributes(el, attributes) {
25
- if (attributes == null)
26
- return;
27
- Object.entries(attributes).forEach(([key, value]) => {
28
- el.setAttribute(key, value);
29
- });
30
- }
31
- /**
32
- * Load script or style files
33
- */
34
- load(paths) {
35
- if (!Array.isArray(paths)) {
36
- paths = [paths];
37
- }
38
- const promises = [];
39
- paths
40
- .map(v => (typeof v !== 'object' ? { path: v } : v))
41
- .forEach(item => {
42
- if (item.path.endsWith('.js')) {
43
- promises.push(this.loadScript(item.path, item.options));
44
- }
45
- else {
46
- promises.push(this.loadStyle(item.path, item.options));
47
- }
48
- });
49
- return Promise.all(promises).then(res => {
50
- this._notify.next(res);
51
- return Promise.resolve(res);
52
- });
53
- }
54
- loadScript(path, innerContent, attributes) {
55
- const options = typeof innerContent === 'object'
56
- ? innerContent
57
- : {
58
- innerContent,
59
- attributes
60
- };
61
- return new Promise(resolve => {
62
- if (this.list[path] === true) {
63
- resolve({ ...this.cached[path], status: 'loading' });
64
- return;
65
- }
66
- this.list[path] = true;
67
- const onSuccess = (item) => {
68
- this.cached[path] = item;
69
- resolve(item);
70
- this._notify.next([item]);
71
- };
72
- const node = this.doc.createElement('script');
73
- node.type = 'text/javascript';
74
- node.src = path;
75
- this.attachAttributes(node, options.attributes);
76
- if (options.innerContent) {
77
- node.innerHTML = options.innerContent;
78
- }
79
- node.onload = () => onSuccess({
80
- path,
81
- status: 'ok'
82
- });
83
- node.onerror = error => onSuccess({
84
- path,
85
- status: 'error',
86
- error
87
- });
88
- this.doc.getElementsByTagName('head')[0].appendChild(node);
89
- });
90
- }
91
- loadStyle(path, rel, innerContent, attributes) {
92
- const options = typeof rel === 'object'
93
- ? rel
94
- : {
95
- rel,
96
- innerContent,
97
- attributes
98
- };
99
- return new Promise(resolve => {
100
- if (this.list[path] === true) {
101
- resolve(this.cached[path]);
102
- return;
103
- }
104
- this.list[path] = true;
105
- const node = this.doc.createElement('link');
106
- node.rel = options.rel ?? 'stylesheet';
107
- node.type = 'text/css';
108
- node.href = path;
109
- this.attachAttributes(node, options.attributes);
110
- if (options.innerContent) {
111
- node.innerHTML = options.innerContent;
112
- }
113
- this.doc.getElementsByTagName('head')[0].appendChild(node);
114
- const item = {
115
- path,
116
- status: 'ok'
117
- };
118
- this.cached[path] = item;
119
- resolve(item);
120
- });
121
- }
122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: LazyService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
123
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: LazyService, providedIn: 'root' }); }
124
- }
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: LazyService, decorators: [{
126
- type: Injectable,
127
- args: [{ providedIn: 'root' }]
128
- }] });
129
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9vdGhlci9sYXp5LnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBRSxlQUFlLEVBQWMsTUFBTSxFQUFFLEtBQUssRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFxQmxFOzs7O0dBSUc7QUFFSCxNQUFNLE9BQU8sV0FBVztJQUR4QjtRQUVtQixRQUFHLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBRWhDLFNBQUksR0FBK0IsRUFBRSxDQUFDO1FBQ3RDLFdBQU0sR0FBa0MsRUFBRSxD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J2xpbmsnKSBhcyBIVE1MTGlua0VsZW1lbnQ7XG4gICAgICBub2RlLnJlbCA9IG9wdGlvbnMucmVsID8/ICdzdHlsZXNoZWV0JztcbiAgICAgIG5vZGUudHlwZSA9ICd0ZXh0L2Nzcyc7XG4gICAgICBub2RlLmhyZWYgPSBwYXRoO1xuICAgICAgdGhpcy5hdHRhY2hBdHRyaWJ1dGVzKG5vZGUsIG9wdGlvbnMuYXR0cmlidXRlcyk7XG4gICAgICBpZiAob3B0aW9ucy5pbm5lckNvbnRlbnQpIHtcbiAgICAgICAgbm9kZS5pbm5lckhUTUwgPSBvcHRpb25zLmlubmVyQ29udGVudDtcbiAgICAgIH1cbiAgICAgIHRoaXMuZG9jLmdldEVsZW1lbnRzQnlUYWdOYW1lKCdoZWFkJylbMF0uYXBwZW5kQ2hpbGQobm9kZSk7XG4gICAgICBjb25zdCBpdGVtOiBMYXp5UmVzdWx0ID0ge1xuICAgICAgICBwYXRoLFxuICAgICAgICBzdGF0dXM6ICdvaydcbiAgICAgIH07XG4gICAgICB0aGlzLmNhY2hlZFtwYXRoXSA9IGl0ZW07XG4gICAgICByZXNvbHZlKGl0ZW0pO1xuICAgIH0pO1xuICB9XG59XG4iXX0=
@@ -1,33 +0,0 @@
1
- const record = {};
2
- export const PREFIX = '[@YELON]:';
3
- function notRecorded(...args) {
4
- const asRecord = args.reduce((acc, c) => acc + c.toString(), '');
5
- if (record[asRecord]) {
6
- return false;
7
- }
8
- else {
9
- record[asRecord] = true;
10
- return true;
11
- }
12
- }
13
- function consoleCommonBehavior(consoleFunc, ...args) {
14
- if ((typeof ngDevMode === 'undefined' || ngDevMode) && notRecorded(...args)) {
15
- consoleFunc(...args);
16
- }
17
- }
18
- // Warning should only be printed in dev mode and only once.
19
- export const warn = (...args) => consoleCommonBehavior((...arg) => console.warn(PREFIX, ...arg), ...args);
20
- export const warnDeprecation = (...args) => {
21
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
22
- return () => { };
23
- }
24
- const stack = new Error().stack;
25
- return consoleCommonBehavior((...arg) => console.warn(PREFIX, 'deprecated:', ...arg, stack), ...args);
26
- };
27
- // Log should only be printed in dev mode.
28
- export const log = (...args) => {
29
- if (typeof ngDevMode === 'undefined' || ngDevMode) {
30
- console.log(PREFIX, ...args);
31
- }
32
- };
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9vdGhlci9sb2dnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsTUFBTSxNQUFNLEdBQTRCLEVBQUUsQ0FBQztBQUUzQyxNQUFNLENBQUMsTUFBTSxNQUFNLEdBQUcsV0FBVyxDQUFDO0FBRWxDLFNBQVMsV0FBVyxDQUFDLEdBQUcsSUFBaUI7SUFDdkMsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDLEVBQUUsRUFBRSxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUMsUUFBUSxFQUFFLEVBQUUsRUFBRSxDQUFDLENBQUM7SUFFakUsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQztRQUNyQixPQUFPLEtBQUssQ0FBQztJQUNmLENBQUM7U0FBTSxDQUFDO1FBQ04sTUFBTSxDQUFDLFFBQVEsQ0FBQyxHQUFHLElBQUksQ0FBQztRQUN4QixPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7QUFDSCxDQUFDO0FBRUQsU0FBUyxxQkFBcUIsQ0FBQyxXQUF5QyxFQUFFLEdBQUcsSUFBaUI7SUFDNUYsSUFBSSxDQUFDLE9BQU8sU0FBUyxLQUFLLFdBQVcsSUFBSSxTQUFTLENBQUMsSUFBSSxXQUFXLENBQUMsR0FBRyxJQUFJLENBQUMsR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lkID0+XG4gIGNvbnNvbGVDb21tb25CZWhhdmlvcigoLi4uYXJnOiBOelNhZmVBbnlbXSkgPT4gY29uc29sZS53YXJuKFBSRUZJWCwgLi4uYXJnKSwgLi4uYXJncyk7XG5cbmV4cG9ydCBjb25zdCB3YXJuRGVwcmVjYXRpb24gPSAoLi4uYXJnczogTnpTYWZlQW55W10pOiBOelNhZmVBbnkgPT4ge1xuICBpZiAodHlwZW9mIG5nRGV2TW9kZSA9PT0gJ3VuZGVmaW5lZCcgfHwgbmdEZXZNb2RlKSB7XG4gICAgcmV0dXJuICgpID0+IHt9O1xuICB9XG4gIGNvbnN0IHN0YWNrID0gbmV3IEVycm9yKCkuc3RhY2s7XG4gIHJldHVybiBjb25zb2xlQ29tbW9uQmVoYXZpb3IoKC4uLmFyZzogTnpTYWZlQW55W10pID0+IGNvbnNvbGUud2FybihQUkVGSVgsICdkZXByZWNhdGVkOicsIC4uLmFyZywgc3RhY2spLCAuLi5hcmdzKTtcbn07XG5cbi8vIExvZyBzaG91bGQgb25seSBiZSBwcmludGVkIGluIGRldiBtb2RlLlxuZXhwb3J0IGNvbnN0IGxvZyA9ICguLi5hcmdzOiBOelNhZmVBbnlbXSk6IHZvaWQgPT4ge1xuICBpZiAodHlwZW9mIG5nRGV2TW9kZSA9PT0gJ3VuZGVmaW5lZCcgfHwgbmdEZXZNb2RlKSB7XG4gICAgY29uc29sZS5sb2coUFJFRklYLCAuLi5hcmdzKTtcbiAgfVxufTtcbiJdfQ==
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3RoZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL290aGVyL290aGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19