@wavemaker-ai/app-ng-runtime 12.0.0-rc.335 → 12.0.1-rc.338
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 +15 -16
- package/build-task/fesm2022/index.mjs +15 -16
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/bundles/index.umd.js +9 -9
- package/components/advanced/carousel/fesm2022/index.mjs +9 -9
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/types/index.d.ts +7 -7
- package/components/advanced/custom/bundles/index.umd.js +9 -10
- package/components/advanced/custom/fesm2022/index.mjs +9 -10
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
- package/components/advanced/custom/types/index.d.ts +3 -3
- package/components/advanced/login/bundles/index.umd.js +3 -3
- package/components/advanced/login/fesm2022/index.mjs +3 -3
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/types/index.d.ts +1 -1
- package/components/advanced/marquee/bundles/index.umd.js +3 -3
- package/components/advanced/marquee/fesm2022/index.mjs +3 -3
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
- package/components/advanced/marquee/types/index.d.ts +1 -1
- package/components/base/bundles/index.umd.js +40 -46
- package/components/base/fesm2022/index.mjs +40 -46
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/types/index.d.ts +47 -46
- package/components/basic/anchor/bundles/index.umd.js +3 -3
- package/components/basic/anchor/fesm2022/index.mjs +3 -3
- package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
- package/components/basic/anchor/types/index.d.ts +3 -3
- package/components/basic/audio/bundles/index.umd.js +3 -3
- package/components/basic/audio/fesm2022/index.mjs +3 -3
- package/components/basic/audio/fesm2022/index.mjs.map +1 -1
- package/components/basic/audio/types/index.d.ts +1 -1
- package/components/basic/html/bundles/index.umd.js +10 -11
- package/components/basic/html/fesm2022/index.mjs +10 -11
- package/components/basic/html/fesm2022/index.mjs.map +1 -1
- package/components/basic/html/types/index.d.ts +3 -3
- package/components/basic/icon/bundles/index.umd.js +3 -3
- package/components/basic/icon/fesm2022/index.mjs +3 -3
- package/components/basic/icon/fesm2022/index.mjs.map +1 -1
- package/components/basic/icon/types/index.d.ts +1 -1
- package/components/basic/iframe/bundles/index.umd.js +5 -5
- package/components/basic/iframe/fesm2022/index.mjs +5 -5
- package/components/basic/iframe/fesm2022/index.mjs.map +1 -1
- package/components/basic/iframe/types/index.d.ts +3 -3
- package/components/basic/label/bundles/index.umd.js +10 -11
- package/components/basic/label/fesm2022/index.mjs +10 -11
- package/components/basic/label/fesm2022/index.mjs.map +1 -1
- package/components/basic/label/types/index.d.ts +1 -1
- package/components/basic/picture/bundles/index.umd.js +3 -3
- package/components/basic/picture/fesm2022/index.mjs +3 -3
- package/components/basic/picture/fesm2022/index.mjs.map +1 -1
- package/components/basic/picture/types/index.d.ts +2 -2
- package/components/basic/progress/progress-bar/bundles/index.umd.js +8 -10
- package/components/basic/progress/progress-bar/fesm2022/index.mjs +8 -10
- package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-bar/types/index.d.ts +2 -2
- package/components/basic/progress/progress-circle/bundles/index.umd.js +3 -3
- package/components/basic/progress/progress-circle/fesm2022/index.mjs +3 -3
- package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-circle/types/index.d.ts +2 -2
- package/components/basic/rich-text-editor/bundles/index.umd.js +3 -3
- package/components/basic/rich-text-editor/fesm2022/index.mjs +3 -3
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/types/index.d.ts +3 -3
- package/components/basic/search/bundles/index.umd.js +40 -42
- package/components/basic/search/fesm2022/index.mjs +40 -42
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/types/index.d.ts +13 -13
- package/components/basic/spinner/bundles/index.umd.js +3 -3
- package/components/basic/spinner/fesm2022/index.mjs +3 -3
- package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
- package/components/basic/spinner/types/index.d.ts +3 -3
- package/components/basic/tree/bundles/index.umd.js +9 -9
- package/components/basic/tree/fesm2022/index.mjs +9 -9
- package/components/basic/tree/fesm2022/index.mjs.map +1 -1
- package/components/basic/tree/types/index.d.ts +7 -7
- package/components/basic/video/bundles/index.umd.js +3 -3
- package/components/basic/video/fesm2022/index.mjs +3 -3
- package/components/basic/video/fesm2022/index.mjs.map +1 -1
- package/components/basic/video/types/index.d.ts +2 -2
- package/components/chart/bundles/index.umd.js +19 -22
- package/components/chart/fesm2022/index.mjs +20 -23
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/chart/types/index.d.ts +9 -9
- package/components/containers/accordion/bundles/index.umd.js +10 -12
- package/components/containers/accordion/fesm2022/index.mjs +10 -12
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/types/index.d.ts +9 -9
- package/components/containers/layout-grid/bundles/index.umd.js +9 -9
- package/components/containers/layout-grid/fesm2022/index.mjs +9 -9
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/types/index.d.ts +4 -4
- package/components/containers/linear-layout/bundles/index.umd.js +6 -6
- package/components/containers/linear-layout/fesm2022/index.mjs +6 -6
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
- package/components/containers/linear-layout/types/index.d.ts +2 -2
- package/components/containers/panel/bundles/index.umd.js +3 -3
- package/components/containers/panel/fesm2022/index.mjs +3 -3
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/types/index.d.ts +3 -3
- package/components/containers/tabs/bundles/index.umd.js +9 -9
- package/components/containers/tabs/fesm2022/index.mjs +9 -9
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/types/index.d.ts +8 -8
- package/components/containers/tile/bundles/index.umd.js +3 -3
- package/components/containers/tile/fesm2022/index.mjs +3 -3
- package/components/containers/tile/fesm2022/index.mjs.map +1 -1
- package/components/containers/tile/types/index.d.ts +1 -1
- package/components/containers/wizard/bundles/index.umd.js +18 -18
- package/components/containers/wizard/fesm2022/index.mjs +18 -18
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/types/index.d.ts +8 -8
- package/components/data/card/bundles/index.umd.js +12 -12
- package/components/data/card/fesm2022/index.mjs +12 -12
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/card/types/index.d.ts +6 -6
- package/components/data/form/bundles/index.umd.js +72 -75
- package/components/data/form/fesm2022/index.mjs +72 -77
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/types/index.d.ts +29 -29
- package/components/data/list/bundles/index.umd.js +22 -27
- package/components/data/list/fesm2022/index.mjs +22 -27
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/types/index.d.ts +23 -23
- package/components/data/live-table/bundles/index.umd.js +3 -3
- package/components/data/live-table/fesm2022/index.mjs +3 -3
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/types/index.d.ts +5 -5
- package/components/data/pagination/bundles/index.umd.js +27 -28
- package/components/data/pagination/fesm2022/index.mjs +27 -28
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/types/index.d.ts +1 -1
- package/components/data/table/bundles/index.umd.js +131 -142
- package/components/data/table/fesm2022/index.mjs +131 -143
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/types/index.d.ts +20 -20
- package/components/dialogs/alert-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/alert-dialog/types/index.d.ts +1 -1
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/types/index.d.ts +1 -1
- package/components/dialogs/default/bundles/index.umd.js +12 -12
- package/components/dialogs/default/fesm2022/index.mjs +12 -12
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/types/index.d.ts +3 -3
- package/components/dialogs/design-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/design-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/types/index.d.ts +1 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/types/index.d.ts +1 -1
- package/components/dialogs/login-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/login-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/login-dialog/types/index.d.ts +2 -2
- package/components/dialogs/partial-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/types/index.d.ts +1 -1
- package/components/input/base-form/bundles/index.umd.js +4 -4
- package/components/input/base-form/fesm2022/index.mjs +4 -4
- package/components/input/base-form/fesm2022/index.mjs.map +1 -1
- package/components/input/base-form-custom/bundles/index.umd.js +3 -3
- package/components/input/base-form-custom/fesm2022/index.mjs +3 -3
- package/components/input/button/bundles/index.umd.js +3 -3
- package/components/input/button/fesm2022/index.mjs +3 -3
- package/components/input/button/fesm2022/index.mjs.map +1 -1
- package/components/input/button/types/index.d.ts +1 -1
- package/components/input/button-group/bundles/index.umd.js +3 -3
- package/components/input/button-group/fesm2022/index.mjs +3 -3
- package/components/input/button-group/fesm2022/index.mjs.map +1 -1
- package/components/input/button-group/types/index.d.ts +1 -1
- package/components/input/calendar/bundles/index.umd.js +4 -4
- package/components/input/calendar/fesm2022/index.mjs +4 -5
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/calendar/types/index.d.ts +9 -9
- package/components/input/caption-position/bundles/index.umd.js +5 -5
- package/components/input/caption-position/fesm2022/index.mjs +5 -5
- package/components/input/caption-position/fesm2022/index.mjs.map +1 -1
- package/components/input/caption-position/types/index.d.ts +4 -4
- package/components/input/checkbox/bundles/index.umd.js +3 -3
- package/components/input/checkbox/fesm2022/index.mjs +3 -3
- package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
- package/components/input/checkbox/types/index.d.ts +2 -2
- package/components/input/checkboxset/bundles/index.umd.js +4 -4
- package/components/input/checkboxset/fesm2022/index.mjs +4 -4
- package/components/input/checkboxset/fesm2022/index.mjs.map +1 -1
- package/components/input/checkboxset/types/index.d.ts +2 -2
- package/components/input/chips/bundles/index.umd.js +5 -5
- package/components/input/chips/fesm2022/index.mjs +5 -5
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/types/index.d.ts +14 -14
- package/components/input/color-picker/bundles/index.umd.js +3 -3
- package/components/input/color-picker/fesm2022/index.mjs +3 -3
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/types/index.d.ts +2 -2
- package/components/input/composite/bundles/index.umd.js +3 -3
- package/components/input/composite/fesm2022/index.mjs +3 -3
- package/components/input/composite/fesm2022/index.mjs.map +1 -1
- package/components/input/composite/types/index.d.ts +1 -1
- package/components/input/currency/bundles/index.umd.js +3 -3
- package/components/input/currency/fesm2022/index.mjs +3 -3
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/types/index.d.ts +3 -3
- package/components/input/dataset-aware-form/bundles/index.umd.js +7 -7
- package/components/input/dataset-aware-form/fesm2022/index.mjs +7 -7
- package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
- package/components/input/dataset-aware-form/types/index.d.ts +1 -1
- package/components/input/epoch/base-date-time/bundles/index.umd.js +10 -15
- package/components/input/epoch/base-date-time/fesm2022/index.mjs +10 -15
- package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/base-date-time/types/index.d.ts +2 -2
- package/components/input/epoch/date/bundles/index.umd.js +5 -5
- package/components/input/epoch/date/fesm2022/index.mjs +5 -5
- package/components/input/epoch/date/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date/types/index.d.ts +4 -4
- package/components/input/epoch/date-time/bundles/index.umd.js +3 -3
- package/components/input/epoch/date-time/fesm2022/index.mjs +3 -3
- package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date-time/types/index.d.ts +8 -8
- package/components/input/epoch/date-time-picker/bundles/index.umd.js +8 -8
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs +8 -8
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date-time-picker/types/index.d.ts +6 -7
- package/components/input/epoch/picker/bundles/index.umd.js +6 -6
- package/components/input/epoch/picker/fesm2022/index.mjs +6 -6
- package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/time/bundles/index.umd.js +4 -5
- package/components/input/epoch/time/fesm2022/index.mjs +5 -6
- package/components/input/epoch/time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/time/types/index.d.ts +4 -4
- package/components/input/file-upload/bundles/index.umd.js +4 -4
- package/components/input/file-upload/fesm2022/index.mjs +4 -4
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/types/index.d.ts +5 -5
- package/components/input/number/bundles/index.umd.js +3 -3
- package/components/input/number/fesm2022/index.mjs +3 -3
- package/components/input/number/fesm2022/index.mjs.map +1 -1
- package/components/input/number/types/index.d.ts +1 -1
- package/components/input/radioset/bundles/index.umd.js +4 -4
- package/components/input/radioset/fesm2022/index.mjs +4 -4
- package/components/input/radioset/fesm2022/index.mjs.map +1 -1
- package/components/input/radioset/types/index.d.ts +2 -2
- package/components/input/rating/bundles/index.umd.js +9 -11
- package/components/input/rating/fesm2022/index.mjs +9 -11
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/types/index.d.ts +2 -2
- package/components/input/select/bundles/index.umd.js +4 -4
- package/components/input/select/fesm2022/index.mjs +4 -4
- package/components/input/select/fesm2022/index.mjs.map +1 -1
- package/components/input/select/types/index.d.ts +1 -1
- package/components/input/slider/bundles/index.umd.js +3 -3
- package/components/input/slider/fesm2022/index.mjs +3 -3
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/types/index.d.ts +1 -1
- package/components/input/switch/bundles/index.umd.js +3 -3
- package/components/input/switch/fesm2022/index.mjs +3 -3
- package/components/input/switch/fesm2022/index.mjs.map +1 -1
- package/components/input/switch/types/index.d.ts +1 -1
- package/components/input/text/bundles/index.umd.js +31 -35
- package/components/input/text/fesm2022/index.mjs +31 -35
- package/components/input/text/fesm2022/index.mjs.map +1 -1
- package/components/input/text/types/index.d.ts +12 -12
- package/components/input/textarea/bundles/index.umd.js +3 -3
- package/components/input/textarea/fesm2022/index.mjs +3 -3
- package/components/input/textarea/fesm2022/index.mjs.map +1 -1
- package/components/input/textarea/types/index.d.ts +2 -2
- package/components/navigation/breadcrumb/bundles/index.umd.js +3 -3
- package/components/navigation/breadcrumb/fesm2022/index.mjs +3 -3
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/types/index.d.ts +4 -4
- package/components/navigation/menu/bundles/index.umd.js +25 -33
- package/components/navigation/menu/fesm2022/index.mjs +25 -33
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/types/index.d.ts +21 -21
- package/components/navigation/navbar/bundles/index.umd.js +3 -3
- package/components/navigation/navbar/fesm2022/index.mjs +3 -3
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/types/index.d.ts +1 -1
- package/components/navigation/popover/bundles/index.umd.js +4 -4
- package/components/navigation/popover/fesm2022/index.mjs +4 -4
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/types/index.d.ts +4 -4
- package/components/page/default/bundles/index.umd.js +23 -23
- package/components/page/default/fesm2022/index.mjs +23 -23
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/types/index.d.ts +14 -14
- package/components/page/footer/bundles/index.umd.js +3 -3
- package/components/page/footer/fesm2022/index.mjs +3 -3
- package/components/page/footer/fesm2022/index.mjs.map +1 -1
- package/components/page/footer/types/index.d.ts +1 -1
- package/components/page/header/bundles/index.umd.js +3 -3
- package/components/page/header/fesm2022/index.mjs +3 -3
- package/components/page/header/fesm2022/index.mjs.map +1 -1
- package/components/page/header/types/index.d.ts +1 -1
- package/components/page/left-panel/bundles/index.umd.js +5 -5
- package/components/page/left-panel/fesm2022/index.mjs +5 -5
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/types/index.d.ts +3 -3
- package/components/page/right-panel/bundles/index.umd.js +3 -3
- package/components/page/right-panel/fesm2022/index.mjs +3 -3
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/right-panel/types/index.d.ts +1 -1
- package/components/page/top-nav/bundles/index.umd.js +3 -3
- package/components/page/top-nav/fesm2022/index.mjs +3 -3
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/page/top-nav/types/index.d.ts +1 -1
- package/components/prefab/bundles/index.umd.js +7 -7
- package/components/prefab/fesm2022/index.mjs +7 -7
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/components/prefab/types/index.d.ts +3 -3
- package/core/bundles/index.umd.js +84 -89
- package/core/fesm2022/index.mjs +84 -89
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/types/index.d.ts +11 -11
- package/http/bundles/index.umd.js +6 -6
- package/http/fesm2022/index.mjs +6 -6
- package/http/fesm2022/index.mjs.map +1 -1
- package/http/types/index.d.ts +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +17 -21
- package/oAuth/fesm2022/index.mjs +17 -21
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/oAuth/types/index.d.ts +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +253 -275
- package/runtime/base/fesm2022/index.mjs +253 -275
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/types/index.d.ts +90 -96
- package/runtime/dynamic/bundles/index.umd.js +28 -28
- package/runtime/dynamic/fesm2022/index.mjs +28 -28
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/runtime/dynamic/types/index.d.ts +22 -22
- package/scripts/datatable/datatable.js +293 -271
- package/scripts/tree-keyboard-navigation/keyboard-navigation.js +68 -56
- package/security/bundles/index.umd.js +6 -6
- package/security/fesm2022/index.mjs +6 -6
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/types/index.d.ts +5 -5
- package/transpiler/bundles/index.umd.js +3 -5
- package/transpiler/fesm2022/index.mjs +3 -5
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/variables/bundles/index.umd.js +69 -71
- package/variables/fesm2022/index.mjs +69 -72
- package/variables/fesm2022/index.mjs.map +1 -1
- package/variables/types/index.d.ts +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/basic/video/src/video.props.ts","../../../../../projects/components/widgets/basic/video/src/video.component.ts","../../../../../projects/components/widgets/basic/video/src/video.component.html","../../../../../projects/components/widgets/basic/video/src/index.ts"],"sourcesContent":["import {PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-video',\n new Map(\n [\n ['autoplay', PROP_BOOLEAN],\n ['class', PROP_STRING],\n ['controls', PROP_BOOLEAN],\n ['hint', PROP_STRING],\n ['arialabel', PROP_STRING],\n ['loop', PROP_BOOLEAN],\n ['mp4format', PROP_STRING],\n ['muted', PROP_BOOLEAN],\n ['name', PROP_STRING],\n ['oggformat', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['subtitlelang', {value: 'en', ...PROP_STRING}],\n ['subtitlesource', PROP_STRING],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['videoposter', {value: 'resources/images/imagelists/default-image.png', ...PROP_STRING}],\n ['videopreload', {value: 'none', ...PROP_STRING}],\n ['videosupportmessage', {value: 'Your browser does not support the video tag.', ...PROP_STRING}],\n ['webmformat', PROP_STRING]\n ]\n )\n );\n};\n","import {Component, Inject, Injector, Optional, SecurityContext} from '@angular/core';\n\nimport {appendNode, createElement, removeNode, transformFileURI} from '@wm/core';\nimport {DISPLAY_TYPE, ImagePipe, provideAsWidgetRef, StylableComponent, styler, TrustAsPipe} from '@wm/components/base';\n\nimport {registerProps} from './video.props';\n\nconst DEFAULT_CLS = 'app-video';\nconst WIDGET_CONFIG = {\n widgetType: 'wm-video',\n hostClass: DEFAULT_CLS,\n displayType: DISPLAY_TYPE.INLINE_BLOCK\n};\n\n@Component({\n standalone: true,\n imports: [TrustAsPipe, ImagePipe],\n selector: '[wmVideo]',\n templateUrl: './video.component.html',\n providers: [\n provideAsWidgetRef(VideoComponent)\n ]\n})\nexport class VideoComponent extends StylableComponent {\n static initializeProps = registerProps();\n /**\n * subtitle language property eg: en\n */\n public subtitlelang = 'en';\n public videopreload: any;\n public mp4format: string;\n public muted: boolean;\n public videoposter: any;\n public controls: boolean;\n public loop: boolean;\n public autoplay: boolean;\n public webmformat: string;\n public oggformat: string;\n public videosupportmessage: any;\n public arialabel: string;\n public tabindex: string;\n\n constructor(inj: Injector, private trustAsPipe: TrustAsPipe, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this);\n }\n\n // DO NOT use ngIf binding for the track. As of v6.0.Beta7 there is an error creating a void track node\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'subtitlesource') {\n let track: HTMLElement = this.nativeElement.querySelector('track');\n if (track) {\n removeNode(track, true);\n }\n\n track = createElement('track', {\n kind: 'subtitles',\n label: this.subtitlelang,\n srclang: this.subtitlelang,\n src: this.trustAsPipe.transform(nv, SecurityContext.RESOURCE_URL),\n default: ''\n }, true);\n\n appendNode(track, this.nativeElement.querySelector('video'));\n } else if (key === 'mp4format') {\n this.mp4format = transformFileURI(nv);\n } else if (key === 'webmformat') {\n this.webmformat = transformFileURI(nv);\n } else if (key === 'oggformat') {\n this.oggformat = transformFileURI(nv);\n } else if (key === 'tabindex') {\n return;\n }\n\n super.onPropertyChange(key, nv, ov);\n }\n}\n","<video [attr.aria-label]=\"arialabel || 'video'\" [preload]=\"videopreload\"\n [src]=\"mp4format | trustAs: 'resource'\"\n [muted]=\"muted\"\n [poster]=\"videoposter | image\"\n [controls]=\"controls\"\n [loop]=\"loop\"\n [autoplay]=\"autoplay\" [tabindex]=\"tabindex\">\n @if (mp4format) {\n <source type=\"video/mp4\" [src]=\"mp4format | trustAs: 'resource'\">\n }\n @if (webmformat) {\n <source type=\"video/webm\" [src]=\"webmformat | trustAs: 'resource'\">\n }\n @if (oggformat) {\n <source type=\"video/ogg\" [src]=\"oggformat | trustAs: 'resource'\">\n }\n {{videosupportmessage}}\n</video>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,UAAU,EACV,IAAI,GAAG,CACH;QACI,CAAC,UAAU,EAAE,YAAY,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,YAAY,CAAC;QAC1B,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,MAAM,EAAE,YAAY,CAAC;QACtB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,YAAY,CAAC;QACvB,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QACxC,CAAC,cAAc,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,WAAW,EAAC,CAAC;QAC/C,CAAC,gBAAgB,EAAE,WAAW,CAAC;QAC/B,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;QACxC,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,+CAA+C,EAAE,GAAG,WAAW,EAAC,CAAC;QACzF,CAAC,cAAc,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,GAAG,WAAW,EAAC,CAAC;QACjD,CAAC,qBAAqB,EAAE,EAAC,KAAK,EAAE,8CAA8C,EAAE,GAAG,WAAW,EAAC,CAAC;QAChG,CAAC,YAAY,EAAE,WAAW;AAC7B,KAAA,CACJ,CACJ;AACL,CAAC;;ACrBD,MAAM,WAAW,GAAG,WAAW;AAC/B,MAAM,aAAa,GAAG;AAClB,IAAA,UAAU,EAAE,UAAU;AACtB,IAAA,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,YAAY,CAAC;CAC7B;AAWK,MAAO,cAAe,SAAQ,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/basic/video/src/video.props.ts","../../../../../projects/components/widgets/basic/video/src/video.component.ts","../../../../../projects/components/widgets/basic/video/src/video.component.html","../../../../../projects/components/widgets/basic/video/src/index.ts"],"sourcesContent":["import {PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register} from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-video',\n new Map(\n [\n ['autoplay', PROP_BOOLEAN],\n ['class', PROP_STRING],\n ['controls', PROP_BOOLEAN],\n ['hint', PROP_STRING],\n ['arialabel', PROP_STRING],\n ['loop', PROP_BOOLEAN],\n ['mp4format', PROP_STRING],\n ['muted', PROP_BOOLEAN],\n ['name', PROP_STRING],\n ['oggformat', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['subtitlelang', {value: 'en', ...PROP_STRING}],\n ['subtitlesource', PROP_STRING],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['videoposter', {value: 'resources/images/imagelists/default-image.png', ...PROP_STRING}],\n ['videopreload', {value: 'none', ...PROP_STRING}],\n ['videosupportmessage', {value: 'Your browser does not support the video tag.', ...PROP_STRING}],\n ['webmformat', PROP_STRING]\n ]\n )\n );\n};\n","import {Component, Inject, Injector, Optional, SecurityContext} from '@angular/core';\n\nimport {appendNode, createElement, removeNode, transformFileURI} from '@wm/core';\nimport {DISPLAY_TYPE, ImagePipe, provideAsWidgetRef, StylableComponent, styler, TrustAsPipe} from '@wm/components/base';\n\nimport {registerProps} from './video.props';\n\nconst DEFAULT_CLS = 'app-video';\nconst WIDGET_CONFIG = {\n widgetType: 'wm-video',\n hostClass: DEFAULT_CLS,\n displayType: DISPLAY_TYPE.INLINE_BLOCK\n};\n\n@Component({\n standalone: true,\n imports: [TrustAsPipe, ImagePipe],\n selector: '[wmVideo]',\n templateUrl: './video.component.html',\n providers: [\n provideAsWidgetRef(VideoComponent)\n ]\n})\nexport class VideoComponent extends StylableComponent {\n static readonly initializeProps = registerProps();\n /**\n * subtitle language property eg: en\n */\n public subtitlelang = 'en';\n public videopreload: any;\n public mp4format: string;\n public muted: boolean;\n public videoposter: any;\n public controls: boolean;\n public loop: boolean;\n public autoplay: boolean;\n public webmformat: string;\n public oggformat: string;\n public videosupportmessage: any;\n public arialabel: string;\n public tabindex: string;\n\n constructor(inj: Injector, private readonly trustAsPipe: TrustAsPipe, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n styler(this.nativeElement, this);\n }\n\n // DO NOT use ngIf binding for the track. As of v6.0.Beta7 there is an error creating a void track node\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'subtitlesource') {\n let track: HTMLElement = this.nativeElement.querySelector('track');\n if (track) {\n removeNode(track, true);\n }\n\n track = createElement('track', {\n kind: 'subtitles',\n label: this.subtitlelang,\n srclang: this.subtitlelang,\n src: this.trustAsPipe.transform(nv, SecurityContext.RESOURCE_URL),\n default: ''\n }, true);\n\n appendNode(track, this.nativeElement.querySelector('video'));\n } else if (key === 'mp4format') {\n this.mp4format = transformFileURI(nv);\n } else if (key === 'webmformat') {\n this.webmformat = transformFileURI(nv);\n } else if (key === 'oggformat') {\n this.oggformat = transformFileURI(nv);\n } else if (key === 'tabindex') {\n return;\n }\n\n super.onPropertyChange(key, nv, ov);\n }\n}\n","<video [attr.aria-label]=\"arialabel || 'video'\" [preload]=\"videopreload\"\n [src]=\"mp4format | trustAs: 'resource'\"\n [muted]=\"muted\"\n [poster]=\"videoposter | image\"\n [controls]=\"controls\"\n [loop]=\"loop\"\n [autoplay]=\"autoplay\" [tabindex]=\"tabindex\">\n @if (mp4format) {\n <source type=\"video/mp4\" [src]=\"mp4format | trustAs: 'resource'\">\n }\n @if (webmformat) {\n <source type=\"video/webm\" [src]=\"webmformat | trustAs: 'resource'\">\n }\n @if (oggformat) {\n <source type=\"video/ogg\" [src]=\"oggformat | trustAs: 'resource'\">\n }\n {{videosupportmessage}}\n</video>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"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"}
|
|
@@ -3,8 +3,8 @@ import { Injector } from '@angular/core';
|
|
|
3
3
|
import { StylableComponent, TrustAsPipe } from '@wm/components/base';
|
|
4
4
|
|
|
5
5
|
declare class VideoComponent extends StylableComponent {
|
|
6
|
-
private trustAsPipe;
|
|
7
|
-
static initializeProps: void;
|
|
6
|
+
private readonly trustAsPipe;
|
|
7
|
+
static readonly initializeProps: void;
|
|
8
8
|
/**
|
|
9
9
|
* subtitle language property eg: en
|
|
10
10
|
*/
|
|
@@ -517,8 +517,8 @@
|
|
|
517
517
|
}
|
|
518
518
|
formattedData = numberFormatter(d);
|
|
519
519
|
// Getting the respective divider[1000,1000000,1000000000] based on the number format choosen
|
|
520
|
-
divider = (tickformats[numberFormat]
|
|
521
|
-
prefix = tickformats[numberFormat]
|
|
520
|
+
divider = (tickformats[numberFormat]?.divider) || 0;
|
|
521
|
+
prefix = tickformats[numberFormat]?.prefix;
|
|
522
522
|
if (prefix && divider !== 0) {
|
|
523
523
|
formattedData = d3.format('.2f')(d / divider) + prefix;
|
|
524
524
|
}
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
// Setting the legend type choosen by user or default it will be furious
|
|
673
|
-
chart.legend.vers((propertyValueMap.legendtype
|
|
673
|
+
chart.legend.vers((propertyValueMap.legendtype?.toLowerCase()) || 'furious');
|
|
674
674
|
if (!lodashEs.includes(chartTypes, widgetContext.type)) {
|
|
675
675
|
chart = nv.models.multiBarChart()
|
|
676
676
|
.x(d => d.x)
|
|
@@ -725,11 +725,9 @@
|
|
|
725
725
|
else if (propertyValueMap.xnumberformat) {
|
|
726
726
|
chart.xAxis.tickFormat(d => getNumberFormatedData(propertyValueMap.xnumberformat, d));
|
|
727
727
|
}
|
|
728
|
-
else {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
chart.xAxis.tickFormat(d => widgetContext.xDataKeyArr[d]);
|
|
732
|
-
}
|
|
728
|
+
else if (isLineTypeChart(widgetContext.type)) {
|
|
729
|
+
// get the actual value
|
|
730
|
+
chart.xAxis.tickFormat(d => widgetContext.xDataKeyArr[d]);
|
|
733
731
|
}
|
|
734
732
|
chart.yAxis
|
|
735
733
|
.axisLabel(yaxislabel)
|
|
@@ -992,7 +990,7 @@
|
|
|
992
990
|
this.xDataKeyArr = getDateList();
|
|
993
991
|
return this.sampleData;
|
|
994
992
|
}
|
|
995
|
-
if (!this.chartData
|
|
993
|
+
if (!this.chartData?.length) {
|
|
996
994
|
return [];
|
|
997
995
|
}
|
|
998
996
|
let datum = [], yAxisKey, shapes = [], values = [];
|
|
@@ -1162,7 +1160,6 @@
|
|
|
1162
1160
|
}
|
|
1163
1161
|
obj[this.xaxisdatakey] = lodashEs.get(responseContent, xAxisAliasKey) || lodashEs.get(responseContent, this.xaxisdatakey);
|
|
1164
1162
|
yAxisKeys.forEach((yAxisKey, index) => {
|
|
1165
|
-
obj[yAxisKey] = responseContent[yAxisAliasKeys[index]];
|
|
1166
1163
|
obj[yAxisKey] = lodashEs.get(responseContent, yAxisAliasKeys[index]) || lodashEs.get(responseContent, yAxisKey);
|
|
1167
1164
|
});
|
|
1168
1165
|
chartData.push(obj);
|
|
@@ -1319,7 +1316,7 @@
|
|
|
1319
1316
|
pieLabels = chartSvg.select('.nv-pieLabels').selectAll('.nv-label');
|
|
1320
1317
|
pieGroups = chartSvg.select('.nv-pie').selectAll('.nv-slice');
|
|
1321
1318
|
angleArray = [];
|
|
1322
|
-
if (pieGroups
|
|
1319
|
+
if (pieGroups?.length) {
|
|
1323
1320
|
pieGroups.each(function () {
|
|
1324
1321
|
d3.select(this).attr('transform', function (d) {
|
|
1325
1322
|
angleArray.push(angle(d));
|
|
@@ -1345,7 +1342,7 @@
|
|
|
1345
1342
|
* allow window-resize functionality, for only-run mode as
|
|
1346
1343
|
* updating chart is being handled by watchers of height & width in studio-mode
|
|
1347
1344
|
* */
|
|
1348
|
-
i1.triggerFn(this._resizeFn
|
|
1345
|
+
i1.triggerFn(this._resizeFn?.clear);
|
|
1349
1346
|
this._resizeFn = nv.utils.windowResize(() => {
|
|
1350
1347
|
if (element[0].getBoundingClientRect().height) {
|
|
1351
1348
|
chart.update();
|
|
@@ -1380,7 +1377,7 @@
|
|
|
1380
1377
|
if (lodashEs.isArray(this._processedData)) {
|
|
1381
1378
|
// WMS-19499: To remove chart X-axis old ticks when chart data loaded dynamically.
|
|
1382
1379
|
const oldgTicks = $('#wmChart' + this.$id + ' svg').find('g.nv-x').find('g.tick');
|
|
1383
|
-
if (oldgTicks
|
|
1380
|
+
if (oldgTicks?.length) {
|
|
1384
1381
|
oldgTicks.remove();
|
|
1385
1382
|
}
|
|
1386
1383
|
beforeRenderVal = this.invokeEventCallback('beforerender', { 'chartInstance': chart });
|
|
@@ -1495,7 +1492,7 @@
|
|
|
1495
1492
|
break;
|
|
1496
1493
|
case 'groupby':
|
|
1497
1494
|
// Filtering only non primary key columns
|
|
1498
|
-
if (this.isLiveVariable && this.nonPrimaryColumns
|
|
1495
|
+
if (this.isLiveVariable && this.nonPrimaryColumns?.length) {
|
|
1499
1496
|
newOptions = this.nonPrimaryColumns;
|
|
1500
1497
|
}
|
|
1501
1498
|
break;
|
|
@@ -1512,7 +1509,7 @@
|
|
|
1512
1509
|
}
|
|
1513
1510
|
break;
|
|
1514
1511
|
case 'bubblesize':
|
|
1515
|
-
if (this.numericColumns
|
|
1512
|
+
if (this.numericColumns?.length) {
|
|
1516
1513
|
newOptions = this.numericColumns;
|
|
1517
1514
|
}
|
|
1518
1515
|
break;
|
|
@@ -1559,7 +1556,7 @@
|
|
|
1559
1556
|
if (!lodashEs.isArray(this.chartData) && lodashEs.isObject(this.chartData)) {
|
|
1560
1557
|
this.chartData = [this.chartData];
|
|
1561
1558
|
}
|
|
1562
|
-
if (newVal
|
|
1559
|
+
if (newVal?.filterFields) {
|
|
1563
1560
|
this.filterFields = newVal.filterFields;
|
|
1564
1561
|
}
|
|
1565
1562
|
// plotchart for only valid data and only after bound variable returns data
|
|
@@ -1579,13 +1576,13 @@
|
|
|
1579
1576
|
.attr('class', 'nv-pie-title')
|
|
1580
1577
|
.text(labelValue)
|
|
1581
1578
|
.each(function (d) {
|
|
1582
|
-
|
|
1579
|
+
const d3text = d3.select(this), circ = d3.select(this.parentElement), totalWidth = Number(circ.node().getBoundingClientRect().width),
|
|
1583
1580
|
// minus the ring width from total width
|
|
1584
1581
|
availWidth = totalWidth - 30, textWidth = this.getComputedTextLength();
|
|
1585
1582
|
d3text.attr("data-scale", availWidth / textWidth);
|
|
1586
1583
|
}).style("font-size", function () {
|
|
1587
1584
|
// 16 is the default font size to multiply with the scaled value and 24 is the maximum font size that can be applied
|
|
1588
|
-
|
|
1585
|
+
const fontSize = 16 * d3.select(this).attr("data-scale");
|
|
1589
1586
|
return fontSize > 24 ? 24 : fontSize + "px";
|
|
1590
1587
|
});
|
|
1591
1588
|
}
|
|
@@ -1632,7 +1629,7 @@
|
|
|
1632
1629
|
}
|
|
1633
1630
|
handleLoading(data) {
|
|
1634
1631
|
const dataSource = this.datasource;
|
|
1635
|
-
if (dataSource
|
|
1632
|
+
if (dataSource?.execute(i1.DataSource.Operation.IS_API_AWARE) && i1.isDataSourceEqual(data.variable, dataSource)) {
|
|
1636
1633
|
this.variableInflight = data.active;
|
|
1637
1634
|
this.isLoadInProgress = data.active;
|
|
1638
1635
|
}
|
|
@@ -1723,12 +1720,12 @@
|
|
|
1723
1720
|
this.nonPrimaryColumns = [];
|
|
1724
1721
|
super.ngOnDestroy();
|
|
1725
1722
|
}
|
|
1726
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1727
|
-
static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1723
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: ChartComponent, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.App }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
|
|
1724
|
+
static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: ChartComponent, isStandalone: true, selector: "div[wmChart]", host: { properties: { "class.panel": "this.title" } }, providers: [
|
|
1728
1725
|
base.provideAsWidgetRef(ChartComponent)
|
|
1729
1726
|
], usesInheritance: true, ngImport: i0__namespace, template: "@if (title) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" iconClasses=\"panel-icon\" alt=\"Chart icon\"></wm-app-icon>\n </div>\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n @if (subheading) {\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n }\n </h3>\n </div>\n}\n<div class=\"app-chart-inner\" [ngClass]=\"{'loading':isLoadInProgress, 'panel-body': title}\">\n <svg></svg>\n @if (showContentLoadError && showNoDataMsg) {\n <div class=\"wm-content-info readonly-wrapper\">\n <p class=\"wm-message\" [title]=\"hintMsg\" [ngClass]=\"{'error': invalidConfig}\" [innerText]=\"errMsg\"></p>\n </div>\n }\n <div wmSpinner show.bind=\"isLoadInProgress\" caption.bind=\"loadingdatamsg\"></div>\n</div>\n", styles: [".nvtooltip h3,.nvtooltip p{margin:0;text-align:center}.nv-distx,.nv-disty,.nv-noninteractive,.nvd3 .nv-axis,.nvd3 .nv-interactiveGuideLine,.nvd3.nv-pie .nv-label,.nvd3.nv-sparklineplus g.nv-hoverValue,.nvtooltip{pointer-events:none}.nvd3 .nv-axis{opacity:1}.nvd3 .nv-axis path{fill:none;stroke:#000;stroke-opacity:.75;shape-rendering:crispEdges}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero,.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{fill:none;stroke:#e5e5e5;shape-rendering:crispEdges}.nvd3 .nv-axis .nv-axisMaxMin text,.nvtooltip table td.key.total{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-axis.nv-disabled,.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3 .nv-bars rect{fill-opacity:.75;-webkit-transition:fill-opacity .25s linear;transition:fill-opacity .25s linear}.nvd3 .nv-bars rect.hover,.nvd3 .nv-boxplot circle:hover,.nvd3 .nv-boxplot rect:hover,.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover,.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,.nvd3 .nv-scatter .nv-point.hover,.nvd3.nv-bullet .nv-measure:hover,.nvd3.nv-linePlusBar .nv-bar rect:hover,.nvd3.nv-pie .hover path{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:#0000}.nvd3 .nv-bars .hover text{fill:#000}.nvd3 .nv-discretebar .nv-groups rect,.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect{stroke-opacity:0;-webkit-transition:fill-opacity .25s linear;transition:fill-opacity .25s linear}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:#000;stroke:#0000}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-markerLine{stroke:#000;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick,.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover,.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect,.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect,.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick,.with-transitions .nvd3 .nv-groups .nv-point{-webkit-transition:stroke-width .25s linear,stroke-opacity .25s linear;transition:stroke-width .25s linear,stroke-opacity .25s linear}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nv-force-node{stroke:#fff;stroke-width:1.5px}.nv-force-link{stroke:#999;stroke-opacity:.6}.nv-force-node text{stroke-width:0}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-hoverArea,.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check,.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point,.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3 .nv-groups path.nv-line,.nvd3.nv-sparkline path{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.nvd3 .nv-groups .nv-point.hover,.nvd3.nv-scatter .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px #0003;border-radius:5px}.nvd3 text{font:12px Arial,sans-serif}.nvtooltip h3,.nvtooltip table td.key{font-weight:400}.nvd3 .title{font:700 14px Arial,sans-serif}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .selection{fill-opacity:.125;shape-rendering:crispEdges}.nv-brush .handle path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .selection{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}@media print{.nvd3 text{stroke-width:0;fill-opacity:1}}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#eee;stroke-opacity:.4;shape-rendering:crispEdges}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .selection{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie path{stroke-opacity:0;-webkit-transition:fill-opacity .25s linear,stroke-width .25s linear,stroke-opacity .25s linear;transition:fill-opacity .25s linear,stroke-width .25s linear,stroke-opacity .25s linear;stroke:#fff;stroke-width:1px;stroke-opacity:1;fill-opacity:.7}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:#13c4f996}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;-webkit-transition:fill-opacity .25s linear,stroke-opacity .25s linear;transition:fill-opacity .25s linear,stroke-opacity .25s linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;background-color:#fff;color:#000;padding:1px;border:1px solid rgba(0,0,0,.5);z-index:10000;display:block;font-family:Arial,sans-serif;font-size:13px;text-align:left;white-space:nowrap;-webkit-user-select:none;-ms-user-select:none;user-select:none;background:#fffc;border-radius:4px}.nvtooltip.with-transitions,.with-transitions .nvtooltip{-webkit-transition:opacity 50ms linear .2s;transition:opacity 50ms linear .2s}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{padding:4px 14px;line-height:18px;background-color:#f7f7f7bf;color:#000;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.nvtooltip p{padding:5px 14px}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table td.percent{color:#a9a9a9}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{vertical-align:middle;width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 line.nv-guideline{stroke:#ccc}\n"], dependencies: [{ kind: "ngmodule", type: i2.CommonModule }, { kind: "directive", type: i2__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: spinner.SpinnerComponent, selector: "[wmSpinner]", exportAs: ["wmSpinner"] }, { kind: "component", type: base.WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }], encapsulation: i0__namespace.ViewEncapsulation.None }); }
|
|
1730
1727
|
}
|
|
1731
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1728
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: ChartComponent, decorators: [{
|
|
1732
1729
|
type: i0.Component,
|
|
1733
1730
|
args: [{ standalone: true, imports: [i2.CommonModule, spinner.SpinnerComponent, base.WmAppIconComponent], selector: 'div[wmChart]', providers: [
|
|
1734
1731
|
base.provideAsWidgetRef(ChartComponent)
|
|
@@ -500,8 +500,8 @@ const getNumberFormatedData = (numberFormat, d) => {
|
|
|
500
500
|
}
|
|
501
501
|
formattedData = numberFormatter(d);
|
|
502
502
|
// Getting the respective divider[1000,1000000,1000000000] based on the number format choosen
|
|
503
|
-
divider = (tickformats[numberFormat]
|
|
504
|
-
prefix = tickformats[numberFormat]
|
|
503
|
+
divider = (tickformats[numberFormat]?.divider) || 0;
|
|
504
|
+
prefix = tickformats[numberFormat]?.prefix;
|
|
505
505
|
if (prefix && divider !== 0) {
|
|
506
506
|
formattedData = d3.format('.2f')(d / divider) + prefix;
|
|
507
507
|
}
|
|
@@ -530,7 +530,7 @@ const modifyLegendPosition = (widgetContext, position, id) => {
|
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
532
532
|
if (position === 'bottom') {
|
|
533
|
-
const legendWrapHeight = legendWrap['_groups'][0][0].getBoundingClientRect().height, wrap = d3.select(chart_Id + ' .nv-wrap'), wrapTransform = (wrap
|
|
533
|
+
const legendWrapHeight = legendWrap['_groups'][0][0].getBoundingClientRect().height, wrap = d3.select(chart_Id + ' .nv-wrap'), wrapTransform = (wrap?.attr('transform')) ? wrap.attr('transform').replace(/, /g, ',') : '', coordinates = /translate\(\s*([^\s,)]+)[ ,]([^\s,)]+)/.exec(wrapTransform), getChartHeight = () => {
|
|
534
534
|
let chartHeight = $(chart_Id + ' svg>.nvd3.nv-wrap')[0].getBoundingClientRect().height;
|
|
535
535
|
if (chartHeight === 0) { // fix for IE
|
|
536
536
|
chartHeight = ($(chart_Id + ' svg')[0].getBoundingClientRect().height - (legendWrapHeight + 15));
|
|
@@ -683,7 +683,7 @@ const initChart = (widgetContext, xDomainValues, yDomainValues, propertyValueMap
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
// Setting the legend type choosen by user or default it will be furious
|
|
686
|
-
chart.legend.vers((propertyValueMap.legendtype
|
|
686
|
+
chart.legend.vers((propertyValueMap.legendtype?.toLowerCase()) || 'furious');
|
|
687
687
|
if (!includes(chartTypes, widgetContext.type)) {
|
|
688
688
|
chart = nv.models.multiBarChart()
|
|
689
689
|
.x(d => d.x)
|
|
@@ -738,11 +738,9 @@ const initChart = (widgetContext, xDomainValues, yDomainValues, propertyValueMap
|
|
|
738
738
|
else if (propertyValueMap.xnumberformat) {
|
|
739
739
|
chart.xAxis.tickFormat(d => getNumberFormatedData(propertyValueMap.xnumberformat, d));
|
|
740
740
|
}
|
|
741
|
-
else {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
chart.xAxis.tickFormat(d => widgetContext.xDataKeyArr[d]);
|
|
745
|
-
}
|
|
741
|
+
else if (isLineTypeChart(widgetContext.type)) {
|
|
742
|
+
// get the actual value
|
|
743
|
+
chart.xAxis.tickFormat(d => widgetContext.xDataKeyArr[d]);
|
|
746
744
|
}
|
|
747
745
|
chart.yAxis
|
|
748
746
|
.axisLabel(yaxislabel)
|
|
@@ -1008,7 +1006,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1008
1006
|
this.xDataKeyArr = getDateList();
|
|
1009
1007
|
return this.sampleData;
|
|
1010
1008
|
}
|
|
1011
|
-
if (!this.chartData
|
|
1009
|
+
if (!this.chartData?.length) {
|
|
1012
1010
|
return [];
|
|
1013
1011
|
}
|
|
1014
1012
|
let datum = [], yAxisKey, shapes = [], values = [];
|
|
@@ -1178,7 +1176,6 @@ class ChartComponent extends StylableComponent {
|
|
|
1178
1176
|
}
|
|
1179
1177
|
obj[this.xaxisdatakey] = get(responseContent, xAxisAliasKey) || get(responseContent, this.xaxisdatakey);
|
|
1180
1178
|
yAxisKeys.forEach((yAxisKey, index) => {
|
|
1181
|
-
obj[yAxisKey] = responseContent[yAxisAliasKeys[index]];
|
|
1182
1179
|
obj[yAxisKey] = get(responseContent, yAxisAliasKeys[index]) || get(responseContent, yAxisKey);
|
|
1183
1180
|
});
|
|
1184
1181
|
chartData.push(obj);
|
|
@@ -1335,7 +1332,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1335
1332
|
pieLabels = chartSvg.select('.nv-pieLabels').selectAll('.nv-label');
|
|
1336
1333
|
pieGroups = chartSvg.select('.nv-pie').selectAll('.nv-slice');
|
|
1337
1334
|
angleArray = [];
|
|
1338
|
-
if (pieGroups
|
|
1335
|
+
if (pieGroups?.length) {
|
|
1339
1336
|
pieGroups.each(function () {
|
|
1340
1337
|
d3.select(this).attr('transform', function (d) {
|
|
1341
1338
|
angleArray.push(angle(d));
|
|
@@ -1361,7 +1358,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1361
1358
|
* allow window-resize functionality, for only-run mode as
|
|
1362
1359
|
* updating chart is being handled by watchers of height & width in studio-mode
|
|
1363
1360
|
* */
|
|
1364
|
-
triggerFn(this._resizeFn
|
|
1361
|
+
triggerFn(this._resizeFn?.clear);
|
|
1365
1362
|
this._resizeFn = nv.utils.windowResize(() => {
|
|
1366
1363
|
if (element[0].getBoundingClientRect().height) {
|
|
1367
1364
|
chart.update();
|
|
@@ -1404,7 +1401,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1404
1401
|
if (isArray(this._processedData)) {
|
|
1405
1402
|
// WMS-19499: To remove chart X-axis old ticks when chart data loaded dynamically.
|
|
1406
1403
|
const oldgTicks = $('#wmChart' + this.$id + ' svg').find('g.nv-x').find('g.tick');
|
|
1407
|
-
if (oldgTicks
|
|
1404
|
+
if (oldgTicks?.length) {
|
|
1408
1405
|
oldgTicks.remove();
|
|
1409
1406
|
}
|
|
1410
1407
|
beforeRenderVal = this.invokeEventCallback('beforerender', { 'chartInstance': chart });
|
|
@@ -1519,7 +1516,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1519
1516
|
break;
|
|
1520
1517
|
case 'groupby':
|
|
1521
1518
|
// Filtering only non primary key columns
|
|
1522
|
-
if (this.isLiveVariable && this.nonPrimaryColumns
|
|
1519
|
+
if (this.isLiveVariable && this.nonPrimaryColumns?.length) {
|
|
1523
1520
|
newOptions = this.nonPrimaryColumns;
|
|
1524
1521
|
}
|
|
1525
1522
|
break;
|
|
@@ -1536,7 +1533,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1536
1533
|
}
|
|
1537
1534
|
break;
|
|
1538
1535
|
case 'bubblesize':
|
|
1539
|
-
if (this.numericColumns
|
|
1536
|
+
if (this.numericColumns?.length) {
|
|
1540
1537
|
newOptions = this.numericColumns;
|
|
1541
1538
|
}
|
|
1542
1539
|
break;
|
|
@@ -1583,7 +1580,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1583
1580
|
if (!isArray(this.chartData) && isObject(this.chartData)) {
|
|
1584
1581
|
this.chartData = [this.chartData];
|
|
1585
1582
|
}
|
|
1586
|
-
if (newVal
|
|
1583
|
+
if (newVal?.filterFields) {
|
|
1587
1584
|
this.filterFields = newVal.filterFields;
|
|
1588
1585
|
}
|
|
1589
1586
|
// plotchart for only valid data and only after bound variable returns data
|
|
@@ -1603,13 +1600,13 @@ class ChartComponent extends StylableComponent {
|
|
|
1603
1600
|
.attr('class', 'nv-pie-title')
|
|
1604
1601
|
.text(labelValue)
|
|
1605
1602
|
.each(function (d) {
|
|
1606
|
-
|
|
1603
|
+
const d3text = d3.select(this), circ = d3.select(this.parentElement), totalWidth = Number(circ.node().getBoundingClientRect().width),
|
|
1607
1604
|
// minus the ring width from total width
|
|
1608
1605
|
availWidth = totalWidth - 30, textWidth = this.getComputedTextLength();
|
|
1609
1606
|
d3text.attr("data-scale", availWidth / textWidth);
|
|
1610
1607
|
}).style("font-size", function () {
|
|
1611
1608
|
// 16 is the default font size to multiply with the scaled value and 24 is the maximum font size that can be applied
|
|
1612
|
-
|
|
1609
|
+
const fontSize = 16 * d3.select(this).attr("data-scale");
|
|
1613
1610
|
return fontSize > 24 ? 24 : fontSize + "px";
|
|
1614
1611
|
});
|
|
1615
1612
|
}
|
|
@@ -1656,7 +1653,7 @@ class ChartComponent extends StylableComponent {
|
|
|
1656
1653
|
}
|
|
1657
1654
|
handleLoading(data) {
|
|
1658
1655
|
const dataSource = this.datasource;
|
|
1659
|
-
if (dataSource
|
|
1656
|
+
if (dataSource?.execute(DataSource.Operation.IS_API_AWARE) && isDataSourceEqual(data.variable, dataSource)) {
|
|
1660
1657
|
this.variableInflight = data.active;
|
|
1661
1658
|
this.isLoadInProgress = data.active;
|
|
1662
1659
|
}
|
|
@@ -1747,12 +1744,12 @@ class ChartComponent extends StylableComponent {
|
|
|
1747
1744
|
this.nonPrimaryColumns = [];
|
|
1748
1745
|
super.ngOnDestroy();
|
|
1749
1746
|
}
|
|
1750
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1751
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1747
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ChartComponent, deps: [{ token: i0.Injector }, { token: i1.App }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1748
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: ChartComponent, isStandalone: true, selector: "div[wmChart]", host: { properties: { "class.panel": "this.title" } }, providers: [
|
|
1752
1749
|
provideAsWidgetRef(ChartComponent)
|
|
1753
1750
|
], usesInheritance: true, ngImport: i0, template: "@if (title) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" iconClasses=\"panel-icon\" alt=\"Chart icon\"></wm-app-icon>\n </div>\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n @if (subheading) {\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n }\n </h3>\n </div>\n}\n<div class=\"app-chart-inner\" [ngClass]=\"{'loading':isLoadInProgress, 'panel-body': title}\">\n <svg></svg>\n @if (showContentLoadError && showNoDataMsg) {\n <div class=\"wm-content-info readonly-wrapper\">\n <p class=\"wm-message\" [title]=\"hintMsg\" [ngClass]=\"{'error': invalidConfig}\" [innerText]=\"errMsg\"></p>\n </div>\n }\n <div wmSpinner show.bind=\"isLoadInProgress\" caption.bind=\"loadingdatamsg\"></div>\n</div>\n", styles: [".nvtooltip h3,.nvtooltip p{margin:0;text-align:center}.nv-distx,.nv-disty,.nv-noninteractive,.nvd3 .nv-axis,.nvd3 .nv-interactiveGuideLine,.nvd3.nv-pie .nv-label,.nvd3.nv-sparklineplus g.nv-hoverValue,.nvtooltip{pointer-events:none}.nvd3 .nv-axis{opacity:1}.nvd3 .nv-axis path{fill:none;stroke:#000;stroke-opacity:.75;shape-rendering:crispEdges}.nvd3 .nv-axis .zero line,.nvd3 .nv-axis line.zero,.nvd3 .nv-axis path.domain{stroke-opacity:.75}.nvd3 .nv-axis.nv-x path.domain{stroke-opacity:0}.nvd3 .nv-axis line{fill:none;stroke:#e5e5e5;shape-rendering:crispEdges}.nvd3 .nv-axis .nv-axisMaxMin text,.nvtooltip table td.key.total{font-weight:700}.nvd3 .x .nv-axis .nv-axisMaxMin text,.nvd3 .x2 .nv-axis .nv-axisMaxMin text,.nvd3 .x3 .nv-axis .nv-axisMaxMin text{text-anchor:middle}.nvd3 .nv-axis.nv-disabled,.nvd3 .nv-controlsWrap .nv-legend .nv-check-box .nv-check{opacity:0}.nvd3 .nv-bars rect{fill-opacity:.75;-webkit-transition:fill-opacity .25s linear;transition:fill-opacity .25s linear}.nvd3 .nv-bars rect.hover,.nvd3 .nv-boxplot circle:hover,.nvd3 .nv-boxplot rect:hover,.nvd3 .nv-candlestickBar .nv-ticks rect:hover,.nvd3 .nv-discretebar .nv-groups rect:hover,.nvd3 .nv-multibar .nv-groups rect:hover,.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,.nvd3 .nv-scatter .nv-point.hover,.nvd3.nv-bullet .nv-measure:hover,.nvd3.nv-linePlusBar .nv-bar rect:hover,.nvd3.nv-pie .hover path{fill-opacity:1}.nvd3 .nv-bars .hover rect{fill:#add8e6}.nvd3 .nv-bars text{fill:#0000}.nvd3 .nv-bars .hover text{fill:#000}.nvd3 .nv-discretebar .nv-groups rect,.nvd3 .nv-multibar .nv-groups rect,.nvd3 .nv-multibarHorizontal .nv-groups rect{stroke-opacity:0;-webkit-transition:fill-opacity .25s linear;transition:fill-opacity .25s linear}.nvd3 .nv-discretebar .nv-groups text,.nvd3 .nv-multibarHorizontal .nv-groups text{font-weight:700;fill:#000;stroke:#0000}.nvd3 .nv-boxplot circle{fill-opacity:.5}.nvd3 line.nv-boxplot-median{stroke:#000}.nv-boxplot-tick:hover{stroke-width:2.5px}.nvd3.nv-bullet{font:10px sans-serif}.nvd3.nv-bullet .nv-measure{fill-opacity:.8}.nvd3.nv-bullet .nv-marker{stroke:#000;stroke-width:2px}.nvd3.nv-bullet .nv-markerTriangle{stroke:#000;fill:#fff;stroke-width:1.5px}.nvd3.nv-bullet .nv-markerLine{stroke:#000;stroke-width:1.5px}.nvd3.nv-bullet .nv-tick line{stroke:#666;stroke-width:.5px}.nvd3.nv-bullet .nv-range.nv-s0{fill:#eee}.nvd3.nv-bullet .nv-range.nv-s1{fill:#ddd}.nvd3.nv-bullet .nv-range.nv-s2{fill:#ccc}.nvd3.nv-bullet .nv-title{font-size:14px;font-weight:700}.nvd3.nv-bullet .nv-subtitle{fill:#999}.nvd3.nv-bullet .nv-range{fill:#bababa;fill-opacity:.4}.nvd3.nv-bullet .nv-range:hover{fill-opacity:.7}.nvd3.nv-candlestickBar .nv-ticks .nv-tick,.nvd3.nv-ohlcBar .nv-ticks .nv-tick{stroke-width:1px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.hover,.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover{stroke-width:2px}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.positive rect,.nvd3.nv-sparklineplus .nv-maxValue{stroke:#2ca02c;fill:#2ca02c}.nvd3.nv-candlestickBar .nv-ticks .nv-tick.negative rect,.nvd3.nv-sparklineplus .nv-minValue{stroke:#d62728;fill:#d62728}.with-transitions .nv-candlestickBar .nv-ticks .nv-tick,.with-transitions .nvd3 .nv-groups .nv-point{-webkit-transition:stroke-width .25s linear,stroke-opacity .25s linear;transition:stroke-width .25s linear,stroke-opacity .25s linear}.nvd3.nv-candlestickBar .nv-ticks line{stroke:#333}.nv-force-node{stroke:#fff;stroke-width:1.5px}.nv-force-link{stroke:#999;stroke-opacity:.6}.nv-force-node text{stroke-width:0}.nvd3 .nv-check-box .nv-box{fill-opacity:0;stroke-width:2}.nvd3 .nv-check-box .nv-check{fill-opacity:0;stroke-width:4}.nvd3 .nv-hoverArea,.nvd3 .nv-series.nv-disabled .nv-check-box .nv-check,.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point,.nvd3.nv-pie .nv-label rect{fill-opacity:0;stroke-opacity:0}.nvd3.nv-linePlusBar .nv-bar rect{fill-opacity:.75}.nvd3 .nv-groups path.nv-line,.nvd3.nv-sparkline path{fill:none}.nvd3 .nv-groups path.nv-area{stroke:none}.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point{fill-opacity:.5!important;stroke-opacity:.5!important}.nvd3 .nv-groups .nv-point.hover,.nvd3.nv-scatter .nv-groups .nv-point.hover{stroke-width:7px;fill-opacity:.95!important;stroke-opacity:.95!important}.nvd3 .nv-point-paths path{stroke:#aaa;stroke-opacity:0;fill:#eee;fill-opacity:0}.nvd3 .nv-indexLine{cursor:ew-resize}svg.nvd3-svg{-webkit-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;height:100%}.nvtooltip.with-3d-shadow,.with-3d-shadow .nvtooltip{-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px #0003;border-radius:5px}.nvd3 text{font:12px Arial,sans-serif}.nvtooltip h3,.nvtooltip table td.key{font-weight:400}.nvd3 .title{font:700 14px Arial,sans-serif}.nvd3 .nv-background{fill:#fff;fill-opacity:0}.nvd3.nv-noData{font-size:18px;font-weight:700}.nv-brush .selection{fill-opacity:.125;shape-rendering:crispEdges}.nv-brush .handle path{fill:#eee;stroke:#666}.nvd3 .nv-legend .nv-series{cursor:pointer}.nvd3 .nv-legend .nv-disabled circle{fill-opacity:0}.nvd3 .nv-brush .selection{fill-opacity:0!important}.nvd3 .nv-brushBackground rect{stroke:#000;stroke-width:.4;fill:#fff;fill-opacity:.7}@media print{.nvd3 text{stroke-width:0;fill-opacity:1}}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive{stroke:#2ca02c}.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative{stroke:#d62728}.nvd3 .background path{fill:none;stroke:#eee;stroke-opacity:.4;shape-rendering:crispEdges}.nvd3 .foreground path{fill:none;stroke-opacity:.7}.nvd3 .nv-parallelCoordinates-brush .selection{fill:#fff;fill-opacity:.6;stroke:gray;shape-rendering:crispEdges}.nvd3 .nv-parallelCoordinates .hover{fill-opacity:1;stroke-width:3px}.nvd3 .missingValuesline line{fill:none;stroke:#000;stroke-width:1;stroke-opacity:1;stroke-dasharray:5,5}.nvd3.nv-pie path{stroke-opacity:0;-webkit-transition:fill-opacity .25s linear,stroke-width .25s linear,stroke-opacity .25s linear;transition:fill-opacity .25s linear,stroke-width .25s linear,stroke-opacity .25s linear;stroke:#fff;stroke-width:1px;stroke-opacity:1;fill-opacity:.7}.nvd3.nv-pie .nv-pie-title{font-size:24px;fill:#13c4f996}.nvd3.nv-pie .nv-slice text{stroke:#000;stroke-width:0}.nvd3 .nv-groups .nv-point.hover{stroke-width:20px;stroke-opacity:.5}.nvd3.nv-sparklineplus .nv-hoverValue line{stroke:#333;stroke-width:1.5px}.nvd3.nv-sparklineplus,.nvd3.nv-sparklineplus g{pointer-events:all}.nvd3.nv-sparklineplus .nv-xValue,.nvd3.nv-sparklineplus .nv-yValue{stroke-width:0;font-size:.9em;font-weight:400}.nvd3.nv-sparklineplus .nv-yValue{stroke:#f66}.nvd3.nv-sparklineplus .nv-currentValue{font-weight:700;font-size:1.1em}.nvd3.nv-stackedarea path.nv-area{fill-opacity:.7;stroke-opacity:0;-webkit-transition:fill-opacity .25s linear,stroke-opacity .25s linear;transition:fill-opacity .25s linear,stroke-opacity .25s linear}.nvd3.nv-stackedarea path.nv-area.hover{fill-opacity:.9}.nvd3.nv-stackedarea .nv-groups .nv-point{stroke-opacity:0;fill-opacity:0}.nvtooltip{position:absolute;background-color:#fff;color:#000;padding:1px;border:1px solid rgba(0,0,0,.5);z-index:10000;display:block;font-family:Arial,sans-serif;font-size:13px;text-align:left;white-space:nowrap;-webkit-user-select:none;-ms-user-select:none;user-select:none;background:#fffc;border-radius:4px}.nvtooltip.with-transitions,.with-transitions .nvtooltip{-webkit-transition:opacity 50ms linear .2s;transition:opacity 50ms linear .2s}.nvtooltip.x-nvtooltip,.nvtooltip.y-nvtooltip{padding:8px}.nvtooltip h3{padding:4px 14px;line-height:18px;background-color:#f7f7f7bf;color:#000;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.nvtooltip p{padding:5px 14px}.nvtooltip span{display:inline-block;margin:2px 0}.nvtooltip table{margin:6px;border-spacing:0}.nvtooltip table td{padding:2px 9px 2px 0;vertical-align:middle}.nvtooltip table td.value{text-align:right;font-weight:700}.nvtooltip table td.percent{color:#a9a9a9}.nvtooltip table tr.highlight td{padding:1px 9px 1px 0;border-bottom-style:solid;border-bottom-width:1px;border-top-style:solid;border-top-width:1px}.nvtooltip table td.legend-color-guide div{vertical-align:middle;width:12px;height:12px;border:1px solid #999}.nvtooltip .footer{padding:3px;text-align:center}.nvtooltip-pending-removal{pointer-events:none;display:none}.nvd3 line.nv-guideline{stroke:#ccc}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SpinnerComponent, selector: "[wmSpinner]", exportAs: ["wmSpinner"] }, { kind: "component", type: WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1754
1751
|
}
|
|
1755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ChartComponent, decorators: [{
|
|
1756
1753
|
type: Component,
|
|
1757
1754
|
args: [{ standalone: true, imports: [CommonModule, SpinnerComponent, WmAppIconComponent], selector: 'div[wmChart]', providers: [
|
|
1758
1755
|
provideAsWidgetRef(ChartComponent)
|