@kalisio/kdk 1.3.5 → 1.4.2
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/2c5b7c8e-81db-4d2c-a7a4-02dc640d301f.json +1 -0
- package/.nyc_output/{0b8aa700-8daa-49ce-85e7-a8f8965d55f0.json → 2e74ca23-8cf0-4161-9536-f71c2a1a74bb.json} +0 -0
- package/.nyc_output/{20df4355-911a-4b16-a8ab-d3392e9f0a7f.json → 81d21e46-766a-46bc-b1b7-143ca577347a.json} +0 -0
- package/.nyc_output/a762cb58-70dc-4d39-ab69-928635affa98.json +1 -0
- package/.nyc_output/{257af0bb-96c3-465a-b5ef-a1df60078d5f.json → aaf3ebbb-f895-4d7b-9255-bc5dee832570.json} +0 -0
- package/.nyc_output/{284aebfa-23fd-425f-9d72-e4b8904dc224.json → dbeb2602-0ac2-4e66-978b-0d29548359ca.json} +0 -0
- package/.nyc_output/{5cbee06e-be6e-468a-bd78-4793ee785fe4.json → e47d1e4c-2fff-4dcb-908f-d3081162547c.json} +0 -0
- package/.nyc_output/processinfo/{2bece194-92f7-4971-a688-10604044a7fa.json → 2c5b7c8e-81db-4d2c-a7a4-02dc640d301f.json} +1 -1
- package/.nyc_output/processinfo/2e74ca23-8cf0-4161-9536-f71c2a1a74bb.json +1 -0
- package/.nyc_output/processinfo/81d21e46-766a-46bc-b1b7-143ca577347a.json +1 -0
- package/.nyc_output/processinfo/a762cb58-70dc-4d39-ab69-928635affa98.json +1 -0
- package/.nyc_output/processinfo/aaf3ebbb-f895-4d7b-9255-bc5dee832570.json +1 -0
- package/.nyc_output/processinfo/dbeb2602-0ac2-4e66-978b-0d29548359ca.json +1 -0
- package/.nyc_output/processinfo/e47d1e4c-2fff-4dcb-908f-d3081162547c.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +189 -67
- package/README.md +1 -1
- package/coverage/core/api/application.js.html +145 -145
- package/coverage/core/api/authentication.js.html +37 -37
- package/coverage/core/api/db.js.html +74 -74
- package/coverage/core/api/hooks/hooks.account.js.html +15 -15
- package/coverage/core/api/hooks/hooks.authentication.js.html +16 -16
- package/coverage/core/api/hooks/hooks.authorisations.js.html +112 -121
- package/coverage/core/api/hooks/hooks.devices.js.html +5 -5
- package/coverage/core/api/hooks/hooks.groups.js.html +3 -3
- package/coverage/core/api/hooks/hooks.logger.js.html +7 -7
- package/coverage/core/api/hooks/hooks.model.js.html +149 -149
- package/coverage/core/api/hooks/hooks.organisations.js.html +13 -61
- package/coverage/core/api/hooks/hooks.pusher.js.html +7 -7
- package/coverage/core/api/hooks/hooks.query.js.html +68 -32
- package/coverage/core/api/hooks/hooks.service.js.html +15 -15
- package/coverage/core/api/hooks/hooks.storage.js.html +5 -5
- package/coverage/core/api/hooks/hooks.tags.js.html +7 -7
- package/coverage/core/api/hooks/hooks.users.js.html +111 -63
- package/coverage/core/api/hooks/index.html +72 -72
- package/coverage/core/api/hooks/index.js.html +15 -15
- package/coverage/core/api/index.html +35 -35
- package/coverage/core/api/index.js.html +13 -13
- package/coverage/core/api/marshall.js.html +81 -81
- 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 +7 -7
- package/coverage/core/api/oauth2-handler.js.html +3 -3
- package/coverage/core/api/oauth2-verifier.js.html +5 -5
- package/coverage/core/api/services/account/account.hooks.js.html +1 -1
- package/coverage/core/api/services/account/account.service.js.html +34 -34
- package/coverage/core/api/services/account/index.html +17 -17
- package/coverage/core/api/services/authorisations/authorisations.hooks.js.html +3 -3
- package/coverage/core/api/services/authorisations/authorisations.service.js.html +40 -37
- package/coverage/core/api/services/authorisations/index.html +17 -17
- 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 +5 -5
- package/coverage/core/api/services/index.js.html +40 -40
- 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 +4 -4
- 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 +12 -12
- package/coverage/core/common/index.html +32 -32
- package/coverage/core/common/index.js.html +27 -27
- package/coverage/core/common/permissions.js.html +135 -75
- package/coverage/index.html +157 -157
- package/coverage/lcov-report/core/api/application.js.html +145 -145
- package/coverage/lcov-report/core/api/authentication.js.html +37 -37
- package/coverage/lcov-report/core/api/db.js.html +74 -74
- package/coverage/lcov-report/core/api/hooks/hooks.account.js.html +15 -15
- package/coverage/lcov-report/core/api/hooks/hooks.authentication.js.html +16 -16
- package/coverage/lcov-report/core/api/hooks/hooks.authorisations.js.html +112 -121
- package/coverage/lcov-report/core/api/hooks/hooks.devices.js.html +5 -5
- package/coverage/lcov-report/core/api/hooks/hooks.groups.js.html +3 -3
- package/coverage/lcov-report/core/api/hooks/hooks.logger.js.html +7 -7
- package/coverage/lcov-report/core/api/hooks/hooks.model.js.html +149 -149
- package/coverage/lcov-report/core/api/hooks/hooks.organisations.js.html +13 -61
- package/coverage/lcov-report/core/api/hooks/hooks.pusher.js.html +7 -7
- package/coverage/lcov-report/core/api/hooks/hooks.query.js.html +68 -32
- package/coverage/lcov-report/core/api/hooks/hooks.service.js.html +15 -15
- package/coverage/lcov-report/core/api/hooks/hooks.storage.js.html +5 -5
- package/coverage/lcov-report/core/api/hooks/hooks.tags.js.html +7 -7
- package/coverage/lcov-report/core/api/hooks/hooks.users.js.html +111 -63
- package/coverage/lcov-report/core/api/hooks/index.html +72 -72
- package/coverage/lcov-report/core/api/hooks/index.js.html +15 -15
- package/coverage/lcov-report/core/api/index.html +35 -35
- package/coverage/lcov-report/core/api/index.js.html +13 -13
- package/coverage/lcov-report/core/api/marshall.js.html +81 -81
- 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 +7 -7
- package/coverage/lcov-report/core/api/oauth2-handler.js.html +3 -3
- package/coverage/lcov-report/core/api/oauth2-verifier.js.html +5 -5
- 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 +34 -34
- package/coverage/lcov-report/core/api/services/account/index.html +17 -17
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.hooks.js.html +3 -3
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.service.js.html +40 -37
- package/coverage/lcov-report/core/api/services/authorisations/index.html +17 -17
- 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 +5 -5
- package/coverage/lcov-report/core/api/services/index.js.html +40 -40
- 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 +4 -4
- 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 +12 -12
- package/coverage/lcov-report/core/common/index.html +32 -32
- package/coverage/lcov-report/core/common/index.js.html +27 -27
- package/coverage/lcov-report/core/common/permissions.js.html +135 -75
- package/coverage/lcov-report/index.html +157 -157
- package/coverage/lcov-report/map/api/hooks/hooks.catalog.js.html +55 -55
- package/coverage/lcov-report/map/api/hooks/hooks.query.js.html +337 -274
- package/coverage/lcov-report/map/api/hooks/index.html +43 -43
- package/coverage/lcov-report/map/api/hooks/index.js.html +12 -12
- package/coverage/lcov-report/map/api/index.html +31 -31
- package/coverage/lcov-report/map/api/index.js.html +24 -24
- package/coverage/lcov-report/map/api/marshall.js.html +39 -39
- package/coverage/lcov-report/map/api/models/alerts.model.mongodb.js.html +20 -20
- package/coverage/lcov-report/map/api/models/catalog.model.mongodb.js.html +22 -22
- package/coverage/lcov-report/map/api/models/features.model.mongodb.js.html +24 -24
- package/coverage/lcov-report/map/api/models/index.html +43 -43
- package/coverage/lcov-report/map/api/services/alerts/alerts.hooks.js.html +21 -21
- package/coverage/lcov-report/map/api/services/alerts/alerts.service.js.html +156 -156
- package/coverage/lcov-report/map/api/services/alerts/index.html +30 -30
- package/coverage/lcov-report/map/api/services/catalog/catalog.hooks.js.html +19 -19
- package/coverage/lcov-report/map/api/services/catalog/index.html +17 -17
- 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 +20 -20
- package/coverage/lcov-report/map/api/services/features/index.html +21 -21
- package/coverage/lcov-report/map/api/services/geocoder/geocoder.hooks.js.html +8 -8
- package/coverage/lcov-report/map/api/services/geocoder/geocoder.service.js.html +99 -99
- package/coverage/lcov-report/map/api/services/geocoder/index.html +28 -28
- package/coverage/lcov-report/map/api/services/index.html +21 -21
- package/coverage/lcov-report/map/api/services/index.js.html +71 -71
- package/coverage/lcov-report/map/common/dynamic-grid-source.js.html +68 -68
- package/coverage/lcov-report/map/common/errors.js.html +9 -9
- package/coverage/lcov-report/map/common/geotiff-grid-source.js.html +120 -120
- package/coverage/lcov-report/map/common/grid.js.html +268 -268
- package/coverage/lcov-report/map/common/index.html +149 -149
- package/coverage/lcov-report/map/common/index.js.html +31 -31
- package/coverage/lcov-report/map/common/meteo-model-grid-source.js.html +71 -71
- package/coverage/lcov-report/map/common/moment-utils.js.html +14 -14
- package/coverage/lcov-report/map/common/opendap-grid-source.js.html +280 -280
- package/coverage/lcov-report/map/common/opendap-utils.js.html +220 -220
- package/coverage/lcov-report/map/common/permissions.js.html +21 -21
- package/coverage/lcov-report/map/common/time-based-grid-source.js.html +51 -51
- package/coverage/lcov-report/map/common/tms-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/wcs-grid-source.js.html +99 -99
- package/coverage/lcov-report/map/common/wcs-utils.js.html +66 -66
- package/coverage/lcov-report/map/common/weacast-grid-source.js.html +196 -196
- package/coverage/lcov-report/map/common/wfs-utils.js.html +8 -5
- package/coverage/lcov-report/map/common/wms-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/wmts-utils.js.html +71 -11
- package/coverage/lcov.info +3588 -3659
- package/coverage/map/api/hooks/hooks.catalog.js.html +55 -55
- package/coverage/map/api/hooks/hooks.query.js.html +337 -274
- package/coverage/map/api/hooks/index.html +43 -43
- package/coverage/map/api/hooks/index.js.html +12 -12
- package/coverage/map/api/index.html +31 -31
- package/coverage/map/api/index.js.html +24 -24
- package/coverage/map/api/marshall.js.html +39 -39
- package/coverage/map/api/models/alerts.model.mongodb.js.html +20 -20
- package/coverage/map/api/models/catalog.model.mongodb.js.html +22 -22
- package/coverage/map/api/models/features.model.mongodb.js.html +24 -24
- package/coverage/map/api/models/index.html +43 -43
- package/coverage/map/api/services/alerts/alerts.hooks.js.html +21 -21
- package/coverage/map/api/services/alerts/alerts.service.js.html +156 -156
- package/coverage/map/api/services/alerts/index.html +30 -30
- package/coverage/map/api/services/catalog/catalog.hooks.js.html +19 -19
- package/coverage/map/api/services/catalog/index.html +17 -17
- 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 +20 -20
- package/coverage/map/api/services/features/index.html +21 -21
- package/coverage/map/api/services/geocoder/geocoder.hooks.js.html +8 -8
- package/coverage/map/api/services/geocoder/geocoder.service.js.html +99 -99
- package/coverage/map/api/services/geocoder/index.html +28 -28
- package/coverage/map/api/services/index.html +21 -21
- package/coverage/map/api/services/index.js.html +71 -71
- package/coverage/map/common/dynamic-grid-source.js.html +68 -68
- package/coverage/map/common/errors.js.html +9 -9
- package/coverage/map/common/geotiff-grid-source.js.html +120 -120
- package/coverage/map/common/grid.js.html +268 -268
- package/coverage/map/common/index.html +149 -149
- package/coverage/map/common/index.js.html +31 -31
- package/coverage/map/common/meteo-model-grid-source.js.html +71 -71
- package/coverage/map/common/moment-utils.js.html +14 -14
- package/coverage/map/common/opendap-grid-source.js.html +280 -280
- package/coverage/map/common/opendap-utils.js.html +220 -220
- package/coverage/map/common/permissions.js.html +21 -21
- package/coverage/map/common/time-based-grid-source.js.html +51 -51
- package/coverage/map/common/tms-utils.js.html +1 -1
- package/coverage/map/common/wcs-grid-source.js.html +99 -99
- package/coverage/map/common/wcs-utils.js.html +66 -66
- package/coverage/map/common/weacast-grid-source.js.html +196 -196
- package/coverage/map/common/wfs-utils.js.html +8 -5
- package/coverage/map/common/wms-utils.js.html +1 -1
- package/coverage/map/common/wmts-utils.js.html +71 -11
- package/extras/icons/kanban.png +0 -0
- package/extras/testcafe/page-models/map/catalog.js +2 -2
- package/extras/tours/core/add-member.js +10 -1
- package/extras/tours/core/{tag-member.js → edit-member-tags.js} +4 -3
- package/extras/tours/core/groups.js +8 -2
- package/extras/tours/core/members.js +11 -21
- package/extras/tours/core/tags.js +7 -1
- package/extras/tours/map/catalog-categories.js +4 -4
- package/extras/tours/map/catalog-panel.js +16 -16
- package/extras/tours/map/favorite-views.js +3 -3
- package/lib/core/api/hooks/hooks.authorisations.js +149 -140
- package/lib/core/api/hooks/hooks.authorisations.js.map +1 -1
- package/lib/core/api/hooks/hooks.organisations.js +1 -23
- package/lib/core/api/hooks/hooks.organisations.js.map +1 -1
- package/lib/core/api/hooks/hooks.query.js +22 -0
- package/lib/core/api/hooks/hooks.query.js.map +1 -1
- package/lib/core/api/hooks/hooks.users.js +34 -18
- package/lib/core/api/hooks/hooks.users.js.map +1 -1
- package/lib/core/api/services/authorisations/authorisations.service.js +34 -25
- package/lib/core/api/services/authorisations/authorisations.service.js.map +1 -1
- package/lib/core/client/api.js +1 -0
- package/lib/core/client/api.js.map +1 -1
- package/lib/core/client/components/account/KAccountDZ.vue +3 -4
- package/lib/core/client/components/account/KAccountDevices.vue +5 -6
- package/lib/core/client/components/account/KDeviceCard.vue +2 -1
- package/lib/core/client/components/account/KIdentityPanel.vue +1 -7
- package/lib/core/client/components/collection/KBoard.vue +26 -155
- package/lib/core/client/components/collection/KCard.vue +144 -42
- package/lib/core/client/components/collection/KCardSection.vue +52 -0
- package/lib/core/client/components/collection/KColumn.vue +181 -0
- package/lib/core/client/components/collection/KGrid.vue +13 -18
- package/lib/core/client/components/collection/KHistory.vue +61 -89
- package/lib/core/client/components/collection/KHistoryEntry.vue +90 -66
- package/lib/core/client/components/collection/KItem.vue +21 -2
- package/lib/core/client/components/collection/KList.vue +9 -12
- package/lib/core/client/components/collection/KTable.vue +33 -39
- package/lib/core/client/components/collection/index.js +6 -1
- package/lib/core/client/components/collection/index.js.map +1 -1
- package/lib/core/client/components/editor/KEditor.vue +0 -6
- package/lib/core/client/components/editor/KModalEditor.vue +4 -4
- package/lib/core/client/components/editor/KSettingsEditor.vue +49 -0
- package/lib/core/client/components/form/KAttachmentField.vue +10 -10
- package/lib/core/client/components/form/KChipsField.vue +28 -23
- package/lib/core/client/components/form/KColorField.vue +30 -25
- package/lib/core/client/components/form/KForm.vue +0 -12
- package/lib/core/client/components/form/KIconField.vue +1 -0
- package/lib/core/client/components/form/KItemField.vue +8 -4
- package/lib/core/client/components/form/KRoleField.vue +56 -0
- package/lib/core/client/components/form/KSelectField.vue +16 -1
- package/lib/core/client/components/form/KView.vue +5 -14
- package/lib/core/client/components/frame/KAction.vue +18 -12
- package/lib/core/client/components/frame/KAvatar.vue +3 -3
- package/lib/core/client/components/frame/KChart.vue +60 -0
- package/lib/core/client/components/frame/KChipsPane.vue +80 -0
- package/lib/core/client/components/frame/KContent.vue +1 -1
- package/lib/core/client/components/frame/KModal.vue +30 -44
- package/lib/core/client/components/frame/KPanel.vue +1 -1
- package/lib/core/client/components/frame/{KMenu.vue → KPopupAction.vue} +6 -7
- package/lib/core/client/components/frame/KSpot.vue +31 -0
- package/lib/core/client/components/frame/KStamp.vue +62 -0
- package/lib/core/client/components/frame/index.js +56 -1
- package/lib/core/client/components/frame/index.js.map +1 -1
- package/lib/core/client/components/input/KColorChooser.vue +16 -8
- package/lib/core/client/components/input/KIconChooser.vue +2 -1
- package/lib/core/client/components/input/KUploader.vue +14 -5
- package/lib/core/client/components/layout/KAbout.vue +9 -3
- package/lib/core/client/components/layout/KFab.vue +1 -1
- package/lib/core/client/components/layout/KPage.vue +44 -19
- package/lib/core/client/components/layout/KTour.vue +2 -2
- package/lib/core/client/components/layout/KWelcome.vue +13 -12
- package/lib/core/client/components/layout/KWindow.vue +1 -1
- package/lib/core/client/components/media/KImageViewer.vue +9 -7
- package/lib/core/client/components/media/KMediaBrowser.vue +12 -8
- package/lib/core/client/components/menu/KMenu.vue +103 -0
- package/lib/core/client/components/team/KAddMember.vue +17 -9
- package/lib/core/client/components/team/KChangeRole.vue +5 -7
- package/lib/core/client/components/team/KGroupCard.vue +34 -51
- package/lib/core/client/components/team/KGroupsActivity.vue +9 -2
- package/lib/core/client/components/team/KJoinGroup.vue +5 -7
- package/lib/core/client/components/team/KMemberCard.vue +104 -63
- package/lib/core/client/components/team/KMembersActivity.vue +9 -2
- package/lib/core/client/components/team/KOrganisationsActivity.vue +8 -1
- package/lib/core/client/components/team/KTagCard.vue +26 -26
- package/lib/core/client/components/team/KTagsActivity.vue +9 -2
- package/lib/core/client/components/time/KTimeRange.vue +144 -0
- package/lib/core/client/components/viewer/KModalViewer.vue +6 -0
- package/lib/core/client/components/viewer/KViewer.vue +0 -6
- package/lib/core/client/i18n/core_en.json +133 -93
- package/lib/core/client/i18n/core_fr.json +56 -16
- package/lib/core/client/index.js +28 -14
- package/lib/core/client/index.js.map +1 -1
- package/lib/core/client/mixins/mixin.authorisation.js +28 -18
- package/lib/core/client/mixins/mixin.authorisation.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-collection.js +57 -9
- package/lib/core/client/mixins/mixin.base-collection.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-context.js +1 -1
- package/lib/core/client/mixins/mixin.base-context.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-editor.js +26 -16
- package/lib/core/client/mixins/mixin.base-editor.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-field.js +0 -4
- package/lib/core/client/mixins/mixin.base-field.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-item.js +29 -14
- package/lib/core/client/mixins/mixin.base-item.js.map +1 -1
- package/lib/core/client/mixins/mixin.base-viewer.js +0 -2
- package/lib/core/client/mixins/mixin.base-viewer.js.map +1 -1
- package/lib/core/client/mixins/mixin.object-proxy.js +17 -3
- package/lib/core/client/mixins/mixin.object-proxy.js.map +1 -1
- package/lib/core/client/mixins/mixin.schema-proxy.js +31 -0
- package/lib/core/client/mixins/mixin.schema-proxy.js.map +1 -1
- package/lib/core/client/mixins/mixin.service.js +5 -33
- package/lib/core/client/mixins/mixin.service.js.map +1 -1
- package/lib/core/client/services/index.js +23 -0
- package/lib/core/client/services/index.js.map +1 -1
- package/lib/core/client/services/local-settings.service.js +4 -0
- package/lib/core/client/services/local-settings.service.js.map +1 -1
- package/lib/core/client/time.js +131 -0
- package/lib/core/client/time.js.map +1 -0
- package/lib/core/common/permissions.js +65 -23
- package/lib/core/common/permissions.js.map +1 -1
- package/lib/core/common/schemas/groups.create.json +1 -1
- package/lib/core/common/schemas/groups.update.json +1 -1
- package/lib/core/common/schemas/organisations.create.json +1 -1
- package/lib/core/common/schemas/organisations.update.json +2 -2
- package/lib/core/common/schemas/settings.update.json +139 -0
- package/lib/core/common/schemas/tags.update.json +9 -1
- package/lib/map/api/hooks/hooks.query.js +48 -27
- package/lib/map/api/hooks/hooks.query.js.map +1 -1
- package/lib/map/api/services/features/features.hooks.js +1 -1
- package/lib/map/api/services/features/features.hooks.js.map +1 -1
- package/lib/map/client/components/KColorLegend.vue +25 -23
- package/lib/map/client/components/KFavoriteViews.vue +71 -35
- package/lib/map/client/components/KFeaturesChart.vue +11 -9
- package/lib/map/client/components/KFeaturesFilter.vue +15 -7
- package/lib/map/client/components/KFeaturesTable.vue +27 -2
- package/lib/map/client/components/KLayerEditionToolbar.vue +43 -0
- package/lib/map/client/components/KLayerStyleEditor.vue +10 -4
- package/lib/map/client/components/KLayerStyleForm.vue +14 -11
- package/lib/map/client/components/KLocationInput.vue +126 -65
- package/lib/map/client/components/KLocationMap.vue +199 -84
- package/lib/map/client/components/KPositionIndicator.vue +1 -0
- package/lib/map/client/components/KTimeline.vue +41 -36
- package/lib/map/client/components/KUrlLegend.vue +21 -19
- package/lib/map/client/components/catalog/KBaseLayersSelector.vue +105 -0
- package/lib/map/client/components/catalog/KCatalog.vue +14 -2
- package/lib/map/client/components/catalog/KConnectLayer.vue +31 -11
- package/lib/map/client/components/catalog/KCreateLayer.vue +37 -14
- package/lib/map/client/components/catalog/KImportLayer.vue +28 -8
- package/lib/map/client/components/catalog/KLayerCategories.vue +86 -62
- package/lib/map/client/components/catalog/KLayersSelector.vue +42 -42
- package/lib/map/client/components/catalog/KWeatherLayersSelector.vue +3 -3
- package/lib/map/client/components/form/KLocationField.vue +1 -1
- package/lib/map/client/components/form/KOwsLayerField.vue +21 -2
- package/lib/map/client/components/form/KOwsServiceField.vue +1 -0
- package/lib/map/client/components/widget/KInformationBox.vue +10 -16
- package/lib/map/client/components/widget/KMapillaryViewer.vue +59 -49
- package/lib/map/client/components/widget/KTimeSeries.vue +39 -29
- package/lib/map/client/i18n/map_en.json +65 -17
- package/lib/map/client/i18n/map_fr.json +67 -20
- package/lib/map/client/init.js +18 -6
- package/lib/map/client/init.js.map +1 -1
- package/lib/map/client/leaflet/GSMaPLayer.js +4 -9
- package/lib/map/client/leaflet/GSMaPLayer.js.map +1 -1
- package/lib/map/client/leaflet/GradientPath.js.map +1 -1
- package/lib/map/client/leaflet/MaskLayer.js +64 -0
- package/lib/map/client/leaflet/MaskLayer.js.map +1 -0
- package/lib/map/client/mixins/globe/mixin.base-globe.js +4 -1
- package/lib/map/client/mixins/globe/mixin.base-globe.js.map +1 -1
- package/lib/map/client/mixins/globe/mixin.geojson-layers.js +7 -9
- package/lib/map/client/mixins/globe/mixin.geojson-layers.js.map +1 -1
- package/lib/map/client/mixins/index.js +8 -13
- package/lib/map/client/mixins/index.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.base-map.js +30 -6
- package/lib/map/client/mixins/map/mixin.base-map.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.canvas-layers.js +274 -51
- package/lib/map/client/mixins/map/mixin.canvas-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.edit-layers.js +218 -121
- package/lib/map/client/mixins/map/mixin.edit-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.file-layers.js +25 -18
- package/lib/map/client/mixins/map/mixin.file-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.geojson-layers.js +18 -10
- package/lib/map/client/mixins/map/mixin.geojson-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.georaster-layers.js +7 -4
- package/lib/map/client/mixins/map/mixin.georaster-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.gsmap-layers.js +3 -3
- package/lib/map/client/mixins/map/mixin.gsmap-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.heatmap-layers.js +8 -10
- package/lib/map/client/mixins/map/mixin.heatmap-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.mapillary-layers.js +25 -40
- package/lib/map/client/mixins/map/mixin.mapillary-layers.js.map +1 -1
- package/lib/map/client/mixins/map/mixin.tiled-mesh-layers.js +5 -3
- 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 +5 -3
- package/lib/map/client/mixins/map/mixin.tiled-wind-layers.js.map +1 -1
- package/lib/map/client/mixins/mixin.activity.js +60 -68
- package/lib/map/client/mixins/mixin.activity.js.map +1 -1
- package/lib/map/client/mixins/mixin.feature-selection.js +8 -10
- package/lib/map/client/mixins/mixin.feature-selection.js.map +1 -1
- package/lib/map/client/mixins/mixin.feature-service.js +7 -5
- package/lib/map/client/mixins/mixin.feature-service.js.map +1 -1
- package/lib/map/client/mixins/mixin.weacast.js +6 -4
- package/lib/map/client/mixins/mixin.weacast.js.map +1 -1
- package/lib/map/client/pixi-utils.js +9 -0
- package/lib/map/client/pixi-utils.js.map +1 -1
- package/lib/map/client/utils.js +50 -0
- package/lib/map/client/utils.js.map +1 -1
- package/lib/map/common/wfs-utils.js +1 -1
- package/lib/map/common/wfs-utils.js.map +1 -1
- package/lib/map/common/wmts-utils.js +31 -7
- package/lib/map/common/wmts-utils.js.map +1 -1
- package/lib/test/client/core/account.js +100 -0
- package/lib/test/client/core/account.js.map +1 -0
- package/lib/test/client/core/api.js +400 -0
- package/lib/test/client/core/api.js.map +1 -0
- package/lib/test/client/core/collection.js +109 -0
- package/lib/test/client/core/collection.js.map +1 -0
- package/lib/test/client/core/index.js +90 -0
- package/lib/test/client/core/index.js.map +1 -0
- package/lib/test/client/core/layout.js +221 -0
- package/lib/test/client/core/layout.js.map +1 -0
- package/lib/test/client/core/runner.js +204 -0
- package/lib/test/client/core/runner.js.map +1 -0
- package/lib/test/client/core/screens.js +68 -0
- package/lib/test/client/core/screens.js.map +1 -0
- package/lib/test/client/core/utils.js +304 -0
- package/lib/test/client/core/utils.js.map +1 -0
- package/lib/test/client/index.js +20 -0
- package/lib/test/client/index.js.map +1 -0
- package/lib/test/client/map/catalog.js +191 -0
- package/lib/test/client/map/catalog.js.map +1 -0
- package/lib/test/client/map/controls.js +54 -0
- package/lib/test/client/map/controls.js.map +1 -0
- package/lib/test/client/map/index.js +30 -0
- package/lib/test/client/map/index.js.map +1 -0
- package/package.json +17 -9
- package/test.client.js +1 -0
- package/tests/core/test-log-2021-07-15.log +71 -0
- package/tests/core/test-log-2021-09-02.log +47 -0
- package/tests/map/test-log-%DATE%.logYYYY-07-DD +12 -0
- package/tests/map/test-log-%DATE%.logYYYY-09-DD +6 -0
- package/tests/map/test-log-2021-07-12.log +12 -0
- package/tests/map/test-log-2021-07-15.log +5 -0
- package/tests/map/test-log-2021-09-02.log +3 -0
- package/.nyc_output/11cd93d8-69cb-405c-98a3-d249ea35b6da.json +0 -1
- package/.nyc_output/2bece194-92f7-4971-a688-10604044a7fa.json +0 -1
- package/.nyc_output/5ddee33e-b658-4c8e-a247-54f575ac67e8.json +0 -1
- package/.nyc_output/78760ae4-555f-4d9c-a6a1-acf5e2f0fe45.json +0 -1
- package/.nyc_output/d0bb2559-084e-4c92-b9e6-29a9abd41f7c.json +0 -1
- package/.nyc_output/processinfo/0b8aa700-8daa-49ce-85e7-a8f8965d55f0.json +0 -1
- package/.nyc_output/processinfo/11cd93d8-69cb-405c-98a3-d249ea35b6da.json +0 -1
- package/.nyc_output/processinfo/20df4355-911a-4b16-a8ab-d3392e9f0a7f.json +0 -1
- package/.nyc_output/processinfo/257af0bb-96c3-465a-b5ef-a1df60078d5f.json +0 -1
- package/.nyc_output/processinfo/284aebfa-23fd-425f-9d72-e4b8904dc224.json +0 -1
- package/.nyc_output/processinfo/5cbee06e-be6e-468a-bd78-4793ee785fe4.json +0 -1
- package/.nyc_output/processinfo/5ddee33e-b658-4c8e-a247-54f575ac67e8.json +0 -1
- package/.nyc_output/processinfo/78760ae4-555f-4d9c-a6a1-acf5e2f0fe45.json +0 -1
- package/.nyc_output/processinfo/d0bb2559-084e-4c92-b9e6-29a9abd41f7c.json +0 -1
- package/lib/core/client/components/frame/KLabel.vue +0 -56
- package/lib/core/client/components/team/KTagsPane.vue +0 -35
- package/lib/map/client/leaflet/TiledMapillaryLayer.js +0 -137
- package/lib/map/client/leaflet/TiledMapillaryLayer.js.map +0 -1
- package/lib/map/client/mixins/mixin.time.js +0 -73
- package/lib/map/client/mixins/mixin.time.js.map +0 -1
- package/tests/core/account.test.js +0 -415
- package/tests/core/client.test.js.skip +0 -37
- package/tests/core/config/default.js +0 -97
- package/tests/core/config/email-templates/confirmInvitation/html.ejs +0 -18
- package/tests/core/config/email-templates/identityChange/html.ejs +0 -12
- package/tests/core/config/email-templates/newDevice/html.ejs +0 -7
- package/tests/core/config/email-templates/passwordChange/html.ejs +0 -5
- package/tests/core/config/email-templates/resendVerifySignup/html.ejs +0 -10
- package/tests/core/config/email-templates/resetPwd/html.ejs +0 -5
- package/tests/core/config/email-templates/sendResetPwd/html.ejs +0 -8
- package/tests/core/config/email-templates/verifySignup/html.ejs +0 -3
- package/tests/core/data/10k_most_common_passwords.txt +0 -10000
- package/tests/core/data/logo.png +0 -0
- package/tests/core/hooks.test.js +0 -175
- package/tests/core/index.test.js +0 -418
- package/tests/core/notifications.test.js +0 -465
- package/tests/core/storage.test.js +0 -134
- package/tests/core/team.test.js +0 -610
- package/tests/core/utils.js +0 -59
- package/tests/map/alerts.test.js +0 -554
- package/tests/map/config/default.js +0 -112
- package/tests/map/config/layers.json +0 -37
- package/tests/map/daptiles.test.js +0 -41
- package/tests/map/data/DescribeCoverage.xml +0 -55
- package/tests/map/data/GetCoverage.tif +0 -0
- package/tests/map/data/adsb.observations.json +0 -132
- package/tests/map/data/dataset.grb.das +0 -55
- package/tests/map/data/dataset.grb.dds +0 -17
- package/tests/map/data/dataset.grb.dods +0 -0
- package/tests/map/data/lat_lon_bounds.grb.dods +0 -0
- package/tests/map/data/subdataset.grb.dods +0 -0
- package/tests/map/data/vigicrues.observations.json +0 -47042
- package/tests/map/data/vigicrues.stations.json +0 -15422
- package/tests/map/data/zones.json +0 -1228
- package/tests/map/grid-sources.test.js +0 -304
- package/tests/map/hooks.test.js +0 -96
- package/tests/map/index.test.js +0 -333
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="chart-container" class="row">
|
|
3
|
+
<q-resize-observer @resize="onResized" />
|
|
4
|
+
<canvas class="col-12" ref="chart"></canvas>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import _ from 'lodash'
|
|
10
|
+
import chroma from 'chroma-js'
|
|
11
|
+
import { Chart } from 'chart.js'
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
name: 'k-chart',
|
|
15
|
+
props: {
|
|
16
|
+
config: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true,
|
|
19
|
+
validator: (value) => {
|
|
20
|
+
return _.has(value, 'type') && _.has(value, 'data') && _.has(value, 'options')
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
watch: {
|
|
25
|
+
config: {
|
|
26
|
+
async handler () {
|
|
27
|
+
if (this.chart.config.type !== this.config.type) {
|
|
28
|
+
// Create a new chart
|
|
29
|
+
this.chart.destroy()
|
|
30
|
+
const config = _.cloneDeep(this.config)
|
|
31
|
+
this.colorize(config.data.datasets)
|
|
32
|
+
this.chart = new Chart(this.$refs.chart.getContext('2d'), config)
|
|
33
|
+
} else {
|
|
34
|
+
// Update the existing chart
|
|
35
|
+
this.chart.data.labels = _.cloneDeep(this.config.data.labels)
|
|
36
|
+
this.chart.data.datasets = _.cloneDeep(this.config.data.datasets)
|
|
37
|
+
this.colorize(this.chart.data.datasets)
|
|
38
|
+
this.chart.options = _.cloneDeep(this.config.options)
|
|
39
|
+
this.chart.update()
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
colorize (datasets) {
|
|
46
|
+
_.forEach(datasets, dataset => {
|
|
47
|
+
if (!dataset.backgroundColor && dataset.colorScale) {
|
|
48
|
+
dataset.backgroundColor = chroma.scale(dataset.colorScale).colors(dataset.data.length)
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
},
|
|
52
|
+
onResized (size) {
|
|
53
|
+
if (!this.chart) this.chart = new Chart(this.$refs.chart.getContext('2d'), this.config)
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
beforeDestroy () {
|
|
57
|
+
if (this.chart) this.chart.destroy()
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="row justify-start items-center q-gutter-x-sm">
|
|
3
|
+
<template v-for="(chip,index) in chips">
|
|
4
|
+
<q-chip
|
|
5
|
+
v-if="getValue(chip)"
|
|
6
|
+
:key="getValue(chip)"
|
|
7
|
+
:color="getColor(chip)"
|
|
8
|
+
text-color="white"
|
|
9
|
+
dense
|
|
10
|
+
outline
|
|
11
|
+
square>
|
|
12
|
+
<q-icon v-if="hasIcon(chip)" :name="getIcon(chip)" class="q-mr-xs" />
|
|
13
|
+
<span :id="getValue(chip)" class="ellipsis">{{ getValue(chip) }}
|
|
14
|
+
<q-tooltip v-if="tooltips[index]">
|
|
15
|
+
{{ getValue(chip) }}
|
|
16
|
+
</q-tooltip>
|
|
17
|
+
</span>
|
|
18
|
+
</q-chip>
|
|
19
|
+
</template>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
import _ from 'lodash'
|
|
25
|
+
import { getIconName } from '../../utils'
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
name: 'k-chips-pane',
|
|
29
|
+
props: {
|
|
30
|
+
chips: {
|
|
31
|
+
type: Array,
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
valuePath: {
|
|
35
|
+
type: [String, Array],
|
|
36
|
+
default: 'value'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
data () {
|
|
40
|
+
return {
|
|
41
|
+
tooltips: _.fill(Array(this.chips.length), false)
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
getValue (chip) {
|
|
46
|
+
if (typeof this.valuePath === 'string') return _.get(chip, this.valuePath, this.$t('UNAMED'))
|
|
47
|
+
for (let i = 0; i < this.valuePath.length; i++) {
|
|
48
|
+
const path = this.valuePath[i]
|
|
49
|
+
if (_.has(chip, path)) return _.get(chip, path)
|
|
50
|
+
}
|
|
51
|
+
return this.$t('UNAMED')
|
|
52
|
+
},
|
|
53
|
+
getColor (chip) {
|
|
54
|
+
const color = _.get(chip, 'icon.color')
|
|
55
|
+
return _.isEmpty(color) ? 'black' : color
|
|
56
|
+
},
|
|
57
|
+
hasIcon (chip) {
|
|
58
|
+
const icon = chip.icon
|
|
59
|
+
if (!icon) return false
|
|
60
|
+
if (typeof icon === 'object') return !_.isEmpty(icon.name)
|
|
61
|
+
return true
|
|
62
|
+
},
|
|
63
|
+
getIcon (chip) {
|
|
64
|
+
return getIconName(chip)
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
beforeCreate () {
|
|
68
|
+
this.$options.components['k-panel'] = this.$load('frame/KPanel')
|
|
69
|
+
},
|
|
70
|
+
mounted () {
|
|
71
|
+
this.$nextTick(() => {
|
|
72
|
+
for (let i = 0; i < this.chips.length; i++) {
|
|
73
|
+
const chip = this.chips[i]
|
|
74
|
+
const chipElement = document.getElementById(this.getValue(chip))
|
|
75
|
+
if (chipElement && chipElement.offsetWidth < chipElement.scrollWidth) this.$set(this.tooltips, i, true)
|
|
76
|
+
}
|
|
77
|
+
})
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
</script>
|
|
@@ -5,36 +5,48 @@
|
|
|
5
5
|
:maximized="maximized"
|
|
6
6
|
@show="$emit('opened')"
|
|
7
7
|
@hide="$emit('closed')">
|
|
8
|
-
<q-card
|
|
8
|
+
<q-card
|
|
9
|
+
v-bind:class="{
|
|
10
|
+
'column full-height': maximized,
|
|
11
|
+
'q-pa-sm': $q.screen.gt.xs,
|
|
12
|
+
'q-ps-xs': $q.screen.lt.sm
|
|
13
|
+
}"
|
|
14
|
+
:style="computedStyle">
|
|
9
15
|
<!--
|
|
10
|
-
|
|
16
|
+
Header section
|
|
11
17
|
-->
|
|
12
|
-
<q-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<q-space />
|
|
17
|
-
<k-panel id="modal-toolbar" :content="toolbarContent" />
|
|
18
|
-
</q-toolbar>
|
|
18
|
+
<div class="q-pa-md row justify-between items-center">
|
|
19
|
+
<span class="ellipsis text-h6" v-html="title" />
|
|
20
|
+
<k-panel id="modal-toolbar" :content="toolbar" />
|
|
21
|
+
</div>
|
|
19
22
|
<!--
|
|
20
23
|
Content section
|
|
21
24
|
-->
|
|
22
|
-
<q-card-section>
|
|
25
|
+
<q-card-section class="col">
|
|
23
26
|
<slot name="modal-content" />
|
|
24
27
|
</q-card-section>
|
|
25
28
|
<!--
|
|
26
29
|
Buttons section
|
|
27
30
|
-->
|
|
28
31
|
<q-card-actions v-if="buttons" align="right">
|
|
29
|
-
<k-panel
|
|
32
|
+
<k-panel
|
|
33
|
+
id="modal-buttons"
|
|
34
|
+
:content="buttons"
|
|
35
|
+
:action-renderer="'form-button'"
|
|
36
|
+
v-bind:class="{ 'q-gutter-x-md' : $q.screen.gt.xs, 'q-gutter-x-sm': $q.screen.lt.sm }" />
|
|
30
37
|
</q-card-actions>
|
|
31
38
|
</q-card>
|
|
32
39
|
</q-dialog>
|
|
33
40
|
</template>
|
|
34
41
|
|
|
35
42
|
<script>
|
|
43
|
+
import KPanel from './KPanel.vue'
|
|
44
|
+
|
|
36
45
|
export default {
|
|
37
46
|
name: 'k-modal',
|
|
47
|
+
components: {
|
|
48
|
+
KPanel
|
|
49
|
+
},
|
|
38
50
|
props: {
|
|
39
51
|
title: {
|
|
40
52
|
type: String,
|
|
@@ -52,41 +64,19 @@ export default {
|
|
|
52
64
|
type: Boolean,
|
|
53
65
|
default: false
|
|
54
66
|
},
|
|
55
|
-
contentClass: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: 'q-pa-xs'
|
|
58
|
-
},
|
|
59
|
-
contentStyle: {
|
|
60
|
-
type: String,
|
|
61
|
-
default: () => {
|
|
62
|
-
if (window.innerWidth < 599) {
|
|
63
|
-
return 'min-width: 100vw; max-height: 90vh'
|
|
64
|
-
}
|
|
65
|
-
if (window.innerWidth < 1023) {
|
|
66
|
-
return 'min-width: 80vw; max-height: 90vh'
|
|
67
|
-
}
|
|
68
|
-
if (window.innerWidth < 1439) {
|
|
69
|
-
return 'min-width: 60vw; max-height: 90vh'
|
|
70
|
-
}
|
|
71
|
-
if (window.innerWidth < 1919) {
|
|
72
|
-
return 'min-width: 50vw; max-height: 90vh'
|
|
73
|
-
}
|
|
74
|
-
return 'min-width: 40vw; max-height: 90vh'
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
67
|
value: {
|
|
78
68
|
type: Boolean,
|
|
79
69
|
default: false
|
|
80
70
|
}
|
|
81
71
|
},
|
|
82
72
|
computed: {
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return
|
|
73
|
+
computedStyle () {
|
|
74
|
+
if (this.maximized) return ''
|
|
75
|
+
if (this.$q.screen.lt.sm) return 'min-width: 100vw; max-height: 90vh'
|
|
76
|
+
if (this.$q.screen.lt.md) return 'min-width: 90vw; max-height: 90vh'
|
|
77
|
+
if (this.$q.screen.lt.lg) return 'min-width: 80vw; max-height: 90vh'
|
|
78
|
+
if (this.$q.screen.lt.xl) return 'min-width: 70vw; max-height: 90vh'
|
|
79
|
+
return 'min-width: 60vw; max-height: 90vh'
|
|
90
80
|
}
|
|
91
81
|
},
|
|
92
82
|
watch: {
|
|
@@ -108,10 +98,6 @@ export default {
|
|
|
108
98
|
this.$emit('input', false)
|
|
109
99
|
}
|
|
110
100
|
},
|
|
111
|
-
created () {
|
|
112
|
-
// load the required components
|
|
113
|
-
this.$options.components['k-panel'] = this.$load('frame/KPanel')
|
|
114
|
-
},
|
|
115
101
|
mounted () {
|
|
116
102
|
if (this.value) this.$refs.modal.show()
|
|
117
103
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<k-content class="bg-white"
|
|
3
3
|
v-bind="$props"
|
|
4
4
|
v-bind:class="{
|
|
5
|
-
'row justify-center': direction === 'horizontal',
|
|
5
|
+
'row items-center justify-center no-wrap': direction === 'horizontal',
|
|
6
6
|
'column': direction === 'vertical'
|
|
7
7
|
}"
|
|
8
8
|
@triggered="$emit('triggered', arguments)" />
|
|
@@ -33,10 +33,14 @@
|
|
|
33
33
|
<script>
|
|
34
34
|
import _ from 'lodash'
|
|
35
35
|
import KAction from './KAction.vue'
|
|
36
|
+
import KPanel from './KPanel.vue'
|
|
36
37
|
|
|
37
38
|
export default {
|
|
38
|
-
components: {
|
|
39
|
-
|
|
39
|
+
components: {
|
|
40
|
+
KAction,
|
|
41
|
+
KPanel
|
|
42
|
+
},
|
|
43
|
+
name: 'k-popup-action',
|
|
40
44
|
props: {
|
|
41
45
|
id: {
|
|
42
46
|
type: String,
|
|
@@ -110,11 +114,6 @@ export default {
|
|
|
110
114
|
hasContent () {
|
|
111
115
|
return !_.isEmpty(this.content)
|
|
112
116
|
}
|
|
113
|
-
},
|
|
114
|
-
created () {
|
|
115
|
-
// load the required components
|
|
116
|
-
this.$options.components['k-action'] = this.$load('frame/KAction')
|
|
117
|
-
this.$options.components['k-panel'] = this.$load('frame/KPanel')
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
</script>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="q-pa-xs">
|
|
3
|
+
<div :style="`min-width: ${width}; height: ${height}; border-radius: ${borderRadius}; background-color: ${color};`" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import { colors } from 'quasar'
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
name: 'k-spot',
|
|
12
|
+
props: {
|
|
13
|
+
color: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: colors.getBrand('primary')
|
|
16
|
+
},
|
|
17
|
+
width: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: '15px'
|
|
20
|
+
},
|
|
21
|
+
height: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: '15px'
|
|
24
|
+
},
|
|
25
|
+
borderRadius: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: '10px'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-bind:class="{
|
|
4
|
+
'q-pl-xs q-pr-xs': $q.screen.lt.sm,
|
|
5
|
+
'q-pl-sm q-pr-sm': $q.screen.gt.xs,
|
|
6
|
+
'column items-center content-center q-gutter-y-sm': direction === 'vertical',
|
|
7
|
+
'row items-center no-wrap q-gutter-x-sm': direction === 'horizontal'
|
|
8
|
+
}">
|
|
9
|
+
<div>
|
|
10
|
+
<q-icon v-if="showIcon" :size="iconSize" :name="icon" />
|
|
11
|
+
<q-tooltip v-if="!showText">
|
|
12
|
+
{{ translatedText }}
|
|
13
|
+
</q-tooltip>
|
|
14
|
+
</div>
|
|
15
|
+
<div v-if="showText" class="ellipsis-2-lines" :style="`font-size: ${textSize};`">
|
|
16
|
+
{{ translatedText }}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import _ from 'lodash'
|
|
23
|
+
export default {
|
|
24
|
+
name: 'k-stamp',
|
|
25
|
+
props: {
|
|
26
|
+
icon: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: undefined
|
|
29
|
+
},
|
|
30
|
+
iconSize: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: '2rem'
|
|
33
|
+
},
|
|
34
|
+
text: {
|
|
35
|
+
type: String,
|
|
36
|
+
defatult: ''
|
|
37
|
+
},
|
|
38
|
+
textSize: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: '1rem'
|
|
41
|
+
},
|
|
42
|
+
direction: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: 'vertical',
|
|
45
|
+
validator: (value) => {
|
|
46
|
+
return ['horizontal', 'vertical'].includes(value)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
computed: {
|
|
51
|
+
translatedText () {
|
|
52
|
+
return this.$i18n.i18next.exists(this.text) ? this.$t(this.text) : this.text
|
|
53
|
+
},
|
|
54
|
+
showIcon () {
|
|
55
|
+
return !_.isEmpty(this.icon)
|
|
56
|
+
},
|
|
57
|
+
showText () {
|
|
58
|
+
return this.direction === 'vertical' || _.isEmpty(this.icon) || this.$q.screen.gt.xs
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
@@ -3,28 +3,83 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.KTextArea = exports.KScreen = exports.KModal = exports.KBlock = undefined;
|
|
6
|
+
exports.KTextArea = exports.KStamp = exports.KSpot = exports.KScreen = exports.KPopupAction = exports.KPanel = exports.KPageSticky = exports.KOpener = exports.KModal = exports.KContent = exports.KChipsPane = exports.KChart = exports.KBlock = exports.KAvatar = exports.KAction = undefined;
|
|
7
|
+
|
|
8
|
+
var _KAction = require('./KAction.vue');
|
|
9
|
+
|
|
10
|
+
var _KAction2 = _interopRequireDefault(_KAction);
|
|
11
|
+
|
|
12
|
+
var _KAvatar = require('./KAvatar.vue');
|
|
13
|
+
|
|
14
|
+
var _KAvatar2 = _interopRequireDefault(_KAvatar);
|
|
7
15
|
|
|
8
16
|
var _KBlock = require('./KBlock.vue');
|
|
9
17
|
|
|
10
18
|
var _KBlock2 = _interopRequireDefault(_KBlock);
|
|
11
19
|
|
|
20
|
+
var _KChart = require('./KChart.vue');
|
|
21
|
+
|
|
22
|
+
var _KChart2 = _interopRequireDefault(_KChart);
|
|
23
|
+
|
|
24
|
+
var _KChipsPane = require('./KChipsPane.vue');
|
|
25
|
+
|
|
26
|
+
var _KChipsPane2 = _interopRequireDefault(_KChipsPane);
|
|
27
|
+
|
|
28
|
+
var _KContent = require('./KContent.vue');
|
|
29
|
+
|
|
30
|
+
var _KContent2 = _interopRequireDefault(_KContent);
|
|
31
|
+
|
|
12
32
|
var _KModal = require('./KModal.vue');
|
|
13
33
|
|
|
14
34
|
var _KModal2 = _interopRequireDefault(_KModal);
|
|
15
35
|
|
|
36
|
+
var _KOpener = require('./KOpener.vue');
|
|
37
|
+
|
|
38
|
+
var _KOpener2 = _interopRequireDefault(_KOpener);
|
|
39
|
+
|
|
40
|
+
var _KPageSticky = require('./KPageSticky.vue');
|
|
41
|
+
|
|
42
|
+
var _KPageSticky2 = _interopRequireDefault(_KPageSticky);
|
|
43
|
+
|
|
44
|
+
var _KPanel = require('./KPanel.vue');
|
|
45
|
+
|
|
46
|
+
var _KPanel2 = _interopRequireDefault(_KPanel);
|
|
47
|
+
|
|
48
|
+
var _KPopupAction = require('./KPopupAction.vue');
|
|
49
|
+
|
|
50
|
+
var _KPopupAction2 = _interopRequireDefault(_KPopupAction);
|
|
51
|
+
|
|
16
52
|
var _KScreen = require('./KScreen.vue');
|
|
17
53
|
|
|
18
54
|
var _KScreen2 = _interopRequireDefault(_KScreen);
|
|
19
55
|
|
|
56
|
+
var _KSpot = require('./KSpot.vue');
|
|
57
|
+
|
|
58
|
+
var _KSpot2 = _interopRequireDefault(_KSpot);
|
|
59
|
+
|
|
60
|
+
var _KStamp = require('./KStamp.vue');
|
|
61
|
+
|
|
62
|
+
var _KStamp2 = _interopRequireDefault(_KStamp);
|
|
63
|
+
|
|
20
64
|
var _KTextArea = require('./KTextArea.vue');
|
|
21
65
|
|
|
22
66
|
var _KTextArea2 = _interopRequireDefault(_KTextArea);
|
|
23
67
|
|
|
24
68
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
69
|
|
|
70
|
+
exports.KAction = _KAction2.default;
|
|
71
|
+
exports.KAvatar = _KAvatar2.default;
|
|
26
72
|
exports.KBlock = _KBlock2.default;
|
|
73
|
+
exports.KChart = _KChart2.default;
|
|
74
|
+
exports.KChipsPane = _KChipsPane2.default;
|
|
75
|
+
exports.KContent = _KContent2.default;
|
|
27
76
|
exports.KModal = _KModal2.default;
|
|
77
|
+
exports.KOpener = _KOpener2.default;
|
|
78
|
+
exports.KPageSticky = _KPageSticky2.default;
|
|
79
|
+
exports.KPanel = _KPanel2.default;
|
|
80
|
+
exports.KPopupAction = _KPopupAction2.default;
|
|
28
81
|
exports.KScreen = _KScreen2.default;
|
|
82
|
+
exports.KSpot = _KSpot2.default;
|
|
83
|
+
exports.KStamp = _KStamp2.default;
|
|
29
84
|
exports.KTextArea = _KTextArea2.default;
|
|
30
85
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../core/client/components/frame/index.js"],"names":["KBlock","KModal","KScreen","KTextArea"],"mappings":";;;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;;;;;QAGEA,M,GAAAA,gB;QACAC,M,GAAAA,gB;QACAC,O,GAAAA,iB;QACAC,S,GAAAA,mB","file":"index.js","sourcesContent":["import KBlock from './KBlock.vue'\r\nimport KModal from './KModal.vue'\r\nimport KScreen from './KScreen.vue'\r\nimport KTextArea from './KTextArea.vue'\r\n\r\nexport {\r\n KBlock,\r\n KModal,\r\n KScreen,\r\n KTextArea\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../../../core/client/components/frame/index.js"],"names":["KAction","KAvatar","KBlock","KChart","KChipsPane","KContent","KModal","KOpener","KPageSticky","KPanel","KPopupAction","KScreen","KSpot","KStamp","KTextArea"],"mappings":";;;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;QAGEA,O,GAAAA,iB;QACAC,O,GAAAA,iB;QACAC,M,GAAAA,gB;QACAC,M,GAAAA,gB;QACAC,U,GAAAA,oB;QACAC,Q,GAAAA,kB;QACAC,M,GAAAA,gB;QACAC,O,GAAAA,iB;QACAC,W,GAAAA,qB;QACAC,M,GAAAA,gB;QACAC,Y,GAAAA,sB;QACAC,O,GAAAA,iB;QACAC,K,GAAAA,e;QACAC,M,GAAAA,gB;QACAC,S,GAAAA,mB","file":"index.js","sourcesContent":["import KAction from './KAction.vue'\r\nimport KAvatar from './KAvatar.vue'\r\nimport KBlock from './KBlock.vue'\r\nimport KChart from './KChart.vue'\r\nimport KChipsPane from './KChipsPane.vue'\r\nimport KContent from './KContent.vue'\r\nimport KModal from './KModal.vue'\r\nimport KOpener from './KOpener.vue'\r\nimport KPageSticky from './KPageSticky.vue'\r\nimport KPanel from './KPanel.vue'\r\nimport KPopupAction from './KPopupAction.vue'\r\nimport KScreen from './KScreen.vue'\r\nimport KSpot from './KSpot.vue'\r\nimport KStamp from './KStamp.vue'\r\nimport KTextArea from './KTextArea.vue'\r\n\r\nexport {\r\n KAction,\r\n KAvatar,\r\n KBlock,\r\n KChart,\r\n KChipsPane,\r\n KContent,\r\n KModal,\r\n KOpener,\r\n KPageSticky,\r\n KPanel,\r\n KPopupAction,\r\n KScreen,\r\n KSpot,\r\n KStamp,\r\n KTextArea\r\n}\r\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<k-modal ref="modal" :
|
|
2
|
+
<k-modal ref="modal" :buttons="getButtons()">
|
|
3
3
|
<div slot="modal-content">
|
|
4
4
|
<div class="column q-gutter-sm">
|
|
5
5
|
<div class="row justify-between items-center q-gutter-sm">
|
|
@@ -19,14 +19,22 @@ export default {
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
methods: {
|
|
22
|
-
getToolbar () {
|
|
23
|
-
return [
|
|
24
|
-
{ id: 'close-action', label: this.$t('KColorChooser.CLOSE_ACTION'), icon: 'las la-times', handler: () => this.doClose() }
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
22
|
getButtons () {
|
|
28
23
|
return [
|
|
29
|
-
{
|
|
24
|
+
{
|
|
25
|
+
id: 'cancel-action',
|
|
26
|
+
label: 'KColorChooser.CANCEL_BUTTON',
|
|
27
|
+
icon: 'las la-times',
|
|
28
|
+
renderer: 'form-button',
|
|
29
|
+
outline: true,
|
|
30
|
+
handler: () => this.doClose()
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 'done-button',
|
|
34
|
+
label: 'KColorChooser.DONE_BUTTON',
|
|
35
|
+
renderer: 'form-button',
|
|
36
|
+
handler: (event) => this.doDone(event)
|
|
37
|
+
}
|
|
30
38
|
]
|
|
31
39
|
},
|
|
32
40
|
open (defaultColor) {
|
|
@@ -45,7 +53,7 @@ export default {
|
|
|
45
53
|
this.$refs.modal.close()
|
|
46
54
|
}
|
|
47
55
|
},
|
|
48
|
-
|
|
56
|
+
beforeCreate () {
|
|
49
57
|
// Load the required components
|
|
50
58
|
this.$options.components['k-modal'] = this.$load('frame/KModal')
|
|
51
59
|
this.$options.components['k-palette'] = this.$load('input/KPalette')
|
|
@@ -149,7 +149,8 @@ export default {
|
|
|
149
149
|
},
|
|
150
150
|
getButtons () {
|
|
151
151
|
return [
|
|
152
|
-
{ id: '
|
|
152
|
+
{ id: 'cancel-button', label: 'CANCEL', outline: true, renderer: 'form-button', handler: () => this.doClose() },
|
|
153
|
+
{ id: 'choose-button', label: 'KIconChooser.DONE_BUTTON', renderer: 'form-button', handler: (event) => this.doDone(event) }
|
|
153
154
|
]
|
|
154
155
|
},
|
|
155
156
|
open (defaultIcon) {
|
|
@@ -189,7 +189,13 @@ export default {
|
|
|
189
189
|
this.$events.$emit('error', { message: error })
|
|
190
190
|
},
|
|
191
191
|
storageService () {
|
|
192
|
-
|
|
192
|
+
let service = _.get(this.options, 'service', 'storage')
|
|
193
|
+
// Inject useful properties such as current object ID, etc.
|
|
194
|
+
const environment = { id: this.resource }
|
|
195
|
+
// The template generates the final storage service path
|
|
196
|
+
service = _.template(service)(environment)
|
|
197
|
+
|
|
198
|
+
return this.$api.getService(service)
|
|
193
199
|
},
|
|
194
200
|
dropZone () {
|
|
195
201
|
// Access vue drop zone
|
|
@@ -220,10 +226,13 @@ export default {
|
|
|
220
226
|
// Uploading can require a long time
|
|
221
227
|
timeout: 60 * 60 * 1000 // 1h should be sufficient since we also have size limits
|
|
222
228
|
}, options, dictionary)
|
|
223
|
-
//
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
229
|
+
// We use a function as the service path might be templated by the underlying resource
|
|
230
|
+
this.dropZoneOptions.url = () => {
|
|
231
|
+
// Depending on the transport the path starts or not with '/'
|
|
232
|
+
let servicePath = this.storageService().path
|
|
233
|
+
if (!servicePath.startsWith('/')) servicePath = '/' + servicePath
|
|
234
|
+
return this.$api.getBaseUrl() + servicePath
|
|
235
|
+
}
|
|
227
236
|
// This is used to ensure the request will be authenticated by Feathers
|
|
228
237
|
this.dropZoneOptions.headers = { Authorization: accessToken }
|
|
229
238
|
},
|
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
<!--
|
|
20
20
|
About window
|
|
21
21
|
-->
|
|
22
|
-
<k-modal
|
|
22
|
+
<k-modal
|
|
23
|
+
:title="$t('KAbout.TITLE')"
|
|
24
|
+
id="about"
|
|
25
|
+
ref="about"
|
|
26
|
+
:buttons="getButtons()">
|
|
23
27
|
<div slot="modal-content">
|
|
24
28
|
<div class="column justify-center">
|
|
25
29
|
<!-- Banner -->
|
|
@@ -94,8 +98,10 @@ export default {
|
|
|
94
98
|
this.$refs.about.open()
|
|
95
99
|
this.$emit('triggered')
|
|
96
100
|
},
|
|
97
|
-
|
|
98
|
-
|
|
101
|
+
getButtons () {
|
|
102
|
+
return [{
|
|
103
|
+
id: 'close-action', label: 'CLOSE', renderer: 'form-button', handler: () => this.$refs.about.close()
|
|
104
|
+
}]
|
|
99
105
|
}
|
|
100
106
|
},
|
|
101
107
|
created () {
|