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,430 @@
|
|
|
1
|
+
<div class="border-b w-full flex items-center justify-between ">
|
|
2
|
+
<div *ngIf="!readonly"
|
|
3
|
+
class="leading-5 flex items-center px-4 text-xs w-96 uppercase tracking-wider font-medium text-gray-600">
|
|
4
|
+
Name
|
|
5
|
+
<input type="text" class="w-full py-1.5 ml-4" placeholder="Enter datasource name"
|
|
6
|
+
[ngClass]="{'border border-red-500': !datasourceUpdate.title}"
|
|
7
|
+
[(ngModel)]="datasourceUpdate.title">
|
|
8
|
+
</div>
|
|
9
|
+
<div *ngIf="readonly"
|
|
10
|
+
class="leading-5 font-medium text-lg px-4">{{datasourceUpdate.title.replace((namePrefix || ''), '')}}</div>
|
|
11
|
+
<div class="flex-1 flex items-center flex-wrap w-full justify-end bg-white">
|
|
12
|
+
<ng-template [ngIf]="_.some(rows, '_selected')">
|
|
13
|
+
<button (click)="deleteSelectedEntries()"
|
|
14
|
+
class="w-28 flex flex-col items-center justify-center py-1 px-2 text-xs text-gray-600 cursor-pointer hover:bg-gray-100">
|
|
15
|
+
<mat-icon class="text-xl">delete_forever</mat-icon>
|
|
16
|
+
delete selected
|
|
17
|
+
</button>
|
|
18
|
+
<div class="divider"></div>
|
|
19
|
+
</ng-template>
|
|
20
|
+
|
|
21
|
+
<button *ngIf="!editMode" (click)="showFilters = !showFilters"
|
|
22
|
+
[ngStyle]="{'background-color': this.showFilters ? '#00000012' : ''}"
|
|
23
|
+
class="w-20 flex flex-col items-center justify-center py-1 px-2 text-xs text-gray-600 cursor-pointer hover:bg-gray-100">
|
|
24
|
+
<mat-icon class="text-xl">filter_alt</mat-icon>
|
|
25
|
+
filter
|
|
26
|
+
</button>
|
|
27
|
+
<div *ngIf="!editMode" class="divider"></div>
|
|
28
|
+
<button *ngIf="!editMode" (click)="advancedSettings()" [disabled]="!datasourceInstanceKey"
|
|
29
|
+
class="disabled:opacity-50 w-20 flex flex-col items-center justify-center py-1 px-2 text-xs text-gray-600 cursor-pointer hover:bg-gray-100">
|
|
30
|
+
<mat-icon class="text-xl">tune</mat-icon>
|
|
31
|
+
advanced
|
|
32
|
+
</button>
|
|
33
|
+
<button *ngIf="!editMode" (click)="apiAccess()" [disabled]="!datasourceInstanceKey"
|
|
34
|
+
class="disabled:opacity-50 w-20 flex flex-col items-center justify-center py-1 px-2 text-xs text-gray-600 cursor-pointer hover:bg-gray-100">
|
|
35
|
+
<mat-icon class="text-xl">api</mat-icon>
|
|
36
|
+
api access
|
|
37
|
+
</button>
|
|
38
|
+
<button *ngIf="!editMode" (click)="import()"
|
|
39
|
+
class="w-20 flex flex-col items-center justify-center py-1 px-2 text-xs text-gray-600 cursor-pointer hover:bg-gray-100">
|
|
40
|
+
<mat-icon class="text-xl">upload_file</mat-icon>
|
|
41
|
+
upload
|
|
42
|
+
</button>
|
|
43
|
+
<div *ngIf="!editMode" class="divider"></div>
|
|
44
|
+
|
|
45
|
+
<button *ngIf="editMode" (click)="cancelChanges()"
|
|
46
|
+
class="disabled:opacity-50 w-20 flex flex-col items-center justify-center py-1 px-2 text-xs text-gray-600 cursor-pointer hover:bg-gray-100">
|
|
47
|
+
<mat-icon class="text-xl">cancel</mat-icon>
|
|
48
|
+
cancel edit
|
|
49
|
+
</button>
|
|
50
|
+
|
|
51
|
+
<button (click)="save()"
|
|
52
|
+
class="disabled:opacity-50 w-20 flex flex-col items-center justify-center py-1 px-2 text-xs text-gray-600 cursor-pointer hover:bg-gray-100">
|
|
53
|
+
<mat-icon class="text-xl">save</mat-icon>
|
|
54
|
+
save
|
|
55
|
+
</button>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div *ngIf="showFilters" class="dataset-filters">
|
|
59
|
+
<div class="dataset-filter border-b border-gray-200">
|
|
60
|
+
|
|
61
|
+
<ki-dataset-filters *ngIf="columns.length" [filterFields]="filterFields"
|
|
62
|
+
[openSide]="openSide"
|
|
63
|
+
[filterJunction]="filterJunction"></ki-dataset-filters>
|
|
64
|
+
|
|
65
|
+
<div class="flex items-center apply-filter">
|
|
66
|
+
<button mat-stroked-button class="mr-2 bg-white" color="warn"
|
|
67
|
+
(click)="clearFilter()">
|
|
68
|
+
Clear Filter
|
|
69
|
+
</button>
|
|
70
|
+
<button mat-flat-button class="mr-2" color="primary"
|
|
71
|
+
(click)="applyFilter()" [disabled]="!filterJunction.filters.length">
|
|
72
|
+
Apply Filter
|
|
73
|
+
</button>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="flex create-datasource-container">
|
|
80
|
+
<div class="flex-1 relative overflow-y-scroll table-scroll">
|
|
81
|
+
|
|
82
|
+
<div class="create-datasource">
|
|
83
|
+
<div id="tableWrapper" class="flex-1 overflow-y-scroll relative">
|
|
84
|
+
<table class="datasource-table table-fixed w-full overflow-scroll">
|
|
85
|
+
<thead>
|
|
86
|
+
<tr>
|
|
87
|
+
<th class="w-10 relative cursor-pointer bg-gray-100 p-0 sticky text-xs">
|
|
88
|
+
<div class="flex items-center justify-center">
|
|
89
|
+
<input type="checkbox" [(ngModel)]="selectAll" (ngModelChange)="updateSelectAll()">
|
|
90
|
+
</div>
|
|
91
|
+
</th>
|
|
92
|
+
<ng-template ngFor let-column [ngForOf]="columns" let-colIndex=index>
|
|
93
|
+
<th [id]="column.type + colIndex" *ngIf="column.type === 'id' ? showAutoIncrement : true"
|
|
94
|
+
class="w-64 relative cursor-pointer bg-gray-100 p-2 sticky text-xs"
|
|
95
|
+
[ngClass]="{'bg-indigo-50': selectedItem._index === colIndex, 'border-r-0': (colIndex + 1) === columns.length}">
|
|
96
|
+
<div class="pr-8 w-full header-title" (click)="selectColumn(column, colIndex)">
|
|
97
|
+
{{ column.title }}
|
|
98
|
+
<svg *ngIf="column.keyField || column.type ==='id'"
|
|
99
|
+
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"
|
|
100
|
+
class="w-5 h-5 text-yellow-500">
|
|
101
|
+
<path fill-rule="evenodd"
|
|
102
|
+
d="M8 7a5 5 0 113.61 4.804l-1.903 1.903A1 1 0 019 14H8v1a1 1 0 01-1 1H6v1a1 1 0 01-1 1H3a1 1 0 01-1-1v-2a1 1 0 01.293-.707L8.196 8.39A5.002 5.002 0 018 7zm5-3a.75.75 0 000 1.5A1.5 1.5 0 0114.5 7 .75.75 0 0016 7a3 3 0 00-3-3z"
|
|
103
|
+
clip-rule="evenodd"/>
|
|
104
|
+
</svg>
|
|
105
|
+
</div>
|
|
106
|
+
<button mat-icon-button [matMenuTriggerFor]="header"
|
|
107
|
+
class="absolute header-actions">
|
|
108
|
+
<mat-icon>more_vert</mat-icon>
|
|
109
|
+
</button>
|
|
110
|
+
<mat-menu #header="matMenu">
|
|
111
|
+
<button mat-menu-item (click)="sortColumn(column, 'asc')">
|
|
112
|
+
<div class="flex items-center justify-between w-full">
|
|
113
|
+
Sort Ascending
|
|
114
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
115
|
+
stroke-width="1.5" stroke="currentColor"
|
|
116
|
+
class="h-6 w-6">
|
|
117
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
118
|
+
d="M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"/>
|
|
119
|
+
</svg>
|
|
120
|
+
</div>
|
|
121
|
+
</button>
|
|
122
|
+
<button mat-menu-item (click)="sortColumn(column, 'desc')">
|
|
123
|
+
<div class="flex items-center justify-between w-full">
|
|
124
|
+
Sort Descending
|
|
125
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
|
|
126
|
+
stroke-width="1.5" stroke="currentColor"
|
|
127
|
+
class="h-6 w-6">
|
|
128
|
+
<path stroke-linecap="round" stroke-linejoin="round"
|
|
129
|
+
d="M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"/>
|
|
130
|
+
</svg>
|
|
131
|
+
</div>
|
|
132
|
+
</button>
|
|
133
|
+
<ng-template [ngIf]="column.type !== 'id' && editColumns">
|
|
134
|
+
<button mat-menu-item (click)="addColumn(colIndex === 0 ? 0 : colIndex - 1)">
|
|
135
|
+
Insert column before
|
|
136
|
+
</button>
|
|
137
|
+
</ng-template>
|
|
138
|
+
<button *ngIf="editColumns" mat-menu-item (click)="addColumn(colIndex + 1)">Insert column after</button>
|
|
139
|
+
<button *ngIf="editColumns" mat-menu-item (click)="deleteColumn(colIndex)">Delete column</button>
|
|
140
|
+
</mat-menu>
|
|
141
|
+
</th>
|
|
142
|
+
</ng-template>
|
|
143
|
+
</tr>
|
|
144
|
+
</thead>
|
|
145
|
+
<tbody>
|
|
146
|
+
<tr class="table-rows" [ngClass]="{'bg-gray-200 opacity-30': this.deletes.indexOf(rowIndex) > -1,
|
|
147
|
+
'bg-green-50': this.adds.indexOf(rowIndex) > -1, 'bg-indigo-100': this.updates.indexOf(rowIndex) > -1}"
|
|
148
|
+
*ngFor="let row of rows; let rowIndex = index">
|
|
149
|
+
<td class="p-0 row-cell text-center">
|
|
150
|
+
<div class="flex items-center justify-center">
|
|
151
|
+
<input type="checkbox" [(ngModel)]="row._selected" (ngModelChange)="updateSelected()">
|
|
152
|
+
</div>
|
|
153
|
+
</td>
|
|
154
|
+
<ng-template ngFor let-rowColumn [ngForOf]="columns" let-rowColIndex=index>
|
|
155
|
+
<td *ngIf="rowColumn.type === 'id' ? showAutoIncrement : true"
|
|
156
|
+
[ngClass]="{'bg-indigo-50': selectedItem._index === rowColIndex,
|
|
157
|
+
'w-24 bg-gray-100': columns[rowColIndex].type === 'id',
|
|
158
|
+
'bg-gray-100': columns[rowColIndex].keyField && this.adds.indexOf(rowIndex) === -1}"
|
|
159
|
+
class="p-0 row-cell">
|
|
160
|
+
<div
|
|
161
|
+
class="py-1 px-2 h-full w-full border border-transparent input-wrapper flex items-center justify-between relative">
|
|
162
|
+
<input class="p-0 border-none w-full bg-transparent pr-10 cell-input"
|
|
163
|
+
[type]="inputTypeForField(rowColumn)" #field="ngModel"
|
|
164
|
+
[(ngModel)]="row[rowColumn.name]"
|
|
165
|
+
[step]="1"
|
|
166
|
+
[max]="columns[rowColIndex].typeConfig ? columns[rowColIndex].typeConfig.maximumValue : null"
|
|
167
|
+
[min]="columns[rowColIndex].typeConfig ? columns[rowColIndex].typeConfig.minimumValue : null"
|
|
168
|
+
*ngIf="columns[rowColIndex].type !== 'id' && columns[rowColIndex].type !== 'pickfromsource' && columns[rowColIndex].type !== 'boolean' && !columns[rowColIndex].keyField"
|
|
169
|
+
(change)="updateField(rowColumn, rowIndex, $event)"
|
|
170
|
+
(focus)="focusCell($event, rowIndex, rowColIndex)"
|
|
171
|
+
(keyup.enter)="enterCell(rowIndex, rowColIndex, $event)">
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
<input class="p-0 border-none w-full bg-transparent pr-10 cell-input"
|
|
175
|
+
type="checkbox" #field="ngModel"
|
|
176
|
+
[(ngModel)]="row[rowColumn.name]"
|
|
177
|
+
[step]="1"
|
|
178
|
+
*ngIf="columns[rowColIndex].type === 'boolean' && !columns[rowColIndex].keyField"
|
|
179
|
+
(change)="updateField(rowColumn, rowIndex, $event)"
|
|
180
|
+
(focus)="focusCell($event, rowIndex, rowColIndex)"
|
|
181
|
+
(keyup.enter)="enterCell(rowIndex, rowColIndex, $event)">
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
<div
|
|
185
|
+
*ngIf="columns[rowColIndex].type == 'pickfromsource' && columnPickFromDatasets[rowColumn.name]"
|
|
186
|
+
class="w-full pr-10">
|
|
187
|
+
<select
|
|
188
|
+
class="p-0 border-none w-full bg-transparent cell-input outline-none ring-0"
|
|
189
|
+
#field="ngModel"
|
|
190
|
+
[(ngModel)]="row[rowColumn.name]"
|
|
191
|
+
(change)="updateField(field, rowIndex)"
|
|
192
|
+
(focus)="focusCell($event, rowIndex, rowColIndex)"
|
|
193
|
+
(keyup.enter)="enterCell(rowIndex, rowColIndex, $event)">
|
|
194
|
+
<option
|
|
195
|
+
*ngFor="let pickFrom of columnPickFromDatasets[rowColumn.name].allData"
|
|
196
|
+
[value]="pickFrom[rowColumn.typeConfig.valueFieldName]">
|
|
197
|
+
{{pickFrom[rowColumn.typeConfig.labelFieldName]}}
|
|
198
|
+
</option>
|
|
199
|
+
</select>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
<ng-template [ngIf]="columns[rowColIndex].type === 'id'">
|
|
204
|
+
<div
|
|
205
|
+
class="text-gray-500 text-xs">{{ row[rowColumn.name] || '<\generated\>' }}
|
|
206
|
+
</div>
|
|
207
|
+
</ng-template>
|
|
208
|
+
|
|
209
|
+
<ng-template [ngIf]="columns[rowColIndex].keyField">
|
|
210
|
+
<ng-template [ngIf]="this.adds.indexOf(rowIndex) > -1">
|
|
211
|
+
<input class="p-0 border-none w-full bg-transparent pr-5 cell-input"
|
|
212
|
+
type="text" #field="ngModel" [(ngModel)]="row[rowColumn.name]"
|
|
213
|
+
(change)="updateField(field, rowIndex)"
|
|
214
|
+
(focus)="focusCell($event, rowIndex, rowColIndex)"
|
|
215
|
+
(keyup.enter)="enterCell(rowIndex, rowColIndex, $event)">
|
|
216
|
+
</ng-template>
|
|
217
|
+
<ng-template [ngIf]="this.adds.indexOf(rowIndex) === -1">
|
|
218
|
+
<div class="text-gray-500 text-xs">{{ row[rowColumn.name] }}</div>
|
|
219
|
+
</ng-template>
|
|
220
|
+
|
|
221
|
+
</ng-template>
|
|
222
|
+
|
|
223
|
+
<span
|
|
224
|
+
class="absolute material-symbols-outlined right-0 w-10 text-orange-500 text-lg"
|
|
225
|
+
*ngIf="invalidItems[rowIndex] && invalidItems[rowIndex][rowColumn.name]"
|
|
226
|
+
[matTooltip]="invalidItems[rowIndex][rowColumn.name]">warning</span>
|
|
227
|
+
|
|
228
|
+
<button mat-icon-button [matMenuTriggerFor]="menu"
|
|
229
|
+
class="absolute cell-actions" tabindex="-1">
|
|
230
|
+
<mat-icon>more_vert</mat-icon>
|
|
231
|
+
</button>
|
|
232
|
+
<mat-menu #menu="matMenu">
|
|
233
|
+
<button mat-menu-item (click)="addRow(rowIndex + 1)">Add row</button>
|
|
234
|
+
<button mat-menu-item (click)="deleteRow(rowIndex)">Delete row</button>
|
|
235
|
+
<button *ngIf="columns[rowColIndex].type !== 'id'"
|
|
236
|
+
mat-menu-item (click)="clearCell(rowIndex, rowColIndex)">Clear cell
|
|
237
|
+
</button>
|
|
238
|
+
</mat-menu>
|
|
239
|
+
</div>
|
|
240
|
+
|
|
241
|
+
</td>
|
|
242
|
+
</ng-template>
|
|
243
|
+
|
|
244
|
+
</tr>
|
|
245
|
+
</tbody>
|
|
246
|
+
</table>
|
|
247
|
+
<div (click)="addRow()" title="Add Row"
|
|
248
|
+
class="cursor-pointer flex items-center text-sm m-2 p-1 bg-gray-100 rounded-md">
|
|
249
|
+
<button class="ml-2" mat-icon-button color="primary">
|
|
250
|
+
<mat-icon>add_circle</mat-icon>
|
|
251
|
+
</button>
|
|
252
|
+
Add new row
|
|
253
|
+
</div>
|
|
254
|
+
</div>
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
<div class="border-t bg-gray-50 py-2 flex align-center justify-between">
|
|
258
|
+
<button class="ml-2" mat-icon-button color="primary" title="Add Row" (click)="addRow()">
|
|
259
|
+
<mat-icon>add_circle</mat-icon>
|
|
260
|
+
</button>
|
|
261
|
+
<div *ngIf="!editMode" class="flex items-center">
|
|
262
|
+
<div class="text-xs text-gray-400 mr-10">
|
|
263
|
+
Showing {{offset + 1}}
|
|
264
|
+
- {{(page * limit) - (limit - rows.length)}}</div>
|
|
265
|
+
<select [value]="limit" (change)="pageSizeChange($event.target.value)"
|
|
266
|
+
class="mr-8 p-2">
|
|
267
|
+
<option [value]="10">10</option>
|
|
268
|
+
<option [value]="25">25</option>
|
|
269
|
+
<option [value]="50">50</option>
|
|
270
|
+
<option [value]="100">100</option>
|
|
271
|
+
<option [value]="250">250</option>
|
|
272
|
+
<option [value]="1000">1000</option>
|
|
273
|
+
</select>
|
|
274
|
+
<button mat-icon-button class="mr-4" (click)="decreaseOffset()" [disabled]="page <= 1">
|
|
275
|
+
<mat-icon>chevron_left</mat-icon>
|
|
276
|
+
</button>
|
|
277
|
+
<button mat-icon-button (click)="increaseOffset()" [disabled]="endOfResults">
|
|
278
|
+
<mat-icon>chevron_right</mat-icon>
|
|
279
|
+
</button>
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
<div class="border-l border-r bg-gray-50 -ml-2.5">
|
|
286
|
+
<button mat-icon-button color="primary" title="Add Column" (click)="addColumn()"
|
|
287
|
+
class="-mt-0.5">
|
|
288
|
+
<mat-icon>add_circle</mat-icon>
|
|
289
|
+
</button>
|
|
290
|
+
</div>
|
|
291
|
+
|
|
292
|
+
<div *ngIf="Object.keys(selectedItem).length" class="bg-gray-100 w-72 h-full p-3 flex justify-between flex-col">
|
|
293
|
+
<div>
|
|
294
|
+
<div class="uppercase font-medium tracking-wider mb-4 text-xs text-gray-600">
|
|
295
|
+
Settings
|
|
296
|
+
</div>
|
|
297
|
+
|
|
298
|
+
<hr class="my-4">
|
|
299
|
+
|
|
300
|
+
<ng-template [ngIf]="selectedItem._tableType">
|
|
301
|
+
<div class="uppercase font-medium tracking-wider mb-4 text-xs text-gray-600">
|
|
302
|
+
Column
|
|
303
|
+
</div>
|
|
304
|
+
<label *ngIf="datasourceUpdate.instanceImportKey" class="mb-4">
|
|
305
|
+
Column Key
|
|
306
|
+
<input type="text" [(ngModel)]="selectedItem.name" disabled>
|
|
307
|
+
</label>
|
|
308
|
+
<label class="mb-4">
|
|
309
|
+
Column Title
|
|
310
|
+
<input type="text" [(ngModel)]="selectedItem.title" placeholder="Enter column title"
|
|
311
|
+
(change)="updateColumnName()">
|
|
312
|
+
</label>
|
|
313
|
+
|
|
314
|
+
<ng-template [ngIf]="selectedItem.type === 'id'">
|
|
315
|
+
<label class="mb-4">
|
|
316
|
+
Column Type
|
|
317
|
+
<select [(ngModel)]="selectedItem.type" disabled>
|
|
318
|
+
<option [value]="'id'">ID</option>
|
|
319
|
+
</select>
|
|
320
|
+
</label>
|
|
321
|
+
</ng-template>
|
|
322
|
+
|
|
323
|
+
<ng-template [ngIf]="selectedItem.type !== 'id'">
|
|
324
|
+
<label class="mb-4">
|
|
325
|
+
Column Type
|
|
326
|
+
<select [(ngModel)]="selectedItem.type" (ngModelChange)="setTypeConfig()">
|
|
327
|
+
<option [value]="null">-- Select column type --</option>
|
|
328
|
+
<option *ngFor="let type of Object.keys(datasourceTypes)" [value]="type">
|
|
329
|
+
{{ datasourceTypes[type] }}
|
|
330
|
+
</option>
|
|
331
|
+
</select>
|
|
332
|
+
</label>
|
|
333
|
+
</ng-template>
|
|
334
|
+
|
|
335
|
+
<div class="flex items-center gap-2"
|
|
336
|
+
*ngIf="selectedItem.typeConfig && selectedItem.type == 'integer' || selectedItem.type == 'float'">
|
|
337
|
+
<label class="mb-4 w-32">
|
|
338
|
+
Minimum Value
|
|
339
|
+
<input type="number" class="py-1 px-2"
|
|
340
|
+
[(ngModel)]="selectedItem.typeConfig.minimumValue" placeholder="Enter value" />
|
|
341
|
+
</label>
|
|
342
|
+
|
|
343
|
+
<label class="mb-4 w-32">
|
|
344
|
+
Maximum Value
|
|
345
|
+
<input type="number" class="py-1 px-2"
|
|
346
|
+
[(ngModel)]="selectedItem.typeConfig.maximumValue" placeholder="Enter value" />
|
|
347
|
+
</label>
|
|
348
|
+
</div>
|
|
349
|
+
|
|
350
|
+
<div *ngIf="selectedItem.type == 'pickfromsource'" class="mb-4">
|
|
351
|
+
|
|
352
|
+
<div *ngIf="selectedItem.typeConfig && columnPickFromDatasets[selectedItem.name]"
|
|
353
|
+
class="mb-4">
|
|
354
|
+
Datasource: <span
|
|
355
|
+
class="text-gray-500">{{ columnPickFromDatasets[selectedItem.name].instanceTitle }}</span>
|
|
356
|
+
</div>
|
|
357
|
+
|
|
358
|
+
<button mat-flat-button color="primary" (click)="selectColumnPickFromDatasource(selectedItem)">
|
|
359
|
+
Select Datasource
|
|
360
|
+
</button>
|
|
361
|
+
|
|
362
|
+
<div *ngIf="selectedItem.typeConfig && columnPickFromDatasets[selectedItem.name]" class="mt-4">
|
|
363
|
+
|
|
364
|
+
<label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
|
|
365
|
+
Label column
|
|
366
|
+
</label>
|
|
367
|
+
<div class="mt-1 sm:col-span-2 sm:mt-0">
|
|
368
|
+
<select [(ngModel)]="selectedItem.typeConfig.labelFieldName"
|
|
369
|
+
class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm py-1 px-2">
|
|
370
|
+
<option *ngFor="let column of columnPickFromDatasets[selectedItem.name].columns"
|
|
371
|
+
[value]="column.name">
|
|
372
|
+
{{column.title}}
|
|
373
|
+
</option>
|
|
374
|
+
</select>
|
|
375
|
+
</div>
|
|
376
|
+
|
|
377
|
+
<label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
|
|
378
|
+
Value column
|
|
379
|
+
</label>
|
|
380
|
+
<div class="mt-1 sm:col-span-2 sm:mt-0">
|
|
381
|
+
<select [(ngModel)]="selectedItem.typeConfig.valueFieldName"
|
|
382
|
+
class="block w-full max-w-lg rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:max-w-xs sm:text-sm py-1 px-2">
|
|
383
|
+
<option *ngFor="let column of columnPickFromDatasets[selectedItem.name].columns"
|
|
384
|
+
[value]="column.name">
|
|
385
|
+
{{column.title}}
|
|
386
|
+
</option>
|
|
387
|
+
</select>
|
|
388
|
+
</div>
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
</div>
|
|
392
|
+
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
<div>
|
|
397
|
+
<mat-checkbox class="mb-4"
|
|
398
|
+
[(ngModel)]="selectedItem.required">
|
|
399
|
+
Required
|
|
400
|
+
</mat-checkbox>
|
|
401
|
+
</div>
|
|
402
|
+
|
|
403
|
+
<div>
|
|
404
|
+
<mat-checkbox class="mb-4"
|
|
405
|
+
[(ngModel)]="selectedItem.valueExpressionOnNullOnly" (change)="!($event.checked) ? selectedItem.valueExpression = '' : null">
|
|
406
|
+
Has Default Value
|
|
407
|
+
</mat-checkbox>
|
|
408
|
+
</div>
|
|
409
|
+
|
|
410
|
+
<label *ngIf="selectedItem.valueExpressionOnNullOnly" class="mb-4">
|
|
411
|
+
Default Value
|
|
412
|
+
<input type="text" [(ngModel)]="selectedItem.valueExpression" placeholder="Enter default value">
|
|
413
|
+
</label>
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
<div>
|
|
417
|
+
<button mat-button color="warn" (click)="deleteSelectedColumn()">Delete Column</button>
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
<hr class="my-4">
|
|
421
|
+
</ng-template>
|
|
422
|
+
</div>
|
|
423
|
+
|
|
424
|
+
<button mat-flat-button color="primary" (click)="save(true)">
|
|
425
|
+
Save & Exit
|
|
426
|
+
</button>
|
|
427
|
+
</div>
|
|
428
|
+
</div>
|
|
429
|
+
|
|
430
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
:host
|
|
2
|
+
display: block
|
|
3
|
+
background-color: white
|
|
4
|
+
height: calc(100vh - 104px)
|
|
5
|
+
|
|
6
|
+
.divider
|
|
7
|
+
width: 1px
|
|
8
|
+
height: 36px
|
|
9
|
+
background-color: #cecece
|
|
10
|
+
|
|
11
|
+
.action-toolbar
|
|
12
|
+
display: flex
|
|
13
|
+
align-items: center
|
|
14
|
+
flex-wrap: wrap
|
|
15
|
+
width: 100%
|
|
16
|
+
justify-content: flex-end
|
|
17
|
+
background-color: #fff
|
|
18
|
+
border-bottom: 1px solid #ddd
|
|
19
|
+
button
|
|
20
|
+
min-width: 50px
|
|
21
|
+
padding: 0 13px
|
|
22
|
+
color: #505050
|
|
23
|
+
|
|
24
|
+
.cell-header
|
|
25
|
+
width: 100%
|
|
26
|
+
display: flex
|
|
27
|
+
align-items: center
|
|
28
|
+
justify-content: space-between
|
|
29
|
+
&.end
|
|
30
|
+
justify-content: flex-end
|
|
31
|
+
&.sorting
|
|
32
|
+
min-height: 43px
|
|
33
|
+
|
|
34
|
+
.transformation-listing
|
|
35
|
+
display: flex
|
|
36
|
+
align-items: center
|
|
37
|
+
width: 100%
|
|
38
|
+
background-color: rgba(0,0,0,.07)
|
|
39
|
+
border-bottom: 1px solid #ddd
|
|
40
|
+
min-height: 47px
|
|
41
|
+
.list-title
|
|
42
|
+
text-transform: uppercase
|
|
43
|
+
font-size: .75rem
|
|
44
|
+
padding: 0 1rem
|
|
45
|
+
border-right: 2px solid #ddd
|
|
46
|
+
color: #4c4c4c
|
|
47
|
+
font-weight: 500
|
|
48
|
+
letter-spacing: 1px
|
|
49
|
+
.badge-item
|
|
50
|
+
display: flex
|
|
51
|
+
align-items: center
|
|
52
|
+
margin-left: 1rem
|
|
53
|
+
padding-left: 1rem
|
|
54
|
+
border-radius: 20px
|
|
55
|
+
background-color: white
|
|
56
|
+
border: 1px solid #ddd
|
|
57
|
+
height: 30px
|
|
58
|
+
&.exclude
|
|
59
|
+
opacity: .8
|
|
60
|
+
&:hover
|
|
61
|
+
background-color: #fcfcfc
|
|
62
|
+
span
|
|
63
|
+
margin-right: .5rem
|
|
64
|
+
color: rgba(0,0,0,0.54)
|
|
65
|
+
button.mat-icon-button
|
|
66
|
+
width: 33px
|
|
67
|
+
height: 33px
|
|
68
|
+
line-height: 33px
|
|
69
|
+
mat-icon
|
|
70
|
+
font-size: 20px
|
|
71
|
+
height: 20px
|
|
72
|
+
width: 20px
|
|
73
|
+
line-height: 20px
|
|
74
|
+
color: rgba(0,0,0,0.54)
|
|
75
|
+
|
|
76
|
+
.dataset-filters
|
|
77
|
+
position: relative
|
|
78
|
+
overflow-y: scroll
|
|
79
|
+
flex: none !important
|
|
80
|
+
max-height: 400px
|
|
81
|
+
.dataset-filter
|
|
82
|
+
position: relative
|
|
83
|
+
.apply-filter
|
|
84
|
+
position: absolute
|
|
85
|
+
bottom: .5rem
|
|
86
|
+
right: 0
|
|
87
|
+
z-index: 10
|
|
88
|
+
.remove-filter
|
|
89
|
+
position: absolute
|
|
90
|
+
top: .5rem
|
|
91
|
+
right: 0
|
|
92
|
+
z-index: 10
|
|
93
|
+
|
|
94
|
+
.create-datasource-container
|
|
95
|
+
min-width: 1024px
|
|
96
|
+
height: calc(100% - 49px)
|
|
97
|
+
.table-scroll
|
|
98
|
+
&::-webkit-scrollbar
|
|
99
|
+
width: .75em
|
|
100
|
+
background: transparent
|
|
101
|
+
&::-webkit-scrollbar-thumb
|
|
102
|
+
background: #d2d2d2
|
|
103
|
+
.add-column
|
|
104
|
+
position: absolute
|
|
105
|
+
top: 0
|
|
106
|
+
right: 0
|
|
107
|
+
.create-datasource
|
|
108
|
+
margin-left: -1px
|
|
109
|
+
margin-top: -1px
|
|
110
|
+
display: flex
|
|
111
|
+
flex-direction: column
|
|
112
|
+
justify-content: space-between
|
|
113
|
+
height: 100%
|
|
114
|
+
table.datasource-table
|
|
115
|
+
td, th
|
|
116
|
+
border: 1px solid #ddd
|
|
117
|
+
vertical-align: middle
|
|
118
|
+
padding: .5rem
|
|
119
|
+
th
|
|
120
|
+
font-weight: 500
|
|
121
|
+
//background-color: whitesmoke
|
|
122
|
+
.header-title
|
|
123
|
+
min-height: 20px
|
|
124
|
+
display: flex
|
|
125
|
+
align-items: center
|
|
126
|
+
mat-icon
|
|
127
|
+
height: 20px
|
|
128
|
+
width: 20px
|
|
129
|
+
font-size: 20px
|
|
130
|
+
line-height: 20px
|
|
131
|
+
color: rgba(255, 196, 0, 0.7)
|
|
132
|
+
button.header-actions
|
|
133
|
+
width: 30px
|
|
134
|
+
height: 30px
|
|
135
|
+
line-height: 30px
|
|
136
|
+
top: 50%
|
|
137
|
+
transform: translateY(-50%)
|
|
138
|
+
right: 0
|
|
139
|
+
color: gray
|
|
140
|
+
mat-icon
|
|
141
|
+
line-height: 20px
|
|
142
|
+
height: 20px
|
|
143
|
+
width: 20px
|
|
144
|
+
font-size: 20px
|
|
145
|
+
.input-wrapper
|
|
146
|
+
button.cell-actions
|
|
147
|
+
width: 30px
|
|
148
|
+
height: 30px
|
|
149
|
+
line-height: 30px
|
|
150
|
+
top: 50%
|
|
151
|
+
transform: translateY(-50%)
|
|
152
|
+
right: 0
|
|
153
|
+
color: gray
|
|
154
|
+
display: none
|
|
155
|
+
mat-icon
|
|
156
|
+
line-height: 20px
|
|
157
|
+
height: 20px
|
|
158
|
+
width: 20px
|
|
159
|
+
font-size: 20px
|
|
160
|
+
&:hover
|
|
161
|
+
button.cell-actions
|
|
162
|
+
display: block
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { CreateDatasourceComponent } from './create-datasource.component';
|
|
4
|
+
|
|
5
|
+
describe('CreateDatasourceComponent', () => {
|
|
6
|
+
let component: CreateDatasourceComponent;
|
|
7
|
+
let fixture: ComponentFixture<CreateDatasourceComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ CreateDatasourceComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(CreateDatasourceComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|