@wavemaker-ai/app-ng-runtime 12.0.2-rc.647771 → 12.1.0-rc.647821
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.
- package/build-task/bundles/index.umd.js +2489 -2963
- package/build-task/fesm2022/index.mjs +2307 -2786
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/build-task/types/index.d.ts +401 -844
- package/components/advanced/carousel/bundles/index.umd.js +387 -344
- package/components/advanced/carousel/fesm2022/index.mjs +363 -325
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/types/index.d.ts +85 -86
- package/components/advanced/custom/bundles/index.umd.js +298 -249
- package/components/advanced/custom/fesm2022/index.mjs +280 -236
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
- package/components/advanced/custom/types/index.d.ts +49 -49
- package/components/advanced/login/bundles/index.umd.js +177 -127
- package/components/advanced/login/fesm2022/index.mjs +162 -117
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/types/index.d.ts +33 -34
- package/components/advanced/marquee/bundles/index.umd.js +93 -63
- package/components/advanced/marquee/fesm2022/index.mjs +73 -48
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
- package/components/advanced/marquee/types/index.d.ts +11 -12
- package/components/base/bundles/index.umd.js +5515 -6359
- package/components/base/fesm2022/index.mjs +5169 -6027
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/types/index.d.ts +1198 -1154
- package/components/basic/anchor/bundles/index.umd.js +273 -195
- package/components/basic/anchor/fesm2022/index.mjs +251 -178
- package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
- package/components/basic/anchor/types/index.d.ts +40 -41
- package/components/basic/audio/bundles/index.umd.js +124 -75
- package/components/basic/audio/fesm2022/index.mjs +104 -60
- package/components/basic/audio/fesm2022/index.mjs.map +1 -1
- package/components/basic/audio/types/index.d.ts +22 -23
- package/components/basic/html/bundles/index.umd.js +144 -113
- package/components/basic/html/fesm2022/index.mjs +125 -99
- package/components/basic/html/fesm2022/index.mjs.map +1 -1
- package/components/basic/html/types/index.d.ts +20 -17
- package/components/basic/icon/bundles/index.umd.js +144 -72
- package/components/basic/icon/fesm2022/index.mjs +124 -57
- package/components/basic/icon/fesm2022/index.mjs.map +1 -1
- package/components/basic/icon/types/index.d.ts +18 -19
- package/components/basic/iframe/bundles/index.umd.js +143 -93
- package/components/basic/iframe/fesm2022/index.mjs +124 -79
- package/components/basic/iframe/fesm2022/index.mjs.map +1 -1
- package/components/basic/iframe/types/index.d.ts +28 -29
- package/components/basic/label/bundles/index.umd.js +136 -120
- package/components/basic/label/fesm2022/index.mjs +118 -107
- package/components/basic/label/fesm2022/index.mjs.map +1 -1
- package/components/basic/label/types/index.d.ts +14 -15
- package/components/basic/picture/bundles/index.umd.js +171 -130
- package/components/basic/picture/fesm2022/index.mjs +152 -116
- package/components/basic/picture/fesm2022/index.mjs.map +1 -1
- package/components/basic/picture/types/index.d.ts +21 -22
- package/components/basic/progress/progress-bar/bundles/index.umd.js +211 -160
- package/components/basic/progress/progress-bar/fesm2022/index.mjs +193 -147
- package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-bar/types/index.d.ts +45 -41
- package/components/basic/progress/progress-circle/bundles/index.umd.js +294 -165
- package/components/basic/progress/progress-circle/fesm2022/index.mjs +274 -150
- package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-circle/types/index.d.ts +41 -42
- package/components/basic/progress/progress-utils/bundles/index.umd.js +27 -29
- package/components/basic/progress/progress-utils/fesm2022/index.mjs +18 -25
- package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-utils/types/index.d.ts +3 -5
- package/components/basic/rich-text-editor/bundles/index.umd.js +294 -228
- package/components/basic/rich-text-editor/fesm2022/index.mjs +275 -214
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/types/index.d.ts +55 -56
- package/components/basic/search/bundles/index.umd.js +1129 -1090
- package/components/basic/search/fesm2022/index.mjs +1117 -1083
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/types/index.d.ts +132 -130
- package/components/basic/spinner/bundles/index.umd.js +216 -120
- package/components/basic/spinner/fesm2022/index.mjs +201 -110
- package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
- package/components/basic/spinner/types/index.d.ts +30 -31
- package/components/basic/tree/bundles/index.umd.js +756 -756
- package/components/basic/tree/fesm2022/index.mjs +740 -745
- package/components/basic/tree/fesm2022/index.mjs.map +1 -1
- package/components/basic/tree/types/index.d.ts +106 -97
- package/components/basic/video/bundles/index.umd.js +164 -108
- package/components/basic/video/fesm2022/index.mjs +145 -94
- package/components/basic/video/fesm2022/index.mjs.map +1 -1
- package/components/basic/video/types/index.d.ts +29 -30
- package/components/chart/bundles/index.umd.js +1768 -1737
- package/components/chart/fesm2022/index.mjs +1713 -1728
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/chart/types/index.d.ts +102 -104
- package/components/containers/accordion/bundles/index.umd.js +522 -494
- package/components/containers/accordion/fesm2022/index.mjs +502 -479
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/types/index.d.ts +116 -116
- package/components/containers/layout-grid/bundles/index.umd.js +260 -164
- package/components/containers/layout-grid/fesm2022/index.mjs +231 -140
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/types/index.d.ts +30 -27
- package/components/containers/linear-layout/bundles/index.umd.js +220 -178
- package/components/containers/linear-layout/fesm2022/index.mjs +193 -156
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
- package/components/containers/linear-layout/types/index.d.ts +26 -26
- package/components/containers/panel/bundles/index.umd.js +343 -215
- package/components/containers/panel/fesm2022/index.mjs +330 -207
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/types/index.d.ts +48 -49
- package/components/containers/tabs/bundles/index.umd.js +832 -779
- package/components/containers/tabs/fesm2022/index.mjs +811 -763
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/types/index.d.ts +134 -126
- package/components/containers/tile/bundles/index.umd.js +93 -60
- package/components/containers/tile/fesm2022/index.mjs +75 -47
- package/components/containers/tile/fesm2022/index.mjs.map +1 -1
- package/components/containers/tile/types/index.d.ts +11 -12
- package/components/containers/wizard/bundles/index.umd.js +1096 -1078
- package/components/containers/wizard/fesm2022/index.mjs +1069 -1056
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/types/index.d.ts +258 -252
- package/components/data/card/bundles/index.umd.js +439 -229
- package/components/data/card/fesm2022/index.mjs +408 -203
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/card/types/index.d.ts +50 -48
- package/components/data/form/bundles/index.umd.js +3392 -3339
- package/components/data/form/fesm2022/index.mjs +3350 -3304
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/types/index.d.ts +561 -482
- package/components/data/list/bundles/index.umd.js +1523 -1601
- package/components/data/list/fesm2022/index.mjs +1507 -1590
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/types/index.d.ts +300 -283
- package/components/data/live-table/bundles/index.umd.js +299 -280
- package/components/data/live-table/fesm2022/index.mjs +284 -270
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/types/index.d.ts +42 -39
- package/components/data/pagination/bundles/index.umd.js +848 -881
- package/components/data/pagination/fesm2022/index.mjs +835 -879
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/types/index.d.ts +110 -106
- package/components/data/table/bundles/index.umd.js +4977 -5042
- package/components/data/table/fesm2022/index.mjs +4937 -5007
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/types/index.d.ts +770 -736
- package/components/dialogs/alert-dialog/bundles/index.umd.js +259 -118
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +243 -109
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/alert-dialog/types/index.d.ts +31 -26
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +250 -121
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +236 -114
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/types/index.d.ts +34 -29
- package/components/dialogs/default/bundles/index.umd.js +509 -373
- package/components/dialogs/default/fesm2022/index.mjs +485 -354
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/types/index.d.ts +129 -86
- package/components/dialogs/design-dialog/bundles/index.umd.js +320 -142
- package/components/dialogs/design-dialog/fesm2022/index.mjs +305 -132
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/types/index.d.ts +31 -20
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +258 -111
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +245 -105
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/types/index.d.ts +27 -22
- package/components/dialogs/login-dialog/bundles/index.umd.js +139 -106
- package/components/dialogs/login-dialog/fesm2022/index.mjs +125 -97
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/login-dialog/types/index.d.ts +27 -26
- package/components/dialogs/partial-dialog/bundles/index.umd.js +302 -149
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +289 -143
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/types/index.d.ts +37 -32
- package/components/input/base-form/bundles/index.umd.js +143 -139
- package/components/input/base-form/fesm2022/index.mjs +129 -130
- package/components/input/base-form/fesm2022/index.mjs.map +1 -1
- package/components/input/base-form/types/index.d.ts +28 -29
- package/components/input/base-form-custom/bundles/index.umd.js +107 -121
- package/components/input/base-form-custom/fesm2022/index.mjs +88 -107
- package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -1
- package/components/input/base-form-custom/types/index.d.ts +23 -26
- package/components/input/button/bundles/index.umd.js +177 -89
- package/components/input/button/fesm2022/index.mjs +158 -75
- package/components/input/button/fesm2022/index.mjs.map +1 -1
- package/components/input/button/types/index.d.ts +24 -25
- package/components/input/button-group/bundles/index.umd.js +110 -72
- package/components/input/button-group/fesm2022/index.mjs +90 -57
- package/components/input/button-group/fesm2022/index.mjs.map +1 -1
- package/components/input/button-group/types/index.d.ts +13 -14
- package/components/input/calendar/bundles/index.umd.js +615 -647
- package/components/input/calendar/fesm2022/index.mjs +596 -649
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/calendar/types/index.d.ts +130 -131
- package/components/input/caption-position/bundles/index.umd.js +175 -188
- package/components/input/caption-position/fesm2022/index.mjs +159 -177
- package/components/input/caption-position/fesm2022/index.mjs.map +1 -1
- package/components/input/caption-position/types/index.d.ts +31 -34
- package/components/input/checkbox/bundles/index.umd.js +339 -200
- package/components/input/checkbox/fesm2022/index.mjs +319 -185
- package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
- package/components/input/checkbox/types/index.d.ts +46 -41
- package/components/input/checkboxset/bundles/index.umd.js +256 -170
- package/components/input/checkboxset/fesm2022/index.mjs +242 -161
- package/components/input/checkboxset/fesm2022/index.mjs.map +1 -1
- package/components/input/checkboxset/types/index.d.ts +26 -27
- package/components/input/chips/bundles/index.umd.js +721 -733
- package/components/input/chips/fesm2022/index.mjs +706 -723
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/types/index.d.ts +101 -90
- package/components/input/color-picker/bundles/index.umd.js +312 -137
- package/components/input/color-picker/fesm2022/index.mjs +296 -126
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/types/index.d.ts +35 -36
- package/components/input/composite/bundles/index.umd.js +127 -112
- package/components/input/composite/fesm2022/index.mjs +106 -96
- package/components/input/composite/fesm2022/index.mjs.map +1 -1
- package/components/input/composite/types/index.d.ts +26 -27
- package/components/input/currency/bundles/index.umd.js +237 -104
- package/components/input/currency/fesm2022/index.mjs +219 -91
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/types/index.d.ts +30 -31
- package/components/input/dataset-aware-form/bundles/index.umd.js +298 -346
- package/components/input/dataset-aware-form/fesm2022/index.mjs +286 -339
- package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
- package/components/input/dataset-aware-form/types/index.d.ts +80 -80
- package/components/input/epoch/base-date-time/bundles/index.umd.js +809 -1081
- package/components/input/epoch/base-date-time/fesm2022/index.mjs +796 -1073
- package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/base-date-time/types/index.d.ts +244 -247
- package/components/input/epoch/date/bundles/index.umd.js +619 -513
- package/components/input/epoch/date/fesm2022/index.mjs +604 -503
- package/components/input/epoch/date/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date/types/index.d.ts +63 -64
- package/components/input/epoch/date-time/bundles/index.umd.js +682 -511
- package/components/input/epoch/date-time/fesm2022/index.mjs +672 -506
- package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date-time/types/index.d.ts +111 -112
- package/components/input/epoch/date-time-picker/bundles/index.umd.js +417 -321
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs +405 -314
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date-time-picker/types/index.d.ts +135 -80
- package/components/input/epoch/picker/bundles/index.umd.js +201 -148
- package/components/input/epoch/picker/fesm2022/index.mjs +183 -135
- package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/picker/types/index.d.ts +46 -38
- package/components/input/epoch/time/bundles/index.umd.js +534 -392
- package/components/input/epoch/time/fesm2022/index.mjs +523 -386
- package/components/input/epoch/time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/time/types/index.d.ts +107 -108
- package/components/input/file-upload/bundles/index.umd.js +500 -477
- package/components/input/file-upload/fesm2022/index.mjs +484 -466
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/types/index.d.ts +110 -109
- package/components/input/number/bundles/index.umd.js +241 -101
- package/components/input/number/fesm2022/index.mjs +224 -89
- package/components/input/number/fesm2022/index.mjs.map +1 -1
- package/components/input/number/types/index.d.ts +28 -29
- package/components/input/radioset/bundles/index.umd.js +240 -156
- package/components/input/radioset/fesm2022/index.mjs +226 -147
- package/components/input/radioset/fesm2022/index.mjs.map +1 -1
- package/components/input/radioset/types/index.d.ts +25 -26
- package/components/input/rating/bundles/index.umd.js +353 -266
- package/components/input/rating/fesm2022/index.mjs +337 -255
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/types/index.d.ts +52 -53
- package/components/input/select/bundles/index.umd.js +295 -217
- package/components/input/select/fesm2022/index.mjs +280 -207
- package/components/input/select/fesm2022/index.mjs.map +1 -1
- package/components/input/select/types/index.d.ts +38 -39
- package/components/input/slider/bundles/index.umd.js +316 -197
- package/components/input/slider/fesm2022/index.mjs +297 -183
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/types/index.d.ts +43 -44
- package/components/input/switch/bundles/index.umd.js +257 -219
- package/components/input/switch/fesm2022/index.mjs +243 -210
- package/components/input/switch/fesm2022/index.mjs.map +1 -1
- package/components/input/switch/types/index.d.ts +34 -35
- package/components/input/text/bundles/index.umd.js +1585 -1120
- package/components/input/text/fesm2022/index.mjs +1542 -1082
- package/components/input/text/fesm2022/index.mjs.map +1 -1
- package/components/input/text/types/index.d.ts +313 -310
- package/components/input/textarea/bundles/index.umd.js +224 -100
- package/components/input/textarea/fesm2022/index.mjs +207 -88
- package/components/input/textarea/fesm2022/index.mjs.map +1 -1
- package/components/input/textarea/types/index.d.ts +32 -33
- package/components/navigation/breadcrumb/bundles/index.umd.js +205 -131
- package/components/navigation/breadcrumb/fesm2022/index.mjs +188 -118
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/types/index.d.ts +29 -28
- package/components/navigation/menu/bundles/index.umd.js +1461 -950
- package/components/navigation/menu/fesm2022/index.mjs +1416 -910
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/types/index.d.ts +220 -193
- package/components/navigation/navbar/bundles/index.umd.js +172 -79
- package/components/navigation/navbar/fesm2022/index.mjs +155 -67
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/types/index.d.ts +19 -20
- package/components/navigation/popover/bundles/index.umd.js +543 -519
- package/components/navigation/popover/fesm2022/index.mjs +524 -505
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/types/index.d.ts +86 -86
- package/components/page/default/bundles/index.umd.js +634 -451
- package/components/page/default/fesm2022/index.mjs +600 -422
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/types/index.d.ts +123 -119
- package/components/page/footer/bundles/index.umd.js +91 -63
- package/components/page/footer/fesm2022/index.mjs +71 -48
- package/components/page/footer/fesm2022/index.mjs.map +1 -1
- package/components/page/footer/types/index.d.ts +11 -12
- package/components/page/header/bundles/index.umd.js +96 -59
- package/components/page/header/fesm2022/index.mjs +76 -44
- package/components/page/header/fesm2022/index.mjs.map +1 -1
- package/components/page/header/types/index.d.ts +12 -13
- package/components/page/left-panel/bundles/index.umd.js +405 -407
- package/components/page/left-panel/fesm2022/index.mjs +386 -393
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/types/index.d.ts +47 -40
- package/components/page/right-panel/bundles/index.umd.js +115 -78
- package/components/page/right-panel/fesm2022/index.mjs +96 -64
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/right-panel/types/index.d.ts +14 -13
- package/components/page/top-nav/bundles/index.umd.js +91 -60
- package/components/page/top-nav/fesm2022/index.mjs +73 -47
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/page/top-nav/types/index.d.ts +11 -12
- package/components/prefab/bundles/index.umd.js +253 -173
- package/components/prefab/fesm2022/index.mjs +233 -158
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/components/prefab/types/index.d.ts +35 -33
- package/core/bundles/index.umd.js +4466 -5642
- package/core/fesm2022/index.mjs +3997 -5202
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/types/index.d.ts +1785 -1808
- package/http/bundles/index.umd.js +339 -413
- package/http/fesm2022/index.mjs +323 -402
- package/http/fesm2022/index.mjs.map +1 -1
- package/http/types/index.d.ts +107 -112
- package/locales/moment/am-et.js +73 -0
- package/locales/moment/bm.js +2 -0
- package/locales/moment/ca.js +1 -1
- package/locales/moment/de-at.js +29 -1
- package/locales/moment/de-ch.js +29 -1
- package/locales/moment/de.js +29 -1
- package/locales/moment/hu.js +3 -3
- package/locales/moment/id.js +12 -1
- package/locales/moment/ka.js +1 -1
- package/locales/moment/mk.js +0 -1
- package/locales/moment/nl-be.js +1 -1
- package/locales/moment/pl.js +1 -1
- package/locales/moment/ps.js +188 -0
- package/locales/moment/pt-br.js +14 -6
- package/locales/moment/sv.js +1 -1
- package/locales/moment/sw.js +56 -14
- package/locales/moment/uk.js +5 -4
- package/locales/moment/uz-latn.js +1 -1
- package/locales/moment/uz.js +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +326 -483
- package/oAuth/fesm2022/index.mjs +267 -429
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/oAuth/types/index.d.ts +22 -26
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +6380 -6093
- package/runtime/base/fesm2022/index.mjs +6368 -6107
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/types/index.d.ts +1336 -1359
- package/runtime/dynamic/bundles/index.umd.js +1215 -851
- package/runtime/dynamic/fesm2022/index.mjs +1253 -898
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/runtime/dynamic/types/index.d.ts +140 -128
- package/scripts/datatable/datatable.js +20 -30
- package/security/bundles/index.umd.js +297 -438
- package/security/fesm2022/index.mjs +282 -443
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/types/index.d.ts +127 -130
- package/swipey/bundles/index.umd.js +57 -48
- package/swipey/fesm2022/index.mjs +55 -50
- package/swipey/fesm2022/index.mjs.map +1 -1
- package/swipey/types/index.d.ts +19 -21
- package/transpiler/bundles/index.umd.js +1174 -811
- package/transpiler/fesm2022/index.mjs +1109 -757
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/transpiler/types/index.d.ts +32 -36
- package/variables/bundles/index.umd.js +2226 -3245
- package/variables/fesm2022/index.mjs +2117 -3237
- package/variables/fesm2022/index.mjs.map +1 -1
- package/variables/types/index.d.ts +410 -393
- package/build-task/.npmignore +0 -2
- package/components/advanced/carousel/.npmignore +0 -2
- package/components/advanced/custom/.npmignore +0 -2
- package/components/advanced/login/.npmignore +0 -2
- package/components/advanced/marquee/.npmignore +0 -2
- package/components/base/.npmignore +0 -2
- package/components/basic/anchor/.npmignore +0 -2
- package/components/basic/audio/.npmignore +0 -2
- package/components/basic/html/.npmignore +0 -2
- package/components/basic/icon/.npmignore +0 -2
- package/components/basic/iframe/.npmignore +0 -2
- package/components/basic/label/.npmignore +0 -2
- package/components/basic/picture/.npmignore +0 -2
- package/components/basic/progress/progress-bar/.npmignore +0 -2
- package/components/basic/progress/progress-circle/.npmignore +0 -2
- package/components/basic/progress/progress-utils/.npmignore +0 -2
- package/components/basic/rich-text-editor/.npmignore +0 -2
- package/components/basic/search/.npmignore +0 -2
- package/components/basic/spinner/.npmignore +0 -2
- package/components/basic/tree/.npmignore +0 -2
- package/components/basic/video/.npmignore +0 -2
- package/components/chart/.npmignore +0 -2
- package/components/containers/accordion/.npmignore +0 -2
- package/components/containers/layout-grid/.npmignore +0 -2
- package/components/containers/linear-layout/.npmignore +0 -2
- package/components/containers/panel/.npmignore +0 -2
- package/components/containers/tabs/.npmignore +0 -2
- package/components/containers/tile/.npmignore +0 -2
- package/components/containers/wizard/.npmignore +0 -2
- package/components/data/card/.npmignore +0 -2
- package/components/data/form/.npmignore +0 -2
- package/components/data/list/.npmignore +0 -2
- package/components/data/live-table/.npmignore +0 -2
- package/components/data/pagination/.npmignore +0 -2
- package/components/data/table/.npmignore +0 -2
- package/components/dialogs/alert-dialog/.npmignore +0 -2
- package/components/dialogs/confirm-dialog/.npmignore +0 -2
- package/components/dialogs/default/.npmignore +0 -2
- package/components/dialogs/design-dialog/.npmignore +0 -2
- package/components/dialogs/iframe-dialog/.npmignore +0 -2
- package/components/dialogs/login-dialog/.npmignore +0 -2
- package/components/dialogs/partial-dialog/.npmignore +0 -2
- package/components/input/base-form/.npmignore +0 -2
- package/components/input/base-form-custom/.npmignore +0 -2
- package/components/input/button/.npmignore +0 -2
- package/components/input/button-group/.npmignore +0 -2
- package/components/input/calendar/.npmignore +0 -2
- package/components/input/caption-position/.npmignore +0 -2
- package/components/input/checkbox/.npmignore +0 -2
- package/components/input/checkboxset/.npmignore +0 -2
- package/components/input/chips/.npmignore +0 -2
- package/components/input/color-picker/.npmignore +0 -2
- package/components/input/composite/.npmignore +0 -2
- package/components/input/currency/.npmignore +0 -2
- package/components/input/dataset-aware-form/.npmignore +0 -2
- package/components/input/epoch/base-date-time/.npmignore +0 -2
- package/components/input/epoch/date/.npmignore +0 -2
- package/components/input/epoch/date-time/.npmignore +0 -2
- package/components/input/epoch/date-time-picker/.npmignore +0 -2
- package/components/input/epoch/picker/.npmignore +0 -2
- package/components/input/epoch/time/.npmignore +0 -2
- package/components/input/file-upload/.npmignore +0 -2
- package/components/input/number/.npmignore +0 -2
- package/components/input/radioset/.npmignore +0 -2
- package/components/input/rating/.npmignore +0 -2
- package/components/input/select/.npmignore +0 -2
- package/components/input/slider/.npmignore +0 -2
- package/components/input/switch/.npmignore +0 -2
- package/components/input/text/.npmignore +0 -2
- package/components/input/textarea/.npmignore +0 -2
- package/components/navigation/breadcrumb/.npmignore +0 -2
- package/components/navigation/menu/.npmignore +0 -2
- package/components/navigation/navbar/.npmignore +0 -2
- package/components/navigation/popover/.npmignore +0 -2
- package/components/page/default/.npmignore +0 -2
- package/components/page/footer/.npmignore +0 -2
- package/components/page/header/.npmignore +0 -2
- package/components/page/left-panel/.npmignore +0 -2
- package/components/page/right-panel/.npmignore +0 -2
- package/components/page/top-nav/.npmignore +0 -2
- package/components/prefab/.npmignore +0 -2
- package/core/.npmignore +0 -2
- package/http/.npmignore +0 -2
- package/oAuth/.npmignore +0 -2
- package/runtime/base/.npmignore +0 -2
- package/runtime/dynamic/.npmignore +0 -2
- package/security/.npmignore +0 -2
- package/swipey/.npmignore +0 -2
- package/transpiler/.npmignore +0 -2
- package/variables/.npmignore +0 -2
|
@@ -1,1089 +1,817 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/timepicker'), require('@wm/core'), require('@wm/components/base'), require('@wm/components/input/base-form-custom'), require('ngx-bootstrap/datepicker'), require('@wm/components/input/epoch/date-time-picker'), require('lodash-es'), require('moment')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/timepicker', '@wm/core', '@wm/components/base', '@wm/components/input/base-form-custom', 'ngx-bootstrap/datepicker', '@wm/components/input/epoch/date-time-picker', 'lodash-es', 'moment'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = global.wm.components.input || {}, global.wm.components.input.epoch = global.wm.components.input.epoch || {}, global.wm.components.input.epoch.baseDateTime = {}), global.ng.core, global.ng.common, global.ngxBootstrap.dropdown, global.ngxBootstrap.timepicker, global.wm.core, global.wm.components.base, global.wm.components.input.baseFormCustom, global.ngxBootstrap.datepicker, global.wm.components.input.epoch.dateTimePicker, global._, global.momentLib));
|
|
5
5
|
})(this, (function (exports, i0, common, dropdown, timepicker, core, base, baseFormCustom, datepicker, dateTimePicker, lodashEs, momentLib) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
+
var momentLib__namespace = /*#__PURE__*/_interopNamespaceDefault(momentLib);
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
}
|
|
814
|
-
onDateTimeInputBlur() {
|
|
815
|
-
// removing the opacity on blur of the mobile widget
|
|
816
|
-
const displayInputElem = this.getMobileInput();
|
|
817
|
-
if (displayInputElem) {
|
|
818
|
-
const children = this.nativeElement.children;
|
|
819
|
-
for (let i = 0; i < children.length; i++) {
|
|
820
|
-
children[i].classList.remove('add-opacity');
|
|
821
|
-
}
|
|
822
|
-
displayInputElem.classList.remove('remove-opacity');
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
onDateTimeInputFocus(skipFocus = false) {
|
|
826
|
-
if (!this.loadNativeDateInput) {
|
|
827
|
-
return;
|
|
828
|
-
}
|
|
829
|
-
const displayInputElem = this.getMobileInput();
|
|
830
|
-
// toggling the classes to show and hide the native widget using opacity
|
|
831
|
-
if (skipFocus) {
|
|
832
|
-
const children = this.nativeElement.children;
|
|
833
|
-
for (let i = 0; i < children.length; i++) {
|
|
834
|
-
children[i].classList.add('add-opacity');
|
|
835
|
-
}
|
|
836
|
-
displayInputElem.classList.add('remove-opacity');
|
|
837
|
-
return;
|
|
838
|
-
}
|
|
839
|
-
if (displayInputElem && this._triggeredByUser) {
|
|
840
|
-
displayInputElem.focus();
|
|
841
|
-
displayInputElem.click();
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* This method sets the mouse events to Datepicker popup. These events are required when we navigate date picker through mouse.
|
|
846
|
-
*/
|
|
847
|
-
addDatepickerMouseEvents() {
|
|
848
|
-
$(".bs-datepicker-head .previous span").attr("aria-hidden", 'true');
|
|
849
|
-
$(".bs-datepicker-head .next span").attr("aria-hidden", 'true');
|
|
850
|
-
$(".bs-datepicker-head").on("click", ".previous", (event) => {
|
|
851
|
-
this.next = this.getMonth(this.activeDate, 0);
|
|
852
|
-
this.prev = this.getMonth(this.activeDate, -2);
|
|
853
|
-
this.clicked = true;
|
|
854
|
-
// check for original mouse click
|
|
855
|
-
if (event.originalEvent) {
|
|
856
|
-
this.setFocusForDate(-1);
|
|
857
|
-
}
|
|
858
|
-
const prevMon = this.getMonth(this.activeDate, -1);
|
|
859
|
-
// const current = new Date();
|
|
860
|
-
// if(prevMon.date.getMonth()===current.getMonth() && prevMon.date.getFullYear()===current.getFullYear()) {
|
|
861
|
-
// this.hightlightToday(new Date());
|
|
862
|
-
// }
|
|
863
|
-
setTimeout(() => {
|
|
864
|
-
$(".bs-datepicker-head .previous span").attr("aria-hidden", 'true');
|
|
865
|
-
$(".bs-datepicker-head .next span").attr("aria-hidden", 'true');
|
|
866
|
-
$(".bs-datepicker-head .next").attr('aria-label', `Next Month, ${this.next.fullMonth} ${this.next.date.getFullYear()}`);
|
|
867
|
-
$(".bs-datepicker-head .previous").attr('aria-label', `Previous Month, ${this.prev.fullMonth} ${this.prev.date.getFullYear()}`);
|
|
868
|
-
$('.bs-datepicker-head .current').first().append(`<h2 aria-hidden="false" aria-atomic="true" aria-live='polite' class="sr-only">Changed to Previous Month, ${prevMon.fullMonth} and year ${prevMon.date.getFullYear()}</h2>`);
|
|
869
|
-
$('.bs-datepicker-head').on('focus', '.current', function () {
|
|
870
|
-
$('.bs-datepicker-head .current').find('h2').remove();
|
|
871
|
-
});
|
|
872
|
-
$(`.bs-datepicker-head .previous`).focus();
|
|
873
|
-
});
|
|
874
|
-
});
|
|
875
|
-
$(".bs-datepicker-head").on("click", ".next", (event) => {
|
|
876
|
-
this.next = this.getMonth(this.activeDate, 2);
|
|
877
|
-
this.prev = this.getMonth(this.activeDate, 0);
|
|
878
|
-
this.clicked = true;
|
|
879
|
-
// check for original mouse click
|
|
880
|
-
if (event.originalEvent) {
|
|
881
|
-
this.setFocusForDate(1);
|
|
882
|
-
}
|
|
883
|
-
const nextMon = this.getMonth(this.activeDate, 1);
|
|
884
|
-
// const current = new Date();
|
|
885
|
-
// if (nextMon.date.getMonth() === current.getMonth() && nextMon.date.getFullYear() === current.getFullYear()) {
|
|
886
|
-
// this.hightlightToday(current);
|
|
887
|
-
// }
|
|
888
|
-
setTimeout(() => {
|
|
889
|
-
$(".bs-datepicker-head .previous span").attr("aria-hidden", 'true');
|
|
890
|
-
$(".bs-datepicker-head .next span").attr("aria-hidden", 'true');
|
|
891
|
-
$(".bs-datepicker-head .next").attr('aria-label', `Next Month, ${this.next.fullMonth} ${this.next.date.getFullYear()}`);
|
|
892
|
-
$(".bs-datepicker-head .previous").attr('aria-label', `Previous Month, ${this.prev.fullMonth} ${this.prev.date.getFullYear()}`);
|
|
893
|
-
$('.bs-datepicker-head .current').first().append(`<h2 aria-hidden="false" aria-atomic="true" aria-live='polite' class="sr-only">Changed to Next Month, ${nextMon.fullMonth} and year ${nextMon.date.getFullYear()}</h2>`);
|
|
894
|
-
$('.bs-datepicker-head').on('focus', '.current', function () {
|
|
895
|
-
$('.bs-datepicker-head .current').find('h2').remove();
|
|
896
|
-
});
|
|
897
|
-
$(`.bs-datepicker-head .next`).focus();
|
|
898
|
-
});
|
|
899
|
-
});
|
|
900
|
-
$(".bs-datepicker-head").on("click", ".current", (event) => {
|
|
901
|
-
// check for original mouse click
|
|
902
|
-
if (event.originalEvent) {
|
|
903
|
-
this.setFocusForCurrentMonthOryear();
|
|
904
|
-
}
|
|
905
|
-
});
|
|
906
|
-
$('.bs-datepicker-body').on("click", ".bs-datepicker-action-buttons", (event) => {
|
|
907
|
-
event.stopPropagation();
|
|
908
|
-
// check for original mouse click
|
|
909
|
-
if (event.originalEvent) {
|
|
910
|
-
this.setFocusForMonthOrDay();
|
|
911
|
-
}
|
|
912
|
-
});
|
|
913
|
-
// if(!this.clicked) {
|
|
914
|
-
$(".bs-datepicker-head .next").attr('aria-label', `Next Month, ${this.next.fullMonth} ${this.next.date.getFullYear()}`);
|
|
915
|
-
$(".bs-datepicker-head .previous").attr('aria-label', `Previous Month, ${this.prev.fullMonth} ${this.prev.date.getFullYear()}`);
|
|
916
|
-
// }
|
|
917
|
-
}
|
|
918
|
-
blurDateInput(isPickerOpen) {
|
|
919
|
-
const displayInputElem = this.nativeElement.querySelector('.display-input');
|
|
920
|
-
if (isPickerOpen) {
|
|
921
|
-
setTimeout(() => displayInputElem.blur());
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
getPeriod() {
|
|
925
|
-
if (!this.elementScope.bsTimeValue)
|
|
926
|
-
return 'AM';
|
|
927
|
-
const hours = this.elementScope.bsTimeValue.getHours();
|
|
928
|
-
return hours >= 12 ? 'PM' : 'AM';
|
|
929
|
-
}
|
|
930
|
-
setPeriod(period) {
|
|
931
|
-
const current = this.elementScope.bsTimeValue;
|
|
932
|
-
if (!current || !(current instanceof Date))
|
|
933
|
-
return;
|
|
934
|
-
const updatedDate = new Date(current);
|
|
935
|
-
const hours = updatedDate.getHours();
|
|
936
|
-
if (period === 'AM' && hours >= 12) {
|
|
937
|
-
updatedDate.setHours(hours - 12);
|
|
938
|
-
}
|
|
939
|
-
else if (period === 'PM' && hours < 12) {
|
|
940
|
-
updatedDate.setHours(hours + 12);
|
|
941
|
-
}
|
|
942
|
-
if (this.elementScope.widgetType === 'wm-time') {
|
|
943
|
-
const isInvalid = this.elementScope.minTime && this.elementScope.maxTime && (updatedDate < this.elementScope.minTime || updatedDate > this.elementScope.maxTime);
|
|
944
|
-
if (!isInvalid)
|
|
945
|
-
this.elementScope.onTimeChange(updatedDate);
|
|
946
|
-
}
|
|
947
|
-
else {
|
|
948
|
-
this.elementScope.onModelUpdate(updatedDate);
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
onPropertyChange(key, nv, ov) {
|
|
952
|
-
const isPristine = this.formControl?.pristine;
|
|
953
|
-
if (key === 'tabindex') {
|
|
954
|
-
return;
|
|
955
|
-
}
|
|
956
|
-
if (key === 'showampmbuttons') {
|
|
957
|
-
this.showampmbuttons = nv;
|
|
958
|
-
}
|
|
959
|
-
if (key === 'required') {
|
|
960
|
-
this._onChange(this.datavalue);
|
|
961
|
-
return;
|
|
962
|
-
}
|
|
963
|
-
if (key === 'datepattern') {
|
|
964
|
-
this.updateFormat(key);
|
|
965
|
-
}
|
|
966
|
-
else if (key === 'viewmode') {
|
|
967
|
-
this._dateOptions.minMode = this.viewmode;
|
|
968
|
-
}
|
|
969
|
-
else if (key === 'showweeks') {
|
|
970
|
-
this._dateOptions.showWeekNumbers = nv;
|
|
971
|
-
}
|
|
972
|
-
else if (key === 'mindate') {
|
|
973
|
-
this._dateOptions.minDate = (nv === CURRENT_DATE) ? this.mindate = new Date() : core.getDateObj(nv);
|
|
974
|
-
this.minDateMaxDateValidationOnInput(this.datavalue);
|
|
975
|
-
}
|
|
976
|
-
else if (key === 'maxdate') {
|
|
977
|
-
this._dateOptions.maxDate = (nv === CURRENT_DATE) ? this.maxdate = new Date() : core.getDateObj(nv);
|
|
978
|
-
this.minDateMaxDateValidationOnInput(this.datavalue);
|
|
979
|
-
}
|
|
980
|
-
else if (key === 'excludedates' || key === 'excludedays') {
|
|
981
|
-
if (this.excludedays) {
|
|
982
|
-
this.excludedDaysToDisable = lodashEs.split(this.excludedays, ',').map((day) => {
|
|
983
|
-
return +day;
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
if (this.excludedates) {
|
|
987
|
-
this.excludedDatesToDisable = this.excludedates;
|
|
988
|
-
if (lodashEs.isString(this.excludedates)) {
|
|
989
|
-
// @ts-ignore
|
|
990
|
-
this.excludedDatesToDisable = lodashEs.split(this.excludedates, ',');
|
|
991
|
-
}
|
|
992
|
-
this.excludedDatesToDisable = this.excludedDatesToDisable.map(d => core.getDateObj(d));
|
|
993
|
-
}
|
|
994
|
-
this.minDateMaxDateValidationOnInput(this.datavalue);
|
|
995
|
-
}
|
|
996
|
-
else if (key === 'selectfromothermonth') {
|
|
997
|
-
this._dateOptions.selectFromOtherMonth = nv;
|
|
998
|
-
}
|
|
999
|
-
else if (key === 'todaybutton') {
|
|
1000
|
-
this._dateOptions.showTodayButton = nv;
|
|
1001
|
-
}
|
|
1002
|
-
else if (key === 'clearbutton') {
|
|
1003
|
-
this._dateOptions.showClearButton = nv;
|
|
1004
|
-
}
|
|
1005
|
-
else if (key === 'todaybuttonlabel') {
|
|
1006
|
-
this._dateOptions.todayButtonLabel = this.i18nService.getLocalizedMessage(nv) || nv;
|
|
1007
|
-
}
|
|
1008
|
-
else if (key === 'clearbuttonlabel') {
|
|
1009
|
-
this._dateOptions.clearButtonLabel = this.i18nService.getLocalizedMessage(nv) || nv;
|
|
1010
|
-
}
|
|
1011
|
-
else if (key === 'showcustompicker') {
|
|
1012
|
-
this.loadNativeDateInput = core.isMobile() && !this.showcustompicker;
|
|
1013
|
-
}
|
|
1014
|
-
else if (key === 'adaptiveposition') {
|
|
1015
|
-
this._dateOptions.adaptivePosition = nv;
|
|
1016
|
-
}
|
|
1017
|
-
else {
|
|
1018
|
-
super.onPropertyChange(key, nv, ov);
|
|
1019
|
-
}
|
|
1020
|
-
if ((key === 'mindate' || key === 'maxdate' || key === 'excludedates' || key === 'excludedays') && isPristine) {
|
|
1021
|
-
this.formControl?.control?.markAsPristine();
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
ngAfterViewInit() {
|
|
1025
|
-
super.ngAfterViewInit();
|
|
1026
|
-
this.containerTarget = base.getContainerTargetClass(this.nativeElement);
|
|
1027
|
-
this.isReadOnly = this.dataentrymode != 'undefined' && !this.isDataEntryModeEnabledOnInput(this.dataentrymode);
|
|
1028
|
-
// this mobileinput width varies in ios hence setting width here.
|
|
1029
|
-
const mobileInput = this.getMobileInput();
|
|
1030
|
-
if (mobileInput) {
|
|
1031
|
-
setTimeout(() => {
|
|
1032
|
-
mobileInput.style.width = '100%';
|
|
1033
|
-
mobileInput.style.height = '100%';
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
ngOnDestroy() {
|
|
1038
|
-
if (this.dateOnShowSubscription) {
|
|
1039
|
-
this.dateOnShowSubscription.unsubscribe();
|
|
1040
|
-
}
|
|
1041
|
-
if (this.cancelLocaleChangeSubscription) {
|
|
1042
|
-
this.cancelLocaleChangeSubscription();
|
|
1043
|
-
}
|
|
1044
|
-
super.ngOnDestroy();
|
|
1045
|
-
}
|
|
1046
|
-
ngOnDetach() {
|
|
1047
|
-
this.datetimepickerComponent?.hideModal();
|
|
1048
|
-
}
|
|
1049
|
-
setTimezone(locale) {
|
|
1050
|
-
this.i18nService.setTimezone(locale, this);
|
|
1051
|
-
}
|
|
1052
|
-
ngOnInit() {
|
|
1053
|
-
super.ngOnInit();
|
|
1054
|
-
if (this.dateNotInRange || this.timeNotInRange || this.invalidDateTimeFormat) {
|
|
1055
|
-
const formattedDisplay = core.getFormattedDate(this.datePipe, this.datavalue, this.datepattern || this.timepattern, this.timeZone, null, null, this);
|
|
1056
|
-
const value = this.datavalue;
|
|
1057
|
-
this.datavalue = undefined;
|
|
1058
|
-
setTimeout(() => {
|
|
1059
|
-
$(this.nativeElement).find('.display-input').val(this.safeReplaceMeridians(formattedDisplay));
|
|
1060
|
-
this.minDateMaxDateValidationOnInput(formattedDisplay);
|
|
1061
|
-
this.invokeOnChange(value, {}, false);
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseDateTimeComponent, deps: "invalid", target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
1066
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: BaseDateTimeComponent, isStandalone: true, viewQueries: [{ propertyName: "bsDropdown", first: true, predicate: dropdown.BsDropdownDirective, descendants: true }, { propertyName: "bsTimePicker", first: true, predicate: timepicker.TimepickerComponent, descendants: true }, { propertyName: "datetimepickerComponent", first: true, predicate: dateTimePicker.DateTimePickerComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace }); }
|
|
1067
|
-
}
|
|
1068
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseDateTimeComponent, decorators: [{
|
|
1069
|
-
type: i0.Directive
|
|
1070
|
-
}], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined }, { type: undefined, decorators: [{
|
|
1071
|
-
type: i0.Inject,
|
|
1072
|
-
args: ['EXPLICIT_CONTEXT']
|
|
1073
|
-
}, {
|
|
1074
|
-
type: i0.Optional
|
|
1075
|
-
}] }], propDecorators: { bsDropdown: [{
|
|
1076
|
-
type: i0.ViewChild,
|
|
1077
|
-
args: [dropdown.BsDropdownDirective]
|
|
1078
|
-
}], bsTimePicker: [{
|
|
1079
|
-
type: i0.ViewChild,
|
|
1080
|
-
args: [timepicker.TimepickerComponent]
|
|
1081
|
-
}], datetimepickerComponent: [{
|
|
1082
|
-
type: i0.ViewChild,
|
|
1083
|
-
args: [dateTimePicker.DateTimePickerComponent]
|
|
1084
|
-
}] } });
|
|
27
|
+
const moment = momentLib__namespace.default || window["moment"];
|
|
28
|
+
const CURRENT_DATE = "CURRENT_DATE";
|
|
29
|
+
const months = [
|
|
30
|
+
"January",
|
|
31
|
+
"February",
|
|
32
|
+
"March",
|
|
33
|
+
"April",
|
|
34
|
+
"May",
|
|
35
|
+
"June",
|
|
36
|
+
"July",
|
|
37
|
+
"August",
|
|
38
|
+
"September",
|
|
39
|
+
"October",
|
|
40
|
+
"November",
|
|
41
|
+
"December"
|
|
42
|
+
];
|
|
43
|
+
const DATEPICKER_DROPDOWN_OPTIONS = {
|
|
44
|
+
DEFAULT: "default"
|
|
45
|
+
};
|
|
46
|
+
const DATAENTRYMODE_DROPDOWN_OPTIONS = {
|
|
47
|
+
DEFAULT: "default"
|
|
48
|
+
};
|
|
49
|
+
function getTimepickerConfig(i18nService) {
|
|
50
|
+
return Object.assign(new timepicker.TimepickerConfig(), { meridians: [i18nService.getLocalizedMessage("LABEL_AM") || "AM", i18nService.getLocalizedMessage("LABEL_PM") || "PM"] });
|
|
51
|
+
}
|
|
52
|
+
var BaseDateTimeComponent = class BaseDateTimeComponent extends baseFormCustom.BaseFormCustomComponent {
|
|
53
|
+
get timeZone() {
|
|
54
|
+
return this.inj.get(core.AbstractI18nService).getTimezone(this);
|
|
55
|
+
}
|
|
56
|
+
safeReplaceMeridians(value) {
|
|
57
|
+
if (typeof value === "string") return value.replace(this.meridians[0], this.am).replace(this.meridians[1], this.pm);
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
constructor(inj, WIDGET_CONFIG, explicitContext) {
|
|
61
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
62
|
+
this.isReadOnly = false;
|
|
63
|
+
this.clicked = false;
|
|
64
|
+
this.showampmbuttons = true;
|
|
65
|
+
this.formatsByLocale = { "timezone": "" };
|
|
66
|
+
this._dateOptions = new datepicker.BsDatepickerConfig();
|
|
67
|
+
this.i18nService = this.inj.get(core.AbstractI18nService);
|
|
68
|
+
this.invokeEventCallback("beforeload");
|
|
69
|
+
this.datePipe = this.inj.get(base.ToDatePipe);
|
|
70
|
+
this.selectedLocale = this.i18nService.getSelectedLocale();
|
|
71
|
+
this._dateOptions.todayPosition = "left";
|
|
72
|
+
this._dateOptions.clearPosition = "right";
|
|
73
|
+
this.meridians = common.getLocaleDayPeriods(this.selectedLocale, common.FormStyle.Format, common.TranslationWidth.Abbreviated);
|
|
74
|
+
this.loadNativeDateInput = core.isMobile() && !this.showcustompicker;
|
|
75
|
+
this.am = this.i18nService.getLocalizedMessage("LABEL_AM") || "AM";
|
|
76
|
+
this.pm = this.i18nService.getLocalizedMessage("LABEL_PM") || "PM";
|
|
77
|
+
this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe("locale-changed", (locale) => {
|
|
78
|
+
this.datePipe.datePipe.locale = locale.angular;
|
|
79
|
+
this._dateOptions.todayButtonLabel = this.i18nService.getLocalizedMessage("LABEL_TODAY_DATE");
|
|
80
|
+
this._dateOptions.clearButtonLabel = this.i18nService.getLocalizedMessage("LABEL_CLEAR_DATE");
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
isDropDownDisplayEnabledOnInput(dropdownvalue) {
|
|
84
|
+
return dropdownvalue === DATEPICKER_DROPDOWN_OPTIONS.DEFAULT;
|
|
85
|
+
}
|
|
86
|
+
isDataEntryModeEnabledOnInput(dropdownvalue) {
|
|
87
|
+
return dropdownvalue === DATAENTRYMODE_DROPDOWN_OPTIONS.DEFAULT;
|
|
88
|
+
}
|
|
89
|
+
showValidation($event, displayValue, isNativePicker, msg) {
|
|
90
|
+
if (isNativePicker) {
|
|
91
|
+
console.warn("min max date validation failed ", msg);
|
|
92
|
+
return $($event.target).val(displayValue);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
resetDisplayInput() {
|
|
96
|
+
$(this.nativeElement).find(".display-input").val("");
|
|
97
|
+
}
|
|
98
|
+
validate(c) {
|
|
99
|
+
if (this.invalidDateTimeFormat) return { invalidDateTimeFormat: { valid: false } };
|
|
100
|
+
if (!lodashEs.isUndefined(this.dateNotInRange) && this.dateNotInRange) return { dateNotInRange: { valid: false } };
|
|
101
|
+
if (!lodashEs.isUndefined(this.timeNotInRange) && this.timeNotInRange) return { timeNotInRange: { valid: false } };
|
|
102
|
+
if (this["show"] && this["required"]) return !!c.value ? null : { required: true };
|
|
103
|
+
this.validateType = "";
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
formatValidation(newVal, inputVal, isNativePicker) {
|
|
107
|
+
const pattern = this.datepattern || this.timepattern;
|
|
108
|
+
const timeZone = this.timeZone;
|
|
109
|
+
const formattedDate = core.getFormattedDate(this.datePipe, newVal, pattern, timeZone, null, null, this);
|
|
110
|
+
inputVal = inputVal.trim();
|
|
111
|
+
if (inputVal) {
|
|
112
|
+
if (pattern === "timestamp") {
|
|
113
|
+
if (!lodashEs.isNaN(inputVal) && lodashEs.parseInt(inputVal) !== formattedDate) {
|
|
114
|
+
this.invalidDateTimeFormat = true;
|
|
115
|
+
this.validateType = "incorrectformat";
|
|
116
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
} else {
|
|
120
|
+
if (isNativePicker) inputVal = core.getFormattedDate(this.datePipe, inputVal, pattern, timeZone);
|
|
121
|
+
if (inputVal?.replace(this.am, this.meridians[0])?.replace(this.pm, this.meridians[1]) !== formattedDate) {
|
|
122
|
+
this.invalidDateTimeFormat = true;
|
|
123
|
+
this.validateType = "incorrectformat";
|
|
124
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
minDateMaxDateValidationOnInput(newVal, $event, displayValue, isNativePicker) {
|
|
132
|
+
if (newVal) {
|
|
133
|
+
const dateTimeVal = newVal;
|
|
134
|
+
newVal = moment(newVal).startOf("day").toDate();
|
|
135
|
+
const minDate = moment(core.getDateObj(this.mindate)).startOf("day").toDate();
|
|
136
|
+
const maxDate = moment(core.getDateObj(this.maxdate)).startOf("day").toDate();
|
|
137
|
+
if (this.mindate && newVal < minDate) {
|
|
138
|
+
const msg = `${this.appLocale.LABEL_MINDATE_VALIDATION_MESSAGE} ${this.mindate}.`;
|
|
139
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
140
|
+
if (isNativePicker && core.getFormattedDate(this.datePipe, minDate, this.datepattern, this.timeZone, null, null, this) === displayValue) return $($event.target).val(displayValue);
|
|
141
|
+
this.dateNotInRange = true;
|
|
142
|
+
this.validateType = "mindate";
|
|
143
|
+
return this.showValidation($event, displayValue, isNativePicker, msg);
|
|
144
|
+
}
|
|
145
|
+
if (this.maxdate && newVal > maxDate) {
|
|
146
|
+
const msg = `${this.appLocale.LABEL_MAXDATE_VALIDATION_MESSAGE} ${this.maxdate}.`;
|
|
147
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
148
|
+
if (isNativePicker && core.getFormattedDate(this.datePipe, maxDate, this.datepattern, this.timeZone, null, null, this) === displayValue) return $($event.target).val(displayValue);
|
|
149
|
+
this.dateNotInRange = true;
|
|
150
|
+
this.validateType = "maxdate";
|
|
151
|
+
return this.showValidation($event, displayValue, isNativePicker, msg);
|
|
152
|
+
}
|
|
153
|
+
if (this.excludedates) {
|
|
154
|
+
let excludeDatesArray;
|
|
155
|
+
if (lodashEs.isString(this.excludedates)) excludeDatesArray = lodashEs.split(this.excludedates, ",");
|
|
156
|
+
else excludeDatesArray = this.excludedates;
|
|
157
|
+
excludeDatesArray = excludeDatesArray.map((d) => core.getFormattedDate(this.datePipe, d, this.datepattern, this.timeZone, null, null, this));
|
|
158
|
+
if (excludeDatesArray.indexOf(core.getFormattedDate(this.datePipe, dateTimeVal, this.datepattern, this.timeZone, null, null, this)) > -1) {
|
|
159
|
+
this.dateNotInRange = true;
|
|
160
|
+
this.validateType = "excludedates";
|
|
161
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
if (this.excludedays) {
|
|
166
|
+
const excludeDaysArray = lodashEs.split(this.excludedays, ",");
|
|
167
|
+
const day = lodashEs.get(dateTimeVal, "getDay") ? dateTimeVal.getDay() : dateTimeVal;
|
|
168
|
+
if (excludeDaysArray.indexOf(day.toString()) > -1) {
|
|
169
|
+
this.dateNotInRange = true;
|
|
170
|
+
this.validateType = "excludedays";
|
|
171
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
if (!isNativePicker) {
|
|
177
|
+
this.dateNotInRange = false;
|
|
178
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
isOtheryear(newDate) {
|
|
182
|
+
return newDate.getMonth() === 0 && this.activeDate.getMonth() === 11 || newDate.getMonth() === 11 && this.activeDate.getMonth() === 0;
|
|
183
|
+
}
|
|
184
|
+
showDatePickerModal(bsDataValue) {
|
|
185
|
+
this.activeDate = bsDataValue || /* @__PURE__ */ new Date();
|
|
186
|
+
this.setNextData(this.activeDate);
|
|
187
|
+
this.datetimepickerComponent.show();
|
|
188
|
+
setTimeout(() => {
|
|
189
|
+
this.addDatepickerMouseEvents();
|
|
190
|
+
this.setActiveDateFocus(this.activeDate, true);
|
|
191
|
+
}, 500);
|
|
192
|
+
}
|
|
193
|
+
goToOtherMonthOryear(btnClass, timePeriod) {
|
|
194
|
+
const $node = $(`.bs-datepicker-head .${btnClass}`);
|
|
195
|
+
if ($node.attr("disabled")) return;
|
|
196
|
+
$node.trigger("click");
|
|
197
|
+
if (timePeriod === "days") this.loadDays();
|
|
198
|
+
else if (timePeriod === "month") this.loadMonths();
|
|
199
|
+
else if (timePeriod === "year") this.loadYears();
|
|
200
|
+
}
|
|
201
|
+
setActiveDateFocus(newDate, isMouseEvent, fromKeyboardEvents) {
|
|
202
|
+
this.setNextData(newDate);
|
|
203
|
+
this.clicked = false;
|
|
204
|
+
const activeMonth = this.activeDate.getMonth();
|
|
205
|
+
if (!isMouseEvent) {
|
|
206
|
+
if (newDate.getMonth() < activeMonth) this.isOtheryear(newDate) ? this.goToOtherMonthOryear("next", "days") : this.goToOtherMonthOryear("previous", "days");
|
|
207
|
+
else if (newDate.getMonth() > activeMonth) this.isOtheryear(newDate) ? this.goToOtherMonthOryear("previous", "days") : this.goToOtherMonthOryear("next", "days");
|
|
208
|
+
}
|
|
209
|
+
setTimeout(() => {
|
|
210
|
+
const newDay = newDate.getDate().toString();
|
|
211
|
+
lodashEs.filter($(`span:contains(${newDay})`).not(".is-other-month"), (obj) => {
|
|
212
|
+
if ($(obj).text() === newDay) {
|
|
213
|
+
if ($(obj).hasClass("selected")) $(obj).parent().attr("aria-selected", "true");
|
|
214
|
+
$(obj).attr("aria-label", moment(newDate).format("dddd, MMMM Do YYYY"));
|
|
215
|
+
$("[bsdatepickerdaydecorator]").not(".is-other-month").attr("tabindex", "-1");
|
|
216
|
+
$(obj).attr("tabindex", "0");
|
|
217
|
+
setTimeout(() => {
|
|
218
|
+
$(obj).focus();
|
|
219
|
+
}, 10);
|
|
220
|
+
this.activeDate = newDate;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
getMonth(date, inc) {
|
|
226
|
+
const currentMonth = new Date(date);
|
|
227
|
+
let month = currentMonth.getMonth();
|
|
228
|
+
const year = currentMonth.getFullYear();
|
|
229
|
+
month += inc;
|
|
230
|
+
const newDate = new Date(year, month);
|
|
231
|
+
return {
|
|
232
|
+
date: newDate,
|
|
233
|
+
fullMonth: newDate.toLocaleString("en-US", { month: "long" })
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
setFocusForMonthOrDay() {
|
|
237
|
+
const activeMonthOrYear = $(`.bs-datepicker-head .current`).first().text();
|
|
238
|
+
const datePickerBody = $(".bs-datepicker-body");
|
|
239
|
+
if (datePickerBody.find("table.months").length > 0) {
|
|
240
|
+
if (lodashEs.parseInt(activeMonthOrYear) !== this.activeDate.getFullYear()) this.loadMonths();
|
|
241
|
+
const newDate = new Date(lodashEs.parseInt(activeMonthOrYear), this.activeDate.getMonth(), this.activeDate.getDate());
|
|
242
|
+
this.setActiveMonthFocus(newDate, true);
|
|
243
|
+
} else if (datePickerBody.find("table.days").length > 0) {
|
|
244
|
+
const newMonth = months.indexOf(activeMonthOrYear);
|
|
245
|
+
if (newMonth !== this.activeDate.getMonth()) this.loadDays();
|
|
246
|
+
const newDate = new Date(this.activeDate.getFullYear(), newMonth, 1);
|
|
247
|
+
this.setActiveDateFocus(newDate, true);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
setFocusForCurrentMonthOryear() {
|
|
251
|
+
const datePickerBody = $(".bs-datepicker-body");
|
|
252
|
+
if (datePickerBody.find("table.months").length > 0) {
|
|
253
|
+
this.loadMonths();
|
|
254
|
+
this.setActiveMonthFocus(this.activeDate, true);
|
|
255
|
+
} else if (datePickerBody.find("table.years").length > 0) {
|
|
256
|
+
this.loadYears();
|
|
257
|
+
this.setActiveYearFocus(this.activeDate, true);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
setFocusForDate(count) {
|
|
261
|
+
const datePickerBody = $(".bs-datepicker-body");
|
|
262
|
+
if (datePickerBody.find("table.months").length > 0) {
|
|
263
|
+
this.loadMonths();
|
|
264
|
+
const newDate = new Date(this.activeDate.getFullYear() + count, 0, this.activeDate.getDate());
|
|
265
|
+
this.setActiveMonthFocus(newDate, true);
|
|
266
|
+
} else if (datePickerBody.find("table.years").length > 0) {
|
|
267
|
+
this.loadYears();
|
|
268
|
+
const startYear = datePickerBody.find("table.years span").first().text();
|
|
269
|
+
const newDate = new Date(lodashEs.parseInt(startYear), this.activeDate.getMonth(), this.activeDate.getDate());
|
|
270
|
+
this.setActiveYearFocus(newDate, true);
|
|
271
|
+
} else if (datePickerBody.find("table.days").length > 0) {
|
|
272
|
+
this.loadDays();
|
|
273
|
+
const [monthText, yearText] = $(".bs-datepicker-head .current").map((_, el) => $(el).text().trim()).get();
|
|
274
|
+
const monthIndex = (/* @__PURE__ */ new Date(`${monthText} 1, ${yearText}`)).getMonth();
|
|
275
|
+
const year = lodashEs.parseInt(yearText, 10);
|
|
276
|
+
const inMonth = (d) => d.getFullYear() === year && d.getMonth() === monthIndex;
|
|
277
|
+
let newDate = this.mindate && inMonth(new Date(this.mindate)) ? new Date(this.mindate) : this.maxdate && inMonth(new Date(this.maxdate)) ? new Date(this.maxdate) : new Date(year, monthIndex, 1);
|
|
278
|
+
this.setActiveDateFocus(newDate, true);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
addDatepickerKeyboardEvents(scope, isDateTime) {
|
|
282
|
+
this.elementScope = scope;
|
|
283
|
+
const dateContainer = document.querySelector(`.${scope.dateContainerCls}`);
|
|
284
|
+
core.setAttr(dateContainer, "tabindex", "0");
|
|
285
|
+
dateContainer.onkeydown = (event) => {
|
|
286
|
+
if (event.key === "Escape") {
|
|
287
|
+
this.elementScope.hideDatepickerDropdown();
|
|
288
|
+
const displayInputElem = this.elementScope.nativeElement.querySelector(".display-input");
|
|
289
|
+
setTimeout(() => displayInputElem.focus());
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
this.loadDays();
|
|
293
|
+
this.setActiveDateFocus(this.activeDate, void 0, true);
|
|
294
|
+
}
|
|
295
|
+
setNextData(nextDate) {
|
|
296
|
+
this.next = this.getMonth(nextDate, 1);
|
|
297
|
+
this.prev = this.getMonth(nextDate, -1);
|
|
298
|
+
}
|
|
299
|
+
loadDays() {
|
|
300
|
+
setTimeout(() => {
|
|
301
|
+
$("[bsdatepickerdaydecorator]").not(".is-other-month").attr("tabindex", "0");
|
|
302
|
+
this.addKeyBoardEventsForDays();
|
|
303
|
+
this.addDatepickerMouseEvents();
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
addKeyBoardEventsForDays() {
|
|
307
|
+
$(".bs-datepicker-body").keydown((event) => {
|
|
308
|
+
let newdate;
|
|
309
|
+
if (event.key === "ArrowDown") {
|
|
310
|
+
event.preventDefault();
|
|
311
|
+
newdate = moment(this.activeDate).add(7, "days").toDate();
|
|
312
|
+
this.setActiveDateFocus(newdate);
|
|
313
|
+
} else if (event.ctrlKey && event.key === "ArrowUp") {
|
|
314
|
+
$(".bs-datepicker-head .current").first().click();
|
|
315
|
+
this.loadMonths();
|
|
316
|
+
this.setActiveMonthFocus(this.activeDate);
|
|
317
|
+
} else if (event.key === "ArrowUp") {
|
|
318
|
+
event.preventDefault();
|
|
319
|
+
newdate = moment(this.activeDate).add(-7, "days").toDate();
|
|
320
|
+
this.setActiveDateFocus(newdate);
|
|
321
|
+
} else if (event.key === "ArrowLeft") {
|
|
322
|
+
newdate = moment(this.activeDate).add(-1, "days").toDate();
|
|
323
|
+
this.setActiveDateFocus(newdate);
|
|
324
|
+
} else if (event.key === "ArrowRight") {
|
|
325
|
+
newdate = moment(this.activeDate).add(1, "days").toDate();
|
|
326
|
+
this.setActiveDateFocus(newdate);
|
|
327
|
+
} else if (event.key === "PageUp") {
|
|
328
|
+
event.preventDefault();
|
|
329
|
+
newdate = moment(this.activeDate).add(-1, "month").toDate();
|
|
330
|
+
this.setActiveDateFocus(newdate);
|
|
331
|
+
} else if (event.key === "PageDown") {
|
|
332
|
+
event.preventDefault();
|
|
333
|
+
newdate = moment(this.activeDate).add(1, "month").toDate();
|
|
334
|
+
this.setActiveDateFocus(newdate);
|
|
335
|
+
} else if (event.key === "Enter") {
|
|
336
|
+
if ($(document.activeElement).hasClass("disabled")) return;
|
|
337
|
+
$(document.activeElement).click();
|
|
338
|
+
this.elementScope.hideDatepickerDropdown();
|
|
339
|
+
const displayInputElem = this.elementScope.nativeElement.querySelector(".display-input");
|
|
340
|
+
setTimeout(() => displayInputElem.focus());
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
this.focusBlurDatePickerHeadButtons();
|
|
344
|
+
}
|
|
345
|
+
focusBlurDatePickerHeadButtons() {
|
|
346
|
+
const datePickerHeadButton = $(".bs-datepicker-head button");
|
|
347
|
+
datePickerHeadButton.on("focus", function() {
|
|
348
|
+
$(this).css("background-color", "#9AA0A3");
|
|
349
|
+
});
|
|
350
|
+
datePickerHeadButton.on("blur", function() {
|
|
351
|
+
$(this).css("background-color", "");
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
loadMonths() {
|
|
355
|
+
setTimeout(() => {
|
|
356
|
+
this.addKeyBoardEventsForMonths();
|
|
357
|
+
this.addDatepickerMouseEvents();
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
addKeyBoardEventsForMonths() {
|
|
361
|
+
$(".bs-datepicker-body").keydown((event) => {
|
|
362
|
+
let newdate;
|
|
363
|
+
if (event.ctrlKey && event.key === "ArrowDown" || event.key === "Enter") {
|
|
364
|
+
if ($(document.activeElement).parent().hasClass("disabled")) return;
|
|
365
|
+
$(document.activeElement).click();
|
|
366
|
+
this.loadDays();
|
|
367
|
+
const newDate = new Date(this.activeDate.getFullYear(), this.activeDate.getMonth(), 1);
|
|
368
|
+
this.setActiveDateFocus(newDate);
|
|
369
|
+
} else if (event.ctrlKey && event.key === "ArrowUp") {
|
|
370
|
+
$(".bs-datepicker-head .current").first().click();
|
|
371
|
+
this.loadYears();
|
|
372
|
+
this.setActiveYearFocus(this.activeDate);
|
|
373
|
+
} else if (event.key === "ArrowDown") {
|
|
374
|
+
event.preventDefault();
|
|
375
|
+
newdate = moment(this.activeDate).add(3, "month").toDate();
|
|
376
|
+
this.setActiveMonthFocus(newdate);
|
|
377
|
+
} else if (event.key === "ArrowUp") {
|
|
378
|
+
event.preventDefault();
|
|
379
|
+
newdate = moment(this.activeDate).add(-3, "month").toDate();
|
|
380
|
+
this.setActiveMonthFocus(newdate);
|
|
381
|
+
} else if (event.key === "ArrowLeft") {
|
|
382
|
+
newdate = moment(this.activeDate).add(-1, "month").toDate();
|
|
383
|
+
this.setActiveMonthFocus(newdate);
|
|
384
|
+
} else if (event.key === "ArrowRight") {
|
|
385
|
+
newdate = moment(this.activeDate).add(1, "month").toDate();
|
|
386
|
+
this.setActiveMonthFocus(newdate);
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
this.focusBlurDatePickerHeadButtons();
|
|
390
|
+
}
|
|
391
|
+
loadYears() {
|
|
392
|
+
setTimeout(() => {
|
|
393
|
+
this.addKeyBoardEventsForYears();
|
|
394
|
+
this.addDatepickerMouseEvents();
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
setActiveMonthFocus(newDate, isMoouseEvent) {
|
|
398
|
+
this.setNextData(newDate);
|
|
399
|
+
const newMonth = months[newDate.getMonth()];
|
|
400
|
+
if (!isMoouseEvent) {
|
|
401
|
+
if (newDate.getFullYear() < this.activeDate.getFullYear()) this.goToOtherMonthOryear("previous", "month");
|
|
402
|
+
else if (newDate.getFullYear() > this.activeDate.getFullYear()) this.goToOtherMonthOryear("next", "month");
|
|
403
|
+
}
|
|
404
|
+
setTimeout(() => {
|
|
405
|
+
$(`.bs-datepicker-body table.months span`).attr("tabindex", "-1");
|
|
406
|
+
$(`.bs-datepicker-body table.months span:contains(${newMonth})`).attr("tabindex", "0");
|
|
407
|
+
$(`.bs-datepicker-body table.months span:contains(${newMonth})`).focus();
|
|
408
|
+
this.activeDate = newDate;
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
addKeyBoardEventsForYears() {
|
|
412
|
+
$(".bs-datepicker-body").keydown((event) => {
|
|
413
|
+
let newdate;
|
|
414
|
+
if (event.ctrlKey && event.key === "ArrowDown" || event.key === "Enter") {
|
|
415
|
+
if ($(document.activeElement).parent().hasClass("disabled")) return;
|
|
416
|
+
$(document.activeElement).click();
|
|
417
|
+
this.loadMonths();
|
|
418
|
+
this.setActiveMonthFocus(this.activeDate);
|
|
419
|
+
} else if (event.key === "ArrowDown") {
|
|
420
|
+
event.preventDefault();
|
|
421
|
+
newdate = moment(this.activeDate).add(4, "year").toDate();
|
|
422
|
+
this.setActiveYearFocus(newdate);
|
|
423
|
+
} else if (event.key === "ArrowUp") {
|
|
424
|
+
event.preventDefault();
|
|
425
|
+
newdate = moment(this.activeDate).add(-4, "year").toDate();
|
|
426
|
+
this.setActiveYearFocus(newdate);
|
|
427
|
+
} else if (event.key === "ArrowLeft") {
|
|
428
|
+
newdate = moment(this.activeDate).add(-1, "year").toDate();
|
|
429
|
+
this.setActiveYearFocus(newdate);
|
|
430
|
+
} else if (event.key === "ArrowRight") {
|
|
431
|
+
newdate = moment(this.activeDate).add(1, "year").toDate();
|
|
432
|
+
this.setActiveYearFocus(newdate);
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
this.focusBlurDatePickerHeadButtons();
|
|
436
|
+
}
|
|
437
|
+
setActiveYearFocus(newDate, isMouseEvent) {
|
|
438
|
+
const newYear = newDate.getFullYear();
|
|
439
|
+
const datePickerYears = $(".bs-datepicker-body table.years span");
|
|
440
|
+
const startYear = datePickerYears.first().text();
|
|
441
|
+
const endYear = datePickerYears.last().text();
|
|
442
|
+
if (!isMouseEvent) {
|
|
443
|
+
if (newDate.getFullYear() < lodashEs.parseInt(startYear)) this.goToOtherMonthOryear("previous", "year");
|
|
444
|
+
else if (newDate.getFullYear() > lodashEs.parseInt(endYear)) this.goToOtherMonthOryear("next", "year");
|
|
445
|
+
}
|
|
446
|
+
setTimeout(() => {
|
|
447
|
+
$(`.bs-datepicker-body table.years span`).attr("tabindex", "-1");
|
|
448
|
+
$(`.bs-datepicker-body table.years span:contains(${newYear})`).attr("tabindex", "0");
|
|
449
|
+
$(`.bs-datepicker-body table.years span:contains(${newYear})`).focus();
|
|
450
|
+
this.activeDate = newDate;
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
focusTimePickerPopover(scope) {
|
|
454
|
+
this.elementScope = scope;
|
|
455
|
+
this.elementScope.ngZone.runOutsideAngular(() => {
|
|
456
|
+
setTimeout(() => {
|
|
457
|
+
$("timepicker .form-group").first().find("> input.form-control")[0]?.focus({ preventScroll: true });
|
|
458
|
+
}, 10);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
bindTimePickerKeyboardEvents() {
|
|
462
|
+
setTimeout(() => {
|
|
463
|
+
const $timepickerPopup = $("body").find("> bs-dropdown-container timepicker");
|
|
464
|
+
$timepickerPopup.attr("tabindex", 0);
|
|
465
|
+
this.addEventsOnTimePicker($timepickerPopup);
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
focusOnInputEl() {
|
|
469
|
+
if ($(this.nativeElement).closest(".caption-floating").length > 0) setTimeout(() => {
|
|
470
|
+
$(this.nativeElement).find(".app-textbox").focus();
|
|
471
|
+
}, 100);
|
|
472
|
+
}
|
|
473
|
+
isValidDate(date) {
|
|
474
|
+
return date && date instanceof Date && !isNaN(date.getTime());
|
|
475
|
+
}
|
|
476
|
+
timeFormatValidation() {
|
|
477
|
+
const enteredDate = $(this.nativeElement).find("input").val()?.replace(this.am, this.meridians[0])?.replace(this.pm, this.meridians[1]);
|
|
478
|
+
const newVal = core.getNativeDateObject(enteredDate, {
|
|
479
|
+
meridians: this.meridians,
|
|
480
|
+
pattern: this.datepattern
|
|
481
|
+
});
|
|
482
|
+
if (!this.formatValidation(newVal, enteredDate)) return;
|
|
483
|
+
this.invalidDateTimeFormat = false;
|
|
484
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
485
|
+
}
|
|
486
|
+
updateTimeValue(el, value, fieldName) {
|
|
487
|
+
let minEl = el.find("input[aria-label=\"minutes\"]");
|
|
488
|
+
let secEl = el.find("input[aria-label=\"seconds\"]");
|
|
489
|
+
minEl.value = secEl.value = "00";
|
|
490
|
+
if (value.length < 2) setTimeout(() => {
|
|
491
|
+
fieldName === "minutes" ? this.bsTimePicker.updateMinutes(minEl) : this.bsTimePicker.updateSeconds(secEl);
|
|
492
|
+
}, 500);
|
|
493
|
+
else fieldName === "minutes" ? this.bsTimePicker.updateMinutes(minEl) : this.bsTimePicker.updateSeconds(secEl);
|
|
494
|
+
}
|
|
495
|
+
addEventsOnTimePicker($el) {
|
|
496
|
+
const inputFields = $el.find(".bs-timepicker-field");
|
|
497
|
+
inputFields.first().on("keyup", (evt) => {
|
|
498
|
+
const hourValue = evt.target.value;
|
|
499
|
+
lodashEs.forEach($el.find(".bs-timepicker-field"), (field, index) => {
|
|
500
|
+
if (evt.target !== field && field.value === "" && hourValue.length) {
|
|
501
|
+
const fieldName = index === 1 ? "minutes" : "seconds";
|
|
502
|
+
this.updateTimeValue($el, hourValue, fieldName);
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
this.removeKeyupListener = () => {
|
|
507
|
+
inputFields.first().off("keyup");
|
|
508
|
+
};
|
|
509
|
+
$el.on("keydown", (event) => {
|
|
510
|
+
const $target = $(event.target);
|
|
511
|
+
const $parent = $target.parent();
|
|
512
|
+
const elementScope = this.elementScope;
|
|
513
|
+
let stopPropogation, preventDefault;
|
|
514
|
+
if (event.key === "Escape") elementScope.hideTimepickerDropdown();
|
|
515
|
+
if ($target.hasClass("bs-timepicker-field")) {
|
|
516
|
+
if ($parent.is(":first-child")) {
|
|
517
|
+
if (event.shiftKey && event.key === "Tab" || event.key === "Enter" || event.key === "Escape") {
|
|
518
|
+
elementScope.setIsTimeOpen(false);
|
|
519
|
+
this.focus();
|
|
520
|
+
stopPropogation = true;
|
|
521
|
+
preventDefault = true;
|
|
522
|
+
}
|
|
523
|
+
} else if ($parent.is(":last-child") || $parent.next().next().find("button.disabled").length) {
|
|
524
|
+
if (event.key === "Tab" || event.key === "Escape" || event.key === "Enter") {
|
|
525
|
+
elementScope.setIsTimeOpen(false);
|
|
526
|
+
this.focus();
|
|
527
|
+
stopPropogation = true;
|
|
528
|
+
preventDefault = true;
|
|
529
|
+
}
|
|
530
|
+
} else if (event.key === "Enter" || event.key === "Escape") {
|
|
531
|
+
elementScope.setIsTimeOpen(false);
|
|
532
|
+
this.focus();
|
|
533
|
+
stopPropogation = true;
|
|
534
|
+
preventDefault = true;
|
|
535
|
+
}
|
|
536
|
+
if (stopPropogation) event.stopPropagation();
|
|
537
|
+
if (preventDefault) event.preventDefault();
|
|
538
|
+
if (elementScope.mintime && elementScope.maxtime && !this.isValidDate(elementScope.bsTimeValue)) {
|
|
539
|
+
if (event.key === "ArrowDown") elementScope.bsTimeValue = elementScope.maxTime;
|
|
540
|
+
else if (event.key === "ArrowUp") elementScope.bsTimeValue = elementScope.minTime;
|
|
541
|
+
}
|
|
542
|
+
if (event.key === "Tab") {
|
|
543
|
+
this.invalidDateTimeFormat = false;
|
|
544
|
+
this.invokeOnChange(this.datavalue, void 0, false);
|
|
545
|
+
const pattern = this.datepattern || this.timepattern;
|
|
546
|
+
if (core.getFormattedDate(elementScope.datePipe, elementScope.bsTimeValue, pattern, this.timeZone, null, null, this) === elementScope.displayValue) $(this.nativeElement).find(".display-input").val(elementScope.displayValue);
|
|
547
|
+
}
|
|
548
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") this.timeFormatValidation();
|
|
549
|
+
} else if ($target.hasClass("btn-default")) {
|
|
550
|
+
if (event.key === "Tab" || event.key === "Escape") {
|
|
551
|
+
elementScope.setIsTimeOpen(false);
|
|
552
|
+
this.focus();
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
$el.find("a").on("click", (evt) => {
|
|
557
|
+
const elementScope = this.elementScope;
|
|
558
|
+
const $target = $(evt.target);
|
|
559
|
+
if (elementScope.mintime && elementScope.maxtime && !this.isValidDate(elementScope.bsTimeValue)) {
|
|
560
|
+
if ($target.find("span").hasClass("bs-chevron-down")) elementScope.bsTimeValue = elementScope.maxTime;
|
|
561
|
+
else if ($target.find("span").hasClass("bs-chevron-up")) elementScope.bsTimeValue = elementScope.minTime;
|
|
562
|
+
}
|
|
563
|
+
this.timeFormatValidation();
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
updateFormat(pattern) {
|
|
567
|
+
if (pattern === "datepattern") {
|
|
568
|
+
this._dateOptions.dateInputFormat = this.datepattern;
|
|
569
|
+
this.showseconds = lodashEs.includes(this.datepattern, "s");
|
|
570
|
+
this.ismeridian = lodashEs.includes(this.datepattern, "h");
|
|
571
|
+
} else if (pattern === "timepattern") {
|
|
572
|
+
this.showseconds = lodashEs.includes(this.timepattern, "s");
|
|
573
|
+
this.ismeridian = lodashEs.includes(this.timepattern, "h");
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
getMobileInput() {
|
|
577
|
+
return this.nativeElement.querySelector(".mobile-input");
|
|
578
|
+
}
|
|
579
|
+
onDateTimeInputBlur() {
|
|
580
|
+
const displayInputElem = this.getMobileInput();
|
|
581
|
+
if (displayInputElem) {
|
|
582
|
+
const children = this.nativeElement.children;
|
|
583
|
+
for (let i = 0; i < children.length; i++) children[i].classList.remove("add-opacity");
|
|
584
|
+
displayInputElem.classList.remove("remove-opacity");
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
onDateTimeInputFocus(skipFocus = false) {
|
|
588
|
+
if (!this.loadNativeDateInput) return;
|
|
589
|
+
const displayInputElem = this.getMobileInput();
|
|
590
|
+
if (skipFocus) {
|
|
591
|
+
const children = this.nativeElement.children;
|
|
592
|
+
for (let i = 0; i < children.length; i++) children[i].classList.add("add-opacity");
|
|
593
|
+
displayInputElem.classList.add("remove-opacity");
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
if (displayInputElem && this._triggeredByUser) {
|
|
597
|
+
displayInputElem.focus();
|
|
598
|
+
displayInputElem.click();
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
addDatepickerMouseEvents() {
|
|
602
|
+
$(".bs-datepicker-head .previous span").attr("aria-hidden", "true");
|
|
603
|
+
$(".bs-datepicker-head .next span").attr("aria-hidden", "true");
|
|
604
|
+
$(".bs-datepicker-head").on("click", ".previous", (event) => {
|
|
605
|
+
this.next = this.getMonth(this.activeDate, 0);
|
|
606
|
+
this.prev = this.getMonth(this.activeDate, -2);
|
|
607
|
+
this.clicked = true;
|
|
608
|
+
if (event.originalEvent) this.setFocusForDate(-1);
|
|
609
|
+
const prevMon = this.getMonth(this.activeDate, -1);
|
|
610
|
+
setTimeout(() => {
|
|
611
|
+
$(".bs-datepicker-head .previous span").attr("aria-hidden", "true");
|
|
612
|
+
$(".bs-datepicker-head .next span").attr("aria-hidden", "true");
|
|
613
|
+
$(".bs-datepicker-head .next").attr("aria-label", `Next Month, ${this.next.fullMonth} ${this.next.date.getFullYear()}`);
|
|
614
|
+
$(".bs-datepicker-head .previous").attr("aria-label", `Previous Month, ${this.prev.fullMonth} ${this.prev.date.getFullYear()}`);
|
|
615
|
+
$(".bs-datepicker-head .current").first().append(`<h2 aria-hidden="false" aria-atomic="true" aria-live='polite' class="sr-only">Changed to Previous Month, ${prevMon.fullMonth} and year ${prevMon.date.getFullYear()}</h2>`);
|
|
616
|
+
$(".bs-datepicker-head").on("focus", ".current", function() {
|
|
617
|
+
$(".bs-datepicker-head .current").find("h2").remove();
|
|
618
|
+
});
|
|
619
|
+
$(`.bs-datepicker-head .previous`).focus();
|
|
620
|
+
});
|
|
621
|
+
});
|
|
622
|
+
$(".bs-datepicker-head").on("click", ".next", (event) => {
|
|
623
|
+
this.next = this.getMonth(this.activeDate, 2);
|
|
624
|
+
this.prev = this.getMonth(this.activeDate, 0);
|
|
625
|
+
this.clicked = true;
|
|
626
|
+
if (event.originalEvent) this.setFocusForDate(1);
|
|
627
|
+
const nextMon = this.getMonth(this.activeDate, 1);
|
|
628
|
+
setTimeout(() => {
|
|
629
|
+
$(".bs-datepicker-head .previous span").attr("aria-hidden", "true");
|
|
630
|
+
$(".bs-datepicker-head .next span").attr("aria-hidden", "true");
|
|
631
|
+
$(".bs-datepicker-head .next").attr("aria-label", `Next Month, ${this.next.fullMonth} ${this.next.date.getFullYear()}`);
|
|
632
|
+
$(".bs-datepicker-head .previous").attr("aria-label", `Previous Month, ${this.prev.fullMonth} ${this.prev.date.getFullYear()}`);
|
|
633
|
+
$(".bs-datepicker-head .current").first().append(`<h2 aria-hidden="false" aria-atomic="true" aria-live='polite' class="sr-only">Changed to Next Month, ${nextMon.fullMonth} and year ${nextMon.date.getFullYear()}</h2>`);
|
|
634
|
+
$(".bs-datepicker-head").on("focus", ".current", function() {
|
|
635
|
+
$(".bs-datepicker-head .current").find("h2").remove();
|
|
636
|
+
});
|
|
637
|
+
$(`.bs-datepicker-head .next`).focus();
|
|
638
|
+
});
|
|
639
|
+
});
|
|
640
|
+
$(".bs-datepicker-head").on("click", ".current", (event) => {
|
|
641
|
+
if (event.originalEvent) this.setFocusForCurrentMonthOryear();
|
|
642
|
+
});
|
|
643
|
+
$(".bs-datepicker-body").on("click", ".bs-datepicker-action-buttons", (event) => {
|
|
644
|
+
event.stopPropagation();
|
|
645
|
+
if (event.originalEvent) this.setFocusForMonthOrDay();
|
|
646
|
+
});
|
|
647
|
+
$(".bs-datepicker-head .next").attr("aria-label", `Next Month, ${this.next.fullMonth} ${this.next.date.getFullYear()}`);
|
|
648
|
+
$(".bs-datepicker-head .previous").attr("aria-label", `Previous Month, ${this.prev.fullMonth} ${this.prev.date.getFullYear()}`);
|
|
649
|
+
}
|
|
650
|
+
blurDateInput(isPickerOpen) {
|
|
651
|
+
const displayInputElem = this.nativeElement.querySelector(".display-input");
|
|
652
|
+
if (isPickerOpen) setTimeout(() => displayInputElem.blur());
|
|
653
|
+
}
|
|
654
|
+
getPeriod() {
|
|
655
|
+
if (!this.elementScope.bsTimeValue) return "AM";
|
|
656
|
+
return this.elementScope.bsTimeValue.getHours() >= 12 ? "PM" : "AM";
|
|
657
|
+
}
|
|
658
|
+
setPeriod(period) {
|
|
659
|
+
const current = this.elementScope.bsTimeValue;
|
|
660
|
+
if (!current || !(current instanceof Date)) return;
|
|
661
|
+
const updatedDate = new Date(current);
|
|
662
|
+
const hours = updatedDate.getHours();
|
|
663
|
+
if (period === "AM" && hours >= 12) updatedDate.setHours(hours - 12);
|
|
664
|
+
else if (period === "PM" && hours < 12) updatedDate.setHours(hours + 12);
|
|
665
|
+
if (this.elementScope.widgetType === "wm-time") {
|
|
666
|
+
if (!(this.elementScope.minTime && this.elementScope.maxTime && (updatedDate < this.elementScope.minTime || updatedDate > this.elementScope.maxTime))) this.elementScope.onTimeChange(updatedDate);
|
|
667
|
+
} else this.elementScope.onModelUpdate(updatedDate);
|
|
668
|
+
}
|
|
669
|
+
onPropertyChange(key, nv, ov) {
|
|
670
|
+
const isPristine = this.formControl?.pristine;
|
|
671
|
+
if (key === "tabindex") return;
|
|
672
|
+
if (key === "showampmbuttons") this.showampmbuttons = nv;
|
|
673
|
+
if (key === "required") {
|
|
674
|
+
this._onChange(this.datavalue);
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
if (key === "datepattern") this.updateFormat(key);
|
|
678
|
+
else if (key === "viewmode") this._dateOptions.minMode = this.viewmode;
|
|
679
|
+
else if (key === "showweeks") this._dateOptions.showWeekNumbers = nv;
|
|
680
|
+
else if (key === "mindate") {
|
|
681
|
+
this._dateOptions.minDate = nv === CURRENT_DATE ? this.mindate = /* @__PURE__ */ new Date() : core.getDateObj(nv);
|
|
682
|
+
this.minDateMaxDateValidationOnInput(this.datavalue);
|
|
683
|
+
} else if (key === "maxdate") {
|
|
684
|
+
this._dateOptions.maxDate = nv === CURRENT_DATE ? this.maxdate = /* @__PURE__ */ new Date() : core.getDateObj(nv);
|
|
685
|
+
this.minDateMaxDateValidationOnInput(this.datavalue);
|
|
686
|
+
} else if (key === "excludedates" || key === "excludedays") {
|
|
687
|
+
if (this.excludedays) this.excludedDaysToDisable = lodashEs.split(this.excludedays, ",").map((day) => {
|
|
688
|
+
return +day;
|
|
689
|
+
});
|
|
690
|
+
if (this.excludedates) {
|
|
691
|
+
this.excludedDatesToDisable = this.excludedates;
|
|
692
|
+
if (lodashEs.isString(this.excludedates)) this.excludedDatesToDisable = lodashEs.split(this.excludedates, ",");
|
|
693
|
+
this.excludedDatesToDisable = this.excludedDatesToDisable.map((d) => core.getDateObj(d));
|
|
694
|
+
}
|
|
695
|
+
this.minDateMaxDateValidationOnInput(this.datavalue);
|
|
696
|
+
} else if (key === "selectfromothermonth") this._dateOptions.selectFromOtherMonth = nv;
|
|
697
|
+
else if (key === "todaybutton") this._dateOptions.showTodayButton = nv;
|
|
698
|
+
else if (key === "clearbutton") this._dateOptions.showClearButton = nv;
|
|
699
|
+
else if (key === "todaybuttonlabel") this._dateOptions.todayButtonLabel = this.i18nService.getLocalizedMessage(nv) || nv;
|
|
700
|
+
else if (key === "clearbuttonlabel") this._dateOptions.clearButtonLabel = this.i18nService.getLocalizedMessage(nv) || nv;
|
|
701
|
+
else if (key === "showcustompicker") this.loadNativeDateInput = core.isMobile() && !this.showcustompicker;
|
|
702
|
+
else if (key === "adaptiveposition") this._dateOptions.adaptivePosition = nv;
|
|
703
|
+
else super.onPropertyChange(key, nv, ov);
|
|
704
|
+
if ((key === "mindate" || key === "maxdate" || key === "excludedates" || key === "excludedays") && isPristine) this.formControl?.control?.markAsPristine();
|
|
705
|
+
}
|
|
706
|
+
ngAfterViewInit() {
|
|
707
|
+
super.ngAfterViewInit();
|
|
708
|
+
this.containerTarget = base.getContainerTargetClass(this.nativeElement);
|
|
709
|
+
this.isReadOnly = this.dataentrymode != "undefined" && !this.isDataEntryModeEnabledOnInput(this.dataentrymode);
|
|
710
|
+
const mobileInput = this.getMobileInput();
|
|
711
|
+
if (mobileInput) setTimeout(() => {
|
|
712
|
+
mobileInput.style.width = "100%";
|
|
713
|
+
mobileInput.style.height = "100%";
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
ngOnDestroy() {
|
|
717
|
+
if (this.dateOnShowSubscription) this.dateOnShowSubscription.unsubscribe();
|
|
718
|
+
if (this.cancelLocaleChangeSubscription) this.cancelLocaleChangeSubscription();
|
|
719
|
+
super.ngOnDestroy();
|
|
720
|
+
}
|
|
721
|
+
ngOnDetach() {
|
|
722
|
+
this.datetimepickerComponent?.hideModal();
|
|
723
|
+
}
|
|
724
|
+
setTimezone(locale) {
|
|
725
|
+
this.i18nService.setTimezone(locale, this);
|
|
726
|
+
}
|
|
727
|
+
ngOnInit() {
|
|
728
|
+
super.ngOnInit();
|
|
729
|
+
if (this.dateNotInRange || this.timeNotInRange || this.invalidDateTimeFormat) {
|
|
730
|
+
const formattedDisplay = core.getFormattedDate(this.datePipe, this.datavalue, this.datepattern || this.timepattern, this.timeZone, null, null, this);
|
|
731
|
+
const value = this.datavalue;
|
|
732
|
+
this.datavalue = void 0;
|
|
733
|
+
setTimeout(() => {
|
|
734
|
+
$(this.nativeElement).find(".display-input").val(this.safeReplaceMeridians(formattedDisplay));
|
|
735
|
+
this.minDateMaxDateValidationOnInput(formattedDisplay);
|
|
736
|
+
this.invokeOnChange(value, {}, false);
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
static {
|
|
741
|
+
this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
|
|
742
|
+
minVersion: "12.0.0",
|
|
743
|
+
version: "22.2.1",
|
|
744
|
+
ngImport: i0__namespace,
|
|
745
|
+
type: BaseDateTimeComponent,
|
|
746
|
+
deps: "invalid",
|
|
747
|
+
target: i0__namespace.ɵɵFactoryTarget.Directive
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
static {
|
|
751
|
+
this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
|
|
752
|
+
minVersion: "14.0.0",
|
|
753
|
+
version: "22.2.1",
|
|
754
|
+
type: BaseDateTimeComponent,
|
|
755
|
+
isStandalone: true,
|
|
756
|
+
viewQueries: [
|
|
757
|
+
{
|
|
758
|
+
propertyName: "bsDropdown",
|
|
759
|
+
first: true,
|
|
760
|
+
predicate: dropdown.BsDropdownDirective,
|
|
761
|
+
descendants: true
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
propertyName: "bsTimePicker",
|
|
765
|
+
first: true,
|
|
766
|
+
predicate: timepicker.TimepickerComponent,
|
|
767
|
+
descendants: true
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
propertyName: "datetimepickerComponent",
|
|
771
|
+
first: true,
|
|
772
|
+
predicate: dateTimePicker.DateTimePickerComponent,
|
|
773
|
+
descendants: true
|
|
774
|
+
}
|
|
775
|
+
],
|
|
776
|
+
usesInheritance: true,
|
|
777
|
+
ngImport: i0__namespace
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
i0__namespace.ɵɵngDeclareClassMetadata({
|
|
782
|
+
minVersion: "12.0.0",
|
|
783
|
+
version: "22.2.1",
|
|
784
|
+
ngImport: i0__namespace,
|
|
785
|
+
type: BaseDateTimeComponent,
|
|
786
|
+
decorators: [{ type: i0.Directive }],
|
|
787
|
+
ctorParameters: () => [
|
|
788
|
+
{ type: i0__namespace.Injector },
|
|
789
|
+
{ type: void 0 },
|
|
790
|
+
{
|
|
791
|
+
type: void 0,
|
|
792
|
+
decorators: [{
|
|
793
|
+
type: i0.Inject,
|
|
794
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
795
|
+
}, { type: i0.Optional }]
|
|
796
|
+
}
|
|
797
|
+
],
|
|
798
|
+
propDecorators: {
|
|
799
|
+
bsDropdown: [{
|
|
800
|
+
type: i0.ViewChild,
|
|
801
|
+
args: [dropdown.BsDropdownDirective]
|
|
802
|
+
}],
|
|
803
|
+
bsTimePicker: [{
|
|
804
|
+
type: i0.ViewChild,
|
|
805
|
+
args: [timepicker.TimepickerComponent]
|
|
806
|
+
}],
|
|
807
|
+
datetimepickerComponent: [{
|
|
808
|
+
type: i0.ViewChild,
|
|
809
|
+
args: [dateTimePicker.DateTimePickerComponent]
|
|
810
|
+
}]
|
|
811
|
+
}
|
|
812
|
+
});
|
|
1085
813
|
|
|
1086
|
-
|
|
1087
|
-
|
|
814
|
+
exports.BaseDateTimeComponent = BaseDateTimeComponent;
|
|
815
|
+
exports.getTimepickerConfig = getTimepickerConfig;
|
|
1088
816
|
|
|
1089
817
|
}));
|