@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../projects/http-service/src/http.service.ts","../../../projects/http-service/src/wm-http-request.ts","../../../projects/http-service/src/wm-http-response.ts","../../../projects/http-service/src/index.ts"],"sourcesContent":["import { Injectable, OnDestroy } from '@angular/core';\nimport { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpRequest, HttpResponse } from '@angular/common/http';\n\nimport { Observable, Subject, Subscription } from 'rxjs';\n\nimport { AbstractHttpService } from '@wm/core';\nimport { HttpClientService, getErrMessage } from '@wavemaker-ai/variables';\nimport { includes, isBoolean, isFunction, isNumber } from \"lodash-es\";\n\nenum HTTP_EVENT_TYPE {\n Sent = 0,\n UploadProgress = 1,\n ResponseHeader = 2,\n DownloadProgress = 3,\n Response = 4,\n User = 5\n}\n\n@Injectable(\n {\n providedIn: 'root'\n }\n)\nexport class HttpServiceImpl extends AbstractHttpService implements HttpClientService, OnDestroy {\n nonBodyTypeMethods = ['GET', 'DELETE', 'HEAD', 'OPTIONS', 'JSONP'];\n sessionTimeoutObservable = new Subject();\n sessionTimeoutQueue = [];\n localeObject: any;\n private sessionTimeoutSubscriptions: Subscription[] = []; // MEMORY LEAK FIX: Track subscriptions\n\n constructor(private readonly httpClient: HttpClient) {\n super();\n }\n\n /**\n * This method handles session timeout.\n * @param options\n * @param resolve\n * @param reject\n */\n handleSessionTimeout(options, subscriber401?) {\n this.sessionTimeoutQueue.push({\n requestInfo: options,\n sub401: subscriber401\n });\n this.on401();\n }\n\n /**\n * Generates a request with provided options\n * @param options, request params/options\n */\n private generateRequest(options: any) {\n let reqHeaders = new HttpHeaders(),\n reqParams = new HttpParams();\n const headers = options.headers;\n const params = options.params;\n const responseType = options.responseType;\n const withCredentials = options.withCredentials;\n\n // this header is not to be sent with non-proxy calls from service variable\n if (!options.isDirectCall) {\n reqHeaders = reqHeaders.append('X-Requested-With', 'XMLHttpRequest');\n }\n\n // headers\n if (headers) {\n Object.entries(headers).forEach(([k, v]) => {\n if (isNumber(v) || isBoolean(v)) {\n v = v.toString();\n }\n reqHeaders = reqHeaders.append(k, v as string);\n })\n }\n\n // params\n if (params) {\n Object.entries(params).forEach(([k, v]) => reqParams = reqParams.append(k, v as string));\n }\n\n let third, fourth;\n const reqOptions = {\n headers: reqHeaders,\n params: reqParams,\n responseType: responseType,\n withCredentials: withCredentials\n };\n // Even if method is not expecting request body, if body is passed in request, pass it on.\n if (includes(this.nonBodyTypeMethods, options.method?.toUpperCase()) && options.data === undefined) {\n third = reqOptions;\n fourth = null;\n } else {\n third = options.data;\n fourth = reqOptions;\n }\n return new HttpRequest(options.method, options.url, third, fourth);\n }\n\n\n /**\n * Make a http call and returns an observable that can be cancelled\n * @param options, options using which the call needs to be made\n */\n sendCallAsObservable(options: any, params?: any): any {\n const req = this.generateRequest(options);\n return this.httpClient.request(req);\n }\n\n sendCall(requestParams, variable, params?) {\n return new Promise((resolve, reject) => {\n variable._observable = this.sendCallAsObservable(requestParams, params).subscribe((response: any) => {\n if (response?.type) {\n resolve(response);\n }\n }, (err: any) => {\n reject(err);\n });\n });\n }\n\n /**\n * Makes a http call and return a promise\n * @param options, options using which the call needs to be made\n */\n send(options: any) {\n const req = this.generateRequest(options);\n\n return new Promise((resolve, reject) => {\n this.httpClient.request(req).toPromise().then((response) => {\n resolve(response);\n }, (err) => {\n if (this.isPlatformSessionTimeout(err)) {\n err._401Subscriber.asObservable().subscribe((response) => {\n resolve(response);\n }, (e) => {\n reject(e);\n });\n } else {\n const errMsg = getErrMessage(err, this.getLocale());\n reject({\n error: errMsg,\n details: err\n });\n }\n });\n });\n }\n\n cancel(variable, $file?) {\n if (variable._observable) {\n variable._observable.unsubscribe();\n }\n if ($file?._uploadProgress) {\n $file._uploadProgress.unsubscribe();\n }\n }\n\n setLocale(locale) {\n this.localeObject = locale;\n }\n\n getLocale() {\n return this.localeObject;\n }\n\n getHeader(error, headerKey) {\n return error.headers.get(headerKey);\n }\n\n isPlatformSessionTimeout(error) {\n const MSG_SESSION_NOT_FOUND = 'Session Not Found';\n return error.status === 401 && this.getHeader(error, 'x-wm-login-errormessage') === MSG_SESSION_NOT_FOUND;\n }\n\n get(url: string, options?: any) {\n options = options || {};\n options.url = url;\n options.method = 'get';\n return this.send(options).then((response: HttpResponse<string>) => response.body);\n }\n\n post(url, data, options) {\n options = options || {};\n options.url = url;\n options.method = 'post';\n options.data = data;\n return this.send(options);\n }\n\n put(url, data, options) {\n options = options || {};\n options.url = url;\n options.method = 'put';\n options.data = data;\n return this.send(options);\n }\n\n patch(url, data, options) {\n options = options || {};\n options.url = url;\n options.method = 'patch';\n options.data = data;\n return this.send(options);\n }\n\n delete(url, options) {\n options = options || {};\n options.url = url;\n options.method = 'delete';\n return this.send(options);\n }\n\n head(url, options) {\n options = options || {};\n options.url = url;\n options.method = 'head';\n return this.send(options);\n }\n\n jsonp(url, options) {\n options = options || {};\n options.url = url;\n options.method = 'jsonp';\n return this.send(options);\n }\n\n upload(url, data, options): Observable<HttpEvent<any>> {\n const req = new HttpRequest('POST', url, data, {\n reportProgress: true // for progress data\n });\n return this.httpClient.request(req);\n // return this.httpClient.post(url, data, {\n // reportProgress: true\n // });\n }\n\n uploadFile(url, data, variable, options?) {\n return new Promise((resolve, reject) => {\n variable.request = this.upload(url, data, options).subscribe((event: any) => {\n if (event.type === HTTP_EVENT_TYPE.UploadProgress) {\n const uploadProgress = Math.round(100 * event.loaded / event.total);\n options.notify(uploadProgress);\n }\n\n if (event.type === HTTP_EVENT_TYPE.Response) {\n resolve(event.body);\n }\n }, error => {\n reject(error);\n });\n });\n }\n /**\n * registers a callback to be trigerred on session timeout\n * @param callback\n * @returns unsubscribe function\n */\n registerOnSessionTimeout(callback) {\n // MEMORY LEAK FIX: Store subscription reference for cleanup\n const subscription = this.sessionTimeoutObservable.asObservable().subscribe(callback);\n this.sessionTimeoutSubscriptions.push(subscription);\n // Return unsubscribe function so caller can clean up if needed\n return () => {\n subscription.unsubscribe();\n const index = this.sessionTimeoutSubscriptions.indexOf(subscription);\n if (index > -1) {\n this.sessionTimeoutSubscriptions.splice(index, 1);\n }\n };\n }\n\n /**\n * trigger the registered methods on session timeout\n */\n on401() {\n this.sessionTimeoutObservable.next(undefined);\n }\n\n pushToSessionFailureQueue(callback) {\n this.sessionTimeoutQueue.push({\n callback: callback\n });\n }\n\n /**\n * Execute queued requests, failed due to session timeout\n */\n executeSessionFailureRequests() {\n const queue = this.sessionTimeoutQueue;\n const that = this;\n that.sessionTimeoutQueue = [];\n queue.forEach(data => {\n if (isFunction(data.callback)) {\n data.callback();\n } else {\n data.requestInfo.headers.headers.delete('x-wm-xsrf-token');\n that.httpClient.request(data.requestInfo)\n .subscribe(\n response => {\n if (response && response.type && data.sub401) {\n data.sub401.next(response);\n }\n }, (reason) => {\n data.sub401.error(reason);\n });\n }\n });\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Unsubscribe from all session timeout subscriptions\n this.sessionTimeoutSubscriptions.forEach(sub => {\n if (sub && !sub.closed) {\n sub.unsubscribe();\n }\n });\n this.sessionTimeoutSubscriptions = [];\n\n // MEMORY LEAK FIX: Complete Subject to release subscriptions\n if (this.sessionTimeoutObservable) {\n this.sessionTimeoutObservable.complete();\n this.sessionTimeoutObservable = null;\n }\n\n // MEMORY LEAK FIX: Clear session timeout queue\n this.sessionTimeoutQueue = [];\n\n // MEMORY LEAK FIX: Clear locale object\n this.localeObject = null;\n }\n}\n","import { HttpRequest } from '@angular/common/http';\n\n/**\n * This class creates a custom WmHttpRequest.\n */\nexport class WmHttpRequest {\n\n method: string;\n url: string;\n headers: any = [];\n responseType: string;\n reportProgress: boolean;\n withCredentials: boolean;\n urlWithParams: string;\n body: any;\n\n constructor() {}\n\n /**\n * This method converts the given wm HttpRequest to angular HttpRequest\n * @param reqObj, the wm HttpRequest\n */\n wmToAngularRequest(reqObj) {\n let angReq;\n angReq = new HttpRequest(reqObj.method, reqObj.url);\n angReq = angReq.clone();\n angReq.body = reqObj.body;\n angReq.method = reqObj.method;\n angReq.responseType = reqObj.responseType;\n angReq.reportProgress = reqObj.reportProgress;\n angReq.urlWithParams = reqObj.url;\n angReq.withCredentials = reqObj.withCredentials;\n reqObj.headers.forEach((value, header) => {\n angReq.headers = angReq.headers.append(header, value);\n });\n return angReq;\n }\n\n /**\n * This method converts the given angular HttpRequest to wm HttpRequest\n * @param req, the angular HttpRequest\n */\n angularToWmRequest(req) {\n let wmReq = new WmHttpRequest();\n let headerMap = new Map();\n wmReq.body = req.body;\n wmReq.method = req.method;\n wmReq.responseType = req.responseType;\n wmReq.reportProgress = req.reportProgress;\n wmReq.url = req.urlWithParams;\n wmReq.withCredentials = req.withCredentials;\n req.headers.keys().forEach((header) => {\n headerMap.set(header, req.headers.headers.get(header.toLowerCase())[0]);\n });\n wmReq.headers = headerMap;\n return wmReq;\n }\n}\n","import { WmHttpRequest } from './wm-http-request';\nimport { HttpResponse } from '@angular/common/http';\n\n/**\n * This class creates a custom WmHttpRequest.\n */\nexport class WmHttpResponse extends WmHttpRequest{\n\n error: any;\n message: string;\n ok: boolean;\n status: number;\n statusText: string;\n\n constructor() {\n super();\n }\n\n /**\n * This method converts the given wm HttpResponse to angular HttpResponse\n * @param respObj, the wm HttpResponse\n */\n wmToAngularResponse(respObj) {\n let angResp;\n angResp = new HttpResponse();\n angResp = angResp.clone();\n angResp.body = respObj.body;\n angResp.error = respObj.error;\n angResp.message = respObj.message;\n angResp.url = respObj.url;\n angResp.ok = respObj.ok;\n angResp.status = respObj.status;\n angResp.statusText = respObj.statusText;\n respObj.headers.forEach((value, header)=>{\n angResp.headers = angResp.headers.append(header, value);\n });\n return angResp;\n }\n\n /**\n * This method converts the given wm HttpResponse to angular HttpResponse\n * @param respObj, the angular HttpResponse\n */\n angularToWmResponse(respObj) {\n let wmResp;\n let headerMap = new Map();\n wmResp = new WmHttpResponse();\n wmResp.body = respObj.body;\n wmResp.error = respObj.error;\n wmResp.message = respObj.message;\n wmResp.url = respObj.url;\n wmResp.ok = respObj.ok;\n wmResp.status = respObj.status;\n wmResp.statusText = respObj.statusText;\n respObj.headers.keys().forEach((header) => {\n headerMap.set(header, respObj.headers.headers.get(header.toLowerCase())[0]);\n });\n wmResp.headers = headerMap;\n return wmResp;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AASA,IAAK,eAOJ;AAPD,CAAA,UAAK,eAAe,EAAA;AAChB,IAAA,eAAA,CAAA,eAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAQ;AACR,IAAA,eAAA,CAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,gBAAkB;AAClB,IAAA,eAAA,CAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,gBAAkB;AAClB,IAAA,eAAA,CAAA,eAAA,CAAA,kBAAA,CAAA,GAAA,CAAA,CAAA,GAAA,kBAAoB;AACpB,IAAA,eAAA,CAAA,eAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAY;AACZ,IAAA,eAAA,CAAA,eA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AM,EAAE,KAAK,CAAC;AAC3D,QAAA,CAAC,CAAC;AACF,QAAA,OAAO,OAAO;IAClB;AAEA;;;AAGG;AACH,IAAA,mBAAmB,CAAC,OAAO,EAAA;AACvB,QAAA,IAAI,MAAM;AACV,QAAA,IAAI,SAAS,GAAG,IAAI,GAAG,EAAE;AACzB,QAAA,MAAM,GAAG,IAAI,cAAc,EAAE;AAC7B,QAAA,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI;AAC1B,QAAA,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK;AAC5B,QAAA,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO;AAChC,QAAA,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG;AACxB,QAAA,MAAM,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE;AACtB,QAAA,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM;AAC9B,QAAA,MAAM,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU;QACtC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,MAAM,KAAI;YACtC,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/E,QAAA,CAAC,CAAC;AACF,QAAA,MAAM,CAAC,OAAO,GAAG,SAAS;AAC1B,QAAA,OAAO,MAAM;IACjB;AACH;;AC5DD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../projects/http-service/src/http.service.ts","../../../projects/http-service/src/wm-http-request.ts","../../../projects/http-service/src/wm-http-response.ts"],"sourcesContent":["import { Injectable, OnDestroy } from '@angular/core';\nimport { HttpClient, HttpEvent, HttpHeaders, HttpParams, HttpRequest, HttpResponse } from '@angular/common/http';\n\nimport { Observable, Subject, Subscription } from 'rxjs';\n\nimport { AbstractHttpService } from '@wm/core';\nimport { HttpClientService, getErrMessage } from '@wavemaker-ai/variables';\nimport { includes, isBoolean, isFunction, isNumber } from \"lodash-es\";\n\nenum HTTP_EVENT_TYPE {\n Sent = 0,\n UploadProgress = 1,\n ResponseHeader = 2,\n DownloadProgress = 3,\n Response = 4,\n User = 5\n}\n\n@Injectable(\n {\n providedIn: 'root'\n }\n)\nexport class HttpServiceImpl extends AbstractHttpService implements HttpClientService, OnDestroy {\n nonBodyTypeMethods = ['GET', 'DELETE', 'HEAD', 'OPTIONS', 'JSONP'];\n sessionTimeoutObservable = new Subject();\n sessionTimeoutQueue = [];\n localeObject: any;\n private sessionTimeoutSubscriptions: Subscription[] = []; // MEMORY LEAK FIX: Track subscriptions\n\n constructor(private readonly httpClient: HttpClient) {\n super();\n }\n\n /**\n * This method handles session timeout.\n * @param options\n * @param resolve\n * @param reject\n */\n handleSessionTimeout(options, subscriber401?) {\n this.sessionTimeoutQueue.push({\n requestInfo: options,\n sub401: subscriber401\n });\n this.on401();\n }\n\n /**\n * Generates a request with provided options\n * @param options, request params/options\n */\n private generateRequest(options: any) {\n let reqHeaders = new HttpHeaders(),\n reqParams = new HttpParams();\n const headers = options.headers;\n const params = options.params;\n const responseType = options.responseType;\n const withCredentials = options.withCredentials;\n\n // this header is not to be sent with non-proxy calls from service variable\n if (!options.isDirectCall) {\n reqHeaders = reqHeaders.append('X-Requested-With', 'XMLHttpRequest');\n }\n\n // headers\n if (headers) {\n Object.entries(headers).forEach(([k, v]) => {\n if (isNumber(v) || isBoolean(v)) {\n v = v.toString();\n }\n reqHeaders = reqHeaders.append(k, v as string);\n })\n }\n\n // params\n if (params) {\n Object.entries(params).forEach(([k, v]) => reqParams = reqParams.append(k, v as string));\n }\n\n let third, fourth;\n const reqOptions = {\n headers: reqHeaders,\n params: reqParams,\n responseType: responseType,\n withCredentials: withCredentials\n };\n // Even if method is not expecting request body, if body is passed in request, pass it on.\n if (includes(this.nonBodyTypeMethods, options.method?.toUpperCase()) && options.data === undefined) {\n third = reqOptions;\n fourth = null;\n } else {\n third = options.data;\n fourth = reqOptions;\n }\n return new HttpRequest(options.method, options.url, third, fourth);\n }\n\n\n /**\n * Make a http call and returns an observable that can be cancelled\n * @param options, options using which the call needs to be made\n */\n sendCallAsObservable(options: any, params?: any): any {\n const req = this.generateRequest(options);\n return this.httpClient.request(req);\n }\n\n sendCall(requestParams, variable, params?) {\n return new Promise((resolve, reject) => {\n variable._observable = this.sendCallAsObservable(requestParams, params).subscribe((response: any) => {\n if (response?.type) {\n resolve(response);\n }\n }, (err: any) => {\n reject(err);\n });\n });\n }\n\n /**\n * Makes a http call and return a promise\n * @param options, options using which the call needs to be made\n */\n send(options: any) {\n const req = this.generateRequest(options);\n\n return new Promise((resolve, reject) => {\n this.httpClient.request(req).toPromise().then((response) => {\n resolve(response);\n }, (err) => {\n if (this.isPlatformSessionTimeout(err)) {\n err._401Subscriber.asObservable().subscribe((response) => {\n resolve(response);\n }, (e) => {\n reject(e);\n });\n } else {\n const errMsg = getErrMessage(err, this.getLocale());\n reject({\n error: errMsg,\n details: err\n });\n }\n });\n });\n }\n\n cancel(variable, $file?) {\n if (variable._observable) {\n variable._observable.unsubscribe();\n }\n if ($file?._uploadProgress) {\n $file._uploadProgress.unsubscribe();\n }\n }\n\n setLocale(locale) {\n this.localeObject = locale;\n }\n\n getLocale() {\n return this.localeObject;\n }\n\n getHeader(error, headerKey) {\n return error.headers.get(headerKey);\n }\n\n isPlatformSessionTimeout(error) {\n const MSG_SESSION_NOT_FOUND = 'Session Not Found';\n return error.status === 401 && this.getHeader(error, 'x-wm-login-errormessage') === MSG_SESSION_NOT_FOUND;\n }\n\n get(url: string, options?: any) {\n options = options || {};\n options.url = url;\n options.method = 'get';\n return this.send(options).then((response: HttpResponse<string>) => response.body);\n }\n\n post(url, data, options) {\n options = options || {};\n options.url = url;\n options.method = 'post';\n options.data = data;\n return this.send(options);\n }\n\n put(url, data, options) {\n options = options || {};\n options.url = url;\n options.method = 'put';\n options.data = data;\n return this.send(options);\n }\n\n patch(url, data, options) {\n options = options || {};\n options.url = url;\n options.method = 'patch';\n options.data = data;\n return this.send(options);\n }\n\n delete(url, options) {\n options = options || {};\n options.url = url;\n options.method = 'delete';\n return this.send(options);\n }\n\n head(url, options) {\n options = options || {};\n options.url = url;\n options.method = 'head';\n return this.send(options);\n }\n\n jsonp(url, options) {\n options = options || {};\n options.url = url;\n options.method = 'jsonp';\n return this.send(options);\n }\n\n upload(url, data, options): Observable<HttpEvent<any>> {\n const req = new HttpRequest('POST', url, data, {\n reportProgress: true // for progress data\n });\n return this.httpClient.request(req);\n // return this.httpClient.post(url, data, {\n // reportProgress: true\n // });\n }\n\n uploadFile(url, data, variable, options?) {\n return new Promise((resolve, reject) => {\n variable.request = this.upload(url, data, options).subscribe((event: any) => {\n if (event.type === HTTP_EVENT_TYPE.UploadProgress) {\n const uploadProgress = Math.round(100 * event.loaded / event.total);\n options.notify(uploadProgress);\n }\n\n if (event.type === HTTP_EVENT_TYPE.Response) {\n resolve(event.body);\n }\n }, error => {\n reject(error);\n });\n });\n }\n /**\n * registers a callback to be trigerred on session timeout\n * @param callback\n * @returns unsubscribe function\n */\n registerOnSessionTimeout(callback) {\n // MEMORY LEAK FIX: Store subscription reference for cleanup\n const subscription = this.sessionTimeoutObservable.asObservable().subscribe(callback);\n this.sessionTimeoutSubscriptions.push(subscription);\n // Return unsubscribe function so caller can clean up if needed\n return () => {\n subscription.unsubscribe();\n const index = this.sessionTimeoutSubscriptions.indexOf(subscription);\n if (index > -1) {\n this.sessionTimeoutSubscriptions.splice(index, 1);\n }\n };\n }\n\n /**\n * trigger the registered methods on session timeout\n */\n on401() {\n this.sessionTimeoutObservable.next(undefined);\n }\n\n pushToSessionFailureQueue(callback) {\n this.sessionTimeoutQueue.push({\n callback: callback\n });\n }\n\n /**\n * Execute queued requests, failed due to session timeout\n */\n executeSessionFailureRequests() {\n const queue = this.sessionTimeoutQueue;\n const that = this;\n that.sessionTimeoutQueue = [];\n queue.forEach(data => {\n if (isFunction(data.callback)) {\n data.callback();\n } else {\n data.requestInfo.headers.headers.delete('x-wm-xsrf-token');\n that.httpClient.request(data.requestInfo)\n .subscribe(\n response => {\n if (response && response.type && data.sub401) {\n data.sub401.next(response);\n }\n }, (reason) => {\n data.sub401.error(reason);\n });\n }\n });\n }\n\n ngOnDestroy() {\n // MEMORY LEAK FIX: Unsubscribe from all session timeout subscriptions\n this.sessionTimeoutSubscriptions.forEach(sub => {\n if (sub && !sub.closed) {\n sub.unsubscribe();\n }\n });\n this.sessionTimeoutSubscriptions = [];\n\n // MEMORY LEAK FIX: Complete Subject to release subscriptions\n if (this.sessionTimeoutObservable) {\n this.sessionTimeoutObservable.complete();\n this.sessionTimeoutObservable = null;\n }\n\n // MEMORY LEAK FIX: Clear session timeout queue\n this.sessionTimeoutQueue = [];\n\n // MEMORY LEAK FIX: Clear locale object\n this.localeObject = null;\n }\n}\n","import { HttpRequest } from '@angular/common/http';\n\n/**\n * This class creates a custom WmHttpRequest.\n */\nexport class WmHttpRequest {\n\n method: string;\n url: string;\n headers: any = [];\n responseType: string;\n reportProgress: boolean;\n withCredentials: boolean;\n urlWithParams: string;\n body: any;\n\n constructor() {}\n\n /**\n * This method converts the given wm HttpRequest to angular HttpRequest\n * @param reqObj, the wm HttpRequest\n */\n wmToAngularRequest(reqObj) {\n let angReq;\n angReq = new HttpRequest(reqObj.method, reqObj.url);\n angReq = angReq.clone();\n angReq.body = reqObj.body;\n angReq.method = reqObj.method;\n angReq.responseType = reqObj.responseType;\n angReq.reportProgress = reqObj.reportProgress;\n angReq.urlWithParams = reqObj.url;\n angReq.withCredentials = reqObj.withCredentials;\n reqObj.headers.forEach((value, header) => {\n angReq.headers = angReq.headers.append(header, value);\n });\n return angReq;\n }\n\n /**\n * This method converts the given angular HttpRequest to wm HttpRequest\n * @param req, the angular HttpRequest\n */\n angularToWmRequest(req) {\n let wmReq = new WmHttpRequest();\n let headerMap = new Map();\n wmReq.body = req.body;\n wmReq.method = req.method;\n wmReq.responseType = req.responseType;\n wmReq.reportProgress = req.reportProgress;\n wmReq.url = req.urlWithParams;\n wmReq.withCredentials = req.withCredentials;\n req.headers.keys().forEach((header) => {\n headerMap.set(header, req.headers.headers.get(header.toLowerCase())[0]);\n });\n wmReq.headers = headerMap;\n return wmReq;\n }\n}\n","import { WmHttpRequest } from './wm-http-request';\nimport { HttpResponse } from '@angular/common/http';\n\n/**\n * This class creates a custom WmHttpRequest.\n */\nexport class WmHttpResponse extends WmHttpRequest{\n\n error: any;\n message: string;\n ok: boolean;\n status: number;\n statusText: string;\n\n constructor() {\n super();\n }\n\n /**\n * This method converts the given wm HttpResponse to angular HttpResponse\n * @param respObj, the wm HttpResponse\n */\n wmToAngularResponse(respObj) {\n let angResp;\n angResp = new HttpResponse();\n angResp = angResp.clone();\n angResp.body = respObj.body;\n angResp.error = respObj.error;\n angResp.message = respObj.message;\n angResp.url = respObj.url;\n angResp.ok = respObj.ok;\n angResp.status = respObj.status;\n angResp.statusText = respObj.statusText;\n respObj.headers.forEach((value, header)=>{\n angResp.headers = angResp.headers.append(header, value);\n });\n return angResp;\n }\n\n /**\n * This method converts the given wm HttpResponse to angular HttpResponse\n * @param respObj, the angular HttpResponse\n */\n angularToWmResponse(respObj) {\n let wmResp;\n let headerMap = new Map();\n wmResp = new WmHttpResponse();\n wmResp.body = respObj.body;\n wmResp.error = respObj.error;\n wmResp.message = respObj.message;\n wmResp.url = respObj.url;\n wmResp.ok = respObj.ok;\n wmResp.status = respObj.status;\n wmResp.statusText = respObj.statusText;\n respObj.headers.keys().forEach((header) => {\n headerMap.set(header, respObj.headers.headers.get(header.toLowerCase())[0]);\n });\n wmResp.headers = headerMap;\n return wmResp;\n }\n}\n"],"mappings":";;;;;;;;AASA,IAAK;CAAL,SAAK,iBAAe;CAChB,gBAAA,gBAAA,UAAA,KAAA;CACA,gBAAA,gBAAA,oBAAA,KAAA;CACA,gBAAA,gBAAA,oBAAA,KAAA;CACA,gBA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|
-
import { OnDestroy } from
|
|
3
|
-
import { HttpClient, HttpEvent } from
|
|
4
|
-
import {
|
|
5
|
-
import { AbstractHttpService } from
|
|
6
|
-
import { HttpClientService } from
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HttpServiceImpl>;
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { OnDestroy } from "@angular/core";
|
|
3
|
+
import { HttpClient, HttpEvent } from "@angular/common/http";
|
|
4
|
+
import { Observable, Subject } from "rxjs";
|
|
5
|
+
import { AbstractHttpService } from "@wm/core";
|
|
6
|
+
import { HttpClientService } from "@wavemaker-ai/variables";
|
|
7
|
+
export declare class HttpServiceImpl extends AbstractHttpService implements HttpClientService, OnDestroy {
|
|
8
|
+
private readonly httpClient;
|
|
9
|
+
nonBodyTypeMethods: string[];
|
|
10
|
+
sessionTimeoutObservable: Subject<unknown>;
|
|
11
|
+
sessionTimeoutQueue: any[];
|
|
12
|
+
localeObject: any;
|
|
13
|
+
private sessionTimeoutSubscriptions;
|
|
14
|
+
constructor(httpClient: HttpClient);
|
|
15
|
+
/**
|
|
16
|
+
* This method handles session timeout.
|
|
17
|
+
* @param options
|
|
18
|
+
* @param resolve
|
|
19
|
+
* @param reject
|
|
20
|
+
*/
|
|
21
|
+
handleSessionTimeout(options: any, subscriber401?: any): void;
|
|
22
|
+
/**
|
|
23
|
+
* Generates a request with provided options
|
|
24
|
+
* @param options, request params/options
|
|
25
|
+
*/
|
|
26
|
+
private generateRequest;
|
|
27
|
+
/**
|
|
28
|
+
* Make a http call and returns an observable that can be cancelled
|
|
29
|
+
* @param options, options using which the call needs to be made
|
|
30
|
+
*/
|
|
31
|
+
sendCallAsObservable(options: any, params?: any): any;
|
|
32
|
+
sendCall(requestParams: any, variable: any, params?: any): Promise<unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Makes a http call and return a promise
|
|
35
|
+
* @param options, options using which the call needs to be made
|
|
36
|
+
*/
|
|
37
|
+
send(options: any): Promise<unknown>;
|
|
38
|
+
cancel(variable: any, $file?: any): void;
|
|
39
|
+
setLocale(locale: any): void;
|
|
40
|
+
getLocale(): any;
|
|
41
|
+
getHeader(error: any, headerKey: any): any;
|
|
42
|
+
isPlatformSessionTimeout(error: any): boolean;
|
|
43
|
+
get(url: string, options?: any): Promise<string>;
|
|
44
|
+
post(url: any, data: any, options: any): Promise<unknown>;
|
|
45
|
+
put(url: any, data: any, options: any): Promise<unknown>;
|
|
46
|
+
patch(url: any, data: any, options: any): Promise<unknown>;
|
|
47
|
+
delete(url: any, options: any): Promise<unknown>;
|
|
48
|
+
head(url: any, options: any): Promise<unknown>;
|
|
49
|
+
jsonp(url: any, options: any): Promise<unknown>;
|
|
50
|
+
upload(url: any, data: any, options: any): Observable<HttpEvent<any>>;
|
|
51
|
+
uploadFile(url: any, data: any, variable: any, options?: any): Promise<unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* registers a callback to be trigerred on session timeout
|
|
54
|
+
* @param callback
|
|
55
|
+
* @returns unsubscribe function
|
|
56
|
+
*/
|
|
57
|
+
registerOnSessionTimeout(callback: any): () => void;
|
|
58
|
+
/**
|
|
59
|
+
* trigger the registered methods on session timeout
|
|
60
|
+
*/
|
|
61
|
+
on401(): void;
|
|
62
|
+
pushToSessionFailureQueue(callback: any): void;
|
|
63
|
+
/**
|
|
64
|
+
* Execute queued requests, failed due to session timeout
|
|
65
|
+
*/
|
|
66
|
+
executeSessionFailureRequests(): void;
|
|
67
|
+
ngOnDestroy(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpServiceImpl, never>;
|
|
69
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
71
70
|
}
|
|
72
|
-
|
|
73
71
|
/**
|
|
74
72
|
* This class creates a custom WmHttpRequest.
|
|
75
73
|
*/
|
|
76
|
-
declare class WmHttpRequest {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
74
|
+
export declare class WmHttpRequest {
|
|
75
|
+
method: string;
|
|
76
|
+
url: string;
|
|
77
|
+
headers: any;
|
|
78
|
+
responseType: string;
|
|
79
|
+
reportProgress: boolean;
|
|
80
|
+
withCredentials: boolean;
|
|
81
|
+
urlWithParams: string;
|
|
82
|
+
body: any;
|
|
83
|
+
constructor();
|
|
84
|
+
/**
|
|
85
|
+
* This method converts the given wm HttpRequest to angular HttpRequest
|
|
86
|
+
* @param reqObj, the wm HttpRequest
|
|
87
|
+
*/
|
|
88
|
+
wmToAngularRequest(reqObj: any): any;
|
|
89
|
+
/**
|
|
90
|
+
* This method converts the given angular HttpRequest to wm HttpRequest
|
|
91
|
+
* @param req, the angular HttpRequest
|
|
92
|
+
*/
|
|
93
|
+
angularToWmRequest(req: any): WmHttpRequest;
|
|
96
94
|
}
|
|
97
|
-
|
|
98
95
|
/**
|
|
99
96
|
* This class creates a custom WmHttpRequest.
|
|
100
97
|
*/
|
|
101
|
-
declare class WmHttpResponse extends WmHttpRequest {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export { HttpServiceImpl, WmHttpRequest, WmHttpResponse };
|
|
98
|
+
export declare class WmHttpResponse extends WmHttpRequest {
|
|
99
|
+
error: any;
|
|
100
|
+
message: string;
|
|
101
|
+
ok: boolean;
|
|
102
|
+
status: number;
|
|
103
|
+
statusText: string;
|
|
104
|
+
constructor();
|
|
105
|
+
/**
|
|
106
|
+
* This method converts the given wm HttpResponse to angular HttpResponse
|
|
107
|
+
* @param respObj, the wm HttpResponse
|
|
108
|
+
*/
|
|
109
|
+
wmToAngularResponse(respObj: any): any;
|
|
110
|
+
/**
|
|
111
|
+
* This method converts the given wm HttpResponse to angular HttpResponse
|
|
112
|
+
* @param respObj, the angular HttpResponse
|
|
113
|
+
*/
|
|
114
|
+
angularToWmResponse(respObj: any): any;
|
|
115
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//! moment.js locale configuration
|
|
2
|
+
//! locale : Amharic (Ethiopia) [am-et]
|
|
3
|
+
//! author : Tekle Ayele : https://github.com/tekleayele
|
|
4
|
+
|
|
5
|
+
;(function (global, factory) {
|
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined'
|
|
7
|
+
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
8
|
+
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
9
|
+
factory(global.moment)
|
|
10
|
+
}(this, (function (moment) { 'use strict';
|
|
11
|
+
|
|
12
|
+
//! moment.js locale configuration
|
|
13
|
+
|
|
14
|
+
var amEt = moment.defineLocale('am-et', {
|
|
15
|
+
months: 'ጃንዩወሪ_ፌብሩወሪ_ማርች_ኤፕሪል_ሜይ_ጁን_ጁላይ_ኦገስት_ሴፕቴምበር_ኦክቶበር_ኖቬምበር_ዲሴምበር'.split(
|
|
16
|
+
'_'
|
|
17
|
+
),
|
|
18
|
+
monthsShort: 'ጃን_ፌብ_ማር_ኤፕር_ሜይ_ጁን_ጁላይ_ኦገ_ሴፕ_ኦክቶ_ኖቬ_ዲሴ'.split('_'),
|
|
19
|
+
weekdays: 'እሑድ_ሰኞ_ማክሰኞ_እሮብ_ሀሙስ_ዓርብ_ቅዳሜ'.split('_'),
|
|
20
|
+
weekdaysShort: 'እሑ_ሰኞ_ማክ_እሮ_ሀሙ_ዓር_ቅዳ'.split('_'),
|
|
21
|
+
weekdaysMin: 'እሁ_ሰ_ማ_እ_ሀ_ዓ_ቅ'.split('_'),
|
|
22
|
+
meridiemParse: /ጥዋት|ከሰዓት/,
|
|
23
|
+
isPM: function (input) {
|
|
24
|
+
return input === 'ከሰዓት';
|
|
25
|
+
},
|
|
26
|
+
meridiem: function (hours) {
|
|
27
|
+
return hours < 12 ? 'ጥዋት' : 'ከሰዓት';
|
|
28
|
+
},
|
|
29
|
+
longDateFormat: {
|
|
30
|
+
LT: 'h:mm A',
|
|
31
|
+
LTS: 'h:mm:ss A',
|
|
32
|
+
L: 'DD/MM/YYYY',
|
|
33
|
+
LL: 'D MMMM YYYY',
|
|
34
|
+
LLL: 'D MMMM YYYY h:mm A',
|
|
35
|
+
LLLL: 'dddd, D MMMM YYYY h:mm A',
|
|
36
|
+
},
|
|
37
|
+
calendar: {
|
|
38
|
+
sameDay: '[ዛሬ በ] LT',
|
|
39
|
+
nextDay: '[ነገ በ] LT',
|
|
40
|
+
nextWeek: 'dddd [በ] LT',
|
|
41
|
+
lastDay: '[ትናንትና በ] LT',
|
|
42
|
+
lastWeek: '[ያለፈው ሳምንት] dddd [በ] LT',
|
|
43
|
+
sameElse: 'L',
|
|
44
|
+
},
|
|
45
|
+
relativeTime: {
|
|
46
|
+
future: '%s ውስጥ',
|
|
47
|
+
past: '%s በፊት',
|
|
48
|
+
s: 'ጥቂት ሰከንዶች',
|
|
49
|
+
ss: '%d ሰከንዶች',
|
|
50
|
+
m: 'አንድ ደቂቃ',
|
|
51
|
+
mm: '%d ደቂቃዎች',
|
|
52
|
+
h: 'አንድ ሰአት',
|
|
53
|
+
hh: '%d ሰአታት',
|
|
54
|
+
d: 'አንድ ቀን',
|
|
55
|
+
dd: '%d ቀናት',
|
|
56
|
+
M: 'አንድ ወር',
|
|
57
|
+
MM: '%d ወራት',
|
|
58
|
+
y: 'አንድ ዓመት',
|
|
59
|
+
yy: '%d ዓመታት',
|
|
60
|
+
},
|
|
61
|
+
dayOfMonthOrdinalParse: /\d{1,2}(ኛ)/,
|
|
62
|
+
ordinal: function (number) {
|
|
63
|
+
return number + 'ኛ';
|
|
64
|
+
},
|
|
65
|
+
week: {
|
|
66
|
+
dow: 0, // Sunday is the first day of the week.
|
|
67
|
+
doy: 6, // The week that contains Jan 1st is the first week of the year.
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
return amEt;
|
|
72
|
+
|
|
73
|
+
})));
|
package/locales/moment/bm.js
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
}(this, (function (moment) { 'use strict';
|
|
11
11
|
|
|
12
12
|
//! moment.js locale configuration
|
|
13
|
+
// Language contact person : Abdoufata Kane : https://github.com/abdoufata
|
|
14
|
+
|
|
13
15
|
|
|
14
16
|
var bm = moment.defineLocale('bm', {
|
|
15
17
|
months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
|
package/locales/moment/ca.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
|
|
18
18
|
'_'
|
|
19
19
|
),
|
|
20
|
-
format:
|
|
20
|
+
format: 'de gener_de febrer_de març_d’abril_de maig_de juny_de juliol_d’agost_de setembre_d’octubre_de novembre_de desembre'.split(
|
|
21
21
|
'_'
|
|
22
22
|
),
|
|
23
23
|
isFormat: /D[oD]?(\s)+MMMM/,
|
package/locales/moment/de-at.js
CHANGED
|
@@ -14,6 +14,23 @@
|
|
|
14
14
|
|
|
15
15
|
//! moment.js locale configuration
|
|
16
16
|
|
|
17
|
+
var monthsParse = [
|
|
18
|
+
/^jän/i,
|
|
19
|
+
/^feb/i,
|
|
20
|
+
/^mär/i,
|
|
21
|
+
/^apr/i,
|
|
22
|
+
/^mai/i,
|
|
23
|
+
/^jun/i,
|
|
24
|
+
/^jul/i,
|
|
25
|
+
/^aug/i,
|
|
26
|
+
/^sep/i,
|
|
27
|
+
/^okt/i,
|
|
28
|
+
/^nov/i,
|
|
29
|
+
/^dez/i,
|
|
30
|
+
],
|
|
31
|
+
monthsRegex =
|
|
32
|
+
/^(Jänner|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jän\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
|
|
33
|
+
|
|
17
34
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
18
35
|
var format = {
|
|
19
36
|
m: ['eine Minute', 'einer Minute'],
|
|
@@ -35,7 +52,18 @@
|
|
|
35
52
|
),
|
|
36
53
|
monthsShort:
|
|
37
54
|
'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
38
|
-
|
|
55
|
+
|
|
56
|
+
monthsRegex: monthsRegex,
|
|
57
|
+
monthsShortRegex: monthsRegex,
|
|
58
|
+
monthsStrictRegex:
|
|
59
|
+
/^(Jänner|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
|
|
60
|
+
monthsShortStrictRegex:
|
|
61
|
+
/^(Jän\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
|
|
62
|
+
|
|
63
|
+
monthsParse: monthsParse,
|
|
64
|
+
longMonthsParse: monthsParse,
|
|
65
|
+
shortMonthsParse: monthsParse,
|
|
66
|
+
|
|
39
67
|
weekdays:
|
|
40
68
|
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
41
69
|
'_'
|
package/locales/moment/de-ch.js
CHANGED
|
@@ -11,6 +11,23 @@
|
|
|
11
11
|
|
|
12
12
|
//! moment.js locale configuration
|
|
13
13
|
|
|
14
|
+
var monthsParse = [
|
|
15
|
+
/^jan/i,
|
|
16
|
+
/^feb/i,
|
|
17
|
+
/^mär/i,
|
|
18
|
+
/^apr/i,
|
|
19
|
+
/^mai/i,
|
|
20
|
+
/^jun/i,
|
|
21
|
+
/^jul/i,
|
|
22
|
+
/^aug/i,
|
|
23
|
+
/^sep/i,
|
|
24
|
+
/^okt/i,
|
|
25
|
+
/^nov/i,
|
|
26
|
+
/^dez/i,
|
|
27
|
+
],
|
|
28
|
+
monthsRegex =
|
|
29
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jan\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
|
|
30
|
+
|
|
14
31
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
15
32
|
var format = {
|
|
16
33
|
m: ['eine Minute', 'einer Minute'],
|
|
@@ -32,7 +49,18 @@
|
|
|
32
49
|
),
|
|
33
50
|
monthsShort:
|
|
34
51
|
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
35
|
-
|
|
52
|
+
|
|
53
|
+
monthsRegex: monthsRegex,
|
|
54
|
+
monthsShortRegex: monthsRegex,
|
|
55
|
+
monthsStrictRegex:
|
|
56
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
|
|
57
|
+
monthsShortStrictRegex:
|
|
58
|
+
/^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
|
|
59
|
+
|
|
60
|
+
monthsParse: monthsParse,
|
|
61
|
+
longMonthsParse: monthsParse,
|
|
62
|
+
shortMonthsParse: monthsParse,
|
|
63
|
+
|
|
36
64
|
weekdays:
|
|
37
65
|
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
38
66
|
'_'
|
package/locales/moment/de.js
CHANGED
|
@@ -13,6 +13,23 @@
|
|
|
13
13
|
|
|
14
14
|
//! moment.js locale configuration
|
|
15
15
|
|
|
16
|
+
var monthsParse = [
|
|
17
|
+
/^jan/i,
|
|
18
|
+
/^feb/i,
|
|
19
|
+
/^mär/i,
|
|
20
|
+
/^apr/i,
|
|
21
|
+
/^mai/i,
|
|
22
|
+
/^jun/i,
|
|
23
|
+
/^jul/i,
|
|
24
|
+
/^aug/i,
|
|
25
|
+
/^sep/i,
|
|
26
|
+
/^okt/i,
|
|
27
|
+
/^nov/i,
|
|
28
|
+
/^dez/i,
|
|
29
|
+
],
|
|
30
|
+
monthsRegex =
|
|
31
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember|Jan\.?|Feb\.?|Mär\.?|Apr\.?|Jun\.?|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i;
|
|
32
|
+
|
|
16
33
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
17
34
|
var format = {
|
|
18
35
|
m: ['eine Minute', 'einer Minute'],
|
|
@@ -34,7 +51,18 @@
|
|
|
34
51
|
),
|
|
35
52
|
monthsShort:
|
|
36
53
|
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
37
|
-
|
|
54
|
+
|
|
55
|
+
monthsRegex: monthsRegex,
|
|
56
|
+
monthsShortRegex: monthsRegex,
|
|
57
|
+
monthsStrictRegex:
|
|
58
|
+
/^(Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember)/i,
|
|
59
|
+
monthsShortStrictRegex:
|
|
60
|
+
/^(Jan\.?|Feb\.?|März|Mär\.?|Apr\.?|Mai|Juni|Jun\.?|Juli|Jul\.?|Aug\.?|Sep\.?|Okt\.?|Nov\.?|Dez\.?)/i,
|
|
61
|
+
|
|
62
|
+
monthsParse: monthsParse,
|
|
63
|
+
longMonthsParse: monthsParse,
|
|
64
|
+
shortMonthsParse: monthsParse,
|
|
65
|
+
|
|
38
66
|
weekdays:
|
|
39
67
|
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
40
68
|
'_'
|
package/locales/moment/hu.js
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
? 'néhány másodperc'
|
|
23
23
|
: 'néhány másodperce';
|
|
24
24
|
case 'ss':
|
|
25
|
-
return
|
|
26
|
-
? ' másodperc'
|
|
27
|
-
|
|
25
|
+
return (
|
|
26
|
+
num + (isFuture || withoutSuffix ? ' másodperc' : ' másodperce')
|
|
27
|
+
);
|
|
28
28
|
case 'm':
|
|
29
29
|
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
|
30
30
|
case 'mm':
|
package/locales/moment/id.js
CHANGED
|
@@ -12,11 +12,22 @@
|
|
|
12
12
|
|
|
13
13
|
//! moment.js locale configuration
|
|
14
14
|
|
|
15
|
+
var monthsParse = [],
|
|
16
|
+
longMonthsParse = [],
|
|
17
|
+
shortMonthsParse = [];
|
|
18
|
+
|
|
19
|
+
monthsParse[7] = /^agustus|^agu|^agt/i;
|
|
20
|
+
longMonthsParse[7] = /^agustus$/i;
|
|
21
|
+
shortMonthsParse[7] = /^agu$|^agt$/i;
|
|
22
|
+
|
|
15
23
|
var id = moment.defineLocale('id', {
|
|
16
24
|
months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
|
|
17
25
|
'_'
|
|
18
26
|
),
|
|
19
|
-
monthsShort: '
|
|
27
|
+
monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agu_Sep_Okt_Nov_Des'.split('_'),
|
|
28
|
+
monthsParse: monthsParse,
|
|
29
|
+
longMonthsParse: longMonthsParse,
|
|
30
|
+
shortMonthsParse: shortMonthsParse,
|
|
20
31
|
weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
|
|
21
32
|
weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
|
|
22
33
|
weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
|
package/locales/moment/ka.js
CHANGED
package/locales/moment/mk.js
CHANGED