@yelon/util 12.0.17 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/array/array-type.service.d.ts +68 -68
- package/{date-time/yelon-util-date-time.d.ts → array/array.d.ts} +5 -4
- package/array/array.service.d.ts +78 -75
- package/array/index.d.ts +2 -2
- package/array/package.json +6 -7
- package/browser/browser.d.ts +5 -4
- package/browser/cookie.service.d.ts +67 -64
- package/browser/copy.d.ts +6 -6
- package/browser/index.d.ts +5 -5
- package/browser/is-empty.d.ts +6 -6
- package/browser/package.json +5 -6
- package/browser/scroll.service.d.ts +37 -34
- 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/image.type.d.ts +15 -15
- package/config/abc/index.d.ts +16 -16
- 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 +427 -427
- 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.d.ts +5 -0
- package/config/config.service.d.ts +13 -10
- package/config/config.types.d.ts +49 -49
- package/config/index.d.ts +14 -14
- package/config/mock/mock.type.d.ts +18 -18
- package/config/package.json +6 -7
- package/config/sf/sf.type.d.ts +127 -127
- package/config/stomp/stomp.type.d.ts +2 -2
- package/config/theme/http.type.d.ts +14 -14
- package/config/theme/i18n.type.d.ts +8 -8
- 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/date-time.d.ts +5 -0
- package/date-time/index.d.ts +2 -2
- package/date-time/package.json +6 -7
- package/date-time/picker.d.ts +68 -68
- package/date-time/time.d.ts +26 -26
- package/decorator/convert.d.ts +24 -24
- package/decorator/decorator.d.ts +5 -0
- package/decorator/index.d.ts +2 -2
- package/decorator/package.json +6 -7
- package/decorator/zone-outside.d.ts +35 -35
- package/{esm2015/array/array-type.service.js → esm2020/array/array-type.service.mjs} +1 -1
- package/esm2020/array/array.mjs +5 -0
- package/esm2020/array/array.service.mjs +278 -0
- package/{esm2015/array/index.js → esm2020/array/index.mjs} +2 -2
- package/{esm2015/browser/browser.js → esm2020/browser/browser.mjs} +4 -4
- package/esm2020/browser/cookie.service.mjs +103 -0
- package/esm2020/browser/copy.mjs +9 -0
- package/{esm2015/browser/index.js → esm2020/browser/index.mjs} +5 -5
- package/{esm2015/browser/is-empty.js → esm2020/browser/is-empty.mjs} +18 -18
- package/esm2020/browser/scroll.service.mjs +88 -0
- package/{esm2015/browser/style.js → esm2020/browser/style.mjs} +38 -38
- package/{esm2015/config/abc/date-picker.type.js → esm2020/config/abc/date-picker.type.mjs} +1 -1
- package/{esm2015/config/abc/error-collect.type.js → esm2020/config/abc/error-collect.type.mjs} +1 -1
- package/{esm2015/config/abc/image.type.js → esm2020/config/abc/image.type.mjs} +1 -1
- package/{esm2015/config/abc/index.js → esm2020/config/abc/index.mjs} +16 -16
- package/{esm2015/config/abc/loading.type.js → esm2020/config/abc/loading.type.mjs} +1 -1
- package/{esm2015/config/abc/lodop.type.js → esm2020/config/abc/lodop.type.mjs} +1 -1
- package/{esm2015/config/abc/media.type.js → esm2020/config/abc/media.type.mjs} +1 -1
- package/{esm2015/config/abc/onboarding.type.js → esm2020/config/abc/onboarding.type.mjs} +1 -1
- package/{esm2015/config/abc/page-header.type.js → esm2020/config/abc/page-header.type.mjs} +1 -1
- package/esm2020/config/abc/pdf.type.mjs +2 -0
- package/esm2020/config/abc/qr.type.mjs +2 -0
- package/{esm2015/config/abc/se.type.js → esm2020/config/abc/se.type.mjs} +1 -1
- package/{esm2015/config/abc/sg.type.js → esm2020/config/abc/sg.type.mjs} +1 -1
- package/{esm2015/config/abc/st.type.js → esm2020/config/abc/st.type.mjs} +1 -1
- package/{esm2015/config/abc/sv.type.js → esm2020/config/abc/sv.type.mjs} +2 -2
- package/{esm2015/config/abc/xlsx.type.js → esm2020/config/abc/xlsx.type.mjs} +1 -1
- package/{esm2015/config/abc/zip.type.js → esm2020/config/abc/zip.type.mjs} +1 -1
- package/{esm2015/config/acl/acl.type.js → esm2020/config/acl/acl.type.mjs} +1 -1
- package/{esm2015/config/auth/auth.type.js → esm2020/config/auth/auth.type.mjs} +1 -1
- package/{esm2015/config/bis/bis.type.js → esm2020/config/bis/bis.type.mjs} +1 -1
- package/{esm2015/config/cache/cache.type.js → esm2020/config/cache/cache.type.mjs} +1 -1
- package/{esm2015/config/chart/chart.type.js → esm2020/config/chart/chart.type.mjs} +1 -1
- package/esm2020/config/config.mjs +5 -0
- package/esm2020/config/config.service.mjs +37 -0
- package/{esm2015/config/config.types.js → esm2020/config/config.types.mjs} +8 -8
- package/{esm2015/config/index.js → esm2020/config/index.mjs} +14 -14
- package/{esm2015/config/mock/mock.type.js → esm2020/config/mock/mock.type.mjs} +1 -1
- package/{esm2015/config/sf/sf.type.js → esm2020/config/sf/sf.type.mjs} +1 -1
- package/{esm2015/config/stomp/stomp.type.js → esm2020/config/stomp/stomp.type.mjs} +1 -1
- package/{esm2015/config/theme/http.type.js → esm2020/config/theme/http.type.mjs} +1 -1
- package/{esm2015/config/theme/i18n.type.js → esm2020/config/theme/i18n.type.mjs} +1 -1
- package/{esm2015/config/theme/index.js → esm2020/config/theme/index.mjs} +3 -3
- package/{esm2015/config/theme/responsive.type.js → esm2020/config/theme/responsive.type.mjs} +1 -1
- package/{esm2015/config/util/array.type.js → esm2020/config/util/array.type.mjs} +1 -1
- package/{esm2015/config/util/currency.type.js → esm2020/config/util/currency.type.mjs} +1 -1
- package/esm2020/date-time/date-time.mjs +5 -0
- package/{esm2015/date-time/index.js → esm2020/date-time/index.mjs} +2 -2
- package/esm2020/date-time/picker.mjs +116 -0
- package/{esm2015/date-time/time.js → esm2020/date-time/time.mjs} +88 -84
- package/esm2020/decorator/convert.mjs +58 -0
- package/esm2020/decorator/decorator.mjs +5 -0
- package/{esm2015/decorator/index.js → esm2020/decorator/index.mjs} +2 -2
- package/esm2020/decorator/zone-outside.mjs +57 -0
- package/esm2020/form/form.mjs +5 -0
- package/{esm2015/form/index.js → esm2020/form/index.mjs} +2 -2
- package/{esm2015/form/match-control.js → esm2020/form/match-control.mjs} +29 -29
- package/{esm2015/form/validators.js → esm2020/form/validators.mjs} +80 -80
- package/esm2020/format/currency.service.mjs +238 -0
- package/{esm2015/format/currency.types.js → esm2020/format/currency.types.mjs} +7 -7
- package/esm2020/format/format.mjs +5 -0
- package/{esm2015/format/index.js → esm2020/format/index.mjs} +4 -4
- package/esm2020/format/string.mjs +85 -0
- package/{esm2015/format/validate.js → esm2020/format/validate.mjs} +93 -93
- package/{esm2015/index.js → esm2020/index.mjs} +11 -11
- package/{esm2015/math/in-range.js → esm2020/math/in-range.mjs} +24 -24
- package/{esm2015/math/index.js → esm2020/math/index.mjs} +2 -2
- package/esm2020/math/math.mjs +5 -0
- package/{esm2015/math/round.js → esm2020/math/round.mjs} +52 -52
- package/{esm2015/other/assert.js → esm2020/other/assert.mjs} +66 -66
- package/{esm2015/other/deep.js → esm2020/other/deep.mjs} +75 -75
- package/{esm2015/other/index.js → esm2020/other/index.mjs} +7 -5
- package/esm2020/other/lazy.service.mjs +119 -0
- package/{esm2015/other/logger.js → esm2020/other/logger.mjs} +32 -32
- package/esm2020/other/other.mjs +5 -0
- package/esm2020/other/resize.mjs +4 -0
- package/esm2020/other/url.mjs +13 -0
- package/esm2020/pipes/currency/cny.pipe.mjs +23 -0
- package/{esm2015/pipes/currency/index.js → esm2020/pipes/currency/index.mjs} +5 -4
- package/esm2020/pipes/currency/mega.pipe.mjs +29 -0
- package/esm2020/pipes/currency/module.mjs +19 -0
- package/esm2020/pipes/currency/pipe-currency.mjs +5 -0
- package/esm2020/pipes/currency/price.pipe.mjs +27 -0
- package/esm2020/pipes/filter/filter.pipe.mjs +19 -0
- package/{esm2015/pipes/filter/index.js → esm2020/pipes/filter/index.mjs} +2 -2
- package/esm2020/pipes/filter/module.mjs +17 -0
- package/{esm2015/other/yelon-util-other.js → esm2020/pipes/filter/pipe-filter.mjs} +5 -5
- package/{esm2015/pipes/format/index.js → esm2020/pipes/format/index.mjs} +2 -2
- package/esm2020/pipes/format/mask.pipe.mjs +34 -0
- package/esm2020/pipes/format/module.mjs +17 -0
- package/{esm2015/array/yelon-util-array.js → esm2020/pipes/format/pipe-format.mjs} +5 -5
- package/{esm2015/pipes/index.js → esm2020/pipes/index.mjs} +3 -3
- package/esm2020/pipes/pipes.mjs +5 -0
- package/{esm2015/token/index.js → esm2020/token/index.mjs} +2 -2
- package/{esm2015/token/page-visibility.js → esm2020/token/page-visibility.mjs} +15 -15
- package/esm2020/token/token.mjs +5 -0
- package/{esm2015/token/window.js → esm2020/token/window.mjs} +16 -16
- package/{esm2015/yelon-util.js → esm2020/yelon-util.mjs} +4 -4
- package/fesm2015/{yelon-util-array.js → array.mjs} +247 -249
- package/fesm2015/array.mjs.map +1 -0
- package/fesm2015/{browser.js → browser.mjs} +249 -263
- package/fesm2015/browser.mjs.map +1 -0
- package/fesm2015/{yelon-util-config.js → config.mjs} +44 -38
- package/fesm2015/config.mjs.map +1 -0
- package/fesm2015/{yelon-util-date-time.js → date-time.mjs} +197 -197
- package/fesm2015/date-time.mjs.map +1 -0
- package/fesm2015/{yelon-util-decorator.js → decorator.mjs} +112 -108
- package/fesm2015/decorator.mjs.map +1 -0
- package/fesm2015/{yelon-util-form.js → form.mjs} +109 -109
- package/fesm2015/form.mjs.map +1 -0
- package/fesm2015/{yelon-util-format.js → format.mjs} +398 -394
- package/fesm2015/format.mjs.map +1 -0
- package/fesm2015/{yelon-util-math.js → math.mjs} +76 -76
- package/fesm2015/math.mjs.map +1 -0
- package/fesm2015/{yelon-util-other.js → other.mjs} +304 -284
- package/fesm2015/other.mjs.map +1 -0
- package/fesm2015/pipe-currency.mjs +96 -0
- package/fesm2015/pipe-currency.mjs.map +1 -0
- package/fesm2015/pipe-filter.mjs +40 -0
- package/fesm2015/pipe-filter.mjs.map +1 -0
- package/fesm2015/pipe-format.mjs +55 -0
- package/fesm2015/pipe-format.mjs.map +1 -0
- package/fesm2015/{yelon-util-pipes.js → pipes.mjs} +3 -3
- package/fesm2015/pipes.mjs.map +1 -0
- package/fesm2015/{yelon-util-token.js → token.mjs} +26 -26
- package/fesm2015/token.mjs.map +1 -0
- package/fesm2015/{yelon-util.js → yelon-util.mjs} +3 -3
- package/fesm2015/yelon-util.mjs.map +1 -0
- package/fesm2020/array.mjs +285 -0
- package/fesm2020/array.mjs.map +1 -0
- package/fesm2020/browser.mjs +260 -0
- package/fesm2020/browser.mjs.map +1 -0
- package/fesm2020/config.mjs +54 -0
- package/fesm2020/config.mjs.map +1 -0
- package/fesm2020/date-time.mjs +210 -0
- package/fesm2020/date-time.mjs.map +1 -0
- package/fesm2020/decorator.mjs +121 -0
- package/fesm2020/decorator.mjs.map +1 -0
- package/fesm2020/form.mjs +118 -0
- package/fesm2020/form.mjs.map +1 -0
- package/fesm2020/format.mjs +431 -0
- package/fesm2020/format.mjs.map +1 -0
- package/fesm2020/math.mjs +85 -0
- package/fesm2020/math.mjs.map +1 -0
- package/fesm2020/other.mjs +318 -0
- package/{fesm2015/yelon-util-other.js.map → fesm2020/other.mjs.map} +1 -1
- package/fesm2020/pipe-currency.mjs +94 -0
- package/fesm2020/pipe-currency.mjs.map +1 -0
- package/fesm2020/pipe-filter.mjs +40 -0
- package/fesm2020/pipe-filter.mjs.map +1 -0
- package/fesm2020/pipe-format.mjs +55 -0
- package/fesm2020/pipe-format.mjs.map +1 -0
- package/fesm2020/pipes.mjs +8 -0
- package/fesm2020/pipes.mjs.map +1 -0
- package/fesm2020/token.mjs +38 -0
- package/fesm2020/token.mjs.map +1 -0
- package/fesm2020/yelon-util.mjs +16 -0
- package/fesm2020/yelon-util.mjs.map +1 -0
- package/{array/yelon-util-array.d.ts → form/form.d.ts} +5 -4
- package/form/index.d.ts +2 -2
- package/form/match-control.d.ts +15 -15
- package/form/package.json +6 -7
- package/form/validators.d.ts +62 -62
- package/format/currency.service.d.ts +37 -34
- package/format/currency.types.d.ts +77 -77
- package/format/format.d.ts +5 -0
- package/format/index.d.ts +4 -4
- package/format/package.json +6 -7
- package/format/string.d.ts +44 -44
- package/format/validate.d.ts +72 -72
- package/index.d.ts +11 -11
- package/math/in-range.d.ts +14 -14
- package/math/index.d.ts +2 -2
- package/{config/yelon-util-config.d.ts → math/math.d.ts} +5 -4
- package/math/package.json +6 -7
- package/math/round.d.ts +33 -33
- package/other/assert.d.ts +36 -36
- package/other/deep.d.ts +33 -33
- package/other/index.d.ts +6 -4
- package/other/lazy.service.d.ts +25 -22
- package/other/logger.d.ts +5 -5
- package/{decorator/yelon-util-decorator.d.ts → other/other.d.ts} +5 -4
- package/other/package.json +6 -7
- package/other/resize.d.ts +1 -0
- package/other/url.d.ts +2 -0
- package/package.json +132 -8
- package/pipes/currency/cny.pipe.d.ts +15 -12
- package/pipes/currency/index.d.ts +4 -3
- package/pipes/currency/mega.pipe.d.ts +16 -13
- package/pipes/currency/module.d.ts +9 -2
- package/pipes/currency/package.json +6 -7
- package/pipes/currency/pipe-currency.d.ts +5 -0
- package/pipes/currency/price.pipe.d.ts +19 -16
- package/pipes/filter/filter.pipe.d.ts +13 -10
- package/pipes/filter/index.d.ts +2 -2
- package/pipes/filter/module.d.ts +7 -2
- package/pipes/filter/package.json +6 -7
- package/pipes/filter/pipe-filter.d.ts +5 -0
- package/pipes/format/index.d.ts +2 -2
- package/pipes/format/mask.pipe.d.ts +27 -24
- package/pipes/format/module.d.ts +7 -2
- package/pipes/format/package.json +6 -7
- package/pipes/format/pipe-format.d.ts +5 -0
- package/pipes/index.d.ts +3 -3
- package/pipes/package.json +6 -7
- package/pipes/pipes.d.ts +5 -0
- package/token/index.d.ts +2 -2
- package/token/package.json +6 -7
- package/token/page-visibility.d.ts +8 -8
- package/token/token.d.ts +5 -0
- package/token/window.d.ts +7 -7
- package/yelon-util.d.ts +5 -4
- package/array/yelon-util-array.metadata.json +0 -1
- package/browser/browser.metadata.json +0 -1
- package/bundles/browser.umd.js +0 -325
- package/bundles/browser.umd.js.map +0 -1
- package/bundles/yelon-util-array.umd.js +0 -641
- package/bundles/yelon-util-array.umd.js.map +0 -1
- package/bundles/yelon-util-config.umd.js +0 -411
- package/bundles/yelon-util-config.umd.js.map +0 -1
- package/bundles/yelon-util-date-time.umd.js +0 -238
- package/bundles/yelon-util-date-time.umd.js.map +0 -1
- package/bundles/yelon-util-decorator.umd.js +0 -462
- package/bundles/yelon-util-decorator.umd.js.map +0 -1
- package/bundles/yelon-util-form.umd.js +0 -135
- package/bundles/yelon-util-form.umd.js.map +0 -1
- package/bundles/yelon-util-format.umd.js +0 -785
- package/bundles/yelon-util-format.umd.js.map +0 -1
- package/bundles/yelon-util-math.umd.js +0 -104
- package/bundles/yelon-util-math.umd.js.map +0 -1
- package/bundles/yelon-util-other.umd.js +0 -714
- package/bundles/yelon-util-other.umd.js.map +0 -1
- package/bundles/yelon-util-pipes-currency.umd.js +0 -108
- package/bundles/yelon-util-pipes-currency.umd.js.map +0 -1
- package/bundles/yelon-util-pipes-filter.umd.js +0 -374
- package/bundles/yelon-util-pipes-filter.umd.js.map +0 -1
- package/bundles/yelon-util-pipes-format.umd.js +0 -66
- package/bundles/yelon-util-pipes-format.umd.js.map +0 -1
- package/bundles/yelon-util-pipes.umd.js +0 -38
- package/bundles/yelon-util-pipes.umd.js.map +0 -1
- package/bundles/yelon-util-token.umd.js +0 -49
- package/bundles/yelon-util-token.umd.js.map +0 -1
- package/bundles/yelon-util.umd.js +0 -86
- package/bundles/yelon-util.umd.js.map +0 -1
- package/config/yelon-util-config.metadata.json +0 -1
- package/date-time/yelon-util-date-time.metadata.json +0 -1
- package/decorator/yelon-util-decorator.metadata.json +0 -1
- package/esm2015/array/array.service.js +0 -250
- package/esm2015/browser/cookie.service.js +0 -104
- package/esm2015/browser/copy.js +0 -27
- package/esm2015/browser/scroll.service.js +0 -89
- package/esm2015/config/abc/pdf.type.js +0 -2
- package/esm2015/config/abc/qr.type.js +0 -2
- package/esm2015/config/config.service.js +0 -34
- package/esm2015/config/yelon-util-config.js +0 -5
- package/esm2015/date-time/picker.js +0 -116
- package/esm2015/date-time/yelon-util-date-time.js +0 -5
- package/esm2015/decorator/convert.js +0 -56
- package/esm2015/decorator/yelon-util-decorator.js +0 -5
- package/esm2015/decorator/zone-outside.js +0 -55
- package/esm2015/form/yelon-util-form.js +0 -5
- package/esm2015/format/currency.service.js +0 -225
- package/esm2015/format/string.js +0 -76
- package/esm2015/format/yelon-util-format.js +0 -5
- package/esm2015/math/yelon-util-math.js +0 -5
- package/esm2015/other/lazy.service.js +0 -118
- package/esm2015/pipes/currency/cny.pipe.js +0 -22
- package/esm2015/pipes/currency/mega.pipe.js +0 -26
- package/esm2015/pipes/currency/module.js +0 -14
- package/esm2015/pipes/currency/price.pipe.js +0 -26
- package/esm2015/pipes/currency/yelon-util-pipes-currency.js +0 -6
- package/esm2015/pipes/filter/filter.pipe.js +0 -15
- package/esm2015/pipes/filter/module.js +0 -12
- package/esm2015/pipes/filter/yelon-util-pipes-filter.js +0 -5
- package/esm2015/pipes/format/mask.pipe.js +0 -30
- package/esm2015/pipes/format/module.js +0 -12
- package/esm2015/pipes/format/yelon-util-pipes-format.js +0 -5
- package/esm2015/pipes/yelon-util-pipes.js +0 -5
- package/esm2015/token/yelon-util-token.js +0 -5
- package/fesm2015/browser.js.map +0 -1
- package/fesm2015/yelon-util-array.js.map +0 -1
- package/fesm2015/yelon-util-config.js.map +0 -1
- package/fesm2015/yelon-util-date-time.js.map +0 -1
- package/fesm2015/yelon-util-decorator.js.map +0 -1
- package/fesm2015/yelon-util-form.js.map +0 -1
- package/fesm2015/yelon-util-format.js.map +0 -1
- package/fesm2015/yelon-util-math.js.map +0 -1
- package/fesm2015/yelon-util-pipes-currency.js +0 -87
- package/fesm2015/yelon-util-pipes-currency.js.map +0 -1
- package/fesm2015/yelon-util-pipes-filter.js +0 -32
- package/fesm2015/yelon-util-pipes-filter.js.map +0 -1
- package/fesm2015/yelon-util-pipes-format.js +0 -47
- package/fesm2015/yelon-util-pipes-format.js.map +0 -1
- package/fesm2015/yelon-util-pipes.js.map +0 -1
- package/fesm2015/yelon-util-token.js.map +0 -1
- package/fesm2015/yelon-util.js.map +0 -1
- package/form/yelon-util-form.d.ts +0 -4
- package/form/yelon-util-form.metadata.json +0 -1
- package/format/yelon-util-format.d.ts +0 -4
- package/format/yelon-util-format.metadata.json +0 -1
- package/math/yelon-util-math.d.ts +0 -4
- package/math/yelon-util-math.metadata.json +0 -1
- package/other/yelon-util-other.d.ts +0 -4
- package/other/yelon-util-other.metadata.json +0 -1
- package/pipes/currency/yelon-util-pipes-currency.d.ts +0 -5
- package/pipes/currency/yelon-util-pipes-currency.metadata.json +0 -1
- package/pipes/filter/yelon-util-pipes-filter.d.ts +0 -4
- package/pipes/filter/yelon-util-pipes-filter.metadata.json +0 -1
- package/pipes/format/yelon-util-pipes-format.d.ts +0 -4
- package/pipes/format/yelon-util-pipes-format.metadata.json +0 -1
- package/pipes/yelon-util-pipes.d.ts +0 -4
- package/pipes/yelon-util-pipes.metadata.json +0 -1
- package/token/yelon-util-token.d.ts +0 -4
- package/token/yelon-util-token.metadata.json +0 -1
- package/yelon-util.metadata.json +0 -1
@@ -0,0 +1,37 @@
|
|
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
|
+
export 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
|
+
}
|
26
|
+
YunzaiConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YunzaiConfigService, deps: [{ token: YUNZAI_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
27
|
+
YunzaiConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YunzaiConfigService, providedIn: 'root' });
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YunzaiConfigService, decorators: [{
|
29
|
+
type: Injectable,
|
30
|
+
args: [{ providedIn: 'root' }]
|
31
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
32
|
+
type: Optional
|
33
|
+
}, {
|
34
|
+
type: Inject,
|
35
|
+
args: [YUNZAI_CONFIG]
|
36
|
+
}] }]; } });
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLnNlcnZ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50VGhpcywgdGhpcy5tZXJnZShjb21wb25lbnROYW1lLCBkZWZhdWx0VmFsdWVzKSk7XG4gIH1cblxuICBhdHRhY2hLZXk8VCBleHRlbmRzIFl1bnphaUNvbmZpZ0tleT4oY29tcG9uZW50VGhpczogdW5rbm93biwgY29tcG9uZW50TmFtZTogVCwga2V5OiBzdHJpbmcpOiB2b2lkIHtcbiAgICBPYmplY3QuYXNzaWduKGNvbXBvbmVudFRoaXMsIHRoaXMuZ2V0KGNvbXBvbmVudE5hbWUsIGtleSkpO1xuICB9XG5cbiAgc2V0PFQgZXh0ZW5kcyBZdW56YWlDb25maWdLZXk+KGNvbXBvbmVudE5hbWU6IFQsIHZhbHVlOiBZdW56YWlDb25maWdbVF0pOiB2b2lkIHtcbiAgICB0aGlzLmNvbmZpZ1tjb21wb25lbnROYW1lXSA9IHsgLi4udGhpcy5jb25maWdbY29tcG9uZW50TmFtZV0sIC4uLnZhbHVlIH07XG4gIH1cbn1cbiJdfQ==
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLnR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvd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maWc7XG59XG5cbmV4cG9ydCB0eXBlIFl1bnphaUNvbmZpZ0tleSA9IGtleW9mIFl1bnphaUNvbmZpZztcblxuZXhwb3J0IGNvbnN0IFlVTlpBSV9DT05GSUcgPSBuZXcgSW5qZWN0aW9uVG9rZW48WXVuemFpQ29uZmlnPigneXVuemFpLWNvbmZpZycsIHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxuICBmYWN0b3J5OiBZVU5aQUlfQ09ORklHX0ZBQ1RPUllcbn0pO1xuXG5leHBvcnQgZnVuY3Rpb24gWVVOWkFJX0NPTkZJR19GQUNUT1JZKCk6IFl1bnphaUNvbmZpZyB7XG4gIHJldHVybiB7fTtcbn1cbiJdfQ==
|
@@ -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 './stomp/stomp.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 './stomp/stomp.type';
|
13
|
+
export * from './config.types';
|
14
|
+
export * from './config.service';
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VS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vcnQgKiBmcm9tICcuL3N0b21wL3N0b21wLnR5cGUnO1xuXG5leHBvcnQgKiBmcm9tICcuL2NvbmZpZy50eXBlcyc7XG5leHBvcnQgKiBmcm9tICcuL2NvbmZpZy5zZXJ2aWNlJztcbiJdfQ==
|
@@ -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+e7reiw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b3JtYXQ6ICdlbWFpbCdgIOeahOm7mOiupEVtYWls5ZCO57yA77yM6buY6K6k77yaYFsncXEuY29tJywgJzE2My5jb20nLCAnZ21haWwuY29tJywgJzEyNi5jb20nLCAnYWxpeXVuLmNvbSddYFxuICAgKi9cbiAgdWlFbWFpbFN1ZmZpeGVzPzogc3RyaW5nW107XG59XG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export {};
|
1
|
+
export {};
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvbXAudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvY29uZmlnL3N0b21wL3N0b21wLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFJ4U3RvbXBDb25maWcgfSBmcm9tICdAc3RvbXAvcngtc3RvbXAnO1xuXG5leHBvcnQgdHlwZSBZdW56YWlTdG9tcENvbmZpZyA9IFJ4U3RvbXBDb25maWc7XG4iXX0=
|
@@ -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+8ieOAglxuICAgKi9cbiAgaW50ZXJwb2xhdGlvbj86IFtzdHJpbmcsIHN0cmluZ107XG59XG4iXX0=
|
@@ -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
|
package/{esm2015/config/theme/responsive.type.js → esm2020/config/theme/responsive.type.mjs}
RENAMED
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycmVuY3kudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvY29uZmlnL3V0aWwvY3VycmVuY3kudHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBZdW56YWlVdGlsQ3VycmVuY3lDb25maWcge1xuICAvKipcbiAgICogU3RhcnRpbmcgdW5pdCwgZGVmYXVsdDogYHl1YW5gXG4gICAqXG4gICAqIOi1t+Wni+WNleS9je+8jOm7mOiupO+8mmB5dWFuYFxuICAgKiAtIGB5dWFuYCDkurrmsJHluIHvvJrlhYNcbiAgICogLSBgY2VudGAg5Lq65rCR5biB77ya5YiGX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W5nO1xuICAgIGxvY2FsZT86IHN0cmluZztcbiAgfTtcbn1cbiJdfQ==
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
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=
|
@@ -0,0 +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();
|
116
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9kYXRlLXRpbWUvcGlja2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsVUFBVSxFQUFFLHdCQUF3QixFQUFFLE1BQU0sRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUtqRix5QkFBeUI7QUFDekIsTUFBTSxPQUFPLGtCQUFrQjtJQUM3Qjs7OztPQUlHO0lBQ0gsSUFBSSxHQUFHO1FBQ0wsT0FBTyxJQUFJLElBQUksRUFBRSxDQUFDO0lBQ3BCLENBQUM7SUFDRDs7OztPQUlHO0lBQ0gsSUFBSSxJQUFJO1FBQ04sT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUNuQyxDQUFDO0lBQ0Q7Ozs7T0FJRztJQUNILFVBQVUsQ0FBQyxDQUFPO1FBQ2hCLE9BQU8sSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLFlBQVksRUFBRSxDQUFDLENBQUM7SUFDcEMsQ0FBQztJQUNEOzs7O09BSUc7SUFDSCxNQUFNLENBQUMsQ0FBZ0IsRUFBRSxlQUF1QixxQkFBcUI7UUFDbkUsT0FBTyxNQUFNLENBQUMsQ0FBQyxFQUFFLFlBQVksQ0FBQyxDQUFDO0lBQ2pDLENBQUM7SUFDTyxPQUFP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bWJlciB9KTogRGlzYWJsZWRUaW1lRm4ge1xuICAgIHJldHVybiB0aGlzLmJhc2VEaXNhYmxlZFRpbWUoJ2FmdGVyJywgb3B0aW9ucz8ub2Zmc2V0U2Vjb25kcyk7XG4gIH1cbn1cblxuZXhwb3J0IGNvbnN0IGRhdGVUaW1lUGlja2VyVXRpbCA9IG5ldyBEYXRlVGltZVBpY2tlclV0aWwoKTtcbiJdfQ==
|
@@ -1,84 +1,88 @@
|
|
1
|
-
import { addDays, endOfDay, endOfMonth, endOfWeek, endOfYear, parse, parseISO, startOfDay, startOfMonth, startOfWeek, startOfYear, subMonths, subWeeks, subYears } from 'date-fns';
|
2
|
-
/**
|
3
|
-
* Get the time range, return `[ Date, Date]` for the start and end dates
|
4
|
-
*
|
5
|
-
* 获取时间范围
|
6
|
-
*
|
7
|
-
* @param type 类型,带 `-` 表示过去一个时间,若指定 `number` 表示天数
|
8
|
-
* @param time 开始时间
|
9
|
-
*/
|
10
|
-
export function getTimeDistance(type, time) {
|
11
|
-
time = time
|
12
|
-
? typeof time === 'string'
|
13
|
-
? parse(time, 'yyyy-MM-dd HH:mm:ss', new Date())
|
14
|
-
: new Date(time)
|
15
|
-
: new Date();
|
16
|
-
const options = { weekStartsOn: 1 };
|
17
|
-
let res;
|
18
|
-
switch (type) {
|
19
|
-
case 'today':
|
20
|
-
res = [time, time];
|
21
|
-
break;
|
22
|
-
case '-today':
|
23
|
-
res = [addDays(time, -1), time];
|
24
|
-
break;
|
25
|
-
case 'yesterday':
|
26
|
-
res = [addDays(time, -1), addDays(time, -1)];
|
27
|
-
break;
|
28
|
-
case 'week':
|
29
|
-
res = [startOfWeek(time, options), endOfWeek(time, options)];
|
30
|
-
break;
|
31
|
-
case '-week':
|
32
|
-
res = [startOfWeek(subWeeks(time, 1), options), endOfWeek(subWeeks(time, 1), options)];
|
33
|
-
break;
|
34
|
-
case 'month':
|
35
|
-
res = [startOfMonth(time), endOfMonth(time)];
|
36
|
-
break;
|
37
|
-
case '-month':
|
38
|
-
res = [startOfMonth(subMonths(time, 1)), endOfMonth(subMonths(time, 1))];
|
39
|
-
break;
|
40
|
-
case 'year':
|
41
|
-
res = [startOfYear(time), endOfYear(time)];
|
42
|
-
break;
|
43
|
-
case '-year':
|
44
|
-
res = [startOfYear(subYears(time, 1)), endOfYear(subYears(time, 1))];
|
45
|
-
break;
|
46
|
-
default:
|
47
|
-
res = type > 0 ? [time, addDays(time, type)] : [addDays(time, type), time];
|
48
|
-
break;
|
49
|
-
}
|
50
|
-
return fixEndTimeOfRange(res);
|
51
|
-
}
|
52
|
-
/**
|
53
|
-
* fix time is the most, big value
|
54
|
-
*/
|
55
|
-
export function fixEndTimeOfRange(dates) {
|
56
|
-
return [startOfDay(dates[0]), endOfDay(dates[1])];
|
57
|
-
}
|
58
|
-
/**
|
59
|
-
* Return the date parsed from string using the given format string
|
60
|
-
* - If the argument is a number, it is treated as a timestamp.
|
61
|
-
*
|
62
|
-
* @param formatString If parsing fails try to parse the date by pressing `formatString`
|
63
|
-
* @param defaultValue If parsing fails returned default value, default: `new Date(NaN)`
|
64
|
-
*/
|
65
|
-
export function toDate(value, options) {
|
66
|
-
if (typeof options === 'string')
|
67
|
-
options = { formatString: options };
|
68
|
-
const { formatString, defaultValue } =
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
if (
|
80
|
-
|
81
|
-
}
|
82
|
-
|
83
|
-
|
84
|
-
|
1
|
+
import { addDays, endOfDay, endOfMonth, endOfWeek, endOfYear, parse, parseISO, startOfDay, startOfMonth, startOfWeek, startOfYear, subMonths, subWeeks, subYears } from 'date-fns';
|
2
|
+
/**
|
3
|
+
* Get the time range, return `[ Date, Date]` for the start and end dates
|
4
|
+
*
|
5
|
+
* 获取时间范围
|
6
|
+
*
|
7
|
+
* @param type 类型,带 `-` 表示过去一个时间,若指定 `number` 表示天数
|
8
|
+
* @param time 开始时间
|
9
|
+
*/
|
10
|
+
export function getTimeDistance(type, time) {
|
11
|
+
time = time
|
12
|
+
? typeof time === 'string'
|
13
|
+
? parse(time, 'yyyy-MM-dd HH:mm:ss', new Date())
|
14
|
+
: new Date(time)
|
15
|
+
: new Date();
|
16
|
+
const options = { weekStartsOn: 1 };
|
17
|
+
let res;
|
18
|
+
switch (type) {
|
19
|
+
case 'today':
|
20
|
+
res = [time, time];
|
21
|
+
break;
|
22
|
+
case '-today':
|
23
|
+
res = [addDays(time, -1), time];
|
24
|
+
break;
|
25
|
+
case 'yesterday':
|
26
|
+
res = [addDays(time, -1), addDays(time, -1)];
|
27
|
+
break;
|
28
|
+
case 'week':
|
29
|
+
res = [startOfWeek(time, options), endOfWeek(time, options)];
|
30
|
+
break;
|
31
|
+
case '-week':
|
32
|
+
res = [startOfWeek(subWeeks(time, 1), options), endOfWeek(subWeeks(time, 1), options)];
|
33
|
+
break;
|
34
|
+
case 'month':
|
35
|
+
res = [startOfMonth(time), endOfMonth(time)];
|
36
|
+
break;
|
37
|
+
case '-month':
|
38
|
+
res = [startOfMonth(subMonths(time, 1)), endOfMonth(subMonths(time, 1))];
|
39
|
+
break;
|
40
|
+
case 'year':
|
41
|
+
res = [startOfYear(time), endOfYear(time)];
|
42
|
+
break;
|
43
|
+
case '-year':
|
44
|
+
res = [startOfYear(subYears(time, 1)), endOfYear(subYears(time, 1))];
|
45
|
+
break;
|
46
|
+
default:
|
47
|
+
res = type > 0 ? [time, addDays(time, type)] : [addDays(time, type), time];
|
48
|
+
break;
|
49
|
+
}
|
50
|
+
return fixEndTimeOfRange(res);
|
51
|
+
}
|
52
|
+
/**
|
53
|
+
* fix time is the most, big value
|
54
|
+
*/
|
55
|
+
export function fixEndTimeOfRange(dates) {
|
56
|
+
return [startOfDay(dates[0]), endOfDay(dates[1])];
|
57
|
+
}
|
58
|
+
/**
|
59
|
+
* Return the date parsed from string using the given format string
|
60
|
+
* - If the argument is a number, it is treated as a timestamp.
|
61
|
+
*
|
62
|
+
* @param formatString If parsing fails try to parse the date by pressing `formatString`
|
63
|
+
* @param defaultValue If parsing fails returned default value, default: `new Date(NaN)`
|
64
|
+
*/
|
65
|
+
export function toDate(value, options) {
|
66
|
+
if (typeof options === 'string')
|
67
|
+
options = { formatString: options };
|
68
|
+
const { formatString, defaultValue } = {
|
69
|
+
formatString: 'yyyy-MM-dd HH:mm:ss',
|
70
|
+
defaultValue: new Date(NaN),
|
71
|
+
...options
|
72
|
+
};
|
73
|
+
if (value == null) {
|
74
|
+
return defaultValue;
|
75
|
+
}
|
76
|
+
if (value instanceof Date) {
|
77
|
+
return value;
|
78
|
+
}
|
79
|
+
if (typeof value === 'number' || (typeof value === 'string' && /[0-9]{10,13}/.test(value))) {
|
80
|
+
return new Date(+value);
|
81
|
+
}
|
82
|
+
let tryDate = parseISO(value);
|
83
|
+
if (isNaN(tryDate)) {
|
84
|
+
tryDate = parse(value, formatString, new Date());
|
85
|
+
}
|
86
|
+
return isNaN(tryDate) ? defaultValue : tryDate;
|
87
|
+
}
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvZGF0ZS10aW1lL3RpbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLE9BQU8sRUFDUCxRQUFRLEVBQ1IsVUFBVSxFQUNWLFNBQVMsRUFDVCxTQUFTLEVBQ1QsS0FBSyxFQUNMLFFBQVEsRUFDUixVQUFVLEVBQ1YsWUFBWSxFQUNaLFdBQVcsRUFDWCxXQUFXLEVBQ1gsU0FBUyxFQUNULFFBQVEsRUFDUixRQUFRLEVBQ1QsTUFBTSxVQUFVLENBQUM7QUFJbEI7Ozs7Ozs7R0FPRztBQUNILE1BQU0sVUFBVSxlQUFlLENBQzdCLElBQTBHLEVBQzFH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B2YWx1ZSA9PT0gJ3N0cmluZycgJiYgL1swLTldezEwLDEzfS8udGVzdCh2YWx1ZSkpKSB7XG4gICAgcmV0dXJuIG5ldyBEYXRlKCt2YWx1ZSk7XG4gIH1cbiAgbGV0IHRyeURhdGUgPSBwYXJzZUlTTyh2YWx1ZSk7XG4gIGlmIChpc05hTih0cnlEYXRlIGFzIE56U2FmZUFueSkpIHtcbiAgICB0cnlEYXRlID0gcGFyc2UodmFsdWUsIGZvcm1hdFN0cmluZyEsIG5ldyBEYXRlKCkpO1xuICB9XG5cbiAgcmV0dXJuIGlzTmFOKHRyeURhdGUgYXMgTnpTYWZlQW55KSA/IGRlZmF1bHRWYWx1ZSA6IHRyeURhdGU7XG59XG4iXX0=
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { warn } from '@yelon/util/other';
|
2
|
+
function propDecoratorFactory(name, fallback, defaultValue) {
|
3
|
+
function propDecorator(target, propName, originalDescriptor) {
|
4
|
+
const privatePropName = `$$__${propName}`;
|
5
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
6
|
+
if (Object.prototype.hasOwnProperty.call(target, privatePropName)) {
|
7
|
+
warn(`The prop "${privatePropName}" is already exist, it will be overrided by ${name} decorator.`);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
Object.defineProperty(target, privatePropName, {
|
11
|
+
configurable: true,
|
12
|
+
writable: true
|
13
|
+
});
|
14
|
+
return {
|
15
|
+
get() {
|
16
|
+
return originalDescriptor && originalDescriptor.get
|
17
|
+
? originalDescriptor.get.bind(this)()
|
18
|
+
: this[privatePropName];
|
19
|
+
},
|
20
|
+
set(value) {
|
21
|
+
if (originalDescriptor && originalDescriptor.set) {
|
22
|
+
originalDescriptor.set.bind(this)(fallback(value, defaultValue));
|
23
|
+
}
|
24
|
+
this[privatePropName] = fallback(value, defaultValue);
|
25
|
+
}
|
26
|
+
};
|
27
|
+
}
|
28
|
+
return propDecorator;
|
29
|
+
}
|
30
|
+
export function toBoolean(value, defaultValue = false) {
|
31
|
+
return value == null ? defaultValue : `${value}` !== 'false';
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* Input decorator that handle a prop to do get/set automatically with toBoolean
|
35
|
+
*
|
36
|
+
* ```ts
|
37
|
+
* {AT}Input() {AT}InputBoolean() visible: boolean = false;
|
38
|
+
* {AT}Input() {AT}InputBoolean(null) visible: boolean = false;
|
39
|
+
* ```
|
40
|
+
*/
|
41
|
+
export function InputBoolean(defaultValue = false) {
|
42
|
+
return propDecoratorFactory('InputBoolean', toBoolean, defaultValue);
|
43
|
+
}
|
44
|
+
export function toNumber(value, fallbackValue = 0) {
|
45
|
+
return !isNaN(parseFloat(value)) && !isNaN(Number(value)) ? Number(value) : fallbackValue;
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* Input decorator that handle a prop to do get/set automatically with toNumber
|
49
|
+
*
|
50
|
+
* ```ts
|
51
|
+
* {AT}Input() {AT}InputNumber() visible: number = 1;
|
52
|
+
* {AT}Input() {AT}InputNumber(null) visible: number = 2;
|
53
|
+
* ```
|
54
|
+
*/
|
55
|
+
export function InputNumber(defaultValue = 0) {
|
56
|
+
return propDecoratorFactory('InputNumber', toNumber, defaultValue);
|
57
|
+
}
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3V0aWwvZGVjb3JhdG9yL2NvbnZlcnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBTXpDLFNBQVMsb0JBQW9CLENBQzNCLElBQVksRUFDWixRQUFzQyxFQUN0QyxZQUF1QjtJQUV2QixTQUFTLGFBQWEsQ0FDcEIsTUFBaUIsRUFDakIsUUFBZ0IsRUFDaEIsa0JBQXVEO1FBRXZELE1B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WJlciA9IDI7XG4gKiBgYGBcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIElucHV0TnVtYmVyKGRlZmF1bHRWYWx1ZTogbnVtYmVyIHwgbnVsbCA9IDApOiBOelNhZmVBbnkge1xuICByZXR1cm4gcHJvcERlY29yYXRvckZhY3RvcnkoJ0lucHV0TnVtYmVyJywgdG9OdW1iZXIsIGRlZmF1bHRWYWx1ZSk7XG59XG4iXX0=
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/**
|
2
|
+
* Generated bundle index. Do not edit.
|
3
|
+
*/
|
4
|
+
export * from './index';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvdXRpbC9kZWNvcmF0b3IvZGVjb3JhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from './convert';
|
2
|
-
export * from './zone-outside';
|
1
|
+
export * from './convert';
|
2
|
+
export * from './zone-outside';
|
3
3
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy91dGlsL2RlY29yYXRvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFdBQVcsQ0FBQztBQUMxQixjQUFjLGdCQUFnQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jb252ZXJ0JztcbmV4cG9ydCAqIGZyb20gJy4vem9uZS1vdXRzaWRlJztcbiJdfQ==
|