ngx-techlify-core 11.5.0 → 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/README.md +24 -24
- 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} +5 -5
- package/src/lib/action-popup/action-popup.module.ts +23 -0
- package/{lib/action-popup/index.d.ts → src/lib/action-popup/index.ts} +2 -2
- 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} +124 -70
- 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} +22 -20
- 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} +49 -46
- package/src/lib/data-table/data-table.module.ts +23 -0
- package/{lib/data-table/index.d.ts → src/lib/data-table/index.ts} +2 -2
- 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} +2 -2
- 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} +1 -1
- 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} +1 -1
- 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} +1 -1
- 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} +1 -1
- 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} +1 -1
- 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} +2 -2
- 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} +1 -1
- 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} +3 -3
- 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} +3 -3
- 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} +3 -3
- 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} +123 -92
- 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 -8449
- 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 -147
- package/esm2015/lib/entity-files/entity-file.service.js +0 -45
- package/esm2015/lib/entity-files/entity-files-view-all.component.js +0 -304
- package/esm2015/lib/entity-files/entity-files-view-all.module.js +0 -40
- 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 -62
- 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 -7150
- 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 -38
- package/lib/entity-files/entity-file.service.d.ts +0 -11
- package/lib/entity-files/entity-files-view-all.component.d.ts +0 -65
- 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,142 @@
|
|
|
1
|
+
import { UntilDestroy } from '@ngneat/until-destroy';
|
|
2
|
+
import { untilDestroyed } from '@ngneat/until-destroy';
|
|
3
|
+
import { AlertService } from './../../core/alert.service';
|
|
4
|
+
import { UpdateViewComponent } from './../update-view/update-view.component';
|
|
5
|
+
import { TechlifyUpdateService } from './../techlify-update.service';
|
|
6
|
+
import { FormControl, FormBuilder } from '@angular/forms';
|
|
7
|
+
import { FormGroup } from '@angular/forms';
|
|
8
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
9
|
+
import { Component, OnInit } from '@angular/core';
|
|
10
|
+
import { debounceTime } from 'rxjs/operators';
|
|
11
|
+
|
|
12
|
+
@UntilDestroy()
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'app-techlify-update-history',
|
|
15
|
+
templateUrl: './techlify-update-history.component.html',
|
|
16
|
+
styleUrls: ['./techlify-update-history.component.scss']
|
|
17
|
+
})
|
|
18
|
+
export class TechlifyUpdateHistoryComponent implements OnInit {
|
|
19
|
+
techlifyUpdates: any[] = [];
|
|
20
|
+
displayedColumns: string[] = [
|
|
21
|
+
'index',
|
|
22
|
+
'title',
|
|
23
|
+
'version',
|
|
24
|
+
'released_on',
|
|
25
|
+
'learn_more_link',
|
|
26
|
+
'description',
|
|
27
|
+
'creator',
|
|
28
|
+
'actions'
|
|
29
|
+
];
|
|
30
|
+
page: number = 1;
|
|
31
|
+
lastPage: number;
|
|
32
|
+
perPage: number = 25;
|
|
33
|
+
isWorking: boolean = false;
|
|
34
|
+
filterFormGroup: FormGroup;
|
|
35
|
+
|
|
36
|
+
constructor(
|
|
37
|
+
private dialog: MatDialog,
|
|
38
|
+
private techlifyUpdateService: TechlifyUpdateService,
|
|
39
|
+
private fb: FormBuilder,
|
|
40
|
+
private alertService: AlertService
|
|
41
|
+
) {
|
|
42
|
+
this.filterFormGroup = this.fb.group({
|
|
43
|
+
search: new FormControl(''),
|
|
44
|
+
version: new FormControl(''),
|
|
45
|
+
sort_by: new FormControl('released_on|DESC'),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
ngOnInit() {
|
|
50
|
+
this.loadData();
|
|
51
|
+
this.listenChanges();
|
|
52
|
+
this.updateCurrentUserUpdates();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
listenChanges() {
|
|
56
|
+
this.filterFormGroup.valueChanges.pipe(debounceTime(500), untilDestroyed(this))
|
|
57
|
+
.subscribe(changes => {
|
|
58
|
+
this.reload();
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
ngOnDestroy() { }
|
|
63
|
+
|
|
64
|
+
async loadData() {
|
|
65
|
+
try {
|
|
66
|
+
this.isWorking = true;
|
|
67
|
+
var filters: any = this.filterFormGroup.value;
|
|
68
|
+
filters.perPage = this.perPage;
|
|
69
|
+
filters.page = this.page;
|
|
70
|
+
let result: any = await this.techlifyUpdateService.getTechlifyUpdates(
|
|
71
|
+
filters
|
|
72
|
+
);
|
|
73
|
+
this.lastPage = result.last_page || this.page;
|
|
74
|
+
this.techlifyUpdates = this.techlifyUpdates.concat(result.data);
|
|
75
|
+
} catch (error) {
|
|
76
|
+
this.alertService.addAlert("Unable to process, try later", "warn");
|
|
77
|
+
}
|
|
78
|
+
finally {
|
|
79
|
+
this.isWorking = false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
reload() {
|
|
84
|
+
this.techlifyUpdates = [];
|
|
85
|
+
this.page = 1;
|
|
86
|
+
if (!this.isWorking) {
|
|
87
|
+
this.loadData();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
onScroll() {
|
|
92
|
+
if (!this.isWorking && this.page < this.lastPage) {
|
|
93
|
+
this.page += 1;
|
|
94
|
+
this.loadData();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
resetFieldValue(field: string) {
|
|
99
|
+
this.filterFormGroup.get(field).setValue("");
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
sortColumn(event) {
|
|
103
|
+
var direction = event.direction.toString().toUpperCase();
|
|
104
|
+
this.assignFilter(event.active, direction);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
assignFilter(column, direction) {
|
|
108
|
+
switch (column) {
|
|
109
|
+
case 'title': {
|
|
110
|
+
return this.filterFormGroup.get('sort_by').setValue("title|" + direction);
|
|
111
|
+
}
|
|
112
|
+
case 'released_on': {
|
|
113
|
+
return this.filterFormGroup.get('sort_by').setValue("released_on|" + direction);
|
|
114
|
+
}
|
|
115
|
+
case 'version': {
|
|
116
|
+
return this.filterFormGroup.get('sort_by').setValue("version|" + direction);
|
|
117
|
+
}
|
|
118
|
+
default: {
|
|
119
|
+
return this.filterFormGroup.get('sort_by').setValue("created_at|DESC");
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
openUpdateView(techlifyUpdate: any): void {
|
|
125
|
+
const dialogRef = this.dialog.open(UpdateViewComponent, {
|
|
126
|
+
width: "800px",
|
|
127
|
+
autoFocus: false,
|
|
128
|
+
data: {
|
|
129
|
+
techlifyUpdate: techlifyUpdate,
|
|
130
|
+
isFromHistory: true,
|
|
131
|
+
} // Any data passed here will be injected into the model
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
async updateCurrentUserUpdates() {
|
|
136
|
+
try {
|
|
137
|
+
await this.techlifyUpdateService.updateCurrentUserUpdates();
|
|
138
|
+
} catch (error) {
|
|
139
|
+
this.alertService.addAlert("Unable to process, try later", "warn");
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
2
|
+
import { TechlifyUpdateHistoryRoutingModule } from './techlify-update-history-routing.module';
|
|
3
|
+
import { ReadMoreModule } from '../../read-more/read-more.module';
|
|
4
|
+
import { NgModule } from '@angular/core';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import { TechlifyUpdateHistoryComponent } from './techlify-update-history.component';
|
|
7
|
+
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
8
|
+
import { MaterialModule } from '../../material.module';
|
|
9
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
10
|
+
import { ActionPopupModule } from '../../action-popup/action-popup.module';
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
imports: [
|
|
14
|
+
CommonModule,
|
|
15
|
+
ReactiveFormsModule,
|
|
16
|
+
InfiniteScrollModule,
|
|
17
|
+
FlexLayoutModule,
|
|
18
|
+
MaterialModule,
|
|
19
|
+
ActionPopupModule,
|
|
20
|
+
ReadMoreModule,
|
|
21
|
+
TechlifyUpdateHistoryRoutingModule
|
|
22
|
+
],
|
|
23
|
+
declarations: [TechlifyUpdateHistoryComponent]
|
|
24
|
+
})
|
|
25
|
+
export class TechlifyUpdateHistoryModule { }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TechlifyUpdatesListComponent } from './techlify-updates-list/techlify-updates-list.component';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
const routes: Routes = [
|
|
6
|
+
{ path: '', redirectTo: 'all', pathMatch: 'full' },
|
|
7
|
+
{ path: 'all', component: TechlifyUpdatesListComponent },
|
|
8
|
+
|
|
9
|
+
//fallback
|
|
10
|
+
{
|
|
11
|
+
path: '**',
|
|
12
|
+
redirectTo: 'all',
|
|
13
|
+
pathMatch: 'full'
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
@NgModule({
|
|
18
|
+
imports: [RouterModule.forChild(routes)],
|
|
19
|
+
exports: [RouterModule]
|
|
20
|
+
})
|
|
21
|
+
export class TechlifyUpdateRoutingModule { }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReadMoreModule } from '../read-more/read-more.module';
|
|
2
|
+
import { TechlifyUpdateFormModule } from './techlify-update-form/techlify-update-form.module';
|
|
3
|
+
import { TechlifyUpdateRoutingModule } from './techlify-update-routing.module';
|
|
4
|
+
import { NgModule } from '@angular/core';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import { TechlifyUpdatesListComponent } from './techlify-updates-list/techlify-updates-list.component';
|
|
7
|
+
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
8
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import { MaterialModule } from '../material.module';
|
|
10
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
11
|
+
import { ActionPopupModule } from '../action-popup/action-popup.module';
|
|
12
|
+
|
|
13
|
+
@NgModule({
|
|
14
|
+
declarations: [TechlifyUpdatesListComponent],
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
ReactiveFormsModule,
|
|
18
|
+
InfiniteScrollModule,
|
|
19
|
+
FlexLayoutModule,
|
|
20
|
+
MaterialModule,
|
|
21
|
+
ActionPopupModule,
|
|
22
|
+
TechlifyUpdateRoutingModule,
|
|
23
|
+
TechlifyUpdateFormModule,
|
|
24
|
+
ReadMoreModule,
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
export class TechlifyUpdateModule { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TechlifyUpdateService } from './techlify-update.service';
|
|
4
|
+
|
|
5
|
+
describe('TechlifyUpdateService', () => {
|
|
6
|
+
let service: TechlifyUpdateService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(TechlifyUpdateService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HttpService } from '../core/http.service';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Injectable({
|
|
5
|
+
providedIn: 'root'
|
|
6
|
+
})
|
|
7
|
+
export class TechlifyUpdateService {
|
|
8
|
+
|
|
9
|
+
constructor(private http: HttpService) { }
|
|
10
|
+
|
|
11
|
+
getTechlifyUpdates(filters: any) {
|
|
12
|
+
return this.http.get(`api/techlify-updates`, { params: filters }).toPromise();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
createTechlifyUpdate(techlifyUpdate: any) {
|
|
16
|
+
return this.http.post(`api/techlify-updates`, techlifyUpdate).toPromise();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
updateTechlifyUpdate(techlifyUpdate: any) {
|
|
20
|
+
return this.http.put(`api/techlify-updates/${techlifyUpdate.id}`, techlifyUpdate).toPromise();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
deleteTechlifyUpdate(techlifyUpdateId: any) {
|
|
24
|
+
return this.http.delete(`api/techlify-updates/${techlifyUpdateId}`).toPromise();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
getTechlifyUpdate(techlifyUpdateId: any) {
|
|
28
|
+
return this.http.get(`api/techlify-updates/${techlifyUpdateId}`).toPromise();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
getNewUpdateForCurrentUser() {
|
|
32
|
+
return this.http.get(`api/current-user-techlify-updates`).toPromise();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
createUpdateViewRecord(techlifyUpdateView: any) {
|
|
36
|
+
return this.http.post(`api/techlify-update-views`, techlifyUpdateView).toPromise();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
updateCurrentUserUpdates() {
|
|
40
|
+
return this.http.get(`api/techlify-updates/update-view`).toPromise();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<section class="p-4" fxLayout="column">
|
|
2
|
+
<h3 class="primary-color text-center">
|
|
3
|
+
App Updates
|
|
4
|
+
<button mat-raised-button (click)="modifyTechlifyUpdate()" class="primary-bg text-white">
|
|
5
|
+
<mat-icon>
|
|
6
|
+
add
|
|
7
|
+
</mat-icon>
|
|
8
|
+
Create
|
|
9
|
+
</button>
|
|
10
|
+
</h3>
|
|
11
|
+
<form [formGroup]="filterFormGroup" fxLayout="row wrap" fxLayoutGap="0.5rem" fxFlex="100%" style="font-size: 12px;">
|
|
12
|
+
<mat-form-field fxFlex="0 1 calc(100% - 0.5rem)" fxFlex.gt-md="0 1 calc(15% - 0.5rem)" appearance="outline"
|
|
13
|
+
fxFlex.gt-sm="0 1 calc(20% - 0.5rem)">
|
|
14
|
+
<input type="text" matInput formControlName="search" placeholder="Title" autocomplete="off" />
|
|
15
|
+
<button mat-button *ngIf="filterFormGroup.get('search').value" matSuffix mat-icon-button
|
|
16
|
+
(click)="resetFieldValue('search')">
|
|
17
|
+
<mat-icon>close</mat-icon>
|
|
18
|
+
</button>
|
|
19
|
+
</mat-form-field>
|
|
20
|
+
<mat-form-field fxFlex="0 1 calc(100% - 0.5rem)" fxFlex.gt-md="0 1 calc(15% - 0.5rem)" appearance="outline"
|
|
21
|
+
fxFlex.gt-sm="0 1 calc(20% - 0.5rem)">
|
|
22
|
+
<input type="text" matInput formControlName="version" placeholder="Version" autocomplete="off" />
|
|
23
|
+
<button mat-button *ngIf="filterFormGroup.get('version').value" matSuffix mat-icon-button
|
|
24
|
+
(click)="resetFieldValue('version')">
|
|
25
|
+
<mat-icon>close</mat-icon>
|
|
26
|
+
</button>
|
|
27
|
+
</mat-form-field>
|
|
28
|
+
</form>
|
|
29
|
+
|
|
30
|
+
<table mat-table [dataSource]="techlifyUpdates" class="mat-elevation-z8 w-100" matSort multiTemplateDataRows
|
|
31
|
+
(matSortChange)="sortColumn($event)" infiniteScroll [infiniteScrollDistance]="2" [infiniteScrollThrottle]="50"
|
|
32
|
+
(scrolled)="onScroll()">
|
|
33
|
+
|
|
34
|
+
<!-- Index Column -->
|
|
35
|
+
<ng-container matColumnDef="index">
|
|
36
|
+
<th mat-header-cell *matHeaderCellDef> # </th>
|
|
37
|
+
<td mat-cell *matCellDef="let element;let i=dataIndex"> {{ i+1 }} </td>
|
|
38
|
+
</ng-container>
|
|
39
|
+
|
|
40
|
+
<!-- Course Column -->
|
|
41
|
+
<ng-container matColumnDef="title">
|
|
42
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Title </th>
|
|
43
|
+
<td mat-cell *matCellDef="let element"> {{element?.title}} </td>
|
|
44
|
+
</ng-container>
|
|
45
|
+
|
|
46
|
+
<!-- Version Column -->
|
|
47
|
+
<ng-container matColumnDef="version">
|
|
48
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Version </th>
|
|
49
|
+
<td mat-cell *matCellDef="let element"> {{element?.version}} </td>
|
|
50
|
+
</ng-container>
|
|
51
|
+
|
|
52
|
+
<!-- Released On Column -->
|
|
53
|
+
<ng-container matColumnDef="released_on">
|
|
54
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Released On </th>
|
|
55
|
+
<td mat-cell *matCellDef="let element"> {{element?.released_on | date:'mediumDate'}} </td>
|
|
56
|
+
</ng-container>
|
|
57
|
+
|
|
58
|
+
<!-- Learn More Link Column -->
|
|
59
|
+
<ng-container matColumnDef="learn_more_link">
|
|
60
|
+
<th mat-header-cell *matHeaderCellDef> Learn more link </th>
|
|
61
|
+
<td mat-cell *matCellDef="let element">
|
|
62
|
+
<a [href]="element?.learn_more_link" target="_blank">
|
|
63
|
+
{{element?.learn_more_link}}
|
|
64
|
+
</a>
|
|
65
|
+
</td>
|
|
66
|
+
</ng-container>
|
|
67
|
+
|
|
68
|
+
<!-- Description Column -->
|
|
69
|
+
<ng-container matColumnDef="description">
|
|
70
|
+
<th mat-header-cell *matHeaderCellDef> Description </th>
|
|
71
|
+
<td mat-cell *matCellDef="let element">
|
|
72
|
+
<app-read-more [text]="element?.description" [maxLength]="50"></app-read-more>
|
|
73
|
+
</td>
|
|
74
|
+
</ng-container>
|
|
75
|
+
|
|
76
|
+
<!-- Creator Column -->
|
|
77
|
+
<ng-container matColumnDef="creator">
|
|
78
|
+
<th mat-header-cell *matHeaderCellDef> Creator </th>
|
|
79
|
+
<td mat-cell *matCellDef="let element">
|
|
80
|
+
{{element?.creator?.name}}
|
|
81
|
+
<div fxLayout class="small">
|
|
82
|
+
{{element?.created_at | date : 'mediumDate'}}
|
|
83
|
+
</div>
|
|
84
|
+
</td>
|
|
85
|
+
</ng-container>
|
|
86
|
+
|
|
87
|
+
<!-- Actions Column -->
|
|
88
|
+
<ng-container matColumnDef="actions">
|
|
89
|
+
<th mat-header-cell *matHeaderCellDef> Actions </th>
|
|
90
|
+
<td mat-cell *matCellDef="let element" class="secondary-color">
|
|
91
|
+
<button type="button" class="secondary-color" mat-icon-button (click)="modifyTechlifyUpdate(element)">
|
|
92
|
+
<mat-icon>edit</mat-icon>
|
|
93
|
+
</button>
|
|
94
|
+
|
|
95
|
+
<button type="button" class="secondary-color" mat-icon-button (click)="deleteTechlifyUpdate(element)">
|
|
96
|
+
<mat-icon>delete</mat-icon>
|
|
97
|
+
</button>
|
|
98
|
+
</td>
|
|
99
|
+
</ng-container>
|
|
100
|
+
|
|
101
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
102
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
103
|
+
</table>
|
|
104
|
+
</section>
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TechlifyUpdatesListComponent } from './techlify-updates-list.component';
|
|
4
|
+
|
|
5
|
+
describe('TechlifyUpdatesListComponent', () => {
|
|
6
|
+
let component: TechlifyUpdatesListComponent;
|
|
7
|
+
let fixture: ComponentFixture<TechlifyUpdatesListComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ TechlifyUpdatesListComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(TechlifyUpdatesListComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { UntilDestroy } from '@ngneat/until-destroy';
|
|
2
|
+
import { untilDestroyed } from '@ngneat/until-destroy';
|
|
3
|
+
import { ActionPopup } from './../../action-popup/action-popup.model';
|
|
4
|
+
import { ActionPopupComponent } from './../../action-popup/action-popup.component';
|
|
5
|
+
import { TechlifyUpdateFormComponent } from './../techlify-update-form/techlify-update-form.component';
|
|
6
|
+
import { TechlifyUpdateService } from './../techlify-update.service';
|
|
7
|
+
import { FormControl, FormBuilder } from '@angular/forms';
|
|
8
|
+
import { FormGroup } from '@angular/forms';
|
|
9
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
10
|
+
import { AlertService } from '../../core/alert.service';
|
|
11
|
+
import { Component, OnInit } from '@angular/core';
|
|
12
|
+
import { debounceTime } from 'rxjs/operators';
|
|
13
|
+
|
|
14
|
+
@UntilDestroy()
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'app-techlify-updates-list',
|
|
17
|
+
templateUrl: './techlify-updates-list.component.html',
|
|
18
|
+
styleUrls: ['./techlify-updates-list.component.scss']
|
|
19
|
+
})
|
|
20
|
+
export class TechlifyUpdatesListComponent implements OnInit {
|
|
21
|
+
techlifyUpdates: any[] = [];
|
|
22
|
+
displayedColumns: string[] = [
|
|
23
|
+
'index',
|
|
24
|
+
'title',
|
|
25
|
+
'version',
|
|
26
|
+
'released_on',
|
|
27
|
+
'learn_more_link',
|
|
28
|
+
'description',
|
|
29
|
+
'creator',
|
|
30
|
+
'actions'
|
|
31
|
+
];
|
|
32
|
+
page: number = 1;
|
|
33
|
+
lastPage: number;
|
|
34
|
+
perPage: number = 25;
|
|
35
|
+
isWorking: boolean = false;
|
|
36
|
+
filterFormGroup: FormGroup;
|
|
37
|
+
|
|
38
|
+
constructor(
|
|
39
|
+
private dialog: MatDialog,
|
|
40
|
+
private alertService: AlertService,
|
|
41
|
+
private techlifyUpdateService: TechlifyUpdateService,
|
|
42
|
+
private fb: FormBuilder,
|
|
43
|
+
) {
|
|
44
|
+
this.filterFormGroup = this.fb.group({
|
|
45
|
+
search: new FormControl(''),
|
|
46
|
+
version: new FormControl(''),
|
|
47
|
+
sort_by: new FormControl('released_on|DESC'),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
ngOnInit() {
|
|
52
|
+
this.loadData();
|
|
53
|
+
this.listenChanges();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
listenChanges() {
|
|
57
|
+
this.filterFormGroup.valueChanges.pipe(debounceTime(500), untilDestroyed(this))
|
|
58
|
+
.subscribe(changes => {
|
|
59
|
+
this.reload();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
ngOnDestroy() { }
|
|
64
|
+
|
|
65
|
+
async loadData() {
|
|
66
|
+
try {
|
|
67
|
+
this.isWorking = true;
|
|
68
|
+
var filters: any = this.filterFormGroup.value;
|
|
69
|
+
filters.perPage = this.perPage;
|
|
70
|
+
filters.page = this.page;
|
|
71
|
+
let result: any = await this.techlifyUpdateService.getTechlifyUpdates(
|
|
72
|
+
filters
|
|
73
|
+
);
|
|
74
|
+
this.lastPage = result.last_page || this.page;
|
|
75
|
+
this.techlifyUpdates = this.techlifyUpdates.concat(result.data);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
this.alertService.addAlert("Unable to process, try later", "warn");
|
|
78
|
+
}
|
|
79
|
+
finally {
|
|
80
|
+
this.isWorking = false;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
reload() {
|
|
85
|
+
this.techlifyUpdates = [];
|
|
86
|
+
this.page = 1;
|
|
87
|
+
if (!this.isWorking) {
|
|
88
|
+
this.loadData();
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
onScroll() {
|
|
93
|
+
if (!this.isWorking && this.page < this.lastPage) {
|
|
94
|
+
this.page += 1;
|
|
95
|
+
this.loadData();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
modifyTechlifyUpdate(model?: any) {
|
|
100
|
+
const dialogRef = this.dialog.open(TechlifyUpdateFormComponent, {
|
|
101
|
+
width: "600px",
|
|
102
|
+
data: {
|
|
103
|
+
techlifyUpdateDetails: model,
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
dialogRef.afterClosed().subscribe(result => {
|
|
108
|
+
if (result) {
|
|
109
|
+
this.reload();
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
async deleteTechlifyUpdate(model: any) {
|
|
115
|
+
const dialogRef = this.dialog.open(ActionPopupComponent, {
|
|
116
|
+
width: "400px",
|
|
117
|
+
data: <ActionPopup>{
|
|
118
|
+
title: "Delete Update",
|
|
119
|
+
message: `Are you sure to delete this update?`
|
|
120
|
+
},
|
|
121
|
+
autoFocus: false
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
dialogRef.afterClosed().subscribe(async result => {
|
|
125
|
+
if (result) {
|
|
126
|
+
//Action confirmed
|
|
127
|
+
try {
|
|
128
|
+
await this.techlifyUpdateService.deleteTechlifyUpdate(model.id);
|
|
129
|
+
this.alertService.addAlert(
|
|
130
|
+
"Successfully deleted the update",
|
|
131
|
+
"success"
|
|
132
|
+
);
|
|
133
|
+
this.reload();
|
|
134
|
+
} catch (error) {
|
|
135
|
+
this.alertService.addAlert("Unable to process, try later", "warn");
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
resetFieldValue(field: string) {
|
|
142
|
+
this.filterFormGroup.get(field).setValue("");
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
sortColumn(event) {
|
|
146
|
+
var direction = event.direction.toString().toUpperCase();
|
|
147
|
+
this.assignFilter(event.active, direction);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
assignFilter(column, direction) {
|
|
151
|
+
switch (column) {
|
|
152
|
+
case 'title': {
|
|
153
|
+
return this.filterFormGroup.get('sort_by').setValue("title|" + direction);
|
|
154
|
+
}
|
|
155
|
+
case 'released_on': {
|
|
156
|
+
return this.filterFormGroup.get('sort_by').setValue("released_on|" + direction);
|
|
157
|
+
}
|
|
158
|
+
case 'version': {
|
|
159
|
+
return this.filterFormGroup.get('sort_by').setValue("version|" + direction);
|
|
160
|
+
}
|
|
161
|
+
default: {
|
|
162
|
+
return this.filterFormGroup.get('sort_by').setValue("created_at|DESC");
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<div fxLayout="column">
|
|
2
|
+
<div fxLayout="row wrap" fxLayoutAlign="space-between">
|
|
3
|
+
<div fxLayout="row wrap" fxLayoutGap="1rem">
|
|
4
|
+
<span fxLayoutAlign="center center">
|
|
5
|
+
<mat-icon class="large-icon primary-color">
|
|
6
|
+
<span class="material-icons-outlined">
|
|
7
|
+
grading
|
|
8
|
+
</span>
|
|
9
|
+
</mat-icon>
|
|
10
|
+
</span>
|
|
11
|
+
<div fxLayout="column">
|
|
12
|
+
<h5 class="primary-color text-truncate" matTooltip="{{techlifyUpdate?.title}}" matTooltipPosition="below">
|
|
13
|
+
App Update: {{techlifyUpdate?.title}}
|
|
14
|
+
</h5>
|
|
15
|
+
<small class="text-muted">
|
|
16
|
+
Version : {{techlifyUpdate?.version}}
|
|
17
|
+
</small>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div fxLayoutAlign="end center" class="text-muted">
|
|
21
|
+
<button mat-icon-button type="button" (click)="close()">
|
|
22
|
+
<mat-icon>clear</mat-icon>
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<div fxLayout="row" class="text-muted" style="margin-top: 1rem;" [innerHtml]="descriptionText">
|
|
27
|
+
</div>
|
|
28
|
+
<div fxLayout="row" fxLayoutAlign="space-between">
|
|
29
|
+
<button type="button" mat-button class="primary-color" (click)="openUpdateHistory()">
|
|
30
|
+
<mat-icon>
|
|
31
|
+
history
|
|
32
|
+
</mat-icon>
|
|
33
|
+
Update History
|
|
34
|
+
</button>
|
|
35
|
+
<button type="button" mat-raised-button class="primary-bg text-white" (click)="openUpdateView()">
|
|
36
|
+
View
|
|
37
|
+
</button>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.large-icon {
|
|
2
|
+
transform: scale(1.5);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.primary-color {
|
|
6
|
+
color: #009fdd !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.primary-bg {
|
|
10
|
+
background-color: #009fdd !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.text-muted {
|
|
14
|
+
color: lightgrey;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.text-white {
|
|
18
|
+
color: lightgrey;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.text-truncate {
|
|
22
|
+
width: 400px;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
text-overflow: ellipsis;
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media screen and (max-width: 1440px) {
|
|
30
|
+
.text-truncate {
|
|
31
|
+
width: 350px;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@media screen and (max-width: 1024px) {
|
|
40
|
+
.text-truncate {
|
|
41
|
+
width: 220px;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
margin: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media screen and (max-width: 1024px) {
|
|
50
|
+
.text-truncate {
|
|
51
|
+
width: 190px;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|