@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,884 +1,840 @@
|
|
|
1
|
-
import * as i1 from
|
|
2
|
-
import { CommonModule } from
|
|
3
|
-
import * as i2 from
|
|
4
|
-
import { FormsModule } from
|
|
5
|
-
import * as i0 from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { forEach, isArray, isEmpty,
|
|
10
|
-
import * as i3 from
|
|
11
|
-
import { PaginationModule } from
|
|
12
|
-
import * as i4 from
|
|
13
|
-
import {
|
|
14
|
-
|
|
1
|
+
import * as i1 from "@angular/common";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/forms";
|
|
4
|
+
import { FormsModule } from "@angular/forms";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Inject, Optional, Output, SkipSelf, ViewChild } from "@angular/core";
|
|
7
|
+
import { $appDigest, $watch, AppConstants, DataSource, adjustVerticalPosition, debounce, isDefined, switchClass, triggerFn } from "@wm/core";
|
|
8
|
+
import { DEBOUNCE_TIMES, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, StylableComponent, WidgetRef, getOrderByExpr, provideAsWidgetRef, register, styler, unsupportedStatePersistenceTypes } from "@wm/components/base";
|
|
9
|
+
import { forEach, get, isArray, isEmpty, isNull, isString, range } from "lodash-es";
|
|
10
|
+
import * as i3 from "ngx-bootstrap/pagination";
|
|
11
|
+
import { PaginationModule } from "ngx-bootstrap/pagination";
|
|
12
|
+
import * as i4 from "ngx-bootstrap/dropdown";
|
|
13
|
+
import { BsDropdownDirective, BsDropdownModule } from "ngx-bootstrap/dropdown";
|
|
15
14
|
const registerProps = () => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
register("wm-pagination", /* @__PURE__ */ new Map([
|
|
16
|
+
["boundarylinks", {
|
|
17
|
+
value: false,
|
|
18
|
+
...PROP_BOOLEAN
|
|
19
|
+
}],
|
|
20
|
+
["class", PROP_STRING],
|
|
21
|
+
["dataset", PROP_ANY],
|
|
22
|
+
["directionlinks", {
|
|
23
|
+
value: true,
|
|
24
|
+
...PROP_BOOLEAN
|
|
25
|
+
}],
|
|
26
|
+
["forceellipses", {
|
|
27
|
+
value: true,
|
|
28
|
+
...PROP_BOOLEAN
|
|
29
|
+
}],
|
|
30
|
+
["allowpagesizechange", {
|
|
31
|
+
value: false,
|
|
32
|
+
...PROP_BOOLEAN
|
|
33
|
+
}],
|
|
34
|
+
["allowpagesizechange", {
|
|
35
|
+
value: false,
|
|
36
|
+
...PROP_BOOLEAN
|
|
37
|
+
}],
|
|
38
|
+
["pagesizeoptions", {
|
|
39
|
+
value: "",
|
|
40
|
+
...PROP_STRING
|
|
41
|
+
}],
|
|
42
|
+
["maxResults", PROP_NUMBER],
|
|
43
|
+
["maxsize", {
|
|
44
|
+
value: 5,
|
|
45
|
+
...PROP_NUMBER
|
|
46
|
+
}],
|
|
47
|
+
["name", PROP_STRING],
|
|
48
|
+
["navigation", {
|
|
49
|
+
value: "Basic",
|
|
50
|
+
...PROP_STRING
|
|
51
|
+
}],
|
|
52
|
+
["navigationalign", {
|
|
53
|
+
value: "left",
|
|
54
|
+
...PROP_STRING
|
|
55
|
+
}],
|
|
56
|
+
["navigationsize", PROP_STRING],
|
|
57
|
+
["show", {
|
|
58
|
+
value: true,
|
|
59
|
+
...PROP_BOOLEAN
|
|
60
|
+
}],
|
|
61
|
+
["showrecordcount", PROP_BOOLEAN],
|
|
62
|
+
["tabindex", {
|
|
63
|
+
value: 0,
|
|
64
|
+
...PROP_NUMBER
|
|
65
|
+
}]
|
|
66
|
+
]));
|
|
67
|
+
};
|
|
68
|
+
const WIDGET_CONFIG = {
|
|
69
|
+
widgetType: "wm-pagination",
|
|
70
|
+
hostClass: "app-datanavigator clearfix"
|
|
35
71
|
};
|
|
36
|
-
|
|
37
|
-
const DEFAULT_CLS = 'app-datanavigator clearfix';
|
|
38
|
-
const WIDGET_CONFIG = { widgetType: 'wm-pagination', hostClass: DEFAULT_CLS };
|
|
39
72
|
const sizeClasses = {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
73
|
+
"Pager": {
|
|
74
|
+
"small": "pager-sm",
|
|
75
|
+
"large": "pager-lg"
|
|
76
|
+
},
|
|
77
|
+
"Basic": {
|
|
78
|
+
"small": "pagination-sm",
|
|
79
|
+
"large": "pagination-lg"
|
|
80
|
+
},
|
|
81
|
+
"Classic": {
|
|
82
|
+
"small": "pagination-sm",
|
|
83
|
+
"large": "pagination-lg"
|
|
84
|
+
}
|
|
52
85
|
};
|
|
53
|
-
class PaginationComponent extends StylableComponent {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
pageSize = this.parent.getActualPageSize();
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
const paginationElem = this.nativeElement;
|
|
806
|
-
paginationElem.onclick = (event) => {
|
|
807
|
-
event.stopPropagation();
|
|
808
|
-
};
|
|
809
|
-
}
|
|
810
|
-
ngOnDestroy() {
|
|
811
|
-
if (this.dropdownScrollHandler) {
|
|
812
|
-
window.removeEventListener('scroll', this.dropdownScrollHandler, true);
|
|
813
|
-
}
|
|
814
|
-
// MEMORY LEAK FIX: Clear initialization timeout if still pending
|
|
815
|
-
if (this._initTimeoutId) {
|
|
816
|
-
clearTimeout(this._initTimeoutId);
|
|
817
|
-
this._initTimeoutId = null;
|
|
818
|
-
}
|
|
819
|
-
// MEMORY LEAK FIX: Complete EventEmitters
|
|
820
|
-
if (this.resultEmitter) {
|
|
821
|
-
this.resultEmitter.complete();
|
|
822
|
-
}
|
|
823
|
-
if (this.maxResultsEmitter) {
|
|
824
|
-
this.maxResultsEmitter.complete();
|
|
825
|
-
}
|
|
826
|
-
// MEMORY LEAK FIX: Nullify debounced function closures
|
|
827
|
-
this._debouncedApplyDataset = null;
|
|
828
|
-
this._debouncedPageChanged = null;
|
|
829
|
-
// MEMORY LEAK FIX: Clear data arrays and objects
|
|
830
|
-
this.dataset = null;
|
|
831
|
-
this.__fullData = null;
|
|
832
|
-
this.result = null;
|
|
833
|
-
this.filterFields = null;
|
|
834
|
-
this.sortOptions = null;
|
|
835
|
-
this.options = null;
|
|
836
|
-
// MEMORY LEAK FIX: Clear page size options array
|
|
837
|
-
if (this.pageSizeOptions) {
|
|
838
|
-
this.pageSizeOptions = [];
|
|
839
|
-
}
|
|
840
|
-
if (this.defaultPageSizeOptions) {
|
|
841
|
-
this.defaultPageSizeOptions = [];
|
|
842
|
-
}
|
|
843
|
-
// MEMORY LEAK FIX: Clear datasource reference
|
|
844
|
-
this.datasource = null;
|
|
845
|
-
// MEMORY LEAK FIX: Clear parent reference
|
|
846
|
-
this.parent = null;
|
|
847
|
-
// Call parent ngOnDestroy (sets isDestroyed = true)
|
|
848
|
-
super.ngOnDestroy();
|
|
849
|
-
}
|
|
850
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PaginationComponent, deps: [{ token: i0.Injector }, { token: WidgetRef, skipSelf: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
851
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: PaginationComponent, isStandalone: true, selector: "[wmPagination]", outputs: { resultEmitter: "resultEmitter", maxResultsEmitter: "maxResultsEmitter" }, providers: [
|
|
852
|
-
provideAsWidgetRef(PaginationComponent)
|
|
853
|
-
], viewQueries: [{ propertyName: "bsDropdown", first: true, predicate: BsDropdownDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n@if (navcontrols === 'Classic') {\n<ul class=\"pagination advanced {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableFirst}\">\n <a [title]=\"appLocale.LABEL_FIRST\" name=\"first\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableFirst\"\n (click)=\"navigatePage('first', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-first-page\"></i></span>\n <span class=\"sr-only\">Go to first page {{ isDisableFirst ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a [title]=\"appLocale.LABEL_PREVIOUS\" name=\"prev\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisablePrevious\"\n (click)=\"navigatePage('prev', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n <span class=\"sr-only\">Go to previous page {{ isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"pagecount disabled\">\n <a href=\"javascript:void(0);\" aria-label=\"Change Page Number\">\n <input [(ngModel)]=\"dn.currentPage\" [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount\" [disabled]=\"isDisableCurrent\"\n [ngModelOptions]=\"{standalone: true}\"\n type=\"number\"\n (keydown)=\"onKeyDown($event)\" (change)=\"onModelChange($event)\" class=\"form-control\"/>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"disabled\">\n <a [hidden]=\"isDisableCount\"> / {{pageCount}}</a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableNext}\">\n <a [title]=\"appLocale.LABEL_NEXT\" name=\"next\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableNext\"\n (click)=\"navigatePage('next', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n <span class=\"sr-only\">Go to next page {{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableLast}\">\n <a [title]=\"appLocale.LABEL_LAST\" name=\"last\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableLast\"\n (click)=\"navigatePage('last', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-last-page\"></i></span>\n <span class=\"sr-only\">Go to last page {{ isDisableLast ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (showrecordcount) {\n <li class=\"totalcount disabled\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n }\n</ul>\n}\n@if (navcontrols === 'Pager') {\n <ul class=\"pager {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n@if (!(dataSize<=maxResults)) {\n <li class=\"previous\" [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"isDisablePrevious\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class=\"sr-only\">{{ isDisablePrevious ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n <li class=\"next\" [ngClass]=\"{'disabled':isDisableNext}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('next', $event)\"\n [attr.aria-disabled]=\"isDisableNext\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class=\"sr-only\">{{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n </ul>\n}\n\n@if (navcontrols === 'Basic') {\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <div class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE }} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n @if (rowSummary?.totalRecords) {\n <div class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </div>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <pagination class=\"pagination basic\" [ngClass]=\"navigationClass\" role=\"navigation\"\n [itemsPerPage]=\"maxResults\" [totalItems]=\"dataSize\"\n (pageChanged)=\"pageChanged($event)\" [ngModelOptions]=\"{standalone:true}\" [ngModel]=\"dn.currentPage\"\n [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount + ' pages'\"\n [boundaryLinks]=\"boundarylinks\" [maxSize]=\"maxsize\"\n [directionLinks]=\"directionlinks\"\n firstText=\"Firtst\" lastText=\"Last\"\n [customPreviousTemplate]=\"prevTemplate\"\n [customNextTemplate]=\"nextTemplate\"\n [customPageTemplate]=\"pageTemplate\"></pagination>\n }\n}\n\n@if (navcontrols === 'Basic' && showrecordcount) {\n <ul class=\"pagination\">\n <li class=\"totalcount disabled basiccount\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n </ul>\n}\n\n<ng-template #pageTemplate let-page>\n <span class=\"sr-only\" [attr.data-isacitvepage]=\"page.active\">{{'Page '}}</span>\n {{page.number}}\n @if (page.active) {\n <span class=\"sr-only\"> {{', Showing page ' + page.number + ' of ' + pageCount}}</span>\n }\n</ng-template>\n<ng-template #prevTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Previous page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Next page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: PaginationModule }, { kind: "component", type: i3.PaginationComponent, selector: "pagination", inputs: ["align", "maxSize", "boundaryLinks", "directionLinks", "firstText", "previousText", "nextText", "lastText", "rotate", "pageBtnClass", "disabled", "customPageTemplate", "customNextTemplate", "customPreviousTemplate", "customFirstTemplate", "customLastTemplate", "itemsPerPage", "totalItems"], outputs: ["numPages", "pageChanged"] }, { kind: "ngmodule", type: BsDropdownModule }, { kind: "directive", type: i4.BsDropdownMenuDirective, selector: "[bsDropdownMenu],[dropdownMenu]", exportAs: ["bs-dropdown-menu"] }, { kind: "directive", type: i4.BsDropdownToggleDirective, selector: "[bsDropdownToggle],[dropdownToggle]", exportAs: ["bs-dropdown-toggle"] }, { kind: "directive", type: i4.BsDropdownDirective, selector: "[bsDropdown], [dropdown]", inputs: ["placement", "triggers", "container", "dropup", "autoClose", "isAnimated", "insideClick", "isDisabled", "isOpen"], outputs: ["isOpenChange", "onShown", "onHidden"], exportAs: ["bs-dropdown"] }] }); }
|
|
854
|
-
}
|
|
855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
856
|
-
type: Component,
|
|
857
|
-
args: [{ standalone: true, imports: [CommonModule, FormsModule, PaginationModule, BsDropdownModule], selector: '[wmPagination]', providers: [
|
|
858
|
-
provideAsWidgetRef(PaginationComponent)
|
|
859
|
-
], template: "\n@if (navcontrols === 'Classic') {\n<ul class=\"pagination advanced {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableFirst}\">\n <a [title]=\"appLocale.LABEL_FIRST\" name=\"first\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableFirst\"\n (click)=\"navigatePage('first', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-first-page\"></i></span>\n <span class=\"sr-only\">Go to first page {{ isDisableFirst ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a [title]=\"appLocale.LABEL_PREVIOUS\" name=\"prev\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisablePrevious\"\n (click)=\"navigatePage('prev', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n <span class=\"sr-only\">Go to previous page {{ isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"pagecount disabled\">\n <a href=\"javascript:void(0);\" aria-label=\"Change Page Number\">\n <input [(ngModel)]=\"dn.currentPage\" [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount\" [disabled]=\"isDisableCurrent\"\n [ngModelOptions]=\"{standalone: true}\"\n type=\"number\"\n (keydown)=\"onKeyDown($event)\" (change)=\"onModelChange($event)\" class=\"form-control\"/>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"disabled\">\n <a [hidden]=\"isDisableCount\"> / {{pageCount}}</a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableNext}\">\n <a [title]=\"appLocale.LABEL_NEXT\" name=\"next\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableNext\"\n (click)=\"navigatePage('next', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n <span class=\"sr-only\">Go to next page {{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableLast}\">\n <a [title]=\"appLocale.LABEL_LAST\" name=\"last\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableLast\"\n (click)=\"navigatePage('last', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-last-page\"></i></span>\n <span class=\"sr-only\">Go to last page {{ isDisableLast ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (showrecordcount) {\n <li class=\"totalcount disabled\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n }\n</ul>\n}\n@if (navcontrols === 'Pager') {\n <ul class=\"pager {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n@if (!(dataSize<=maxResults)) {\n <li class=\"previous\" [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"isDisablePrevious\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class=\"sr-only\">{{ isDisablePrevious ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n <li class=\"next\" [ngClass]=\"{'disabled':isDisableNext}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('next', $event)\"\n [attr.aria-disabled]=\"isDisableNext\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class=\"sr-only\">{{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n </ul>\n}\n\n@if (navcontrols === 'Basic') {\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <div class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE }} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n @if (rowSummary?.totalRecords) {\n <div class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </div>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <pagination class=\"pagination basic\" [ngClass]=\"navigationClass\" role=\"navigation\"\n [itemsPerPage]=\"maxResults\" [totalItems]=\"dataSize\"\n (pageChanged)=\"pageChanged($event)\" [ngModelOptions]=\"{standalone:true}\" [ngModel]=\"dn.currentPage\"\n [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount + ' pages'\"\n [boundaryLinks]=\"boundarylinks\" [maxSize]=\"maxsize\"\n [directionLinks]=\"directionlinks\"\n firstText=\"Firtst\" lastText=\"Last\"\n [customPreviousTemplate]=\"prevTemplate\"\n [customNextTemplate]=\"nextTemplate\"\n [customPageTemplate]=\"pageTemplate\"></pagination>\n }\n}\n\n@if (navcontrols === 'Basic' && showrecordcount) {\n <ul class=\"pagination\">\n <li class=\"totalcount disabled basiccount\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n </ul>\n}\n\n<ng-template #pageTemplate let-page>\n <span class=\"sr-only\" [attr.data-isacitvepage]=\"page.active\">{{'Page '}}</span>\n {{page.number}}\n @if (page.active) {\n <span class=\"sr-only\"> {{', Showing page ' + page.number + ' of ' + pageCount}}</span>\n }\n</ng-template>\n<ng-template #prevTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Previous page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Next page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n" }]
|
|
860
|
-
}], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
861
|
-
type: SkipSelf
|
|
862
|
-
}, {
|
|
863
|
-
type: Inject,
|
|
864
|
-
args: [WidgetRef]
|
|
865
|
-
}] }, { type: undefined, decorators: [{
|
|
866
|
-
type: Inject,
|
|
867
|
-
args: ['EXPLICIT_CONTEXT']
|
|
868
|
-
}, {
|
|
869
|
-
type: Optional
|
|
870
|
-
}] }], propDecorators: { resultEmitter: [{
|
|
871
|
-
type: Output
|
|
872
|
-
}], maxResultsEmitter: [{
|
|
873
|
-
type: Output
|
|
874
|
-
}], bsDropdown: [{
|
|
875
|
-
type: ViewChild,
|
|
876
|
-
args: [BsDropdownDirective]
|
|
877
|
-
}] } });
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* Generated bundle index. Do not edit.
|
|
881
|
-
*/
|
|
882
|
-
|
|
86
|
+
var PaginationComponent = class PaginationComponent extends StylableComponent {
|
|
87
|
+
static {
|
|
88
|
+
this.initializeProps = registerProps();
|
|
89
|
+
}
|
|
90
|
+
_setAriaForBasicNavigation() {
|
|
91
|
+
forEach(this.nativeElement.getElementsByTagName("a"), (item) => {
|
|
92
|
+
item.setAttribute("href", "javascript:void(0);");
|
|
93
|
+
const childNode = item.querySelector("span");
|
|
94
|
+
if (childNode?.dataset.isacitvepage === "true") item.setAttribute("aria-current", "true");
|
|
95
|
+
if (childNode?.dataset.isdisabled === "true") item.setAttribute("aria-disabled", "true");
|
|
96
|
+
else item.removeAttribute("aria-disabled");
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
constructor(inj, parent, explicitContext) {
|
|
100
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
101
|
+
this.parent = parent;
|
|
102
|
+
this.resultEmitter = new EventEmitter();
|
|
103
|
+
this.maxResultsEmitter = new EventEmitter();
|
|
104
|
+
this.defaultPageSizeOptions = [];
|
|
105
|
+
this.focusedIndex = 0;
|
|
106
|
+
this.dn = { currentPage: 1 };
|
|
107
|
+
this.pageCount = 0;
|
|
108
|
+
this.isDisableNext = true;
|
|
109
|
+
this.isDisablePrevious = true;
|
|
110
|
+
this.isDisableFirst = true;
|
|
111
|
+
this.isDisableLast = true;
|
|
112
|
+
this._debouncedApplyDataset = debounce(() => this.widget.dataset = this.dataset, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);
|
|
113
|
+
this._debouncedPageChanged = debounce((event) => {
|
|
114
|
+
const currentPage = event?.page;
|
|
115
|
+
const maxResults = event && (event.pagesize || event.itemsPerPage) || this.maxResults;
|
|
116
|
+
if (currentPage !== this.dn.currentPage || this.maxResults !== maxResults) {
|
|
117
|
+
const inst = this.parent || this;
|
|
118
|
+
this.dn.currentPage = currentPage;
|
|
119
|
+
this.maxResults = maxResults;
|
|
120
|
+
this.maxResultsEmitter.emit(this.maxResults);
|
|
121
|
+
inst.invokeEventCallback("paginationchange", {
|
|
122
|
+
$event: void 0,
|
|
123
|
+
$index: this.dn.currentPage
|
|
124
|
+
});
|
|
125
|
+
this.goToPage();
|
|
126
|
+
if (this.navigation === "Basic") this._setAriaForBasicNavigation();
|
|
127
|
+
}
|
|
128
|
+
}, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);
|
|
129
|
+
styler(this.nativeElement, this);
|
|
130
|
+
this._initTimeoutId = setTimeout(() => {
|
|
131
|
+
if (this.isDestroyed || !this.parent) return;
|
|
132
|
+
this.allowpagesizechange = this.parent.allowpagesizechange;
|
|
133
|
+
if (this.allowpagesizechange) this.defaultPageSizeOptions = this.normalizeToNumberArray(this.parent?.pagesizeoptions);
|
|
134
|
+
}, 0);
|
|
135
|
+
}
|
|
136
|
+
normalizeToNumberArray(input) {
|
|
137
|
+
if (!input) return [];
|
|
138
|
+
let arr;
|
|
139
|
+
if (Array.isArray(input)) arr = input;
|
|
140
|
+
else if (typeof input === "string") {
|
|
141
|
+
const trimmed = input.trim();
|
|
142
|
+
if (trimmed.startsWith("[") && trimmed.endsWith("]")) try {
|
|
143
|
+
arr = JSON.parse(trimmed);
|
|
144
|
+
} catch {
|
|
145
|
+
arr = [];
|
|
146
|
+
}
|
|
147
|
+
else arr = trimmed.split(",");
|
|
148
|
+
} else return [];
|
|
149
|
+
return arr.map((v) => Number(v)).filter((v) => !isNaN(v)).sort((a, b) => a - b);
|
|
150
|
+
}
|
|
151
|
+
setResult(result) {
|
|
152
|
+
this.result = result;
|
|
153
|
+
this.resultEmitter.emit(this.result);
|
|
154
|
+
}
|
|
155
|
+
updateNavSize() {
|
|
156
|
+
const sizeCls = sizeClasses[this.navcontrols];
|
|
157
|
+
if (sizeCls && this.navigationsize) this.navigationClass = sizeCls[this.navigationsize];
|
|
158
|
+
else this.navigationClass = "";
|
|
159
|
+
}
|
|
160
|
+
resetPageNavigation() {
|
|
161
|
+
this.pageCount = 0;
|
|
162
|
+
this.dn.currentPage = 1;
|
|
163
|
+
this.dataSize = 0;
|
|
164
|
+
}
|
|
165
|
+
calculatePagingValues() {
|
|
166
|
+
this.pageCount = this.dataSize > this.maxResults ? Math.ceil(this.dataSize / this.maxResults) : this.dataSize < 0 ? 0 : 1;
|
|
167
|
+
this.dn.currentPage = this.dn.currentPage || 1;
|
|
168
|
+
}
|
|
169
|
+
setDefaultPagingValues(dataSize, maxResults, currentPage) {
|
|
170
|
+
if (!dataSize && !maxResults) {
|
|
171
|
+
this.pageCount = 1;
|
|
172
|
+
this.dn.currentPage = 1;
|
|
173
|
+
this.maxResults = dataSize;
|
|
174
|
+
this.dataSize = dataSize;
|
|
175
|
+
} else {
|
|
176
|
+
this.maxResults = maxResults || this.maxResults;
|
|
177
|
+
this.dataSize = isDefined(dataSize) ? dataSize : this.dataSize;
|
|
178
|
+
this.dn.currentPage = currentPage || this.dn.currentPage;
|
|
179
|
+
this.calculatePagingValues();
|
|
180
|
+
}
|
|
181
|
+
this.maxResultsEmitter.emit(this.maxResults);
|
|
182
|
+
}
|
|
183
|
+
checkDataSize(dataSize, numberOfElements, size) {
|
|
184
|
+
if (dataSize === -1 || dataSize === AppConstants.INT_MAX_VALUE) {
|
|
185
|
+
this.prevshowrecordcount = this.showrecordcount;
|
|
186
|
+
this.isDisableLast = true;
|
|
187
|
+
this.isDisableCount = true;
|
|
188
|
+
this.showrecordcount = false;
|
|
189
|
+
if (numberOfElements < size) this.isDisableNext = true;
|
|
190
|
+
} else {
|
|
191
|
+
this.isDisableCount = false;
|
|
192
|
+
this.showrecordcount = this.prevshowrecordcount || this.showrecordcount;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
disableNavigation() {
|
|
196
|
+
const isCurrentPageFirst = this.dn.currentPage === 1, isCurrentPageLast = this.dn.currentPage === this.pageCount;
|
|
197
|
+
if (!this.pagination?.next) {
|
|
198
|
+
this.isDisableFirst = this.isDisablePrevious = isCurrentPageFirst;
|
|
199
|
+
this.isDisableNext = this.isDisableLast = isCurrentPageLast;
|
|
200
|
+
} else {
|
|
201
|
+
this.isDisableFirst = this.isDisablePrevious = !this.pagination.prev;
|
|
202
|
+
this.isDisableNext = this.isDisableLast = !this.pagination.next;
|
|
203
|
+
}
|
|
204
|
+
this.isDisableCurrent = isCurrentPageFirst && isCurrentPageLast;
|
|
205
|
+
if (this.dataset?.length && this.isDisableNext && this.parent.onDemandLoad && this.parent.widgetType === "wm-table") this.parent.callDataGridMethod("hideLoadingIndicator", this.isDisableNext, this.parent.infScroll);
|
|
206
|
+
}
|
|
207
|
+
isDataSourceHasPaging() {
|
|
208
|
+
return this.datasource?.execute(DataSource.Operation.IS_PAGEABLE);
|
|
209
|
+
}
|
|
210
|
+
getPaginationStartIndex() {
|
|
211
|
+
const startIndex = this.datasource?._paginationConfig?.paginationStartIndex;
|
|
212
|
+
return isDefined(startIndex) && this.datasource?._paginationConfig?.type === "page" ? Number(startIndex) : 1;
|
|
213
|
+
}
|
|
214
|
+
getPageDetails(startIndex, endIndex, totalRecords) {
|
|
215
|
+
this.rowSummary = isDefined(startIndex) && isDefined(endIndex) && isDefined(totalRecords) ? {
|
|
216
|
+
startIndex,
|
|
217
|
+
endIndex,
|
|
218
|
+
totalRecords
|
|
219
|
+
} : {};
|
|
220
|
+
}
|
|
221
|
+
setNonPageableData(newVal) {
|
|
222
|
+
let dataSize, maxResults, currentPage, startIndex;
|
|
223
|
+
dataSize = isArray(newVal) ? newVal.length : isEmpty(newVal) ? 0 : 1;
|
|
224
|
+
maxResults = this.options?.maxResults || dataSize;
|
|
225
|
+
if (this.allowpagesizechange) maxResults = this.maxResults;
|
|
226
|
+
if (this.datasource && (this.datasource.execute(DataSource.Operation.IS_API_AWARE) || this.parent.widgetType === "wm-table" && this.parent.gridOptions.isNavTypeScrollOrOndemand() && (get(this.parent, "gridOptions.lastActionPerformed") === this.parent.gridOptions.ACTIONS.DATASET_UPDATE || !get(this.parent, "gridOptions.isNextPageData")))) currentPage = 1;
|
|
227
|
+
else currentPage = this.dn.currentPage || 1;
|
|
228
|
+
this.setDefaultPagingValues(dataSize, maxResults, currentPage);
|
|
229
|
+
this.disableNavigation();
|
|
230
|
+
startIndex = (this.dn.currentPage - 1) * this.maxResults;
|
|
231
|
+
this.getPageDetails(startIndex + 1, Math.min(startIndex + this.maxResults, newVal?.length), newVal?.length);
|
|
232
|
+
this.setResult(isArray(newVal) ? newVal.slice(startIndex, startIndex + this.maxResults) : newVal);
|
|
233
|
+
}
|
|
234
|
+
setPagingValues(newVal) {
|
|
235
|
+
let dataSize, maxResults, currentPage, startIndex, dataSource;
|
|
236
|
+
let variableOptions = {};
|
|
237
|
+
this.__fullData = newVal;
|
|
238
|
+
if (this.binddataset) {
|
|
239
|
+
dataSource = this.datasource || {};
|
|
240
|
+
variableOptions = dataSource._options || {};
|
|
241
|
+
if (newVal) {
|
|
242
|
+
if (this.isDataSourceHasPaging()) {
|
|
243
|
+
this.pagination = this.datasource.execute(DataSource.Operation.GET_PAGING_OPTIONS) || {};
|
|
244
|
+
this.filterFields = variableOptions.filterFields || {};
|
|
245
|
+
this.logicalOp = variableOptions.logicalOp || "";
|
|
246
|
+
this.sortOptions = variableOptions.orderBy || (isArray(this.pagination.sort) ? getOrderByExpr(this.pagination.sort) : "");
|
|
247
|
+
dataSize = this.pagination.totalElements;
|
|
248
|
+
maxResults = this.pagination.size = Number(this.pagination.size) ? this.pagination.size : get(this.datasource.dataSet, this.pagination.size);
|
|
249
|
+
this.pagination.numberOfElements = Number(this.pagination.numberOfElements) ? this.pagination.numberOfElements : get(this.datasource.dataSet, this.pagination.numberOfElements);
|
|
250
|
+
if (this.pagination.numberOfElements > 0) {
|
|
251
|
+
if (isDefined(this.pagination.number) && this.getPaginationStartIndex() === 1) this.dn.currentPage = this.pagination.number + 1;
|
|
252
|
+
currentPage = this.dn.currentPage || 1;
|
|
253
|
+
} else currentPage = 1;
|
|
254
|
+
this.setDefaultPagingValues(dataSize, maxResults, currentPage);
|
|
255
|
+
this.disableNavigation();
|
|
256
|
+
this.checkDataSize(dataSize, this.pagination.numberOfElements, this.pagination.size);
|
|
257
|
+
startIndex = (currentPage - 1) * this.maxResults;
|
|
258
|
+
this.getPageDetails(startIndex + 1, Math.min(startIndex + Number(this.pagination.numberOfElements), dataSize), dataSize);
|
|
259
|
+
this.setResult(newVal);
|
|
260
|
+
} else if (!isString(newVal)) this.setNonPageableData(newVal);
|
|
261
|
+
} else {
|
|
262
|
+
this.setResult(newVal);
|
|
263
|
+
this.resetPageNavigation();
|
|
264
|
+
}
|
|
265
|
+
if (this.navigation === "Basic") this._setAriaForBasicNavigation();
|
|
266
|
+
} else if (newVal && !isString(newVal)) this.setNonPageableData(newVal);
|
|
267
|
+
}
|
|
268
|
+
isFirstPage() {
|
|
269
|
+
return this.dn.currentPage === 1 || !this.dn.currentPage;
|
|
270
|
+
}
|
|
271
|
+
isLastPage() {
|
|
272
|
+
return this.dn.currentPage === this.pageCount;
|
|
273
|
+
}
|
|
274
|
+
goToLastPage(isRefresh, event, callback) {
|
|
275
|
+
if (!this.isLastPage()) {
|
|
276
|
+
this.dn.currentPage = this.pageCount;
|
|
277
|
+
this.goToPage(event, callback);
|
|
278
|
+
} else if (isRefresh) this.goToPage(event, callback);
|
|
279
|
+
}
|
|
280
|
+
goToFirstPage(isRefresh, event, callback) {
|
|
281
|
+
if (!this.isFirstPage()) {
|
|
282
|
+
this.dn.currentPage = 1;
|
|
283
|
+
this.goToPage(event, callback);
|
|
284
|
+
} else if (isRefresh) this.goToPage(event, callback);
|
|
285
|
+
}
|
|
286
|
+
goToPage(event, callback) {
|
|
287
|
+
this.firstRow = (this.dn.currentPage - 1) * this.maxResults;
|
|
288
|
+
const mode = this.parent.statePersistence.computeMode(this.statehandler), allowpagesizechange = this.parent.allowpagesizechange;
|
|
289
|
+
if (mode && mode.toLowerCase() !== "none" && (this.parent.widgetType === "wm-table" || this.parent.widgetType === "wm-list")) {
|
|
290
|
+
this.parent._selectedItemsExist = true;
|
|
291
|
+
if (this.isFirstPage() && !allowpagesizechange) this.parent.statePersistence.removeWidgetState(this.parent, "pagination");
|
|
292
|
+
else if (unsupportedStatePersistenceTypes.indexOf(this.parent.navigation) < 0) {
|
|
293
|
+
const state = { pagination: this.dn.currentPage };
|
|
294
|
+
if (allowpagesizechange) state.pagesize = this.maxResults;
|
|
295
|
+
this.parent.statePersistence.setWidgetState(this.parent, state);
|
|
296
|
+
} else console.warn("Retain State handling on Widget " + this.parent.name + " is not supported for current pagination type.");
|
|
297
|
+
this.parent.currentpage = this.dn.currentPage;
|
|
298
|
+
this.parent.nativeElement?.setAttribute("currentpage", this.dn.currentPage);
|
|
299
|
+
}
|
|
300
|
+
this.getPageData(event, callback);
|
|
301
|
+
}
|
|
302
|
+
onPageDataReady(event, data, callback) {
|
|
303
|
+
this.disableNavigation();
|
|
304
|
+
this.invokeSetRecord(event, data);
|
|
305
|
+
triggerFn(callback);
|
|
306
|
+
}
|
|
307
|
+
getPageData(event, callback) {
|
|
308
|
+
let data, startIndex;
|
|
309
|
+
if (this.isDataSourceHasPaging()) {
|
|
310
|
+
let pageIndex = this.dn.currentPage;
|
|
311
|
+
if (this.isEditNotInCurrentPage() && this.parent.gridOptions.lastActionPerformed !== "delete") pageIndex = this.parent.actionRowPage;
|
|
312
|
+
this.datasource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
313
|
+
"page": pageIndex - 1 + this.getPaginationStartIndex(),
|
|
314
|
+
"size": this.maxResults,
|
|
315
|
+
"filterFields": this.filterFields,
|
|
316
|
+
"orderBy": this.sortOptions,
|
|
317
|
+
"logicalOp": this.logicalOp,
|
|
318
|
+
"matchMode": "anywhereignorecase"
|
|
319
|
+
}).then((response) => {
|
|
320
|
+
this.onPageDataReady(event, response?.data, callback);
|
|
321
|
+
startIndex = (this.dn.currentPage - 1) * this.maxResults;
|
|
322
|
+
this.getPageDetails(startIndex + 1, Math.min(startIndex + Number(this.pagination?.numberOfElements), this.pagination?.totalElements), this.pagination?.totalElements);
|
|
323
|
+
$appDigest();
|
|
324
|
+
}, (error) => {
|
|
325
|
+
if (error) {}
|
|
326
|
+
});
|
|
327
|
+
} else {
|
|
328
|
+
if (this.isEditNotInCurrentPage()) startIndex = (this.parent.actionRowPage - 1) * this.maxResults;
|
|
329
|
+
else startIndex = (this.dn.currentPage - 1) * this.maxResults;
|
|
330
|
+
data = isArray(this.__fullData) ? this.__fullData.slice(startIndex, startIndex + this.maxResults) : this.__fullData;
|
|
331
|
+
this.getPageDetails(startIndex + 1, Math.min(startIndex + this.maxResults, this.__fullData?.length), this.__fullData?.length);
|
|
332
|
+
this.setResult(data);
|
|
333
|
+
this.onPageDataReady(event, data, callback);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
isEditNotInCurrentPage() {
|
|
337
|
+
const pageIndex = this.dn.currentPage;
|
|
338
|
+
return this.parent.widgetType === "wm-table" && pageIndex === this.parent.currentPage && this.parent.actionRowPage && this.parent.actionRowPage < pageIndex;
|
|
339
|
+
}
|
|
340
|
+
invokeSetRecord(event, data) {
|
|
341
|
+
const pageInfo = {
|
|
342
|
+
currentPage: this.dn.currentPage,
|
|
343
|
+
size: this.maxResults,
|
|
344
|
+
totalElements: this.dataSize,
|
|
345
|
+
totalPages: this.pageCount
|
|
346
|
+
};
|
|
347
|
+
if (this.parent) this.parent.invokeEventCallback("setrecord", {
|
|
348
|
+
$event: event,
|
|
349
|
+
$data: data,
|
|
350
|
+
$index: this.dn.currentPage,
|
|
351
|
+
pageInfo,
|
|
352
|
+
data
|
|
353
|
+
});
|
|
354
|
+
else this.invokeEventCallback("setrecord", {
|
|
355
|
+
$event: event,
|
|
356
|
+
$data: data,
|
|
357
|
+
$index: this.dn.currentPage,
|
|
358
|
+
pageInfo,
|
|
359
|
+
data
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
validateCurrentPage(event, callback) {
|
|
363
|
+
if (event && (isNaN(this.dn.currentPage) || this.dn.currentPage <= 0 || this.pageCount && (this.dn.currentPage > this.pageCount || isNull(this.dn.currentPage)))) {
|
|
364
|
+
if (this.dn.currentPage <= 0) {
|
|
365
|
+
this.dn.currentPage = 1;
|
|
366
|
+
this.goToPage(event);
|
|
367
|
+
} else if (this.dn.currentPage > this.pageCount) {
|
|
368
|
+
this.dn.currentPage = this.pageCount;
|
|
369
|
+
this.goToPage(event);
|
|
370
|
+
}
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
return true;
|
|
374
|
+
}
|
|
375
|
+
onModelChange(event) {
|
|
376
|
+
if (!this.validateCurrentPage(event)) return;
|
|
377
|
+
this.goToPage(event);
|
|
378
|
+
}
|
|
379
|
+
onKeyDown(event) {
|
|
380
|
+
const targetEle = $(event.target).closest("a");
|
|
381
|
+
if (event.code === "KeyE") {
|
|
382
|
+
targetEle.addClass("ng-invalid");
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
targetEle.removeClass("ng-invalid");
|
|
386
|
+
return true;
|
|
387
|
+
}
|
|
388
|
+
pageChanged(event) {
|
|
389
|
+
this._debouncedPageChanged(event);
|
|
390
|
+
}
|
|
391
|
+
navigatePage(index, event, isRefresh, callback) {
|
|
392
|
+
if (isDefined(this.parent.isDataLoading) && !this.isDisableNext) {
|
|
393
|
+
this.parent.isDataLoading = true;
|
|
394
|
+
if (this.parent.infScroll) {
|
|
395
|
+
this.parent.variableInflight = true;
|
|
396
|
+
this.parent.callDataGridMethod("showLoadingIndicator", this.parent.loadingdatamsg, true);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
if (this.parent.widgetType === "wm-table" && this.parent.gridOptions.isNavTypeScrollOrOndemand()) {
|
|
400
|
+
this.parent.gridOptions.setLastActionPerformed(this.parent.gridOptions.ACTIONS.DEFAULT);
|
|
401
|
+
this.parent.gridOptions.setIsDatasetUpdated(false);
|
|
402
|
+
}
|
|
403
|
+
this.invokeEventCallback("paginationchange", {
|
|
404
|
+
$event: void 0,
|
|
405
|
+
$index: this.dn.currentPage
|
|
406
|
+
});
|
|
407
|
+
this.dn.currentPage = +this.dn.currentPage;
|
|
408
|
+
switch (index) {
|
|
409
|
+
case "first":
|
|
410
|
+
if (this.pagination?.next && this.datasource?.pagination) {
|
|
411
|
+
this.datasource.pagination.isNext = false;
|
|
412
|
+
this.datasource.pagination.isPrev = false;
|
|
413
|
+
}
|
|
414
|
+
this.goToFirstPage(isRefresh, event, callback);
|
|
415
|
+
return;
|
|
416
|
+
case "prev":
|
|
417
|
+
if (!this.pagination?.next && (this.isFirstPage() || !this.validateCurrentPage(event, callback))) return;
|
|
418
|
+
else if (this.pagination?.next) {
|
|
419
|
+
this.datasource.pagination.isNext = false;
|
|
420
|
+
this.datasource.pagination.isPrev = true;
|
|
421
|
+
}
|
|
422
|
+
this.dn.currentPage -= 1;
|
|
423
|
+
break;
|
|
424
|
+
case "next":
|
|
425
|
+
if (!this.pagination?.next && (this.isLastPage() || !this.validateCurrentPage(event, callback))) return;
|
|
426
|
+
else if (this.pagination?.next) {
|
|
427
|
+
this.datasource.pagination.isNext = true;
|
|
428
|
+
this.datasource.pagination.isPrev = false;
|
|
429
|
+
}
|
|
430
|
+
this.dn.currentPage += 1;
|
|
431
|
+
break;
|
|
432
|
+
case "last":
|
|
433
|
+
this.goToLastPage(isRefresh, event, callback);
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
this.goToPage(event, callback);
|
|
437
|
+
}
|
|
438
|
+
setBindDataSet(binddataset, parent, dataSource, dataset, binddatasource, datasetBoundExpr, statehandler) {
|
|
439
|
+
const parts = binddataset.split(".");
|
|
440
|
+
let bindPagingOptions;
|
|
441
|
+
this.statehandler = statehandler;
|
|
442
|
+
if (parts[0] === "Variables" || parts[0] === "Widgets") bindPagingOptions = `${parts[0]}.${parts[1]}.pagination`;
|
|
443
|
+
else if (parts[0] === "App" && parts[1] === "activePage" && parts[2]?.includes("Variables") && parts[3]) bindPagingOptions = `App.activePage.${parts[2]}.${parts[3]}.pagination`;
|
|
444
|
+
if (!binddatasource && dataset && !datasetBoundExpr) {
|
|
445
|
+
this.dataset = dataset;
|
|
446
|
+
if (!binddataset.includes("pageParams")) {
|
|
447
|
+
if (this._debouncedApplyDataset) this._debouncedApplyDataset();
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
this.binddataset = binddataset;
|
|
452
|
+
setTimeout(() => {
|
|
453
|
+
this.registerDestroyListener($watch(binddataset, parent, datasetBoundExpr ? dataSource : {}, (nv) => {
|
|
454
|
+
if (nv) {
|
|
455
|
+
this.dataset = nv;
|
|
456
|
+
if (this._debouncedApplyDataset) this._debouncedApplyDataset();
|
|
457
|
+
} else this.widget.dataset = nv;
|
|
458
|
+
}));
|
|
459
|
+
if (!bindPagingOptions) return;
|
|
460
|
+
this.registerDestroyListener($watch(bindPagingOptions, parent, {}, () => {
|
|
461
|
+
if (this._debouncedApplyDataset) this._debouncedApplyDataset();
|
|
462
|
+
}));
|
|
463
|
+
});
|
|
464
|
+
if (!datasetBoundExpr) this.datasource = dataSource;
|
|
465
|
+
}
|
|
466
|
+
setDataSource(dataSource) {
|
|
467
|
+
this.datasource = dataSource;
|
|
468
|
+
}
|
|
469
|
+
onPropertyChange(key, nv, ov) {
|
|
470
|
+
let pageSize;
|
|
471
|
+
if (key === "dataset") {
|
|
472
|
+
let data;
|
|
473
|
+
if (this.parent?.onDataNavigatorDataSetChange) data = this.parent.onDataNavigatorDataSetChange(nv);
|
|
474
|
+
else data = nv;
|
|
475
|
+
if (this.parent.widgetType === "wm-table") this.parent._triggeredByUser = false;
|
|
476
|
+
if (data?.length) {
|
|
477
|
+
if (this.isDataSourceHasPaging()) {
|
|
478
|
+
const currentPageSize = get(data, "pagination.size") || get(this.datasource, "pagination.size"), totalElements = get(data, "pagination.totalElements") || get(this.datasource, "pagination.totalElements"), widgetState = this.parent.statePersistence.getWidgetState(this.parent);
|
|
479
|
+
this.actualPageSize = widgetState?.actualpagesize || currentPageSize;
|
|
480
|
+
this.actualPageSize = Number(this.actualPageSize) ? this.actualPageSize : get(this.datasource.dataSet, this.actualPageSize);
|
|
481
|
+
if (this.defaultPageSizeOptions.length > 0) this.pageSizeOptions = [...this.defaultPageSizeOptions];
|
|
482
|
+
else this.pageSizeOptions = range(this.actualPageSize, Math.max(this.actualPageSize + 1, this.actualPageSize + totalElements), this.actualPageSize);
|
|
483
|
+
if (widgetState?.selectedItem && widgetState.actualpagesize !== widgetState.pagesize) {
|
|
484
|
+
if (!this.prevPageSize) this.prevPageSize = this.actualPageSize || data?.length;
|
|
485
|
+
const updatedItems = this.handleStateParamsforNewPageSize(widgetState.selectedItem, this.prevPageSize, data?.length);
|
|
486
|
+
if (updatedItems) {
|
|
487
|
+
this.parent.statePersistence.setWidgetState(this.parent, {
|
|
488
|
+
pagination: 1,
|
|
489
|
+
pagesize: this.maxResults,
|
|
490
|
+
actualpagesize: this.actualPageSize || this.maxResults,
|
|
491
|
+
selectedItem: updatedItems
|
|
492
|
+
});
|
|
493
|
+
this.prevPageSize = void 0;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
} else {
|
|
497
|
+
pageSize = this.parent.getActualPageSize();
|
|
498
|
+
if (this.defaultPageSizeOptions.length > 0) this.pageSizeOptions = [...this.defaultPageSizeOptions];
|
|
499
|
+
else this.pageSizeOptions = range(pageSize, data.length + pageSize, pageSize);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
if (this.isEditNotInCurrentPage()) this.setResult(data);
|
|
503
|
+
else this.setPagingValues(data);
|
|
504
|
+
} else if (key === "navigation") {
|
|
505
|
+
if (nv === "Advanced") this.navigation = "Classic";
|
|
506
|
+
this.updateNavSize();
|
|
507
|
+
this.navcontrols = nv;
|
|
508
|
+
} else if (key === "navigationsize") this.updateNavSize();
|
|
509
|
+
else if (key === "navigationalign") switchClass(this.nativeElement, `text-${nv}`, `text-${ov}`);
|
|
510
|
+
else if (key === "maxResults") this.setPagingValues(this.dataset);
|
|
511
|
+
else super.onPropertyChange(key, nv, ov);
|
|
512
|
+
}
|
|
513
|
+
handleStateParamsforNewPageSize(selectedItem, oldPageSize, newPageSize) {
|
|
514
|
+
return selectedItem.map(({ page, index }) => {
|
|
515
|
+
const absoluteIndex = (page - 1) * oldPageSize + index;
|
|
516
|
+
return {
|
|
517
|
+
page: Math.floor(absoluteIndex / newPageSize) + 1,
|
|
518
|
+
index: absoluteIndex % newPageSize
|
|
519
|
+
};
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
onDropdownKeydown(event, index) {
|
|
523
|
+
const $items = $("ul#dropdown-basic a.dropdown-item");
|
|
524
|
+
const maxIndex = this.pageSizeOptions.length - 1;
|
|
525
|
+
let selectedOption;
|
|
526
|
+
switch (event.key) {
|
|
527
|
+
case "ArrowDown":
|
|
528
|
+
case "Tab":
|
|
529
|
+
event.preventDefault();
|
|
530
|
+
if (event.key === "Tab" && event.shiftKey) this.focusedIndex = index - 1 < 0 ? maxIndex : index - 1;
|
|
531
|
+
else this.focusedIndex = index + 1 > maxIndex ? 0 : index + 1;
|
|
532
|
+
break;
|
|
533
|
+
case "ArrowUp":
|
|
534
|
+
event.preventDefault();
|
|
535
|
+
this.focusedIndex = index - 1 < 0 ? maxIndex : index - 1;
|
|
536
|
+
break;
|
|
537
|
+
case "Enter":
|
|
538
|
+
event.preventDefault();
|
|
539
|
+
selectedOption = this.pageSizeOptions[this.focusedIndex];
|
|
540
|
+
this.onPageSizeChange(event, selectedOption);
|
|
541
|
+
this.closeDropdown();
|
|
542
|
+
return;
|
|
543
|
+
case "Escape":
|
|
544
|
+
event.preventDefault();
|
|
545
|
+
this.closeDropdown();
|
|
546
|
+
return;
|
|
547
|
+
default: return;
|
|
548
|
+
}
|
|
549
|
+
setTimeout(() => {
|
|
550
|
+
$items.eq(this.focusedIndex)?.focus();
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
closeDropdown() {
|
|
554
|
+
this.bsDropdown.hide();
|
|
555
|
+
$("button[aria-controls=\"dropdown-basic\"]").focus();
|
|
556
|
+
}
|
|
557
|
+
onOpenChange(isOpen) {
|
|
558
|
+
if (isOpen) {
|
|
559
|
+
const selectedIndex = this.pageSizeOptions?.findIndex((option) => option == this.maxResults);
|
|
560
|
+
this.focusedIndex = selectedIndex >= 0 ? selectedIndex : 0;
|
|
561
|
+
setTimeout(() => {
|
|
562
|
+
$("ul#dropdown-basic a.dropdown-item").eq(this.focusedIndex)?.focus();
|
|
563
|
+
}, 0);
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
onPageSizeChange($event, newPageSize) {
|
|
567
|
+
const widgetState = this.parent.statePersistence.getWidgetState(this.parent);
|
|
568
|
+
let updatedItems;
|
|
569
|
+
if (widgetState?.selectedItem) updatedItems = this.handleStateParamsforNewPageSize(widgetState.selectedItem, this.maxResults, +newPageSize);
|
|
570
|
+
this.actualPageSize = this.actualPageSize || this.maxResults;
|
|
571
|
+
this.maxResults = +newPageSize;
|
|
572
|
+
this.maxResultsEmitter.emit(this.maxResults);
|
|
573
|
+
if (this.isDataSourceHasPaging() && this.datasource) this.datasource.maxResults = this.maxResults;
|
|
574
|
+
if (updatedItems) this.parent.statePersistence.setWidgetState(this.parent, {
|
|
575
|
+
pagination: 1,
|
|
576
|
+
pagesize: this.maxResults,
|
|
577
|
+
actualpagesize: this.actualPageSize || this.maxResults,
|
|
578
|
+
selectedItem: updatedItems
|
|
579
|
+
});
|
|
580
|
+
else this.parent.statePersistence.setWidgetState(this.parent, {
|
|
581
|
+
pagination: 1,
|
|
582
|
+
pagesize: this.maxResults,
|
|
583
|
+
actualpagesize: this.actualPageSize || this.maxResults
|
|
584
|
+
});
|
|
585
|
+
this.navigatePage("first", $event, true);
|
|
586
|
+
this.calculatePagingValues();
|
|
587
|
+
if (this.nativeElement.closest("popover-container, .popover")) {
|
|
588
|
+
$event.stopPropagation();
|
|
589
|
+
this.bsDropdown.hide();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
onDropDownShown($event) {
|
|
593
|
+
const container = $event?._element?.nativeElement;
|
|
594
|
+
if (!container) return;
|
|
595
|
+
adjustVerticalPosition($(container), this.nativeElement?.querySelector(".items-per-page div"), this.bsDropdown._dropdown, $(container?.querySelector("ul[id=\"dropdown-basic\"]")));
|
|
596
|
+
this.dropdownScrollHandler = () => {
|
|
597
|
+
this.onDropdownScroll();
|
|
598
|
+
};
|
|
599
|
+
window.addEventListener("scroll", this.dropdownScrollHandler, true);
|
|
600
|
+
}
|
|
601
|
+
onDropdownScroll() {}
|
|
602
|
+
onDropdownHidden() {
|
|
603
|
+
if (this.dropdownScrollHandler) window.removeEventListener("scroll", this.dropdownScrollHandler, true);
|
|
604
|
+
this.dropdownScrollHandler = void 0;
|
|
605
|
+
}
|
|
606
|
+
ngAfterViewInit() {
|
|
607
|
+
const paginationElem = this.nativeElement;
|
|
608
|
+
paginationElem.onclick = (event) => {
|
|
609
|
+
event.stopPropagation();
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
ngOnDestroy() {
|
|
613
|
+
if (this.dropdownScrollHandler) window.removeEventListener("scroll", this.dropdownScrollHandler, true);
|
|
614
|
+
if (this._initTimeoutId) {
|
|
615
|
+
clearTimeout(this._initTimeoutId);
|
|
616
|
+
this._initTimeoutId = null;
|
|
617
|
+
}
|
|
618
|
+
if (this.resultEmitter) this.resultEmitter.complete();
|
|
619
|
+
if (this.maxResultsEmitter) this.maxResultsEmitter.complete();
|
|
620
|
+
this._debouncedApplyDataset = null;
|
|
621
|
+
this._debouncedPageChanged = null;
|
|
622
|
+
this.dataset = null;
|
|
623
|
+
this.__fullData = null;
|
|
624
|
+
this.result = null;
|
|
625
|
+
this.filterFields = null;
|
|
626
|
+
this.sortOptions = null;
|
|
627
|
+
this.options = null;
|
|
628
|
+
if (this.pageSizeOptions) this.pageSizeOptions = [];
|
|
629
|
+
if (this.defaultPageSizeOptions) this.defaultPageSizeOptions = [];
|
|
630
|
+
this.datasource = null;
|
|
631
|
+
this.parent = null;
|
|
632
|
+
super.ngOnDestroy();
|
|
633
|
+
}
|
|
634
|
+
static {
|
|
635
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
636
|
+
minVersion: "12.0.0",
|
|
637
|
+
version: "22.2.1",
|
|
638
|
+
ngImport: i0,
|
|
639
|
+
type: PaginationComponent,
|
|
640
|
+
deps: [
|
|
641
|
+
{ token: i0.Injector },
|
|
642
|
+
{
|
|
643
|
+
token: WidgetRef,
|
|
644
|
+
skipSelf: true
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
token: "EXPLICIT_CONTEXT",
|
|
648
|
+
optional: true
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
static {
|
|
655
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
656
|
+
minVersion: "17.0.0",
|
|
657
|
+
version: "22.2.1",
|
|
658
|
+
type: PaginationComponent,
|
|
659
|
+
isStandalone: true,
|
|
660
|
+
selector: "[wmPagination]",
|
|
661
|
+
outputs: {
|
|
662
|
+
resultEmitter: "resultEmitter",
|
|
663
|
+
maxResultsEmitter: "maxResultsEmitter"
|
|
664
|
+
},
|
|
665
|
+
providers: [provideAsWidgetRef(PaginationComponent)],
|
|
666
|
+
viewQueries: [{
|
|
667
|
+
propertyName: "bsDropdown",
|
|
668
|
+
first: true,
|
|
669
|
+
predicate: BsDropdownDirective,
|
|
670
|
+
descendants: true
|
|
671
|
+
}],
|
|
672
|
+
usesInheritance: true,
|
|
673
|
+
ngImport: i0,
|
|
674
|
+
template: "\n@if (navcontrols === 'Classic') {\n<ul class=\"pagination advanced {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableFirst}\">\n <a [title]=\"appLocale.LABEL_FIRST\" name=\"first\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableFirst\"\n (click)=\"navigatePage('first', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-first-page\"></i></span>\n <span class=\"sr-only\">Go to first page {{ isDisableFirst ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a [title]=\"appLocale.LABEL_PREVIOUS\" name=\"prev\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisablePrevious\"\n (click)=\"navigatePage('prev', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n <span class=\"sr-only\">Go to previous page {{ isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"pagecount disabled\">\n <a href=\"javascript:void(0);\" aria-label=\"Change Page Number\">\n <input [(ngModel)]=\"dn.currentPage\" [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount\" [disabled]=\"isDisableCurrent\"\n [ngModelOptions]=\"{standalone: true}\"\n type=\"number\"\n (keydown)=\"onKeyDown($event)\" (change)=\"onModelChange($event)\" class=\"form-control\"/>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"disabled\">\n <a [hidden]=\"isDisableCount\"> / {{pageCount}}</a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableNext}\">\n <a [title]=\"appLocale.LABEL_NEXT\" name=\"next\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableNext\"\n (click)=\"navigatePage('next', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n <span class=\"sr-only\">Go to next page {{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableLast}\">\n <a [title]=\"appLocale.LABEL_LAST\" name=\"last\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableLast\"\n (click)=\"navigatePage('last', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-last-page\"></i></span>\n <span class=\"sr-only\">Go to last page {{ isDisableLast ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (showrecordcount) {\n <li class=\"totalcount disabled\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n }\n</ul>\n}\n@if (navcontrols === 'Pager') {\n <ul class=\"pager {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n@if (!(dataSize<=maxResults)) {\n <li class=\"previous\" [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"isDisablePrevious\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class=\"sr-only\">{{ isDisablePrevious ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n <li class=\"next\" [ngClass]=\"{'disabled':isDisableNext}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('next', $event)\"\n [attr.aria-disabled]=\"isDisableNext\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class=\"sr-only\">{{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n </ul>\n}\n\n@if (navcontrols === 'Basic') {\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <div class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE }} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n @if (rowSummary?.totalRecords) {\n <div class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </div>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <pagination class=\"pagination basic\" [ngClass]=\"navigationClass\" role=\"navigation\"\n [itemsPerPage]=\"maxResults\" [totalItems]=\"dataSize\"\n (pageChanged)=\"pageChanged($event)\" [ngModelOptions]=\"{standalone:true}\" [ngModel]=\"dn.currentPage\"\n [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount + ' pages'\"\n [boundaryLinks]=\"boundarylinks\" [maxSize]=\"maxsize\"\n [directionLinks]=\"directionlinks\"\n firstText=\"Firtst\" lastText=\"Last\"\n [customPreviousTemplate]=\"prevTemplate\"\n [customNextTemplate]=\"nextTemplate\"\n [customPageTemplate]=\"pageTemplate\"></pagination>\n }\n}\n\n@if (navcontrols === 'Basic' && showrecordcount) {\n <ul class=\"pagination\">\n <li class=\"totalcount disabled basiccount\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n </ul>\n}\n\n<ng-template #pageTemplate let-page>\n <span class=\"sr-only\" [attr.data-isacitvepage]=\"page.active\">{{'Page '}}</span>\n {{page.number}}\n @if (page.active) {\n <span class=\"sr-only\"> {{', Showing page ' + page.number + ' of ' + pageCount}}</span>\n }\n</ng-template>\n<ng-template #prevTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Previous page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Next page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n",
|
|
675
|
+
dependencies: [
|
|
676
|
+
{
|
|
677
|
+
kind: "ngmodule",
|
|
678
|
+
type: CommonModule
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
kind: "directive",
|
|
682
|
+
type: i1.NgClass,
|
|
683
|
+
selector: "[ngClass]",
|
|
684
|
+
inputs: ["class", "ngClass"]
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
kind: "ngmodule",
|
|
688
|
+
type: FormsModule
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
kind: "directive",
|
|
692
|
+
type: i2.DefaultValueAccessor,
|
|
693
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
kind: "directive",
|
|
697
|
+
type: i2.NumberValueAccessor,
|
|
698
|
+
selector: "input[type=number]:not([ngNoCva])[formControlName],input[type=number]:not([ngNoCva])[formControl],input[type=number]:not([ngNoCva])[ngModel]"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
kind: "directive",
|
|
702
|
+
type: i2.NgControlStatus,
|
|
703
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
kind: "directive",
|
|
707
|
+
type: i2.NgModel,
|
|
708
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
709
|
+
inputs: [
|
|
710
|
+
"name",
|
|
711
|
+
"disabled",
|
|
712
|
+
"ngModel",
|
|
713
|
+
"ngModelOptions"
|
|
714
|
+
],
|
|
715
|
+
outputs: ["ngModelChange"],
|
|
716
|
+
exportAs: ["ngModel"]
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
kind: "ngmodule",
|
|
720
|
+
type: PaginationModule
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
kind: "component",
|
|
724
|
+
type: i3.PaginationComponent,
|
|
725
|
+
selector: "pagination",
|
|
726
|
+
inputs: [
|
|
727
|
+
"align",
|
|
728
|
+
"maxSize",
|
|
729
|
+
"boundaryLinks",
|
|
730
|
+
"directionLinks",
|
|
731
|
+
"firstText",
|
|
732
|
+
"previousText",
|
|
733
|
+
"nextText",
|
|
734
|
+
"lastText",
|
|
735
|
+
"rotate",
|
|
736
|
+
"pageBtnClass",
|
|
737
|
+
"disabled",
|
|
738
|
+
"customPageTemplate",
|
|
739
|
+
"customNextTemplate",
|
|
740
|
+
"customPreviousTemplate",
|
|
741
|
+
"customFirstTemplate",
|
|
742
|
+
"customLastTemplate",
|
|
743
|
+
"itemsPerPage",
|
|
744
|
+
"totalItems"
|
|
745
|
+
],
|
|
746
|
+
outputs: ["numPages", "pageChanged"]
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
kind: "ngmodule",
|
|
750
|
+
type: BsDropdownModule
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
kind: "directive",
|
|
754
|
+
type: i4.BsDropdownMenuDirective,
|
|
755
|
+
selector: "[bsDropdownMenu],[dropdownMenu]",
|
|
756
|
+
exportAs: ["bs-dropdown-menu"]
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
kind: "directive",
|
|
760
|
+
type: i4.BsDropdownToggleDirective,
|
|
761
|
+
selector: "[bsDropdownToggle],[dropdownToggle]",
|
|
762
|
+
exportAs: ["bs-dropdown-toggle"]
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
kind: "directive",
|
|
766
|
+
type: i4.BsDropdownDirective,
|
|
767
|
+
selector: "[bsDropdown], [dropdown]",
|
|
768
|
+
inputs: [
|
|
769
|
+
"placement",
|
|
770
|
+
"triggers",
|
|
771
|
+
"container",
|
|
772
|
+
"dropup",
|
|
773
|
+
"autoClose",
|
|
774
|
+
"isAnimated",
|
|
775
|
+
"insideClick",
|
|
776
|
+
"isDisabled",
|
|
777
|
+
"isOpen"
|
|
778
|
+
],
|
|
779
|
+
outputs: [
|
|
780
|
+
"isOpenChange",
|
|
781
|
+
"onShown",
|
|
782
|
+
"onHidden"
|
|
783
|
+
],
|
|
784
|
+
exportAs: ["bs-dropdown"]
|
|
785
|
+
}
|
|
786
|
+
],
|
|
787
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
};
|
|
791
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
792
|
+
minVersion: "12.0.0",
|
|
793
|
+
version: "22.2.1",
|
|
794
|
+
ngImport: i0,
|
|
795
|
+
type: PaginationComponent,
|
|
796
|
+
decorators: [{
|
|
797
|
+
type: Component,
|
|
798
|
+
args: [{
|
|
799
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
800
|
+
standalone: true,
|
|
801
|
+
imports: [
|
|
802
|
+
CommonModule,
|
|
803
|
+
FormsModule,
|
|
804
|
+
PaginationModule,
|
|
805
|
+
BsDropdownModule
|
|
806
|
+
],
|
|
807
|
+
selector: "[wmPagination]",
|
|
808
|
+
providers: [provideAsWidgetRef(PaginationComponent)],
|
|
809
|
+
template: "\n@if (navcontrols === 'Classic') {\n<ul class=\"pagination advanced {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableFirst}\">\n <a [title]=\"appLocale.LABEL_FIRST\" name=\"first\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableFirst\"\n (click)=\"navigatePage('first', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-first-page\"></i></span>\n <span class=\"sr-only\">Go to first page {{ isDisableFirst ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a [title]=\"appLocale.LABEL_PREVIOUS\" name=\"prev\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisablePrevious\"\n (click)=\"navigatePage('prev', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n <span class=\"sr-only\">Go to previous page {{ isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"pagecount disabled\">\n <a href=\"javascript:void(0);\" aria-label=\"Change Page Number\">\n <input [(ngModel)]=\"dn.currentPage\" [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount\" [disabled]=\"isDisableCurrent\"\n [ngModelOptions]=\"{standalone: true}\"\n type=\"number\"\n (keydown)=\"onKeyDown($event)\" (change)=\"onModelChange($event)\" class=\"form-control\"/>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li class=\"disabled\">\n <a [hidden]=\"isDisableCount\"> / {{pageCount}}</a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableNext}\">\n <a [title]=\"appLocale.LABEL_NEXT\" name=\"next\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableNext\"\n (click)=\"navigatePage('next', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n <span class=\"sr-only\">Go to next page {{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (!(dataSize<=maxResults)) {\n <li [ngClass]=\"{'disabled':isDisableLast}\">\n <a [title]=\"appLocale.LABEL_LAST\" name=\"last\" href=\"javascript:void(0);\"\n [attr.aria-disabled]=\"isDisableLast\"\n (click)=\"navigatePage('last', $event)\">\n <span aria-hidden=\"true\"><i class=\"wi wi-last-page\"></i></span>\n <span class=\"sr-only\">Go to last page {{ isDisableLast ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n @if (showrecordcount) {\n <li class=\"totalcount disabled\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n }\n</ul>\n}\n@if (navcontrols === 'Pager') {\n <ul class=\"pager {{navigationClass}}\">\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <li class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE}} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </li>\n @if (rowSummary?.totalRecords) {\n <li class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </li>\n }\n }\n@if (!(dataSize<=maxResults)) {\n <li class=\"previous\" [ngClass]=\"{'disabled':isDisablePrevious}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"isDisablePrevious\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-left\"></i></span>\n {{appLocale.LABEL_PREVIOUS}}\n <span class=\"sr-only\">{{ isDisablePrevious ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n <li class=\"next\" [ngClass]=\"{'disabled':isDisableNext}\">\n <a href=\"javascript:void(0);\" (click)=\"navigatePage('next', $event)\"\n [attr.aria-disabled]=\"isDisableNext\">\n <span aria-hidden=\"true\"><i class=\"wi wi-chevron-right\"></i></span>\n {{appLocale.LABEL_NEXT}}\n <span class=\"sr-only\">{{ isDisableNext ? ' , Disabled' : ''}}</span>\n </a>\n </li>\n }\n </ul>\n}\n\n@if (navcontrols === 'Basic') {\n @if (allowpagesizechange && pageSizeOptions?.[0]<rowSummary?.totalRecords) {\n <div class=\"items-per-page\">\n <label [title]=\"appLocale.LABEL_ITEMS_PER_PAGE\" class=\"app-label\">{{appLocale.LABEL_ITEMS_PER_PAGE }} :</label>\n\n <div class=\"btn-group\" dropdown container=\"body\" (onShown)=\"onDropDownShown($event)\" (onHidden)=\"onDropdownHidden()\" (isOpenChange)=\"onOpenChange($event)\">\n <button id=\"button-basic\" dropdownToggle type=\"button\" class=\"btn app-button dropdown-toggle\"\n aria-controls=\"dropdown-basic\">\n {{maxResults}} <span class=\"caret\"></span>\n </button>\n <ul id=\"dropdown-basic\" *dropdownMenu class=\"dropdown-menu pagesize-options\"\n role=\"menu\" aria-labelledby=\"button-basic\">\n @for (option of pageSizeOptions; track option; let i = $index) {\n <li role=\"menuitem\" [ngClass]=\"{ 'active': option == maxResults }\">\n <a class=\"dropdown-item\" (click)=\"onPageSizeChange($event, option)\" (keydown)=\"onDropdownKeydown($event, i)\"\n [attr.tabindex]=\"i === focusedIndex ? 0 : -1\">{{option}}</a>\n </li>\n }\n </ul>\n </div>\n </div>\n @if (rowSummary?.totalRecords) {\n <div class=\"item-range\">\n <div>\n <span>{{rowSummary.startIndex}} - {{rowSummary.endIndex}}</span>\n <span>of</span>\n <span>{{rowSummary.totalRecords}}</span>\n </div>\n </div>\n }\n }\n @if (!(dataSize<=maxResults)) {\n <pagination class=\"pagination basic\" [ngClass]=\"navigationClass\" role=\"navigation\"\n [itemsPerPage]=\"maxResults\" [totalItems]=\"dataSize\"\n (pageChanged)=\"pageChanged($event)\" [ngModelOptions]=\"{standalone:true}\" [ngModel]=\"dn.currentPage\"\n [attr.aria-label]=\"'Showing Page ' + dn.currentPage + ' of ' + pageCount + ' pages'\"\n [boundaryLinks]=\"boundarylinks\" [maxSize]=\"maxsize\"\n [directionLinks]=\"directionlinks\"\n firstText=\"Firtst\" lastText=\"Last\"\n [customPreviousTemplate]=\"prevTemplate\"\n [customNextTemplate]=\"nextTemplate\"\n [customPageTemplate]=\"pageTemplate\"></pagination>\n }\n}\n\n@if (navcontrols === 'Basic' && showrecordcount) {\n <ul class=\"pagination\">\n <li class=\"totalcount disabled basiccount\">\n <a href=\"javascript:void(0);\" tabindex=\"-1\" aria-disabled=\"true\">{{appLocale.LABEL_TOTAL_RECORDS}}: {{dataSize}}</a>\n </li>\n </ul>\n}\n\n<ng-template #pageTemplate let-page>\n <span class=\"sr-only\" [attr.data-isacitvepage]=\"page.active\">{{'Page '}}</span>\n {{page.number}}\n @if (page.active) {\n <span class=\"sr-only\"> {{', Showing page ' + page.number + ' of ' + pageCount}}</span>\n }\n</ng-template>\n<ng-template #prevTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Previous page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n<ng-template #nextTemplate let-disabled=\"disabled\">\n <span class=\"sr-only\" [attr.data-isdisabled]=\"disabled\">Go to Next page {{disabled ? ', Disabled' : ''}}</span>\n</ng-template>\n"
|
|
810
|
+
}]
|
|
811
|
+
}],
|
|
812
|
+
ctorParameters: () => [
|
|
813
|
+
{ type: i0.Injector },
|
|
814
|
+
{
|
|
815
|
+
type: void 0,
|
|
816
|
+
decorators: [{ type: SkipSelf }, {
|
|
817
|
+
type: Inject,
|
|
818
|
+
args: [WidgetRef]
|
|
819
|
+
}]
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
type: void 0,
|
|
823
|
+
decorators: [{
|
|
824
|
+
type: Inject,
|
|
825
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
826
|
+
}, { type: Optional }]
|
|
827
|
+
}
|
|
828
|
+
],
|
|
829
|
+
propDecorators: {
|
|
830
|
+
resultEmitter: [{ type: Output }],
|
|
831
|
+
maxResultsEmitter: [{ type: Output }],
|
|
832
|
+
bsDropdown: [{
|
|
833
|
+
type: ViewChild,
|
|
834
|
+
args: [BsDropdownDirective]
|
|
835
|
+
}]
|
|
836
|
+
}
|
|
837
|
+
});
|
|
883
838
|
export { PaginationComponent };
|
|
884
|
-
|
|
839
|
+
|
|
840
|
+
//# sourceMappingURL=index.mjs.map
|