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.
Files changed (315) hide show
  1. package/README.md +24 -0
  2. package/karma.conf.js +44 -0
  3. package/ng-package.json +7 -0
  4. package/package.json +11 -0
  5. package/src/lib/components/alert-groups/alert-groups.component.html +140 -0
  6. package/src/lib/components/alert-groups/alert-groups.component.sass +4 -0
  7. package/src/lib/components/alert-groups/alert-groups.component.spec.ts +25 -0
  8. package/src/lib/components/alert-groups/alert-groups.component.ts +86 -0
  9. package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.html +91 -0
  10. package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.sass +2 -0
  11. package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.spec.ts +25 -0
  12. package/src/lib/components/alert-groups/edit-alert-group/edit-alert-group.component.ts +78 -0
  13. package/src/lib/components/dashboard-editor/configure-item/configure-item.component.html +2006 -0
  14. package/src/lib/components/dashboard-editor/configure-item/configure-item.component.sass +106 -0
  15. package/src/lib/components/dashboard-editor/configure-item/configure-item.component.spec.ts +25 -0
  16. package/src/lib/components/dashboard-editor/configure-item/configure-item.component.ts +967 -0
  17. package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.html +81 -0
  18. package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.sass +0 -0
  19. package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.spec.ts +25 -0
  20. package/src/lib/components/dashboard-editor/configure-item/edit-dashboard-alert/edit-dashboard-alert.component.ts +48 -0
  21. package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.html +142 -0
  22. package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.sass +0 -0
  23. package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.spec.ts +25 -0
  24. package/src/lib/components/dashboard-editor/configure-item/html-documentation/html-documentation.component.ts +117 -0
  25. package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.html +224 -0
  26. package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.sass +0 -0
  27. package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.spec.ts +25 -0
  28. package/src/lib/components/dashboard-editor/configure-item/table-cell-formatter/table-cell-formatter.component.ts +149 -0
  29. package/src/lib/components/dashboard-editor/configure-item/vis-network-options.json +135 -0
  30. package/src/lib/components/dashboard-editor/dashboard-editor.component.html +205 -0
  31. package/src/lib/components/dashboard-editor/dashboard-editor.component.sass +247 -0
  32. package/src/lib/components/dashboard-editor/dashboard-editor.component.spec.ts +25 -0
  33. package/src/lib/components/dashboard-editor/dashboard-editor.component.ts +645 -0
  34. package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.html +1 -0
  35. package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.sass +0 -0
  36. package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.spec.ts +25 -0
  37. package/src/lib/components/dashboard-editor/dashboard-parameter/dashboard-parameter.component.ts +16 -0
  38. package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.html +167 -0
  39. package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.sass +0 -0
  40. package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.spec.ts +23 -0
  41. package/src/lib/components/dashboard-editor/dashboard-settings/dashboard-settings.component.ts +47 -0
  42. package/src/lib/components/dashboard-editor/item-component/item-component.component.html +486 -0
  43. package/src/lib/components/dashboard-editor/item-component/item-component.component.sass +137 -0
  44. package/src/lib/components/dashboard-editor/item-component/item-component.component.spec.ts +25 -0
  45. package/src/lib/components/dashboard-editor/item-component/item-component.component.ts +1381 -0
  46. package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.html +48 -0
  47. package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.sass +3 -0
  48. package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.spec.ts +25 -0
  49. package/src/lib/components/dashboard-editor/source-selector-dialog/source-selector-dialog.component.ts +111 -0
  50. package/src/lib/components/dashboards/dashboards.component.html +175 -0
  51. package/src/lib/components/dashboards/dashboards.component.sass +64 -0
  52. package/src/lib/components/dashboards/dashboards.component.spec.ts +25 -0
  53. package/src/lib/components/dashboards/dashboards.component.ts +176 -0
  54. package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.html +138 -0
  55. package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.sass +284 -0
  56. package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.spec.ts +25 -0
  57. package/src/lib/components/dashboards/view-dashboard/view-dashboard.component.ts +462 -0
  58. package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.html +35 -0
  59. package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.sass +0 -0
  60. package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.spec.ts +23 -0
  61. package/src/lib/components/data-explorer/change-source-warning/change-source-warning.component.ts +21 -0
  62. package/src/lib/components/data-explorer/data-explorer.component.html +326 -0
  63. package/src/lib/components/data-explorer/data-explorer.component.sass +96 -0
  64. package/src/lib/components/data-explorer/data-explorer.component.spec.ts +25 -0
  65. package/src/lib/components/data-explorer/data-explorer.component.ts +267 -0
  66. package/src/lib/components/data-explorer/export-data/export-data.component.html +69 -0
  67. package/src/lib/components/data-explorer/export-data/export-data.component.sass +0 -0
  68. package/src/lib/components/data-explorer/export-data/export-data.component.spec.ts +25 -0
  69. package/src/lib/components/data-explorer/export-data/export-data.component.ts +56 -0
  70. package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.html +195 -0
  71. package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.sass +0 -0
  72. package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.spec.ts +23 -0
  73. package/src/lib/components/data-explorer/snapshot-api-access/snapshot-api-access.component.ts +79 -0
  74. package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.html +375 -0
  75. package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.sass +21 -0
  76. package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.spec.ts +25 -0
  77. package/src/lib/components/data-explorer/snapshot-profile-dialog/snapshot-profile-dialog.component.ts +197 -0
  78. package/src/lib/components/data-picker/data-picker.component.html +127 -0
  79. package/src/lib/components/data-picker/data-picker.component.sass +0 -0
  80. package/src/lib/components/data-picker/data-picker.component.spec.ts +25 -0
  81. package/src/lib/components/data-picker/data-picker.component.ts +90 -0
  82. package/src/lib/components/data-search/data-search.component.html +1 -0
  83. package/src/lib/components/data-search/data-search.component.sass +0 -0
  84. package/src/lib/components/data-search/data-search.component.spec.ts +23 -0
  85. package/src/lib/components/data-search/data-search.component.ts +10 -0
  86. package/src/lib/components/data-sharing-invite/data-sharing-invite.component.html +53 -0
  87. package/src/lib/components/data-sharing-invite/data-sharing-invite.component.sass +0 -0
  88. package/src/lib/components/data-sharing-invite/data-sharing-invite.component.spec.ts +23 -0
  89. package/src/lib/components/data-sharing-invite/data-sharing-invite.component.ts +56 -0
  90. package/src/lib/components/dataset/create-dataset/create-dataset.component.html +25 -0
  91. package/src/lib/components/dataset/create-dataset/create-dataset.component.sass +0 -0
  92. package/src/lib/components/dataset/create-dataset/create-dataset.component.spec.ts +25 -0
  93. package/src/lib/components/dataset/create-dataset/create-dataset.component.ts +44 -0
  94. package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.html +28 -0
  95. package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.sass +0 -0
  96. package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.spec.ts +25 -0
  97. package/src/lib/components/dataset/dataset-editor/available-columns/available-columns.component.ts +22 -0
  98. package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.html +196 -0
  99. package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.sass +17 -0
  100. package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.spec.ts +25 -0
  101. package/src/lib/components/dataset/dataset-editor/dataset-add-join/dataset-add-join.component.ts +422 -0
  102. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.html +30 -0
  103. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.sass +47 -0
  104. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.spec.ts +25 -0
  105. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-editor/dataset-column-editor.component.ts +78 -0
  106. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.html +86 -0
  107. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.sass +0 -0
  108. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.spec.ts +25 -0
  109. package/src/lib/components/dataset/dataset-editor/dataset-column-settings/dataset-column-settings.component.ts +49 -0
  110. package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.html +68 -0
  111. package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.sass +15 -0
  112. package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.spec.ts +25 -0
  113. package/src/lib/components/dataset/dataset-editor/dataset-create-formula/dataset-create-formula.component.ts +65 -0
  114. package/src/lib/components/dataset/dataset-editor/dataset-editor-popup.html +19 -0
  115. package/src/lib/components/dataset/dataset-editor/dataset-editor.component.html +609 -0
  116. package/src/lib/components/dataset/dataset-editor/dataset-editor.component.sass +267 -0
  117. package/src/lib/components/dataset/dataset-editor/dataset-editor.component.spec.ts +25 -0
  118. package/src/lib/components/dataset/dataset-editor/dataset-editor.component.ts +1228 -0
  119. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.html +309 -0
  120. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.sass +41 -0
  121. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.spec.ts +25 -0
  122. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter/dataset-filter.component.ts +215 -0
  123. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.html +33 -0
  124. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.sass +3 -0
  125. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.spec.ts +23 -0
  126. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-inclusion/dataset-filter-inclusion.component.ts +20 -0
  127. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.html +52 -0
  128. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.sass +14 -0
  129. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.spec.ts +25 -0
  130. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filter-junction/dataset-filter-junction.component.ts +58 -0
  131. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.html +47 -0
  132. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.sass +25 -0
  133. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.spec.ts +25 -0
  134. package/src/lib/components/dataset/dataset-editor/dataset-filters/dataset-filters.component.ts +49 -0
  135. package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.html +49 -0
  136. package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.sass +2 -0
  137. package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.spec.ts +25 -0
  138. package/src/lib/components/dataset/dataset-editor/dataset-name-dialog/dataset-name-dialog.component.ts +39 -0
  139. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.html +195 -0
  140. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.sass +14 -0
  141. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.spec.ts +25 -0
  142. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-add-parameter/dataset-add-parameter.component.ts +82 -0
  143. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.html +78 -0
  144. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.sass +16 -0
  145. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.spec.ts +25 -0
  146. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-type/dataset-parameter-type.component.ts +32 -0
  147. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.html +24 -0
  148. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.sass +22 -0
  149. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.spec.ts +25 -0
  150. package/src/lib/components/dataset/dataset-editor/dataset-parameter-values/dataset-parameter-values.component.ts +64 -0
  151. package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.html +177 -0
  152. package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.sass +80 -0
  153. package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.spec.ts +25 -0
  154. package/src/lib/components/dataset/dataset-editor/dataset-summarise/dataset-summarise.component.ts +113 -0
  155. package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.html +32 -0
  156. package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.sass +0 -0
  157. package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.spec.ts +23 -0
  158. package/src/lib/components/dataset/dataset-editor/move-transformation-confirmation/move-transformation-confirmation.component.ts +20 -0
  159. package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.html +37 -0
  160. package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.sass +0 -0
  161. package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.spec.ts +23 -0
  162. package/src/lib/components/dataset/dataset-editor/remove-transformation-warning/remove-transformation-warning.component.ts +19 -0
  163. package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.html +69 -0
  164. package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.sass +0 -0
  165. package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.spec.ts +23 -0
  166. package/src/lib/components/dataset/dataset-editor/save-as-query/save-as-query.component.ts +58 -0
  167. package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.html +195 -0
  168. package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.sass +0 -0
  169. package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.spec.ts +23 -0
  170. package/src/lib/components/dataset/dataset-editor/share-query/share-query.component.ts +128 -0
  171. package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.html +34 -0
  172. package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.sass +3 -0
  173. package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.spec.ts +23 -0
  174. package/src/lib/components/dataset/dataset-editor/upstream-changes-confirmation/upstream-changes-confirmation.component.ts +21 -0
  175. package/src/lib/components/dataset/dataset.component.html +317 -0
  176. package/src/lib/components/dataset/dataset.component.sass +73 -0
  177. package/src/lib/components/dataset/dataset.component.spec.ts +25 -0
  178. package/src/lib/components/dataset/dataset.component.ts +320 -0
  179. package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.html +133 -0
  180. package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.sass +51 -0
  181. package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.spec.ts +23 -0
  182. package/src/lib/components/datasource/create-datasource/advanced-settings/advanced-settings.component.ts +140 -0
  183. package/src/lib/components/datasource/create-datasource/api-access/api-access.component.html +257 -0
  184. package/src/lib/components/datasource/create-datasource/api-access/api-access.component.sass +0 -0
  185. package/src/lib/components/datasource/create-datasource/api-access/api-access.component.spec.ts +23 -0
  186. package/src/lib/components/datasource/create-datasource/api-access/api-access.component.ts +148 -0
  187. package/src/lib/components/datasource/create-datasource/create-datasource.component.html +430 -0
  188. package/src/lib/components/datasource/create-datasource/create-datasource.component.sass +162 -0
  189. package/src/lib/components/datasource/create-datasource/create-datasource.component.spec.ts +25 -0
  190. package/src/lib/components/datasource/create-datasource/create-datasource.component.ts +789 -0
  191. package/src/lib/components/datasource/create-datasource/import-data/import-data.component.html +119 -0
  192. package/src/lib/components/datasource/create-datasource/import-data/import-data.component.sass +8 -0
  193. package/src/lib/components/datasource/create-datasource/import-data/import-data.component.spec.ts +25 -0
  194. package/src/lib/components/datasource/create-datasource/import-data/import-data.component.ts +163 -0
  195. package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.html +239 -0
  196. package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.sass +0 -0
  197. package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.spec.ts +23 -0
  198. package/src/lib/components/datasource/create-datasource/import-data/import-wizard/import-wizard.component.ts +182 -0
  199. package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.html +167 -0
  200. package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.sass +87 -0
  201. package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.spec.ts +23 -0
  202. package/src/lib/components/datasource/create-datasource/tabular-datasource/tabular-datasource.component.ts +164 -0
  203. package/src/lib/components/datasource/datasource.component.html +165 -0
  204. package/src/lib/components/datasource/datasource.component.sass +4 -0
  205. package/src/lib/components/datasource/datasource.component.spec.ts +25 -0
  206. package/src/lib/components/datasource/datasource.component.ts +174 -0
  207. package/src/lib/components/datasource/document-datasource/document-datasource.component.html +558 -0
  208. package/src/lib/components/datasource/document-datasource/document-datasource.component.sass +84 -0
  209. package/src/lib/components/datasource/document-datasource/document-datasource.component.spec.ts +25 -0
  210. package/src/lib/components/datasource/document-datasource/document-datasource.component.ts +351 -0
  211. package/src/lib/components/export-project/export-project.component.html +280 -0
  212. package/src/lib/components/export-project/export-project.component.sass +0 -0
  213. package/src/lib/components/export-project/export-project.component.spec.ts +23 -0
  214. package/src/lib/components/export-project/export-project.component.ts +29 -0
  215. package/src/lib/components/feeds/feed/feed.component.html +144 -0
  216. package/src/lib/components/feeds/feed/feed.component.sass +0 -0
  217. package/src/lib/components/feeds/feed/feed.component.spec.ts +25 -0
  218. package/src/lib/components/feeds/feed/feed.component.ts +102 -0
  219. package/src/lib/components/feeds/feeds.component.html +210 -0
  220. package/src/lib/components/feeds/feeds.component.sass +4 -0
  221. package/src/lib/components/feeds/feeds.component.spec.ts +25 -0
  222. package/src/lib/components/feeds/feeds.component.ts +163 -0
  223. package/src/lib/components/job-tasks/job-tasks.component.html +22 -0
  224. package/src/lib/components/job-tasks/job-tasks.component.sass +0 -0
  225. package/src/lib/components/job-tasks/job-tasks.component.spec.ts +25 -0
  226. package/src/lib/components/job-tasks/job-tasks.component.ts +19 -0
  227. package/src/lib/components/marketplace/marketplace.component.html +143 -0
  228. package/src/lib/components/marketplace/marketplace.component.sass +0 -0
  229. package/src/lib/components/marketplace/marketplace.component.spec.ts +23 -0
  230. package/src/lib/components/marketplace/marketplace.component.ts +73 -0
  231. package/src/lib/components/metadata/metadata.component.html +62 -0
  232. package/src/lib/components/metadata/metadata.component.sass +0 -0
  233. package/src/lib/components/metadata/metadata.component.spec.ts +25 -0
  234. package/src/lib/components/metadata/metadata.component.ts +67 -0
  235. package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.html +82 -0
  236. package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.sass +21 -0
  237. package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.spec.ts +25 -0
  238. package/src/lib/components/notification-groups/edit-notification-group/edit-notification-group.component.ts +123 -0
  239. package/src/lib/components/notification-groups/notification-groups.component.html +125 -0
  240. package/src/lib/components/notification-groups/notification-groups.component.sass +4 -0
  241. package/src/lib/components/notification-groups/notification-groups.component.spec.ts +25 -0
  242. package/src/lib/components/notification-groups/notification-groups.component.ts +98 -0
  243. package/src/lib/components/project-picker/project-picker.component.html +167 -0
  244. package/src/lib/components/project-picker/project-picker.component.sass +1 -0
  245. package/src/lib/components/project-picker/project-picker.component.spec.ts +25 -0
  246. package/src/lib/components/project-picker/project-picker.component.ts +138 -0
  247. package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.html +120 -0
  248. package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.sass +0 -0
  249. package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.spec.ts +23 -0
  250. package/src/lib/components/project-settings/project-link-selection/project-link-selection.component.ts +161 -0
  251. package/src/lib/components/project-settings/project-settings.component.html +353 -0
  252. package/src/lib/components/project-settings/project-settings.component.sass +0 -0
  253. package/src/lib/components/project-settings/project-settings.component.spec.ts +23 -0
  254. package/src/lib/components/project-settings/project-settings.component.ts +178 -0
  255. package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.html +96 -0
  256. package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.sass +0 -0
  257. package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.spec.ts +23 -0
  258. package/src/lib/components/query-caching/edit-query-cache/edit-query-cache.component.ts +48 -0
  259. package/src/lib/components/query-caching/query-caching.component.html +122 -0
  260. package/src/lib/components/query-caching/query-caching.component.sass +0 -0
  261. package/src/lib/components/query-caching/query-caching.component.spec.ts +23 -0
  262. package/src/lib/components/query-caching/query-caching.component.ts +184 -0
  263. package/src/lib/components/shared-with-me/shared-with-me.component.html +115 -0
  264. package/src/lib/components/shared-with-me/shared-with-me.component.sass +0 -0
  265. package/src/lib/components/shared-with-me/shared-with-me.component.spec.ts +23 -0
  266. package/src/lib/components/shared-with-me/shared-with-me.component.ts +123 -0
  267. package/src/lib/components/snapshots/snapshots.component.html +408 -0
  268. package/src/lib/components/snapshots/snapshots.component.sass +4 -0
  269. package/src/lib/components/snapshots/snapshots.component.spec.ts +25 -0
  270. package/src/lib/components/snapshots/snapshots.component.ts +286 -0
  271. package/src/lib/components/tag-picker/tag-picker.component.html +155 -0
  272. package/src/lib/components/tag-picker/tag-picker.component.sass +2 -0
  273. package/src/lib/components/tag-picker/tag-picker.component.spec.ts +25 -0
  274. package/src/lib/components/tag-picker/tag-picker.component.ts +82 -0
  275. package/src/lib/components/task-time-periods/task-time-periods.component.html +93 -0
  276. package/src/lib/components/task-time-periods/task-time-periods.component.sass +7 -0
  277. package/src/lib/components/task-time-periods/task-time-periods.component.spec.ts +25 -0
  278. package/src/lib/components/task-time-periods/task-time-periods.component.ts +50 -0
  279. package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.html +111 -0
  280. package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.sass +0 -0
  281. package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.spec.ts +25 -0
  282. package/src/lib/components/whitelisted-sql-functions/whitelisted-sql-functions.component.ts +38 -0
  283. package/src/lib/guards/dashboard-changes.guard.spec.ts +16 -0
  284. package/src/lib/guards/dashboard-changes.guard.ts +27 -0
  285. package/src/lib/ng-kinintel.module.ts +272 -0
  286. package/src/lib/objects/action-event.spec.ts +7 -0
  287. package/src/lib/objects/action-event.ts +27 -0
  288. package/src/lib/services/alert.service.spec.ts +16 -0
  289. package/src/lib/services/alert.service.ts +49 -0
  290. package/src/lib/services/dashboard.service.spec.ts +16 -0
  291. package/src/lib/services/dashboard.service.ts +79 -0
  292. package/src/lib/services/data-processor.service.spec.ts +16 -0
  293. package/src/lib/services/data-processor.service.ts +61 -0
  294. package/src/lib/services/data-search.service.spec.ts +16 -0
  295. package/src/lib/services/data-search.service.ts +31 -0
  296. package/src/lib/services/dataset.service.spec.ts +16 -0
  297. package/src/lib/services/dataset.service.ts +234 -0
  298. package/src/lib/services/datasource.service.spec.ts +16 -0
  299. package/src/lib/services/datasource.service.ts +116 -0
  300. package/src/lib/services/external.service.spec.ts +16 -0
  301. package/src/lib/services/external.service.ts +29 -0
  302. package/src/lib/services/feed.service.spec.ts +16 -0
  303. package/src/lib/services/feed.service.ts +48 -0
  304. package/src/lib/services/notification.service.spec.ts +16 -0
  305. package/src/lib/services/notification.service.ts +38 -0
  306. package/src/lib/services/project.service.spec.ts +16 -0
  307. package/src/lib/services/project.service.ts +146 -0
  308. package/src/lib/services/tag.service.spec.ts +16 -0
  309. package/src/lib/services/tag.service.ts +61 -0
  310. package/src/public-api.ts +46 -0
  311. package/src/test.ts +17 -0
  312. package/tsconfig.lib.json +24 -0
  313. package/tsconfig.lib.prod.json +10 -0
  314. package/tsconfig.spec.json +17 -0
  315. package/tslint.json +17 -0
@@ -0,0 +1,558 @@
1
+ <div class="p-6 bg-white border-b border-gray-200">
2
+ <div class="md:flex md:items-center md:justify-between md:space-x-5">
3
+ <div class="flex items-start flex-1">
4
+ <div class="pt-1.5">
5
+ <h1 class="text-2xl font-bold text-gray-900">
6
+ {{!datasourceKey ? 'Document Datasource' : (datasource.title || 'Document Datasource')}}
7
+ </h1>
8
+ <p class="text-sm font-medium text-gray-500">
9
+ <ng-template [ngIf]="!datasourceKey">
10
+ Upload your documents using the form below.
11
+ </ng-template>
12
+ <ng-template [ngIf]="datasourceKey">
13
+ View your existing documents below and adjust any document settings here.
14
+ </ng-template>
15
+ </p>
16
+ </div>
17
+ </div>
18
+ <div class="mt-6 flex flex-col-reverse justify-stretch" *ngIf="datasourceKey">
19
+ <button type="button" (click)="showUpload = !showUpload"
20
+ class="inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary focus:outline-none">
21
+ Upload Additional Documents
22
+ </button>
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ <div class="bg-blue-50 p-4" *ngIf="uploading">
28
+ <div class="flex">
29
+ <div class="flex-shrink-0">
30
+ <!-- Heroicon name: solid/information-circle -->
31
+ <svg class="h-5 w-5 text-primary" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
32
+ fill="currentColor" aria-hidden="true">
33
+ <path fill-rule="evenodd"
34
+ d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
35
+ clip-rule="evenodd"/>
36
+ </svg>
37
+ </div>
38
+ <div class="ml-3 w-full">
39
+ <p class="text-sm text-primary font-medium">Progress</p>
40
+ <ng-template [ngIf]="uploadResults && uploadResults.progressData">
41
+ <div class="text-primary my-2">Uploaded {{uploadResults.progressData.completed}}
42
+ /{{uploadResults.progressData.total}}</div>
43
+ <mat-progress-bar class="w-full my-4" mode="determinate"
44
+ [value]="(uploadResults.progressData.completed/uploadResults.progressData.total) * 100"></mat-progress-bar>
45
+ </ng-template>
46
+ <ng-template [ngIf]="!uploadResults || !uploadResults.progressData">
47
+ <div class="text-primary my-2">Preparing Upload...</div>
48
+ <mat-progress-bar class="w-full my-4" mode="buffer"></mat-progress-bar>
49
+ </ng-template>
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ <div class="bg-green-50 p-4" *ngIf="!failedResults.length && uploadResults && !uploading">
55
+ <div class="flex">
56
+ <div class="flex-shrink-0">
57
+ <!-- Heroicon name: solid/check-circle -->
58
+ <svg class="h-5 w-5 text-green-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
59
+ fill="currentColor" aria-hidden="true">
60
+ <path fill-rule="evenodd"
61
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
62
+ clip-rule="evenodd"/>
63
+ </svg>
64
+ </div>
65
+ <div class="ml-3">
66
+ <h3 class="text-sm font-medium text-green-800">Upload completed</h3>
67
+ <div class="mt-2 text-sm text-green-700">
68
+ <p><b>{{uploadResults.progressData.completed}}</b> files were processed successfully out of
69
+ <b>{{uploadResults.progressData.total}}</b> uploaded items.</p>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="bg-red-50 p-4" *ngIf="failedResults.length && uploadResults">
76
+ <div class="flex">
77
+ <div class="flex-shrink-0">
78
+ <!-- Heroicon name: solid/x-circle -->
79
+ <svg class="h-5 w-5 text-red-400" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"
80
+ aria-hidden="true">
81
+ <path fill-rule="evenodd"
82
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
83
+ clip-rule="evenodd"/>
84
+ </svg>
85
+ </div>
86
+ <div class="ml-3">
87
+ <h3 class="text-sm font-medium text-red-800">There were {{failedResults.length}} errors with your
88
+ submission</h3>
89
+ <div class="mt-2 text-sm text-red-700">
90
+ <ul role="list" class="list-disc pl-5 space-y-1">
91
+ <li *ngFor="let failedResult of failedResults">
92
+ {{failedResult.message}}
93
+ </li>
94
+ </ul>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </div>
99
+
100
+ <div *ngIf="showUpload"
101
+ class="space-y-8 p-6 bg-gray-50 border-b">
102
+ <div class="space-y-8 sm:space-y-5">
103
+ <div>
104
+ <div class="space-y-6 sm:space-y-5">
105
+ <div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start">
106
+ <label class="block text-sm font-medium text-gray-700">
107
+ Upload Documents
108
+ <div class="text-xs font-normal text-gray-500">
109
+ Additional documents to be processed.
110
+ </div>
111
+ </label>
112
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
113
+ <div *ngIf="!files || !files.length"
114
+ (drop)="dropHandler($event)" (dragover)="dragOverHandler($event)"
115
+ class="w-full flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md">
116
+ <div class="space-y-1 text-center">
117
+ <svg class="mx-auto h-12 w-12 text-gray-400" stroke="currentColor" fill="none"
118
+ viewBox="0 0 48 48" aria-hidden="true">
119
+ <path
120
+ d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02"
121
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
122
+ </svg>
123
+ <div class="flex text-sm text-gray-600">
124
+ <label
125
+ class="relative cursor-pointer rounded-md font-medium text-secondary focus-within:outline-none">
126
+ <span>Select file(s) to upload</span>
127
+ <input name="additionalUpload" multiple type="file" class="sr-only"
128
+ (change)="fileUpload($event)">
129
+ </label>
130
+ <p class="pl-1 mb-0">or drag and drop</p>
131
+ </div>
132
+ <p class="text-xs text-gray-500">.docx, .txt, .pfd, .zip</p>
133
+ </div>
134
+ </div>
135
+ <div *ngIf="files && files.length"
136
+ class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg">
137
+ <table class="min-w-full divide-y divide-gray-300 block overflow-y-auto max-h-48">
138
+ <thead class="bg-gray-50">
139
+ <tr>
140
+ <th scope="col" colspan="2"
141
+ class="sticky top-0 z-10 bg-gray-100 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6">
142
+ Selected File Preview
143
+ <span class="text-xs text-gray-500 lowercase ml-4 font-normal">
144
+ click <span class="font-medium">'Upload Files'</span> to upload the selected files.</span>
145
+ </th>
146
+ </tr>
147
+ </thead>
148
+ <tbody class="divide-y divide-gray-200 bg-white">
149
+ <tr *ngFor="let file of files; let i = index">
150
+ <td class="whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-6">
151
+ {{file.name}}
152
+ </td>
153
+ <td class="relative whitespace-nowrap py-2 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
154
+ <a (click)="removeFile(i)" class="text-danger">Remove</a>
155
+ </td>
156
+ </tr>
157
+
158
+ </tbody>
159
+ </table>
160
+ </div>
161
+ </div>
162
+ </div>
163
+
164
+ </div>
165
+ </div>
166
+
167
+ </div>
168
+
169
+ <div class="">
170
+ <div class="flex justify-end">
171
+ <button type="button" (click)="showUpload = false;files = null"
172
+ class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none">
173
+ Cancel
174
+ </button>
175
+
176
+ <button type="submit" [disabled]="!files"
177
+ class="disabled:opacity-50 ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-secondary focus:outline-none"
178
+ (click)="uploadFiles()">Upload Files
179
+ </button>
180
+ </div>
181
+ </div>
182
+ </div>
183
+
184
+ <div class="transformation-listing py-2 bg-gray-50 cursor-pointer"
185
+ (click)="showSettings = !showSettings" [ngClass]="{'border-b': !showSettings}">
186
+ <a class="list-title flex items-center">
187
+ Settings&nbsp;
188
+ <mat-icon *ngIf="!showSettings">expand_more</mat-icon>
189
+ <mat-icon *ngIf="showSettings">expand_less</mat-icon>
190
+ </a>
191
+ <div class="ml-6 text-xs text-gray-500">
192
+ Adjust the rules around how the uploaded documents will
193
+ be processed.
194
+ </div>
195
+ </div>
196
+
197
+ <div *ngIf="showSettings" [ngClass]="{'border-b': showSettings}"
198
+ class="space-y-8 divide-y divide-gray-200 p-6 bg-gray-50">
199
+ <div class="space-y-8 divide-y divide-gray-200 sm:space-y-5">
200
+ <div>
201
+ <div class="space-y-6 sm:space-y-5">
202
+ <div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start">
203
+ <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
204
+ Title
205
+ <div class="text-xs font-normal text-gray-500">Enter the name to identify this data source</div>
206
+ </label>
207
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
208
+ <input type="text" [(ngModel)]="datasource.title"
209
+ class="max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md">
210
+
211
+ </div>
212
+ </div>
213
+
214
+ <div *ngIf="!datasourceKey"
215
+ class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
216
+ <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
217
+ Upload Documents
218
+ <div class="text-xs font-normal text-gray-500">
219
+ The documents to be processed.
220
+ </div>
221
+ </label>
222
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
223
+ <div *ngIf="!files || !files.length"
224
+ (drop)="dropHandler($event)" (dragover)="dragOverHandler($event)"
225
+ class="w-full flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md">
226
+ <div class="space-y-1 text-center">
227
+ <svg class="mx-auto h-12 w-12 text-gray-400" stroke="currentColor" fill="none"
228
+ viewBox="0 0 48 48" aria-hidden="true">
229
+ <path
230
+ d="M28 8H12a4 4 0 00-4 4v20m32-12v8m0 0v8a4 4 0 01-4 4H12a4 4 0 01-4-4v-4m32-4l-3.172-3.172a4 4 0 00-5.656 0L28 28M8 32l9.172-9.172a4 4 0 015.656 0L28 28m0 0l4 4m4-24h8m-4-4v8m-12 4h.02"
231
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
232
+ </svg>
233
+ <div class="flex text-sm text-gray-600">
234
+ <label
235
+ class="relative cursor-pointer rounded-md font-medium text-secondary focus-within:outline-none">
236
+ <span>Select file(s) to upload</span>
237
+ <input name="additionalUpload" multiple type="file" class="sr-only"
238
+ (change)="fileUpload($event)">
239
+ </label>
240
+ <p class="pl-1 mb-0">or drag and drop</p>
241
+ </div>
242
+ <p class="text-xs text-gray-500">.docx, .txt, .pfd, .zip</p>
243
+ </div>
244
+ </div>
245
+ <div *ngIf="files"
246
+ class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg">
247
+ <table class="min-w-full divide-y divide-gray-300 block overflow-y-auto max-h-48">
248
+ <thead class="bg-gray-50">
249
+ <tr>
250
+ <th scope="col" colspan="2"
251
+ class="sticky top-0 z-10 bg-gray-100 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6">
252
+ Selected File Preview
253
+ <span class="text-xs text-gray-500 lowercase ml-4 font-normal">
254
+ click <span class="font-medium">'Upload Files'</span> to upload the selected files.</span>
255
+ </th>
256
+ </tr>
257
+ </thead>
258
+ <tbody class="divide-y divide-gray-200 bg-white">
259
+ <tr *ngFor="let file of files; let i = index">
260
+ <td class="whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-6">
261
+ {{file.name}}
262
+ </td>
263
+ <td class="relative whitespace-nowrap py-2 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
264
+ <a (click)="removeFile(i)" class="text-danger">Remove</a>
265
+ </td>
266
+ </tr>
267
+ </tbody>
268
+ </table>
269
+ </div>
270
+ </div>
271
+ </div>
272
+
273
+ <ng-template [ngIf]="showCustomParser">
274
+ <div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
275
+ <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
276
+ Custom Document Parser
277
+ <div class="text-xs font-normal text-gray-500">
278
+ Use a custom document parser to process the documents.
279
+ </div>
280
+ </label>
281
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
282
+ <label class="mb-4 text-sm">
283
+ Select Custom Document Parser
284
+ <input type="text" [matAutocomplete]="autoParsers"
285
+ [(ngModel)]="datasource.config.customDocumentParser"
286
+ (keyup)="searchParser.next($event.target.value)"
287
+ placeholder="Search for a custom parser">
288
+ <mat-autocomplete #autoParsers="matAutocomplete">
289
+ <mat-option *ngFor="let parser of documentParsers" [value]="parser.value">
290
+ {{parser.title}}
291
+ </mat-option>
292
+ </mat-autocomplete>
293
+ <small class="font-normal">Start typing name to view available parsers</small>
294
+ </label>
295
+ </div>
296
+ </div>
297
+ </ng-template>
298
+
299
+ <ng-template [ngIf]="!datasource.config.customDocumentParser">
300
+
301
+
302
+ <div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
303
+ <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
304
+ Indexing
305
+ <div class="text-xs font-normal text-gray-500">
306
+ Set whether you want the content of the documents to be indexed
307
+ </div>
308
+ </label>
309
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
310
+ <mat-checkbox class="block mb-4" [(ngModel)]="datasource.config.indexContent"
311
+ (ngModelChange)="indexDocumentChange($event)">Index Document
312
+ Content
313
+ </mat-checkbox>
314
+ <ng-template [ngIf]="datasource.config.indexContent">
315
+ <div class="max-w-lg flex rounded-md shadow-sm mb-2">
316
+ <span
317
+ class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm"> Min phrase length (words) </span>
318
+ <input type="number" name="minPhrase" [min]="1"
319
+ [(ngModel)]="datasource.config.minPhraseLength"
320
+ class="flex-1 block w-full min-w-0 rounded-none rounded-r-md sm:text-sm border-gray-300">
321
+ </div>
322
+ <div class="max-w-lg flex rounded-md shadow-sm">
323
+ <span
324
+ class="inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm"> Max phrase length (words) </span>
325
+ <input type="number" name="maxPhrase" [min]="1"
326
+ [(ngModel)]="datasource.config.maxPhraseLength"
327
+ class="flex-1 block w-full min-w-0 rounded-none rounded-r-md sm:text-sm border-gray-300">
328
+ </div>
329
+ </ng-template>
330
+ </div>
331
+ </div>
332
+
333
+ <div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
334
+ <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
335
+ Chunking
336
+ <div class="text-xs font-normal text-gray-500">
337
+ Set whether you want to split the documents into chunks for analysis
338
+ </div>
339
+ </label>
340
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
341
+ <mat-checkbox class="block mb-4" [(ngModel)]="datasource.config.chunkContent" (ngModelChange)="chunkContentChange($event)"> Chunk Document Content
342
+ </mat-checkbox>
343
+ <ng-template [ngIf]="datasource.config.chunkContent">
344
+ <mat-checkbox class="block mb-4" [(ngModel)]="datasource.config.indexChunksByAI">Index Chunks by AI
345
+ </mat-checkbox>
346
+ </ng-template>
347
+ </div>
348
+
349
+ </div>
350
+
351
+ <div *ngIf="datasource.config.indexContent"
352
+ class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
353
+ <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
354
+ Stop Words
355
+ <div class="text-xs font-normal text-gray-500">
356
+ A list of words to exclude from being indexed.
357
+ </div>
358
+ </label>
359
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
360
+ <mat-checkbox class="block mb-2" [(ngModel)]="builtInStopWords.builtIn"
361
+ (ngModelChange)="updateBuiltInStopWordConfig($event)">Use Built In
362
+ </mat-checkbox>
363
+
364
+ <ng-template [ngIf]="builtInStopWords.builtIn && datasource.config.maxPhraseLength > 1">
365
+ <label class="mb-4">
366
+ Min phrase length for including stop words
367
+ <input type="number" [min]="2"
368
+ [(ngModel)]="builtInStopWords.minPhraseLength">
369
+ <small class="font-normal">The built it stop words will be included when the phrase
370
+ length is greater than or equal to this value.</small>
371
+ </label>
372
+ </ng-template>
373
+
374
+ <hr class="my-4" *ngIf="_.filter(datasource.config.stopWords, 'custom').length">
375
+
376
+ <ng-template ngFor let-stopWord [ngForOf]="_.filter(datasource.config.stopWords, 'custom')"
377
+ let-i=index>
378
+ <div class="flex items-center justify-between">
379
+ <div>
380
+ <label class="mb-4 text-sm">
381
+ Datasource
382
+ <input type="text" [matAutocomplete]="autoDatasets"
383
+ [value]="stopWord.datasource ? stopWord.datasource.title : ''"
384
+ (keyup)="searchText.next($event.target.value)"
385
+ placeholder="Search for a datasource">
386
+ <mat-autocomplete #autoDatasets="matAutocomplete" [displayWith]="displayFn">
387
+ <mat-option *ngFor="let datasource of datasources" [value]="datasource"
388
+ (onSelectionChange)="updateDatasource(stopWord, $event.source.value)">
389
+ {{datasource.title}}
390
+ </mat-option>
391
+ </mat-autocomplete>
392
+ <small class="font-normal">Start typing name to view available
393
+ datasources</small>
394
+ </label>
395
+
396
+
397
+ <div *ngIf="stopWord.selectedDatasource && stopWord.selectedDatasource.columns">
398
+ <label class="mb-4">
399
+ Stop Words Column
400
+ <select matNativeControl [(ngModel)]="stopWord.datasourceColumn">
401
+ <option *ngFor="let column of stopWord.selectedDatasource.columns"
402
+ [ngValue]="column.name">
403
+ {{column.title}}
404
+ </option>
405
+ </select>
406
+ <small class="font-normal">Select the column to use for the stop
407
+ words</small>
408
+ </label>
409
+
410
+ <label class="mb-4" *ngIf="datasource.config.maxPhraseLength > 1">
411
+ Min phrase length for including stop words
412
+ <input type="number" [min]="2"
413
+ [(ngModel)]="stopWord.minPhraseLength">
414
+ <small
415
+ class="font-normal">The {{stopWord.datasource ? stopWord.datasource.title : ''}}
416
+ stop words will be included when the
417
+ phrase length is greater than or equal to this value.</small>
418
+ </label>
419
+ </div>
420
+ </div>
421
+
422
+ <button mat-icon-button color="warn" (click)="removeCustomStopWord(i)">
423
+ <mat-icon>clear</mat-icon>
424
+ </button>
425
+ </div>
426
+
427
+ <hr class="my-4">
428
+ </ng-template>
429
+
430
+ <button mat-button color="primary"
431
+ (click)="datasource.config.stopWords.push({custom: true})">
432
+ <mat-icon>add</mat-icon>
433
+ Add Custom Stop Words
434
+ </button>
435
+
436
+ </div>
437
+ </div>
438
+
439
+ </ng-template>
440
+
441
+ <div class="sm:grid sm:grid-cols-3 sm:gap-4 sm:items-start sm:border-t sm:border-gray-200 sm:pt-5">
442
+ <label class="block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2">
443
+ Storage Options
444
+ <div class="text-xs font-normal text-gray-500">
445
+ Securely save an original copy of the document and/or its original text.
446
+ </div>
447
+ </label>
448
+ <div class="mt-1 sm:mt-0 sm:col-span-2">
449
+ <mat-checkbox class="block mb-2" [(ngModel)]="datasource.config.storeOriginal">Store
450
+ Original File
451
+ </mat-checkbox>
452
+ <mat-checkbox class="block mb-2" [(ngModel)]="datasource.config.storeText">Store Document
453
+ Text
454
+ </mat-checkbox>
455
+ </div>
456
+ </div>
457
+
458
+ </div>
459
+ </div>
460
+
461
+ </div>
462
+
463
+ <div class="pt-5">
464
+ <div class="flex justify-end">
465
+ <button type="button"
466
+ class="bg-white py-2 px-4 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none">
467
+ Cancel
468
+ </button>
469
+ <button type="submit" [disabled]="!datasource.title"
470
+ class="disabled:opacity-50 ml-3 inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-secondary focus:outline-none"
471
+ (click)="save()">
472
+ <ng-template [ngIf]="!datasourceKey">
473
+ Create Datasource
474
+ </ng-template>
475
+ <ng-template [ngIf]="datasourceKey">
476
+ Update Settings
477
+ </ng-template>
478
+ </button>
479
+ </div>
480
+ </div>
481
+ </div>
482
+
483
+ <ng-template [ngIf]="evaluatedDatasource">
484
+
485
+
486
+ <div class="overflow-scroll">
487
+ <table class="min-w-full border-separate bg-white" style="border-spacing: 0">
488
+ <thead class="bg-gray-100">
489
+ <tr>
490
+ <th *ngFor="let column of evaluatedDatasource.columns" scope="col"
491
+ class="sticky top-0 z-10 border-b border-gray-300 bg-gray-50 bg-opacity-75 py-3.5 px-4 text-left text-xs font-semibold text-gray-900 backdrop-blur backdrop-filter">
492
+ {{column.title}}
493
+ </th>
494
+ </tr>
495
+ </thead>
496
+ <tbody class="bg-white">
497
+ <tr *ngFor="let data of evaluatedDatasource.allData">
498
+ <td *ngFor="let column of evaluatedDatasource.columns; let i = index"
499
+ [ngClass]="{'font-medium': i === 0}"
500
+ class="border-b border-gray-200 py-2 px-4 text-sm text-gray-900">
501
+ <ng-template [ngIf]="column.name === 'original_link'">
502
+ <a class="flex items-center text-cta hover:underline" (click)="downloadDoc(data[column.name])">
503
+ {{data[column.name]}}
504
+ <svg xmlns="http://www.w3.org/2000/svg" class="ml-1 h-4 w-4" fill="none" viewBox="0 0 24 24"
505
+ stroke="currentColor" stroke-width="2">
506
+ <path stroke-linecap="round" stroke-linejoin="round"
507
+ d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"/>
508
+ </svg>
509
+ </a>
510
+ </ng-template>
511
+ <ng-template [ngIf]="column.name !== 'original_link'">
512
+ <ng-template [ngIf]="data[column.name] && String(data[column.name]).length <= 100">
513
+ {{data[column.name]}}
514
+ </ng-template>
515
+ <ng-template [ngIf]="data[column.name] && String(data[column.name]).length > 100">
516
+ <div>{{data[column.name].substring(0, 100) + '...'}}</div>
517
+ <a (click)="viewFullItemData(data[column.name], column.name)"
518
+ class="flex items-center text-sm text-cta hover:underline">
519
+ view more
520
+ <svg xmlns="http://www.w3.org/2000/svg" class="ml-1 h-4 w-4" fill="none"
521
+ viewBox="0 0 24 24"
522
+ stroke="currentColor">
523
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
524
+ d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
525
+ </svg>
526
+ </a>
527
+ </ng-template>
528
+ <ng-template [ngIf]="!data[column.name]">
529
+ {{data[column.name]}}
530
+ </ng-template>
531
+ </ng-template>
532
+ </td>
533
+ </tr>
534
+ </tbody>
535
+
536
+ </table>
537
+
538
+ </div>
539
+ <div class="bg-white p-4 flex align-center justify-end">
540
+ <select [value]="limit" (change)="pageSizeChange($event.target.value)" class="mr-8">
541
+ <option [value]="1">1</option>
542
+ <option [value]="5">5</option>
543
+ <option [value]="10">10</option>
544
+ <option [value]="25">25</option>
545
+ <option [value]="50">50</option>
546
+ <option [value]="100">100</option>
547
+ <option [value]="250">250</option>
548
+ <option [value]="1000">1000</option>
549
+ </select>
550
+ <button mat-icon-button class="mr-4" (click)="decreaseOffset()" [disabled]="page <= 1">
551
+ <mat-icon>chevron_left</mat-icon>
552
+ </button>
553
+ <button mat-icon-button (click)="increaseOffset()" [disabled]="endOfResults">
554
+ <mat-icon>chevron_right</mat-icon>
555
+ </button>
556
+ </div>
557
+
558
+ </ng-template>
@@ -0,0 +1,84 @@
1
+ :host
2
+ display: block
3
+ background-color: white
4
+
5
+ .cell-header
6
+ width: 100%
7
+ display: flex
8
+ align-items: center
9
+ justify-content: space-between
10
+ &.end
11
+ justify-content: flex-end
12
+
13
+ .transformation-listing
14
+ display: flex
15
+ align-items: center
16
+ flex-wrap: wrap
17
+ width: 100%
18
+ border-bottom-color: #ddd
19
+ min-height: 47px
20
+ .list-title
21
+ text-transform: uppercase
22
+ font-size: .75rem
23
+ padding: 0 1rem
24
+ border-right: 2px solid #ddd
25
+ color: #4c4c4c
26
+ font-weight: 500
27
+ letter-spacing: 1px
28
+ .badge-item
29
+ display: flex
30
+ align-items: center
31
+ margin-left: 1rem
32
+ padding-left: 1rem
33
+ border-radius: 20px
34
+ background-color: white
35
+ border: 1px solid #ddd
36
+ height: 30px
37
+ &.exclude
38
+ opacity: .8
39
+ &:hover
40
+ background-color: #fcfcfc
41
+ span
42
+ margin-right: .5rem
43
+ color: rgba(0,0,0,0.54)
44
+ button.mat-icon-button
45
+ width: 33px
46
+ height: 33px
47
+ line-height: 33px
48
+ mat-icon
49
+ font-size: 20px
50
+ height: 20px
51
+ width: 20px
52
+ line-height: 20px
53
+ color: rgba(0,0,0,0.54)
54
+
55
+ table
56
+ position: relative
57
+ border-collapse: collapse
58
+ &.sticky
59
+ th
60
+ position: sticky
61
+ top: 0
62
+ background-color: whitesmoke
63
+ border-top: none !important
64
+ border-bottom: none !important
65
+ box-shadow: inset 0 -1px 0 #ddd
66
+ th
67
+ &.settings
68
+ padding: 0
69
+ td
70
+ max-width: 400px
71
+ word-wrap: break-word
72
+ padding-top: .5rem
73
+ padding-bottom: .5rem
74
+ padding-right: 1rem
75
+ min-width: 100px
76
+ width: 1%
77
+ &.settings
78
+ max-width: 25px
79
+ min-width: 25px
80
+ &::-webkit-scrollbar
81
+ width: .75em
82
+ background: transparent
83
+ &::-webkit-scrollbar-thumb
84
+ background: #d2d2d2