@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,380 +1,516 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(this, (function (exports, i0, i1, i1
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('ngx-bootstrap/modal'), require('@wm/core'), require('@wm/components/base'), require('@angular/common'), require('@angular/router')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'ngx-bootstrap/modal', '@wm/core', '@wm/components/base', '@angular/common', '@angular/router'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.dialogs = {}), global.ng.core, global.ngxBootstrap.modal, global.wm.core, global.wm.components.base, global.ng.common, global.ng.router));
|
|
5
|
+
})(this, (function (exports, i0, i1$1, i1, base, i2, router) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
+
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
29
|
+
const DEFAULT_CLS$1 = "app-dialog-body modal-body";
|
|
30
|
+
var DialogBodyDirective = class DialogBodyDirective {
|
|
31
|
+
constructor(elRef, dialogRef, bsModal, renderer) {
|
|
32
|
+
this.dialogRef = dialogRef;
|
|
33
|
+
this.renderer = renderer;
|
|
34
|
+
i1.addClass(elRef.nativeElement, DEFAULT_CLS$1);
|
|
35
|
+
this.bsModalShownSubscription = bsModal.onShown.subscribe(() => {
|
|
36
|
+
const dialogRoot = $(elRef.nativeElement).closest(".app-dialog")[0];
|
|
37
|
+
const dialogContent = $(elRef.nativeElement).closest(".modal-content")[0];
|
|
38
|
+
let dialogRootContainer = $("body.wm-app")[0];
|
|
39
|
+
if (!dialogRootContainer) {
|
|
40
|
+
const dialogBackrop = $("body > .modal-backdrop")[0];
|
|
41
|
+
const parentContainer = $("body > modal-container")[0];
|
|
42
|
+
dialogRootContainer = $(".wm-app")[0];
|
|
43
|
+
if (dialogRootContainer && parentContainer) {
|
|
44
|
+
if (dialogBackrop) this.renderer.appendChild(dialogRootContainer, dialogBackrop);
|
|
45
|
+
this.renderer.appendChild(dialogRootContainer, parentContainer);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const isSheet = this.dialogRef.sheet;
|
|
49
|
+
const sheetPosition = this.dialogRef.sheetPosition;
|
|
50
|
+
if (isSheet) {
|
|
51
|
+
$(dialogRoot).addClass("modal-sheet");
|
|
52
|
+
$(dialogRoot).addClass(i1.getSheetPositionClass(sheetPosition));
|
|
53
|
+
}
|
|
54
|
+
const animation = this.dialogRef.animation;
|
|
55
|
+
if (animation) {
|
|
56
|
+
$(dialogContent).addClass("animated");
|
|
57
|
+
$(dialogContent).addClass(animation);
|
|
58
|
+
}
|
|
59
|
+
const width = this.dialogRef.width;
|
|
60
|
+
const height = this.dialogRef.height;
|
|
61
|
+
if (height) setTimeout((e) => {
|
|
62
|
+
i1.setCSS($(elRef.nativeElement)[0], "height", height);
|
|
63
|
+
});
|
|
64
|
+
if (dialogRoot) {
|
|
65
|
+
if (width) i1.setCSS(dialogRoot, "width", width);
|
|
66
|
+
i1.setAttr(dialogRoot, "tabindex", this.dialogRef.tabindex);
|
|
67
|
+
i1.setAttr(dialogRoot, "name", this.dialogRef.name);
|
|
68
|
+
}
|
|
69
|
+
if (this.bsModalShownSubscription) {
|
|
70
|
+
this.bsModalShownSubscription.unsubscribe();
|
|
71
|
+
this.bsModalShownSubscription = null;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
ngOnDestroy() {
|
|
76
|
+
if (this.bsModalShownSubscription) {
|
|
77
|
+
this.bsModalShownSubscription.unsubscribe();
|
|
78
|
+
this.bsModalShownSubscription = null;
|
|
79
|
+
}
|
|
80
|
+
this.dialogRef = null;
|
|
81
|
+
}
|
|
82
|
+
static {
|
|
83
|
+
this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
|
|
84
|
+
minVersion: "12.0.0",
|
|
85
|
+
version: "22.2.1",
|
|
86
|
+
ngImport: i0__namespace,
|
|
87
|
+
type: DialogBodyDirective,
|
|
88
|
+
deps: [
|
|
89
|
+
{ token: i0__namespace.ElementRef },
|
|
90
|
+
{ token: base.DialogRef },
|
|
91
|
+
{ token: i1$1__namespace.BsModalService },
|
|
92
|
+
{ token: i0__namespace.Renderer2 }
|
|
93
|
+
],
|
|
94
|
+
target: i0__namespace.ɵɵFactoryTarget.Directive
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
static {
|
|
98
|
+
this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
|
|
99
|
+
minVersion: "14.0.0",
|
|
100
|
+
version: "22.2.1",
|
|
101
|
+
type: DialogBodyDirective,
|
|
102
|
+
isStandalone: true,
|
|
103
|
+
selector: "div[wmDialogBody]",
|
|
104
|
+
host: { properties: { "style.height": "this.height" } },
|
|
105
|
+
ngImport: i0__namespace
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
i0__namespace.ɵɵngDeclareClassMetadata({
|
|
110
|
+
minVersion: "12.0.0",
|
|
111
|
+
version: "22.2.1",
|
|
112
|
+
ngImport: i0__namespace,
|
|
113
|
+
type: DialogBodyDirective,
|
|
114
|
+
decorators: [{
|
|
115
|
+
type: i0.Directive,
|
|
116
|
+
args: [{
|
|
117
|
+
standalone: true,
|
|
118
|
+
selector: "div[wmDialogBody]"
|
|
119
|
+
}]
|
|
120
|
+
}],
|
|
121
|
+
ctorParameters: () => [
|
|
122
|
+
{ type: i0__namespace.ElementRef },
|
|
123
|
+
{
|
|
124
|
+
type: void 0,
|
|
125
|
+
decorators: [{
|
|
126
|
+
type: i0.Inject,
|
|
127
|
+
args: [base.DialogRef]
|
|
128
|
+
}]
|
|
129
|
+
},
|
|
130
|
+
{ type: i1$1__namespace.BsModalService },
|
|
131
|
+
{ type: i0__namespace.Renderer2 }
|
|
132
|
+
],
|
|
133
|
+
propDecorators: { height: [{
|
|
134
|
+
type: i0.HostBinding,
|
|
135
|
+
args: ["style.height"]
|
|
136
|
+
}] }
|
|
137
|
+
});
|
|
138
|
+
const registerProps = () => {
|
|
139
|
+
base.register("wm-dialogfooter", /* @__PURE__ */ new Map([
|
|
140
|
+
["class", base.PROP_STRING],
|
|
141
|
+
["name", base.PROP_STRING],
|
|
142
|
+
["show", {
|
|
143
|
+
value: true,
|
|
144
|
+
...base.PROP_BOOLEAN
|
|
145
|
+
}]
|
|
146
|
+
]));
|
|
147
|
+
};
|
|
148
|
+
const WIDGET_INFO = {
|
|
149
|
+
widgetType: "wm-dialogfooter",
|
|
150
|
+
hostClass: "app-dialog-footer modal-footer"
|
|
151
|
+
};
|
|
152
|
+
var DialogFooterDirective = class DialogFooterDirective extends base.BaseComponent {
|
|
153
|
+
static {
|
|
154
|
+
this.initializeProps = registerProps();
|
|
155
|
+
}
|
|
156
|
+
constructor(inj, explicitContext) {
|
|
157
|
+
super(inj, WIDGET_INFO, explicitContext);
|
|
158
|
+
}
|
|
159
|
+
static {
|
|
160
|
+
this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
|
|
161
|
+
minVersion: "12.0.0",
|
|
162
|
+
version: "22.2.1",
|
|
163
|
+
ngImport: i0__namespace,
|
|
164
|
+
type: DialogFooterDirective,
|
|
165
|
+
deps: [{ token: i0__namespace.Injector }, {
|
|
166
|
+
token: "EXPLICIT_CONTEXT",
|
|
167
|
+
optional: true
|
|
168
|
+
}],
|
|
169
|
+
target: i0__namespace.ɵɵFactoryTarget.Directive
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
static {
|
|
173
|
+
this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
|
|
174
|
+
minVersion: "14.0.0",
|
|
175
|
+
version: "22.2.1",
|
|
176
|
+
type: DialogFooterDirective,
|
|
177
|
+
isStandalone: true,
|
|
178
|
+
selector: "div[wmDialogFooter]",
|
|
179
|
+
providers: [base.provideAsWidgetRef(DialogFooterDirective)],
|
|
180
|
+
usesInheritance: true,
|
|
181
|
+
ngImport: i0__namespace
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
i0__namespace.ɵɵngDeclareClassMetadata({
|
|
186
|
+
minVersion: "12.0.0",
|
|
187
|
+
version: "22.2.1",
|
|
188
|
+
ngImport: i0__namespace,
|
|
189
|
+
type: DialogFooterDirective,
|
|
190
|
+
decorators: [{
|
|
191
|
+
type: i0.Directive,
|
|
192
|
+
args: [{
|
|
193
|
+
standalone: true,
|
|
194
|
+
selector: "div[wmDialogFooter]",
|
|
195
|
+
providers: [base.provideAsWidgetRef(DialogFooterDirective)]
|
|
196
|
+
}]
|
|
197
|
+
}],
|
|
198
|
+
ctorParameters: () => [{ type: i0__namespace.Injector }, {
|
|
199
|
+
type: void 0,
|
|
200
|
+
decorators: [{
|
|
201
|
+
type: i0.Inject,
|
|
202
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
203
|
+
}, { type: i0.Optional }]
|
|
204
|
+
}]
|
|
205
|
+
});
|
|
206
|
+
const invokeOpenedCallback = (ref) => {
|
|
207
|
+
setTimeout(() => {
|
|
208
|
+
const root = i1.findRootContainer(ref.$element);
|
|
209
|
+
if (root) $("body > modal-container > div").wrap("<" + root + "/>");
|
|
210
|
+
ref.invokeEventCallback("opened", { $event: { type: "opened" } });
|
|
211
|
+
const keyboardFocusableElements = [$("[aria-labelledby= " + ref.titleId + "]")[0].querySelectorAll("a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex=\"-1\"])")].filter((el) => {
|
|
212
|
+
return !el[0].hasAttribute("disabled") && !el[0].hasAttribute("hidden");
|
|
213
|
+
})[0];
|
|
214
|
+
$(keyboardFocusableElements[0]).focus();
|
|
215
|
+
const openedDialogs = ref.dialogService.getOpenedDialogs();
|
|
216
|
+
if (openedDialogs.length > 1) {
|
|
217
|
+
const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 2].titleId + "]").css("z-index"));
|
|
218
|
+
$("[aria-labelledby= " + ref.dialogService.getLastOpenedDialog().titleId + "]").css("z-index", zIndex + 2);
|
|
219
|
+
$("bs-modal-backdrop").css("z-index", zIndex + 1);
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
const invokeClosedCallback = (ref) => {
|
|
224
|
+
ref.invokeEventCallback("close");
|
|
225
|
+
ref.dialogRef = void 0;
|
|
226
|
+
const openedDialogs = ref.dialogService.getOpenedDialogs();
|
|
227
|
+
if (openedDialogs.length >= 1) {
|
|
228
|
+
const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 1].titleId + "]").css("z-index"));
|
|
229
|
+
$("bs-modal-backdrop").css("z-index", zIndex - 1);
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
var BaseDialog = class BaseDialog extends base.BaseComponent {
|
|
233
|
+
constructor(inj, config, modalOptions, explicitContext) {
|
|
234
|
+
super(inj, config, explicitContext);
|
|
235
|
+
this.modalOptions = modalOptions;
|
|
236
|
+
this.titleId = "wmdialog-" + i1.generateGUId();
|
|
237
|
+
this.dialogOriginFocusStack = [];
|
|
238
|
+
this.dialogService = inj.get(i1.AbstractDialogService);
|
|
239
|
+
this.bsModal = inj.get(i1$1.BsModalService);
|
|
240
|
+
const router$1 = inj.get(router.Router);
|
|
241
|
+
const subscriptions = [
|
|
242
|
+
this.bsModal.onShown.subscribe(({ id }) => {
|
|
243
|
+
const ref = this.dialogService.getLastOpenedDialog();
|
|
244
|
+
if (ref === this && !this.dialogId) {
|
|
245
|
+
invokeOpenedCallback(ref);
|
|
246
|
+
this.dialogId = id;
|
|
247
|
+
}
|
|
248
|
+
}),
|
|
249
|
+
this.bsModal.onShow.subscribe(() => {}),
|
|
250
|
+
this.bsModal.onHidden.subscribe((closeReason) => {
|
|
251
|
+
let ref = this.dialogService.getDialogRefFromClosedDialogs();
|
|
252
|
+
if (this.dialogId && closeReason?.id === this.dialogId) ref = this;
|
|
253
|
+
else if (closeReason === "esc" || closeReason === "backdrop-click") ref = this.dialogService.getLastOpenedDialog();
|
|
254
|
+
if (ref === this) {
|
|
255
|
+
this.dialogId = null;
|
|
256
|
+
this.dialogService.removeFromOpenedDialogs(ref);
|
|
257
|
+
this.dialogService.removeFromClosedDialogs(ref);
|
|
258
|
+
invokeClosedCallback(ref);
|
|
259
|
+
if (ref.closeCallBackFn) ref.closeCallBackFn();
|
|
260
|
+
}
|
|
261
|
+
}),
|
|
262
|
+
this.bsModal.onHide.subscribe(() => {}),
|
|
263
|
+
router$1.events.subscribe((e) => {
|
|
264
|
+
if (e instanceof router.NavigationEnd) this.close();
|
|
265
|
+
})
|
|
266
|
+
];
|
|
267
|
+
this.registerDestroyListener(() => {
|
|
268
|
+
this.dialogService.removeFromOpenedDialogs(this);
|
|
269
|
+
this.dialogService.removeFromClosedDialogs(this);
|
|
270
|
+
subscriptions.forEach((s) => s.unsubscribe());
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
open(initState) {
|
|
274
|
+
const duplicateDialogCheck = (openedDialog) => {
|
|
275
|
+
return openedDialog === this;
|
|
276
|
+
};
|
|
277
|
+
if (this.dialogService.getOpenedDialogs().some(duplicateDialogCheck)) return;
|
|
278
|
+
this.dialogService.addToOpenedDialogs(this);
|
|
279
|
+
Object.assign(this.context, initState);
|
|
280
|
+
this.modalOptions.ariaLabelledBy = this.titleId;
|
|
281
|
+
this.dialogOriginFocusStack.push(document.activeElement);
|
|
282
|
+
this.dialogRef = this.bsModal.show(this.getTemplateRef(), this.modalOptions);
|
|
283
|
+
if (this.dialogService.getOpenedDialogs().length === 1 && i1.isMobile()) $("body > app-root")[0].setAttribute("aria-hidden", "true");
|
|
284
|
+
$(".cdk-focus-trap-anchor").removeAttr("aria-hidden");
|
|
285
|
+
}
|
|
286
|
+
close() {
|
|
287
|
+
if (this.dialogRef) {
|
|
288
|
+
const lastDialogOrigin = this.dialogOriginFocusStack.pop();
|
|
289
|
+
this.dialogService.addToClosedDialogs(this);
|
|
290
|
+
this.dialogRef.hide();
|
|
291
|
+
lastDialogOrigin?.focus();
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
register(scope) {
|
|
295
|
+
this.dialogService.register(this.name, this, scope);
|
|
296
|
+
}
|
|
297
|
+
deRegister(scope) {
|
|
298
|
+
this.dialogService.deRegister(this.name, scope);
|
|
299
|
+
}
|
|
300
|
+
onPropertyChange(key, nv, ov) {
|
|
301
|
+
if (key === "class" || key === "name" || key === "tabindex") return;
|
|
302
|
+
else if (key === "animation") {
|
|
303
|
+
this.modalOptions.class = this.modalOptions.class.replace(" animated " + ov, "");
|
|
304
|
+
if (nv) this.modalOptions.class = this.modalOptions.class + " animated " + nv;
|
|
305
|
+
}
|
|
306
|
+
super.onPropertyChange(key, nv, ov);
|
|
307
|
+
}
|
|
308
|
+
ngOnDestroy() {
|
|
309
|
+
this.close();
|
|
310
|
+
this.deRegister(this.viewParent);
|
|
311
|
+
super.ngOnDestroy();
|
|
312
|
+
}
|
|
313
|
+
static {
|
|
314
|
+
this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
|
|
315
|
+
minVersion: "12.0.0",
|
|
316
|
+
version: "22.2.1",
|
|
317
|
+
ngImport: i0__namespace,
|
|
318
|
+
type: BaseDialog,
|
|
319
|
+
deps: [
|
|
320
|
+
{ token: i0__namespace.Injector },
|
|
321
|
+
{ token: base.WidgetConfig },
|
|
322
|
+
{ token: i1$1__namespace.ModalOptions },
|
|
323
|
+
{
|
|
324
|
+
token: "EXPLICIT_CONTEXT",
|
|
325
|
+
optional: true
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
target: i0__namespace.ɵɵFactoryTarget.Injectable
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
static {
|
|
332
|
+
this.ɵprov = i0__namespace.ɵɵngDeclareInjectable({
|
|
333
|
+
minVersion: "12.0.0",
|
|
334
|
+
version: "22.2.1",
|
|
335
|
+
ngImport: i0__namespace,
|
|
336
|
+
type: BaseDialog
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
i0__namespace.ɵɵngDeclareClassMetadata({
|
|
341
|
+
minVersion: "12.0.0",
|
|
342
|
+
version: "22.2.1",
|
|
343
|
+
ngImport: i0__namespace,
|
|
344
|
+
type: BaseDialog,
|
|
345
|
+
decorators: [{ type: i0.Injectable }],
|
|
346
|
+
ctorParameters: () => [
|
|
347
|
+
{ type: i0__namespace.Injector },
|
|
348
|
+
{
|
|
349
|
+
type: void 0,
|
|
350
|
+
decorators: [{
|
|
351
|
+
type: i0.Inject,
|
|
352
|
+
args: [base.WidgetConfig]
|
|
353
|
+
}]
|
|
354
|
+
},
|
|
355
|
+
{ type: i1$1__namespace.ModalOptions },
|
|
356
|
+
{
|
|
357
|
+
type: void 0,
|
|
358
|
+
decorators: [{
|
|
359
|
+
type: i0.Inject,
|
|
360
|
+
args: ["EXPLICIT_CONTEXT"]
|
|
361
|
+
}, { type: i0.Optional }]
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
});
|
|
365
|
+
const DEFAULT_CLS = "app-dialog-header modal-header";
|
|
366
|
+
const DEFAULT_ICON_DIMENSIONS = "21px";
|
|
367
|
+
var DialogHeaderComponent = class DialogHeaderComponent {
|
|
368
|
+
get isClosable() {
|
|
369
|
+
return i1.toBoolean(this.closable);
|
|
370
|
+
}
|
|
371
|
+
constructor(elRef, dialogRef, app) {
|
|
372
|
+
this.dialogRef = dialogRef;
|
|
373
|
+
this.app = app;
|
|
374
|
+
this.iconwidth = DEFAULT_ICON_DIMENSIONS;
|
|
375
|
+
this.iconheight = DEFAULT_ICON_DIMENSIONS;
|
|
376
|
+
this.closable = true;
|
|
377
|
+
this.headinglevel = "h4";
|
|
378
|
+
i1.addClass(elRef.nativeElement, DEFAULT_CLS);
|
|
379
|
+
this.isPrism = this.app.isPrism;
|
|
380
|
+
}
|
|
381
|
+
closeDialog() {
|
|
382
|
+
this.dialogRef.close();
|
|
383
|
+
}
|
|
384
|
+
static {
|
|
385
|
+
this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
|
|
386
|
+
minVersion: "12.0.0",
|
|
387
|
+
version: "22.2.1",
|
|
388
|
+
ngImport: i0__namespace,
|
|
389
|
+
type: DialogHeaderComponent,
|
|
390
|
+
deps: [
|
|
391
|
+
{ token: i0__namespace.ElementRef },
|
|
392
|
+
{ token: base.DialogRef },
|
|
393
|
+
{ token: i1__namespace.App }
|
|
394
|
+
],
|
|
395
|
+
target: i0__namespace.ɵɵFactoryTarget.Component
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
static {
|
|
399
|
+
this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
|
|
400
|
+
minVersion: "17.0.0",
|
|
401
|
+
version: "22.2.1",
|
|
402
|
+
type: DialogHeaderComponent,
|
|
403
|
+
isStandalone: true,
|
|
404
|
+
selector: "div[wmDialogHeader]",
|
|
405
|
+
inputs: {
|
|
406
|
+
iconwidth: "iconwidth",
|
|
407
|
+
iconheight: "iconheight",
|
|
408
|
+
iconmargin: "iconmargin",
|
|
409
|
+
iconclass: "iconclass",
|
|
410
|
+
iconurl: "iconurl",
|
|
411
|
+
closable: "closable",
|
|
412
|
+
heading: "heading",
|
|
413
|
+
headinglevel: "headinglevel",
|
|
414
|
+
subheading: "subheading",
|
|
415
|
+
titleid: "titleid",
|
|
416
|
+
title: "title"
|
|
417
|
+
},
|
|
418
|
+
ngImport: i0__namespace,
|
|
419
|
+
template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n",
|
|
420
|
+
dependencies: [
|
|
421
|
+
{
|
|
422
|
+
kind: "ngmodule",
|
|
423
|
+
type: i2.CommonModule
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
kind: "directive",
|
|
427
|
+
type: i2__namespace.NgClass,
|
|
428
|
+
selector: "[ngClass]",
|
|
429
|
+
inputs: ["class", "ngClass"]
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
kind: "directive",
|
|
433
|
+
type: i2__namespace.NgTemplateOutlet,
|
|
434
|
+
selector: "[ngTemplateOutlet]",
|
|
435
|
+
inputs: [
|
|
436
|
+
"ngTemplateOutletContext",
|
|
437
|
+
"ngTemplateOutlet",
|
|
438
|
+
"ngTemplateOutletInjector"
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
kind: "directive",
|
|
443
|
+
type: base.TextContentDirective,
|
|
444
|
+
selector: "[textContent]",
|
|
445
|
+
inputs: ["textContent"]
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
kind: "component",
|
|
449
|
+
type: base.WmAppIconComponent,
|
|
450
|
+
selector: "wm-app-icon",
|
|
451
|
+
inputs: [
|
|
452
|
+
"icon",
|
|
453
|
+
"iconclass",
|
|
454
|
+
"iconurl",
|
|
455
|
+
"defaultIconClass",
|
|
456
|
+
"defaultClasses",
|
|
457
|
+
"iconStyle",
|
|
458
|
+
"alt"
|
|
459
|
+
]
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
i0__namespace.ɵɵngDeclareClassMetadata({
|
|
467
|
+
minVersion: "12.0.0",
|
|
468
|
+
version: "22.2.1",
|
|
469
|
+
ngImport: i0__namespace,
|
|
470
|
+
type: DialogHeaderComponent,
|
|
471
|
+
decorators: [{
|
|
472
|
+
type: i0.Component,
|
|
473
|
+
args: [{
|
|
474
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager,
|
|
475
|
+
standalone: true,
|
|
476
|
+
imports: [
|
|
477
|
+
i2.CommonModule,
|
|
478
|
+
base.TextContentDirective,
|
|
479
|
+
base.WmAppIconComponent
|
|
480
|
+
],
|
|
481
|
+
selector: "div[wmDialogHeader]",
|
|
482
|
+
template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n"
|
|
483
|
+
}]
|
|
484
|
+
}],
|
|
485
|
+
ctorParameters: () => [
|
|
486
|
+
{ type: i0__namespace.ElementRef },
|
|
487
|
+
{
|
|
488
|
+
type: BaseDialog,
|
|
489
|
+
decorators: [{
|
|
490
|
+
type: i0.Inject,
|
|
491
|
+
args: [base.DialogRef]
|
|
492
|
+
}]
|
|
493
|
+
},
|
|
494
|
+
{ type: i1__namespace.App }
|
|
495
|
+
],
|
|
496
|
+
propDecorators: {
|
|
497
|
+
iconwidth: [{ type: i0.Input }],
|
|
498
|
+
iconheight: [{ type: i0.Input }],
|
|
499
|
+
iconmargin: [{ type: i0.Input }],
|
|
500
|
+
iconclass: [{ type: i0.Input }],
|
|
501
|
+
iconurl: [{ type: i0.Input }],
|
|
502
|
+
closable: [{ type: i0.Input }],
|
|
503
|
+
heading: [{ type: i0.Input }],
|
|
504
|
+
headinglevel: [{ type: i0.Input }],
|
|
505
|
+
subheading: [{ type: i0.Input }],
|
|
506
|
+
titleid: [{ type: i0.Input }],
|
|
507
|
+
title: [{ type: i0.Input }]
|
|
508
|
+
}
|
|
509
|
+
});
|
|
108
510
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
['show', { value: true, ...base.PROP_BOOLEAN }]
|
|
114
|
-
]));
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const WIDGET_INFO = {
|
|
118
|
-
widgetType: 'wm-dialogfooter',
|
|
119
|
-
hostClass: 'app-dialog-footer modal-footer'
|
|
120
|
-
};
|
|
121
|
-
class DialogFooterDirective extends base.BaseComponent {
|
|
122
|
-
static { this.initializeProps = registerProps(); }
|
|
123
|
-
constructor(inj, explicitContext) {
|
|
124
|
-
super(inj, WIDGET_INFO, explicitContext);
|
|
125
|
-
}
|
|
126
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: DialogFooterDirective, deps: [{ token: i0__namespace.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
127
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: DialogFooterDirective, isStandalone: true, selector: "div[wmDialogFooter]", providers: [
|
|
128
|
-
base.provideAsWidgetRef(DialogFooterDirective)
|
|
129
|
-
], usesInheritance: true, ngImport: i0__namespace }); }
|
|
130
|
-
}
|
|
131
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: DialogFooterDirective, decorators: [{
|
|
132
|
-
type: i0.Directive,
|
|
133
|
-
args: [{
|
|
134
|
-
standalone: true,
|
|
135
|
-
selector: 'div[wmDialogFooter]',
|
|
136
|
-
providers: [
|
|
137
|
-
base.provideAsWidgetRef(DialogFooterDirective)
|
|
138
|
-
]
|
|
139
|
-
}]
|
|
140
|
-
}], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
141
|
-
type: i0.Inject,
|
|
142
|
-
args: ['EXPLICIT_CONTEXT']
|
|
143
|
-
}, {
|
|
144
|
-
type: i0.Optional
|
|
145
|
-
}] }] });
|
|
146
|
-
|
|
147
|
-
const invokeOpenedCallback = (ref) => {
|
|
148
|
-
if (ref) {
|
|
149
|
-
setTimeout(() => {
|
|
150
|
-
const root = i1$1.findRootContainer(ref.$element);
|
|
151
|
-
// if page styles have to be applied to dialog then dialog has to be child of page element.
|
|
152
|
-
if (root) {
|
|
153
|
-
$('body > modal-container > div').wrap('<' + root + '/>');
|
|
154
|
-
}
|
|
155
|
-
ref.invokeEventCallback('opened', { $event: { type: 'opened' } });
|
|
156
|
-
// Focusing the first focusable element when the dialog is opened
|
|
157
|
-
const container = $('[aria-labelledby= ' + ref.titleId + ']')[0];
|
|
158
|
-
const keyboardFocusableElements = [container.querySelectorAll('a, button, input, textarea, select, details, iframe, embed, object, summary dialog, audio[controls], video[controls], [contenteditable], [tabindex]:not([tabindex="-1"])')].filter(el => {
|
|
159
|
-
return (!el[0].hasAttribute('disabled') && !el[0].hasAttribute('hidden'));
|
|
160
|
-
})[0];
|
|
161
|
-
$(keyboardFocusableElements[0]).focus();
|
|
162
|
-
const openedDialogs = ref.dialogService.getOpenedDialogs();
|
|
163
|
-
if (openedDialogs.length > 1) {
|
|
164
|
-
const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 2].titleId + "]").css('z-index'));
|
|
165
|
-
$('[aria-labelledby= ' + ref.dialogService.getLastOpenedDialog().titleId + ']').css('z-index', zIndex + 2);
|
|
166
|
-
$('bs-modal-backdrop').css('z-index', zIndex + 1);
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
const invokeClosedCallback = (ref) => {
|
|
172
|
-
if (ref) {
|
|
173
|
-
ref.invokeEventCallback('close');
|
|
174
|
-
ref.dialogRef = undefined;
|
|
175
|
-
const openedDialogs = ref.dialogService.getOpenedDialogs();
|
|
176
|
-
if (openedDialogs.length >= 1) {
|
|
177
|
-
const zIndex = Number($("[aria-labelledby= " + openedDialogs[openedDialogs.length - 1].titleId + "]").css('z-index'));
|
|
178
|
-
$('bs-modal-backdrop').css('z-index', zIndex - 1);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
class BaseDialog extends base.BaseComponent {
|
|
183
|
-
constructor(inj, config, modalOptions, explicitContext) {
|
|
184
|
-
super(inj, config, explicitContext);
|
|
185
|
-
this.modalOptions = modalOptions;
|
|
186
|
-
this.titleId = 'wmdialog-' + i1$1.generateGUId();
|
|
187
|
-
this.dialogOriginFocusStack = [];
|
|
188
|
-
this.dialogService = inj.get(i1$1.AbstractDialogService);
|
|
189
|
-
this.bsModal = inj.get(i1.BsModalService);
|
|
190
|
-
const router$1 = inj.get(router.Router);
|
|
191
|
-
const subscriptions = [
|
|
192
|
-
this.bsModal.onShown.subscribe(({ id }) => {
|
|
193
|
-
const ref = this.dialogService.getLastOpenedDialog();
|
|
194
|
-
if (ref === this && !this.dialogId) {
|
|
195
|
-
// Always get the reference of last pushed dialog in the array for calling onOpen callback
|
|
196
|
-
invokeOpenedCallback(ref);
|
|
197
|
-
this.dialogId = id;
|
|
198
|
-
}
|
|
199
|
-
}),
|
|
200
|
-
this.bsModal.onShow.subscribe(() => { }),
|
|
201
|
-
this.bsModal.onHidden.subscribe((closeReason) => {
|
|
202
|
-
let ref = this.dialogService.getDialogRefFromClosedDialogs();
|
|
203
|
-
if (this.dialogId && closeReason?.id === this.dialogId) {
|
|
204
|
-
ref = this;
|
|
205
|
-
}
|
|
206
|
-
else if (closeReason === 'esc' || closeReason === 'backdrop-click') {
|
|
207
|
-
ref = this.dialogService.getLastOpenedDialog();
|
|
208
|
-
}
|
|
209
|
-
if (ref === this) {
|
|
210
|
-
this.dialogId = null;
|
|
211
|
-
// remove the dialog reference from opened dialogs and closed dialogs
|
|
212
|
-
this.dialogService.removeFromOpenedDialogs(ref);
|
|
213
|
-
this.dialogService.removeFromClosedDialogs(ref);
|
|
214
|
-
invokeClosedCallback(ref);
|
|
215
|
-
if (ref.closeCallBackFn) {
|
|
216
|
-
ref.closeCallBackFn();
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}),
|
|
220
|
-
this.bsModal.onHide.subscribe(() => { }),
|
|
221
|
-
router$1.events.subscribe(e => {
|
|
222
|
-
if (e instanceof router.NavigationEnd) {
|
|
223
|
-
this.close();
|
|
224
|
-
}
|
|
225
|
-
})
|
|
226
|
-
];
|
|
227
|
-
this.registerDestroyListener(() => {
|
|
228
|
-
this.dialogService.removeFromOpenedDialogs(this);
|
|
229
|
-
this.dialogService.removeFromClosedDialogs(this);
|
|
230
|
-
subscriptions.forEach(s => s.unsubscribe());
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Opens the dialog
|
|
235
|
-
* Subscribe to the onShown event emitter of bsModal and trigger on-opened event callback
|
|
236
|
-
*/
|
|
237
|
-
open(initState) {
|
|
238
|
-
// remove the popovers in the page to avoid the overlap with dialog
|
|
239
|
-
// closePopover(this.$element); Commenting this line because it is causing regression(if we have dialog inside popover as partail content, then the dialog close is not working because on closing the popover the partial get destroyed.)
|
|
240
|
-
// do not open the dialog again if it is already opened
|
|
241
|
-
const duplicateDialogCheck = (openedDialog) => {
|
|
242
|
-
return openedDialog === this;
|
|
243
|
-
};
|
|
244
|
-
if (this.dialogService.getOpenedDialogs().some(duplicateDialogCheck)) {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
this.dialogService.addToOpenedDialogs(this);
|
|
248
|
-
// extend the context with the initState
|
|
249
|
-
Object.assign(this.context, initState);
|
|
250
|
-
this.modalOptions.ariaLabelledBy = this.titleId;
|
|
251
|
-
this.dialogOriginFocusStack.push(document.activeElement);
|
|
252
|
-
this.dialogRef = this.bsModal.show(this.getTemplateRef(), this.modalOptions);
|
|
253
|
-
// Fix for [WMS-23948]: Focus moving out of active Dialog widget
|
|
254
|
-
if (this.dialogService.getOpenedDialogs().length === 1 && (i1$1.isMobile())) {
|
|
255
|
-
const parentSelector = $('body > app-root')[0];
|
|
256
|
-
parentSelector.setAttribute('aria-hidden', 'true');
|
|
257
|
-
}
|
|
258
|
-
$('.cdk-focus-trap-anchor').removeAttr('aria-hidden');
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* closes the dialog
|
|
262
|
-
* invokes the on-close event callback
|
|
263
|
-
*/
|
|
264
|
-
close() {
|
|
265
|
-
// remove the popovers in the page to avoid the overlap with dialog
|
|
266
|
-
// closePopover(this.$element); Commenting this line because it is causing regression(if we have dialog inside popover as partail content, then the dialog close is not working because on closing the popover the partial get destroyed.)
|
|
267
|
-
if (this.dialogRef) {
|
|
268
|
-
const lastDialogOrigin = this.dialogOriginFocusStack.pop();
|
|
269
|
-
this.dialogService.addToClosedDialogs(this);
|
|
270
|
-
this.dialogRef.hide();
|
|
271
|
-
// Return focus to the originating element upon dialog closure
|
|
272
|
-
lastDialogOrigin?.focus();
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Register the dialog with the dialog service for programmatic access
|
|
277
|
-
*/
|
|
278
|
-
register(scope) {
|
|
279
|
-
// add scope along with name in the dialogRefsCollection Map while registering dialog
|
|
280
|
-
// So that 2 dialogs having same name on different pages won't be overridden.
|
|
281
|
-
this.dialogService.register(this.name, this, scope);
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* De Register the dialog with the dialog service after dialog destruction
|
|
285
|
-
*/
|
|
286
|
-
deRegister(scope) {
|
|
287
|
-
this.dialogService.deRegister(this.name, scope);
|
|
288
|
-
}
|
|
289
|
-
onPropertyChange(key, nv, ov) {
|
|
290
|
-
// ignore the class attribute.
|
|
291
|
-
// Prevent the framework from setting the class on the host element.
|
|
292
|
-
if (key === 'class' || key === 'name' || key === 'tabindex') {
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
else if (key === 'animation') {
|
|
296
|
-
this.modalOptions.class = this.modalOptions.class.replace(' animated ' + ov, '');
|
|
297
|
-
if (nv) {
|
|
298
|
-
this.modalOptions.class = this.modalOptions.class + ' animated ' + nv;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
super.onPropertyChange(key, nv, ov);
|
|
302
|
-
}
|
|
303
|
-
ngOnDestroy() {
|
|
304
|
-
this.close();
|
|
305
|
-
this.deRegister(this.viewParent);
|
|
306
|
-
super.ngOnDestroy();
|
|
307
|
-
}
|
|
308
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseDialog, deps: [{ token: i0__namespace.Injector }, { token: base.WidgetConfig }, { token: i1__namespace.ModalOptions }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable }); }
|
|
309
|
-
static { this.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseDialog }); }
|
|
310
|
-
}
|
|
311
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: BaseDialog, decorators: [{
|
|
312
|
-
type: i0.Injectable
|
|
313
|
-
}], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
314
|
-
type: i0.Inject,
|
|
315
|
-
args: [base.WidgetConfig]
|
|
316
|
-
}] }, { type: i1__namespace.ModalOptions }, { type: undefined, decorators: [{
|
|
317
|
-
type: i0.Inject,
|
|
318
|
-
args: ['EXPLICIT_CONTEXT']
|
|
319
|
-
}, {
|
|
320
|
-
type: i0.Optional
|
|
321
|
-
}] }] });
|
|
322
|
-
|
|
323
|
-
const DEFAULT_CLS = 'app-dialog-header modal-header';
|
|
324
|
-
const DEFAULT_ICON_DIMENSIONS = '21px';
|
|
325
|
-
class DialogHeaderComponent {
|
|
326
|
-
get isClosable() {
|
|
327
|
-
return i1$1.toBoolean(this.closable);
|
|
328
|
-
}
|
|
329
|
-
constructor(elRef, dialogRef, app) {
|
|
330
|
-
this.dialogRef = dialogRef;
|
|
331
|
-
this.app = app;
|
|
332
|
-
this.iconwidth = DEFAULT_ICON_DIMENSIONS;
|
|
333
|
-
this.iconheight = DEFAULT_ICON_DIMENSIONS;
|
|
334
|
-
this.closable = true;
|
|
335
|
-
this.headinglevel = 'h4';
|
|
336
|
-
i1$1.addClass(elRef.nativeElement, DEFAULT_CLS);
|
|
337
|
-
this.isPrism = this.app.isPrism;
|
|
338
|
-
}
|
|
339
|
-
closeDialog() {
|
|
340
|
-
this.dialogRef.close();
|
|
341
|
-
}
|
|
342
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: DialogHeaderComponent, deps: [{ token: i0__namespace.ElementRef }, { token: base.DialogRef }, { token: i1$1__namespace.App }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
|
|
343
|
-
static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: DialogHeaderComponent, isStandalone: true, selector: "div[wmDialogHeader]", inputs: { iconwidth: "iconwidth", iconheight: "iconheight", iconmargin: "iconmargin", iconclass: "iconclass", iconurl: "iconurl", closable: "closable", heading: "heading", headinglevel: "headinglevel", subheading: "subheading", titleid: "titleid", title: "title" }, ngImport: i0__namespace, template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: i2.CommonModule }, { kind: "directive", type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: base.TextContentDirective, selector: "[textContent]", inputs: ["textContent"] }, { kind: "component", type: base.WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }] }); }
|
|
344
|
-
}
|
|
345
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: DialogHeaderComponent, decorators: [{
|
|
346
|
-
type: i0.Component,
|
|
347
|
-
args: [{ standalone: true, imports: [i2.CommonModule, base.TextContentDirective, base.WmAppIconComponent], selector: 'div[wmDialogHeader]', template: "@if (isClosable) {\n <button (click)=\"closeDialog();\"\n [attr.aria-label]=\"'Close ' + (title ? title : '') + ' dialog'\" class=\"app-dialog-close close\" [ngClass]=\"{'btn-text': isPrism}\" [attr.title]=\"title ? 'Close ' + title + ' dialog' : dialogRef.appLocale.LABEL_CLOSE\" >\n <span class=\"app-icon wi wi-clear\" aria-hidden=\"true\"></span>\n </button>\n}\n\n@switch (headinglevel) {\n @case ('h1') {\n <h1 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h1>\n }\n @case ('h2') {\n <h2 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h2>\n }\n @case ('h3') {\n <h3 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h3>\n }\n @case ('h4') {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n @case ('h5') {\n <h5 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h5>\n }\n @case ('h6') {\n <h6 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h6>\n }\n @default {\n <h4 class=\"app-dialog-title modal-title\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </h4>\n }\n}\n\n<ng-template #headerTemplate>\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconStyle]=\"{width: iconwidth, height: iconheight, margin: iconmargin, fontSize: iconwidth}\"></wm-app-icon>\n }\n <span class=\"dialog-heading\" [textContent]=\"heading\" [id]=\"titleid\"></span>\n @if (subheading) {\n <span class=\"dialog-sub-heading\" [title]=\"subheading\" [textContent]=\"subheading\"></span>\n }\n</ng-template>\n" }]
|
|
348
|
-
}], ctorParameters: () => [{ type: i0__namespace.ElementRef }, { type: BaseDialog, decorators: [{
|
|
349
|
-
type: i0.Inject,
|
|
350
|
-
args: [base.DialogRef]
|
|
351
|
-
}] }, { type: i1$1__namespace.App }], propDecorators: { iconwidth: [{
|
|
352
|
-
type: i0.Input
|
|
353
|
-
}], iconheight: [{
|
|
354
|
-
type: i0.Input
|
|
355
|
-
}], iconmargin: [{
|
|
356
|
-
type: i0.Input
|
|
357
|
-
}], iconclass: [{
|
|
358
|
-
type: i0.Input
|
|
359
|
-
}], iconurl: [{
|
|
360
|
-
type: i0.Input
|
|
361
|
-
}], closable: [{
|
|
362
|
-
type: i0.Input
|
|
363
|
-
}], heading: [{
|
|
364
|
-
type: i0.Input
|
|
365
|
-
}], headinglevel: [{
|
|
366
|
-
type: i0.Input
|
|
367
|
-
}], subheading: [{
|
|
368
|
-
type: i0.Input
|
|
369
|
-
}], titleid: [{
|
|
370
|
-
type: i0.Input
|
|
371
|
-
}], title: [{
|
|
372
|
-
type: i0.Input
|
|
373
|
-
}] } });
|
|
374
|
-
|
|
375
|
-
exports.BaseDialog = BaseDialog;
|
|
376
|
-
exports.DialogBodyDirective = DialogBodyDirective;
|
|
377
|
-
exports.DialogFooterDirective = DialogFooterDirective;
|
|
378
|
-
exports.DialogHeaderComponent = DialogHeaderComponent;
|
|
511
|
+
exports.BaseDialog = BaseDialog;
|
|
512
|
+
exports.DialogBodyDirective = DialogBodyDirective;
|
|
513
|
+
exports.DialogFooterDirective = DialogFooterDirective;
|
|
514
|
+
exports.DialogHeaderComponent = DialogHeaderComponent;
|
|
379
515
|
|
|
380
516
|
}));
|