ng-kinintel 0.0.317
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/README.md +24 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +11 -0
- package/src/lib/components/alert-groups/alert-groups.component.html +140 -0
- package/src/lib/components/alert-groups/alert-groups.component.sass +4 -0
- package/src/lib/components/alert-groups/alert-groups.component.spec.ts +25 -0
- package/src/lib/components/alert-groups/alert-groups.component.ts +86 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.html +91 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.sass +2 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.spec.ts +25 -0
- package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.ts +78 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.html +2006 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.sass +106 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/configure-item.component.ts +967 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.html +81 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.sass +0 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.ts +48 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.html +142 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.sass +0 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.ts +117 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.html +224 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.sass +0 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.ts +149 -0
- package/src/lib/components/dashboard-editor/configure-item/vis-network-options.json +135 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.html +205 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.sass +247 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/dashboard-editor.component.ts +645 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.html +1 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.sass +0 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.ts +16 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.html +167 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.sass +0 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.spec.ts +23 -0
- package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.ts +47 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.html +486 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.sass +137 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/item-component/item-component.component.ts +1381 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.html +48 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.sass +3 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.spec.ts +25 -0
- package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.ts +111 -0
- package/src/lib/components/dashboards/dashboards.component.html +175 -0
- package/src/lib/components/dashboards/dashboards.component.sass +64 -0
- package/src/lib/components/dashboards/dashboards.component.spec.ts +25 -0
- package/src/lib/components/dashboards/dashboards.component.ts +176 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.html +138 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.sass +284 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.spec.ts +25 -0
- package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.ts +462 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.html +35 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.sass +0 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.spec.ts +23 -0
- package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.ts +21 -0
- package/src/lib/components/data-explorer/data-explorer.component.html +326 -0
- package/src/lib/components/data-explorer/data-explorer.component.sass +96 -0
- package/src/lib/components/data-explorer/data-explorer.component.spec.ts +25 -0
- package/src/lib/components/data-explorer/data-explorer.component.ts +267 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.html +69 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.sass +0 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.spec.ts +25 -0
- package/src/lib/components/data-explorer/export-data/export-data.component.ts +56 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.html +195 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.sass +0 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.spec.ts +23 -0
- package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.ts +79 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.html +375 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.sass +21 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.spec.ts +25 -0
- package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.ts +197 -0
- package/src/lib/components/data-picker/data-picker.component.html +127 -0
- package/src/lib/components/data-picker/data-picker.component.sass +0 -0
- package/src/lib/components/data-picker/data-picker.component.spec.ts +25 -0
- package/src/lib/components/data-picker/data-picker.component.ts +90 -0
- package/src/lib/components/data-search/data-search.component.html +1 -0
- package/src/lib/components/data-search/data-search.component.sass +0 -0
- package/src/lib/components/data-search/data-search.component.spec.ts +23 -0
- package/src/lib/components/data-search/data-search.component.ts +10 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.html +53 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.sass +0 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.spec.ts +23 -0
- package/src/lib/components/data-sharing-invite/data-sharing-invite.component.ts +56 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.html +25 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.sass +0 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.spec.ts +25 -0
- package/src/lib/components/dataset/create-dataset/create-dataset.component.ts +44 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.html +28 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.ts +22 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.html +196 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.sass +17 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.ts +422 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.html +30 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.sass +47 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.ts +78 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.html +86 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.ts +49 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.html +68 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.sass +15 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.ts +65 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor-popup.html +19 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.html +609 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.sass +267 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-editor.component.ts +1228 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.html +309 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.sass +41 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.ts +215 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.html +33 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.sass +3 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.ts +20 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.html +52 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.sass +14 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.ts +58 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.html +47 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.sass +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.ts +49 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.html +49 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.sass +2 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.ts +39 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.html +195 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.sass +14 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.ts +82 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.html +78 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.sass +16 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.ts +32 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.html +24 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.sass +22 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.ts +64 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.html +177 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.sass +80 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.ts +113 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.html +32 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.ts +20 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.html +37 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.ts +19 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.html +69 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.ts +58 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.html +195 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.sass +0 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.ts +128 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.html +34 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.sass +3 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.spec.ts +23 -0
- package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.ts +21 -0
- package/src/lib/components/dataset/dataset.component.html +317 -0
- package/src/lib/components/dataset/dataset.component.sass +73 -0
- package/src/lib/components/dataset/dataset.component.spec.ts +25 -0
- package/src/lib/components/dataset/dataset.component.ts +320 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.html +133 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.sass +51 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.ts +140 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.html +257 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.sass +0 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/api-access/api-access.component.ts +148 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.html +430 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.sass +162 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.spec.ts +25 -0
- package/src/lib/components/datasource/create-datasource/create-datasource.component.ts +789 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.html +119 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.sass +8 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.spec.ts +25 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-data.component.ts +163 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.html +239 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.sass +0 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.ts +182 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.html +167 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.sass +87 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.spec.ts +23 -0
- package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.ts +164 -0
- package/src/lib/components/datasource/datasource.component.html +165 -0
- package/src/lib/components/datasource/datasource.component.sass +4 -0
- package/src/lib/components/datasource/datasource.component.spec.ts +25 -0
- package/src/lib/components/datasource/datasource.component.ts +174 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.html +558 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.sass +84 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.spec.ts +25 -0
- package/src/lib/components/datasource/document-datasource/document-datasource.component.ts +351 -0
- package/src/lib/components/export-project/export-project.component.html +280 -0
- package/src/lib/components/export-project/export-project.component.sass +0 -0
- package/src/lib/components/export-project/export-project.component.spec.ts +23 -0
- package/src/lib/components/export-project/export-project.component.ts +29 -0
- package/src/lib/components/feeds/feed/feed.component.html +144 -0
- package/src/lib/components/feeds/feed/feed.component.sass +0 -0
- package/src/lib/components/feeds/feed/feed.component.spec.ts +25 -0
- package/src/lib/components/feeds/feed/feed.component.ts +102 -0
- package/src/lib/components/feeds/feeds.component.html +210 -0
- package/src/lib/components/feeds/feeds.component.sass +4 -0
- package/src/lib/components/feeds/feeds.component.spec.ts +25 -0
- package/src/lib/components/feeds/feeds.component.ts +163 -0
- package/src/lib/components/job-tasks/job-tasks.component.html +22 -0
- package/src/lib/components/job-tasks/job-tasks.component.sass +0 -0
- package/src/lib/components/job-tasks/job-tasks.component.spec.ts +25 -0
- package/src/lib/components/job-tasks/job-tasks.component.ts +19 -0
- package/src/lib/components/marketplace/marketplace.component.html +143 -0
- package/src/lib/components/marketplace/marketplace.component.sass +0 -0
- package/src/lib/components/marketplace/marketplace.component.spec.ts +23 -0
- package/src/lib/components/marketplace/marketplace.component.ts +73 -0
- package/src/lib/components/metadata/metadata.component.html +62 -0
- package/src/lib/components/metadata/metadata.component.sass +0 -0
- package/src/lib/components/metadata/metadata.component.spec.ts +25 -0
- package/src/lib/components/metadata/metadata.component.ts +67 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.html +82 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.sass +21 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.spec.ts +25 -0
- package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.ts +123 -0
- package/src/lib/components/notification-groups/notification-groups.component.html +125 -0
- package/src/lib/components/notification-groups/notification-groups.component.sass +4 -0
- package/src/lib/components/notification-groups/notification-groups.component.spec.ts +25 -0
- package/src/lib/components/notification-groups/notification-groups.component.ts +98 -0
- package/src/lib/components/project-picker/project-picker.component.html +167 -0
- package/src/lib/components/project-picker/project-picker.component.sass +1 -0
- package/src/lib/components/project-picker/project-picker.component.spec.ts +25 -0
- package/src/lib/components/project-picker/project-picker.component.ts +138 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.html +120 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.sass +0 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.spec.ts +23 -0
- package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.ts +161 -0
- package/src/lib/components/project-settings/project-settings.component.html +353 -0
- package/src/lib/components/project-settings/project-settings.component.sass +0 -0
- package/src/lib/components/project-settings/project-settings.component.spec.ts +23 -0
- package/src/lib/components/project-settings/project-settings.component.ts +178 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.html +96 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.sass +0 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.spec.ts +23 -0
- package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.ts +48 -0
- package/src/lib/components/query-caching/query-caching.component.html +122 -0
- package/src/lib/components/query-caching/query-caching.component.sass +0 -0
- package/src/lib/components/query-caching/query-caching.component.spec.ts +23 -0
- package/src/lib/components/query-caching/query-caching.component.ts +184 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.html +115 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.sass +0 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.spec.ts +23 -0
- package/src/lib/components/shared-with-me/shared-with-me.component.ts +123 -0
- package/src/lib/components/snapshots/snapshots.component.html +408 -0
- package/src/lib/components/snapshots/snapshots.component.sass +4 -0
- package/src/lib/components/snapshots/snapshots.component.spec.ts +25 -0
- package/src/lib/components/snapshots/snapshots.component.ts +286 -0
- package/src/lib/components/tag-picker/tag-picker.component.html +155 -0
- package/src/lib/components/tag-picker/tag-picker.component.sass +2 -0
- package/src/lib/components/tag-picker/tag-picker.component.spec.ts +25 -0
- package/src/lib/components/tag-picker/tag-picker.component.ts +82 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.html +93 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.sass +7 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.spec.ts +25 -0
- package/src/lib/components/task-time-periods/task-time-periods.component.ts +50 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.html +111 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.sass +0 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.spec.ts +25 -0
- package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.ts +38 -0
- package/src/lib/guards/dashboard-changes.guard.spec.ts +16 -0
- package/src/lib/guards/dashboard-changes.guard.ts +27 -0
- package/src/lib/ng-kinintel.module.ts +272 -0
- package/src/lib/objects/action-event.spec.ts +7 -0
- package/src/lib/objects/action-event.ts +27 -0
- package/src/lib/services/alert.service.spec.ts +16 -0
- package/src/lib/services/alert.service.ts +49 -0
- package/src/lib/services/dashboard.service.spec.ts +16 -0
- package/src/lib/services/dashboard.service.ts +79 -0
- package/src/lib/services/data-processor.service.spec.ts +16 -0
- package/src/lib/services/data-processor.service.ts +61 -0
- package/src/lib/services/data-search.service.spec.ts +16 -0
- package/src/lib/services/data-search.service.ts +31 -0
- package/src/lib/services/dataset.service.spec.ts +16 -0
- package/src/lib/services/dataset.service.ts +234 -0
- package/src/lib/services/datasource.service.spec.ts +16 -0
- package/src/lib/services/datasource.service.ts +116 -0
- package/src/lib/services/external.service.spec.ts +16 -0
- package/src/lib/services/external.service.ts +29 -0
- package/src/lib/services/feed.service.spec.ts +16 -0
- package/src/lib/services/feed.service.ts +48 -0
- package/src/lib/services/notification.service.spec.ts +16 -0
- package/src/lib/services/notification.service.ts +38 -0
- package/src/lib/services/project.service.spec.ts +16 -0
- package/src/lib/services/project.service.ts +146 -0
- package/src/lib/services/tag.service.spec.ts +16 -0
- package/src/lib/services/tag.service.ts +61 -0
- package/src/public-api.ts +46 -0
- package/src/test.ts +17 -0
- package/tsconfig.lib.json +24 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
<div class="p-6 bg-white border-b border-gray-200">
|
|
2
|
+
<div class="md:flex md:items-center md:justify-between md:space-x-5">
|
|
3
|
+
<div class="flex items-start flex-1">
|
|
4
|
+
<div class="pt-1.5">
|
|
5
|
+
<h1 class="text-2xl font-bold text-gray-900 capitalize">{{title || 'Datasources'}}</h1>
|
|
6
|
+
<p class="text-sm font-medium text-gray-500">
|
|
7
|
+
{{description || 'A list of all the datasources currently available.'}}
|
|
8
|
+
</p>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="mt-6 flex flex-col-reverse justify-stretch" *ngIf="isProjectAdmin && !hideNew && canImportData">
|
|
12
|
+
<button mat-flat-button color="primary" [matMenuTriggerFor]="create">
|
|
13
|
+
Import Data
|
|
14
|
+
<mat-icon>expand_more</mat-icon>
|
|
15
|
+
</button>
|
|
16
|
+
<mat-menu #create="matMenu">
|
|
17
|
+
<button mat-menu-item [routerLink]="[newTabularURL]">
|
|
18
|
+
New Tabular Datasource
|
|
19
|
+
</button>
|
|
20
|
+
<button mat-menu-item [routerLink]="[newDocumentURL]">
|
|
21
|
+
New Document Datasource
|
|
22
|
+
</button>
|
|
23
|
+
</mat-menu>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="px-4 sm:px-6 lg:px-8 mt-0">
|
|
29
|
+
<div class="flex flex-col">
|
|
30
|
+
<div *ngIf="!canImportData" class="mt-8 border-l-4 border-yellow-400 bg-yellow-50 p-4">
|
|
31
|
+
<div class="flex">
|
|
32
|
+
<div class="flex-shrink-0">
|
|
33
|
+
<svg class="h-5 w-5 text-yellow-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
34
|
+
<path fill-rule="evenodd"
|
|
35
|
+
d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"
|
|
36
|
+
clip-rule="evenodd"/>
|
|
37
|
+
</svg>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="ml-3">
|
|
40
|
+
<p class="text-sm text-yellow-700 mb-0">
|
|
41
|
+
Imported Data is reserved for our Accredited users. Please <a class="font-medium text-yellow-700 underline hover:text-yellow-600"
|
|
42
|
+
href="https://dnsrf.org/joining-options/index.html">review our Tiers</a> to find out more.
|
|
43
|
+
</p>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div *ngIf="canImportData" class="-my-2 -mx-4 sm:-mx-6 lg:-mx-8">
|
|
48
|
+
<div class="inline-block min-w-full py-2 align-middle">
|
|
49
|
+
<div class="mt-3 sm:mt-0 flex-1">
|
|
50
|
+
<label for="mobile-search-candidate" class="sr-only">Search</label>
|
|
51
|
+
<div class="flex">
|
|
52
|
+
<div class="relative flex-grow focus-within:z-10">
|
|
53
|
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
|
54
|
+
<svg class="h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
56
|
+
<path fill-rule="evenodd"
|
|
57
|
+
d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"
|
|
58
|
+
clip-rule="evenodd"/>
|
|
59
|
+
</svg>
|
|
60
|
+
</div>
|
|
61
|
+
<input type="text" name="mobile-search-candidate" id="mobile-search-candidate"
|
|
62
|
+
class="text-sm block w-full rounded-none pl-10 border-t-0 border-l-0 border-r-0 border-gray-300"
|
|
63
|
+
placeholder="Search {{title || 'datasources'}}"
|
|
64
|
+
(keyup)="searchText.next($event.target.value)">
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<table class="min-w-full border-separate" style="border-spacing: 0">
|
|
69
|
+
<tbody class="bg-white">
|
|
70
|
+
<ng-template [ngIf]="datasources.length">
|
|
71
|
+
<tr class="border-t border-gray-200">
|
|
72
|
+
<th colspan="2" scope="colgroup"
|
|
73
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-100 py-3.5 px-4 text-left text-xs font-semibold text-gray-900">
|
|
74
|
+
<span *ngIf="!admin">Project </span>{{title || 'Datasources'}}
|
|
75
|
+
</th>
|
|
76
|
+
</tr>
|
|
77
|
+
<tr *ngFor="let element of datasources; let i = index" class="hover:bg-gray-50">
|
|
78
|
+
<td class="whitespace-nowrap border-gray-200 py-2 px-4 text-sm text-gray-900"
|
|
79
|
+
[ngClass]="{'border-b-0': i === datasources.length - 1, 'border-b': i !== datasources.length - 1}">
|
|
80
|
+
<div class="flex flex-col">
|
|
81
|
+
<div
|
|
82
|
+
class="item-title-select flex items-center font-medium cursor-pointer hover:underline"
|
|
83
|
+
(click)="explore(element)">
|
|
84
|
+
{{element.title}}
|
|
85
|
+
</div>
|
|
86
|
+
<div (click)="element.viewDescription = !element.viewDescription"
|
|
87
|
+
class="text-gray-400 font-thin w-2/3 overflow-ellipsis overflow-hidden whitespace-nowrap cursor-pointer hover:underline">
|
|
88
|
+
{{element.summary}}
|
|
89
|
+
</div>
|
|
90
|
+
<div *ngIf="element.viewDescription && element.description" class="mt-4"
|
|
91
|
+
[innerHTML]="element.description"></div>
|
|
92
|
+
</div>
|
|
93
|
+
</td>
|
|
94
|
+
<td class="relative whitespace-nowrap border-gray-200 py-2 px-4 text-right text-sm font-medium"
|
|
95
|
+
[ngClass]="{'border-b-0': i === datasources.length - 1, 'border-b': i !== datasources.length - 1}">
|
|
96
|
+
<div class="flex items-center justify-end">
|
|
97
|
+
<ng-template [ngIf]="isProjectAdmin">
|
|
98
|
+
<button mat-button color="primary" *ngIf="element.type === 'custom'"
|
|
99
|
+
[routerLink]="[newTabularURL, element.key]">
|
|
100
|
+
Edit
|
|
101
|
+
</button>
|
|
102
|
+
<button mat-button color="primary" *ngIf="element.type === 'document'"
|
|
103
|
+
[routerLink]="[newDocumentURL, element.key]">
|
|
104
|
+
Edit
|
|
105
|
+
</button>
|
|
106
|
+
<ng-template [ngIf]="element.type === 'document' || element.type === 'custom'">
|
|
107
|
+
<div class="divider"></div>
|
|
108
|
+
</ng-template>
|
|
109
|
+
</ng-template>
|
|
110
|
+
|
|
111
|
+
<button mat-button color="primary"
|
|
112
|
+
(click)="explore(element)"> {{exploreText || 'Explore'}}</button>
|
|
113
|
+
|
|
114
|
+
<ng-template [ngIf]="element.type === 'document' || element.type === 'custom'">
|
|
115
|
+
<div class="divider"></div>
|
|
116
|
+
<button color="primary" mat-icon-button [matMenuTriggerFor]="itemMenu">
|
|
117
|
+
<mat-icon>more_vert</mat-icon>
|
|
118
|
+
</button>
|
|
119
|
+
<mat-menu #itemMenu="matMenu">
|
|
120
|
+
<button mat-menu-item (click)="delete(element.key)">Delete</button>
|
|
121
|
+
</mat-menu>
|
|
122
|
+
</ng-template>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
</div>
|
|
126
|
+
</td>
|
|
127
|
+
</tr>
|
|
128
|
+
<tr *ngIf="!filterResults">
|
|
129
|
+
<td colspan="2"
|
|
130
|
+
class="border-t bg-gray-50 whitespace-nowrap border-b border-gray-200 py-1 px-4 text-sm text-gray-900">
|
|
131
|
+
<div class="paging-toolbar flex align-center justify-end">
|
|
132
|
+
<div class="flex items-center justify-center">
|
|
133
|
+
<div class="text-xs text-gray-400 mr-10">
|
|
134
|
+
Showing {{offset + 1}}
|
|
135
|
+
- {{(page * limit) - (limit - datasources.length)}}</div>
|
|
136
|
+
<select [value]="limit" (change)="pageSizeChange($event.target.value)"
|
|
137
|
+
class="p-1.5 mr-8">
|
|
138
|
+
<option [value]="1">1</option>
|
|
139
|
+
<option [value]="5">5</option>
|
|
140
|
+
<option [value]="10">10</option>
|
|
141
|
+
<option [value]="25">25</option>
|
|
142
|
+
<option [value]="50">50</option>
|
|
143
|
+
<option [value]="100">100</option>
|
|
144
|
+
<option [value]="250">250</option>
|
|
145
|
+
<option [value]="1000">1000</option>
|
|
146
|
+
</select>
|
|
147
|
+
<button mat-icon-button class="mr-4" (click)="decreaseOffset()"
|
|
148
|
+
[disabled]="page <= 1">
|
|
149
|
+
<mat-icon>chevron_left</mat-icon>
|
|
150
|
+
</button>
|
|
151
|
+
<button mat-icon-button (click)="increaseOffset()" [disabled]="endOfResults">
|
|
152
|
+
<mat-icon>chevron_right</mat-icon>
|
|
153
|
+
</button>
|
|
154
|
+
</div>
|
|
155
|
+
|
|
156
|
+
</div>
|
|
157
|
+
</td>
|
|
158
|
+
</tr>
|
|
159
|
+
</ng-template>
|
|
160
|
+
</tbody>
|
|
161
|
+
</table>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { DatasourceComponent } from './datasource.component';
|
|
4
|
+
|
|
5
|
+
describe('DatasourceComponent', () => {
|
|
6
|
+
let component: DatasourceComponent;
|
|
7
|
+
let fixture: ComponentFixture<DatasourceComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ DatasourceComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(DatasourceComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core';
|
|
2
|
+
import {BehaviorSubject, merge, Subject, Subscription} from 'rxjs';
|
|
3
|
+
import {debounceTime, distinctUntilChanged, map, switchMap} from 'rxjs/operators';
|
|
4
|
+
import {MatLegacyDialog as MatDialog} from '@angular/material/legacy-dialog';
|
|
5
|
+
import {DataExplorerComponent} from '../data-explorer/data-explorer.component';
|
|
6
|
+
import {DatasourceService} from '../../services/datasource.service';
|
|
7
|
+
import {ProjectService} from '../../services/project.service';
|
|
8
|
+
import {ActivatedRoute, Router} from '@angular/router';
|
|
9
|
+
import * as lodash from 'lodash';
|
|
10
|
+
const _ = lodash.default;
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'ki-datasource',
|
|
14
|
+
templateUrl: './datasource.component.html',
|
|
15
|
+
styleUrls: ['./datasource.component.sass']
|
|
16
|
+
})
|
|
17
|
+
export class DatasourceComponent implements OnInit, OnDestroy {
|
|
18
|
+
|
|
19
|
+
@Input() admin: boolean;
|
|
20
|
+
@Input() title: string;
|
|
21
|
+
@Input() description: string;
|
|
22
|
+
@Input() exploreText: string;
|
|
23
|
+
@Input() hideNew: boolean;
|
|
24
|
+
@Input() newDocumentURL = '/document-datasource';
|
|
25
|
+
@Input() newTabularURL = '/import-data';
|
|
26
|
+
@Input() datasourceURL = '/datasource';
|
|
27
|
+
@Input() noProject = false;
|
|
28
|
+
@Input() filterResults: any;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
public datasources: any = [];
|
|
32
|
+
public searchText = new BehaviorSubject('');
|
|
33
|
+
public limit = 10;
|
|
34
|
+
public offset = 0;
|
|
35
|
+
public page = 1;
|
|
36
|
+
public endOfResults = false;
|
|
37
|
+
public reload = new Subject();
|
|
38
|
+
public isProjectAdmin = false;
|
|
39
|
+
public canImportData = false;
|
|
40
|
+
|
|
41
|
+
private projectSub: Subscription;
|
|
42
|
+
|
|
43
|
+
constructor(private dialog: MatDialog,
|
|
44
|
+
private datasourceService: DatasourceService,
|
|
45
|
+
private projectService: ProjectService,
|
|
46
|
+
private router: Router,
|
|
47
|
+
private route: ActivatedRoute) {
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ngOnInit(): void {
|
|
51
|
+
this.searchText.subscribe(() => {
|
|
52
|
+
this.page = 1;
|
|
53
|
+
this.offset = 0;
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const pagingValues = this.projectService.getDataItemPagingValues();
|
|
57
|
+
this.limit = pagingValues.limit || 10;
|
|
58
|
+
this.offset = pagingValues.offset || 0;
|
|
59
|
+
this.page = pagingValues.page || 1;
|
|
60
|
+
|
|
61
|
+
this.isProjectAdmin = this.projectService.isActiveProjectAdmin();
|
|
62
|
+
this.canImportData = this.projectService.doesActiveProjectHavePrivilege('customdatasourceaccess');
|
|
63
|
+
|
|
64
|
+
this.projectSub = this.projectService.activeProject.subscribe(() => {
|
|
65
|
+
this.isProjectAdmin = this.projectService.isActiveProjectAdmin();
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
if (this.canImportData) {
|
|
69
|
+
this.route.params.subscribe(async param => {
|
|
70
|
+
if (param.key) {
|
|
71
|
+
const datasource = await this.datasourceService.getDatasource(param.key);
|
|
72
|
+
this.explore(datasource);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
merge(this.searchText, this.reload)
|
|
77
|
+
.pipe(
|
|
78
|
+
debounceTime(300),
|
|
79
|
+
distinctUntilChanged(),
|
|
80
|
+
switchMap(() =>
|
|
81
|
+
this.getDatasources()
|
|
82
|
+
)
|
|
83
|
+
).subscribe((sources: any) => {
|
|
84
|
+
if (this.filterResults) {
|
|
85
|
+
this.datasources = _.filter(sources, this.filterResults);
|
|
86
|
+
} else {
|
|
87
|
+
this.datasources = sources;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
ngOnDestroy() {
|
|
94
|
+
this.projectSub.unsubscribe();
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public createDatasource() {
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
public explore(datasource) {
|
|
102
|
+
this.router.navigate([this.datasourceURL], {fragment: datasource.key});
|
|
103
|
+
const datasetInstanceSummary = {
|
|
104
|
+
datasetInstanceId: null,
|
|
105
|
+
datasourceInstanceKey: datasource.key,
|
|
106
|
+
transformationInstances: [],
|
|
107
|
+
parameterValues: {},
|
|
108
|
+
parameters: [],
|
|
109
|
+
originDataItemTitle: datasource.title
|
|
110
|
+
};
|
|
111
|
+
const dialogRef = this.dialog.open(DataExplorerComponent, {
|
|
112
|
+
width: '100vw',
|
|
113
|
+
height: '100vh',
|
|
114
|
+
maxWidth: '100vw',
|
|
115
|
+
maxHeight: '100vh',
|
|
116
|
+
hasBackdrop: false,
|
|
117
|
+
data: {
|
|
118
|
+
datasetInstanceSummary,
|
|
119
|
+
showChart: false,
|
|
120
|
+
admin: this.admin,
|
|
121
|
+
breadcrumb: this.title || 'Datasources'
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
dialogRef.afterClosed().subscribe(res => {
|
|
125
|
+
if (res && res.breadcrumb) {
|
|
126
|
+
return this.router.navigate([res.breadcrumb], {fragment: null});
|
|
127
|
+
}
|
|
128
|
+
this.router.navigate([this.datasourceURL], {fragment: null});
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
public async delete(key) {
|
|
133
|
+
const message = 'Are you sure you would like to delete this item?';
|
|
134
|
+
if (window.confirm(message)) {
|
|
135
|
+
await this.datasourceService.deleteDatasource(key);
|
|
136
|
+
this.reload.next(Date.now());
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
public increaseOffset() {
|
|
141
|
+
this.page = this.page + 1;
|
|
142
|
+
this.offset = (this.limit * this.page) - this.limit;
|
|
143
|
+
this.reload.next(Date.now());
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
public decreaseOffset() {
|
|
147
|
+
this.page = this.page <= 1 ? 1 : this.page - 1;
|
|
148
|
+
this.offset = (this.limit * this.page) - this.limit;
|
|
149
|
+
this.reload.next(Date.now());
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
public pageSizeChange(value) {
|
|
153
|
+
this.page = 1;
|
|
154
|
+
this.offset = 0;
|
|
155
|
+
this.limit = value;
|
|
156
|
+
this.reload.next(Date.now());
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
private getDatasources() {
|
|
160
|
+
this.projectService.setDataItemPagingValue(this.limit, this.offset, this.page);
|
|
161
|
+
|
|
162
|
+
return this.datasourceService.getDatasources(
|
|
163
|
+
this.searchText.getValue() || '',
|
|
164
|
+
this.filterResults ? '1000' : this.limit.toString(),
|
|
165
|
+
this.filterResults ? '0' : this.offset.toString(),
|
|
166
|
+
this.noProject
|
|
167
|
+
).pipe(map((sources: any) => {
|
|
168
|
+
this.endOfResults = sources.length < this.limit;
|
|
169
|
+
return sources;
|
|
170
|
+
})
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
}
|