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,325 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
import { Location } from '@angular/common';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { EntityFileFormComponent } from './entity-file-form/entity-file-form.component';
|
|
5
|
+
import { EntityFileService } from './entity-file.service';
|
|
6
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
7
|
+
import { UntilDestroy, untilDestroyed } from "@ngneat/until-destroy";
|
|
8
|
+
import { debounceTime } from 'rxjs/operators';
|
|
9
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
10
|
+
import { AlertService } from '../core/alert.service';
|
|
11
|
+
import { ActionPopupComponent } from '../action-popup/action-popup.component';
|
|
12
|
+
import { ViewerConfig } from '../document-viewer/viewer-config.model';
|
|
13
|
+
import { FileDropperConfig } from '../file-dropper';
|
|
14
|
+
import { ActionPopup } from '../action-popup/action-popup.model';
|
|
15
|
+
import { ErrorHandlerService } from '../core/error-handler.service';
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@UntilDestroy()
|
|
19
|
+
@Component({
|
|
20
|
+
selector: 'app-entity-files-view-all',
|
|
21
|
+
templateUrl: './entity-files-view-all.component.html',
|
|
22
|
+
styleUrls: ['./entity-files-view-all.component.css']
|
|
23
|
+
})
|
|
24
|
+
export class EntityFilesViewAllComponent implements OnInit {
|
|
25
|
+
@Input() entityId: number;
|
|
26
|
+
@Input() entityType: string;
|
|
27
|
+
@Input() viewOnly: boolean = false;
|
|
28
|
+
@Input() removeSearch: boolean;
|
|
29
|
+
@Input() hideTitleAndDetails: boolean;
|
|
30
|
+
@Input() displayMode: boolean;
|
|
31
|
+
@Input() allowMultipleFiles: boolean = false;
|
|
32
|
+
@Input() allowBulkUpdate: boolean = false;
|
|
33
|
+
documentIds: any[] = [];
|
|
34
|
+
isAllSelected: boolean = false;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Should we allow tagging entity-files?
|
|
38
|
+
*/
|
|
39
|
+
@Input() useTechlifyTags: boolean = false;
|
|
40
|
+
|
|
41
|
+
viewerConfig: ViewerConfig;
|
|
42
|
+
@Input() title: string = "File";
|
|
43
|
+
filters: any = {};
|
|
44
|
+
entityFiles: any[] = [];
|
|
45
|
+
displayedColumns = [
|
|
46
|
+
'index',
|
|
47
|
+
'title',
|
|
48
|
+
'details',
|
|
49
|
+
'file_size',
|
|
50
|
+
'uploaded_on',
|
|
51
|
+
];
|
|
52
|
+
isWorking: boolean = false;
|
|
53
|
+
page: number = 1;
|
|
54
|
+
perPage: number = 25;
|
|
55
|
+
lastPage: number = 0;
|
|
56
|
+
fileConfig: FileDropperConfig;
|
|
57
|
+
fileList: any[] = [];
|
|
58
|
+
filterFormGroup: FormGroup;
|
|
59
|
+
dataSource = new MatTableDataSource();
|
|
60
|
+
updateRowForm: FormGroup;
|
|
61
|
+
isReload: boolean = false;
|
|
62
|
+
|
|
63
|
+
constructor(
|
|
64
|
+
private entityFileService: EntityFileService,
|
|
65
|
+
public location: Location,
|
|
66
|
+
private alertService: AlertService,
|
|
67
|
+
private dialog: MatDialog,
|
|
68
|
+
private fb: FormBuilder,
|
|
69
|
+
private errorHandler: ErrorHandlerService,
|
|
70
|
+
) {
|
|
71
|
+
this.filterFormGroup = this.fb.group({
|
|
72
|
+
title: [""],
|
|
73
|
+
tag_ids: [""]
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
this.updateRowForm = this.fb.group({
|
|
77
|
+
title: [''],
|
|
78
|
+
details: [''],
|
|
79
|
+
tag_ids: [''],
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
ngOnInit(): void {
|
|
84
|
+
//File dropper config
|
|
85
|
+
this.fileConfig = {
|
|
86
|
+
fileId: "entityDashboardDropper",
|
|
87
|
+
containerId: "entityDashboardDropperContainer",
|
|
88
|
+
styles: {
|
|
89
|
+
height: "500px"
|
|
90
|
+
},
|
|
91
|
+
multiple: this.allowMultipleFiles,
|
|
92
|
+
acceptFile: "*",
|
|
93
|
+
maxSize: 10,
|
|
94
|
+
acceptFileText: "All Files"
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
this.viewerConfig = {
|
|
98
|
+
imageStyle: {
|
|
99
|
+
height: '200px',
|
|
100
|
+
width: '200px'
|
|
101
|
+
},
|
|
102
|
+
viewerStyle: {
|
|
103
|
+
height: ' 160px',
|
|
104
|
+
width: '200px'
|
|
105
|
+
},
|
|
106
|
+
hideRemove: true
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
if (this.hideTitleAndDetails) {
|
|
110
|
+
this.displayedColumns = this.displayedColumns.filter(x => (x !== 'details') && (x !== 'title'));
|
|
111
|
+
}
|
|
112
|
+
this.listenRoutes();
|
|
113
|
+
this.filters = {
|
|
114
|
+
entity_type: this.entityType,
|
|
115
|
+
entity_id: this.entityId,
|
|
116
|
+
title: ""
|
|
117
|
+
};
|
|
118
|
+
this.fetchEntityFilesDetails();
|
|
119
|
+
if (this.useTechlifyTags) {
|
|
120
|
+
this.displayedColumns.push('tag');
|
|
121
|
+
}
|
|
122
|
+
if (!this.viewOnly) {
|
|
123
|
+
this.displayedColumns.push('actions');
|
|
124
|
+
}
|
|
125
|
+
if (this.allowBulkUpdate) {
|
|
126
|
+
this.displayedColumns.push('select');
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
listenRoutes() {
|
|
131
|
+
this.filterFormGroup.valueChanges.pipe(debounceTime(500), untilDestroyed(this))
|
|
132
|
+
.subscribe(changes => {
|
|
133
|
+
this.reload();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
async fetchEntityFilesDetails() {
|
|
138
|
+
this.filters.page = this.page;
|
|
139
|
+
this.filters.perPage = this.perPage;
|
|
140
|
+
let formGroup = this.filterFormGroup.value;
|
|
141
|
+
formGroup.tag_ids = formGroup.tag_ids.toString();
|
|
142
|
+
this.filters = {
|
|
143
|
+
...this.filters,
|
|
144
|
+
...formGroup
|
|
145
|
+
}
|
|
146
|
+
this.isWorking = true;
|
|
147
|
+
const result: any = await this.entityFileService.getEntityFiles(this.filters);
|
|
148
|
+
this.lastPage = result.last_page || this.page;
|
|
149
|
+
this.entityFiles = this.entityFiles.concat(result.data);
|
|
150
|
+
this.dataSource = new MatTableDataSource(this.entityFiles);
|
|
151
|
+
this.isWorking = false;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
addEntityFile() {
|
|
155
|
+
this.isWorking = true;
|
|
156
|
+
const dialogRef = this.dialog.open(EntityFileFormComponent, {
|
|
157
|
+
width: "700px",
|
|
158
|
+
data: {
|
|
159
|
+
entity: this.filters,
|
|
160
|
+
hideTitleAndDetails: this.hideTitleAndDetails,
|
|
161
|
+
useTechlifyTags: this.useTechlifyTags,
|
|
162
|
+
},
|
|
163
|
+
autoFocus: false,
|
|
164
|
+
restoreFocus: false
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
dialogRef.afterClosed().subscribe(async result => {
|
|
168
|
+
this.isWorking = false;
|
|
169
|
+
if (result) {
|
|
170
|
+
const files = [...this.entityFiles];
|
|
171
|
+
files.push(result);
|
|
172
|
+
this.entityFiles = files;
|
|
173
|
+
this.dataSource = new MatTableDataSource(this.entityFiles);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
editEntityFile(file: any) {
|
|
179
|
+
this.isWorking = true;
|
|
180
|
+
const dialogRef = this.dialog.open(EntityFileFormComponent, {
|
|
181
|
+
width: "700px",
|
|
182
|
+
autoFocus: false,
|
|
183
|
+
data: {
|
|
184
|
+
file: file,
|
|
185
|
+
hideTitleAndDetails: this.hideTitleAndDetails,
|
|
186
|
+
useTechlifyTags: this.useTechlifyTags,
|
|
187
|
+
} // Any data passed here will be injected into the model
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
dialogRef.afterClosed().subscribe(result => {
|
|
191
|
+
this.isWorking = false;
|
|
192
|
+
if (result) {
|
|
193
|
+
this.reload();
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
deleteEntityFile(file: any) {
|
|
199
|
+
const dialogRef = this.dialog.open(ActionPopupComponent, {
|
|
200
|
+
width: "400px",
|
|
201
|
+
data: <ActionPopup>{
|
|
202
|
+
title: "Delete File",
|
|
203
|
+
message: `Are you sure to proceed delete the file ${file.title}?`
|
|
204
|
+
},
|
|
205
|
+
autoFocus: false
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
dialogRef.afterClosed().subscribe(async result => {
|
|
209
|
+
if (result) {
|
|
210
|
+
//Action confirmed
|
|
211
|
+
const result = await this.entityFileService.deleteEntityFile(
|
|
212
|
+
file
|
|
213
|
+
);
|
|
214
|
+
this.alertService.addAlert(
|
|
215
|
+
"File successfully deleted",
|
|
216
|
+
"success"
|
|
217
|
+
);
|
|
218
|
+
this.reload();
|
|
219
|
+
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
onScroll() {
|
|
225
|
+
if (this.page < this.lastPage && !this.isWorking) {
|
|
226
|
+
this.page += 1;
|
|
227
|
+
this.fetchEntityFilesDetails();
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
reload() {
|
|
232
|
+
this.entityFiles = [];
|
|
233
|
+
this.documentIds = [];
|
|
234
|
+
this.isReload = false;
|
|
235
|
+
this.page = 1;
|
|
236
|
+
if (!this.isWorking) {
|
|
237
|
+
this.fetchEntityFilesDetails();
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
ngOnDestroy() { }
|
|
242
|
+
|
|
243
|
+
resetFieldValue(event: any, field: any) {
|
|
244
|
+
event.stopPropagation();
|
|
245
|
+
this.filterFormGroup.get(field).setValue("");
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
sizeOf(bytes) {
|
|
249
|
+
if (!bytes) { return "0.00 B"; }
|
|
250
|
+
var e = Math.floor(Math.log(bytes) / Math.log(1024));
|
|
251
|
+
return (bytes / Math.pow(1024, e)).toFixed(2) + ' ' + ' KMGTP'.charAt(e) + 'B';
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
async fileChanged(event: any) {
|
|
255
|
+
this.fileList = event;
|
|
256
|
+
if (this.fileList.length > 0) {
|
|
257
|
+
await this.fileList.forEach(async file => {
|
|
258
|
+
const result: any = await this.entityFileService.uploadEntityFile(
|
|
259
|
+
file,
|
|
260
|
+
{
|
|
261
|
+
entity_type: this.entityType,
|
|
262
|
+
entity_id: this.entityId,
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
this.reload();
|
|
266
|
+
});
|
|
267
|
+
this.fileList = [];
|
|
268
|
+
this.alertService.addAlert('Successfull uploaded', 'success');
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
selectAll() {
|
|
273
|
+
this.documentIds = [];
|
|
274
|
+
this.entityFiles.map((employee: any) => {
|
|
275
|
+
employee.is_selected = this.isAllSelected;
|
|
276
|
+
if (this.isAllSelected) {
|
|
277
|
+
this.documentIds.push(employee.id);
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
this.dataSource = new MatTableDataSource(this.entityFiles);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
employeeListModified(event: any, employee: any) {
|
|
284
|
+
this.isAllSelected = false;
|
|
285
|
+
if (event.checked) {
|
|
286
|
+
this.documentIds.push(employee.id);
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
this.documentIds = this.documentIds.filter((employeeData: any) => employeeData != employee.id);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
unCheckAll() {
|
|
294
|
+
this.isAllSelected = false;
|
|
295
|
+
this.documentIds = [];
|
|
296
|
+
this.entityFiles.map((employee: any) => {
|
|
297
|
+
employee.is_selected = false;
|
|
298
|
+
});
|
|
299
|
+
this.dataSource = new MatTableDataSource(this.entityFiles);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
resetFieldValueOfRow(field: string, event: any) {
|
|
303
|
+
event.stopPropagation();
|
|
304
|
+
this.updateRowForm.get(field).setValue("");
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
async bulkUpdate(fieldName: any) {
|
|
308
|
+
var data = this.updateRowForm.value;
|
|
309
|
+
this.isReload = this.isWorking = true;
|
|
310
|
+
data.field_name = fieldName;
|
|
311
|
+
data.document_ids = this.documentIds;
|
|
312
|
+
|
|
313
|
+
try {
|
|
314
|
+
await this.entityFileService.bulkUpdate(data).then(
|
|
315
|
+
res => {
|
|
316
|
+
this.alertService.addAlert("Successfully updated", "success");
|
|
317
|
+
this.isWorking = false;
|
|
318
|
+
}
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
catch (error) {
|
|
322
|
+
this.errorHandler.handleError(error);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { EntityFileFormComponent } from './entity-file-form/entity-file-form.component';
|
|
4
|
+
import { EntityFilesViewAllComponent } from './entity-files-view-all.component';
|
|
5
|
+
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
6
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
7
|
+
import { InfiniteScrollModule } from 'ngx-infinite-scroll';
|
|
8
|
+
import { FileDropperModule } from '../file-dropper/file-dropper.module';
|
|
9
|
+
import { DocumentViewerModule } from '../document-viewer/document-viewer.module';
|
|
10
|
+
import { ActionPopupModule } from '../action-popup/action-popup.module';
|
|
11
|
+
import { MaterialModule } from '../material.module';
|
|
12
|
+
import { TechlifyTaggerTagFormFieldModule } from '../techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module';
|
|
13
|
+
import { SearchableSelectorModule } from '../searchable-selector/searchable-selector.module';
|
|
14
|
+
import { ReadMoreModule } from '../read-more/read-more.module';
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@NgModule({
|
|
18
|
+
declarations: [EntityFileFormComponent, EntityFilesViewAllComponent],
|
|
19
|
+
imports: [
|
|
20
|
+
CommonModule,
|
|
21
|
+
FormsModule,
|
|
22
|
+
ReactiveFormsModule,
|
|
23
|
+
FlexLayoutModule,
|
|
24
|
+
FileDropperModule,
|
|
25
|
+
DocumentViewerModule,
|
|
26
|
+
InfiniteScrollModule,
|
|
27
|
+
ActionPopupModule,
|
|
28
|
+
MaterialModule,
|
|
29
|
+
TechlifyTaggerTagFormFieldModule,
|
|
30
|
+
SearchableSelectorModule,
|
|
31
|
+
ReadMoreModule
|
|
32
|
+
],
|
|
33
|
+
exports: [
|
|
34
|
+
EntityFilesViewAllComponent
|
|
35
|
+
],
|
|
36
|
+
entryComponents: [EntityFileFormComponent]
|
|
37
|
+
})
|
|
38
|
+
export class EntityFilesViewAllModule { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<button mat-raised-button color="accent" (click)="exportExcel()">Export Excel</button>
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ExportExcelButtonComponent } from './export-excel-button.component';
|
|
4
|
+
|
|
5
|
+
describe('ExportExcelButtonComponent', () => {
|
|
6
|
+
let component: ExportExcelButtonComponent;
|
|
7
|
+
let fixture: ComponentFixture<ExportExcelButtonComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ ExportExcelButtonComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(ExportExcelButtonComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
import * as XLSX from 'xlsx';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-export-excel-button',
|
|
6
|
+
templateUrl: './export-excel-button.component.html',
|
|
7
|
+
styleUrls: ['./export-excel-button.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class ExportExcelButtonComponent implements OnInit {
|
|
10
|
+
|
|
11
|
+
@Input() name: string = 'Export_Data';
|
|
12
|
+
@Input() data: any[] = [];
|
|
13
|
+
|
|
14
|
+
constructor() { }
|
|
15
|
+
|
|
16
|
+
ngOnInit(): void {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exportExcel() {
|
|
20
|
+
const fileName = `${this.name}_${new Date().getTime()}.xlsx`;
|
|
21
|
+
const ws = XLSX.utils.json_to_sheet(this.data);
|
|
22
|
+
/* generate workbook and add the worksheet */
|
|
23
|
+
const wb: XLSX.WorkBook = XLSX.utils.book_new();
|
|
24
|
+
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');
|
|
25
|
+
|
|
26
|
+
/* save to file */
|
|
27
|
+
XLSX.writeFile(wb, fileName);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { ExportExcelButtonComponent } from './export-excel-button/export-excel-button.component';
|
|
4
|
+
import { MaterialModule } from '../material.module';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [ExportExcelButtonComponent],
|
|
10
|
+
imports: [
|
|
11
|
+
CommonModule,
|
|
12
|
+
MaterialModule
|
|
13
|
+
],
|
|
14
|
+
exports: [ExportExcelButtonComponent]
|
|
15
|
+
})
|
|
16
|
+
export class ExportExcelModule { }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<div
|
|
2
|
+
id="{{ config.containerId }}"
|
|
3
|
+
[ngStyle]="config.styles"
|
|
4
|
+
class="file-border"
|
|
5
|
+
(dragleave)="dragLeave($event)"
|
|
6
|
+
(dragenter)="dragEnter($event)"
|
|
7
|
+
(dragover)="dragOver($event)"
|
|
8
|
+
(click)="clickEvent($event)"
|
|
9
|
+
(drop)="dropEvent($event)"
|
|
10
|
+
[ngClass]="{ 'disable-div': isSingleMode && fileArray.length > 0 }"
|
|
11
|
+
>
|
|
12
|
+
<div fxFill fxLayout="column" fxLayoutAlign="center center">
|
|
13
|
+
<div>
|
|
14
|
+
<span>Drag and drop file</span>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="mt-2">
|
|
18
|
+
<span>or</span>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="mt-2">
|
|
22
|
+
<button mat-raised-button color="primary" type="button">Browse</button>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<div class="mt-4">
|
|
26
|
+
<span>Supported files</span>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div *ngIf="config.acceptFileText">
|
|
30
|
+
<span>{{ config.acceptFileText }}</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<input
|
|
35
|
+
type="file"
|
|
36
|
+
id="{{ config.fileId }}"
|
|
37
|
+
[accept]="config.acceptFile"
|
|
38
|
+
(change)="onFileChange($event)"
|
|
39
|
+
[multiple]="config.multiple === true"
|
|
40
|
+
style="display:none"
|
|
41
|
+
/>
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core";
|
|
2
|
+
import { AlertService } from "../core/alert.service";
|
|
3
|
+
import { FileDropperConfig } from './file-dropper.model';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: "app-file-dropper",
|
|
8
|
+
templateUrl: "./file-dropper.component.html",
|
|
9
|
+
styleUrls: ["./file-dropper.component.scss"]
|
|
10
|
+
})
|
|
11
|
+
export class FileDropperComponent implements OnInit {
|
|
12
|
+
@Input() fileArray: any[] = [];
|
|
13
|
+
|
|
14
|
+
@Input() config: FileDropperConfig;
|
|
15
|
+
|
|
16
|
+
@Output() fileChanged: any = new EventEmitter();
|
|
17
|
+
|
|
18
|
+
border = "1px dashed #989898";
|
|
19
|
+
|
|
20
|
+
@Input() styles: any;
|
|
21
|
+
|
|
22
|
+
isSingleMode: boolean;
|
|
23
|
+
|
|
24
|
+
constructor(private alertService: AlertService) { }
|
|
25
|
+
|
|
26
|
+
/**Life cycle hook method */
|
|
27
|
+
ngOnInit() {
|
|
28
|
+
this.isSingleMode = !Boolean(this.config.multiple);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**Method for dragging event */
|
|
32
|
+
dragEnter(event: any) {
|
|
33
|
+
event.target.style.background = this.config.dragColor || "#c0c0c0";
|
|
34
|
+
|
|
35
|
+
event.target.style.border = "1px dashed black";
|
|
36
|
+
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**Method for drag over event */
|
|
41
|
+
dragOver(event: any) {
|
|
42
|
+
event.preventDefault();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**Method for drag leave event */
|
|
46
|
+
dragLeave(event: any) {
|
|
47
|
+
event.target.style.background = "";
|
|
48
|
+
event.target.style.border = this.border;
|
|
49
|
+
|
|
50
|
+
event.preventDefault();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**Method for drop event */
|
|
54
|
+
dropEvent(event: any) {
|
|
55
|
+
event.target.style.background = "";
|
|
56
|
+
event.target.style.border = this.border;
|
|
57
|
+
const droppedFiles: FileList = event.dataTransfer.files;
|
|
58
|
+
if (droppedFiles.length > 0) {
|
|
59
|
+
const fileArray = Array.from(droppedFiles);
|
|
60
|
+
this.addFiles(fileArray);
|
|
61
|
+
}
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**Method to list files selected */
|
|
66
|
+
onFileChange(event: any) {
|
|
67
|
+
if (event.target.files && event.target.files.length) {
|
|
68
|
+
const fileArray = Array.from(event.target.files);
|
|
69
|
+
this.addFiles(fileArray);
|
|
70
|
+
const fileInput = document.getElementById(
|
|
71
|
+
this.config.fileId
|
|
72
|
+
) as HTMLInputElement;
|
|
73
|
+
fileInput.value = "";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**Method to add files in the array */
|
|
78
|
+
addFiles(fileArray: any) {
|
|
79
|
+
if (!this.isSingleMode) {
|
|
80
|
+
fileArray.forEach((file: any) => {
|
|
81
|
+
this.fileArray = this.fileArray.filter(
|
|
82
|
+
(item: any) => item.name !== file.name
|
|
83
|
+
);
|
|
84
|
+
if (this.fileSizeAllowed(file)) {
|
|
85
|
+
this.fileArray.push(file);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
this.fileArray.sort(this.sortFiles);
|
|
90
|
+
this.fileChanged.emit(this.fileArray);
|
|
91
|
+
} else {
|
|
92
|
+
// Single Mode
|
|
93
|
+
if (this.fileArray.length === 0) {
|
|
94
|
+
if (this.fileSizeAllowed(fileArray[0])) {
|
|
95
|
+
this.fileArray.push(fileArray[0]);
|
|
96
|
+
this.fileArray.sort(this.sortFiles);
|
|
97
|
+
this.fileChanged.emit(this.fileArray);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**Method to sort the files in asc */
|
|
104
|
+
sortFiles(a: any, b: any) {
|
|
105
|
+
const nameA = a.name.toUpperCase();
|
|
106
|
+
const nameB = b.name.toUpperCase();
|
|
107
|
+
if (nameA < nameB) {
|
|
108
|
+
return -1;
|
|
109
|
+
}
|
|
110
|
+
if (nameA > nameB) {
|
|
111
|
+
return 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**Method tp validate the file size */
|
|
118
|
+
fileSizeAllowed(file: any): boolean {
|
|
119
|
+
if (!Boolean(this.config.maxSize)) {
|
|
120
|
+
return true;
|
|
121
|
+
} else if (file.size / (1024 * 1024) < this.config.maxSize) {
|
|
122
|
+
return true;
|
|
123
|
+
} else {
|
|
124
|
+
this.alertService.addAlert(
|
|
125
|
+
`The size of the file exceeds the limit ${this.config.maxSize} MB, kindly upload a file with size ${this.config.maxSize} MB or below`,
|
|
126
|
+
"warn"
|
|
127
|
+
);
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**Method invokes when the drop box is clicked to upload the file */
|
|
133
|
+
clickEvent(event: any) {
|
|
134
|
+
if (!(this.isSingleMode && this.fileArray.length > 0)) {
|
|
135
|
+
document.getElementById(this.config.fileId).click();
|
|
136
|
+
}
|
|
137
|
+
event.preventDefault();
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FileDropperComponent } from './file-dropper.component';
|
|
4
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
5
|
+
import { MaterialModule } from '../material.module';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
imports: [
|
|
9
|
+
CommonModule,
|
|
10
|
+
FlexLayoutModule,
|
|
11
|
+
MaterialModule
|
|
12
|
+
],
|
|
13
|
+
declarations: [
|
|
14
|
+
FileDropperComponent
|
|
15
|
+
],
|
|
16
|
+
exports: [FileDropperComponent]
|
|
17
|
+
})
|
|
18
|
+
export class FileDropperModule { }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './file-dropper.component';
|
|
2
|
-
export * from './file-dropper.model';
|
|
1
|
+
export * from './file-dropper.component';
|
|
2
|
+
export * from './file-dropper.model';
|