@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,817 +1,1180 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler'), require('lodash-es')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/compiler', 'lodash-es'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.transpiler = {}), global.ng.compiler, global._));
|
|
5
5
|
})(this, (function (exports, compiler, lodashEs) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
7
|
+
const NG_FORM_MODULE = [{
|
|
8
|
+
from: "@angular/forms",
|
|
9
|
+
name: "FormsModule",
|
|
10
|
+
as: "ngFormsModule"
|
|
11
|
+
}];
|
|
12
|
+
const NG_REACTIVE_FORM_MODULE = [{
|
|
13
|
+
from: "@angular/forms",
|
|
14
|
+
name: "ReactiveFormsModule",
|
|
15
|
+
as: "ngReactiveFormsModule"
|
|
16
|
+
}];
|
|
17
|
+
const NGX_BS_DATE_PICKER = [{
|
|
18
|
+
from: "ngx-bootstrap/datepicker",
|
|
19
|
+
name: "BsDatepickerModule",
|
|
20
|
+
as: "ngx_BsDatepickerModule"
|
|
21
|
+
}];
|
|
22
|
+
const NGX_CAROUSEL_MODULE = [{
|
|
23
|
+
from: "ngx-bootstrap/carousel",
|
|
24
|
+
name: "CarouselModule",
|
|
25
|
+
as: "ngxCarouselModule"
|
|
26
|
+
}];
|
|
27
|
+
const NGX_COLOR_PICKER_DIRECTIVE = [{
|
|
28
|
+
from: "ngx-color-picker",
|
|
29
|
+
name: "ColorPickerDirective",
|
|
30
|
+
as: "ngx_ColorPickerDirective"
|
|
31
|
+
}];
|
|
32
|
+
const NGX_DROP_DOWN_MODULE = [{
|
|
33
|
+
from: "ngx-bootstrap/dropdown",
|
|
34
|
+
name: "BsDropdownModule",
|
|
35
|
+
as: "ngxBsDropdownModule"
|
|
36
|
+
}];
|
|
37
|
+
const NGX_PAGINATION_MODULE = [{
|
|
38
|
+
from: "ngx-bootstrap/pagination",
|
|
39
|
+
name: "PaginationModule",
|
|
40
|
+
as: "ngxPaginationModule"
|
|
41
|
+
}];
|
|
42
|
+
const NGX_POPOVER_MODULE = [{
|
|
43
|
+
from: "ngx-bootstrap/popover",
|
|
44
|
+
name: "PopoverModule",
|
|
45
|
+
as: "ngxPopoverModule"
|
|
46
|
+
}];
|
|
47
|
+
const NGX_TIME_PICKER = [{
|
|
48
|
+
from: "ngx-bootstrap/timepicker",
|
|
49
|
+
name: "TimepickerModule",
|
|
50
|
+
as: "ngx_TimepickerModule"
|
|
51
|
+
}];
|
|
52
|
+
const NGX_TOOL_TIP_MODULE = [{
|
|
53
|
+
from: "ngx-bootstrap/tooltip",
|
|
54
|
+
name: "TooltipModule",
|
|
55
|
+
as: "ngxTooltipModule"
|
|
56
|
+
}];
|
|
57
|
+
const NGX_TYPE_HEAD_MODULE = [{
|
|
58
|
+
from: "ngx-bootstrap/typeahead",
|
|
59
|
+
name: "TypeaheadModule",
|
|
60
|
+
as: "ngxTypeaheadModule"
|
|
61
|
+
}];
|
|
62
|
+
const PROGRESS_BAR_COMPONENT = [{
|
|
63
|
+
from: "@wm/components/basic/progress/progress-bar",
|
|
64
|
+
name: "ProgressBarComponent"
|
|
65
|
+
}];
|
|
66
|
+
const PROGRESS_CIRCLE_COMPONENT = [{
|
|
67
|
+
from: "@wm/components/basic/progress/progress-circle",
|
|
68
|
+
name: "ProgressCircleComponent"
|
|
69
|
+
}];
|
|
70
|
+
const PAGE_COMPONENT = [{
|
|
71
|
+
from: "@wm/components/page",
|
|
72
|
+
name: "PageDirective"
|
|
73
|
+
}];
|
|
74
|
+
const PAGINATION_COMPONENT = [
|
|
75
|
+
...NG_FORM_MODULE,
|
|
76
|
+
...NGX_PAGINATION_MODULE,
|
|
77
|
+
{
|
|
78
|
+
from: "@wm/components/data/pagination",
|
|
79
|
+
name: "PaginationComponent"
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
const ANCHOR_COMPONENT = [{
|
|
83
|
+
from: "@wm/components/basic/anchor",
|
|
84
|
+
name: "AnchorComponent"
|
|
85
|
+
}];
|
|
86
|
+
const AUDIO_COMPONENT = [{
|
|
87
|
+
from: "@wm/components/basic/audio",
|
|
88
|
+
name: "AudioComponent"
|
|
89
|
+
}];
|
|
90
|
+
const HTML_COMPONENT = [{
|
|
91
|
+
from: "@wm/components/basic/html",
|
|
92
|
+
name: "HtmlDirective"
|
|
93
|
+
}];
|
|
94
|
+
const ICON_COMPONENT = [{
|
|
95
|
+
from: "@wm/components/basic/icon",
|
|
96
|
+
name: "IconComponent"
|
|
97
|
+
}];
|
|
98
|
+
const IFRAME_COMPONENT = [{
|
|
99
|
+
from: "@wm/components/basic/iframe",
|
|
100
|
+
name: "IframeComponent"
|
|
101
|
+
}];
|
|
102
|
+
const LABEL_COMPONENT = [{
|
|
103
|
+
from: "@wm/components/basic/label",
|
|
104
|
+
name: "LabelDirective"
|
|
105
|
+
}];
|
|
106
|
+
const PICTURE_COMPONENT = [{
|
|
107
|
+
from: "@wm/components/basic/picture",
|
|
108
|
+
name: "PictureDirective"
|
|
109
|
+
}];
|
|
110
|
+
const SEARCH_COMPONENT = [
|
|
111
|
+
...NG_FORM_MODULE,
|
|
112
|
+
...NGX_TYPE_HEAD_MODULE,
|
|
113
|
+
{
|
|
114
|
+
from: "@wm/components/basic/search",
|
|
115
|
+
name: "ScrollableDirective"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
from: "@wm/components/basic/search",
|
|
119
|
+
name: "SearchComponent"
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
const SPINNER_COMPONENT = [{
|
|
123
|
+
from: "@wm/components/basic/spinner",
|
|
124
|
+
name: "SpinnerComponent"
|
|
125
|
+
}];
|
|
126
|
+
const VIDEO_COMPONENT = [{
|
|
127
|
+
from: "@wm/components/basic/video",
|
|
128
|
+
name: "VideoComponent"
|
|
129
|
+
}];
|
|
130
|
+
const PARTIAL_DIRECTIVE = [{
|
|
131
|
+
from: "@wm/components/base",
|
|
132
|
+
name: "PartialDirective"
|
|
133
|
+
}];
|
|
134
|
+
const PARTIAL_CONTAINER = [{
|
|
135
|
+
from: "@wm/components/base",
|
|
136
|
+
name: "PartialParamHandlerDirective"
|
|
137
|
+
}, {
|
|
138
|
+
from: "@wm/components/base",
|
|
139
|
+
name: "PartialContainerDirective"
|
|
140
|
+
}];
|
|
141
|
+
const ACCORDION_PANE_COMPONENT = [...PARTIAL_CONTAINER, {
|
|
142
|
+
from: "@wm/components/containers/accordion",
|
|
143
|
+
name: "AccordionPaneComponent"
|
|
144
|
+
}];
|
|
145
|
+
const ACCORDION_DIRECTIVE = [{
|
|
146
|
+
from: "@wm/components/containers/accordion",
|
|
147
|
+
name: "AccordionDirective"
|
|
148
|
+
}];
|
|
149
|
+
const CONTAINER_DIRECTIVE = [...PARTIAL_CONTAINER, {
|
|
150
|
+
from: "@wm/components/base",
|
|
151
|
+
name: "ContainerDirective"
|
|
152
|
+
}];
|
|
153
|
+
const PARTIAL_PARAM_DIRECTIVE = [{
|
|
154
|
+
from: "@wm/components/base",
|
|
155
|
+
name: "PartialParamDirective"
|
|
156
|
+
}];
|
|
157
|
+
const LINEAR_LAYOUT_ITEM_DIRECTIVE = [{
|
|
158
|
+
from: "@wm/components/containers/linear-layout",
|
|
159
|
+
name: "LinearLayoutItemDirective"
|
|
160
|
+
}];
|
|
161
|
+
const LINEAR_LAYOUT_DIRECTIVE = [...LINEAR_LAYOUT_ITEM_DIRECTIVE, {
|
|
162
|
+
from: "@wm/components/containers/linear-layout",
|
|
163
|
+
name: "LinearLayoutDirective"
|
|
164
|
+
}];
|
|
165
|
+
const TAB_PANE_COMPONENT = [...PARTIAL_CONTAINER, {
|
|
166
|
+
from: "@wm/components/containers/tabs",
|
|
167
|
+
name: "TabPaneComponent"
|
|
168
|
+
}];
|
|
169
|
+
const TABS_COMPONENT = [...TAB_PANE_COMPONENT, {
|
|
170
|
+
from: "@wm/components/containers/tabs",
|
|
171
|
+
name: "TabsComponent"
|
|
172
|
+
}];
|
|
173
|
+
const WIZARD_ACTION_DIRECTIVE = [{
|
|
174
|
+
from: "@wm/components/containers/wizard",
|
|
175
|
+
name: "WizardActionDirective"
|
|
176
|
+
}];
|
|
177
|
+
const WIZARD_STEP_DIRECTIVE = [...PARTIAL_CONTAINER, {
|
|
178
|
+
from: "@wm/components/containers/wizard",
|
|
179
|
+
name: "WizardStepComponent"
|
|
180
|
+
}];
|
|
181
|
+
const WIZARD_COMPONENT = [
|
|
182
|
+
...NG_FORM_MODULE,
|
|
183
|
+
...WIZARD_ACTION_DIRECTIVE,
|
|
184
|
+
...WIZARD_STEP_DIRECTIVE,
|
|
185
|
+
{
|
|
186
|
+
from: "@wm/components/containers/wizard",
|
|
187
|
+
name: "WizardComponent"
|
|
188
|
+
}
|
|
189
|
+
];
|
|
190
|
+
const LAYOUT_GRID_COLUMN_DIRECTIVE = [{
|
|
191
|
+
from: "@wm/components/containers/layout-grid",
|
|
192
|
+
name: "LayoutGridColumnDirective"
|
|
193
|
+
}];
|
|
194
|
+
const LAYOUT_GRID_ROW_DIRECTIVE = [{
|
|
195
|
+
from: "@wm/components/containers/layout-grid",
|
|
196
|
+
name: "LayoutGridRowDirective"
|
|
197
|
+
}];
|
|
198
|
+
const LAYOUT_GRID_DIRECTIVE = [
|
|
199
|
+
...LAYOUT_GRID_ROW_DIRECTIVE,
|
|
200
|
+
...LAYOUT_GRID_COLUMN_DIRECTIVE,
|
|
201
|
+
{
|
|
202
|
+
from: "@wm/components/containers/layout-grid",
|
|
203
|
+
name: "LayoutgridDirective"
|
|
204
|
+
}
|
|
205
|
+
];
|
|
206
|
+
const PANEL_COMPONENT = [...PARTIAL_CONTAINER, {
|
|
207
|
+
from: "@wm/components/containers/panel",
|
|
208
|
+
name: "PanelComponent"
|
|
209
|
+
}];
|
|
210
|
+
const TILE_DIRECTIVE = [{
|
|
211
|
+
from: "@wm/components/containers/tile",
|
|
212
|
+
name: "TileDirective"
|
|
213
|
+
}];
|
|
214
|
+
const REPEAT_TEMPLATE_DIRECTIVE = [{
|
|
215
|
+
from: "@wm/components/base",
|
|
216
|
+
name: "RepeatTemplateDirective"
|
|
217
|
+
}];
|
|
218
|
+
const ALERT_DIALOG_COMPONENT = [{
|
|
219
|
+
from: "@wm/components/dialogs/alert-dialog",
|
|
220
|
+
name: "AlertDialogComponent"
|
|
221
|
+
}];
|
|
222
|
+
const CONFIRM_DIALOG_COMPONENT = [{
|
|
223
|
+
from: "@wm/components/dialogs/confirm-dialog",
|
|
224
|
+
name: "ConfirmDialogComponent"
|
|
225
|
+
}];
|
|
226
|
+
const DESIGN_DIALOG_COMPONENT = [{
|
|
227
|
+
from: "@wm/components/dialogs/design-dialog",
|
|
228
|
+
name: "DialogComponent"
|
|
229
|
+
}];
|
|
230
|
+
const IFRAME_DIALOG_COMPONENT = [{
|
|
231
|
+
from: "@wm/components/dialogs/iframe-dialog",
|
|
232
|
+
name: "IframeDialogComponent"
|
|
233
|
+
}];
|
|
234
|
+
const LOGIN_DIALOG_DIRECTIVE = [{
|
|
235
|
+
from: "@wm/components/dialogs/login-dialog",
|
|
236
|
+
name: "LoginDialogDirective"
|
|
237
|
+
}, ...DESIGN_DIALOG_COMPONENT];
|
|
238
|
+
const PARTIAL_DIALOG_COMPONENT = [{
|
|
239
|
+
from: "@wm/components/dialogs/partial-dialog",
|
|
240
|
+
name: "PartialDialogComponent"
|
|
241
|
+
}, ...CONTAINER_DIRECTIVE];
|
|
242
|
+
const DIALOGACTIONS_DIRECTIVE = [{
|
|
243
|
+
from: "@wm/components/dialogs",
|
|
244
|
+
name: "DialogFooterDirective"
|
|
245
|
+
}];
|
|
246
|
+
const NAV_ITEM_DIRECTIVE = [{
|
|
247
|
+
from: "@wm/components/navigation/menu",
|
|
248
|
+
name: "NavItemDirective"
|
|
249
|
+
}];
|
|
250
|
+
const NAV_COMPONENT = [{
|
|
251
|
+
from: "@wm/components/navigation/menu",
|
|
252
|
+
name: "NavComponent"
|
|
253
|
+
}];
|
|
254
|
+
const NAVIGATION_CONTROL_DIRECTIVE = [{
|
|
255
|
+
from: "@wm/components/navigation/menu",
|
|
256
|
+
name: "NavigationControlDirective"
|
|
257
|
+
}];
|
|
258
|
+
const MENU_DROPDOWN_ITEM_COMPONENT = [{
|
|
259
|
+
from: "@wm/components/navigation/menu",
|
|
260
|
+
name: "MenuDropdownComponent"
|
|
261
|
+
}];
|
|
262
|
+
const MENU_DROPDOWN_COMPONENT = [{
|
|
263
|
+
from: "@wm/components/navigation/menu",
|
|
264
|
+
name: "MenuDropdownComponent"
|
|
265
|
+
}];
|
|
266
|
+
const MENU_COMPONENT = [
|
|
267
|
+
...NGX_DROP_DOWN_MODULE,
|
|
268
|
+
...MENU_DROPDOWN_COMPONENT,
|
|
269
|
+
...MENU_DROPDOWN_ITEM_COMPONENT,
|
|
270
|
+
...NAVIGATION_CONTROL_DIRECTIVE,
|
|
271
|
+
...NAV_COMPONENT,
|
|
272
|
+
...NAV_ITEM_DIRECTIVE,
|
|
273
|
+
{
|
|
274
|
+
from: "@wm/components/navigation/menu",
|
|
275
|
+
name: "MenuComponent"
|
|
276
|
+
}
|
|
277
|
+
];
|
|
278
|
+
const MESSAGE_COMPONENT = [{
|
|
279
|
+
from: "@wm/components/base",
|
|
280
|
+
name: "MessageComponent"
|
|
281
|
+
}];
|
|
282
|
+
const BREAD_CRUMB_COMPONENT = [...MENU_COMPONENT, {
|
|
283
|
+
from: "@wm/components/navigation/breadcrumb",
|
|
284
|
+
name: "BreadcrumbComponent"
|
|
285
|
+
}];
|
|
286
|
+
const NAVBAR_COMPONENT = [{
|
|
287
|
+
from: "@wm/components/navigation/navbar",
|
|
288
|
+
name: "NavbarComponent"
|
|
289
|
+
}];
|
|
290
|
+
const POPOVER_COMPONENT = [
|
|
291
|
+
...NGX_POPOVER_MODULE,
|
|
292
|
+
{
|
|
293
|
+
from: "@wm/components/navigation/popover",
|
|
294
|
+
name: "PopoverComponent"
|
|
295
|
+
},
|
|
296
|
+
...CONTAINER_DIRECTIVE
|
|
297
|
+
];
|
|
298
|
+
const TOP_NAV_DIRECTIVE = [...PARTIAL_CONTAINER, {
|
|
299
|
+
from: "@wm/components/page/top-nav",
|
|
300
|
+
name: "TopNavDirective"
|
|
301
|
+
}];
|
|
302
|
+
const CALENDAR_COMPONENT = [
|
|
303
|
+
...NG_FORM_MODULE,
|
|
304
|
+
...NGX_BS_DATE_PICKER,
|
|
305
|
+
{
|
|
306
|
+
from: "@wm/components/input/calendar",
|
|
307
|
+
name: "CalendarComponent"
|
|
308
|
+
}
|
|
309
|
+
];
|
|
310
|
+
const CHIPS_COMPONENT = [...SEARCH_COMPONENT, {
|
|
311
|
+
from: "@wm/components/input/chips",
|
|
312
|
+
name: "ChipsComponent"
|
|
313
|
+
}];
|
|
314
|
+
const COLOR_PICKER_COMPONENT = [
|
|
315
|
+
...NG_FORM_MODULE,
|
|
316
|
+
...NGX_COLOR_PICKER_DIRECTIVE,
|
|
317
|
+
{
|
|
318
|
+
from: "@wm/components/input/color-picker",
|
|
319
|
+
name: "ColorPickerComponent"
|
|
320
|
+
}
|
|
321
|
+
];
|
|
322
|
+
const CURRENCY_COMPONENT = [{
|
|
323
|
+
from: "@wm/components/input/currency",
|
|
324
|
+
name: "CurrencyComponent"
|
|
325
|
+
}];
|
|
326
|
+
const DATE_COMPONENT = [
|
|
327
|
+
...NG_FORM_MODULE,
|
|
328
|
+
...NGX_BS_DATE_PICKER,
|
|
329
|
+
...NGX_DROP_DOWN_MODULE,
|
|
330
|
+
{
|
|
331
|
+
from: "@wm/components/input/epoch/date",
|
|
332
|
+
name: "DateComponent"
|
|
333
|
+
}
|
|
334
|
+
];
|
|
335
|
+
const DATE_TIME_COMPONENT = [
|
|
336
|
+
...NG_FORM_MODULE,
|
|
337
|
+
...NGX_BS_DATE_PICKER,
|
|
338
|
+
...NGX_TIME_PICKER,
|
|
339
|
+
...NGX_DROP_DOWN_MODULE,
|
|
340
|
+
{
|
|
341
|
+
from: "@wm/components/input/epoch/date-time",
|
|
342
|
+
name: "DatetimeComponent"
|
|
343
|
+
}
|
|
344
|
+
];
|
|
345
|
+
const TIME_COMPONENT = [
|
|
346
|
+
...NG_FORM_MODULE,
|
|
347
|
+
...NGX_BS_DATE_PICKER,
|
|
348
|
+
...NGX_TIME_PICKER,
|
|
349
|
+
...NGX_DROP_DOWN_MODULE,
|
|
350
|
+
{
|
|
351
|
+
from: "@wm/components/input/epoch/time",
|
|
352
|
+
name: "TimeComponent"
|
|
353
|
+
}
|
|
354
|
+
];
|
|
355
|
+
const FILE_UPLOAD_COMPONENT = [{
|
|
356
|
+
from: "@wm/components/input/file-upload",
|
|
357
|
+
name: "FileUploadComponent"
|
|
358
|
+
}];
|
|
359
|
+
const RATING_COMPONENT = [{
|
|
360
|
+
from: "@wm/components/input/rating",
|
|
361
|
+
name: "RatingComponent"
|
|
362
|
+
}];
|
|
363
|
+
const SLIDER_COMPONENT = [...NG_FORM_MODULE, {
|
|
364
|
+
from: "@wm/components/input/slider",
|
|
365
|
+
name: "SliderComponent"
|
|
366
|
+
}];
|
|
367
|
+
const BUTTON_COMPONENT = [...NG_FORM_MODULE, {
|
|
368
|
+
from: "@wm/components/input/button",
|
|
369
|
+
name: "ButtonComponent"
|
|
370
|
+
}];
|
|
371
|
+
const BUTTON_GROUP_DIRECTIVE = [...NG_FORM_MODULE, {
|
|
372
|
+
from: "@wm/components/input/button-group",
|
|
373
|
+
name: "ButtonGroupDirective"
|
|
374
|
+
}];
|
|
375
|
+
const CHECKBOX_COMPONENT = [...NG_FORM_MODULE, {
|
|
376
|
+
from: "@wm/components/input/checkbox",
|
|
377
|
+
name: "CheckboxComponent"
|
|
378
|
+
}];
|
|
379
|
+
const CHECKBOXSET_COMPONENT = [...NG_FORM_MODULE, {
|
|
380
|
+
from: "@wm/components/input/checkboxset",
|
|
381
|
+
name: "CheckboxsetComponent"
|
|
382
|
+
}];
|
|
383
|
+
const NUMBER_COMPONENT = [...NG_FORM_MODULE, {
|
|
384
|
+
from: "@wm/components/input/number",
|
|
385
|
+
name: "NumberComponent"
|
|
386
|
+
}];
|
|
387
|
+
const RADIOSET_COMPONENT = [...NG_FORM_MODULE, {
|
|
388
|
+
from: "@wm/components/input/radioset",
|
|
389
|
+
name: "RadiosetComponent"
|
|
390
|
+
}];
|
|
391
|
+
const SELECT_COMPONENT = [...NG_FORM_MODULE, {
|
|
392
|
+
from: "@wm/components/input/select",
|
|
393
|
+
name: "SelectComponent"
|
|
394
|
+
}];
|
|
395
|
+
const SWITCH_COMPONENT = [...NG_FORM_MODULE, {
|
|
396
|
+
from: "@wm/components/input/switch",
|
|
397
|
+
name: "SwitchComponent"
|
|
398
|
+
}];
|
|
399
|
+
const INPUT_CALENDER_COMPONENT = [...NG_FORM_MODULE, {
|
|
400
|
+
from: "@wm/components/input/text",
|
|
401
|
+
name: "InputCalendarComponent"
|
|
402
|
+
}];
|
|
403
|
+
const INPUT_COLOR_COMPONENT = [...NG_FORM_MODULE, {
|
|
404
|
+
from: "@wm/components/input/text",
|
|
405
|
+
name: "InputColorComponent"
|
|
406
|
+
}];
|
|
407
|
+
const INPUT_EMAIL_COMPONENT = [...NG_FORM_MODULE, {
|
|
408
|
+
from: "@wm/components/input/text",
|
|
409
|
+
name: "InputEmailComponent"
|
|
410
|
+
}];
|
|
411
|
+
const INPUT_NUMBER_COMPONENT = [...NG_FORM_MODULE, {
|
|
412
|
+
from: "@wm/components/input/text",
|
|
413
|
+
name: "InputNumberComponent"
|
|
414
|
+
}];
|
|
415
|
+
const INPUT_TEXT_COMPONENT = [...NG_FORM_MODULE, {
|
|
416
|
+
from: "@wm/components/input/text",
|
|
417
|
+
name: "InputTextComponent"
|
|
418
|
+
}];
|
|
419
|
+
const TEXTAREA_COMPONENT = [...NG_FORM_MODULE, {
|
|
420
|
+
from: "@wm/components/input/textarea",
|
|
421
|
+
name: "TextareaComponent"
|
|
422
|
+
}];
|
|
423
|
+
const CARD_ACTIONS_DIRECTIVE = [{
|
|
424
|
+
from: "@wm/components/data/card",
|
|
425
|
+
name: "CardActionsDirective"
|
|
426
|
+
}];
|
|
427
|
+
const CARD_CONTENT_COMPONENT = [...PARTIAL_CONTAINER, {
|
|
428
|
+
from: "@wm/components/data/card",
|
|
429
|
+
name: "CardContentComponent"
|
|
430
|
+
}];
|
|
431
|
+
const CARD_FOOTER_DIRECTIVE = [{
|
|
432
|
+
from: "@wm/components/data/card",
|
|
433
|
+
name: "CardFooterDirective"
|
|
434
|
+
}];
|
|
435
|
+
const CARD_COMPONENT = [
|
|
436
|
+
...NGX_DROP_DOWN_MODULE,
|
|
437
|
+
...MENU_COMPONENT,
|
|
438
|
+
...CARD_ACTIONS_DIRECTIVE,
|
|
439
|
+
...CARD_CONTENT_COMPONENT,
|
|
440
|
+
...CARD_FOOTER_DIRECTIVE,
|
|
441
|
+
{
|
|
442
|
+
from: "@wm/components/data/card",
|
|
443
|
+
name: "CardComponent"
|
|
444
|
+
}
|
|
445
|
+
];
|
|
446
|
+
const LIST_ITEM_DIRECTIVE = [...PAGINATION_COMPONENT, {
|
|
447
|
+
from: "@wm/components/data/list",
|
|
448
|
+
name: "ListItemDirective"
|
|
449
|
+
}];
|
|
450
|
+
const LIST_COMPONENT = [
|
|
451
|
+
...PAGINATION_COMPONENT,
|
|
452
|
+
...LIST_ITEM_DIRECTIVE,
|
|
453
|
+
{
|
|
454
|
+
from: "@wm/components/data/list",
|
|
455
|
+
name: "ListComponent"
|
|
456
|
+
}
|
|
457
|
+
];
|
|
458
|
+
const TABLE_CUD_DIRECTIVE = [{
|
|
459
|
+
from: "@wm/components/data/table",
|
|
460
|
+
name: "TableCUDDirective"
|
|
461
|
+
}];
|
|
462
|
+
const TABLE_FILTER_SORT_DIRECTIVE = [{
|
|
463
|
+
from: "@wm/components/data/table",
|
|
464
|
+
name: "TableFilterSortDirective"
|
|
465
|
+
}];
|
|
466
|
+
const TABLE_ACTION_DIRECTIVE = [{
|
|
467
|
+
from: "@wm/components/data/table",
|
|
468
|
+
name: "TableActionDirective"
|
|
469
|
+
}];
|
|
470
|
+
const TABLE_COLUMN_DIRECTIVE = [{
|
|
471
|
+
from: "@wm/components/data/table",
|
|
472
|
+
name: "TableColumnDirective"
|
|
473
|
+
}];
|
|
474
|
+
const TABLE_COLUMN_GROUP_DIRECTIVE = [{
|
|
475
|
+
from: "@wm/components/data/table",
|
|
476
|
+
name: "TableColumnGroupDirective"
|
|
477
|
+
}];
|
|
478
|
+
const TABLE_ROW_DIRECTIVE = [
|
|
479
|
+
{
|
|
480
|
+
from: "@wm/components/data/table",
|
|
481
|
+
name: "TableRowDirective"
|
|
482
|
+
},
|
|
483
|
+
...CONTAINER_DIRECTIVE,
|
|
484
|
+
...PARTIAL_CONTAINER
|
|
485
|
+
];
|
|
486
|
+
const TABLE_ROW_ACTION_DIRECTIVE = [
|
|
487
|
+
{
|
|
488
|
+
from: "@wm/components/data/table",
|
|
489
|
+
name: "TableRowActionDirective"
|
|
490
|
+
},
|
|
491
|
+
...BUTTON_COMPONENT,
|
|
492
|
+
...ANCHOR_COMPONENT
|
|
493
|
+
];
|
|
494
|
+
const TABLE_COMPONENT = [
|
|
495
|
+
...NG_FORM_MODULE,
|
|
496
|
+
...NG_REACTIVE_FORM_MODULE,
|
|
497
|
+
...PAGINATION_COMPONENT,
|
|
498
|
+
...MENU_COMPONENT,
|
|
499
|
+
...NGX_TOOL_TIP_MODULE,
|
|
500
|
+
...LIST_COMPONENT,
|
|
501
|
+
...TABLE_ACTION_DIRECTIVE,
|
|
502
|
+
...TABLE_CUD_DIRECTIVE,
|
|
503
|
+
...TABLE_FILTER_SORT_DIRECTIVE,
|
|
504
|
+
...TABLE_COLUMN_DIRECTIVE,
|
|
505
|
+
...TABLE_COLUMN_GROUP_DIRECTIVE,
|
|
506
|
+
...TABLE_ROW_DIRECTIVE,
|
|
507
|
+
...TABLE_ROW_ACTION_DIRECTIVE,
|
|
508
|
+
{
|
|
509
|
+
from: "@wm/components/data/table",
|
|
510
|
+
name: "TableComponent"
|
|
511
|
+
}
|
|
512
|
+
];
|
|
513
|
+
const LIVE_TABLE_COMPONENT = [{
|
|
514
|
+
from: "@wm/components/data/live-table",
|
|
515
|
+
name: "LiveTableComponent"
|
|
516
|
+
}];
|
|
517
|
+
const FORM_WIDGET_DIRECTIVE = [{
|
|
518
|
+
from: "@wm/components/data/form",
|
|
519
|
+
name: "FormWidgetDirective"
|
|
520
|
+
}];
|
|
521
|
+
const FORM_ACTION_DIRECTIVE = [{
|
|
522
|
+
from: "@wm/components/data/form",
|
|
523
|
+
name: "FormActionDirective"
|
|
524
|
+
}];
|
|
525
|
+
const FORM_FIELD_DIRECTIVE = [{
|
|
526
|
+
from: "@wm/components/data/form",
|
|
527
|
+
name: "FormFieldDirective"
|
|
528
|
+
}];
|
|
529
|
+
const LIVE_ACTION_DIRECTIVE = [{
|
|
530
|
+
from: "@wm/components/data/form",
|
|
531
|
+
name: "LiveActionsDirective"
|
|
532
|
+
}];
|
|
533
|
+
const DEPENDS_ON_DIRECTIVE = [{
|
|
534
|
+
from: "@wm/components/data/form",
|
|
535
|
+
name: "DependsonDirective"
|
|
536
|
+
}];
|
|
537
|
+
const LIVE_FILTER_DIRECTIVE = [{
|
|
538
|
+
from: "@wm/components/data/form",
|
|
539
|
+
name: "LiveFilterDirective"
|
|
540
|
+
}];
|
|
541
|
+
const LIVE_FORM_DIRECTIVE = [{
|
|
542
|
+
from: "@wm/components/data/form",
|
|
543
|
+
name: "LiveFormDirective"
|
|
544
|
+
}];
|
|
545
|
+
const CAPTION_POSITION_DIRECTIVE = [{
|
|
546
|
+
from: "@wm/components/input/caption-position",
|
|
547
|
+
name: "CaptionPositionDirective"
|
|
548
|
+
}];
|
|
549
|
+
const FORM_COMPONENT = [
|
|
550
|
+
...NG_FORM_MODULE,
|
|
551
|
+
...NG_REACTIVE_FORM_MODULE,
|
|
552
|
+
...FORM_ACTION_DIRECTIVE,
|
|
553
|
+
...FORM_WIDGET_DIRECTIVE,
|
|
554
|
+
...FORM_FIELD_DIRECTIVE,
|
|
555
|
+
...LIVE_ACTION_DIRECTIVE,
|
|
556
|
+
...DEPENDS_ON_DIRECTIVE,
|
|
557
|
+
...LIVE_FILTER_DIRECTIVE,
|
|
558
|
+
...LIVE_FORM_DIRECTIVE,
|
|
559
|
+
...CAPTION_POSITION_DIRECTIVE,
|
|
560
|
+
{
|
|
561
|
+
from: "@wm/components/data/form",
|
|
562
|
+
name: "FormComponent"
|
|
563
|
+
}
|
|
564
|
+
];
|
|
565
|
+
const COMPOSITE_DIRECTIVE = [{
|
|
566
|
+
from: "@wm/components/input/composite",
|
|
567
|
+
name: "CompositeDirective"
|
|
568
|
+
}, {
|
|
569
|
+
from: "@wm/components/input/caption-position",
|
|
570
|
+
name: "CaptionPositionDirective"
|
|
571
|
+
}];
|
|
572
|
+
const FOOTER_DIRECTIVE = [...PARTIAL_CONTAINER, {
|
|
573
|
+
from: "@wm/components/page/footer",
|
|
574
|
+
name: "FooterDirective"
|
|
575
|
+
}];
|
|
576
|
+
const HEADER_COMPONENT = [...PARTIAL_CONTAINER, {
|
|
577
|
+
from: "@wm/components/page/header",
|
|
578
|
+
name: "HeaderComponent"
|
|
579
|
+
}];
|
|
580
|
+
const LEFT_PANEL_DIRECTIVE = [...PARTIAL_CONTAINER, {
|
|
581
|
+
from: "@wm/components/page/left-panel",
|
|
582
|
+
name: "LeftPanelDirective"
|
|
583
|
+
}];
|
|
584
|
+
const RIGHT_PANEL_DIRECTIVE = [...PARTIAL_CONTAINER, {
|
|
585
|
+
from: "@wm/components/page/right-panel",
|
|
586
|
+
name: "RightPanelDirective"
|
|
587
|
+
}];
|
|
588
|
+
const PAGE_CONTENT_COMPONENT = [{
|
|
589
|
+
from: "@wm/components/page",
|
|
590
|
+
name: "PageContentComponent"
|
|
591
|
+
}];
|
|
592
|
+
const SPA_PAGE_DIRECTIVE = [{
|
|
593
|
+
from: "@wm/components/page",
|
|
594
|
+
name: "SpaPageDirective"
|
|
595
|
+
}];
|
|
596
|
+
const LAYOUT_DIRECTIVE = [{
|
|
597
|
+
from: "@wm/components/page",
|
|
598
|
+
name: "LayoutDirective"
|
|
599
|
+
}];
|
|
600
|
+
const CONTENT_COMPONENT = [{
|
|
601
|
+
from: "@wm/components/page",
|
|
602
|
+
name: "ContentComponent"
|
|
603
|
+
}];
|
|
604
|
+
const CAROUSEL_TEMPLATE_DIRECTIVE = [...NGX_CAROUSEL_MODULE, {
|
|
605
|
+
from: "@wm/components/advanced/carousel",
|
|
606
|
+
name: "CarouselTemplateDirective"
|
|
607
|
+
}];
|
|
608
|
+
const CAROUSEL_COMPONENT = [
|
|
609
|
+
...NGX_CAROUSEL_MODULE,
|
|
610
|
+
...CAROUSEL_TEMPLATE_DIRECTIVE,
|
|
611
|
+
{
|
|
612
|
+
from: "@wm/components/advanced/carousel",
|
|
613
|
+
name: "CarouselDirective"
|
|
614
|
+
}
|
|
615
|
+
];
|
|
616
|
+
const CHART_COMPONENT = [{
|
|
617
|
+
from: "@wm/components/chart",
|
|
618
|
+
name: "ChartComponent"
|
|
619
|
+
}, {
|
|
620
|
+
from: "@wm/components/base",
|
|
621
|
+
name: "RedrawableDirective"
|
|
622
|
+
}];
|
|
623
|
+
const CUSTOM_WIDGET_DIRECTIVE = [...[{
|
|
624
|
+
from: "@wm/components/advanced/custom",
|
|
625
|
+
name: "CustomWidgetContainerDirective"
|
|
626
|
+
}], {
|
|
627
|
+
from: "@wm/components/advanced/custom",
|
|
628
|
+
name: "CustomWidgetDirective"
|
|
629
|
+
}];
|
|
630
|
+
const LOGIN_COMPONENT = [{
|
|
631
|
+
from: "@wm/components/advanced/login",
|
|
632
|
+
name: "LoginComponent"
|
|
633
|
+
}];
|
|
634
|
+
const MARQUEE_DIRECTIVE = [{
|
|
635
|
+
from: "@wm/components/advanced/marquee",
|
|
636
|
+
name: "MarqueeDirective"
|
|
637
|
+
}];
|
|
638
|
+
const PREFAB_CONTAINER_DIRECTIVE = [{
|
|
639
|
+
from: "@wm/components/prefab",
|
|
640
|
+
name: "PrefabContainerDirective"
|
|
641
|
+
}];
|
|
642
|
+
const PREFAB_DIRECTIVE = [{
|
|
643
|
+
from: "@wm/components/prefab",
|
|
644
|
+
name: "PrefabDirective"
|
|
645
|
+
}];
|
|
646
|
+
const RICH_TEXT_EDITOR_COMPONENT = [{
|
|
647
|
+
from: "@wm/components/basic/rich-text-editor",
|
|
648
|
+
name: "RichTextEditorComponent"
|
|
649
|
+
}];
|
|
650
|
+
const TREE_COMPONENT = [{
|
|
651
|
+
from: "@wm/components/basic/tree",
|
|
652
|
+
name: "TreeComponent"
|
|
653
|
+
}];
|
|
654
|
+
const ACCESSROLES_DIRECTIVE = [{
|
|
655
|
+
from: "@wm/runtime/base",
|
|
656
|
+
name: "AccessrolesDirective"
|
|
657
|
+
}];
|
|
658
|
+
const SHOW_IN_DEVICE_DIRECTIVE = [{
|
|
659
|
+
from: "@wm/components/base",
|
|
660
|
+
name: "ShowInDeviceDirective"
|
|
661
|
+
}];
|
|
662
|
+
const LAZY_LOAD_DIRECTIVE = [{
|
|
663
|
+
from: "@wm/components/base",
|
|
664
|
+
name: "LazyLoadDirective"
|
|
665
|
+
}];
|
|
666
|
+
const SVG_ICON_DIRECTIVE = [{
|
|
667
|
+
from: "@wm/components/base",
|
|
668
|
+
name: "SvgIconDirective"
|
|
669
|
+
}];
|
|
670
|
+
const TO_DATE_PIPE = [{
|
|
671
|
+
from: "@wm/components/base",
|
|
672
|
+
name: "ToDatePipe"
|
|
673
|
+
}];
|
|
674
|
+
const TO_CURRENCY_PIPE = [{
|
|
675
|
+
from: "@wm/components/base",
|
|
676
|
+
name: "ToCurrencyPipe"
|
|
677
|
+
}];
|
|
678
|
+
const NUMBER_TO_STRING_PIPE = [{
|
|
679
|
+
from: "@wm/components/base",
|
|
680
|
+
name: "NumberToStringPipe"
|
|
681
|
+
}];
|
|
682
|
+
const STRING_TO_NUMBER_PIPE = [{
|
|
683
|
+
from: "@wm/components/base",
|
|
684
|
+
name: "StringToNumberPipe"
|
|
685
|
+
}];
|
|
686
|
+
const TIME_FROM_NOW_PIPE = [{
|
|
687
|
+
from: "@wm/components/base",
|
|
688
|
+
name: "TimeFromNowPipe"
|
|
689
|
+
}];
|
|
690
|
+
const PREFIX_PIPE = [{
|
|
691
|
+
from: "@wm/components/base",
|
|
692
|
+
name: "PrefixPipe"
|
|
693
|
+
}];
|
|
694
|
+
const SUFFIX_PIPE = [{
|
|
695
|
+
from: "@wm/components/base",
|
|
696
|
+
name: "SuffixPipe"
|
|
697
|
+
}];
|
|
698
|
+
const CUSTOM_PIPE = [{
|
|
699
|
+
from: "@wm/components/base",
|
|
700
|
+
name: "CustomPipe"
|
|
701
|
+
}];
|
|
702
|
+
const WIDGET_IMPORTS = /* @__PURE__ */ new Map([
|
|
703
|
+
["wm-accordion", ACCORDION_DIRECTIVE],
|
|
704
|
+
["wm-accordionpane", ACCORDION_PANE_COMPONENT],
|
|
705
|
+
["wm-anchor", ANCHOR_COMPONENT],
|
|
706
|
+
["wm-alertdialog", ALERT_DIALOG_COMPONENT],
|
|
707
|
+
["wm-audio", AUDIO_COMPONENT],
|
|
708
|
+
["wm-button", BUTTON_COMPONENT],
|
|
709
|
+
["wm-buttongroup", BUTTON_GROUP_DIRECTIVE],
|
|
710
|
+
["wm-breadcrumb", BREAD_CRUMB_COMPONENT],
|
|
711
|
+
["wm-calendar", CALENDAR_COMPONENT],
|
|
712
|
+
["wm-card", CARD_COMPONENT],
|
|
713
|
+
["wm-card-actions", CARD_ACTIONS_DIRECTIVE],
|
|
714
|
+
["wm-card-content", CARD_CONTENT_COMPONENT],
|
|
715
|
+
["wm-card-footer", CARD_FOOTER_DIRECTIVE],
|
|
716
|
+
["wm-carousel", CAROUSEL_COMPONENT],
|
|
717
|
+
["wm-carousel-content", CAROUSEL_TEMPLATE_DIRECTIVE],
|
|
718
|
+
["wm-carousel-template", CAROUSEL_TEMPLATE_DIRECTIVE],
|
|
719
|
+
["wm-chart", CHART_COMPONENT],
|
|
720
|
+
["wm-checkbox", CHECKBOX_COMPONENT],
|
|
721
|
+
["wm-checkboxset", CHECKBOXSET_COMPONENT],
|
|
722
|
+
["wm-chips", CHIPS_COMPONENT],
|
|
723
|
+
["wm-colorpicker", COLOR_PICKER_COMPONENT],
|
|
724
|
+
["wm-confirmdialog", CONFIRM_DIALOG_COMPONENT],
|
|
725
|
+
["wm-container", CONTAINER_DIRECTIVE],
|
|
726
|
+
["wm-param", PARTIAL_PARAM_DIRECTIVE],
|
|
727
|
+
["wm-content", CONTENT_COMPONENT],
|
|
728
|
+
["wm-currency", CURRENCY_COMPONENT],
|
|
729
|
+
["wm-date", DATE_COMPONENT],
|
|
730
|
+
["wm-datetime", DATE_TIME_COMPONENT],
|
|
731
|
+
["wm-dialog", DESIGN_DIALOG_COMPONENT],
|
|
732
|
+
["wm-dialogactions", DIALOGACTIONS_DIRECTIVE],
|
|
733
|
+
["wm-footer", FOOTER_DIRECTIVE],
|
|
734
|
+
["wm-form", FORM_COMPONENT],
|
|
735
|
+
["wm-form-action", FORM_ACTION_DIRECTIVE],
|
|
736
|
+
["wm-form-field", FORM_FIELD_DIRECTIVE],
|
|
737
|
+
["wm-filter-field", LIVE_FILTER_DIRECTIVE],
|
|
738
|
+
["wm-fileupload", FILE_UPLOAD_COMPONENT],
|
|
739
|
+
["wm-gridrow", LAYOUT_GRID_ROW_DIRECTIVE],
|
|
740
|
+
["wm-gridcolumn", LAYOUT_GRID_COLUMN_DIRECTIVE],
|
|
741
|
+
["wm-header", HEADER_COMPONENT],
|
|
742
|
+
["wm-html", HTML_COMPONENT],
|
|
743
|
+
["wm-icon", ICON_COMPONENT],
|
|
744
|
+
["wm-iframe", IFRAME_COMPONENT],
|
|
745
|
+
["wm-iframedialog", IFRAME_DIALOG_COMPONENT],
|
|
746
|
+
["wm-label", LABEL_COMPONENT],
|
|
747
|
+
["wm-layout", LAYOUT_DIRECTIVE],
|
|
748
|
+
["wm-layoutgrid", LAYOUT_GRID_DIRECTIVE],
|
|
749
|
+
["wm-left-panel", LEFT_PANEL_DIRECTIVE],
|
|
750
|
+
["wm-linearlayout", LINEAR_LAYOUT_DIRECTIVE],
|
|
751
|
+
["wm-linearlayoutitem", LINEAR_LAYOUT_ITEM_DIRECTIVE],
|
|
752
|
+
["wm-list", LIST_COMPONENT],
|
|
753
|
+
["wm-livetable", LIVE_TABLE_COMPONENT],
|
|
754
|
+
["wm-login", LOGIN_COMPONENT],
|
|
755
|
+
["wm-custom", CUSTOM_WIDGET_DIRECTIVE],
|
|
756
|
+
["wm-custom-widget", CUSTOM_WIDGET_DIRECTIVE],
|
|
757
|
+
["wm-logindialog", LOGIN_DIALOG_DIRECTIVE],
|
|
758
|
+
["wm-marquee", MARQUEE_DIRECTIVE],
|
|
759
|
+
["wm-menu", MENU_COMPONENT],
|
|
760
|
+
["wm-message", MESSAGE_COMPONENT],
|
|
761
|
+
["wm-nav", NAV_COMPONENT],
|
|
762
|
+
["wm-navbar", NAVBAR_COMPONENT],
|
|
763
|
+
["wm-nav-item", NAV_ITEM_DIRECTIVE],
|
|
764
|
+
["wm-number", NUMBER_COMPONENT],
|
|
765
|
+
["wm-partial", PARTIAL_DIRECTIVE],
|
|
766
|
+
["wm-page", PAGE_COMPONENT],
|
|
767
|
+
["wm-page-content", PAGE_CONTENT_COMPONENT],
|
|
768
|
+
["spa-page-content", SPA_PAGE_DIRECTIVE],
|
|
769
|
+
["wm-pagedialog", PARTIAL_DIALOG_COMPONENT],
|
|
770
|
+
["wm-pagination", PAGINATION_COMPONENT],
|
|
771
|
+
["wm-panel", PANEL_COMPONENT],
|
|
772
|
+
["wm-panel-footer", PANEL_COMPONENT],
|
|
773
|
+
["wm-picture", PICTURE_COMPONENT],
|
|
774
|
+
["wm-popover", POPOVER_COMPONENT],
|
|
775
|
+
["wm-progress-bar", PROGRESS_BAR_COMPONENT],
|
|
776
|
+
["wm-prefab", PREFAB_DIRECTIVE],
|
|
777
|
+
["wm-prefab-container", PREFAB_CONTAINER_DIRECTIVE],
|
|
778
|
+
["wm-progress-circle", PROGRESS_CIRCLE_COMPONENT],
|
|
779
|
+
["wm-radioset", RADIOSET_COMPONENT],
|
|
780
|
+
["wm-rating", RATING_COMPONENT],
|
|
781
|
+
["wm-richtexteditor", RICH_TEXT_EDITOR_COMPONENT],
|
|
782
|
+
["wm-right-panel", RIGHT_PANEL_DIRECTIVE],
|
|
783
|
+
["wm-select", SELECT_COMPONENT],
|
|
784
|
+
["wm-search", SEARCH_COMPONENT],
|
|
785
|
+
["wm-slider", SLIDER_COMPONENT],
|
|
786
|
+
["wm-spinner", SPINNER_COMPONENT],
|
|
787
|
+
["wm-switch", SWITCH_COMPONENT],
|
|
788
|
+
["wm-table", TABLE_COMPONENT],
|
|
789
|
+
["wm-tabs", TABS_COMPONENT],
|
|
790
|
+
["wm-tabpane", TAB_PANE_COMPONENT],
|
|
791
|
+
["wm-text", [
|
|
792
|
+
...INPUT_TEXT_COMPONENT,
|
|
793
|
+
...INPUT_CALENDER_COMPONENT,
|
|
794
|
+
...INPUT_COLOR_COMPONENT,
|
|
795
|
+
...INPUT_EMAIL_COMPONENT,
|
|
796
|
+
...INPUT_NUMBER_COMPONENT
|
|
797
|
+
]],
|
|
798
|
+
["wm-textarea", TEXTAREA_COMPONENT],
|
|
799
|
+
["wm-time", TIME_COMPONENT],
|
|
800
|
+
["wm-tile", TILE_DIRECTIVE],
|
|
801
|
+
["wm-top-nav", TOP_NAV_DIRECTIVE],
|
|
802
|
+
["wm-tree", TREE_COMPONENT],
|
|
803
|
+
["wm-video", VIDEO_COMPONENT],
|
|
804
|
+
["wm-wizard", WIZARD_COMPONENT],
|
|
805
|
+
["wm-wizardstep", WIZARD_COMPONENT],
|
|
806
|
+
["wm-repeat-template", REPEAT_TEMPLATE_DIRECTIVE],
|
|
807
|
+
["wm-composite", COMPOSITE_DIRECTIVE],
|
|
808
|
+
["accessroles", ACCESSROLES_DIRECTIVE],
|
|
809
|
+
["showindevice", SHOW_IN_DEVICE_DIRECTIVE],
|
|
810
|
+
["lazyload", LAZY_LOAD_DIRECTIVE],
|
|
811
|
+
["svg-icon", SVG_ICON_DIRECTIVE],
|
|
812
|
+
["toDate", TO_DATE_PIPE],
|
|
813
|
+
["toCurrency", TO_CURRENCY_PIPE],
|
|
814
|
+
["numberToString", NUMBER_TO_STRING_PIPE],
|
|
815
|
+
["stringToNumber", STRING_TO_NUMBER_PIPE],
|
|
816
|
+
["timeFromNow", TIME_FROM_NOW_PIPE],
|
|
817
|
+
["prefix", PREFIX_PIPE],
|
|
818
|
+
["suffix", SUFFIX_PIPE],
|
|
819
|
+
["custom", CUSTOM_PIPE]
|
|
820
|
+
]);
|
|
821
|
+
const CSS_REGEX = {
|
|
822
|
+
COMMENTS_FORMAT: /\/\*((?!\*\/).|\n)+\*\//g,
|
|
823
|
+
SELECTOR_FORMAT: /[^\{\}]*\{/gi,
|
|
824
|
+
SELECTOR_EXCLUDE_FORMAT: /(@keyframes|@media|@font-face|@comment[0-9]+|from|to|[0-9]+%)\b/i
|
|
825
|
+
};
|
|
826
|
+
const isString = (v) => typeof v === "string";
|
|
827
|
+
const OVERRIDES = {
|
|
828
|
+
"accessroles": "*accessroles",
|
|
829
|
+
"ng-if": "*ngIf",
|
|
830
|
+
"showindevice": "*wmShowInDevice",
|
|
831
|
+
"ng-class": "[ngClass]",
|
|
832
|
+
"data-ng-class": "[ngClass]",
|
|
833
|
+
"data-ng-src": "src",
|
|
834
|
+
"ng-src": "src",
|
|
835
|
+
"data-ng-href": "href",
|
|
836
|
+
"ng-href": "href",
|
|
837
|
+
"ng-disabled": "disabled",
|
|
838
|
+
"data-ng-disabled": "disabled",
|
|
839
|
+
"ng-model": "[ngModelOptions]=\"{standalone: true}\" [(ngModel)]"
|
|
840
|
+
};
|
|
841
|
+
const getBoundToExpr = (value) => {
|
|
842
|
+
if (!value) return null;
|
|
843
|
+
value = value.trim();
|
|
844
|
+
if (value.startsWith("bind:")) return value.substr(5);
|
|
845
|
+
};
|
|
846
|
+
const quoteAttr = (v) => {
|
|
847
|
+
return ("" + v).replace(/&/g, "&").replace(/'/g, "'").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
848
|
+
};
|
|
849
|
+
const registry = /* @__PURE__ */ new Map();
|
|
850
|
+
const htmlParser = new compiler.HtmlParser();
|
|
851
|
+
const empty = () => "";
|
|
852
|
+
const noSpan = {};
|
|
853
|
+
const createCompilerElement = (name) => {
|
|
854
|
+
return new compiler.Element(name, [], [], [], false, noSpan, noSpan, noSpan, false);
|
|
855
|
+
};
|
|
856
|
+
const isEvent = (name) => name[0] === "o" && name[1] === "n" && name[2] === "-";
|
|
857
|
+
const getEventName = (key) => key.substr(3);
|
|
858
|
+
const processBinding = (attr, expr) => [`${attr.name}.bind`, quoteAttr(expr)];
|
|
859
|
+
const processEvent = (attr) => {
|
|
860
|
+
return [`${getEventName(attr.name)}.event`, attr.value];
|
|
861
|
+
};
|
|
862
|
+
const wrapWithApos = (val) => {
|
|
863
|
+
return `'${val.replace(/&apos/g, """).replace(/"/g, "\\"")}'`;
|
|
864
|
+
};
|
|
865
|
+
const ELE_PREFIX = ".wm-app";
|
|
866
|
+
const processAttr = (attr) => {
|
|
867
|
+
let overridden = OVERRIDES[attr.name];
|
|
868
|
+
const value = attr.valueSpan ? attr.value : void 0;
|
|
869
|
+
if (overridden) {
|
|
870
|
+
if (attr.name === "accessroles" || attr.name === "showindevice") return [overridden, `'${value}'`];
|
|
871
|
+
return [overridden, quoteAttr(value)];
|
|
872
|
+
}
|
|
873
|
+
if (isEvent(attr.name)) return processEvent(attr);
|
|
874
|
+
const boundExpr = getBoundToExpr(attr.value);
|
|
875
|
+
if (boundExpr) return processBinding(attr, boundExpr);
|
|
876
|
+
return [attr.name, quoteAttr(value)];
|
|
877
|
+
};
|
|
878
|
+
const getDataSource = (dataSetExpr) => {
|
|
879
|
+
const parts = dataSetExpr.split(".");
|
|
880
|
+
if (parts[0] === "Variables" || parts[0] === "Widgets") return `${parts[0]}.${parts[1]}`;
|
|
881
|
+
if (parts[0] === "App" && parts[1] === "activePage" && parts[2]?.includes("Variables") && parts[3]) return `App.activePage.${parts[2]}.${parts[3]}`;
|
|
882
|
+
};
|
|
883
|
+
const widgetChildAttrs = (() => {
|
|
884
|
+
const childAttrs = /* @__PURE__ */ new Map();
|
|
885
|
+
const validChildAttrs = [`required`];
|
|
886
|
+
return {
|
|
887
|
+
set: (attrs) => {
|
|
888
|
+
attrs.forEach((val, key) => {
|
|
889
|
+
validChildAttrs.includes(key) && childAttrs.set(key, val);
|
|
890
|
+
});
|
|
891
|
+
},
|
|
892
|
+
get: (attrs) => {
|
|
893
|
+
const fltrAttrs = /* @__PURE__ */ new Map();
|
|
894
|
+
childAttrs.forEach((val, key) => {
|
|
895
|
+
!attrs.get(key) && fltrAttrs.set(key, val);
|
|
896
|
+
});
|
|
897
|
+
return fltrAttrs;
|
|
898
|
+
},
|
|
899
|
+
clear: () => {
|
|
900
|
+
childAttrs.clear();
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
})();
|
|
904
|
+
const setChildAttrs = (attrs) => {
|
|
905
|
+
widgetChildAttrs.set(attrs);
|
|
906
|
+
return "";
|
|
907
|
+
};
|
|
908
|
+
const getChildAttrs = (attrs) => {
|
|
909
|
+
return getAttrMarkup(widgetChildAttrs.get(attrs));
|
|
910
|
+
};
|
|
911
|
+
const clearChildAttrs = () => {
|
|
912
|
+
widgetChildAttrs.clear();
|
|
913
|
+
return "";
|
|
914
|
+
};
|
|
915
|
+
const getFormMarkupAttr = (attrs) => {
|
|
916
|
+
if (attrs.get("datavalue.bind")) {
|
|
917
|
+
const onDataValueBinding = getDataSource(attrs.get("datavalue.bind"));
|
|
918
|
+
attrs.set("datavaluesource.bind", onDataValueBinding);
|
|
919
|
+
}
|
|
920
|
+
return getAttrMarkup(attrs);
|
|
921
|
+
};
|
|
922
|
+
const getAttrMap = (attrs) => {
|
|
923
|
+
const attrMap = /* @__PURE__ */ new Map();
|
|
924
|
+
attrs.forEach((attr) => {
|
|
925
|
+
let [attrName, attrValue] = processAttr(attr);
|
|
926
|
+
attrMap.set(attrName, attrValue);
|
|
927
|
+
});
|
|
928
|
+
if (attrMap.get("dataset.bind")) {
|
|
929
|
+
const dataSource = getDataSource(attrMap.get("dataset.bind"));
|
|
930
|
+
if (dataSource) attrMap.set("datasource.bind", dataSource);
|
|
931
|
+
}
|
|
932
|
+
return attrMap;
|
|
933
|
+
};
|
|
934
|
+
const getAttrMarkup = (attrs) => {
|
|
935
|
+
let attrMarkup = "";
|
|
936
|
+
attrs.forEach((v, k) => {
|
|
937
|
+
attrMarkup += ` ${k}`;
|
|
938
|
+
if (v) {
|
|
939
|
+
v = v.trim();
|
|
940
|
+
if (k === "[ngClass]" && v.startsWith("{")) v = v.replace(/"/g, `'`);
|
|
941
|
+
if (k === "show.bind" && attrs.get("deferload") === "true") v = v + `" *lazyLoad="${wrapWithApos(v)}`;
|
|
942
|
+
attrMarkup += `="${v}"`;
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
return attrMarkup;
|
|
946
|
+
};
|
|
947
|
+
const getRequiredProviders = (nodeDef, providers, nodeAttrs) => {
|
|
948
|
+
if (!nodeDef.requires) return [];
|
|
949
|
+
let requires = nodeDef.requires;
|
|
950
|
+
if (isString(requires)) requires = [requires];
|
|
951
|
+
if (!Array.isArray(requires)) return [];
|
|
952
|
+
return requires.map((require) => {
|
|
953
|
+
for (let i = nodeAttrs.length - 1; i >= 0; i--) if (nodeAttrs[i].name === "tableName") return nodeDef[nodeAttrs[i].value];
|
|
954
|
+
for (let i = providers.length - 1; i >= 0; i--) if (providers[i].nodeName === require) return providers[i].provide;
|
|
955
|
+
});
|
|
956
|
+
};
|
|
957
|
+
const DIMENSION_PROPS = [
|
|
958
|
+
"padding",
|
|
959
|
+
"borderwidth",
|
|
960
|
+
"margin"
|
|
961
|
+
];
|
|
962
|
+
const SEPARATOR = " ";
|
|
963
|
+
const UNSET = "unset";
|
|
964
|
+
const setDimensionProp = (cssObj, key, nv) => {
|
|
965
|
+
let cssKey = key, val, top, right, bottom, left, suffix = "";
|
|
966
|
+
function setVal(prop, value) {
|
|
967
|
+
if (value === UNSET) value = "";
|
|
968
|
+
cssObj[cssKey + prop + suffix] = value;
|
|
969
|
+
}
|
|
970
|
+
if (key === "borderwidth") {
|
|
971
|
+
suffix = "width";
|
|
972
|
+
cssKey = "border";
|
|
973
|
+
}
|
|
974
|
+
val = nv;
|
|
975
|
+
if (val.indexOf(UNSET) !== -1) {
|
|
976
|
+
val = val.split(SEPARATOR);
|
|
977
|
+
top = val[0];
|
|
978
|
+
right = val[1] || val[0];
|
|
979
|
+
bottom = val[2] || val[0];
|
|
980
|
+
left = val[3] || val[1] || val[0];
|
|
981
|
+
setVal("top", top);
|
|
982
|
+
setVal("right", right);
|
|
983
|
+
setVal("bottom", bottom);
|
|
984
|
+
setVal("left", left);
|
|
985
|
+
} else {
|
|
986
|
+
if (key === "borderwidth") cssKey = "borderwidth";
|
|
987
|
+
cssObj[cssKey] = nv;
|
|
988
|
+
}
|
|
989
|
+
};
|
|
990
|
+
const processDimensionAttributes = (attrMap) => {
|
|
991
|
+
Array.from(attrMap.keys()).forEach((attrKey) => {
|
|
992
|
+
if (DIMENSION_PROPS.includes(attrKey)) {
|
|
993
|
+
const cssObj = {}, attrValue = attrMap.get(attrKey);
|
|
994
|
+
attrMap.delete(attrKey);
|
|
995
|
+
setDimensionProp(cssObj, attrKey, attrValue);
|
|
996
|
+
Object.keys(cssObj).forEach((key) => {
|
|
997
|
+
if (cssObj[key]) attrMap.set(key, cssObj[key]);
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
});
|
|
1001
|
+
};
|
|
1002
|
+
const getNodeName = (name) => name.replace(":svg:svg", "svg").replace(":svg:", "svg:");
|
|
1003
|
+
const processNode = (node, importCollector, providers) => {
|
|
1004
|
+
const nodeDef = registry.get(node.name);
|
|
1005
|
+
let pre, post, template;
|
|
1006
|
+
if (nodeDef) {
|
|
1007
|
+
pre = nodeDef.pre || empty;
|
|
1008
|
+
post = nodeDef.post || empty;
|
|
1009
|
+
template = nodeDef.template || empty;
|
|
1010
|
+
}
|
|
1011
|
+
let markup = "";
|
|
1012
|
+
let attrMap;
|
|
1013
|
+
let requiredProviders;
|
|
1014
|
+
let shared;
|
|
1015
|
+
if (!providers) providers = [];
|
|
1016
|
+
if (node instanceof compiler.Element) {
|
|
1017
|
+
let provideInfo;
|
|
1018
|
+
if (nodeDef) {
|
|
1019
|
+
requiredProviders = getRequiredProviders(nodeDef, providers, node.attrs);
|
|
1020
|
+
shared = /* @__PURE__ */ new Map();
|
|
1021
|
+
template(node, shared, ...requiredProviders);
|
|
1022
|
+
}
|
|
1023
|
+
attrMap = getAttrMap(node.attrs);
|
|
1024
|
+
processDimensionAttributes(attrMap);
|
|
1025
|
+
const nodeName = getNodeName(node.name);
|
|
1026
|
+
if (nodeDef) {
|
|
1027
|
+
markup = pre(attrMap, shared, ...requiredProviders);
|
|
1028
|
+
if (nodeDef.provide) {
|
|
1029
|
+
provideInfo = {
|
|
1030
|
+
nodeName: node.name,
|
|
1031
|
+
provide: lodashEs.isFunction(nodeDef.provide) ? nodeDef.provide(attrMap, shared, ...requiredProviders) : nodeDef.provide
|
|
1032
|
+
};
|
|
1033
|
+
if (node.name === "wm-table") {
|
|
1034
|
+
const tableColNodeDefn = registry.get("wm-table-column");
|
|
1035
|
+
tableColNodeDefn[lodashEs.find(node.attrs, (el) => el.name === "name").value + provideInfo.provide.get("table_reference")] = provideInfo.provide;
|
|
1036
|
+
registry.set("wm-table-column", tableColNodeDefn);
|
|
1037
|
+
}
|
|
1038
|
+
providers.push(provideInfo);
|
|
1039
|
+
}
|
|
1040
|
+
} else markup = `<${nodeName} ${getAttrMarkup(attrMap)}>`;
|
|
1041
|
+
node.children.forEach((child) => {
|
|
1042
|
+
if (child.attrs) {
|
|
1043
|
+
let showInDeviceAttr, accessRolesAttr, deferLoadAttr, showAttr;
|
|
1044
|
+
child.attrs.forEach(function(attr) {
|
|
1045
|
+
if (attr.name === "showindevice") {
|
|
1046
|
+
showInDeviceAttr = attr;
|
|
1047
|
+
importCollector(WIDGET_IMPORTS.get("showindevice"));
|
|
1048
|
+
} else if (attr.name === "accessroles") {
|
|
1049
|
+
accessRolesAttr = attr;
|
|
1050
|
+
importCollector(WIDGET_IMPORTS.get("accessroles"));
|
|
1051
|
+
} else if (attr.name === "deferload") {
|
|
1052
|
+
deferLoadAttr = attr;
|
|
1053
|
+
importCollector(WIDGET_IMPORTS.get("lazyload"));
|
|
1054
|
+
} else if (attr.name === "show") showAttr = attr;
|
|
1055
|
+
});
|
|
1056
|
+
if (showInDeviceAttr && accessRolesAttr || showInDeviceAttr && deferLoadAttr || accessRolesAttr && deferLoadAttr) {
|
|
1057
|
+
const showInDeviceContainer = showInDeviceAttr ? createCompilerElement("ng-container") : "";
|
|
1058
|
+
const accessRolesContainer = accessRolesAttr ? createCompilerElement("ng-container") : "";
|
|
1059
|
+
const deferLoadContainer = deferLoadAttr ? createCompilerElement("ng-container") : "";
|
|
1060
|
+
if (showInDeviceContainer) showInDeviceContainer.attrs.push(showInDeviceAttr);
|
|
1061
|
+
if (accessRolesContainer) accessRolesContainer.attrs.push(accessRolesAttr);
|
|
1062
|
+
if (deferLoadContainer) {
|
|
1063
|
+
deferLoadContainer.attrs.push(deferLoadAttr);
|
|
1064
|
+
if (showAttr) deferLoadContainer.attrs.push(showAttr);
|
|
1065
|
+
}
|
|
1066
|
+
lodashEs.remove(child.attrs, function(attr) {
|
|
1067
|
+
return attr.name === "showindevice" || attr.name === "accessroles" || attr.name === "deferload";
|
|
1068
|
+
});
|
|
1069
|
+
let childContainer, parentContainer;
|
|
1070
|
+
if (showInDeviceAttr && accessRolesAttr) {
|
|
1071
|
+
childContainer = showInDeviceContainer;
|
|
1072
|
+
parentContainer = accessRolesContainer;
|
|
1073
|
+
} else if (showInDeviceAttr && deferLoadAttr) {
|
|
1074
|
+
childContainer = showInDeviceContainer;
|
|
1075
|
+
parentContainer = deferLoadContainer;
|
|
1076
|
+
} else {
|
|
1077
|
+
childContainer = deferLoadContainer;
|
|
1078
|
+
parentContainer = accessRolesContainer;
|
|
1079
|
+
}
|
|
1080
|
+
childContainer.children = [child];
|
|
1081
|
+
parentContainer.children = [childContainer];
|
|
1082
|
+
if (showInDeviceAttr && accessRolesAttr && deferLoadAttr) {
|
|
1083
|
+
const grandParentContainer = deferLoadContainer;
|
|
1084
|
+
grandParentContainer.children = [parentContainer];
|
|
1085
|
+
child = grandParentContainer;
|
|
1086
|
+
} else child = parentContainer;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
return markup += processNode(child, importCollector, providers);
|
|
1090
|
+
});
|
|
1091
|
+
if (nodeDef) {
|
|
1092
|
+
if (provideInfo) providers.splice(providers.indexOf(provideInfo), 1);
|
|
1093
|
+
markup += post(attrMap, shared, ...requiredProviders);
|
|
1094
|
+
} else if (node.endSourceSpan && !compiler.getHtmlTagDefinition(node.name).isVoid) markup += `</${nodeName}>`;
|
|
1095
|
+
} else if (node instanceof compiler.Text) markup += node.value;
|
|
1096
|
+
importCollector(WIDGET_IMPORTS.get(node.name));
|
|
1097
|
+
if (nodeDef?.imports) {
|
|
1098
|
+
let imports = [];
|
|
1099
|
+
if (typeof nodeDef.imports === "function") imports = nodeDef.imports(attrMap);
|
|
1100
|
+
else imports = nodeDef.imports;
|
|
1101
|
+
imports.forEach((i) => {
|
|
1102
|
+
importCollector(WIDGET_IMPORTS.get(i));
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1105
|
+
return markup;
|
|
1106
|
+
};
|
|
1107
|
+
const transpile = (markup = "") => {
|
|
1108
|
+
if (!markup.length) return;
|
|
1109
|
+
let requiredWMComponents = [];
|
|
1110
|
+
const nodes = htmlParser.parse(markup, "");
|
|
1111
|
+
if (nodes.errors.length) return;
|
|
1112
|
+
let output = "";
|
|
1113
|
+
for (const node of nodes.rootNodes) output += processNode(node, (imports) => {
|
|
1114
|
+
if (imports) requiredWMComponents = requiredWMComponents.concat(imports);
|
|
1115
|
+
});
|
|
1116
|
+
requiredWMComponents = lodashEs.uniqWith(requiredWMComponents, lodashEs.isEqual);
|
|
1117
|
+
requiredWMComponents = lodashEs.sortBy(requiredWMComponents, ["from", "name"]);
|
|
1118
|
+
return {
|
|
1119
|
+
markup: output,
|
|
1120
|
+
requiredWMComponents
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
const register = (nodeName, nodeDefFn) => registry.set(nodeName, nodeDefFn());
|
|
1124
|
+
const scopeComponentStyles = (componentName, componentType, styles = "") => {
|
|
1125
|
+
componentName = componentName.toLowerCase();
|
|
1126
|
+
const comments = {};
|
|
1127
|
+
let commentCount = 0;
|
|
1128
|
+
if (styles.startsWith("/*DISABLE_SCOPING*/")) return styles;
|
|
1129
|
+
styles = styles.replace(CSS_REGEX.COMMENTS_FORMAT, (comment) => {
|
|
1130
|
+
const key = `@comment${commentCount++}{`;
|
|
1131
|
+
comments[key] = comment;
|
|
1132
|
+
return key;
|
|
1133
|
+
});
|
|
1134
|
+
styles = styles.replace(CSS_REGEX.SELECTOR_FORMAT, (selector) => {
|
|
1135
|
+
if (!CSS_REGEX.SELECTOR_EXCLUDE_FORMAT.test(selector)) {
|
|
1136
|
+
const firstNonSpaceCharIndex = selector.match(/\S/).index;
|
|
1137
|
+
let prefixSpaceCharSeq = "";
|
|
1138
|
+
if (firstNonSpaceCharIndex > 0) {
|
|
1139
|
+
prefixSpaceCharSeq = selector.substring(0, firstNonSpaceCharIndex);
|
|
1140
|
+
selector = selector.substring(firstNonSpaceCharIndex);
|
|
1141
|
+
}
|
|
1142
|
+
if (!selector.startsWith("/*") && selector.trim().length > 0) selector = selector.split(",").map((s) => {
|
|
1143
|
+
let prefix = ELE_PREFIX;
|
|
1144
|
+
s = s.trim();
|
|
1145
|
+
const spaceIndex = s.indexOf(" ");
|
|
1146
|
+
if (s.startsWith(ELE_PREFIX)) {
|
|
1147
|
+
if (spaceIndex > 0) {
|
|
1148
|
+
prefix = s.substring(0, spaceIndex);
|
|
1149
|
+
s = s.substring(spaceIndex + 1);
|
|
1150
|
+
} else return s;
|
|
1151
|
+
}
|
|
1152
|
+
if (componentType === 0 || componentType === "PAGE") s = `${prefix} app-page-${componentName} ${s}`;
|
|
1153
|
+
else if (componentType === 1 || componentType === "PREFAB") s = `${prefix} app-prefab-${componentName} ${s}`;
|
|
1154
|
+
else if (componentType === 2 || componentType === "PARTIAL") s = `${prefix} app-partial-${componentName} ${s}`;
|
|
1155
|
+
else if (componentType === 3 || componentType === "WIDGET") s = `${prefix} app-custom-${componentName} ${s}`;
|
|
1156
|
+
return s;
|
|
1157
|
+
}).join(",");
|
|
1158
|
+
selector = prefixSpaceCharSeq + selector;
|
|
1159
|
+
}
|
|
1160
|
+
return selector;
|
|
1161
|
+
});
|
|
1162
|
+
for (const key in comments) styles = styles.replace(key, comments[key]);
|
|
1163
|
+
return styles;
|
|
1164
|
+
};
|
|
326
1165
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
'ng-src': 'src',
|
|
341
|
-
'data-ng-href': 'href',
|
|
342
|
-
'ng-href': 'href',
|
|
343
|
-
'ng-disabled': 'disabled',
|
|
344
|
-
'data-ng-disabled': 'disabled',
|
|
345
|
-
'ng-model': '[ngModelOptions]="{standalone: true}" [(ngModel)]'
|
|
346
|
-
};
|
|
347
|
-
const getBoundToExpr = (value) => {
|
|
348
|
-
if (!value) {
|
|
349
|
-
return null;
|
|
350
|
-
}
|
|
351
|
-
value = value.trim();
|
|
352
|
-
if (value.startsWith('bind:')) {
|
|
353
|
-
return value.substr(5);
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
const quoteAttr = v => {
|
|
357
|
-
return ('' + v) /* Forces the conversion to string. */
|
|
358
|
-
.replace(/&/g, '&') /* This MUST be the 1st replacement. */
|
|
359
|
-
.replace(/'/g, ''') /* The 4 other predefined entities, required. */
|
|
360
|
-
.replace(/"/g, '"')
|
|
361
|
-
.replace(/</g, '<')
|
|
362
|
-
.replace(/>/g, '>');
|
|
363
|
-
};
|
|
364
|
-
const registry = new Map();
|
|
365
|
-
const htmlParser = new compiler.HtmlParser();
|
|
366
|
-
const empty = () => '';
|
|
367
|
-
const noSpan = {};
|
|
368
|
-
/**
|
|
369
|
-
* Creates an Angular Compiler Element for template transpilation.
|
|
370
|
-
* Angular 20: Element constructor requires 9 arguments including proper endSourceSpan for closing tag generation.
|
|
371
|
-
* @param name - The element/tag name
|
|
372
|
-
* @returns Element instance with proper source spans for Angular 20 compatibility
|
|
373
|
-
*/
|
|
374
|
-
const createCompilerElement = (name) => {
|
|
375
|
-
return new compiler.Element(name, [], [], [], false, noSpan, noSpan, noSpan, false);
|
|
376
|
-
};
|
|
377
|
-
const isEvent = name => name[0] === 'o' && name[1] === 'n' && name[2] === '-';
|
|
378
|
-
const getEventName = key => key.substr(3);
|
|
379
|
-
const processBinding = (attr, expr) => [`${attr.name}.bind`, quoteAttr(expr)];
|
|
380
|
-
const processEvent = attr => {
|
|
381
|
-
const evtName = getEventName(attr.name);
|
|
382
|
-
return [`${evtName}.event`, attr.value];
|
|
383
|
-
};
|
|
384
|
-
/**
|
|
385
|
-
* Wraps the string with single quotes.
|
|
386
|
-
* @param val
|
|
387
|
-
*/
|
|
388
|
-
const wrapWithApos = (val) => {
|
|
389
|
-
return `'${val.replace(/&apos/g, '"').replace(/"/g, '\\"')}'`;
|
|
390
|
-
};
|
|
391
|
-
const ELE_PREFIX = '.wm-app';
|
|
392
|
-
const processAttr = attr => {
|
|
393
|
-
let overridden = OVERRIDES[attr.name];
|
|
394
|
-
const value = attr.valueSpan ? attr.value : undefined;
|
|
395
|
-
if (overridden) {
|
|
396
|
-
/**
|
|
397
|
-
* wrap value for accessroles with ''.
|
|
398
|
-
* since accessroles is a structural directive, it will be transpiled to [accessroles]
|
|
399
|
-
* hence, the value against it should be a computed string
|
|
400
|
-
*/
|
|
401
|
-
if (attr.name === 'accessroles' || attr.name === 'showindevice') {
|
|
402
|
-
return [overridden, `'${value}'`];
|
|
403
|
-
}
|
|
404
|
-
return [overridden, quoteAttr(value)];
|
|
405
|
-
}
|
|
406
|
-
if (isEvent(attr.name)) {
|
|
407
|
-
return processEvent(attr);
|
|
408
|
-
}
|
|
409
|
-
const boundExpr = getBoundToExpr(attr.value);
|
|
410
|
-
if (boundExpr) {
|
|
411
|
-
return processBinding(attr, boundExpr);
|
|
412
|
-
}
|
|
413
|
-
return [attr.name, quoteAttr(value)];
|
|
414
|
-
};
|
|
415
|
-
const getDataSource = (dataSetExpr) => {
|
|
416
|
-
const parts = dataSetExpr.split('.');
|
|
417
|
-
if (parts[0] === 'Variables' || parts[0] === 'Widgets') {
|
|
418
|
-
return `${parts[0]}.${parts[1]}`;
|
|
419
|
-
}
|
|
420
|
-
if (parts[0] === 'App' && parts[1] === 'activePage' && parts[2]?.includes('Variables') && parts[3]) {
|
|
421
|
-
return `App.activePage.${parts[2]}.${parts[3]}`;
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
const widgetChildAttrs = (() => {
|
|
425
|
-
const childAttrs = new Map();
|
|
426
|
-
const validChildAttrs = [
|
|
427
|
-
`required`
|
|
428
|
-
];
|
|
429
|
-
return {
|
|
430
|
-
set: attrs => {
|
|
431
|
-
attrs.forEach((val, key) => {
|
|
432
|
-
validChildAttrs.includes(key) && (childAttrs.set(key, val));
|
|
433
|
-
});
|
|
434
|
-
},
|
|
435
|
-
get: attrs => {
|
|
436
|
-
const fltrAttrs = new Map();
|
|
437
|
-
childAttrs.forEach((val, key) => {
|
|
438
|
-
!attrs.get(key) && fltrAttrs.set(key, val);
|
|
439
|
-
});
|
|
440
|
-
return fltrAttrs;
|
|
441
|
-
},
|
|
442
|
-
clear: () => {
|
|
443
|
-
childAttrs.clear();
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
})();
|
|
447
|
-
const setChildAttrs = attrs => {
|
|
448
|
-
widgetChildAttrs.set(attrs);
|
|
449
|
-
return '';
|
|
450
|
-
};
|
|
451
|
-
const getChildAttrs = attrs => {
|
|
452
|
-
return getAttrMarkup(widgetChildAttrs.get(attrs));
|
|
453
|
-
};
|
|
454
|
-
const clearChildAttrs = () => {
|
|
455
|
-
widgetChildAttrs.clear();
|
|
456
|
-
return '';
|
|
457
|
-
};
|
|
458
|
-
const getFormMarkupAttr = attrs => {
|
|
459
|
-
if (attrs.get('datavalue.bind')) {
|
|
460
|
-
const onDataValueBinding = getDataSource(attrs.get('datavalue.bind'));
|
|
461
|
-
attrs.set('datavaluesource.bind', onDataValueBinding);
|
|
462
|
-
}
|
|
463
|
-
return getAttrMarkup(attrs);
|
|
464
|
-
};
|
|
465
|
-
const getAttrMap = attrs => {
|
|
466
|
-
const attrMap = new Map();
|
|
467
|
-
attrs.forEach(attr => {
|
|
468
|
-
let [attrName, attrValue] = processAttr(attr);
|
|
469
|
-
attrMap.set(attrName, attrValue);
|
|
470
|
-
});
|
|
471
|
-
if (attrMap.get('dataset.bind')) {
|
|
472
|
-
const dataSource = getDataSource(attrMap.get('dataset.bind'));
|
|
473
|
-
if (dataSource) {
|
|
474
|
-
attrMap.set('datasource.bind', dataSource);
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
return attrMap;
|
|
478
|
-
};
|
|
479
|
-
const getAttrMarkup = (attrs) => {
|
|
480
|
-
let attrMarkup = '';
|
|
481
|
-
attrs.forEach((v, k) => {
|
|
482
|
-
attrMarkup += ` ${k}`;
|
|
483
|
-
if (v) {
|
|
484
|
-
v = v.trim();
|
|
485
|
-
if (k === '[ngClass]' && v.startsWith('{')) {
|
|
486
|
-
v = v.replace(/"/g, `'`);
|
|
487
|
-
}
|
|
488
|
-
if (k === 'show.bind' && attrs.get('deferload') === 'true') {
|
|
489
|
-
v = v + `" *lazyLoad="${wrapWithApos(v)}`;
|
|
490
|
-
}
|
|
491
|
-
attrMarkup += `="${v}"`;
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
|
-
return attrMarkup;
|
|
495
|
-
};
|
|
496
|
-
const getRequiredProviders = (nodeDef, providers, nodeAttrs) => {
|
|
497
|
-
if (!nodeDef.requires) {
|
|
498
|
-
return [];
|
|
499
|
-
}
|
|
500
|
-
let requires = nodeDef.requires;
|
|
501
|
-
if (isString(requires)) {
|
|
502
|
-
requires = [requires];
|
|
503
|
-
}
|
|
504
|
-
if (!Array.isArray(requires)) {
|
|
505
|
-
return [];
|
|
506
|
-
}
|
|
507
|
-
return requires.map(require => {
|
|
508
|
-
// for dynamic table assigning parent provide map to the child,
|
|
509
|
-
for (let i = nodeAttrs.length - 1; i >= 0; i--) {
|
|
510
|
-
if (nodeAttrs[i].name === 'tableName') {
|
|
511
|
-
return nodeDef[nodeAttrs[i].value];
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
for (let i = providers.length - 1; i >= 0; i--) {
|
|
515
|
-
if (providers[i].nodeName === require) {
|
|
516
|
-
return providers[i].provide;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
const DIMENSION_PROPS = ['padding', 'borderwidth', 'margin'];
|
|
522
|
-
const SEPARATOR = ' ', UNSET = 'unset';
|
|
523
|
-
const setDimensionProp = (cssObj, key, nv) => {
|
|
524
|
-
let cssKey = key, val, top, right, bottom, left, suffix = '';
|
|
525
|
-
function setVal(prop, value) {
|
|
526
|
-
// if the value is UNSET, reset the existing value
|
|
527
|
-
if (value === UNSET) {
|
|
528
|
-
value = '';
|
|
529
|
-
}
|
|
530
|
-
cssObj[cssKey + prop + suffix] = value;
|
|
531
|
-
}
|
|
532
|
-
if (key === 'borderwidth') {
|
|
533
|
-
suffix = 'width';
|
|
534
|
-
cssKey = 'border';
|
|
535
|
-
}
|
|
536
|
-
val = nv;
|
|
537
|
-
if (val.indexOf(UNSET) !== -1) {
|
|
538
|
-
val = val.split(SEPARATOR);
|
|
539
|
-
top = val[0];
|
|
540
|
-
right = val[1] || val[0];
|
|
541
|
-
bottom = val[2] || val[0];
|
|
542
|
-
left = val[3] || val[1] || val[0];
|
|
543
|
-
setVal('top', top);
|
|
544
|
-
setVal('right', right);
|
|
545
|
-
setVal('bottom', bottom);
|
|
546
|
-
setVal('left', left);
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
if (key === 'borderwidth') {
|
|
550
|
-
cssKey = 'borderwidth';
|
|
551
|
-
}
|
|
552
|
-
cssObj[cssKey] = nv;
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
const processDimensionAttributes = attrMap => {
|
|
556
|
-
const attrKeys = Array.from(attrMap.keys());
|
|
557
|
-
attrKeys.forEach((attrKey) => {
|
|
558
|
-
if (DIMENSION_PROPS.includes(attrKey)) {
|
|
559
|
-
const cssObj = {}, attrValue = attrMap.get(attrKey);
|
|
560
|
-
attrMap.delete(attrKey);
|
|
561
|
-
setDimensionProp(cssObj, attrKey, attrValue);
|
|
562
|
-
Object.keys(cssObj).forEach(key => {
|
|
563
|
-
if (cssObj[key]) {
|
|
564
|
-
attrMap.set(key, cssObj[key]);
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
};
|
|
570
|
-
// replace <:svg:svg> -> <svg>, <:svg:*> -> <svg:*>
|
|
571
|
-
const getNodeName = name => name.replace(':svg:svg', 'svg').replace(':svg:', 'svg:');
|
|
572
|
-
const processNode = (node, importCollector, providers) => {
|
|
573
|
-
const nodeDef = registry.get(node.name);
|
|
574
|
-
let pre, post, template;
|
|
575
|
-
if (nodeDef) {
|
|
576
|
-
pre = nodeDef.pre || empty;
|
|
577
|
-
post = nodeDef.post || empty;
|
|
578
|
-
template = nodeDef.template || empty;
|
|
579
|
-
}
|
|
580
|
-
let markup = '';
|
|
581
|
-
let attrMap;
|
|
582
|
-
let requiredProviders;
|
|
583
|
-
let shared;
|
|
584
|
-
if (!providers) {
|
|
585
|
-
providers = [];
|
|
586
|
-
}
|
|
587
|
-
const isElementType = node instanceof compiler.Element;
|
|
588
|
-
if (isElementType) {
|
|
589
|
-
let provideInfo;
|
|
590
|
-
if (nodeDef) {
|
|
591
|
-
requiredProviders = getRequiredProviders(nodeDef, providers, node.attrs);
|
|
592
|
-
shared = new Map();
|
|
593
|
-
template(node, shared, ...requiredProviders);
|
|
594
|
-
}
|
|
595
|
-
attrMap = getAttrMap(node.attrs);
|
|
596
|
-
processDimensionAttributes(attrMap);
|
|
597
|
-
const nodeName = getNodeName(node.name);
|
|
598
|
-
if (nodeDef) {
|
|
599
|
-
markup = pre(attrMap, shared, ...requiredProviders);
|
|
600
|
-
if (nodeDef.provide) {
|
|
601
|
-
provideInfo = {
|
|
602
|
-
nodeName: node.name,
|
|
603
|
-
provide: lodashEs.isFunction(nodeDef.provide) ? nodeDef.provide(attrMap, shared, ...requiredProviders) : nodeDef.provide
|
|
604
|
-
};
|
|
605
|
-
// For table node, assigning parent provide map to the child, as child requires some parent provide attrs.
|
|
606
|
-
if (node.name === 'wm-table') {
|
|
607
|
-
const tableColNodeDefn = registry.get('wm-table-column');
|
|
608
|
-
tableColNodeDefn[lodashEs.find(node.attrs, (el) => el.name === 'name').value + provideInfo.provide.get('table_reference')] = provideInfo.provide;
|
|
609
|
-
registry.set('wm-table-column', tableColNodeDefn);
|
|
610
|
-
}
|
|
611
|
-
providers.push(provideInfo);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
else {
|
|
615
|
-
markup = `<${nodeName} ${getAttrMarkup(attrMap)}>`;
|
|
616
|
-
}
|
|
617
|
-
node.children.forEach((child) => {
|
|
618
|
-
if (child.attrs) {
|
|
619
|
-
let showInDeviceAttr, accessRolesAttr, deferLoadAttr, showAttr;
|
|
620
|
-
child.attrs.forEach(function (attr) {
|
|
621
|
-
if (attr.name === 'showindevice') {
|
|
622
|
-
showInDeviceAttr = attr;
|
|
623
|
-
importCollector(WIDGET_IMPORTS.get("showindevice"));
|
|
624
|
-
}
|
|
625
|
-
else if (attr.name === 'accessroles') {
|
|
626
|
-
accessRolesAttr = attr;
|
|
627
|
-
importCollector(WIDGET_IMPORTS.get('accessroles'));
|
|
628
|
-
}
|
|
629
|
-
else if (attr.name === 'deferload') {
|
|
630
|
-
deferLoadAttr = attr;
|
|
631
|
-
importCollector(WIDGET_IMPORTS.get('lazyload'));
|
|
632
|
-
}
|
|
633
|
-
else if (attr.name === 'show') {
|
|
634
|
-
showAttr = attr;
|
|
635
|
-
}
|
|
636
|
-
});
|
|
637
|
-
if ((showInDeviceAttr && accessRolesAttr) || (showInDeviceAttr && deferLoadAttr) || (accessRolesAttr && deferLoadAttr)) {
|
|
638
|
-
/* If more than one out of showindevice, accessroles and deferload exist for a widget, add ng-container wrappers to fix angular limitation
|
|
639
|
-
of applying only one structural directive to an element.
|
|
640
|
-
* */
|
|
641
|
-
const showInDeviceContainer = showInDeviceAttr ? createCompilerElement('ng-container') : '';
|
|
642
|
-
const accessRolesContainer = accessRolesAttr ? createCompilerElement('ng-container') : '';
|
|
643
|
-
const deferLoadContainer = deferLoadAttr ? createCompilerElement('ng-container') : '';
|
|
644
|
-
if (showInDeviceContainer) {
|
|
645
|
-
showInDeviceContainer.attrs.push(showInDeviceAttr);
|
|
646
|
-
}
|
|
647
|
-
if (accessRolesContainer) {
|
|
648
|
-
accessRolesContainer.attrs.push(accessRolesAttr);
|
|
649
|
-
}
|
|
650
|
-
if (deferLoadContainer) {
|
|
651
|
-
deferLoadContainer.attrs.push(deferLoadAttr);
|
|
652
|
-
if (showAttr) {
|
|
653
|
-
deferLoadContainer.attrs.push(showAttr);
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
lodashEs.remove(child.attrs, function (attr) {
|
|
657
|
-
// @ts-ignore
|
|
658
|
-
return attr.name === 'showindevice' || attr.name === 'accessroles' || attr.name === 'deferload';
|
|
659
|
-
});
|
|
660
|
-
let childContainer, parentContainer;
|
|
661
|
-
if (showInDeviceAttr && accessRolesAttr) {
|
|
662
|
-
childContainer = showInDeviceContainer;
|
|
663
|
-
parentContainer = accessRolesContainer;
|
|
664
|
-
}
|
|
665
|
-
else if (showInDeviceAttr && deferLoadAttr) {
|
|
666
|
-
childContainer = showInDeviceContainer;
|
|
667
|
-
parentContainer = deferLoadContainer;
|
|
668
|
-
}
|
|
669
|
-
else if (accessRolesAttr && deferLoadAttr) {
|
|
670
|
-
childContainer = deferLoadContainer;
|
|
671
|
-
parentContainer = accessRolesContainer;
|
|
672
|
-
}
|
|
673
|
-
// wrap current node elements inside first ng-container(childContainer) and that container's elements inside another ng-container(parentContainer)
|
|
674
|
-
childContainer.children = [child];
|
|
675
|
-
parentContainer.children = [childContainer];
|
|
676
|
-
// if all three directives exist, create another wrapper for third ng-container(grandParentContainer)
|
|
677
|
-
if (showInDeviceAttr && accessRolesAttr && deferLoadAttr) {
|
|
678
|
-
const grandParentContainer = deferLoadContainer;
|
|
679
|
-
grandParentContainer.children = [parentContainer];
|
|
680
|
-
child = grandParentContainer;
|
|
681
|
-
}
|
|
682
|
-
else {
|
|
683
|
-
child = parentContainer;
|
|
684
|
-
}
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
return markup += processNode(child, importCollector, providers);
|
|
688
|
-
});
|
|
689
|
-
if (nodeDef) {
|
|
690
|
-
if (provideInfo) {
|
|
691
|
-
providers.splice(providers.indexOf(provideInfo), 1);
|
|
692
|
-
}
|
|
693
|
-
markup += post(attrMap, shared, ...requiredProviders);
|
|
694
|
-
}
|
|
695
|
-
else if (node.endSourceSpan && !compiler.getHtmlTagDefinition(node.name).isVoid) {
|
|
696
|
-
markup += `</${nodeName}>`;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
else if (node instanceof compiler.Text) {
|
|
700
|
-
markup += node.value;
|
|
701
|
-
}
|
|
702
|
-
else ;
|
|
703
|
-
importCollector(WIDGET_IMPORTS.get(node.name));
|
|
704
|
-
if (nodeDef?.imports) {
|
|
705
|
-
let imports = [];
|
|
706
|
-
if (typeof nodeDef.imports === 'function') {
|
|
707
|
-
imports = nodeDef.imports(attrMap);
|
|
708
|
-
}
|
|
709
|
-
else {
|
|
710
|
-
imports = nodeDef.imports;
|
|
711
|
-
}
|
|
712
|
-
imports.forEach(i => {
|
|
713
|
-
importCollector(WIDGET_IMPORTS.get(i));
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
return markup;
|
|
717
|
-
};
|
|
718
|
-
const transpile = (markup = '') => {
|
|
719
|
-
if (!markup.length) {
|
|
720
|
-
return;
|
|
721
|
-
}
|
|
722
|
-
let requiredWMComponents = [];
|
|
723
|
-
const nodes = htmlParser.parse(markup, '');
|
|
724
|
-
if (nodes.errors.length) {
|
|
725
|
-
return;
|
|
726
|
-
}
|
|
727
|
-
let output = '';
|
|
728
|
-
for (const node of nodes.rootNodes) {
|
|
729
|
-
output += processNode(node, (imports) => {
|
|
730
|
-
if (imports) {
|
|
731
|
-
requiredWMComponents = requiredWMComponents.concat(imports);
|
|
732
|
-
}
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
requiredWMComponents = lodashEs.uniqWith(requiredWMComponents, lodashEs.isEqual);
|
|
736
|
-
requiredWMComponents = lodashEs.sortBy(requiredWMComponents, ['from', 'name']);
|
|
737
|
-
return {
|
|
738
|
-
markup: output,
|
|
739
|
-
requiredWMComponents: requiredWMComponents
|
|
740
|
-
};
|
|
741
|
-
};
|
|
742
|
-
const register = (nodeName, nodeDefFn) => registry.set(nodeName, nodeDefFn());
|
|
743
|
-
const scopeComponentStyles = (componentName, componentType, styles = '') => {
|
|
744
|
-
componentName = componentName.toLowerCase();
|
|
745
|
-
const comments = {};
|
|
746
|
-
let commentCount = 0;
|
|
747
|
-
if (styles.startsWith('/*DISABLE_SCOPING*/')) {
|
|
748
|
-
return styles;
|
|
749
|
-
}
|
|
750
|
-
styles = styles.replace(CSS_REGEX.COMMENTS_FORMAT, comment => {
|
|
751
|
-
const key = `@comment${commentCount++}{`;
|
|
752
|
-
comments[key] = comment;
|
|
753
|
-
return key;
|
|
754
|
-
});
|
|
755
|
-
styles = styles.replace(CSS_REGEX.SELECTOR_FORMAT, (selector) => {
|
|
756
|
-
if (!CSS_REGEX.SELECTOR_EXCLUDE_FORMAT.test(selector)) {
|
|
757
|
-
const firstNonSpaceCharIndex = selector.match(/\S/).index;
|
|
758
|
-
let prefixSpaceCharSeq = '';
|
|
759
|
-
if (firstNonSpaceCharIndex > 0) {
|
|
760
|
-
prefixSpaceCharSeq = selector.substring(0, firstNonSpaceCharIndex);
|
|
761
|
-
selector = selector.substring(firstNonSpaceCharIndex);
|
|
762
|
-
}
|
|
763
|
-
if (!selector.startsWith('/*') && selector.trim().length > 0) {
|
|
764
|
-
// splits the selector by commas and we iterate over the array and add page level scoping and join it.
|
|
765
|
-
selector = selector.split(',').map(s => {
|
|
766
|
-
let prefix = ELE_PREFIX;
|
|
767
|
-
s = s.trim();
|
|
768
|
-
const spaceIndex = s.indexOf(' ');
|
|
769
|
-
if (s.startsWith(ELE_PREFIX)) {
|
|
770
|
-
if (spaceIndex > 0) {
|
|
771
|
-
prefix = s.substring(0, spaceIndex);
|
|
772
|
-
s = s.substring(spaceIndex + 1);
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
return s;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
if (componentType === 0 || componentType === 'PAGE') {
|
|
779
|
-
s = `${prefix} app-page-${componentName} ${s}`;
|
|
780
|
-
}
|
|
781
|
-
else if (componentType === 1 || componentType === 'PREFAB') {
|
|
782
|
-
s = `${prefix} app-prefab-${componentName} ${s}`;
|
|
783
|
-
}
|
|
784
|
-
else if (componentType === 2 || componentType === 'PARTIAL') {
|
|
785
|
-
s = `${prefix} app-partial-${componentName} ${s}`;
|
|
786
|
-
}
|
|
787
|
-
else if (componentType === 3 || componentType === 'WIDGET') {
|
|
788
|
-
s = `${prefix} app-custom-${componentName} ${s}`;
|
|
789
|
-
}
|
|
790
|
-
return s;
|
|
791
|
-
}).join(',');
|
|
792
|
-
}
|
|
793
|
-
selector = prefixSpaceCharSeq + selector;
|
|
794
|
-
}
|
|
795
|
-
return selector;
|
|
796
|
-
});
|
|
797
|
-
for (const key in comments) {
|
|
798
|
-
styles = styles.replace(key, comments[key]);
|
|
799
|
-
}
|
|
800
|
-
return styles;
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
exports.WIDGET_IMPORTS = WIDGET_IMPORTS;
|
|
804
|
-
exports.clearChildAttrs = clearChildAttrs;
|
|
805
|
-
exports.createCompilerElement = createCompilerElement;
|
|
806
|
-
exports.getAttrMarkup = getAttrMarkup;
|
|
807
|
-
exports.getBoundToExpr = getBoundToExpr;
|
|
808
|
-
exports.getChildAttrs = getChildAttrs;
|
|
809
|
-
exports.getDataSource = getDataSource;
|
|
810
|
-
exports.getFormMarkupAttr = getFormMarkupAttr;
|
|
811
|
-
exports.processNode = processNode;
|
|
812
|
-
exports.register = register;
|
|
813
|
-
exports.scopeComponentStyles = scopeComponentStyles;
|
|
814
|
-
exports.setChildAttrs = setChildAttrs;
|
|
815
|
-
exports.transpile = transpile;
|
|
1166
|
+
exports.WIDGET_IMPORTS = WIDGET_IMPORTS;
|
|
1167
|
+
exports.clearChildAttrs = clearChildAttrs;
|
|
1168
|
+
exports.createCompilerElement = createCompilerElement;
|
|
1169
|
+
exports.getAttrMarkup = getAttrMarkup;
|
|
1170
|
+
exports.getBoundToExpr = getBoundToExpr;
|
|
1171
|
+
exports.getChildAttrs = getChildAttrs;
|
|
1172
|
+
exports.getDataSource = getDataSource;
|
|
1173
|
+
exports.getFormMarkupAttr = getFormMarkupAttr;
|
|
1174
|
+
exports.processNode = processNode;
|
|
1175
|
+
exports.register = register;
|
|
1176
|
+
exports.scopeComponentStyles = scopeComponentStyles;
|
|
1177
|
+
exports.setChildAttrs = setChildAttrs;
|
|
1178
|
+
exports.transpile = transpile;
|
|
816
1179
|
|
|
817
1180
|
}));
|