@wavemaker-ai/app-ng-runtime 12.0.2-rc.647771 → 12.1.0-rc.347
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,664 +1,611 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import * as i1 from
|
|
4
|
-
import { getClonedObject,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import * as momentLib from
|
|
8
|
-
import { Calendar } from
|
|
9
|
-
import dayGridPlugin from
|
|
10
|
-
import timeGridPlugin from
|
|
11
|
-
import listPlugin from
|
|
12
|
-
import interactionPlugin from
|
|
13
|
-
import allLocales from
|
|
14
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Inject, Optional, ViewChild, ViewEncapsulation } from "@angular/core";
|
|
3
|
+
import * as i1 from "@wm/core";
|
|
4
|
+
import { getClonedObject, getSessionStorageItem, isMobile } from "@wm/core";
|
|
5
|
+
import { APPLY_STYLES_TYPE, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, StylableComponent, createArrayFrom, getEvaluatedData, provideAsWidgetRef, register, styler } from "@wm/components/base";
|
|
6
|
+
import { capitalize, clone, each, extend, get, includes, isDate, isEmpty, isObject, mapKeys } from "lodash-es";
|
|
7
|
+
import * as momentLib from "moment";
|
|
8
|
+
import { Calendar } from "@fullcalendar/core";
|
|
9
|
+
import dayGridPlugin from "@fullcalendar/daygrid";
|
|
10
|
+
import timeGridPlugin from "@fullcalendar/timegrid";
|
|
11
|
+
import listPlugin from "@fullcalendar/list";
|
|
12
|
+
import interactionPlugin from "@fullcalendar/interaction";
|
|
13
|
+
import allLocales from "@fullcalendar/core/locales-all";
|
|
15
14
|
const registerProps = () => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
const props = /* @__PURE__ */ new Map([
|
|
16
|
+
["calendartype", {
|
|
17
|
+
value: "basic",
|
|
18
|
+
...PROP_STRING
|
|
19
|
+
}],
|
|
20
|
+
["class", PROP_STRING],
|
|
21
|
+
["tabindex", {
|
|
22
|
+
value: 0,
|
|
23
|
+
...PROP_NUMBER
|
|
24
|
+
}],
|
|
25
|
+
["controls", {
|
|
26
|
+
value: "navigation, today, year, month, week, day",
|
|
27
|
+
...PROP_STRING
|
|
28
|
+
}],
|
|
29
|
+
["dataset", PROP_ANY],
|
|
30
|
+
["datavalue", PROP_STRING],
|
|
31
|
+
["eventallday", PROP_STRING],
|
|
32
|
+
["eventclass", PROP_STRING],
|
|
33
|
+
["eventend", PROP_STRING],
|
|
34
|
+
["eventstart", PROP_STRING],
|
|
35
|
+
["eventtitle", PROP_STRING],
|
|
36
|
+
["name", PROP_STRING],
|
|
37
|
+
["show", {
|
|
38
|
+
value: true,
|
|
39
|
+
...PROP_BOOLEAN
|
|
40
|
+
}],
|
|
41
|
+
["showindevice", {
|
|
42
|
+
displayType: "inline-block",
|
|
43
|
+
value: "all",
|
|
44
|
+
...PROP_STRING
|
|
45
|
+
}],
|
|
46
|
+
["view", PROP_STRING],
|
|
47
|
+
["selectionmode", PROP_STRING]
|
|
48
|
+
]);
|
|
49
|
+
register("wm-calendar", props);
|
|
35
50
|
};
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
const DEFAULT_CLS = 'app-calendar';
|
|
39
|
-
const dateFormats = ['yyyy-MM-dd', 'yyyy-M-dd', 'M-dd-yyyy', 'MM-dd-yy', 'yyyy, dd MMMM', 'yyyy, MMM dd', 'MM/dd/yyyy', 'M/d/yyyy', 'EEE, dd MMM yyyy', 'EEE MMM dd yyyy', 'EEEE, MMMM dd, yyyy', 'timestamp'];
|
|
51
|
+
const moment = momentLib.default || window["moment"];
|
|
52
|
+
const DEFAULT_CLS = "app-calendar";
|
|
40
53
|
const defaultHeaderOptions = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
54
|
+
start: "prev next today",
|
|
55
|
+
center: "title",
|
|
56
|
+
end: "dayGridMonth dayGridWeek dayGridDay"
|
|
44
57
|
};
|
|
45
58
|
const VIEW_TYPES = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
59
|
+
BASIC: "basic",
|
|
60
|
+
AGENDA: "agenda",
|
|
61
|
+
LIST: "list"
|
|
49
62
|
};
|
|
50
63
|
const BUTTON_TEXT = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
64
|
+
YEAR: "Year",
|
|
65
|
+
MONTH: "Month",
|
|
66
|
+
WEEK: "Week",
|
|
67
|
+
DAY: "Day",
|
|
68
|
+
TODAY: "Today"
|
|
56
69
|
};
|
|
57
70
|
const SELECTION_MODES = {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
71
|
+
NONE: "none",
|
|
72
|
+
SINGLE: "single",
|
|
73
|
+
MULTIPLE: "multiple"
|
|
61
74
|
};
|
|
62
75
|
const NEXT_DAY_THRESHOLD = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
const getEventMomentValue = (value, key) => {
|
|
67
|
-
let isDate = false;
|
|
68
|
-
dateFormats.forEach((format) => {
|
|
69
|
-
// moment supports uppercase formats
|
|
70
|
-
if (moment(value, format.toUpperCase(), true).isValid()) {
|
|
71
|
-
isDate = true;
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
// if the value is date then for end date the value should be end of the day as the calendar is approximating it to the start.
|
|
76
|
-
if (isDate && key === 'end') {
|
|
77
|
-
return moment(value).endOf('day');
|
|
78
|
-
}
|
|
79
|
-
return moment(value);
|
|
76
|
+
START: "00:00",
|
|
77
|
+
END: "24:00"
|
|
80
78
|
};
|
|
81
79
|
const getUTCDateTime = (dateObj) => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
month = dateObj.format('MM') - 1, day = dateObj.format('DD'), hours = dateObj.format('HH'), minutes = dateObj.format('mm'), seconds = dateObj.format('ss');
|
|
86
|
-
return new Date(year, month, day, hours, minutes, seconds);
|
|
80
|
+
dateObj = moment(dateObj);
|
|
81
|
+
const year = dateObj.format("YYYY"), month = dateObj.format("MM") - 1, day = dateObj.format("DD"), hours = dateObj.format("HH"), minutes = dateObj.format("mm"), seconds = dateObj.format("ss");
|
|
82
|
+
return new Date(year, month, day, hours, minutes, seconds);
|
|
87
83
|
};
|
|
88
|
-
const WIDGET_CONFIG = {
|
|
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
|
-
* Adds the new eventsDataSet to the calendar object with addEvent Method and re-renders the calendar
|
|
617
|
-
*/
|
|
618
|
-
renderEventDataSet() {
|
|
619
|
-
const self = this;
|
|
620
|
-
this.$fullCalendar.batchRendering(function () {
|
|
621
|
-
const events = self.$fullCalendar.getEvents();
|
|
622
|
-
each(events, function (event) {
|
|
623
|
-
const eventData = self.$fullCalendar.getEventById(event.id);
|
|
624
|
-
eventData.remove();
|
|
625
|
-
});
|
|
626
|
-
each(self.dataSetEvents.events, function (event) {
|
|
627
|
-
self.$fullCalendar.addEvent(event);
|
|
628
|
-
});
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
ngOnDestroy() {
|
|
632
|
-
if (this.cancelLocaleChangeSubscription) {
|
|
633
|
-
this.cancelLocaleChangeSubscription();
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CalendarComponent, deps: [{ token: i0.Injector }, { token: i1.AbstractI18nService }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
637
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: CalendarComponent, isStandalone: true, selector: "[wmCalendar]", providers: [
|
|
638
|
-
provideAsWidgetRef(CalendarComponent)
|
|
639
|
-
], viewQueries: [{ propertyName: "_calendar", first: true, predicate: ["calendar"], descendants: true }, { propertyName: "_datepicker", first: true, predicate: ["datepicker"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div #calendar></div>\n", encapsulation: i0.ViewEncapsulation.None }); }
|
|
640
|
-
}
|
|
641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CalendarComponent, decorators: [{
|
|
642
|
-
type: Component,
|
|
643
|
-
args: [{ standalone: true, selector: '[wmCalendar]', providers: [
|
|
644
|
-
provideAsWidgetRef(CalendarComponent)
|
|
645
|
-
], encapsulation: ViewEncapsulation.None, template: "<div #calendar></div>\n" }]
|
|
646
|
-
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.AbstractI18nService }, { type: undefined, decorators: [{
|
|
647
|
-
type: Inject,
|
|
648
|
-
args: ['EXPLICIT_CONTEXT']
|
|
649
|
-
}, {
|
|
650
|
-
type: Optional
|
|
651
|
-
}] }], propDecorators: { _calendar: [{
|
|
652
|
-
type: ViewChild,
|
|
653
|
-
args: ['calendar']
|
|
654
|
-
}], _datepicker: [{
|
|
655
|
-
type: ViewChild,
|
|
656
|
-
args: ['datepicker']
|
|
657
|
-
}] } });
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* Generated bundle index. Do not edit.
|
|
661
|
-
*/
|
|
662
|
-
|
|
84
|
+
const WIDGET_CONFIG = {
|
|
85
|
+
widgetType: "wm-calendar",
|
|
86
|
+
hostClass: DEFAULT_CLS
|
|
87
|
+
};
|
|
88
|
+
const dateFormat = "YYYY/MM/DD";
|
|
89
|
+
var CalendarComponent = class CalendarComponent extends StylableComponent {
|
|
90
|
+
static {
|
|
91
|
+
this.initializeProps = registerProps();
|
|
92
|
+
}
|
|
93
|
+
selectDate() {
|
|
94
|
+
let start, end;
|
|
95
|
+
if (isObject(this.datavalue) && !isDate(this.datavalue)) {
|
|
96
|
+
start = moment(this.datavalue.start);
|
|
97
|
+
end = moment(this.datavalue.end);
|
|
98
|
+
} else {
|
|
99
|
+
start = moment(this.datavalue);
|
|
100
|
+
end = moment(this.datavalue).add(1, "day").startOf("day");
|
|
101
|
+
}
|
|
102
|
+
this.$fullCalendar.gotoDate(moment(start)._d);
|
|
103
|
+
this.$fullCalendar.select(start.valueOf(), end.valueOf());
|
|
104
|
+
}
|
|
105
|
+
gotoDate() {
|
|
106
|
+
this.$fullCalendar.gotoDate(moment(this.datavalue)._d);
|
|
107
|
+
}
|
|
108
|
+
gotoNextYear() {
|
|
109
|
+
this.$fullCalendar.nextYear();
|
|
110
|
+
}
|
|
111
|
+
gotoPrevYear() {
|
|
112
|
+
this.$fullCalendar.prevYear();
|
|
113
|
+
}
|
|
114
|
+
gotoMonth(monthVal) {
|
|
115
|
+
let presentDay = this.$fullCalendar.getDate();
|
|
116
|
+
const presentMonthVal = presentDay.getMonth();
|
|
117
|
+
presentDay = moment(presentDay);
|
|
118
|
+
if (presentMonthVal < monthVal) this.$fullCalendar.gotoDate(presentDay.add(monthVal - presentMonthVal - 1, "M").valueOf());
|
|
119
|
+
else this.$fullCalendar.gotoDate(presentDay.subtract(presentMonthVal - monthVal + 1, "M").valueOf());
|
|
120
|
+
}
|
|
121
|
+
gotoNextMonth() {
|
|
122
|
+
const presentDay = moment(this.$fullCalendar.getDate());
|
|
123
|
+
this.$fullCalendar.gotoDate(presentDay.add(1, "M").valueOf());
|
|
124
|
+
}
|
|
125
|
+
gotoPrevMonth() {
|
|
126
|
+
const presentDay = moment(this.$fullCalendar.getDate());
|
|
127
|
+
this.$fullCalendar.gotoDate(presentDay.subtract(1, "M").valueOf());
|
|
128
|
+
}
|
|
129
|
+
rerenderEvents() {
|
|
130
|
+
this.$fullCalendar.render();
|
|
131
|
+
}
|
|
132
|
+
setSelectedData(start, end) {
|
|
133
|
+
let dataset = this.dataset;
|
|
134
|
+
if (!dataset) return;
|
|
135
|
+
const filteredDates = [];
|
|
136
|
+
const eventStartKey = this.eventstart || "start";
|
|
137
|
+
const eventEndKey = this.eventend || "end";
|
|
138
|
+
const startDate = moment(new Date(start)).format("MM/DD/YYYY");
|
|
139
|
+
const endDate = moment(new Date(end)).subtract(1, "days").format("MM/DD/YYYY");
|
|
140
|
+
dataset = dataset.data || dataset;
|
|
141
|
+
dataset.forEach((value) => {
|
|
142
|
+
if (!value[eventStartKey]) return;
|
|
143
|
+
const eventStartDate = moment(new Date(value[eventStartKey])).format("MM/DD/YYYY");
|
|
144
|
+
const eventEndDate = moment(new Date(value[eventEndKey] || value[eventStartKey])).format("MM/DD/YYYY");
|
|
145
|
+
if (moment(eventStartDate).isSameOrAfter(startDate) && moment(eventEndDate).isSameOrBefore(endDate)) filteredDates.push(value);
|
|
146
|
+
});
|
|
147
|
+
return filteredDates;
|
|
148
|
+
}
|
|
149
|
+
eventDrop(eventDropInfo) {
|
|
150
|
+
let newDataObj = this.convertEventObjForOldAndNewData(eventDropInfo.event);
|
|
151
|
+
let oldDataObj = this.convertEventObjForOldAndNewData(eventDropInfo.oldEvent);
|
|
152
|
+
this.invokeEventCallback("eventdrop", {
|
|
153
|
+
$event: eventDropInfo.jsEvent,
|
|
154
|
+
$newData: newDataObj,
|
|
155
|
+
$oldData: oldDataObj,
|
|
156
|
+
$delta: eventDropInfo.delta,
|
|
157
|
+
$revertFunc: eventDropInfo.revert,
|
|
158
|
+
$ui: {},
|
|
159
|
+
$view: eventDropInfo.view
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
getDefaultDate() {
|
|
163
|
+
if (this.datavalue) return new Date(this.datavalue);
|
|
164
|
+
}
|
|
165
|
+
getDefaultOptions() {
|
|
166
|
+
return this.calendarOptions;
|
|
167
|
+
}
|
|
168
|
+
getLib() {
|
|
169
|
+
return "fullcalendar";
|
|
170
|
+
}
|
|
171
|
+
select($selectionInfo) {
|
|
172
|
+
this.selecteddates = {
|
|
173
|
+
start: getUTCDateTime($selectionInfo.start),
|
|
174
|
+
end: getUTCDateTime($selectionInfo.end)
|
|
175
|
+
};
|
|
176
|
+
this.selecteddata = this.setSelectedData($selectionInfo.start, $selectionInfo.end);
|
|
177
|
+
this.invokeEventCallback("select", {
|
|
178
|
+
$start: $selectionInfo.start.valueOf(),
|
|
179
|
+
$end: $selectionInfo.end.valueOf(),
|
|
180
|
+
$view: $selectionInfo.view,
|
|
181
|
+
$data: this.selecteddata
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
unselect() {
|
|
185
|
+
this.$fullCalendar.unselect();
|
|
186
|
+
}
|
|
187
|
+
convertEventObj(eventObj) {
|
|
188
|
+
if (!eventObj.extendedProps._eventMetadata) return eventObj;
|
|
189
|
+
const _eventMetadata = eventObj.extendedProps._eventMetadata;
|
|
190
|
+
Object.setPrototypeOf(_eventMetadata, eventObj);
|
|
191
|
+
return _eventMetadata;
|
|
192
|
+
}
|
|
193
|
+
convertEventObjForOldAndNewData(eventObj) {
|
|
194
|
+
const _eventMetadata = eventObj.extendedProps;
|
|
195
|
+
extend(eventObj, _eventMetadata);
|
|
196
|
+
return eventObj;
|
|
197
|
+
}
|
|
198
|
+
eventResize(eventResizeInfo) {
|
|
199
|
+
let newDataObj = this.convertEventObjForOldAndNewData(eventResizeInfo.event);
|
|
200
|
+
let oldDataObj = this.convertEventObjForOldAndNewData(eventResizeInfo.oldEvent);
|
|
201
|
+
this.invokeEventCallback("eventresize", {
|
|
202
|
+
$event: eventResizeInfo.jsEvent,
|
|
203
|
+
$newData: newDataObj,
|
|
204
|
+
$oldData: oldDataObj,
|
|
205
|
+
$delta: eventResizeInfo.delta,
|
|
206
|
+
$revertFunc: eventResizeInfo.revert,
|
|
207
|
+
$ui: {},
|
|
208
|
+
$view: eventResizeInfo.view
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
onEventChangeStart(event) {
|
|
212
|
+
this.oldData = getClonedObject(event);
|
|
213
|
+
}
|
|
214
|
+
eventClick(eventClickInfo) {
|
|
215
|
+
let eventObj = this.convertEventObj(eventClickInfo.event);
|
|
216
|
+
this.invokeEventCallback("eventclick", {
|
|
217
|
+
$event: eventClickInfo.jsEvent,
|
|
218
|
+
$data: eventObj,
|
|
219
|
+
$view: eventClickInfo.view
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
eventDidMount(event) {
|
|
223
|
+
let eventObj = this.convertEventObj(event.event);
|
|
224
|
+
if (this.calendartype === VIEW_TYPES.LIST) this.$element.find(".fc-list-table").addClass("table");
|
|
225
|
+
this.invokeEventCallback("eventrender", {
|
|
226
|
+
$event: event.el,
|
|
227
|
+
$data: eventObj,
|
|
228
|
+
$view: event.view
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
viewDidMount($view) {
|
|
232
|
+
if (this.calendartype === VIEW_TYPES.LIST) this.$element.find(".fc-list-table").addClass("table");
|
|
233
|
+
this.invokeEventCallback("viewrender", { $view });
|
|
234
|
+
}
|
|
235
|
+
datesSet(data) {
|
|
236
|
+
this.currentview = {
|
|
237
|
+
start: moment(data.start).format("YYYY-MM-DD"),
|
|
238
|
+
end: moment(data.end).format("YYYY-MM-DD")
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
dateClick($info) {
|
|
242
|
+
const dateInfo = getUTCDateTime($info.date).valueOf();
|
|
243
|
+
this.invokeEventCallback("dateclick", { $dateInfo: dateInfo });
|
|
244
|
+
}
|
|
245
|
+
updateCalendarHeaderOptions() {
|
|
246
|
+
const ctrls = this.controls, viewType = this.calendartype, regEx = /* @__PURE__ */ new RegExp("\\bday\\b", "g");
|
|
247
|
+
let left = "", right = "";
|
|
248
|
+
if (ctrls && viewType) {
|
|
249
|
+
if (includes(ctrls, "navigation")) left += " prev next";
|
|
250
|
+
if (includes(ctrls, "today")) left += " today";
|
|
251
|
+
if (includes(ctrls, "year")) right += viewType === VIEW_TYPES.LIST ? "listYear" : "";
|
|
252
|
+
if (includes(ctrls, "month")) right += viewType === VIEW_TYPES.LIST ? " listMonth" : " dayGridMonth";
|
|
253
|
+
if (includes(ctrls, "week")) right += viewType === VIEW_TYPES.BASIC ? " dayGridWeek" : viewType === VIEW_TYPES.LIST ? " listWeek" : " timeGridWeek";
|
|
254
|
+
if (regEx.test(ctrls)) right += viewType === VIEW_TYPES.BASIC ? " dayGridDay" : viewType === VIEW_TYPES.LIST ? " listDay" : " timeGridDay";
|
|
255
|
+
if (left.charAt(0) === " ") left = left.substring(1);
|
|
256
|
+
if (right.charAt(0) === " ") right = right.substring(1);
|
|
257
|
+
extend(this.calendarOptions.calendar.headerToolbar, {
|
|
258
|
+
"start": left,
|
|
259
|
+
"end": right
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
constructor(inj, i18nService, explicitContext) {
|
|
264
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
265
|
+
this.controls = "navigation, today, year, month, week, day";
|
|
266
|
+
this.eventSources = [];
|
|
267
|
+
this.dataSetEvents = { events: [] };
|
|
268
|
+
this.changesStack = [];
|
|
269
|
+
this.calendarOptions = { calendar: {
|
|
270
|
+
height: 600,
|
|
271
|
+
eventSources: this.eventSources,
|
|
272
|
+
editable: true,
|
|
273
|
+
locale: getSessionStorageItem("selectedLocale") || "en",
|
|
274
|
+
selectable: false,
|
|
275
|
+
longPressDelay: isMobile() ? 1 : 1e3,
|
|
276
|
+
headerToolbar: defaultHeaderOptions,
|
|
277
|
+
nextDayThreshold: NEXT_DAY_THRESHOLD,
|
|
278
|
+
views: { month: { dayMaxEventsRow: true } },
|
|
279
|
+
unselectAuto: false,
|
|
280
|
+
eventDrop: this.eventDrop.bind(this),
|
|
281
|
+
eventResizeStart: this.onEventChangeStart.bind(this),
|
|
282
|
+
eventDragStart: this.onEventChangeStart.bind(this),
|
|
283
|
+
eventResize: this.eventResize.bind(this),
|
|
284
|
+
eventClick: this.eventClick.bind(this),
|
|
285
|
+
select: this.select.bind(this),
|
|
286
|
+
eventDidMount: this.eventDidMount.bind(this),
|
|
287
|
+
viewDidMount: this.viewDidMount.bind(this),
|
|
288
|
+
datesSet: this.datesSet.bind(this),
|
|
289
|
+
dateClick: this.dateClick.bind(this)
|
|
290
|
+
} };
|
|
291
|
+
this.dayClass = [];
|
|
292
|
+
this.eventSources.push(this.dataSetEvents);
|
|
293
|
+
let FullCalendar = window["FullCalendar"] ? window["FullCalendar"] : Calendar;
|
|
294
|
+
if (!FullCalendar.__wm_locale_initialized) {
|
|
295
|
+
i18nService.initCalendarLocale();
|
|
296
|
+
FullCalendar.__wm_locale_initialized = true;
|
|
297
|
+
}
|
|
298
|
+
this.cancelLocaleChangeSubscription = this.getAppInstance().subscribe("locale-changed", (libLocale) => {
|
|
299
|
+
this.setLocale();
|
|
300
|
+
this.applyCalendarOptions("option", "locale", libLocale.fullCalendar || "en");
|
|
301
|
+
this.redraw();
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
ngOnInit() {
|
|
305
|
+
super.ngOnInit();
|
|
306
|
+
styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER, ["height"]);
|
|
307
|
+
this.setLocale();
|
|
308
|
+
}
|
|
309
|
+
onStyleChange(key, nv, ov) {
|
|
310
|
+
super.onStyleChange(key, nv, ov);
|
|
311
|
+
if (key === "height") {
|
|
312
|
+
this.calendarOptions.calendar.height = this.calculateHeight(nv);
|
|
313
|
+
this.updateCalendarOptions("option", "height", this.calendarOptions.calendar.height);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
onPropertyChange(key, nv, ov) {
|
|
317
|
+
super.onPropertyChange(key, nv, ov);
|
|
318
|
+
switch (key) {
|
|
319
|
+
case "selectionmode":
|
|
320
|
+
if (nv !== SELECTION_MODES.NONE) {
|
|
321
|
+
this.calendarOptions.calendar.selectable = true;
|
|
322
|
+
this.updateCalendarOptions("option", "selectable", true);
|
|
323
|
+
if (nv === SELECTION_MODES.SINGLE) {
|
|
324
|
+
this.calendarOptions.calendar.selectConstraint = {
|
|
325
|
+
startTime: "00:00",
|
|
326
|
+
endTime: "24:00"
|
|
327
|
+
};
|
|
328
|
+
this.updateCalendarOptions("option", "selectConstraint", this.calendarOptions.calendar.selectConstraint);
|
|
329
|
+
} else this.updateCalendarOptions("option", "selectConstraint", {});
|
|
330
|
+
} else {
|
|
331
|
+
this.calendarOptions.calendar.selectable = false;
|
|
332
|
+
this.updateCalendarOptions("option", "selectable", false);
|
|
333
|
+
}
|
|
334
|
+
break;
|
|
335
|
+
case "view":
|
|
336
|
+
if (nv !== "month" || this.calendartype === VIEW_TYPES.LIST) this.calendarOptions.calendar.defaultView = this.calendartype + capitalize(nv);
|
|
337
|
+
else this.calendarOptions.calendar.defaultView = nv;
|
|
338
|
+
this.updateCalendarOptions("changeView", this.calendarOptions.calendar.defaultView);
|
|
339
|
+
break;
|
|
340
|
+
case "calendartype": this.calendartype = nv || "dayGrid";
|
|
341
|
+
case "controls":
|
|
342
|
+
this.updateCalendarHeaderOptions();
|
|
343
|
+
break;
|
|
344
|
+
case "dataset":
|
|
345
|
+
let dataSet;
|
|
346
|
+
this.dataset = nv;
|
|
347
|
+
dataSet = createArrayFrom(getClonedObject(nv));
|
|
348
|
+
dataSet = this.constructCalendarDataset(dataSet);
|
|
349
|
+
this.dataSetEvents.events = dataSet.filter((event) => {
|
|
350
|
+
event.start = event.start || event.end;
|
|
351
|
+
if (event.start) return true;
|
|
352
|
+
});
|
|
353
|
+
this.renderEventDataSet();
|
|
354
|
+
break;
|
|
355
|
+
case "show": this.$fullCalendar?.changeView(this.getViewType(this.view ? this.view : "dayGridMonth"));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
calculateHeight(height) {
|
|
359
|
+
const $parent = $(this.nativeElement).parent(), elHeight = height || "650px";
|
|
360
|
+
let parentHeight = $parent.css("height"), computedHeight;
|
|
361
|
+
if (includes(elHeight, "%")) {
|
|
362
|
+
if (includes(parentHeight, "%")) parentHeight = $parent.height();
|
|
363
|
+
computedHeight = parseInt(parentHeight, 10) * Number(elHeight.replace(/\%/g, "")) / 100;
|
|
364
|
+
} else computedHeight = parseInt(elHeight, 10);
|
|
365
|
+
this.calendarOptions.calendar.views.month.eventLimit = parseInt("" + computedHeight / 200, 10) + 1;
|
|
366
|
+
return computedHeight;
|
|
367
|
+
}
|
|
368
|
+
ngAfterViewInit() {
|
|
369
|
+
super.ngAfterViewInit();
|
|
370
|
+
const calendarEl = this._calendar.nativeElement;
|
|
371
|
+
let FullCalendar;
|
|
372
|
+
if (window["FullCalendar"]) FullCalendar = window["FullCalendar"].Calendar;
|
|
373
|
+
else {
|
|
374
|
+
FullCalendar = Calendar;
|
|
375
|
+
this.calendarOptions.calendar = {
|
|
376
|
+
...this.calendarOptions.calendar,
|
|
377
|
+
plugins: [
|
|
378
|
+
dayGridPlugin,
|
|
379
|
+
timeGridPlugin,
|
|
380
|
+
listPlugin,
|
|
381
|
+
listPlugin,
|
|
382
|
+
interactionPlugin
|
|
383
|
+
],
|
|
384
|
+
locales: allLocales
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
const calendar = new FullCalendar(calendarEl, this.calendarOptions.calendar);
|
|
388
|
+
this.$fullCalendar = calendar;
|
|
389
|
+
this.invokeEventCallback("beforerender", { "$event": {} });
|
|
390
|
+
calendar.render();
|
|
391
|
+
if (this.changesStack.length) {
|
|
392
|
+
this.changesStack.forEach((changeObj) => {
|
|
393
|
+
this.applyCalendarOptions(changeObj.operationType, changeObj.argumentKey, changeObj.argumentValue);
|
|
394
|
+
});
|
|
395
|
+
this.changesStack.length = 0;
|
|
396
|
+
}
|
|
397
|
+
$(".fc-prev-button").attr("aria-label", "prev");
|
|
398
|
+
$(".fc-next-button").attr("aria-label", "next");
|
|
399
|
+
$(".fc-today-button").attr("aria-label", "today");
|
|
400
|
+
setTimeout(() => {
|
|
401
|
+
this.$fullCalendar.changeView(this.getViewType(this.view ? this.view : "dayGridMonth"));
|
|
402
|
+
}, 50);
|
|
403
|
+
}
|
|
404
|
+
constructCalendarDataset(eventSource) {
|
|
405
|
+
const properties = {
|
|
406
|
+
title: this.eventtitle || "title",
|
|
407
|
+
allDay: this.eventallday || "allday",
|
|
408
|
+
start: this.eventstart || "start",
|
|
409
|
+
end: this.eventend || "end",
|
|
410
|
+
className: this.eventclass || "className"
|
|
411
|
+
};
|
|
412
|
+
eventSource.forEach((obj) => {
|
|
413
|
+
obj._eventMetadata = clone(obj);
|
|
414
|
+
if (isEmpty(obj._eventMetadata.url)) delete obj._eventMetadata.url;
|
|
415
|
+
if (isEmpty(obj.url)) delete obj.url;
|
|
416
|
+
mapKeys(properties, (value, key) => {
|
|
417
|
+
let objVal;
|
|
418
|
+
if (key === "title") objVal = getEvaluatedData(obj, { expression: value }, this.viewParent);
|
|
419
|
+
else if (key === "allDay") objVal = !!get(obj, value);
|
|
420
|
+
else objVal = get(obj, value);
|
|
421
|
+
if (!objVal) return;
|
|
422
|
+
obj[key] = objVal;
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
return eventSource;
|
|
426
|
+
}
|
|
427
|
+
setLocale() {
|
|
428
|
+
const year = get(this.appLocale, "LABEL_CALENDAR_YEAR") || BUTTON_TEXT.YEAR;
|
|
429
|
+
const month = get(this.appLocale, "LABEL_CALENDAR_MONTH") || BUTTON_TEXT.MONTH;
|
|
430
|
+
const week = get(this.appLocale, "LABEL_CALENDAR_WEEK") || BUTTON_TEXT.WEEK;
|
|
431
|
+
const day = get(this.appLocale, "LABEL_CALENDAR_DAY") || BUTTON_TEXT.DAY;
|
|
432
|
+
const today = get(this.appLocale, "LABEL_CALENDAR_TODAY") || BUTTON_TEXT.TODAY;
|
|
433
|
+
this.calendarOptions.calendar.buttonText = {
|
|
434
|
+
year,
|
|
435
|
+
month,
|
|
436
|
+
week,
|
|
437
|
+
day,
|
|
438
|
+
today,
|
|
439
|
+
"listYear": year,
|
|
440
|
+
"listMonth": month,
|
|
441
|
+
"listWeek": week,
|
|
442
|
+
"listDay": day
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
overrideDefaults(options) {
|
|
446
|
+
if (isObject(options)) Object.entries(options).forEach((option) => this.$fullCalendar.setOption(option[0], option[1]));
|
|
447
|
+
}
|
|
448
|
+
updateCalendarOptions(operationType, argumentKey, argumentValue) {
|
|
449
|
+
if (!this.$fullCalendar) {
|
|
450
|
+
this.changesStack.push({
|
|
451
|
+
operationType,
|
|
452
|
+
argumentKey,
|
|
453
|
+
argumentValue
|
|
454
|
+
});
|
|
455
|
+
return;
|
|
456
|
+
}
|
|
457
|
+
this.applyCalendarOptions(operationType, argumentKey, argumentValue);
|
|
458
|
+
}
|
|
459
|
+
redraw() {
|
|
460
|
+
this.updateCalendarOptions("render");
|
|
461
|
+
this.$fullCalendar?.changeView(this.getViewType(this.view ? this.view : "dayGridMonth"));
|
|
462
|
+
}
|
|
463
|
+
onValueChange(value) {
|
|
464
|
+
this.proxyModel = value;
|
|
465
|
+
const selectedDate = this.proxyModel && moment(this.proxyModel).startOf("day").format(dateFormat), selectedEventData = this.eventData[selectedDate], start = moment(this.proxyModel), end = moment(this.proxyModel).endOf("day");
|
|
466
|
+
this.selecteddata = selectedEventData;
|
|
467
|
+
this.selecteddates = {
|
|
468
|
+
"start": moment(selectedDate).valueOf(),
|
|
469
|
+
"end": moment(selectedDate).endOf("day").valueOf()
|
|
470
|
+
};
|
|
471
|
+
this.calendarOptions.calendar.select(start.valueOf(), end.valueOf(), {}, this, selectedEventData);
|
|
472
|
+
if (selectedEventData) this.calendarOptions.calendar.eventClick(selectedEventData, {}, this);
|
|
473
|
+
}
|
|
474
|
+
addEventSource(eventObject) {
|
|
475
|
+
if (isEmpty(eventObject)) {
|
|
476
|
+
console.warn("addEventSource method requires an object as a parameter.");
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
if (eventObject.source === "google") {
|
|
480
|
+
if (!eventObject.googleCalendarApiKey || !eventObject.googleCalendarId) {
|
|
481
|
+
console.warn("For google calendar integration, 'googleCalendarApiKey' and 'googleCalendarId' should be passed in the parameter object.");
|
|
482
|
+
return;
|
|
483
|
+
}
|
|
484
|
+
this.$fullCalendar.setOption("googleCalendarApiKey", eventObject.googleCalendarApiKey);
|
|
485
|
+
this.$fullCalendar.addEventSource({ googleCalendarId: eventObject.googleCalendarId });
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
getViewType(viewKey) {
|
|
489
|
+
const calendarType = this.calendartype;
|
|
490
|
+
const view = this.view;
|
|
491
|
+
let result;
|
|
492
|
+
if (view === "month") result = calendarType === VIEW_TYPES.LIST ? "listMonth" : "dayGridMonth";
|
|
493
|
+
else if (view === "week") result = calendarType === VIEW_TYPES.BASIC ? "dayGridWeek" : calendarType === VIEW_TYPES.LIST ? "listWeek" : "timeGridWeek";
|
|
494
|
+
else if (view === "day") result = calendarType === VIEW_TYPES.BASIC ? "dayGridDay" : calendarType === VIEW_TYPES.LIST ? "listDay" : "timeGridDay";
|
|
495
|
+
else if (view === "year") result = calendarType === VIEW_TYPES.LIST ? "listYear" : "";
|
|
496
|
+
else result = viewKey;
|
|
497
|
+
return result;
|
|
498
|
+
}
|
|
499
|
+
applyCalendarOptions(operationType, argumentKey, argumentValue) {
|
|
500
|
+
switch (operationType) {
|
|
501
|
+
case "render":
|
|
502
|
+
this.$fullCalendar.render();
|
|
503
|
+
break;
|
|
504
|
+
case "option":
|
|
505
|
+
this.$fullCalendar.setOption(argumentKey, argumentValue);
|
|
506
|
+
break;
|
|
507
|
+
case "changeView":
|
|
508
|
+
const view = this.getViewType(argumentKey);
|
|
509
|
+
this.$fullCalendar.changeView(view);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
renderEventDataSet() {
|
|
513
|
+
const self = this;
|
|
514
|
+
this.$fullCalendar.batchRendering(function() {
|
|
515
|
+
const events = self.$fullCalendar.getEvents();
|
|
516
|
+
each(events, function(event) {
|
|
517
|
+
self.$fullCalendar.getEventById(event.id).remove();
|
|
518
|
+
});
|
|
519
|
+
each(self.dataSetEvents.events, function(event) {
|
|
520
|
+
self.$fullCalendar.addEvent(event);
|
|
521
|
+
});
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
ngOnDestroy() {
|
|
525
|
+
if (this.cancelLocaleChangeSubscription) this.cancelLocaleChangeSubscription();
|
|
526
|
+
}
|
|
527
|
+
static {
|
|
528
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
529
|
+
minVersion: "12.0.0",
|
|
530
|
+
version: "22.2.1",
|
|
531
|
+
ngImport: i0,
|
|
532
|
+
type: CalendarComponent,
|
|
533
|
+
deps: [
|
|
534
|
+
{ token: i0.Injector },
|
|
535
|
+
{ token: i1.AbstractI18nService },
|
|
536
|
+
{
|
|
537
|
+
token: "EXPLICIT_CONTEXT",
|
|
538
|
+
optional: true
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
static {
|
|
545
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
546
|
+
minVersion: "14.0.0",
|
|
547
|
+
version: "22.2.1",
|
|
548
|
+
type: CalendarComponent,
|
|
549
|
+
isStandalone: true,
|
|
550
|
+
selector: "[wmCalendar]",
|
|
551
|
+
providers: [provideAsWidgetRef(CalendarComponent)],
|
|
552
|
+
viewQueries: [{
|
|
553
|
+
propertyName: "_calendar",
|
|
554
|
+
first: true,
|
|
555
|
+
predicate: ["calendar"],
|
|
556
|
+
descendants: true
|
|
557
|
+
}, {
|
|
558
|
+
propertyName: "_datepicker",
|
|
559
|
+
first: true,
|
|
560
|
+
predicate: ["datepicker"],
|
|
561
|
+
descendants: true
|
|
562
|
+
}],
|
|
563
|
+
usesInheritance: true,
|
|
564
|
+
ngImport: i0,
|
|
565
|
+
template: "<div #calendar></div>\n",
|
|
566
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager,
|
|
567
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
572
|
+
minVersion: "12.0.0",
|
|
573
|
+
version: "22.2.1",
|
|
574
|
+
ngImport: i0,
|
|
575
|
+
type: CalendarComponent,
|
|
576
|
+
decorators: [{
|
|
577
|
+
type: Component,
|
|
578
|
+
args: [{
|
|
579
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
580
|
+
standalone: true,
|
|
581
|
+
selector: "[wmCalendar]",
|
|
582
|
+
providers: [provideAsWidgetRef(CalendarComponent)],
|
|
583
|
+
encapsulation: ViewEncapsulation.None,
|
|
584
|
+
template: "<div #calendar></div>\n"
|
|
585
|
+
}]
|
|
586
|
+
}],
|
|
587
|
+
ctorParameters: () => [
|
|
588
|
+
{ type: i0.Injector },
|
|
589
|
+
{ type: i1.AbstractI18nService },
|
|
590
|
+
{
|
|
591
|
+
type: void 0,
|
|
592
|
+
decorators: [{
|
|
593
|
+
type: Inject,
|
|
594
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
595
|
+
}, { type: Optional }]
|
|
596
|
+
}
|
|
597
|
+
],
|
|
598
|
+
propDecorators: {
|
|
599
|
+
_calendar: [{
|
|
600
|
+
type: ViewChild,
|
|
601
|
+
args: ["calendar"]
|
|
602
|
+
}],
|
|
603
|
+
_datepicker: [{
|
|
604
|
+
type: ViewChild,
|
|
605
|
+
args: ["datepicker"]
|
|
606
|
+
}]
|
|
607
|
+
}
|
|
608
|
+
});
|
|
663
609
|
export { CalendarComponent };
|
|
664
|
-
|
|
610
|
+
|
|
611
|
+
//# sourceMappingURL=index.mjs.map
|