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
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TableCellFormatterComponent } from './table-cell-formatter.component';
|
|
4
|
+
|
|
5
|
+
describe('TableCellFormatterComponent', () => {
|
|
6
|
+
let component: TableCellFormatterComponent;
|
|
7
|
+
let fixture: ComponentFixture<TableCellFormatterComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ TableCellFormatterComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(TableCellFormatterComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import {Component, Input, OnInit} from '@angular/core';
|
|
2
|
+
import moment from 'moment';
|
|
3
|
+
import {DashboardService} from '../../../../services/dashboard.service';
|
|
4
|
+
import * as lodash from 'lodash';
|
|
5
|
+
const _ = lodash.default;
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'ki-table-cell-formatter',
|
|
9
|
+
templateUrl: './table-cell-formatter.component.html',
|
|
10
|
+
styleUrls: ['./table-cell-formatter.component.sass']
|
|
11
|
+
})
|
|
12
|
+
export class TableCellFormatterComponent implements OnInit {
|
|
13
|
+
|
|
14
|
+
@Input() type: string;
|
|
15
|
+
@Input() data: any = {};
|
|
16
|
+
@Input() currencies: any = [];
|
|
17
|
+
@Input() openSide: any;
|
|
18
|
+
@Input() dataset: any;
|
|
19
|
+
@Input() dashboards: any = [];
|
|
20
|
+
@Input() sharedDashboards: any = [];
|
|
21
|
+
@Input() privateDashboards: any = [];
|
|
22
|
+
@Input() dashboardParameters: any = [];
|
|
23
|
+
@Input() actionEvents: any = [];
|
|
24
|
+
|
|
25
|
+
public dateFormats: any = [
|
|
26
|
+
{
|
|
27
|
+
title: 'None',
|
|
28
|
+
value: null
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: moment().format('dddd, D MMMM YYYY'),
|
|
32
|
+
value: 'dddd, D MMMM YYYY'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: moment().format('ddd, D MMM YYYY'),
|
|
36
|
+
value: 'ddd, D MMM YYYY'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: moment().format('D MMMM YYYY'),
|
|
40
|
+
value: 'D MMMM YYYY'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: moment().format('D MMM YYYY'),
|
|
44
|
+
value: 'D MMM YYYY'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
title: moment().format('D MMMM'),
|
|
48
|
+
value: 'D MMMM'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: moment().format('MMM D'),
|
|
52
|
+
value: 'MMM D'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: moment().format('MMMM YYYY'),
|
|
56
|
+
value: 'MMMM YYYY'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: moment().format('MMMM'),
|
|
60
|
+
value: 'MMMM'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: moment().format('YYYY'),
|
|
64
|
+
value: 'YYYY'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: moment().format('D/M/YYYY'),
|
|
68
|
+
value: 'D/M/YYYY'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
title: moment().format('DD/MM/YYYY'),
|
|
72
|
+
value: 'DD/MM/YYYY'
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
title: moment().format('YYYY-MM-DD'),
|
|
76
|
+
value: 'YYYY-MM-DD'
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
public timeFormats: any = [
|
|
80
|
+
{
|
|
81
|
+
title: 'None',
|
|
82
|
+
value: null
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: moment().format('h a'),
|
|
86
|
+
value: 'ha'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
title: moment().format('h:mm a'),
|
|
90
|
+
value: 'h:mm a'
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
title: moment().format('h:mm:ss a'),
|
|
94
|
+
value: 'h:mm:ss a'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title: moment().format('HH:mm'),
|
|
98
|
+
value: 'HH:mm'
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: moment().format('HH:mm:ss'),
|
|
102
|
+
value: 'HH:mm:ss'
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
constructor(private dashboardService: DashboardService) {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
ngOnInit(): void {
|
|
110
|
+
if (this.data.linkType === 'dashboard' && this.data.dashboardLink) {
|
|
111
|
+
this.dashboardParamUpdate(this.data.dashboardLink);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
public selectOption(c1: any, c2: any) {
|
|
116
|
+
if (!c2) {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
return c1.value === c2.value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
public ctaSelectOption(c1: any, c2: any) {
|
|
123
|
+
return c1 === c2;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
public setDecimalValue(value) {
|
|
127
|
+
if (value === 'undefined') {
|
|
128
|
+
delete this.data.decimal;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
public async dashboardParamUpdate(selection) {
|
|
133
|
+
if (!this.data.dashboardLinkParams || Array.isArray(this.data.dashboardLinkParams)) {
|
|
134
|
+
this.data.dashboardLinkParams = {};
|
|
135
|
+
}
|
|
136
|
+
const dashboard: any = await this.dashboardService.getDashboard(selection.value);
|
|
137
|
+
if (dashboard.layoutSettings.parameters) {
|
|
138
|
+
this.dashboardParameters = _.values(dashboard.layoutSettings.parameters);
|
|
139
|
+
|
|
140
|
+
setTimeout(() => {
|
|
141
|
+
const el = document.getElementsByClassName('dashboard-param-pick').item(0);
|
|
142
|
+
if (el) {
|
|
143
|
+
el.scrollIntoView();
|
|
144
|
+
}
|
|
145
|
+
}, 0);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"nodes": {
|
|
3
|
+
"borderWidth": {
|
|
4
|
+
"type": "number"
|
|
5
|
+
},
|
|
6
|
+
"borderWidthSelected": {
|
|
7
|
+
"type": "number"
|
|
8
|
+
},
|
|
9
|
+
"brokenImage": {
|
|
10
|
+
"type": "text"
|
|
11
|
+
},
|
|
12
|
+
"chosen": {
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
"color": {
|
|
16
|
+
"type": "text"
|
|
17
|
+
},
|
|
18
|
+
"opacity": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
},
|
|
21
|
+
"fixed": {
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
},
|
|
24
|
+
"font": {
|
|
25
|
+
"type": "text"
|
|
26
|
+
},
|
|
27
|
+
"group": {
|
|
28
|
+
"type": "text"
|
|
29
|
+
},
|
|
30
|
+
"heightConstraint": {
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
},
|
|
33
|
+
"hidden": {
|
|
34
|
+
"type": "boolean"
|
|
35
|
+
},
|
|
36
|
+
"labelHighlightBold": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"level": {
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
"mass": {
|
|
43
|
+
"type": "number"
|
|
44
|
+
},
|
|
45
|
+
"physics": {
|
|
46
|
+
"type": "boolean"
|
|
47
|
+
},
|
|
48
|
+
"shadow": {
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"shape": {
|
|
52
|
+
"type": "text"
|
|
53
|
+
},
|
|
54
|
+
"size": {
|
|
55
|
+
"type": "number"
|
|
56
|
+
},
|
|
57
|
+
"title": {
|
|
58
|
+
"type": "text"
|
|
59
|
+
},
|
|
60
|
+
"value": {
|
|
61
|
+
"type": "number"
|
|
62
|
+
},
|
|
63
|
+
"widthConstraint": {
|
|
64
|
+
"type": "boolean"
|
|
65
|
+
},
|
|
66
|
+
"x": {
|
|
67
|
+
"type": "number"
|
|
68
|
+
},
|
|
69
|
+
"y": {
|
|
70
|
+
"type": "number"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"edges": {
|
|
74
|
+
"arrows": {
|
|
75
|
+
"type": "text"
|
|
76
|
+
},
|
|
77
|
+
"arrowStrikethrough": {
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"chosen": {
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"color": {
|
|
84
|
+
"type": "text"
|
|
85
|
+
},
|
|
86
|
+
"dashes": {
|
|
87
|
+
"type": "boolean"
|
|
88
|
+
},
|
|
89
|
+
"font": {
|
|
90
|
+
"type": "text"
|
|
91
|
+
},
|
|
92
|
+
"hidden": {
|
|
93
|
+
"type": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"hoverWidth": {
|
|
96
|
+
"type": "number"
|
|
97
|
+
},
|
|
98
|
+
"label": {
|
|
99
|
+
"type": "text"
|
|
100
|
+
},
|
|
101
|
+
"labelHighlightBold": {
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
"length": {
|
|
105
|
+
"type": "number"
|
|
106
|
+
},
|
|
107
|
+
"physics": {
|
|
108
|
+
"type": "boolean"
|
|
109
|
+
},
|
|
110
|
+
"selectionWidth": {
|
|
111
|
+
"type": "number"
|
|
112
|
+
},
|
|
113
|
+
"selfReferenceSize": {
|
|
114
|
+
"type": "number"
|
|
115
|
+
},
|
|
116
|
+
"shadow": {
|
|
117
|
+
"type": "boolean"
|
|
118
|
+
},
|
|
119
|
+
"smooth": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"title": {
|
|
123
|
+
"type": "text"
|
|
124
|
+
},
|
|
125
|
+
"value": {
|
|
126
|
+
"type": "number"
|
|
127
|
+
},
|
|
128
|
+
"width": {
|
|
129
|
+
"type": "number"
|
|
130
|
+
},
|
|
131
|
+
"widthConstraint": {
|
|
132
|
+
"type": "boolean"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
<ng-template [ngIf]="true">
|
|
2
|
+
|
|
3
|
+
<div class="align-center justify-between flex-wrap bg-white px-2 border-b border-gray-200">
|
|
4
|
+
<div *ngIf="editDashboardTitle" class="align-center ml-2">
|
|
5
|
+
<input type="text" class="title-input py-1.5" placeholder="Enter dashboard title" [(ngModel)]="dashboard.title"
|
|
6
|
+
[ngClass]="{'border-red-600': !dashboard.title || dashboard.title === 'New Dashboard'}">
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
<div *ngIf="!editDashboardTitle" class="align-center ml-2">
|
|
10
|
+
<h2 class="dashboard-title">{{dashboard.title}}</h2>
|
|
11
|
+
<button mat-icon-button (click)="editDashboardTitle = true;">
|
|
12
|
+
<span class="material-symbols-outlined">edit</span>
|
|
13
|
+
</button>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div class="data-actions">
|
|
17
|
+
<mat-radio-group class="dashboard-operations flex items-center text-sm"
|
|
18
|
+
*ngIf="admin" aria-label="Select a scope" [(ngModel)]="accountId">
|
|
19
|
+
<mat-radio-button class="mt-0" [value]="null">Shared</mat-radio-button>
|
|
20
|
+
<mat-radio-button class="mt-0 ml-2" [value]="0">Private</mat-radio-button>
|
|
21
|
+
</mat-radio-group>
|
|
22
|
+
<div class="divider" *ngIf="admin"></div>
|
|
23
|
+
<button matTooltip="Toggle setting to enable/remove results limit" (click)="togglePerformance()"
|
|
24
|
+
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">
|
|
25
|
+
<span class="text-xl material-symbols-outlined" *ngIf="optimise">check_circle</span>
|
|
26
|
+
<span class="text-xl material-symbols-outlined" *ngIf="!optimise">unpublished</span>
|
|
27
|
+
optimise
|
|
28
|
+
</button>
|
|
29
|
+
<button matTooltip="Edit dashboard settings" (click)="openSettings()"
|
|
30
|
+
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">
|
|
31
|
+
<span class="material-symbols-outlined text-xl">tune</span>
|
|
32
|
+
settings
|
|
33
|
+
</button>
|
|
34
|
+
<button (click)="toggleNotifications()" matTooltip="Edit default notification group"
|
|
35
|
+
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">
|
|
36
|
+
<span class="material-symbols-outlined text-xl" *ngIf="!dashboard.alertsEnabled"
|
|
37
|
+
title="Notifications for this dashboard are now off. Press to toggle on.">notifications_off
|
|
38
|
+
</span>
|
|
39
|
+
<span class="material-symbols-outlined text-xl" *ngIf="dashboard.alertsEnabled"
|
|
40
|
+
title="Notifications for this dashboard are on. Press to toggle off.">notifications_active
|
|
41
|
+
</span>
|
|
42
|
+
notifications
|
|
43
|
+
</button>
|
|
44
|
+
<button [matMenuTriggerFor]="spacingMenu" matTooltip="Set dashboard item spacing"
|
|
45
|
+
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">
|
|
46
|
+
<span class="material-symbols-outlined text-xl">grid_view</span>
|
|
47
|
+
spacing
|
|
48
|
+
</button>
|
|
49
|
+
<mat-menu #spacingMenu="matMenu">
|
|
50
|
+
<button mat-menu-item *ngFor="let space of gridSpaces" (click)="updateGridSpacing(space.value)">
|
|
51
|
+
{{space.label}}
|
|
52
|
+
</button>
|
|
53
|
+
</mat-menu>
|
|
54
|
+
<button (click)="openFullScreen()" matTooltip="View full screen"
|
|
55
|
+
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">
|
|
56
|
+
<span class="material-symbols-outlined text-xl">fullscreen</span>
|
|
57
|
+
full screen
|
|
58
|
+
</button>
|
|
59
|
+
<button (click)="editDashboardItems()" matTooltip="Show/hide dashboard widget panel"
|
|
60
|
+
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">
|
|
61
|
+
<span class="material-symbols-outlined text-xl">widgets</span>
|
|
62
|
+
widgets
|
|
63
|
+
</button>
|
|
64
|
+
<div class="divider"></div>
|
|
65
|
+
<button (click)="reloadDashboard()"
|
|
66
|
+
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">
|
|
67
|
+
<span class="material-symbols-outlined text-xl">sync</span>
|
|
68
|
+
reload
|
|
69
|
+
</button>
|
|
70
|
+
<button (click)="save()"
|
|
71
|
+
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">
|
|
72
|
+
<span class="material-symbols-outlined text-xl">save</span>
|
|
73
|
+
save
|
|
74
|
+
</button>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
<div class="dashboard-parameters flex-wrap bg-gray-50 px-4 py-0.5 border-b border-gray-200" *ngIf="dashboard.layoutSettings">
|
|
80
|
+
|
|
81
|
+
<div class="list-title">
|
|
82
|
+
Parameters
|
|
83
|
+
</div>
|
|
84
|
+
<ng-template ngFor let-parameter [ngForOf]="_.values(dashboard.layoutSettings.parameters)" let-i=index>
|
|
85
|
+
<label>
|
|
86
|
+
{{parameter.title}}
|
|
87
|
+
<div class="parameter-input">
|
|
88
|
+
<ng-template [ngIf]="parameter.type === 'text'">
|
|
89
|
+
<input type="text" placeholder="Enter {{parameter.title}}" [(ngModel)]="parameter.value"
|
|
90
|
+
(keyup.enter)="reloadDashboard()" required autofocus>
|
|
91
|
+
</ng-template>
|
|
92
|
+
<ng-template [ngIf]="parameter.type === 'numeric'">
|
|
93
|
+
<input type="number" placeholder="Enter {{parameter.title}}" [(ngModel)]="parameter.value"
|
|
94
|
+
(keyup.enter)="reloadDashboard()" required autofocus>
|
|
95
|
+
</ng-template>
|
|
96
|
+
<ng-template [ngIf]="parameter.type === 'list'">
|
|
97
|
+
<select class="pr-8 py-1.5 pl-1" [(ngModel)]="parameter.value"
|
|
98
|
+
(change)="reloadDashboard()" required autofocus>
|
|
99
|
+
<option *ngFor="let item of parameter.list" [value]="item.value">{{item.label}}</option>
|
|
100
|
+
</select>
|
|
101
|
+
</ng-template>
|
|
102
|
+
<ng-template [ngIf]="parameter.type === 'date' || parameter.type === 'datetime'">
|
|
103
|
+
<ng-template [ngIf]="!parameter._dateType">
|
|
104
|
+
<div class="flex items-center">
|
|
105
|
+
<button (click)="changeDateType($event, parameter, 'picker')"
|
|
106
|
+
class="hover:bg-gray-50 text-gray-800 border border-gray-300 py-0.5 pr-2 rounded mr-2 bg-white flex items-center">
|
|
107
|
+
<span class="material-symbols-outlined text-base mx-1">calendar_month</span>
|
|
108
|
+
Date Picker
|
|
109
|
+
</button>
|
|
110
|
+
<button (click)="changeDateType($event, parameter, 'period')"
|
|
111
|
+
class="hover:bg-gray-50 text-gray-800 border border-gray-300 py-0.5 pr-2 rounded bg-white flex items-center">
|
|
112
|
+
<span class="material-symbols-outlined text-base mx-1">restore</span>
|
|
113
|
+
Time Period
|
|
114
|
+
</button>
|
|
115
|
+
</div>
|
|
116
|
+
</ng-template>
|
|
117
|
+
<ng-template [ngIf]="parameter._dateType === 'picker'">
|
|
118
|
+
<input [type]="parameter.type === 'date' ? 'date' : 'datetime-local'" placeholder="Enter {{parameter.title}}" [(ngModel)]="parameter.value"
|
|
119
|
+
(keyup.enter)="reloadDashboard()" required autofocus>
|
|
120
|
+
|
|
121
|
+
<a (click)="changeDateType($event, parameter, 'period')"
|
|
122
|
+
matTooltip="Time Period"
|
|
123
|
+
class="text-center ml-2 hover:bg-gray-50 text-gray-800 border border-gray-300 py-0.5 pr-0.5 rounded mr-2 bg-white flex items-center">
|
|
124
|
+
<span class="material-symbols-outlined text-base ml-1.5 mr-1">restore</span>
|
|
125
|
+
</a>
|
|
126
|
+
</ng-template>
|
|
127
|
+
<ng-template [ngIf]="parameter._dateType === 'period'">
|
|
128
|
+
<div class="flex items-center">
|
|
129
|
+
<input #periodValue type="number" placeholder="No." required autofocus
|
|
130
|
+
class="w-16 mr-2" min="0" [value]="parameter._periodValue || 1"
|
|
131
|
+
(change)="updatePeriodValue(periodValue.value, period.value, parameter)">
|
|
132
|
+
|
|
133
|
+
<select class="param-period-picker mr-2" [value]="parameter._period || 'DAYS'"
|
|
134
|
+
#period (change)="updatePeriodValue(periodValue.value, period.value, parameter)">
|
|
135
|
+
<option value="DAYS">Days</option>
|
|
136
|
+
<option value="HOURS">Hours</option>
|
|
137
|
+
</select>
|
|
138
|
+
|
|
139
|
+
<div>Ago</div>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
<a (click)="changeDateType($event, parameter, 'picker')"
|
|
143
|
+
matTooltip="Date Picker"
|
|
144
|
+
class="text-center ml-2 hover:bg-gray-50 text-gray-800 border border-gray-300 py-0.5 pr-0.5 rounded mr-2 bg-white flex items-center">
|
|
145
|
+
<span class="material-symbols-outlined text-base">calendar_month</span>
|
|
146
|
+
</a>
|
|
147
|
+
</ng-template>
|
|
148
|
+
|
|
149
|
+
</ng-template>
|
|
150
|
+
<ng-template [ngIf]="parameter.type === 'boolean'">
|
|
151
|
+
<mat-slide-toggle class="pr-4" color="primary"
|
|
152
|
+
[checked]="parameter.value" (change)="booleanUpdate($event, parameter)"
|
|
153
|
+
required></mat-slide-toggle>
|
|
154
|
+
</ng-template>
|
|
155
|
+
<ng-template [ngIf]="!parameter._locked">
|
|
156
|
+
<button mat-icon-button [matMenuTriggerFor]="paramMenu">
|
|
157
|
+
<span class="material-symbols-outlined">settings</span>
|
|
158
|
+
</button>
|
|
159
|
+
<mat-menu #paramMenu="matMenu">
|
|
160
|
+
<button mat-menu-item (click)="addParameter(parameter, i)">Edit Parameter</button>
|
|
161
|
+
<button mat-menu-item (click)="removeParameter(parameter)">Remove Parameter</button>
|
|
162
|
+
</mat-menu>
|
|
163
|
+
</ng-template>
|
|
164
|
+
</div>
|
|
165
|
+
</label>
|
|
166
|
+
|
|
167
|
+
<div class="divider ml-2" *ngIf="_.values(dashboard.layoutSettings.parameters).length"></div>
|
|
168
|
+
</ng-template>
|
|
169
|
+
<button mat-icon-button color="primary" class="mx-2" (click)="addParameter()">
|
|
170
|
+
<span class="material-symbols-outlined">add_circle</span>
|
|
171
|
+
</button>
|
|
172
|
+
<button mat-flat-button color="primary" class="mr-2 leading-8" *ngIf="_.values(dashboard.layoutSettings.parameters).length"
|
|
173
|
+
(click)="reloadDashboard()">
|
|
174
|
+
Apply Parameters
|
|
175
|
+
</button>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
</ng-template>
|
|
179
|
+
<div class="grid-container flex justify-between">
|
|
180
|
+
<div class="grid-stack flex-1 h-full"></div>
|
|
181
|
+
<div class="right-panel bg-transparent" [ngClass]="{show: showEditPanel}">
|
|
182
|
+
<div class="flex items-center justify-between border-b mb-4">
|
|
183
|
+
<div class="pl-4 available-widgets">Available Widgets</div>
|
|
184
|
+
<button mat-icon-button color="primary" (click)="editDashboardItems()">
|
|
185
|
+
<span class="material-symbols-outlined">close</span>
|
|
186
|
+
</button>
|
|
187
|
+
</div>
|
|
188
|
+
<ng-template ngFor let-group [ngForOf]="itemTypeGroups" let-j=index>
|
|
189
|
+
<div class="pl-4 uppercase text-xs text-gray-600 tracking-wider">{{group}}</div>
|
|
190
|
+
<div class="draggable-toolbar">
|
|
191
|
+
<ng-template ngFor let-item [ngForOf]="itemTypesByGroup[group]" let-i=index>
|
|
192
|
+
<div class="grid-stack-item ui-draggable" [attr.gs-w]="item.width"
|
|
193
|
+
[attr.gs-h]="item.height" [attr.data-index]="i" [attr.data-group]="group">
|
|
194
|
+
<div class="grid-stack-item-content shadow" draggable="true">
|
|
195
|
+
<ki-item-component class="p-0 justify-center text-sm" [dragItem]="true"
|
|
196
|
+
[dashboardItemType]="item"></ki-item-component>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
</ng-template>
|
|
200
|
+
</div>
|
|
201
|
+
</ng-template>
|
|
202
|
+
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
|