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,408 @@
|
|
|
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
|
+
<div class="flex items-center">
|
|
6
|
+
<h1 class="text-2xl font-bold text-gray-900">Snapshots</h1>
|
|
7
|
+
<mat-chip-list *ngIf="activeTag" class="overflow-hidden">
|
|
8
|
+
<mat-chip class="mb-4 ml-2 active-tag" [removable]="true" (removed)="removeActiveTag()">
|
|
9
|
+
<span><b>{{config.tagLabel || 'Tag'}}: </b>{{activeTag ? activeTag.tag : ''}}</span>
|
|
10
|
+
<mat-icon matChipRemove>cancel</mat-icon>
|
|
11
|
+
</mat-chip>
|
|
12
|
+
</mat-chip-list>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<p class="text-sm font-medium text-gray-500">
|
|
16
|
+
A list of all the snapshots currently available.
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="px-4 sm:px-6 lg:px-8 mt-0">
|
|
23
|
+
<div class="flex flex-col">
|
|
24
|
+
<div *ngIf="!canHaveSnapshots" class="mt-8 border-l-4 border-yellow-400 bg-yellow-50 p-4">
|
|
25
|
+
<div class="flex">
|
|
26
|
+
<div class="flex-shrink-0">
|
|
27
|
+
<svg class="h-5 w-5 text-yellow-400" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
28
|
+
<path fill-rule="evenodd"
|
|
29
|
+
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"
|
|
30
|
+
clip-rule="evenodd"/>
|
|
31
|
+
</svg>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="ml-3">
|
|
34
|
+
<p class="text-sm text-yellow-700 mb-0">
|
|
35
|
+
Snapshots are reserved for our Accredited users. Please <a class="font-medium text-yellow-700 underline hover:text-yellow-600"
|
|
36
|
+
href="https://dnsrf.org/joining-options/index.html">review our Tiers</a> to find out more.
|
|
37
|
+
</p>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div *ngIf="canHaveSnapshots" class="-my-2 -mx-4 sm:-mx-6 lg:-mx-8">
|
|
42
|
+
<div class="inline-block min-w-full py-2 align-middle">
|
|
43
|
+
<div class="mt-3 sm:mt-0 flex-1">
|
|
44
|
+
<label for="mobile-search-candidate" class="sr-only">Search</label>
|
|
45
|
+
<div class="flex">
|
|
46
|
+
<div class="relative flex-grow focus-within:z-10">
|
|
47
|
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
|
48
|
+
<svg class="h-5 w-5 text-gray-400" xmlns="http://www.w3.org/2000/svg"
|
|
49
|
+
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
|
50
|
+
<path fill-rule="evenodd"
|
|
51
|
+
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"
|
|
52
|
+
clip-rule="evenodd"/>
|
|
53
|
+
</svg>
|
|
54
|
+
</div>
|
|
55
|
+
<input type="text" name="mobile-search-candidate" id="mobile-search-candidate"
|
|
56
|
+
class="block w-full rounded-none pl-10 border-t-0 border-l-0 border-gray-300"
|
|
57
|
+
placeholder="Search snapshots"
|
|
58
|
+
(keyup)="searchText.next($event.target.value)">
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<table class="min-w-full border-separate" style="border-spacing: 0">
|
|
63
|
+
<ng-template [ngIf]="activeTag && snapshots.tag.data.length">
|
|
64
|
+
<thead class="bg-gray-100">
|
|
65
|
+
<tr>
|
|
66
|
+
<th scope="col"
|
|
67
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
68
|
+
</th>
|
|
69
|
+
<th scope="col"
|
|
70
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
71
|
+
{{environment.tagLabel}} Snapshots
|
|
72
|
+
</th>
|
|
73
|
+
<th scope="col"
|
|
74
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
75
|
+
Status
|
|
76
|
+
</th>
|
|
77
|
+
<th scope="col"
|
|
78
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
79
|
+
Last Started
|
|
80
|
+
</th>
|
|
81
|
+
<th scope="col"
|
|
82
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
83
|
+
Next Start Time
|
|
84
|
+
</th>
|
|
85
|
+
<th scope="col"
|
|
86
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 backdrop-blur backdrop-filter">
|
|
87
|
+
<span class="sr-only">Edit</span>
|
|
88
|
+
</th>
|
|
89
|
+
</tr>
|
|
90
|
+
</thead>
|
|
91
|
+
<tbody class="bg-white">
|
|
92
|
+
<tr *ngFor="let snapshot of snapshots.tag.data">
|
|
93
|
+
<td>
|
|
94
|
+
<button *ngIf="snapshot.taskStatus !== 'RUNNING'" color="primary"
|
|
95
|
+
matTooltip="Trigger snapshot to run now" mat-icon-button
|
|
96
|
+
(click)="triggerSnapshot(snapshot.key, snapshots.project)">
|
|
97
|
+
<mat-icon>play_arrow</mat-icon>
|
|
98
|
+
</button>
|
|
99
|
+
<svg *ngIf="snapshot.taskStatus === 'RUNNING'"
|
|
100
|
+
class="animate-spin ml-3 mr-2 h-5 w-5 text-secondary"
|
|
101
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
102
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
|
|
103
|
+
stroke-width="4"></circle>
|
|
104
|
+
<path class="opacity-75" fill="currentColor"
|
|
105
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
|
106
|
+
</svg>
|
|
107
|
+
</td>
|
|
108
|
+
<td (click)="snapshot.taskStatus !== 'PENDING' ? view(snapshot.key + '_latest') : null"
|
|
109
|
+
class="cursor-pointer w-1/2 border-b border-gray-200 py-2 px-4 text-sm font-medium text-gray-900">
|
|
110
|
+
<div class="mb-1 hover:underline">{{snapshot.snapshotProfileTitle}}</div>
|
|
111
|
+
<div>
|
|
112
|
+
<span class="inline-flex text-xs pr-2 font-normal text-gray-500">
|
|
113
|
+
{{snapshot.relatedObjectTitle}}
|
|
114
|
+
</span>
|
|
115
|
+
</div>
|
|
116
|
+
</td>
|
|
117
|
+
<td class="whitespace-nowrap border-b border-gray-200 py-0.5 px-2 text-sm text-gray-500">
|
|
118
|
+
<div
|
|
119
|
+
class="inline-flex text-sm lowercase flex items-center text-white px-3 rounded-full"
|
|
120
|
+
[ngClass]="{'py-0.5': snapshot.taskStatus !== 'RUNNING','py-1': snapshot.taskStatus === 'RUNNING', 'bg-gray-400': snapshot.taskStatus === 'PENDING', 'bg-secondary': snapshot.taskStatus === 'RUNNING', 'bg-success': snapshot.taskStatus === 'COMPLETED', 'bg-danger': snapshot.taskStatus === 'FAILED'}">
|
|
121
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'PENDING'">
|
|
122
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
123
|
+
stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
124
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
125
|
+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
126
|
+
</svg>
|
|
127
|
+
</ng-template>
|
|
128
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'RUNNING'">
|
|
129
|
+
<svg class="animate-spin -ml-1 mr-3 h-5 w-5 text-white"
|
|
130
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
131
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
|
|
132
|
+
stroke-width="4"></circle>
|
|
133
|
+
<path class="opacity-75" fill="currentColor"
|
|
134
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
|
135
|
+
</svg>
|
|
136
|
+
</ng-template>
|
|
137
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'COMPLETED'">
|
|
138
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
139
|
+
stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
140
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
141
|
+
d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
142
|
+
</svg>
|
|
143
|
+
</ng-template>
|
|
144
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'FAILED'">
|
|
145
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
146
|
+
stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
147
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
148
|
+
d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"/>
|
|
149
|
+
</svg>
|
|
150
|
+
</ng-template>
|
|
151
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'TIMED_OUT'">
|
|
152
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
153
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M14.25 9v6m-4.5 0V9M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
154
|
+
</svg>
|
|
155
|
+
</ng-template>
|
|
156
|
+
{{_.startCase(snapshot.taskStatus)}}
|
|
157
|
+
</div>
|
|
158
|
+
</td>
|
|
159
|
+
<td class="whitespace-nowrap border-b border-gray-200 py-2 px-4 text-sm text-gray-500">
|
|
160
|
+
{{snapshot.taskLastStartTime}}
|
|
161
|
+
</td>
|
|
162
|
+
<td class="whitespace-nowrap border-b border-gray-200 py-2 px-4 text-sm text-gray-500">
|
|
163
|
+
{{snapshot.taskNextStartTime}}
|
|
164
|
+
</td>
|
|
165
|
+
<td class="relative whitespace-nowrap border-b border-gray-200 py-2 px-4 text-right text-sm">
|
|
166
|
+
<div class="flex items-center justify-end">
|
|
167
|
+
<button *ngIf="snapshot.config.createHistory" mat-button
|
|
168
|
+
color="primary"
|
|
169
|
+
[disabled]="snapshot.taskStatus === 'PENDING'"
|
|
170
|
+
(click)="view(snapshot.key)">
|
|
171
|
+
View Historical
|
|
172
|
+
</button>
|
|
173
|
+
<button *ngIf="snapshot.config.createLatest" mat-button
|
|
174
|
+
color="primary"
|
|
175
|
+
[disabled]="snapshot.taskStatus === 'PENDING'"
|
|
176
|
+
(click)="view(snapshot.key + '_latest')">
|
|
177
|
+
View Latest
|
|
178
|
+
</button>
|
|
179
|
+
<div class="divider"></div>
|
|
180
|
+
<button color="primary" mat-icon-button [matMenuTriggerFor]="itemMenu">
|
|
181
|
+
<mat-icon>more_vert</mat-icon>
|
|
182
|
+
</button>
|
|
183
|
+
<mat-menu #itemMenu="matMenu">
|
|
184
|
+
<button mat-menu-item (click)="editSnapshot(snapshot.key, snapshots.tag)">
|
|
185
|
+
Edit Snapshot
|
|
186
|
+
</button>
|
|
187
|
+
<button mat-menu-item (click)="viewParent(snapshot.relatedObjectPrimaryKey)">
|
|
188
|
+
View Parent Query
|
|
189
|
+
</button>
|
|
190
|
+
<button mat-menu-item
|
|
191
|
+
(click)="delete(snapshot.key, snapshots.tag)">
|
|
192
|
+
Delete Snapshot
|
|
193
|
+
</button>
|
|
194
|
+
</mat-menu>
|
|
195
|
+
</div>
|
|
196
|
+
</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td colspan="6"
|
|
200
|
+
class="border-t bg-gray-50 whitespace-nowrap border-b border-gray-200 py-1 px-4 text-sm text-gray-900">
|
|
201
|
+
<div class="paging-toolbar flex align-center justify-end">
|
|
202
|
+
|
|
203
|
+
<div class="flex items-center justify-center">
|
|
204
|
+
<div class="text-xs text-gray-400 mr-10">
|
|
205
|
+
Showing {{snapshots.tag.offset + 1}} - {{(snapshots.tag.page * snapshots.tag.limit) - (snapshots.tag.limit - snapshots.tag.data.length)}}</div>
|
|
206
|
+
<select [value]="snapshots.tag.limit"
|
|
207
|
+
(change)="pageSizeChange($event.target.value, snapshots.tag)"
|
|
208
|
+
class="mr-8 p-1.5">
|
|
209
|
+
<option [value]="1">1</option>
|
|
210
|
+
<option [value]="5">5</option>
|
|
211
|
+
<option [value]="10">10</option>
|
|
212
|
+
<option [value]="25">25</option>
|
|
213
|
+
<option [value]="50">50</option>
|
|
214
|
+
<option [value]="100">100</option>
|
|
215
|
+
<option [value]="250">250</option>
|
|
216
|
+
<option [value]="1000">1000</option>
|
|
217
|
+
</select>
|
|
218
|
+
<button mat-icon-button class="mr-4" (click)="decreaseOffset(snapshots.tag)"
|
|
219
|
+
[disabled]="snapshots.tag.page <= 1">
|
|
220
|
+
<mat-icon>chevron_left</mat-icon>
|
|
221
|
+
</button>
|
|
222
|
+
<button mat-icon-button (click)="increaseOffset(snapshots.tag)"
|
|
223
|
+
[disabled]="snapshots.tag.endOfResults">
|
|
224
|
+
<mat-icon>chevron_right</mat-icon>
|
|
225
|
+
</button>
|
|
226
|
+
</div>
|
|
227
|
+
|
|
228
|
+
</div>
|
|
229
|
+
</td>
|
|
230
|
+
</tr>
|
|
231
|
+
</tbody>
|
|
232
|
+
</ng-template>
|
|
233
|
+
<ng-template [ngIf]="snapshots.project.data.length">
|
|
234
|
+
<thead class="bg-gray-100">
|
|
235
|
+
<tr>
|
|
236
|
+
<th scope="col"
|
|
237
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
238
|
+
</th>
|
|
239
|
+
<th scope="col"
|
|
240
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
241
|
+
Project Snapshots
|
|
242
|
+
</th>
|
|
243
|
+
<th scope="col"
|
|
244
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
245
|
+
Status
|
|
246
|
+
</th>
|
|
247
|
+
<th scope="col"
|
|
248
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
249
|
+
Last Started
|
|
250
|
+
</th>
|
|
251
|
+
<th scope="col"
|
|
252
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
|
|
253
|
+
Next Start Time
|
|
254
|
+
</th>
|
|
255
|
+
<th scope="col"
|
|
256
|
+
class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 backdrop-blur backdrop-filter">
|
|
257
|
+
<span class="sr-only">Edit</span>
|
|
258
|
+
</th>
|
|
259
|
+
</tr>
|
|
260
|
+
</thead>
|
|
261
|
+
<tbody class="bg-white">
|
|
262
|
+
<tr *ngFor="let snapshot of snapshots.project.data">
|
|
263
|
+
<td>
|
|
264
|
+
<button *ngIf="snapshot.taskStatus !== 'RUNNING'" color="primary"
|
|
265
|
+
matTooltip="Trigger snapshot to run now" mat-icon-button
|
|
266
|
+
(click)="triggerSnapshot(snapshot.key, snapshots.project)">
|
|
267
|
+
<mat-icon>play_arrow</mat-icon>
|
|
268
|
+
</button>
|
|
269
|
+
<svg *ngIf="snapshot.taskStatus === 'RUNNING'"
|
|
270
|
+
class="animate-spin ml-3 mr-2 h-5 w-5 text-secondary"
|
|
271
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
272
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
|
|
273
|
+
stroke-width="4"></circle>
|
|
274
|
+
<path class="opacity-75" fill="currentColor"
|
|
275
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
|
276
|
+
</svg>
|
|
277
|
+
</td>
|
|
278
|
+
<td (click)="snapshot.taskStatus !== 'PENDING' ? view(snapshot.key + '_latest') : null"
|
|
279
|
+
class="cursor-pointer w-1/3 border-b border-gray-200 py-2 px-4 text-sm font-medium text-gray-900">
|
|
280
|
+
<div class="mb-1 hover:underline">{{snapshot.title}}</div>
|
|
281
|
+
<div>
|
|
282
|
+
<span class="inline-flex text-xs pr-2 font-normal text-gray-500">
|
|
283
|
+
{{snapshot.relatedObjectTitle}}
|
|
284
|
+
</span>
|
|
285
|
+
</div>
|
|
286
|
+
</td>
|
|
287
|
+
<td class="whitespace-nowrap border-b border-gray-200 py-0.5 px-2 text-sm text-gray-500">
|
|
288
|
+
<div
|
|
289
|
+
class="inline-flex text-sm lowercase flex items-center text-white px-3 rounded-full"
|
|
290
|
+
[ngClass]="{'py-0.5': snapshot.taskStatus !== 'RUNNING','py-1': snapshot.taskStatus === 'RUNNING', 'bg-gray-400': snapshot.taskStatus === 'PENDING', 'bg-secondary': snapshot.taskStatus === 'RUNNING', 'bg-success': snapshot.taskStatus === 'COMPLETED', 'bg-danger': snapshot.taskStatus === 'FAILED', 'bg-purple-500': snapshot.taskStatus === 'TIMED_OUT'}">
|
|
291
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'PENDING'">
|
|
292
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
293
|
+
stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
294
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
295
|
+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
296
|
+
</svg>
|
|
297
|
+
</ng-template>
|
|
298
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'RUNNING'">
|
|
299
|
+
<svg class="animate-spin -ml-1 mr-3 h-5 w-5 text-white"
|
|
300
|
+
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
301
|
+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor"
|
|
302
|
+
stroke-width="4"></circle>
|
|
303
|
+
<path class="opacity-75" fill="currentColor"
|
|
304
|
+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
|
305
|
+
</svg>
|
|
306
|
+
</ng-template>
|
|
307
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'COMPLETED'">
|
|
308
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
309
|
+
stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
310
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
311
|
+
d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
312
|
+
</svg>
|
|
313
|
+
</ng-template>
|
|
314
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'FAILED'">
|
|
315
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
316
|
+
stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
317
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
318
|
+
d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"/>
|
|
319
|
+
</svg>
|
|
320
|
+
</ng-template>
|
|
321
|
+
<ng-template [ngIf]="snapshot.taskStatus === 'TIMED_OUT'">
|
|
322
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="-ml-1 w-6 h-6 mr-2">
|
|
323
|
+
<path stroke-linecap="round" stroke-linejoin="round" d="M14.25 9v6m-4.5 0V9M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
324
|
+
</svg>
|
|
325
|
+
</ng-template>
|
|
326
|
+
{{_.startCase(snapshot.taskStatus)}}
|
|
327
|
+
</div>
|
|
328
|
+
</td>
|
|
329
|
+
<td class="whitespace-nowrap border-b border-gray-200 py-2 px-4 text-sm text-gray-500">
|
|
330
|
+
{{snapshot.taskLastStartTime}}
|
|
331
|
+
</td>
|
|
332
|
+
<td class="whitespace-nowrap border-b border-gray-200 py-2 px-4 text-sm text-gray-500">
|
|
333
|
+
{{snapshot.taskNextStartTime}}
|
|
334
|
+
</td>
|
|
335
|
+
<td class="relative whitespace-nowrap border-b border-gray-200 py-2 px-4 text-right text-sm">
|
|
336
|
+
<div class="flex items-center justify-end">
|
|
337
|
+
<button *ngIf="snapshot.config.createHistory" mat-button
|
|
338
|
+
color="primary"
|
|
339
|
+
[disabled]="snapshot.taskStatus === 'PENDING'"
|
|
340
|
+
(click)="view(snapshot.key)">
|
|
341
|
+
View Historical
|
|
342
|
+
</button>
|
|
343
|
+
<button *ngIf="snapshot.config.createLatest" mat-button
|
|
344
|
+
color="primary"
|
|
345
|
+
[disabled]="snapshot.taskStatus === 'PENDING'"
|
|
346
|
+
(click)="view(snapshot.key + '_latest')">
|
|
347
|
+
View Latest
|
|
348
|
+
</button>
|
|
349
|
+
<div class="divider"></div>
|
|
350
|
+
<button color="primary" mat-icon-button [matMenuTriggerFor]="itemMenu">
|
|
351
|
+
<mat-icon>more_vert</mat-icon>
|
|
352
|
+
</button>
|
|
353
|
+
<mat-menu #itemMenu="matMenu">
|
|
354
|
+
<button mat-menu-item (click)="editSnapshot(snapshot.key, snapshots.project)">
|
|
355
|
+
Edit Snapshot
|
|
356
|
+
</button>
|
|
357
|
+
<button mat-menu-item (click)="viewParent(snapshot.relatedObjectPrimaryKey)">
|
|
358
|
+
View Parent Query
|
|
359
|
+
</button>
|
|
360
|
+
<button mat-menu-item
|
|
361
|
+
(click)="delete(snapshot.key, snapshots.project)">
|
|
362
|
+
Delete Snapshot
|
|
363
|
+
</button>
|
|
364
|
+
</mat-menu>
|
|
365
|
+
</div>
|
|
366
|
+
</td>
|
|
367
|
+
</tr>
|
|
368
|
+
<tr>
|
|
369
|
+
<td colspan="6"
|
|
370
|
+
class="bg-gray-50 whitespace-nowrap border-b border-gray-200 py-2 px-4 text-sm text-gray-900">
|
|
371
|
+
<div class="paging-toolbar flex align-center justify-end">
|
|
372
|
+
|
|
373
|
+
<div class="flex items-center justify-center">
|
|
374
|
+
<div class="text-xs text-gray-400 mr-10">
|
|
375
|
+
Showing {{snapshots.project.offset + 1}} - {{(snapshots.project.page * snapshots.project.limit) - (snapshots.project.limit - snapshots.project.data.length)}}
|
|
376
|
+
</div>
|
|
377
|
+
<select [value]="snapshots.project.limit"
|
|
378
|
+
(change)="pageSizeChange($event.target.value, snapshots.project)"
|
|
379
|
+
class="mr-8 p-2">
|
|
380
|
+
<option [value]="1">1</option>
|
|
381
|
+
<option [value]="5">5</option>
|
|
382
|
+
<option [value]="10">10</option>
|
|
383
|
+
<option [value]="25">25</option>
|
|
384
|
+
<option [value]="50">50</option>
|
|
385
|
+
<option [value]="100">100</option>
|
|
386
|
+
<option [value]="250">250</option>
|
|
387
|
+
<option [value]="1000">1000</option>
|
|
388
|
+
</select>
|
|
389
|
+
<button mat-icon-button class="mr-4" (click)="decreaseOffset(snapshots.project)"
|
|
390
|
+
[disabled]="snapshots.project.page <= 1">
|
|
391
|
+
<mat-icon>chevron_left</mat-icon>
|
|
392
|
+
</button>
|
|
393
|
+
<button mat-icon-button (click)="increaseOffset(snapshots.project)"
|
|
394
|
+
[disabled]="snapshots.project.endOfResults">
|
|
395
|
+
<mat-icon>chevron_right</mat-icon>
|
|
396
|
+
</button>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
</td>
|
|
400
|
+
</tr>
|
|
401
|
+
</tbody>
|
|
402
|
+
</ng-template>
|
|
403
|
+
|
|
404
|
+
</table>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</div>
|
|
408
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SnapshotsComponent } from './snapshots.component';
|
|
4
|
+
|
|
5
|
+
describe('SnapshotsComponent', () => {
|
|
6
|
+
let component: SnapshotsComponent;
|
|
7
|
+
let fixture: ComponentFixture<SnapshotsComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ SnapshotsComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(SnapshotsComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|