ngx-techlify-core 11.4.8 → 11.5.2
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/karma.conf.js +44 -0
- package/ng-package.json +27 -0
- package/package.json +29 -37
- package/src/lib/action-popup/action-popup.component.html +21 -0
- package/src/lib/action-popup/action-popup.component.scss +0 -0
- package/src/lib/action-popup/action-popup.component.spec.ts +25 -0
- package/src/lib/action-popup/action-popup.component.ts +31 -0
- package/{lib/action-popup/action-popup.model.d.ts → src/lib/action-popup/action-popup.model.ts} +2 -2
- package/src/lib/action-popup/action-popup.module.ts +23 -0
- package/{lib/action-popup/index.d.ts → src/lib/action-popup/index.ts} +1 -1
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.html +9 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.scss +0 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.ts +49 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.module.ts +24 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.html +92 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.scss +21 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.ts +138 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.module.ts +28 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.html +49 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.scss +0 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.spec.ts +26 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.ts +74 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.ts +24 -0
- package/src/lib/audit-log/audit-log-routing.module.ts +18 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.html +46 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.scss +0 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.ts +54 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.module.ts +20 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.html +38 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.scss +4 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.ts +53 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.module.ts +20 -0
- package/src/lib/audit-log/audit-log.module.ts +20 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.html +4 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.scss +4 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.ts +28 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.ts +20 -0
- package/src/lib/base-model/index.ts +3 -0
- package/src/lib/base-model/techlify-form-component.class.ts +60 -0
- package/src/lib/base-model/techlify-listing-component.class.ts +67 -0
- package/src/lib/base-model/techlify-service.class.ts +73 -0
- package/src/lib/core/alert.service.ts +32 -0
- package/src/lib/core/api-prefix.interceptor.ts +22 -0
- package/src/lib/core/authentication.guard.ts +34 -0
- package/src/lib/core/authentication.service.ts +53 -0
- package/src/lib/core/cache.interceptor.ts +59 -0
- package/src/lib/core/config.service.ts +52 -0
- package/src/lib/core/core.module.ts +44 -0
- package/src/lib/core/credentials.service.ts +91 -0
- package/{lib/core/dataManager.service.d.ts → src/lib/core/dataManager.service.ts} +76 -22
- package/src/lib/core/error-handler.interceptor.ts +43 -0
- package/src/lib/core/error-handler.service.ts +61 -0
- package/src/lib/core/filter.service.ts +42 -0
- package/src/lib/core/form-validator.service.ts +23 -0
- package/src/lib/core/header.interceptor.ts +22 -0
- package/src/lib/core/http-cache.service.ts +122 -0
- package/src/lib/core/http.service.ts +137 -0
- package/{lib/core/index.d.ts → src/lib/core/index.ts} +2 -0
- package/src/lib/core/logger.service.ts +113 -0
- package/src/lib/core/route-reusable-strategy.ts +36 -0
- package/src/lib/core/snack/error-snack.html +8 -0
- package/src/lib/core/snack/snack.component.ts +19 -0
- package/src/lib/core/snack/snack.module.ts +22 -0
- package/src/lib/core/snack/snack.scss +18 -0
- package/src/lib/core/snack/success-snack.html +8 -0
- package/src/lib/core/storage.service.ts +38 -0
- package/src/lib/core/techlify-config.model.ts +32 -0
- package/src/lib/core/token.interceptor.ts +25 -0
- package/src/lib/data-table/data-table.component.html +139 -0
- package/src/lib/data-table/data-table.component.scss +54 -0
- package/src/lib/data-table/data-table.component.spec.ts +25 -0
- package/src/lib/data-table/data-table.component.ts +232 -0
- package/{lib/data-table/data-table.model.d.ts → src/lib/data-table/data-table.model.ts} +9 -6
- package/src/lib/data-table/data-table.module.ts +23 -0
- package/{lib/data-table/index.d.ts → src/lib/data-table/index.ts} +1 -1
- package/src/lib/date-validator.ts +12 -0
- package/src/lib/document-viewer/document-viewer.component.css +5 -0
- package/src/lib/document-viewer/document-viewer.component.html +19 -0
- package/src/lib/document-viewer/document-viewer.component.ts +66 -0
- package/src/lib/document-viewer/document-viewer.module.ts +22 -0
- package/{lib/document-viewer/index.d.ts → src/lib/document-viewer/index.ts} +1 -1
- package/src/lib/document-viewer/viewer-config.model.ts +5 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.ts +25 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.html +23 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.scss +4 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.ts +74 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.ts +22 -0
- package/{lib/email-subscription/email-subscription-for-user/index.d.ts → src/lib/email-subscription/email-subscription-for-user/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.html +47 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.scss +0 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.ts +113 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.ts +28 -0
- package/{lib/email-subscription/email-subscription-type/email-subscription-type-form/index.d.ts → src/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.ts +29 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.html +76 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.scss +4 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.ts +170 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.ts +26 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.ts +1 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.ts +11 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type.module.ts +14 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.html +38 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.scss +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.ts +113 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.ts +26 -0
- package/{lib/email-subscription/email-subscription-user/email-subscription-user-form/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.ts +27 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.html +74 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.scss +5 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.ts +174 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.ts +28 -0
- package/{lib/email-subscription/email-subscription-user/email-subscription-user-list/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.html +21 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.scss +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.ts +56 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.ts +24 -0
- package/{lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.ts +11 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user.module.ts +14 -0
- package/src/lib/email-subscription/email-subscription.module.ts +15 -0
- package/src/lib/entity-files/entity-file-form/entity-file-form.component.css +0 -0
- package/src/lib/entity-files/entity-file-form/entity-file-form.component.html +45 -0
- package/src/lib/entity-files/entity-file-form/entity-file-form.component.ts +172 -0
- package/src/lib/entity-files/entity-file.service.ts +46 -0
- package/src/lib/entity-files/entity-files-view-all.component.css +0 -0
- package/src/lib/entity-files/entity-files-view-all.component.html +236 -0
- package/src/lib/entity-files/entity-files-view-all.component.ts +325 -0
- package/src/lib/entity-files/entity-files-view-all.module.ts +38 -0
- package/src/lib/entity-files/index.ts +2 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.html +1 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.scss +0 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.spec.ts +25 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.ts +31 -0
- package/src/lib/export-excel/export-excel.module.ts +16 -0
- package/src/lib/file-dropper/file-dropper.component.html +41 -0
- package/src/lib/file-dropper/file-dropper.component.scss +8 -0
- package/src/lib/file-dropper/file-dropper.component.ts +139 -0
- package/src/lib/file-dropper/file-dropper.model.ts +10 -0
- package/src/lib/file-dropper/file-dropper.module.ts +18 -0
- package/{lib/file-dropper/index.d.ts → src/lib/file-dropper/index.ts} +1 -1
- package/src/lib/import-csv/data-import/data-import.component.html +11 -0
- package/src/lib/import-csv/data-import/data-import.component.scss +0 -0
- package/src/lib/import-csv/data-import/data-import.component.spec.ts +28 -0
- package/src/lib/import-csv/data-import/data-import.component.ts +16 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.html +61 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.scss +0 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.spec.ts +28 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.ts +30 -0
- package/src/lib/import-csv/field-mapping/field-mapping.component.html +70 -0
- package/src/lib/import-csv/field-mapping/field-mapping.component.scss +15 -0
- package/src/lib/import-csv/field-mapping/field-mapping.component.ts +161 -0
- package/src/lib/import-csv/import-csv-config.ts +17 -0
- package/src/lib/import-csv/import-csv.component.html +71 -0
- package/src/lib/import-csv/import-csv.component.scss +15 -0
- package/src/lib/import-csv/import-csv.component.spec.ts +28 -0
- package/src/lib/import-csv/import-csv.component.ts +198 -0
- package/src/lib/import-csv/import-csv.module.ts +43 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.html +43 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.scss +0 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.spec.ts +28 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.ts +74 -0
- package/src/lib/import-csv/import-success/import-success.component.html +22 -0
- package/src/lib/import-csv/import-success/import-success.component.scss +0 -0
- package/src/lib/import-csv/import-success/import-success.component.spec.ts +28 -0
- package/src/lib/import-csv/import-success/import-success.component.ts +17 -0
- package/{lib/loader/index.d.ts → src/lib/loader/index.ts} +0 -0
- package/src/lib/loader/loader.component.html +4 -0
- package/src/lib/loader/loader.component.scss +8 -0
- package/src/lib/loader/loader.component.spec.ts +73 -0
- package/src/lib/loader/loader.component.ts +18 -0
- package/src/lib/loader/loader.module.ts +18 -0
- package/src/lib/login-history-for-user/login-history-for-user-routing.module.ts +18 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.html +31 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.scss +4 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.spec.ts +25 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.ts +94 -0
- package/src/lib/login-history-for-user/login-history-for-user.module.ts +26 -0
- package/src/lib/material.module.ts +68 -0
- package/src/lib/note/comment-form/comment-form.component.html +45 -0
- package/src/lib/note/comment-form/comment-form.component.scss +7 -0
- package/src/lib/note/comment-form/comment-form.component.spec.ts +24 -0
- package/src/lib/note/comment-form/comment-form.component.ts +84 -0
- package/{lib/note/index.d.ts → src/lib/note/index.ts} +0 -0
- package/src/lib/note/note-form/note-form.component.css +0 -0
- package/src/lib/note/note-form/note-form.component.html +26 -0
- package/src/lib/note/note-form/note-form.component.spec.ts +25 -0
- package/src/lib/note/note-form/note-form.component.ts +93 -0
- package/src/lib/note/note-list/note-list.component.css +4 -0
- package/src/lib/note/note-list/note-list.component.html +58 -0
- package/src/lib/note/note-list/note-list.component.spec.ts +25 -0
- package/src/lib/note/note-list/note-list.component.ts +156 -0
- package/src/lib/note/note.module.ts +33 -0
- package/src/lib/note/note.service.spec.ts +16 -0
- package/src/lib/note/note.service.ts +26 -0
- package/src/lib/read-more/read-more.component.html +3 -0
- package/src/lib/read-more/read-more.component.scss +8 -0
- package/src/lib/read-more/read-more.component.spec.ts +24 -0
- package/src/lib/read-more/read-more.component.ts +41 -0
- package/src/lib/read-more/read-more.module.ts +18 -0
- package/src/lib/request-helper/request-helper.service.ts +92 -0
- package/src/lib/searchable-selector/index.ts +2 -0
- package/src/lib/searchable-selector/mat-select-infinite-scroll.directive.ts +89 -0
- package/src/lib/searchable-selector/searchable-selector.component.html +21 -0
- package/src/lib/searchable-selector/searchable-selector.component.scss +8 -0
- package/src/lib/searchable-selector/searchable-selector.component.spec.ts +25 -0
- package/src/lib/searchable-selector/searchable-selector.component.ts +337 -0
- package/src/lib/searchable-selector/searchable-selector.module.ts +25 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.html +4 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.scss +0 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.spec.ts +28 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.ts +25 -0
- package/src/lib/techlify-feature/techlify-feature-enabled.directive.ts +71 -0
- package/src/lib/techlify-feature/techlify-feature-listing.component.html +65 -0
- package/src/lib/techlify-feature/techlify-feature-listing.component.scss +0 -0
- package/src/lib/techlify-feature/techlify-feature-listing.component.ts +174 -0
- package/src/lib/techlify-feature/techlify-feature.module.ts +28 -0
- package/src/lib/techlify-feature/techlify-feature.routing.ts +13 -0
- package/src/lib/techlify-feature/techlify-feature.service.ts +23 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.ts +25 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.html +18 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.scss +6 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.spec.ts +25 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.ts +308 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.ts +24 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.html +8 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.scss +0 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.spec.ts +25 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.ts +180 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.ts +28 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.html +78 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.scss +0 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.spec.ts +25 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.ts +113 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.module.ts +25 -0
- package/src/lib/techlify-update/techlify-update-history/index.ts +1 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.ts +21 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.html +94 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.scss +0 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.ts +142 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.module.ts +25 -0
- package/src/lib/techlify-update/techlify-update-routing.module.ts +21 -0
- package/src/lib/techlify-update/techlify-update.module.ts +27 -0
- package/src/lib/techlify-update/techlify-update.service.spec.ts +16 -0
- package/src/lib/techlify-update/techlify-update.service.ts +42 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.html +104 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.scss +0 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.spec.ts +25 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.ts +167 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.html +39 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.scss +57 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.spec.ts +25 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.ts +76 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.html +0 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.scss +3 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.spec.ts +25 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.ts +56 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.module.ts +27 -0
- package/src/lib/techlify-update/update-view/update-view.component.html +63 -0
- package/src/lib/techlify-update/update-view/update-view.component.scss +19 -0
- package/src/lib/techlify-update/update-view/update-view.component.spec.ts +25 -0
- package/src/lib/techlify-update/update-view/update-view.component.ts +36 -0
- package/src/lib/techlify-update/update-view/update-view.module.ts +23 -0
- package/src/lib/timeline-filter/README.md +60 -0
- package/src/lib/timeline-filter/calculate-timeline.ts +109 -0
- package/{lib/timeline-filter/index.d.ts → src/lib/timeline-filter/index.ts} +1 -1
- package/src/lib/timeline-filter/timeline-filter-routing.module.ts +10 -0
- package/src/lib/timeline-filter/timeline-filter.component.html +54 -0
- package/src/lib/timeline-filter/timeline-filter.component.scss +0 -0
- package/src/lib/timeline-filter/timeline-filter.component.spec.ts +25 -0
- package/src/lib/timeline-filter/timeline-filter.component.ts +220 -0
- package/src/lib/timeline-filter/timeline-filter.module.ts +22 -0
- package/src/lib/timeline-filter/timeline.model.ts +17 -0
- package/src/lib/utility/date-utils.service.ts +51 -0
- package/{lib/utility/index.d.ts → src/lib/utility/index.ts} +1 -1
- package/src/lib/utility/num-items-selector.component.ts +29 -0
- package/src/lib/utility/num-items-selector.html +13 -0
- package/src/lib/utility/number-selector.component.ts +38 -0
- package/src/lib/utility/number-selector.html +6 -0
- package/src/lib/utility/utility.module.ts +20 -0
- package/{public-api.d.ts → src/public-api.ts} +31 -0
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +26 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bundles/ngx-techlify-core.umd.js +0 -8325
- package/bundles/ngx-techlify-core.umd.js.map +0 -1
- package/bundles/ngx-techlify-core.umd.min.js +0 -2
- package/bundles/ngx-techlify-core.umd.min.js.map +0 -1
- package/esm2015/lib/action-popup/action-popup.component.js +0 -32
- package/esm2015/lib/action-popup/action-popup.model.js +0 -3
- package/esm2015/lib/action-popup/action-popup.module.js +0 -26
- package/esm2015/lib/action-popup/index.js +0 -3
- package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model.component.js +0 -49
- package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model.module.js +0 -25
- package/esm2015/lib/audit-log/audit-log-list/audit-log-list-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-list/audit-log-list.component.js +0 -132
- package/esm2015/lib/audit-log/audit-log-list/audit-log-list.module.js +0 -29
- package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.js +0 -67
- package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.js +0 -25
- package/esm2015/lib/audit-log/audit-log-routing.module.js +0 -19
- package/esm2015/lib/audit-log/audit-log-view/audit-log-view-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-view/audit-log-view.component.js +0 -60
- package/esm2015/lib/audit-log/audit-log-view/audit-log-view.module.js +0 -21
- package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model.component.js +0 -57
- package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model.module.js +0 -21
- package/esm2015/lib/audit-log/audit-log.module.js +0 -20
- package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.js +0 -35
- package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.js +0 -21
- package/esm2015/lib/base-model/index.js +0 -4
- package/esm2015/lib/base-model/techlify-form-component.class.js +0 -51
- package/esm2015/lib/base-model/techlify-listing-component.class.js +0 -41
- package/esm2015/lib/base-model/techlify-service.class.js +0 -64
- package/esm2015/lib/core/alert.service.js +0 -40
- package/esm2015/lib/core/api-prefix.interceptor.js +0 -28
- package/esm2015/lib/core/authentication.guard.js +0 -39
- package/esm2015/lib/core/authentication.service.js +0 -59
- package/esm2015/lib/core/cache.interceptor.js +0 -60
- package/esm2015/lib/core/config.service.js +0 -47
- package/esm2015/lib/core/core.module.js +0 -42
- package/esm2015/lib/core/credentials.service.js +0 -84
- package/esm2015/lib/core/dataManager.service.js +0 -121
- package/esm2015/lib/core/error-handler.interceptor.js +0 -53
- package/esm2015/lib/core/error-handler.service.js +0 -60
- package/esm2015/lib/core/form-validator.service.js +0 -23
- package/esm2015/lib/core/header.interceptor.js +0 -22
- package/esm2015/lib/core/http-cache.service.js +0 -110
- package/esm2015/lib/core/http.service.js +0 -82
- package/esm2015/lib/core/index.js +0 -21
- package/esm2015/lib/core/logger.service.js +0 -100
- package/esm2015/lib/core/route-reusable-strategy.js +0 -35
- package/esm2015/lib/core/snack/snack.component.js +0 -33
- package/esm2015/lib/core/snack/snack.module.js +0 -25
- package/esm2015/lib/core/storage.service.js +0 -37
- package/esm2015/lib/core/techlify-config.model.js +0 -28
- package/esm2015/lib/core/token.interceptor.js +0 -30
- package/esm2015/lib/data-table/data-table.component.js +0 -190
- package/esm2015/lib/data-table/data-table.model.js +0 -11
- package/esm2015/lib/data-table/data-table.module.js +0 -25
- package/esm2015/lib/data-table/index.js +0 -3
- package/esm2015/lib/date-validator.js +0 -10
- package/esm2015/lib/document-viewer/document-viewer.component.js +0 -58
- package/esm2015/lib/document-viewer/document-viewer.module.js +0 -25
- package/esm2015/lib/document-viewer/index.js +0 -3
- package/esm2015/lib/document-viewer/viewer-config.model.js +0 -3
- package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.js +0 -26
- package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.js +0 -72
- package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.js +0 -23
- package/esm2015/lib/email-subscription/email-subscription-for-user/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.js +0 -102
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.js +0 -28
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.js +0 -28
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.js +0 -153
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.js +0 -27
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type.module.js +0 -15
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.js +0 -99
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.js +0 -27
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.js +0 -28
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.js +0 -155
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.js +0 -29
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.js +0 -50
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.js +0 -25
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user.module.js +0 -15
- package/esm2015/lib/email-subscription/email-subscription.module.js +0 -15
- package/esm2015/lib/entity-files/entity-file-form/entity-file-form.component.js +0 -138
- package/esm2015/lib/entity-files/entity-file.service.js +0 -42
- package/esm2015/lib/entity-files/entity-files-view-all.component.js +0 -208
- package/esm2015/lib/entity-files/entity-files-view-all.module.js +0 -34
- package/esm2015/lib/entity-files/index.js +0 -3
- package/esm2015/lib/export-excel/export-excel-button/export-excel-button.component.js +0 -32
- package/esm2015/lib/export-excel/export-excel.module.js +0 -17
- package/esm2015/lib/file-dropper/file-dropper.component.js +0 -122
- package/esm2015/lib/file-dropper/file-dropper.model.js +0 -3
- package/esm2015/lib/file-dropper/file-dropper.module.js +0 -21
- package/esm2015/lib/file-dropper/index.js +0 -3
- package/esm2015/lib/import-csv/data-import/data-import.component.js +0 -18
- package/esm2015/lib/import-csv/failed-items-list/failed-items-list.component.js +0 -33
- package/esm2015/lib/import-csv/field-mapping/field-mapping.component.js +0 -148
- package/esm2015/lib/import-csv/import-csv-config.js +0 -2
- package/esm2015/lib/import-csv/import-csv.component.js +0 -196
- package/esm2015/lib/import-csv/import-csv.module.js +0 -46
- package/esm2015/lib/import-csv/import-history-list/import-history-list.component.js +0 -71
- package/esm2015/lib/import-csv/import-success/import-success.component.js +0 -19
- package/esm2015/lib/loader/index.js +0 -2
- package/esm2015/lib/loader/loader.component.js +0 -22
- package/esm2015/lib/loader/loader.module.js +0 -21
- package/esm2015/lib/login-history-for-user/login-history-for-user-routing.module.js +0 -20
- package/esm2015/lib/login-history-for-user/login-history-for-user.component.js +0 -88
- package/esm2015/lib/login-history-for-user/login-history-for-user.module.js +0 -27
- package/esm2015/lib/material.module.js +0 -60
- package/esm2015/lib/note/comment-form/comment-form.component.js +0 -73
- package/esm2015/lib/note/index.js +0 -4
- package/esm2015/lib/note/note-form/note-form.component.js +0 -81
- package/esm2015/lib/note/note-list/note-list.component.js +0 -151
- package/esm2015/lib/note/note.module.js +0 -36
- package/esm2015/lib/note/note.service.js +0 -31
- package/esm2015/lib/read-more/read-more.component.js +0 -43
- package/esm2015/lib/read-more/read-more.module.js +0 -21
- package/esm2015/lib/searchable-selector/index.js +0 -3
- package/esm2015/lib/searchable-selector/mat-select-infinite-scroll.directive.js +0 -81
- package/esm2015/lib/searchable-selector/searchable-selector.component.js +0 -307
- package/esm2015/lib/searchable-selector/searchable-selector.module.js +0 -28
- package/esm2015/lib/techlify-feature/on-off-switch/on-off-switch.component.js +0 -27
- package/esm2015/lib/techlify-feature/techlify-feature-enabled.directive.js +0 -78
- package/esm2015/lib/techlify-feature/techlify-feature-listing.component.js +0 -177
- package/esm2015/lib/techlify-feature/techlify-feature.module.js +0 -30
- package/esm2015/lib/techlify-feature/techlify-feature.routing.js +0 -12
- package/esm2015/lib/techlify-feature/techlify-feature.service.js +0 -28
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.js +0 -15
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.js +0 -269
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.js +0 -25
- package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.js +0 -168
- package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.js +0 -29
- package/esm2015/lib/techlify-update/techlify-update-form/techlify-update-form.component.js +0 -114
- package/esm2015/lib/techlify-update/techlify-update-form/techlify-update-form.module.js +0 -28
- package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.js +0 -22
- package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history.component.js +0 -143
- package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history.module.js +0 -28
- package/esm2015/lib/techlify-update/techlify-update-routing.module.js +0 -22
- package/esm2015/lib/techlify-update/techlify-update.module.js +0 -30
- package/esm2015/lib/techlify-update/techlify-update.service.js +0 -43
- package/esm2015/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.js +0 -161
- package/esm2015/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.js +0 -82
- package/esm2015/lib/techlify-update/update-notifier/update-notifier.component.js +0 -62
- package/esm2015/lib/techlify-update/update-notifier/update-notifier.module.js +0 -29
- package/esm2015/lib/techlify-update/update-view/update-view.component.js +0 -36
- package/esm2015/lib/techlify-update/update-view/update-view.module.js +0 -24
- package/esm2015/lib/timeline-filter/calculate-timeline.js +0 -102
- package/esm2015/lib/timeline-filter/index.js +0 -4
- package/esm2015/lib/timeline-filter/timeline-filter-routing.module.js +0 -12
- package/esm2015/lib/timeline-filter/timeline-filter.component.js +0 -213
- package/esm2015/lib/timeline-filter/timeline-filter.module.js +0 -23
- package/esm2015/lib/timeline-filter/timeline.model.js +0 -18
- package/esm2015/lib/utility/date-utils.service.js +0 -48
- package/esm2015/lib/utility/index.js +0 -4
- package/esm2015/lib/utility/num-items-selector.component.js +0 -30
- package/esm2015/lib/utility/number-selector.component.js +0 -38
- package/esm2015/lib/utility/utility.module.js +0 -21
- package/esm2015/ngx-techlify-core.js +0 -60
- package/esm2015/public-api.js +0 -96
- package/fesm2015/ngx-techlify-core.js +0 -7039
- package/fesm2015/ngx-techlify-core.js.map +0 -1
- package/lib/action-popup/action-popup.component.d.ts +0 -14
- package/lib/action-popup/action-popup.module.d.ts +0 -2
- package/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-for-model/audit-log-for-model.component.d.ts +0 -12
- package/lib/audit-log/audit-log-for-model/audit-log-for-model.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list/audit-log-list-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list/audit-log-list.component.d.ts +0 -32
- package/lib/audit-log/audit-log-list/audit-log-list.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.d.ts +0 -19
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.d.ts +0 -2
- package/lib/audit-log/audit-log-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view/audit-log-view-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view/audit-log-view.component.d.ts +0 -17
- package/lib/audit-log/audit-log-view/audit-log-view.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view-model/audit-log-view-model.component.d.ts +0 -15
- package/lib/audit-log/audit-log-view-model/audit-log-view-model.module.d.ts +0 -2
- package/lib/audit-log/audit-log.module.d.ts +0 -2
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.d.ts +0 -11
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.d.ts +0 -2
- package/lib/base-model/index.d.ts +0 -3
- package/lib/base-model/techlify-form-component.class.d.ts +0 -43
- package/lib/base-model/techlify-listing-component.class.d.ts +0 -47
- package/lib/base-model/techlify-service.class.d.ts +0 -52
- package/lib/core/alert.service.d.ts +0 -12
- package/lib/core/api-prefix.interceptor.d.ts +0 -11
- package/lib/core/authentication.guard.d.ts +0 -10
- package/lib/core/authentication.service.d.ts +0 -23
- package/lib/core/cache.interceptor.d.ts +0 -21
- package/lib/core/config.service.d.ts +0 -19
- package/lib/core/core.module.d.ts +0 -3
- package/lib/core/credentials.service.d.ts +0 -36
- package/lib/core/error-handler.interceptor.d.ts +0 -14
- package/lib/core/error-handler.service.d.ts +0 -14
- package/lib/core/form-validator.service.d.ts +0 -8
- package/lib/core/header.interceptor.d.ts +0 -8
- package/lib/core/http-cache.service.d.ts +0 -54
- package/lib/core/http.service.d.ts +0 -56
- package/lib/core/logger.service.d.ts +0 -85
- package/lib/core/route-reusable-strategy.d.ts +0 -13
- package/lib/core/snack/snack.component.d.ts +0 -8
- package/lib/core/snack/snack.module.d.ts +0 -2
- package/lib/core/storage.service.d.ts +0 -15
- package/lib/core/techlify-config.model.d.ts +0 -18
- package/lib/core/token.interceptor.d.ts +0 -11
- package/lib/data-table/data-table.component.d.ts +0 -60
- package/lib/data-table/data-table.module.d.ts +0 -2
- package/lib/date-validator.d.ts +0 -1
- package/lib/document-viewer/document-viewer.component.d.ts +0 -16
- package/lib/document-viewer/document-viewer.module.d.ts +0 -2
- package/lib/document-viewer/viewer-config.model.d.ts +0 -5
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.d.ts +0 -7
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.d.ts +0 -17
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.d.ts +0 -32
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.d.ts +0 -9
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.d.ts +0 -30
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.d.ts +0 -1
- package/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.d.ts +0 -32
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.d.ts +0 -9
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.d.ts +0 -32
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.d.ts +0 -13
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription.module.d.ts +0 -2
- package/lib/entity-files/entity-file-form/entity-file-form.component.d.ts +0 -34
- package/lib/entity-files/entity-file.service.d.ts +0 -10
- package/lib/entity-files/entity-files-view-all.component.d.ts +0 -45
- package/lib/entity-files/entity-files-view-all.module.d.ts +0 -2
- package/lib/entity-files/index.d.ts +0 -2
- package/lib/export-excel/export-excel-button/export-excel-button.component.d.ts +0 -8
- package/lib/export-excel/export-excel.module.d.ts +0 -2
- package/lib/file-dropper/file-dropper.component.d.ts +0 -33
- package/lib/file-dropper/file-dropper.model.d.ts +0 -10
- package/lib/file-dropper/file-dropper.module.d.ts +0 -2
- package/lib/import-csv/data-import/data-import.component.d.ts +0 -6
- package/lib/import-csv/failed-items-list/failed-items-list.component.d.ts +0 -12
- package/lib/import-csv/field-mapping/field-mapping.component.d.ts +0 -34
- package/lib/import-csv/import-csv-config.d.ts +0 -17
- package/lib/import-csv/import-csv.component.d.ts +0 -33
- package/lib/import-csv/import-csv.module.d.ts +0 -2
- package/lib/import-csv/import-history-list/import-history-list.component.d.ts +0 -21
- package/lib/import-csv/import-success/import-success.component.d.ts +0 -8
- package/lib/loader/loader.component.d.ts +0 -8
- package/lib/loader/loader.module.d.ts +0 -2
- package/lib/login-history-for-user/login-history-for-user-routing.module.d.ts +0 -2
- package/lib/login-history-for-user/login-history-for-user.component.d.ts +0 -23
- package/lib/login-history-for-user/login-history-for-user.module.d.ts +0 -2
- package/lib/material.module.d.ts +0 -2
- package/lib/note/comment-form/comment-form.component.d.ts +0 -22
- package/lib/note/note-form/note-form.component.d.ts +0 -27
- package/lib/note/note-list/note-list.component.d.ts +0 -28
- package/lib/note/note.module.d.ts +0 -2
- package/lib/note/note.service.d.ts +0 -9
- package/lib/read-more/read-more.component.d.ts +0 -12
- package/lib/read-more/read-more.module.d.ts +0 -2
- package/lib/searchable-selector/index.d.ts +0 -2
- package/lib/searchable-selector/mat-select-infinite-scroll.directive.d.ts +0 -23
- package/lib/searchable-selector/searchable-selector.component.d.ts +0 -81
- package/lib/searchable-selector/searchable-selector.module.d.ts +0 -2
- package/lib/techlify-feature/on-off-switch/on-off-switch.component.d.ts +0 -9
- package/lib/techlify-feature/techlify-feature-enabled.directive.d.ts +0 -17
- package/lib/techlify-feature/techlify-feature-listing.component.d.ts +0 -37
- package/lib/techlify-feature/techlify-feature.module.d.ts +0 -2
- package/lib/techlify-feature/techlify-feature.routing.d.ts +0 -2
- package/lib/techlify-feature/techlify-feature.service.d.ts +0 -8
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.d.ts +0 -12
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.d.ts +0 -76
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.d.ts +0 -2
- package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.d.ts +0 -58
- package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-form/techlify-update-form.component.d.ts +0 -30
- package/lib/techlify-update/techlify-update-form/techlify-update-form.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-history/techlify-update-history.component.d.ts +0 -31
- package/lib/techlify-update/techlify-update-history/techlify-update-history.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-routing.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update.service.d.ts +0 -13
- package/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.d.ts +0 -31
- package/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.d.ts +0 -25
- package/lib/techlify-update/update-notifier/update-notifier.component.d.ts +0 -16
- package/lib/techlify-update/update-notifier/update-notifier.module.d.ts +0 -2
- package/lib/techlify-update/update-view/update-view.component.d.ts +0 -14
- package/lib/techlify-update/update-view/update-view.module.d.ts +0 -2
- package/lib/timeline-filter/calculate-timeline.d.ts +0 -6
- package/lib/timeline-filter/timeline-filter-routing.module.d.ts +0 -2
- package/lib/timeline-filter/timeline-filter.component.d.ts +0 -61
- package/lib/timeline-filter/timeline-filter.module.d.ts +0 -2
- package/lib/timeline-filter/timeline.model.d.ts +0 -17
- package/lib/utility/date-utils.service.d.ts +0 -21
- package/lib/utility/num-items-selector.component.d.ts +0 -16
- package/lib/utility/number-selector.component.d.ts +0 -20
- package/lib/utility/utility.module.d.ts +0 -2
- package/ngx-techlify-core.d.ts +0 -59
- package/ngx-techlify-core.metadata.json +0 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { ViewerConfig } from '../document-viewer/viewer-config.model';
|
|
2
|
+
import { FileDropperConfig } from '../file-dropper/file-dropper.model';
|
|
3
|
+
import { HttpService } from '../core/http.service';
|
|
4
|
+
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
|
5
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
6
|
+
import { AlertService } from '../core/alert.service';
|
|
7
|
+
import { ErrorHandlerService } from '../core/error-handler.service';
|
|
8
|
+
import * as XLSX from 'xlsx';
|
|
9
|
+
import { ImportCsvConfig } from './import-csv-config';
|
|
10
|
+
@UntilDestroy()
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'app-import-csv',
|
|
14
|
+
templateUrl: './import-csv.component.html',
|
|
15
|
+
styleUrls: ['./import-csv.component.scss']
|
|
16
|
+
})
|
|
17
|
+
export class ImportCsvComponent implements OnInit {
|
|
18
|
+
result: any;
|
|
19
|
+
@Input() config: ImportCsvConfig;
|
|
20
|
+
filesConfig: FileDropperConfig;
|
|
21
|
+
filesList: any[] = [];
|
|
22
|
+
data: any[] = [];
|
|
23
|
+
isUploaded: boolean = false;
|
|
24
|
+
isImportTypeSelected: boolean = false;
|
|
25
|
+
viewerConfig: ViewerConfig;
|
|
26
|
+
fileData: any[] = [];
|
|
27
|
+
failedItems: any[] = [];
|
|
28
|
+
selectedFields: any[] = [];
|
|
29
|
+
importSteps: any = [
|
|
30
|
+
{
|
|
31
|
+
id: 1,
|
|
32
|
+
step: 1,
|
|
33
|
+
title: 'Upload',
|
|
34
|
+
progressTitle: '',
|
|
35
|
+
progressDescription: ''
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 2,
|
|
39
|
+
step: 2,
|
|
40
|
+
title: 'Field Mappings',
|
|
41
|
+
progressTitle: '',
|
|
42
|
+
progressDescription: ''
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 3,
|
|
46
|
+
step: 3,
|
|
47
|
+
title: 'Data Validation',
|
|
48
|
+
progressTitle: 'Data Being Validated',
|
|
49
|
+
progressDescription: 'The data is currently being validated and checked for errors, please do not navigate away from this page. '
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 4,
|
|
53
|
+
step: 3,
|
|
54
|
+
title: 'Data Validation & Errors',
|
|
55
|
+
progressTitle: '',
|
|
56
|
+
progressDescription: ''
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: 5,
|
|
60
|
+
step: 4,
|
|
61
|
+
title: 'Data Importing',
|
|
62
|
+
progressTitle: 'Data Being Imported',
|
|
63
|
+
progressDescription: 'The data is currently being imported and saved, please do not navigate away from this page. After the import is completed, you will be redirected to a page with the imported records.'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 6,
|
|
67
|
+
step: 5,
|
|
68
|
+
title: 'Success Page & Data Preview',
|
|
69
|
+
progressTitle: '',
|
|
70
|
+
progressDescription: ''
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
currentStep: any = 1;
|
|
74
|
+
|
|
75
|
+
constructor(
|
|
76
|
+
private alertService: AlertService,
|
|
77
|
+
private errorHandler: ErrorHandlerService,
|
|
78
|
+
private http: HttpService,
|
|
79
|
+
) {
|
|
80
|
+
this.filesConfig = {
|
|
81
|
+
fileId: "file",
|
|
82
|
+
containerId: "fileContainer",
|
|
83
|
+
styles: {
|
|
84
|
+
height: "200px"
|
|
85
|
+
},
|
|
86
|
+
acceptFile: '.csv',
|
|
87
|
+
multiple: false,
|
|
88
|
+
maxSize: 10,
|
|
89
|
+
acceptFileText: ".csv"
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
ngOnInit() {
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
get step() {
|
|
97
|
+
return this.importSteps.find(step => step.id == this.currentStep);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
async fileChanged(event: any) {
|
|
101
|
+
this.currentStep = 2;
|
|
102
|
+
this.filesList = event;
|
|
103
|
+
|
|
104
|
+
let selectedFile = null;
|
|
105
|
+
let jsonData = null;
|
|
106
|
+
const reader = new FileReader();
|
|
107
|
+
const file = this.filesList[0];
|
|
108
|
+
reader.onload = (event) => {
|
|
109
|
+
const data = reader.result;
|
|
110
|
+
selectedFile = XLSX.read(data, {
|
|
111
|
+
type: 'binary',
|
|
112
|
+
cellDates: true,
|
|
113
|
+
});
|
|
114
|
+
jsonData = selectedFile.SheetNames.reduce((initial, name) => {
|
|
115
|
+
const sheet = selectedFile.Sheets[name];
|
|
116
|
+
initial = XLSX.utils.sheet_to_json(sheet, {
|
|
117
|
+
header: 0,
|
|
118
|
+
defval: "",
|
|
119
|
+
});
|
|
120
|
+
return initial;
|
|
121
|
+
}, {});
|
|
122
|
+
this.fileData = jsonData;
|
|
123
|
+
}
|
|
124
|
+
reader.readAsBinaryString(file);
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
mappingProcessed(event: any) {
|
|
129
|
+
this.currentStep = 3;
|
|
130
|
+
setTimeout(x => {
|
|
131
|
+
this.selectedFields = event.fields;
|
|
132
|
+
const tempFileData = JSON.parse(JSON.stringify(this.fileData));
|
|
133
|
+
tempFileData.forEach(data => {
|
|
134
|
+
for (var key in data) {
|
|
135
|
+
var field = event.fields.find((field: any) => field.label == key);
|
|
136
|
+
if (field) {
|
|
137
|
+
if ((field.propertyType == 'date' || field.propertyType == 'dateTime') && this.isValidDate(new Date(data[field.label]))) {
|
|
138
|
+
data[field.property] = (new Date(data[field.label]) as Date).toISOString();
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
data[field.property] = data[field.label];
|
|
142
|
+
}
|
|
143
|
+
delete data[key];
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
delete data[key];
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
this.save(tempFileData);
|
|
151
|
+
}, 2000);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
async save(tempFileData: any) {
|
|
155
|
+
try {
|
|
156
|
+
this.http.post(this.config.apiUrl, { data: tempFileData })
|
|
157
|
+
.pipe(
|
|
158
|
+
untilDestroyed(this)
|
|
159
|
+
).subscribe((result: any) => {
|
|
160
|
+
|
|
161
|
+
this.failedItems = result.failed_items;
|
|
162
|
+
if (this.failedItems.length) {
|
|
163
|
+
this.alertService.addAlert(result.msg, 'warn');
|
|
164
|
+
}
|
|
165
|
+
if (!(this.failedItems.length > 0)) {
|
|
166
|
+
this.currentStep = 5;
|
|
167
|
+
setTimeout(x => {
|
|
168
|
+
this.currentStep = 6;
|
|
169
|
+
this.result = result;
|
|
170
|
+
}, 2000);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
this.currentStep = 4;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
} catch (error) {
|
|
177
|
+
if ((error.status === 422 || error.status === 400) && error.msg) {
|
|
178
|
+
this.alertService.addAlert(error.msg, "warning");
|
|
179
|
+
}
|
|
180
|
+
this.errorHandler.handleError(error);
|
|
181
|
+
this.reUpload();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
isValidDate(d: any) {
|
|
186
|
+
return d instanceof Date && !isNaN(d.getTime());
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
reUpload() {
|
|
190
|
+
this.data = [];
|
|
191
|
+
this.fileData = [];
|
|
192
|
+
this.filesList = [];
|
|
193
|
+
this.failedItems = [];
|
|
194
|
+
this.selectedFields = [];
|
|
195
|
+
this.currentStep = 1;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
2
|
+
import { DocumentViewerModule } from './../document-viewer/document-viewer.module';
|
|
3
|
+
import { FileDropperModule } from './../file-dropper/file-dropper.module';
|
|
4
|
+
import { MaterialModule } from './../material.module';
|
|
5
|
+
import { ImportSuccessComponent } from './import-success/import-success.component';
|
|
6
|
+
import { ImportHistoryListComponent } from './import-history-list/import-history-list.component';
|
|
7
|
+
import { FieldMappingComponent } from './field-mapping/field-mapping.component';
|
|
8
|
+
import { FailedItemsListComponent } from './failed-items-list/failed-items-list.component';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
import { NgModule } from '@angular/core';
|
|
11
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
12
|
+
import { ImportCsvComponent } from './import-csv.component';
|
|
13
|
+
import { RouterModule } from '@angular/router';
|
|
14
|
+
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
15
|
+
import { DataImportComponent } from './data-import/data-import.component';
|
|
16
|
+
|
|
17
|
+
@NgModule({
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule,
|
|
20
|
+
FormsModule,
|
|
21
|
+
ReactiveFormsModule,
|
|
22
|
+
FlexLayoutModule,
|
|
23
|
+
RouterModule,
|
|
24
|
+
MaterialModule,
|
|
25
|
+
FlexLayoutModule,
|
|
26
|
+
FileDropperModule,
|
|
27
|
+
DocumentViewerModule,
|
|
28
|
+
InfiniteScrollModule
|
|
29
|
+
],
|
|
30
|
+
declarations: [
|
|
31
|
+
ImportCsvComponent,
|
|
32
|
+
FieldMappingComponent,
|
|
33
|
+
FailedItemsListComponent,
|
|
34
|
+
ImportHistoryListComponent,
|
|
35
|
+
ImportSuccessComponent,
|
|
36
|
+
DataImportComponent
|
|
37
|
+
],
|
|
38
|
+
providers: [],
|
|
39
|
+
exports: [
|
|
40
|
+
ImportCsvComponent
|
|
41
|
+
],
|
|
42
|
+
})
|
|
43
|
+
export class ImportCsvModule { }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<section fxLayout="column">
|
|
2
|
+
<h5 class="primary-color py-3">
|
|
3
|
+
Import History
|
|
4
|
+
</h5>
|
|
5
|
+
<table mat-table [dataSource]="histories" class="mat-elevation-z8 w-100" infi infiniteScroll
|
|
6
|
+
[infiniteScrollDistance]="2" [infiniteScrollThrottle]="50" (scrolled)="onScroll()">
|
|
7
|
+
|
|
8
|
+
<!-- Index Column -->
|
|
9
|
+
<ng-container matColumnDef="index">
|
|
10
|
+
<th mat-header-cell *matHeaderCellDef> # </th>
|
|
11
|
+
<td mat-cell *matCellDef="let element;let i=index"> {{ i+1 }} </td>
|
|
12
|
+
</ng-container>
|
|
13
|
+
|
|
14
|
+
<!-- Date Column -->
|
|
15
|
+
<ng-container matColumnDef="date">
|
|
16
|
+
<th mat-header-cell *matHeaderCellDef> Date </th>
|
|
17
|
+
<td mat-cell *matCellDef="let element"> {{element?.created_at | date:'medium'}} </td>
|
|
18
|
+
</ng-container>
|
|
19
|
+
|
|
20
|
+
<!-- Imported By Column -->
|
|
21
|
+
<ng-container matColumnDef="imported_by">
|
|
22
|
+
<th mat-header-cell *matHeaderCellDef> Imported By </th>
|
|
23
|
+
<td mat-cell *matCellDef="let element"> {{element?.creator?.name}} </td>
|
|
24
|
+
</ng-container>
|
|
25
|
+
|
|
26
|
+
<!-- No of records Column -->
|
|
27
|
+
<ng-container matColumnDef="no_of_records">
|
|
28
|
+
<th mat-header-cell *matHeaderCellDef> # of Records </th>
|
|
29
|
+
<td mat-cell *matCellDef="let element">
|
|
30
|
+
<a *ngIf="config.viewRouterLink" href="javascript:;"
|
|
31
|
+
[routerLink]="[config.viewRouterLink, {import_id: element?.id}]">
|
|
32
|
+
{{element?.no_of_records}}
|
|
33
|
+
</a>
|
|
34
|
+
<span *ngIf="!config.viewRouterLink">
|
|
35
|
+
{{element?.no_of_records}}
|
|
36
|
+
</span>
|
|
37
|
+
</td>
|
|
38
|
+
</ng-container>
|
|
39
|
+
|
|
40
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
41
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
42
|
+
</table>
|
|
43
|
+
</section>
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* tslint:disable:no-unused-variable */
|
|
2
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
+
import { By } from '@angular/platform-browser';
|
|
4
|
+
import { DebugElement } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
import { ImportHistoryListComponent } from './import-history-list.component';
|
|
7
|
+
|
|
8
|
+
describe('ImportHistoryListComponent', () => {
|
|
9
|
+
let component: ImportHistoryListComponent;
|
|
10
|
+
let fixture: ComponentFixture<ImportHistoryListComponent>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
declarations: [ ImportHistoryListComponent ]
|
|
15
|
+
})
|
|
16
|
+
.compileComponents();
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
beforeEach(() => {
|
|
20
|
+
fixture = TestBed.createComponent(ImportHistoryListComponent);
|
|
21
|
+
component = fixture.componentInstance;
|
|
22
|
+
fixture.detectChanges();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('should create', () => {
|
|
26
|
+
expect(component).toBeTruthy();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ErrorHandlerService } from './../../core/error-handler.service';
|
|
2
|
+
import { PageEvent } from './../../data-table/data-table.model';
|
|
3
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
4
|
+
import { ImportCsvConfig } from '../import-csv-config';
|
|
5
|
+
import { HttpService } from '../../core/http.service';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'app-import-history-list',
|
|
9
|
+
templateUrl: './import-history-list.component.html',
|
|
10
|
+
styleUrls: ['./import-history-list.component.scss']
|
|
11
|
+
})
|
|
12
|
+
export class ImportHistoryListComponent implements OnInit {
|
|
13
|
+
|
|
14
|
+
@Input() config: ImportCsvConfig;
|
|
15
|
+
histories: any[] = [];
|
|
16
|
+
displayedColumns: string[] = [
|
|
17
|
+
'index',
|
|
18
|
+
'imported_by',
|
|
19
|
+
'date',
|
|
20
|
+
'no_of_records'
|
|
21
|
+
];
|
|
22
|
+
isWorking: boolean = false;
|
|
23
|
+
filter: any;
|
|
24
|
+
pageEvent: PageEvent = { page: 1, perPage: 25, lastPage: 1 };
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
private errorHandler: ErrorHandlerService,
|
|
28
|
+
private http: HttpService,
|
|
29
|
+
) {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
ngOnInit() {
|
|
33
|
+
if (this.config.importHistory.isEnabled) {
|
|
34
|
+
this.filter = {
|
|
35
|
+
model_type: this.config.importHistory.type,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
this.loadData();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
loadData() {
|
|
42
|
+
try {
|
|
43
|
+
this.isWorking = true;
|
|
44
|
+
this.http.get(this.config.importHistory.apiUrl, { params: { ...this.filter, ...this.pageEvent } }).subscribe((result: any) => {
|
|
45
|
+
this.histories = this.histories.concat(result.data);
|
|
46
|
+
this.pageEvent.page = result.current_page;
|
|
47
|
+
this.pageEvent.lastPage = result.last_page;
|
|
48
|
+
});
|
|
49
|
+
} catch (error) {
|
|
50
|
+
this.errorHandler.handleError(error);
|
|
51
|
+
}
|
|
52
|
+
finally {
|
|
53
|
+
this.isWorking = false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
onScroll() {
|
|
58
|
+
if (this.pageEvent.lastPage > this.pageEvent.page) {
|
|
59
|
+
this.pageEvent.page += 1;
|
|
60
|
+
this.loadData();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
reload() {
|
|
65
|
+
this.histories = [];
|
|
66
|
+
this.pageEvent = { page: 1, perPage: 25, lastPage: 1 };
|
|
67
|
+
this.loadData();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
ngOnDestroy() {
|
|
71
|
+
//Until destroyed uses it
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<mat-card fxFlex="100%" fxLayoutAlign="center center" class="p-0">
|
|
2
|
+
<mat-card-content class="pt-3" fxLayout="column" fxLayoutAlign="center center">
|
|
3
|
+
<mat-icon style="transform: scale(2);" class="text-success">
|
|
4
|
+
<span class="material-icons-outlined">
|
|
5
|
+
check_circle
|
|
6
|
+
</span>
|
|
7
|
+
</mat-icon>
|
|
8
|
+
<h3 class="font-weight-bold p-3 text-success" fxLayoutAlign="center center">
|
|
9
|
+
{{data?.no_of_recrods}} Records have been successfully imported
|
|
10
|
+
</h3>
|
|
11
|
+
<ng-container *ngIf="config.viewRouterLink">
|
|
12
|
+
<div class="text-muted p-3 text-center" fxLayoutAlign="center center">
|
|
13
|
+
Click the button below to view the imported records.
|
|
14
|
+
</div>
|
|
15
|
+
<div class="text-muted p-3 text-center" fxLayoutAlign="center center">
|
|
16
|
+
<button type="button" mat-raised-button [routerLink]="[config.viewRouterLink, {import_id: data?.import_id}]">
|
|
17
|
+
View Imported Records
|
|
18
|
+
</button>
|
|
19
|
+
</div>
|
|
20
|
+
</ng-container>
|
|
21
|
+
</mat-card-content>
|
|
22
|
+
</mat-card>
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* tslint:disable:no-unused-variable */
|
|
2
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
3
|
+
import { By } from '@angular/platform-browser';
|
|
4
|
+
import { DebugElement } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
import { ImportSuccessComponent } from './import-success.component';
|
|
7
|
+
|
|
8
|
+
describe('ImportSuccessComponent', () => {
|
|
9
|
+
let component: ImportSuccessComponent;
|
|
10
|
+
let fixture: ComponentFixture<ImportSuccessComponent>;
|
|
11
|
+
|
|
12
|
+
beforeEach(async(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
declarations: [ ImportSuccessComponent ]
|
|
15
|
+
})
|
|
16
|
+
.compileComponents();
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
beforeEach(() => {
|
|
20
|
+
fixture = TestBed.createComponent(ImportSuccessComponent);
|
|
21
|
+
component = fixture.componentInstance;
|
|
22
|
+
fixture.detectChanges();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('should create', () => {
|
|
26
|
+
expect(component).toBeTruthy();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
2
|
+
import { ImportCsvConfig } from '../import-csv-config';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-import-success',
|
|
6
|
+
templateUrl: './import-success.component.html',
|
|
7
|
+
styleUrls: ['./import-success.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class ImportSuccessComponent implements OnInit {
|
|
10
|
+
@Input() data: any;
|
|
11
|
+
@Input() config: ImportCsvConfig;
|
|
12
|
+
constructor() { }
|
|
13
|
+
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
3
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
4
|
+
|
|
5
|
+
import { MaterialModule } from '@app/material.module';
|
|
6
|
+
import { LoaderComponent } from './loader.component';
|
|
7
|
+
|
|
8
|
+
describe('LoaderComponent', () => {
|
|
9
|
+
let component: LoaderComponent;
|
|
10
|
+
let fixture: ComponentFixture<LoaderComponent>;
|
|
11
|
+
|
|
12
|
+
beforeEach(waitForAsync(() => {
|
|
13
|
+
TestBed.configureTestingModule({
|
|
14
|
+
imports: [
|
|
15
|
+
BrowserAnimationsModule,
|
|
16
|
+
FlexLayoutModule,
|
|
17
|
+
MaterialModule
|
|
18
|
+
],
|
|
19
|
+
declarations: [LoaderComponent]
|
|
20
|
+
})
|
|
21
|
+
.compileComponents();
|
|
22
|
+
}));
|
|
23
|
+
|
|
24
|
+
beforeEach(() => {
|
|
25
|
+
fixture = TestBed.createComponent(LoaderComponent);
|
|
26
|
+
component = fixture.componentInstance;
|
|
27
|
+
fixture.detectChanges();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('should not be visible by default', () => {
|
|
31
|
+
// Arrange
|
|
32
|
+
const element = fixture.nativeElement;
|
|
33
|
+
const div = element.querySelectorAll('div')[0];
|
|
34
|
+
|
|
35
|
+
// Assert
|
|
36
|
+
expect(div.getAttribute('hidden')).not.toBeNull();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('should be visible when app is loading', () => {
|
|
40
|
+
// Arrange
|
|
41
|
+
const element = fixture.nativeElement;
|
|
42
|
+
const div = element.querySelectorAll('div')[0];
|
|
43
|
+
|
|
44
|
+
// Act
|
|
45
|
+
fixture.componentInstance.isLoading = true;
|
|
46
|
+
fixture.detectChanges();
|
|
47
|
+
|
|
48
|
+
// Assert
|
|
49
|
+
expect(div.getAttribute('hidden')).toBeNull();
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
it('should not display a message by default', () => {
|
|
53
|
+
// Arrange
|
|
54
|
+
const element = fixture.nativeElement;
|
|
55
|
+
const span = element.querySelectorAll('span')[0];
|
|
56
|
+
|
|
57
|
+
// Assert
|
|
58
|
+
expect(span.textContent).toBe('');
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
it('should display specified message', () => {
|
|
62
|
+
// Arrange
|
|
63
|
+
const element = fixture.nativeElement;
|
|
64
|
+
const span = element.querySelectorAll('span')[0];
|
|
65
|
+
|
|
66
|
+
// Act
|
|
67
|
+
fixture.componentInstance.message = 'testing';
|
|
68
|
+
fixture.detectChanges();
|
|
69
|
+
|
|
70
|
+
// Assert
|
|
71
|
+
expect(span.textContent).toBe('testing');
|
|
72
|
+
});
|
|
73
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'app-loader',
|
|
5
|
+
templateUrl: './loader.component.html',
|
|
6
|
+
styleUrls: ['./loader.component.scss']
|
|
7
|
+
})
|
|
8
|
+
export class LoaderComponent implements OnInit {
|
|
9
|
+
|
|
10
|
+
@Input() isLoading = false;
|
|
11
|
+
@Input() size = 0.6;
|
|
12
|
+
@Input() message: string | undefined;
|
|
13
|
+
|
|
14
|
+
constructor() { }
|
|
15
|
+
|
|
16
|
+
ngOnInit() { }
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { LoaderComponent } from './loader.component';
|
|
4
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [
|
|
8
|
+
LoaderComponent
|
|
9
|
+
],
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
MatProgressSpinnerModule
|
|
13
|
+
],
|
|
14
|
+
exports: [
|
|
15
|
+
LoaderComponent
|
|
16
|
+
]
|
|
17
|
+
})
|
|
18
|
+
export class LoaderModule { }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { Routes, RouterModule } from '@angular/router';
|
|
3
|
+
import { AuthenticationGuard } from '../core/authentication.guard';
|
|
4
|
+
import { LoginHistoryForUserComponent } from './login-history-for-user.component';
|
|
5
|
+
|
|
6
|
+
const routes: Routes = [
|
|
7
|
+
{
|
|
8
|
+
path: '',
|
|
9
|
+
component: LoginHistoryForUserComponent,
|
|
10
|
+
canActivate: [AuthenticationGuard]
|
|
11
|
+
},
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
@NgModule({
|
|
15
|
+
imports: [RouterModule.forChild(routes)],
|
|
16
|
+
exports: [RouterModule]
|
|
17
|
+
})
|
|
18
|
+
export class LoginHistoryForUserRoutingModule { }
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="mat-typography m-4">
|
|
2
|
+
<form [formGroup]="historyFilterForm" fxLayoutAlign=" start center">
|
|
3
|
+
<app-timeline-filter formControlName="duration" (selectionChange)="onTimelineChange($event)"></app-timeline-filter>
|
|
4
|
+
</form>
|
|
5
|
+
|
|
6
|
+
<section>
|
|
7
|
+
<div class="scroll-container" infiniteScroll [infiniteScrollDistance]="2" [infiniteScrollThrottle]="50"
|
|
8
|
+
(scrolled)="onScroll()" [scrollWindow]="false">
|
|
9
|
+
<table mat-table [dataSource]="loginHistoryList" matSort class="w-100 mt-1" multiTemplateDataRows
|
|
10
|
+
id="login-history-table">
|
|
11
|
+
|
|
12
|
+
<!-- Index Column -->
|
|
13
|
+
<ng-container matColumnDef="index">
|
|
14
|
+
<th mat-header-cell *matHeaderCellDef> # </th>
|
|
15
|
+
<td mat-cell *matCellDef="let loginHistory; let i = dataIndex"> {{ i+1 }} </td>
|
|
16
|
+
</ng-container>
|
|
17
|
+
|
|
18
|
+
<ng-container matColumnDef="created_at">
|
|
19
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header> Last Login</th>
|
|
20
|
+
<td mat-cell *matCellDef="let loginHistory;">
|
|
21
|
+
{{loginHistory?.created_at | date:'medium' }}
|
|
22
|
+
</td>
|
|
23
|
+
</ng-container>
|
|
24
|
+
|
|
25
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns;"></tr>
|
|
26
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
27
|
+
</table>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
</section>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { LoginHistoryForUserComponent } from './login-history-for-user.component';
|
|
4
|
+
|
|
5
|
+
describe('LoginHistoryForUserComponent', () => {
|
|
6
|
+
let component: LoginHistoryForUserComponent;
|
|
7
|
+
let fixture: ComponentFixture<LoginHistoryForUserComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ LoginHistoryForUserComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(LoginHistoryForUserComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|