@kalisio/kdk 1.5.0 → 1.7.0
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/.nyc_output/02a7a308-a8d7-4cc6-8e61-6066a0055a96.json +1 -0
- package/.nyc_output/1900d596-5e87-433a-8fd6-fb7f7ded35ec.json +1 -0
- package/.nyc_output/{058fc679-d60a-4501-ac04-71171e5200b8.json → 27401f21-8ccf-42fa-8230-4232189d86b3.json} +0 -0
- package/.nyc_output/{8b1830fa-932e-4a61-9837-4a5b18f83ea9.json → 52278ef5-c337-4724-97be-e2e4416847c5.json} +0 -0
- package/.nyc_output/{afd2d144-3570-4858-b94a-b523dbd023dd.json → 5dd49b8a-4c84-42f9-a3d5-712247a84775.json} +0 -0
- package/.nyc_output/612b4859-9645-45c1-a41e-1fae420518c4.json +1 -0
- package/.nyc_output/bab87fe9-d99a-4759-99e6-3fc4622eeca0.json +1 -0
- package/.nyc_output/processinfo/02a7a308-a8d7-4cc6-8e61-6066a0055a96.json +1 -0
- package/.nyc_output/processinfo/1900d596-5e87-433a-8fd6-fb7f7ded35ec.json +1 -0
- package/.nyc_output/processinfo/27401f21-8ccf-42fa-8230-4232189d86b3.json +1 -0
- package/.nyc_output/processinfo/52278ef5-c337-4724-97be-e2e4416847c5.json +1 -0
- package/.nyc_output/processinfo/5dd49b8a-4c84-42f9-a3d5-712247a84775.json +1 -0
- package/.nyc_output/processinfo/612b4859-9645-45c1-a41e-1fae420518c4.json +1 -0
- package/.nyc_output/processinfo/bab87fe9-d99a-4759-99e6-3fc4622eeca0.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/.travis.test.sh +1 -1
- package/CHANGELOG.md +107 -11
- package/coverage/core/api/application.js.html +323 -245
- package/coverage/core/api/authentication.js.html +1 -1
- package/coverage/core/api/db.js.html +108 -108
- package/coverage/core/api/hooks/hooks.account.js.html +1 -1
- package/coverage/core/api/hooks/hooks.authentication.js.html +1 -1
- package/coverage/core/api/hooks/hooks.authorisations.js.html +21 -6
- package/coverage/core/api/hooks/hooks.devices.js.html +1 -1
- package/coverage/core/api/hooks/hooks.groups.js.html +1 -1
- package/coverage/core/api/hooks/hooks.logger.js.html +1 -1
- package/coverage/core/api/hooks/hooks.model.js.html +1 -1
- package/coverage/core/api/hooks/hooks.organisations.js.html +1 -1
- package/coverage/core/api/hooks/hooks.pusher.js.html +1 -1
- package/coverage/core/api/hooks/hooks.query.js.html +114 -48
- package/coverage/core/api/hooks/hooks.service.js.html +1 -1
- package/coverage/core/api/hooks/hooks.storage.js.html +1 -1
- package/coverage/core/api/hooks/hooks.tags.js.html +1 -1
- package/coverage/core/api/hooks/hooks.users.js.html +1 -1
- package/coverage/core/api/hooks/index.html +12 -12
- package/coverage/core/api/hooks/index.js.html +1 -1
- package/coverage/core/api/index.html +34 -34
- package/coverage/core/api/index.js.html +26 -26
- package/coverage/core/api/marshall.js.html +1 -1
- package/coverage/core/api/models/groups.model.mongodb.js.html +1 -1
- package/coverage/core/api/models/index.html +1 -1
- package/coverage/core/api/models/organisations.model.mongodb.js.html +1 -1
- package/coverage/core/api/models/tags.model.mongodb.js.html +1 -1
- package/coverage/core/api/models/users.model.mongodb.js.html +1 -1
- package/coverage/core/api/oauth2-handler.js.html +1 -1
- package/coverage/core/api/oauth2-verifier.js.html +1 -1
- package/coverage/core/api/services/account/account.hooks.js.html +1 -1
- package/coverage/core/api/services/account/account.service.js.html +1 -1
- package/coverage/core/api/services/account/index.html +1 -1
- package/coverage/core/api/services/authorisations/authorisations.hooks.js.html +1 -1
- package/coverage/core/api/services/authorisations/authorisations.service.js.html +31 -7
- package/coverage/core/api/services/authorisations/index.html +9 -9
- package/coverage/core/api/services/databases/databases.hooks.js.html +1 -1
- package/coverage/core/api/services/databases/databases.service.js.html +1 -1
- package/coverage/core/api/services/databases/index.html +1 -1
- package/coverage/core/api/services/devices/devices.hooks.js.html +1 -1
- package/coverage/core/api/services/devices/devices.service.js.html +1 -1
- package/coverage/core/api/services/devices/index.html +1 -1
- package/coverage/core/api/services/groups/groups.hooks.js.html +1 -1
- package/coverage/core/api/services/groups/index.html +1 -1
- package/coverage/core/api/services/index.html +11 -11
- package/coverage/core/api/services/index.js.html +66 -66
- package/coverage/core/api/services/mailer/index.html +1 -1
- package/coverage/core/api/services/mailer/mailer.hooks.js.html +1 -1
- package/coverage/core/api/services/mailer/mailer.service.js.html +1 -1
- package/coverage/core/api/services/organisations/index.html +1 -1
- package/coverage/core/api/services/organisations/organisations.hooks.js.html +1 -1
- package/coverage/core/api/services/organisations/organisations.service.js.html +1 -1
- package/coverage/core/api/services/pusher/index.html +1 -1
- package/coverage/core/api/services/pusher/pusher.channels.js.html +1 -1
- package/coverage/core/api/services/pusher/pusher.hooks.js.html +1 -1
- package/coverage/core/api/services/pusher/pusher.service.js.html +1 -1
- package/coverage/core/api/services/storage/index.html +1 -1
- package/coverage/core/api/services/storage/storage.hooks.js.html +1 -1
- package/coverage/core/api/services/tags/index.html +1 -1
- package/coverage/core/api/services/tags/tags.hooks.js.html +1 -1
- package/coverage/core/api/services/users/index.html +1 -1
- package/coverage/core/api/services/users/users.hooks.js.html +1 -1
- package/coverage/core/common/errors.js.html +1 -1
- package/coverage/core/common/index.html +7 -7
- package/coverage/core/common/index.js.html +1 -1
- package/coverage/core/common/permissions.js.html +81 -51
- package/coverage/index.html +39 -39
- package/coverage/lcov-report/core/api/application.js.html +323 -245
- package/coverage/lcov-report/core/api/authentication.js.html +1 -1
- package/coverage/lcov-report/core/api/db.js.html +108 -108
- package/coverage/lcov-report/core/api/hooks/hooks.account.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.authentication.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.authorisations.js.html +21 -6
- package/coverage/lcov-report/core/api/hooks/hooks.devices.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.groups.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.logger.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.model.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.organisations.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.pusher.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.query.js.html +114 -48
- package/coverage/lcov-report/core/api/hooks/hooks.service.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.storage.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.tags.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.users.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/index.html +12 -12
- package/coverage/lcov-report/core/api/hooks/index.js.html +1 -1
- package/coverage/lcov-report/core/api/index.html +34 -34
- package/coverage/lcov-report/core/api/index.js.html +26 -26
- package/coverage/lcov-report/core/api/marshall.js.html +1 -1
- package/coverage/lcov-report/core/api/models/groups.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/core/api/models/index.html +1 -1
- package/coverage/lcov-report/core/api/models/organisations.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/core/api/models/tags.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/core/api/models/users.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/core/api/oauth2-handler.js.html +1 -1
- package/coverage/lcov-report/core/api/oauth2-verifier.js.html +1 -1
- package/coverage/lcov-report/core/api/services/account/account.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/account/account.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/account/index.html +1 -1
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.service.js.html +31 -7
- package/coverage/lcov-report/core/api/services/authorisations/index.html +9 -9
- package/coverage/lcov-report/core/api/services/databases/databases.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/databases/databases.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/databases/index.html +1 -1
- package/coverage/lcov-report/core/api/services/devices/devices.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/devices/devices.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/devices/index.html +1 -1
- package/coverage/lcov-report/core/api/services/groups/groups.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/groups/index.html +1 -1
- package/coverage/lcov-report/core/api/services/index.html +11 -11
- package/coverage/lcov-report/core/api/services/index.js.html +66 -66
- package/coverage/lcov-report/core/api/services/mailer/index.html +1 -1
- package/coverage/lcov-report/core/api/services/mailer/mailer.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/mailer/mailer.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/organisations/index.html +1 -1
- package/coverage/lcov-report/core/api/services/organisations/organisations.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/organisations/organisations.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/pusher/index.html +1 -1
- package/coverage/lcov-report/core/api/services/pusher/pusher.channels.js.html +1 -1
- package/coverage/lcov-report/core/api/services/pusher/pusher.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/pusher/pusher.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/storage/index.html +1 -1
- package/coverage/lcov-report/core/api/services/storage/storage.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/tags/index.html +1 -1
- package/coverage/lcov-report/core/api/services/tags/tags.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/users/index.html +1 -1
- package/coverage/lcov-report/core/api/services/users/users.hooks.js.html +1 -1
- package/coverage/lcov-report/core/common/errors.js.html +1 -1
- package/coverage/lcov-report/core/common/index.html +7 -7
- package/coverage/lcov-report/core/common/index.js.html +1 -1
- package/coverage/lcov-report/core/common/permissions.js.html +81 -51
- package/coverage/lcov-report/index.html +39 -39
- package/coverage/lcov-report/map/api/hooks/hooks.catalog.js.html +1 -1
- package/coverage/lcov-report/map/api/hooks/hooks.query.js.html +1 -1
- package/coverage/lcov-report/map/api/hooks/index.html +1 -1
- package/coverage/lcov-report/map/api/hooks/index.js.html +1 -1
- package/coverage/lcov-report/map/api/index.html +1 -1
- package/coverage/lcov-report/map/api/index.js.html +1 -1
- package/coverage/lcov-report/map/api/marshall.js.html +1 -1
- package/coverage/lcov-report/map/api/models/alerts.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/map/api/models/catalog.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/map/api/models/features.model.mongodb.js.html +14 -5
- package/coverage/lcov-report/map/api/models/index.html +7 -7
- package/coverage/lcov-report/map/api/services/alerts/alerts.hooks.js.html +1 -1
- package/coverage/lcov-report/map/api/services/alerts/alerts.service.js.html +1 -1
- package/coverage/lcov-report/map/api/services/alerts/index.html +1 -1
- package/coverage/lcov-report/map/api/services/catalog/catalog.hooks.js.html +1 -1
- package/coverage/lcov-report/map/api/services/catalog/index.html +1 -1
- package/coverage/lcov-report/map/api/services/daptiles/daptiles.service.js.html +1 -1
- package/coverage/lcov-report/map/api/services/daptiles/index.html +1 -1
- package/coverage/lcov-report/map/api/services/features/features.hooks.js.html +1 -1
- package/coverage/lcov-report/map/api/services/features/index.html +1 -1
- package/coverage/lcov-report/map/api/services/geocoder/geocoder.hooks.js.html +1 -1
- package/coverage/lcov-report/map/api/services/geocoder/geocoder.service.js.html +1 -1
- package/coverage/lcov-report/map/api/services/geocoder/index.html +1 -1
- package/coverage/lcov-report/map/api/services/index.html +1 -1
- package/coverage/lcov-report/map/api/services/index.js.html +1 -1
- package/coverage/lcov-report/map/common/dynamic-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/errors.js.html +1 -1
- package/coverage/lcov-report/map/common/geotiff-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/grid.js.html +1 -1
- package/coverage/lcov-report/map/common/index.html +1 -1
- package/coverage/lcov-report/map/common/index.js.html +1 -1
- package/coverage/lcov-report/map/common/meteo-model-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/moment-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/opendap-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/opendap-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/permissions.js.html +1 -1
- package/coverage/lcov-report/map/common/time-based-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/tms-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/wcs-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/wcs-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/weacast-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/wfs-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/wms-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/wmts-utils.js.html +1 -1
- package/coverage/lcov.info +948 -769
- package/coverage/map/api/hooks/hooks.catalog.js.html +1 -1
- package/coverage/map/api/hooks/hooks.query.js.html +1 -1
- package/coverage/map/api/hooks/index.html +1 -1
- package/coverage/map/api/hooks/index.js.html +1 -1
- package/coverage/map/api/index.html +1 -1
- package/coverage/map/api/index.js.html +1 -1
- package/coverage/map/api/marshall.js.html +1 -1
- package/coverage/map/api/models/alerts.model.mongodb.js.html +1 -1
- package/coverage/map/api/models/catalog.model.mongodb.js.html +1 -1
- package/coverage/map/api/models/features.model.mongodb.js.html +14 -5
- package/coverage/map/api/models/index.html +7 -7
- package/coverage/map/api/services/alerts/alerts.hooks.js.html +1 -1
- package/coverage/map/api/services/alerts/alerts.service.js.html +1 -1
- package/coverage/map/api/services/alerts/index.html +1 -1
- package/coverage/map/api/services/catalog/catalog.hooks.js.html +1 -1
- package/coverage/map/api/services/catalog/index.html +1 -1
- package/coverage/map/api/services/daptiles/daptiles.service.js.html +1 -1
- package/coverage/map/api/services/daptiles/index.html +1 -1
- package/coverage/map/api/services/features/features.hooks.js.html +1 -1
- package/coverage/map/api/services/features/index.html +1 -1
- package/coverage/map/api/services/geocoder/geocoder.hooks.js.html +1 -1
- package/coverage/map/api/services/geocoder/geocoder.service.js.html +1 -1
- package/coverage/map/api/services/geocoder/index.html +1 -1
- package/coverage/map/api/services/index.html +1 -1
- package/coverage/map/api/services/index.js.html +1 -1
- package/coverage/map/common/dynamic-grid-source.js.html +1 -1
- package/coverage/map/common/errors.js.html +1 -1
- package/coverage/map/common/geotiff-grid-source.js.html +1 -1
- package/coverage/map/common/grid.js.html +1 -1
- package/coverage/map/common/index.html +1 -1
- package/coverage/map/common/index.js.html +1 -1
- package/coverage/map/common/meteo-model-grid-source.js.html +1 -1
- package/coverage/map/common/moment-utils.js.html +1 -1
- package/coverage/map/common/opendap-grid-source.js.html +1 -1
- package/coverage/map/common/opendap-utils.js.html +1 -1
- package/coverage/map/common/permissions.js.html +1 -1
- package/coverage/map/common/time-based-grid-source.js.html +1 -1
- package/coverage/map/common/tms-utils.js.html +1 -1
- package/coverage/map/common/wcs-grid-source.js.html +1 -1
- package/coverage/map/common/wcs-utils.js.html +1 -1
- package/coverage/map/common/weacast-grid-source.js.html +1 -1
- package/coverage/map/common/wfs-utils.js.html +1 -1
- package/coverage/map/common/wms-utils.js.html +1 -1
- package/coverage/map/common/wmts-utils.js.html +1 -1
- package/extras/tours/map/catalog-panel.js +61 -10
- package/extras/tours/map/create-view.js +25 -0
- package/extras/tours/map/fab.js +10 -1
- package/extras/tours/map/navigation-bar.js +56 -10
- package/lib/core/api/application.js +44 -10
- package/lib/core/api/application.js.map +1 -1
- package/lib/core/api/hooks/hooks.authorisations.js +8 -1
- package/lib/core/api/hooks/hooks.authorisations.js.map +1 -1
- package/lib/core/api/hooks/hooks.query.js +135 -100
- package/lib/core/api/hooks/hooks.query.js.map +1 -1
- package/lib/core/api/services/authorisations/authorisations.service.js +13 -1
- package/lib/core/api/services/authorisations/authorisations.service.js.map +1 -1
- package/lib/core/api/services/pusher/pusher.service.js +40 -16
- package/lib/core/api/services/pusher/pusher.service.js.map +1 -1
- package/lib/core/client/components/chart/KChart.vue +115 -0
- package/lib/core/client/components/chart/KStatsChart.vue +76 -0
- package/lib/core/client/components/chart/index.js +20 -0
- package/lib/core/client/components/chart/index.js.map +1 -0
- package/lib/core/client/components/collection/KColumn.vue +29 -28
- package/lib/core/client/components/collection/KFilter.vue +103 -72
- package/lib/core/client/components/collection/KHistoryEntry.vue +1 -1
- package/lib/core/client/components/collection/KItem.vue +4 -4
- package/lib/core/client/components/editor/KModalEditor.vue +3 -4
- package/lib/core/client/components/editor/KSettingsEditor.vue +6 -2
- package/lib/core/client/components/form/KChipsField.vue +4 -4
- package/lib/core/client/components/form/KFileField.vue +13 -6
- package/lib/core/client/components/form/KRoleField.vue +5 -2
- package/lib/core/client/components/form/KTextField.vue +12 -2
- package/lib/core/client/components/form/KUnitField.vue +57 -0
- package/lib/core/client/components/form/KUrlField.vue +1 -1
- package/lib/core/client/components/form/KView.vue +1 -1
- package/lib/core/client/components/frame/KAction.vue +41 -7
- package/lib/core/client/components/frame/KBlock.vue +7 -7
- package/lib/core/client/components/frame/KContent.vue +1 -1
- package/lib/core/client/components/frame/KModal.vue +66 -20
- package/lib/core/client/components/frame/KOpener.vue +1 -1
- package/lib/core/client/components/frame/KPanel.vue +8 -7
- package/lib/core/client/components/frame/KPopupAction.vue +6 -0
- package/lib/core/client/components/frame/KScreen.vue +1 -1
- package/lib/core/client/components/frame/KScrollArea.vue +65 -0
- package/lib/core/client/components/frame/KStamp.vue +4 -2
- package/lib/core/client/components/frame/index.js +6 -6
- package/lib/core/client/components/frame/index.js.map +1 -1
- package/lib/core/client/components/input/KColorChooser.vue +3 -5
- package/lib/core/client/components/input/KIconChooser.vue +41 -40
- package/lib/core/client/components/input/KPalette.vue +1 -1
- package/lib/core/client/components/input/index.js +14 -4
- package/lib/core/client/components/input/index.js.map +1 -1
- package/lib/core/client/components/layout/KAbout.vue +47 -49
- package/lib/core/client/components/layout/KFab.vue +1 -1
- package/lib/core/client/components/layout/KLayout.vue +10 -2
- package/lib/core/client/components/layout/KPage.vue +19 -18
- package/lib/core/client/components/layout/KTour.vue +5 -3
- package/lib/core/client/components/layout/KWindow.vue +211 -59
- package/lib/core/client/components/media/KMediaBrowser.vue +6 -6
- package/lib/core/client/components/menu/KMenu.vue +13 -5
- package/lib/core/client/components/menu/KRadialFab.vue +22 -24
- package/lib/core/client/components/menu/KRadialFabItem.vue +17 -18
- package/lib/core/client/components/team/KAddMember.vue +1 -1
- package/lib/core/client/components/team/KChangeRole.vue +11 -14
- package/lib/core/client/components/team/KGroupCard.vue +12 -5
- package/lib/core/client/components/team/KJoinGroup.vue +22 -22
- package/lib/core/client/components/team/KMemberCard.vue +19 -4
- package/lib/core/client/components/time/KAbsoluteTimeRange.vue +190 -0
- package/lib/core/client/components/time/KRelativeTimeRanges.vue +192 -0
- package/lib/core/client/components/time/index.js +20 -0
- package/lib/core/client/components/time/index.js.map +1 -0
- package/lib/core/client/components/viewer/KModalViewer.vue +10 -9
- package/lib/core/client/i18n/core_en.json +99 -17
- package/lib/core/client/i18n/core_fr.json +94 -18
- package/lib/core/client/index.js +16 -3
- package/lib/core/client/index.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-collection.js +11 -1
- package/lib/core/client/mixins/mixin.base-collection.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-widget.js +26 -12
- package/lib/core/client/mixins/mixin.base-widget.js.map +1 -1
- package/lib/core/client/reader.js +46 -15
- package/lib/core/client/reader.js.map +1 -1
- package/lib/core/client/readers/reader.csv.js +33 -22
- package/lib/core/client/readers/reader.csv.js.map +1 -1
- package/lib/core/client/readers/reader.json.js +31 -20
- package/lib/core/client/readers/reader.json.js.map +1 -1
- package/lib/core/client/services/index.js +16 -4
- package/lib/core/client/services/index.js.map +1 -1
- package/lib/core/client/services/local-settings.service.js +10 -4
- package/lib/core/client/services/local-settings.service.js.map +1 -1
- package/lib/core/client/time.js +29 -18
- package/lib/core/client/time.js.map +1 -1
- package/lib/core/client/units.js +207 -0
- package/lib/core/client/units.js.map +1 -0
- package/lib/core/client/utils.js +11 -0
- package/lib/core/client/utils.js.map +1 -1
- package/lib/core/common/permissions.js +44 -34
- package/lib/core/common/permissions.js.map +1 -1
- package/lib/core/common/schemas/settings.update.json +86 -4
- package/lib/map/api/hooks/hooks.catalog.js +20 -0
- package/lib/map/api/hooks/hooks.catalog.js.map +1 -1
- package/lib/map/api/models/catalog.model.mongodb.js +6 -1
- package/lib/map/api/models/catalog.model.mongodb.js.map +1 -1
- package/lib/map/api/models/features.model.mongodb.js +8 -0
- package/lib/map/api/models/features.model.mongodb.js.map +1 -1
- package/lib/map/api/services/catalog/catalog.hooks.js +3 -1
- package/lib/map/api/services/catalog/catalog.hooks.js.map +1 -1
- package/lib/map/client/components/KCaptureToolbar.vue +2 -7
- package/lib/map/client/components/KColorLegend.vue +38 -25
- package/lib/map/client/components/KFeaturesChart.vue +84 -114
- package/lib/map/client/components/KFeaturesFilter.vue +37 -38
- package/lib/map/client/components/KFeaturesTable.vue +15 -16
- package/lib/map/client/components/KLayerStyleEditor.vue +1 -1
- package/lib/map/client/components/KLayerStyleForm.vue +123 -51
- package/lib/map/client/components/KLevelSlider.vue +30 -29
- package/lib/map/client/components/KLocationMap.vue +2 -2
- package/lib/map/client/components/KMeasureTool.vue +49 -28
- package/lib/map/client/components/KPositionIndicator.vue +4 -4
- package/lib/map/client/components/KTimeline.vue +30 -35
- package/lib/map/client/components/KTimezoneMap.vue +156 -0
- package/lib/map/client/components/KUrlLegend.vue +11 -10
- package/lib/map/client/components/catalog/KAddLayer.vue +3 -2
- package/lib/map/client/components/catalog/KBaseLayersSelector.vue +1 -1
- package/lib/map/client/components/catalog/KCatalogLayersPanel.vue +56 -0
- package/lib/map/client/components/catalog/KCreateView.vue +91 -0
- package/lib/map/client/components/catalog/KLayerCategories.vue +5 -3
- package/lib/map/client/components/catalog/{KCatalog.vue → KLayersPanel.vue} +23 -22
- package/lib/map/client/components/catalog/KLayersSelector.vue +3 -3
- package/lib/map/client/components/catalog/KUserLayersPanel.vue +40 -0
- package/lib/map/client/components/catalog/KViewSelector.vue +46 -0
- package/lib/map/client/components/catalog/KViewsPanel.vue +110 -0
- package/lib/map/client/components/catalog/KWeatherLayersSelector.vue +5 -14
- package/lib/map/client/components/form/KTimezoneField.vue +135 -0
- package/lib/map/client/components/widget/KElevationProfile.vue +488 -0
- package/lib/map/client/components/widget/KInformationBox.vue +53 -37
- package/lib/map/client/components/widget/KMapillaryViewer.vue +26 -16
- package/lib/map/client/components/widget/KTimeSeries.vue +283 -358
- package/lib/map/client/i18n/map_en.json +73 -56
- package/lib/map/client/i18n/map_fr.json +75 -58
- package/lib/map/client/init.js +4 -3
- package/lib/map/client/init.js.map +1 -1
- package/lib/map/client/leaflet/GradientPath.js +40 -19
- package/lib/map/client/leaflet/GradientPath.js.map +1 -1
- package/lib/map/client/leaflet/TiledFeatureLayer.js +527 -93
- package/lib/map/client/leaflet/TiledFeatureLayer.js.map +1 -1
- package/lib/map/client/leaflet/TiledMeshLayer.js +58 -35
- package/lib/map/client/leaflet/TiledMeshLayer.js.map +1 -1
- package/lib/map/client/leaflet/utils.js +44 -3
- package/lib/map/client/leaflet/utils.js.map +1 -1
- package/lib/map/client/mixins/globe/mixin.base-globe.js +16 -1
- package/lib/map/client/mixins/globe/mixin.base-globe.js.map +1 -1
- package/lib/map/client/mixins/globe/mixin.file-layers.js +12 -2
- package/lib/map/client/mixins/globe/mixin.file-layers.js.map +1 -1
- package/lib/map/client/mixins/globe/mixin.geojson-layers.js +23 -27
- package/lib/map/client/mixins/globe/mixin.geojson-layers.js.map +1 -1
- package/lib/map/client/mixins/globe/mixin.popup.js +7 -3
- package/lib/map/client/mixins/globe/mixin.popup.js.map +1 -1
- package/lib/map/client/mixins/globe/mixin.style.js +8 -4
- package/lib/map/client/mixins/globe/mixin.style.js.map +1 -1
- package/lib/map/client/mixins/globe/mixin.tooltip.js +7 -3
- package/lib/map/client/mixins/globe/mixin.tooltip.js.map +1 -1
- package/lib/map/client/mixins/index.js +23 -18
- package/lib/map/client/mixins/index.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.base-map.js +32 -8
- package/lib/map/client/mixins/map/mixin.base-map.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.edit-layers.js +8 -4
- package/lib/map/client/mixins/map/mixin.edit-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.file-layers.js +13 -5
- package/lib/map/client/mixins/map/mixin.file-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.geojson-layers.js +65 -14
- package/lib/map/client/mixins/map/mixin.geojson-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.heatmap-layers.js +6 -1
- package/lib/map/client/mixins/map/mixin.heatmap-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.popup.js +4 -2
- package/lib/map/client/mixins/map/mixin.popup.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.style.js +9 -5
- package/lib/map/client/mixins/map/mixin.style.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.tiled-mesh-layers.js +4 -11
- package/lib/map/client/mixins/map/mixin.tiled-mesh-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.tiled-wind-layers.js +0 -11
- package/lib/map/client/mixins/map/mixin.tiled-wind-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.tooltip.js +4 -2
- package/lib/map/client/mixins/map/mixin.tooltip.js.map +1 -1
- package/lib/map/client/mixins/mixin.activity.js +150 -150
- package/lib/map/client/mixins/mixin.activity.js.map +1 -1
- package/lib/map/client/mixins/mixin.catalog-panel.js +36 -0
- package/lib/map/client/mixins/mixin.catalog-panel.js.map +1 -0
- package/lib/map/client/mixins/mixin.feature-selection.js +17 -8
- package/lib/map/client/mixins/mixin.feature-selection.js.map +1 -1
- package/lib/map/client/mixins/mixin.feature-service.js +36 -16
- package/lib/map/client/mixins/mixin.feature-service.js.map +1 -1
- package/lib/map/client/mixins/mixin.infobox.js +1 -1
- package/lib/map/client/mixins/mixin.infobox.js.map +1 -1
- package/lib/map/client/mixins/mixin.levels.js +26 -12
- package/lib/map/client/mixins/mixin.levels.js.map +1 -1
- package/lib/map/client/mixins/mixin.style.js +1 -0
- package/lib/map/client/mixins/mixin.style.js.map +1 -1
- package/lib/map/client/mixins/mixin.weacast.js +22 -28
- package/lib/map/client/mixins/mixin.weacast.js.map +1 -1
- package/lib/map/client/pixi-utils.js +8 -177
- package/lib/map/client/pixi-utils.js.map +1 -1
- package/lib/map/client/readers/index.js +12 -0
- package/lib/map/client/readers/index.js.map +1 -1
- package/lib/map/client/readers/reader.geojson.js +62 -34
- package/lib/map/client/readers/reader.geojson.js.map +1 -1
- package/lib/map/client/readers/reader.gpx.js +32 -21
- package/lib/map/client/readers/reader.gpx.js.map +1 -1
- package/lib/map/client/readers/reader.kml.js +32 -21
- package/lib/map/client/readers/reader.kml.js.map +1 -1
- package/lib/map/client/readers/reader.shp.js +116 -0
- package/lib/map/client/readers/reader.shp.js.map +1 -0
- package/lib/map/client/utils.js +1 -8
- package/lib/map/client/utils.js.map +1 -1
- package/lib/map/common/grid.js +131 -0
- package/lib/map/common/grid.js.map +1 -1
- package/lib/map/common/index.js +22 -11
- package/lib/map/common/index.js.map +1 -1
- package/lib/map/common/meteo-model-grid-source.js +5 -2
- package/lib/map/common/meteo-model-grid-source.js.map +1 -1
- package/lib/map/common/time-based-grid-source.js +5 -2
- package/lib/map/common/time-based-grid-source.js.map +1 -1
- package/lib/test/client/core/account.js +1 -1
- package/lib/test/client/core/account.js.map +1 -1
- package/lib/test/client/core/collection.js +31 -13
- package/lib/test/client/core/collection.js.map +1 -1
- package/lib/test/client/core/layout.js +137 -49
- package/lib/test/client/core/layout.js.map +1 -1
- package/lib/test/client/core/screens.js +1 -1
- package/lib/test/client/core/screens.js.map +1 -1
- package/lib/test/client/core/utils.js +89 -22
- package/lib/test/client/core/utils.js.map +1 -1
- package/lib/test/client/map/catalog.js +134 -41
- package/lib/test/client/map/catalog.js.map +1 -1
- package/lib/test/client/map/controls.js +7 -4
- package/lib/test/client/map/controls.js.map +1 -1
- package/lib/test/client/map/index.js +12 -0
- package/lib/test/client/map/index.js.map +1 -1
- package/lib/test/client/map/utils.js +67 -0
- package/lib/test/client/map/utils.js.map +1 -0
- package/package.json +5 -6
- package/.nyc_output/2226bcce-9d22-4dad-b9fa-46564b5565c7.json +0 -1
- package/.nyc_output/6dc4b140-1a8a-4d69-b91c-89c557883d6e.json +0 -1
- package/.nyc_output/processinfo/058fc679-d60a-4501-ac04-71171e5200b8.json +0 -1
- package/.nyc_output/processinfo/2226bcce-9d22-4dad-b9fa-46564b5565c7.json +0 -1
- package/.nyc_output/processinfo/6dc4b140-1a8a-4d69-b91c-89c557883d6e.json +0 -1
- package/.nyc_output/processinfo/8b1830fa-932e-4a61-9837-4a5b18f83ea9.json +0 -1
- package/.nyc_output/processinfo/afd2d144-3570-4858-b94a-b523dbd023dd.json +0 -1
- package/extras/tours/map/favorite-views.js +0 -53
- package/lib/core/client/components/frame/KChart.vue +0 -60
- package/lib/core/client/components/input/KCodeInput.vue +0 -50
- package/lib/core/client/components/input/KTimeRangeChooser.vue +0 -109
- package/lib/core/client/components/time/KTimeRange.vue +0 -144
- package/lib/map/client/components/KFavoriteViews.vue +0 -217
|
@@ -153,24 +153,22 @@ export default {
|
|
|
153
153
|
},
|
|
154
154
|
date: {
|
|
155
155
|
get: function () {
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
// Assume locale if timezone not provided
|
|
157
|
+
return Time.getFormatTimezone()
|
|
158
|
+
? moment(this.time).tz(Time.getFormatTimezone()).format(this.calendarDateMask)
|
|
158
159
|
: moment(this.time).local().format(this.calendarDateMask)
|
|
159
160
|
},
|
|
160
161
|
set: function (value) {
|
|
161
162
|
let time
|
|
162
|
-
if
|
|
163
|
-
|
|
164
|
-
time.
|
|
165
|
-
time.minute(this.time.minute())
|
|
163
|
+
// Assume locale if timezone not provided
|
|
164
|
+
if (Time.getFormatTimezone()) {
|
|
165
|
+
time = moment.tz(value, this.calendarDateMask, Time.getFormatTimezone())
|
|
166
166
|
} else {
|
|
167
167
|
time = moment(value, this.calendarDateMask)
|
|
168
|
-
const localTime = moment(this.time.valueOf())
|
|
169
|
-
time.hour(localTime.hour())
|
|
170
|
-
time.minute(localTime.minute())
|
|
171
|
-
time = moment.utc(time)
|
|
172
168
|
}
|
|
173
|
-
this.
|
|
169
|
+
time.hour(this.time.hour())
|
|
170
|
+
time.minute(this.time.minute())
|
|
171
|
+
this.setTime(moment.utc(time))
|
|
174
172
|
}
|
|
175
173
|
}
|
|
176
174
|
},
|
|
@@ -181,14 +179,11 @@ export default {
|
|
|
181
179
|
startTimeLoop () {
|
|
182
180
|
this.setTime(moment.utc())
|
|
183
181
|
this.timer = setInterval(() => {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
this.$events.$on('time-current-time-changed', this.onTimeChanged)
|
|
190
|
-
}
|
|
191
|
-
}, 15 * 1000)
|
|
182
|
+
this.time = moment.utc()
|
|
183
|
+
this.$events.$off('time-current-time-changed', this.onTimeChanged)
|
|
184
|
+
Time.setCurrentTime(this.time)
|
|
185
|
+
this.$events.$on('time-current-time-changed', this.onTimeChanged)
|
|
186
|
+
}, 1000 * this.timeSettings.interval)
|
|
192
187
|
},
|
|
193
188
|
stopTimeLoop () {
|
|
194
189
|
clearInterval(this.timer)
|
|
@@ -282,27 +277,27 @@ export default {
|
|
|
282
277
|
}
|
|
283
278
|
</script>
|
|
284
279
|
|
|
285
|
-
<style lang="
|
|
280
|
+
<style lang="scss">
|
|
286
281
|
.k-timeline {
|
|
287
|
-
background: #ffffff
|
|
288
|
-
border: solid 1px lightgrey
|
|
289
|
-
border-radius: 5px
|
|
290
|
-
width: 60vw
|
|
282
|
+
background: #ffffff;
|
|
283
|
+
border: solid 1px lightgrey;
|
|
284
|
+
border-radius: 5px;
|
|
285
|
+
width: 60vw;
|
|
291
286
|
}
|
|
292
287
|
.k-timeline:hover {
|
|
293
|
-
border: solid 1px $primary
|
|
294
|
-
cursor: mouse
|
|
288
|
+
border: solid 1px $primary;
|
|
289
|
+
cursor: mouse;
|
|
295
290
|
}
|
|
296
291
|
.k-timeline-control {
|
|
297
|
-
padding: 5px
|
|
298
|
-
border-bottom: solid 1px lightgrey
|
|
292
|
+
padding: 5px;
|
|
293
|
+
border-bottom: solid 1px lightgrey;
|
|
299
294
|
}
|
|
300
295
|
.k-timeline-hour-frame {
|
|
301
|
-
border-bottom: solid 5px $grey-5
|
|
302
|
-
border-left: solid 1px white
|
|
303
|
-
border-right: solid 1px white
|
|
304
|
-
text-align: center
|
|
305
|
-
vertical-align: middle
|
|
296
|
+
border-bottom: solid 5px $grey-5;
|
|
297
|
+
border-left: solid 1px white;
|
|
298
|
+
border-right: solid 1px white;
|
|
299
|
+
text-align: center;
|
|
300
|
+
vertical-align: middle;
|
|
306
301
|
user-select: none; /* supported by Chrome and Opera */
|
|
307
302
|
-webkit-user-select: none; /* Safari */
|
|
308
303
|
-khtml-user-select: none; /* Konqueror HTML */
|
|
@@ -310,9 +305,9 @@ export default {
|
|
|
310
305
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
311
306
|
}
|
|
312
307
|
.k-timeline-hour-selected {
|
|
313
|
-
border-bottom: solid 5px $primary
|
|
308
|
+
border-bottom: solid 5px $primary;
|
|
314
309
|
}
|
|
315
310
|
.k-timeline-hour-frame:hover {
|
|
316
|
-
border-bottom: solid 5px $primary
|
|
311
|
+
border-bottom: solid 5px $primary;
|
|
317
312
|
}
|
|
318
313
|
</style>
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div ref="map" class="col" style="fontWeight: normal; zIndex: 0; position: relative">
|
|
3
|
+
<q-resize-observer @resize="onMapResized" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import _ from 'lodash'
|
|
9
|
+
import L from 'leaflet'
|
|
10
|
+
import { colors } from 'quasar'
|
|
11
|
+
import { mixins as kCoreMixins, utils as kCoreUtils } from '../../../core/client'
|
|
12
|
+
import * as mapMixins from '../mixins/map'
|
|
13
|
+
import * as kMapMixins from '../mixins'
|
|
14
|
+
import { setGatewayJwt } from '../utils'
|
|
15
|
+
import meta from 'moment-timezone/data/meta/latest.json'
|
|
16
|
+
|
|
17
|
+
// Convert timezones to GeoJson
|
|
18
|
+
const timezones = _.values(meta.zones).map(timezone => ({
|
|
19
|
+
type: 'Feature',
|
|
20
|
+
geometry: {
|
|
21
|
+
type: 'Point',
|
|
22
|
+
coordinates: [timezone.long, timezone.lat]
|
|
23
|
+
},
|
|
24
|
+
properties: {
|
|
25
|
+
name: timezone.name
|
|
26
|
+
}
|
|
27
|
+
}))
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
name: 'k-timezone-map',
|
|
31
|
+
mixins: [
|
|
32
|
+
kCoreMixins.refsResolver(['map']),
|
|
33
|
+
kMapMixins.style,
|
|
34
|
+
mapMixins.baseMap,
|
|
35
|
+
mapMixins.geojsonLayers,
|
|
36
|
+
mapMixins.style,
|
|
37
|
+
mapMixins.tooltip
|
|
38
|
+
],
|
|
39
|
+
props: {
|
|
40
|
+
value: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ''
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
data () {
|
|
46
|
+
return {
|
|
47
|
+
timezone: ''
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
watch: {
|
|
51
|
+
value: function () {
|
|
52
|
+
this.setTimezone(this.value)
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
setTimezone (timezone) {
|
|
57
|
+
// If empty need to initialize
|
|
58
|
+
if (timezone && (timezone === this.timezone)) return
|
|
59
|
+
// Check if input time zone has a location
|
|
60
|
+
timezone = _.get(meta, 'zones.' + timezone, {})
|
|
61
|
+
this.timezone = _.get(timezone, 'name', '')
|
|
62
|
+
this.refreshTimezonesLayer()
|
|
63
|
+
if (this.timezone) {
|
|
64
|
+
this.center(timezone.long, timezone.lat, this.map.getZoom())
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
async refreshBaseLayer () {
|
|
68
|
+
const catalogService = this.$api.getService('catalog', '')
|
|
69
|
+
// Get first visible base layer
|
|
70
|
+
const response = await catalogService.find({ query: { type: 'BaseLayer', 'leaflet.isVisible': true } })
|
|
71
|
+
if (response.data.length > 0) {
|
|
72
|
+
const baseLayer = response.data[0]
|
|
73
|
+
// Do we need to inject a token ?
|
|
74
|
+
const gatewayToken = this.$api.get('storage').getItem(this.$config('gatewayJwt'))
|
|
75
|
+
if (gatewayToken) setGatewayJwt([baseLayer], gatewayToken)
|
|
76
|
+
this.addLayer(baseLayer)
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
getTimezoneMarker (feature, latlng) {
|
|
80
|
+
const isSelected = (this.timezone === feature.properties.name)
|
|
81
|
+
return this.createMarkerFromStyle(latlng,
|
|
82
|
+
this.convertFromSimpleStyleSpec({
|
|
83
|
+
'marker-type': 'circleMarker',
|
|
84
|
+
radius: isSelected ? 8 : 5,
|
|
85
|
+
'stroke-color': colors.getBrand('primary'),
|
|
86
|
+
'stroke-opacity': isSelected ? 1 : 0,
|
|
87
|
+
'fill-opacity': 0.5,
|
|
88
|
+
'fill-color': isSelected ? colors.getBrand('secondary') : colors.getBrand('primary')
|
|
89
|
+
})
|
|
90
|
+
)
|
|
91
|
+
},
|
|
92
|
+
getTimezoneTooltip (feature, layer) {
|
|
93
|
+
const name = _.get(feature, 'properties.name')
|
|
94
|
+
let tooltip
|
|
95
|
+
if (name) {
|
|
96
|
+
const isSelected = (this.timezone === name)
|
|
97
|
+
tooltip = L.tooltip({ permanent: isSelected }, layer)
|
|
98
|
+
tooltip.setContent(kCoreUtils.getTimezoneLabel(name))
|
|
99
|
+
}
|
|
100
|
+
return tooltip
|
|
101
|
+
},
|
|
102
|
+
async refreshTimezonesLayer () {
|
|
103
|
+
const layer = this.getLayerByName('Timezones')
|
|
104
|
+
if (!layer) {
|
|
105
|
+
await this.addLayer({
|
|
106
|
+
name: 'Timezones',
|
|
107
|
+
type: 'OverlayLayer',
|
|
108
|
+
featureId: 'name',
|
|
109
|
+
leaflet: {
|
|
110
|
+
type: 'geoJson',
|
|
111
|
+
isVisible: true,
|
|
112
|
+
realtime: true
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
this.updateLayer('Timezones', { type: 'FeatureCollection', features: timezones })
|
|
117
|
+
},
|
|
118
|
+
async onMapResized (size) {
|
|
119
|
+
this.refreshMap()
|
|
120
|
+
},
|
|
121
|
+
onTimezoneSelected (layer, event) {
|
|
122
|
+
const feature = _.get(event, 'target.feature')
|
|
123
|
+
if (feature) {
|
|
124
|
+
const timezone = _.get(feature, 'properties.name')
|
|
125
|
+
this.setTimezone(timezone)
|
|
126
|
+
this.$emit('timezone-selected', timezone)
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
created () {
|
|
131
|
+
this.registerStyle('markerStyle', this.getTimezoneMarker)
|
|
132
|
+
this.registerStyle('tooltip', this.getTimezoneTooltip)
|
|
133
|
+
this.$on('click', this.onTimezoneSelected)
|
|
134
|
+
},
|
|
135
|
+
async mounted () {
|
|
136
|
+
// Initialize component
|
|
137
|
+
await this.loadRefs()
|
|
138
|
+
this.setupMap(this.$refs.map, {
|
|
139
|
+
maxBounds: [[-90, -180], [90, 180]],
|
|
140
|
+
maxBoundsViscosity: 0.25,
|
|
141
|
+
minZoom: 3,
|
|
142
|
+
maxZoom: 6,
|
|
143
|
+
zoom: 3,
|
|
144
|
+
center: [0, 0],
|
|
145
|
+
scale: false,
|
|
146
|
+
geolocate: false
|
|
147
|
+
})
|
|
148
|
+
await this.refreshBaseLayer()
|
|
149
|
+
this.setTimezone(this.value)
|
|
150
|
+
this.$events.$emit('map-ready')
|
|
151
|
+
},
|
|
152
|
+
beforeDestroy () {
|
|
153
|
+
this.$off('click', this.onTimezoneSelected)
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</script>
|
|
@@ -108,14 +108,15 @@ export default {
|
|
|
108
108
|
}
|
|
109
109
|
</script>
|
|
110
110
|
|
|
111
|
-
<style lang="
|
|
112
|
-
.k-url-legend-container
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
.k-url-legend-item
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
111
|
+
<style lang="scss">
|
|
112
|
+
.k-url-legend-container {
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
align-items: flex-start;
|
|
116
|
+
}
|
|
117
|
+
.k-url-legend-item {
|
|
118
|
+
text-overflow: ellipsis;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
121
|
+
}
|
|
121
122
|
</style>
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
:title="$t('KAddLayer.TITLE')"
|
|
5
5
|
v-model="isModalOpened"
|
|
6
6
|
@opened="$emit('opened')"
|
|
7
|
-
@closed="$emit('closed')"
|
|
8
|
-
|
|
7
|
+
@closed="$emit('closed')"
|
|
8
|
+
>
|
|
9
|
+
<div>
|
|
9
10
|
<q-tabs align="justify" v-model="mode" inverted>
|
|
10
11
|
<q-tab id="import-layer" name="import" icon="las la-desktop" />
|
|
11
12
|
<q-tab id="connect-layer" name="connect" icon="las la-plug" />
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<k-layers-panel
|
|
3
|
+
:layers="filteredLayers"
|
|
4
|
+
:layerCategories="filteredCategories"
|
|
5
|
+
:forecastModels="forecastModels"
|
|
6
|
+
:forecastModelHandlers="forecastModelHandlers"
|
|
7
|
+
:forecastModel="forecastModel" />
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import _ from 'lodash'
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: 'k-catalog-layers-panel',
|
|
15
|
+
props: {
|
|
16
|
+
layers: {
|
|
17
|
+
type: Object,
|
|
18
|
+
default: () => {}
|
|
19
|
+
},
|
|
20
|
+
layerCategories: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: () => []
|
|
23
|
+
},
|
|
24
|
+
forecastModels: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
forecastModelHandlers: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: () => {}
|
|
31
|
+
},
|
|
32
|
+
forecastModel: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: () => {}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
filteredLayers () {
|
|
39
|
+
return _.filter(this.layers, layer => {
|
|
40
|
+
const scope = _.get(layer, 'scope', '')
|
|
41
|
+
const filter = ['user', 'system', 'activity']
|
|
42
|
+
return !filter.includes(scope)
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
filteredCategories () {
|
|
46
|
+
return _.filter(this.layerCategories, category => {
|
|
47
|
+
return !_.has(category, '_id')
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
beforeCreate () {
|
|
52
|
+
// Load the required components
|
|
53
|
+
this.$options.components['k-layers-panel'] = this.$load('catalog/KLayersPanel')
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<k-modal
|
|
3
|
+
id="add-view-modal"
|
|
4
|
+
:title="$t(getSchema().title)"
|
|
5
|
+
:buttons="getButtons()"
|
|
6
|
+
v-model="isModalOpened"
|
|
7
|
+
@opened="$emit('opened')"
|
|
8
|
+
@closed="$emit('closed')"
|
|
9
|
+
>
|
|
10
|
+
<k-form ref="form" :schema="getSchema()" />
|
|
11
|
+
</k-modal>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
import mixins from '../../../../core/client/mixins'
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
name: 'k-add-view',
|
|
19
|
+
mixins: [mixins.baseModal],
|
|
20
|
+
inject: ['kActivity'],
|
|
21
|
+
data () {
|
|
22
|
+
return {
|
|
23
|
+
creating: false
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
getButtons () {
|
|
28
|
+
return [
|
|
29
|
+
{ id: 'cancel-button', label: 'CANCEL', renderer: 'form-button', outline: true, handler: () => this.closeModal() },
|
|
30
|
+
{ id: 'apply-button', label: 'CREATE', renderer: 'form-button', loading: this.creating, handler: () => this.apply() }
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
getSchema () {
|
|
34
|
+
return {
|
|
35
|
+
$schema: 'http://json-schema.org/draft-06/schema#',
|
|
36
|
+
$id: 'http://www.kalisio.xyz/schemas/favorite-view.create.json#',
|
|
37
|
+
title: 'schemas.CREATE_VIEW_TITLE',
|
|
38
|
+
description: 'Map view creation schema',
|
|
39
|
+
type: 'object',
|
|
40
|
+
properties: {
|
|
41
|
+
name: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
maxLength: 128,
|
|
44
|
+
minLength: 3,
|
|
45
|
+
field: {
|
|
46
|
+
component: 'form/KTextField',
|
|
47
|
+
label: 'schemas.CREATE_VIEW_NAME_FIELD_LABEL'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
description: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
maxLength: 256,
|
|
53
|
+
field: {
|
|
54
|
+
component: 'form/KTextField',
|
|
55
|
+
label: 'schemas.CREATE_VIEW_DESCRIPTION_FIELD_LABEL'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
layers: {
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
default: false,
|
|
61
|
+
field: {
|
|
62
|
+
component: 'form/KToggleField',
|
|
63
|
+
label: 'schemas.CREATE_VIEW_LAYERS_FIELD_LABEL'
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
required: ['name']
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
async apply () {
|
|
71
|
+
const result = this.$refs.form.validate()
|
|
72
|
+
if (result.isValid) {
|
|
73
|
+
const view = result.values
|
|
74
|
+
try {
|
|
75
|
+
this.creating = true
|
|
76
|
+
await this.kActivity.saveContext(view)
|
|
77
|
+
this.creating = false
|
|
78
|
+
this.closeModal()
|
|
79
|
+
} catch (error) {
|
|
80
|
+
this.creating = false
|
|
81
|
+
throw error
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
beforeCreate () {
|
|
87
|
+
this.$options.components['k-modal'] = this.$load('frame/KModal')
|
|
88
|
+
this.$options.components['k-form'] = this.$load('form/KForm')
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
</script>
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
:buttons="buttons"
|
|
8
8
|
v-model="isModalOpened"
|
|
9
9
|
@opened="$emit('opened')"
|
|
10
|
-
@closed="$emit('closed')"
|
|
11
|
-
|
|
10
|
+
@closed="$emit('closed')"
|
|
11
|
+
>
|
|
12
|
+
<div id="layer-categories-content">
|
|
12
13
|
<q-card-section id="layer-categories-list" v-if="mode === 'list'">
|
|
13
14
|
<k-list
|
|
14
15
|
style="min-height: 50px; min-width: 200px"
|
|
@@ -46,7 +47,8 @@ export default {
|
|
|
46
47
|
},
|
|
47
48
|
computed: {
|
|
48
49
|
baseQuery () {
|
|
49
|
-
|
|
50
|
+
// Built-in categories do not have _id
|
|
51
|
+
return Object.assign({ type: 'Category', _id: { $exists: true } }, this.sorter.query)
|
|
50
52
|
},
|
|
51
53
|
title () {
|
|
52
54
|
if (this.mode === 'add') {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<k-scroll-area :maxHeight="scrollAreaMaxHeight" :style="panelStyle">
|
|
3
3
|
<q-list dense bordered>
|
|
4
4
|
<slot name="header" />
|
|
5
5
|
<k-layers-selector
|
|
@@ -21,24 +21,27 @@
|
|
|
21
21
|
:forecastModels="forecastModels"
|
|
22
22
|
:forecastModelHandlers="forecastModelHandlers"
|
|
23
23
|
:forecastModel="forecastModel"
|
|
24
|
-
:options="category.options || category"
|
|
24
|
+
:options="category.options || category">
|
|
25
|
+
</component>
|
|
25
26
|
</q-expansion-item>
|
|
26
27
|
</template>
|
|
27
28
|
<slot name="footer" />
|
|
28
29
|
</q-list>
|
|
29
|
-
</
|
|
30
|
+
</k-scroll-area>
|
|
30
31
|
</template>
|
|
31
32
|
|
|
32
33
|
<script>
|
|
33
34
|
import sift from 'sift'
|
|
34
35
|
import _ from 'lodash'
|
|
35
36
|
import path from 'path'
|
|
37
|
+
import { catalogPanel } from '../../mixins'
|
|
36
38
|
|
|
37
39
|
export default {
|
|
38
|
-
name: 'k-
|
|
40
|
+
name: 'k-layers-panel',
|
|
41
|
+
mixins: [catalogPanel],
|
|
39
42
|
props: {
|
|
40
43
|
layers: {
|
|
41
|
-
type:
|
|
44
|
+
type: Array,
|
|
42
45
|
default: () => {}
|
|
43
46
|
},
|
|
44
47
|
layerCategories: {
|
|
@@ -59,19 +62,19 @@ export default {
|
|
|
59
62
|
}
|
|
60
63
|
},
|
|
61
64
|
watch: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
layers: {
|
|
66
|
+
handler () {
|
|
67
|
+
this.categorize()
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
layerCategories: {
|
|
71
|
+
handler () {
|
|
72
|
+
this.categorize()
|
|
73
|
+
}
|
|
65
74
|
}
|
|
66
75
|
},
|
|
67
76
|
computed: {
|
|
68
|
-
computedStyle () {
|
|
69
|
-
if (this.$q.screen.lt.md) return 'height: 65vh; min-width: 300px;'
|
|
70
|
-
if (this.$q.screen.lt.lg) return 'height: 70vh; min-width: 350px;'
|
|
71
|
-
return 'height: 75vh; min-width: 400px;'
|
|
72
|
-
},
|
|
73
77
|
layersByCategory () {
|
|
74
|
-
const layers = _.values(this.layers)
|
|
75
78
|
const layersByCategory = {}
|
|
76
79
|
_.forEach(this.layerCategories, category => {
|
|
77
80
|
// Built-in categories use filtering while user-defined ones use layers list
|
|
@@ -82,17 +85,14 @@ export default {
|
|
|
82
85
|
filter = { name: { $in: _.get(category, 'layers') } }
|
|
83
86
|
}
|
|
84
87
|
// If the list of layers in category is empty we can have a null filter
|
|
85
|
-
layersByCategory[category.name] = filter ? _.remove(layers, sift(filter)) : []
|
|
88
|
+
layersByCategory[category.name] = filter ? _.remove(this.layers, sift(filter)) : []
|
|
86
89
|
})
|
|
87
90
|
return layersByCategory
|
|
88
91
|
},
|
|
89
92
|
orphanLayers () {
|
|
90
93
|
// Filters system layers
|
|
91
|
-
const layers = _.values(_.filter(this.layers, layer => {
|
|
92
|
-
return _.get(layer, 'scope', '') !== 'system'
|
|
93
|
-
}))
|
|
94
94
|
const categories = _.flatten(_.values(this.layersByCategory))
|
|
95
|
-
return _.difference(layers, categories)
|
|
95
|
+
return _.difference(this.layers, categories)
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
methods: {
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
return false
|
|
121
121
|
},
|
|
122
122
|
categorize () {
|
|
123
|
-
this.layerCategories
|
|
123
|
+
_.forEach(this.layerCategories, category => {
|
|
124
124
|
const component = _.get(category, 'component', 'catalog/KLayersSelector')
|
|
125
125
|
const componentKey = _.kebabCase(path.basename(component))
|
|
126
126
|
category.componentKey = componentKey
|
|
@@ -128,10 +128,11 @@ export default {
|
|
|
128
128
|
})
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
|
-
|
|
131
|
+
beforeCreate () {
|
|
132
132
|
// Load the required components
|
|
133
|
-
this.$options.components['k-panel'] = this.$load('frame/KPanel')
|
|
134
133
|
this.$options.components['k-layers-selector'] = this.$load('catalog/KLayersSelector')
|
|
134
|
+
},
|
|
135
|
+
created () {
|
|
135
136
|
// Categorize layers
|
|
136
137
|
this.categorize()
|
|
137
138
|
}
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
</q-tooltip>
|
|
23
23
|
</div>
|
|
24
24
|
<q-space />
|
|
25
|
-
<q-icon name="las la-exclamation-circle" size="
|
|
25
|
+
<q-icon name="las la-exclamation-circle" size="sm" color="warning" v-if="layer.isDisabled">
|
|
26
26
|
<q-tooltip>{{ $t('KLayersSelector.LAYER_DISABLED') }}</q-tooltip>
|
|
27
27
|
</q-icon>
|
|
28
28
|
<!-- Layer toggle -->
|
|
29
|
-
<q-toggle :value="layer.isVisible" :disable="layer.isDisabled" @input="onLayerClicked(layer)"/>
|
|
29
|
+
<q-toggle :value="layer.isVisible" :disable="layer.isDisabled" size="sm" @input="onLayerClicked(layer)" />
|
|
30
30
|
<!-- Layer actions -->
|
|
31
31
|
<k-panel
|
|
32
32
|
:id="`${layer.name}-actions`"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</div>
|
|
38
38
|
</template>
|
|
39
39
|
</div>
|
|
40
|
-
<div v-else-if="!options.hideIfEmpty" class="row justify-center q-
|
|
40
|
+
<div v-else-if="!options.hideIfEmpty" class="row justify-center q-pa-sm">
|
|
41
41
|
<k-stamp icon="las la-exclamation-circle" icon-size="sm" :text="$t('KLayersSelector.NO_LAYER_AVAILABLE')" direction="horizontal" />
|
|
42
42
|
</div>
|
|
43
43
|
<slot name="footer" />
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<k-layers-panel
|
|
3
|
+
:layers="filteredLayers"
|
|
4
|
+
:layerCategories="filteredCategories" />
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import _ from 'lodash'
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
name: 'k-users-layers-panel',
|
|
12
|
+
props: {
|
|
13
|
+
layers: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {}
|
|
16
|
+
},
|
|
17
|
+
layerCategories: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
computed: {
|
|
23
|
+
filteredLayers () {
|
|
24
|
+
return _.filter(this.layers, layer => {
|
|
25
|
+
const scope = _.get(layer, 'scope', '')
|
|
26
|
+
return scope === 'user' || scope === 'activity'
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
filteredCategories () {
|
|
30
|
+
return _.filter(this.layerCategories, category => {
|
|
31
|
+
return _.has(category, '_id')
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
beforeCreate () {
|
|
36
|
+
// Load the required components
|
|
37
|
+
this.$options.components['k-layers-panel'] = this.$load('catalog/KLayersPanel')
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</script>
|