@wavemaker-ai/app-ng-runtime 12.0.2-rc.344 → 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,352 +1,395 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('ngx-bootstrap/carousel'), require('@wm/components/base'), require('@swipey'), require('lodash-es')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'ngx-bootstrap/carousel', '@wm/components/base', '@swipey', 'lodash-es'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.advanced = global.wm.components.advanced || {}, global.wm.components.advanced.carousel = {}), global.ng.core, global.ngxBootstrap.carousel, global.wm.components.base, global.swipey, global._));
|
|
5
5
|
})(this, (function (exports, i0, i1, base, _swipey, lodashEs) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
+
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
const registerProps$1 = () => {
|
|
28
|
+
base.register("wm-carousel", /* @__PURE__ */ new Map([
|
|
29
|
+
["animation", {
|
|
30
|
+
value: "auto",
|
|
31
|
+
...base.PROP_STRING
|
|
32
|
+
}],
|
|
33
|
+
["animationinterval", {
|
|
34
|
+
value: 3,
|
|
35
|
+
...base.PROP_NUMBER
|
|
36
|
+
}],
|
|
37
|
+
["controls", {
|
|
38
|
+
value: "both",
|
|
39
|
+
...base.PROP_STRING
|
|
40
|
+
}],
|
|
41
|
+
["dataset", base.PROP_ANY],
|
|
42
|
+
["name", base.PROP_STRING],
|
|
43
|
+
["nodatamessage", {
|
|
44
|
+
value: "No Data Found",
|
|
45
|
+
...base.PROP_STRING
|
|
46
|
+
}],
|
|
47
|
+
["show", base.PROP_BOOLEAN]
|
|
48
|
+
]));
|
|
49
|
+
};
|
|
50
|
+
var CarouselAnimator = class extends _swipey.SwipeAnimation {
|
|
51
|
+
constructor(carousel, interval, ngZone) {
|
|
52
|
+
super();
|
|
53
|
+
this.carousel = carousel;
|
|
54
|
+
this.interval = interval;
|
|
55
|
+
this.ngZone = ngZone;
|
|
56
|
+
this._activeIndex = 0;
|
|
57
|
+
this._animationPaused = false;
|
|
58
|
+
this._pauseCaroselTill = 0;
|
|
59
|
+
this._oldIndex = 0;
|
|
60
|
+
const self = this;
|
|
61
|
+
this._$el = $(this.carousel.getNativeElement()).find(">.carousel");
|
|
62
|
+
this.init(this._$el.find(">.carousel-inner"));
|
|
63
|
+
this._items = this._$el.find(">.carousel-inner >.carousel-item");
|
|
64
|
+
this._indicators = this._$el.find(">.carousel-indicators");
|
|
65
|
+
this._indicators.find("li").each(function(i) {
|
|
66
|
+
$(this).on("click", () => {
|
|
67
|
+
self._activeIndex = i;
|
|
68
|
+
self.setActiveItem();
|
|
69
|
+
self.carousel.onChangeCB(self._activeIndex, self._oldIndex);
|
|
70
|
+
self._oldIndex = self._activeIndex;
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
this._$el.find(">.left.carousel-control").on("click", () => {
|
|
74
|
+
if (this._swiping) return;
|
|
75
|
+
this._pauseCaroselTill = Date.now() + this.interval;
|
|
76
|
+
this.goToUpper();
|
|
77
|
+
});
|
|
78
|
+
this._$el.find(">.right.carousel-control").on("click", () => {
|
|
79
|
+
if (this._swiping) return;
|
|
80
|
+
this._pauseCaroselTill = Date.now() + this.interval;
|
|
81
|
+
this.goToLower();
|
|
82
|
+
});
|
|
83
|
+
this.setActiveItem();
|
|
84
|
+
if (this.interval) this.start();
|
|
85
|
+
$("carousel slide").removeAttr("aria-hidden");
|
|
86
|
+
}
|
|
87
|
+
bounds() {
|
|
88
|
+
this._width = this._items.width();
|
|
89
|
+
this._swiping = true;
|
|
90
|
+
return {
|
|
91
|
+
"lower": -this._width,
|
|
92
|
+
"center": 0,
|
|
93
|
+
"upper": this._width
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
context() {
|
|
97
|
+
return { "w": this._width };
|
|
98
|
+
}
|
|
99
|
+
animation() {
|
|
100
|
+
return [{
|
|
101
|
+
"target": this.getTarget.bind(this),
|
|
102
|
+
"css": {
|
|
103
|
+
"transform": "translate3d(${{ (($D + $d) / w) * 100 + '%'}}, 0, 0)",
|
|
104
|
+
"-webkit-transform": "translate3d(${{ (($D + $d) / w) * 100 + '%'}}, 0, 0)"
|
|
105
|
+
}
|
|
106
|
+
}];
|
|
107
|
+
}
|
|
108
|
+
onUpper() {
|
|
109
|
+
this.resetTransition();
|
|
110
|
+
this._activeIndex -= 1;
|
|
111
|
+
this.setActiveItem();
|
|
112
|
+
this._swiping = false;
|
|
113
|
+
}
|
|
114
|
+
onLower() {
|
|
115
|
+
this.resetTransition();
|
|
116
|
+
this._activeIndex += 1;
|
|
117
|
+
this.setActiveItem();
|
|
118
|
+
this._swiping = false;
|
|
119
|
+
}
|
|
120
|
+
onAnimation() {
|
|
121
|
+
const newIndex = (this._items.length + this._activeIndex) % this._items.length;
|
|
122
|
+
this.carousel.onChangeCB(newIndex, this._oldIndex);
|
|
123
|
+
this._oldIndex = newIndex;
|
|
124
|
+
const activeElementIndex = lodashEs.findIndex(this._items, this._$el.find(">.carousel-inner >.carousel-item.active")[0]);
|
|
125
|
+
this._$el.find(">.left.carousel-control").attr("aria-label", (activeElementIndex === 0 ? this._items.length : activeElementIndex) + " of " + this._items.length);
|
|
126
|
+
this._$el.find(">.right.carousel-control").attr("aria-label", (activeElementIndex === this._items.length - 1 ? 1 : activeElementIndex + 2) + " of " + this._items.length);
|
|
127
|
+
}
|
|
128
|
+
start() {
|
|
129
|
+
this.ngZone.runOutsideAngular(() => {
|
|
130
|
+
this._intervalId = setInterval(() => {
|
|
131
|
+
if (!this._swiping && this._pauseCaroselTill < Date.now()) this.goToLower(600);
|
|
132
|
+
}, this.interval);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
pause() {
|
|
136
|
+
this._animationPaused = true;
|
|
137
|
+
if (!this._intervalId) this.start();
|
|
138
|
+
}
|
|
139
|
+
resume() {
|
|
140
|
+
this._animationPaused = false;
|
|
141
|
+
}
|
|
142
|
+
stop() {
|
|
143
|
+
if (this._intervalId) {
|
|
144
|
+
clearInterval(this._intervalId);
|
|
145
|
+
this._intervalId = 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
threshold() {
|
|
149
|
+
return 5;
|
|
150
|
+
}
|
|
151
|
+
getTarget() {
|
|
152
|
+
const noOfItems = this._items.length, activeItem = this._items.eq((noOfItems + this._activeIndex) % noOfItems), leftItem = this._items.eq((noOfItems + this._activeIndex - 1) % noOfItems), rightItem = this._items.eq((noOfItems + this._activeIndex + 1) % noOfItems);
|
|
153
|
+
return activeItem.add(rightItem).add(leftItem);
|
|
154
|
+
}
|
|
155
|
+
resetTransition() {
|
|
156
|
+
this.getTarget().css({
|
|
157
|
+
"-webkit-transition": "none",
|
|
158
|
+
"-webkit-transform": "",
|
|
159
|
+
"transition": "none",
|
|
160
|
+
"transform": ""
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
setActiveItem() {
|
|
164
|
+
const items = this._items, left = this._activeIndex - 1, right = this._activeIndex + 1;
|
|
165
|
+
if (items.length === 1) {
|
|
166
|
+
items.eq(0).removeClass("left-item right-item");
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
this._indicators.find(">.active").removeClass("active");
|
|
170
|
+
this._indicators.find("> li").eq((items.length + this._activeIndex) % items.length).addClass("active");
|
|
171
|
+
items.filter(".active").removeClass("active");
|
|
172
|
+
items.addClass("left-item");
|
|
173
|
+
items.eq((items.length + left) % items.length).addClass("left-item").removeClass("right-item");
|
|
174
|
+
items.eq((items.length + this._activeIndex) % items.length).removeClass("left-item right-item").addClass("active");
|
|
175
|
+
items.eq((items.length + right) % items.length).addClass("right-item").removeClass("left-item");
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
const WIDGET_CONFIG$1 = { widgetType: "wm-carousel" };
|
|
179
|
+
const navigationClassMap = {
|
|
180
|
+
indicators: "hide-navs",
|
|
181
|
+
navs: "hide-indicators",
|
|
182
|
+
none: "hide-both"
|
|
183
|
+
};
|
|
184
|
+
var CarouselDirective = class CarouselDirective extends base.StylableComponent {
|
|
185
|
+
static {
|
|
186
|
+
this.initializeProps = registerProps$1();
|
|
187
|
+
}
|
|
188
|
+
constructor(component, inj, ngZone, explicitContext) {
|
|
189
|
+
super(inj, WIDGET_CONFIG$1, explicitContext);
|
|
190
|
+
this.component = component;
|
|
191
|
+
this.ngZone = ngZone;
|
|
192
|
+
base.styler(this.nativeElement, this);
|
|
193
|
+
}
|
|
194
|
+
onDataChange(newVal) {
|
|
195
|
+
this.fieldDefs = base.createArrayFrom(newVal);
|
|
196
|
+
}
|
|
197
|
+
stopAnimation() {
|
|
198
|
+
if (this.animator) this.animator.stop();
|
|
199
|
+
}
|
|
200
|
+
startAnimation() {
|
|
201
|
+
if (this.animator) {
|
|
202
|
+
this.animator.interval = this.animationinterval * 1e3;
|
|
203
|
+
this.animator.start();
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
onSlidesRender(slides) {
|
|
207
|
+
if (this.fieldDefs?.length) this.currentslide = this.fieldDefs[0];
|
|
208
|
+
if (slides.length) setTimeout(() => {
|
|
209
|
+
this.animator = new CarouselAnimator(this, this.interval, this.ngZone);
|
|
210
|
+
}, 50);
|
|
211
|
+
}
|
|
212
|
+
setupHandlers() {
|
|
213
|
+
this.slidesChangesSubscription = this.slides.changes.subscribe((slides) => {
|
|
214
|
+
this.triggerAnimation(slides);
|
|
215
|
+
});
|
|
216
|
+
this.slides.setDirty();
|
|
217
|
+
}
|
|
218
|
+
onChangeCB(newIndex, oldIndex) {
|
|
219
|
+
this.currentslide = this.fieldDefs?.[newIndex];
|
|
220
|
+
this.previousslide = this.fieldDefs?.[oldIndex];
|
|
221
|
+
this.invokeEventCallback("change", {
|
|
222
|
+
newIndex,
|
|
223
|
+
oldIndex
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
ngAfterContentInit() {
|
|
227
|
+
this.triggerAnimation(this.slides);
|
|
228
|
+
this.setupHandlers();
|
|
229
|
+
}
|
|
230
|
+
ngOnDestroy() {
|
|
231
|
+
this.stopAnimation();
|
|
232
|
+
if (this.slidesChangesSubscription) {
|
|
233
|
+
this.slidesChangesSubscription.unsubscribe();
|
|
234
|
+
this.slidesChangesSubscription = null;
|
|
235
|
+
}
|
|
236
|
+
if (this.slides) this.slides = null;
|
|
237
|
+
this.animator = null;
|
|
238
|
+
this.fieldDefs = null;
|
|
239
|
+
super.ngOnDestroy();
|
|
240
|
+
}
|
|
241
|
+
setanimationinterval() {
|
|
242
|
+
this.interval = this.animation === "auto" ? this.animationinterval * 1e3 : 0;
|
|
243
|
+
}
|
|
244
|
+
triggerAnimation(slides) {
|
|
245
|
+
this.stopAnimation();
|
|
246
|
+
this.onSlidesRender(slides);
|
|
247
|
+
}
|
|
248
|
+
ngOnInit() {
|
|
249
|
+
super.ngOnInit();
|
|
250
|
+
this.setanimationinterval();
|
|
251
|
+
}
|
|
252
|
+
onPropertyChange(key, nv, ov) {
|
|
253
|
+
if (key === "dataset") this.onDataChange(nv);
|
|
254
|
+
else if (key === "controls") this.navigationClass = navigationClassMap[this.controls];
|
|
255
|
+
else if (key === "animation" || key === "animationinterval") {
|
|
256
|
+
if (key === "animationinterval") {
|
|
257
|
+
this.stopAnimation();
|
|
258
|
+
this.setanimationinterval();
|
|
259
|
+
}
|
|
260
|
+
this.animation === "none" ? this.stopAnimation() : this.startAnimation();
|
|
261
|
+
} else super.onPropertyChange(key, nv, ov);
|
|
262
|
+
}
|
|
263
|
+
static {
|
|
264
|
+
this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
|
|
265
|
+
minVersion: "12.0.0",
|
|
266
|
+
version: "22.2.1",
|
|
267
|
+
ngImport: i0__namespace,
|
|
268
|
+
type: CarouselDirective,
|
|
269
|
+
deps: [
|
|
270
|
+
{ token: i1__namespace.CarouselComponent },
|
|
271
|
+
{ token: i0__namespace.Injector },
|
|
272
|
+
{ token: i0__namespace.NgZone },
|
|
273
|
+
{
|
|
274
|
+
token: "EXPLICIT_CONTEXT",
|
|
275
|
+
optional: true
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
target: i0__namespace.ɵɵFactoryTarget.Directive
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
static {
|
|
282
|
+
this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
|
|
283
|
+
minVersion: "14.0.0",
|
|
284
|
+
version: "22.2.1",
|
|
285
|
+
type: CarouselDirective,
|
|
286
|
+
isStandalone: true,
|
|
287
|
+
selector: "[wmCarousel]",
|
|
288
|
+
queries: [{
|
|
289
|
+
propertyName: "slides",
|
|
290
|
+
predicate: i1.SlideComponent
|
|
291
|
+
}],
|
|
292
|
+
exportAs: ["wmCarousel"],
|
|
293
|
+
usesInheritance: true,
|
|
294
|
+
ngImport: i0__namespace
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
i0__namespace.ɵɵngDeclareClassMetadata({
|
|
299
|
+
minVersion: "12.0.0",
|
|
300
|
+
version: "22.2.1",
|
|
301
|
+
ngImport: i0__namespace,
|
|
302
|
+
type: CarouselDirective,
|
|
303
|
+
decorators: [{
|
|
304
|
+
type: i0.Directive,
|
|
305
|
+
args: [{
|
|
306
|
+
standalone: true,
|
|
307
|
+
selector: "[wmCarousel]",
|
|
308
|
+
exportAs: "wmCarousel"
|
|
309
|
+
}]
|
|
310
|
+
}],
|
|
311
|
+
ctorParameters: () => [
|
|
312
|
+
{ type: i1__namespace.CarouselComponent },
|
|
313
|
+
{ type: i0__namespace.Injector },
|
|
314
|
+
{ type: i0__namespace.NgZone },
|
|
315
|
+
{
|
|
316
|
+
type: void 0,
|
|
317
|
+
decorators: [{
|
|
318
|
+
type: i0.Inject,
|
|
319
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
320
|
+
}, { type: i0.Optional }]
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
propDecorators: { slides: [{
|
|
324
|
+
type: i0.ContentChildren,
|
|
325
|
+
args: [i1.SlideComponent]
|
|
326
|
+
}] }
|
|
327
|
+
});
|
|
328
|
+
const registerProps = () => {
|
|
329
|
+
base.register("wm-carousel-template", /* @__PURE__ */ new Map([["show", base.PROP_BOOLEAN]]));
|
|
330
|
+
};
|
|
331
|
+
const WIDGET_CONFIG = {
|
|
332
|
+
widgetType: "wm-carousel-template",
|
|
333
|
+
hostClass: "app-carousel-item"
|
|
334
|
+
};
|
|
335
|
+
var CarouselTemplateDirective = class CarouselTemplateDirective extends base.StylableComponent {
|
|
336
|
+
static {
|
|
337
|
+
this.initializeProps = registerProps();
|
|
338
|
+
}
|
|
339
|
+
constructor(inj, explicitContext) {
|
|
340
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
341
|
+
base.styler(this.nativeElement, this);
|
|
342
|
+
}
|
|
343
|
+
static {
|
|
344
|
+
this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
|
|
345
|
+
minVersion: "12.0.0",
|
|
346
|
+
version: "22.2.1",
|
|
347
|
+
ngImport: i0__namespace,
|
|
348
|
+
type: CarouselTemplateDirective,
|
|
349
|
+
deps: [{ token: i0__namespace.Injector }, {
|
|
350
|
+
token: "EXPLICIT_CONTEXT",
|
|
351
|
+
optional: true
|
|
352
|
+
}],
|
|
353
|
+
target: i0__namespace.ɵɵFactoryTarget.Directive
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
static {
|
|
357
|
+
this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
|
|
358
|
+
minVersion: "14.0.0",
|
|
359
|
+
version: "22.2.1",
|
|
360
|
+
type: CarouselTemplateDirective,
|
|
361
|
+
isStandalone: true,
|
|
362
|
+
selector: "[wmCarouselTemplate]",
|
|
363
|
+
exportAs: ["carouselTemplateRef"],
|
|
364
|
+
usesInheritance: true,
|
|
365
|
+
ngImport: i0__namespace
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
i0__namespace.ɵɵngDeclareClassMetadata({
|
|
370
|
+
minVersion: "12.0.0",
|
|
371
|
+
version: "22.2.1",
|
|
372
|
+
ngImport: i0__namespace,
|
|
373
|
+
type: CarouselTemplateDirective,
|
|
374
|
+
decorators: [{
|
|
375
|
+
type: i0.Directive,
|
|
376
|
+
args: [{
|
|
377
|
+
standalone: true,
|
|
378
|
+
selector: "[wmCarouselTemplate]",
|
|
379
|
+
exportAs: "carouselTemplateRef"
|
|
380
|
+
}]
|
|
381
|
+
}],
|
|
382
|
+
ctorParameters: () => [{ type: i0__namespace.Injector }, {
|
|
383
|
+
type: void 0,
|
|
384
|
+
decorators: [{
|
|
385
|
+
type: i0.Inject,
|
|
386
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
387
|
+
}, { type: i0.Optional }]
|
|
388
|
+
}]
|
|
389
|
+
});
|
|
38
390
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.carousel = carousel;
|
|
43
|
-
this.interval = interval;
|
|
44
|
-
this.ngZone = ngZone;
|
|
45
|
-
this._activeIndex = 0;
|
|
46
|
-
this._animationPaused = false;
|
|
47
|
-
this._pauseCaroselTill = 0;
|
|
48
|
-
this._oldIndex = 0;
|
|
49
|
-
const self = this;
|
|
50
|
-
this._$el = $(this.carousel.getNativeElement()).find('>.carousel');
|
|
51
|
-
this.init(this._$el.find('>.carousel-inner'));
|
|
52
|
-
this._items = this._$el.find('>.carousel-inner >.carousel-item');
|
|
53
|
-
this._indicators = this._$el.find('>.carousel-indicators');
|
|
54
|
-
this._indicators.find('li').each(function (i) {
|
|
55
|
-
$(this).on('click', () => {
|
|
56
|
-
self._activeIndex = i;
|
|
57
|
-
self.setActiveItem();
|
|
58
|
-
// WMS-17583: Triggering onChange event
|
|
59
|
-
self.carousel.onChangeCB(self._activeIndex, self._oldIndex);
|
|
60
|
-
self._oldIndex = self._activeIndex;
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
this._$el.find('>.left.carousel-control').on('click', () => {
|
|
64
|
-
// WMS-22278, If a swipe is already in process do not process other events
|
|
65
|
-
if (this._swiping) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
this._pauseCaroselTill = Date.now() + this.interval;
|
|
69
|
-
this.goToUpper();
|
|
70
|
-
});
|
|
71
|
-
this._$el.find('>.right.carousel-control').on('click', () => {
|
|
72
|
-
// WMS-22278, If a swipe is already in process do not process other events
|
|
73
|
-
if (this._swiping) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
this._pauseCaroselTill = Date.now() + this.interval;
|
|
77
|
-
this.goToLower();
|
|
78
|
-
});
|
|
79
|
-
this.setActiveItem();
|
|
80
|
-
if (this.interval) {
|
|
81
|
-
this.start();
|
|
82
|
-
}
|
|
83
|
-
$('carousel slide').removeAttr('aria-hidden');
|
|
84
|
-
}
|
|
85
|
-
bounds() {
|
|
86
|
-
this._width = this._items.width();
|
|
87
|
-
this._swiping = true;
|
|
88
|
-
return {
|
|
89
|
-
'lower': -this._width,
|
|
90
|
-
'center': 0,
|
|
91
|
-
'upper': this._width
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
context() {
|
|
95
|
-
return {
|
|
96
|
-
'w': this._width
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
animation() {
|
|
100
|
-
return [{
|
|
101
|
-
'target': this.getTarget.bind(this),
|
|
102
|
-
'css': {
|
|
103
|
-
'transform': 'translate3d(${{ (($D + $d) / w) * 100 + \'%\'}}, 0, 0)',
|
|
104
|
-
'-webkit-transform': 'translate3d(${{ (($D + $d) / w) * 100 + \'%\'}}, 0, 0)'
|
|
105
|
-
}
|
|
106
|
-
}];
|
|
107
|
-
}
|
|
108
|
-
onUpper() {
|
|
109
|
-
this.resetTransition();
|
|
110
|
-
this._activeIndex -= 1;
|
|
111
|
-
this.setActiveItem();
|
|
112
|
-
this._swiping = false;
|
|
113
|
-
}
|
|
114
|
-
onLower() {
|
|
115
|
-
this.resetTransition();
|
|
116
|
-
this._activeIndex += 1;
|
|
117
|
-
this.setActiveItem();
|
|
118
|
-
this._swiping = false;
|
|
119
|
-
}
|
|
120
|
-
onAnimation() {
|
|
121
|
-
const newIndex = (this._items.length + this._activeIndex) % this._items.length;
|
|
122
|
-
this.carousel.onChangeCB(newIndex, this._oldIndex);
|
|
123
|
-
this._oldIndex = newIndex;
|
|
124
|
-
const activeElementIndex = lodashEs.findIndex(this._items, this._$el.find('>.carousel-inner >.carousel-item.active')[0]);
|
|
125
|
-
this._$el.find('>.left.carousel-control').attr('aria-label', (activeElementIndex === 0 ? this._items.length : activeElementIndex) + ' of ' + this._items.length);
|
|
126
|
-
this._$el.find('>.right.carousel-control').attr('aria-label', (activeElementIndex === this._items.length - 1 ? 1 : activeElementIndex + 2) + ' of ' + this._items.length);
|
|
127
|
-
}
|
|
128
|
-
start() {
|
|
129
|
-
this.ngZone.runOutsideAngular(() => {
|
|
130
|
-
this._intervalId = setInterval(() => {
|
|
131
|
-
if (!this._swiping && this._pauseCaroselTill < Date.now()) {
|
|
132
|
-
this.goToLower(600);
|
|
133
|
-
}
|
|
134
|
-
}, this.interval);
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
pause() {
|
|
138
|
-
this._animationPaused = true;
|
|
139
|
-
if (!this._intervalId) {
|
|
140
|
-
this.start();
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
resume() {
|
|
144
|
-
this._animationPaused = false;
|
|
145
|
-
}
|
|
146
|
-
stop() {
|
|
147
|
-
if (this._intervalId) {
|
|
148
|
-
clearInterval(this._intervalId);
|
|
149
|
-
this._intervalId = 0;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
threshold() {
|
|
153
|
-
return 5;
|
|
154
|
-
}
|
|
155
|
-
// Returns multiple elements as single jQuery element.
|
|
156
|
-
getTarget() {
|
|
157
|
-
const noOfItems = this._items.length, activeItem = this._items.eq((noOfItems + this._activeIndex) % noOfItems), leftItem = this._items.eq((noOfItems + this._activeIndex - 1) % noOfItems), rightItem = this._items.eq((noOfItems + this._activeIndex + 1) % noOfItems);
|
|
158
|
-
return activeItem.add(rightItem).add(leftItem);
|
|
159
|
-
}
|
|
160
|
-
resetTransition() {
|
|
161
|
-
this.getTarget().css({
|
|
162
|
-
'-webkit-transition': 'none',
|
|
163
|
-
'-webkit-transform': '',
|
|
164
|
-
'transition': 'none',
|
|
165
|
-
'transform': ''
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
// Sets active item, leftItem, rightItem by removing / adding respective classes.
|
|
169
|
-
setActiveItem() {
|
|
170
|
-
const items = this._items, left = this._activeIndex - 1, right = this._activeIndex + 1;
|
|
171
|
-
// if there is only one carousel-item then there won't be any right or left-item.
|
|
172
|
-
if (items.length === 1) {
|
|
173
|
-
items.eq(0).removeClass('left-item right-item');
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this._indicators.find('>.active').removeClass('active');
|
|
177
|
-
this._indicators.find('> li').eq((items.length + this._activeIndex) % items.length).addClass('active');
|
|
178
|
-
items.filter('.active').removeClass('active');
|
|
179
|
-
items.addClass('left-item');
|
|
180
|
-
items.eq((items.length + left) % items.length).addClass('left-item').removeClass('right-item');
|
|
181
|
-
items.eq((items.length + this._activeIndex) % items.length).removeClass('left-item right-item').addClass('active');
|
|
182
|
-
items.eq((items.length + right) % items.length).addClass('right-item').removeClass('left-item');
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
const WIDGET_CONFIG$1 = {
|
|
187
|
-
widgetType: 'wm-carousel'
|
|
188
|
-
};
|
|
189
|
-
const navigationClassMap = {
|
|
190
|
-
indicators: 'hide-navs',
|
|
191
|
-
navs: 'hide-indicators',
|
|
192
|
-
none: 'hide-both'
|
|
193
|
-
};
|
|
194
|
-
class CarouselDirective extends base.StylableComponent {
|
|
195
|
-
static { this.initializeProps = registerProps$1(); }
|
|
196
|
-
constructor(component, inj, ngZone, explicitContext) {
|
|
197
|
-
super(inj, WIDGET_CONFIG$1, explicitContext);
|
|
198
|
-
this.component = component;
|
|
199
|
-
this.ngZone = ngZone;
|
|
200
|
-
base.styler(this.nativeElement, this);
|
|
201
|
-
}
|
|
202
|
-
onDataChange(newVal) {
|
|
203
|
-
this.fieldDefs = base.createArrayFrom(newVal);
|
|
204
|
-
}
|
|
205
|
-
stopAnimation() {
|
|
206
|
-
if (this.animator) {
|
|
207
|
-
this.animator.stop();
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
startAnimation() {
|
|
211
|
-
if (this.animator) {
|
|
212
|
-
this.animator.interval = this.animationinterval * 1000;
|
|
213
|
-
this.animator.start();
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
onSlidesRender(slides) {
|
|
217
|
-
// if dynamic carousel, initialize the 'currentslide' property as the first object
|
|
218
|
-
if (this.fieldDefs?.length) {
|
|
219
|
-
this.currentslide = this.fieldDefs[0];
|
|
220
|
-
}
|
|
221
|
-
if (slides.length) {
|
|
222
|
-
setTimeout(() => {
|
|
223
|
-
this.animator = new CarouselAnimator(this, this.interval, this.ngZone);
|
|
224
|
-
}, 50);
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
setupHandlers() {
|
|
228
|
-
// MEMORY LEAK FIX: Store subscription reference for cleanup
|
|
229
|
-
this.slidesChangesSubscription = this.slides.changes.subscribe(slides => {
|
|
230
|
-
this.triggerAnimation(slides);
|
|
231
|
-
});
|
|
232
|
-
this.slides.setDirty();
|
|
233
|
-
}
|
|
234
|
-
onChangeCB(newIndex, oldIndex) {
|
|
235
|
-
// assign current and previous slides on widget. In case of static carousel, fieldDefs will be undefined, hence the check
|
|
236
|
-
this.currentslide = this.fieldDefs?.[newIndex];
|
|
237
|
-
this.previousslide = this.fieldDefs?.[oldIndex];
|
|
238
|
-
this.invokeEventCallback('change', { newIndex: newIndex, oldIndex: oldIndex });
|
|
239
|
-
}
|
|
240
|
-
ngAfterContentInit() {
|
|
241
|
-
this.triggerAnimation(this.slides);
|
|
242
|
-
this.setupHandlers();
|
|
243
|
-
}
|
|
244
|
-
ngOnDestroy() {
|
|
245
|
-
this.stopAnimation();
|
|
246
|
-
// MEMORY LEAK FIX: Unsubscribe from slides changes
|
|
247
|
-
if (this.slidesChangesSubscription) {
|
|
248
|
-
this.slidesChangesSubscription.unsubscribe();
|
|
249
|
-
this.slidesChangesSubscription = null;
|
|
250
|
-
}
|
|
251
|
-
// MEMORY LEAK FIX: Clear QueryList reference
|
|
252
|
-
if (this.slides) {
|
|
253
|
-
this.slides = null;
|
|
254
|
-
}
|
|
255
|
-
// MEMORY LEAK FIX: Clear animator reference
|
|
256
|
-
this.animator = null;
|
|
257
|
-
// MEMORY LEAK FIX: Clear field definitions
|
|
258
|
-
this.fieldDefs = null;
|
|
259
|
-
super.ngOnDestroy();
|
|
260
|
-
}
|
|
261
|
-
// Calculating animation interval if animation is enabled
|
|
262
|
-
setanimationinterval() {
|
|
263
|
-
this.interval = this.animation === 'auto' ? this.animationinterval * 1000 : 0;
|
|
264
|
-
}
|
|
265
|
-
triggerAnimation(slides) {
|
|
266
|
-
this.stopAnimation();
|
|
267
|
-
this.onSlidesRender(slides);
|
|
268
|
-
}
|
|
269
|
-
ngOnInit() {
|
|
270
|
-
super.ngOnInit();
|
|
271
|
-
this.setanimationinterval();
|
|
272
|
-
// TODO transition is pending
|
|
273
|
-
}
|
|
274
|
-
// on property change handler
|
|
275
|
-
onPropertyChange(key, nv, ov) {
|
|
276
|
-
if (key === 'dataset') {
|
|
277
|
-
this.onDataChange(nv);
|
|
278
|
-
}
|
|
279
|
-
else if (key === 'controls') {
|
|
280
|
-
// For showing controls
|
|
281
|
-
this.navigationClass = navigationClassMap[this.controls];
|
|
282
|
-
}
|
|
283
|
-
else if (key === 'animation' || key === 'animationinterval') {
|
|
284
|
-
if (key === 'animationinterval') {
|
|
285
|
-
this.stopAnimation();
|
|
286
|
-
this.setanimationinterval();
|
|
287
|
-
}
|
|
288
|
-
this.animation === 'none' ? this.stopAnimation() : this.startAnimation();
|
|
289
|
-
}
|
|
290
|
-
else {
|
|
291
|
-
super.onPropertyChange(key, nv, ov);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: CarouselDirective, deps: [{ token: i1__namespace.CarouselComponent }, { token: i0__namespace.Injector }, { token: i0__namespace.NgZone }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
295
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: CarouselDirective, isStandalone: true, selector: "[wmCarousel]", queries: [{ propertyName: "slides", predicate: i1.SlideComponent }], exportAs: ["wmCarousel"], usesInheritance: true, ngImport: i0__namespace }); }
|
|
296
|
-
}
|
|
297
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: CarouselDirective, decorators: [{
|
|
298
|
-
type: i0.Directive,
|
|
299
|
-
args: [{
|
|
300
|
-
standalone: true,
|
|
301
|
-
selector: '[wmCarousel]',
|
|
302
|
-
exportAs: 'wmCarousel'
|
|
303
|
-
}]
|
|
304
|
-
}], ctorParameters: () => [{ type: i1__namespace.CarouselComponent }, { type: i0__namespace.Injector }, { type: i0__namespace.NgZone }, { type: undefined, decorators: [{
|
|
305
|
-
type: i0.Inject,
|
|
306
|
-
args: ['EXPLICIT_CONTEXT']
|
|
307
|
-
}, {
|
|
308
|
-
type: i0.Optional
|
|
309
|
-
}] }], propDecorators: { slides: [{
|
|
310
|
-
type: i0.ContentChildren,
|
|
311
|
-
args: [i1.SlideComponent]
|
|
312
|
-
}] } });
|
|
313
|
-
|
|
314
|
-
const registerProps = () => {
|
|
315
|
-
base.register('wm-carousel-template', new Map([
|
|
316
|
-
['show', base.PROP_BOOLEAN]
|
|
317
|
-
]));
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
const DEFAULT_CLS = 'app-carousel-item';
|
|
321
|
-
const WIDGET_CONFIG = {
|
|
322
|
-
widgetType: 'wm-carousel-template',
|
|
323
|
-
hostClass: DEFAULT_CLS
|
|
324
|
-
};
|
|
325
|
-
class CarouselTemplateDirective extends base.StylableComponent {
|
|
326
|
-
static { this.initializeProps = registerProps(); }
|
|
327
|
-
constructor(inj, explicitContext) {
|
|
328
|
-
super(inj, WIDGET_CONFIG, explicitContext);
|
|
329
|
-
base.styler(this.nativeElement, this);
|
|
330
|
-
}
|
|
331
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: CarouselTemplateDirective, deps: [{ token: i0__namespace.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
332
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: CarouselTemplateDirective, isStandalone: true, selector: "[wmCarouselTemplate]", exportAs: ["carouselTemplateRef"], usesInheritance: true, ngImport: i0__namespace }); }
|
|
333
|
-
}
|
|
334
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: CarouselTemplateDirective, decorators: [{
|
|
335
|
-
type: i0.Directive,
|
|
336
|
-
args: [{
|
|
337
|
-
standalone: true,
|
|
338
|
-
selector: '[wmCarouselTemplate]',
|
|
339
|
-
exportAs: 'carouselTemplateRef',
|
|
340
|
-
}]
|
|
341
|
-
}], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
342
|
-
type: i0.Inject,
|
|
343
|
-
args: ['EXPLICIT_CONTEXT']
|
|
344
|
-
}, {
|
|
345
|
-
type: i0.Optional
|
|
346
|
-
}] }] });
|
|
347
|
-
|
|
348
|
-
exports.CarouselAnimator = CarouselAnimator;
|
|
349
|
-
exports.CarouselDirective = CarouselDirective;
|
|
350
|
-
exports.CarouselTemplateDirective = CarouselTemplateDirective;
|
|
391
|
+
exports.CarouselAnimator = CarouselAnimator;
|
|
392
|
+
exports.CarouselDirective = CarouselDirective;
|
|
393
|
+
exports.CarouselTemplateDirective = CarouselTemplateDirective;
|
|
351
394
|
|
|
352
395
|
}));
|