@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,1599 +1,1516 @@
|
|
|
1
|
-
import { __decorate, __metadata } from
|
|
2
|
-
import * as i3 from
|
|
3
|
-
import { CommonModule } from
|
|
4
|
-
import * as i1 from
|
|
5
|
-
import {
|
|
6
|
-
import * as i0 from
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import { $
|
|
10
|
-
import { PaginationComponent } from
|
|
11
|
-
import { ButtonComponent } from
|
|
12
|
-
import { Subject } from
|
|
13
|
-
import { BaseFormComponent } from
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import * as i3 from "@angular/common";
|
|
3
|
+
import { CommonModule } from "@angular/common";
|
|
4
|
+
import * as i1 from "@wm/components/base";
|
|
5
|
+
import { APPLY_STYLES_TYPE, AUTO_LAYOUT_PROPS, AutoLayout, DEBOUNCE_TIMES, NAVIGATION_TYPE, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, StylableComponent, TextContentDirective, ToDatePipe, WmAppIconComponent, configureDnD, extractDataSourceName, getOrderedDataset, groupData, handleHeaderClick, provideAsWidgetRef, register, styler, toggleAllHeaders, unsupportedStatePersistenceTypes, widgetIdGenerator } from "@wm/components/base";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, ElementRef, HostBinding, HostListener, Inject, Injector, Input, NgZone, Optional, Renderer2, ViewChild, ViewChildren, ViewContainerRef, inject } from "@angular/core";
|
|
8
|
+
import * as i1$1 from "@wm/core";
|
|
9
|
+
import { $appDigest, $invokeWatchers, $watch, App, AppDefaults, DataSource, PaginationService, StatePersistence, generateGUId, getClonedObject, isDataSourceEqual, isDefined, isMobile, isObject, noop, setListClass, switchClass } from "@wm/core";
|
|
10
|
+
import { PaginationComponent } from "@wm/components/data/pagination";
|
|
11
|
+
import { ButtonComponent } from "@wm/components/input/button";
|
|
12
|
+
import { Subject } from "rxjs";
|
|
13
|
+
import { BaseFormComponent } from "@wm/components/input/base-form";
|
|
14
|
+
import { clone, cloneDeep, forEach, get, has, includes, isArray, isEmpty, isEqual, isNumber, isString, isUndefined, last, max, min, pullAllWith, pullAt, remove, some, toNumber } from "lodash-es";
|
|
16
15
|
const registerProps$1 = () => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
16
|
+
register("wm-list", new Map([
|
|
17
|
+
["boundarylinks", {
|
|
18
|
+
value: false,
|
|
19
|
+
...PROP_BOOLEAN
|
|
20
|
+
}],
|
|
21
|
+
["class", PROP_STRING],
|
|
22
|
+
["collapsible", PROP_BOOLEAN],
|
|
23
|
+
["dateformat", PROP_STRING],
|
|
24
|
+
["dataset", PROP_ANY],
|
|
25
|
+
["datasource", PROP_ANY],
|
|
26
|
+
["direction", {
|
|
27
|
+
value: "vertical",
|
|
28
|
+
...PROP_STRING
|
|
29
|
+
}],
|
|
30
|
+
["directionlinks", {
|
|
31
|
+
value: true,
|
|
32
|
+
...PROP_BOOLEAN
|
|
33
|
+
}],
|
|
34
|
+
["disableitem", PROP_BOOLEAN],
|
|
35
|
+
["enablereorder", PROP_BOOLEAN],
|
|
36
|
+
["forceellipses", {
|
|
37
|
+
value: true,
|
|
38
|
+
...PROP_BOOLEAN
|
|
39
|
+
}],
|
|
40
|
+
["groupby", PROP_STRING],
|
|
41
|
+
["iconclass", PROP_STRING],
|
|
42
|
+
["iconurl", PROP_STRING],
|
|
43
|
+
["itemclass", {
|
|
44
|
+
value: "",
|
|
45
|
+
...PROP_STRING
|
|
46
|
+
}],
|
|
47
|
+
["itemsperrow", PROP_STRING],
|
|
48
|
+
["listclass", {
|
|
49
|
+
value: "list-group",
|
|
50
|
+
...PROP_STRING
|
|
51
|
+
}],
|
|
52
|
+
["multiselect", PROP_BOOLEAN],
|
|
53
|
+
["loadingdatamsg", {
|
|
54
|
+
value: "Loading...",
|
|
55
|
+
...PROP_STRING
|
|
56
|
+
}],
|
|
57
|
+
["loadingicon", {
|
|
58
|
+
value: "fa fa-circle-o-notch",
|
|
59
|
+
...PROP_STRING
|
|
60
|
+
}],
|
|
61
|
+
["loadingiconurl", PROP_STRING],
|
|
62
|
+
["match", PROP_STRING],
|
|
63
|
+
["maxsize", {
|
|
64
|
+
value: 5,
|
|
65
|
+
...PROP_NUMBER
|
|
66
|
+
}],
|
|
67
|
+
["name", PROP_STRING],
|
|
68
|
+
["navigation", PROP_STRING],
|
|
69
|
+
["navigationalign", {
|
|
70
|
+
value: "left",
|
|
71
|
+
...PROP_STRING
|
|
72
|
+
}],
|
|
73
|
+
["nodatamessage", {
|
|
74
|
+
value: "No data found",
|
|
75
|
+
...PROP_STRING
|
|
76
|
+
}],
|
|
77
|
+
["ondemandmessage", {
|
|
78
|
+
value: "Load More",
|
|
79
|
+
...PROP_STRING
|
|
80
|
+
}],
|
|
81
|
+
["orderby", PROP_STRING],
|
|
82
|
+
["paginationclass", PROP_STRING],
|
|
83
|
+
["pagesize", PROP_NUMBER],
|
|
84
|
+
["pulltorefresh", {
|
|
85
|
+
value: false,
|
|
86
|
+
...PROP_BOOLEAN
|
|
87
|
+
}],
|
|
88
|
+
["selectfirstitem", PROP_BOOLEAN],
|
|
89
|
+
["selectionlimit", PROP_NUMBER],
|
|
90
|
+
["show", {
|
|
91
|
+
value: true,
|
|
92
|
+
...PROP_BOOLEAN
|
|
93
|
+
}],
|
|
94
|
+
["showcount", PROP_BOOLEAN],
|
|
95
|
+
["showrecordcount", PROP_BOOLEAN],
|
|
96
|
+
["statehandler", {
|
|
97
|
+
value: "none",
|
|
98
|
+
...PROP_STRING
|
|
99
|
+
}],
|
|
100
|
+
["subheading", PROP_STRING],
|
|
101
|
+
["tabindex", {
|
|
102
|
+
value: 0,
|
|
103
|
+
...PROP_NUMBER
|
|
104
|
+
}],
|
|
105
|
+
["title", PROP_STRING],
|
|
106
|
+
["allowpagesizechange", {
|
|
107
|
+
value: false,
|
|
108
|
+
...PROP_BOOLEAN
|
|
109
|
+
}],
|
|
110
|
+
["pagesizeoptions", {
|
|
111
|
+
value: "5,10,20,50,100",
|
|
112
|
+
...PROP_STRING
|
|
113
|
+
}],
|
|
114
|
+
...AUTO_LAYOUT_PROPS
|
|
115
|
+
]));
|
|
63
116
|
};
|
|
64
|
-
|
|
65
117
|
const registerProps = () => {
|
|
66
|
-
|
|
67
|
-
...AUTO_LAYOUT_PROPS
|
|
68
|
-
]));
|
|
118
|
+
register("wm-listtemplate", new Map([...AUTO_LAYOUT_PROPS]));
|
|
69
119
|
};
|
|
70
|
-
|
|
71
|
-
/********* Will come to this later for listtemplate = container variant **********/
|
|
72
|
-
// const DEFAULT_CLS = 'app-container';
|
|
73
|
-
// const WIDGET_CONFIG = { widgetType: 'wm-listtemplate', hostClass: DEFAULT_CLS};
|
|
74
|
-
const WIDGET_CONFIG$1 = { widgetType: 'wm-listtemplate' };
|
|
120
|
+
const WIDGET_CONFIG$1 = { widgetType: "wm-listtemplate" };
|
|
75
121
|
let ListItemDirective = class ListItemDirective extends StylableComponent {
|
|
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
|
-
|
|
122
|
+
static {
|
|
123
|
+
this.initializeProps = registerProps();
|
|
124
|
+
}
|
|
125
|
+
onFocus() {
|
|
126
|
+
this.listComponent.lastSelectedItem = this;
|
|
127
|
+
}
|
|
128
|
+
get $index() {
|
|
129
|
+
return this.context.$index;
|
|
130
|
+
}
|
|
131
|
+
get $even() {
|
|
132
|
+
return this.context.even;
|
|
133
|
+
}
|
|
134
|
+
get $odd() {
|
|
135
|
+
return this.context.odd;
|
|
136
|
+
}
|
|
137
|
+
get $first() {
|
|
138
|
+
return this.context.first;
|
|
139
|
+
}
|
|
140
|
+
get $last() {
|
|
141
|
+
return this.context.last;
|
|
142
|
+
}
|
|
143
|
+
get currentItemWidgets() {
|
|
144
|
+
const componentElements = Array.from(this.nativeElement.querySelectorAll("[widget-id]"));
|
|
145
|
+
return Object.assign(this._currentItemWidgets, componentElements.reduce((result, comp) => {
|
|
146
|
+
result[comp.widget.name] = comp.widget;
|
|
147
|
+
return result;
|
|
148
|
+
}, {}));
|
|
149
|
+
}
|
|
150
|
+
set wmListItem(val) {
|
|
151
|
+
this.item = val;
|
|
152
|
+
}
|
|
153
|
+
constructor(inj, elRef, app, renderer, explicitContext) {
|
|
154
|
+
super(inj, WIDGET_CONFIG$1, explicitContext);
|
|
155
|
+
this.app = app;
|
|
156
|
+
this.renderer = renderer;
|
|
157
|
+
this.destroySub = new Subject();
|
|
158
|
+
this.destroy$ = this.destroySub.asObservable();
|
|
159
|
+
this.itemClass = "";
|
|
160
|
+
this._currentItemWidgets = {};
|
|
161
|
+
this.trackId = widgetIdGenerator.nextUid();
|
|
162
|
+
this.isActive = false;
|
|
163
|
+
this.disableItem = false;
|
|
164
|
+
this._viewParent = inject(ListComponent, { optional: true });
|
|
165
|
+
styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
|
|
166
|
+
this.viewContainerRef = inj.get(ViewContainerRef);
|
|
167
|
+
this.nativeElement = elRef.nativeElement;
|
|
168
|
+
this.listComponent = this._viewParent;
|
|
169
|
+
this.context = this.inj._lView[8];
|
|
170
|
+
this.itemClassWatcher(this.listComponent);
|
|
171
|
+
this.disableItemWatcher(this.listComponent);
|
|
172
|
+
this.itemAttrsHandler();
|
|
173
|
+
$(this.nativeElement).data("listItemContext", this);
|
|
174
|
+
}
|
|
175
|
+
itemAttrsHandler() {
|
|
176
|
+
const attrsMap = this.listComponent.itemAttrsMap;
|
|
177
|
+
if (!attrsMap) return;
|
|
178
|
+
Object.keys(attrsMap).forEach((key) => {
|
|
179
|
+
const value = attrsMap[key];
|
|
180
|
+
this.setProperty(key, value);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
registerWatch(expression, callback) {
|
|
184
|
+
this.destroy$.subscribe($watch(expression, this.listComponent.viewParent, this, callback));
|
|
185
|
+
}
|
|
186
|
+
itemClassWatcher(listComponent) {
|
|
187
|
+
if (listComponent.binditemclass) this.registerWatch(listComponent.binditemclass, (nv) => this.itemClass = nv || "");
|
|
188
|
+
else this.itemClass = listComponent.itemclass;
|
|
189
|
+
}
|
|
190
|
+
disableItemWatcher($list) {
|
|
191
|
+
if ($list.binddisableitem) this.registerWatch($list.binddisableitem, (nv) => this.disableItem = nv || false);
|
|
192
|
+
else this.disableItem = $list.disableitem || false;
|
|
193
|
+
}
|
|
194
|
+
setUpCUDHandlers() {
|
|
195
|
+
const $editItem = this.nativeElement.querySelector(".edit-list-item");
|
|
196
|
+
const $deleteItem = this.nativeElement.querySelector(".delete-list-item");
|
|
197
|
+
if ($editItem) {
|
|
198
|
+
this.boundEditHandler = (evt) => {
|
|
199
|
+
this.listComponent.update();
|
|
200
|
+
};
|
|
201
|
+
$editItem.addEventListener("click", this.boundEditHandler);
|
|
202
|
+
}
|
|
203
|
+
if ($deleteItem) {
|
|
204
|
+
this.boundDeleteHandler = (evt) => {
|
|
205
|
+
this.listComponent.delete();
|
|
206
|
+
};
|
|
207
|
+
$deleteItem.addEventListener("click", this.boundDeleteHandler);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
ngOnInit() {
|
|
211
|
+
super.ngOnInit();
|
|
212
|
+
if (this.listComponent.mouseEnterCB) {
|
|
213
|
+
this.boundMouseEnterHandler = ($event) => {
|
|
214
|
+
this.listComponent.invokeEventCallback("mouseenter", {
|
|
215
|
+
widget: this,
|
|
216
|
+
$event
|
|
217
|
+
});
|
|
218
|
+
};
|
|
219
|
+
this.nativeElement.addEventListener("mouseenter", this.boundMouseEnterHandler);
|
|
220
|
+
}
|
|
221
|
+
if (this.listComponent.mouseLeaveCB) {
|
|
222
|
+
this.boundMouseLeaveHandler = ($event) => {
|
|
223
|
+
this.listComponent.invokeEventCallback("mouseleave", {
|
|
224
|
+
widget: this,
|
|
225
|
+
$event
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
this.nativeElement.addEventListener("mouseleave", this.boundMouseLeaveHandler);
|
|
229
|
+
}
|
|
230
|
+
$(this.nativeElement).attr("listitemindex", this.$index);
|
|
231
|
+
}
|
|
232
|
+
ngAfterViewInit() {
|
|
233
|
+
super.ngAfterViewInit();
|
|
234
|
+
this.setUpCUDHandlers();
|
|
235
|
+
Array.from(this.nativeElement.querySelectorAll("[widget-id]")).forEach((component) => {
|
|
236
|
+
if (component.widget instanceof BaseFormComponent) {
|
|
237
|
+
if (!component.widget.$attrs.get("datavaluesource.bind")) component.widget.datavaluesource = this.listComponent["datasource"];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
ngOnDestroy() {
|
|
242
|
+
if (this.boundMouseEnterHandler && this.nativeElement) {
|
|
243
|
+
try {
|
|
244
|
+
this.nativeElement.removeEventListener("mouseenter", this.boundMouseEnterHandler);
|
|
245
|
+
} catch (e) {}
|
|
246
|
+
this.boundMouseEnterHandler = null;
|
|
247
|
+
}
|
|
248
|
+
if (this.boundMouseLeaveHandler && this.nativeElement) {
|
|
249
|
+
try {
|
|
250
|
+
this.nativeElement.removeEventListener("mouseleave", this.boundMouseLeaveHandler);
|
|
251
|
+
} catch (e) {}
|
|
252
|
+
this.boundMouseLeaveHandler = null;
|
|
253
|
+
}
|
|
254
|
+
if (this.nativeElement) {
|
|
255
|
+
const $editItem = this.nativeElement.querySelector(".edit-list-item");
|
|
256
|
+
if ($editItem && this.boundEditHandler) {
|
|
257
|
+
try {
|
|
258
|
+
$editItem.removeEventListener("click", this.boundEditHandler);
|
|
259
|
+
} catch (e) {}
|
|
260
|
+
this.boundEditHandler = null;
|
|
261
|
+
}
|
|
262
|
+
const $deleteItem = this.nativeElement.querySelector(".delete-list-item");
|
|
263
|
+
if ($deleteItem && this.boundDeleteHandler) {
|
|
264
|
+
try {
|
|
265
|
+
$deleteItem.removeEventListener("click", this.boundDeleteHandler);
|
|
266
|
+
} catch (e) {}
|
|
267
|
+
this.boundDeleteHandler = null;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
if (this.context) {
|
|
271
|
+
Object.keys(this.context).forEach((key) => {
|
|
272
|
+
delete this.context[key];
|
|
273
|
+
});
|
|
274
|
+
this.context = null;
|
|
275
|
+
}
|
|
276
|
+
if (this.viewContainerRef) this.viewContainerRef = null;
|
|
277
|
+
if (this.destroySub) {
|
|
278
|
+
try {
|
|
279
|
+
if (!this.destroySub.closed) {
|
|
280
|
+
this.destroySub.next(null);
|
|
281
|
+
this.destroySub.complete();
|
|
282
|
+
}
|
|
283
|
+
} catch (e) {}
|
|
284
|
+
this.destroySub = null;
|
|
285
|
+
}
|
|
286
|
+
super.ngOnDestroy();
|
|
287
|
+
}
|
|
288
|
+
static {
|
|
289
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
290
|
+
minVersion: "12.0.0",
|
|
291
|
+
version: "22.2.1",
|
|
292
|
+
ngImport: i0,
|
|
293
|
+
type: ListItemDirective,
|
|
294
|
+
deps: [
|
|
295
|
+
{ token: i0.Injector },
|
|
296
|
+
{ token: i0.ElementRef },
|
|
297
|
+
{ token: i1$1.App },
|
|
298
|
+
{ token: i0.Renderer2 },
|
|
299
|
+
{
|
|
300
|
+
token: "EXPLICIT_CONTEXT",
|
|
301
|
+
optional: true
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
static {
|
|
308
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
309
|
+
minVersion: "14.0.0",
|
|
310
|
+
version: "22.2.1",
|
|
311
|
+
type: ListItemDirective,
|
|
312
|
+
isStandalone: true,
|
|
313
|
+
selector: "[wmListItem]",
|
|
314
|
+
inputs: { wmListItem: "wmListItem" },
|
|
315
|
+
host: {
|
|
316
|
+
listeners: { "focus": "onFocus()" },
|
|
317
|
+
properties: {
|
|
318
|
+
"class.active": "this.isActive",
|
|
319
|
+
"class.disable-item": "this.disableItem"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
exportAs: ["listItemRef"],
|
|
323
|
+
usesInheritance: true,
|
|
324
|
+
ngImport: i0
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
ListItemDirective = __decorate([AutoLayout({ bindParent: "listComponent.viewParent" }), __metadata("design:paramtypes", [
|
|
329
|
+
Injector,
|
|
330
|
+
ElementRef,
|
|
331
|
+
App,
|
|
332
|
+
Renderer2,
|
|
333
|
+
Object
|
|
334
|
+
])], ListItemDirective);
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
336
|
+
minVersion: "12.0.0",
|
|
337
|
+
version: "22.2.1",
|
|
338
|
+
ngImport: i0,
|
|
339
|
+
type: ListItemDirective,
|
|
340
|
+
decorators: [{
|
|
341
|
+
type: Directive,
|
|
342
|
+
args: [{
|
|
343
|
+
standalone: true,
|
|
344
|
+
selector: "[wmListItem]",
|
|
345
|
+
exportAs: "listItemRef"
|
|
346
|
+
}]
|
|
347
|
+
}],
|
|
348
|
+
ctorParameters: () => [
|
|
349
|
+
{ type: i0.Injector },
|
|
350
|
+
{ type: i0.ElementRef },
|
|
351
|
+
{ type: i1$1.App },
|
|
352
|
+
{ type: i0.Renderer2 },
|
|
353
|
+
{
|
|
354
|
+
type: void 0,
|
|
355
|
+
decorators: [{
|
|
356
|
+
type: Inject,
|
|
357
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
358
|
+
}, { type: Optional }]
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
propDecorators: {
|
|
362
|
+
isActive: [{
|
|
363
|
+
type: HostBinding,
|
|
364
|
+
args: ["class.active"]
|
|
365
|
+
}],
|
|
366
|
+
disableItem: [{
|
|
367
|
+
type: HostBinding,
|
|
368
|
+
args: ["class.disable-item"]
|
|
369
|
+
}],
|
|
370
|
+
onFocus: [{
|
|
371
|
+
type: HostListener,
|
|
372
|
+
args: ["focus"]
|
|
373
|
+
}],
|
|
374
|
+
wmListItem: [{ type: Input }]
|
|
375
|
+
}
|
|
376
|
+
});
|
|
377
|
+
const WIDGET_CONFIG = {
|
|
378
|
+
widgetType: "wm-list",
|
|
379
|
+
hostClass: "app-livelist app-panel"
|
|
290
380
|
};
|
|
291
|
-
ListItemDirective = __decorate([
|
|
292
|
-
AutoLayout({ bindParent: 'listComponent.viewParent' }),
|
|
293
|
-
__metadata("design:paramtypes", [Injector, ElementRef, App, Renderer2, Object])
|
|
294
|
-
], ListItemDirective);
|
|
295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ListItemDirective, decorators: [{
|
|
296
|
-
type: Directive,
|
|
297
|
-
args: [{
|
|
298
|
-
standalone: true,
|
|
299
|
-
selector: '[wmListItem]',
|
|
300
|
-
exportAs: 'listItemRef'
|
|
301
|
-
}]
|
|
302
|
-
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i2.App }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
|
303
|
-
type: Inject,
|
|
304
|
-
args: ['EXPLICIT_CONTEXT']
|
|
305
|
-
}, {
|
|
306
|
-
type: Optional
|
|
307
|
-
}] }], propDecorators: { isActive: [{
|
|
308
|
-
type: HostBinding,
|
|
309
|
-
args: ['class.active']
|
|
310
|
-
}], disableItem: [{
|
|
311
|
-
type: HostBinding,
|
|
312
|
-
args: ['class.disable-item']
|
|
313
|
-
}], onFocus: [{
|
|
314
|
-
type: HostListener,
|
|
315
|
-
args: ['focus']
|
|
316
|
-
}], wmListItem: [{
|
|
317
|
-
type: Input
|
|
318
|
-
}] } });
|
|
319
|
-
|
|
320
|
-
const DEFAULT_CLS = 'app-livelist app-panel';
|
|
321
|
-
const WIDGET_CONFIG = { widgetType: 'wm-list', hostClass: DEFAULT_CLS };
|
|
322
381
|
let ListComponent = class ListComponent extends StylableComponent {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
}
|
|
1330
|
-
});
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
const selectedItems = isArray(this.selecteditem) ? this.selecteditem : [this.selecteditem];
|
|
1335
|
-
this.firstSelectedItem = this.lastSelectedItem = null;
|
|
1336
|
-
// don't select first item if multi-select is enabled and at least item is already selected in the list.
|
|
1337
|
-
// don't select first item if state information has selected items
|
|
1338
|
-
if (listItems.length && this.selectfirstitem && !(this._items.length && this.multiselect) && this._selectedItemsExist !== false) {
|
|
1339
|
-
const $firstItem = listItems.first;
|
|
1340
|
-
if (!$firstItem.disableItem &&
|
|
1341
|
-
this.isDataChanged &&
|
|
1342
|
-
// "infinite scroll" or "load on demand" is enabled and at least one item is selected then dont alter the selected list items.
|
|
1343
|
-
!((this.infScroll || this.onDemandLoad) &&
|
|
1344
|
-
this._items.length)) {
|
|
1345
|
-
this.clearSelectedItems();
|
|
1346
|
-
this.firstSelectedItem = this.lastSelectedItem = $firstItem;
|
|
1347
|
-
// selecting the first record
|
|
1348
|
-
this.selectItem(0);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
else {
|
|
1352
|
-
this.deselectListItems();
|
|
1353
|
-
selectedItems.forEach(selecteditem => {
|
|
1354
|
-
const listItem = this.getListItemByModel(selecteditem);
|
|
1355
|
-
if (listItem) {
|
|
1356
|
-
listItem.isActive = true;
|
|
1357
|
-
this.lastSelectedItem = listItem;
|
|
1358
|
-
// focus the active element
|
|
1359
|
-
listItem.nativeElement.focus();
|
|
1360
|
-
}
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
if (this.fieldDefs.length && this.infScroll) {
|
|
1364
|
-
// In case of mobile app when modal exists, and list items height is greater than the modal content provide ccontainer a scrollable height
|
|
1365
|
-
const modalBody = this.$element.closest('.modal-body');
|
|
1366
|
-
const listHt = this.$element.find('ul').height();
|
|
1367
|
-
const modalHt = window.innerHeight - 140;
|
|
1368
|
-
if (isMobile() && modalBody.length && listHt > modalHt) {
|
|
1369
|
-
this.$element.css('height', modalHt + 'px');
|
|
1370
|
-
}
|
|
1371
|
-
setTimeout(() => this.paginationService.bindScrollEvt(this, '> ul', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME), 500);
|
|
1372
|
-
// this.paginationService.bindScrollEvt(this, '> ul', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);
|
|
1373
|
-
}
|
|
1374
|
-
this.isDataChanged = false;
|
|
1375
|
-
}
|
|
1376
|
-
setupHandlers() {
|
|
1377
|
-
this.listItemsChangesSubscription = this.listItems.changes.subscribe(listItems => {
|
|
1378
|
-
this.onListRender(listItems);
|
|
1379
|
-
this.cdRef.detectChanges();
|
|
1380
|
-
});
|
|
1381
|
-
// handle click event in capturing phase.
|
|
1382
|
-
this.boundClickHandler = ($event) => {
|
|
1383
|
-
let target = $($event.target).closest('.app-list-item');
|
|
1384
|
-
// Recursively find the current list item
|
|
1385
|
-
while (target.get(0) && (target.closest('ul.app-livelist-container').get(0) !== $event.currentTarget)) {
|
|
1386
|
-
target = target.parent().closest('.app-list-item');
|
|
1387
|
-
}
|
|
1388
|
-
this.triggerListItemSelection(target, $event);
|
|
1389
|
-
};
|
|
1390
|
-
const ulElement = this.nativeElement.querySelector('ul.app-livelist-container');
|
|
1391
|
-
if (ulElement) {
|
|
1392
|
-
ulElement.addEventListener('click', this.boundClickHandler, true);
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
// Triggers on drag start while reordering.
|
|
1396
|
-
onReorderStart(evt, ui) {
|
|
1397
|
-
ui.placeholder.height(ui.item.height());
|
|
1398
|
-
this.$ulEle.data('oldIndex', ui.item.index());
|
|
1399
|
-
}
|
|
1400
|
-
// Triggers during sorting
|
|
1401
|
-
onSort(evt, ui) {
|
|
1402
|
-
// In case of infinite scroll, when the element doesn't have scroll enabled
|
|
1403
|
-
// on dragging the element to last item's position manually trigger loading of next items
|
|
1404
|
-
if (this.infScroll) {
|
|
1405
|
-
const lastItemOffset = this.$ulEle.find(`[listitemindex=${this.fieldDefs.length - 1}]`).offset();
|
|
1406
|
-
if (lastItemOffset && lastItemOffset.top < ui.offset.top) {
|
|
1407
|
-
this.paginationService.bindScrollEvt(this, '> ul', DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);
|
|
1408
|
-
this.debouncedFetchNextDatasetOnScroll();
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
// Triggers after the sorting.
|
|
1413
|
-
onUpdate(evt, ui, presentIndex) {
|
|
1414
|
-
const data = this.fieldDefs;
|
|
1415
|
-
// If ui is not present then it is called from drag and drop using keyboard
|
|
1416
|
-
const newIndex = ui === undefined ? presentIndex : ui.item.index();
|
|
1417
|
-
const oldIndex = this.$ulEle.data('oldIndex');
|
|
1418
|
-
const minIndex = min([newIndex, oldIndex]);
|
|
1419
|
-
const maxIndex = max([newIndex, oldIndex]);
|
|
1420
|
-
const draggedItem = pullAt(data, oldIndex)[0];
|
|
1421
|
-
// Modify the data list only if we find a draggedItem
|
|
1422
|
-
if (draggedItem) {
|
|
1423
|
-
if (this.getConfiguredState() !== 'none') {
|
|
1424
|
-
this.statePersistence.removeWidgetState(this, 'selectedItem');
|
|
1425
|
-
}
|
|
1426
|
-
this.reorderProps.minIndex = min([minIndex, this.reorderProps.minIndex]);
|
|
1427
|
-
this.reorderProps.maxIndex = max([maxIndex, this.reorderProps.maxIndex]);
|
|
1428
|
-
data.splice(newIndex, 0, draggedItem);
|
|
1429
|
-
this.cdRef.markForCheck();
|
|
1430
|
-
this.cdRef.detectChanges();
|
|
1431
|
-
const $changedItem = {
|
|
1432
|
-
oldIndex: oldIndex,
|
|
1433
|
-
newIndex: newIndex,
|
|
1434
|
-
item: data[newIndex]
|
|
1435
|
-
};
|
|
1436
|
-
this.invokeEventCallback('reorder', { $event: evt, $data: data, $changedItem });
|
|
1437
|
-
this.$ulEle.removeData('oldIndex');
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
// configures reordering the list items.
|
|
1441
|
-
configureDnD() {
|
|
1442
|
-
let appendTo;
|
|
1443
|
-
const modalEl = $(document).find('.modal');
|
|
1444
|
-
if (this.getAttr('height')) { // when height is applied to the list, append should be the ul's parent as scroll is applied to the parent
|
|
1445
|
-
appendTo = 'parent';
|
|
1446
|
-
}
|
|
1447
|
-
else if (modalEl.length) { // In case of dialog, appendTo should be the modal ele
|
|
1448
|
-
appendTo = modalEl[modalEl.length - 1];
|
|
1449
|
-
}
|
|
1450
|
-
else { // As default append to should be body
|
|
1451
|
-
appendTo = 'body';
|
|
1452
|
-
}
|
|
1453
|
-
const options = {
|
|
1454
|
-
appendTo: appendTo,
|
|
1455
|
-
};
|
|
1456
|
-
const $el = $(this.nativeElement);
|
|
1457
|
-
this.$ulEle = $el.find('.app-livelist-container');
|
|
1458
|
-
configureDnD(this.$ulEle, options, this.onReorderStart.bind(this), this.onUpdate.bind(this), this.onSort.bind(this));
|
|
1459
|
-
this.$ulEle.droppable({ 'accept': '.app-list-item' });
|
|
1460
|
-
}
|
|
1461
|
-
// returns true if the selection limit is reached.
|
|
1462
|
-
checkSelectionLimit(count) {
|
|
1463
|
-
return (!this.selectionlimit || count < this.selectionlimit);
|
|
1464
|
-
}
|
|
1465
|
-
// returns listitem reference by index value.
|
|
1466
|
-
getListItemByIndex(index) {
|
|
1467
|
-
return this.listItems.toArray()[index];
|
|
1468
|
-
}
|
|
1469
|
-
/**
|
|
1470
|
-
* return index of an (listItemDirective) in the listItem
|
|
1471
|
-
* @param {ListItemDirective} item
|
|
1472
|
-
* @returns {number}
|
|
1473
|
-
*/
|
|
1474
|
-
getListItemIndex(item) {
|
|
1475
|
-
return this.listItems.toArray().indexOf(item);
|
|
1476
|
-
}
|
|
1477
|
-
/**
|
|
1478
|
-
* Returns ListItem Reference based on the input provided.
|
|
1479
|
-
* @param val: index | model of the list item.
|
|
1480
|
-
* @returns {ListItemDirective}
|
|
1481
|
-
*/
|
|
1482
|
-
getItemRefByIndexOrModel(val) {
|
|
1483
|
-
let listItem;
|
|
1484
|
-
if (isNumber(val)) {
|
|
1485
|
-
listItem = this.getListItemByIndex(val);
|
|
1486
|
-
}
|
|
1487
|
-
else {
|
|
1488
|
-
listItem = this.getListItemByModel(val);
|
|
1489
|
-
}
|
|
1490
|
-
return listItem;
|
|
1491
|
-
}
|
|
1492
|
-
beforePaginationChange($event, $index) {
|
|
1493
|
-
this.invokeEventCallback('paginationchange', { $event, $index });
|
|
1494
|
-
}
|
|
1495
|
-
trackByFn($index) {
|
|
1496
|
-
return $index; // Return a unique identifier for each item
|
|
1497
|
-
}
|
|
1498
|
-
// Invoke the datasource variable by default when pulltorefresh event is not specified.
|
|
1499
|
-
subscribeToPullToRefresh() {
|
|
1500
|
-
this._listenerDestroyers.push(this.app.subscribe('pulltorefresh', () => {
|
|
1501
|
-
if (this.datasource?.listRecords) {
|
|
1502
|
-
this.datasource.listRecords();
|
|
1503
|
-
}
|
|
1504
|
-
}));
|
|
1505
|
-
}
|
|
1506
|
-
setUpCUDHandlers() {
|
|
1507
|
-
const $addItem = document.getElementsByClassName("add-list-item")[0];
|
|
1508
|
-
if ($addItem) {
|
|
1509
|
-
// MEMORY LEAK FIX: Store bound handler for cleanup
|
|
1510
|
-
this.boundAddItemHandler = (evt) => {
|
|
1511
|
-
this.create();
|
|
1512
|
-
};
|
|
1513
|
-
// Triggered on click of add action
|
|
1514
|
-
$addItem.addEventListener('click', this.boundAddItemHandler);
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
_readItemAttrsFromHost() {
|
|
1518
|
-
const raw = this.nativeElement.getAttribute("itemattrs");
|
|
1519
|
-
if (!raw) {
|
|
1520
|
-
this.itemAttrsMap = {};
|
|
1521
|
-
return;
|
|
1522
|
-
}
|
|
1523
|
-
try {
|
|
1524
|
-
this.itemAttrsMap = JSON.parse(raw);
|
|
1525
|
-
}
|
|
1526
|
-
catch (e) {
|
|
1527
|
-
console.warn("list.component: failed to parse itemattrs JSON", e, raw);
|
|
1528
|
-
this.itemAttrsMap = {};
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ListComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i1.ToDatePipe }, { token: i2.App }, { token: i2.AppDefaults }, { token: i0.NgZone }, { token: 'itemclass.bind', attribute: true }, { token: 'disableitem.bind', attribute: true }, { token: 'dataset.bind', attribute: true }, { token: 'datasource.bind', attribute: true }, { token: 'mouseenter.event', attribute: true }, { token: 'mouseleave.event', attribute: true }, { token: i2.StatePersistence }, { token: i2.PaginationService }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1532
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: ListComponent, isStandalone: true, selector: "div[wmList]", providers: [
|
|
1533
|
-
provideAsWidgetRef(ListComponent)
|
|
1534
|
-
], queries: [{ propertyName: "listTemplate", first: true, predicate: ["listTemplate"], descendants: true }, { propertyName: "listLeftActionTemplate", first: true, predicate: ["listLeftActionTemplate"], descendants: true }, { propertyName: "listRightActionTemplate", first: true, predicate: ["listRightActionTemplate"], descendants: true }, { propertyName: "btnComponents", predicate: ButtonComponent }], viewQueries: [{ propertyName: "dataNavigator", first: true, predicate: PaginationComponent, descendants: true }, { propertyName: "listItems", predicate: ListItemDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (title || subheading || iconclass || iconurl) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" [defaultClasses]=\"'panel-icon'\" alt=\"List icon\"></wm-app-icon>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n </h3>\n </div>\n}\n\n@if (navigation === 'Inline' && !noDataFound) {\n <div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\" aria-label=\"Page navigation\">\n <ul class=\"pager\">\n <li class=\"previous\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisablePrevious : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\">\n <i class=\"wi wi-chevron-left\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Previous page {{dataNavigator.isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n </div>\n}\n@if (navigation === 'Inline' && !noDataFound) {\n <div aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\"> {{'Page ' + dataNavigator.dn.currentPage + ' of ' + dataNavigator.pageCount }}</div>\n}\n\n<div>\n @if (enablereorder) {\n <div id={{titleId}} class=\"sr-only\">\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n }\n\n @if (listItems && enablereorder && currentIndex) {\n <div aria-live=\"assertive\" class=\"sr-only\" >\n {{ariaText + currentIndex + ' of ' + listItems.length}}\n </div>\n }\n</div>\n\n<ul [attr.tabindex]=\"tabindex\" class=\"list-group app-livelist-container clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}} {{listclass}}\" role=\"list\"\n [class.list-group-autolayout]=\"hasAutolayout\"\n (keydown.enter)=\"handleKeyDown($event, 'select')\"\n\n (keydown.space)=\"handleKeyDown($event, 'space')\"\n\n (keydown.arrowup)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowdown)=\"handleKeyDown($event, 'focusNext')\"\n (keydown.arrowleft)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowright)=\"handleKeyDown($event, 'focusNext')\"\n\n (keydown.shift.arrowup)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowdown)=\"handleKeyDown($event, 'selectNext')\"\n (keydown.shift.arrowleft)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowright)=\"handleKeyDown($event, 'selectNext')\"\n [hidden]=\"noDataFound && !variableInflight\"\n >\n @if (!groupby) {\n @for (item of fieldDefs; track item) {\n <li class=\"app-list-item {{direction === 'horizontal' ? '' : itemsPerRowClass}}\" [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\"\n #listItemRef=\"listItemRef\"\n [attr.tabindex]=\"tabindex\"\n role=\"listitem\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('falt_' + listItemRef.trackId, {item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n }\n } @else {\n @for (groupObj of groupedData; track groupObj; let groupIndex = $index) {\n <li class=\"app-list-item-group clearfix\">\n <ul [attr.tabindex]=\"tabindex\" class=\"list-group item-group\" [ngClass]=\"listclass\" [class.list-group-autolayout]=\"hasAutolayout\">\n <li class=\"app-list-item-header list-item list-group-header\" (click)=\"handleHeaderClick($event)\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4>{{groupObj.key}}\n <div class=\"header-action\">\n @if (collapsible) {\n <i class=\"app-icon wi action wi-chevron-up\"></i>\n }\n @if (showcount) {\n <span class=\"label label-default\">{{groupObj.data.length}}</span>\n }\n </div>\n </h4>\n </li>\n <li class=\"list-group-container\">\n <ul class=\"list-group clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}}\" [class.list-group-autolayout]=\"hasAutolayout\">\n @for (item of groupObj.data; track trackByFn($index, item)) {\n <li [attr.tabindex]=\"tabindex\"\n class=\"app-list-item group-list-item {{itemsPerRowClass}}\"\n [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\" #listItemRef=\"listItemRef\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('group_' + listItemRef.trackId, {item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n }\n </ul>\n </li>\n </ul>\n </li>\n }\n }\n <ng-container [ngTemplateOutlet]=\"listLeftActionTemplate\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"listRightActionTemplate\"></ng-container>\n</ul>\n\n@if (noDataFound && !variableInflight) {\n <div class=\"no-data-msg\" [textContent]=\"nodatamessage\"></div>\n}\n\n@if (variableInflight && !pulltorefresh) {\n <div class=\"loading-data-msg\">\n <span>\n <wm-app-icon [iconclass]=\"loadingicon\" [iconurl]=\"loadingiconurl\" [defaultClasses]=\"'panel-icon'\" alt=\"loading icon\"></wm-app-icon>\n <span class=\"sr-only\">Loading</span>\n <span class=\"loading-text\" [textContent]=\"loadingdatamsg\"></span>\n </span>\n </div>\n}\n\n@if (navigation === 'Inline' && !noDataFound) {\n <div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <ul class=\"pager\">\n <li class=\"next\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisableNext : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('next', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <i class=\"wi wi-chevron-right\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Next page {{dataNavigator.isDisableNext ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n </div>\n}\n\n@if (navigation !== 'None') {\n <div class=\"panel-footer\" [hidden]=\"!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator?.dataSize <= pagesize && !allowpagesizechange) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)\">\n <nav wmPagination\n navigationalign.bind=\"navigationalign\"\n navigation.bind=\"navControls\"\n showrecordcount.bind=\"showrecordcount\"\n maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\"\n directionlinks.bind=\"directionlinks\"\n show.bind=\"!onDemandLoad\"\n paginationchange.event=\"beforePaginationChange($event, $index)\"\n ></nav>\n @if (onDemandLoad) {\n <a href=\"javascript:void(0);\"\n (click)=\"dataNavigator.navigatePage('next', $event)\"\n class=\"app-button btn btn-block\"\n [ngClass]=\"paginationclass\"\n [textContent]=\"ondemandmessage\"\n ></a>\n }\n </div>\n}\n\n<!--This template will be displayed when groupby is specified-->\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TextContentDirective, selector: "[textContent]", inputs: ["textContent"] }, { kind: "component", type: PaginationComponent, selector: "[wmPagination]", outputs: ["resultEmitter", "maxResultsEmitter"] }, { kind: "directive", type: ListItemDirective, selector: "[wmListItem]", inputs: ["wmListItem"], exportAs: ["listItemRef"] }, { kind: "component", type: WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }] }); }
|
|
382
|
+
static {
|
|
383
|
+
this.initializeProps = registerProps$1();
|
|
384
|
+
}
|
|
385
|
+
constructor(inj, cdRef, datePipe, app, appDefaults, ngZone, binditemclass, binddisableitem, binddataset, binddatasource, mouseEnterCB, mouseLeaveCB, statePersistence, paginationService, explicitContext) {
|
|
386
|
+
let resolveFn = noop;
|
|
387
|
+
const propsInitPromise = new Promise((res) => resolveFn = res);
|
|
388
|
+
super(inj, WIDGET_CONFIG, explicitContext, propsInitPromise);
|
|
389
|
+
this.allowpagesizechange = false;
|
|
390
|
+
this.itemAttrsMap = {};
|
|
391
|
+
this.hasAutolayout = false;
|
|
392
|
+
this.propsInitPromise = propsInitPromise;
|
|
393
|
+
this.promiseResolverFn = resolveFn;
|
|
394
|
+
styler(this.nativeElement, this, APPLY_STYLES_TYPE.SHELL);
|
|
395
|
+
this.cdRef = cdRef;
|
|
396
|
+
this.ngZone = ngZone;
|
|
397
|
+
this.datePipe = datePipe;
|
|
398
|
+
this.statePersistence = statePersistence;
|
|
399
|
+
this.paginationService = paginationService;
|
|
400
|
+
this._pageLoad = true;
|
|
401
|
+
this.binditemclass = binditemclass;
|
|
402
|
+
this.binddisableitem = binddisableitem;
|
|
403
|
+
this.binddataset = binddataset;
|
|
404
|
+
this.mouseEnterCB = mouseEnterCB;
|
|
405
|
+
this.mouseLeaveCB = mouseLeaveCB;
|
|
406
|
+
this.binddatasource = binddatasource;
|
|
407
|
+
this.app = app;
|
|
408
|
+
this.appDefaults = appDefaults;
|
|
409
|
+
this.variableInflight = false;
|
|
410
|
+
this.noDataFound = !binddataset;
|
|
411
|
+
this.titleId = "wmlist-" + generateGUId();
|
|
412
|
+
this._listenerDestroyers = [
|
|
413
|
+
this.app.subscribe("check-state-persistence-options", (options) => {
|
|
414
|
+
let dataSourceName = get(this.datasource, "name");
|
|
415
|
+
if (!dataSourceName) dataSourceName = extractDataSourceName(this.binddatasource);
|
|
416
|
+
if (get(options, "variable.name") !== dataSourceName) return;
|
|
417
|
+
this.handleStateParams(options);
|
|
418
|
+
}),
|
|
419
|
+
this.app.subscribe("toggle-variable-state", this.handleLoading.bind(this)),
|
|
420
|
+
this.app.subscribe("setup-cud-listener", (param) => {
|
|
421
|
+
if (this.nativeElement.getAttribute("name") !== param) return;
|
|
422
|
+
this._isDependent = true;
|
|
423
|
+
})
|
|
424
|
+
];
|
|
425
|
+
}
|
|
426
|
+
get selecteditem() {
|
|
427
|
+
if (this.multiselect) return getClonedObject(this._items);
|
|
428
|
+
if (isEmpty(this._items)) return {};
|
|
429
|
+
return getClonedObject(this._items[0]);
|
|
430
|
+
}
|
|
431
|
+
set selecteditem(items) {
|
|
432
|
+
this._items.length = 0;
|
|
433
|
+
this.deselectListItems();
|
|
434
|
+
if (isArray(items)) items.forEach((item) => this.selectItem(item));
|
|
435
|
+
else this.selectItem(items);
|
|
436
|
+
$appDigest();
|
|
437
|
+
}
|
|
438
|
+
getWidgets(widgteName, index) {
|
|
439
|
+
let $target;
|
|
440
|
+
const retVal = [];
|
|
441
|
+
if (!widgteName) return;
|
|
442
|
+
if (!isDefined(index)) {
|
|
443
|
+
forEach(this.listItems.toArray(), (el) => {
|
|
444
|
+
$target = get(el.currentItemWidgets, widgteName);
|
|
445
|
+
if ($target) retVal.push($target);
|
|
446
|
+
});
|
|
447
|
+
return retVal;
|
|
448
|
+
}
|
|
449
|
+
index = +index || 0;
|
|
450
|
+
$target = get(this.listItems.toArray(), index);
|
|
451
|
+
if ($target) return [get($target.currentItemWidgets, widgteName)];
|
|
452
|
+
}
|
|
453
|
+
getItem(index) {
|
|
454
|
+
return this.getListItemByIndex(index);
|
|
455
|
+
}
|
|
456
|
+
getIndex(item) {
|
|
457
|
+
if (item instanceof ListItemDirective) return this.getListItemIndex(item);
|
|
458
|
+
else if (item) return this.fieldDefs.findIndex((obj) => isEqual(obj, item));
|
|
459
|
+
}
|
|
460
|
+
getUpdatedPageSize() {
|
|
461
|
+
return this.updatedPageSize;
|
|
462
|
+
}
|
|
463
|
+
create() {
|
|
464
|
+
if (this._isDependent) this.triggerWMEvent("insert");
|
|
465
|
+
}
|
|
466
|
+
editRow(item) {
|
|
467
|
+
if (this._isDependent) {
|
|
468
|
+
let listItem;
|
|
469
|
+
if (item) listItem = this.getItemRefByIndexOrModel(item).item;
|
|
470
|
+
this.triggerWMEvent("update", listItem);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
update(item) {
|
|
474
|
+
this.editRow(item);
|
|
475
|
+
}
|
|
476
|
+
deleteRow(item) {
|
|
477
|
+
if (this._isDependent) {
|
|
478
|
+
let listItem;
|
|
479
|
+
if (item) listItem = this.getItemRefByIndexOrModel(item).item;
|
|
480
|
+
this.triggerWMEvent("delete", listItem);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
delete(item) {
|
|
484
|
+
this.deleteRow(item);
|
|
485
|
+
}
|
|
486
|
+
handleLoading(data) {
|
|
487
|
+
const dataSource = this.datasource;
|
|
488
|
+
if (dataSource?.execute(DataSource.Operation.IS_API_AWARE) && isDataSourceEqual(data.variable, dataSource)) this.ngZone.run(() => {
|
|
489
|
+
this.handleStateParams(data);
|
|
490
|
+
this.variableInflight = data.active;
|
|
491
|
+
const totalEle = data.data?.pagination?.totalElements;
|
|
492
|
+
if (!isUndefined(totalEle)) this.noDataFound = totalEle === 0 ? true : false;
|
|
493
|
+
else this.noDataFound = isEmpty(data.data?.data);
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
triggerListItemSelection($el, $event) {
|
|
497
|
+
if ($el?.[0]) {
|
|
498
|
+
const listItemContext = $el.data("listItemContext");
|
|
499
|
+
if (listItemContext.listComponent === this) this.onItemClick($event, listItemContext);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
execute(operation, options) {
|
|
503
|
+
if ([
|
|
504
|
+
DataSource.Operation.IS_API_AWARE,
|
|
505
|
+
DataSource.Operation.IS_PAGEABLE,
|
|
506
|
+
DataSource.Operation.SUPPORTS_SERVER_FILTER
|
|
507
|
+
].includes(operation)) return false;
|
|
508
|
+
return this.datasource.execute(operation, options);
|
|
509
|
+
}
|
|
510
|
+
handleKeyDown($event, action) {
|
|
511
|
+
$event.stopPropagation();
|
|
512
|
+
if ($event.keyCode !== 13 && $event.keyCode !== 9 && !(($event.target.classList.contains("form-control") || $event.target.classList.contains("note-editable")) && $event.keyCode === 32)) $event.preventDefault();
|
|
513
|
+
const listItems = this.listItems;
|
|
514
|
+
let presentIndex = this.getListItemIndex(this.lastSelectedItem);
|
|
515
|
+
if (this.multiselect) {
|
|
516
|
+
const firstIndex = this.getListItemIndex(this.firstSelectedItem);
|
|
517
|
+
const selectCount = isArray(this.selecteditem) ? this.selecteditem.length : isObject(this.selecteditem) ? 1 : 0;
|
|
518
|
+
if (action === "selectPrev") {
|
|
519
|
+
if (presentIndex > 0) {
|
|
520
|
+
if (presentIndex <= firstIndex && this.checkSelectionLimit(selectCount)) {
|
|
521
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex - 1);
|
|
522
|
+
this.toggleListItemSelection(this.lastSelectedItem);
|
|
523
|
+
} else if (presentIndex > firstIndex) {
|
|
524
|
+
this.toggleListItemSelection(this.getListItemByIndex(presentIndex));
|
|
525
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex - 1);
|
|
526
|
+
} else this.invokeEventCallback("selectionlimitexceed", { $event });
|
|
527
|
+
}
|
|
528
|
+
} else if (action === "selectNext") {
|
|
529
|
+
if (presentIndex < listItems.length - 1) {
|
|
530
|
+
if (presentIndex >= firstIndex && this.checkSelectionLimit(selectCount)) {
|
|
531
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex + 1);
|
|
532
|
+
this.toggleListItemSelection(this.lastSelectedItem);
|
|
533
|
+
} else if (presentIndex < firstIndex) {
|
|
534
|
+
this.toggleListItemSelection(this.getListItemByIndex(presentIndex));
|
|
535
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex + 1);
|
|
536
|
+
} else this.invokeEventCallback("selectionlimitexceed", { $event });
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
if (action === "focusPrev") {
|
|
541
|
+
if (this.isListElementMovable) {
|
|
542
|
+
presentIndex = presentIndex <= 0 ? 0 : presentIndex;
|
|
543
|
+
if (presentIndex === 0) return;
|
|
544
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
545
|
+
this.getListItemByIndex(presentIndex - 1).nativeElement.before(this.lastSelectedItem.nativeElement);
|
|
546
|
+
this.lastSelectedItem.nativeElement.focus();
|
|
547
|
+
this.statePersistence.removeWidgetState(this, "selectedItem");
|
|
548
|
+
const arr = this.listItems.toArray();
|
|
549
|
+
[arr[presentIndex - 1], arr[presentIndex]] = [arr[presentIndex], arr[presentIndex - 1]];
|
|
550
|
+
this.listItems.reset(arr);
|
|
551
|
+
this.currentIndex = presentIndex;
|
|
552
|
+
this.ariaText = "selected ";
|
|
553
|
+
} else {
|
|
554
|
+
presentIndex = presentIndex <= 0 ? 0 : presentIndex - 1;
|
|
555
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
556
|
+
this.lastSelectedItem.nativeElement.focus();
|
|
557
|
+
this.currentIndex = presentIndex + 1;
|
|
558
|
+
this.ariaText = "selected ";
|
|
559
|
+
}
|
|
560
|
+
} else if (action === "focusNext") {
|
|
561
|
+
if (this.isListElementMovable) {
|
|
562
|
+
presentIndex = presentIndex < listItems.length - 1 ? presentIndex : listItems.length - 1;
|
|
563
|
+
if (presentIndex === this.listItems.length - 1) return;
|
|
564
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
565
|
+
this.getListItemByIndex(presentIndex + 1).nativeElement.after(this.lastSelectedItem.nativeElement);
|
|
566
|
+
this.lastSelectedItem.nativeElement.focus();
|
|
567
|
+
this.statePersistence.removeWidgetState(this, "selectedItem");
|
|
568
|
+
const arr = this.listItems.toArray();
|
|
569
|
+
[arr[presentIndex], arr[presentIndex + 1]] = [arr[presentIndex + 1], arr[presentIndex]];
|
|
570
|
+
this.listItems.reset(arr);
|
|
571
|
+
this.currentIndex = presentIndex + 2;
|
|
572
|
+
this.ariaText = "selected ";
|
|
573
|
+
} else {
|
|
574
|
+
presentIndex = presentIndex < listItems.length - 1 ? presentIndex + 1 : listItems.length - 1;
|
|
575
|
+
this.lastSelectedItem = this.getListItemByIndex(presentIndex);
|
|
576
|
+
this.lastSelectedItem.nativeElement.focus();
|
|
577
|
+
this.currentIndex = presentIndex + 1;
|
|
578
|
+
this.ariaText = "selected ";
|
|
579
|
+
}
|
|
580
|
+
} else if (action === "select") {
|
|
581
|
+
if (presentIndex === -1 || !$($event.target).closest(this.lastSelectedItem.nativeElement)) {
|
|
582
|
+
const $li = $($event.target).closest("li.app-list-item");
|
|
583
|
+
presentIndex = $li.closest("ul.app-livelist-container").find("li.app-list-item").index($li);
|
|
584
|
+
}
|
|
585
|
+
this.onItemClick($event, this.getListItemByIndex(presentIndex));
|
|
586
|
+
} else if (action === "space") {
|
|
587
|
+
if (!this.enablereorder) return;
|
|
588
|
+
this.isListElementMovable = !this.isListElementMovable;
|
|
589
|
+
this.onItemClick($event, this.getListItemByIndex(presentIndex));
|
|
590
|
+
this.currentIndex = presentIndex + 1;
|
|
591
|
+
if (this.isListElementMovable) {
|
|
592
|
+
this.ariaText = `Item ${this.currentIndex} grabbed, current position `;
|
|
593
|
+
this.$ulEle.data("oldIndex", presentIndex);
|
|
594
|
+
} else {
|
|
595
|
+
this.ariaText = `Item ${this.currentIndex} dropped, final position `;
|
|
596
|
+
this.onUpdate($event, void 0, presentIndex);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
getActualPageSize() {
|
|
601
|
+
return this.actualPageSize || 20;
|
|
602
|
+
}
|
|
603
|
+
onPropertyChange(key, nv, ov) {
|
|
604
|
+
if (key === "dataset") {
|
|
605
|
+
if (!nv && this.binddatasource && !this.datasource) return;
|
|
606
|
+
this.onDataSetChange(nv);
|
|
607
|
+
} else if (key === "datasource") {
|
|
608
|
+
if (this.allowpagesizechange) this.datasource.maxResults = this.pagesize || this.datasource.maxResults;
|
|
609
|
+
if (this.dataset) this.onDataSetChange(this.dataset);
|
|
610
|
+
} else if (key === "navigation") {
|
|
611
|
+
if (nv === "Advanced") {
|
|
612
|
+
this.navigation = "Classic";
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
switchClass(this.nativeElement, nv, ov);
|
|
616
|
+
this.onNavigationTypeChange(nv);
|
|
617
|
+
if (this.dataNavigator) this.dataNavigator.navigationClass = this.paginationclass;
|
|
618
|
+
} else if (key === "itemsperrow") setListClass(this);
|
|
619
|
+
else if (key === "tabindex") return;
|
|
620
|
+
else if (key === "pulltorefresh" && nv) {
|
|
621
|
+
this.app.notify("pullToRefresh:enable");
|
|
622
|
+
this.subscribeToPullToRefresh();
|
|
623
|
+
} else if (key === "paginationclass") {
|
|
624
|
+
if (this.dataNavigator) setTimeout(() => this.dataNavigator.navigationClass = nv);
|
|
625
|
+
} else if (key === "pagesize") {
|
|
626
|
+
this.actualPageSize = nv;
|
|
627
|
+
this.setDefaultPageSize(nv);
|
|
628
|
+
} else if (key === "enablereorder") {
|
|
629
|
+
if (nv && this.$ulEle) {
|
|
630
|
+
this.$ulEle.attr("aria-describedby", this.titleId);
|
|
631
|
+
this.configureDnD();
|
|
632
|
+
this.$ulEle.sortable("enable");
|
|
633
|
+
} else if (this.$ulEle && !nv) {
|
|
634
|
+
this.$ulEle.removeAttr("aria-describedby");
|
|
635
|
+
this.$ulEle.sortable("disable");
|
|
636
|
+
}
|
|
637
|
+
} else if (key === "multiselect") this.selectedItemWidgets = nv ? [] : {};
|
|
638
|
+
else if (key === "allowpagesizechange") {
|
|
639
|
+
this.allowpagesizechange = nv;
|
|
640
|
+
this.dataNavigator.allowpagesizechange = nv;
|
|
641
|
+
} else if (key === "pagesizeoptions") {
|
|
642
|
+
this.prevPagesizeoptions = this.sanitizeCommaSeparatedIntegers(ov);
|
|
643
|
+
this.pagesizeoptions = this.sanitizeCommaSeparatedIntegers(nv);
|
|
644
|
+
if (this.allowpagesizechange) this.setDefaultPageSize(nv);
|
|
645
|
+
} else super.onPropertyChange(key, nv, ov);
|
|
646
|
+
}
|
|
647
|
+
setDefaultPageSize(nv) {
|
|
648
|
+
if (this.allowpagesizechange) {
|
|
649
|
+
const widgetState = this.statePersistence.getWidgetState(this);
|
|
650
|
+
if (get(widgetState, "pagesize")) {
|
|
651
|
+
nv = get(widgetState, "pagesize");
|
|
652
|
+
this.pagesize = nv;
|
|
653
|
+
} else if (this.pagesizeoptions) {
|
|
654
|
+
nv = this.pagesizeoptions?.split(",").map(Number).sort((a, b) => a - b)[0];
|
|
655
|
+
this.pagesize = nv;
|
|
656
|
+
}
|
|
657
|
+
if (this.isPageSizeOptionsChanged()) {
|
|
658
|
+
this.dataNavigator.defaultPageSizeOptions = this.pagesizeoptions?.split(",").map(Number).sort((a, b) => a - b) || [];
|
|
659
|
+
this.dataNavigator.pageSizeOptions = [...this.dataNavigator.defaultPageSizeOptions];
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
this.updatedPageSize = nv;
|
|
663
|
+
this.dataNavigator.updatedPageSize = nv;
|
|
664
|
+
this.dataNavigator.options = { maxResults: nv };
|
|
665
|
+
this.dataNavigator.widget.maxResults = nv;
|
|
666
|
+
this.dataNavigator.maxResults = nv;
|
|
667
|
+
if (this.datasource) this.datasource.maxResults = this.pagesize || this.datasource.maxResults;
|
|
668
|
+
}
|
|
669
|
+
isPageSizeOptionsChanged() {
|
|
670
|
+
return !isEqual(this.prevPagesizeoptions, this.pagesizeoptions);
|
|
671
|
+
}
|
|
672
|
+
selectPageSize(pagesize) {
|
|
673
|
+
if (!this.allowpagesizechange && !pagesize) return;
|
|
674
|
+
if (pagesize < this.dataNavigator.pageSizeOptions[0] || pagesize > this.dataNavigator.pageSizeOptions[this.dataNavigator.pageSizeOptions.length - 1] || !this.dataNavigator.pageSizeOptions.includes(Number(pagesize))) pagesize = this.dataNavigator.pageSizeOptions[0];
|
|
675
|
+
this.dataNavigator.onPageSizeChange(void 0, pagesize);
|
|
676
|
+
}
|
|
677
|
+
sanitizeCommaSeparatedIntegers(input) {
|
|
678
|
+
if (!input) return "";
|
|
679
|
+
return Array.from(new Set(input.split(",").map((v) => v.trim()).filter((v) => /^-?\d+$/.test(v)).map((v) => Math.abs(parseInt(v, 10))))).join(",");
|
|
680
|
+
}
|
|
681
|
+
onItemClick(evt, $listItem) {
|
|
682
|
+
let selectCount;
|
|
683
|
+
if (!$listItem.disableItem) {
|
|
684
|
+
this.firstSelectedItem = this.firstSelectedItem || $listItem;
|
|
685
|
+
selectCount = isArray(this.selecteditem) ? this.selecteditem.length : isObject(this.selecteditem) ? 1 : 0;
|
|
686
|
+
if (this.multiselect && isMobile()) {
|
|
687
|
+
if (this.checkSelectionLimit(selectCount) || $listItem.isActive) this.toggleListItemSelection($listItem);
|
|
688
|
+
else this.invokeEventCallback("selectionlimitexceed", { $event: evt });
|
|
689
|
+
} else if ((evt.ctrlKey || evt.metaKey) && this.multiselect) {
|
|
690
|
+
if (this.checkSelectionLimit(selectCount) || $listItem.isActive) {
|
|
691
|
+
this.firstSelectedItem = this.lastSelectedItem = $listItem;
|
|
692
|
+
this.toggleListItemSelection($listItem);
|
|
693
|
+
} else this.invokeEventCallback("selectionlimitexceed", { $event: evt });
|
|
694
|
+
} else if (evt.shiftKey && this.multiselect) {
|
|
695
|
+
let first = $listItem.context.index;
|
|
696
|
+
let last = this.firstSelectedItem.context.index;
|
|
697
|
+
if (first > last) last = [first, first = last][0];
|
|
698
|
+
if (this.checkSelectionLimit(last - first)) {
|
|
699
|
+
this.clearSelectedItems();
|
|
700
|
+
this.listItems.forEach(($liItem) => {
|
|
701
|
+
const index = $liItem.context.index;
|
|
702
|
+
if (index >= first && index <= last) this.toggleListItemSelection($liItem);
|
|
703
|
+
});
|
|
704
|
+
this.lastSelectedItem = $listItem;
|
|
705
|
+
} else this.invokeEventCallback("selectionlimitexceed", { $event: evt });
|
|
706
|
+
} else if (!$listItem.isActive || selectCount > 1) {
|
|
707
|
+
this.clearSelectedItems();
|
|
708
|
+
this.toggleListItemSelection($listItem);
|
|
709
|
+
this.firstSelectedItem = this.lastSelectedItem = $listItem;
|
|
710
|
+
}
|
|
711
|
+
$appDigest();
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
clear() {
|
|
715
|
+
this.updateFieldDefs([]);
|
|
716
|
+
}
|
|
717
|
+
deselectItem(val) {
|
|
718
|
+
const listItem = this.getItemRefByIndexOrModel(val);
|
|
719
|
+
if (listItem?.isActive) this.toggleListItemSelection(listItem);
|
|
720
|
+
}
|
|
721
|
+
selectItem(val, statePersistenceTriggered) {
|
|
722
|
+
const listItem = this.getItemRefByIndexOrModel(val);
|
|
723
|
+
if (!listItem) return;
|
|
724
|
+
if (!listItem.isActive) this.toggleListItemSelection(listItem, statePersistenceTriggered);
|
|
725
|
+
listItem.nativeElement.focus();
|
|
726
|
+
}
|
|
727
|
+
ngOnInit() {
|
|
728
|
+
super.ngOnInit();
|
|
729
|
+
this.handleHeaderClick = noop;
|
|
730
|
+
setTimeout(() => {
|
|
731
|
+
this.debouncedFetchNextDatasetOnScroll = this.paginationService.debouncedFetchNextDatasetOnScroll(this.dataNavigator, DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME, this);
|
|
732
|
+
}, 0);
|
|
733
|
+
this._items = [];
|
|
734
|
+
this.fieldDefs = [];
|
|
735
|
+
this.reorderProps = {
|
|
736
|
+
minIndex: null,
|
|
737
|
+
maxIndex: null
|
|
738
|
+
};
|
|
739
|
+
const autoLayoutAttrs = [
|
|
740
|
+
"wrap",
|
|
741
|
+
"alignment",
|
|
742
|
+
"gap",
|
|
743
|
+
"columngap"
|
|
744
|
+
];
|
|
745
|
+
const directionValue = this.nativeElement.getAttribute("direction");
|
|
746
|
+
const hasAutoLayoutDirection = directionValue === "row" || directionValue === "column";
|
|
747
|
+
this.hasAutolayout = hasAutoLayoutDirection || autoLayoutAttrs.some((attr) => this.nativeElement.hasAttribute(attr));
|
|
748
|
+
}
|
|
749
|
+
ngAfterViewInit() {
|
|
750
|
+
this.promiseResolverFn();
|
|
751
|
+
this.propsInitPromise.then(() => {
|
|
752
|
+
super.ngAfterViewInit();
|
|
753
|
+
this.setUpCUDHandlers();
|
|
754
|
+
this.selectedItemWidgets = this.multiselect ? [] : {};
|
|
755
|
+
const ele = $(this.nativeElement).find(".app-livelist-container");
|
|
756
|
+
if (this.enablereorder && !this.groupby) {
|
|
757
|
+
if (ele) ele.attr("aria-describedby", this.titleId);
|
|
758
|
+
this.configureDnD();
|
|
759
|
+
}
|
|
760
|
+
if (!this.enablereorder) {
|
|
761
|
+
if (ele) ele.removeAttr("aria-describedby");
|
|
762
|
+
}
|
|
763
|
+
if (this.groupby && this.collapsible) {
|
|
764
|
+
this.handleHeaderClick = handleHeaderClick;
|
|
765
|
+
this.toggleAllHeaders = toggleAllHeaders.bind(void 0, this);
|
|
766
|
+
}
|
|
767
|
+
setListClass(this);
|
|
768
|
+
});
|
|
769
|
+
this.setupHandlers();
|
|
770
|
+
const $ul = this.nativeElement.querySelector("ul.app-livelist-container");
|
|
771
|
+
styler($ul, this, APPLY_STYLES_TYPE.CONTAINER);
|
|
772
|
+
if (this.enablereorder) {
|
|
773
|
+
if ($ul) $ul.setAttribute("aria-describedby", this.titleId);
|
|
774
|
+
}
|
|
775
|
+
if (!this.enablereorder) {
|
|
776
|
+
if ($ul) $ul.removeAttribute("aria-describedby");
|
|
777
|
+
}
|
|
778
|
+
this._readItemAttrsFromHost();
|
|
779
|
+
}
|
|
780
|
+
ngOnDestroy() {
|
|
781
|
+
if (this._listAnimator?.$btnSubscription) {
|
|
782
|
+
this._listAnimator.$btnSubscription.unsubscribe();
|
|
783
|
+
this._listAnimator = null;
|
|
784
|
+
}
|
|
785
|
+
if (this._listenerDestroyers) {
|
|
786
|
+
this._listenerDestroyers.forEach((d) => d?.());
|
|
787
|
+
this._listenerDestroyers = [];
|
|
788
|
+
}
|
|
789
|
+
if (this.navigatorResultWatch) {
|
|
790
|
+
this.navigatorResultWatch.unsubscribe();
|
|
791
|
+
this.navigatorResultWatch = null;
|
|
792
|
+
}
|
|
793
|
+
if (this.navigatorMaxResultWatch) {
|
|
794
|
+
this.navigatorMaxResultWatch.unsubscribe();
|
|
795
|
+
this.navigatorMaxResultWatch = null;
|
|
796
|
+
}
|
|
797
|
+
if (this.listItemsChangesSubscription) {
|
|
798
|
+
this.listItemsChangesSubscription.unsubscribe();
|
|
799
|
+
this.listItemsChangesSubscription = null;
|
|
800
|
+
}
|
|
801
|
+
const ulElement = this.nativeElement?.querySelector("ul.app-livelist-container");
|
|
802
|
+
if (ulElement && this.boundClickHandler) {
|
|
803
|
+
try {
|
|
804
|
+
ulElement.removeEventListener("click", this.boundClickHandler, true);
|
|
805
|
+
} catch (e) {}
|
|
806
|
+
this.boundClickHandler = null;
|
|
807
|
+
}
|
|
808
|
+
if (this.$ulEle?.sortable) {
|
|
809
|
+
try {
|
|
810
|
+
this.$ulEle.sortable("destroy");
|
|
811
|
+
} catch (e) {}
|
|
812
|
+
this.$ulEle = null;
|
|
813
|
+
}
|
|
814
|
+
if (this.listItems) this.listItems = null;
|
|
815
|
+
if (this.btnComponents) this.btnComponents = null;
|
|
816
|
+
this.dataNavigator = null;
|
|
817
|
+
this.listTemplate = null;
|
|
818
|
+
this.listLeftActionTemplate = null;
|
|
819
|
+
this.listRightActionTemplate = null;
|
|
820
|
+
this.fieldDefs = [];
|
|
821
|
+
this._items = [];
|
|
822
|
+
this.groupedData = null;
|
|
823
|
+
if (Array.isArray(this.selectedItemWidgets)) this.selectedItemWidgets = [];
|
|
824
|
+
else this.selectedItemWidgets = {};
|
|
825
|
+
const $addItem = document.getElementsByClassName("add-list-item")[0];
|
|
826
|
+
if ($addItem && this.boundAddItemHandler) {
|
|
827
|
+
$addItem.removeEventListener("click", this.boundAddItemHandler);
|
|
828
|
+
this.boundAddItemHandler = null;
|
|
829
|
+
}
|
|
830
|
+
this.debouncedFetchNextDatasetOnScroll = null;
|
|
831
|
+
this.firstSelectedItem = null;
|
|
832
|
+
this.lastSelectedItem = null;
|
|
833
|
+
this.reorderProps = null;
|
|
834
|
+
super.ngOnDestroy();
|
|
835
|
+
}
|
|
836
|
+
ngOnDetach() {
|
|
837
|
+
super.ngOnDetach();
|
|
838
|
+
this._pageLoad = true;
|
|
839
|
+
}
|
|
840
|
+
handleEvent(node, eventName, eventCallback, locals) {
|
|
841
|
+
const touchToMouse = {
|
|
842
|
+
tap: "click",
|
|
843
|
+
doubletap: "dblclick"
|
|
844
|
+
};
|
|
845
|
+
if (includes([
|
|
846
|
+
"click",
|
|
847
|
+
"tap",
|
|
848
|
+
"dblclick",
|
|
849
|
+
"doubletap"
|
|
850
|
+
], eventName)) this.eventManager.addEventListener(this.nativeElement, touchToMouse[eventName] || eventName, (evt) => {
|
|
851
|
+
const target = $(evt.target).closest(".app-list-item");
|
|
852
|
+
if (target.length) {
|
|
853
|
+
const listItemContext = target.data("listItemContext");
|
|
854
|
+
if (!listItemContext.disableItem) this.invokeEventCallback(eventName, {
|
|
855
|
+
widget: listItemContext,
|
|
856
|
+
$event: evt,
|
|
857
|
+
item: listItemContext.item
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
getConfiguredState() {
|
|
863
|
+
return this.statePersistence.computeMode(this.statehandler)?.toLowerCase();
|
|
864
|
+
}
|
|
865
|
+
handleStateParams(options) {
|
|
866
|
+
if (this._pageLoad && this.getConfiguredState() !== "none") {
|
|
867
|
+
this._pageLoad = false;
|
|
868
|
+
const widgetState = this.statePersistence.getWidgetState(this);
|
|
869
|
+
if (get(widgetState, "pagination")) {
|
|
870
|
+
options.options = options.options || {};
|
|
871
|
+
options.options.page = widgetState.pagination;
|
|
872
|
+
}
|
|
873
|
+
if (get(widgetState, "selectedItem")) this._selectedItemsExist = true;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
triggerWMEvent(eventName, item) {
|
|
877
|
+
$invokeWatchers(true);
|
|
878
|
+
let row = this.multiselect ? last(this.selecteditem) : this.selecteditem;
|
|
879
|
+
if (item) row = item;
|
|
880
|
+
this.app.notify("wm-event", {
|
|
881
|
+
eventName,
|
|
882
|
+
widgetName: this.name,
|
|
883
|
+
row
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
resetNavigation() {
|
|
887
|
+
this.showNavigation = false;
|
|
888
|
+
this.navControls = void 0;
|
|
889
|
+
this.infScroll = false;
|
|
890
|
+
this.onDemandLoad = false;
|
|
891
|
+
}
|
|
892
|
+
enableBasicNavigation() {
|
|
893
|
+
this.navControls = NAVIGATION_TYPE.BASIC;
|
|
894
|
+
this.showNavigation = true;
|
|
895
|
+
}
|
|
896
|
+
enableInlineNavigation() {
|
|
897
|
+
this.navControls = NAVIGATION_TYPE.INLINE;
|
|
898
|
+
}
|
|
899
|
+
enableClassicNavigation() {
|
|
900
|
+
this.navControls = NAVIGATION_TYPE.CLASSIC;
|
|
901
|
+
this.showNavigation = true;
|
|
902
|
+
}
|
|
903
|
+
enablePagerNavigation() {
|
|
904
|
+
this.navControls = NAVIGATION_TYPE.PAGER;
|
|
905
|
+
this.showNavigation = true;
|
|
906
|
+
}
|
|
907
|
+
setNavigationTypeNone() {
|
|
908
|
+
this.navControls = NAVIGATION_TYPE.NONE;
|
|
909
|
+
this.showNavigation = false;
|
|
910
|
+
}
|
|
911
|
+
enableInfiniteScroll() {
|
|
912
|
+
this.infScroll = true;
|
|
913
|
+
}
|
|
914
|
+
enableOnDemandLoad() {
|
|
915
|
+
this.onDemandLoad = true;
|
|
916
|
+
this.showNavigation = true;
|
|
917
|
+
}
|
|
918
|
+
onNavigationTypeChange(type) {
|
|
919
|
+
this.resetNavigation();
|
|
920
|
+
switch (type) {
|
|
921
|
+
case NAVIGATION_TYPE.BASIC:
|
|
922
|
+
this.enableBasicNavigation();
|
|
923
|
+
break;
|
|
924
|
+
case NAVIGATION_TYPE.INLINE:
|
|
925
|
+
this.enableInlineNavigation();
|
|
926
|
+
break;
|
|
927
|
+
case NAVIGATION_TYPE.ADVANCED:
|
|
928
|
+
case NAVIGATION_TYPE.CLASSIC:
|
|
929
|
+
this.enableClassicNavigation();
|
|
930
|
+
break;
|
|
931
|
+
case NAVIGATION_TYPE.PAGER:
|
|
932
|
+
this.enablePagerNavigation();
|
|
933
|
+
break;
|
|
934
|
+
case NAVIGATION_TYPE.NONE:
|
|
935
|
+
this.setNavigationTypeNone();
|
|
936
|
+
break;
|
|
937
|
+
case NAVIGATION_TYPE.SCROLL:
|
|
938
|
+
this.enableInfiniteScroll();
|
|
939
|
+
break;
|
|
940
|
+
case NAVIGATION_TYPE.ONDEMAND: this.enableOnDemandLoad();
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
updateFieldDefs(newVal) {
|
|
944
|
+
if (this.infScroll || this.onDemandLoad) [this.fieldDefs, this.currentPage] = this.paginationService.updateFieldsOnPagination(this, newVal);
|
|
945
|
+
else this.fieldDefs = newVal;
|
|
946
|
+
if (this.orderby) this.fieldDefs = getOrderedDataset(this.fieldDefs, this.orderby);
|
|
947
|
+
if (this.groupby) this.groupedData = groupData(this, this.fieldDefs, this.groupby, this.match, this.orderby, this.dateformat, this.datePipe, void 0, this.appDefaults);
|
|
948
|
+
if (!this.fieldDefs.length) {
|
|
949
|
+
this.noDataFound = true;
|
|
950
|
+
this.selecteditem = void 0;
|
|
951
|
+
}
|
|
952
|
+
$appDigest();
|
|
953
|
+
this.listItems.setDirty();
|
|
954
|
+
}
|
|
955
|
+
onDataChange(newVal) {
|
|
956
|
+
if (!isEmpty(newVal)) {
|
|
957
|
+
this.noDataFound = false;
|
|
958
|
+
this.isDataChanged = true;
|
|
959
|
+
if (this.datasource?.execute(DataSource.Operation.IS_API_AWARE)) newVal = cloneDeep(newVal);
|
|
960
|
+
if (isObject(newVal) && !isArray(newVal)) newVal = isEmpty(newVal) ? [] : [newVal];
|
|
961
|
+
if (isString(newVal)) newVal = newVal.split(",");
|
|
962
|
+
if (this.datasource && this.datasource.owner === "App" && (this.infScroll || this.onDemandLoad) && !this.currentPage && this.datasource.execute(DataSource.Operation.GET_PAGING_OPTIONS).number > 0) newVal = this.datasource.execute(DataSource.Operation.LIST_RECORDS, { "page": 1 });
|
|
963
|
+
if (isArray(newVal)) {
|
|
964
|
+
if (newVal.length) this.invokeEventCallback("beforedatarender", { $data: newVal });
|
|
965
|
+
this.updateFieldDefs(newVal);
|
|
966
|
+
}
|
|
967
|
+
} else this.updateFieldDefs([]);
|
|
968
|
+
}
|
|
969
|
+
setupDataSource() {
|
|
970
|
+
const dataNavigator = this.dataNavigator;
|
|
971
|
+
dataNavigator.options = { maxResults: this.pagesize || 20 };
|
|
972
|
+
this.dataNavigatorWatched = true;
|
|
973
|
+
if (this.navigatorResultWatch) this.navigatorResultWatch.unsubscribe();
|
|
974
|
+
this.navigatorResultWatch = dataNavigator.resultEmitter.subscribe((newVal) => {
|
|
975
|
+
this.onDataChange(newVal);
|
|
976
|
+
}, true);
|
|
977
|
+
if (this.navigatorMaxResultWatch) this.navigatorMaxResultWatch.unsubscribe();
|
|
978
|
+
this.navigatorMaxResultWatch = dataNavigator.maxResultsEmitter.subscribe((val) => {
|
|
979
|
+
this.pagesize = val;
|
|
980
|
+
});
|
|
981
|
+
dataNavigator.maxResults = this.pagesize || 20;
|
|
982
|
+
this.removePropertyBinding("dataset");
|
|
983
|
+
const datasetBoundExpr = this.getAttr("datasetboundexpr");
|
|
984
|
+
this.dataNavigator.setBindDataSet(this.binddataset, this.viewParent, datasetBoundExpr ? this.context : this.datasource, this.dataset, this.binddatasource, datasetBoundExpr, this.statehandler);
|
|
985
|
+
}
|
|
986
|
+
onDataSetChange(newVal) {
|
|
987
|
+
if (get(this.datasource, "category") === "wm.Variable" && this.getConfiguredState() !== "none" && this._pageLoad) {
|
|
988
|
+
const widgetState = this.statePersistence.getWidgetState(this);
|
|
989
|
+
this._pageLoad = false;
|
|
990
|
+
if (this.allowpagesizechange) {
|
|
991
|
+
if (get(widgetState, "pagination") || get(widgetState, "pagesize")) this.dataNavigator.pageChanged({
|
|
992
|
+
page: widgetState.pagination || 1,
|
|
993
|
+
pagesize: widgetState.pagesize
|
|
994
|
+
}, true);
|
|
995
|
+
} else if (get(widgetState, "pagination")) this.dataNavigator.pageChanged({ page: widgetState.pagination }, true);
|
|
996
|
+
if (get(widgetState, "selectedItem")) this._selectedItemsExist = true;
|
|
997
|
+
}
|
|
998
|
+
if (!this.dataNavigatorWatched) {
|
|
999
|
+
if (this.navigation && this.navigation !== NAVIGATION_TYPE.NONE) this.setupDataSource();
|
|
1000
|
+
else this.onDataChange(newVal);
|
|
1001
|
+
} else if (this.navigation && this.navigation !== NAVIGATION_TYPE.NONE) this.dataNavigator.setDataSource(this.datasource);
|
|
1002
|
+
}
|
|
1003
|
+
deselectListItems() {
|
|
1004
|
+
this.listItems.forEach((item) => item.isActive = false);
|
|
1005
|
+
}
|
|
1006
|
+
clearSelectedItems() {
|
|
1007
|
+
this.deselectListItems();
|
|
1008
|
+
this._items.length = 0;
|
|
1009
|
+
$appDigest();
|
|
1010
|
+
}
|
|
1011
|
+
getListItemByModel(listModel) {
|
|
1012
|
+
return this.listItems.find((listItem) => {
|
|
1013
|
+
let itemObj = listItem.item;
|
|
1014
|
+
if (this.groupby && !has(listModel, "_groupIndex")) {
|
|
1015
|
+
itemObj = clone(itemObj);
|
|
1016
|
+
delete itemObj._groupIndex;
|
|
1017
|
+
}
|
|
1018
|
+
if (isEqual(itemObj, listModel)) return true;
|
|
1019
|
+
}) || null;
|
|
1020
|
+
}
|
|
1021
|
+
updateSelectedItemsWidgets(statePersistenceTriggered) {
|
|
1022
|
+
let obj = {}, widgetState;
|
|
1023
|
+
const pageNum = get(this.dataNavigator, "dn.currentPage") || 1;
|
|
1024
|
+
if (this.getConfiguredState() !== "none") {
|
|
1025
|
+
widgetState = this.statePersistence.getWidgetState(this) || {};
|
|
1026
|
+
if (get(widgetState, "selectedItem")) {
|
|
1027
|
+
if (this.multiselect && this.selecteditem.length === 1) widgetState.selectedItem = [];
|
|
1028
|
+
else remove(widgetState.selectedItem, function(selectedItem) {
|
|
1029
|
+
return selectedItem.page === pageNum;
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
if (this.multiselect) this.selectedItemWidgets.length = 0;
|
|
1034
|
+
this.listItems.forEach((item, index) => {
|
|
1035
|
+
if (item.isActive) {
|
|
1036
|
+
if (this.multiselect) this.selectedItemWidgets.push(item.currentItemWidgets);
|
|
1037
|
+
else this.selectedItemWidgets = item.currentItemWidgets;
|
|
1038
|
+
obj = {
|
|
1039
|
+
page: pageNum,
|
|
1040
|
+
index
|
|
1041
|
+
};
|
|
1042
|
+
if (get(widgetState, "selectedItem") && this.multiselect) {
|
|
1043
|
+
if (!some(widgetState.selectedItem, obj)) widgetState.selectedItem.push(obj);
|
|
1044
|
+
} else widgetState.selectedItem = [obj];
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
if (this.getConfiguredState() !== "none" && !statePersistenceTriggered) {
|
|
1048
|
+
if (unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {
|
|
1049
|
+
this.statePersistence.removeWidgetState(this, "selectedItem");
|
|
1050
|
+
this.statePersistence.setWidgetState(this, { "selectedItem": widgetState.selectedItem });
|
|
1051
|
+
} else console.warn("Retain State handling on Widget " + this.name + " is not supported for current pagination type.");
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
toggleListItemSelection($listItem, statePersistenceTriggered) {
|
|
1055
|
+
if ($listItem && !$listItem.disableItem) {
|
|
1056
|
+
let item = $listItem.item;
|
|
1057
|
+
if (this.groupby && has(item, "_groupIndex")) {
|
|
1058
|
+
item = clone(item);
|
|
1059
|
+
delete item._groupIndex;
|
|
1060
|
+
}
|
|
1061
|
+
if ($listItem.isActive) {
|
|
1062
|
+
this._items = pullAllWith(this._items, [item], isEqual);
|
|
1063
|
+
$listItem.isActive = false;
|
|
1064
|
+
} else {
|
|
1065
|
+
if (!this.multiselect) this.clearSelectedItems();
|
|
1066
|
+
this._items.push(item);
|
|
1067
|
+
this.invokeEventCallback("select", {
|
|
1068
|
+
widget: $listItem,
|
|
1069
|
+
$data: item
|
|
1070
|
+
});
|
|
1071
|
+
$listItem.isActive = true;
|
|
1072
|
+
}
|
|
1073
|
+
this.updateSelectedItemsWidgets(statePersistenceTriggered);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
onListRender(listItems) {
|
|
1077
|
+
if (this.isDataChanged) {
|
|
1078
|
+
$invokeWatchers(true);
|
|
1079
|
+
this.invokeEventCallback("render", { $data: this.fieldDefs });
|
|
1080
|
+
}
|
|
1081
|
+
if (this.isDataChanged && this.getConfiguredState() !== "none" && listItems.length && this._selectedItemsExist) {
|
|
1082
|
+
const widgetState = this.statePersistence.getWidgetState(this);
|
|
1083
|
+
if (get(widgetState, "selectedItem")) {
|
|
1084
|
+
this._selectedItemsExist = false;
|
|
1085
|
+
const selectedItemsLength = isArray(this.selecteditem) ? this.selecteditem.length : toNumber(!isEmpty(this.selecteditem));
|
|
1086
|
+
const currentPage = get(this.dataNavigator, "dn.currentPage") || 1;
|
|
1087
|
+
widgetState.pagination = widgetState.pagination || 1;
|
|
1088
|
+
if (selectedItemsLength !== widgetState.selectedItem.length && widgetState.pagination === currentPage) widgetState.selectedItem.forEach((item) => {
|
|
1089
|
+
if (item.page === currentPage) this.selectItem(item.index, true);
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
const selectedItems = isArray(this.selecteditem) ? this.selecteditem : [this.selecteditem];
|
|
1094
|
+
this.firstSelectedItem = this.lastSelectedItem = null;
|
|
1095
|
+
if (listItems.length && this.selectfirstitem && !(this._items.length && this.multiselect) && this._selectedItemsExist !== false) {
|
|
1096
|
+
const $firstItem = listItems.first;
|
|
1097
|
+
if (!$firstItem.disableItem && this.isDataChanged && !((this.infScroll || this.onDemandLoad) && this._items.length)) {
|
|
1098
|
+
this.clearSelectedItems();
|
|
1099
|
+
this.firstSelectedItem = this.lastSelectedItem = $firstItem;
|
|
1100
|
+
this.selectItem(0);
|
|
1101
|
+
}
|
|
1102
|
+
} else {
|
|
1103
|
+
this.deselectListItems();
|
|
1104
|
+
selectedItems.forEach((selecteditem) => {
|
|
1105
|
+
const listItem = this.getListItemByModel(selecteditem);
|
|
1106
|
+
if (listItem) {
|
|
1107
|
+
listItem.isActive = true;
|
|
1108
|
+
this.lastSelectedItem = listItem;
|
|
1109
|
+
listItem.nativeElement.focus();
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
if (this.fieldDefs.length && this.infScroll) {
|
|
1114
|
+
const modalBody = this.$element.closest(".modal-body");
|
|
1115
|
+
const listHt = this.$element.find("ul").height();
|
|
1116
|
+
const modalHt = window.innerHeight - 140;
|
|
1117
|
+
if (isMobile() && modalBody.length && listHt > modalHt) this.$element.css("height", modalHt + "px");
|
|
1118
|
+
setTimeout(() => this.paginationService.bindScrollEvt(this, "> ul", DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME), 500);
|
|
1119
|
+
}
|
|
1120
|
+
this.isDataChanged = false;
|
|
1121
|
+
}
|
|
1122
|
+
setupHandlers() {
|
|
1123
|
+
this.listItemsChangesSubscription = this.listItems.changes.subscribe((listItems) => {
|
|
1124
|
+
this.onListRender(listItems);
|
|
1125
|
+
this.cdRef.detectChanges();
|
|
1126
|
+
});
|
|
1127
|
+
this.boundClickHandler = ($event) => {
|
|
1128
|
+
let target = $($event.target).closest(".app-list-item");
|
|
1129
|
+
while (target.get(0) && target.closest("ul.app-livelist-container").get(0) !== $event.currentTarget) target = target.parent().closest(".app-list-item");
|
|
1130
|
+
this.triggerListItemSelection(target, $event);
|
|
1131
|
+
};
|
|
1132
|
+
const ulElement = this.nativeElement.querySelector("ul.app-livelist-container");
|
|
1133
|
+
if (ulElement) ulElement.addEventListener("click", this.boundClickHandler, true);
|
|
1134
|
+
}
|
|
1135
|
+
onReorderStart(evt, ui) {
|
|
1136
|
+
ui.placeholder.height(ui.item.height());
|
|
1137
|
+
this.$ulEle.data("oldIndex", ui.item.index());
|
|
1138
|
+
}
|
|
1139
|
+
onSort(evt, ui) {
|
|
1140
|
+
if (this.infScroll) {
|
|
1141
|
+
const lastItemOffset = this.$ulEle.find(`[listitemindex=${this.fieldDefs.length - 1}]`).offset();
|
|
1142
|
+
if (lastItemOffset && lastItemOffset.top < ui.offset.top) {
|
|
1143
|
+
this.paginationService.bindScrollEvt(this, "> ul", DEBOUNCE_TIMES.PAGINATION_DEBOUNCE_TIME);
|
|
1144
|
+
this.debouncedFetchNextDatasetOnScroll();
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
onUpdate(evt, ui, presentIndex) {
|
|
1149
|
+
const data = this.fieldDefs;
|
|
1150
|
+
const newIndex = ui === void 0 ? presentIndex : ui.item.index();
|
|
1151
|
+
const oldIndex = this.$ulEle.data("oldIndex");
|
|
1152
|
+
const minIndex = min([newIndex, oldIndex]);
|
|
1153
|
+
const maxIndex = max([newIndex, oldIndex]);
|
|
1154
|
+
const draggedItem = pullAt(data, oldIndex)[0];
|
|
1155
|
+
if (draggedItem) {
|
|
1156
|
+
if (this.getConfiguredState() !== "none") this.statePersistence.removeWidgetState(this, "selectedItem");
|
|
1157
|
+
this.reorderProps.minIndex = min([minIndex, this.reorderProps.minIndex]);
|
|
1158
|
+
this.reorderProps.maxIndex = max([maxIndex, this.reorderProps.maxIndex]);
|
|
1159
|
+
data.splice(newIndex, 0, draggedItem);
|
|
1160
|
+
this.cdRef.markForCheck();
|
|
1161
|
+
this.cdRef.detectChanges();
|
|
1162
|
+
const $changedItem = {
|
|
1163
|
+
oldIndex,
|
|
1164
|
+
newIndex,
|
|
1165
|
+
item: data[newIndex]
|
|
1166
|
+
};
|
|
1167
|
+
this.invokeEventCallback("reorder", {
|
|
1168
|
+
$event: evt,
|
|
1169
|
+
$data: data,
|
|
1170
|
+
$changedItem
|
|
1171
|
+
});
|
|
1172
|
+
this.$ulEle.removeData("oldIndex");
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
configureDnD() {
|
|
1176
|
+
let appendTo;
|
|
1177
|
+
const modalEl = $(document).find(".modal");
|
|
1178
|
+
if (this.getAttr("height")) appendTo = "parent";
|
|
1179
|
+
else if (modalEl.length) appendTo = modalEl[modalEl.length - 1];
|
|
1180
|
+
else appendTo = "body";
|
|
1181
|
+
const options = { appendTo };
|
|
1182
|
+
const $el = $(this.nativeElement);
|
|
1183
|
+
this.$ulEle = $el.find(".app-livelist-container");
|
|
1184
|
+
configureDnD(this.$ulEle, options, this.onReorderStart.bind(this), this.onUpdate.bind(this), this.onSort.bind(this));
|
|
1185
|
+
this.$ulEle.droppable({ "accept": ".app-list-item" });
|
|
1186
|
+
}
|
|
1187
|
+
checkSelectionLimit(count) {
|
|
1188
|
+
return !this.selectionlimit || count < this.selectionlimit;
|
|
1189
|
+
}
|
|
1190
|
+
getListItemByIndex(index) {
|
|
1191
|
+
return this.listItems.toArray()[index];
|
|
1192
|
+
}
|
|
1193
|
+
getListItemIndex(item) {
|
|
1194
|
+
return this.listItems.toArray().indexOf(item);
|
|
1195
|
+
}
|
|
1196
|
+
getItemRefByIndexOrModel(val) {
|
|
1197
|
+
let listItem;
|
|
1198
|
+
if (isNumber(val)) listItem = this.getListItemByIndex(val);
|
|
1199
|
+
else listItem = this.getListItemByModel(val);
|
|
1200
|
+
return listItem;
|
|
1201
|
+
}
|
|
1202
|
+
beforePaginationChange($event, $index) {
|
|
1203
|
+
this.invokeEventCallback("paginationchange", {
|
|
1204
|
+
$event,
|
|
1205
|
+
$index
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
trackByFn($index) {
|
|
1209
|
+
return $index;
|
|
1210
|
+
}
|
|
1211
|
+
subscribeToPullToRefresh() {
|
|
1212
|
+
this._listenerDestroyers.push(this.app.subscribe("pulltorefresh", () => {
|
|
1213
|
+
if (this.datasource?.listRecords) this.datasource.listRecords();
|
|
1214
|
+
}));
|
|
1215
|
+
}
|
|
1216
|
+
setUpCUDHandlers() {
|
|
1217
|
+
const $addItem = document.getElementsByClassName("add-list-item")[0];
|
|
1218
|
+
if ($addItem) {
|
|
1219
|
+
this.boundAddItemHandler = (evt) => {
|
|
1220
|
+
this.create();
|
|
1221
|
+
};
|
|
1222
|
+
$addItem.addEventListener("click", this.boundAddItemHandler);
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
_readItemAttrsFromHost() {
|
|
1226
|
+
const raw = this.nativeElement.getAttribute("itemattrs");
|
|
1227
|
+
if (!raw) {
|
|
1228
|
+
this.itemAttrsMap = {};
|
|
1229
|
+
return;
|
|
1230
|
+
}
|
|
1231
|
+
try {
|
|
1232
|
+
this.itemAttrsMap = JSON.parse(raw);
|
|
1233
|
+
} catch (e) {
|
|
1234
|
+
console.warn("list.component: failed to parse itemattrs JSON", e, raw);
|
|
1235
|
+
this.itemAttrsMap = {};
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
static {
|
|
1239
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1240
|
+
minVersion: "12.0.0",
|
|
1241
|
+
version: "22.2.1",
|
|
1242
|
+
ngImport: i0,
|
|
1243
|
+
type: ListComponent,
|
|
1244
|
+
deps: [
|
|
1245
|
+
{ token: i0.Injector },
|
|
1246
|
+
{ token: i0.ChangeDetectorRef },
|
|
1247
|
+
{ token: i1.ToDatePipe },
|
|
1248
|
+
{ token: i1$1.App },
|
|
1249
|
+
{ token: i1$1.AppDefaults },
|
|
1250
|
+
{ token: i0.NgZone },
|
|
1251
|
+
{
|
|
1252
|
+
token: "itemclass.bind",
|
|
1253
|
+
attribute: true
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
token: "disableitem.bind",
|
|
1257
|
+
attribute: true
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
token: "dataset.bind",
|
|
1261
|
+
attribute: true
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
token: "datasource.bind",
|
|
1265
|
+
attribute: true
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
token: "mouseenter.event",
|
|
1269
|
+
attribute: true
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
token: "mouseleave.event",
|
|
1273
|
+
attribute: true
|
|
1274
|
+
},
|
|
1275
|
+
{ token: i1$1.StatePersistence },
|
|
1276
|
+
{ token: i1$1.PaginationService },
|
|
1277
|
+
{
|
|
1278
|
+
token: "EXPLICIT_CONTEXT",
|
|
1279
|
+
optional: true
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1283
|
+
});
|
|
1284
|
+
}
|
|
1285
|
+
static {
|
|
1286
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1287
|
+
minVersion: "17.0.0",
|
|
1288
|
+
version: "22.2.1",
|
|
1289
|
+
type: ListComponent,
|
|
1290
|
+
isStandalone: true,
|
|
1291
|
+
selector: "div[wmList]",
|
|
1292
|
+
providers: [provideAsWidgetRef(ListComponent)],
|
|
1293
|
+
queries: [
|
|
1294
|
+
{
|
|
1295
|
+
propertyName: "listTemplate",
|
|
1296
|
+
first: true,
|
|
1297
|
+
predicate: ["listTemplate"],
|
|
1298
|
+
descendants: true
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
propertyName: "listLeftActionTemplate",
|
|
1302
|
+
first: true,
|
|
1303
|
+
predicate: ["listLeftActionTemplate"],
|
|
1304
|
+
descendants: true
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
propertyName: "listRightActionTemplate",
|
|
1308
|
+
first: true,
|
|
1309
|
+
predicate: ["listRightActionTemplate"],
|
|
1310
|
+
descendants: true
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
propertyName: "btnComponents",
|
|
1314
|
+
predicate: ButtonComponent
|
|
1315
|
+
}
|
|
1316
|
+
],
|
|
1317
|
+
viewQueries: [{
|
|
1318
|
+
propertyName: "dataNavigator",
|
|
1319
|
+
first: true,
|
|
1320
|
+
predicate: PaginationComponent,
|
|
1321
|
+
descendants: true
|
|
1322
|
+
}, {
|
|
1323
|
+
propertyName: "listItems",
|
|
1324
|
+
predicate: ListItemDirective,
|
|
1325
|
+
descendants: true
|
|
1326
|
+
}],
|
|
1327
|
+
usesInheritance: true,
|
|
1328
|
+
ngImport: i0,
|
|
1329
|
+
template: "@if (title || subheading || iconclass || iconurl) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" [defaultClasses]=\"'panel-icon'\" alt=\"List icon\"></wm-app-icon>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n </h3>\n </div>\n}\n\n@if (navigation === 'Inline' && !noDataFound) {\n <div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\" aria-label=\"Page navigation\">\n <ul class=\"pager\">\n <li class=\"previous\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisablePrevious : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\">\n <i class=\"wi wi-chevron-left\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Previous page {{dataNavigator.isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n </div>\n}\n@if (navigation === 'Inline' && !noDataFound) {\n <div aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\"> {{'Page ' + dataNavigator.dn.currentPage + ' of ' + dataNavigator.pageCount }}</div>\n}\n\n<div>\n @if (enablereorder) {\n <div id={{titleId}} class=\"sr-only\">\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n }\n\n @if (listItems && enablereorder && currentIndex) {\n <div aria-live=\"assertive\" class=\"sr-only\" >\n {{ariaText + currentIndex + ' of ' + listItems.length}}\n </div>\n }\n</div>\n\n<ul [attr.tabindex]=\"tabindex\" class=\"list-group app-livelist-container clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}} {{listclass}}\" role=\"list\"\n [class.list-group-autolayout]=\"hasAutolayout\"\n (keydown.enter)=\"handleKeyDown($event, 'select')\"\n\n (keydown.space)=\"handleKeyDown($event, 'space')\"\n\n (keydown.arrowup)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowdown)=\"handleKeyDown($event, 'focusNext')\"\n (keydown.arrowleft)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowright)=\"handleKeyDown($event, 'focusNext')\"\n\n (keydown.shift.arrowup)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowdown)=\"handleKeyDown($event, 'selectNext')\"\n (keydown.shift.arrowleft)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowright)=\"handleKeyDown($event, 'selectNext')\"\n [hidden]=\"noDataFound && !variableInflight\"\n >\n @if (!groupby) {\n @for (item of fieldDefs; track item) {\n <li class=\"app-list-item {{direction === 'horizontal' ? '' : itemsPerRowClass}}\" [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\"\n #listItemRef=\"listItemRef\"\n [attr.tabindex]=\"tabindex\"\n role=\"listitem\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('falt_' + listItemRef.trackId, {item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n }\n } @else {\n @for (groupObj of groupedData; track groupObj; let groupIndex = $index) {\n <li class=\"app-list-item-group clearfix\">\n <ul [attr.tabindex]=\"tabindex\" class=\"list-group item-group\" [ngClass]=\"listclass\" [class.list-group-autolayout]=\"hasAutolayout\">\n <li class=\"app-list-item-header list-item list-group-header\" (click)=\"handleHeaderClick($event)\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4>{{groupObj.key}}\n <div class=\"header-action\">\n @if (collapsible) {\n <i class=\"app-icon wi action wi-chevron-up\"></i>\n }\n @if (showcount) {\n <span class=\"label label-default\">{{groupObj.data.length}}</span>\n }\n </div>\n </h4>\n </li>\n <li class=\"list-group-container\">\n <ul class=\"list-group clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}}\" [class.list-group-autolayout]=\"hasAutolayout\">\n @for (item of groupObj.data; track trackByFn($index, item)) {\n <li [attr.tabindex]=\"tabindex\"\n class=\"app-list-item group-list-item {{itemsPerRowClass}}\"\n [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\" #listItemRef=\"listItemRef\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('group_' + listItemRef.trackId, {item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n }\n </ul>\n </li>\n </ul>\n </li>\n }\n }\n <ng-container [ngTemplateOutlet]=\"listLeftActionTemplate\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"listRightActionTemplate\"></ng-container>\n</ul>\n\n@if (noDataFound && !variableInflight) {\n <div class=\"no-data-msg\" [textContent]=\"nodatamessage\"></div>\n}\n\n@if (variableInflight && !pulltorefresh) {\n <div class=\"loading-data-msg\">\n <span>\n <wm-app-icon [iconclass]=\"loadingicon\" [iconurl]=\"loadingiconurl\" [defaultClasses]=\"'panel-icon'\" alt=\"loading icon\"></wm-app-icon>\n <span class=\"sr-only\">Loading</span>\n <span class=\"loading-text\" [textContent]=\"loadingdatamsg\"></span>\n </span>\n </div>\n}\n\n@if (navigation === 'Inline' && !noDataFound) {\n <div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <ul class=\"pager\">\n <li class=\"next\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisableNext : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('next', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <i class=\"wi wi-chevron-right\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Next page {{dataNavigator.isDisableNext ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n </div>\n}\n\n@if (navigation !== 'None') {\n <div class=\"panel-footer\" [hidden]=\"!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator?.dataSize <= pagesize && !allowpagesizechange) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)\">\n <nav wmPagination\n navigationalign.bind=\"navigationalign\"\n navigation.bind=\"navControls\"\n showrecordcount.bind=\"showrecordcount\"\n maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\"\n directionlinks.bind=\"directionlinks\"\n show.bind=\"!onDemandLoad\"\n paginationchange.event=\"beforePaginationChange($event, $index)\"\n ></nav>\n @if (onDemandLoad) {\n <a href=\"javascript:void(0);\"\n (click)=\"dataNavigator.navigatePage('next', $event)\"\n class=\"app-button btn btn-block\"\n [ngClass]=\"paginationclass\"\n [textContent]=\"ondemandmessage\"\n ></a>\n }\n </div>\n}\n\n<!--This template will be displayed when groupby is specified-->\n",
|
|
1330
|
+
dependencies: [
|
|
1331
|
+
{
|
|
1332
|
+
kind: "ngmodule",
|
|
1333
|
+
type: CommonModule
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
kind: "directive",
|
|
1337
|
+
type: i3.NgClass,
|
|
1338
|
+
selector: "[ngClass]",
|
|
1339
|
+
inputs: ["class", "ngClass"]
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
kind: "directive",
|
|
1343
|
+
type: i3.NgTemplateOutlet,
|
|
1344
|
+
selector: "[ngTemplateOutlet]",
|
|
1345
|
+
inputs: [
|
|
1346
|
+
"ngTemplateOutletContext",
|
|
1347
|
+
"ngTemplateOutlet",
|
|
1348
|
+
"ngTemplateOutletInjector"
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
kind: "directive",
|
|
1353
|
+
type: TextContentDirective,
|
|
1354
|
+
selector: "[textContent]",
|
|
1355
|
+
inputs: ["textContent"]
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
kind: "component",
|
|
1359
|
+
type: PaginationComponent,
|
|
1360
|
+
selector: "[wmPagination]",
|
|
1361
|
+
outputs: ["resultEmitter", "maxResultsEmitter"]
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
kind: "directive",
|
|
1365
|
+
type: ListItemDirective,
|
|
1366
|
+
selector: "[wmListItem]",
|
|
1367
|
+
inputs: ["wmListItem"],
|
|
1368
|
+
exportAs: ["listItemRef"]
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
kind: "component",
|
|
1372
|
+
type: WmAppIconComponent,
|
|
1373
|
+
selector: "wm-app-icon",
|
|
1374
|
+
inputs: [
|
|
1375
|
+
"icon",
|
|
1376
|
+
"iconclass",
|
|
1377
|
+
"iconurl",
|
|
1378
|
+
"defaultIconClass",
|
|
1379
|
+
"defaultClasses",
|
|
1380
|
+
"iconStyle",
|
|
1381
|
+
"alt"
|
|
1382
|
+
]
|
|
1383
|
+
}
|
|
1384
|
+
],
|
|
1385
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1535
1388
|
};
|
|
1536
|
-
ListComponent = __decorate([
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
}, {
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1389
|
+
ListComponent = __decorate([AutoLayout({ targetSelector: "ul" }), __metadata("design:paramtypes", [
|
|
1390
|
+
Injector,
|
|
1391
|
+
ChangeDetectorRef,
|
|
1392
|
+
ToDatePipe,
|
|
1393
|
+
App,
|
|
1394
|
+
AppDefaults,
|
|
1395
|
+
NgZone,
|
|
1396
|
+
String,
|
|
1397
|
+
String,
|
|
1398
|
+
String,
|
|
1399
|
+
String,
|
|
1400
|
+
String,
|
|
1401
|
+
String,
|
|
1402
|
+
StatePersistence,
|
|
1403
|
+
PaginationService,
|
|
1404
|
+
Object
|
|
1405
|
+
])], ListComponent);
|
|
1406
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1407
|
+
minVersion: "12.0.0",
|
|
1408
|
+
version: "22.2.1",
|
|
1409
|
+
ngImport: i0,
|
|
1410
|
+
type: ListComponent,
|
|
1411
|
+
decorators: [{
|
|
1412
|
+
type: Component,
|
|
1413
|
+
args: [{
|
|
1414
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
1415
|
+
standalone: true,
|
|
1416
|
+
imports: [
|
|
1417
|
+
CommonModule,
|
|
1418
|
+
TextContentDirective,
|
|
1419
|
+
PaginationComponent,
|
|
1420
|
+
ListItemDirective,
|
|
1421
|
+
WmAppIconComponent
|
|
1422
|
+
],
|
|
1423
|
+
selector: "div[wmList]",
|
|
1424
|
+
providers: [provideAsWidgetRef(ListComponent)],
|
|
1425
|
+
template: "@if (title || subheading || iconclass || iconurl) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" [defaultClasses]=\"'panel-icon'\" alt=\"List icon\"></wm-app-icon>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n </h3>\n </div>\n}\n\n@if (navigation === 'Inline' && !noDataFound) {\n <div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\" aria-label=\"Page navigation\">\n <ul class=\"pager\">\n <li class=\"previous\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisablePrevious : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('prev', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisablePrevious\">\n <i class=\"wi wi-chevron-left\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Previous page {{dataNavigator.isDisablePrevious ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n </div>\n}\n@if (navigation === 'Inline' && !noDataFound) {\n <div aria-live=\"polite\" aria-atomic=\"true\" class=\"sr-only\"> {{'Page ' + dataNavigator.dn.currentPage + ' of ' + dataNavigator.pageCount }}</div>\n}\n\n<div>\n @if (enablereorder) {\n <div id={{titleId}} class=\"sr-only\">\n Press space bar to toggle drag drop mode, use arrow keys to move selected elements.\n </div>\n }\n\n @if (listItems && enablereorder && currentIndex) {\n <div aria-live=\"assertive\" class=\"sr-only\" >\n {{ariaText + currentIndex + ' of ' + listItems.length}}\n </div>\n }\n</div>\n\n<ul [attr.tabindex]=\"tabindex\" class=\"list-group app-livelist-container clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}} {{listclass}}\" role=\"list\"\n [class.list-group-autolayout]=\"hasAutolayout\"\n (keydown.enter)=\"handleKeyDown($event, 'select')\"\n\n (keydown.space)=\"handleKeyDown($event, 'space')\"\n\n (keydown.arrowup)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowdown)=\"handleKeyDown($event, 'focusNext')\"\n (keydown.arrowleft)=\"handleKeyDown($event, 'focusPrev')\"\n (keydown.arrowright)=\"handleKeyDown($event, 'focusNext')\"\n\n (keydown.shift.arrowup)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowdown)=\"handleKeyDown($event, 'selectNext')\"\n (keydown.shift.arrowleft)=\"handleKeyDown($event, 'selectPrev')\"\n (keydown.shift.arrowright)=\"handleKeyDown($event, 'selectNext')\"\n [hidden]=\"noDataFound && !variableInflight\"\n >\n @if (!groupby) {\n @for (item of fieldDefs; track item) {\n <li class=\"app-list-item {{direction === 'horizontal' ? '' : itemsPerRowClass}}\" [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\"\n #listItemRef=\"listItemRef\"\n [attr.tabindex]=\"tabindex\"\n role=\"listitem\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('falt_' + listItemRef.trackId, {item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n }\n } @else {\n @for (groupObj of groupedData; track groupObj; let groupIndex = $index) {\n <li class=\"app-list-item-group clearfix\">\n <ul [attr.tabindex]=\"tabindex\" class=\"list-group item-group\" [ngClass]=\"listclass\" [class.list-group-autolayout]=\"hasAutolayout\">\n <li class=\"app-list-item-header list-item list-group-header\" (click)=\"handleHeaderClick($event)\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4>{{groupObj.key}}\n <div class=\"header-action\">\n @if (collapsible) {\n <i class=\"app-icon wi action wi-chevron-up\"></i>\n }\n @if (showcount) {\n <span class=\"label label-default\">{{groupObj.data.length}}</span>\n }\n </div>\n </h4>\n </li>\n <li class=\"list-group-container\">\n <ul class=\"list-group clearfix {{direction === 'horizontal' ? 'app-horizontal-list': ''}}\" [class.list-group-autolayout]=\"hasAutolayout\">\n @for (item of groupObj.data; track trackByFn($index, item)) {\n <li [attr.tabindex]=\"tabindex\"\n class=\"app-list-item group-list-item {{itemsPerRowClass}}\"\n [ngClass]=\"listItemRef.itemClass\"\n [wmListItem]=\"item\" #listItemRef=\"listItemRef\">\n <ng-container [ngTemplateOutlet]=\"listTemplate\"\n [ngTemplateOutletInjector]=\"createCustomInjector('group_' + listItemRef.trackId, {item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets})\"\n [ngTemplateOutletContext]=\"{item: item, row: item, $index: $index, itemRef: listItemRef, $first: $first, $last: $last, currentItemWidgets: listItemRef.currentItemWidgets}\"></ng-container>\n </li>\n }\n </ul>\n </li>\n </ul>\n </li>\n }\n }\n <ng-container [ngTemplateOutlet]=\"listLeftActionTemplate\"></ng-container>\n <ng-container [ngTemplateOutlet]=\"listRightActionTemplate\"></ng-container>\n</ul>\n\n@if (noDataFound && !variableInflight) {\n <div class=\"no-data-msg\" [textContent]=\"nodatamessage\"></div>\n}\n\n@if (variableInflight && !pulltorefresh) {\n <div class=\"loading-data-msg\">\n <span>\n <wm-app-icon [iconclass]=\"loadingicon\" [iconurl]=\"loadingiconurl\" [defaultClasses]=\"'panel-icon'\" alt=\"loading icon\"></wm-app-icon>\n <span class=\"sr-only\">Loading</span>\n <span class=\"loading-text\" [textContent]=\"loadingdatamsg\"></span>\n </span>\n </div>\n}\n\n@if (navigation === 'Inline' && !noDataFound) {\n <div class=\"app-datanavigator\" [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <ul class=\"pager\">\n <li class=\"next\" [ngClass]=\"{'disabled': (dataNavigator ? dataNavigator.isDisableNext : true)}\">\n <a href=\"javascript:void(0);\" (click)=\"dataNavigator.navigatePage('next', $event)\"\n [attr.aria-disabled]=\"dataNavigator.isDisableNext\">\n <i class=\"wi wi-chevron-right\" aria-hidden=\"true\"></i>\n <span class=\"sr-only\">Go to Next page {{dataNavigator.isDisableNext ? ', Disabled' : ''}}</span>\n </a>\n </li>\n </ul>\n </div>\n}\n\n@if (navigation !== 'None') {\n <div class=\"panel-footer\" [hidden]=\"!showNavigation || (onDemandLoad && dataNavigator.isDisableNext) || (dataNavigator?.dataSize <= pagesize && !allowpagesizechange) || (!dataNavigator.dataSize && !dataNavigator.datasource?.pagination?.next)\">\n <nav wmPagination\n navigationalign.bind=\"navigationalign\"\n navigation.bind=\"navControls\"\n showrecordcount.bind=\"showrecordcount\"\n maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\"\n directionlinks.bind=\"directionlinks\"\n show.bind=\"!onDemandLoad\"\n paginationchange.event=\"beforePaginationChange($event, $index)\"\n ></nav>\n @if (onDemandLoad) {\n <a href=\"javascript:void(0);\"\n (click)=\"dataNavigator.navigatePage('next', $event)\"\n class=\"app-button btn btn-block\"\n [ngClass]=\"paginationclass\"\n [textContent]=\"ondemandmessage\"\n ></a>\n }\n </div>\n}\n\n<!--This template will be displayed when groupby is specified-->\n"
|
|
1426
|
+
}]
|
|
1427
|
+
}],
|
|
1428
|
+
ctorParameters: () => [
|
|
1429
|
+
{ type: i0.Injector },
|
|
1430
|
+
{ type: i0.ChangeDetectorRef },
|
|
1431
|
+
{ type: i1.ToDatePipe },
|
|
1432
|
+
{ type: i1$1.App },
|
|
1433
|
+
{ type: i1$1.AppDefaults },
|
|
1434
|
+
{ type: i0.NgZone },
|
|
1435
|
+
{
|
|
1436
|
+
type: void 0,
|
|
1437
|
+
decorators: [{
|
|
1438
|
+
type: Attribute,
|
|
1439
|
+
args: ["itemclass.bind"]
|
|
1440
|
+
}]
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
type: void 0,
|
|
1444
|
+
decorators: [{
|
|
1445
|
+
type: Attribute,
|
|
1446
|
+
args: ["disableitem.bind"]
|
|
1447
|
+
}]
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
type: void 0,
|
|
1451
|
+
decorators: [{
|
|
1452
|
+
type: Attribute,
|
|
1453
|
+
args: ["dataset.bind"]
|
|
1454
|
+
}]
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
type: void 0,
|
|
1458
|
+
decorators: [{
|
|
1459
|
+
type: Attribute,
|
|
1460
|
+
args: ["datasource.bind"]
|
|
1461
|
+
}]
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
type: void 0,
|
|
1465
|
+
decorators: [{
|
|
1466
|
+
type: Attribute,
|
|
1467
|
+
args: ["mouseenter.event"]
|
|
1468
|
+
}]
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
type: void 0,
|
|
1472
|
+
decorators: [{
|
|
1473
|
+
type: Attribute,
|
|
1474
|
+
args: ["mouseleave.event"]
|
|
1475
|
+
}]
|
|
1476
|
+
},
|
|
1477
|
+
{ type: i1$1.StatePersistence },
|
|
1478
|
+
{ type: i1$1.PaginationService },
|
|
1479
|
+
{
|
|
1480
|
+
type: void 0,
|
|
1481
|
+
decorators: [{
|
|
1482
|
+
type: Inject,
|
|
1483
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
1484
|
+
}, { type: Optional }]
|
|
1485
|
+
}
|
|
1486
|
+
],
|
|
1487
|
+
propDecorators: {
|
|
1488
|
+
listTemplate: [{
|
|
1489
|
+
type: ContentChild,
|
|
1490
|
+
args: ["listTemplate"]
|
|
1491
|
+
}],
|
|
1492
|
+
listLeftActionTemplate: [{
|
|
1493
|
+
type: ContentChild,
|
|
1494
|
+
args: ["listLeftActionTemplate"]
|
|
1495
|
+
}],
|
|
1496
|
+
listRightActionTemplate: [{
|
|
1497
|
+
type: ContentChild,
|
|
1498
|
+
args: ["listRightActionTemplate"]
|
|
1499
|
+
}],
|
|
1500
|
+
btnComponents: [{
|
|
1501
|
+
type: ContentChildren,
|
|
1502
|
+
args: [ButtonComponent]
|
|
1503
|
+
}],
|
|
1504
|
+
dataNavigator: [{
|
|
1505
|
+
type: ViewChild,
|
|
1506
|
+
args: [PaginationComponent]
|
|
1507
|
+
}],
|
|
1508
|
+
listItems: [{
|
|
1509
|
+
type: ViewChildren,
|
|
1510
|
+
args: [ListItemDirective]
|
|
1511
|
+
}]
|
|
1512
|
+
}
|
|
1513
|
+
});
|
|
1598
1514
|
export { ListComponent, ListItemDirective };
|
|
1599
|
-
|
|
1515
|
+
|
|
1516
|
+
//# sourceMappingURL=index.mjs.map
|