@yelon/util 15.2.6 → 16.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/README.md +22 -22
- package/analysis/global-event.subject.d.ts +7 -7
- package/analysis/index.d.ts +1 -1
- package/array/array-type.service.d.ts +68 -68
- package/array/array.service.d.ts +78 -78
- package/array/index.d.ts +2 -2
- package/browser/cookie.service.d.ts +67 -67
- package/browser/copy.d.ts +6 -6
- package/browser/index.d.ts +5 -5
- package/browser/is-empty.d.ts +6 -6
- package/browser/scroll.service.d.ts +37 -37
- package/browser/style.d.ts +21 -21
- package/config/abc/date-picker.type.d.ts +52 -52
- package/config/abc/error-collect.type.d.ts +10 -10
- package/config/abc/exception.type.d.ts +9 -9
- package/config/abc/image.type.d.ts +15 -15
- package/config/abc/index.d.ts +17 -17
- package/config/abc/loading.type.d.ts +31 -31
- package/config/abc/lodop.type.d.ts +33 -33
- package/config/abc/media.type.d.ts +11 -11
- package/config/abc/onboarding.type.d.ts +4 -4
- package/config/abc/page-header.type.d.ts +39 -39
- package/config/abc/pdf.type.d.ts +35 -35
- package/config/abc/qr.type.d.ts +25 -25
- package/config/abc/se.type.d.ts +32 -32
- package/config/abc/sg.type.d.ts +10 -10
- package/config/abc/st.type.d.ts +465 -465
- package/config/abc/sv.type.d.ts +14 -14
- package/config/abc/xlsx.type.d.ts +12 -12
- package/config/abc/zip.type.d.ts +10 -10
- package/config/acl/acl.type.d.ts +32 -32
- package/config/auth/auth.type.d.ts +55 -55
- package/config/bis/bis.type.d.ts +7 -7
- package/config/cache/cache.type.d.ts +40 -40
- package/config/chart/chart.type.d.ts +33 -33
- package/config/config.service.d.ts +13 -13
- package/config/config.types.d.ts +48 -48
- package/config/index.d.ts +14 -14
- package/config/mock/mock.type.d.ts +18 -18
- package/config/sf/sf.type.d.ts +133 -133
- package/config/socket/socket.type.d.ts +4 -4
- package/config/theme/http.type.d.ts +14 -14
- package/config/theme/i18n.type.d.ts +14 -14
- package/config/theme/index.d.ts +3 -3
- package/config/theme/responsive.type.d.ts +12 -12
- package/config/util/array.type.d.ts +22 -22
- package/config/util/currency.type.d.ts +39 -39
- package/date-time/index.d.ts +2 -2
- package/date-time/picker.d.ts +68 -68
- package/date-time/time.d.ts +29 -29
- package/decorator/convert.d.ts +24 -24
- package/decorator/index.d.ts +2 -2
- package/decorator/zone-outside.d.ts +35 -35
- package/{esm2020 → esm2022}/analysis/analysis.mjs +4 -4
- package/esm2022/analysis/global-event.subject.mjs +18 -0
- package/{esm2020 → esm2022}/analysis/index.mjs +2 -2
- package/{esm2020 → esm2022}/array/array-type.service.mjs +1 -1
- package/{esm2020 → esm2022}/array/array.mjs +4 -4
- package/esm2022/array/array.service.mjs +278 -0
- package/{esm2020 → esm2022}/array/index.mjs +2 -2
- package/{esm2020 → esm2022}/browser/browser.mjs +4 -4
- package/esm2022/browser/cookie.service.mjs +104 -0
- package/{esm2020 → esm2022}/browser/copy.mjs +27 -27
- package/{esm2020 → esm2022}/browser/index.mjs +5 -5
- package/{esm2020 → esm2022}/browser/is-empty.mjs +18 -18
- package/esm2022/browser/scroll.service.mjs +89 -0
- package/{esm2020 → esm2022}/browser/style.mjs +37 -37
- package/{esm2020 → esm2022}/config/abc/date-picker.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/error-collect.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/exception.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/image.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/index.mjs +17 -17
- package/{esm2020 → esm2022}/config/abc/loading.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/lodop.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/media.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/onboarding.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/page-header.type.mjs +1 -1
- package/esm2022/config/abc/pdf.type.mjs +2 -0
- package/{esm2020 → esm2022}/config/abc/qr.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/se.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/sg.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/st.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/sv.type.mjs +2 -2
- package/{esm2020 → esm2022}/config/abc/xlsx.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/abc/zip.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/acl/acl.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/auth/auth.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/bis/bis.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/cache/cache.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/chart/chart.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/config.mjs +4 -4
- package/esm2022/config/config.service.mjs +38 -0
- package/{esm2020 → esm2022}/config/config.types.mjs +8 -8
- package/{esm2020 → esm2022}/config/index.mjs +14 -14
- package/{esm2020 → esm2022}/config/mock/mock.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/sf/sf.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/socket/socket.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/theme/http.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/theme/i18n.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/theme/index.mjs +3 -3
- package/{esm2020 → esm2022}/config/theme/responsive.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/util/array.type.mjs +1 -1
- package/{esm2020 → esm2022}/config/util/currency.type.mjs +1 -1
- package/{esm2020 → esm2022}/date-time/date-time.mjs +4 -4
- package/{esm2020 → esm2022}/date-time/index.mjs +2 -2
- package/{esm2020 → esm2022}/date-time/picker.mjs +115 -115
- package/{esm2020 → esm2022}/date-time/time.mjs +88 -88
- package/{esm2020 → esm2022}/decorator/convert.mjs +57 -57
- package/{esm2020 → esm2022}/decorator/decorator.mjs +4 -4
- package/{esm2020 → esm2022}/decorator/index.mjs +2 -2
- package/{esm2020 → esm2022}/decorator/zone-outside.mjs +56 -56
- package/{esm2020 → esm2022}/form/form.mjs +4 -4
- package/{esm2020 → esm2022}/form/index.mjs +2 -2
- package/{esm2020 → esm2022}/form/match-control.mjs +29 -29
- package/{esm2020 → esm2022}/form/validators.mjs +80 -80
- package/esm2022/format/currency.service.mjs +239 -0
- package/{esm2020 → esm2022}/format/currency.types.mjs +7 -7
- package/{esm2020 → esm2022}/format/format.mjs +4 -4
- package/{esm2020 → esm2022}/format/index.mjs +4 -4
- package/{esm2020 → esm2022}/format/string.mjs +84 -84
- package/{esm2020 → esm2022}/format/validate.mjs +93 -93
- package/{esm2020 → esm2022}/index.mjs +12 -12
- package/{esm2020 → esm2022}/math/in-range.mjs +24 -24
- package/{esm2020 → esm2022}/math/index.mjs +2 -2
- package/{esm2020 → esm2022}/math/math.mjs +4 -4
- package/{esm2020 → esm2022}/math/round.mjs +52 -52
- package/{esm2020 → esm2022}/other/assert.mjs +66 -66
- package/{esm2020 → esm2022}/other/deep.mjs +77 -77
- package/{esm2020 → esm2022}/other/favicon.mjs +28 -28
- package/{esm2020 → esm2022}/other/index.mjs +7 -7
- package/esm2022/other/lazy.service.mjs +133 -0
- package/{esm2020 → esm2022}/other/logger.mjs +32 -32
- package/{esm2020 → esm2022}/other/other.mjs +4 -4
- package/esm2022/other/path-to-regexp.service.mjs +240 -0
- package/{esm2020 → esm2022}/other/resize.mjs +3 -3
- package/esm2022/pipes/currency/cny.pipe.mjs +24 -0
- package/{esm2020 → esm2022}/pipes/currency/index.mjs +4 -4
- package/esm2022/pipes/currency/mega.pipe.mjs +30 -0
- package/esm2022/pipes/currency/module.mjs +20 -0
- package/{esm2020 → esm2022}/pipes/currency/pipe-currency.mjs +4 -4
- package/esm2022/pipes/currency/price.pipe.mjs +28 -0
- package/esm2022/pipes/filter/filter.pipe.mjs +20 -0
- package/{esm2020 → esm2022}/pipes/filter/index.mjs +2 -2
- package/esm2022/pipes/filter/module.mjs +18 -0
- package/{esm2020 → esm2022}/pipes/filter/pipe-filter.mjs +4 -4
- package/{esm2020 → esm2022}/pipes/format/index.mjs +2 -2
- package/esm2022/pipes/format/mask.pipe.mjs +35 -0
- package/esm2022/pipes/format/module.mjs +18 -0
- package/{esm2020 → esm2022}/pipes/format/pipe-format.mjs +4 -4
- package/{esm2020 → esm2022}/pipes/index.mjs +3 -3
- package/{esm2020 → esm2022}/pipes/pipes.mjs +4 -4
- package/{esm2020 → esm2022}/token/index.mjs +2 -2
- package/{esm2020 → esm2022}/token/page-visibility.mjs +14 -14
- package/{esm2020 → esm2022}/token/token.mjs +4 -4
- package/{esm2020 → esm2022}/token/window.mjs +16 -16
- package/{esm2020 → esm2022}/yelon-util.mjs +4 -4
- package/{fesm2020 → fesm2022}/analysis.mjs +24 -24
- package/fesm2022/analysis.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/array.mjs +284 -284
- package/{fesm2015 → fesm2022}/array.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/browser.mjs +279 -279
- package/{fesm2020 → fesm2022}/browser.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/config.mjs +54 -54
- package/{fesm2020 → fesm2022}/config.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/date-time.mjs +211 -211
- package/{fesm2020 → fesm2022}/decorator.mjs +121 -121
- package/{fesm2020 → fesm2022}/form.mjs +118 -118
- package/{fesm2020 → fesm2022}/format.mjs +431 -431
- package/{fesm2020 → fesm2022}/format.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/math.mjs +85 -85
- package/{fesm2020 → fesm2022}/other.mjs +586 -586
- package/{fesm2020 → fesm2022}/other.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pipe-currency.mjs +94 -94
- package/{fesm2020 → fesm2022}/pipe-currency.mjs.map +1 -1
- package/fesm2022/pipe-filter.mjs +40 -0
- package/{fesm2015 → fesm2022}/pipe-filter.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pipe-format.mjs +55 -55
- package/{fesm2015 → fesm2022}/pipe-format.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/pipes.mjs +8 -8
- package/{fesm2020 → fesm2022}/token.mjs +37 -37
- package/{fesm2015 → fesm2022}/yelon-util.mjs +17 -17
- package/form/index.d.ts +2 -2
- package/form/match-control.d.ts +15 -15
- package/form/validators.d.ts +62 -62
- package/format/currency.service.d.ts +37 -37
- package/format/currency.types.d.ts +77 -77
- package/format/index.d.ts +4 -4
- package/format/string.d.ts +44 -44
- package/format/validate.d.ts +72 -72
- package/index.d.ts +12 -12
- package/math/in-range.d.ts +14 -14
- package/math/index.d.ts +2 -2
- package/math/round.d.ts +33 -33
- package/other/assert.d.ts +36 -36
- package/other/deep.d.ts +35 -35
- package/other/favicon.d.ts +2 -2
- package/other/index.d.ts +7 -7
- package/other/lazy.service.d.ts +48 -48
- package/other/logger.d.ts +5 -5
- package/other/path-to-regexp.service.d.ts +26 -26
- package/other/resize.d.ts +1 -1
- package/package.json +129 -165
- package/pipes/currency/cny.pipe.d.ts +15 -15
- package/pipes/currency/index.d.ts +4 -4
- package/pipes/currency/mega.pipe.d.ts +16 -16
- package/pipes/currency/module.d.ts +9 -9
- package/pipes/currency/price.pipe.d.ts +19 -19
- package/pipes/filter/filter.pipe.d.ts +13 -13
- package/pipes/filter/index.d.ts +2 -2
- package/pipes/filter/module.d.ts +7 -7
- package/pipes/format/index.d.ts +2 -2
- package/pipes/format/mask.pipe.d.ts +27 -27
- package/pipes/format/module.d.ts +7 -7
- package/pipes/index.d.ts +3 -3
- package/token/index.d.ts +2 -2
- package/token/page-visibility.d.ts +8 -8
- package/token/window.d.ts +7 -7
- package/esm2020/analysis/global-event.subject.mjs +0 -17
- package/esm2020/array/array.service.mjs +0 -277
- package/esm2020/browser/cookie.service.mjs +0 -103
- package/esm2020/browser/scroll.service.mjs +0 -88
- package/esm2020/config/abc/pdf.type.mjs +0 -2
- package/esm2020/config/config.service.mjs +0 -37
- package/esm2020/format/currency.service.mjs +0 -238
- package/esm2020/other/lazy.service.mjs +0 -132
- package/esm2020/other/path-to-regexp.service.mjs +0 -239
- package/esm2020/pipes/currency/cny.pipe.mjs +0 -23
- package/esm2020/pipes/currency/mega.pipe.mjs +0 -29
- package/esm2020/pipes/currency/module.mjs +0 -19
- package/esm2020/pipes/currency/price.pipe.mjs +0 -27
- package/esm2020/pipes/filter/filter.pipe.mjs +0 -19
- package/esm2020/pipes/filter/module.mjs +0 -17
- package/esm2020/pipes/format/mask.pipe.mjs +0 -34
- package/esm2020/pipes/format/module.mjs +0 -17
- package/fesm2015/analysis.mjs +0 -24
- package/fesm2015/analysis.mjs.map +0 -1
- package/fesm2015/array.mjs +0 -254
- package/fesm2015/browser.mjs +0 -283
- package/fesm2015/browser.mjs.map +0 -1
- package/fesm2015/config.mjs +0 -56
- package/fesm2015/config.mjs.map +0 -1
- package/fesm2015/date-time.mjs +0 -207
- package/fesm2015/date-time.mjs.map +0 -1
- package/fesm2015/decorator.mjs +0 -121
- package/fesm2015/decorator.mjs.map +0 -1
- package/fesm2015/form.mjs +0 -118
- package/fesm2015/format.mjs +0 -413
- package/fesm2015/format.mjs.map +0 -1
- package/fesm2015/math.mjs +0 -85
- package/fesm2015/other.mjs +0 -589
- package/fesm2015/other.mjs.map +0 -1
- package/fesm2015/pipe-currency.mjs +0 -96
- package/fesm2015/pipe-currency.mjs.map +0 -1
- package/fesm2015/pipe-filter.mjs +0 -40
- package/fesm2015/pipe-format.mjs +0 -55
- package/fesm2015/token.mjs +0 -37
- package/fesm2020/analysis.mjs.map +0 -1
- package/fesm2020/array.mjs.map +0 -1
- package/fesm2020/form.mjs.map +0 -1
- package/fesm2020/math.mjs.map +0 -1
- package/fesm2020/pipe-filter.mjs +0 -40
- package/fesm2020/pipe-filter.mjs.map +0 -1
- package/fesm2020/pipe-format.mjs.map +0 -1
- package/fesm2020/pipes.mjs +0 -8
- package/fesm2020/pipes.mjs.map +0 -1
- package/fesm2020/token.mjs.map +0 -1
- package/fesm2020/yelon-util.mjs +0 -17
- package/fesm2020/yelon-util.mjs.map +0 -1
- /package/{fesm2020 → fesm2022}/date-time.mjs.map +0 -0
- /package/{fesm2020 → fesm2022}/decorator.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/form.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/math.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/pipes.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/token.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/yelon-util.mjs.map +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvYXV0aC9hdXRoLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpQXV0aENvbmZpZyB7XG4gIC8qKlxuICAgKiDlrZjlgqhLRVnlgLzvvIzpu5jorqTvvJpgX3Rva2VuYFxuICAgKi9cbiAgc3RvcmVfa2V5Pzogc3RyaW5nO1xuICAvKipcbiAgICog5peg5pWI5pe26Lez6L2s6Iez55m75b2V6aG177yM6buY6K6k77yaYHRydWVg77yM5YyF5ous77yaXG4gICAqIC0g5peg5pWIdG9rZW7lgLxcbiAgICogLSB0b2tlbuW3sui/h+acn++8iOmZkEpXVO+8iVxuICAgKi9cbiAgdG9rZW5faW52YWxpZF9yZWRpcmVjdD86IGJvb2xlYW47XG4gIC8qKlxuICAgKiB0b2tlbui/h+acn+aXtumXtOWBj+enu+WAvO+8jOm7mOiupO+8mmAxMGAg56eS77yI5Y2V5L2N77ya56eS77yJXG4gICAqL1xuICB0b2tlbl9leHBfb2Zmc2V0PzogbnVtYmVyO1xuICAvKipcbiAgICog5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K3lkI7nu6fnu63osIPnlKjlkI7nu63mi6bmiKrlmajnmoQgYGludGVyY2VwdGAg5pa55rOV77yM6buY6K6k77yaYHRydWVgXG4gICAqL1xuICBleGVjdXRlT3RoZXJJbnRlcmNlcHRvcnM/OiBib29sZWFuO1xuICAvKipcbiAgICog5Yi35paw6Ze06ZqU5pe26ZW/77yI5Y2V5L2N77yabXPvvInvvIzpu5jorqTvvJpgMzAwMGBcbiAgICovXG4gIHJlZnJlc2hUaW1lPzogbnVtYmVyO1xuICAvKipcbiAgICog6L+H5pyf6K6h566X5YGP56e75YC877yI5Y2V5L2N77yabXPvvInvvIzpu5jorqTvvJpgNjAwMGBcbiAgICogLSAqKuW7uuiurioq5qC55o2uIGByZWZyZXNoVGltZWAg5YCN5pWw5p2l6K6+572uXG4gICAqL1xuICByZWZyZXNoT2Zmc2V0PzogbnVtYmVyO1xufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmlzLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2NvbmZpZy9iaXMvYmlzLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpQnVzaW5lc3NDb25maWcge1xuICBiYXNlVXJsPzogc3RyaW5nO1xuICBzeXN0ZW1Db2RlPzogc3RyaW5nO1xuICBsb2dpbkZvcm0/OiBGb3JtRGF0YSB8IG51bGw7XG4gIHJlZnJlc2hUb2tlbkVuYWJsZWQ/OiBib29sZWFuO1xuICByZWZyZXNoVG9rZW5UeXBlPzogJ3JlLXJlcXVlc3QnIHwgJ2F1dGgtcmVmcmVzaCc7XG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGUudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvY29uZmlnL2NhY2hlL2NhY2hlLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9ic2VydmFibGUgfSBmcm9tICdyeGpzJztcblxuZXhwb3J0IGludGVyZmFjZSBZdW56YWlDYWNoZUNvbmZpZyB7XG4gIC8qKlxuICAgKiBDYWNoZSBtb2RlLCBkZWZhdWx0OiBgcHJvbWlzZWBcbiAgICogLSBgcHJvbWlzZWAgQ29udmVudGlvbiBtb2RlLCBhbGxvd2luZyBga2V5YCB0byBnZXQgZGF0YSBhcyBodHRwXG4gICAqIC0gYG5vbmVgIE5vcm1hbCBtb2RlXG4gICAqL1xuICBtb2RlPzogJ3Byb21pc2UnIHwgJ25vbmUnO1xuICAvKipcbiAgICogUmVuYW1lIHRoZSByZXR1cm4gcGFyYW1ldGVycywgZGVmYXVsdDogYGAsIGZvciBleGFtcGxlOlxuICAgKiAtIGBudWxsYCBUaGUgcmVzcG9uc2UgYm9keSBpcyBjb250ZW50XG4gICAqIC0gYGxpc3RgIFRoZSByZXNwb25zZSBib2R5IHNob3VsZCBiZSBgeyBsaXN0OiBbXSB9YFxuICAgKiAtIGByZXN1bHQubGlzdGAgVGhlIHJlc3BvbnNlIGJvZHkgc2hvdWxkIGJlIGB7IHJlc3VsdDogeyBsaXN0OiBbXSB9IH1gXG4gICAqL1xuICByZU5hbWU/OiBzdHJpbmcgfCBzdHJpbmdbXTtcbiAgLyoqXG4gICAqIFNldCB0aGUgZGVmYXVsdCBzdG9yYWdlIHR5cGVcbiAgICogLSBgbWAgU3RvcmFnZSB2aWEg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ThuLCB0aGVtZSBldGNcbiAgICovXG4gIGVjaGFydHNFeHRlbnNpb25zPzogc3RyaW5nW107XG5cbiAgLyoqXG4gICAqIFRoZW1lIGNvbmZpZ3VyYXRpb24gaXRlbSwgeW91IGNhbiBsb2FkIHRoZSBkZWZhdWx0IHRoZW1lIGZpbGUgd2l0aCBgZWNoYXJ0c0V4dGVuc2lvbnNgXG4gICAqXG4gICAqIOS4u+mimOmFjee9rumhue+8jOWPr+S7pemFjeWQiCBgZWNoYXJ0c0V4dGVuc2lvbnNgIOWKoOi9vem7mOiupOeahOS4u+mimOaWh+S7tlxuICAgKi9cbiAgZWNoYXJ0c1RoZW1lPzogc3RyaW5nIHwgUmVjb3JkPHN0cmluZywgdW5rbm93bj4gfCBudWxsO1xufVxuIl19
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './index';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { Inject, Injectable, Optional } from '@angular/core';
|
2
|
+
import { deepMergeKey } from '@yelon/util/other';
|
3
|
+
import { YUNZAI_CONFIG } from './config.types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
class YunzaiConfigService {
|
6
|
+
constructor(defaultConfig) {
|
7
|
+
this.config = { ...defaultConfig };
|
8
|
+
}
|
9
|
+
get(componentName, key) {
|
10
|
+
const res = (this.config[componentName] || {});
|
11
|
+
return key ? { [key]: res[key] } : res;
|
12
|
+
}
|
13
|
+
merge(componentName, ...defaultValues) {
|
14
|
+
return deepMergeKey({}, true, ...defaultValues, this.get(componentName));
|
15
|
+
}
|
16
|
+
attach(componentThis, componentName, defaultValues) {
|
17
|
+
Object.assign(componentThis, this.merge(componentName, defaultValues));
|
18
|
+
}
|
19
|
+
attachKey(componentThis, componentName, key) {
|
20
|
+
Object.assign(componentThis, this.get(componentName, key));
|
21
|
+
}
|
22
|
+
set(componentName, value) {
|
23
|
+
this.config[componentName] = { ...this.config[componentName], ...value };
|
24
|
+
}
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: YunzaiConfigService, deps: [{ token: YUNZAI_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
26
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' }); }
|
27
|
+
}
|
28
|
+
export { YunzaiConfigService };
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.2", ngImport: i0, type: YunzaiConfigService, decorators: [{
|
30
|
+
type: Injectable,
|
31
|
+
args: [{ providedIn: 'root' }]
|
32
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
33
|
+
type: Optional
|
34
|
+
}, {
|
35
|
+
type: Inject,
|
36
|
+
args: [YUNZAI_CONFIG]
|
37
|
+
}] }]; } });
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijo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JnZShjb21wb25lbnROYW1lLCBkZWZhdWx0VmFsdWVzKSk7XG4gIH1cblxuICBhdHRhY2hLZXk8VCBleHRlbmRzIFl1bnphaUNvbmZpZ0tleT4oY29tcG9uZW50VGhpczogdW5rbm93biwgY29tcG9uZW50TmFtZTogVCwga2V5OiBzdHJpbmcpOiB2b2lkIHtcbiAgICBPYmplY3QuYXNzaWduKGNvbXBvbmVudFRoaXMgYXMgYW55LCB0aGlzLmdldChjb21wb25lbnROYW1lLCBrZXkpKTtcbiAgfVxuXG4gIHNldDxUIGV4dGVuZHMgWXVuemFpQ29uZmlnS2V5Pihjb21wb25lbnROYW1lOiBULCB2YWx1ZTogWXVuemFpQ29uZmlnW1RdKTogdm9pZCB7XG4gICAgdGhpcy5jb25maWdbY29tcG9uZW50TmFtZV0gPSB7IC4uLnRoaXMuY29uZmlnW2NvbXBvbmVudE5hbWVdLCAuLi52YWx1ZSB9O1xuICB9XG59XG4iXX0=
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
2
|
-
export const YUNZAI_CONFIG = new InjectionToken('yunzai-config', {
|
3
|
-
providedIn: 'root',
|
4
|
-
factory: YUNZAI_CONFIG_FACTORY
|
5
|
-
});
|
6
|
-
export function YUNZAI_CONFIG_FACTORY() {
|
7
|
-
return {};
|
8
|
-
}
|
1
|
+
import { InjectionToken } from '@angular/core';
|
2
|
+
export const YUNZAI_CONFIG = new InjectionToken('yunzai-config', {
|
3
|
+
providedIn: 'root',
|
4
|
+
factory: YUNZAI_CONFIG_FACTORY
|
5
|
+
});
|
6
|
+
export function YUNZAI_CONFIG_FACTORY() {
|
7
|
+
return {};
|
8
|
+
}
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvY29u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nS2V5ID0ga2V5b2YgWXVuemFpQ29uZmlnO1xuXG5leHBvcnQgY29uc3QgWVVOWkFJX0NPTkZJRyA9IG5ldyBJbmplY3Rpb25Ub2tlbjxZdW56YWlDb25maWc+KCd5dW56YWktY29uZmlnJywge1xuICBwcm92aWRlZEluOiAncm9vdCcsXG4gIGZhY3Rvcnk6IFlVTlpBSV9DT05GSUdfRkFDVE9SWVxufSk7XG5cbmV4cG9ydCBmdW5jdGlvbiBZVU5aQUlfQ09ORklHX0ZBQ1RPUlkoKTogWXVuemFpQ29uZmlnIHtcbiAgcmV0dXJuIHt9O1xufVxuIl19
|
@@ -1,15 +1,15 @@
|
|
1
|
-
export * from './abc/index';
|
2
|
-
export * from './acl/acl.type';
|
3
|
-
export * from './auth/auth.type';
|
4
|
-
export * from './cache/cache.type';
|
5
|
-
export * from './chart/chart.type';
|
6
|
-
export * from './util/array.type';
|
7
|
-
export * from './util/currency.type';
|
8
|
-
export * from './theme/index';
|
9
|
-
export * from './mock/mock.type';
|
10
|
-
export * from './sf/sf.type';
|
11
|
-
export * from './bis/bis.type';
|
12
|
-
export * from './socket/socket.type';
|
13
|
-
export * from './config.types';
|
14
|
-
export * from './config.service';
|
1
|
+
export * from './abc/index';
|
2
|
+
export * from './acl/acl.type';
|
3
|
+
export * from './auth/auth.type';
|
4
|
+
export * from './cache/cache.type';
|
5
|
+
export * from './chart/chart.type';
|
6
|
+
export * from './util/array.type';
|
7
|
+
export * from './util/currency.type';
|
8
|
+
export * from './theme/index';
|
9
|
+
export * from './mock/mock.type';
|
10
|
+
export * from './sf/sf.type';
|
11
|
+
export * from './bis/bis.type';
|
12
|
+
export * from './socket/socket.type';
|
13
|
+
export * from './config.types';
|
14
|
+
export * from './config.service';
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlc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9ydCAqIGZyb20gJy4vY29uZmlnLnR5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vY29uZmlnLnNlcnZpY2UnO1xuIl19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9jay50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvbW9jay9tb2NrLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgWXVuemFpTW9ja0NvbmZpZyB7XG4gIC8qKlxuICAgKiDor7fmsYLlu7bov5/vvIzljZXkvY3vvJrmr6vnp5LvvIzpu5jorqTvvJpgMzAwYFxuICAgKi9cbiAgZGVsYXk/OiBudW1iZXI7XG4gIC8qKlxuICAgKiDmmK/lkKblvLrliLbmiYDmnInor7fmsYLpg71Nb2Nr77yM6buY6K6k77yaYGZhbHNlYO+8jGB0cnVlYCDooajnpLrlvZPor7fmsYLnmoRVUkzkuI3lrZjlnKjml7bnm7TmjqXov5Tlm54gNDA0IOmUmeivr++8jGBmYWxzZWAg6KGo56S65pyq5ZG95Lit5pe25Y+R6YCB55yf5a6eSFRUUOivt+axglxuICAgKi9cbiAgZm9yY2U/OiBib29sZWFuO1xuICAvKipcbiAgICog5piv5ZCm5omT5Y2wIE1vY2sg6K+35rGC5L+h5oGv77yM5byl6KGl5rWP6KeI5Zmo5pegTmV0d29ya+S/oeaBr++8jOm7mOiupO+8mmB0cnVlYFxuICAgKi9cbiAgbG9nPzogYm9vbGVhbjtcbiAgLyoqXG4gICAqIOaYr+WQpuaLpuaIquWRveS4reWQjue7p+e7reiwg+eUqOWQjue7reaLpuaIquWZqOeahCBgaW50ZXJjZXB0YCDmlrnms5XvvI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K6k77yaYFsncXEuY29tJywgJzE2My5jb20nLCAnZ21haWwuY29tJywgJzEyNi5jb20nLCAnYWxpeXVuLmNvbSddYFxuICAgKi9cbiAgdWlFbWFpbFN1ZmZpeGVzPzogc3RyaW5nW107XG4gIC8qKlxuICAgKiBXaGV0aGVyIHRvIGRlbGF5IHJlbmRlcmluZywgc2hvdWxkIGJlIG1hbnVhbGx5IGNhbGwgYHJlZnJlc2hTY2hlbWEoKWBcbiAgICpcbiAgICog5piv5ZCm5bu26L+f5riy5p+T77yM6ZyA6KaB5omL5Yqo6LCD55SoIGByZWZyZXNoU2NoZW1hKClgXG4gICAqL1xuICBkZWxheT86IGJvb2xlYW47XG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ja2V0LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2NvbmZpZy9zb2NrZXQvc29ja2V0LnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFJ4U3RvbXBDb25maWcgfSBmcm9tICdAc3RvbXAvcngtc3RvbXAnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFl1bnphaVNvY2tldENvbmZpZyBleHRlbmRzIFJ4U3RvbXBDb25maWcge1xuICBiYXNlVXJsOiBzdHJpbmc7XG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHR0cC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvdGhlbWUvaHR0cC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVRoZW1lSHR0cENsaWVudENvbmZpZyB7XG4gIC8qKlxuICAgKiDnqbrlgLzlpITnkIbvvIzpu5jorqTvvJpgaW5jbHVkZWBcbiAgICogLSBpbmNsdWRl77ya5YyF5ZCrXG4gICAqIC0gaWdub3Jl77ya5b+955WlXG4gICAqL1xuICBudWxsVmFsdWVIYW5kbGluZz86ICdpbmNsdWRlJyB8ICdpZ25vcmUnO1xuICAvKipcbiAgICog5pe26Ze05YC85aSE55CG77yM6buY6K6k77yaYHRpbWVzdGFtcGBcbiAgICogLSB0aW1lc3RhbXDvvJrml7bpl7TmiLNcbiAgICogLSBpZ25vcmXvvJrlv73nlaXlpITnkIbvvIzkv53mjIHljp/lp4vnirbmgIFcbiAgICovXG4gIGRhdGVWYWx1ZUhhbmRsaW5nPzogJ3RpbWVzdGFtcCcgfCAnaWdub3JlJztcbn1cbiJdfQ==
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaTE4bi50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvdGhlbWUvaTE4bi50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVRoZW1lSTE4bkNvbmZpZyB7XG4gIC8qKlxuICAgKiBPdmVycmlkZXMgdGhlIGRlZmF1bHQgaW50ZXJwb2xhdGlvbiBzdGFydCBhbmQgZW5kIGRlbGltaXRlcnMgKHt7IGFuZCB9fSkuXG4gICAqXG4gICAqIOaUueWGmem7mOiupOeahOaPkuWAvOihqOi+vuW8j+i1t+atouWIhueVjOespu+8iHt7IOWSjCB9fe+8ieOAglxuICAgKi9cbiAgaW50ZXJwb2xhdGlvbj86IFtzdHJpbmcsIHN0cmluZ107XG5cbiAgLyoqXG4gICAqIEludGVybmF0aW9uYWxpemF0aW9uIGNvZGUgVVJMIGd1YXJkIHBhcmFtZXRlciBuYW1lLCBkZWZhdWx0OiBgaTE4bmBcbiAgICpcbiAgICog5Zu96ZmF5YyW5Luj56CBIFVSTCDlrojljavlj4LmlbDlkI3vvIzpu5jorqTvvJpgaTE4bmBcbiAgICovXG4gIHBhcmFtTmFtZU9mVXJsR3VhcmQ/OiBzdHJpbmc7XG59XG4iXX0=
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './http.type';
|
2
|
-
export * from './responsive.type';
|
3
|
-
export * from './i18n.type';
|
1
|
+
export * from './http.type';
|
2
|
+
export * from './responsive.type';
|
3
|
+
export * from './i18n.type';
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2NvbmZpZy90aGVtZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQztBQUM1QixjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9odHRwLnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9yZXNwb25zaXZlLnR5cGUnO1xuZXhwb3J0ICogZnJvbSAnLi9pMThuLnR5cGUnO1xuIl19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZS50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9jb25maWcvdGhlbWUvcmVzcG9uc2l2ZS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFl1bnphaVRoZW1lUmVzcG9uc2l2ZUNvbmZpZyB7XG4gIHJ1bGVzOiB7XG4gICAgW2tleTogbnVtYmVyXToge1xuICAgICAgeHM/OiBudW1iZXI7XG4gICAgICBzbT86IG51bWJlcjtcbiAgICAgIG1kPzogbnVtYmVyO1xuICAgICAgbGc/OiBudW1iZXI7XG4gICAgICB4bD86IG51bWJlcjtcbiAgICAgIHh4bD86IG51bWJlcjtcbiAgICB9O1xuICB9O1xufVxuIl19
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJyYXkudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvY29uZmlnL3V0aWwvYXJyYXkudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBZdW56YWlVdGlsQXJyYXlDb25maWcge1xuICAvKiog5rex5bqm6aG55ZCN77yM6buY6K6k77yaYCdkZWVwJ2AgKi9cbiAgZGVlcE1hcE5hbWU/OiBzdHJpbmc7XG4gIC8qKiDmiYHlubPlkI7mlbDnu4TnmoTniLbmlbDmja7pobnlkI3vvIzpu5jorqTvvJpgJ3BhcmVudCdgICovXG4gIHBhcmVudE1hcE5hbWU/OiBzdHJpbmc7XG4gIC8qKiDnvJblj7fpobnlkI3vvIzpu5jorqTvvJpgJ2lkJ2AgKi9cbiAgaWRNYXBOYW1lPzogc3RyaW5nO1xuICAvKiog54i257yW5Y+36aG55ZCN77yM6buY6K6k77yaYCdwYXJlbnRfaWQnYCAqL1xuICBwYXJlbnRJZE1hcE5hbWU/OiBzdHJpbmc7XG4gIC8qKiDmupDmlbDmja7lrZDpobnlkI3vvIzpu5jorqTvvJpgJ2NoaWxkcmVuJ2AgKi9cbiAgY2hpbGRyZW5NYXBOYW1lPzogc3RyaW5nO1xuICAvKiog5qCH6aKY6aG55ZCN77yM6buY6K6k77yaYCd0aXRsZSdgICovXG4gIHRpdGxlTWFwTmFtZT86IHN0cmluZztcbiAgLyoqIOiKgueCuSBDaGVja2JveCDmmK/lkKbpgInkuK3pobnlkI3vvIzpu5jorqTvvJpgJ2NoZWNrZWQnYCAqL1xuICBjaGVja2VkTWFwbmFtZT86IHN0cmluZztcbiAgLyoqIOiKgueCueacrOi6q+aYr+WQpumAieS4remhueWQje+8jOm7mOiupO+8mmAnc2VsZWN0ZWQnYCAqL1xuICBzZWxlY3RlZE1hcG5hbWU/OiBzdHJpbmc7XG4gIC8qKiDoioLngrnmmK/lkKblsZXlvIAo5Y+25a2Q6IqC54K55peg5pWIKemhueWQje+8jOm7mOiupO+8mmAnZXhwYW5kZWQnYCAqL1xuICBleHBhbmRlZE1hcG5hbWU/OiBzdHJpbmc7XG4gIC8qKiDorr7nva7mmK/lkKbnpoHnlKjoioLngrko5LiN5Y+v6L+b6KGM5Lu75L2V5pON5L2cKemhueWQje+8jOm7mOiupO+8mmAnZGlzYWJsZWQnYCAqL1xuICBkaXNhYmxlZE1hcG5hbWU/OiBzdHJpbmc7XG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kudHlwZS5qcyIs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IFtkb2N1bWVudF0oaHR0cHM6Ly9hbmd1bGFyLmlvL2FwaS9jb21tb24vQ3VycmVuY3lQaXBlKVxuICAgKlxuICAgKiDoi6XmjIflrprliJnooajnpLrkvb/nlKggQW5ndWxhciDoh6rluKbnmoQgYGN1cnJlbmN5YCDnrqHpgZPmnaXop6PmnpDvvIzop4Fb5paH5qGjXShodHRwczovL2FuZ3VsYXIuY24vYXBpL2NvbW1vbi9DdXJyZW5jeVBpcGUpXG4gICAqL1xuICBuZ0N1cnJlbmN5Pzoge1xuICAgIGRpc3BsYXk6ICdjb2RlJyB8ICdzeW1ib2wnIHwgJ3N5bWJvbC1uYXJyb3cnO1xuICAgIGN1cnJlbmN5Q29kZT86IHN0cmluZztcbiAgICBkaWdpdHNJbmZvPzogc3RyaW5nO1xuICAgIGxvY2FsZT86IHN0cmluZztcbiAgfTtcbn1cbiJdfQ==
|
@@ -1,5 +1,5 @@
|
|
1
|
-
/**
|
2
|
-
* Generated bundle index. Do not edit.
|
3
|
-
*/
|
4
|
-
export * from './index';
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9kYXRlLXRpbWUvZGF0ZS10aW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from './time';
|
2
|
-
export * from './picker';
|
1
|
+
export * from './time';
|
2
|
+
export * from './picker';
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2RhdGUtdGltZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFFBQVEsQ0FBQztBQUN2QixjQUFjLFVBQVUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdGltZSc7XG5leHBvcnQgKiBmcm9tICcuL3BpY2tlcic7XG4iXX0=
|
@@ -1,116 +1,116 @@
|
|
1
|
-
import { addDays, addSeconds, differenceInCalendarDays, format } from 'date-fns';
|
2
|
-
// TODO: timezone process
|
3
|
-
export class DateTimePickerUtil {
|
4
|
-
/**
|
5
|
-
* Current local time
|
6
|
-
*
|
7
|
-
* 当前本地时间
|
8
|
-
*/
|
9
|
-
get now() {
|
10
|
-
return new Date();
|
11
|
-
}
|
12
|
-
/**
|
13
|
-
* Current local date (not including time part)
|
14
|
-
*
|
15
|
-
* 当前本地日期(不包含时间部分)
|
16
|
-
*/
|
17
|
-
get date() {
|
18
|
-
return this.removeTime(this.now);
|
19
|
-
}
|
20
|
-
/**
|
21
|
-
* Remove the time part of the date
|
22
|
-
*
|
23
|
-
* 移除日期的时间部分
|
24
|
-
*/
|
25
|
-
removeTime(d) {
|
26
|
-
return new Date(d.toDateString());
|
27
|
-
}
|
28
|
-
/**
|
29
|
-
* Format date-time
|
30
|
-
*
|
31
|
-
* 格式化日期
|
32
|
-
*/
|
33
|
-
format(d, formatString = 'yyyy-MM-dd HH:mm:ss') {
|
34
|
-
return format(d, formatString);
|
35
|
-
}
|
36
|
-
genTick(count) {
|
37
|
-
return new Array(count).fill(0).map((_, idx) => idx);
|
38
|
-
}
|
39
|
-
/**
|
40
|
-
* Calculate the number of days between two dates, `0` means the same day
|
41
|
-
*
|
42
|
-
* 计算两个日期相差天数,`0` 表示同一天
|
43
|
-
*/
|
44
|
-
getDiffDays(dateLeft, dateRight) {
|
45
|
-
return differenceInCalendarDays(dateLeft, typeof dateRight === 'number' ? addDays(this.date, dateRight) : dateRight || this.date);
|
46
|
-
}
|
47
|
-
/**
|
48
|
-
* Disabled Before date (Default: today), Generally serves `nzDisabledDate`
|
49
|
-
*
|
50
|
-
* 禁用之前日期(默认:今天),一般服务于 `nzDisabledDate`
|
51
|
-
*/
|
52
|
-
disabledBeforeDate(options) {
|
53
|
-
return (d) => this.getDiffDays(d, options?.offsetDays) < 0;
|
54
|
-
}
|
55
|
-
/**
|
56
|
-
* Disabled After date (Default: today), Generally serves `nzDisabledDate`
|
57
|
-
*
|
58
|
-
* 禁用之后日期(默认:今天),一般服务于 `nzDisabledDate`
|
59
|
-
*/
|
60
|
-
disabledAfterDate(options) {
|
61
|
-
return (d) => this.getDiffDays(d, options?.offsetDays) > 0;
|
62
|
-
}
|
63
|
-
baseDisabledTime(type, offsetSeconds) {
|
64
|
-
const tick24 = this.genTick(24);
|
65
|
-
const tick60 = this.genTick(60);
|
66
|
-
return (current) => {
|
67
|
-
const cur = current;
|
68
|
-
if (cur == null) {
|
69
|
-
return {};
|
70
|
-
}
|
71
|
-
const now = addSeconds(this.now, offsetSeconds || 0);
|
72
|
-
const nowHours = now.getHours();
|
73
|
-
const nowMinutes = now.getMinutes();
|
74
|
-
const curHours = cur.getHours();
|
75
|
-
const isToday = this.getDiffDays(this.removeTime(cur)) === 0;
|
76
|
-
return {
|
77
|
-
nzDisabledHours: () => {
|
78
|
-
if (!isToday)
|
79
|
-
return [];
|
80
|
-
return type === 'before' ? tick24.slice(0, nowHours) : tick24.slice(nowHours + 1);
|
81
|
-
},
|
82
|
-
nzDisabledMinutes: () => {
|
83
|
-
if (isToday && curHours === nowHours) {
|
84
|
-
return type === 'before' ? tick60.slice(0, nowMinutes) : tick60.slice(nowMinutes + 1);
|
85
|
-
}
|
86
|
-
return [];
|
87
|
-
},
|
88
|
-
nzDisabledSeconds: () => {
|
89
|
-
if (isToday && curHours === nowHours && cur.getMinutes() === nowMinutes) {
|
90
|
-
const nowSeconds = now.getSeconds();
|
91
|
-
return type === 'before' ? tick60.slice(0, nowSeconds) : tick60.slice(nowSeconds + 1);
|
92
|
-
}
|
93
|
-
return [];
|
94
|
-
}
|
95
|
-
};
|
96
|
-
};
|
97
|
-
}
|
98
|
-
/**
|
99
|
-
* Disabled Before time (Default: now), Generally serves `nzDisabledTime`
|
100
|
-
*
|
101
|
-
* 禁用之前时间(默认:现在),一般服务于 `nzDisabledTime`
|
102
|
-
*/
|
103
|
-
disabledBeforeTime(options) {
|
104
|
-
return this.baseDisabledTime('before', options?.offsetSeconds);
|
105
|
-
}
|
106
|
-
/**
|
107
|
-
* Disabled After time (Default: now), Generally serves `nzDisabledTime`
|
108
|
-
*
|
109
|
-
* 禁用之后时间(默认:现在),一般服务于 `nzDisabledTime`
|
110
|
-
*/
|
111
|
-
disabledAfterTime(options) {
|
112
|
-
return this.baseDisabledTime('after', options?.offsetSeconds);
|
113
|
-
}
|
114
|
-
}
|
115
|
-
export const dateTimePickerUtil = new DateTimePickerUtil();
|
1
|
+
import { addDays, addSeconds, differenceInCalendarDays, format } from 'date-fns';
|
2
|
+
// TODO: timezone process
|
3
|
+
export class DateTimePickerUtil {
|
4
|
+
/**
|
5
|
+
* Current local time
|
6
|
+
*
|
7
|
+
* 当前本地时间
|
8
|
+
*/
|
9
|
+
get now() {
|
10
|
+
return new Date();
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* Current local date (not including time part)
|
14
|
+
*
|
15
|
+
* 当前本地日期(不包含时间部分)
|
16
|
+
*/
|
17
|
+
get date() {
|
18
|
+
return this.removeTime(this.now);
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Remove the time part of the date
|
22
|
+
*
|
23
|
+
* 移除日期的时间部分
|
24
|
+
*/
|
25
|
+
removeTime(d) {
|
26
|
+
return new Date(d.toDateString());
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Format date-time
|
30
|
+
*
|
31
|
+
* 格式化日期
|
32
|
+
*/
|
33
|
+
format(d, formatString = 'yyyy-MM-dd HH:mm:ss') {
|
34
|
+
return format(d, formatString);
|
35
|
+
}
|
36
|
+
genTick(count) {
|
37
|
+
return new Array(count).fill(0).map((_, idx) => idx);
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* Calculate the number of days between two dates, `0` means the same day
|
41
|
+
*
|
42
|
+
* 计算两个日期相差天数,`0` 表示同一天
|
43
|
+
*/
|
44
|
+
getDiffDays(dateLeft, dateRight) {
|
45
|
+
return differenceInCalendarDays(dateLeft, typeof dateRight === 'number' ? addDays(this.date, dateRight) : dateRight || this.date);
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* Disabled Before date (Default: today), Generally serves `nzDisabledDate`
|
49
|
+
*
|
50
|
+
* 禁用之前日期(默认:今天),一般服务于 `nzDisabledDate`
|
51
|
+
*/
|
52
|
+
disabledBeforeDate(options) {
|
53
|
+
return (d) => this.getDiffDays(d, options?.offsetDays) < 0;
|
54
|
+
}
|
55
|
+
/**
|
56
|
+
* Disabled After date (Default: today), Generally serves `nzDisabledDate`
|
57
|
+
*
|
58
|
+
* 禁用之后日期(默认:今天),一般服务于 `nzDisabledDate`
|
59
|
+
*/
|
60
|
+
disabledAfterDate(options) {
|
61
|
+
return (d) => this.getDiffDays(d, options?.offsetDays) > 0;
|
62
|
+
}
|
63
|
+
baseDisabledTime(type, offsetSeconds) {
|
64
|
+
const tick24 = this.genTick(24);
|
65
|
+
const tick60 = this.genTick(60);
|
66
|
+
return (current) => {
|
67
|
+
const cur = current;
|
68
|
+
if (cur == null) {
|
69
|
+
return {};
|
70
|
+
}
|
71
|
+
const now = addSeconds(this.now, offsetSeconds || 0);
|
72
|
+
const nowHours = now.getHours();
|
73
|
+
const nowMinutes = now.getMinutes();
|
74
|
+
const curHours = cur.getHours();
|
75
|
+
const isToday = this.getDiffDays(this.removeTime(cur)) === 0;
|
76
|
+
return {
|
77
|
+
nzDisabledHours: () => {
|
78
|
+
if (!isToday)
|
79
|
+
return [];
|
80
|
+
return type === 'before' ? tick24.slice(0, nowHours) : tick24.slice(nowHours + 1);
|
81
|
+
},
|
82
|
+
nzDisabledMinutes: () => {
|
83
|
+
if (isToday && curHours === nowHours) {
|
84
|
+
return type === 'before' ? tick60.slice(0, nowMinutes) : tick60.slice(nowMinutes + 1);
|
85
|
+
}
|
86
|
+
return [];
|
87
|
+
},
|
88
|
+
nzDisabledSeconds: () => {
|
89
|
+
if (isToday && curHours === nowHours && cur.getMinutes() === nowMinutes) {
|
90
|
+
const nowSeconds = now.getSeconds();
|
91
|
+
return type === 'before' ? tick60.slice(0, nowSeconds) : tick60.slice(nowSeconds + 1);
|
92
|
+
}
|
93
|
+
return [];
|
94
|
+
}
|
95
|
+
};
|
96
|
+
};
|
97
|
+
}
|
98
|
+
/**
|
99
|
+
* Disabled Before time (Default: now), Generally serves `nzDisabledTime`
|
100
|
+
*
|
101
|
+
* 禁用之前时间(默认:现在),一般服务于 `nzDisabledTime`
|
102
|
+
*/
|
103
|
+
disabledBeforeTime(options) {
|
104
|
+
return this.baseDisabledTime('before', options?.offsetSeconds);
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* Disabled After time (Default: now), Generally serves `nzDisabledTime`
|
108
|
+
*
|
109
|
+
* 禁用之后时间(默认:现在),一般服务于 `nzDisabledTime`
|
110
|
+
*/
|
111
|
+
disabledAfterTime(options) {
|
112
|
+
return this.baseDisabledTime('after', options?.offsetSeconds);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
export const dateTimePickerUtil = new DateTimePickerUtil();
|
116
116
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZ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91cnMoKTtcbiAgICAgIGNvbnN0IGlzVG9kYXkgPSB0aGlzLmdldERpZmZEYXlzKHRoaXMucmVtb3ZlVGltZShjdXIpKSA9PT0gMDtcbiAgICAgIHJldHVybiB7XG4gICAgICAgIG56RGlzYWJsZWRIb3VyczogKCkgPT4ge1xuICAgICAgICAgIGlmICghaXNUb2RheSkgcmV0dXJuIFtdO1xuICAgICAgICAgIHJldHVybiB0eXBlID09PSAnYmVmb3JlJyA/IHRpY2syNC5zbGljZSgwLCBub3dIb3VycykgOiB0aWNrMjQuc2xpY2Uobm93SG91cnMgKyAxKTtcbiAgICAgICAgfSxcbiAgICAgICAgbnpEaXNhYmxlZE1pbnV0ZXM6ICgpID0+IHtcbiAgICAgICAgICBpZiAoaXNUb2RheSAmJiBjdXJIb3VycyA9PT0gbm93SG91cnMpIHtcbiAgICAgICAgICAgIHJldHVybiB0eXBlID09PSAnYmVmb3JlJyA/IHRpY2s2MC5zbGljZSgwLCBub3dNaW51dGVzKSA6IHRpY2s2MC5zbGljZShub3dNaW51dGVzICsgMSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiBbXTtcbiAgICAgICAgfSxcbiAgICAgICAgbnpEaXNhYmxlZFNlY29uZHM6ICgpID0+IHtcbiAgICAgICAgICBpZiAoaXNUb2RheSAmJiBjdXJIb3VycyA9PT0gbm93SG91cnMgJiYgY3VyLmdldE1pbnV0ZXMoKSA9PT0gbm93TWludXRlcykge1xuICAgICAgICAgICAgY29uc3Qgbm93U2Vjb25kcyA9IG5vdy5nZXRTZWNvbmRzKCk7XG4gICAgICAgICAgICByZXR1cm4gdHlwZSA9PT0gJ2JlZm9yZScgPyB0aWNrNjAuc2xpY2UoMCwgbm93U2Vjb25kcykgOiB0aWNrNjAuc2xpY2Uobm93U2Vjb25kcyArIDEpO1xuICAgICAgICAgIH1cbiAgICAgICAgICByZXR1cm4gW107XG4gICAgICAgIH1cbiAgICAgIH07XG4gICAgfTtcbiAgfVxuICAvKipcbiAgICog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