ngx-techlify-core 11.4.8 → 11.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/karma.conf.js +44 -0
- package/ng-package.json +27 -0
- package/package.json +29 -37
- package/src/lib/action-popup/action-popup.component.html +21 -0
- package/src/lib/action-popup/action-popup.component.scss +0 -0
- package/src/lib/action-popup/action-popup.component.spec.ts +25 -0
- package/src/lib/action-popup/action-popup.component.ts +31 -0
- package/{lib/action-popup/action-popup.model.d.ts → src/lib/action-popup/action-popup.model.ts} +2 -2
- package/src/lib/action-popup/action-popup.module.ts +23 -0
- package/{lib/action-popup/index.d.ts → src/lib/action-popup/index.ts} +1 -1
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.html +9 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.scss +0 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.component.ts +49 -0
- package/src/lib/audit-log/audit-log-for-model/audit-log-for-model.module.ts +24 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.html +92 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.scss +21 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.component.ts +138 -0
- package/src/lib/audit-log/audit-log-list/audit-log-list.module.ts +28 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.html +49 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.scss +0 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.spec.ts +26 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.ts +74 -0
- package/src/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.ts +24 -0
- package/src/lib/audit-log/audit-log-routing.module.ts +18 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.html +46 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.scss +0 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.component.ts +54 -0
- package/src/lib/audit-log/audit-log-view/audit-log-view.module.ts +20 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.html +38 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.scss +4 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.component.ts +53 -0
- package/src/lib/audit-log/audit-log-view-model/audit-log-view-model.module.ts +20 -0
- package/src/lib/audit-log/audit-log.module.ts +20 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.ts +10 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.html +4 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.scss +4 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.spec.ts +25 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.ts +28 -0
- package/src/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.ts +20 -0
- package/src/lib/base-model/index.ts +3 -0
- package/src/lib/base-model/techlify-form-component.class.ts +60 -0
- package/src/lib/base-model/techlify-listing-component.class.ts +67 -0
- package/src/lib/base-model/techlify-service.class.ts +73 -0
- package/src/lib/core/alert.service.ts +32 -0
- package/src/lib/core/api-prefix.interceptor.ts +22 -0
- package/src/lib/core/authentication.guard.ts +34 -0
- package/src/lib/core/authentication.service.ts +53 -0
- package/src/lib/core/cache.interceptor.ts +59 -0
- package/src/lib/core/config.service.ts +52 -0
- package/src/lib/core/core.module.ts +44 -0
- package/src/lib/core/credentials.service.ts +91 -0
- package/{lib/core/dataManager.service.d.ts → src/lib/core/dataManager.service.ts} +76 -22
- package/src/lib/core/error-handler.interceptor.ts +43 -0
- package/src/lib/core/error-handler.service.ts +61 -0
- package/src/lib/core/filter.service.ts +42 -0
- package/src/lib/core/form-validator.service.ts +23 -0
- package/src/lib/core/header.interceptor.ts +22 -0
- package/src/lib/core/http-cache.service.ts +122 -0
- package/src/lib/core/http.service.ts +137 -0
- package/{lib/core/index.d.ts → src/lib/core/index.ts} +2 -0
- package/src/lib/core/logger.service.ts +113 -0
- package/src/lib/core/route-reusable-strategy.ts +36 -0
- package/src/lib/core/snack/error-snack.html +8 -0
- package/src/lib/core/snack/snack.component.ts +19 -0
- package/src/lib/core/snack/snack.module.ts +22 -0
- package/src/lib/core/snack/snack.scss +18 -0
- package/src/lib/core/snack/success-snack.html +8 -0
- package/src/lib/core/storage.service.ts +38 -0
- package/src/lib/core/techlify-config.model.ts +32 -0
- package/src/lib/core/token.interceptor.ts +25 -0
- package/src/lib/data-table/data-table.component.html +139 -0
- package/src/lib/data-table/data-table.component.scss +54 -0
- package/src/lib/data-table/data-table.component.spec.ts +25 -0
- package/src/lib/data-table/data-table.component.ts +232 -0
- package/{lib/data-table/data-table.model.d.ts → src/lib/data-table/data-table.model.ts} +9 -6
- package/src/lib/data-table/data-table.module.ts +23 -0
- package/{lib/data-table/index.d.ts → src/lib/data-table/index.ts} +1 -1
- package/src/lib/date-validator.ts +12 -0
- package/src/lib/document-viewer/document-viewer.component.css +5 -0
- package/src/lib/document-viewer/document-viewer.component.html +19 -0
- package/src/lib/document-viewer/document-viewer.component.ts +66 -0
- package/src/lib/document-viewer/document-viewer.module.ts +22 -0
- package/{lib/document-viewer/index.d.ts → src/lib/document-viewer/index.ts} +1 -1
- package/src/lib/document-viewer/viewer-config.model.ts +5 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.ts +25 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.html +23 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.scss +4 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.ts +74 -0
- package/src/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.ts +22 -0
- package/{lib/email-subscription/email-subscription-for-user/index.d.ts → src/lib/email-subscription/email-subscription-for-user/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.html +47 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.scss +0 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.ts +113 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.ts +28 -0
- package/{lib/email-subscription/email-subscription-type/email-subscription-type-form/index.d.ts → src/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.ts +29 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.html +76 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.scss +4 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.ts +170 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.ts +26 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.ts +1 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.ts +11 -0
- package/src/lib/email-subscription/email-subscription-type/email-subscription-type.module.ts +14 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.html +38 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.scss +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.ts +113 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.ts +26 -0
- package/{lib/email-subscription/email-subscription-user/email-subscription-user-form/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.ts +27 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.html +74 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.scss +5 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.ts +174 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.ts +28 -0
- package/{lib/email-subscription/email-subscription-user/email-subscription-user-list/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.ts +10 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.html +21 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.scss +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.spec.ts +25 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.ts +56 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.ts +24 -0
- package/{lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.d.ts → src/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.ts} +0 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.ts +11 -0
- package/src/lib/email-subscription/email-subscription-user/email-subscription-user.module.ts +14 -0
- package/src/lib/email-subscription/email-subscription.module.ts +15 -0
- package/src/lib/entity-files/entity-file-form/entity-file-form.component.css +0 -0
- package/src/lib/entity-files/entity-file-form/entity-file-form.component.html +45 -0
- package/src/lib/entity-files/entity-file-form/entity-file-form.component.ts +172 -0
- package/src/lib/entity-files/entity-file.service.ts +46 -0
- package/src/lib/entity-files/entity-files-view-all.component.css +0 -0
- package/src/lib/entity-files/entity-files-view-all.component.html +236 -0
- package/src/lib/entity-files/entity-files-view-all.component.ts +325 -0
- package/src/lib/entity-files/entity-files-view-all.module.ts +38 -0
- package/src/lib/entity-files/index.ts +2 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.html +1 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.scss +0 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.spec.ts +25 -0
- package/src/lib/export-excel/export-excel-button/export-excel-button.component.ts +31 -0
- package/src/lib/export-excel/export-excel.module.ts +16 -0
- package/src/lib/file-dropper/file-dropper.component.html +41 -0
- package/src/lib/file-dropper/file-dropper.component.scss +8 -0
- package/src/lib/file-dropper/file-dropper.component.ts +139 -0
- package/src/lib/file-dropper/file-dropper.model.ts +10 -0
- package/src/lib/file-dropper/file-dropper.module.ts +18 -0
- package/{lib/file-dropper/index.d.ts → src/lib/file-dropper/index.ts} +1 -1
- package/src/lib/import-csv/data-import/data-import.component.html +11 -0
- package/src/lib/import-csv/data-import/data-import.component.scss +0 -0
- package/src/lib/import-csv/data-import/data-import.component.spec.ts +28 -0
- package/src/lib/import-csv/data-import/data-import.component.ts +16 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.html +61 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.scss +0 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.spec.ts +28 -0
- package/src/lib/import-csv/failed-items-list/failed-items-list.component.ts +30 -0
- package/src/lib/import-csv/field-mapping/field-mapping.component.html +70 -0
- package/src/lib/import-csv/field-mapping/field-mapping.component.scss +15 -0
- package/src/lib/import-csv/field-mapping/field-mapping.component.ts +161 -0
- package/src/lib/import-csv/import-csv-config.ts +17 -0
- package/src/lib/import-csv/import-csv.component.html +71 -0
- package/src/lib/import-csv/import-csv.component.scss +15 -0
- package/src/lib/import-csv/import-csv.component.spec.ts +28 -0
- package/src/lib/import-csv/import-csv.component.ts +198 -0
- package/src/lib/import-csv/import-csv.module.ts +43 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.html +43 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.scss +0 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.spec.ts +28 -0
- package/src/lib/import-csv/import-history-list/import-history-list.component.ts +74 -0
- package/src/lib/import-csv/import-success/import-success.component.html +22 -0
- package/src/lib/import-csv/import-success/import-success.component.scss +0 -0
- package/src/lib/import-csv/import-success/import-success.component.spec.ts +28 -0
- package/src/lib/import-csv/import-success/import-success.component.ts +17 -0
- package/{lib/loader/index.d.ts → src/lib/loader/index.ts} +0 -0
- package/src/lib/loader/loader.component.html +4 -0
- package/src/lib/loader/loader.component.scss +8 -0
- package/src/lib/loader/loader.component.spec.ts +73 -0
- package/src/lib/loader/loader.component.ts +18 -0
- package/src/lib/loader/loader.module.ts +18 -0
- package/src/lib/login-history-for-user/login-history-for-user-routing.module.ts +18 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.html +31 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.scss +4 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.spec.ts +25 -0
- package/src/lib/login-history-for-user/login-history-for-user.component.ts +94 -0
- package/src/lib/login-history-for-user/login-history-for-user.module.ts +26 -0
- package/src/lib/material.module.ts +68 -0
- package/src/lib/note/comment-form/comment-form.component.html +45 -0
- package/src/lib/note/comment-form/comment-form.component.scss +7 -0
- package/src/lib/note/comment-form/comment-form.component.spec.ts +24 -0
- package/src/lib/note/comment-form/comment-form.component.ts +84 -0
- package/{lib/note/index.d.ts → src/lib/note/index.ts} +0 -0
- package/src/lib/note/note-form/note-form.component.css +0 -0
- package/src/lib/note/note-form/note-form.component.html +26 -0
- package/src/lib/note/note-form/note-form.component.spec.ts +25 -0
- package/src/lib/note/note-form/note-form.component.ts +93 -0
- package/src/lib/note/note-list/note-list.component.css +4 -0
- package/src/lib/note/note-list/note-list.component.html +58 -0
- package/src/lib/note/note-list/note-list.component.spec.ts +25 -0
- package/src/lib/note/note-list/note-list.component.ts +156 -0
- package/src/lib/note/note.module.ts +33 -0
- package/src/lib/note/note.service.spec.ts +16 -0
- package/src/lib/note/note.service.ts +26 -0
- package/src/lib/read-more/read-more.component.html +3 -0
- package/src/lib/read-more/read-more.component.scss +8 -0
- package/src/lib/read-more/read-more.component.spec.ts +24 -0
- package/src/lib/read-more/read-more.component.ts +41 -0
- package/src/lib/read-more/read-more.module.ts +18 -0
- package/src/lib/request-helper/request-helper.service.ts +92 -0
- package/src/lib/searchable-selector/index.ts +2 -0
- package/src/lib/searchable-selector/mat-select-infinite-scroll.directive.ts +89 -0
- package/src/lib/searchable-selector/searchable-selector.component.html +21 -0
- package/src/lib/searchable-selector/searchable-selector.component.scss +8 -0
- package/src/lib/searchable-selector/searchable-selector.component.spec.ts +25 -0
- package/src/lib/searchable-selector/searchable-selector.component.ts +337 -0
- package/src/lib/searchable-selector/searchable-selector.module.ts +25 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.html +4 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.scss +0 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.spec.ts +28 -0
- package/src/lib/techlify-feature/on-off-switch/on-off-switch.component.ts +25 -0
- package/src/lib/techlify-feature/techlify-feature-enabled.directive.ts +71 -0
- package/src/lib/techlify-feature/techlify-feature-listing.component.html +65 -0
- package/src/lib/techlify-feature/techlify-feature-listing.component.scss +0 -0
- package/src/lib/techlify-feature/techlify-feature-listing.component.ts +174 -0
- package/src/lib/techlify-feature/techlify-feature.module.ts +28 -0
- package/src/lib/techlify-feature/techlify-feature.routing.ts +13 -0
- package/src/lib/techlify-feature/techlify-feature.service.ts +23 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.ts +25 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.html +18 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.scss +6 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.spec.ts +25 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.ts +308 -0
- package/src/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.ts +24 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.html +8 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.scss +0 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.spec.ts +25 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.ts +180 -0
- package/src/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.ts +28 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.html +78 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.scss +0 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.spec.ts +25 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.component.ts +113 -0
- package/src/lib/techlify-update/techlify-update-form/techlify-update-form.module.ts +25 -0
- package/src/lib/techlify-update/techlify-update-history/index.ts +1 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.ts +21 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.html +94 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.scss +0 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.ts +142 -0
- package/src/lib/techlify-update/techlify-update-history/techlify-update-history.module.ts +25 -0
- package/src/lib/techlify-update/techlify-update-routing.module.ts +21 -0
- package/src/lib/techlify-update/techlify-update.module.ts +27 -0
- package/src/lib/techlify-update/techlify-update.service.spec.ts +16 -0
- package/src/lib/techlify-update/techlify-update.service.ts +42 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.html +104 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.scss +0 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.spec.ts +25 -0
- package/src/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.ts +167 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.html +39 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.scss +57 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.spec.ts +25 -0
- package/src/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.ts +76 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.html +0 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.scss +3 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.spec.ts +25 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.component.ts +56 -0
- package/src/lib/techlify-update/update-notifier/update-notifier.module.ts +27 -0
- package/src/lib/techlify-update/update-view/update-view.component.html +63 -0
- package/src/lib/techlify-update/update-view/update-view.component.scss +19 -0
- package/src/lib/techlify-update/update-view/update-view.component.spec.ts +25 -0
- package/src/lib/techlify-update/update-view/update-view.component.ts +36 -0
- package/src/lib/techlify-update/update-view/update-view.module.ts +23 -0
- package/src/lib/timeline-filter/README.md +60 -0
- package/src/lib/timeline-filter/calculate-timeline.ts +109 -0
- package/{lib/timeline-filter/index.d.ts → src/lib/timeline-filter/index.ts} +1 -1
- package/src/lib/timeline-filter/timeline-filter-routing.module.ts +10 -0
- package/src/lib/timeline-filter/timeline-filter.component.html +54 -0
- package/src/lib/timeline-filter/timeline-filter.component.scss +0 -0
- package/src/lib/timeline-filter/timeline-filter.component.spec.ts +25 -0
- package/src/lib/timeline-filter/timeline-filter.component.ts +220 -0
- package/src/lib/timeline-filter/timeline-filter.module.ts +22 -0
- package/src/lib/timeline-filter/timeline.model.ts +17 -0
- package/src/lib/utility/date-utils.service.ts +51 -0
- package/{lib/utility/index.d.ts → src/lib/utility/index.ts} +1 -1
- package/src/lib/utility/num-items-selector.component.ts +29 -0
- package/src/lib/utility/num-items-selector.html +13 -0
- package/src/lib/utility/number-selector.component.ts +38 -0
- package/src/lib/utility/number-selector.html +6 -0
- package/src/lib/utility/utility.module.ts +20 -0
- package/{public-api.d.ts → src/public-api.ts} +31 -0
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +26 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bundles/ngx-techlify-core.umd.js +0 -8325
- package/bundles/ngx-techlify-core.umd.js.map +0 -1
- package/bundles/ngx-techlify-core.umd.min.js +0 -2
- package/bundles/ngx-techlify-core.umd.min.js.map +0 -1
- package/esm2015/lib/action-popup/action-popup.component.js +0 -32
- package/esm2015/lib/action-popup/action-popup.model.js +0 -3
- package/esm2015/lib/action-popup/action-popup.module.js +0 -26
- package/esm2015/lib/action-popup/index.js +0 -3
- package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model.component.js +0 -49
- package/esm2015/lib/audit-log/audit-log-for-model/audit-log-for-model.module.js +0 -25
- package/esm2015/lib/audit-log/audit-log-list/audit-log-list-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-list/audit-log-list.component.js +0 -132
- package/esm2015/lib/audit-log/audit-log-list/audit-log-list.module.js +0 -29
- package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.js +0 -67
- package/esm2015/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.js +0 -25
- package/esm2015/lib/audit-log/audit-log-routing.module.js +0 -19
- package/esm2015/lib/audit-log/audit-log-view/audit-log-view-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-view/audit-log-view.component.js +0 -60
- package/esm2015/lib/audit-log/audit-log-view/audit-log-view.module.js +0 -21
- package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model.component.js +0 -57
- package/esm2015/lib/audit-log/audit-log-view-model/audit-log-view-model.module.js +0 -21
- package/esm2015/lib/audit-log/audit-log.module.js +0 -20
- package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.js +0 -12
- package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.js +0 -35
- package/esm2015/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.js +0 -21
- package/esm2015/lib/base-model/index.js +0 -4
- package/esm2015/lib/base-model/techlify-form-component.class.js +0 -51
- package/esm2015/lib/base-model/techlify-listing-component.class.js +0 -41
- package/esm2015/lib/base-model/techlify-service.class.js +0 -64
- package/esm2015/lib/core/alert.service.js +0 -40
- package/esm2015/lib/core/api-prefix.interceptor.js +0 -28
- package/esm2015/lib/core/authentication.guard.js +0 -39
- package/esm2015/lib/core/authentication.service.js +0 -59
- package/esm2015/lib/core/cache.interceptor.js +0 -60
- package/esm2015/lib/core/config.service.js +0 -47
- package/esm2015/lib/core/core.module.js +0 -42
- package/esm2015/lib/core/credentials.service.js +0 -84
- package/esm2015/lib/core/dataManager.service.js +0 -121
- package/esm2015/lib/core/error-handler.interceptor.js +0 -53
- package/esm2015/lib/core/error-handler.service.js +0 -60
- package/esm2015/lib/core/form-validator.service.js +0 -23
- package/esm2015/lib/core/header.interceptor.js +0 -22
- package/esm2015/lib/core/http-cache.service.js +0 -110
- package/esm2015/lib/core/http.service.js +0 -82
- package/esm2015/lib/core/index.js +0 -21
- package/esm2015/lib/core/logger.service.js +0 -100
- package/esm2015/lib/core/route-reusable-strategy.js +0 -35
- package/esm2015/lib/core/snack/snack.component.js +0 -33
- package/esm2015/lib/core/snack/snack.module.js +0 -25
- package/esm2015/lib/core/storage.service.js +0 -37
- package/esm2015/lib/core/techlify-config.model.js +0 -28
- package/esm2015/lib/core/token.interceptor.js +0 -30
- package/esm2015/lib/data-table/data-table.component.js +0 -190
- package/esm2015/lib/data-table/data-table.model.js +0 -11
- package/esm2015/lib/data-table/data-table.module.js +0 -25
- package/esm2015/lib/data-table/index.js +0 -3
- package/esm2015/lib/date-validator.js +0 -10
- package/esm2015/lib/document-viewer/document-viewer.component.js +0 -58
- package/esm2015/lib/document-viewer/document-viewer.module.js +0 -25
- package/esm2015/lib/document-viewer/index.js +0 -3
- package/esm2015/lib/document-viewer/viewer-config.model.js +0 -3
- package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.js +0 -26
- package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.js +0 -72
- package/esm2015/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.js +0 -23
- package/esm2015/lib/email-subscription/email-subscription-for-user/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.js +0 -102
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.js +0 -28
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-form/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.js +0 -28
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.js +0 -153
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.js +0 -27
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-type/email-subscription-type.module.js +0 -15
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.js +0 -99
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.js +0 -27
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-form/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.js +0 -28
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.js +0 -155
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.js +0 -29
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.js +0 -50
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.js +0 -25
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/index.js +0 -2
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.js +0 -12
- package/esm2015/lib/email-subscription/email-subscription-user/email-subscription-user.module.js +0 -15
- package/esm2015/lib/email-subscription/email-subscription.module.js +0 -15
- package/esm2015/lib/entity-files/entity-file-form/entity-file-form.component.js +0 -138
- package/esm2015/lib/entity-files/entity-file.service.js +0 -42
- package/esm2015/lib/entity-files/entity-files-view-all.component.js +0 -208
- package/esm2015/lib/entity-files/entity-files-view-all.module.js +0 -34
- package/esm2015/lib/entity-files/index.js +0 -3
- package/esm2015/lib/export-excel/export-excel-button/export-excel-button.component.js +0 -32
- package/esm2015/lib/export-excel/export-excel.module.js +0 -17
- package/esm2015/lib/file-dropper/file-dropper.component.js +0 -122
- package/esm2015/lib/file-dropper/file-dropper.model.js +0 -3
- package/esm2015/lib/file-dropper/file-dropper.module.js +0 -21
- package/esm2015/lib/file-dropper/index.js +0 -3
- package/esm2015/lib/import-csv/data-import/data-import.component.js +0 -18
- package/esm2015/lib/import-csv/failed-items-list/failed-items-list.component.js +0 -33
- package/esm2015/lib/import-csv/field-mapping/field-mapping.component.js +0 -148
- package/esm2015/lib/import-csv/import-csv-config.js +0 -2
- package/esm2015/lib/import-csv/import-csv.component.js +0 -196
- package/esm2015/lib/import-csv/import-csv.module.js +0 -46
- package/esm2015/lib/import-csv/import-history-list/import-history-list.component.js +0 -71
- package/esm2015/lib/import-csv/import-success/import-success.component.js +0 -19
- package/esm2015/lib/loader/index.js +0 -2
- package/esm2015/lib/loader/loader.component.js +0 -22
- package/esm2015/lib/loader/loader.module.js +0 -21
- package/esm2015/lib/login-history-for-user/login-history-for-user-routing.module.js +0 -20
- package/esm2015/lib/login-history-for-user/login-history-for-user.component.js +0 -88
- package/esm2015/lib/login-history-for-user/login-history-for-user.module.js +0 -27
- package/esm2015/lib/material.module.js +0 -60
- package/esm2015/lib/note/comment-form/comment-form.component.js +0 -73
- package/esm2015/lib/note/index.js +0 -4
- package/esm2015/lib/note/note-form/note-form.component.js +0 -81
- package/esm2015/lib/note/note-list/note-list.component.js +0 -151
- package/esm2015/lib/note/note.module.js +0 -36
- package/esm2015/lib/note/note.service.js +0 -31
- package/esm2015/lib/read-more/read-more.component.js +0 -43
- package/esm2015/lib/read-more/read-more.module.js +0 -21
- package/esm2015/lib/searchable-selector/index.js +0 -3
- package/esm2015/lib/searchable-selector/mat-select-infinite-scroll.directive.js +0 -81
- package/esm2015/lib/searchable-selector/searchable-selector.component.js +0 -307
- package/esm2015/lib/searchable-selector/searchable-selector.module.js +0 -28
- package/esm2015/lib/techlify-feature/on-off-switch/on-off-switch.component.js +0 -27
- package/esm2015/lib/techlify-feature/techlify-feature-enabled.directive.js +0 -78
- package/esm2015/lib/techlify-feature/techlify-feature-listing.component.js +0 -177
- package/esm2015/lib/techlify-feature/techlify-feature.module.js +0 -30
- package/esm2015/lib/techlify-feature/techlify-feature.routing.js +0 -12
- package/esm2015/lib/techlify-feature/techlify-feature.service.js +0 -28
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.js +0 -15
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.js +0 -269
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.js +0 -25
- package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.js +0 -168
- package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.js +0 -29
- package/esm2015/lib/techlify-update/techlify-update-form/techlify-update-form.component.js +0 -114
- package/esm2015/lib/techlify-update/techlify-update-form/techlify-update-form.module.js +0 -28
- package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.js +0 -22
- package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history.component.js +0 -143
- package/esm2015/lib/techlify-update/techlify-update-history/techlify-update-history.module.js +0 -28
- package/esm2015/lib/techlify-update/techlify-update-routing.module.js +0 -22
- package/esm2015/lib/techlify-update/techlify-update.module.js +0 -30
- package/esm2015/lib/techlify-update/techlify-update.service.js +0 -43
- package/esm2015/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.js +0 -161
- package/esm2015/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.js +0 -82
- package/esm2015/lib/techlify-update/update-notifier/update-notifier.component.js +0 -62
- package/esm2015/lib/techlify-update/update-notifier/update-notifier.module.js +0 -29
- package/esm2015/lib/techlify-update/update-view/update-view.component.js +0 -36
- package/esm2015/lib/techlify-update/update-view/update-view.module.js +0 -24
- package/esm2015/lib/timeline-filter/calculate-timeline.js +0 -102
- package/esm2015/lib/timeline-filter/index.js +0 -4
- package/esm2015/lib/timeline-filter/timeline-filter-routing.module.js +0 -12
- package/esm2015/lib/timeline-filter/timeline-filter.component.js +0 -213
- package/esm2015/lib/timeline-filter/timeline-filter.module.js +0 -23
- package/esm2015/lib/timeline-filter/timeline.model.js +0 -18
- package/esm2015/lib/utility/date-utils.service.js +0 -48
- package/esm2015/lib/utility/index.js +0 -4
- package/esm2015/lib/utility/num-items-selector.component.js +0 -30
- package/esm2015/lib/utility/number-selector.component.js +0 -38
- package/esm2015/lib/utility/utility.module.js +0 -21
- package/esm2015/ngx-techlify-core.js +0 -60
- package/esm2015/public-api.js +0 -96
- package/fesm2015/ngx-techlify-core.js +0 -7039
- package/fesm2015/ngx-techlify-core.js.map +0 -1
- package/lib/action-popup/action-popup.component.d.ts +0 -14
- package/lib/action-popup/action-popup.module.d.ts +0 -2
- package/lib/audit-log/audit-log-for-model/audit-log-for-model-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-for-model/audit-log-for-model.component.d.ts +0 -12
- package/lib/audit-log/audit-log-for-model/audit-log-for-model.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list/audit-log-list-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list/audit-log-list.component.d.ts +0 -32
- package/lib/audit-log/audit-log-list/audit-log-list.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.component.d.ts +0 -19
- package/lib/audit-log/audit-log-list-filter/audit-log-list-filter.module.d.ts +0 -2
- package/lib/audit-log/audit-log-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view/audit-log-view-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view/audit-log-view.component.d.ts +0 -17
- package/lib/audit-log/audit-log-view/audit-log-view.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view-model/audit-log-view-model-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-log-view-model/audit-log-view-model.component.d.ts +0 -15
- package/lib/audit-log/audit-log-view-model/audit-log-view-model.module.d.ts +0 -2
- package/lib/audit-log/audit-log.module.d.ts +0 -2
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model-routing.module.d.ts +0 -2
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.component.d.ts +0 -11
- package/lib/audit-log/audit-logs-view-model/audit-logs-view-model.module.d.ts +0 -2
- package/lib/base-model/index.d.ts +0 -3
- package/lib/base-model/techlify-form-component.class.d.ts +0 -43
- package/lib/base-model/techlify-listing-component.class.d.ts +0 -47
- package/lib/base-model/techlify-service.class.d.ts +0 -52
- package/lib/core/alert.service.d.ts +0 -12
- package/lib/core/api-prefix.interceptor.d.ts +0 -11
- package/lib/core/authentication.guard.d.ts +0 -10
- package/lib/core/authentication.service.d.ts +0 -23
- package/lib/core/cache.interceptor.d.ts +0 -21
- package/lib/core/config.service.d.ts +0 -19
- package/lib/core/core.module.d.ts +0 -3
- package/lib/core/credentials.service.d.ts +0 -36
- package/lib/core/error-handler.interceptor.d.ts +0 -14
- package/lib/core/error-handler.service.d.ts +0 -14
- package/lib/core/form-validator.service.d.ts +0 -8
- package/lib/core/header.interceptor.d.ts +0 -8
- package/lib/core/http-cache.service.d.ts +0 -54
- package/lib/core/http.service.d.ts +0 -56
- package/lib/core/logger.service.d.ts +0 -85
- package/lib/core/route-reusable-strategy.d.ts +0 -13
- package/lib/core/snack/snack.component.d.ts +0 -8
- package/lib/core/snack/snack.module.d.ts +0 -2
- package/lib/core/storage.service.d.ts +0 -15
- package/lib/core/techlify-config.model.d.ts +0 -18
- package/lib/core/token.interceptor.d.ts +0 -11
- package/lib/data-table/data-table.component.d.ts +0 -60
- package/lib/data-table/data-table.module.d.ts +0 -2
- package/lib/date-validator.d.ts +0 -1
- package/lib/document-viewer/document-viewer.component.d.ts +0 -16
- package/lib/document-viewer/document-viewer.module.d.ts +0 -2
- package/lib/document-viewer/viewer-config.model.d.ts +0 -5
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user-routing.module.d.ts +0 -7
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.component.d.ts +0 -17
- package/lib/email-subscription/email-subscription-for-user/email-subscription-for-user.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.component.d.ts +0 -32
- package/lib/email-subscription/email-subscription-type/email-subscription-type-form/email-subscription-type-form.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list-routing.module.d.ts +0 -9
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.component.d.ts +0 -30
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/email-subscription-type-list.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type-list/index.d.ts +0 -1
- package/lib/email-subscription/email-subscription-type/email-subscription-type-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-type/email-subscription-type.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.component.d.ts +0 -32
- package/lib/email-subscription/email-subscription-user/email-subscription-user-form/email-subscription-user-form.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list-routing.module.d.ts +0 -9
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.component.d.ts +0 -32
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list/email-subscription-user-list.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.component.d.ts +0 -13
- package/lib/email-subscription/email-subscription-user/email-subscription-user-list-filter/email-subscription-user-list-filter.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user-routing.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription-user/email-subscription-user.module.d.ts +0 -2
- package/lib/email-subscription/email-subscription.module.d.ts +0 -2
- package/lib/entity-files/entity-file-form/entity-file-form.component.d.ts +0 -34
- package/lib/entity-files/entity-file.service.d.ts +0 -10
- package/lib/entity-files/entity-files-view-all.component.d.ts +0 -45
- package/lib/entity-files/entity-files-view-all.module.d.ts +0 -2
- package/lib/entity-files/index.d.ts +0 -2
- package/lib/export-excel/export-excel-button/export-excel-button.component.d.ts +0 -8
- package/lib/export-excel/export-excel.module.d.ts +0 -2
- package/lib/file-dropper/file-dropper.component.d.ts +0 -33
- package/lib/file-dropper/file-dropper.model.d.ts +0 -10
- package/lib/file-dropper/file-dropper.module.d.ts +0 -2
- package/lib/import-csv/data-import/data-import.component.d.ts +0 -6
- package/lib/import-csv/failed-items-list/failed-items-list.component.d.ts +0 -12
- package/lib/import-csv/field-mapping/field-mapping.component.d.ts +0 -34
- package/lib/import-csv/import-csv-config.d.ts +0 -17
- package/lib/import-csv/import-csv.component.d.ts +0 -33
- package/lib/import-csv/import-csv.module.d.ts +0 -2
- package/lib/import-csv/import-history-list/import-history-list.component.d.ts +0 -21
- package/lib/import-csv/import-success/import-success.component.d.ts +0 -8
- package/lib/loader/loader.component.d.ts +0 -8
- package/lib/loader/loader.module.d.ts +0 -2
- package/lib/login-history-for-user/login-history-for-user-routing.module.d.ts +0 -2
- package/lib/login-history-for-user/login-history-for-user.component.d.ts +0 -23
- package/lib/login-history-for-user/login-history-for-user.module.d.ts +0 -2
- package/lib/material.module.d.ts +0 -2
- package/lib/note/comment-form/comment-form.component.d.ts +0 -22
- package/lib/note/note-form/note-form.component.d.ts +0 -27
- package/lib/note/note-list/note-list.component.d.ts +0 -28
- package/lib/note/note.module.d.ts +0 -2
- package/lib/note/note.service.d.ts +0 -9
- package/lib/read-more/read-more.component.d.ts +0 -12
- package/lib/read-more/read-more.module.d.ts +0 -2
- package/lib/searchable-selector/index.d.ts +0 -2
- package/lib/searchable-selector/mat-select-infinite-scroll.directive.d.ts +0 -23
- package/lib/searchable-selector/searchable-selector.component.d.ts +0 -81
- package/lib/searchable-selector/searchable-selector.module.d.ts +0 -2
- package/lib/techlify-feature/on-off-switch/on-off-switch.component.d.ts +0 -9
- package/lib/techlify-feature/techlify-feature-enabled.directive.d.ts +0 -17
- package/lib/techlify-feature/techlify-feature-listing.component.d.ts +0 -37
- package/lib/techlify-feature/techlify-feature.module.d.ts +0 -2
- package/lib/techlify-feature/techlify-feature.routing.d.ts +0 -2
- package/lib/techlify-feature/techlify-feature.service.d.ts +0 -8
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.d.ts +0 -12
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.d.ts +0 -76
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.d.ts +0 -2
- package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.d.ts +0 -58
- package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-form/techlify-update-form.component.d.ts +0 -30
- package/lib/techlify-update/techlify-update-form/techlify-update-form.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-history/techlify-update-history.component.d.ts +0 -31
- package/lib/techlify-update/techlify-update-history/techlify-update-history.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update-routing.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update.module.d.ts +0 -2
- package/lib/techlify-update/techlify-update.service.d.ts +0 -13
- package/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.d.ts +0 -31
- package/lib/techlify-update/update-notifier/update-notifier-snack/update-notifier-snack.component.d.ts +0 -25
- package/lib/techlify-update/update-notifier/update-notifier.component.d.ts +0 -16
- package/lib/techlify-update/update-notifier/update-notifier.module.d.ts +0 -2
- package/lib/techlify-update/update-view/update-view.component.d.ts +0 -14
- package/lib/techlify-update/update-view/update-view.module.d.ts +0 -2
- package/lib/timeline-filter/calculate-timeline.d.ts +0 -6
- package/lib/timeline-filter/timeline-filter-routing.module.d.ts +0 -2
- package/lib/timeline-filter/timeline-filter.component.d.ts +0 -61
- package/lib/timeline-filter/timeline-filter.module.d.ts +0 -2
- package/lib/timeline-filter/timeline.model.d.ts +0 -17
- package/lib/utility/date-utils.service.d.ts +0 -21
- package/lib/utility/num-items-selector.component.d.ts +0 -16
- package/lib/utility/number-selector.component.d.ts +0 -20
- package/lib/utility/utility.module.d.ts +0 -2
- package/ngx-techlify-core.d.ts +0 -59
- package/ngx-techlify-core.metadata.json +0 -1
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
3
|
+
import { Component, ElementRef, OnInit, Input, OnDestroy, Inject, Optional, Self } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
5
|
+
import { MatFormField, MatFormFieldControl, MAT_FORM_FIELD } from '@angular/material/form-field';
|
|
6
|
+
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
import { debounceTime } from 'rxjs/operators';
|
|
9
|
+
import { HttpService } from '../core/http.service';
|
|
10
|
+
|
|
11
|
+
@UntilDestroy()
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'app-techlify-tagger-tag-selector',
|
|
14
|
+
templateUrl: './techlify-tagger-tag-selector.component.html',
|
|
15
|
+
styleUrls: ['./techlify-tagger-tag-selector.component.scss'],
|
|
16
|
+
providers: [{ provide: MatFormFieldControl, useExisting: TechlifyTaggerTagSelectorComponent }],
|
|
17
|
+
})
|
|
18
|
+
export class TechlifyTaggerTagSelectorComponent implements OnInit, ControlValueAccessor, MatFormFieldControl<any>, OnDestroy {
|
|
19
|
+
|
|
20
|
+
/**Pass the Categories to filter for a model */
|
|
21
|
+
@Input() categories: string[] = [];
|
|
22
|
+
@Input() multiple: boolean = false;
|
|
23
|
+
@Input() enableSearch: boolean = true;
|
|
24
|
+
tagSelectorCtrl = new FormControl();
|
|
25
|
+
@Input() showAllTags: boolean = false;
|
|
26
|
+
@Input() useSelectButtonStyle: boolean = false;
|
|
27
|
+
|
|
28
|
+
tags: any[] = [];
|
|
29
|
+
|
|
30
|
+
static nextId = 0;
|
|
31
|
+
stateChanges = new Subject<void>();
|
|
32
|
+
focused = false;
|
|
33
|
+
controlType = 'techlify-tagger-selector';
|
|
34
|
+
id = `techlify-tagger-selector-${TechlifyTaggerTagSelectorComponent.nextId++}`;
|
|
35
|
+
|
|
36
|
+
onChange = (_: any) => { };
|
|
37
|
+
onTouched = () => { };
|
|
38
|
+
|
|
39
|
+
get apiUrl() {
|
|
40
|
+
if (this.showAllTags) {
|
|
41
|
+
return 'api/techlify-tagger-tags'
|
|
42
|
+
}
|
|
43
|
+
else if (this.categories?.length > 0) {
|
|
44
|
+
return 'api/techlify-tagger-tags?categories=' + this.categories.join(',');
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return '';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//Default Getter and Setters for a Form Field Implementation
|
|
52
|
+
get empty() {
|
|
53
|
+
return this.value.length == 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
get shouldLabelFloat() {
|
|
57
|
+
return this.focused || !this.empty;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@Input()
|
|
61
|
+
get required(): boolean {
|
|
62
|
+
return this._required;
|
|
63
|
+
}
|
|
64
|
+
set required(value: boolean) {
|
|
65
|
+
this._required = coerceBooleanProperty(value);
|
|
66
|
+
this.stateChanges.next();
|
|
67
|
+
}
|
|
68
|
+
private _required = false;
|
|
69
|
+
|
|
70
|
+
@Input()
|
|
71
|
+
get disabled(): boolean {
|
|
72
|
+
return this._disabled;
|
|
73
|
+
}
|
|
74
|
+
set disabled(value: boolean) {
|
|
75
|
+
this._disabled = coerceBooleanProperty(value);
|
|
76
|
+
this._disabled ? this.tagSelectorCtrl.disable() : this.tagSelectorCtrl.enable();
|
|
77
|
+
this.stateChanges.next();
|
|
78
|
+
}
|
|
79
|
+
private _disabled = false;
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
private _value: any;
|
|
83
|
+
@Input()
|
|
84
|
+
get value(): any {
|
|
85
|
+
return this._value;
|
|
86
|
+
}
|
|
87
|
+
set value(val: any) {
|
|
88
|
+
this._value = val;
|
|
89
|
+
this.tagSelectorCtrl.setValue(val);
|
|
90
|
+
this.stateChanges.next();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
get errorState(): boolean {
|
|
94
|
+
return this.tagSelectorCtrl.dirty && this.required && (this.value.length == 0);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@Input()
|
|
98
|
+
get placeholder(): string {
|
|
99
|
+
return this._placeholder;
|
|
100
|
+
}
|
|
101
|
+
set placeholder(value: string) {
|
|
102
|
+
this._placeholder = value;
|
|
103
|
+
this.stateChanges.next();
|
|
104
|
+
}
|
|
105
|
+
private _placeholder: string;
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
ngOnInit(): void {
|
|
109
|
+
if (this.useSelectButtonStyle) {
|
|
110
|
+
this.httpService.get(this.apiUrl)
|
|
111
|
+
.pipe(untilDestroyed(this))
|
|
112
|
+
.subscribe((res: any) => {
|
|
113
|
+
this.tags = res.data;
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
selectionChange(value: any) {
|
|
119
|
+
this.value = value;
|
|
120
|
+
this._handleInput();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
constructor(
|
|
124
|
+
private _focusMonitor: FocusMonitor,
|
|
125
|
+
private _elementRef: ElementRef<HTMLElement>,
|
|
126
|
+
private httpService: HttpService,
|
|
127
|
+
@Optional() @Inject(MAT_FORM_FIELD) public _formField: MatFormField,
|
|
128
|
+
@Optional() @Self() public ngControl: NgControl) {
|
|
129
|
+
|
|
130
|
+
//Set Focus Monitor
|
|
131
|
+
_focusMonitor.monitor(_elementRef, true).subscribe(origin => {
|
|
132
|
+
if (this.focused && !origin) {
|
|
133
|
+
this.onTouched();
|
|
134
|
+
}
|
|
135
|
+
this.focused = !!origin;
|
|
136
|
+
this.stateChanges.next();
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
if (this.ngControl != null) {
|
|
140
|
+
this.ngControl.valueAccessor = this;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
setDescribedByIds(ids: string[]) {
|
|
145
|
+
// Just a empty implementation for Mat Form Field Interface
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
onContainerClick() {
|
|
149
|
+
// Just a empty implementation for Mat Form Field Interface
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
writeValue(val: any): void {
|
|
153
|
+
this.value = val;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
registerOnChange(fn: any): void {
|
|
157
|
+
this.onChange = fn;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
registerOnTouched(fn: any): void {
|
|
161
|
+
this.onTouched = fn;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
setDisabledState(isDisabled: boolean): void {
|
|
165
|
+
this.disabled = isDisabled;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
_handleInput(): void {
|
|
169
|
+
this.onChange(this.value);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
173
|
+
static ngAcceptInputType_required: BooleanInput;
|
|
174
|
+
|
|
175
|
+
ngOnDestroy() {
|
|
176
|
+
this.stateChanges.complete();
|
|
177
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { TechlifyTaggerTagSelectorComponent } from './techlify-tagger-tag-selector.component';
|
|
4
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
5
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
7
|
+
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
8
|
+
import { MaterialModule } from '../material.module';
|
|
9
|
+
import { SearchableSelectorModule } from '../searchable-selector/searchable-selector.module';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@NgModule({
|
|
14
|
+
declarations: [
|
|
15
|
+
TechlifyTaggerTagSelectorComponent
|
|
16
|
+
],
|
|
17
|
+
imports: [
|
|
18
|
+
CommonModule,
|
|
19
|
+
MaterialModule,
|
|
20
|
+
FlexLayoutModule,
|
|
21
|
+
MatAutocompleteModule,
|
|
22
|
+
ReactiveFormsModule,
|
|
23
|
+
SearchableSelectorModule,
|
|
24
|
+
MatButtonToggleModule
|
|
25
|
+
],
|
|
26
|
+
exports: [TechlifyTaggerTagSelectorComponent]
|
|
27
|
+
})
|
|
28
|
+
export class TechlifyTaggerTagSelectorModule { }
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<form [formGroup]="techlifyUpdateForm" (ngSubmit)="submit()">
|
|
2
|
+
<div fxLayout="column" class="mat-typography">
|
|
3
|
+
<div mat-dialog-title class="text-center">
|
|
4
|
+
<h2>
|
|
5
|
+
App Update Form
|
|
6
|
+
</h2>
|
|
7
|
+
</div>
|
|
8
|
+
<div mat-dialog-content fxLayout="column" fxLayoutGap="1rem">
|
|
9
|
+
<mat-form-field fxFlex="100%">
|
|
10
|
+
<mat-label>Title</mat-label>
|
|
11
|
+
<input matInput formControlName="title" placeholder="Title" autocomplete="off" required />
|
|
12
|
+
<button mat-button *ngIf="getFieldValue('title')" matSuffix mat-icon-button (click)="resetFieldValue('title')">
|
|
13
|
+
<mat-icon>close</mat-icon>
|
|
14
|
+
</button>
|
|
15
|
+
<mat-error *ngIf="isFieldValid('title')">
|
|
16
|
+
{{getErrorMessage('title')}}
|
|
17
|
+
</mat-error>
|
|
18
|
+
</mat-form-field>
|
|
19
|
+
|
|
20
|
+
<mat-form-field fxFlex="100%">
|
|
21
|
+
<input matInput [matDatepicker]="released_on" formControlName="released_on" placeholder="Released on" readonly
|
|
22
|
+
(click)="released_on.open()" required />
|
|
23
|
+
<mat-datepicker-toggle matSuffix [for]="released_on"></mat-datepicker-toggle>
|
|
24
|
+
<mat-datepicker #released_on></mat-datepicker>
|
|
25
|
+
<button mat-button *ngIf="getFieldValue('released_on')" matSuffix mat-icon-button
|
|
26
|
+
(click)="resetFieldValue('released_on')">
|
|
27
|
+
<mat-icon>close</mat-icon>
|
|
28
|
+
</button>
|
|
29
|
+
<mat-error *ngIf="isFieldValid('released_on')">
|
|
30
|
+
{{getErrorMessage('released_on')}}
|
|
31
|
+
</mat-error>
|
|
32
|
+
</mat-form-field>
|
|
33
|
+
|
|
34
|
+
<mat-form-field fxFlex="100%">
|
|
35
|
+
<mat-label>Version</mat-label>
|
|
36
|
+
<input matInput formControlName="version" placeholder="Version" autocomplete="off" required />
|
|
37
|
+
<button mat-button *ngIf="getFieldValue('version')" matSuffix mat-icon-button
|
|
38
|
+
(click)="resetFieldValue('version')">
|
|
39
|
+
<mat-icon>close</mat-icon>
|
|
40
|
+
</button>
|
|
41
|
+
<mat-error *ngIf="isFieldValid('version')">
|
|
42
|
+
{{getErrorMessage('version')}}
|
|
43
|
+
</mat-error>
|
|
44
|
+
</mat-form-field>
|
|
45
|
+
|
|
46
|
+
<mat-form-field fxFlex="100%">
|
|
47
|
+
<mat-label>Learn more link</mat-label>
|
|
48
|
+
<input matInput formControlName="learn_more_link" placeholder="Learn More Link" autocomplete="off" />
|
|
49
|
+
<button mat-button *ngIf="getFieldValue('learn_more_link')" matSuffix mat-icon-button
|
|
50
|
+
(click)="resetFieldValue('learn_more_link')">
|
|
51
|
+
<mat-icon>close</mat-icon>
|
|
52
|
+
</button>
|
|
53
|
+
<mat-error *ngIf="isFieldValid('learn_more_link')">
|
|
54
|
+
{{getErrorMessage('learn_more_link')}}
|
|
55
|
+
</mat-error>
|
|
56
|
+
</mat-form-field>
|
|
57
|
+
|
|
58
|
+
<div fxFlex="100%">
|
|
59
|
+
<div class="NgxEditor__Wrapper">
|
|
60
|
+
<ngx-editor-menu [toolbar]="toolbar" [editor]="editor"> </ngx-editor-menu>
|
|
61
|
+
<ngx-editor formControlName="description" [editor]="editor" placeholder="Description">
|
|
62
|
+
</ngx-editor>
|
|
63
|
+
</div>
|
|
64
|
+
<mat-error *ngIf="isFieldValid('description')">
|
|
65
|
+
{{getErrorMessage('description')}}
|
|
66
|
+
</mat-error>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div mat-dialog-actions fxFlex="100%" fxLayout fxLayoutAlign="end" fxLayoutGap="1rem">
|
|
70
|
+
<button mat-button class="mt-2" type="button" (click)="dialogRef.close()">
|
|
71
|
+
Cancel
|
|
72
|
+
</button>
|
|
73
|
+
<button mat-raised-button type="submit" class="btn-primary mt-2">
|
|
74
|
+
Save
|
|
75
|
+
</button>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</form>
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { TechlifyUpdateFormComponent } from './techlify-update-form.component';
|
|
4
|
+
|
|
5
|
+
describe('TechlifyUpdateFormComponent', () => {
|
|
6
|
+
let component: TechlifyUpdateFormComponent;
|
|
7
|
+
let fixture: ComponentFixture<TechlifyUpdateFormComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async(() => {
|
|
10
|
+
TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ TechlifyUpdateFormComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(TechlifyUpdateFormComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { AlertService } from "../../core/alert.service";
|
|
2
|
+
import { TechlifyUpdateService } from './../techlify-update.service';
|
|
3
|
+
import { FormControl, Validators } from '@angular/forms';
|
|
4
|
+
import { Component, EventEmitter, Inject, OnInit, Output } from '@angular/core';
|
|
5
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
6
|
+
import { FormValidatorService } from '../../core/form-validator.service';
|
|
7
|
+
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
8
|
+
import { Editor, Toolbar } from 'ngx-editor';
|
|
9
|
+
|
|
10
|
+
const errorMessages: any = {
|
|
11
|
+
title: {
|
|
12
|
+
required: "Title is required",
|
|
13
|
+
},
|
|
14
|
+
released_on: {
|
|
15
|
+
required: "Released On is required",
|
|
16
|
+
},
|
|
17
|
+
version: {
|
|
18
|
+
required: "Version is required",
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
required: "Description is required",
|
|
22
|
+
},
|
|
23
|
+
learn_more_link: {
|
|
24
|
+
pattern: "Please enter valid link",
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@Component({
|
|
29
|
+
selector: 'app-techlify-update-form',
|
|
30
|
+
templateUrl: './techlify-update-form.component.html',
|
|
31
|
+
styleUrls: ['./techlify-update-form.component.scss']
|
|
32
|
+
})
|
|
33
|
+
export class TechlifyUpdateFormComponent implements OnInit {
|
|
34
|
+
|
|
35
|
+
@Output() onSave = new EventEmitter<any>();
|
|
36
|
+
techlifyUpdateForm: FormGroup;
|
|
37
|
+
isUpdateMode: boolean = false;
|
|
38
|
+
editor: Editor;
|
|
39
|
+
toolbar: Toolbar = [
|
|
40
|
+
['bold', 'italic'],
|
|
41
|
+
['bullet_list'],
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
constructor(
|
|
45
|
+
public dialogRef: MatDialogRef<TechlifyUpdateFormComponent>,
|
|
46
|
+
@Inject(MAT_DIALOG_DATA) public data: any,
|
|
47
|
+
private fb: FormBuilder,
|
|
48
|
+
private formValidatorService: FormValidatorService,
|
|
49
|
+
private alertService: AlertService,
|
|
50
|
+
private techlifyUpdateService: TechlifyUpdateService
|
|
51
|
+
) {
|
|
52
|
+
this.createForm();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private createForm() {
|
|
56
|
+
this.techlifyUpdateForm = this.fb.group({
|
|
57
|
+
id: new FormControl(''),
|
|
58
|
+
title: new FormControl('', Validators.required),
|
|
59
|
+
description: new FormControl('', Validators.required),
|
|
60
|
+
version: new FormControl('', Validators.required),
|
|
61
|
+
released_on: new FormControl('', Validators.required),
|
|
62
|
+
learn_more_link: new FormControl('', Validators.compose([Validators.pattern('(https?://)?([\\da-z.-]+)\\.([a-z.]{2,6})[/\\w .-]*/?')])),
|
|
63
|
+
});
|
|
64
|
+
if (this.data.techlifyUpdateDetails) {
|
|
65
|
+
this.isUpdateMode = true;
|
|
66
|
+
this.techlifyUpdateForm.patchValue(this.data.techlifyUpdateDetails);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
ngOnInit() {
|
|
71
|
+
this.editor = new Editor();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async submit() {
|
|
75
|
+
if (this.techlifyUpdateForm.valid) {
|
|
76
|
+
let result;
|
|
77
|
+
const model = this.techlifyUpdateForm.value;
|
|
78
|
+
|
|
79
|
+
try {
|
|
80
|
+
result = this.isUpdateMode ? await this.techlifyUpdateService.updateTechlifyUpdate(model)
|
|
81
|
+
: await this.techlifyUpdateService.createTechlifyUpdate(model);
|
|
82
|
+
this.alertService.addAlert(
|
|
83
|
+
"Techlify app update saved successfully",
|
|
84
|
+
"success"
|
|
85
|
+
);
|
|
86
|
+
} catch (error) {
|
|
87
|
+
this.alertService.addAlert("Unable to process, try later", "warn");
|
|
88
|
+
} finally {
|
|
89
|
+
if (result) {
|
|
90
|
+
this.dialogRef.close(result);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
resetFieldValue(field: string) {
|
|
97
|
+
this.techlifyUpdateForm.get(field).setValue('');
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
getFieldValue(field: string) {
|
|
101
|
+
return this.techlifyUpdateForm.get(field).value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Method to evaluate form fields*/
|
|
105
|
+
isFieldValid(field: string) {
|
|
106
|
+
return this.formValidatorService.isFieldValid(field, this.techlifyUpdateForm, true);
|
|
107
|
+
}
|
|
108
|
+
/** Method to find error in form fields*/
|
|
109
|
+
getErrorMessage(field: string) {
|
|
110
|
+
return this.formValidatorService.getErrorMessage(field, this.techlifyUpdateForm, errorMessages);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
2
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { MaterialModule } from './../../material.module';
|
|
4
|
+
import { NgModule } from '@angular/core';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import { TechlifyUpdateFormComponent } from './techlify-update-form.component';
|
|
7
|
+
import { NgxEditorModule } from 'ngx-editor';
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
declarations: [TechlifyUpdateFormComponent],
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
ReactiveFormsModule,
|
|
14
|
+
MaterialModule,
|
|
15
|
+
FlexLayoutModule,
|
|
16
|
+
NgxEditorModule,
|
|
17
|
+
],
|
|
18
|
+
exports: [
|
|
19
|
+
TechlifyUpdateFormComponent
|
|
20
|
+
],
|
|
21
|
+
entryComponents: [
|
|
22
|
+
TechlifyUpdateFormComponent
|
|
23
|
+
]
|
|
24
|
+
})
|
|
25
|
+
export class TechlifyUpdateFormModule { }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './techlify-update-history.module';
|
package/src/lib/techlify-update/techlify-update-history/techlify-update-history-routing.module.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TechlifyUpdateHistoryComponent } from './techlify-update-history.component';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
4
|
+
|
|
5
|
+
const routes: Routes = [
|
|
6
|
+
{ path: '', redirectTo: 'update-history', pathMatch: 'full' },
|
|
7
|
+
{ path: 'update-history', component: TechlifyUpdateHistoryComponent },
|
|
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 TechlifyUpdateHistoryRoutingModule { }
|
package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.html
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<section class="p-4" fxLayout="column">
|
|
2
|
+
<h3 class="primary-color text-center">
|
|
3
|
+
App Updates
|
|
4
|
+
</h3>
|
|
5
|
+
<form [formGroup]="filterFormGroup" fxLayout="row wrap" fxLayoutGap="0.5rem" fxFlex="100%" style="font-size: 12px;">
|
|
6
|
+
<mat-form-field fxFlex="0 1 calc(100% - 0.5rem)" fxFlex.gt-md="0 1 calc(15% - 0.5rem)" appearance="outline"
|
|
7
|
+
fxFlex.gt-sm="0 1 calc(20% - 0.5rem)">
|
|
8
|
+
<input type="text" matInput formControlName="search" placeholder="Title" autocomplete="off" />
|
|
9
|
+
<button mat-button *ngIf="filterFormGroup.get('search').value" matSuffix mat-icon-button
|
|
10
|
+
(click)="resetFieldValue('search')">
|
|
11
|
+
<mat-icon>close</mat-icon>
|
|
12
|
+
</button>
|
|
13
|
+
</mat-form-field>
|
|
14
|
+
<mat-form-field fxFlex="0 1 calc(100% - 0.5rem)" fxFlex.gt-md="0 1 calc(15% - 0.5rem)" appearance="outline"
|
|
15
|
+
fxFlex.gt-sm="0 1 calc(20% - 0.5rem)">
|
|
16
|
+
<input type="text" matInput formControlName="version" placeholder="Version" autocomplete="off" />
|
|
17
|
+
<button mat-button *ngIf="filterFormGroup.get('version').value" matSuffix mat-icon-button
|
|
18
|
+
(click)="resetFieldValue('version')">
|
|
19
|
+
<mat-icon>close</mat-icon>
|
|
20
|
+
</button>
|
|
21
|
+
</mat-form-field>
|
|
22
|
+
</form>
|
|
23
|
+
|
|
24
|
+
<table mat-table [dataSource]="techlifyUpdates" class="mat-elevation-z8 w-100" matSort multiTemplateDataRows
|
|
25
|
+
(matSortChange)="sortColumn($event)" infiniteScroll [infiniteScrollDistance]="2" [infiniteScrollThrottle]="50"
|
|
26
|
+
(scrolled)="onScroll()">
|
|
27
|
+
|
|
28
|
+
<!-- Index Column -->
|
|
29
|
+
<ng-container matColumnDef="index">
|
|
30
|
+
<th mat-header-cell *matHeaderCellDef> # </th>
|
|
31
|
+
<td mat-cell *matCellDef="let element;let i=dataIndex"> {{ i+1 }} </td>
|
|
32
|
+
</ng-container>
|
|
33
|
+
|
|
34
|
+
<!-- Course Column -->
|
|
35
|
+
<ng-container matColumnDef="title">
|
|
36
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Title </th>
|
|
37
|
+
<td mat-cell *matCellDef="let element"> {{element?.title}} </td>
|
|
38
|
+
</ng-container>
|
|
39
|
+
|
|
40
|
+
<!-- Version Column -->
|
|
41
|
+
<ng-container matColumnDef="version">
|
|
42
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Version </th>
|
|
43
|
+
<td mat-cell *matCellDef="let element"> {{element?.version}} </td>
|
|
44
|
+
</ng-container>
|
|
45
|
+
|
|
46
|
+
<!-- Released On Column -->
|
|
47
|
+
<ng-container matColumnDef="released_on">
|
|
48
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header disableClear> Released On </th>
|
|
49
|
+
<td mat-cell *matCellDef="let element"> {{element?.released_on | date:'mediumDate'}} </td>
|
|
50
|
+
</ng-container>
|
|
51
|
+
|
|
52
|
+
<!-- Learn More Link Column -->
|
|
53
|
+
<ng-container matColumnDef="learn_more_link">
|
|
54
|
+
<th mat-header-cell *matHeaderCellDef> Learn more link </th>
|
|
55
|
+
<td mat-cell *matCellDef="let element">
|
|
56
|
+
<a [href]="element?.learn_more_link" target="_blank">
|
|
57
|
+
{{element?.learn_more_link}}
|
|
58
|
+
</a>
|
|
59
|
+
</td>
|
|
60
|
+
</ng-container>
|
|
61
|
+
|
|
62
|
+
<!-- Description Column -->
|
|
63
|
+
<ng-container matColumnDef="description">
|
|
64
|
+
<th mat-header-cell *matHeaderCellDef> Description </th>
|
|
65
|
+
<td mat-cell *matCellDef="let element">
|
|
66
|
+
<app-read-more [text]="element?.description" [maxLength]="50"></app-read-more>
|
|
67
|
+
</td>
|
|
68
|
+
</ng-container>
|
|
69
|
+
|
|
70
|
+
<!-- Creator Column -->
|
|
71
|
+
<ng-container matColumnDef="creator">
|
|
72
|
+
<th mat-header-cell *matHeaderCellDef> Creator </th>
|
|
73
|
+
<td mat-cell *matCellDef="let element">
|
|
74
|
+
{{element?.creator?.name}}
|
|
75
|
+
<div fxLayout class="small">
|
|
76
|
+
{{element?.created_at | date : 'mediumDate'}}
|
|
77
|
+
</div>
|
|
78
|
+
</td>
|
|
79
|
+
</ng-container>
|
|
80
|
+
|
|
81
|
+
<!-- Actions Column -->
|
|
82
|
+
<ng-container matColumnDef="actions">
|
|
83
|
+
<th mat-header-cell *matHeaderCellDef> Actions </th>
|
|
84
|
+
<td mat-cell *matCellDef="let element" class="secondary-color">
|
|
85
|
+
<button type="button" class="secondary-color" mat-icon-button (click)="openUpdateView(element)">
|
|
86
|
+
<mat-icon>remove_red_eye</mat-icon>
|
|
87
|
+
</button>
|
|
88
|
+
</td>
|
|
89
|
+
</ng-container>
|
|
90
|
+
|
|
91
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
92
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
93
|
+
</table>
|
|
94
|
+
</section>
|
package/src/lib/techlify-update/techlify-update-history/techlify-update-history.component.scss
ADDED
|
File without changes
|