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,44 @@
|
|
|
1
|
+
import { NgModule, Optional, SkipSelf } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { HTTP_INTERCEPTORS, HttpClientModule, HttpClient } from '@angular/common/http';
|
|
4
|
+
import { RouteReuseStrategy, RouterModule } from '@angular/router';
|
|
5
|
+
|
|
6
|
+
import { RouteReusableStrategy } from './route-reusable-strategy';
|
|
7
|
+
import { ApiPrefixInterceptor } from './api-prefix.interceptor';
|
|
8
|
+
import { ErrorHandlerInterceptor } from './error-handler.interceptor';
|
|
9
|
+
import { HttpService } from './http.service';
|
|
10
|
+
import { TokenInterceptor } from './token.interceptor';
|
|
11
|
+
import { CacheInterceptor } from './cache.interceptor';
|
|
12
|
+
import { SnackModule } from './snack/snack.module';
|
|
13
|
+
|
|
14
|
+
@NgModule({
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
HttpClientModule,
|
|
18
|
+
RouterModule,
|
|
19
|
+
SnackModule
|
|
20
|
+
],
|
|
21
|
+
providers: [
|
|
22
|
+
{
|
|
23
|
+
provide: HttpClient,
|
|
24
|
+
useClass: HttpService
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
provide: RouteReuseStrategy,
|
|
28
|
+
useClass: RouteReusableStrategy
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
exports: [
|
|
32
|
+
SnackModule
|
|
33
|
+
]
|
|
34
|
+
})
|
|
35
|
+
export class CoreModule {
|
|
36
|
+
|
|
37
|
+
constructor(@Optional() @SkipSelf() parentModule: CoreModule) {
|
|
38
|
+
// Import guard
|
|
39
|
+
if (parentModule) {
|
|
40
|
+
throw new Error(`${parentModule} has already been loaded. Import Core module in the root module only.`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { ConfigService } from './config.service';
|
|
3
|
+
|
|
4
|
+
export interface Credentials {
|
|
5
|
+
// Customize received credentials here
|
|
6
|
+
user: any;
|
|
7
|
+
token: any;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Provides storage for authentication credentials.
|
|
12
|
+
* The Credentials interface should be replaced with proper implementation.
|
|
13
|
+
*/
|
|
14
|
+
@Injectable({
|
|
15
|
+
providedIn: 'root'
|
|
16
|
+
})
|
|
17
|
+
export class CredentialsService {
|
|
18
|
+
|
|
19
|
+
private _credentials: Credentials | null = null;
|
|
20
|
+
|
|
21
|
+
constructor(private configService: ConfigService) {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Checks is the user is authenticated.
|
|
26
|
+
* @return True if the user is authenticated.
|
|
27
|
+
*/
|
|
28
|
+
get isAuthenticated(): boolean {
|
|
29
|
+
return !!this.credentials;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Gets the user credentials.
|
|
34
|
+
* @return The user credentials or null if the user is not authenticated.
|
|
35
|
+
*/
|
|
36
|
+
get credentials(): Credentials | null {
|
|
37
|
+
if (!this._credentials) {
|
|
38
|
+
this._credentials = JSON.parse(sessionStorage.getItem(this.configService.getCredentialsKey()) || localStorage.getItem(this.configService.getCredentialsKey()));
|
|
39
|
+
}
|
|
40
|
+
return this._credentials;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Sets the user credentials.
|
|
45
|
+
* The credentials may be persisted across sessions by setting the `remember` parameter to true.
|
|
46
|
+
* Otherwise, the credentials are only persisted for the current session.
|
|
47
|
+
* @param credentials The user credentials.
|
|
48
|
+
* @param remember True to remember credentials across sessions.
|
|
49
|
+
*/
|
|
50
|
+
setCredentials(credentials?: Credentials, remember?: boolean) {
|
|
51
|
+
this._credentials = credentials || null;
|
|
52
|
+
|
|
53
|
+
if (credentials) {
|
|
54
|
+
(remember ? localStorage : sessionStorage).setItem(this.configService.getCredentialsKey(), JSON.stringify(credentials));
|
|
55
|
+
} else {
|
|
56
|
+
sessionStorage.clear();
|
|
57
|
+
localStorage.clear();
|
|
58
|
+
this._credentials = null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
getAccessToken(): string | null {
|
|
63
|
+
const expiration = this.credentials?.token?.expires_in || '';
|
|
64
|
+
const token = this.credentials?.token?.access_token || '';
|
|
65
|
+
|
|
66
|
+
if (!token || !expiration) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (Date.now() > parseInt(expiration)) {
|
|
71
|
+
this.setCredentials();
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return token;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
getExpiration(): string {
|
|
79
|
+
return this.credentials?.token?.expires_in || '';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
getRefreshToken(): string {
|
|
83
|
+
return this.credentials?.token?.refresh_token || '';
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
refresh(): CredentialsService {
|
|
87
|
+
this._credentials = null;
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
}
|
|
@@ -1,70 +1,124 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
1
2
|
import { HttpService } from './http.service';
|
|
3
|
+
|
|
2
4
|
/**
|
|
3
5
|
* Service that provides a wrapper for retrieving data from the server
|
|
4
6
|
* @deprecated use HttpService Instead
|
|
5
7
|
* @author Joshua Kissoon
|
|
6
8
|
* @since 20170709
|
|
7
9
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
@Injectable({
|
|
11
|
+
providedIn: 'root'
|
|
12
|
+
})
|
|
13
|
+
export class DataManager {
|
|
14
|
+
|
|
15
|
+
constructor(private http: HttpService) { }
|
|
16
|
+
|
|
11
17
|
/**
|
|
12
18
|
* Callback wrapper for the HTTP GET Call
|
|
13
|
-
*
|
|
19
|
+
*
|
|
14
20
|
* @param urlq The query part of the URL to be sent to the server
|
|
15
|
-
*
|
|
21
|
+
*
|
|
16
22
|
* @author Joshua Kissoon
|
|
17
23
|
* @since 20160826
|
|
18
24
|
* @updated 20170711 to add parameters
|
|
19
25
|
*/
|
|
20
|
-
GET(urlq: string, params
|
|
26
|
+
GET(urlq: string, params = {}): any {
|
|
27
|
+
return this.http
|
|
28
|
+
.get(urlq, { params: params })
|
|
29
|
+
.toPromise();
|
|
30
|
+
}
|
|
31
|
+
|
|
21
32
|
/**
|
|
22
33
|
* Callback wrapper for the HTTP POST Call
|
|
23
|
-
*
|
|
34
|
+
*
|
|
24
35
|
* @param urlq The query part of the URL to be sent to the server
|
|
25
36
|
* @param object The object containing the POST data to be sent
|
|
26
|
-
*
|
|
37
|
+
*
|
|
27
38
|
* @author Joshua Kissoon
|
|
28
39
|
* @since 20160826
|
|
29
40
|
*/
|
|
30
|
-
POST(urlq: string, object: any): any
|
|
41
|
+
POST(urlq: string, object: any): any {
|
|
42
|
+
if (null == object) {
|
|
43
|
+
object = { "blank": "blank" };
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return this.http
|
|
47
|
+
.post(urlq, object)
|
|
48
|
+
.toPromise();
|
|
49
|
+
}
|
|
50
|
+
|
|
31
51
|
/**
|
|
32
52
|
* Callback wrapper for the HTTP POST Call
|
|
33
|
-
*
|
|
53
|
+
*
|
|
34
54
|
* @param urlq The query part of the URL to be sent to the server
|
|
35
55
|
* @param object The object containing the POST data to be sent
|
|
36
|
-
*
|
|
56
|
+
*
|
|
37
57
|
* @author Joshua Kissoon
|
|
38
58
|
* @since 20160826
|
|
39
59
|
*/
|
|
40
|
-
POSTRAW(urlq: string, object: any): any
|
|
60
|
+
POSTRAW(urlq: string, object: any): any {
|
|
61
|
+
if (null == object) {
|
|
62
|
+
object = { "blank": "blank" };
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return this.http
|
|
66
|
+
.skipHeader()
|
|
67
|
+
.post(urlq, object)
|
|
68
|
+
.toPromise();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
41
72
|
/**
|
|
42
73
|
* Callback wrapper for the HTTP PUT Call
|
|
43
|
-
*
|
|
74
|
+
*
|
|
44
75
|
* @param urlq The query part of the URL to be sent to the server
|
|
45
76
|
* @param object The object containing the PUT data to be sent
|
|
46
|
-
*
|
|
77
|
+
*
|
|
47
78
|
* @author Joshua Kissoon
|
|
48
79
|
* @since 20160826
|
|
49
80
|
*/
|
|
50
|
-
PUT(urlq: string, object: any): any
|
|
81
|
+
PUT(urlq: string, object: any): any {
|
|
82
|
+
if (null == object) {
|
|
83
|
+
object = { "blank": "blank" };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return this.http
|
|
87
|
+
.put(urlq, object)
|
|
88
|
+
.toPromise();
|
|
89
|
+
}
|
|
90
|
+
|
|
51
91
|
/**
|
|
52
92
|
* Callback wrapper for the HTTP PATCH Call
|
|
53
|
-
*
|
|
93
|
+
*
|
|
54
94
|
* @param urlq The query part of the URL to be sent to the server
|
|
55
95
|
* @param object The object containing the PUT data to be sent
|
|
56
|
-
*
|
|
96
|
+
*
|
|
57
97
|
* @author Joshua Kissoon
|
|
58
98
|
* @since 20161107
|
|
59
99
|
*/
|
|
60
|
-
PATCH(urlq: string, object: any): any
|
|
100
|
+
PATCH(urlq: string, object: any): any {
|
|
101
|
+
if (null == object) {
|
|
102
|
+
object = { "blank": "blank" };
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return this.http
|
|
106
|
+
.patch(urlq, object)
|
|
107
|
+
.toPromise();
|
|
108
|
+
}
|
|
109
|
+
|
|
61
110
|
/**
|
|
62
111
|
* Callback wrapper for the HTTP DELETE Call
|
|
63
|
-
*
|
|
112
|
+
*
|
|
64
113
|
* @param urlq The query part of the URL to be sent to the server
|
|
65
|
-
*
|
|
114
|
+
*
|
|
66
115
|
* @author Joshua Kissoon
|
|
67
116
|
* @since 20160826
|
|
68
117
|
*/
|
|
69
|
-
DELETE(urlq: string): any
|
|
70
|
-
|
|
118
|
+
DELETE(urlq: string): any {
|
|
119
|
+
return this.http
|
|
120
|
+
.delete(urlq)
|
|
121
|
+
.toPromise();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpErrorResponse } from '@angular/common/http';
|
|
3
|
+
import { Observable, throwError } from 'rxjs';
|
|
4
|
+
import { catchError } from 'rxjs/operators';
|
|
5
|
+
import { Logger } from './logger.service';
|
|
6
|
+
import { ConfigService } from './config.service';
|
|
7
|
+
import { ErrorHandlerService } from './error-handler.service';
|
|
8
|
+
|
|
9
|
+
const log = new Logger('ErrorHandlerInterceptor');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Adds a default error handler to all requests.
|
|
13
|
+
*/
|
|
14
|
+
@Injectable({
|
|
15
|
+
providedIn: 'root'
|
|
16
|
+
})
|
|
17
|
+
export class ErrorHandlerInterceptor implements HttpInterceptor {
|
|
18
|
+
|
|
19
|
+
constructor(private configService: ConfigService, private errorHandler: ErrorHandlerService) { }
|
|
20
|
+
|
|
21
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
|
|
22
|
+
return next.handle(request).pipe(catchError(error => this.handleError(error)));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Customize the default error handler here if needed
|
|
26
|
+
private handleError(error: HttpErrorResponse): Observable<HttpEvent<any>> {
|
|
27
|
+
let errorMessage = '';
|
|
28
|
+
if (error.error instanceof ErrorEvent) {
|
|
29
|
+
// client-side error
|
|
30
|
+
errorMessage = `Client Error: ${this.configService?.getProjectKey()}: ${error.error.message}`;
|
|
31
|
+
} else {
|
|
32
|
+
// server-side error
|
|
33
|
+
errorMessage = `Server Error: ${this.configService?.getProjectKey()}`;
|
|
34
|
+
try {
|
|
35
|
+
this.errorHandler.handleError(error, 'Unexpected Server Error, try later or contact service team');
|
|
36
|
+
} catch (e) {
|
|
37
|
+
console.log("Unable to handle server error", e);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return throwError(error);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { TechlifyConfig } from './techlify-config.model';
|
|
2
|
+
import { Injectable } from "@angular/core";
|
|
3
|
+
import { AlertService } from "./alert.service";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Service used to handle errors from the request
|
|
8
|
+
*
|
|
9
|
+
* @author Joshua Kissoon
|
|
10
|
+
* @since 20171202
|
|
11
|
+
*/
|
|
12
|
+
@Injectable({
|
|
13
|
+
providedIn: 'root'
|
|
14
|
+
})
|
|
15
|
+
export class ErrorHandlerService {
|
|
16
|
+
|
|
17
|
+
constructor(private alerter: AlertService,
|
|
18
|
+
private config: TechlifyConfig,
|
|
19
|
+
) {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
handleError(errorResponse: any, msg: string = '') {
|
|
23
|
+
// 1 - Create empty array to store errors
|
|
24
|
+
const errors = [];
|
|
25
|
+
|
|
26
|
+
// 2 - check if the error object is present in the response
|
|
27
|
+
if (errorResponse?.error) {
|
|
28
|
+
|
|
29
|
+
// 3 - Check for Laravel form validation error messages object
|
|
30
|
+
if (errorResponse?.error?.errors) {
|
|
31
|
+
|
|
32
|
+
// 4 - For each error property (which is a form field)
|
|
33
|
+
for (const property in errorResponse.error.errors) {
|
|
34
|
+
|
|
35
|
+
if (errorResponse.error.errors?.hasOwnProperty(property)) {
|
|
36
|
+
|
|
37
|
+
// 5 - Extract it's array of errors
|
|
38
|
+
const propertyErrors: Array<string> = errorResponse?.error?.errors[property];
|
|
39
|
+
|
|
40
|
+
// 6 - Push all errors in the array to the errors array
|
|
41
|
+
propertyErrors.forEach(error => errors.push(error));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (errors.length === 0) {
|
|
48
|
+
// 7 - Push the main error message to the array of errors if there is no validation error
|
|
49
|
+
errors.push(errorResponse.error.message ? errorResponse.error.message : errorResponse.error?.error);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
var errMessage = errors.length ? errors[0] : msg;
|
|
53
|
+
this.alerter.addAlert("Error: " + errMessage, "warning");
|
|
54
|
+
|
|
55
|
+
if (errorResponse.status == 403 && this.config.isLogoutWhileApiGetsFailed) {
|
|
56
|
+
sessionStorage.clear();
|
|
57
|
+
localStorage.clear();
|
|
58
|
+
location.reload();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
@Injectable({
|
|
5
|
+
providedIn: 'root'
|
|
6
|
+
})
|
|
7
|
+
export class FilterService {
|
|
8
|
+
|
|
9
|
+
filters: any;
|
|
10
|
+
|
|
11
|
+
constructor(private router: Router) { }
|
|
12
|
+
|
|
13
|
+
applyFilterToRoute(url, filter) {
|
|
14
|
+
this.router.navigate([filter],
|
|
15
|
+
{
|
|
16
|
+
relativeTo: url,
|
|
17
|
+
replaceUrl: true
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
getFiltersFromRoute(url, filterFormGroup) {
|
|
23
|
+
url.params.subscribe(
|
|
24
|
+
params => {
|
|
25
|
+
for (var filter in params) {
|
|
26
|
+
if (params[filter]) {
|
|
27
|
+
|
|
28
|
+
for (let [key, value] of Object.entries(filterFormGroup)) {
|
|
29
|
+
if (key === filter) {
|
|
30
|
+
filterFormGroup[key] = params[filter];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
return filterFormGroup;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
|
|
4
|
+
@Injectable({
|
|
5
|
+
providedIn: 'root'
|
|
6
|
+
})
|
|
7
|
+
export class FormValidatorService {
|
|
8
|
+
|
|
9
|
+
constructor() { }
|
|
10
|
+
|
|
11
|
+
/**Method to evaluate form fields*/
|
|
12
|
+
isFieldValid(field: string, formGroup: FormGroup | any, firstAttempt?: boolean) {
|
|
13
|
+
return (!formGroup.get(field).valid && formGroup.get(field).touched) ||
|
|
14
|
+
(!formGroup.get(field).valid && formGroup.get(field).untouched && firstAttempt);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**Method to find error in form fields*/
|
|
18
|
+
getErrorMessage(field: string, formGroup: FormGroup | any, errorMessages: any, errorField?: string) {
|
|
19
|
+
const error = Object.keys(formGroup.get(field).errors);
|
|
20
|
+
return (error.length > 0) ? (errorMessages[errorField || field][error[0]] ? errorMessages[errorField || field][error[0]] : '') : '';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Prefixes all requests not starting with `http[s]` with `environment.serverUrl`.
|
|
8
|
+
*/
|
|
9
|
+
@Injectable({
|
|
10
|
+
providedIn: 'root'
|
|
11
|
+
})
|
|
12
|
+
export class HeaderInterceptor implements HttpInterceptor {
|
|
13
|
+
|
|
14
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
|
|
15
|
+
request = request.clone({
|
|
16
|
+
setHeaders: {
|
|
17
|
+
'Content-Type': request.headers.get('Content-Type') || 'application/json',
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
return next.handle(request);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { HttpResponse } from '@angular/common/http';
|
|
3
|
+
import { ConfigService } from './config.service';
|
|
4
|
+
import { Logger } from './logger.service';
|
|
5
|
+
|
|
6
|
+
const log = new Logger('HttpCacheService');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export interface HttpCacheEntry {
|
|
10
|
+
lastUpdated: Date;
|
|
11
|
+
data: HttpResponse<any>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Provides a cache facility for HTTP requests with configurable persistence policy.
|
|
16
|
+
*/
|
|
17
|
+
@Injectable({
|
|
18
|
+
providedIn: 'root'
|
|
19
|
+
})
|
|
20
|
+
export class HttpCacheService {
|
|
21
|
+
|
|
22
|
+
private cachedData: { [key: string]: HttpCacheEntry; } = {};
|
|
23
|
+
private storage: Storage | any | null;
|
|
24
|
+
private cachePersistenceKey: String | any;
|
|
25
|
+
|
|
26
|
+
constructor(private configService: ConfigService) {
|
|
27
|
+
this.storage = this.configService.getStorage();
|
|
28
|
+
this.cachePersistenceKey = this.configService.getProjectKey() + '_HTTP_CACHE';
|
|
29
|
+
this.loadCacheData();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Sets the cache data for the specified request.
|
|
34
|
+
* @param {!string} url The request URL.
|
|
35
|
+
* @param {ResponseOptions} data The received data.
|
|
36
|
+
* @param {Date=} lastUpdated The cache last update, current date is used if not specified.
|
|
37
|
+
*/
|
|
38
|
+
setCacheData(url: string, data: HttpResponse<any>, lastUpdated?: Date) {
|
|
39
|
+
this.cachedData[url] = {
|
|
40
|
+
lastUpdated: lastUpdated || new Date(),
|
|
41
|
+
data: data
|
|
42
|
+
};
|
|
43
|
+
log.debug(`Cache set for key: "${url}"`);
|
|
44
|
+
this.saveCacheData();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Gets the cached data for the specified request.
|
|
49
|
+
* @param {!string} url The request URL.
|
|
50
|
+
* @return {?ResponseOptions} The cached data or null if no cached data exists for this request.
|
|
51
|
+
*/
|
|
52
|
+
getCacheData(url: string): HttpResponse<any> | null {
|
|
53
|
+
const cacheEntry = this.cachedData[url];
|
|
54
|
+
|
|
55
|
+
if (cacheEntry) {
|
|
56
|
+
log.debug(`Cache hit for key: "${url}"`);
|
|
57
|
+
return cacheEntry.data;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Gets the cached entry for the specified request.
|
|
65
|
+
* @param {!string} url The request URL.
|
|
66
|
+
* @return {?HttpCacheEntry} The cache entry or null if no cache entry exists for this request.
|
|
67
|
+
*/
|
|
68
|
+
getHttpCacheEntry(url: string): HttpCacheEntry | null {
|
|
69
|
+
return this.cachedData[url] || null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Clears the cached entry (if exists) for the specified request.
|
|
74
|
+
* @param {!string} url The request URL.
|
|
75
|
+
*/
|
|
76
|
+
clearCache(url: string): void {
|
|
77
|
+
delete this.cachedData[url];
|
|
78
|
+
log.debug(`Cache cleared for key: "${url}"`);
|
|
79
|
+
this.saveCacheData();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Cleans cache entries older than the specified date.
|
|
84
|
+
* @param {date=} expirationDate The cache expiration date. If no date is specified, all cache is cleared.
|
|
85
|
+
*/
|
|
86
|
+
cleanCache(expirationDate?: Date) {
|
|
87
|
+
if (expirationDate) {
|
|
88
|
+
Object(this.cachedData).keys.forEach((key: string) => {
|
|
89
|
+
if (expirationDate >= this.cachedData[key]?.lastUpdated) {
|
|
90
|
+
delete this.cachedData[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
} else {
|
|
94
|
+
this.cachedData = {};
|
|
95
|
+
}
|
|
96
|
+
this.saveCacheData();
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Sets the cache persistence policy.
|
|
101
|
+
* Note that changing the cache persistence will also clear the cache from its previous storage.
|
|
102
|
+
* @param {'local'|'session'=} persistence How the cache should be persisted, it can be either local or session
|
|
103
|
+
* storage, or if no value is provided it will be only in-memory (default).
|
|
104
|
+
*/
|
|
105
|
+
setPersistence(persistence?: 'local' | 'session') {
|
|
106
|
+
this.cleanCache();
|
|
107
|
+
this.storage = persistence === 'local' ? localStorage : persistence === 'session' ? sessionStorage : null;
|
|
108
|
+
this.loadCacheData();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
private saveCacheData() {
|
|
112
|
+
if (this.storage) {
|
|
113
|
+
this.storage[this.cachePersistenceKey] = JSON.stringify(this.cachedData);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
private loadCacheData() {
|
|
118
|
+
const data = this.storage ? this.storage[this.cachePersistenceKey] : null;
|
|
119
|
+
this.cachedData = data ? JSON.parse(data) : {};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
}
|